/* Pavaki Infrasolutions — design system
   Layout concept: "blueprint to landmark" — a dark engineering canvas where drawings become structures,
   punctuated by warm paper sections that carry real project photography and survey-style annotations. */
:root {
  /* Colour */
  --ink: #0b0b0c;          /* night site, base canvas */
  --ink-2: #131315;        /* raised dark surface */
  --ink-3: #1d1d20;        /* dark hairline fill */
  --steel: #9aa0a7;        /* steel grey text on dark */
  --steel-2: #62676e;      /* muted annotations */
  --rule-dark: rgba(242, 238, 232, 0.12);
  --paper: #f1eee8;        /* drawing paper */
  --paper-2: #e5e1d9;
  --text: #f2eee8;         /* text on dark */
  --text-ink: #151517;     /* text on paper */
  --muted-ink: #5b5852;
  --rule-paper: rgba(21, 21, 23, 0.14);
  --orange: #ff6e00;       /* Pavaki brand orange, sampled from the logo */
  --orange-hot: #ff8a2e;
  --orange-deep: #c45200;  /* orange for text on paper (contrast) */
  --amber: #ffb46b;
  --ok: #3fbf7f;

  /* Type */
  --f-display: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Hanken Grotesk", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --f-deva: "Mukta", "Nirmala UI", "Kohinoor Devanagari", sans-serif;

  --t-hero: clamp(2.9rem, 8.4vw, 8.6rem);
  --t-h2: clamp(2.2rem, 5.4vw, 5.2rem);
  --t-h3: clamp(1.4rem, 2.4vw, 2.1rem);
  --t-lead: clamp(1.08rem, 1.5vw, 1.32rem);
  --t-body: 1rem;
  --t-small: 0.875rem;
  --t-label: 0.72rem;

  /* Space & motion */
  --gutter: max(clamp(16px, 4vw, 56px), env(safe-area-inset-left, 0px));
  --gutter-r: max(clamp(16px, 4vw, 56px), env(safe-area-inset-right, 0px));
  --maxw: 1440px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --header-h: 72px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
html.intro-on { overflow: hidden; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--f-body);
  font-size: var(--t-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--ink); }
img, video, canvas, svg { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--orange); color: #000; }

.skip-link { position: fixed; left: 12px; top: -60px; z-index: 300; background: var(--orange); color: #000; padding: 10px 14px; font-weight: 600; text-decoration: none; transition: top .2s; }
.skip-link:focus { top: calc(12px + env(safe-area-inset-top, 0px)); }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-left: var(--gutter); padding-right: var(--gutter-r); }

/* ---------- Type primitives ---------- */
.label {
  font-family: var(--f-mono); font-size: var(--t-label); letter-spacing: .14em; text-transform: uppercase;
  color: var(--steel); display: inline-flex; align-items: center; gap: .6em;
}
.label::before { content: ""; width: 18px; height: 1px; background: currentColor; opacity: .7; }
.label--orange { color: var(--orange); }
.paper .label { color: var(--muted-ink); }
.paper .label--orange { color: var(--orange-deep); }
.display {
  font-family: var(--f-display); font-stretch: 112%; font-weight: 800; text-transform: uppercase;
  letter-spacing: -0.015em; line-height: .9; margin: 0; text-wrap: balance;
}
.h2 { font-size: var(--t-h2); }
.lead { font-size: var(--t-lead); line-height: 1.55; max-width: 60ch; color: var(--steel); }
.paper .lead { color: var(--muted-ink); }
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.accent { color: var(--orange); }
.paper .accent { color: var(--orange-deep); }

/* ---------- Buttons ---------- */
.btn {
  --b: var(--orange);
  display: inline-flex; align-items: center; gap: .7em; min-height: 48px; padding: 0 22px;
  border: 1px solid var(--b); background: var(--b); color: #120800; border-radius: 999px;
  font-weight: 600; font-size: .95rem; text-decoration: none; cursor: pointer; position: relative; overflow: hidden;
  transition: transform .4s var(--ease-out), background .3s, color .3s;
}
.btn svg { width: 16px; height: 16px; transition: transform .4s var(--ease-out); }
.btn:hover svg { transform: translateX(4px); }
.btn:hover { background: var(--orange-hot); }
.btn--ghost { background: transparent; color: var(--text); --b: rgba(242,238,232,.35); }
.btn--ghost:hover { background: rgba(242,238,232,.08); }
.paper .btn--ghost { color: var(--text-ink); --b: rgba(21,21,23,.3); }
.paper .btn--ghost:hover { background: rgba(21,21,23,.06); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; padding-top: env(safe-area-inset-top, 0px);
  transition: background .4s, transform .5s var(--ease-out), border-color .4s;
  border-bottom: 1px solid transparent;
}
.site-header.is-solid { background: rgba(11,11,12,.82); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); border-bottom-color: var(--rule-dark); }
.site-header.is-hidden { transform: translateY(-110%); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }
.brand { display: block; width: 132px; flex-shrink: 0; }
.brand img { width: 100%; height: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a, .nav button.nav-sub-toggle {
  font-size: .9rem; text-decoration: none; padding: 10px 12px; border-radius: 6px; color: var(--text);
  background: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; position: relative;
}
.nav a::after, .nav .nav-sub-toggle::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 6px; height: 1px; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease-out); }
.nav a:hover::after, .nav .nav-sub-toggle:hover::after { transform: scaleX(1); }
.nav-item { position: relative; }
.nav-sub { position: absolute; top: 100%; left: 0; min-width: 210px; padding: 8px; background: var(--ink-2); border: 1px solid var(--rule-dark); border-radius: 10px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: .25s var(--ease-out); }
.nav-item:hover .nav-sub, .nav-item:focus-within .nav-sub, .nav-item.is-open .nav-sub { opacity: 1; visibility: visible; transform: none; }
.nav-sub a { display: flex; width: 100%; }
.nav-sub a::after { display: none; }
.nav-sub a:hover { background: var(--ink-3); }
.nav .chev { width: 10px; height: 10px; transition: transform .3s; }
.nav-item.is-open .chev { transform: rotate(180deg); }
.nav-login { margin-left: 10px; border: 1px solid rgba(242,238,232,.28) !important; border-radius: 999px !important; padding: 9px 16px !important; }
.nav-login::after { display: none; }
.nav-login:hover { border-color: var(--orange) !important; color: var(--orange) !important; }
.menu-btn { display: none; width: 48px; height: 48px; border: 1px solid rgba(242,238,232,.28); background: transparent; border-radius: 50%; cursor: pointer; align-items: center; justify-content: center; }
.menu-btn span { display: block; width: 18px; height: 1.5px; background: currentColor; position: relative; transition: .3s; }
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; width: 18px; height: 1.5px; background: currentColor; transition: .3s var(--ease-out); }
.menu-btn span::before { top: -6px; } .menu-btn span::after { top: 6px; }
.menu-open .menu-btn span { background: transparent; }
.menu-open .menu-btn span::before { top: 0; transform: rotate(45deg); }
.menu-open .menu-btn span::after { top: 0; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 45; background: var(--ink); padding: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 16px) var(--gutter-r) calc(28px + env(safe-area-inset-bottom, 0px)) var(--gutter);
  display: flex; flex-direction: column; justify-content: space-between; clip-path: inset(0 0 100% 0); transition: clip-path .6s var(--ease-in-out); visibility: hidden;
}
.menu-open .mobile-menu { clip-path: inset(0 0 0 0); visibility: visible; }
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu nav a { font-family: var(--f-display); font-stretch: 112%; font-weight: 800; text-transform: uppercase; font-size: clamp(1.9rem, 9vw, 3rem); line-height: 1.12; text-decoration: none; padding: 4px 0; border-bottom: 1px solid var(--rule-dark); display: flex; justify-content: space-between; align-items: baseline; }
.mobile-menu nav a small { font-family: var(--f-mono); font-size: .7rem; color: var(--steel); font-weight: 400; letter-spacing: .1em; }
.mobile-menu nav a.sub { font-size: clamp(1.1rem, 5vw, 1.5rem); padding-left: 1.2em; color: var(--steel); }
.mobile-menu .mm-foot { display: grid; gap: 6px; color: var(--steel); font-size: .9rem; }

