/* ============================================================
   LAYOUT — the grid, the section shell, the page rhythm
   ============================================================ */

.shell {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 2rem);
}

/* Every section owns its ground colour so the page reads as a sequence of
   deliberate inversions rather than one continuous scroll. */
.section {
  position: relative;
  background: var(--bg);
  color: var(--fg);
  padding-block: var(--section);
  isolation: isolate;
  /* keeps a jumped-to section clear of the fixed nav without JS */
  scroll-margin-top: 6.5rem;
}
.section--flush { padding-block: 0; }
.section--tight { padding-block: calc(var(--section) * 0.62); }

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem 2rem;
  padding-bottom: clamp(1.5rem, 2.6vw, 2.25rem);
}
.section__head .label { flex: none; }

/* A hairline that draws itself in as the section arrives. */
.rule {
  height: 1px;
  background: var(--rule);
  transform: scaleX(0);
  transform-origin: left center;
  width: 100%;
}

/* ---- the persistent page frame: fixed edge marks ---- */
.frame {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: var(--z-frame);
  mix-blend-mode: difference;
  opacity: 0.55;
}
.frame span {
  position: absolute;
  background: #fff;
}
.frame span:nth-child(1) { top: var(--gutter); left: 0; width: 100%; height: 1px; opacity: 0; }
.frame span:nth-child(2) { left: calc(var(--gutter) * 0.42); top: 0; width: 1px; height: 100%; }
.frame span:nth-child(3) { right: calc(var(--gutter) * 0.42); top: 0; width: 1px; height: 100%; }
@media (max-width: 900px) { .frame { display: none; } }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding-bottom: clamp(2rem, 5vh, 4rem);
  padding-top: clamp(7rem, 14vh, 10rem);
  overflow: hidden;
  background: var(--c-ink);
  color: var(--c-white);
}

/* z0 — the WebGL funnel: with the photo gone, this is the hero visual */
/* Held clear of the nav at the top and the CTA rail at the bottom, so the
   funnel never runs through anything that has to stay readable. */
.hero__canvas {
  position: absolute;
  top: clamp(5.5rem, 12vh, 8rem);
  bottom: clamp(1rem, 3vh, 2.5rem);
  right: -1%;
  width: min(50%, 44rem);
  z-index: 0;
  pointer-events: none;
}
@media (max-width: 820px) {
  .hero__canvas { right: 0; left: 0; width: auto; }
}
.hero__canvas canvas { width: 100%; height: 100%; display: block; }

/* z1 — the oversized ghost word behind the funnel */
.hero__ghost {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 34%;
  transform: translate(-50%, -50%);
  width: 130%;
  text-align: center;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(7rem, 23vw, 24rem);
  line-height: 0.8;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 254, 255, 0.13);
  user-select: none;
  pointer-events: none;
  white-space: nowrap;
}


/* z2 — the readable layer */
.hero__inner {
  position: relative;
  z-index: 3;
  width: 100%;
}
.hero__headline {
  font-size: var(--t-mega);
  /* Wide enough that no single line-mask wraps. A wrapped mask holds two lines
     but is translated by 110% of the pair, so the reveal breaks. */
  max-width: 14ch;
  margin-bottom: clamp(1.25rem, 3.5vh, 2.5rem);
}
.hero__headline em {
  font-style: normal;
  color: var(--c-green);
}
/* Everything readable is held to the left half, so the funnel owns the right
   side of the frame uncontested. */
.hero__foot {
  max-width: min(58%, 44rem);
}
.hero__sub {
  font-size: var(--t-md);
  line-height: 1.5;
  color: rgba(255, 254, 255, 0.72);
  /* sized so the sentence sets on exactly three lines */
  max-width: 57ch;
  margin-bottom: 2rem;
  text-wrap: pretty;
}
.hero__ctas { display: flex; flex-wrap: wrap; gap: 0.9rem 1.25rem; align-items: center; }

