/* Thirdstop camera and deck pages. Scroll story over a sticky WebGL stage. The stage follows the theme; the product materials never change. */
:root { --stage-bg: radial-gradient(ellipse at 62% 38%, #26272b 0%, #121214 48%, #070708 100%); --stage-fg: #ededee; --stage-mut: #a4a4aa; --stage-dim: #5d5d63; --stage-rail: #3f3f44; --stage-line: #2a2a2e; --stage-floor: rgba(0,0,0,.45); --stage-floor-m: rgba(7,7,8,.92); }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) { --stage-bg: radial-gradient(ellipse at 62% 38%, #ffffff 0%, #ecebe7 52%, #dcdad5 100%); --stage-fg: #0a0a0b; --stage-mut: #5d5d63; --stage-dim: #8a8a90; --stage-rail: #b6b4ae; --stage-line: #d6d4cf; --stage-floor: rgba(120,116,108,.16); --stage-floor-m: rgba(236,235,231,.94); } }
:root[data-theme="light"] { --stage-bg: radial-gradient(ellipse at 62% 38%, #ffffff 0%, #ecebe7 52%, #dcdad5 100%); --stage-fg: #0a0a0b; --stage-mut: #5d5d63; --stage-dim: #8a8a90; --stage-rail: #b6b4ae; --stage-line: #d6d4cf; --stage-floor: rgba(120,116,108,.16); --stage-floor-m: rgba(236,235,231,.94); }

.story { position: relative; height: 820vh; }
.stage { position: sticky; top: 56px; height: calc(100vh - 56px); height: calc(100svh - 56px); overflow: hidden;
  background: var(--stage-bg); color: var(--stage-fg); }
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.stage-floor { position: absolute; inset: auto 0 0 0; height: 30%; pointer-events: none;
  background: linear-gradient(180deg, transparent, var(--stage-floor)); }
.stage .tiny { color: var(--stage-mut); }

/* Grain, 4 percent (material language) */
.stage::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .04; mix-blend-mode: overlay;
  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='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

.steps { position: absolute; left: var(--gut); top: 0; bottom: 0; width: min(440px, 40vw); pointer-events: none; }
.step { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-46%); opacity: 0;
  transition: opacity .7s ease, transform .9s cubic-bezier(.2,.7,.2,1); display: grid; gap: 16px; justify-items: start; }
.step.on { opacity: 1; transform: translateY(-50%); pointer-events: auto; }
.step h1 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(44px, 5.6vw, 84px); line-height: .95; letter-spacing: -.015em; }
.step h1 em { font-style: italic; color: var(--ember); }
.step h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 3.4vw, 52px); line-height: 1; letter-spacing: -.01em; }
.step p { margin: 0; color: var(--stage-mut); max-width: 40ch; font-size: 15.5px; }
.step .lead { font-size: 17px; }
.step .n { color: var(--stage-fg); margin-right: 8px; }
.step .arrow { border-color: var(--stage-fg); }
.step dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; margin: 6px 0 0; padding-top: 14px; border-top: 1px solid var(--stage-line); width: 100%; }
.step dt { font: 500 10.5px/1.6 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--stage-dim); }
.step dd { margin: 0; font-size: 13.5px; color: var(--stage-fg); }
.step dd.cool, .table .status.cool { color: var(--cool-text); }

.rail { position: absolute; right: var(--gutr); top: 50%; transform: translateY(-50%); list-style: none; margin: 0; padding: 0;
  display: grid; gap: 14px; font: 500 11px var(--mono); letter-spacing: .14em; color: var(--stage-rail); }
.rail li { position: relative; padding-right: 22px; transition: color .5s; }
.rail li::after { content: ""; position: absolute; right: 0; top: 50%; width: 12px; height: 1px; background: currentColor; transition: width .5s; }
.rail li.on { color: var(--stage-fg); }
.rail li.on::after { width: 18px; background: var(--ember); }

