/* ============================================================
   FREEDOM PROFITS — design system
   Brand identity + nacreous-grade motion. OKLCH throughout.
   ============================================================ */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { min-height: 100%; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 4px; }

/* ---------- Tokens ---------- */
:root {
  /* surface (cool near-white — deliberately NOT cream) */
  --bg:        oklch(0.986 0.004 250);
  --surface:   oklch(0.968 0.006 252);
  --surface-2: oklch(0.945 0.009 254);

  /* ink */
  --ink:       oklch(0.235 0.032 258);
  --ink-soft:  oklch(0.40 0.028 258);
  --muted:     oklch(0.505 0.02 258);

  /* brand blue (elevated from the logo's sky-blue) */
  --primary:        oklch(0.575 0.172 256);
  --primary-bright: oklch(0.70 0.155 244);
  --primary-ink:    oklch(0.455 0.16 258);   /* accent text on light */
  --primary-wash:   oklch(0.955 0.02 254);   /* tinted panel */

  /* dark sections */
  --navy:      oklch(0.255 0.055 262);
  --navy-deep: oklch(0.185 0.048 264);
  --navy-line: oklch(0.40 0.05 262);

  /* on-dark text */
  --on-dark:      oklch(0.965 0.008 250);
  --on-dark-soft: oklch(0.80 0.02 252);
  --on-dark-mute: oklch(0.66 0.03 254);

  --line: oklch(0.905 0.008 256);

  /* type */
  --display: "Bricolage Grotesque", "Hanken Grotesk", system-ui, sans-serif;
  --sans:    "Hanken Grotesk", system-ui, -apple-system, sans-serif;

  /* scale (fluid) */
  --step--1: clamp(0.82rem, 0.79rem + 0.15vw, 0.9rem);
  --step-0:  clamp(1rem, 0.95rem + 0.25vw, 1.15rem);
  --step-1:  clamp(1.28rem, 1.15rem + 0.6vw, 1.6rem);
  --step-2:  clamp(1.6rem, 1.35rem + 1.1vw, 2.3rem);
  --step-3:  clamp(2.1rem, 1.6rem + 2.2vw, 3.4rem);
  --step-4:  clamp(2.7rem, 1.9rem + 3.6vw, 5rem);
  --step-5:  clamp(3.3rem, 2.2rem + 5.2vw, 6rem);

  /* space */
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --maxw: 1240px;
  --radius: 18px;
  --radius-lg: 28px;

  /* motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-soft: cubic-bezier(0.22, 1, 0.36, 1);

  /* z-scale */
  --z-marquee: 1;
  --z-sticky: 50;
  --z-nav: 100;
  --z-menu: 200;
  --z-toast: 300;
}

/* ---------- Base ---------- */
body {
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; line-height: 1.02; letter-spacing: -0.03em; text-wrap: balance; color: var(--ink); }
p { text-wrap: pretty; }
strong { font-weight: 600; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(4.5rem, 9vw, 9rem); position: relative; }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }
.stack > * + * { margin-top: 1.1rem; }

.eyebrow {
  font-family: var(--sans);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--primary-ink);
  display: inline-flex; align-items: center; gap: 0.6ch;
}
.eyebrow::before { content: ""; width: 1.6rem; height: 1px; background: var(--primary); opacity: 0.7; }
.on-dark .eyebrow { color: var(--primary-bright); }
.on-dark .eyebrow::before { background: var(--primary-bright); }

.lede { font-size: var(--step-1); line-height: 1.4; color: var(--ink-soft); max-width: 46ch; font-weight: 400; }

/* ---------- Buttons ---------- */
.btn {
  --_bg: var(--primary); --_fg: var(--on-dark);
  display: inline-flex; align-items: center; gap: 0.7ch;
  padding: 0.95em 1.5em; border-radius: 100px;
  font-weight: 600; font-size: var(--step-0);
  background: var(--_bg); color: var(--_fg);
  border: 1px solid transparent; cursor: pointer;
  position: relative; overflow: hidden; isolation: isolate;
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out), background-color 0.4s var(--ease-out);
  will-change: transform;
}
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(120deg, var(--primary-bright), var(--primary));
  opacity: 0; transition: opacity 0.4s var(--ease-out);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -12px oklch(0.575 0.172 256 / 0.55); }
.btn:hover::after { opacity: 1; }
.btn .btn__arrow { transition: transform 0.45s var(--ease-out); }
.btn:hover .btn__arrow { transform: translateX(4px); }
.btn--ghost {
  background: transparent; color: var(--ink);
  border-color: var(--line);
}
.btn--ghost::after { display: none; }
.btn--ghost:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); box-shadow: none; }
.on-dark .btn--ghost { color: var(--on-dark); border-color: var(--navy-line); }
.on-dark .btn--ghost:hover { background: var(--on-dark); color: var(--navy-deep); border-color: var(--on-dark); }
.btn--lg { padding: 1.1em 1.9em; font-size: var(--step-1); }

