/* The front door: a dark arena, the red ring on the left, the Street Ring on the right. */
:root {
  --bg: #07080c;
  --ink: #eef1f6;
  --ink-2: #b7bfcc;
  --ink-3: #7d8594;
  --red: #ff3b3b;
  --red-deep: #7a0d14;
  --green: #22e07a;
  --green-deep: #0b5a33;
  --display: 'Unbounded', system-ui, sans-serif;
  --body: 'Inter', system-ui, sans-serif;
  --p: 0; /* scroll progress through the stage, 0..1 (set by home.js) */
  --q: 0; /* past the stage, 0..1 over one screen: the stage fades away */
  --bar: 84px; /* the header's own dark band: the arena picture starts below it, the robots' heads clear of it */
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); }
body { overflow-x: hidden; }
a { color: inherit; }

/* ---- the stage: one screen tall plus the camera's travel */
.stage { position: relative; height: 175vh; }
.stage > * { will-change: transform, opacity; }
.arena-bg { position: fixed; inset: 0; pointer-events: none; background: #07080c url(home/arena.jpg) 50% 0 / cover no-repeat; transform: scale(calc(1 + var(--p) * .55)); transform-origin: 50% 58%; filter: brightness(calc(1 - var(--q) * .45)); }
/* the top and the bottom darker, so the title and the showcases read over the picture */
.arena-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,8,12,.55) 0%, rgba(7,8,12,.05) 30%, rgba(7,8,12,.1) 55%, rgba(7,8,12,.75) 100%); }

