/* Homepage: near-black, with lime for the things that matter. */
.home section { position: relative; }
.home-section { padding-block: var(--section); }

/* Hero */
.hero { position: relative; display: flex; flex-direction: column; min-height: 100svh; overflow: clip; }
.hero-visual { position: absolute; inset: 0; background: url('/assets/hero-plate.webp') center / cover no-repeat; }
.hero-visual::before { content: ''; position: absolute; inset: 0; background: radial-gradient(52% 62% at 70% 46%, rgba(180, 246, 93, .13), transparent 72%); }
.hero-visual::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--ink) 2%, rgba(13, 16, 11, .82) 30%, rgba(13, 16, 11, 0) 58%), linear-gradient(0deg, var(--ink) 0, rgba(13, 16, 11, 0) 30%), linear-gradient(180deg, rgba(13, 16, 11, .92) 0, rgba(13, 16, 11, .6) 8%, rgba(13, 16, 11, 0) 20%); pointer-events: none; }
.hero-visual canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .6s ease; }
.hero-visual canvas.is-live { opacity: 1; }
.hero-visual.is-3d { background-image: none; }
.hero-main { position: relative; z-index: 2; display: grid; justify-items: start; gap: clamp(18px, 2.2vw, 28px); margin-top: auto; padding-top: 112px; }
.hero-title { max-width: 11ch; font-size: clamp(44px, 7.1vw, 124px); line-height: .98; }
.hero-title span { display: block; color: var(--lime); }
.hero-copy { max-width: 45ch; font-size: clamp(18px, 1.45vw, 22px); line-height: 1.45; color: rgba(244, 245, 239, .84); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.hero-foot { position: relative; z-index: 2; margin-top: clamp(30px, 5vh, 56px); padding-bottom: clamp(20px, 3.4vh, 36px); }
@media (min-aspect-ratio: 23/20) { .hero-facts, .hero-status { max-width: min(52vw, 860px); } }
.hero-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 clamp(16px, 2.4vw, 40px); padding-top: 18px; border-top: 1px solid var(--hairline); }
.hero-facts div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 2px; }
.hero-facts dd { font-weight: 800; font-stretch: 125%; font-size: clamp(26px, 2.8vw, 44px); line-height: 1.05; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.hero-facts dt { font-size: 15px; color: var(--muted-on-ink); }
.hero-status { max-width: 88ch; margin-top: 16px; font-size: 14.5px; line-height: 1.45; color: var(--muted-on-ink); }
@media (max-aspect-ratio: 23/20) {
  .hero-visual { bottom: auto; height: 64svh; background-image: url('/assets/hero-plate-phone.webp'); }
  .hero-visual::before { background: radial-gradient(90% 60% at 64% 44%, rgba(180, 246, 93, .15), transparent 72%); }
  .hero-visual::after { background: linear-gradient(0deg, var(--ink) 0, rgba(13, 16, 11, .72) 18%, rgba(13, 16, 11, 0) 42%), linear-gradient(180deg, rgba(13, 16, 11, .88) 0, rgba(13, 16, 11, 0) 20%); }
  .hero-main { margin-top: 0; padding-top: 50svh; }
}
@media (max-width: 560px) {
  .hero-actions { width: 100%; }
  .hero-actions .button { flex: 1 1 100%; }
  .hero-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 14px; }
}

/* Panels */
.panel-glass { border: 1px solid var(--hairline); border-radius: var(--radius-l); background: linear-gradient(180deg, rgba(244, 245, 239, .055), rgba(244, 245, 239, .018)); }

