/* Tulix Showroom — layout and sections. Device frames live in devices.css. */

:root {
  /* Vertical rhythm: one gap between sections, a tighter one between projects. */
  --space-section: clamp(56px, 6.5vw, 96px);
  --space-project: clamp(44px, 5vw, 76px);
  --space-head: clamp(24px, 2.6vw, 36px);
  --bg: #06070b;
  --bg-2: #0c0e14;
  --bg-3: #12151d;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #f3f4f7;
  --muted: #9ba1ae;
  --dim: #6b7180;
  --tulix: #fd3e00;
  --live: #ff3b30;

  --f-display: "Archivo", system-ui, sans-serif;
  --f-body: "Inter", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;

  --gutter: clamp(16px, 4vw, 64px);
  --max: 1360px;
  --nav-h: 64px;
  --radius: 18px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.55 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }

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

.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Type ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font: 500 0.74rem/1 var(--f-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--tulix);
  box-shadow: 0 0 0 4px rgba(253, 62, 0, 0.18);
}

.display {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 800;
  font-stretch: 118%;
  letter-spacing: -0.02em;
  line-height: 0.95;
}

.section-title {
  font-size: clamp(2.3rem, 5vw, 4.6rem);
  margin: 14px 0 14px;
}

.section-sub {
  max-width: 640px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.3vw, 1.18rem);
}

