/* ============================================================
   AMAZING WALL ART — design system
   "Riso print-shop x gallery wall"
   Ink Ground / Chalk / UV Blue / Riso Pink / Pigment Amber
   ============================================================ */

:root {
  /* ---- palette ---- */
  --ink: #0e1116;
  --ink-2: #141922;
  --ink-3: #1b212c;
  --chalk: #ede8df;
  --chalk-2: #b9b3a8;
  --chalk-3: #7d786f;
  --uv: #1e48ff;
  --uv-soft: #6d85ff;
  --riso: #ff3d68;
  --amber: #f2a93b;

  --line: rgba(237, 232, 223, 0.13);
  --line-strong: rgba(237, 232, 223, 0.26);
  --panel: #12161d;

  /* ---- type ---- */
  --f-display: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --f-body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "Martian Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --step--1: clamp(0.72rem, 0.7rem + 0.1vw, 0.78rem);
  --step-0: clamp(0.95rem, 0.92rem + 0.15vw, 1.05rem);
  --step-1: clamp(1.15rem, 1.05rem + 0.4vw, 1.35rem);
  --step-2: clamp(1.5rem, 1.3rem + 0.9vw, 2rem);
  --step-3: clamp(2rem, 1.6rem + 1.8vw, 3rem);
  --step-4: clamp(2.8rem, 1.9rem + 4vw, 5.4rem);
  --step-5: clamp(3.4rem, 1.6rem + 7vw, 8rem);

  /* ---- space ---- */
  --gut: clamp(1.15rem, 0.6rem + 2.2vw, 3rem);
  --bay: clamp(3rem, 1.8rem + 4.5vw, 6rem);
  --rail: 76px;
  --max: 1500px;
}

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

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--chalk);
  font-family: var(--f-body);
  font-size: var(--step-0);
  line-height: 1.62;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* faint paper grain over the whole ground */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.16;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

::selection {
  background: var(--riso);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */

.display,
h1,
h2,
h3 {
  font-family: var(--f-display);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.02;
  margin: 0;
  text-wrap: balance;
}

h1 {
  font-size: var(--step-4);
}
h2 {
  font-size: var(--step-3);
}
h3 {
  font-size: var(--step-2);
}

p {
  margin: 0 0 1.1em;
  max-width: 68ch;
}

.lede {
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--chalk-2);
  max-width: 56ch;
}

h1 + .lede,
h2 + .lede {
  margin-top: 1.4rem;
}

.eyebrow {
  font-family: var(--f-mono);
  font-size: var(--step--1);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--chalk-3);
  margin: 0 0 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--riso);
  flex: none;
}

.eyebrow--uv::before {
  background: var(--uv-soft);
}

.eyebrow--amber::before {
  background: var(--amber);
}

.mono {
  font-family: var(--f-mono);
  font-size: var(--step--1);
  letter-spacing: 0.04em;
}

.tag {
  font-family: var(--f-mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--chalk-2);
  border: 1px solid var(--line-strong);
  padding: 0.28em 0.6em;
  border-radius: 2px;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tag--riso {
  color: var(--riso);
  border-color: rgba(255, 61, 104, 0.45);
}
.tag--uv {
  color: var(--uv-soft);
  border-color: rgba(109, 133, 255, 0.45);
}
.tag--amber {
  color: var(--amber);
  border-color: rgba(242, 169, 59, 0.45);
}

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

.hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0;
}

/* ============================================================
   LAYOUT — the wall
   ============================================================ */

.shell {
  padding-left: var(--rail);
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gut);
}

.bay {
  padding-block: var(--bay);
  position: relative;
}

.bay + .bay {
  border-top: 1px solid var(--line);
}

/* section index label, sitting on the left margin */
.bay-head {
  display: flex;
  align-items: baseline;
  gap: 1.4rem;
  margin-bottom: clamp(2rem, 4vw, 3.4rem);
  flex-wrap: wrap;
}

.bay-head h2 {
  max-width: 20ch;
}

.bay-head .bay-note {
  color: var(--chalk-3);
  max-width: 42ch;
  font-size: var(--step--1);
  font-family: var(--f-mono);
  line-height: 1.7;
}

