/* =========================================================
   DMARC 航海实验室 · styles
   Palette: navy #0b1f3a · teal #1aa6a6 · cream #f7f1e3 · coral #e8604c
   ========================================================= */

:root {
  --navy: #0b1f3a;
  --navy-2: #122c4f;
  --navy-3: #07182e;
  --teal: #1aa6a6;
  --teal-dark: #0b7d7d;
  --teal-soft: #8fd6d2;
  --teal-wash: #e4f5f3;
  --cream: #f7f1e3;
  --cream-2: #f2ead8;
  --cream-3: #fffaf0;
  --cream-line: #d8cbb0;
  --coral: #e8604c;
  --coral-dark: #b83b29;
  --coral-wash: #ffe7e1;
  --gold: #e9b44c;
  --ink: #0b1f3a;
  --muted: #5b6b7c;
  --muted-2: #7b8797;
  --shadow: 0 18px 44px rgba(11, 31, 58, .12);
  --shadow-sm: 0 6px 18px rgba(11, 31, 58, .09);
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", Roboto, Helvetica, Arial, sans-serif;
  --radius: 16px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  background-image:
    radial-gradient(rgba(11, 31, 58, .045) 1px, transparent 1px),
    radial-gradient(rgba(26, 166, 166, .04) 1px, transparent 1px);
  background-size: 34px 34px, 34px 34px;
  background-position: 0 0, 17px 17px;
  overflow-x: hidden;
}

h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--teal-dark); }

::selection { background: var(--teal); color: var(--navy); }

:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 2px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--coral);
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
  transition: top .18s ease;
}
.skip-link:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding-inline: clamp(18px, 4vw, 32px);
}

code {
  font-family: var(--mono);
  font-size: .9em;
  background: rgba(11, 31, 58, .07);
  border-radius: 4px;
  padding: .1em .38em;
}

/* ============================ header ============================ */

.site-head {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(11, 31, 58, .94);
  border-bottom: 1px solid rgba(143, 214, 210, .18);
  backdrop-filter: blur(8px);
}

.head-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 62px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--cream);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: .01em;
}
.brand-mark { width: 30px; height: 30px; color: var(--teal-soft); flex: none; }
.brand-text em { font-style: normal; color: var(--teal-soft); font-weight: 600; }
.brand:hover .brand-mark { color: var(--gold); }

.head-nav { display: flex; align-items: center; gap: 4px; }
.head-nav a {
  color: rgba(247, 241, 227, .82);
  text-decoration: none;
  font-size: 13.5px;
  padding: 9px 12px;
  border-radius: 999px;
  transition: background .18s ease, color .18s ease;
}
.head-nav a:hover { color: var(--navy); background: var(--teal-soft); }

/* ============================ hero ============================ */

.hero {
  position: relative;
  background:
    radial-gradient(1100px 480px at 78% -10%, #1c4a63 0%, rgba(28, 74, 99, 0) 62%),
    linear-gradient(180deg, #0b1f3a 0%, #0d2443 62%, #0b1f3a 100%);
  color: var(--cream);
  padding: 46px 0 112px;
  overflow: hidden;
  isolation: isolate;
}

.hero-sky {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.hero-sky svg { width: 100%; height: 100%; }

.hero-compass {
  transform-box: fill-box;
  transform-origin: center;
  animation: spinSlow 120s linear infinite;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
  padding-top: 22px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--teal-soft);
  border: 1px solid rgba(143, 214, 210, .38);
  background: rgba(143, 214, 210, .07);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal-soft);
  box-shadow: 0 0 0 0 rgba(143, 214, 210, .6);
  animation: pulseDot 2.6s ease-out infinite;
}

.hero h1 {
  font-size: clamp(2.7rem, 6.2vw, 4.5rem);
  line-height: 1.04;
  letter-spacing: -.025em;
  font-weight: 800;
  margin-bottom: 22px;
}
.hl-teal { color: var(--teal-soft); }
.hl-dot { color: var(--coral); }

.hero-lead {
  max-width: 33em;
  color: rgba(247, 241, 227, .86);
  font-size: clamp(15px, 1.35vw, 17px);
  margin-bottom: 28px;
}
.hero-lead strong { color: var(--cream); border-bottom: 2px solid rgba(26, 166, 166, .7); }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 34px; }

.hero-stats {
  display: flex;
  gap: clamp(20px, 4vw, 40px);
  border-top: 1px dashed rgba(247, 241, 227, .22);
  padding-top: 18px;
  max-width: 430px;
}
.hero-stats li { display: flex; flex-direction: column; line-height: 1.2; }
.hero-stats strong { font-size: 1.7rem; color: var(--gold); font-weight: 800; letter-spacing: -.02em; }
.hero-stats span { font-size: 11.5px; letter-spacing: .1em; color: rgba(247, 241, 227, .62); margin-top: 4px; }

.hero-viz { position: relative; }

