/* =========================================================
   Abhishek Jha · card table
   Seamless studio paper. Abhishek in black & white, his name huge behind him,
   four frosted packs orbiting around him.
   Type: Satoshi only. Size and weight carry the hierarchy.
   ========================================================= */

:root {
  color-scheme: light;

  /* studio backdrop */
  --room-0: #E3E6EB;
  --room-1: #EEF0F4;
  --room-2: #F8F9FB;
  --on-room: #0E1116;
  --on-room-2: #626973;
  --on-room-3: #9AA1AB;
  --hair: rgba(20, 20, 22, .12);
  --edge: rgba(255, 255, 255, .85);

  /* paper: cards and windows */
  --paper: #F7F5F1;
  --ink: #1D1D1F;
  --ink-2: #6E6E73;
  --ink-3: #A1A1A6;
  --rule: rgba(29, 29, 31, .09);

  /* from the icon art */
  --blue: #0071E3;            /* the one accent: Apple-style system blue */
  --blue-deep: #0A4FC4;
  --sky: #5AC8FA;             /* light end of the blue gradient */
  --orange: #FF7438;          /* only for "you are speaking" (the mic is live) */

  --focus: #0071E3;

  /* type scale (Apple-style: tight tracking when large, neutral when small) */
  --font: "Satoshi", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  --t-display: 700 clamp(40px, 5.2vw, 68px)/1.02 var(--font);
  --t-title: 700 clamp(34px, 4vw, 52px)/1.06 var(--font);
  --t-intro: 400 clamp(18px, 1.6vw, 21px)/1.42 var(--font);
  --t-body: 400 17px/1.52 var(--font);
  --t-callout: 500 15px/1.4 var(--font);
  --t-foot: 500 13px/1.35 var(--font);

  --cw: clamp(112px, 10vw, 150px);
  --ch: calc(var(--cw) * 1.4);
  --r-card: 14px;

  /* user settings */
  --frost: 14px;              /* glass blur */
  --clarity: 1;               /* 0 = clear glass, 1 = frosted white */
  --veil: calc(.25 + .75 * var(--clarity));   /* how much milky fill the glass carries */
  --grain: .14;               /* film grain */
  --g: 255, 255, 255;         /* glass colour (rgb), swapped at night */
}
@media (max-width: 700px) {
  :root { --cw: min(34vw, 150px); }
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  /* seamless paper backdrop: brightest behind the subject, falling off at the edges */
  background: #fff;
  color: var(--on-room);
  font: var(--t-body);
  letter-spacing: -.005em;
  font-feature-settings: "kern", "liga";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow: hidden;
}
button { font: inherit; color: inherit; cursor: pointer; letter-spacing: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.backdrop {                                      /* the meadow: a real element, so glass can see it */
  position: absolute; inset: -2%; pointer-events: none;
  /* the image is already a wide shot: fill the width, anchor to the bottom, sky colour above */
  background: var(--bg-color, #FDFDFC) var(--bg-img, url("assets/bg-meadow-white.webp")) center bottom / max(100%, 1100px) auto no-repeat;
  transition: filter .6s ease, transform .8s cubic-bezier(.2,.8,.2,1);
}
body.focused .backdrop { filter: blur(10px) saturate(1.1); transform: scale(1.04); }
/* peek: near the desk, a soft blurred window into the other time of day follows the cursor */
.peek {
  position: absolute; inset: -2%; pointer-events: none;
  background: #010A1B url("assets/bg-meadow-night.webp") center bottom / max(100%, 1100px) auto no-repeat;
  filter: blur(3px) saturate(1.1);
  --pr: 0px;
  -webkit-mask-image: radial-gradient(circle at var(--px, 50%) var(--py, 60%), rgba(0,0,0,.95) 0, rgba(0,0,0,.6) calc(var(--pr) * .45), transparent var(--pr));
          mask-image: radial-gradient(circle at var(--px, 50%) var(--py, 60%), rgba(0,0,0,.95) 0, rgba(0,0,0,.6) calc(var(--pr) * .45), transparent var(--pr));
}
[data-theme="night"] .peek { background: #FDFDFC url("assets/bg-meadow-white.webp") center bottom / max(100%, 1100px) auto no-repeat; }
body.focused .peek { display: none; }
.grain {
  position: fixed; inset: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 100; opacity: var(--grain); mix-blend-mode: multiply;
}

/* ---------- Liquid Glass ----------
   Apple's material, approximated for the web in three layers:
   1. ::before  the backdrop, blurred a little and bent at the edges (#lg-distort, an SVG
                displacement filter; Chromium shows the bend, other browsers fall back to blur)
   2. ::after   a thin tint plus the specular rim: bright top-left edge, softer bottom-right
   3. the element's own content on top
   Tint and rim are tokens, so a primary button is the same glass, tinted blue. */
.liquid {
  --lg-tint: rgba(255, 255, 255, calc(.22 * var(--veil)));
  --lg-rim: rgba(255, 255, 255, .9);
  --lg-rim-2: rgba(255, 255, 255, .45);
  position: relative; isolation: isolate;
  background: transparent; border: 0;
  box-shadow: 0 12px 32px -14px rgba(12, 32, 70, .28), 0 2px 6px rgba(12, 32, 70, .06);
}
.liquid::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -2;
  backdrop-filter: blur(calc(var(--frost) * .35)) saturate(185%) brightness(1.06);
  -webkit-backdrop-filter: blur(calc(var(--frost) * .35)) saturate(185%) brightness(1.06);
  filter: url(#lg-distort);
}
.liquid::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1;
  background: var(--lg-tint);
  box-shadow:
    inset 1.5px 1.5px 1px var(--lg-rim),
    inset -1px -1px 1px var(--lg-rim-2),
    inset 0 0 22px -8px rgba(255, 255, 255, .75);
  transition: background .25s ease;
}
.liquid.blue { --lg-tint: rgba(0, 113, 227, .86); --lg-rim: rgba(255,255,255,.65); --lg-rim-2: rgba(255,255,255,.25); color: #fff; }
@media (hover: hover) { .liquid.blue:hover { --lg-tint: rgba(0, 113, 227, .95); } }

/* ---------- corners (poster details) ---------- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 30;
  display: flex; justify-content: space-between; align-items: flex-start; gap: 16px;
  padding: calc(26px + env(safe-area-inset-top, 0px)) 36px 20px;
}
.corner-l, .corner-r { display: flex; align-items: center; gap: 22px; }
.corner-r { align-items: center; gap: 22px; }
.mark { display: block; width: 34px; height: 34px; border-radius: 9px; flex: none; box-shadow: 0 6px 16px -8px rgba(12,32,70,.45); transition: transform .3s cubic-bezier(.34,1.45,.6,1); }
.mark img { display: block; width: 100%; height: 100%; }
@media (hover: hover) { .mark:hover { transform: translateY(-1px) rotate(-4deg); } }
.status, .clock { display: flex; flex-direction: column; gap: 2px; font: 700 13px/1.25 var(--font); letter-spacing: -.005em; }
.status small, .clock small { font: var(--t-foot); color: var(--on-room-3); }
.status .dot {
  position: absolute; margin: 5px 0 0 -14px; width: 7px; height: 7px; border-radius: 50%;
  background: #30C15B; box-shadow: 0 0 0 3px rgba(48,193,91,.16);
}
.status { position: relative; padding-left: 14px; }
.clock { text-align: right; font-variant-numeric: tabular-nums; }
.link { font: var(--t-callout); color: var(--on-room-2); text-decoration: none; transition: color .2s ease; }
@media (hover: hover) { .link:hover { color: var(--on-room); } }
.pill {
  border-radius: 999px; padding: 10px 20px;
  font: var(--t-callout); font-weight: 700;
  transition: transform .25s cubic-bezier(.2,.8,.2,1);
}
@media (hover: hover) { .pill:hover { transform: translateY(-1px) scale(1.02); } }
.pill:active { transform: scale(.97); }
@media (max-width: 700px) {
  .topbar { padding-inline: 16px; }
  .status small, .clock, .link { display: none; }
}

/* ---------- stage ---------- */
.stage { position: relative; height: 100%; }

/* the host: a compact, centred headline. It blurs back when a deck opens. */
.host { position: absolute; inset: 0; pointer-events: none; }
/* ---- home typography: label/value columns, a two-voice headline, hairline geometry ---- */
.headline { position: absolute; left: 0; right: 0; top: 15vh; z-index: 1; text-align: center; padding-inline: 24px; }
.eyebrow { margin: 0 0 12px; font: 500 15px/1.3 var(--font); letter-spacing: -.01em; color: var(--ink-3); }
.display { margin: 0; color: var(--ink); line-height: .95; }
.display .sans { font: 500 clamp(44px, 5.6vw, 84px)/1 var(--font); letter-spacing: -.05em; }
.display .serif { margin-left: .12em; font: italic 400 clamp(50px, 6.4vw, 96px)/1 "Instrument Serif", Georgia, serif; letter-spacing: -.02em; }
.lede { margin: 16px 0 0; font: 500 clamp(15px, 1.2vw, 17px)/1.4 var(--font); letter-spacing: -.01em; color: var(--ink-3); }
@media (max-width: 700px) { .headline { top: 13vh; } }


/* ---------- decks (3D packs on a ring) ---------- */
.decks { position: absolute; inset: 0; perspective: 1600px; z-index: 5; pointer-events: none; }  /* full-screen layer: only the packs take clicks */
.deck {
  position: absolute; left: 0; top: 0; width: var(--cw); height: var(--ch);
  border: 0; padding: 0; background: none;
  perspective: 1000px;
  will-change: transform, opacity;
  pointer-events: auto;
}
.deck::after {                                   /* soft floating shadow */
  content: ""; position: absolute; left: 10%; right: 10%; bottom: -30px; height: 24px;
  background: radial-gradient(closest-side, rgba(20,20,22,.22), transparent);
  z-index: -1; transition: transform .35s ease, opacity .35s ease;
}
@media (hover: hover) { .deck:hover::after { transform: scaleX(.85); opacity: .6; } }
.deck.open { cursor: pointer; }                    /* the shoe: click again to put the cards back */
.focused .dh-title { cursor: pointer; display: inline-block; }
.deck.open::after { opacity: 0; }                 /* the shadow would turn sideways with the shoe */
.pack {
  position: absolute; inset: 0;
  transform-style: preserve-3d;
  transform: rotateX(12deg) rotateY(-28deg);
  transition: transform .5s cubic-bezier(.2,.8,.2,1);
}
@media (hover: hover) { .deck:hover .pack, .deck:focus-visible .pack { transform: rotateX(8deg) rotateY(-14deg); } }
.deck.right .pack { transform: rotateX(12deg) rotateY(28deg); }          /* mirrored: faces left, toward the centre */
@media (hover: hover) { .deck.right:hover .pack, .deck.right:focus-visible .pack { transform: rotateX(8deg) rotateY(14deg); } }
.pack .side, .pack .rear { position: absolute; }
.pack .side.r, .pack .side.l {                   /* stacked card edges */
  top: var(--r-card); height: calc(100% - 2 * var(--r-card)); width: var(--t);
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.95) 0 1.3px, rgba(165,172,182,.55) 1.3px 2.6px);
}
.pack .side.r { left: calc(100% - var(--t) / 2); transform: rotateY(90deg); filter: brightness(.93); }
.pack .side.l { left: calc(var(--t) / -2); transform: rotateY(-90deg); filter: brightness(.9); }
.pack .side.t, .pack .side.b {
  left: var(--r-card); width: calc(100% - 2 * var(--r-card)); height: var(--t);
  background: repeating-linear-gradient(0deg, rgba(255,255,255,.95) 0 1.3px, rgba(165,172,182,.45) 1.3px 2.6px);
}
.pack .side.t { top: calc(var(--t) / -2); transform: rotateX(90deg); }
.pack .side.b { top: calc(100% - var(--t) / 2); transform: rotateX(-90deg); filter: brightness(.88); }
.pack .rear {
  inset: 0; border-radius: var(--r-card);
  transform: translateZ(calc(var(--t) / -2));
  background: linear-gradient(140deg, #F4F5F7, #DCDFE4);
  box-shadow: 0 30px 50px -24px rgba(20,20,22,.35);
}
.deck .face-top {
  position: absolute; inset: 0; transform-style: preserve-3d;
  transform: translateZ(calc(var(--t) / 2 + .5px));
  transition: transform .35s cubic-bezier(.2,.8,.2,1);
}
@media (hover: hover) { .deck:hover .face-top, .deck:focus-visible .face-top { transform: translateZ(calc(var(--t) / 2 + 2px)) translateY(-18px); } }
.deck .glass {                                    /* pack faces sit in 3D: solid fill, no backdrop blur */
  backdrop-filter: none; -webkit-backdrop-filter: none;
  background: linear-gradient(150deg, rgba(var(--g), calc(.9 * var(--veil))) 0%, rgba(var(--g), calc(.8 * var(--veil))) 50%, rgba(var(--g), calc(.86 * var(--veil))) 100%), var(--tint, transparent);
  box-shadow:
    inset 1.5px 1.5px 1px #fff,
    inset -1px -1px 1px rgba(255,255,255,.6),
    inset 0 0 34px -10px rgba(255,255,255,.95),
    inset 0 -14px 28px -20px rgba(40,50,65,.14);
}
.deck .corner { display: none; }

/* ---------- cards ---------- */
.spread { position: absolute; inset: 0; pointer-events: none; z-index: 4; }
.card {
  position: absolute; left: 0; top: 0;
  width: var(--cw); height: var(--ch);
  pointer-events: auto; border: 0; padding: 0; background: none;
  perspective: 900px;
}
.card-inner { position: absolute; inset: 0; transform-style: preserve-3d; }
.glass {
  position: absolute; inset: 0; border-radius: var(--r-card);
  /* liquid glass card: clear body, bright specular rim, soft inner glow */
  background: linear-gradient(150deg, rgba(var(--g), calc(.25 + .65 * var(--clarity))) 0%, rgba(var(--g), calc(.15 + .65 * var(--clarity))) 50%, rgba(var(--g), calc(.22 + .64 * var(--clarity))) 100%), var(--tint, transparent);
  border: 0;
  box-shadow:
    0 30px 54px -26px rgba(12, 32, 70, .38),
    inset 1.5px 1.5px 1px rgba(255,255,255,.95),
    inset -1px -1px 1px rgba(255,255,255,.5),
    inset 0 0 34px -10px rgba(255,255,255,.95),
    inset 0 -14px 28px -20px rgba(40,50,65,.14);
  backdrop-filter: blur(var(--frost)) saturate(190%) brightness(1.05);
  -webkit-backdrop-filter: blur(var(--frost)) saturate(190%) brightness(1.05);
  color: var(--ink);
  overflow: hidden;
}
.glass::before {                                /* inner frame line */
  content: ""; position: absolute; inset: 8px; border-radius: 9px;
  border: 1px solid rgba(255,255,255,.55);
  pointer-events: none;
}
.glass::after {                                 /* sheen that follows the pointer */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(180px circle at var(--mx, 30%) var(--my, 10%), rgba(255,255,255,.6), transparent 60%),
    linear-gradient(118deg, transparent 32%, rgba(255,255,255,.38) 44%, rgba(255,255,255,0) 56%);   /* diagonal light streak */
  opacity: .8;
}
[data-tint="amber"] { --tint: linear-gradient(160deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, 0)); }
[data-tint="clear"] { --tint: transparent; }
[data-tint="blue"]  { --tint: linear-gradient(160deg, rgba(120, 130, 145, .08), rgba(120, 130, 145, 0)); }
[data-tint="green"] { --tint: linear-gradient(160deg, rgba(255, 255, 255, .12), rgba(120, 130, 145, .04)); }

/* ---- card faces in 3D ---- */
.face { position: absolute; inset: 0; transform-style: preserve-3d; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.face .glass { position: absolute; inset: 0; }
.layer { position: absolute; inset: 0; pointer-events: none; transform-style: preserve-3d; transition: transform .5s cubic-bezier(.2,.9,.25,1); }
.layer.print { transform: translateZ(10px); }
.layer.lift { transform: translateZ(26px); }
@media (hover: hover) { .card.hot .layer.lift, .deck:hover .layer.lift { transform: translateZ(64px) scale(1.04); } }
.card.hot .layer.print { transform: translateZ(18px); }

.front .icon { position: absolute; left: 50%; top: 42%; width: 64%; transform: translate(-50%, -50%); }
.front .icon img { display: block; width: 100%; height: auto; mix-blend-mode: multiply; }
.front .icon.art { width: 88%; height: 56%; top: 41%; }
.front .icon.art img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: normal; }
.front .shadow {                                   /* the art's shadow on the glass, grows as it lifts */
  position: absolute; left: 22%; right: 22%; top: 66%; height: 14px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(12,32,70,.28), transparent);
  transform: translateZ(-24px); transition: transform .5s cubic-bezier(.2,.9,.25,1), opacity .5s ease;
}
@media (hover: hover) { .card.hot .front .shadow, .deck:hover .front .shadow { transform: translateZ(-60px) scale(1.25); opacity: .7; } }

