/* tid.fif7y.com. Tokens first; a big statement, a short body, one visual per module, Tid's
   type (Inter) and Tid's colours (achromatic, with each module's lead phrase borrowing a colour
   from its picture). */
:root {
  /* Tid's palette: neutral greys with no tint, anchored on the clock's own inks (dark #121212, light #ededed). */
  --page: #ffffff;
  --tile: #f4f4f4;
  --ink: #181818;
  --ink-2: #6b6b6b;
  --ink-3: #8a8a8a;
  --dark: #000000;
  --dark-ink: #ededed;                        /* the clock's light ink */
  --dark-ink-2: #a3a3a3;
  --bezel: #161616;                           /* device frames */

  /* Lead-phrase colours, each lent by the picture its module shows. */
  --c-dawn: #b4561f;
  --c-sky: #2f62c0;
  --c-night: #c2462c;
  --c-ice: #8fb8e8;
  --c-kelp: #2c7a55;

  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  --hw: 600;                                  /* headline weight: Semibold */
  --bw: 600;                                  /* lede and lead weight, matched to the headlines */
  /* Type: one scale, a major third (x1.25) up from the 17px body: 17 · 21 · 26 · 33 · 42 · 52 · 65 · 81 · 100 · 128. */
  --t-hero: clamp(64px, 9vw, 128px);
  --t-super: clamp(50px, 7vw, 100px);
  --t-section: clamp(50px, 7vw, 100px);       /* chapter headline */
  --t-header: clamp(33px, 3.6vw, 52px);       /* module header */
  --t-ai: clamp(33px, 3.6vw, 52px);
  --t-statement: clamp(28px, 2.9vw, 42px);    /* lead-phrase paragraph */
  --t-beat: clamp(24px, 2.3vw, 33px);
  --t-caption: clamp(20px, 1.8vw, 26px);      /* a caption over a picture */
  --t-intro: clamp(19px, 1.46vw, 21px);
  --t-body: 17px;
  --t-eyebrow: clamp(17px, 1.4vw, 21px);
  --t-small: 12px;                            /* below the scale: fine print */

  --wrap: 1040px;
  --wrap-wide: 1280px;
  --gutter: max(22px, 4vw);
  --sec: clamp(104px, 9.6vw, 136px);          /* section padding */
  --r-tile: 26px;
  --r-media: 16px;

  /* Motion: one beat of 140ms, every duration a multiple or half of it, named by role. */
  --d-flick: 70ms;                            /* a label leaving */
  --d-tap: 140ms;                             /* hover, quick fades */
  --d-fade: 280ms;                            /* fades, text out */
  --d-move: 420ms;                            /* small moves: dots, dims, chips */
  --d-settle: 560ms;                          /* text settling in, slower fades */
  --d-morph: 700ms;                           /* spring morphs */
  --d-reveal: 840ms;                          /* scroll reveals */
  --d-glide: 1120ms;                          /* long glides, scroll-to */
  --d-sweep: 1400ms;                          /* a lead phrase's colour sweep */
  --ease-out: cubic-bezier(.2, .9, .25, 1);
  --ease-in: cubic-bezier(.55, 0, .8, .4);    /* exits: hold, then go */
  --ease-in-out: cubic-bezier(.45, 0, .2, 1);
  --ease-glide: cubic-bezier(.6, 0, .3, 1);
  --ease-soft: cubic-bezier(.4, .05, .4, 1);
  /* A damped spring that overshoots about 3% and settles inside --d-morph: lively, never toyish. */
  --spring: linear(0, 0.024, 0.086, 0.172, 0.27, 0.374, 0.476, 0.572, 0.659, 0.737, 0.804, 0.861, 0.907, 0.944, 0.973, 0.994, 1.01, 1.021, 1.027, 1.031, 1.032, 1.031, 1.029, 1.026, 1.023, 1.02, 1.017, 1.014, 1.011, 1.008, 1.006, 1.004, 1.003, 1.002, 1.001, 1, 1);
}

