/* Tessoura. The page is a contact sheet: strips of film, running frame numbers, one wax pencil. */

@property --sweep {
  syntax: "<angle>";
  inherits: false;
  initial-value: 360deg;
}

:root {
  --ground: #17101C;
  --plate: #241A2B;
  --rule: #3A2C44;
  --ink: #F3EEF6;
  --ash: #B6A9BF;
  --lamp: #FF5A47;
  --on-lamp: #17101C;
  --lamp-wash: #FF5A4729;

  /* Exposure steps between --ground and --rule, for test strips and the print line. */
  --step-1: #1D1524;
  --step-2: #241A2B;
  --step-3: #2F2338;
  --step-4: #3A2C44;

  --display: "Syne", "Trebuchet MS", sans-serif;
  --text: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 2px;
  --gutter: max(clamp(16px, 4vw, 56px), calc((100vw - 1560px) / 2));
  --bar: 64px;
}

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

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

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 1.0625rem/1.55 var(--text);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

/* One-column grids never grow past the page; wider layouts override this further down. */
:is(.opening, .frames-a, .frames-b, .lab-top, .line, .tstrips, .tstrip, .prints, .stair, .extras,
    .notes, .askings, .order, .slots, .tally, .wing-head, .tail-row, .counter) {
  grid-template-columns: minmax(0, 1fr);
}

h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }

::selection { background: var(--lamp); color: var(--on-lamp); }

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

h1, h2 { font-family: var(--display); font-weight: 800; letter-spacing: -.02em; }
h3, h4 { font-family: var(--display); font-weight: 700; }
h1, h2, h3 { text-wrap: balance; }

h1 { font-size: clamp(2.9rem, 11.5vw, 5.6rem); line-height: .98; }
@media (min-width: 1000px) {
  h1 { font-size: clamp(2.9rem, 6.9vw, 7rem); }
}
h2 { font-size: clamp(2rem, 4.2vw, 3.9rem); line-height: 1.04; overflow-wrap: break-word; }
h3 { font-size: clamp(1.25rem, 1.9vw, 1.65rem); line-height: 1.18; }
h4 { font-size: 1.15rem; line-height: 1.2; }

.defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 50;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--ground);
  border-radius: var(--radius);
}
.skip:focus { top: 10px; }

/* ---------- Actions ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border: 0;
  border-radius: var(--radius);
  background: var(--lamp);
  color: var(--on-lamp);
  font: 600 1rem/1.2 var(--text);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s, transform .2s;
}
.btn:hover { background: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { background: var(--ash); cursor: progress; }
.btn--small { min-height: 40px; padding: 8px 14px; font-size: .9375rem; }

.quiet {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--ash);
  text-decoration-thickness: 1px;
  text-underline-offset: .28em;
  transition: text-decoration-color .2s;
}
.quiet:hover { text-decoration-color: var(--lamp); text-decoration-thickness: 2px; }

/* ---------- Top bar ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  min-height: var(--bar);
  padding-inline: var(--gutter);
  background: var(--ground);
  border-bottom: 1px solid var(--rule);
}

.mark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: auto;
  font: 800 1.3rem/1 var(--display);
  letter-spacing: -.01em;
  text-decoration: none;
}
.mark i {
  width: 9px;
  height: 9px;
  border-radius: var(--radius);
  background: var(--lamp);
  animation: lamp 6s ease-in-out infinite;
}
@keyframes lamp { 50% { opacity: .5; } }

.topbar-cta { display: none; }
.js .nav .nav-cta, .nav .nav-cta { color: var(--lamp); }

.menu-btn {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--ash);
  border-radius: var(--radius);
  background: none;
  cursor: pointer;
}
.menu-btn span {
  width: 20px;
  height: 2px;
  background: var(--ink);
  transition: transform .2s;
}
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(4.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-4.5px) rotate(-45deg); }
.js .menu-btn { display: inline-flex; }

/* Without scripts the links simply sit in a wrapped row under the logo. */
.nav {
  order: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 2px 16px;
  width: 100%;
  padding-bottom: 8px;
}
.nav a {
  color: var(--ash);
  font-size: .9375rem;
  font-weight: 500;
  text-decoration: none;
  padding-block: 6px;
  transition: color .15s;
}
.nav a:hover { color: var(--ink); }