.viz-frame {
  background: var(--cream);
  border: 2px solid var(--navy);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 10px 12px 0 rgba(26, 166, 166, .32), 0 22px 44px rgba(0, 0, 0, .3);
  transform: rotate(-1.2deg);
}

.viz-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 14px;
  background: var(--cream-2);
  border-bottom: 2px solid var(--navy);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--navy);
}
.viz-lights { display: inline-flex; gap: 5px; }
.viz-lights i { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }
.viz-lights i:nth-child(2) { background: var(--gold); }
.viz-lights i:nth-child(3) { background: var(--coral); }

.viz-svg { width: 100%; height: auto; }

.hero-waves {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  width: 100%;
  height: 74px;
}

/* hero mini animation */
.hv-boat {
  transform-box: fill-box;
  transform-origin: 50% 90%;
  animation: hvBob 5s ease-in-out infinite;
}
.hv-beam {
  transform-box: fill-box;
  transform-origin: 0% 50%;
  animation: hvBeam 6s ease-in-out infinite;
}
.hv-wave {
  animation: hvDrift 9s linear infinite;
}
.hv-wave-b { animation-duration: 13s; animation-direction: reverse; }

/* ============================ buttons ============================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 2px solid transparent;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, background .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-teal {
  background: var(--teal);
  color: var(--navy);
  box-shadow: 0 6px 0 rgba(7, 24, 46, .35);
}
.btn-teal:hover { background: #35bcb8; }

.btn-ghost {
  border-color: rgba(247, 241, 227, .45);
  color: var(--cream);
  background: transparent;
}
.btn-ghost:hover { background: rgba(247, 241, 227, .1); border-color: var(--cream); }

.btn-ghost-dark {
  border-color: var(--navy);
  color: var(--navy);
  background: transparent;
}
.btn-ghost-dark:hover { background: rgba(11, 31, 58, .07); }

.btn-coral {
  background: var(--coral);
  color: var(--navy);
  box-shadow: 0 5px 0 rgba(7, 24, 46, .3);
}
.btn-coral:hover { background: #f3765f; }

.btn-sm { padding: 8px 16px; font-size: 13px; }

/* ============================ sections ============================ */

main { display: block; }

.section {
  padding: clamp(52px, 8vw, 88px) 0;
  scroll-margin-top: 80px;
}

.section-head { max-width: 760px; margin-bottom: 34px; }
.kicker {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--teal-dark);
  margin-bottom: 10px;
}
.section-head h2 {
  font-size: clamp(1.75rem, 3.6vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -.02em;
  color: var(--navy);
  margin-bottom: 12px;
}
.section-lead {
  color: var(--muted);
  font-size: 15.5px;
  max-width: 60em;
}
.section-lead code { color: var(--navy); }

/* ============================ player ============================ */

.player {
  background: var(--cream-3);
  border: 2px solid var(--navy);
  border-radius: 20px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.scene {
  display: none;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  min-height: 440px;
}
.scene.is-active { display: grid; }
.scene[hidden] { display: none !important; }

.scene-art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 22px 20px;
  background-color: var(--cream-2);
  background-image:
    radial-gradient(rgba(11, 31, 58, .08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 250, 240, .55), rgba(242, 234, 216, .1));
  background-size: 18px 18px, 100% 100%;
  border-right: 1.5px solid var(--cream-line);
  overflow: hidden;
}
.scene-art::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px dashed rgba(11, 31, 58, .14);
  border-radius: 14px;
  pointer-events: none;
}

.scene-tag {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 2;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .12em;
  color: var(--navy);
  background: rgba(255, 250, 240, .92);
  border: 1px solid var(--cream-line);
  padding: 3px 9px;
  border-radius: 999px;
}

.scene-svg {
  width: 100%;
  max-width: 560px;
  height: auto;
  position: relative;
  z-index: 1;
  overflow: visible;
}

.scene-copy {
  padding: clamp(24px, 3.4vw, 42px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}

.scene-kicker {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--coral-dark);
}
.scene-copy h3 {
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  line-height: 1.22;
  letter-spacing: -.015em;
  color: var(--navy);
  text-wrap: balance;
}
.nowrap { white-space: nowrap; }

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.scene-copy > p {
  font-size: 14.8px;
  color: #34465a;
  max-width: 40em;
}
.scene-copy code { color: var(--navy); background: rgba(26, 166, 166, .1); }

.scene-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 2px 0;
}
.scene-chips li {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--teal-dark);
  background: var(--teal-wash);
  border: 1px solid rgba(26, 166, 166, .35);
  padding: 3px 10px;
  border-radius: 999px;
}

.scene-note {
  display: flex;
  gap: 9px;
  font-size: 12.8px;
  color: var(--muted);
  background: #fff;
  border-left: 3px solid var(--gold);
  padding: 9px 12px;
  border-radius: 0 8px 8px 0;
}
.note-mark {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  font-size: 11px;
  font-weight: 800;
  font-family: var(--mono);
}

