/* Pip and Clawd — pipandclawd.com
   Dusk-navy base (the films' title cards), sand and coral from the coast, Clawd's amber glow as the accent. */

:root {
  --night: #141a33;
  --night-2: #1c2344;
  --dusk: #2b2a55;
  --ink: #0e1122;
  --sand: #f6e9d6;
  --sand-2: #e9d6bd;
  --coral: #f7a08d;
  --coral-2: #f3836f;
  --amber: #f47a3e;
  --glow: #ffb469;
  --sea: #7fb3d4;
  --pebble: #ebe7e0;
  --bubble: #e7aaf0;
  --text: #f3eee6;
  --muted: #b9b4c6;
  --radius: 22px;
  --wrap: 1180px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--night);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, .display { font-family: "Fredoka", "Nunito", system-ui, sans-serif; font-weight: 600; line-height: 1.1; margin: 0; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--wrap), calc(100% - 32px)); margin-inline: auto; }
.kicker { font-family: "Fredoka", sans-serif; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; font-size: .78rem; color: var(--glow); }
.lead { font-size: 1.2rem; color: #ddd7cc; max-width: 42ch; }
.muted { color: var(--muted); }
:focus-visible { outline: 3px solid var(--glow); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  padding: 14px 0;
  transition: background .4s var(--ease), box-shadow .4s;
}
.nav.solid { background: rgba(14, 17, 34, .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 rgba(255,255,255,.06); }
.nav .wrap { display: flex; align-items: center; gap: 22px; }
.brand { display: flex; align-items: center; gap: 7px; text-decoration: none; font-family: "Fredoka", sans-serif; font-weight: 600; font-size: 1.2rem; white-space: nowrap; }
.brand .and { font-weight: 400; color: var(--glow); margin: 0 3px; }
.brand svg { width: 34px; height: 34px; overflow: visible; }
.brand .lg-clawd { filter: drop-shadow(0 0 10px rgba(255, 150, 80, .55)); animation: breathe 4s ease-in-out infinite; }
.brand .lg-pip { filter: drop-shadow(0 0 8px rgba(255, 160, 140, .45)); animation: pipbob 3.2s ease-in-out infinite; }
.brand .lg-pip .arms path { transform-box: fill-box; transform-origin: 50% 0; animation: wiggle 2.4s ease-in-out infinite; }
.brand .lg-pip .a2 { animation-delay: -.6s; } .brand .lg-pip .a3 { animation-delay: -1.2s; } .brand .lg-pip .a4 { animation-delay: -1.8s; }
@keyframes breathe { 50% { filter: drop-shadow(0 0 16px rgba(255, 170, 90, .85)); } }
@keyframes pipbob { 50% { transform: translateY(-2px); } }
@keyframes wiggle { 0%, 100% { transform: rotate(-9deg); } 50% { transform: rotate(9deg); } }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a { text-decoration: none; padding: 8px 12px; border-radius: 999px; font-weight: 700; font-size: .95rem; color: #e6e1d8; transition: background .2s; }
.nav-links a:hover { background: rgba(255,255,255,.08); }
.nav .btn { margin-left: 6px; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; color: #fff; width: 44px; height: 44px; border-radius: 12px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: #fff; margin: 5px auto; transition: transform .3s, opacity .3s; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px; border-radius: 999px; border: 0; cursor: pointer;
  font: 700 1rem "Nunito", sans-serif; text-decoration: none; color: var(--ink);
  background: linear-gradient(135deg, var(--glow), var(--amber));
  box-shadow: 0 8px 26px rgba(244, 122, 62, .35), inset 0 1px 0 rgba(255,255,255,.35);
  transition: transform .25s var(--ease), box-shadow .25s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(244, 122, 62, .45), inset 0 1px 0 rgba(255,255,255,.35); }
.btn.ghost { background: rgba(255,255,255,.1); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.35); backdrop-filter: blur(6px); }
.btn.ghost:hover { background: rgba(255,255,255,.18); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.6); }
.btn.sm { padding: 9px 16px; font-size: .9rem; }
.btn svg { width: 18px; height: 18px; }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: grid; align-items: end;
  padding: 120px 0 72px; isolation: isolate; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 52% 38%; transform: scale(1.06); animation: drift 24s ease-in-out infinite alternate; }