.js .nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  flex-direction: column;
  width: auto;
  max-height: calc(100vh - var(--bar));
  overflow-y: auto;
  padding: 4px var(--gutter) 18px;
  background: var(--ground);
  border-bottom: 1px solid var(--rule);
}
.js .nav.is-open { display: flex; }
.js .nav a {
  padding-block: 13px;
  border-bottom: 1px solid var(--rule);
  color: var(--ink);
  font: 700 1.25rem/1.2 var(--display);
}

@media (min-width: 420px) {
  .topbar-cta { display: inline-flex; }
  .nav .nav-cta, .js .nav .nav-cta { display: none; }
}

@media (min-width: 1000px) {
  .topbar { flex-wrap: nowrap; }
  .js .menu-btn { display: none; }
  .nav, .js .nav {
    order: 0;
    position: static;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: clamp(14px, 1.7vw, 26px);
    width: auto;
    max-height: none;
    overflow: visible;
    margin-right: clamp(6px, 1.4vw, 22px);
    padding: 0;
    background: none;
    border: 0;
  }
  .js .nav a {
    padding-block: 6px;
    border: 0;
    color: var(--ash);
    font: 500 .9375rem/1.3 var(--text);
  }
  .js .nav a:hover { color: var(--ink); }
}

/* ---------- Shared small type ---------- */

.eyebrow, .tag, .edge {
  font: 600 .75rem/1.35 var(--text);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ash);
}

.edge {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-block: 10px;
  margin-bottom: clamp(28px, 4vw, 52px);
  border-block: 1px solid var(--rule);
}
.edge span:first-child { color: var(--ink); }
.edge span:last-child { text-align: right; }

.wing { padding: clamp(56px, 8vw, 112px) var(--gutter) 0; }

.wing-head {
  display: grid;
  gap: 16px;
  margin-bottom: clamp(28px, 4vw, 48px);
}
.wing-lead { color: var(--ash); max-width: 58ch; margin-top: 16px; }
.wing-head .wing-lead { margin-top: 0; }

@media (min-width: 1000px) {
  .wing-head {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    column-gap: clamp(32px, 5vw, 80px);
    align-items: end;
  }
}

/* ---------- The wax pencil ---------- */

