/* Neon Frenchie: site styles
   Two themes share one set of tokens:
   - night (lights on, default): the tubes glow on a Night indigo wall
   - day (lights off): the same tubes as unlit glass on Plaster
   Interactive things have round tube ends; containers have small corners. */

/* ---------------------------------------------------------------- tokens */
:root {
  --night: #15112e;
  --night-2: #1f1a45;
  --night-3: #2a2459;
  --plaster: #ece8f1;
  --bone: #f6f0ec;
  --haze: #aca6cf;

  /* tube colours: the lit gas and the glass it sits in */
  --t-pink: #ff5caa;
  --t-sodium: #ffc845;
  --t-white: #fff1f6;
  --t-felt: #45eb9c;   /* Simple GTO */
  --t-argon: #7cb6ff;  /* LeadR */
  --t-ember: #ff8a3d;  /* Rack Wreck */
  --t-snow: #f2efff;   /* Don't Wake the Cat */
  --t-uv: #b88cff;     /* MacScapes */

  --g-pink: #47234f;
  --g-sodium: #463a2c;
  --g-white: #39334f;
  --g-felt: #1f4140;
  --g-argon: #273a62;
  --g-ember: #4a2f33;
  --g-snow: #39364f;
  --g-uv: #372a5f;
  --g-edge: transparent;

  --bg: var(--night);
  --bg-raised: var(--night-2);
  --bg-sunk: #110e26;
  --fg: var(--bone);
  --muted: var(--haze);
  --rule: rgb(172 166 207 / 0.18);
  --accent: var(--t-pink);
  --accent-ink: var(--night);
  --logo-head: var(--t-pink);
  --logo-face: var(--t-sodium);
  --logo-word: var(--t-white);
  --focus: var(--t-sodium);
  --shadow: 0 30px 80px -30px rgb(0 0 0 / 0.7);
  --plate-a: #2d2856;
  --plate-b: #231f47;
  --plate-ink: #d9d4f2;
  --plate-label: #9a94c2;
  --device: #07060f;
  --device-edge: #3a345f;
  --glow: 1;

  --font-display: "Anybody", ui-sans-serif, system-ui, sans-serif;
  --font-text: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", ui-sans-serif, system-ui, sans-serif;
  --font-code: "Atkinson Hyperlegible Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --step--1: 0.9375rem;
  --step-0: 1.125rem;
  --step-1: 1.3125rem;
  --step-2: clamp(1.5rem, 1.25rem + 0.9vw, 1.875rem);
  --step-3: clamp(1.875rem, 1.4rem + 2vw, 2.75rem);
  --step-4: clamp(2.375rem, 1.5rem + 3.6vw, 4.25rem);
  --step-5: clamp(2.75rem, 1.2rem + 6.4vw, 7rem);

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1240px;
  --section: clamp(88px, 12vw, 168px);
  --radius: 10px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  color-scheme: dark;
}

:root[data-theme="day"] {
  --bg: var(--plaster);
  --bg-raised: #f7f5fa;
  --bg-sunk: #e2dde9;
  --fg: var(--night);
  --muted: #5b5580;
  --rule: rgb(21 17 46 / 0.14);
  --accent: #d92e7d;
  --accent-ink: #fff;
  --logo-head: #d92e7d;
  --logo-face: var(--night);
  --logo-word: var(--night);
  --focus: #d92e7d;
  --shadow: 0 30px 70px -36px rgb(21 17 46 / 0.45);
  --plate-a: #e3dfeb;
  --plate-b: #d4cfe0;
  --plate-ink: #241f45;
  --plate-label: #6a6490;
  --device: #17142c;
  --device-edge: #4a4470;
  --glow: 0;

  /* unlit glass: pale tinted tube with a deeper edge */
  --g-pink: #f6b3d2;
  --g-sodium: #f6dc9c;
  --g-white: #f4f1f6;
  --g-felt: #a9e9c8;
  --g-argon: #b9d4f6;
  --g-ember: #f8c3a0;
  --g-snow: #ebe8f5;
  --g-uv: #d6c4f6;
  --g-edge: rgb(21 17 46 / 0.32);

  color-scheme: light;
}

/* ------------------------------------------------------------------ base */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-text);
  font-size: var(--step-0);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color 0.6s var(--ease), color 0.6s var(--ease);
}

img,
svg,
canvas,
video {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-color: var(--accent);
}

