/* R6 tokens: the same palette and type the 3D entry page uses — page ink
   #0a0d10, body #DCE4E9, muted #9FB0BC, mint #6FE3C4 as the single interactive
   accent and the Exit surface's amber hairline as the structural rule. Fonts
   match the entry page exactly (Noto Sans TC + JetBrains Mono), so arriving at
   the form no longer reads as a different site. */
:root {
  color-scheme: dark;
  --ink: #0a0d10;
  --deep-blue: #0c1114;
  --slate: #10161b;
  --slate-raised: #151c22;
  --line: rgba(220, 228, 233, 0.17);
  --line-soft: rgba(220, 228, 233, 0.085);
  --text: #DCE4E9;
  --muted: #9FB0BC;
  --mint: #6FE3C4;
  --mint-deep: #4FC7A8;
  --mint-wash: rgba(111, 227, 196, 0.08);
  --amber: #C8A27A;
  --amber-line: rgba(200, 162, 122, 0.32);
  --focus: #6FE3C4;
  --danger: #E8A99B;
  --danger-wash: rgba(232, 169, 155, 0.08);
  --display: "Noto Sans TC", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --body: "Noto Sans TC", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --utility: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --page-pad: clamp(1.25rem, 4vw, 4.5rem);
}

* {
  box-sizing: border-box;
}

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

body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(ellipse 84% 80% at 50% 40%, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, 0.4) 100%),
    var(--ink);
  color: var(--text);
  font-family: var(--body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

a {
  color: var(--mint);
  text-underline-offset: 0.2em;
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.75rem 1rem;
  transform: translateY(-150%);
  background: var(--focus);
  color: var(--ink);
  font-weight: 700;
}

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

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

h1[tabindex="-1"]:focus,
h2[tabindex="-1"]:focus {
  outline: none;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 5.5rem;
  padding: 1rem var(--page-pad);
  border-bottom: 1px solid var(--line-soft);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--text);
  text-decoration: none;
}

.wordmark__mark {
  display: grid;
  width: 2.6rem;
  height: 2.6rem;
  place-items: center;
  border: 1px solid var(--line);
  color: var(--mint);
  font-family: var(--utility);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
}

.wordmark strong,
.wordmark small {
  display: block;
}

.wordmark strong {
  font-size: 0.88rem;
  letter-spacing: 0.04em;
}