.wax {
  position: absolute;
  top: -7px;
  left: -7px;
  width: calc(100% + 14px);
  height: calc(100% + 14px);
  overflow: visible;
  z-index: 3;
  fill: none;
  stroke: var(--lamp);
  pointer-events: none;
  --sweep: 360deg;
  -webkit-mask: conic-gradient(from -50deg, #000 var(--sweep), #0000 0);
  mask: conic-gradient(from -50deg, #000 var(--sweep), #0000 0);
  transition: --sweep .95s cubic-bezier(.55, .1, .35, 1);
}

.js .is-picked:not(.is-fixed) .wax,
.js [data-mark]:not(.is-fixed) .wax { --sweep: 0deg; }
.js .is-fixed .wax,
.js [data-mark].is-fixed .wax { transition-delay: .85s; }

.wax--hover,
.js .is-fixed .wax--hover { --sweep: 0deg; transition-delay: 0s; }
.fr:hover .wax--hover,
.js .fr.is-fixed:hover .wax--hover { --sweep: 360deg; transition-delay: 0s; }

.circled {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}
.circled .wax {
  top: -.3em;
  left: -.34em;
  width: calc(100% + .68em);
  height: calc(100% + .58em);
}

/* ---------- Developing: frames come up from dark ---------- */

.js [data-dev] {
  opacity: .1;
  filter: brightness(.18) contrast(1.3);
  transition: opacity 1.2s ease-out, filter 1.9s cubic-bezier(.22, .7, .2, 1);
  transition-delay: calc(var(--i, 0) * 140ms);
}
.js [data-dev].is-fixed { opacity: 1; filter: none; }

/* ---------- A frame on film ---------- */

.reel { display: flex; min-width: 0; }

.fr {
  position: relative;
  flex: var(--r, 1) 1 10px;
  min-width: 0;
}

.fr-film {
  display: flex;
  flex-direction: column;
  padding-inline: 5px;
  background: var(--plate);
}
.fr-film::before, .fr-film::after {
  content: "";
  flex: none;
  display: block;
  height: 16px;
  margin-inline: -5px;
  background: url(../images/perf.svg) center / 20px 12px round no-repeat;
}

.fr-img { position: relative; }

.shot {
  display: block;
  width: 100%;
  height: auto;
  transition: filter .3s;
}
.fr:hover .shot { filter: brightness(1.1); }

.fr-edge {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  padding: 5px 2px 0;
  color: var(--ash);
  font: 600 .6875rem/1.2 var(--text);
  letter-spacing: .05em;
  white-space: nowrap;
}
.fr-no { color: var(--ink); }
.is-picked .fr-no { color: var(--lamp); }

.fr figcaption { padding: 14px 10px 0 5px; }
.fr figcaption h3 { font-size: 1.1rem; }
.fr figcaption p { margin-top: 5px; color: var(--ash); font-size: .9rem; line-height: 1.45; }

/* Tones inside the drawn prints */
.k0 { fill: var(--ground); }
.k1 { fill: var(--plate); }
.k2 { fill: var(--rule); }
.k3 { fill: var(--ash); }
.k4 { fill: var(--ink); }
.r0 { stroke: var(--ground); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.r1 { stroke: var(--plate); stroke-width: 3; fill: none; }
.r2 { stroke: var(--rule); stroke-width: 1.4; }
.r3 { stroke: var(--ash); stroke-width: 1.2; }
.r4 { stroke: var(--ink); stroke-width: 1.2; }
.arm { stroke: var(--ash); stroke-width: 20; stroke-linecap: round; }
.sk { font-family: var(--display); font-weight: 800; }

/* ---------- Opening ---------- */

.opening {
  display: grid;
  gap: clamp(32px, 6vw, 44px);
  padding: clamp(32px, 5vw, 64px) 0 clamp(16px, 3vw, 32px) var(--gutter);
  overflow-x: hidden;
  overflow-x: clip;
}

.opening-text { padding-right: var(--gutter); min-width: 0; }
.opening h1 { margin-top: 16px; }

.opening-lead {
  margin-top: clamp(22px, 3vw, 34px);
  max-width: 24em;
  font: 700 clamp(1.25rem, 2.1vw, 1.8rem)/1.2 var(--display);
}
.opening-body { margin-top: 16px; max-width: 50ch; color: var(--ash); }

.opening-acts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
  margin-top: clamp(24px, 3vw, 34px);
}

.opening-roll { min-width: 0; display: grid; gap: 22px; }

.reel--tilt {
  max-width: 960px;
  margin-right: -14px;
  transform: rotate(-1.4deg);
  transform-origin: 0 50%;
}
.reel-tail {
  flex: 0 0 26px;
  justify-content: space-between;
  padding-inline: 0;
}
.reel-tail::before, .reel-tail::after { margin-inline: 0; }

.opening-facts { padding-right: var(--gutter); }
.roll-note { color: var(--ash); font-size: .9375rem; }

.log {
  display: flex;
  flex-wrap: wrap;
  gap: 12px clamp(20px, 3vw, 44px);
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
}
.log > div { display: flex; flex-direction: column-reverse; }
.log dd { font: 800 clamp(1.3rem, 2vw, 1.75rem)/1.1 var(--display); }
.log dt { margin-top: 3px; color: var(--ash); font-size: .875rem; }

@media (min-width: 1000px) {
  .opening {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr);
    column-gap: clamp(24px, 3.5vw, 56px);
    align-items: center;
    min-height: min(820px, calc(100vh - var(--bar)));
  }
  .opening-text { padding-right: 0; }
}

/* ---------- Frames: creative formats ---------- */

.frames-intro p { margin-top: 16px; color: var(--ash); max-width: 42ch; }

.frames-a, .frames-b { display: grid; gap: 26px; }
.frames-b { margin-top: clamp(32px, 4vw, 52px); }

.reel--scroll {
  --h: 300px;
  margin-inline: calc(var(--gutter) * -1);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scrollbar-color: var(--rule) transparent;
  scrollbar-width: thin;
  padding-bottom: 12px;
}
.reel--scroll .fr {
  flex: 0 0 calc(var(--r) * var(--h) + 10px);
  scroll-snap-align: start;
}

.reel--scroll .fr:first-child figcaption { padding-left: min(var(--gutter), 56px); }
.reel--scroll .fr:last-child figcaption { padding-right: min(var(--gutter), 56px); }

.frames-note p { color: var(--ash); max-width: 40ch; margin-bottom: 14px; }

@media (min-width: 1000px) {
  .frames-a {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    column-gap: clamp(24px, 3vw, 48px);
    align-items: start;
  }
  .frames-b {
    grid-template-columns: minmax(0, 9fr) minmax(0, 3fr);
    column-gap: clamp(24px, 3vw, 48px);
    align-items: end;
  }
  .reel--scroll {
    max-width: 1180px;
    margin-inline: 0;
    overflow: visible;
    padding-bottom: 0;
  }
  .reel--scroll .fr { flex: var(--r) 1 10px; }
  .reel--right { margin-right: calc(var(--gutter) * -1); }
  .reel--left { margin-left: calc(var(--gutter) * -1); }
  .reel--right .fr:first-child figcaption { padding-left: 5px; }
  .reel--left .fr:last-child figcaption { padding-right: 10px; }
}

/* ---------- Print line ---------- */

.lab-top { display: grid; gap: 28px; }

.spec > div {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  gap: 10px;
  padding-block: 12px;
  border-top: 1px solid var(--rule);
}
.spec > div:last-child { border-bottom: 1px solid var(--rule); }
.spec dt { padding-top: 3px; color: var(--ash); font-size: .875rem; }
.spec strong { display: block; font: 700 1.3rem/1.2 var(--display); }
.spec span { display: block; margin-top: 2px; color: var(--ash); font-size: .9375rem; line-height: 1.4; }

@media (min-width: 1000px) {
  .lab-top {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    column-gap: clamp(32px, 5vw, 80px);
    align-items: start;
  }
}

.line-head { margin-top: clamp(40px, 5vw, 64px); margin-bottom: 22px; }
.line-head p { margin-top: 8px; color: var(--ash); max-width: 62ch; }

/* The strip runs vertically on a phone, horizontally on a wide screen. */
.line {
  display: grid;
  gap: 5px;
  margin-inline: calc(var(--gutter) * -1);
  padding-inline: 20px;
  background:
    url(../images/perf-v.svg) 4px 0 / 12px 20px repeat-y,
    url(../images/perf-v.svg) calc(100% - 4px) 0 / 12px 20px repeat-y,
    var(--plate);
}

/* Each step of the line is one exposure lighter than the last. */
.cell {
  position: relative;
  padding: 16px clamp(14px, 1.5vw, 22px) 20px;
  background: var(--tone);
}
.cell:nth-child(1) { --tone: var(--ground); }
.cell:nth-child(2) { --tone: var(--step-1); }
.cell:nth-child(3) { --tone: var(--step-2); }
.cell:nth-child(4) { --tone: var(--step-3); }
.cell:nth-child(5) { --tone: var(--step-4); }

.cell-no { color: var(--ash); font: 600 .75rem/1.2 var(--text); letter-spacing: .05em; }
.cell.is-picked .cell-no { color: var(--ink); }
.cell h4 { margin: 12px 0 6px; }
.cell p { color: var(--ash); font-size: .9375rem; line-height: 1.45; }
.cell.is-picked p { color: var(--ink); }

@media (min-width: 900px) {
  .line {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    padding: 18px var(--gutter);
    background:
      url(../images/perf.svg) 0 3px / 20px 12px repeat-x,
      url(../images/perf.svg) 0 calc(100% - 3px) / 20px 12px repeat-x,
      var(--plate);
  }
  .cell h4 { margin-top: 32px; }
}

/* ---------- Frame counter (batch planner) ---------- */

.counter {
  --pad: clamp(18px, 3vw, 40px);
  display: grid;
  gap: 24px;
  margin-top: clamp(36px, 5vw, 64px);
  padding: var(--pad);
  background: var(--plate);
}
.counter h3 { margin-top: 6px; font-size: clamp(1.6rem, 3vw, 2.5rem); font-weight: 800; letter-spacing: -.015em; }
.counter-sub { margin-top: 6px; color: var(--ash); }

.counter-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px 32px;
}

