/* aicolormatch.pro — direction: "The product performs" (tasteskill v2).
   Baskl brand: black ground, white ink, amber accent, Instrument Sans only.
   Inside [data-ui] fragments the product's own conventions apply (its radii, 1px control borders). */

/* ---------- tokens ---------- */
:root {
  color-scheme: dark;
  --bg: #000000;
  --surface: #141414;
  --ink: #ffffff;
  --muted: #a6a6a6;
  --accent: #ffaa00;
  --accent-hi: #ffbd33;
  --accent-ink: #000000;
  --grey: #808080;          /* the neutral grey a grading suite sits in: the LUT's field */

  --font: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;

  /* five sizes: small, body, lead, head, display */
  --step-small: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem);    /* 14–15 */
  --step-body: clamp(1.0625rem, 1.02rem + 0.15vw, 1.125rem);    /* 17–18 */
  --step-lead: clamp(1.25rem, 1.16rem + 0.3vw, 1.375rem);       /* 20–22 */
  --step-head: clamp(1.5rem, 0.95rem + 1.9vw, 2.25rem);         /* 24–36 */
  --step-display: clamp(2.375rem, 0.9rem + 4.4vw, 4.75rem);     /* 38–76 */

  --margin: clamp(1rem, 2.2vw, 2rem);
  --gutter: clamp(0.75rem, 1.6vw, 1.5rem);
  --section: clamp(4.5rem, 11vw, 12.5rem);
  --nav-h: 5rem;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
  --t-ui: 240ms;
  --stagger-line: 90ms;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: var(--step-body); line-height: 1.55; font-kerning: normal; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
