/* Accuval: boutique corporate finance, Cyprus.
   Layout: fluid cinematic opening -> DAQ-scale uppercase hero -> manifesto over the same fluid,
   then editorial sections that each take a different form (columns, interactive panel, ledger rows, logo track),
   ending with the fluid returning behind the contact section. Palette colours only. */

:root {
  /* Brand palette (AccuVal ColourPalette.pdf) */
  --navy: #0C193A;
  --blue: #006DDA;
  --sky: #96D4F3;
  --peri: #9BBFFB;
  --violet: #4A32A0;
  --black: #000;
  --white: #fff;

  /* Mixes of palette colours only */
  --navy-deep: #081229;                     /* navy 70% + black */
  --ink: var(--white);
  --ink-2: rgba(255, 255, 255, .78);
  --ink-3: rgba(255, 255, 255, .62);
  --edge: rgba(155, 191, 251, .12);
  --edge-2: rgba(155, 191, 251, .24);
  --edge-3: rgba(150, 212, 243, .55);
  --field-edge: rgba(155, 191, 251, .52);   /* >= 3:1 against the form panel */
  --panel: rgba(8, 18, 41, .62);

  /* Type: Jost (Futura lineage, matches the wordmark) for display; Instrument Sans for reading */
  --font-display: "Jost", "Futura PT", "Futura", "Century Gothic", system-ui, sans-serif;
  --font-body: "Instrument Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --fs-label: .8125rem;   /* 13px floor for any text */
  --fs-small: .875rem;
  --fs-body: 1rem;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);

  --gutter: clamp(18px, 5vw, 72px);
  --maxw: 1440px;
  --header-h: 80px;
  --section-y: clamp(84px, 9.5vw, 144px);

  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--header-h); }
@media (prefers-reduced-motion: no-preference) { html:not(.lenis) { scroll-behavior: smooth; } }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  background: var(--navy);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--sky); color: var(--navy); }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip {
  position: absolute; left: 16px; top: -100px; z-index: 300;
  background: var(--sky); color: var(--navy); padding: 12px 18px; font-weight: 600;
}
.skip:focus { top: calc(12px + env(safe-area-inset-top, 0px)); }

.arr { width: 12px; height: 12px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .35s var(--ease-out); }

/* ---------- Fluid background ---------- */
.ambient {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 55% at 72% 62%, rgba(0, 109, 218, .42) 0%, rgba(0, 109, 218, 0) 70%),
    radial-gradient(42% 45% at 18% 28%, rgba(74, 50, 160, .32) 0%, rgba(74, 50, 160, 0) 70%),
    var(--navy-deep);
}
.ambient canvas { width: 100%; height: 100%; display: block; }
.no-webgl .ambient canvas { display: none; }

/* ---------- Buttons and links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 18px;
  min-height: 52px; padding: 0 22px;
  font-family: var(--font-body); font-size: .9375rem; font-weight: 600; line-height: 1.2;
  border: 1px solid transparent; border-radius: 0;
  transition: background-color .3s var(--ease-out), color .3s var(--ease-out), border-color .3s var(--ease-out), transform .3s var(--ease-out);
  touch-action: manipulation;
}
.btn:hover { transform: translateY(-2px); }
.btn:hover .arr:not(.arr--down) { transform: translate(2px, -2px); }
.btn:hover .arr--down { transform: translateY(2px); }
.btn--primary { background: var(--sky); color: var(--navy); border-color: var(--sky); }
.btn--primary:hover { background: var(--white); border-color: var(--white); }
.btn--ghost { border-color: rgba(155, 191, 251, .45); color: var(--white); background: rgba(12, 25, 58, .3); }
.btn--ghost:hover { border-color: var(--sky); }
.btn--ghost[aria-disabled="true"] { cursor: default; transform: none; }
.btn--ghost[aria-disabled="true"]:hover { border-color: rgba(155, 191, 251, .45); }
.btn--block { width: 100%; justify-content: space-between; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

.inline-link {
  display: inline-flex; align-items: center; gap: 14px; margin-top: 8px;
  color: var(--sky); font-size: .9375rem; font-weight: 600;
  padding-bottom: 9px; border-bottom: 1px solid rgba(150, 212, 243, .45);
  transition: border-color .3s, color .3s;
}
.inline-link:hover { color: var(--white); border-color: var(--white); }
.inline-link:hover .arr { transform: translate(2px, -2px); }

.pending-tag {
  display: inline-block; margin-left: 10px; padding: 1px 8px;
  font-size: var(--fs-label); font-weight: 500; line-height: 1.6;
  border: 1px dashed currentColor; color: var(--peri); vertical-align: middle; white-space: nowrap;
}
.pending-tag--inline { margin-left: 6px; }
.is-placeholder { color: var(--peri); border-bottom: 1px dashed currentColor; }
a.is-pending { cursor: default; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding-top: env(safe-area-inset-top, 0px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
}
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(8, 18, 41, .66);
  -webkit-backdrop-filter: saturate(140%) blur(16px);
  backdrop-filter: saturate(140%) blur(16px);
  border-bottom: 1px solid var(--edge);
  opacity: 0; transition: opacity .5s var(--ease-out);
}
.site-header.is-scrolled::before { opacity: 1; }
.motion .site-header:not(.is-revealed):not(:focus-within) { opacity: 0; transform: translateY(-12px); pointer-events: none; }
.site-header__inner {
  max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter);
  height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { position: relative; z-index: 2; display: block; height: 44px; aspect-ratio: 510 / 176; }
.brand img { width: 100%; height: 100%; }

.nav__list { display: flex; align-items: center; gap: clamp(22px, 2.8vw, 40px); font-size: var(--fs-small); }
.nav__list a:not(.nav__cta) { color: var(--ink-2); padding-block: 10px; transition: color .25s; }
.nav__list a:not(.nav__cta):hover, .nav__list a[aria-current="true"] { color: var(--sky); }
.nav__cta {
  display: inline-flex; align-items: center; gap: 10px; min-height: 42px; padding: 0 17px;
  border: 1px solid rgba(255, 255, 255, .5); color: var(--white); font-weight: 500;
  transition: background-color .3s, color .3s, border-color .3s;
}
.nav__cta:hover { background: var(--sky); border-color: var(--sky); color: var(--navy); }
.nav__toggle { display: none; }

@media (max-width: 959px) {
  :root { --header-h: 68px; }
  .brand { height: 38px; }
  .nav__toggle {
    position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 12px;
    min-height: 44px; padding: 0 4px; font-size: .9375rem;
  }
  .nav__toggle-icon { display: grid; gap: 6px; width: 22px; }
  .nav__toggle-icon span { display: block; height: 1.5px; background: currentColor; transition: transform .4s var(--ease-out); }
  .nav-open .nav__toggle-icon span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .nav-open .nav__toggle-icon span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
  .nav__list {
    position: fixed; inset: 0; z-index: 1;
    flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px;
    padding: calc(var(--header-h) + env(safe-area-inset-top, 0px)) var(--gutter) 48px;
    background:
      radial-gradient(70% 50% at 100% 100%, rgba(0, 109, 218, .35) 0%, rgba(0, 109, 218, 0) 70%),
      var(--navy-deep);
    font-family: var(--font-display); font-size: clamp(2.1rem, 9vw, 3rem); font-weight: 300; line-height: 1.2;
    opacity: 0; visibility: hidden; transition: opacity .4s var(--ease-out), visibility 0s .4s;
  }
  .nav__list a:not(.nav__cta) { display: block; padding-block: 6px; color: var(--white); }
  .nav__cta { margin-top: 22px; font-family: var(--font-body); font-size: 1rem; min-height: 52px; padding: 0 22px; }
  .nav-open .nav__list { opacity: 1; visibility: visible; transition: opacity .4s var(--ease-out); }
  .nav-open .site-header::before { opacity: 0; }
  .nav-open .site-header { opacity: 1 !important; transform: none !important; pointer-events: auto !important; }
  .nav-open { overflow: hidden; }
}

/* ---------- 00 Opening + 01 Hero ---------- */
.cinema { position: relative; }
.opening__stage { position: relative; }
.intro {
  min-height: 100vh; min-height: 100svh;
  display: grid; place-content: center; justify-items: center; gap: 26px;
  padding: var(--header-h) var(--gutter);
  text-align: center;
}
.intro__statement {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, .95rem + .8vw, 1.7rem);
  font-weight: 300; letter-spacing: .06em; line-height: 1.5;
  color: rgba(255, 255, 255, .94);
}
.intro__statement .w { display: inline-block; }
.intro__rule { display: block; width: 56px; height: 1px; background: linear-gradient(90deg, rgba(150, 212, 243, 0), var(--sky), rgba(150, 212, 243, 0)); }
.intro__cue {
  position: absolute; left: 50%; bottom: calc(30px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%);
  display: grid; justify-items: center; gap: 12px; padding: 6px;
  font-size: var(--fs-label); letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3);
}
.intro__cue-line { position: relative; width: 1px; height: 48px; background: rgba(155, 191, 251, .2); overflow: hidden; }
.intro__cue-line::after { content: ""; position: absolute; inset: 0; background: var(--sky); transform: translateY(-100%); }