.dial {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: clamp(12px, 2vw, 22px);
  padding: 12px 18px;
  background: var(--ground);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  font-family: var(--display);
  font-weight: 800;
}
.dial::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 50%;
  margin-left: -8px;
  border: 8px solid transparent;
  border-top: 10px solid var(--lamp);
  border-bottom: 0;
}
.dial-side { min-width: 2ch; color: var(--ash); font-size: 1.35rem; text-align: center; }
.dial-now { min-width: 2ch; font-size: clamp(3.2rem, 7vw, 5rem); line-height: 1; text-align: center; }

.film-run { --thumb: 32px; margin-inline: calc(var(--pad) * -1); }
.film-label { display: block; padding: 0 var(--pad) 10px; font-weight: 500; }

.rail {
  --rail-h: 84px;
  position: relative;
  height: var(--rail-h);
  background:
    url(../images/perf-dark.svg) 0 3px / 20px 12px repeat-x,
    url(../images/perf-dark.svg) 0 calc(100% - 3px) / 20px 12px repeat-x,
    var(--ground);
}

/* One cell per frame on wide screens, one per five frames on narrow. */
.rail-film {
  --cells: 12;
  position: absolute;
  inset: 18px calc(var(--thumb) / 2);
  border-right: 2px solid var(--ground);
  background:
    linear-gradient(90deg, var(--ground) 2px, transparent 2px) 0 0 / calc(100% / var(--cells)) 100%,
    linear-gradient(90deg, var(--rule), var(--ash)) 0 0 / calc(var(--p) * 100%) 100% no-repeat,
    var(--plate);
}
@media (min-width: 760px) {
  .rail-film { --cells: 60; }
}

