/* Local craft pass. Existing copy, palette and 3D composition stay intact. */
:root {
  --ink: #192530;
  --muted: #566570;
  --field-border: #84919b;
  --focus: #315ba5;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --space-section: clamp(80px, 7.5vw, 120px);
}
html { scroll-padding-top: 32px; }
html:has(body.reduced-motion),
html:has(body[data-input-method="keyboard"]) { scroll-behavior: auto; }
body { text-rendering: optimizeLegibility; }
:is(button, a, input, textarea, select, summary):focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 5px;
}
.skip-link {
  position: fixed;
  z-index: 200;
  top: 12px;
  left: 20px;
  padding: 14px 20px;
  background: var(--ink);
  color: #fff;
  transform: translateY(-180%);
}
.skip-link:focus { transform: none; }
section[tabindex="-1"]:focus, main[tabindex="-1"]:focus { outline: none; }
.brand { display: inline-flex; align-items: center; min-height: 44px; }
.site-header { height: 96px; }
.site-header nav { gap: 36px; }
.site-header nav a { min-height: 44px; display: inline-flex; align-items: center; }

body[data-design] .story-copy {
  top: 28%;
  gap: 28px;
  width: 40%;
}
body[data-design] .story-copy h1 {
  font-size: clamp(48px, 4.8vw, 76px);
  line-height: 1.06;
  letter-spacing: -.045em;
  text-wrap: balance;
}
body[data-design] #headline-accent { color: var(--muted); }
body[data-design] .story-description {
  max-width: 440px;
  color: var(--muted);
  line-height: 1.6;
  text-wrap: pretty;
}
body[data-design] .hero-actions { margin-top: 4px; }
body[data-design] .button-primary {
  min-height: 56px;
  padding: 16px 26px;
  border-radius: 2px;
  font-weight: 500;
  transition: transform 120ms var(--ease-out), background-color 160ms ease, border-color 160ms ease;
}
body[data-design] .button-primary:disabled { background: #dce1e5; border-color: #dce1e5; color: #56616b; opacity: 1; }
.text-action, .text-button, .chapter-nav button, .motion-button {
  transition: color 160ms ease, border-color 160ms ease;
}
body:not(.reduced-motion):not([data-input-method="keyboard"]) .button-primary:not(:disabled):active {
  transform: scale(.98);
}
.chapter-nav { gap: 28px; }
.chapter-nav button { padding-inline: 4px; font-weight: 400; }
.chapter-nav button[aria-pressed="true"] { font-weight: 400; border-bottom-width: 2px; }
.motion-button { color: var(--muted); }

.section { padding-block: var(--space-section); }
.section h2, .maker-copy h2, .contact-section h2 {
  font-size: clamp(40px, 3.9vw, 62px);
  line-height: 1.09;
  letter-spacing: -.04em;
  text-wrap: balance;
}
.section-heading { gap: 8%; margin-bottom: 48px; }
.section-heading > p:last-child, .section-intro > p,
.contact-section > div > p, .maker-copy p { color: var(--muted); text-wrap: pretty; }
.situation-grid { gap: 32px; border-block: 0; }
.situation, .situation[aria-pressed="true"] {
  padding: 28px 0 24px;
  border-top: 2px solid #dce1e5;
}
.situation[aria-pressed="true"] { border-top-color: var(--ink); }
.situation h3, .process-grid h3 { font-size: 28px; letter-spacing: -.025em; line-height: 1.25; }
.situation p, .process-grid p, .selection-detail p, .faq-list details p {
  color: var(--muted);
  line-height: 1.65;
  text-wrap: pretty;
}
.selection-detail { padding-top: 24px; gap: 48px; }
.selection-detail p { max-width: 740px; }
.maker-portrait img { aspect-ratio: 4 / 5; max-height: 600px; }
.maker-portrait figcaption { margin-top: 16px; color: var(--muted); }
.maker-copy .text-action { margin-top: 28px; }
.process-grid { gap: 32px; }
.process-grid article { padding-top: 28px; }
.faq-list { border-bottom: 1px solid var(--rule); }
.faq-list summary { padding-block: 28px; padding-right: 44px; font-size: 21px; }
.faq-list summary > span { top: 25px; color: var(--muted); }
.faq-list details p { max-width: 650px; padding-right: 44px; padding-bottom: 28px; }

.quiz-section, .contact-section { grid-template-columns: .9fr 1.1fr; gap: 8%; background: #f5f6f7; }
.quiz-flow, .contact-section form { padding: 36px; background: #fff; border: 1px solid #e1e5e8; }
.quiz-flow { min-height: 480px; scroll-margin-top: 32px; }
.quiz-step-label { margin-bottom: 20px; color: var(--muted); font-variant-numeric: tabular-nums; }
.quiz-question { font-size: 32px; line-height: 1.18; letter-spacing: -.03em; text-wrap: balance; }
.quiz-options { gap: 12px; }
.quiz-option { border-color: var(--field-border); min-height: 66px; font-size: 18px; padding: 17px 18px; }
.quiz-option.is-selected { border-color: var(--ink); background: #eef1f3; }
.quiz-option:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 4px; }
.quiz-option input:focus-visible { outline: none; }
.quiz-navigation { margin-top: 28px; gap: 20px; }
.quiz-result-list li { font-size: 18px; line-height: 1.6; }
.contact-section form { gap: 24px; }
.contact-section input, .contact-section textarea { border-color: var(--field-border); padding: 15px 16px; }
.contact-section input::placeholder, .contact-section textarea::placeholder { color: #68747f; opacity: 1; }
.contact-section textarea { min-height: 156px; }
.contact-section input[aria-invalid="true"],
.contact-section textarea[aria-invalid="true"] { border-color: #9c3b30; outline-color: #9c3b30; }
.contact-section .form-consent { min-height: 44px; align-items: flex-start; }
.form-actions .button-primary { width: 100%; }
.contact-section .form-note { color: var(--muted); font-size: 16px !important; }
.contact-section > div > .contact-assurance { font-size: 18px; line-height: 1.6; }
#form-result:not([hidden]) { padding: 14px 16px; background: #f0f3f5; border-left: 3px solid #84919b; }
form[data-state="invalid"] #form-result { color: #822f26; border-color: #9c3b30; background: #fbf2f0; }
form[data-state="success"] #form-result { color: #24513e; border-color: #42745e; background: #f0f6f2; }
.footer { padding-block: 30px; color: var(--muted); }

@media (hover: hover) and (pointer: fine) {
  .button-primary:not(:disabled):hover { background: #31414d; border-color: #31414d; }
  .text-action:hover, .text-button:hover, .chapter-nav button:hover, .motion-button:hover { color: #192530; border-color: #192530; }
  .quiz-option:hover { border-color: #192530; }
  .situation:hover { border-top-color: #84919b; }
  .situation[aria-pressed="true"]:hover { border-top-color: #192530; }
}
@media (hover: none) {
  .button-primary:not(:disabled):hover { background: #192530; border-color: #192530; }
  .quiz-option:not(.is-selected):hover { border-color: var(--field-border); }
}

@media (min-width: 761px) and (max-width: 1100px) {
  body[data-design] .story-copy h1 { font-size: clamp(42px, 4.8vw, 54px); }
  .site-header nav { gap: 24px; }
  .situation h3, .process-grid h3 { font-size: 25px; }
  .quiz-flow, .contact-section form { padding: 28px; }
  .quiz-question { font-size: 28px; }
}
@media (max-width: 760px) {
  html { scroll-padding-top: 24px; }
  .site-header { height: 80px; }
  .site-header nav { gap: 20px; font-size: 15px; }
  .site-header nav a:first-child { display: inline-flex; }
  .site-header nav a:last-child { display: none; }
  .story-sticky { --stage-top: 44%; --stage-h: 42%; }
  body[data-design] .story-copy { top: 112px; width: auto; gap: 20px; }
  body[data-design] .story-copy h1 { font-size: clamp(34px, 9.2vw, 43px); line-height: 1.08; letter-spacing: -.04em; }
  body[data-design] .story-description { font-size: 17px; line-height: 1.5; }
  body[data-design] .button-primary { min-height: 52px; padding: 14px 22px; font-size: 17px; }
  .scene-footer { bottom: 16px; }
  .chapter-nav { gap: 12px; }
  .chapter-nav button { padding-inline: 0; min-width: 64px; }
  .motion-button { bottom: 72px; }
  .section { padding-block: 72px; }
  .section h2, .maker-copy h2, .contact-section h2 { font-size: 38px; line-height: 1.1; letter-spacing: -.035em; }
  .section-heading { margin-bottom: 32px; }
  .section-heading > p:last-child, .section-intro > p, .contact-section > div > p { margin-top: 24px; }
  .situation h3, .process-grid h3 { font-size: 26px; }
  .situation, .situation[aria-pressed="true"] { padding-block: 26px; }
  .situation + .situation { border-top: 2px solid #dce1e5; }
  .situation[aria-pressed="true"] { border-top-color: var(--ink); }
  .selection-detail { padding-top: 16px; }
  .maker-section { gap: 32px; }
  .maker-portrait img { max-height: 480px; }
  .process-grid { gap: 32px; }
  .faq-list summary { padding-block: 24px; font-size: 20px; }
  .faq-list summary > span { top: 21px; }
  .quiz-section, .contact-section { padding-inline: 22px; }
  .quiz-flow, .contact-section form { padding: 24px 0 0; background: transparent; border: 0; }
  .quiz-flow { min-height: 0; }
  .section-intro { margin-bottom: 12px; }
  .quiz-step-label { margin-bottom: 16px; }
  .quiz-question { font-size: 28px; line-height: 1.22; margin-bottom: 24px; }
  .quiz-navigation { gap: 16px; }
  .quiz-navigation > .button-primary:only-child { width: 100%; margin-left: 0; }
  .quiz-result .quiz-navigation { flex-direction: column; align-items: stretch; }
  .quiz-result .text-button { align-self: flex-start; }
  .quiz-option { font-size: 17px; padding: 16px; }
  .contact-section form { margin-top: 20px; }
  .contact-section label { font-size: 17px; }
  .contact-section .form-consent { font-size: 16px; gap: 12px; }
  .contact-section > div > .contact-assurance { font-size: 17px; }
  .footer { padding-block: 28px; }
}
@media (min-width: 761px) and (max-height: 700px) {
  .site-header { height: 76px; }
  body[data-design] .story-copy { top: 23%; gap: 20px; }
  body[data-design] .story-copy h1 { font-size: clamp(40px, 4.2vw, 58px); }
}
@media (min-width: 761px) and (max-height: 500px) {
  .site-header { height: 68px; }
  body[data-design] .story-copy { top: 86px; gap: 12px; width: 42%; }
  body[data-design] .story-copy h1 { font-size: 36px; line-height: 1.05; }
  body[data-design] .story-description { font-size: 16px; line-height: 1.4; }
  body[data-design] .button-primary { min-height: 44px; padding: 11px 20px; font-size: 16px; }
  .scene-footer, .motion-button { bottom: 12px; }
}
@media (max-width: 760px) and (max-height: 740px) {
  .site-header { height: 68px; }
  body[data-design] .story-copy { top: 88px; gap: 16px; }
  body[data-design] .story-copy h1 { font-size: 32px; }
  body[data-design] .story-description { font-size: 16px; line-height: 1.4; }
  .story-sticky { --stage-top: 48%; --stage-h: 38%; }
}
@media (max-width: 760px) and (max-height: 640px) {
  body[data-design] .story-copy { top: 80px; gap: 12px; }
  body[data-design] .story-copy h1 { font-size: 29px; }
  body[data-design] .button-primary { min-height: 46px; padding-block: 11px; }
  .story-sticky { --stage-top: 54%; --stage-h: 31%; }
  .motion-button { bottom: 65px; }
  .scene-footer { bottom: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .button-primary, .text-action, .text-button, .chapter-nav button, .motion-button { transition: none !important; }
  .button-primary:active { transform: none !important; }
}
body.reduced-motion .button-primary,
body.reduced-motion .text-action,
body.reduced-motion .text-button,
body.reduced-motion .chapter-nav button,
body.reduced-motion .motion-button,
body[data-input-method="keyboard"] .button-primary,
body[data-input-method="keyboard"] .text-action,
body[data-input-method="keyboard"] .text-button,
body[data-input-method="keyboard"] .chapter-nav button,
body[data-input-method="keyboard"] .motion-button { transition: none; }
body.reduced-motion .button-primary:active { transform: none; }
