@charset "UTF-8";
/* ============================================================================
   souptik.site - design system
   Editorial ink/paper, not another dark SaaS template.
   Single stylesheet. Animation is CSS-first; JS only orchestrates.
   ========================================================================= */

/* ── Tokens ──────────────────────────────────────────────────────────── */
:root {
  /* Ink scale - warm black, not blue-black */
  --ink-900: #0a0907;
  --ink-850: #100e0b;
  --ink-800: #16130f;
  --ink-700: #1f1b16;
  --ink-600: #2c2620;
  --ink-500: #453d34;

  /* Paper scale - bone, not white */
  --paper-100: #faf8f3;
  --paper-200: #f2eee4;
  --paper-300: #e7e1d3;
  --paper-400: #d6cdb9;

  /* Signal */
  --flame: #ff4a17;
  --flame-lo: #e33c0c;
  --flame-hi: #ff7a4d;
  --ultra: #3a2fd8;
  --moss: #5c7a3f;

  /* Semantic - reassigned per surface below */
  --bg: var(--ink-900);
  --bg-raise: var(--ink-850);
  --bg-sink: #070605;
  --fg: var(--paper-100);
  --fg-dim: #9d958a;
  --fg-faint: #6a635a;
  --rule: rgba(250, 248, 243, 0.12);
  --rule-soft: rgba(250, 248, 243, 0.07);
  --accent: var(--flame);

  /* Type - editorial serif for authority, clean grotesque for text.
     Deliberately not monospace anywhere: labels are tracked uppercase sans. */
  --display: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --body: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --label: var(--body);

  /* Archivo carries a width axis; 102 gives headlines a touch more authority */
  --display-axes: "wdth" 102;

  /* Fluid type scale */
  --t-label: clamp(0.66rem, 0.6rem + 0.22vw, 0.75rem);
  --t-sm: clamp(0.86rem, 0.82rem + 0.18vw, 0.94rem);
  --t-base: clamp(1rem, 0.95rem + 0.24vw, 1.1rem);
  --t-lead: clamp(1.12rem, 1.02rem + 0.5vw, 1.38rem);
  --t-h4: clamp(1.15rem, 1.05rem + 0.5vw, 1.4rem);
  --t-h3: clamp(1.45rem, 1.2rem + 1.15vw, 2.15rem);
  --t-h2: clamp(2rem, 1.4rem + 2.9vw, 4rem);
  --t-h1: clamp(2.4rem, 1.6rem + 3.8vw, 4.9rem);
  --t-mega: clamp(3.4rem, 1.2rem + 9.4vw, 11rem);

  /* Space */
  --gut: clamp(1.15rem, 0.7rem + 2.1vw, 2.75rem);
  --sec: clamp(4.5rem, 3rem + 7vw, 9.5rem);
  --max: 78rem;
  --max-wide: 92rem;
  --max-read: 40rem;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --dur: 0.6s;

  --radius: 2px;
  --radius-lg: 4px;
}

/* Paper surface - inverts the semantic tokens */
.surface-paper {
  --bg: var(--paper-200);
  --bg-raise: var(--paper-100);
  --bg-sink: var(--paper-300);
  --fg: var(--ink-900);
  --fg-dim: #5e564b;
  --fg-faint: #8b8275;
  --rule: rgba(10, 9, 7, 0.16);
  --rule-soft: rgba(10, 9, 7, 0.08);
  background: var(--bg);
  color: var(--fg);
}
.surface-ink {
  --bg: var(--ink-900);
  --bg-raise: var(--ink-850);
  --bg-sink: #070605;
  --fg: var(--paper-100);
  --fg-dim: #9d958a;
  --fg-faint: #6a635a;
  --rule: rgba(250, 248, 243, 0.12);
  --rule-soft: rgba(250, 248, 243, 0.07);
  background: var(--bg);
  color: var(--fg);
}

/* ── Reset ───────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  background: var(--ink-900);
  color: var(--paper-100);
  font-family: var(--body);
  font-size: var(--t-base);
  line-height: 1.6;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }

:focus-visible {
  outline: 2px solid var(--flame);
  outline-offset: 3px;
  border-radius: 1px;
}

::selection { background: var(--flame); color: #fff; }

/* ── Typography primitives ───────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.025em;
  font-variation-settings: var(--display-axes);
  text-wrap: balance;
}
h1 { line-height: 0.95; letter-spacing: -0.038em; font-weight: 800; }
h2 { letter-spacing: -0.032em; font-weight: 700; }

.label {
  font-family: var(--label);
  font-size: var(--t-label);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.lead {
  font-size: var(--t-lead);
  line-height: 1.5;
  color: var(--fg-dim);
  text-wrap: pretty;
}

.prose p { margin-bottom: 1.1em; text-wrap: pretty; color: var(--fg-dim); }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--fg); font-weight: 600; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

.flame { color: var(--flame); }

/* Accent underline that draws on scroll */
.mark-under {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}
.mark-under::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0.06em;
  width: 100%; height: 0.1em;
  background: var(--flame);
  transform: scaleX(var(--draw, 0));
  transform-origin: left;
  transition: transform 0.9s var(--ease) 0.2s;
}
.is-in .mark-under::after { --draw: 1; }

/* ── Layout ──────────────────────────────────────────────────────────── */
.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gut);
}
.wrap-wide { max-width: var(--max-wide); }
.wrap-read { max-width: var(--max-read); }

.section { padding-block: var(--sec); position: relative; }
.section--tight { padding-block: calc(var(--sec) * 0.6); }

/* Below-the-fold sections skip layout work until near the viewport */
.section--defer {
  content-visibility: auto;
  contain-intrinsic-size: auto 600px;
}

.rule { height: 1px; background: var(--rule); border: 0; }

/* Section heading block: tracked label + display title */
.head { margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.head__eyebrow {
  display: flex; align-items: center; gap: 0.75rem;
  color: var(--accent);
  margin-bottom: 1.5rem;
}
.head__eyebrow::before {
  content: "";
  width: 1.75rem; height: 1px;
  background: currentColor;
  flex: none;
}
.head__title { font-size: var(--t-h2); max-width: 20ch; }
.head__sub { margin-top: 1.4rem; max-width: 52ch; }

.head--center { text-align: center; }
.head--center .head__eyebrow { justify-content: center; }
.head--center .head__title,
.head--center .head__sub { margin-inline: auto; }

/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn {
  --btn-bg: var(--flame);
  --btn-fg: #fff;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.7rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-bg);
  border-radius: 100px;
  font-family: var(--body);
  font-size: var(--t-sm);
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
  will-change: transform;
}
.btn::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--flame-lo);
  transform: translateY(101%);
  transition: transform 0.45s var(--ease);
  z-index: -1;
}
.btn:hover::before { transform: translateY(0); }
.btn:hover { box-shadow: 0 0.75rem 2rem -0.5rem rgba(255, 74, 23, 0.55); }
.btn:active { transform: scale(0.97); }

.btn__arrow { transition: transform 0.4s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(3px); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--fg);
  border-color: var(--rule);
}
.btn--ghost::before { background: var(--fg); }
.btn--ghost:hover { color: var(--bg); box-shadow: none; }
.btn--ghost:hover .btn__arrow { color: var(--bg); }

.btn--lg { padding: 1.15rem 2.2rem; font-size: var(--t-base); }
.btn--block { width: 100%; justify-content: center; }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.85rem; }

/* Text link with sliding rule */
.tlink {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-weight: 600;
  color: var(--accent);
  position: relative;
  padding-bottom: 2px;
}
.tlink::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.45s var(--ease);
}
.tlink:hover::after { transform: scaleX(1); transform-origin: left; }
.tlink svg { transition: transform 0.4s var(--ease); }
.tlink:hover svg { transform: translateX(3px); }

/* ── Scroll reveal ───────────────────────────────────────────────────── */
/* JS adds .is-in; CSS does the work. Anything inside [data-reveal] that
   carries .r staggers via --i. */
[data-reveal] .r,
[data-reveal].r {
  opacity: 0;
  transform: translateY(var(--r-y, 1.6rem));
  transition:
    opacity 0.75s var(--ease) calc(var(--i, 0) * 65ms),
    transform 0.75s var(--ease) calc(var(--i, 0) * 65ms);
}
[data-reveal].is-in .r,
[data-reveal].is-in.r { opacity: 1; transform: none; }

/* Line-by-line display reveal (hero + section titles) */
.lines { display: block; }
.lines .ln { display: block; overflow: hidden; }
.lines .ln > span {
  display: block;
  transform: translateY(105%);
  transition: transform 0.95s var(--ease) calc(var(--i, 0) * 85ms);
}
.is-in .lines .ln > span { transform: none; }

/* Character reveal for the hero word */
.chars span {
  display: inline-block;
  transform: translateY(0.75em) rotate(4deg);
  opacity: 0;
  transition:
    transform 0.7s var(--ease) calc(var(--i) * 26ms),
    opacity 0.7s var(--ease) calc(var(--i) * 26ms);
}
.is-in .chars span { transform: none; opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] .r, .lines .ln > span, .chars span { opacity: 1 !important; transform: none !important; }
}