.rail input[type="range"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  background: transparent;
  cursor: grab;
  touch-action: pan-y;
  -webkit-appearance: none;
  appearance: none;
}
.rail input[type="range"]:active { cursor: grabbing; }
.rail input[type="range"]:focus { outline: none; }

.rail input[type="range"]::-webkit-slider-runnable-track {
  height: var(--rail-h);
  background: transparent;
}
.rail input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  box-sizing: border-box;
  width: var(--thumb);
  height: var(--rail-h);
  background: var(--lamp-wash);
  border: 3px solid var(--lamp);
  border-radius: var(--radius);
}
.rail input[type="range"]::-moz-range-track {
  height: var(--rail-h);
  background: transparent;
}
.rail input[type="range"]::-moz-range-thumb {
  box-sizing: border-box;
  width: var(--thumb);
  height: var(--rail-h);
  background: var(--lamp-wash);
  border: 3px solid var(--lamp);
  border-radius: var(--radius);
}
.rail input[type="range"]:focus-visible::-webkit-slider-thumb {
  outline: 2px solid var(--ink);
  outline-offset: -6px;
}
.rail input[type="range"]:focus-visible::-moz-range-thumb {
  outline: 2px solid var(--ink);
  outline-offset: -6px;
}

.rail-marks {
  position: relative;
  height: 1.6em;
  margin: 6px calc(var(--thumb) / 2) 0;
  color: var(--ash);
  font-size: .8125rem;
}
.rail-marks span {
  position: absolute;
  left: calc(var(--x) * 100%);
  transform: translateX(-50%);
}

.tally { display: grid; gap: 14px; }
.tally > div { padding-top: 10px; border-top: 1px solid var(--rule); }
.tally dt { color: var(--ash); font-size: .875rem; }
.tally dd { margin-top: 3px; font: 700 clamp(1.1rem, 1.7vw, 1.4rem)/1.25 var(--display); }
.tally dd.tally-cost { color: var(--lamp); font-weight: 800; font-size: clamp(1.5rem, 2.6vw, 2.2rem); line-height: 1.1; }

.counter-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 28px;
}
.counter-foot p { color: var(--ash); font-size: .9375rem; max-width: 46ch; }