/* ---- the bar */
.bar { position: fixed; top: 0; left: 0; right: 0; z-index: 20; display: flex; align-items: center; gap: 24px; height: var(--bar); padding: 0 36px; background: linear-gradient(180deg, rgba(7,8,12,.6), rgba(7,8,12,0)); border-bottom: 1px solid transparent; transition: background .3s, border-color .3s; }
.bar.scrolled { background: rgba(7,8,12,.62); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom-color: rgba(255,255,255,.08); }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo svg { width: 46px; height: 46px; color: #e8ebf2; }
.logo span { display: flex; flex-direction: column; line-height: 1; border-left: 1px solid rgba(255,255,255,.35); padding-left: 12px; }
.logo b { font-family: var(--display); font-weight: 900; font-style: italic; font-size: 26px; letter-spacing: .02em; transform: skewX(-8deg); }
.logo i { font-style: normal; font-size: 12px; letter-spacing: .38em; color: var(--ink-2); margin-top: 6px; }
.menu { margin: 0 auto; display: flex; gap: 0; }
.menu a { text-decoration: none; font-size: 13px; letter-spacing: .28em; text-transform: uppercase; color: var(--ink); padding: 6px 22px; white-space: nowrap; border-left: 1px solid rgba(255,255,255,.18); }
.menu a:first-child { border-left: 0; }
.menu a:hover { color: #fff; text-shadow: 0 0 12px rgba(255,255,255,.6); }
.connect { white-space: nowrap; text-decoration: none; font-size: 13px; letter-spacing: .26em; text-transform: uppercase; padding: 12px 26px; border: 1.5px solid rgba(255,255,255,.85); border-radius: 999px; clip-path: polygon(8% 0, 100% 0, 92% 100%, 0 100%); transition: background .2s, color .2s; }
.connect:hover { background: #fff; color: #000; }

/* ---- the hero */
.hero { position: fixed; z-index: 5; top: calc(var(--bar) + 6vh); left: 0; right: 0; text-align: center; opacity: calc(1 - var(--p) * 1.6); transform: translateY(calc(var(--p) * -12vh)) scale(calc(1 - var(--p) * .15)); }
.title { margin: 0; font-family: var(--display); font-weight: 900; font-style: normal; line-height: .92; letter-spacing: -.01em; text-transform: uppercase; transform: skewX(-9deg); }
.title span { display: block; font-size: clamp(44px, 8.2vw, 132px); color: #fff; text-shadow: 0 6px 30px rgba(0,0,0,.7); }
.title .metal {
  background: linear-gradient(180deg, #ffffff 0%, #c9ced8 28%, #7c8392 52%, #e3e7ee 70%, #9aa1ae 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 8px 26px rgba(0,0,0,.75));
}
.tag { margin: 22px auto 0; display: flex; align-items: center; justify-content: center; gap: 22px; font-size: clamp(12px, 1.25vw, 18px); letter-spacing: .42em; text-transform: uppercase; color: #f2f4f8; }
.tag::before, .tag::after { content: ''; width: clamp(40px, 9vw, 160px); height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,.7)); }
.tag::after { transform: scaleX(-1); }

/* ---- the two showcases */
.cards { position: fixed; z-index: 8; left: 50%; top: 54vh; width: min(1200px, 76vw); display: grid; grid-template-columns: 1fr 1fr; gap: 3vw; transform: translateX(-50%) translateY(calc(var(--p) * -22vh - var(--q) * 30vh)) scale(calc(1 + var(--p) * .12)); opacity: calc(1 - var(--q) * 1.4); }
.card { position: relative; display: block; text-decoration: none; aspect-ratio: 16 / 10; background: #0b0c10; clip-path: polygon(4% 0, 100% 0, 100% 90%, 96% 100%, 0 100%, 0 10%); transition: transform .25s ease, filter .25s ease; }
.card::before { content: ''; position: absolute; inset: 0; padding: 2px; clip-path: inherit; background: var(--edge); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; z-index: 3; pointer-events: none; }
.card.red { --edge: linear-gradient(135deg, #ff6a6a, #b81d26 40%, #ff4040); --c: var(--red); }
.card.green { --edge: linear-gradient(135deg, #7dffb8, #12a65a 40%, #2bff8c); --c: var(--green); }
.card { box-shadow: 0 0 0 transparent; filter: drop-shadow(0 0 18px color-mix(in srgb, var(--c) 45%, transparent)); }
.card:hover, .card:focus-visible { transform: translateY(-4px) scale(1.015); filter: drop-shadow(0 0 34px color-mix(in srgb, var(--c) 85%, transparent)); }
.shot { position: absolute; inset: 0; overflow: hidden; }
.shot img, .shot video { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; filter: saturate(1.05) contrast(1.05); }
.card:hover .shot img, .card:hover .shot video { transform: scale(1.06); }
.shot::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.72) 0%, transparent 32%, transparent 64%, rgba(0,0,0,.85) 100%); }
.head { position: absolute; z-index: 2; left: 5%; top: 6%; display: flex; flex-direction: column; gap: 6px; }
.head b { font-family: var(--display); font-weight: 900; font-style: italic; font-size: clamp(20px, 2.6vw, 40px); letter-spacing: .01em; transform: skewX(-8deg); color: #fff; text-shadow: 0 4px 18px rgba(0,0,0,.8); }
.head i { font-style: normal; font-size: clamp(9px, .9vw, 13px); letter-spacing: .38em; text-transform: uppercase; color: #e8ebf0; display: flex; align-items: center; gap: 10px; }
.head i::after { content: ''; width: 50px; height: 1px; background: rgba(255,255,255,.6); }
.go { position: absolute; z-index: 2; left: 0; right: 0; bottom: 7%; display: flex; align-items: center; justify-content: center; gap: 14px; font-size: clamp(10px, 1vw, 14px); letter-spacing: .3em; text-transform: uppercase; font-weight: 600; color: #fff; }
.go svg { width: 26px; height: 13px; transition: transform .25s; }
.card:hover .go svg { transform: translateX(6px); }

/* ---- the corners */
.sound { position: fixed; z-index: 20; left: 34px; bottom: 26px; display: flex; align-items: center; gap: 12px; background: none; border: 0; color: var(--ink-2); font: 600 12px var(--body); letter-spacing: .3em; text-transform: uppercase; cursor: pointer; }
.sound svg { width: 24px; height: 24px; }
.sound .waves { display: none; }
.sound[aria-pressed="true"] { color: #fff; }
.sound[aria-pressed="true"] .waves { display: inline; }
.sound[aria-pressed="true"] .mute { display: none; }
.brandmark { position: fixed; z-index: 20; right: 34px; bottom: 26px; display: flex; align-items: center; gap: 14px; }
.brandmark b { font-family: var(--display); font-style: italic; font-weight: 900; font-size: 17px; color: #fff; }
.brandmark i { font-style: normal; font-size: 11px; letter-spacing: .34em; color: var(--ink-2); border-left: 1px solid rgba(255,255,255,.35); padding-left: 14px; }

/* ---- below the stage: the season and the steps */
.below { position: relative; z-index: 12; background: linear-gradient(180deg, transparent, var(--bg) 120px); padding: 140px 24px 60px; display: grid; gap: 28px; max-width: 1200px; margin: 0 auto; }
.panel { background: rgba(14,16,22,.82); border: 1px solid rgba(255,255,255,.08); border-radius: 0; clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px); padding: 28px 30px; backdrop-filter: blur(8px); }
.panel h2 { margin: 0 0 16px; font-family: var(--display); font-style: italic; font-weight: 800; font-size: 26px; letter-spacing: .02em; text-transform: uppercase; }
.line { color: var(--ink-2); font-size: 15px; line-height: 1.6; }
.line a { color: #fff; }
.podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 18px 0 8px; }
.podium .place { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 0; clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px); background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); }
.podium .medal { font-size: 26px; }
.podium b { display: block; font-size: 16px; }
.podium span { color: var(--ink-3); font-size: 13px; }
.podium .pts { margin-left: auto; font-family: var(--display); font-weight: 800; font-size: 22px; }
.more { display: inline-block; margin-top: 10px; color: var(--ink-2); text-decoration: none; letter-spacing: .08em; }
.more:hover { color: #fff; }
.steps ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: s; }
.steps li { counter-increment: s; padding: 18px; border-radius: 0; clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px); background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.07); display: flex; flex-direction: column; gap: 8px; }
.steps li::before { content: counter(s, decimal-leading-zero); font-family: var(--display); font-weight: 800; font-size: 28px; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.55); }
.steps b { font-size: 16px; }
.steps span { color: var(--ink-2); font-size: 14px; line-height: 1.5; }
.foot { position: relative; z-index: 12; display: flex; justify-content: center; gap: 22px; padding: 30px 16px 40px; color: var(--ink-3); font-size: 13px; }
.foot a { color: var(--ink-2); }

/* ---- phones and small windows */
@media (max-aspect-ratio: 16/10) and (min-width: 901px) {
  /* a window narrower than the picture: show it whole by width, the robots stay in view */
  .arena-bg { background-size: 100% auto; background-position: 50% 0; }
}
@media (max-width: 1180px) {
  .menu a { padding: 6px 12px; letter-spacing: .16em; font-size: 12px; }
  .connect { padding: 10px 18px; letter-spacing: .14em; font-size: 12px; }
}
@media (max-width: 900px) {
  /* a phone: one column in the page's own flow; the robots stay as a faint backdrop, no camera */
  .menu { display: none; }
  :root { --bar: 64px; }
  .bar { padding: 0 14px; gap: 10px; }
  .connect { margin-left: auto; padding: 9px 16px; font-size: 10px; letter-spacing: .16em; white-space: nowrap; border-radius: 0; clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px); }
  .logo svg { width: 34px; height: 34px; }
  .logo b { font-size: 19px; }
  .logo i { font-size: 9px; letter-spacing: .28em; }
  .stage { height: auto; padding: 96px 16px 24px; }
  .hero, .cards { position: relative; top: auto; left: auto; transform: none; opacity: 1; }
  .hero { margin-top: 18px; }
  .title span { font-size: clamp(38px, 12vw, 64px); }
  .tag { letter-spacing: .24em; gap: 12px; font-size: 11px; }
  .tag::before, .tag::after { width: 28px; }
  .cards { margin-top: calc(56.3vw - 40px); }
  .arena-bg { background-position: 50% 0; background-size: 100% auto; background-color: #07080c; transform: none; }
  .cards { width: 100%; grid-template-columns: 1fr; gap: 18px; }
  .below { padding-top: 24px; }
  .podium, .steps ol { grid-template-columns: 1fr; }
  .sound { left: 12px; bottom: 12px; padding: 8px 10px; border-radius: 0; clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px); background: rgba(7,8,12,.75); backdrop-filter: blur(6px); }
  .sound span, .brandmark { display: none; }
}
@media (orientation: portrait) {
  /* an upright screen: the upright picture, the two robots facing each other with the ring between them */
  .arena-bg { background-image: url(home/arena-tall.jpg); background-size: cover; background-position: 50% 0; }
  .arena-bg::after { background: linear-gradient(180deg, rgba(7,8,12,.6) 0%, rgba(7,8,12,.1) 24%, rgba(7,8,12,0) 55%, rgba(7,8,12,.55) 82%, rgba(7,8,12,.9) 100%); }
}
@media (orientation: portrait) and (max-width: 900px) {
  /* a phone held upright: the first screen is the title above the robots' heads, the robots and the ring;
     the showcases start at the floor and scroll up over the arena */
  .stage { padding-top: calc(var(--bar) + 20px); }
  .hero { margin-top: 0; min-height: calc(80svh - var(--bar) - 20px); }
  .title span { font-size: clamp(30px, 9.6vw, 56px); }
  .cards { margin-top: 0; }
}
/* ---- the gear (as on every other page: style.css) */
.bar .gear { --line: rgba(255,255,255,.10); --panel-solid: #0e1322; --ink: #f3f6fc; --ink-2: #c1c9db; --ink-3: #939db3; --gold: #e9ecf2; --font: 'Inter', system-ui, sans-serif; position: relative; flex: none; }
.gearbtn { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; padding: 0; border: 1px solid var(--line); background: rgba(255,255,255,.04); color: var(--ink); cursor: pointer; border-radius: 0; clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px); }
.gearbtn:hover, .gearbtn[aria-expanded="true"] { background: rgba(255,255,255,.09); }
.gearbtn svg { width: 19px; height: 19px; transition: transform .35s; }
.gearbtn[aria-expanded="true"] svg { transform: rotate(60deg); }
.gearmenu { position: absolute; right: 0; top: calc(100% + 8px); width: 290px; max-width: calc(100vw - 32px); display: grid; gap: 6px; padding: 12px; background: var(--panel-solid); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 16px 40px rgba(0,0,0,.6); font: 14px var(--font); text-transform: none; letter-spacing: 0; }
.gearmenu[hidden] { display: none; }
.gearmenu svg { width: 17px; height: 17px; flex: none; color: var(--ink-2); }
.gearmenu .grow, .gearmenu .gitem { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 4px 8px; border-radius: 10px; color: var(--ink); text-decoration: none; font-size: 14px; }
.gearmenu .grow > span, .gearmenu .gitem > span { flex: 1; min-width: 0; }
.gearmenu .gitem:hover { background: rgba(255,255,255,.06); }
.gearmenu .field { width: auto; max-width: 160px; padding: 6px 28px 6px 8px; font: 13px var(--font); color: var(--ink); border: 1px solid var(--line); border-radius: 10px; appearance: none; -webkit-appearance: none; cursor: pointer; background: rgba(0,0,0,.35) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239aa4b8' stroke-width='2'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 7px center / 14px; }
.gearmenu .field option { background: var(--panel-solid); color: var(--ink); }
.gearmenu .switch { position: relative; width: 42px; height: 24px; flex: none; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.08); cursor: pointer; padding: 0; }
.gearmenu .switch::after { content: ''; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--ink-2); transition: transform .18s, background .18s; }
.gearmenu .switch[aria-checked="true"] { background: rgba(233,236,242,.28); border-color: rgba(233,236,242,.55); }
.gearmenu .switch[aria-checked="true"]::after { transform: translateX(18px); background: var(--gold); }
.gearmenu .vol { width: calc(100% - 16px); margin: 0 8px 4px; accent-color: var(--gold); }
.gearmenu .tiny { font-size: 12px; color: var(--ink-3); }
.gearmenu .gshare { display: grid; gap: 6px; padding: 8px 8px 2px; border-top: 1px solid var(--line); margin-top: 2px; }
.gearmenu .share { display: flex; flex-wrap: wrap; gap: 8px; }
.gearmenu .share a, .gearmenu .share button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 42px; height: 42px; padding: 0; border-radius: 10px; border: 1px solid var(--line); background: rgba(255,255,255,.04); color: var(--ink-2); cursor: pointer; font: 600 13px var(--font); }
.gearmenu .share svg { width: 19px; height: 19px; fill: currentColor; }
.gearmenu .share .native { width: auto; padding: 0 14px; color: var(--ink); background: linear-gradient(135deg, #15803d, #22c55e); border-color: transparent; }
.gearmenu .share a:hover, .gearmenu .share button:hover { background: rgba(255,255,255,.1); }
.toast { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 40; background: #0e1322; color: #f3f6fc; border: 1px solid rgba(233,236,242,.4); padding: 12px 18px; border-radius: 12px; font: 15px 'Inter', system-ui, sans-serif; box-shadow: 0 18px 50px rgba(0,0,0,.6); opacity: 0; transition: opacity .2s; pointer-events: none; }
.toast.on { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .stage { --p: 0 !important; }
  .card, .shot img, .go svg { transition: none; }
}

/* moving between the arena's pages: a short cross-fade instead of a blank flash (browsers without it
   simply load the next page) */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .22s; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }
