:root {
  --ink: #061321;
  --ink-soft: #0b1c2e;
  --ink-raised: #10253a;
  --ink-deep: #040e1a;
  --paper: #f2f7fb;
  --white: #ffffff;
  --cyan: #67e8f9;
  --cyan-strong: #22d3ee;
  --teal: #2dd4bf;
  --violet: #a78bfa;
  --coral: #ff7a6b;
  --amber: #ffc86b;
  --text: #eff7ff;
  --muted: #a9bed0;
  --faint: #7f97a9;
  --dark-text: #10263a;
  --dark-muted: #5a7083;
  --line: rgba(148, 197, 221, 0.16);
  --line-strong: rgba(148, 197, 221, 0.3);
  --glass: rgba(11, 28, 46, 0.74);
  --shadow: 0 32px 100px rgba(0, 13, 30, 0.42);
  --radius-lg: 30px;
  --radius-md: 20px;
  --wrap: 1180px;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --mono: 'DM Mono', ui-monospace, 'Cascadia Mono', monospace;
  --sans:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--ink);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--text);
  background: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

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

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: var(--ink);
  background: var(--cyan);
  border-radius: 10px;
  transform: translateY(-150%);
}

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

.wrap {
  width: min(calc(100% - 40px), var(--wrap));
  margin-inline: auto;
}

.site-nav {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  width: 100%;
  border-bottom: 1px solid transparent;
  background: linear-gradient(180deg, rgba(3, 14, 27, 0.86), rgba(3, 14, 27, 0));
  transition:
    background 200ms ease,
    border-color 200ms ease;
}

.site-nav.scrolled {
  border-color: var(--line);
  background: rgba(4, 14, 26, 0.96);
  backdrop-filter: blur(14px);
}

.nav-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 12px;
  background: linear-gradient(145deg, #c9fbff 0%, var(--cyan) 48%, var(--teal) 100%);
  box-shadow: 0 10px 28px rgba(34, 211, 238, 0.2);
}

.brand-mark svg {
  width: 23px;
  height: 23px;
}

.brand-copy {
  display: grid;
  line-height: 1;
}

.brand-copy strong {
  font-size: 0.96rem;
  letter-spacing: 0.01em;
}

.brand-copy small {
  margin-top: 5px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-link {
  color: #c7d7e5;
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 150ms ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--white);
}

.mobile-index {
  position: fixed;
  z-index: 90;
  top: 82px;
  left: 0;
  display: none;
  width: 100%;
  gap: 7px;
  padding: 8px 20px;
  overflow-x: auto;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(4, 14, 26, 0.96);
  backdrop-filter: blur(14px);
  scrollbar-width: none;
}

.mobile-index::-webkit-scrollbar {
  display: none;
}

.mobile-index a {
  flex: 0 0 auto;
  padding: 8px 12px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  text-decoration: none;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 760;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #041523;
  background: linear-gradient(135deg, #bdf7ff, var(--cyan) 48%, var(--teal));
  box-shadow: 0 14px 40px rgba(34, 211, 238, 0.22);
}

.button-primary:hover {
  box-shadow: 0 18px 50px rgba(34, 211, 238, 0.3);
}

.button-ghost {
  color: var(--text);
  border-color: rgba(189, 232, 249, 0.23);
  background: rgba(8, 24, 41, 0.54);
}

.button-ghost:hover {
  border-color: rgba(103, 232, 249, 0.48);
  background: rgba(17, 43, 68, 0.74);
}

.button svg {
  width: 17px;
  height: 17px;
}

.button:focus-visible,
.nav-link:focus-visible,
.mobile-index a:focus-visible,
.loop-tabs button:focus-visible,
.gate-status-row button:focus-visible,
.lens-toggle button:focus-visible,
.trace-button:focus-visible,
input[type='range']:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.hero {
  position: relative;
  min-height: 860px;
  display: grid;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 72% 33%, rgba(39, 170, 219, 0.14), transparent 30%),
    radial-gradient(circle at 20% 15%, rgba(45, 212, 191, 0.09), transparent 28%),
    linear-gradient(145deg, #071829 0%, #061321 52%, #03101e 100%);
}

.hero::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: 0.26;
  background-image:
    linear-gradient(rgba(112, 183, 218, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(112, 183, 218, 0.08) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

.hero::after {
  content: '';
  position: absolute;
  z-index: 0;
  right: -15%;
  bottom: -32%;
  width: 76vw;
  aspect-ratio: 1;
  border: 1px solid rgba(103, 232, 249, 0.08);
  border-radius: 50%;
  box-shadow:
    0 0 0 11vw rgba(103, 232, 249, 0.018),
    0 0 0 22vw rgba(103, 232, 249, 0.012);
}

.hero-grid {
  position: relative;
  z-index: 2;
  min-height: 860px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 24px;
  padding-top: 105px;
  padding-bottom: 66px;
}

.hero-copy {
  position: relative;
  z-index: 3;
  min-width: 0;
  max-width: 610px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: currentColor;
}

.hero h1 {
  max-width: 720px;
  margin: 25px 0 24px;
  font-family: var(--serif);
  font-size: clamp(3.7rem, 6vw, 5.7rem);
  font-weight: 500;
  line-height: 0.96;
  letter-spacing: -0.045em;
}

.hero h1 span {
  display: block;
  white-space: nowrap;
  color: transparent;
  background: linear-gradient(110deg, #ffffff 0%, #b8f7ff 38%, #67e8f9 64%, #a78bfa 112%);
  -webkit-background-clip: text;
  background-clip: text;
}

.lede {
  max-width: 590px;
  margin: 0;
  color: #b7c9d8;
  font-size: clamp(1.02rem, 1.5vw, 1.18rem);
  line-height: 1.68;
}

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

.proof-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 36px;
}

.proof-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 12px;
  color: #c4d5e3;
  border: 1px solid rgba(142, 190, 214, 0.16);
  border-radius: 999px;
  background: rgba(5, 20, 34, 0.46);
  font-size: 0.76rem;
  font-weight: 650;
}

.proof-chip::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 13px var(--cyan);
}

.hero-visual {
  position: relative;
  z-index: 1;
  min-width: 760px;
  margin-right: -230px;
  transform: translateX(-28px);
}

.hero-art {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 42px 76px rgba(0, 0, 0, 0.45));
  mask-image: linear-gradient(90deg, transparent 0%, black 12%, black 100%);
}