p {
  margin: 0 0 1em;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 130%;
  line-height: 1;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

button {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

[hidden] {
  display: none !important;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  text-decoration: none;
}

.skip:focus {
  top: 12px;
}

.wrap {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
}

.section {
  padding-block: var(--section);
}

.section-head {
  max-width: 46rem;
  margin-bottom: clamp(40px, 6vw, 72px);
}

.section-head h2 {
  font-size: var(--step-4);
  margin-bottom: 0.45em;
}

.section-head p {
  color: var(--muted);
  font-size: var(--step-1);
  max-width: 38rem;
  margin: 0;
}

.lede {
  font-size: var(--step-1);
  line-height: 1.45;
}

.muted {
  color: var(--muted);
}

/* ---------------------------------------------------------------- tubes
   neon.js clones every shape inside a .tube into three layers:
   edge (day only), glass (always) and light (night only, glowing). */
.tube {
  --c: var(--t-pink);
  --g: var(--g-pink);
}
.tube[data-tube="sodium"] { --c: var(--t-sodium); --g: var(--g-sodium); }
.tube[data-tube="white"] { --c: var(--t-white); --g: var(--g-white); }
.tube[data-tube="felt"] { --c: var(--t-felt); --g: var(--g-felt); }
.tube[data-tube="argon"] { --c: var(--t-argon); --g: var(--g-argon); }
.tube[data-tube="ember"] { --c: var(--t-ember); --g: var(--g-ember); }
.tube[data-tube="snow"] { --c: var(--t-snow); --g: var(--g-snow); }
.tube[data-tube="uv"] { --c: var(--t-uv); --g: var(--g-uv); }

/* before neon.js runs, a plain coloured stroke */
.tube :is(path, rect, circle, line, polyline, ellipse) {
  stroke: var(--c);
}
.tube .solid {
  fill: var(--c);
}

.tube__edge :is(path, rect, circle, line, polyline, ellipse) {
  stroke: var(--g-edge);
}
.tube__edge .solid {
  fill: var(--g-edge);
}
.tube__glass :is(path, rect, circle, line, polyline, ellipse) {
  stroke: var(--g);
  transition: stroke 0.6s var(--ease), fill 0.6s var(--ease);
}
.tube__glass .solid {
  fill: var(--g);
}
.tube__light :is(path, rect, circle, line, polyline, ellipse) {
  stroke: var(--c);
}
.tube__light .solid {
  fill: var(--c);
}
.tube__core :is(path, rect, circle, line, polyline, ellipse) {
  stroke: #fff;
  stroke-opacity: 0.62;
}
.tube__core .solid {
  fill: #fff;
  fill-opacity: 0.5;
  stroke: none;
}
:root[data-theme="day"] .tube__core :is(path, rect, circle, line, polyline, ellipse) {
  stroke-opacity: 0.9;
}

.tube__light,
.tube__core {
  opacity: 0;
}
.tube.is-lit .tube__light,
.tube.is-lit .tube__core {
  opacity: 1;
}
:root[data-theme="day"] .tube .tube__light {
  opacity: 0;
}
:root[data-theme="day"] .tube .tube__core {
  opacity: 1;
}

.tube.is-igniting .tube__light,
.tube.is-igniting .tube__core {
  animation: ignite var(--ignite-ms, 900ms) steps(1, end) both;
}
.tube.is-dousing .tube__light,
.tube.is-dousing .tube__core {
  animation: douse 420ms steps(1, end) both;
}

@keyframes ignite {
  0% { opacity: 0; }
  6% { opacity: 0.85; }
  10% { opacity: 0.05; }
  19% { opacity: 0.7; }
  23% { opacity: 0.15; }
  31% { opacity: 1; }
  36% { opacity: 0.45; }
  42%, 100% { opacity: 1; }
}
@keyframes douse {
  0% { opacity: 1; }
  20% { opacity: 0.2; }
  35% { opacity: 0.8; }
  55%, 100% { opacity: 0; }
}

.tube.is-buzzing .tube__light {
  animation: buzz 600ms steps(1, end) both;
}
@keyframes buzz {
  0%, 100% { opacity: 1; }
  12% { opacity: 0.3; }
  18% { opacity: 1; }
  40% { opacity: 0.6; }
  46% { opacity: 1; }
}

/* the winking flasher: two frames, like a sign on a flasher circuit */
.wink {
  transition: opacity 0.08s;
}
.eye-open {
  opacity: 0;
  transition: opacity 0.08s;
}
.is-awake .wink {
  opacity: 0;
}
.is-awake .eye-open {
  opacity: 1;
}

/* ----------------------------------------------------------------- nav */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  transition: background-color 0.4s var(--ease), box-shadow 0.4s var(--ease), backdrop-filter 0.4s;
}

.nav.is-scrolled {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 1px 0 var(--rule);
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 72px;
}

.nav__brand {
  display: flex;
  align-items: center;
  margin-right: auto;
  text-decoration: none;
  border-radius: 8px;
}

.logo {
  height: 30px;
  width: auto;
  overflow: visible;
}

.logo .logo-head,
.mark .logo-head {
  stroke: var(--logo-head);
  transition: stroke 0.6s var(--ease);
}
.logo .logo-face :is(path, circle),
.mark .logo-face :is(path, circle) {
  stroke: var(--logo-face);
  transition: stroke 0.6s var(--ease), fill 0.6s var(--ease);
}
.logo .logo-face .solid,
.mark .logo-face .solid {
  fill: var(--logo-face);
}
.logo .logo-word path {
  stroke: var(--logo-word);
  transition: stroke 0.6s var(--ease);
}
.logo .logo-dot {
  fill: var(--logo-face);
  stroke: none;
}
:root[data-theme="night"] .logo,
:root:not([data-theme]) .logo {
  filter: drop-shadow(0 0 6px rgb(255 92 170 / 0.35));
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__links a {
  display: block;
  padding: 8px 14px;
  border-radius: 999px;
  text-decoration: none;
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--muted);
  transition: color 0.2s, background-color 0.2s;
}

.nav__links a:hover,
.nav__links a[aria-current="page"] {
  color: var(--fg);
  background: color-mix(in srgb, var(--fg) 7%, transparent);
}

.nav__menu-btn {
  display: none;
  align-items: center;
  gap: 10px;
  height: 42px;
  padding: 0 16px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: transparent;
  font-size: var(--step--1);
  font-weight: 700;
  cursor: pointer;
}

.nav__menu-btn span[aria-hidden] {
  display: grid;
  gap: 4px;
}

.nav__menu-btn span[aria-hidden] i {
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.3s var(--ease);
}

.nav.is-open .nav__menu-btn span[aria-hidden] i:first-child {
  transform: translateY(3px) rotate(45deg);
}
.nav.is-open .nav__menu-btn span[aria-hidden] i:last-child {
  transform: translateY(-3px) rotate(-45deg);
}

/* the light switch: a wall plate with a toggle that flips */
.switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--muted);
  border-radius: 10px;
}

