/* ============================================================================
   THE LAST SHORE — Kubo Pictures
   A fictional competition format. Satire aimed at the PRODUCTION, not the cast.
   ========================================================================= */

:root {
  --ink:   #04070b;
  --ink2:  #080d13;
  --ink3:  #0d141c;
  --line:  rgba(255, 255, 255, .10);
  --line2: rgba(255, 255, 255, .18);
  --bone:  #f4efe6;
  --dim:   #8b98a5;
  --dimmer:#5d6a77;
  --coral: #ff5a36;
  --sea:   #35d6bf;
  --sand:  #e8c88a;

  --pad: clamp(16px, 4vw, 56px);
  --max: 1320px;
  --r: 14px;

  --display: ui-sans-serif, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--display);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* a faint grain, so flat colour reads as film rather than as a template */
body::after {
  content: '';
  position: fixed; inset: 0; z-index: 999; pointer-events: none; opacity: .16;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='150' height='150'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/></filter><rect width='150' height='150' filter='url(%23n)' opacity='.5'/></svg>");
  mix-blend-mode: overlay;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* ── type ─────────────────────────────────────────────────────────────── */
.display {
  font-weight: 900;
  letter-spacing: -.035em;
  line-height: .88;
  text-transform: uppercase;
  margin: 0;
}
h1.display { font-size: clamp(52px, 13vw, 168px); }
h2.display { font-size: clamp(32px, 6vw, 76px); }
h3.display { font-size: clamp(20px, 2.6vw, 30px); letter-spacing: -.02em; line-height: 1.05; }

.kicker {
  font: 600 11px/1 var(--mono);
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--coral);
}
.lede { font-size: clamp(17px, 2vw, 22px); color: #d8dee6; max-width: 62ch; }
.dim { color: var(--dim); }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }

/* ── shell ────────────────────────────────────────────────────────────── */
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-inline: var(--pad); }
section { padding-block: clamp(56px, 9vw, 128px); }
.hr { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ── top bar ──────────────────────────────────────────────────────────── */
.bar {
  position: sticky; top: 0; z-index: 60;
  background: rgba(4, 7, 11, .72);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.bar-in { display: flex; align-items: center; gap: 20px; height: 62px; }
.mark { display: flex; align-items: baseline; gap: 9px; }
.mark b { font-weight: 900; letter-spacing: -.03em; font-size: 19px; text-transform: uppercase; }
.mark span { font: 600 10px/1 var(--mono); letter-spacing: .26em; color: var(--dim); text-transform: uppercase; }
.nav { margin-left: auto; display: flex; gap: 22px; align-items: center; }
.nav a { font-size: 13px; color: var(--dim); transition: color .18s; }
.nav a:hover { color: var(--bone); }
@media (max-width: 760px) { .nav a:not(.cta) { display: none; } }

.cta {
  font: 700 12px/1 var(--display); letter-spacing: .1em; text-transform: uppercase;
  background: var(--coral); color: #12060a; padding: 11px 18px; border-radius: 999px;
  transition: transform .16s, box-shadow .16s;
}
.cta:hover { transform: translateY(-1px); box-shadow: 0 8px 30px -8px var(--coral); }

/* ── hero ─────────────────────────────────────────────────────────────── */
.hero { position: relative; min-height: min(92vh, 900px); display: flex; align-items: flex-end; overflow: hidden; padding-block: 0; }
.hero-scene { position: absolute; inset: 0; }
.hero-scene svg { width: 100%; height: 100%; }
.hero-fade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(4,7,11,.72) 0%, rgba(4,7,11,.15) 34%, rgba(4,7,11,.86) 78%, var(--ink) 100%),
    radial-gradient(120% 80% at 18% 88%, rgba(255,90,54,.14), transparent 60%);
}
.hero-in { position: relative; width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--pad) clamp(36px, 7vw, 84px); }
.hero h1 { margin: 14px 0 0; }
.hero h1 em { font-style: normal; color: var(--coral); }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 26px; align-items: center; margin-top: 26px; }
.pill { border: 1px solid var(--line2); border-radius: 999px; padding: 7px 14px; font: 600 11px/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: #cfd8e2; }

/* countdown */
.count { display: flex; gap: 10px; margin-top: 28px; }
.count div { min-width: 74px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.03); padding: 10px 12px; text-align: center; }
.count b { display: block; font: 900 26px/1 var(--display); font-variant-numeric: tabular-nums; }
.count span { font: 600 9px/1 var(--mono); letter-spacing: .2em; color: var(--dimmer); text-transform: uppercase; }

/* ── generic blocks ───────────────────────────────────────────────────── */
.grid { display: grid; gap: clamp(14px, 2vw, 22px); }
.g2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.g4 { grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); }

.card {
  border: 1px solid var(--line); border-radius: var(--r);
  background: linear-gradient(180deg, var(--ink3), var(--ink2));
  padding: clamp(16px, 2.4vw, 26px);
}
.card h3 { margin: 0 0 8px; }
.card p { margin: 0; color: var(--dim); font-size: 14.5px; }

.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(22px, 3.4vw, 40px); }
.head p { margin: 12px 0 0; }

/* ── the crate (immunity) ─────────────────────────────────────────────── */
.crate { border: 1px solid rgba(232,200,138,.35); background: linear-gradient(160deg, rgba(232,200,138,.10), rgba(4,7,11,0) 60%); }
.crate .box { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.crate-art { width: 132px; flex: none; }

/* ── the views counter ────────────────────────────────────────────────── */
.views { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 26px;
  border: 1px solid var(--line2); border-radius: 999px; padding: 9px 16px; width: max-content; max-width: 100%;
  background: rgba(255,255,255,.03); }
.views-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--coral); flex: none;
  box-shadow: 0 0 10px var(--coral); animation: rec 1.7s ease-in-out infinite; }
.views span:not(.views-dot), .views b { font: 600 11px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; }
.views b { color: var(--bone); font-variant-numeric: tabular-nums; font-size: 13px; }
.views-note { color: var(--dimmer); letter-spacing: .08em !important; text-transform: none !important;
  font-family: var(--display) !important; font-size: 12px !important; }
@media (prefers-reduced-motion: reduce) { .views-dot { animation: none } }

/* ── the fine print ───────────────────────────────────────────────────── */
.hoax {
  border: 1px dashed rgba(255,255,255,.22); border-radius: var(--r);
  background: repeating-linear-gradient(-45deg, rgba(255,255,255,.014) 0 12px, transparent 12px 24px);
  padding: clamp(16px, 2.6vw, 28px);
}
.hoax-head { margin: 0 0 12px; font: 700 10.5px/1 var(--mono); letter-spacing: .3em;
  text-transform: uppercase; color: var(--dimmer); }
.hoax-lead { margin: 0 0 12px; font-weight: 900; text-transform: uppercase; letter-spacing: -.02em;
  font-size: clamp(20px, 3.4vw, 34px); color: var(--coral); }