.scene-cta {
  align-self: flex-start;
  font-size: 13px;
  font-weight: 700;
  color: var(--teal-dark);
  text-decoration: none;
  border-bottom: 2px solid rgba(26, 166, 166, .4);
  padding-bottom: 2px;
}
.scene-cta:hover { border-bottom-color: var(--teal-dark); }
.scene-cta-btn { align-self: flex-start; margin-top: 4px; }

.player-bar {
  display: grid;
  grid-template-columns: auto minmax(120px, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 12px 16px;
  background: var(--cream-3);
  border-top: 1.5px solid var(--cream-line);
}
.player-controls { display: flex; align-items: center; gap: 8px; }

.icon-btn {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--cream-line);
  border-radius: 50%;
  background: #fff;
  color: var(--navy);
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, transform .15s ease;
}
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn:hover { border-color: var(--teal); background: var(--teal-wash); }
.icon-btn:active { transform: scale(.96); }

.play-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 18px 0 12px;
  border-radius: 999px;
  border: 1.5px solid var(--navy);
  background: var(--teal);
  color: var(--navy);
  font-weight: 700;
  font-size: 13.5px;
  cursor: pointer;
  transition: background .18s ease, transform .15s ease;
}
.play-btn:hover { background: #35bcb8; }
.play-btn:active { transform: scale(.98); }
.play-btn[aria-pressed="true"] { background: var(--cream-2); }
.play-icon { display: grid; place-items: center; width: 22px; height: 22px; }
.play-icon svg { width: 18px; height: 18px; grid-area: 1 / 1; }
.play-btn .ico-pause { display: none; }
.play-btn[aria-pressed="true"] .ico-play { display: none; }
.play-btn[aria-pressed="true"] .ico-pause { display: block; }

.player-progress { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.progress-track {
  height: 8px;
  border-radius: 999px;
  background: #e6dbc4;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), #48c9c4);
}
.player-hint { font-size: 10.5px; color: var(--muted); letter-spacing: .02em; }

.player-meta { display: flex; align-items: center; gap: 14px; }
.player-counter {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  min-width: 42px;
  text-align: right;
}

.dots { display: flex; align-items: center; gap: 2px; }
.dot {
  position: relative;
  width: 24px;
  height: 26px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.dot::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 9px;
  height: 9px;
  margin: -4.5px 0 0 -4.5px;
  border-radius: 50%;
  background: #cdbfa3;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.dot:hover::before { background: var(--teal-soft); transform: scale(1.2); }
.dot[aria-current="step"]::before {
  background: var(--teal);
  box-shadow: 0 0 0 3px rgba(26, 166, 166, .22);
  transform: scale(1.15);
}

/* ============================ recap strip ============================ */

.recap-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 26px;
}
.recap-card {
  position: relative;
  background: var(--cream-3);
  border: 1.5px solid var(--cream-line);
  border-radius: 14px;
  padding: 20px 20px 18px;
  box-shadow: var(--shadow-sm);
}
.recap-num {
  position: absolute;
  top: 16px;
  right: 18px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--teal-dark);
  border: 1px solid rgba(26, 166, 166, .4);
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
}
.recap-card h3 { font-size: 15.5px; margin-bottom: 6px; }
.recap-card p { font-size: 13px; color: var(--muted); }

/* ============================ generator ============================ */

.generator-section {
  background:
    linear-gradient(180deg, rgba(26, 166, 166, .06), rgba(26, 166, 166, 0) 40%),
    var(--cream-2);
  border-top: 1.5px solid var(--cream-line);
  border-bottom: 1.5px solid var(--cream-line);
}

.generator-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  gap: clamp(20px, 3vw, 32px);
  align-items: start;
}

.gen-form {
  background: var(--cream-3);
  border: 1.5px solid var(--cream-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: clamp(20px, 3vw, 30px);
}

.form-group {
  border: 0;
  margin: 0 0 24px;
  padding: 0 0 22px;
  border-bottom: 1.5px dashed var(--cream-line);
}
.form-group:last-of-type { border-bottom: 0; padding-bottom: 6px; margin-bottom: 8px; }
.form-group legend {
  width: 100%;
  padding: 0 0 12px;
  margin-bottom: 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--teal-dark);
  border-bottom: 2px solid rgba(26, 166, 166, .28);
}

.field { margin-bottom: 18px; }
.field:last-child { margin-bottom: 0; }
.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.field-row + .field { margin-top: 18px; }
.field label,
.label-like {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}
.req {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--coral-dark);
  background: var(--coral-wash);
  border: 1px solid rgba(232, 96, 76, .45);
  padding: 1px 7px;
  border-radius: 999px;
  vertical-align: 1px;
  margin-left: 4px;
}
.hint {
  font-size: 11px;
  font-weight: 500;
  color: var(--muted-2);
  margin-left: 4px;
}