.arrow-link {
  display: inline-flex; align-items: center; gap: 0.6ch;
  font-weight: 600; color: var(--primary-ink);
  transition: gap 0.4s var(--ease-out);
}
.arrow-link:hover { gap: 1.1ch; }
.on-dark .arrow-link { color: var(--primary-bright); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: var(--z-nav);
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 1.1rem var(--gutter);
  transition: background-color 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out), padding 0.5s var(--ease-out), backdrop-filter 0.5s var(--ease-out);
}
.nav.is-scrolled {
  background: color-mix(in oklch, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 1px 0 var(--line), 0 10px 30px -24px oklch(0.235 0.032 258 / 0.5);
  padding-block: 0.7rem;
}
.nav__logo { display: flex; align-items: center; gap: 0.6rem; z-index: 1; }
.nav__logo img { height: 34px; width: auto; }
.nav__links { display: flex; align-items: center; gap: clamp(1rem, 2vw, 2rem); }
.nav__links a { font-size: var(--step--1); font-weight: 500; color: var(--ink-soft); position: relative; padding-block: 0.3rem; transition: color 0.3s var(--ease-out); }
.nav__links a::after { content:""; position:absolute; left:0; bottom:0; width:100%; height:1px; background: var(--primary); transform: scaleX(0); transform-origin: right; transition: transform 0.45s var(--ease-out); }
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after, .nav__links a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav__links a[aria-current="page"] { color: var(--ink); }
.nav__cta { display: flex; align-items: center; gap: 0.75rem; }
.nav__cta .btn { padding: 0.7em 1.2em; font-size: var(--step--1); }
.nav__toggle { display: none; }

/* Mobile menu */
.menu {
  position: fixed; inset: 0; z-index: var(--z-menu);
  background: var(--navy-deep); color: var(--on-dark);
  display: grid; place-content: center; gap: 1rem; text-align: center;
  clip-path: circle(0% at calc(100% - 3rem) 3rem);
  transition: clip-path 0.7s var(--ease-out);
  pointer-events: none;
}
.menu.is-open { clip-path: circle(150% at calc(100% - 3rem) 3rem); pointer-events: auto; }
.menu a { font-family: var(--display); font-size: clamp(2rem, 8vw, 3.2rem); font-weight: 700; letter-spacing: -0.03em; opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease-out), transform .5s var(--ease-out); }
.menu.is-open a { opacity: 1; transform: none; }
.menu.is-open a:nth-child(1){ transition-delay: .12s } .menu.is-open a:nth-child(2){ transition-delay: .18s }
.menu.is-open a:nth-child(3){ transition-delay: .24s } .menu.is-open a:nth-child(4){ transition-delay: .30s }
.menu.is-open a:nth-child(5){ transition-delay: .36s }

@media (max-width: 880px) {
  .nav__links, .nav__cta .btn { display: none; }
  .nav__toggle {
    display: inline-flex; flex-direction: column; gap: 5px; z-index: var(--z-menu);
    width: 46px; height: 46px; align-items: center; justify-content: center;
    background: transparent; border: 1px solid var(--line); border-radius: 50%; cursor: pointer;
  }
  .nav__toggle span { width: 18px; height: 2px; background: var(--ink); transition: transform .4s var(--ease-out), opacity .3s; }
  .nav__toggle.is-open span { background: var(--on-dark); }
  .nav__toggle.is-open span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
  .nav__toggle.is-open span:nth-child(2){ opacity: 0; }
  .nav__toggle.is-open span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }
}

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; padding-top: clamp(8rem, 16vh, 12rem); padding-bottom: clamp(3rem, 7vw, 6rem); overflow: hidden; }
.hero__aurora {
  position: absolute; inset: -20% -10% auto -10%; height: 120%; z-index: -1;
  filter: blur(60px); opacity: 0.9; pointer-events: none;
}
.hero__aurora span { position: absolute; border-radius: 50%; }
.hero__aurora .a1 { width: 46vw; height: 46vw; left: -6vw; top: -8vw; background: radial-gradient(circle, oklch(0.72 0.15 244 / 0.55), transparent 68%); }
.hero__aurora .a2 { width: 40vw; height: 40vw; right: -4vw; top: 2vw; background: radial-gradient(circle, oklch(0.62 0.17 262 / 0.42), transparent 66%); }
.hero__aurora .a3 { width: 30vw; height: 30vw; left: 34vw; top: 16vw; background: radial-gradient(circle, oklch(0.80 0.10 230 / 0.40), transparent 70%); }

