@charset "UTF-8";

/* =========================================================
   ICM portfolio
   Direction: the curved archive is the anchor. Its near-black
   charcoal, warm white type and amber highlights run through the
   whole page; sections change surface tone, glow and card
   treatment so the page never reads as one flat black wall.
   Apple-like liquid glass is used where things float.
   ========================================================= */

:root {
  color-scheme: dark;

  /* Charcoal grounds, from deepest to lifted */
  --bg-0: #0c0b0a;          /* archive, footer */
  --bg-1: #121110;          /* page */
  --bg-2: #171614;          /* alternate sections */
  --surface-1: #1c1a18;     /* tiles, cards */
  --surface-2: #24221f;     /* raised cards, chips */
  --surface-3: #2e2b27;     /* hover */
  --edge: rgba(243, 239, 231, .08);
  --edge-2: rgba(243, 239, 231, .14);

  /* Warm white type */
  --text: #f3efe7;
  --text-2: #d4cdc1;        /* body on charcoal, ~11:1 */
  --muted: #a9a296;         /* secondary, ~7:1 */
  --soft: #8c867b;          /* large text only */

  /* Amber, restrained */
  --amber: #d9953f;
  --amber-text: #e8b06a;    /* amber text on charcoal, ≥7:1 */
  --amber-glow: rgba(217, 149, 63, .14);

  /* Light material used inside wells and sleeves */
  --cream: #f1ece2;
  --ink: #141312;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --page: 1240px;
  --gutter: clamp(16px, 4.4vw, 56px);
  --r-tile: 22px;
  --r-media: 14px;

  /* Shelf geometry (desktop) */
  --cw: 216px;
  --ch: 306px;
  --cs: 42px;

  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-shelf: cubic-bezier(.2, .8, .2, 1);

  font-family: var(--font);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 68px; -webkit-text-size-adjust: 100%; background: var(--bg-1); }
body {
  margin: 0; background: var(--bg-1); color: var(--text);
  font-size: 17px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; font-optical-sizing: auto;
}
h1, h2, h3, p, ul, dl, dd, figure { margin: 0; }
ul { list-style: none; padding: 0; }
a { color: inherit; text-underline-offset: .2em; }
img, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
::selection { background: var(--amber); color: var(--ink); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 10px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 30;
  background: var(--amber); color: var(--ink); padding: 10px 14px; border-radius: 12px; text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 12px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.todo-dot {
  display: inline-block; flex: none; width: 7px; height: 7px; border-radius: 50%;
  background: var(--amber); margin-right: 8px; vertical-align: .12em;
}

/* ---------------- Top bar: dark material ---------------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  height: 60px; padding: 0 var(--gutter);
  background: rgba(18, 17, 16, .72);
  backdrop-filter: saturate(170%) blur(22px);
  -webkit-backdrop-filter: saturate(170%) blur(22px);
  box-shadow: inset 0 -1px 0 var(--edge);
}
.wordmark { font-size: 18px; font-weight: 740; letter-spacing: -.03em; text-decoration: none; }
.topbar nav { display: flex; align-items: center; gap: clamp(14px, 3vw, 30px); font-size: 15px; }
.topbar nav a { text-decoration: none; color: var(--text-2); transition: color .2s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .topbar nav a:hover { color: var(--text); } }
.topbar .nav-action { background: var(--text); color: var(--ink); padding: 7px 15px; border-radius: 999px; font-weight: 560; }
@media (hover: hover) and (pointer: fine) { .topbar .nav-action:hover { color: var(--ink); background: #fff; } }

/* ---------------- Buttons ---------------- */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 22px; border-radius: 999px;
  font-size: 16px; font-weight: 590; text-decoration: none;
  transition: background-color .2s var(--ease-out), transform .16s var(--ease-out), box-shadow .2s var(--ease-out);
}
.button:active { transform: scale(.97); }
.button-primary { background: var(--text); color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .button-primary:hover { background: #fff; box-shadow: 0 0 0 4px var(--amber-glow); } }
.button-plain { background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--edge); }
@media (hover: hover) and (pointer: fine) { .button-plain:hover { background: var(--surface-3); } }

/* ---------------- Profile ---------------- */
.profile {
  position: relative; isolation: isolate;
  max-width: calc(var(--page) + 2 * var(--gutter)); margin: 0 auto;
  padding: clamp(36px, 6vw, 84px) var(--gutter) clamp(72px, 9vw, 120px);
}
.profile::before {
  content: ""; position: absolute; inset: -60px 0 auto; height: 720px; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40% 50% at 78% 30%, rgba(217, 149, 63, .10), transparent 70%),
    radial-gradient(35% 40% at 10% 0%, rgba(243, 239, 231, .05), transparent 70%);
}
.hero {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  gap: clamp(28px, 5vw, 72px); align-items: center;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.profile h1 {
  font-size: clamp(32px, 4.3vw, 60px); line-height: 1.06; letter-spacing: -.032em; font-weight: 650;
  max-width: 19em; text-wrap: balance;
}
.profile h1 span { color: var(--soft); }
.profile-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: clamp(24px, 3vw, 34px); }
.quick-links { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 22px; font-size: 15px; }
.quick-links a {
  color: var(--text-2); text-decoration: underline; text-decoration-color: rgba(232, 176, 106, .45);
  text-underline-offset: .28em; transition: color .2s var(--ease-out), text-decoration-color .2s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) { .quick-links a:hover { color: var(--amber-text); text-decoration-color: var(--amber-text); } }
.draft-flag { margin-top: 18px; font-size: 13px; color: var(--muted); }

.hero-portrait {
  position: relative; border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 5;
  background: var(--surface-1);
  box-shadow: 0 0 0 1px var(--edge-2), 0 40px 80px -40px rgba(0, 0, 0, .9);
}
.hero-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.hero-portrait::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18);
  background: linear-gradient(180deg, transparent 70%, rgba(12, 11, 10, .35));
}

/* Bento */
.bento { display: grid; gap: 14px; grid-template-columns: repeat(12, minmax(0, 1fr)); }
.tile {
  background: linear-gradient(180deg, var(--surface-1), #191816);
  border-radius: var(--r-tile); padding: 20px 22px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), inset 0 0 0 1px var(--edge);
}
.tile-title { font-size: 14px; font-weight: 600; color: var(--muted); margin-bottom: 14px; }

.tile-reel  { grid-column: 1 / 8;  grid-row: 1 / 4; padding: 8px; background: var(--bg-0); display: flex; flex-direction: column; }
.tile-slate { grid-column: 8 / 13; grid-row: 1; }
.tile-tools-link { grid-column: 8 / 13; grid-row: 2; }
.tile-todo-b { grid-column: 8 / 13; grid-row: 3; }
.tile-make  { grid-column: 1 / 13; grid-row: 4; }

.tile-reel .slot { flex: 1; aspect-ratio: auto; min-height: 280px; border-radius: 15px; }
.slot-reel .slot-code { font-size: clamp(30px, 11cqi, 96px); }
.reel-bar {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px;
  padding: 14px 10px 8px; color: var(--text); font-size: 14px;
}
.reel-title { font-weight: 600; white-space: nowrap; }
.reel-title em { font-style: normal; font-weight: 400; color: var(--muted); }
.timecode { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 13px; }
.timeline { position: relative; display: grid; gap: 4px; padding: 0 2px; }
.tl-track { position: relative; height: 10px; }
.tl-track i {
  position: absolute; top: 0; bottom: 0; border-radius: 3px;
  left: calc(var(--s) * 100%); width: calc(var(--w) * 100% - 2px); background: #3d3a35;
}
.tl-audio i { background: #2c2a27; height: 7px; top: 1px; }
.playhead { position: absolute; top: -4px; bottom: -4px; width: 2px; border-radius: 2px; background: var(--amber); left: 62%; }
.playhead::before {
  content: ""; position: absolute; top: -2px; left: -3px; width: 8px; height: 6px;
  background: var(--amber); clip-path: polygon(0 0, 100% 0, 50% 100%);
}
.js .playhead { animation: scrub 2.2s var(--ease-out) .5s both; }
@keyframes scrub { from { left: 0%; } to { left: 62%; } }

.tile-slate { position: relative; padding-top: 22px; overflow: hidden; }
.slate { display: grid; gap: 10px; }
.slate div { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 12px; align-items: baseline; }
.slate dt { font-size: 13px; color: var(--muted); }
.slate dd { font-size: 16px; font-weight: 560; }

.tile-tools-link {
  display: block; text-decoration: none; color: inherit;
  transition: background-color .2s var(--ease-out), transform .16s var(--ease-out), box-shadow .2s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) { .tile-tools-link:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), inset 0 0 0 1px rgba(217, 149, 63, .35); } }
.tile-tools-link:active { transform: scale(.985); }
.tools-peek { font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.tools-more { margin-top: 4px; font-size: 14px; color: var(--amber-text); font-weight: 560; }

.tile-make ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 6px; margin: 0 -10px; }
.tile-make a {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 10px; border-radius: 12px; text-decoration: none; font-size: 16px; font-weight: 580;
  transition: background-color .18s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) { .tile-make a:hover { background: var(--surface-2); } }
.tile-make .count { font-size: 13px; font-weight: 400; color: var(--muted); font-variant-numeric: tabular-nums; }
.todo { font-size: 14px; color: var(--muted); line-height: 1.45; }