.hero { position: relative; padding-block: 12vh clamp(64px, 12vh, 140px); }
.hero__kicker { font-size: var(--fs-label); font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--sky); }
.hero__title {
  margin-top: clamp(30px, 5vh, 52px);
  font-family: var(--font-display); text-transform: uppercase;
  font-size: clamp(1.9rem, 5.55vw, 7rem); line-height: .96;
}
.hero__line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__line > span { display: block; }
.hero__line--thin { font-weight: 200; letter-spacing: -.005em; }
.hero__line--bold { font-weight: 700; letter-spacing: -.012em; }
.hero__foot {
  margin-top: clamp(26px, 4.5vh, 52px); padding-top: clamp(20px, 3vh, 28px);
  border-top: 1px solid var(--edge-2);
  display: grid; gap: 24px 48px; align-items: end;
}
.hero__lede { max-width: 50ch; font-size: clamp(1rem, .92rem + .25vw, 1.0625rem); line-height: 1.6; color: var(--ink-2); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (min-width: 960px) { .hero__foot { grid-template-columns: minmax(0, 1fr) auto; } }
@media (max-width: 639px) {
  .hero__kicker { letter-spacing: .12em; }
  .hero__title { font-size: clamp(1.9rem, 8.85vw, 2.9rem); }
  .hero__actions .btn { flex: 1 1 100%; justify-content: space-between; }
}

/* Pinned, scroll-driven version (JS adds .motion unless reduced motion is requested) */
.motion .opening { height: 270vh; }
.motion .opening__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.motion .opening__layer { position: absolute; inset: 0; }
.motion .intro {
  opacity: calc(1 - var(--a, 0));
  transform: scale(calc(1 + var(--a, 0) * .05));
  filter: blur(calc(var(--a, 0) * 6px));
}
.motion .hero { display: flex; align-items: flex-end; padding-block: var(--header-h) clamp(40px, 9vh, 110px); }
.motion .hero__inner { width: 100%; }
.motion .hero__kicker { opacity: var(--k, 0); transform: translateY(calc((1 - var(--k, 0)) * 14px)); }
.motion .hero__line--thin > span { transform: translateY(calc((1 - var(--l1, 0)) * 108%)); }
.motion .hero__line--bold > span { transform: translateY(calc((1 - var(--l2, 0)) * 108%)); }
.motion .hero__foot { opacity: var(--f, 0); transform: translateY(calc((1 - var(--f, 0)) * 20px)); border-top-color: rgba(155, 191, 251, calc(var(--f, 0) * .24)); }
.motion .opening__layer.is-off { pointer-events: none; }

/* Load sequence for the opening statement */
.motion .intro .w { opacity: 0; filter: blur(10px); transform: translateY(8px); }
.motion .intro__rule { transform: scaleX(0); }
.motion .intro__cue { opacity: 0; }
.motion .is-loaded .intro .w { animation: word-in 1.8s var(--ease-out) forwards; animation-delay: calc(1s + var(--i) * .16s); }
.motion .is-loaded .intro__rule { animation: rule-in 1.6s var(--ease-out) 2.2s forwards; }
.motion .is-loaded .intro__cue { animation: fade-in 1.2s var(--ease-out) 2.8s forwards; }
.motion .is-loaded .intro__cue-line::after { animation: cue 2.6s var(--ease-io) 3.4s infinite; }

@keyframes word-in { to { opacity: 1; filter: blur(0); transform: none; } }
@keyframes rule-in { to { transform: scaleX(1); } }
@keyframes fade-in { to { opacity: 1; } }
@keyframes cue { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

/* ---------- 02 Manifesto (over the calmed fluid) ---------- */
.manifesto { position: relative; }
.manifesto__stage { display: flex; align-items: center; min-height: 100svh; padding-block: 14vh; }
.manifesto__text {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, .75rem + 2.45vw, 3.05rem);
  font-weight: 200; line-height: 1.14; letter-spacing: .01em; text-transform: uppercase;
  max-width: 24em; text-wrap: pretty;
  color: rgba(255, 255, 255, .86);
}
.manifesto__text strong { font-weight: 700; color: var(--sky); }
.motion .manifesto { height: 240vh; }
.motion .manifesto__stage { position: sticky; top: 0; height: 100vh; height: 100svh; min-height: 0; padding-block: 0; }
/* Unrevealed words stay legible; revealed words settle just below full white */
.motion .manifesto__text .mw { color: rgba(255, 255, 255, .34); transition: color .5s var(--ease-out); }
.motion .manifesto__text .mw.on { color: rgba(255, 255, 255, .86); }
/* Key words look like every other unrevealed word until their turn, then switch to bold light blue in place */
.motion .manifesto__text .mw--key { position: relative; display: inline-block; white-space: nowrap; }
.motion .manifesto__text .mw__thin { font-weight: 200; transition: opacity .45s var(--ease-out); }
.motion .manifesto__text .mw__bold {
  position: absolute; left: 0; top: 0; font-weight: 700; letter-spacing: .01em; color: var(--sky);
  opacity: 0; transition: opacity .6s var(--ease-out);
}
.motion .manifesto__text .mw--key.on .mw__thin { opacity: 0; }
.motion .manifesto__text .mw--key.on .mw__bold { opacity: 1; }

/* ---------- Editorial section system ---------- */
/* Sections are transparent: the fluid canvas behind the page is the only background, so nothing draws a section edge */
.section {
  position: relative; isolation: isolate;
  padding-block: var(--section-y);
}

.eyebrow {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1rem + .75vw, 1.75rem);
  font-weight: 500; line-height: 1.25; letter-spacing: .2em; text-transform: uppercase; color: var(--sky);
}
.h2 {
  font-family: var(--font-display);
  font-size: clamp(1.95rem, 1.1rem + 3.05vw, 3.9rem);
  font-weight: 400; line-height: 1.04; letter-spacing: -.022em;
  text-wrap: balance;
}
.eyebrow + .h2 { margin-top: 14px; }
.accent { color: var(--sky); }
/* Section opener: the label is the heading; the intro sits in the content column, on the same grid as About */
.sectop { display: grid; gap: 18px 8%; align-items: start; margin-bottom: clamp(40px, 5vw, 64px); }
.sectop__intro {
  max-width: 34ch;
  font-family: var(--font-display); font-size: clamp(1.2rem, .9rem + .95vw, 1.75rem);
  font-weight: 400; line-height: 1.36; letter-spacing: -.01em; color: var(--white);
}
@media (min-width: 900px) { .sectop { grid-template-columns: minmax(260px, .9fr) minmax(0, 1.1fr); } }
.note { margin-top: 22px; max-width: 900px; font-size: var(--fs-small); line-height: 1.7; color: var(--ink-3); }