/* ---------- Intro / preloader ---------- */
.intro { display: none; }
html.intro-on .intro {
  display: block; position: fixed; inset: 0; z-index: 200; background: #050505; color: var(--text);
  transition: opacity .7s ease;
}
.intro.is-done { opacity: 0; pointer-events: none; }
.intro-stage { position: absolute; inset: 0; width: 100%; height: 100%; }
.intro-fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.intro-flash { position: absolute; inset: 0; background: var(--orange); opacity: 0; pointer-events: none; }
.pre { position: absolute; inset: 0; display: grid; place-items: center; z-index: 3; transition: opacity .5s; }
.pre.is-gone { opacity: 0; pointer-events: none; }
.pre-box { width: min(560px, 86vw); display: grid; gap: 22px; justify-items: center; text-align: center; }
.pre-logo { width: min(260px, 60vw); opacity: .95; }
.pre-meter { width: 100%; }
.pre-row { display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .14em; color: var(--steel); text-transform: uppercase; }
.pre-tape { position: relative; height: 22px; margin-top: 10px; border-top: 1px solid rgba(242,238,232,.25); background-image: repeating-linear-gradient(90deg, rgba(242,238,232,.35) 0 1px, transparent 1px 10%), repeating-linear-gradient(90deg, rgba(242,238,232,.18) 0 1px, transparent 1px 2%); background-size: 100% 12px, 100% 6px; background-repeat: no-repeat; }
.pre-fill { position: absolute; left: 0; top: -1px; height: 3px; width: 0; background: var(--orange); box-shadow: 0 0 18px rgba(255,110,0,.7); }
.pre-count { font-family: var(--f-display); font-stretch: 112%; font-weight: 800; font-size: clamp(2.6rem, 8vw, 4.4rem); line-height: 1; font-variant-numeric: tabular-nums; }
.pre-enter { display: grid; gap: 12px; justify-items: center; opacity: 0; transform: translateY(8px); transition: .5s var(--ease-out); pointer-events: none; }
.pre-enter.is-ready { opacity: 1; transform: none; pointer-events: auto; }
.pre-enter .btn { min-height: 54px; padding: 0 28px; font-size: 1rem; }
.pre-silent { background: none; border: 0; color: var(--steel); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; padding: 10px; font-size: .9rem; }
.pre-silent:hover { color: var(--text); }
.pre-note { font-size: .78rem; color: var(--steel-2); font-family: var(--f-mono); letter-spacing: .06em; }
.intro-skip {
  position: absolute; z-index: 4; right: calc(16px + env(safe-area-inset-right, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  background: rgba(255,255,255,.06); border: 1px solid rgba(242,238,232,.25); color: var(--text); border-radius: 999px;
  padding: 10px 18px; font-size: .85rem; cursor: pointer; font-family: var(--f-mono); letter-spacing: .08em; text-transform: uppercase;
}
.intro-skip:hover { border-color: var(--orange); color: var(--orange); }

/* ---------- Hero: 3D bridge ---------- */
.hero { position: relative; height: 340vh; background: var(--ink); }
.hero-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-fallback { position: absolute; inset: 0; background: radial-gradient(120% 80% at 70% 80%, rgba(255,110,0,.22), transparent 60%), linear-gradient(180deg, #0b0b0c 0%, #17120d 100%); }
.hero-fallback::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(242,238,232,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(242,238,232,.05) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(180deg, transparent, #000 40%, transparent); }
.hero-vignette { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(11,11,12,.88) 0%, rgba(11,11,12,.45) 38%, transparent 62%), linear-gradient(0deg, rgba(11,11,12,.85) 0%, transparent 30%); }
.hero-copy { position: absolute; left: 0; right: 0; bottom: 0; top: 0; display: flex; align-items: flex-end; padding-bottom: clamp(88px, 13vh, 150px); pointer-events: none; }
.hero-copy .wrap { pointer-events: auto; }
.hero-eyebrow { display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; margin-bottom: 22px; }
.hero-eyebrow .deva { font-family: var(--f-deva); font-weight: 500; color: var(--amber); font-size: 1rem; letter-spacing: .02em; }
.hero h1 { font-size: var(--t-hero); max-width: 13ch; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .04em; }
.hero h1 .line > span { display: inline-block; }
.hero-sub { margin: 26px 0 30px; max-width: 54ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-hud { position: absolute; right: var(--gutter-r); bottom: clamp(20px, 4vh, 36px); left: var(--gutter); display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; pointer-events: none; font-family: var(--f-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--steel); }
.hud-scroll { display: flex; align-items: center; gap: 10px; }
.hud-scroll i { width: 1px; height: 34px; background: linear-gradient(var(--orange), transparent); animation: drip 1.8s var(--ease-in-out) infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
.hud-meter { display: grid; gap: 6px; justify-items: end; text-align: right; }
.hud-bar { width: 180px; height: 2px; background: rgba(242,238,232,.15); position: relative; }
.hud-bar b { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--orange); }
.hero-steps { position: absolute; right: var(--gutter-r); top: 50%; transform: translateY(-50%); display: grid; gap: 14px; list-style: none; margin: 0; padding: 0; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--steel-2); text-align: right; }
.hero-steps li { display: flex; gap: 12px; justify-content: flex-end; align-items: center; transition: color .4s; }
.hero-steps li::after { content: ""; width: 8px; height: 8px; border: 1px solid currentColor; border-radius: 50%; transition: .4s; }
.hero-steps li.is-active { color: var(--text); }
.hero-steps li.is-active::after { background: var(--orange); border-color: var(--orange); box-shadow: 0 0 12px var(--orange); }
.hero-steps li.is-done { color: var(--steel); }
.hero-steps li.is-done::after { background: var(--steel); border-color: var(--steel); }
.hero-caption { position: absolute; left: var(--gutter); top: 50%; transform: translateY(-50%); max-width: 420px; opacity: 0; transition: opacity .5s; pointer-events: none; }
.hero-caption.is-on { opacity: 1; }
.hero-caption .cap-num { font-family: var(--f-display); font-stretch: 112%; font-weight: 800; font-size: clamp(3rem, 7vw, 6rem); line-height: 1; color: var(--orange); }
.hero-caption h2 { font-size: clamp(1.6rem, 3vw, 2.6rem); margin: 8px 0 10px; }
.hero-caption p { color: var(--steel); margin: 0; }
.hero-tag { position: absolute; top: calc(var(--header-h) + 18px + env(safe-area-inset-top, 0px)); right: var(--gutter-r); font-family: var(--f-mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--steel-2); }

/* ---------- Sections ---------- */
section { position: relative; }
.paper { background: var(--paper); color: var(--text-ink); }
.sec { padding-block: clamp(88px, 13vw, 180px); }
.sec-head { display: grid; gap: 22px; margin-bottom: clamp(40px, 6vw, 80px); }
.sec-head--split { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: end; gap: 32px 64px; }

/* About / statement */
.statement { font-family: var(--f-display); font-stretch: 100%; font-weight: 600; font-size: clamp(1.7rem, 3.9vw, 3.6rem); line-height: 1.08; letter-spacing: -0.01em; margin: 0; max-width: 24ch; text-wrap: balance; }
.statement .w { transition: color .35s, opacity .35s; }
.js .statement .w { opacity: .18; }
.js .statement .w.on { opacity: 1; }
.statement em { font-style: normal; color: var(--orange-deep); }
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); margin-top: clamp(56px, 8vw, 110px); align-items: start; }
.mask-fig { margin: 0; position: relative; overflow: hidden; background: var(--paper-2); }
.mask-fig img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform 1.6s var(--ease-out); }
.mask-fig.in img { transform: scale(1); }
.js .mask-fig { clip-path: inset(0 0 0 0); }
.js .mask-fig.arm { clip-path: inset(100% 0 0 0); }
.js .mask-fig.arm.in { clip-path: inset(0 0 0 0); transition: clip-path 1.3s var(--ease-in-out); }
.mask-fig figcaption, .cap { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-ink); padding-top: 10px; background: var(--paper); }
.fig-tall { aspect-ratio: 4 / 5; }
.fig-wide { aspect-ratio: 16 / 10; }
.about-col { display: grid; gap: 28px; }
.about-col--offset { margin-top: clamp(0px, 12vw, 180px); }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--rule-paper); margin-top: clamp(56px, 8vw, 110px); }
.fact { padding: 26px 20px 8px 0; border-right: 1px solid var(--rule-paper); display: grid; gap: 8px; align-content: start; }
.fact + .fact { padding-left: 20px; }
.fact:last-child { border-right: 0; }
.fact b { font-family: var(--f-display); font-stretch: 112%; font-weight: 800; font-size: clamp(2.4rem, 5vw, 4.4rem); line-height: .95; color: var(--text-ink); font-variant-numeric: tabular-nums; }
.fact b sup { font-size: .45em; color: var(--orange-deep); vertical-align: top; }
.fact span { color: var(--muted-ink); font-size: .92rem; line-height: 1.4; }
.fact small { font-family: var(--f-mono); font-size: .64rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-ink); opacity: .8; }