.mono {
  font-family: var(--f-mono);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: var(--muted);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  white-space: nowrap;
}
.btn:hover { background: rgba(255, 255, 255, 0.09); border-color: rgba(255, 255, 255, 0.28); }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--tulix); border-color: var(--tulix); color: #fff; }
.btn--primary:hover { background: #ff5a24; border-color: #ff5a24; }
.btn--small { min-height: 38px; padding: 0 16px; font-size: 0.88rem; }
.btn--brand { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.btn--brand:hover { filter: brightness(1.08); background: var(--brand); border-color: var(--brand); }

.play-icon {
  width: 0;
  height: 0;
  border-left: 9px solid currentColor;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}

/* ---------- Banner + nav ---------- */
.banner {
  position: relative;
  z-index: 60;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  padding: 6px var(--gutter);
  background: #0f1118;
  border-bottom: 1px solid var(--line);
  font: 500 0.78rem/1.3 var(--f-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #d8dbe2;
  text-align: center;
}
.banner::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--live);
  animation: pulse 1.6s ease-in-out infinite;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 28px;
  height: var(--nav-h);
  padding: 0 var(--gutter);
  transition: background 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(6, 7, 11, 0.78);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-color: var(--line);
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 800 1.2rem/1 var(--f-display);
  font-stretch: 125%;
  letter-spacing: 0.16em;
  text-decoration: none;
}
.wordmark__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--tulix);
  box-shadow: 0 0 14px rgba(253, 62, 0, 0.8);
}
.nav__links { display: flex; gap: 26px; margin-left: auto; }
.nav__links a {
  font-size: 0.92rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.nav__links a:hover { color: var(--text); }
.nav > .btn { margin-left: 8px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: calc(100svh - var(--nav-h));
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  margin-top: calc(-1 * var(--nav-h));
  padding-top: var(--nav-h);
}
.hero__wall {
  position: absolute;
  inset: -10% -20% -10% 18%;
  perspective: 1800px;
  pointer-events: none;
}
.hero__plane {
  display: flex;
  flex-direction: column;
  gap: 2.2vw;
  transform: rotateX(16deg) rotateY(-14deg) rotateZ(-6deg);
  transform-origin: 40% 50%;
}
.hero__row {
  display: flex;
  gap: 2.2vw;
  width: max-content;
  align-items: center;
  animation: drift 90s linear infinite;
}
.hero__row:nth-child(2) { animation-direction: reverse; animation-duration: 110s; }
.hero__row:nth-child(3) { animation-duration: 130s; }
.hero__row .device.tv,
.hero__row .device.browser { width: clamp(260px, 26vw, 520px); }
.hero__row .device.phone { width: clamp(90px, 8.5vw, 170px); }

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, var(--bg) 0%, rgba(6, 7, 11, 0.9) 30%, rgba(6, 7, 11, 0.12) 64%, rgba(6, 7, 11, 0.3) 100%),
    linear-gradient(0deg, var(--bg) 0%, rgba(6, 7, 11, 0) 30%),
    linear-gradient(180deg, rgba(6, 7, 11, 0.6) 0%, rgba(6, 7, 11, 0) 22%);
}
.hero__content {
  position: relative;
  z-index: 2;
  padding-top: clamp(24px, 4.5vh, 80px);
  padding-bottom: clamp(16px, 3vh, 56px);
}
.hero__title {
  /* Sized against height too, so the platform row stays above the fold on laptops. */
  font-size: clamp(2.6rem, min(6.6vw, 9.4vh), 7.4rem);
  margin: 20px 0 22px;
  max-width: 11ch;
}
.hero__title .outline {
  display: block;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(243, 244, 247, 0.72);
}
.hero__title .solid { display: block; }
.hero__title .solid em { font-style: normal; color: var(--tulix); }
.hero__sub {
  max-width: 560px;
  margin: 0 0 28px;
  color: #c3c7d0;
  font-size: clamp(1.02rem, 1.35vw, 1.22rem);
}
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.btn__meta { font-style: normal; font: 500 0.78rem/1 var(--f-mono); opacity: 0.8; }
/* Hero: text left, the nine platforms right, credentials along the bottom. */
.hero__content {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.hero__platforms {
  position: relative;
  padding: 18px;
  border: 1px solid var(--line-2);
  border-radius: 22px;
  background: rgba(8, 9, 14, 0.72);
  backdrop-filter: blur(14px) saturate(130%);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}
.hero__platforms-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 6px 14px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 8px;
  color: inherit;
  text-decoration: none;
}
.hero__platforms-head i { display: inline-block; font-style: normal; color: var(--tulix); transition: transform 0.25s; }
.hero__platforms-head:hover i { transform: translateX(4px); }
.hero__platforms-head span { font: 500 0.7rem/1 var(--f-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.hero__platforms-head b { font: 800 1.35rem/1 var(--f-display); font-stretch: 115%; }
.hero__platforms ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; }
.hero__platforms li {
  --row: clamp(40px, 5.4vh, 52px);
  position: relative;
  border-radius: 12px;
  /* A TV-remote focus ring steps down the list, one platform at a time. */
  animation: focus-step 13.5s steps(1, end) infinite;
  animation-delay: calc(var(--i) * 1.5s);
}
/* Each platform links to its place in the platforms section. */
.hero__platforms li > a {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  height: var(--row);
  padding: 0 10px 0 6px;
  border-radius: 12px;
  color: inherit;
  text-decoration: none;
  transition: background 0.2s;
}
.hero__platforms li > a:hover, .hero__platforms li > a:focus-visible { background: rgba(255, 255, 255, 0.06); outline: none; }
.hero__platforms li > a:hover .hp__name { color: #fff; }
.hero__platforms li > a:hover .hp__kind { color: var(--tulix); }
.hp__icon {
  display: grid;
  place-items: center;
  width: calc(var(--row) - 10px);
  height: calc(var(--row) - 10px);
  border-radius: 10px;
  background: rgba(253, 62, 0, 0.1);
  border: 1px solid rgba(253, 62, 0, 0.28);
  color: var(--tulix);
}
.hp__icon svg { width: 58%; height: 58%; }
.hp__name { font: 700 1.02rem/1 var(--f-display); font-stretch: 110%; color: #f3f4f7; }
.hp__kind { font: 500 0.66rem/1 var(--f-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); }
@keyframes focus-step {
  0% { background: rgba(255, 255, 255, 0.07); box-shadow: inset 0 0 0 1.5px rgba(253, 62, 0, 0.75); }
  11.11%, 100% { background: transparent; box-shadow: none; }
}

/* Credentials bar: the bottom of the hero, one glass panel, six columns. */
.hero__proof-wrap { position: relative; z-index: 2; padding-bottom: clamp(20px, 3.5vh, 40px); }
.hero__proof {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--line-2);
  border-radius: 20px;
  background: rgba(8, 9, 14, 0.72);
  backdrop-filter: blur(14px) saturate(130%);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
  overflow: hidden;
}
.hero__proof li { position: relative; padding: clamp(12px, 2vh, 18px) 20px; }
.hero__proof li + li { border-left: 1px solid var(--line); }
.hero__proof li::before {
  content: "";
  position: absolute;
  left: 20px;
  right: 20px;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--tulix), transparent);
  opacity: 0.6;
}
.hpf__top { display: flex; align-items: center; gap: 10px; }
.hpf__top svg { width: 30px; height: 30px; padding: 6px; border-radius: 9px; background: rgba(253, 62, 0, 0.12); color: var(--tulix); flex: none; }
.hpf__top strong { font: 800 clamp(1.25rem, 1.75vw, 1.7rem)/1 var(--f-display); font-stretch: 112%; white-space: nowrap; }
.hpf__label { display: block; margin: 10px 0 6px; font: 500 0.64rem/1.2 var(--f-mono); letter-spacing: 0.13em; text-transform: uppercase; color: var(--tulix); }
.hero__proof p { margin: 0; font-size: 0.8rem; line-height: 1.45; color: #b9bdc7; }

/* ---------- Engine (the "inside": blueprint) ---------- */
.engine {
  position: relative;
  padding: var(--space-section) 0;
  background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 48px 48px,
    var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.engine::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(6, 7, 11, 0) 0%, var(--bg-2) 75%);
  pointer-events: none;
}
.engine .wrap { position: relative; }
.engine__title .outline {
  color: transparent;
  -webkit-text-stroke: 1.2px rgba(243, 244, 247, 0.75);
}
.pipeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: var(--space-head);
  padding: 0;
  list-style: none;
  counter-reset: stage;
}
.stage {
  position: relative;
  padding: 28px 26px 26px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: rgba(10, 12, 18, 0.88);
  counter-increment: stage;
  overflow: hidden;
}
.stage::before {
  content: counter(stage, decimal-leading-zero);
  font: 500 0.74rem/1 var(--f-mono);
  letter-spacing: 0.14em;
  color: var(--tulix);
}
/* The signal: a pulse that runs across the top edge of each stage in turn. */
.stage::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 2px;
  width: 40%;
  background: linear-gradient(90deg, transparent, var(--tulix), transparent);
  animation: signal 6s linear infinite;
  animation-delay: calc(var(--i) * 1s - 6s);
  opacity: 0.9;
}
.stage h3 {
  margin: 16px 0 10px;
  font: 800 1.9rem/1 var(--f-display);
  font-stretch: 118%;
  letter-spacing: -0.01em;
}
.stage p { margin: 0 0 18px; color: #b9bdc7; font-size: 0.98rem; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.chips li {
  padding: 5px 9px;
  border: 1px solid var(--line-2);
  border-radius: 7px;
  font: 500 0.72rem/1 var(--f-mono);
  color: #d5d8df;
  background: rgba(255, 255, 255, 0.03);
}
.monetize {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-top: 26px;
  padding: 18px 22px;
  border: 1px dashed var(--line-2);
  border-radius: var(--radius);
  font: 500 0.8rem/1.4 var(--f-mono);
  color: #c8ccd4;
}
.monetize strong { color: var(--tulix); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.monetize span + span::before { content: "·"; margin-right: 14px; color: var(--dim); }

/* ---------- Control room (admin consoles) ---------- */
.control {
  position: relative;
  padding: var(--space-section) 0;
  background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 48px 48px,
    #090b10;
  border-bottom: 1px solid var(--line);
}
.control::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(9, 11, 16, 0) 0%, #090b10 72%);
  pointer-events: none;
}
.control .wrap { position: relative; }
.control .outline { color: transparent; -webkit-text-stroke: 1.2px rgba(243, 244, 247, 0.75); }
/* Head, console list and the button on the left; one live console on the right. */
.control__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  grid-template-areas: "head screen" "list screen" "cta screen";
  grid-template-rows: auto auto 1fr;
  column-gap: clamp(32px, 4.5vw, 72px);
  align-items: start;
}
.control__head { grid-area: head; }
.control__head .section-sub { max-width: 440px; }
.control__cta { grid-area: cta; margin-top: 26px; }
.ctl-list { grid-area: list; display: flex; flex-direction: column; margin-top: var(--space-head); border-top: 1px solid var(--line); }
.ctl-list button {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: baseline;
  padding: 13px 14px 13px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: none;
  color: var(--muted);
  text-align: left;
  cursor: pointer;
  transition: color 0.25s;
}
.ctl-list b { font: 500 0.72rem/1 var(--f-mono); letter-spacing: 0.12em; color: var(--dim); }
.ctl-list span { font: 600 1.02rem/1.2 var(--f-body); }
/* The picked console shows its one-liner; the others stay one line tall. */
.ctl-list em {
  grid-column: 2;
  max-height: 0;
  overflow: hidden;
  font: 800 clamp(1.25rem, 1.9vw, 1.6rem)/1.12 var(--f-display);
  font-style: normal;
  font-stretch: 112%;
  color: #fff;
  opacity: 0;
  transition: max-height 0.35s ease, opacity 0.35s ease, margin 0.35s ease;
}
.ctl-list button:hover { color: var(--text); }
.ctl-list button[aria-selected="true"] { color: var(--text); box-shadow: inset 0 -2px 0 var(--tulix); }
.ctl-list button[aria-selected="true"] b { color: var(--tulix); }
.ctl-list button[aria-selected="true"] em { max-height: 4em; margin-top: 8px; opacity: 1; }
.ctl-screen { grid-area: screen; align-self: center; margin: 0; }
.ctl-screen__shot {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.03);
  cursor: zoom-in;
}
.ctl-screen__bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; background: #15171d; border-bottom: 1px solid var(--line); }
.ctl-screen__bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, 0.16); }
.ctl-screen__bar span { margin-left: 10px; font: 500 0.72rem/1 var(--f-mono); color: var(--muted); }
.ctl-screen__shot img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: top left; opacity: 0; transition: opacity 0.45s ease; }
.ctl-screen__shot img.is-in { opacity: 1; }
.ctl-screen figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; margin-top: 14px; font-size: 0.88rem; }
.ctl-screen figcaption b { font-weight: 600; }
.ctl-screen figcaption span { font: 500 0.72rem/1.6 var(--f-mono); letter-spacing: 0.06em; color: var(--muted); }

