/* ==========================================================
   LINES GONE WILD — linesgonewild.com
   Paper by day. Lamp light by night.
   Palette: paper cream / dark ink / rosewood accent / amber = lamp light only
   Type: Bricolage Grotesque (display) + Instrument Sans (body)
   ========================================================== */

:root {
  --paper: #faf6f0;
  --paper-2: #f3eae0;
  --ink: #211a1c;
  --ink-soft: #5d4c50;
  --accent: #6464a2;        /* luminous blue-violet — UI accent (day) */
  --accent-ink: #ffffff;    /* text on accent */
  --amber: #f5a93c;         /* lamp light only */
  --amber-glow: #ffbe55;
  --line: 2.5px;
  --radius: 14px;
  --shadow: rgba(0, 0, 0, 0.14);
  --band: #eceaf8;          /* soft lavender band — day-mode color pop */
  --max: 1320px;
  --font-display: "Bricolage Grotesque", "Arial Black", sans-serif;
  --font-body: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.night {
  --paper: #131221;
  --paper-2: #1d1b30;
  --ink: #eef4ec;
  --ink-soft: #a9b3ab;
  --accent: #a5e6c2;        /* mint from the Aliens cover — UI accent (night) */
  --accent-ink: #10241b;
  --shadow: rgba(0, 0, 0, 0.6);
  --band: #1d1b30;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.06rem;
  line-height: 1.65;
  transition: background 0.6s ease, color 0.6s ease;
}

/* Subtle paper grain (day only) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image: radial-gradient(rgba(0,0,0,0.028) 1px, transparent 1px);
  background-size: 5px 5px;
  z-index: 0;
}
.night body::before, body.night::before { opacity: 0.12; }

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.08;
  margin: 0 0 0.5em;
  letter-spacing: -0.015em;
}
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1.1em; }
.muted { color: var(--ink-soft); }

.accent { color: var(--accent); }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 22px;
  position: relative;
  z-index: 1;
}

section { padding: 72px 0; }

/* ---------- Brand scribble watermark ---------- */
.scribble-mark {
  position: absolute;
  pointer-events: none;
  opacity: 0.06;
  z-index: 0;
  transition: opacity 0.6s ease, filter 0.6s ease;
}
.night .scribble-mark { opacity: 0.10; filter: invert(1); }

/* ---------- Scribble underline ---------- */
.scribble {
  position: relative;
  white-space: nowrap;
}
.scribble svg {
  position: absolute;
  left: -4%;
  bottom: -0.28em;
  width: 108%;
  height: 0.5em;
  overflow: visible;
}
.scribble path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
}
.in-view .scribble path,
.scribble.in-view path {
  animation: draw 1.1s ease forwards 0.25s;
}

@keyframes draw { to { stroke-dashoffset: 0; } }

.draw path, .draw circle, .draw line {
  stroke-dasharray: 1400;
  stroke-dashoffset: 1400;
}
.draw.in-view path, .draw.in-view circle, .draw.in-view line {
  animation: draw 1.6s ease forwards;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: var(--line) solid var(--ink);
  transition: background 0.6s ease;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-top: 10px;
  padding-bottom: 10px;
}

/* Logo: scribble mark + typographic wordmark */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand .mark {
  height: 34px;
  width: auto;
  transition: filter 0.6s ease, transform 0.3s ease;
}
.brand:hover .mark { transform: rotate(-8deg); }
.night .brand .mark { filter: invert(1); }
.brand .type {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
  line-height: 1;
}
.brand .type small {
  display: block;
  font-weight: 600;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 3px;
}

.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.site-nav a {
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.93rem;
  padding: 6px 12px;
  border-radius: 10px;
  position: relative;
}
.site-nav a:hover, .site-nav a[aria-current="page"] {
  background: var(--paper-2);
  color: var(--accent);
}

/* ---------- Lamp toggle (header) ---------- */
.lamp-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px 6px 0;
  margin-left: 6px;
  position: relative;
  color: var(--ink);
  transition: transform 0.2s ease;
}
.lamp-toggle:hover { transform: rotate(-4deg) scale(1.06); }
.lamp-toggle svg { display: block; overflow: visible; }
.lamp-toggle .bulb { fill: transparent; transition: fill 0.4s ease; }
.night .lamp-toggle .bulb {
  fill: var(--amber-glow);
  filter: drop-shadow(0 0 10px var(--amber-glow)) drop-shadow(0 0 26px rgba(255,190,85,0.55));
}
.lamp-toggle .cord { transform-box: fill-box; transform-origin: top center; }
.lamp-toggle:active .cord { animation: cord-pull 0.4s ease; }
@keyframes cord-pull {
  40% { transform: translateY(5px); }
  100% { transform: translateY(0); }
}
.lamp-label {
  position: absolute;
  top: calc(100% + 2px);
  right: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.78rem;
  color: var(--accent);
  white-space: nowrap;
  background: var(--paper);
  border: 1.5px solid var(--accent);
  border-radius: 999px;
  padding: 1px 10px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 60;
}
.lamp-toggle:hover .lamp-label { opacity: 1; }