.switch__plate {
  position: relative;
  width: 30px;
  height: 44px;
  border-radius: 7px;
  background: linear-gradient(160deg, #f4f1f8, #cfc9dc);
  box-shadow: inset 0 -2px 0 rgb(0 0 0 / 0.12), 0 2px 6px rgb(0 0 0 / 0.35);
}

.switch__plate::before,
.switch__plate::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 3px;
  height: 3px;
  margin-left: -1.5px;
  border-radius: 50%;
  background: #9d96b2;
}
.switch__plate::before { top: 4px; }
.switch__plate::after { bottom: 4px; }

.switch__toggle {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 20px;
  margin: -10px 0 0 -6px;
  border-radius: 4px;
  background: linear-gradient(180deg, #fff, #e3dfeb);
  box-shadow: 0 1px 0 rgb(255 255 255 / 0.9) inset, 0 0 0 1px rgb(0 0 0 / 0.08);
  transition: transform 0.18s cubic-bezier(0.5, 1.8, 0.5, 1);
}

.switch__toggle::after {
  content: "";
  position: absolute;
  inset: 3px 3px auto;
  height: 8px;
  border-radius: 2px;
  background: linear-gradient(180deg, rgb(0 0 0 / 0.02), rgb(0 0 0 / 0.14));
}

.switch[aria-checked="true"] .switch__toggle {
  transform: perspective(40px) rotateX(18deg) translateY(-2px);
}
.switch[aria-checked="false"] .switch__toggle {
  transform: perspective(40px) rotateX(-18deg) translateY(2px);
}
.switch[aria-checked="false"] .switch__toggle::after {
  inset: auto 3px 3px;
  background: linear-gradient(0deg, rgb(0 0 0 / 0.02), rgb(0 0 0 / 0.14));
}

.switch:hover .switch__label {
  color: var(--fg);
}

/* --------------------------------------------------------------- buttons */
.btn {
  --btn: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border: 2px solid var(--btn);
  border-radius: 999px;
  background: var(--btn);
  color: var(--accent-ink);
  font-family: var(--font-text);
  font-weight: 700;
  font-size: 1.0625rem;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 0 calc(22px * var(--glow)) -4px var(--btn);
  transition: transform 0.2s var(--ease), box-shadow 0.25s var(--ease), background-color 0.25s;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 calc(30px * var(--glow)) 0 var(--btn), 0 8px 20px -10px rgb(0 0 0 / 0.4);
}

.btn:active {
  transform: translateY(1px);
}

.btn--ghost {
  background: transparent;
  color: var(--fg);
  border-color: color-mix(in srgb, var(--fg) 30%, transparent);
  box-shadow: none;
}

.btn--ghost:hover {
  border-color: var(--btn);
  box-shadow: 0 0 calc(20px * var(--glow)) -6px var(--btn);
}

.btn svg {
  width: 18px;
  height: 18px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ------------------------------------------------------------------ hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  padding-top: 96px;
  padding-bottom: clamp(48px, 7vw, 88px);
  isolation: isolate;
  overflow: hidden;
}

/* the wall: faint mortar lines and a pool of light that follows the sign's state */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(to bottom, transparent 0 calc(100% - 1px), color-mix(in srgb, var(--fg) 4%, transparent) calc(100% - 1px)),
    linear-gradient(to right, transparent 0 calc(100% - 1px), color-mix(in srgb, var(--fg) 3.5%, transparent) calc(100% - 1px));
  background-size: 100% 46px, 128px 46px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 35%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 35%, #000 20%, transparent 75%);
}

.hero__pool {
  position: absolute;
  inset: -10% -10% 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 42% 34% at 50% 26%, rgb(255 92 170 / 0.30), transparent 70%),
    radial-gradient(ellipse 30% 22% at 50% 46%, rgb(255 200 69 / 0.13), transparent 70%),
    radial-gradient(ellipse 60% 50% at 50% 34%, rgb(255 241 246 / 0.06), transparent 70%);
  opacity: 0;
  transition: opacity 1.4s var(--ease);
}

.hero.is-lit .hero__pool {
  opacity: 1;
}

:root[data-theme="day"] .hero__pool {
  opacity: 0.0;
}