/* ---------- 03 About ---------- */
.about__grid { display: grid; gap: 40px 8%; align-items: start; }
.about__note { margin-top: 24px; max-width: 380px; padding-left: 18px; border-left: 2px solid var(--sky); color: var(--ink-2); font-size: var(--fs-body); }
.about__body { display: grid; gap: 22px; padding-top: 22px; border-top: 1px solid var(--edge-2); color: var(--ink-2); font-size: var(--fs-body); line-height: 1.75; }
.about__lead { font-family: var(--font-display); font-size: clamp(1.2rem, .9rem + .95vw, 1.75rem); font-weight: 400; line-height: 1.36; letter-spacing: -.01em; color: var(--white); }
.about__body .inline-link { justify-self: start; }
@media (min-width: 900px) { .about__grid { grid-template-columns: minmax(260px, .9fr) minmax(0, 1.1fr); } }

/* ---------- 04 Where we add value: three trajectories, open columns ---------- */
.paths__grid { display: grid; }
.path { display: flex; flex-direction: column; min-width: 0; padding-block: 32px; border-top: 1px solid var(--edge-2); }
/* Ring visual (Option D), drawn by js/rings.js from scroll progress */
.path__chart { display: block; width: 100%; max-width: 100%; aspect-ratio: 16 / 10; height: auto; }
.path__name { margin-top: 30px; font-family: var(--font-display); font-size: clamp(1.75rem, 1.15rem + 1.6vw, 2.6rem); font-weight: 300; line-height: 1; letter-spacing: .03em; text-transform: uppercase; }
.path__line { margin-top: 12px; font-family: var(--font-display); font-size: clamp(1.0625rem, .95rem + .3vw, 1.15rem); line-height: 1.35; }
.path__line em { font-style: normal; color: var(--sky); }
.path__text { margin-top: 14px; max-width: 40ch; color: var(--ink-2); font-size: var(--fs-body); }
@media (min-width: 900px) {
  /* Equal inner widths keep the three charts the same height; the negative margin re-aligns the outer edges */
  .paths__grid { --pad: clamp(20px, 2.6vw, 40px); grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(4, auto); margin-inline: calc(var(--pad) * -1); border-top: 1px solid var(--edge-2); }
  /* Subgrid lines up chart, name, line and text across the three columns */
  .path { display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 0; border-top: 0; padding: 36px var(--pad) 32px; }
  /* Column rules live on the grid so they stay still while a column scales */
  .paths__grid { position: relative; }
  .paths__grid::before, .paths__grid::after { content: ""; position: absolute; top: 0; bottom: 0; width: 1px; background: var(--edge-2); pointer-events: none; }
  .paths__grid::before { left: 33.333%; }
  .paths__grid::after { left: 66.667%; }
}

/* Scroll-driven focus. Script sets --e (emphasis 0..1) and --d (chart drawn 0..1) on each path. */
.motion .path {
  position: relative;
  opacity: calc(.5 + var(--e, 0) * .5);
  transform: scale(calc(1 + var(--e, 0) * .065));
  transform-origin: 50% 35%;
  transition: opacity .18s linear, transform .18s linear;
  will-change: transform, opacity;
}
.motion .path::before {
  content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, var(--sky), rgba(150, 212, 243, 0));
  transform: scaleX(var(--e, 0)); transform-origin: left; transition: transform .18s linear;
}
.motion .path__name { color: rgb(255 255 255 / calc(.82 + var(--e, 0) * .18)); }
@media (min-width: 900px) {
  .motion .path::before { left: var(--pad); right: var(--pad); }
}
/* Full-width stacked columns on phones: a gentler scale keeps them inside the side gutters */
@media (max-width: 899px) {
  .motion .path { transform: scale(calc(1 + var(--e, 0) * .035)); }
}

/* Wide screens: hold the section while scrolling moves the focus across the three columns */
@media (min-width: 900px) and (min-height: 600px) {
  .motion .paths__pin { height: 260vh; }
  .motion .paths__stage {
    position: sticky; top: var(--header-h);
    min-height: calc(100vh - var(--header-h)); min-height: calc(100svh - var(--header-h));
    display: flex; flex-direction: column; justify-content: center; padding-block: 2vh;
  }
  .motion .paths .sectop { margin-bottom: clamp(28px, 4vh, 56px); }
  .motion .path__chart { max-height: 27vh; }
  .motion .paths { padding-block: clamp(40px, 6vh, 80px); }
}

/* ---------- 05 Method ---------- */
.method__grid { display: grid; gap: 28px; align-items: stretch; }

.stages { position: relative; display: flex; flex-direction: column; border-left: 1px solid var(--edge-2); }
.stages__indicator {
  position: absolute; left: -1px; top: 0; width: 2px; height: var(--h, 0);
  background: linear-gradient(180deg, var(--sky), var(--blue));
  box-shadow: 0 0 18px rgba(150, 212, 243, .55);
  transform: translateY(var(--y, 0));
  transition: transform .6s var(--ease-out), height .6s var(--ease-out);
}
.stage {
  position: relative; display: block; width: 100%; text-align: left;
  padding: 18px 12px 22px 24px;
  border-left: 2px solid transparent; margin-left: -1px;
  color: var(--ink-3);
  transition: background-color .4s var(--ease-out), color .4s var(--ease-out);
}
.js .stages .stage { border-left-color: transparent !important; }
.stage:hover { color: var(--ink-2); background: rgba(155, 191, 251, .03); }
.stage[aria-selected="true"] {
  color: var(--white); border-left-color: var(--sky);
  background: linear-gradient(90deg, rgba(150, 212, 243, .10) 0%, rgba(150, 212, 243, 0) 85%);
}
/* Number, dash and name on one line; the subtitle sits under the name */
.stage { display: grid; grid-template-columns: auto auto minmax(0, 1fr); column-gap: 10px; align-items: baseline; }
.stage__line { display: contents; }
.stage__id { font-size: var(--fs-label); font-weight: 600; letter-spacing: .08em; color: var(--sky); font-variant-numeric: tabular-nums; }
.stage__dash { color: var(--ink-3); }
.stage__name { font-family: var(--font-display); font-size: clamp(1.25rem, .95rem + .7vw, 1.5rem); font-weight: 500; line-height: 1.1; letter-spacing: .06em; text-transform: uppercase; }
.stage__slogan { grid-column: 3; margin-top: 6px; font-size: .9375rem; color: var(--ink-3); transition: color .4s; }
.stage[aria-selected="true"] .stage__slogan { color: var(--ink-2); }

