:root {
  color-scheme: light;
  --paper: #f4efe4;
  --paper-deep: #e7ddca;
  --ink: #151817;
  --ink-soft: #343936;
  --signal: #061316;
  --route: #315f55;
  --route-bright: #5ca6aa;
  --amber: #b89045;
  --red: #9d342e;
  --line: rgba(21, 24, 23, 0.18);
  --shadow: 0 24px 70px rgba(6, 19, 22, 0.18);
  font-family: Inter, Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background: url("./assets/ledger-paper-field.webp") center / cover;
  opacity: 0.22;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(244, 239, 228, 0.96), rgba(244, 239, 228, 0.72)),
    repeating-linear-gradient(90deg, rgba(21, 24, 23, 0.04) 0 1px, transparent 1px 120px);
  pointer-events: none;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 20;
  background: var(--signal);
  color: var(--paper);
  padding: 10px 12px;
}

.skip-link:focus {
  top: 16px;
}

.site-shell {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(132px, auto) minmax(260px, 1fr) auto;
  gap: 22px;
  align-items: center;
  padding: 14px clamp(16px, 3vw, 44px);
  background: rgba(244, 239, 228, 0.9);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid var(--ink);
  text-decoration: none;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 13px;
  line-height: 1.1;
  letter-spacing: 0;
  white-space: nowrap;
}

.section-nav,
.language-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.section-nav a,
.language-switcher button {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink);
  text-decoration: none;
  padding: 7px 10px;
  font-size: 13px;
}

.language-switcher button {
  cursor: pointer;
  min-width: 38px;
}

.section-nav a:hover,
.section-nav a:focus-visible,
.language-switcher button:hover,
.language-switcher button:focus-visible,
.language-switcher button[aria-pressed="true"] {
  border-color: var(--ink);
  outline: 0;
}

.screen {
  position: relative;
  min-height: min(900px, 100vh);
  padding: clamp(72px, 9vw, 128px) clamp(18px, 5vw, 72px) clamp(36px, 6vw, 84px);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.ledger-index {
  position: absolute;
  left: clamp(18px, 3vw, 36px);
  top: clamp(20px, 4vw, 44px);
  display: grid;
  gap: 4px;
  width: 92px;
  font-family: "SFMono-Regular", Consolas, monospace;
  z-index: 2;
}

.ledger-index span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
}

.ledger-index strong,
.ledger-index small {
  font-size: 11px;
  text-transform: uppercase;
}

.hero-screen {
  display: grid;
  grid-template-columns: minmax(330px, 0.88fr) minmax(420px, 1.12fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding-left: clamp(126px, 13vw, 190px);
  background:
    linear-gradient(90deg, rgba(244, 239, 228, 0.96) 0 48%, rgba(6, 19, 22, 0.1)),
    url("./assets/atlas-hero-field.webp") right center / auto 100% no-repeat;
}

.hero-copy,
.section-copy,
.section-heading {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--route);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  text-transform: uppercase;
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  margin: 0;
}

h1 {
  font-size: clamp(54px, 7vw, 116px);
  line-height: 0.92;
  letter-spacing: 0;
  overflow-wrap: normal;
  white-space: nowrap;
}

.brand-title {
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  padding: 8px 12px 10px;
  border: 1px solid rgba(21, 24, 23, 0.26);
  border-bottom: 4px solid var(--signal);
  background: rgba(244, 239, 228, 0.56);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: clamp(45px, 6.2vw, 94px);
  line-height: 0.94;
  text-transform: uppercase;
  box-shadow: 0 18px 44px rgba(6, 19, 22, 0.08);
}

h2 {
  font-size: clamp(44px, 7vw, 94px);
  line-height: 0.98;
}

h3,
p {
  margin-top: 0;
}

.hero-kicker {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(24px, 3.4vw, 46px);
  margin: 18px 0 12px;
  color: var(--ink-soft);
  max-width: 720px;
}

.hero-lead,
.section-heading p,
.section-copy > p {
  max-width: 620px;
  font-size: clamp(16px, 1.55vw, 20px);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0 14px;
}

.primary-action,
.secondary-action,
.route-card,
.step-button,
.timeline button,
.disabled-action,
.draft-action {
  min-height: 44px;
  border: 1px solid var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
}