/* ── Header ──────────────────────────────────────────────────────────── */
.hdr {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: 4.5rem;
  display: flex;
  align-items: center;
  transition: transform 0.45s var(--ease), background 0.35s linear, border-color 0.35s linear;
  border-bottom: 1px solid transparent;
}
.hdr::before {
  content: "";
  position: absolute; inset: 0;
  background: rgba(10, 9, 7, 0.72);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  opacity: 0;
  transition: opacity 0.35s linear;
  z-index: -1;
}
.hdr.is-stuck::before { opacity: 1; }
.hdr.is-stuck { border-bottom-color: rgba(250, 248, 243, 0.1); }
.hdr.is-hidden { transform: translateY(-100%); }

.hdr__in {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; width: 100%;
  max-width: var(--max-wide);
  margin-inline: auto;
  padding-inline: var(--gut);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  font-family: var(--display);
  font-variation-settings: var(--display-axes);
  font-size: 1.16rem;
  line-height: 1;
  color: var(--paper-100);
}
/* Both halves share every metric, so the only difference is colour. */
.brand__n {
  font-weight: 800;
  font-size: inherit;
  line-height: 1;
  letter-spacing: -0.022em;
  font-variation-settings: inherit;
  display: block;
}
.brand__n--accent { color: var(--flame); }
.brand__dot {
  width: 5px; height: 5px;
  flex: none;
  align-self: center;
  margin-left: 0.1em;
  background: var(--flame);
  border-radius: 50%;
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.72); }
}

.nav { display: flex; align-items: center; gap: 2rem; }
.nav a {
  font-size: var(--t-sm);
  font-weight: 500;
  color: rgba(250, 248, 243, 0.6);
  position: relative;
  padding-block: 0.4rem;
  transition: color 0.3s var(--ease);
}
.nav a::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--flame);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.4s var(--ease);
}
.nav a:hover, .nav a[aria-current] { color: var(--paper-100); }
.nav a:hover::after, .nav a[aria-current]::after { transform: scaleX(1); transform-origin: left; }

.hdr__cta { display: flex; align-items: center; gap: 0.75rem; }

.burger {
  display: none;
  width: 2.75rem; height: 2.75rem;
  background: none; border: 1px solid var(--rule);
  border-radius: 100px;
  cursor: pointer;
  position: relative;
}
.burger span {
  position: absolute; left: 50%; top: 50%;
  width: 1.05rem; height: 1.5px;
  background: var(--paper-100);
  border-radius: 2px;
  transition: transform 0.4s var(--ease), opacity 0.25s linear;
}
.burger span:nth-child(1) { transform: translate(-50%, calc(-50% - 4px)); }
.burger span:nth-child(2) { transform: translate(-50%, calc(-50% + 4px)); }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translate(-50%, -50%) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { transform: translate(-50%, -50%) rotate(-45deg); }

/* Mobile drawer */
.drawer {
  position: fixed; inset: 0;
  z-index: 99;
  background: var(--ink-900);
  padding: 6.5rem var(--gut) 2.5rem;
  display: flex; flex-direction: column;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.65s var(--ease);
  overflow-y: auto;
  visibility: hidden;
}
.drawer.is-open { clip-path: inset(0 0 0 0); visibility: visible; }
.drawer__nav { display: flex; flex-direction: column; border-top: 1px solid var(--rule-soft); }
.drawer__nav a {
  font-family: var(--display);
  font-variation-settings: var(--display-axes);
  font-size: clamp(1.6rem, 8vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.022em;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--rule-soft);
  display: flex; align-items: baseline; justify-content: space-between;
  opacity: 0; transform: translateY(1.2rem);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
  transition-delay: calc(var(--i) * 45ms + 0.12s);
}
.drawer.is-open .drawer__nav a { opacity: 1; transform: none; }
.drawer__nav a span { font-family: var(--label); font-size: 0.7rem; color: var(--flame); letter-spacing: 0.1em; }
.drawer__foot { margin-top: auto; padding-top: 2.5rem; display: grid; gap: 1rem; }

@media (max-width: 62rem) {
  .nav, .hdr__cta .btn { display: none; }
  .burger { display: block; }
}

/* Skip link */
.skip {
  position: absolute; left: 0.5rem; top: -4rem;
  z-index: 200;
  background: var(--flame); color: #fff;
  padding: 0.7rem 1.1rem; border-radius: 100px;
  font-size: var(--t-sm); font-weight: 600;
  transition: top 0.25s var(--ease);
}
.skip:focus { top: 0.5rem; }

/* ── Hero ────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: min(100svh, 56rem);
  display: flex;
  align-items: center;
  padding-block: 8rem 4rem;
  overflow: hidden;
  background: var(--ink-900);
}

/* Layered background: grain + slow aurora. Both GPU-only. */
.hero__glow {
  position: absolute;
  inset: -30%;
  background:
    radial-gradient(38rem 32rem at 68% 28%, rgba(255, 74, 23, 0.16), transparent 62%),
    radial-gradient(30rem 26rem at 22% 72%, rgba(58, 47, 216, 0.13), transparent 65%);
  filter: blur(10px);
  animation: drift 26s var(--ease) infinite alternate;
  pointer-events: none;
  will-change: transform;
}
@keyframes drift {
  from { transform: translate3d(-2%, -1%, 0) scale(1); }
  to   { transform: translate3d(3%, 2%, 0) scale(1.1); }
}

.grain {
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Hairline grid columns - the editorial skeleton */
.gridlines {
  position: absolute; inset: 0;
  pointer-events: none;
  max-width: var(--max-wide);
  margin-inline: auto;
  padding-inline: var(--gut);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  opacity: 0.55;
}
.gridlines span { border-left: 1px solid var(--rule-soft); }
.gridlines span:last-child { border-right: 1px solid var(--rule-soft); }
@media (max-width: 48rem) { .gridlines { grid-template-columns: repeat(2, 1fr); } }

.hero__in {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max-wide);
  margin-inline: auto;
  padding-inline: var(--gut);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
@media (max-width: 64rem) {
  .hero__in { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding-block: 7rem 3rem; }
}

.hero__tag {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.42rem 0.9rem 0.42rem 0.55rem;
  border: 1px solid var(--rule);
  border-radius: 100px;
  color: var(--fg-dim);
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
  background: rgba(250, 248, 243, 0.03);
}
.hero__tag i {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--moss);
  box-shadow: 0 0 0 3px rgba(92, 122, 63, 0.22);
  animation: pulse 2.2s var(--ease) infinite;
  flex: none;
}

.hero__h1 {
  font-size: var(--t-h1);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: clamp(1.4rem, 2.6vw, 2rem);
}
.hero__h1 em {
  font-style: normal;
  color: var(--flame);
  font-weight: 800;
}
/* The rotating role line */
.roles {
  display: block;
  font-size: clamp(1.05rem, 0.9rem + 1.1vw, 1.75rem);
  font-family: var(--display);
  font-variation-settings: var(--display-axes);
  font-weight: 700;
  letter-spacing: -0.018em;
  color: var(--fg-dim);
  height: 1.35em;
  overflow: hidden;
  position: relative;
}
.roles ul { position: absolute; inset: 0; animation: roll 12s steps(1) infinite; }
.roles li { height: 1.35em; line-height: 1.35em; }
.roles li b { color: var(--paper-100); font-weight: 700; }
@keyframes roll {
  0%, 24%   { transform: translateY(0); }
  25%, 49%  { transform: translateY(-1.35em); }
  50%, 74%  { transform: translateY(-2.7em); }
  75%, 99%  { transform: translateY(-4.05em); }
}

.hero__lead { max-width: 44ch; margin-bottom: clamp(1.8rem, 3.5vw, 2.6rem); }

/* Spec strip - the data-sheet device that recurs across the site */
.spec {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(7rem, 1fr));
  border-top: 1px solid var(--rule);
  margin-top: clamp(2.5rem, 5vw, 3.75rem);
}
.spec div {
  padding: 1.1rem 1rem 1.1rem 0;
  border-right: 1px solid var(--rule-soft);
}
.spec div:last-child { border-right: 0; }
.spec dt { color: var(--fg-faint); margin-bottom: 0.4rem; }
.spec dd {
  font-family: var(--display);
  font-variation-settings: var(--display-axes);
  font-size: clamp(1.25rem, 1rem + 1vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.022em;
  line-height: 1;
}

/* Portrait */
.hero__fig { position: relative; justify-self: center; width: min(100%, 26rem); }
.hero__portrait {
  position: relative;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--rule);
  background: var(--ink-800);
  isolation: isolate;
}
.hero__portrait img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.06);
  transition: filter 0.8s var(--ease), transform 0.8s var(--ease);
}
.hero__fig:hover .hero__portrait img { filter: grayscale(0) contrast(1); transform: scale(1.035); }