@font-face { font-family: "Inter"; font-weight: 300 600; font-display: swap; src: url(/fonts/Inter-normal.woff2) format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-weight: 400; font-display: swap; src: url(/fonts/InstrumentSerif-normal.woff2) format("woff2"); }
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html.lenis, html.lenis body { height: auto; }
body { background: var(--page); color: var(--ink); font: 400 var(--t-body)/1.47 var(--sans); -webkit-font-smoothing: antialiased; font-feature-settings: "ss01", "cv11"; overflow-x: clip; letter-spacing: -.011em; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img, canvas { display: block; max-width: 100%; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.wrap-wide { width: min(var(--wrap-wide), 100% - 2 * var(--gutter)); margin-inline: auto; }
.narrow { max-width: 40rem; }

/* Type roles */
.t-hero { font-size: var(--t-hero); font-weight: var(--hw); letter-spacing: -.045em; line-height: 1; }
.t-hero-sub { font-size: var(--t-intro); font-weight: 500; color: rgba(245,245,247,.86); margin-top: .5em; }
.t-super { font-size: var(--t-super); font-weight: var(--hw); letter-spacing: -.04em; line-height: 1.04; text-wrap: balance; }
.t-section { font-size: var(--t-section); font-weight: var(--hw); letter-spacing: -.035em; line-height: 1.04; text-wrap: balance; }
.t-header { font-size: var(--t-header); font-weight: var(--hw); letter-spacing: -.025em; line-height: 1.08; }
.t-ai { font-size: var(--t-ai); font-weight: var(--hw); letter-spacing: -.03em; line-height: 1.07; }
.t-statement { font-size: var(--t-statement); font-weight: var(--bw); letter-spacing: -.022em; line-height: 1.2; text-wrap: pretty; }
.t-intro { font-size: var(--t-intro); font-weight: var(--bw); line-height: 1.38; letter-spacing: -.012em; text-wrap: pretty; }
.t-beat { font-size: var(--t-beat); font-weight: 500; letter-spacing: -.02em; line-height: 1.15; }
.eyebrow { font-size: var(--t-eyebrow); font-weight: 600; color: var(--ink-2); letter-spacing: -.01em; margin-bottom: .6em; }
.on-dark { color: var(--dark-ink); }
.eyebrow.on-dark { color: rgba(245,245,247,.7); }
.soft-ink { color: var(--ink-3); }
.lead { font-weight: 600; }
/* The lead phrase: ink, then a pale peak sweeps down and it settles on the picture's colour (1.4 s, once). */
.sweep { background: linear-gradient(184deg, var(--ink) 20%, var(--peak, #fff) 43%, var(--accent) 76%, var(--accent) 95%) no-repeat 0 -100% / 100% 200%; -webkit-background-clip: text; background-clip: text; color: transparent; transition: background-position var(--d-sweep) linear; }
.sweep.is-in { background-position: 0 200%; }
.lead-dawn { color: var(--c-dawn); --accent: var(--c-dawn); --peak: #ffd9b8; } .lead-sky { color: var(--c-sky); --accent: var(--c-sky); --peak: #a8d3fb; } .lead-night { color: var(--c-night); } .lead-ice { color: var(--c-ice); }

/* Pills */
.pill { display: inline-flex; align-items: center; gap: .5em; height: 48px; padding: 0 26px; border-radius: 980px; background: var(--ink); color: #fff; font-size: 17px; font-weight: 500; transition: background var(--d-fade) var(--ease-out), transform var(--d-fade) var(--ease-out); }
.pill:hover { background: #000; }
.pill:active { transform: scale(.97); }
.pill-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.pill-ghost:hover { background: rgba(0,0,0,.05); }
.pill-ghost span { font-size: .7em; }
.pill-s { height: 28px; padding: 0 14px; font-size: 12px; }
.pill.is-soon { pointer-events: none; }       /* "Coming soon" stands where Download goes until the release; it takes no clicks */
.cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 36px; }

/* Local nav */
/* The bar lies over the page (the hero runs under it). Over the hero it's bare, white type on the
   night; past the hero it takes its white ground back. */
.localnav { position: sticky; top: 0; z-index: 50; height: 52px; margin-bottom: -52px; background: rgba(255,255,255,.72); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); box-shadow: inset 0 -1px 0 rgba(0,0,0,.08); transition: background-color var(--d-move) var(--ease-out), box-shadow var(--d-move) var(--ease-out); }
html:not([data-kit]) .localnav.on-hero { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none; }
html:not([data-kit]) .localnav.on-hero :is(.ln-name, .ln-links) { color: var(--dark-ink); }
html:not([data-kit]) .localnav.on-hero .ln-links a.is-on { box-shadow: 0 17px 0 -16px var(--dark-ink); }
html:not([data-kit]) .localnav.on-hero .ln-links .pill { background: var(--dark-ink); color: #000; }
.ln-name, .ln-links, .ln-links .pill { transition: color var(--d-move) var(--ease-out), background-color var(--d-move) var(--ease-out); }
.localnav-in { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin: auto; height: 100%; display: flex; align-items: center; justify-content: space-between; }
.ln-name { display: flex; align-items: center; gap: 10px; font-size: 21px; font-weight: 600; letter-spacing: -.02em; }
.ln-name img { border-radius: 5px; }
.ln-links { display: flex; align-items: center; gap: 26px; font-size: 12px; color: var(--ink); }
.ln-links a:not(.pill) { opacity: .8; }
.ln-links a.is-on { opacity: 1; box-shadow: 0 17px 0 -16px var(--ink); }
.ln-links .pill { color: #fff; }
@media (max-width: 640px) { .ln-links a:not(.pill) { display: none; } }


/* Reveal: rise and settle, once. */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity var(--d-reveal) var(--ease-soft), transform var(--d-morph) var(--ease-soft); }
.reveal.is-in { opacity: 1; transform: none; }

/* 01 Hero: the name and the claim on black, the picture framed below; scroll opens the frame to full-bleed. */
.hero { background: #000; }
.hero-pin { position: relative; height: 100svh; min-height: 600px; overflow: hidden; }
/* The picture rises over the line and the button as they fade, never under them. It takes no clicks. */
.hero-frame { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.hero-copy { z-index: 1; }
/* Starts low, running off the bottom of the screen, so the line and the button own the top half.
   Scroll lifts it and opens it to full-bleed. */
.hero-plate { width: 100%; height: 100%; transform-origin: 50% 0; transform: translateY(50%) scale(.8); border-radius: 40px; will-change: transform; }
.hero-copy { position: absolute; left: 0; right: 0; top: 0; height: 50%; display: flex; flex-direction: column; justify-content: center; padding: 52px 0 1%; text-align: center; }
.hero-copy .eyebrow { font-size: clamp(21px, 2vw, 28px); font-weight: 600; color: var(--dark-ink); margin-bottom: .2em; }
.hero-cta { display: flex; gap: 18px; justify-content: center; align-items: center; margin-top: 32px; color: var(--dark-ink-2); font-size: 15px; }
.pill-light { background: var(--dark-ink); color: #000; height: 40px; padding: 0 20px; font-size: 15px; }
.pill-light:hover { background: #fff; }

/* 02 Intro */
.intro { position: relative; padding: calc(var(--sec) * 1.4) 0 calc(var(--sec) * 1.6); overflow: clip; background: var(--tile); }
.intro-copy { position: relative; z-index: 2; width: min(780px, 100% - 2 * var(--gutter)); margin: auto; text-align: center; }
.intro-copy .t-intro { margin-top: 28px; }
.drift { position: absolute; inset: 0; pointer-events: none; }
.lid { position: absolute; width: clamp(220px, 30vw, 440px); aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden; background: #111; padding: 7px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.35), 0 0 0 1px rgba(0,0,0,.06); }
.lid img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }
.lid-a { left: -4vw; top: 4%; transform: rotate(-4deg); }
.lid-b { right: -6vw; top: 0%; transform: rotate(3deg); }
.lid-c { left: -2vw; bottom: -2%; transform: rotate(3deg); }
.lid-d { right: -3vw; bottom: 2%; transform: rotate(-2deg); }
@media (max-width: 900px) { .lid { opacity: .35; } }

/* 03 Highlights */
.highlights { padding: var(--sec) 0 calc(var(--sec) * .8); }
.highlights .t-header { margin-bottom: 48px; }
.hl-track { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 0 calc((100vw - min(var(--wrap-wide), 100vw - 2 * var(--gutter))) / 2); scroll-padding: 0 calc((100vw - min(var(--wrap-wide), 100vw - 2 * var(--gutter))) / 2); }
.hl-track::-webkit-scrollbar { display: none; }
.hl-track { cursor: grab; user-select: none; -webkit-user-select: none; }
.hl-track img { -webkit-user-drag: none; }
.hl-track.is-dragging { cursor: grabbing; scroll-snap-type: none; }   /* a mouse drag (main.js); it lands on a card itself */
.hl-card { flex: 0 0 min(var(--wrap-wide), 100vw - 2 * var(--gutter)); height: min(680px, 72vh); scroll-snap-align: start; position: relative; border-radius: var(--r-tile); background: var(--tile); overflow: hidden; display: flex; flex-direction: column; }
.hl-text { position: relative; z-index: 2; padding: 48px 56px 0; max-width: 584px; margin: 0 auto; text-align: center; font-size: clamp(20px, 2vw, 28px); font-weight: 500; letter-spacing: -.02em; line-height: 1.2; color: var(--ink); }
.hl-text b { font-weight: 600; }
.hl-dark { background: #000; }
.hl-dark .hl-text { color: var(--dark-ink); }
.hl-visual { position: absolute; left: 22%; right: -2%; bottom: -6%; top: 34%; border-radius: 16px 16px 0 0; overflow: hidden; box-shadow: 0 0 0 10px var(--bezel); }
.hl-visual > img { width: 100%; height: 100%; object-fit: cover; }
.hl-depth > img { object-position: 50% 22%; }   /* the time and the coral in front of it, whole */
.hl-desk .mini-win { position: absolute; border-radius: 10px; background: rgba(250,250,252,.82); backdrop-filter: blur(16px); box-shadow: 0 20px 40px -10px rgba(0,0,0,.35); }
.hl-desk .w1 { left: 4%; top: 54%; width: 30%; height: 32%; }
.hl-desk .w2 { left: 57%; top: 9%; width: 37%; height: 44%; }
/* The windows' own controls, as in Around the clock, sized down to these small windows. */
.hl-desk .mini-win i { position: absolute; left: 10px; top: 10px; width: 37px; height: 9px; background:
    radial-gradient(circle 4.5px at 4.5px 4.5px, #ff5f57 98%, transparent) 0 0 / 9px 9px no-repeat,
    radial-gradient(circle 4.5px at 4.5px 4.5px, #febc2e 98%, transparent) 14px 0 / 9px 9px no-repeat,
    radial-gradient(circle 4.5px at 4.5px 4.5px, #28c840 98%, transparent) 28px 0 / 9px 9px no-repeat; }
/* Whole wallpapers, never cropped: six 16:10 tiles as large as the space below the text allows. */
.hl-grid { left: 4%; right: 4%; top: 31%; bottom: 8%; border-radius: 0; overflow: visible; box-shadow: none; container-type: size; display: grid; grid-template-columns: repeat(3, auto); place-content: center; gap: 16px; }
.hl-grid img { width: min((100cqw - 32px) / 3, (100cqh - 16px) / 2 * 1.6); height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 10px; box-shadow: 0 18px 36px -18px rgba(0,0,0,.4); }
.hl-night { left: 0; right: 0; top: 30%; bottom: 0; border-radius: 0; background: none; box-shadow: none; }
.hl-night canvas { width: 100%; height: 100%; }
/* A desk: a laptop, the main display and a second one, standing on one line, centred, nothing cut.
   Sized by the card's height too (container units), so they always fit. */
.hl-displays { left: 4%; right: 4%; top: 31%; bottom: 8%; border-radius: 0; overflow: visible; box-shadow: none; background: none; container-type: size; display: flex; align-items: flex-end; justify-content: center; gap: 3cqw; }
.dev { display: flex; flex-direction: column; align-items: center; }
.dev .scr { width: 100%; aspect-ratio: 16 / 10; padding: .55cqw; border-radius: 1.1cqw; background: var(--bezel); box-shadow: 0 30px 50px -26px rgba(0,0,0,.45); }
.dev .scr img { width: 100%; height: 100%; object-fit: cover; border-radius: .6cqw; }
.dev-main { width: min(40cqw, 140cqh); }
.dev-side { width: min(24cqw, 84cqh); }
.dev-laptop { width: min(26cqw, 91cqh); }
.dev .stand { position: relative; width: 14%; height: 10cqh; background: linear-gradient(90deg, #bfbfc4, #e4e4e8 50%, #bfbfc4); }
.dev .stand::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 280%; height: 1.4cqh; transform: translateX(-50%); border-radius: 3px 3px 1px 1px; background: linear-gradient(#dcdce0, #b8b8bd); }
.dev-laptop .scr { border-radius: 1.1cqw 1.1cqw .3cqw .3cqw; }
.dev-laptop .deck { width: 116%; height: 2.4cqh; border-radius: 0 0 1.4cqw 1.4cqw / 0 0 1.6cqh 1.6cqh; background: linear-gradient(#e6e6ea, #b5b5ba); box-shadow: 0 16px 24px -14px rgba(0,0,0,.35); }
.hl-controls { display: flex; justify-content: center; gap: 14px; margin-top: 28px; }
.dots { display: flex; gap: 14px; align-items: center; height: 56px; }
.dot { position: relative; width: 8px; height: 8px; border-radius: 99px; background: rgba(0,0,0,.42); overflow: hidden; transition: width var(--d-settle) var(--ease-out); }
.dot.is-on { width: 48px; background: rgba(0,0,0,.18); }
.dot i { position: absolute; inset: 0; width: 0; background: var(--ink); border-radius: inherit; }
.playpause { width: 56px; height: 56px; border-radius: 99px; font-size: 14px; }
.playpause .pp-play { display: none; }
.playpause.is-paused .pp-play { display: inline; } .playpause.is-paused .pp-pause { display: none; }

/* Section heads */
.sec-head { text-align: center; margin-bottom: 56px; }
.sec-head .t-intro { margin: 17px auto 0; color: var(--ink); }

/* 04 Day */
.day { padding-top: var(--sec); }
.day-pin { height: calc(100svh - 52px); position: relative; }
.day-stage { position: absolute; inset: 0; overflow: hidden; background: #000; }
.day-plate { position: absolute; inset: 0; width: 100%; height: 100%; }
.day-plate-b { opacity: 0; }
:is(.day-windows, .yours-wins) .win { position: absolute; border-radius: 12px; overflow: hidden; background:
    linear-gradient(rgba(0,0,0,.06), rgba(0,0,0,.06)) 0 0 / 30% 100% no-repeat,
    rgba(248,248,250,.9);
  backdrop-filter: blur(24px) saturate(160%); box-shadow: 0 30px 70px -20px rgba(0,0,0,.45), 0 0 0 .5px rgba(0,0,0,.12);
  opacity: 0; scale: .94; transition: opacity var(--d-fade) var(--ease-out), scale var(--d-move) var(--ease-out); }
:is(.day-windows, .yours-wins) .win.is-open { opacity: 1; scale: 1; }
:is(.day-windows, .yours-wins) .win-plain { background: rgba(248,248,250,.9); }
:is(.day-windows, .yours-wins) .win i { position: absolute; left: 14px; top: 14px; width: 52px; height: 12px; background:
    radial-gradient(circle 6px at 6px 6px, #ff5f57 98%, transparent) 0 0 / 12px 12px no-repeat,
    radial-gradient(circle 6px at 6px 6px, #febc2e 98%, transparent) 20px 0 / 12px 12px no-repeat,
    radial-gradient(circle 6px at 6px 6px, #28c840 98%, transparent) 40px 0 / 12px 12px no-repeat; }
/* Sizes only: where each window stands, and when it's open, is the day's (js/main.js). */
.day-windows .win-a { width: 28%; height: 50%; }
.day-windows .win-b { width: 24%; height: 46%; }
.day-windows .win-c { width: 19%; height: 26%; }
.day-windows .win-d { width: 26%; height: 44%; }
/* On a tall screen (a phone) the same windows keep a window's shape, wider than tall. */
@media (orientation: portrait) {
  .day-windows .win { height: auto; aspect-ratio: 8 / 5; }
  .day-windows .win-a { width: 62%; }
  .day-windows .win-b { width: 52%; }
  .day-windows .win-c { width: 40%; aspect-ratio: 4 / 3; }
  .day-windows .win-d { width: 54%; }
}
.day-caps { position: absolute; left: 0; right: 0; bottom: 5vh; display: grid; justify-items: start; padding-inline: max(var(--gutter), (100vw - var(--wrap-wide)) / 2); }
.day-cap { grid-area: 1 / 1; max-width: 30em; color: var(--ink); font-size: var(--t-caption); font-weight: 500; line-height: 1.25; letter-spacing: -.02em; opacity: 0; transform: translateY(16px); transition: opacity var(--d-settle) var(--ease-out), transform var(--d-settle) var(--ease-out), color var(--d-settle) var(--ease-out); }
.day-cap.is-on { opacity: 1; transform: none; }
/* Dark on the day's picture; once night falls the ink turns light, like the page under it. */
.day-caps.is-night .day-cap { color: rgba(255,255,255,.88); }
.day-caps.is-night .lead-night { color: #ff8a6b; }

/* 05 Depth */
.depth { padding-top: var(--sec); }
.depth-pin { height: calc(100svh - 52px); position: relative; overflow: visible clip; display: flex; flex-direction: column; justify-content: center; gap: clamp(24px, 4.5vh, 48px); width: min(var(--wrap-wide), 100% - 2 * var(--gutter)); margin: auto; }
/* The title arrives big and alone in the middle, then recedes, smaller and out of focus, while
   the stage rises over it to the middle (main.js). It never takes room from the stage. */
.depth-head { position: absolute; inset: 0; display: grid; place-items: center; margin-bottom: 0; pointer-events: none; }
.depth-head .t-section { font-size: clamp(40px, 11.5vw, 168px); white-space: nowrap; transform-origin: 50% 50%; }
.depth-body { position: relative; z-index: 1; }
.depth-body { display: grid; grid-template-columns: 1fr minmax(260px, 360px); gap: 48px; align-items: center; }
/* 16:10, never taller than the screen leaves it. */
.depth-stage { width: min(100%, (100svh - 52px - 120px) * 1.6); justify-self: center; }
.depth-stage { position: relative; aspect-ratio: 16 / 10; border-radius: var(--r-tile); overflow: hidden; background: #ddd; touch-action: none; }
.depth-plate, .depth-map { position: absolute; inset: 0; width: 100%; height: 100%; }
.depth-map { mix-blend-mode: normal; }
.depth-stage.is-free { cursor: grab; }
.depth-stage.is-free:active { cursor: grabbing; }
.depth-beats { display: grid; }
/* The steps, a dot each above them (a constant place, whatever each text's length); the
   active one is a short ink pill. A dot takes you to its step. */
.beat-dots { grid-row: 1; display: flex; gap: 8px; align-items: center; height: 8px; margin-bottom: 26px; }
.beat-dot { position: relative; width: 8px; height: 8px; border-radius: 99px; background: rgba(0,0,0,.2); transition: width var(--d-settle) var(--ease-out), background var(--d-settle) var(--ease-out); }
.beat-dot::after { content: ""; position: absolute; inset: -10px -4px; }   /* a finger-sized target */
.beat-dot:hover { background: rgba(0,0,0,.42); }
.beat-dot.is-on { width: 24px; background: var(--ink); }
.beat { grid-area: 2 / 1; }   /* opacity and drift follow the scroll (main.js) */
.beat + .beat { opacity: 0; }
/* The last beat's arrow points at the picture. Once the beat has arrived (main.js) the tail draws
   itself, then the point lands; leaving, the point goes first. On its own clock, not the scroll's,
   so it's never caught half drawn. */
.beat-arrow { display: block; width: 72px; height: 32px; margin: 16px 0 0 -26px; overflow: visible; }
.beat-arrow path { fill: none; stroke: var(--ink-2); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.beat-arrow .tail { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset var(--d-move) var(--ease-in-out); }
.beat-arrow .head { opacity: 0; transition: opacity var(--d-tap) var(--ease-out); }
.beat-arrow.is-drawn .tail { stroke-dashoffset: 0; transition: stroke-dashoffset var(--d-settle) var(--d-tap) var(--ease-in-out); }
.beat-arrow.is-drawn .head { opacity: 1; transition: opacity var(--d-fade) var(--d-morph) var(--ease-out); }
@media (prefers-reduced-motion: reduce) { .beat-arrow path { transition: none !important; } }   /* before the script runs */
.beat p { margin-top: 14px; color: var(--ink-2); font-size: 19px; font-weight: 500; line-height: 1.42; letter-spacing: -.015em; }
@media (max-width: 860px) { .depth-body { grid-template-columns: 1fr; gap: 24px; } .beat-try { display: grid; grid-template-columns: auto 32px; justify-content: start; align-content: start; column-gap: 14px; }
  .beat-try > :not(svg) { grid-column: 1; }
  .beat-try .beat-arrow { grid-column: 2; grid-row: 1 / 3; align-self: center; margin: 0 0 0 -20px; transform: scaleX(-1) rotate(90deg); } }

/* 06 Make it yours: the sentence is the settings. The words that can change carry a ruler of ticks,
   one per option, the current one inked. A tap rolls the next one up (main.js), Shift-tap rolls back. */
.closer { padding-top: var(--sec); }
.closer .t-header { margin-bottom: 48px; }
html:not([data-kit]) .closer > .t-header { width: min(var(--wrap-wide), 100% - 2 * var(--gutter)); }   /* the sentence's edge, no tile around it */
.yours { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-areas: "copy face"; gap: clamp(36px, 5vw, 88px); align-items: start; }
.yours-face { grid-area: face; position: relative; margin-top: var(--cap, 0px); aspect-ratio: 16 / 10; border-radius: var(--r-media); overflow: hidden; background: #f6f6f6; box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 30px 60px -30px rgba(0,0,0,.32); }
.yours-plate { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.yours-copy { grid-area: copy; }
.yours-say { font-size: var(--t-statement); font-weight: 500; line-height: 1.34; letter-spacing: -.022em; color: var(--ink-3); }
/* A line never wraps: main.js sets the size so the longest version of every line fits. */
.yl { display: block; width: max-content; white-space: nowrap; }
.tok { position: relative; display: inline-block; text-align: left; white-space: nowrap; font: inherit; letter-spacing: inherit; color: var(--ink); background: none; border: 0; padding: 0 0 .1em; margin: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.tok::after { content: ""; position: absolute; inset: -.18em -.08em; }   /* a hand's reach around the word */
.tok-roll { position: relative; display: inline-grid; justify-items: start; vertical-align: top; padding-block: .1em; margin-block: -.1em; clip-path: inset(.1em -100vw 0); }   /* the window: the line above, room for descenders below, never cut at the side */
.tok-roll > span { grid-area: 1 / 1; white-space: nowrap; will-change: translate; }   /* kept on its layer, so it doesn't re-render when the roll stops */
.tok-roll > span.is-leaving { position: absolute; top: 0; left: 0; }
.tok-ticks { position: absolute; left: 0; bottom: -.08em; height: 2px; display: flex; gap: 3px; pointer-events: none; transition: width var(--mk-dur-roll, .7s) var(--mk-ease-enter, ease-out); }
.tok-p { color: var(--ink-3); }
.tok-ticks i { flex: 1; border-radius: 1px; background: currentColor; opacity: .16; transition: opacity var(--d-move) var(--ease-out) calc(var(--n, 0) * 30ms); }
.tok-ticks i.on { opacity: 1; }
@media (hover: hover) { .tok:hover .tok-ticks i:not(.on) { opacity: .42; } }
.tok:focus-visible, .yours-shuffle:focus-visible { outline: 2px solid var(--ink); outline-offset: 5px; border-radius: 6px; }
.yours-how { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; font-size: var(--t-body); color: var(--ink-2); }
.yours-shuffle { min-height: 44px; padding: 0; border: 0; background: none; font: inherit; font-weight: 600; color: var(--ink); cursor: pointer; }
.yours-more { margin-top: 4px; font-size: var(--t-body); color: var(--ink-2); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* On the desktop your windows go over the time, in the screen saver they're gone. */
.yours-wins { position: absolute; inset: 0; pointer-events: none; }
.yours-wins .win-a { left: 5%; top: 50%; width: 34%; height: 42%; }
.yours-wins .win-b { right: 6%; top: 9%; width: 29%; height: 38%; }
@media (max-width: 900px) {
  .yours { grid-template-columns: minmax(0, 1fr); grid-template-areas: "face" "copy"; gap: 28px; }
  .yours-face { margin-top: 0; }
  .yours-wins .win { border-radius: 8px; }
  .yours-wins .win i { left: 9px; top: 9px; scale: .7; transform-origin: 0 0; }
}

/* 07 Wallpapers */
.papers { padding-top: var(--sec); }
.papers-big { position: relative; aspect-ratio: 16 / 10; border-radius: var(--r-tile); overflow: hidden; background: #ddd; touch-action: pan-y; }
.papers-big img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity var(--d-morph) var(--ease-out); }
.papers-big .pb-b { opacity: 0; }
.papers-big .pb-run { position: absolute; inset: 0; opacity: 0; transition: opacity var(--d-tap) var(--ease-out); }
.papers-big .pb-run img { transition-duration: var(--d-tap); }
/* The corner mark on a picture that follows the sun: the look it shows now, as in the app. */
.sunmark { position: absolute; top: 6px; right: 6px; width: 10px; height: 10px; color: #fff; filter: drop-shadow(0 0 1.5px rgba(0,0,0,.45)); }
.sunmark svg { display: block; width: 100%; height: 100%; }
.pb-mark { top: 14px; right: 14px; width: 16px; height: 16px; }
.papers-row { display: flex; gap: 12px; margin: 12px -8px 0; overflow-x: auto; scrollbar-width: none; padding: 14px 8px 10px; cursor: grab; user-select: none; -webkit-user-select: none; }
.papers-row::-webkit-scrollbar { display: none; }
.papers-row.is-dragging { cursor: grabbing; }
.papers-row.is-dragging .ptile { pointer-events: none; }
.ptile { flex: 0 0 132px; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; position: relative; transition: transform var(--d-move) var(--ease-out), box-shadow var(--d-move) var(--ease-out); }
.ptile img { width: 100%; height: 100%; object-fit: cover; -webkit-user-drag: none; }
/* The autoplay's clock: a bar fills along the chosen tile's foot. */
.ptile i { position: absolute; left: 0; bottom: 0; height: 2px; width: calc(var(--p, 0) * 100%); background: rgba(255,255,255,.9); opacity: 0; }
.ptile.is-on i { opacity: 1; }
.ptile:hover { transform: translateY(-3px); }
.ptile.is-on { box-shadow: 0 0 0 2.5px var(--page), 0 0 0 5px var(--ink); }
.ptile span { position: absolute; left: 8px; bottom: 6px; font-size: 11px; font-weight: 600; color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.5); }

/* 08 Soft */
.soft { padding-top: calc(var(--sec) * 1.2); }
.soft .t-statement { max-width: 860px; }
.soft-photo { margin-top: 64px; }
.soft-img { width: 100%; height: auto; border-radius: var(--r-tile); }   /* its box held by width/height: it loads lazily, under a pin */
@media (max-width: 760px) { .soft-img { aspect-ratio: 1; object-fit: cover; object-position: 59% 50%; } }   /* a phone: the room in a square, round the desk */
.room { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-tile); overflow: hidden; background: linear-gradient(180deg, #d9cfc3 0%, #cbbfb0 62%, #8a7462 62.2%, #6f5a49 100%); }
.room-light { position: absolute; inset: 0; background: radial-gradient(60% 70% at 15% 20%, rgba(255,226,186,.7), transparent 70%); }
.room-display { position: absolute; left: 50%; top: 22%; width: 34%; aspect-ratio: 16/10; transform: translateX(-50%); border-radius: 8px; padding: 6px; background: #111; box-shadow: 0 30px 60px -20px rgba(0,0,0,.6); }
.room-display img { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; }
.room-display::after { content: ""; position: absolute; left: 44%; right: 44%; top: 100%; height: 30%; background: linear-gradient(#bdbdc0, #8d8d90); }
.room-desk { position: absolute; left: 0; right: 0; bottom: 0; height: 38%; }
.mock-note { margin-top: 12px; font-size: 12px; color: var(--ink-2); text-align: center; }

/* 09 Detail */
.detail { margin-top: var(--sec); background: #000; }
@media (max-width: 760px) { .detail { margin-top: calc(var(--sec) * 1.4); } }   /* after the room, the dark picture waits a beat longer */
.detail-pin { height: 100svh; position: relative; overflow: hidden; }
.detail-stage { position: absolute; inset: 0; }
.detail-img { width: 100%; height: 100%; object-fit: cover; transform-origin: 52% 46%; }
.detail-scrim { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.78) 0%, rgba(0,0,0,.35) 38%, transparent 62%); opacity: 0; }
.detail-copy { position: absolute; left: 0; right: 0; top: 10vh; bottom: 9vh; margin: auto; display: flex; flex-direction: column; justify-content: space-between; }
.detail-copy .t-section { text-align: center; text-shadow: 0 2px 30px rgba(0,0,0,.4); }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; color: rgba(245,245,247,.88); font-size: clamp(19px, 2vw, 28px); font-weight: 500; line-height: 1.25; letter-spacing: -.02em; opacity: 0; }
@media (max-width: 760px) { .cols { grid-template-columns: 1fr; gap: 20px; } }

/* 10 Bento */
.bento-sec { padding: var(--sec) 0 calc(var(--sec) * .6); }
.bento-sec .t-ai { text-align: center; margin-bottom: 56px; }
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(220px, auto); gap: 20px; }
.b { border-radius: var(--r-tile); background: var(--tile); padding: 36px; display: flex; flex-direction: column; justify-content: flex-end; }
.b-cpu { grid-column: span 2; grid-row: span 2; background: #000; color: var(--dark-ink); }
.b-cpu .b-num { font-size: clamp(120px, 16vw, 220px); }
.b-cpu .b-cap { color: var(--dark-ink-2); max-width: 22rem; }
.b-private { grid-column: span 2; }
.b-free { grid-column: span 2; }
.b-num { font-size: clamp(56px, 6vw, 88px); font-weight: var(--hw); letter-spacing: -.05em; line-height: .95; }
.b-head { font-size: clamp(24px, 2.2vw, 32px); font-weight: 600; letter-spacing: -.025em; line-height: 1.1; }
.b-kicker { font-size: 14px; font-weight: 600; color: var(--c-kelp); margin-bottom: 6px; }
.b-cap { margin-top: 10px; font-size: 17px; font-weight: 500; color: var(--ink-2); line-height: 1.4; }
.b sup { font-size: .6em; }
@media (max-width: 900px) { .bento { grid-template-columns: 1fr 1fr; } }
/* Phones: one column, or the 0% tile's numeral pushes the page 45px sideways at 320. */
@media (max-width: 560px) { .bento { grid-template-columns: minmax(0, 1fr); } .b-cpu, .b-private, .b-free { grid-column: auto; } }

/* 11 Closer */
.get { text-align: center; padding: calc(var(--sec) * .8) var(--gutter) var(--sec); }
.get-icon { margin: 0 auto 28px; border-radius: 26px; box-shadow: 0 20px 40px -16px rgba(0,0,0,.25); }
.get .t-intro { margin-top: 16px; color: var(--ink-2); }
.get-small { margin-top: 14px; font-size: 14px; color: var(--ink-2); }
.notes { padding: 28px 0 60px; border-top: 1px solid rgba(0,0,0,.1); font-size: var(--t-small); color: var(--ink-2); line-height: 1.5; }
.notes ol { padding-left: 1.2em; margin-bottom: 14px; }
.notes a { color: inherit; text-decoration: underline; text-underline-offset: 2px; text-decoration-color: rgba(0,0,0,.25); }
.notes a:hover { color: var(--ink); }

/* The film, over the page on the page's own ground (Apple's: apple.com/airpods-pro, measured). 16:9 and
   as big as the screen leaves it, up to the wide wrap; it fades in and out on one beat. */
html.is-film { overflow: hidden; scrollbar-gutter: stable; }
.film { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; outline: none; overflow: hidden; background: var(--page); color: var(--ink); opacity: 0; transition: opacity var(--d-fade) var(--ease-in); }
.film[open] { display: grid; place-items: center; }
.film.is-in { opacity: 1; transition-timing-function: var(--ease-out); }
.film::backdrop { background: none; }
.film-frame { position: relative; width: min(var(--wrap-wide), 100vw - 2 * var(--gutter), (100svh - 2 * 76px) * 16 / 9); aspect-ratio: 16 / 9; border-radius: var(--r-media); overflow: hidden; background: #000; outline: none; container-type: inline-size; }
.film-frame:fullscreen { width: 100%; border-radius: 0; }
.film-video { width: 100%; height: 100%; }
/* The close mark is the chips' own, on a soft disc; the button takes 44px around it. */
.film-close { position: fixed; top: 16px; right: 16px; z-index: 1; display: grid; place-items: center; width: 44px; height: 44px; }
.film-close::before { content: ""; position: absolute; inset: 4px; border-radius: 99px; background: color-mix(in srgb, var(--ink) 9%, var(--page)); transition: background var(--d-tap) linear; }
.film-close:hover::before { background: color-mix(in srgb, var(--ink) 7%, var(--page)); }
.film-close:active::before { background: color-mix(in srgb, var(--ink) 12%, var(--page)); }
.film-close svg { position: relative; width: 24px; height: 24px; fill: none; stroke: var(--ink-2); stroke-width: 1.6; stroke-linecap: round; }
.film-close:hover svg { stroke: var(--ink); }
/* Controls: a shade, the play mark in the middle, a bar at the foot. Shown while the mouse moves. */
.film-ui { position: absolute; inset: 0; color: #fff; }
.film.is-touch .film-ui { display: none; }
.film-shade { position: absolute; inset: 0; background: linear-gradient(rgba(0,0,0,.32), rgba(0,0,0,.52) 40%, rgba(0,0,0,.64)); opacity: 0; pointer-events: none; transition: opacity var(--d-reveal) var(--ease-in-out); }
.film-big { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transition: opacity var(--d-fade) var(--ease-in-out); }
.film-big svg { width: 75px; height: 75px; fill: #fff; opacity: .75; transition: transform var(--d-tap) var(--ease-out); }
.film-big:active svg { transform: scale(.9); }
.film-big .i-pause, .film.is-playing .film-big .i-play { display: none; }
.film.is-playing .film-big .i-pause { display: block; }
.film-bar { position: absolute; left: 24px; right: 24px; bottom: 20px; max-width: 948px; margin-inline: auto; display: flex; align-items: center; gap: 14px; opacity: 0; transition: opacity var(--d-move) var(--ease-out); }
.film.is-awake :is(.film-shade, .film-big, .film-bar), .film.is-waiting:not(.is-playing) :is(.film-shade, .film-big) { opacity: 1; }
.film.is-awake .film-bar { transition-delay: 50ms; }
.film.is-playing:not(.is-awake) .film-frame { cursor: none; }
.film-bar button { display: grid; place-items: center; width: 32px; height: 32px; opacity: .8; transition: opacity var(--d-tap) linear; }
.film-bar button:hover { opacity: 1; }
.film-bar svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.film-bar .i-off, .film-bar .is-off .i-on { display: none; }
.film-bar .is-off .i-off { display: block; }
.film-t { font-size: var(--t-small); font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: 0; }
/* The scrubber: a thin track, white up to the time, a dot that grows under the pointer. */
.film-seek { --p: 0%; flex: 1; height: 17px; -webkit-appearance: none; appearance: none; background: none; cursor: pointer; }
.film-seek::-webkit-slider-runnable-track { height: 5px; border-radius: 99px; background: linear-gradient(90deg, #fff var(--p), rgba(255,255,255,.16) var(--p)); }
.film-seek::-webkit-slider-thumb { -webkit-appearance: none; width: 5px; height: 5px; border-radius: 99px; background: #fff; transition: transform var(--d-tap) var(--ease-out); }
.film-seek:hover::-webkit-slider-thumb { transform: scale(2.2); }
.film-seek::-moz-range-track { height: 5px; border-radius: 99px; background: rgba(255,255,255,.16); }
.film-seek::-moz-range-progress { height: 5px; border-radius: 99px; background: #fff; }
.film-seek::-moz-range-thumb { width: 5px; height: 5px; border: 0; border-radius: 99px; background: #fff; }
.film-seek:hover::-moz-range-thumb { width: 11px; height: 11px; }
.film-bar :focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-radius: 6px; }
.film-big:focus-visible { outline: none; }
.film-big:focus-visible svg { opacity: 1; }
.film-close:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; border-radius: 99px; }
@container (max-width: 859px) { .film-big svg { width: 56px; height: 56px; } .film-bar { left: 16px; right: 16px; bottom: 14px; gap: 10px; } }
@media (prefers-reduced-motion: reduce) { .film, .film * { transition: none !important; } }

@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
.detail-copy .t-section { font-size: clamp(36px, 4.4vw, 64px); }

/* ───────────────────────── Variants ─────────────────────────
   One kit, three skins. The kit swaps the stock furniture for Tid's own: no grey tiles, no device
   bezels, no pills, chips become the app's chooser (small renders of the face, ring-selected),
   the gallery's dots become a ruler of ticks, the numbers lose their boxes.
   Paper: Tid's paper, achromatic, the colour arrives with the picture.
   Desktop: the page is a desktop with Tid on it, the modules float over it like windows.
   After dark: dark first, the headline stands in the picture behind the subject. */
/* Scoped by html so a component's own display (the chooser's grid) never beats the hiding. */
html:not([data-kit]) .kit-only, html:not([data-v="desktop"]) .kit-desk, html[data-kit] .base-only { display: none; }

html[data-type="serif"] { --serif: "Instrument Serif", "New York", Georgia, serif; }
html[data-type="serif"] :is(.t-hero, .t-super, .t-section, .t-header, .t-ai, .b-num) { font-family: var(--serif); font-weight: 400; letter-spacing: -.012em; line-height: 1; }
html[data-type="serif"] .t-hero { letter-spacing: -.02em; }

html[data-kit] {
  --r-tile: 18px;
  --r-media: 14px;
  --lift: 0 1px 2px rgba(0,0,0,.04), 0 24px 48px -24px rgba(0,0,0,.28);
}
html[data-v="paper"], html[data-v="desktop"] {
  --page: #f6f6f6; --tile: #ededed;
  --ink: #171717; --ink-2: #666; --ink-3: #8c8c8c;
}
html[data-v="dark"] {
  --page: #0b0b0b; --tile: #161616;
  --ink: #ececec; --ink-2: #9a9a9a; --ink-3: #6f6f6f;
  --lift: 0 24px 60px -30px rgba(0,0,0,.9);
  color-scheme: dark;
}

/* Kit: the bar. Nothing until you scroll, then the page's own ground. The time sits by the name. */
html[data-kit] .localnav { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none; transition: background var(--d-move) var(--ease-out), box-shadow var(--d-move) var(--ease-out); }
html[data-kit] .localnav.is-stuck { background: color-mix(in srgb, var(--page) 86%, transparent); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: 0 10px 30px -24px rgba(0,0,0,.4); }
html[data-kit] .localnav-in { width: min(var(--wrap-wide), 100% - 2 * var(--gutter)); }
html[data-kit] .ln-name { font-size: 17px; gap: 9px; color: var(--ink); }
html[data-kit] .ln-time { margin-left: 8px; font-weight: 300; color: var(--ink-3); font-variant-numeric: tabular-nums; letter-spacing: 0; }
html[data-kit] .ln-links { font-size: 13px; gap: 28px; color: var(--ink-2); }
html[data-kit] .ln-links a.is-on { display: none; }
html[data-kit] .ln-links .pill { color: var(--page); }

/* Kit: buttons are the app's, a soft rectangle; the second action is plain text. */
html[data-kit] .pill { height: 44px; padding: 0 20px; border-radius: 12px; background: var(--ink); color: var(--page); font-size: 15px; }
html[data-kit] .pill:hover { background: color-mix(in srgb, var(--ink) 86%, var(--page)); }
html[data-kit] .pill-s { height: 30px; padding: 0 13px; border-radius: 9px; font-size: 13px; }
html[data-kit] .pill-ghost { background: none; box-shadow: none; color: var(--ink); padding: 0 6px; }
html[data-kit] .pill-ghost:hover { background: none; opacity: .7; }
html[data-kit] .pill-light { background: var(--ink); color: var(--page); }

/* Kit: leads keep the ink; only Desktop and After dark let a picture lend its colour. */
html[data-v="paper"] :is(.lead, .lead-dawn, .lead-sky, .lead-night, .lead-ice) { color: inherit; }
html[data-v="paper"] .sweep, html[data-v="desktop"] .sweep { background: none; color: inherit; }
html[data-v="dark"] .sweep { --peak: #fff; }
html[data-v="dark"] .lead-sky { --accent: #8fb4ff; color: #8fb4ff; }

/* Kit: the hero opens full-bleed, no frame. */
html[data-kit] .hero { background: var(--page); }
html[data-kit] .hero-plate { transform: none; border-radius: 0; }
html[data-kit] .hero .on-dark { color: var(--ink); }
html[data-kit] .hero-cta { color: var(--ink-3); }
html[data-v="paper"] .hero-copy { top: auto; bottom: 8%; }
html[data-v="paper"] .hero-copy .eyebrow { font-size: 15px; font-weight: 500; color: var(--ink-3); letter-spacing: .01em; margin-bottom: 14px; }
html[data-v="paper"] .t-hero { font-size: clamp(40px, 5vw, 72px); }
html[data-v="dark"] .hero-copy { top: auto; bottom: 7%; }
html[data-v="dark"] .hero-copy .eyebrow { font-size: 15px; font-weight: 500; color: rgba(236,236,236,.6); margin-bottom: 0; }
html[data-v="dark"] .hero .t-hero { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

/* Kit: no grey band behind the drifting looks, and the looks are prints, not laptops. */
html[data-kit] .intro { background: transparent; }
html[data-kit] .lid { padding: 0; background: none; border-radius: 12px; box-shadow: var(--lift); }
html[data-kit] .lid img { border-radius: 12px; }

/* Kit: highlights. Picture first, caption under it, numbered, left-aligned. */
html[data-kit] .highlights .t-header { width: min(var(--wrap-wide), 100% - 2 * var(--gutter)); }
html[data-kit] .hl-track { counter-reset: hl; }
html[data-kit] .hl-card { counter-increment: hl; background: none; border-radius: 0; overflow: visible; height: auto; flex-direction: column-reverse; padding-bottom: 8px; }
html[data-kit] .hl-text { margin: 0; padding: 22px 0 0; max-width: 34rem; text-align: left; font-size: 19px; font-weight: 500; line-height: 1.4; letter-spacing: -.014em; color: var(--ink-2); }
html[data-kit] .hl-text::before { content: counter(hl, decimal-leading-zero); display: block; margin-bottom: 6px; font-size: 13px; font-weight: 500; color: var(--ink-3); font-variant-numeric: tabular-nums; }
html[data-kit] .hl-text b { color: var(--ink); }
html[data-kit] .hl-dark { background: none; }
html[data-kit] .hl-dark .hl-text { color: var(--ink-2); }
html[data-kit] .hl-visual { position: relative; inset: auto; height: min(560px, 62vh); border-radius: var(--r-media); box-shadow: var(--lift); background: var(--tile); }
html[data-kit] .hl-grid { background: none; box-shadow: none; padding: 0; gap: 10px; }
html[data-kit] .hl-grid img { border-radius: 10px; }
html[data-kit] .hl-displays { background: var(--tile); }
html[data-kit] .hl-displays img { border-radius: 10px; box-shadow: var(--lift); }
html[data-kit] .hl-displays .d-main { top: 14%; }
html[data-kit] .hl-displays .d-side { top: 30%; }
html[data-kit] .hl-displays .d-lap { top: 46%; }

/* Kit: the gallery's control is a ruler. Each highlight is a stretch of it, the ink runs along. */
html[data-kit] .hl-controls { width: min(var(--wrap-wide), 100% - 2 * var(--gutter)); margin: 26px auto 0; justify-content: space-between; align-items: center; gap: 28px; }
html[data-kit] .dots { flex: 1; max-width: 420px; height: 18px; padding: 0; gap: 0; background: none; backdrop-filter: none; border-radius: 0; }
html[data-kit] .dot { flex: 1; width: auto; height: 18px; border-radius: 0; background: none; overflow: visible; }
html[data-kit] .dot.is-on { width: auto; background: none; }
html[data-kit] .dot::before { content: ""; position: absolute; left: 0; bottom: 0; width: 1px; height: 9px; background: var(--ink-3); }
html[data-kit] .dot::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: color-mix(in srgb, var(--ink) 18%, transparent); }
html[data-kit] .dot:last-child { flex: 0 0 1px; }
html[data-kit] .dot i { top: auto; height: 2px; bottom: 0; z-index: 1; background: var(--ink); border-radius: 0; }
html[data-kit] .playpause { width: auto; height: auto; padding: 4px 0; background: none; font-size: 13px; font-weight: 500; color: var(--ink-2); }
html[data-kit] .playpause :is(.pp-pause, .pp-play) { display: none !important; }
html[data-kit] .pp-word::after { content: "Pause"; }
html[data-kit] .playpause.is-paused .pp-word::after { content: "Play"; }

/* Kit: Make it yours, as Tid's own chooser. */
.chooser { display: grid; gap: 32px; }
.ch-face { aspect-ratio: 16 / 9; border-radius: var(--r-media); overflow: hidden; box-shadow: var(--lift); background: var(--tile); }
.ch-plate { width: 100%; height: 100%; }
.ch-bar { display: grid; grid-template-columns: minmax(180px, 240px) 1fr; gap: 40px; align-items: start; }
.ch-tabs { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.ch-tabs button { padding: 5px 0; font-size: 17px; font-weight: 500; letter-spacing: -.012em; color: var(--ink-3); transition: color var(--d-fade) var(--ease-out); }
.ch-tabs button:hover { color: var(--ink-2); }
.ch-tabs button.is-on { color: var(--ink); }
.ch-cap { max-width: 36rem; font-size: 19px; font-weight: 500; line-height: 1.42; letter-spacing: -.014em; color: var(--ink-2); min-height: 2.84em; }
.ch-cap b { color: var(--ink); }
.ch-row { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 22px; }
.ch-tile { display: grid; gap: 9px; justify-items: center; width: 152px; font-size: 12px; font-weight: 500; color: var(--ink-2); }
.ch-tile canvas { width: 100%; aspect-ratio: 16 / 10; border-radius: 10px; box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 10px 20px -12px rgba(0,0,0,.3); transition: box-shadow var(--d-fade) var(--ease-out), transform var(--d-fade) var(--ease-out); }
.ch-tile:hover canvas { transform: translateY(-2px); }
.ch-tile.is-on { color: var(--ink); }
.ch-tile.is-on canvas { box-shadow: 0 0 0 2.5px var(--page), 0 0 0 5px var(--ink); }
@media (max-width: 760px) { .ch-bar { grid-template-columns: 1fr; gap: 16px; } .ch-tabs { flex-direction: row; flex-wrap: wrap; gap: 4px 16px; } .ch-tile { width: calc(50% - 9px); } }

/* Kit: the night beats sit on the picture, with a shade under them instead of a box. */
html[data-kit] .day-stage::after { content: ""; position: absolute; inset: auto 0 0; height: 42%; background: linear-gradient(transparent, rgba(0,0,0,.5)); pointer-events: none; }
html[data-kit] .day-caps { z-index: 2; justify-items: start; padding-inline: max(var(--gutter), (100vw - var(--wrap-wide)) / 2); }
html[data-kit] .day-cap { background: none; backdrop-filter: none; padding: 0; max-width: 34rem; font-size: 21px; color: rgba(255,255,255,.82); text-shadow: 0 1px 24px rgba(0,0,0,.4); }
html[data-v="paper"] .day-cap .lead, html[data-v="paper"] .cols .lead { color: #fff; }

/* Kit: the numbers, with no boxes. A ledger: big figures, plain captions, whitespace between. */
html[data-kit] .bento-sec .t-ai { text-align: left; width: min(var(--wrap-wide), 100% - 2 * var(--gutter)); }
html[data-kit] .bento { grid-template-columns: repeat(3, 1fr); grid-auto-rows: auto; gap: 64px 56px; }
html[data-kit] .b { grid-column: auto; grid-row: auto; padding: 0; border-radius: 0; background: none; color: var(--ink); justify-content: flex-start; }
html[data-kit] .b-cpu { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr; gap: 0 48px; align-items: end; }
html[data-kit] .b-cpu .b-num { font-size: clamp(120px, 15vw, 220px); line-height: .8; }
html[data-kit] .b-cpu .b-cap { color: var(--ink-2); max-width: 26rem; font-size: 19px; }
html[data-kit] .b-num { font-size: clamp(56px, 5.4vw, 80px); }
html[data-kit] .b-kicker { color: var(--ink-3); }
html[data-kit] .b-head { font-size: clamp(22px, 1.9vw, 28px); font-weight: 600; }
@media (max-width: 900px) { html[data-kit] .bento { grid-template-columns: 1fr 1fr; gap: 40px 28px; } html[data-kit] .b-cpu { grid-template-columns: 1fr; } }

html[data-kit] .notes { border-top: 0; }
html[data-kit] .depth-stage { background: var(--tile); }
html[data-kit] .soft .t-statement { max-width: 900px; }

/* After dark: the dark ground everywhere; the picture lends the only colour. */
html[data-v="dark"] body { background: var(--page); }
html[data-v="dark"] .get-icon { box-shadow: 0 20px 50px -20px rgba(0,0,0,.9); }
html[data-v="dark"] .ch-tile.is-on canvas { box-shadow: 0 0 0 2.5px var(--page), 0 0 0 5px var(--ink); }
html[data-v="dark"] .depth-beats .beat p { color: var(--ink-2); }

/* Desktop: Tid's clock on a desktop behind the whole page; the modules are windows and widgets. */
.desk-bg { position: fixed; inset: 0; z-index: -1; background: #222; }
.desk-bg canvas { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity var(--d-glide) var(--ease-glide); }
.desk-bg .desk-b { opacity: 0; }
html[data-v="desktop"] body { background: transparent; }
html[data-v="desktop"] { --win: rgba(248,248,248,.8); --win-shadow: 0 0 0 .5px rgba(0,0,0,.06), 0 30px 70px -24px rgba(0,0,0,.45); }
html[data-v="desktop"] :is(.hero, .intro) { background: transparent; }
html[data-v="desktop"] .hero-frame { display: none; }
html[data-v="desktop"] .localnav.is-stuck, html[data-v="desktop"] .localnav { background: color-mix(in srgb, var(--page) 70%, transparent); backdrop-filter: blur(24px) saturate(1.5); -webkit-backdrop-filter: blur(24px) saturate(1.5); }
html[data-v="desktop"] :is(.hero-copy, .sec-head, .intro-copy, .highlights > .t-header, .closer > .t-header, .soft .t-statement, .bento-sec .t-ai, .get, .depth-beats, .notes) {
  background: var(--win); backdrop-filter: blur(30px) saturate(1.6); -webkit-backdrop-filter: blur(30px) saturate(1.6);
  border-radius: 16px; box-shadow: var(--win-shadow);
}
html[data-v="desktop"] .hero-copy { left: max(var(--gutter), 7vw); right: auto; top: 13%; width: min(500px, 100% - 2 * var(--gutter)); padding: 34px 38px 32px; text-align: left; }
html[data-v="desktop"] .hero-copy .eyebrow { font-size: 15px; font-weight: 500; color: var(--ink-3); }
html[data-v="desktop"] .hero-copy .t-hero { font-size: clamp(48px, 5.4vw, 80px); }
html[data-v="desktop"] .hero-cta { justify-content: flex-start; }
html[data-v="desktop"] :is(.sec-head, .highlights > .t-header, .closer > .t-header, .bento-sec .t-ai) { width: fit-content; max-width: min(760px, 100% - 2 * var(--gutter)); padding: 26px 34px; margin-inline: auto; margin-bottom: 40px; }
html[data-v="desktop"] .intro-copy { width: min(720px, 100% - 2 * var(--gutter)); padding: 48px 44px; }
html[data-v="desktop"] .intro { padding-block: calc(var(--sec) * .9); }
html[data-v="desktop"] .soft .t-statement { padding: 36px 40px; }
html[data-v="desktop"] .get { width: min(620px, 100% - 2 * var(--gutter)); margin: var(--sec) auto 40px; padding: 56px 40px; }
html[data-v="desktop"] .notes { padding: 22px 26px; margin-bottom: 40px; }
html[data-v="desktop"] .depth-beats { padding: 30px; }
html[data-v="desktop"] .hl-card { background: var(--win); backdrop-filter: blur(30px) saturate(1.6); -webkit-backdrop-filter: blur(30px) saturate(1.6); border-radius: 16px; box-shadow: var(--win-shadow); padding: 14px 14px 22px; }
html[data-v="desktop"] .hl-text { padding: 18px 12px 0; }
html[data-v="desktop"] .hl-visual { border-radius: 10px; box-shadow: none; }
html[data-v="desktop"] .chooser, html[data-v="desktop"] .papers-view { background: var(--win); backdrop-filter: blur(30px) saturate(1.6); -webkit-backdrop-filter: blur(30px) saturate(1.6); border-radius: 16px; box-shadow: var(--win-shadow); padding: 16px 16px 28px; }
html[data-v="desktop"] .ch-face { border-radius: 10px; box-shadow: none; }
html[data-v="desktop"] .ch-bar { padding: 0 14px; }
html[data-v="desktop"] .papers-big { border-radius: 10px; }
html[data-v="desktop"] .b { background: rgba(250,250,250,.72); backdrop-filter: blur(30px) saturate(1.6); -webkit-backdrop-filter: blur(30px) saturate(1.6); border-radius: 24px; padding: 26px 28px; box-shadow: var(--win-shadow); justify-content: flex-end; }
html[data-v="desktop"] .bento { grid-template-columns: repeat(4, 1fr); gap: 18px; }
html[data-v="desktop"] .b-cpu { grid-column: span 2; grid-row: span 2; display: flex; }
html[data-v="desktop"] .b-private, html[data-v="desktop"] .b-free { grid-column: span 2; }
html[data-v="desktop"] .b-cpu .b-num { font-size: clamp(110px, 13vw, 190px); }
html[data-v="desktop"] .soft-photo, html[data-v="desktop"] .lid { box-shadow: var(--win-shadow); border-radius: 16px; }
html[data-v="desktop"] .mock-note { color: rgba(255,255,255,.75); }

/* Fixes after the first look. */
.chooser { width: min(1060px, 100% - 2 * var(--gutter)); }
.ch-face { aspect-ratio: 2 / 1; }
html[data-v="desktop"] :is(.sec-head, .highlights > .t-header, .closer > .t-header, .bento-sec .t-ai) { width: min(700px, 100% - 2 * var(--gutter)); }
html[data-kit] { --c-terra: #b4561f; }
html[data-v="dark"] { --c-terra: #e08a5c; }
html[data-v="desktop"] .soft .lead, html[data-v="dark"] .soft .lead { color: var(--c-terra); --accent: var(--c-terra); --peak: #ffd9b8; }
html[data-v="desktop"] { --c-terra: #b07a12; }
html[data-v="dark"] { --c-terra: #e0a63a; }