/* the wall ruler — signature element */
.ruler {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--rail);
  border-right: 1px solid var(--line);
  z-index: 60;
  background: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 0 1.6rem;
}

.ruler__mark {
  width: 26px;
  height: 26px;
  flex: none;
}

.ruler__track {
  position: relative;
  flex: 1;
  width: 100%;
  display: flex;
  justify-content: center;
}

.ruler__line {
  position: absolute;
  top: 4%;
  bottom: 4%;
  width: 1px;
  background: var(--line-strong);
}

.ruler__head {
  position: absolute;
  left: 50%;
  width: 9px;
  height: 9px;
  margin-left: -4.5px;
  margin-top: -4.5px;
  border-radius: 50%;
  background: var(--riso);
  box-shadow: 0 0 0 4px rgba(255, 61, 104, 0.16), 0 0 18px rgba(255, 61, 104, 0.6);
  transition: top 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.ruler__ticks {
  position: absolute;
  inset: 4% 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.ruler__tick {
  width: 10px;
  height: 1px;
  background: var(--line-strong);
  justify-self: center;
}

.ruler__label {
  font-family: var(--f-mono);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  color: var(--chalk-3);
  writing-mode: vertical-rl;
  text-transform: uppercase;
}

/* ============================================================
   HEADER / NAV
   ============================================================ */

.masthead {
  position: sticky;
  top: 0;
  z-index: 70;
  background: rgba(14, 17, 22, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.masthead__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex: none;
}

.brand__logo {
  width: 32px;
  height: 32px;
  flex: none;
}

.brand__word {
  font-family: var(--f-mono);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  line-height: 1.25;
}

.brand__word b {
  display: block;
  font-weight: 500;
  color: var(--chalk);
}
.brand__word span {
  color: var(--chalk-3);
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 2rem);
}

.nav a {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--chalk-2);
  padding: 0.4rem 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--chalk);
  border-bottom-color: var(--riso);
}

.masthead__cta {
  flex: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-strong);
  color: var(--chalk);
  width: 40px;
  height: 34px;
  border-radius: 2px;
  cursor: pointer;
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--f-mono);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.92em 1.5em;
  border: 1px solid var(--riso);
  background: var(--riso);
  color: #fff;
  border-radius: 2px;
  cursor: pointer;
  transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1), background 0.18s,
    border-color 0.18s, color 0.18s;
}

.btn:hover {
  transform: translateY(-2px);
  background: #ff5b80;
  border-color: #ff5b80;
}

.btn--ghost {
  background: transparent;
  color: var(--chalk);
  border-color: var(--line-strong);
}

.btn--ghost:hover {
  background: transparent;
  border-color: var(--chalk);
  color: var(--chalk);
}

.btn--uv {
  background: var(--uv);
  border-color: var(--uv);
}

.btn--uv:hover {
  background: #3557ff;
  border-color: #3557ff;
}

.btn--sm {
  padding: 0.66em 1.1em;
  font-size: 0.68rem;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
}

/* ============================================================
   HERO — the thesis
   ============================================================ */

.hero {
  position: relative;
  padding-top: clamp(3rem, 8vw, 7rem);
  padding-bottom: clamp(3rem, 7vw, 6rem);
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(1.5rem, 4vw, 4.5rem);
  align-items: end;
}

/* replaced elements (SVG, photos) carry intrinsic widths — stop them
   from pushing grid and flex tracks wider than the viewport */
.hero__grid > *,
.detail > *,
.machine > *,
.bay-head > *,
.footer__grid > * {
  min-width: 0;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.hero h1 {
  font-size: var(--step-5);
  line-height: 0.9;
  letter-spacing: -0.03em;
  margin-bottom: 1.6rem;
}

.hero h1 em {
  font-style: italic;
  color: var(--riso);
}

.hero h1 .outline {
  color: transparent;
  -webkit-text-stroke: 1.2px var(--chalk-3);
}

.hero__meta {
  display: flex;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  flex-wrap: wrap;
  margin-top: 2.6rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}

.hero__meta div {
  max-width: 15rem;
}

.hero__meta dt {
  font-family: var(--f-mono);
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--chalk-3);
  margin-bottom: 0.35rem;
}

.hero__meta dd {
  margin: 0;
  font-size: var(--step-0);
  color: var(--chalk);
}