input[type="text"],
input[type="email"],
input[type="number"],
select {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--cream-line);
  border-radius: 9px;
  background: #fffdf7;
  font-size: 14px;
  color: var(--navy);
  transition: border-color .15s ease, box-shadow .15s ease;
}
input::placeholder { color: #a79b84; }
input[type="text"]:hover,
input[type="number"]:hover,
select:hover { border-color: #bfb094; }
input[type="text"]:focus,
input[type="number"]:focus,
select:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(26, 166, 166, .16);
}
input[aria-invalid="true"] { border-color: var(--coral); box-shadow: 0 0 0 3px rgba(232, 96, 76, .13); }

select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--navy) 50%), linear-gradient(135deg, var(--navy) 50%, transparent 50%);
  background-position: calc(100% - 17px) 52%, calc(100% - 12px) 52%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 34px;
}

.tip {
  font-size: 11.8px;
  line-height: 1.5;
  color: var(--muted);
  margin-top: 5px;
}
.tip code { background: rgba(11, 31, 58, .06); }

.field-msg {
  font-size: 11.8px;
  margin-top: 5px;
  min-height: 0;
  color: var(--coral-dark);
}
.field-msg:empty { display: none; }
.field-msg.ok { color: var(--teal-dark); }

.pct-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 74px 14px;
  align-items: center;
  gap: 10px;
}
.pct-suffix { font-size: 13px; color: var(--muted); }
input[type="range"] {
  width: 100%;
  height: 26px;
  accent-color: var(--teal);
  background: transparent;
  cursor: pointer;
}
input[type="number"] { -moz-appearance: textfield; }
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button { height: 22px; }

.seg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  background: #f1e8d5;
  border: 1.5px solid var(--cream-line);
  border-radius: 10px;
  padding: 4px;
}
.seg-opt {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 8px;
  border-radius: 7px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}
.seg-opt input { accent-color: var(--teal); width: 15px; height: 15px; margin: 0; }
.seg-opt:has(input:checked) {
  background: var(--teal-wash);
  color: var(--navy);
  box-shadow: inset 0 0 0 1px rgba(26, 166, 166, .45), 0 1px 4px rgba(11, 31, 58, .1);
}
.seg-opt:hover { color: var(--navy); }

.check-row { display: flex; flex-wrap: wrap; gap: 8px; }
.check-opt {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border: 1.5px solid var(--cream-line);
  border-radius: 8px;
  background: #fffdf7;
  font-size: 12.5px;
  color: var(--muted);
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.check-opt input { accent-color: var(--teal); width: 15px; height: 15px; margin: 0; }
.check-opt:has(input:checked) {
  border-color: var(--teal);
  background: var(--teal-wash);
  color: var(--navy);
  font-weight: 600;
}

.mini-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 9px; }
.chip-btn {
  border: 1px dashed #bfb094;
  background: transparent;
  color: var(--teal-dark);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.chip-btn:hover { background: var(--teal-wash); border-color: var(--teal); }

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding-top: 4px;
}
.form-note { font-size: 12px; color: var(--teal-dark); }

/* ============================ preview ============================ */

.preview {
  position: sticky;
  top: 84px;
  background:
    radial-gradient(240px 200px at 100% 0%, rgba(26, 166, 166, .18), rgba(26, 166, 166, 0) 72%),
    linear-gradient(170deg, #122c4f 0%, #0b1f3a 62%, #081a31 100%);
  color: var(--cream);
  border-radius: var(--radius);
  padding: clamp(20px, 2.6vw, 26px);
  box-shadow: 0 20px 46px rgba(11, 31, 58, .28);
  overflow: hidden;
}
.preview::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--teal), var(--gold), var(--coral));
}
.preview-head {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 20px;
}
.preview-head h3 { font-size: 15px; letter-spacing: .02em; }
.live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--teal-soft);
  box-shadow: 0 0 0 0 rgba(143, 214, 210, .55);
  animation: pulseDot 2.4s ease-out infinite;
}
.preview-badge {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .14em;
  border: 1px solid rgba(143, 214, 210, .45);
  color: var(--teal-soft);
  padding: 2px 8px;
  border-radius: 4px;
}

.rec-block { margin-bottom: 18px; }
.rec-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(247, 241, 227, .74);
  margin-bottom: 6px;
}
.rec-len { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0; text-transform: none; }
.rec-len.over { color: var(--coral); }