.hero__grid { display: grid; gap: clamp(2rem, 4vw, 3.5rem); }
.hero__head { max-width: 100%; }
.hero h1 {
  font-size: var(--step-5);
  letter-spacing: -0.04em;
  line-height: 0.98;
}
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line > span { display: block; }
.hero h1 em { font-style: normal; color: var(--primary); }
.hero__sub { max-width: 52ch; font-size: var(--step-1); color: var(--ink-soft); margin-top: 1.6rem; line-height: 1.45; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2.2rem; }
.hero__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 1.4rem 2.2rem; margin-top: clamp(3rem, 6vw, 5rem); padding-top: 1.6rem; border-top: 1px solid var(--line); }
.hero__meta-item { display: flex; flex-direction: column; gap: 0.15rem; }
.hero__meta-item b { font-family: var(--display); font-size: var(--step-2); font-weight: 700; letter-spacing: -0.03em; color: var(--ink); }
.hero__meta-item span { font-size: var(--step--1); color: var(--muted); }
.hero__meta-sep { width: 1px; height: 34px; background: var(--line); }

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee { border-block: 1px solid var(--line); padding-block: 1.3rem; overflow: hidden; --gap: clamp(2rem,4vw,4rem); background: var(--surface); }
.marquee__label { display: block; text-align:center; font-size: var(--step--1); color: var(--muted); margin-bottom: 1.1rem; letter-spacing: 0.04em; }
.marquee__track { display: flex; gap: var(--gap); width: max-content; animation: marquee 32s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item { display: inline-flex; align-items: center; gap: var(--gap); font-family: var(--display); font-weight: 600; font-size: clamp(1.2rem, 3vw, 1.9rem); letter-spacing: -0.02em; color: var(--ink); white-space: nowrap; }
.marquee__item::after { content: "✦"; color: var(--primary); font-size: 0.7em; }
@keyframes marquee { to { transform: translateX(calc(-50% - var(--gap) / 2)); } }

/* ============================================================
   STATS (dark)
   ============================================================ */
.on-dark { background: var(--navy); color: var(--on-dark); }
.on-dark h2, .on-dark h3, .on-dark h4 { color: var(--on-dark); }
.on-dark p { color: var(--on-dark-soft); }
.stats { background:
    radial-gradient(120% 100% at 100% 0%, oklch(0.34 0.09 262 / 0.9), transparent 60%),
    radial-gradient(80% 90% at 0% 100%, oklch(0.30 0.10 250 / 0.7), transparent 55%),
    var(--navy-deep);
}
.stats__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1.5rem; margin-bottom: clamp(2.5rem,5vw,4rem); }
.stats__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1px; background: var(--navy-line); border: 1px solid var(--navy-line); border-radius: var(--radius-lg); overflow: hidden; }
.stat { background: var(--navy-deep); padding: clamp(1.8rem, 3vw, 2.6rem); display: flex; flex-direction: column; gap: 0.4rem; min-height: 210px; justify-content: space-between; transition: background-color 0.5s var(--ease-out); }
.stat:hover { background: oklch(0.22 0.055 262); }
.stat__num { font-family: var(--display); font-weight: 700; font-size: clamp(3rem, 7vw, 4.6rem); line-height: 1; letter-spacing: -0.04em; color: var(--on-dark); font-variant-numeric: tabular-nums; }
.stat__num .u { color: var(--primary-bright); }
.stat__label { font-size: var(--step-0); color: var(--on-dark-soft); }
.stat__by { font-size: var(--step--1); color: var(--on-dark-mute); }

/* ============================================================
   SERVICES — "The Blueprint" sequence
   ============================================================ */
