/* ==========================================================
   BARRIER BREAKERS — event site
   One typeface, one accent colour, real photos.
   Nothing here that a reader does not need.
   ========================================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --ink: #0B0B0C;
    --paper: #FAFAF7;
    --white: #FFFFFF;
    --orange: #F25A27;
    --orange-ink: #C2410C;
    --muted: #5F5F5A;
    --line: rgba(11, 11, 12, .14);
    --paper-dim: rgba(250, 250, 247, .72);
    --paper-line: rgba(250, 250, 247, .16);
    --font: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --max: 1120px;
    --gutter: 2.5rem;
    --r: 6px;
}

html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 90px; }

body {
    font-family: var(--font);
    background: var(--paper);
    color: var(--ink);
    font-size: 18px;
    line-height: 1.55;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

::selection { background: var(--orange); color: #fff; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h1, h2, h3 { font-weight: 700; letter-spacing: -.03em; line-height: 1.08; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); letter-spacing: -.04em; line-height: 1; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.3rem; letter-spacing: -.02em; line-height: 1.2; }
p { text-wrap: pretty; }
.muted { color: var(--muted); }
.label { font-size: .95rem; font-weight: 600; color: var(--muted); }
.link { font-weight: 600; color: var(--orange-ink); text-decoration: none; }
.link:hover { text-decoration: underline; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 52px; padding: 0 24px;
    font: 600 1rem var(--font); text-decoration: none; cursor: pointer;
    border: 1.5px solid transparent; border-radius: var(--r);
    transition: background .15s, border-color .15s;
}
.btn-primary { background: var(--orange); color: var(--ink); }
.btn-primary:hover { background: #FF7243; }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: #2A2A2C; }
.btn-ghost { border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn[disabled] { opacity: .6; cursor: default; }

/* ---------- Home hero ---------- */
.hero { background: var(--ink); color: var(--paper); padding: 64px 0 72px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.hero .when { font-weight: 600; color: var(--orange); }
.hero h1 { font-size: clamp(3rem, 7vw, 5.4rem); letter-spacing: -.045em; line-height: .96; margin: 16px 0 22px; }
.hero .lede { font-size: 1.2rem; color: var(--paper-dim); max-width: 30em; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 30px; }
.hero-actions a:not(.btn) { color: var(--paper); font-weight: 600; }
.hero .note { margin-top: 26px; font-size: .98rem; color: var(--paper-dim); }
.hero-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r); }
.hero-photo figcaption { margin-top: 10px; font-size: .9rem; color: var(--paper-dim); }

/* ---------- Inner page head ---------- */
.page-head { padding: 64px 0 8px; }
.page-head h1 { margin-bottom: 16px; }
.page-head .lede { font-size: 1.2rem; color: var(--muted); max-width: 36em; }
.page-head .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 26px; }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section + .section { padding-top: 0; }
.head { margin-bottom: 32px; max-width: 40em; }
.head p { margin-top: 12px; color: var(--muted); }

/* ---------- Doors ---------- */
.doors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.door { display: flex; flex-direction: column; padding: 28px; border-radius: var(--r); text-decoration: none; background: var(--white); border: 1.5px solid var(--line); transition: border-color .15s; }
.door:hover { border-color: var(--ink); }
.door h3 { font-size: 1.9rem; letter-spacing: -.035em; margin: 6px 0 12px; }
.door p { color: var(--muted); font-size: 1rem; }
.door .link { margin-top: auto; padding-top: 22px; }

/* ---------- Photos ---------- */
.photos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r); }
.photos figcaption { margin-top: 10px; font-size: .95rem; }
.photos figcaption strong { display: block; }
.photos figcaption span { color: var(--muted); }

/* ---------- Winners / sponsors ---------- */
.winners { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.winners img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--r); }
.rank { list-style: none; margin: 20px 0 22px; border-top: 1.5px solid var(--ink); }
.rank li { display: grid; grid-template-columns: 52px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-weight: 600; }
.rank span { color: var(--muted); font-weight: 500; }
.thanks { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 44px; padding-top: 28px; border-top: 1px solid var(--line); }
.thanks img { height: 32px; width: auto; }
.thanks .person { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.thanks .person img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.thanks .btn { margin-left: auto; min-height: 46px; }

/* ---------- Steps, lists, cards ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.step-n { width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--paper); font-weight: 700; font-size: .95rem; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 1rem; }

.plain { list-style: none; border-top: 1.5px solid var(--ink); }
.plain li { display: grid; grid-template-columns: 240px 1fr; gap: 24px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.plain strong { font-weight: 700; }
.plain span { color: var(--muted); }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: var(--white); border: 1.5px solid var(--line); border-radius: var(--r); padding: 24px; }
.card h3 { margin: 4px 0 8px; }
.card p { color: var(--muted); font-size: 1rem; }
.score { font-size: 2.2rem; font-weight: 700; letter-spacing: -.04em; line-height: 1; color: var(--orange-ink); margin-bottom: 10px; }

/* ---------- Sponsor ---------- */
.tiers strong { font-size: 1.5rem; letter-spacing: -.03em; }
.tiers em { display: block; font-style: normal; font-size: .95rem; font-weight: 600; letter-spacing: 0; color: var(--muted); }
.sponsors li { align-items: center; }
.sponsors img { height: 34px; width: auto; }
.sponsors .person { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.sponsors .person img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }

/* ---------- Past winners ---------- */
.rank small { display: block; font-size: .92rem; font-weight: 400; color: var(--muted); }
.people { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px 20px; }
.people img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; margin-bottom: 10px; }
.people strong { display: block; }
.people span { display: block; font-size: .95rem; color: var(--muted); }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r); }
.gallery a:hover img { opacity: .88; }