/* ---------- Torch / flashlight overlay (night mode) ---------- */
.torch {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 40;
  opacity: 0;
  transition: opacity 0.8s ease;
  background:
    radial-gradient(circle 240px at var(--mx, 50%) var(--my, 35%),
      rgba(255, 190, 90, 0.16),
      rgba(255, 190, 90, 0.05) 55%,
      transparent 72%);
  mix-blend-mode: screen;
}
.night .torch { opacity: 1; }

.night-shade {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 39;
  opacity: 0;
  transition: opacity 0.8s ease;
  background:
    radial-gradient(circle 300px at var(--mx, 50%) var(--my, 35%),
      transparent 0 45%,
      rgba(8, 4, 12, 0.38) 90%);
}
.night .night-shade { opacity: 1; }

/* ---------- Hero ---------- */
.hero { padding: 84px 0 60px; overflow: hidden; position: relative; }
.hero .wrap {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 44px;
  align-items: center;
}
.hero .kicker {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent-ink);
  background: var(--accent);
  border-radius: 999px;
  padding: 6px 16px;
  margin-bottom: 14px;
}
.hero p.lead { font-size: 1.18rem; max-width: 34em; }
.hero .hint {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--accent);
}
.hint-lamp {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-style: dashed;
  text-underline-offset: 4px;
}
.hint-lamp:hover { color: var(--ink); }
/* the header lamp wiggles when the hint is hovered */
.lamp-nudge .lamp-toggle svg {
  animation: lamp-wiggle 0.7s ease-in-out infinite;
  transform-origin: top center;
}
@keyframes lamp-wiggle {
  0%, 100% { transform: rotate(0deg); }
  30% { transform: rotate(-7deg); }
  70% { transform: rotate(6deg); }
}

.hero-art { position: relative; text-align: center; }

/* Card deck: the two covers stacked like playing cards, click to shuffle */
.card-deck {
  position: relative;
  width: min(440px, 88%);
  aspect-ratio: 1;
  margin: 0 auto;
  cursor: pointer;
  animation: rise-in 1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.15s both;
}
.hero-art .card-deck img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border: var(--line) solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 8px 8px 0 var(--shadow);
  animation: none;
  transition: transform 0.55s cubic-bezier(0.3, 1.2, 0.4, 1), filter 0.55s ease;
}
.hero-art .card-deck img.is-front {
  transform: rotate(2.5deg);
  z-index: 2;
  filter: none;
}
.hero-art .card-deck img.is-back {
  transform: rotate(-6deg) translate(-18px, 12px) scale(0.96);
  z-index: 1;
  filter: brightness(0.92);
}
.card-deck:hover img.is-front { transform: rotate(1deg) translateY(-4px); }
.card-deck:focus-visible { outline: 3px solid var(--accent); outline-offset: 6px; border-radius: var(--radius); }
.deck-hint {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--accent);
  margin-top: 26px;
}
.hero-art img {
  display: inline-block;
  width: min(470px, 92%);
  border: var(--line) solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 8px 8px 0 var(--shadow);
  transform: rotate(1.5deg);
  transition: transform 0.4s ease;
}
.hero-art img:hover { transform: rotate(0deg) scale(1.015); }

/* Character slots (waiting for official PNGs) */
.character { transition: opacity 0.6s ease; }

.float { animation: float 5s ease-in-out infinite; }
@keyframes float {
  50% { transform: translateY(-9px); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--ink);
  background: var(--paper);
  border: var(--line) solid var(--ink);
  border-radius: var(--radius);
  padding: 12px 26px;
  position: relative;
  cursor: pointer;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.3s ease, color 0.3s ease;
}
.btn:hover {
  transform: translate(-2px, -2px) rotate(-0.5deg);
  box-shadow: 7px 7px 0 var(--ink);
  background: var(--accent);
  color: var(--accent-ink);
}
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.12); }