.svc__head { max-width: 60ch; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.svc__head h2 { font-size: var(--step-4); margin-top: 1rem; }
.blueprint { border-top: 1px solid var(--line); }
.bp {
  display: grid; grid-template-columns: 4.5rem 1fr auto; gap: clamp(1rem,3vw,2.5rem);
  align-items: baseline; padding: clamp(1.8rem, 3.5vw, 2.8rem) 0;
  border-bottom: 1px solid var(--line);
  position: relative; transition: color 0.4s var(--ease-out);
}
.bp::before { content:""; position:absolute; inset:0; background: var(--primary-wash); opacity:0; transition: opacity .5s var(--ease-out); z-index:-1; border-radius: 12px; transform: scaleY(0.9); }
.bp:hover::before { opacity: 1; transform: scaleY(1); }
.bp__no { font-family: var(--display); font-size: var(--step-1); font-weight: 700; color: var(--primary); letter-spacing: -0.02em; }
.bp__body h3 { font-size: var(--step-2); margin-bottom: 0.5rem; }
.bp__body p { max-width: 62ch; color: var(--ink-soft); }
.bp__tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.tag { font-size: var(--step--1); padding: 0.3em 0.85em; border: 1px solid var(--line); border-radius: 100px; color: var(--muted); background: var(--bg); }
.bp__go { align-self: center; font-size: 1.5rem; color: var(--muted); transition: transform .45s var(--ease-out), color .4s; }
.bp:hover .bp__go { transform: translate(4px, -4px); color: var(--primary); }
@media (max-width: 720px){ .bp { grid-template-columns: 3rem 1fr; } .bp__go { display: none; } }

/* ============================================================
   ABOUT
   ============================================================ */
.about__grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.about__media { position: relative; max-width: 400px; justify-self: start; }
.about__media img { width: 100%; border-radius: var(--radius-lg); aspect-ratio: 4/5; object-fit: cover; }
.about__media figcaption { position: absolute; left: 1.2rem; bottom: 1.2rem; right: 1.2rem; background: color-mix(in oklch, var(--navy-deep) 78%, transparent); backdrop-filter: blur(8px); color: var(--on-dark); padding: 1rem 1.2rem; border-radius: 14px; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.about__media figcaption b { font-family: var(--display); font-size: var(--step-1); display:block; }
.about__media figcaption span { font-size: var(--step--1); color: var(--on-dark-mute); }
.about__badge { position: absolute; top: 1.2rem; right: 1.2rem; background: var(--bg); border-radius: 100px; padding: 0.5rem 1rem; font-size: var(--step--1); font-weight:600; box-shadow: 0 12px 30px -16px oklch(0.235 0.032 258 / 0.45); }
.about__body h2 { font-size: var(--step-3); margin-bottom: 1.3rem; }
.about__body p { color: var(--ink-soft); max-width: 52ch; }
.about__list { margin-top: 1.8rem; display: grid; gap: 0.9rem; }
.about__list li { display: flex; gap: 0.8rem; align-items: flex-start; }
.about__list svg { flex: none; margin-top: 0.25rem; color: var(--primary); }

/* ============================================================
   PROCESS
   ============================================================ */
.process { background: var(--surface); }
.process__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: clamp(1.5rem,3vw,2.5rem); margin-top: clamp(2.5rem,5vw,3.5rem); }
.pstep { padding-top: 1.4rem; border-top: 2px solid var(--ink); }
.pstep__k { font-size: var(--step--1); font-weight:600; color: var(--primary-ink); letter-spacing: 0.03em; }
.pstep h3 { font-size: var(--step-2); margin: 0.7rem 0 0.6rem; }
.pstep p { color: var(--ink-soft); }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.quotes__head { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:end; gap:1.5rem; margin-bottom: clamp(2.5rem,5vw,3.5rem); }
.quotes__grid { columns: 2; column-gap: clamp(1.2rem, 2.5vw, 2rem); }
@media (max-width: 760px){ .quotes__grid { columns: 1; } }
.quote { break-inside: avoid; margin-bottom: clamp(1.2rem,2.5vw,2rem); background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 2.6vw, 2.2rem); transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), border-color .4s; }
.quote:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -30px oklch(0.235 0.032 258 / 0.4); border-color: color-mix(in oklch, var(--primary) 40%, var(--line)); }
.quote__mark { font-family: var(--display); font-size: 3rem; line-height: 0.6; color: var(--primary); opacity: 0.4; }
.quote p { margin: 0.6rem 0 1.4rem; color: var(--ink); font-size: var(--step-0); }
.quote--feat { background: var(--navy-deep); color: var(--on-dark); border: none; }
.quote--feat p { color: var(--on-dark); font-size: var(--step-1); line-height: 1.5; }
.quote--feat .quote__mark { color: var(--primary-bright); opacity: 0.6; }
.quote__by { display: flex; align-items: center; gap: 0.8rem; }
.quote__av { width: 42px; height: 42px; border-radius: 50%; background: var(--primary-wash); display: grid; place-items: center; font-weight: 700; color: var(--primary-ink); font-family: var(--display); flex: none; }
.quote--feat .quote__av { background: oklch(0.4 0.1 260); color: var(--on-dark); }
.quote__by b { display: block; font-weight: 600; font-size: var(--step-0); }
.quote__by span { font-size: var(--step--1); color: var(--muted); }
.quote--feat .quote__by span { color: var(--on-dark-mute); }
.quote__stars { color: var(--primary); letter-spacing: 2px; font-size: 0.9rem; margin-left: auto; }
.quote--feat .quote__stars { color: var(--primary-bright); }

