/* danielgol-lab — The Light Room.
   Apple's dark Pro-page grammar (black ground, SF Pro, #f5f5f7 text, #86868b
   secondary, blue #0071e3 action, 18px media radius, glass at
   saturate(180%) blur(20–30px)) with one idea on top: the light lives in the
   photograph, and you move it with your hand. */
:root {
  --bg: #000;
  --text: #f5f5f7;
  --grey: #86868b;
  --grey-2: #a1a1a6;
  --hair: rgba(255, 255, 255, 0.12);
  --glass: rgba(28, 28, 30, 0.72);
  --blue: #0071e3;
  --link: #2997ff;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(0.28, 0.11, 0.32, 1);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { font: 17px/1.47 var(--body); letter-spacing: -0.022em; -webkit-font-smoothing: antialiased; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; color: inherit; letter-spacing: inherit; }
[hidden] { display: none !important; }
.glass {
  /* visionOS-style glass: lit from above, a hairline catching the light. */
  background: linear-gradient(180deg, rgba(72, 72, 78, 0.42) 0%, rgba(30, 30, 34, 0.64) 100%);
  backdrop-filter: saturate(180%) blur(30px);
  -webkit-backdrop-filter: saturate(180%) blur(30px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), inset 0 -1px 0 rgba(0, 0, 0, 0.25);
}
/* The glass takes the photograph's colour, faintly, and changes with it. */
.dock.glass::before, .pop.glass::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1;
  background-color: rgba(var(--tint, 140, 140, 150), 0.16);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.4) 100%);
  mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.4) 100%);
  transition: background-color 0.9s var(--ease);
}
/* Its top edge catches the sun where the sun stands: a small light, moved by transform. */
.sunedge {
  position: absolute; left: 0; top: -1px; width: 64%; height: 52px; margin-left: -32%; z-index: -1; pointer-events: none;
  color: rgb(255, 236, 214); will-change: transform, opacity; transition: opacity 0.4s var(--ease);
  background:
    linear-gradient(90deg, transparent 0%, currentColor 50%, transparent 100%) top / 100% 1.5px no-repeat,
    radial-gradient(ellipse 50% 100% at 50% 0%, color-mix(in srgb, currentColor 30%, transparent), transparent 85%);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent);
}
.dock { overflow: hidden; }
.dock.glass, .pop.glass, .sheet.glass {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), inset 0 -1px 0 rgba(0, 0, 0, 0.3),
    0 2px 6px rgba(0, 0, 0, 0.35), 0 30px 80px rgba(0, 0, 0, 0.6);
}
/* A film grain finer than the eye resolves: it keeps the black from banding. */
:root {
  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .6 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}
.eyebrow { font: 600 17px/1.18 var(--body); color: var(--grey); margin: 0; }

/* ── Door ────────────────────────────────────────────────────────────────── */
.door {
  position: relative; min-height: 100vh; display: grid; place-items: center; padding: 64px 22px; text-align: center;
  background:
    radial-gradient(60% 50% at 50% 38%, rgba(255, 196, 140, 0.10), transparent 70%),
    radial-gradient(ellipse 40% 60% at 50% -10%, rgba(255, 255, 255, 0.07), transparent 70%),
    radial-gradient(130% 90% at 50% 20%, #141416 0%, #07070a 45%, #000 80%);
}
.door::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.045; background-image: var(--grain);
}
.door-inner { position: relative; z-index: 1; }
.door-inner { width: min(520px, 100%); display: grid; gap: 12px; justify-items: center; }
.door h1 { font: 600 64px/1.06 var(--display); letter-spacing: -0.009em; margin: 0; }
.door .sub { font: 600 24px/1.17 var(--display); color: var(--grey); margin: 0 0 26px; }
.field { position: relative; width: 100%; max-width: 380px; }
.field input {
  width: 100%; height: 56px; border-radius: 12px; border: 1px solid #424245; background: rgba(255, 255, 255, 0.04);
  padding: 18px 56px 0 16px; font: 17px var(--body); letter-spacing: -0.022em; color: var(--text);
}
.field input:focus { outline: none; border-color: var(--link); box-shadow: 0 0 0 4px rgba(41, 151, 255, 0.25); }
.field label {
  position: absolute; left: 17px; top: 17px; font-size: 17px; color: var(--grey); pointer-events: none;
  transition: transform 0.2s var(--ease), font-size 0.2s var(--ease); transform-origin: left top;
}
.field input:focus + label, .field input:not(:placeholder-shown) + label { transform: translateY(-10px); font-size: 12px; }
.field .go {
  position: absolute; right: 12px; top: 12px; width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid #6e6e73; background: transparent; display: grid; place-items: center; cursor: pointer; color: var(--grey-2);
}
.field .go:hover { border-color: var(--text); color: var(--text); }
.door .msg { min-height: 1.5em; font-size: 14px; color: var(--grey); margin: 8px 0 0; }
.door .msg.bad { color: #ff6961; }
.door .back { font-size: 14px; margin-top: 20px; }

/* ── The room ────────────────────────────────────────────────────────────── */
.room {
  position: relative; min-height: 100vh; min-height: 100svh; overflow: clip;
  background: radial-gradient(130% 90% at 50% 12%, #151517 0%, #08080a 42%, #000 80%);
}
/* Depth: a light falling from above, a floor that catches it, grain, and a vignette. */
.depth { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.depth .spot {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 30% 55% at 50% -10%, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.012) 55%, transparent 75%);
}
.depth .floor {
  position: absolute; left: 0; right: 0; bottom: 0; height: 42%;
  background:
    radial-gradient(ellipse 46% 16% at 50% 8%, rgba(255, 255, 255, 0.05), transparent 70%),
    linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.012) 20%, transparent 60%);
}
.depth .grain {
  position: absolute; inset: 0; opacity: 0.06; background-image: var(--grain);
}
/* Grain in the glow too: the ambilight reads as light in air, not a gradient. */
.frame::after {
  content: ""; position: absolute; left: -26%; top: -18%; width: 152%; height: 136%; z-index: 0; pointer-events: none;
  background-image: var(--grain); opacity: 0.07;
  -webkit-mask-image: radial-gradient(closest-side, #000 58%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 58%, transparent 100%);
}
@keyframes grain-shift {
  0% { transform: translate(0, 0); } 12% { transform: translate(-30px, 18px); } 25% { transform: translate(20px, -36px); }
  37% { transform: translate(-40px, -10px); } 50% { transform: translate(34px, 28px); } 62% { transform: translate(-14px, 40px); }
  75% { transform: translate(42px, -22px); } 87% { transform: translate(-24px, -38px); } 100% { transform: translate(0, 0); }
}
@keyframes grain-breathe { from { opacity: 0.045; } to { opacity: 0.08; } }
.depth::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 100% at 50% 42%, transparent 52%, rgba(0, 0, 0, 0.78) 100%);
}
/* The room is lit from the light's side: one soft disc, moved by transform. */
.glow {
  position: fixed; left: 0; top: 0; z-index: 0; pointer-events: none; color: rgb(255, 220, 180);
  width: 90vmax; height: 90vmax; margin: -45vmax 0 0 -45vmax; border-radius: 50%;
  background: radial-gradient(closest-side, currentColor, transparent);
  opacity: 0.18; will-change: transform, opacity;
  transition: opacity 0.4s var(--ease), color 0.4s linear;
}
.topbar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 5; height: 52px;
  display: flex; align-items: center; justify-content: space-between; padding: 0 22px; font-size: 12px;
}
.topbar a { color: var(--text); opacity: 0.85; }
.topbar .right { display: flex; gap: 18px; align-items: center; color: var(--grey); }
.topbar button { background: none; border: 0; padding: 0; color: var(--link); cursor: pointer; font-size: 12px; }