/* ---------------- Slot system ---------------- */
.slot {
  position: relative; display: block; overflow: hidden; isolation: isolate;
  border-radius: var(--r-media); container-type: inline-size; aspect-ratio: 16 / 9;
}
.slot-graphic { aspect-ratio: 4 / 5; }
.slot-web { aspect-ratio: 16 / 10; }
.slot-tall { aspect-ratio: 9 / 16; }
.slot > img, .slot > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 3; }
.slot:has(> img, > video) .slot-card,
.slot:has(> img, > video) .play-glass { display: none; }
.slot-card { position: absolute; inset: 0; z-index: 1; display: grid; grid-template-rows: auto 1fr auto; padding: max(8px, 5.5cqi); }
.slot-spec { font-size: max(10px, 3.4cqi); font-weight: 600; opacity: .9; }
.slot-code { align-self: end; font-size: clamp(22px, 21cqi, 150px); line-height: .86; font-weight: 700; letter-spacing: -.04em; }
.slot-path { grid-row: 3; font-size: max(9px, 4.6cqi); opacity: .82; overflow-wrap: anywhere; line-height: 1.25; }
.slot-source { color: #171513; background: linear-gradient(145deg, #f3efe7 0%, #ddd9d1 55%, #c5b69e 100%); }
.slot-source .slot-spec { letter-spacing: .08em; }
.slot-source .slot-code { font-size: clamp(30px, 25cqi, 150px); }

.slot-video {
  color: var(--text);
  background:
    radial-gradient(110% 90% at 14% 0%, rgba(232, 182, 118, .22), transparent 58%),
    linear-gradient(180deg, #34312d 0%, #161514 100%);
}
.slot-video::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    linear-gradient(rgba(0, 0, 0, .28), rgba(0, 0, 0, .28)) top / 100% 11% no-repeat,
    linear-gradient(rgba(0, 0, 0, .28), rgba(0, 0, 0, .28)) bottom / 100% 11% no-repeat;
}
.slot-tall::after { background: none; }
.slot-graphic { color: var(--ink); background: #faf7f0; }
.slot-graphic::after {
  content: ""; position: absolute; z-index: 1; top: max(8px, 6cqi); right: max(8px, 6cqi);
  width: max(7px, 4cqi); aspect-ratio: 1; border-radius: 50%; background: var(--amber);
}
.slot-web { color: var(--ink); background: #e7e5e0; }
.slot-web::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: max(14px, 9cqi); z-index: 0;
  background:
    radial-gradient(circle at max(10px, 5cqi) 50%, rgba(18, 18, 18, .28) 0 max(2.5px, 1.3cqi), transparent calc(max(2.5px, 1.3cqi) + .5px)),
    radial-gradient(circle at max(18px, 9cqi) 50%, rgba(18, 18, 18, .18) 0 max(2.5px, 1.3cqi), transparent calc(max(2.5px, 1.3cqi) + .5px)),
    rgba(255, 255, 255, .7);
}
.play-glass {
  position: absolute; left: 50%; top: 50%; z-index: 2; translate: -50% -50%;
  width: clamp(28px, 16cqi, 72px); aspect-ratio: 1; border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), inset 0 0 0 1px rgba(255, 255, 255, .3), 0 8px 24px -10px rgba(0, 0, 0, .6);
  backdrop-filter: blur(12px) saturate(170%); -webkit-backdrop-filter: blur(12px) saturate(170%);
}
.play-glass::after {
  content: ""; position: absolute; left: 54%; top: 50%; translate: -50% -50%;
  width: 34%; height: 38%; background: #fff; clip-path: polygon(0 0, 100% 50%, 0 100%);
}

/* ---------------- Archive (curved shelf) — the visual anchor ---------------- */
.archive {
  position: relative; isolation: isolate; overflow: hidden;
  padding: clamp(80px, 9vw, 128px) var(--gutter) clamp(80px, 9vw, 120px);
  background-color: var(--bg-0);
  background-image:
    radial-gradient(60% 46% at 50% 34%, rgba(255, 214, 160, .10), rgba(12, 11, 10, 0) 70%),
    radial-gradient(40% 18% at 50% 70%, rgba(217, 149, 63, .10), rgba(12, 11, 10, 0) 70%);
  box-shadow: inset 0 1px 0 var(--edge), inset 0 -1px 0 var(--edge);
}
.archive-head {
  max-width: var(--page); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: end;
}
.archive h2, .tools h2, .about h2, .contact h2 { font-size: clamp(34px, 5vw, 68px); line-height: 1; letter-spacing: -.035em; font-weight: 680; }
.archive-head p { font-size: 17px; line-height: 1.55; color: var(--text-2); max-width: 46ch; justify-self: end; }

.shelf-filters {
  width: max-content; max-width: 100%; margin: clamp(24px, 3vw, 36px) auto 0;
  display: flex; gap: 2px; padding: 4px; border-radius: 999px; overflow-x: auto; scrollbar-width: none;
}
.shelf-filters::-webkit-scrollbar { display: none; }
.filter, .tool-filter {
  flex: none; border: 0; cursor: pointer; white-space: nowrap; min-height: 38px; padding: 0 16px;
  border-radius: 999px; background: transparent; font-size: 14px; color: var(--text-2);
  transition: background-color .2s var(--ease-out), color .2s var(--ease-out), transform .16s var(--ease-out);
}
.filter:active, .tool-filter:active { transform: scale(.96); }
.filter span, .tool-filter span { margin-left: 4px; font-size: 12px; opacity: .7; font-variant-numeric: tabular-nums; }
@media (hover: hover) and (pointer: fine) { .filter:hover, .tool-filter:hover { color: var(--text); } }
.filter[aria-pressed="true"], .tool-filter[aria-pressed="true"] { background: var(--text); color: var(--ink); font-weight: 600; }

.shelf-stage {
  position: relative; max-width: 1400px; margin: clamp(20px, 3vw, 36px) auto 0;
  height: calc(var(--ch) + 110px);
  perspective: 1500px; perspective-origin: 50% 38%;
}
.shelf { position: absolute; inset: 0; transform-style: preserve-3d; }
.shelf-floor {
  position: absolute; left: 6%; right: 6%; bottom: 18px; height: 70px; pointer-events: none;
  background: radial-gradient(50% 50% at 50% 50%, rgba(0, 0, 0, .7), transparent 70%); filter: blur(6px);
}
.noscript-list { position: relative; max-width: 640px; margin: 0 auto; color: var(--text-2); }
.noscript-list ul { margin-top: 8px; display: grid; gap: 6px; }

.case {
  position: absolute; left: 50%; top: 34px;
  width: var(--cw); height: var(--ch); margin-left: calc(var(--cw) / -2);
  padding: 0; border: 0; background: none; cursor: pointer; text-align: left;
  transform-style: preserve-3d;
  transform: translate3d(var(--x, 0px), 0, var(--z, 0px)) rotateY(var(--ry, 0deg));
  transition: transform .8s var(--ease-shelf), opacity .5s var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.case[hidden] { display: none; }
.case:focus-visible { outline: none; }
.case:focus-visible .case-front { outline: 2px solid var(--amber); outline-offset: 5px; }
.case-front {
  position: absolute; inset: 0; border-radius: 7px; backface-visibility: hidden;
  display: grid; grid-template-rows: auto 1fr auto; gap: 10px; padding: 12px;
  background: var(--sleeve, #1b1a18); color: var(--sleeve-ink, var(--text));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), inset 0 0 0 1px rgba(255, 255, 255, .05);
  transition: box-shadow .5s var(--ease-out);
}
.case[aria-pressed="true"] .case-front {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .2), inset 0 0 0 1px rgba(255, 255, 255, .06),
    0 0 0 1.5px rgba(217, 149, 63, .9), 0 40px 70px -28px rgba(0, 0, 0, .9);
}
.case[aria-pressed="true"] { transition-timing-function: cubic-bezier(.2, .8, .2, 1); }
.case[aria-pressed="true"]:focus-visible { transform: translate3d(var(--x, 0px), 0, calc(var(--z, 0px) + 20px)) rotateY(var(--ry, 0deg)) scale(1.06); }

@media (hover: hover) and (pointer: fine) { .case[aria-pressed="true"]:hover { transform: translate3d(var(--x, 0px), 0, calc(var(--z, 0px) + 20px)) rotateY(var(--ry, 0deg)) scale(1.06); } }
.case.is-real .case-front::after {
  content: "Project"; position: absolute; right: 10px; bottom: 10px;
  font-size: 9.5px; font-weight: 700; letter-spacing: .02em; padding: 3px 7px; border-radius: 999px;
  background: var(--amber); color: var(--ink);
}
.case.is-source .case-front::after { content: "Canva source"; }
.sleeve-top { display: flex; justify-content: space-between; font-size: 10.5px; font-weight: 600; opacity: .78; }
.sleeve-top span:first-child { letter-spacing: -.01em; font-weight: 750; }
.case .slot { align-self: center; justify-self: center; width: 100%; border-radius: 4px; }
.case .slot-graphic { width: 72%; }
.case .slot-tall { width: 44%; }
.case .slot-card { padding: 7px; }
.sleeve-foot { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 10px; align-items: end; padding-right: 44px; }
.sleeve-code { grid-row: 1 / span 2; font-size: 44px; line-height: .8; font-weight: 750; letter-spacing: -.045em; }
.sleeve-title { font-size: 13px; font-weight: 600; line-height: 1.2; }
.sleeve-format { font-size: 11px; opacity: .7; font-variant-numeric: tabular-nums; }
.case:not(.is-real) .sleeve-foot { padding-right: 0; }

.case-spine {
  position: absolute; top: 0; height: 100%; width: var(--cs);
  display: flex; align-items: center; gap: 12px; padding: 14px 0;
  writing-mode: vertical-rl; font-size: 12px; font-weight: 560; white-space: nowrap; overflow: hidden;
  background: var(--sleeve, #1b1a18); color: var(--sleeve-ink, var(--text));
  box-shadow: inset 0 0 0 100vmax rgba(0, 0, 0, .14), inset 1px 0 0 rgba(255, 255, 255, .12);
  backface-visibility: hidden;
}
.case-spine b { font-size: 15px; font-weight: 760; letter-spacing: -.02em; }
.case-spine-l { left: calc(-1 * var(--cs)); transform-origin: right center; transform: rotateY(-90deg); }
.case-spine-r { left: 100%; transform-origin: left center; transform: rotateY(90deg); }
.case-video .case-spine::before { content: ""; flex: none; width: 100%; height: 14px; margin-bottom: 2px; background: var(--amber); opacity: .9; }

.case-video          { --sleeve: #1d1c1a; --sleeve-ink: var(--text); }
.case-video.tone-2   { --sleeve: #272420; }
.case-video.tone-3   { --sleeve: #202122; }
.case-video.tone-4   { --sleeve: #2c2823; }
.case-graphic        { --sleeve: #ece5d7; --sleeve-ink: var(--ink); }
.case-graphic.tone-2 { --sleeve: #f3efe7; }
.case-graphic.tone-3 { --sleeve: #dcd4c5; }
.case-graphic.tone-4 { --sleeve: #e6ddcc; }
.case-web            { --sleeve: #f2f1ed; --sleeve-ink: var(--ink); }
.case-web.tone-2     { --sleeve: #e4e2dc; }
.case-web.tone-3     { --sleeve: #eae6dd; }
.case-web.tone-4     { --sleeve: #dedbd4; }

/* Dark liquid glass */
.glass-dark {
  position: relative;
  background: linear-gradient(160deg, rgba(255, 255, 255, .11), rgba(255, 255, 255, .04));
  backdrop-filter: blur(28px) saturate(160%); -webkit-backdrop-filter: blur(28px) saturate(160%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), inset 0 0 0 1px rgba(255, 255, 255, .07), 0 30px 60px -32px rgba(0, 0, 0, .9);
}
.glass-dark::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, .45), rgba(255, 255, 255, 0) 35%, rgba(255, 255, 255, 0) 70%, rgba(217, 149, 63, .35));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.now {
  max-width: 800px; margin: -8px auto 0; border-radius: 28px;
  display: grid; grid-template-columns: 48px minmax(0, 1fr) 48px; gap: clamp(12px, 2vw, 24px); align-items: center;
  padding: 18px clamp(14px, 2vw, 22px);
}
.now-info { text-align: center; }
.now-kind { font-size: 14px; color: var(--muted); }
.now-kind span:first-child { color: var(--amber-text); font-weight: 700; margin-right: 4px; }
.now h3 { margin-top: 4px; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.15; letter-spacing: -.022em; font-weight: 650; }
.now-desc { margin: 6px auto 0; max-width: 50ch; font-size: 16px; color: var(--text-2); }
.facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; margin-top: 12px; font-size: 14px; }
.facts div { display: flex; gap: 6px; }
.facts dt { color: var(--muted); }
.facts dd { color: var(--text); font-weight: 580; }
.now-note, .details-note { display: flex; gap: 8px; font-size: 13.5px; line-height: 1.45; }
.now-note { justify-content: center; margin: 10px auto 0; max-width: 54ch; color: var(--amber-text); }
.now-note::before, .details-note::before { content: ""; flex: none; width: 7px; height: 7px; margin-top: .45em; border-radius: 50%; background: var(--amber); }
.now-note[hidden], .details-note[hidden], .details-links[hidden], .now-links:empty { display: none; }
.now-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 14px; }
.now-links { display: contents; }

.details-open, .details-link {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 0 18px;
  border: 0; border-radius: 999px; cursor: pointer; text-decoration: none;
  background: var(--text); color: var(--ink); font-size: 14px; font-weight: 600;
  transition: background-color .2s var(--ease-out), transform .16s var(--ease-out), box-shadow .2s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) { .details-open:hover, .details-link:hover { background: #fff; box-shadow: 0 0 0 4px var(--amber-glow); } }
.details-open:active, .details-link:active { transform: scale(.96); }
.details-link.is-secondary, .now-links .details-link { background: rgba(255, 255, 255, .1); color: var(--text); box-shadow: inset 0 0 0 1px var(--edge-2); }
@media (hover: hover) and (pointer: fine) { .details-link.is-secondary:hover, .now-links .details-link:hover { background: rgba(255, 255, 255, .18); } }
.details-link .ext { font-size: 12px; opacity: .7; }

.step {
  position: relative; width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, .1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), inset 0 0 0 1px rgba(255, 255, 255, .08);
  transition: background-color .2s var(--ease-out), transform .16s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) { .step:hover { background: rgba(255, 255, 255, .18); } }
.step:active { transform: scale(.94); }
.step span { position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; border-top: 2px solid var(--text); border-left: 2px solid var(--text); }
.step-prev span { translate: -30% -50%; rotate: -45deg; }
.step-next span { translate: -70% -50%; rotate: 135deg; }

/* Scrubber: groups sized by their project counts */
.scrubber { position: relative; max-width: 800px; margin: 26px auto 0; display: flex; }
.scrub-group {
  flex: var(--n) 1 0; display: grid; gap: 8px; padding: 6px 4px; text-decoration: none; font-size: 13px; color: var(--muted);
  border-radius: 10px; transition: color .2s var(--ease-out), opacity .2s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) { .scrub-group:hover { color: var(--text); } }
.scrub-group.is-primary { color: var(--text); font-weight: 600; }
.scrub-group.is-dim { opacity: .35; }
.scrub-ticks {
  height: 6px; border-radius: 3px;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .22) 0 calc(100% / var(--n) - 4px), transparent calc(100% / var(--n) - 4px) calc(100% / var(--n)));
}
.scrub-marker {
  position: absolute; top: 2px; width: 3px; height: 14px; border-radius: 2px; background: var(--amber);
  left: calc((var(--i, 0) + .5) / var(--total, 1) * 100%); translate: -50% 0; transition: left .6s var(--ease-shelf);
}

/* Brands strip: quiet, monochrome */
.brands {
  max-width: var(--page); margin: clamp(56px, 7vw, 96px) auto 0; padding-top: clamp(28px, 4vw, 40px);
  box-shadow: inset 0 1px 0 var(--edge); text-align: center;
}
.brands h3 { font-size: 14px; font-weight: 600; color: var(--muted); }
.brand-marquee { overflow: hidden; margin-top: 22px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.brand-track { display: flex; width: max-content; animation: brand-drift 38s linear infinite; }
.brands:focus-within .brand-track { animation-play-state: paused; }

@media (hover: hover) and (pointer: fine) { .brands:hover .brand-track { animation-play-state: paused; } }
.brand-logos {
  display: flex; flex: none; flex-wrap: nowrap; justify-content: space-around; align-items: center;
  gap: clamp(28px, 4vw, 64px); padding: 0 clamp(18px, 3vw, 44px) 0 0; margin: 0;
}
.brand-logos img {
  height: 30px; width: auto; max-width: 150px; object-fit: contain;
  filter: brightness(0) invert(1); opacity: .62; transition: opacity .25s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) { .brand-logos li:hover img { opacity: .95; } }
.brands-note { margin-top: 18px; font-size: 13px; color: var(--muted); }
@keyframes brand-drift { to { transform: translateX(-50%); } }

/* Testimonials: quiet editorial cards with attribution kept close to each quote */
.testimonials {
  padding: clamp(54px, 7vw, 88px) var(--gutter) clamp(62px, 8vw, 96px);
  background: linear-gradient(180deg, rgba(255,255,255,.018), rgba(255,255,255,.035) 52%, rgba(255,255,255,.012));
  box-shadow: inset 0 1px 0 var(--edge), inset 0 -1px 0 var(--edge);
}
.testimonials-inner { max-width: var(--page); margin: 0 auto; }
.testimonials-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 20px clamp(24px, 5vw, 72px); align-items: end; }
.testimonials h2 { font-size: clamp(34px, 5vw, 68px); line-height: 1; letter-spacing: -.035em; font-weight: 680; }
.testimonials-head > p { max-width: 42ch; font-size: 17px; color: var(--text-2); }
.testimonial-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: clamp(28px, 4vw, 44px); }
.testimonial-card {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
  min-height: 184px; padding: clamp(20px, 2.5vw, 28px); border-radius: 24px;
  background: linear-gradient(145deg, rgba(255,255,255,.09), rgba(255,255,255,.035));
  backdrop-filter: blur(22px) saturate(140%); -webkit-backdrop-filter: blur(22px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14), inset 0 0 0 1px rgba(255,255,255,.085), 0 14px 38px -30px rgba(0,0,0,.9);
  transition: transform .35s var(--ease-out), background .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) { .testimonial-card:hover { transform: translateY(-3px); background: linear-gradient(145deg, rgba(255,255,255,.115), rgba(255,255,255,.045)); box-shadow: inset 0 1px 0 rgba(255,255,255,.17), inset 0 0 0 1px rgba(255,255,255,.12), 0 20px 44px -28px rgba(0,0,0,.9); } }
.testimonial-card blockquote { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.5; color: var(--text); text-wrap: pretty; }
.testimonial-card figcaption { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.testimonial-mark { display: grid; flex: none; width: 42px; height: 42px; place-items: center; border-radius: 50%; color: #fff; font-size: 12px; letter-spacing: .03em; font-weight: 700; background: linear-gradient(145deg, rgba(255,255,255,.18), rgba(255,255,255,.055)); box-shadow: inset 0 1px 0 rgba(255,255,255,.2), inset 0 0 0 1px rgba(255,255,255,.1); }
.testimonial-credit { display: grid; gap: 4px; }
.testimonial-card figcaption .testimonial-mark { color: #fff; }
.testimonial-card figcaption strong { font-size: 15px; font-weight: 650; }
.testimonial-card figcaption span { color: var(--muted); }

/* Project details dialog: dark liquid glass */
.details {
  width: min(900px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: 28px;
  color: var(--text); overflow: auto;
  background: rgba(30, 28, 26, .86);
  backdrop-filter: blur(30px) saturate(160%); -webkit-backdrop-filter: blur(30px) saturate(160%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), inset 0 0 0 1px var(--edge-2), 0 40px 100px -30px rgba(0, 0, 0, .8);
}
.details::backdrop { background: rgba(8, 7, 6, .62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.details[open] { animation: details-in .32s var(--ease-out); }
@keyframes details-in { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
.details-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px; padding: 14px; }
.details-media { border-radius: 18px; overflow: hidden; align-self: start; background: var(--bg-0); }
.details-media .slot { border-radius: 18px; width: 100%; }
.details-media .slot-tall { width: 56%; margin: 0 auto; }
.details-media .slot-graphic { width: 80%; margin: 0 auto; }
.details-media .slot-card { padding: 16px; }
.details-gallery-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-top: 1px solid var(--edge); color: var(--text-2); font-size: 13px; }
.gallery-step { width: 36px; height: 36px; border: 1px solid var(--edge-2); border-radius: 50%; color: var(--text); background: rgba(255,255,255,.07); cursor: pointer; font-size: 23px; line-height: 1; transition: background .2s var(--ease-out), transform .2s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .gallery-step:hover { background: rgba(255,255,255,.14); transform: scale(1.04); } }
.details-body { padding: 18px 12px 12px 0; }
.details-kind { font-size: 14px; color: var(--muted); }
.details-kind span:first-child { color: var(--amber-text); font-weight: 700; margin-right: 4px; }
.details h3 { margin-top: 6px; font-size: clamp(24px, 3vw, 34px); line-height: 1.1; letter-spacing: -.025em; font-weight: 680; }
.details-desc { margin-top: 10px; font-size: 17px; color: var(--text-2); }
.details-facts { justify-content: flex-start; margin-top: 16px; }
.details-note { margin-top: 16px; padding: 10px 12px; border-radius: 12px; background: rgba(217, 149, 63, .14); color: var(--text); }
.details-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.details-todo { margin-top: 20px; font-size: 14px; color: var(--muted); }
.details-todo[hidden] { display: none; }
.details-close {
  position: absolute; top: 22px; right: 22px; z-index: 5; width: 40px; height: 40px; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(30, 28, 26, .7); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 2px 8px rgba(0, 0, 0, .4);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.details-close span::before, .details-close span::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 16px; height: 2px; border-radius: 2px; background: var(--text);
  translate: -50% -50%; rotate: 45deg;
}
.details-close span::after { rotate: -45deg; }
.details-close:active { transform: scale(.94); }

/* ---------------- Tools ---------------- */
.tools {
  position: relative; isolation: isolate;
  padding: clamp(80px, 10vw, 136px) var(--gutter);
  background: var(--bg-2);
}
.tools::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(45% 55% at 85% 20%, rgba(217, 149, 63, .07), transparent 70%);
}
.tools > * { max-width: var(--page); margin-left: auto; margin-right: auto; }
.tools-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 20px clamp(24px, 5vw, 72px); align-items: end; }
.tools-head p { font-size: 17px; color: var(--text-2); max-width: 44ch; }
.tools > .tool-filters {
  display: flex; gap: 2px; margin-top: clamp(24px, 3vw, 36px); padding: 4px; width: max-content; max-width: 100%;
  border-radius: 999px; background: var(--surface-1); box-shadow: inset 0 0 0 1px var(--edge); overflow-x: auto; scrollbar-width: none;
  margin-left: max(0px, calc((100% - var(--page)) / 2));
}
.tool-filters::-webkit-scrollbar { display: none; }
.tools-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; margin-top: 16px; align-items: start; }
.tool-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.tool-group {
  border-radius: var(--r-tile); padding: 20px 20px 22px;
  background: linear-gradient(160deg, #201e1b, #191816);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), inset 0 0 0 1px var(--edge);
}
.tool-group h3 { font-size: 15px; font-weight: 640; margin-bottom: 14px; }
.tool-group[hidden] { display: none; }
.js .tool-group.is-entering { animation: rise .4s var(--ease-out) both; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; }
/* Badges: buttons in a soft dark glass; one round cream well holds the mark */
.badge {
  display: inline-flex; align-items: center; gap: 9px; cursor: pointer;
  font-size: 15px; font-weight: 560; padding: 5px 14px 5px 5px; border: 0; border-radius: 999px; color: var(--text);
  background: linear-gradient(180deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .04));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), inset 0 0 0 1px var(--edge);
  transition: background-color .2s var(--ease-out), box-shadow .2s var(--ease-out), transform .2s var(--ease-out);
}
.badge:focus-visible { transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), inset 0 0 0 1px rgba(217, 149, 63, .45); }

@media (hover: hover) and (pointer: fine) { .badge:hover { transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), inset 0 0 0 1px rgba(217, 149, 63, .45); } }
.badge:active { transform: scale(.97); }
.badge[aria-pressed="true"] { background: rgba(217, 149, 63, .16); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), inset 0 0 0 1.5px var(--amber); }
.badge-icon {
  flex: none; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; background: var(--cream); color: var(--ink);
}
.badge-icon svg { width: 15px; height: 15px; fill: currentColor; }
.badge-icon-img img { width: 16px; height: 16px; border-radius: 4px; }
.badge-initials { font-size: 10px; font-weight: 700; letter-spacing: -.01em; }

.tool-detail { position: sticky; top: 84px; border-radius: var(--r-tile); padding: 22px; min-height: 210px; }
.tool-detail-group { font-size: 13px; color: var(--amber-text); font-weight: 600; }
.tool-detail h3 { margin-top: 6px; font-size: 26px; letter-spacing: -.02em; font-weight: 680; }
.tool-detail-use { margin-top: 10px; font-size: 16px; color: var(--text-2); }
.tool-detail-link {
  display: inline-flex; margin-top: 16px; font-size: 14px; font-weight: 600; color: var(--amber-text);
  text-decoration: underline; text-underline-offset: .25em;
}
.tool-detail-link[hidden] { display: none; }
.js .tool-detail.is-changing { animation: tool-swap .28s var(--ease-out); }
@keyframes tool-swap { from { opacity: .4; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* ---------------- About ---------------- */
.about {
  max-width: calc(var(--page) + 2 * var(--gutter)); margin: 0 auto;
  padding: clamp(80px, 10vw, 136px) var(--gutter);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center;
}
.about-note {
  margin-top: 28px; border-radius: var(--r-tile); padding: clamp(24px, 3.4vw, 36px);
  background: linear-gradient(145deg, rgba(255,255,255,.07), rgba(255,255,255,.025));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1), inset 0 0 0 1px var(--edge);
}
.about-flag { display: flex; align-items: center; font-size: 14px; font-weight: 600; color: var(--amber-text); }
.about-lead { margin-top: 16px; font-size: clamp(20px, 2vw, 24px); line-height: 1.4; letter-spacing: -.012em; max-width: 30ch; }
.about-copy { margin-top: 16px; max-width: 54ch; color: var(--text-2); line-height: 1.65; }
.about-prompts-title { margin-top: 24px; font-size: 14px; color: var(--muted); }
.about-prompts { margin-top: 10px; display: grid; gap: 8px; font-size: 16px; color: var(--text-2); }
.about-prompts li { position: relative; padding-left: 18px; }
.about-prompts li::before { content: ""; position: absolute; left: 0; top: .66em; width: 8px; height: 2px; border-radius: 2px; background: var(--amber); }
.about-photos { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.about-photo { border-radius: 22px; overflow: hidden; aspect-ratio: 2 / 3; background: var(--surface-1); box-shadow: 0 0 0 1px var(--edge-2), 0 30px 60px -30px rgba(0, 0, 0, .9); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-photo-b { margin-top: 18%; }

/* ---------------- Contact ---------------- */
.contact {
  position: relative; isolation: isolate;
  padding: clamp(80px, 10vw, 136px) var(--gutter);
  background: linear-gradient(180deg, #171513, #121110);
  box-shadow: inset 0 1px 0 var(--edge);
}
.contact::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(45% 60% at 15% 30%, rgba(217, 149, 63, .09), transparent 70%);
}
.contact-inner {
  max-width: var(--page); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 20px clamp(24px, 5vw, 72px); align-items: start;
}
.contact-lede { grid-column: 1; color: var(--text-2); font-size: 17px; margin-top: 4px; }
.contact-list { grid-column: 2; grid-row: 1 / span 2; display: grid; gap: 8px; }
.contact-row {
  display: grid; grid-template-columns: 110px minmax(0, 1fr) 20px; gap: 16px; align-items: center;
  padding: 18px 20px; border-radius: 16px; text-decoration: none;
  background: var(--surface-1); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), inset 0 0 0 1px var(--edge);
  transition: background-color .2s var(--ease-out), box-shadow .2s var(--ease-out), transform .16s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) { a.contact-row:hover { background: var(--surface-2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), inset 0 0 0 1px rgba(217, 149, 63, .45); } }
a.contact-row:active { transform: scale(.99); }
.contact-key { font-size: 15px; color: var(--muted); }
.contact-val { font-size: 18px; color: var(--text); overflow-wrap: anywhere; }
.contact-go { width: 9px; height: 9px; border-top: 2px solid var(--amber-text); border-right: 2px solid var(--amber-text); rotate: 45deg; justify-self: end; }
.contact-row.is-todo { grid-template-columns: 110px minmax(0, 1fr); }
.contact-row.is-todo .contact-val { color: var(--text-2); font-size: 16px; }

/* ---------------- Footer: quiet personal signature ---------------- */
.footer { background: var(--bg-0); box-shadow: inset 0 1px 0 var(--edge); }
.footer-row {
  max-width: var(--page); margin: 0 auto; padding: clamp(40px, 6vw, 64px) var(--gutter) 32px;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.signature { display: block; height: 72px; width: auto; }
.sig-letters { fill: var(--text); }
.sig-c { fill: none; stroke: var(--text); stroke-width: 19; }
.sig-name { fill: var(--bg-0); font-size: 7px; font-family: "Snell Roundhand", "Apple Chancery", "Segoe Script", cursive; }
.footer-meta { text-align: right; font-size: 14px; color: var(--muted); }

/* ---------------- Load moment ---------------- */
.js .hero > *, .js .tile { animation: rise .7s var(--ease-out) both; }
.js .hero-portrait { animation-delay: .08s; }
.js .tile-reel { animation-delay: .14s; }
.js .tile-slate { animation-delay: .2s; }
.js .tile-tools-link { animation-delay: .26s; }
.js .tile-todo-b { animation-delay: .3s; }
.js .tile-make { animation-delay: .34s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.js .shelf:not(.is-ready) .case { transition: none; }

/* ---------------- Responsive ---------------- */
@media (max-width: 1080px) {
  :root { --cw: 196px; --ch: 278px; --cs: 38px; }
  .tile-reel { grid-column: 1 / -1; grid-row: auto; }
  .tile-reel .slot { aspect-ratio: 16 / 9; flex: none; min-height: 0; }
  .tile-slate { grid-column: 1 / 7; grid-row: auto; }
  .tile-tools-link { grid-column: 7 / 13; grid-row: auto; }
  .tile-todo-b { grid-column: 1 / -1; grid-row: auto; }
  .tile-make { grid-column: 1 / -1; grid-row: auto; }
  .tools-layout { grid-template-columns: 1fr; }
  .tool-detail { position: relative; top: 0; min-height: 0; }
}
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-portrait { max-width: 460px; }
  .archive-head, .tools-head { grid-template-columns: 1fr; }
  .testimonials-head { grid-template-columns: 1fr; }
  .archive-head p { justify-self: start; }
  .details-inner { grid-template-columns: 1fr; gap: 8px; }
  .details-body { padding: 8px 8px 12px; }
  .about, .contact-inner { grid-template-columns: 1fr; }
  .contact-list { grid-column: 1; grid-row: auto; margin-top: 12px; }
}
@media (max-width: 760px) {
  :root { --cw: 62vw; --ch: calc(62vw * 1.42); }
  .shelf-stage { height: auto; perspective: none; margin-top: 20px; margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); }
  .shelf {
    position: relative; inset: auto; transform-style: flat;
    display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
    padding: 6px calc(50vw - var(--cw) / 2) 22px; scrollbar-width: none;
  }
  .shelf::-webkit-scrollbar { display: none; }
  .case {
    position: relative; left: auto; top: auto; margin: 0; flex: none; scroll-snap-align: center;
    transform: scale(.94) !important; opacity: .72; transition: transform .35s var(--ease-out), opacity .35s var(--ease-out);
  }
  .case[aria-pressed="true"] { transform: none !important; opacity: 1; }
  .case[aria-pressed="true"]:focus-visible { transform: scale(1.025) !important; }

  @media (hover: hover) and (pointer: fine) { .case[aria-pressed="true"]:hover { transform: scale(1.025) !important; } }
  .case-spine, .shelf-floor { display: none; }
  .now { grid-template-columns: 44px minmax(0, 1fr) 44px; margin-top: 4px; border-radius: 24px; padding: 16px 12px; }
  .step { width: 44px; height: 44px; }
  .scrubber { margin-top: 20px; }
  .tool-groups { grid-template-columns: 1fr; }
  .testimonial-grid {
    grid-template-columns: none; grid-auto-columns: minmax(80vw, 1fr); grid-auto-flow: column;
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
    padding: 0 4px 12px; scrollbar-width: thin;
  }
  .testimonial-card { min-height: 224px; scroll-snap-align: start; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .topbar { height: 56px; }
  .topbar nav { font-size: 14px; gap: 14px; }
  .profile h1 { font-size: 29px; }
  .hero-portrait { border-radius: 22px; }
  .tile-slate, .tile-tools-link { grid-column: 1 / -1; }
  .tile-make ul { grid-template-columns: 1fr; }
  .reel-bar { grid-template-columns: minmax(0, 1fr) auto; }
  .reel-bar .timeline { grid-column: 1 / -1; grid-row: 2; }
  .now h3 { font-size: 21px; }
  .now-desc { font-size: 15px; }
  .shelf-filters, .tools > .tool-filters { flex-wrap: wrap; justify-content: center; width: auto; border-radius: 22px; overflow: visible; }
  .filter, .tool-filter { padding: 0 12px; font-size: 13px; min-height: 36px; }
  .filter span, .tool-filter span { display: none; }
  .brand-logos { gap: 22px 28px; }
  .brand-logos img { height: 24px; max-width: 120px; }
  .contact-row { grid-template-columns: minmax(0, 1fr) 16px; gap: 4px 12px; padding: 16px; }
  .contact-row .contact-key { grid-column: 1; }
  .contact-row .contact-val { grid-column: 1; font-size: 16px; }
  .contact-row .contact-go { grid-column: 2; grid-row: 1 / span 2; }
  .contact-row.is-todo { grid-template-columns: 1fr; }
  .footer-row { flex-direction: column; align-items: flex-start; gap: 16px; }
  .footer-meta { text-align: left; }
  .signature { height: 60px; }
}

/* ---------------- Preferences ---------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}
@media (prefers-reduced-transparency: reduce) {
  .topbar { background: var(--bg-1); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .glass-dark { background: #232120; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .details { background: #1e1c1a; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .testimonial-card { background: #232120; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .play-glass { background: rgba(0, 0, 0, .5); backdrop-filter: none; -webkit-backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  .glass-dark { background: #1e1d1b; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5); }
  .profile h1 span { color: var(--text-2); }
  .brand-logos img { opacity: 1; }
}

/* =========================================================
   7 Nov 2026 refinements (Claude pass): selected-sleeve prominence,
   marquee control, compact testimonials. Incremental overrides.
   ========================================================= */

/* Selected sleeve: lift forward and grow on hover / keyboard focus (desktop shelf) */
@media (min-width: 761px) {
  .shelf-stage { margin-top: clamp(40px, 4.5vw, 60px); height: calc(var(--ch) + 124px); }
  .case[aria-pressed="true"]:focus-visible {
    transform: translate3d(var(--x, 0px), -6px, calc(var(--z, 0px) + 40px)) rotateY(var(--ry, 0deg)) scale(1.08);
  }
  .case[aria-pressed="true"]:focus-visible .case-front {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, .24), inset 0 0 0 1px rgba(255, 255, 255, .08),
      0 0 0 2px var(--amber), 0 56px 90px -30px rgba(0, 0, 0, .95);
  }
}
@media (min-width: 761px) and (hover: hover) and (pointer: fine) {
  .case[aria-pressed="true"]:hover {
    transform: translate3d(var(--x, 0px), -6px, calc(var(--z, 0px) + 40px)) rotateY(var(--ry, 0deg)) scale(1.08);
  }
  .case[aria-pressed="true"]:hover .case-front {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, .24), inset 0 0 0 1px rgba(255, 255, 255, .08),
      0 0 0 2px var(--amber), 0 56px 90px -30px rgba(0, 0, 0, .95);
  }
  /* Neighbours hint they can be chosen */
  .case[aria-pressed="false"]:hover { filter: brightness(1.12); }
}
.case[aria-pressed="true"] { transition: transform .5s var(--ease-shelf), opacity .5s var(--ease-out); }
.shelf.is-ready .case[aria-pressed="false"] { transition: transform .8s var(--ease-shelf), opacity .5s var(--ease-out), filter .25s var(--ease-out); }

/* Brand marquee: visible pause control; paused state; reduced motion shows a calm static row */
.brands { position: relative; }
.marquee-toggle {
  margin-top: 14px; min-height: 30px; padding: 0 12px; border: 0; border-radius: 999px; cursor: pointer;
  font-size: 12px; font-weight: 600; color: var(--text-2);
  background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px var(--edge-2);
  transition: background-color .2s var(--ease-out), color .2s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) { .marquee-toggle:hover { background: rgba(255, 255, 255, .12); color: var(--text); } }
.brands.is-paused .brand-track { animation-play-state: paused; }
.brand-marquee:focus-visible { outline: 2px solid var(--amber); outline-offset: 6px; }
@media (prefers-reduced-motion: reduce) {
  .brand-marquee { -webkit-mask-image: none; mask-image: none; }
  .brand-track { width: auto; justify-content: center; }
  .brand-track .brand-logos { flex-wrap: wrap; justify-content: center; padding: 0; row-gap: 22px; }
  .brand-track .brand-logos[aria-hidden="true"] { display: none; }
  .marquee-toggle { display: none; }
}

/* Testimonials: compact, balanced liquid glass before Contact */
.testimonials {
  position: relative; isolation: isolate;
  padding: clamp(56px, 6vw, 84px) var(--gutter) clamp(60px, 7vw, 92px);
  background: var(--bg-2);
}
.testimonials::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(38% 60% at 18% 40%, rgba(217, 149, 63, .09), transparent 70%),
    radial-gradient(34% 50% at 86% 70%, rgba(243, 239, 231, .045), transparent 70%);
}
.testimonials-inner { max-width: 1080px; }
.testimonials-head { grid-template-columns: auto minmax(0, 1fr); align-items: baseline; gap: 12px 32px; }
.testimonials h2 { font-size: clamp(28px, 3.4vw, 44px); }
.testimonials-head > p { font-size: 15px; color: var(--muted); max-width: none; }
.testimonial-grid { gap: 12px; margin-top: clamp(22px, 3vw, 32px); }
.testimonial-card {
  min-height: 0; gap: 18px; padding: 22px 24px 20px; border-radius: 22px;
  background: linear-gradient(150deg, rgba(255, 255, 255, .085), rgba(255, 255, 255, .03));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), inset 0 0 0 1px rgba(255, 255, 255, .07), 0 18px 40px -32px rgba(0, 0, 0, .95);
}
.testimonial-card::before {
  content: "“"; position: absolute; top: 10px; right: 20px;
  font-size: 54px; line-height: 1; font-weight: 700; color: rgba(217, 149, 63, .35); pointer-events: none;
}
.testimonial-card blockquote { margin: 0; font-size: 16px; line-height: 1.55; color: var(--text-2); padding-right: 22px; }
.testimonial-mark { width: 36px; height: 36px; font-size: 11px; color: var(--ink) !important; background: var(--cream); box-shadow: none; }
.testimonial-card figcaption strong { font-size: 14px; color: var(--text); }
.testimonial-card figcaption span { font-size: 13px; }
@media (hover: hover) and (pointer: fine) {
  .testimonial-card:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), inset 0 0 0 1px rgba(217, 149, 63, .35), 0 22px 44px -30px rgba(0, 0, 0, .95); }
}
@media (max-width: 760px) {
  .testimonials-head { grid-template-columns: 1fr; }
  .testimonial-grid { grid-auto-columns: minmax(82vw, 1fr); }
  .testimonial-card { min-height: 0; }
}
@media (prefers-reduced-transparency: reduce) {
  .testimonial-card { background: var(--surface-1); }
}

/* Phone: panel actions stack full width so long labels never wrap inside a pill */
@media (max-width: 640px) {
  .now-actions { flex-direction: column; align-items: stretch; gap: 8px; }
  .now-actions .details-open, .now-actions .details-link { width: 100%; white-space: nowrap; }
}

/* =========================================================
   Copy & hierarchy pass (7 Nov 2026): one clear hero title,
   trimmed profile tiles, glass kept to three surfaces
   (top bar, now-showing panel, details dialog), calmer type.
   ========================================================= */

/* Hero: the name and role lead; the rest is a supporting line */
.profile h1 {
  font-size: clamp(44px, 6vw, 88px); line-height: .98; letter-spacing: -.04em; font-weight: 680;
  max-width: 11em; text-wrap: balance;
}
.profile h1 span { display: block; color: var(--text); }
.hero-lede { margin-top: clamp(18px, 2vw, 26px); max-width: 46ch; font-size: clamp(17px, 1.35vw, 19px); line-height: 1.55; color: var(--text-2); }
.profile-actions { margin-top: clamp(22px, 2.6vw, 30px); }

/* Profile tiles: reel + two facts + shelf shortcuts (the slate repeated the hero) */
.tile-reel  { grid-row: 1 / 3; }
.tile-reel .slot { min-height: 230px; }
.tile-tools-link { grid-column: 8 / 13; grid-row: 1; }
.tile-todo-b { grid-column: 8 / 13; grid-row: 2; }
.tile-make  { grid-column: 1 / 13; grid-row: 3; }
.tile-todo-b .todo { font-size: 17px; font-weight: 600; color: var(--text); }
@media (max-width: 1080px) {
  .tile-reel, .tile-make { grid-column: 1 / -1; grid-row: auto; }
  .tile-tools-link, .tile-todo-b { grid-column: span 6; grid-row: auto; }
}
@media (max-width: 640px) {
  .tile-tools-link, .tile-todo-b { grid-column: 1 / -1; }
}

/* Coming-soon sleeves: intentional, no file paths */
.slot-soon .slot-path { font-size: max(11px, 5cqi); font-weight: 650; color: var(--amber-text); opacity: 1; }
.case-graphic .slot-soon .slot-path, .case-web .slot-soon .slot-path { color: #8a5518; }

/* Glass only where things float: flatten the shelf filters, tool panel and testimonials */
.shelf-filters.glass-dark, .tool-detail.glass-dark {
  background: var(--surface-1); backdrop-filter: none; -webkit-backdrop-filter: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), inset 0 0 0 1px var(--edge);
}
.shelf-filters.glass-dark::before, .tool-detail.glass-dark::before { display: none; }
.testimonial-card {
  background: var(--surface-1); backdrop-filter: none; -webkit-backdrop-filter: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), inset 0 0 0 1px var(--edge);
}
@media (hover: hover) and (pointer: fine) {
  .testimonial-card:hover { transform: translateY(-2px); background: var(--surface-2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), inset 0 0 0 1px rgba(217, 149, 63, .35); }
}
.tool-group { background: var(--surface-1); }
@media (hover: hover) and (pointer: fine) { .button-primary:hover, .details-open:hover, .details-link:hover { box-shadow: none; } }

/* Readable floor for text meant to be read (sleeve internals stay small as texture) */
.marquee-toggle, .brands-note, .scrub-group, .todo, .testimonial-card figcaption span { font-size: max(13px, 1em); }
.marquee-toggle { font-size: 13px; }

/* Testimonial portraits (from Ivan's PORTFOLIO2026 Canva design, matched by position to each name) */
.testimonial-mark.has-photo { width: 44px; height: 44px; padding: 0; overflow: hidden; background: var(--surface-2); box-shadow: 0 0 0 1.5px rgba(217, 149, 63, .55); }
.testimonial-mark.has-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

/* =========================================================
   Round 3 (7 Nov 2026): Living-Portrait-style hero, ambient
   background, three shelves, larger preview, unified layout.
   ========================================================= */
:root { --page: 1280px; }

/* ---------- Ambient background: slow drifting warm light ---------- */
body { background: var(--bg-1); }
.ambient { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.ambient .glow { position: absolute; width: 70vmax; height: 70vmax; border-radius: 50%; opacity: .55; will-change: transform; }
.glow-a { left: -20vmax; top: -25vmax; background: radial-gradient(closest-side, rgba(217, 149, 63, .16), transparent); animation: drift-a 46s ease-in-out infinite alternate; }
.glow-b { right: -25vmax; top: 20vh; background: radial-gradient(closest-side, rgba(170, 120, 70, .12), transparent); animation: drift-b 58s ease-in-out infinite alternate; }
.glow-c { left: 20vw; bottom: -40vmax; background: radial-gradient(closest-side, rgba(243, 239, 231, .06), transparent); animation: drift-c 64s ease-in-out infinite alternate; }
@keyframes drift-a { to { transform: translate3d(28vw, 22vh, 0) scale(1.15); } }
@keyframes drift-b { to { transform: translate3d(-30vw, 30vh, 0) scale(.9); } }
@keyframes drift-c { to { transform: translate3d(-18vw, -35vh, 0) scale(1.2); } }
.topbar, main, .footer { position: relative; z-index: 1; }
/* Sections let the light through instead of painting flat walls */
.archive { background-color: rgba(12, 11, 10, .72); }
.tools, .testimonials { background: rgba(23, 22, 20, .55); }
.contact { background: transparent; }
.footer { background: rgba(12, 11, 10, .85); }

/* ---------- Hero: giant name, quiet details ---------- */
.hero-stage {
  position: relative; max-width: calc(var(--page) + 2 * var(--gutter)); margin: 0 auto;
  min-height: calc(100svh - 60px); padding: clamp(40px, 6vh, 80px) var(--gutter) clamp(56px, 8vh, 96px);
  display: grid; grid-template-rows: 1fr auto; align-content: stretch; gap: clamp(32px, 5vh, 64px);
}
.hero-name {
  align-self: center; margin: 0;
  font-size: clamp(60px, 12.4vw, 200px); line-height: .88; letter-spacing: -.055em; font-weight: 760;
  color: var(--text); white-space: nowrap;
}
.hero-name span { display: inline-block; }
.js .hero-name span { animation: rise .9s var(--ease-out) both; }
.js .hero-name span + span { animation-delay: .08s; }
.hero-bottom { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; align-items: end; }
.hero-role { font-size: clamp(28px, 3.2vw, 46px); line-height: 1.05; letter-spacing: -.03em; font-weight: 680; }
.hero-role-sub { margin-top: 6px; font-size: clamp(17px, 1.5vw, 21px); color: var(--amber-text); font-weight: 560; }
.hero-lede { margin-top: 14px; max-width: 48ch; font-size: 16px; line-height: 1.55; color: var(--text-2); }
.hero-cta { display: grid; justify-items: end; gap: 16px; }
.hero-cta .profile-actions { margin: 0; }
.hero-cta .quick-links { margin: 0; }
.hero-scroll {
  position: absolute; left: 50%; bottom: 18px; width: 30px; height: 46px; translate: -50% 0; border-radius: 999px;
  box-shadow: inset 0 0 0 1.5px var(--edge-2);
}
.hero-scroll span { position: absolute; left: 50%; top: 10px; width: 4px; height: 8px; border-radius: 2px; translate: -50% 0; background: var(--amber); animation: scroll-cue 2.2s var(--ease-out) infinite; }
@keyframes scroll-cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Three shelves ---------- */
.archive { padding-top: clamp(80px, 9vw, 120px); }
.archive-head, .shelf-block, .brands { max-width: var(--page); margin-left: auto; margin-right: auto; }
.shelf-block { margin-top: clamp(56px, 7vw, 96px); }
.shelf-block + .shelf-block { padding-top: clamp(48px, 6vw, 80px); box-shadow: inset 0 1px 0 var(--edge); }
.shelf-block-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 24px; }
.shelf-block-head h3 { font-size: clamp(26px, 2.8vw, 38px); line-height: 1.05; letter-spacing: -.03em; font-weight: 680; }
.shelf-block.is-primary .shelf-block-head h3 { font-size: clamp(30px, 3.4vw, 48px); }
.shelf-sub { margin-top: 6px; font-size: 15px; color: var(--muted); }
.shelf-tabs {
  display: flex; gap: 2px; padding: 4px; border-radius: 999px; flex-wrap: wrap;
  background: var(--surface-1); box-shadow: inset 0 0 0 1px var(--edge);
}
.shelf-block .shelf-stage { margin-top: clamp(28px, 3.5vw, 48px); }
.shelf-bar {
  max-width: 860px; margin: -6px auto 0; border-radius: 26px;
  display: grid; grid-template-columns: 48px minmax(0, 1fr) 48px; gap: clamp(12px, 2vw, 24px); align-items: center;
  padding: 16px clamp(14px, 2vw, 22px);
}
.shelf-bar .now-pos { margin-left: 10px; color: var(--muted); font-variant-numeric: tabular-nums; font-weight: 500; }
.shelf-bar h4 { margin: 4px 0 0; font-size: clamp(20px, 2vw, 26px); line-height: 1.15; letter-spacing: -.02em; font-weight: 650; }
.shelf-bar .now-desc { font-size: 15px; }
.shelf-bar .now-facts { margin-top: 10px; }
/* The front sleeve invites a click */
.case[aria-pressed="true"] { cursor: zoom-in; }

/* ---------- Larger preview dialog ---------- */
.details { width: min(1180px, calc(100vw - 32px)); }
.details-inner { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 28px; padding: 16px; }
.details-media { display: grid; place-items: center; background: #0a0908; min-height: 320px; }
.details-media .slot:has(> img) { aspect-ratio: auto; width: 100%; background: transparent; }
.details-media .slot:has(> img) > img { position: static; width: 100%; height: auto; max-height: min(76vh, 760px); object-fit: contain; }
.details-media .slot:has(> img)::after, .details-media .slot:has(> img)::before { display: none; }
.details-video { width: 100%; aspect-ratio: auto !important; background: #000; }
.details-video video { position: static; width: 100%; max-height: 78vh; display: block; }
.details-gallery-controls { width: 100%; }
@media (max-width: 900px) { .details-inner { grid-template-columns: 1fr; } }

/* ---------- Tools: sticky side column + groups ---------- */
.tools-grid { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.tools-side { position: sticky; top: 92px; display: grid; gap: 20px; }
.tools .tools-head { display: block; }
.tools .tools-head p { margin-top: 14px; }
.tools-side .tool-filters { margin: 0; width: auto; flex-wrap: wrap; border-radius: 20px; overflow: visible; }
.tools-side .tool-detail { position: static; min-height: 0; }
.tools-main .tool-groups, .tools-main .tool-groups.is-filtered { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tools-main .tool-group { min-height: 150px; }
@media (max-width: 1000px) {
  .tools-grid { grid-template-columns: 1fr; }
  .tools-side { position: static; }
}
@media (max-width: 640px) {
  .tools-main .tool-groups, .tools-main .tool-groups.is-filtered { grid-template-columns: 1fr; }
}

/* ---------- About: text + three-photo collage ---------- */
.about { max-width: calc(var(--page) + 2 * var(--gutter)); grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; }
.about-photos { grid-template-columns: 1.2fr 1fr; grid-template-rows: auto auto; gap: 14px; }
.about-photo-main { grid-row: 1 / span 2; aspect-ratio: 3 / 4.4; }
.about-photo-a, .about-photo-b { aspect-ratio: 4 / 5; margin-top: 0; }
.about-photo-main img { object-position: 50% 25%; }
@media (max-width: 900px) {
  .about { grid-template-columns: 1fr; }
}

/* ---------- Kind words: same page width as everything else ---------- */
.testimonials-inner { max-width: var(--page); }
.testimonials-head { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; }
.testimonials h2 { font-size: clamp(34px, 5vw, 68px); }
.testimonials-head > p { font-size: 17px; color: var(--text-2); justify-self: end; max-width: 44ch; }
@media (max-width: 760px) { .testimonials-head { grid-template-columns: 1fr; } .testimonials-head > p { justify-self: start; } }

/* ---------- Contact: one clear call to action ---------- */
.contact { padding: clamp(96px, 12vw, 168px) var(--gutter); text-align: center; box-shadow: none; }
.contact::before { background: radial-gradient(40% 60% at 50% 55%, rgba(217, 149, 63, .14), transparent 70%); }
.contact-inner { display: block; max-width: 900px; }
.contact h2 { font-size: clamp(48px, 8vw, 124px); line-height: .92; letter-spacing: -.05em; }
.contact-lede { margin: 22px auto 0; max-width: 46ch; font-size: 18px; }
.contact-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 32px; }
.cta-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border-radius: 999px;
  font-size: 16px; font-weight: 620; text-decoration: none; color: var(--text);
  background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--edge-2);
  transition: background-color .2s var(--ease-out), transform .16s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) { .cta-btn:hover { background: var(--surface-3); } }
.cta-btn:active { transform: scale(.97); }
.cta-primary { background: var(--text); color: var(--ink); box-shadow: none; }
@media (hover: hover) and (pointer: fine) { .cta-primary:hover { background: #fff; } }
.contact-email { margin-top: 18px; font-size: 15px; color: var(--muted); }
.contact-email a { color: var(--text-2); text-underline-offset: .25em; }

/* ---------- Phones ---------- */
@media (max-width: 760px) {
  .hero-stage { min-height: calc(100svh - 56px); }
  .hero-name { font-size: clamp(64px, 23vw, 140px); white-space: normal; line-height: .86; }
  .hero-name span { display: block; }
  .hero-bottom { grid-template-columns: 1fr; }
  .hero-cta { justify-items: start; }
  .hero-scroll { display: none; }
  .shelf-bar { grid-template-columns: 44px minmax(0, 1fr) 44px; border-radius: 24px; padding: 14px 10px; }
  .shelf-block-head { align-items: flex-start; }
  .about-photos { grid-template-columns: 1fr 1fr; }
  .about-photo-main { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 4 / 5; }
}
@media (max-width: 640px) {
  .shelf-bar .now-actions { flex-direction: column; align-items: stretch; }
  .shelf-bar .now-actions .details-open, .shelf-bar .now-actions .details-link { width: 100%; white-space: nowrap; }
  .contact-actions { flex-direction: column; align-items: stretch; max-width: 320px; margin-left: auto; margin-right: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .ambient .glow { animation: none !important; }
}
.shelf-bar .now-pos { white-space: nowrap; display: inline-block; }
/* Small source artwork (e.g. 400px ads) is not stretched past ~1.6x */
.details-media .slot:has(> img) > img { max-width: min(100%, 680px); margin: 0 auto; }

/* Real video samples: keep the glass play mark over the poster */
.case-video .slot:has(> img) .play-glass { display: block; z-index: 4; }

/* =========================================================
   Round 4 (7 Nov 2026): Ivan's recording feedback.
   Bigger sleeves, whole artwork at its true ratio, short info
   bar, muted inline video preview, clearer logo-strip control.
   ========================================================= */

/* Larger sleeves on desktop; Web gets landscape sleeves for its screens */
@media (min-width: 1081px) {
  :root { --cw: 252px; --ch: 372px; --cs: 44px; }
  .shelf-web { --cw: 440px; --ch: 336px; --cs: 40px; }
}
@media (min-width: 761px) and (max-width: 1080px) {
  .shelf-web { --cw: 360px; --ch: 280px; }
}
.shelf-block .shelf-stage { cursor: pointer; }

/* Media fills the sleeve's middle row and is never cropped */
.case .slot, .case .slot-graphic, .case .slot-tall {
  width: 100%; height: 100%; min-height: 0; aspect-ratio: auto; align-self: stretch; border-radius: 4px;
}
.case .slot:has(> img) { background: transparent; }
.case .slot:has(> img)::after, .case .slot:has(> img)::before { display: none; }
.case .slot > img, .case .slot > .inline-preview {
  object-fit: contain; border-radius: 4px;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .35));
}
.case-graphic .slot > img, .case-web .slot > img { filter: drop-shadow(0 8px 14px rgba(40, 30, 20, .22)); }
/* Placeholder cards keep their own shape inside the sleeve */
.case .slot:not(:has(> img)) { align-self: center; height: auto; aspect-ratio: 16 / 10; }
.case .slot-tall:not(:has(> img)) { aspect-ratio: 9 / 16; width: auto; height: 100%; justify-self: center; }
.case .slot-graphic:not(:has(> img)) { aspect-ratio: 4 / 5; width: auto; height: 100%; justify-self: center; }

/* Muted inline preview sits over the poster */
.inline-preview { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 4; pointer-events: none; background: transparent; }
.case .slot:has(> .inline-preview) .play-glass { opacity: 0; }

/* Sleeve foot: smaller code so the media leads */
.sleeve-code { font-size: 34px; }
.case-web .sleeve-code { font-size: 30px; }

/* Info bar: just what's needed to choose; the rest lives in the preview window */
.shelf-bar { max-width: 720px; padding: 12px clamp(12px, 2vw, 18px); }
.shelf-bar .now-desc, .shelf-bar .now-facts, .shelf-bar .now-note { display: none; }
.shelf-bar h4 { font-size: clamp(18px, 1.8vw, 22px); }
.shelf-bar .now-actions { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center; }
.preview-toggle {
  display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px; border: 0; border-radius: 999px; cursor: pointer;
  font: inherit; font-size: 14px; font-weight: 600; color: var(--text);
  background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px var(--edge-2);
  transition: background-color .2s var(--ease-out), transform .16s var(--ease-out);
}
.preview-toggle[hidden] { display: none; }
@media (hover: hover) and (pointer: fine) { .preview-toggle:hover { background: rgba(255, 255, 255, .14); } }
.preview-toggle:active { transform: scale(.97); }
.preview-toggle:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
.pt-icon { position: relative; width: 10px; height: 12px; }
.pt-icon::before, .pt-icon::after { content: ""; position: absolute; top: 0; width: 3px; height: 12px; border-radius: 1px; background: currentColor; }
.pt-icon::before { left: 1px; } .pt-icon::after { right: 1px; }
.preview-toggle[aria-pressed="true"] .pt-icon::before { left: 1px; width: 10px; border-radius: 0; clip-path: polygon(0 0, 100% 50%, 0 100%); }
.preview-toggle[aria-pressed="true"] .pt-icon::after { display: none; }

/* Logo strip: an obvious pause / play control */
.marquee-toggle {
  display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 16px;
  font-size: 14px; color: var(--text); background: rgba(255, 255, 255, .09);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18);
}
.marquee-toggle::before {
  content: ""; width: 10px; height: 12px;
  background: linear-gradient(90deg, currentColor 0 3px, transparent 3px 7px, currentColor 7px 10px);
}
.marquee-toggle[aria-pressed="true"]::before { background: currentColor; clip-path: polygon(0 0, 100% 50%, 0 100%); }
.marquee-toggle:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

/* Phone: larger centred sleeve, same contain rules */
@media (max-width: 760px) {
  :root { --cw: 70vw; --ch: calc(70vw * 1.45); }
  .shelf-web { --cw: 84vw; --ch: calc(84vw * .78); }
  .shelf-bar .now-actions { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .marquee-toggle { display: none; } }

/* =========================================================
   Round 5 (7 Nov 2026): finish Ivan's notes. Contact icons,
   tighter lower sections, single About portrait, quieter
   footer mark, restrained depth. Motion only on contact links.
   ========================================================= */

/* ---------- Depth: a cool counter-light and soft vignette, no texture ---------- */
.ambient::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 45% at 92% 58%, rgba(96, 128, 140, .085), transparent 70%),
    radial-gradient(120% 90% at 50% 40%, transparent 55%, rgba(0, 0, 0, .45) 100%);
}
.archive { background-color: rgba(12, 11, 10, .62); }
.shelf-block .shelf-stage::before {
  content: ""; position: absolute; left: 18%; right: 18%; top: 4%; height: 70%; z-index: -1; pointer-events: none;
  background: radial-gradient(50% 50% at 50% 50%, rgba(217, 149, 63, .1), transparent 72%);
}

/* ---------- Contact links with real marks ---------- */
.link-icon { width: 18px; height: 18px; flex: none; fill: currentColor; }
.quick-links { gap: 8px; }
.quick-links a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px 0 12px; border-radius: 999px;
  text-decoration: none; color: var(--text-2);
  background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px var(--edge);
  transition: color .2s var(--ease-out), background-color .2s var(--ease-out), box-shadow .2s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) { .quick-links a:hover { color: var(--text); background: rgba(255, 255, 255, .09); box-shadow: inset 0 0 0 1px rgba(217, 149, 63, .45); } }
.quick-links a:focus-visible, .cta-btn:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
.cta-btn { gap: 10px; }
.cta-btn .link-icon { width: 20px; height: 20px; }
.cta-primary .link-icon { color: var(--ink); }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .quick-links a .link-icon, .cta-btn .link-icon { transition: transform .22s var(--ease-out); }
  .quick-links a:hover .link-icon, .cta-btn:hover .link-icon { transform: translateY(-2px); }
}

/* ---------- Tighter lower sections ---------- */
.tools { padding-top: clamp(64px, 7vw, 96px); padding-bottom: clamp(64px, 7vw, 96px); }
.tools-main .tool-group { min-height: 0; }
.about { padding-top: clamp(64px, 7vw, 96px); padding-bottom: clamp(64px, 7vw, 96px);
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); align-items: center; }
.about-photos { display: block; justify-self: end; width: min(100%, 400px); }
.about-photo-main { aspect-ratio: 4 / 5; border-radius: 22px; }
.about-photo-main img { object-position: 50% 22%; }
.about-note { margin-top: 22px; }
.testimonials { padding: clamp(52px, 6vw, 76px) var(--gutter) clamp(52px, 6vw, 80px); }
.testimonial-grid { gap: 10px; }
.testimonial-card { gap: 14px; padding: 18px 20px 16px; }
.testimonial-card blockquote { font-size: 15px; line-height: 1.5; }
.contact { padding: clamp(72px, 9vw, 120px) var(--gutter); }
.contact h2 { font-size: clamp(44px, 7vw, 104px); letter-spacing: -.04em; }
.hero-name { letter-spacing: -.04em; }
.sleeve-code { letter-spacing: -.04em; }

/* ---------- Footer: the mark sits compactly ---------- */
.footer-row { padding: 28px var(--gutter) 26px; align-items: center; }
.signature { height: 48px; }

@media (max-width: 900px) {
  .about { grid-template-columns: 1fr; }
  .about-photos { justify-self: start; width: min(100%, 360px); }
}
@media (max-width: 760px) {
  .about-photos { width: 100%; max-width: 420px; }
  .about-photo-main { grid-column: auto; aspect-ratio: 4 / 5; }
  .quick-links { gap: 6px; }
  .footer-row { padding: 24px var(--gutter); }
  .signature { height: 42px; }
}

/* =========================================================
   Round 6 (Claude, 7 Nov 2026): Ivan's screenshot notes.
   Portfolio shelves without counts, sleeves grow into the
   middle, every sleeve stays visible, brand-colour contact
   marks, continuous logo strip, compact lower sections.
   ========================================================= */

/* ---------- Shelf: the middle sleeve grows as it arrives; side spines are the click targets ---------- */
@media (min-width: 761px) {
  .case[aria-pressed="true"] {
    transform: translate3d(var(--x, 0px), -4px, calc(var(--z, 0px) + 24px)) rotateY(var(--ry, 0deg)) scale(1.06);
  }
  .case[aria-pressed="true"]:focus-visible { transform: translate3d(var(--x, 0px), -8px, calc(var(--z, 0px) + 48px)) rotateY(var(--ry, 0deg)) scale(1.1); }
  .case[aria-pressed="false"] .case-front { pointer-events: none; }
  .shelf-block .shelf-stage { height: calc(var(--ch) + 140px); }
}
@media (min-width: 761px) and (hover: hover) and (pointer: fine) {
  .case[aria-pressed="true"]:hover { transform: translate3d(var(--x, 0px), -8px, calc(var(--z, 0px) + 48px)) rotateY(var(--ry, 0deg)) scale(1.1); }
  .case[aria-pressed="false"]:hover .case-spine { box-shadow: inset 0 0 0 100vmax rgba(255, 255, 255, .06), inset 0 0 0 1px rgba(217, 149, 63, .7); }
}
.case[aria-pressed="true"] { transition: transform .6s cubic-bezier(.2, .8, .2, 1), opacity .5s var(--ease-out); }
.case-spine { gap: 0; }
.sleeve-foot { grid-template-columns: minmax(0, 1fr); padding-right: 56px; }
.sleeve-title { font-size: 14px; }
.slot-soon .slot-path { font-size: max(12px, 6cqi); }
.details-yt { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 14px; background: #000; }
.shelf-tabs .filter span { display: none; }

/* ---------- Logo strip: continuous, closer to the work ---------- */
.brands { margin-top: clamp(40px, 5vw, 64px); padding-top: clamp(22px, 3vw, 30px); }
.brand-marquee { margin-top: 16px; }
.brands-note { margin-top: 12px; }
.archive { padding-bottom: clamp(40px, 5vw, 64px); }

/* ---------- Contact marks in brand colours ---------- */
.link-icon { width: 18px; height: 18px; }
.cta-primary .link-icon { color: inherit; }

/* ---------- Tools: one compact filter row; groups get the room ---------- */
.tools { padding-top: clamp(56px, 6vw, 84px); padding-bottom: clamp(56px, 6vw, 84px); }
.tools-grid { grid-template-columns: minmax(0, 320px) minmax(0, 1fr); }
.tools-side { gap: 16px; }
.tools-side .tool-filters {
  flex-wrap: nowrap; width: max-content; max-width: 100%; overflow-x: auto; scrollbar-width: none;
  gap: 0; padding: 3px; border-radius: 999px;
}
.tools-side .tool-filters::-webkit-scrollbar { display: none; }
.tools-side .tool-filter { min-height: 32px; padding: 0 11px; font-size: 13px; white-space: nowrap; }
.tools-side .tool-filter span { display: none; }
.tools-side .tool-detail { padding: 18px 20px; }
.tools-main .tool-groups { gap: 12px; }
.tools-main .tool-group { padding: 18px 20px; }

/* ---------- About: personal, compact ---------- */
.about { padding-top: clamp(56px, 6vw, 84px); padding-bottom: clamp(56px, 6vw, 84px); align-items: start; }
.about h2 { font-size: clamp(40px, 5vw, 72px); }
.about-note { margin-top: 20px; padding: clamp(22px, 2.6vw, 30px); }
.about-lead { max-width: 34ch; }
.about-copy { margin-top: 14px; }
.about-more { margin-top: 20px; }
.about-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.about-tags li {
  padding: 7px 12px; border-radius: 999px; font-size: 14px; color: var(--text);
  background: rgba(217, 149, 63, .1); box-shadow: inset 0 0 0 1px rgba(217, 149, 63, .28);
}
.about-prompts { margin-top: 18px; padding-top: 16px; box-shadow: inset 0 1px 0 var(--edge); font-size: 15px; }
.about-photos { align-self: stretch; display: flex; align-items: flex-end; }
.about-photo-main { width: 100%; }

/* ---------- Kind words: compact, with a quiet arrival ---------- */
.testimonials { padding-top: clamp(48px, 5vw, 72px); padding-bottom: clamp(48px, 5vw, 72px); }
.testimonials-head { align-items: end; }
.testimonials h2 { font-size: clamp(32px, 3.6vw, 48px); }
.testimonial-card { padding: 18px 20px 16px; gap: 14px; }
.testimonial-card blockquote { font-size: 15px; line-height: 1.55; }
.testimonial-card .testimonial-mark.has-photo { width: 40px; height: 40px; }
@media (prefers-reduced-motion: no-preference) {
  .js .testimonial-card.reveal { opacity: 0; transform: translateY(14px); }
  .js .testimonial-card.reveal.is-in {
    opacity: 1; transform: none;
    transition: opacity .6s var(--ease-out), transform .6s cubic-bezier(.2, .8, .2, 1);
    transition-delay: var(--d, 0ms);
  }
}
.testimonial-card::after {
  content: ""; position: absolute; left: 20px; right: 20px; top: 0; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(217, 149, 63, .55), transparent);
  opacity: 0; transition: opacity .3s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) { .testimonial-card:hover::after { opacity: 1; } }