.rec-line {
  margin: 0;
  padding: 11px 12px;
  background: var(--navy-3);
  border: 1px solid rgba(143, 214, 210, .22);
  border-radius: 8px;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--teal-soft);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  transition: border-color .18s ease;
}
.rec-line code {
  background: none;
  padding: 0;
  color: inherit;
  font-size: inherit;
  font-family: inherit;
}
.rec-value { color: #fdf6e6; }
.rec-help { font-size: 10.8px; color: rgba(247, 241, 227, .68); margin-top: 5px; }
.rec-help code { background: rgba(247, 241, 227, .1); color: rgba(247, 241, 227, .8); }

.is-placeholder { opacity: .55; font-style: italic; }
.is-placeholder code { font-style: italic; }

.link-btn {
  border: 0;
  background: none;
  color: var(--teal-soft);
  font-size: 11px;
  text-transform: none;
  letter-spacing: 0;
  cursor: pointer;
  padding: 2px 0;
  border-bottom: 1px solid transparent;
}
.link-btn:hover { border-bottom-color: var(--teal-soft); }

.btn-copy { width: 100%; margin-top: 10px; }
.copy-status {
  font-size: 11.5px;
  color: var(--teal-soft);
  min-height: 1.2em;
  margin-top: 6px;
}
.copy-status.err { color: #ffb4a6; }

.rec-warn {
  font-size: 11px;
  color: #ffc0b4;
  margin-top: 6px;
  padding-left: 14px;
  position: relative;
}
.rec-warn::before {
  content: "!";
  position: absolute;
  left: 0;
  top: 2px;
  width: 10px;
  height: 10px;
  font-size: 9px;
  font-weight: 800;
  line-height: 10px;
  text-align: center;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.warn-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.warn-list:empty { display: none; }
.warn-list li {
  font-size: 11.5px;
  color: #ffcfc5;
  background: rgba(232, 96, 76, .14);
  border: 1px solid rgba(232, 96, 76, .4);
  border-radius: 7px;
  padding: 6px 10px;
  line-height: 1.45;
}
.warn-list li.ok {
  color: var(--teal-soft);
  background: rgba(26, 166, 166, .12);
  border-color: rgba(26, 166, 166, .35);
}

.preview-foot {
  border-top: 1px dashed rgba(247, 241, 227, .2);
  padding-top: 12px;
  font-size: 10.8px;
  line-height: 1.55;
  color: rgba(247, 241, 227, .68);
}
.preview-foot code {
  background: rgba(247, 241, 227, .1);
  color: rgba(247, 241, 227, .78);
  font-size: .95em;
}
.preview-tip { margin-top: 6px; }

/* ============================ howto ============================ */

.howto-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 26px;
}
.howto-card {
  background: var(--cream-3);
  border: 1.5px solid var(--cream-line);
  border-radius: 14px;
  padding: 20px;
  box-shadow: var(--shadow-sm);
}
.howto-step {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .16em;
  color: var(--cream);
  background: var(--navy);
  padding: 3px 9px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.howto-card h3 { font-size: 15.5px; margin-bottom: 6px; }
.howto-card p { font-size: 13px; color: var(--muted); }

.checklist {
  background: linear-gradient(160deg, #fffdf7, #fbf5e8);
  border: 1.5px solid var(--cream-line);
  border-radius: var(--radius);
  padding: clamp(20px, 3vw, 28px);
  box-shadow: var(--shadow-sm);
}
.checklist-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
}
.checklist-head h3 { font-size: 17px; }
.checklist-count {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--teal-dark);
  background: var(--teal-wash);
  border: 1px solid rgba(26, 166, 166, .35);
  padding: 2px 10px;
  border-radius: 999px;
}
.check-list { display: grid; gap: 10px; }
.check-list label {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 11px 14px;
  border: 1.5px solid var(--cream-line);
  border-radius: 10px;
  background: #fff;
  font-size: 13.5px;
  color: #34465a;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.check-list label:hover { border-color: #bfb094; }
.check-list input {
  accent-color: var(--teal);
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  flex: none;
}
.check-list input:checked + span { color: var(--muted-2); text-decoration: line-through; text-decoration-color: rgba(26, 166, 166, .6); }
.check-list label:has(input:checked) { background: var(--teal-wash); border-color: rgba(26, 166, 166, .5); }
.checklist-note { font-size: 11.5px; color: var(--muted-2); margin-top: 12px; }

/* ============================ footer ============================ */

.site-foot {
  background: var(--navy);
  color: rgba(247, 241, 227, .7);
  padding: 30px 0 34px;
  border-top: 4px solid var(--teal);
}
.foot-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.foot-brand { display: flex; align-items: center; gap: 12px; }
.foot-brand svg { width: 34px; height: 34px; color: var(--teal-soft); flex: none; }
.foot-brand strong { color: var(--cream); font-size: 14px; }
.foot-brand span { font-size: 11px; letter-spacing: .04em; }
.foot-note { font-size: 11.5px; max-width: 42em; }

/* ============================ animation library ============================ */

.scene-svg [class^="s"],
.scene-svg [class*=" s"] {
  transform-box: fill-box;
  transform-origin: center;
}
.scene-svg text { font-family: var(--sans); }

@keyframes spinSlow { to { transform: rotate(360deg); } }
@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(143, 214, 210, .55); }
  70% { box-shadow: 0 0 0 9px rgba(143, 214, 210, 0); }
  100% { box-shadow: 0 0 0 0 rgba(143, 214, 210, 0); }
}
@keyframes hvBob {
  0%, 100% { transform: translateY(0) rotate(-1.2deg); }
  50% { transform: translateY(-7px) rotate(1.4deg); }
}
@keyframes hvBeam {
  0%, 100% { transform: rotate(-10deg); opacity: .75; }
  50% { transform: rotate(12deg); opacity: 1; }
}
@keyframes hvDrift { to { stroke-dashoffset: -240; } }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes popIn {
  0% { opacity: 0; transform: scale(.55); }
  70% { opacity: 1; transform: scale(1.06); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes softPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.045); }
}
@keyframes sway {
  0%, 100% { transform: rotate(-2deg); }
  50% { transform: rotate(2.2deg); }
}
@keyframes floaty {
  0%, 100% { transform: translateY(-5px); }
  50% { transform: translateY(5px); }
}
@keyframes dashFlow { to { stroke-dashoffset: -70; } }
@keyframes drawLine { from { stroke-dashoffset: 60; } to { stroke-dashoffset: 0; } }
@keyframes blink { 0%, 100% { opacity: 1; } 45% { opacity: .25; } }
@keyframes riseFade {
  0% { opacity: 0; transform: translateY(10px); }
  15%, 75% { opacity: 1; }
  100% { opacity: 1; transform: translateY(0); }
}