.hero__sign {
  display: grid;
  place-items: center;
  padding-block: clamp(8px, 3vh, 40px);
}

.sign {
  width: min(720px, 92vw);
  max-height: 44svh;
  overflow: visible;
}

.sign .panel__glass {
  fill: color-mix(in srgb, var(--fg) 2.5%, transparent);
  stroke: color-mix(in srgb, var(--fg) 12%, transparent);
  stroke-width: 1.5;
}
.sign .panel__edge {
  stroke: color-mix(in srgb, #fff 22%, transparent);
  stroke-width: 1.5;
  fill: none;
}
.sign .standoff circle {
  fill: #8b86a6;
}
.sign .standoff .standoff__cap {
  fill: #d8d4e6;
}
.sign .cable {
  fill: none;
  stroke: #0a0816;
  stroke-width: 4;
  stroke-linecap: round;
}
:root[data-theme="day"] .sign .cable {
  stroke: #2a2547;
}

.sign-hint {
  margin: 4px 0 0;
}

.sign-hint button {
  padding: 6px 12px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline dotted;
  text-underline-offset: 0.3em;
}

.sign-hint button:hover {
  color: var(--fg);
}

.hero__copy {
  display: grid;
  gap: clamp(20px, 3vw, 32px);
}

.hero h1 {
  font-size: clamp(2.5rem, 0.6rem + 6vw, 6.75rem);
  font-stretch: 125%;
  font-weight: 850;
  line-height: 0.92;
  letter-spacing: -0.03em;
}

.hero h1 span {
  display: block;
}

.hero__aside {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px 48px;
}

.hero__aside p {
  margin: 0;
  font-size: var(--step-1);
  line-height: 1.5;
  max-width: 36rem;
}

.boop {
  position: absolute;
  z-index: 3;
  pointer-events: none;
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 140%;
  font-size: 1.25rem;
  color: var(--t-sodium);
  text-shadow: 0 0 calc(12px * var(--glow)) var(--t-sodium);
  animation: boop 900ms var(--ease) forwards;
}
:root[data-theme="day"] .boop {
  color: #b5197a;
}

@keyframes boop {
  0% { opacity: 0; transform: translate(-50%, 0) scale(0.6); }
  20% { opacity: 1; transform: translate(-50%, -14px) scale(1.05); }
  100% { opacity: 0; transform: translate(-50%, -54px) scale(1); }
}

/* ------------------------------------------------------- the shop window */
.window {
  position: relative;
  background: var(--bg-sunk);
  border-block: 1px solid var(--rule);
}

.window__row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 24px);
  list-style: none;
  margin: 0;
  padding: 0;
}

.shopsign {
  display: grid;
  justify-items: start;
  gap: 14px;
  height: 100%;
  padding: 22px 20px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--rule);
  background: color-mix(in srgb, var(--bg) 60%, transparent);
  text-decoration: none;
  transition: border-color 0.3s, background-color 0.3s, transform 0.3s var(--ease);
}

.shopsign svg {
  width: 64px;
  height: 64px;
  overflow: visible;
}

.shopsign .tube__light,
.shopsign .tube__core {
  transition: opacity 0.25s;
}

.shopsign:not(:hover):not(:focus-visible) .tube.is-lit .tube__light {
  opacity: 0.55;
}

.window__row:hover .shopsign:not(:hover) {
  opacity: 0.6;
}

.shopsign:hover,
.shopsign:focus-visible {
  border-color: color-mix(in srgb, var(--fg) 26%, transparent);
  transform: translateY(-3px);
}

.shopsign__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 120%;
  font-size: 1.25rem;
  line-height: 1.05;
}

.shopsign__line {
  color: var(--muted);
  font-size: var(--step--1);
  line-height: 1.45;
}

.shopsign__status {
  align-self: end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--muted);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--status, var(--muted));
  box-shadow: 0 0 calc(10px * var(--glow)) var(--status, transparent);
}