/* Sits with the CTAs on the left. The right half belongs to the funnel now,
   and availability reads better next to the button than floating in a corner. */
.hero__meta {
  margin-top: clamp(1.5rem, 3vh, 2.25rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.75rem;
  font-family: var(--f-display);
  font-size: var(--t-mono);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: rgba(255, 254, 255, 0.5);
}
.hero__meta strong { color: var(--c-green); font-weight: 600; }

/* centred between the CTAs and the funnel; withdrawn once the gap gets tight */
.hero__cue {
  position: absolute;
  z-index: 4;
  left: 50%;
  transform: translateX(-50%);
  bottom: clamp(1rem, 3vh, 2rem);
}
@media (max-width: 1200px) { .hero__cue { display: none; } }
.hero__meta .dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--c-green);
  margin-right: 0.5rem;
  vertical-align: middle;
  animation: pulse 2.4s var(--e-soft) infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.35; transform: scale(0.72); }
}

@media (max-width: 1100px) {
  .hero__headline { max-width: 15ch; }
}
/* Between the mobile breakpoint and ~1000px the foot's 58% cap squeezes the
   subheadline onto a fourth line. Widening it here keeps it at three. */
@media (min-width: 821px) and (max-width: 1000px) {
  .hero__foot { max-width: 70%; }
}
@media (max-width: 820px) {
  .hero {
    flex-direction: column;
    justify-content: flex-end;
    align-items: stretch;
    padding-top: clamp(9rem, 22vh, 13rem);
  }
  .hero__ghost { top: 26%; font-size: clamp(5rem, 34vw, 12rem); }
  .hero__headline { max-width: 100%; }
  .hero__foot { max-width: 100%; }
}

/* ============================================================
   ABOUT
   ============================================================ */
/* Columns stretch to the same height, so the image ends level with the text
   instead of leaving a slab of empty page beneath it. */
.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: stretch;
}
.about__col { display: flex; flex-direction: column; }
.about__statement {
  font-size: var(--t-xl);
  font-family: var(--f-display);
  font-weight: 400;
  line-height: 1.14;
  letter-spacing: var(--ls-tight);
  text-wrap: balance;
}
.about__statement b { font-weight: 600; color: var(--accent); }

.about__media {
  position: relative;
  height: 100%;
  min-height: clamp(20rem, 34vw, 30rem);
  overflow: hidden;
  background: var(--c-ink);
}
.about__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  /* Already cropped and edge-blended at build time by tools/build-about.ps1;
     grading it again here would only crush a good studio exposure. */
  object-position: 50% 30%;
}
/* No colour overlay. The portrait is meant to show his real skin tone, navy
   suit and white shirt; a brand tint on top would take those back. Integration
   with the palette is handled at build time by tools/build-about.ps1, which
   sinks the surroundings into the page's ink and leaves the subject alone. */
.about__media figcaption {
  position: absolute;
  z-index: 2;
  left: 0; bottom: 0;
  background: var(--c-black);
  color: var(--c-white);
  font-family: var(--f-display);
  font-size: var(--t-mono);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  padding: 0.7rem 1.1rem;
}

/* Equal thirds with the content centred inside each. Left-aligning the text
   pushed all three blocks to the left of their columns, which left the strip
   flush against the left gutter and 194px of empty ground on the right. */
.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2.5rem);
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: clamp(1.25rem, 2.4vw, 1.75rem);
  border-top: 1px solid var(--rule);
  text-align: center;
}
@media (max-width: 640px) {
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* Three items in two columns leaves the last one stranded in the left
     column. Spanning it across both centres it under the pair above. */
  .facts > :last-child { grid-column: 1 / -1; }
}
.fact__k {
  font-family: var(--f-display);
  font-size: var(--t-lg);
  font-weight: 600;
  letter-spacing: var(--ls-tight);
  color: var(--fg);
  display: block;
}
.fact__v {
  font-family: var(--f-display);
  font-size: var(--t-mono);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-top: 0.4rem;
  display: block;
}