@media (min-width: 760px) {
  .tally { grid-template-columns: minmax(0, 2fr) minmax(0, 4fr) minmax(0, 3fr); column-gap: 24px; }
}

/* ---------- Test strips (playbooks) ---------- */

.tstrips { display: grid; gap: 8px; }

.tstrip {
  position: relative;
  display: grid;
  gap: 14px;
  padding: 20px 18px;
  border: 1px solid var(--rule);
  background: linear-gradient(90deg,
    var(--ground) 0 20%,
    var(--step-1) 20% 40%,
    var(--step-2) 40% 60%,
    var(--step-3) 60% 80%,
    var(--step-4) 80%);
}
.tstrip-no { color: var(--ash); font: 600 .75rem/1.2 var(--text); letter-spacing: .05em; }
.tstrip-num .tag { display: block; margin-bottom: 8px; letter-spacing: .08em; }
.tstrip-num b { font: 800 clamp(1.7rem, 3vw, 2.7rem)/1.1 var(--display); letter-spacing: -.015em; }
.tstrip-what p { margin-top: 3px; color: var(--ash); font-size: .9375rem; }
.tstrip .quiet { justify-self: start; }

@media (min-width: 900px) {
  .tstrip {
    grid-template-columns: 2.6rem minmax(0, 5fr) minmax(0, 5fr) auto;
    column-gap: clamp(16px, 2.4vw, 36px);
    align-items: center;
    padding: 24px clamp(18px, 2.4vw, 32px);
  }
  .tstrip .quiet { white-space: nowrap; }
}

/* ---------- Darkroom (services) ---------- */

.print {
  --pad: clamp(16px, 2.2vw, 30px);
  position: relative;
  padding: 0 var(--pad) var(--pad);
  background: var(--plate);
}
.print::before {
  content: "";
  display: block;
  height: 16px;
  margin-inline: calc(var(--pad) * -1);
  background: url(../images/perf.svg) center / 20px 12px round no-repeat;
}