.dot[data-status="live"] { --status: #45eb9c; }
.dot[data-status="inhouse"] { --status: #7cb6ff; }
.dot[data-status="soon"] { --status: #ffc845; }
.dot[data-status="building"] { --status: #b88cff; }
:root[data-theme="day"] .dot[data-status="live"] { --status: #11995b; }
:root[data-theme="day"] .dot[data-status="inhouse"] { --status: #2f6fd1; }
:root[data-theme="day"] .dot[data-status="soon"] { --status: #c98a00; }
:root[data-theme="day"] .dot[data-status="building"] { --status: #7a4ad8; }

/* -------------------------------------------------------------- exhibits */
.exhibit {
  --c: var(--t-pink);
  position: relative;
  padding-block: clamp(72px, 10vw, 136px);
  border-top: 1px solid var(--rule);
}

.exhibit[data-tube="felt"] { --c: var(--t-felt); --c-day: #0f8a52; }
.exhibit[data-tube="argon"] { --c: var(--t-argon); --c-day: #2a62c4; }
.exhibit[data-tube="ember"] { --c: var(--t-ember); --c-day: #c9520c; }
.exhibit[data-tube="snow"] { --c: var(--t-snow); --c-day: #3b3460; }
.exhibit[data-tube="uv"] { --c: var(--t-uv); --c-day: #6a3fd0; }
:root[data-theme="day"] .exhibit {
  --c: var(--c-day);
}

.exhibit::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse 50% 60% at var(--pool-x, 75%) 50%, color-mix(in srgb, var(--c) 9%, transparent), transparent 70%);
  opacity: var(--glow);
}

.exhibit--flip {
  --pool-x: 25%;
}

.exhibit__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(36px, 6vw, 96px);
  align-items: center;
}

.exhibit--flip .exhibit__grid {
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
}

.exhibit--flip .exhibit__text {
  order: 2;
}

.exhibit__icon {
  width: 56px;
  height: 56px;
  margin-bottom: 22px;
  overflow: visible;
}

.exhibit h3 {
  font-size: var(--step-4);
  font-stretch: 125%;
  margin-bottom: 0.3em;
}

.exhibit__tagline {
  font-size: var(--step-2);
  font-family: var(--font-display);
  font-weight: 600;
  font-stretch: 100%;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--c);
  margin-bottom: 1em;
  max-width: 24ch;
}

.exhibit__text > p {
  color: color-mix(in srgb, var(--fg) 84%, transparent);
  max-width: 34rem;
}

.features {
  list-style: none;
  margin: 24px 0 32px;
  padding: 0;
  display: grid;
  gap: 12px;
  max-width: 34rem;
}

.features li {
  position: relative;
  padding-left: 30px;
  line-height: 1.5;
}

.features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 16px;
  height: 4px;
  border-radius: 4px;
  background: var(--c);
  box-shadow: 0 0 calc(10px * var(--glow)) var(--c);
}

/* spec plate: like the rating plate on a neon transformer */
.plate {
  position: relative;
  display: grid;
  grid-template-columns: max-content 1fr;
  column-gap: 20px;
  row-gap: 8px;
  max-width: 34rem;
  margin: 0;
  padding: 20px 26px;
  border-radius: 8px;
  color: var(--plate-ink);
  background:
    repeating-linear-gradient(90deg, rgb(255 255 255 / 0.025) 0 1px, transparent 1px 3px),
    linear-gradient(170deg, var(--plate-a), var(--plate-b));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.12), inset 0 -1px 0 rgb(0 0 0 / 0.2), 0 10px 30px -18px rgb(0 0 0 / 0.6);
  font-size: var(--step--1);
  line-height: 1.45;
}

.plate::before,
.plate::after {
  content: "";
  position: absolute;
  top: 9px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff 0 15%, #aaa4c4 40%, #6b6590 100%);
  box-shadow: 0 1px 1px rgb(0 0 0 / 0.4);
}
.plate::before { left: 9px; }
.plate::after { right: 9px; }

.plate dt {
  color: var(--plate-label);
  font-weight: 600;
}

.plate dd {
  margin: 0;
  font-weight: 600;
}

.plate .dot {
  display: inline-block;
  margin-right: 8px;
  vertical-align: 1px;
}

/* stage + segmented control */
.stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  gap: 24px;
}

.seg {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
  border: 1px solid var(--rule);
  background: color-mix(in srgb, var(--bg-raised) 70%, transparent);
}

.seg button {
  min-height: 38px;
  padding: 0 15px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.2s, background-color 0.2s, box-shadow 0.2s;
}

.seg button:hover {
  color: var(--fg);
}

.seg button[aria-pressed="true"],
.seg button[aria-selected="true"] {
  background: var(--c);
  color: var(--night);
  box-shadow: 0 0 calc(18px * var(--glow)) -4px var(--c);
}
:root[data-theme="day"] .seg button[aria-pressed="true"],
:root[data-theme="day"] .seg button[aria-selected="true"] {
  color: #fff;
}

.stage__note {
  font-size: 0.875rem;
  color: var(--muted);
  text-align: center;
  margin: 0;
  max-width: 34rem;
}

/* ---------------------------------------------------------------- devices */
.phone {
  position: relative;
  width: min(300px, 72vw);
  aspect-ratio: 1320 / 2868;
  padding: 9px;
  border-radius: 48px;
  background: var(--device);
  box-shadow: 0 0 0 1.5px var(--device-edge), inset 0 0 0 2px #000, var(--shadow);
}

.phone__screen {
  position: relative;
  height: 100%;
  border-radius: 39px;
  overflow: hidden;
  background: #000;
}

.phone__screen img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tablet {
  position: relative;
  width: min(440px, 80vw);
  aspect-ratio: 2064 / 2752;
  padding: 12px;
  border-radius: 34px;
  background: var(--device);
  box-shadow: 0 0 0 1.5px var(--device-edge), var(--shadow);
}

.tablet img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 23px;
}

.landscape {
  position: relative;
  width: 100%;
  max-width: 760px;
  aspect-ratio: 2178 / 1000;
  padding: 10px;
  border-radius: 40px;
  background: var(--device);
  box-shadow: 0 0 0 1.5px var(--device-edge), inset 0 0 0 2px #000, var(--shadow);
}

.landscape__screen {
  position: relative;
  height: 100%;
  border-radius: 31px;
  overflow: hidden;
  background: #120a20;
}

.landscape__screen img,
.landscape__screen canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.browser {
  width: 100%;
  max-width: 780px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--device);
  box-shadow: 0 0 0 1px var(--device-edge), var(--shadow);
}

.browser__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  background: #1c1934;
}
:root[data-theme="day"] .browser__bar {
  background: #e4e0ec;
}

.browser__bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #4a4570;
}
:root[data-theme="day"] .browser__bar i {
  background: #b9b3cc;
}

.browser__url {
  flex: 1;
  max-width: 280px;
  margin: 0 auto;
  height: 22px;
  border-radius: 6px;
  background: rgb(255 255 255 / 0.06);
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 22px;
  text-align: center;
}
:root[data-theme="day"] .browser__url {
  background: rgb(255 255 255 / 0.7);
}

.browser__screen {
  position: relative;
  aspect-ratio: 2880 / 1640;
  background: #0f1412;
}

.browser__screen img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
}

.laptop {
  width: 100%;
  max-width: 800px;
}

.laptop__lid {
  position: relative;
  padding: 2.2% 2.2% 3%;
  border-radius: 22px 22px 6px 6px;
  background: var(--device);
  box-shadow: 0 0 0 1.5px var(--device-edge), var(--shadow);
}

.laptop__screen {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 6px;
  background: #000;
}

.laptop__base {
  position: relative;
  height: 16px;
  margin: 0 -4%;
  border-radius: 0 0 18px 18px;
  background: linear-gradient(180deg, #a7a2bf, #6d6890);
  box-shadow: 0 18px 30px -16px rgb(0 0 0 / 0.6);
}

.laptop__base::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 16%;
  height: 6px;
  transform: translateX(-50%);
  border-radius: 0 0 8px 8px;
  background: #5e597c;
}

/* screens that swap: crossfade stacked images */
.swap > img,
.swap > canvas.scene {
  opacity: 0;
  transition: opacity 0.45s var(--ease);
}

.swap > img.is-on,
.swap > canvas.scene.is-on {
  opacity: 1;
}

/* ------------------------------------------------------- Simple GTO stage */
.gto-stage {
  position: relative;
  width: 100%;
  display: grid;
  place-items: center;
  min-height: 560px;
}

.gto-stage .tablet {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%) rotate(4deg);
  width: min(380px, 52%);
  opacity: 0.9;
}