@media (max-width: 900px) {
  .about__grid { grid-template-columns: 1fr; }
  /* The source is a 760x940 portrait. A 3/2 landscape box cropped ~55% of its
     height away and took the top of his head with it. Matching the frame to
     the photograph's own ratio means almost nothing is cropped at all. */
  .about__media { height: auto; aspect-ratio: 4 / 5; min-height: 0; }
  .about__media img { object-position: 50% 15%; }
}

/* ============================================================
   APPROACH — the pinned, constricting funnel
   ============================================================ */
.approach {
  background: var(--c-ink);
  color: var(--c-white);
  overflow: clip;
  padding-block: 0;                 /* the stage owns the vertical rhythm */
}
.approach__stage {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(1rem, 2.2vh, 1.75rem);
  padding-block: clamp(4.5rem, 9vh, 7rem) clamp(1.5rem, 3vh, 2.5rem);
}
.approach__stage .section__head { padding-bottom: 0; }
.approach__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
}
.approach__canvas {
  position: relative;
  height: min(74vh, 40rem);
}
.approach__canvas canvas { width: 100%; height: 100%; }

.approach__steps { position: relative; }
.step {
  padding-block: clamp(1.1rem, 2.4vw, 1.9rem);
  border-top: 1px solid var(--c-hairline-d);
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr);
  gap: 0 1.25rem;
  opacity: 0.3;
  transition: opacity var(--d-mid) var(--e-out);
}
.step:last-child { border-bottom: 1px solid var(--c-hairline-d); }
.step.is-active { opacity: 1; }
.step__n {
  font-family: var(--f-display);
  font-size: var(--t-mono);
  letter-spacing: var(--ls-wide);
  color: var(--c-green);
  padding-top: 0.55rem;
  font-variant-numeric: tabular-nums;
}
.step__t {
  font-family: var(--f-display);
  font-size: var(--t-lg);
  font-weight: 600;
  letter-spacing: var(--ls-tight);
  text-transform: uppercase;
  line-height: 1.06;
}
.step__d {
  grid-column: 2;
  color: rgba(255, 254, 255, 0.6);
  font-size: var(--t-sm);
  line-height: 1.6;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height var(--d-mid) var(--e-out), opacity var(--d-mid) var(--e-out), margin var(--d-mid) var(--e-out);
}
.step.is-active .step__d { max-height: 8rem; opacity: 1; margin-top: 0.6rem; }

/* Short viewports: the pinned stage must never be taller than the screen it is
   pinned to, or the steps run off the bottom with no way to scroll to them. */
@media (min-width: 901px) and (max-height: 800px) {
  .approach__canvas { height: min(60vh, 26rem); }
  .approach__steps > h2 { font-size: var(--t-lg) !important; margin-bottom: 1rem !important; }
  .step { padding-block: 0.7rem; }
  .step__t { font-size: 1.05rem; }
  .step__d { font-size: 0.8125rem; }
  .step.is-active .step__d { max-height: 5.5rem; }
}

@media (max-width: 900px) {
  .approach__stage {
    min-height: 0;
    gap: 1.75rem;
    padding-block: var(--section);
  }
  .approach__grid { grid-template-columns: 1fr; gap: 2rem; }
  .approach__canvas { height: 46vh; order: -1; }
  .step { opacity: 1; }
  .step__d { max-height: 8rem; opacity: 1; margin-top: 0.6rem; }
}

/* ============================================================
   SERVICES — numbered editorial index
   ============================================================ */