/* Scoring */
.score .section-title { max-width: 18ch; }
.score .lede { margin-top: 24px; }
.sim { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(20px, 3vw, 44px); margin-top: clamp(36px, 5vw, 72px); padding: clamp(14px, 1.6vw, 22px); }
.sim-controls { display: grid; align-content: start; gap: 26px; padding: clamp(14px, 2vw, 30px); }
.control { min-width: 0; margin: 0; padding: 0; border: 0; }
.control > label, .control > legend { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; width: 100%; padding: 0; margin-bottom: 10px; font-weight: 500; font-size: 17px; }
.control output { font-weight: 700; font-stretch: 110%; font-size: 17px; color: var(--accent); white-space: nowrap; font-variant-numeric: tabular-nums; }
input[type='range'] { --fill: 50%; appearance: none; -webkit-appearance: none; width: calc(100% - 4px); height: 40px; margin: 0 2px; background: transparent; cursor: pointer; }
input[type='range']::-webkit-slider-runnable-track { height: 6px; border-radius: 999px; background: linear-gradient(to right, var(--accent) var(--fill), rgba(244, 245, 239, .16) var(--fill)); }
input[type='range']::-moz-range-track { height: 6px; border-radius: 999px; background: linear-gradient(to right, var(--accent) var(--fill), rgba(244, 245, 239, .16) var(--fill)); }
input[type='range']::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -10px; border: 0; border-radius: 50%; background: var(--bone); box-shadow: 0 2px 10px rgba(0, 0, 0, .5), 0 0 0 5px rgba(180, 246, 93, .22); transition: box-shadow .2s; }
input[type='range']::-moz-range-thumb { width: 26px; height: 26px; border: 0; border-radius: 50%; background: var(--bone); box-shadow: 0 2px 10px rgba(0, 0, 0, .5), 0 0 0 5px rgba(180, 246, 93, .22); }
input[type='range']:hover::-webkit-slider-thumb { box-shadow: 0 2px 10px rgba(0, 0, 0, .5), 0 0 0 8px rgba(180, 246, 93, .3); }
input[type='range']:focus-visible { outline: none; }
input[type='range']:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px var(--ink), 0 0 0 5px var(--lime); }
input[type='range']:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 3px var(--ink), 0 0 0 5px var(--lime); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips label { flex: 1 1 0; min-width: 44px; cursor: pointer; }
.chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chips span { display: flex; align-items: center; justify-content: center; min-height: 46px; border: 1px solid var(--line-strong); border-radius: var(--radius-s); font-weight: 600; font-stretch: 105%; font-size: 16px; transition: background-color .16s, color .16s, border-color .16s; }
.chips label:hover span { border-color: var(--bone); }
.chips input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }
.chips input:focus-visible + span { outline: 2px solid var(--lime); outline-offset: 2px; }

.board { align-self: stretch; display: flex; flex-direction: column; padding: clamp(22px, 2.6vw, 38px); border-radius: 18px; box-shadow: 0 30px 90px rgba(180, 246, 93, .13); }
.board-score { display: flex; align-items: flex-end; gap: 12px; }
.board-number { font-style: italic; font-weight: 800; font-stretch: 112%; font-size: clamp(80px, 9.4vw, 158px); line-height: .86; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.board-of { padding-bottom: .3em; font-weight: 650; font-stretch: 110%; font-size: clamp(18px, 1.7vw, 24px); }
.board-tape { display: flex; gap: 3px; height: 14px; margin-top: 22px; }
.board-tape > span { position: relative; overflow: hidden; border-radius: 3px; background: rgba(17, 21, 14, .16); }
.board-tape i { position: absolute; inset: 0; background: #11150e; transform-origin: left; transition: transform .5s var(--ease-out); }
.board-parts { display: grid; gap: 0; margin-top: 22px; }
.board-parts div { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.board-parts dt { font-weight: 500; font-size: 15.5px; }
.board-parts dd { font-weight: 700; font-size: 15.5px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.board-tip { margin-top: auto; padding-top: 18px; min-height: 3.4em; font-weight: 600; font-size: 17px; line-height: 1.35; }

.sim-compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.sim-compare-title { grid-column: 1 / -1; margin-top: 12px; font-weight: 500; color: var(--muted); }
.compare { display: flex; align-items: center; gap: 18px; padding: 16px 22px; border: 1px solid var(--hairline); border-radius: 16px; background: rgba(244, 245, 239, .025); font-weight: 400; font-size: 16.5px; line-height: 1.3; text-align: left; cursor: pointer; transition: border-color .18s, background-color .18s; }
.compare:hover { border-color: var(--line-strong); }
.compare.is-active { border-color: var(--lime); background: rgba(180, 246, 93, .07); }
.compare-score { flex: none; min-width: 2.2em; font-style: italic; font-weight: 800; font-stretch: 112%; font-size: 36px; line-height: 1; letter-spacing: -.03em; color: var(--accent); font-variant-numeric: tabular-nums; }
.score .note { margin-top: 18px; }
.sim-share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 16px; }
.sim-share .note { margin: 0; }
.share-dialog { width: min(980px, calc(100% - 28px)); max-height: calc(100dvh - 28px); padding: clamp(16px, 2.4vw, 28px); border: 1px solid var(--hairline-strong); border-radius: 20px; background: var(--ink-raised); color: var(--bone); overflow: auto; }
.share-dialog::backdrop { background: rgba(5, 7, 4, .86); }
.share-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 18px; margin-bottom: 16px; }
.share-head h2 { font-size: clamp(22px, 2.4vw, 32px); font-stretch: 118%; }
.share-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 300px); align-items: start; gap: clamp(16px, 2.4vw, 28px); }
.share-preview { display: grid; place-items: center; min-width: 0; }
.share-preview canvas { width: auto; max-width: 100%; height: auto; max-height: min(72dvh, 760px); border-radius: 12px; border: 1px solid var(--hairline); }
.share-side { display: grid; gap: 14px; }
.share-side .note { margin: 0; }
.share-side .note:empty { display: none; }
.share-actions { display: grid; gap: 8px; }
@media (max-width: 720px) {
  .share-body { grid-template-columns: 1fr; }
  .share-preview canvas { max-height: 56dvh; }
}
@media (max-width: 980px) {
  .sim { grid-template-columns: 1fr; }
  .board { order: -1; position: sticky; top: 72px; z-index: 3; }
  .board-parts, .board-tip { display: none; }
  .board-number { font-size: 72px; }
  .board { padding: 16px 18px; }
  .board-tape { margin-top: 12px; }
  .sim-compare { grid-template-columns: 1fr; }
}

