/* Ashiuche company site. Dark teal rooms, serif headings, one thin bronze line for review. */
:root {
  --type-label: 12px; --type-body: 16px; --type-lede: 20px; --type-title: 24px;
  --bg: #08181B; --surface: #0C2125; --raised: #11292E; --line: #24454A; --control-line: #5E8588;
  --text: #E9F2F1; --muted: #A8C1C3; --mint: #7DD3C0; --bronze: #9A7B45; --amber: #F5C451; --error: #F0A3A3;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --display: Georgia, Cambria, "Times New Roman", serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --pad: 64px; --max: 1440px; --head: 84px;
  --duration: 220ms; --ease: cubic-bezier(.22, 1, .36, 1);
  --atmos-haze: #123238; --atmos-mid: #0D2529; --atmos-floor: #08181B;
  --veil: rgba(8, 24, 27, .9);
  --hero-h: clamp(560px, calc(100svh - var(--head) - 96px), 800px);
  --hero-size: clamp(52px, min(6.4vw, 9.6vh), 100px);
  --band: clamp(224px, 62vw, 340px);
  --caption-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-block: 32px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 var(--type-body)/1.5 var(--sans); overflow-wrap: break-word; }
h1, h2, h3, p, figure, ol, ul { margin: 0; }
h1, h2 { font-family: var(--display); font-weight: 400; letter-spacing: -.045em; }
h3 { font-size: var(--type-title); line-height: 1.3; font-weight: 500; letter-spacing: -.02em; }
p { max-width: 50ch; }
p + p { margin-block-start: 16px; }
svg { display: block; }
a { color: inherit; text-underline-offset: 5px; }
a:hover { text-decoration-thickness: 2px; }
button { font: inherit; cursor: pointer; }
a, button { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 4px; }
[hidden] { display: none !important; }
::selection { background: var(--mint); color: var(--bg); }
.wrap { width: min(calc(100% - 2 * var(--pad)), var(--max)); margin-inline: auto; }
.eyebrow { font: 500 var(--type-label)/1.6 var(--mono); letter-spacing: .13em; text-transform: uppercase; }
.section-index { display: flex; align-items: center; gap: 12px; color: var(--muted); font: var(--type-label)/1.6 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.section-index::before { content: ""; flex: none; width: 10px; height: 13px; border: 1px solid var(--bronze); border-bottom: 0; border-radius: 6px 6px 0 0; }
.skip { position: absolute; top: 12px; left: 12px; z-index: 100; padding: 12px 20px; background: var(--mint); color: var(--bg); transform: translateY(-180%); }
.skip:focus { transform: none; }
main:focus { outline: none; }

/* Header and footer */
.top, main, .footer { position: relative; z-index: 2; }
.top { background: rgba(8, 24, 27, .96); border-bottom: 1px solid var(--line); }
.masthead { min-height: var(--head); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; font-size: var(--type-title); letter-spacing: -.045em; text-decoration: none; font-weight: 600; }
.brand svg { width: 32px; height: 32px; color: var(--mint); flex: none; }
nav { display: flex; gap: 28px; }
nav a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; color: #C3D4D5; font-size: 14px; text-decoration: none; }
nav a:hover { color: var(--text); text-decoration: underline; text-decoration-thickness: 1px; }
.top-contact { display: inline-flex; align-items: center; min-height: 44px; gap: 16px; font-size: var(--type-label); text-decoration: none; }
.top-contact span { color: var(--mint); font-size: var(--type-lede); }
nav a[aria-current="page"], .top-contact[aria-current="page"] { color: var(--text); text-decoration: underline; text-decoration-color: var(--mint); text-decoration-thickness: 2px; text-underline-offset: 8px; }
.footer { background: var(--bg); border-top: 1px solid var(--line); padding-block: 40px 24px; }
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.footer-top nav { flex-wrap: wrap; }
.footer-row { display: flex; justify-content: space-between; gap: 20px; color: var(--muted); font-size: var(--type-label); }
.footer-row p { align-self: center; max-width: none; margin: 0; }

/* Buttons and links */
.button { display: inline-flex; justify-content: center; align-items: center; gap: 20px; min-height: 54px; padding: 16px 24px; border: 1px solid var(--mint); border-radius: 2px; background: var(--mint); color: var(--bg); font: 500 var(--type-body)/1.4 var(--sans); text-decoration: none; transition: background-color var(--duration) var(--ease), border-color var(--duration) var(--ease), color var(--duration) var(--ease), transform var(--duration) var(--ease); }
.button:hover { background: var(--text); border-color: var(--text); }
.button:active { background: var(--muted); border-color: var(--muted); transform: translateY(2px); }
.button:disabled { opacity: .65; cursor: wait; }
.button.secondary { background: transparent; border-color: var(--control-line); color: var(--text); }
.button.secondary:hover { border-color: var(--text); background: var(--raised); }
.button.secondary:active { background: var(--line); color: var(--text); border-color: var(--text); }
.text-link { display: inline-flex; align-items: center; min-height: 48px; gap: 16px; font-size: var(--type-body); }
.text-link:active, nav a:active, .top-contact:active, .reset:active { color: var(--text); text-decoration: underline; text-decoration-thickness: 2px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-block-start: 32px; }

/* Home: the headline on the left, the Gate on the right. The stage fills the hero. */
.page-home .hero { position: relative; isolation: isolate; min-height: var(--hero-h); display: flex; align-items: center; padding-block: 56px 64px; overflow: hidden; }
.page-home .hero > .wrap { position: relative; z-index: 1; }
.page-home .hero-content { max-width: none; }
.page-home .tagline { color: var(--muted); letter-spacing: .12em; margin-bottom: 24px; }
.page-home .hero h1 { font-size: var(--hero-size); line-height: 1; width: max-content; max-width: none; }
.page-home .hero h1 em { font-style: italic; }
.page-home .hero-intro { color: var(--muted); max-width: 40ch; margin-top: 28px; }
.page-home #scene-stage { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; background: linear-gradient(180deg, var(--atmos-haze) 0%, var(--atmos-mid) 50%, var(--atmos-floor) 100%); }
#scene-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
#scene-fallback { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .85; }
html[data-scene="live"] #scene-fallback { display: none; }
.page-home .scene-shade { position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(8, 24, 27, .95) 0%, rgba(8, 24, 27, .82) 32%, rgba(8, 24, 27, .35) 48%, transparent 62%), linear-gradient(0deg, rgba(8, 24, 27, .5), transparent 24%), linear-gradient(180deg, rgba(8, 24, 27, .75), transparent 20%); }