.hero__frame {
  position: relative;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  background: var(--ink-2);
  overflow: hidden;
}

.hero__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.35) contrast(1.08);
}

.hero__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(237, 232, 223, 0.22) 1px, transparent 1px);
  background-size: 4px 4px;
  mix-blend-mode: overlay;
  opacity: 0.5;
  pointer-events: none;
}

/* print-head beam crossing the hero frame */
.beam {
  position: absolute;
  left: -10%;
  right: -10%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--uv-soft), transparent);
  box-shadow: 0 0 22px 4px rgba(30, 72, 255, 0.55);
  animation: sweep 7s cubic-bezier(0.65, 0, 0.35, 1) infinite;
  z-index: 3;
}

@keyframes sweep {
  0%,
  100% {
    top: 8%;
    opacity: 0;
  }
  12% {
    opacity: 1;
  }
  88% {
    opacity: 1;
  }
  92% {
    top: 92%;
    opacity: 0;
  }
  92.01% {
    top: 8%;
  }
}

/* registration cross, absolute on frames */
.reg {
  position: absolute;
  width: 22px;
  height: 22px;
  z-index: 4;
  pointer-events: none;
  opacity: 0.85;
}

.reg::before,
.reg::after {
  content: "";
  position: absolute;
  background: var(--chalk);
}

.reg::before {
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  transform: translateX(-0.5px);
}

.reg::after {
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  transform: translateY(-0.5px);
}

.reg--tl {
  top: 12px;
  left: 12px;
}
.reg--br {
  bottom: 12px;
  right: 12px;
}
.reg--tr {
  top: 12px;
  right: 12px;
}
.reg--bl {
  bottom: 12px;
  left: 12px;
}

/* colour bar */
.cbar {
  display: flex;
  height: 6px;
  width: 84px;
}

.cbar span {
  flex: 1;
}
.cbar span:nth-child(1) {
  background: #00a8e8;
}
.cbar span:nth-child(2) {
  background: #ff3d68;
}
.cbar span:nth-child(3) {
  background: #f2a93b;
}
.cbar span:nth-child(4) {
  background: #ede8df;
}
.cbar span:nth-child(5) {
  background: #101418;
}

/* ============================================================
   HALFTONE CARD — archive grid
   ============================================================ */

.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.card {
  background: var(--ink);
  position: relative;
  display: flex;
  flex-direction: column;
  transition: background 0.25s;
}

.card:hover {
  background: var(--ink-2);
}

.card__shot {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--ink-3);
}

.card__shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.03) brightness(1.05);
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.5s ease;
}

.card:hover .card__shot img {
  transform: scale(1.045);
  filter: saturate(1.12) contrast(1.02) brightness(1.02);
}

.card__shot::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(14, 17, 22, 0.45) 1px, transparent 1px);
  background-size: 3px 3px;
  mix-blend-mode: multiply;
  opacity: 0.3;
  transition: opacity 0.3s;
}

.card:hover .card__shot::after {
  opacity: 0.12;
}

.card__index {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  background: var(--ink);
  color: var(--chalk);
  font-family: var(--f-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  padding: 0.45em 0.7em;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.card__body {
  padding: 1.1rem 1.2rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.card__place {
  font-family: var(--f-mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--chalk-3);
}

.card__title {
  font-family: var(--f-display);
  font-size: var(--step-1);
  line-height: 1.14;
  margin: 0;
}

.card:hover .card__title {
  color: #fff;
}

.card__foot {
  margin-top: auto;
  padding-top: 0.9rem;
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  align-items: center;
}

/* ============================================================
   FILTERS (archive)
   ============================================================ */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  padding: 1.2rem 0 1.6rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 2rem;
}

.filters__label {
  font-family: var(--f-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--chalk-3);
  margin-right: 0.6rem;
}

.chip {
  font-family: var(--f-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.5em 0.85em;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--chalk-2);
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.18s;
}

.chip:hover {
  border-color: var(--chalk);
  color: var(--chalk);
}

.chip[aria-pressed="true"] {
  background: var(--uv);
  border-color: var(--uv);
  color: #fff;
}

.search {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--line-strong);
  padding: 0.45rem 0.7rem;
  border-radius: 2px;
  min-width: 210px;
}

.search input {
  background: transparent;
  border: 0;
  color: var(--chalk);
  font-family: var(--f-mono);
  font-size: 0.72rem;
  width: 100%;
  outline: none;
}

.search input::placeholder {
  color: var(--chalk-3);
}

.count {
  font-family: var(--f-mono);
  font-size: 0.68rem;
  color: var(--chalk-3);
  letter-spacing: 0.1em;
  margin-bottom: 1.2rem;
}

/* ============================================================
   DETAIL PAGE
   ============================================================ */

.crumbs {
  font-family: var(--f-mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--chalk-3);
  padding: 1.4rem 0;
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.crumbs a:hover {
  color: var(--chalk);
}

.detail {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: clamp(1.6rem, 4vw, 4rem);
  align-items: start;
  padding-bottom: var(--bay);
}

.detail__shot {
  position: relative;
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--ink-3);
}

.detail__shot img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  filter: saturate(1.06) contrast(1.03) brightness(1.04);
}