/* Projects: horizontal pinned track */
.projects { background: var(--ink); }
.proj-pin { position: relative; }
.proj-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
.proj-top { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: clamp(20px, 3vh, 36px); }
.proj-top .display { font-size: clamp(2rem, 4.6vw, 4.4rem); }
.proj-count { font-family: var(--f-mono); color: var(--steel); font-size: .8rem; letter-spacing: .1em; white-space: nowrap; }
.proj-track { display: flex; gap: clamp(16px, 2vw, 28px); padding-left: var(--gutter); padding-right: var(--gutter-r); will-change: transform; }
.pcard { flex: 0 0 auto; width: min(72vw, 820px); position: relative; display: grid; grid-template-rows: auto auto; gap: 16px; color: var(--text); text-decoration: none; }
.pcard-media { position: relative; overflow: hidden; aspect-ratio: 16 / 10; height: min(54vh, 520px); width: 100%; background: var(--ink-3); border-radius: 4px; }
.pcard-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 1.2s var(--ease-out), filter .6s; filter: saturate(.92); }
.pcard:hover .pcard-media img { transform: scale(1.0); filter: saturate(1.05); }
.pcard-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.55), transparent 45%); }
.pcard-badges { position: absolute; left: 16px; top: 16px; z-index: 2; display: flex; gap: 8px; flex-wrap: wrap; }
.badge { font-family: var(--f-mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; background: rgba(11,11,12,.72); border: 1px solid rgba(242,238,232,.18); color: var(--text); backdrop-filter: blur(6px); }
.badge--orange { background: var(--orange); color: #120800; border-color: var(--orange); }
.badge--live::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); margin-right: 7px; box-shadow: 0 0 8px var(--ok); animation: pulse 1.6s infinite; vertical-align: 1px; }
@keyframes pulse { 50% { opacity: .35; } }
.pcard-num { position: absolute; right: 18px; bottom: 12px; z-index: 2; font-family: var(--f-display); font-stretch: 112%; font-weight: 800; font-size: clamp(2.4rem, 4vw, 3.6rem); color: rgba(242,238,232,.9); line-height: 1; }
.pcard-body { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 24px; align-items: start; }
.pcard h3 { font-family: var(--f-display); font-stretch: 105%; font-weight: 700; font-size: clamp(1.15rem, 1.9vw, 1.7rem); line-height: 1.12; margin: 0; text-wrap: balance; }
.pcard p { margin: 0; color: var(--steel); font-size: .93rem; grid-column: 1; }
.pcard-open { grid-column: 2; grid-row: 1 / span 2; align-self: center; width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(242,238,232,.3); background: transparent; color: var(--text); display: grid; place-items: center; cursor: pointer; transition: .3s; }
.pcard-open svg { width: 18px; height: 18px; }
.pcard:hover .pcard-open, .pcard-open:hover { background: var(--orange); border-color: var(--orange); color: #120800; }
.proj-progress { margin-top: clamp(20px, 3vh, 32px); height: 1px; background: var(--rule-dark); position: relative; }
.proj-progress b { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--orange); }