/* engraved text: the letters are cut into the glass, so a highlight sits under
   each stroke and a faint shadow above it */
.engraved {
  color: rgba(40, 46, 56, .5);
  text-shadow: 0 1px 0 rgba(255,255,255,.95), 0 -1px 0 rgba(12,20,32,.18);
}
.c-top { position: absolute; left: 14px; top: 12px; font: 600 11px/1 var(--font); letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.c-bot { position: absolute; left: 0; right: 0; bottom: 14px; text-align: center; }
.card-title { font: 700 10.5px/1 var(--font); letter-spacing: .16em; text-transform: uppercase; }
.pack-face .c-top { display: none; }
.pack-face .layer.lift {
  inset: 10px 10px 44px; border-radius: 9px; overflow: hidden; transform: translateZ(1px) !important;
  background: radial-gradient(90% 70% at 50% 35%, #fff 0%, #F1F3F6 70%, #E6E9EE 100%);
  box-shadow: inset 0 1px 3px rgba(12,20,32,.12), inset 0 0 0 1px rgba(12,20,32,.05);   /* a recessed window */
}
.pack-face .icon.art { width: 104%; height: 104%; top: 54%; }
.pack-face .icon.art img { transition: transform .6s cubic-bezier(.2,.9,.25,1); }
@media (hover: hover) { .deck:hover .pack-face .icon.art img { transform: scale(1.06) translateY(-2%); } }
.pack-face .shadow { display: none; }
.pack-face .c-bot { bottom: 17px; }
.seen-dot {
  position: absolute; right: 13px; bottom: 14px; width: 6px; height: 6px; border-radius: 50%;
  background: var(--blue); opacity: 0; transition: opacity .3s ease; transform: translateZ(12px);
}
.card.seen .seen-dot { opacity: 1; }

.back { transform: rotateY(180deg); backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.back .pattern, .ic-back .pattern {
  position: absolute; inset: 18px; border-radius: 8px;
  background-image: radial-gradient(circle, rgba(29,29,31,.16) 1px, transparent 1.5px);
  background-size: 8px 8px;
  mask-image: radial-gradient(closest-side, #000 50%, transparent);
  -webkit-mask-image: radial-gradient(closest-side, #000 50%, transparent);
}
.back .mono, .ic-back .mono { position: absolute; inset: 0; display: grid; place-items: center; }
.back .mono span, .ic-back .mono span {
  font: 700 30px/1 var(--font); letter-spacing: -.04em;
  background-image: linear-gradient(180deg, var(--ink), var(--ink-3));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- back button ---------- */
#back {
  position: absolute; left: 36px; top: 86px; z-index: 20;
  display: inline-flex; align-items: center; gap: 6px;
  border-radius: 999px; padding: 9px 17px 9px 13px;
  color: var(--on-room);
  font: var(--t-callout);
  transition: transform .25s cubic-bezier(.2,.8,.2,1);
}
#back svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) { #back:hover { --lg-tint: rgba(255,255,255, calc(.45 * var(--veil))); transform: translateX(-2px); } }

/* ---------- window ---------- */
.scrim {
  position: fixed; inset: 0; z-index: 45;
  background: rgba(240, 239, 236, .5);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.window {
  position: fixed; z-index: 50;
  display: flex; flex-direction: column;
  background: rgba(250, 250, 253, .88);
  color: var(--ink);
  border: 1px solid rgba(255,255,255,.95);
  border-radius: 32px;
  box-shadow: 0 40px 90px -30px rgba(36, 34, 90, .45), inset 0 1px 0 #fff;
  backdrop-filter: blur(30px) saturate(150%);
  -webkit-backdrop-filter: blur(30px) saturate(150%);
  overflow: hidden;
  --focus: var(--blue);
}
.win-bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 18px 6px 32px; flex: none;
}
.win-kicker { font: var(--t-foot); color: var(--ink-2); }
.win-close {
  width: 36px; height: 36px; border-radius: 50%; border: 0;
  display: grid; place-items: center;
  transition: transform .3s cubic-bezier(.2,.8,.2,1);
  --lg-tint: rgba(29,29,31,.05);
}
.win-close svg { width: 14px; height: 14px; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; }
@media (hover: hover) { .win-close:hover { --lg-tint: rgba(29,29,31,.1); transform: rotate(90deg); } }
.win-body { overflow: auto; padding: 8px clamp(24px, 5vw, 64px) 64px; }

.w-head { display: grid; grid-template-columns: 140px 1fr; gap: 36px; align-items: center; padding-block: 12px 40px; }
.w-head .icon img { width: 140px; height: auto; display: block; mix-blend-mode: multiply; }
.w-eyebrow { font: 500 14px/1.3 var(--font); letter-spacing: -.005em; color: var(--ink-3); margin: 0 0 10px; }
.w-title { font: 500 clamp(36px, 4vw, 52px)/1.02 var(--font); letter-spacing: -.045em; margin: 0; text-wrap: balance; }
.w-lede { font: var(--t-intro); color: var(--ink-2); max-width: 36ch; margin: 14px 0 0; letter-spacing: -.012em; }
.w-sec { border-top: 1px solid var(--rule); padding-block: 28px; display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 32px; }
.w-sec > div { min-width: 0; }
.w-sec h3 { font: 600 13px/1.5 var(--font); letter-spacing: 0; color: var(--ink-3); margin: 0; }
.w-sec p { margin: 0; max-width: 60ch; }
.w-meta { display: flex; flex-wrap: wrap; gap: 12px 40px; font: var(--t-callout); }
.w-meta span { font: var(--t-foot); color: var(--ink-2); display: block; margin-bottom: 2px; }
.w-imgs { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 18px; }
.w-sec > div > .w-imgs:first-child { margin-top: 0; }
.w-img {
  aspect-ratio: 4/3; border-radius: 18px; max-width: 100%;
  background: linear-gradient(140deg, #F4F3F8, #E2DFEB);
  display: grid; place-items: center; font: var(--t-foot); color: var(--ink-3);
}
.w-route { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font: 700 17px/1.3 var(--font); letter-spacing: -.015em; }
.w-route i { width: 32px; height: 2px; border-radius: 2px; background: var(--ink-3); }
.ph { color: var(--ink-3); border: 1px dashed rgba(29,29,31,.18); border-radius: 8px; padding: 1px 9px; font: var(--t-callout); display: inline-block; }
.w-chips { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 700px) {
  .w-head { grid-template-columns: 1fr; gap: 16px; }
  .w-head .icon img { width: 96px; }
  .w-sec { grid-template-columns: 1fr; gap: 10px; }
}

/* ---------- assistant: orb → capsule ----------
   At rest it's a 52px glass orb holding the pixel face. Hover, click or focus stretches
   it sideways into one slim capsule (question + mic). It also opens while it's busy.
   Suggestions float above as small glass pills, only while open.                   */
.assistant {
  --h: 52px;
  --spring: cubic-bezier(.34, 1.45, .6, 1);
  position: fixed; left: 0; right: 0; margin-inline: auto; bottom: calc(26px + env(safe-area-inset-bottom, 0px)); z-index: 60;
  width: min(430px, calc(100vw - 32px)); min-height: var(--h);
  border-radius: 26px;
  color: var(--ink);
  --lg-tint: linear-gradient(160deg, rgba(255,255,255, calc(.72 * var(--veil))), rgba(238,241,245, calc(.62 * var(--veil))));
  box-shadow: 0 18px 40px -18px rgba(12, 32, 70, .38), 0 2px 6px rgba(12, 32, 70, .06);
  transition: transform .35s var(--spring), box-shadow .35s ease;   /* width is animated in JS (one timeline) */
}
.assistant::before { backdrop-filter: blur(10px) saturate(180%) brightness(1.05); -webkit-backdrop-filter: blur(10px) saturate(180%) brightness(1.05); }
.assistant:not(.open) { cursor: pointer; }
.assistant .hl {                                  /* a soft specular highlight that follows the pointer */
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 2;
  background: radial-gradient(120px 60px at var(--hx, 30%) var(--hy, 0%), rgba(255,255,255,.75), transparent 70%);
  mix-blend-mode: soft-light; opacity: 0; transition: opacity .35s ease;
}
@media (hover: hover) { .assistant:hover .hl { opacity: 1; } }
@media (hover: hover) { .assistant:not(.open):hover { transform: translateY(-2px) scale(1.08); } }
.assistant:not(.open):active { transform: scale(.94); }
.assistant.sunk { transform: translateY(8px) scale(.96); }
.assistant.nudge .a-face { animation: nudge .7s var(--spring); }   /* a hop when the question changes */
@keyframes nudge { 30% { transform: scale(1.18); } 60% { transform: scale(.94); } }

.a-row {
  display: grid; grid-template-columns: var(--h) 1fr auto 44px; align-items: center;
  min-height: var(--h); overflow: hidden; border-radius: inherit;
}
.a-face { display: grid; place-items: center; width: var(--h); height: var(--h); }
.pixels { width: 34px; height: 34px; display: block; }
.a-main { min-width: 0; padding: 8px 4px 8px 2px; cursor: text; }
.a-line { margin: 0; font: var(--t-callout); font-size: 14.5px; letter-spacing: -.01em; line-height: 1.35; }
.assistant .w { display: inline-block; transition: opacity .35s ease, filter .35s ease, transform .35s cubic-bezier(.2,.9,.25,1); }
.assistant .w.dim { opacity: 0; filter: blur(5px); transform: translateY(3px); }
.a-line.interim { color: var(--ink-2); }
.assistant.typing .a-line { display: none; }
.a-form input {
  width: 100%; border: 0; background: transparent; padding: 4px 0;
  font: var(--t-callout); font-size: 14.5px; color: var(--ink);
}
.a-form input::placeholder { color: var(--ink-3); opacity: .8; transition: opacity .2s ease; }
.a-form input:focus::placeholder { opacity: .5; }
.a-form input { caret-color: var(--blue); }
.a-form input:focus { outline: none; }
.a-controls { display: flex; align-items: center; gap: 4px; }
.a-timer { font: var(--t-foot); color: var(--ink-2); font-variant-numeric: tabular-nums; margin-right: 4px; }
.a-key {
  width: 32px; height: 32px; border-radius: 50%; border: 0; background: transparent;
  display: grid; place-items: center; transition: background .2s ease, transform .3s var(--spring);
}
.a-key svg { width: 17px; height: 17px; fill: none; stroke: var(--ink-2); stroke-width: 1.6; stroke-linecap: round; }
@media (hover: hover) { .a-key:hover { background: rgba(12,32,70,.06); transform: scale(1.08); } }
.a-key:active { transform: scale(.9); }
.a-key[aria-pressed="true"] svg { stroke: var(--ink); }
.a-micwrap { display: grid; place-items: center; width: 44px; height: var(--h); }
.a-mic {
  position: relative; width: 36px; height: 36px; border-radius: 50%; border: 0;
  background: #fff; display: grid; place-items: center;
  box-shadow: 0 4px 10px -4px rgba(12,32,70,.25), inset 0 1px 0 #fff;
}
.a-mic svg { width: 17px; height: 17px; fill: none; stroke: var(--blue); stroke-width: 1.9; stroke-linecap: round; transition: transform .3s var(--spring), stroke .2s ease; }
.a-mic svg rect { fill: var(--blue); stroke: none; transition: fill .2s ease; }
@media (hover: hover) { .a-mic:hover svg { transform: scale(1.1); } }
.a-mic:active svg { transform: scale(.85); }
.a-mic::after {                                   /* ripple ring while the mic is live */
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid var(--orange); opacity: 0; pointer-events: none;
}
.assistant[data-state="listening"] .a-mic { background: var(--orange); }
.assistant[data-state="listening"] .a-mic svg { stroke: #fff; }
.assistant[data-state="listening"] .a-mic svg rect { fill: #fff; }
.assistant[data-state="listening"] .a-mic::after { animation: ring 1.4s ease-out infinite; }
@keyframes ring { from { transform: scale(1); opacity: .7; } to { transform: scale(1.8); opacity: 0; } }
.assistant:not(.open) .a-main, .assistant:not(.open) .a-controls, .assistant:not(.open) .a-micwrap { pointer-events: none; }
.a-line { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.a-pop {                                          /* everything that floats above the capsule */
  position: absolute; left: 50%; bottom: calc(100% + 10px); transform: translateX(-50%);
  width: min(430px, calc(100vw - 32px));
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  pointer-events: none;
}
.a-pop > * { pointer-events: auto; }
.a-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; transition: opacity .25s ease; }

/* the conversation: last question and answer stay on screen until closed */
.a-thread.liquid::before, .assistant.liquid::before { backdrop-filter: blur(calc(var(--frost) * 1.8)) saturate(170%); -webkit-backdrop-filter: blur(calc(var(--frost) * 1.8)) saturate(170%); filter: none; }
.a-thread.liquid, .assistant.liquid { background: rgba(var(--g), calc(.2 + .45 * var(--clarity))); }
.a-thread {
  width: 100%; border-radius: 22px; padding: 14px 14px 12px;
  --lg-tint: linear-gradient(160deg, rgba(255,255,255, calc(.8 * var(--veil))), rgba(242,244,247, calc(.72 * var(--veil))));
  box-shadow: 0 20px 44px -22px rgba(12,32,70,.4);
  color: var(--ink);
}
.t-list { display: flex; flex-direction: column; gap: 10px; max-height: 38vh; overflow-y: auto; scrollbar-width: none; padding-right: 22px; }
.t-list::-webkit-scrollbar { display: none; }
.msg { margin: 0; font: var(--t-callout); font-size: 14.5px; line-height: 1.45; letter-spacing: -.01em; }
.msg.q {
  align-self: flex-end; max-width: 82%; padding: 7px 12px; border-radius: 16px 16px 4px 16px;
  background: rgba(14,17,22,.06); color: var(--ink);
}
.msg.a { align-self: flex-start; max-width: 100%; }
.msg.a .act {                                     /* a soft glass pill, never a black slab */
  display: inline-flex; align-items: center; gap: 7px; margin-top: 10px;
  border: 0; border-radius: 999px; padding: 7px 13px 7px 11px; font: 500 13px/1 var(--font); color: var(--ink);
  background: rgba(var(--g), .7); box-shadow: inset 0 0 0 1px rgba(14,17,22,.08), 0 6px 16px -10px rgba(12,32,70,.35);
  transition: transform .3s var(--spring), background .2s ease;
}
.msg.a .act svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; opacity: .75; }
.msg.a .a-card {                                  /* a link preview of the card the answer points to */
  display: flex; align-items: center; gap: 11px; margin-top: 10px; width: min(100%, 260px);
  border: 0; border-radius: 16px; padding: 7px 12px 7px 7px; text-align: left; color: var(--ink);
  background: rgba(var(--g), .72); box-shadow: inset 0 0 0 1px rgba(14,17,22,.07), 0 8px 20px -12px rgba(12,32,70,.4);
  transition: transform .35s var(--spring), box-shadow .25s ease;
}
.a-card-art { flex: none; width: 40px; height: 48px; border-radius: 9px; display: grid; place-items: center; overflow: hidden;
  background: linear-gradient(160deg, rgba(255,255,255,.95), rgba(232,236,242,.8)); box-shadow: inset 0 0 0 1px rgba(14,17,22,.06); }
.a-card-art img { width: 34px; height: 34px; object-fit: contain; }
.a-card-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; font: 500 14px/1.2 var(--font); letter-spacing: -.01em; }
.a-card-txt small { font: 500 11px/1 var(--font); color: var(--ink-3); letter-spacing: 0; }
.msg.a .a-card svg { flex: none; width: 16px; height: 16px; fill: none; stroke: var(--ink-3); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--spring); }
@media (hover: hover) {
  .msg.a .act:hover { transform: translateY(-1px); background: rgba(var(--g), .9); }
  .msg.a .a-card:hover { transform: translateY(-2px) rotate(-.6deg); box-shadow: inset 0 0 0 1px rgba(14,17,22,.09), 0 14px 26px -14px rgba(12,32,70,.45); }
  .msg.a .a-card:hover svg { transform: translateX(3px); }
}
.msg.a .act:active, .msg.a .a-card:active { transform: scale(.96); }
[data-theme="night"] .a-card-art { background: linear-gradient(160deg, rgba(60,70,100,.9), rgba(40,48,74,.8)); }
.dots { display: inline-flex; gap: 4px; padding: 6px 0; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); animation: dot 1s ease-in-out infinite; }
.dots i:nth-child(2) { animation-delay: .15s; } .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 100% { opacity: .3; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-3px); } }
.t-close {
  position: absolute; top: 10px; right: 10px; width: 26px; height: 26px; border-radius: 50%; border: 0;
  background: rgba(14,17,22,.06); display: grid; place-items: center; z-index: 3;
  transition: background .2s ease, transform .3s var(--spring);
}
.t-close svg { width: 10px; height: 10px; stroke: var(--ink-2); stroke-width: 2; stroke-linecap: round; }
@media (hover: hover) { .t-close:hover { background: rgba(14,17,22,.12); transform: rotate(90deg); } }
.a-chips:empty, .assistant:not(.open) .a-chips { opacity: 0; pointer-events: none; }
.chip {
  color: var(--ink);
  border-radius: 999px; padding: 6px 12px; font: var(--t-foot); white-space: nowrap; flex: none;
  box-shadow: 0 4px 12px -6px rgba(12, 32, 70, .22);
  transition: transform .3s var(--spring);
}
@media (hover: hover) { .chip:hover { --lg-tint: rgba(255,255,255, calc(.62 * var(--veil))); transform: translateY(-2px) scale(1.03); } }
.chip:active { transform: scale(.95); }

/* the CSS glass always stays on underneath, so the capsule never loses its body while it
   resizes; the LiquidGlass canvas (when available) adds refraction and highlights on top */

/* ---------- loading screen: frost on the window ----------
   The page is already rendered underneath. A pane of frosted glass covers it; a glass
   card fills from the bottom up and its border draws itself; then the frost melts open. */
.intro { position: fixed; inset: 0; z-index: 90; cursor: pointer; }
.ld-frost {
  position: absolute; inset: 0; --r: -24vmax; --blur: 34px;
  backdrop-filter: blur(var(--blur)) saturate(140%); -webkit-backdrop-filter: blur(var(--blur)) saturate(140%);
  background: rgba(var(--g), .55);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, transparent var(--r), #000 calc(var(--r) + 22vmax));
          mask-image: radial-gradient(circle at 50% 50%, transparent var(--r), #000 calc(var(--r) + 22vmax));
}
[data-theme="night"] .ld-frost { background: rgba(14, 22, 44, .55); }
.ld-content { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; text-align: center; padding: 24px 16px; }
.ld-card {
  --fill-n: 0; position: relative; padding: 18px 18px 22px; border-radius: 22px;
  background: linear-gradient(150deg, rgba(var(--g), .55), rgba(var(--g), .22));
  backdrop-filter: blur(10px) saturate(150%); -webkit-backdrop-filter: blur(10px) saturate(150%);
  box-shadow: inset 1.5px 1.5px 1px rgba(255,255,255,.95), inset -1px -1px 1px rgba(255,255,255,.4),
              inset 0 0 30px -10px rgba(255,255,255,.8), 0 26px 50px -26px rgba(12,20,32,.35);
}
[data-theme="night"] .ld-card { box-shadow: inset 1.5px 1.5px 1px rgba(255,255,255,.3), inset 0 0 30px -10px rgba(140,170,240,.3), 0 26px 50px -26px rgba(0,0,0,.6); }
.ld-art {
  width: min(180px, 38vw); height: auto; display: block; filter: drop-shadow(0 16px 20px rgba(12,20,32,.16));
  -webkit-mask-image: linear-gradient(to top, #000 calc(var(--fill-n) * 100% - 4%), transparent calc(var(--fill-n) * 100% + 4%));
          mask-image: linear-gradient(to top, #000 calc(var(--fill-n) * 100% - 4%), transparent calc(var(--fill-n) * 100% + 4%));
}
.ld-water {
  position: absolute; left: 12px; right: 12px; bottom: calc(22px + (100% - 40px) * var(--fill-n)); height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.95), transparent);
  box-shadow: 0 0 10px rgba(255,255,255,.9), 0 0 24px rgba(120,170,255,.35);
  opacity: calc(1 - var(--fill-n) * var(--fill-n) * var(--fill-n));
  animation: ld-shimmer 1.6s ease-in-out infinite;
}
@keyframes ld-shimmer { 50% { transform: scaleX(.85); } }
.ld-edge { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.ld-edge rect { width: calc(100% - 2px); height: calc(100% - 2px); fill: none; stroke: var(--ink); stroke-opacity: .55; stroke-width: 1.2;
  stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--fill-n) * 100); stroke-linecap: round; }
.ld-edge rect.in { width: calc(100% - 17px); height: calc(100% - 17px); stroke-opacity: .22; stroke-width: 1; }
.ld-title { margin: 18px 0 0; font: 500 clamp(28px, 3.2vw, 40px)/1.05 var(--font); letter-spacing: -.045em; color: var(--ink); }
.ld-title small {
  display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 12px;
  font: 600 11px/1 var(--font); letter-spacing: .28em; text-transform: uppercase; color: var(--ink); opacity: .6;
}
.ld-title small i { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .7; }   /* · WELCOME TO · */
.ld-title em { font: italic 400 1.14em/1 "Instrument Serif", Georgia, serif; letter-spacing: -.01em; }
.ld-status {
  margin: 16px 0 0; display: inline-flex; align-items: center; gap: 8px; min-height: 1.3em;
  font: 600 11px/1 var(--font); letter-spacing: .24em; text-transform: uppercase; color: var(--ink); opacity: .62;
}
.ld-dots { display: inline-flex; gap: 4px; }
.ld-dots b { width: 4px; height: 4px; border-radius: 50%; background: currentColor; animation: ld-dot 1.2s ease-in-out infinite; }
.ld-dots b:nth-child(2) { animation-delay: .15s; } .ld-dots b:nth-child(3) { animation-delay: .3s; }
@keyframes ld-dot { 0%, 80%, 100% { opacity: .2; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-2px); } }
.ld-count {
  position: absolute; right: clamp(20px, 5vw, 64px); bottom: clamp(16px, 4vw, 44px);
  font: 400 clamp(72px, 11vw, 150px)/.8 var(--font); letter-spacing: -.06em; font-variant-numeric: tabular-nums; color: var(--ink);
}
.ld-count sup { font-size: .22em; letter-spacing: 0; vertical-align: top; margin-left: 6px; opacity: .6; }
.ld-sound {
  position: absolute; top: calc(20px + env(safe-area-inset-top, 0px)); right: clamp(20px, 5vw, 64px);
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px 9px 11px; border-radius: 999px; cursor: pointer;
  border: 0; background: rgba(var(--g), .5); color: var(--ink); font: 500 13px/1 var(--font);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 1px 1px 0 rgba(255,255,255,.7), 0 8px 20px -12px rgba(12,20,32,.35);
  transition: transform .25s cubic-bezier(.34,1.45,.6,1), background .2s ease;
}
@media (hover: hover) { .ld-sound:hover { transform: translateY(-1px); } }
.ld-sound:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.ld-sound svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ld-sound .spk { fill: currentColor; stroke: none; }
.ld-sound .on { display: none; } .ld-sound.is-on .on { display: inline; } .ld-sound.is-on .off { display: none; }
.ld-sound.is-on { color: var(--blue); }
.ld-mark { position: absolute; left: clamp(20px, 5vw, 64px); bottom: clamp(20px, 4vw, 48px); font: italic 400 30px/1 "Instrument Serif", Georgia, serif; color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
}


/* ======================================================================
   Night: moonlit meadow, dark smoked glass, light ink
   ====================================================================== */
:root[data-theme="night"] {
  color-scheme: dark;
  --on-room: #F4F1EC; --on-room-2: #B8B1A6; --on-room-3: #7D766C;
  --ink: #F4F1EC; --ink-2: #B8B1A6; --ink-3: #857E74;
  --hair: rgba(255,255,255,.14); --edge: rgba(255,255,255,.22); --rule: rgba(255,255,255,.1);
  --line: rgba(255,236,200,.14);
  --g: 30, 38, 62;
  --blue: #3D9BFF; --focus: #6CB4FF;
  --bg-color: #010A1B; --bg-img: url("assets/bg-meadow-night.webp");
}
[data-theme="night"] body { background: #010A1B; }
[data-theme="night"] .grain { mix-blend-mode: screen; }
[data-theme="night"] .liquid { --lg-tint: rgba(34,42,68, calc(.5 * var(--veil))); --lg-rim: rgba(255,255,255,.26); --lg-rim-2: rgba(255,255,255,.08); }
[data-theme="night"] .glass { background: linear-gradient(150deg, rgba(52,62,94, calc(.74 * var(--veil))) 0%, rgba(24,31,54, calc(.68 * var(--veil))) 55%, rgba(42,51,82, calc(.72 * var(--veil))) 100%); box-shadow: 0 30px 54px -26px rgba(0,0,0,.6), inset 1.5px 1.5px 1px rgba(255,255,255,.22), inset -1px -1px 1px rgba(255,255,255,.06), inset 0 0 40px -12px rgba(160,180,255,.22); }
[data-theme="night"] .deck .glass { background: linear-gradient(150deg, rgba(64,76,112, calc(.62 * var(--veil))) 0%, rgba(30,38,64, calc(.56 * var(--veil))) 55%, rgba(52,62,96, calc(.6 * var(--veil))) 100%); box-shadow: inset 1.5px 1.5px 1px rgba(255,255,255,.24), inset 0 0 40px -12px rgba(160,180,255,.24); }
[data-theme="night"] .pack .side.r, [data-theme="night"] .pack .side.l { background: repeating-linear-gradient(90deg, rgba(190,205,240,.35) 0 1.3px, rgba(30,38,64,.55) 1.3px 2.6px); }
[data-theme="night"] .pack .side.t, [data-theme="night"] .pack .side.b { background: repeating-linear-gradient(0deg, rgba(190,205,240,.35) 0 1.3px, rgba(30,38,64,.55) 1.3px 2.6px); }
[data-theme="night"] .pack .rear { background: rgba(22,28,48,.7); box-shadow: 0 30px 50px -24px rgba(0,0,0,.6); }
[data-theme="night"] .pack-face .layer.lift { background: radial-gradient(90% 70% at 50% 35%, rgba(90,104,150,.45) 0%, rgba(20,26,46,.55) 80%); box-shadow: inset 0 1px 3px rgba(0,0,0,.4), inset 0 0 0 1px rgba(255,255,255,.07); }
[data-theme="night"] .engraved { color: rgba(236,242,255,.94); text-shadow: 0 1px 2px rgba(0,0,0,.65), 0 0 10px rgba(8,12,28,.55); }   /* night: bright lettering that holds against the lamp glow */
[data-theme="night"] .back .mono span, [data-theme="night"] .ic-back .mono span { background-image: linear-gradient(180deg, #fff, #7C879B); }
[data-theme="night"] .star { fill: var(--ink); }
[data-theme="night"] .window { background: rgba(18,24,42,.92); box-shadow: 0 40px 90px -30px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.12); }
[data-theme="night"] .w-img { background: linear-gradient(140deg, #2A3148, #1E2437); }
[data-theme="night"] .scrim { background: rgba(0,0,0,.5); }
[data-theme="night"] .msg.q, [data-theme="night"] .t-close { background: rgba(255,255,255,.08); }
[data-theme="night"] .msg.a .act { background: #EEF1F6; color: #0B1022; }
[data-theme="night"] .a-mic { background: #EEF1F6; }
[data-theme="night"] .dots i { background: var(--ink-2); }
[data-theme="night"] .intro { background: #010A1B; }
.glass, .liquid::after { transition: background .6s ease, box-shadow .6s ease; }

/* ---------- settings panel ---------- */
.set-btn {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: var(--on-room);
  transition: transform .4s cubic-bezier(.34,1.45,.6,1);
}
.set-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
@media (hover: hover) { .set-btn:hover { transform: rotate(40deg); } }
.settings {
  position: fixed; top: calc(80px + env(safe-area-inset-top, 0px)); right: 36px; z-index: 70;
  width: 272px; border-radius: 22px; padding: 16px 16px 14px;
  --lg-tint: rgba(var(--g), calc(.78 * var(--veil)));
  box-shadow: 0 24px 50px -22px rgba(12,32,70,.4);
  color: var(--ink); display: flex; flex-direction: column; gap: 14px;
}
.settings.liquid::before { backdrop-filter: blur(max(8px, calc(var(--frost) * 1.7))) saturate(170%); -webkit-backdrop-filter: blur(max(8px, calc(var(--frost) * 1.7))) saturate(170%); filter: none; }
.settings h2 { margin: 0; font: 600 12px/1 var(--font); letter-spacing: 0; color: var(--ink-3); }
.seg { display: grid; grid-template-columns: repeat(5, 1fr); padding: 3px; border-radius: 12px; background: rgba(127,127,140,.14); }
.seg button {
  border: 0; background: transparent; border-radius: 9px; padding: 7px 0; font: 500 11.5px/1 var(--font); color: var(--ink-2);
  transition: background .25s ease, color .25s ease, box-shadow .25s ease;
}
.seg button[aria-pressed="true"] { background: rgba(var(--g), .95); color: var(--ink); box-shadow: 0 2px 8px -3px rgba(0,0,0,.25); }
.slider { display: grid; grid-template-columns: 1fr auto; gap: 8px 10px; align-items: center; }
.slider label { font: 500 13px/1 var(--font); color: var(--ink); }
.slider output { font: 500 12px/1 var(--font); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.slider input { grid-column: 1 / -1; width: 100%; margin: 0; accent-color: var(--blue); }
.set-reset { align-self: flex-start; border: 0; background: none; padding: 0; font: 500 12.5px/1 var(--font); color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
[data-theme="night"] .liquid.blue { --lg-tint: rgba(10, 132, 255, .9); --lg-rim: rgba(255,255,255,.5); color: #fff; }
[data-theme="night"] .front .icon:not(.art) img { mix-blend-mode: normal; filter: invert(.88) hue-rotate(180deg); }   /* placeholder icons stay visible on dark glass */

/* ---- type system: Satoshi reads, Instrument Serif italic is the one accent per view ---- */
em.acc { font: italic 400 1.14em/1 "Instrument Serif", Georgia, serif; letter-spacing: -.01em; }
.w-sec p { font: var(--t-body); max-width: 60ch; }
.deck-head { position: absolute; left: 0; right: 0; top: 17vh; z-index: 20; text-align: center; }
.dh-title, .dh-count { text-shadow: 0 0 24px var(--bg-color, #fff), 0 0 2px var(--bg-color, #fff); }
.dh-title { margin: 0; font: 500 clamp(30px, 3vw, 44px)/1 var(--font); letter-spacing: -.045em; color: var(--ink); }
.dh-count { margin: 10px 0 0; font: 500 14px/1 var(--font); color: var(--ink-2); }
@media (max-width: 700px) { .deck-head { top: 13vh; } }

/* ---- day ↔ night: a circle of the new scene grows out of the switch (View Transitions) ---- */
/* soft, smoky reveal: the new scene grows through a wide feathered edge while it
   sharpens from a blur, and the old scene melts into a blur underneath it */
@property --vr { syntax: "<length>"; inherits: true; initial-value: 0px; }
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-new(root) {
  z-index: 2; will-change: filter, mask-image;
  -webkit-mask-image: radial-gradient(circle at var(--vx, 50%) var(--vy, 50%), #000 var(--vr), rgba(0,0,0,.55) calc(var(--vr) + 9vmax), transparent calc(var(--vr) + 24vmax));
          mask-image: radial-gradient(circle at var(--vx, 50%) var(--vy, 50%), #000 var(--vr), rgba(0,0,0,.55) calc(var(--vr) + 9vmax), transparent calc(var(--vr) + 24vmax));
}

/* nothing on the page animates its own transitions while a snapshot swap is running */
html:active-view-transition * { transition: none !important; }

/* ---- edge typography: labels at the sides, a stacked statement bottom-right, a pill bottom-left ---- */
.edge { position: absolute; top: calc(15vh + 10px); z-index: 1; margin: 0; }
.edge-l { left: clamp(24px, 6vw, 96px); } .edge-r { right: clamp(24px, 6vw, 96px); text-align: right; }
.edge dt { font: 500 12px/1 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; }
.edge dd { margin: 0; font: 700 14px/1.2 var(--font); letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }
.headline { top: 17vh; }
.edge-pill {
  position: absolute; left: clamp(24px, 6vw, 96px); bottom: 34px; z-index: 6;
  padding: 10px 16px; border-radius: 999px; font: 500 14px/1 var(--font); color: var(--ink);
  --lg-tint: rgba(var(--g), calc(.55 * var(--veil)));
}
body:not(.at-table) .edge-pill { opacity: 0; transition: opacity .3s ease; }
@media (max-width: 900px) { .edge, .edge-pill { display: none; } }

/* ---- window content blocks ---- */
.w-list { margin: 14px 0 0; padding-left: 18px; display: grid; gap: 8px; max-width: 62ch; }
.w-list li { font: var(--t-body); font-size: 16px; color: var(--ink); }
.w-list li::marker { color: var(--ink-3); }
.w-sec .w-meta + .w-chips, .w-sec .w-meta + .w-list { margin-top: 14px; }
.w-chip { padding: 6px 12px; border-radius: 999px; font: 500 13px/1 var(--font); color: var(--ink); background: rgba(127,127,140,.12); }
.w-link {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; border: 0; cursor: pointer;
  padding: 9px 15px; border-radius: 999px; background: var(--ink); color: var(--bg-color, #fff);
  font: 500 14px/1 var(--font); text-decoration: none; transition: transform .25s cubic-bezier(.34,1.45,.6,1);
}
@media (hover: hover) { .w-link:hover { transform: translateX(2px); } }
.w-link + .w-link { margin-left: 8px; }
.w-sec a:not(.w-link) { color: var(--ink); text-underline-offset: 3px; }
.w-stats { display: flex; flex-wrap: wrap; gap: 28px; }
.w-stats b { display: block; font: 500 36px/1 var(--font); letter-spacing: -.04em; color: var(--ink); }
.w-stats span { display: block; margin-top: 6px; font: 500 13px/1.3 var(--font); color: var(--ink-3); max-width: 16ch; }
.w-mocks { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.w-mocks figure { margin: 0; }
.w-mocks img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 12; object-fit: cover; object-position: top; border-radius: 14px;
  box-shadow: 0 1px 0 rgba(255,255,255,.8) inset, 0 14px 30px -18px rgba(12,32,70,.35), 0 0 0 1px rgba(14,17,22,.06); }
.w-mocks figcaption { margin-top: 8px; font: var(--t-foot); color: var(--ink-3); }

/* dealt cards overlap in the fan: titles sit bottom-left (the part that stays visible) and may wrap */
.spread .c-bot { left: 14px; right: 14px; text-align: left; }
.spread .card-title { display: block; white-space: normal; line-height: 1.3; font-size: 10px; letter-spacing: .12em; }
.spread .card-title.long { letter-spacing: .04em; font-size: 9.5px; }   /* one long word (Hilfegeschichten) still fits the card */

/* photo inside the Hello window */
.w-photo { margin: 0 0 8px; border-radius: 18px; overflow: hidden; width: 100%; aspect-ratio: 5 / 2; max-width: 100%; }   /* spans the window, kept short */
.w-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; display: block; }

/* hovering the name: a small photo follows the cursor */
.display { display: inline-block; pointer-events: auto; cursor: default; }
.name-peek {
  position: fixed; left: 0; top: 0; z-index: 40; width: 128px; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%;
  border-radius: 14px; pointer-events: none; opacity: 0; transform: scale(.85);
  box-shadow: 0 30px 60px -24px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.35);
  will-change: transform, opacity;
}

/* while chatting with the assistant, the scene softens behind the conversation */
.stage, .topbar { transition: filter .5s ease, opacity .5s ease; }
body.chatting .backdrop { filter: blur(12px) saturate(1.05); transform: scale(1.03); }
body.chatting .stage { filter: blur(6px); opacity: .55; pointer-events: none; }
body.chatting .topbar { filter: blur(2px); opacity: .7; }

/* ---- living scene: parallax, wind, fireflies, lamp ---- */
.scene { position: fixed; inset: 0; z-index: -1; pointer-events: none; translate: var(--plx, 0px) var(--ply, 0px); transition: translate .1s linear; }
.decks { translate: var(--dlx, 0px) var(--dly, 0px); transition: translate .1s linear; }
body:not(.at-table) .decks { --dlx: 0px; --dly: 0px; }

.wind {                                              /* a soft band of blur that trails the cursor through the flowers */
  position: absolute; inset: -2%; pointer-events: none;
  background: var(--bg-color, #FDFDFC) var(--bg-img, url("assets/bg-meadow-white.webp")) center bottom / max(100%, 1100px) auto no-repeat;
  filter: blur(2.2px) saturate(1.08);
  transform: translateX(var(--wsx, 0px)) skewX(var(--wsk, 0deg));
  -webkit-mask-image: radial-gradient(160px 90px at var(--wx, -500px) var(--wy, -500px), #000 0, rgba(0,0,0,.5) 55%, transparent 100%);
          mask-image: radial-gradient(160px 90px at var(--wx, -500px) var(--wy, -500px), #000 0, rgba(0,0,0,.5) 55%, transparent 100%);
  opacity: var(--wo, 0);
}
.lamp {                                              /* night only: the desk light slowly breathes */
  position: absolute; left: var(--dx, 50%); top: var(--dy, 60%); width: 520px; height: 260px;
  transform: translate(-50%, -45%); border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255,196,110,.55), rgba(255,170,80,.18) 55%, transparent 100%);
  mix-blend-mode: screen; opacity: 0;
}
[data-theme="night"] .lamp { animation: lamp 5.5s ease-in-out infinite; }
@keyframes lamp { 0%, 100% { opacity: .28; transform: translate(-50%, -45%) scale(.96); } 50% { opacity: .62; transform: translate(-50%, -45%) scale(1.04); } }
.flies { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; display: none; }
[data-theme="night"] .flies { display: block; }
body.focused .wind, body.focused .flies, body.focused .lamp { opacity: 0 !important; transition: opacity .4s ease; }
@media (prefers-reduced-motion: reduce) { .wind, .flies { display: none !important; } .lamp { animation: none !important; opacity: .45 !important; } }

/* drifting petals (petals.js, Three.js) */
.petals { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

/* catchy lines: a kicker above the name, proof points under the role */
.kicker { margin: 0 0 14px; font: 500 15px/1.3 var(--font); letter-spacing: -.005em; color: var(--ink-3); }
.lede { max-width: 30ch; margin-inline: auto; text-wrap: balance; }
.proof {
  position: absolute; left: clamp(24px, 6vw, 96px); top: calc(15vh + 76px); z-index: 1;
  margin: 0; padding: 0 0 0 14px; list-style: none; display: grid; gap: 9px; max-width: 300px; white-space: nowrap;
  border-left: 1px solid var(--line, rgba(14,17,22,.14));
}
.proof li { font: 500 14px/1.35 var(--font); letter-spacing: -.005em; color: var(--ink-2); }
.proof li:last-child { color: var(--ink); font-weight: 600; }
.proof b { font-weight: 700; color: var(--ink); }
@media (max-width: 1100px) { .proof { display: none; } }

/* sound switch in settings */
.switch { display: flex; align-items: center; justify-content: space-between; cursor: pointer; font: 500 13px/1 var(--font); color: var(--ink); }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch i { position: relative; width: 38px; height: 22px; border-radius: 999px; background: rgba(127,127,140,.3); transition: background .25s ease; }
.switch i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .3s cubic-bezier(.34,1.45,.6,1); }
.switch input:checked + i { background: var(--blue); }
.switch input:checked + i::after { transform: translateX(16px); }
.switch input:focus-visible + i { outline: 2px solid var(--focus); outline-offset: 2px; }

/* social links, bottom-right of the home screen */
.socials { position: absolute; right: clamp(24px, 6vw, 96px); bottom: 34px; z-index: 6; pointer-events: auto; display: flex;   /* the host layer ignores the mouse; the links must not */ gap: 8px; margin: 0; padding: 0; list-style: none; }
.socials a {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: var(--ink);
  --lg-tint: rgba(var(--g), calc(.55 * var(--veil))); transition: transform .25s cubic-bezier(.34,1.45,.6,1);
}
@media (hover: hover) { .socials a:hover { transform: translateY(-2px); } }
.socials a:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.socials svg { width: 17px; height: 17px; fill: currentColor; }
body:not(.at-table) .socials { opacity: 0; pointer-events: none; transition: opacity .3s ease; }
@media (max-width: 900px) { .socials { bottom: auto; top: calc(78px + env(safe-area-inset-top, 0px)); right: 16px; } }

/* name tooltip above each social button */
.socials .tip {
  position: absolute; bottom: calc(100% + 10px); right: 50%; transform: translate(50%, 4px);
  white-space: nowrap; padding: 6px 10px; border-radius: 999px; font: 500 12.5px/1 var(--font); color: var(--ink);
  background: rgba(var(--g), .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 20px -10px rgba(12,20,32,.35), inset 1px 1px 0 rgba(255,255,255,.6);
  opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .3s cubic-bezier(.34,1.45,.6,1);
}
@media (hover: hover) { .socials a:hover .tip, .socials a:focus-visible .tip { opacity: 1; transform: translate(50%, 0); } }
.socials li:last-child .tip { right: 0; transform: translate(0, 4px); }
@media (hover: hover) { .socials li:last-child a:hover .tip, .socials li:last-child a:focus-visible .tip { transform: translate(0, 0); } }

/* ---- rotating testimonial, bottom-left of the home screen ---- */
.quote-card {
  position: absolute; left: clamp(24px, 6vw, 96px); bottom: 30px; z-index: 6; margin: 0; pointer-events: auto;
  width: min(330px, 30vw); padding: 14px 16px 12px; border-radius: 18px; color: var(--ink);
  --lg-tint: rgba(var(--g), calc(.62 * var(--veil)));
}
.quote-card blockquote { margin: 0; font: 500 14px/1.45 var(--font); letter-spacing: -.005em; }
.quote-card blockquote::before { content: "“"; font: italic 400 28px/0 "Instrument Serif", Georgia, serif; vertical-align: -9px; margin-right: 2px; opacity: .5; }
.quote-card figcaption { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.quote-card figcaption img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.quote-card figcaption b { display: block; font: 600 12.5px/1.2 var(--font); }
.quote-card figcaption small { display: block; font: 500 11.5px/1.3 var(--font); color: var(--ink-2); }
.qc-all { position: absolute; right: 12px; bottom: 12px; border: 0; background: none; padding: 4px 2px; cursor: pointer;
  font: 500 12px/1 var(--font); color: var(--ink-2); transition: color .2s ease, transform .25s cubic-bezier(.34,1.45,.6,1); }
@media (hover: hover) { .qc-all:hover { color: var(--ink); transform: translateX(2px); } }
.qc-dots { display: flex; gap: 4px; margin-top: 8px; }
body:not(.at-table) .quote-card { opacity: 0; pointer-events: none; transition: opacity .3s ease; }
@media (max-width: 900px) { .quote-card { display: none; } }

/* ---- testimonials inside the Kind Words window ---- */
.w-quote { margin: 0; }
.w-quote blockquote { margin: 0; font: 400 18px/1.5 var(--font); letter-spacing: -.01em; color: var(--ink); max-width: 56ch; }
.w-quote figcaption { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.w-quote img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.w-quote b { display: block; font: 600 14px/1.2 var(--font); }
.w-quote span { font: 500 13px/1.3 var(--font); color: var(--ink-2); }

/* micro status: a tiny glass capsule with availability and a live digital clock */
.micro {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 11px 6px 10px; border-radius: 999px; color: var(--ink);
  --lg-tint: rgba(var(--g), calc(.45 * var(--veil))); font: 600 10.5px/1 var(--font); letter-spacing: .14em; text-transform: uppercase;
}
.micro .dot { position: relative; width: 6px; height: 6px; border-radius: 50%; background: #30C15B; flex: none; }
.micro .dot::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 1.5px solid #30C15B; animation: m-ping 2s ease-out infinite; }
@keyframes m-ping { from { transform: scale(.6); opacity: .9; } to { transform: scale(1.8); opacity: 0; } }
.m-sep { width: 1px; height: 11px; background: currentColor; opacity: .2; }
.m-clock { font: 500 12px/1 "SF Mono", ui-monospace, Menlo, monospace; letter-spacing: .04em; font-variant-numeric: tabular-nums; text-transform: none; }
.m-clock .c { animation: m-blink 1s steps(1) infinite; }
@keyframes m-blink { 50% { opacity: .15; } }
.m-zone { opacity: .5; font-size: 9.5px; letter-spacing: .16em; }
@media (prefers-reduced-motion: reduce) { .micro .dot::after, .m-clock .c { animation: none; } }
@media (max-width: 700px) { .m-sep, .m-zone { display: none; } }   /* phones keep dot, icon and time */


/* ---------- time of day: sunrise and evening scenes ---------- */
:root[data-phase="sunrise"] { --bg-img: url("assets/bg-meadow-sunrise.webp"); --bg-color: #B4C7DB; --cloud: 255, 244, 232; }
:root[data-phase="evening"] { --bg-img: url("assets/bg-meadow-evening.webp"); --bg-color: #A3849F; --cloud: 255, 196, 170; }
:root[data-phase="day"]     { --cloud: 226, 230, 238; }
[data-phase="evening"] .lede, [data-phase="evening"] .kicker, [data-phase="evening"] .edge dt { color: rgba(40,24,40,.62); }   /* readable on the warm sky */
[data-phase="evening"] .proof li { color: rgba(40,24,40,.75); }

/* the phase icon in the micro status */
.m-phase { display: inline-grid; place-items: center; width: 14px; height: 14px; margin-right: -3px; }
.m-phase svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* clouds and morning mist are painted on a canvas (see skyLife in app.js) */
.sky { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; transition: opacity .5s ease; }
body.focused .sky { opacity: 0; }
/* hover the time: Abhishek's own time in Siegen */
.micro { position: relative; }
.m-tip {
  position: absolute; left: 0; top: calc(100% + 8px); white-space: nowrap; padding: 7px 11px; border-radius: 10px;
  font: 500 12px/1.2 var(--font); letter-spacing: 0; text-transform: none; color: var(--ink);
  background: rgba(var(--g), .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 20px -10px rgba(12,20,32,.35); opacity: 0; transform: translateY(-4px); pointer-events: none;
  transition: opacity .2s ease, transform .3s cubic-bezier(.34,1.45,.6,1);
}
@media (hover: hover) { .micro:hover .m-tip { opacity: 1; transform: none; } }

/* ================= phones ================= */
@media (max-width: 700px) {
  :root { --cw: min(30vw, 128px); }
  .topbar { padding: calc(14px + env(safe-area-inset-top, 0px)) 14px 10px; }
  .corner-l, .corner-r { gap: 10px; }
  .mark { width: 30px; height: 30px; border-radius: 8px; }
  .micro { padding: 6px 9px; gap: 6px; }
  .micro .m-label { display: none; }                    /* the green dot says it */
  .pill { padding: 9px 16px; white-space: nowrap; }
  .bk-long { display: none; }
  .headline { top: 13vh; }
  .display .sans, .display .serif { font-size: 13vw; }
  .lede { font-size: 15px; max-width: 26ch; }
  .pack { transform: rotateX(8deg) rotateY(-12deg); }
  .deck.right .pack { transform: rotateX(8deg) rotateY(12deg); }
  .socials { top: auto; bottom: calc(26px + env(safe-area-inset-bottom, 0px)); right: auto; left: 14px; gap: 6px; }
  .socials a { width: 36px; height: 36px; }
  .socials .tip { display: none; }
  #back { top: calc(74px + env(safe-area-inset-top, 0px)); left: 14px; }
  .deck-head { top: calc(122px + env(safe-area-inset-top, 0px)); left: 16px; right: 16px; text-align: left; }
  .dh-title { font-size: 30px; }
  .window { border-radius: 24px; }
  .win-body { padding: 4px 18px 40px; }
  .w-head { padding-block: 4px 20px; }
  .w-title { font-size: 34px; }
  .assistant { bottom: calc(18px + env(safe-area-inset-bottom, 0px)); }
}

/* ================= touch devices ================= */
html { -webkit-tap-highlight-color: transparent; }
button, a, .deck, .card, .chip, .assistant { touch-action: manipulation; }   /* no double-tap-zoom delay */
.stage { overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
@media (hover: none) {
  /* hover never "sticks" after a tap; instead a quick press-down while the finger is on it */
  .deck:active .pack { transform: rotateX(8deg) rotateY(-12deg) scale(.96); transition-duration: .12s; }
  .deck.right:active .pack { transform: rotateX(8deg) rotateY(12deg) scale(.96); }
  .card:active { filter: brightness(.96); }   /* GSAP owns the card transform, so press feedback is a dim */
  .pill:active, .chip:active, .socials a:active, .set-btn:active, #back:active, .w-link:active, .qc-all:active { transform: scale(.94); transition: transform .1s ease; }
  /* lighter glass: backdrop blur on every card makes phones stutter */
  .spread .glass { backdrop-filter: none; -webkit-backdrop-filter: none; background: linear-gradient(150deg, rgba(var(--g), .94), rgba(var(--g), .86)); }
  .ld-frost { --blur: 20px !important; }
}
@media (max-width: 700px) { .spread .card-title { letter-spacing: .06em; font-size: 9.5px; overflow-wrap: anywhere; } }
@media (max-width: 700px) { .pack-face .card-title { letter-spacing: .08em; font-size: 9px; white-space: nowrap; } }


/* the liquid drop that buds off the capsule and becomes the conversation card */
.a-goo { position: fixed; inset: 0; z-index: 61; pointer-events: none; filter: url(#goo); }
.a-goo i { position: absolute; display: block; background: rgb(var(--g)); }

/* ---------- case studies: the live site opens inside the window ---------- */
.window.embed .win-bar { padding: 10px 10px 10px 22px; gap: 16px; border-bottom: 1px solid rgba(14,17,22,.06); }
.window.embed .win-kicker { display: flex; align-items: baseline; gap: 12px; min-width: 0; flex: 1; white-space: nowrap; }
.win-kicker b { font: 500 15px/1 var(--font); letter-spacing: -.01em; color: var(--ink); }
.win-kicker > span { overflow: hidden; text-overflow: ellipsis; }
.w-newtab { margin-left: auto; font: 500 13px/1 var(--font); color: var(--ink-2); text-decoration: none; padding: 8px 12px; border-radius: 999px; transition: background .2s ease, color .2s ease; }
@media (hover: hover) { .w-newtab:hover { background: rgba(14,17,22,.06); color: var(--ink); } }
.window.embed .win-body { flex: 1; position: relative; padding: 0; overflow: hidden; }
.w-embed { position: absolute; inset: 0; }
.w-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #fff; opacity: 0; transition: opacity .5s ease; }
.w-embed-intro { position: absolute; inset: 0; padding: 8px clamp(24px, 5vw, 64px); display: grid; align-content: center; transition: opacity .35s ease, transform .5s ease; }
.w-embed-intro .w-head { max-width: 860px; margin-inline: auto; }
.w-embed.ready iframe { opacity: 1; }
.w-embed.ready .w-embed-intro { opacity: 0; transform: scale(.98); pointer-events: none; }
.w-embed-load { display: flex; align-items: center; gap: 10px; justify-content: center; margin: 8px 0 0; font: var(--t-foot); color: var(--ink-3); }
.w-embed-load span { width: 64px; height: 2px; border-radius: 2px; background: rgba(14,17,22,.08); position: relative; overflow: hidden; }
.w-embed-load span::after { content: ""; position: absolute; inset: 0; width: 40%; background: var(--ink-2); border-radius: inherit; animation: w-load 1.1s ease-in-out infinite; }
@keyframes w-load { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
[data-theme="night"] .window.embed .win-bar { border-bottom-color: rgba(255,255,255,.08); }
@media (max-width: 700px) {
  .window.embed .win-kicker > span { display: none; }
  .window.embed .win-bar { padding-left: 16px; }
  .w-embed-intro .w-head { grid-template-columns: 1fr; gap: 16px; text-align: center; }
  .w-embed-intro .w-head .icon img { margin-inline: auto; width: 110px; }
}

/* ---------- image viewer: a gallery image opened full size ---------- */
.w-mocks img { cursor: zoom-in; transition: transform .35s cubic-bezier(.2,.9,.25,1), box-shadow .35s ease; }
@media (hover: hover) { .w-mocks img:hover { transform: translateY(-3px); box-shadow: 0 1px 0 rgba(255,255,255,.8) inset, 0 22px 40px -20px rgba(12,32,70,.45), 0 0 0 1px rgba(14,17,22,.06); } }
.lightbox {
  position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 56px 72px;
  background: rgba(10, 13, 20, .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); cursor: zoom-out;
}
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; display: grid; justify-items: center; gap: 12px; max-width: 100%; }
.lightbox img { display: block; max-width: min(1400px, 100%); max-height: calc(100vh - 150px); width: auto; height: auto; border-radius: 14px; cursor: default; box-shadow: 0 30px 80px -30px rgba(0,0,0,.7); }
.lightbox figcaption { font: var(--t-foot); color: rgba(255,255,255,.82); text-align: center; }
.lb-count { position: absolute; top: 22px; left: 50%; transform: translateX(-50%); font: 500 12px/1 var(--font); color: rgba(255,255,255,.7); letter-spacing: .04em; }
.lightbox .liquid { --lg-tint: rgba(255,255,255,.16); --lg-rim: rgba(255,255,255,.5); --lg-rim-2: rgba(255,255,255,.18); }
.lb-nav, .lb-close { position: absolute; width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center; color: #fff; cursor: pointer; transition: transform .3s cubic-bezier(.34,1.45,.6,1); }
.lb-nav svg, .lb-close svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lb-close svg { width: 13px; height: 13px; }
.lb-prev { left: 18px; top: 50%; margin-top: -22px; }
.lb-next { right: 18px; top: 50%; margin-top: -22px; }
.lb-close { right: 18px; top: 14px; }
@media (hover: hover) { .lb-prev:hover { transform: translateX(-2px); } .lb-next:hover { transform: translateX(2px); } .lb-close:hover { transform: rotate(90deg); } }
.lightbox.single .lb-nav { display: none; }
@media (max-width: 700px) {
  .lightbox { padding: 56px 10px 80px; }
  .lb-prev, .lb-next { top: auto; bottom: 18px; margin: 0; }
  .lb-prev { left: calc(50% - 56px); } .lb-next { right: calc(50% - 56px); }
}

/* ---------- About me: status, big numbers, portrait beside the text ---------- */
.w-status { display: inline-flex; align-items: center; gap: 8px; margin: 4px 0 6px; padding: 7px 12px 7px 10px; border-radius: 999px;
  font: 500 12.5px/1 var(--font); color: var(--ink); background: rgba(127,127,140,.12); }
.w-status i { position: relative; width: 7px; height: 7px; border-radius: 50%; background: #30C15B; }
.w-status i::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 1.5px solid #30C15B; animation: m-ping 2s ease-out infinite; }
.w-big { padding: 8px 0 30px; gap: 20px 40px; }
.w-big b { font-size: clamp(34px, 4vw, 46px); }
.w-intro { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 32px; align-items: start; border-top: 1px solid var(--rule); padding-top: 28px; }
.w-portrait { margin: 0; border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 5; }
.w-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; display: block; }
.w-intro h3 { margin: 0 0 6px; font: 600 13px/1.5 var(--font); color: var(--ink-3); }
.w-intro p { margin: 0 0 20px; font: var(--t-body); max-width: 52ch; }
.w-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.w-link.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--rule); }

/* ---------- timelines: Experience (roles) and Journey (moments) ---------- */
.tl { list-style: none; margin: 0; padding: 4px 0 8px 34px; position: relative; --fill: 0; }
.tl::before, .tl::after { content: ""; position: absolute; left: 9px; top: 10px; bottom: 10px; width: 2px; border-radius: 2px; }
.tl::before { background: var(--rule); }
.tl::after { background: var(--ink-2); transform-origin: top; transform: scaleY(var(--fill)); }
.tl-item { position: relative; padding: 0 0 34px; }
.tl-item:last-child { padding-bottom: 6px; }
.tl-dot { position: absolute; z-index: 2; left: -31px; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg-color, #fff); box-shadow: inset 0 0 0 2px var(--ink-2); }
.tl-item.now .tl-dot { box-shadow: inset 0 0 0 2px #30C15B; }
.tl-item.now .tl-dot::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: #30C15B; }
.tl-item.now .tl-dot::before { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1.5px solid #30C15B; animation: m-ping 2s ease-out infinite; }
.tl-row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.tl-role { font: 600 18px/1.3 var(--font); letter-spacing: -.02em; color: var(--ink); }
.tl-date { flex: none; font: 500 13px/1 var(--font); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.tl-org { margin: 4px 0 10px; font: 500 14px/1.4 var(--font); color: var(--ink-2); }
.tl-tag { display: inline-block; margin-left: 6px; padding: 3px 8px; border-radius: 999px; font: 500 11.5px/1.2 var(--font); color: var(--ink-2); background: rgba(127,127,140,.12); vertical-align: 1px; }
.tl-item.now .tl-tag { color: #1e8e43; background: rgba(48,193,91,.14); }
.tl-key { margin: 0; font: var(--t-body); color: var(--ink); max-width: 60ch; }
.tl-key b, .tl-more b { font-weight: 650; color: var(--ink); }
.tl-more { margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 5px; }
.tl-more li { position: relative; padding-left: 14px; font: 14px/1.5 var(--font); color: var(--ink-2); max-width: 60ch; }
.tl-more li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 5px; height: 1.5px; background: var(--ink-3); }
/* Journey: icon markers, the year above the headline, and a dot that travels from Delhi to Siegen */
.tl-journey { padding-left: 50px; }
.tl-journey::before, .tl-journey::after { left: 15px; }
.tl-journey .tl-dot { left: -50px; top: -2px; width: 32px; height: 32px; display: grid; place-items: center; background: var(--bg-color, #fff); box-shadow: inset 0 0 0 1.5px var(--rule), 0 4px 12px -6px rgba(12,32,70,.25); }
.tl-ico svg { width: 16px; height: 16px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.tl-year { margin: 0 0 4px; font: 600 12px/1 var(--font); letter-spacing: .08em; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.tl-journey .tl-key { margin-top: 6px; color: var(--ink-2); }
.tl-journey .traveller { position: absolute; left: 11px; top: 10px; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px rgba(0,113,227,.18); z-index: 1;
  transform: translateY(calc(var(--fill) * var(--len, 0px))); }
.tl-end { margin: 0 0 14px; font: 600 11px/1 var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.tl-journey + .tl-end { margin: 6px 0 0; }

/* ---------- Skills: tool logos (ink colour, brand colour on hover) and language bars ---------- */
.w-tools { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
.w-tools li { display: grid; justify-items: center; gap: 8px; padding: 16px 8px 12px; border-radius: 14px; background: rgba(127,127,140,.08); transition: background .25s ease, transform .3s cubic-bezier(.34,1.45,.6,1); }
.w-tools svg { width: 26px; height: 26px; fill: var(--ink); transition: fill .25s ease; }
.w-tools .mono { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 6px; background: var(--ink); color: var(--bg-color, #fff); font: 700 11px/1 var(--font); letter-spacing: .02em; transition: background .25s ease; }
.w-tools span { font: 500 12.5px/1.2 var(--font); color: var(--ink-2); text-align: center; }
@media (hover: hover) {
  .w-tools li:hover { transform: translateY(-2px); background: rgba(127,127,140,.14); }
  .w-tools li:hover svg { fill: var(--brand); }
  .w-tools li:hover .mono { background: var(--brand); color: #fff; }
}
.w-langs { display: grid; gap: 12px; max-width: 420px; }
.w-langs div { display: grid; grid-template-columns: 80px 1fr 90px; align-items: center; gap: 14px; font: 500 14px/1 var(--font); color: var(--ink); }
.w-langs i { height: 6px; border-radius: 6px; background: rgba(127,127,140,.16); position: relative; overflow: hidden; }
.w-langs i::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--ink-2); transform-origin: left; transform: scaleX(var(--f)); transition: transform 1s cubic-bezier(.2,.8,.2,1); }
.w-langs em { font-style: normal; font: 500 12.5px/1 var(--font); color: var(--ink-3); }
.w-langs.pre i::after { transform: scaleX(0); }

@media (max-width: 700px) {
  .w-intro { grid-template-columns: 1fr; gap: 18px; }
  .w-portrait { aspect-ratio: 5 / 3; }
  .w-big { gap: 16px 28px; }
  .tl-row { flex-direction: column; gap: 4px; }
  .w-langs div { grid-template-columns: 64px 1fr 80px; }
}
@media (prefers-reduced-motion: reduce) { .w-status i::after, .tl-item.now .tl-dot::before { animation: none; } }

/* links to the plain text pages: hidden until focused with the keyboard (and always there for crawlers) */
.seo-nav { position: fixed; left: 12px; top: 12px; z-index: 120; display: flex; gap: 8px; }
.seo-nav a { position: absolute; left: -9999px; padding: 10px 14px; border-radius: 999px; background: var(--ink); color: #fff; font: 500 14px/1 var(--font); text-decoration: none; white-space: nowrap; }
.seo-nav a:focus { position: static; }
.nojs { max-width: 640px; margin: 120px auto; padding: 24px; font: 17px/1.6 var(--font); position: relative; z-index: 200; background: rgba(255,255,255,.9); border-radius: 20px; }

/* workshop photos: a small strip in About me, a row under Journey moments */
.w-mocks.w-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 2px 0 20px; max-width: 520px; }
.w-mocks.tl-photos { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 12px; max-width: 560px; }
.w-strip img, .tl-photos img { aspect-ratio: 1; object-position: center; border-radius: 10px; }
@media (max-width: 700px) { .w-mocks.w-strip, .w-mocks.tl-photos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* About me: beyond the work */
.w-beyond { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.w-beyond li { padding: 16px; border-radius: 16px; background: rgba(127,127,140,.08); }
.w-beyond .tl-ico { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; margin-bottom: 10px; box-shadow: inset 0 0 0 1.5px var(--rule, rgba(29,29,31,.1)); }
.w-beyond .tl-ico svg { width: 16px; height: 16px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.w-beyond b { display: block; font: 600 15px/1.3 var(--font); color: var(--ink); }
.w-beyond p { margin: 6px 0 0; font: 14px/1.5 var(--font); color: var(--ink-2); }
@media (max-width: 860px) { .w-beyond { grid-template-columns: 1fr; } }
.w-intro { padding-bottom: 28px; }

/* Deck · Classic switch */
.vs { position: relative; display: inline-flex; align-items: center; padding: 3px; border-radius: 999px; isolation: isolate; font: 500 13px/1 var(--font); }
.vs-opt { position: relative; z-index: 1; padding: 7px 12px; border-radius: 999px; color: var(--ink-2); text-decoration: none; transition: color .3s ease; }
.vs-opt.on { color: var(--ink); }
a.vs-opt:hover { color: var(--ink); }
.vs-thumb { position: absolute; z-index: 0; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px); border-radius: 999px;
  background: rgba(var(--g), .95); box-shadow: 0 2px 8px -3px rgba(12,32,70,.35), inset 0 0 0 1px rgba(255,255,255,.6);
  transition: transform .45s cubic-bezier(.34,1.45,.6,1); }
.vs-opt { flex: 1; text-align: center; min-width: 58px; }
.vs.to-classic .vs-thumb { transform: translateX(100%); }
.vs.to-classic .vs-opt.on { color: var(--ink-2); } .vs.to-classic a.vs-opt { color: var(--ink); }
.vs-set { background: rgba(127,127,140,.12); margin-bottom: 4px; }
[data-theme="night"] .vs-thumb { background: rgba(255,255,255,.18); box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); }
.settings .vs-set { display: none; }
@media (max-width: 700px) { .vs-top { display: none; } .settings .vs-set { display: inline-flex; } }
.w-classic { font: 14px/1.5 var(--font); color: var(--ink-2); } .w-classic a { color: var(--ink); text-underline-offset: 3px; }
.leave-veil { position: fixed; inset: 0; z-index: 150; background: rgba(var(--g), .55); backdrop-filter: blur(24px) saturate(140%); -webkit-backdrop-filter: blur(24px) saturate(140%); pointer-events: none; }
.settings .vs-h { display: none; }
@media (max-width: 700px) { .settings .vs-h { display: block; } }