.primary-action {
  background: var(--signal);
  color: var(--paper);
}

.secondary-action {
  background: rgba(244, 239, 228, 0.55);
}

.entry-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: min(100%, 760px);
  margin: 24px 0 0;
}

.entry-steps article {
  min-height: 124px;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(21, 24, 23, 0.2);
  background: rgba(244, 239, 228, 0.66);
  box-shadow: 0 14px 38px rgba(6, 19, 22, 0.06);
}

.entry-steps span,
.entry-steps strong,
.boundary-panel strong {
  font-family: "SFMono-Regular", Consolas, monospace;
  text-transform: uppercase;
}

.entry-steps span {
  color: var(--red);
  font-size: 12px;
}

.entry-steps strong {
  font-size: 12px;
}

.entry-steps small {
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.35;
}

.boundary-panel {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  width: min(100%, 680px);
  margin-top: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(21, 24, 23, 0.22);
  border-left: 4px solid var(--red);
  background: rgba(244, 239, 228, 0.72);
}

.boundary-panel strong {
  font-size: 12px;
}

.boundary-panel p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.4;
}

.public-scope-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
  max-width: 680px;
}

.public-scope-strip span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  background: rgba(244, 239, 228, 0.62);
  padding: 8px 10px;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
  text-transform: uppercase;
}

.atlas-art {
  min-height: 540px;
  position: relative;
  border-left: 1px solid rgba(244, 239, 228, 0.32);
}

#route-canvas {
  width: 100%;
  height: 100%;
  min-height: 520px;
  display: block;
  mix-blend-mode: screen;
}

.signal-card {
  position: absolute;
  right: 18px;
  top: 18px;
  display: grid;
  gap: 4px;
  min-width: 142px;
  padding: 16px;
  background: rgba(6, 19, 22, 0.82);
  color: var(--paper);
  border: 1px solid rgba(244, 239, 228, 0.34);
  border-bottom: 3px solid var(--red);
  font-size: 13px;
}

.next-hint {
  position: absolute;
  left: clamp(18px, 3vw, 36px);
  right: clamp(18px, 3vw, 36px);
  bottom: 18px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  text-transform: uppercase;
}

.editorial-screen {
  display: grid;
  grid-template-columns: minmax(220px, 0.5fr) minmax(420px, 1fr);
  gap: clamp(34px, 6vw, 90px);
  align-items: center;
  padding-left: clamp(126px, 13vw, 190px);
}

.archive-plate {
  min-height: 430px;
  display: grid;
  align-content: center;
  gap: 18px;
  padding: 38px;
  background: var(--signal);
  color: var(--paper);
  box-shadow: var(--shadow);
  position: relative;
}

.archive-plate::before {
  content: "";
  position: absolute;
  inset: -34px;
  background: url("./assets/ledger-paper-field.webp") center / cover;
  opacity: 0.18;
  z-index: -1;
}

.archive-plate span {
  color: var(--amber);
  font-family: "SFMono-Regular", Consolas, monospace;
}

.archive-plate strong {
  font-size: 24px;
  max-width: 220px;
}

.archive-plate small {
  font-size: 15px;
  line-height: 1.5;
}

.plate-rail {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.plate-rail span {
  min-height: 34px;
  display: flex;
  align-items: center;
  border: 1px solid rgba(244, 239, 228, 0.28);
  border-left: 3px solid var(--amber);
  padding: 7px 10px;
  color: var(--paper);
  font-size: 12px;
  text-transform: uppercase;
}

.principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.principles article,
.method-grid article {
  border-left: 1px solid var(--line);
  padding-left: 16px;
}

.principles h3,
.method-grid h3,
.route-card strong,
.process-note strong {
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 13px;
  text-transform: uppercase;
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 20px;
  margin-top: 32px;
  max-width: 760px;
}

.method-grid article {
  min-height: 154px;
  display: grid;
  align-content: start;
  gap: 8px;
  padding-top: 4px;
}

.method-grid span {
  color: var(--red);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
}

.method-grid p {
  color: var(--ink-soft);
  line-height: 1.45;
  margin: 0;
}

.interface-boundary-note {
  margin: 24px 0 0;
  max-width: 760px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--route);
  background: rgba(244, 239, 228, 0.72);
  padding: 14px 16px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.45;
}