/* Capabilities */
.caps { background: var(--ink-2); }
.caps-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.cap-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule-dark); }
.cap-item button {
  width: 100%; background: none; border: 0; border-bottom: 1px solid var(--rule-dark); padding: 18px 4px; text-align: left; cursor: pointer;
  display: grid; grid-template-columns: 3.2em minmax(0, 1fr) auto; align-items: baseline; gap: 12px; color: var(--steel); transition: color .3s, padding .4s var(--ease-out);
}
.cap-item button .ci-code { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .08em; }
.cap-item button .ci-name { font-family: var(--f-display); font-stretch: 108%; font-weight: 700; font-size: clamp(1.15rem, 2.1vw, 1.8rem); line-height: 1.15; text-transform: uppercase; }
.cap-item button .ci-proof { font-family: var(--f-mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--steel-2); white-space: nowrap; }
.cap-item button:hover, .cap-item.is-active button { color: var(--text); }
.cap-item.is-active button { padding-left: 14px; }
.cap-item.is-active .ci-code { color: var(--orange); }
.cap-item.is-active .ci-proof { color: var(--orange); }
.cap-panel { position: sticky; top: calc(var(--header-h) + 24px); background: var(--ink); border: 1px solid var(--rule-dark); border-radius: 6px; overflow: hidden; }
.cap-draw { aspect-ratio: 16 / 10; position: relative; background-color: #0e0e10; background-image: linear-gradient(rgba(242,238,232,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(242,238,232,.04) 1px, transparent 1px); background-size: 24px 24px; }
.cap-draw svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.cap-draw .dr { fill: none; stroke: var(--text); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.cap-draw .dr-o { stroke: var(--orange); stroke-width: 2; }
.cap-draw .dr-f { fill: rgba(255,110,0,.12); stroke: var(--orange); }
.cap-draw .dr-dim { stroke: var(--steel-2); stroke-width: 1; stroke-dasharray: 4 4; }
.cap-draw .dr-t { fill: var(--steel); font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; stroke: none; }
.cap-draw [pathLength] { stroke-dasharray: 1; stroke-dashoffset: 0; }
.cap-draw.drawing [pathLength] { animation: draw 1.4s var(--ease-in-out) both; }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.cap-sheet { position: absolute; left: 14px; bottom: 12px; font-family: var(--f-mono); font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: var(--steel-2); }
.cap-info { padding: 24px clamp(18px, 3vw, 32px) 28px; display: grid; gap: 14px; }
.cap-info h3 { font-family: var(--f-display); font-stretch: 108%; font-weight: 800; text-transform: uppercase; font-size: clamp(1.4rem, 2.4vw, 2rem); margin: 0; line-height: 1.05; }
.cap-info p { margin: 0; color: var(--steel); }
.cap-proof { display: grid; gap: 8px; }
.cap-proof .lbl { font-family: var(--f-mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--steel-2); }
.cap-proof ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.cap-proof li button, .cap-proof li span { font-size: .85rem; padding: 7px 12px; border-radius: 999px; border: 1px solid rgba(255,110,0,.45); background: rgba(255,110,0,.08); color: var(--text); cursor: pointer; text-align: left; }
.cap-proof li button:hover { background: var(--orange); color: #120800; }
.cap-proof li span { border-color: var(--rule-dark); background: none; color: var(--steel); cursor: default; }

/* Ongoing */
.ongoing { background: var(--ink); overflow: hidden; }
.feature { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(24px, 4vw, 64px); align-items: center; margin-bottom: clamp(64px, 9vw, 120px); }
.feature-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 4px; }
.feature-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(var(--zoom, 1.25)); transform-origin: 50% 55%; will-change: transform; }
.feature-media .ring { position: absolute; left: 50%; top: 55%; width: 46%; aspect-ratio: 1; transform: translate(-50%, -50%); border: 1px dashed rgba(255,110,0,.7); border-radius: 50%; pointer-events: none; }
.feature-media .ring::after { content: "SHAFT"; position: absolute; right: -6px; top: 8%; transform: translateX(100%); font-family: var(--f-mono); font-size: .62rem; letter-spacing: .14em; color: var(--orange); background: rgba(11,11,12,.7); padding: 3px 6px; }
.feature-copy { display: grid; gap: 18px; }
.feature-copy h3 { font-family: var(--f-display); font-stretch: 108%; font-weight: 800; text-transform: uppercase; font-size: clamp(1.7rem, 3.4vw, 3rem); line-height: 1; margin: 0; }
.feature-copy p { margin: 0; color: var(--steel); }
.kv { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 18px; margin: 0; font-size: .92rem; }
.kv dt { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--steel-2); padding-top: 3px; }
.kv dd { margin: 0; color: var(--text); }
.paper .kv dd, .pd .kv dd { color: var(--text-ink); }
.paper .kv dt, .pd .kv dt { color: var(--muted-ink); }