.intro { position: absolute; top: 76px; left: 32px; z-index: 4; max-width: 300px; transition: opacity 0.8s var(--ease); }
.intro h1 { font: 600 40px/1.1 var(--display); margin: 6px 0 0; letter-spacing: 0; }
.intro p { color: var(--grey-2); font-size: 17px; margin: 12px 0 0; }
.room.touched .intro p { opacity: 0; transition: opacity 0.8s var(--ease); }
/* The headline is lit by the same light as the photograph. */
.intro h1 {
  background: radial-gradient(circle 560px at var(--tx, 80%) var(--ty, 50%), rgb(var(--tc, 255, 236, 214)) 0%, #f5f5f7 30%, #c7c7cc 66%, #8e8e93 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.stage-area { position: relative; z-index: 1; height: 100vh; height: 100svh; display: grid; place-items: center; padding: 60px 0 170px; }
.frame { position: relative; height: min(100%, 78vh); aspect-ratio: var(--ar, 4 / 5); max-width: calc(100vw - 32px); }
/* Beside the filmstrip a wide photograph must leave it room. */
@media (min-width: 835px) { .frame { max-width: calc(100vw - 240px); } }
/* Ambilight: the photograph's own colours, spilling into the room. */
.ambi {
  position: absolute; left: -26%; top: -18%; width: 152%; height: 136%; z-index: 0; pointer-events: none;
  filter: blur(56px) saturate(2.4) brightness(1.05); opacity: 0.8; transition: opacity 0.8s var(--ease);
  /* Strongest at the frame, gone well before the walls: the black stays black. */
  -webkit-mask-image: radial-gradient(closest-side, #000 58%, rgba(0, 0, 0, 0.35) 80%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 58%, rgba(0, 0, 0, 0.35) 80%, transparent 100%);
}
.stage {
  position: relative; z-index: 1; width: 100%; height: 100%;
  border-radius: 18px; overflow: hidden; background: #111; touch-action: none; cursor: default;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.45), 0 80px 160px rgba(0, 0, 0, 0.45);
  /* A polished black floor. */
  -webkit-box-reflect: below 16px linear-gradient(180deg, transparent 0%, transparent 74%, rgba(255, 255, 255, 0.14) 100%);
}
/* The frame's shadow, falling away from the light: blurred once, then only moved. */
.cast {
  position: absolute; left: 6%; right: 6%; top: 8%; bottom: 0; z-index: 0; pointer-events: none;
  border-radius: 24px; background: rgba(0, 0, 0, 0.78); filter: blur(44px); will-change: transform;
}
.stage::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 4;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.stage .orbit { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: 0; transition: opacity 0.4s var(--ease); }
.stage:hover .orbit, .stage.dragging .orbit { opacity: 1; }
.orb {
  position: absolute; left: 0; top: 0; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%;
  cursor: grab; touch-action: none; border: 0; padding: 0; background: transparent; z-index: 3;
  transition: opacity 0.3s var(--ease); will-change: transform;
}
.orb:active { cursor: grabbing; }
.orb:focus-visible { outline: 3px solid var(--link); outline-offset: 4px; }
.orb .halo { position: absolute; inset: -18px; border-radius: 50%; background: radial-gradient(circle, var(--oc, #ffd9b0) 0%, transparent 62%); opacity: 0.85; }
.orb .core {
  position: absolute; inset: 20px; border-radius: 50%; background: #fff;
  box-shadow: 0 0 18px 6px var(--oc, #ffd9b0), 0 0 2px 1px rgba(255, 255, 255, 0.9);
}
.orb .ring { position: absolute; inset: 4px; transform: rotate(-90deg); }
.orb .ring circle { fill: none; stroke: rgba(255, 255, 255, 0.95); stroke-width: 2; stroke-linecap: round; transition: stroke-dashoffset 0.9s linear; }
.orb.behind { opacity: 0.55; }
.stage.busy .orb .core { animation: breathe 1.6s ease-in-out infinite; }
@keyframes breathe { 50% { box-shadow: 0 0 30px 12px var(--oc, #ffd9b0), 0 0 2px 1px #fff; } }
.nowlight {
  position: absolute; left: 0; top: 0; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; z-index: 2;
  border: 1.5px dashed rgba(255, 255, 255, 0.7); pointer-events: none; transition: opacity 0.4s var(--ease);
}
.nowlight span {
  position: absolute; top: 40px; left: 50%; transform: translateX(-50%); white-space: nowrap;
  font-size: 11px; font-weight: 600; color: rgba(255, 255, 255, 0.85); text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}
.nowlight.behind { opacity: 0.5; }
.stage.showing-result .nowlight { opacity: 0; }
.hint-chip {
  position: absolute; top: 14px; left: 50%; transform: translateX(-50%); z-index: 4; white-space: nowrap;
  padding: 6px 12px; border-radius: 980px; font-size: 12px; color: var(--text); pointer-events: none;
  transition: opacity 0.4s var(--ease);
}
.sketch-tag { position: absolute; left: 14px; bottom: 14px; z-index: 4; padding: 5px 10px; border-radius: 980px; font-size: 12px; color: var(--grey-2); pointer-events: none; }

/* Frames: a quiet filmstrip */
.frames { position: absolute; z-index: 4; left: 28px; top: 50%; transform: translateY(-50%); display: grid; gap: 10px; }
.frames button {
  width: 52px; aspect-ratio: 4 / 5; padding: 0; border-radius: 10px; overflow: hidden; cursor: pointer;
  border: 0; opacity: 0.45; outline: 1px solid var(--hair); transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.frames button:hover { opacity: 0.8; }
.frames button[aria-pressed="true"] { opacity: 1; outline: 2px solid var(--text); outline-offset: 2px; transform: scale(1.04); }
.frames img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Your own photograph */
.frames .add {
  display: grid; place-items: center; opacity: 0.75; background: rgba(255, 255, 255, 0.04);
  outline: 1px dashed rgba(255, 255, 255, 0.35); font: 300 26px/1 var(--display); color: var(--text);
}
.frames .add:hover { opacity: 1; background: rgba(255, 255, 255, 0.08); }
.drop-chip {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(0.96); z-index: 5;
  padding: 10px 16px; border-radius: 980px; font-size: 14px; font-weight: 500; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.room.dropping .drop-chip { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.room.dropping .stage { outline: 2px solid rgba(255, 255, 255, 0.55); outline-offset: 6px; }
.stage.reading .orb, .stage.reading .nowlight, .stage.reading .hint-chip { opacity: 0 !important; pointer-events: none; }

/* The dock */
.dock {
  position: absolute; z-index: 5; left: 50%; bottom: 24px; transform: translateX(-50%);
  width: min(780px, calc(100vw - 24px)); border-radius: 22px; padding: 16px 18px 14px; display: grid; gap: 12px;
  grid-template-columns: minmax(0, 1fr);
}
.status { font-size: 12px; color: var(--grey-2); display: flex; justify-content: space-between; gap: 12px; min-height: 16px; }
.status .live { color: var(--text); font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.status .live.bad { color: #ff6961; }
.status .quota { flex: none; }

.day { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; }
.day .lbl { font-size: 12px; color: var(--grey); width: 52px; }
.day .time { font-size: 14px; font-weight: 600; min-width: 150px; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.day input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; margin: 0; cursor: pointer; }
.day input[type="range"]::-webkit-slider-runnable-track {
  height: 6px; border-radius: 3px;
  background: linear-gradient(90deg, #6b4a8a 0%, #ff9b54 12%, #ffd8a8 30%, #f4f6ff 50%, #ffe2b8 70%, #ff8a3d 88%, #4a3a78 100%);
}
.day input[type="range"]::-moz-range-track {
  height: 6px; border-radius: 3px;
  background: linear-gradient(90deg, #6b4a8a 0%, #ff9b54 12%, #ffd8a8 30%, #f4f6ff 50%, #ffe2b8 70%, #ff8a3d 88%, #4a3a78 100%);
}
.day input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 26px; height: 26px; margin-top: -10px; border-radius: 50%; background: #fff;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.12), 0 4px 14px rgba(0, 0, 0, 0.5);
}
.day input[type="range"]::-moz-range-thumb { width: 26px; height: 26px; border: 0; border-radius: 50%; background: #fff; }
.day input[type="range"]:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; border-radius: 8px; }
.day.off .time { color: var(--grey); }

.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.panel { min-height: 36px; display: flex; align-items: center; }
.panel > .day { width: 100%; }
.tabs { width: 300px; flex: none; }
.tabs button { padding: 7px 8px; }
@media (max-width: 480px) { .tabs { width: 100%; } }
.chip {
  border: 1px solid var(--hair); background: rgba(255, 255, 255, 0.06); border-radius: 980px;
  padding: 7px 14px; font-size: 14px; cursor: pointer; color: var(--text); transition: background 0.2s var(--ease);
}
.chip:hover { background: rgba(255, 255, 255, 0.12); }
.chip[aria-pressed="true"] { background: var(--text); color: #000; border-color: var(--text); }
.chip.ghost { color: var(--grey-2); }
.chip.ghost[aria-pressed="true"] { color: #000; }
.spacer { flex: 1; }
.btn {
  border: 0; border-radius: 980px; background: var(--blue); color: #fff; font-size: 17px; padding: 10px 26px; cursor: pointer;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn:hover { background: #0077ed; }
.btn:active { transform: scale(0.97); }
.btn:disabled { background: #333336; color: var(--grey); cursor: default; transform: none; }
.btn:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; }

/* Character popover */
.pop {
  position: absolute; z-index: 6; left: 50%; bottom: calc(24px + var(--dock-h, 140px) + 12px); transform: translateX(-50%);
  width: min(560px, calc(100vw - 24px)); border-radius: 22px; padding: 18px; display: grid; gap: 16px;
}
.pop h3 { margin: 0; font: 600 14px var(--body); color: var(--grey); }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 2px; border-radius: 9px; background: rgba(118, 118, 128, 0.24); }
.seg button { border: 0; background: transparent; padding: 6px 8px; border-radius: 7px; font-size: 13px; cursor: pointer; color: var(--text); }
.seg button[aria-pressed="true"] { background: #636366; box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12); }
.mini { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mini label { display: grid; gap: 6px; font-size: 13px; color: var(--grey-2); }
.mini input[type="range"] { width: 100%; accent-color: var(--text); }
.kelvin-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; font-size: 13px; color: var(--grey-2); }
.kelvin-row input { width: 100%; accent-color: var(--text); }
.switch-row { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--grey-2); }
.switch { position: relative; width: 51px; height: 31px; flex: none; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.switch span { position: absolute; inset: 0; border-radius: 31px; background: rgba(120, 120, 128, 0.32); transition: background 0.25s var(--ease); pointer-events: none; }
.switch span::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15); transition: transform 0.25s var(--ease);
}
.switch input:checked + span { background: #30d158; }
.switch input:checked + span::after { transform: translateX(20px); }

/* How it was made — a sheet */
.sheet {
  position: fixed; z-index: 8; top: 12px; right: 12px; bottom: 12px; width: min(420px, calc(100vw - 24px));
  border-radius: 22px; padding: 22px 22px 18px; overflow: auto;
  transform: translateX(calc(100% + 24px)); transition: transform 0.5s var(--ease);
}
.sheet.open { transform: none; }
.sheet h2 { font: 600 24px/1.17 var(--display); margin: 0 0 4px; }
.sheet > p { font-size: 14px; color: var(--grey-2); margin: 0 0 14px; }
.sheet .close { position: absolute; top: 16px; right: 16px; width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(118, 118, 128, 0.24); cursor: pointer; color: var(--grey-2); }
.steps { list-style: none; margin: 0; padding: 0; }
.steps li { display: grid; grid-template-columns: 22px 1fr; gap: 2px 12px; padding: 12px 0; border-top: 1px solid var(--hair); }
.steps li:first-child { border-top: 0; }
.steps .ic { grid-row: span 2; width: 20px; height: 20px; margin-top: 1px; display: grid; place-items: center; }
.steps .ic::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #48484a; }
.steps li.active .ic::before { width: 14px; height: 14px; background: none; border: 2px solid rgba(255,255,255,.18); border-top-color: var(--text); animation: spin 0.8s linear infinite; }
.steps li.done .ic::before {
  width: 20px; height: 20px; background: var(--text)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.3l3 3 6-6.6' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/20px no-repeat;
}
.steps li.failed .ic::before { width: 20px; height: 20px; background: #ff453a; }
.steps .t { font-size: 14px; font-weight: 600; color: var(--grey); }
.steps li.done .t, .steps li.active .t { color: var(--text); }
.steps .d { font-size: 12px; color: var(--grey-2); word-break: break-word; font-variant-numeric: tabular-nums; }
.sheet details { border-top: 1px solid var(--hair); padding: 12px 0; }
.sheet summary { cursor: pointer; font-size: 14px; color: var(--link); }
.sheet pre { white-space: pre-wrap; font: 11px/1.55 ui-monospace, "SF Mono", Menlo, monospace; color: var(--grey-2); margin: 12px 0 0; }
.sheet .empty { font-size: 14px; color: var(--grey); }
@keyframes spin { to { transform: rotate(360deg); } }

/* Below 1200px there is no room beside the photograph: the intro sits above it. */
@media (max-width: 1199px) {
  .intro { left: 0; right: 0; top: 50px; max-width: none; text-align: center; padding: 0 22px; }
  .intro h1 { font-size: 28px; margin-top: 2px; }
  .intro .eyebrow { font-size: 14px; }
  .intro p { display: none; }
  .stage-area { padding-top: 132px; }
  .room.touched .stage-area { padding-top: 132px; }
}
/* ── The opening: dark, the light ignites, the photograph is painted in ── */
.topbar, .intro, .frames, .dock { transition: opacity 1.2s var(--ease), filter 1.2s var(--ease); }
.intro { transition-delay: 0.05s; }
.frames { transition-delay: 0.25s; }
.dock { transition-delay: 0.4s; }
.topbar { transition-delay: 0.6s; }
.room.opening .topbar, .room.opening .intro, .room.opening .frames, .room.opening .dock { opacity: 0; filter: blur(8px); pointer-events: none; }
.room.opening .ambi, .room.opening .frame::after { opacity: 0; }
.room.opening .stage { background: #000; }
.room.opening #gl { visibility: hidden; }
.room.opening .nowlight, .room.opening .hint-chip, .room.opening .sketch-tag { opacity: 0; }
.room.opening .orb:not(.ignite) { opacity: 0; }
.orb.ignite .core { animation: ignite-core 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.orb.ignite .halo { animation: ignite-halo 1.4s ease-out both; }
@keyframes ignite-core {
  0% { transform: scale(0); }
  55% { transform: scale(1.35); box-shadow: 0 0 70px 34px var(--oc, #ffd9b0), 0 0 2px 1px #fff; }
  100% { transform: scale(1); }
}
@keyframes ignite-halo { 0% { transform: scale(0); opacity: 0; } 40% { transform: scale(2.6); opacity: 1; } 100% { transform: scale(1); opacity: 0.85; } }

@media (max-width: 834px) {
  .frames { left: 50%; top: auto; bottom: calc(24px + var(--dock-h, 170px) + 12px); transform: translateX(-50%); grid-auto-flow: column; }
  .frames button { width: 40px; }
  .stage-area { padding: 120px 0 calc(var(--dock-h, 170px) + 96px); }
  .door h1 { font-size: 44px; }
  .day .time { min-width: 0; }
}
@media (max-width: 640px) {
  /* a tool's top bar on a phone: the way back and the sheet, on one line */
  .room .topbar { padding: 0 14px; }
  .room .topbar #who { display: none; }
  .topbar a, .topbar button { white-space: nowrap; }
}
@media (max-width: 834px) {
  /* the filmstrip sits along the photograph's foot here: the preview tag goes to its head */
  .room:not(.colour) .sketch-tag { bottom: auto; top: 14px; }
}
@media (max-width: 480px) {
  .status .live { white-space: normal; }
  .status { flex-direction: column; gap: 2px; }
  .day { grid-template-columns: minmax(0, 1fr) auto; }
  .day .lbl { display: none; }
  .dock { padding: 14px 14px 12px; }
  .btn { padding: 10px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* ── The Instrument: the tools, one page ─────────────────────────────────── */
.hub {
  position: relative; min-height: 100vh; overflow: clip; padding: 0 0 80px;
  background: radial-gradient(130% 90% at 50% 0%, #151517 0%, #08080a 42%, #000 80%);
}
.hub .topbar { position: relative; }
.hub-head { position: relative; z-index: 1; max-width: 1080px; margin: 0 auto; padding: 72px 22px 48px; text-align: center; }
.hub-head h1 { font: 600 64px/1.06 var(--display); letter-spacing: -0.009em; margin: 6px 0 0; }
.hub-head .sub { font: 600 24px/1.25 var(--display); color: var(--grey); max-width: 640px; margin: 14px auto 0; }
.tiles {
  position: relative; z-index: 1; max-width: 1080px; margin: 0 auto; padding: 0 22px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.tile {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 300px;
  border-radius: 28px; overflow: hidden; color: var(--text); text-decoration: none;
  background: linear-gradient(180deg, #161618, #0e0e10); border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
a.tile:hover { text-decoration: none; transform: translateY(-4px); box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 30px 80px rgba(0, 0, 0, 0.6); }
.tile.hero { grid-column: span 3; min-height: 560px; flex-direction: row; align-items: stretch; }
.tile-media { position: relative; flex: 1.25; min-height: 100%; overflow: hidden; }
.tile-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile-media .after { animation: tile-swap 7s ease-in-out infinite; }
@keyframes tile-swap { 0%, 38% { opacity: 0; } 50%, 88% { opacity: 1; } 100% { opacity: 0; } }
.tile-orb {
  position: absolute; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; background: #fff;
  box-shadow: 0 0 22px 8px rgba(255, 214, 170, 0.9); left: 18%; top: 50%;
  animation: tile-orb 7s ease-in-out infinite;
}
@keyframes tile-orb { 0%, 38% { transform: translate(260%, -260%); opacity: 0.7; } 50%, 88% { transform: translate(0, 0); opacity: 1; } 100% { transform: translate(260%, -260%); opacity: 0.7; } }
.tile-text { position: relative; padding: 28px; display: grid; gap: 10px; align-content: end; }
.tile.hero .tile-text { flex: 1; align-content: center; padding: 48px; }
.tile h2 { font: 600 28px/1.14 var(--display); margin: 0; }
.tile.hero h2 { font-size: 48px; }
.tile p { margin: 0; color: var(--grey-2); font-size: 17px; }
.tile.hero p { font-size: 21px; color: var(--text); opacity: 0.86; max-width: 380px; }
.tile .open { color: var(--link); font-size: 17px; margin-top: 8px; }
.badge {
  justify-self: start; font-size: 12px; font-weight: 600; letter-spacing: 0.02em; padding: 4px 10px; border-radius: 980px;
  background: rgba(255, 255, 255, 0.08); color: var(--grey-2);
}
.badge.live { background: rgba(48, 209, 88, 0.16); color: #30d158; }
.tile.soon { opacity: 0.72; }
.hub-foot { position: relative; z-index: 1; text-align: center; color: var(--grey); font: italic 17px var(--body); margin: 64px 0 0; }
.topbar .back { color: var(--text); opacity: 0.85; }
@media (max-width: 834px) {
  .tiles { grid-template-columns: 1fr 1fr; }
  .tile.hero { grid-column: span 2; flex-direction: column; min-height: 0; }
  .tile.hero .tile-media { min-height: 420px; }
  .tile.hero .tile-text { padding: 28px; }
  .tile.hero h2 { font-size: 36px; }
  .hub-head h1 { font-size: 44px; }
}
@media (max-width: 480px) {
  .tiles { grid-template-columns: 1fr; }
  .tile.hero { grid-column: span 1; }
  .hub-head h1 { font-size: 36px; }
  .hub-head .sub { font-size: 19px; }
}

/* ── Colour correction — the app's Colour panel (OcmFixer + TonePanel), in the room ── */
.bench { --imgw: min(calc((100svh - 282px) / 1.5), 560px); position: relative; z-index: 1; max-width: 1480px; margin: 0 auto; padding: 56px 28px 24px; }
.bench-head { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; max-width: calc(var(--imgw) * 2 + 328px); margin: 0 auto 14px; }
.bench-title { min-width: 0; flex: 1 1 300px; }
/* The headline: white. */
@property --hl { syntax: "<color>"; inherits: true; initial-value: rgb(255, 236, 214); }
.room.colour { transition: --hl 0.9s var(--ease); }
.bench-title h1 {
  font: 600 40px/1.1 var(--display); letter-spacing: 0; margin: 6px 0 0;
  color: #fff;
}
/* The room carries the chosen colour, faintly: one soft light behind the bench. */
.huelight {
  position: fixed; left: 50%; top: 46%; width: 120vmax; height: 80vmax; margin: -40vmax 0 0 -60vmax; z-index: 0; pointer-events: none;
  border-radius: 50%; background: radial-gradient(closest-side, currentColor, transparent); color: rgb(255, 236, 214);
  opacity: 0.07; transition: color 0.9s var(--ease);
}
.bench-grid { position: relative; }
.flow { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 6; pointer-events: none; }

/* The loupe: the packshot's colour and the shot's, side by side, where you look. */
.loupe {
  position: absolute; left: 0; top: 0; z-index: 7; width: 168px; height: 168px; margin: -84px 0 0 -84px; border-radius: 50%;
  pointer-events: none; opacity: 0; transition: opacity 0.18s var(--ease);
}
.loupe.on { opacity: 1; }
/* the lens itself is drawn by the GPU (colour-gl.js); this layer only carries its words */
.loupe canvas { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; }
.loupe-truth { position: absolute; left: 0; top: 0; bottom: 0; width: 50%; border-radius: 84px 0 0 84px; transition: background 0.3s var(--ease); box-shadow: inset 6px 0 18px rgba(0, 0, 0, 0.12); }
.loupe-seam { position: absolute; left: 50%; top: 10%; bottom: 10%; width: 1px; margin-left: -0.5px; background: rgba(255, 255, 255, 0.85); box-shadow: 0 0 6px rgba(0, 0, 0, 0.3); }
.loupe-k { position: absolute; bottom: 28px; width: 50%; text-align: center; font-size: 9px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255, 255, 255, 0.92); text-shadow: 0 1px 4px rgba(0, 0, 0, 0.55); }
.loupe-k.l { left: 4px; }
.loupe-k.r { right: 4px; }
.loupe-cap {
  position: absolute; left: 50%; top: calc(100% + 12px); transform: translateX(-50%); white-space: nowrap; text-align: center;
  padding: 6px 12px; border-radius: 980px; font-size: 12px; line-height: 1.3; color: rgba(255, 255, 255, 0.92);
  background: rgba(10, 10, 12, 0.62); backdrop-filter: blur(16px) saturate(170%); -webkit-backdrop-filter: blur(16px) saturate(170%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}
.loupe-cap b { font-weight: 600; margin-right: 6px; }
.loupe-cap span { color: rgba(255, 255, 255, 0.62); font-variant-numeric: tabular-nums; }
.room.colour .stage { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22'%3E%3Ccircle cx='11' cy='11' r='5' fill='none' stroke='white' stroke-width='1.5'/%3E%3Ccircle cx='11' cy='11' r='6.5' fill='none' stroke='rgba(0,0,0,.35)' stroke-width='1'/%3E%3C/svg%3E") 11 11, crosshair; }
.stage.holding + .loupe { opacity: 0; }
.bench-title .sub { margin: 8px 0 0; font-size: 14px; color: var(--grey); }
.room.colour .frames.inline { position: static; transform: none; display: flex; gap: 8px; padding: 3px; }
.room.colour .frames.inline button { width: 34px; border-radius: 8px; }
.room.colour .frames.inline .add { font-size: 20px; }
.bench-actions { display: flex; gap: 10px; align-items: center; margin-left: auto; }
.bench-grid {
  display: grid; grid-template-columns: minmax(0, var(--imgw)) minmax(0, var(--imgw)) 280px;
  justify-content: center; gap: 16px 24px; align-items: stretch;
}
.fig { margin: 0; display: grid; gap: 10px; align-content: start; min-width: 0; }
.fig figcaption { font-size: 12px; font-weight: 600; letter-spacing: 0.02em; color: var(--grey); }
.media { position: relative; aspect-ratio: var(--ar, 2 / 3); }
/* Each picture floats: its own light spills into the room, a polished floor below. */
.ambi-img {
  position: absolute; left: -26%; top: -18%; width: 152%; height: 136%; z-index: 0; pointer-events: none; object-fit: cover;
  filter: blur(56px) saturate(2.4) brightness(1.05); opacity: 0.55; transition: opacity 0.8s var(--ease);
  -webkit-mask-image: radial-gradient(closest-side, #000 58%, rgba(0, 0, 0, 0.35) 80%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 58%, rgba(0, 0, 0, 0.35) 80%, transparent 100%);
}
.ambi-img:not([src]) { display: none; }
.pack-inner {
  position: absolute; inset: 0; z-index: 1; border-radius: 18px; overflow: hidden; background: #eee; transition: background 0.5s var(--ease);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.45), 0 80px 160px rgba(0, 0, 0, 0.45);
  -webkit-box-reflect: below 16px linear-gradient(180deg, transparent 0%, transparent 74%, rgba(255, 255, 255, 0.14) 100%);
}
.pack-inner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; }
.pack-inner img.over { opacity: 0; transition: opacity 0.38s var(--ease); }
.pack-inner img.over.on { opacity: 1; }
.room.colour .ambi { opacity: 0.7; }
.room.colour .hint-chip { transition: opacity 0.6s var(--ease); }
.room.colour .hint-chip.gone { opacity: 0; }
.stage.develop #gl { animation: develop 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
@keyframes develop { from { opacity: 0; filter: blur(14px) brightness(0.5) saturate(0.4); } to { opacity: 1; filter: none; } }
.stage.busy { cursor: progress; }
.room.colour.opening .bench-head, .room.colour.opening .tone, .room.colour.opening .note, .room.colour.opening .fig figcaption { opacity: 0; filter: blur(8px); }
.bench-head, .tone, .note, .fig figcaption { transition: opacity 1.2s var(--ease), filter 1.2s var(--ease); }
.tone { transition-delay: 0.25s; }
.note { transition-delay: 0.4s; }

/* The panel beside the shot */
.tone { position: relative; min-width: 0; border-radius: 22px; margin-top: 27px; }
/* The panel's glass takes the photograph's colour, like the Light Room's dock. */
.tone.glass::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1;
  background-color: rgba(var(--tint, 140, 140, 150), 0.14);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.4) 100%);
  mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.4) 100%);
  transition: background-color 0.9s var(--ease);
}
/* The panel's glass without a live backdrop blur: behind it is only the dark room, and a blur that
   re-runs whenever the grain or the ambilight moves cost a third of the frame rate. Same look, painted once. */
.tone.glass {
  backdrop-filter: none; -webkit-backdrop-filter: none;
  background: linear-gradient(180deg, rgba(60, 60, 66, 0.62) 0%, rgba(24, 24, 28, 0.84) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), inset 0 -1px 0 rgba(0, 0, 0, 0.3), 0 2px 6px rgba(0, 0, 0, 0.35), 0 30px 80px rgba(0, 0, 0, 0.6);
}
.room.colour .ambi.soft { filter: none; }
.tone-body, .tone-wait { position: absolute; inset: 0; }
.tone-body { padding: 20px; overflow-y: auto; display: flex; flex-direction: column; scrollbar-width: thin; }
.tone-wait { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 20px; text-align: center; font-size: 13px; color: rgba(255, 255, 255, 0.6); }
.tone-wait p { margin: 0; }
.spin { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.18); border-top-color: rgba(255, 255, 255, 0.75); animation: spin 0.8s linear infinite; }
.tone.bad .spin { display: none; }
.tone.bad .tone-wait p { color: #ff6961; }
.tone-h { font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, 0.88); }
.tiles4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 12px 0 20px; }
.tiles4 button { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 11px; }
.tiles4 button:focus-visible { outline: 2px solid rgba(255, 255, 255, 0.4); }
.tile-img { display: block; width: 100%; height: 68px; border-radius: 10px; overflow: hidden; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1); transition: box-shadow 0.2s var(--ease); }
.tile-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.tiles4 button:hover .tile-img { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35); }
.tiles4 button[aria-pressed="true"] .tile-img { box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.8); }
.tile-de { font-size: 11.5px; line-height: 1; color: rgba(255, 255, 255, 0.55); font-variant-numeric: tabular-nums; }
.tiles4 button[aria-pressed="true"] .tile-de { color: rgba(255, 255, 255, 0.88); }
.tone-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.tone-head > span { font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, 0.88); }
.tone-head b { font: 600 20px/24px var(--display); letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.tone-head small { margin-left: 4px; font-size: 11px; font-weight: 500; color: rgba(255, 255, 255, 0.55); }
.rows { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.row-btn {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px; border: 0; border-radius: 12px; cursor: pointer;
  text-align: left; color: var(--text); background: rgba(255, 255, 255, 0.04); transition: background 0.2s var(--ease);
}
.row-btn:hover { background: rgba(255, 255, 255, 0.06); }
.row-btn[aria-pressed="true"] { background: rgba(255, 255, 255, 0.07); box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.55); }
.row-btn:focus-visible { outline: 2px solid rgba(255, 255, 255, 0.4); }
.pair2 { position: relative; display: flex; flex: none; border-radius: 9px; overflow: hidden; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12); }
.pair2 i { display: block; width: 26px; height: 40px; transition: background 0.12s linear; }
/* the seam between packshot and shot: it closes as the colours meet */
.pair2::after { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1.5px; margin-left: -0.75px; background: rgba(255, 255, 255, 0.55); opacity: var(--seam, 1); transition: opacity 0.2s linear; }
.row-t { min-width: 0; flex: 1; display: grid; }
.row-t > span { font-size: 13px; color: rgba(255, 255, 255, 0.88); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-t em { font-style: normal; margin-left: 6px; color: rgba(255, 255, 255, 0.55); font-variant-numeric: tabular-nums; }
.row-t small { font-size: 12px; line-height: 16px; color: rgba(255, 255, 255, 0.55); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.knobs3 { display: flex; flex-direction: column; gap: 16px; margin-top: 20px; }
.knob-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 13px; margin-bottom: 8px; }
.knob-head b { font-weight: 500; color: rgba(255, 255, 255, 0.88); }
.knob-head span { color: rgba(255, 255, 255, 0.6); font-variant-numeric: tabular-nums; white-space: nowrap; }
.knob-ends { display: flex; justify-content: space-between; margin-top: 4px; font-size: 11.5px; color: rgba(255, 255, 255, 0.55); }
.track { position: relative; height: 22px; cursor: pointer; touch-action: none; border-radius: 980px; outline: none; }
.track:focus-visible { box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.4); }
.track .rail { position: absolute; left: 0; right: 0; top: 8px; height: 6px; border-radius: 3px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1); }
.track .span { position: absolute; top: 6px; height: 10px; border-radius: 5px; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.7); transition: left 0.26s cubic-bezier(0.22, 1, 0.36, 1), width 0.26s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.2s; }
.track .ring { position: absolute; top: 1px; left: 50%; width: 20px; height: 20px; margin-left: -10px; border-radius: 50%; box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(0, 0, 0, 0.35); }
.track .dot { position: absolute; top: 2px; left: 50%; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.6); transition: left 0.26s cubic-bezier(0.22, 1, 0.36, 1); }
.track.dragging .dot, .track.dragging .span { transition: none; }
.match {
  flex: none; margin-top: 20px; height: 36px; border: 0; border-radius: 980px; cursor: pointer; font-size: 13px; font-weight: 500;
  background: rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.9); transition: background 0.2s var(--ease);
}
.match:hover { background: rgba(255, 255, 255, 0.15); }
.match:disabled { background: rgba(255, 255, 255, 0.06); color: rgba(255, 255, 255, 0.6); cursor: default; }
.match .tick { margin-right: 4px; }
.tone-hint { margin: 12px 0 0; font-size: 12px; line-height: 17px; color: rgba(255, 255, 255, 0.55); }
.tone-rule { flex: none; height: 1px; margin: 20px 0; background: rgba(255, 255, 255, 0.07); }
#bgRow { margin-top: 12px; }
.pill { flex: none; border: 0; border-radius: 980px; padding: 4px 10px; font-size: 12.5px; font-weight: 500; cursor: pointer; background: rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.9); }
.pill:hover { background: rgba(255, 255, 255, 0.15); }
.tone-foot { margin-top: auto; padding-top: 20px; font-size: 11.5px; line-height: 1.4; color: rgba(255, 255, 255, 0.55); }
/* One quiet line under the pictures: what is happening, and the numbers. */
.note { position: relative; z-index: 2; grid-column: 1 / 3; margin: 6px 0 0; text-align: center; font-size: 13px; line-height: 1.45; color: var(--grey); font-variant-numeric: tabular-nums; }
.note b { color: var(--text); font-weight: 600; }
.note.bad b { color: #ff6961; }
a.chip { text-decoration: none; }
a.chip:hover { text-decoration: none; }

/* Your own product */
.room.colour .own { position: fixed; bottom: 24px; width: min(520px, calc(100vw - 24px)); }
.slots { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.slot {
  position: relative; aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden; cursor: pointer; display: grid; place-items: center;
  text-align: center; font-size: 13px; color: var(--grey-2); padding: 12px; line-height: 1.35;
  border: 1px dashed rgba(255, 255, 255, 0.32); background: rgba(255, 255, 255, 0.03); transition: border-color 0.2s, background 0.2s;
}
.slot small { color: var(--grey); font-size: 11px; }
.slot:hover, .slot.over { border-color: rgba(255, 255, 255, 0.7); background: rgba(255, 255, 255, 0.07); }
.slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slot.filled span { opacity: 0; }
.slot input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.kinds { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.kinds .chip { padding: 5px 12px; font-size: 13px; }
.own .rights { font-size: 12px; color: var(--grey); margin: 0; }

@media (max-width: 1100px) {
  .bench-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .note { grid-column: 1 / -1; grid-row: 2; }
  .tone { grid-column: 1 / -1; grid-row: 3; margin-top: 8px; }
  .bench-head { max-width: none; }
  .tone-body, .tone-wait { position: static; }
  .tone-wait { padding: 28px; }
}
@media (max-width: 640px) {
  .bench { padding: 56px 14px 28px; }
  .bench-grid { gap: 12px; }
  .bench-title h1 { font-size: 20px; }
  .bench-actions { margin-left: 0; width: 100%; }
  .bench-actions .keep { margin-left: auto; }
  .room.colour .topbar #quota { display: none; }
}
/* On a light studio photograph the chips need a darker glass to read. */
.room.colour .sketch-tag, .room.colour .hint-chip { background: rgba(10, 10, 12, 0.58); color: rgba(255, 255, 255, 0.92); border-color: rgba(255, 255, 255, 0.14); backdrop-filter: none; -webkit-backdrop-filter: none; }

/* A tool tile with its picture on top: the real before and after, crossfading. */
.tile.media-top { justify-content: flex-start; }
.tile.media-top .tile-media { flex: none; height: 260px; min-height: 0; }
.tile.media-top .tile-media img { object-position: 50% 30%; }

/* The scanner on the packshot too: both pictures are read. A line in step with the shot's. */
.pack-inner::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 100%; pointer-events: none; opacity: 0;
  background:
    linear-gradient(180deg, transparent 0%, rgba(214, 228, 255, 0.10) 86%, rgba(240, 246, 255, 0.95) 99.4%, rgba(255, 255, 255, 0) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0) 100%);
  transform: translateY(-100%); transition: opacity 0.3s var(--ease);
}
.packshot.scanning .pack-inner::after { opacity: 1; animation: pack-scan var(--pass, 1500ms) linear infinite; }
.packshot.scanning .pack-inner img { filter: brightness(0.82); transition: filter 0.4s var(--ease); }
.pack-inner img { transition: filter 0.6s var(--ease); }
@keyframes pack-scan { from { transform: translateY(-104%); } to { transform: translateY(6%); } }

/* ── Colour: the minimal pass — two pictures, one number, one action ───────── */
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.room.colour .bench-title h1 { font-size: 36px; margin: 0; }
.bench .status { display: block; margin: 10px 0 0; min-height: 20px; font-size: 14px; color: var(--grey); font-variant-numeric: tabular-nums; }
.bench .status b { color: var(--text); font-weight: 600; }
.bench .status.bad b { color: #ff6961; }
.room.colour .hint-chip, .room.colour .sketch-tag { display: none !important; }
#reset { transition: opacity 0.3s var(--ease); }
#reset:disabled { opacity: 0; pointer-events: none; }
.room.colour .fig { gap: 0; }

/* the panel: a column on the room, not a card */
.tone { background: none; box-shadow: none; margin-top: 0; border-radius: 0; }
.tone-body { padding: 2px 0 0 6px; }
.tone-wait { align-items: flex-start; justify-content: flex-start; padding: 6px; }
.tiles4 { gap: 10px; margin: 0 0 30px; }
.tile-img { height: 78px; border-radius: 12px; }
.tile-de { font-size: 12px; }
.hero-num { display: grid; gap: 4px; margin: 0 0 22px; }
.hero-num span { font-size: 13px; color: var(--grey); }
.hero-num b { font: 300 60px/1 var(--display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: var(--text); }
.rows { flex-direction: row; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
.rows .row-btn { width: auto; padding: 4px; border-radius: 13px; background: transparent; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12); }
.rows .row-btn:hover { background: rgba(255, 255, 255, 0.05); }
.rows .row-btn[aria-pressed="true"] { background: transparent; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.75); }
.rows .row-t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.match { margin-top: 0; height: 42px; font-size: 14px; }
.tune { align-self: flex-start; margin-top: 14px; padding: 0; border: 0; background: none; color: var(--grey); font-size: 13px; cursor: pointer; }
.tune:hover { color: var(--text); }
.tune::after { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 0 3px 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); transition: transform 0.25s var(--ease); }
.tune[aria-expanded="true"]::after { transform: rotate(-135deg); margin-bottom: -1px; }
.knob-ends { display: none; }
.knobs3 { gap: 14px; margin-top: 16px; }
.bg-line { margin-top: auto; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.07); }
.bg-row { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 13px; color: var(--grey-2); border-radius: 8px; }
.bg-row:focus-visible { outline: 2px solid rgba(255, 255, 255, 0.4); outline-offset: 4px; }
.bg-v { margin-left: auto; color: var(--text); font-variant-numeric: tabular-nums; }
.pair2.mini { border-radius: 5px; }
.pair2.mini i { width: 11px; height: 18px; }
.pair2.mini::after { display: none; }
@media (max-width: 1100px) {
  .tone-body { padding: 18px 0 0; max-width: 460px; width: 100%; margin: 0 auto; }
  .bg-line { margin-top: 26px; }
}

/* Your own: two pictures, one arrow — the photo, and the truth it must match */
.own .own-lead { margin: -8px 0 0; font-size: 13px; color: var(--grey-2); }
.room.colour .slots { grid-template-columns: 1fr 28px 1fr; align-items: center; gap: 10px; }
.slot { align-content: center; gap: 10px; }
.slot .slot-n {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; justify-self: center;
  font-size: 13px; font-weight: 600; color: var(--text); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}
.slot .slot-t { display: grid; gap: 4px; font-size: 13px; color: var(--text); }
.slot .slot-t small { font-size: 11.5px; color: var(--grey); }
.slot.filled .slot-n, .slot.filled .slot-t { opacity: 0; }
.slot.filled::after {
  content: attr(data-label); position: absolute; left: 8px; bottom: 8px; padding: 3px 9px; border-radius: 980px;
  font-size: 11px; font-weight: 600; color: #fff; background: rgba(10, 10, 12, 0.6);
}
#slotShot { --l: "Photo"; }
#slotShot.filled::after { content: "1 · Photo"; }
#slotPack.filled::after { content: "2 · Truth"; }
.slot-arrow { justify-self: center; width: 14px; height: 14px; border-top: 1.5px solid var(--grey); border-right: 1.5px solid var(--grey); transform: rotate(45deg); }
.own-hint { font-size: 12px; color: var(--grey); margin-right: 4px; }
/* over light studio photographs the glass needs depth to read */
.room.colour .own.glass { background: linear-gradient(180deg, rgba(30, 30, 34, 0.9) 0%, rgba(14, 14, 16, 0.94) 100%); }
.room.colour .own > h3:first-child { font: 600 19px/1.2 var(--display); color: var(--text); }

/* ── Colour change: the fabric beside the photograph ─────────────────────── */
.fabric .pack-inner img { object-fit: cover; }
.fabrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 10px; margin: 0 0 30px; }
.fabric-chip { display: grid; gap: 7px; justify-items: center; padding: 0; border: 0; background: none; cursor: pointer; color: var(--grey); min-width: 0; }
.fabric-chip .fc-img {
  display: grid; place-items: center; width: 100%; aspect-ratio: 1; border-radius: 14px; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1); transition: box-shadow 0.2s var(--ease), transform 0.3s var(--ease);
  font: 300 26px/1 var(--display); color: var(--text);
}
.fabric-chip .fc-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fabric-chip:hover .fc-img { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35); }
.fabric-chip[aria-pressed="true"] .fc-img { box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.85); }
.fabric-chip[aria-pressed="true"] { color: var(--text); }
.fabric-chip .fc-name { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.fabric-chip.add .fc-img { background: rgba(255, 255, 255, 0.03); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28); outline: 1px dashed transparent; }
.run-steps { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 10px; }
.run-steps li { position: relative; padding-left: 22px; font-size: 13px; color: var(--grey); transition: color 0.3s var(--ease); }
.run-steps li::before { content: ""; position: absolute; left: 2px; top: 5px; width: 8px; height: 8px; border-radius: 50%; background: #48484a; }
.run-steps li.done { color: var(--grey-2); }
.run-steps li.done::before { background: var(--text); }
.run-steps li.active { color: var(--text); }
.run-steps li.active::before { top: 2px; left: 0; width: 10px; height: 10px; background: none; border: 2px solid rgba(255, 255, 255, 0.2); border-top-color: var(--text); animation: spin 0.8s linear infinite; }
.made { margin: 0; font-size: 12px; color: var(--grey); }

/* The process: the chain's own pictures over the photograph, as they are written */
.process { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.process img, .process .p-glow { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 0.45s var(--ease); }
.process img.on { opacity: 1; }
.process .p-over.on { opacity: 0.92; }
.process .p-glow {
  background: var(--glow, #fff); mix-blend-mode: screen;
  -webkit-mask-image: var(--mask); mask-image: var(--mask); -webkit-mask-size: 100% 100%; mask-size: 100% 100%;
}
.process .p-glow.on { opacity: 0.55; animation: glow-breathe 2.4s ease-in-out infinite; }
@keyframes glow-breathe { 50% { opacity: 0.3; } }
.p-cap {
  position: absolute; left: 50%; bottom: 16px; z-index: 4; transform: translateX(-50%); max-width: calc(100% - 32px);
  padding: 7px 14px; border-radius: 980px; font-size: 13px; line-height: 1.3; text-align: center; color: rgba(255, 255, 255, 0.95);
  background: rgba(10, 10, 12, 0.6); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14); transition: opacity 0.4s var(--ease);
}
.p-cap b { font-weight: 600; }
.stage.holding .process, .stage.holding .p-cap { opacity: 0; }

/* time left: a hairline along the bottom of the photograph, filling toward the measured file */
.p-bar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; height: 2px; background: rgba(255, 255, 255, 0.12); overflow: hidden; }
.p-bar i { position: absolute; inset: 0; background: rgba(255, 255, 255, 0.85); transform-origin: left center; transform: scaleX(0); transition: transform 1s linear; }
/* the fabric's frame before a fabric is chosen */
.pack-inner.empty { background: rgba(255, 255, 255, 0.03) !important; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1); }
.pack-inner.empty::after { content: attr(data-hint); position: absolute; inset: 0; display: grid; place-items: center; font-size: 14px; color: var(--grey); }
.pack-inner.empty img { display: none; }

/* ── The process, step by step: each step its own movement ───────────────── */
.zoom { position: absolute; inset: 0; transform-origin: 50% 40%; transition: transform 1s cubic-bezier(0.65, 0, 0.35, 1); will-change: transform; }
.zoom canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.process img.sweep-x { opacity: 1; animation: sweep-x 1.1s cubic-bezier(0.65, 0, 0.35, 1) both; }
.process img.sweep-y { opacity: 1; animation: sweep-y 1s cubic-bezier(0.65, 0, 0.35, 1) both; }
@keyframes sweep-x { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes sweep-y { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
.process .p-over.sweep-x { opacity: 0.92; }
/* between the strands: the photograph as it was, through the hair, cleared away to the new colour beneath */
.process .p-tint {
  position: absolute; inset: 0; opacity: 0; transition: opacity 0.35s var(--ease); background: var(--src) center / 100% 100% no-repeat;
  -webkit-mask-image: var(--mask); mask-image: var(--mask); -webkit-mask-size: 100% 100%; mask-size: 100% 100%;
}
.process .p-tint.on { opacity: 1; }
/* everything but the hair dimmed, so the eye lands where the colour changes */
.process .p-scrim {
  position: absolute; inset: 0; opacity: 0; background: rgba(0, 0, 0, 0.5); transition: opacity 0.5s var(--ease);
  -webkit-mask-image: linear-gradient(#000, #000), var(--mask); mask-image: linear-gradient(#000, #000), var(--mask);
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%; -webkit-mask-composite: xor; mask-composite: exclude;
}
.process .p-scrim.on { opacity: 1; }
.process .p-tint.out { opacity: 1; animation: clear-down 1.4s cubic-bezier(0.65, 0, 0.35, 1) both; }
@keyframes clear-down { from { clip-path: inset(0 0 0 0); } to { clip-path: inset(100% 0 0 0); } }
.p-band {
  position: absolute; left: 0; right: 0; top: 0; height: 22%; opacity: 0; pointer-events: none; mix-blend-mode: screen;
  background: linear-gradient(180deg, transparent, rgba(255, 246, 232, 0.55) 50%, transparent);
}
.p-band.run { animation: band-down 1.3s cubic-bezier(0.45, 0, 0.55, 1) both; }
@keyframes band-down { 0% { opacity: 0; transform: translateY(-110%); } 15% { opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; transform: translateY(460%); } }

/* the strip: one row per step, its picture appearing as it happens */
.strip { list-style: none; margin: 2px 0 0; padding: 0; display: grid; gap: 8px; }
.strip li { display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 12px; font-size: 13px; color: var(--grey); transition: color 0.3s var(--ease), opacity 0.3s var(--ease); }
.strip li .th { width: 30px; height: 40px; border-radius: 7px; overflow: hidden; background: rgba(255, 255, 255, 0.04); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1); position: relative; }
.strip li .th img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.4s var(--ease); }
.strip li .th i { position: absolute; inset: 0; opacity: 0; background: var(--glow, #fff); -webkit-mask-image: var(--mask); mask-image: var(--mask); -webkit-mask-size: 100% 100%; mask-size: 100% 100%; transition: opacity 0.4s var(--ease); }
.strip li .tm { font-size: 11.5px; font-variant-numeric: tabular-nums; color: var(--grey); }
.strip li.on { color: var(--text); }
.strip li.on .th { box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.8); }
.strip li.on .th img, .strip li.on .th i, .strip li.done .th img, .strip li.done .th i { opacity: 1; }
.strip li.done { color: var(--grey-2); }
.strip li.wait { opacity: 0.5; }

/* ══ The house language — the same as the door and its cinema (portfolio/door, v41) ═══════════════════════════
   One dark room (#020605), cream type in three steps, Plus Jakarta Sans at small, tight sizes, smoked-crystal
   surfaces whose rim lights where the hand is (rim.js), one cream jewel for the one action, numbers in tabular
   figures, a cream line with a vermilion glow where something is read. Written last so it wins; the rules above
   are the Light Room's and stay as its structure. ═══════════════════════════════════════════════════════════ */
:root {
  --bg: #020605;
  --text: #f5efe2;
  --cream: #f3ead6;
  --grey: rgba(243, 234, 214, 0.56);
  --grey-2: rgba(243, 234, 214, 0.7);
  --hair: rgba(243, 234, 214, 0.11);
  --link: #f5efe2;
  --blue: #f3ead6;
  --red: #e8250e;
  --amber: #ffb648;
  --display: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --body: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --card: 12px;
  --tone-rgb: 162, 182, 128;
  --tone2-rgb: 218, 210, 178;
  --glass-hi-rgb: 15, 19, 17;
  --glass-lo-rgb: 8, 10, 9;
  --crystal: linear-gradient(160deg, rgba(var(--glass-hi-rgb), 0.66) 0%, rgba(var(--glass-lo-rgb), 0.85) 100%);
  --crystal-hi: linear-gradient(160deg, rgba(var(--glass-hi-rgb), 0.76) 0%, rgba(var(--glass-lo-rgb), 0.9) 100%);
  --crystal-shadow: inset 0 1px 0 rgba(243, 234, 214, 0.16), 0 24px 56px -14px rgba(0, 0, 0, 0.82);
}
body { font: 400 16px/1.5 var(--body); letter-spacing: -0.01em; text-rendering: optimizeLegibility; }
::selection { background: rgba(232, 37, 14, 0.42); color: var(--text); }
a:hover { text-decoration: none; }

/* the room: the door's dark green-black, its cream light from above */
.room, .hub, .door { background: radial-gradient(130% 90% at 50% 10%, #0b1311 0%, #050b09 42%, #020605 80%); }
.depth .spot { background: radial-gradient(ellipse 30% 55% at 50% -10%, rgba(243, 234, 214, 0.06), rgba(243, 234, 214, 0.012) 55%, transparent 75%); }
.depth::after { background: radial-gradient(120% 100% at 50% 42%, transparent 52%, rgba(2, 6, 5, 0.86) 100%); }

/* ── the top bar: the door's pure unboxed credit line ── */
.topbar { height: 60px; padding: 0 24px; font-size: 13.5px; }
.brand-sig { display: inline-flex; align-items: center; gap: 14px; color: var(--text); text-shadow: 0 2px 18px rgba(0, 0, 0, 0.65); transition: opacity 0.3s var(--ease); }
.brand-sig:hover { opacity: 0.88; }
.wm-name { font-size: 16.5px; font-weight: 500; line-height: 1; letter-spacing: -0.024em; white-space: nowrap; }
.bar-sep { width: 1px; height: 13px; background: rgba(243, 234, 214, 0.2); flex-shrink: 0; }
.wm-sub { font-size: 13.5px; line-height: 1; letter-spacing: -0.01em; color: var(--grey-2); white-space: nowrap; }
.topbar .right { gap: 14px; color: var(--grey-2); font-size: 13.5px; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.topbar .right > :empty, .topbar .right > :empty + .bar-sep { display: none; }
.topbar button, .bar-action {
  display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 10px; margin: 0 -10px; border-radius: 7px;
  font: 500 13.5px/1 var(--body); letter-spacing: -0.01em; color: var(--text); background: none;
  transition: background-color 0.3s var(--ease);
}
.topbar button:hover, .topbar button:focus-visible, .bar-action:hover { background: rgba(243, 234, 214, 0.1); outline: none; }
.tool-switcher { display: none; }
@media (max-width: 720px) {
  .topbar .wm-sub, .brand-sig .bar-sep, .topbar .right .bar-sep { display: none; }
}

/* ── type: the door's weights, a size down from the Light Room's ── */
.eyebrow { font: 500 11.5px/1 var(--body); letter-spacing: 0.04em; color: var(--grey); font-variant-numeric: tabular-nums; }
.hub-head h1, .door h1 { font: 500 56px/1.04 var(--display); letter-spacing: -0.042em; }
.hub-head .sub, .door .sub { font: 400 18px/1.45 var(--body); letter-spacing: -0.012em; color: var(--grey-2); }
.bench-title h1, .room.colour .bench-title h1 { font: 500 28px/1.12 var(--display); letter-spacing: -0.034em; color: var(--text); margin: 0; }
.intro h1 {
  font-weight: 500; letter-spacing: -0.036em;
  background: radial-gradient(circle 560px at var(--tx, 80%) var(--ty, 50%), rgb(var(--tc, 255, 236, 214)) 0%, #f5efe2 30%, rgba(243, 234, 214, 0.8) 66%, rgba(243, 234, 214, 0.5) 100%);
  -webkit-background-clip: text; background-clip: text;
}
.intro p { font-size: 14.5px; line-height: 1.5; color: var(--grey-2); }
.bench .status { font-size: 13.5px; color: var(--grey-2); margin: 6px 0 0; }
.bench .status b, .note b { color: var(--text); font-weight: 500; }
.hero-num span { font-size: 12px; color: var(--grey-2); }
.hero-num b { font: 300 54px/1 var(--display); letter-spacing: -0.045em; color: var(--text); }
.fig figcaption, .pop h3, .tone-h, .tone-head > span { font-weight: 500; letter-spacing: -0.005em; }

/* ── the one action: a cream jewel; everything else a quiet bar-action ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 36px; padding: 0 18px; border: 0; border-radius: 8px; background: var(--cream); color: #080908;
  font: 500 13.5px/1 var(--body); letter-spacing: -0.012em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 2px 10px rgba(0, 0, 0, 0.34);
  transition: background-color 0.3s var(--ease), transform 0.35s var(--ease), box-shadow 0.3s var(--ease);
}
.btn:hover { background: #fbf7ee; transform: translate3d(0, -1px, 0); }
.btn:active { transform: scale(0.98); }
.btn:disabled { background: rgba(243, 234, 214, 0.08); color: var(--grey); box-shadow: inset 0 0 0 1px rgba(243, 234, 214, 0.12); transform: none; }
.btn:focus-visible { outline: 2px solid var(--cream); outline-offset: 3px; }
.chip, .match, .pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 30px; padding: 0 11px; border: 0; border-radius: 7px;
  font: 500 13px/1 var(--body); letter-spacing: -0.01em; color: var(--text);
  background: rgba(243, 234, 214, 0.07); box-shadow: inset 0 0 0 1px rgba(243, 234, 214, 0.16);
  transition: background-color 0.3s var(--ease), box-shadow 0.3s var(--ease), color 0.3s var(--ease);
}
.chip:hover, .match:hover, .pill:hover { background: rgba(243, 234, 214, 0.12); box-shadow: inset 0 0 0 1px rgba(243, 234, 214, 0.26); }
.chip[aria-pressed="true"], .chip.ghost[aria-pressed="true"] { background: var(--cream); color: #080908; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8); }
.chip.ghost { color: var(--grey-2); }
.match { height: 38px; font-size: 13px; border-radius: 8px; }
.match:disabled { background: rgba(243, 234, 214, 0.04); color: var(--grey); }
.kinds .chip { height: 28px; padding: 0 10px; font-size: 12.5px; }
.seg { background: rgba(243, 234, 214, 0.07); border-radius: 9px; box-shadow: inset 0 0 0 1px rgba(243, 234, 214, 0.12); }
.seg button { border-radius: 7px; font: 500 12.5px/1 var(--body); padding: 7px 8px; color: var(--grey-2); transition: color 0.25s var(--ease), background-color 0.25s var(--ease); }
.seg button:hover { color: var(--text); }
.seg button[aria-pressed="true"] { background: rgba(243, 234, 214, 0.16); color: var(--text); box-shadow: inset 0 1px 0 rgba(243, 234, 214, 0.22); }
.switch input:checked + span { background: var(--cream); }
.switch input:checked + span::after { background: #0b0f0e; }
.tune { font-size: 12.5px; color: var(--grey-2); }

/* ── smoked crystal: the dock, the popovers, the sheet, the door card ── */
.dock.glass, .pop.glass, .sheet.glass, .room.colour .own.glass, .door-card {
  border: 0; border-radius: var(--card); isolation: isolate; background: var(--crystal);
  backdrop-filter: blur(38px) saturate(1.75) brightness(1.02); -webkit-backdrop-filter: blur(38px) saturate(1.75) brightness(1.02);
  box-shadow: var(--crystal-shadow);
}
/* the rim, lit where the hand is: cream at the light, a harmonic falloff, faint all round */
.dock.glass::before, .pop.glass::before, .sheet.glass::before, .tile::before, .ps-stage::before, .door-card::before, .frames button::before, .ps-garments button::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; z-index: 4;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 0%), rgba(243, 234, 214, 0.56) 0%, rgba(var(--tone-rgb), 0.38) 38%, rgba(243, 234, 214, 0.08) 74%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  transition: none;
}
/* Cursor-tracked harmonic spotlight inside smoked-crystal surfaces */
.dock.glass::after, .pop.glass::after, .sheet.glass::after, .door-card::after, .tile::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 0;
  background: radial-gradient(240px 180px at var(--mx, 80%) var(--my, 80%), rgba(var(--tone-rgb), 0.15), transparent 72%);
  opacity: 0.55; transition: opacity 0.4s var(--ease);
}
/* Harmonic atmospheric light aura inside each smoked-crystal surface */
.d-aura {
  position: absolute; right: -42px; bottom: -52px; width: 240px; height: 220px; border-radius: 50%; z-index: 0; pointer-events: none;
  background: radial-gradient(circle, rgba(var(--tone-rgb), 0.34) 0%, rgba(var(--tone2-rgb), 0.15) 45%, transparent 74%);
  filter: blur(28px); opacity: 0.58; transition: transform 0.65s var(--ease), opacity 0.5s var(--ease);
}

/* Light Change dock: architectural 1px footer hairline + refined liquid-cream scrubber */
.dock.glass { padding: 15px 18px 13px; gap: 11px; }
.dock > *:not(.d-aura):not(.sunedge) { position: relative; z-index: 2; }
.dock .sunedge { position: absolute; z-index: 1; }
.dock .d-aura { position: absolute; z-index: 0; opacity: 0.52; }
.dock-foot { padding-top: 10px; border-top: 1px solid rgba(243, 234, 214, 0.11); }
.day input[type="range"]::-webkit-slider-runnable-track {
  height: 4px; border-radius: 999px;
  background: linear-gradient(90deg, rgba(124, 92, 148, 0.72) 0%, rgba(232, 132, 68, 0.85) 16%, rgba(243, 234, 214, 0.96) 50%, rgba(255, 172, 84, 0.86) 84%, rgba(92, 76, 128, 0.72) 100%);
  box-shadow: inset 0 0 0 1px rgba(243, 234, 214, 0.14);
}
.day input[type="range"]::-moz-range-track {
  height: 4px; border-radius: 999px;
  background: linear-gradient(90deg, rgba(124, 92, 148, 0.72) 0%, rgba(232, 132, 68, 0.85) 16%, rgba(243, 234, 214, 0.96) 50%, rgba(255, 172, 84, 0.86) 84%, rgba(92, 76, 128, 0.72) 100%);
}
.day input[type="range"]::-webkit-slider-thumb {
  width: 14px; height: 14px; margin-top: -5px; border-radius: 50%; background: #fbf7ee;
  box-shadow: 0 0 0 3px rgba(243, 234, 214, 0.16), 0 2px 10px rgba(0, 0, 0, 0.65);
  transition: transform 0.2s var(--ease);
}
.day input[type="range"]:hover::-webkit-slider-thumb { transform: scale(1.18); }
.day input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; border: 0; border-radius: 50%; background: #fbf7ee; }
.day .time { font-size: 13px; font-weight: 500; color: var(--text); }

/* Character & Own popovers */
.pop > *:not(.d-aura), .sheet > *:not(.d-aura) { position: relative; z-index: 2; }
.pop .d-aura, .sheet .d-aura { opacity: 0.48; }
.mini input[type="range"], .kelvin-row input[type="range"] {
  -webkit-appearance: none; appearance: none; height: 4px; border-radius: 999px; background: rgba(243, 234, 214, 0.16); cursor: pointer;
}
.mini input[type="range"]::-webkit-slider-thumb, .kelvin-row input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 12px; height: 12px; border-radius: 50%; background: var(--cream);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.sheet h2 { font: 500 22px/1.2 var(--display); letter-spacing: -0.03em; }
.sheet > p, .sheet .empty { font-size: 13.5px; color: var(--grey-2); }
.sheet .close {
  position: absolute !important; top: 16px; right: 16px; z-index: 3;
  width: 28px; height: 28px; border-radius: 7px; background: rgba(243, 234, 214, 0.07); color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(243, 234, 214, 0.16); font-size: 12px;
}
.sheet .close:hover { background: rgba(243, 234, 214, 0.12); }
.steps li { border-top-color: var(--hair); }
.steps .ic::before { background: rgba(243, 234, 214, 0.18); }
.steps .t { font-size: 13.5px; font-weight: 500; }
.steps .d { font-size: 12px; }
/* small labels over the photograph: the cinema's duration tag */
.hint-chip, .sketch-tag, .drop-chip, .p-cap, .loupe-cap, .room.colour .sketch-tag, .room.colour .hint-chip {
  border: 0; border-radius: 8px; background: rgba(8, 10, 9, 0.72); color: var(--text);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px rgba(243, 234, 214, 0.14);
  font-weight: 500; letter-spacing: -0.005em;
}
.p-cap b, .loupe-cap b { font-weight: 600; }

/* ── the photographs: screens in the dark room (same 1px inner cream rim & clean shadow as /door/) ── */
.stage, .pack-inner {
  border-radius: 14px;
  box-shadow: inset 0 0 0 1px rgba(243, 234, 214, 0.12), inset 0 0 28px rgba(2, 6, 5, 0.10), 0 48px 130px -28px rgba(0, 0, 0, 0.94);
  -webkit-box-reflect: unset;
}
.pack-inner::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 4;
  box-shadow: inset 0 0 0 1px rgba(243, 234, 214, 0.14), inset 0 1px 0 rgba(243, 234, 214, 0.22);
}
.stage::after { box-shadow: inset 0 0 0 1px rgba(243, 234, 214, 0.12), inset 0 1px 0 rgba(243, 234, 214, 0.18); }

/* Filmstrip thumbnails: smoked-crystal frames with specular rim */
.frames button {
  position: relative; border-radius: 8px; padding: 3px; background: var(--crystal);
  outline: 0; box-shadow: inset 0 1px 0 rgba(243, 234, 214, 0.14), 0 12px 28px -8px rgba(0, 0, 0, 0.75);
  opacity: 0.58; transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.frames button img { border-radius: 5px; }
.frames button:hover { opacity: 0.92; transform: translate3d(2px, 0, 0); }
.frames button[aria-pressed="true"] {
  opacity: 1; transform: scale(1.04);
  box-shadow: inset 0 0 0 1.5px var(--cream), 0 16px 34px -8px rgba(0, 0, 0, 0.88);
}
.frames .add {
  background: var(--crystal); box-shadow: inset 0 0 0 1px rgba(243, 234, 214, 0.22);
  font-weight: 300; opacity: 0.78;
}
.frames .add:hover { opacity: 1; box-shadow: inset 0 0 0 1px var(--cream); }

.tile-img {
  box-shadow: inset 0 0 14px rgba(2, 6, 5, 0.16), 0 0 0 1px rgba(243, 234, 214, 0.14);
}
.fabric-chip .fc-img, .rows .row-btn { box-shadow: 0 0 0 1px rgba(243, 234, 214, 0.14); }
.tiles4 button[aria-pressed="true"] .tile-img, .fabric-chip[aria-pressed="true"] .fc-img, .rows .row-btn[aria-pressed="true"] {
  box-shadow: inset 0 0 14px rgba(2, 6, 5, 0.12), 0 0 0 1.5px var(--cream);
}
.fabric-chip .fc-name { font-size: 12px; font-weight: 500; }
.slot { border-color: rgba(243, 234, 214, 0.26); border-radius: var(--card); }
.slot:hover, .slot.over { border-color: rgba(243, 234, 214, 0.6); background: rgba(243, 234, 214, 0.05); }
.slot .slot-n { border-radius: 7px; font-variant-numeric: tabular-nums; box-shadow: inset 0 0 0 1px rgba(243, 234, 214, 0.3); }

/* where something is read: the door's scan line — cream, with a harmonic glow */
.pack-inner::after {
  background: linear-gradient(180deg, transparent 0%, rgba(243, 234, 214, 0.08) 86%, rgba(243, 234, 214, 0.9) 99.4%, transparent 100%);
  filter: drop-shadow(0 0 10px rgba(var(--tone-rgb), 0.5));
}
.p-bar { background: rgba(243, 234, 214, 0.12); }
.p-bar i { background: var(--cream); box-shadow: 0 0 12px rgba(var(--tone-rgb), 0.6); }
.strip li { font-size: 13px; }
.strip li .th { border-radius: 6px; box-shadow: inset 0 0 0 1px rgba(243, 234, 214, 0.1); }
.strip li.on .th { box-shadow: inset 0 0 0 1.5px var(--cream); }
.strip li .tm { font-size: 11.5px; letter-spacing: 0.02em; }

/* ── Colour Correction, Colour Change & Product Shot: Precision Instrument Column in the Darkroom ── */
.bench { --imgw: min(calc((100svh - 196px) / 1.48), 510px); padding: 58px 28px 20px; }
.bench-head { max-width: calc(var(--imgw) * 2 + 320px); margin: 0 auto 14px; flex-wrap: nowrap; }
.bench-grid {
  grid-template-columns: minmax(0, var(--imgw)) minmax(0, var(--imgw)) clamp(228px, 26vw, 284px);
  gap: 16px 20px;
}
/* the panel: an open architectural column separated by a 1px hairline */
.tone {
  grid-column: auto; grid-row: auto;
  background: none; box-shadow: none; margin-top: 0; border-radius: 0;
  border-left: 1px solid rgba(243, 234, 214, 0.09);
}
.tone-body, .tone-wait { position: absolute; inset: 0; }
.tone-body { padding: 2px 0 0 18px; max-width: none; margin: 0; }
.tone-wait { align-items: flex-start; justify-content: flex-start; padding: 6px 0 0 18px; }

/* Hero ΔE₀₀ unit badge & tactile material swatch bars */
#pieceDe::after, #heroDe:not(:empty)::after {
  content: "ΔE₀₀";
  display: inline-block;
  margin-left: 8px;
  font: 500 11.5px/1 var(--body);
  letter-spacing: 0.04em;
  color: var(--grey);
  vertical-align: super;
}
.rows {
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 7px;
  margin: 0 0 16px;
}
.rows .row-btn {
  width: 100%;
  padding: 6px 10px 6px 6px;
  border-radius: 10px;
  background: rgba(243, 234, 214, 0.03);
  box-shadow: inset 0 0 0 1px rgba(243, 234, 214, 0.11);
  transition: background-color 0.25s var(--ease), box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}
.rows .row-btn:hover {
  background: rgba(243, 234, 214, 0.07);
  box-shadow: inset 0 0 0 1px rgba(243, 234, 214, 0.24);
  transform: translate3d(2px, 0, 0);
}
.rows .row-btn[aria-pressed="true"] {
  background: rgba(243, 234, 214, 0.08);
  box-shadow: inset 0 0 0 1.5px var(--cream);
}
.rows .pair2 i { width: 18px; height: 32px; }
.rows .row-t {
  position: static; width: auto; height: auto; overflow: visible; clip: auto;
  display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1;
}
.rows .row-t > span { font-size: 12.5px; font-weight: 500; color: var(--text); }
.rows .row-t small { font-size: 11px; color: var(--grey-2); }

/* Smart Two-Step CTA Hierarchy: Step 1 (Match) -> Step 2 (Keep colour) */
.match.is-primary {
  background: var(--cream);
  color: #080908;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 4px 16px rgba(0, 0, 0, 0.4);
}
.match.is-primary:hover {
  background: #fbf7ee;
  transform: translate3d(0, -1px, 0);
}
#keep:not(:disabled):not(.is-ready) {
  background: rgba(243, 234, 214, 0.09);
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(243, 234, 214, 0.18);
}
#keep:not(:disabled):not(.is-ready):hover {
  background: rgba(243, 234, 214, 0.15);
}

@media (max-width: 799px) {
  .bench-head { flex-wrap: wrap; max-width: none; }
  .bench-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .note { grid-column: 1 / -1; grid-row: 2; }
  .tone { grid-column: 1 / -1; grid-row: 3; margin-top: 8px; border-left: 0; border-top: 1px solid rgba(243, 234, 214, 0.09); }
  .tone-body, .tone-wait { position: static; }
  .tone-body { padding: 18px 0 0; max-width: 460px; width: 100%; margin: 0 auto; }
  .tone-wait { padding: 28px; }
}

/* ── the way in (/lab/ locked invite portal): architectural smoked-crystal portal card ── */
.door { padding: 80px 22px 40px; }
.door-card {
  position: relative; z-index: 1; width: min(460px, 100%); padding: 26px 26px 20px;
  display: flex; flex-direction: column; gap: 18px; text-align: left; overflow: hidden;
}
.door-card > *:not(.d-aura) { position: relative; z-index: 2; }
.door-card .d-aura { position: absolute; }
.door-card .d-top { margin-bottom: 0; }
.door-card h1 { font: 500 40px/1.06 var(--display); letter-spacing: -0.038em; margin: 4px 0 4px; color: var(--text); }
.door-card .sub { font: 400 14.5px/1.45 var(--body); color: var(--grey-2); margin: 0; max-width: 34ch; }
.field { max-width: none; border-radius: 9px; }
.field input {
  height: 52px; border-radius: 9px; border: 0; background: rgba(6, 8, 7, 0.66); color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(243, 234, 214, 0.16); font: 400 15px var(--body);
}
.field input:focus { box-shadow: inset 0 0 0 1px rgba(243, 234, 214, 0.42), 0 0 0 4px rgba(243, 234, 214, 0.08); }
.field label { color: var(--grey); font-size: 14px; top: 16px; }
.field .go {
  top: 10px; right: 10px; width: 32px; height: 32px; border: 0; border-radius: 7px; background: var(--cream); color: #080908;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 2px 10px rgba(0, 0, 0, 0.34);
}
.field .go:hover { background: #fbf7ee; color: #080908; transform: translate3d(1px, -1px, 0); }
.door .msg { margin: -8px 0 -6px; min-height: 1.2em; font-size: 13px; }
.door-card .d-foot { margin-top: 2px; padding-top: 12px; }
.door-card .d-cta:hover { color: var(--text); }

/* ── the tools hub (/lab/), as the door's portals with inner Ambilight screens ── */
.tiles { gap: 11px; max-width: 1120px; }
.tile {
  border: 0; border-radius: var(--card); isolation: isolate; contain: paint; padding: 10px; gap: 0;
  background: var(--crystal); box-shadow: var(--crystal-shadow);
  transition: transform 0.55s var(--ease), background 0.45s var(--ease), box-shadow 0.45s var(--ease), opacity 0.45s var(--ease);
}
a.tile:hover, a.tile:focus-visible {
  transform: translate3d(0, -3px, 0); background: var(--crystal-hi); outline: none;
  box-shadow: inset 0 1px 0 rgba(243, 234, 214, 0.28), 0 32px 68px -14px rgba(0, 0, 0, 0.92);
}
a.tile:active { transform: translate3d(0, -1px, 0) scale(0.995); }
.tile .d-aura {
  position: absolute; right: -42px; bottom: -52px; width: 240px; height: 220px; border-radius: 50%; z-index: 0; pointer-events: none;
  background: radial-gradient(circle, rgba(var(--tone-rgb), 0.34) 0%, rgba(var(--tone2-rgb), 0.15) 45%, transparent 74%);
  filter: blur(28px); opacity: 0.58; transition: transform 0.65s var(--ease), opacity 0.5s var(--ease);
}
a.tile:hover .d-aura { opacity: 1; transform: scale(1.16); }
a.tile:hover::after { opacity: 1; }
.tile.soon { opacity: 0.62; }
.tile.soon .d-aura { opacity: 0.32; }
.tile-media { position: relative; border-radius: 8px; overflow: visible; z-index: 1; background: none; }
.tile-amb {
  position: absolute !important; inset: -10px !important; width: calc(100% + 20px) !important; height: calc(100% + 20px) !important;
  object-fit: cover; filter: blur(26px) saturate(1.42) contrast(1.03); opacity: 0.42; pointer-events: none; z-index: 0;
  transition: opacity 0.55s var(--ease), transform 0.65s var(--ease);
}
a.tile:hover .tile-amb { opacity: 0.66; transform: scale(1.03); }
.tile-screen {
  position: relative; z-index: 1; width: 100%; height: 100%; border-radius: 8px; overflow: hidden; background: #040706;
  box-shadow: inset 0 0 0 1px rgba(243, 234, 214, 0.12), 0 18px 40px -12px rgba(0, 0, 0, 0.85);
}
.tile-screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.65s var(--ease); }
a.tile:hover .tile-screen img { transform: scale(1.04); }

/* Interactive Cursor-Driven Optical Previews on Hub Portals */
.tile.hero.is-scrubbing .tile-screen .after {
  animation: none;
  opacity: var(--after-op, 1);
  transition: opacity 0.12s linear;
}
.tile.hero.is-scrubbing .tile-orb {
  animation: none;
  left: var(--ox, 18%);
  top: var(--oy, 50%);
  transform: translate(0, 0);
  opacity: 1;
}
.tile.media-top .tile-screen::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--scan, 50%);
  width: 1px;
  z-index: 3;
  background: rgba(243, 234, 214, 0.78);
  box-shadow: 0 0 16px rgba(var(--tone-rgb), 0.65);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease);
}
.tile.media-top.is-scrubbing .tile-screen .after {
  animation: none;
  opacity: 1;
  clip-path: inset(0 calc(100% - var(--scan, 50%)) 0 0);
}
.tile.media-top.is-scrubbing .tile-screen::after {
  opacity: 1;
}
.tile.media-top .tile-media { height: 250px; }
.tile-text { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 0; padding: 14px 8px 4px; flex: 1; }
.tile.hero .tile-text { padding: 26px 22px 6px 28px; justify-content: space-between; }
.d-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.d-head { display: grid; gap: 5px; }
.tile .d-name { font: 500 19px/1.18 var(--display); letter-spacing: -0.024em; margin: 0; color: var(--text); }
.tile.hero .d-name { font-size: 34px; letter-spacing: -0.036em; }
.tile .d-sub { margin: 0; font-size: 13px; line-height: 1.42; letter-spacing: -0.01em; color: var(--grey-2); max-width: 34ch; text-wrap: pretty; }
.tile.hero .d-sub { font-size: 16px; max-width: 30ch; }
.d-index { font: 500 11.5px/1 var(--body); letter-spacing: 0.04em; font-variant-numeric: tabular-nums; color: rgba(243, 234, 214, 0.34); padding-top: 4px; transition: color 0.35s var(--ease); }
a.tile:hover .d-index { color: var(--text); }
.d-foot {
  display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 11px;
  border-top: 1px solid rgba(243, 234, 214, 0.11); transition: border-color 0.4s var(--ease);
}
.tile-text .d-top + .d-foot { margin-top: 26px; }
a.tile:hover .d-foot { border-top-color: rgba(243, 234, 214, 0.24); }
.d-cta { font-size: 12.5px; font-weight: 500; letter-spacing: -0.01em; color: var(--grey-2); transition: color 0.3s var(--ease); }
a.tile .d-cta, a.tile:hover .d-cta { color: var(--text); }
.d-node {
  width: 28px; height: 28px; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  background: rgba(243, 234, 214, 0.07); color: var(--text); box-shadow: inset 0 0 0 1px rgba(243, 234, 214, 0.16);
  transition: background-color 0.35s var(--ease), transform 0.35s var(--ease);
}
.d-node--primary, a.tile:hover .d-node { background: var(--cream); color: #080908; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 2px 10px rgba(0, 0, 0, 0.34); }
a.tile:hover .d-node { transform: translate3d(0, -1px, 0); }
.btn-icon { width: 11px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.hub-head { padding: 72px 22px 40px; }
.hub-head h1 { margin-top: 12px; }
.hub-foot { font: 400 13px var(--body); letter-spacing: -0.005em; color: var(--grey); font-style: normal; }
.tile-orb { background: #fbf7ee; }
@media (max-width: 834px) {
  .tile.hero .tile-text { padding: 18px 8px 4px; }
  .tile.hero .d-name { font-size: 28px; }
  .hub-head h1, .door h1 { font-size: 44px; }
}
@media (max-width: 480px) {
  .hub-head h1, .door h1 { font-size: 36px; }
  .hub-head .sub, .door .sub { font-size: 16px; }
}
/* the page's rhythm, the door's: the first tool large, the three that run beside it in one row, the three in the
   lab as one row of door-height portals */
.tiles { grid-template-columns: repeat(12, minmax(0, 1fr)); }
.tile.hero { grid-column: 1 / -1; min-height: 520px; }
.tile.media-top { grid-column: span 4; min-height: 0; }
.tile.media-top .tile-media { height: 340px; }
.tile.soon { grid-column: span 4; min-height: 168px; }
.tile-text .d-top + .d-foot { margin-top: auto; }
.d-top { margin-bottom: 22px; }
@media (max-width: 834px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile.media-top, .tile.soon { grid-column: span 1; }
  .tile.media-top .tile-media { height: 260px; }
  .tile.hero { grid-column: 1 / -1; min-height: 0; }
}
@media (max-width: 480px) {
  .tiles { grid-template-columns: 1fr; }
  .tile.media-top, .tile.soon { grid-column: 1 / -1; }
}
/* an empty frame is a dark plate, not a window */
.pack-inner.empty { background: linear-gradient(160deg, #0a0f0d 0%, #060a09 100%) !important; box-shadow: inset 0 0 0 1px rgba(243, 234, 214, 0.1), 0 48px 130px -28px rgba(0, 0, 0, 0.94); }