.detail__shot .credit {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  background: linear-gradient(transparent, rgba(14, 17, 22, 0.92));
  padding: 2.2rem 1rem 0.7rem;
  font-family: var(--f-mono);
  font-size: 0.6rem;
  letter-spacing: 0.06em;
  color: var(--chalk-2);
}

.spec {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--step--1);
}

.spec th,
.spec td {
  text-align: left;
  padding: 0.72rem 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.spec th {
  font-family: var(--f-mono);
  font-weight: 400;
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--chalk-3);
  width: 40%;
  padding-right: 1rem;
}

.spec td {
  color: var(--chalk);
}

.fact {
  border-left: 2px solid var(--amber);
  padding: 0.2rem 0 0.2rem 1.1rem;
  margin: 2rem 0;
  font-family: var(--f-display);
  font-size: var(--step-1);
  line-height: 1.3;
  color: var(--chalk);
}

/* print-this panel */
.printpanel {
  border: 1px solid var(--line-strong);
  background: var(--panel);
  padding: clamp(1.2rem, 2.5vw, 1.9rem);
  margin-top: 2rem;
  position: relative;
}

.printpanel h3 {
  font-size: var(--step-1);
  margin-bottom: 0.7rem;
}

.printpanel__model {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 0.8rem 0;
  margin: 1.1rem 0;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.printpanel__model b {
  color: var(--amber);
  font-weight: 500;
}

.sizeopts {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.2rem;
}

.sizeopt {
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--chalk-2);
  font-family: var(--f-mono);
  font-size: 0.68rem;
  padding: 0.55em 0.8em;
  cursor: pointer;
  border-radius: 2px;
}

.sizeopt[aria-pressed="true"] {
  border-color: var(--amber);
  color: var(--amber);
}

.related {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.4rem;
}

/* ============================================================
   MACHINE / PRODUCT
   ============================================================ */

.machine {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.6rem, 4vw, 3.6rem);
  align-items: start;
}

.machine__shot {
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  background: var(--ink-3);
}

.machine__shot img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  filter: saturate(1.04) contrast(1.02) brightness(1.02);
}

.priceband {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin: 1.4rem 0 0.4rem;
}

.priceband__amt {
  font-family: var(--f-display);
  font-size: var(--step-3);
  line-height: 1;
}

.priceband__note {
  font-family: var(--f-mono);
  font-size: 0.66rem;
  color: var(--chalk-3);
  letter-spacing: 0.08em;
}

.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--step--1);
  min-width: 640px;
}

.compare th,
.compare td {
  padding: 0.85rem 0.9rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.compare thead th {
  font-family: var(--f-mono);
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--chalk-3);
  border-bottom-color: var(--line-strong);
}

.compare tbody th {
  font-family: var(--f-mono);
  font-weight: 400;
  font-size: 0.68rem;
  color: var(--chalk-2);
  width: 26%;
}

.compare td {
  color: var(--chalk);
}

.compare tbody tr:hover td {
  background: var(--ink-2);
}

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
}

/* ============================================================
   FORM
   ============================================================ */

.form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem 1.4rem;
  max-width: 900px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
}

.field--full {
  grid-column: 1 / -1;
}

.field label {
  font-family: var(--f-mono);
  font-size: 0.64rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--chalk-3);
}

