/* ==========================================================
   Inwentions — design tokens
   ========================================================== */
:root {
  --ink-0: #070707;
  --ink-1: #0d0d0d;      /* page */
  --ink-2: #151515;      /* surface */
  --ink-3: #1c1c1c;      /* raised */
  --ink-4: #262626;      /* hairline strong */
  --ink-5: #3a3a3a;
  --grey-5: #6b6b6b;
  --grey-4: #8d8d8d;
  --grey-3: #b4b4b4;
  --grey-2: #d9d7d3;
  --paper: #f1efeb;      /* light panel */
  --paper-2: #e6e3de;
  --white: #ffffff;

  --red: #e11d2e;        /* brand red, hue 355°; white text on it 4.75:1 */
  --red-deep: #b5121f;   /* hover state, red text on light panels */
  --red-dark: #5c0910;   /* shadows inside red shapes */
  --red-ink: #ff4d5a;    /* small red text on dark panels (6:1) */
  --red-soft: #ff7a84;
  --red-tint: #ffe0e3;

  --line: rgba(255,255,255,.08);
  --line-2: rgba(255,255,255,.14);

  --f-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-logo: "Bebas Neue", "Oswald", "Arial Narrow", Impact, sans-serif;
  --f-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --r-xl: 28px;
  --r-lg: 20px;
  --r-md: 14px;
  --r-sm: 10px;

  --wrap: 1320px;
  --gut: clamp(16px, 3vw, 32px);
  --ease: cubic-bezier(.2,.7,.1,1);
  --ease-io: cubic-bezier(.76,0,.24,1);
  --e-out4: cubic-bezier(.165,.84,.44,1);   /* power4.out */
  --e-in2: cubic-bezier(.55,.085,.68,.53);  /* power2.in */
  --e-back: cubic-bezier(.34,1.56,.64,1);   /* back.out */

  /* framed layout: dark panels sit inside a lighter page frame */
  --frame: #1b1b1b;
  --panel: var(--ink-1);
  --fg: clamp(8px, 1.25vw, 20px);
  --R: clamp(18px, 2vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--frame);
  color: var(--white);
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.5;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
::selection { background: var(--red); color: var(--white); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }

/* ==========================================================
   Type
   ========================================================== */
.h2 {
  font-size: clamp(30px, 3.6vw, 50px);
  line-height: 1.06;
  letter-spacing: -0.035em;
  font-weight: 400;
  margin: 0;
  max-width: 18ch;
  text-wrap: balance;
}
.h2--dark { color: var(--ink-1); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-mono);
  font-size: 12px; letter-spacing: .02em;
  color: var(--grey-3);
  padding: 6px 12px 6px 10px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  margin: 0 0 22px;
}
.eyebrow--plain { border: 0; padding: 0; }
.eyebrow--dark { color: var(--ink-5); border-color: rgba(0,0,0,.14); }
.eyebrow__sq { width: 6px; height: 6px; background: var(--red); border-radius: 1.5px; }

/* ==========================================================
   Buttons
   Icon tile + label pill. On hover the icon spins out, the label
   slides into its place, a second icon pops in on the right and
   the label text rolls up and back in from below.
   ========================================================== */