.routes-screen,
.process-screen,
.evidence-screen,
.contact-screen {
  padding-left: clamp(126px, 13vw, 190px);
}

.section-heading {
  margin-bottom: 34px;
}

.direction-safety-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
  max-width: 780px;
}

.direction-safety-strip span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-left: 4px solid var(--route);
  padding: 7px 10px;
  background: rgba(244, 239, 228, 0.72);
  color: var(--ink-soft);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
  text-transform: uppercase;
}

.route-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(160px, 1fr));
  gap: 12px;
}

.route-card {
  min-height: 248px;
  align-items: flex-start;
  justify-content: space-between;
  flex-direction: column;
  text-align: left;
  background:
    linear-gradient(rgba(6, 19, 22, 0.86), rgba(6, 19, 22, 0.82)),
    url("./assets/atlas-hero-field.webp") center / cover;
  color: var(--paper);
  cursor: pointer;
}

.route-number {
  color: var(--amber);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
  line-height: 1;
}

.route-card[aria-pressed="true"],
.route-card:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
}

.route-card p {
  font-size: 13px;
  line-height: 1.45;
  margin: 0;
}

.route-card small {
  display: inline-flex;
  border-top: 1px solid rgba(244, 239, 228, 0.24);
  padding-top: 10px;
  width: 100%;
  color: rgba(244, 239, 228, 0.82);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  line-height: 1.35;
  text-transform: uppercase;
}

.route-detail {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--route);
  background: rgba(244, 239, 228, 0.76);
  padding: 18px;
  min-height: 120px;
  line-height: 1.55;
  max-width: 960px;
}

.route-detail-label {
  display: block;
  margin-bottom: 8px;
  color: var(--route);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
  text-transform: uppercase;
}

.route-detail strong {
  display: block;
  margin-bottom: 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 500;
}

.route-detail p {
  max-width: 760px;
  margin: 0 0 10px;
  color: var(--ink-soft);
}

.route-detail small {
  display: block;
  max-width: 860px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.45;
}

.directions-boundary-note {
  margin: 18px 0 0;
  max-width: 960px;
  border: 1px solid var(--line);
  background: rgba(244, 239, 228, 0.56);
  padding: 14px 16px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.45;
}

.process-screen {
  background:
    linear-gradient(90deg, rgba(244, 239, 228, 0.96), rgba(244, 239, 228, 0.9)),
    url("./assets/process-field.webp") left bottom / 56% auto no-repeat;
}

.process-safety-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
  max-width: 860px;
}

.process-safety-strip span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-left: 4px solid var(--amber);
  padding: 7px 10px;
  background: rgba(244, 239, 228, 0.76);
  color: var(--ink-soft);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
  text-transform: uppercase;
}

.process-line {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: 10px;
  margin: 44px 0 24px;
}

.step-button {
  min-height: 190px;
  background: rgba(244, 239, 228, 0.84);
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  cursor: pointer;
  text-align: left;
  gap: 10px;
}

.step-button span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
}

.step-button strong {
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 13px;
  line-height: 1.25;
  text-transform: uppercase;
}

.step-button small {
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.4;
}

.step-button[aria-pressed="true"],
.step-button:focus-visible {
  background: var(--signal);
  color: var(--paper);
  outline: 3px solid var(--amber);
  outline-offset: 2px;
}

.step-button[aria-pressed="true"] small,
.step-button:focus-visible small {
  color: rgba(244, 239, 228, 0.82);
}

.process-detail {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 18px;
  align-items: start;
  max-width: 980px;
  min-height: 142px;
  margin: 0 0 18px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--amber);
  background: rgba(244, 239, 228, 0.8);
  padding: 18px;
  line-height: 1.55;
}

.process-detail-label {
  grid-column: 1 / -1;
  color: var(--route);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
  text-transform: uppercase;
}

.process-detail-number {
  grid-row: 2 / 5;
  min-width: 62px;
  color: var(--red);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(36px, 5vw, 72px);
  line-height: 0.9;
}

.process-detail strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 500;
  line-height: 1.05;
}