.field label .req {
  color: var(--riso);
}

.field input,
.field select,
.field textarea {
  background: var(--ink-2);
  border: 1px solid var(--line-strong);
  color: var(--chalk);
  padding: 0.8rem 0.9rem;
  font-family: var(--f-body);
  font-size: var(--step-0);
  border-radius: 2px;
  width: 100%;
}

.field textarea {
  min-height: 130px;
  resize: vertical;
  line-height: 1.55;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--uv-soft);
  outline: none;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--chalk-3);
}

.formnote {
  font-family: var(--f-mono);
  font-size: 0.68rem;
  color: var(--chalk-3);
  line-height: 1.8;
}

.formstatus {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  color: var(--amber);
  min-height: 1.4em;
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  border-top: 1px solid var(--line);
  padding: clamp(3rem, 6vw, 5rem) 0 2.4rem;
  background: var(--ink-2);
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 2.4rem;
}

.footer h4 {
  font-family: var(--f-mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--chalk-3);
  margin: 0 0 1rem;
  font-weight: 400;
}

.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer li,
.footer a {
  font-size: var(--step--1);
  color: var(--chalk-2);
}

.footer a:hover {
  color: var(--chalk);
}

.footer__base {
  margin-top: 3rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 1.4rem;
  flex-wrap: wrap;
  font-family: var(--f-mono);
  font-size: 0.64rem;
  color: var(--chark-3);
  color: var(--chalk-3);
  letter-spacing: 0.06em;
}

/* ============================================================
   REVEAL
   ============================================================ */

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .beam {
    animation: none;
    top: 46%;
  }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1080px) {
  .hero__grid,
  .detail,
  .machine {
    grid-template-columns: minmax(0, 1fr);
  }
  .footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  :root {
    --rail: 0px;
  }
  .ruler {
    display: none;
  }
  .shell {
    padding-left: 0;
  }
  .masthead__in {
    height: 60px;
  }
  .nav {
    position: fixed;
    inset: 60px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--ink);
    border-bottom: 1px solid var(--line);
    padding: 0.6rem var(--gut) 1.2rem;
    display: none;
  }
  .nav.is-open {
    display: flex;
  }
  .nav a {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--line);
  }
  .nav-toggle {
    display: block;
  }
  .masthead__cta {
    display: none;
  }
  .form {
    grid-template-columns: minmax(0, 1fr);
  }
  .search {
    margin-left: 0;
    width: 100%;
  }
  .filters {
    gap: 0.4rem;
  }
}

@media (max-width: 560px) {
  .footer__grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero__meta {
    gap: 1.2rem;
  }
}

/* print */
@media print {
  .ruler,
  .masthead,
  .footer,
  .beam {
    display: none;
  }
  body {
    background: #fff;
    color: #000;
  }
}

/* ============================================================
   NEW SECTIONS — venues, video, testimonials, scenes
   ============================================================ */

/* ---------- scene / venue cards ---------- */
.grid-scenes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.scene {
  background: var(--ink);
  position: relative;
  display: flex;
  flex-direction: column;
  transition: background 0.25s;
}

.scene:hover {
  background: var(--ink-2);
}

.scene__shot {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--ink-3);
}

.scene__shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.06) contrast(1.02);
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.scene:hover .scene__shot img {
  transform: scale(1.05);
}

.scene__shot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(14, 17, 22, 0.55), rgba(14, 17, 22, 0) 55%);
  pointer-events: none;
}

.scene__tag {
  position: absolute;
  left: 0.9rem;
  bottom: 0.8rem;
  z-index: 2;
  font-family: var(--f-mono);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--chalk);
  border: 1px solid rgba(237, 232, 223, 0.32);
  background: rgba(14, 17, 22, 0.55);
  backdrop-filter: blur(4px);
  padding: 0.32em 0.7em;
  border-radius: 2px;
}