.btn {
  --h: 48px; --gap: 3px; --br: 14px;
  --bg: var(--red); --ink: var(--white);
  position: relative;
  display: inline-flex; align-items: center; gap: var(--gap);
  height: var(--h);
  color: var(--ink);
  font-size: 15px; font-weight: 500; letter-spacing: -0.01em;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.btn__ico, .btn__hover {
  flex: none;
  width: var(--h); height: var(--h);
  display: grid; place-items: center;
  border-radius: var(--br);
  background: var(--bg);
  font-size: 15px;
}
.btn__ico { transition: transform .4s var(--e-out4); }
.btn__hover {
  position: absolute; top: 0; right: 0; z-index: 0;
  transform: scale(0) rotate(-90deg);
  transition: transform .4s var(--e-out4);
}
.btn__label {
  position: relative; z-index: 1;
  display: flex; align-items: center;
  height: var(--h); padding: 0 20px;
  border-radius: var(--br);
  background: var(--bg);
  overflow: hidden;
  transition: transform .4s var(--e-out4), background .3s, box-shadow .3s, color .3s;
}
.btn__text { display: block; }

.btn--red .btn__ico, .btn--red .btn__hover { color: var(--white); }
.btn--dark { --bg: var(--ink-1); }
.btn--dark .btn__ico, .btn--dark .btn__hover { color: var(--red); }
.btn--sm { --h: 40px; --br: 12px; font-size: 14px; }
.btn--sm .btn__label { padding: 0 16px; }
.btn--line .btn__label { background: transparent; box-shadow: inset 0 0 0 1px var(--line-2); padding: 0 22px; }
.btn--ghost { color: var(--grey-3); }
.btn--ghost .btn__label { background: transparent; padding: 0 14px; }

@media (hover: hover) {
  .btn:is(.btn--red, .btn--dark):hover .btn__ico { transform: scale(0) rotate(90deg); transition: transform .25s var(--e-out4) .04s; }
  .btn:is(.btn--red, .btn--dark):hover .btn__label { transform: translateX(calc(-1 * (var(--h) + var(--gap)))); transition-duration: .25s; }
  .btn:is(.btn--red, .btn--dark):hover .btn__hover { transform: scale(1) rotate(0); transition: transform .35s var(--e-back) .04s; }
  .btn:hover .btn__text { animation: btn-roll .4s both; }
  .btn--line:hover .btn__label { box-shadow: inset 0 0 0 1px var(--white); }
  .btn--ghost:hover { color: var(--white); }
}
.btn:is(.btn--red, .btn--dark):focus-visible .btn__ico { transform: scale(0) rotate(90deg); }
.btn:is(.btn--red, .btn--dark):focus-visible .btn__label { transform: translateX(calc(-1 * (var(--h) + var(--gap)))); }
.btn:is(.btn--red, .btn--dark):focus-visible .btn__hover { transform: scale(1) rotate(0); }
.btn:focus-visible { outline-offset: 4px; border-radius: var(--br); }

@keyframes btn-roll {
  0%     { transform: translateY(0);     animation-timing-function: var(--e-in2); }
  35%    { transform: translateY(-105%); }
  35.01% { transform: translateY(105%);  animation-timing-function: var(--e-out4); }
  100%   { transform: translateY(0); }
}

/* ==========================================================
   Loader
   ========================================================== */
.loader {
  position: fixed; inset: 0; z-index: 100;
  background: var(--ink-0);
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: 1fr auto;
  padding: clamp(20px, 4vw, 48px);
  transition: transform 1s var(--ease-io);
}
.loader.is-out { transform: translateY(-100%); }
.loader.is-gone { display: none; }

.loader__logo {
  grid-column: 1 / -1;
  align-self: center; justify-self: center;
  height: clamp(150px, 27vw, 260px);
  color: var(--red);
}
.loader__logo svg { display: block; height: 100%; width: auto; overflow: visible; stroke-width: 34; stroke-linecap: butt; stroke-linejoin: miter; }
.loader__logo path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw var(--t, .5s) var(--e-out4) var(--d, 0s) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.loader__word {
  grid-column: 1; grid-row: 2;
  display: flex; overflow: hidden;
  font-family: var(--f-logo);
  font-size: clamp(64px, 15vw, 190px);
  letter-spacing: .01em; line-height: .86; font-weight: 400;
}
.loader__word span { display: inline-block; transform: translateY(105%); animation: up .8s var(--ease) forwards; }
.loader__word span:nth-child(1)  { animation-delay: .70s; }
.loader__word span:nth-child(2)  { animation-delay: .74s; }
.loader__word span:nth-child(3)  { animation-delay: .78s; }
.loader__word span:nth-child(4)  { animation-delay: .82s; }
.loader__word span:nth-child(5)  { animation-delay: .86s; }
.loader__word span:nth-child(6)  { animation-delay: .90s; }
.loader__word span:nth-child(7)  { animation-delay: .94s; }
.loader__word span:nth-child(8)  { animation-delay: .98s; }
.loader__word span:nth-child(9)  { animation-delay: 1.02s; }
.loader__word span:nth-child(10) { animation-delay: 1.06s; }
@keyframes up { to { transform: translateY(0); } }

.loader__meta {
  grid-column: 2; grid-row: 2;
  display: flex; flex-direction: column; align-items: flex-end; gap: 6px;
  font-family: var(--f-mono);
}
.loader__label { font-size: 12px; color: var(--grey-4); letter-spacing: .32em; text-transform: uppercase; }
.loader__count { font-size: clamp(28px, 4vw, 44px); line-height: 1; letter-spacing: -0.03em; }
.loader__count b { font-weight: 400; }
.loader__count i { font-style: normal; color: var(--red); }

/* exit: five columns climb like the stairs, then the whole sheet lifts */
.loader__wipe { position: absolute; inset: 0; display: flex; pointer-events: none; }
.loader__wipe i {
  flex: 1; margin-right: -1px;
  background: var(--red);
  transform: translateY(100%);
  transition: transform .7s var(--ease-io);
  transition-delay: calc(var(--i) * 60ms);
}
.loader__wipe i:nth-child(even) { background: #cc1828; }
.loader.is-wiping .loader__wipe i { transform: translateY(0); }

/* ==========================================================
   Nav
   Full bar at the top of the hero panel; once the page scrolls it
   collapses to the logo and a Menu pill.
   ========================================================== */
.nav { position: fixed; top: var(--fg); left: var(--fg); right: var(--fg); z-index: 50; pointer-events: none; }
.nav__inner { position: relative; display: flex; align-items: center; gap: 24px; height: 72px; }
.nav__inner > *, .nav__sheet { pointer-events: auto; }

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand__mark { width: 40px; height: 40px; border-radius: 11px; background: var(--ink-1); border: 1px solid rgba(255,255,255,.12); display: grid; place-items: center; flex: none; }
.nav .brand__mark { transition: box-shadow .3s; }
.nav.is-compact .brand__mark { box-shadow: 0 0 0 3px rgba(13,13,13,.9); }  /* keeps the tile visible over the red hero shape */
.brand__mark svg { height: 26px; width: auto; fill: none; stroke: var(--red); stroke-width: 36; stroke-linecap: butt; stroke-linejoin: miter; }
.brand__mark--lg { width: 68px; height: 68px; border-radius: 16px; }
.brand__mark--lg svg { height: 44px; }
.brand__word { font-family: var(--f-logo); font-size: 27px; line-height: 1; letter-spacing: .02em; font-weight: 400; padding-top: 2px; transition: opacity .3s, transform .45s var(--ease); }
.footer__logo { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.footer__name { font-family: var(--f-logo); font-size: 40px; line-height: .9; letter-spacing: .02em; }
.footer__name i { display: block; margin-top: 8px; font: 300 10.5px/1 var(--f-sans); letter-spacing: .42em; text-transform: uppercase; color: var(--grey-4); }
.skip { position: fixed; left: 12px; top: -60px; z-index: 200; padding: 10px 16px; border-radius: 10px; background: var(--white); color: var(--ink-0); font-size: 14px; transition: top .2s; }
.skip:focus-visible { top: 12px; }

.nav__full { flex: 1; display: flex; align-items: center; gap: 20px; transition: opacity .3s, transform .45s var(--ease), visibility 0s; }
.nav__links { display: flex; gap: 4px; margin: 0 auto; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.02); }
.nav__links a { padding: 8px 16px; font-size: 14px; color: var(--grey-3); border-radius: 999px; transition: color .25s, background .25s; }
.nav__links a:hover { color: var(--white); background: var(--ink-3); }
.nav__cta { display: flex; align-items: center; gap: 6px; }

.nav__menu {
  position: absolute; top: 16px; right: var(--gut);
  display: inline-flex; align-items: center; gap: 9px;
  height: 40px; padding: 0 16px 0 14px;
  border-radius: 999px;
  background: rgba(21,21,21,.88);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid var(--line-2);
  color: var(--white); font-size: 14px; font-weight: 500;
  opacity: 0; transform: translateY(-8px) scale(.96); visibility: hidden;
  transition: opacity .3s, transform .45s var(--ease), visibility 0s linear .45s, background .25s;
}
.nav__menu i { width: 7px; height: 7px; border-radius: 50%; background: var(--red); transition: transform .35s var(--e-back); }
.nav__menu:hover { background: var(--ink-3); }
.nav.is-open .nav__menu i { transform: scale(1.5); }

.nav.is-compact .nav__full,
.nav.is-compact .brand__word { opacity: 0; transform: translateY(-10px); visibility: hidden; pointer-events: none; transition: opacity .25s, transform .4s var(--ease), visibility 0s linear .4s; }
.nav.is-compact .nav__menu { opacity: 1; transform: none; visibility: visible; transition: opacity .3s .05s, transform .45s var(--ease) .05s, visibility 0s, background .25s; }

.nav__sheet {
  position: absolute; top: 64px;
  right: max(var(--gut), calc((100% - var(--wrap)) / 2 + var(--gut)));
  width: min(340px, calc(100% - 2 * var(--gut)));
  display: grid; gap: 2px; padding: 8px;
  background: var(--ink-2); border: 1px solid var(--line-2); border-radius: var(--r-lg);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.6);
  opacity: 0; transform: translateY(-8px) scale(.98); transform-origin: top right; visibility: hidden;
  transition: opacity .25s, transform .35s var(--ease), visibility 0s linear .35s;
}
.nav.is-open .nav__sheet { opacity: 1; transform: none; visibility: visible; transition: opacity .25s, transform .35s var(--ease), visibility 0s; }
.nav__sheet > a { padding: 12px 14px; border-radius: var(--r-sm); font-size: 20px; letter-spacing: -0.02em; transition: background .2s; }
.nav__sheet > a:hover { background: var(--ink-3); }
.nav__sheet-foot { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; margin-top: 6px; padding: 16px 14px 10px; border-top: 1px solid var(--line); }
.nav__sheet-tel { font-family: var(--f-mono); font-size: 12.5px; color: var(--grey-4); }
.nav__sheet-tel:hover { color: var(--white); }

/* ==========================================================
   Hero
   ========================================================== */
.hero { padding: var(--fg) var(--fg) 0; }
.hero__panel {
  position: relative;
  background: var(--panel);
  border-radius: var(--R) var(--R) 0 var(--R);   /* bottom-right continues into the notch below */
  padding: calc(72px + clamp(24px, 4vw, 48px)) 0 clamp(64px, 6vw, 88px);
}
.hero__top { display: flex; flex-direction: column; }
.hero__title {
  margin: 0;
  font-size: clamp(44px, 7.4vw, 108px);
  line-height: .94;
  letter-spacing: -0.055em;
  font-weight: 400;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__title .line > span { display: inline-block; text-wrap: balance; }
.hero .eyebrow { text-wrap: balance; }
.hero__title em { font-style: normal; color: var(--red); }
.hero__aside { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-top: 32px; }
.hero__aside p { margin: 0; max-width: 46ch; color: var(--grey-3); font-size: 16.5px; }
.hero__btns { display: flex; flex-wrap: wrap; gap: 10px; flex: none; }

/* stepped stage */
.stage {
  position: relative;
  margin-top: clamp(36px, 5vw, 64px);
  aspect-ratio: 1296 / 600;
  --R: var(--r-xl);
}
.stage__shape { position: absolute; inset: 0; }
.stage__shape i { position: absolute; background: var(--red); border-radius: var(--R); }
.stage__shape .s1 { left: 0; right: 0; top: 34%; bottom: 0; }
.stage__shape .s2 { left: 22%; right: 0; top: 14%; bottom: 0; }
.stage__shape .s3 { left: 60%; right: 0; top: 0; bottom: 0; }
.stage__shape b {
  position: absolute; width: var(--R); height: var(--R);
  background: radial-gradient(circle at 0 0, transparent calc(var(--R) - .5px), var(--red) var(--R));
}
.stage__shape .f1 { left: calc(22% - var(--R)); top: calc(34% - var(--R)); }
.stage__shape .f2 { left: calc(60% - var(--R)); top: calc(14% - var(--R)); }
/* inner texture */
.stage__shape .s2::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background:
    radial-gradient(120% 80% at 80% 100%, rgba(92,9,16,.55), transparent 60%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.06) 0 1px, transparent 1px 64px);
  -webkit-mask: linear-gradient(#000, transparent 85%);
          mask: linear-gradient(#000, transparent 85%);
}

.stage__tag {
  position: absolute; z-index: 2;
  font-family: var(--f-mono); font-size: 12px; line-height: 1.45;
  display: flex; gap: 10px; align-items: flex-start;
}
.stage__tag span { font-size: 10.5px; padding: 3px 7px; border-radius: 6px; }
.stage__tag--l { left: 0; top: 4%; color: var(--grey-3); }
.stage__tag--l span { background: var(--ink-3); color: var(--red-ink); }
.stage__tag--r { right: 3%; top: 6%; align-items: center; background: var(--ink-1); color: var(--white); padding: 8px 12px 8px 8px; border-radius: 999px; }
.stage__tag--r span { background: var(--red); color: var(--white); display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px 3px 8px; border-radius: 999px; }
.stage__tag--r span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--white); animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: .25; } }

