/* ==========================================================================
   Vinnie Aguiar — portfolio
   Type: IvyMode (display) + Articulat CF (text) via Adobe Fonts kit orx6zyg.
   Local fallbacks only render if the kit fails to load.
   ========================================================================== */
@font-face { font-family: "Fallback Serif"; src: url("../fonts/cormorant-garamond-latin-400-normal.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Fallback Sans"; src: url("../fonts/manrope-latin-400-normal.woff2") format("woff2"); font-display: swap; }

:root {
  /* colour */
  --c-black: #000000;
  --c-ink: #1d1d1b;
  --c-panel: #171717;
  --c-mute: #707070;
  --c-line: rgba(112, 112, 112, .45);
  --c-stone: #676761;
  --c-bone: #cecdc1;
  --c-sand: #d3bb86;          /* testimonials — a touch lighter than the Behance "Gr" gold */
  --c-white: #ffffff;
  --grad: linear-gradient(211deg, var(--c-bone) 8%, var(--c-ink) 100%);

  /* type */
  --f-display: "ivymode", "Fallback Serif", Georgia, serif;
  --f-text: "articulat-cf", "Fallback Sans", "Helvetica Neue", Arial, sans-serif;
  --u: calc(100vw / 1920);                                  /* 1 mockup px */
  --t-xs: clamp(11px, calc(15 * var(--u)), 15px);           /* meta */
  --t-s: clamp(12px, calc(20 * var(--u)), 20px);            /* labels / UI */
  --t-m: clamp(15px, calc(25 * var(--u)), 25px);            /* card copy */
  --t-l: clamp(21px, calc(40 * var(--u)), 40px);            /* lead */
  --t-xl: clamp(40px, calc(96 * var(--u)), 96px);           /* menu, prices */
  --t-xxl: clamp(46px, calc(128 * var(--u)), 128px);        /* footer title, loader */
  --t-hero: calc(279 * var(--u));                           /* marquee */
  --lh-tight: 1.02;
  --lh-copy: 1.18;

  /* space */
  --pad: clamp(16px, calc(80 * var(--u)), 80px);
  --col: clamp(16px, calc(179 * var(--u)), 179px);
  --gap: clamp(6px, calc(10 * var(--u)), 10px);
  --hair: 1px;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--c-black); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: clip; }
body {
  margin: 0; background: var(--c-black); color: var(--c-white);
  font: 400 16px/var(--lh-copy) var(--f-text);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: clip;
}
body.is-loading { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img, svg, canvas { display: block; }
svg { overflow: visible; }
h1, h2, h3, p, figure, ol, ul, blockquote { margin: 0; padding: 0; }
ol, ul { list-style: none; }
::selection { background: var(--c-bone); color: var(--c-ink); }
:focus-visible { outline: var(--hair) solid var(--c-bone); outline-offset: 4px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: var(--pad); top: -80px; z-index: 200; padding: 10px 16px; background: var(--c-bone); color: var(--c-ink); border-radius: 40px; }
.skip:focus { top: 16px; }
.label { font: 400 var(--t-s)/1 var(--f-text); text-transform: uppercase; color: var(--c-mute); }

/* Placeholder surfaces (swap for real images) */
.ph {
  position: relative; background-color: var(--tone, var(--c-panel));
  background-image:
    radial-gradient(120% 90% at 70% 10%, rgba(206,205,193,.14), transparent 60%),
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 100% 100%, 48px 48px, 48px 48px;
}
.ph::after { content: attr(data-ph); position: absolute; left: 14px; bottom: 12px; font: 400 11px/1.2 var(--f-text); color: rgba(206,205,193,.5); }
.ph > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Page wrappers / camera ---------- */
.clip { overflow: clip; }
@supports not (overflow: clip) { .clip { contain: paint; } }
.scroller { position: relative; transform-origin: 0 0; }
#main { position: relative; z-index: 1; background: var(--c-black); }
.scroller.is-moving { will-change: transform; }

/* ---------- Loader ---------- */
.loader { position: fixed; inset: 0; z-index: 90; pointer-events: none; display: flex; align-items: flex-end; padding: var(--pad); }
.loader__count { overflow: clip; overflow-clip-margin: .1em; padding: .12em 0 .06em; font: 400 var(--t-xxl)/1 var(--f-display); color: var(--c-bone); }
.loader__num { display: block; transition: transform .9s var(--ease-io); font-variant-numeric: tabular-nums; }
.loader__bar { position: absolute; left: var(--pad); right: var(--pad); bottom: calc(var(--pad) - 18px); height: var(--hair); background: rgba(206,205,193,.15); overflow: hidden; }
.loader__fill { display: block; height: 100%; background: var(--c-bone); transform-origin: 0 50%; transform: scaleX(0); }
.loader.is-done .loader__num { transform: translateY(115%); }
.loader.is-done .loader__bar { opacity: 0; transition: opacity .5s; }

/* ---------- Entrance reveals ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out); }
.is-in .reveal { opacity: 1; transform: none; }
.is-in .hdr__tag { transition-delay: .08s; }
.is-in .burger { transition-delay: .16s; }
.is-in .hero__scroll { transition-delay: .24s; }
.is-in .cta { transition-delay: .32s; }

/* ---------- Header ---------- */
.hdr {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: clamp(20px, calc(62 * var(--u)), 62px) var(--pad) 0; pointer-events: none;
  mix-blend-mode: difference; color: var(--c-white);
}
.hdr > * { pointer-events: auto; }
.hdr__logo { width: clamp(118px, calc(220 * var(--u)), 220px); padding: 4px 0; transition: opacity .6s var(--ease-out), transform .8s var(--ease-out); }
.hdr__logo.is-hidden { opacity: 0 !important; transform: translateY(-12px) !important; pointer-events: none; }
.hdr__logo svg { width: 100%; height: auto; fill: currentColor; }
.hdr__tag { display: flex; flex-direction: column; font-size: clamp(11px, calc(16 * var(--u)), 16px); line-height: 1; text-transform: uppercase; transition: opacity .5s; }
.hdr__tag.is-hidden { opacity: 0 !important; }

/* language switcher: header (desktop) + menu (all sizes) */
.hdr__end { justify-self: end; display: flex; align-items: center; gap: clamp(20px, calc(36 * var(--u)), 36px); }
.lang { display: flex; gap: 14px; font-size: clamp(11px, calc(14 * var(--u)), 14px); line-height: 1; letter-spacing: .02em; }
.lang a { opacity: .45; transition: opacity .4s; padding: 4px 0; }
.lang a:hover, .lang a[aria-current] { opacity: 1; }
.lang a[aria-current] { background: linear-gradient(currentColor, currentColor) 0 100% / 100% var(--hair) no-repeat; }
.lang--menu { flex-wrap: wrap; gap: 6px 18px; font-size: var(--t-s); }
.lang--menu a { opacity: .55; }
@media (max-width: 767px) { .hdr .lang { display: none; } }
/* thin burger: long line on top, short line below, right-aligned; closes into a thin X */
.burger { position: relative; width: 48px; height: 28px; }
.burger span { position: absolute; right: 0; height: var(--hair); background: currentColor; transform-origin: 50% 50%; transition: transform .6s var(--ease-io), width .6s var(--ease-io), top .6s var(--ease-io), opacity .3s; }
.burger__l1 { top: 10px; width: 44px; }
.burger__l2 { top: 18px; width: 22px; }
.burger:hover span { opacity: .6; }
.is-menu .burger__l1, .is-menu .burger__l2 { top: 14px; width: 30px; }
.is-menu .burger__l1 { transform: rotate(45deg); }
.is-menu .burger__l2 { transform: rotate(-45deg); }
/* ---------- Menu (swiss) ---------- */
.menu { position: fixed; inset: 0; z-index: 55; background: var(--c-bone); color: var(--c-ink); clip-path: inset(0 0 100% 0); transition: clip-path 1s var(--ease-io), visibility 0s 1s; visibility: hidden; }
.is-menu .menu { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path 1s var(--ease-io); }
.menu__inner { height: 100%; display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); padding: calc(140 * var(--u) + 60px) var(--pad) var(--pad); }
.menu__meta { grid-column: 1 / span 3; align-self: end; display: flex; flex-direction: column; gap: 6px; font-size: var(--t-s); }
.menu__label { margin-top: 28px; font-size: var(--t-xs); text-transform: uppercase; color: var(--c-stone); }
.menu__meta a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: var(--hair); }
.menu__list { grid-column: 5 / span 8; align-self: end; border-top: var(--hair) solid rgba(29,29,27,.25); }
.menu__list li { border-bottom: var(--hair) solid rgba(29,29,27,.25); overflow: clip; overflow-clip-margin: 0; }
.menu__list a { display: flex; align-items: baseline; gap: calc(40 * var(--u) + 12px); padding: .08em 0 .16em; font: 400 min(var(--t-xl), 7.4vh)/1.05 var(--f-text); letter-spacing: -.02em; }
.menu__n { font-size: var(--t-xs); letter-spacing: 0; color: var(--c-stone); min-width: 2ch; }
.menu__t { display: inline-block; transform: translateY(120%); transition: transform .9s var(--ease-out); }
.menu__list li:nth-child(2) { --d: .05s; } .menu__list li:nth-child(3) { --d: .1s; } .menu__list li:nth-child(4) { --d: .15s; }
.menu__list li:nth-child(5) { --d: .2s; } .menu__list li:nth-child(6) { --d: .25s; } .menu__list li:nth-child(7) { --d: .3s; }
.is-menu .menu__t { transform: none; transition-delay: calc(.35s + var(--d, 0s)); }
.menu__list a:hover .menu__t { transform: translateX(calc(24 * var(--u) + 6px)); transition-duration: .5s; transition-delay: 0s; }
.is-menu .cta { opacity: 0; pointer-events: none; }