.svc { border-top: 1px solid var(--rule); }
.svc__row {
  position: relative;
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 0.9fr) minmax(0, 1.35fr);
  gap: clamp(1rem, 2.5vw, 3rem);
  padding-block: clamp(2rem, 4vw, 3.25rem);
  border-bottom: 1px solid var(--rule);
  transition: background var(--d-fast) var(--e-out);
}
.svc__row::before {
  content: '';
  position: absolute;
  left: 0; top: -1px;
  height: 1px; width: 0;
  background: var(--accent-solid);
  transition: width var(--d-mid) var(--e-out);
}
.svc__row:hover::before, .svc__row:focus-within::before { width: 100%; }
.svc__n {
  font-family: var(--f-display);
  font-size: var(--t-mono);
  letter-spacing: var(--ls-wide);
  color: var(--accent);
  padding-top: 0.5rem;
  font-variant-numeric: tabular-nums;
}
.svc__t {
  font-family: var(--f-display);
  font-size: clamp(1.5rem, 2.5vw, 2.35rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: var(--ls-tight);
  text-transform: uppercase;
  text-wrap: balance;
}
.svc__for {
  display: block;
  margin-top: 0.85rem;
  font-family: var(--f-body);
  font-size: var(--t-sm);
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0;
  text-transform: none;
  color: var(--fg-muted);
  max-width: 34ch;
}
.svc__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  align-content: start;
}
.svc__list li {
  font-size: var(--t-sm);
  line-height: 1.35;
  color: var(--fg-muted);
  padding: 0.42rem 0.85rem;
  border: 1px solid var(--rule);
  border-radius: 99px;
  transition: color var(--d-fast) var(--e-out), border-color var(--d-fast) var(--e-out);
}
.svc__row:hover .svc__list li { border-color: color-mix(in srgb, var(--accent-solid) 45%, transparent); color: var(--fg); }

@media (max-width: 900px) {
  .svc__row { grid-template-columns: 2.75rem minmax(0, 1fr); }
  .svc__list { grid-column: 2; }
}

/* ============================================================
   CAPABILITIES
   ============================================================ */
.caps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
  gap: 0 clamp(2rem, 5vw, 5rem);
}
.cap {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 1rem;
  align-items: baseline;
  padding-block: clamp(0.85rem, 1.7vw, 1.25rem);
  border-bottom: 1px solid var(--rule);
}
.cap__n {
  font-family: var(--f-display);
  font-size: var(--t-mono);
  letter-spacing: var(--ls-wide);
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.cap__t {
  font-family: var(--f-display);
  font-size: clamp(1.1rem, 1.9vw, 1.6rem);
  font-weight: 500;
  letter-spacing: var(--ls-tight);
  text-transform: uppercase;
  line-height: 1.1;
}

/* ============================================================
   VISION — the full-bleed brand-green moment
   ============================================================ */
.vision {
  background: var(--c-green);
  color: var(--c-black);
  --fg: var(--c-black);
  --fg-muted: rgba(35, 31, 32, 0.68);
  --rule: rgba(35, 31, 32, 0.2);
  --accent: var(--c-black);
}
/* Headline and mark share the width, so the section reads as one filled block
   rather than a column of type against a large empty field. */
.vision__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(10rem, 25%, 19rem);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: stretch;
}
.vision__mark {
  color: var(--c-black);
  opacity: 0.16;
  display: grid;
  place-items: center;
}
.vision__mark svg { width: 100%; height: auto; }
/* Once the extruded mark takes over it is a lit solid, not a watermark, and it
   fills the column's full height so the right side is genuinely occupied. */
.vision__mark.is-3d { opacity: 1; height: 100%; min-height: 15rem; }
.vision__mark.is-3d canvas { width: 100%; height: 100%; display: block; }

