/* ==========================================================================
   Suyash Shrivastava portfolio: single stylesheet for every page.
   Sections: base, site (shared components + home), book a call, projects.
   ========================================================================== */

/* ---------- Base ---------- */
:root { padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
html { scroll-padding-top: env(safe-area-inset-top, 0px); }
img { max-width: 100%; }
[hidden] { display: none !important; }

/* ==========================================================================
   Site: shared components and home page
   ========================================================================== */
/* Layout concept: vertical stack of full-bleed bands alternating light and dark; square corners,
   oversized geometric type, one four-stop gradient as the only hue. Single look by design
   (bands carry their own surface), so it does not follow the viewer's light/dark setting. */
:root {
  --surface: #ffffff;
  --surface-raised: #f5f6f8;
  --surface-inverse: #000000;
  --ink: #000000;
  --ink-muted: #5b5b5b;
  --ink-inverse: #ffffff;
  --border: #e5e5e5;
  --border-strong: #d8d8d8;
  --grad-violet: #ad63e0;
  --grad-magenta: #d85eab;
  --grad-coral: #ff6863;
  --grad-amber: #fd9240;
  --accent: var(--grad-coral);
  --focus: #ad63e0;
  --brand-gradient: linear-gradient(90deg, var(--grad-violet) 0%, var(--grad-magenta) 33%, var(--grad-coral) 66%, var(--grad-amber) 100%);
  --font: "Plus Jakarta Sans", "DM Sans", "General Sans", system-ui, sans-serif;
  --maxw: 1180px;
  --gap: 30px;
  --pad: clamp(72px, 11vw, 160px);
  --card: calc((min(1180px, 100vw - 32px) - 2 * var(--gap)) / 3);
  color-scheme: light;
}
.band--light { --surface: #ffffff; --surface-raised: #f5f6f8; --surface-inverse: #000000; --ink: #000000; --ink-muted: #5b5b5b; --ink-inverse: #ffffff; --border: #e5e5e5; --border-strong: #d8d8d8; }
.band--dark  { --surface: #000000; --surface-raised: #121212; --surface-inverse: #ffffff; --ink: #ffffff; --ink-muted: #a0a0a0; --ink-inverse: #000000; --border: #232323; --border-strong: #424242; }

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: #ffffff; color: #000000; font-family: var(--font); font-size: 16px; line-height: 1.5; letter-spacing: -0.01em; -webkit-font-smoothing: antialiased; overflow-x: clip; }
main { display: block; }
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

.band { background: var(--surface); color: var(--ink); }
.wrap { width: 100%; max-width: calc(var(--maxw) + 32px); margin-inline: auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
@media (min-width: 1100px) { .wrap { max-width: var(--maxw); padding-left: 0; padding-right: 0; } }

/* Type */
.display-xl { font-size: clamp(42px, 4.86vw, 70px); line-height: 1.1; font-weight: 800; letter-spacing: -0.04em; text-wrap: balance; }
.display-lg { font-size: clamp(32px, 3.34vw, 48px); line-height: 1.15; font-weight: 800; letter-spacing: -0.04em; text-wrap: balance; }
.display-md { font-size: clamp(24px, 2.22vw, 32px); line-height: 1.25; font-weight: 700; letter-spacing: -0.035em; }
.display-sm { font-size: clamp(20px, 1.67vw, 24px); line-height: 1.3; font-weight: 700; letter-spacing: -0.03em; }
.body-lg { font-size: clamp(17px, 1.39vw, 20px); line-height: 1.55; letter-spacing: -0.012em; }
.body-sm { font-size: 14px; line-height: 21px; letter-spacing: -0.005em; }
.muted { color: var(--ink-muted); }
.meta { font-size: 13px; line-height: 20px; letter-spacing: -0.01em; font-weight: 500; color: var(--ink-muted); }
.eyebrow { font-size: clamp(14px, 1.25vw, 18px); line-height: 24px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 12px; }
.tag { font-size: 12px; line-height: 18px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
/* Gradient text is painted inside its box, so give descenders (g, j, p, y) room below without shifting layout */
.gradtext { background: var(--brand-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; display: inline-block; padding-bottom: 0.25em; margin-bottom: -0.25em; }
.sweep { background-size: 150% 100%; background-position: 0% 50%; }
.grad { background: var(--brand-gradient); background-size: 150% 100%; background-position: 0% 50%; -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; padding-bottom: 0.25em; margin-bottom: -0.25em; }

/* Line mask for reveals */
/* The mask must clear the deepest descender (g, y, p) or GSAP's overflow clip cuts it. */
.line { display: block; overflow: hidden; padding-bottom: 0.24em; margin-bottom: -0.24em; }
.line__in { display: inline-block; will-change: transform; }

/* Icons */
.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: square; stroke-linejoin: miter; }

/* Buttons: face on top, hard gradient block fixed 8px behind it */
.btn { position: relative; display: inline-flex; align-self: start; }
.btn::before { content: ""; position: absolute; inset: 0; transform: translate(8px, 8px); background: var(--brand-gradient); }
.btn__face { position: relative; display: inline-flex; align-items: center; justify-content: center; height: 56px; padding: 0 48px; background: var(--surface-inverse); color: var(--ink-inverse); font-weight: 700; font-size: 16px; letter-spacing: -0.02em; white-space: nowrap; transition: transform 0.2s ease; }
.btn:hover .btn__face, .btn:focus-visible .btn__face { transform: translate(4px, 4px); }

.link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px; text-decoration-thickness: 2px; transition: text-decoration-color 0.2s ease; }
.link:hover { text-decoration-color: var(--accent); }
.link .ic, .action .ic { transition: transform 0.25s ease; }
.link:hover .ic, a:hover > .action .ic, .action:hover .ic { transform: translateX(4px); }
.action { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; }

.sq { width: 44px; height: 44px; display: inline-grid; place-items: center; background: #ffffff; color: #000000; transition: opacity 0.2s ease, transform 0.2s ease; }
.sq--ink { background: #000000; color: #ffffff; }
.sq:hover:not(:disabled) { transform: translateY(-2px); }
.sq:disabled { opacity: 0.35; cursor: default; }

/* Progress hairline */
.progress { position: fixed; top: env(safe-area-inset-top, 0px); left: 0; right: 0; height: 3px; z-index: 50; background: var(--brand-gradient); transform: scaleX(0); transform-origin: 0 50%; pointer-events: none; }

/* ---------- Hero ---------- */
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 80px; position: relative; z-index: 5; }
/* Floating glass nav (nav.js): appears on scroll up, hides on scroll down */
.nav-ph { display: none; height: 80px; }
.nav.is-floating { position: fixed; top: 12px; left: 50%; z-index: 60; width: min(calc(var(--maxw) + 48px), calc(100vw - 24px)); height: 64px; padding-inline: 24px; transform: translate(-50%, 0); color: #000; background: rgba(255, 255, 255, 0.62); -webkit-backdrop-filter: blur(22px) saturate(180%); backdrop-filter: blur(22px) saturate(180%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 1px 0 rgba(0, 0, 0, 0.04), 0 18px 48px -18px rgba(0, 0, 0, 0.22); transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.35s ease, color 0.35s ease, box-shadow 0.35s ease; }
.nav.is-floating::after { content: ""; position: absolute; left: 24px; right: 24px; bottom: 0; height: 1px; background: var(--brand-gradient); opacity: 0.55; pointer-events: none; }
.nav.is-floating.is-hidden { transform: translate(-50%, calc(-100% - 24px)); }
.nav.is-floating.is-dark { color: #fff; background: rgba(14, 14, 14, 0.55); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 18px 48px -18px rgba(0, 0, 0, 0.6); }
.nav.nav--snap { transition: none; }
.nav__brand { display: inline-flex; align-items: baseline; gap: 3px; font-weight: 800; font-size: 18px; letter-spacing: -0.03em; }
.brand-dot { display: inline-block; flex: none; width: 7px; height: 7px; border-radius: 9999px; background: var(--brand-gradient); }
.footer__brand .brand-dot { width: 5px; height: 5px; margin-left: 2px; }
.nav__brand .brand-dot { width: 5px; height: 5px; }
.nav__links { display: flex; align-items: center; gap: clamp(20px, 2.4vw, 36px); }
.nav__links a { font-weight: 700; font-size: 14px; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 6px; text-decoration-thickness: 2px; transition: text-decoration-color 0.2s ease; }
@media (hover: hover) { .nav__links a:hover { text-decoration-color: var(--accent); } } /* hover only for real pointers: on touch it sticks after a tap */
.nav__cta { display: inline-flex; align-items: center; gap: 6px; }
.nav__cta .ic { width: 16px; height: 16px; }
.nav__menu { display: none; align-items: center; gap: 12px; font-weight: 700; font-size: 14px; padding: 8px 0; }
/* Label rolls between "Menu" and "Close" */
.nav__menu-label { display: block; height: 20px; overflow: hidden; }
.nav__menu-label span { display: block; line-height: 20px; transition: transform 0.5s cubic-bezier(0.77, 0, 0.18, 1); }
.nav.open .nav__menu-label span { transform: translateY(-20px); }
/* Two bars morph into an X */
.nav__menu-icon { position: relative; display: block; width: 22px; height: 20px; flex: none; }
.nav__menu-icon i { position: absolute; right: 0; top: 6px; width: 100%; height: 2px; background: currentColor; transform-origin: 50% 50%; transition: transform 0.5s cubic-bezier(0.77, 0, 0.18, 1), top 0.5s cubic-bezier(0.77, 0, 0.18, 1), width 0.5s cubic-bezier(0.77, 0, 0.18, 1); }
.nav__menu-icon i + i { top: 12px; width: 68%; }
@media (hover: hover) { .nav__menu:hover .nav__menu-icon i + i { width: 100%; } }
.nav.open .nav__menu-icon i { top: 9px; width: 100%; transform: rotate(45deg); }
.nav.open .nav__menu-icon i + i { transform: rotate(-45deg); }

.hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: center; gap: 48px; padding-block: clamp(48px, 7vw, 112px) clamp(32px, 5vw, 80px); }
.hero .line { white-space: nowrap; }
.hero__copy { display: flex; flex-direction: column; gap: 20px; }
.hero__lede { color: var(--ink-muted); max-width: 480px; }
.hero__actions { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; margin-top: 8px; }
.portrait { justify-self: end; width: min(100%, 540px); aspect-ratio: 1100 / 1185; background: transparent; overflow: hidden; position: relative; }
.portrait__in { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; display: block; }
.portrait__paint { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
/* Handwritten "hover to paint" hint (added by the paint module, desktop only) */
.paint-hint { position: absolute; z-index: 2; width: max-content; pointer-events: none; transform: rotate(5deg); transform-origin: 0 0; }
.paint-hint__txt { display: inline-block; font-family: "Caveat", "Segoe Print", cursive; font-weight: 600; font-size: clamp(18px, 1.7vw, 24px); line-height: 1.05; color: #111; }
.paint-hint__arrow { position: absolute; right: calc(100% - 6px); top: 52%; width: clamp(64px, 5.2vw, 88px); overflow: visible; }
.paint-hint__arrow path { stroke: url(#ph-g); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

.trusted { padding-block: clamp(56px, 7vw, 96px) 0; text-align: center; }
.hero .trusted { padding-bottom: clamp(56px, 7vw, 96px); }
.trusted__label { color: var(--ink-muted); margin-bottom: 24px; }
.marquee { display: flex; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; width: max-content; margin-inline: auto; will-change: transform; }
.marquee__track li { flex: none; display: flex; align-items: center; padding-right: clamp(48px, 6vw, 88px); color: var(--ink-muted); white-space: nowrap; }
.clogo { display: block; flex: none; max-width: none; height: clamp(20px, 2vw, 28px); width: auto; filter: brightness(0); opacity: .5; transition: opacity .3s ease; }
.marquee__track li:hover .clogo { opacity: .85; }
.clogo-lock { gap: 10px; }
/* optical size matching: some files carry padding or lighter glyphs */
.clogo[src*="compa"] { height: clamp(23px, 2.3vw, 32px); }
.clogo[src*="drivencreations"] { height: clamp(24px, 2.4vw, 33px); }
.clogo[src*="cincytech"] { height: clamp(18px, 1.8vw, 25px); }
.clogo[src*="tealhq"] { height: clamp(18px, 1.8vw, 25px); }
.clogo-name { color: #000; opacity: .5; font-size: clamp(16px, 1.5vw, 20px); font-weight: 700; letter-spacing: -.01em; line-height: 1; white-space: nowrap; }
.marquee__track li:hover .clogo-name { opacity: .85; }
.clogo-text { color: #000; opacity: .55; font-size: clamp(18px, 1.8vw, 24px); font-weight: 800; letter-spacing: .14em; }

/* ---------- Shared section pieces ---------- */
.services, .testimonials, .faq { padding-block: var(--pad); }
.about { padding-block: clamp(56px, 7vw, 100px) var(--pad); }
.services { padding-bottom: clamp(56px, 7vw, 100px); }
.head { margin-bottom: clamp(48px, 6vw, 80px); }
.head--center { text-align: center; }
.split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.split__l { display: flex; flex-direction: column; align-items: flex-start; gap: 0; }
.split__l .link { margin-top: 24px; }

/* ---------- Services ---------- */
.cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.glyph { fill: var(--ink); margin-bottom: 16px; }
.col .body { color: var(--ink-muted); }
.ticks { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.ticks li { position: relative; padding-left: 22px; font-weight: 500; font-size: 15px; line-height: 22px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 8px; width: 7px; height: 7px; border-radius: 9999px; background: var(--ink); }

/* ---------- Projects ---------- */
.projects { padding-top: var(--pad); padding-bottom: 0; }
.projects__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; margin-bottom: clamp(40px, 5vw, 64px); }
.projects__head .btn { margin: 0 8px 8px 0; }
.rail-wrap { position: relative; }
.rail-wrap::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; top: calc(var(--card) * 0.75); background: #000000; }
.rail { position: relative; overflow: hidden; padding-left: max(16px, env(safe-area-inset-left, 0px), calc((100% - var(--maxw)) / 2)); touch-action: pan-y; cursor: grab; }
.rail:active { cursor: grabbing; }
.track { display: flex; gap: var(--gap); width: max-content; padding-right: max(16px, calc((100vw - var(--maxw)) / 2)); will-change: transform; position: relative; }
.card { position: relative; width: var(--card); flex: none; user-select: none; -webkit-user-select: none; }
.card a { position: relative; z-index: 1; display: block; }
.card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #f1f1f3; }
.thumb { display: block; width: 100%; height: 100%; object-fit: cover; transform-origin: 50% 50%; transition: transform 0.9s cubic-bezier(0.16, 0.84, 0.26, 1), filter 0.6s ease; }
.card a:hover .thumb, .card a:focus-visible .thumb { transform: scale(1.07); }

/* Hover: just the thumbnail zoom above, a hairline sweep, and the arrow nudge below. No blur, no glow. */
.card__body::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--brand-gradient); transform: scaleX(0); transform-origin: 0 50%; transition: transform 0.55s cubic-bezier(0.16, 0.84, 0.26, 1); }
.card a:hover .card__body::before, .card a:focus-visible .card__body::before { transform: scaleX(1); }
.card .action { transition: transform 0.35s cubic-bezier(0.16, 0.84, 0.26, 1); }
.card a:hover .action { transform: translateX(4px); }
.card__body { background: #ffffff; color: #000000; padding: 24px 28px 28px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.card__body .action { margin-top: 12px; }

/* ---------- Slider nav (sits on the black strip under the cards) ---------- */
.slider-nav { position: relative; z-index: 1; display: flex; justify-content: flex-end; gap: 8px; padding-block: 24px 0; }

/* ---------- About ---------- */
.mosaic { display: grid; grid-template-columns: 3fr 4fr 3fr; grid-template-rows: repeat(2, clamp(170px, 18vw, 260px)); gap: 16px; margin-top: clamp(48px, 6vw, 80px); }
.tile { position: relative; overflow: hidden; }
.tile::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--brand-gradient); z-index: 2; }
.tile--tall { grid-row: span 2; }
.tile--black { background: var(--surface-inverse); color: var(--ink-inverse); }
.tile--raised { background: var(--surface-raised); color: var(--ink); }
.tile--line { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--border-strong); }
.tile__in { position: absolute; inset: -30px 0; padding: 62px clamp(20px, 2.4vw, 36px) 68px; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; will-change: transform; }
.tile--tall .tile__in { inset: -30px 0; }
.stat { font-size: clamp(64px, 9vw, 128px); line-height: 0.95; font-weight: 800; letter-spacing: -0.05em; }
.stat--sm { font-size: clamp(36px, 4.4vw, 64px); }
.stat__label { font-size: 14px; line-height: 22px; opacity: 0.72; max-width: 24ch; }

/* About bento */
.about .bento { margin-top: clamp(48px, 6vw, 80px); }

/* ---------- Toolkit ---------- */
.toolkit { padding-block: var(--pad); overflow: hidden; }
.tk-marq { margin-top: clamp(48px, 6vw, 88px); display: flex; flex-direction: column; gap: clamp(0px, 0.6vw, 10px); user-select: none; -webkit-user-select: none; pointer-events: none; }
.tk-row { display: flex; align-items: center; width: max-content; gap: clamp(24px, 3.4vw, 56px); will-change: transform; }
.tk-row--a { margin-left: -2vw; }
.tk-row span { font-size: clamp(60px, 10.5vw, 164px); line-height: 1.02; font-weight: 800; letter-spacing: -0.05em; white-space: nowrap; }
.tk-row span.o { color: #d4d4d8; }
.tk-row i { flex: none; width: clamp(14px, 1.7vw, 26px); height: clamp(14px, 1.7vw, 26px); background: var(--brand-gradient); transform: rotate(45deg); }
.stack { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: clamp(48px, 6vw, 88px); }
.sk { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; padding: 32px 28px 20px; background: var(--surface-raised); box-shadow: inset 0 0 0 1px var(--border); transition: color 0.45s ease; min-width: 0; --ink-muted: #5b5b5b; }
.sk::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--brand-gradient); z-index: 2; transform-origin: 0 50%; transform: scaleX(var(--bar, 1)); }
.sk::after { content: ""; position: absolute; inset: 0; background: #000; transform: translateY(101%); transition: transform 0.6s cubic-bezier(0.77, 0, 0.18, 1); z-index: -1; }
.sk:hover { color: #fff; --ink-muted: #a0a0a0; }
.sk:hover::after { transform: none; }
.sk__top { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-muted); transition: color 0.45s ease; }
.sk__t { margin-top: clamp(28px, 4vw, 56px); font-size: clamp(40px, 4.6vw, 68px); line-height: 1; font-weight: 800; letter-spacing: -0.05em; }
.sk__d { margin-top: 14px; font-size: 15px; line-height: 24px; color: var(--ink-muted); max-width: 32ch; transition: color 0.45s ease; }
.sk__list { margin-top: 32px; }
.sk__list li { position: relative; padding: 16px 0 16px 24px; border-top: 1px solid rgba(128, 128, 128, 0.28); transition: padding-left 0.35s cubic-bezier(0.16, 0.84, 0.26, 1); }
.sk__list li::before { content: ""; position: absolute; left: 0; top: 25px; width: 9px; height: 9px; background: var(--brand-gradient); transition: transform 0.35s cubic-bezier(0.16, 0.84, 0.26, 1); }
.sk__list li:hover { padding-left: 32px; }
.sk__list li:hover::before { transform: scale(1.35) rotate(45deg); }
.sk__list b { display: block; font-size: 18px; line-height: 26px; font-weight: 700; letter-spacing: -0.025em; }
.sk__list small { display: block; font-size: 13px; line-height: 19px; color: var(--ink-muted); transition: color 0.45s ease; }

/* ---------- Experience ---------- */
.xp { padding-block: var(--pad); }
.xp__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.xp__l { position: sticky; top: 112px; display: flex; flex-direction: column; align-items: flex-start; }
.xp__lede { margin-top: 20px; color: var(--ink-muted); max-width: 34ch; font-size: 17px; line-height: 28px; }
.xp__stat { margin-top: clamp(32px, 5vw, 64px); display: flex; flex-direction: column; gap: 8px; }
.xp__stat b { font-size: clamp(72px, 9vw, 136px); line-height: 0.9; font-weight: 800; letter-spacing: -0.06em; font-variant-numeric: tabular-nums; padding-right: 0.06em; }
.xp__stat > span { font-size: 14px; color: var(--ink-muted); }
.xt { --xtpad: clamp(28px, 3.6vw, 52px); position: relative; padding-left: var(--xtpad); }
.xt__rail, .xt__fill { position: absolute; left: 5px; top: 8px; bottom: 8px; width: 2px; }
.xt__rail { background: var(--border-strong); }
.xt__fill { background: linear-gradient(180deg, var(--grad-violet), var(--grad-coral) 60%, var(--grad-amber)); transform-origin: 50% 0; }
.xt__list { list-style: none; margin: 0; padding: 0; }
.xt__item { position: relative; border-bottom: 1px solid var(--border); }
.xt__item:first-child { border-top: 1px solid var(--border); }
.xt__item::before { content: ""; position: absolute; left: calc(-1 * var(--xtpad)); top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 9999px; background: var(--brand-gradient); box-shadow: 0 0 0 4px var(--surface); transition: transform 0.4s cubic-bezier(0.16, 0.84, 0.26, 1), background 0.3s ease; }
.xt--anim .xt__item::before { background: var(--border-strong); }
.xt--anim .xt__item.is-on::before { background: var(--brand-gradient); }
.xt__item:hover::before { transform: scale(1.5); }
.xt__a { position: relative; display: grid; grid-template-columns: 36px minmax(0, 1fr) auto auto; align-items: center; gap: 12px 20px; padding-block: clamp(26px, 3vw, 40px); }
.xt__no { align-self: start; padding-top: 0.7em; font-size: 13px; font-weight: 700; letter-spacing: 0.1em; color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.xt__main { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.xt__co { display: inline-block; align-self: flex-start; font-size: clamp(30px, 3.9vw, 56px); line-height: 1.08; font-weight: 800; letter-spacing: -0.045em; padding-bottom: 0.25em; margin-bottom: -0.19em; background: var(--brand-gradient) no-repeat 0 0 / 0% 100%, linear-gradient(var(--ink), var(--ink)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; transition: background-size 0.7s cubic-bezier(0.16, 0.84, 0.26, 1), transform 0.5s cubic-bezier(0.16, 0.84, 0.26, 1); }
.xt__a:hover .xt__co { background-size: 100% 100%, auto; transform: translateX(8px); }
.xt__role { font-size: 15px; line-height: 24px; color: var(--ink-muted); }
.xt__when { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; font-size: 13px; font-weight: 600; white-space: nowrap; color: var(--ink-muted); box-shadow: inset 0 0 0 1px var(--border-strong); }
.xt__when.is-now { color: var(--ink); }
.xt__pulse { position: relative; width: 8px; height: 8px; border-radius: 9999px; background: #14a800; }
.xt__pulse::after { content: ""; position: absolute; inset: 0; border-radius: 9999px; background: #14a800; animation: xt-pulse 2s ease-out infinite; }
@keyframes xt-pulse { from { transform: scale(1); opacity: 0.6; } to { transform: scale(3.2); opacity: 0; } }
.xt__go { display: grid; place-items: center; width: 44px; height: 44px; color: var(--ink); box-shadow: inset 0 0 0 1px var(--border-strong); transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease; }
.xt__go .ic { width: 18px; height: 18px; transition: transform 0.35s cubic-bezier(0.16, 0.84, 0.26, 1); }
.xt__a:hover .xt__go { background: var(--ink); color: var(--ink-inverse); box-shadow: none; }
.xt__a:hover .xt__go .ic { transform: translate(2px, -2px) rotate(0deg); }
@media (prefers-reduced-motion: reduce) { .xt__pulse::after { animation: none; } }

/* ---------- Testimonials ---------- */
.quote-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); margin-top: clamp(40px, 5vw, 64px); align-items: stretch; }
.quote-photo { aspect-ratio: 1 / 1.05; background: #000; color: #fff; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; padding: 28px; position: relative; overflow: hidden; }
.quote-photo::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--brand-gradient); z-index: 2; }
.quote-photo__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; opacity: 0; filter: grayscale(1) contrast(1.05); transition: opacity 0.35s ease; }
.quote-photo.has-photo .quote-photo__img { opacity: 1; }
.quote-photo.has-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.1) 55%, rgba(0, 0, 0, 0) 75%); z-index: 1; }
.quote-photo span, .quote-photo small { position: relative; z-index: 2; }
.quote-photo span { font-size: clamp(88px, 11vw, 168px); line-height: 0.9; font-weight: 800; letter-spacing: -0.05em; transition: opacity 0.2s ease; }
.quote-photo.has-photo span { opacity: 0; position: absolute; }
.quote-photo small { font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #a0a0a0; }
.quote-photo.has-photo small { color: #e6e6e6; }
.quote-body { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.slides { display: grid; }
.slide { grid-area: 1 / 1; display: flex; flex-direction: column; gap: 32px; visibility: hidden; opacity: 0; }
.slide.is-active { visibility: visible; opacity: 1; }
.slide figcaption { display: flex; flex-direction: column; font-size: 14px; line-height: 22px; }
.slide figcaption strong { font-size: 16px; }
.slide figcaption span { color: var(--ink-muted); }
.quote-nav { display: flex; justify-content: flex-end; gap: 8px; margin-top: auto; }

/* ---------- Video testimonials ---------- */
.videos { padding-block: var(--pad); }
.vrail { margin-top: clamp(40px, 5vw, 72px); }
.vtrack { --vcard: calc((min(1180px, 100vw - 32px) - var(--gap)) / 2); }
.vcard { position: relative; width: var(--vcard); flex: none; user-select: none; -webkit-user-select: none; }
.vcard img { -webkit-user-drag: none; }
.vcard__btn { position: relative; display: block; width: 100%; aspect-ratio: 16 / 10; overflow: hidden; background: #121212; }
.vcard__media, .vposter { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.vposter { object-fit: cover; object-position: top; transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.vcard__btn:hover .vposter, .vcard__btn:focus-visible .vposter { transform: scale(1.06); }
.vcard__play { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 9999px; display: grid; place-items: center; background: #fff; color: #000; transition: transform 0.3s ease; }
.play { fill: currentColor; margin-left: 3px; }
.vcard__btn:hover .vcard__play, .vcard__btn:focus-visible .vcard__play { transform: scale(1.12); }
.vcard__meta { display: flex; flex-direction: column; gap: 2px; padding-top: 20px; }
.vmodal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
.vmodal[hidden] { display: none; }
.vmodal__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.88); }
.vmodal__panel { position: relative; width: min(1080px, 100%); display: flex; flex-direction: column; gap: 12px; }
.vmodal__close { align-self: flex-end; }
.vmodal__stage { aspect-ratio: 16 / 9; background: #000; display: grid; place-items: center; }
.vmodal__stage video, .vmodal__stage iframe { width: 100%; height: 100%; border: 0; display: block; background: #000; }

.vmodal__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: #fff; }
.vmodal__cap { color: #a0a0a0; max-width: 70ch; }
.vmodal__fallback { color: #a0a0a0; padding: 24px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.vthumb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.vcard__btn:hover .vthumb, .vcard__btn:focus-visible .vthumb { transform: scale(1.06); }

/* ---------- FAQ ---------- */
.faq__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(32px, 6vw, 96px); }
.faq__col { display: flex; flex-direction: column; }
.qa { position: relative; }
.qa__q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; text-align: left; padding-block: 28px; font-weight: 700; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.3; letter-spacing: -0.025em; }
.qa__q .ic { color: var(--ink-muted); transition: transform 0.35s ease; }
.qa__q[aria-expanded="true"] .ic { transform: rotate(180deg); }
.qa__a { overflow: hidden; }
.qa__a p { padding: 0 48px 28px 0; color: var(--ink-muted); max-width: 52ch; }
.js .qa__a { height: 0; }
.qa:hover::after, .qa.is-open::after { background: var(--border-strong); }

/* ---------- CTA + footer ---------- */
.cta { padding-block: clamp(56px, 7vw, 96px) clamp(72px, 9vw, 120px); }
.cta__line { white-space: nowrap; margin-bottom: 8px; }
/* Same type scale as the heading above it. The underline is a gradient bar that draws in
   left-to-right on hover and retracts to the right on leave; no static underline. */
.cta__link { position: relative; font-size: clamp(32px, 3.34vw, 48px); line-height: 1.15; font-weight: 800; letter-spacing: -0.04em; text-decoration: none; }
.cta__link::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 3px; background: var(--brand-gradient); transform: scaleX(0); transform-origin: 100% 50%; transition: transform 0.5s cubic-bezier(0.65, 0, 0.35, 1); }
.cta__link:hover::after, .cta__link:focus-visible::after { transform: scaleX(1); transform-origin: 0 50%; }
@media (max-width: 560px) {
  .cta__line { white-space: normal; }
}
.footer { padding-block: 0 32px; }
.footer__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 48px; padding-top: 64px; border-top: 1px solid var(--border); }
.footer__brand { display: flex; flex-direction: column; gap: 4px; }
.footer__nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 24px; align-content: start; }
.footer__nav a { font-size: 14px; font-weight: 500; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px; transition: text-decoration-color 0.2s ease; }
.footer__nav a:hover { text-decoration-color: var(--accent); }
.footer__legal { padding-top: 64px; }

/* ---------- Responsive ---------- */
@media (max-width: 899px) {
  .hero .line { white-space: normal; }
  :root { --card: min(78vw, 360px); }
  .nav__menu { display: inline-flex; }
  /* Panel wipes down from the top; links stagger in. clip-path/visibility only, so the GSAP intro's inline styles don't interfere. */
  .nav__links { display: flex; position: absolute; top: 72px; right: 0; flex-direction: column; align-items: flex-start; gap: 20px; padding: 24px; background: #ffffff; border: 1px solid var(--border-strong); min-width: 220px; z-index: 10; visibility: hidden; clip-path: inset(0 0 100% 0); transition: clip-path 0.5s cubic-bezier(0.77, 0, 0.18, 1), visibility 0s linear 0.5s; }
  .nav.is-floating .nav__links { top: 72px; color: #000; }
  .nav.open .nav__links { visibility: visible; clip-path: inset(0 0 0 0); transition: clip-path 0.5s cubic-bezier(0.77, 0, 0.18, 1), visibility 0s; }
  /* Closed: items stay put while the panel wipes up (reset only once it has fully closed), so it never empties before it shrinks */
  .nav__links li { opacity: 0; transform: translateY(14px); transition: opacity 0s linear 0.5s, transform 0s linear 0.5s; }
  .nav.open .nav__links li { opacity: 1; transform: none; transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
  .nav.open .nav__links li:nth-child(1) { transition-delay: 0.15s; }
  .nav.open .nav__links li:nth-child(2) { transition-delay: 0.21s; }
  .nav.open .nav__links li:nth-child(3) { transition-delay: 0.27s; }
  .nav.open .nav__links li:nth-child(4) { transition-delay: 0.33s; }
  .hero__grid { grid-template-columns: 1fr; }
  .portrait { justify-self: start; width: min(100%, 360px); }
  .cols { grid-template-columns: 1fr; gap: 56px; }
  .split { grid-template-columns: 1fr; }
  .mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: auto; grid-auto-rows: 220px; }
  .tile--tall { grid-row: auto; }
  .stack { grid-template-columns: 1fr; }
  .xp__grid { grid-template-columns: 1fr; }
  .xp__l { position: static; }
  .xp__stat { flex-direction: row; align-items: baseline; gap: 16px; }
  .xp__stat b { font-size: clamp(64px, 18vw, 96px); }
  .quote-grid { grid-template-columns: 1fr; }
  .vtrack { --vcard: min(84vw, 520px); }
  .quote-photo { max-width: 360px; }
  .faq__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .btn__face { padding: 0 32px; }
  .mosaic { grid-template-columns: 1fr; grid-auto-rows: 200px; }
  .row__d { display: none; }
  .footer__nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .thumb, .vposter, .vcard__play, .btn__face, .link .ic, .action .ic, .qa__q .ic, .sq,
  .nav__menu-label span, .nav__menu-icon i, .nav__links, .nav__links li, .nav.is-floating { transition: none !important; }
}

/* ---------- Cursor follower (fine pointers only, added by JS) ---------- */
.cur { --cc: #000; position: fixed; left: 0; top: 0; z-index: 300; pointer-events: none; opacity: 0; }
.cur--dark { --cc: #fff; }
.cur__dot { position: absolute; left: 0; top: 0; width: 7px; height: 7px; border-radius: 9999px; background: var(--cc); transition: background-color 0.25s ease; }
.cur__ring { position: absolute; left: 0; top: 0; width: 38px; height: 38px; border-radius: 9999px; border: 1.25px solid var(--cc); opacity: 0.7; display: grid; place-items: center; transition: border-color 0.25s ease, opacity 0.25s ease; }
.cur__label { font-size: 11px; line-height: 1; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: #fff; opacity: 0; transition: opacity 0.2s ease; }
.cur--label .cur__ring { background: var(--brand-gradient); border-color: transparent; opacity: 1; }
.cur--label .cur__label { opacity: 1; }

@media (max-width: 560px) {
  .xt__a { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "main go" "when when"; }
  .xt__no { display: none; }
  .xt__main { grid-area: main; }
  .xt__go { grid-area: go; width: 40px; height: 40px; }
  .xt__when { grid-area: when; justify-self: start; }
}

/* ---------- Smooth scroll (Lenis) ---------- */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: clip; }

/* ---------- Page transition (transition.js) ---------- */
.pt { position: fixed; inset: 0; z-index: 250; visibility: hidden; pointer-events: none; overflow: hidden; }
.pt-in .pt, .pt-run .pt { visibility: visible; pointer-events: auto; }
.pt__layer { position: absolute; inset: -8vh 0; will-change: transform; }
.pt__layer--dark { background: #000; }
.pt__layer--grad { display: grid; place-items: center; background: var(--brand-gradient); }
.pt__mask { display: block; overflow: hidden; font-size: clamp(56px, 12vw, 190px); padding: 0.12em 0.08em 0.3em; margin-top: 0.18em; }
.pt__label { display: block; line-height: 1.02; font-weight: 800; letter-spacing: -0.055em; color: #fff; white-space: nowrap; }
.pt-in .ldr { display: none; }

/* ---------- Preloader ---------- */
html.is-loading { overflow: hidden; }
.ldr { position: fixed; inset: 0; z-index: 200; animation: ldr-kill 0.01s 9s forwards; }
.ldr__veil, .ldr__panel { position: absolute; inset: 0; }
.ldr__veil { background: var(--brand-gradient); }
.ldr__panel { display: grid; grid-template-rows: auto 1fr auto; padding: max(24px, env(safe-area-inset-top, 0px)) clamp(16px, 3vw, 40px) max(24px, env(safe-area-inset-bottom, 0px)); background: #000; color: #fff; overflow: hidden; }
.ldr__top, .ldr__bot { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.ldr__brand { display: inline-flex; align-items: baseline; gap: 3px; font-size: 16px; font-weight: 800; letter-spacing: -0.02em; }
.ldr__brand .brand-dot { width: 5px; height: 5px; }
.ldr__meta, .ldr__idx { font-size: 13px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: #8a8a8a; }
.ldr__idx b { color: #fff; font-weight: 700; }
.ldr__chap { display: inline-block; margin-left: 10px; padding-left: 10px; border-left: 1px solid #424242; color: #fff; }
.ldr__stage { align-self: center; display: grid; justify-items: center; gap: clamp(8px, 1.4vw, 18px); text-align: center; }
.ldr__slot { display: grid; overflow: hidden; }
.ldr__slot > span { grid-area: 1 / 1; justify-self: center; white-space: nowrap; will-change: transform; }
.ldr__line { display: flex; align-items: baseline; justify-content: center; font-size: clamp(56px, 13vw, 200px); line-height: 1.02; font-weight: 800; letter-spacing: -0.055em; perspective: 1400px; }
.ldr__i { display: inline-flex; flex: none; align-items: baseline; margin-right: 0.2em; backface-visibility: hidden; will-change: transform; }
.ldr__m { display: inline-block; width: 0; overflow: hidden; white-space: nowrap; padding-top: 0.1em; margin-top: -0.1em; }
.ldr__mi { display: inline-block; padding-right: 0.1em; } /* room for the glyph that negative letter-spacing pushes past its box */
.ldr__slot--w { flex: none; width: 0; overflow: visible; }
.ldr__slot--w > span { justify-self: start; backface-visibility: hidden; }
.ldr__ink { display: inline-block; padding: 0.04em 0.06em 0.2em; margin: -0.04em -0.06em -0.2em; background: linear-gradient(100deg, #fff 0 40%, var(--grad-violet) 45%, var(--grad-coral) 50%, var(--grad-amber) 55%, #fff 60% 100%); background-size: 300% 100%; background-position: 100% 0; -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.ldr__dot { display: inline-block; width: 0.17em; height: 0.17em; margin-left: 0.04em; border-radius: 9999px; background: var(--brand-gradient); will-change: transform; }
.ldr__cnt { display: inline-flex; align-items: flex-start; font-size: clamp(44px, 6vw, 88px); line-height: 0.85; font-weight: 800; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.ldr__cnt sup { margin-left: 4px; font-size: 0.32em; line-height: 1; letter-spacing: 0; color: #8a8a8a; }
.ldr__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--brand-gradient); transform: scaleX(0); transform-origin: 0 50%; }
@keyframes ldr-kill { to { visibility: hidden; opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .ldr { display: none; } }
@media (max-width: 560px) { .ldr__meta { display: none; } }

/* ==========================================================================
   Book a call page (also supplies the about bento, badge and timeline used on home)
   ========================================================================== */
/* Book a call. Layout concept: details on the left, a sticky black form card with a hard gradient block on the right,
   then a dark bento of proof points. Tokens come from styles.css; nothing new is introduced except the vertical gradient. */
:root { --brand-gradient-v: linear-gradient(180deg, var(--grad-violet) 0%, var(--grad-magenta) 33%, var(--grad-coral) 66%, var(--grad-amber) 100%); }

.nav__cta.is-current { text-decoration-color: var(--accent); }

/* ---------- Split ---------- */
.book { padding-bottom: clamp(56px, 7vw, 100px); }
.book__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 560px);
  grid-template-areas: "intro form" "details form";
  column-gap: clamp(40px, 6vw, 96px);
  row-gap: clamp(56px, 6vw, 88px);
  align-items: start;
  padding-top: clamp(16px, 3vw, 40px);
}
.intro { grid-area: intro; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; min-width: 0; }
.details { grid-area: details; display: flex; flex-direction: column; gap: clamp(48px, 5vw, 72px); min-width: 0; }
.intro .eyebrow { margin-bottom: 0; }
.book__title { font-size: clamp(40px, 4.5vw, 64px); }
.book__title .line { white-space: nowrap; }
.lede { color: var(--ink-muted); max-width: 470px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.facts li { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; font-size: 14px; font-weight: 700; letter-spacing: -0.01em; box-shadow: inset 0 0 0 1px var(--border-strong); }
.facts .ic { width: 16px; height: 16px; }

/* ---------- Timeline (the order is real, so it is numbered) ---------- */
.tl { position: relative; display: flex; flex-direction: column; gap: 36px; margin-top: 32px; }
.tl__line { position: absolute; left: 21px; top: 22px; bottom: 22px; width: 2px; background: var(--border-strong); }
.tl__line i { position: absolute; inset: 0; background: var(--brand-gradient-v); transform-origin: 50% 0; }
.tl__item { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 20px; align-items: start; }
.tl__dot { position: relative; z-index: 1; display: grid; place-items: center; width: 44px; height: 44px; background: var(--surface); box-shadow: inset 0 0 0 2px var(--border-strong); font-weight: 800; font-size: 16px; letter-spacing: -0.03em; transition: background-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease; }
.tl__item.is-on .tl__dot { background: var(--brand-gradient); color: #fff; box-shadow: none; }
.tl__item h3 { font-size: 20px; line-height: 1.3; font-weight: 700; letter-spacing: -0.03em; padding-top: 9px; }
.tl__item p { margin-top: 6px; color: var(--ink-muted); max-width: 46ch; }

/* ---------- Fit ---------- */
.fit { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.fit__col { position: relative; padding: 32px 24px 28px; background: var(--surface-raised); display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.fit__col::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--ink); }
.fit__col--yes::before { background: var(--brand-gradient); }
.fit__col ul { display: flex; flex-direction: column; gap: 12px; }
.fit__col li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; font-size: 15px; line-height: 22px; font-weight: 500; }
.fit__col li .ic { margin-top: 1px; }
.fit__col--no li { color: var(--ink-muted); }

/* ---------- Form card ---------- */
.formwrap { --off: 12px; grid-area: form; position: sticky; top: min(24px, calc(100vh - var(--formh, 900px) - 24px)); z-index: 2; margin-right: var(--off); }
.cardwrap { position: relative; }
.cardwrap::before { content: ""; position: absolute; inset: 0; transform: translate(var(--off), var(--off)); background: var(--brand-gradient); }
.form { position: relative; background: var(--surface); color: var(--ink); padding: clamp(24px, 3vw, 36px); }
.form__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.form__head .tag { margin-bottom: 6px; }
.form__count { font-size: 14px; font-weight: 800; color: var(--ink-muted); font-variant-numeric: tabular-nums; letter-spacing: 0.02em; padding-top: 2px; }
.meter { height: 3px; margin: 18px 0 22px; background: var(--border-strong); overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--brand-gradient); transform: scaleX(0); transform-origin: 0 50%; }
#brief-form { display: flex; flex-direction: column; gap: 18px; }
.row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; }
.row2 > div { min-width: 0; }

.field { position: relative; background: var(--surface-raised); box-shadow: inset 0 0 0 1px var(--border-strong); transition: box-shadow 0.2s ease; }
.field:hover { box-shadow: inset 0 0 0 1px #6b6b6b; }
.field input, .field textarea { display: block; width: 100%; background: transparent; border: 0; border-radius: 0; outline: 0; color: var(--ink); font: inherit; font-size: 16px; font-weight: 500; letter-spacing: -0.01em; padding: 26px 16px 9px; }
.field textarea { resize: none; line-height: 1.45; }
.field label { position: absolute; left: 16px; top: 17px; font-size: 15px; font-weight: 500; color: var(--ink-muted); pointer-events: none; transform-origin: 0 0; transition: transform 0.2s ease, color 0.2s ease; white-space: nowrap; }
.field label i { font-style: normal; opacity: 0.7; }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { transform: translateY(-11px) scale(0.78); }
.field input:focus + label, .field textarea:focus + label { color: var(--ink); }
.field::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--brand-gradient); transform: scaleX(0); transform-origin: 0 50%; transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1); }
.field:focus-within::after { transform: scaleX(1); }
.field.is-bad { box-shadow: inset 0 0 0 1px var(--grad-coral); }
.field input:-webkit-autofill { -webkit-box-shadow: 0 0 0 1000px #121212 inset; -webkit-text-fill-color: #ffffff; caret-color: #ffffff; }
.err { font-size: 13px; line-height: 18px; font-weight: 500; color: var(--grad-coral); margin-top: 6px; }
.err:empty { display: none; }
.err--form { margin-top: -4px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.group { border: 0; margin: 0; padding: 0; min-width: 0; }
.group legend { padding: 0; margin-bottom: 10px; font-size: 12px; line-height: 18px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-muted); }
.group legend i { font-style: normal; opacity: 0.7; text-transform: none; letter-spacing: 0; font-weight: 500; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.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; justify-content: center; gap: 8px; padding: 10px 14px; font-size: 14px; line-height: 20px; font-weight: 700; letter-spacing: -0.01em; color: var(--ink); box-shadow: inset 0 0 0 1px var(--border-strong); transition: box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease; }
.chip:hover span { box-shadow: inset 0 0 0 1px var(--ink); }
.chip input:checked + span { background: var(--brand-gradient); color: #fff; box-shadow: none; }
.chip input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.chip small { font-size: 12px; font-weight: 500; opacity: 0.7; }
#g-need.is-bad .chip span { box-shadow: inset 0 0 0 1px var(--grad-coral); }

.btn--block { display: flex; align-self: stretch; margin: 4px 8px 8px 0; }
.btn--block .btn__face { width: 100%; }
.btn--block[disabled] { pointer-events: none; }
.btn--block[disabled] .btn__face { opacity: 0.7; }
.form__fine { font-size: 13px; line-height: 20px; color: var(--ink-muted); margin-top: -4px; }
.form__fine .link { color: var(--ink); display: inline; }

/* ---------- Direct contact ---------- */
.direct { position: relative; margin-top: 28px; display: flex; flex-direction: column; gap: 12px; }
.direct__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-bottom: 4px; }
.direct__head .tag { color: var(--ink); }

.dbar { position: relative; display: grid; grid-template-columns: 22px minmax(0, 1fr) 20px; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 18px 20px; color: #fff; background: var(--brand-gradient); background-size: 160% 100%; background-position: 0% 50%; transition: background-position 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.dbar:hover, .dbar:focus-visible { background-position: 100% 50%; }
.dbar strong { display: block; font-size: 17px; line-height: 1.3; font-weight: 800; letter-spacing: -0.03em; }
.dbar small { display: block; font-size: 13px; line-height: 19px; font-weight: 500; opacity: 0.88; }
.dbar__go { transition: transform 0.25s ease; }
.dbar:hover .dbar__go { transform: translateX(4px); }

.dlist { display: flex; flex-direction: column; gap: 12px; }
.dcard { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 16px 20px; background: var(--surface-raised); box-shadow: inset 0 0 0 1px var(--border); transition: box-shadow 0.25s ease; }
.dcard:hover { box-shadow: inset 0 0 0 1px var(--border-strong); }
.dcard__ic { color: var(--ink-muted); }
.dcard__txt { min-width: 0; }
.dcard__val { display: block; font-size: 15px; line-height: 22px; font-weight: 700; letter-spacing: -0.02em; overflow-wrap: anywhere; user-select: all; }
.dcard__txt small { display: block; font-size: 13px; line-height: 19px; color: var(--ink-muted); }
.dcard__act { display: flex; gap: 8px; flex: none; }
.dbtn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; font-size: 13px; font-weight: 700; letter-spacing: -0.01em; color: var(--ink); box-shadow: inset 0 0 0 1px var(--border-strong); transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease; white-space: nowrap; }
.dbtn .ic { width: 15px; height: 15px; }
.dbtn:hover { background: var(--surface-inverse); color: var(--ink-inverse); box-shadow: none; }
.dbtn.is-done { background: var(--brand-gradient); color: #fff; box-shadow: none; }

.upw { position: relative; display: block; margin-top: 4px; color: var(--ink); }
.upw__bar { position: absolute; inset: 0; transform: translate(6px, 6px); background: var(--brand-gradient); transition: transform 0.25s ease; }
.upw:hover .upw__bar { transform: translate(3px, 3px); }
.upw__in { position: relative; display: grid; grid-template-columns: 24px minmax(0, 1fr) 20px; align-items: center; gap: 14px; padding: 20px; background: var(--surface-inverse); color: var(--ink-inverse); }
.upw__logo { width: 24px; height: 24px; }
.upw__txt { min-width: 0; }
.upw__txt strong { display: block; font-size: 17px; line-height: 1.3; font-weight: 800; letter-spacing: -0.03em; }
.upw__txt small { display: block; margin-top: 3px; font-size: 13px; line-height: 19px; color: #a0a0a0; }
.upw__go { transition: transform 0.25s ease; }
.upw:hover .upw__go { transform: translate(3px, -3px); }

/* ---------- Calendly modal ---------- */
.cmodal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
.cmodal[hidden] { display: none; }
.cmodal__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.88); }
.cmodal__panel { position: relative; width: min(960px, 100%); display: flex; flex-direction: column; gap: 10px; }
.cmodal__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; color: #fff; }
.cmodal__stage { height: min(74vh, 720px); background: #fff; display: grid; place-items: center; }
.cmodal__stage iframe { width: 100%; height: 100%; border: 0; display: block; }
.cfall { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 32px; text-align: center; color: #5b5b5b; }
.cfall .btn { align-self: center; }

/* ---------- Sent state ---------- */
.sent { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; outline: 0; padding-block: 8px; }
.sent__check { overflow: visible; }
.sent__ring, .sent__tick { fill: none; stroke: url(#sg); stroke-width: 4; stroke-linecap: square; }
.sent__tick { stroke-width: 5; }
.sent__email { color: var(--ink); overflow-wrap: anywhere; }
.recap { display: grid; width: 100%; border-top: 1px solid var(--border-strong); }
.recap > div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; padding-block: 14px; border-bottom: 1px solid var(--border-strong); }
.recap dt { font-size: 12px; line-height: 22px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-muted); }
.recap dd { margin: 0; font-size: 15px; line-height: 22px; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.demo { font-size: 13px; line-height: 20px; padding: 10px 14px; box-shadow: inset 0 0 0 1px var(--grad-coral); color: var(--ink); }
.sent__actions { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; }
.sent__actions .link { color: var(--ink); }

/* ---------- Glimpses ---------- */
.glimpse { padding-block: var(--pad) clamp(56px, 7vw, 96px); }
.glimpse .head { margin-bottom: clamp(40px, 5vw, 64px); }
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(200px, 19vw, 262px); gap: 16px; }
.bt { position: relative; overflow: hidden; padding: 32px 28px 28px; display: flex; flex-direction: column; justify-content: space-between; gap: 12px; min-width: 0; }
.bt::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--brand-gradient); z-index: 2; }
.bt--white { background: #ffffff; color: #000000; }
.bt--raised { background: var(--surface-raised); color: var(--ink); }
.bt--line { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--border-strong); }
.bt--grad { background: var(--brand-gradient); color: #ffffff; }
.bt--grad .stat__label { opacity: 1; }
.bt--grad::before { display: none; }
.bt__sub { color: var(--ink-muted); }
.bt--white .bt__sub { color: #5b5b5b; }
.bt--portrait { grid-column: span 2; grid-row: span 2; padding: 0; }
.bt__txt { position: relative; z-index: 1; padding: 32px 28px; max-width: 40%; display: flex; flex-direction: column; gap: 12px; }
.bt__img { position: absolute; right: -6%; bottom: 0; height: 100%; width: auto; max-width: none; object-fit: contain; object-position: 100% 100%; display: block; }
.bt--badge { align-items: flex-start; padding-bottom: 32px; }
.bt--badge .badge { width: 80px; height: 80px; }
.bt--badge .stat__label { margin-top: 4px; }
.bt__link { margin-top: 10px; font-size: 14px; line-height: 1.2; }
.bt__link::after { content: ""; position: absolute; inset: 0; z-index: 2; } /* whole card is clickable */
.bt--badge:hover .bt__link { text-decoration-color: currentColor; }
.badge { width: 112px; height: 112px; flex: none; color: #ffffff; overflow: visible; }
.badge__text { font-family: var(--font); font-size: 11.5px; font-weight: 800; fill: currentColor; }
.bt--clock { grid-column: span 2; }
.clock { font-size: clamp(56px, 7.4vw, 104px); line-height: 0.95; font-weight: 800; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bt--quote { grid-column: span 2; }
.bt--quote blockquote { max-width: 34ch; }
.bt__who { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.bt--quote .link { color: #000; }
.glimpse .trusted { padding-block: clamp(48px, 6vw, 80px) 0; }

.bt .stat { font-size: clamp(44px, 5.6vw, 80px); }
.bt .stat--sm { font-size: clamp(30px, 3.1vw, 44px); line-height: 1.02; }

/* ---------- Responsive ---------- */
@media (max-width: 1099px) {
  .book__title .line { white-space: normal; }
  .bt__txt { max-width: 44%; }
}
@media (max-width: 899px) {
  .book__grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "intro" "form" "details"; row-gap: clamp(48px, 9vw, 72px); }
  .formwrap { --off: 8px; position: relative; top: auto; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: auto; }
  .bt { min-height: 210px; }
  .bt--portrait { grid-column: 1 / -1; grid-row: auto; min-height: 600px; }
  .bt--portrait .bt__img { height: 66%; left: 0; right: 0; margin-inline: auto; }
  .bt--clock, .bt--quote { grid-column: 1 / -1; }
  .bt__txt { max-width: 100%; }
}
@media (max-width: 560px) {
  .fit { grid-template-columns: 1fr; }
  .row2 { grid-template-columns: 1fr; }
  .recap > div { grid-template-columns: 1fr; gap: 2px; }
  .dcard { grid-template-columns: 22px minmax(0, 1fr); row-gap: 12px; }
  .dcard__act { grid-column: 2; }
  .bt { padding: 28px 20px 22px; }
  .bt__txt { padding: 28px 20px; max-width: 100%; }
  .bt--portrait { min-height: 580px; }
  .bt--quote blockquote { font-size: 20px; }
  .win span { flex-direction: column; gap: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .field::after, .field label, .chip span, .tl__dot, .dbar, .upw__bar { transition: none; }
}

/* Client logos on the dark page: render as light marks */
.glimpse .clogo { filter: brightness(0) invert(1); opacity: .55; }
.glimpse .marquee__track li:hover .clogo { opacity: .9; }
.glimpse .clogo-name { color: #fff; opacity: .55; }
.glimpse .clogo-text { color: #fff; opacity: .55; }

/* Photo portrait: full-bleed, dark bottom gradient for text, copy anchored bottom-left */
.bt--photo { background: #000; justify-content: flex-end; }
.bt--photo .bt__img { inset: -5%; width: 110%; height: 110%; margin: 0; object-fit: cover; object-position: 50% 30%; filter: none; }
.bt--photo::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.9) 100%); }
.bt--photo .bt__txt { max-width: 72%; color: #fff; }
.bt--photo .bt__txt .tag, .bt--photo .bt__sub { color: rgba(255,255,255,.78); }
@media (max-width: 899px) {
  .bt--photo .bt__img { left: -5%; right: auto; top: -5%; height: 110%; margin-inline: 0; object-position: 50% 30%; }
  .bt--photo .bt__txt { max-width: 92%; }
}

/* ==========================================================================
   Projects page
   ========================================================================== */
/* Projects page — extends styles.css */

/* Hero */
.projects-hero { padding-top: 0; padding-bottom: var(--pad); }
.projects-hero__content { padding-top: clamp(48px, 6vw, 80px); }
.projects-hero__sub { max-width: 600px; margin-top: 16px; }

/* Grid */
.projects-grid-section { padding-bottom: var(--pad); }
.pgrid { display: flex; flex-direction: column; gap: 1px; }

/* Card row */
.pcard {
  display: grid;
  grid-template-columns: 48px 1fr auto 44px;
  align-items: center;
  gap: 24px;
  padding: 28px 0;
  border-top: 1px solid var(--border);
  text-decoration: none;
  color: var(--ink);
}
.pcard:last-child { border-bottom: 1px solid var(--border); }

/* Hover: only the title changes (brand gradient, nudged right); the row itself keeps its colour */
.pcard:hover .pcard__name { background: var(--brand-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; transform: translateX(12px); }

.pcard__num {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
}

.pcard__body { min-width: 0; }
.pcard__name { width: fit-content; padding-bottom: 0.25em; margin-bottom: calc(4px - 0.25em); transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1); } /* fit-content so the gradient spans the title itself */
.pcard__body .body-sm { max-width: 520px; }

.pcard__tags { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.ptag {
  display: inline-block;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--border-strong);
  color: var(--ink-muted);
  white-space: nowrap;
}

.pcard__arrow {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--ink-muted);
  transition: transform 0.25s ease, color 0.25s ease;
}

/* CTA */
/* Filters */
.pfilter { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding-bottom: 28px; }
.pf { position: relative; display: inline-flex; align-items: baseline; gap: 8px; padding: 11px 20px; font: inherit; font-size: 14px; font-weight: 700; line-height: 1; letter-spacing: -0.01em; color: var(--ink); background: transparent; border: 1px solid var(--border-strong); cursor: pointer; overflow: hidden; transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease; }
.pf::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--brand-gradient); transform: scaleX(0); transform-origin: 0 50%; transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1); }
.pf__n { font-size: 12px; font-weight: 600; color: var(--ink-muted); font-variant-numeric: tabular-nums; transition: color 0.3s ease; }
.pf.is-on { background: var(--ink); color: var(--ink-inverse); border-color: var(--ink); }
.pf.is-on .pf__n { color: var(--ink-inverse); opacity: 0.6; }
.pf.is-on::after { transform: scaleX(1); }
.pf:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
@media (hover: hover) { .pf:not(.is-on):hover { border-color: var(--ink); } .pf:not(.is-on):hover::after { transform: scaleX(1); } }
.pfilter__count { margin-left: auto; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.pempty { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 56px 0 24px; border-top: 1px solid var(--border); }
.pempty[hidden] { display: none; }
.pempty .body-lg { max-width: 560px; }
.pempty__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; margin-top: 16px; }
.pempty__reset { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; color: var(--ink); cursor: pointer; }
.pcard[hidden] { display: none; }


/* Mobile */
@media (max-width: 768px) {
  .pcard {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 24px 0;
  }
  .pcard__num { font-size: 12px; }
  .pcard__tags { justify-content: flex-start; }
  .pcard__arrow { display: none; }
}
