/* ============================================================
   Aussie Boys Racing
   ============================================================ */
:root {
  --ink: #050b1f;
  --ink-2: #0a1430;
  --ink-3: #14224a;
  --line: rgba(255, 255, 255, 0.09);
  --text: #f3f1ea;
  --muted: #a9b3c9;
  --green: #1f5fd6;    /* bright flag blue (highlights) */
  --green-deep: #012169;  /* flag blue */
  --gold: #ff2a45;     /* flag red (main accent) */
  --on-accent: #ffffff; /* text on red */
  --red: #ff3b30;
  --radius: 16px;
  --display: "Anton", Impact, sans-serif;
  --condensed: "Barlow Condensed", "Arial Narrow", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }
body {
  font-family: "Barlow", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  background: var(--ink);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: var(--gold); }
code { background: var(--ink-3); padding: 0.1em 0.45em; border-radius: 4px; color: var(--gold); font-size: 0.9em; }

h1, h2 { font-family: var(--display); font-weight: 400; text-transform: uppercase; line-height: 0.92; letter-spacing: 0.01em; }
h2 { font-size: clamp(2.6rem, 6.5vw, 4.4rem); }
h1 span, h2 span { color: var(--gold); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--condensed); font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.24em; font-size: 0.85rem; color: var(--gold); margin-bottom: 0.8rem;
}
.eyebrow::before { content: ""; width: 28px; height: 4px; background: var(--gold); transform: skewX(-30deg); }

.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.section { padding: clamp(72px, 10vw, 120px) 0; position: relative; }
.section-dark { background: var(--ink-2); }
.section-head { margin-bottom: 2.4rem; }
.section-head-row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1.2rem; }
.section-cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.section-cta:empty { display: none; }
.empty { color: var(--muted); padding: 2rem; border: 2px dashed var(--line); border-radius: var(--radius); text-align: center; grid-column: 1 / -1; }

/* Scroll reveal (only when JS is on) */
.js .reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* Chequered flag strip */
.checker {
  height: 24px;
  background: conic-gradient(#f3f1ea 25%, var(--ink) 0 50%, #f3f1ea 0 75%, var(--ink) 0) 0 0 / 24px 24px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--condensed); font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.08em; font-size: 1.1rem; text-decoration: none; line-height: 1;
  padding: 1rem 1.9rem; border: 0; cursor: pointer;
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  transition: transform 0.2s, background 0.2s, color 0.2s;
}
.btn:hover { transform: translateY(-3px); }
.btn-primary { background: var(--gold); color: var(--on-accent); }
.btn-primary:hover { background: #fff; color: var(--green-deep); }
.btn-ghost { color: var(--text); background: rgba(255, 255, 255, 0.12); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: var(--green); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px max(16px, calc((100% - 1180px) / 2));
  transition: padding 0.3s, box-shadow 0.3s;
}
/* Blur on a pseudo-element so the full-screen mobile menu isn't trapped inside the header */
.nav::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(5, 11, 31, 0.86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  opacity: 0; transition: opacity 0.3s;
}
.nav.scrolled::before { opacity: 1; }
.nav.scrolled { padding-top: 10px; padding-bottom: 10px; box-shadow: 0 3px 0 var(--gold); }
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--text); }
.brand-mark {
  width: 46px; height: 46px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: var(--gold); color: var(--green-deep);
  font-family: var(--display); font-size: 1.05rem;
  box-shadow: 0 0 0 3px var(--ink), 0 0 0 5px var(--gold);
}
.brand-text { font-family: var(--display); font-size: 1.45rem; text-transform: uppercase; letter-spacing: 0.04em; text-shadow: 0 2px 10px rgba(0,0,0,0.5); }
.brand-text span { color: var(--gold); }