.print-tag {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 8px 0 18px;
  color: var(--ash);
  font: 600 .75rem/1.3 var(--text);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.print-tag span:first-child { color: var(--ink); letter-spacing: .05em; }
.print h3 + p, .print h4 + p { margin-top: 10px; color: var(--ash); font-size: 1rem; }
.print .quiet { display: inline-block; margin-top: 14px; }

.prints { display: grid; gap: 10px; }

.chan { margin-top: 20px; }
.chan li {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 12px;
  padding-block: 10px;
  border-top: 1px solid var(--rule);
  align-items: baseline;
}
.chan b { font: 700 1.05rem/1.2 var(--display); }
.chan span { color: var(--ash); font-size: .9375rem; line-height: 1.35; }

.reads { margin-top: 16px; }
.reads > div {
  display: grid;
  grid-template-columns: 3.4rem minmax(0, 1fr);
  gap: 10px;
  padding-block: 9px;
  border-top: 1px solid var(--rule);
}
.reads dt { font: 700 1rem/1.35 var(--display); }
.reads dd { color: var(--ash); font-size: .9375rem; line-height: 1.4; }

@media (min-width: 1000px) {
  .prints { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .print--media { grid-column: 1 / span 6; grid-row: 1 / span 2; }
  .print--make, .print--read { grid-column: 7 / span 6; }
}

.trace-wrap { margin-top: clamp(44px, 6vw, 80px); }
.trace {
  margin: 24px 0 0 5px;
  border-left: 1px solid var(--rule);
}
.trace li { position: relative; padding: 0 0 22px 22px; }
.trace li:last-child { padding-bottom: 0; }
.trace li::before {
  content: "";
  position: absolute;
  left: -6px;
  top: .3em;
  width: 11px;
  height: 11px;
  background: var(--ash);
}
.trace li:last-child::before { background: var(--lamp); }
.trace p { margin-top: 5px; color: var(--ash); font-size: .9375rem; line-height: 1.45; }

@media (min-width: 900px) {
  .trace {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    column-gap: clamp(16px, 2vw, 28px);
    margin: 30px 0 0;
    border-left: 0;
    border-top: 1px solid var(--rule);
  }
  .trace li, .trace li:last-child { padding: 20px 0 0; }
  .trace li::before { left: 0; top: -6px; }
}

.stair-wrap { margin-top: clamp(44px, 6vw, 80px); }
.stair { display: grid; gap: 10px; margin-top: 22px; }

.ticks { margin-top: 16px; }
.ticks li {
  padding-block: 7px;
  border-top: 1px solid var(--rule);
  font-size: .9375rem;
  line-height: 1.35;
}

@media (min-width: 640px) {
  .stair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Each stage steps down from the one before. */
@media (min-width: 1160px) {
  .stair { grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: start; }
  .stair li:nth-child(2) { margin-top: 40px; }
  .stair li:nth-child(3) { margin-top: 80px; }
  .stair li:nth-child(4) { margin-top: 120px; }
}

.extras {
  display: grid;
  gap: 0 clamp(18px, 2.4vw, 32px);
  margin-top: clamp(44px, 6vw, 80px);
}
.extras-head, .extra {
  padding: 14px 0 26px;
  border-top: 1px solid var(--rule);
}
.extras-head p { margin-top: 8px; color: var(--ash); }
.extra-no { color: var(--ash); font: 600 .75rem/1.2 var(--text); letter-spacing: .05em; }
.extra h4 { margin-top: 10px; }
.extra p { margin-top: 6px; color: var(--ash); font-size: .9375rem; line-height: 1.45; }

@media (min-width: 640px) {
  .extras { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1160px) {
  .extras { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- Notes (about) ---------- */

.notes { display: grid; gap: 32px; }

.vow {
  display: grid;
  grid-template-columns: 2.8rem minmax(0, 1fr);
  gap: 10px;
  padding-block: 18px;
  border-top: 1px solid var(--rule);
}
.vow:last-child { border-bottom: 1px solid var(--rule); }
.vow-no { padding-top: .25em; color: var(--ash); font: 600 .75rem/1.4 var(--text); letter-spacing: .05em; }
.vow p { margin-top: 6px; color: var(--ash); }

@media (min-width: 1000px) {
  .notes {
    grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
    column-gap: clamp(32px, 5vw, 80px);
    align-items: start;
  }
}

/* ---------- Stock (platforms) ---------- */

.stock-row {
  display: grid;
  gap: 4px;
  padding-block: 14px;
  border-top: 1px solid var(--rule);
}
.stock-row:last-child { border-bottom: 1px solid var(--rule); }
.stock-kind { color: var(--ash); font-weight: 500; font-size: .9375rem; }
.stock-names {
  font: 800 clamp(1.6rem, 3.9vw, 3.6rem)/1.08 var(--display);
  letter-spacing: -.015em;
}
.stock-names i { font-style: normal; font-weight: 700; color: var(--ash); }

@media (min-width: 760px) {
  .stock-row {
    grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
    column-gap: 24px;
    align-items: baseline;
  }
}

/* ---------- Questions ---------- */

.askings { display: grid; gap: 28px; }

.ask { border-top: 1px solid var(--rule); }
.ask:last-child { border-bottom: 1px solid var(--rule); }

.ask summary {
  display: grid;
  grid-template-columns: 2.6rem minmax(0, 1fr) 16px;
  gap: 8px;
  align-items: baseline;
  padding-block: 16px;
  font: 700 clamp(1.05rem, 1.6vw, 1.25rem)/1.25 var(--display);
  list-style: none;
  cursor: pointer;
}
.ask summary::-webkit-details-marker { display: none; }
.ask summary:hover { color: var(--ash); }

.ask-no { color: var(--ash); font: 600 .75rem/1.4 var(--text); letter-spacing: .05em; }

.ask-sign { position: relative; align-self: center; width: 16px; height: 16px; color: var(--ink); transition: transform .25s, color .25s; }
.ask-sign::before, .ask-sign::after {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 16px;
  height: 2px;
  background: currentColor;
}
.ask-sign::after { transform: rotate(90deg); }
.ask[open] .ask-sign { color: var(--lamp); transform: rotate(45deg); }

.ask p { padding: 0 0 20px; max-width: 66ch; color: var(--ash); }

@media (min-width: 640px) {
  .ask p { padding-left: calc(2.6rem + 8px); }
}

@media (min-width: 1000px) {
  .askings {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    column-gap: clamp(32px, 5vw, 80px);
  }
}

/* ---------- Contact: the lab order ---------- */

.order { display: grid; gap: 34px; }

.order-facts { margin: 22px 0; }
.order-facts li {
  padding-block: 8px;
  border-top: 1px solid var(--rule);
  font-weight: 500;
}
.order-facts li:last-child { border-bottom: 1px solid var(--rule); }

.ticket {
  --pad: clamp(16px, 3vw, 36px);
  position: relative;
  min-width: 0;
  padding: 0 var(--pad) var(--pad);
  background: var(--plate);
}
.ticket::before {
  content: "";
  display: block;
  height: 16px;
  margin-inline: calc(var(--pad) * -1);
  background: url(../images/perf.svg) center / 20px 12px round no-repeat;
}

.ticket-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-block: 10px 14px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--rule);
}
.ticket-head span { color: var(--ash); font: 600 .75rem/1.2 var(--text); letter-spacing: .05em; }

/* Honeypot: off-screen, never display:none. */
.hp { position: absolute; left: -9999px; }

.slots { display: grid; gap: 16px; }
.slot { min-width: 0; }
.slot label { display: block; margin-bottom: 6px; font-weight: 500; font-size: .9375rem; }
.slot label span { margin-left: 4px; color: var(--ash); font-weight: 400; font-size: .8125rem; }

.slot input, .slot textarea {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 11px 12px;
  background: var(--ground);
  color: var(--ink);
  border: 1px solid var(--ash);
  border-radius: var(--radius);
  font: 400 1rem/1.4 var(--text);
  transition: border-color .15s;
}
.slot textarea { min-height: 128px; resize: vertical; }
.slot input:hover, .slot textarea:hover { border-color: var(--ink); }
.slot input:focus, .slot textarea:focus {
  outline: 2px solid var(--lamp);
  outline-offset: 0;
  border-color: var(--lamp);
}

@media (min-width: 640px) {
  .slots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .slot--wide { grid-column: 1 / -1; }
}

.ticket-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-top: 20px;
}
.ticket-promise { flex: 1 1 220px; color: var(--ash); font-size: .9375rem; line-height: 1.4; }

.form-status { min-height: 1.5em; margin-top: 14px; color: var(--lamp); font-weight: 500; }

.ticket-done {
  position: relative;
  margin: 14px 0 6px;
  padding: clamp(20px, 3vw, 32px);
}
.ticket-done:focus { outline: none; }
.ticket-done h4 { margin-top: 10px; font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 800; }
.ticket-done p:last-of-type { margin-top: 8px; color: var(--ash); }

@media (min-width: 1000px) {
  .order {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    column-gap: clamp(32px, 5vw, 80px);
    align-items: start;
  }
}

/* ---------- End of roll ---------- */

.tail { margin-top: clamp(64px, 9vw, 128px); }
.tail-perf {
  height: 18px;
  background: url(../images/perf.svg) 0 50% / 20px 12px repeat-x, var(--plate);
}
.tail-row {
  display: grid;
  gap: 24px;
  padding: 32px var(--gutter) 36px;
}
.tail-brand p { margin-top: 10px; max-width: 36ch; color: var(--ash); font-size: .9375rem; }
.tail-nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.tail-nav a {
  padding-block: 6px;
  color: var(--ash);
  font-size: .9375rem;
  text-decoration: none;
}
.tail-nav a:hover { color: var(--ink); }
.tail-end { color: var(--ash); font-size: .875rem; }
.tail-end b { color: var(--lamp); font-weight: 600; }

@media (min-width: 900px) {
  .tail-row {
    grid-template-columns: minmax(0, 4fr) minmax(0, 6fr) auto;
    column-gap: 40px;
    align-items: start;
  }
  .tail-nav { padding-top: 2px; }
}

/* ---------- Small phones and calm settings ---------- */

@media (max-width: 400px) {
  .btn { white-space: normal; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .js [data-dev] { opacity: 1; filter: none; }
}