.callout { position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: 10px; pointer-events: none; opacity: 0;
  transition: opacity .5s; font: 500 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--stage-fg); white-space: nowrap; }
.callout::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 0 4px rgba(232,133,95,.18); }
.callout-n { color: var(--stage-mut); }
.callout.on { opacity: 1; }

.render-note { position: absolute; right: var(--gutr); bottom: 18px; margin: 0; font-size: 10px; }
.nogl { display: none; position: absolute; right: var(--gutr); bottom: 48px; max-width: 34ch; color: var(--stage-mut); font-size: 13px; margin: 0; }
.no-gl .nogl { display: block; }
.no-gl .story { height: auto; }
.no-gl .stage { position: relative; height: auto; padding: 60px 0 120px; }
.no-gl .steps { position: relative; width: auto; padding-right: var(--gutr); display: grid; gap: 64px; }
.no-gl .step { position: relative; top: auto; transform: none; opacity: 1; }
.no-gl .rail, .no-gl .callout { display: none; }

/* Where it's made */
.made { padding: 110px var(--gutr) 60px var(--gut); }
.table { display: grid; border-top: 1px solid var(--line); }
.tr { display: grid; grid-template-columns: 48px 1.1fr 2.2fr 1.4fr 1.8fr 1.1fr; gap: 18px; align-items: baseline;
  padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--mut); }
.tr b { color: var(--fg); font-weight: 500; }
.tr .n { font: 800 18px var(--dot); color: var(--ember); }
.th { font: 500 10.5px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); padding: 12px 0; }
.table .status.cool { color: var(--cool-text); border-color: color-mix(in srgb, var(--cool) 45%, transparent); }
.service .num { font-size: 26px; }
.fine { margin: 14px var(--gutr) 0 var(--gut); font-size: 12px; color: var(--dim); }

@media (max-width: 900px) {
  .tr { grid-template-columns: 40px 1fr 1fr; }
  .tr > :nth-child(4), .tr > :nth-child(5) { display: none; }
  .th > :nth-child(4), .th > :nth-child(5) { display: none; }
}
@media (max-width: 760px) {
  .steps { left: var(--gut); right: var(--gutr); width: auto; top: auto; bottom: 0; height: 52%; }
  .step { top: auto; bottom: 28px; transform: translateY(12px); gap: 10px; }
  .step.on { transform: none; }
  .step h1 { font-size: 40px; }
  .step h2 { font-size: 30px; }
  .step p { font-size: 14px; }
  .step dl { display: none; }
  .stage-floor { height: 62%; background: linear-gradient(180deg, transparent, var(--stage-floor-m) 55%); }
  .rail { top: 22px; transform: none; display: flex; gap: 10px; }
  .rail li { padding-right: 0; padding-bottom: 6px; }
  .rail li::after { top: auto; bottom: 0; left: 0; right: auto; width: 100%; }
  .rail li.on::after { width: 100%; }
  .render-note { bottom: auto; top: 50px; }
  .tr { grid-template-columns: 34px 1fr auto; }
  .tr > :nth-child(3), .th > :nth-child(3) { display: none; }
}
@media (prefers-reduced-motion: reduce) { .step { transition: none; } }

/* easter egg: the mirror-world TS-F1 (controls on the "wrong" side, kept on purpose) */
.foot .egg { flex-basis: 100%; color: var(--dim); }
.foot .egg summary { cursor: pointer; width: max-content; list-style: none; font: 500 10px var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.foot .egg summary::-webkit-details-marker { display: none; }
.foot .egg summary::before { content: "\25D0"; display: inline-block; margin-right: 8px; color: var(--ember); }
.foot .egg summary:hover { color: var(--fg); }
.foot .egg[open] summary::before { display: inline-block; transform: scaleX(-1); }
.foot .egg p { max-width: 560px; margin: 10px 0 0; color: var(--mut); }
