/* ============================================================
   ProjectMax 2026 — BOLD CONCEPT  "The Flow Field"
   Dark editorial · cursor-reactive line field · kinetic type
   Signature: the logo's parallel lines, alive and flowing.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Overpass:wght@300;400;500;600;700;800;900&family=Overpass+Mono:wght@400;500;600;700&display=swap');

:root {
  --blue:      #0096d6;
  --blue-lit:  #4cc6f5;   /* electric accent / glow */
  --blue-deep: #0a3a52;
  --ink:       #04121a;   /* base near-black */
  --ink-2:     #071e2b;   /* raised dark surface */
  --grey:      #a7a9ac;
  --paper:     #f2f5f6;   /* the one light relief section */
  --text:      #e8f1f5;   /* body on dark */
  --text-dim:  #7e97a3;   /* muted on dark */
  --glass:     rgba(255,255,255,0.045);
  --glass-brd: rgba(120,200,240,0.16);
  --maxw: 1280px;

  /* motion */
  --ease-expo:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-quart: cubic-bezier(0.25, 1, 0.5, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--ink); color: var(--text);
  font-family: 'Overpass', system-ui, sans-serif; font-weight: 400;
  font-size: 18px; line-height: 1.6; -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 40px; position: relative; z-index: 2; }
section { position: relative; padding: 120px 0; }