/* Rotating ring of tool marks */
.orbit {
  position: absolute; inset: -9%;
  animation: spin 46s linear infinite;
  pointer-events: none;
}
.orbit__node {
  position: absolute;
  top: 50%; left: 50%;
  width: 3rem; height: 3rem;
  margin: -1.5rem 0 0 -1.5rem;
  display: grid; place-items: center;
  background: var(--ink-850);
  border: 1px solid var(--rule);
  border-radius: 50%;
  transform: rotate(var(--a)) translate(var(--r)) rotate(calc(var(--a) * -1));
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.5);
}
.orbit__node > * { animation: spin-back 46s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spin-back { to { transform: rotate(-360deg); } }
@media (max-width: 30rem) { .orbit { display: none; } }

.hero__scroll {
  position: absolute;
  left: 50%; bottom: 1.75rem;
  transform: translateX(-50%);
  display: grid; justify-items: center; gap: 0.6rem;
  color: var(--fg-faint);
  z-index: 2;
}
.hero__scroll i {
  width: 1px; height: 2.5rem;
  background: linear-gradient(var(--flame), transparent);
  animation: fall 1.9s var(--ease) infinite;
}
@keyframes fall {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}
@media (max-width: 64rem) { .hero__scroll { display: none; } }

/* ── Marquee ─────────────────────────────────────────────────────────── */
.marquee {
  display: flex;
  overflow: hidden;
  border-block: 1px solid var(--rule);
  padding-block: 1.15rem;
  user-select: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: flex;
  flex: none;
  gap: 2.5rem;
  padding-right: 2.5rem;
  align-items: center;
  animation: slide var(--speed, 42s) linear infinite;
  will-change: transform;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee--rev .marquee__track { animation-direction: reverse; }
@keyframes slide { to { transform: translateX(-100%); } }

.marquee__item {
  display: inline-flex; align-items: center; gap: 0.6rem;
  color: var(--fg-dim);
  font-size: var(--t-sm);
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.3s var(--ease);
}
.marquee__item:hover { color: var(--fg); }

/* ── Brand marks ─────────────────────────────────────────────────────── */
.mark { flex: none; color: var(--fg-faint); transition: color 0.35s var(--ease); }
.mark--mono {
  display: grid; place-items: center;
  font-family: var(--label);
  font-weight: 700;
  letter-spacing: -0.02em;
  border-radius: var(--radius);
  color: var(--brand);
  background: color-mix(in srgb, var(--brand) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand) 28%, transparent);
}
:is(.marquee__item, .tool):hover .mark:not(.mark--mono) { color: var(--brand); }

/* ── Index rows (services, the editorial table device) ───────────────── */
.index { border-top: 1px solid var(--rule); }
.index__row {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr) minmax(0, 1.05fr) 2.5rem;
  gap: clamp(1rem, 2.5vw, 2.5rem);
  align-items: start;
  padding-block: clamp(1.6rem, 3vw, 2.5rem);
  border-bottom: 1px solid var(--rule);
  position: relative;
  transition: color 0.4s var(--ease);
}
.index__row::before {
  content: "";
  position: absolute; inset: 0 calc(var(--gut) * -0.5);
  background: var(--bg-raise);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  z-index: -1;
}
.index__row:hover::before { opacity: 1; }
.index__num { font-family: var(--label); font-size: var(--t-label); color: var(--accent); padding-top: 0.45rem; letter-spacing: 0.1em; }
.index__title { font-size: var(--t-h3); }
.index__title span { display: block; font-family: var(--label); font-size: var(--t-label); color: var(--fg-faint); margin-top: 0.7rem; letter-spacing: 0.12em; }
.index__body { color: var(--fg-dim); font-size: var(--t-sm); }
.index__tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1rem; }
.index__go {
  justify-self: end; align-self: center;
  width: 2.5rem; height: 2.5rem;
  border: 1px solid var(--rule); border-radius: 50%;
  display: grid; place-items: center;
  color: var(--fg-faint);
  transition: all 0.4s var(--ease);
}
.index__row:hover .index__go { background: var(--flame); border-color: var(--flame); color: #fff; transform: rotate(-45deg); }
@media (max-width: 54rem) {
  .index__row { grid-template-columns: 2.75rem minmax(0, 1fr); }
  .index__body { grid-column: 2; }
  .index__go { display: none; }
}

.chip {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.28rem 0.65rem;
  border: 1px solid var(--rule);
  border-radius: 100px;
  font-family: var(--label);
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-faint);
  white-space: nowrap;
}
.chip--live { color: var(--moss); border-color: color-mix(in srgb, var(--moss) 45%, transparent); }
.chip--wip { color: var(--flame); border-color: color-mix(in srgb, var(--flame) 40%, transparent); }
.chip--nda { color: var(--ultra); border-color: color-mix(in srgb, var(--ultra) 45%, transparent); }
.surface-ink .chip--nda { color: #8f87ff; border-color: rgba(143, 135, 255, 0.4); }

/* ── Cards ───────────────────────────────────────────────────────────── */
.grid { display: grid; gap: clamp(1rem, 2vw, 1.6rem); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }

.card {
  position: relative;
  padding: clamp(1.4rem, 2.6vw, 2rem);
  background: var(--bg-raise);
  border: 1px solid var(--rule-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.5s var(--ease), border-color 0.4s var(--ease);
}
.card::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, var(--flame), transparent 42%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.45s var(--ease);
  pointer-events: none;
}
.card:hover { transform: translateY(-4px); }
.card:hover::after { opacity: 1; }

.card__k { color: var(--accent); margin-bottom: 1rem; display: block; }
.card__t { font-size: var(--t-h4); margin-bottom: 0.6rem; }
.card__p { font-size: var(--t-sm); color: var(--fg-dim); }

/* Stat card with counter */
.stat { text-align: left; }
.stat__n {
  font-family: var(--display);
  font-variation-settings: var(--display-axes);
  font-size: clamp(2.2rem, 1.4rem + 3.2vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.018em;
  line-height: 1;
  color: var(--fg);
  display: block;
}
.stat__n sup { font-size: 0.42em; vertical-align: super; color: var(--flame); }
.stat__l { color: var(--fg-dim); font-size: var(--t-sm); margin-top: 0.7rem; display: block; max-width: 22ch; }

/* ── Tools ───────────────────────────────────────────────────────────── */
.toolgroup { border-top: 1px solid var(--rule); padding-block: clamp(2rem, 4vw, 3.25rem); }
.toolgroup__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 2rem; margin-bottom: 2rem; align-items: start; }
.toolgroup__head h3 { font-size: var(--t-h3); }
.toolgroup__head p { color: var(--fg-dim); font-size: var(--t-sm); max-width: 48ch; }
@media (max-width: 54rem) { .toolgroup__head { grid-template-columns: 1fr; gap: 0.85rem; } }

.tools { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15.5rem), 1fr)); gap: 1px; background: var(--rule-soft); border: 1px solid var(--rule-soft); }
.tool {
  background: var(--bg);
  padding: 1.15rem 1.15rem 1.25rem;
  display: grid;
  gap: 0.55rem;
  transition: background 0.35s var(--ease);
}
.tool:hover { background: var(--bg-raise); }
.tool__top { display: flex; align-items: center; gap: 0.7rem; }
.tool__name { font-weight: 600; font-size: 0.95rem; letter-spacing: -0.01em; }
.tool__desc { font-size: 0.82rem; color: var(--fg-faint); line-height: 1.5; }

/* ── Work ────────────────────────────────────────────────────────────── */
.work { display: grid; gap: clamp(1rem, 2vw, 1.5rem); grid-template-columns: repeat(auto-fit, minmax(min(100%, 21rem), 1fr)); }

.wcard {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--bg-raise);
  border: 1px solid var(--rule-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.55s var(--ease), border-color 0.4s var(--ease);
}
.wcard:hover { transform: translateY(-5px); border-color: var(--rule); }
.wcard__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-sink);
}
.wcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease), filter 0.6s var(--ease); filter: grayscale(0.55); }
.wcard:hover .wcard__media img { transform: scale(1.06); filter: grayscale(0); }
.wcard__ph {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background:
    radial-gradient(22rem 16rem at 70% 25%, rgba(58, 47, 216, 0.22), transparent 65%),
    radial-gradient(18rem 14rem at 25% 78%, rgba(255, 74, 23, 0.2), transparent 68%),
    var(--ink-850);
}
.wcard__ph span {
  font-family: var(--display);
  font-variation-settings: var(--display-axes); font-weight: 800;
  font-size: clamp(2rem, 6vw, 3.25rem);
  letter-spacing: -0.02em;
  color: rgba(250, 248, 243, 0.14);
}
.wcard__body { padding: 1.35rem; display: flex; flex-direction: column; gap: 0.7rem; flex: 1; }
.wcard__meta { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }
.wcard__t { font-size: var(--t-h4); letter-spacing: -0.02em; }
.wcard__p { font-size: var(--t-sm); color: var(--fg-dim); flex: 1; }
.wcard__foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 0.85rem; border-top: 1px solid var(--rule-soft); font-family: var(--label); font-size: var(--t-label); color: var(--fg-faint); letter-spacing: 0.08em; }

/* ── Quotes ──────────────────────────────────────────────────────────── */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); gap: 1px; background: var(--rule-soft); border-block: 1px solid var(--rule-soft); }
.quote { background: var(--bg); padding: clamp(1.5rem, 3vw, 2.25rem); display: flex; flex-direction: column; gap: 1.1rem; }
.quote blockquote { font-size: 1rem; line-height: 1.55; color: var(--fg); flex: 1; text-wrap: pretty; }
.quote blockquote::before { content: "\201C"; font-family: var(--display);
  font-variation-settings: var(--display-axes); font-size: 2.6rem; line-height: 0; color: var(--flame); vertical-align: -0.28em; margin-right: 0.1em; }