.nav-links { display: flex; align-items: center; gap: 1.8rem; }
.nav-links a {
  font-family: var(--condensed); font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
  color: #e8e8e0; text-decoration: none; position: relative; padding: 0.3rem 0; text-shadow: 0 2px 10px rgba(0,0,0,0.6);
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 3px; width: 0;
  background: var(--gold); transition: width 0.25s;
}
.nav-links a:hover { color: #fff; }
.nav-links a:hover::after { width: 100%; }
.nav-links .nav-cta {
  background: var(--gold); color: var(--on-accent); padding: 0.45rem 1.1rem; text-shadow: none;
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}
.nav-links .nav-cta::after { display: none; }
.nav-links .nav-cta:hover { background: #fff; color: var(--ink); }

.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; position: relative; }
.nav-toggle span { position: absolute; left: 9px; right: 9px; height: 3px; background: var(--text); transition: 0.3s; }
.nav-toggle span:nth-child(1) { top: 13px; }
.nav-toggle span:nth-child(2) { top: 20px; }
.nav-toggle span:nth-child(3) { top: 27px; }
.nav-open .nav-toggle span:nth-child(1) { top: 20px; transform: rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { top: 20px; transform: rotate(-45deg); }

@media (max-width: 820px) {
  .brand-text { font-size: 1.2rem; }
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; inset: 0; z-index: -1;
    flex-direction: column; justify-content: center; gap: 2rem;
    background: rgba(5, 11, 31, 0.98);
    opacity: 0; pointer-events: none; transition: opacity 0.25s;
  }
  .nav-links a { font-size: 2rem; }
  .nav-open .nav-links { opacity: 1; pointer-events: auto; }
}

/* ---------- Hero (full photo) ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; overflow: hidden; padding: 120px 0 100px; }
.hero-photo {
  position: absolute; inset: 0;
  background: var(--ink-3) center 60% / cover no-repeat;
  animation: drift 26s ease-in-out infinite alternate;
}
.hero-photo::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(5,11,31,0.92) 0%, rgba(5,11,31,0.65) 45%, rgba(5,11,31,0.15) 100%),
    linear-gradient(0deg, rgba(5,11,31,0.9) 0%, transparent 35%),
    linear-gradient(180deg, rgba(5,11,31,0.6) 0%, transparent 20%);
}
@keyframes drift { from { transform: scale(1.04); } to { transform: scale(1.12) translateX(-1.5%); } }
.hero-content { position: relative; z-index: 2; }

/* No photo set: coloured backdrop instead of a blank grey box */
.hero-photo:not([style]), .links-banner:not([style]) {
  background:
    radial-gradient(900px circle at 75% 45%, rgba(31, 95, 214, 0.32), transparent 60%),
    radial-gradient(650px circle at 5% 95%, rgba(255, 42, 69, 0.14), transparent 60%),
    var(--ink);
  animation: none;
}
.hero-photo:not([style])::after, .links-banner:not([style])::after { display: none; }

/* Big logo in the hero when there's no hero photo */
.hero-logo {
  position: absolute; z-index: 1; right: max(16px, calc((100% - 1180px) / 2)); top: 50%;
  width: min(33vw, 440px); height: auto; transform: translateY(-50%) rotate(3deg);
  border-radius: 24px; box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.9), 0 0 0 6px rgba(255, 255, 255, 0.06);
  animation: logoFloat 6s ease-in-out infinite;
}
@keyframes logoFloat { 50% { transform: translateY(calc(-50% - 12px)) rotate(1deg); } }
@media (max-width: 900px) {
  .hero-has-logo { flex-direction: column; justify-content: center; }
  .hero-has-logo .hero-logo { position: relative; right: auto; top: auto; transform: rotate(3deg); width: min(62vw, 300px); margin: 0 auto 1.6rem; order: -1; animation: none; }
}
.hero h1 { font-size: clamp(3.6rem, 11vw, 8.6rem); margin-bottom: 1.4rem; text-shadow: 0 10px 50px rgba(0, 0, 0, 0.6); }
.tagline {
  font-family: var(--condensed); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  font-size: clamp(1.2rem, 2.4vw, 1.55rem); color: #e6e4dc; margin-bottom: 2.2rem; text-shadow: 0 2px 12px rgba(0,0,0,0.6);
}
.tagline strong { color: var(--gold); }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.scroll-cue {
  position: absolute; bottom: 30px; left: 50%; z-index: 2;
  width: 26px; height: 42px; margin-left: -13px;
  border: 2px solid rgba(255, 255, 255, 0.6); border-radius: 14px;
}
.scroll-cue::after {
  content: ""; position: absolute; left: 50%; top: 8px;
  width: 4px; height: 8px; margin-left: -2px; border-radius: 2px;
  background: var(--gold); animation: cue 1.8s infinite;
}
@keyframes cue { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(14px); } }