/* ============================================================
   CTA / LEAD FORM
   ============================================================ */
.cta { position: relative; overflow: hidden; }
.cta__inner { background:
    radial-gradient(120% 120% at 0% 0%, oklch(0.34 0.10 258 / 0.95), transparent 55%),
    radial-gradient(100% 100% at 100% 100%, oklch(0.30 0.11 244 / 0.8), transparent 55%),
    var(--navy-deep);
  color: var(--on-dark); border-radius: var(--radius-lg); padding: clamp(2rem, 5vw, 4.5rem);
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start;
}
@media (max-width: 860px){ .cta__inner { grid-template-columns: 1fr; } }
.cta__copy h2 { font-size: var(--step-4); }
.cta__copy p { color: var(--on-dark-soft); margin-top: 1.2rem; max-width: 40ch; }
.cta__points { margin-top: 2rem; display: grid; gap: 0.9rem; }
.cta__points li { display: flex; gap: 0.7rem; align-items: center; color: var(--on-dark-soft); }
.cta__points svg { color: var(--primary-bright); flex: none; }

.form { display: grid; gap: 1rem; background: color-mix(in oklch, var(--on-dark) 6%, transparent); border: 1px solid var(--navy-line); border-radius: var(--radius); padding: clamp(1.4rem, 3vw, 2rem); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 520px){ .form__row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 0.4rem; }
.field label { font-size: var(--step--1); color: var(--on-dark-soft); font-weight: 500; }
.field input, .field select, .field textarea {
  background: oklch(0.16 0.04 264); border: 1px solid var(--navy-line); border-radius: 12px;
  padding: 0.85em 1em; color: var(--on-dark); font-size: var(--step-0); width: 100%;
  transition: border-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.field textarea { resize: vertical; min-height: 96px; }
.field input::placeholder, .field textarea::placeholder { color: var(--on-dark-mute); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary-bright); box-shadow: 0 0 0 3px oklch(0.70 0.155 244 / 0.25); }
.form .btn { width: 100%; justify-content: center; margin-top: 0.4rem; }
.form__note { font-size: var(--step--1); color: var(--on-dark-mute); text-align: center; }
.form__success { display: none; text-align: center; padding: 2rem 1rem; }
.form__success svg { color: var(--primary-bright); margin: 0 auto 1rem; }
.form.is-sent .form__body { display: none; }
.form.is-sent .form__success { display: block; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--navy-deep); color: var(--on-dark-soft); padding-block: clamp(3.5rem, 6vw, 5rem) 2rem; }
.footer__top { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2.5rem; padding-bottom: 3rem; border-bottom: 1px solid var(--navy-line); }
@media (max-width: 760px){ .footer__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px){ .footer__top { grid-template-columns: 1fr; } }
.footer__brand img { height: 34px; filter: brightness(0) invert(1); opacity: 0.95; }
.footer__brand p { margin-top: 1.1rem; max-width: 34ch; color: var(--on-dark-mute); }
.footer__col h4 { font-family: var(--sans); font-size: var(--step--1); text-transform: uppercase; letter-spacing: 0.08em; color: var(--on-dark-mute); margin-bottom: 1.1rem; font-weight: 600; }
.footer__col a { display: block; padding: 0.35rem 0; color: var(--on-dark-soft); transition: color 0.3s, transform 0.3s var(--ease-out); }
.footer__col a:hover { color: var(--on-dark); transform: translateX(3px); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-top: 1.8rem; font-size: var(--step--1); color: var(--on-dark-mute); }

/* ============================================================
   REVEAL — content is visible by default; JS enhances.
   ============================================================ */
[data-reveal] { will-change: transform, opacity; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .marquee__track { animation: none; }
  .hero__aurora { opacity: 0.6; }
}

/* ============================================================
   INTERIOR PAGES
   ============================================================ */
.page-hero { position: relative; padding-top: clamp(9rem, 20vh, 13rem); padding-bottom: clamp(3rem, 6vw, 5rem); overflow: hidden; }
.page-hero__aurora { position: absolute; inset: -30% -10% auto -10%; height: 130%; z-index: -1; filter: blur(70px); opacity: 0.8; pointer-events: none; }
.page-hero__aurora span { position: absolute; border-radius: 50%; }
.page-hero__aurora .a1 { width: 42vw; height: 42vw; left: 40vw; top: -10vw; background: radial-gradient(circle, oklch(0.72 0.15 244 / 0.42), transparent 68%); }
.page-hero__aurora .a2 { width: 34vw; height: 34vw; left: -6vw; top: 4vw; background: radial-gradient(circle, oklch(0.62 0.17 262 / 0.32), transparent 66%); }
.page-hero h1 { font-size: var(--step-4); letter-spacing: -0.04em; line-height: 1.0; max-width: 18ch; }
.page-hero h1 em { font-style: normal; color: var(--primary); }
.page-hero p { font-size: var(--step-1); color: var(--ink-soft); max-width: 56ch; margin-top: 1.4rem; line-height: 1.45; }
.page-hero__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2rem; }