.gto-stage .phone {
  position: relative;
  z-index: 2;
  margin-right: 28%;
  transform: rotate(-3deg);
}

.wipe {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--t-felt) 70%, transparent) 48%, var(--t-felt) 50%, transparent 52%);
  background-size: 100% 300%;
  background-position: 0 100%;
  opacity: 0;
}

.wipe.is-running {
  animation: wipe 700ms var(--ease);
}

@keyframes wipe {
  0% { opacity: 1; background-position: 0 100%; }
  100% { opacity: 1; background-position: 0 0%; }
}

/* ------------------------------------------------------- Rack Wreck stage */
.rw-stage {
  width: 100%;
}

.rw-controls {
  width: 100%;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

.rw-thumbs {
  min-width: 0;
  display: flex;
  gap: 8px;
  max-width: 100%;
  overflow-x: auto;
  padding: 4px;
  scrollbar-width: none;
}

.rw-thumbs::-webkit-scrollbar {
  display: none;
}

.rw-thumbs button {
  flex: 0 0 auto;
  width: 82px;
  aspect-ratio: 2178 / 1000;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  background: #000;
  opacity: 0.6;
  transition: opacity 0.2s, border-color 0.2s;
}

.rw-thumbs button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rw-thumbs button[aria-selected="true"],
.rw-thumbs button:hover {
  opacity: 1;
}

.rw-thumbs button[aria-selected="true"] {
  border-color: var(--c);
}

.toy {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: none;
  touch-action: none;
  cursor: grab;
}

.toy.is-on {
  display: block;
}

.toy-hud {
  position: absolute;
  inset: 14px 18px auto;
  z-index: 5;
  display: none;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  pointer-events: none;
  font-family: var(--font-display);
  font-stretch: 115%;
  font-weight: 800;
  color: #fff;
  font-size: clamp(0.75rem, 1.6vw, 1.05rem);
  text-shadow: 0 2px 0 rgb(0 0 0 / 0.4);
}

.toy-hud.is-on {
  display: flex;
}

.toy-hud__bubble {
  max-width: 60%;
  padding: 8px 12px;
  border-radius: 12px;
  background: #fff;
  color: #1b1530;
  font-family: var(--font-text);
  font-stretch: 100%;
  font-weight: 700;
  text-shadow: none;
  font-size: clamp(0.7rem, 1.4vw, 0.9rem);
  line-height: 1.3;
}

.toy-hud__bill small {
  display: block;
  font-size: 0.7em;
  opacity: 0.75;
}

.toy-hint {
  position: absolute;
  left: 50%;
  bottom: 14px;
  z-index: 5;
  transform: translateX(-50%);
  display: none;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgb(0 0 0 / 0.55);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
  pointer-events: none;
}

.toy-hint.is-on {
  display: block;
}

/* --------------------------------------------------- Don't Wake the Cat */
.cat-stage {
  display: grid;
  justify-items: center;
  gap: 22px;
}

.flipper {
  perspective: 1400px;
}

.flipper__body {
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.9s cubic-bezier(0.5, 0, 0.2, 1);
}

.flipper.is-down .flipper__body {
  transform: rotateX(180deg);
}

.flipper .phone {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.phone--back {
  position: absolute;
  inset: 0;
  transform: rotateX(180deg);
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, #2b2650, #17142c);
}

.phone--back .camera {
  position: absolute;
  top: 18px;
  left: 18px;
  width: 34%;
  aspect-ratio: 1;
  border-radius: 26px;
  background: rgb(255 255 255 / 0.06);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.08);
}

.phone--back .camera i {
  position: absolute;
  width: 34%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, #3f3a66, #090814 60%);
  box-shadow: 0 0 0 3px #1c1934;
}
.phone--back .camera i:nth-child(1) { left: 12%; top: 12%; }
.phone--back .camera i:nth-child(2) { left: 12%; bottom: 12%; }
.phone--back .camera i:nth-child(3) { right: 12%; top: 33%; }

.phone--back svg {
  width: 30%;
  opacity: 0.85;
}

.cat-readout {
  min-height: 3.4em;
  display: grid;
  justify-items: center;
  gap: 2px;
  text-align: center;
}

.cat-readout__time {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 110%;
  font-size: var(--step-3);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.cat-readout__msg {
  color: var(--muted);
  font-size: var(--step--1);
}

.cat-thumbs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.cat-thumbs button {
  width: 46px;
  aspect-ratio: 1320 / 2868;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 9px;
  overflow: hidden;
  background: #fff;
  cursor: pointer;
  opacity: 0.65;
  transition: opacity 0.2s, border-color 0.2s;
}

.cat-thumbs button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cat-thumbs button:hover,
.cat-thumbs button[aria-pressed="true"] {
  opacity: 1;
}

.cat-thumbs button[aria-pressed="true"] {
  border-color: var(--c);
}

/* -------------------------------------------------------- MacScapes stage */
.ms-stage {
  width: 100%;
}

.ms-screen img,
.ms-screen canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ms-screen .scene {
  transform: scale(1.06);
}

.ms-screen.is-drifting .scene.is-on {
  animation: drift 24s ease-in-out infinite alternate;
}

@keyframes drift {
  from { transform: scale(1.06) translate(0, 0); }
  to { transform: scale(1.12) translate(-1.5%, 1%); }
}

.ms-menubar {
  position: absolute;
  inset: 0 0 auto;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 14px;
  height: 4.2%;
  min-height: 14px;
  padding: 0 1.6%;
  background: rgb(20 16 40 / 0.28);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #fff;
  font-size: clamp(7px, 1.05vw, 11px);
  font-weight: 700;
}

.ms-menubar span:last-child {
  margin-left: auto;
  font-variant-numeric: tabular-nums;
}

.ms-widget {
  position: absolute;
  right: 3%;
  top: 9%;
  z-index: 3;
  padding: 1.2% 1.8%;
  border-radius: 12px;
  background: rgb(255 255 255 / 0.14);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.18);
}

.ms-widget b {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: 100%;
  font-size: clamp(16px, 3.4vw, 38px);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.ms-widget small {
  font-size: clamp(7px, 1vw, 11px);
  font-weight: 700;
  opacity: 0.85;
}

.ms-window {
  position: absolute;
  inset: 12% 8% 6%;
  z-index: 4;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgb(0 0 0 / 0.5), 0 0 0 1px rgb(255 255 255 / 0.12);
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
  pointer-events: none;
}

.ms-window.is-on {
  opacity: 1;
  transform: none;
}

.ms-window img {
  position: static;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
}

.ms-live-tag {
  position: absolute;
  left: 3%;
  bottom: 4%;
  z-index: 3;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgb(0 0 0 / 0.45);
  color: #fff;
  font-size: clamp(9px, 1.1vw, 12px);
  font-weight: 700;
  opacity: 0;
  transition: opacity 0.3s;
}

.ms-live-tag.is-on {
  opacity: 1;
}

/* ------------------------------------------------------------ the bench */
.bench {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  max-width: 920px;
}

.bench::before {
  content: "";
  position: absolute;
  left: 150px;
  top: 12px;
  bottom: 12px;
  width: 4px;
  border-radius: 4px;
  background: var(--g-pink);
}
:root[data-theme="night"] .bench::before,
:root:not([data-theme]) .bench::before {
  background: linear-gradient(var(--t-pink), var(--t-uv));
  box-shadow: 0 0 14px rgb(255 92 170 / 0.6);
}

.bench li {
  position: relative;
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 40px;
  padding-block: 18px;
}

.bench li::before {
  content: "";
  position: absolute;
  left: 145px;
  top: 27px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg);
  box-shadow: 0 0 0 4px var(--accent);
}

.bench time {
  color: var(--muted);
  font-weight: 700;
  font-size: var(--step--1);
  padding-top: 4px;
  text-align: right;
  padding-right: 8px;
}

.bench h3 {
  font-size: var(--step-1);
  font-stretch: 110%;
  font-weight: 750;
  margin-bottom: 6px;
  line-height: 1.25;
}

.bench p {
  margin: 0;
  color: var(--muted);
  max-width: 40rem;
}

/* -------------------------------------------------------------- studio */
.studio__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(36px, 6vw, 96px);
  align-items: start;
}