/* ---------- Contact: one compact row ---------- */
.contact { padding-top: clamp(56px, 6vw, 88px); padding-bottom: clamp(56px, 6vw, 88px); text-align: left; }
.contact-inner {
  max-width: var(--page); display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 18px clamp(28px, 5vw, 72px); align-items: center;
}
.contact h2 { grid-column: 1; font-size: clamp(40px, 5.6vw, 84px); line-height: .95; letter-spacing: -.04em; }
.contact-lede { grid-column: 1; margin: 0; max-width: 44ch; font-size: 17px; }
.contact-actions { grid-column: 2; grid-row: 1 / span 2; margin: 0; display: grid; gap: 10px; justify-content: stretch; }
.contact-actions .cta-btn { justify-content: flex-start; min-height: 56px; padding: 0 22px; gap: 12px; }
.contact-actions .cta-btn .link-icon { width: 22px; height: 22px; }
.contact-email { grid-column: 2; margin: 0; }
.contact::before { background: radial-gradient(40% 70% at 75% 50%, rgba(217, 149, 63, .12), transparent 70%); }
.footer-row { padding-top: 26px; padding-bottom: 26px; }

@media (max-width: 900px) {
  .tools-grid { grid-template-columns: 1fr; }
  .contact-inner { grid-template-columns: 1fr; }
  .contact-actions, .contact-email { grid-column: 1; grid-row: auto; }
}
@media (max-width: 760px) {
  .tools-side .tool-filters { width: 100%; }
  .contact { text-align: left; }
  .contact-actions { max-width: none; }
}
.contact-actions { width: 100%; max-width: 400px; justify-self: end; }
.contact-actions li > .cta-btn { display: flex; width: 100%; }
.contact-actions .cta-btn::after {
  content: ""; margin-left: auto; width: 8px; height: 8px; rotate: 45deg; opacity: .55;
  border-top: 2px solid currentColor; border-right: 2px solid currentColor;
  transition: transform .2s var(--ease-out), opacity .2s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) { .contact-actions .cta-btn:hover::after { opacity: 1; transform: translate(2px, -2px); } }
