:root {
  color-scheme: dark;
  --font-display: "Baskerville Old Face", Baskerville, "Times New Roman", serif;
  --font-body: "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --font-ui: "Segoe UI", "Trebuchet MS", Arial, sans-serif;
  --shell-width: 76rem;
  --header-height: 5rem;
  --radius: 1.4rem;
  --radius-large: 2.1rem;
  --radius-pill: 999px;
  --section-space: clamp(4.75rem, 9vw, 8.5rem);
  --bg: #06070b;
  --bg-deep: #0c111b;
  --void: #020307;
  --surface: rgba(10, 15, 24, 0.74);
  --surface-strong: rgba(13, 19, 30, 0.92);
  --surface-alt: rgba(18, 24, 38, 0.78);
  --surface-glass: rgba(227, 236, 255, 0.04);
  --border: rgba(132, 164, 219, 0.18);
  --border-strong: rgba(204, 181, 116, 0.28);
  --text: #edf3ff;
  --text-soft: rgba(237, 243, 255, 0.78);
  --text-muted: rgba(182, 197, 222, 0.58);
  --heading: #fbfdff;
  --accent: #d8bd76;
  --accent-soft: rgba(216, 189, 118, 0.1);
  --signal: #8bb8ff;
  --signal-strong: #dff2ff;
  --warning: #db8d73;
  --shadow: 0 34px 90px rgba(0, 0, 0, 0.36);
  --grid-line: rgba(255, 255, 255, 0.045);
  --hero-halo: radial-gradient(circle at center, rgba(139, 184, 255, 0.24), transparent 58%);
  --section-halo: radial-gradient(circle at top, rgba(216, 189, 118, 0.12), transparent 62%);
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #edf2fb;
  --bg-deep: #dce5f4;
  --void: #f7fbff;
  --surface: rgba(245, 249, 255, 0.8);
  --surface-strong: rgba(255, 255, 255, 0.96);
  --surface-alt: rgba(232, 238, 248, 0.88);
  --surface-glass: rgba(10, 23, 46, 0.04);
  --border: rgba(44, 69, 110, 0.16);
  --border-strong: rgba(157, 115, 45, 0.24);
  --text: #162032;
  --text-soft: rgba(22, 32, 50, 0.8);
  --text-muted: rgba(44, 61, 88, 0.58);
  --heading: #071120;
  --accent: #8a6632;
  --accent-soft: rgba(138, 102, 50, 0.1);
  --signal: #456fa8;
  --signal-strong: #11294f;
  --warning: #9f4f36;
  --shadow: 0 28px 70px rgba(42, 57, 87, 0.12);
  --grid-line: rgba(10, 23, 46, 0.06);
  --hero-halo: radial-gradient(circle at center, rgba(69, 111, 168, 0.16), transparent 60%);
  --section-halo: radial-gradient(circle at top, rgba(138, 102, 50, 0.08), transparent 62%);
}

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

html {
  scroll-behavior: smooth;
  background:
    radial-gradient(circle at 50% -8%, rgba(139, 184, 255, 0.18), transparent 28rem),
    radial-gradient(circle at 18% 16%, rgba(216, 189, 118, 0.12), transparent 24rem),
    linear-gradient(180deg, var(--bg-deep), var(--bg));
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.8;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 18rem),
    linear-gradient(180deg, var(--bg-deep), var(--bg));
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

body::before {
  background:
    radial-gradient(circle at calc(var(--pointer-x, 50) * 1%) calc(var(--pointer-y, 20) * 1%), rgba(139, 184, 255, 0.12), transparent 18rem),
    linear-gradient(90deg, transparent 0, transparent calc(50% - 18rem), var(--grid-line) calc(50% - 18rem), transparent calc(50% - 17.94rem), transparent calc(50% + 17.94rem), var(--grid-line) calc(50% + 18rem), transparent calc(50% + 18.06rem), transparent 100%),
    linear-gradient(var(--grid-line) 1px, transparent 1px);
  background-size: auto, auto, 100% 3.8rem;
  opacity: 0.7;
}

body::after {
  background:
    radial-gradient(circle at 50% -10%, rgba(255, 255, 255, 0.08), transparent 24rem),
    radial-gradient(circle at 80% 18%, rgba(216, 189, 118, 0.09), transparent 22rem),
    radial-gradient(circle at 24% 24%, rgba(139, 184, 255, 0.08), transparent 20rem);
  mix-blend-mode: screen;
  opacity: 0.85;
}

main,
header,
footer {
  position: relative;
  z-index: 1;
}