h1, h2, h3, p, figure, ul, ol, dl, dd, table { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, video, svg, canvas { display: block; max-width: 100%; }
img, video { height: auto; }
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
:target { scroll-margin-top: 1rem; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: var(--margin); top: -4rem; z-index: 10; padding: 0.6rem 1rem; background: var(--accent); color: var(--accent-ink); }
.skip:focus { top: 0.75rem; }

/* ---------- type ---------- */
h1, h2, h3 { font-weight: 500; text-wrap: balance; hyphens: none; }
.display { font-size: var(--step-display); line-height: 1; letter-spacing: -0.035em; }
.head { font-size: var(--step-head); line-height: 1.1; letter-spacing: -0.02em; }
.lead { font-size: var(--step-lead); line-height: 1.4; letter-spacing: -0.005em; }
p { max-width: 62ch; text-wrap: pretty; }
.wrap { padding-inline: var(--margin); }

/* ---------- controls ---------- */
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: 0 1.5rem; background: var(--accent); color: var(--accent-ink); font-weight: 600; font-size: var(--step-body); text-decoration: none; white-space: nowrap; transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease, color var(--t-hover) ease; }
.button:active { transform: scale(0.97); }
.button--ink { background: var(--accent-ink); color: var(--ink); }
.link { text-decoration: underline; text-underline-offset: 0.18em; text-decoration-thickness: 0.07em; transition: text-decoration-color var(--t-hover) ease, color var(--t-hover) ease; }
@media (hover: hover) and (pointer: fine) {
  .button:hover { background: var(--accent-hi); }
  .button--ink:hover { background: #262626; }
  .link:hover { color: var(--accent); }
}

/* ---------- navigation ---------- */
.nav { display: flex; align-items: center; gap: 1.25rem; height: var(--nav-h); font-size: var(--step-small); }
.nav__brand img { width: auto; height: 1.375rem; }
.nav__product { font-weight: 600; text-decoration: none; }
.nav__links { display: flex; gap: 1.5rem; margin-left: auto; }
.nav__links a { text-decoration: none; transition: color var(--t-hover) ease; }
@media (hover: hover) and (pointer: fine) { .nav__links a:hover, .nav__product:hover { color: var(--accent); } }
@media (max-width: 560px) { .nav__links { display: none; } .nav { gap: 1rem; } }

/* ---------- hero: headline upper left, the picker on the amber stage ---------- */
.hero { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
.hero__copy { grid-column: 1 / 7; grid-row: 1; align-self: start; padding-top: calc(9.5rem - var(--nav-h)); position: relative; z-index: 1; }
.hero h1 { max-width: 9.5em; }
.hero__lead { max-width: 21em; margin-top: 2rem; }
.hero .button { margin-top: 2rem; }
.lines .line { display: block; overflow: clip; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.lines [data-line] { display: block; }

/* the stage: one flat field, its top-left corner cut at the 30° edge of an RGB cube seen down its grey axis */
.stage { grid-column: 5 / -1; grid-row: 1; align-self: start; margin-top: calc(42svh - var(--nav-h)); margin-right: calc(var(--margin) * -1); background: var(--accent); --cut: calc((100vw - 2 * var(--margin)) / 6); padding: 3.5rem 0 0 max(3.5rem, calc(var(--cut) - 5rem)); overflow: clip; clip-path: polygon(0 calc(var(--cut) * 0.577), var(--cut) 0, 100% 0, 100% 100%, 0 100%); }

@media (max-width: 900px) {
  .hero__copy { grid-column: 1 / -1; padding-top: 1.5rem; }
  .stage { grid-column: 1 / -1; grid-row: 2; margin: 2.5rem calc(var(--margin) * -1) 0; padding: 1rem; --cut: 72px; }
}

/* ---------- the picker (product fragment) ---------- */
[data-ui].pick { width: min(51rem, 100% - 2rem); background: #0c0c0c; color: #f2f2f2; border-radius: 10px 10px 0 0; margin-bottom: -1.75rem; font-size: 14px; line-height: 1.35; }
[data-ui] .pick__bar { display: flex; align-items: baseline; gap: 1.75rem; padding: 0.9rem 1.25rem 0; border-bottom: 1px solid #262626; }
[data-ui] .pick__title { font-size: 18px; font-weight: 600; padding-bottom: 0.8rem; }
[data-ui] .pick__tab { font-size: 15px; font-weight: 500; padding-bottom: 0.7rem; border-bottom: 2px solid #f2f2f2; margin-bottom: -1px; }
[data-ui] .pick__tab span { color: #8c8c8c; margin-left: 0.3em; }
[data-ui] .pick__body { display: grid; grid-template-columns: minmax(0, 1fr) 13rem; gap: 1rem; padding: 1rem 1.25rem 3rem; }
[data-ui] .pick__view { position: relative; aspect-ratio: 16 / 9; background: #1a1a1a; }
[data-ui] .pick__view img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: none; }
[data-ui] .pick__match { display: flex; align-items: center; gap: 1rem; margin-top: 1rem; }
[data-ui] .pick__ref { position: relative; flex: none; width: 11rem; aspect-ratio: 16 / 9; background: #1a1a1a; border-radius: 4px; overflow: hidden; }
[data-ui] .pick__ref img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: none; }
[data-ui] .pick__said { font-size: 17px; font-weight: 500; color: #fff; }
[data-ui] .pick__saidtags { color: #9a9a9a; margin-top: 0.2rem; }
[data-ui] [data-said] { display: none; }
[data-ui] .pick__list { border: 0; margin: 0; padding: 0; min-inline-size: 0; display: flex; flex-direction: column; gap: 2px; }
[data-ui] .pick__row { position: relative; display: flex; align-items: center; gap: 0.7rem; padding: 4px 6px; border-radius: 6px; cursor: pointer; transition: background-color var(--t-hover) ease; }
[data-ui] .pick__row input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
[data-ui] .pick__row img { flex: none; width: 3rem; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 3px; outline: 2px solid transparent; outline-offset: 1px; background: #1a1a1a; transition: outline-color var(--t-hover) ease; }
[data-ui] .pick__tags { display: none; }
[data-ui] .pick__name { font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
[data-ui] .pick__row:has(input:checked) { background: #1f1f1f; }
[data-ui] .pick__row:has(input:checked) img { outline-color: var(--accent); }
[data-ui] .pick__row:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 0; }
[data-ui] .pick__row:active { background: #262626; }
@media (hover: hover) and (pointer: fine) { [data-ui] .pick__row:hover { background: #181818; } [data-ui] .pick__row:has(input:checked):hover { background: #1f1f1f; } }

/* default look before :has is known; the checked look is stacked above it */
[data-ui] .pick__view [data-look="orange-haze-2050"], [data-ui] .pick__ref [data-look="orange-haze-2050"] { display: block; }
[data-ui] [data-said="orange-haze-2050"] { display: inline; }
.pick:has(input:checked:not([value="orange-haze-2050"])) [data-said="orange-haze-2050"] { display: none; }
.pick:has([value="original"]:checked) .pick__ref [data-look="orange-haze-2050"] { display: none; }

@media (max-width: 900px) {
  [data-ui].pick { width: 100%; margin-bottom: -1.25rem; }
  [data-ui] .pick__bar { padding: 0.8rem 1rem 0; }
  [data-ui] .pick__body { grid-template-columns: minmax(0, 1fr); padding: 0.75rem 0.75rem 2rem; gap: 0.75rem; }
  [data-ui] .pick__match { margin-top: 0.75rem; gap: 0.75rem; }
  [data-ui] .pick__ref { width: 6.5rem; }
  [data-ui] .pick__said { font-size: 16px; }
  [data-ui] .pick__list { flex-direction: row; overflow-x: auto; gap: 0.5rem; scroll-snap-type: x proximity; scrollbar-width: none; margin-inline: -0.75rem; padding-inline: 0.75rem; scroll-padding-inline: 0.75rem; }
  [data-ui] .pick__list::-webkit-scrollbar { display: none; }
  [data-ui] .pick__row { flex: none; width: 6.75rem; flex-direction: column; align-items: stretch; gap: 0.35rem; padding: 0 0 0.35rem; scroll-snap-align: start; background: none; }
  [data-ui] .pick__row:has(input:checked) { background: none; }
  [data-ui] .pick__row img { width: 100%; border-radius: 4px; }
  [data-ui] .pick__name { white-space: normal; font-size: 13px; line-height: 1.25; min-height: 2.5em; }
}

/* the checked look (generated: one pair of rules per look) */
.pick:has([value="original"]:checked) [data-look="original"]{display:block;z-index:1}
.pick:has([value="original"]:checked) [data-said="original"]{display:inline}
.pick:has([value="orange-haze-2050"]:checked) [data-look="orange-haze-2050"]{display:block;z-index:1}
.pick:has([value="orange-haze-2050"]:checked) [data-said="orange-haze-2050"]{display:inline}
.pick:has([value="replicant-rain"]:checked) [data-look="replicant-rain"]{display:block;z-index:1}
.pick:has([value="replicant-rain"]:checked) [data-said="replicant-rain"]{display:inline}
.pick:has([value="pink-mountain-hotel"]:checked) [data-look="pink-mountain-hotel"]{display:block;z-index:1}
.pick:has([value="pink-mountain-hotel"]:checked) [data-said="pink-mountain-hotel"]{display:inline}
.pick:has([value="contrast-city"]:checked) [data-look="contrast-city"]{display:block;z-index:1}
.pick:has([value="contrast-city"]:checked) [data-said="contrast-city"]{display:inline}
.pick:has([value="green-code"]:checked) [data-look="green-code"]{display:block;z-index:1}
.pick:has([value="green-code"]:checked) [data-said="green-code"]{display:inline}
.pick:has([value="amphibian-romance"]:checked) [data-look="amphibian-romance"]{display:block;z-index:1}
.pick:has([value="amphibian-romance"]:checked) [data-said="amphibian-romance"]{display:inline}
.pick:has([value="sand-dunes"]:checked) [data-look="sand-dunes"]{display:block;z-index:1}
.pick:has([value="sand-dunes"]:checked) [data-said="sand-dunes"]{display:inline}
.pick:has([value="red-lantern-courtyard"]:checked) [data-look="red-lantern-courtyard"]{display:block;z-index:1}
.pick:has([value="red-lantern-courtyard"]:checked) [data-said="red-lantern-courtyard"]{display:inline}
.pick:has([value="blue-moon-miami"]:checked) [data-look="blue-moon-miami"]{display:block;z-index:1}
.pick:has([value="blue-moon-miami"]:checked) [data-said="blue-moon-miami"]{display:inline}
.pick:has([value="silent-vampire"]:checked) [data-look="silent-vampire"]{display:block;z-index:1}
.pick:has([value="silent-vampire"]:checked) [data-said="silent-vampire"]{display:inline}
.pick:has([value="emerald-obsession"]:checked) [data-look="emerald-obsession"]{display:block;z-index:1}
.pick:has([value="emerald-obsession"]:checked) [data-said="emerald-obsession"]{display:inline}
.pick:has([value="favela-sun"]:checked) [data-look="favela-sun"]{display:block;z-index:1}
.pick:has([value="favela-sun"]:checked) [data-said="favela-sun"]{display:inline}

/* ---------- technology: the statement, then the LUT ---------- */
.tech { padding-top: clamp(6rem, 22vh, 13.75rem); }
.statement { max-width: 27em; margin: 0 auto; text-align: center; font-weight: 500; line-height: 1.22; letter-spacing: -0.015em; }
.statement .nb, .nowrap { white-space: nowrap; }
.thumb { display: inline-block; width: 1.3em; height: 0.85em; vertical-align: -0.1em; margin-inline: 0.12em; overflow: hidden; background: var(--surface); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.lut { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: center; margin-top: clamp(6rem, 22vh, 13.75rem); }
.lut__text { grid-column: 1 / 6; }
.lut__text h2 { margin-bottom: 1.5rem; }
.lut__text p + p { margin-top: 1em; }
.lut__stage { grid-column: 6 / -1; aspect-ratio: 8 / 7; background: var(--grey); margin-right: calc(var(--margin) * -1); }
.lut__stage canvas { width: 100%; height: 100%; touch-action: pan-y; cursor: grab; }
.lut__stage canvas:active { cursor: grabbing; }
@media (max-width: 900px) {
  .statement { text-align: left; margin: 0; }
  .lut { margin-top: 4.5rem; }
  .lut__text, .lut__stage { grid-column: 1 / -1; }
  .lut__stage { order: -1; aspect-ratio: 1 / 1; margin: 0 calc(var(--margin) * -1) 1.5rem; }
}

/* ---------- looks: frame run, one lifted ---------- */
.looks { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); padding-top: var(--section); }
.looks__side { grid-column: 1 / 4; display: flex; flex-direction: column; }
.looks__side h2 { max-width: 8em; }
.looks__note { font-size: var(--step-small); line-height: 1.5; max-width: 28ch; }
.looks__note--a { margin-top: 2.5rem; }
.looks__note--b { margin-top: auto; margin-bottom: calc(max(30vh, 13rem) - 2rem); }
.looks__frames { grid-column: 4 / -1; margin-right: calc(var(--margin) * -1); display: flex; align-items: flex-end; gap: 6px; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; cursor: grab; }
.looks__frames::-webkit-scrollbar { display: none; }
.looks__frames.is-dragging { cursor: grabbing; user-select: none; }
.looks__run { display: flex; align-items: flex-end; gap: 6px; padding-right: var(--margin); margin-left: calc(var(--gutter) - 6px); }
.looks__frame, .looks__lifted { flex: none; }
.looks__lifted { margin: 0; overflow: clip; }
.looks__frame img { height: max(30vh, 13rem); width: auto; aspect-ratio: 960 / 536; object-fit: cover; background: var(--surface); }
.looks__lifted img { height: max(66vh, 28.6rem); width: auto; aspect-ratio: 1600 / 1176; background: var(--surface); }
.looks__frames img { -webkit-user-drag: none; user-select: none; }
.looks__frames p { display: flex; justify-content: space-between; gap: 1rem; max-width: none; font-size: var(--step-small); padding-top: 0.6rem; }
.looks__frames p span + span { color: var(--muted); }
@media (max-width: 900px) {
  .looks__side { display: contents; }
  .looks h2 { grid-column: 1 / -1; order: 0; }
  .looks__frames { grid-column: 1 / -1; order: 1; display: block; overflow: visible; margin: 1.75rem 0 0; cursor: auto; }
  .looks__lifted img { width: 100%; height: auto; }
  .looks__run { margin: 1rem 0 0; padding: 0; margin-left: 0; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; gap: 12px; }
  .looks__run::-webkit-scrollbar { display: none; }
  .looks__frame { scroll-snap-align: start; }
  .looks__frame img { height: 34vw; min-height: 0; }
  .looks__note { grid-column: 1 / -1; order: 2; margin: 1.25rem 0 0; max-width: 40ch; }
  .looks__note--b { margin-bottom: 0; }
}

/* ---------- the effect panel, with notes in both margins ---------- */
.plate { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); padding-top: var(--section); --row: 30px; }
.plate__head { grid-column: 1 / 5; grid-row: 1; justify-self: end; text-align: right; max-width: 7em; }
.fx { grid-column: 5 / 9; justify-self: center; width: min(23.75rem, 100%); }
.fx--top { grid-row: 1; }
.fx--mid { grid-row: 2; }
.fx--bot { grid-row: 3; }
.plate__notes { display: contents; }
.plate__notes--top .note { grid-row: 1; }
.plate__notes--mid .note { grid-row: 2; }
.plate__notes--bot .note { grid-row: 3; }
.note { position: relative; align-self: start; max-width: 24ch; font-size: var(--step-small); line-height: 1.45; color: var(--muted); transition: color var(--t-hover) ease; }
.note b { display: block; font-size: var(--step-body); font-weight: 500; color: var(--ink); margin-bottom: 0.15rem; }
.note--l { grid-column: 1 / 5; justify-self: end; text-align: right; }
.note--r { grid-column: 9 / -1; justify-self: start; }
/* first line level with the part it explains (rows are 30px; measured in the panel) */
.note[data-for="browse"] { top: 188px; }
.note[data-for="load"] { top: 218px; }
.note[data-for="matching"] { top: 34px; }
.note[data-for="match"] { top: 196px; }
.note[data-for="intensity"] { top: 32px; }
.note[data-for="lum"] { top: 62px; }

[data-ui].fx { background: #232323; color: #c9c9c9; font-size: 13px; line-height: 1; transition: opacity var(--t-ui) ease; }
[data-ui].fx--top { border-radius: 6px 6px 0 0; padding-top: 6px; }
[data-ui] .fx__row { display: flex; align-items: center; gap: 0.5rem; height: var(--row, 30px); padding: 0 0.75rem; white-space: nowrap; transition: opacity var(--t-ui) ease; }
[data-ui] .fx__row--group { color: #9c9c9c; }
[data-ui] .fx__row--fx { color: #e6e6e6; }
[data-ui] .fx__row--p { padding-left: 2.6rem; }
[data-ui] .fx__tw { width: 0.8rem; color: #9c9c9c; font-size: 16px; line-height: 1; display: inline-block; }
[data-ui] .fx__row--p .fx__tw { margin-left: -1.4rem; }
[data-ui] .fx__tw--open { transform: rotate(90deg); }
[data-ui] .fx__fx { font-style: italic; font-weight: 600; color: #b5b5b5; width: 1rem; }
[data-ui] .fx__fx--off { color: #6a6a6a; }
[data-ui] .fx__name { flex: 1; overflow: hidden; text-overflow: ellipsis; }
[data-ui] .fx__btn { flex: none; width: 8.75rem; padding: 4px 8px; border: 1px solid #555; border-radius: 4px; background: #1d1d1d; color: #e2e2e2; }
[data-ui] .fx__val { flex: none; width: 8.75rem; color: #4aa3ff; }
[data-ui] .fx__sw { width: 11px; height: 11px; border: 1.5px solid #9c9c9c; border-radius: 50%; flex: none; }
[data-ui] .fx__preview { position: relative; margin: 2px 0.75rem 8px 0.75rem; aspect-ratio: 300 / 130; background: #111; overflow: hidden; transition: opacity var(--t-ui) ease; }
[data-ui] .fx__preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
[data-ui] .fx__preview .fx__ref { clip-path: polygon(0 0, 100% 0, 100% 100%); }
[data-ui] .fx__strip { position: absolute; left: 0; right: 0; bottom: 0; padding: 5px 7px; background: #000000b3; color: #f0f0f0; font-size: 13px; }
[data-ui] .fx__rest { height: 9rem; }
/* pointing at a note keeps its part at full strength */
@media (hover: hover) and (pointer: fine) {
  .plate:has(.note:hover) .note:not(:hover) { color: #808080; }
  .plate:has(.note:hover) [data-part], .plate:has(.note:hover) .fx__row:not([data-part]) { opacity: 0.3; }
  .plate:has(.note[data-for="browse"]:hover) [data-part="browse"],
  .plate:has(.note[data-for="load"]:hover) [data-part="load"],
  .plate:has(.note[data-for="matching"]:hover) [data-part="matching"],
  .plate:has(.note[data-for="match"]:hover) [data-part="match"],
  .plate:has(.note[data-for="intensity"]:hover) [data-part="intensity"],
  .plate:has(.note[data-for="lum"]:hover) [data-part="lum"] { opacity: 1; }
}
@media (max-width: 900px) {
  .plate { grid-template-columns: 1fr 1fr; row-gap: 0; }
  .plate__head { grid-column: 1 / -1; grid-row: auto; justify-self: start; text-align: left; max-width: none; margin-bottom: 1.75rem; }
  .fx { grid-column: 1 / -1; grid-row: auto !important; }
  [data-ui].fx--mid, [data-ui].fx--bot { border-radius: 6px 6px 0 0; padding-top: 6px; }
  .plate__notes { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; grid-column: 1 / -1; margin: 1rem 0 3.5rem; }
  .plate__notes .note { grid-row: auto; grid-column: auto; top: 0; justify-self: start; text-align: left; max-width: none; }
  .plate__notes--bot { margin-bottom: 0; }
  [data-ui] .fx__rest { display: none; }
}

/* ---------- Preserve Luminance: the picture holds while the settings pass ---------- */
.held { display: grid; grid-template-columns: 8fr 4fr; column-gap: calc(var(--gutter) * 2); padding-top: var(--section); }
.held__media { margin: 0 0 0 calc(var(--margin) * -1); align-self: start; }
.held__pictures img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--surface); }
.held__pictures img + img { margin-top: 0.75rem; }
.held__intro { padding-bottom: 2.5rem; }
.held__intro h2 { margin-bottom: 1.25rem; }
.held__item { padding-block: 1.5rem; }
.held__item h3 { margin-bottom: 0.5rem; }
.js .held__media { position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column; justify-content: center; }
.js .held__pictures { position: relative; aspect-ratio: 16 / 9; }
.js .held__pictures img { position: absolute; inset: 0; height: 100%; margin: 0; opacity: 0; transition: opacity 500ms ease; }
.js .held__pictures img.is-on { opacity: 1; }
.js .held__intro { min-height: 40svh; display: flex; flex-direction: column; justify-content: center; padding: 0; }
.js .held__item { min-height: 55svh; display: flex; flex-direction: column; justify-content: center; opacity: 0.4; transition: opacity var(--t-ui) ease; }
.js .held__item.is-active { opacity: 1; }
.held__pic { display: none; }
@media (max-width: 900px) {
  .held { display: block; }
  .held__media, .js .held__media { display: none; }
  .held__pic { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--surface); margin-bottom: 1rem; }
  .held__intro, .js .held__intro { min-height: 0; padding: 0 0 1rem; }
  .held__item, .js .held__item { min-height: 0; padding-block: 1.25rem; opacity: 1; }
}

/* ---------- real footage: tiles with label strips ---------- */
.reel { padding-top: var(--section); }
.reel h2 { margin-bottom: 2.5rem; }
.reel__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.tile { display: flex; flex-direction: column; }
.tile__media { display: block; position: relative; width: 100%; aspect-ratio: 4 / 5; overflow: hidden; background: var(--surface); }
.tile__media video { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease-soft); }
.tile__media:active video { transform: scale(0.985); }
.tile__strip { padding: 12px; min-height: 5.5rem; display: flex; flex-direction: column; justify-content: space-between; gap: 0.6rem; background: var(--strip-bg); color: var(--strip-ink); }
.tile__vals { display: flex; justify-content: space-between; gap: 0.5rem; max-width: none; font-size: var(--step-small); font-variant-numeric: tabular-nums; }
.tile__title { font-size: var(--step-body); font-weight: 500; line-height: 1.3; max-width: none; }
.tile--a { --strip-bg: var(--ink); --strip-ink: var(--bg); }
.tile--b { --strip-bg: var(--surface); --strip-ink: var(--ink); }
.tile--c { --strip-bg: var(--muted); --strip-ink: var(--bg); }
.tile--d { --strip-bg: #2b2b2b; --strip-ink: var(--ink); }
@media (max-width: 900px) {
  .reel__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; row-gap: 12px; }
  .reel h2 { margin-bottom: 1.5rem; }
  .tile__vals { flex-wrap: wrap; justify-content: flex-start; column-gap: 0.75rem; }
}

/* ---------- plugins: Standard and Pro as a large table ---------- */
.plans { padding-top: var(--section); }
.plans__table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: var(--step-lead); line-height: 1.35; }
.plans__table col { width: auto; }
.plans__table th, .plans__table td { text-align: left; vertical-align: top; padding: 1.25rem 1.25rem; font-weight: 400; }
.plans__table th:first-child, .plans__table td:first-child { width: 34%; padding-left: 0; }
.plans__table thead th { vertical-align: bottom; padding-top: 0; padding-bottom: 1.75rem; }
.plans__table thead th:not(:first-child) { padding-top: 1.75rem; }
.plans__name { font-size: var(--step-head); font-weight: 600; letter-spacing: -0.02em; }
.plans__table tbody tr:nth-child(even) th, .plans__table tbody tr:nth-child(even) td { background: var(--surface); }
.plans__table tbody th { padding-left: 1.25rem !important; }
.plans__table thead th:first-child { padding-left: 0; }
.plans__table .plans__pro { background: var(--accent) !important; color: var(--accent-ink); }
.plans__table tfoot td { padding-top: 1.5rem; padding-bottom: 1.75rem; }
.plans__phone { display: none; }
.plans__after { margin-top: 2rem; }
@media (max-width: 760px) {
  .plans__table { display: none; }
  .plans__phone { display: block; }
  .plans__phone > h2 { margin-bottom: 1.5rem; }
  .plan { background: var(--surface); padding: 1.25rem 1.25rem 1.5rem; margin-inline: calc(var(--margin) * -1); padding-inline: var(--margin); }
  .plan + .plan { margin-top: 2.5rem; }
  .plan--pro { background: var(--accent); color: var(--accent-ink); }
  .plan__name { font-size: 9vw; font-weight: 600; line-height: 1; letter-spacing: -0.02em; margin-bottom: 1rem; }
  .plan dt { color: var(--muted); font-size: var(--step-body); margin-top: 0.9rem; }
  .plan--pro dt { color: #3d2900; }
  .plan dd { margin: 0.1rem 0 0; font-size: var(--step-body); }
  .plan .button { width: 100%; margin-top: 1.5rem; }
}

/* ---------- API: one sentence, one action ---------- */
.api { padding-top: clamp(7rem, 30svh, 17rem); padding-bottom: clamp(5rem, 20svh, 11rem); }
.api h2 { margin-bottom: 1.25rem; }
.api p { max-width: 34ch; }
.api .button { margin-top: 1.5rem; }

/* ---------- footer: the last two rows of tiles ---------- */
.foot { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 8px; padding-bottom: var(--margin); }
.foot__tile { background: var(--surface); padding: 1.25rem; min-height: 13.75rem; text-decoration: none; display: flex; flex-direction: column; }
.foot__say { grid-column: 1 / 5; justify-content: space-between; }
.foot__line { font-size: var(--step-lead); line-height: 1.3; max-width: 18em; }
.foot__legal { color: var(--muted); font-size: var(--step-small); }
.foot__nav { grid-column: 5 / 8; gap: 0.35rem; }
.foot__links { grid-column: 8 / 10; gap: 0.6rem; }
.foot__nav a, .foot__links a { text-decoration: none; width: fit-content; transition: color var(--t-hover) ease; }
.foot__discord { grid-column: 10 / -1; justify-content: flex-end; font-size: var(--step-lead); transition: background-color var(--t-hover) ease; }
.foot__mark { grid-column: 1 / 9; min-height: 20rem; align-items: center; justify-content: center; }
.foot__mark img { width: min(36vw, 32rem); height: auto; }
.foot__go { grid-column: 9 / -1; min-height: 20rem; background: var(--accent); color: var(--accent-ink); justify-content: space-between; transition: background-color var(--t-hover) ease; }
.foot__go span { font-size: var(--step-head); font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
.foot__go svg { width: 3rem; height: 3rem; align-self: flex-end; transition: transform var(--t-ui) var(--ease-out); }
.foot__go:active { transform: scale(0.99); }
@media (hover: hover) and (pointer: fine) {
  .foot__nav a:hover, .foot__links a:hover { color: var(--accent); }
  .foot__discord:hover, .foot__mark:hover { background: #1d1d1d; }
  .foot__go:hover { background: var(--accent-hi); }
  .foot__go:hover svg { transform: translateX(6px); }
}
@media (max-width: 900px) {
  .foot { grid-template-columns: 1fr 1fr; gap: 6px; }
  .foot__tile { min-height: 0; padding: 1.25rem; }
  .foot__mark { grid-column: 1 / -1; grid-row: 1; min-height: 10rem; }
  .foot__mark img { width: 60%; }
  .foot__go { grid-column: 1 / -1; grid-row: 2; min-height: 10rem; }
  .foot__nav { grid-column: 1; grid-row: 3; }
  .foot__discord { grid-column: 2; grid-row: 3; }
  .foot__links { grid-column: 1 / -1; grid-row: 4; }
  .foot__say { grid-column: 1 / -1; grid-row: 5; gap: 1.5rem; }
}

/* ---------- motion: load sequence, entrances, the picker's crossfade ----------
   Every hidden state lives under .js and prefers-reduced-motion: no-preference, so the reduced page
   and the page without script are the finished page. */
@media (prefers-reduced-motion: no-preference) {
  /* load: the headline's lines rise from behind their baselines, then the sentence, the button and the picker */
  .js .hero [data-line] { transform: translateY(105%); animation: line-up 900ms var(--ease-expo) forwards; animation-delay: calc(120ms + var(--i) * 110ms); }
  .js [data-load] { opacity: 0; transform: translateY(14px); animation: rise 600ms var(--ease-out) forwards; animation-delay: var(--d, 0ms); }
  .js [data-ui][data-load] { transform: translateY(28px); animation-duration: 900ms; animation-timing-function: var(--ease-expo); }

  /* entrances: each part of a section rises once as it arrives, staggered */
  .js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-expo); transition-delay: var(--d, 0ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  /* pictures open from an edge instead, settling from a slight scale */
  .js [data-reveal="open"] { transform: none; transition: opacity 500ms ease; }
  .js [data-reveal="open"] img { transform: scale(1.06); transition: transform 1400ms var(--ease-soft); }
  .js [data-reveal="open"].is-in img { transform: none; }
  /* the statement's thumbnails open a beat after their words */
  .js .statement[data-reveal] .thumb img { transform: scale(1.6); opacity: 0; transition: transform 900ms var(--ease-expo), opacity 500ms ease; }
  .js .statement[data-reveal].is-in .nb:nth-of-type(1) .thumb img { transition-delay: 250ms; }
  .js .statement[data-reveal].is-in .nb:nth-of-type(2) .thumb img { transition-delay: 340ms; }
  .js .statement[data-reveal].is-in .nb:nth-of-type(3) .thumb img { transition-delay: 430ms; }
  .js .statement[data-reveal].is-in .thumb img { transform: none; opacity: 1; }

  /* a picked look fades in over the one it replaces */
  .js [data-ui] .pick__view img.is-new { animation: fade-in 420ms ease both; }
  .js [data-ui] .pick__view img.was-on { display: block; z-index: 0; }
  .js [data-ui] .pick__ref img.is-new { animation: fade-in 420ms ease both; }
}
@keyframes line-up { to { transform: none; } }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } }
