:root {
  --ground: #f3f7fd;
  --ground-2: #e8effb;
  --white: #ffffff;
  --ink: #0c1736;
  --ink-2: #3b4768;
  --line: #d3def2;
  --cobalt: #2354f0;
  --cobalt-deep: #1a3fc0;
  --cyan: #19b8ee;
  --orange: #ff8a2b;
  --magenta: #f0467f;
  --violet: #7048f2;
  --ribbon: linear-gradient(90deg, #2354f0 0%, #19b8ee 24%, #ff8a2b 52%, #f0467f 76%, #7048f2 100%);
  --tint-1: #e3ebff;
  --tint-2: #dcf4fd;
  --tint-3: #ffecda;
  --tint-4: #ffe2ed;
  --tint-5: #eae4ff;
  --display: "Sora", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --body: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --bar: 60px;
  --top: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--top) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cobalt-deep); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }

::selection { background: var(--cobalt); color: var(--white); }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; border-radius: 4px; }
input { caret-color: var(--cobalt); }
html { scrollbar-color: #9fb4e6 var(--ground-2); }
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--ground-2); }
::-webkit-scrollbar-thumb { background: #9fb4e6; border-radius: 8px; border: 3px solid var(--ground-2); }

.wrap { width: min(1160px, 100% - 48px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 12px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 700; font-size: 1rem; letter-spacing: -0.005em;
  background: var(--cobalt); color: var(--white); text-decoration: none;
  padding: 16px 28px; border-radius: 999px; min-height: 52px;
  box-shadow: 0 10px 24px -10px rgba(35, 84, 240, 0.6), 0 2px 4px rgba(12, 23, 54, 0.12);
  transition: background-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.btn:hover { background: var(--ink); color: var(--white); transform: translateY(-2px); box-shadow: 0 14px 28px -12px rgba(12, 23, 54, 0.6), 0 2px 4px rgba(12, 23, 54, 0.12); }
.btn:active { transform: translateY(0); }
.btn-small { padding: 10px 20px; min-height: 44px; font-size: 0.95rem; }
.btn-light { background: var(--white); color: var(--ink); box-shadow: 0 12px 28px -12px rgba(0, 0, 0, 0.5); }
.btn-light:hover { background: var(--tint-3); color: var(--ink); }

/* ---------- top bar ---------- */
.top {
  position: sticky; top: 0; z-index: 40; height: var(--top);
  display: flex; align-items: center; gap: 24px; padding: 0 clamp(16px, 3vw, 40px);
  background: var(--white); border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); margin-right: auto; font-family: var(--display); font-weight: 700; font-size: 1rem; letter-spacing: -0.01em; }
.brand img { border-radius: 10px; }
.top-nav { display: flex; gap: 28px; }
.top-nav a { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 0.97rem; padding: 8px 0; border-bottom: 2px solid transparent; transition: color 0.2s, border-color 0.2s; }
.top-nav a:hover, .top-nav a[aria-current="true"] { color: var(--ink); border-bottom-color: var(--cobalt); }

/* ---------- hero ---------- */
.hero { width: min(1100px, 100% - 32px); margin: clamp(20px, 3.4vw, 40px) auto 0; padding-block: 0 clamp(8px, 2vw, 24px); }
.screen {
  margin: 0; border-radius: clamp(14px, 2vw, 24px); overflow: hidden; background: var(--white);
  box-shadow: 0 30px 64px -34px rgba(35, 70, 170, 0.5), 0 3px 8px rgba(35, 70, 170, 0.1);
  font-size: 0; line-height: 0;
}
.screen img { width: 100%; height: auto; }
.hero-row { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); align-items: center; padding: clamp(28px, 4vw, 52px) clamp(4px, 2vw, 24px) 0; }
.hero-lead { margin: 0; font-family: var(--display); font-weight: 600; font-size: clamp(1.25rem, 2.1vw, 1.7rem); line-height: 1.3; letter-spacing: -0.02em; text-wrap: balance; max-width: 22em; }
.hero-act { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.hero-when { margin: 0; color: var(--ink-2); font-weight: 500; line-height: 1.55; }

/* ---------- shared ---------- */
section { padding-block: clamp(72px, 10vw, 136px); }
.h2 { margin: 0 0 clamp(32px, 5vw, 56px); font-family: var(--display); font-weight: 800; font-size: clamp(2.1rem, 5vw, 3.9rem); line-height: 1.06; letter-spacing: -0.03em; text-wrap: balance; max-width: 18ch; }
.pull { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(2.5rem, 6.2vw, 5rem); line-height: 1; letter-spacing: -0.035em; }
.pull span { display: block; white-space: nowrap; }
.prose p { margin: 0 0 1.15em; max-width: 62ch; }
.prose-end { font-family: var(--display); font-weight: 700; font-size: 1.3rem; line-height: 1.35; letter-spacing: -0.015em; color: var(--ink); }

/* ---------- idea ---------- */
.idea-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.idea .pull { position: sticky; top: calc(var(--top) + 40px); }

/* ---------- rules ---------- */
.rules { background: var(--white); border-block: 1px solid var(--line); }
.rules-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); }
.fits, .nofit { border-radius: 22px; padding: clamp(24px, 3.4vw, 44px); }
.fits { background: var(--tint-1); }
.nofit { background: var(--tint-3); }
.rules h3, .paper h3, .checker h3 { margin: 0 0 20px; font-family: var(--display); font-weight: 700; font-size: 1.3rem; letter-spacing: -0.015em; }
.ticklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.ticklist li { position: relative; padding-left: 40px; }
.ticklist li::before { content: ""; position: absolute; left: 0; top: 0.2em; width: 24px; height: 24px; border-radius: 50%; background-position: center; background-repeat: no-repeat; background-size: 14px; }
.ticklist.yes li::before { background-color: var(--cobalt); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2.5 7.4l3 3 6-6.6' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.ticklist.no li::before { background-color: var(--ink); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3.5 3.5l7 7M10.5 3.5l-7 7' fill='none' stroke='white' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); }