.wordmark small {
  color: var(--muted);
  font-family: var(--utility);
  font-size: 0.65rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.reply-note {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.signal-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 0.25rem rgba(139, 227, 192, 0.08);
}

.route-intro {
  width: min(100%, 1440px);
  min-height: calc(100vh - 5.5rem);
  margin: 0 auto;
  padding: clamp(2.75rem, 5.5vh, 4.75rem) var(--page-pad) 3rem;
}

.route-intro__copy {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(18rem, 0.8fr);
  gap: 4rem;
  align-items: end;
  padding-bottom: clamp(2.5rem, 5vh, 4rem);
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--mint);
  font-family: var(--utility);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.route-intro h1,
.panel-heading h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(3.2rem, 5vw, 5.2rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.lede {
  max-width: 35rem;
  margin: 0 0 0.25rem;
  color: #c7d1d2;
  font-size: clamp(1rem, 1.35vw, 1.18rem);
}

.route-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.route-card {
  display: flex;
  min-height: 21rem;
  flex-direction: column;
  justify-content: space-between;
  gap: 2.5rem;
  padding: clamp(1.5rem, 3vw, 2.8rem);
}

.route-card + .route-card {
  border-left: 1px solid var(--line);
}

.route-card--enterprise {
  background: linear-gradient(140deg, rgba(139, 227, 192, 0.055), transparent 46%);
}

.route-card__tag {
  margin: 0 0 1.35rem;
  color: var(--muted);
  font-family: var(--utility);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.route-card h2 {
  margin: 0 0 0.9rem;
  font-family: var(--display);
  font-size: clamp(2rem, 3vw, 3.2rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.05;
}

.route-card p:not(.route-card__tag) {
  max-width: 33rem;
  margin: 0;
  color: var(--muted);
}

.route-card__facts {
  display: flex;
  gap: 2.5rem;
  margin: auto 0 0;
}

.route-card__facts div {
  display: flex;
  flex-direction: column;
}

.route-card__facts dt {
  color: var(--muted);
  font-family: var(--utility);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.route-card__facts dd {
  margin: 0.15rem 0 0;
  font-size: 0.9rem;
}

.route-button,
.primary-action,
.secondary-action {
  display: inline-flex;
  min-height: 3.35rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 0;
  border-radius: 0;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.route-button {
  width: 100%;
  margin-top: 1.5rem;
  padding: 0.9rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  text-align: left;
}

.route-button span,
.primary-action span {
  color: currentColor;
  font-size: 1.25rem;
}

.route-button:hover {
  border-color: var(--mint);
  color: var(--mint);
}

.contact-contract {
  margin: 1.5rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  text-align: right;
}

.draft-notice {
  margin: 1.25rem 0 0;
  padding: 0.85rem 0 0.85rem 1rem;
  border-left: 2px solid var(--mint);
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.65;
}

.draft-notice strong {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--mint);
  font-family: var(--utility);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.panel-draft-notice {
  max-width: 42rem;
  margin-top: 1.25rem;
}

.intake-shell {
  display: grid;
  width: min(100%, 1440px);
  min-height: calc(100vh - 5.5rem);
  grid-template-columns: minmax(17rem, 0.36fr) minmax(0, 1fr);
  margin: 0 auto;
  border-right: 1px solid var(--line-soft);
  border-left: 1px solid var(--line-soft);
}

.intake-ledger {
  position: relative;
  padding: clamp(2rem, 4vw, 4rem) clamp(1.5rem, 3vw, 3rem);
  border-right: 1px solid var(--line);
  background: var(--deep-blue);
}

.text-button {
  padding: 0.2rem 0;
  border: 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.text-button:hover {
  border-color: currentColor;
  color: var(--text);
}

.ledger-heading {
  margin-top: 5rem;
}

.ledger-heading h2 {
  max-width: 12ch;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2rem, 3vw, 3.25rem);
  font-weight: 400;
  line-height: 1.05;
}

.ledger-list {
  margin: 4rem 0;
  padding: 0;
  list-style: none;
}

.ledger-list li {
  display: grid;
  grid-template-columns: 2.4rem 1fr;
  gap: 1rem;
  padding: 1.1rem 0;
  border-top: 1px solid var(--line-soft);
  color: #73828a;
}

.ledger-list li:last-child {
  border-bottom: 1px solid var(--line-soft);
}

.ledger-list li.is-current {
  color: var(--text);
}

.ledger-list li.is-current > span {
  color: var(--mint);
}

.ledger-list > li > span {
  font-family: var(--utility);
  font-size: 0.7rem;
}

.ledger-list strong,
.ledger-list small {
  display: block;
}

.ledger-list strong {
  font-size: 0.82rem;
}

.ledger-list small {
  margin-top: 0.1rem;
  font-size: 0.73rem;
}

.ledger-boundary {
  padding-left: 1rem;
  border-left: 2px solid var(--mint);
}

.ledger-boundary p,
.ledger-boundary strong,
.ledger-boundary span {
  display: block;
  margin: 0;
}

.ledger-boundary p {
  color: var(--mint);
  font-family: var(--utility);
  font-size: 0.66rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.ledger-boundary strong {
  margin-top: 0.5rem;
  font-size: 0.82rem;
}

.ledger-boundary span {
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.73rem;
}

.intake-panel {
  width: 100%;
  max-width: 58rem;
  padding: clamp(3rem, 6vw, 6rem) clamp(1.25rem, 6vw, 6rem) 6rem;
}

.panel-heading {
  margin-bottom: 4rem;
}

.panel-heading h1 {
  font-size: clamp(2.8rem, 5vw, 5.5rem);
}

.panel-heading > p:last-child {
  max-width: 42rem;
  margin: 1.5rem 0 0;
  color: var(--muted);
}

.form-completion {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(9rem, 0.42fr);
  gap: 1rem 1.5rem;
  align-items: end;
  margin-top: 1.5rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.form-completion__copy strong,
.form-completion__copy span {
  display: block;
}

.form-completion__copy strong {
  color: var(--text);
  font-size: 0.84rem;
}

.form-completion__copy span {
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.73rem;
}

.form-completion progress {
  width: 100%;
  height: 0.32rem;
  border: 0;
  background: var(--line-soft);
  color: var(--mint);
  accent-color: var(--mint);
}

.form-completion progress::-webkit-progress-bar { background: var(--line-soft); }
.form-completion progress::-webkit-progress-value { background: var(--mint); }
.form-completion progress::-moz-progress-bar { background: var(--mint); }

.intake-form fieldset {
  margin: 0 0 4rem;
  padding: 0;
  border: 0;
}

.intake-form legend {
  width: 100%;
  margin-bottom: 1.8rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--line);
  color: var(--mint);
  font-family: var(--utility);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.optional-fields {
  margin-top: 1.25rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.optional-fields summary {
  min-height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--text);
  cursor: pointer;
  font-weight: 700;
}

.optional-fields summary::after {
  content: "+";
  flex: none;
  color: var(--mint);
  font-family: var(--utility);
  font-size: 1rem;
}

.optional-fields[open] summary::after { content: "−"; }

.optional-fields:not([open]) > :not(summary) { display: none; }

.optional-fields summary:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 4px;
}

.optional-fields__intro {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.field-grid {
  display: grid;
  gap: 1.4rem;
}

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

.field {
  margin-bottom: 1.8rem;
}

.field label {
  display: block;
  margin-bottom: 0.55rem;
  font-size: 0.9rem;
  font-weight: 700;
}

.field input:not([type="checkbox"]),
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--deep-blue);
  color: var(--text);
}

.field input:not([type="checkbox"]),
.field select {
  min-height: 3.35rem;
  padding: 0.75rem 0.9rem;
}

.field textarea {
  min-height: 9rem;
  padding: 0.9rem;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #718089;
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: #526571;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--mint);
  outline: 2px solid rgba(139, 227, 192, 0.24);
  outline-offset: 0;
}

.field [aria-invalid="true"] {
  border-color: var(--danger) !important;
  background: var(--danger-wash) !important;
}

.field-hint,
.field-meta,
.field-error {
  font-size: 0.73rem;
}

.field-hint {
  margin: 0.35rem 0 0;
  color: var(--muted);
}

.field-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.35rem;
  color: var(--muted);
}

.field-meta p {
  margin: 0;
}

.field-meta span {
  flex: none;
  font-family: var(--utility);
}

.field-error {
  min-height: 1.2em;
  margin: 0.35rem 0 0;
  color: var(--danger);
  font-weight: 600;
}

.privacy-check {
  display: grid;
  grid-template-columns: 1.25rem 1fr;
  gap: 0.25rem 0.8rem;
  padding: 1.2rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.015);
}

.privacy-check input {
  width: 1.1rem;
  height: 1.1rem;
  margin: 0.3rem 0 0;
  accent-color: var(--mint);
}

.privacy-check label {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 500;
}

.privacy-check .field-error {
  grid-column: 2;
}

.form-boundary {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.2rem;
  padding: 1rem 1.2rem;
  border-left: 2px solid var(--mint);
  background: var(--mint-wash);
  font-size: 0.78rem;
}

.security-check {
  display: grid;
  gap: 0.65rem;
  margin-top: 1.5rem;
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--line-soft);
  background: rgba(220, 228, 233, 0.022);
}

.security-check > strong {
  color: var(--text);
  font-size: 0.82rem;
}

.security-check > p {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.65;
}

.security-status.is-error,
.send-status.is-error {
  color: #ffb7a8;
}

#turnstile-widget {
  min-height: 65px;
}

.form-boundary span {
  color: var(--muted);
}

.primary-action {
  min-width: 15rem;
  padding: 0.9rem 1.1rem;
  background: var(--mint);
  color: #07130e;
}

.primary-action:hover {
  background: var(--focus);
}

.secondary-action {
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
}

.secondary-action:hover {
  border-color: var(--mint);
  color: var(--mint);
}

.error-summary {
  margin: 0 0 3rem;
  padding: 1.2rem 1.4rem;
  border-left: 3px solid var(--danger);
  background: var(--danger-wash);
}

.error-summary h2 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.error-summary ul {
  margin: 0;
  padding-left: 1.25rem;
}

.error-summary a {
  color: var(--danger);
}

.budget-message {
  margin: -0.6rem 0 2rem;
  padding: 1.5rem;
  border: 1px solid #8a716a;
  background: var(--danger-wash);
}

.budget-message__label {
  margin: 0;
  color: var(--danger);
  font-family: var(--utility);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.budget-message h2 {
  margin: 0.4rem 0;
  font-family: var(--display);
  font-size: 1.55rem;
  font-weight: 400;
}

.budget-message p:not(.budget-message__label) {
  margin: 0 0 0.7rem;
  color: #d4c4c1;
  font-size: 0.82rem;
}

.budget-exits {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.2rem;
}

.budget-message a {
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 700;
}

.review-panel > h2,
.draft-panel > h2,
.delivery-panel > h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.3rem, 4.5vw, 4.25rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.review-panel > p:not(.eyebrow),
.draft-panel > p:not(.eyebrow, .copy-status, .mail-safety),
.delivery-panel > p:not(.eyebrow) {
  color: var(--muted);
}

.send-status {
  min-height: 1.5rem;
  margin: -1.5rem 0 1.5rem;
  color: var(--mint);
  font-size: 0.82rem;
}

.send-status.is-error {
  color: var(--danger);
}

button[aria-busy="true"] {
  cursor: wait;
  opacity: 0.7;
}

.review-list {
  margin: 3rem 0;
}

.review-list div,
.mail-meta div {
  display: grid;
  grid-template-columns: minmax(8rem, 0.32fr) 1fr;
  gap: 1.5rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line-soft);
}

.review-list div:last-child,
.mail-meta div:last-child {
  border-bottom: 1px solid var(--line-soft);
}

.review-list dt,
.mail-meta dt {
  color: var(--muted);
  font-family: var(--utility);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.review-list dd,
.mail-meta dd {
  margin: 0;
  white-space: pre-wrap;
}

.review-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: stretch;
}

.draft-status {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 1rem;
  margin-bottom: 3.5rem;
  padding: 1rem;
  border: 1px solid var(--mint-deep);
  background: var(--mint-wash);
}

.draft-status > span {
  display: grid;
  width: 2.4rem;
  height: 2.4rem;
  place-items: center;
  border-radius: 50%;
  background: var(--mint);
  color: var(--ink);
  font-weight: 800;
}

.draft-status p {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.draft-status strong {
  color: var(--text);
}

.mail-meta {
  margin: 2.5rem 0 1rem;
}

#draft-body {
  max-height: 30rem;
  margin: 0 0 0.6rem;
  padding: 1.25rem;
  overflow: auto;
  border: 1px solid var(--line);
  background: var(--deep-blue);
  color: #d8e1df;
  font-family: var(--utility);
  font-size: 0.76rem;
  line-height: 1.7;
  white-space: pre-wrap;
}

.copy-status {
  min-height: 1.5rem;
  margin: 0 0 1rem;
  color: var(--mint);
  font-size: 0.76rem;
}

.mail-safety {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.72rem;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem var(--page-pad);
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
  font-family: var(--utility);
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

footer p {
  margin: 0;
}

@media (max-width: 860px) {
  .route-intro__copy,
  .route-grid,
  .intake-shell {
    grid-template-columns: 1fr;
  }

  .route-intro__copy {
    gap: 2rem;
  }

  .route-card + .route-card {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .intake-ledger {
    padding: 1.2rem var(--page-pad);
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .ledger-heading,
  .ledger-boundary {
    display: none;
  }

  .ledger-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin: 1.2rem 0 0;
  }

  .ledger-list li {
    grid-template-columns: 1fr;
    gap: 0.2rem;
    border-bottom: 1px solid var(--line-soft);
  }

  .intake-panel {
    margin: 0 auto;
  }
}

@media (max-width: 560px) {
  .site-header {
    min-height: auto;
    align-items: flex-start;
    flex-direction: column;
    gap: 0.7rem;
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
  }

  .wordmark small {
    display: none;
  }

  .reply-note {
    max-width: 30rem;
    align-items: flex-start;
    font-size: 0.7rem;
    line-height: 1.45;
  }

  .signal-dot {
    flex: none;
    margin-top: 0.3rem;
  }

  .route-intro {
    min-height: auto;
    padding-top: 3rem;
  }

  .route-intro__copy {
    padding-bottom: 2.5rem;
  }

  .route-intro h1 {
    font-size: clamp(2.65rem, 12.4vw, 3.55rem);
  }

  .lede {
    font-size: 0.94rem;
  }

  .route-card {
    min-height: 0;
    gap: 1.8rem;
    padding: 1.5rem 0.2rem;
  }

  .route-card__facts {
    margin-top: 0;
  }

  .contact-contract {
    text-align: left;
  }

  .intake-ledger {
    padding-top: 1rem;
  }

  .ledger-list li {
    padding: 0.7rem 0;
  }

  .ledger-list {
    grid-template-columns: 1fr;
  }

  .ledger-list li:not(.is-current) {
    display: none;
  }

  .ledger-list small {
    display: none;
  }

  .intake-panel {
    padding-top: 3.2rem;
    padding-bottom: 4rem;
  }

  .panel-heading {
    margin-bottom: 3rem;
  }

  .panel-heading h1 {
    font-size: 2.75rem;
  }

  .form-completion {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .field-grid--two {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .field input:not([type="checkbox"]),
  .field select {
    min-height: 3.5rem;
  }

  .field-meta {
    align-items: start;
  }

  .review-list div,
  .mail-meta div {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .review-actions {
    flex-direction: column;
  }

  .review-actions > * {
    width: 100%;
  }

  .primary-action,
  .secondary-action {
    justify-content: center;
  }

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

  footer {
    display: block;
  }

  footer p + p {
    margin-top: 0.35rem;
  }
}

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

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


/* ============================================================
   R6 visual harmonisation with the 3D entry page (Frank, this round)
   Scope: appearance only. No markup, field, validation, copy, budget
   boundary or Email-draft behaviour is changed by this block.
   ============================================================ */

/* atmosphere: the entry page's warm reception key light and cool office fill,
   held as a fixed wash behind the page instead of a hard palette switch */
body::before {
  content: "";
  position: fixed;
  z-index: 0;
  inset: 0;
  background:
    radial-gradient(ellipse 62% 44% at 10% 0%, rgba(200, 162, 122, 0.11), transparent 62%),
    radial-gradient(ellipse 58% 46% at 94% 6%, rgba(111, 227, 196, 0.05), transparent 64%);
  pointer-events: none;
}

body > * {
  position: relative;
  z-index: 1;
}

::selection {
  background: var(--mint);
  color: var(--ink);
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  background: rgba(10, 13, 16, 0.84);
  border-bottom: 1px solid var(--line-soft);
  backdrop-filter: blur(14px);
}

.wordmark__mark {
  width: 2.35rem;
  height: 2.35rem;
  border-color: var(--line);
  color: var(--amber);
  font-size: 0.64rem;
  letter-spacing: 0.1em;
}

.wordmark strong {
  font-weight: 400;
  letter-spacing: 0.06em;
}

.reply-note,
.contact-contract,
.form-boundary,
.mail-safety {
  font-size: 0.76rem;
  line-height: 1.7;
}

/* eyebrow: the entry page's mark row — a short amber tick, then mono caps */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--muted);
  font-family: var(--utility);
  font-size: 0.66rem;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  flex: none;
  width: 26px;
  height: 1px;
  background: var(--amber-line);
}

/* headings: the entry page's thin display voice, not a serif */
.route-intro h1,
.panel-heading h1,
.review-panel > h2,
.draft-panel > h2,
.ledger-heading h2,
.route-card h2,
.budget-message h2 {
  font-family: var(--display);
  font-weight: 200;
  letter-spacing: 0.012em;
  line-height: 1.28;
  text-wrap: pretty;
}

.route-intro h1,
.panel-heading h1 {
  max-width: 18ch;
  font-size: clamp(2rem, 4.4vw, 3.5rem);
}

.review-panel > h2,
.draft-panel > h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
}

.route-card h2 {
  margin-bottom: 1rem;
  font-size: clamp(1.35rem, 2.1vw, 1.7rem);
}

.ledger-heading h2 {
  font-size: 1.4rem;
}

.lede,
.route-card p:not(.route-card__tag),
.panel-heading > p:last-child {
  color: var(--muted);
  font-weight: 300;
  line-height: 1.95;
}

/* route cards: two hairline surfaces over the wash, the same glass language as
   the Closing exit panel, rather than two halves of a split screen */
.route-grid {
  gap: clamp(1rem, 1.6vw, 1.5rem);
}

.route-card {
  padding: clamp(1.8rem, 2.6vw, 2.5rem);
  border: 1px solid var(--line-soft);
  background: linear-gradient(180deg, rgba(220, 228, 233, 0.038), rgba(220, 228, 233, 0.012));
  backdrop-filter: blur(6px);
  transition: border-color 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), background 0.4s ease;
}

.route-card + .route-card {
  border-left: 1px solid var(--line-soft);
}

.route-card--enterprise {
  background: linear-gradient(150deg, rgba(200, 162, 122, 0.07), rgba(220, 228, 233, 0.012) 52%);
}

.route-card:hover {
  border-color: var(--amber-line);
  background: linear-gradient(180deg, rgba(220, 228, 233, 0.055), rgba(220, 228, 233, 0.018));
  transform: translateY(-3px);
}

.route-card__tag,
.route-card__facts dt,
.field label,
.field-meta span,
.review-list dt,
.mail-meta dt {
  font-family: var(--utility);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.route-card__facts {
  padding-top: 1.4rem;
  border-top: 1px solid var(--line-soft);
}

.route-card__facts dd {
  font-weight: 300;
  font-size: 0.95rem;
}

/* actions: mono caps, square, same rhythm as the entry page's CTA */
.route-button,
.primary-action,
.secondary-action,
.text-button {
  border-radius: 0;
  font-family: var(--utility);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.route-button {
  min-height: 3.4rem;
  border: 1px solid var(--line);
  background: rgba(220, 228, 233, 0.03);
  color: var(--text);
  transition: border-color 0.35s ease, color 0.35s ease, background 0.35s ease;
}

.route-button:hover {
  border-color: var(--mint);
  background: rgba(111, 227, 196, 0.07);
  color: var(--mint);
}

.primary-action {
  border: 1px solid var(--mint);
  background: var(--mint);
  color: var(--ink);
  font-weight: 500;
}

.primary-action:hover {
  border-color: #8CEBD5;
  background: #8CEBD5;
}

.secondary-action {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
}

/* ledger: the chapter rail, restated as numbered stages */
.intake-ledger {
  border-right: 1px solid var(--line-soft);
  background: linear-gradient(180deg, rgba(220, 228, 233, 0.03), transparent 55%);
}

.ledger-list > li > span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 0.6rem;
  letter-spacing: 0.06em;
}

.ledger-list li.is-current > span {
  border-color: var(--mint);
  background: rgba(111, 227, 196, 0.08);
  color: var(--mint);
}

.ledger-list strong {
  font-family: var(--utility);
  font-weight: 400;
  letter-spacing: 0.1em;
}

.ledger-boundary {
  border-left: 2px solid var(--amber);
}

.ledger-boundary p {
  color: var(--amber);
}

/* form: sections opened by a hairline rule and a diamond, fields with real
   height and a mint focus state instead of flat outlined boxes */
.intake-form fieldset {
  padding-top: 2rem;
  border-top: 1px solid var(--line-soft);
}

.intake-form legend {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--muted);
  font-family: var(--utility);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.intake-form legend::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border: 1px solid var(--amber);
  transform: rotate(45deg);
}

.field label {
  margin-bottom: 0.7rem;
  color: var(--muted);
  font-size: 0.66rem;
}

.field input:not([type="checkbox"]),
.field select,
.field textarea {
  border: 1px solid var(--line-soft);
  border-radius: 0;
  background: rgba(220, 228, 233, 0.028);
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 300;
  transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.field input:not([type="checkbox"]),
.field select {
  min-height: 3.5rem;
  padding: 0.8rem 1rem;
}

.field textarea {
  min-height: 10rem;
  padding: 1rem;
  line-height: 1.85;
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: rgba(220, 228, 233, 0.28);
  background: rgba(220, 228, 233, 0.042);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--mint);
  outline: 2px solid rgba(111, 227, 196, 0.3);
  outline-offset: 2px;
  background: rgba(111, 227, 196, 0.045);
  box-shadow: 0 0 30px rgba(111, 227, 196, 0.1);
}

.field input::placeholder,
.field textarea::placeholder {
  color: #6C7A83;
  font-weight: 300;
}

.privacy-check {
  padding: 1.2rem 1.3rem;
  border: 1px solid var(--line-soft);
  background: rgba(220, 228, 233, 0.022);
}

.privacy-check label {
  color: var(--muted);
  font-weight: 300;
}

.form-boundary {
  padding-top: 1.6rem;
  border-top: 1px solid var(--amber-line);
  color: var(--muted);
}

/* review + draft: same hairline surface, mono ledger type */
.error-summary,
.budget-message,
.draft-status {
  border-radius: 0;
}

.review-list div,
.mail-meta div {
  border-top-color: var(--line-soft);
}

.review-list dd,
.mail-meta dd {
  font-weight: 300;
}

#draft-body {
  border: 1px solid var(--line-soft);
  background: rgba(220, 228, 233, 0.03);
  color: #C3D0D8;
}

footer {
  border-top: 1px solid var(--line-soft);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
}

@media (max-width: 860px) {
  .route-card + .route-card {
    border-top: 1px solid var(--line-soft);
    border-left: 1px solid var(--line-soft);
  }

  .intake-ledger {
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
  }
}

@media (max-width: 560px) {
  .route-card {
    padding: 1.6rem 1.4rem;
  }

  .route-intro h1,
  .panel-heading h1 {
    max-width: none;
    font-size: clamp(1.85rem, 8.2vw, 2.35rem);
  }
}