img {
  display: block;
  max-width: 100%;
}

a,
button {
  color: inherit;
  font: inherit;
  -webkit-tap-highlight-color: transparent;
  transition:
    color 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease,
    opacity 180ms ease;
}

:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px rgba(139, 184, 255, 0.12);
}

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 100;
  padding: 0.7rem 1rem;
  border-radius: var(--radius-pill);
  background: var(--surface-strong);
  color: var(--heading);
  transform: translateY(-140%);
  transition: transform 180ms ease;
}

.skip-link:focus-visible {
  transform: translateY(0);
}

.shell {
  width: min(100% - 2rem, var(--shell-width));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 0.85rem 0 0;
}

.site-header__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  min-height: var(--header-height);
  padding: 0.85rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: calc(var(--radius-large) - 0.3rem);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent),
    color-mix(in srgb, var(--surface-strong) 92%, transparent);
  backdrop-filter: blur(16px) saturate(140%);
  box-shadow: var(--shadow);
}

.site-header.is-settled .site-header__inner {
  border-color: var(--border);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.95rem;
  text-decoration: none;
}

.site-brand__mark {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 2.8rem;
  height: 2.8rem;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  color: var(--signal-strong);
  font: 700 0.75rem/1 var(--font-ui);
  letter-spacing: 0.26em;
  text-transform: uppercase;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.14), transparent 60%),
    linear-gradient(180deg, rgba(216, 189, 118, 0.18), rgba(139, 184, 255, 0.08));
  box-shadow:
    inset 0 0 26px rgba(255, 255, 255, 0.05),
    0 0 28px rgba(139, 184, 255, 0.12);
}

.site-brand__text {
  display: grid;
  gap: 0.12rem;
}

.site-brand__text strong,
.hero h1,
.section-heading h2,
.panel h3,
.threshold-title {
  font-family: var(--font-display);
}

.site-brand__text strong {
  font-size: 0.9rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.site-brand__text span {
  color: var(--text-muted);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.site-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.site-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.7rem;
  padding: 0.65rem 0.95rem;
  border-radius: var(--radius-pill);
  text-decoration: none;
  color: var(--text-soft);
  font: 600 0.78rem/1 var(--font-ui);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.site-nav a::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid transparent;
  border-radius: inherit;
  transition: border-color 180ms ease, opacity 180ms ease;
  opacity: 0;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.is-active {
  color: var(--heading);
  background: rgba(255, 255, 255, 0.03);
}

.site-nav a:hover::before,
.site-nav a:focus-visible::before,
.site-nav a.is-active::before {
  border-color: var(--border);
  opacity: 1;
}

.site-tools {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.theme-toggle,
.menu-toggle {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}

.theme-toggle {
  display: inline-grid;
  place-items: center;
  min-width: 3.1rem;
  height: 3.1rem;
  padding: 0 0.9rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
}

.theme-toggle__sun,
.theme-toggle__moon {
  grid-area: 1 / 1;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

html[data-theme="light"] .theme-toggle__moon,
html[data-theme="dark"] .theme-toggle__sun {
  opacity: 0;
}

html[data-theme="light"] .theme-toggle__sun,
html[data-theme="dark"] .theme-toggle__moon {
  opacity: 1;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.32rem;
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
}

.menu-toggle span {
  width: 1rem;
  height: 1px;
  background: currentColor;
}

.theme-toggle:hover,
.menu-toggle:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-strong);
}

main {
  padding-bottom: 2rem;
}

.home-stage {
  position: relative;
  isolation: isolate;
}

.home-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(139, 184, 255, 0.08), transparent 30rem),
    linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.12) 100%);
  z-index: -1;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(18rem, 0.96fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: end;
  padding-top: clamp(4rem, 8vw, 7rem);
}

.hero::before {
  content: "";
  position: absolute;
  inset: -4rem -1rem auto -1rem;
  height: 24rem;
  background:
    radial-gradient(circle at 34% 42%, rgba(139, 184, 255, 0.18), transparent 24rem),
    radial-gradient(circle at 78% 18%, rgba(216, 189, 118, 0.16), transparent 18rem),
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.04), transparent);
  z-index: -1;
  filter: blur(8px);
}

.hero__copy {
  position: relative;
  display: grid;
  gap: 1.35rem;
  padding: clamp(1.4rem, 2vw, 2rem) 0;
  max-width: 44rem;
}