/* Fallback drawing: first paint, reduced motion and no WebGL. It is the same room, held at review. */
.page-home #scene-fallback { inset: 0 0 auto auto; height: calc(100% - 44px); width: auto; aspect-ratio: 760 / 700; opacity: 1; }
.room-art .glow-in { stop-color: #3FA7A6; stop-opacity: .34; }
.room-art .glow-out { stop-color: #3FA7A6; stop-opacity: 0; }
.room-art .rib path, .room-art .floor path { fill: none; stroke: #2C5A5E; stroke-width: 1; }
.room-art .body { fill: #0C2A2F; stroke: #24454A; stroke-width: 1.5; }
.room-art .opening { fill: #0A2428; }
.room-art .rim { fill: none; stroke: var(--bronze); stroke-width: 6; }
.room-art .threshold { fill: none; stroke: var(--amber); stroke-width: 3; }
.room-art .spill { fill: url(#room-spill); }
.room-art .orb { fill: #8A6E3E; }
.room-art .proposal rect.card { fill: #0F2A2F; stroke: var(--amber); stroke-width: 2; }
.room-art .proposal path { fill: none; stroke: #A8C1C3; stroke-width: 2; }
.room-art .proposal path.add { stroke: var(--mint); }

/* One caption with two states, anchored at the bottom right of the scene. Both texts stay in the DOM. */
.page-home .visual-caption { position: absolute; z-index: 2; right: calc(max(0px, (100% - var(--max)) / 2) + var(--pad)); bottom: 14px; width: 40ch; display: grid; align-items: center; padding: 8px 14px; background: rgba(8, 24, 27, .82); border-left: 2px solid var(--bronze); color: var(--muted); font: var(--type-label)/1.6 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.page-home .caption-prepare, .page-home .caption-held { grid-area: 1 / 1; transition: opacity var(--duration) var(--ease), visibility var(--duration) var(--ease); }
.page-home .hero[data-state="travelling"] .caption-held, .page-home .hero[data-state="held"] .caption-prepare { opacity: 0; visibility: hidden; }

/* Threshold sill: the three statements, set in a band under the hero. */
.page-home .intro-rule { position: relative; z-index: 1; background: var(--surface); border-top: 1px solid var(--bronze); }
.engagement { display: grid; grid-template-columns: repeat(3, 1fr); padding-block: 0; }
.engagement p { max-width: none; margin: 0; padding: 22px 32px 22px 0; color: var(--muted); }
.engagement p + p { padding-left: 32px; border-left: 1px solid var(--line); }
.engagement strong { display: block; color: var(--text); font: 400 var(--type-title)/1.2 var(--display); letter-spacing: -.02em; }
.home-next, .page-next { background: var(--bg); padding-block: 72px; border-top: 1px solid var(--line); }
.next-layout { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
.next-layout h2 { font-size: clamp(32px, 3.6vw, 48px); line-height: 1.08; }
.next-layout p { color: var(--muted); }
.next-layout .text-link { margin-top: 16px; }

/* Inner pages */
.page-intro { position: relative; padding-block: 72px 60px; border-bottom: 1px solid var(--line); background: radial-gradient(60% 140% at 8% 0, rgba(63, 167, 166, .13), transparent 70%); }
.page-intro::after { content: ""; position: absolute; left: max(var(--pad), calc((100% - var(--max)) / 2 + var(--pad))); bottom: -1px; width: 96px; height: 2px; background: var(--bronze); }
.page-intro .section-index { margin-bottom: 28px; }
.page-intro h1 { font-size: clamp(40px, 5.2vw, 76px); line-height: 1.04; max-width: 20ch; }
.page-intro h1 em { font-weight: 400; }
.intro-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 72px; align-items: end; }
.intro-copy { color: var(--muted); padding-bottom: 4px; }
.intro-copy .text-link { color: var(--text); margin-top: 20px; }
.page-lede { color: var(--muted); font-size: 18px; line-height: 1.6; margin-top: 28px; max-width: 54ch; }
.section-heading { display: grid; grid-template-columns: 1fr 1.15fr; gap: 64px; margin-bottom: 40px; align-items: end; }
.section-heading h2 { margin-top: 20px; font-size: clamp(32px, 3.6vw, 52px); line-height: 1.06; }
.section-heading > p { color: var(--muted); max-width: 48ch; padding-bottom: 4px; }

/* Services */
.offer-band { padding-block: 52px; background: linear-gradient(120deg, #0F3A3D 0%, #0B2A2E 55%, var(--surface) 100%); border-bottom: 1px solid var(--line); }
.offer-band-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 72px; align-items: start; }
.offer-band .eyebrow { color: var(--mint); margin-bottom: 12px; }
.offer-band h2 { font-size: clamp(52px, 6.5vw, 96px); line-height: 1; }
.offer-band h3 { font: 400 28px/1.2 var(--display); letter-spacing: -.02em; margin-bottom: 12px; }
.offer-band p { color: var(--muted); }
.offer-band .button { margin-top: 24px; }
.delivery-section { padding-block: 72px 80px; }
.delivery-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); counter-reset: stage; }
.delivery-list li { display: flex; flex-direction: column; gap: 14px; padding: 28px 28px 0 0; position: relative; }
.delivery-list li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.delivery-list li::before { content: ""; position: absolute; top: -1px; left: 0; width: 100%; height: 2px; background: linear-gradient(90deg, var(--bronze) 0, var(--bronze) 28px, transparent 28px); }
.delivery-list li + li::before { left: 0; }
.delivery-number { display: grid; place-items: center; width: 44px; height: 52px; border: 1px solid var(--bronze); border-bottom: 0; border-radius: 22px 22px 0 0; font: 400 20px/1 var(--display); color: var(--text); }
.delivery-list .eyebrow { color: var(--muted); }
.delivery-list h3 { font: 400 28px/1.15 var(--display); letter-spacing: -.025em; }
.delivery-list p { color: var(--muted); }
.delivery-list .delivery-output { margin-top: auto; padding: 18px 0 28px; border-top: 1px solid var(--line); color: var(--text); max-width: none; }
.delivery-output .eyebrow { display: block; margin-bottom: 6px; color: var(--mint); }
.delivery-section .scope-note { color: var(--muted); margin-top: 8px; padding-left: 20px; border-left: 1px solid var(--bronze); max-width: 70ch; }
.workflow-pair { padding-block: 0 72px; }
.workflow-pair-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.workflow-pair article { padding: 32px 40px 32px 0; }
.workflow-pair article:nth-child(even) { padding: 32px 0 32px 40px; border-left: 1px solid var(--line); }
.workflow-pair article:nth-child(n+3) { border-top: 1px solid var(--line); }
.workflow-pair h3 { font: 400 32px/1.15 var(--display); letter-spacing: -.03em; margin-block: 10px 14px; }
.workflow-pair p { color: var(--muted); }
.workflow-pair ul { margin: 12px 0 0; padding-left: 20px; color: var(--muted); }
.workflow-pair li { margin-block: 8px; padding-left: 4px; }
.workflow-pair .eyebrow { color: var(--muted); }
.workflow-pair .eyebrow.receives { margin-top: 20px; color: var(--mint); }
.workflow-pair .text-link { margin-top: 12px; color: var(--text); }
.workflow-pair .scope-note { margin-top: 24px; max-width: 70ch; }

/* How we work: a drafting frame around the walkthrough, with the scene behind it. */
.page-how-we-work #scene-stage { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.page-how-we-work .scene-shade { position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, var(--bg) 0%, rgba(8, 24, 27, .94) 23%, rgba(8, 24, 27, .3) 62%, transparent 100%); }
.workflow-intro { position: relative; isolation: isolate; padding-bottom: 44px; border-bottom: 0; }
.workflow-intro::before { content: ""; position: absolute; inset: 0 0 -100px; z-index: -1; pointer-events: none; background: linear-gradient(180deg, rgba(8, 24, 27, .92), rgba(8, 24, 27, .8) 72%, transparent); }
.workflow-intro::after { display: none; }
.workflow-intro h1 { max-width: none; }
.workflow-section { padding-block: 0 72px; }
.scene-window { position: relative; height: 300px; margin-bottom: 40px; pointer-events: none; }
.scene-window::before { content: ""; position: absolute; inset: 0; background:
  linear-gradient(var(--bronze), var(--bronze)) top left / 28px 1px no-repeat, linear-gradient(var(--bronze), var(--bronze)) top left / 1px 28px no-repeat,
  linear-gradient(var(--bronze), var(--bronze)) top right / 28px 1px no-repeat, linear-gradient(var(--bronze), var(--bronze)) top right / 1px 28px no-repeat,
  linear-gradient(var(--bronze), var(--bronze)) bottom left / 28px 1px no-repeat, linear-gradient(var(--bronze), var(--bronze)) bottom left / 1px 28px no-repeat,
  linear-gradient(var(--bronze), var(--bronze)) bottom right / 28px 1px no-repeat, linear-gradient(var(--bronze), var(--bronze)) bottom right / 1px 28px no-repeat; }
.scene-window::after { content: ""; position: absolute; left: 36px; right: 36px; top: 0; height: 7px; border-top: 1px solid var(--line); background: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 24px); opacity: .7; }
.scene-window p { position: absolute; bottom: 16px; left: 16px; max-width: none; color: var(--muted); font: var(--type-label)/1.7 var(--mono); letter-spacing: .07em; text-transform: uppercase; padding: 8px 14px; background: rgba(8, 24, 27, .88); border-left: 2px solid var(--bronze); }
.workflow-layout { display: grid; grid-template-columns: 1fr 1.7fr; gap: 48px; align-items: start; }
.workflow-aside { position: sticky; top: 24px; background: rgba(8, 24, 27, .96); padding: 24px; border: 1px solid var(--line); }
.workflow-aside h2 { font-size: 32px; line-height: 1.15; margin-bottom: 20px; }
.workflow-aside > p { color: var(--muted); }
.boundary-list { padding: 0; list-style: none; margin-top: 28px; border-top: 1px solid var(--line); }
.boundary-list li { display: flex; align-items: baseline; gap: 16px; border-bottom: 1px solid var(--line); padding-block: 14px; }
.boundary-list span { font: var(--type-label)/1 var(--mono); color: var(--mint); }
.workflow-console { min-width: 0; border: 1px solid var(--control-line); background: var(--surface); outline: 1px solid var(--line); outline-offset: 4px; }
.model-bar { padding: 18px 28px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; background: var(--raised); }
.model-label, .model-scope { max-width: none; font: var(--type-label)/1.6 var(--mono); letter-spacing: .06em; color: var(--muted); }
.model-label { text-transform: uppercase; }
.model-label::before { content: ""; display: inline-block; width: 5px; height: 5px; vertical-align: middle; margin-right: 8px; border: 1px solid var(--mint); }
.switcher { display: flex; gap: 8px; padding: 20px 28px 0; }
.switcher button { border: 1px solid var(--control-line); background: transparent; color: var(--muted); min-height: 48px; padding: 12px 16px; text-align: left; transition: background-color var(--duration) var(--ease), color var(--duration) var(--ease), border-color var(--duration) var(--ease); }
.switcher button[aria-pressed="true"] { border-color: var(--mint); background: rgba(125, 211, 192, .09); color: var(--text); }
.switcher button:hover { color: var(--text); }
.switcher button:active { background: var(--line); color: var(--text); border-color: var(--text); }
.workflow-example { padding: 28px; }
.example-heading { display: flex; justify-content: space-between; gap: 16px; align-items: start; margin-bottom: 24px; }
.example-tag { font: var(--type-label)/1.5 var(--mono); color: var(--muted); border: 1px solid var(--line); padding: 4px 8px; }
.example-input { padding: 16px 20px; border-left: 2px solid var(--bronze); background: var(--bg); }
.example-input .eyebrow, .review-deliverable .eyebrow, .decision-record .eyebrow { color: var(--muted); margin-bottom: 8px; }
.review-deliverable { margin-top: 24px; }
.review-deliverable ul { padding-left: 20px; }
.review-deliverable li { padding-left: 4px; margin-block: 12px; }
.example-rationale { color: var(--muted); margin-top: 16px; }
.example-rationale strong { color: var(--text); font-weight: 500; }
.review-boundary { border-top: 1px solid var(--line); padding: 24px 28px; background: linear-gradient(120deg, rgba(125, 211, 192, .05), transparent); }
.review-heading { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-bottom: 8px; }
.review-heading h3 { font-size: var(--type-body); }
.state-badge { max-width: none; font: var(--type-label)/1.5 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--amber); transition: color var(--duration) var(--ease); }
.workflow-console[data-review="approved"] .state-badge { color: var(--mint); }
.workflow-console[data-review="rejected"] .state-badge { color: var(--text); }
.review-boundary > p { color: var(--muted); }
.review-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.review-actions .button { min-height: 48px; padding: 12px 16px; gap: 12px; }
.review-actions button[aria-pressed="true"] { outline: 1px solid var(--text); outline-offset: 3px; }
.review-actions button[aria-pressed="true"]:focus-visible { outline: 3px solid var(--amber); }
.decision-record { border-top: 1px solid var(--line); padding: 24px 28px; min-height: 134px; }
.decision-record p { max-width: 60ch; }
.decision-record .reset { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 0; margin-top: 8px; border: 0; background: transparent; color: var(--mint); text-decoration: underline; text-underline-offset: 4px; }
@keyframes decision-reveal { from { opacity: .35; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
.decision-record.is-changing #decision-record, .decision-record.is-changing .eyebrow { animation: decision-reveal 180ms var(--ease) both; }
.no-script { padding: 20px 28px; border-top: 1px solid var(--line); color: var(--muted); }
.guardrails { margin-top: 56px; display: grid; grid-template-columns: 1fr 1.7fr; gap: 48px; border-top: 1px solid var(--line); background: rgba(8, 24, 27, .96); padding: 28px 24px 24px; }
.guardrails h3 { font-size: var(--type-body); font-weight: 500; }
.guardrails p { color: var(--muted); }

/* About */
.about-principles { padding-block: 56px 64px; border-bottom: 1px solid var(--line); background: var(--surface); }
.about-principles h2 { font-size: clamp(32px, 3.6vw, 48px); line-height: 1.08; margin-bottom: 40px; }
.principle-columns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.principle-columns > div { padding: 28px 40px 0 0; }
.principle-columns > div + div { padding-left: 40px; border-left: 1px solid var(--line); }
.principle-columns .eyebrow { color: var(--mint); }
.principle-columns h3 { font: 400 28px/1.15 var(--display); letter-spacing: -.025em; margin-block: 14px; }
.principle-columns p { color: var(--muted); }
.experience-focus { padding-block: 64px 72px; }
.experience-layout { display: grid; grid-template-columns: 1.15fr 1fr; gap: 72px; align-items: start; }
.experience-layout h2 { font-size: clamp(32px, 3.6vw, 48px); line-height: 1.08; max-width: 15ch; margin-top: 20px; }
.experience-layout > div:last-child { color: var(--muted); padding-top: 8px; }
.experience-note { margin-top: 20px; padding: 10px 0 10px 16px; border-left: 2px solid var(--bronze); color: var(--text); font-size: 15px; }
.experience-layout .text-link { color: var(--text); margin-top: 16px; }

/* Contact */
.contact-intro { padding-block: 56px 72px; }
.contact-layout { display: grid; grid-template-columns: 1.15fr 1fr; gap: 72px; align-items: stretch; }
.contact-intro h1 { font-size: clamp(36px, 4.2vw, 60px); max-width: none; }
.contact-intro .page-lede { margin-top: 20px; }
.contact-brief { margin-top: 56px; }
.contact-price { margin-top: 24px; padding-block: 16px; border-block: 1px solid var(--line); font: 400 28px/1.2 var(--display); letter-spacing: -.02em; max-width: none; }
.contact-price strong { color: var(--mint); font-weight: 400; white-space: nowrap; }
.contact-form { margin-top: 32px; }
.form-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-field { min-width: 0; margin-bottom: 24px; }
.form-field label { display: block; margin-bottom: 8px; font-weight: 500; }
.form-field label span, .form-field > p, .form-privacy { color: var(--muted); font-weight: 400; font-size: 14px; }
.form-field > p { margin-block: 0 10px; }
.form-field input, .form-field textarea { display: block; width: 100%; min-height: 50px; padding: 12px 14px; font: inherit; font-size: 16px; color: var(--text); background: var(--surface); border: 1px solid var(--control-line); border-radius: 0; }
.form-field input:focus-visible, .form-field textarea:focus-visible { outline-offset: 2px; border-color: var(--mint); }
.form-field textarea { resize: vertical; }
.form-privacy { margin-top: 16px; }
.contact-status { min-height: 48px; margin-top: 16px; }
.contact-status.is-success { color: var(--mint); }
.contact-status.is-error { color: var(--error); }
.contact-trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.contact-note { color: var(--muted); font-size: 14px; margin-top: 12px; max-width: 62ch; }
.contact-note a { color: var(--text); text-underline-offset: 3px; }
.contact-note strong { color: var(--text); font-weight: 500; }
.contact-direct { margin-top: 24px; font-size: 16px; }
.contact-brief { border-left: 1px solid var(--line); padding-left: 48px; }
.contact-brief h2 { font-size: 36px; line-height: 1.1; margin-bottom: 24px; }
.contact-brief ol { list-style: none; padding: 0; margin-bottom: 20px; border-top: 1px solid var(--line); }
.contact-brief li { display: flex; align-items: baseline; gap: 20px; padding-block: 16px; border-bottom: 1px solid var(--line); }
.contact-brief li span { font: 12px var(--mono); color: var(--mint); }

@media (max-width: 1100px) {
  :root { --pad: 32px; }
  nav { gap: 16px; }
  .intro-grid, .offer-band-grid, .experience-layout, .contact-layout, .next-layout, .section-heading { gap: 36px; }
  .delivery-list { grid-template-columns: 1fr 1fr; }
  .delivery-list li:nth-child(odd) { padding-left: 0; border-left: 0; }
  .delivery-list li:nth-child(n+3) { margin-top: 28px; border-top: 1px solid var(--line); }
  .delivery-list li:nth-child(n+3)::before { display: none; }
  .workflow-layout { gap: 36px; grid-template-columns: 1fr 1.6fr; }
  .guardrails { gap: 36px; grid-template-columns: 1fr 1.6fr; }
  .contact-brief { padding-left: 28px; }
  .principle-columns > div { padding-right: 24px; }
  .principle-columns > div + div { padding-left: 24px; }
}

@media (max-width: 900px) {
  :root { --pad: 20px; --head: 100px; }
  .masthead { flex-wrap: wrap; gap: 0 20px; padding-block: 8px 4px; }
  .brand svg { width: 28px; height: 28px; }
  nav { width: 100%; order: 3; justify-content: flex-start; gap: 28px; margin-top: 0; }
  .top-contact { margin-left: auto; gap: 12px; }
  .footer-top { align-items: flex-start; flex-direction: column; gap: 12px; margin-bottom: 16px; }
  .footer-top nav { margin: 0; gap: 4px 24px; flex-wrap: wrap; }
  .footer-row { flex-direction: column; align-items: flex-start; gap: 4px; }
  .footer-row p { align-self: flex-start; }
  .actions { gap: 4px 24px; margin-top: 24px; }
  .page-intro { padding-block: 44px 40px; }
  .page-intro .section-index { margin-bottom: 20px; }
  .page-intro::after { left: var(--pad); }
  .intro-grid, .offer-band-grid, .experience-layout, .contact-layout, .next-layout, .section-heading, .workflow-layout, .guardrails { grid-template-columns: 1fr; gap: 24px; }
  .intro-copy p, .page-lede { max-width: 58ch; }
  .page-lede { font-size: var(--type-body); margin-top: 20px; }
  .home-next, .page-next { padding-block: 44px; }
  .offer-band { padding-block: 36px; }
  .offer-band-grid { gap: 20px; }
  .delivery-section { padding-block: 48px 56px; }
  .section-heading { margin-bottom: 28px; }
  .delivery-list { grid-template-columns: 1fr; border-top: 0; }
  .delivery-list li, .delivery-list li + li, .delivery-list li:nth-child(odd) { padding: 24px 0 0 0; border-left: 0; margin-top: 0; border-top: 1px solid var(--line); }
  .delivery-list li::before, .delivery-list li:nth-child(n+3)::before { display: block; }
  .delivery-list .delivery-output { margin-top: 4px; padding-bottom: 24px; max-width: 46ch; }
  .workflow-pair { padding-bottom: 48px; }
  .workflow-pair-grid { grid-template-columns: 1fr; }
  .workflow-pair article, .workflow-pair article:nth-child(even) { padding: 24px 0; border-left: 0; }
  .workflow-pair article + article { border-top: 1px solid var(--line); }
  .workflow-pair h3 { font-size: 28px; }
  .about-principles { padding-block: 40px; }
  .about-principles h2 { margin-bottom: 28px; }
  .principle-columns { grid-template-columns: 1fr; }
  .principle-columns > div, .principle-columns > div + div { padding: 24px 0 0; border-left: 0; }
  .principle-columns > div + div { margin-top: 24px; border-top: 1px solid var(--line); }
  .experience-focus { padding-block: 44px 48px; }
  .contact-intro { padding-block: 40px 48px; }
  .contact-brief { margin-top: 0; }
  .contact-brief { border-left: 0; border-top: 1px solid var(--line); padding: 28px 0 0; margin-top: 8px; }
  .contact-brief h2 { font-size: 30px; margin-bottom: 20px; }
  .contact-price { font-size: 24px; }
  .page-how-we-work #scene-stage, .scene-window { display: none; }
  .workflow-aside { order: 2; }
  .workflow-console { order: 1; }
  .workflow-aside { position: static; padding: 20px 16px; }
  .workflow-aside h2 { font-size: 28px; }
  .guardrails { margin-top: 36px; padding-inline: 16px; }
  .boundary-list { display: grid; grid-template-columns: 1fr 1fr; margin-top: 20px; }
  .boundary-list li { gap: 8px; padding: 12px 4px 12px 0; }
  .model-bar { padding: 16px; }
  .switcher { padding: 16px 16px 0; }
  .switcher button { flex: 1; padding: 8px 12px; }
  .workflow-example { padding: 24px 16px; }
  .example-heading { gap: 8px; margin-bottom: 20px; }
  .example-tag { white-space: nowrap; }
  .example-input { padding: 16px; }
  .review-boundary { padding: 24px 16px; }
  .review-actions .button { flex: 1; min-width: 120px; padding: 12px; }
  .decision-record { padding: 24px 16px; min-height: 160px; }
  .model-bar, .review-heading, .example-heading { flex-wrap: wrap; gap: 12px; }

  /* Home on a phone: text first, then the Gate in its own band. The two blend through one gradient. */
  .page-home .hero { display: block; min-height: 0; overflow: visible; padding: 28px 0 0; background: radial-gradient(90% 40% at 90% 8%, rgba(63, 167, 166, .12), transparent 70%), linear-gradient(180deg, var(--bg) 0, var(--atmos-haze) calc(100% - var(--band) - var(--caption-h)), var(--atmos-floor) calc(100% - var(--caption-h)), var(--atmos-floor) 100%); }
  .page-home .hero-content { display: block; }
  .page-home .tagline { letter-spacing: .08em; margin-bottom: 16px; }
  .page-home .hero h1 { font-size: clamp(38px, 13vw, 76px); width: auto; }
  .page-home .hero-intro { margin-top: 20px; max-width: 36ch; }
  .page-home #scene-stage { position: relative; inset: auto; height: var(--band); margin-top: 24px; background: linear-gradient(180deg, var(--atmos-haze) 0%, var(--atmos-mid) 50%, var(--atmos-floor) 100%); }
  .page-home .scene-shade { display: none; }
  .page-home #scene-stage { -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 14%); mask-image: linear-gradient(180deg, transparent 0, #000 14%); }
  .page-home #scene-fallback { inset: auto auto 0 50%; height: 100%; transform: translateX(-50%); }
  .page-home .visual-caption { position: relative; right: auto; bottom: auto; width: auto; height: var(--caption-h); max-width: none; align-content: center; padding: 0 var(--pad); background: transparent; border-left: 0; }
  .page-home .visual-caption > span { max-width: 36ch; padding-left: 12px; border-left: 2px solid var(--bronze); }
  .engagement { grid-template-columns: 1fr; }
  .engagement p, .engagement p + p { padding: 16px 0; border-left: 0; }
  .engagement p + p { border-top: 1px solid var(--line); }
}

@media (max-width: 600px) {
  .form-pair { grid-template-columns: 1fr; gap: 0; }
  .page-home .actions .text-link { min-height: 44px; }
}

@media (max-width: 380px) {
  nav { gap: 20px; }
  .page-intro h1 { font-size: 38px; }
  .offer-band h2 { font-size: 52px; }
  .contact-price strong { white-space: normal; }
}

@media (min-width: 901px) and (max-height: 720px) {
  .page-home .tagline { margin-bottom: 16px; }
  .page-home .hero-intro { margin-top: 16px; }
  .page-home .actions { margin-top: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  a:active, button:active { transform: none; }
  .workflow-aside { position: static; }
  #scene-stage canvas { display: none !important; }
  #scene-fallback { display: block !important; }
}

@media (forced-colors: active) {
  :root { --bg: Canvas; --surface: Canvas; --raised: Canvas; --text: CanvasText; --muted: CanvasText; --line: CanvasText; --control-line: CanvasText; --mint: LinkText; --amber: Highlight; --bronze: CanvasText; }
  .page-home .hero, .page-home .intro-rule, .page-intro, .offer-band, .workflow-intro, .workflow-aside, .guardrails, .about-principles, .page-home #scene-stage { background: Canvas; color: CanvasText; }
  .scene-shade, #scene-stage canvas { display: none !important; }
  #scene-fallback { display: block !important; opacity: .3; }
  #scene-fallback * { stroke: CanvasText; fill: none; }
  #scene-fallback ellipse, #scene-fallback .floor { display: none; }
  .button { background: ButtonFace; color: ButtonText; border: 1px solid ButtonText; }
  .button.secondary { color: ButtonText; }
  .switcher button[aria-pressed="true"] { outline: 2px solid Highlight; outline-offset: -3px; }
  :focus-visible { outline-color: Highlight; }
  .form-field input, .form-field textarea, .example-input { background: Canvas; color: CanvasText; border-color: CanvasText; }
  .contact-status.is-success, .contact-status.is-error, .contact-price strong, .state-badge { color: CanvasText; }
}

@media print {
  #scene-stage, .scene-window, nav, .top-contact, .skip, .page-home .hero .actions, .switcher, .review-actions, .reset, .visual-caption { display: none !important; }
  :root { --bg: #fff; --surface: #fff; --raised: #fff; --text: #111; --muted: #333; --line: #aaa; --control-line: #555; --mint: #111; --amber: #111; --bronze: #555; }
  body { font-size: 11pt; background: #fff; color: #111; }
  .wrap { width: 100%; }
  .masthead { min-height: 60px; }
  .page-home .hero, .page-intro, .offer-band, .about-principles, .page-home .intro-rule, .workflow-aside, .guardrails { background: none; min-height: 0; padding-block: 24px; }
  .page-home .hero h1, .page-intro h1 { font-size: 36pt; }
  .page-intro::after { display: none; }
  .intro-grid, .offer-band-grid, .workflow-layout, .guardrails, .experience-layout, .contact-layout, .section-heading, .next-layout { display: block; }
  .delivery-list { display: block; }
  .delivery-list li { break-inside: avoid; padding: 16px 0; border-left: 0; }
  .workflow-example[hidden] { display: block !important; }
  .footer-top { display: none; }
}