.quote figcaption { display: flex; align-items: center; gap: 0.8rem; }
.quote__av {
  width: 2.35rem; height: 2.35rem; border-radius: 50%;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--flame) 15%, transparent);
  border: 1px solid color-mix(in srgb, var(--flame) 32%, transparent);
  color: var(--flame);
  font-family: var(--label); font-size: 0.72rem; font-weight: 700;
  flex: none;
}
.quote__n { font-weight: 600; font-size: 0.92rem; }
.quote__r { font-size: 0.78rem; color: var(--fg-faint); }

/* ── FAQ ─────────────────────────────────────────────────────────────── */
.faq { border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 1.5rem;
  padding-block: clamp(1.15rem, 2.4vw, 1.7rem);
  cursor: pointer;
  list-style: none;
  font-family: var(--display);
  font-variation-settings: var(--display-axes);
  font-size: var(--t-h4);
  font-weight: 700;
  letter-spacing: -0.018em;
  line-height: 1.25;
  transition: color 0.3s var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent); }
.faq__i { flex: none; width: 1.5rem; height: 1.5rem; position: relative; margin-top: 0.2rem; }
.faq__i::before, .faq__i::after {
  content: ""; position: absolute; top: 50%; left: 50%;
  background: currentColor; border-radius: 2px;
  transform: translate(-50%, -50%);
  transition: transform 0.4s var(--ease), opacity 0.3s linear;
}
.faq__i::before { width: 0.85rem; height: 1.5px; }
.faq__i::after { width: 1.5px; height: 0.85rem; }
.faq details[open] .faq__i::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }
.faq details[open] summary { color: var(--accent); }
.faq__a { overflow: hidden; }
.faq__a > div { padding-bottom: 1.6rem; max-width: 62ch; color: var(--fg-dim); font-size: var(--t-sm); line-height: 1.65; }
/* Native height animation where supported */
@supports (interpolate-size: allow-keywords) {
  .faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.45s var(--ease); }
  .faq details[open] .faq__a { grid-template-rows: 1fr; }
  .faq__a > div { min-height: 0; }
}

/* ── Process ─────────────────────────────────────────────────────────── */
.steps { display: grid; gap: 1px; background: var(--rule-soft); border: 1px solid var(--rule-soft); grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); counter-reset: s; }
.step { background: var(--bg); padding: clamp(1.5rem, 3vw, 2.15rem); display: grid; gap: 0.75rem; align-content: start; position: relative; }
.step::before {
  counter-increment: s;
  content: counter(s, decimal-leading-zero);
  font-family: var(--label); font-size: var(--t-label);
  color: var(--accent); letter-spacing: 0.14em;
}
.step h3 { font-size: var(--t-h4); }
.step p { font-size: var(--t-sm); color: var(--fg-dim); }

/* ── Contact ─────────────────────────────────────────────────────────── */
.contact { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
@media (max-width: 62rem) { .contact { grid-template-columns: 1fr; } }

.form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: 0.5rem; }
.field label { font-family: var(--label); font-size: var(--t-label); letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-faint); }
.field .req { color: var(--flame); }
.input {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--bg-raise);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  color: var(--fg);
  font-size: var(--t-sm);
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
  appearance: none;
}
.input::placeholder { color: var(--fg-faint); }
.input:focus { outline: none; border-color: var(--flame); background: var(--bg); }
.input:user-invalid { border-color: #d8452e; }
textarea.input { resize: vertical; min-height: 7.5rem; line-height: 1.55; }
select.input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%239d958a' stroke-width='1.6'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 34rem) { .field-row { grid-template-columns: 1fr; } }

.form__note { font-size: 0.78rem; color: var(--fg-faint); line-height: 1.55; }
.form__note a { color: var(--accent); }

/* ── Robot check ─────────────────────────────────────────────────────────
   Self-hosted, so it is styled like the rest of the form rather than
   dropped in as a third-party widget. */
.cap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0.25rem 0 1.1rem;
    padding: 0.85rem 1rem;
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    background: color-mix(in srgb, var(--fg) 3%, transparent);
    transition: border-color 0.25s ease, background 0.25s ease;
}
.cap[data-solved] {
    border-color: color-mix(in srgb, var(--moss) 45%, transparent);
    background: color-mix(in srgb, var(--moss) 8%, transparent);
}
.cap__box { display: flex; align-items: center; gap: 0.7rem; cursor: pointer; user-select: none; }
.cap__box input { position: absolute; opacity: 0; width: 0; height: 0; }
.cap__mark {
    flex: none;
    width: 1.35rem;
    height: 1.35rem;
    border: 1.5px solid var(--rule-strong, var(--rule));
    border-radius: 3px;
    display: grid;
    place-items: center;
    color: transparent;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.cap__mark svg { width: 0.9rem; height: 0.9rem; }
.cap__box input:focus-visible + .cap__mark { outline: 2px solid var(--accent); outline-offset: 2px; }
.cap[data-solved] .cap__mark { color: var(--moss); border-color: var(--moss); }
.cap__label { font-size: 0.9rem; color: var(--fg); }
.cap__state { margin-left: auto; font-size: 0.75rem; color: var(--fg-faint); letter-spacing: 0.02em; }
.cap[data-solved] .cap__state { color: var(--moss); }
.cap[data-solving] .cap__state { opacity: 0.7; }
/* While solving, the tick is implied but not yet earned. */
.cap[data-solving] .cap__mark { border-color: var(--accent); }
.cap[data-missing] { border-color: rgba(228, 97, 74, 0.5); background: rgba(228, 97, 74, 0.07); }
.cap[data-missing] .cap__mark { border-color: #e4614a; }
.cap[data-missing] .cap__state { color: #e4614a; }

/* Honeypot - hidden from humans, visible to naive bots */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.alert {
  padding: 0.95rem 1.1rem;
  border-radius: var(--radius);
  font-size: var(--t-sm);
  border: 1px solid;
  display: flex; gap: 0.7rem; align-items: flex-start;
}
.alert--ok { color: var(--moss); border-color: color-mix(in srgb, var(--moss) 45%, transparent); background: color-mix(in srgb, var(--moss) 9%, transparent); }
.alert--err { color: #e4614a; border-color: rgba(228, 97, 74, 0.4); background: rgba(228, 97, 74, 0.07); }

/* Direct-contact list */
.direct { display: grid; gap: 1px; background: var(--rule-soft); border: 1px solid var(--rule-soft); margin-top: 2rem; }
.direct a, .direct div { background: var(--bg); padding: 1.1rem 1.25rem; display: flex; align-items: center; gap: 1rem; transition: background 0.3s var(--ease); }
.direct a:hover { background: var(--bg-raise); }
.direct__i { width: 2.25rem; height: 2.25rem; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--flame) 12%, transparent); color: var(--flame); flex: none; }
.direct__l { font-family: var(--label); font-size: 0.64rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-faint); display: block; }
.direct__v { font-weight: 600; font-size: 0.92rem; }

/* ── Success modal ───────────────────────────────────────────────────── */
/* A modal <dialog> is centred by the UA stylesheet using margin:auto, but the
   global `* { margin: 0 }` reset above outranks it and pins the box to the
   top-left. Restoring margin here is what actually centres it. */
.modal {
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(92vw, 30rem);
  max-width: min(92vw, 30rem);
  max-height: min(86dvh, 44rem);
  border: 0;
  padding: 0;
  background: transparent;
  overflow: visible;
}
.modal__in { max-height: min(86dvh, 44rem); overflow-y: auto; }
.modal::backdrop { background: rgba(7, 6, 5, 0.82); backdrop-filter: blur(6px); }
.modal__in {
  background: var(--ink-850);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  text-align: center;
  color: var(--paper-100);
}
.modal[open] .modal__in { animation: pop 0.5s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(1.5rem) scale(0.97); } }
.modal__i {
  width: 3.5rem; height: 3.5rem; margin: 0 auto 1.25rem;
  border-radius: 50%; display: grid; place-items: center;
  background: color-mix(in srgb, var(--moss) 18%, transparent);
  color: var(--moss);
}
.modal__t { font-size: var(--t-h3); margin-bottom: 0.75rem; }
.modal__p { color: var(--fg-dim); font-size: var(--t-sm); margin-bottom: 1.6rem; text-wrap: pretty; }