.process-detail p,
.process-detail small {
  max-width: 780px;
  color: var(--ink-soft);
}

.process-detail p {
  margin: 0;
}

.process-detail small {
  display: block;
  font-size: 13px;
  line-height: 1.45;
}

.process-note {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: center;
  max-width: 840px;
  border: 1px solid var(--line);
  background: rgba(244, 239, 228, 0.78);
  padding: 18px;
}

.process-boundary-note {
  margin: 18px 0 0;
  max-width: 980px;
  border: 1px solid var(--line);
  background: rgba(244, 239, 228, 0.56);
  padding: 14px 16px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.45;
}

.evidence-screen {
  background:
    linear-gradient(rgba(244, 239, 228, 0.95), rgba(244, 239, 228, 0.88)),
    url("./assets/evidence-field.webp") center bottom / cover no-repeat;
}

.evidence-screen .section-heading {
  max-width: 860px;
}

.evidence-safety-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.evidence-safety-strip span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(21, 24, 23, 0.26);
  background: rgba(244, 239, 228, 0.7);
  padding: 7px 10px;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  text-transform: uppercase;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(5, minmax(130px, 1fr));
  gap: 10px;
  align-items: stretch;
  margin-top: 28px;
}

.timeline button {
  min-height: 210px;
  display: grid;
  align-content: start;
  gap: 12px;
  background: rgba(244, 239, 228, 0.78);
  cursor: pointer;
  text-align: left;
}

.timeline button[aria-pressed="true"],
.timeline button:focus-visible {
  background: var(--signal);
  color: var(--paper);
  outline: 3px solid var(--amber);
  outline-offset: 2px;
}

.timeline strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
}

.timeline span {
  font-weight: 700;
}

.timeline small {
  color: inherit;
  line-height: 1.4;
}

.evidence-detail {
  display: grid;
  grid-template-columns: auto minmax(78px, auto) minmax(240px, 0.8fr) minmax(280px, 1.3fr);
  gap: 14px;
  align-items: center;
  margin-top: 18px;
  border: 1px solid rgba(6, 19, 22, 0.3);
  border-left: 4px solid var(--red);
  background: rgba(6, 19, 22, 0.9);
  color: var(--paper);
  padding: 18px;
  box-shadow: var(--shadow);
}

.evidence-detail-label {
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
  text-transform: uppercase;
  color: rgba(244, 239, 228, 0.72);
}

.evidence-detail-number {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(44px, 5vw, 76px);
  line-height: 0.9;
}

.evidence-detail strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(24px, 2.5vw, 40px);
  font-weight: 500;
}

.evidence-detail p,
.evidence-detail small {
  margin: 0;
  color: rgba(244, 239, 228, 0.82);
  line-height: 1.45;
}

.evidence-detail p {
  font-size: 16px;
}

.evidence-detail small {
  grid-column: 4;
  border-top: 1px solid rgba(244, 239, 228, 0.18);
  padding-top: 10px;
}

.evidence-rule {
  margin-top: 24px;
  margin-left: auto;
  display: grid;
  gap: 8px;
  max-width: 220px;
  padding: 18px;
  border: 1px solid var(--line);
  border-right: 3px solid var(--red);
  background: rgba(244, 239, 228, 0.82);
  font-family: "SFMono-Regular", Consolas, monospace;
  text-transform: uppercase;
}

.evidence-boundary-note {
  margin: 18px 0 0;
  max-width: 980px;
  border: 1px solid var(--line);
  background: rgba(244, 239, 228, 0.64);
  padding: 14px 16px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.45;
}

.contact-screen {
  display: grid;
  grid-template-columns: minmax(300px, 0.75fr) minmax(360px, 0.9fr);
  gap: clamp(28px, 6vw, 82px);
  align-items: start;
}

.contact-intake {
  display: grid;
  gap: 22px;
  grid-column: 1;
}

.safety-list {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.safety-list span {
  border-left: 2px solid var(--route);
  padding-left: 12px;
  min-height: 30px;
  display: flex;
  align-items: center;
}

.contact-route-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 10px;
}

.contact-route-card {
  min-height: 132px;
  border: 1px solid var(--line);
  background: rgba(244, 239, 228, 0.68);
  color: var(--ink);
  padding: 14px;
  display: grid;
  gap: 9px;
  text-align: left;
  cursor: pointer;
}

.contact-route-card[aria-pressed="true"] {
  border-color: rgba(49, 95, 85, 0.72);
  background: rgba(49, 95, 85, 0.1);
}

.contact-route-card span,
.contact-detail-label,
.contact-panel-head span,
.draft-preview span,
.feedback-loop-head span,
.feedback-steps span {
  color: var(--route);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.contact-route-card strong {
  font-size: 15px;
  line-height: 1.2;
}

.contact-route-card small {
  color: var(--ink-soft);
  line-height: 1.42;
}

.contact-detail {
  border: 1px solid var(--line);
  background: rgba(244, 239, 228, 0.74);
  padding: 16px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 14px;
}

.contact-detail-number {
  grid-row: 2 / 4;
  min-width: 54px;
  color: var(--amber);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 32px;
  line-height: 1;
}

.contact-detail strong {
  font-size: 18px;
  line-height: 1.22;
}

.contact-detail p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.48;
}

.contact-detail small {
  grid-column: 1 / -1;
  color: var(--ink-soft);
  line-height: 1.45;
}

.feedback-loop {
  grid-column: 1;
  border: 1px solid rgba(21, 24, 23, 0.24);
  border-left: 4px solid var(--red);
  background: rgba(244, 239, 228, 0.78);
  padding: 18px;
  display: grid;
  gap: 16px;
}

.feedback-loop-head {
  display: grid;
  gap: 8px;
}

.feedback-loop-head strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(22px, 2.4vw, 34px);
  line-height: 1.08;
  font-weight: 500;
}

.feedback-loop-head p,
.feedback-boundary {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.48;
}

.feedback-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.feedback-steps article {
  min-height: 132px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.38);
  padding: 14px;
  display: grid;
  align-content: start;
  gap: 8px;
}

.feedback-steps span {
  color: var(--red);
}

.feedback-steps strong {
  font-size: 14px;
  line-height: 1.2;
  text-transform: uppercase;
}

.feedback-steps small {
  color: var(--ink-soft);
  line-height: 1.42;
}

.feedback-boundary {
  border-top: 1px solid var(--line);
  padding-top: 12px;
  font-size: 13px;
}