.eyebrow,
.section-index,
.order-index,
.signal-tag,
.threshold-kicker {
  margin: 0;
  color: var(--accent);
  font: 700 0.72rem/1.2 var(--font-ui);
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  color: var(--heading);
  font-size: clamp(4.3rem, 15vw, 8.6rem);
  line-height: 0.82;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-shadow: 0 0 34px rgba(139, 184, 255, 0.08);
}

.hero__declaration {
  max-width: 40rem;
  margin: 0;
  color: var(--heading);
  font-size: clamp(1.5rem, 3vw, 2.45rem);
  line-height: 1.14;
}

.hero__intro {
  max-width: 34rem;
  margin: 0;
  color: var(--text-soft);
  font-size: 1.08rem;
}

.hero__meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero__meta li {
  position: relative;
  padding: 1rem 1.1rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 1.15rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent),
    rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(10px);
}

.hero__meta strong {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--signal-strong);
  font: 700 0.78rem/1 var(--font-ui);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero__meta span {
  display: block;
  color: var(--text-soft);
  font-size: 0.95rem;
  line-height: 1.6;
}

.hero__visual {
  position: relative;
  margin: 0;
  min-height: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-large);
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent),
    var(--surface);
  box-shadow: var(--shadow);
}

.hero__visual::before,
.hero__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__visual::before {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.15), transparent 38%),
    radial-gradient(circle at center, rgba(139, 184, 255, 0.18), transparent 60%);
  mix-blend-mode: screen;
}

.hero__visual::after {
  inset: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: calc(var(--radius-large) - 0.6rem);
}

.hero__visual img {
  width: 100%;
  height: 100%;
  min-height: 24rem;
  max-height: min(76vh, 48rem);
  object-fit: cover;
  transform: scale(1.03);
  filter: saturate(108%) contrast(104%);
}

.hero__visual figcaption {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  max-width: 22rem;
  margin: 0;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  color: var(--text-soft);
  font-size: 0.92rem;
  line-height: 1.5;
  background: rgba(6, 10, 18, 0.66);
  backdrop-filter: blur(14px);
}

.hero__signal {
  position: absolute;
  inset: auto auto 1rem 1rem;
  display: grid;
  gap: 0.45rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  background: rgba(6, 10, 18, 0.62);
  backdrop-filter: blur(14px);
}

.hero__signal p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero__signal strong {
  color: var(--heading);
  font: 600 1rem/1.2 var(--font-display);
  letter-spacing: 0.06em;
}

.section {
  position: relative;
  padding-top: var(--section-space);
  scroll-margin-top: calc(var(--header-height) + 1.4rem);
}

.section::before {
  content: "";
  position: absolute;
  inset: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: var(--section-halo);
  opacity: 0.85;
  pointer-events: none;
}

.section-heading {
  position: relative;
  display: grid;
  gap: 0.65rem;
  max-width: 44rem;
  margin-bottom: 1.9rem;
}

.section-declaration {
  margin: 0;
  color: var(--signal-strong);
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  line-height: 1.35;
}

.section-heading h2 {
  margin: 0;
  color: var(--heading);
  font-size: clamp(2.6rem, 7vw, 4.8rem);
  line-height: 0.9;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-grid,
.stack,
.phase-list,
.threshold-flow,
.signal-cluster {
  display: grid;
  gap: 1rem;
}

.section-grid--feature {
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
}

.section-grid--split {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.section-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1rem;
}

.panel,
.image-panel,
.threshold-frame,
.archive-footer {
  position: relative;
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent),
    var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.panel::before,
.image-panel::before,
.threshold-frame::before,
.archive-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.09), transparent 34%),
    linear-gradient(180deg, transparent 70%, rgba(139, 184, 255, 0.07));
  opacity: 0.7;
  pointer-events: none;
}

.panel::after,
.image-panel::after,
.threshold-frame::after {
  content: "";
  position: absolute;
  inset: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: calc(var(--radius) - 0.45rem);
  pointer-events: none;
}

.panel {
  padding: 1.55rem;
}

.panel--feature,
.panel--tall,
.panel--wide {
  padding: clamp(1.5rem, 3vw, 2.2rem);
}

.panel--feature {
  min-height: 100%;
}

.panel--quote {
  display: grid;
  align-content: start;
  gap: 0.9rem;
}

.panel--quote blockquote {
  margin: 0;
  color: var(--heading);
  font-size: clamp(1.35rem, 2.6vw, 1.95rem);
  line-height: 1.35;
}