/* ── Footer ──────────────────────────────────────────────────────────── */
.ftr { background: var(--ink-900); color: var(--paper-100); border-top: 1px solid rgba(250, 248, 243, 0.12); padding-block: clamp(3rem, 6vw, 5rem) 2rem; }
.ftr__top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: clamp(1.75rem, 4vw, 3.5rem); }
@media (max-width: 62rem) { .ftr__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 34rem) { .ftr__top { grid-template-columns: 1fr; } }
.ftr__bio { color: #9d958a; font-size: var(--t-sm); max-width: 32ch; margin-top: 1rem; }
.ftr h4 { font-family: var(--label); font-size: var(--t-label); font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: #6a635a; margin-bottom: 1.1rem; }
.ftr__list { display: grid; gap: 0.6rem; }
.ftr__list a { font-size: var(--t-sm); color: #9d958a; transition: color 0.3s var(--ease); width: fit-content; }
.ftr__list a:hover { color: var(--flame); }
.ftr__soc { display: flex; gap: 0.6rem; margin-top: 1.5rem; }
.ftr__soc a {
  width: 2.35rem; height: 2.35rem;
  border: 1px solid rgba(250, 248, 243, 0.12);
  border-radius: 50%;
  display: grid; place-items: center;
  color: #9d958a;
  transition: all 0.35s var(--ease);
}
.ftr__soc a:hover { background: var(--flame); border-color: var(--flame); color: #fff; transform: translateY(-2px); }
.ftr__bot {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 1.5rem;
  border-top: 1px solid rgba(250, 248, 243, 0.08);
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center;
  font-size: 0.78rem; color: #6a635a;
}
.ftr__bot a { color: #9d958a; }
.ftr__bot a:hover { color: var(--flame); }

/* Oversized wordmark in the footer */
.ftr__word {
  font-family: var(--display);
  font-variation-settings: var(--display-axes);
  font-weight: 800;
  font-size: clamp(3rem, 15vw, 12rem);
  letter-spacing: -0.02em;
  line-height: 0.8;
  color: rgba(250, 248, 243, 0.045);
  margin-top: clamp(2rem, 5vw, 3.5rem);
  text-align: center;
  user-select: none;
  white-space: nowrap;
  overflow: hidden;
}

/* ── Floating WhatsApp ───────────────────────────────────────────────── */
.wa {
  position: fixed;
  right: clamp(1rem, 2.5vw, 1.75rem);
  bottom: clamp(1rem, 2.5vw, 1.75rem);
  z-index: 90;
  width: 3.25rem; height: 3.25rem;
  border-radius: 50%;
  display: grid; place-items: center;
  background: #25d366; color: #fff;
  box-shadow: 0 0.6rem 1.75rem rgba(37, 211, 102, 0.38);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  transform: scale(0);
}
.wa.is-on { transform: scale(1); }
.wa:hover { transform: scale(1.08); box-shadow: 0 0.85rem 2.25rem rgba(37, 211, 102, 0.5); }

/* ── Breadcrumbs ─────────────────────────────────────────────────────── */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; color: var(--fg-faint); margin-bottom: 1.75rem; }
.crumbs a:hover { color: var(--accent); }
.crumbs li { display: flex; align-items: center; gap: 0.5rem; }
.crumbs li + li::before { content: "/"; color: var(--rule); }
.crumbs [aria-current] { color: var(--fg-dim); }

/* ── Page hero (inner pages) ─────────────────────────────────────────── */
.phero { padding-block: clamp(7rem, 12vw, 10rem) clamp(2.5rem, 5vw, 4rem); position: relative; overflow: hidden; }
.phero__h1 { font-size: var(--t-h2); max-width: 18ch; }
.phero__lead { margin-top: 1.5rem; max-width: 56ch; }

/* ── Pricing ─────────────────────────────────────────────────────────── */
.plans { display: grid; gap: 1px; background: var(--rule-soft); border: 1px solid var(--rule-soft); grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.plan { background: var(--bg); padding: clamp(1.5rem, 3vw, 2rem); display: flex; flex-direction: column; gap: 1rem; position: relative; transition: background 0.35s var(--ease); }
.plan:hover { background: var(--bg-raise); }
.plan--best { background: var(--bg-raise); }
.plan--best::before {
  content: "Most chosen";
  position: absolute; top: 0; left: 0; right: 0;
  background: var(--flame); color: #fff;
  font-family: var(--label); font-size: 0.6rem; letter-spacing: 0.14em; text-transform: uppercase;
  text-align: center; padding: 0.35rem;
}
.plan--best { padding-top: calc(clamp(1.5rem, 3vw, 2rem) + 1.25rem); }
.plan__n { font-size: var(--t-h4); }
.plan__p { font-family: var(--display);
  font-variation-settings: var(--display-axes); font-size: clamp(1.9rem, 1.4rem + 1.8vw, 2.6rem); font-weight: 800; letter-spacing: -0.018em; line-height: 1; }
.plan__p small { font-family: var(--body); font-size: 0.8rem; font-weight: 400; color: var(--fg-faint); letter-spacing: 0; }
.plan__f { display: grid; gap: 0.65rem; flex: 1; margin-block: 0.5rem; }
.plan__f li { display: flex; gap: 0.6rem; font-size: 0.85rem; color: var(--fg-dim); line-height: 1.5; }
.plan__f svg { flex: none; margin-top: 0.3rem; color: var(--flame); }

/* ── Utility ─────────────────────────────────────────────────────────── */
.stack { display: grid; gap: 1rem; }
.stack--lg { gap: 2rem; }
.center { text-align: center; }
.mt-auto { margin-top: auto; }
.hide { display: none !important; }
.sr {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Split layout: sticky label column + content */
.split { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 2fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.split__aside { position: sticky; top: 6.5rem; }
@media (max-width: 62rem) {
  .split { grid-template-columns: 1fr; gap: 2rem; }
  .split__aside { position: static; }
}

/* Checklist */
.checks { display: grid; gap: 0.8rem; }
.checks li { display: flex; gap: 0.75rem; align-items: flex-start; font-size: var(--t-sm); color: var(--fg-dim); }
.checks svg { flex: none; margin-top: 0.32rem; color: var(--flame); }

/* View Transitions */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out 0.22s var(--ease-io) both; }
::view-transition-new(root) { animation: vt-in 0.32s var(--ease-io) both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(0.6rem); } }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}

/* Reading progress bar */
.progress {
  position: fixed; inset: 0 0 auto 0; z-index: 101;
  height: 2px; background: var(--flame);
  transform-origin: left; transform: scaleX(0);
}
@supports (animation-timeline: scroll()) {
  .progress { animation: grow linear; animation-timeline: scroll(root block); }
  @keyframes grow { to { transform: scaleX(1); } }
}

/* ── Ledger (portfolio detail rows) ──────────────────────────────────── */
.ledger { border-top: 1px solid var(--rule); }

/* Named areas rather than auto-placement. The previous version pinned the
   media to column 2 at narrow widths and left the body to auto-place into the
   3.5rem index column, which squeezed headings to one letter per line. */
.ledger__row {
  display: grid;
  grid-template-columns: 5.5rem 15rem minmax(0, 1fr);
  grid-template-areas: "idx media body";
  gap: clamp(1.25rem, 3vw, 3rem);
  align-items: start;
  padding-block: clamp(2rem, 4.5vw, 3.5rem);
  border-bottom: 1px solid var(--rule);
}
.ledger__row--wide { grid-template-columns: 5.5rem 20rem minmax(0, 1fr); }

.ledger__idx   { grid-area: idx; }
.ledger__media,
.ledger__shot  { grid-area: media; }
.ledger__body  { grid-area: body; min-width: 0; }

.ledger__idx { display: grid; gap: 0.5rem; align-content: start; padding-top: 0.15rem; }
.ledger__num {
  font-family: var(--display);
  font-variation-settings: var(--display-axes);
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--accent);
}
.ledger__yr { color: var(--fg-faint); line-height: 1.5; letter-spacing: 0.07em; }

.ledger__media,
.ledger__shot {
  border: 1px solid var(--rule-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-sink);
  width: 100%;
}
.ledger__media { aspect-ratio: 1; }
.ledger__shot  { aspect-ratio: 16 / 10; }
.ledger__media img,
.ledger__shot img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(0.5);
  transition: filter 0.6s var(--ease), transform 0.9s var(--ease);
}
.ledger__row:hover :is(.ledger__media, .ledger__shot) img { filter: grayscale(0); transform: scale(1.04); }

.ledger__co {
  font-size: clamp(1.25rem, 1rem + 1.1vw, 1.9rem);
  letter-spacing: -0.028em;
  line-height: 1.15;
  /* Long unbroken company names must wrap, never overflow the column. */
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: auto;
}
.ledger__role {
  font-size: var(--t-sm);
  color: var(--accent);
  font-weight: 600;
  margin-top: 0.5rem;
}
.ledger__detail {
  margin-top: 1rem;
  color: var(--fg-dim);
  max-width: 62ch;
  text-wrap: pretty;
}
.ledger__quote {
  margin-top: 1.5rem;
  padding: 1.1rem 1.35rem;
  border-left: 2px solid var(--flame);
  background: var(--bg-raise);
  font-size: var(--t-sm);
  line-height: 1.6;
  color: var(--fg);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.ledger__quote cite {
  display: block;
  margin-top: 0.7rem;
  font-style: normal;
  font-size: 0.78rem;
  color: var(--fg-faint);
  font-weight: 600;
}
.ledger__quote cite::before { content: none; }

/* Tablet and below: one column, with the index turned into a caption row. */
@media (max-width: 68rem) {
  .ledger__row,
  .ledger__row--wide {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "idx"
      "media"
      "body";
    gap: 1.1rem;
  }
  .ledger__idx {
    grid-auto-flow: column;
    justify-content: start;
    align-items: baseline;
    gap: 0.85rem;
    padding-top: 0;
  }
  .ledger__num { font-size: 1.3rem; }
  .ledger__media,
  .ledger__shot { max-width: 20rem; }
  .ledger__media { aspect-ratio: 16 / 10; }
}

@media (max-width: 40rem) {
  .ledger__media,
  .ledger__shot { max-width: none; }
}

/* ── Fork (the /work chooser) ────────────────────────────────────────── */
.fork {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr));
  gap: clamp(1.25rem, 2.5vw, 2rem);
}
.fork__card {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  padding: clamp(1.75rem, 3.5vw, 2.75rem);
  background: var(--bg-raise);
  border: 1px solid var(--rule-soft);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  transition: transform 0.5s var(--ease), border-color 0.4s var(--ease);
}
.fork__card::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(150deg, var(--flame), transparent 45%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.45s var(--ease);
  pointer-events: none;
}
.fork__card:hover { transform: translateY(-5px); }
.fork__card:hover::after { opacity: 1; }

.fork__k { color: var(--accent); display: block; margin-bottom: 1.1rem; }
.fork__t { font-size: var(--t-h3); max-width: 16ch; }
.fork__p { margin-top: 1.1rem; color: var(--fg-dim); font-size: var(--t-sm); text-wrap: pretty; }
.fork__list { display: grid; gap: 0.7rem; }
.fork__list li { display: flex; gap: 0.7rem; align-items: flex-start; font-size: var(--t-sm); color: var(--fg-dim); }
.fork__list svg { flex: none; margin-top: 0.3rem; color: var(--flame); }
.fork__strip {
  display: flex; flex-wrap: wrap; gap: 1rem; align-items: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule-soft);
}
.fork__strip .mark { color: var(--fg-faint); transition: color 0.35s var(--ease); }
.fork__card:hover .fork__strip .mark { color: var(--brand); }
.fork__go {
  margin-top: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  font-family: var(--label); font-size: var(--t-label);
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--fg-faint);
}
.fork__card:hover .index__go { background: var(--flame); border-color: var(--flame); color: #fff; transform: rotate(-45deg); }

/* ── Crosslink banner ────────────────────────────────────────────────── */
.crosslink {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  padding: clamp(1.75rem, 3.5vw, 2.75rem);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  background: var(--bg-raise);
}
@media (max-width: 54rem) {
  .crosslink { grid-template-columns: 1fr; align-items: start; }
}

/* ── Spacing corrections ─────────────────────────────────────────────── */
/* Hero spec strip needs room to breathe above the marquees. */
.spec { margin-bottom: 0; }
.hero__in > div > .spec:last-child { margin-bottom: 1rem; }

/* Give the phero a floor so breadcrumbs never hug the header. */
.phero .crumbs { margin-top: 0.5rem; }
.phero__lead + .btn-row { margin-top: clamp(1.75rem, 3.5vw, 2.5rem); }

/* Consistent rhythm between a heading block and whatever follows it. */
.head + * { margin-top: 0; }
.section > .wrap > .grid,
.section > .wrap > .index,
.section > .wrap > .faq,
.section > .wrap > .work,
.section > .wrap > .steps,
.section > .wrap > .plans { margin-top: clamp(1.5rem, 3vw, 2.25rem); }

/* Marquee sections need breathing room from the blocks around them. */
.marquee { padding-block: 1.35rem; }

/* Stop long unbroken strings from forcing horizontal scroll on mobile. */
p, li, h1, h2, h3, h4, dd, blockquote { overflow-wrap: break-word; }

/* ── Big checklist (service pages) ───────────────────────────────────── */
.bigcheck { display: grid; gap: 0; border-top: 1px solid var(--rule-soft); }
.bigcheck li {
  display: flex; gap: 1rem; align-items: flex-start;
  padding-block: clamp(0.9rem, 1.8vw, 1.25rem);
  border-bottom: 1px solid var(--rule-soft);
  font-size: var(--t-base);
  color: var(--fg-dim);
  transition: color 0.3s var(--ease), padding-left 0.35s var(--ease);
}
.bigcheck li:hover { color: var(--fg); padding-left: 0.4rem; }
.bigcheck svg { flex: none; margin-top: 0.42rem; color: var(--flame); }

/* ── Jump nav ────────────────────────────────────────────────────────── */
.jump { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.jump .chip { transition: all 0.3s var(--ease); }
.jump .chip:hover { color: var(--flame); border-color: color-mix(in srgb, var(--flame) 50%, transparent); }

/* ── About hero ──────────────────────────────────────────────────────── */
.abouthero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  margin-top: 1.5rem;
}
@media (max-width: 62rem) {
  .abouthero { grid-template-columns: 1fr; }
  .abouthero__fig { max-width: 22rem; }
}
.abouthero__fig { position: relative; }
.abouthero__fig picture {
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--rule);
  background: var(--bg-raise);
}
.abouthero__fig img {
  width: 100%; height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center 20%;
  filter: grayscale(1) contrast(1.05);
  transition: filter 0.8s var(--ease), transform 0.8s var(--ease);
}
.abouthero__fig:hover img { filter: grayscale(0) contrast(1); transform: scale(1.02); }
.abouthero__fig figcaption {
  margin-top: 0.9rem;
  color: var(--fg-faint);
  text-align: center;
}