/* ---------- Sticky liquid-glass CTA (dark-adapted) ---------- */
.cta {
  --r: 9999px; --tr: 15%;
  position: fixed; z-index: 58; right: var(--pad); bottom: clamp(16px, calc(76 * var(--u)), 76px);
  display: inline-flex; align-items: center; gap: clamp(14px, calc(22 * var(--u)), 22px);
  height: clamp(50px, calc(62 * var(--u)), 62px);
  padding: 0 clamp(8px, calc(14 * var(--u)), 14px) 0 clamp(22px, calc(34 * var(--u)), 34px);
  border-radius: var(--r); border: 1px double rgba(255,255,255,.08); background: rgba(255,255,255,.03);
  color: #f5f5f7; font: 400 clamp(12px, calc(16 * var(--u)), 16px)/1 var(--f-text); text-transform: uppercase; white-space: nowrap; user-select: none;
  transition: opacity .6s, transform .25s, background-color .25s;
}
.cta__glass { position: absolute; inset: 0; z-index: 0; border-radius: inherit; background: rgba(12,12,12,.32); -webkit-backdrop-filter: blur(2px) saturate(1.2); backdrop-filter: blur(2px) saturate(1.2); }   /* tint keeps the label legible over light images */
.cta__fx {
  position: absolute; inset: 0; z-index: 1; border-radius: inherit; pointer-events: none; filter: contrast(3) brightness(.9);
  box-shadow:
    inset 2px -2px 1px -1px rgba(255,255,255,.9), inset -2px 2px 1px -1px rgba(255,255,255,.9),
    inset 6px -6px 1px -6px rgba(255,255,255,.55), inset -6px 6px 1px -6px rgba(255,255,255,.55),
    inset 0 0 2px rgba(0,0,0,.8), 0 4px 8px rgba(0,0,0,.2);
}
.cta__fx::before {
  content: ""; position: absolute; top: 35%; left: 50%; transform: translateX(-50%);
  width: calc(100% - 16px); height: calc(100% - 16px); border-radius: inherit;
  border: 1px solid rgba(0,0,0,.9); filter: blur(8px);
}
.cta__fx::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; filter: blur(7px);
  background: linear-gradient(45deg, rgba(255,255,255,.8) 0%, transparent var(--tr), transparent calc(100% - var(--tr)), rgba(255,255,255,.8) 100%);
}
.cta__overlay { position: absolute; inset: 4.5px; border: 1px solid rgba(255,255,255,.2); border-radius: inherit; filter: blur(1px); overflow: hidden; }
/* slow light sweep across the glass */
.cta__overlay::after {
  content: ""; position: absolute; inset: -20% 0; width: 40%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,.22), transparent);
  transform: translateX(-120%); animation: glass-sweep 6.5s var(--ease-io) 2.5s infinite;
}
@keyframes glass-sweep { 0%, 70% { transform: translateX(-120%); } 100% { transform: translateX(320%); } }
.cta__label, .cta__icon { position: relative; z-index: 2; }
.cta__label { display: block; overflow: clip; overflow-clip-margin: 0; padding: .2em 0; filter: drop-shadow(0 25px 3px rgba(102,102,102,.15)); }
.cta__roll { display: block; position: relative; transition: transform .8s var(--ease-out); }
.cta__roll::after { content: attr(data-text); position: absolute; left: 0; top: calc(100% + .4em); }
.cta__icon { flex: none; width: clamp(30px, calc(36 * var(--u)), 36px); height: clamp(30px, calc(36 * var(--u)), 36px); color: #f5f5f7; transition: transform .6s var(--ease-out); }
.cta:hover { background: rgba(255,255,255,0); transform: translateY(-3px); }
.cta:hover .cta__roll { transform: translateY(calc(-100% - .4em)); }
.cta:hover .cta__icon { transform: rotate(45deg) scale(1.06); }
.cta:active { transform: scale(.94); }
.cta:active .cta__icon { transform: scale(.94); }
.is-ready .cta { transition-delay: 0s; }
.cta.is-hidden { opacity: 0; pointer-events: none; transform: translateY(24px); }
/* ---------- Cursor ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 70; pointer-events: none; width: clamp(72px, calc(120 * var(--u)), 124px); height: clamp(72px, calc(120 * var(--u)), 124px); mix-blend-mode: difference; color: var(--c-white); will-change: transform; }
.cursor__ring { width: 100%; height: 100%; transform: scale(0); transition: transform .5s var(--ease-out); }
.cursor__label { position: absolute; left: 50%; top: calc(100% + 12px); transform: translateX(-50%); white-space: nowrap; font-size: var(--t-xs); text-transform: uppercase; opacity: 0; transition: opacity .3s; }
.cursor.is-on .cursor__ring { transform: scale(1); }
.cursor.is-on .cursor__label { opacity: 1; }
/* minimal global cursor: 8px dot → 40px hairline ring over interactive elements (difference blend) */
.dot { position: fixed; left: 0; top: 0; z-index: 71; width: 40px; height: 40px; margin: -20px 0 0 -20px; pointer-events: none; mix-blend-mode: difference; opacity: 0; transition: opacity .3s; will-change: transform; }
.dot::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--c-white); border: var(--hair) solid var(--c-white); transform: scale(.2); transition: transform .45s var(--ease-out), background-color .3s; }
.dot.is-on { opacity: 1; }
.dot.is-link::before { transform: scale(1); background: transparent; }
.dot.is-hidden { opacity: 0; }
.has-dot, .has-dot * { cursor: none !important; }
@media (hover: none), (pointer: coarse) { .cursor, .dot { display: none; } }