/* ---------- Social stats band (main page) ---------- */
.social-band { background: var(--ink-2); border-bottom: 1px solid var(--line); padding: 1.4rem 0; }
.social-band-inner { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.8rem 2.6rem; }
.sb-item { display: grid; grid-template-columns: auto auto; grid-template-rows: auto auto; column-gap: 0.75rem; align-items: center; text-decoration: none; color: var(--text); }
.sb-icon { grid-row: span 2; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--ink-3); color: var(--gold); transition: background 0.2s, color 0.2s; }
.sb-icon svg { width: 22px; height: 22px; fill: currentColor; }
.sb-num { font-family: var(--display); font-size: 2rem; line-height: 1; }
.sb-label { font-family: var(--condensed); font-weight: 800; text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.78rem; color: var(--muted); }
a.sb-item:hover .sb-icon { background: var(--gold); color: var(--on-accent); }

/* ---------- About + stats ---------- */
.about { display: grid; grid-template-columns: 1.15fr 1fr; gap: 3.5rem; align-items: center; margin-bottom: clamp(4rem, 8vw, 6rem); }
.about h2 { margin-bottom: 1.3rem; }
.about-text p { color: #d6d6ce; font-size: 1.15rem; margin-bottom: 1rem; max-width: 600px; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.stat { position: relative; overflow: hidden; padding: 1.6rem 1.4rem; background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); }
.stat::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--gold); }
.stat:nth-child(even)::after { background: var(--green); }
.stat-num { display: block; font-family: var(--display); font-size: clamp(2.8rem, 5vw, 3.8rem); line-height: 1; color: var(--gold); }
.stat:nth-child(even) .stat-num { color: #fff; }
.stat-label { display: block; font-family: var(--condensed); font-weight: 800; text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.9rem; color: var(--muted); margin-top: 0.5rem; }
@media (max-width: 900px) { .about { grid-template-columns: 1fr; gap: 2.2rem; } }

/* ---------- Driver photo cards ---------- */
.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 1.4rem; }
.driver {
  position: relative; overflow: hidden; border-radius: var(--radius);
  background: var(--ink-2); border: 1px solid var(--line);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.driver:hover { transform: translateY(-6px); border-color: rgba(255, 42, 69, 0.5); box-shadow: 0 30px 60px -30px rgba(255, 42, 69, 0.5); }
.driver-photo-wrap { position: relative; aspect-ratio: 4 / 3.4; overflow: hidden; background: var(--ink-3); }
.driver-photo { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.driver:hover .driver-photo { transform: scale(1.06); }
.driver-photo-wrap::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(5,11,31,0.92) 0%, transparent 42%); }
.driver-name {
  position: absolute; left: 1.3rem; right: 1.3rem; bottom: 1rem; z-index: 1;
  font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 2.2rem; line-height: 1; letter-spacing: 0.02em;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
}
.driver-nophoto { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 0.4rem; color: var(--muted); font-family: var(--condensed); font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; }
.driver-nophoto svg { width: 44px; height: 44px; fill: var(--gold); opacity: 0.6; }
.driver-num {
  position: absolute; left: 1.2rem; bottom: 0.4rem; z-index: 1;
  font-family: var(--display); font-size: 4.6rem; line-height: 1; color: var(--gold);
  text-shadow: 0 6px 24px rgba(0, 0, 0, 0.6);
}
.driver-body { padding: 0.4rem 1.4rem 1.5rem; }
.driver-body h3 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 2rem; line-height: 1; letter-spacing: 0.02em; }
.driver-role { font-family: var(--condensed); font-weight: 800; text-transform: uppercase; letter-spacing: 0.14em; color: var(--gold); font-size: 0.9rem; margin-top: 0.3rem; }
.driver-mower { margin-top: 0.9rem; padding-top: 0.8rem; border-top: 1px dashed var(--line); display: flex; justify-content: space-between; gap: 1rem; font-size: 0.95rem; font-weight: 600; }
.driver-mower span { color: var(--muted); font-family: var(--condensed); font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; }

