/* ==========================================================================
   AYUS Capital — design system v2
   "Precision, quietly lit"

   Contents
   1. Tokens          5. Hero            9.  Porcelain (industries + why)
   2. Base            6. Statement       10. Approach
   3. Brand + nav     7. Section heads   11. Contact
   4. Buttons         8. Capabilities    12. Footer · pages · responsive · motion
   ========================================================================== */

/* 0. FONTS — Inter 4.0 (SIL Open Font License 1.1, see assets/fonts/LICENSE-Inter.txt),
   self-hosted and subset to Latin + Latin Extended-A (covers Lithuanian). */
@font-face { font-family: "Inter"; src: url("../fonts/Inter-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/Inter-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter Display"; src: url("../fonts/InterDisplay-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter Display"; src: url("../fonts/InterDisplay-SemiBold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

/* 1. TOKENS ---------------------------------------------------------------- */
:root {
  /* Dark surfaces */
  --ink-0: #080a0c;          /* obsidian — page */
  --ink-1: #0d1013;          /* carbon — quiet surfaces */
  --ink-2: #15191d;          /* graphite — raised surfaces */
  /* Text on dark */
  --fg: #f5f6f7;             /* off-white */
  --fg-2: #b8bec5;           /* platinum */
  --fg-3: #8a939b;           /* pewter — 6.3:1 on obsidian */
  --fg-4: #737c85;           /* faint — numbers and placeholders, 4.6:1 */
  --line: rgba(245, 246, 247, 0.08);
  --line-2: rgba(245, 246, 247, 0.14);
  /* Light surface */
  --paper: #eef0f2;          /* porcelain */
  --paper-ink: #0b0d10;
  --paper-2: #3f474f;        /* 8.6:1 on porcelain */
  --paper-3: #5c6670;        /* 5.1:1 on porcelain */
  --paper-line: rgba(11, 13, 16, 0.1);
  /* Accent: steel light (never text below 18px) */
  --steel: #526b7a;
  --steel-hi: #8fa6b4;
  --steel-rgb: 82, 107, 122;
  --steel-hi-rgb: 143, 166, 180;

  --sans: "Inter", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display: "Inter Display", "Inter", ui-sans-serif, -apple-system, BlinkMacSystemFont, sans-serif;

  --max: 1360px;
  --gutter: clamp(20px, 4.4vw, 64px);
  --nav-h: 72px;
  --space: clamp(112px, 13vw, 200px);   /* vertical rhythm between sections */

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
}

/* 2. BASE ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 88px; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--ink-0); color: var(--fg);
  font-family: var(--sans); font-size: 16px; line-height: 1.6; letter-spacing: -0.006em;
  font-feature-settings: "cv11" 1;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
::selection { background: rgba(var(--steel-hi-rgb), 0.35); color: #fff; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
svg { display: block; }
h1, h2, h3, h4, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
:focus-visible { outline: 1.5px solid var(--steel-hi); outline-offset: 3px; border-radius: 4px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -64px; z-index: 100; background: var(--fg); color: var(--ink-0); padding: 10px 16px; border-radius: 999px; font-size: 14px; }
.skip:focus { top: 14px; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.label { font-size: 13px; font-weight: 500; letter-spacing: 0.01em; color: var(--fg-3); display: flex; align-items: center; gap: 12px; }
.label::before { content: ""; width: 18px; height: 1px; background: currentColor; opacity: .6; }

.h2 {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(36px, 4.7vw, 72px); line-height: 1.02; letter-spacing: -0.038em;
  text-wrap: balance;
}
.h2 span { color: var(--fg-3); }

/* 3. BRAND + NAV ----------------------------------------------------------- */
.wm { height: 14px; width: auto; }
.wm-solo { height: 17px; }
.wm-a { fill: var(--fg); }
.wm-b { fill: var(--fg-2); transition: fill .5s var(--ease-out); }
.brand { display: inline-flex; align-items: center; min-height: 44px; padding: 0; }
.brand:hover .wm-b { fill: var(--fg); }

.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h);
  border-bottom: 1px solid transparent;
  transition: transform .7s var(--ease-out), background-color .5s, border-color .5s;
}
.nav.is-solid {
  background: rgba(8, 10, 12, 0.72);
  -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav.is-hidden { transform: translateY(-100%); }
.nav-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links > a:not(.btn) {
  font-size: 14px; font-weight: 400; letter-spacing: -0.01em; color: var(--fg-2);
  padding: 8px 14px; border-radius: 999px;
  transition: color .4s var(--ease-out), background-color .4s var(--ease-out);
}
.nav-links > a:not(.btn):hover, .nav-links > a.is-current { color: var(--fg); background: rgba(245, 246, 247, 0.05); }
.nav-links .btn { margin-left: 14px; }

.menu-btn { display: none; width: 44px; height: 44px; margin-right: -10px; position: relative; }
.menu-btn i { position: absolute; left: 13px; right: 13px; height: 1.5px; border-radius: 2px; background: var(--fg); transition: transform .6s var(--ease-out); }
.menu-btn i:nth-child(1) { top: 18px; }
.menu-btn i:nth-child(2) { top: 25px; }
.menu-open .menu-btn i:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.menu-open .menu-btn i:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

.sheet {
  position: fixed; inset: 0; z-index: 45; background: var(--ink-0);
  padding: calc(var(--nav-h) + 24px) var(--gutter) max(32px, env(safe-area-inset-bottom));
  display: flex; flex-direction: column;
  opacity: 0; visibility: hidden; transition: opacity .5s var(--ease-out), visibility .5s;
}
.menu-open .sheet { opacity: 1; visibility: visible; }
.sheet a.big {
  font-family: var(--display); font-weight: 600; font-size: 34px; letter-spacing: -0.035em; line-height: 1.15;
  padding: 16px 0; border-bottom: 1px solid var(--line);
  opacity: 0; transform: translateY(12px); transition: opacity .6s var(--ease-out), transform .8s var(--ease-out);
}
.menu-open .sheet a.big { opacity: 1; transform: none; }
.menu-open .sheet a.big:nth-child(2) { transition-delay: .05s; }
.menu-open .sheet a.big:nth-child(3) { transition-delay: .1s; }
.menu-open .sheet a.big:nth-child(4) { transition-delay: .15s; }
.sheet-foot { margin-top: auto; display: grid; gap: 18px; }
.sheet-foot .btn { justify-content: space-between; }
.sheet-mail { font-size: 14px; color: var(--fg-3); text-align: center; }

/* 4. BUTTONS --------------------------------------------------------------- */
.btn {
  --h: 44px;
  position: relative; display: inline-flex; align-items: center; gap: 12px;
  height: var(--h); padding: 0 5px 0 20px; border-radius: 999px;
  font-size: 14.5px; font-weight: 500; letter-spacing: -0.012em; white-space: nowrap;
  transition: background-color .5s var(--ease-out), box-shadow .6s var(--ease-out), transform .5s var(--ease-out);
}
.btn .ico { width: calc(var(--h) - 10px); height: calc(var(--h) - 10px); border-radius: 50%; display: grid; place-items: center; overflow: hidden; position: relative; }
.btn .ico svg { transition: transform .6s var(--ease-out); }
.btn .ico svg + svg { position: absolute; transform: translateX(-40px); }
.btn:hover .ico svg:first-child { transform: translateX(40px); }
.btn:hover .ico svg + svg { transform: none; }
.btn:active { transform: scale(0.98); }
.btn-light { background: var(--fg); color: var(--ink-0); }
.btn-light .ico { background: var(--ink-0); color: var(--fg); }
.btn-light:hover { background: #fff; box-shadow: 0 0 0 5px rgba(245, 246, 247, 0.06), 0 16px 36px -18px rgba(var(--steel-hi-rgb), .55); }
.btn-sm { --h: 36px; font-size: 13.5px; padding: 0 4px 0 15px; gap: 10px; }
.btn-text { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 4px; font-size: 14.5px; font-weight: 500; letter-spacing: -0.012em; color: var(--fg-2); transition: color .4s var(--ease-out); }
.btn-text .chev { transition: transform .6s var(--ease-out); }
.btn-text:hover { color: var(--fg); }
.btn-text:hover .chev { transform: translateY(2px); }

/* 5. HERO ------------------------------------------------------------------ */
.hero { position: relative; isolation: isolate; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; padding-top: var(--nav-h); overflow: hidden; overflow: clip; }

.apex {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  /* the lines recede where they pass behind the headline */
  -webkit-mask-image: linear-gradient(100deg, rgba(0,0,0,.18) 0%, rgba(0,0,0,.28) 52%, #000 78%);
  mask-image: linear-gradient(100deg, rgba(0,0,0,.18) 0%, rgba(0,0,0,.28) 52%, #000 78%);
}
.apex svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.apex .leg { fill: none; vector-effect: non-scaling-stroke; }
.apex .pulse { fill: none; }
.apex-wide .leg { stroke: url(#g-leg); }
.apex-wide .pulse { stroke: url(#g-pulse); }
.apex .leg-l { stroke-width: 1; }
.apex .leg-r { stroke-width: 2.25; }
.apex-tall { display: none; }
@media (max-aspect-ratio: 1/1) { .apex-wide { display: none; } .apex-tall { display: block; } }
/* the lines rise into place: revealed bottom-up with a clip, which stays exact at any screen size */
.apex svg { clip-path: inset(100% 0 0 0); }
.is-ready .apex svg { animation: rise-in 2.6s var(--ease-io) .25s forwards; }
@keyframes rise-in { to { clip-path: inset(0 0 0 0); } }
.apex .pulse { stroke-linecap: round; stroke-dasharray: 0.07 1; stroke-dashoffset: 0.07; opacity: 0; }
.apex .pulse-l { stroke-width: 1.5; }
.apex .pulse-r { stroke-width: 2.5; }
.is-ready .apex .pulse { animation: travel 9s var(--ease-io) 3s infinite; }
@keyframes travel {
  0% { stroke-dashoffset: 0.07; opacity: 0; } 6% { opacity: 1; }
  38% { stroke-dashoffset: -0.93; opacity: 1; } 44%, 100% { stroke-dashoffset: -0.93; opacity: 0; }
}
.apex .flare { opacity: 0; transform-box: fill-box; transform-origin: center; }
.is-ready .apex .flare { animation: flare 9s var(--ease-out) 3s infinite; }
@keyframes flare { 0%, 34% { opacity: 0; transform: scale(.6); } 40% { opacity: 1; transform: scale(1); } 70%, 100% { opacity: 0; transform: scale(1.25); } }

.atmos { position: absolute; inset: 0; z-index: -2; pointer-events: none; }
.atmos i { position: absolute; border-radius: 50%; will-change: transform; }
.atmos i:nth-child(1) { width: 62vmax; height: 62vmax; right: -16vmax; top: -30vmax; background: radial-gradient(closest-side, rgba(var(--steel-rgb), .36), rgba(var(--steel-rgb), .12) 45%, rgba(var(--steel-rgb), 0)); animation: breathe 18s var(--ease-io) infinite alternate; }
.atmos i:nth-child(2) { width: 46vmax; height: 46vmax; left: 30%; bottom: -34vmax; background: radial-gradient(closest-side, rgba(184, 190, 197, .07), rgba(184, 190, 197, 0)); animation: breathe 24s var(--ease-io) infinite alternate-reverse; }
@keyframes breathe { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(-5vw, 4vh, 0) scale(1.1); } }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 30%; z-index: -1; background: linear-gradient(to bottom, rgba(8,10,12,0), var(--ink-0)); }

/* Without the eyebrow the headline sits on the golden line of the viewport */
.hero-body { flex: 1; display: flex; flex-direction: column; justify-content: center; padding-top: clamp(40px, 6vh, 96px); padding-bottom: clamp(56px, 9vh, 120px); }

.h-display {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(44px, 6.9vw, 116px); line-height: 0.98; letter-spacing: -0.045em;
  text-wrap: balance;
}
.h-display .row { display: block; }
.h-display .row-2 { color: var(--fg-3); }
.h-display .w {
  display: inline-block; opacity: 0; filter: blur(12px); transform: translateY(0.28em);
  transition: opacity 1.1s var(--ease-out), filter 1.2s var(--ease-out), transform 1.4s var(--ease-out);
  transition-delay: calc(var(--i) * 55ms + 200ms);
}
.is-ready .h-display .w { opacity: 1; filter: blur(0); transform: none; }

.hero-grid { margin-top: clamp(40px, 5.5vw, 72px); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 32px; align-items: end; }
.hero-sub { grid-column: 1 / span 5; font-size: clamp(17px, 1.38vw, 20px); line-height: 1.5; letter-spacing: -0.016em; color: var(--fg-2); max-width: 30em; }
.hero-sub span { display: block; color: var(--fg); margin-top: 2px; }
.hero-cta { grid-column: 7 / span 6; justify-self: end; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

.fade-up { opacity: 0; transform: translateY(16px); transition: opacity 1.2s var(--ease-out), transform 1.4s var(--ease-out); }
.is-ready .fade-up { opacity: 1; transform: none; }
.is-ready .fade-up.d1 { transition-delay: .7s; }
.is-ready .fade-up.d2 { transition-delay: .85s; }
.is-ready .fade-up.d3 { transition-delay: 1.1s; }


/* Scroll reveal (shared) */
.rv { opacity: 0; transform: translateY(18px); transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out); }
.rv.is-in { opacity: 1; transform: none; }
.rv.d1 { transition-delay: .08s; } .rv.d2 { transition-delay: .16s; } .rv.d3 { transition-delay: .24s; }

/* Scroll-lit statements: each word brightens as you read down the page */
.lit { font-family: var(--display); font-weight: 500; letter-spacing: -0.032em; line-height: 1.1; text-wrap: balance; }
.lit .lw { color: var(--fg); opacity: .16; transition: opacity .5s linear; }
.lit .lw.on { opacity: 1; }
.lit-dark .lw { color: var(--paper-ink); opacity: .14; }
.lit-dark .lw.on { opacity: 1; }

/* 6. STATEMENT ------------------------------------------------------------- */
.statement { padding: var(--space) 0 0; }
.statement .lit { margin-top: 32px; font-size: clamp(30px, 3.9vw, 60px); max-width: 24ch; }
.statement-foot { margin-top: clamp(56px, 7vw, 96px); padding-top: 28px; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 40px; }
.statement-foot > p { grid-column: 1 / span 7; color: var(--fg-2); font-size: clamp(16px, 1.3vw, 19px); line-height: 1.55; letter-spacing: -0.012em; max-width: 52ch; }
.statement-foot > p b { color: var(--fg); font-weight: 500; }

/* 8. CAPABILITIES ----------------------------------------------------------
   A sticky index on the left; each area unfolds on the right as a
   structured spec — groups, hairlines and tokens rather than cards. */
.caps { padding: var(--space) 0 0; }
.caps-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
.caps-aside { grid-column: 1 / span 4; }
.caps-sticky { position: sticky; top: calc(var(--nav-h) + 40px); padding-bottom: 56px; }
.caps-aside .h2 { margin-top: 24px; font-size: clamp(36px, 3.9vw, 60px); }
.caps-index { margin-top: 56px; border-top: 1px solid var(--line); }
.caps-index a {
  position: relative; display: flex; gap: 14px; align-items: baseline;
  padding: 13px 0; border-bottom: 1px solid var(--line);
  font-size: 15px; font-weight: 400; letter-spacing: -0.012em; color: var(--fg-3);
  transition: color .5s var(--ease-out), padding-left .6s var(--ease-out);
}
.caps-index a span { font-size: 12px; color: var(--fg-4); font-variant-numeric: tabular-nums; transition: color .5s; }
.caps-index a::before { content: ""; position: absolute; left: 0; top: 50%; width: 0; height: 1px; background: var(--steel-hi); transition: width .6s var(--ease-out); }
.caps-index a:hover { color: var(--fg-2); }
.caps-index a.is-active { color: var(--fg); padding-left: 22px; }
.caps-index a.is-active::before { width: 12px; }
.caps-index a.is-active span { color: var(--steel-hi); }
.caps-note { margin-top: 28px; font-size: 13px; line-height: 1.55; color: var(--fg-3); max-width: 34ch; }

.caps-list { grid-column: 6 / span 7; }
.cap { padding: 0 0 clamp(72px, 8vw, 112px); }
.cap + .cap { padding-top: clamp(40px, 4vw, 56px); border-top: 1px solid var(--line); }
.cap-head { display: grid; grid-template-columns: 56px 1fr; column-gap: 8px; }
.cap-n { font-size: 13px; color: var(--steel-hi); font-variant-numeric: tabular-nums; padding-top: .9em; }
.cap-head h3 { font-family: var(--display); font-weight: 600; font-size: clamp(30px, 3vw, 46px); line-height: 1.06; letter-spacing: -0.035em; }
.cap-head p { grid-column: 2; margin-top: 14px; color: var(--fg-2); font-size: clamp(16px, 1.25vw, 18px); line-height: 1.5; letter-spacing: -0.014em; max-width: 40ch; }
.cap-body { margin: 36px 0 0 64px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 28px; row-gap: 32px; }
.grp h4 { font-size: 12.5px; font-weight: 500; letter-spacing: 0.01em; color: var(--fg-3); padding-bottom: 12px; border-bottom: 1px solid var(--line-2); }
.grp-wide { grid-column: 1 / -1; }
.grp ul:not(.tokens) li { padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.4; letter-spacing: -0.01em; color: var(--fg); }
.tokens { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 16px; }
.tokens li {
  height: 34px; padding: 0 14px; display: inline-flex; align-items: center;
  border: 1px solid var(--line-2); border-radius: 999px;
  font-size: 14px; font-weight: 500; letter-spacing: -0.005em; color: var(--fg);
  font-variant-numeric: tabular-nums;
  transition: border-color .5s var(--ease-out), background-color .5s var(--ease-out);
}
.tokens li:hover { border-color: rgba(var(--steel-hi-rgb), .6); background: rgba(var(--steel-rgb), .12); }
.tokens li.more { border-style: dashed; color: var(--fg-3); font-weight: 400; }


/* Optional-field hint */
.opt { font-weight: 400; color: var(--fg-3); margin-left: 6px; font-size: 12px; }

/* Capability folds: always open on larger screens; collapsible on phones */
.cap-toggle { display: none; }
.cap-fold { display: grid; grid-template-rows: 1fr; }
.cap-fold-in { min-height: 0; }
.caps-pills { display: none; }

/* 9. PORCELAIN (industries + why) ---------------------------------------------
   A light slab set into the dark page — inset with rounded corners so it
   reads as part of the same object, not a different website. */
.porcelain-wrap { padding: clamp(40px, 6vw, 80px) clamp(8px, 1.4vw, 20px) 0; }
.porcelain {
  --s: 1;
  background: var(--paper); color: var(--paper-ink);
  border-radius: clamp(20px, 2.6vw, 36px);
  padding: clamp(96px, 11vw, 168px) 0 clamp(96px, 11vw, 160px);
  transform: scale(var(--s)); transform-origin: 50% 0;
  position: relative; overflow: hidden;
}
.porcelain::before {
  /* a faint steel light falling across the top edge */
  content: ""; position: absolute; top: -40%; left: 50%; width: 80%; height: 80%; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(var(--steel-hi-rgb), .22), rgba(var(--steel-hi-rgb), 0));
  pointer-events: none;
}
.porcelain .label { color: var(--paper-3); }
.porcelain .h2 { color: var(--paper-ink); }
.porcelain .h2 span { color: var(--paper-3); }
.pc-head { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 24px; }
.pc-head .label { grid-column: 1 / -1; }
.pc-head .h2 { grid-column: 1 / span 9; }

/* Industries: two labelled groups of four, with small bullets — structured, nothing that looks tappable */
.industries {
  margin-top: clamp(48px, 6vw, 80px);
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(24px, 4vw, 64px); row-gap: 40px;
}
.ind-group h3 {
  font-family: var(--sans); font-size: 13px; font-weight: 500; letter-spacing: 0.01em; color: var(--paper-3);
  padding-bottom: 14px; margin-bottom: 18px; border-bottom: 1px solid var(--paper-line);
}
.ind-group ul { display: grid; gap: 14px; }
.ind-group li {
  position: relative; padding-left: 22px;
  font-family: var(--display); font-weight: 500; font-size: clamp(19px, 1.8vw, 26px); letter-spacing: -0.025em; line-height: 1.25;
  color: var(--paper-ink);
}
.ind-group li::before {
  content: ""; position: absolute; left: 2px; top: .55em; width: 6px; height: 6px; border-radius: 50%;
  background: var(--steel);
}
@media (max-width: 720px) {
  .industries { grid-template-columns: 1fr; row-gap: 36px; }
  .ind-group li { font-size: 19px; padding-left: 20px; }
  .ind-group ul { gap: 12px; }
}
.clients-foot { margin-top: 28px; color: var(--paper-2); font-size: 16px; }

.why { margin-top: clamp(112px, 13vw, 200px); }
.why .lit { margin-top: 32px; font-size: clamp(36px, 5.2vw, 84px); line-height: 1.02; letter-spacing: -0.042em; font-weight: 600; max-width: 16ch; }
.principles { margin-top: clamp(64px, 7vw, 104px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 32px; row-gap: 48px; }
.pr { position: relative; padding-top: 24px; }
.pr::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--paper-ink); transform: scaleX(0); transform-origin: left; transition: transform 1.4s var(--ease-out) .1s; }
.pr.is-in::before { transform: scaleX(1); }
.pr span { font-size: 12px; font-weight: 500; color: var(--paper-3); }
.pr h3 { font-family: var(--display); font-weight: 600; font-size: 26px; letter-spacing: -0.03em; margin: 18px 0 12px; }
.pr p { color: var(--paper-2); font-size: 15px; line-height: 1.55; }

/* 10. APPROACH ------------------------------------------------------------- */
.approach { padding: var(--space) 0 0; }
.ap-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 24px; }
.ap-head .label { grid-column: 1 / -1; }
.ap-head .h2 { grid-column: 1 / span 8; }
.steps { --p: 0; position: relative; margin-top: clamp(64px, 7vw, 104px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 32px; }
.steps::before, .steps::after { content: ""; position: absolute; left: 0; right: 0; top: 4px; height: 1px; }
.steps::before { background: var(--line-2); }
.steps::after { background: linear-gradient(90deg, var(--fg-2), var(--steel-hi)); transform: scaleX(var(--p)); transform-origin: left; }
.step { position: relative; padding-top: 40px; }
.step .dot { position: absolute; top: 0; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--ink-0); border: 1px solid var(--fg-3); transition: background-color .6s, border-color .6s, box-shadow .6s; z-index: 1; }
.step.is-lit .dot { background: var(--fg); border-color: var(--fg); box-shadow: 0 0 0 5px rgba(var(--steel-hi-rgb), .14); }
.step .n { font-size: 13px; color: var(--fg-3); font-variant-numeric: tabular-nums; }
.step h3 { font-family: var(--display); font-weight: 600; font-size: 28px; letter-spacing: -0.03em; margin: 14px 0 12px; }
.step p { color: var(--fg-2); font-size: 15px; line-height: 1.55; max-width: 30ch; }
.ap-note { margin-top: 56px; font-size: 13px; color: var(--fg-3); }

/* 11. CONTACT -------------------------------------------------------------- */
.contact { padding: var(--space) 0; }
.contact-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 56px; align-items: start; }
.contact-aside { grid-column: 1 / span 5; position: sticky; top: calc(var(--nav-h) + 40px); }
.contact-aside .h2 { margin-top: 24px; max-width: 13ch; }
.contact-lede { margin-top: 24px; color: var(--fg-2); font-size: 18px; line-height: 1.5; letter-spacing: -0.014em; max-width: 30ch; }
.contact-direct { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); display: grid; gap: 6px; }
.contact-direct span { font-size: 13px; color: var(--fg-3); }
.contact-direct a { display: inline-flex; align-items: center; min-height: 40px; font-size: 17px; letter-spacing: -0.012em; justify-self: start; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .6s var(--ease-out); }
.contact-direct a:hover { background-size: 100% 1px; }
.contact-assure { margin-top: 24px; color: var(--fg-3); font-size: 13.5px; max-width: 36ch; }

.panel {
  grid-column: 7 / span 6; position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--ink-2), var(--ink-1));
  border: 1px solid var(--line); border-radius: 24px;
  padding: clamp(28px, 3.6vw, 48px);
}
.panel::before { content: ""; position: absolute; top: 0; left: 12%; right: 12%; height: 1px; background: linear-gradient(90deg, transparent, rgba(var(--steel-hi-rgb), .55), transparent); }
.panel::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(480px circle at var(--mx, 80%) var(--my, -10%), rgba(var(--steel-rgb), .16), transparent 60%); }
.form { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 28px 24px; }
.full { grid-column: 1 / -1; }
.f { display: grid; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.f label, .f legend { font-size: 13px; font-weight: 500; color: var(--fg-2); padding: 0; letter-spacing: -0.005em; }
.f legend { margin-bottom: 12px; }
.f input, .f select, .f textarea {
  width: 100%; font: inherit; font-size: 16px; letter-spacing: -0.01em; color: var(--fg);
  background: rgba(8, 10, 12, .5); border: 1px solid var(--line-2); border-radius: 12px;
  padding: 13px 14px; outline: none; -webkit-appearance: none; appearance: none;
  transition: border-color .4s var(--ease-out), box-shadow .5s var(--ease-out), background-color .4s;
}
.f input::placeholder, .f textarea::placeholder { color: var(--fg-4); }
.f input:hover, .f select:hover, .f textarea:hover { border-color: rgba(245,246,247,.24); }
.f input:focus, .f select:focus, .f textarea:focus { border-color: var(--steel-hi); background: rgba(8,10,12,.75); box-shadow: 0 0 0 4px rgba(var(--steel-hi-rgb), .16); }
.f textarea { resize: vertical; min-height: 128px; line-height: 1.5; }
.select { position: relative; }
.select::after { content: ""; position: absolute; right: 16px; top: 50%; width: 7px; height: 7px; border-right: 1.4px solid var(--fg-3); border-bottom: 1.4px solid var(--fg-3); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.f select { padding-right: 40px; cursor: pointer; }
.f select:invalid { color: var(--fg-3); }
.f select option { background: var(--ink-2); color: var(--fg); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 15px;
  border: 1px solid var(--line-2); border-radius: 999px; font-size: 14px; color: var(--fg-2);
  user-select: none; transition: all .45s var(--ease-out);
}
.chips span::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 1px solid var(--fg-4); transition: all .45s var(--ease-out); background: transparent center / 8px no-repeat; }
.chips label:hover span { color: var(--fg); border-color: rgba(245,246,247,.28); }
.chips input:checked + span { color: var(--ink-0); background: var(--fg); border-color: var(--fg); }
.chips input:checked + span::before { border-color: var(--ink-0); background-color: var(--ink-0); background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'><path d='M2 5.2 4.2 7.4 8 3' fill='none' stroke='%23F5F6F7' stroke-width='1.6'/></svg>"); }
.chips input:focus-visible + span { outline: 1.5px solid var(--steel-hi); outline-offset: 3px; }

.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; line-height: 1.55; color: var(--fg-3); cursor: pointer; }
.consent input { -webkit-appearance: none; appearance: none; flex: none; width: 18px; height: 18px; margin: 1px 0 0; border: 1px solid var(--line-2); border-radius: 5px; display: grid; place-content: center; cursor: pointer; transition: all .3s; }
.consent input::after { content: ""; width: 10px; height: 10px; transform: scale(0); transition: transform .35s var(--ease-out); background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'><path d='M1.5 5.2 4 7.6 8.6 2.6' fill='none' stroke='%23080A0C' stroke-width='1.8'/></svg>") center / contain no-repeat; }
.consent input:checked { background: var(--fg); border-color: var(--fg); }
.consent input:checked::after { transform: scale(1); }
.consent a { color: var(--fg-2); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }

.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 4px; }
.form-foot .btn { margin-left: auto; }
.form-status { font-size: 14px; color: var(--fg-2); flex: 1 1 220px; }
.form-status.is-error { color: #e2a7a7; }
.btn[disabled] { opacity: .6; cursor: progress; }
.form-done { display: none; position: relative; z-index: 1; padding: 64px 0; }
.form-done svg { width: 40px; height: 40px; }
.form-done svg path { fill: var(--fg); }
.h-done { margin-top: 28px; font-family: var(--display); font-weight: 600; font-size: clamp(40px, 4vw, 60px); letter-spacing: -0.04em; line-height: 1; }
.form-done p:last-child { margin-top: 16px; color: var(--fg-2); max-width: 34ch; }
.is-sent .form { display: none; }
.is-sent .form-done { display: block; animation: rise 1.1s var(--ease-out) both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* 12. FOOTER --------------------------------------------------------------- */
.footer { border-top: 1px solid var(--line); padding: 64px 0 32px; overflow: hidden; }
.ft-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.ft-brand { display: grid; gap: 14px; justify-items: start; }
.ft-mail { font-size: 14px; color: var(--fg-2); transition: color .4s; }
.ft-mail:hover { color: var(--fg); }
.ft-nav { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.ft-nav a { font-size: 14px; color: var(--fg-2); transition: color .4s; }
.ft-nav a:hover { color: var(--fg); }
.ft-legal { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); max-width: 104ch; }
.ft-legal p { font-size: 12px; line-height: 1.7; color: var(--fg-3); }
.ft-legal b { color: var(--fg-2); font-weight: 500; }
.ft-legal a { color: var(--fg-2); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; transition: color .4s; }
.ft-legal a:hover { color: var(--fg); }
.legal-table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.legal-table th, .legal-table td { text-align: left; padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 15px; }
.legal-table th { color: var(--fg-3); font-weight: 500; width: 38%; }
.legal-table td { color: var(--fg); }
.ft-mark { margin-top: clamp(56px, 8vw, 120px); }
.wm-big { width: 100%; height: auto; }
.wm-big path { fill: rgba(245, 246, 247, 0.035); stroke: rgba(245, 246, 247, 0.12); stroke-width: 0.35; }
.ft-bottom { margin-top: 28px; display: flex; justify-content: space-between; gap: 20px; font-size: 13px; color: var(--fg-3); }
.to-top { display: inline-flex; align-items: center; gap: 8px; transition: color .4s; }
.to-top:hover { color: var(--fg); }

/* Simple pages (privacy, 404) */
.page { padding: calc(var(--nav-h) + clamp(72px, 10vw, 140px)) 0 var(--space); min-height: 70vh; }
.page h1 { margin-top: 24px; font-family: var(--display); font-weight: 600; font-size: clamp(44px, 6vw, 88px); line-height: 1; letter-spacing: -0.045em; }
.page h1 span { color: var(--fg-3); }
.page .lede { margin-top: 24px; color: var(--fg-2); font-size: 18px; max-width: 46ch; }
.prose { margin-top: 56px; max-width: 68ch; color: var(--fg-2); }
.prose h2 { font-family: var(--display); font-weight: 600; font-size: 24px; letter-spacing: -0.025em; color: var(--fg); margin: 44px 0 10px; }
.prose p, .prose ul { margin: 0 0 14px; }
.prose ul { list-style: disc; padding-left: 20px; }
.prose a { color: var(--fg); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }

/* RESPONSIVE --------------------------------------------------------------- */
@media (max-width: 1100px) {
  .caps-aside { grid-column: 1 / span 5; }
  .caps-list { grid-column: 6 / span 7; }
  .cap-body { margin-left: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 56px; }
  .steps::before, .steps::after { display: none; }
  .step .dot { display: none; }
  .step { padding-top: 24px; border-top: 1px solid var(--line-2); }
}
@media (max-width: 960px) {
  .hero-sub { grid-column: 1 / -1; }
  .hero-cta { grid-column: 1 / -1; justify-self: start; }
  .statement-foot > p { grid-column: 1 / -1; }
  .caps-aside, .caps-list { grid-column: 1 / -1; }
  .caps-sticky { position: static; padding-bottom: 56px; }
  .caps-index { display: none; }
  .pc-head .h2, .ap-head .h2 { grid-column: 1 / -1; }
  .contact-aside, .panel { grid-column: 1 / -1; }
  .contact-aside { position: static; }
  .ft-legal { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  :root { --nav-h: 64px; }
  .nav-links { display: none; }
  .menu-btn { display: block; }
  .wm { height: 13px; }
  .wm-solo { height: 16px; }
  .h-display { font-size: clamp(38px, 11.2vw, 60px); letter-spacing: -0.042em; line-height: 1.0; }
  .hero-sub { font-size: 16.5px; text-wrap: pretty; }
  .hero-body { justify-content: flex-end; padding-bottom: 32px; }
  .hero-cta { width: 100%; flex-direction: column-reverse; align-items: stretch; gap: 8px; }
  .hero-cta .btn-light { justify-content: space-between; --h: 50px; font-size: 15px; }
  .hero-cta .btn-text { justify-content: center; }
  .apex .leg-r { stroke-width: 1.75; }
  .cap-head { grid-template-columns: 40px 1fr; }
  .cap-body { grid-template-columns: 1fr; row-gap: 28px; margin-top: 28px; }
  .cap { padding-bottom: 64px; }
  .grp ul:not(.tokens) li { padding: 10px 0; font-size: 14.5px; }
  .principles { grid-template-columns: 1fr; row-gap: 36px; }
  .steps { grid-template-columns: 1fr; row-gap: 36px; }
  .form { grid-template-columns: 1fr; gap: 22px; }
  .form-foot .btn { width: 100%; justify-content: space-between; --h: 50px; }
  .ft-top { flex-direction: column; }
  .ft-nav { gap: 0 24px; }
  .ft-nav a { display: inline-flex; align-items: center; min-height: 44px; }
  .chips span { height: 44px; padding: 0 16px; }
  .atmos i { animation: none; }
  .sheet a.big { font-size: 32px; }
  .ft-bottom { flex-direction: column-reverse; }
}


/* Phones and small tablets: capabilities become a sticky pill index
   plus five compact, expandable areas, so the section stays short. */
@media (max-width: 960px) {
  .caps-pills {
    display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity; scroll-padding-inline: var(--gutter);
    --fl: 24px; --fr: 40px;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--fl), #000 calc(100% - var(--fr)), transparent);
    mask-image: linear-gradient(90deg, transparent 0, #000 var(--fl), #000 calc(100% - var(--fr)), transparent);
    position: sticky; top: var(--nav-h); z-index: 20;
    margin: 0 calc(var(--gutter) * -1) 40px; padding: 12px var(--gutter);
    background: rgba(8, 10, 12, 0.86); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    transition: top .7s var(--ease-out);
  }
  .nav-off .caps-pills { top: 0; }
  .caps-pills.at-start { --fl: 0px; }
  .caps-pills.at-end { --fr: 0px; }
  .caps-pills::-webkit-scrollbar { display: none; }
  .caps-pills a {
    flex: none; scroll-snap-align: start; height: 40px; padding: 0 16px; border-radius: 999px; display: inline-flex; align-items: center;
    border: 1px solid var(--line-2); font-size: 13.5px; font-weight: 500; color: var(--fg-2); white-space: nowrap;
    transition: background-color .4s var(--ease-out), color .4s, border-color .4s;
  }
  .caps-pills a.is-active { background: var(--fg); color: var(--ink-0); border-color: var(--fg); }
  .cap { padding-bottom: 0; }
  .cap + .cap { padding-top: 0; }
  .cap { border-top: 1px solid var(--line); }
  .cap:last-child { border-bottom: 1px solid var(--line); }
  .cap-head { padding-top: 28px; }
  .cap-toggle {
    display: flex; align-items: center; gap: 10px; width: 100%;
    min-height: 48px; margin: 14px 0 18px; padding: 0 0 0 calc(40px + 8px);
    font-size: 14px; font-weight: 500; color: var(--fg); text-align: left;
  }
  .ct-count { color: var(--fg-3); font-weight: 400; }
  .cap-toggle i { margin-left: auto; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line-2); position: relative; flex: none; transition: background-color .4s, border-color .4s; }
  .cap-toggle i::before, .cap-toggle i::after { content: ""; position: absolute; left: 10px; right: 10px; top: 50%; height: 1.4px; background: var(--fg); border-radius: 1px; transition: transform .5s var(--ease-out); }
  .cap-toggle i::after { transform: rotate(90deg); }
  .cap.is-open .cap-toggle i { background: var(--fg); border-color: var(--fg); }
  .cap.is-open .cap-toggle i::before, .cap.is-open .cap-toggle i::after { background: var(--ink-0); }
  .cap.is-open .cap-toggle i::after { transform: rotate(0); }
  .cap-fold { grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows .7s var(--ease-out), visibility 0s linear .7s; }
  .cap.is-open .cap-fold { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows .7s var(--ease-out), visibility 0s; }
  .cap-fold-in { overflow: hidden; }
  .cap-fold .cap-body { margin-top: 0; padding-bottom: 32px; }
  .caps-note { margin-top: 20px; }
}

/* MOTION PREFERENCES ------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .h-display .w, .fade-up, .rv { opacity: 1 !important; filter: none !important; transform: none !important; }
  .apex svg { clip-path: none !important; }
  .lit .lw { opacity: 1 !important; }
  .pr::before { transform: none; }
  .steps::after { transform: scaleX(1); }
  .porcelain { transform: none !important; }
}
.prose b { font-weight: 500; color: var(--fg); }

/* Touch screens (phones, tablets): every control at least 44px tall */
@media (pointer: coarse) {
  .nav-links > a:not(.btn) { min-height: 44px; display: inline-flex; align-items: center; }
  .btn-sm { --h: 44px; }
  .ft-mail, .sheet-mail { display: inline-flex; align-items: center; min-height: 44px; }
  .chips span { height: 44px; }
}

/* Validation: only after a submit attempt, so people aren't scolded while typing */
.was-validated .f :invalid { border-color: rgba(226, 167, 167, .7); }
.was-validated .f :invalid:focus { box-shadow: 0 0 0 4px rgba(226, 167, 167, .16); }
.was-validated .consent input:invalid { border-color: rgba(226, 167, 167, .8); }
@media (pointer: coarse) { .to-top { min-height: 44px; } }
