/* Rally Studio Maker — coming-soon page. One file, no build step. */

@font-face {
  font-family: "Archivo";
  src: url("assets/archivo-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Azeret Mono";
  src: url("assets/azeret-mono-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --ink: #0c0d10;
  --graphite: #16181d;
  --rule: #2a2d34;
  --text: #f2efe8;
  --text-2: #a9adb6;
  --cream: #efebe2;
  --cream-rule: #d6d0c2;
  --paper-ink: #14161a;
  --paper-2: #4a4d55;
  --yellow: #f4be1e;
  --yellow-deep: #e0aa0a;
  --fr-blue: #2a56b0;
  --fr-white: #f5f5f0;
  --fr-red: #d7263d;
  --sans: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Azeret Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --gutter: clamp(16px, 4.5vw, 40px);
  --wrap: 1200px;
  --sec: clamp(64px, 10vw, 128px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 400 17px/1.55 var(--sans);
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
@media (min-width: 900px) { body { font-size: 18px; } }
img { display: block; max-width: 100%; height: auto; }
::selection { background: var(--yellow); color: var(--ink); }
html { scrollbar-color: #3a3e47 var(--ink); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 2px; }
.support :focus-visible, .book :focus-visible { outline-color: var(--paper-ink); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 50; background: var(--yellow); color: var(--ink); padding: 10px 14px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 8px; }

/* ---------- top bar ---------- */
.bar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 16px;
  padding: 10px var(--gutter);
  background: rgba(12, 13, 16, .94);
  border-bottom: 1px solid var(--rule);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; margin-right: auto; min-height: 44px; }
.brand__mark { width: 30px; height: 30px; flex: none; }
.brand__name { font-weight: 800; font-size: 16px; letter-spacing: .01em; text-transform: uppercase; white-space: nowrap; }
.brand__name b { color: var(--yellow); font-weight: 800; }
.bar__nav { display: none; gap: 28px; }
.bar__nav a { color: var(--text-2); text-decoration: none; font-size: 15px; font-weight: 600; padding: 10px 0; }
.bar__nav a:hover { color: var(--text); }
@media (min-width: 960px) { .bar__nav { display: flex; margin-right: 12px; } }
@media (max-width: 420px) {
  .bar { gap: 10px; }
  .brand { gap: 8px; }
  .brand__mark { width: 26px; height: 26px; }
  .brand__name { font-size: 14px; }
  .bar .btn--small { padding: 0 12px; gap: 8px; font-size: 13px; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 0 22px;
  background: var(--yellow); color: var(--ink);
  font: 800 16px/1 var(--sans); letter-spacing: .04em; text-transform: uppercase;
  text-decoration: none; border: 2px solid var(--yellow); border-radius: 3px;
  transition: transform .12s ease-out, background-color .12s ease-out, border-color .12s ease-out;
}
.btn:hover { background: var(--yellow-deep); border-color: var(--yellow-deep); transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--small { min-height: 44px; padding: 0 14px; font-size: 14px; }
.btn--ghost { background: transparent; color: var(--text); border-color: rgba(242, 239, 232, .55); }
.btn--ghost:hover { background: rgba(242, 239, 232, .08); border-color: var(--text); }
.btn--ink { background: var(--ink); color: var(--yellow); border-color: var(--ink); }
.btn--ink:hover { background: #24272e; border-color: #24272e; }
.cup { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.tri { width: 20px; height: 20px; fill: currentColor; flex: none; }



/* ---------- hero ---------- */
.hero { position: relative; min-height: min(92svh, 860px); display: grid; align-items: end; overflow: hidden; }
.hero__pic, .hero__pic img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__pic img { object-fit: cover; object-position: 50% 40%; }
@media (max-width: 700px) { .hero__pic img { object-position: 46% 70%; } }
.hero::after { /* legibility scrim only */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(12,13,16,.15) 0%, rgba(12,13,16,.25) 35%, rgba(12,13,16,.86) 72%, var(--ink) 100%);
}
@media (min-width: 900px) {
  .hero::after { background: linear-gradient(90deg, rgba(12,13,16,.94) 0%, rgba(12,13,16,.86) 22%, rgba(12,13,16,.62) 36%, rgba(12,13,16,.28) 47%, rgba(12,13,16,.08) 55%, rgba(12,13,16,0) 62%), linear-gradient(180deg, transparent 72%, var(--ink) 100%); }
}
.hero__body { position: relative; z-index: 1; max-width: var(--wrap); width: 100%; margin: 0 auto; padding: 0 var(--gutter) clamp(40px, 7vw, 88px); }
.hero__title {
  margin: 0 0 20px; padding-left: 18px;
  font-weight: 900; text-transform: uppercase;
  font-size: clamp(42px, 8.6vw, 96px); line-height: .94; letter-spacing: -.015em;
  max-width: 11ch; text-wrap: balance;
  border-image: linear-gradient(180deg, var(--fr-blue) 0 33.3%, var(--fr-white) 33.3% 66.6%, var(--fr-red) 66.6%) 1;
  border-left: 6px solid;
}
.hero__title span { display: block; }
.hero__title span + span { color: var(--yellow); }
.hero__lead { margin: 0 0 22px; max-width: 29em; font-size: clamp(17px, 2vw, 21px); color: var(--text); }
.hero__lead strong { font-weight: 700; }
.plate {
  display: inline-flex; align-items: center; gap: 12px; margin: 0 0 26px;
  padding: 8px 14px; border: 1px solid rgba(242,239,232,.5); border-radius: 3px;
  font-weight: 800; text-transform: uppercase; letter-spacing: .1em; font-size: 15px;
}
.plate__k { font-family: var(--mono); font-weight: 500; color: var(--text-2); letter-spacing: .08em; font-size: 13px; }
.plate__v { color: var(--yellow); }
.plate__sep { width: 1px; height: 16px; background: rgba(242,239,232,.4); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- headings ---------- */
.h2 {
  margin: 0 0 14px; font-weight: 900; text-transform: uppercase;
  font-size: clamp(30px, 5.2vw, 56px); line-height: 1; letter-spacing: -.01em; text-wrap: balance;
}
.h2--ink { color: var(--paper-ink); }
.h3 { margin: 0 0 8px; font-weight: 800; font-size: clamp(21px, 2.4vw, 26px); line-height: 1.15; text-wrap: balance; }
.sub { margin: 0 0 clamp(28px, 4vw, 48px); max-width: 40em; color: var(--text-2); font-size: clamp(17px, 1.8vw, 19px); }
.link { color: var(--text); text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.link:hover { color: var(--yellow); }

/* ---------- video ---------- */
.video { padding: var(--sec) 0 calc(var(--sec) * .75); }
.player { position: relative; aspect-ratio: 16 / 9; background: #000; border: 1px solid var(--rule); }
.player__poster { position: absolute; inset: 0; display: block; color: var(--text); text-decoration: none; overflow: hidden; }
.player__media { position: absolute; inset: 0; display: block; }
.player__poster img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.72); transition: filter .2s ease-out; }
.player__poster:hover img { filter: brightness(.85); }
.player__play {
  position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%);
  width: clamp(64px, 11vw, 104px); aspect-ratio: 1; border-radius: 50%;
  background: var(--yellow); color: var(--ink); display: grid; place-items: center;
  transition: transform .15s ease-out;
}
.player__play svg { width: 44%; fill: currentColor; margin-left: 6%; }
.player__poster:hover .player__play { transform: translate(-50%, -50%) scale(1.04); }
.player__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 16px; background: rgba(12,13,16,.82); display: grid; gap: 4px; }
.player__title { font-weight: 700; font-size: clamp(14px, 1.8vw, 18px); line-height: 1.3; }
.player__note { font-size: 13px; color: var(--text-2); }
.js .no-js, .js-only { display: none; }
.js .js-only { display: inline; }
.player__frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.more { margin: 18px 0 0; }
.more .link { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 600; }

/* ---------- road book ---------- */
.book { background: var(--cream); color: var(--paper-ink); padding: var(--sec) 0; }
.book .sub { color: var(--paper-2); }
.cases { list-style: none; margin: 0; padding: 0; border-top: 3px solid var(--paper-ink); }
.case {
  display: grid; grid-template-columns: 56px 64px 1fr; gap: 14px 16px;
  padding: 24px 0 28px; border-bottom: 1px solid var(--cream-rule);
}
.case__no { display: grid; align-content: start; gap: 6px; }
.case__no .mono:first-child { font-size: 34px; font-weight: 700; line-height: 1; }

.tulip { width: 64px; height: 64px; border: 1.5px solid var(--paper-ink); background: #f8f5ee; }
.tulip path, .tulip circle { fill: none; stroke: var(--paper-ink); stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; }
.tulip circle { fill: var(--paper-ink); stroke: none; }
.tulip .fill { fill: var(--paper-ink); stroke: none; }
.tulip .dim { stroke: #9a968c; stroke-width: 3; }
.tulip .thick { stroke-width: 6; stroke-linecap: butt; }
.case__text { grid-column: 3; }
.case__text p { margin: 0; max-width: 38em; color: #2a2c31; }
.case__fig { grid-column: 1 / -1; margin: 6px 0 0; }
.case__fig img { border: 1.5px solid var(--paper-ink); background: var(--ink); }
.case__fig figcaption { margin-top: 8px; font-size: 14px; color: var(--paper-2); }
.case__fig:not(.case__fig--wide) img { max-height: 520px; width: auto; max-width: 100%; }
@media (max-width: 520px) {
  .case { grid-template-columns: 44px 52px 1fr; gap: 12px; }
  .tulip { width: 52px; height: 52px; }
  .case__no .mono:first-child { font-size: 28px; }
  .case__text { grid-column: 1 / -1; }
  .case__fig:not(.case__fig--wide) img { max-height: 440px; }
}
@media (min-width: 900px) {
  .case { grid-template-columns: 72px 72px minmax(0, 1fr) minmax(0, 1.05fr); gap: 0 28px; padding: 36px 0; align-items: start; }
  .tulip { width: 72px; height: 72px; }
  .case__fig { grid-column: 4; grid-row: 1; margin: 0; }
  .case__fig:not(.case__fig--wide) img { max-height: 400px; }
  .case__fig img { margin-left: auto; }
  .case__fig figcaption { text-align: right; }
  .case__fig--wide { grid-column: 3 / -1; grid-row: 2; margin-top: 24px; }
  .case__fig--wide figcaption { text-align: left; }
}

/* ---------- features ---------- */
.features { padding: var(--sec) 0; }
.sheet { display: grid; gap: 40px; }
@media (min-width: 900px) { .sheet { grid-template-columns: 1.35fr 1fr; gap: 56px; } }
.sheet__h { display: flex; align-items: center; gap: 12px; margin: 0 0 6px; padding-bottom: 14px; border-bottom: 3px solid var(--text); font-weight: 900; text-transform: uppercase; letter-spacing: .03em; font-size: 20px; }
.sheet__col--next .sheet__h { border-bottom-style: dashed; border-bottom-color: var(--text-2); }
.dot { width: 14px; height: 14px; border-radius: 50%; flex: none; }
.dot--on { background: var(--yellow); }
.dot--next { border: 2px dashed var(--text-2); }
.list { list-style: none; margin: 0; padding: 0; }
.list li { position: relative; padding: 13px 0 13px 30px; border-bottom: 1px solid var(--rule); color: var(--text-2); }
.list li b { color: var(--text); font-weight: 700; }
.list li::before { /* a small tick, drawn */
  content: ""; position: absolute; left: 2px; top: 20px; width: 12px; height: 7px;
  border-left: 3px solid var(--yellow); border-bottom: 3px solid var(--yellow); transform: rotate(-45deg);
}
.list--next li::before { width: 12px; height: 12px; top: 19px; border: 2px dashed var(--text-2); border-radius: 50%; transform: none; }
.release { margin: 22px 0 0; display: flex; gap: 12px; align-items: baseline; font-weight: 700; font-size: 19px; }
.release .mono { font-size: 12px; color: var(--ink); background: var(--yellow); padding: 4px 8px; font-weight: 600; letter-spacing: .06em; }

/* ---------- first stage ---------- */
.stage { padding: 0 0 var(--sec); }
.stage__board { border-top: 6px solid; border-image: linear-gradient(90deg, var(--fr-blue) 0 33.3%, var(--fr-white) 33.3% 66.6%, var(--fr-red) 66.6%) 1; padding-top: 26px; margin-bottom: 18px; }

.stage__name { margin: 0 0 14px; font-weight: 900; text-transform: uppercase; font-size: clamp(30px, 5.6vw, 64px); line-height: 1; letter-spacing: -.01em; text-wrap: balance; }
.stage__plate { margin: 0; }
.stage__plate span { display: inline-block; padding: 8px 18px 8px 14px; background: var(--fr-red); color: #fff; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; font-size: clamp(12px, 1.5vw, 15px); line-height: 1.5; clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 100%, 0 100%); }
.stage__text { max-width: 40em; color: var(--text-2); margin: 0 0 32px; font-size: clamp(17px, 1.8vw, 19px); }
.stage__pics { display: grid; gap: 20px; }
.stage__pics figure { margin: 0; }
.stage__pics img { border: 1px solid var(--rule); }
.stage__pics figcaption { margin-top: 8px; font-size: 14px; color: var(--text-2); }
.stage__pics figure:last-child img { max-height: 520px; width: auto; }
@media (min-width: 900px) {
  .stage__pics { grid-template-columns: 1.9fr 1fr; align-items: start; }
  .stage__pics figure:last-child img { max-height: 560px; }
}

/* ---------- support: the start-line board ---------- */
.support { background: var(--cream); color: var(--paper-ink); padding: var(--sec) 0; border-top: 6px solid var(--ink); }
.support__grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .support__grid { grid-template-columns: 1.1fr auto; gap: 72px; } }
.support__text p { margin: 0 0 24px; max-width: 34em; color: #2a2c31; font-size: clamp(17px, 1.8vw, 19px); }
.addr { font-weight: 800; font-size: clamp(22px, 3.4vw, 34px); margin: 22px 0 0 !important; letter-spacing: -.01em; }
.addr a { color: var(--paper-ink); text-decoration: underline; text-decoration-color: var(--yellow-deep); text-decoration-thickness: 3px; text-underline-offset: 5px; }

.qr { margin: 0 auto; width: max-content; text-align: center; }
.qr__board { background: var(--yellow); padding: 0 20px; border: 2px solid var(--paper-ink); }
.qr__run {
  display: block; padding: 12px 0; text-align: center;
  font-weight: 800; text-transform: uppercase; letter-spacing: .03em; font-size: 10.5px; line-height: 1.3; color: var(--paper-ink); white-space: nowrap;
}
@media (min-width: 900px) { .qr__board { padding: 0 28px; } .qr__run { font-size: 11.5px; letter-spacing: .05em; } }
.qr__white { background: #fff; padding: 18px; }
.qr__white img { width: 264px; height: 264px; image-rendering: pixelated; image-rendering: crisp-edges; }
.qr figcaption { margin-top: 12px; font-family: var(--mono); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--paper-2); }

/* ---------- footer ---------- */
.foot { padding: 56px 0 64px; border-top: 1px solid var(--rule); }
.foot__grid { display: grid; gap: 28px; }
@media (min-width: 900px) { .foot__grid { grid-template-columns: 1fr 1fr; } .foot__legal { grid-column: 1 / -1; } }
.foot__maker { margin: 0 0 10px; font-weight: 900; font-size: 26px; letter-spacing: .04em; }
.tricolour { display: block; width: 132px; height: 4px; background: linear-gradient(90deg, var(--fr-blue) 0 33.3%, var(--fr-white) 33.3% 66.6%, var(--fr-red) 66.6%); }
.foot__by { margin: 14px 0 0; color: var(--text-2); font-size: 15px; }
.foot__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; align-content: start; }
.foot__links a { display: inline-flex; min-height: 44px; align-items: center; }
.foot__legal { margin: 0; padding-top: 24px; border-top: 1px solid var(--rule); color: var(--text-2); font-size: 14px; max-width: 70em; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- fix round 1 ---------- */
@media (max-width: 700px) {
  .hero { display: block; min-height: 0; }
  .hero__pic { position: relative; display: block; height: 42svh; min-height: 280px; max-height: 420px; }
  .hero__pic img { position: absolute; inset: 0; object-position: 50% 100%; }
  .hero::after { top: 0; bottom: auto; height: min(max(42svh, 280px), 420px); background: linear-gradient(180deg, rgba(12,13,16,0) 60%, var(--ink) 100%); }
  .hero__body { margin-top: -28px; padding-bottom: 48px; }
  .hero__title { font-size: clamp(38px, 11vw, 48px); max-width: none; }
  .player__poster { position: relative; display: block; }
  .player { aspect-ratio: auto; }
  .player__media { position: relative; inset: auto; aspect-ratio: 16 / 9; }
  .player__cap { position: static; background: var(--graphite); }
}
.zoom { display: block; position: relative; color: inherit; }
.case__fig img.fig-natural { max-height: none; width: 100%; max-width: 360px; }
@media (min-width: 900px) { .case__fig img.fig-natural { margin-left: auto; } }
@media (min-width: 900px) { .stage__pics figure:last-child { justify-self: end; } }@media (min-width: 701px) {
  .hero__pic { left: 26%; width: auto; }
  .hero__pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-position: 50% 45%; }
  .hero::after { left: 26%; background: linear-gradient(90deg, var(--ink) 0%, rgba(12,13,16,.82) 14%, rgba(12,13,16,.45) 30%, rgba(12,13,16,.12) 44%, rgba(12,13,16,0) 54%), linear-gradient(180deg, transparent 74%, var(--ink) 100%); }
}.player.is-playing { aspect-ratio: 16 / 9; }
.stage__plate b { font-weight: inherit; white-space: nowrap; }
.cap-link { color: inherit; font-weight: 700; text-decoration: underline; text-decoration-color: var(--yellow-deep); text-decoration-thickness: 2px; text-underline-offset: 3px; white-space: nowrap; }
@media (min-width: 900px) { .stage__pics figure:last-child img { margin-left: auto; } .stage__pics figure:last-child figcaption { text-align: right; } }