/* MARCELO DESIGN X - styles. Pure black, Satoshi 400/500/700 only, compact leading. */
:root {
  --bg: #000000;
  --surface: #141414;
  --border: #262626;
  --text: #ffffff;
  --muted: #9a9a9a;
  --accent: #FF8200;
  --display: "Satoshi", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "Satoshi", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --pad: clamp(20px, 6vw, 90px);
  /* One vertical rhythm for the home sections (top and bottom padding of each), so the
     space between two sections is always 2x this. Based on width, not height: the old
     13vh values shrank on short laptop screens and left some joins at ~95px. */
  --section-space: clamp(96px, 11vw, 168px);
  /* One content width for every home section, so they all share the same left and right
     edge on wide screens. Services used to run edge to edge and Latest Articles at 1400px. */
  --measure: 1240px;
  /* Type lock - real Fontshare cuts only. 600 does not exist. */
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-bold: 700;
  --fs-body: 15px;
  --fs-ui: 13px;
  --fs-eyebrow: 12px;
  --fs-caption: 12px;
  --lh-display: 0.95;
  --lh-title: 1.08;
  --lh-headline: 1.2;
  --lh-body: 1.45;
  --lh-reading: 1.5;
  --track-display: -0.035em;
  --track-title: -0.025em;
  --track-headline: -0.015em;
  --track-ui: 0;
  --track-eyebrow: 0.06em;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--mono);
  font-size: var(--fs-body);
  font-weight: var(--fw-regular);
  line-height: var(--lh-body);
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: 0; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

section, .footer { padding-left: var(--pad); padding-right: var(--pad); }

/* ---------- fixed header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 18px var(--pad);
  transition: background 0.4s, backdrop-filter 0.4s, border-color 0.4s, padding 0.4s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom-color: var(--border);
  padding-top: 12px; padding-bottom: 12px;
}
/* The logo is a handwritten signature: the letters sit in the top half of the box and the
   g/j loops hang below, so the box is nudged down a little to centre the letters, not the box. */
