/* ==========================================================================
   Reveltium — core stylesheet
   ========================================================================== */

:root {
  --ink: #0B0D11;
  --ink-2: #111419;
  --ink-3: #181C23;
  --ink-4: #222731;
  --paper: #F4F2EE;
  --paper-2: #E6E3DD;
  --muted: #8E959F;
  --muted-2: #5E6570;
  --signal: #FF5A1F;
  --signal-soft: rgba(255, 90, 31, 0.14);
  --line: rgba(244, 242, 238, 0.09);
  --line-strong: rgba(244, 242, 238, 0.18);

  --font-display: "Inter Tight", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --container: 1240px;
  --gutter: clamp(20px, 4vw, 40px);
  --radius: 14px;
  --radius-sm: 8px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--signal); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
  border-radius: 4px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; background: var(--paper); color: var(--ink);
  border-radius: var(--radius-sm); font-weight: 600;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 16px; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.mono {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.muted { color: var(--muted); }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  --btn-bg: transparent;
  --btn-fg: var(--paper);
  --btn-bd: transparent;
  display: inline-flex; align-items: center; gap: 10px;
  height: 48px; padding: 0 22px;
  border: 1px solid var(--btn-bd);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: 500 15px/1 var(--font-body);
  letter-spacing: 0.005em;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn svg {
  width: 16px; height: 16px;
  fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
  transition: transform .3s var(--ease);
}
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }

.btn-primary { --btn-bg: var(--paper); --btn-fg: var(--ink); }
.btn-primary:hover { --btn-bg: var(--signal); --btn-fg: var(--ink); }

.btn-ghost { --btn-bd: var(--line-strong); }
.btn-ghost:hover { --btn-bd: var(--paper); }

.btn-outline { --btn-bd: var(--line-strong); }
.btn-outline:hover { --btn-bg: var(--paper); --btn-fg: var(--ink); --btn-bd: var(--paper); }

.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn-lg { height: 56px; padding: 0 28px; font-size: 16px; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  transition: background-color .3s var(--ease), border-color .3s var(--ease), backdrop-filter .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(11, 13, 17, 0.78);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--line);
}

.header-inner {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between;
}

.brand { display: inline-flex; align-items: center; gap: 14px; color: var(--paper); }
.brand-mark { height: 30px; width: auto; aspect-ratio: 239.78 / 303.61; }
.brand-word { height: 11.5px; width: auto; aspect-ratio: 566.6 / 47.3; }

.nav-list { display: flex; align-items: center; gap: 34px; }
.nav-list a:not(.btn) {
  font-size: 14.5px; color: var(--muted);
  transition: color .2s var(--ease);
}
.nav-list a:not(.btn):hover,
.nav-list a[aria-current="page"] { color: var(--paper); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px; margin-right: -10px;
  background: none; border: 0; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 6px;
}
.nav-toggle-bar {
  width: 22px; height: 1.5px; background: var(--paper);
  transition: transform .3s var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { transform: translateY(3.75px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-3.75px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-list {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    padding: 12px var(--gutter) 28px;
    background: rgba(11, 13, 17, 0.97);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  }
  .nav-list.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav-list li { width: 100%; }
  .nav-list a:not(.btn) {
    display: block; padding: 16px 0; font-size: 18px; color: var(--paper);
    border-bottom: 1px solid var(--line);
  }
  .nav-list .btn { margin-top: 20px; }
  .site-header:has(.nav-list.is-open) {
    background: rgba(11, 13, 17, 0.97);
    border-bottom-color: var(--line);
  }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(56px, 9vw, 120px));
  padding-bottom: clamp(48px, 6vw, 72px);
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute; z-index: -1;
  width: 900px; height: 900px;
  right: -260px; top: -300px;
  background: radial-gradient(closest-side, rgba(255, 90, 31, 0.13), transparent 70%);
  pointer-events: none;
}

.hero-grid {
  position: absolute; inset: 0; z-index: -2;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: center top;
  mask-image: radial-gradient(ellipse 80% 70% at 60% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 30%, #000 20%, transparent 75%);
  opacity: .55;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: clamp(40px, 6vw, 96px);
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 13px; color: var(--paper-2);
  margin-bottom: 32px;
  background: rgba(244, 242, 238, 0.02);
}
.dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 4px var(--signal-soft);
}

.display {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(44px, 7vw, 92px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  max-width: 12ch;
}
.display em {
  font-style: normal;
  color: transparent;
  background: linear-gradient(100deg, var(--paper) 0%, var(--muted) 90%);
  -webkit-background-clip: text;
  background-clip: text;
}

.lede {
  margin-top: 28px;
  max-width: 34em;
  font-size: clamp(17px, 1.5vw, 19px);
  line-height: 1.6;
  color: var(--muted);
}

.hero-actions { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 12px; }

/* Instrument (hero visual) */

.instrument {
  position: relative;
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(244,242,238,0.04), rgba(244,242,238,0.01)),
    var(--ink-2);
  padding: 18px;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.05) inset,
    0 40px 80px -30px rgba(0,0,0,0.7);
}