.section-head { max-width: 60ch; margin-bottom: clamp(2.5rem, 5vw, 3.8rem); }
.section-head h2 { font-size: var(--step-3); margin-top: 1rem; }
.section-head p { color: var(--ink-soft); margin-top: 1rem; font-size: var(--step-1); line-height: 1.45; }

/* Service detail rows (consulting) */
.svc-detail { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; padding-block: clamp(2.5rem, 5vw, 4.5rem); border-bottom: 1px solid var(--line); }
.svc-detail:nth-child(even) .svc-detail__media { order: -1; }
@media (max-width: 800px){ .svc-detail { grid-template-columns: 1fr; } .svc-detail:nth-child(even) .svc-detail__media { order: 0; } }
.svc-detail__no { font-family: var(--display); font-size: var(--step-1); color: var(--primary); font-weight: 700; }
.svc-detail h3 { font-size: var(--step-2); margin: 0.6rem 0 0.9rem; }
.svc-detail p { color: var(--ink-soft); max-width: 52ch; }
.svc-detail ul { margin-top: 1.3rem; display: grid; gap: 0.7rem; }
.svc-detail li { display: flex; gap: 0.7rem; align-items: flex-start; color: var(--ink-soft); }
.svc-detail li svg { color: var(--primary); flex: none; margin-top: 0.25rem; }
.svc-detail__media { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16/9; }
.svc-detail__media img { width: 100%; height: 100%; object-fit: cover; }

/* Packages */
.pkg-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: clamp(1.2rem, 2.5vw, 1.8rem); align-items: stretch; }
.pkg { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.6rem, 3vw, 2.3rem); background: var(--bg); transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out); }
.pkg:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -34px oklch(0.235 0.032 258 / 0.4); }
.pkg--feature { background: var(--navy-deep); color: var(--on-dark); border-color: transparent; position: relative; }
.pkg--feature h3, .pkg--feature .pkg__price { color: var(--on-dark); }
.pkg--feature p, .pkg--feature li { color: var(--on-dark-soft); }
.pkg__tag { position: absolute; top: 1.3rem; right: 1.3rem; font-size: var(--step--1); font-weight: 600; color: var(--navy-deep); background: var(--primary-bright); padding: 0.25em 0.8em; border-radius: 100px; }
.pkg h3 { font-size: var(--step-1); }
.pkg__price { font-family: var(--display); font-size: var(--step-2); font-weight: 700; margin: 0.4rem 0 0.2rem; letter-spacing: -0.02em; }
.pkg__price span { font-family: var(--sans); font-size: var(--step--1); font-weight: 500; color: var(--muted); }
.pkg--feature .pkg__price span { color: var(--on-dark-mute); }
.pkg > p { color: var(--ink-soft); margin-bottom: 1.3rem; }
.pkg ul { display: grid; gap: 0.7rem; margin-bottom: 1.6rem; }
.pkg li { display: flex; gap: 0.6rem; align-items: flex-start; color: var(--ink-soft); font-size: var(--step-0); }
.pkg li svg { color: var(--primary); flex: none; margin-top: 0.2rem; }
.pkg--feature li svg { color: var(--primary-bright); }
.pkg .btn { margin-top: auto; justify-content: center; }
.pkg--feature .btn--ghost { color: var(--on-dark); border-color: var(--navy-line); }

/* Article grid */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: clamp(1.4rem, 3vw, 2.2rem); }
.post { display: flex; flex-direction: column; border-radius: var(--radius-lg); overflow: hidden; background: var(--bg); border: 1px solid var(--line); transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out); }
.post:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -34px oklch(0.235 0.032 258 / 0.42); }
.post__media { aspect-ratio: 16/10; overflow: hidden; }
.post__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease-out); }
.post:hover .post__media img { transform: scale(1.05); }
.post__body { padding: clamp(1.3rem, 2.5vw, 1.7rem); display: flex; flex-direction: column; gap: 0.7rem; flex: 1; }
.post__cat { font-size: var(--step--1); font-weight: 600; color: var(--primary-ink); }
.post__body h3 { font-size: var(--step-1); line-height: 1.2; }
.post__body p { color: var(--ink-soft); font-size: var(--step-0); }
.post__meta { margin-top: auto; padding-top: 0.9rem; font-size: var(--step--1); color: var(--muted); display: flex; gap: 0.6rem; align-items: center; }
.post--wide { grid-column: 1 / -1; display: grid; grid-template-columns: 1.2fr 1fr; }
.post--wide .post__media { aspect-ratio: auto; }
@media (max-width: 720px){ .post--wide { grid-template-columns: 1fr; } .post--wide .post__media { aspect-ratio: 16/10; } }

