:root {
  color-scheme: light;
  --ink: #17150f;
  --ink-soft: #4c4537;
  --paper: #f4eee4;
  --paper-deep: #e8ddcb;
  --gold: #a77a19;
  --gold-light: #d8b45e;
  --cyan: #6dbdc4;
  --line: rgba(105, 79, 28, 0.32);
  font-family: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; background: var(--paper); color: var(--ink); }

button, input { font: inherit; }

button { color: inherit; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background: #eee7dc;
}

.desktop-scene, .scene-image, .colour-slice {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.scene-image { object-fit: cover; object-position: center; }

.colour-slice {
  overflow: hidden;
  opacity: 0;
  transition: opacity 420ms cubic-bezier(.2,.7,.2,1);
}

.colour-slice--left { clip-path: inset(0 50% 0 0); }
.colour-slice--right { clip-path: inset(0 0 0 50%); }

.hero[data-active-world="left"] .colour-slice--left,
.hero[data-active-world="right"] .colour-slice--right { opacity: 1; }

.world-zones { position: absolute; inset: 0; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; }

.world-zone { border: 0; padding: 0; cursor: crosshair; background: transparent; }
.world-zone:focus-visible { outline: 2px solid var(--gold-light); outline-offset: -8px; }

.signal-panel {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 62px;
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  gap: 8px;
  width: min(92vw, 560px);
  pointer-events: none;
}

.signal-kicker {
  margin: 0;
  color: #4c3a18;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-shadow: 0 1px 7px rgba(255,255,255,.9);
}

.notify-button, .submit-button {
  border: 1px solid rgba(93, 63, 10, .72);
  border-radius: 3px;
  background: linear-gradient(135deg, rgba(30,27,20,.96), rgba(70,53,25,.96));
  color: #fff8e8;
  padding: 14px 25px;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 9px 28px rgba(39, 29, 13, .22), inset 0 0 0 1px rgba(232, 196, 111, .2);
  pointer-events: auto;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.notify-button:hover, .submit-button:hover { transform: translateY(-2px); box-shadow: 0 12px 34px rgba(39, 29, 13, .32), inset 0 0 0 1px rgba(232, 196, 111, .35); }
.notify-button:focus-visible, .submit-button:focus-visible, .dialog-close:focus-visible, .site-footer button:focus-visible, .text-link:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }

.site-footer {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  display: flex;
  gap: 18px;
  white-space: nowrap;
}

.site-footer button, .text-link {
  border: 0;
  border-bottom: 1px solid transparent;
  padding: 0;
  background: transparent;
  color: #4b422f;
  font-family: system-ui, sans-serif;
  font-size: .72rem;
  cursor: pointer;
}

.site-footer button:hover, .text-link:hover { border-bottom-color: currentColor; }

.mobile-scenes { display: none; }

.dialog {
  width: min(92vw, 610px);
  max-height: min(88svh, 820px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: clamp(28px, 5vw, 52px);
  background:
    radial-gradient(circle at 50% 0, rgba(217,180,94,.16), transparent 42%),
    linear-gradient(145deg, #fbf7ef, #eee5d7);
  color: var(--ink);
  box-shadow: 0 30px 100px rgba(24, 19, 10, .42);
}

.dialog::backdrop { background: rgba(16, 13, 8, .68); backdrop-filter: blur(5px); }

.dialog-close {
  position: absolute;
  top: 14px;
  right: 17px;
  border: 0;
  background: transparent;
  font-family: system-ui, sans-serif;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

.dialog-emblem { margin-bottom: 8px; color: var(--gold); text-align: center; }
.dialog-eyebrow { margin: 0 0 10px; color: #7d5f24; font-size: .72rem; font-weight: 700; letter-spacing: .2em; text-align: center; text-transform: uppercase; }
.dialog h1 { margin: 0 auto 13px; max-width: 520px; font-size: clamp(1.65rem, 5vw, 2.45rem); font-weight: 500; line-height: 1.08; text-align: center; }
.dialog h2 { margin: 28px 0 8px; font-size: 1rem; letter-spacing: .05em; text-transform: uppercase; }
.dialog-copy { margin: 0 auto 28px; max-width: 480px; color: var(--ink-soft); font-family: system-ui, sans-serif; font-size: .94rem; line-height: 1.55; text-align: center; }
.dialog p, .dialog li { font-family: system-ui, sans-serif; font-size: .9rem; line-height: 1.62; }
.dialog a { color: #765412; }

.field { display: grid; gap: 7px; }
.field label { color: #473b27; font-family: system-ui, sans-serif; font-size: .8rem; font-weight: 700; }
.field input {
  width: 100%;
  border: 1px solid #b6a27c;
  border-radius: 3px;
  padding: 13px 14px;
  background: rgba(255,255,255,.72);
  color: var(--ink);
  font-family: system-ui, sans-serif;
  font-size: 1rem;
}
.field input:focus { outline: 3px solid rgba(109,189,196,.42); border-color: #4e9299; }

.check-row { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: start; margin-top: 16px; color: #413a2e; font-family: system-ui, sans-serif; font-size: .8rem; line-height: 1.45; }
.check-row input { width: 17px; height: 17px; margin: 1px 0 0; accent-color: #876313; }
.privacy-summary { margin: 18px 0; padding: 12px 14px; border-left: 2px solid var(--gold); background: rgba(175,137,56,.08); color: #554b3b; font-size: .74rem !important; line-height: 1.5 !important; }
.text-link { display: inline; font-size: inherit; color: #684b12; }
.submit-button { width: 100%; margin-top: 2px; }
.submit-button:disabled { opacity: .6; cursor: wait; transform: none; }
.form-status { min-height: 1.5em; margin: 12px 0 0; color: #62460f; text-align: center; }
.form-status[data-state="error"] { color: #8a2c20; }
.form-status[data-state="success"] { color: #24613e; }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

.legal-dialog { width: min(92vw, 760px); }
.legal-dialog article > h1 { text-align: left; margin-left: 0; }
.legal-dialog .dialog-eyebrow { text-align: left; }
.legal-pending { margin: 18px 0; border: 1px solid #ad6a32; padding: 10px 12px; background: #fff0d9; color: #6e3512; font-family: system-ui, sans-serif; font-size: .82rem; }

@media (max-width: 760px), (max-aspect-ratio: 3 / 2) {
  .hero { overflow: visible; padding-bottom: 138px; }
  .desktop-scene { display: none; }
  .mobile-scenes { display: grid; position: relative; }
  .mobile-world { position: relative; overflow: hidden; width: 100%; aspect-ratio: 836 / 941; background: #eee7dc; }
  .mobile-image { position: absolute; top: 0; width: 200%; max-width: none; height: 100%; object-fit: fill; transition: opacity 420ms cubic-bezier(.2,.7,.2,1); }
  .mobile-image--left { left: 0; }
  .mobile-image--right { right: 0; }
  .mobile-image--colour { opacity: 0; }
  .hero[data-active-world="left"] .mobile-world--left .mobile-image--colour,
  .hero[data-active-world="right"] .mobile-world--right .mobile-image--colour { opacity: 1; }
  .world-zones { grid-template-columns: 1fr; grid-template-rows: 1fr 1fr; bottom: 138px; }
  .signal-panel { position: fixed; bottom: 46px; width: calc(100vw - 24px); padding: 13px 12px; border: 1px solid rgba(104,77,26,.26); border-radius: 5px; background: rgba(246,239,228,.92); backdrop-filter: blur(10px); box-shadow: 0 10px 30px rgba(30,23,12,.18); }
  .signal-kicker { font-size: .62rem; }
  .notify-button { width: 100%; padding: 12px 14px; font-size: .74rem; }
  .site-footer { position: fixed; bottom: 12px; padding: 0 10px; }
  .site-footer button { font-size: .68rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
}