/* ---------- Feature cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 36px;
}
.card {
  border: var(--line) solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper);
  padding: 26px 24px 20px;
  position: relative;
  transition: transform 0.25s ease, background 0.6s ease;
  box-shadow: 5px 5px 0 var(--shadow);
}
.card:hover { transform: rotate(-0.6deg) translateY(-4px); }
.card:nth-child(2n):hover { transform: rotate(0.6deg) translateY(-4px); }
.card .num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}

/* ---------- Lamp reveal (lineart → colored) ---------- */
.lamp-section { background: var(--band); transition: background 0.6s ease; }
.lamp-reveal {
  position: relative;
  max-width: 620px;
  margin: 148px auto 0;
}
.lamp-frame {
  position: relative;
  aspect-ratio: 1;
  border: var(--line) solid var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 7px 7px 0 var(--shadow);
  background: #fff;
}
.lamp-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.lamp-frame .img-on {
  opacity: 0;
  transition: opacity 1s ease;
}
.lamp-reveal.on .img-on { opacity: 1; }
.lamp-frame .glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.2s ease;
  background: radial-gradient(circle at 78% -8%,
    rgba(255, 190, 85, 0.5),
    rgba(255, 190, 85, 0.12) 45%,
    transparent 70%);
  mix-blend-mode: screen;
}
.lamp-reveal.on .glow { opacity: 1; }

.lamp-pull {
  position: absolute;
  top: -132px;
  right: 18px;
  z-index: 3;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink);
  transition: transform 0.2s ease;
}
.lamp-pull:hover { transform: scale(1.06); }
.lamp-pull svg { display: block; overflow: visible; }
.lamp-pull .bulb { fill: transparent; transition: fill 0.4s ease; }
.lamp-reveal.on .lamp-pull .bulb {
  fill: var(--amber-glow);
  filter: drop-shadow(0 0 14px var(--amber-glow)) drop-shadow(0 0 40px rgba(255,190,85,0.65));
}
.lamp-pull .cord { transform-box: fill-box; transform-origin: top center; }
.lamp-pull:active .cord { animation: cord-pull 0.4s ease; }
/* gentle sway + pulsing knob until someone pulls it */
.lamp-reveal:not(.on):not(.touched) .lamp-pull .cord {
  animation: cord-sway 2.6s ease-in-out infinite;
}
@keyframes cord-sway {
  0%, 100% { transform: rotate(0deg); }
  30% { transform: rotate(-2.5deg); }
  70% { transform: rotate(2deg); }
}
.lamp-pull .knob-halo {
  fill: none;
  stroke: var(--amber);
  stroke-width: 2;
  opacity: 0;
}
.lamp-reveal:not(.on):not(.touched) .lamp-pull .knob-halo {
  animation: halo-pulse 2.4s ease-out infinite;
}
@keyframes halo-pulse {
  0% { opacity: 0.9; r: 6; }
  70% { opacity: 0; r: 16; }
  100% { opacity: 0; r: 16; }
}
.lamp-pull .pull-me {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  fill: var(--accent);
  transition: opacity 0.4s ease;
}
.lamp-reveal.on .lamp-pull .pull-me,
.lamp-reveal.touched .lamp-pull .pull-me { opacity: 0; }

.lamp-hint {
  text-align: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--accent);
  margin-top: 16px;
}
.lamp-tag {
  position: absolute;
  bottom: 10px;
  left: 10px;
  z-index: 2;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8rem;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 8px;
  padding: 3px 10px;
  transition: opacity 0.5s ease;
}

/* ---------- Compare slider (method page) ---------- */
.compare-section { background: var(--paper-2); transition: background 0.6s ease; }
.compare {
  position: relative;
  max-width: 620px;
  margin: 30px auto 0;
  border: var(--line) solid var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 7px 7px 0 var(--shadow);
  touch-action: none;
  user-select: none;
}
.compare img { width: 100%; pointer-events: none; }
.compare .layer-top {
  position: absolute;
  inset: 0;
  clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0);
}
.compare .handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos, 50%);
  width: 4px;
  background: var(--accent);
  translate: -50% 0;
  pointer-events: none;
}
.compare .handle::after {
  content: "◂ ▸";
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 8px 10px;
  border-radius: 999px;
  border: 2.5px solid var(--ink);
  white-space: nowrap;
}
.compare .tag {
  position: absolute;
  bottom: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8rem;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 8px;
  padding: 3px 10px;
}
.compare .tag.left { left: 10px; }
.compare .tag.right { right: 10px; }
.compare-range {
  width: 100%;
  max-width: 620px;
  display: block;
  margin: 14px auto 0;
  accent-color: var(--accent);
}