/* Video grid — real YouTube thumbnails (which carry their own text), so title sits below the thumb */
.vid-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: clamp(1.4rem, 3vw, 2.2rem); }
.vid { display: flex; flex-direction: column; border-radius: var(--radius-lg); overflow: hidden; background: var(--bg); border: 1px solid var(--line); transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out); }
.vid:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -34px oklch(0.235 0.032 258 / 0.45); }
.vid__thumb { position: relative; aspect-ratio: 16/9; overflow: hidden; background: var(--navy-deep); }
.vid__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease-out); }
.vid:hover .vid__thumb img { transform: scale(1.05); }
.vid__thumb::after { content: ""; position: absolute; inset: 0; background: oklch(0.185 0.048 264 / 0.28); opacity: 0; transition: opacity .4s var(--ease-out); }
.vid:hover .vid__thumb::after { opacity: 1; }
.vid__play { position: absolute; inset: 0; margin: auto; width: 60px; height: 60px; border-radius: 50%; background: color-mix(in oklch, var(--bg) 88%, transparent); display: grid; place-items: center; z-index: 2; transition: transform .4s var(--ease-out), background-color .4s; }
.vid__play svg { color: var(--primary); margin-left: 3px; }
.vid:hover .vid__play { transform: scale(1.12); background: var(--bg); }
.vid__dur { position: absolute; right: .7rem; bottom: .7rem; z-index: 2; background: oklch(0.185 0.048 264 / 0.9); color: var(--on-dark); font-size: var(--step--1); font-weight: 600; line-height: 1; padding: .3em .5em; border-radius: 7px; font-variant-numeric: tabular-nums; }
.vid__meta { padding: clamp(1.1rem, 2.2vw, 1.5rem); display: flex; flex-direction: column; gap: .45rem; flex: 1; }
.vid__cat { font-size: var(--step--1); font-weight: 600; color: var(--primary-ink); }
.vid__meta b { font-family: var(--display); font-size: var(--step-1); font-weight: 700; letter-spacing: -0.02em; line-height: 1.18; color: var(--ink); }

/* FAQ */
.faq { max-width: 820px; margin-inline: auto; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q { width: 100%; text-align: left; background: none; border: none; cursor: pointer; padding: 1.5rem 0; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; font-family: var(--display); font-size: var(--step-1); font-weight: 600; color: var(--ink); letter-spacing: -0.02em; }
.faq__q .ic { flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: transform .45s var(--ease-out), background-color .4s, color .4s; }
.faq__item[open] .faq__q .ic { transform: rotate(45deg); background: var(--primary); color: var(--on-dark); border-color: var(--primary); }
.faq__a { padding: 0 0 1.6rem; color: var(--ink-soft); max-width: 68ch; line-height: 1.6; }
.faq__q::-webkit-details-marker { display: none; }
details.faq__item summary { list-style: none; }
details.faq__item summary::-webkit-details-marker { display: none; }

/* Contact split */
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 860px){ .contact-grid { grid-template-columns: 1fr; } }
.contact-info { display: grid; gap: 1.6rem; }
.contact-info__item { display: flex; gap: 1rem; align-items: flex-start; }
.contact-info__item .ic { flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--primary-wash); display: grid; place-items: center; color: var(--primary-ink); }
.contact-info__item b { display: block; font-family: var(--display); font-size: var(--step-1); letter-spacing: -0.02em; }
.contact-info__item a, .contact-info__item span { color: var(--ink-soft); }
.contact-info__item a:hover { color: var(--primary-ink); }

/* Light form variant (connect page) */
.form--light { background: var(--surface); border-color: var(--line); }
.form--light .field label { color: var(--ink-soft); }
.form--light .field input, .form--light .field select, .form--light .field textarea { background: var(--bg); border-color: var(--line); color: var(--ink); }
.form--light .field input::placeholder, .form--light .field textarea::placeholder { color: var(--muted); }
.form--light .form__note { color: var(--muted); }
.form--light .form__success h3 { color: var(--ink); }
.form--light .form__success p { color: var(--ink-soft); }

.cta-band { text-align: center; }
.cta-band h2 { font-size: var(--step-4); max-width: 20ch; margin-inline: auto; }
.cta-band p { color: var(--on-dark-soft); max-width: 46ch; margin: 1.2rem auto 2rem; font-size: var(--step-1); }