/* Goals */
.goals { border-top: 1px solid var(--hairline); }
.goal-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 88px); align-items: center; }
.goal-grid .lede { margin-top: 24px; }
.goal-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.goal-tabs button { min-height: 46px; padding: 0 20px; border: 1px solid var(--line-strong); border-radius: 999px; background: transparent; font-weight: 600; font-stretch: 105%; font-size: 15.5px; cursor: pointer; transition: background-color .16s, color .16s, border-color .16s; }
.goal-tabs button:hover { border-color: var(--bone); }
.goal-tabs button[aria-selected='true'] { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }
.goal-panel { padding: clamp(22px, 2.6vw, 38px); }
.goal-measure { font-size: 17px; line-height: 1.45; color: var(--muted); }
.goal-result { display: flex; align-items: flex-end; gap: 14px; margin-top: 22px; }
.goal-result strong { font-style: italic; font-weight: 800; font-stretch: 112%; font-size: clamp(64px, 7vw, 108px); line-height: .9; letter-spacing: -.035em; color: var(--accent); font-variant-numeric: tabular-nums; }
.goal-result span { padding-bottom: .5em; font-size: 16.5px; line-height: 1.3; }
.goal-ends { display: flex; justify-content: space-between; gap: 16px; margin-top: 24px; font-weight: 500; font-size: 15px; color: var(--muted); }
.goal-panel .note { margin-top: 12px; }
@media (max-width: 900px) { .goal-grid { grid-template-columns: 1fr; } }

/* Season tape */
.season { padding-top: var(--section); overflow: clip; border-top: 1px solid var(--hairline); }
.season-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 22px 32px; }
.season-head .section-title { max-width: 14ch; }
.season-picker { display: flex; flex-wrap: wrap; gap: 8px; }
.season-picker button { min-height: 44px; padding: 0 18px; border: 1px solid var(--line-strong); border-radius: 999px; background: transparent; font-weight: 600; font-stretch: 105%; font-size: 15px; cursor: pointer; transition: background-color .16s, color .16s, border-color .16s; }
.season-picker button:hover { border-color: var(--bone); }
.season-picker button[aria-pressed='true'] { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }
.season-stage { position: relative; margin-top: clamp(28px, 4vw, 48px); }
.season-readout { display: none; }
.season-events { display: grid; width: min(var(--wrap), calc(100% - var(--gutter) * 2)); margin-inline: auto; }
.season-event { display: grid; grid-template-columns: minmax(120px, 190px) 1fr; gap: 4px 24px; padding: 18px 0; border-top: 1px solid var(--line); }
.season-event time { font-weight: 650; font-stretch: 105%; font-size: 16px; line-height: 1.35; color: var(--accent); }
.season-event h3 { font-size: 20px; }
.season-event p { grid-column: 2; max-width: 56ch; color: var(--muted); font-size: 16px; line-height: 1.4; }
.season-note { padding: 24px 0 var(--section); }
.season-band { display: none; }