/* ---------- Main page photo strip ---------- */
.preview { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px; gap: 12px; }
.p-item {
  position: relative; overflow: hidden; border-radius: 12px; cursor: zoom-in;
  border: 0; padding: 0; background: var(--ink-3); color: inherit; font: inherit; text-align: left;
}
.p-item.p-big { grid-column: span 2; grid-row: span 2; }
.preview.preview-few { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); grid-auto-rows: clamp(220px, 30vw, 380px); }
.p-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s, filter 0.3s; }
.p-item:hover img { transform: scale(1.07); filter: brightness(1.1) saturate(1.1); }
.p-cap {
  position: absolute; inset: auto 0 0 0; padding: 2rem 1rem 0.8rem;
  font-family: var(--condensed); font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
}
@media (max-width: 760px) {
  .preview { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; }
  .p-item.p-big { grid-column: span 2; grid-row: span 2; }
}

/* ---------- TV / latest video ---------- */
.tv {
  position: relative; padding: 14px; border-radius: 22px;
  background: linear-gradient(145deg, #262c28, #121614);
  box-shadow: 0 40px 90px -40px rgba(31, 95, 214, 0.7), inset 0 0 0 1px rgba(255,255,255,0.06);
}
.tv-screen { position: relative; border-radius: 12px; overflow: hidden; background: #000; aspect-ratio: 16 / 9; }
.tv-screen iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.onair {
  position: absolute; top: -16px; left: 28px; z-index: 2;
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--ink); border: 2px solid var(--red); color: #fff;
  font-family: var(--condensed); font-weight: 800; text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.85rem;
  padding: 0.3rem 0.9rem; border-radius: 999px;
}
.onair-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--red); box-shadow: 0 0 12px var(--red); animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: 0.25; } }
.nosignal { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 1.5rem; background: #111; }
.nosignal::before {
  content: ""; position: absolute; inset: -50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='1'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.3; animation: static 0.4s steps(4) infinite;
}
.nosignal::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(0,0,0,0.35) 0 2px, transparent 2px 4px); }
@keyframes static { 0% { transform: translate(0, 0); } 25% { transform: translate(-8%, 4%); } 50% { transform: translate(5%, -6%); } 75% { transform: translate(-3%, 8%); } }
.nosignal-inner { position: relative; z-index: 1; }
.nosignal h3 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(2.4rem, 8vw, 5rem); line-height: 1; letter-spacing: 0.04em; text-shadow: 3px 0 var(--red), -3px 0 var(--green); }
.nosignal p { margin-top: 0.6rem; color: #e9e9e2; font-size: clamp(0.85rem, 2vw, 1.05rem); background: rgba(0,0,0,0.6); padding: 0.3rem 0.8rem; border-radius: 6px; display: inline-block; }

/* ---------- Sponsors ---------- */
.sponsor-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.sponsor-copy h2 { margin-bottom: 1.2rem; font-size: clamp(2.4rem, 5vw, 3.6rem); }
.sponsor-copy h2 span { white-space: nowrap; }
.sponsor-zero { font-family: var(--display); font-size: clamp(8rem, 20vw, 15rem); line-height: 0.8; color: var(--gold); text-shadow: 0 0 60px rgba(255, 42, 69, 0.35); display: block; margin-bottom: 0.5rem; }
.sponsor-copy p { color: #d6d6ce; font-size: 1.12rem; max-width: 520px; margin-bottom: 1.8rem; }
.stickers { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.sticker {
  display: grid; place-content: center; text-align: center; aspect-ratio: 4 / 3; padding: 1rem; text-decoration: none;
  border: 3px dashed rgba(255, 42, 69, 0.5); border-radius: 14px; background: rgba(255, 42, 69, 0.04);
  font-family: var(--display); text-transform: uppercase; font-size: clamp(1.1rem, 2.4vw, 1.6rem); line-height: 1.05; color: rgba(255, 255, 255, 0.6);
  transition: transform 0.25s, background 0.25s, color 0.25s, border-color 0.25s;
}
.sticker small { display: block; font-family: var(--condensed); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.14em; color: var(--gold); margin-top: 0.4rem; }
.sticker:nth-child(1) { transform: rotate(-4deg); }
.sticker:nth-child(2) { transform: rotate(3deg) translateY(14px); }
.sticker:nth-child(3) { transform: rotate(2deg); }
.sticker:nth-child(4) { transform: rotate(-3deg) translateY(14px); }
.sticker:hover { transform: rotate(0) scale(1.05); background: var(--gold); color: var(--on-accent); border-color: var(--gold); }
.sticker:hover small { color: var(--on-accent); }
@media (max-width: 900px) { .sponsor-grid { grid-template-columns: 1fr; } }

.sponsor-logos { list-style: none; display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.5rem; }
.sponsor-logos a { display: grid; place-items: center; width: 220px; height: 120px; padding: 1rem; background: #fff; border-radius: 12px; text-decoration: none; color: var(--ink); font-family: var(--display); text-transform: uppercase; transition: transform 0.2s; }
.sponsor-logos a:hover { transform: translateY(-4px) rotate(-1deg); }
.sponsor-logos img { max-height: 84px; object-fit: contain; }

/* ---------- Finish CTA ---------- */
.finish {
  position: relative; overflow: hidden; padding: clamp(80px, 12vw, 140px) 0; text-align: center;
  background:
    radial-gradient(ellipse at center, rgba(5,11,31,0.4) 0%, var(--ink) 75%),
    conic-gradient(rgba(255,255,255,0.07) 25%, transparent 0 50%, rgba(255,255,255,0.07) 0 75%, transparent 0) 0 0 / 80px 80px,
    linear-gradient(160deg, var(--green-deep), var(--ink) 70%);
}
.finish.has-photo {
  padding: clamp(110px, 16vw, 200px) 0;
  background:
    linear-gradient(180deg, var(--ink) 0%, rgba(5, 11, 31, 0.55) 25%, rgba(5, 11, 31, 0.55) 75%, var(--ink) 100%),
    var(--finish-bg) center 58% / cover no-repeat,
    var(--ink);
}
.finish.has-photo h2 { text-shadow: 0 8px 40px rgba(0, 0, 0, 0.8); }
/* Desktop: text on the left, photo zoomed so the mower sits clear on the right */
@media (min-width: 900px) {
  .finish.has-photo {
    text-align: left;
    background:
      linear-gradient(180deg, var(--ink) 0%, transparent 22%, transparent 78%, var(--ink) 100%),
      linear-gradient(90deg, rgba(5, 11, 31, 0.92) 0%, rgba(5, 11, 31, 0.6) 45%, rgba(5, 11, 31, 0.1) 75%),
      var(--finish-bg) 0% 60% / max(150%, 1600px) auto no-repeat,
      var(--ink);
  }
  .finish.has-photo .hero-actions { justify-content: flex-start; }
}
.finish h2 { font-size: clamp(3.4rem, 11vw, 8rem); margin-bottom: 2rem; }
.finish .hero-actions { justify-content: center; }

/* ---------- Footer ---------- */
.footer { padding: 40px 16px; text-align: center; color: var(--muted); display: grid; gap: 1rem; justify-items: center; border-top: 4px solid var(--gold); }
.footer strong { color: var(--text); }
.footer-email { font-family: var(--condensed); font-weight: 800; letter-spacing: 0.06em; font-size: 1.1rem; text-decoration: none; }
.footer-email:hover { color: #fff; }

/* "Watch on YouTube / TikTok" card (used when the page is opened from a file) */
.platform-card {
  position: relative; display: grid; place-items: center; text-align: center; overflow: hidden;
  width: 100%; height: 100%; min-height: 300px; padding: 2rem 1.2rem; text-decoration: none; color: var(--text);
  border-radius: 12px; background: var(--ink-2);
}
.platform-card::before {
  content: ""; position: absolute; inset: 0;
  background: var(--card-bg, none) center / cover no-repeat; filter: blur(3px) brightness(0.35); transform: scale(1.06);
  transition: transform 0.6s, filter 0.4s;
}
.platform-card::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 45%, rgba(31, 95, 214, 0.35), transparent 65%); }
.platform-card:hover::before { transform: scale(1.12); filter: blur(2px) brightness(0.45); }
.pc-inner { position: relative; z-index: 1; display: grid; justify-items: center; gap: 0.6rem; }
.pc-logo { width: clamp(64px, 12vw, 110px); height: auto; border-radius: 50%; box-shadow: 0 0 0 4px var(--ink), 0 0 0 6px var(--gold), 0 20px 50px -10px rgba(0,0,0,0.8); margin-bottom: 0.4rem; }
.pc-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--gold); color: #fff; }
.pc-icon svg { width: 26px; height: 26px; fill: currentColor; }
.pc-title { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(1.8rem, 4.5vw, 3rem); line-height: 1; letter-spacing: 0.02em; }
.pc-sub { font-family: var(--condensed); font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: #d5dcec; font-size: 0.95rem; }
.pc-inner .btn { margin-top: 0.6rem; }
.tv-screen .platform-card { position: absolute; inset: 0; min-height: 0; border-radius: 0; }
.tiktok-wrap .platform-card { max-width: 780px; min-height: 340px; border: 1px solid var(--line); }

/* TikTok widget */
.tiktok-wrap { display: flex; justify-content: center; min-height: 200px; }
.tiktok-wrap blockquote { margin: 0 auto; width: 100%; }
.tiktok-wrap section a { color: var(--gold) !important; font-family: var(--condensed); font-weight: 800; font-size: 1.3rem; }
.socials { display: inline-flex; gap: 0.6rem; }
.socials:empty { display: none; }
.social { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--ink-3); color: var(--text); transition: background 0.2s, color 0.2s, transform 0.2s; }
.social:hover { background: var(--gold); color: var(--on-accent); transform: translateY(-3px); }
.social svg { width: 20px; height: 20px; fill: currentColor; }

/* ---------- Gallery page ---------- */
.page-hero { position: relative; overflow: hidden; padding: 170px 0 70px; }
.page-hero .hero-photo { background-position: center 45%; }
.page-hero-inner { position: relative; z-index: 2; }
.page-hero h1 { font-size: clamp(3.8rem, 12vw, 8rem); margin-bottom: 1rem; text-shadow: 0 10px 50px rgba(0,0,0,0.6); }
.tabs { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.tab {
  font-family: var(--condensed); font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em;
  text-decoration: none; color: var(--text); padding: 0.55rem 1.2rem; border-radius: 999px;
  background: rgba(5,11,31,0.6); border: 1px solid rgba(255,255,255,0.2); backdrop-filter: blur(6px); transition: background 0.2s, color 0.2s;
}
.tab span { color: var(--gold); }
.tab:hover { background: var(--gold); color: var(--on-accent); }
.tab:hover span { color: var(--on-accent); }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 260px; grid-auto-flow: dense; gap: 12px; }
.g-item { position: relative; overflow: hidden; border-radius: 12px; cursor: zoom-in; background: var(--ink-3); border: 0; padding: 0; color: inherit; font: inherit; text-align: left; }
.g-item.g-wide { grid-column: span 2; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s, filter 0.3s; }
.g-item:hover img { transform: scale(1.07); filter: brightness(1.08) saturate(1.15); }
.g-item figcaption {
  position: absolute; inset: auto 0 0 0; padding: 2.2rem 1rem 0.9rem;
  font-family: var(--condensed); font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; font-size: 1.1rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.88));
  opacity: 0; transform: translateY(10px); transition: 0.25s;
}
.g-item:hover figcaption, .g-item:focus-visible figcaption { opacity: 1; transform: none; }
@media (hover: none) { .g-item figcaption { opacity: 1; transform: none; } }
@media (max-width: 860px) { .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 190px; } }
@media (max-width: 520px) { .gallery { grid-template-columns: 1fr; grid-auto-rows: 240px; } .g-item.g-wide { grid-column: auto; } }

.videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr)); gap: 1.6rem; }
.v-item { background: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform 0.25s, box-shadow 0.25s; }
.v-item:hover { transform: translateY(-5px); box-shadow: 0 30px 60px -30px rgba(255, 42, 69, 0.5); }
.v-item video, .v-item iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; background: #000; }
.v-item figcaption { padding: 1rem 1.3rem; border-left: 5px solid var(--gold); font-family: var(--condensed); font-weight: 800; font-size: 1.2rem; text-transform: uppercase; letter-spacing: 0.04em; }
.v-item .tv-screen { border-radius: 0; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; background: rgba(5, 6, 5, 0.95); backdrop-filter: blur(6px); opacity: 0; pointer-events: none; transition: opacity 0.25s; }
.lightbox.open { opacity: 1; pointer-events: auto; }
.lb-figure { display: grid; gap: 0.8rem; justify-items: center; padding: 0 16px; }
.lb-figure img { max-width: 92vw; max-height: 84vh; border-radius: 10px; }
.lb-figure figcaption { font-family: var(--condensed); font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; font-size: 1.2rem; }
.lb-close, .lb-nav { position: absolute; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; border: 0; cursor: pointer; background: rgba(255, 255, 255, 0.1); color: #fff; font-size: 1.9rem; line-height: 1; transition: background 0.2s, color 0.2s; }
.lb-close:hover, .lb-nav:hover { background: var(--gold); color: var(--on-accent); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; margin-top: -25px; }
.lb-next { right: 16px; top: 50%; margin-top: -25px; }
@media (max-width: 520px) { .lb-prev, .lb-next { top: auto; bottom: 20px; margin: 0; } }

/* ---------- Socials / link tree page ---------- */
.links-page { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; position: relative; }
.links-banner {
  position: fixed; inset: 0; z-index: 0;
  background: var(--ink-3) center / cover no-repeat;
}
.links-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,11,31,0.35) 0%, rgba(5,11,31,0.7) 45%, rgba(5,11,31,0.85) 100%); }
.links-page .checker { position: relative; z-index: 2; }
.links-wrap { position: relative; z-index: 2; flex: 1; width: min(540px, 100% - 32px); margin: 0 auto; padding: 170px 0 48px; display: grid; align-content: start; gap: 1.8rem; }
.links-head { text-align: center; display: grid; justify-items: center; }
.brand-mark-lg { width: 112px; height: 112px; font-size: 2.4rem; box-shadow: 0 0 0 6px var(--ink), 0 0 0 9px var(--gold), 0 20px 60px -10px rgba(0, 0, 0, 0.8); margin-bottom: 1rem; }
.links-head h1 { font-size: clamp(2.3rem, 10vw, 3.4rem); }
.links-head .tagline { margin: 0.6rem 0 0; font-size: 1.05rem; }
img.brand-mark { object-fit: cover; }
.brand-mark-lg { width: 140px; height: 140px; }
.links-quote {
  margin-top: 1rem; max-width: 420px; padding: 0.8rem 1.1rem;
  font-style: italic; font-size: 1.02rem; line-height: 1.45; color: #e6e4dc;
  background: rgba(5, 11, 31, 0.55); border-left: 4px solid var(--gold); border-radius: 8px;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.link-list { display: grid; gap: 0.85rem; }
.link-btn {
  display: grid; grid-template-columns: 46px 1fr auto; align-items: center; gap: 1rem;
  padding: 0.85rem 1.2rem 0.85rem 0.9rem; border-radius: 14px; text-decoration: none; color: var(--text);
  background: rgba(18, 22, 20, 0.88); border: 1px solid var(--line); border-left: 5px solid var(--gold);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: transform 0.2s, background 0.2s, box-shadow 0.2s, color 0.2s;
}
a.link-btn:hover { transform: translateY(-3px) scale(1.01); background: var(--gold); color: var(--on-accent); box-shadow: 0 18px 40px -18px rgba(255, 42, 69, 0.7); }
.link-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--ink-3); color: var(--gold); transition: 0.2s; }
a.link-btn:hover .link-icon { background: var(--ink); }
.link-icon svg { width: 22px; height: 22px; fill: currentColor; }
.link-label { font-family: var(--display); text-transform: uppercase; letter-spacing: 0.04em; font-size: 1.35rem; }
.link-arrow { font-size: 1.4rem; transition: transform 0.2s; color: var(--gold); }
a.link-btn:hover .link-arrow { transform: translateX(5px); color: var(--on-accent); }
.link-btn.soon { border-left-color: var(--ink-3); color: var(--muted); }
.link-btn.soon .link-icon { color: var(--muted); }
.link-soon { font-family: var(--condensed); font-weight: 800; text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.75rem; color: var(--muted); border: 1px solid var(--line); padding: 0.2rem 0.6rem; border-radius: 999px; }
.links-home { text-align: center; color: var(--muted); font-family: var(--condensed); font-weight: 800; text-transform: uppercase; letter-spacing: 0.14em; text-decoration: none; }
.links-home:hover { color: var(--gold); }