/* ---------- Work: hero → grid ---------- */
.work { position: relative; }
.work__stage { position: sticky; top: 0; height: 100vh; height: 100lvh; overflow: hidden; }
.grid { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform-origin: 0 0; will-change: transform; }
.grid__row { position: absolute; left: 0; top: 0; will-change: transform; }
.cell { position: absolute; display: block; overflow: hidden; background: var(--c-panel); }
.cell .ph { position: absolute; inset: 0; }
.cell__in { position: absolute; inset: -6%; transition: transform 1.1s var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .grid.is-live .cell { cursor: none; }
  .grid.is-live .cell:hover .cell__in { transform: scale(1.05); }
}
.cell--hero { background: transparent; }
.grid:not(.is-live) .cell { pointer-events: none; }
.hero__gl { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero__ui { position: absolute; inset: 0; pointer-events: none; }
.hero__scroll {
  /* same bottom + height as the CTA so both share one horizontal axis */
  position: absolute; z-index: 1; left: var(--pad); bottom: clamp(16px, calc(76 * var(--u)), 76px); height: clamp(50px, calc(62 * var(--u)), 62px);
  display: flex; align-items: center; gap: 14px; font-size: clamp(11px, calc(16 * var(--u)), 16px); line-height: 1; text-transform: uppercase;
  mix-blend-mode: difference;
}
.hero__line { position: relative; width: var(--hair); height: calc(var(--t-s) * 2.2); background: rgba(255,255,255,.22); overflow: hidden; }
.hero__line::after { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 45%; background: var(--c-white); transform: translateY(-100%); animation: scroll-cue 2.4s var(--ease-io) infinite; }
@keyframes scroll-cue { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(230%); } }
.hero__fallback { position: absolute; left: 0; top: 0; overflow: hidden; background: var(--c-black); }
.hero__fallback img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 2.4s var(--ease-io); }
.hero__fallback img.is-on { opacity: 1; }

/* ---------- About ---------- */
.about { position: relative; padding-bottom: clamp(80px, calc(220 * var(--u)), 220px); }
.about__pin { height: 240vh; }
.about__stage { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; grid-template-columns: calc(992 * var(--u) - var(--col)) 1fr; align-content: center; padding: 0 var(--pad) 0 var(--col); }
.about__label { padding-top: .6em; }
.about__text {
  max-width: 22.5em; padding-bottom: .25em; font-size: var(--t-l); line-height: var(--lh-tight);
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.about__text .w { -webkit-text-fill-color: rgba(38,38,36, var(--a, 1)); }
.about__photo { margin-left: calc(381 * var(--u)); width: max(calc(579 * var(--u)), 240px); aspect-ratio: 579 / 719; overflow: hidden; }
.about__img { width: 100%; height: 118%; filter: grayscale(1); will-change: transform; }

/* ---------- Featured on Behance ---------- */
.featured { position: relative; height: 380vh; }
.featured__stage { position: sticky; top: 0; height: 100vh; height: 100lvh; overflow: hidden; display: flex; align-items: center; }
.featured__text {
  position: relative; white-space: nowrap; will-change: transform; padding: .18em .1em .22em;
  font: 400 var(--t-hero)/1 var(--f-display); text-transform: uppercase;
  background: linear-gradient(90deg, var(--c-bone) 0%, var(--c-ink) 25%, var(--c-bone) 50%, var(--c-ink) 75%, var(--c-bone) 100%);
  background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
}
.featured__gl { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.featured__fallback { display: none; }
.no-webgl .featured__fallback { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 4vw; }
.no-webgl .featured__fallback img { width: calc(342 * var(--u)); height: auto; }

/* ---------- What I do ---------- */
.services { position: relative; height: 420vh; }
.services__stage { position: sticky; top: 0; height: 100vh; height: 100lvh; overflow: hidden; }
.services__media { position: absolute; inset: 0; }
.svc { position: absolute; inset: 0; overflow: hidden; clip-path: inset(100% 0 0 0); will-change: clip-path; }
.svc:first-child { clip-path: inset(0 0 0 0); }
.svc__in { position: absolute; inset: 0; will-change: transform; }
.services__stage { background: var(--c-black); }
.svc { background: var(--c-black); }
.svc__in.ph::after { bottom: auto; top: calc(160 * var(--u) + 30px); left: var(--pad); }
.services__stage::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(0,0,0,.35), transparent 30%, transparent 70%, rgba(0,0,0,.35)); pointer-events: none; }
.svc__in { transform-origin: 0 100%; }
.services__rule { position: absolute; left: 0; right: 0; top: 47.6%; height: var(--hair); background: var(--c-white); z-index: 2; transform-origin: 0 50%; }
.services__label { position: absolute; z-index: 2; left: var(--col); top: calc(47.6% + 16px); color: var(--c-white); display: flex; gap: 14px; }
.services__count { color: rgba(255,255,255,.55); font-variant-numeric: tabular-nums; }
.services__names { position: absolute; z-index: 2; right: var(--pad); top: calc(47.6% + 16px); width: min(34vw, 520px); height: 40vh; }
.svc-name { position: absolute; inset: 0 0 auto auto; text-align: right; }
.svc-name__m { display: block; overflow: clip; overflow-clip-margin: 0; padding: .06em 0 .22em; margin-top: -.06em; }
.svc-name__t { display: block; font-size: var(--t-l); line-height: 1.1; transform: translateY(110%); will-change: transform; }
.svc-name__d { display: block; margin-top: 8px; margin-left: auto; max-width: 26ch; font-size: var(--t-xs); line-height: 1.4; color: rgba(255,255,255,.72); opacity: 0; }

/* ---------- Testimonials: folders ---------- */
.testimonials { position: relative; height: 340vh; }
.testimonials__stage { position: sticky; top: 0; height: 100vh; height: 100lvh; overflow: hidden; }
.testimonials__deck { position: absolute; inset: 0; }
.tcard {
  --w: min(calc(1100 * var(--u)), 92vw);
  position: absolute; left: 50%; top: 50%; width: var(--w); margin-left: calc(var(--w) / -2); min-height: calc(220 * var(--u) + 40px);
  display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px;
  padding: calc(45 * var(--u) + 6px) calc(57 * var(--u) + 6px) calc(40 * var(--u) + 6px);
  border-radius: var(--r-tl, 7px) var(--r-tr, 7px) 7px 7px; background: var(--c-sand); color: var(--c-ink);
  font-size: var(--t-m); line-height: var(--lh-copy);
  box-shadow: 0 30px 60px rgba(0,0,0,.35);
  will-change: transform; transform: translate3d(0, 120vh, 0); transform-origin: 50% 0;
}
.tcard__tab {
  --tab-w: 24%; position: absolute; bottom: calc(100% - 1px); left: calc((100% - var(--tab-w)) * var(--tab-k, 0)); width: var(--tab-w); height: calc(34 * var(--u) + 14px);
  display: flex; align-items: center; padding: 0 calc(24 * var(--u) + 8px);
  background: var(--c-sand); border-radius: 7px 7px 0 0; font-size: var(--t-xs); text-transform: uppercase; color: rgba(29,29,27,.65);
}
.tcard__who { display: flex; flex-direction: column; }
.tcard__name { font-size: var(--t-m); }
.tcard__co { margin-top: 6px; color: rgba(29,29,27,.6); }
.tcard__stars { display: flex; gap: 3px; margin-top: auto; padding-top: 18px; color: var(--c-ink); }
.tcard__stars svg { width: calc(20 * var(--u) + 6px); height: calc(19 * var(--u) + 6px); }
.tcard__q { font-size: var(--t-m); line-height: var(--lh-copy); }
.tcard::after, .tcard__tab::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--c-black); opacity: var(--dim, 0); pointer-events: none; }

/* ---------- Pricing: swiss columns ---------- */
.pricing { padding: clamp(96px, calc(200 * var(--u)), 200px) var(--pad) clamp(96px, calc(260 * var(--u)), 260px); }
.pricing__label { text-align: center; margin-bottom: calc(90 * var(--u) + 16px); }
.pricing__note { margin-top: 22px; font-size: var(--t-s); color: var(--c-mute); }
.plans { display: grid; grid-template-columns: repeat(4, 1fr); border-top: var(--hair) solid var(--c-line); border-bottom: var(--hair) solid var(--c-line); }
.plan { position: relative; }
.plan + .plan { border-left: var(--hair) solid var(--c-line); }
.plan--full { box-shadow: inset 0 2px 0 var(--c-bone); }
.plan__link {
  position: relative; isolation: isolate; display: flex; flex-direction: column; height: 100%; min-height: calc(560 * var(--u) + 60px);
  padding: calc(40 * var(--u) + 8px) calc(36 * var(--u) + 8px) calc(36 * var(--u) + 8px); color: var(--c-bone);
  transition: color .6s var(--ease-out);
}
.plan__link::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--c-bone); transform: scaleY(0); transform-origin: 50% 100%; transition: transform .8s var(--ease-io); }
.plan__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.plan__name { font-size: var(--t-l); line-height: var(--lh-tight); max-width: 8em; min-height: calc(2em * 1.02); }   /* two lines everywhere → descriptions align */
.plan__go { flex: none; width: clamp(28px, calc(38 * var(--u)), 38px); height: clamp(28px, calc(38 * var(--u)), 38px); transition: transform .8s var(--ease-out); }
.plan__desc { margin-top: calc(48 * var(--u) + 8px); font-size: var(--t-s); line-height: 1.3; color: var(--c-mute); max-width: 22em; transition: color .6s; }
.plan__foot { margin-top: auto; padding-top: 40px; display: flex; flex-direction: column; gap: 10px; }
.plan__from { font-size: var(--t-xs); text-transform: uppercase; color: var(--c-mute); transition: color .6s; }
.plan__price { font: 400 var(--t-xl)/.95 var(--f-display); letter-spacing: -.01em; padding-bottom: .06em; }
.plan__cta { margin-top: 22px; padding-top: 14px; border-top: var(--hair) solid currentColor; font-size: var(--t-xs); text-transform: uppercase; opacity: .55; transition: opacity .6s; }
@media (hover: hover) {
  .plan__link:hover { color: var(--c-ink); }
  .plan__link:hover::before { transform: scaleY(1); }
  .plan__link:hover .plan__desc, .plan__link:hover .plan__from { color: var(--c-stone); }
  .plan__link:hover .plan__go { transform: rotate(45deg); }
  .plan__link:hover .plan__cta { opacity: 1; }
}
.plan__link:focus-visible { outline-offset: -6px; }