/* ── Story column ────────────────────────────────────────────────────── */
.story { max-width: 62ch; }
.story .prose p { color: var(--fg-dim); }
.story .prose em { font-style: italic; color: var(--fg); }

/* ── Timeline ────────────────────────────────────────────────────────── */
.tline { border-top: 1px solid var(--rule); }
.tline__i {
  display: grid;
  grid-template-columns: 11rem minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 2.5rem);
  padding-block: clamp(1.4rem, 2.8vw, 2rem);
  border-bottom: 1px solid var(--rule);
  position: relative;
  transition: background 0.35s var(--ease);
}
.tline__i::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: -1px;
  width: 2px;
  background: var(--flame);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.45s var(--ease);
}
.tline__i:hover::before { transform: scaleY(1); }
.tline__yr { color: var(--accent); padding-top: 0.35rem; line-height: 1.6; }
.tline__t { font-size: var(--t-h4); display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.tline__r { font-size: var(--t-sm); color: var(--fg-faint); margin-top: 0.4rem; }
.tline__s { font-size: var(--t-sm); color: var(--fg-dim); margin-top: 0.75rem; max-width: 60ch; }
@media (max-width: 48rem) {
  .tline__i { grid-template-columns: 1fr; gap: 0.6rem; }
  .tline__yr { padding-top: 0; }
}

/* ── Numbered list ───────────────────────────────────────────────────── */
.numlist { counter-reset: nl; display: grid; gap: 0.85rem; margin-top: 1rem; }
.numlist li {
  counter-increment: nl;
  display: grid;
  grid-template-columns: 1.6rem 1fr;
  gap: 0.75rem;
  font-size: var(--t-sm);
  color: var(--fg-dim);
  line-height: 1.55;
}
.numlist li::before {
  content: counter(nl);
  font-family: var(--label);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--flame);
  width: 1.6rem; height: 1.6rem;
  display: grid; place-items: center;
  border: 1px solid color-mix(in srgb, var(--flame) 35%, transparent);
  border-radius: 50%;
}

/* ── Article ─────────────────────────────────────────────────────────── */
.byline { display: flex; align-items: center; gap: 0.85rem; margin-top: 2rem; }
.byline img { width: 2.5rem; height: 2.5rem; border-radius: 50%; object-fit: cover; border: 1px solid var(--rule); }
.byline__n { display: block; font-weight: 600; font-size: 0.92rem; }
.byline__d { display: block; font-size: 0.8rem; color: var(--fg-faint); }

.article { font-size: 1.06rem; line-height: 1.72; color: var(--fg-dim); }
.article > div > *:first-child { margin-top: 0; }
.article p { margin-bottom: 1.35em; text-wrap: pretty; }
.article h2 {
  font-size: clamp(1.4rem, 1.1rem + 1.3vw, 1.95rem);
  color: var(--fg);
  margin: 2.6em 0 0.75em;
  letter-spacing: -0.028em;
}
.article h3 {
  font-size: clamp(1.15rem, 1rem + 0.7vw, 1.4rem);
  color: var(--fg);
  margin: 2em 0 0.6em;
}
.article ul, .article ol { margin: 0 0 1.5em; padding-left: 0; display: grid; gap: 0.7rem; }
.article li { position: relative; padding-left: 1.6rem; }
.article ul li::before {
  content: "";
  position: absolute; left: 0.25rem; top: 0.72em;
  width: 6px; height: 6px;
  background: var(--flame);
  border-radius: 50%;
}
.article ol { counter-reset: ol; }
.article ol li { counter-increment: ol; }
.article ol li::before {
  content: counter(ol) ".";
  position: absolute; left: 0; top: 0;
  color: var(--flame);
  font-weight: 700;
  font-size: 0.9em;
}
.article strong { color: var(--fg); font-weight: 600; }
.article a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.article blockquote {
  margin: 2em 0;
  padding: 1.25rem 1.5rem;
  border-left: 2px solid var(--flame);
  background: var(--bg-raise);
  font-size: 1.08rem;
  color: var(--fg);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.article img { border-radius: var(--radius-lg); margin: 2em 0; border: 1px solid var(--rule-soft); }

/* Diagrams are inline SVG rather than <img>, so they inherit the page font
   and the ink palette instead of falling back inside an image sandbox. */
.article figure { margin: 2.4em 0; }
.article .dia {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--rule-soft);
    font-family: var(--body);
    font-feature-settings: "tnum" 1;
}
.article figcaption {
    margin-top: 0.8rem;
    font-size: 0.85rem;
    line-height: 1.55;
    color: var(--fg-dim);
    text-wrap: pretty;
}
.article hr { border: 0; height: 1px; background: var(--rule); margin: 3em 0; }
.article table { width: 100%; border-collapse: collapse; margin: 2em 0; font-size: 0.94rem; }
.article th, .article td { text-align: left; padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--rule-soft); }
.article th { color: var(--fg); font-weight: 600; }

.artcta {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  padding: clamp(1.6rem, 3.5vw, 2.5rem);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  background: var(--bg-raise);
}

/* ── Featured post ───────────────────────────────────────────────────── */
.feature {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 3.5vw, 3rem);
  align-items: stretch;
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-raise);
  transition: transform 0.5s var(--ease), border-color 0.4s var(--ease);
}
.feature:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--flame) 40%, transparent); }
.feature__b { padding: clamp(1.6rem, 3.5vw, 2.75rem); display: flex; flex-direction: column; align-items: flex-start; }
.feature__t { font-size: clamp(1.4rem, 1.1rem + 1.6vw, 2.25rem); max-width: 20ch; }
.feature__p { margin-top: 1.1rem; color: var(--fg-dim); max-width: 56ch; }
.feature__m {
  display: grid; place-items: center;
  background:
    radial-gradient(18rem 14rem at 60% 35%, rgba(255, 74, 23, 0.22), transparent 66%),
    radial-gradient(14rem 12rem at 30% 75%, rgba(58, 47, 216, 0.18), transparent 70%),
    var(--bg-sink);
  min-height: 12rem;
}
.feature__m span {
  font-family: var(--display);
  font-variation-settings: var(--display-axes);
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  color: color-mix(in srgb, var(--fg) 14%, transparent);
}
@media (max-width: 54rem) {
  .feature { grid-template-columns: 1fr; }
  .feature__m { order: -1; min-height: 8rem; }
}

/* ── Sector plates ───────────────────────────────────────────────────── */
.plate { width: 100%; height: 100%; display: block; }
.plate__mono {
  font-family: var(--display);
  font-variation-settings: var(--display-axes);
  font-weight: 800;
  font-size: 190px;
  letter-spacing: -0.05em;
  fill: hsl(var(--h) 60% 80%);
  fill-opacity: 0.09;
}
.plate__art { transition: transform 0.9s var(--ease); transform-origin: 100% 100%; }
:is(.wcard, .ledger__row):hover .plate__art { transform: scale(1.06) translate(-6px, -6px); }

.wcard__media--plate,
.ledger__media--plate { background: var(--ink-900); }
.ledger__media--plate { aspect-ratio: 1; }

/* ── Hero portrait ───────────────────────────────────────────────────── */
/* Replaces the circular cut-out and rotating halo with an editorial
   arch-top plate: warm duotone, one live badge, a static tool caption. */
.portrait {
  position: relative;
  justify-self: center;
  width: min(100%, 28rem);
  display: grid;
  gap: 1.15rem;
}

.portrait__frame {
  position: relative;
  aspect-ratio: 1 / 1.08;
  border-radius: 9rem 9rem var(--radius-lg) var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--rule);
  background: var(--ink-800);
  isolation: isolate;
}
/* Warm duotone rather than flat greyscale, so it sits in the palette. */
.portrait__frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 22%;
  filter: grayscale(1) contrast(1.08) brightness(0.96);
  transition: filter 0.9s var(--ease), transform 1.1s var(--ease);
}
.portrait__frame::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(200deg, rgba(255, 74, 23, 0.26), transparent 52%);
  mix-blend-mode: soft-light;
  z-index: 1;
  pointer-events: none;
}
.portrait__frame::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(10, 9, 7, 0.82), rgba(10, 9, 7, 0.08) 34%, transparent 52%),
    radial-gradient(125% 95% at 50% 34%, transparent 46%, rgba(10, 9, 7, 0.42) 100%);
  z-index: 1;
  pointer-events: none;
}
.portrait:hover .portrait__frame img { filter: grayscale(0) contrast(1); transform: scale(1.03); }

.portrait__badge {
  position: absolute;
  left: 50%; bottom: 0.85rem;
  transform: translateX(-50%);
  z-index: 2;
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.42rem 0.9rem;
  border-radius: 100px;
  background: rgba(10, 9, 7, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(250, 248, 243, 0.16);
  font-family: var(--label);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--paper-100);
  white-space: nowrap;
}
.portrait__badge i {
  width: 6px; height: 6px; border-radius: 50%;
  background: #7bb356;
  box-shadow: 0 0 0 3px rgba(123, 179, 86, 0.22);
  animation: pulse 2.2s var(--ease) infinite;
  flex: none;
}

.portrait__cap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--rule-soft);
  color: var(--fg-faint);
}
.portrait__tools { display: inline-flex; align-items: center; gap: 0.65rem; }
.portrait__tools .mark { color: var(--fg-faint); transition: color 0.35s var(--ease); }
.portrait__tools:hover .mark { color: var(--brand); }
.portrait__tools em {
  font-style: normal;
  font-size: 0.72rem;
  color: var(--fg-faint);
  white-space: nowrap;
}

@media (max-width: 64rem) {
  .portrait { width: min(100%, 20rem); margin-top: 1rem; }
}

/* ── In-article FAQ ──────────────────────────────────────────────────── */
.artfaq { margin-top: clamp(3rem, 6vw, 4.5rem); }
.artfaq .faq summary { font-size: var(--t-h4); }

/* ── Post cards (blog index + related) ───────────────────────────────── */
.postgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
  gap: clamp(1rem, 2vw, 1.6rem);
}
.postcard {
  display: flex;
  flex-direction: column;
  background: var(--bg-raise);
  border: 1px solid var(--rule-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.5s var(--ease), border-color 0.4s var(--ease);
}
.postcard:hover { transform: translateY(-5px); border-color: var(--rule); }
.postcard__m {
  aspect-ratio: 1200 / 630;
  overflow: hidden;
  background: var(--bg-sink);
  border-bottom: 1px solid var(--rule-soft);
}
.postcard__m img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}
.postcard:hover .postcard__m img { transform: scale(1.04); }
.postcard__b {
  padding: 1.25rem;
  display: flex; flex-direction: column; gap: 0.7rem;
  flex: 1;
}
.postcard__t { font-size: var(--t-h4); letter-spacing: -0.025em; line-height: 1.22; }
.postcard__p { font-size: var(--t-sm); color: var(--fg-dim); flex: 1; }
.postcard__d { color: var(--fg-faint); margin-top: auto; }

/* Featured post image now carries real artwork */
.feature__m { padding: 0; background: var(--bg-sink); overflow: hidden; }
.feature__m img { width: 100%; height: 100%; object-fit: cover; }

/* ── Article lead image ──────────────────────────────────────────────── */
.postlead { margin: 0; transform: translateY(-3.5rem); }
.postlead picture {
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--rule);
  box-shadow: 0 1.5rem 3.5rem -1rem rgba(10, 9, 7, 0.4);
}
.postlead img { width: 100%; height: auto; display: block; }
@media (max-width: 48rem) { .postlead { transform: translateY(-2rem); } }

/* Optional-field hint, the quiet counterpart to .req */
.field .opt {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--fg-faint);
  font-size: 0.92em;
}

/* Inline field error, shown before the form is submitted */
.field__err {
  margin-top: 0.4rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #e4614a;
}
.input[aria-invalid="true"] { border-color: #d8452e; }

/* Success dialog on small screens */
@media (max-width: 30rem) {
  .modal { width: 94vw; max-width: 94vw; }
  .modal__in { padding: 1.5rem 1.25rem; }
  .modal__in .btn-row { flex-direction: column; }
  .modal__in .btn-row .btn { width: 100%; }
}

/* Header call to action sits a little tighter than a body button */
.hdr__cta .btn {
  padding: 0.7rem 1.35rem;
  font-size: 0.88rem;
}

/* Quieter aside under the success message */
.modal__note {
  margin: -0.6rem 0 1.5rem;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--fg-faint);
  text-wrap: pretty;
}

/* ============================================================================
   Web design portfolio
   The cards carry no imagery, because screenshotting other people's live
   sites ages badly and hotlinking them is worse. Each one takes a stable
   accent from its own domain instead, so the grid reads as a set without
   pretending to be a gallery.
   ========================================================================= */