.studio__photo {
  position: sticky;
  top: 100px;
  margin: 0;
}

.studio__photo img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.studio__photo figcaption {
  margin-top: 12px;
  font-size: 0.875rem;
  color: var(--muted);
}

.studio__intro h2 {
  font-size: var(--step-4);
  margin-bottom: 0.5em;
}

.studio__intro p {
  font-size: var(--step-1);
  line-height: 1.5;
  max-width: 36rem;
}

.rules {
  list-style: none;
  margin: 56px 0 0;
  padding: 0;
  counter-reset: none;
}

.rules li {
  padding-block: 26px;
  border-top: 1px solid var(--rule);
}

.rules h3 {
  font-size: var(--step-3);
  font-stretch: 120%;
  margin-bottom: 0.35em;
}

.rules p {
  margin: 0;
  color: var(--muted);
  max-width: 36rem;
}

/* ----------------------------------------------------------- brand teaser */
.kit {
  background: var(--bg-sunk);
  border-block: 1px solid var(--rule);
}

.kit__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(36px, 6vw, 88px);
  align-items: center;
}

.kit__photo {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.kit__text h2 {
  font-size: var(--step-4);
  margin-bottom: 0.5em;
}

.kit__text p {
  color: var(--muted);
  font-size: var(--step-1);
  line-height: 1.5;
}

.kit__swatches {
  display: flex;
  gap: 8px;
  margin: 28px 0 32px;
}

.kit__swatches span {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.12);
}