.vision__q {
  font-family: var(--f-display);
  font-size: var(--t-xxl);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: var(--ls-mega);
  text-transform: uppercase;
  max-width: 16ch;
  text-wrap: balance;
}
@media (max-width: 820px) {
  .vision__top { grid-template-columns: 1fr; gap: 1.5rem; }
  /* Stacked, the mark inherited height:100% + min-height:15rem from the 3D
     rule while being only 5.5rem wide — an 88x240 canvas, so the extruded
     mark was clipped left and right. A square box lets it sit properly. */
  .vision__mark { width: min(48%, 10.5rem); justify-self: center; }
  .vision__mark.is-3d { height: auto; aspect-ratio: 1 / 1; min-height: 0; }
}
.vision__body {
  margin-top: clamp(2rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
  gap: clamp(1.5rem, 4vw, 4rem);
  padding-top: clamp(1.75rem, 3vw, 2.5rem);
  border-top: 1px solid var(--rule);
}
/* No character cap here. Capping the measure at 46ch left ~88px of every
   column unused on its right, so the pair sat flush left with a gap on the
   right. Letting each paragraph fill its own column balances the block while
   keeping the text left-aligned — centring multi-line prose would even the
   edges but make it markedly harder to read. At this width the measure is
   about 62 characters, still well inside a comfortable range. */
.vision__body p { color: rgba(35, 31, 32, 0.78); max-width: 100%; }

/* ============================================================
   CONTACT + FOOTER
   ============================================================ */
.contact { background: var(--c-ink); color: var(--c-white); }
/* Set wide enough that the headline fills the measure on two lines instead of
   stacking short ones and leaving a field of empty ground beside it. */
.contact__q {
  font-size: var(--t-xxl);
  max-width: 20ch;
}
@media (max-width: 900px) { .contact__q { max-width: 100%; } }
.contact__links {
  margin-top: clamp(1.5rem, 2.8vw, 2.25rem);
  display: grid;
  gap: 0;
  border-top: 1px solid var(--c-hairline-d);
}
.clink {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: clamp(0.85rem, 1.7vw, 1.3rem);
  border-bottom: 1px solid var(--c-hairline-d);
  font-family: var(--f-display);
  font-size: clamp(1.35rem, 3.2vw, 2.5rem);
  font-weight: 500;
  letter-spacing: var(--ls-tight);
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
}
.clink__k { position: relative; display: inline-block; }
.clink__v {
  font-family: var(--f-display);
  font-size: var(--t-mono);
  letter-spacing: var(--ls-wide);
  color: rgba(255, 254, 255, 0.45);
  flex: none;
  transition: color var(--d-fast) var(--e-out), transform var(--d-fast) var(--e-out);
}
.clink::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--c-green);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform var(--d-mid) var(--e-out);
}
/* WhatsApp row: one label, several country links. Not a link itself, so it
   gets no underline sweep and no hover colour of its own. */
.clink--multi { cursor: default; }
.clink--multi::after { content: none; }
/* the row is not a link, so it must not adopt the link hover treatment */
.clink--multi:hover .clink__k,
.clink--multi:focus-within .clink__k { color: inherit; }
.clink__countries {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: flex-end;
  gap: 0.4rem 0.65rem;
  font-family: var(--f-display);
  font-size: var(--t-mono);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
}
.clink__country {
  position: relative;
  color: rgba(255, 254, 255, 0.45);
  padding-bottom: 2px;
  transition: color var(--d-fast) var(--e-out);
}
.clink__country::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--c-green);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform var(--d-fast) var(--e-out);
}
.clink__country:hover, .clink__country:focus-visible { color: var(--c-green); }
.clink__country:hover::after, .clink__country:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left center;
}
.clink__sep { color: rgba(255, 254, 255, 0.25); }

.clink:hover::after, .clink:focus-visible::after { transform: scaleX(1); transform-origin: left center; }
.clink:hover .clink__k, .clink:focus-visible .clink__k { color: var(--c-green); }
.clink:hover .clink__v { color: var(--c-green); transform: translateX(-0.35rem); }

.footer {
  background: var(--c-ink);
  color: rgba(255, 254, 255, 0.5);
  border-top: 1px solid var(--c-hairline-d);
  padding-block: clamp(2rem, 4vw, 3rem);
  font-family: var(--f-display);
  font-size: var(--t-mono);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
}
.footer__row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
  justify-content: space-between;
}
.footer a:hover { color: var(--c-green); }
