/* 2026-10-15: header/nav overrides removed; the shared header lives in site-unify-v1.css.
   Selected homepage concept: the original decoder, with live text and controls.
   Keep this surface scoped so the existing reading and result pages stay intact. */
@font-face {
  font-family: "DNA Display";
  src: url("assets/dna-home-title-heavy-v1.ttf") format("truetype");
  font-style: normal; font-weight: 900; font-display: swap;
}
body[data-experience="dual-v01"][data-app-page="home"] {
  --home-blue: var(--dna-blue);
  --home-ink: #101113;
  --home-muted: #55575b;
  background: var(--dna-paper);
}
body[data-experience="dual-v01"][data-app-page="home"] main {
  width: 100%; max-width: 1480px; min-height: 0;
  margin: 0 auto; padding: 0 64px 64px;
  border: 0; background: transparent;
}

body[data-experience="dual-v01"][data-app-page="home"] #home .dual-home-hero {
  display: grid; grid-template-columns: minmax(0, 48fr) minmax(0, 52fr); grid-template-rows: auto;
  grid-template-areas: "intro art"; align-items: center;
  gap: 0; min-height: calc(100svh - 180px); padding: 48px 0 14px;
  border: 0; background: transparent; overflow: visible;
}
body[data-experience="dual-v01"][data-app-page="home"] #home .field-home-intro { width: 100%; max-width: 36rem; justify-self: center; padding: 0 0 24px; position: relative; z-index: 1; text-align: center; }
body[data-experience="dual-v01"][data-app-page="home"] #home .field-home-label { display: inline-block; color: var(--home-ink); font-size: .875rem; letter-spacing: .12em; font-weight: 650; }
body[data-experience="dual-v01"][data-app-page="home"] #home .field-home-intro h1 {
  margin: 26px 0 28px; font-size: clamp(3rem, 5.5vw, 5.25rem);
  font-weight: 500; line-height: 1.25; letter-spacing: -.025em;
  color: var(--home-ink); text-wrap: balance;
}
body[data-experience="dual-v01"][data-app-page="home"] #home .field-home-intro h1 .home-title-line { display: block; position: relative; white-space: nowrap; width: max-content; max-width: none; margin-inline: auto; padding: 0; background: transparent; }
body[data-experience="dual-v01"][data-app-page="home"] #home .field-home-intro h1 .home-title-line:last-child { margin-top: 10px; color: var(--home-blue); font-family: "DNA Display", "PingFang SC", sans-serif; font-size: clamp(3.5rem, 6.3vw, 6rem); font-weight: 900; letter-spacing: -.03em; }
.home-title-punctuation { position: absolute; inset-inline-start: 100%; top: 0; font: inherit; letter-spacing: 0; }
body[data-experience="dual-v01"][data-app-page="home"] #home .field-home-intro > p { width: 100%; max-width: none; margin: 0 auto; font-size: 1.125rem; font-weight: 400; line-height: 1.8; color: var(--home-muted); }
body[data-experience="dual-v01"][data-app-page="home"] #home .minimal-home-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; margin-top: 32px; }
body[data-experience="dual-v01"][data-app-page="home"] #home :is(.field-primary-link, .minimal-test-link) {
  --home-ease: cubic-bezier(.22, 1, .36, 1);
  display: inline-flex; align-items: center; justify-content: space-between; gap: 16px;
  position: relative; min-height: 56px; min-width: 0; width: 206px; padding: 10px 14px 10px 24px;
  border: 1px solid transparent; border-radius: 999px; text-decoration: none;
  font: inherit; font-size: 1rem; font-weight: 600; line-height: 1.4; cursor: pointer;
  transition: transform 240ms var(--home-ease), background-color 240ms var(--home-ease), border-color 240ms var(--home-ease), color 240ms var(--home-ease);
}
body[data-experience="dual-v01"][data-app-page="home"] #home .field-primary-link { background: var(--home-blue); color: white; }
body[data-experience="dual-v01"][data-app-page="home"] #home .minimal-test-link { background: transparent; color: var(--home-ink); border-color: #cfd2d9; }
.home-action-label { white-space: nowrap; }
.home-action-arrow { display: grid; flex: 0 0 30px; width: 30px; height: 30px; place-items: center; border-radius: 50%; overflow: hidden; background: rgb(255 255 255 / 15%); }
.minimal-test-link .home-action-arrow { color: var(--dna-blue); background: #e9edfc; }
.home-action-arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform 240ms cubic-bezier(.22,1,.36,1); }
@media (hover: hover) {
  body[data-experience="dual-v01"][data-app-page="home"] #home :is(.field-primary-link, .minimal-test-link):hover { transform: translateY(-3px); }
  body[data-experience="dual-v01"][data-app-page="home"] #home .field-primary-link:hover { background: #1a3aa8; }
  body[data-experience="dual-v01"][data-app-page="home"] #home .minimal-test-link:hover { background: #eef2ff; border-color: var(--dna-blue); color: var(--dna-blue); }
  .minimal-home-actions :is(a, button):hover .home-action-arrow svg { animation: dna-arrow-travel 360ms cubic-bezier(.22,1,.36,1); }
}
body[data-experience="dual-v01"][data-app-page="home"] #home :is(.field-primary-link, .minimal-test-link):focus-visible { outline: 3px solid var(--dna-blue); outline-offset: 5px; }
.minimal-home-actions :is(a, button):focus-visible .home-action-arrow svg { transform: translateX(3px); }
body[data-experience="dual-v01"][data-app-page="home"] #home :is(.field-primary-link, .minimal-test-link):active { transform: translateY(0) scale(.97); transition-duration: 100ms; }
@keyframes dna-arrow-travel {
  0% { transform: translateX(0); opacity: 1; }
  45% { transform: translateX(20px); opacity: 0; }
  46% { transform: translateX(-20px); opacity: 0; }
  100% { transform: translateX(0); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  body[data-experience="dual-v01"][data-app-page="home"] #home .minimal-home-actions :is(a, button, svg) { transition: none !important; animation: none !important; transform: none !important; }
}
body[data-experience="dual-v01"][data-app-page="home"] #home .dual-home-hero-visual {
  grid-area: art; width: 100%; max-width: none; min-height: 0;
  align-self: center; justify-self: end; overflow: visible; padding: 0;
}
body[data-experience="dual-v01"][data-app-page="home"] #home .dual-home-hero .dna-home-mascot {
  display: flex; justify-content: center; align-items: end; width: 100%;
  height: auto; min-height: 0; margin: 0; border: 0; background: transparent; aspect-ratio: auto;
}
body[data-experience="dual-v01"][data-app-page="home"] #home .dual-home-hero .dna-home-mascot img {
  display: block; width: 100%; height: auto; max-height: min(830px, calc(100svh - 210px));
  min-height: 0; object-fit: contain; object-position: center bottom; transform: none;
}
.minimal-home-divider { display: flex; align-items: center; justify-content: center; gap: 24px; margin: 12px 0 0; padding: 0 0 32px; font-size: 15px; font-weight: 400; color: #77797c; line-height: 1.5; }
.minimal-home-divider::before, .minimal-home-divider::after { content: ""; height: 1px; background: #d8dadd; flex: 1; }
body[data-experience="dual-v01"][data-app-page="home"] .dual-home-sample-atlas { margin-top: 56px; }

/* Native dialog: the existing test gate stays one deliberate click away. */
body:has(.dual-test-dialog[open]) { overflow: hidden; }
.dual-test-dialog { width: min(480px, calc(100vw - 36px)); max-height: calc(100svh - 48px); padding: 32px; border: 1px solid #e0e1e4; border-radius: 24px; background: #fff; color: #202124; font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif; }
.dual-test-dialog::backdrop { background: rgb(14 17 24 / 38%); }
.dual-test-dialog:not([open]) { display: none; }
.dual-test-close { display: block; margin: -8px -8px 14px auto; padding: 8px 12px; min-height: 44px; border: 0; border-radius: 8px; background: transparent; color: #55575b; font: inherit; font-size: 14px; cursor: pointer; }
.dual-test-dialog h2 { margin: 0 0 10px; font-size: 26px; font-weight: 700; line-height: 1.35; letter-spacing: -.02em; }
.dual-test-dialog > p { margin: 0 0 24px; color: #62656a; font-size: 15px; line-height: 1.6; }
body[data-experience="dual-v01"] .dual-test-dialog .dual-mode-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0; padding: 0; border: 0; }
body[data-experience="dual-v01"] .dual-test-dialog .dual-mode-switch button { display: grid; gap: 8px; align-content: start; min-height: 100px; border: 1px solid #c8cbd1; border-radius: 12px; padding: 16px 12px; background: #fff; color: #292b2e; box-shadow: none; transform: none; text-align: left; }
body[data-experience="dual-v01"] .dual-test-dialog .dual-mode-switch button.is-active { border-color: var(--dna-blue); background: #f0f4ff; }
body[data-experience="dual-v01"] .dual-test-dialog .dual-mode-switch button span { font-size: 18px; font-weight: 650; line-height: 1.3; }
body[data-experience="dual-v01"] .dual-test-dialog .dual-mode-switch button small { display: block; color: #55575b; font-size: 13px; font-weight: 400; line-height: 1.5; white-space: normal; overflow: visible; text-overflow: clip; }
body[data-experience="dual-v01"] .dual-test-dialog .dual-home-action { margin: 0; padding: 22px 0 0; }
body[data-experience="dual-v01"] .dual-test-dialog #dualStartButton { display: block; width: 100%; min-height: 48px; padding: 12px 20px; border: 0; border-radius: 999px; color: white; background: var(--dna-blue); font: inherit; font-size: 16px; font-weight: 600; box-shadow: none; cursor: pointer; }
body[data-experience="dual-v01"] .dual-test-dialog #dualStartButton::after { display: none; }
body[data-experience="dual-v01"] .dual-test-dialog #dualStartButton:disabled { opacity: .5; cursor: wait; }
body[data-experience="dual-v01"] .dual-test-dialog #dualGateNote { margin: 12px 0 0; color: #62656a; font-size: 13px; font-weight: 400; line-height: 1.6; text-align: center; }

@media (min-width: 900px) and (max-width: 1199px) {
  body[data-experience="dual-v01"][data-app-page="home"] main { padding-inline: 36px; }
  body[data-experience="dual-v01"][data-app-page="home"] #home :is(.field-primary-link, .minimal-test-link) { width: 176px; padding-inline: 14px 10px; gap: 8px; font-size: .875rem; }
  body[data-experience="dual-v01"][data-app-page="home"] #home .minimal-home-actions { gap: 10px; }
}
@media (max-width: 899px) {
  body[data-experience="dual-v01"][data-app-page="home"] main { max-width: 720px; padding: 0 24px 40px; }
  body[data-experience="dual-v01"][data-app-page="home"] #home .dual-home-hero { grid-template-columns: minmax(0, 1fr); grid-template-areas: "intro" "art"; gap: 24px; min-height: 0; padding: 36px 0 0; }
  body[data-experience="dual-v01"][data-app-page="home"] #home .field-home-intro { padding: 0; text-align: center; }
  body[data-experience="dual-v01"][data-app-page="home"] #home .field-home-label { font-size: .8125rem; }
  body[data-experience="dual-v01"][data-app-page="home"] #home .field-home-intro h1 { font-size: clamp(2.25rem, 9.6vw, 3.75rem); line-height: 1.25; margin: 22px 0 22px; }
  body[data-experience="dual-v01"][data-app-page="home"] #home .field-home-intro h1 .home-title-line:last-child { font-size: clamp(2.8rem, 12vw, 4.5rem); margin-top: 8px; }
  body[data-experience="dual-v01"][data-app-page="home"] #home .field-home-intro > p { font-size: 1rem; line-height: 1.8; }
  body[data-experience="dual-v01"][data-app-page="home"] #home .minimal-home-actions { gap: 10px; margin: 26px auto 0; max-width: 430px; }
  body[data-experience="dual-v01"][data-app-page="home"] #home :is(.field-primary-link, .minimal-test-link) { width: calc((100% - 10px) / 2); max-width: 206px; padding: 10px 12px; min-height: 50px; font-size: .875rem; gap: 8px; }
  .minimal-home-actions .home-action-arrow { flex-basis: 24px; width: 24px; height: 24px; }
  body[data-experience="dual-v01"][data-app-page="home"] #home .dual-home-hero-visual { width: min(92%, 350px); justify-self: center; }
  body[data-experience="dual-v01"][data-app-page="home"] #home .dual-home-hero .dna-home-mascot img { max-height: 360px; }
  .minimal-home-divider { gap: 10px; margin-top: 18px; padding-bottom: 10px; font-size: 12px; }
  body[data-experience="dual-v01"][data-app-page="home"] .dual-home-sample-atlas { margin-top: 40px; }
}
@media (max-width: 379px) {
  body[data-experience="dual-v01"][data-app-page="home"] main { padding-inline: 20px; }
  body[data-experience="dual-v01"][data-app-page="home"] #home .dual-home-hero-visual { width: 280px; max-width: 100%; }
  .dual-test-dialog { padding: 24px; }
}
@media (max-width: 359px) {
  body[data-experience="dual-v01"][data-app-page="home"] #home .minimal-home-actions { flex-direction: column; }
  body[data-experience="dual-v01"][data-app-page="home"] #home :is(.field-primary-link, .minimal-test-link) { width: 224px; max-width: 100%; }
}
@media (min-width: 900px) and (max-height: 800px) {
  body[data-experience="dual-v01"][data-app-page="home"] #home .dual-home-hero { min-height: calc(100svh - 152px); padding-top: 28px; }
  body[data-experience="dual-v01"][data-app-page="home"] #home .field-home-intro h1 { margin-block: 20px 22px; }
  body[data-experience="dual-v01"][data-app-page="home"] #home .minimal-home-actions { margin-top: 28px; }
  .minimal-home-divider { padding-bottom: 12px; }
}