.live-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 1px; background: var(--rule-dark); border: 1px solid var(--rule-dark); margin-bottom: clamp(64px, 9vw, 120px); }
.live { background: var(--ink); padding: 0 0 22px; display: grid; gap: 12px; align-content: start; text-align: left; border: 0; color: var(--text); cursor: pointer; transition: background .3s; }
.live:hover { background: var(--ink-2); }
.live-img { aspect-ratio: 16 / 9; overflow: hidden; }
.live-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.live:hover .live-img img { transform: scale(1.04); }
.live > div:not(.live-img) { padding: 0 20px; }
.live h3 { font-family: var(--f-display); font-stretch: 104%; font-weight: 700; font-size: 1.12rem; line-height: 1.2; margin: 0; }
.live p { margin: 0; font-size: .88rem; color: var(--steel); }
.live .row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.timeline { border-top: 1px solid var(--rule-dark); padding-top: 28px; margin-bottom: clamp(64px, 9vw, 120px); display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 4vw, 64px); }
.tl { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: relative; }
.tl::before { content: ""; position: absolute; left: 0; right: 0; top: 9px; height: 1px; background: var(--rule-dark); }
.tl li { position: relative; padding-top: 30px; padding-right: 14px; display: grid; gap: 4px; align-content: start; }
.tl li::before { content: ""; position: absolute; top: 3px; left: 0; width: 13px; height: 13px; border-radius: 50%; border: 1px solid var(--steel-2); background: var(--ink); }
.tl li.done::before { background: var(--orange); border-color: var(--orange); box-shadow: 0 0 14px rgba(255,110,0,.8); }
.tl b { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--steel-2); }
.tl li.done b { color: var(--orange); }
.tl span { font-size: .95rem; }
.tl li:not(.done) span { color: var(--steel-2); }
.tl small { color: var(--steel); font-size: .8rem; }

/* Reels */
.reels-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 24px; }
.reels-nav { display: flex; gap: 8px; }
.round-btn { width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(242,238,232,.3); background: transparent; color: var(--text); cursor: pointer; display: grid; place-items: center; }
.round-btn:hover { border-color: var(--orange); color: var(--orange); }
.round-btn svg { width: 18px; height: 18px; }
.reels { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; padding-left: var(--gutter); padding-right: var(--gutter-r); scrollbar-width: thin; scrollbar-color: var(--steel-2) transparent; }
.reel { flex: 0 0 auto; width: clamp(200px, 22vw, 290px); aspect-ratio: 9 / 16; position: relative; border-radius: 14px; overflow: hidden; scroll-snap-align: start; background: var(--ink-3); border: 1px solid var(--rule-dark); cursor: pointer; padding: 0; color: var(--text); text-align: left; }
.reel video, .reel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.78) 0%, transparent 45%), linear-gradient(180deg, rgba(0,0,0,.35), transparent 25%); }
.reel-meta { position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 2; display: grid; gap: 4px; }
.reel-meta b { font-size: .95rem; line-height: 1.25; font-weight: 600; }
.reel-meta span { font-family: var(--f-mono); font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; color: var(--amber); }
.reel-top { position: absolute; left: 12px; top: 12px; right: 12px; z-index: 2; display: flex; justify-content: space-between; align-items: center; }
.reel-play { width: 34px; height: 34px; border-radius: 50%; background: rgba(0,0,0,.45); display: grid; place-items: center; border: 1px solid rgba(255,255,255,.3); }
.reel-play svg { width: 12px; height: 12px; }
.reel-progress { position: absolute; left: 0; right: 0; top: 0; height: 3px; z-index: 3; background: rgba(255,255,255,.15); }
.reel-progress b { display: block; height: 100%; width: 0; background: var(--orange); }

/* Trust */
.trust { background: var(--paper); color: var(--text-ink); }
.leaders { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); margin-bottom: clamp(72px, 10vw, 140px); }
.leader { display: grid; gap: 14px; align-content: start; cursor: pointer; background: none; border: 0; padding: 0; text-align: left; color: inherit; }
.leader .mask-fig { aspect-ratio: 4 / 5; }
.leader-role { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--orange-deep); }
.leader h3 { font-family: var(--f-display); font-stretch: 106%; font-weight: 800; font-size: clamp(1.2rem, 2vw, 1.6rem); line-height: 1.1; margin: 0; text-transform: uppercase; }
.leader p { margin: 0; color: var(--muted-ink); font-size: .93rem; }
.clients { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--rule-paper); border-left: 1px solid var(--rule-paper); margin-bottom: clamp(72px, 10vw, 140px); }
.client { border-right: 1px solid var(--rule-paper); border-bottom: 1px solid var(--rule-paper); padding: 26px 22px; display: grid; gap: 16px; align-content: start; background: #fff; }
.client-logo { height: 96px; display: grid; place-items: center; }
.client-logo img { max-height: 96px; width: auto; max-width: 100%; object-fit: contain; }
.client h3 { font-size: .98rem; margin: 0; line-height: 1.3; font-weight: 600; }
.client p { margin: 0; font-size: .85rem; color: var(--muted-ink); }
.founders { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); }
.founder { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 22px; align-items: start; }
.founder .mask-fig { aspect-ratio: 554 / 472; }
.founder h3 { font-family: var(--f-display); font-stretch: 106%; font-weight: 800; text-transform: uppercase; font-size: clamp(1.2rem, 2vw, 1.55rem); margin: 6px 0 10px; line-height: 1.1; }
.founder p { margin: 0 0 10px; color: var(--muted-ink); font-size: .93rem; }

