/* Arvax home: the knight, machined from six parts. One canvas behind the page; the page is set on the studio floor. */

@font-face { font-family: "Funnel Display"; font-weight: 300 800; font-display: swap; src: url("/assets/fonts/funnel-display-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Funnel Display"; font-weight: 300 800; font-display: swap; src: url("/assets/fonts/funnel-display-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C4, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Host Grotesk"; font-weight: 300 800; font-display: swap; src: url("/assets/fonts/host-grotesk-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Host Grotesk"; font-weight: 300 800; font-display: swap; src: url("/assets/fonts/host-grotesk-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C4, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Red Hat Mono"; font-weight: 300 700; font-display: swap; src: url("/assets/fonts/red-hat-mono-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD; }

:root {
  --void: #0a0f0c;
  --ink: #f2ede2;
  --mute: #bdb7aa;
  --faint: #8d897f;
  --hair: rgba(242, 237, 226, 0.16);
  --hair-2: rgba(242, 237, 226, 0.3);
  --sage: #8fb58c;
  --sage-deep: #5f9a68;
  --terra: #be4c28;
  --terra-up: #a3401e;
  --terra-line: #d0683f;
  --display: "Funnel Display", "Host Grotesk", system-ui, sans-serif;
  --text: "Host Grotesk", system-ui, sans-serif;
  --mono: "Red Hat Mono", ui-monospace, monospace;
  --gutter: clamp(20px, 5.5vw, 88px);
  --bar: 68px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { background: var(--void); scrollbar-color: #3a423c var(--void); scrollbar-width: thin; -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--ink); background: var(--void); font: 400 1.0625rem/1.6 var(--text); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; font-kerning: normal; }
::selection { background: var(--sage); color: var(--void); }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--void); }
::-webkit-scrollbar-thumb { background: #2e3530; border: 3px solid var(--void); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: #48514a; }
a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--sage); outline-offset: 3px; border-radius: 3px; }
input, button { font: inherit; }
h1, h2, h3, p, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
b { font-weight: 600; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 20; padding: 10px 14px; background: var(--ink); color: var(--void); border-radius: 4px; text-decoration: none; }
.skip:focus { top: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---- the stage ---- */
#stage { position: fixed; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; }
.still { display: none; position: fixed; z-index: 0; right: 9vw; top: 50%; width: min(38vw, 460px); height: auto; translate: 0 -45%; opacity: 0.85; }
.no-gl .still { display: block; }
.dive { position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: 0; background: #ece2cf; }
.scrim-b { display: none; }
.scrim { position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: 0; }
.scrim-l { background: linear-gradient(90deg, rgba(10, 15, 12, 0.9) 0, rgba(10, 15, 12, 0.78) 34%, rgba(10, 15, 12, 0) 54%); }
.scrim-r { background: linear-gradient(270deg, rgba(10, 15, 12, 0.9) 0, rgba(10, 15, 12, 0.78) 34%, rgba(10, 15, 12, 0) 54%); }
.balloons { position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: 0; }
.leaders { position: absolute; inset: 0; overflow: visible; }
.leaders line { stroke: rgba(242, 237, 226, 0.42); stroke-width: 1; }
.leaders circle { fill: var(--ink); }
.balloon {
  position: absolute; left: 0; top: 0; width: 28px; height: 28px; margin: -14px 0 0 -14px;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--void); border: 1px solid rgba(242, 237, 226, 0.7);
  font: 500 12px/1 var(--mono); color: var(--ink); will-change: transform;
}

/* ---- header ---- */
.bar {
  position: fixed; inset: 0 0 auto; z-index: 10; height: var(--bar);
  display: flex; align-items: center; gap: clamp(16px, 3vw, 40px); padding: 0 var(--gutter);
  background: linear-gradient(rgba(10, 15, 12, 0.97) 0, rgba(10, 15, 12, 0.9) 55%, rgba(10, 15, 12, 0));
}
.brand { display: inline-flex; align-items: center; gap: 11px; font: 500 1.375rem/1 var(--display); letter-spacing: -0.01em; text-decoration: none; margin-right: auto; }
.bar nav { display: flex; gap: clamp(16px, 2.4vw, 34px); }
.bar nav a { font-size: 0.9375rem; color: var(--mute); text-decoration: none; transition: color 0.2s; }
.bar nav a:hover { color: var(--ink); }
.bar-cta { transition: opacity 0.3s, translate 0.3s; }
.bar-cta.is-away { opacity: 0; translate: 0 -6px; pointer-events: none; }

/* ---- buttons and the ask ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; height: 54px; padding: 0 24px;
  border: 0; border-radius: 4px; background: var(--terra); color: #fff8ee;
  font: 600 1rem/1 var(--text); letter-spacing: 0.005em; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color 0.2s, translate 0.12s;
}
.btn:hover { background: var(--terra-up); }
.btn:active { translate: 0 1px; }
.btn-sm { height: 38px; padding: 0 16px; font-size: 0.875rem; }
.ask { display: flex; max-width: 33rem; margin-top: 34px; }
.ask input {
  flex: 1; min-width: 0; height: 54px; padding: 0 18px; border: 1px solid var(--hair-2); border-right: 0; border-radius: 4px 0 0 4px;
  background: rgba(10, 15, 12, 0.55); color: var(--ink); caret-color: var(--sage); transition: border-color 0.2s, background-color 0.2s;
}
.ask input::placeholder { color: var(--faint); }
.ask input:hover { border-color: rgba(242, 237, 226, 0.48); }
.ask input:focus { outline: none; border-color: var(--sage); background: rgba(10, 15, 12, 0.8); }
.ask input:focus-visible { outline: none; }
.ask .btn { border-radius: 0 4px 4px 0; }
.ask:focus-within .btn { box-shadow: inset 0 0 0 1px var(--sage); }
.fine { margin-top: 16px; font-size: 0.875rem; color: var(--faint); }

/* ---- the scroll: each section is a camera position ---- */
main { position: relative; z-index: 2; }
.beat { position: relative; min-height: 80vh; display: flex; align-items: center; padding: 8vh var(--gutter); }
.beat-hero { min-height: 100vh; min-height: 100svh; padding-top: calc(var(--bar) + 6vh); padding-bottom: 8vh; }
.panel { width: min(35rem, 40vw); }
.beat-loop .panel { margin-left: auto; width: min(36rem, 40vw); }
.beat-close { min-height: 92vh; }

h1 { font: 500 clamp(2.9rem, 5.1vw, 5rem)/0.95 var(--display); letter-spacing: -0.038em; text-wrap: balance; }
.beat-hero .panel { width: min(42rem, 46vw); }
h2 { font: 500 clamp(2.25rem, 4.2vw, 4rem)/0.98 var(--display); letter-spacing: -0.032em; text-wrap: balance; }
.lead { margin-top: 28px; font-size: clamp(1.125rem, 1.35vw, 1.25rem); line-height: 1.55; color: #d7d1c4; max-width: 31rem; text-wrap: pretty; }
.panel > p { max-width: 32rem; text-wrap: pretty; color: var(--mute); }
.panel > h2 + p { margin-top: 22px; }
.panel > p + p { margin-top: 14px; }

/* the six parts */
.part h2, .inside h2 { display: flex; align-items: baseline; gap: 0.38em; }
.no {
  flex: none; align-self: center; display: inline-grid; place-items: center; width: 34px; height: 34px; translate: 0 0.06em;
  border: 1px solid rgba(242, 237, 226, 0.7); border-radius: 50%; font: 500 14px/1 var(--mono); letter-spacing: 0;
}
.panel > .claim { margin-top: 18px; font: 400 clamp(1.3rem, 1.75vw, 1.625rem)/1.32 var(--text); letter-spacing: -0.01em; color: var(--ink); }
.claim em { font-style: normal; color: var(--terra-line); }
.panel > .claim + p { margin-top: 20px; }
.status {
  display: flex; align-items: baseline; gap: 10px; margin-top: 28px !important; padding-top: 16px; border-top: 1px solid var(--hair);
  font: 500 0.75rem/1.5 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--mute) !important;
}
.status::before { content: ""; flex: none; width: 7px; height: 7px; translate: 0 -1px; border-radius: 1px; }
.s-live::before { background: var(--sage); }
.s-on::before { background: var(--ink); }
.s-wired::before { box-shadow: inset 0 0 0 1px var(--mute); }

/* inside a part */
.inside { min-height: 78vh; }
h3 { font: 500 clamp(1.9rem, 3.1vw, 3rem)/1.02 var(--display); letter-spacing: -0.028em; text-wrap: balance; }
.panel > h3 + p { margin-top: 20px; font-size: 1.125rem; }

/* taken apart: the legend the balloons answer to */
.legend { margin-top: 30px; border-top: 1px solid var(--hair); counter-reset: part; }
.legend li { counter-increment: part; display: grid; grid-template-columns: 28px 1fr; column-gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--hair); }
.legend li::before {
  content: counter(part); grid-row: span 2; display: grid; place-items: center; width: 28px; height: 28px; margin-top: 1px;
  border: 1px solid rgba(242, 237, 226, 0.7); border-radius: 50%; font: 500 12px/1 var(--mono);
}
.legend b { font-weight: 500; font-size: 1.0625rem; line-height: 1.35; }
.legend span { font-size: 0.9375rem; line-height: 1.45; color: var(--mute); }

/* docked: the cycle the signal is running */
.cycle { margin-top: 34px; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--hair); }
.cycle li { padding: 18px 16px 20px 0; border-bottom: 1px solid var(--hair); }
.cycle li:nth-child(n + 4) { border-bottom: 0; }
.cycle b { display: flex; align-items: center; gap: 9px; font: 500 1.625rem/1.1 var(--display); letter-spacing: -0.02em; color: var(--faint); transition: color 0.35s; }
.cycle b::before { content: ""; width: 8px; height: 8px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--faint); transition: background-color 0.35s, box-shadow 0.35s; }
.cycle span { display: block; margin-top: 8px; font-size: 0.875rem; line-height: 1.45; color: var(--faint); transition: color 0.35s; }
.cycle li.on b { color: var(--sage); }
.cycle li.on b::before { background: var(--sage); box-shadow: none; }
.cycle li.on span { color: var(--ink); }
.cycle li[data-step="1"].on b { color: var(--terra-line); }
.cycle li[data-step="1"].on b::before { background: var(--terra-line); }

/* the moves it never makes: struck, like an illegal move on a score sheet */
.never { margin-top: 30px; border-top: 1px solid var(--hair); }
.never li { padding: 16px 0; border-bottom: 1px solid var(--hair); color: var(--mute); font-size: 1rem; line-height: 1.5; }
.never b {
  display: block; margin-bottom: 3px; font: 500 clamp(1.375rem, 1.9vw, 1.75rem)/1.2 var(--display); letter-spacing: -0.02em; color: var(--ink);
  text-decoration: line-through; text-decoration-color: var(--terra-line); text-decoration-thickness: 2px;
}

/* the close */
.price { display: flex; align-items: flex-end; gap: 22px; margin-top: 30px !important; color: var(--mute) !important; line-height: 1.45; }
.price .amt { font: 400 clamp(4rem, 7vw, 6rem)/0.8 var(--display); letter-spacing: -0.045em; color: var(--ink); }
.price span:last-child { padding-bottom: 4px; font-size: 0.9375rem; }

/* ---- footer ---- */
.foot {
  position: relative; z-index: 2; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 28px;
  padding: 30px var(--gutter) 40px; border-top: 1px solid var(--hair); background: var(--void); color: var(--faint); font-size: 0.875rem;
}
.foot nav { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); text-decoration: underline; }

/* ---- phone: the knight holds the top of the screen, the words come up from below ---- */
@media (max-width: 760px) {
  :root { --bar: 58px; }
  .bar nav { display: none; }
  .brand { font-size: 1.25rem; }
  .beat { min-height: 66vh; min-height: 66svh; align-items: flex-start; padding: 47svh var(--gutter) 6svh; }
  .beat-hero { min-height: 100vh; min-height: 100svh; padding-top: 43svh; padding-bottom: 6svh; }
  .inside { min-height: 70svh; padding-top: 56svh; }
  .panel, .beat-hero .panel, .beat-loop .panel { width: 100%; margin: 0; }
  h1 { font-size: clamp(2.3rem, 10.4vw, 2.9rem); }
  h2 { font-size: clamp(2rem, 9vw, 2.6rem); }
  h3 { font-size: clamp(1.7rem, 7.6vw, 2.2rem); }
  .lead { margin-top: 18px; font-size: 1.0625rem; }
  .ask { margin-top: 24px; }
  .ask input { height: 50px; padding: 0 14px; }
  .ask .btn { height: 50px; padding: 0 16px; }
  .cycle { grid-template-columns: repeat(2, 1fr); }
  .cycle li:nth-child(n + 4) { border-bottom: 1px solid var(--hair); }
  .cycle li:nth-child(n + 5) { border-bottom: 0; }
  .cycle b { font-size: 1.375rem; }
  .still { right: 50%; top: 9svh; width: 58vw; translate: 50% 0; }
  .balloon { width: 24px; height: 24px; margin: -12px 0 0 -12px; font-size: 11px; }
  .balloons { clip-path: inset(0 0 56% 0); }
  .leaders { display: none; }
  .scrim { display: none; }
  .scrim-b { display: block; position: fixed; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(rgba(10, 15, 12, 0) 40svh, rgba(10, 15, 12, 0.86) 50svh, rgba(10, 15, 12, 0.94) 100%); }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