.site-logo { display: inline-flex; flex-shrink: 0; line-height: 0; }
.site-logo img { display: block; width: 186px; height: auto; transform: translateY(3px); }
.site-nav { display: none; }
.site-nav a { font-size: var(--fs-ui); font-weight: var(--fw-medium); letter-spacing: var(--track-ui); color: var(--text); opacity: 0.85; transition: opacity 0.25s, color 0.25s; position: relative; }
.site-nav a:hover, .site-nav a[aria-current="page"] { opacity: 1; color: var(--accent); }
.site-cta {
  font-size: var(--fs-ui); font-weight: var(--fw-medium); letter-spacing: var(--track-ui);
  padding: 10px 22px;
  border: 1px solid var(--border); border-radius: 999px;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
  white-space: nowrap;
}
.site-cta:hover { background: #fff; color: #000; border-color: #fff; }
.site-cta { margin-left: auto; margin-right: 22px; }
.site-burger { display: inline-flex; align-items: center; gap: 12px; padding: 0; z-index: 110; background: none; border: 0; color: inherit; cursor: pointer; }
.site-burger-label {
  font-size: var(--fs-eyebrow); font-weight: var(--fw-medium);
  letter-spacing: var(--track-eyebrow); text-transform: uppercase; color: var(--text);
}
.site-burger-dial {
  position: relative; display: block; width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.07); border: 1px solid var(--border);
  transition: background 0.3s, border-color 0.3s;
}
.site-burger-dial span {
  position: absolute; left: 50%; top: 50%; width: 18px; height: 2px; background: var(--text);
  transform-origin: center; transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.site-burger-dial span:nth-child(1) { transform: translate(-50%, calc(-50% - 3.5px)); }
.site-burger-dial span:nth-child(2) { transform: translate(-50%, calc(-50% + 3.5px)); }
/* Hover only where there is a pointer: on touch the orange ring stuck to the close button after a tap. */
@media (hover: hover) {
  .site-burger:hover .site-burger-dial { border-color: var(--accent); background: rgba(255, 130, 0, 0.12); }
}
body.nav-open .site-burger-dial span:nth-child(1) { transform: translate(-50%, -50%) rotate(45deg); }
body.nav-open .site-burger-dial span:nth-child(2) { transform: translate(-50%, -50%) rotate(-45deg); }

/* ---------- full-screen menu ---------- */
.site-menu {
  position: fixed; inset: 0; z-index: 95;
  background: var(--surface);
  display: flex; align-items: center;
  padding: 130px var(--pad) 60px;
  overflow-y: auto; overscroll-behavior: contain;
  opacity: 0; visibility: hidden;
  transition: opacity 0.5s ease, visibility 0s linear 0.5s;
}
body.nav-open .site-menu { opacity: 1; visibility: visible; transition: opacity 0.5s ease, visibility 0s; }
html.nav-open, body.nav-open { overflow: hidden; }
.site-menu-inner {
  width: 100%; max-width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto;
  align-items: end; gap: 48px;
}
.site-menu-nav { display: flex; flex-direction: column; align-items: flex-start; }
.site-menu-link {
  font-family: var(--display); font-size: clamp(38px, 7.5vw, 88px); font-weight: var(--fw-bold);
  letter-spacing: var(--track-display); line-height: 1.08; color: var(--muted);
  opacity: 0; transform: translateY(24px); transition: color 0.3s;
}
body.nav-open .site-menu-link {
  opacity: 1; transform: none;
  transition: opacity 0.5s ease calc(var(--i) * 0.06s + 0.1s), transform 0.5s ease calc(var(--i) * 0.06s + 0.1s), color 0.3s;
}
.site-menu-link:hover, .site-menu-link:focus-visible { color: var(--text); }
.site-menu-link[aria-current="page"], .site-menu-sublink[aria-current="page"] { color: var(--text); }
.site-menu-link[aria-current="page"]::after {
  content: ""; display: inline-block; vertical-align: middle;
  width: 0.18em; height: 0.18em; margin-left: 0.3em; border-radius: 50%; background: var(--accent);
}
.site-menu-lang {
  padding: 9px 16px;
  border: 1px solid var(--border); border-radius: 999px;
  font-size: var(--fs-ui); font-weight: var(--fw-medium);
  letter-spacing: var(--track-ui); line-height: 1; color: var(--text);
  transition: border-color 0.3s, color 0.3s;
}
.site-menu-lang:hover, .site-menu-lang:focus-visible { border-color: var(--accent); color: var(--accent); }
.site-menu-group { display: flex; flex-direction: column; align-items: flex-start; width: 100%; }
.site-menu-toggle {
  background: none; border: 0; padding: 0; cursor: pointer; text-align: left;
  display: inline-flex; align-items: center; gap: 0.3em;
}
/* Caret rotates rather than swapping glyphs, so the row height never jumps. */
.site-menu-caret {
  width: 0.3em; height: 0.3em;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: translateY(-0.12em) rotate(45deg); transition: transform 0.35s ease;
}
.site-menu-toggle[aria-expanded="true"] { color: var(--text); }
.site-menu-toggle[aria-expanded="true"] .site-menu-caret { transform: translateY(0.06em) rotate(225deg); }
.site-menu-sub { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.45s ease; }
.site-menu-toggle[aria-expanded="true"] + .site-menu-sub { grid-template-rows: 1fr; }
/* visibility, not just overflow, so collapsed links leave the tab order too. */
.site-menu-sub-inner {
  overflow: hidden; visibility: hidden;
  display: flex; flex-direction: column; align-items: flex-start;
  transition: visibility 0s linear 0.45s;
}
.site-menu-toggle[aria-expanded="true"] + .site-menu-sub .site-menu-sub-inner {
  visibility: visible; transition: visibility 0s;
}
.site-menu-sublink {
  font-size: clamp(15px, 1.7vw, 20px); font-weight: var(--fw-medium);
  letter-spacing: var(--track-headline); color: var(--muted);
  padding: 9px 0 9px 22px; transition: color 0.3s;
}
.site-menu-sub-inner > :first-child { padding-top: 16px; }
.site-menu-sub-inner > :last-child { padding-bottom: 8px; }
.site-menu-sublink:hover, .site-menu-sublink:focus-visible { color: var(--text); }
.site-menu-side {
  display: flex; flex-direction: column; align-items: flex-end; gap: 10px; text-align: right;
  opacity: 0; transform: translateY(24px);
}
body.nav-open .site-menu-side {
  opacity: 1; transform: none;
  transition: opacity 0.5s ease calc(var(--i) * 0.06s + 0.1s), transform 0.5s ease calc(var(--i) * 0.06s + 0.1s);
}
.site-menu-mail { font-size: clamp(15px, 1.6vw, 19px); color: var(--text); transition: color 0.3s; }
.site-menu-mail:hover { color: var(--accent); }
.site-menu-place { font-size: var(--fs-caption); color: var(--muted); }
.site-menu-social { display: flex; align-items: center; gap: 18px; margin-top: 14px; }
.site-menu-social a { font-size: var(--fs-ui); color: var(--muted); transition: color 0.3s; }
.site-menu-social a:hover { color: var(--text); }
/* Phones and tablets: pages as full-width rows at the top, contact as its own block at the
   bottom. White links for contrast, hairlines for rhythm, 44px+ targets everywhere. */
@media (max-width: 860px) {
  .site-menu { align-items: stretch; padding: 100px var(--pad) calc(28px + env(safe-area-inset-bottom, 0px)); }
  .site-menu-inner {
    display: flex; flex-direction: column; align-items: stretch; justify-content: space-between;
    min-height: 100%; gap: 40px;
  }
  .site-menu-nav { width: 100%; border-top: 1px solid var(--border); }
  .site-menu-link {
    display: flex; align-items: center; width: 100%;
    padding: 14px 0; border-bottom: 1px solid var(--border);
    font-size: clamp(30px, 8.4vw, 44px); line-height: 1.1; color: var(--text);
  }
  .site-menu-toggle { justify-content: space-between; }
  .site-menu-caret { margin-right: 6px; }
  .site-menu-group { border-bottom: 1px solid var(--border); }
  .site-menu-group > .site-menu-link { border-bottom: 0; }
  .site-menu-sublink { padding: 11px 0 11px 18px; font-size: 17px; }
  .site-menu-sub-inner > :first-child { padding-top: 2px; }
  .site-menu-sub-inner > :last-child { padding-bottom: 16px; }
  .site-menu-side { align-items: flex-start; gap: 6px; text-align: left; }
  .site-menu-mail { font-size: 18px; padding-block: 12px; margin-block: -12px; }
  .site-menu-place { font-size: 14px; }
  .site-menu-social { width: 100%; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
  .site-menu-social a {
    display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px;
    border: 1px solid var(--border); border-radius: 999px; color: var(--text);
  }
  .site-menu-social .site-menu-lang { margin-left: auto; }
}


/* Built service entrances use the same power2.out timing without waiting for JS. */
@media (prefers-reduced-motion: no-preference) {
  .service-prerendered .sv-head [data-hero],
  .service-prerendered .sv-still {
    --enter-y: 40px;
    animation: service-enter 0.6s cubic-bezier(0.215, 0.61, 0.355, 1) 0.05s backwards;
    animation-timing-function: linear(0, 0.271, 0.488, 0.657, 0.784, 0.875, 0.936, 0.973, 0.992, 0.999, 1);
  }
  .service-prerendered .sv-head [data-hero="title"] { --enter-y: 50px; animation-duration: 0.7s; animation-delay: 0.15s; }
  .service-prerendered .sv-head [data-hero="lead"] { animation-delay: 0.3s; }
  .service-prerendered .sv-still { --enter-y: 60px; animation-duration: 0.8s; animation-delay: 0s; }
}
@keyframes service-enter {
  from { opacity: 0.001; transform: translateY(var(--enter-y)); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- hero ---------- */
.hero {
  isolation: isolate;
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding-top: 90px; padding-bottom: 60px;
  text-align: center;
}
/* Keep the moving portrait behind every text row, including after entrances end. */
.hero-portrait { z-index: 0; }
.hero-intro, .hero-meta, .hero-scroll { position: relative; z-index: 1; }
.hero-meta {
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap; justify-content: center;
  margin-top: clamp(18px, 3vh, 32px);
  font-size: var(--fs-caption); font-weight: var(--fw-regular); color: var(--muted); letter-spacing: 0;
}
.hero-avail { display: flex; align-items: center; gap: 8px; color: var(--text); }
.hero-avail-dot { width: 7px; height: 7px; border-radius: 50%; background: #12B76A; animation: avail-pulse 2s ease-in-out infinite; }
@keyframes avail-pulse { 0%,100%{opacity:1} 50%{opacity:0.4} }
.hero-role, .hero-place { position: relative; padding-left: 22px; }
.hero-role::before, .hero-place::before { content: ""; position: absolute; left: 0; top: 50%; width: 12px; height: 1px; background: var(--border); }
/* Two real buttons under the intro at every width. On wider screens the meta row stays as a
   quieter caption below them; phones drop it, since they also hide the header CTA. */
.hero-ctas {
  display: flex; gap: 12px; justify-content: center;
  width: 100%; margin-top: clamp(20px, 3vh, 32px);
  position: relative; z-index: 1;
}
.hero-meta { order: 1; }
.hero-scroll { order: 2; }
.hero-cta {
  flex: 1 1 0; max-width: 180px; min-height: 48px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 20px;
  border: 1px solid var(--border); border-radius: 999px;
  font-size: var(--fs-ui); font-weight: var(--fw-medium); letter-spacing: var(--track-ui); text-transform: uppercase;
  color: var(--text);
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.hero-cta:hover, .hero-cta--primary { background: #fff; color: #000; border-color: #fff; }
@media (max-width: 560px) {
  .hero-meta { display: none; }
}

/* ---------- marquee band ---------- */
.marquee {
  overflow: hidden; white-space: nowrap;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 20px 0;
  position: relative; z-index: 2; background: var(--bg);
}
.marquee-track { display: inline-flex; align-items: center; will-change: transform; animation: marquee-slide 30s linear infinite; }
.marquee-item {
  display: inline-flex; align-items: center;
  font-family: var(--display); font-weight: var(--fw-medium);
  font-size: clamp(22px, 3vw, 38px); letter-spacing: var(--track-headline);
  padding-right: 8px;
}
.marquee-star { color: var(--accent); font-size: 0.6em; margin: 0 34px; }
@keyframes marquee-slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }
/* The portrait also yields to short screens, so the buttons, meta row and scroll cue all fit
   in the first view on a laptop. About 400px of text and padding sit below it. */
.hero-portrait {
  width: min(470px, 62vw, max(300px, calc((100svh - 400px) * 0.8)));
  aspect-ratio: 4 / 5;
  overflow: hidden;
  animation: hero-portrait-enter 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
  /* GSAP power3.out, sampled at 5% intervals: starts before JS loads. */
  animation-timing-function: linear(0, 0.185494, 0.3439, 0.477994, 0.5904, 0.683594, 0.7599, 0.821494, 0.8704, 0.908494, 0.9375, 0.958994, 0.9744, 0.984994, 0.9919, 0.996094, 0.9984, 0.999494, 0.9999, 0.999994, 1);
  -webkit-mask-image: radial-gradient(ellipse 90% 88% at 50% 42%, #000 55%, transparent 78%);
  mask-image: radial-gradient(ellipse 90% 88% at 50% 42%, #000 55%, transparent 78%);
}
.hero-portrait img { width: 100%; height: 100%; object-fit: cover; }
@keyframes hero-portrait-enter {
  from { opacity: 0.001; transform: translateY(50px) scale(0.5); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@media (prefers-reduced-motion: no-preference) {
  .home-prerendered .hero-intro,
  .home-prerendered .hero-meta,
  .home-prerendered .hero-ctas,
  .home-prerendered .hero-scroll {
    --enter-y: 40px;
    animation: home-text-enter 0.55s cubic-bezier(0.165, 0.84, 0.44, 1) 0.1s backwards;
    /* Same sampled power3.out as the portrait entrance. */
    animation-timing-function: linear(0, 0.185494, 0.3439, 0.477994, 0.5904, 0.683594, 0.7599, 0.821494, 0.8704, 0.908494, 0.9375, 0.958994, 0.9744, 0.984994, 0.9919, 0.996094, 0.9984, 0.999494, 0.9999, 0.999994, 1);
  }
  .home-prerendered .hero-meta,
  .home-prerendered .hero-ctas { animation-delay: 0.18s; }
  .home-prerendered .hero-scroll { --enter-y: 10px; animation-duration: 0.5s; animation-delay: 0.42s; }
}
@keyframes home-text-enter {
  from { opacity: 0.001; transform: translateY(var(--enter-y)); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-intro {
  max-width: 640px;
  margin-top: clamp(4px, 1.5vh, 20px);
  font-size: var(--fs-body);
  font-weight: var(--fw-regular);
  line-height: var(--lh-body);
}
.hero-scroll {
  margin-top: clamp(16px, 3.5vh, 40px);
  font-size: var(--fs-ui);
  font-weight: var(--fw-medium);
  letter-spacing: var(--track-ui);
  color: var(--text);
  display: flex; align-items: center; gap: 10px;
}
.hero-scroll .chev {
  width: 10px; height: 10px;
  border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  animation: chev-bob 2.2s ease-in-out infinite;
}
@keyframes chev-bob {
  0%, 100% { transform: rotate(45deg) translate(-2px, -2px); }
  50% { transform: rotate(45deg) translate(2px, 2px); }
}

/* ---------- services ---------- */
.services {
  padding-top: var(--section-space); padding-bottom: var(--section-space);
  overflow-x: clip;
}
.svc-row {
  max-width: var(--measure); margin-left: auto; margin-right: auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: clamp(32px, 6vw, 110px);
  padding: clamp(64px, 11vh, 140px) 0;
  border-top: 1px solid var(--border);
}
.svc-row:last-child { border-bottom: 1px solid var(--border); }
.svc-word {
  font-family: var(--display); font-weight: var(--fw-bold);
  font-size: clamp(56px, 8.5vw, 124px);
  line-height: var(--lh-display); letter-spacing: var(--track-display);
  flex-shrink: 0;
}
.svc-text { max-width: 480px; font-size: var(--fs-body); line-height: var(--lh-body); }
.svc-row[data-align="right"] { flex-direction: row-reverse; }
.svc-row[data-align="right"] .svc-text { text-align: left; }

/* ---------- latest work ---------- */
.work {
  position: relative;
  padding-top: var(--section-space);
  padding-bottom: var(--section-space);
  overflow-x: clip;
}
.work-heading .work-outline { color: transparent; -webkit-text-stroke: 2px var(--text); }
.work-heading-svg { display: inline-block; max-width: 96vw; height: auto; vertical-align: middle; color: var(--text); }
.work-heading {
  position: sticky; top: 37vh;
  margin: 0 auto clamp(560px, 72vh, 926px);
  width: 100%; text-align: center;
  font-family: var(--display); font-weight: var(--fw-bold);
  font-size: clamp(88px, 14vw, 200px);
  letter-spacing: var(--track-display); line-height: var(--lh-display);
  z-index: 0; pointer-events: none;
  white-space: nowrap;
}
.work-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(180px, 28vh, 400px) clamp(60px, 9vw, 130px);
  max-width: var(--measure); margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 70px);
}
.work-card:nth-child(even) { margin-top: clamp(100px, 14vh, 200px); }
.work-card {
  position: relative; border-radius: 12px; overflow: hidden;
  aspect-ratio: 1.1 / 1; cursor: pointer;
  background: var(--surface);
}
.work-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.work-card:hover img { transform: scale(1.04); }
/* The shadow alone loses on white screenshots (HorizonX), so a scrim sits under the label. */
.work-card::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 50%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0));
  pointer-events: none;
}
.work-label {
  position: absolute; z-index: 1; left: 22px; bottom: 20px;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.6);
}
.work-label-title {
  font-family: var(--display); font-weight: var(--fw-medium);
  font-size: clamp(22px, 2.4vw, 28px); line-height: var(--lh-headline); letter-spacing: var(--track-headline);
}
.work-label-cat { font-size: var(--fs-ui); font-weight: var(--fw-medium); letter-spacing: var(--track-ui); color: rgba(255, 255, 255, 0.85); margin-top: 6px; }
.work-cursor {
  position: fixed; z-index: 60;
  padding: 10px 20px; border-radius: 999px;
  background: #fff; color: #000;
  font-size: var(--fs-ui); font-weight: var(--fw-medium); letter-spacing: var(--track-ui); font-family: var(--mono);
  pointer-events: none; opacity: 0;
  transform: translate(-50%, -130%) scale(0.85);
  transition: opacity 0.25s, transform 0.25s;
  white-space: nowrap;
}
.work-cursor.is-on { opacity: 1; transform: translate(-50%, -130%) scale(1); }

/* ---------- shared big heading ----------
   The red radial glow behind headings (here and behind Latest Work) was removed on
   2026-11-07 at Marcelo's request: plain black, no glows. .section-glow stays only as the
   positioning hook the pages already carry. */
.section-glow { position: relative; overflow-x: clip; }
.big-heading {
  position: relative;
  font-family: var(--display); font-weight: var(--fw-bold);
  font-size: clamp(44px, 6.5vw, 84px);
  letter-spacing: var(--track-title); line-height: var(--lh-title);
  text-align: center;
  margin-bottom: clamp(56px, 9vh, 110px);
}

/* ---------- why ---------- */
.why { position: relative; z-index: 2; background: var(--bg); padding-top: var(--section-space); padding-bottom: var(--section-space); }
.why-cols {
  position: relative;
  max-width: var(--measure); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.why-item { border-top: 1px solid var(--border); }
.why-item:last-child { border-bottom: 1px solid var(--border); }
.why-head {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 26px 4px; text-align: left;
}
.why-head-title {
  font-family: var(--display); font-weight: var(--fw-medium);
  font-size: clamp(22px, 2.4vw, 28px); letter-spacing: var(--track-headline); line-height: var(--lh-headline);
}
.why-arrow { font-size: 20px; transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1); }
.why-item.is-open .why-arrow { transform: rotate(90deg); }
.why-body { height: 0; overflow: hidden; }
.why-body p { padding: 2px 40px 28px 4px; color: var(--text); font-size: var(--fs-body); line-height: var(--lh-body); }
.why-img { border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 3; }
.why-img img { width: 100%; height: 100%; object-fit: cover; }
.why-img[data-crystal-cube] { position: relative; }
.why-img[data-crystal-cube] img { transition: opacity 0.6s ease; }
.why-img.is-3d img { opacity: 0; }
/* HorizonX crystal cube (assets/crystal-cube/why-cube.js). Horizontal drags turn it; vertical
   swipes still scroll the page on touch screens. */
.why-cube { position: absolute; inset: 0; }
.why-cube canvas { display: block; width: 100%; height: 100%; cursor: grab; touch-action: pan-y; }
.why-cube canvas:active { cursor: grabbing; }

/* ---------- testimonials ---------- */
/* Same 1240px measure as Why and FAQ, so the three sections share one left edge. */
.quotes { position: relative; z-index: 2; background: var(--bg); padding-top: var(--section-space); padding-bottom: var(--section-space); }
.quotes-grid { max-width: var(--measure); margin: 0 auto; }
.quote-lead {
  margin: 0;
  display: grid; grid-template-columns: clamp(56px, 8vw, 120px) minmax(0, 1fr);
  column-gap: clamp(16px, 3vw, 40px);
}
.quote-mark {
  grid-row: 1 / span 2;
  font-family: var(--display); font-weight: var(--fw-bold);
  font-size: clamp(88px, 13vw, 180px); line-height: 0.8;
  color: var(--accent);
}
.quote-lead blockquote { margin: 0; }
.quote-lead p {
  max-width: 30ch;
  font-size: clamp(24px, 3.1vw, 42px); font-weight: var(--fw-regular);
  letter-spacing: var(--track-headline); line-height: 1.22; color: var(--text);
  text-wrap: pretty;
}
.quote-lead figcaption, .quote-more figcaption {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px;
  margin-top: clamp(24px, 4vh, 36px);
}
.quote-lead figcaption::before {
  content: ""; align-self: center;
  width: 32px; height: 1px; background: var(--accent);
}
.quote-name { font-size: 16px; font-weight: var(--fw-medium); color: var(--text); }
.quote-role { font-size: 14px; color: var(--muted); }
.quotes-more {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 5vw, 80px);
  margin-top: clamp(56px, 9vh, 110px);
  padding-top: clamp(32px, 5vh, 56px);
  border-top: 1px solid var(--border);
}
.quote-more { margin: 0; }
.quote-more blockquote { margin: 0; }
.quote-more p {
  max-width: 44ch;
  font-size: clamp(17px, 1.5vw, 20px); line-height: var(--lh-reading); color: var(--text);
  text-wrap: pretty;
}
.quote-more figcaption { margin-top: 20px; }

/* ---------- faq ---------- */
.faq {
  position: relative; z-index: 2; background: var(--bg);
  padding-top: var(--section-space); padding-bottom: var(--section-space);
  display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(36px, 6vw, 100px);
  max-width: calc(var(--measure) + 2 * var(--pad)); margin: 0 auto;
  overflow-x: clip;
}
/* The intro stays in view while the list scrolls past it; below the header (about 72px). */
.faq-left { align-self: start; position: sticky; top: 112px; }
.faq-heading {
  font-family: var(--display); font-weight: var(--fw-bold);
  font-size: clamp(40px, 5vw, 64px);
  letter-spacing: var(--track-title); line-height: var(--lh-title);
  margin-bottom: 26px;
}
.faq-sub { max-width: 36ch; font-size: 16px; line-height: var(--lh-body); color: var(--muted); }
.faq-cta:empty { display: none; }
.faq-cta .sv-pill { margin-top: clamp(28px, 4vh, 40px); }
.faq-list { align-self: start; border-bottom: 1px solid var(--border); }
.faq-item { border-top: 1px solid var(--border); }
.faq-h { margin: 0; font: inherit; }
.faq-head {
  width: 100%; display: grid; grid-template-columns: 40px minmax(0, 1fr) 24px;
  align-items: baseline; gap: 16px;
  padding: 26px 4px; text-align: left; color: var(--text);
}
.faq-n {
  font-size: 14px; font-weight: var(--fw-medium); letter-spacing: var(--track-ui);
  font-variant-numeric: tabular-nums; color: var(--muted);
  transition: color 0.3s;
}
.faq-q {
  font-family: var(--display); font-weight: var(--fw-medium);
  font-size: clamp(18px, 1.7vw, 22px); letter-spacing: var(--track-headline); line-height: 1.3;
}
.faq-icon { position: relative; width: 16px; height: 16px; align-self: center; justify-self: end; }
.faq-icon::before, .faq-icon::after {
  content: ""; position: absolute; left: 0; top: 50%;
  width: 16px; height: 1.5px; background: currentColor;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.faq-icon::after { transform: rotate(90deg); }
.faq-item.is-open .faq-icon::before { transform: rotate(45deg); }
.faq-item.is-open .faq-icon::after { transform: rotate(135deg); }
.faq-item.is-open .faq-n, .faq-head:hover .faq-n { color: var(--accent); }
.faq-head:focus-visible { outline-offset: -2px; }
.faq-body { height: 0; overflow: hidden; }
.faq-body p { max-width: 60ch; padding: 0 44px 28px 60px; color: var(--muted); font-size: 16px; line-height: var(--lh-reading); }

/* ---------- blog ---------- */
.blog { position: relative; z-index: 2; background: var(--bg); padding-top: var(--section-space); padding-bottom: var(--section-space); }
.blog-grid {
  position: relative;
  max-width: var(--measure); margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.blog-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 20px;
  display: flex; flex-direction: column; gap: 18px;
  transition: border-color 0.3s;
}
.blog-card:hover { border-color: #3a3a3a; }
.blog-img { border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 10; }
.blog-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1); }
.blog-card:hover .blog-img img { transform: scale(1.05); }
.blog-date { font-size: var(--fs-caption); font-weight: var(--fw-regular); color: var(--muted); }
.blog-title {
  font-family: var(--display); font-weight: var(--fw-medium);
  font-size: clamp(22px, 2.4vw, 28px); line-height: var(--lh-headline); letter-spacing: var(--track-headline);
  transition: color 0.3s;
}
.blog-more { font-size: var(--fs-caption); font-weight: var(--fw-regular); transition: color 0.3s; }
.blog-more::after { content: "  →"; }
.blog-card:hover .blog-title, .blog-card:hover .blog-more { color: var(--accent); }
.blog-all {
  max-width: var(--measure); margin: clamp(36px, 6vh, 56px) auto 0;
  text-align: center;
}
.blog-all a {
  font-size: var(--fs-ui); font-weight: var(--fw-medium); letter-spacing: var(--track-ui);
  color: var(--muted); transition: color 0.3s;
}
.blog-all a::after { content: "  →"; }
.blog-all a:hover { color: var(--accent); }

/* ---------- footer (nor.ma directory, MDX tokens) ---------- */
.footer {
  position: relative; z-index: 2; background: var(--bg);
  padding-top: clamp(64px, 10vh, 80px); padding-bottom: 8px;
  overflow: hidden; scroll-margin-top: 88px;
}
.footer-shell {
  max-width: 1400px; margin: 0 auto;
  /* Brand column beside five link columns. The links get three quarters of the width so every
     label stays on one line; below 1360px the brand moves above them. */
  display: grid; grid-template-columns: minmax(280px, 1fr) minmax(0, 3fr);
  gap: clamp(40px, 6vw, 64px);
  align-items: start;
}
.footer-logo { display: inline-block; line-height: 0; }
.footer-logo img { display: block; width: 200px; height: auto; }
.footer-thesis {
  margin-top: 16px; max-width: 28ch;
  font-size: var(--fs-body); line-height: var(--lh-body); color: var(--muted);
}
.footer-mailrow {
  margin-top: 24px; max-width: 22rem;
  display: flex; align-items: center; gap: 8px;
  padding: 6px 6px 6px 18px;
  border: 1px solid var(--border); border-radius: 999px;
}
.footer-mailrow-addr {
  min-width: 0; flex: 1;
  font-size: 14px; font-weight: var(--fw-regular); color: var(--muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  transition: color 0.25s;
}
.footer-mailrow-addr:hover { color: var(--text); }
.footer-mailrow-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 36px; padding: 0 16px; flex-shrink: 0;
  border-radius: 999px; background: var(--text); color: var(--bg);
  font-size: var(--fs-ui); font-weight: var(--fw-medium); letter-spacing: var(--track-ui);
  transition: background 0.25s, color 0.25s;
}
.footer-mailrow-btn:hover { background: var(--accent); color: #fff; }
.footer-links {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 40px) clamp(16px, 2vw, 24px);
}
.footer-col-title {
  font-size: var(--fs-ui); font-weight: var(--fw-medium); letter-spacing: var(--track-ui); color: var(--text); margin-bottom: 14px;
}
.footer-col ul { list-style: none; }
.footer-col li + li { margin-top: 10px; }
.footer-col a {
  display: inline-block; font-size: 14px; font-weight: var(--fw-regular); line-height: 1.4; color: var(--muted);
  padding: 2px 0; min-height: 24px;
  transition: color 0.25s;
}
.footer-col a:hover { color: var(--accent); }
.footer-bar {
  max-width: 1400px; margin: 56px auto 0;
  border-top: 1px solid var(--border);
  padding: 24px 0 28px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px 24px;
}
.footer-copy, .footer-place { font-size: var(--fs-caption); font-weight: var(--fw-regular); color: var(--muted); }
.footer-bar-group { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; }
.footer-bar-links { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 20px; }
.footer-bar-links a {
  display: inline-flex; align-items: center; min-height: 24px;
  font-size: var(--fs-caption); font-weight: var(--fw-regular); color: var(--muted);
  transition: color 0.25s;
}
.footer-bar-links a:hover { color: var(--accent); }

/* Gallery band under the bar (Marcelo's pick, 2026-11-15): two rows of the site's own work, dark
   grey, sliding slowly in opposite directions and fading in from the top. The thumbnails come
   pre-darkened, so there is no CSS filter on the moving images. */
.footer-shell, .footer-bar { position: relative; z-index: 1; }
.footer-gallery {
  position: relative; pointer-events: none;
  margin: -120px calc(-1 * var(--pad)) -8px;
  height: clamp(240px, 30vw, 460px);
  overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 14px; padding-bottom: 18px;
  -webkit-mask: linear-gradient(180deg, transparent 0, transparent 150px, #000 75%);
          mask: linear-gradient(180deg, transparent 0, transparent 150px, #000 75%);
}
/* Spacing is a margin on every image, not a gap, so one copy of the list is exactly half the row
   and the -50% loop lands on the same picture with no jump. */
.footer-gallery-row { display: flex; width: max-content; }
.footer-gallery-row img {
  margin-right: 14px;
  width: clamp(180px, 18vw, 280px); height: auto; aspect-ratio: 16 / 10;
  object-fit: cover; border-radius: 12px;
}
@media (prefers-reduced-motion: no-preference) {
  .footer-gallery-row { animation: footer-gallery-slide 70s linear infinite; }
  .footer-gallery-row + .footer-gallery-row { animation-direction: reverse; animation-duration: 85s; }
}
@keyframes footer-gallery-slide { to { transform: translateX(-50%); } }
@media (max-width: 560px) {
  /* The phone thumbnails are 112px tall, so the desktop overlap and 150px fade would hide the top
     row. Less overlap and a shorter fade keep both rows in view. */
  .footer-gallery {
    margin-top: -24px; height: 270px;
    -webkit-mask: linear-gradient(180deg, transparent 0, #000 70px);
            mask: linear-gradient(180deg, transparent 0, #000 70px);
  }
}

/* ---------- reveal defaults ---------- */
/* Hidden initial states are applied by GSAP from() before first paint.
   No CSS hiding here: if JS fails, the page stays fully visible. */

/* ---------- responsive ---------- */
@media (max-width: 1360px) {
  /* Beside the brand, five columns get too narrow for their labels, so the brand goes on top
     and the links take the full width. */
  .footer-shell { grid-template-columns: 1fr; gap: 48px; }
}
@media (max-width: 1024px) {
  .faq { grid-template-columns: 1fr; }
  .faq-left { position: static; }
  .footer-links { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .work-grid { grid-template-columns: 1fr; gap: 32px; }
  .work-heading { position: relative; transform: none; left: auto; top: auto; margin-bottom: 48px; white-space: normal; }
  .why-cols { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .quotes-more { grid-template-columns: 1fr; }
  .quote-lead { grid-template-columns: 1fr; }
  .quote-mark { grid-row: auto; font-size: 96px; line-height: 0.6; margin-bottom: 8px; }
  .sv-quotes-more { grid-template-columns: 1fr; }
  .svc-row { flex-direction: column; align-items: flex-start; gap: 24px; padding: 48px 0; }
  .svc-row[data-align="right"] { flex-direction: column; }
  .footer-links { grid-template-columns: 1fr 1fr; }
  .footer-mailrow { max-width: none; }
  .footer-bar { flex-wrap: wrap; }
}
@media (max-width: 560px) {
  .faq-head { grid-template-columns: 28px minmax(0, 1fr) 20px; gap: 12px; padding: 22px 0; }
  .faq-body p { padding: 0 32px 24px 40px; }
  .site-logo img { width: 150px; }
  .site-cta { display: none; }
  .site-burger-label { display: none; }
  .footer-mailrow-btn { min-height: 44px; }
  .footer-bar { flex-direction: column; align-items: flex-start; }
  .footer-bar-group { flex-direction: column; align-items: flex-start; }
}
/* The address and the button share one pill down to 360px. Below that they stack
   inside a rounded box whose radius is the button's plus the 6px inset, so the
   two curves stay parallel instead of a two-line stadium. */
@media (max-width: 359px) {
  .footer-mailrow { flex-direction: column; align-items: stretch; gap: 6px; padding: 6px; border-radius: 28px; }
  .footer-mailrow-addr { flex: none; padding: 10px 12px 4px; white-space: normal; overflow-wrap: anywhere; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .hero-portrait { animation: none; }
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    transition-duration: 0.001s !important;
    transition-delay: 0s !important;
  }
  .site-menu-link, .site-menu-side { transform: none; }
}

/* ---------- about page ---------- */
.ab-hero {
  min-height: 92vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding-top: clamp(120px, 18vh, 200px); padding-bottom: clamp(50px, 8vh, 100px);
}
.ab-eyebrow {
  font-size: var(--fs-eyebrow); font-weight: var(--fw-medium); letter-spacing: var(--track-eyebrow); text-transform: uppercase;
  color: var(--accent); margin-bottom: clamp(18px, 3vh, 30px);
}
.ab-title {
  font-size: clamp(56px, 8.5vw, 124px); font-weight: var(--fw-bold); letter-spacing: var(--track-display); line-height: var(--lh-display);
}
.ab-title em, .ab-big em, .ab-h2 em, .ab-copy em { font-style: normal; color: var(--accent); }
.ab-lead {
  max-width: 640px; margin-top: clamp(22px, 4vh, 40px);
  font-size: clamp(16px, 1.6vw, 21px); font-weight: var(--fw-medium); letter-spacing: var(--track-headline); line-height: var(--lh-headline); color: var(--muted);
}

.ab-manifesto {
  padding-top: clamp(80px, 13vh, 170px); padding-bottom: clamp(80px, 13vh, 170px);
  max-width: 1400px; margin: 0 auto;
}
.ab-big {
  font-size: clamp(44px, 6.5vw, 84px); font-weight: var(--fw-bold); letter-spacing: var(--track-title); line-height: var(--lh-title);
  max-width: 1024px;
}
.ab-copy {
  max-width: 640px; margin-top: clamp(24px, 4vh, 44px);
  font-size: var(--fs-body); line-height: var(--lh-body); color: var(--muted);
}
.ab-copy strong { color: var(--text); font-weight: var(--fw-medium); }
.ab-copy.center { margin-left: auto; margin-right: auto; text-align: center; }

.ab-story {
  padding-top: clamp(80px, 13vh, 170px); padding-bottom: clamp(80px, 13vh, 170px);
  max-width: 1400px; margin: 0 auto;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(48px, 8vw, 120px); align-items: center;
}
.ab-h2 { font-size: clamp(40px, 5vw, 64px); font-weight: var(--fw-bold); letter-spacing: var(--track-title); line-height: var(--lh-title); }
.ab-h2.center { text-align: center; }
.ab-story-text p { margin-top: 22px; color: var(--muted); font-size: var(--fs-body); line-height: var(--lh-body); max-width: 560px; }
.ab-story-img { border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 5; }
.ab-story-img img { width: 100%; height: 100%; object-fit: cover; }
.ab-stats { display: flex; gap: clamp(32px, 5vw, 60px); margin-top: clamp(32px, 5vh, 56px); }
.ab-stat b { display: block; font-size: clamp(28px, 3vw, 40px); font-weight: var(--fw-bold); letter-spacing: var(--track-title); }
.ab-stat span { font-size: var(--fs-caption); font-weight: var(--fw-regular); color: var(--muted); letter-spacing: 0; }

.ab-values { padding-top: clamp(80px, 13vh, 170px); padding-bottom: clamp(80px, 13vh, 170px); }
.ab-values-list { max-width: 860px; margin: clamp(36px, 6vh, 60px) auto 0; display: flex; flex-direction: column; }
.ab-value {
  display: grid; grid-template-columns: 70px 220px 1fr; gap: 24px; align-items: baseline;
  padding: 30px 0; border-top: 1px solid var(--border);
}
.ab-value:last-child { border-bottom: 1px solid var(--border); }
.ab-value-num { font-size: var(--fs-eyebrow); font-weight: var(--fw-medium); letter-spacing: var(--track-eyebrow); color: var(--accent); }
.ab-value h3 { font-size: clamp(22px, 2.4vw, 28px); font-weight: var(--fw-medium); letter-spacing: var(--track-headline); line-height: var(--lh-headline); }
.ab-value p { color: var(--muted); font-size: var(--fs-body); line-height: var(--lh-body); max-width: 560px; }

.ab-recog { padding-top: clamp(80px, 13vh, 170px); padding-bottom: clamp(80px, 13vh, 170px); text-align: center; }
.ab-recog-tags { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: clamp(30px, 5vh, 50px); }
.ab-tag {
  padding: 10px 22px; border: 1px solid var(--border); border-radius: 999px;
  font-size: var(--fs-ui); font-weight: var(--fw-medium); letter-spacing: var(--track-ui); color: var(--muted);
  transition: border-color 0.3s, color 0.3s;
}
.ab-tag:hover { border-color: var(--accent); color: var(--accent); }

.ab-cta {
  padding-top: clamp(90px, 15vh, 190px); padding-bottom: clamp(90px, 15vh, 190px);
  text-align: center;
}
.ab-cta .big-heading { margin-bottom: 18px; }
.ab-cta-btn {
  display: inline-flex; align-items: center; margin-top: clamp(30px, 5vh, 48px);
  padding: 15px 40px; border-radius: 999px; border: 1px solid var(--text);
  background: var(--text); color: var(--bg);
  font-size: var(--fs-ui); font-weight: var(--fw-medium); letter-spacing: var(--track-ui);
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.ab-cta-btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

@media (max-width: 860px) {
  .ab-story { grid-template-columns: 1fr; }
  .ab-story-img { aspect-ratio: 4 / 3; order: -1; }
  .ab-value { grid-template-columns: 44px 1fr; }
  .ab-value p { grid-column: 2; }
  .ab-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
}

/* ---------- portfolio page ---------- */
.pf-hero {
  min-height: 72vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding-top: clamp(120px, 18vh, 200px); padding-bottom: clamp(40px, 6vh, 80px);
}

.pf-work { padding-bottom: clamp(80px, 13vh, 170px); }

.pf-filters {
  display: flex; gap: 12px; flex-wrap: wrap; justify-content: center;
  margin-bottom: clamp(40px, 7vh, 72px);
}
.pf-filter {
  padding: 10px 22px; border: 1px solid var(--border); border-radius: 999px;
  background: transparent; color: var(--muted);
  font-family: inherit; font-size: var(--fs-ui); font-weight: var(--fw-medium); letter-spacing: var(--track-ui);
  cursor: pointer;
  transition: border-color 0.3s, color 0.3s, background 0.3s;
}
.pf-filter sup { font-size: var(--fs-caption); margin-left: 4px; opacity: 0.7; }
.pf-filter:hover { border-color: var(--accent); color: var(--accent); }
.pf-filter.is-active { background: var(--text); border-color: var(--text); color: var(--bg); }

.pf-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(56px, 9vh, 100px) clamp(40px, 6vw, 90px);
  max-width: 1240px; margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 70px);
}
.pf-card:nth-child(even) { margin-top: clamp(50px, 8vh, 110px); }
.pf-archive { text-align: center; margin-top: clamp(56px, 9vh, 100px); }

@media (max-width: 860px) {
  .pf-grid { grid-template-columns: 1fr; gap: 32px; }
  .pf-card:nth-child(even) { margin-top: 0; }
}

/* ---------- blog post page ---------- */
.post-hero {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding-top: clamp(140px, 20vh, 220px); padding-bottom: clamp(36px, 6vh, 64px);
}
.post-back {
  font-size: var(--fs-ui); font-weight: var(--fw-medium); letter-spacing: var(--track-ui); color: var(--muted);
  margin-bottom: clamp(26px, 4vh, 42px); transition: color 0.3s;
}
.post-back:hover { color: var(--accent); }
.post-title {
  font-size: clamp(32px, 4.6vw, 62px); font-weight: var(--fw-bold); letter-spacing: var(--track-title); line-height: var(--lh-title);
  max-width: 980px;
}
.post-meta {
  display: flex; gap: 10px; align-items: center;
  margin-top: clamp(20px, 3.5vh, 34px);
  font-size: var(--fs-ui); font-weight: var(--fw-medium); letter-spacing: var(--track-ui); color: var(--muted);
}
.post-author { color: var(--text); }
.post-meta-dot { opacity: 0.5; }

.post-cover {
  max-width: 1180px; margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 70px);
  border-radius: 16px; overflow: hidden;
}
@media (prefers-reduced-motion: no-preference) {
  .post-prerendered .post-hero [data-hero] {
    --enter-y: 40px;
    animation: post-text-enter 0.6s cubic-bezier(0.215, 0.61, 0.355, 1) 0.08s backwards;
    animation-timing-function: linear(0, 0.271, 0.488, 0.657, 0.784, 0.875, 0.936, 0.973, 0.992, 0.999, 1);
  }
  .post-prerendered .post-hero [data-hero="back"] { --enter-y: 20px; animation-duration: 0.5s; animation-delay: 0.02s; }
  .post-prerendered .post-hero [data-hero="title"] { --enter-y: 50px; animation-duration: 0.7s; animation-delay: 0.18s; }
  .post-prerendered .post-hero [data-hero="meta"] { --enter-y: 30px; animation-duration: 0.5s; animation-delay: 0.32s; }
  .post-prerendered .post-cover {
    animation: post-cover-enter 0.8s cubic-bezier(0.215, 0.61, 0.355, 1) 0.42s backwards;
    /* GSAP power2.out, sampled at 10% intervals. */
    animation-timing-function: linear(0, 0.271, 0.488, 0.657, 0.784, 0.875, 0.936, 0.973, 0.992, 0.999, 1);
  }
}
@keyframes post-text-enter {
  from { opacity: 0.001; transform: translateY(var(--enter-y)); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes post-cover-enter {
  from { opacity: 0.001; transform: translateY(60px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.post-cover img {
  width: 100%; height: 100%; object-fit: cover;
  aspect-ratio: 21 / 10; border-radius: 16px; display: block;
}

.post-body {
  max-width: 720px; margin: 0 auto;
  padding: clamp(48px, 8vh, 90px) clamp(20px, 5vw, 70px) clamp(60px, 10vh, 110px);
}
.post-p {
  font-size: clamp(16px, 1.5vw, 18px); line-height: var(--lh-reading); color: var(--muted);
  margin-bottom: 1.4em;
}
.post-toc {
  padding: clamp(20px, 3vw, 32px); margin-bottom: 2.4em;
  border: 1px solid var(--border); border-radius: 14px; background: var(--surface);
}
.post-toc-label { font-size: 13px; font-weight: var(--fw-medium); margin-bottom: 16px; }
.post-toc ul { list-style: none; margin: 0; padding: 0; }
.post-toc li + li { margin-top: 12px; }
.post-toc a { font-size: 15px; line-height: var(--lh-reading); overflow-wrap: anywhere; }
.post-h2[id], .post-h3[id], .post-h4[id] { scroll-margin-top: 100px; }
.post-p:first-of-type { font-size: clamp(18px, 1.8vw, 21px); line-height: var(--lh-reading); color: var(--text); }
.post-h2 {
  font-size: clamp(24px, 2.6vw, 34px); font-weight: var(--fw-bold); letter-spacing: var(--track-title);
  margin: 2em 0 0.7em;
}
.post-quote {
  margin: 2.4em 0; padding: clamp(22px, 4vh, 34px) clamp(24px, 4vw, 40px);
  border-left: 2px solid var(--accent); border-radius: 0 16px 16px 0;
  background: var(--surface);
  font-size: clamp(19px, 2vw, 24px); font-weight: var(--fw-medium); letter-spacing: var(--track-headline); line-height: var(--lh-reading);
  color: var(--text);
}

.post-h3 {
  font-size: clamp(20px, 2vw, 25px); font-weight: var(--fw-bold); letter-spacing: var(--track-title);
  margin: 1.7em 0 0.6em;
}
.post-h4 {
  font-size: clamp(17px, 1.6vw, 19px); font-weight: var(--fw-medium); letter-spacing: var(--track-ui);
  color: var(--text); margin: 1.5em 0 0.5em;
}

.post-body a {
  color: var(--text); text-decoration: underline;
  text-decoration-color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px;
  transition: color 0.25s ease, text-decoration-color 0.25s ease;
}
.post-body a:hover { color: var(--accent); text-decoration-color: transparent; }

.post-list {
  font-size: clamp(16px, 1.5vw, 18px); line-height: var(--lh-reading); color: var(--muted);
  margin: 0 0 1.6em; padding-left: 1.35em;
}
.post-list li { margin-bottom: 0.6em; }
.post-list li::marker { color: var(--accent); }
.post-list--ul { list-style: disc; }
.post-list--ol { list-style: decimal; }

.post-figure { margin: 2.4em 0; }
.post-figure img {
  width: 100%; height: auto; display: block;
  border-radius: 16px; background: var(--surface);
}
.post-figure figcaption {
  margin-top: 12px; font-size: var(--fs-ui); letter-spacing: var(--track-ui);
  color: var(--muted); text-align: center;
}

.post-table-wrap { margin: 2.2em 0; overflow-x: auto; border-radius: 16px; background: var(--surface); }
.post-table {
  width: 100%; border-collapse: collapse;
  font-size: clamp(14px, 1.3vw, 16px); line-height: var(--lh-reading); color: var(--muted);
}
.post-table td { padding: 14px 18px; border-bottom: 1px solid var(--border); text-align: left; }
.post-table tr:first-child td { color: var(--text); font-weight: var(--fw-medium); }
.post-table tr:last-child td { border-bottom: 0; }

.post-embed { margin: 2.4em 0; border-radius: 16px; overflow: hidden; background: var(--surface); }
.post-embed iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; display: block; }

.post-more {
  max-width: 1240px; margin: 0 auto;
  padding: clamp(40px, 7vh, 80px) clamp(20px, 5vw, 70px) clamp(80px, 13vh, 170px);
}
.post-more .ab-h2 { margin-bottom: clamp(32px, 5vh, 52px); }
.post-more-grid { max-width: 100%; padding: 0; margin: 0; }
a.blog-card { display: block; color: inherit; }

.post-missing {
  display: none;
  flex-direction: column; align-items: center; text-align: center;
  padding-top: clamp(160px, 24vh, 260px); padding-bottom: clamp(80px, 13vh, 160px);
}
body.is-missing .post-missing { display: flex; }
body.is-missing .post-hero,
body.is-missing .post-cover,
body.is-missing .post-body,
body.is-missing .post-more { display: none; }
.post-missing .ab-lead { margin-bottom: clamp(28px, 4vh, 40px); }

/* ---------- journal listing ---------- */
.jn-hero {
  min-height: 56vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding-top: clamp(120px, 16vh, 180px); padding-bottom: clamp(20px, 3vh, 40px);
}

.jn-featured {
  padding-top: 0;
  padding-bottom: clamp(80px, 13vh, 170px);
}
.jn-featured-link {
  max-width: 1400px; margin: 0 auto;
  display: grid; grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(36px, 6vw, 100px); align-items: center;
  color: inherit;
}
.jn-featured-media {
  border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 3;
  background: var(--surface);
}
.jn-featured-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.jn-featured-link:hover .jn-featured-media img { transform: scale(1.04); }
.jn-kicker {
  font-size: var(--fs-eyebrow); font-weight: var(--fw-medium); letter-spacing: var(--track-eyebrow);
  color: var(--muted); margin-bottom: clamp(16px, 2.5vh, 24px);
}
.jn-kicker span { color: var(--accent); text-transform: uppercase; }
.jn-featured-title {
  font-size: clamp(28px, 3.8vw, 52px); font-weight: var(--fw-bold);
  letter-spacing: var(--track-title); line-height: var(--lh-title);
  transition: color 0.3s;
}
.jn-featured-link:hover .jn-featured-title { color: var(--accent); }
.jn-featured-excerpt {
  margin-top: clamp(16px, 2.5vh, 24px);
  font-size: var(--fs-body); line-height: var(--lh-body); color: var(--muted);
  max-width: 520px;
}
.jn-featured-more {
  display: inline-block; margin-top: clamp(22px, 3.5vh, 34px);
  font-size: var(--fs-ui); font-weight: var(--fw-medium); letter-spacing: var(--track-ui);
  transition: color 0.3s;
}
.jn-featured-more::after { content: "  →"; }
.jn-featured-link:hover .jn-featured-more { color: var(--accent); }

.jn-index {
  max-width: 1080px; margin: 0 auto;
  padding-top: clamp(20px, 3vh, 40px);
  padding-bottom: clamp(80px, 13vh, 170px);
}
.jn-index .ab-h2 { margin-bottom: clamp(28px, 5vh, 48px); }
.jn-list { display: flex; flex-direction: column; }
.jn-row {
  display: grid; grid-template-columns: 70px 1fr auto;
  gap: 24px; align-items: start;
  padding: 32px 0; border-top: 1px solid var(--border);
  color: inherit;
  min-height: 44px;
}
.jn-row:last-child { border-bottom: 1px solid var(--border); }
.jn-num {
  font-size: var(--fs-eyebrow); font-weight: var(--fw-medium); letter-spacing: var(--track-eyebrow); color: var(--accent);
  padding-top: 6px;
}
.jn-row-meta {
  font-size: var(--fs-caption); font-weight: var(--fw-regular); letter-spacing: 0; color: var(--muted);
  margin-bottom: 10px;
}
.jn-row-title {
  font-size: clamp(22px, 2.4vw, 28px); font-weight: var(--fw-medium);
  letter-spacing: var(--track-headline); line-height: var(--lh-headline);
  transition: color 0.3s;
}
.jn-row:hover .jn-row-title { color: var(--accent); }
.jn-row-excerpt {
  margin-top: 10px; max-width: 640px;
  font-size: var(--fs-body); line-height: var(--lh-body); color: var(--muted);
}
.jn-row-go {
  font-size: 20px; color: var(--muted); padding-top: 8px;
  transition: color 0.3s, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.jn-row:hover .jn-row-go { color: var(--accent); transform: translateX(4px); }
.jn-empty { color: var(--muted); font-size: 15px; padding: 28px 0; border-top: 1px solid var(--border); }
.jn-more {
  display: block; margin: clamp(32px, 5vh, 56px) auto 0;
  padding: 14px 34px; border: 1px solid var(--border); border-radius: 999px;
  background: transparent; color: var(--fg); font: inherit; font-size: var(--fs-caption);
  cursor: pointer; transition: color 0.3s, border-color 0.3s;
}
.jn-more:hover { color: var(--accent); border-color: var(--accent); }
.jn-more[hidden] { display: none; }
.jn-pagination {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
  margin-top: clamp(32px, 5vh, 56px);
}
.jn-pagination .jn-more { margin: 0; padding: 12px 16px; color: var(--text); }
.jn-topics { margin-top: clamp(32px, 5vh, 56px); color: var(--muted); font-size: var(--fs-body); }
.jn-topics summary { cursor: pointer; width: fit-content; margin-inline: auto; padding-block: 11px; margin-block: -11px; }
.jn-topics .jn-pagination { margin-top: 20px; }
.jn-pagination [aria-current="page"] { border-color: var(--accent); color: var(--accent); cursor: default; }


@media (max-width: 860px) {
  .jn-featured-link { grid-template-columns: 1fr; }
  .jn-featured-media { aspect-ratio: 16 / 10; order: -1; }
  .jn-row { grid-template-columns: 44px 1fr auto; gap: 16px; padding: 26px 0; }
  .jn-row-excerpt { display: none; }
}

/* ---------- service page ----------
   One grammar, repeated: a full-bleed hairline opens each row, a small uppercase
   label sits left, the readable copy sits right. Nothing else. */
.sv-head {
  max-width: 1400px; margin: 0 auto;
  padding-top: clamp(132px, 20vh, 220px);
  padding-bottom: clamp(40px, 7vh, 80px);
}
.sv-eyebrow {
  font-size: var(--fs-eyebrow); font-weight: var(--fw-medium);
  letter-spacing: var(--track-eyebrow); text-transform: uppercase; color: var(--muted);
  margin-bottom: clamp(20px, 4vh, 40px);
}
.sv-title {
  font-size: clamp(44px, 8vw, 104px); font-weight: var(--fw-medium);
  letter-spacing: var(--track-display); line-height: var(--lh-display);
  max-width: 14ch;
}
.sv-lead {
  margin-top: clamp(20px, 3vh, 32px); max-width: 58ch;
  font-size: clamp(16px, 1.5vw, 20px); font-weight: var(--fw-regular);
  line-height: var(--lh-reading); color: var(--muted);
}

.sv-still {
  max-width: 1400px; margin: 0 auto;
  padding: 0 var(--pad) clamp(56px, 10vh, 120px);
}
.sv-still img {
  width: 100%; aspect-ratio: 16 / 8; object-fit: cover;
  border-radius: 20px; background: var(--surface);
}
.sv-still-cap {
  margin-top: 14px;
  font-size: var(--fs-caption); font-weight: var(--fw-regular); color: var(--muted);
}

/* --- section: a big left-aligned title, then the rows --- */
.sv-sec {
  max-width: 1400px; margin: 0 auto;
  padding-top: clamp(56px, 10vh, 128px);
  padding-bottom: clamp(24px, 4vh, 56px);
}
.sv-sec-head { margin-bottom: clamp(32px, 6vh, 72px); }
.sv-sec-title {
  font-size: clamp(34px, 5.6vw, 76px); font-weight: var(--fw-medium);
  letter-spacing: var(--track-display); line-height: var(--lh-title);
  max-width: 16ch;
}
.sv-sec-note {
  margin-top: 14px; max-width: 46ch;
  font-size: var(--fs-body); font-weight: var(--fw-regular); color: var(--muted);
}

/* --- the row --- */
.sv-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.5fr) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 64px);
  padding: clamp(32px, 5vh, 56px) 0 clamp(48px, 9vh, 112px);
}
.sv-rule {
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: var(--border);
  transform-origin: left center;
}
.sv-row-label {
  align-self: start;
  font-size: var(--fs-eyebrow); font-weight: var(--fw-medium);
  letter-spacing: var(--track-eyebrow); text-transform: uppercase;
  line-height: var(--lh-body); color: var(--muted);
}
.sv-row-body { min-width: 0; }
.sv-row-text {
  max-width: 46ch;
  font-size: clamp(17px, 1.7vw, 24px); font-weight: var(--fw-regular);
  letter-spacing: var(--track-headline); line-height: var(--lh-reading); color: var(--text);
}

/* Outlined pill - the only button shape on the page. */
.sv-pill {
  display: inline-flex; align-items: center; justify-content: center;
  margin-top: clamp(20px, 3vh, 32px);
  min-height: 48px; padding: 0 28px;
  border: 1px solid var(--border); border-radius: 999px;
  font-size: var(--fs-ui); font-weight: var(--fw-medium); letter-spacing: var(--track-ui);
  color: var(--text);
  transition: border-color 0.35s, color 0.35s;
}
.sv-pill:hover { border-color: var(--accent); color: var(--accent); }
.sv-pill-lg { min-height: 58px; padding: 0 36px; font-size: clamp(14px, 1.3vw, 17px); }

/* --- proof --- */
.sv-proof {
  max-width: 1400px; margin: 0 auto;
  padding-top: clamp(56px, 10vh, 128px);
  padding-bottom: clamp(24px, 4vh, 56px);
}
.sv-quote {
  margin: 0; max-width: 32ch;
  font-size: clamp(20px, 2.6vw, 34px); font-weight: var(--fw-regular);
  letter-spacing: var(--track-headline); line-height: 1.3; color: var(--text);
}
.sv-quote-by {
  margin-top: 20px;
  font-size: var(--fs-ui); font-weight: var(--fw-medium); letter-spacing: var(--track-ui); color: var(--muted);
}

/* Further quotes sit under the main one in two quieter columns. */
.sv-quotes-more {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 64px);
  margin-top: clamp(48px, 8vh, 96px);
  padding-top: clamp(32px, 5vh, 56px);
  border-top: 1px solid var(--border);
}
.sv-quote-more { margin: 0; }
.sv-quote-more blockquote { margin: 0; }
.sv-quote-more p { font-size: clamp(16px, 1.5vw, 20px); line-height: var(--lh-reading); color: var(--text); max-width: 46ch; }
.sv-quote-more figcaption { margin-top: 16px; font-size: var(--fs-ui); font-weight: var(--fw-medium); letter-spacing: var(--track-ui); color: var(--muted); }
.sv-quote-more figcaption span::before { content: ", "; }

/* --- close --- */
.sv-close {
  max-width: 1400px; margin: 0 auto;
  padding-top: clamp(72px, 14vh, 176px);
  padding-bottom: clamp(72px, 14vh, 176px);
  border-top: 1px solid var(--border);
  margin-top: clamp(56px, 10vh, 120px);
}
.sv-close-title {
  font-size: clamp(34px, 5.6vw, 76px); font-weight: var(--fw-medium);
  letter-spacing: var(--track-display); line-height: var(--lh-title);
  max-width: 14ch;
}
.sv-close-text {
  margin-top: 20px; max-width: 46ch;
  font-size: clamp(16px, 1.5vw, 20px); font-weight: var(--fw-regular);
  line-height: var(--lh-reading); color: var(--muted);
}

.sv-missing {
  max-width: 1400px; margin: 0 auto;
  padding-top: clamp(160px, 24vh, 260px); padding-bottom: clamp(80px, 13vh, 160px);
}
.sv-missing .sv-lead { margin-bottom: clamp(24px, 4vh, 40px); }

/* --- reading layout ----------
   Long service pages (five sections or more) read as a document: a numbered index on the
   left stays in view while the sections run beside it as one text column. Each row stacks
   a white heading over muted body copy, the same pairing the articles use. */
.sv-read {
  --sv-hdr: 64px;
  max-width: 1400px; margin: 0 auto;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: minmax(200px, 260px) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 112px);
  align-items: start;
}
.sv-read .sv-sec {
  max-width: none; margin: 0;
  padding-left: 0; padding-right: 0;
  padding-top: clamp(56px, 9vh, 104px); padding-bottom: 0;
  scroll-margin-top: calc(var(--sv-hdr) + 32px);
}
/* The canvas is a size container: the card and column grids below follow the width of the
   text column, not of the screen, because the index takes a share of it on wide screens. */
.sv-canvas { min-width: 0; max-width: 760px; container-type: inline-size; }
/* Without dividers, the extra space before each section is what marks a new chapter.
   It is margin, so index jumps still land the title in the same place. */
.sv-read .sv-sec + .sv-sec { margin-top: clamp(24px, 4vh, 48px); }
.sv-read .sv-sec-head { margin-bottom: clamp(36px, 5vh, 56px); }
.sv-sec-num {
  margin-bottom: 14px;
  font-size: var(--fs-eyebrow); font-weight: var(--fw-medium);
  letter-spacing: var(--track-eyebrow); color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.sv-read .sv-sec-title {
  font-size: clamp(30px, 3.2vw, 46px);
  letter-spacing: var(--track-title); line-height: var(--lh-title);
  max-width: 22ch;
}
.sv-sec-title:focus { outline: none; }
.sv-sec-title:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
.sv-read .sv-sec-note { font-size: clamp(16px, 1.3vw, 18px); line-height: var(--lh-reading); max-width: 60ch; }
/* No divider per row on the service pages: they cut the text every few lines.
   Space separates the rows; the title (and in the reading layout, the number) opens each
   section. */
.sv-shaped .sv-rule { display: none; }
.sv-shaped .sv-rows { display: grid; gap: clamp(32px, 4.5vh, 44px); }
.sv-shaped .sv-row {
  grid-template-columns: 1fr;
  align-content: start;
  gap: 10px;
  padding: 0;
}
.sv-shaped .sv-row-label {
  font-size: clamp(17px, 1.4vw, 20px); font-weight: var(--fw-medium);
  letter-spacing: var(--track-headline); text-transform: none;
  line-height: var(--lh-headline); color: var(--text);
}
.sv-shaped .sv-row-text {
  max-width: 64ch;
  font-size: clamp(16px, 1.2vw, 17px); letter-spacing: 0;
  line-height: 1.65; color: var(--muted);
}
.sv-shaped .sv-pill { margin-top: 18px; }

/* Each section takes the shape of its content (render-service.js, layoutOf), on long and
   short service pages alike. */
.sv-shaped ol.sv-rows { list-style: none; margin: 0; padding: 0; }

/* A call to action inside the column is a text link. */
.sv-more, .sv-card-cta {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: var(--fs-ui); font-weight: var(--fw-medium); letter-spacing: var(--track-ui);
}
.sv-more {
  margin-top: 14px; min-height: 24px; color: var(--text);
  text-decoration: underline; text-decoration-color: #4a4a4a; text-underline-offset: 6px;
  transition: color 0.3s, text-decoration-color 0.3s;
}
.sv-more:hover { color: var(--accent); text-decoration-color: currentColor; }
.sv-arrow {
  width: 7px; height: 7px; flex-shrink: 0;
  border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor;
  transform: rotate(45deg); transition: transform 0.3s;
}
.sv-more:hover .sv-arrow, .sv-card:hover .sv-arrow { transform: translateX(3px) rotate(45deg); }

/* Short points: two columns once the text column is wide enough. */
@container (min-width: 600px) {
  .sv-sec--grid .sv-rows { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(32px, 6cqi, 56px); }
}

/* Cards: the links to other pages and the packages. Same surface as the home page cards. */
.sv-shaped .sv-sec--links .sv-rows,
.sv-shaped .sv-sec--plans .sv-rows { gap: 14px; }
@container (min-width: 560px) {
  .sv-sec--links .sv-rows { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container (min-width: 700px) {
  .sv-sec--plans .sv-rows { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.sv-shaped .sv-card {
  position: relative;
  display: flex; flex-direction: column; gap: 10px;
  padding: 24px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  transition: border-color 0.3s;
}
.sv-shaped .sv-card:hover { border-color: #3a3a3a; }
.sv-shaped .sv-card .sv-row-text { font-size: var(--fs-body); line-height: 1.6; }
.sv-card-link::after { content: ""; position: absolute; inset: 0; border-radius: 16px; }
.sv-card-link:focus-visible { outline: none; }
.sv-card-link:focus-visible::after { outline: 2px solid var(--accent); outline-offset: 3px; }
.sv-card-cta { margin-top: auto; padding-top: 12px; color: var(--muted); transition: color 0.3s; }
.sv-card:hover .sv-card-cta { color: var(--accent); }
.sv-shaped .sv-plan .sv-row-label { font-size: clamp(20px, 1.6vw, 24px); }
.sv-shaped .sv-plan .sv-row-body { flex: 1 0 auto; }
.sv-shaped .sv-plan .sv-pill { align-self: stretch; margin-top: 22px; padding: 0 18px; }

/* Questions: closed answers, opened one at a time. */
.sv-shaped .sv-sec--faq .sv-rows { gap: 10px; }
.sv-shaped .sv-faq-item {
  display: block; padding: 0;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  transition: border-color 0.3s;
}
.sv-shaped .sv-faq-item[open] { border-color: #3a3a3a; }
.sv-faq-q {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  min-height: 64px; padding: 16px 22px;
  border-radius: 13px; cursor: pointer; list-style: none;
}
.sv-faq-q::-webkit-details-marker { display: none; }
.sv-shaped .sv-faq-q .sv-row-label { align-self: center; font-size: clamp(16px, 1.2vw, 18px); }
.sv-faq-chev {
  width: 9px; height: 9px; flex-shrink: 0; margin-top: -4px;
  border-right: 1.6px solid var(--muted); border-bottom: 1.6px solid var(--muted);
  transform: rotate(45deg); transition: transform 0.3s, border-color 0.3s;
}
.sv-faq-q:hover .sv-faq-chev { border-color: var(--text); }
.sv-faq-item[open] .sv-faq-chev { transform: rotate(225deg); margin-top: 4px; }
.sv-shaped .sv-faq-item .sv-row-body { padding: 0 22px 22px; }

/* Steps: numbered, in order. */
.sv-shaped .sv-step { grid-template-columns: 44px minmax(0, 1fr); column-gap: 20px; row-gap: 8px; }
.sv-step-num {
  grid-column: 1; grid-row: 1 / span 2; align-self: start;
  display: grid; place-items: center; width: 44px; height: 44px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 50%;
  font-size: var(--fs-ui); font-weight: var(--fw-medium); font-variant-numeric: tabular-nums; color: var(--text);
}
.sv-shaped .sv-step .sv-row-label { grid-column: 2; align-self: center; min-height: 44px; display: flex; align-items: center; }
.sv-shaped .sv-step .sv-row-body { grid-column: 2; }

/* Short pages: the same shapes, full width under the big section titles. The wrapper is the
   size container, so the grids above follow the page width here. Questions keep a reading
   width; a process with room for it runs left to right, one column per step. */
.sv-open { container-type: inline-size; }
.sv-open .sv-sec + .sv-sec { margin-top: clamp(16px, 3vh, 40px); }
.sv-open .sv-sec--grid .sv-rows { row-gap: clamp(36px, 5vh, 56px); }
.sv-open .sv-sec--faq .sv-rows { max-width: 880px; }
@container (min-width: 900px) {
  .sv-open .sv-sec--steps .sv-rows {
    grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr);
    column-gap: clamp(32px, 4cqi, 64px);
  }
  .sv-open .sv-step { grid-template-columns: 1fr; row-gap: 12px; }
  .sv-open .sv-step-num { grid-row: auto; margin-bottom: 8px; }
  .sv-open .sv-step .sv-row-label,
  .sv-open .sv-step .sv-row-body { grid-column: 1; }
  .sv-open .sv-step .sv-row-label { min-height: 0; }
}

/* The index. */
.sv-toc {
  position: sticky; top: calc(var(--sv-hdr) + 40px);
  margin-top: clamp(56px, 9vh, 104px);
  max-height: calc(100vh - var(--sv-hdr) - 80px);
  overflow-y: auto; overscroll-behavior: contain;
  scrollbar-width: none;
}
.sv-toc::-webkit-scrollbar { display: none; }
.sv-toc-bar { display: block; list-style: none; pointer-events: none; }
.sv-toc-bar::-webkit-details-marker { display: none; }
.sv-toc-current, .sv-toc-chev { display: none; }
.sv-toc-label {
  display: block; margin-bottom: 20px;
  font-size: var(--fs-eyebrow); font-weight: var(--fw-medium);
  letter-spacing: var(--track-eyebrow); text-transform: uppercase; color: var(--muted);
}
.sv-toc-list { list-style: none; border-left: 1px solid var(--border); }
.sv-toc-link {
  display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 6px;
  margin-left: -1px; padding: 9px 0 9px 18px;
  border-left: 1px solid transparent;
  font-size: 14px; line-height: 1.4; color: var(--muted);
  transition: color 0.25s, border-color 0.25s;
}
.sv-toc-num { font-size: var(--fs-eyebrow); line-height: 1.6; font-variant-numeric: tabular-nums; }
.sv-toc-link:hover { color: var(--accent); }
.sv-toc-link[aria-current] { color: var(--text); border-left-color: var(--text); }
.sv-toc-link:focus-visible { outline-offset: 2px; }

/* Narrow screens: the index folds into a bar under the header that names the current
   section and opens the list on tap. Only once service.js runs (.is-live); before that the
   open list sits above the text as a plain index. */
@media (max-width: 1024px) {
  .sv-read { display: block; }
  .sv-canvas { max-width: none; }
  .sv-toc {
    position: static; max-height: none; overflow: visible;
    margin: 0 calc(-1 * var(--pad)); padding: 0 var(--pad);
  }
  .sv-toc-list { padding-bottom: 8px; }
  .sv-read.is-live .sv-toc {
    position: sticky; top: var(--sv-hdr); z-index: 90;
    margin-top: 8px;
    background: rgba(0, 0, 0, 0.86);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  }
  .sv-read.is-live .sv-toc-bar {
    display: grid; grid-template-columns: auto minmax(0, 1fr) 12px; align-items: center; gap: 14px;
    min-height: 52px; cursor: pointer; pointer-events: auto;
  }
  .sv-read.is-live .sv-toc-label { margin: 0; }
  .sv-read.is-live .sv-toc-current {
    display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    font-size: 14px; font-weight: var(--fw-medium); color: var(--text);
  }
  .sv-read.is-live .sv-toc-chev {
    display: block; width: 8px; height: 8px; margin-top: -4px;
    border-right: 1.5px solid var(--text); border-bottom: 1.5px solid var(--text);
    transform: rotate(45deg); transition: transform 0.25s;
  }
  .sv-read.is-live .sv-toc-fold[open] .sv-toc-chev { transform: rotate(-135deg); margin-top: 4px; }
  /* The open list floats over the text instead of pushing it down, so closing it after a
     tap does not move the section the page is scrolling to. */
  .sv-read.is-live .sv-toc-list {
    position: absolute; top: 100%; left: 0; right: 0;
    max-height: min(60vh, 520px); overflow-y: auto; overscroll-behavior: contain;
    padding: 4px var(--pad) 14px;
    border-left: 0; border-bottom: 1px solid var(--border);
    background: var(--bg);
  }
  .sv-read.is-live .sv-toc-link {
    min-height: 44px; align-items: center;
    margin-left: 0; border-left-color: var(--border);
  }
  .sv-read.is-live .sv-toc-link[aria-current] { border-left-color: var(--text); }
  .sv-read .sv-sec { scroll-margin-top: calc(var(--sv-hdr) + 76px); }
}

/* ---------- legal pages ----------
   Privacy and terms read in the layout above (render-legal.js). Their sections hold prose,
   not rows: muted paragraphs at reading size and a plain list, set apart by space alone.
   The intro opens the column without a number, level with the top of the index. */
.lg-intro { padding-top: clamp(56px, 9vh, 104px); }
.lg-intro p:first-child { color: var(--text); }
.lg-read { padding-bottom: clamp(24px, 4vh, 48px); }
.lg-read .sv-sec-head { margin-bottom: clamp(20px, 3vh, 28px); }
.lg-prose { max-width: 64ch; overflow-wrap: anywhere; }
.lg-prose p,
.lg-prose li {
  font-size: clamp(16px, 1.3vw, 18px); line-height: var(--lh-reading); color: var(--muted);
}
.lg-prose > * + * { margin-top: 1.1em; }
.lg-prose ul { list-style: disc; padding-left: 1.35em; }
.lg-prose li + li { margin-top: 0.5em; }
.lg-prose li::marker { color: var(--accent); }

/* ---------- contact page ----------
   Reuses the service row: hairline, label left, body right. The body happens to
   hold form controls instead of a paragraph. */
.ct-form { max-width: 1400px; margin: 0 auto; }
.ct-fields { display: grid; gap: clamp(20px, 3vh, 30px); max-width: 46ch; }
.ct-field { display: flex; flex-direction: column; gap: 8px; }
.ct-label {
  font-size: var(--fs-ui); font-weight: var(--fw-medium); letter-spacing: var(--track-ui);
  color: var(--muted);
}
.ct-input {
  width: 100%; min-height: 52px; padding: 14px 0;
  font-family: inherit; font-size: clamp(16px, 1.4vw, 19px); font-weight: var(--fw-regular);
  line-height: var(--lh-reading); color: var(--text);
  background: none; border: 0; border-bottom: 1px solid var(--border); border-radius: 0;
  transition: border-color 0.3s;
}
.ct-input:hover { border-bottom-color: var(--muted); }
.ct-input:focus { outline: none; border-bottom-color: var(--accent); }
.ct-input:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
textarea.ct-input { resize: vertical; min-height: 128px; }
.ct-select {
  appearance: none; cursor: pointer; padding-right: 28px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%239a9a9a' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 4px center / 12px 8px;
}
.ct-select option { background: var(--surface); color: var(--text); }
.ct-field.has-error .ct-input { border-bottom-color: var(--accent); }
.ct-error {
  min-height: 0;
  font-size: var(--fs-caption); font-weight: var(--fw-regular); color: var(--accent);
}
.ct-error:empty { display: none; }

/* The actions sit in the same column as the fields, not at the page edge. */
.ct-actions {
  display: grid;
  grid-template-columns: minmax(0, 0.5fr) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 64px);
  padding-top: clamp(28px, 5vh, 48px);
  border-top: 1px solid var(--border);
}
.ct-actions > * { grid-column: 2; }
.ct-status { grid-column: 2; }
.ct-submit { margin-top: 0; justify-self: start; background: none; cursor: pointer; font-family: inherit; }
.ct-submit[disabled] { opacity: 0.55; cursor: default; }
.ct-status {
  max-width: 42ch;
  font-size: var(--fs-body); font-weight: var(--fw-regular); line-height: var(--lh-body);
  color: var(--muted);
}
.ct-status.is-error { color: var(--accent); }
.ct-link { color: inherit; transition: color 0.3s; }
.ct-link:hover { color: var(--accent); }

/* Direct channels: one card each, icon first so the eye finds the right one before reading. */
.ct-channels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ct-channel {
  display: flex; align-items: center; gap: 16px;
  min-height: 76px; padding: 16px 20px;
  border: 1px solid var(--border); border-radius: 16px;
  color: var(--text);
  transition: border-color 0.3s, background 0.3s;
}
a.ct-channel:hover { border-color: var(--text); background: rgba(255, 255, 255, 0.04); }
a.ct-channel:hover .ct-ch-go { color: var(--accent); transform: translate(2px, -2px); }
.ct-ch-icon { flex: none; }
.ct-ch-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
.ct-ch-label {
  font-size: var(--fs-eyebrow); font-weight: var(--fw-medium);
  letter-spacing: var(--track-eyebrow); text-transform: uppercase; color: var(--muted);
}
.ct-ch-value { font-size: clamp(16px, 1.4vw, 19px); overflow-wrap: anywhere; }
.ct-ch-go { flex: none; color: var(--muted); transition: color 0.3s, transform 0.3s; }

@media (max-width: 860px) {
  .ct-fields { max-width: none; }
  /* Stacked, the group hairline lands just under the previous field's underline and
     the pair reads as an empty input. The eyebrow label carries the grouping alone. */
  .ct-row { padding-bottom: 20px; }
  .ct-row + .ct-row > .sv-rule { display: none; }
  .ct-actions { grid-template-columns: 1fr; gap: 16px; border-top: 0; padding-top: 32px; }
  .ct-actions > *, .ct-status { grid-column: 1; }
  .ct-channels { grid-template-columns: 1fr; gap: 10px; }
  .ct-channel { min-height: 68px; padding: 14px 18px; }
}

a.svc-row { color: inherit; text-decoration: none; transition: opacity 0.3s; }
a.svc-row:hover .svc-word { color: var(--accent); }
.svc-word { transition: color 0.3s; }

@media (max-width: 860px) {
  .sv-head { padding-top: clamp(112px, 17vh, 160px); }
  .sv-title { max-width: none; }
  .sv-still img { aspect-ratio: 4 / 3; border-radius: 14px; }
  /* A diagram still (wide) keeps its full frame: a 4:3 crop cuts its cards in half. */
  .sv-still.is-wide img { aspect-ratio: 2 / 1; }
  .sv-sec-title, .sv-close-title { max-width: none; }
  .sv-row {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 28px 0 44px;
  }
  .sv-row-text { max-width: none; }
  .sv-quote { max-width: none; }
}