/* ---------- Stage viewer ---------- */
.stages { max-width: 640px; margin: 34px auto 0; }
.stage-frame {
  position: relative;
  aspect-ratio: 1;
  border: var(--line) solid var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 7px 7px 0 var(--shadow);
  background: #fff;
}
.stage-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.7s ease;
}
.stage-frame img.active { opacity: 1; }
.stage-tabs {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 18px;
}
.stage-tab {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--ink);
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 8px 14px;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, transform 0.15s ease;
}
.stage-tab:hover:not([aria-pressed="true"]) {
  transform: translateY(-2px);
  color: var(--accent);
  border-color: var(--accent);
}
.stage-tab[aria-pressed="true"] {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 3px 3px 0 var(--ink);
}
.stage-tab .n {
  font-weight: 800;
  margin-right: 6px;
  color: inherit;
  opacity: 0.7;
}
.stage-caption {
  text-align: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--accent);
  min-height: 1.6em;
  margin-top: 12px;
}

/* ---------- Store buttons ---------- */
.store-strip { text-align: center; margin-top: 34px; }
.store-strip .btn { margin: 6px 8px; }
.store-note {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--accent);
}

/* ---------- Social links ---------- */
.social-nav { display: flex; gap: 14px; flex-wrap: wrap; }
.social-nav a {
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.88rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 4px 14px;
  transition: background 0.2s ease, color 0.2s ease;
}
.social-nav a:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: transparent;
  transform: translateY(-2px);
}
.social-nav a { transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease; }

/* ---------- Series cards ---------- */
.series-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  margin-top: 36px;
}
.series-card {
  border: var(--line) solid var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper);
  text-decoration: none;
  transition: transform 0.25s ease, background 0.6s ease;
  box-shadow: 6px 6px 0 var(--shadow);
}
.series-card:hover { transform: translateY(-5px) rotate(-0.4deg); }
.series-card .thumb { position: relative; border-bottom: var(--line) solid var(--ink); }
.series-card .thumb img { aspect-ratio: 1; object-fit: cover; }
.series-card .thumb .img-night { position: absolute; inset: 0; opacity: 0; transition: opacity 0.7s ease; }
.night .series-card .thumb .img-night { opacity: 1; }
.series-card .body { padding: 18px 20px 22px; }
.series-card .body .badge { margin-bottom: 12px; }
.series-card .body h3 { margin: 0 0 8px; }
.badge {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-ink);
  background: var(--accent);
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 3px 14px;
}

/* ---------- Signup ---------- */
.signup {
  border: var(--line) solid var(--ink);
  border-radius: var(--radius);
  background: var(--band);
  padding: 40px 30px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: background 0.6s ease;
}
.signup form {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 18px;
  position: relative;
  z-index: 1;
}
.signup input[type="email"] {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 12px 18px;
  border: var(--line) solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  min-width: min(320px, 70vw);
}
.signup input[type="email"]:focus {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
.form-note { font-size: 0.85rem; margin-top: 12px; }
.form-success {
  display: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--accent);
  margin-top: 14px;
}

/* ---------- Prose pages ---------- */
.prose { max-width: 720px; }
.prose h2 { margin-top: 1.6em; }

/* ---------- FAQ ---------- */
.faq details {
  border: var(--line) solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper);
  padding: 16px 22px;
  margin-bottom: 14px;
  transition: background 0.6s ease;
}
.faq summary {
  font-family: var(--font-display);
  font-weight: 700;
  cursor: pointer;
  font-size: 1.05rem;
}
.faq details[open] summary { color: var(--accent); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: var(--line) solid var(--ink);
  padding: 40px 0 60px;
  margin-top: 40px;
  position: relative;
}
.site-footer .wrap {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer a { text-decoration: none; font-size: 0.92rem; }
.site-footer a:hover { color: var(--accent); }
.site-footer .brand .mark { height: 26px; }
.site-footer .brand .type { font-size: 0.9rem; }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in-view { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .scribble { white-space: normal; }
  .scribble svg { display: none; }
}

@media (max-width: 900px) {
  .character, .object-doodle { display: none; }
}

@media (max-width: 480px) {
  .site-header .wrap { flex-wrap: wrap; row-gap: 2px; }
  .brand .type { font-size: 0.92rem; }
  .site-nav { margin-left: auto; gap: 0; }
}

@media (max-width: 780px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 26px; }
  .hero-art { order: -1; }
  .hero-art img { width: min(300px, 82%); }
  section { padding: 52px 0; }
  .site-nav a { padding: 6px 8px; font-size: 0.86rem; }
  .brand .type small { display: none; }
  .lamp-pull { top: -126px; right: 8px; }
}