.contact-panel {
  grid-column: 2;
  grid-row: 1 / span 2;
  background: var(--signal);
  color: var(--paper);
  padding: clamp(20px, 4vw, 38px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  box-shadow: var(--shadow);
}

.contact-panel-head {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
  padding-bottom: 8px;
}

.contact-panel-head span {
  color: var(--amber);
}

.contact-panel-head strong {
  font-size: clamp(20px, 2.5vw, 28px);
  line-height: 1.08;
}

.contact-panel label {
  display: grid;
  gap: 7px;
  font-size: 13px;
}

.contact-panel input,
.contact-panel select,
.contact-panel textarea {
  width: 100%;
  border: 1px solid rgba(244, 239, 228, 0.34);
  background: rgba(244, 239, 228, 0.05);
  color: var(--paper);
  padding: 11px 12px;
  min-height: 44px;
}

.message-field,
.contact-panel p,
.draft-action,
.draft-preview {
  grid-column: 1 / -1;
}

.draft-action {
  width: max-content;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
}

.draft-preview {
  border: 1px solid rgba(244, 239, 228, 0.28);
  background: rgba(244, 239, 228, 0.07);
  padding: 13px 14px;
  display: grid;
  gap: 8px;
}

.draft-preview span {
  color: var(--amber);
}

.draft-preview p {
  white-space: pre-wrap;
  line-height: 1.5;
}

.contact-panel p {
  font-size: 13px;
  margin: 0;
  color: rgba(244, 239, 228, 0.75);
}

.footer {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px clamp(18px, 4vw, 54px);
  background: var(--signal);
  color: var(--paper);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  text-transform: uppercase;
}

[dir="rtl"] .ledger-index {
  left: auto;
  right: clamp(18px, 3vw, 36px);
}

[dir="rtl"] .hero-screen,
[dir="rtl"] .editorial-screen,
[dir="rtl"] .routes-screen,
[dir="rtl"] .process-screen,
[dir="rtl"] .evidence-screen,
[dir="rtl"] .contact-screen {
  padding-left: clamp(18px, 5vw, 72px);
  padding-right: clamp(126px, 13vw, 190px);
}

[dir="rtl"] .principles article,
[dir="rtl"] .safety-list span {
  border-left: 0;
  border-right: 2px solid var(--route);
  padding-left: 0;
  padding-right: 12px;
}

[dir="rtl"] .contact-route-card {
  text-align: right;
}

@media (max-width: 1100px) {
  .topbar {
    grid-template-columns: auto 1fr;
  }

  .language-switcher {
    grid-column: 1 / -1;
  }

  .hero-screen,
  .editorial-screen,
  .contact-screen {
    grid-template-columns: 1fr;
  }

  .contact-intake,
  .feedback-loop,
  .contact-panel {
    grid-column: auto;
    grid-row: auto;
  }

  .route-grid {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }

  .process-line,
  .timeline,
  .contact-route-grid {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }
}

@media (max-width: 720px) {
  .topbar {
    position: static;
    padding: 12px;
  }

  .section-nav {
    display: none;
  }

  .screen,
  .hero-screen,
  .editorial-screen,
  .routes-screen,
  .process-screen,
  .evidence-screen,
  .contact-screen,
  [dir="rtl"] .hero-screen,
  [dir="rtl"] .editorial-screen,
  [dir="rtl"] .routes-screen,
  [dir="rtl"] .process-screen,
  [dir="rtl"] .evidence-screen,
  [dir="rtl"] .contact-screen {
    min-height: auto;
    padding: 76px 16px 38px;
  }

  .language-switcher {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }

  .language-switcher button {
    width: 100%;
    min-width: 0;
    padding: 7px 5px;
    font-size: 12px;
  }

  .ledger-index,
  [dir="rtl"] .ledger-index {
    left: 16px;
    right: auto;
    top: 24px;
    width: auto;
    grid-template-columns: auto auto auto;
    align-items: baseline;
    column-gap: 8px;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(34px, 10.5vw, 48px);
    line-height: 0.95;
    word-break: normal;
  }

  .hero-kicker {
    max-width: 100%;
    font-size: clamp(23px, 6.5vw, 28px);
    line-height: 1.14;
    overflow-wrap: anywhere;
  }

  .hero-lead,
  .boundary-panel {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .brand-title {
    width: 100%;
    justify-content: center;
    font-size: clamp(30px, 8vw, 40px);
    padding: 8px 8px 9px;
    overflow: hidden;
  }

  .entry-steps,
  .boundary-panel {
    grid-template-columns: 1fr;
  }

  .entry-steps article {
    grid-template-columns: 28px 1fr;
    min-height: auto;
    padding: 10px 12px;
    gap: 4px 8px;
  }

  .entry-steps span {
    grid-row: 1 / 3;
  }

  .entry-steps strong,
  .entry-steps small {
    grid-column: 2;
  }

  h2 {
    font-size: clamp(38px, 13vw, 64px);
  }

  .atlas-art {
    min-height: 320px;
  }

  #route-canvas {
    min-height: 320px;
  }

  .principles,
  .method-grid,
  .route-grid,
  .timeline,
  .contact-route-grid,
  .feedback-steps,
  .contact-panel {
    grid-template-columns: 1fr;
  }

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

  .archive-plate {
    min-height: auto;
    padding: 28px;
  }

  .archive-plate::before {
    inset: 0;
  }

  .route-card,
  .step-button,
  .timeline button,
  .contact-route-card {
    min-height: 150px;
  }

  .process-detail {
    grid-template-columns: 1fr;
  }

  .process-detail-number {
    grid-row: auto;
    min-width: 0;
  }

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

  .evidence-detail-number {
    min-width: 0;
  }

  .evidence-detail small {
    grid-column: auto;
  }

  .contact-detail {
    grid-template-columns: 1fr;
  }

  .contact-detail-number {
    grid-row: auto;
    min-width: 0;
  }

  .contact-detail small {
    grid-column: auto;
  }

  .method-grid article {
    min-height: auto;
  }

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