/* ---------- kinetic type ---------- */
h1,h2,h3 { margin:0; font-weight: 800; line-height: 0.98; letter-spacing: -0.03em; color: #fff; }
.display {
  font-size: clamp(38px, 5.6vw, 88px); font-weight: 900; letter-spacing: -0.04em;
  line-height: 0.98; text-transform: none;
}
.display .word { display: inline-block; overflow: hidden; vertical-align: bottom; }
.display .word > span { display: inline-block; transition: transform .9s cubic-bezier(.16,1,.3,1); }
.js .display .word > span { transform: translateY(110%); }
.js .loaded .display .word > span, .loaded .display .word > span { transform: translateY(0); }
h2.section-title { font-size: clamp(26px, 3.3vw, 46px); font-weight: 800; letter-spacing: -0.025em; }

.eyebrow { font-family: 'Overpass Mono', monospace; font-size: 13px; font-weight: 600;
  letter-spacing: 0.32em; text-transform: uppercase; color: var(--blue-lit);
  display: inline-flex; align-items: center; gap: 14px; margin: 0 0 30px; }
.eyebrow::before { content:""; width: 40px; height: 1px; background: var(--blue-lit); }
.lead { font-size: clamp(19px, 2vw, 24px); line-height: 1.5; color: var(--text-dim); font-weight: 400; }
p { margin: 0 0 1em; }
a { color: var(--blue-lit); text-decoration: none; }

/* ---------- buttons ---------- */
.btn { position: relative; display: inline-flex; align-items: center; gap: 14px;
  font-family: 'Overpass', sans-serif; font-size: 16px; font-weight: 700; letter-spacing: 0.01em;
  padding: 9px 9px 9px 28px; border-radius: 100px; border: 1.5px solid transparent; cursor: pointer;
  transition: background .25s, color .25s, border-color .25s, transform .2s; will-change: transform; }
/* arrow wrapped in its own circle badge — arrow slides out right, new one enters from left */
.btn-ico { position: relative; overflow: hidden; flex: none;
  width: 38px; height: 38px; border-radius: 50%; font-size: 18px; transition: background .25s; }
.btn-ico .ti { position: absolute; top: 50%; left: 50%; font-size: 1em; transform: translate(-50%, -50%);
  transition: transform .45s cubic-bezier(.65, 0, .35, 1); }
.btn-ico .ti + .ti { transform: translate(calc(-50% - 34px), -50%); }
.btn:hover .btn-ico .ti:first-child { transform: translate(calc(-50% + 34px), -50%); }
.btn:hover .btn-ico .ti + .ti { transform: translate(-50%, -50%); }
.nav .btn { padding: 7px 7px 7px 20px; font-size: 15px; gap: 12px; }
.nav .btn .btn-ico { width: 30px; height: 30px; font-size: 15px; }
.btn-primary { background: var(--blue); color: #041018; }
.btn-primary:hover { background: var(--blue-lit); }
.btn-primary .btn-ico { background: #041018; color: #fff; }
.btn-glass { background: var(--glass); color: #fff; border-color: var(--glass-brd); backdrop-filter: blur(10px); }
.btn-glass:hover { border-color: var(--blue-lit); color: var(--blue-lit); }
.btn-glass .btn-ico { background: var(--blue-lit); color: var(--ink); }
.btn:active { transform: scale(0.97); transition: transform .1s var(--ease-quart); }
.nav-toggle:active { transform: scale(0.92); }

/* ---------- header ---------- */
header.site { position: fixed; top: 0; left: 0; right: 0; z-index: 100; transition: background .3s, backdrop-filter .3s, border-color .3s;
  border-bottom: 1px solid transparent; }
header.site.scrolled { background: rgba(4,18,26,0.72); backdrop-filter: blur(14px); border-color: rgba(120,200,240,0.12); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 96px; transition: height .3s cubic-bezier(.16,1,.3,1); }
.nav .logo svg, .nav .logo img { height: 42px; width: auto; display: block; transition: height .3s cubic-bezier(.16,1,.3,1); }
header.site.scrolled .nav { height: 66px; }
header.site.scrolled .nav .logo svg, header.site.scrolled .nav .logo img { height: 32px; }
.nav-links { display: flex; gap: 40px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--text); font-size: 15px; font-weight: 600; letter-spacing: 0.01em; position: relative; padding: 6px 0; }
.nav-links a::after { content:""; position: absolute; left:0; bottom:0; width: 100%; height: 1.5px; background: var(--blue-lit);
  transform: scaleX(0); transform-origin: left; transition: transform .3s cubic-bezier(.16,1,.3,1); }
.nav-links a:hover { color: #fff; } .nav-links a:hover::after { transform: scaleX(1); }

/* ---------- flow-field canvas ---------- */
.field { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; display: block; }
.field-mask { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(120% 90% at 15% 10%, transparent 30%, rgba(4,18,26,0.55) 100%); }

/* ---------- hero ---------- */
.hero { min-height: 100vh; display: flex; align-items: center; padding-top: 96px; overflow: hidden; }
.hero .display { font-size: clamp(36px, 5.1vw, 76px); max-width: none; }
.hero .lead { max-width: 54ch; margin: 34px 0 44px; }
.hero-actions { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.scroll-cue { position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%); z-index: 3;
  font-family: 'Overpass Mono', monospace; font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--text-dim); display: flex; flex-direction: column; align-items: center; gap: 12px; }
.scroll-cue .line { width: 1px; height: 46px; background: linear-gradient(var(--blue-lit), transparent); animation: cue 2s infinite; }
@keyframes cue { 0%{transform: scaleY(0); transform-origin: top;} 50%{transform: scaleY(1); transform-origin: top;}
  50.1%{transform: scaleY(1); transform-origin: bottom;} 100%{transform: scaleY(0); transform-origin: bottom;} }

/* ---------- scroll reveal (only hidden when JS is present) ---------- */
.js .reveal { opacity: 0; transform: translateY(40px); transition: opacity .9s var(--ease-expo), transform .9s var(--ease-expo); }
.js .reveal.in { opacity: 1; transform: none; }
/* section headings get a left-to-right clip wipe instead of the generic rise.
   The clip lives on an inner .wipe span so the h2 box stays full-size and the
   IntersectionObserver can still see it (a clipped element reports 0 intersection). */
.section-title .wipe { display: block; }
.js .section-title.reveal { opacity: 1; transform: none; }
.js .section-title.reveal .wipe { clip-path: inset(0 100% -0.15em 0); transition: clip-path .85s var(--ease-expo); }
.js .section-title.reveal.in .wipe { clip-path: inset(0 0% -0.15em 0); }

/* ---------- client marquee ---------- */
.marquee-wrap { padding: 30px 0; overflow: hidden; background: #ffffff; }
.marquee { display: flex; gap: 64px; white-space: nowrap; width: max-content; animation: scroll-x 34s linear infinite; }
.marquee span { font-size: 26px; font-weight: 700; color: #6f818b; letter-spacing: -0.01em; display: inline-flex; align-items: center; gap: 64px; }
.marquee span::after { content:"·"; color: var(--blue); }
@keyframes scroll-x { to { transform: translateX(-50%); } }

/* ---------- problem (light relief) ---------- */
.problem { background: var(--paper); color: #0d2430; }
.problem .eyebrow { color: var(--blue); } .problem .eyebrow::before { background: var(--blue); }
.problem h2 { color: #0a2a3a; }
.problem-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.problem .lead { color: #37525f; }
.problem-lede { font-size: clamp(19px,2vw,23px); font-weight: 500; line-height: 1.45; color: #1b3946; margin: 0 0 20px; }
.problem-body { font-size: 16px; line-height: 1.6; color: #4a626d; margin: 0 0 30px; }
.problem .btn-primary { color: #041018; }

/* ---------- how we help — broken grid glass cards ---------- */
.help-head { margin-bottom: 70px; max-width: 40rem; }
/* section header row: heading left, CTA top-right */
.section-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 40px; flex-wrap: wrap; margin-bottom: 56px; }
.section-head-row .section-title { max-width: 46rem; flex: 1 1 auto; }
.section-head-row .btn { flex: none; }
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.gcard { position: relative; background: rgba(255,255,255,0.018); border: 1px solid rgba(120,200,240,0.13); border-radius: 20px;
  padding: 40px 36px 44px; overflow: hidden; }
.gcard > * { position: relative; z-index: 1; }
.gcard h3 { font-size: 21px; font-weight: 700; line-height: 1.15; margin: 0 0 14px; letter-spacing: -0.02em; }
.gcard p { color: var(--text-dim); font-size: 17px; margin: 0; }

/* ---------- engagement steps ---------- */
.steps { background: var(--ink-2); }
.steps-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 40px; }
.step { position: relative; padding-top: 40px; }
.step::before { content:""; position: absolute; top:0; left:0; right:0; height: 1px; background: rgba(120,200,240,0.18); }
.step::after { content:""; position: absolute; top:-1px; left:0; width: 0; height: 3px; background: var(--blue-lit); transition: width 1.1s cubic-bezier(.16,1,.3,1); }
.step.in::after { width: 100%; }
.step .num { font-family: 'Overpass', sans-serif; font-size: clamp(56px,6vw,88px); font-weight: 900; line-height: 1;
  letter-spacing: -0.03em; color: var(--blue-lit); margin-bottom: 26px; }
.step h3 { font-size: 22px; font-weight: 700; margin-bottom: 14px; letter-spacing: -0.02em; }
.step p { color: var(--text-dim); font-size: 17px; margin: 0; }

/* ---------- authority + counters ---------- */
.authority-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; align-items: start; }
.authority h2 { max-width: 20ch; }
.authority .btn { margin-top: 32px; }
.stat-row { display: flex; gap: 56px; margin-top: 8px; flex-wrap: wrap; }
.stat .n { font-size: clamp(56px,7vw,92px); font-weight: 900; line-height: 1; letter-spacing: -0.04em;
  color: var(--blue-lit); }
.stat .n .suf { color: var(--blue); }
.stat .l { font-family: 'Overpass Mono', monospace; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-dim); margin-top: 14px; max-width: 20ch; }

/* ---------- recent work ---------- */
.work-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.work-card { position: relative; border-radius: 18px; overflow: hidden; background: var(--ink-2); border: 1px solid rgba(120,200,240,0.12);
  transition: transform .5s cubic-bezier(.16,1,.3,1), border-color .4s; display: block; }
.work-card:hover { transform: translateY(-6px); border-color: rgba(76,198,245,0.4); }
.work-thumb { aspect-ratio: 4/3; position: relative; overflow: hidden; background: var(--blue-deep); }
.work-thumb canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.work-thumb .tag { position: absolute; left: 18px; bottom: 18px; z-index: 2; font-family: 'Overpass Mono', monospace;
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: #bfe8fa; background: rgba(4,18,26,0.5);
  padding: 7px 12px; border-radius: 100px; backdrop-filter: blur(4px); }
.work-card .body { padding: 26px 28px 30px; }
.work-card .meta { font-family: 'Overpass Mono', monospace; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue-lit); margin-bottom: 12px; }
.work-card h3 { font-size: 19px; font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; }
.work-card .arrow { margin-top: 20px; color: var(--text-dim); font-size: 22px; transition: transform .3s, color .3s; display: inline-block; }
.work-card:hover .arrow { transform: translate(4px,-4px); color: var(--blue-lit); }

/* ---------- closing ---------- */
.closing { min-height: 84vh; display: flex; align-items: center; overflow: hidden; text-align: center; }
.closing .wrap { max-width: 1000px; }
.closing .display { font-size: clamp(30px, 3.8vw, 54px); max-width: 100%; margin: 0 auto; }
.closing .lead { margin: 34px auto 44px; max-width: 52ch; }
.closing .hero-actions { justify-content: center; }

/* ---------- footer ---------- */
footer.site { background: var(--ink-2); padding: 90px 0 44px; border-top: 1px solid rgba(120,200,240,0.12); }
.footer-grid { display: grid; grid-template-columns: 1.8fr 1fr 1fr; gap: 48px; padding-bottom: 54px; }
.footer-divider { width: 100%; height: 1px; background: rgba(120,200,240,0.14); }
footer.site .logo svg, footer.site .logo img { height: 48px; width: auto; display: block; margin-bottom: 24px; }
footer.site h4 { color: var(--blue-lit); font-family: 'Overpass', sans-serif; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 600; margin: 0 0 18px; }
footer.site ul { list-style: none; margin: 0; padding: 0; }
footer.site li { margin-bottom: 12px; }
footer.site a, footer.site li { color: var(--text-dim); font-size: 16px; }
footer.site a:hover { color: #fff; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 30px; font-size: 14px; color: var(--text-dim); flex-wrap: wrap; gap: 12px; }
.footer-bottom .linkedin { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px;
  border: 1px solid rgba(120,200,240,0.28); border-radius: 50%; color: var(--text-dim); transition: color .25s, border-color .25s; }
.footer-bottom .linkedin:hover { color: #fff; border-color: rgba(230,246,250,0.75); }
.logo-white .cls-1 { fill: #eef6fa !important; } .logo-white .cls-2 { fill: var(--blue-lit) !important; }

/* ---------- accessibility: skip link, sr-only, focus ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -70px; z-index: 200; background: var(--blue); color: #041018;
  font-weight: 700; padding: 12px 20px; border-radius: 8px; transition: top .2s ease; }
.skip-link:focus { top: 16px; }
a:focus-visible, button:focus-visible, .btn:focus-visible, .nav-toggle:focus-visible, .work-card:focus-visible {
  outline: 2px solid var(--blue-lit); outline-offset: 3px; border-radius: 6px;
}
#main:focus { outline: none; }

/* ---------- header extras + mobile menu ---------- */
.nav-right { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; align-items: center; justify-content: center; background: none; border: 0;
  color: var(--text); font-size: 26px; cursor: pointer; padding: 8px; border-radius: 8px; }
.mobile-menu { position: fixed; left: 0; right: 0; top: 66px; z-index: 90; background: rgba(4,18,26,0.97);
  backdrop-filter: blur(14px); border-bottom: 1px solid rgba(120,200,240,0.14); padding: 20px 24px 32px; }
.mobile-menu[hidden] { display: none; }
.mobile-menu:not([hidden]) { animation: menu-in .28s var(--ease-expo) both; }
@keyframes menu-in { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu a:not(.btn) { font-size: 20px; font-weight: 600; color: var(--text); padding: 16px 2px; border-bottom: 1px solid rgba(120,200,240,0.1); }
.mobile-menu a:not(.btn):hover { color: #fff; }
.mobile-menu .btn { margin-top: 22px; align-self: flex-start; }
@media (min-width: 961px) { .mobile-menu { display: none !important; } }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js .section-title.reveal .wipe { clip-path: none; }
  .js .display .word > span { transform: none; }
  .step::after { width: 100%; }
}

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .wrap { padding: 0 24px; }
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav, header.site.scrolled .nav { height: 66px; }
  .nav .logo img, header.site.scrolled .nav .logo img { height: 32px; }
  .problem-grid, .authority-grid, .help-head { grid-template-columns: 1fr; gap: 32px; }
  .cards { grid-template-columns: 1fr; }
  .gcard.c1,.gcard.c2,.gcard.c3,.gcard.c4 { grid-column: auto; margin: 0; }
  .steps-grid, .work-grid { grid-template-columns: 1fr; }
  section { padding: 80px 0; }
}
@media (max-width: 560px) {
  .hero .display br { display: none; }
}