/* Contact */
.contact { background: var(--ink); }
.cta-big { font-size: clamp(2.6rem, 8vw, 8rem); margin-bottom: clamp(36px, 5vw, 64px); }
.cta-big .accent { display: inline-block; }
.contact-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.contact-lines { display: grid; gap: 26px; }
.cl { display: grid; gap: 6px; padding-bottom: 22px; border-bottom: 1px solid var(--rule-dark); }
.cl .label { margin-bottom: 2px; }
.cl a.big, .cl .big { font-family: var(--f-display); font-stretch: 106%; font-weight: 700; font-size: clamp(1.3rem, 2.6vw, 2.1rem); text-decoration: none; line-height: 1.15; overflow-wrap: anywhere; }
.cl a.big:hover { color: var(--orange); }
.cl .row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.copy-btn { font-family: var(--f-mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; background: none; border: 1px solid var(--rule-dark); color: var(--steel); border-radius: 999px; padding: 6px 10px; cursor: pointer; }
.copy-btn:hover { color: var(--text); border-color: var(--steel); }
.cl address { font-style: normal; color: var(--steel); max-width: 42ch; }
.form-card { background: var(--ink-2); border: 1px solid var(--rule-dark); border-radius: 8px; padding: clamp(20px, 3vw, 36px); display: grid; gap: 18px; }
.form-card h3 { font-family: var(--f-display); font-stretch: 108%; font-weight: 800; text-transform: uppercase; font-size: clamp(1.3rem, 2.2vw, 1.8rem); margin: 0; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.field { display: grid; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .8rem; color: var(--steel); font-family: var(--f-mono); letter-spacing: .06em; text-transform: uppercase; }
.field input, .field textarea, .field select {
  width: 100%; background: var(--ink); border: 1px solid rgba(242,238,232,.16); border-radius: 6px; color: var(--text); padding: 13px 14px; font: inherit; font-size: 1rem; transition: border-color .25s, box-shadow .25s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255,110,0,.18); }
.field input[type="file"] { padding: 10px; color: var(--steel); }
.field input[type="file"]::file-selector-button { background: var(--ink-3); color: var(--text); border: 1px solid rgba(242,238,232,.2); border-radius: 999px; padding: 8px 14px; margin-right: 12px; cursor: pointer; }
.field .hint { font-size: .78rem; color: var(--steel-2); }
.field.invalid input, .field.invalid textarea, .field.invalid select { border-color: #ff6b5b; }
.field .err { font-size: .78rem; color: #ff8b7d; display: none; }
.field.invalid .err { display: block; }
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 6px; background: rgba(255,180,107,.08); border: 1px solid rgba(255,180,107,.3); color: var(--amber); font-size: .85rem; line-height: 1.45; }
.notice svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }
.form-status { font-size: .9rem; min-height: 1.4em; }
.form-status.ok { color: var(--amber); }
.careers { margin-top: clamp(72px, 10vw, 140px); display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 80px); align-items: start; border-top: 1px solid var(--rule-dark); padding-top: clamp(40px, 6vw, 80px); }

/* Footer */
.site-footer { background: #070707; border-top: 1px solid var(--rule-dark); padding-top: clamp(56px, 8vw, 96px); padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px)); color: var(--steel); font-size: .92rem; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)); gap: 36px; }
.foot-grid h4 { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text); margin: 0 0 14px; font-weight: 500; }
.foot-grid p, .foot-grid address { margin: 0 0 10px; font-style: normal; line-height: 1.55; }
.foot-grid a { text-decoration: none; }
.foot-grid a:hover { color: var(--orange); }
.foot-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-logo { width: 150px; margin-bottom: 18px; }
.socials { display: flex; gap: 10px; margin-top: 16px; }
.socials a { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--rule-dark); display: grid; place-items: center; color: var(--text); transition: .3s; }
.socials a:hover { background: var(--orange); border-color: var(--orange); color: #120800; }
.socials svg { width: 17px; height: 17px; }
.foot-base { margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--rule-dark); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .8rem; }
.foot-base button { background: none; border: 0; color: var(--steel); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; padding: 0; font-size: .8rem; }
.foot-base button:hover { color: var(--orange); }
.foot-word { font-family: var(--f-display); font-stretch: 125%; font-weight: 900; text-transform: uppercase; font-size: clamp(4rem, 17vw, 17rem); line-height: .8; color: transparent; -webkit-text-stroke: 1px rgba(242,238,232,.12); margin-top: 40px; letter-spacing: -0.02em; user-select: none; white-space: nowrap; overflow: hidden; }