.panel h3 {
  margin: 0 0 0.7rem;
  color: var(--heading);
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  line-height: 1.08;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.panel p,
.phase-list p,
.threshold-copy p {
  position: relative;
  margin-top: 0;
  color: var(--text-soft);
}

.panel p:last-child,
.phase-list p:last-child,
.threshold-copy p:last-child {
  margin-bottom: 0;
}

.callout,
.order-line {
  color: var(--signal-strong);
}

.callout {
  font-size: 1.16rem;
}

.panel--wide {
  margin-top: 1rem;
}

.order-panel {
  min-height: 100%;
}

.image-panel img {
  width: 100%;
  height: 100%;
  min-height: 18rem;
  object-fit: cover;
}

.image-panel figcaption {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  margin: 0;
  padding: 0.85rem 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  color: var(--text-soft);
  font-size: 0.88rem;
  line-height: 1.5;
  background: rgba(5, 8, 14, 0.62);
  backdrop-filter: blur(12px);
}

.signal-cluster {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1.2rem;
}

.signal-node {
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.02);
}

.signal-node strong {
  display: block;
  margin-bottom: 0.55rem;
  color: var(--signal-strong);
  font: 700 0.76rem/1 var(--font-ui);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.signal-node span {
  color: var(--text-soft);
  font-size: 0.95rem;
  line-height: 1.6;
}

.threshold-frame {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(18rem, 0.95fr);
  gap: 1rem;
  padding: clamp(1.3rem, 3vw, 2rem);
  margin-top: 1rem;
}

.threshold-copy {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.threshold-title {
  margin: 0;
  color: var(--heading);
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 0.98;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.threshold-flow {
  align-content: start;
}

.threshold-step {
  padding: 1rem 1.05rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.02);
}

.threshold-step strong {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--accent);
  font: 700 0.76rem/1 var(--font-ui);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.threshold-step span {
  color: var(--text-soft);
  font-size: 0.94rem;
  line-height: 1.6;
}

.archive-footer {
  margin: clamp(4rem, 9vw, 6.5rem) auto 0;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-radius: var(--radius-large);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent),
    var(--surface-strong);
}

.archive-footer__inner,
.archive-footer__topline {
  position: relative;
  display: grid;
  gap: 1.25rem;
}

.archive-footer__eyebrow {
  margin: 0;
  color: var(--accent);
  font: 700 0.72rem/1 var(--font-ui);
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.archive-footer__line {
  margin: 0;
  max-width: 42rem;
  color: var(--heading);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.35;
}

.archive-footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 0.9rem;
}

.archive-footer__link {
  position: relative;
  display: block;
  padding: 0.95rem 1rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  text-decoration: none;
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.02);
}

.archive-footer__link:hover,
.archive-footer__link:focus-visible,
.archive-footer__link[aria-current="page"] {
  color: var(--heading);
  border-color: var(--border-strong);
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.18);
}

.archive-footer__link-title {
  display: block;
  font-size: 0.98rem;
  line-height: 1.3;
}

.archive-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 0.2rem;
}

.archive-footer__note {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.archive-footer__toplink {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.8rem;
  padding: 0.7rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  color: var(--heading);
  text-decoration: none;
  font: 600 0.78rem/1 var(--font-ui);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.03);
}

.archive-footer__toplink:hover,
.archive-footer__toplink:focus-visible {
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

body.nav-open {
  overflow: hidden;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 680ms ease,
    transform 680ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 960px) {
  .site-header__inner {
    position: relative;
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 0.65rem);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 0.8rem;
    border: 1px solid var(--border);
    border-radius: 1.2rem;
    background: var(--surface-strong);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    justify-content: flex-start;
    padding-inline: 1rem;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .hero,
  .section-grid--feature,
  .section-grid--split,
  .section-grid--three,
  .signal-cluster,
  .threshold-frame {
    grid-template-columns: 1fr;
  }

  .hero__visual {
    min-height: 26rem;
  }
}

@media (max-width: 640px) {
  .shell {
    width: min(100% - 1rem, var(--shell-width));
  }

  .site-header {
    padding-top: 0.4rem;
  }

  .site-header__inner {
    padding: 0.75rem 0.8rem;
  }

  .site-brand__text span {
    display: none;
  }

  .hero {
    padding-top: 3.4rem;
  }

  .hero h1 {
    font-size: clamp(3.5rem, 18vw, 5.1rem);
  }

  .hero__meta,
  .archive-footer__grid {
    grid-template-columns: 1fr;
  }

  .hero__visual figcaption,
  .hero__signal,
  .image-panel figcaption {
    position: static;
    margin: 1rem;
  }

  .panel,
  .threshold-frame,
  .archive-footer {
    padding: 1.15rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