@keyframes drift { to { transform: scale(1.0) translateY(-1.5%); } }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(20,26,51,.5) 0%, rgba(20,26,51,.05) 30%, rgba(20,26,51,.45) 60%, rgba(20,26,51,.85) 85%, var(--night) 100%),
    radial-gradient(60% 50% at 70% 60%, rgba(255,180,105,.18), transparent 70%);
}
#plankton { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero .wrap { position: relative; }
.hero h1 {
  font-size: clamp(3.2rem, 9vw, 7.4rem); line-height: .95; margin: 10px 0 18px;
  color: #fff8ef;
  text-shadow: 0 0 40px rgba(255, 180, 110, .35), 0 4px 30px rgba(0,0,0,.35);
}
.hero h1 .amp { color: var(--glow); font-weight: 500; }
.hero .lead { font-size: clamp(1.1rem, 2vw, 1.4rem); color: #f6efe4; text-shadow: 0 2px 14px rgba(0,0,0,.45); max-width: 36ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.scroll-hint { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.5); border-radius: 14px; }
.scroll-hint::after { content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: hint 1.8s ease-in-out infinite; }
@keyframes hint { 50% { transform: translateY(14px); opacity: .2; } }

/* ---------- sections ---------- */
section { padding: 96px 0; position: relative; }
.section-head { display: grid; gap: 10px; max-width: 60ch; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); color: #fff8ef; }

/* premise */
.premise { background: radial-gradient(80% 60% at 50% 0%, rgba(255,160,100,.12), transparent 70%); padding-top: 40px; }
.premise-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.premise h2 { font-size: clamp(2rem, 4.5vw, 3.3rem); color: #fff8ef; margin-bottom: 18px; }
.premise p { font-size: 1.12rem; color: #e2dcd2; }
.quote-card {
  background: linear-gradient(160deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
  border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); padding: 34px 36px; position: relative; overflow: hidden;
}
.quote-card::before { content: "“"; position: absolute; top: -18px; left: 18px; font: 600 9rem/1 "Fredoka"; color: rgba(255,180,105,.18); }
.quote-card blockquote { margin: 0; font-family: "Fredoka"; font-weight: 500; font-size: clamp(1.4rem, 2.4vw, 1.9rem); line-height: 1.3; color: #fff; }
.quote-card figcaption { margin-top: 16px; color: var(--muted); font-weight: 700; }
.quote-card .who { color: var(--coral); }
.quote-card .who.clawd { color: var(--glow); }

/* films */
.films { background: linear-gradient(180deg, var(--night) 0%, var(--night-2) 100%); }
.film-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.film {
  position: relative; border-radius: var(--radius); overflow: hidden; background: #1a2040;
  border: 1px solid rgba(255,255,255,.08); display: flex; flex-direction: column;
  transition: transform .35s var(--ease), box-shadow .35s, border-color .35s;
}
.film:hover { transform: translateY(-6px); box-shadow: 0 30px 60px rgba(0,0,0,.45), 0 0 0 1px rgba(255,180,105,.25); border-color: rgba(255,180,105,.3); }
.film .thumb { position: relative; height: 0; padding-top: 56.25%; overflow: hidden; background: #0e1122; }
.film .thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.film:hover .thumb img { transform: scale(1.05); }
.play {
  position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(180deg, transparent 50%, rgba(10,12,26,.55)); border: 0; cursor: pointer; color: #fff;
}
.play .disc { width: 66px; height: 66px; border-radius: 50%; display: grid; place-items: center; background: rgba(20,24,46,.6); backdrop-filter: blur(6px); border: 1.5px solid rgba(255,255,255,.5); transition: transform .3s var(--ease), background .3s; }
.play .disc svg { width: 24px; height: 24px; margin-left: 3px; }
.film:hover .play .disc, .play:focus-visible .disc { transform: scale(1.08); background: var(--amber); border-color: var(--amber); }
.film .meta { padding: 20px 22px 24px; display: grid; gap: 8px; }
.film .num { font-family: "Fredoka"; color: var(--glow); font-weight: 500; letter-spacing: .1em; font-size: .8rem; }
.film h3 { font-size: 1.5rem; color: #fff8ef; }
.film .runtime { position: absolute; top: 12px; right: 12px; background: rgba(10,12,26,.7); backdrop-filter: blur(6px); padding: 4px 10px; border-radius: 999px; font-size: .8rem; font-weight: 800; }
.film p { color: #d6d0c6; font-size: .98rem; margin: 0; }
.film .line { color: var(--muted); font-style: italic; font-size: .92rem; }
.film-grid .film.short { grid-column: span 3; display: grid; grid-template-columns: 1fr 1.6fr; }
.film.short .meta { align-content: center; padding: 28px 32px; }
.film.short h3 { font-size: 1.6rem; }

/* far light */
.farlight { padding: 0; }
.farlight .banner {
  position: relative; min-height: 70vh; display: grid; align-items: center; isolation: isolate; padding: 110px 0;
}
.farlight .banner img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; object-position: 80% 40%; }
.farlight .banner::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(14,17,34,.95) 0%, rgba(14,17,34,.82) 50%, rgba(14,17,34,.25) 100%), linear-gradient(0deg, var(--night-2) 0%, transparent 30%); }
.farlight .banner h2 { font-size: clamp(2.6rem, 6vw, 5rem); color: #fff8ef; line-height: .98; }
.farlight .banner h2 small { display: block; font-size: .4em; font-weight: 500; color: var(--glow); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 8px; }
.farlight .banner .lead { max-width: 48ch; }
.blink { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--glow); box-shadow: 0 0 12px var(--glow), 0 0 30px rgba(255,180,105,.6); vertical-align: middle; margin-left: 8px; animation: blink 6s infinite; }
@keyframes blink { 0%, 6%, 12%, 18% { opacity: 1; } 3%, 9%, 15%, 100% { opacity: .15; } }

.episodes { background: var(--night-2); padding: 72px 0 96px; }
.ep-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 30px; }
.ep {
  border-radius: var(--radius); border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.03); padding: 28px; display: grid; gap: 14px; align-content: start;
}
.ep.lead-ep { grid-row: span 2; padding: 0; overflow: hidden; }
.ep-grid.one { grid-template-columns: 1fr; }
.ep-grid.one .ep.lead-ep { grid-row: auto; display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; }
.ep-grid.one .ep.lead-ep .thumb { aspect-ratio: auto; height: 100%; min-height: 340px; }
.ep-grid.one .ep.lead-ep .thumb img { position: absolute; inset: 0; }
@media (max-width: 1000px) { .ep-grid.one .ep.lead-ep { grid-template-columns: 1fr; } .ep-grid.one .ep.lead-ep .thumb { aspect-ratio: 16/9; height: auto; min-height: 0; } }
.ep.lead-ep .body { padding: 26px 28px 30px; display: grid; gap: 14px; }
.ep .tag { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--glow); }
.ep .tag.soon { color: var(--sea); }
.ep h3 { font-size: 1.7rem; color: #fff8ef; }
.ep p { color: #d6d0c6; margin: 0; }
.chapters { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 18px; list-style: none; margin: 6px 0 0; padding: 0; font-size: .95rem; }
.chapters li { display: flex; gap: 10px; align-items: baseline; color: #d6d0c6; padding: 4px 0; border-bottom: 1px dashed rgba(255,255,255,.08); }
.chapters li b { font-family: "Fredoka"; font-weight: 500; color: var(--glow); min-width: 1.4em; }
.ep .thumb { position: relative; aspect-ratio: 16/9; }
.ep .thumb img { width: 100%; height: 100%; object-fit: cover; }

/* characters */
.characters { background: linear-gradient(180deg, var(--night-2), var(--night)); }
.char-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
.char { position: relative; border-radius: var(--radius); overflow: hidden; background: #1a2040; border: 1px solid rgba(255,255,255,.08); display: flex; flex-direction: column; transition: transform .35s var(--ease), box-shadow .35s; }
.char:hover { transform: translateY(-6px); box-shadow: 0 30px 60px rgba(0,0,0,.45); }
.char .pic { position: relative; overflow: hidden; background: #0e1122; }
.char .pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.char:hover .pic img { transform: scale(1.05); }
.char .body { padding: 22px 24px 26px; display: grid; gap: 8px; }
.char h3 { font-size: 1.7rem; color: #fff8ef; }
.char .role { color: var(--coral); font-weight: 800; font-size: .9rem; }
.char p { color: #d6d0c6; margin: 0; font-size: .98rem; }
.char .quote { font-style: italic; color: var(--muted); font-size: .92rem; }
.char.pip { grid-column: span 5; grid-row: span 2; }
.char.pip .pic { aspect-ratio: 1; }
.char.clawd { grid-column: span 7; }
.char.clawd .pic { aspect-ratio: 21/9; }
.char.clawd .pic img { object-position: 50% 45%; }
.char.pebble, .char.crab { grid-column: span 4; }
.char.pebble .pic, .char.crab .pic, .char.bubble .pic { aspect-ratio: 16/10; }
.char.clawd .role { color: var(--glow); }
.char.pebble .role { color: var(--pebble); }
.char.crab .role { color: var(--sand-2); }
/* Bubble: a soft pink-purple preview card */
.char.bubble { grid-column: span 7; display: grid; grid-template-columns: 1fr 1fr; background: linear-gradient(135deg, #2b2450, #1a2040); border-color: rgba(231,170,240,.3); }
.char.bubble .pic { aspect-ratio: auto; min-height: 240px; }
.char.bubble .pic img { object-position: 50% 50%; }
.char.bubble .pic::after { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 50% at 50% 55%, rgba(231,170,240,.25), transparent 70%); mix-blend-mode: screen; animation: pulse 5s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.char.bubble .role { color: var(--bubble); }
.char.bubble .soon { position: absolute; top: 14px; left: 14px; background: var(--bubble); color: #2a1a33; font-weight: 900; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; box-shadow: 0 0 20px rgba(231,170,240,.6); }
.char.bubble h3 { color: #fbe9ff; }

/* science */
.science { background: var(--night); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.fact { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); border-radius: 18px; padding: 22px 24px; display: grid; gap: 8px; }
.fact .pipsays { font-family: "Fredoka"; font-weight: 500; font-size: 1.15rem; color: #fff8ef; }
.fact .pipsays::before { content: "Pip: "; color: var(--coral); }
.fact .pipsays.clawd::before { content: "Clawd: "; color: var(--glow); }
.fact .pipsays.pebble::before { content: "Pebble: "; color: var(--pebble); }
.fact .cite { font-size: .88rem; color: var(--muted); }
.fact .cite b { color: #d6d0c6; font-weight: 700; }
.fact .cite a { color: var(--glow); text-decoration: none; border-bottom: 1px solid rgba(255,180,105,.4); }
.fact .cite a:hover { border-bottom-color: var(--glow); }
.colours p a, .cite-links a { color: var(--glow); text-decoration: none; border-bottom: 1px solid rgba(255,180,105,.4); }

/* gallery strip */
.coast { padding: 0 0 96px; }
.strip { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 16px 22px; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.25) transparent; }
.strip figure { margin: 0; flex: 0 0 min(72vw, 560px); scroll-snap-align: center; border-radius: 18px; overflow: hidden; position: relative; aspect-ratio: 1920/804; background: #0e1122; }
.strip img { width: 100%; height: 100%; object-fit: cover; }
.strip figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 16px 12px; font-size: .88rem; font-weight: 700; background: linear-gradient(0deg, rgba(10,12,26,.8), transparent); }

/* making */
.making { background: linear-gradient(180deg, var(--night), #0f1328); }
.making-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.making ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.making li { display: flex; gap: 12px; align-items: flex-start; color: #d6d0c6; }
.making li::before { content: ""; flex: 0 0 10px; height: 10px; margin-top: .55em; border-radius: 50%; background: var(--glow); box-shadow: 0 0 10px rgba(255,180,105,.7); }
.making .pic { border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(255,255,255,.08); aspect-ratio: 4 / 3; position: relative; box-shadow: 0 30px 60px rgba(0,0,0,.35); }
.making .pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.making .pic figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 18px 14px; font-size: .88rem; font-weight: 700; color: #f3eee6; background: linear-gradient(0deg, rgba(10,12,26,.8), transparent); }
.numbers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin: 0 0 72px; }
.numbers div { text-align: center; padding: 26px 16px; border-radius: 18px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); }
.numbers b { display: block; font: 600 clamp(2rem, 4vw, 2.8rem)/1 "Fredoka"; color: var(--glow); margin-bottom: 8px; }
.numbers span { color: var(--muted); font-weight: 700; font-size: .92rem; }
@media (max-width: 720px) { .numbers { grid-template-columns: 1fr 1fr; gap: 10px; } }

/* footer */
footer { padding: 54px 0 40px; background: #0b0e1d; border-top: 1px solid rgba(255,255,255,.06); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 18px 30px; align-items: center; justify-content: space-between; }
footer .brand { font-size: 1.1rem; }
.social { display: flex; gap: 10px; }
.social a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: rgba(255,255,255,.06); text-decoration: none; font-weight: 800; font-size: .92rem; transition: background .2s; }
.social a:hover { background: rgba(255,255,255,.14); }
.social svg { width: 18px; height: 18px; }
footer small { width: 100%; color: var(--muted); font-size: .85rem; }

/* lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1100px, 94vw); width: 100%; }
.lightbox::backdrop { background: rgba(8,10,20,.9); backdrop-filter: blur(6px); }
.lightbox .frame { position: relative; aspect-ratio: 16/9; border-radius: 18px; overflow: hidden; background: #000; box-shadow: 0 40px 100px rgba(0,0,0,.6); }
.lightbox iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lightbox .close { position: absolute; top: -48px; right: 0; background: none; border: 0; color: #fff; font: 800 1rem "Nunito"; cursor: pointer; display: flex; gap: 8px; align-items: center; }
.lightbox .title { color: #fff; font-family: "Fredoka"; font-weight: 500; font-size: 1.1rem; position: absolute; top: -46px; left: 0; }

/* ---------- multi-page additions ---------- */
.nav-links a.active { background: rgba(255,255,255,.1); color: #fff; }
.page-head {
  position: relative; isolation: isolate; overflow: hidden; display: grid; align-items: end;
  min-height: 62vh; padding: 140px 0 56px;
}
.page-head.tall { min-height: 78vh; }
.page-head img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; object-position: 70% 40%; }
.page-head::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20,26,51,.55) 0%, rgba(20,26,51,.15) 35%, rgba(20,26,51,.75) 75%, var(--night) 100%); }
.page-head h1 { font-size: clamp(2.6rem, 6.5vw, 5rem); color: #fff8ef; margin: 8px 0 14px; max-width: 16ch; text-shadow: 0 4px 30px rgba(0,0,0,.35); }
.page-head .lead { text-shadow: 0 2px 14px rgba(0,0,0,.45); max-width: 50ch; }
.page-head .hero-actions { margin-top: 20px; }
.section-head.row { display: flex; align-items: end; justify-content: space-between; gap: 20px; max-width: none; }
.section-head.row h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.film.mini { text-decoration: none; }
.film.mini .meta { padding: 16px 20px 20px; }
.film.mini h3 { font-size: 1.3rem; }
.film.mini .thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(10,12,26,.5)); }
.film-list { display: grid; grid-template-columns: 1fr; gap: 28px; }
.film-list > .film { grid-column: auto; }
.film.wide { display: grid; grid-template-columns: 1.15fr 1fr; }
.film.wide .thumb { align-self: center; }
.film.wide .meta { padding: 34px 36px; align-content: center; gap: 12px; }
.film.wide h2 { font-size: 2.2rem; color: #fff8ef; }
.film.wide .actions, .next-up .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.film.wide:nth-child(even) .thumb { order: 2; }
.next-up { margin-top: 56px; padding: 34px 36px; border-radius: var(--radius); background: linear-gradient(135deg, rgba(255,180,105,.14), rgba(255,255,255,.03)); border: 1px solid rgba(255,180,105,.25); display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.next-up h2 { font-size: 2rem; color: #fff8ef; margin: 4px 0 8px; }
.next-up p { margin: 0; max-width: 46ch; }
.faces { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.face { text-decoration: none; text-align: center; display: grid; justify-items: center; gap: 4px; padding: 14px 8px 18px; border-radius: var(--radius); transition: background .25s, transform .3s var(--ease); }
.face:hover { background: rgba(255,255,255,.05); transform: translateY(-4px); }
.face img { width: min(100%, 170px); height: auto; aspect-ratio: 1; border-radius: 50%; object-fit: cover; border: 3px solid rgba(255,255,255,.12); box-shadow: 0 14px 34px rgba(0,0,0,.4); margin-bottom: 8px; transition: border-color .3s; }
.face:hover img { border-color: var(--glow); }
.face span { font-family: "Fredoka"; font-weight: 600; font-size: 1.25rem; color: #fff8ef; }
.face small { color: var(--muted); font-weight: 700; font-size: .82rem; }
.face.soon img { border-color: rgba(231,170,240,.6); box-shadow: 0 0 30px rgba(231,170,240,.35), 0 14px 34px rgba(0,0,0,.4); }
.face.soon small { color: var(--bubble); }
.more { padding-top: 0; }
.more-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.more-card { position: relative; display: grid; align-items: end; min-height: 300px; border-radius: var(--radius); overflow: hidden; text-decoration: none; isolation: isolate; border: 1px solid rgba(255,255,255,.08); transition: transform .35s var(--ease), box-shadow .35s; }
.more-card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px rgba(0,0,0,.45); }
.more-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s var(--ease); }
.more-card:hover img { transform: scale(1.05); }
.more-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(14,17,34,.1), rgba(14,17,34,.92)); }
.more-card > div { padding: 28px; }
.more-card h3 { font-size: 1.7rem; color: #fff8ef; margin: 4px 0 8px; }
.more-card p { margin: 0; color: #d6d0c6; }
.making-grid + .making-grid { margin-top: 64px; }
.making-grid.flip .pic { order: -1; }
.making figure.pic { margin: 0; }
.making .pic video.clip { position: absolute; inset: 0; width: 100%; height: 100%; }
.making h2 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); color: #fff8ef; margin-bottom: 14px; }
.making p { color: #d6d0c6; }
.making li a { color: var(--glow); }
.foot-cols { display: grid; grid-template-columns: 1.2fr 1fr auto; gap: 28px; align-items: start; width: 100%; }
.foot-cols .muted { margin: 10px 0 0; font-size: .95rem; }
.foot-nav { display: grid; gap: 6px; }
.foot-nav a { text-decoration: none; font-weight: 700; color: #d6d0c6; }
.foot-nav a:hover { color: #fff; }
footer small { margin-top: 28px; }
@media (max-width: 1000px) {
  .faces { grid-template-columns: repeat(3, 1fr); }
  .film.wide, .film.wide.short { grid-template-columns: 1fr; }
  .film.wide .thumb { order: 0 !important; }
  .film.wide .meta { padding: 26px 28px 30px; }
}
@media (max-width: 720px) {
  .page-head { min-height: 52vh; padding: 120px 0 40px; }
  .section-head.row { flex-direction: column; align-items: flex-start; }
  .film.wide, .film.wide.short { grid-template-columns: 1fr; }
  .film.wide .thumb, .film.wide.short .thumb { order: 0 !important; }
  .film.wide .meta { padding: 22px; }
  .film.wide h2 { font-size: 1.7rem; }
  .faces { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .more-grid { grid-template-columns: 1fr; }
  .making-grid.flip .pic { order: 0; }
  .foot-cols { grid-template-columns: 1fr; }
}

/* ---------- animations ---------- */
/* hero: words rise in, then the line and the buttons */
.hero h1 .w { display: inline-block; opacity: 0; transform: translateY(.5em) rotate(2deg); animation: rise .9s var(--ease) forwards; }
.hero h1 .w:nth-child(2) { animation-delay: .12s; } .hero h1 .w:nth-child(3) { animation-delay: .24s; }
.hero .kicker, .hero .lead, .hero .hero-actions { opacity: 0; animation: rise .9s var(--ease) forwards; }
.hero .kicker { animation-delay: .05s; } .hero .lead { animation-delay: .45s; } .hero .hero-actions { animation-delay: .6s; }
.page-head .kicker, .page-head h1, .page-head .lead, .page-head .hero-actions { opacity: 0; animation: rise .9s var(--ease) forwards; }
.page-head h1 { animation-delay: .1s; } .page-head .lead { animation-delay: .25s; } .page-head .hero-actions { animation-delay: .4s; }
@keyframes rise { to { opacity: 1; transform: none; } }
/* Clawd blinks */
.brand svg .eye { transform-box: fill-box; transform-origin: center; animation: blinkeyes 5.5s infinite; }
.brand .lg-pip .eye { animation-delay: 2.6s; }
@keyframes blinkeyes { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
/* things that float */
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes bob { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-5px) scale(1.02); } }
.face img { animation: float 6s ease-in-out infinite; }
.face:nth-child(2) img { animation-delay: -1s; } .face:nth-child(3) img { animation-delay: -2.2s; } .face:nth-child(4) img { animation-delay: -3.1s; } .face:nth-child(5) img { animation-delay: -4.4s; animation-duration: 4.5s; }
.char.bubble .pic img { animation: bob 4.5s ease-in-out infinite; }
/* the far light: a tiny light out on the sea that blinks three times, like in the film */
.farlight .banner::before, .page-head.tall::before {
  content: ""; position: absolute; z-index: -1; width: 120px; height: 120px; border-radius: 50%; right: 9%; top: 24%;
  background: radial-gradient(circle, rgba(255,222,170,.9) 0, rgba(255,200,130,.35) 12%, transparent 45%);
  animation: blink 6s infinite; pointer-events: none;
}
.page-head.tall::before { right: 12%; top: 30%; }
/* parallax: JS sets --py (pixels scrolled) on the page */
.hero-bg, .page-head img.bg { will-change: transform; transform: translate3d(0, calc(var(--py, 0) * .22px), 0); }
/* primary buttons get a slow shimmer */
.btn:not(.ghost) { position: relative; overflow: hidden; }
.btn:not(.ghost)::after { content: ""; position: absolute; top: -50%; bottom: -50%; width: 40%; left: -60%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.45), transparent); transform: skewX(-20deg); animation: shimmer 5s ease-in-out infinite; }
@keyframes shimmer { 0%, 70% { left: -60%; } 100% { left: 130%; } }
/* cards: a warm edge light follows the pointer */
.film, .char, .ep, .fact, .more-card { --mx: 50%; --my: 50%; }
.film::after, .char::after, .more-card::after, .ep.lead-ep::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(360px circle at var(--mx) var(--my), rgba(255,180,105,.16), transparent 60%);
}
.film:hover::after, .char:hover::after, .more-card:hover::after, .ep.lead-ep:hover::after { opacity: 1; }
.more-card::after { background: radial-gradient(360px circle at var(--mx) var(--my), rgba(255,180,105,.16), transparent 60%), linear-gradient(180deg, rgba(14,17,34,.1), rgba(14,17,34,.92)); opacity: 1; }
/* mobile view switch: the page shown inside a phone */
.phone-toggle {
  position: fixed; right: 18px; bottom: 18px; z-index: 60; display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.18); background: rgba(14,17,34,.8);
  color: #fff; font: 800 .85rem "Nunito"; cursor: pointer; backdrop-filter: blur(10px); box-shadow: 0 10px 30px rgba(0,0,0,.4);
  transition: transform .25s var(--ease), background .25s;
}
.phone-toggle:hover { transform: translateY(-2px); background: rgba(30,36,70,.9); }
.phone-toggle svg { width: 16px; height: 16px; }
.phone-shell { position: fixed; inset: 0; z-index: 55; display: grid; place-items: center; background: rgba(8,10,20,.86); backdrop-filter: blur(10px); animation: fadein .3s; }
@keyframes fadein { from { opacity: 0; } }
.phone-shell .phone {
  width: 390px; height: min(820px, 92vh); border-radius: 44px; padding: 12px; background: #0b0d18;
  box-shadow: 0 0 0 2px #2a2f4a, 0 40px 100px rgba(0,0,0,.7), inset 0 0 0 1px rgba(255,255,255,.08); position: relative; animation: popin .45s var(--ease);
}
@keyframes popin { from { opacity: 0; transform: translateY(30px) scale(.96); } }
.phone-shell .phone::before { content: ""; position: absolute; top: 20px; left: 50%; width: 110px; height: 26px; transform: translateX(-50%); border-radius: 14px; background: #0b0d18; z-index: 2; }
.phone-shell iframe { width: 100%; height: 100%; border: 0; border-radius: 34px; background: var(--night); }
.phone-shell .hint { position: absolute; bottom: 24px; left: 0; right: 0; text-align: center; color: var(--muted); font-weight: 700; font-size: .9rem; }
body.in-phone .phone-toggle { display: none; }
@media (max-width: 720px) { .phone-toggle { display: none; } }
/* reduced motion: no parallax, no page-wide movement, no shimmer; the gentle character touches stay */
@media (prefers-reduced-motion: reduce) {
  .hero h1 .w, .hero .kicker, .hero .lead, .hero .hero-actions, .page-head .kicker, .page-head h1, .page-head .lead, .page-head .hero-actions { opacity: 1; animation: none; transform: none; }
  .btn:not(.ghost)::after { animation: none; }
  .hero-bg, .page-head img.bg { transform: none; }
}

/* living portraits: short loops from the films */
video.clip { display: block; width: 100%; height: 100%; object-fit: cover; background: #0e1122; }
.face video.clip { width: min(100%, 170px); height: auto; aspect-ratio: 1; border-radius: 50%; border: 3px solid rgba(255,255,255,.12); box-shadow: 0 14px 34px rgba(0,0,0,.4); margin-bottom: 8px; transition: border-color .3s, transform .3s var(--ease); animation: float 6s ease-in-out infinite; }
.face:hover video.clip { border-color: var(--glow); }
.face.soon video.clip { border-color: rgba(231,170,240,.6); box-shadow: 0 0 30px rgba(231,170,240,.35), 0 14px 34px rgba(0,0,0,.4); }
.face:nth-child(2) video.clip { animation-delay: -1s; } .face:nth-child(3) video.clip { animation-delay: -2.2s; } .face:nth-child(4) video.clip { animation-delay: -3.1s; } .face:nth-child(5) video.clip { animation-delay: -4.4s; animation-duration: 4.5s; }
.char .pic video.clip { position: absolute; inset: 0; transition: transform .8s var(--ease); }
.char:hover .pic video.clip { transform: scale(1.04); }
.char.bubble .pic video.clip { animation: none; }
@media (prefers-reduced-motion: reduce) { .face video.clip { animation: none; } }

/* science page: Pip's colours, gallery; films page: story sheets */
.colours { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: center; margin-top: 72px; padding: 28px; border-radius: var(--radius); background: linear-gradient(135deg, rgba(247,160,141,.12), rgba(255,255,255,.03)); border: 1px solid rgba(247,160,141,.25); }
.colours-pic { position: relative; border-radius: 18px; overflow: hidden; aspect-ratio: 4/5; box-shadow: 0 30px 60px rgba(0,0,0,.4); }
.colours-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: filter 1.6s var(--ease), transform 1.6s var(--ease); }
.colours-pic.hurt img { filter: saturate(.15) hue-rotate(160deg) brightness(.8) contrast(.95); transform: scale(1.02); }
.colours-pic.pink img { animation: pinkback 1.4s var(--ease); }
@keyframes pinkback { 0% { filter: saturate(.15) hue-rotate(160deg) brightness(.8); } 60% { filter: saturate(1.35) brightness(1.08); } 100% { filter: none; } }
.mood-label { position: absolute; left: 14px; bottom: 14px; padding: 6px 12px; border-radius: 999px; background: rgba(10,12,26,.7); backdrop-filter: blur(6px); font-weight: 800; font-size: .85rem; }
.colours h2 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); color: #fff8ef; margin: 6px 0 14px; }
.colours p { color: #d6d0c6; }
.colours .actions { display: flex; flex-wrap: wrap; gap: 10px; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 240px; gap: 16px; }
.g { position: relative; display: block; border-radius: 18px; overflow: hidden; background: #0e1122; border: 1px solid rgba(255,255,255,.08); transition: transform .35s var(--ease), box-shadow .35s; }
.g:hover { transform: translateY(-4px); box-shadow: 0 24px 50px rgba(0,0,0,.45); }
.g img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.g:hover img { transform: scale(1.04); }
.g span { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 16px 12px; font-weight: 700; font-size: .9rem; background: linear-gradient(0deg, rgba(10,12,26,.8), transparent); }
.g.wide { grid-column: span 2; }
.g.tall { grid-row: span 2; }
.sheets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.sheet { position: relative; display: block; border-radius: 18px; overflow: hidden; aspect-ratio: 1; background: #0e1122; border: 1px solid rgba(255,255,255,.08); transition: transform .35s var(--ease), box-shadow .35s; }
.sheet:hover { transform: translateY(-4px); box-shadow: 0 24px 50px rgba(0,0,0,.45); }
.sheet img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.sheet span { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 16px 12px; font: 600 1.1rem "Fredoka"; background: linear-gradient(0deg, rgba(10,12,26,.85), transparent); }
.lightbox .frame.image { aspect-ratio: auto; display: grid; place-items: center; max-height: 84vh; }
.lightbox .frame.image img { max-width: 100%; max-height: 84vh; object-fit: contain; display: block; }
@media (max-width: 900px) { .colours { grid-template-columns: 1fr; } .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 200px; } .g.wide { grid-column: span 2; } .g.tall { grid-row: span 2; } .sheets { grid-template-columns: 1fr; } }

/* Pip wanders the whole science page, quietly, behind nothing and in nobody's way */
.wander { position: fixed; left: 0; top: 0; z-index: 45; width: 68px; height: 68px; pointer-events: none; will-change: transform; opacity: .96; }
.wander .wpip { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 14px 16px rgba(0,0,0,.4)); pointer-events: auto; cursor: pointer; transition: transform .6s var(--ease); transform-style: preserve-3d; backface-visibility: visible; }
.wander .wpip .arm { transform-box: fill-box; transform-origin: 50% 0; animation: swim 1.6s ease-in-out infinite; }
.wander .wpip .a1 { animation-delay: 0s; } .wander .wpip .a2 { animation-delay: -.4s; } .wander .wpip .a3 { animation-delay: -.8s; } .wander .wpip .a4 { animation-delay: -1.2s; }
.wander .wpip .a5 { animation-delay: -.2s; animation-duration: 1.9s; } .wander .wpip .a6 { animation-delay: -1s; animation-duration: 1.9s; } .wander .wpip .a7 { animation-delay: -.6s; animation-duration: 1.4s; } .wander .wpip .a8 { animation-delay: -1.3s; animation-duration: 1.4s; }
@keyframes swim { 0%, 100% { transform: rotate(-10deg) scaleY(1); } 50% { transform: rotate(10deg) scaleY(.93); } }
.wander .wpip .eye { transform-box: fill-box; transform-origin: center; animation: blinkeyes 4.8s infinite; }
body.in-phone .wander { display: none; }
@media (max-width: 720px) { .wander { width: 48px; height: 48px; } }

/* Clawd's corner on the science page */
.clawd-corner { margin-top: 84px; padding: 36px 32px 32px; border-radius: var(--radius); background: linear-gradient(160deg, rgba(255,180,105,.1), rgba(14,17,34,.2)); border: 1px solid rgba(255,180,105,.22); }
.clawd-corner .section-head { margin-bottom: 30px; }
.clawd-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 20px; align-items: stretch; }
.clawd-grid .pic { position: relative; aspect-ratio: 4/3; border-radius: 18px; overflow: hidden; margin: 0; border: 1px solid rgba(255,255,255,.08); box-shadow: 0 30px 60px rgba(0,0,0,.35); align-self: start; }
.clawd-grid .pic video.clip, .clawd-grid .pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.clawd-grid .pic figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 18px 14px; font-size: .88rem; font-weight: 700; background: linear-gradient(0deg, rgba(10,12,26,.8), transparent); }
.clawd-facts { display: grid; gap: 18px; align-content: start; }
.clawd-corner .fact { background: rgba(14,17,34,.45); }
@media (max-width: 900px) { .clawd-grid { grid-template-columns: 1fr; } .clawd-corner { padding: 24px 18px; } }

.jump { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 40px; }
.jump a { text-decoration: none; padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); color: #e6e1d8; font-weight: 700; font-size: .9rem; transition: background .2s, border-color .2s; }
.jump a:hover { background: rgba(255,180,105,.14); border-color: rgba(255,180,105,.4); }
html { scroll-padding-top: 90px; }

/* Clawd walks the bottom of the characters page */
.walkerbox { position: fixed; left: 0; bottom: 6px; z-index: 44; width: 100px; height: 78px; pointer-events: none; will-change: transform; }
.walkerbox .wclawd { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 10px 14px rgba(0,0,0,.45)); transition: transform .35s var(--ease); pointer-events: auto; cursor: pointer; }
.walkerbox.flip .wclawd { transform: scaleX(-1); }
.walkerbox .halo { animation: breathehalo 3.2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes breathehalo { 50% { transform: scale(1.08); opacity: .8; } }
.walkerbox .body { transform-box: fill-box; transform-origin: 50% 100%; }
.walkerbox.walking .body { animation: boxwaddle .56s ease-in-out infinite; }
@keyframes boxwaddle { 0%, 100% { transform: translateY(0) rotate(-1.5deg); } 50% { transform: translateY(-3px) rotate(1.5deg); } }
.walkerbox .feet rect { transform-box: fill-box; transform-origin: 50% 0; }
.walkerbox.walking .f1, .walkerbox.walking .f3 { animation: step .56s ease-in-out infinite; }
.walkerbox.walking .f2, .walkerbox.walking .f4 { animation: step .56s ease-in-out infinite; animation-delay: -.28s; }
@keyframes step { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px) translateX(2px); } }
.walkerbox .eye { transform-box: fill-box; transform-origin: center; animation: blinkeyes 5.2s infinite; }
.walkerbox .mouth { transform-box: fill-box; transform-origin: center; animation: mouthworry 7s ease-in-out infinite; }
@keyframes mouthworry { 0%, 40%, 100% { transform: scaleY(1); } 45%, 55% { transform: scaleY(1.9); } 60% { transform: scaleY(1); } }
body.in-phone .walkerbox { display: none; }
@media (max-width: 720px) { .walkerbox { width: 70px; height: 55px; } }
/* click Pip: she inks and goes grey-blue, then the pink comes back on purpose */
.wander.inking .wpip { animation: inkflash 2.6s var(--ease); }
@keyframes inkflash { 0% { filter: drop-shadow(0 14px 16px rgba(0,0,0,.4)); } 8% { filter: brightness(.3) saturate(0); transform: scale(.88); } 20%, 55% { filter: drop-shadow(0 14px 16px rgba(0,0,0,.4)) saturate(.15) hue-rotate(160deg) brightness(.85); } 100% { filter: drop-shadow(0 14px 16px rgba(0,0,0,.4)); } }
.wander.inking .arm { animation-duration: .35s; }
.wander.inking .eye { animation: none; transform: scaleY(.15); transition: transform .2s; }
.wander.inking::after { content: ""; position: absolute; left: 20%; top: 25%; width: 60%; height: 60%; border-radius: 50%; background: radial-gradient(circle, rgba(20,22,40,.9), rgba(20,22,40,0) 70%); animation: inkcloud 2.2s ease-out forwards; pointer-events: none; }
@keyframes inkcloud { 0% { transform: scale(.2); opacity: 0; } 15% { opacity: .95; } 100% { transform: scale(4); opacity: 0; } }
/* click Clawd: it screams, every time */
.walkerbox.scream .body, .walkerbox.scream .feet { animation: screamjump .5s var(--ease) 3; }
.walkerbox .feet { transform-box: fill-box; transform-origin: 50% 100%; }
.walkerbox.scream .feet rect { animation: none; }
@keyframes screamjump { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-14px) rotate(-3deg); } }
.walkerbox.scream .eye { animation: none; transform: scale(1.35); }
.walkerbox.scream .mouth { animation: none; transform: scale(1.8, 3.2); }
.walkerbox.scream .halo { animation: none; transform: scale(1.4); opacity: 1; }
/* holding hands: Pip's near front arm reaches over to Clawd's nub */
.wander.holding .wpip .a4 { animation: none; transform: rotate(-58deg) scaleY(1.15); transition: transform .5s var(--ease); }
.wander.holding .wpip .a1, .wander.holding .wpip .a2, .wander.holding .wpip .a3 { animation-duration: 3.2s; }
.walkerbox.holding .mouth { animation: none; transform: scaleY(.6) scaleX(1.4); }

/* home hero: a slow loop of the walk out, over the still */
.hero-bg .hero-vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; opacity: 0; transition: opacity 1.2s ease; }
.hero-bg .hero-vid.ready { opacity: 1; }
.hero-bg { overflow: hidden; }
/* Far Light: the light blinks three times, then the title arrives */
.page-head.tall h1 { animation-delay: 1.9s; }
.page-head.tall .lead { animation-delay: 2.1s; } .page-head.tall .hero-actions { animation-delay: 2.3s; } .page-head.tall .kicker { animation-delay: 1.7s; }
.page-head.tall::before { animation: firstblinks 1.8s ease-out 1, blink 6s 1.8s infinite !important; }
@keyframes firstblinks { 0%, 100% { opacity: .1; } 12%, 46%, 80% { opacity: 1; } 29%, 63% { opacity: .1; } }
/* Science: the header starts grey-blue and the pink comes back on purpose */
.page-head.pinkback img.bg { animation: pinkhead 2.6s var(--ease) .3s both; }
@keyframes pinkhead { from { filter: saturate(.15) hue-rotate(160deg) brightness(.75); } to { filter: none; } }
/* phone-view button sits above Clawd's lane */
.phone-toggle { bottom: 96px; }

/* coins page */
.coin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.coin { display: grid; grid-template-columns: 140px 1fr; gap: 22px; align-items: center; padding: 24px; border-radius: var(--radius); background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); }
.coin > img { width: 140px; height: 140px; border-radius: 50%; object-fit: cover; border: 3px solid rgba(255,180,105,.35); }
.coin-body { display: grid; gap: 8px; justify-items: start; min-width: 0; }
.coin h2 { font-size: 2rem; color: #fff8ef; }
.coin .label { margin: 4px 0 0; color: var(--muted); font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.ca { display: flex; gap: 8px; align-items: center; width: 100%; }
.ca code { flex: 1; min-width: 0; overflow-wrap: anywhere; font-size: .85rem; padding: 10px 12px; border-radius: 10px; background: rgba(0,0,0,.3); border: 1px solid rgba(255,255,255,.08); color: #f3eee6; }
.coin-note { margin-top: 32px; padding: 26px 30px; border-radius: var(--radius); background: rgba(247,160,141,.08); border: 1px solid rgba(247,160,141,.3); }
.coin-note h3 { font-size: 1.4rem; color: #fff8ef; margin-bottom: 10px; }
.coin-note ul { margin: 0; padding-left: 20px; color: #d6d0c6; display: grid; gap: 8px; }
.foot-nav a.quiet { color: var(--muted); font-weight: 600; font-size: .9rem; }
@media (max-width: 900px) { .coin-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .coin { grid-template-columns: 1fr; justify-items: center; text-align: center; } .coin-body { justify-items: center; } .ca { flex-direction: column; } }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .1s; } .reveal[data-delay="2"] { transition-delay: .2s; } .reveal[data-delay="3"] { transition-delay: .3s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-bg img, .brand svg, .blink, .scroll-hint::after, .char.bubble .pic::after { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .nav-links { display: none; position: fixed; top: 64px; left: 16px; right: 16px; flex-direction: column; background: rgba(14,17,34,.96); border: 1px solid rgba(255,255,255,.1); border-radius: 18px; padding: 10px; gap: 2px; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; }
  .nav-toggle { display: block; }
  .nav .btn { margin-left: auto; }
  .nav-toggle { margin-left: 0; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .film-grid { grid-template-columns: 1fr 1fr; }
  .film-grid .film.short { grid-column: span 2; }
  .char.pip { grid-column: span 6; }
  .char.clawd { grid-column: span 6; }
  .char.clawd .pic { aspect-ratio: 16/10; }
  .char.pebble, .char.crab { grid-column: span 6; }
  .char.bubble { grid-column: span 6; grid-template-columns: 1fr; }
  .char.bubble .pic { aspect-ratio: 16/10; min-height: 0; }
  .facts { grid-template-columns: 1fr 1fr; }
  .ep-grid { grid-template-columns: 1fr; }
  .ep.lead-ep { grid-row: auto; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  section { padding: 72px 0; }
  .nav .btn { display: none; }
  .nav-toggle { margin-left: auto; }
  .hero { padding-bottom: 64px; }
  .hero-bg img { object-position: 66% 40%; }
  .premise-grid, .making-grid { grid-template-columns: 1fr; gap: 28px; }
  .film-grid { grid-template-columns: 1fr; }
  .film-grid .film.short { grid-column: auto; grid-template-columns: 1fr; }

  .char-grid { grid-template-columns: 1fr; }
  .char.pip, .char.clawd, .char.pebble, .char.crab, .char.bubble { grid-column: auto; grid-row: auto; }
  .char.pip .pic { aspect-ratio: 4/3; }
  .facts { grid-template-columns: 1fr; }
  .chapters { grid-template-columns: 1fr; }
  .farlight .banner { min-height: 0; padding: 90px 0 70px; }
  .farlight .banner::after { background: linear-gradient(180deg, rgba(14,17,34,.55), rgba(14,17,34,.85) 60%, var(--night-2)); }
  .lightbox .close { top: auto; bottom: -46px; }
  .lightbox .title { top: auto; bottom: -44px; }
}