/* Drawer (project details) */
.drawer { position: fixed; inset: 0; z-index: 120; display: grid; grid-template-columns: 1fr minmax(0, min(920px, 100%)); visibility: hidden; }
.drawer.is-open { visibility: visible; }
.drawer-scrim { background: rgba(0,0,0,.6); opacity: 0; transition: opacity .5s; border: 0; cursor: pointer; }
.drawer.is-open .drawer-scrim { opacity: 1; }
.drawer-panel { background: var(--paper); color: var(--text-ink); overflow-y: auto; overscroll-behavior: contain; transform: translateX(100%); transition: transform .65s var(--ease-in-out); padding: calc(20px + env(safe-area-inset-top, 0px)) max(clamp(18px, 4vw, 48px), env(safe-area-inset-right, 0px)) calc(48px + env(safe-area-inset-bottom, 0px)) clamp(18px, 4vw, 48px); }
.drawer.is-open .drawer-panel { transform: none; }
.drawer-close { position: sticky; top: 0; margin-left: auto; display: flex; align-items: center; gap: 8px; background: var(--text-ink); color: var(--paper); border: 0; border-radius: 999px; padding: 10px 16px; cursor: pointer; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; z-index: 2; }
.drawer-close:hover { background: var(--orange); color: #120800; }
.pd { display: grid; gap: 22px; padding-top: 10px; }
.pd h2 { font-family: var(--f-display); font-stretch: 106%; font-weight: 800; text-transform: uppercase; font-size: clamp(1.8rem, 4vw, 3.2rem); line-height: 1; margin: 0; text-wrap: balance; }
.pd p { margin: 0; color: var(--muted-ink); max-width: 64ch; }
.pd .kv { border-top: 1px solid var(--rule-paper); padding-top: 16px; }
.pd-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pd-gallery figure { margin: 0; }
.pd-gallery figure:first-child { grid-column: 1 / -1; }
.pd-gallery img { width: 100%; height: auto; border-radius: 3px; background: var(--paper-2); }
.pd-gallery figcaption { font-size: .78rem; color: var(--muted-ink); padding-top: 6px; }
.pd ul.scope { margin: 0; padding-left: 1.1em; color: var(--muted-ink); display: grid; gap: 6px; }
.pd .note { font-size: .82rem; padding: 10px 12px; border-left: 3px solid var(--orange); background: rgba(255,110,0,.07); color: var(--text-ink); }
.ba { position: relative; aspect-ratio: 3 / 4; width: 100%; max-width: 560px; overflow: hidden; border-radius: 3px; user-select: none; touch-action: pan-y; background: var(--paper-2); }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba .ba-after { clip-path: inset(0 0 0 var(--pos, 50%)); }
.ba .ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 2px; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.2); transform: translateX(-1px); pointer-events: none; }
.ba .ba-handle::after { content: "⟷"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 44px; height: 44px; border-radius: 50%; background: var(--orange); color: #120800; display: grid; place-items: center; font-size: 18px; }
.ba input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.ba .ba-tag { position: absolute; top: 12px; z-index: 2; font-family: var(--f-mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; background: rgba(0,0,0,.6); color: #fff; padding: 5px 8px; border-radius: 3px; pointer-events: none; }
.ba .ba-tag.l { left: 12px; } .ba .ba-tag.r { right: 12px; }

/* Reel viewer */
.viewer { position: fixed; inset: 0; z-index: 130; background: rgba(5,5,5,.94); display: grid; place-items: center; padding: calc(16px + env(safe-area-inset-top, 0px)) 16px calc(16px + env(safe-area-inset-bottom, 0px)); }
.viewer-inner { position: relative; height: min(86vh, 860px); aspect-ratio: 9 / 16; max-width: 100%; border-radius: 14px; overflow: hidden; background: #000; }
.viewer-inner video, .viewer-inner img { width: 100%; height: 100%; object-fit: cover; }
.viewer-meta { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 18px; background: linear-gradient(0deg, rgba(0,0,0,.85), transparent); display: grid; gap: 4px; }
.viewer-meta b { font-size: 1rem; }
.viewer-meta span { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--amber); }
.viewer-close { position: absolute; top: calc(14px + env(safe-area-inset-top, 0px)); right: calc(14px + env(safe-area-inset-right, 0px)); }
.viewer-prev, .viewer-next { position: absolute; top: 50%; transform: translateY(-50%); }
.viewer-prev { left: calc(14px + env(safe-area-inset-left, 0px)); } .viewer-next { right: calc(14px + env(safe-area-inset-right, 0px)); }
.viewer .round-btn { background: rgba(0,0,0,.5); }

/* Reveal helpers (content visible without JS; JS arms only off-screen elements) */
.js .rv.arm { opacity: 0; transform: translateY(28px); }
.js .rv.arm.in { opacity: 1; transform: none; transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out); transition-delay: var(--d, 0s); }

/* Custom cursor (fine pointers only) */
.cursor { position: fixed; left: 0; top: 0; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--orange); pointer-events: none; z-index: 400; mix-blend-mode: difference; transition: width .3s var(--ease-out), height .3s var(--ease-out), margin .3s var(--ease-out), opacity .3s; opacity: 0; }
.cursor.on { opacity: 1; }
.cursor.big { width: 64px; height: 64px; margin: -32px 0 0 -32px; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
  .sec-head--split, .caps-grid, .feature, .timeline, .contact-grid, .careers { grid-template-columns: minmax(0, 1fr); }
  .cap-panel { position: relative; top: 0; }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .clients { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .founders { grid-template-columns: minmax(0, 1fr); }
  .hero-steps { display: none; }
}
@media (max-width: 720px) {
  :root { --header-h: 64px; }
  .brand { width: 112px; }
  .hero { height: 300vh; }
  .hero-copy { padding-bottom: 92px; }
  .hero-vignette { background: linear-gradient(0deg, rgba(11,11,12,.95) 0%, rgba(11,11,12,.55) 55%, rgba(11,11,12,.15) 100%); }
  .hero-caption { left: var(--gutter); right: var(--gutter-r); top: auto; bottom: 120px; transform: none; max-width: none; }
  .hero-hud .hud-meter { display: none; }
  .about-grid { grid-template-columns: minmax(0, 1fr); }
  .about-col--offset { margin-top: 0; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact { padding: 22px 12px 18px 0; }
  .fact:nth-child(2n) { border-right: 0; padding-left: 14px; }
  .fact:nth-child(3) { padding-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--rule-paper); }
  .pcard { width: 84vw; }
  .pcard-media { height: auto; }
  .proj-top { flex-direction: column; align-items: flex-start; }
  .leaders { grid-template-columns: minmax(0, 1fr); }
  .leader .mask-fig { aspect-ratio: 16 / 11; }
  .clients { grid-template-columns: minmax(0, 1fr); }
  .founder { grid-template-columns: minmax(0, 1fr); }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .tl { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 22px; }
  .tl::before { display: none; }
  .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .drawer { grid-template-columns: 0 minmax(0, 1fr); }
  .pd-gallery { grid-template-columns: minmax(0, 1fr); }
  .reel { width: 62vw; }
  .viewer-prev, .viewer-next { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js .statement .w { opacity: 1; }
  .js .rv.arm, .js .mask-fig.arm { opacity: 1; transform: none; clip-path: none; }
}

/* ---------- Leadership: 3D founder's journey ---------- */
.lship { background: radial-gradient(90% 60% at 30% 40%, #1a120b 0%, var(--ink) 60%); overflow: clip; }
.lead-pin { position: relative; height: 380vh; }
.lead-stage { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; overflow: hidden; perspective: 1400px; }
.lead-floor { position: absolute; left: -50%; right: -50%; bottom: -30%; height: 75%; background-image: linear-gradient(rgba(255,110,0,.22) 1px, transparent 1px), linear-gradient(90deg, rgba(255,110,0,.22) 1px, transparent 1px); background-size: 64px 64px; transform: rotateX(72deg); transform-origin: 50% 0; mask-image: linear-gradient(180deg, transparent 0%, #000 30%, transparent 95%); -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 30%, transparent 95%); pointer-events: none; animation: floor 6s linear infinite; }
@keyframes floor { to { background-position: 0 64px, 0 0; } }
.lead-year { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.lead-year span { font-family: var(--f-display); font-stretch: 125%; font-weight: 900; font-size: clamp(8rem, 26vw, 26rem); line-height: .8; color: transparent; -webkit-text-stroke: 1.5px rgba(255,110,0,.16); letter-spacing: -0.03em; transition: opacity .4s; white-space: nowrap; }
.lead-grid { position: relative; display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(24px, 5vw, 80px); align-items: center; }
.lead-left { display: grid; gap: 18px; }
.lead-bio { color: var(--steel); max-width: 46ch; margin: 0; }

.tilt { perspective: 1000px; width: min(100%, 460px); margin-bottom: 58px; }
.tilt-inner { position: relative; aspect-ratio: 554 / 520; transform-style: preserve-3d; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .25s var(--ease-out); border-radius: 18px; background: linear-gradient(160deg, #1f1a16, #0e0d0d 60%); border: 1px solid rgba(255,110,0,.28); box-shadow: 0 40px 80px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.03) inset, 0 0 90px -30px rgba(255,110,0,.55); }
.tilt-grid { position: absolute; inset: 0; border-radius: 18px; background-image: linear-gradient(rgba(242,238,232,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(242,238,232,.05) 1px, transparent 1px); background-size: 28px 28px; transform: translateZ(1px); }
.tilt-plate { position: absolute; left: 6%; right: 6%; top: 4%; transform: translateZ(20px); filter: drop-shadow(0 0 24px rgba(255,110,0,.55)); opacity: .9; }
.tilt-plate svg { width: 100%; height: auto; }
.tilt-photo { position: absolute; left: 50%; bottom: 0; width: 92%; height: auto; transform: translateX(-50%) translateZ(60px); filter: drop-shadow(0 20px 30px rgba(0,0,0,.6)) drop-shadow(-6px 0 18px rgba(255,110,0,.35)); border-radius: 0 0 18px 18px; }
.tilt-name { position: absolute; left: 4%; bottom: 6%; transform: translateZ(110px); background: rgba(11,11,12,.86); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid rgba(242,238,232,.16); border-left: 3px solid var(--orange); padding: 12px 16px; border-radius: 6px; display: grid; gap: 2px; }
.tilt-name h2 { font-size: clamp(1.3rem, 2.4vw, 2rem); }
.tilt-name span { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--amber); }
.tilt-chip { position: absolute; transform: translateZ(40px); font-size: .78rem; color: var(--text); background: var(--orange); color: #140800; padding: 8px 12px; border-radius: 999px; font-weight: 600; white-space: nowrap; box-shadow: 0 12px 30px -10px rgba(255,110,0,.8); }
.tilt-chip b { font-family: var(--f-display); font-stretch: 112%; font-size: 1rem; margin-right: 2px; }
.tilt-chip.c1 { left: 0; top: calc(100% + 14px); }
.tilt-chip.c2 { right: 0; top: calc(100% + 14px); background: #f2eee8; box-shadow: 0 12px 30px -12px rgba(0,0,0,.8); }

.ring-wrap { position: relative; height: min(56vh, 460px); perspective: 1200px; perspective-origin: 50% 40%; }
.ring { position: absolute; inset: 0; transform-style: preserve-3d; transform: translateZ(calc(var(--r) * -1)) rotateY(var(--rot, 0deg)); --r: 300px; }
.venture { position: absolute; left: 50%; top: 50%; width: min(330px, 80%); margin-left: calc(min(330px, 80%) / -2); transform: translateY(-50%) rotateY(calc(var(--i) * 90deg)) translateZ(var(--r)); backface-visibility: hidden; -webkit-backface-visibility: hidden; background: linear-gradient(170deg, #1b1916, #101011); border: 1px solid rgba(242,238,232,.14); border-radius: 16px; padding: 22px; display: grid; gap: 10px; transition: border-color .4s, box-shadow .4s, opacity .4s; opacity: .55; }
.venture.is-front { opacity: 1; border-color: rgba(255,110,0,.7); box-shadow: 0 30px 70px -30px rgba(255,110,0,.6); }
.v-logo { height: 92px; border-radius: 10px; background: #fff; display: grid; place-items: center; padding: 10px; }
.v-logo img { max-height: 72px; width: auto; }
.v-logo--dark { background: #0b0b0c; border: 1px solid rgba(242,238,232,.1); }
.v-logo--dark img { max-height: 60px; }
.v-seva { font-family: var(--f-deva); font-weight: 600; font-size: 2.6rem; line-height: 1; color: var(--orange); text-shadow: 0 0 24px rgba(255,110,0,.45); }
.v-year { font-family: var(--f-display); font-stretch: 112%; font-weight: 800; font-size: 1.8rem; color: var(--orange); line-height: 1; }
.venture h3 { margin: 0; font-family: var(--f-display); font-stretch: 105%; font-weight: 700; font-size: 1.2rem; line-height: 1.15; }
.venture p { margin: 0; color: var(--steel); font-size: .9rem; }
.v-tag { font-family: var(--f-mono); font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: var(--steel-2); }
.lead-line { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); position: relative; }
.lead-line::before { content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 1px; background: var(--rule-dark); }
.lead-line::after { content: ""; position: absolute; left: 0; top: 6px; height: 1px; width: var(--lp, 0%); background: var(--orange); box-shadow: 0 0 10px var(--orange); }
.lead-line li { position: relative; padding-top: 22px; display: grid; gap: 2px; font-size: .8rem; color: var(--steel-2); }
.lead-line li::before { content: ""; position: absolute; top: 0; left: 0; width: 13px; height: 13px; border-radius: 50%; background: var(--ink); border: 1px solid var(--steel-2); z-index: 1; transition: .3s; }
.lead-line li b { font-family: var(--f-mono); font-size: .74rem; letter-spacing: .08em; color: var(--steel); }
.lead-line li.on::before { background: var(--orange); border-color: var(--orange); box-shadow: 0 0 12px var(--orange); }
.lead-line li.on b { color: var(--orange); }
.lead-line li.on span { color: var(--text); }

.partner { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 80px); align-items: center; padding-block: clamp(40px, 8vw, 120px) clamp(88px, 12vw, 160px); }
.tilt--small { width: min(100%, 380px); justify-self: center; }
.partner-copy { display: grid; gap: 16px; }
.partner-copy h3 { font-size: clamp(2rem, 4.6vw, 4rem); margin: 0; }
.partner-copy p { margin: 0; color: var(--steel); max-width: 60ch; }

/* Without JS / reduced motion / phones: no pin, cards as a readable list */
.lship:not(.is-3d) .lead-pin { height: auto; }
.lship:not(.is-3d) .lead-stage { position: relative; height: auto; padding-block: clamp(88px, 12vw, 160px) 24px; perspective: none; }
.lship:not(.is-3d) .lead-floor, .lship:not(.is-3d) .lead-year, .lship:not(.is-3d) .lead-line { display: none; }
.lship:not(.is-3d) .ring-wrap { height: auto; perspective: none; }
.lship:not(.is-3d) .ring { position: static; transform: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.lship:not(.is-3d) .venture { position: static; width: auto; margin: 0; transform: none; opacity: 1; }
@media (max-width: 1080px) {
  .lead-grid { grid-template-columns: minmax(0, 1fr); }
  .partner { grid-template-columns: minmax(0, 1fr); }
  .tilt { justify-self: center; }
}
@media (max-width: 720px) {
  .lship:not(.is-3d) .ring { grid-template-columns: minmax(0, 1fr); }
  .tilt-chip { font-size: .72rem; padding: 7px 10px; }
  .tilt-chip.c2 { right: auto; left: 0; top: calc(100% + 54px); }
  .tilt { margin-bottom: 100px; }
}