/* ---------- Footer / CTA ---------- */
.ftr {
  position: relative; min-height: 100vh; min-height: 100svh; background: var(--c-panel);
  display: grid; grid-template-columns: repeat(12, 1fr); grid-template-rows: auto 1fr auto auto; column-gap: var(--gap);
  padding: clamp(96px, calc(200 * var(--u)), 200px) var(--pad) calc(52 * var(--u) + 8px); color: var(--c-bone); overflow: hidden;
  z-index: 0; will-change: transform;
}
/* rises slower than the page from under the content, fading in */
.ftr::after { content: ""; position: absolute; inset: 0; background: var(--c-black); opacity: var(--fdim, 0); pointer-events: none; }
.ftr__top { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; align-items: baseline; }
.ftr__label { grid-column: 1 / span 3; font: 400 var(--t-s)/1 var(--f-text); text-transform: uppercase; color: var(--c-mute); }
.ftr__action { grid-column: 4 / -1; display: flex; flex-direction: column; gap: clamp(20px, calc(36 * var(--u)), 36px); }
.ftr__mail {
  position: relative; align-self: start; display: inline-flex; align-items: center; gap: .35em; max-width: 100%;
  padding-bottom: 8px; font-size: var(--t-l); line-height: 1.2; color: var(--c-bone);
  overflow-wrap: anywhere;
}
.ftr__mail::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: var(--hair); background: var(--c-mute); transform-origin: 100% 50%; transition: transform .8s var(--ease-io); }
.ftr__mail::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: var(--hair); background: var(--c-bone); transform: scaleX(0); transform-origin: 0 50%; transition: transform .8s var(--ease-io) .1s; }
.ftr__mail:hover::after { transform: scaleX(0); }
.ftr__mail:hover::before { transform: scaleX(1); }
.ftr__mail-go { flex: none; width: .8em; height: .8em; transition: transform .8s var(--ease-out); }
.ftr__mail:hover .ftr__mail-go { transform: rotate(45deg); }
.ftr__lead { font-size: var(--t-m); line-height: var(--lh-copy); color: var(--c-mute); max-width: 24em; }
/* swiss grid: col 1–3 carries section labels, content always starts on col 4 (same line as the email) */
.ftr__cols { grid-column: 1 / -1; align-self: end; display: grid; grid-template-columns: subgrid; row-gap: 32px; margin-top: clamp(56px, calc(120 * var(--u)), 120px); padding-top: 22px; border-top: var(--hair) solid var(--c-line); font-size: var(--t-s); line-height: 1.5; }
.ftr__col { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.ftr__col--1 { grid-column: 4 / span 3; }
.ftr__col--2 { grid-column: 7 / span 3; }
.ftr__col--3 { grid-column: 10 / span 3; }
.ftr__h { font-size: var(--t-xs); text-transform: uppercase; color: var(--c-mute); margin-bottom: 10px; }
.ftr__col a, .ftr__top-link { background: linear-gradient(currentColor, currentColor) 0 100% / 0 var(--hair) no-repeat; transition: background-size .5s var(--ease-out); }
.ftr__top-link:hover,.ftr__col a:hover { background-size: 100% var(--hair); }
/* big logo: letters rise from behind a mask, staggered, settling from a slight tilt */
.ftr__logo { grid-column: 1 / -1; margin-top: clamp(56px, calc(120 * var(--u)), 120px); overflow: clip; overflow-clip-margin: 0; padding-top: 4px; }
.ftr__logo { position: relative; }
.ftr__logo svg { width: 100%; height: auto; overflow: visible; transition: opacity .3s; }
.ftr__gl { position: absolute; left: 0; opacity: 0; pointer-events: none; transition: opacity .3s; }
.ftr__logo.is-gl .ftr__gl { opacity: 1; }
.ftr__logo.is-gl svg { opacity: 0; }
.ftr__logo svg > * { transform-box: fill-box; transform-origin: 0 100%; transform: translateY(118%) rotate(7deg); opacity: 0; transition: transform 1.4s var(--ease-out), opacity .7s var(--ease-out); transition-delay: calc(var(--i, 0) * 60ms); }
.ftr__logo.is-in svg > * { transform: none; opacity: 1; }
.ftr__logo svg > :nth-child(2) { --i: 1; } .ftr__logo svg > :nth-child(3) { --i: 2; } .ftr__logo svg > :nth-child(4) { --i: 3; }
.ftr__logo svg > :nth-child(5) { --i: 4; } .ftr__logo svg > :nth-child(6) { --i: 5; } .ftr__logo svg > :nth-child(7) { --i: 6; }
.ftr__logo svg > :nth-child(8) { --i: 7; } .ftr__logo svg > :nth-child(9) { --i: 8; } .ftr__logo svg > :nth-child(10) { --i: 9; }
.ftr__logo svg > :nth-child(11) { --i: 10; }
.ftr__bar { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; margin-top: clamp(28px, calc(48 * var(--u)), 48px); padding-top: 18px; border-top: var(--hair) solid var(--c-line); font-size: var(--t-xs); text-transform: uppercase; color: var(--c-mute); }
.ftr__copy { grid-column: 1 / span 3; }
.ftr__tag { grid-column: 4 / span 6; }
.ftr__top-link { grid-column: 10 / span 3; justify-self: start; color: var(--c-bone); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .plans { grid-template-columns: repeat(2, 1fr); }
  .plan:nth-child(3) { border-left: 0; }
  .plan:nth-child(n+3) { border-top: var(--hair) solid var(--c-line); }
  .plan__link { min-height: 420px; }
  .ftr__col--1 { grid-column: 4 / span 3; } .ftr__col--2 { grid-column: 7 / span 3; } .ftr__col--3 { grid-column: 10 / span 3; }
}
@media (max-width: 767px) {
  :root { --col: 16px; }
  .hdr { grid-template-columns: 1fr auto; }
  .hdr__tag { display: none; }
  .hero__scroll { bottom: 96px; }
  .about__stage { grid-template-columns: 1fr; gap: 28px; padding: 0 16px; }
  .about__photo { margin-left: 16px; width: calc(100% - 96px); }
  .featured__text { font-size: 26vw; }
    .services__names { width: calc(100vw - 32px); top: calc(47.6% + 48px); }
  .tcard { grid-template-columns: 1fr; row-gap: 18px; padding: 22px; }
  .tcard__q { grid-row: 1; }
  .tcard__tab { --tab-w: 38%; }
  .plans { grid-template-columns: 1fr; }
  .plan + .plan { border-left: 0; border-top: var(--hair) solid var(--c-line); }
  .plan__link { min-height: 0; padding: 28px 4px; }
  .plan__foot { padding-top: 32px; }
  .ftr { padding: 96px 16px 20px; }
  .ftr__label, .ftr__action { grid-column: 1 / -1; }
  .ftr__action { margin-top: 20px; }
  .ftr__col--1 { grid-column: 1 / -1; } .ftr__col--2 { grid-column: 1 / span 6; } .ftr__col--3 { grid-column: 7 / span 6; }
  .ftr__copy { grid-column: 1 / span 6; } .ftr__tag { display: none; } .ftr__top-link { grid-column: 7 / span 6; }
  .menu__inner { padding: 110px 16px 24px; grid-template-rows: 1fr auto; }
  .menu__list { grid-column: 1 / -1; grid-row: 1; }
  .menu__meta { grid-column: 1 / -1; grid-row: 2; }
  .cta { left: 16px; right: 16px; justify-content: space-between; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; transition-delay: 0s !important; animation: none !important; }
}