.contact-email { justify-self: end; width: 100%; max-width: 400px; text-align: center; }
@media (min-width: 1001px) { .tools-grid { grid-template-columns: minmax(0, 390px) minmax(0, 1fr); } }
@media (max-width: 900px) { .contact-actions, .contact-email { justify-self: stretch; max-width: none; } }
@media (prefers-reduced-motion: reduce) { .contact-actions .cta-btn::after { transition: none; } }

/* =========================================================
   Round 7 (Claude, 7 Nov 2026): bigger middle sleeve so work
   is easy to watch, background depth in motion, About stats.
   ========================================================= */

/* ---------- Shelf: the middle sleeve is the screen ---------- */
@media (min-width: 761px) {
  .shelf-block { --front-scale: 1.22; }
  .shelf-block .shelf-stage { height: calc(var(--ch) * var(--front-scale) + 120px); }
  .shelf-block .case { top: calc(var(--ch) * (var(--front-scale) - 1) / 2 + 24px); }
  .case[aria-pressed="true"] {
    transform: translate3d(var(--x, 0px), 0, calc(var(--z, 0px) + 30px)) rotateY(var(--ry, 0deg)) scale(var(--front-scale));
  }
  .case[aria-pressed="true"]:focus-visible {
    transform: translate3d(var(--x, 0px), -6px, calc(var(--z, 0px) + 60px)) rotateY(var(--ry, 0deg)) scale(calc(var(--front-scale) * 1.07));
  }
}
@media (min-width: 761px) and (hover: hover) and (pointer: fine) {
  .case[aria-pressed="true"]:hover {
    transform: translate3d(var(--x, 0px), -6px, calc(var(--z, 0px) + 60px)) rotateY(var(--ry, 0deg)) scale(calc(var(--front-scale) * 1.07));
  }
}
/* Arriving in the middle: a smooth grow, slightly slower than the slide so it reads as "coming forward" */
.case[aria-pressed="true"] { transition: transform .75s cubic-bezier(.16, 1, .3, 1), opacity .5s var(--ease-out); }
.shelf-bar { margin-top: 4px; }
@media (max-width: 760px) {
  :root { --cw: 80vw; --ch: calc(80vw * 1.42); }
  .shelf-web { --cw: 88vw; --ch: calc(88vw * .76); }
}

/* ---------- Background depth in motion (inspired by BrewedOps "Aurora ribbons", "Light beams", "Bokeh") ----------
   Three planes drift independently and move at different speeds on scroll (--sy set by script.js).
   Gradients only, no blur filters; transform/opacity animations; all static under reduced motion. */
.amb-layer { position: absolute; inset: -10vh -5vw; will-change: transform; }
.amb-far  { transform: translate3d(0, calc(var(--sy, 0) * -0.04px), 0); }
.amb-mid  { transform: translate3d(0, calc(var(--sy, 0) * -0.1px), 0); }
.amb-near { transform: translate3d(0, calc(var(--sy, 0) * -0.22px), 0); }

.ribbon {
  position: absolute; left: -30vw; width: 160vw; height: 34vh; border-radius: 50%;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 42%, #000 58%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 42%, #000 58%, transparent);
  will-change: transform; opacity: .9;
}
.ribbon-a {
  top: 18vh; rotate: -11deg;
  background: linear-gradient(90deg, transparent 8%, rgba(217, 149, 63, .09) 30%, rgba(232, 176, 106, .15) 48%, rgba(217, 149, 63, .06) 66%, transparent 88%);
  animation: ribbon-a 34s ease-in-out infinite alternate;
}
.ribbon-b {
  top: 62vh; rotate: 8deg;
  background: linear-gradient(90deg, transparent 10%, rgba(96, 128, 140, .07) 34%, rgba(243, 239, 231, .06) 52%, rgba(217, 149, 63, .07) 70%, transparent 90%);
  animation: ribbon-b 46s ease-in-out infinite alternate;
}
@keyframes ribbon-a { 0% { transform: translate3d(-8vw, 0, 0) scaleY(.8); } 50% { transform: translate3d(4vw, 4vh, 0) scaleY(1.35); } 100% { transform: translate3d(10vw, -3vh, 0) scaleY(.95); } }
@keyframes ribbon-b { 0% { transform: translate3d(9vw, 0, 0) scaleY(1.2); } 100% { transform: translate3d(-9vw, -6vh, 0) scaleY(.75); } }