.hoax-p { margin: 0 0 10px; font-size: 12px; line-height: 1.85; color: var(--dimmer); max-width: 84ch; }
.hoax-p:last-child { margin-bottom: 0; }
.hoax-tail { margin: 14px 0 0; font-size: 10.5px; color: #46505b; letter-spacing: .04em; }

/* ── how this happened ────────────────────────────────────────────────── */
.step { position: relative; overflow: hidden; }
.step-no {
  position: absolute; top: -10px; right: 6px; margin: 0;
  font: 900 76px/1 var(--display); color: rgba(255,255,255,.045); letter-spacing: -.05em;
}
.step .mono { color: var(--sand); }
.deliv { border: 1px solid var(--line); border-radius: var(--r); background: var(--ink2);
  padding: clamp(16px, 2.6vw, 26px); }
.deliv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 9px 22px; }
.deliv-item { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: #d5dce4; line-height: 1.5; }
.deliv-item .tick { color: var(--sea); font-weight: 800; flex: none; }

/* ── the sign-off ─────────────────────────────────────────────────────── */
.signoff {
  border: 1px solid rgba(255,90,54,.35); border-radius: var(--r);
  background:
    radial-gradient(120% 140% at 12% 0%, rgba(255,90,54,.14), transparent 58%),
    linear-gradient(180deg, var(--ink3), var(--ink2));
  padding: clamp(26px, 5vw, 64px);
}
.signoff-in { max-width: 900px; }
.signoff-line {
  margin: 14px 0 0; font-weight: 900; letter-spacing: -.035em; line-height: .95;
  text-transform: uppercase; font-size: clamp(38px, 8.2vw, 104px); color: var(--bone);
}
.signoff-line em { font-style: normal; color: var(--coral); }

/* ── the presenter ────────────────────────────────────────────────────── */
.host {
  display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  gap: clamp(20px, 3.4vw, 44px); align-items: center;
  border: 1px solid var(--line); border-radius: var(--r);
  background: linear-gradient(140deg, rgba(255,138,58,.07), rgba(4,7,11,0) 62%);
  padding: clamp(18px, 3vw, 34px);
}
@media (max-width: 820px) { .host { grid-template-columns: minmax(0, 1fr); } }
/*
 * ⚠️⚠️ SQUARE, NOT 3:4 (fixed 2026-10-04). Rid: *"the image of kubu is to stretched vertically."*
 *
 * ⭐ MEASURED FIRST: the geometry was NOT distorted. Scaling the original to the card's box and
 * differencing the pixels gave a best fit of 483x644 against a 489x652 box — a 1.2% difference, i.e.
 * resampling noise, not a stretch (a real stretch reads 40-80 on that metric).
 *
 * ⭐ The problem was FRAMING. A 3:4 box showing a chest-up selfie puts the head in the top half and
 * **25% of the frame is torso below it**, which reads as a long, narrow portrait. A presenter card
 * should be head-and-shoulders.
 *
 * ⚠️ The face was measured first, not guessed: the head spans 0.25-0.69 of the image height with the
 * image at AR 0.75. On a square box, `cover` shows 75% of the height, and `object-position: 50% 38%`
 * lands that band on 0.095-0.845 — which contains the whole head with margin above and below.
 * ⭐ No distortion either way: `cover` crops, it never scales an axis independently.
 */
.host-shot { position: relative; border-radius: 12px; overflow: hidden; border: 1px solid var(--line2);
  aspect-ratio: 1 / 1; background: var(--ink3); }
.host-shot img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 38%; display: block; }
.host-shot svg { width: 100%; height: auto; }

/* ⭐ the studio-card furniture, laid OVER the photo: a nameplate and a blinking tally light */
.host-plate {
  position: absolute; left: 14px; bottom: 14px; z-index: 2;
  font: 800 15px/1 var(--display); letter-spacing: .22em; text-transform: uppercase;
  background: rgba(4,7,11,.62); backdrop-filter: blur(6px);
  padding: 9px 14px; border-radius: 7px; border: 1px solid rgba(255,255,255,.16);
}
.host-rec {
  position: absolute; top: 12px; right: 14px; z-index: 2; width: 11px; height: 11px; border-radius: 50%;
  background: var(--coral); box-shadow: 0 0 12px var(--coral); animation: rec 1.7s ease-in-out infinite;
}
@keyframes rec { 0%,100% { opacity: 1 } 50% { opacity: .18 } }
@media (prefers-reduced-motion: reduce) { .host-rec { animation: none } }

/* a gradient foot so the nameplate always sits on something readable */
.host-shot::after {
  content: ''; position: absolute; inset: auto 0 0 0; height: 40%; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(4,7,11,0) 0%, rgba(4,7,11,.72) 100%);
}
.host-copy { min-width: 0; }
.host-lines { margin-top: 20px; display: grid; gap: 10px; }
.host-line {
  margin: 0; padding: 11px 14px; border-left: 2px solid var(--line2);
  background: rgba(255,255,255,.025); border-radius: 0 8px 8px 0;
  font-size: 14px; color: #cfd8e2; font-style: italic; line-height: 1.55;
}
.host-line::before { content: ''; }
.host-line:nth-child(even) { border-left-color: rgba(255,90,54,.5); }

/* ── Kubo's link-in, on a trial page ──────────────────────────────────── */
.host-inline { display: flex; gap: 16px; align-items: flex-start; border: 1px solid var(--line);
  border-left: 3px solid var(--sand); border-radius: 10px; padding: 16px 18px;
  background: linear-gradient(120deg, rgba(232,200,138,.06), rgba(4,7,11,0) 70%); }