/* ---------- Projects (the "outside") ---------- */
.projects { padding: var(--space-section) 0 0; }
.projects__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; margin-bottom: var(--space-head); }
.projects__meta { display: flex; gap: 0; margin: 0 0 6px; padding: 0; list-style: none; border: 1px solid var(--line-2); border-radius: 16px; overflow: hidden; }
.projects__meta li { padding: 14px 22px; min-width: 110px; }
.projects__meta li + li { border-left: 1px solid var(--line); }
.projects__meta b { display: block; font: 800 2rem/1 var(--f-display); font-stretch: 115%; }
.projects__meta span { display: block; margin-top: 6px; font: 500 0.66rem/1 var(--f-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

/* Project selector: an OTT-style home row, two hero tiles then three. */
.showcase {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: var(--space-section);
}
.tile {
  position: relative;
  grid-column: span 2;
  aspect-ratio: 3 / 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  border-radius: 20px;
  overflow: hidden;
  isolation: isolate;
  background: var(--brand-bg);
  text-decoration: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.tile--lg { grid-column: span 3; aspect-ratio: 16 / 9; padding: 26px; }
/* Smaller tiles have less room above the text, so their screen fades out sooner. */
.tile:not(.tile--lg) .tile__bg {
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 18%, transparent 60%);
  mask-image: linear-gradient(180deg, #000 0%, #000 18%, transparent 60%);
}
.tile__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transform: scale(1.04);
  transform-origin: center top;
  filter: saturate(1.08) brightness(0.88);
  /* The screen lives in the top of the tile and fades into the brand colour. */
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 34%, transparent 82%);
  mask-image: linear-gradient(180deg, #000 0%, #000 34%, transparent 82%);
  transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.tile__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(90% 70% at 0% 100%, color-mix(in srgb, var(--brand) 32%, transparent), transparent 70%),
    linear-gradient(180deg,
      color-mix(in srgb, var(--brand-bg) 30%, transparent) 0%,
      color-mix(in srgb, var(--brand-bg) 12%, transparent) 26%,
      color-mix(in srgb, var(--brand-bg) 78%, transparent) 50%,
      var(--brand-bg) 72%);
}
.tile:hover, .tile:focus-visible {
  transform: translateY(-4px);
  box-shadow: inset 0 0 0 2px var(--brand), 0 26px 60px rgba(0, 0, 0, 0.55), 0 0 40px color-mix(in srgb, var(--brand) 25%, transparent);
  outline: none;
}
.tile:hover .tile__bg, .tile:focus-visible .tile__bg { transform: scale(1.09); }
.tile__top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.tile__idx {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font: 500 0.68rem/1 var(--f-mono);
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.85);
}
.tile__where {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font: 600 0.72rem/1 var(--f-body);
  color: #f3f4f7;
  white-space: nowrap;
}
.tile__body { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.tile__logo { height: 34px; width: auto; max-width: 60%; object-fit: contain; object-position: left center; margin-bottom: 6px; filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.5)); }
.tile--lg .tile__logo { height: 46px; }
.tile__cat { font: 500 0.68rem/1 var(--f-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand); filter: brightness(1.25); }
.tile__line { max-width: 24ch; font: 800 1.2rem/1.12 var(--f-display); font-stretch: 112%; letter-spacing: -0.01em; color: #fff; text-shadow: 0 2px 18px rgba(0, 0, 0, 0.5); }
.tile--lg .tile__line { font-size: clamp(1.4rem, 2.1vw, 1.95rem); }
.tile__cta { margin-top: 4px; font: 600 0.82rem/1 var(--f-body); color: rgba(255, 255, 255, 0.78); }
.tile__cta i { display: inline-block; font-style: normal; color: var(--brand); filter: brightness(1.25); transition: transform 0.3s; }
.tile:hover .tile__cta i { transform: translateX(4px); }

.project {
  position: relative;
  padding: var(--space-project) 0;
  background: var(--brand-bg);
  overflow: hidden;
  border-top: 1px solid var(--line);
}
.project::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 70% at 85% 30%, color-mix(in srgb, var(--brand) 22%, transparent), transparent 70%),
    radial-gradient(40% 50% at 10% 100%, color-mix(in srgb, var(--brand) 10%, transparent), transparent 70%);
  pointer-events: none;
}
.project .wrap { position: relative; }
.project__meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  font: 500 0.74rem/1 var(--f-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #c9ccd4;
}
.project__meta b { color: var(--brand); font-weight: 600; }
.project__meta i { flex: 1; height: 1px; background: var(--line-2); }
.project__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
/* Alternate sides; the screens keep the wide column either way. */
.project:nth-of-type(even) .project__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.project:nth-of-type(even) .project__copy { order: 2; }
.project__logo { height: clamp(44px, 5vw, 64px); width: auto; max-width: 100%; object-fit: contain; object-position: left center; }
.project__tagline { font-size: clamp(2rem, 3.6vw, 3.4rem); margin: 28px 0 18px; }
.project__desc { margin: 0 0 26px; color: #c3c7d0; }
.hardpart {
  margin: 0 0 26px;
  padding: 18px 20px;
  border-left: 3px solid var(--brand);
  border-radius: 0 12px 12px 0;
  background: rgba(255, 255, 255, 0.04);
}
.hardpart b {
  display: block;
  margin-bottom: 6px;
  font: 600 0.7rem/1 var(--f-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand);
}
.hardpart p { margin: 0; font-size: 0.97rem; color: #e1e3e8; }
.features { margin: 0 0 26px; padding: 0; list-style: none; }
.features li { padding: 13px 0; border-top: 1px solid var(--line); }
.features li:last-child { border-bottom: 1px solid var(--line); }
.features strong { display: block; font-weight: 650; font-size: 1.04rem; }
.features code { display: block; margin-top: 4px; font: 500 0.76rem/1.4 var(--f-mono); color: var(--muted); }
.features code::before { content: "› "; color: var(--brand); }
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 28px; }
.badges span {
  padding: 6px 10px;
  border-radius: 99px;
  border: 1px solid var(--line-2);
  font: 500 0.74rem/1 var(--f-body);
  color: #d8dbe2;
}
.actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Gallery stage */
.gallery { min-width: 0; }
.tabs {
  display: inline-flex;
  flex-wrap: wrap;
  max-width: 100%;
  gap: 4px;
  margin-bottom: 26px;
  padding: 4px;
  border: 1px solid var(--line-2);
  border-radius: 22px;
  background: rgba(0, 0, 0, 0.3);
}
.tabs button {
  min-height: 36px;
  padding: 0 13px;
  border: 0;
  border-radius: 99px;
  background: none;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
}
.tabs button[aria-selected="true"] { background: var(--brand); color: var(--brand-ink); }
.stagebox {
  position: relative;
  min-height: 200px;
}
.stagebox .device.tv,
.stagebox .device.browser { width: 92%; }
.stagebox .device.tv.has-stand > .frame { margin-bottom: 4cqi; }
.stagebox .stage-phone {
  position: absolute;
  right: 0;
  bottom: -6%;
  width: 22%;
}
.stagebox.is-phones {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 3%;
  padding: 0 4%;
}
.stagebox.is-phones .device.phone { width: 30%; }
.stagebox.is-phones .device.phone:nth-child(2) { width: 34%; transform: translateY(-4%); }
/* Tab change: the device settles in, the screen "switches input" (black, a flash,
   then the picture) and a banner names the platform. */
.stagebox.is-switching > .device > .frame { animation: stage-in 0.55s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.stagebox.is-switching > .device:nth-child(2) > .frame { animation-delay: 0.07s; }
.stagebox.is-switching > .device:nth-child(3) > .frame { animation-delay: 0.14s; }
.stagebox.is-switching > .device .screen { animation: screen-on 0.8s ease both; }
.stagebox.is-switching .stage-phone .frame { animation: stage-in 0.6s 0.15s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
@keyframes stage-in {
  from { opacity: 0; transform: translateY(18px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
@keyframes screen-on {
  0%, 28% { filter: brightness(0); }
  52% { filter: brightness(1.7) saturate(0.5); }
  100% { filter: none; }
}
.stage-osd {
  position: absolute;
  left: 3.5%;
  top: 4.5%;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: rgba(10, 11, 14, 0.82);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5);
  color: #fff;
  pointer-events: none;
  animation: osd 2.4s ease both;
}
.stagebox.is-phones .stage-osd { left: 50%; top: 34%; translate: -50% 0; }
.stage-osd svg { width: 22px; height: 22px; color: var(--brand); filter: brightness(1.25); }
.stage-osd b { font: 700 1rem/1 var(--f-display); font-stretch: 110%; }
.stage-osd span { padding-left: 10px; border-left: 1px solid rgba(255, 255, 255, 0.18); font: 500 0.66rem/1 var(--f-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
@keyframes osd {
  0%, 16% { opacity: 0; transform: translateY(-8px); }
  28%, 80% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: translateY(-4px); }
}
@media (prefers-reduced-motion: reduce) {
  .stagebox.is-switching *, .stage-osd { animation: none !important; }
}
.dots { display: flex; gap: 8px; margin-top: 28px; }
.dots button {
  width: 28px;
  height: 4px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.18);
  cursor: pointer;
}
.dots button[aria-current="true"] { background: var(--brand); }

/* ---------- Platforms ---------- */
.platforms { padding: var(--space-section) 0; border-top: 1px solid var(--line); }
.platforms { --brand: var(--tulix); }
/* Bento: the living room (input switcher) on the left, phones and browser stacked right. */
.pf-bento {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  grid-template-rows: auto auto;
  gap: 16px;
  margin-top: var(--space-head);
}
.pf-card {
  --pad: clamp(20px, 2.4vw, 30px);
  position: relative;
  overflow: hidden;
  padding: var(--pad);
  border: 1px solid var(--line-2);
  border-radius: 22px;
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(253, 62, 0, 0.08), transparent 60%),
    linear-gradient(180deg, #10131a, #0b0d12);
}
.pf-card--tv { grid-row: span 2; display: flex; flex-direction: column; gap: 22px; }
.pf-card { transition: border-color 0.3s, box-shadow 0.3s; }
.pf-card.is-lit { border-color: rgba(253, 62, 0, 0.55); box-shadow: 0 0 0 1px rgba(253, 62, 0, 0.25), 0 24px 60px rgba(0, 0, 0, 0.35); }
.pf-card__head p { max-width: 46ch; margin: 12px 0 0; color: var(--muted); font-size: 0.92rem; line-height: 1.55; }

/* The rail: all nine platforms in one strip, grouped by family, on top of the cards. */
.pf-rail {
  grid-column: 1 / -1;
  display: flex;
  border: 1px solid var(--line-2);
  border-radius: 22px;
  background: linear-gradient(180deg, #10131a, #0b0d12);
  overflow: hidden;
}
.pf-rail__group { flex: var(--n) 1 0; min-width: 0; display: flex; flex-direction: column; }
.pf-rail__group + .pf-rail__group { border-left: 1px solid var(--line-2); }
.pf-rail__label {
  padding: 12px 16px 10px;
  border-bottom: 1px solid var(--line);
  font: 500 0.64rem/1 var(--f-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
}
.pf-rail__items { flex: 1; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); }
.pf-rail__items button {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
  padding: 16px;
  border: 0;
  background: none;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: background 0.25s;
}
.pf-rail__items button + button { box-shadow: inset 1px 0 0 var(--line); }
.pf-rail__items button::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: 0; height: 2px; border-radius: 2px; background: var(--tulix); transform: scaleX(0); transition: transform 0.3s ease; }
.pf-rail__items svg { width: 26px; height: 26px; margin-bottom: 6px; color: var(--tulix); opacity: 0.8; }
.pf-rail__items b { font: 700 0.98rem/1.1 var(--f-display); font-stretch: 110%; }
.pf-rail__items small { font: 500 0.62rem/1.2 var(--f-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); }
.pf-rail__items button:hover, .pf-rail__items button.is-lit { background: rgba(255, 255, 255, 0.035); }
.pf-rail__items button.is-on { background: rgba(253, 62, 0, 0.07); }
.pf-rail__items button.is-on::after { transform: scaleX(1); }
.pf-rail__items button.is-on svg { opacity: 1; filter: drop-shadow(0 0 8px rgba(253, 62, 0, 0.6)); }
.pf-rows li.is-lit, .pf-switch button.is-lit { border-color: var(--line-2); background: rgba(255, 255, 255, 0.05); }
.pf-card__label { font: 500 0.7rem/1 var(--f-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--tulix); }
.pf-card__head h3 { margin: 10px 0 0; font-size: clamp(1.7rem, 2.6vw, 2.4rem); font-stretch: 112%; }

.pf-stage { margin-top: 4px; }
.pf-stage .device.tv { width: 100%; }
.pf-now { margin: 26px 0 0; text-align: center; font-size: 0.86rem; font-weight: 600; }
.pf-now span { color: var(--muted); font-weight: 500; }
.pf-switch { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pf-switch button,
.pf-rows li {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  text-align: left;
}
.pf-switch button { cursor: pointer; transition: border-color 0.25s, background 0.25s; }
.pf-switch button:hover { border-color: var(--line-2); background: rgba(255, 255, 255, 0.04); }
.pf-switch button[aria-selected="true"] { border-color: var(--tulix); background: rgba(253, 62, 0, 0.08); box-shadow: 0 0 24px rgba(253, 62, 0, 0.12); }
.pf-switch svg, .pf-rows svg { flex: none; width: 26px; height: 26px; color: var(--tulix); }
.pf-switch span, .pf-rows span { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pf-switch b, .pf-rows b { margin-bottom: 2px; }
.pf-switch small + small, .pf-rows small + small { color: var(--dim); }
.pf-switch b, .pf-rows b { font: 700 0.98rem/1.1 var(--f-display); font-stretch: 110%; }
.pf-switch small, .pf-rows small { font: 500 0.66rem/1.35 var(--f-mono); letter-spacing: 0.06em; color: var(--muted); }
.pf-live { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 13px; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); }
.pf-live span { font: 500 0.66rem/1 var(--f-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); }
.pf-live img { height: 20px; width: auto; max-width: 84px; object-fit: contain; }

/* Phones and browser: copy on the left, the device bleeding off the right edge
   and sinking behind the "Live here" strip. */
.pf-card--hand, .pf-card--web {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  grid-template-rows: 1fr auto;
  column-gap: 20px;
  min-height: 340px;
}
.pf-card__text { grid-row: 1; grid-column: 1; display: flex; flex-direction: column; gap: 18px; position: relative; z-index: 1; padding-bottom: 18px; }
.pf-rows { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.pf-card__art { position: relative; grid-row: 1 / -1; grid-column: 2; margin-right: calc(-1 * var(--pad)); }
.pf-card--hand .pf-live, .pf-card--web .pf-live {
  grid-row: 2;
  grid-column: 1 / -1;
  position: relative;
  z-index: 2;
  margin: 0 calc(-1 * var(--pad)) calc(-1 * var(--pad));
  padding: 16px var(--pad) var(--pad);
  background: linear-gradient(180deg, rgba(11, 13, 18, 0.88), #0b0d12 45%);
}
.pf-phones .device.phone { position: absolute; width: 46%; }
.pf-phones .device.phone:nth-child(1) { left: 4%; top: 6%; transform: rotate(-4deg); }
.pf-phones .device.phone:nth-child(2) { right: -6%; top: 22%; transform: rotate(5deg); }
.pf-browser .device.browser { position: absolute; left: 0; top: 14%; width: 175%; }

/* ---------- Close + footer ---------- */
.close {
  position: relative;
  padding: clamp(64px, 7.5vw, 112px) 0;
  overflow: hidden;
  background: radial-gradient(70% 90% at 50% 120%, rgba(253, 62, 0, 0.28), transparent 70%), var(--bg);
  border-top: 1px solid var(--line);
}
.close__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 48px;
  align-items: end;
}
.close__title { font-size: clamp(2.4rem, 5.6vw, 5.4rem); margin: 22px 0 22px; max-width: 14ch; }
.close__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.qr {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 18px;
  border-radius: var(--radius);
  background: #fff;
  color: #111;
  font: 600 0.72rem/1.2 var(--f-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.qr svg, .qr img { width: 150px; height: 150px; }
.footer {
  padding: 28px var(--gutter) 40px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 0.8rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}

/* ---------- Lightbox ---------- */
.lightbox {
  /* Fits both width and height, so controls stay on screen on 768px-tall laptops. */
  width: min(1280px, 94vw, calc((100svh - 48px) * 16 / 9));
  max-width: none;
  padding: 0;
  border: 0;
  border-radius: 16px;
  background: #000;
  color: var(--text);
  overflow: visible;
}
.lightbox::backdrop { background: rgba(3, 4, 7, 0.86); backdrop-filter: blur(6px); }
.lightbox__frame { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; }
.lightbox video,
.lightbox__fallback img { width: 100%; height: 100%; object-fit: contain; background: #000; }
.lightbox__fallback { position: absolute; inset: 0; display: grid; place-items: center; }
.lightbox__fallback img { position: absolute; inset: 0; object-fit: cover; opacity: 0.35; }
.lightbox__fallback p { position: relative; font: 700 1.4rem/1 var(--f-display); font-stretch: 115%; }
.lightbox__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox__image { position: relative; margin: 0; }
.lightbox__image img { display: block; width: 100%; max-height: calc(100svh - 190px); object-fit: contain; background: #000; border-radius: 16px 16px 0 0; }
.lightbox__image figcaption {
  display: grid;
  gap: 4px;
  padding: 14px 18px 16px;
  background: #0c0e14;
  border-radius: 0 0 16px 16px;
}
.lightbox__image figcaption b { font: 700 1.1rem/1.2 var(--f-display); font-stretch: 112%; }
.lightbox__image figcaption span { color: #c3c7d0; font-size: 0.95rem; }
.lightbox__image figcaption em { font-style: normal; font: 500 0.72rem/1.3 var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); }
.lightbox__nav {
  position: absolute;
  top: 40%;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}
.lightbox__nav--prev { left: 12px; }
.lightbox__nav--next { right: 12px; }

/* ---------- Kiosk ---------- */
.kiosk {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--brand-bg, var(--bg));
  color: var(--text);
  overflow: hidden;
  cursor: none;
}
.kiosk__slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 4vw;
  align-items: center;
  padding: 5vh 5vw 11vh;
  background:
    radial-gradient(60% 70% at 80% 35%, color-mix(in srgb, var(--brand) 26%, transparent), transparent 70%),
    var(--brand-bg);
  opacity: 0;
  transition: opacity 0.9s ease;
}
.kiosk__slide.is-active { opacity: 1; }
.kiosk__logo { height: 6vh; width: auto; max-width: 100%; object-fit: contain; object-position: left center; }
.kiosk__tagline { font-size: min(4vw, 6.4vh); margin: 3vh 0 2.6vh; }
.kiosk .features { margin-bottom: 2.6vh; }
.kiosk .features li { padding: 1.3vh 0; }
.kiosk .features strong { font-size: min(1.5vw, 2.5vh); }
.kiosk .features code { font-size: min(0.95vw, 1.6vh); }
.kiosk__foot { display: flex; align-items: center; gap: 2vw; }
.kiosk__qr {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 12px;
  border-radius: 14px;
  background: #fff;
  color: #111;
  font: 600 min(0.7vw, 1.2vh)/1.2 var(--f-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.kiosk__qr svg { width: min(8vw, 13vh); height: min(8vw, 13vh); }
.kiosk__stage { position: relative; }
.kiosk__stage .device.tv,
.kiosk__stage .device.browser { width: 92%; }
.kiosk__stage .stage-phone { position: absolute; right: 0; bottom: -8%; width: 22%; }
.kiosk__brandbar {
  position: absolute;
  left: 5vw;
  right: 5vw;
  bottom: 4vh;
  display: flex;
  align-items: center;
  gap: 1.6vw;
  font: 500 0.8vw/1 var(--f-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #c9ccd4;
  z-index: 3;
}
.kiosk__brandbar .wordmark { font-size: 1.2vw; }
.kiosk__progress { flex: 1; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, 0.15); overflow: hidden; }
.kiosk__progress i { display: block; height: 100%; width: 0; background: var(--tulix); }
.kiosk__reel { position: absolute; inset: 0; z-index: 5; background: #000; }
.kiosk__reel video { width: 100%; height: 100%; object-fit: contain; }

/* While the kiosk covers the page, stop the page's own animations. */
body.is-kiosk { overflow: hidden; }
body.is-kiosk .hero__row,
body.is-kiosk .stage::after,
body.is-kiosk .banner::before,
body.is-kiosk .hero__platforms li { animation-play-state: paused; }

/* ---------- Motion ---------- */
@keyframes drift { to { transform: translateX(-50%); } }
@keyframes pulse { 50% { opacity: 0.35; } }
@keyframes signal {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(260%); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__row, .stage::after, .banner::before, .hero__platforms li { animation: none; }
  .device .screen img, .kiosk__slide { transition: none; }
}

/* Very short desktop screens: keep the numbers and labels, drop the descriptions. */
@media (max-height: 740px) and (min-width: 961px) {
  .hero__proof p { display: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .showcase { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile, .tile--lg { grid-column: span 1; aspect-ratio: 4 / 3; }
  .tile:last-child { grid-column: span 2; aspect-ratio: 3 / 1; }
  .tabs button { padding: 0 10px; font-size: 0.8rem; }
  .pf-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pf-rail__items button { padding: 14px 12px; }
  .pf-rail__items button::after { left: 12px; right: 12px; }
  .pf-rail { flex-wrap: wrap; }
  .pf-rail__group[data-family="tv"] { flex-basis: 100%; border-left: 0; border-top: 1px solid var(--line-2); }
  .pf-card--tv { grid-column: 1 / -1; grid-row: auto; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); grid-template-areas: "head head" "stage switch" "live live"; gap: 22px 26px; align-items: center; }
  .pf-card--tv .pf-card__head { grid-area: head; }
  .pf-card--tv .pf-stage { grid-area: stage; }
  .pf-card--tv .pf-switch { grid-area: switch; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pf-card--tv .pf-live { grid-area: live; }
}
@media (max-width: 960px) {
  .hero__content { grid-template-columns: minmax(0, 1fr); }
  .hero__platforms ul { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero__platforms li > a { height: auto; padding: 10px 8px; grid-template-columns: auto 1fr; }
  .hero__platforms .hp__kind { display: none; }
  .hero__proof { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero__proof li:nth-child(4) { border-left: 0; }
  .hero__proof li:nth-child(n + 4) { border-top: 1px solid var(--line); }
  .pipeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project__grid, .project:nth-of-type(even) .project__grid { grid-template-columns: minmax(0, 1fr); }
  .control__grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "screen" "list" "cta"; grid-template-rows: none; }
  .pf-bento { grid-template-columns: minmax(0, 1fr); }
  .pf-card--tv .pf-switch { grid-template-columns: minmax(0, 1fr); }
  .ctl-screen { margin-top: var(--space-head); }
  .project:nth-of-type(even) .project__copy { order: 0; }
  .close__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__wall { inset: 30% -40% -10% -10%; opacity: 0.55; }
}
@media (max-width: 720px) {
  .nav__links { display: none; }
  .nav > .btn { margin-left: auto; }
  .pipeline { grid-template-columns: minmax(0, 1fr); }
  .hero__proof { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero__proof li:nth-child(n) { border-left: 0; border-top: 0; }
  .hero__proof li:nth-child(even) { border-left: 1px solid var(--line); }
  .hero__proof li:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .hero__platforms ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .showcase { grid-template-columns: minmax(0, 1fr); }
  /* Phone: the screen is a full-width band on top and the copy sits under it,
     so a tall headline never covers the screenshot. */
  .tile, .tile--lg, .tile:last-child { grid-column: span 1; aspect-ratio: auto; padding: 18px; }
  .tile .tile__bg, .tile:not(.tile--lg) .tile__bg {
    height: auto;
    aspect-ratio: 16 / 10;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 45%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 0%, #000 45%, transparent 100%);
  }
  .tile__body { margin-top: calc((100vw - 32px) * 0.34); }
  .tile--lg .tile__logo { height: 38px; }
  .tile--lg .tile__line { font-size: 1.35rem; }
  .projects__meta { width: 100%; }
  .stage-osd { gap: 8px; padding: 7px 12px 7px 9px; border-radius: 10px; }
  .stage-osd svg { width: 18px; height: 18px; }
  .stage-osd b { font-size: 0.86rem; }
  .stage-osd span { display: none; }
  .pf-card--tv { display: flex; align-items: stretch; }
  .pf-rail__group[data-family="tv"] .pf-rail__items { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pf-rail__group[data-family="tv"] .pf-rail__items button:nth-child(n + 4) { border-top: 1px solid var(--line); }
  .pf-rail__group[data-family="tv"] .pf-rail__items button:nth-child(4) { box-shadow: none; }
  .pf-rail__label { white-space: nowrap; font-size: 0.58rem; letter-spacing: 0.08em; }
  .pf-rail__items small { display: none; }
  .pf-rail__items button { padding: 12px 10px; }
  .pf-rail__items svg { width: 22px; height: 22px; margin-bottom: 2px; }
  .pf-rail__items b { font-size: 0.86rem; }
  .pf-rail__label { padding: 10px 12px 8px; }
  .pf-card--tv .pf-switch { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pf-card--hand, .pf-card--web { grid-template-columns: minmax(0, 1fr); }
  .pf-card--hand, .pf-card--web { grid-template-rows: auto auto auto; }
  .pf-card__art { grid-row: 2; grid-column: 1; height: 250px; margin: 0 calc(-1 * var(--pad)); }
  .pf-card--hand .pf-live, .pf-card--web .pf-live { grid-row: 3; }
  .pf-phones .device.phone { width: 34%; }
  .pf-phones .device.phone:nth-child(1) { left: 14%; }
  .pf-phones .device.phone:nth-child(2) { right: 14%; top: 14%; }
  .pf-browser .device.browser { left: 20px; top: 8%; width: 120%; }
  .projects__meta li { flex: 1; min-width: 0; padding: 12px 14px; }
  .stagebox .device.tv, .stagebox .device.browser { width: 100%; }
  .stagebox .stage-phone { width: 26%; right: -2%; bottom: -14%; }
  .hero::after {
    background:
      linear-gradient(180deg, rgba(6, 7, 11, 0.4) 0%, rgba(6, 7, 11, 0.85) 45%, var(--bg) 100%);
  }
}