/* With scripts and motion on, the list becomes a tape that passes under a fixed needle. */
.season.is-tape .season-stage { height: min(68svh, 640px); min-height: 500px; margin-top: 12px; }
.season.is-tape .season-readout { position: absolute; left: max(var(--gutter), calc((100% - var(--wrap)) / 2)); top: 0; z-index: 3; display: block; pointer-events: none; }
.season-day { font-style: italic; font-weight: 800; font-stretch: 112%; font-size: clamp(50px, 7vw, 112px); line-height: .96; letter-spacing: -.03em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.season-banked { margin-top: 6px; font-size: 16px; color: var(--muted); }
.season-banked span { font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; }
.season.is-tape .season-rail { position: absolute; inset: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.season.is-tape .season-rail::after { content: ''; position: absolute; left: var(--needle, 30%); top: calc(62% - 14px); height: 72px; width: 3px; border-radius: 2px; background: var(--lime); box-shadow: 0 0 22px rgba(180, 246, 93, .8); z-index: 2; }
.season.is-tape .season-track { position: absolute; left: 0; top: 0; width: var(--tape-length, 3000px); height: 100%; will-change: transform; }
.season.is-tape .season-band { position: absolute; left: 0; right: 0; top: 62%; display: block; height: 44px; border-block: 1px solid var(--hairline); background-color: rgba(244, 245, 239, .03); background-image: repeating-linear-gradient(90deg, rgba(244, 245, 239, .3) 0 1px, transparent 1px var(--day-width, 34px)); background-size: 100% 9px; background-repeat: no-repeat; }
.season-band b { position: absolute; left: var(--at); top: 15px; padding-left: 8px; border-left: 1px solid rgba(244, 245, 239, .5); font-weight: 600; font-stretch: 105%; font-size: 13.5px; line-height: 26px; white-space: nowrap; color: var(--muted); }
.season.is-tape .season-events { position: absolute; inset: 0; display: block; width: 100%; height: 100%; margin: 0; }
.season.is-tape .season-event { position: absolute; left: var(--at); display: block; width: 300px; padding: 0 0 0 14px; border: 0; border-left: 1px solid var(--line-strong); transition: border-color .25s; }
.season.is-tape .season-event[data-lane='above'] { bottom: 38%; padding-bottom: 14px; }
.season.is-tape .season-event[data-lane='below'] { top: calc(62% + 44px); padding-top: 14px; }
.season.is-tape .season-event p { font-size: 15px; }
.season.is-tape .season-event.is-past { border-left-color: var(--lime); }
.season.is-tape .season-event h3 { margin: 3px 0 5px; font-size: 19px; }
@media (max-width: 640px) {
  .season.is-tape .season-stage { height: 74svh; }
  .season.is-tape .season-event { width: 232px; }
}

/* The three feature sections: food log, prize, judging */
.be { border-top: 1px solid var(--hairline); overflow: clip; }
.be-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 110px); align-items: center; }
.be-title { font-size: clamp(50px, 7.6vw, 132px); }
.be-title em { font-style: normal; color: var(--lime); }
.be-lede { margin-top: 22px; max-width: 28ch; font-weight: 650; font-stretch: 110%; font-size: clamp(22px, 2.1vw, 32px); line-height: 1.18; letter-spacing: -.012em; }
.be-copy > p:not(.be-lede) { margin-top: 18px; max-width: 54ch; color: var(--muted); }
.be-copy .button, .be-copy .text-link { display: inline-flex; margin-top: 26px; }
@media (max-width: 900px) { .be-grid { grid-template-columns: 1fr; } }