.display {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column;
  min-height: 580px; padding: clamp(22px, 2.6vw, 38px) clamp(20px, 2.8vw, 42px);
  border: 1px solid var(--edge-2);
  background:
    linear-gradient(155deg, rgba(0, 109, 218, .18) 0%, rgba(0, 109, 218, 0) 50%),
    var(--panel);
}
.display::before {
  content: ""; position: absolute; inset: 24px; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(155, 191, 251, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(155, 191, 251, .07) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(70% 70% at 60% 55%, #000 0%, transparent 100%);
  mask-image: radial-gradient(70% 70% at 60% 55%, #000 0%, transparent 100%);
}
.display::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(460px circle at var(--mx, 50%) var(--my, 0%), rgba(150, 212, 243, .12), rgba(150, 212, 243, 0) 65%);
  opacity: 0; transition: opacity .5s var(--ease-out);
}
.display:hover::after { opacity: 1; }
.display__bar {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px;
  padding-bottom: 16px; border-bottom: 1px solid var(--edge-2);
  font-size: var(--fs-label); font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3);
}
.display__count { font-variant-numeric: tabular-nums; color: var(--ink-2); white-space: nowrap; }

.track { position: relative; display: flex; justify-content: space-between; margin-top: 26px; }
.track__rail { position: absolute; left: 5px; right: 5px; top: 5px; height: 1px; background: var(--edge-2); }
.track__fill {
  position: absolute; inset: 0 auto 0 0; width: calc(var(--stage, 0) * 50%);
  background: linear-gradient(90deg, var(--peri), var(--sky));
  transition: width .8s var(--ease-out);
}
.track__stop { position: relative; display: grid; gap: 10px; justify-items: start; }
.track__stop:nth-child(3) { justify-items: center; }
.track__stop:nth-child(4) { justify-items: end; }
.track__stop i {
  width: 11px; height: 11px; border-radius: 50%;
  border: 1px solid var(--peri); background: var(--navy);
  transition: background-color .5s, box-shadow .5s, border-color .5s;
}
.track__stop b { font-size: var(--fs-label); font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); transition: color .5s; }
.track__stop.is-past i { background: var(--peri); }
.track__stop.is-current i { background: var(--sky); border-color: var(--sky); box-shadow: 0 0 0 5px rgba(150, 212, 243, .14), 0 0 22px rgba(150, 212, 243, .6); }
.track__stop.is-current b { color: var(--white); }

.display__stack { display: grid; flex: 1; }
.scene {
  grid-area: 1 / 1; display: flex; flex-direction: column;
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .3s var(--ease-out), transform .45s var(--ease-out), visibility 0s linear .3s;
}
.scene.is-active {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity .6s var(--ease-out) .12s, transform .8s var(--ease-out) .12s, visibility 0s;
}
html:not(.js) .scene { opacity: 1; visibility: visible; transform: none; position: relative; }
.scene__title { margin-top: 34px; font-family: var(--font-display); font-size: clamp(1.35rem, 1rem + .9vw, 1.85rem); font-weight: 400; line-height: 1.08; letter-spacing: .04em; text-transform: uppercase; text-wrap: balance; }
.scene__lead { margin-top: 14px; max-width: 580px; color: var(--ink-2); font-size: var(--fs-body); }

/* Four connected steps. Stacked by default (narrow panels, phones): the selected step opens to show its description.
   When the panel is wide enough the steps sit in one row and the description shows in a strip beneath. */
.display { container: method / inline-size; }
.flow { display: grid; grid-template-columns: minmax(0, 1fr); margin: 32px 0 28px; }
.flow__item { display: flex; min-width: 0; }
.flow__node {
  position: relative; width: 100%;
  display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; align-items: baseline; text-align: left;
  padding: 15px 18px; font: inherit; color: var(--white); cursor: pointer;
  border: 1px solid var(--edge-2); background: rgba(8, 18, 41, .82);
  transition: border-color .45s var(--ease-out), box-shadow .45s var(--ease-out), background-color .45s var(--ease-out);
}
.flow__node:hover { border-color: rgba(150, 212, 243, .4); }
.flow__node[aria-expanded="true"] {
  border-color: var(--edge-3); background: rgba(0, 109, 218, .12);
  box-shadow: 0 0 0 1px rgba(150, 212, 243, .12), 0 18px 50px -24px rgba(0, 109, 218, .9);
}
.flow__num { font-size: var(--fs-label); font-weight: 600; letter-spacing: .12em; color: var(--sky); font-variant-numeric: tabular-nums; }
.flow__text { font-size: 1rem; font-weight: 600; line-height: 1.3; text-wrap: balance; }
.flow__desc { grid-column: 2; display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease-out); }
.flow__desc > span { overflow: hidden; font-size: .9375rem; font-weight: 400; line-height: 1.5; color: var(--ink-2); }
.flow__desc > span::before { content: ""; display: block; height: 6px; }
.flow__node[aria-expanded="true"] .flow__desc { grid-template-rows: 1fr; }
.flow__link { position: relative; display: flex; height: 22px; padding-left: 26px; }
.flow__link > span { position: relative; display: block; width: 1px; height: 100%; background: var(--edge-2); overflow: visible; }
.flow__link > span::before {
  content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--peri), var(--sky));
  transform-origin: top; transform: scale(1);
}
.flow__link > span::after {
  content: ""; position: absolute; left: -3px; bottom: 0; width: 7px; height: 7px;
  border-top: 1px solid var(--sky); border-right: 1px solid var(--sky); transform: rotate(135deg);
}
.flow__link i { display: none; }
.flow__detail { display: none; }

@container method (min-width: 720px) {
  .flow { grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr) 28px minmax(0, 1fr) 28px minmax(0, 1fr); align-items: stretch; margin: 40px 0 0; }
  .flow__node { display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; min-height: 128px; padding: 18px 12px; }
  .flow__num { margin-bottom: 10px; }
  /* Descriptions stay in the button for screen readers; sighted visitors read them in the strip below */
  .flow__desc { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .flow__link { height: auto; padding-left: 0; align-items: center; }
  .flow__link > span { width: 100%; height: 1px; }
  .flow__link > span::before { background: linear-gradient(90deg, var(--peri), var(--sky)); transform-origin: left; }
  .flow__link > span::after { left: auto; right: 0; bottom: auto; top: -3.5px; transform: rotate(45deg); }
  .flow__detail {
    --box: calc((100% - 84px) / 4);
    position: relative; display: block; margin: 0 0 30px; padding-top: 18px; min-height: calc(3em + 18px);
    border-top: 1px solid var(--edge); font-size: 1rem; line-height: 1.5; color: var(--ink-2);
  }
  .flow__detail::before {
    content: ""; position: absolute; top: -1px; height: 1px; width: var(--box);
    left: calc(var(--step, 0) * (var(--box) + 28px));
    background: linear-gradient(90deg, var(--sky), var(--blue)); box-shadow: 0 0 12px rgba(150, 212, 243, .6);
    transition: left .55s var(--ease-out);
  }
  .flow__detail-text { display: block; max-width: 62ch; transition: opacity .25s var(--ease-out), transform .35s var(--ease-out); }
  .flow__detail.is-swapping .flow__detail-text { opacity: 0; transform: translateY(4px); }
  .flow { margin-bottom: 0; }
  .flow__item { padding-bottom: 14px; }
}