/* Socials page: always exactly one screen, no scrolling. Sizes scale with screen height. */
html:has(.links-page) { overflow: hidden; height: 100%; }
.links-page { height: 100vh; height: 100dvh; min-height: 0; overflow: hidden; overscroll-behavior: none; }
.links-wrap { min-height: 0; align-content: center; padding: clamp(14px, 4vh, 48px) 0 clamp(8px, 2vh, 24px); gap: clamp(0.6rem, 2.2vh, 1.6rem); }
.brand-mark-lg { width: clamp(72px, 15vh, 140px); height: clamp(72px, 15vh, 140px); margin-bottom: clamp(0.4rem, 1.4vh, 1rem); }
.links-head h1 { font-size: clamp(1.9rem, min(10vw, 5.6vh), 3.4rem); }
.links-head .tagline { font-size: clamp(0.85rem, 1.9vh, 1.05rem); margin-top: clamp(0.2rem, 0.8vh, 0.6rem); }
.links-quote { margin-top: clamp(0.4rem, 1.4vh, 1rem); padding: clamp(0.4rem, 1.1vh, 0.8rem) 1rem; font-size: clamp(0.82rem, 1.9vh, 1.02rem); }
.link-list { gap: clamp(0.45rem, 1.4vh, 0.85rem); }
.link-btn { padding-top: clamp(0.4rem, 1.2vh, 0.85rem); padding-bottom: clamp(0.4rem, 1.2vh, 0.85rem); grid-template-columns: clamp(36px, 5.4vh, 46px) 1fr auto; }
.link-icon { width: clamp(36px, 5.4vh, 46px); height: clamp(36px, 5.4vh, 46px); }
.link-text { display: grid; line-height: 1.1; }
.link-label { font-size: clamp(1.1rem, 2.6vh, 1.35rem); }
.link-sub { font-family: var(--condensed); font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.78rem; color: var(--gold); margin-top: 0.2rem; }
a.link-btn:hover .link-sub { color: var(--on-accent); }
.links-page .checker { flex: none; height: clamp(14px, 2.4vh, 24px); background-size: clamp(14px, 2.4vh, 24px) clamp(14px, 2.4vh, 24px); }
@media (max-height: 720px) { .links-head .tagline { display: none; } .brand-mark-lg { width: clamp(64px, 12vh, 110px); height: clamp(64px, 12vh, 110px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}