/* ==========================================================
   AWARD PASS — big type, marquee, cursor, micro-interactions
   ========================================================== */

/* Oversized hero typography with staggered entrance */
.hero h1 { font-size: clamp(2.7rem, 7vw, 5.4rem); line-height: 0.99; }
.hero .kicker { animation: rise-in 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero h1 { animation: rise-in 0.85s cubic-bezier(0.2, 0.7, 0.2, 1) 0.08s both; }
.hero p.lead { animation: rise-in 0.85s cubic-bezier(0.2, 0.7, 0.2, 1) 0.18s both; }
.hero .btn, .hero .hint { animation: rise-in 0.85s cubic-bezier(0.2, 0.7, 0.2, 1) 0.28s both; }
.hero-art img { animation: rise-in 1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.15s both; }
@keyframes rise-in {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: none; }
}
.hero-art img { will-change: transform; }

/* Slow-breathing scribble watermark */
.scribble-mark { transform: rotate(var(--rot, 0deg)); animation: mark-drift 26s ease-in-out infinite; }
@keyframes mark-drift {
  50% { transform: rotate(calc(var(--rot, 0deg) + 5deg)) translateY(-14px); }
}

/* Anchors land clear of the sticky header */
[id] { scroll-margin-top: 90px; }

/* ---------- Characters: Maite's real art, peeking into the page ---------- */
.character {
  position: absolute;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transform: translateY(30px) rotate(-3deg);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.8, 0.3, 1.15), filter 0.6s ease;
}
.character.in-view { opacity: 1; transform: none; }
.night .character { filter: invert(1) hue-rotate(180deg); }
.object-doodle {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  opacity: 0.16;
  transition: opacity 0.6s ease, filter 0.6s ease;
}
.night .object-doodle { filter: invert(1); opacity: 0.3; }

/* ---------- Background doodle details (Genie Studio vibes) ---------- */
section { position: relative; }
.deco {
  position: absolute;
  pointer-events: none;
  color: var(--accent);
  opacity: 0.3;
  z-index: 0;
  transition: color 0.6s ease, opacity 0.6s ease;
}
.deco svg { display: block; overflow: visible; }
.deco svg * { stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.deco .dot { fill: currentColor; stroke: none; }
.night .deco { color: var(--amber-glow); opacity: 0.4; }
.deco.drift { animation: deco-drift 7s ease-in-out infinite; }
.deco.drift-slow { animation: deco-drift 11s ease-in-out infinite; }
@keyframes deco-drift {
  50% { transform: translateY(-10px) rotate(4deg); }
}

/* Custom cursor (fine pointers only) */
@media (pointer: fine) {
  .cursor-dot, .cursor-ring {
    position: fixed;
    top: 0; left: 0;
    pointer-events: none;
    border-radius: 50%;
    z-index: 200;
    translate: -50% -50%;
  }
  .cursor-dot { width: 7px; height: 7px; background: var(--accent); }
  .cursor-ring {
    width: 34px; height: 34px;
    border: 1.5px solid var(--accent);
    opacity: 0.55;
    transition: width 0.25s ease, height 0.25s ease, opacity 0.25s ease, border-color 0.4s ease;
  }
  .cursor-hover .cursor-ring { width: 54px; height: 54px; opacity: 0.9; }
  .cursor-lamp .cursor-ring { border-color: var(--amber); width: 60px; height: 60px; opacity: 1; }
}

/* Series card hover: image zoom + title arrow */
.series-card .thumb { overflow: hidden; }
.series-card .thumb img { transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.7s ease; }
.series-card:hover .thumb img { transform: scale(1.045); }
.series-card h3::after {
  content: "→";
  display: inline-block;
  margin-left: 8px;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  color: var(--accent);
}
.series-card:hover h3::after { opacity: 1; transform: none; }

/* Magnetic buttons (JS sets --mx2/--my2) */
.btn { transform: translate(var(--mx2, 0), var(--my2, 0)); }
.btn:hover { transform: translate(calc(var(--mx2, 0px) - 2px), calc(var(--my2, 0px) - 2px)) rotate(-0.5deg); }

.btn:active { transform: translate(2px, 2px) !important; box-shadow: 1px 1px 0 var(--ink); }

/* Editorial selection + focus */
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .draw path, .draw circle, .draw line,
  .scribble path { stroke-dashoffset: 0; }
  html { scroll-behavior: auto; }
}