/* Stage change choreography: steps appear in order, links draw between them */
.motion .scene.is-active .flow__item { animation: node-in .7s var(--ease-out) both; }
.motion .scene.is-active .flow__item:nth-child(1) { animation-delay: .25s; }
.motion .scene.is-active .flow__item:nth-child(3) { animation-delay: .6s; }
.motion .scene.is-active .flow__item:nth-child(5) { animation-delay: .95s; }
.motion .scene.is-active .flow__item:nth-child(7) { animation-delay: 1.3s; }
.motion .scene.is-active .flow__link > span::before { animation: link-in-y .45s var(--ease-io) both; }
.motion .scene.is-active .flow__link:nth-child(2) > span::before { animation-delay: .45s; }
.motion .scene.is-active .flow__link:nth-child(4) > span::before { animation-delay: .8s; }
.motion .scene.is-active .flow__link:nth-child(6) > span::before { animation-delay: 1.15s; }
.motion .scene.is-active .flow__link > span::after { animation: fade-in .3s ease both; }
.motion .scene.is-active .flow__link:nth-child(2) > span::after { animation-delay: .8s; }
.motion .scene.is-active .flow__link:nth-child(4) > span::after { animation-delay: 1.15s; }
.motion .scene.is-active .flow__link:nth-child(6) > span::after { animation-delay: 1.5s; }
@keyframes node-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes link-in { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes link-in-y { from { transform: scaleY(0); } to { transform: scaleY(1); } }

/* A quiet pulse travels the workflow once the stage has settled (row layout only) */
@container method (min-width: 720px) {
  .motion .scene.is-active .flow__link > span::before { animation-name: link-in; }
  .motion .flow__link > span > i {
    display: block; position: absolute; top: -2px; left: 0; width: 5px; height: 5px; border-radius: 50%;
    background: var(--sky); box-shadow: 0 0 10px 2px rgba(150, 212, 243, .7); opacity: 0;
  }
  .motion .scene.is-active .flow__link > span > i { animation: pulse 3.6s var(--ease-io) 1.8s infinite; }
  .motion .scene.is-active .flow__link:nth-child(4) > span > i { animation-delay: 2.3s; }
  .motion .scene.is-active .flow__link:nth-child(6) > span > i { animation-delay: 2.8s; }
}
@keyframes pulse {
  0% { left: 0; opacity: 0; }
  12% { opacity: 1; }
  40% { left: calc(100% - 5px); opacity: 0; }
  100% { left: calc(100% - 5px); opacity: 0; }
}

.outcome {
  margin-top: auto; padding-top: 22px; border-top: 1px solid var(--edge-2);
  display: flex; gap: 20px; align-items: baseline;
}
.outcome__label { flex: none; font-size: var(--fs-label); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--sky); }
.outcome__value { font-size: clamp(1rem, .92rem + .25vw, 1.0625rem); line-height: 1.45; color: var(--white); }

@media (min-width: 1000px) {
  .method__grid { grid-template-columns: minmax(290px, 370px) minmax(0, 1fr); gap: 52px; }
  .method .sectop { grid-template-columns: minmax(290px, 370px) minmax(0, 1fr); column-gap: 52px; }
}
@media (max-width: 999px) {
  .stage { padding: 14px 12px 16px 20px; }
  .display { min-height: 0; }
}
@media (max-width: 699px) {
  .outcome { flex-direction: column; gap: 8px; }
  .track__stop b { letter-spacing: .02em; }
}

/* ---------- 06 Services: interactive panels ---------- */
.svc-panels { display: grid; gap: 18px; }
@media (min-width: 900px) { .svc-panels { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.svc-panel {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; padding: clamp(24px, 3vw, 40px);
  border: 1px solid var(--edge-2);
  background: linear-gradient(155deg, rgba(0, 109, 218, .16) 0%, rgba(0, 109, 218, 0) 55%), var(--panel);
  transition: border-color .5s var(--ease-out), transform .5s var(--ease-out);
}
@media (min-width: 900px) { .svc-panel { min-height: 540px; } }
/* Cursor light: kept faint so it reads as a sheen, not a spotlight */
.svc-panel::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(150, 212, 243, .065), rgba(150, 212, 243, 0) 65%);
  opacity: 0; transition: opacity .5s var(--ease-out);
}
.svc-panel:hover, .svc-panel:focus-within { border-color: var(--edge-3); transform: translateY(-4px); }
.svc-panel:hover::after, .svc-panel:focus-within::after { opacity: 1; }
.svc-panel__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.svc-panel__title {
  max-width: 14ch;
  font-family: var(--font-display); font-size: clamp(1.4rem, 1rem + 1.2vw, 2rem);
  font-weight: 400; line-height: 1.15; letter-spacing: .05em; text-transform: uppercase; text-wrap: balance;
}
.svc-panel__text { margin-top: 18px; max-width: 46ch; color: var(--ink-2); font-size: var(--fs-body); }
.svc-panel__list { display: grid; margin-top: 26px; }
.svc-panel__list li {
  display: flex; gap: 14px; align-items: baseline;
  padding: 11px 0; border-top: 1px solid var(--edge); font-size: .9375rem; color: var(--ink-2);
  transition: color .4s, padding-left .45s var(--ease-out);
}
.svc-panel__list li::before {
  content: ""; flex: none; width: 7px; height: 10px; background: var(--sky);
  clip-path: polygon(50% 0, 100% 42%, 50% 100%, 0 42%); transform: translateY(1px);
}
.svc-panel:hover .svc-panel__list li { color: var(--white); }
.svc-panel__list li:hover { padding-left: 6px; }
.svc-panel__cta {
  display: inline-flex; align-items: center; gap: 12px; align-self: flex-start;
  margin-top: auto; padding-top: 28px; padding-bottom: 8px;
  color: var(--sky); font-weight: 600; font-size: .9375rem; border-bottom: 1px solid rgba(150, 212, 243, .45);
  transition: color .3s, border-color .3s;
}
.svc-panel__cta:hover { color: var(--white); border-color: var(--white); }
.svc-panel:hover .svc-panel__cta .arr { transform: translate(2px, -2px); }
@media (max-width: 899px) { .svc-panel__cta { margin-top: 8px; } }

/* Ring mark: completes on hover, echoing the Where We Help rings */
.svc-ring { display: block; flex: none; width: 52px; height: 52px; }
.svc-ring circle { fill: none; stroke-width: 3; }
.svc-ring__track { stroke: rgba(155, 191, 251, .14); }
.svc-ring__rest { stroke: var(--blue); }
.svc-ring__arc { stroke: var(--sky); stroke-dashoffset: var(--off, 0); transition: stroke-dashoffset .9s var(--ease-out); }
.svc-ring__gem { fill: var(--sky); }
.svc-panel:hover .svc-ring__arc, .svc-panel:focus-within .svc-ring__arc { stroke-dashoffset: 0; }
@media (prefers-reduced-motion: reduce) { .svc-panel:hover, .svc-panel:focus-within { transform: none; } }

