/* Magnisale — one stylesheet, no framework.
   Two-tone system: Hermes blue + paper. Sections are either .blue or .paper. */

/* ── Fonts (self-hosted, OFL — see /assets/fonts/OFL.txt) ─────────────── */
@font-face { font-family: "Sofia Sans Extra Condensed"; src: url("/assets/fonts/sofia-sans-extra-condensed.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("/assets/fonts/barlow-condensed-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Geist"; src: url("/assets/fonts/geist.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/assets/fonts/geist-mono.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

/* ── Tokens ───────────────────────────────────────────────────────────── */
:root {
  --blue: #0000f2;
  --paper: #f2f2f2;
  --ink: #000091;
  --stage: #0000c2;
  --stroke: #3333f5;
  --shade: #000061;

  /* Surface tokens — every one of these switches in dark mode. */
  --bg-blue: var(--blue);        /* hero, demo, why, menu, 404 */
  --bg-reveal: var(--blue);      /* reveal footer */
  --bg-paper: var(--paper);      /* services, faq, contact, blog, nav */
  --fg-paper: var(--ink);        /* text on paper */
  --heading-paper: var(--ink);   /* h2 on paper */
  --title-link: var(--blue);     /* FAQ questions, post titles, nav links */
  --accent: var(--blue);         /* chips, dotted rules, icons */

  --font-display: "Sofia Sans Extra Condensed", "Arial Narrow", sans-serif;
  --font-label: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --font-body: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;

  --col: 1080px;
  --pad: max(24px, min(6vw, 80px));
  --frame: 5px;
  --nav-h: 84px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --lift: 0 2px 8px 0 color-mix(in srgb, var(--shade) 14%, transparent);
  --press: inset 0 1px 4px 0 color-mix(in srgb, var(--shade) 14%, transparent);
  --noise: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1 1 1 0 -1.55'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Dark theme (values measured from Hermes): blue sections go navy, paper
   sections go slate, art turns silver (hero/why) or dims (plates). */
:root[data-theme="dark"] {
  --bg-blue: #0d0d24;
  --bg-reveal: var(--ink);
  --bg-paper: #19192f;
  --fg-paper: #e6e6ef;
  --heading-paper: #f2f2f2;
  --title-link: #f2f2f2;
  --accent: #8585f9;
  --stage: #19192f;
  color-scheme: dark;
}

/* ── Base ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html {
  background: var(--stage);
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg-blue);
  color: var(--paper);
  font: 400 16px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
body.no-scroll { overflow: hidden; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote, pre { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--blue); color: var(--paper); }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.i { width: 1em; height: 1em; flex: none; fill: currentColor; }
.px { shape-rendering: crispEdges; }

.wrap {
  width: 100%;
  max-width: calc(var(--col) + 2 * var(--pad));
  margin-inline: auto;
  padding-inline: var(--pad);
}
.wrap--narrow { max-width: calc(760px + 2 * var(--pad)); }

.blue { background: var(--bg-blue); color: var(--paper); }
.paper { background: var(--bg-paper); color: var(--fg-paper); }
.paper .h2, .post__title { color: var(--heading-paper); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 200;
  padding: 8px 12px; background: var(--paper); color: var(--blue);
  font: 500 15px/1 var(--font-label); text-transform: uppercase;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

/* Viewport frame + grain (Hermes signature) */
.frame {
  position: fixed; inset: 0; z-index: 100; pointer-events: none;
  border: var(--frame) solid var(--stroke);
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: 99; pointer-events: none;
  background-image: var(--noise); background-size: 180px 180px; opacity: 0.05;
}

/* ── Type ─────────────────────────────────────────────────────────────── */
/* Sofia's capitals are smaller per em than Hermes' Rules Gothic, so sizes run
   ~15% larger with tighter leading to match the same visual scale. */
.h1 {
  font: 200 clamp(68px, 9.6vw, 126px)/0.88 var(--font-display);
  letter-spacing: -0.02em;
}
.h2 {
  font: 400 clamp(66px, 15vw, 92px)/0.92 var(--font-display);
  letter-spacing: -0.02em;
}
.h2 .i { width: 20px; height: 20px; margin-left: 6px; vertical-align: top; }
.h3 {
  font: 450 clamp(32px, 3.6vw, 48px)/1.1 var(--font-display);
  letter-spacing: -0.01em;
}
.eyebrow {
  font: 400 10px/1.5 var(--font-mono);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.label {
  font: 500 14px/1 var(--font-label);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.lede { max-width: 520px; font-size: 16px; }

/* ── Buttons ──────────────────────────────────────────────────────────── */
@property --arc { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 36px; padding: 7px 12px;
  border: 0; border-radius: 3px;
  font: 500 15px/1.4 var(--font-label);
  letter-spacing: 0.02em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color 0.15s ease-out, box-shadow 0.15s ease-out, color 0.15s ease-out, transform 0.15s ease-out;
}
.btn:hover { transition-duration: 0s; }
.btn:active { transform: scale(0.98); }
.btn .i { width: 16px; height: 16px; }
/* Light arc that travels around the border on hover. */
.btn::after {
  content: ""; position: absolute; inset: 0; padding: 1.25px; border-radius: inherit;
  background: conic-gradient(from var(--arc), transparent 0 55%, color-mix(in srgb, currentColor 45%, transparent) 70%, currentColor 80%, transparent 88%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0; pointer-events: none;
}
.btn:hover::after { opacity: 1; animation: arc 2.2s linear infinite; }
@keyframes arc { to { --arc: 360deg; } }

.btn--paper { background: color-mix(in srgb, var(--paper) 90%, transparent); color: var(--blue); }
.btn--paper:hover { background: var(--paper); box-shadow: var(--lift); }
.btn--white { background: rgb(255 255 255 / 0.98); color: var(--blue); }
.btn--white:hover { background: #fff; box-shadow: var(--lift); }
:root[data-theme="dark"] :is(.btn--paper, .btn--white) { background: rgb(255 255 255 / 0.05); color: var(--paper); }
:root[data-theme="dark"] :is(.btn--paper, .btn--white):hover { background: rgb(255 255 255 / 0.1); box-shadow: none; }
.btn--ghost { background: color-mix(in srgb, currentColor 20%, transparent); color: inherit; }
.btn--ghost:hover { background: color-mix(in srgb, currentColor 30%, transparent); }
/* Quiet CTA for the top nav, so it doesn't compete with the centred logo. */
.btn--subtle { background: rgb(255 255 255 / 0.1); color: var(--paper); }
.btn--subtle:hover { background: rgb(255 255 255 / 0.16); }
:root[data-theme="dark"] .btn--subtle { background: rgb(255 255 255 / 0.05); }
:root[data-theme="dark"] .btn--subtle:hover { background: rgb(255 255 255 / 0.1); }
.btn--primary { background: var(--blue); color: var(--paper); }
.btn--primary:hover { box-shadow: var(--lift); background: color-mix(in srgb, var(--blue) 92%, #fff); }
.btn--primary:active { box-shadow: var(--press); }
.btn--outline { background: transparent; color: var(--fg-paper); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fg-paper) 30%, transparent); }
.btn--outline:hover { background: color-mix(in srgb, var(--fg-paper) 6%, transparent); }
.btn--underline { background: none; padding-inline: 4px; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; color: inherit; }
.paper .btn--underline { color: var(--title-link); }
.btn--underline::after { display: none; }
.btn--underline:hover { text-decoration-thickness: 2px; }
.btn[data-copied] { cursor: default; }

/* ── Navigation ───────────────────────────────────────────────────────── */
.nav-link {
  font: 500 14px/1 var(--font-label);
  letter-spacing: 0.1em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap;
  opacity: 0.8; transition: opacity 0.15s;
}
.nav-link:hover { opacity: 0.55; transition-duration: 0s; }

/* Both navs: [2 links] [logo] [link + CTA]. Equal side columns keep the
   logo exactly centred. Each side spreads its items with space-between plus
   an empty spacer on the logo side, so the gap before the logo matches the
   gap between the links — items read as evenly spaced across the bar. */
.nav-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; }
.nav-side { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.nav-side::after { content: ""; }
.nav-side--end::after { content: none; }
.nav-side--end::before { content: ""; }
.nav-actions { display: flex; align-items: center; gap: 8px; }

.hero-header { position: relative; z-index: 2; padding-top: 40px; padding-bottom: 20px; }
.wordmark { display: flex; flex-direction: column; align-items: center; gap: 10px; text-decoration: none; }
.wordmark .i { width: 32px; height: 30px; }
.wordmark span { font: 300 30px/0.9 var(--font-display); letter-spacing: 0.03em; text-transform: uppercase; }
.socials { display: flex; gap: 12px; }
.socials a { display: grid; place-items: center; transition: opacity 0.15s; }
.socials a:hover { opacity: 0.6; transition-duration: 0s; }
.socials .i { width: 15px; height: 15px; }

.menu-btn {
  display: none; place-items: center;
  width: 44px; height: 44px; margin-right: -10px;
  background: none; border: 0; cursor: pointer;
}
.menu-btn .i { width: 20px; height: 20px; }

/* Paper nav: slides in once the blue block has scrolled away. */
.paper-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 90;
  background: var(--bg-paper); color: var(--title-link);
  box-shadow: 0 1px 0 color-mix(in srgb, var(--blue) 15%, transparent);
  transform: translateY(-100%); visibility: hidden;
  transition: transform 0.3s ease-out, visibility 0s linear 0.3s;
}
.paper-nav.is-visible { transform: none; visibility: visible; transition: transform 0.3s ease-out; }
.paper-nav.is-static { position: sticky; transform: none; visibility: visible; transition: none; }
.paper-nav__inner { height: var(--nav-h); padding-top: var(--frame); }
.paper-nav .nav-link { opacity: 0.75; }
.paper-nav__mark { display: grid; place-items: center; color: var(--accent); transition: opacity 0.15s; }
.paper-nav__mark:hover { opacity: 0.7; }
.paper-nav__mark .i { width: 30px; height: 28px; }

/* Mobile menu */
.menu {
  position: fixed; inset: 0; z-index: 95;
  display: flex; flex-direction: column;
  padding: 24px var(--pad) 40px;
  background: var(--bg-blue); color: var(--paper);
  overflow-y: auto;
}
.menu[hidden] { display: none; }
.menu__top { display: flex; align-items: center; justify-content: space-between; min-height: 56px; }
.menu__top .wordmark { flex-direction: row; gap: 10px; }
.menu__top .wordmark .i { width: 24px; height: 22px; }
.menu__top .wordmark span { font-size: 26px; }
.menu__links { display: flex; flex-direction: column; gap: 4px; margin-top: 40px; }
.menu__links a { font: 300 56px/1.05 var(--font-display); letter-spacing: -0.02em; text-decoration: none; }
.menu__foot { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; margin-top: auto; padding-top: 40px; }

/* Theme toggle: a folded page corner in the top-right of the frame. */
.fold {
  position: fixed; top: 0; right: 0; z-index: 101;
  width: 36px; height: 36px; padding: 0;
  background: none; border: 0; cursor: pointer;
}
.fold::before {
  content: ""; position: absolute; top: 0; right: 0; width: 16px; height: 16px;
  background: linear-gradient(225deg, var(--stroke) 50%, var(--paper) 50%);
  box-shadow: -1px 1px 2px rgb(0 0 0 / 0.25);
  transition: width 0.2s var(--ease), height 0.2s var(--ease);
}
.fold:hover::before, .fold:focus-visible::before { width: 24px; height: 24px; }
:root[data-theme="dark"] .fold::before { background: linear-gradient(225deg, var(--stroke) 50%, #19192f 50%); }

/* ── Hero ─────────────────────────────────────────────────────────────── */
.hero { padding-block: 80px; overflow: clip; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 30px; min-height: 620px; }
.hero__copy { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 28px; min-width: 0; }
.hero__title span { display: block; }
.hero__sub { max-width: 400px; color: color-mix(in srgb, var(--paper) 85%, transparent); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: stretch; }
.hero__actions .btn { height: 36px; padding: 0 10px; font-size: 14px; letter-spacing: 0; }
.hero__art { position: relative; min-width: 0; margin: 0; mix-blend-mode: lighten; }
.hero__art img {
  position: absolute; top: 50%; left: 50%;
  /* May bleed up to 28px past its column, never into the copy (gap is 30px). */
  width: min(570px, calc(100% + 56px)); max-width: none; height: auto;
  transform: translate3d(-50%, calc(-50% + var(--py, 0px)), 0);
}

/* "Reach us directly" — the install-terminal widget, repurposed */
.reach { width: 450px; max-width: 100%; padding-top: 6px; }
.reach__label { margin-bottom: 20px; font-size: 11px; }
.reach__body { padding: 4px; border-radius: 6px; background: var(--ink); font: 400 11px/1.5 var(--font-mono); }
.reach__tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; }
.reach__tab {
  display: flex; align-items: center; justify-content: space-between; gap: 4px;
  padding: 6px 12px; border: 0;
  background: rgb(255 255 255 / 0.1); color: var(--paper);
  font: inherit; text-decoration: underline; text-underline-offset: 2px; cursor: pointer;
}
.reach__tab:first-child { border-radius: 4px 0 0 4px; }
.reach__tab:last-child { border-radius: 0 4px 4px 0; }
.reach__tab > span { opacity: 0.4; }
.reach__tab[aria-selected="true"] { background: var(--blue); text-decoration: none; }
.reach__tab[aria-selected="true"] > span { opacity: 1; }
.reach__tab:hover { background: rgb(255 255 255 / 0.16); }
.reach__tab[aria-selected="true"]:hover { background: var(--blue); }
.reach__panel { display: flex; align-items: center; gap: 6px; padding: 8px 12px; }
.reach__value { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; text-decoration: none; scrollbar-width: none; }
.reach__value:hover { text-decoration: underline; }
.reach__copy { display: grid; place-items: center; padding: 4px; background: none; border: 0; cursor: pointer; }
.reach__copy .i { width: 14px; height: 14px; }
.reach__copy .i--done, .reach__copy[data-copied] .i--copy { display: none; }
.reach__copy[data-copied] .i--done { display: block; }

/* ── Demo ─────────────────────────────────────────────────────────────── */
.demo { padding-bottom: 8px; }
.demo__frame { position: relative; margin: 0; aspect-ratio: 1080 / 632; overflow: hidden; background: #10121c; }
.demo__frame > img { width: 100%; height: 100%; object-fit: cover; }
.demo__caption { margin-top: 14px; text-align: center; opacity: 0.7; }
.term {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: min(516px, calc(100% - 32px));
  overflow: hidden; border-radius: 10px;
  background: rgb(18 18 24 / 0.86);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border: 1px solid rgb(255 255 255 / 0.08);
  box-shadow: 0 24px 60px rgb(0 0 0 / 0.45);
  color: #d9d9e3;
}
.term__bar { position: relative; display: flex; align-items: center; height: 34px; padding: 0 14px; background: rgb(255 255 255 / 0.04); }
.term__dots { display: flex; gap: 7px; }
.term__dots i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.term__dots i:nth-child(2) { background: #febc2e; }
.term__dots i:nth-child(3) { background: #28c840; }
.term__title { position: absolute; inset: 0; display: grid; place-items: center; font: 400 12px/1 var(--font-mono); color: rgb(255 255 255 / 0.55); pointer-events: none; }
.term__body { min-height: 214px; padding: 16px 18px; font: 400 13px/1.7 var(--font-mono); white-space: pre-wrap; word-break: break-word; }
.term .t-prompt, .term .t-ok { color: #3ad07a; }
.term .t-dim { color: rgb(255 255 255 / 0.5); }
.term .t-cursor { display: inline-block; width: 0.6em; height: 1.15em; margin-bottom: -0.2em; background: #d9d9e3; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ── Section titles ───────────────────────────────────────────────────── */
.section-title { display: flex; flex-direction: column; align-items: center; gap: 28px; padding-block: 40px; text-align: center; }
.section-title > .i { width: 22px; height: 22px; margin-bottom: -10px; }
.section-title p { max-width: 520px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

/* ── Why Magnisale ───────────────────────────────────────────────────── */
.why { padding-block: 72px 100px; }
.why__cards { --gap: 30px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.why-card__plate {
  position: relative; isolation: isolate; overflow: clip;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px;
  min-height: 268px; padding: 60px 16px;
  background: var(--bg-blue); text-align: center;
}
/* One artwork runs continuously across all three cards. */
.why-card__plate::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: url("/assets/art/why.png") no-repeat;
  background-size: calc(300% + 2 * var(--gap)) auto;
  mix-blend-mode: screen; opacity: 0.4;
}
.why-card:nth-child(1) .why-card__plate::before { background-position: 0% 42%; }
.why-card:nth-child(2) .why-card__plate::before { background-position: 50% 42%; }
.why-card:nth-child(3) .why-card__plate::before { background-position: 100% 42%; }
.why-card__title { font: 500 clamp(36px, 3.6vw, 46px)/1 var(--font-display); }
.why-card__body { margin-top: 18px; font-size: 15px; color: color-mix(in srgb, var(--paper) 85%, transparent); }
.why__trust { display: flex; flex-direction: column; align-items: center; gap: 22px; margin-top: 72px; text-align: center; }
.why__trust p { max-width: 460px; font: 300 32px/1.1 var(--font-display); }

/* ── Services (Hermes "Features") ─────────────────────────────────────── */
.services { padding-block: 180px 80px; }
.services .lede { margin-top: 24px; }
.services__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 80px 40px; padding-top: 50px; }
.feature { display: grid; grid-template-rows: subgrid; grid-row: span 3; gap: 26px; min-width: 0; }
.feature__head { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.feature__title { font: 400 clamp(38px, 4vw, 48px)/1 var(--font-display); letter-spacing: -0.02em; }
.feature__body { max-width: 460px; }

/* Art plates: duotone art, grain tile, top corners rounded. */
.plate {
  position: relative; overflow: clip; margin: 0;
  height: 320px; border-radius: 6px 6px 0 0;
  background: var(--blue);
}
.plate img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transform: translate3d(0, var(--py, 0px), 0) scale(1.12);
}
.plate::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: var(--noise); background-size: 205px 205px;
  opacity: 0.35; mix-blend-mode: plus-lighter;
}
/* Dark: plates stay blue but dim; line art goes silver (blend does the rest). */
:root[data-theme="dark"] .plate img { filter: brightness(0.6); }
:root[data-theme="dark"] .hero__art img,
:root[data-theme="dark"] .why-card__plate::before { filter: grayscale(1); }

/* ── FAQ ──────────────────────────────────────────────────────────────── */
.faq { padding-block: 60px; }
.faq__list { margin-top: 40px; border-bottom: 1px dotted var(--accent); }
.faq__item { border-top: 1px dotted var(--accent); }
.faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 24px 0; color: var(--title-link); cursor: pointer; list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__q {
  font: 300 34px/1.1 var(--font-display); letter-spacing: -0.01em;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px;
  text-decoration-color: color-mix(in srgb, currentColor 45%, transparent);
}
.faq__item summary:hover .faq__q { text-decoration-color: currentColor; }
.faq__icon { flex: none; font: 300 22px/1 var(--font-body); transition: transform 0.25s var(--ease); }
.faq__item[open] .faq__icon { transform: rotate(45deg); }
.faq__a { max-width: 880px; padding-bottom: 28px; line-height: 1.5; }
.faq__a a { color: var(--accent); }
@supports (interpolate-size: allow-keywords) {
  .faq { interpolate-size: allow-keywords; }
  .faq__item::details-content { block-size: 0; overflow: clip; transition: block-size 0.3s var(--ease), content-visibility 0.3s allow-discrete; }
  .faq__item[open]::details-content { block-size: auto; }
}

/* ── Contact (Hermes "Portal") ────────────────────────────────────────── */
.contact { padding-block: 60px 110px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; height: 20px; padding: 0 6px;
  border-radius: 0 2px 2px 0; box-shadow: inset 0 0 0 1px currentColor;
  font: 500 14px/1 var(--font-label); text-transform: uppercase; text-decoration: none;
  color: var(--accent);
}
a.chip:hover { background: var(--accent); color: var(--bg-paper); box-shadow: none; }
.chip.is-active { background: var(--accent); color: var(--bg-paper); box-shadow: none; }
.chip--ink { background: var(--fg-paper); color: var(--bg-paper); box-shadow: none; }
.chip--muted { color: color-mix(in srgb, var(--fg-paper) 75%, transparent); box-shadow: none; padding-inline: 2px; }
.contact__head { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-block: 28px 20px; }
.contact__actions { display: flex; align-items: center; gap: 14px; }
.contact__lede { max-width: 520px; }
.plate--wide { height: auto; aspect-ratio: 1080 / 340; margin-top: 24px; }
.channels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.channel { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 10px; }
.channel__chips { display: flex; gap: 8px; }
.channel__tag { position: absolute; top: 10px; right: 10px; font: 500 13px/20px var(--font-label); letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.channel__value { font: 500 48px/1 var(--font-display); letter-spacing: -0.01em; overflow-wrap: anywhere; }
.channel__caption { font: 500 15px/1 var(--font-label); letter-spacing: 0.1em; text-transform: uppercase; }
.checks { display: flex; flex-direction: column; gap: 6px; min-height: 64px; }
.checks li { display: flex; align-items: center; gap: 8px; font: 400 11px/1.5 var(--font-mono); text-transform: uppercase; }
.checks .i { width: 11px; height: 11px; color: var(--accent); }
.channel .btn { margin-top: 18px; }
.fineprint { margin-top: 28px; font-size: 15px; }

/* ── Footer strip ─────────────────────────────────────────────────────── */
/* main and the footer strip sit above the reveal footer; the backgrounds and
   -1px overlap stop sub-pixel seams from showing it through. */
main, .site-footer { position: relative; z-index: 1; }
main { background: var(--bg-paper); }
.site-footer { overflow: clip; margin-top: -1px; padding-block: 140px 64px; }
.ghost {
  position: absolute; left: 50%; bottom: -0.06em; transform: translateX(-50%);
  font: 100 clamp(120px, 26vw, 360px)/0.8 var(--font-display);
  text-transform: uppercase; white-space: nowrap;
  color: var(--accent); opacity: 0.035;
  pointer-events: none; user-select: none;
}
.site-footer__row {
  position: relative; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
  font: 500 15px/1.9 var(--font-label); text-transform: uppercase; letter-spacing: 0.01em;
}
.site-footer__row a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.site-footer__end { text-align: right; }
.badges { display: flex; gap: 18px; }
.badge {
  display: grid; place-items: center; width: 36px; height: 50px;
  border: 1px solid currentColor; border-radius: 3px; color: var(--accent);
  transition: background-color 0.15s, color 0.15s;
}
.site-footer__row .badge { text-decoration: none; }
.badge:hover { background: var(--accent); color: var(--bg-paper); transition-duration: 0s; }
.badge .i { width: 18px; height: 18px; }
.badge--logo .i { width: 22px; height: 20px; }

/* Reveal footer: sits behind the page and is uncovered at the end of the scroll. */
.reveal {
  --p: 1;
  position: sticky; bottom: 0; z-index: 0;
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 100vh; min-height: 100dvh; overflow: clip;
  background: var(--bg-reveal); color: var(--paper);
}
.reveal__art {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: blur(calc(10px * (1 - var(--p))));
  opacity: calc(0.4 + 0.6 * var(--p));
}
:root[data-theme="dark"] .reveal__art { filter: blur(calc(10px * (1 - var(--p)))) brightness(0.7); }
.reveal::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to bottom, transparent 10%, var(--bg-reveal) 86%);
}
.reveal > :not(.reveal__art) { position: relative; z-index: 2; }
.reveal__ghost {
  margin-bottom: -0.1em;
  font: 200 clamp(90px, 19vw, 300px)/0.8 var(--font-display);
  text-transform: uppercase; text-align: center; white-space: nowrap;
  color: var(--paper); opacity: 0.15;
  transform: translateY(calc((1 - var(--p)) * 40%));
  pointer-events: none; user-select: none;
}
.reveal__grid { display: grid; grid-template-columns: minmax(0, 300px) repeat(4, minmax(0, 1fr)); gap: 30px; padding-top: 60px; }
.reveal__intro { display: flex; flex-direction: column; gap: 16px; }
.reveal__intro .i { width: 34px; height: 32px; }
.reveal__intro p { max-width: 260px; }
.reveal__cat { font: 500 12px/1 var(--font-label); letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.6; }
.reveal__title { margin: 8px 0 14px; font: 400 32px/1 var(--font-display); }
.reveal__links { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.chip-link {
  display: inline-block; margin-left: -6px; padding: 5px 6px; border-radius: 2px;
  font: 500 13px/1.2 var(--font-label); letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none;
}
.chip-link:hover { background: var(--paper); color: var(--bg-reveal); }
.reveal__bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px;
  margin-top: 40px; padding-block: 22px 30px;
  border-top: 1px solid rgb(242 242 242 / 0.25);
  font: 500 12px/1 var(--font-label); letter-spacing: 0.08em; text-transform: uppercase;
}
.reveal__bottom a { text-decoration: none; }
.reveal__bottom a:hover { text-decoration: underline; }
.reveal__bottom .socials .i { width: 13px; height: 13px; }

/* ── Blog ─────────────────────────────────────────────────────────────── */
.blog, .post { min-height: 70vh; padding-block: 72px 140px; }
.back-link { display: inline-block; margin-bottom: 28px; text-decoration: none; color: var(--accent); }
.back-link:hover { text-decoration: underline; }
.blog .lede { margin-top: 22px; }
.blog .chips { margin-top: 36px; }
.post-list { margin-top: 40px; border-bottom: 1px dotted var(--accent); }
.post-row { border-top: 1px dotted var(--accent); }
.post-row a { display: grid; gap: 12px; padding: 28px 0 30px; text-decoration: none; }
.post-row__meta { color: color-mix(in srgb, var(--fg-paper) 80%, transparent); }
.post-row__title {
  font: 300 clamp(34px, 4.2vw, 46px)/1.05 var(--font-display); letter-spacing: -0.01em; color: var(--title-link);
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px;
  text-decoration-color: color-mix(in srgb, currentColor 40%, transparent);
}
.post-row a:hover .post-row__title { text-decoration-color: currentColor; }
.post-row__excerpt { max-width: 720px; }
.empty { margin-top: 40px; }

.post__title { margin: 22px 0 18px; font: 300 clamp(48px, 7vw, 80px)/1 var(--font-display); letter-spacing: -0.02em; }
.post__end { margin-top: 64px; }
.prose { margin-top: 44px; font-size: 17px; line-height: 1.7; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 1.7em; font: 400 42px/1.05 var(--font-display); letter-spacing: -0.01em; }
.prose h3 { margin-top: 1.5em; font: 450 28px/1.1 var(--font-display); }
.prose h2 + *, .prose h3 + * { margin-top: 0.6em; }
.prose a { color: var(--accent); text-underline-offset: 3px; }
.prose strong { font-weight: 600; }
.prose ul { padding-left: 1.2em; list-style: square; }
.prose ol { padding-left: 1.4em; list-style: decimal; }
.prose li + li { margin-top: 0.4em; }
.prose li::marker { color: var(--accent); }
.prose blockquote { padding: 2px 0 2px 20px; border-left: 2px solid var(--accent); font-style: italic; }
.prose pre { overflow-x: auto; padding: 16px 18px; border-radius: 6px; background: var(--ink); color: var(--paper); font: 400 13px/1.7 var(--font-mono); }
.prose code { padding: 0.1em 0.35em; border-radius: 3px; background: color-mix(in srgb, var(--accent) 10%, transparent); font: 400 0.86em var(--font-mono); }
.prose pre code { padding: 0; background: none; font-size: inherit; }
.prose hr { border: 0; border-top: 1px dotted var(--accent); }

/* ── 404 ──────────────────────────────────────────────────────────────── */
.notfound { display: flex; flex-direction: column; justify-content: center; min-height: 80vh; padding-block: 100px; }
.notfound .h1 { margin-top: 20px; }
.notfound p { max-width: 420px; margin-top: 26px; }
.notfound .hero__actions { margin-top: 32px; gap: 10px; }

/* ── Scroll reveal (enabled by site.js) ───────────────────────────────── */
.reveal-on [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal-on [data-reveal].is-in { opacity: 1; transform: none; }

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .reveal__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .reveal__intro { grid-column: 1 / -1; }
}

@media (max-width: 767px) {
  :root { --frame: 0px; --nav-h: 64px; }
  .frame { display: none; }

  /* Mobile: logo left, CTA + menu right. */
  .nav-grid { display: flex; justify-content: space-between; gap: 16px; }
  .nav-side:not(.nav-side--end), .nav-side--end > .nav-link { display: none; }
  .nav-side--end { display: flex; }
  .hero-header { padding-top: 24px; }
  .wordmark { flex-direction: row; gap: 10px; }
  .wordmark .i { width: 24px; height: 22px; }
  .wordmark span { font-size: 26px; }
  .menu-btn { display: grid; margin-right: 0; }
  .fold { width: 22px; height: 22px; }
  .fold::before { width: 13px; height: 13px; }
  .fold:hover::before, .fold:focus-visible::before { width: 18px; height: 18px; }

  .hero { padding-block: 40px 0; }
  .hero__grid { grid-template-columns: 1fr; min-height: 0; }
  .hero__art { height: 480px; margin-inline: calc(-1 * var(--pad)); }
  .hero__art img { top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transform: none; }

  .demo { padding-top: 40px; }
  .demo__frame { aspect-ratio: auto; height: 440px; margin-inline: calc(-1 * var(--pad)); }
  .term__body { min-height: 230px; font-size: 12px; }

  .why { padding-block: 48px 64px; }
  .why__cards { --gap: 20px; grid-template-columns: 1fr; }
  .why-card + .why-card { margin-top: 12px; }
  .why-card__plate { min-height: 220px; }

  .services { padding-block: 80px 48px; }
  .services__grid { grid-template-columns: 1fr; gap: 60px; }
  .plate { height: 260px; }

  .faq__q { font-size: 28px; }

  .contact__head { align-items: flex-start; flex-direction: column; }
  .channels { grid-template-columns: 1fr; gap: 28px; }
  .plate--wide { height: 200px; aspect-ratio: auto; }

  .site-footer { padding-block: 96px 56px; }
  .site-footer__row { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .site-footer__end { text-align: center; }

  .reveal { position: relative; min-height: 0; }
  .reveal__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-top: 56px; }
  .reveal__ghost { margin-top: 48px; }
}

@media (max-width: 440px) {
  .hero__art { height: 400px; }
  .reach__tab { padding-inline: 8px; }
  .h1 { font-size: 80px; }
}

@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; }
  .reveal-on [data-reveal] { opacity: 1; transform: none; }
}