/* --------------------------------------------------------------- contact */
.contact {
  text-align: center;
}

.contact .wrap {
  display: grid;
  justify-items: center;
}

.open-sign {
  width: min(380px, 78vw);
  overflow: visible;
  margin-bottom: 40px;
  cursor: pointer;
}

.contact h2 {
  font-size: var(--step-4);
  margin-bottom: 0.4em;
  max-width: 16ch;
}

.contact p {
  color: var(--muted);
  font-size: var(--step-1);
  max-width: 34rem;
}

.contact .actions {
  justify-content: center;
  margin-top: 16px;
}

.copied {
  min-height: 1.6em;
  margin-top: 14px;
  font-size: var(--step--1);
  color: var(--accent);
  font-weight: 700;
}

/* ---------------------------------------------------------------- footer */
.footer {
  padding-block: 56px 40px;
  border-top: 1px solid var(--rule);
  font-size: var(--step--1);
  color: var(--muted);
}

.footer__grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer .mark {
  width: 44px;
  height: auto;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer__links a {
  text-decoration: none;
  font-weight: 600;
}

.footer__links a:hover {
  color: var(--fg);
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 28px;
}

/* -------------------------------------------------------------- reveals */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ----------------------------------------------------------- responsive */
@media (max-width: 1080px) {
  .window__row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .nav__links {
    position: fixed;
    inset: 72px 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px var(--gutter) 24px;
    background: var(--bg);
    border-bottom: 1px solid var(--rule);
    box-shadow: 0 30px 40px -30px rgb(0 0 0 / 0.5);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, transform 0.25s var(--ease), visibility 0s 0.25s;
  }

  .nav.is-open .nav__links {
    opacity: 1;
    transform: none;
    visibility: visible;
    transition: opacity 0.25s, transform 0.25s var(--ease);
  }

  .nav.is-open {
    background: var(--bg);
  }

  .nav__links a {
    padding: 14px 4px;
    font-size: var(--step-1);
    border-radius: 0;
    border-bottom: 1px solid var(--rule);
  }

  .nav__links a:hover {
    background: none;
  }

  .nav__menu-btn {
    display: inline-flex;
  }

  .switch__label {
    display: none;
  }

  .exhibit__grid,
  .exhibit--flip .exhibit__grid,
  .studio__grid,
  .kit__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .exhibit--flip .exhibit__text {
    order: 0;
  }

  .studio__photo {
    position: static;
    max-width: 480px;
  }

  .gto-stage {
    min-height: 0;
  }

  .gto-stage .tablet {
    display: none;
  }

  .gto-stage .phone {
    margin-right: 0;
    transform: none;
  }
}

@media (max-width: 640px) {
  .window__row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .window__row li:last-child {
    grid-column: 1 / -1;
  }

  .shopsign {
    padding: 18px 16px;
  }

  .bench::before {
    left: 6px;
  }

  .bench li {
    grid-template-columns: 1fr;
    gap: 4px;
    padding-left: 36px;
  }

  .bench li::before {
    left: 1px;
    top: 22px;
  }

  .bench time {
    text-align: left;
    padding: 0;
  }

  .plate {
    grid-template-columns: 1fr;
    row-gap: 2px;
  }

  .plate dd + dt {
    margin-top: 10px;
  }

  .seg {
    border-radius: 22px;
  }

  .landscape {
    border-radius: 24px;
    padding: 6px;
  }

  .landscape__screen {
    border-radius: 19px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