.live-card {
  position: absolute;
  z-index: 4;
  left: 14%;
  bottom: 8%;
  width: 292px;
  padding: 19px;
  border: 1px solid rgba(146, 219, 241, 0.24);
  border-radius: 19px;
  background: rgba(6, 23, 40, 0.8);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.44);
  backdrop-filter: blur(18px);
}

.live-card-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  color: #8ca8bc;
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.live-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #9ef3e7;
}

.live-status::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 12px var(--teal);
}

.live-time {
  margin-top: 13px;
  font-size: 1.55rem;
  font-weight: 760;
  letter-spacing: -0.035em;
}

.live-meta {
  margin-top: 4px;
  color: #91aabd;
  font-size: 0.78rem;
}

.progress-track {
  height: 5px;
  margin-top: 17px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
}

.progress-track span {
  width: 64%;
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--teal));
  box-shadow: 0 0 16px rgba(45, 212, 191, 0.5);
}

.stat-band {
  position: relative;
  border-top: 1px solid rgba(148, 197, 221, 0.14);
  border-bottom: 1px solid rgba(148, 197, 221, 0.1);
  background:
    radial-gradient(circle at 8% 0%, rgba(103, 232, 249, 0.06), transparent 34%),
    linear-gradient(180deg, #05121f, #071626);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  padding: 46px 0 48px;
}

.stat {
  display: grid;
  gap: 10px;
  align-content: start;
  padding-left: 20px;
  border-left: 1px solid rgba(103, 232, 249, 0.22);
}

.stat-number {
  color: transparent;
  background: linear-gradient(115deg, #ffffff 6%, #9df1fc 52%, var(--teal) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  font-family: var(--serif);
  font-size: clamp(2.5rem, 3.8vw, 3.4rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.04em;
}

.stat-caption {
  max-width: 230px;
  color: #93acc0;
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  line-height: 1.55;
  text-transform: uppercase;
}

.section {
  position: relative;
  padding: 116px 0;
  border-top: 1px solid rgba(148, 197, 221, 0.08);
  background:
    radial-gradient(circle at 12% 20%, rgba(45, 212, 191, 0.05), transparent 24%),
    linear-gradient(165deg, #081a2c, #061321 60%);
}

.section-deep {
  background:
    radial-gradient(circle at 85% 8%, rgba(103, 232, 249, 0.055), transparent 30%),
    linear-gradient(180deg, #04101d, #050f1b 70%);
}

section[id] {
  scroll-margin-top: 7.5rem;
}

.section-kicker {
  margin: 0 0 16px;
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.section h2 {
  max-width: 860px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.5rem, 4.9vw, 4.3rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.035em;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(250px, 0.65fr);
  align-items: end;
  gap: 44px;
}

.section-aside {
  max-width: 480px;
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.75;
}

.detail-label {
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(150deg, rgba(15, 38, 58, 0.72), rgba(5, 17, 30, 0.86));
  box-shadow:
    0 30px 90px rgba(0, 10, 24, 0.4),
    inset 0 1px rgba(255, 255, 255, 0.045);
}

.console-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.console-head b {
  color: var(--cyan);
  font-weight: 500;
}

/* --- The visit loop --------------------------------------------------- */

.loop-shell {
  margin-top: 56px;
  overflow: hidden;
}

.loop-tabs {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border-bottom: 1px solid var(--line);
}

.loop-tabs button {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-height: 118px;
  min-width: 0;
  padding: 18px;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition:
    background 160ms ease,
    color 160ms ease;
}

.loop-tabs button:last-child {
  border-right: 0;
}

.loop-tabs button span {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 0.58rem;
  font-weight: 500;
}

.loop-tabs button b {
  margin-top: auto;
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1;
}

.loop-tabs button small {
  color: var(--faint);
  font-size: 0.62rem;
}

.loop-tabs button.active {
  color: var(--cyan);
  background: rgba(103, 232, 249, 0.07);
  box-shadow: inset 0 -2px var(--cyan);
}

.loop-tabs button.active small {
  color: #8fd4e2;
}

.loop-detail {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  padding: 42px;
}

.loop-detail h3 {
  max-width: 560px;
  margin: 14px 0 16px;
  font-family: var(--serif);
  font-size: clamp(1.6rem, 2.4vw, 2.15rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.loop-detail > div > p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.75;
}

.loop-detail dl {
  display: grid;
  align-content: center;
  margin: 0;
}

.loop-detail dl div {
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 16px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.loop-detail dl div:last-child {
  border-bottom: 0;
}

.loop-detail dt {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 0.58rem;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.loop-detail dd {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.6;
}

.loop-return {
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: 850px;
  margin-top: 26px;
}

.loop-return-mark {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  color: #041523;
  border-radius: 14px;
  background: linear-gradient(135deg, #bdf7ff, var(--cyan) 48%, var(--teal));
  box-shadow: 0 12px 34px rgba(34, 211, 238, 0.24);
  font-size: 1.15rem;
  font-weight: 800;
}

.loop-return p {
  margin: 0;
  color: #cfe2ee;
  font-size: 0.98rem;
  font-weight: 620;
  line-height: 1.55;
}

/* --- The access gate --------------------------------------------------- */

.gate-shell {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  margin-top: 56px;
  overflow: hidden;
}

.gate-demo {
  min-width: 0;
  padding: 34px;
  border-right: 1px solid var(--line);
}

.gate-clock {
  margin-top: 26px;
  font-family: var(--serif);
  font-size: 2.7rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
}

.gate-track {
  position: relative;
  height: 10px;
  margin-top: 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
}

.gate-zone-grace {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 19.048%;
  width: 76.19%;
  border-radius: 999px;
  background: rgba(103, 232, 249, 0.14);
}

.gate-zone-window {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 31.746%;
  width: 50.794%;
  border-radius: 999px;
  background: rgba(45, 212, 191, 0.34);
}

.gate-needle {
  position: absolute;
  top: -5px;
  bottom: -5px;
  left: 7.94%;
  width: 3px;
  border-radius: 3px;
  background: var(--white);
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.65);
  transform: translateX(-50%);
}

.gate-track-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 0.56rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

input[type='range'] {
  width: 100%;
  accent-color: var(--cyan-strong);
  cursor: pointer;
}

.gate-demo input[type='range'] {
  margin: 18px 0 4px;
}

.gate-status-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 18px;
}

.gate-status-row button,
.lens-toggle button {
  min-width: 0;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(6, 20, 35, 0.55);
  color: var(--faint);
  text-align: left;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    color 160ms ease;
}

.gate-status-row button span,
.lens-toggle button span {
  display: block;
  font-family: var(--mono);
  font-size: 0.52rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.gate-status-row button b,
.lens-toggle button b {
  display: block;
  margin-top: 8px;
  color: inherit;
  font-size: 0.8rem;
  font-weight: 700;
}

.gate-status-row button.active,
.lens-toggle button.active {
  color: var(--text);
  border-color: rgba(103, 232, 249, 0.42);
  background: rgba(103, 232, 249, 0.08);
}

.cue-gate {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 12px;
  align-items: center;
  margin-top: 18px;
  padding: 15px 17px;
  border: 1px solid rgba(45, 212, 191, 0.32);
  border-radius: 14px;
  background: rgba(45, 212, 191, 0.07);
}

.cue-gate > span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 12px rgba(45, 212, 191, 0.6);
}

.cue-gate b {
  display: block;
  font-size: 0.86rem;
}

.cue-gate small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.72rem;
}

.cue-gate.blocked {
  border-color: rgba(255, 122, 107, 0.4);
  background: rgba(255, 122, 107, 0.07);
}

.cue-gate.blocked > span {
  background: var(--coral);
  box-shadow: 0 0 12px rgba(255, 122, 107, 0.55);
}

.cue-gate.blocked b {
  color: #ffb0a5;
}

.gate-path {
  display: grid;
  gap: 10px;
  align-content: center;
  min-width: 0;
  padding: 30px;
}

.gate-node {
  position: relative;
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(6, 20, 35, 0.5);
  transition:
    border-color 180ms ease,
    opacity 180ms ease,
    background 180ms ease;
}

.gate-node span {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 0.52rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.gate-node b {
  font-family: var(--serif);
  font-size: 1.12rem;
  font-weight: 500;
}

.gate-node small {
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.5;
}

.gate-node em {
  position: absolute;
  top: 14px;
  right: 16px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 0.54rem;
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gate-node.pass {
  border-color: rgba(45, 212, 191, 0.34);
}

.gate-node.pass em {
  color: var(--teal);
}

.gate-node.fail {
  border-color: rgba(255, 122, 107, 0.4);
  background: rgba(255, 122, 107, 0.05);
}

.gate-node.fail em {
  color: var(--coral);
}

.rule-excerpt-strip {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 34px;
  padding: 30px 34px;
  border-top: 1px solid var(--line);
  background: rgba(3, 12, 22, 0.55);
}

.rule-excerpt-copy p {
  max-width: 380px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.65;
}

.rule-excerpt-copy b {
  color: #bfe9f4;
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 500;
}

.rule-excerpt {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.rule-excerpt code {
  display: block;
  min-width: 0;
  padding: 10px 14px;
  color: #9fe8f5;
  border: 1px solid rgba(103, 232, 249, 0.16);
  border-radius: 10px;
  background: rgba(2, 10, 19, 0.6);
  font-family: var(--mono);
  font-size: 0.68rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.gate-footnote {
  max-width: 760px;
  margin: 30px 0 0;
  color: var(--faint);
  font-size: 0.84rem;
  line-height: 1.7;
}

/* --- The home, mapped -------------------------------------------------- */

.lane-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  margin-top: 56px;
}

.lane-card {
  padding: 28px 30px 22px;
  color: var(--dark-text);
  border: 1px solid rgba(210, 232, 244, 0.5);
  border-radius: var(--radius-md);
  background: rgba(250, 253, 255, 0.94);
  box-shadow: 0 26px 80px rgba(0, 10, 24, 0.35);
}

.lane-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.lane-tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  color: #0b4b59;
  border-radius: 999px;
  background: #c9f8fc;
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.lane-tag-alt {
  color: #382b69;
  background: #e4dcff;
}

.lane-tag-shared {
  color: #065f52;
  background: #c9f6ec;
}

.lane-total {
  color: #078da5;
  font-size: 0.92rem;
  font-weight: 820;
  letter-spacing: -0.01em;
}

.lane-card h3 {
  margin: 18px 0 6px;
  font-size: 1.16rem;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.zone-list {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.zone-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  border-bottom: 1px solid #e2ebf1;
  color: #33586c;
  font-size: 0.86rem;
  font-weight: 600;
}

.zone-list li:last-child {
  border-bottom: 0;
}

.zone-name {
  min-width: 0;
}

.zone-meta {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 6px;
}

.zone-meta em {
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 0.64rem;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}

.zone-weekly {
  color: #067e6b;
  background: #d9f7ef;
}

.zone-count {
  color: #4d6780;
  background: #edf3f7;
}

.shared-strip {
  margin-top: 22px;
  padding: 22px 30px;
  color: #33586c;
  border: 1px solid rgba(210, 240, 231, 0.5);
  border-radius: var(--radius-md);
  background: rgba(240, 251, 247, 0.94);
  box-shadow: 0 20px 60px rgba(0, 10, 24, 0.3);
}

.shared-copy {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 20px;
}

.shared-copy p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
}

.shared-copy strong,
.shared-copy b {
  color: #067e92;
}

/* --- The zone lens ----------------------------------------------------- */

.lens-shell {
  margin-top: 30px;
  overflow: hidden;
}

.lens-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 30px 34px 24px;
  border-bottom: 1px solid var(--line);
}

.lens-head h3 {
  margin: 12px 0 0;
  font-family: var(--serif);
  font-size: 1.85rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.lens-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  min-width: min(340px, 100%);
}

.lens-toggle button b i {
  font-style: normal;
}

.lens-list {
  margin: 0;
  padding: 6px 34px 2px;
  list-style: none;
}

.lens-task {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 54px;
  border-bottom: 1px solid var(--line);
  transition: opacity 180ms ease;
}

.lens-task:last-child {
  border-bottom: 0;
}

.lens-check {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  color: #052a24;
  border: 1px solid rgba(45, 212, 191, 0.5);
  border-radius: 7px;
  background: linear-gradient(135deg, rgba(103, 232, 249, 0.85), rgba(45, 212, 191, 0.85));
  font-size: 0.7rem;
  font-weight: 800;
}

.lens-check::before {
  content: '✓';
}

.lens-task[data-depth='deep'] .lens-check {
  color: transparent;
  border: 1px solid rgba(167, 139, 250, 0.55);
  background: rgba(167, 139, 250, 0.12);
}

.lens-copy {
  min-width: 0;
  color: #d7e6f1;
  font-size: 0.86rem;
  overflow-wrap: anywhere;
}

.lens-task em {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 0.56rem;
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.lens-task[data-depth='deep'] em {
  color: #c4b2ff;
}

[data-mode='weekly'] .lens-task[data-depth='deep'] {
  opacity: 0.42;
}

[data-mode='weekly'] .lens-task[data-depth='deep'] .lens-check {
  border-style: dashed;
  background: transparent;
}

.lens-foot {
  display: none;
  margin: 0;
  padding: 16px 34px 6px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.6;
}

.lens-foot.active {
  display: block;
}

.lens-foot b {
  color: #bfe9f4;
}

.lens-note {
  margin: 10px 0 0;
  padding: 16px 34px 26px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 0.8rem;
  line-height: 1.65;
}

.lens-note b {
  color: #bfe9f4;
}

/* --- Discipline strip --------------------------------------------------- */

.outlier-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  margin-top: 30px;
  padding: 36px 38px;
  border: 1px solid rgba(103, 232, 249, 0.16);
  border-radius: 24px;
  background: rgba(2, 15, 27, 0.46);
}

.discipline-kicker {
  margin: 0 0 10px;
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.outlier-strip h3 {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.outlier-strip p {
  max-width: 650px;
  margin: 0;
  color: #92aabd;
  font-size: 0.9rem;
  line-height: 1.65;
}

.rhythm {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.rhythm span {
  padding: 8px 11px;
  border-radius: 999px;
  font-size: 0.67rem;
  font-weight: 760;
}

.rhythm .repeat {
  color: #9ef3e7;
  background: rgba(45, 212, 191, 0.11);
}

.rhythm .oneoff {
  color: #b0bdc8;
  border: 1px dashed rgba(172, 194, 208, 0.26);
}

/* --- Product windows ---------------------------------------------------- */

.demo-grid {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 30px;
  margin-top: 58px;
}

.session-panel,
.checklist-panel {
  color: var(--dark-text);
  border: 1px solid rgba(210, 232, 244, 0.5);
  border-radius: var(--radius-lg);
  background: rgba(250, 253, 255, 0.94);
  box-shadow: 0 26px 80px rgba(0, 10, 24, 0.35);
}

.session-panel {
  padding: 30px;
}

.panel-label {
  color: #6b8191;
  font-size: 0.68rem;
  font-weight: 820;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.appointment {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-top: 28px;
  padding-bottom: 26px;
  border-bottom: 1px solid #d8e4ec;
}

.appointment-date {
  display: grid;
}

.appointment-date strong {
  font-size: 2.6rem;
  line-height: 1;
  letter-spacing: -0.05em;
}

.appointment-date span,
.appointment-time span {
  margin-top: 7px;
  color: #718695;
  font-size: 0.78rem;
  font-weight: 700;
}

.appointment-time {
  display: grid;
  text-align: right;
}

.appointment-time strong {
  color: #078da5;
  font-size: 1.42rem;
}

.cleaner-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 25px;
}

.avatar-stack {
  display: flex;
}

.avatar {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  margin-left: -7px;
  color: #0b4b59;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #c9f8fc;
  font-size: 0.72rem;
  font-weight: 800;
}

.avatar:first-child {
  margin-left: 0;
  color: #382b69;
  background: #e4dcff;
}

.cleaner-copy {
  display: grid;
  gap: 2px;
}

.cleaner-copy strong {
  font-size: 0.84rem;
}

.cleaner-copy span {
  color: #718695;
  font-size: 0.72rem;
}

.scope-note {
  margin-top: 25px;
  padding: 15px 16px;
  color: #33586c;
  border: 1px solid #cbe3ec;
  border-radius: 14px;
  background: #edf8fb;
  font-size: 0.78rem;
  line-height: 1.5;
}

.scope-note strong {
  color: #067e92;
}

.checklist-panel {
  overflow: hidden;
}

.checklist-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 27px 30px 23px;
  border-bottom: 1px solid #dfe9ef;
}

.checklist-head h3 {
  margin: 7px 0 0;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.percent {
  color: #078da5;
  font-size: 1.6rem;
  font-weight: 820;
  text-align: right;
}

.percent-sub {
  display: block;
  margin-top: 3px;
  color: #6b8191;
  font-size: 0.66rem;
  font-weight: 780;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.task-list {
  display: grid;
  padding: 8px 20px 20px;
}

.task {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 13px;
  min-height: 68px;
  padding: 0 10px;
  border-bottom: 1px solid #e4ecf1;
}

.task:last-child {
  border-bottom: 0;
}

.task-check {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  color: #fff;
  border: 1px solid #bad0db;
  border-radius: 9px;
  background: #fff;
}

.task.done .task-check {
  border-color: transparent;
  background: linear-gradient(135deg, #22c5dc, #2dd4bf);
}

.task-copy {
  display: grid;
  gap: 4px;
}

.task-copy strong {
  font-size: 0.85rem;
}

.task-copy span {
  color: #7b8f9d;
  font-size: 0.72rem;
}

.task-owner {
  padding: 7px 10px;
  color: #4d6780;
  border-radius: 999px;
  background: #edf3f7;
  font-size: 0.65rem;
  font-weight: 760;
}

/* --- The proof trail ---------------------------------------------------- */

.trace-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 26px;
  margin-top: 56px;
}

.trace-console {
  min-width: 0;
  padding: 30px;
}

.trace-console blockquote {
  margin: 24px 0 18px;
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2vw, 1.75rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.trace-button {
  width: 100%;
  padding: 14px;
  border: 1px solid rgba(103, 232, 249, 0.35);
  border-radius: 12px;
  background: rgba(103, 232, 249, 0.08);
  color: var(--cyan);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 760;
  transition:
    background 160ms ease,
    border-color 160ms ease;
}

.trace-button:hover {
  border-color: rgba(103, 232, 249, 0.6);
  background: rgba(103, 232, 249, 0.13);
}

.reverse-trace {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.reverse-trace li {
  position: relative;
  display: grid;
  grid-template-columns: minmax(84px, 0.55fr) 1.45fr;
  gap: 12px;
  padding: 11px 0 11px 20px;
  border-bottom: 1px solid var(--line);
  opacity: 0.82;
  transition:
    opacity 180ms ease,
    color 180ms ease;
}

.reverse-trace li:last-child {
  border-bottom: 0;
}

.reverse-trace li::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 7px;
  height: 7px;
  transform: translateY(-50%);
  border: 1px solid var(--faint);
  border-radius: 50%;
  transition:
    border-color 180ms ease,
    background 180ms ease;
}

.reverse-trace li.trace-active {
  opacity: 1;
}

.reverse-trace li.trace-active::before {
  border-color: var(--cyan);
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(103, 232, 249, 0.6);
}

.reverse-trace span {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 0.56rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.reverse-trace b {
  min-width: 0;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.evidence-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
}

.evidence-grid article {
  min-height: 230px;
  padding: 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(8, 22, 38, 0.5);
}

.evidence-grid article:nth-child(2n) {
  border-right: 0;
}

.evidence-grid article:nth-child(n + 3) {
  border-bottom: 0;
}

.evidence {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border: 1px solid;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.54rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.evidence.observed {
  color: #9ef3e7;
  border-color: rgba(45, 212, 191, 0.4);
}

.evidence.derived {
  color: #cabdff;
  border-color: rgba(167, 139, 250, 0.45);
}

.evidence.stated {
  color: #ffd9a1;
  border-color: rgba(255, 200, 107, 0.4);
}

.evidence.reconciled {
  color: #9fe8f5;
  border-color: rgba(103, 232, 249, 0.42);
}

.evidence-grid h3 {
  margin: 2.2rem 0 0.7rem;
  font-family: var(--serif);
  font-size: 1.42rem;
  font-weight: 500;
  letter-spacing: -0.015em;
}

.evidence-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.65;
}

.evidence-grid small {
  display: block;
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-family: var(--mono);
  font-size: 0.56rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* --- The running record ------------------------------------------------- */

.record-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  margin: 58px 0 0;
  padding: 0;
  list-style: none;
}

.record-item {
  position: relative;
  padding-top: 24px;
  border-top: 1px solid rgba(148, 197, 221, 0.22);
}

.record-item::before {
  content: '';
  position: absolute;
  top: -5px;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: linear-gradient(135deg, #22c5dc, var(--teal));
  box-shadow: 0 0 0 4px rgba(34, 197, 220, 0.14);
}

.record-date {
  display: block;
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.record-item p {
  margin: 10px 0 0;
  color: #9fb5c7;
  font-size: 0.88rem;
  line-height: 1.65;
}

.boundary-shell {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 44px;
  margin-top: 68px;
  padding: 38px;
}

.boundary-shell h3 {
  margin: 14px 0 0;
  font-family: var(--serif);
  font-size: clamp(1.7rem, 2.6vw, 2.2rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.boundary-lede {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

.boundary-principles {
  display: grid;
  align-content: center;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}

.boundary-principles span {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(6, 20, 35, 0.4);
}

.boundary-principles span:last-child {
  border-bottom: 0;
}

.boundary-principles b {
  font-size: 0.84rem;
}

.boundary-principles small {
  color: var(--faint);
  font-size: 0.72rem;
  line-height: 1.5;
}

/* --- CTA + footer -------------------------------------------------------- */

.cta-section {
  padding: 100px 0;
  border-top: 1px solid rgba(148, 197, 221, 0.08);
  background: linear-gradient(180deg, #04101d, #030c17);
}

.cta-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 40px;
  overflow: hidden;
  padding: 55px 58px;
  color: var(--text);
  border: 1px solid rgba(146, 219, 241, 0.18);
  border-radius: 30px;
  background:
    radial-gradient(circle at 88% 20%, rgba(103, 232, 249, 0.15), transparent 24%),
    linear-gradient(135deg, #0c2439, #061321 65%);
  box-shadow: var(--shadow);
}

.cta-card h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.15rem, 4.4vw, 3.7rem);
  font-weight: 500;
  line-height: 1.03;
  letter-spacing: -0.035em;
}

.cta-card p {
  max-width: 660px;
  margin: 16px 0 0;
  color: #a9bed0;
  font-size: 1rem;
  line-height: 1.65;
}

.cta-secondary {
  display: inline-block;
  margin-top: 20px;
  color: #9ef3e7;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
}

.cta-secondary:hover {
  color: var(--cyan);
  text-decoration: underline;
}

.site-footer {
  padding: 32px 0;
  color: #859bad;
  border-top: 1px solid rgba(148, 197, 221, 0.12);
  background: #04101d;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-size: 0.74rem;
}

.footer-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-note::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
}

/* --- Auth dialog --------------------------------------------------------- */

.auth-dialog {
  width: min(94vw, 470px);
  max-height: 92vh;
  margin: auto;
  padding: 0;
  color: var(--text);
  border: 1px solid rgba(148, 197, 221, 0.24);
  border-radius: 24px;
  background: #0b1d30;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.7);
}

.auth-dialog::backdrop {
  background: rgba(1, 8, 16, 0.82);
  backdrop-filter: blur(10px);
}

.dialog-shell {
  position: relative;
  padding: 34px;
}

.dialog-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: #b6c9d7;
  border: 1px solid rgba(148, 197, 221, 0.16);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}

.dialog-kicker {
  color: var(--cyan);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.auth-dialog h2 {
  margin: 10px 0 9px;
  font-size: 1.9rem;
  letter-spacing: -0.04em;
}

.dialog-intro {
  margin: 0 0 25px;
  color: #9eb4c5;
  font-size: 0.86rem;
  line-height: 1.6;
}

.auth-form {
  display: none;
}

.auth-form.active {
  display: block;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 7px;
  color: #cbdbe7;
  font-size: 0.76rem;
  font-weight: 700;
}

.form-group input {
  width: 100%;
  min-height: 49px;
  padding: 0 14px;
  color: var(--text);
  border: 1px solid rgba(148, 197, 221, 0.18);
  border-radius: 12px;
  outline: none;
  background: rgba(1, 10, 20, 0.38);
}

.form-group input:focus {
  border-color: var(--cyan-strong);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.12);
}

.form-group input::placeholder {
  color: #668094;
}

.auth-submit,
.google-button {
  width: 100%;
}

.google-button {
  color: #182430;
  background: #fff;
}

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: #6f899c;
  font-size: 0.7rem;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(148, 197, 221, 0.14);
}

.text-button {
  display: block;
  margin: 17px auto 0;
  padding: 0;
  color: var(--cyan);
  border: 0;
  background: none;
  cursor: pointer;
  font-size: 0.76rem;
}

.message {
  display: none;
  margin-bottom: 16px;
  padding: 11px 13px;
  border-radius: 10px;
  font-size: 0.76rem;
  line-height: 1.45;
}

.message.show {
  display: block;
}

.error-message {
  color: #fecaca;
  border: 1px solid rgba(248, 113, 113, 0.25);
  background: rgba(127, 29, 29, 0.2);
}

.success-message {
  color: #a7f3d0;
  border: 1px solid rgba(52, 211, 153, 0.25);
  background: rgba(6, 95, 70, 0.2);
}

.loading {
  opacity: 0.68;
  pointer-events: none;
}

/* --- Scroll reveal -------------------------------------------------------- */

.section .wrap > *,
.cta-card {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 550ms ease,
    transform 550ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

@media (prefers-reduced-motion: no-preference) {
  body.js-ready .section .wrap > *:not(.revealed),
  body.js-ready .cta-card:not(.revealed) {
    opacity: 0;
    transform: translateY(22px);
  }
}

/* --- Responsive ----------------------------------------------------------- */

@media (max-width: 1060px) {
  .nav-link {
    display: none;
  }

  .mobile-index {
    display: flex;
  }

  .hero {
    min-height: 940px;
  }

  .hero-grid {
    min-height: 940px;
    grid-template-columns: 1fr;
    align-content: center;
    padding-top: 158px;
  }

  .hero-copy {
    max-width: 760px;
  }

  .hero h1 {
    max-width: 800px;
    font-size: clamp(3.5rem, 9vw, 5.6rem);
  }

  .hero-visual {
    width: min(1040px, calc(92% + 270px));
    min-width: 0;
    margin: -110px -270px -140px 8%;
    transform: none;
  }

  .live-card {
    left: 10%;
    bottom: 15%;
  }

  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px 26px;
  }

  .section-heading {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 18px;
  }

  .section-aside {
    max-width: 660px;
    margin: 0;
  }

  .loop-tabs {
    grid-template-columns: repeat(3, 1fr);
  }

  .loop-tabs button:nth-child(3n) {
    border-right: 0;
  }

  .loop-tabs button:nth-child(-n + 3) {
    border-bottom: 1px solid var(--line);
  }

  .gate-shell {
    grid-template-columns: 1fr;
  }

  .gate-demo {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .rule-excerpt-strip {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .lane-grid {
    gap: 20px;
  }

  .demo-grid {
    grid-template-columns: 1fr;
  }

  .session-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 30px;
  }

  .session-panel .panel-label,
  .session-panel .appointment {
    grid-column: 1 / -1;
  }

  .trace-grid {
    grid-template-columns: 1fr;
  }

  .outlier-strip {
    display: grid;
    gap: 22px;
  }

  .record-timeline {
    grid-template-columns: 1fr 1fr;
    gap: 34px 26px;
  }

  .boundary-shell {
    grid-template-columns: 1fr;
    gap: 26px;
  }
}

@media (max-width: 820px) {
  .eyebrow {
    max-width: 100%;
  }

  .hero h1 span {
    white-space: normal;
  }

  .lane-grid {
    grid-template-columns: 1fr;
  }

  .loop-detail {
    grid-template-columns: 1fr;
    gap: 26px;
    padding: 28px;
  }
}

@media (max-width: 760px) {
  .wrap {
    width: min(calc(100% - 28px), var(--wrap));
  }

  .nav-inner {
    min-height: 74px;
  }

  .mobile-index {
    top: 74px;
    padding: 7px 14px;
  }

  .nav-links {
    gap: 8px;
  }

  .nav-links .button {
    min-height: 42px;
    padding-inline: 14px;
  }

  .brand-copy small {
    display: none;
  }

  .hero {
    min-height: auto;
  }

  .hero-grid {
    min-height: auto;
    padding-top: 158px;
    padding-bottom: 42px;
  }

  .hero h1 {
    margin-top: 20px;
    font-size: clamp(2.8rem, 11.6vw, 4.4rem);
  }

  .lede {
    font-size: 1rem;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    min-width: 0;
  }

  .hero-actions .button {
    min-width: 0;
    max-width: 100%;
    width: 100%;
  }

  .hero-visual {
    width: min(720px, calc(100% + 325px));
    margin: -50px -255px -72px -70px;
  }

  .hero-art {
    mask-image: linear-gradient(90deg, transparent 0%, black 13%, black 100%);
  }

  .live-card {
    left: 16%;
    bottom: 11%;
    width: 240px;
    padding: 15px;
  }

  .live-time {
    font-size: 1.28rem;
  }

  .stat-grid {
    padding: 36px 0 38px;
  }

  .stat-number {
    font-size: 2.2rem;
  }

  .section {
    padding: 80px 0;
  }

  .loop-shell {
    margin-top: 40px;
  }

  .loop-tabs {
    grid-template-columns: repeat(2, 1fr);
  }

  .loop-tabs button {
    min-height: 96px;
    padding: 14px;
  }

  .loop-tabs button:nth-child(3n) {
    border-right: 1px solid var(--line);
  }

  .loop-tabs button:nth-child(2n) {
    border-right: 0;
  }

  .loop-tabs button:nth-child(-n + 4) {
    border-bottom: 1px solid var(--line);
  }

  .loop-detail {
    padding: 20px;
  }

  .loop-detail dl div {
    grid-template-columns: 92px 1fr;
    gap: 12px;
  }

  .gate-shell {
    margin-top: 40px;
  }

  .gate-demo,
  .gate-path {
    padding: 20px;
  }

  .gate-clock {
    font-size: 2.1rem;
  }

  .gate-status-row {
    grid-template-columns: 1fr;
  }

  .rule-excerpt-strip {
    padding: 20px;
  }

  .rule-excerpt code {
    font-size: 0.62rem;
  }

  .lane-card {
    padding: 24px 22px 16px;
  }

  .zone-list li {
    flex-wrap: wrap;
    gap: 4px 12px;
    padding: 10px 0;
  }

  .shared-strip {
    padding: 20px 22px;
  }

  .lens-head,
  .lens-list,
  .lens-foot {
    padding-inline: 20px;
  }

  .lens-note {
    padding: 14px 20px 22px;
  }

  .lens-task {
    grid-template-columns: 24px minmax(0, 1fr);
    row-gap: 2px;
    padding-block: 10px;
  }

  .lens-task em {
    grid-column: 2;
  }

  .session-panel {
    display: block;
    padding: 24px;
  }

  .appointment-date strong {
    font-size: 2.1rem;
  }

  .checklist-head {
    padding: 22px;
  }

  .task-list {
    padding-inline: 10px;
  }

  .task {
    grid-template-columns: 30px 1fr;
    padding-block: 10px;
  }

  .task-owner {
    display: none;
  }

  .outlier-strip {
    display: grid;
    padding: 26px;
  }

  .trace-grid {
    margin-top: 40px;
  }

  .trace-console {
    padding: 20px;
  }

  .evidence-grid {
    grid-template-columns: 1fr;
  }

  .evidence-grid article {
    min-height: 0;
    border-right: 0;
  }

  .evidence-grid article:nth-child(n + 3) {
    border-bottom: 1px solid var(--line);
  }

  .evidence-grid article:last-child {
    border-bottom: 0;
  }

  .evidence-grid h3 {
    margin-top: 1.6rem;
  }

  .record-timeline {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .boundary-shell {
    margin-top: 48px;
    padding: 24px;
  }

  .cta-section {
    padding: 66px 0;
  }

  .cta-card {
    grid-template-columns: 1fr;
    padding: 38px 28px;
  }

  .cta-card .button {
    width: 100%;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .dialog-shell {
    padding: 30px 22px 24px;
  }
}

@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;
  }

  .section .wrap > *,
  .cta-card {
    opacity: 1 !important;
    transform: none !important;
  }
}