/* --- scene 1 --- */
.scene.is-active .scene-copy { animation: fadeUp .55s ease both; }
.scene.is-active .s1-env { animation: sway 4.6s ease-in-out infinite; }
.scene.is-active .s1-tag { animation: floaty 3.2s ease-in-out infinite; }
.scene.is-active .s1-figure { animation: fadeIn .9s ease both; }
.scene.is-active .s1-x {
  animation: popIn .65s cubic-bezier(.2, .9, .3, 1.35) .35s both,
             softPulse 3.6s ease-in-out 1.5s infinite;
}
.s1-xline { stroke-dasharray: 48; }
.scene.is-active .s1-xline { animation: drawLine .5s ease .8s both; }

/* --- scene 2 --- */
@keyframes s2Travel {
  0% { transform: translate(0, 0); opacity: .15; }
  10% { opacity: 1; }
  52% { transform: translate(118px, -30px); }
  74% { transform: translate(118px, -30px); }
  90% { opacity: 0; }
  100% { transform: translate(0, 0); opacity: .15; }
}
.scene.is-active .s2-env { animation: s2Travel 7.5s ease-in-out infinite; }
.scene.is-active .s2-q { animation: floaty 3.8s ease-in-out infinite; }
.scene.is-active .s2-route { stroke-dasharray: 7 7; animation: dashFlow 1.5s linear infinite; }
.scene.is-active .s2-glass { animation: s2Glass 5.2s ease-in-out infinite; }
.scene.is-active .s2-led { animation: blink 2.4s ease-in-out infinite; }
.scene.is-active .s2-led-b { animation-delay: .5s; }
.scene.is-active .s2-led-c { animation-delay: 1s; }
.scene.is-active .s2-signal { animation: blink 2.8s ease-in-out infinite; }
.scene.is-active .s2-signal-b { animation-delay: .6s; }
.scene.is-active .s2-boom { animation: s2Boom 5.2s ease-in-out infinite; }
@keyframes s2Glass {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(-18px, 12px) rotate(-9deg); }
}
@keyframes s2Boom {
  0%, 100% { transform: rotate(0deg); }
  45% { transform: rotate(-7deg); }
}

/* --- scene 3 --- */
@keyframes s3Sail {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(116px, -4px) rotate(1.2deg); }
}
.scene.is-active .s3-boat { animation: s3Sail 9s ease-in-out infinite; }
.scene.is-active .s3-wave { animation: hvDrift 12s linear infinite; }
.scene.is-active .s3-wave-b { animation-direction: reverse; animation-duration: 16s; }
.scene.is-active .s3-cross { animation: softPulse 2.6s ease-in-out infinite; }

/* --- scene 4 --- */
@keyframes s4Stamp {
  0% { transform: translateY(-72px) rotate(-9deg); opacity: 0; }
  10% { opacity: 1; }
  30% { transform: translateY(2px) rotate(0deg) scale(1.02, .97); }
  38% { transform: translateY(0) rotate(0deg) scale(1); }
  62% { transform: translateY(0) rotate(0deg) scale(1); }
  78% { transform: translateY(-72px) rotate(-9deg); opacity: 0; }
  100% { transform: translateY(-72px) rotate(-9deg); opacity: 0; }
}
@keyframes s4Seal {
  0%, 28% { transform: scale(1); }
  34% { transform: scale(1.09, .9); }
  42%, 100% { transform: scale(1); }
}
@keyframes s4Ring {
  0%, 27% { transform: scale(.75); opacity: 0; }
  33% { opacity: .65; }
  55% { transform: scale(1.55); opacity: 0; }
  100% { transform: scale(.75); opacity: 0; }
}
.scene.is-active .s4-stamp { animation: s4Stamp 5.6s ease-in-out infinite; }
.scene.is-active .s4-seal { animation: s4Seal 5.6s ease-in-out infinite; }
.scene.is-active .s4-ring { animation: s4Ring 5.6s ease-out infinite; }
.s4-sig { stroke-dasharray: 120; }
.scene.is-active .s4-sig { animation: drawLine 1.3s ease .3s both; }