/* Form error message */
.form__error { color: oklch(0.74 0.17 22); font-size: var(--step--1); text-align: center; margin-top: .6rem; }
.form__error:empty { display: none; }
.form--light .form__error { color: oklch(0.55 0.2 25); }

/* ============================================================
   SCROLL LAYER — nacreous-style motion
   ============================================================ */
.scroll-progress {
  position: fixed; top: 0; left: 0; width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-bright));
  transform: scaleX(0); transform-origin: left; z-index: 150; pointer-events: none;
}

/* Feature media gets slight overscale so parallax drift never reveals an edge */
.about__media img { scale: 1.12; }

/* Industries strip — big words that scrub horizontally with scroll */
.iscroll { overflow: hidden; background: var(--navy-deep); padding-block: clamp(2.2rem, 5vw, 4.2rem); }
.iscroll__row { display: flex; align-items: center; gap: clamp(1.4rem, 4vw, 3.4rem); width: max-content; white-space: nowrap; will-change: transform; padding-inline: 6vw; }
.iscroll__row span { font-family: var(--display); font-weight: 700; font-size: clamp(2rem, 7vw, 5.2rem); letter-spacing: -0.035em; line-height: 1; color: var(--on-dark); }
.iscroll__row span.o { color: transparent; -webkit-text-stroke: 1.5px var(--primary-bright); text-stroke: 1.5px var(--primary-bright); }
.iscroll__row span.dot { color: var(--primary-bright); }

@media (prefers-reduced-motion: reduce) {
  .scroll-progress { display: none; }
  .about__media img { scale: 1; }
  .iscroll__row { animation: iscroll-fallback 40s linear infinite; }
}
@keyframes iscroll-fallback { to { transform: translateX(-30%); } }

/* ============================================================
   PREMIUM MOTION LAYER — cursor, curtain, WebGL, odometer
   ============================================================ */

/* --- Custom cursor (desktop) --- */
.has-custom-cursor, .has-custom-cursor a, .has-custom-cursor button, .has-custom-cursor summary, .has-custom-cursor [data-magnetic] { cursor: none; }
.has-custom-cursor input, .has-custom-cursor textarea, .has-custom-cursor select { cursor: auto; }
.cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; z-index: 400; pointer-events: none; border-radius: 50%; opacity: 0; }
html.cursor-ready .cursor-dot, html.cursor-ready .cursor-ring { opacity: 1; }
.cursor-dot { width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; background: var(--primary); transition: opacity .3s; }
.cursor-ring { width: 40px; height: 40px; margin: -20px 0 0 -20px; border: 1.5px solid color-mix(in oklch, var(--primary) 55%, transparent); transition: opacity .3s, scale .35s var(--ease-out), background-color .3s, border-color .3s; }
.cursor-hover .cursor-ring { scale: 1.7; background: color-mix(in oklch, var(--primary) 12%, transparent); border-color: transparent; }
.cursor-hover .cursor-dot { opacity: 0; }
.cursor-down .cursor-ring { scale: 0.8; }

/* --- Curtain (intro loader + page transitions) --- */
.curtain { position: fixed; inset: 0; z-index: 9999; background: var(--navy-deep); display: grid; place-items: center; transform: translateY(-100%); will-change: transform; }
html.curtain-cover .curtain { transform: translateY(0); }
.curtain__mark { display: flex; align-items: center; gap: .85rem; }
.curtain__mark img { height: 40px; width: auto; filter: brightness(0) invert(1); }
.curtain__mark span { font-family: var(--display); font-weight: 700; font-size: var(--step-2); letter-spacing: -0.03em; color: var(--on-dark); }

/* --- WebGL hero canvas --- */
.hero__webgl { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; opacity: 0; transition: opacity 1.2s ease; pointer-events: none; }
.has-webgl-hero .hero__webgl { opacity: 0.9; }
.has-webgl-hero .hero__aurora { opacity: 0.22; }

/* --- Odometer digits --- */
.odo-reel { display: inline-block; overflow: hidden; height: 1em; line-height: 1; vertical-align: bottom; }
.odo-strip { display: flex; flex-direction: column; will-change: transform; }
.odo-d { height: 1em; line-height: 1; display: flex; align-items: center; justify-content: center; }
.odo-fixed { display: inline-block; vertical-align: bottom; }

@media (prefers-reduced-motion: reduce) {
  .cursor-dot, .cursor-ring { display: none; }
  .has-custom-cursor, .has-custom-cursor a, .has-custom-cursor button { cursor: auto; }
  .curtain { display: none !important; }
  .hero__webgl { display: none; }
}