/* ---------- 07 Clients ---------- */
.clients__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: clamp(32px, 4vw, 48px); }
.marquee__toggle {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 4px;
  font-size: var(--fs-label); color: var(--ink-3); transition: color .25s;
}
.marquee__toggle:hover { color: var(--sky); }
.marquee__toggle-icon { position: relative; width: 10px; height: 12px; }
.marquee__toggle-icon::before, .marquee__toggle-icon::after { content: ""; position: absolute; top: 0; width: 3px; height: 12px; background: currentColor; }
.marquee__toggle-icon::before { left: 0; }
.marquee__toggle-icon::after { right: 0; }
.marquee__toggle[aria-pressed="true"] .marquee__toggle-icon::before { width: 0; height: 0; background: none; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent currentColor; }
.marquee__toggle[aria-pressed="true"] .marquee__toggle-icon::after { display: none; }

.marquee {
  position: relative; overflow: hidden;
  border-top: 1px solid var(--edge-2); border-bottom: 1px solid var(--edge-2);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%);
}
.marquee__track { display: flex; width: max-content; }
.marquee.is-running .marquee__track { animation: marquee-ltr var(--marquee-duration, 40s) linear infinite; }
.marquee.is-running:hover .marquee__track,
.marquee.is-running:focus-within .marquee__track,
.marquee.is-paused .marquee__track { animation-play-state: paused; }
.marquee.is-static { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
@keyframes marquee-ltr { from { transform: translate3d(-50%, 0, 0); } to { transform: translate3d(0, 0, 0); } }

.logo-slot {
  flex: none; width: clamp(180px, 17vw, 240px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center;
  height: 120px; padding: 16px; border-right: 1px solid var(--edge);
  font-size: var(--fs-label); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3);
  transition: background-color .4s;
}
.logo-slot small { font-size: var(--fs-label); font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--ink-3); }
.logo-slot:hover { background: rgba(155, 191, 251, .04); }
.logo-slot img { max-height: 44px; max-width: 72%; width: auto; height: auto; object-fit: contain; filter: brightness(0) invert(1); opacity: .66; transition: opacity .4s; }
.logo-slot a { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.logo-slot:hover img { opacity: 1; }

/* ---------- Insights ---------- */
.insights__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px 48px; margin-bottom: clamp(40px, 5vw, 64px); }
.insights__all { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.insights__all .inline-link { margin-top: 0; }
.insights__list { display: grid; gap: 56px clamp(24px, 3vw, 44px); }
@media (min-width: 680px) and (max-width: 1099px) { .insights__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .insights__list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* The whole card is one link: the title's link stretches over it */
.insight { position: relative; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.insight__cover {
  position: relative; overflow: hidden; aspect-ratio: 16 / 9; max-width: 100%; margin-bottom: 8px;
  background: var(--navy-deep); border: 1px solid var(--edge);
}
.insight__cover img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.001); transition: transform 1.4s var(--ease-out), filter .8s var(--ease-out);
  filter: saturate(.92) brightness(.9);
}
/* Hover: a band of light sweeps across the cover as it eases closer, and a sky rule draws along its lower edge */
.insight__cover::before {
  content: ""; position: absolute; inset: -20% auto -20% 0; z-index: 1; width: 55%; pointer-events: none;
  background: linear-gradient(100deg, rgba(150, 212, 243, 0) 0%, rgba(150, 212, 243, .16) 45%, rgba(255, 255, 255, .22) 50%, rgba(150, 212, 243, .16) 55%, rgba(150, 212, 243, 0) 100%);
  transform: translateX(-130%) skewX(-12deg); opacity: 0;
}
.insight__cover::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; height: 2px;
  background: linear-gradient(90deg, var(--sky), var(--blue));
  transform: scaleX(0); transform-origin: left; transition: transform .9s var(--ease-out);
}
.insight__meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; font-size: var(--fs-label); }
.insight__category { font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--sky); }
.insight__date { color: var(--ink-3); font-variant-numeric: tabular-nums; }
.insight__title { font-family: var(--font-display); font-size: clamp(1.25rem, 1rem + .7vw, 1.6rem); font-weight: 400; line-height: 1.25; letter-spacing: -.01em; text-wrap: balance; }
.insight__link-main { transition: color .4s var(--ease-out); }
.insight__link-main::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.insight__link-main:focus-visible { outline: none; }
.insight__link-main:focus-visible::after { outline: 2px solid var(--sky); outline-offset: 8px; }
.insight__excerpt {
  max-width: 48ch; color: var(--ink-3); font-size: var(--fs-small); line-height: 1.65;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden;
}
.insight__link {
  display: inline-flex; align-items: center; gap: 12px; align-self: flex-start; margin-top: auto; padding-top: 6px;
  font-size: .9375rem; font-weight: 600; color: var(--sky); transition: color .3s, gap .45s var(--ease-out);
}
.insight:hover .insight__cover img, .insight:focus-within .insight__cover img { transform: scale(1.06); filter: saturate(1.05) brightness(1.04); }
.insight:hover .insight__cover::before, .insight:focus-within .insight__cover::before {
  opacity: 1; transform: translateX(260%) skewX(-12deg); transition: transform 1.25s var(--ease-io), opacity .2s;
}
.insight:hover .insight__cover::after, .insight:focus-within .insight__cover::after { transform: scaleX(1); }
.insight:hover .insight__link-main, .insight:focus-within .insight__link-main { color: var(--sky); }
.insight:hover .insight__link, .insight:focus-within .insight__link { color: var(--white); gap: 16px; }
.insight:hover .insight__link .arr, .insight:focus-within .insight__link .arr { transform: translate(2px, -2px); }