.bokeh {
  position: absolute; border-radius: 50%; will-change: transform, opacity;
  background: radial-gradient(circle, rgba(232, 176, 106, .16) 0 38%, rgba(232, 176, 106, .05) 58%, transparent 70%);
  animation: bokeh-float var(--t, 40s) ease-in-out infinite alternate;
}
.b1 { left: 8vw;  top: 30vh; width: 11vmin; height: 11vmin; --t: 38s; }
.b2 { left: 78vw; top: 18vh; width: 7vmin;  height: 7vmin;  --t: 46s; animation-delay: -12s; }
.b3 { left: 64vw; top: 72vh; width: 14vmin; height: 14vmin; --t: 52s; animation-delay: -20s; opacity: .7; }
.b4 { left: 30vw; top: 86vh; width: 6vmin;  height: 6vmin;  --t: 34s; animation-delay: -6s; }
.b5 { left: 90vw; top: 52vh; width: 9vmin;  height: 9vmin;  --t: 44s; animation-delay: -30s; }
.b6 { left: 44vw; top: 10vh; width: 5vmin;  height: 5vmin;  --t: 40s; animation-delay: -18s; }
@keyframes bokeh-float {
  0%   { transform: translate3d(0, 0, 0) scale(1); opacity: .55; }
  50%  { transform: translate3d(2vw, -6vh, 0) scale(1.15); opacity: 1; }
  100% { transform: translate3d(-1.5vw, -12vh, 0) scale(.9); opacity: .4; }
}