.host-inline .host-bug { width: 46px; flex: none; }
.host-say { margin: 0; font-size: 15.5px; color: #dbe2ea; line-height: 1.6; font-style: italic; }

/* ── cast ─────────────────────────────────────────────────────────────── */
.cast { display: grid; grid-template-columns: repeat(auto-fill, minmax(184px, 1fr)); gap: clamp(10px, 1.6vw, 18px); }
.person { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--ink2); position: relative; transition: border-color .2s, transform .2s; }
.person:hover { border-color: var(--line2); transform: translateY(-2px); }
.person .pic { aspect-ratio: 4/5; background: var(--ink3); position: relative; }
.person .pic svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.person .no { position: absolute; top: 8px; left: 10px; font: 700 11px/1 var(--mono); color: rgba(255,255,255,.55); letter-spacing: .1em; }
.person .body { padding: 11px 12px 13px; }
.person .nm { font-weight: 700; font-size: 14.5px; letter-spacing: -.01em; }
.person .tr { font: 600 9.5px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--coral); margin-top: 5px; }
.person .fr { font-size: 11.5px; color: var(--dimmer); margin-top: 4px; }
.person .bio { font-size: 12px; color: var(--dim); margin-top: 9px; line-height: 1.5; max-height: 0; overflow: hidden; transition: max-height .3s ease, opacity .3s; opacity: 0; }
.person:hover .bio, .person:focus-within .bio { max-height: 180px; opacity: 1; }

/* ── trials ───────────────────────────────────────────────────────────── */
.trial { display: grid; grid-template-columns: 88px 1fr auto; gap: clamp(12px, 2vw, 26px); align-items: center;
  border: 1px solid var(--line); border-radius: var(--r); padding: clamp(14px, 2vw, 22px);
  background: linear-gradient(90deg, var(--ink3), var(--ink2)); transition: border-color .2s, background .2s; }
.trial:hover { border-color: var(--line2); background: linear-gradient(90deg, #101923, var(--ink2)); }
.trial .day { text-align: center; }
.trial .day b { display: block; font: 900 30px/1 var(--display); font-variant-numeric: tabular-nums; }
.trial .day span { font: 600 9px/1 var(--mono); letter-spacing: .2em; color: var(--dimmer); text-transform: uppercase; }
.trial .tg { font: 600 10px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--sea); }
.trial h3 { margin: 7px 0 6px; }
.trial p { margin: 0; color: var(--dim); font-size: 14px; max-width: 66ch; }
.trial .go { font: 700 12px/1 var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); border: 1px solid var(--line2); border-radius: 999px; padding: 10px 16px; white-space: nowrap; }
.trial:hover .go { color: var(--bone); border-color: var(--bone); }
@media (max-width: 720px) { .trial { grid-template-columns: 60px 1fr; } .trial .go { grid-column: 2; justify-self: start; } }

/* ── sponsors ─────────────────────────────────────────────────────────── */
.sponsors { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.sp { background: var(--ink2); padding: 22px 20px; }
.sp b { display: block; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; font-size: 13px; }
.sp i { display: block; font-style: normal; font-size: 12px; color: var(--dimmer); margin-top: 7px; }

/* ── rules / paperwork ────────────────────────────────────────────────── */
.doc { border: 1px solid var(--line); border-radius: var(--r); background: var(--ink2); padding: clamp(18px, 3vw, 34px); }
.doc ol { counter-reset: r; list-style: none; padding: 0; margin: 0; }
.doc ol li { counter-increment: r; position: relative; padding-left: 44px; margin-bottom: 15px; color: #d5dce4; font-size: 14.5px; }
.doc ol li::before {
  content: counter(r, decimal-leading-zero);
  position: absolute; left: 0; top: 1px; font: 700 11px/1.5 var(--mono); color: var(--coral); letter-spacing: .1em;
}
.doc ol li b { color: var(--bone); }
.fine { font-size: 11.5px; color: var(--dimmer); line-height: 1.75; }

/* ── footer ───────────────────────────────────────────────────────────── */
footer { border-top: 1px solid var(--line); padding-block: 44px 60px; }
.foot-grid { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; align-items: flex-start; }
.foot-note { max-width: 62ch; }

/* ── reveal motion ────────────────────────────────────────────────────── */
.rv { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.3,1); }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none; } }