.device {
  position: absolute; z-index: 1;
  left: 50%; bottom: 7%;
  width: min(58%, 760px);
  transform: translateX(-46%);
  filter: drop-shadow(0 40px 50px rgba(0,0,0,.45));
}
.device__screen {
  background: var(--ink-0);
  border: clamp(5px, .8vw, 10px) solid #111;
  border-bottom-width: clamp(8px, 1.2vw, 16px);
  border-radius: clamp(10px, 1.4vw, 18px) clamp(10px, 1.4vw, 18px) 4px 4px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px #2a2a2a;
}
.device__bar { display: flex; align-items: center; gap: 5px; padding: 7px 10px; background: #1a1a1a; border-bottom: 1px solid #262626; }
.device__bar i { width: 7px; height: 7px; border-radius: 50%; background: #3b3b3b; }
.device__bar i:first-child { background: var(--red); }
.device__bar span { margin: 0 auto; font-family: var(--f-mono); font-size: 10px; color: var(--grey-4); background: #111; padding: 2px 22px; border-radius: 5px; }
.device__screen img { width: 100%; height: auto; aspect-ratio: 16 / 9.4; object-fit: cover; object-position: top; }
.device__base {
  height: clamp(10px, 1.4vw, 16px);
  margin: 0 -7%;
  background: linear-gradient(#c9c6c1, #8e8b86 60%, #5a5854);
  border-radius: 2px 2px 14px 14px / 2px 2px 10px 10px;
  position: relative;
}
.device__base::before { content: ""; position: absolute; left: 50%; top: 0; width: 14%; height: 40%; transform: translateX(-50%); background: rgba(0,0,0,.25); border-radius: 0 0 8px 8px; }

/* clients row */
.clients {
  display: flex; align-items: center; gap: clamp(24px, 4vw, 56px);
  padding: 34px 0 0;
}
.clients__label { font-family: var(--f-mono); font-size: 11.5px; color: var(--grey-5); line-height: 1.4; white-space: nowrap; }
.clients ul { list-style: none; margin: 0; padding: 0; flex: 1; display: flex; justify-content: space-between; align-items: center; gap: 28px; }
.clients li { color: var(--grey-4); font-size: clamp(15px, 1.6vw, 20px); letter-spacing: -0.03em; white-space: nowrap; transition: color .3s; }
.clients li:hover { color: var(--white); }
.clients li b { font-weight: 600; }
.clients li em { font-style: normal; font-weight: 600; }
.clients li:nth-child(2) { font-weight: 600; letter-spacing: .08em; font-size: clamp(13px, 1.3vw, 16px); }
.clients li:nth-child(2) span { font-weight: 300; margin-left: 4px; }
.clients li:nth-child(5) span { font-family: var(--f-mono); font-size: .7em; margin-left: 3px; text-transform: uppercase; }

/* ==========================================================
   Sections
   ========================================================== */
.section { padding: clamp(72px, 10vw, 136px) 0; }
.section--tight { padding: clamp(24px, 3vw, 40px) 0; }
.section--panel { padding: clamp(80px, 9vw, 120px) 0 clamp(24px, 3vw, 40px); }
.panel { position: relative; margin: 0 var(--fg); border-radius: var(--R); padding: clamp(56px, 7vw, 104px) 0; }
.panel--light { background: var(--paper); color: var(--ink-1); }
.panel--dark { background: var(--panel); }

/* The hero panel steps down on the right: the left 60% of the next
   section is frame-coloured with a rounded corner, the right 40% is a
   continuation of the panel. */
.section--notched { position: relative; }
.section--notched > .wrap { position: relative; z-index: 1; }
.notch { position: absolute; top: 0; left: var(--fg); right: var(--fg); z-index: 0; height: clamp(56px, 9vw, 144px); display: flex; pointer-events: none; }
.notch__l { position: relative; flex: 0 0 60%; }
.notch__l::before { content: ""; position: absolute; inset: 0; z-index: 1; background: var(--frame); border-top-right-radius: var(--R); }
.notch__l i { position: absolute; top: 0; right: 0; width: calc(var(--R) * 1.5); height: calc(var(--R) * 1.5); background: var(--panel); }
.notch__r { flex: 1; background: var(--panel); border-radius: 0 0 var(--R) var(--R); }

/* Folder tab: sits on a panel edge with concave corners on both sides */
.tab {
  --tab-bg: var(--panel); --tab-min: calc(var(--R) + 16px);
  position: absolute; top: 0; z-index: 2;
  left: max(var(--tab-min), calc((100% - var(--wrap)) / 2 + var(--gut) - 16px));
  transform: translateY(calc(-100% + 1px));
  display: inline-flex; align-items: center; gap: 8px;
  height: 44px; padding: 2px 18px 0 16px;
  background: var(--tab-bg);
  border-radius: 16px 16px 0 0;
  font-family: var(--f-mono); font-size: 12.5px; letter-spacing: .02em; color: var(--grey-3);
}
.tab::before, .tab::after { content: ""; position: absolute; bottom: 0; width: 16px; height: 16px; pointer-events: none; }
.tab::before { left: -16px; background: radial-gradient(circle at 0 0, transparent 15.5px, var(--tab-bg) 16px); }
.tab::after { right: -16px; background: radial-gradient(circle at 100% 0, transparent 15.5px, var(--tab-bg) 16px); }
.tab--frame { --tab-bg: var(--frame); --tab-min: calc(var(--fg) + var(--R) + 16px); }

/* services */
.services__head { margin-bottom: clamp(40px, 5vw, 64px); }
.services__head .h2 { max-width: 24ch; }
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.svc {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px 24px 24px;
  display: flex; flex-direction: column;
  min-height: 340px;
  position: relative; overflow: hidden;
  transition: border-color .35s, background .35s, transform .5s var(--ease);
}
.svc::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: var(--red); transform: scaleX(0); transform-origin: left;
  transition: transform .6s var(--ease);
}
.svc:hover { border-color: var(--line-2); background: var(--ink-3); }
.svc:hover::before { transform: scaleX(1); }
.svc__no { font-family: var(--f-mono); font-size: 12px; color: var(--grey-5); }
.svc h3 { font-size: 24px; line-height: 1.15; min-height: 2.3em; display: flex; align-items: flex-end; font-weight: 400; letter-spacing: -0.03em; margin: 40px 0 12px; }
.svc p { margin: 0 0 24px; font-size: 14.5px; color: var(--grey-4); }
.svc ul { list-style: none; margin: auto 0 0; padding: 16px 0 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 6px; }
.svc li { font-size: 12px; font-family: var(--f-mono); color: var(--grey-3); padding: 4px 9px; border-radius: 6px; background: rgba(255,255,255,.04); }
.svc--accent .svc__no { color: var(--red-ink); }
.svc--accent h3::after { content: ""; display: inline-block; width: 8px; height: 8px; margin-left: 10px; border-radius: 2px; background: var(--red); vertical-align: middle; }
.services__foot { display: flex; align-items: center; gap: 28px; margin-top: 36px; }
.services__foot p { margin: 0; color: var(--grey-5); font-size: 14px; max-width: 46ch; }

/* approach */
.approach { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.approach__copy .h2 { margin-bottom: 24px; }
.approach__copy p { color: #4a4a4a; margin: 0 0 16px; max-width: 46ch; }
.approach__copy .btn { margin-top: 16px; }

.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, 1fr);
  align-items: end; gap: 8px;
  height: clamp(320px, 34vw, 440px);
}
.step {
  --h: calc(36% + var(--n) * 16%);
  height: var(--h);
  background: var(--ink-1); color: var(--white);
  border-radius: var(--r-md) var(--r-md) 6px 6px;
  padding: 14px 12px;
  display: flex; flex-direction: column; gap: 4px;
  transform-origin: bottom;
  transform: scaleY(0);
  transition: transform .9s var(--ease), background .3s;
  transition-delay: calc(var(--n) * 90ms);
  position: relative;
}
.steps.is-in .step { transform: scaleY(1); }
.step__no { font-family: var(--f-mono); font-size: 11px; color: var(--grey-5); }
.step b { font-weight: 500; font-size: clamp(13px, 1.25vw, 17px); letter-spacing: -0.02em; }
.step em { font-style: normal; font-size: 12px; color: var(--grey-4); line-height: 1.35; margin-top: auto; opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s var(--ease); }
.step:hover em, .step--top em { opacity: 1; transform: none; }
.step:hover { background: #000; }
.step--top { background: var(--red); }
.step--top .step__no { color: rgba(255,255,255,.9); }
.step--top em { color: var(--white); }
.step--top:hover { background: var(--red-deep); }

/* work: featured-project showcase
   An index of projects on the left drives a stage on the right. The active
   row's bar fills over --dur, the site preview scrolls inside the browser
   window, and a five-column stair wipe swaps one project for the next. */
.work__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: clamp(36px, 4vw, 56px); }
.work__head .h2 { max-width: 20ch; }
.work__ctrl { display: flex; align-items: center; gap: 8px; }
.work__count { font-family: var(--f-mono); font-size: 13px; color: var(--grey-5); margin-right: 10px; }
.work__count b { color: var(--white); font-weight: 400; }
.arrow { width: 48px; height: 48px; border-radius: 14px; border: 1px solid var(--line-2); display: grid; place-items: center; font-size: 16px; transition: background .25s, border-color .25s, color .25s; }
.arrow:hover { background: var(--red); border-color: var(--red); }

.showcase { --dur: 8000ms; display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.5fr); gap: clamp(28px, 4vw, 64px); align-items: stretch; }
.showcase__side { min-width: 0; display: flex; flex-direction: column; gap: 32px; }
.showcase__list { border-top: 1px solid var(--line); }

.sc-item {
  position: relative; width: 100%;
  display: grid; grid-template-columns: 34px minmax(0, 1fr) 36px; align-items: center; gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  text-align: left; color: var(--grey-4);
  transition: color .3s;
}
.sc-item__no { font-family: var(--f-mono); font-size: 12px; color: var(--grey-5); transition: color .3s; }
.sc-item__body b { display: block; font-weight: 400; font-size: clamp(18px, 1.7vw, 24px); line-height: 1.15; letter-spacing: -0.03em; transition: transform .5s var(--ease); }
.sc-item__body i { display: block; margin-top: 6px; font-style: normal; font-family: var(--f-mono); font-size: 11.5px; color: var(--grey-5); }
.sc-item__go { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font-size: 13px; background: var(--red); color: var(--white); transform: scale(0) rotate(-90deg); transition: transform .35s var(--e-back); }
.sc-item__bar { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; overflow: hidden; }
.sc-item__bar i { display: block; height: 100%; background: var(--red); transform: scaleX(0); transform-origin: left; }
.sc-item:hover { color: var(--white); }
.sc-item:hover .sc-item__body b { transform: translateX(4px); }
.sc-item:focus-visible { outline-offset: -2px; }
.sc-item.is-active { color: var(--white); }
.sc-item.is-active .sc-item__no { color: var(--red-ink); }
.sc-item.is-active .sc-item__go { transform: none; }
.sc-item.is-active .sc-item__bar i { animation: sc-fill var(--dur) linear forwards; }
.showcase.is-paused .sc-item.is-active .sc-item__bar i { animation-play-state: paused; }
.showcase.is-static .sc-item.is-active .sc-item__bar i { animation: none; transform: scaleX(1); }
@keyframes sc-fill { to { transform: scaleX(1); } }

.showcase__caption { margin-top: auto; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.sc-title { margin: 0; max-width: 20ch; font-size: clamp(22px, 2.2vw, 30px); font-weight: 400; line-height: 1.15; letter-spacing: -0.03em; text-wrap: balance; }
.sc-title, .sc-visit { transition: opacity .3s, transform .5s var(--ease); }
.showcase__caption.is-swapping .sc-title,
.showcase__caption.is-swapping .sc-visit { opacity: 0; transform: translateY(10px); }

.showcase__stage { position: relative; min-width: 0; min-height: clamp(460px, 42vw, 640px); }  /* stretches to the list's height */
.sc-shape i { position: absolute; background: var(--red); border-radius: var(--R); }
.sc-shape .s1 { left: 0; right: 0; top: 16%; bottom: 0; }
.sc-shape .s2 { left: 52%; right: 0; top: 0; bottom: 30%; }
.sc-shape .s1::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background:
    radial-gradient(120% 80% at 20% 100%, rgba(92,9,16,.5), transparent 60%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.06) 0 1px, transparent 1px 64px);
  -webkit-mask: linear-gradient(transparent, #000 70%); mask: linear-gradient(transparent, #000 70%);
}
.sc-shape b { position: absolute; width: var(--R); height: var(--R); left: calc(52% - var(--R)); top: calc(16% - var(--R)); background: radial-gradient(circle at 0 0, transparent calc(var(--R) - .5px), var(--red) var(--R)); }
.sc-meta { position: absolute; left: 0; top: 0; height: 16%; margin: 0; display: flex; align-items: center; gap: 10px; font-family: var(--f-mono); font-size: 12px; color: var(--grey-3); }
.sc-meta__no { padding: 3px 7px; border-radius: 6px; background: var(--ink-3); color: var(--red-ink); font-size: 10.5px; }

.sc-window {
  position: absolute; left: 6%; right: 6%; top: 21%; bottom: 0;
  display: flex; flex-direction: column;
  background: #0a0a0a;
  border-radius: 16px 16px 0 0;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(0,0,0,.35), 0 40px 80px -30px rgba(0,0,0,.65);
}
.sc-window__bar { flex: none; display: flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; background: #161616; border-bottom: 1px solid #242424; }
.sc-window__bar i { width: 8px; height: 8px; border-radius: 50%; background: #3a3a3a; }
.sc-window__bar i:first-child { background: var(--red); }
.sc-url { margin: 0 auto; transform: translateX(-24px); padding: 3px 26px; border-radius: 6px; background: #0d0d0d; font-family: var(--f-mono); font-size: 11px; color: var(--grey-4); }
.sc-window__view { position: relative; flex: 1; overflow: hidden; background: #111; }
.sc-shot { display: block; width: 100%; height: auto; will-change: transform; }
.sc-shot.is-panning { animation: sc-pan var(--dur) cubic-bezier(.45,0,.55,1) forwards; }
.showcase.is-paused .sc-shot.is-panning { animation-play-state: paused; }
@keyframes sc-pan { 0%, 10% { transform: translateY(0); } 90%, 100% { transform: translateY(var(--pan, 0px)); } }

.sc-wipe { position: absolute; inset: 0; z-index: 2; display: flex; pointer-events: none; }
.sc-wipe i { flex: 1; margin-right: -1px; background: var(--red); transform: scaleY(0); transform-origin: bottom; transition: transform .42s var(--ease-io); }
.sc-wipe i:nth-child(even) { background: #cc1828; }
.sc-wipe i:nth-child(2) { transition-delay: 45ms; }
.sc-wipe i:nth-child(3) { transition-delay: 90ms; }
.sc-wipe i:nth-child(4) { transition-delay: 135ms; }
.sc-wipe i:nth-child(5) { transition-delay: 180ms; }
.sc-wipe.is-in i { transform: scaleY(1); }
.sc-wipe.is-out i { transform-origin: top; }
.sc-wipe.is-reset i { transition: none; }

.sc-cursor {
  position: absolute; left: 0; top: 0; z-index: 3; pointer-events: none;
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 14px 0 16px; border-radius: 12px;
  background: var(--red); color: var(--white); font-size: 14px; font-weight: 500; white-space: nowrap;
  scale: 0; transition: scale .35s var(--e-back);
}
@media (hover: hover) { .sc-window:hover .sc-cursor { scale: 1; } }
@media (hover: none) { .sc-cursor { display: none; } }

/* why */
.why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.why__title { padding: 8px 8px 24px 0; }
.why__card {
  background: var(--ink-2); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 28px;
  min-height: 230px;
  display: flex; flex-direction: column;
  transition: border-color .3s;
}
.why__card:hover { border-color: var(--line-2); }
.why__card h3 { margin: 0 0 auto; font-size: 22px; font-weight: 400; letter-spacing: -0.03em; padding-bottom: 32px; }
.why__card p { margin: 0; color: var(--grey-4); font-size: 14.5px; max-width: 38ch; }
.why__card--red { background: var(--red); border-color: var(--red); position: relative; overflow: hidden; }
.why__card--red p { color: var(--white); }
.why__meter { position: absolute; right: 24px; top: 24px; display: flex; align-items: flex-end; gap: 3px; height: 30px; }
.why__meter i { width: 6px; background: var(--white); border-radius: 2px; opacity: .9; }
.why__meter i:nth-child(1) { height: 20%; } .why__meter i:nth-child(2) { height: 40%; } .why__meter i:nth-child(3) { height: 60%; } .why__meter i:nth-child(4) { height: 80%; } .why__meter i:nth-child(5) { height: 100%; background: var(--ink-1); }

/* founder */
.founder { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.founder__card { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 12px; max-width: 440px; }
.founder__art {
  position: relative; aspect-ratio: 1 / 1; border-radius: var(--r-lg); overflow: hidden;
  background:
    radial-gradient(70% 60% at 30% 25%, rgba(225,29,46,.35), transparent 70%),
    repeating-linear-gradient(0deg, rgba(255,255,255,.035) 0 1px, transparent 1px 28px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 1px, transparent 1px 28px),
    var(--ink-0);
}
.founder__art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.founder__name { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 10px 6px; gap: 12px; }
.founder__name b { font-weight: 500; letter-spacing: -0.02em; }
.founder__name span { font-family: var(--f-mono); font-size: 12px; color: var(--grey-5); }
.founder__copy .h2 { max-width: 22ch; margin-bottom: 24px; }
.founder__copy > p:not(.eyebrow) { color: var(--grey-4); max-width: 54ch; margin: 0 0 32px; }

.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: clamp(40px, 6vw, 72px); }
.fact { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 28px; background: linear-gradient(180deg, var(--ink-2), transparent); }
.fact__k { font-family: var(--f-mono); font-size: 11.5px; color: var(--grey-5); display: flex; align-items: center; gap: 8px; }
.fact__k::before { content: ""; width: 14px; height: 14px; border-radius: 4px; border: 1px solid var(--ink-5); background: linear-gradient(135deg, transparent 50%, var(--red) 50%); }
.fact b { font-weight: 400; font-size: 19px; letter-spacing: -0.025em; line-height: 1.2; }

/* journal */
.journal { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.journal__copy .h2 { margin-bottom: 20px; max-width: 13ch; }
.journal__copy p:not(.eyebrow) { color: #4a4a4a; margin: 0 0 28px; max-width: 38ch; }
.posts__head { display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: 11.5px; color: #77746f; padding-bottom: 14px; }
.posts__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(13,13,13,.14); }
.post {
  position: relative;
  display: grid; grid-template-columns: 40px minmax(0, 1fr) 44px; align-items: center; gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid rgba(13,13,13,.14);
  color: var(--ink-1);
}
.post::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: var(--red); transform: scaleX(0); transform-origin: left;
  transition: transform .6s var(--ease);
}
.post:hover::before, .post:focus-visible::before { transform: scaleX(1); }
.post:focus-visible { outline: none; }
.post__no { font-family: var(--f-mono); font-size: 12px; color: #9a968f; transition: color .3s; }
.post__meta { display: flex; align-items: center; gap: 8px; font-family: var(--f-mono); font-size: 11.5px; color: #77746f; margin-bottom: 6px; }
.post__meta i { width: 3px; height: 3px; background: currentColor; opacity: .6; }
.post__title { margin: 0; font-size: clamp(17px, 1.55vw, 21px); font-weight: 400; line-height: 1.25; letter-spacing: -0.025em; text-wrap: pretty; max-width: 30ch; transition: transform .5s var(--ease); }
.post__go {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; font-size: 15px;
  border: 1px solid rgba(13,13,13,.16);
  transition: background .3s, border-color .3s, color .3s;
}
.post__go svg { transition: transform .5s var(--ease); }
.post:hover .post__no, .post:focus-visible .post__no { color: var(--red-deep); }
.post:hover .post__title, .post:focus-visible .post__title { transform: translateX(6px); }
.post:hover .post__go, .post:focus-visible .post__go { background: var(--red); border-color: var(--red); color: var(--white); }
.post:hover .post__go svg, .post:focus-visible .post__go svg { transform: rotate(45deg); }

/* contact */
.contact { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.contact__copy .h2 { margin-bottom: 22px; max-width: 16ch; }
.contact__copy > p:not(.eyebrow) { color: var(--grey-4); max-width: 44ch; margin: 0 0 36px; }
.contact__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.contact__list li { display: grid; grid-template-columns: 90px 1fr; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.contact__list span { font-family: var(--f-mono); font-size: 12px; color: var(--grey-5); padding-top: 3px; }
.contact__list a { transition: color .25s; }
.contact__list a:hover { color: var(--red-ink); }

.contact__board {
  position: relative;
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
  padding: clamp(56px, 7vw, 88px) clamp(16px, 4vw, 56px);
  background:
    radial-gradient(circle, rgba(255,255,255,.12) 1px, transparent 1.4px) 0 0 / 22px 22px,
    var(--ink-1);
}
.floaty {
  position: absolute; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; padding: 6px 14px 6px 6px; border-radius: 999px;
  background: var(--ink-3); border: 1px solid var(--line-2);
  box-shadow: 0 10px 30px -10px rgba(0,0,0,.6);
  animation: bob 6s ease-in-out infinite;
}
.floaty--1 { left: 6%; top: 18px; }
.floaty--2 { right: 5%; top: 30%; animation-delay: -2s; background: var(--white); color: var(--ink-1); }
.floaty--3 { left: 2%; bottom: 20px; animation-delay: -4s; }
.av { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 600; background: var(--ink-5); }
.av--red { background: var(--red); color: var(--white); }
.av--light { background: var(--white); color: var(--red); }
@keyframes bob { 50% { transform: translateY(-8px); } }

.form { position: relative; z-index: 1; background: var(--ink-2); border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: clamp(20px, 3vw, 32px); display: flex; flex-direction: column; gap: 16px; max-width: 560px; margin: 0 auto; }
.form__chips { border: 0; padding: 0; margin: 0 0 4px; display: flex; flex-wrap: wrap; gap: 6px; }
.form__chips legend { font-size: 13px; color: var(--grey-4); margin-bottom: 10px; padding: 0; }
.form__chips label { cursor: pointer; }
.form__chips input { position: absolute; opacity: 0; pointer-events: none; }
.form__chips span { display: inline-block; font-size: 13px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--grey-3); transition: all .2s; user-select: none; }
.form__chips label:hover span { border-color: var(--grey-5); color: var(--white); }
.form__chips input:checked + span { background: var(--red); border-color: var(--red); color: var(--white); }
.form__chips input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 2px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: 13px; color: var(--grey-4); }
.field i { font-style: normal; color: var(--grey-5); font-family: var(--f-mono); font-size: 11px; margin-left: 4px; }
.field input, .field textarea {
  font: inherit; font-size: 15px; color: var(--white);
  background: var(--ink-1); border: 1px solid var(--line-2); border-radius: var(--r-sm);
  padding: 12px 14px; resize: vertical; min-height: 46px;
  transition: border-color .2s, box-shadow .2s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-5); }
.field input:hover, .field textarea:hover { border-color: var(--ink-5); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(225,29,46,.22); }
.field.is-bad input, .field.is-bad textarea { border-color: var(--red-ink); }
.form__foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 4px; }
.form__note { margin: 0; font-size: 12.5px; color: var(--grey-5); }
.form__note.is-ok { color: var(--red-ink); }

/* marquee */
.marquee { display: block; margin: clamp(48px, 6vw, 80px) 0 var(--fg); background: var(--red); color: var(--ink-1); overflow: hidden; padding: clamp(18px, 2.6vw, 30px) 0; transition: background .3s; }
.marquee:hover { background: var(--red-deep); color: var(--white); }
.marquee__track { display: flex; align-items: center; gap: clamp(24px, 3vw, 48px); width: max-content; animation: slide 26s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span { font-size: clamp(34px, 5.2vw, 76px); letter-spacing: -0.05em; line-height: 1; white-space: nowrap; }
.marquee__track b { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; font-size: 15px; white-space: nowrap; background: var(--ink-1); color: var(--white); padding: 12px 18px 12px 20px; border-radius: 999px; }
@keyframes slide { to { transform: translateX(-50%); } }

/* footer */
.footer { margin: 0 var(--fg); padding: clamp(56px, 7vw, 96px) 0 28px; background: var(--panel); border-radius: var(--R) var(--R) 0 0; }
.footer__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr) auto; gap: 32px; }
.footer__brand p { color: var(--grey-4); max-width: 28ch; margin: 18px 0 0; font-size: 14.5px; }
.footer__col { display: flex; flex-direction: column; gap: 10px; font-size: 14.5px; }
.footer__col h3 { margin: 0 0 8px; font-family: var(--f-mono); font-size: 12px; font-weight: 400; color: var(--grey-5); }
.footer__col a, .footer__col span { color: var(--grey-3); width: fit-content; }
.footer__col a:hover { color: var(--white); }
.footer__social { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.pill { font-size: 13px; padding: 8px 16px; border-radius: 999px; font-weight: 500; transition: transform .3s var(--ease); }
.pill:hover { transform: translateX(-4px); }
.pill--red { background: var(--red); color: var(--white); }
.pill--white { background: var(--white); color: var(--ink-1); }
.pill--grey { background: var(--ink-4); color: var(--white); }
.footer__word { font-family: var(--f-logo); font-size: clamp(84px, 24vw, 420px); letter-spacing: .01em; line-height: .78; color: var(--ink-3); margin: clamp(48px, 7vw, 96px) 0 24px; user-select: none; white-space: nowrap; }
.footer__base { display: flex; justify-content: space-between; align-items: center; gap: 16px; border-top: 1px solid var(--line); padding-top: 20px; font-size: 13px; color: var(--grey-5); }
.totop { display: inline-flex; align-items: center; gap: 6px; color: var(--grey-3); }
.totop:hover { color: var(--white); }

/* testimonials: two columns drift in opposite directions while the
   section is in view (desktop: vertical, smaller screens: horizontal) */
.testi__panel { overflow: hidden; }
.testi__grid { position: relative; display: grid; grid-template-columns: minmax(0, .38fr) minmax(0, 1fr); align-items: center; min-height: 30rem; }
.testi__copy .h2 { max-width: 11ch; margin-bottom: 18px; }
.testi__copy p:not(.eyebrow) { margin: 0; max-width: 28ch; color: #4a4a4a; }
.testi__cols { position: absolute; top: 0; bottom: 0; right: var(--gut); width: 62%; display: flex; align-items: center; gap: 16px; }
.testi__col { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 16px; will-change: transform; }
.tghost { flex: none; position: relative; overflow: hidden; aspect-ratio: 1 / .78; border-radius: 22px; background: #e7e4df; }
.tghost::after { content: ""; position: absolute; left: 34%; bottom: 0; width: 30%; height: 18%; background: var(--paper); border-radius: 18px 18px 0 0; }
.testi__col:last-child .tghost::after { left: auto; right: 0; top: 0; bottom: auto; width: 28%; height: 24%; border-radius: 0 0 0 18px; }
.tcard { flex: none; margin: 0; padding: 26px 26px 22px; background: var(--white); color: var(--ink-1); border: 1px solid rgba(13,13,13,.12); border-radius: 22px; }
.tcard blockquote { margin: 0 0 22px; }
.tcard p { margin: 0; font-size: clamp(16px, 1.25vw, 18px); line-height: 1.45; letter-spacing: -0.01em; }
.tcard mark { background: var(--red-tint); color: var(--red-deep); padding: 0 .15em; border-radius: 3px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.tcard figcaption { display: flex; align-items: center; gap: 14px; }
.tcard__av { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--ink-1); color: var(--white); font-family: var(--f-mono); font-size: 12px; }
.tcard figcaption b { display: block; font-weight: 400; font-size: 18px; letter-spacing: -0.02em; }
.tcard figcaption i { display: block; font-style: normal; font-size: 13px; color: #77746f; }

/* ==========================================================
   Motion: reveal
   ========================================================== */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0ms); }
[data-reveal].is-in { opacity: 1; transform: none; }
[data-hero] { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0ms); }
.hero__title [data-hero] { opacity: 1; transform: translateY(110%); }
body.is-ready [data-hero] { opacity: 1; transform: none; }

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1100px) {
  .nav__full { display: none; }
  .nav__menu { opacity: 1; transform: none; visibility: visible; }
  .services { grid-template-columns: repeat(2, 1fr); }
  .svc { min-height: 300px; }
  .why { grid-template-columns: repeat(2, 1fr); }
  .why__title { grid-column: 1 / -1; }
  .footer__grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .footer__social { grid-column: 1 / -1; flex-direction: row; align-items: center; }
}

@media (max-width: 860px) {
  .hero__aside { flex-direction: column; align-items: flex-start; gap: 24px; margin-top: 24px; }
  .stage { aspect-ratio: 4 / 3.6; --R: 20px; }
  .stage__shape .s1 { top: 30%; }
  .stage__shape .s2 { left: 30%; top: 12%; }
  .stage__shape .s3 { display: none; }
  .stage__shape .f1 { left: calc(30% - var(--R)); top: calc(30% - var(--R)); }
  .stage__shape .f2 { display: none; }
  .stage__tag--l { display: none; }
  .stage__tag--r { top: 3%; }
  .device { width: 84%; transform: translateX(-50%); bottom: 8%; }
  .clients { flex-direction: column; align-items: flex-start; gap: 18px; }
  .clients ul { flex-wrap: wrap; justify-content: flex-start; gap: 14px 26px; }
  .clients__label br { display: none; }
  .approach, .founder, .journal, .contact { grid-template-columns: 1fr; }
  .steps { height: 320px; }
  .work__head { flex-direction: column; align-items: flex-start; }
  .showcase { grid-template-columns: 1fr; }
  .showcase__stage { order: -1; aspect-ratio: 4 / 3.5; min-height: 0; }
  .sc-window { top: 19%; }
  .sc-shape .s2 { left: 40%; }
  .sc-shape b { left: calc(40% - var(--R)); }
  .showcase__caption { margin-top: 0; }
  .founder__card { max-width: 380px; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .services__foot { flex-direction: column; align-items: flex-start; gap: 16px; }
}

@media (max-width: 991px) {
  .testi__grid { display: block; min-height: 0; }
  .testi__copy { margin-bottom: 40px; }
  .testi__cols { position: relative; right: auto; width: auto; flex-direction: column; align-items: center; }
  .testi__col { flex: none; flex-direction: row; width: max-content; }
  .tghost { width: 16rem; aspect-ratio: auto; align-self: stretch; }
  .tcard { width: min(30rem, 78vw); }
}

@media (max-width: 767px) {
  .notch { height: 48px; }
  .notch__l { flex-basis: 70%; }
}

@media (max-width: 560px) {
  .hide-sm { display: none; }
  .services, .why { grid-template-columns: 1fr; }
  .svc { min-height: 0; }
  .svc h3 { margin-top: 32px; min-height: 0; }
  .why__card { min-height: 0; }
  .facts { grid-template-columns: 1fr 1fr; gap: 8px; }
  .fact { padding: 16px; gap: 18px; }
  .fact b { font-size: 16px; }
  .step { padding: 10px 7px; }
  .step em { display: none; }
  .step__no { font-size: 10px; }
  .step b { font-size: 12px; writing-mode: vertical-rl; transform: rotate(180deg); margin-top: auto; align-self: flex-start; }
  .form__row { grid-template-columns: 1fr; }
  .sc-meta { display: none; }
  .sc-window { left: 5%; right: 5%; top: 9%; }
  .sc-window__bar { height: 30px; }
  .sc-url { padding: 2px 14px; transform: none; }
  .sc-item { padding: 16px 0; grid-template-columns: 28px minmax(0, 1fr) 32px; gap: 12px; }
  .sc-item__go { width: 32px; height: 32px; }
  .post { grid-template-columns: 26px minmax(0, 1fr) 36px; gap: 12px; padding: 18px 0; }
  .post__go { width: 36px; height: 36px; }
  .floaty--2 { display: none; }
  .contact__board { padding: 64px 12px 72px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__col:last-of-type { grid-column: 1 / -1; }
  .footer__base { flex-direction: column; align-items: flex-start; }
  .loader__meta { grid-column: 1; grid-row: 3; align-items: flex-start; margin-top: 16px; }
  .loader { grid-template-rows: 1fr auto auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0ms !important; }
  html { scroll-behavior: auto; }
}

/* ==========================================================
   Blog
   Index: a dark head panel whose topic staircase filters the
   article cards on the paper panel below. Article: dark head
   ending in a red stepped band, then the text on paper with a
   sticky contents list.
   ========================================================== */
.nav__links a[aria-current="page"] { color: var(--white); background: var(--ink-3); }
.nav__sheet > a[aria-current="page"] { background: var(--ink-3); }
.nw { white-space: nowrap; }

.bhero { padding: var(--fg) var(--fg) 0; }
.bhero__panel {
  position: relative; overflow: hidden;
  background: var(--panel);
  border-radius: var(--R);
  padding: calc(72px + clamp(24px, 4vw, 48px)) 0 clamp(48px, 6vw, 80px);
}
.crumbs { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 clamp(28px, 4vw, 44px); padding: 0; font-family: var(--f-mono); font-size: 12px; color: var(--grey-5); }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--ink-5); }
.crumbs a { color: var(--grey-3); transition: color .25s; }
.crumbs a:hover { color: var(--white); }
.crumbs [aria-current] { color: var(--grey-4); }

/* index head */
.bindex { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 80px); align-items: end; }
.bindex__title { margin: 0; font-size: clamp(42px, 6.2vw, 92px); line-height: .95; letter-spacing: -0.055em; font-weight: 400; max-width: 13ch; text-wrap: balance; }
.bindex__title em { font-style: normal; color: var(--red); }
.bindex__copy > p:not(.eyebrow) { margin: 28px 0 0; max-width: 46ch; color: var(--grey-3); font-size: 16.5px; }
.bindex__note { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 22px; font-family: var(--f-mono); font-size: 12px; color: var(--grey-5); }
.bindex__note a { color: var(--grey-3); text-decoration: underline; text-decoration-color: var(--ink-5); text-underline-offset: 3px; }
.bindex__note a:hover { color: var(--white); }

/* topic staircase: the approach steps, as filter buttons on a dark panel */
.steps--topics { height: clamp(280px, 26vw, 360px); }
.steps--topics .step { width: 100%; text-align: left; background: var(--ink-2); border: 1px solid var(--line); cursor: pointer; transition: transform .9s var(--ease), background .3s, border-color .3s; }
.steps--topics .step__no { font-size: clamp(26px, 2.6vw, 38px); font-family: var(--f-sans); font-weight: 300; letter-spacing: -0.04em; line-height: 1; color: var(--white); }
.steps--topics .step b { margin-top: auto; font-size: clamp(12.5px, 1.1vw, 15px); line-height: 1.2; }
.steps--topics .step em { margin-top: 2px; }
.steps--topics .step:hover { background: var(--ink-3); border-color: var(--line-2); }
.steps--topics .step:hover em { opacity: 1; transform: none; }
.steps--topics .step.is-active { background: var(--red); border-color: var(--red); }
.steps--topics .step.is-active em { opacity: 1; transform: none; color: var(--white); }
.steps--topics .step:focus-visible { outline-offset: 3px; }

/* cover art: a red staircase on a ruled dark tile, drawn per article */
.cover { position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 10; border-radius: 14px; background: var(--ink-0); isolation: isolate; }
.cover svg { position: absolute; inset: 0; width: 100%; height: 100%; stroke: none; }
.cover__steps { transition: transform .7s var(--ease); }
.cover__tag { position: absolute; left: 14px; top: 14px; z-index: 1; display: inline-flex; align-items: center; gap: 9px; font-family: var(--f-mono); font-size: 11.5px; color: var(--grey-3); }
.cover__tag b { font-weight: 400; font-size: 10.5px; padding: 3px 7px; border-radius: 6px; background: var(--ink-3); color: var(--red-ink); }
.cover--lg { aspect-ratio: 4 / 3; border-radius: var(--r-lg); }
.cover--lg .cover__tag { left: 20px; top: 20px; font-size: 12px; }

/* listing */
.blist { padding-top: clamp(16px, 2vw, 24px); }
.feature { margin-bottom: clamp(40px, 5vw, 64px); }
.feature__link { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 56px); align-items: center; padding: 12px; background: var(--white); border: 1px solid rgba(13,13,13,.1); border-radius: var(--r-xl); color: var(--ink-1); transition: box-shadow .4s, transform .6s var(--ease); }
.feature__body { display: flex; flex-direction: column; align-items: flex-start; padding: 12px clamp(8px, 2vw, 28px) 12px 0; }
.feature__kicker { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-mono); font-size: 12px; color: var(--ink-5); padding: 6px 12px 6px 10px; border: 1px solid rgba(13,13,13,.14); border-radius: 999px; margin-bottom: 22px; }
.feature__title { margin: 10px 0 14px; font-size: clamp(28px, 3.2vw, 46px); line-height: 1.04; letter-spacing: -0.04em; font-weight: 400; text-wrap: balance; }
.feature__text { color: #4a4a4a; max-width: 46ch; margin-bottom: 28px; }
.feature__link:hover, .card:hover { box-shadow: 0 30px 60px -36px rgba(13,13,13,.45); }
.feature__link:hover .cover__steps, .card:hover .cover__steps, .card:focus-visible .cover__steps { transform: translateY(-5%); }

.filter-status { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 14px; margin-bottom: 20px; border-bottom: 1px solid rgba(13,13,13,.14); font-family: var(--f-mono); font-size: 12px; color: #77746f; }
.filter-status button { font-family: var(--f-mono); font-size: 12px; color: var(--red-deep); text-decoration: underline; text-underline-offset: 3px; }

.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cards > li[hidden] { display: none; }
.card { height: 100%; display: flex; flex-direction: column; padding: 10px; background: var(--white); border: 1px solid rgba(13,13,13,.1); border-radius: var(--r-lg); color: var(--ink-1); transition: box-shadow .4s, transform .6s var(--ease); }
.card__body { display: flex; flex-direction: column; padding: 18px 10px 0; flex: 1; }
.card__meta { display: flex; align-items: center; gap: 8px; font-family: var(--f-mono); font-size: 11.5px; color: #77746f; }
.card__meta i { width: 3px; height: 3px; background: currentColor; opacity: .6; }
.card__title { margin: 10px 0 10px; font-size: clamp(19px, 1.6vw, 22px); line-height: 1.2; letter-spacing: -0.025em; font-weight: 400; text-wrap: pretty; }
.card__text { color: #5a5854; font-size: 14.5px; line-height: 1.5; }
.card__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; padding: 14px 10px 6px; border-top: 1px solid rgba(13,13,13,.1); font-family: var(--f-mono); font-size: 11.5px; color: #77746f; }
.card__go { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; color: var(--ink-1); border: 1px solid rgba(13,13,13,.16); transition: background .3s, border-color .3s, color .3s; }
.card__go svg { transition: transform .5s var(--ease); }
.card:hover .card__go, .card:focus-visible .card__go { background: var(--red); border-color: var(--red); color: var(--white); }
.card:hover .card__go svg, .card:focus-visible .card__go svg { transform: rotate(45deg); }
.card:focus-visible, .feature__link:focus-visible { outline-offset: 4px; border-radius: var(--r-lg); }

/* article head: ends in a red stepped band */
.phead__title { margin: 0; max-width: 21ch; font-size: clamp(38px, 5.6vw, 80px); line-height: .98; letter-spacing: -0.05em; font-weight: 400; text-wrap: balance; }
.phead__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px clamp(20px, 3vw, 40px); margin-top: clamp(28px, 4vw, 44px); }
.byline { display: inline-flex; align-items: center; gap: 12px; }
.byline__av { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--ink-3); border: 1px solid var(--line-2); font-size: 15px; letter-spacing: -0.04em; }
.byline b { display: block; font-weight: 500; font-size: 15px; letter-spacing: -0.01em; }
.byline i { display: block; font-style: normal; font-family: var(--f-mono); font-size: 11.5px; color: var(--grey-5); }
.phead__facts { display: flex; gap: clamp(20px, 3vw, 40px); margin: 0; padding-left: clamp(20px, 3vw, 40px); border-left: 1px solid var(--line-2); }
.phead__facts div { display: flex; flex-direction: column; gap: 2px; }
.phead__facts dt { font-family: var(--f-mono); font-size: 11.5px; color: var(--grey-5); }
.phead__facts dd { margin: 0; font-size: 15px; }
.phead__meta .btn { margin-left: auto; }

.pstairs { position: relative; height: clamp(84px, 10vw, 150px); margin: clamp(44px, 6vw, 80px) 0 calc(-1 * clamp(48px, 6vw, 80px)); --R: var(--r-xl); }
.pstairs i { position: absolute; bottom: 0; background: var(--red); border-radius: var(--R) var(--R) 0 0; }
.pstairs .s1 { left: 0; right: 0; top: 56%; }
.pstairs .s2 { left: 34%; right: 0; top: 28%; }
.pstairs .s3 { left: 67%; right: 0; top: 0; }
.pstairs .s3::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.07) 0 1px, transparent 1px 48px);
}
.pstairs > b { position: absolute; width: var(--R); height: var(--R); background: radial-gradient(circle at 0 0, transparent calc(var(--R) - .5px), var(--red) var(--R)); }
.pstairs .f1 { left: calc(34% - var(--R)); top: calc(56% - var(--R)); }
.pstairs .f2 { left: calc(67% - var(--R)); top: calc(28% - var(--R)); }
.pstairs__tag { position: absolute; z-index: 1; display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-mono); font-size: 11.5px; color: var(--white); }
.pstairs__tag--l { left: var(--gut); bottom: 14%; }
.pstairs__tag--r { right: var(--gut); top: 18%; background: var(--ink-1); padding: 7px 12px 7px 8px; border-radius: 999px; }
.pstairs__tag--r span { background: var(--red); padding: 2px 8px; border-radius: 999px; }
.pstairs__tag--l b { font-weight: 400; padding: 3px 7px; border-radius: 6px; background: var(--ink-1); color: var(--red-ink); }

/* article body */
.apanel { padding-top: clamp(48px, 6vw, 88px); }
.article { display: grid; grid-template-columns: minmax(0, 250px) minmax(0, 720px); justify-content: center; gap: clamp(40px, 6vw, 96px); align-items: start; }
.article__side { position: sticky; top: 104px; display: flex; flex-direction: column; gap: 16px; }

.toc { border-top: 1px solid rgba(13,13,13,.14); }
.toc summary { list-style: none; display: flex; align-items: center; justify-content: space-between; padding: 14px 0 12px; font-family: var(--f-mono); font-size: 12px; color: #77746f; cursor: pointer; }
.toc summary::-webkit-details-marker { display: none; }
.toc summary::after { content: ""; width: 8px; height: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .3s var(--ease); }
.toc[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.toc ol { list-style: none; margin: 0; padding: 0 0 8px; display: grid; gap: 2px; max-height: calc(100vh - 340px); overflow-y: auto; }
.toc a { position: relative; display: block; padding: 6px 0 6px 18px; font-size: 14px; line-height: 1.35; color: #6b6964; transition: color .25s; }
.toc a::before { content: ""; position: absolute; left: 0; top: 12px; width: 6px; height: 6px; border-radius: 1.5px; background: rgba(13,13,13,.18); transition: background .25s, transform .3s var(--e-back); }
.toc a:hover { color: var(--ink-1); }
.toc a.is-current { color: var(--ink-1); }
.toc a.is-current::before { background: var(--red); transform: scale(1.25); }

.sidecta { padding: 20px; border-radius: var(--r-lg); background: var(--ink-1); color: var(--white); }
.sidecta p { margin: 0 0 16px; font-size: 16px; line-height: 1.35; letter-spacing: -0.015em; }

.progress { position: fixed; top: 0; left: 0; right: 0; z-index: 60; height: 3px; pointer-events: none; }
.progress i { display: block; height: 100%; background: var(--red); transform: scaleX(0); transform-origin: left; }

/* prose */
.prose { min-width: 0; color: #2b2b2b; font-size: 18px; line-height: 1.7; }
.prose > * { margin: 0 0 1.1em; }
.prose > :last-child { margin-bottom: 0; }
.prose .lead { font-size: clamp(20px, 1.9vw, 24px); line-height: 1.5; letter-spacing: -0.015em; color: var(--ink-1); }
.prose h2 { margin: 2.3em 0 .65em; font-size: clamp(27px, 2.6vw, 36px); line-height: 1.12; letter-spacing: -0.035em; font-weight: 400; color: var(--ink-1); text-wrap: balance; scroll-margin-top: 110px; }
.prose h3 { margin: 1.7em 0 .45em; font-size: 21px; line-height: 1.3; letter-spacing: -0.02em; font-weight: 500; color: var(--ink-1); scroll-margin-top: 110px; }
.prose h2 + h3 { margin-top: .8em; }
.prose a { color: var(--ink-1); text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 1.5px; text-underline-offset: 3px; transition: color .2s; }
.prose a:hover { color: var(--red-deep); }
.prose strong { font-weight: 600; color: var(--ink-1); }
.prose code { font-family: var(--f-mono); font-size: .86em; padding: .1em .4em; border-radius: 5px; background: var(--paper-2); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .35em 0; padding-left: .2em; }
.prose ul > li::marker { content: "■  "; color: var(--red); font-size: .7em; }
.prose .takeaways li::marker { content: none; }
.prose ol > li::marker { font-family: var(--f-mono); font-size: .85em; color: var(--red-deep); }

.takeaways { position: relative; margin: 2em 0 2.2em !important; padding: clamp(22px, 3vw, 32px); border-radius: var(--r-lg); background: var(--ink-1); color: var(--grey-2); }
.takeaways__label { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; font-family: var(--f-mono); font-size: 12px; color: var(--grey-4); }
.takeaways ul { list-style: none; margin: 0; padding: 0; }
.takeaways li { position: relative; margin: 0; padding: 12px 0 12px 26px; border-top: 1px solid var(--line); font-size: 16.5px; line-height: 1.55; }
.takeaways li:first-child { border-top: 0; padding-top: 4px; }
.takeaways li::before { content: ""; position: absolute; left: 0; top: 21px; width: 8px; height: 8px; border-radius: 2px; background: var(--red); }
.takeaways li:first-child::before { top: 13px; }
.takeaways strong, .takeaways a { color: var(--white); }

.note { padding: 18px 22px; border-radius: var(--r-md); background: var(--white); border: 1px solid rgba(13,13,13,.1); border-left: 3px solid var(--red); font-size: 16.5px; }
.note p { margin: 0 0 .6em; }
.note > :last-child { margin-bottom: 0; }

.table-wrap { overflow-x: auto; margin: 1.6em 0 1.8em !important; border: 1px solid rgba(13,13,13,.12); border-radius: var(--r-md); background: var(--white); }
.table-wrap table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 15px; line-height: 1.45; }
.table-wrap th { text-align: left; padding: 12px 16px; font-family: var(--f-mono); font-size: 11.5px; font-weight: 400; color: #5a5854; background: var(--paper-2); white-space: nowrap; }
.table-wrap td { padding: 13px 16px; border-top: 1px solid rgba(13,13,13,.09); vertical-align: top; }
.table-wrap td:first-child { font-weight: 500; color: var(--ink-1); }
.table-wrap tbody tr:hover td { background: #faf9f7; }

.faq { margin-top: 2.6em !important; }
.faq h2 { margin-top: 0; }
.faq details { border-top: 1px solid rgba(13,13,13,.14); }
.faq details:last-child { border-bottom: 1px solid rgba(13,13,13,.14); }
.faq summary { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr) 32px; align-items: center; gap: 16px; padding: 18px 0; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { margin: 0; font-size: 19px; font-weight: 400; letter-spacing: -0.02em; }
.faq summary i { position: relative; width: 32px; height: 32px; border-radius: 50%; border: 1px solid rgba(13,13,13,.16); transition: background .3s, border-color .3s, transform .4s var(--ease); }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.5px; margin: -.75px 0 0 -5.5px; background: currentColor; }
.faq summary i::after { transform: rotate(90deg); }
.faq summary:hover i { border-color: var(--ink-1); }
.faq details[open] summary i { transform: rotate(45deg); background: var(--red); border-color: var(--red); color: var(--white); }
.faq .faq__a { padding: 0 48px 20px 0; color: #3d3d3d; font-size: 17px; }
.faq .faq__a > :last-child { margin-bottom: 0; }

.sources { margin-top: 2.6em !important; padding-top: 1.6em; border-top: 1px solid rgba(13,13,13,.14); }
.sources h2 { margin: 0 0 .8em; font-size: 15px; font-family: var(--f-mono); font-weight: 400; letter-spacing: 0; color: #77746f; }
.sources ol { margin: 0; padding-left: 1.6em; font-size: 14.5px; line-height: 1.5; color: #5a5854; }
.sources li { margin: .5em 0; overflow-wrap: anywhere; }
.sources a { color: #3d3d3d; }

.endcta { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 20px 32px; margin-top: 3em !important; padding: clamp(24px, 3vw, 36px); border-radius: var(--r-xl); background: var(--ink-1); color: var(--white); position: relative; overflow: hidden; }
.endcta h2 { margin: 0 0 8px; font-size: clamp(24px, 2.4vw, 32px); line-height: 1.1; letter-spacing: -0.035em; font-weight: 400; color: var(--white); max-width: 18ch; }
.endcta p { margin: 0; color: var(--grey-4); font-size: 15.5px; line-height: 1.5; max-width: 44ch; }
.endcta .why__meter { position: static; justify-self: end; grid-column: 2; grid-row: 1; }

.author { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 18px; align-items: start; margin-top: 2.4em !important; padding: 22px; border-radius: var(--r-lg); background: var(--white); border: 1px solid rgba(13,13,13,.1); }
.author__av { width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: end start; padding: 8px 10px; background: radial-gradient(70% 60% at 30% 25%, rgba(225,29,46,.4), transparent 70%), var(--ink-0); color: var(--white); font-size: 22px; letter-spacing: -0.06em; font-weight: 300; }
.author b { display: block; font-size: 17px; font-weight: 500; letter-spacing: -0.015em; color: var(--ink-1); }
.author span { display: block; font-family: var(--f-mono); font-size: 11.5px; color: #77746f; margin: 2px 0 8px; }
.author p { margin: 0; font-size: 15.5px; line-height: 1.55; color: #4a4a4a; }

.related { margin-top: clamp(64px, 8vw, 112px); padding-top: clamp(28px, 3vw, 40px); border-top: 1px solid rgba(13,13,13,.14); }
.related__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.related__head .h2 { max-width: 16ch; }

@media (max-width: 1100px) {
  .article { grid-template-columns: minmax(0, 720px); }
  .article__side { position: static; }
  .toc { border: 1px solid rgba(13,13,13,.14); border-radius: var(--r-md); padding: 0 16px; background: var(--white); }
  .toc ol { max-height: none; padding-bottom: 14px; }
  .sidecta { display: none; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1101px) {
  .toc summary { cursor: default; }
  .toc summary::after { display: none; }
}
@media (max-width: 860px) {
  .bindex { grid-template-columns: 1fr; }
  .feature__link { grid-template-columns: 1fr; }
  .feature__body { padding: 8px 10px 14px; }
  .phead__facts { padding-left: 0; border-left: 0; }
  .phead__meta .btn { margin-left: 0; }
  .pstairs .s2 { left: 28%; } .pstairs .f1 { left: calc(28% - var(--R)); }
  .pstairs .s3 { left: 62%; } .pstairs .f2 { left: calc(62% - var(--R)); }
  .endcta { grid-template-columns: 1fr; }
  .endcta .why__meter { display: none; }
}
@media (max-width: 560px) {
  .cards { grid-template-columns: 1fr; }
  .steps--topics { height: 290px; gap: 6px; }
  .steps--topics .step { --h: calc(46% + var(--n) * 13.5%); padding: 10px 8px; }
  .steps--topics .step__no { font-size: 22px; }
  .steps--topics .step b { font-size: 12px; }
  .prose { font-size: 17px; }
  .prose h2 { font-size: 26px; }
  .faq .faq__a { padding-right: 0; }
  .pstairs__tag--l { display: none; }
  .related__head { flex-direction: column; align-items: flex-start; }
}