.instrument-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 2px 4px 16px;
  color: var(--muted);
}
.status { display: inline-flex; align-items: center; gap: 8px; color: var(--paper-2); }
.status i {
  width: 6px; height: 6px; border-radius: 50%; background: #3DDC84;
  box-shadow: 0 0 10px #3DDC84;
  animation: blink 2.4s ease-in-out infinite;
}

.scope {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  background:
    radial-gradient(circle at 50% 50%, rgba(255,90,31,0.07), transparent 60%),
    var(--ink);
  border: 1px solid var(--line);
  overflow: hidden;
}

.scope-rings span {
  position: absolute; left: 50%; top: 50%;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.scope-rings span:nth-child(1) { width: 25%; height: 25%; }
.scope-rings span:nth-child(2) { width: 50%; height: 50%; }
.scope-rings span:nth-child(3) { width: 75%; height: 75%; }
.scope-rings span:nth-child(4) { width: 100%; height: 100%; border-color: var(--line); }

.scope-cross::before, .scope-cross::after {
  content: ""; position: absolute; background: var(--line);
}
.scope-cross::before { left: 50%; top: 0; bottom: 0; width: 1px; }
.scope-cross::after { top: 50%; left: 0; right: 0; height: 1px; }

.scope-sweep {
  position: absolute; inset: 0;
  background: conic-gradient(from 0deg, rgba(255,90,31,0.32), rgba(255,90,31,0) 22%, transparent 100%);
  border-radius: 50%;
  animation: sweep 5s linear infinite;
  mask-image: radial-gradient(circle, #000 0 70%, transparent 71%);
  -webkit-mask-image: radial-gradient(circle, #000 0 70%, transparent 71%);
}

.scope-core {
  position: absolute; left: 50%; top: 50%;
  width: 10px; height: 10px; margin: -5px 0 0 -5px;
  border-radius: 50%; background: var(--signal);
  box-shadow: 0 0 0 6px var(--signal-soft), 0 0 24px var(--signal);
}
.scope-core::after {
  content: ""; position: absolute; inset: -5px;
  border: 1px solid var(--signal); border-radius: 50%;
  animation: ping 2.6s var(--ease) infinite;
}

.scope-blip {
  position: absolute; width: 6px; height: 6px; border-radius: 50%;
  background: var(--paper);
  animation: blip 5s linear infinite;
}
.scope-blip.b1 { left: 68%; top: 29%; animation-delay: .7s; }
.scope-blip.b2 { left: 27%; top: 64%; animation-delay: 3.2s; }

.instrument-readout {
  margin: 16px 0 0;
  display: grid; grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.instrument-readout div { padding: 12px 14px; }
.instrument-readout div + div { border-left: 1px solid var(--line); }
.instrument-readout dt {
  font: 400 10.5px/1 var(--font-mono);
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted-2); margin-bottom: 8px;
}
.instrument-readout dd {
  margin: 0; font: 500 14px/1 var(--font-mono);
  color: var(--paper); font-variant-numeric: tabular-nums;
}

@keyframes sweep { to { transform: rotate(360deg); } }
@keyframes ping { 0% { transform: scale(1); opacity: 1; } 100% { transform: scale(5); opacity: 0; } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes blip { 0%, 100% { opacity: 0; } 4% { opacity: 1; } 40% { opacity: 0; } }

/* Capabilities strip */

.capabilities {
  margin-top: clamp(64px, 9vw, 112px);
  display: grid; grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--line);
}
.capabilities li {
  display: flex; align-items: baseline; gap: 12px;
  padding: 22px 0 0;
  font-size: 15px; color: var(--paper-2);
}
.capabilities li .mono { color: var(--signal); font-size: 11px; }

@media (max-width: 1020px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { max-width: 480px; }
  .capabilities { grid-template-columns: repeat(3, 1fr); row-gap: 4px; }
}
@media (max-width: 560px) {
  .capabilities { grid-template-columns: 1fr 1fr; }
  .instrument-readout dd { font-size: 12.5px; }
  .instrument-readout div { padding: 12px 10px; }
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.section { padding-block: clamp(88px, 12vw, 160px); position: relative; }
.section-alt {
  background: var(--ink-2);
  border-block: 1px solid var(--line);
}

.section-label { color: var(--signal); margin-bottom: 24px; display: block; }

.section-head { margin-bottom: clamp(48px, 6vw, 80px); max-width: 760px; }
.section-head.split {
  max-width: none;
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: end;
}
@media (max-width: 860px) { .section-head.split { grid-template-columns: 1fr; gap: 24px; } }

.h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(34px, 4.6vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  max-width: 18ch;
}

.section-intro {
  margin-top: 24px;
  color: var(--muted);
  font-size: 18px;
  max-width: 36em;
}
.split .section-intro { margin-top: 0; }

/* Manifesto */

.manifesto { border-bottom: 1px solid var(--line); }
.statement {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(30px, 4.2vw, 56px);
  line-height: 1.12;
  letter-spacing: -0.025em;
  max-width: 30ch;
}
.statement .muted { color: var(--muted-2); }

/* Principles */

.principles {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.principle {
  position: relative;
  padding: 36px 30px 40px;
  display: flex; flex-direction: column;
  background: var(--ink);
  transition: background-color .35s var(--ease);
}
.principle + .principle { border-left: 1px solid var(--line); }
.principle:hover { background: var(--ink-2); }
.principle-icon svg {
  width: 36px; height: 36px;
  fill: none; stroke: var(--paper); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round;
}
.principle-icon .fill { fill: var(--signal); stroke: none; }
.principle:hover .principle-icon svg { stroke: var(--signal); }
.principle-num { color: var(--muted-2); margin-top: 56px; }
.principle h3 {
  margin-top: 12px;
  font-family: var(--font-display);
  font-size: 22px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.2;
}
.principle p { margin-top: 12px; color: var(--muted); font-size: 15.5px; line-height: 1.6; }

@media (max-width: 1020px) {
  .principles { grid-template-columns: 1fr 1fr; }
  .principle:nth-child(3) { border-left: 0; }
  .principle:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 600px) {
  .principles { grid-template-columns: 1fr; }
  .principle { min-height: 0; }
  .principle + .principle { border-left: 0; border-top: 1px solid var(--line); }
}

/* Process */

.process {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 28px 26px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink);
  display: flex; flex-direction: column;
  transition: border-color .3s var(--ease), transform .4s var(--ease);
}
.step:hover { border-color: var(--line-strong); transform: translateY(-4px); }
.step::after {
  content: "";
  position: absolute; top: 44px; right: -21px;
  width: 21px; height: 1px; background: var(--line-strong);
}
.step:last-child::after { display: none; }
.step-index {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line-strong);
  color: var(--paper);
}
.step:first-child .step-index { border-color: var(--signal); color: var(--signal); }
.step h3 {
  margin-top: 36px;
  font-family: var(--font-display);
  font-size: 24px; font-weight: 600; letter-spacing: -0.02em;
}
.step p { margin-top: 10px; color: var(--muted); font-size: 15.5px; flex: 1; }
.step-tag { margin-top: 28px; color: var(--muted-2); }

@media (max-width: 1020px) {
  .process { grid-template-columns: 1fr 1fr; }
  .step::after { display: none; }
}
@media (max-width: 600px) { .process { grid-template-columns: 1fr; } }

/* Standards band */

.standards { padding-block: clamp(64px, 8vw, 104px); border-bottom: 1px solid var(--line); }
.standards-inner { display: grid; grid-template-columns: repeat(3, 1fr); }
.standard { padding: 8px 32px; display: flex; flex-direction: column; gap: 10px; }
.standard:first-child { padding-left: 0; }
.standard + .standard { border-left: 1px solid var(--line); }
.standard-value {
  font-family: var(--font-display);
  font-size: clamp(32px, 3.6vw, 48px);
  font-weight: 600; letter-spacing: -0.03em; line-height: 1;
}
.standard-label { color: var(--muted); font-size: 15.5px; max-width: 22em; }

@media (max-width: 760px) {
  .standards-inner { grid-template-columns: 1fr; gap: 32px; }
  .standard { padding: 0; }
  .standard + .standard { border-left: 0; border-top: 1px solid var(--line); padding-top: 32px; }
}

/* Company */

.company {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(48px, 8vw, 120px); align-items: center;
}
.company-copy p:not(.section-label) {
  margin-top: 24px; color: var(--muted); font-size: 18px; max-width: 34em;
}
.company-copy strong { color: var(--paper); font-weight: 500; }

.element-tile {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%; max-width: 420px; justify-self: end;
  padding: 28px;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background:
    radial-gradient(circle at 100% 0%, rgba(255,90,31,0.16), transparent 55%),
    linear-gradient(160deg, var(--ink-3), var(--ink-2));
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  grid-template-columns: 1fr auto;
  box-shadow: 0 40px 80px -40px rgba(0,0,0,.8);
}
.tile-num { color: var(--signal); font-size: 13px; }
.tile-mass { color: var(--muted); justify-self: end; font-size: 11px; }
.tile-symbol {
  grid-column: 1 / -1; align-self: center;
  height: clamp(110px, 12vw, 170px); width: auto; aspect-ratio: 239.78 / 303.61;
  color: var(--paper);
}
.tile-name {
  grid-column: 1 / -1;
  font-family: var(--font-display);
  font-size: 22px; font-weight: 500; letter-spacing: 0.01em;
}
.tile-class { grid-column: 1 / -1; margin-top: 6px; color: var(--muted); font-size: 11px; }

@media (max-width: 860px) {
  .company { grid-template-columns: 1fr; }
  .element-tile { justify-self: start; max-width: 340px; }
}

/* Upcoming */

.upcoming { padding-block: clamp(72px, 9vw, 120px); }
.upcoming-inner {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; flex-wrap: wrap;
}
.upcoming .h2 { max-width: 16ch; }

/* Contact */

.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.contact-card {
  position: relative;
  display: flex; flex-direction: column; gap: 10px;
  padding: 30px 28px 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink-2);
  transition: border-color .3s var(--ease), background-color .3s var(--ease);
}
.contact-card:hover { border-color: var(--signal); background: var(--ink-3); }
.contact-kind { color: var(--muted-2); }
.contact-mail {
  margin-top: 28px;
  font-family: var(--font-display);
  font-size: clamp(19px, 1.8vw, 23px); font-weight: 500; letter-spacing: -0.01em;
  word-break: break-word;
}
.contact-desc { color: var(--muted); font-size: 15px; }
.contact-arrow {
  position: absolute; top: 28px; right: 26px;
  width: 18px; height: 18px;
  fill: none; stroke: var(--muted); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
  transition: transform .3s var(--ease), stroke .3s var(--ease);
}
.contact-card:hover .contact-arrow { stroke: var(--signal); transform: translate(3px, -3px); }

@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer { border-top: 1px solid var(--line); padding-top: 72px; background: var(--ink); }
.footer-inner { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; padding-bottom: 64px; }
.footer-brand p { margin-top: 18px; color: var(--muted); font-size: 15px; max-width: 22em; }
.footer-nav { display: flex; gap: clamp(48px, 8vw, 120px); }
.footer-nav div { display: flex; flex-direction: column; gap: 12px; }
.footer-nav h4 { color: var(--muted-2); margin-bottom: 6px; font-weight: 400; }
.footer-nav a { color: var(--paper-2); font-size: 15px; transition: color .2s var(--ease); }
.footer-nav a:hover { color: var(--signal); }
.footer-base {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-block: 24px 32px;
  border-top: 1px solid var(--line);
  color: var(--muted-2); font-size: 14px;
}

/* --------------------------------------------------------------------------
   Reveal animation
   -------------------------------------------------------------------------- */

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: var(--delay, 0s);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   Brand guidelines page
   ========================================================================== */

.page-hero {
  padding-top: calc(var(--header-h) + clamp(56px, 8vw, 104px));
  padding-bottom: clamp(56px, 7vw, 88px);
  border-bottom: 1px solid var(--line);
}
.page-hero .display { font-size: clamp(44px, 6.4vw, 84px); max-width: 14ch; }

.brand-block { padding-block: clamp(72px, 9vw, 120px); border-bottom: 1px solid var(--line); }
.brand-block-head {
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; margin-bottom: 48px;
}
.brand-block-head .h2 { font-size: clamp(30px, 3.6vw, 44px); }
.brand-block-head p:not(.section-label) { color: var(--muted); max-width: 36em; }
.brand-block-head strong { color: var(--paper); font-weight: 500; }
@media (max-width: 860px) { .brand-block-head { grid-template-columns: 1fr; gap: 16px; } }

.logo-panels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.logo-panel {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 32px;
}
.logo-panel img { height: auto; }
.logo-panel.stacked img { width: min(260px, 52%); }
.logo-panel.landscape img { width: min(340px, 66%); }
.logo-panel.mark img { width: min(96px, 20%); }
.logo-panel.chip img { width: min(170px, 34%); }
.logo-panel.dark { background: var(--ink-2); }
.logo-panel.light { background: var(--paper); border-color: transparent; }
.logo-panel.signal { background: var(--signal); border-color: transparent; }
.logo-panel .mono {
  position: absolute; left: 20px; bottom: 18px; color: var(--muted);
}
.logo-panel.light .mono, .logo-panel.signal .mono { color: rgba(11,13,17,.55); }
@media (max-width: 700px) { .logo-panels { grid-template-columns: minmax(0, 1fr); } }

.downloads {
  margin-top: 28px;
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.downloads .btn:hover svg { transform: translateY(2px); }

.swatches { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.swatch {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--ink-2);
}
.swatch-color { aspect-ratio: 1 / 1.05; box-shadow: inset 0 -1px 0 var(--line); }
.swatch-info { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 4px; }
.swatch-info strong { font-family: var(--font-display); font-weight: 600; font-size: 16px; }
.swatch-info span { color: var(--muted); }
.swatch.primary { grid-column: span 2; }
.swatch.primary .swatch-color { aspect-ratio: auto; height: calc(100% - 78px); min-height: 160px; }
@media (max-width: 1020px) {
  .swatches { grid-template-columns: repeat(3, 1fr); }
  .swatch.primary { grid-column: span 1; }
  .swatch.primary .swatch-color { aspect-ratio: 1 / 1.05; height: auto; min-height: 0; }
}
@media (max-width: 560px) { .swatches { grid-template-columns: 1fr 1fr; } }

.type-specimens { display: grid; gap: 20px; }
.specimen {
  display: grid; grid-template-columns: 240px 1fr; gap: 32px; align-items: center;
  padding: 32px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--ink-2);
}
.specimen-meta { display: flex; flex-direction: column; gap: 6px; }
.specimen-meta strong { font-family: var(--font-display); font-size: 18px; font-weight: 600; }
.specimen-meta span { color: var(--muted); }
.specimen-sample { overflow-wrap: anywhere; }
.specimen-sample.display-sample {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(36px, 5vw, 64px); letter-spacing: -0.035em; line-height: 1;
}
.specimen-sample.body-sample { font-size: 19px; color: var(--paper-2); max-width: 38em; }
.specimen-sample.mono-sample { font-family: var(--font-mono); font-size: 16px; color: var(--paper-2); letter-spacing: 0.02em; }
@media (max-width: 760px) { .specimen { grid-template-columns: 1fr; gap: 20px; padding: 24px; } }

.voice-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.voice-card {
  padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--ink-2);
}
.voice-card h3 { font-family: var(--font-display); font-size: 20px; font-weight: 600; margin-bottom: 18px; }
.voice-card ul { display: grid; gap: 12px; }
.voice-card li { display: flex; gap: 12px; color: var(--muted); font-size: 15.5px; }
.voice-card li::before {
  content: ""; flex: none; width: 6px; height: 6px; margin-top: 10px; border-radius: 50%;
  background: var(--signal);
}
.voice-card.dont li::before { background: var(--muted-2); }
@media (max-width: 760px) { .voice-grid { grid-template-columns: 1fr; } }

.clearspace {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px;
}
.clearspace-demo {
  display: grid; place-items: center;
  padding: 48px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background:
    repeating-linear-gradient(45deg, transparent 0 8px, rgba(244,242,238,0.025) 8px 9px),
    var(--ink-2);
}
.clearspace-box {
  position: relative; padding: 17px;
  outline: 1px dashed rgba(244, 242, 238, 0.45);
  background: var(--ink-2);
}
.clearspace-box img { width: 240px; max-width: none; height: auto; }
.clearspace-rules { display: grid; gap: 16px; align-content: start; }
.rule {
  padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--ink-2);
}
.rule strong { display: block; font-family: var(--font-display); font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.rule p { color: var(--muted); font-size: 15px; }
@media (max-width: 860px) { .clearspace { grid-template-columns: 1fr; } }

/* ==========================================================================
   404
   ========================================================================== */

.not-found {
  min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center; text-align: center;
  padding: calc(var(--header-h) + 40px) var(--gutter) 80px;
  position: relative; overflow: hidden; isolation: isolate;
}
.not-found .hero-grid { mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, #000 10%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, #000 10%, transparent 70%); }
.not-found .code { color: var(--signal); margin-bottom: 20px; display: block; }
.not-found .display { margin-inline: auto; max-width: 14ch; font-size: clamp(40px, 6vw, 72px); }
.not-found .lede { margin-inline: auto; }
.not-found .hero-actions { justify-content: center; }