/* Phones showing the real app */
.phones { --phone: clamp(214px, 21vw, 340px); position: relative; display: flex; justify-content: center; min-height: calc(var(--phone) * 2.4 + 44px); }
.phones::before { content: ''; position: absolute; inset: 8% 2%; border-radius: 50%; background: radial-gradient(closest-side, rgba(180, 246, 93, .2), transparent); }
.phone { position: absolute; width: var(--phone); padding: clamp(6px, .7vw, 10px); border: 1px solid rgba(244, 245, 239, .16); border-radius: clamp(30px, 3.2vw, 50px); background: #1a1e16; box-shadow: 0 50px 100px rgba(0, 0, 0, .55); }
.phone img { width: 100%; height: auto; border-radius: clamp(24px, 2.6vw, 42px); }
.phone-front { left: 50%; top: 0; z-index: 2; transform: translateX(-84%); }
.phone-back { left: 50%; top: 7%; transform: translateX(-4%) rotate(5deg); opacity: .9; }
.phones figcaption { position: absolute; bottom: 0; left: 0; right: 0; z-index: 3; text-align: center; font-size: 14.5px; color: var(--muted); }

/* Prize */
.be-financed { isolation: isolate; }
.guilloche { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; }
.ticket { display: grid; grid-template-columns: 1fr 1fr; background: rgba(13, 16, 11, .72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.ticket > div { padding: clamp(20px, 2.6vw, 38px); }
.ticket > div + div { border-left: 1px dashed var(--line-strong); }
.ticket dt { font-size: 15.5px; color: var(--muted); }
.ticket dd { margin-top: 8px; font-style: italic; font-weight: 800; font-stretch: 112%; font-size: clamp(38px, 4.6vw, 76px); line-height: 1; letter-spacing: -.03em; color: var(--accent); white-space: nowrap; }
.ticket-note { grid-column: 1 / -1; padding: 14px clamp(20px, 2.6vw, 38px); border-top: 1px solid var(--hairline); font-size: 14.5px; color: var(--muted); }

/* Judging */
.judges { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.judges > div { padding: clamp(20px, 2.2vw, 32px); }
.judges h3 { padding-bottom: 12px; font-size: clamp(19px, 1.5vw, 23px); }
.judges li { padding: 11px 0; border-top: 1px solid var(--hairline); font-size: 16.5px; line-height: 1.35; }
.judges .is-yes h3 { color: var(--lime); }
@media (max-width: 560px) { .judges { grid-template-columns: 1fr; } }

/* Questions */
.faq { border-top: 1px solid var(--hairline); }
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 28px clamp(32px, 6vw, 96px); align-items: start; }
.faq-list details { border-top: 1px solid var(--hairline); }
.faq-list details:last-child { border-bottom: 1px solid var(--hairline); }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 68px; padding: 16px 0; font-weight: 600; font-stretch: 105%; font-size: clamp(18px, 1.5vw, 21px); line-height: 1.25; cursor: pointer; list-style: none; transition: color .2s; }
.faq-list summary:hover { color: var(--lime); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ''; flex: none; width: 14px; height: 14px; background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat, linear-gradient(currentColor, currentColor) center / 2px 100% no-repeat; transition: transform .28s var(--ease-out); }
.faq-list details[open] summary::after { transform: rotate(135deg); }
.faq-list details p { max-width: 62ch; padding-bottom: 22px; color: var(--muted); }
@media (max-width: 860px) { .faq-grid { grid-template-columns: 1fr; } }

/* Closing */
.close { padding-bottom: clamp(56px, 7vw, 110px); }
.close-panel { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px 48px; padding: clamp(28px, 5vw, 80px); border-radius: 28px; }
.close-kicker { margin-bottom: 14px; font-size: clamp(15px, 1.2vw, 18px); font-weight: 800; letter-spacing: .02em; }
.close-title { max-width: 16ch; font-size: clamp(36px, 5.6vw, 96px); }
.close-dates { margin-top: 16px; max-width: 44ch; font-size: clamp(17px, 1.4vw, 21px); font-weight: 500; line-height: 1.4; }

.season-tools { display: grid; justify-items: start; gap: 10px; }
@media (min-width: 900px) { .season-tools { justify-items: end; } }