.checker { margin-top: clamp(28px, 4vw, 48px); border: 1px solid var(--line); border-radius: 22px; padding: clamp(24px, 3.4vw, 44px); background: var(--ground); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 40px; align-items: end; }
.checker h3 { grid-column: 1 / -1; margin-bottom: 0; }
.checker-hint { grid-column: 1 / -1; margin: 0 0 16px; color: var(--ink-2); }
.checker-fields { display: flex; align-items: flex-end; gap: 12px; grid-column: 2; grid-row: 3 / span 2; }
.checker label span { display: block; font-size: 0.85rem; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.checker input { width: 96px; height: 64px; font: 700 2rem/1 var(--display); text-align: center; color: var(--ink); background: var(--white); border: 2px solid var(--line); border-radius: 14px; font-variant-numeric: tabular-nums; -moz-appearance: textfield; transition: border-color 0.2s; }
.checker input::-webkit-outer-spin-button, .checker input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.checker input:focus { outline: none; border-color: var(--cobalt); box-shadow: 0 0 0 4px rgba(35, 84, 240, 0.18); }
.checker input::placeholder { color: #66759c; }
.colon { font: 700 2rem/64px var(--display); color: var(--ink-2); }
.meter { grid-column: 1; grid-row: 3; position: relative; height: 14px; border-radius: 999px; background: var(--ground-2); border: 1px solid var(--line); align-self: center; margin-top: 8px; overflow: visible; }
.meter-fill { position: absolute; inset: 0; width: 100%; border-radius: 999px; background: var(--ribbon); transform: scaleX(0); transform-origin: left center; transition: transform 0.5s var(--ease), background-color 0.3s; }
.meter-fill.over { background: var(--magenta); }
.meter-cap { position: absolute; right: -1px; top: 18px; font: 600 0.8rem/1 var(--display); color: var(--ink-2); }
.checker-out { grid-column: 1; grid-row: 4; margin: 28px 0 0; font-family: var(--display); font-weight: 700; font-size: 1.15rem; line-height: 1.35; min-height: 1.6em; }
.checker-out.ok { color: var(--cobalt-deep); }
.checker-out.bad { color: #b01846; }

.paper { margin-top: clamp(36px, 5vw, 64px); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(20px, 5vw, 80px); }
.paper h3 { margin: 0; }
.paper p { margin: 0; max-width: 62ch; color: var(--ink-2); }

/* ---------- awards: film strips ---------- */
.awards { overflow: hidden; }
.reel { margin-top: clamp(16px, 2vw, 28px); background: var(--ink); position: relative; }
.strip-feature { margin-top: 0; }
.perf { height: 26px; background-color: var(--ink); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='26'%3E%3Crect x='12' y='8' width='16' height='10' rx='3' fill='%23f3f7fd'/%3E%3C/svg%3E"); background-repeat: repeat-x; background-position: center; }
.frames { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding: 0 clamp(12px, 2vw, 28px); }
.strip-feature .frames { grid-template-columns: 1fr; }
.frame { border-radius: 10px; padding: clamp(22px, 2.4vw, 32px); min-height: 200px; display: flex; flex-direction: column; gap: 10px; color: var(--ink); }
.frame h3 { margin: 0; font-family: var(--display); font-weight: 700; font-size: 1.28rem; line-height: 1.15; letter-spacing: -0.02em; }
.frame p { margin: 0; color: #2f3a5a; font-size: 0.98rem; line-height: 1.5; }
.t1 { background: var(--tint-1); } .t2 { background: var(--tint-2); } .t3 { background: var(--tint-3); } .t4 { background: var(--tint-4); } .t5 { background: var(--tint-5); }
.frame-top { background: var(--white); min-height: 0; flex-direction: row; align-items: baseline; justify-content: space-between; gap: 24px 48px; flex-wrap: wrap; padding: clamp(28px, 4vw, 52px) clamp(24px, 4vw, 56px); position: relative; overflow: hidden; }

.frame-top h3 { font-weight: 800; font-size: clamp(1.9rem, 4.4vw, 3.4rem); letter-spacing: -0.03em; }
.frame-top p { font-size: 1.15rem; max-width: 30ch; color: var(--ink-2); }

/* ---------- event ---------- */
.event-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.event .h2 { max-width: 12ch; }
.event-date { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(1.6rem, 2.9vw, 2.3rem); line-height: 1.1; letter-spacing: -0.03em; }
.event-time { margin: 8px 0 28px; font-family: var(--display); font-weight: 600; font-size: clamp(1.4rem, 2.6vw, 2rem); color: var(--cobalt-deep); letter-spacing: -0.02em; }
.event-addr { font-style: normal; font-size: 1.2rem; line-height: 1.6; margin-bottom: 20px; }
.link-arrow { font-family: var(--display); font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--cobalt); padding-bottom: 2px; color: var(--ink); }
.link-arrow::after { content: "\2192"; margin-left: 10px; display: inline-block; transition: transform 0.25s var(--ease); }
.link-arrow:hover { color: var(--cobalt-deep); }
.link-arrow:hover::after { transform: translateX(5px); }
.beats { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: none; }
.beats li { position: relative; padding: 26px 0 26px 56px; border-top: 1px solid var(--line); }
.beats li:last-child { border-bottom: 1px solid var(--line); }
.beats li::before { content: ""; position: absolute; left: 4px; top: 32px; width: 22px; height: 16px; border-radius: 4px; background: var(--ribbon); }
.beats strong { font-family: var(--display); font-weight: 700; letter-spacing: -0.01em; display: block; margin-bottom: 4px; font-size: 1.15rem; }

/* ---------- submit / wrap ---------- */
.submit { background: var(--ink); color: var(--white); padding-bottom: calc(48px + var(--bar)); }
.submit-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.pull-light { color: var(--white); font-size: clamp(2.4rem, 5.4vw, 4.4rem); }
.submit-copy p { max-width: 46ch; color: #c7d2ee; margin: 28px 0 36px; }
.submit-act { display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: center; }
.mail { color: var(--white); font-family: var(--display); font-weight: 600; text-underline-offset: 0.3em; }
.mail:hover { color: #ffd2a8; }
.poster { background: var(--white); border-radius: 28px; padding: clamp(10px, 1.6vw, 18px); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.6); transform: rotate(2.2deg); max-width: 420px; justify-self: end; }
.poster img { border-radius: 18px; width: 100%; }
.fine { margin: clamp(56px, 8vw, 104px) 0 0; text-align: center; color: #8d9bc4; font-size: 0.9rem; }

/* ---------- transport (the page as a 5:00 film) ---------- */
.transport {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; height: var(--bar);
  display: flex; align-items: center; gap: 16px; padding: 0 clamp(14px, 3vw, 40px);
  background: var(--white); border-top: 1px solid var(--line); box-shadow: 0 -10px 30px -18px rgba(12, 23, 54, 0.4);
}
.t-play { color: var(--ink); flex: none; }
.t-time { font-family: var(--display); font-weight: 700; font-size: 0.95rem; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; min-width: 6.8em; text-align: left; flex: none; }
.t-chapter { flex: none; min-width: 8.5em; text-align: right; font-size: 0.92rem; font-weight: 600; color: var(--ink-2); }
.t-track { position: relative; flex: 1; height: 44px; cursor: pointer; touch-action: none; border-radius: 8px; }
.t-rail { position: absolute; left: 0; right: 0; top: 50%; height: 8px; margin-top: -4px; background: var(--ground-2); border-radius: 999px; border: 1px solid var(--line); overflow: hidden; }
.t-fill { height: 100%; width: 0; background: var(--ribbon); background-size: var(--rail-w, 100%) 100%; background-repeat: no-repeat; border-radius: 999px; }
.t-head { position: absolute; top: 50%; left: 0; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: var(--white); border: 4px solid var(--cobalt); box-shadow: 0 2px 8px rgba(12, 23, 54, 0.35); pointer-events: none; }
.t-track:focus-visible .t-head { box-shadow: 0 0 0 5px rgba(35, 84, 240, 0.28); }
.t-chapters a { position: absolute; top: 0; bottom: 0; width: 28px; margin-left: -14px; display: flex; align-items: center; justify-content: center; text-decoration: none; }
.t-chapters i { display: block; width: 3px; height: 20px; border-radius: 2px; background: var(--ink); opacity: 0.55; transform-origin: center; transition: opacity 0.2s, transform 0.25s var(--ease), background-color 0.2s; }
.t-chapters a:hover i, .t-chapters a:focus-visible i, .t-chapters a.is-on i { opacity: 1; transform: scaleY(1.3); background: var(--cobalt); }
.t-chapters a::after { content: attr(data-label); position: absolute; bottom: calc(100% + 4px); left: 50%; transform: translate(-50%, 4px); background: var(--ink); color: var(--white); font-size: 0.8rem; font-weight: 600; padding: 5px 10px; border-radius: 8px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.25s var(--ease); }
.t-chapters a:hover::after, .t-chapters a:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }

/* ---------- motion ---------- */
.reveal-ready .frame { opacity: 0; transform: translateX(36px); }
.reveal-ready .reel.in .frame { opacity: 1; transform: none; transition: opacity 0.7s var(--ease), transform 0.9s var(--ease); }
.reveal-ready .reel.in .frame:nth-child(2) { transition-delay: 0.08s; }
.reveal-ready .reel.in .frame:nth-child(3) { transition-delay: 0.16s; }
.reveal-ready .reel.in .frame:nth-child(4) { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal-ready .frame { opacity: 1; transform: none; }
  .btn, .link-arrow::after, .meter-fill, .t-chapters i, .t-chapters a::after { transition: none; }
  .poster { transform: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .top-nav { display: none; }
  .idea-grid, .rules-grid, .paper, .event-grid, .submit-grid, .hero-row { grid-template-columns: 1fr; }
  .idea .pull { position: static; }
  .frames { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .poster { justify-self: start; max-width: 320px; }
  .checker { grid-template-columns: 1fr; }
  .checker-fields { grid-column: 1; grid-row: auto; margin: 8px 0 24px; }
  .meter { grid-column: 1; grid-row: auto; }
  .checker-out { grid-row: auto; }
}
@media (max-width: 600px) {
  :root { --top: 60px; --bar: 56px; }
  .wrap { width: calc(100% - 32px); }
  .brand span { font-size: 0.95rem; }
  .frames { grid-template-columns: 1fr; }
  .frame { min-height: 0; }
  .t-chapter { display: none; }
  .t-time { min-width: 6.2em; font-size: 0.88rem; }
  .t-play { display: none; }
  .checker input { width: 84px; height: 58px; }
}
@media (max-width: 480px) {
  .pull span { white-space: normal; }
  .pull { font-size: clamp(2.1rem, 10vw, 2.5rem); }
  .pull-light { font-size: clamp(2rem, 9vw, 2.4rem); }
  .event-date { font-size: 1.55rem; }
}