.wdp-hero { display: grid; grid-template-columns: 1fr auto; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.wdp-hero__body { min-width: 0; }

.wdp-portrait { margin: 0; text-align: center; }
.wdp-portrait picture { display: block; }
.wdp-portrait img {
    width: clamp(7rem, 14vw, 11rem);
    height: clamp(7rem, 14vw, 11rem);
    border-radius: 50%;
    object-fit: cover;
    object-position: 50% 18%;
    border: 1px solid var(--rule);
    filter: grayscale(1) contrast(1.04);
}
.wdp-portrait figcaption { margin-top: 0.8rem; color: var(--fg-faint); max-width: 12rem; line-height: 1.5; }

/* ── The arc ─────────────────────────────────────────────────────────── */
.wdp-arc {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
    border: 1px solid var(--rule-soft);
    border-radius: var(--radius);
    overflow: hidden;
}
.wdp-arc__step {
    position: relative;
    padding: 1.5rem 1.3rem 1.6rem;
    border-right: 1px solid var(--rule-soft);
    border-bottom: 1px solid var(--rule-soft);
}
.wdp-arc__dot {
    position: absolute; top: 0; left: 0; width: 100%; height: 2px;
    background: linear-gradient(90deg, var(--accent), transparent);
    opacity: 0.55;
}
.wdp-arc__n { display: block; color: var(--fg-faint); margin-bottom: 0.7rem; }
.wdp-arc__t { font-size: 1.02rem; margin: 0 0 0.45rem; letter-spacing: -0.01em; }
.wdp-arc__p { font-size: 0.87rem; line-height: 1.6; color: var(--fg-dim); margin: 0; text-wrap: pretty; }

/* ── Filter ──────────────────────────────────────────────────────────── */
.wdp-filter { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 2rem; }
.wdp-chip {
    font: inherit;
    font-size: 0.84rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.95rem;
    border: 1px solid var(--rule);
    border-radius: 100px;
    background: transparent;
    color: var(--fg-dim);
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.wdp-chip:hover { color: var(--fg); border-color: var(--rule-strong, var(--fg-faint)); }
.wdp-chip.is-on { color: var(--bg); background: var(--fg); border-color: var(--fg); }
.wdp-chip__n { font-size: 0.72rem; opacity: 0.62; font-variant-numeric: tabular-nums; }

/* ── Groups and grid ─────────────────────────────────────────────────── */
.wdp-group { margin-top: clamp(2.5rem, 6vw, 4.5rem); }
.wdp-group[hidden] { display: none; }
.wdp-group__head { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: clamp(1rem, 4vw, 3rem); align-items: start; margin-bottom: 1.8rem; }
.wdp-group__t { font-size: var(--t-h3); margin: 0 0 0.3rem; letter-spacing: -0.015em; }
.wdp-group__k { color: var(--accent); }
.wdp-group__intro { font-size: 0.95rem; line-height: 1.7; color: var(--fg-dim); margin: 0; text-wrap: pretty; }

.wdp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); border: 1px solid var(--rule-soft); border-radius: var(--radius); overflow: hidden; }

.wdp-card {
    --c: var(--accent);
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 1.6rem 1.4rem 1.5rem;
    border-right: 1px solid var(--rule-soft);
    border-bottom: 1px solid var(--rule-soft);
    text-decoration: none;
    color: inherit;
    isolation: isolate;
    transition: background 0.3s ease;
}
.wdp-card::before {
    content: "";
    position: absolute; inset: 0; z-index: -1;
    background: radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, var(--c) 13%, transparent), transparent 70%);
    opacity: 0;
    transition: opacity 0.35s ease;
}
.wdp-card:hover::before, .wdp-card:focus-visible::before { opacity: 1; }
.wdp-card:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.wdp-card__n { color: var(--fg-faint); font-variant-numeric: tabular-nums; }
.wdp-card__bar { display: block; width: 1.9rem; height: 2px; background: var(--c); margin: 0.9rem 0 1rem; transition: width 0.35s ease; }
.wdp-card:hover .wdp-card__bar { width: 3.4rem; }
.wdp-card__t { font-size: 1.08rem; margin: 0 0 0.3rem; letter-spacing: -0.01em; }
.wdp-card__d { color: var(--c); word-break: break-word; }
.wdp-card__p { font-size: 0.86rem; line-height: 1.62; color: var(--fg-dim); margin: 0.8rem 0 1.3rem; text-wrap: pretty; }
.wdp-card__go { margin-top: auto; display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.8rem; color: var(--fg-faint); transition: color 0.2s ease, gap 0.2s ease; }
.wdp-card:hover .wdp-card__go { color: var(--fg); gap: 0.7rem; }

.wdp-note { margin-top: 2.5rem; font-size: 0.8rem; color: var(--fg-faint); line-height: 1.6; max-width: 46rem; text-wrap: pretty; }

@media (max-width: 860px) {
    .wdp-hero { grid-template-columns: 1fr; }
    .wdp-portrait { justify-self: start; text-align: left; }
    .wdp-portrait figcaption { max-width: none; }
    .wdp-group__head { grid-template-columns: 1fr; gap: 0.9rem; }
}
@media (prefers-reduced-motion: reduce) {
    .wdp-card, .wdp-card::before, .wdp-card__bar, .wdp-card__go, .wdp-chip { transition: none; }
}

/* ── Stack rows ──────────────────────────────────────────────────────── */
.wdp-stack { display: grid; gap: 0; border-top: 1px solid var(--rule-soft); margin-top: 2.5rem; }
.wdp-stack__row {
    display: grid;
    grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
    gap: clamp(1rem, 4vw, 3rem);
    align-items: baseline;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--rule-soft);
}
.wdp-stack__t { font-size: 1.02rem; margin: 0 0 0.3rem; letter-spacing: -0.01em; }
.wdp-stack__n { font-size: 0.83rem; color: var(--fg-faint); margin: 0; line-height: 1.55; text-wrap: pretty; }
.wdp-stack__items { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.wdp-stack__item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.42rem 0.8rem;
    font-size: 0.82rem;
    color: var(--fg-dim);
    border: 1px solid var(--rule-soft);
    border-radius: 100px;
    transition: color 0.2s ease, border-color 0.2s ease;
}
.wdp-stack__item:hover { color: var(--fg); border-color: var(--rule); }
.wdp-stack__item .mark { flex: none; color: var(--brand, currentColor); }
@media (max-width: 760px) {
    .wdp-stack__row { grid-template-columns: 1fr; gap: 0.9rem; }
}
@media (prefers-reduced-motion: reduce) { .wdp-stack__item { transition: none; } }

/* ── Portrait figures inside an article ──────────────────────────────── */
.article .pfig { margin: 2.4em 0; }
.article .pfig img { margin: 0; display: block; width: 100%; height: auto; }
.article .pfig figcaption { margin-top: 0.8rem; font-size: 0.85rem; line-height: 1.55; color: var(--fg-dim); text-wrap: pretty; }

/* Small and circular: a presence next to the opening argument. */
.article .pfig--round { float: right; width: min(42%, 11rem); margin: 0.2em 0 1.4em 1.8rem; }
.article .pfig--round img { border-radius: 50%; aspect-ratio: 1; object-fit: cover; object-position: 50% 16%; border: 1px solid var(--rule-soft); }
.article .pfig--round figcaption { font-size: 0.78rem; }

/* Tall: offset so the column keeps its rhythm. */
.article .pfig--tall { float: left; width: min(46%, 13rem); margin: 0.3em 1.8rem 1.4em 0; }
.article .pfig--tall img { border-radius: var(--radius-lg); aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 14%; border: 1px solid var(--rule-soft); }

/* Closing mark. The source is nearly square, so a wide band would crop the
   face; a centred near-square keeps the head intact and still reads as a
   deliberate full stop rather than a third repeat of the same photo. */
.article .pfig--wide { display: grid; justify-items: center; text-align: center; }
.article .pfig--wide picture { width: min(100%, 19rem); }
.article .pfig--wide img { border-radius: var(--radius-lg); aspect-ratio: 1; object-fit: cover; object-position: 50% 14%; border: 1px solid var(--rule-soft); }
.article .pfig--wide figcaption { max-width: 22rem; }

@media (max-width: 620px) {
    .article .pfig--round, .article .pfig--tall { float: none; width: min(60%, 12rem); margin: 2em 0; }
}

/* ── Work submenu ────────────────────────────────────────────────────────
   The parent stays a real link to /work. The menu opens on hover and on
   focus-within, so a keyboard reaches it by tabbing rather than needing a
   separate control. */
.nav__grp { position: relative; display: inline-flex; align-items: center; }
.nav__top { display: inline-flex; align-items: center; gap: 0.3rem; }
.nav__chev { opacity: 0.55; transition: transform 0.3s var(--ease), opacity 0.3s var(--ease); }
.nav__grp:hover .nav__chev,
.nav__grp:focus-within .nav__chev { transform: rotate(180deg); opacity: 1; }

.nav__menu {
    position: absolute;
    top: 100%;
    left: 50%;
    translate: -50% 0;
    margin-top: 0.85rem;
    min-width: 14.5rem;
    display: grid;
    padding: 0.4rem;
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    background: color-mix(in srgb, var(--ink-800) 94%, transparent);
    backdrop-filter: blur(14px);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px);
    transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0.22s;
    z-index: 60;
}
/* A gap would drop the hover between trigger and menu; this bridges it. */
.nav__menu::before { content: ""; position: absolute; left: 0; right: 0; top: -0.9rem; height: 0.9rem; }
.nav__grp:hover .nav__menu,
.nav__grp:focus-within .nav__menu { opacity: 1; visibility: visible; transform: translateY(0); }

.nav__menu a {
    display: grid;
    gap: 0.1rem;
    padding: 0.6rem 0.75rem;
    border-radius: 3px;
    transition: background 0.2s var(--ease);
}
.nav__menu a::after { display: none; }
.nav__menu a:hover, .nav__menu a[aria-current] { background: rgba(250, 248, 243, 0.06); }
.nav__menu-l { font-size: 0.86rem; color: var(--paper-100); }
.nav__menu a[aria-current] .nav__menu-l { color: var(--flame); }
.nav__menu-n { font-size: 0.72rem; color: var(--fg-faint); letter-spacing: 0.02em; }

/* Drawer sub-items sit indented under their parent. */
.drawer__sub { padding-left: 1.5rem !important; opacity: 0.82; }
.drawer__sub::before {
    content: "";
    position: absolute; left: 0.35rem; top: 50%;
    width: 0.65rem; height: 1px; background: var(--rule);
}
@media (prefers-reduced-motion: reduce) {
    .nav__menu, .nav__chev { transition: none; }
}