.scene__body {
  padding: 1.3rem 1.4rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.scene__body h3 {
  font-size: var(--step-1);
}

.scene__body p {
  font-size: var(--step--1);
  color: var(--chalk-2);
  margin: 0;
}

/* ---------- video ---------- */
.grid-video {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(1rem, 2vw, 1.6rem);
}

.vcard {
  border: 1px solid var(--line);
  background: var(--ink-2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.vcard__media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #000;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.vcard__media::before {
  content: "";
  position: absolute;
  inset: -14px;
  background-image: var(--poster);
  background-size: cover;
  background-position: center;
  filter: blur(22px) saturate(1.25) brightness(0.7);
  z-index: 0;
}

.vcard__media video {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: transparent;
}

.vcard__body {
  padding: 1.2rem 1.3rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 1;
}

.vcard__body h3 {
  font-size: var(--step-1);
}

.vcard__body p {
  font-size: var(--step--1);
  color: var(--chalk-2);
  margin: 0;
}

.vcard__meta {
  font-family: var(--f-mono);
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--chalk-3);
  margin-top: auto;
  padding-top: 0.7rem;
}

/* ---------- testimonials ---------- */
.grid-quotes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.quote {
  background: var(--ink);
  padding: clamp(1.5rem, 2.4vw, 2.2rem);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  transition: background 0.25s;
}

.quote:hover {
  background: var(--ink-2);
}

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

.quote__text {
  font-family: var(--f-display);
  font-size: var(--step-1);
  line-height: 1.42;
  margin: 0;
  color: var(--chalk);
}

.quote__by {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: auto;
  padding-top: 0.6rem;
  border-top: 1px solid var(--line);
}

.quote__avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  overflow: hidden;
  flex: none;
  background: var(--ink-3);
  border: 1px solid var(--line-strong);
}

.quote__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.quote__who {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}

.quote__who b {
  font-weight: 500;
  font-size: 0.95rem;
}

.quote__who span {
  font-family: var(--f-mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  color: var(--chalk-3);
}

/* ---------- machine render frame ---------- */
.machine__shot--render img {
  filter: none;
  background: #f2efe8;
}

.machine__shot--render {
  background: #f2efe8;
}

/* ---------- spec tables: dense rows ---------- */
.spec--dense td,
.spec--dense th {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.spec em {
  color: var(--chalk-3);
  font-style: normal;
  font-family: var(--f-mono);
  font-size: 0.72em;
}

/* ---------- marquee strip ---------- */
.strip {
  border-block: 1px solid var(--line);
  overflow: hidden;
  padding-block: 0.9rem;
  background: var(--ink-2);
}

.strip__track {
  display: flex;
  gap: 2.6rem;
  width: max-content;
  animation: slide 42s linear infinite;
}

.strip__track span {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--chalk-3);
  white-space: nowrap;
}

.strip__track span b {
  color: var(--riso);
  font-weight: 400;
}

@media (prefers-reduced-motion: reduce) {
  .strip__track {
    animation: none;
  }
}

@keyframes slide {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ---------- compare table ---------- */
.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--step--1);
}

.compare th,
.compare td {
  text-align: left;
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.compare thead th {
  font-family: var(--f-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--chalk-3);
  font-weight: 400;
  border-bottom-color: var(--line-strong);
}

.compare tbody th {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--chalk-2);
  font-weight: 400;
  width: 30%;
}

.compare td {
  color: var(--chalk);
}

.compare tbody tr:hover td,
.compare tbody tr:hover th {
  background: var(--ink-2);
}

/* ---------- note / callout ---------- */
.note {
  border-left: 2px solid var(--uv);
  background: rgba(30, 72, 255, 0.07);
  padding: 1.1rem 1.3rem;
  font-size: var(--step--1);
  color: var(--chalk-2);
}

.note b {
  color: var(--chalk);
}

.note--amber {
  border-left-color: var(--amber);
  background: rgba(242, 169, 59, 0.07);
}

.note--riso {
  border-left-color: var(--riso);
  background: rgba(255, 61, 104, 0.07);
}

/* ---------- split feature row ---------- */
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(1.4rem, 3vw, 2.6rem);
  align-items: center;
}

.split__media {
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--ink-3);
}

.split__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.06);
}

/* ---------- steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.steps > div {
  background: var(--ink);
  padding: 1.6rem 1.5rem 1.9rem;
}

.steps h3 {
  font-size: var(--step-1);
  margin: 0.6rem 0 0.5rem;
}

.steps p {
  font-size: var(--step--1);
  color: var(--chalk-2);
  margin: 0;
}