/* Hero: slow projector light sweeping across the name */
.hero-stage { isolation: isolate; }
.hero-beams { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 15%, #000 75%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 15%, #000 75%, transparent); }
.hero-beams i {
  position: absolute; top: -20%; height: 140%; width: 16vw; left: -30vw; rotate: 18deg;
  background: linear-gradient(90deg, transparent, rgba(243, 239, 231, .045) 40%, rgba(232, 176, 106, .07) 50%, rgba(243, 239, 231, .045) 60%, transparent);
  animation: beam-sweep 16s cubic-bezier(.45, 0, .55, 1) infinite;
}
.hero-beams i:nth-child(2) { width: 8vw; animation-duration: 21s; animation-delay: -7s; opacity: .8; }
.hero-beams i:nth-child(3) { width: 24vw; animation-duration: 27s; animation-delay: -15s; opacity: .55; }
@keyframes beam-sweep { 0% { transform: translate3d(0, 0, 0); } 100% { transform: translate3d(160vw, 0, 0); } }

@media (max-width: 760px) {
  .b3, .b5, .b6 { display: none; }
  .ribbon { height: 26vh; }
}
@media (prefers-reduced-motion: reduce) {
  .ribbon, .bokeh, .hero-beams i { animation: none !important; }
  .hero-beams { display: none; }
  .amb-layer { transform: none !important; }
}

/* ---------- About: at-a-glance numbers ---------- */
.about-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 20px; }
.about-stats li {
  padding: 14px 16px 12px; border-radius: 16px;
  background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px var(--edge);
}
.about-stats strong { display: block; font-size: clamp(30px, 3.2vw, 44px); line-height: 1; font-weight: 720; letter-spacing: -.035em; color: var(--text); font-variant-numeric: tabular-nums; }
.about-stats span { display: block; margin-top: 6px; font-size: 14px; color: var(--text-2); }
.about-stats li:first-child strong { color: var(--amber-text); }
@media (max-width: 420px) { .about-stats { gap: 8px; } .about-stats li { padding: 12px; } .about-stats span { font-size: 13px; } }
.bokeh { background: radial-gradient(circle, rgba(232, 176, 106, .085) 0 34%, rgba(232, 176, 106, .03) 56%, transparent 70%); }
.ribbon-a { background: linear-gradient(90deg, transparent 8%, rgba(217, 149, 63, .11) 30%, rgba(232, 176, 106, .18) 48%, rgba(217, 149, 63, .08) 66%, transparent 88%); }
@media (min-width: 901px) {
  .about { align-items: stretch; }
  .about-photos { align-self: stretch; padding-top: calc(clamp(40px, 5vw, 72px) * 1.05 + 20px); }
  .about-photo-main { height: 100%; aspect-ratio: auto; min-height: 420px; }
  .about-photo-main img { object-position: 50% 28%; }
}

/* ===================== Round 9 (Claude): showreel is the hero ===================== */
/* Name sits above the reel at a readable size; the reel plays muted with a Sound on button. */
.hero-stage { grid-template-rows: auto auto auto; align-content: start; gap: clamp(18px, 3vh, 32px); min-height: 0;
  padding-top: clamp(28px, 5vh, 56px); padding-bottom: clamp(56px, 8vh, 88px); }
.hero-name { font-size: clamp(44px, 6.2vw, 104px); align-self: start; }
.reel {
  position: relative; margin: 0; justify-self: center;
  width: min(100%, calc((100svh - 300px) * 16 / 9)); min-width: min(100%, 640px);
  aspect-ratio: 16 / 9; border-radius: 22px; overflow: hidden; background: #0d0c0b;
  box-shadow: 0 0 0 1px var(--edge), 0 40px 100px rgba(0,0,0,.55), 0 0 120px var(--amber-glow);
}
.reel-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.reel-ui { position: absolute; left: 16px; right: 16px; bottom: 16px; display: flex; gap: 8px; align-items: center; pointer-events: none; }
.reel-btn {
  pointer-events: auto; display: inline-flex; align-items: center; gap: 8px; height: 44px; min-width: 44px; padding: 0 14px;
  justify-content: center; border: 0; border-radius: 999px; cursor: pointer;
  background: rgba(20,19,18,.72); color: var(--text); font: inherit; font-size: 15px; font-weight: 650;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px rgba(243,239,231,.14);
  transition: background .2s var(--ease-out), transform .2s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) { .reel-btn:hover { background: rgba(20,19,18,.9); } }
.reel-btn:active { transform: scale(.97); }
.reel-btn:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.reel-sound { background: var(--amber); color: var(--ink); box-shadow: 0 6px 24px rgba(217,149,63,.35); }
@media (hover: hover) and (pointer: fine) { .reel-sound:hover { background: var(--amber-text); } }
.reel-sound[aria-pressed="true"] { background: rgba(20,19,18,.72); color: var(--text); box-shadow: inset 0 0 0 1px rgba(243,239,231,.14); }
.reel-ico { width: 20px; height: 20px; fill: currentColor; flex: none; }
.reel-sound .ico-on, .reel-sound[aria-pressed="true"] .ico-off { display: none; }
.reel-sound[aria-pressed="true"] .ico-on { display: block; }
.reel-play-toggle { padding: 0; width: 44px; margin-left: auto; }
.reel-full { padding: 0; width: 44px; }
.reel-play-toggle .ico-play, .reel.is-paused .reel-play-toggle .ico-pause { display: none; }
.reel.is-paused .reel-play-toggle .ico-play { display: block; }
.reel-cap { position: absolute; top: 14px; right: 16px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700;
  color: rgba(243,239,231,.75); background: rgba(20,19,18,.55); padding: 6px 10px; border-radius: 999px; pointer-events: none; }
@media (max-width: 760px) {
  .hero-stage { min-height: 0; }
  .hero-name { font-size: clamp(40px, 12.5vw, 72px); white-space: nowrap; }
  .reel { width: 100%; min-width: 0; border-radius: 16px; }
  .reel-ui { left: 8px; right: 8px; bottom: 8px; gap: 6px; }
  .reel-btn { height: 34px; min-width: 34px; font-size: 13px; padding: 0 11px; gap: 6px; }
  .reel-ico { width: 17px; height: 17px; }
  .reel-play-toggle, .reel-full { width: 34px; padding: 0; }
  /* bigger tap areas in the top bar without changing its look */
  .topbar nav a:not(.nav-action) { padding-block: 12px; }
  .topbar .wordmark { padding-block: 10px; }
  .reel-cap { display: none; }
}

/* ===================== Round 11 (Claude): compact phone layout =====================
   Ivan's mobile review (7 Nov 2026): things looked oversized. One consistent, tighter scale on phones:
   smaller headings, single-row scrolling filters, smaller cards and controls, less padding. */
@media (max-width: 760px) {
  /* rhythm */
  .archive { padding-top: 48px; padding-bottom: 24px; }
  .tools, .about, .contact { padding-top: 44px; padding-bottom: 44px; }
  .testimonials { padding-top: 36px; padding-bottom: 36px; }
  main section h2, main section > header h2 { font-size: 30px !important; line-height: 1.08; }

  /* hero: name on one line, tighter copy and buttons */
  .hero-stage { gap: 16px; padding-top: 24px; padding-bottom: 44px; }
  .hero-name { font-size: clamp(34px, 10.4vw, 52px) !important; white-space: nowrap !important; line-height: .95; }
  .hero-name span { display: inline-block !important; }
  .hero-role { font-size: 24px; }
  .hero-role-sub { font-size: 15px; margin-top: 4px; }
  .hero-lede { font-size: 15px; margin-top: 10px; }
  .hero-bottom { gap: 16px; }
  .hero-cta { justify-items: start; gap: 12px; }
  .hero-cta .button { height: 42px; padding: 0 18px; font-size: 15px; }
  .quick-links { gap: 8px; }
  .quick-links a { height: 36px; font-size: 14px; padding-inline: 12px; }

  /* filters: one swipeable row instead of wrapping into a big box */
  .shelf-tabs, .tool-filters {
    display: flex !important; flex-wrap: nowrap !important; white-space: nowrap; justify-content: flex-start !important; overflow-x: auto !important;
    width: auto; max-width: 100%; border-radius: 999px !important; scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent);
  }
  .shelf-tabs::-webkit-scrollbar, .tool-filters::-webkit-scrollbar { display: none; }
  .filter, .tool-filter { flex: none; min-height: 32px !important; height: 32px; padding: 0 12px !important; font-size: 13px !important; }

  /* portfolio shelves: smaller cards, compact info panel */
  :root { --cw: 58vw; --ch: calc(58vw * 1.42); }
  .shelf-web { --cw: 76vw; --ch: calc(76vw * .7); }
  .shelf-block-head { gap: 12px; }
  .shelf-block-head h3 { font-size: 22px; }
  .shelf-sub { font-size: 14px; }
  .archive-head p, .archive > header p, .section-lede { font-size: 15px; }
  .shelf-stage { margin-top: 12px; }
  .shelf { padding-bottom: 14px; gap: 10px; }
  .case-front { padding: 10px; gap: 8px; }
  .now, .shelf-bar { grid-template-columns: 36px minmax(0, 1fr) 36px !important; gap: 8px; padding: 12px 10px !important; border-radius: 20px !important; }
  .step { width: 36px; height: 36px; }
  .now-kind { font-size: 12px; }
  .now-title, .now h3, .now h4 { font-size: 17px; line-height: 1.2; }
  .now-actions { gap: 6px; }
  .details-open { min-height: 38px; height: 38px; font-size: 14px; }
  .preview-toggle { min-height: 32px; height: 32px; font-size: 13px; }
  .details-link { min-height: 34px; height: 34px; font-size: 13px; }

  /* tools */
  .tools-head { margin-bottom: 4px; }
  .tools-head p { font-size: 15px; }
  .tool-detail { padding: 14px 16px; }
  .tool-detail h3 { font-size: 20px; }
  .tool-detail-use { font-size: 14px; }
  .tool-groups { gap: 10px; }
  .tool-group { padding: 14px 14px; }
  .badge { font-size: 14px; padding: 3px 12px 3px 3px; gap: 7px; }
  .badge-icon { width: 24px; height: 24px; }

  /* about + contact */
  .about-lead { font-size: 18px; }
  .cta-btn { height: 50px; font-size: 15px; }
}
@media (max-width: 380px) {
  .hero-name { font-size: 33px !important; }
  .hero-cta .button { padding: 0 14px; }
}

/* ===================== Round 12 (Claude): native feel on phones (mobile-native skill) =====================
   All :hover rules above are now gated behind (hover: hover) and (pointer: fine), so a tap never leaves a
   card scaled or a button highlighted. The rest is the platform layer: */
:root { /* keep content clear of the notch / rounded corners in landscape (viewport-fit=cover is set) */
  --gutter: max(clamp(16px, 4.4vw, 56px), env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
}
html { -webkit-tap-highlight-color: transparent; } /* no grey flash on tap; every control has its own :active */
a, button, [role="button"], .case, summary { touch-action: manipulation; } /* no double-tap-zoom wait */
button, .button, .cta-btn, .reel-btn, .filter, .tool-filter, .badge, .step, .case,
.quick-links a, .topbar a, a.contact-row, .details-open, .details-link, .preview-toggle, .gallery-step, .details-close {
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; /* long-press doesn't select control labels */
}
/* horizontal swipe rows: reaching the end doesn't chain into the page or the browser's back-swipe */
.shelf, .shelf-tabs, .tool-filters, .testimonial-grid { overscroll-behavior-x: contain; }
/* press feedback where touch had none */
.case:active .case-front { transform: scale(.985); transition: transform .12s var(--ease-out); }
.quick-links a:active { transform: scale(.97); }
.topbar nav a:active { opacity: .7; }
.footer-row { padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px)); }
/* preview dialog: track the visible area as the URL bar shows/hides */
@supports (height: 100dvh) {
  .details-media .slot:has(> img) > img { max-height: min(76dvh, 760px); }
  .details-video video { max-height: 78dvh; }
}