/* --- scene 5 --- */
.s5-link { stroke-dasharray: 60; }
.scene.is-active .s5-link { animation: drawLine 1s ease .15s both; }
.scene.is-active .s5-check { animation: popIn .5s cubic-bezier(.2, .9, .3, 1.35) .9s both; }
.scene.is-active .s5-active { animation: softPulse 3s ease-in-out 1.6s infinite; }

/* --- scene 6 --- */
.scene-svg .s6-beam,
.scene-svg .s7-beam { transform-origin: 100% 50%; }

@keyframes s6Sweep {
  0%, 100% { transform: rotate(-9deg); opacity: .8; }
  50% { transform: rotate(10deg); opacity: 1; }
}
@keyframes s6ReturnA {
  0% { transform: translate(30px, 0); opacity: 0; }
  8% { opacity: 1; }
  70% { transform: translate(-120px, -2px); opacity: 1; }
  84% { opacity: 0; }
  100% { transform: translate(30px, 0); opacity: 0; }
}
.scene.is-active .s6-beam { animation: s6Sweep 6.5s ease-in-out infinite; }
.scene.is-active .s6-boat-a { animation: s6ReturnA 8.5s linear infinite; }
.scene.is-active .s6-boat-b { animation: s6ReturnA 8.5s linear infinite; animation-delay: -3.4s; }
.scene.is-active .s6-lamp { animation: softPulse 4s ease-in-out infinite; }
.scene.is-active .s6-wave { animation: hvDrift 11s linear infinite; }

/* --- scene 7 --- */
.scene.is-active .s7-step-1 { animation: popIn .55s ease .1s both; }
.scene.is-active .s7-step-2 { animation: popIn .55s ease .32s both; }
.scene.is-active .s7-step-3 { animation: popIn .55s ease .54s both, softPulse 3.4s ease-in-out 1.4s infinite; }
.scene.is-active .s7-beam { animation: s6Sweep 5.8s ease-in-out infinite; }
.scene.is-active .s7-arrow { animation: dashFlow 1.8s linear infinite; }

/* --- scene 8 --- */
.scene.is-active .s8-chip-a { animation: popIn .55s cubic-bezier(.2, .9, .3, 1.3) .1s both; }
.scene.is-active .s8-chip-b { animation: popIn .55s cubic-bezier(.2, .9, .3, 1.3) .24s both; }
.scene.is-active .s8-chip-c { animation: popIn .55s cubic-bezier(.2, .9, .3, 1.3) .38s both; }
.scene.is-active .s8-ray { animation: dashFlow 2.2s linear infinite; }
.scene.is-active .s8-glow { animation: s8Glow 4.2s ease-in-out infinite; }
.scene.is-active .s8-shield { animation: s8Float 5.2s ease-in-out infinite; }
.s8-check { stroke-dasharray: 110; }
.scene.is-active .s8-check { animation: drawLine 1s ease .55s both; }
@keyframes s8Glow {
  0%, 100% { opacity: .35; transform: scale(1); }
  50% { opacity: .85; transform: scale(1.08); }
}
@keyframes s8Float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* ============================ responsive ============================ */

@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: 620px; }
  .hero-viz { max-width: 520px; transform: rotate(-.6deg); }
  .scene { grid-template-columns: 1fr; }
  .scene-art { border-right: 0; border-bottom: 1.5px solid var(--cream-line); }
  .scene-svg { max-width: 500px; }
  .generator-grid { grid-template-columns: 1fr; }
  .preview { position: static; }
  .howto-grid { grid-template-columns: 1fr; }
}

@media (max-width: 780px) {
  .head-nav a { padding: 8px 9px; font-size: 12.5px; }
  .brand-text em { display: none; }
  .player-bar {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "controls counter"
      "progress progress"
      "dots dots";
    gap: 9px 14px;
    padding: 12px 14px;
  }
  .player-controls { grid-area: controls; }
  .player-progress { grid-area: progress; }
  .player-meta { display: contents; }
  .player-counter { grid-area: counter; justify-self: end; }
  .player-hint { display: none; }
  .dots { grid-area: dots; justify-content: center; flex-wrap: wrap; gap: 0; }
  .dot { width: 26px; height: 28px; }
  .recap-strip { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  body { font-size: 15.5px; }
  .hero { padding: 36px 0 92px; }
  .hero h1 { font-size: clamp(2.4rem, 11vw, 3.2rem); }
  .hero-stats { gap: 20px; }
  .viz-frame { transform: none; box-shadow: 6px 8px 0 rgba(26, 166, 166, .3); }
  .scene-art { padding: 24px 10px 14px; }
  .scene-copy { padding: 22px 20px 26px; }
  .field-row { grid-template-columns: 1fr; gap: 14px; }
  .pct-row { grid-template-columns: minmax(0, 1fr) 66px 12px; }
  .gen-form { padding: 18px 16px; }
  .preview { padding: 18px; }
  .foot-inner { flex-direction: column; align-items: flex-start; }
  .section { padding: 48px 0; }
}

@media (max-width: 620px) {
  .scene-svg .art-caption { display: none; }
}

@media (max-width: 420px) {
  .head-nav { gap: 0; }
  .head-nav a { padding: 8px 7px; }
  .brand-mark { width: 26px; height: 26px; }
  .brand { font-size: 13px; }
  .check-row { gap: 6px; }
  .check-opt { padding: 6px 9px; font-size: 12px; }
  .player-counter { font-size: 11px; min-width: 36px; }
  .dot { width: 24px; }
}

/* ============================ explain existing ============================ */

.explain-section {
  background:
    linear-gradient(180deg, rgba(11, 31, 58, .03), transparent 35%),
    var(--cream);
  border-top: 1.5px solid var(--cream-line);
}

.explain-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2.5vw, 28px);
  margin-bottom: 22px;
}

.explain-card {
  background: var(--cream-3);
  border: 1.5px solid var(--cream-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: clamp(18px, 2.5vw, 26px);
}

.explain-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  color: var(--navy);
}

.explain-card .tip { margin: 0 0 12px; }

.explain-card textarea,
.explain-card input[type="text"] {
  width: 100%;
  border: 1.5px solid var(--cream-line);
  border-radius: 12px;
  background: #fff;
  color: var(--navy);
  font: 500 13.5px/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  padding: 12px 14px;
  resize: vertical;
  min-height: 110px;
}

.explain-card input[type="text"] {
  min-height: 0;
  font-family: inherit;
  font-size: 14.5px;
}

.explain-card textarea:focus,
.explain-card input[type="text"]:focus {
  outline: 2px solid rgba(26, 166, 166, .45);
  border-color: var(--teal);
}

.explain-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.lookup-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin-top: 6px;
}

.dns-note {
  margin: 10px 0 0;
  font-size: 12.5px;
  color: var(--muted);
}

.lookup-status {
  min-height: 1.3em;
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--teal-dark);
  font-weight: 600;
}
.lookup-status.is-error { color: var(--coral-dark); }
.lookup-status.is-loading { color: var(--muted); }

.explain-result {
  background: var(--cream-3);
  border: 1.5px solid var(--cream-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: clamp(18px, 2.5vw, 28px);
}

.explain-result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.explain-result-head h3 { margin: 0; font-size: 1.05rem; }

.explain-raw-out {
  margin: 0 0 14px;
  padding: 12px 14px;
  background: #0b1f3a;
  color: #f7f1e3;
  border-radius: 12px;
  font: 500 12.5px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-x: auto;
}

.explain-prose {
  display: grid;
  gap: 12px;
}
.explain-prose .lead {
  margin: 0;
  font-size: 15px;
  color: var(--navy);
  font-weight: 650;
}
.explain-prose .tag-block {
  border: 1px solid var(--cream-line);
  border-radius: 14px;
  padding: 12px 14px;
  background: rgba(255,255,255,.55);
}
.explain-prose .tag-block h4 {
  margin: 0 0 6px;
  font-size: 14px;
  color: var(--teal-dark);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.explain-prose .tag-block p { margin: 0; font-size: 13.5px; color: var(--muted); }
.explain-prose .warn-block {
  border-left: 3px solid var(--coral);
  background: var(--coral-wash);
  border-radius: 0 12px 12px 0;
  padding: 10px 14px;
  color: #6a2c1c;
  font-size: 13.5px;
}
.explain-prose .ok-block {
  border-left: 3px solid var(--teal);
  background: rgba(26, 166, 166, .1);
  border-radius: 0 12px 12px 0;
  padding: 10px 14px;
  color: var(--teal-dark);
  font-size: 13.5px;
}
.explain-prose ul {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--muted);
  font-size: 13.5px;
}

@media (max-width: 900px) {
  .explain-grid { grid-template-columns: 1fr; }
  .lookup-row { grid-template-columns: 1fr; }
}

/* ============================ reduced motion ============================ */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .hero-compass,
  .hv-boat,
  .hv-beam,
  .hv-wave,
  .pulse-dot,
  .live-dot { animation: none !important; }
  .scene-svg [class^="s"],
  .scene-svg [class*=" s"] { animation: none !important; }
  .progress-fill { transition: none; }
}

@media print {
  .site-head, .player-bar, .hero-viz, .hero-sky, .hero-waves, .site-foot { display: none !important; }
  body { background: #fff; }
  .section { padding: 20px 0; }
  .player, .gen-form, .preview, .howto-card, .checklist, .explain-card, .explain-result { box-shadow: none; }
}