/* ---------- 08 Contact: welcome and details on the left, the form on a darker panel on the right ---------- */
.contact { padding-block: clamp(100px, 11vw, 160px); }
.contact__grid { display: grid; gap: 48px; }
.contact__info { min-width: 0; }
.contact__title {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 1.3rem + 2.6vw, 3.6rem); font-weight: 400; line-height: 1.05;
  letter-spacing: .14em; text-transform: uppercase; color: var(--sky);
}
.contact__text { margin-top: 26px; max-width: 40ch; font-family: var(--font-display); font-size: clamp(1.125rem, .98rem + .5vw, 1.4rem); line-height: 1.5; color: var(--ink-2); }
.direct { margin-top: clamp(36px, 4vw, 52px); font-style: normal; max-width: 520px; }
.direct__row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 24px; padding: 18px 0; border-top: 1px solid var(--edge-2); }
.direct__row:last-child { border-bottom: 1px solid var(--edge-2); }
.direct__label { font-size: var(--fs-label); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.direct__row > a, .direct__row > span:last-child { font-size: 1.0625rem; line-height: 1.4; overflow-wrap: anywhere; }
.direct a { transition: color .25s; }
.direct a:hover { color: var(--sky); }

.contact__form {
  position: relative; min-width: 0;
  padding: clamp(24px, 3.5vw, 48px);
  border: 1px solid var(--edge-2);
  background: rgba(8, 18, 41, .78);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
@media (min-width: 1000px) {
  .contact__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 0; align-items: stretch; }
  .contact__info { padding-right: clamp(40px, 5vw, 88px); }
  .contact__form { border-width: 0 0 0 1px; }
}

.enquiry__hint { margin-bottom: 26px; font-size: var(--fs-small); color: var(--ink-3); }
.enquiry__summary { margin-bottom: 24px; padding: 16px 18px; border: 1px solid var(--peri); background: rgba(74, 50, 160, .26); font-size: .9375rem; color: var(--white); }
.enquiry__summary ul { margin-top: 6px; display: grid; gap: 4px; }
.enquiry__summary a { color: var(--sky); text-decoration: underline; text-underline-offset: 3px; }
.field-row { display: grid; gap: 0 16px; }
@media (min-width: 640px) { .field-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.field { display: grid; gap: 7px; margin-bottom: 18px; min-width: 0; }
.field label, .field legend { font-size: var(--fs-small); font-weight: 500; color: var(--ink-2); }
.field__aside { margin-left: 8px; font-weight: 400; color: var(--ink-3); }
.req { color: var(--sky); }
.field input::placeholder, .field textarea::placeholder { color: rgba(255, 255, 255, .42); }

/* "I am interested in": native checkboxes styled as pills; several can be chosen */
.field--chips { border: 0; padding: 0; margin: 4px 0 22px; min-width: 0; }
.field--chips legend { padding: 0; margin-bottom: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; display: inline-flex; cursor: pointer; }
.chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; gap: 0; min-height: 42px; padding: 0 16px;
  border: 1px solid var(--field-edge); border-radius: 999px;
  font-size: .9375rem; line-height: 1.2; color: var(--ink-2);
  transition: border-color .25s, background-color .25s, color .25s, gap .25s;
}
.chip span::before {
  content: ""; width: 0; height: 10px; background: var(--sky);
  clip-path: polygon(50% 0, 100% 42%, 50% 100%, 0 42%); transition: width .25s var(--ease-out);
}
.chip:hover span { border-color: rgba(155, 191, 251, .8); color: var(--white); }
.chip input:checked + span { border-color: var(--sky); background: rgba(150, 212, 243, .14); color: var(--white); gap: 9px; }
.chip input:checked + span::before { width: 7px; }
.chip input:focus-visible + span { outline: 2px solid var(--sky); outline-offset: 3px; }
.field input:not([type="checkbox"]), .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  font: inherit; font-size: 1rem; color: var(--white);
  background: rgba(255, 255, 255, .035); border: 1px solid var(--field-edge); border-radius: 0;
  transition: border-color .25s, box-shadow .25s, background-color .25s;
  -webkit-appearance: none; appearance: none;
}
.field textarea { min-height: 128px; resize: vertical; line-height: 1.5; }
.field select {
  padding-right: 44px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2396D4F3' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
.field select option { color: var(--navy); background: var(--white); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(155, 191, 251, .75); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: none; border-color: var(--sky); background-color: rgba(150, 212, 243, .06); box-shadow: 0 0 0 3px rgba(150, 212, 243, .2);
}
.field [aria-invalid="true"] { border-color: var(--peri) !important; background-color: rgba(74, 50, 160, .24) !important; }
.field__help { font-size: var(--fs-label); color: var(--ink-3); }
.field__error { display: flex; gap: 8px; align-items: baseline; font-size: var(--fs-small); color: var(--peri); }
.field__error::before { content: "!"; flex: none; display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--peri); color: var(--navy); font-size: .6875rem; font-weight: 700; transform: translateY(2px); }
.field__error:empty { display: none; }
.field--check { grid-template-columns: 22px minmax(0, 1fr); gap: 4px 12px; align-items: start; margin-top: 4px; }
.field--check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--sky); cursor: pointer; }
.field--check label { font-weight: 400; line-height: 1.55; color: var(--ink-3); }
.field--check label a { color: var(--sky); text-decoration: underline; text-underline-offset: 3px; }
.field--check .field__error { grid-column: 2; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.enquiry .btn--primary { margin-top: 8px; }
.enquiry__status { margin-top: 16px; font-size: .9375rem; line-height: 1.5; }
.enquiry__status:empty { display: none; }
.enquiry__status.is-success { color: var(--sky); }
.enquiry__status.is-error { color: var(--peri); }
.enquiry__status.is-note { padding: 14px 16px; border: 1px dashed var(--peri); color: var(--peri); }

/* Confirmation, shown only after the form service accepts the enquiry */
.enquiry-done { padding-block: clamp(12px, 3vw, 40px); }
.enquiry-done:focus { outline: none; }
.enquiry-done__mark { display: block; width: 14px; height: 20px; background: var(--sky); clip-path: polygon(50% 0, 100% 42%, 50% 100%, 0 42%); }
.enquiry-done__title { margin-top: 22px; font-family: var(--font-display); font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.3rem); font-weight: 400; line-height: 1.15; }
.enquiry-done__text { margin-top: 14px; max-width: 46ch; color: var(--ink-2); font-size: 1.0625rem; }
.enquiry-done__text strong { color: var(--white); font-weight: 600; overflow-wrap: anywhere; }
.enquiry-done .btn { margin-top: 28px; }

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  padding-block: clamp(56px, 7vw, 96px) calc(28px + env(safe-area-inset-bottom, 0px));
  font-size: var(--fs-small); color: var(--ink-3);
}
.footer__top { display: grid; gap: 40px 32px; padding-bottom: clamp(36px, 4vw, 56px); border-bottom: 1px solid var(--edge); }
.footer__logo { display: inline-block; }
.footer__logo img { height: 46px; width: auto; }
.footer__tagline { margin-top: 18px; font-family: var(--font-display); font-size: var(--fs-label); font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--sky); }
.footer__line { margin-top: 10px; max-width: 32ch; color: var(--ink-2); }
.footer__heading { margin-bottom: 14px; font-size: var(--fs-label); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--white); }
.footer__heading--next { margin-top: 28px; }
.footer__list { display: grid; gap: 6px; justify-items: start; font-style: normal; }
.footer__list a, .footer__address > span { display: inline-block; padding-block: 3px; color: var(--ink-2); overflow-wrap: anywhere; }
.footer__list a { transition: color .25s; }
.footer__list a:hover { color: var(--sky); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 28px; padding-top: 24px; }
.footer__company { display: grid; gap: 4px; max-width: 64ch; }
.footer__legal { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.footer__legal a { display: inline-flex; align-items: center; min-height: 32px; color: var(--ink-3); transition: color .25s; }
.footer__legal a:hover { color: var(--sky); }
@media (min-width: 560px) {
  .footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; }
}
@media (min-width: 1000px) {
  .footer__top { grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); }
  .footer__brand { grid-column: auto; }
}
#corporate-finance, #ma-advisory { scroll-margin-top: calc(var(--header-h) + 24px); }

