/* ============================================================
   Mike Aleksandrov — house style.

   One typeface (Inter), no accent colour, hairline rules.
   The page is a REGISTER: a narrow label column on the left, content on the right.
   Numbers are always tabular so columns of figures line up.

   Three "soft panels" break the register on purpose — the gradient cards, the research
   panel and the bento widgets. They are the only places colour appears.
   ============================================================ */

:root {
  --bg: #ffffff;
  --panel: #f6f6f8;        /* flat fill, one step off the page */
  --raised: #ffffff;       /* a card sitting on --panel */
  --ink: #111113;
  --ink-2: #5e5e66;
  --ink-3: #6b6b74;        /* 5.2:1 on white, 4.8:1 on --panel and the cover tints */
  --line: #e6e6ea;
  --line-soft: #f0f0f3;
  --link: #0062c4;
  --live: #1d7034;
  --cal: #c92a2d;

  /* soft panel gradients — the only colour on the site */
  --g-sage: linear-gradient(145deg, #e8efe7 0%, #d9e6da 55%, #cfe0d4 100%);
  --g-sky:  linear-gradient(145deg, #e9eff7 0%, #dde8f4 55%, #d3e1f1 100%);
  --g-clay: linear-gradient(145deg, #f4ece4 0%, #eddfd2 55%, #e7d6c6 100%);
  --g-dusk: linear-gradient(145deg, #eceaf3 0%, #e1deee 55%, #d8d4e8 100%);

  /* flat tints for case covers and slide backgrounds (deck.css uses these) */
  --t-sage: #eef3ed; --t-sky: #ecf1f8; --t-stone: #f4f1ed; --t-lilac: #f0eef6;

  --sans: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  --serif: var(--sans);    /* one typeface; kept so older rules still resolve */
  --gut: clamp(20px, 5vw, 76px);
  --labw: 180px;           /* the register's label column */
  --maxw: 1440px;          /* was 1060 — too much dead margin on a 15" laptop */
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0b0d; --panel: #141417; --raised: #1c1c20;
    --ink: #f4f4f5; --ink-2: #a1a1aa; --ink-3: #8c8c99;
    --line: #26262c; --line-soft: #1b1b20;
    --link: #5aa9ff; --live: #35c45c; --cal: #ff6b63;
    --g-sage: linear-gradient(145deg, #18211a 0%, #141d18 55%, #101813 100%);
    --g-sky:  linear-gradient(145deg, #161d28 0%, #131a24 55%, #10161f 100%);
    --g-clay: linear-gradient(145deg, #231f1a 0%, #1d1a16 55%, #181512 100%);
    --g-dusk: linear-gradient(145deg, #1e1c26 0%, #191822 55%, #15141d 100%);
    --t-sage: #141b16; --t-sky: #131922; --t-stone: #1b1815; --t-lilac: #181622;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b0b0d; --panel: #141417; --raised: #1c1c20;
  --ink: #f4f4f5; --ink-2: #a1a1aa; --ink-3: #8c8c99;
  --line: #26262c; --line-soft: #1b1b20;
  --link: #5aa9ff; --live: #35c45c; --cal: #ff6b63;
  --g-sage: linear-gradient(145deg, #18211a 0%, #141d18 55%, #101813 100%);
  --g-sky:  linear-gradient(145deg, #161d28 0%, #131a24 55%, #10161f 100%);
  --g-clay: linear-gradient(145deg, #231f1a 0%, #1d1a16 55%, #181512 100%);
  --g-dusk: linear-gradient(145deg, #1e1c26 0%, #191822 55%, #15141d 100%);
  --t-sage: #141b16; --t-sky: #131922; --t-stone: #1b1815; --t-lilac: #181622;
    color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.55 var(--sans); letter-spacing: -.011em; -webkit-font-smoothing: antialiased;
  min-height: 100dvh; display: flex; flex-direction: column;
}
main { flex: 1 0 auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gut); }

/* ---------- top bar ---------- */
.bar { position: sticky; top: 0; z-index: 9; background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line); }
/* name left, segmented page switch in the centre, clock and theme right */
.bar .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 12px; height: 56px; font-size: 14px; }
.bar .name { justify-self: start; font-weight: 600; text-decoration: none; letter-spacing: -.02em; white-space: nowrap; }
.bar .right { justify-self: end; display: flex; align-items: center; gap: 22px; }
.tabs { display: flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--panel); }
.tabs a { color: var(--ink-2); text-decoration: none; font-size: 13px; font-weight: 500; line-height: 1;
  padding: 7px 14px; border-radius: 999px; transition: background .15s, color .15s; }
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current="page"] { color: var(--ink); background: var(--raised); box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 0 0 .5px rgba(0,0,0,.04); }
.bar .clock { color: var(--ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.theme-btn { width: 30px; height: 30px; border-radius: 50%; border: 0; background: var(--panel);
  color: var(--ink); cursor: pointer; display: grid; place-items: center; flex: none; }
@media (max-width: 680px) {
  .bar .clock { display: none; }
  .bar .name .last { display: none; }
  .bar .right { gap: 12px; }
  .tabs a { padding: 7px 11px; }
}

/* ---------- hero ---------- */
.intro { padding: clamp(52px, 8vw, 104px) 0 clamp(36px, 5vw, 64px); }
.intro h1 { margin: 0; font-weight: 500; font-size: clamp(30px, 4.4vw, 52px); line-height: 1.08;
  letter-spacing: -.038em; max-width: 17ch; text-wrap: balance; }
.intro h1 span { color: var(--ink-3); }
.meta { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 26px; font-size: 14px; color: var(--ink-2); }
.meta i { font-style: normal; display: inline-flex; align-items: center; gap: 7px; }
.meta i::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--live); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }

.btn { display: inline-flex; align-items: center; gap: 7px; font: inherit; font-size: 14px; font-weight: 500;
  text-decoration: none; cursor: pointer; padding: 9px 16px; border-radius: 8px; border: 0; }
.btn.primary { background: var(--ink); color: var(--bg); }
.btn.ghost { background: none; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1px var(--ink-3); }
.btn:hover { opacity: .9; }
.btn[disabled] { opacity: .35; cursor: default; }

/* ---------- the register row: label left, content right ---------- */
.row { display: grid; grid-template-columns: var(--labw) minmax(0, 1fr); gap: 24px;
  padding: clamp(32px, 4vw, 44px) 0; border-top: 1px solid var(--line); }
.row > h2 { margin: 0; font-size: 13px; font-weight: 500; color: var(--ink-3); }
.row > h2 small { display: block; margin-top: 6px; font-size: 13px; font-weight: 400; opacity: .72; }
/* minmax(0,1fr), not 1fr: a plain 1fr track has min-width:auto and the card
   scroller inside it would stretch the page instead of scrolling. */
.row > * { min-width: 0; }
@media (min-width: 1100px) { .row { gap: 72px; padding: clamp(40px, 4.4vw, 56px) 0; } }
@media (max-width: 760px) { .row { grid-template-columns: minmax(0, 1fr); gap: 16px; } }

/* ---------- selected work: photo cards ---------- */
/* Apple / Claura anatomy: a real photograph pushed far out of focus, film grain over it,
   then frosted-glass layers carrying the type. The glass is what makes it read as Apple —
   it samples and blurs the photo underneath instead of sitting on a flat fill. */

.works-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 14px; }
.works-head p { margin: 0; font-size: 13px; color: var(--ink-3); }
.works-head .more { flex: none; white-space: nowrap; font-size: 13px; color: var(--ink-3);
  display: inline-flex; align-items: center; gap: 7px;
  background: none; border: 0; padding: 0; font-family: inherit; cursor: pointer; }
.works-head .more i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  font-style: normal; font-size: 11px; box-shadow: inset 0 0 0 1px var(--line); }
.works-head .more:hover { color: var(--ink); }
.works-head .more[hidden] { display: none; }   /* inline-flex would otherwise beat [hidden] */

.works { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; margin: -8px calc(var(--gut) * -1) 0; padding: 10px var(--gut) 2px; }
/* overflow-x:auto also clips vertically, so the top padding gives the hover lift room;
   the negative margin keeps the cards where they were */
.works::-webkit-scrollbar { display: none; }

.work { position: relative; isolation: isolate; overflow: hidden; scroll-snap-align: start;
  flex: 0 0 clamp(268px, 31vw, 336px); min-height: 410px; border-radius: 24px; padding: 20px;
  display: flex; flex-direction: column; gap: 14px; text-decoration: none; color: #fff;
  background: #2a2a2e;                        /* shows while the photo decodes */
  transition: transform .4s cubic-bezier(.2,.7,.2,1); }
.work:hover { transform: translateY(-4px); }

/* the photograph: scaled past the edges so the blur never reveals a border */
.work-img { position: absolute; inset: -12%; width: 124%; height: 124%; z-index: -3;
  object-fit: cover; filter: blur(13px) saturate(112%); transform: scale(1.04);
  max-width: none; max-height: none;          /* the artifact host resets img to max-width:100%, which cut the photo short on the right */
  opacity: 0; transition: opacity .5s ease; }
.work-img.on { opacity: 1; }                 /* fades in once decoded, over the card tone, instead of popping in */

/* grain + scrim. The grain is what separates a photo from a gradient. */
.work-grain { position: absolute; inset: 0; z-index: -2; pointer-events: none; opacity: .26;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px; }
.work::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  /* Kept light on purpose — the photo is the point. The type leans on its own
     shadow rather than on a heavy wash. */
  background: linear-gradient(180deg,
    rgba(0,0,0,.14) 0%, rgba(0,0,0,0) 26%, rgba(0,0,0,.06) 48%,
    rgba(0,0,0,.3) 68%, rgba(0,0,0,.52) 100%); }

/* chips: frosted pills, bleeding off the right edge like the reference */
.work .chips { display: flex; flex-wrap: nowrap; gap: 6px; margin-right: -34px; }
.work .chips span { flex: none; font-size: 11px; line-height: 1; white-space: nowrap;
  padding: 7px 11px; border-radius: 999px; color: #fff;
  background: rgba(0,0,0,.3); box-shadow: inset 0 0 0 1px rgba(255,255,255,.2);
  backdrop-filter: blur(16px) saturate(150%); -webkit-backdrop-filter: blur(16px) saturate(150%); }

/* the test behind the result: one pill on its own row, light instead of dark */
.work .chips.test { margin-top: -8px; }   /* cancels most of the card's 14px gap so both rows read as one group */
.work .chips.test span { color: #111113; background: rgba(255,255,255,.85); box-shadow: none; font-weight: 600; }

/* No plate: the type sits straight on the photograph. Contrast comes from the scrim
   above plus a soft shadow on the text itself — measured against the real pixels. */
.work .glass { margin-top: auto; text-shadow: 0 1px 6px rgba(0,0,0,.5), 0 1px 2px rgba(0,0,0,.35); }
.work .foot { text-shadow: 0 1px 4px rgba(0,0,0,.45); }
.work .met { display: block; font-size: 38px; font-weight: 600; line-height: 1; letter-spacing: -.055em;
  font-variant-numeric: tabular-nums; }
.work .unit { display: block; margin-top: 7px; font-size: 12.5px; line-height: 1.4; color: rgba(255,255,255,.95); }
.work h3 { margin: 16px 0 0; font-size: 19px; font-weight: 600; letter-spacing: -.035em; line-height: 1.2; }
.work .claim { margin: 7px 0 0; font-size: 13.5px; line-height: 1.45; color: rgba(255,255,255,.92); }

.work .foot { display: flex; align-items: center; gap: 9px; margin-top: 14px; padding-top: 12px; min-width: 0;
  border-top: 1px solid rgba(255,255,255,.24); font-size: 12px; color: rgba(255,255,255,.94); }
.work .foot span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.work .foot .dot { width: 17px; height: 17px; border-radius: 50%; flex: none; display: grid; place-items: center;
  font-size: 8px; font-weight: 700; color: #fff; background: rgba(255,255,255,.24); }
.work .foot .sep { margin-left: auto; }

.work.soon .met { font-weight: 500; letter-spacing: -.035em; }

@media (max-width: 560px) {
  .work { flex-basis: 82%; min-height: 380px; }
  .work .foot { font-size: 11px; gap: 7px; }
  .works-head p { font-size: 12px; }
}

/* ---------- numbers ---------- */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.stats b { display: block; font-size: clamp(24px, 2.4vw, 30px); font-weight: 500;
  letter-spacing: -.04em; font-variant-numeric: tabular-nums; line-height: 1; }
.stats span { display: block; margin-top: 8px; font-size: 13px; color: var(--ink-2); line-height: 1.4; }
@media (max-width: 420px) { .stats { grid-template-columns: minmax(0, 1fr); gap: 22px; } }

/* ---------- How I work: same anatomy as the work cards ---------- */
/* Mesh gradient in the photos' own palette (fern, smoke, rose, dusk) stands in for the
   blurred photograph, then the same grain, scrim, glass chip and type on top. */
.gcards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 620px) { .gcards { grid-template-columns: 1fr; } }
.gcard { position: relative; isolation: isolate; overflow: hidden; border-radius: 24px; padding: 20px;
  min-height: 220px; display: flex; flex-direction: column; gap: 8px; color: #fff;
  text-shadow: 0 1px 6px rgba(0,0,0,.5), 0 1px 2px rgba(0,0,0,.35); }
.gcard.g1 { background:
  radial-gradient(60% 70% at 78% 18%, #b9cf8a 0%, transparent 60%),
  radial-gradient(70% 80% at 12% 70%, #4f7a45 0%, transparent 70%),
  linear-gradient(160deg, #6f9460, #1f3322); }
.gcard.g2 { background:
  radial-gradient(55% 65% at 20% 30%, #c9d3da 0%, transparent 60%),
  radial-gradient(70% 70% at 85% 80%, #56636e 0%, transparent 70%),
  linear-gradient(160deg, #8b99a4, #20272d); }
.gcard.g3 { background:
  radial-gradient(60% 70% at 70% 22%, #ffc58f 0%, transparent 60%),
  radial-gradient(70% 80% at 18% 78%, #d4652f 0%, transparent 70%),
  linear-gradient(160deg, #f0934f, #7a2e17); }
.gcard.g4 { background:
  radial-gradient(55% 65% at 25% 22%, #cbbcf0 0%, transparent 60%),
  radial-gradient(70% 80% at 82% 78%, #5c4a9c 0%, transparent 70%),
  linear-gradient(160deg, #8f7cc8, #241d45); }
/* grain, as on the work cards */
.gcard::before { content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none; opacity: .26;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px; }
.gcard::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,.1) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,.28) 70%, rgba(0,0,0,.5) 100%); }
.gcard .n { align-self: flex-start; margin-bottom: auto; font-size: 11px; line-height: 1; font-weight: 500;
  font-variant-numeric: tabular-nums; text-shadow: none; padding: 7px 11px; border-radius: 999px;
  background: rgba(0,0,0,.3); box-shadow: inset 0 0 0 1px rgba(255,255,255,.2);
  backdrop-filter: blur(16px) saturate(150%); -webkit-backdrop-filter: blur(16px) saturate(150%); }
.gcard b { font-size: 19px; font-weight: 600; letter-spacing: -.035em; line-height: 1.2; }
.gcard span:not(.n) { font-size: 13.5px; line-height: 1.45; color: rgba(255,255,255,.92); }

/* ---------- research: heading + points, then a soft panel holding the map ---------- */
.rs-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 32px; margin-bottom: 24px; }
.rs-top h3 { margin: 0; font-size: clamp(24px, 2.6vw, 34px); font-weight: 500; line-height: 1.1;
  letter-spacing: -.04em; max-width: 16ch; text-wrap: balance; }
.rs-top > div > p { margin: 12px 0 0; font-size: 15px; color: var(--ink-2); max-width: 38ch; }
.rs-points { display: grid; gap: 18px; align-content: start; }
/* > div only: the inner wrapper holding b + span must not inherit the icon grid */
.rs-points > div { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; align-items: start; }
.rs-points i { width: 30px; height: 30px; border-radius: 9px; background: var(--panel); display: grid;
  place-items: center; font-style: normal; font-size: 13px; color: var(--ink-2); }
.rs-points b { display: block; font-size: 15px; font-weight: 600; letter-spacing: -.02em; }
.rs-points span { font-size: 14px; line-height: 1.5; color: var(--ink-2); }
@media (max-width: 760px) { .rs-top { grid-template-columns: 1fr; gap: 24px; } }

/* Full-bleed sky panel: a soft mesh (blue into peach), a dot grid that fades at the edges,
   grain on top, and the white map card floating in the middle. */
.rs-panel { --sky1: #a6c6ee; --sky2: #e2ecf9; --sky3: #f3c9b1; --sky4: #b9d2f2; --dot: rgba(255,255,255,.7); --base: linear-gradient(170deg, #cfe0f5, #efe2da);
  position: relative; isolation: isolate; overflow: hidden;
  margin: 0 clamp(8px, 1vw, 14px); border-radius: clamp(20px, 2.4vw, 32px);
  padding: clamp(40px, 7vw, 112px) clamp(12px, 5vw, 76px);
  background: #9cc6e6 url("bg/message.webp") center / cover no-repeat; }
.rs-panel::before { display: none; content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(circle, var(--dot) 1px, transparent 1.6px); background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(70% 70% at 50% 50%, #000 30%, transparent 100%);
          mask-image: radial-gradient(70% 70% at 50% 50%, #000 30%, transparent 100%); }
.rs-panel::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .3;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px; }
.rs-float { max-width: 1180px; margin: 0 auto; background: var(--raised); border-radius: 20px; padding: clamp(14px, 2vw, 24px);
  box-shadow: 0 40px 80px -40px rgba(20,40,80,.45), 0 0 0 1px color-mix(in srgb, var(--ink) 5%, transparent); }
.rs-note { margin: 24px 0 0; font-size: 14px; line-height: 1.55; color: var(--ink-2); max-width: 78ch; }
:root[data-theme="dark"] .rs-panel { --sky1: #1d3354; --sky2: #2a3550; --sky3: #4a2f3a; --sky4: #1a2c48; --dot: rgba(255,255,255,.12); --base: linear-gradient(170deg, #16223a, #22192a); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .rs-panel { --sky1: #1d3354; --sky2: #2a3550; --sky3: #4a2f3a; --sky4: #1a2c48; --dot: rgba(255,255,255,.12); --base: linear-gradient(170deg, #16223a, #22192a); }
}

/* ---------- journey map ---------- */
.cjm { display: grid; grid-template-columns: repeat(var(--n), minmax(0,1fr)); }
.cjm-stage { padding: 0 12px; display: grid; grid-template-rows: auto 150px auto; align-content: start; }
.cjm-stage + .cjm-stage { border-left: 1px dashed var(--line); }
.cjm-name { font-size: 13px; font-weight: 600; line-height: 1.3; min-height: 2.6em; letter-spacing: -.015em; }
.cjm-name small { display: block; font: 400 11px/1 var(--sans); color: var(--ink-3); margin-bottom: 5px; font-variant-numeric: tabular-nums; }
.cjm-mood { display: none; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; vertical-align: 1px; }
.cjm-pain { margin: 0; font-size: 13px; line-height: 1.45; color: var(--ink-2); }
.cjm-stage.hit { background: color-mix(in srgb, var(--cal) 7%, transparent); border-radius: 12px; }
.cjm-wrap { position: relative; }
.cjm-svg { position: absolute; left: 0; top: 0; pointer-events: none; overflow: visible; }
.cjm-legend { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 12px; color: var(--ink-3); margin-top: 14px; }
.cjm-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
@media (max-width: 760px) {
  .cjm { grid-template-columns: minmax(0,1fr); }
  .cjm-stage { grid-template-rows: auto auto; padding: 14px 0; gap: 4px; }
  .cjm-stage + .cjm-stage { border-left: 0; border-top: 1px dashed var(--line); }
  .cjm .cjm-stage.hit { background: none; }
  .cjm-name { min-height: 0; }
  .cjm-gap, .cjm-svg { display: none; }
  .cjm-mood { display: inline-block; }
}

/* ---------- elsewhere: now playing + film ---------- */
/* Apple Music's trick: the cover art bleeds out as a blurred ambient glow behind the
   whole card, controls are frosted pills. The film tile beside it stays deliberately
   quiet so the two do not compete. */

.else { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 14px; }
@media (max-width: 820px) { .else { grid-template-columns: minmax(0,1fr); } }

.np { position: relative; isolation: isolate; overflow: hidden; border-radius: 24px; padding: 22px;
  min-height: 320px; display: flex; flex-direction: column; justify-content: flex-end;
  color: #fff; text-decoration: none; }
.np .glow { position: absolute; inset: -30%; z-index: -2; filter: blur(44px);
  background:
    radial-gradient(45% 45% at 28% 26%, var(--c1) 0%, transparent 62%),
    radial-gradient(48% 46% at 78% 22%, var(--c2) 0%, transparent 66%),
    radial-gradient(58% 54% at 56% 90%, var(--c3) 0%, transparent 72%),
    linear-gradient(150deg, var(--c1), var(--c3)); }
.np .cover { width: 104px; height: 104px; border-radius: 14px; margin-bottom: auto;
  background: linear-gradient(140deg, var(--c1), var(--c2));
  box-shadow: 0 20px 40px -18px rgba(0,0,0,.7), inset 0 0 0 1px rgba(255,255,255,.22); }
.np small { font-size: 10px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; opacity: .88; }
.np b { display: block; margin-top: 2px; font-size: clamp(22px, 2.4vw, 28px); font-weight: 600; letter-spacing: -.04em; }
.np .ctl { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.np .ctl span { display: inline-flex; align-items: center; gap: 6px; padding: 8px 13px; border-radius: 999px;
  font-size: 12px; font-weight: 500; background: rgba(0,0,0,.3);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.2);
  backdrop-filter: blur(16px) saturate(150%); -webkit-backdrop-filter: blur(16px) saturate(150%); }
.np:hover .ctl span:first-child { background: rgba(0,0,0,.44); }

.film { border-radius: 24px; padding: 18px; background: var(--panel);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 5%, transparent);
  display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.film-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  font-size: 12px; font-weight: 600; color: var(--ink-2); }
.film-head a { font-weight: 400; color: var(--ink-3); text-decoration: none; white-space: nowrap; }
.film-head a:hover { color: var(--ink); }
.gal-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 7px; }
.ph { position: relative; border: 0; padding: 0; margin: 0; border-radius: 12px; overflow: hidden;
  cursor: zoom-in; background: var(--raised); aspect-ratio: 1/1; min-width: 0; }
.ph img, .ph-fill { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.ph-fill { position: absolute; inset: 0; }
.ph:hover img, .ph:hover .ph-fill { transform: scale(1.05); }
/* film frames get a date stamp burnt into the corner, not a pin emoji */
.ph-cap { position: absolute; right: 7px; bottom: 6px; font-size: 10px; font-weight: 600; letter-spacing: .06em;
  color: #ff9d2e; text-shadow: 0 0 6px rgba(255,120,0,.6), 0 1px 2px rgba(0,0,0,.6); font-variant-numeric: tabular-nums; }
.ph-more { position: absolute; inset: 0; display: grid; place-items: center; font-size: 16px; font-weight: 600;
  letter-spacing: -.02em; color: #fff; background: rgba(10,12,16,.42); backdrop-filter: blur(1px); }
.film p { margin: auto 0 0; font-size: 12px; color: var(--ink-3); }
@media (max-width: 420px) { .gal-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }

dialog.lightbox { border: 0; padding: 0; border-radius: 20px; width: min(980px, calc(100vw - 32px));
  max-height: calc(100dvh - 48px); background: #0b0c0f; color: #fff; }
dialog.lightbox::backdrop { background: rgba(10,12,16,.65); backdrop-filter: blur(4px); }
.lb-stage { position: relative; aspect-ratio: 3/2; max-width: 100%; }
.lb-stage img, .lb-stage .ph-fill { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.lb-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; font-size: 14px; }
.lb-bar .ctrl { display: flex; gap: 8px; }
.lb-bar button { width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; font-size: 15px; cursor: pointer; }

/* ---------- career ---------- */
.car { display: grid; }
.car div { display: grid; grid-template-columns: minmax(0, 1fr) 200px 104px; gap: 24px; padding: 14px 0;
  border-bottom: 1px solid var(--line); font-size: 15px; }
.car div:first-child { border-top: 1px solid var(--line); }
.car .co { color: var(--ink-2); }
.car .yr { color: var(--ink-3); text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 760px) { .car div { grid-template-columns: minmax(0, 1fr) auto; } .car .co { grid-column: 1 / -1; margin-top: -6px; font-size: 14px; } }

/* ---------- contact ---------- */
.cta { display: flex; flex-wrap: wrap; gap: 10px; }
.copied { font-size: 13px; color: var(--live); min-height: 1.2em; margin: 10px 0 0; user-select: all; }

.ct-head { padding: clamp(48px, 7vw, 88px) 0 clamp(24px, 3vw, 36px); }
.ct-head h1 { margin: 0; font-size: clamp(34px, 5vw, 56px); font-weight: 500; line-height: 1.04; letter-spacing: -.042em; }
.ct-head p { margin: 16px 0 0; font-size: 17px; color: var(--ink-2); max-width: 46ch; }
.ct-list { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.ct-list li { border-top: 1px solid var(--line); }
.ct-row { display: grid; grid-template-columns: 140px minmax(0,1fr) auto; gap: 8px 24px; align-items: center;
  padding: 20px 0; text-decoration: none; color: inherit; }
.ct-row small { font-size: 13px; color: var(--ink-3); }
.ct-row b { font-size: clamp(19px, 2.2vw, 26px); font-weight: 500; letter-spacing: -.032em; overflow-wrap: anywhere; }
.ct-row .go { font-size: 14px; color: var(--ink-3); white-space: nowrap; }
a.ct-row:hover b { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
a.ct-row:hover .go { color: var(--ink); }
.ct-row button { font: inherit; font-size: 14px; color: var(--link); background: none; border: 0; padding: 0; cursor: pointer; }
.ct-reply { margin: 22px 0 0; font-size: 14px; color: var(--ink-3); }
@media (max-width: 640px) { .ct-row { grid-template-columns: minmax(0,1fr) auto; } .ct-row small { grid-column: 1 / -1; } }

/* ---------- CV ---------- */
.cv-head { padding: clamp(48px, 7vw, 88px) 0 clamp(28px, 4vw, 40px); }
.cv-head h1 { margin: 0; font-size: clamp(34px, 5vw, 56px); font-weight: 500; line-height: 1.04; letter-spacing: -.042em; }
.cv-head .who { margin: 14px 0 0; font-size: 17px; color: var(--ink-2); max-width: 54ch; }
.cv-head .btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.cv-facts { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; }
.cv-facts div { background: var(--panel); border-radius: 14px; padding: 16px 18px; }
.cv-facts b { display: block; font-size: 26px; font-weight: 500; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.cv-facts span { display: block; margin-top: 7px; font-size: 13px; color: var(--ink-2); line-height: 1.4; }
@media (max-width: 760px) { .cv-facts { grid-template-columns: 1fr 1fr; } }

.job { padding-bottom: 26px; }
.job + .job { padding-top: 26px; border-top: 1px solid var(--line-soft); }
.job:last-child { padding-bottom: 0; }
.job .jt { display: flex; justify-content: space-between; gap: 4px 16px; flex-wrap: wrap; align-items: baseline; }
.job h3 { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -.025em; }
.job .when { color: var(--ink-3); font-size: 13px; font-variant-numeric: tabular-nums; }
.job .co { margin: 3px 0 12px; color: var(--ink-2); font-size: 15px; }
.job ul { margin: 0; padding-left: 1.1em; max-width: 72ch; }
.job li { margin: 7px 0; font-size: 15px; }
.job li a { color: var(--link); text-decoration: none; white-space: nowrap; }
.job li a:hover { text-decoration: underline; }
.summary { margin: 0; font-size: 17px; line-height: 1.6; max-width: 64ch; color: var(--ink-2); }
.chips { display: flex; flex-wrap: wrap; gap: 7px; list-style: none; margin: 0; padding: 0; }
.chips li { background: var(--panel); border-radius: 7px; padding: 6px 11px; font-size: 14px; }
.twocol { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 40px; }
.twocol h3 { margin: 0 0 10px; font-size: 13px; font-weight: 500; color: var(--ink-3); }
@media (max-width: 560px) { .twocol { grid-template-columns: 1fr; } }
.plain { list-style: none; margin: 0; padding: 0; }
.plain li { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-top: 1px solid var(--line-soft); font-size: 15px; }
.plain li:first-child { border-top: 0; padding-top: 0; }
.plain span { color: var(--ink-2); text-align: right; }

/* ---------- footer ---------- */
footer { display: flex; justify-content: space-between; gap: 16px; color: var(--ink-3); font-size: 13px;
  padding: 26px 0 44px; border-top: 1px solid var(--line); margin-top: clamp(40px, 6vw, 72px); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ---------- company page + its tile on the home page ---------- */
.co-intro { margin: 0 0 22px; max-width: 66ch; font-size: 16px; color: var(--ink-2); }
.co-tile { margin-top: 24px; text-decoration: none; }
.co-tile i { font-style: normal; }
.co-head { padding: clamp(28px, 4vw, 44px) 0 0; }
.co-head h1 { margin: 0; font-size: clamp(28px, 3.4vw, 40px); font-weight: 500; line-height: 1.05; letter-spacing: -.04em; }
.co-head p { margin: 10px 0 0; max-width: 66ch; font-size: 16px; color: var(--ink-2); }
.co-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 18px; }
.co-tree { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.co-tree h2 { margin: 0; font-size: 17px; font-weight: 500; letter-spacing: -.02em; }
.co-tree .lead { margin: 6px 0 14px; max-width: 78ch; font-size: 15px; color: var(--ink-2); }
.co-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.co-col { background: var(--panel); border-radius: 14px; padding: 12px 16px; }
.co-col h3 { display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 4px; font-size: 15px; font-weight: 500; }
.co-col h3 small { font-size: 12px; font-weight: 400; color: var(--ink-3); }
.co-col ol { list-style: none; margin: 0; padding: 0; }
.co-col li { display: grid; grid-template-columns: minmax(0, 14em) minmax(0, 1fr); gap: 2px 14px; padding: 7px 0;
  border-top: 1px solid var(--line); font-size: 14px; line-height: 1.4; }
.co-col li:first-child { border-top: 0; }
.co-col li b { font-weight: 500; }
.co-col li span { color: var(--ink-2); font-size: 13px; }
.co-col li.guardrail b::before { content: "Guardrail · "; font-weight: 400; color: var(--ink-3); }
.co-why { margin: 12px 0 0; max-width: 90ch; font-size: 13px; color: var(--ink-3); }
@media (max-width: 1000px) { .co-col li { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) { .co-cols { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 420px) { .co-facts { grid-template-columns: minmax(0, 1fr); } }
/* ---------- latest product: one panel for the company, the cases and the CJM ---------- */
/* no panel: a hairline divider above, content sits on the page like every other block */
.prod { --pp: 0px; border-top: 1px solid var(--line); padding-top: clamp(28px, 3.4vw, 44px);
  margin-bottom: clamp(72px, 10vw, 144px); }   /* a clear break: work above, personal life below */
/* case cards fill the content width: three across, two on tablets, one and a peek on phones */
.prod .work { flex: 0 0 calc((100% - 24px) / 3); }
@media (max-width: 900px) { .prod .work { flex-basis: calc((100% - 12px) / 2); } }
@media (max-width: 560px) { .prod .work { flex-basis: 84%; } }
.prod-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.prod-head small { display: block; font-size: 13px; font-weight: 500; color: var(--ink-3); }
.prod-head h2 { margin: 4px 0 0; font-size: clamp(28px, 3.4vw, 44px); font-weight: 500; line-height: 1.05; letter-spacing: -.04em; }
.prod-head > span { font-size: 15px; color: var(--ink-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.prod-part { margin-top: clamp(32px, 3.6vw, 48px); }
.prod-head + .prod-part { margin-top: 14px; }
.prod-sub { margin: 0 0 12px; font-size: 13px; font-weight: 500; color: var(--ink-3); }
.prod .works-head .prod-sub { margin: 0; }
.prod .co-intro { margin: 0 0 20px; }
.prod .works { margin: -8px calc(var(--pp) * -1) 0; padding: 10px var(--pp) 2px; }
.prod .rs-top { margin-bottom: 16px; gap: 24px; }
.prod .rs-top h3 { font-size: clamp(20px, 2vw, 24px); }
.prod .rs-points { gap: 10px; }
.prod .rs-points i { background: var(--raised); }
.prod .rs-float { max-width: none; padding: 14px; box-shadow: none; }
@media (min-width: 761px) { .prod .cjm-stage { grid-template-rows: auto 80px auto; padding: 0 8px; } }
.prod .cjm-name, .prod .cjm-pain { font-size: 12px; }
.prod .rs-note { margin-top: 14px; font-size: 13px; }

/* Journey-audit tile: the whole card links to journey-audit.html; copy left, miniature map right */
.ja-tile { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(16px, 3vw, 40px); align-items: center;
  background: var(--raised); border-radius: 20px; padding: clamp(18px, 2.4vw, 28px); color: var(--ink); text-decoration: none;
  box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 30px 60px -40px rgba(20,20,40,.35); transition: box-shadow .2s, transform .2s; }
.ja-tile:hover { transform: translateY(-2px); box-shadow: 0 1px 2px rgba(0,0,0,.05), 0 36px 70px -38px rgba(20,20,40,.45); }
.ja-tile:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.ja-copy { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; min-width: 0; }
.ja-copy small { font-size: 12px; font-weight: 500; color: var(--ink-3); }
.ja-copy b { font-size: clamp(19px, 1.9vw, 23px); font-weight: 600; line-height: 1.15; letter-spacing: -.035em; text-wrap: balance; }
.ja-facts { list-style: none; margin: 4px 0 6px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; width: 100%; }
.ja-facts li { font-size: 12.5px; line-height: 1.3; color: var(--ink-2); }
.ja-facts span { display: block; font-size: 20px; font-weight: 600; letter-spacing: -.03em; color: var(--ink); font-variant-numeric: tabular-nums; }
.ja-btn i { font-style: normal; }
.ja-viz { min-width: 0; }
.ja-viz svg { display: block; width: 100%; height: auto; font-family: var(--sans); }
.ja-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12px; color: var(--ink-3); margin-top: 8px; }
.ja-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
.ja-legend i.bar { border-radius: 2px; background: var(--ink); opacity: .5; }
.ja-legend .ja-bang { display: inline-grid; place-items: center; width: 14px; height: 14px; border-radius: 50%; margin-right: 6px; vertical-align: -2px;
  box-shadow: inset 0 0 0 1.5px var(--ink-3); color: var(--ink-3); font-size: 9.5px; font-weight: 600; line-height: 1; }
@media (max-width: 760px) { .ja-tile { grid-template-columns: minmax(0, 1fr); } .ja-viz { order: -1; } }
@media (prefers-reduced-motion: reduce) { .ja-tile, .ja-tile:hover { transition: none; transform: none; } }

/* ---------- top: intro, portrait, calendar ---------- */
.top { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: start;
  padding: clamp(28px, 4vw, 56px) 0 clamp(28px, 4vw, 48px); }
.top .intro { padding: 0 clamp(0px, 2vw, 24px) 0 0; align-self: center; }
.tile { position: relative; overflow: hidden; border-radius: 28px; background: var(--panel); aspect-ratio: 1 / 1; width: 100%; min-width: 0; }
.me img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 52% 30%; transition: transform .6s ease; }
.me:hover img { transform: scale(1.04); }
@media (max-width: 1000px) {
  .top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .top .intro { grid-column: 1 / -1; padding: 0 0 12px; }
}
@media (max-width: 520px) { .top { grid-template-columns: minmax(0, 1fr); } .cal { aspect-ratio: auto; } }

/* calendar, after the iOS Calendar widget */
.cal { --red: #d70015; --green: #34c759; --green-ink: #1b7a33; --green-wash: rgba(52,199,89,.14);
  display: flex; flex-direction: column; gap: 10px; padding: 18px; cursor: pointer; transition: transform .3s, box-shadow .3s; }
:root[data-theme="dark"] .cal { --red: #ff6961; --green: #30d158; --green-ink: #4ade80; --green-wash: rgba(48,209,88,.16); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cal { --red: #ff6961; --green: #30d158; --green-ink: #4ade80; --green-wash: rgba(48,209,88,.16); } }
.cal:hover { transform: translateY(-3px); box-shadow: 0 16px 32px -18px rgba(0,0,0,.35); }
.cal-head { display: flex; justify-content: space-between; align-items: flex-start; }
.cal-head p { margin: 0; }
.cal-wd { font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--red); }
.cal-head .cal-date { font-size: clamp(34px, 3.4vw, 44px); font-weight: 400; line-height: 1; letter-spacing: -.03em; margin-top: 2px; }
.cal-arrow { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 13px;
  box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-2); transition: background .2s, color .2s; }
.cal:hover .cal-arrow { background: var(--ink); color: var(--bg); box-shadow: none; }
.cal-events { list-style: none; margin: auto 0 0; padding: 0; display: grid; gap: 6px; }
.cal-ev { border-radius: 10px; background: color-mix(in srgb, var(--ink) 5%, transparent); padding: 6px 10px; font-size: 12px; line-height: 1.3;
  max-height: 60px; overflow: hidden; transition: opacity .3s, max-height .35s, padding .35s, margin .35s, transform .25s, box-shadow .25s; }
.cal-ev .t { display: block; font-weight: 500; color: var(--ink); }
.cal-ev .s { display: block; color: var(--ink-3); font-size: 11px; position: relative; }
.cal-ev.open { background: var(--green-wash); padding: 0; max-height: 200px; }
.cal-slot { all: unset; display: block; width: 100%; box-sizing: border-box; padding: 6px 10px; cursor: pointer; }
.cal-slot .t { color: var(--green-ink); font-weight: 600; }
.cal-slot .s { color: var(--green-ink); height: 1.3em; }
.cal-slot .st, .cal-slot .cta { position: absolute; left: 0; top: 0; white-space: nowrap; transition: opacity .2s, transform .2s; }
.cal-slot .cta { opacity: 0; transform: translateY(4px); font-weight: 600; }
.cal:hover .cal-ev.booked { opacity: .55; }
.cal:hover .cal-ev.open, .cal-ev.open:has(:focus-visible) { transform: scale(1.03); box-shadow: 0 0 0 1px var(--green), 0 6px 18px -8px var(--green); }
.cal:hover:not(.picking) .cal-slot .st { opacity: 0; transform: translateY(-4px); }
.cal:hover:not(.picking) .cal-slot .cta { opacity: 1; transform: none; }
.cal.picking .cal-ev.booked { max-height: 0; padding-block: 0; opacity: 0; margin-top: -6px; }
.cal-days { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s; }
.cal-days > div { overflow: hidden; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 0 8px; }
.cal.picking .cal-days { grid-template-rows: 1fr; }
.cal.picking .cal-days > div { padding: 2px 8px 8px; }
.cal-day { display: grid; justify-items: center; gap: 1px; padding: 6px 0; border-radius: 9px; background: var(--raised);
  text-decoration: none; color: var(--ink); font-size: 10px; text-transform: uppercase; letter-spacing: .04em; transition: background .2s, color .2s; }
.cal-day span { color: var(--ink-3); }
.cal-day b { font-size: 16px; font-weight: 600; letter-spacing: 0; }
.cal-day:hover { background: var(--green); color: #fff; }
.cal-day:hover span { color: #fff; }
.cal-foot { margin: 0; font-size: 11px; color: var(--ink-3); }

/* ---------- elsewhere: playlists + photo albums ---------- */
.else { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: stretch; }
@media (max-width: 860px) { .else { grid-template-columns: minmax(0, 1fr); } }

.ym { --ym-c: #3a2bd6; position: relative; overflow: hidden; border-radius: 28px; padding: 20px 20px 0;
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, color-mix(in srgb, var(--ym-c) 26%, var(--panel)) 0%, var(--panel) 46%); }
.ym-head { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.ym-logo svg { width: 26px; height: 26px; display: block; }
.ym-head a { margin-left: auto; color: var(--ink-2); text-decoration: none; font-size: 13px; font-weight: 500; white-space: nowrap; }
.ym-head a:hover { color: var(--ink); }
.ym-hero { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: end; gap: 18px; margin-top: 18px; }
.ym-cover { width: clamp(96px, 11vw, 140px); aspect-ratio: 1; border-radius: 6px; background-size: cover; box-shadow: 0 12px 28px -12px rgba(0,0,0,.45); }
.ym-info small { font-size: 12px; font-weight: 500; }
.ym-info h3 { margin: 2px 0 6px; font-size: clamp(26px, 3vw, 40px); font-weight: 700; letter-spacing: -.045em; line-height: 1; }
.ym-info span { font-size: 13px; color: var(--ink-2); }
.ym-info span b { color: var(--ink); font-weight: 600; }
.ym-big { width: 52px; height: 52px; border-radius: 50%; border: 0; background: #ff0033; color: #fff; display: grid; place-items: center;
  cursor: pointer; transition: transform .2s; }
.ym-big:hover { transform: scale(1.06); }
.ym-big svg { width: 24px; height: 24px; }
.ym-cols { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 12px; margin-top: 18px; padding: 0 10px 8px;
  border-bottom: 1px solid var(--line); font-size: 12px; color: var(--ink-3); }
.ym-list { list-style: none; margin: 6px 0 10px; padding: 0; }
.ym-list button { all: unset; box-sizing: border-box; width: 100%; display: grid; grid-template-columns: 28px 36px minmax(0, 1fr) auto;
  align-items: center; gap: 12px; padding: 6px 10px; border-radius: 10px; cursor: pointer; }
.ym-list button:hover, .ym-list button:focus-visible { background: color-mix(in srgb, var(--ink) 5%, transparent); }
.ym-list .n { text-align: center; font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.ym-list .th, .ym-bar .th { width: 36px; height: 36px; border-radius: 4px; background-size: cover; }
.ym-list .nm b, .ym-bar .nm b { display: block; font-size: 14px; font-weight: 500; }
.ym-list .nm small, .ym-bar .nm small { font-size: 12px; color: var(--ink-3); }
.ym-list .on .nm b { color: #e0002d; }
.ym-list .c { font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.ym-eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.ym-eq i { width: 3px; background: #e0002d; border-radius: 1px; animation: ym-eq .9s ease-in-out infinite; }
.ym-eq i:nth-child(2) { animation-delay: -.3s; }
.ym-eq i:nth-child(3) { animation-delay: -.6s; }
@keyframes ym-eq { 0%, 100% { height: 4px; } 50% { height: 14px; } }
.ym-bar { margin: auto -20px 0; padding: 12px 20px 16px; display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 12px;
  background: color-mix(in srgb, var(--ink) 5%, var(--panel)); }
.ym-ctl { display: flex; align-items: center; gap: 6px; }
.ym-ctl button { width: 32px; height: 32px; border: 0; border-radius: 50%; background: none; color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.ym-ctl button svg { width: 18px; height: 18px; }
.ym-ctl .pp { width: 40px; height: 40px; background: var(--ink); color: var(--bg); }
.ym-prog { grid-column: 1 / -1; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.ym-prog i { display: block; height: 100%; background: var(--ink); transition: width .25s linear; }
@media (max-width: 520px) { .ym-hero { grid-template-columns: auto minmax(0, 1fr); } .ym-big { display: none; } }

.phs { position: relative; overflow: hidden; border-radius: 28px; background: var(--line); min-height: 380px; }
.phs-slides, .phs-slide { position: absolute; inset: 0; margin: 0; }
.phs-slide { opacity: 0; transition: opacity .9s; }
.phs-slide.on { opacity: 1; }
.phs-slide img, .phs-fill { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block;
  transform: scale(1.001); transition: transform 6s ease-out; }
.phs-slide.on img, .phs-slide.on .phs-fill { transform: scale(1.07); }
.phs-slide figcaption { position: absolute; left: 16px; bottom: 16px; max-width: calc(100% - 32px); display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; color: #111113; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  background: rgba(255,255,255,.72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.phs-slide figcaption svg { width: 13px; height: 13px; flex: none; }
.phs-next { position: absolute; inset: 0; border: 0; background: transparent; cursor: pointer; border-radius: inherit; }
.phs-dots { position: absolute; left: 16px; top: 16px; display: flex; align-items: center; gap: 4px; padding: 5px 7px; border-radius: 999px;
  background: rgba(0,0,0,.25); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); pointer-events: none; }
.phs-dots span { flex: none; width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.5); transition: background .3s, width .3s; }
.phs-dots span.on { width: 14px; border-radius: 3px; background: #fff; }
.phs-tabs { position: absolute; right: 12px; top: 12px; display: flex; gap: 2px; padding: 3px; border-radius: 999px;
  background: rgba(0,0,0,.28); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.phs-tabs button { border: 0; background: none; color: #fff; font: inherit; font-size: 12px; font-weight: 500; padding: 5px 11px; border-radius: 999px; cursor: pointer; }
.phs-tabs button[aria-selected="true"] { background: #fff; color: #111113; }
.phs-dots b { font-size: 11px; font-weight: 600; line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
/* playlist: 2x2 cover mosaic, scrolling track list, visible YouTube player once playing */
.ym-cover { display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; }
.ym-cover i { background-size: cover; background-position: center; }
.ym-video { margin-top: 16px; border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 9; background: #000; }
.ym-video[hidden] { display: none; }
.ym-video iframe { width: 100%; height: 100%; border: 0; display: block; }
.ym-list { max-height: 290px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.ym-list .th, .ym-bar .th { background-position: center; }
.ym-list .nm, .ym-bar .nm { min-width: 0; }
.ym-list .nm b, .ym-list .nm small, .ym-bar .nm b, .ym-bar .nm small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* the YouTube player takes the cover slot once playing: no YouTube controls, cropped to a square */
.ym-art { position: relative; flex: none; width: clamp(96px, 11vw, 140px); aspect-ratio: 1; border-radius: 6px; overflow: hidden;
  box-shadow: 0 12px 28px -12px rgba(0,0,0,.45); transition: width .35s ease; }
.ym-art .ym-cover { width: 100%; height: 100%; box-shadow: none; border-radius: 0; }
.ym-video { position: absolute; inset: 0; display: block; margin: 0; border-radius: 0; aspect-ratio: auto; background: #000;
  overflow: hidden; pointer-events: none; opacity: 0; transition: opacity .4s; }
.ym-video iframe { position: absolute; top: 0; left: 50%; height: 100%; width: auto; aspect-ratio: 16 / 9; transform: translateX(-50%) scale(1.02); border: 0; }
.ym.has-player .ym-art { width: 200px; }
.ym.has-player .ym-video { opacity: 1; }
@media (max-width: 520px) { .ym.has-player .ym-art { width: 200px; } .ym.has-player .ym-hero { grid-template-columns: 1fr; } }
.ym-now { position: absolute; inset: 0; background: #000 center / auto 134% no-repeat; }
.cal a.cal-arrow { text-decoration: none; }
/* calendar: no expanding state any more; the intro call is a plain black button to the booking page */
.cal { cursor: default; }
.cal:hover .cal-ev.booked { opacity: 1; }
.cal-next { margin: 0; font-size: 11px; color: var(--ink-3); }
.cal-book { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 12px; border-radius: 10px;
  background: var(--ink); color: var(--bg); font-size: 13px; font-weight: 500; text-decoration: none; transition: opacity .2s, transform .2s; }
.cal-book:hover { opacity: .88; }
.cal-book span { font-size: 13px; }
.cal-book b { font-weight: 500; white-space: nowrap; }
.cal-book small { margin-left: auto; font-size: 11px; opacity: .7; white-space: nowrap; }
.cal-book span { flex: none; }
/* the whole card is the link: the button stretches over it, the card alone reacts on hover,
   and the corner arrow is the only "opens another site" hint */
.cal { cursor: pointer; }
.cal-book::after { content: ""; position: absolute; inset: 0; border-radius: 28px; }
.cal-book:hover { opacity: 1; }
.cal-book:focus-visible { outline: none; }
.cal:has(.cal-book:focus-visible) { outline: 2px solid var(--link); outline-offset: 3px; }
.cal-arrow { transition: background .2s, color .2s, transform .25s ease; }
.cal:hover .cal-arrow, .cal:has(.cal-book:focus-visible) .cal-arrow { background: var(--ink); color: var(--bg); box-shadow: none; transform: translate(2px, -2px); }
.cal:has(.cal-book:focus-visible) { transform: translateY(-3px); box-shadow: 0 16px 32px -18px rgba(0,0,0,.35); }
/* calendar, final: the card behaves like the other tiles (no lift, not clickable);
   only the button is a link, and its ↗ says it opens another site */
.cal, .cal:hover, .cal:has(.cal-book:focus-visible) { cursor: default; transform: none; box-shadow: none; outline: none; }
.cal-book::after { content: none; }
.cal-book { transition: background .2s, transform .2s; }
.cal-book:hover { opacity: 1; background: color-mix(in srgb, var(--ink) 82%, var(--bg)); }
.cal-book:active { transform: scale(.98); }
.cal-book:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
.cal-book .ext { flex: none; display: inline-block; transition: transform .2s; }
.cal-book:hover .ext { transform: translate(2px, -2px); }
/* outlined, like the ghost buttons: the page already has enough black primary buttons */
.cal-book { background: none; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.cal-book:hover { background: none; box-shadow: inset 0 0 0 1px var(--ink-3); }
.cal-book small { color: var(--ink-3); opacity: 1; }

/* ---------- elsewhere: full width, no label column ----------
   4 columns of square cells: player = left half (cols 1-2, rows 1-4);
   right half: books 2x1, AI projects 2x1, gallery 2x2. One column on narrow screens. */
#elsewhere.row { grid-template-columns: minmax(0, 1fr); gap: 16px; }
.else-body { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.else-intro { margin: 0 0 6px; max-width: 62ch; color: var(--ink-2); }
.else-box { container-type: inline-size; min-width: 0; }
.else-grid { --gap: 14px; --cell: calc((100cqw - 3 * var(--gap)) / 4);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: minmax(var(--cell), auto) var(--cell); gap: var(--gap); }
.else-grid > * { min-width: 0; min-height: 0; border-radius: 28px; overflow: hidden; }
.else-grid .ym { grid-column: 1 / 3; grid-row: 1 / 3; }
.else-grid .ai { grid-column: 3 / 5; grid-row: 1; }
.else-grid .shelf { grid-column: 3; grid-row: 2; }
.else-grid .phs { grid-column: 4; grid-row: 2; min-height: 0; }
.else-grid .ym-list { max-height: none; flex: 1 1 0; min-height: 120px; }
@container (max-width: 760px) {
  .else-grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
  .else-grid > * { grid-column: auto !important; grid-row: auto !important; }
  .else-grid .phs { aspect-ratio: 1; }
  .else-grid .ym-list { flex: none; max-height: 290px; }
}

.strip { background: var(--panel); box-sizing: border-box; }
.strip-title { margin: 0; font-size: clamp(22px, 2.2vw, 26px); font-weight: 700; letter-spacing: -.035em; line-height: 1.1; }

/* books: title on top, covers on a plank at the bottom */
.shelf { display: flex; flex-direction: column; justify-content: space-between; gap: 12px; padding: 22px 24px 0; }
.shelf-text p { margin: 6px 0 0; font-size: 14px; color: var(--ink-2); }
.shelf-row { list-style: none; margin: 0; padding: 0; display: flex; align-items: flex-end; justify-content: center; gap: 14px; position: relative; min-height: 0; }
.shelf-row::after { content: ""; position: absolute; left: -24px; right: -24px; bottom: 0; height: 10px; border-radius: 3px 3px 0 0;
  background: color-mix(in srgb, var(--ink) 9%, var(--panel)); }
.bk { position: relative; z-index: 1; flex: 0 1 100px; min-width: 0; margin-bottom: 10px; aspect-ratio: 2 / 3; border-radius: 2px 4px 4px 2px; overflow: hidden;
  box-shadow: 0 10px 18px -10px rgba(0,0,0,.55), 0 1px 2px rgba(0,0,0,.12); transition: transform .25s ease; }
.bk::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(0,0,0,.25) 0, rgba(255,255,255,.18) 3px, transparent 8px); }
.bk:hover { transform: translateY(-5px); }
.bk img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* AI projects: title, then one compact row per project (name + tag, description under) */
.ai { padding: 22px 24px; display: flex; flex-direction: column; gap: 16px; }
.ai-row { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.ai-row li { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 12px; align-items: center; }
.ai-row li > div { display: flex; flex-wrap: wrap; align-items: center; column-gap: 8px; row-gap: 2px; }
.ai-ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: #fff;
  box-shadow: 0 8px 16px -8px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.18); }
.ai-ic svg { width: 22px; height: 22px; }
.ai-web .ai-ic { background: linear-gradient(160deg, #3a3a40, #111113); }
.ai-bot .ai-ic { background: linear-gradient(160deg, #2fd46a, #149a44); }
.ai-app .ai-ic { background: linear-gradient(160deg, #ff8a3d, #f04d12); }
.ai-row b { font-size: 15px; font-weight: 600; line-height: 1.3; }
.ai-row em { font-style: normal; font-size: 11.5px; font-weight: 600; padding: 2px 9px; border-radius: 999px;
  background: var(--raised); color: var(--ink-2); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 8%, transparent); }
.ai-row em { order: 1; }
.ai-row p { order: 2; flex-basis: 100%; margin: 0; font-size: 13px; line-height: 1.4; color: var(--ink-2); }
@container (max-width: 760px) { .shelf-row { gap: 8px; } }
/* the shelf is one cell wide now: smaller covers, tighter gaps */
.else-grid .shelf { padding: 20px 14px 0; }
.else-grid .shelf-row { gap: 0; }
.else-grid .shelf-row::after { left: -14px; right: -14px; }
/* three covers, slightly overlapping, sized to the tile width */
.else-grid .bk { flex: 0 0 min(104px, calc((100% + 24px) / 3)); }
.else-grid .bk + .bk { margin-left: -12px; }
.else-grid .bk:nth-child(2) { z-index: 2; }
/* a narrow gallery cell can't fit both album tabs: show the current one, a tap moves to the next */
@container (min-width: 761px) {
  .else-grid .phs-tabs { right: auto; left: 12px; max-width: calc(100% - 24px); }
  .else-grid .phs-tabs button:not([aria-selected="true"]) { display: none; }
  .else-grid .phs-tabs button[aria-selected="true"] { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .else-grid .phs-tabs button[aria-selected="true"]::after { content: " ⇅"; opacity: .6; }
  .else-grid .phs-dots { top: auto; bottom: 16px; left: auto; right: 16px; }
}
/* the photo counter sits bottom right so it never runs into the album tabs */
.else-grid .phs-dots { top: auto; bottom: 16px; left: auto; right: 16px; }
/* section labels: semibold and a shade darker so they stand apart from body text */
.row > h2, .prod-head small { font-weight: 600; color: var(--ink-2); }
/* AI projects: the playlist's tint, but orange and horizontal: strongest at the right edge, gone a third of the way in */
.else-grid .ai { background: linear-gradient(270deg, color-mix(in srgb, #ff7a1a 24%, var(--panel)) 0%, var(--panel) 33%); }