/* ---------- Prizes ---------- */
.prizes { display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; }
.prize-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.prize-row:last-of-type { border-bottom: 0; }
.prize-row span { color: var(--muted); }
.prize-row b { font-size: 1.25rem; letter-spacing: -.02em; }
.prize-row.first b { font-size: 2rem; letter-spacing: -.04em; color: var(--orange-ink); }
.prize-side { display: grid; gap: 16px; align-content: start; }
.fine { font-size: .92rem !important; margin-top: 12px; }

/* ---------- Schedule ---------- */
.timeline { border-top: 1.5px solid var(--ink); }
.t-row { display: grid; grid-template-columns: 210px 1fr; gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.t-time { font-weight: 600; font-variant-numeric: tabular-nums; }
.t-row p { color: var(--muted); margin-top: 4px; max-width: 42em; font-size: 1rem; }
.t-row.key { background: #FFF1EA; margin: 0 -16px; padding-left: 16px; padding-right: 16px; border-radius: var(--r); border-bottom-color: transparent; }

.two { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.two h2 { margin-bottom: 18px; }
.bullets { list-style: none; display: grid; gap: 12px; }
.bullets li { position: relative; padding-left: 20px; color: var(--muted); font-size: 1rem; }
.bullets li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }
.bullets strong { color: var(--ink); }

/* ---------- Deck & documents ---------- */
.deck-frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; background: #111; border: 1.5px solid var(--line); }
.deck-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.deck-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 16px; }
.deck-bar p { color: var(--muted); font-size: 1rem; }
.docs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.doc { display: flex; flex-direction: column; padding: 24px; border-radius: var(--r); text-decoration: none; background: var(--white); border: 1.5px solid var(--line); transition: border-color .15s; }
.doc:hover { border-color: var(--ink); }
.doc h3 { margin-bottom: 8px; }
.doc p { color: var(--muted); font-size: 1rem; }
.doc .link { margin-top: auto; padding-top: 18px; }

/* ---------- Notify ---------- */
.cta { background: var(--orange); color: var(--ink); padding: 64px 0; }
.cta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.cta h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -.045em; line-height: 1; }
.cta p { color: rgba(11, 11, 12, .85); }
.notify { display: grid; grid-template-columns: 1fr 150px; gap: 10px; margin-top: 18px; }
.notify .btn { grid-column: 1 / -1; }
.notify-input { min-height: 52px; padding: 0 16px; font: 500 1rem var(--font); color: var(--ink); background: #fff; border: 1.5px solid transparent; border-radius: var(--r); width: 100%; }
.notify-input:focus { outline: none; border-color: var(--ink); }
.notify.error #notifyEmail { border-color: #7F1D1D; }
.notify-hp { position: absolute; left: -9999px; }
.notify-msg { grid-column: 1 / -1; font-size: .95rem; font-weight: 600; }
.notify-done { margin-top: 18px; padding: 16px 18px; background: var(--ink); color: var(--paper) !important; border-radius: var(--r); }
.cta .btn { margin-top: 18px; }
.cta .notify .btn { margin-top: 0; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    .hero-grid, .winners, .cta-grid, .two, .prizes { grid-template-columns: 1fr; gap: 32px; }
    .doors, .cards, .docs, .steps { grid-template-columns: 1fr; }
    .steps { gap: 28px; }
    .photos, .people, .gallery { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    :root { --gutter: 1.15rem; }
    body { font-size: 17px; }
    .section { padding: 52px 0; }
    .hero { padding: 40px 0 48px; }
    .page-head { padding-top: 40px; }
    .hero-actions .btn, .cta .btn { width: 100%; }
    .plain li, .t-row { grid-template-columns: 1fr; gap: 2px; }
    .notify { grid-template-columns: 1fr; }
    .thanks .btn { margin-left: 0; width: 100%; }
}