/* ---------- Legal pages (Privacy Policy, Cookie Policy) ---------- */
.legal-page {
  background:
    radial-gradient(60% 45% at 85% 0%, rgba(0, 109, 218, .28) 0%, rgba(0, 109, 218, 0) 70%),
    radial-gradient(45% 40% at 0% 30%, rgba(74, 50, 160, .2) 0%, rgba(74, 50, 160, 0) 70%),
    var(--navy-deep);
  background-attachment: fixed;
}
.legal-header { padding-top: env(safe-area-inset-top, 0px); border-bottom: 1px solid var(--edge); }
.legal-header__inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.legal-header__back { margin-top: 0; padding-bottom: 6px; }
.legal { max-width: 760px; padding-block: clamp(56px, 8vw, 104px); }
.legal h1 { margin-top: 14px; font-family: var(--font-display); font-size: clamp(2.2rem, 1.4rem + 2.6vw, 3.4rem); font-weight: 400; line-height: 1.08; }
.legal__updated { margin-top: 12px; font-size: var(--fs-small); color: var(--ink-3); }
.legal__lead { margin-top: 28px; font-family: var(--font-display); font-size: clamp(1.15rem, 1rem + .5vw, 1.4rem); line-height: 1.5; color: var(--white); }
.legal__toc { margin-top: 36px; padding: 20px 24px; border: 1px solid var(--edge-2); background: rgba(8, 18, 41, .5); }
.legal__toc ol { display: grid; gap: 6px; padding-left: 20px; list-style: decimal; color: var(--ink-3); }
.legal__toc a { color: var(--ink-2); }
.legal__toc a:hover { color: var(--sky); }
.legal section { margin-top: clamp(40px, 5vw, 56px); scroll-margin-top: 24px; }
.legal h2 { font-family: var(--font-display); font-size: clamp(1.35rem, 1.1rem + .8vw, 1.75rem); font-weight: 400; line-height: 1.2; }
.legal h3 { margin-top: 26px; font-size: 1.0625rem; font-weight: 600; }
.legal p, .legal li { color: var(--ink-2); font-size: var(--fs-body); line-height: 1.7; }
.legal section > p, .legal h3 + p { margin-top: 14px; }
.legal ul { margin-top: 12px; display: grid; gap: 8px; padding-left: 0; }
.legal ul li { position: relative; padding-left: 22px; }
.legal ul li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 7px; height: 10px; background: var(--sky); clip-path: polygon(50% 0, 100% 42%, 50% 100%, 0 42%); }
.legal strong { color: var(--white); font-weight: 600; }
.legal a:not(.inline-link) { color: var(--sky); text-decoration: underline; text-underline-offset: 3px; }
.legal a:not(.inline-link):hover { color: var(--white); }
.legal__table-wrap { margin-top: 18px; overflow-x: auto; border: 1px solid var(--edge-2); }
.legal table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: .9375rem; }
.legal th, .legal td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--edge); color: var(--ink-2); line-height: 1.55; }
.legal th { font-size: var(--fs-label); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--sky); background: rgba(8, 18, 41, .6); }
.legal tr:last-child td { border-bottom: 0; }
/* Details the firm still has to confirm; remove the brackets once filled in */
.todo { padding: 1px 6px; border: 1px dashed var(--peri); background: rgba(74, 50, 160, .25); color: var(--white); }
.legal-footer { padding-block: 28px calc(28px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--edge); font-size: var(--fs-small); color: var(--ink-3); }
.legal-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 28px; }
.legal-footer ul { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.legal-footer a { display: inline-block; padding-block: 4px; color: var(--ink-2); }
.legal-footer a:hover, .legal-footer a[aria-current="page"] { color: var(--sky); }

/* ---------- Insights pages: the article list (insights/index.html) and each article ---------- */
.insights-page { padding-block: clamp(56px, 8vw, 104px) clamp(80px, 10vw, 140px); }
.insights-page__head { display: grid; gap: 18px; margin-bottom: clamp(44px, 6vw, 72px); }
.insights-page__intro { max-width: 52ch; color: var(--ink-2); font-size: clamp(1rem, .95rem + .25vw, 1.125rem); line-height: 1.65; }

.post { padding-block: clamp(36px, 5vw, 64px) clamp(80px, 10vw, 140px); }
.post .container { max-width: calc(760px + var(--gutter) * 2); }
.post .post__cover { max-width: calc(1120px + var(--gutter) * 2); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; font-size: var(--fs-small); color: var(--ink-3); }
.crumbs li + li::before { content: "/"; margin-inline: 10px; color: var(--edge-3); }
.crumbs a { color: var(--ink-2); transition: color .25s; }
.crumbs a:hover { color: var(--sky); }
.crumbs [aria-current] { color: var(--ink-3); }
.post__category { margin-top: clamp(32px, 5vw, 56px); font-size: var(--fs-label); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--sky); }
.post__title {
  margin-top: 14px; font-family: var(--font-display); font-size: clamp(2.1rem, 1.3rem + 2.8vw, 3.6rem);
  font-weight: 400; line-height: 1.08; letter-spacing: -.02em; text-wrap: balance;
}
.post__standfirst { margin-top: 24px; font-family: var(--font-display); font-size: clamp(1.15rem, 1rem + .55vw, 1.45rem); line-height: 1.5; color: var(--white); text-wrap: pretty; }
.post__meta {
  display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 28px; padding-top: 20px;
  border-top: 1px solid var(--edge-2); font-size: var(--fs-small); color: var(--ink-3); font-variant-numeric: tabular-nums;
}
.post__cover { margin-top: clamp(36px, 5vw, 56px); margin-bottom: 0; }
.post__cover img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid var(--edge); }
.post__body { margin-top: clamp(40px, 5vw, 64px); }
.post__body > * + * { margin-top: 1.15em; }
.post__body p, .post__body li { color: var(--ink-2); font-size: clamp(1rem, .96rem + .2vw, 1.0625rem); line-height: 1.78; }
.post__body h2 { margin-top: 2.1em; font-family: var(--font-display); font-size: clamp(1.45rem, 1.15rem + .9vw, 1.9rem); font-weight: 400; line-height: 1.2; letter-spacing: -.01em; text-wrap: balance; }
.post__body h3 { margin-top: 1.9em; font-size: 1.125rem; font-weight: 600; line-height: 1.4; color: var(--white); }
.post__body h2 + *, .post__body h3 + * { margin-top: .7em; }
.post__body ul { display: grid; gap: 14px; }
.post__body ul li { position: relative; padding-left: 24px; }
.post__body ul li::before { content: ""; position: absolute; left: 2px; top: .68em; width: 7px; height: 10px; background: var(--sky); clip-path: polygon(50% 0, 100% 42%, 50% 100%, 0 42%); }
.post__body strong { color: var(--white); font-weight: 600; }
.post__body .post__beat { font-family: var(--font-display); font-size: clamp(1.2rem, 1.05rem + .5vw, 1.45rem); color: var(--white); }
.post__body .post__takeaway {
  padding-left: 20px; border-left: 2px solid var(--sky);
  font-family: var(--font-display); font-size: clamp(1.2rem, 1.05rem + .5vw, 1.45rem); line-height: 1.45; color: var(--white);
}
.post__aside { margin-top: clamp(56px, 7vw, 88px); }
.post__cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px;
  padding: clamp(24px, 3.5vw, 36px); border: 1px solid var(--edge-2); background: var(--panel);
}
.post__cta-text { flex: 1 1 280px; max-width: 36ch; font-family: var(--font-display); font-size: clamp(1.15rem, 1rem + .45vw, 1.35rem); line-height: 1.4; color: var(--white); }
.post__note { margin-top: 18px; font-size: var(--fs-small); line-height: 1.6; color: var(--ink-3); }
.post__more { margin-top: clamp(56px, 7vw, 88px); }
.post__more-heading { font-family: var(--font-display); font-size: var(--fs-small); font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--sky); }
.post__more ul { display: grid; margin-top: 18px; border-top: 1px solid var(--edge-2); }
.post__more a { display: grid; gap: 6px; padding-block: 20px; border-bottom: 1px solid var(--edge); transition: padding-left .45s var(--ease-out); }
.post__more-cat { font-size: var(--fs-label); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.post__more-title { font-family: var(--font-display); font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); line-height: 1.3; color: var(--white); transition: color .3s; }
.post__more a:hover { padding-left: 10px; }
.post__more a:hover .post__more-title { color: var(--sky); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .insight__cover img, .insight:hover .insight__cover img, .insight:focus-within .insight__cover img { transform: none; }
  .insight__cover::before { display: none; }
}
