/* Bluehour home. The page is the sky at blue hour: deep blue overhead, brightest near the horizon where the editor
   sits, a trace of warm afterglow behind it, then the sky deepens into night as you scroll down. No hairlines:
   surfaces are told apart by tone and soft shadow, like shapes in low light. */

:root {
  --zenith: #0e1a4f;
  --cobalt: #1f3a8a;
  --horizon: #3d5fb8;
  --dusk: #142a6b;
  --night: #06080f;
  --amber: #f0a36b;
  --rose: #ff85a8;
  --ember: #ff7a45;
  /* text on the sky: white with a little blue in the greys */
  --ink: #f2f4fb;
  --ink-2: #c3cbe6;
  --ink-3: #8d98c2;
  /* the editor's surfaces, in low light */
  /* surfaces on the night below the hills: solid (a blur over the moving sky would redraw every frame) */
  --glass: #0e111a;
  --glass-2: #141826;
  --s0: #0b0e18;
  --s1: #10131f;
  --s2: #161a28;
  --s3: #1d2232;
  --ink-4: var(--ink-4);
  --rail-c: #2a3046;
}
/* the app's own pieces stay on the app's neutral greys, so the photo's colours read true */
.desk, .vignette, .asks .q { --s0: #0a0a0a; --s1: #111111; --s2: #171717; --s3: #222222; --ink-2: #c9c9c9; --ink-3: #8f8f8f; --ink-4: #6e6e6e; --rail-c: #383838; }

* { box-sizing: border-box; }
html { background: var(--night); scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; color: var(--ink); font-family: var(--tw-font); -webkit-font-smoothing: antialiased; position: relative; overflow-x: clip; }
a { color: inherit; }

/* the sky: one tall gradient behind the whole page, in sky order */
.sky {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    /* afterglow: a wide, soft warm haze low behind the editor (never a line) */
    radial-gradient(120% 340px at 50% 860px, rgba(255, 150, 120, 0.2), transparent 70%),
    radial-gradient(70% 180px at 50% 880px, rgba(240, 163, 107, 0.16), transparent 70%),
    linear-gradient(180deg, var(--zenith) 0, var(--cobalt) 280px, var(--horizon) 760px, #34539f 960px, var(--dusk) 1350px, #0a1033 1800px, var(--night) 2300px);
}
/* the moving sky (sky.js) fades in over the gradient when WebGL is there */
.sky-gl { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: -1; pointer-events: none; opacity: 0; transition: opacity 1.2s ease; }
.sky-gl.on { opacity: 1; }
/* fine grain, so the gradient reads as light rather than a fill */
.sky::after {
  content: ""; position: absolute; inset: 0; opacity: 0.06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.nav { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; max-width: 1280px; margin: 0 auto; padding: 20px 24px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: 15px; text-decoration: none; letter-spacing: -0.01em; }
.mark { width: 18px; height: 18px; border-radius: 50%; flex: none; background: linear-gradient(180deg, #141c4a 0%, #26408f 38%, #4f7bd9 66%, #f0a36b 86%, #ff7a45 100%); box-shadow: 0 0 0 1px rgba(255,255,255,0.1), 0 0 12px rgba(120, 150, 255, 0.25); }
.nav nav { display: flex; align-items: center; gap: 24px; font-size: var(--tw-text-md); }
.nav nav a:not(.tw-btn) { color: var(--ink-2); text-decoration: none; transition: color 160ms; }
.nav nav a:not(.tw-btn):hover { color: var(--ink); }

/* buttons, softened for the sky */
.tw-btn { text-decoration: none; display: inline-flex; align-items: center; border: 0; background: rgba(255,255,255,0.1); color: var(--ink); backdrop-filter: blur(8px); }
.tw-btn:hover { background: rgba(255,255,255,0.16); border: 0; }
.tw-btn.primary { background: var(--ink); color: #0b1236; box-shadow: 0 8px 30px -8px rgba(255, 190, 150, 0.45); }
.tw-btn.primary:hover { background: #fff; }
.quiet { font-size: 14px; color: var(--ink-2); text-decoration: none; padding-bottom: 2px; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; opacity: 0.9; }
.quiet:hover { color: var(--ink); }

/* ---------- hero ---------- */
.hero { position: relative; z-index: 2; max-width: 1280px; margin: 0 auto; padding: 44px 24px 40px; }
.intro { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); column-gap: 56px; align-items: end; margin-bottom: 44px; }
h1 { margin: 0; font-weight: 600; font-size: clamp(40px, 4.6vw, 64px); line-height: 1.02; letter-spacing: -0.035em; text-wrap: balance; text-shadow: 0 2px 30px rgba(8, 14, 40, 0.35); }
h1 span { display: inline-block; }
.sub { margin: 0; max-width: 32em; font-size: 17px; line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }
.ctas { display: flex; align-items: center; gap: 22px; margin-top: 24px; }
.ctas .tw-btn, .close .tw-btn { height: 42px; padding: 0 20px; font-size: 14px; border-radius: 12px; }
.fine { margin: 16px 0 0; font-size: var(--tw-text-md); color: var(--ink-3); }

/* one load sequence: the headline rises, then the rest settles in */
@media (prefers-reduced-motion: no-preference) {
  h1 span, .aside, .desk { animation: rise 900ms var(--tw-ease) both; }
  h1 span:nth-child(2) { animation-delay: 90ms; }
  .aside { animation-delay: 220ms; }
  .desk { animation-delay: 380ms; animation-duration: 1300ms; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); filter: blur(6px); } }

/* ---------- the editor, in low light ---------- */
.desk {
  position: relative; display: grid; grid-template-columns: 270px minmax(0, 1fr) 290px; height: min(580px, calc(100vh - 320px)); min-height: 480px;
  background: var(--s0); border-radius: 20px; overflow: hidden;
  box-shadow: 0 50px 120px -30px rgba(2, 4, 16, 0.8), 0 0 0 1px rgba(255,255,255,0.05);
}

/* chat */
.chat { display: flex; flex-direction: column; min-height: 0; background: var(--s1); }
.log { list-style: none; margin: 0; padding: 16px 14px 8px; flex: 1; display: flex; flex-direction: column; gap: 12px; overflow: hidden; justify-content: flex-end; font-size: var(--tw-text-md); -webkit-mask-image: linear-gradient(transparent, #000 36px); mask-image: linear-gradient(transparent, #000 36px); }
.log > li { animation: row-in 420ms var(--tw-ease) both; }
@keyframes row-in { from { opacity: 0; transform: translateY(6px); } }
.msg-user { align-self: flex-end; max-width: 88%; background: var(--s3); padding: 9px 13px; border-radius: 18px 18px 6px 18px; }
.card { background: var(--s2); border-radius: 14px; padding: 10px 12px; }
.card .head { display: flex; align-items: center; gap: 8px; color: var(--ink-3); font-size: var(--tw-text-sm); }
.card .head .mark { width: 14px; height: 14px; }
.card .head b { font-weight: 500; color: var(--ink); }
.card .head .n { margin-left: auto; }
.step { margin-top: 9px; }
.step .t { display: grid; grid-template-columns: 1fr 22px; gap: 6px; align-items: center; font-weight: 500; font-size: var(--tw-text-sm); line-height: 1.35; transition: opacity 300ms; }
.step .undo { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; color: var(--ink-3); transition: background 200ms, color 200ms; }
.step .undo svg { width: 13px; height: 13px; }
.step .undo.press { background: var(--s3); color: var(--ink); }
.step .rows { margin-top: 4px; display: grid; gap: 2px; }
.step .row { display: flex; justify-content: space-between; font-size: var(--tw-text-xs); color: var(--ink-3); }
.step .row .v { font-family: var(--tw-mono); font-size: 10.5px; color: var(--ink-4); }
.step .row .v b { font-weight: 400; color: var(--ink); }
.step.undone .t, .step.undone .rows { opacity: 0.38; }
.step.undone .t span { text-decoration: line-through; text-decoration-color: var(--ink-3); }
.status { display: flex; align-items: center; gap: 8px; color: var(--ink-2); font-size: var(--tw-text-sm); }
.status .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ember); animation: pulse 1.2s ease-in-out infinite; }
.status .dot.still { background: var(--ink-3); animation: none; }
@keyframes pulse { 50% { opacity: 0.3; } }
.reply { line-height: 1.5; }
.reply .who { display: flex; align-items: center; gap: 7px; font-weight: 500; font-size: var(--tw-text-sm); margin-bottom: 4px; }
.reply .who .mark { width: 14px; height: 14px; }
.cost { display: flex; align-items: center; margin-top: 6px; font-size: var(--tw-text-xs); color: var(--ink-3); }
.photon { display: inline-block; width: 11px; height: 11px; margin-right: 6px; flex: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='3.2' fill='%23fff'/%3E%3Cg stroke='%23ffd2a8' stroke-width='1.1' stroke-linecap='round'%3E%3Cpath d='M13 8h2M11.54 11.54l1.41 1.41M8 13v2M4.46 11.54l-1.41 1.41M3 8H1M4.46 4.46L3.05 3.05M8 3V1M11.54 4.46l1.41-1.41'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat; filter: drop-shadow(0 0 4px rgba(255,140,80,.5)); }
.composer { position: relative; margin: 8px 12px 12px; min-height: 44px; padding: 13px 44px 13px 14px; background: var(--s2); border-radius: 16px; font-size: var(--tw-text-md); }
.composer .typed:empty::before { content: "Describe an edit…"; color: var(--ink-4); }
.composer .caret { display: inline-block; width: 1px; height: 15px; margin-left: 1px; vertical-align: -3px; background: var(--ink); opacity: 0; }
.composer.typing .caret { opacity: 1; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.composer .send { position: absolute; right: 7px; top: 7px; width: 30px; height: 30px; border-radius: 50%; background: var(--s3); transition: background 200ms; }
.composer .send::after { content: ""; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23a1a1a1' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 12.5v-9M4 7.5l4-4 4 4'/%3E%3C/svg%3E") center / 14px no-repeat; }
.composer.ready .send { background: var(--ink); }
.composer.ready .send::after { filter: invert(1) brightness(0.2); }

/* photo */
.stage { position: relative; margin: 0; display: flex; flex-direction: column; min-width: 0; background: var(--s0); }
.photo { position: relative; flex: 1; margin: 22px 22px 0; min-height: 0; }
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; will-change: opacity; }
.photo img.base { opacity: 1; }
.photo .tone { position: absolute; inset: 0; opacity: 0; mix-blend-mode: soft-light; pointer-events: none; }
.stage figcaption { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 46px; padding: 0 22px; font-size: var(--tw-text-sm); color: var(--ink-3); }
.replay { font: inherit; color: var(--ink-2); background: none; border: 0; padding: 0; cursor: pointer; }
.replay:hover { color: var(--ink); }
.cursor { position: fixed; z-index: 40; left: 0; top: 0; width: 18px; height: 18px; pointer-events: none; opacity: 0; transition: opacity 300ms;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M3 2l11 6.2-4.6 1.1L7.2 14z' fill='%23fff' stroke='%23000' stroke-width='1' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat; filter: drop-shadow(0 2px 4px rgba(0,0,0,.5)); }

/* panel */
.panel-wrap { position: relative; min-height: 0; background: var(--s1); }
.panel { height: 100%; padding: 4px 16px; overflow: hidden auto; scrollbar-width: none; }
.panel::-webkit-scrollbar { display: none; }
.panel .tw-section { border: 0; }
.panel .tw-section > header { cursor: default; }
.panel .tw-section > header h3 { color: var(--ink-4); }
.panel .rows { display: grid; gap: 10px; padding: 2px 0 14px; min-height: 0; overflow: hidden; }
.panel tw-slider { position: relative; z-index: 1; --tw-track: var(--rail-c); }
.agent-glow { position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0; transition: opacity 0.6s ease; }
.desk.working .agent-glow { opacity: 1; }
.agent-glow > div { position: absolute; inset: 0; filter: blur(22px); }
.agent-glow > div::before { content: ""; position: absolute; inset: 0; padding: 20px; background: linear-gradient(180deg, #26408f, #4f7bd9 50%, var(--amber) 85%, var(--ember)); -webkit-mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
.agent-glow.gl > div { display: none; }
.agent-glow > canvas { position: absolute; inset: 0; width: 100%; height: 100%; mix-blend-mode: plus-lighter; }


/* ---------- the bands below the hero ----------
   The page below the hero is a run of bands with clean edges: black where the product is (a pro tool's room), deep
   blue-hour blue in between, and full-screen photographs. The sky shader shows only at the two ends. */
.bands { position: relative; z-index: 1; }
.band { position: relative; padding-bottom: 150px; }
.band.black { background: #050608; }
.band.blue { background: linear-gradient(180deg, #0c1741 0%, #13235e 55%, #0f1c4d 100%); }
/* a faint grain on the blue bands, so the gradient reads as light */
.band.blue::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.band.blue { --glass: rgba(4, 8, 30, 0.42); --glass-2: rgba(4, 8, 30, 0.6); }
.band.blue h2 span { color: #9fb0e8; }
.band.blue .lede { color: #cfd7f3; }

/* a full-screen photograph, edge to edge, with a small caption */
.bleed { position: relative; height: 100svh; min-height: 520px; max-height: 1100px; overflow: hidden; background: #000; }
.bleed img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- the sections ---------- */

/* one claim, one centrepiece each: a big headline with one sentence beside it, then the thing itself at full width */
.block { max-width: 1280px; margin: 0 auto; padding: 150px 24px 0; }
.head-row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px 64px; align-items: end; margin-bottom: 48px; }
/* headings in two tones, as Linear does: the claim in white, the point in grey */
h2 { margin: 0; font-weight: 600; font-size: clamp(32px, 4vw, 56px); line-height: 1.05; letter-spacing: -0.035em; text-wrap: balance; }
h2 span { color: #7c86a8; }
.lede { margin: 0; max-width: 34em; font-size: 17px; line-height: 1.55; color: var(--ink-2); text-wrap: pretty; }
.note { margin: 22px 0 0; font-size: var(--tw-text-md); color: var(--ink-3); }
h3 { margin: 0; }

/* the eye: one switch over three photos in different light */
.eye-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.ask-chip { background: #222; padding: 9px 14px; border-radius: 18px 18px 6px 18px; font-size: 14px; }
.switch { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 999px; background: var(--glass-2); }
.switch button { position: relative; z-index: 1; border: 0; background: none; color: var(--ink-3); font: 500 14px var(--tw-font); padding: 10px 20px; border-radius: 999px; cursor: pointer; transition: color 300ms; }
.switch button[aria-pressed="true"] { color: #0b1236; }
.switch .thumb { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 999px; background: var(--ink); transition: transform 500ms var(--tw-spring); }
.eye-grid[data-mode="eye"] ~ * .thumb, .switch.eye .thumb { transform: translateX(100%); }
.eye-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.eye-shot { margin: 0; }
.eye-shot .img { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--s0); }
.eye-shot .img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 900ms var(--tw-ease); }
.eye-shot figcaption { padding: 16px 4px 0; }
.eye-shot figcaption b { font-size: 16px; font-weight: 600; }
.vals { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; margin: 12px 0 0; font-size: 13.5px; }
.vals dt { color: var(--ink-3); }
.vals dd { margin: 0; position: relative; font-family: var(--tw-mono); font-size: 12.5px; text-align: right; min-width: 7ch; }
.vals .e, .why .e { position: absolute; right: 0; }
.why { position: relative; margin: 14px 0 0; min-height: 4.6em; color: var(--ink-2); font-size: 14px; line-height: 1.5; }
.why .e { left: 0; top: 0; }
.eye-grid .p, .eye-grid .e { transition: opacity 600ms var(--tw-ease), transform 600ms var(--tw-ease); }
.eye-grid[data-mode="preset"] .e { opacity: 0; }
.eye-grid[data-mode="eye"] .p { opacity: 0; }
.eye-grid[data-mode="eye"] dd .e { transform: none; }
.eye-grid[data-mode="preset"] dd .e { transform: translateY(6px); }
/* values that differ from the preset light up when Bluehour has looked */
.eye-grid[data-mode="eye"] dd.diff .e { color: #ffd2a8; }

/* your move: the photo, and the steps beside it */
.move-stage { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(320px, 1fr); gap: 24px; align-items: stretch; }
.move-photo { position: relative; overflow: hidden; background: var(--s0); aspect-ratio: 5 / 4; }
.move-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 700ms var(--tw-ease), filter 200ms; }
.move-side { display: flex; flex-direction: column; gap: 14px; }
.lane { padding: 18px; border-radius: 20px; background: var(--glass); display: grid; gap: 6px; }
.lane h3 { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-size: 13px; font-weight: 500; color: var(--ink-3); }
.lane h3 .mark { width: 14px; height: 14px; }
.toggle-row { display: grid; grid-template-columns: 38px 1fr; gap: 12px; align-items: center; padding: 10px; border-radius: 14px; cursor: pointer; transition: background 200ms; }
.toggle-row:hover { background: rgba(255,255,255,0.04); }
.toggle-row input { position: absolute; opacity: 0; pointer-events: none; }
.toggle-row .sw { position: relative; width: 34px; height: 20px; border-radius: 999px; background: #2a2f40; transition: background 250ms; }
.toggle-row .sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform 300ms var(--tw-spring); }
.toggle-row input:checked + .sw { background: #4f7bd9; }
.toggle-row input:checked + .sw::after { transform: translateX(14px); }
.toggle-row input:focus-visible + .sw { box-shadow: 0 0 0 2px var(--night), 0 0 0 4px var(--ember); }
.toggle-row b { display: block; font-size: 14.5px; font-weight: 500; transition: color 250ms; }
.toggle-row small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--ink-3); }
.toggle-row input:not(:checked) ~ span b { color: var(--ink-3); text-decoration: line-through; text-decoration-color: var(--ink-3); }
.lane.you { --tw-track: #2a2f40; }
.reply-line { display: flex; gap: 8px; margin: 8px 0 0; min-height: 3em; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.reply-line .mark { width: 14px; height: 14px; margin-top: 3px; }
.soon { display: flex; align-items: baseline; gap: 10px; margin: 4px 4px 0; color: var(--ink-3); font-size: 14px; }
.soon span { flex: none; padding: 2px 8px; border-radius: 999px; background: rgba(255, 190, 150, 0.14); color: #ffd2a8; font-size: 12px; font-weight: 500; }

/* two ways to edit: the side you choose comes forward, the other recedes */
.duo-tabs { position: relative; display: flex; width: max-content; margin: 0 auto 28px; padding: 4px; border-radius: 999px; background: rgba(4, 8, 30, 0.55); }
.duo-tabs button { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 18px; border: 0; border-radius: 999px; background: none; color: #dfe5fb; font: 500 14px var(--tw-font); cursor: pointer; transition: color 320ms ease-out; }
.duo-tabs button .mark { width: 14px; height: 14px; }
.duo-tabs button[aria-selected="true"] { color: #08090a; }
.duo-tabs .pill { position: absolute; top: 4px; bottom: 4px; left: 0; border-radius: 999px; background: #f5f5f7; transition: transform 320ms ease-out, width 320ms ease-out; }
.duo-stage { display: grid; grid-template-columns: minmax(250px, 0.8fr) minmax(0, 1.6fr) minmax(250px, 0.8fr); gap: 20px; align-items: stretch; }
.duo-stage .lane { align-content: start; transition: opacity 500ms var(--tw-ease), transform 500ms var(--tw-ease), filter 500ms var(--tw-ease), box-shadow 500ms var(--tw-ease); }
.duo[data-side="ai"] .duo-hand, .duo[data-side="hand"] .duo-ai { opacity: 0.32; transform: scale(0.97); filter: saturate(0.6); }
.duo[data-side="ai"] .duo-ai, .duo[data-side="hand"] .duo-hand { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14), 0 30px 60px -30px rgba(0, 0, 0, 0.6); }
.duo-ask { justify-self: end; margin: 0 0 8px; padding: 8px 13px; border-radius: 16px 16px 5px 16px; background: rgba(255, 255, 255, 0.1); font-size: 14px; }
.duo-hand { gap: 14px; }
.duo-hand h3 { margin-bottom: 4px; font-size: 13px; font-weight: 500; color: var(--ink-3); }
.duo-hand tw-slider { --tw-track: #2a2f40; }
.duo .move-photo { aspect-ratio: auto; min-height: 380px; }

/* new to editing: say it, watch it, learn it */
.abc { display: grid; grid-template-columns: 1.35fr 1fr; grid-auto-rows: auto; gap: 1px; background: #1a1e2c; overflow: hidden; }
.abc-col { padding: 24px; background: var(--glass); }
.abc-photo { grid-row: span 3; position: relative; margin: 0; background: #0b0d14; aspect-ratio: 4 / 3; align-self: stretch; }
.abc-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.abc-photo .a { opacity: 0; }
.abc h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; font-size: 14px; font-weight: 500; color: var(--ink-3); }
.abc h3 i { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: #1d2232; color: var(--ink); font: 600 12px var(--tw-font); font-style: normal; }
.abc-asks { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.abc-asks button { border: 0; padding: 8px 13px; border-radius: 16px 16px 5px 16px; background: #1b1f2c; color: var(--ink-3); font: 14px var(--tw-font); cursor: pointer; transition: background 200ms, color 200ms; }
.abc-asks button.on { background: #2a2f40; color: var(--ink); }
.abc-slider { --tw-track: #2a2f40; }
.abc-why { margin: 0; font-size: 15px; line-height: 1.55; color: var(--ink-2); }

/* batch with nuance: the whole trip, before and after, each with its own numbers */
.sheet { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.sheet figure { position: relative; margin: 0; aspect-ratio: 3 / 2; overflow: hidden; background: #000; }
.sheet img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 700ms var(--tw-ease); }
.sheet .a { opacity: 0; }
.sheet[data-mode="after"] .a { opacity: 1; transition-delay: calc(var(--i, 0) * 140ms); }
.sheet[data-mode="after"] figcaption { transition-delay: calc(var(--i, 0) * 140ms + 300ms); }
.sheet figcaption { position: absolute; left: 8px; bottom: 8px; padding: 3px 7px; border-radius: 6px; background: rgba(6, 8, 15, 0.72); font: 11.5px var(--tw-mono); color: var(--ink-2); opacity: 0; transform: translateY(4px); transition: opacity 400ms, transform 400ms; }
.sheet[data-mode="after"] figcaption { opacity: 1; transform: none; }
.sheet figure.ref figcaption::before { content: "Reference · "; color: #ffd2a8; }
.sheet figcaption em { display: block; margin-top: 2px; font: italic 400 12px var(--tw-font); color: #ffd2a8; }
.sheet figure.noted figcaption { right: 8px; }
.batch-switch.on .thumb { transform: translateX(100%); }

/* the whole workflow: tabs over real screenshots, framed like a slice of the app */
.flow-tabs { position: relative; display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 28px; border-bottom: 1px solid #1a1d27; }
.flow-tabs button { border: 0; padding: 12px 16px 14px; background: none; color: #7c86a8; font: 500 15px var(--tw-font); cursor: pointer; transition: color 200ms; }
.flow-tabs button[aria-selected="true"] { color: var(--ink); }
@keyframes fill { from { transform: scaleX(0); } }
/* Linear-style framing: a lit top edge, a hairline border fading out, the image fading into the band at the bottom */

/* say it your way: one photo pinned while the words go by */
.sayit { position: relative; z-index: 1; height: calc(100svh + var(--n, 8) * 42svh); background: #050608; }
.say-pin { position: sticky; top: 0; height: 100svh; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr); gap: 48px; align-items: center; max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.say-list { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 6px; }
.say-list li { position: relative; font-size: clamp(20px, 2vw, 28px); font-weight: 500; letter-spacing: -0.02em; color: #505770; transition: color 400ms var(--tw-ease), transform 400ms var(--tw-ease); }
.say-list li.on { color: var(--ink); transform: translateX(10px); }
/* the active request hangs a warm quote mark outside the line */
.say-list li::before { content: "“"; position: absolute; right: 100%; padding-right: 3px; color: #ffd2a8; opacity: 0; transition: opacity 300ms; }
.say-list li.on::before { opacity: 1; }
.say-photo { margin: 0; }
.say-frames { position: relative; aspect-ratio: 3 / 2; background: #000; overflow: hidden; }
.say-frames img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 700ms var(--tw-ease); }
.say-frames img.on { opacity: 1; }
.say-cap { margin-top: 14px; min-height: 3em; font-size: 15px; line-height: 1.5; color: var(--ink-2); }

/* show it a photo: the reference, and a split to drag */
.ref-tabs { display: flex; gap: 6px; margin-bottom: 22px; }
.ref-tabs button { border: 0; padding: 9px 16px; border-radius: 999px; background: none; color: #9fb0e8; font: 500 14px var(--tw-font); cursor: pointer; }
.ref-tabs button[aria-selected="true"] { background: rgba(4, 8, 30, 0.55); color: var(--ink); }
.ref-stage { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px; align-items: start; }
.ref-card { margin: 0; padding: 10px 10px 12px; background: #f4f1ea; box-shadow: 0 20px 40px -18px rgba(0,0,0,0.6); transform: rotate(-2deg); }
.ref-card img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.ref-card figcaption { margin-top: 8px; font-size: 12px; color: #4a4a4a; letter-spacing: 0.02em; }
.ref-compare { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: #000; }
.ref-compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ref-split { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; z-index: 3; }
.ref-line { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: #fff; z-index: 2; pointer-events: none; box-shadow: 0 0 12px rgba(0,0,0,0.4); }
.ref-line::after { content: ""; position: absolute; top: 50%; left: 50%; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,0.4); }
.ref-compare .tag { position: absolute; top: 12px; z-index: 2; padding: 3px 8px; background: rgba(5,6,8,0.6); font-size: 12px; color: #fff; }
.ref-compare .tag.l { left: 12px; } .ref-compare .tag.r { right: 12px; }
.ref-why { max-width: 52em; }

/* under the hood: the flow, and the numbers */
.pipe { margin: 0 0 28px; }
.pipe svg { width: 100%; height: auto; display: block; }
.pipe .pl { font: 500 13px var(--tw-font); fill: #8d98c2; }
.pipe .node rect { fill: #0e111a; stroke: #2a3046; }
.pipe .node.ai rect { stroke: url(#pg); }
.pipe .nt { font: 600 15px var(--tw-font); fill: #f2f4fb; text-anchor: middle; }
.pipe .ns { font: 12px var(--tw-font); fill: #8d98c2; text-anchor: middle; }
.pipe .ln { stroke: #8d98c2; stroke-width: 1.2; fill: none; }
.pipe .flow { stroke: url(#pg); stroke-dasharray: 6 6; }
.pipe .lt { font: 12px var(--tw-mono); fill: #c3cbe6; text-anchor: middle; }
@media (prefers-reduced-motion: no-preference) { .specs.seen .pipe .flow { animation: dash 1.2s linear infinite; } }
@keyframes dash { to { stroke-dashoffset: -24; } }
.spec-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin: 0; background: #1a1e2c; border-radius: 16px; overflow: hidden; }
.spec-grid div { padding: 22px; background: var(--night); }
.spec-grid dt { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; }
.spec-grid dd { margin: 6px 0 0; font-size: 14px; line-height: 1.5; color: var(--ink-3); }

/* the shoot */
.shot { margin: 0; }
.shot figcaption { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; font-size: 14px; color: var(--ink-3); }
.shot figcaption b { font-weight: 500; color: var(--ink); }

/* price: photons you can see. A photon is a little sun; a plan is a field of them, one per whole look */
.units { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid rgba(255, 255, 255, 0.08); margin-bottom: 20px; }
.unit { padding: 22px 24px; display: grid; gap: 14px; align-content: start; }
.unit + .unit { border-left: 1px solid rgba(255, 255, 255, 0.08); }
.unit .ask { justify-self: start; margin: 0; padding: 8px 13px; border-radius: 16px 16px 5px 16px; background: rgba(255, 255, 255, 0.06); font-size: 14px; color: #f7f8f8; }
.unit .suns { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; min-height: 18px; }
.unit .what { margin: 0; font-size: 14px; color: #8a8f98; }
.unit .what b { color: #f7f8f8; font-weight: 500; margin-right: 6px; }
.sun { width: 16px; height: 16px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='3.2' fill='%23fff'/%3E%3Cg stroke='%23ffd2a8' stroke-width='1.1' stroke-linecap='round'%3E%3Cpath d='M13 8h2M11.54 11.54l1.41 1.41M8 13v2M4.46 11.54l-1.41 1.41M3 8H1M4.46 4.46L3.05 3.05M8 3V1M11.54 4.46l1.41-1.41'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat; filter: drop-shadow(0 0 5px rgba(255, 150, 90, 0.55)); }
.tiers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border: 1px solid rgba(255, 255, 255, 0.08); }
.tier { padding: 26px 24px 24px; display: flex; flex-direction: column; background: none; border-radius: 0; }
.tier + .tier { border-left: 1px solid rgba(255, 255, 255, 0.08); }
.tier h3 { font-size: 15px; font-weight: 500; }
.tier .price { margin: 12px 0 0; font-size: 40px; font-weight: 500; letter-spacing: -0.03em; }
.tier .price span { margin-left: 4px; font-size: 14px; font-weight: 400; letter-spacing: 0; color: #8a8f98; }
.tier .amt { margin: 8px 0 0; font-size: 14px; color: #d0d6e0; }
.tier .looks { margin: 12px 0 0; font-size: 13px; color: #8a8f98; }
.tier.pick { background: linear-gradient(180deg, rgba(255, 160, 100, 0.06), transparent 60%); box-shadow: inset 0 1px 0 rgba(255, 210, 168, 0.4); }
/* the field: one warm dot per look, filling in when seen */
.field { display: grid; grid-template-columns: repeat(25, 1fr); gap: 3px; margin-top: 22px; height: 168px; align-content: end; }
.field i { aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, #fff6ec 0 16%, #ffc48f 34%, rgba(255, 122, 69, 0) 70%); opacity: 0; transform: scale(0.4); transition: opacity 300ms var(--tw-ease), transform 400ms var(--tw-ease); }
.field i.extra { background: radial-gradient(circle, rgba(255, 255, 255, 0.6) 0 18%, rgba(255, 196, 143, 0.35) 40%, transparent 72%); }
.plans.seen .field i { opacity: 1; transform: none; }

/* closing, under the night sky */
.close { padding-top: 160px; padding-bottom: 40px; text-align: center; }
.close h2, .close .lede { margin-left: auto; margin-right: auto; }
.close .tw-btn { margin-top: 28px; }

.foot { max-width: 1280px; margin: 0 auto; padding: 100px 24px 48px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 28px; font-size: var(--tw-text-md); color: var(--ink-3); }
.foot p { margin: 0; }
.foot .brand { color: var(--ink-2); font-size: 14px; }
.foot .credits { flex-basis: 100%; font-size: var(--tw-text-sm); }
.foot a { color: var(--ink-2); }

/* ---------- round 2: the measured spec (Linear's type, greys and snippets; Apple's tabs and carousels) ---------- */
.bands, .sayit { --ink: #f7f8f8; --ink-2: #d0d6e0; --ink-3: #8a8f98; --ink-4: #62666d; }
.band.black, .sayit { background: #08090a; }
.band { padding-bottom: 128px; }
.block { padding-top: 128px; }
/* black meeting black: Linear's 2px rule; blue bands start on a faint keyline */
.band.black + .band.black { box-shadow: inset 0 1px 0 #000, inset 0 2px 0 rgba(255, 255, 255, 0.08); }
.band.blue { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08); }
h2 { font-weight: 500; font-size: clamp(30px, 3.4vw, 48px); line-height: 1.04; letter-spacing: -0.022em; }
.bands h2 span, .sayit h2 span { color: #8a8f98; }
.band.blue h2 span { color: #9fb0e8; }
h2.big { font-size: clamp(40px, 5vw, 72px); }
.lede { font-size: clamp(17px, 1.45vw, 21px); line-height: 1.45; color: #d0d6e0; }
.head-row { margin-bottom: 72px; }

/* full-screen photographs: headline at the bottom left, a scrim only as tall as it needs */
.bleed { height: min(100svh, 900px); min-height: 600px; max-height: none; }
.bleed::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent 42%); pointer-events: none; }
.bleed-text { position: absolute; z-index: 1; left: max(24px, calc((100vw - 1232px) / 2)); right: 24px; bottom: 64px; }
.bleed-text h2 { font-size: clamp(36px, 5vw, 72px); font-weight: 600; letter-spacing: -0.03em; color: #fff; }
.bleed-text p { margin: 14px 0 0; font-size: 17px; color: rgba(255, 255, 255, 0.72); }

/* the first photo grows out of the sky: it starts as a framed picture inside blue hour and opens to the full
   screen as you scroll (--p, 0 to 1, from home.js); the headline arrives once it fills the screen */
.bleed.grow { height: 190svh; min-height: 0; max-height: none; background: transparent; overflow: visible; }
.bleed.grow::after { display: none; }
.bleed.grow .pin { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.bleed.grow .frame { position: absolute; inset: 0; clip-path: inset(calc((1 - var(--p, 0)) * 16%) calc((1 - var(--p, 0)) * 20%)); }
.bleed.grow .frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent 42%); opacity: var(--p, 0); pointer-events: none; }

.bleed.grow .bleed-text { opacity: clamp(0, calc((var(--p, 0) - 0.75) * 4), 1); transform: translateY(calc((1 - var(--p, 0)) * 24px)); }

/* product snippets (Linear's recipe): a stage that bleeds past the column and dissolves at the bottom and right,
   a double bezel, a lit corner, a soft glow and fine grain */
.shot-stage { position: relative; margin: 0 -48px; padding: 0 48px;
  -webkit-mask-image: linear-gradient(to top, transparent 0, #000 260px), linear-gradient(to left, transparent 0, #000 420px);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(to top, transparent 0, #000 260px), linear-gradient(to left, transparent 0, #000 420px); mask-composite: intersect; }
/* each screenshot fades away from its own point: right-hand panels (edit, export) fade on the left instead, and the
   batch keeps its filmstrip, fading only a thin strip at the bottom */
.shot-stage[data-focus="right"] { -webkit-mask-image: linear-gradient(to top, transparent 0, #000 260px), linear-gradient(to right, transparent 0, #000 420px); mask-image: linear-gradient(to top, transparent 0, #000 260px), linear-gradient(to right, transparent 0, #000 420px); }
.shot-stage[data-focus="all"] { -webkit-mask-image: linear-gradient(to top, transparent 0, #000 70px), linear-gradient(#000, #000); mask-image: linear-gradient(to top, transparent 0, #000 70px), linear-gradient(#000, #000); }
.shot-stage[data-focus="right"] .panel .shine { -webkit-mask-image: radial-gradient(240px 240px at 100% 0, #000 0, rgba(0, 0, 0, 0.6) 30%, rgba(0, 0, 0, 0.2) 50%, transparent 70%); mask-image: radial-gradient(240px 240px at 100% 0, #000 0, rgba(0, 0, 0, 0.6) 30%, rgba(0, 0, 0, 0.2) 50%, transparent 70%); }
.bezel { border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 22px; padding: 8px; }
.panel { position: relative; overflow: hidden; border-radius: 14px 14px 0 0; background: #0f1011; box-shadow: inset 0 0 0 1px #23252a; }
.panel::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(420px circle at 0 0, rgba(255, 255, 255, 0.05), transparent 55%); mix-blend-mode: lighten; }
.panel .shine { position: absolute; inset: 0; z-index: 2; border-radius: inherit; pointer-events: none; border: 1px solid rgba(255, 255, 255, 0.14);
  -webkit-mask-image: radial-gradient(240px 240px at 0 0, #000 0, rgba(0, 0, 0, 0.6) 30%, rgba(0, 0, 0, 0.2) 50%, transparent 70%); mask-image: radial-gradient(240px 240px at 0 0, #000 0, rgba(0, 0, 0, 0.6) 30%, rgba(0, 0, 0, 0.2) 50%, transparent 70%); }
.panel .grain { position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0.18; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='256' height='256'%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"); }
.panel img { display: block; width: 100%; height: auto; aspect-ratio: 2880 / 1626; object-fit: cover; object-position: top left; opacity: 0; transition: opacity 400ms var(--tw-ease); }
.panel img.in { opacity: 1; }

/* workflow tabs: Apple's platter under the media, a sliding pill that fills as the tab plays */
.flow .flow-tabs { position: relative; display: flex; width: max-content; max-width: 100%; margin: -120px auto 0; padding: 4px; gap: 0; border: 0; border-radius: 999px; background: rgba(51, 51, 54, 0.72); backdrop-filter: blur(20px); z-index: 2; }
.flow .flow-tabs button { position: relative; z-index: 1; height: 36px; padding: 0 16px; border-radius: 999px; color: #f5f5f7; font: 400 14px var(--tw-font); transition: color 320ms ease-out; }
.flow .flow-tabs button[aria-selected="true"] { color: #08090a; }
.flow .pill { position: absolute; top: 4px; bottom: 4px; left: 0; border-radius: 999px; background: #f5f5f7; overflow: hidden; transition: transform 320ms ease-out, width 320ms ease-out; }
.flow .pill i { position: absolute; inset: 0; background: #d9dbe2; transform-origin: left; transform: scaleX(0); }
.flow .pill.run i { animation: fill 6s linear both; }
.flow.low .flow-tabs { margin-top: 24px; }
.flow-cap { max-width: 720px; margin: 32px auto 0; text-align: center; font-size: 17px; line-height: 1.5; color: #8a8f98; min-height: 3em; }
.flow-cap b { color: #f7f8f8; font-weight: 500; }

/* a carousel of looks (Apple's highlights x Fujifilm's film simulations): snap, peeking neighbours, progress dots */
.carousel { display: grid; grid-auto-flow: column; grid-auto-columns: min(1000px, 82vw); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: calc(50vw - min(1000px, 82vw) / 2); padding-inline: calc(50vw - min(1000px, 82vw) / 2); margin-inline: calc(50% - 50vw); scrollbar-width: none; outline: none; }
.carousel::-webkit-scrollbar { display: none; }
.look { scroll-snap-align: center; margin: 0; opacity: 0.35; transition: opacity 400ms var(--tw-ease); }
.look.on { opacity: 1; }
.look .img { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: #000; }
.look .img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 500ms var(--tw-ease); }
.look .img:hover .a, .look .img:active .a { opacity: 0; }
.look .img .hint { position: absolute; right: 12px; bottom: 12px; padding: 3px 8px; background: rgba(5, 6, 8, 0.6); font-size: 12px; color: rgba(255,255,255,0.75); }
.look figcaption { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 24px; padding-top: 20px; }
.look figcaption b { font-size: 24px; font-weight: 500; letter-spacing: -0.015em; }
.look figcaption p { margin: 0; font-size: 17px; line-height: 1.5; color: #8a8f98; }
.look figcaption small { display: block; margin-top: 6px; font-size: 12px; color: #62666d; }
.car-ctl { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 32px; }
.dots { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-radius: 999px; background: rgba(51, 51, 54, 0.72); }
.dots button { position: relative; width: 8px; height: 8px; padding: 0; border: 0; border-radius: 10px; background: rgba(255, 255, 255, 0.36); cursor: pointer; overflow: hidden; transition: width 250ms linear, background-color 250ms linear; }
.dots button.on { width: 48px; background: rgba(255, 255, 255, 0.36); }
.dots button.on i { position: absolute; inset: 0; background: #f5f5f7; transform-origin: left; animation: fill 5s linear both; }
.dots.paused button.on i { animation: none; transform: none; }
.paddle { width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(66, 66, 69, 0.72); color: rgba(255, 255, 255, 0.8); font-size: 20px; line-height: 1; cursor: pointer; }

/* the ending: blue hour again, then the footer on black */
.close { padding: 180px 24px 200px; }
.close .lede { margin-top: 20px; color: #eef1fb; }
.foot { max-width: none; margin: 0; padding: 48px max(24px, calc((100vw - 1232px) / 2)) 56px; background: #08090a; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08); color: #8a8f98; }
.foot .brand { color: #d0d6e0; }
.foot a { color: #d0d6e0; }
.foot .credits { color: #62666d; }

/* the hero's editor gets the same lit corner as the snippets below */
.desk::after { content: ""; position: absolute; inset: 0; z-index: 3; border-radius: inherit; pointer-events: none; border: 1px solid rgba(255, 255, 255, 0.16);
  -webkit-mask-image: radial-gradient(320px 320px at 0 0, #000 0, rgba(0, 0, 0, 0.6) 30%, rgba(0, 0, 0, 0.2) 50%, transparent 70%); mask-image: radial-gradient(320px 320px at 0 0, #000 0, rgba(0, 0, 0, 0.6) 30%, rgba(0, 0, 0, 0.2) 50%, transparent 70%); }

/* presets can't see, as a Linear hairline grid: one box, cells split by hairlines, captions padded inside */
.eye-grid { gap: 0; border: 1px solid rgba(255, 255, 255, 0.08); }
.eye-shot + .eye-shot { border-left: 1px solid rgba(255, 255, 255, 0.08); }
.eye-shot figcaption { padding: 24px 28px 28px; }
.eye-shot figcaption b { font-size: 15px; font-weight: 500; }
.vals { font-size: 13px; }
.vals dt { color: #8a8f98; }
.why { color: #d0d6e0; font-size: 14px; }
.eye-bar .ask-chip { background: rgba(255, 255, 255, 0.04); box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.12); }
.switch { background: rgba(51, 51, 54, 0.72); }

/* the blue band's panels: the same quiet bezel as the snippets */
.band.blue .lane, .band.blue .abc { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); }

/* under the hood: three small line figures in a row (Linear's FIG 0.x), hairlines between */
@property --spread { syntax: "<number>"; inherits: true; initial-value: 0; }
@property --bob { syntax: "<number>"; inherits: true; initial-value: 0; }
.figs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 0 56px; }
.fig { margin: 0; padding: 4px 32px 8px; display: flex; flex-direction: column; }
.fig:first-child { padding-left: 0; }
.fig + .fig { border-left: 1px solid rgba(255, 255, 255, 0.08); }
.fig-n { font: 400 11.5px var(--tw-mono); letter-spacing: 0.08em; color: #3e434c; }
.fig-art { height: 290px; margin: 14px 0 26px; }
.fig-art svg { display: block; width: 100%; height: 100%; overflow: visible; }
.fig figcaption b { display: block; font-size: 16px; font-weight: 500; color: #f7f8f8; }
.fig figcaption p { margin: 8px 0 0; font-size: 15px; line-height: 1.55; color: #8a8f98; max-width: 30em; }
/* motion, slow and small: the stack breathes apart, the preview floats, the undone step dips and returns */
.fig .plate { transform: translate(calc(var(--lx) * var(--i) * var(--spread) * 1px), calc(var(--ly) * var(--i) * var(--spread) * 1px)); }
.fig .card { transform: translate(calc(var(--lx) * var(--bob) * 1px), calc(var(--ly) * var(--bob) * 1px)); }
.fig .undone { transform: translate(calc(var(--lx) * var(--bob) * 1px), calc(var(--ly) * var(--bob) * 1px)); }
@media (prefers-reduced-motion: no-preference) {
  .figs.seen [data-fig="stack"] { animation: spread 7s var(--tw-ease) infinite; }
  .figs.seen [data-fig="preview"] { animation: bob 6s ease-in-out infinite; }
  .figs.seen [data-fig="steps"] { animation: dip 7s var(--tw-ease) infinite; }
}
.figs [data-fig="steps"] { --bob: -46; }
@keyframes spread { 0%, 100% { --spread: 0; } 45%, 60% { --spread: 5; } }
@keyframes bob { 0%, 100% { --bob: 0; } 50% { --bob: 8; } }
@keyframes dip { 0%, 30% { --bob: -46; } 50%, 72% { --bob: 0; } 92%, 100% { --bob: -46; } }

/* the scopes under the pinned photo: five swatches read from the look, and its RGB histogram */
.scope { display: grid; grid-template-columns: 1fr 200px; gap: 16px; align-items: end; margin-top: 14px; }
.swatches { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.swatches span { display: grid; gap: 6px; }
.swatches i { display: block; height: 26px; background: var(--c); transition: background 600ms var(--tw-ease); }
.swatches b { font: 400 10.5px var(--tw-mono); color: #62666d; letter-spacing: 0.02em; }
.histo { width: 100%; height: 44px; }
.histo path { mix-blend-mode: screen; transition: d 600ms var(--tw-ease); }
.histo .r { fill: rgba(255, 90, 90, 0.55); } .histo .g { fill: rgba(90, 230, 120, 0.5); } .histo .b { fill: rgba(90, 140, 255, 0.6); }

/* the photo's four looks: crossfading images, chosen by pill tabs along the bottom (Apple's platter) */
.looks4 { position: absolute; inset: 0; }
.looks4 img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; opacity: 0; transition: opacity 900ms var(--tw-ease); transform: scale(calc(1.12 - var(--p, 0) * 0.12)); }
.looks4 img.on { opacity: 1; }
.bleed.grow .bleed-text { bottom: 128px; }
.bleed-pills { position: absolute; z-index: 2; left: 0; right: 0; margin: 0 auto; width: max-content; bottom: 44px; display: flex; gap: 0; padding: 4px; border-radius: 999px; background: rgba(28, 28, 32, 0.6); backdrop-filter: blur(20px); opacity: clamp(0, calc((var(--p, 0) - 0.8) * 5), 1); max-width: calc(100% - 48px); overflow-x: auto; scrollbar-width: none; }
.bleed-pills button { flex: none; height: 36px; padding: 0 16px; border: 0; border-radius: 999px; background: none; color: #f5f5f7; font: 400 14px var(--tw-font); cursor: pointer; transition: background 320ms ease-out, color 320ms ease-out; }
.bleed-pills button[aria-selected="true"] { background: #f5f5f7; color: #08090a; }

/* the band right after the hero: the sky fades into it over the last stretch, rather than stopping at an edge */
.band.rise::before { content: ""; position: absolute; left: 0; right: 0; top: -200px; height: 200px; background: linear-gradient(to bottom, rgba(8, 9, 10, 0), rgba(8, 9, 10, 0.55) 55%, #08090a); pointer-events: none; }

/* a proof sheet's details on the full-screen photos: the camera and the recipe in mono, registration marks */
.exif { display: grid; gap: 4px; margin: 18px 0 0; font: 400 11.5px/1.5 var(--tw-mono); color: rgba(255, 255, 255, 0.62); }
.exif div { display: grid; grid-template-columns: 76px 1fr; gap: 12px; }
.exif dt { color: rgba(255, 255, 255, 0.4); }
.exif dd { margin: 0; }
.marks { position: absolute; inset: 22px; z-index: 1; pointer-events: none; }
.marks i { position: absolute; width: 14px; height: 14px; }
.marks i::before, .marks i::after { content: ""; position: absolute; background: rgba(255, 255, 255, 0.55); }
.marks i::before { left: 6.5px; top: 0; width: 1px; height: 14px; }
.marks i::after { top: 6.5px; left: 0; width: 14px; height: 1px; }
.marks i:nth-child(1) { left: 0; top: 0; } .marks i:nth-child(2) { right: 0; top: 0; } .marks i:nth-child(3) { left: 0; bottom: 0; } .marks i:nth-child(4) { right: 0; bottom: 0; }
.bleed.grow .marks { opacity: clamp(0, calc((var(--p, 0) - 0.8) * 5), 1); }
.bleed img.loch { object-position: 50% 68%; }

/* section headings arrive like a focus pull: soft, then sharp */
@media (prefers-reduced-motion: no-preference) {
  .fp { filter: blur(10px); opacity: 0.25; transform: translateY(6px); transition: filter 900ms var(--tw-ease), opacity 700ms var(--tw-ease), transform 900ms var(--tw-ease); }
  .fp.in { filter: none; opacity: 1; transform: none; }
}

/* ---------- smaller screens ---------- */
@media (max-width: 1080px) {
  .desk { grid-template-columns: 240px minmax(0, 1fr) 260px; }
  .intro { grid-template-columns: 1fr; }
  .intro h1 { margin-bottom: 20px; }
  .head-row, .move-stage, .abc, .ref-stage, .figs, .duo-stage { grid-template-columns: 1fr; }
  .abc-photo { grid-row: auto; }
  .duo .move-photo { min-height: 0; aspect-ratio: 4 / 3; order: -1; }
  .fig, .fig:first-child { padding: 0 0 28px; }
  .fig + .fig { border-left: 0; border-top: 1px solid rgba(255, 255, 255, 0.08); padding-top: 28px; }
  .fig-art { height: 240px; }
  .say-pin { grid-template-columns: 1fr; align-content: center; gap: 20px; }
  .look figcaption { grid-template-columns: 1fr; gap: 8px; }
  .shot-stage { margin: 0 -16px; padding: 0 16px; }
  .flow .flow-tabs { margin-top: -60px; overflow-x: auto; }
  .bleed-text { bottom: 36px; }
  .bleed.grow .bleed-text { bottom: 104px; }
  .bleed-pills { left: 16px; right: 16px; width: auto; max-width: none; }
  .exif div { grid-template-columns: 1fr; gap: 0; }
  .exif dt { display: none; }
  .say-list { margin-top: 16px; }
  .scope { grid-template-columns: 1fr; }
  .histo { display: none; }
  .ref-card { width: 180px; }
  .sheet, .spec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pipe { overflow-x: auto; }
  .pipe svg { min-width: 760px; }
  .tiers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .units { grid-template-columns: 1fr; }
  .unit + .unit { border-left: 0; border-top: 1px solid rgba(255, 255, 255, 0.08); }
  .tier:nth-child(3) { border-left: 0; }
  .tier:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, 0.08); }
}
@media (max-width: 860px) {
  .hero { padding: 32px 16px 24px; }
  .intro { margin-bottom: 32px; }
  .sub, .lede { font-size: 16px; }
  .nav { padding: 16px; }
  .nav nav a:not(.tw-btn) { display: none; }
  .desk { grid-template-columns: 1fr; height: auto; min-height: 0; border-radius: 18px; }
  .stage { order: 1; }
  .photo { aspect-ratio: 5 / 4; margin: 12px 12px 0; flex: none; }
  .chat { order: 2; }
  .log { max-height: 210px; }
  .panel-wrap { order: 3; }
  .panel .tw-section:nth-of-type(1) tw-slider:not([data-id="exposure"]),
  .panel .tw-section:nth-of-type(3) { display: none; }
  .block { padding: 96px 16px 0; }
  .head-row { margin-bottom: 28px; }
  .eye-bar { flex-direction: column; align-items: flex-start; }
  .eye-grid { grid-template-columns: 1fr; }
  .eye-shot + .eye-shot { border-left: 0; border-top: 1px solid rgba(255, 255, 255, 0.08); }
  .tiers { grid-template-columns: 1fr 1fr; }
  .foot { padding: 72px 16px 40px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .log > li { animation: none; }
  .status .dot, .composer.typing .caret { animation: none; }
}
