/* =====================================================================
   JACOB FOGELHUT — Main site
   Minimal, editorial, roomy. Light + dark. Marker font as an option.
   ===================================================================== */

@font-face {
  font-family: "JacobMarker";
  src: url("fonts/jacob-custom.otf") format("opentype");
  font-display: swap;
}

:root {
  --font-display: "Newsreader", Georgia, serif;
  --font-body: "Schibsted Grotesk", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --font-marker: "JacobMarker", "Newsreader", serif;

  --accent: #9c7a3c;
  --motion: 1;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --maxw: 1100px;
}

[data-theme="light"] {
  --bg: #f6f3ec; --surface: #fffdf8; --surface-2: #ece7db;
  --text: #1b1a16; --muted: #807a6c; --line: #1b1a1614; --line-strong: #1b1a1626;
  --shadow: 0 1px 2px rgba(27,26,22,.04), 0 24px 50px -30px rgba(27,26,22,.3);
}
[data-theme="dark"] {
  --bg: #121110; --surface: #1a1815; --surface-2: #221f1a;
  --text: #efebe1; --muted: #948d7e; --line: #efebe112; --line-strong: #efebe120; --accent: #c79a4e;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 28px 60px -34px rgba(0,0,0,.75);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  transition: background .5s var(--ease), color .5s var(--ease);
  overflow-x: clip;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--accent); color: var(--bg); }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(22px, 6vw, 64px); }
.mono { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.marker-name h1 { font-family: var(--font-marker); }

/* =====================================================================
   HEADER — name hidden at top, fades in on scroll
   ===================================================================== */
.site-head {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  -webkit-backdrop-filter: blur(var(--head-blur, 0px)); backdrop-filter: blur(var(--head-blur, 0px));
  background: color-mix(in srgb, var(--bg) var(--head-tint, 0%), transparent);
  border-bottom: 1px solid transparent;
  transition: border-color .4s var(--ease), background .4s;
}
.site-head.stuck { border-bottom-color: transparent; }
.head-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.head-brand {
  font-family: var(--font-marker); font-size: 22px; font-weight: 400; letter-spacing: .01em;
  white-space: nowrap; opacity: 0; transform: translateY(4px);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.site-head.stuck .head-brand { opacity: 1; transform: none; }
.head-nav { display: flex; align-items: center; gap: clamp(16px, 2.6vw, 30px); }
.head-nav a, .theme-btn {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase;
  color: #fff; background: none; border: 0; transition: color .25s var(--ease);
  text-shadow: 0 1px 8px rgba(0,0,0,.35);
}
.head-nav a:hover, .theme-btn:hover { color: var(--muted); }
.site-head .head-brand { color: #fff; text-shadow: 0 1px 10px rgba(0,0,0,.35); transition: opacity .4s var(--ease), transform .4s var(--ease), color .25s var(--ease); }
.site-head .head-brand:hover { color: var(--muted); }
[data-theme="light"] .site-head:not(.on-vid) .head-nav a, [data-theme="light"] .site-head:not(.on-vid) .theme-btn, [data-theme="light"] .site-head:not(.on-vid) .head-brand { color: #111; text-shadow: none; }
[data-theme="light"] .site-head:not(.on-vid) .head-nav a:hover, [data-theme="light"] .site-head:not(.on-vid) .theme-btn:hover, [data-theme="light"] .site-head:not(.on-vid) .head-brand:hover { color: var(--muted); }
.theme-btn { display: inline-flex; align-items: center; gap: 7px; }
.head-nav a.nav-exe { text-transform: none; letter-spacing: .02em; }
@media (max-width: 560px) { .head-nav { gap: 14px; } .head-nav a, .theme-btn { padding: 13px 0; margin: -13px 0; } .theme-btn { font-size: 0; gap: 0; padding: 13px 4px; } .theme-btn .dot { width: 11px; height: 11px; } .head-brand { min-width: 0; flex-shrink: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } }
.theme-btn .dot { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid currentColor; }

/* =====================================================================
   HERO
   ===================================================================== */
.hero { padding: clamp(110px, 22vh, 240px) 0 clamp(40px, 9vh, 110px); }
.hero h1 {
  font-family: var(--font-marker); font-weight: 400;
  font-size: clamp(54px, 11.5vw, 172px); line-height: 0.98; letter-spacing: 0.01em;
}
.marker-name .hero h1 { letter-spacing: 0; line-height: 0.98; }
.hero-role {
  margin-top: clamp(18px, 3vw, 30px);
  font-family: var(--font-display); font-style: italic; font-weight: 300;
  font-size: clamp(19px, 2.8vw, 32px); color: var(--muted); letter-spacing: -0.01em; min-height: 1.3em;
}

/* =====================================================================
   WORK — one roomy column. Static picture + name. Hover reveals.
   ===================================================================== */
.work { padding: clamp(20px, 4vw, 50px) 0 clamp(40px, 8vw, 90px); }
.work-lead {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; margin-bottom: clamp(26px, 5vw, 54px); color: var(--muted);
}
.work-list { display: flex; flex-direction: column; gap: clamp(40px, 7vw, 96px); }

.item { position: relative; }
/* stacked & wide: cinematic title picture, title + tag underneath (all sizes) */
.item-row {
  display: block; cursor: pointer;
}
.item.open-page .item-row { cursor: default; }

/* the static picture — wide cinematic banner */
.thumb {
  position: relative; overflow: hidden; border-radius: 3px;
  aspect-ratio: 16 / 9; background: var(--surface-2); border: 1px solid var(--line);
}
.thumb img, .thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb .block {
  position: absolute; inset: 0;
  background:
    radial-gradient(130% 100% at 30% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 60%),
    var(--surface-2);
  display: grid; place-items: center;
}
.thumb .block .b-mono { font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* hover reveal: brand name fades in over the picture */
.thumb .reveal {
  position: absolute; inset: 0; z-index: 2; display: grid; place-items: center;
  pointer-events: none; /* let hover reach the cycling images beneath so they cycle */
  background: linear-gradient(0deg, color-mix(in srgb, var(--accent) 30%, transparent), color-mix(in srgb, #000 18%, transparent));
  color: var(--accent); opacity: 0; transition: opacity .45s var(--ease);
}
.item-row:hover .thumb .reveal { opacity: 1; }
.thumb .reveal .b-name {
  font-family: var(--font-marker); font-weight: 400; font-size: clamp(26px, 3.2vw, 40px);
  letter-spacing: .01em; transform: translateY(8px); transition: transform .45s var(--ease); text-align: center; padding: 0 14px;
}
.item-row:hover .thumb .reveal .b-name { transform: none; }
.thumb img.zoom, .thumb video.zoom { transition: transform .9s var(--ease); }
.item-row:hover .thumb img.zoom, .item-row:hover .thumb video.zoom { transform: scale(1.03); }

/* when a hover video is present, let it show through — brand name to the
   bottom, no heavy wash covering the playing clip */
.thumb:has(.thumb-video) .reveal {
  background: linear-gradient(0deg, rgba(0,0,0,.5), transparent 55%);
  align-items: end; justify-items: start; padding: 0;
}
.thumb:has(.thumb-video) .reveal .b-name { padding: 14px 16px; text-align: left; }
.thumb-video { background: #000; }

/* ---- clickable tag chips ---- */
.tag-btn { cursor: pointer; border: 1px solid var(--line-strong); background: transparent; color: var(--muted);
  transition: color .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease); }
.tag-btn:hover { color: var(--accent); border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.pp-card .tag-btn { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.28); color: #fff; }
.pp-card .tag-btn:hover { background: #fff; color: #111; border-color: #fff; }

.tv-extra { margin-top: clamp(26px,4vw,40px); padding-top: 18px; border-top: 1px solid var(--line); }
.tv-extra > .mono { color: var(--muted); }
.tv-extra-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.tv-ext {
  display: inline-flex; align-items: baseline; gap: 10px; padding: 9px 14px;
  border: 1px solid var(--line-strong); border-radius: 100px; color: var(--text);
  transition: border-color .25s var(--ease), color .25s var(--ease);
}
.tv-ext:hover { border-color: var(--accent); color: var(--accent); }
.tv-ext b { font-family: var(--font-display); font-weight: 400; font-size: 15px; }
.tv-ext .mono { font-size: 9.5px; color: var(--muted); }

/* ---- facet row: the one way into the tag system ---- */
.facets { display: flex; flex-wrap: wrap; gap: 8px; margin: -14px 0 clamp(26px,4vw,44px); }
.tv-jump { display: flex; flex-wrap: wrap; gap: 8px; margin: -12px 0 clamp(22px,4vw,38px); }
.facet {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 13px;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); background: transparent; border: 1px solid var(--line-strong); border-radius: 100px;
  transition: color .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease);
}
.facet i { font-style: normal; font-size: 9.5px; letter-spacing: .06em; opacity: .65; }
.facet:hover { color: var(--accent); border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.facet.on { color: var(--bg); background: var(--text); border-color: var(--text); }
.facet.on:hover { color: var(--bg); background: var(--text); border-color: var(--text); }
.work-active { color: var(--accent) !important; }
.tagview-grid .tv-card { animation: tvin .45s var(--ease) both; }
@keyframes tvin { from { opacity: 0; transform: translateY(14px); } }
@media (prefers-reduced-motion: reduce) { .tagview-grid .tv-card { animation: none; } }

/* ---- tag filter gallery overlay ---- */
/* above .pp (200) — a tag opened from inside a project must cover it */
.tagview { position: fixed; inset: 0; z-index: 260; overflow-y: auto; background: color-mix(in srgb, var(--bg) 30%, rgba(0,0,0,.62)); backdrop-filter: blur(14px); animation: fade .3s var(--ease); }
@keyframes fade { from { opacity: 0; } }
.tagview-inner { max-width: 1100px; margin: 0 auto; padding: clamp(24px,6vw,64px) clamp(20px,5vw,56px) 100px; cursor: auto; }
.tagview-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: clamp(24px,5vw,44px); }
.tv-h-l { display: flex; flex-direction: column; gap: 6px; }
.tv-h-l .mono { color: var(--muted); }
.tagview-head h2 { font-size: clamp(40px,8vw,92px); line-height: .9; letter-spacing: .01em; color: var(--text); }
.tv-count { color: var(--accent) !important; }
.tagview-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: clamp(18px,3vw,32px); }
.tv-card { background: none; border: 0; padding: 0; text-align: left; cursor: pointer; color: inherit; display: flex; flex-direction: column; gap: 12px; }
.tv-media { border-radius: 4px; overflow: hidden; }
.tv-card .tv-cap b { font-size: clamp(20px,2.4vw,28px); line-height: 1.05; display: block; }
.tv-card .tv-cap .mono { color: var(--muted); font-size: 11px; margin-top: 6px; display: block; }
.tv-card:hover .tv-cap b { color: var(--accent); }

/* ---- row hover modes (Tweak: rowHover) ---- */
/* WASH — row fills with an accent tint, title shifts to accent, in-thumb brand reveals */
.work-list[data-hover="wash"] .item-row {
  transition: background .4s var(--ease);
  border-radius: 0;
}
.work-list[data-hover="wash"] .item-row:hover {
  background: linear-gradient(to bottom,
    color-mix(in srgb, var(--accent) 12%, transparent) 0%,
    color-mix(in srgb, var(--accent) 12%, transparent) 84%,
    transparent 100%);
}
.work-list[data-hover="wash"] .item-name { transition: color .4s var(--ease); }
.work-list[data-hover="wash"] .item-row:hover .item-name { color: var(--accent); }

/* SCRIBBLE — a hand-drawn marker underline sweeps under the title */
.work-list[data-hover="scribble"] .item-name { position: relative; display: inline-block; }
.work-list[data-hover="scribble"] .item-name::after {
  content: ""; position: absolute; left: -2%; right: -2%; bottom: -.07em; height: .12em;
  background: var(--accent); border-radius: 3px;
  transform: rotate(-1.4deg) scaleX(0); transform-origin: left center;
  transition: transform .42s var(--ease);
}
.work-list[data-hover="scribble"] .item-row:hover .item-name::after { transform: rotate(-1.4deg) scaleX(1); }

/* name + meta — sits UNDER the picture */
.item-name {
  margin-top: clamp(14px, 1.8vw, 22px);
  font-family: var(--font-display); font-weight: 400; font-size: clamp(28px, 4.6vw, 56px);
  line-height: 1.0; letter-spacing: -0.02em;
}
.marker-name .item-name { font-family: var(--font-marker); letter-spacing: 0; }
.item-sub {
  margin-top: 12px; display: inline-flex; align-items: center; gap: 12px; color: var(--muted);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase;
}

/* inline expanded detail — height animated by the Collapse component */
.collapse { will-change: height; }
.detail-pad { padding-top: clamp(20px, 3vw, 34px); }
.detail-inner {
  display: grid; grid-template-columns: 1fr; gap: 18px;
  padding: clamp(20px, 3vw, 30px); background: var(--surface); border: 1px solid var(--line); border-radius: 6px;
}
/* detail header: prev/next + close (#2/#3) */
.detail-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dh-nav { display: flex; align-items: center; gap: 8px; }
.dh-arrow, .dh-close {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-strong);
  background: var(--surface-2); color: var(--text); display: grid; place-items: center;
  transition: background .25s var(--ease), color .25s var(--ease), transform .3s var(--ease), border-color .25s;
}
.dh-arrow:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.dh-close:hover { background: var(--accent); color: #fff; border-color: var(--accent); transform: rotate(90deg); }
.dh-stepped { color: var(--muted); margin-left: 4px; }
.dh-back {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); background: none; border: 0; padding: 6px 0; transition: color .25s var(--ease);
}
.dh-back:hover { color: var(--accent); }
/* media area: ~30% smaller + centered (#5); Instagram ~half (#5) */
.detail-media {
  background: var(--surface-2); border-radius: 4px; overflow: hidden; min-height: 120px;
  display: grid; place-items: center; width: 70%; max-width: 680px; margin-inline: auto;
}
.detail-media.is-ig { width: auto; max-width: 340px; background: transparent; }
.detail-media iframe { width: 100%; border: 0; display: block; }
.detail-media video { width: 100%; display: block; }
.detail-media .block { position: relative; aspect-ratio: 5/4; width: 100%; }
/* opened project hero still — honors the Media-Manager crop; click closes (#3).
   Wider/rectangular 3:2 for the opened picture only (#6). */
.po-still { position: relative; width: 100%; aspect-ratio: 3/2; overflow: hidden; border-radius: 4px; }
.po-still .cropimg { width: 100%; height: 100%; }
.po-still.clickable { cursor: zoom-out; }
.po-still.clickable::after {
  content: "✕ close"; position: absolute; top: 12px; right: 12px; z-index: 2;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  color: #fff; background: rgba(20,16,10,.55); padding: 6px 10px; border-radius: 999px;
  opacity: 0; transition: opacity .25s var(--ease); pointer-events: none;
}
.po-still.clickable:hover::after { opacity: 1; }
.detail-meta h4 { font-family: var(--font-display); font-weight: 400; font-size: 24px; letter-spacing: -0.01em; }
.detail-meta .d-role { color: var(--muted); margin-top: 8px; font-size: 14.5px; }
.d-tags { margin-top: 14px; display: flex; gap: 8px; flex-wrap: wrap; }
.d-tag, .d-stat {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 100px; border: 1px solid var(--line-strong); color: var(--muted);
}
.d-stat { background: var(--accent); color: #fff; border-color: var(--accent); }
.pp-tags .d-tags { margin-top: 0; }
.detail-out {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 16px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .05em; text-transform: uppercase; color: var(--text);
  padding-bottom: 4px; border-bottom: 1px solid var(--line-strong); transition: border-color .3s, gap .3s;
}
.detail-out:hover { border-color: var(--accent); gap: 14px; color: var(--accent); }

/* brand mode: list of pieces inside the detail */
.brand-pieces { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.bp {
  text-align: left; background: var(--surface-2); border: 1px solid var(--line); border-radius: 5px; overflow: hidden; padding: 0;
}
.bp .bp-media { aspect-ratio: 5/4; background: var(--surface-2); position: relative; }
.bp .bp-media .block { position: absolute; inset: 0; }
.bp .bp-cap { padding: 11px 12px 13px; }
.bp .bp-cap b { font-family: var(--font-display); font-weight: 400; font-size: 16px; display: block; letter-spacing: -0.01em; }
.bp .bp-cap span { color: var(--muted); font-size: 12px; }

/* =====================================================================
   FULL-PAGE OPEN (overlay)
   ===================================================================== */
/* the list behind the open page dims + recedes (anchors the shrink-back close) */
.site-behind { filter: brightness(0.6) saturate(0.9); transform: scale(0.985); transition: filter .5s var(--ease), transform .5s var(--ease); pointer-events: none; }

.pp { position: fixed; inset: 0; z-index: 200; overflow: hidden; }
/* background photo — full bleed; FLIP target for the zoom open/close */
.pp-bg { position: absolute; inset: 0; overflow: hidden; will-change: transform; backface-visibility: hidden; }
.pp-bg-inner { position: absolute; inset: -16%; will-change: transform; filter: blur(var(--pp-blur, 0px)); transform: translateZ(0); }
.pp-bg-inner .cropimg { width: 100%; height: 100%; object-fit: cover; }
/* cross-fading background layers (title pictures cycle every 8s) */
.pp-bg-layer { position: absolute; inset: 0; opacity: 0; transition: opacity 2.2s ease; }
.pp-bg-layer .cropimg { width: 100%; height: 100%; object-fit: cover; }
.pp-bg-fallback { width: 100%; height: 100%; background: linear-gradient(150deg, var(--accent), color-mix(in srgb, var(--accent) 40%, #2a2622)); }
.pp-bg-scrim {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(10,8,6,calc(var(--pp-dim,0) * 0.5)), rgba(10,8,6,calc(var(--pp-dim,0) * 0.95))),
    radial-gradient(120% 80% at 50% 0%, transparent, rgba(10,8,6,calc(var(--pp-dim,0) * 0.4)));
}

/* close button */
.pp-x {
  position: fixed; top: clamp(16px, 3vw, 30px); right: clamp(16px, 3vw, 30px); z-index: 210;
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.35);
  backdrop-filter: blur(8px); transition: transform .3s var(--ease), background .3s;
}
.pp-x:hover { background: var(--accent); border-color: var(--accent); transform: rotate(90deg); }

/* scroll layer (transparent) — click on empty area closes */
.pp-scroll { position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden; cursor: zoom-out; }
.pp-deadzone { height: 46vh; }
@media (max-width: 720px) { .pp-deadzone { height: 30vh; } }

/* content rides DIRECTLY on the blurred photo — no box. Two legibility modes
   (Tweak): "gradient" darkens the photo behind the text column; "scrim" leans
   on a soft dark glow behind the words + a touch more global dim. */
.pp-card {
  cursor: auto; position: relative; z-index: 2;
  width: min(980px, 92vw); margin: 0 auto clamp(40px, 9vw, 120px);
  padding: clamp(28px, 4vw, 56px) clamp(22px, 4vw, 56px) clamp(34px, 5vw, 70px);
  color: #fff;
}
/* soft-fade mode: a wide, blurred, feathered vignette dissolves the text
   column into the photo — no perceptible edge or rectangle */
.pp-text-gradient .pp-card::before {
  content: ""; position: absolute; inset: -9vh -16% -11vh; z-index: -1; pointer-events: none;
  background: radial-gradient(135% 115% at 50% 42%, rgba(8,7,6,.6) 0%, rgba(8,7,6,.48) 32%, rgba(8,7,6,.26) 56%, rgba(8,7,6,.09) 78%, rgba(8,7,6,0) 100%);
  filter: blur(10px);
}
/* pure-glow mode: NO backdrop panel at all — words rely on their own shadow +
   the global bottom scrim, so nothing reads as a box */
.pp-text-scrim .pp-card { text-shadow: 0 2px 26px rgba(0,0,0,.92), 0 1px 5px rgba(0,0,0,.82), 0 0 64px rgba(0,0,0,.5); }
.pp-text-scrim .pp-card::before { content: none; }
.pp-text-scrim .pp-bg-scrim { background:
    linear-gradient(to bottom, rgba(10,8,6,calc(var(--pp-dim,0) * 0.6 + .16)), rgba(10,8,6,calc(var(--pp-dim,0) * 0.95 + .28))); }

.pp-card .chip { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.28); color: #fff; }
.pp-eyebrow { color: #fff; opacity: .85; margin-bottom: 12px; }
.pp-title { font-size: clamp(44px, 8vw, 88px); line-height: .95; letter-spacing: .01em; text-align: center; }
.pp-role { color: rgba(255,255,255,.82); margin-top: 12px; font-size: 15px; }
.pp-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.pp-blurb { margin-top: 24px; font-size: clamp(16px, 1.7vw, 19px); line-height: 1.65; color: rgba(255,255,255,.95); max-width: 62ch; text-wrap: pretty; }
.pp-media { margin-top: 30px; border-radius: 6px; overflow: hidden; background: rgba(0,0,0,.25); display: grid; place-items: center; box-shadow: 0 20px 60px -24px rgba(0,0,0,.7); }
.pp-media.is-ig { max-width: 360px; margin-inline: auto; background: transparent; box-shadow: none; }
.pp-media iframe, .pp-media video { width: 100%; border: 0; display: block; }
.pp-media-label { color: rgba(255,255,255,.72); margin-bottom: 10px; }
.yt-frame { position: relative; width: 100%; aspect-ratio: 16/9; }
.yt-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
/* blend mode: media rides on the photo with no dark frame / shadow */
.pp-blend .pp-media { background: transparent; box-shadow: none; }
.pp-blend .pp-media video { border-radius: 6px; box-shadow: 0 24px 60px -30px rgba(0,0,0,.6); }
.pp-card .detail-out { margin-top: 18px; color: #fff; }
.pp-gallery { margin-top: 38px; border-top: 1px solid rgba(255,255,255,.22); padding-top: 26px; }
.pp-sec { color: rgba(255,255,255,.8); margin-bottom: 14px; }
.pp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.pp-shot { aspect-ratio: 4/5; border-radius: 5px; overflow: hidden; background: rgba(0,0,0,.25); padding: 0; border: 0; cursor: zoom-in; display: block; width: 100%; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.pp-shot:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -22px rgba(0,0,0,.8); }
.pp-shot .cropimg { width: 100%; height: 100%; }
.pp-group { margin-top: 38px; border-top: 1px solid rgba(255,255,255,.22); padding-top: 26px; }
.pp-vidgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.pp-vidthumb { position: relative; aspect-ratio: 4/5; border-radius: 5px; overflow: hidden; background: rgba(0,0,0,.35); padding: 0; border: 0; cursor: pointer; display: block; width: 100%; transition: transform .3s var(--ease, ease); }
.pp-vidthumb:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -22px rgba(0,0,0,.8); }
.pp-vidthumb img, .pp-vidthumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.pp-vidthumb-fallback { width: 100%; height: 100%; background: rgba(255,255,255,.08); display: grid; place-items: center; font-family: var(--font-mono, monospace); font-size: 13px; letter-spacing: .04em; color: rgba(255,255,255,.55); }
.pp-play-sm { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; filter: drop-shadow(0 2px 8px rgba(0,0,0,.6)); }
.pp-play-sm svg { width: 30px; height: 30px; }
.pp-vidthumb.is-active, .pp-shot.is-active { outline: 2px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 5px rgba(255,255,255,.18); }
.pp-mainplayer-wrap { margin-top: 30px; }
.pp-mainplayer { position: relative; width: 100%; border-radius: 6px; overflow: hidden; background: rgba(0,0,0,.25); display: block; padding: 0; border: 0; box-shadow: 0 20px 60px -24px rgba(0,0,0,.7); }
.pp-mainplayer-video, .pp-mainplayer-photo { aspect-ratio: 16/9; cursor: zoom-in; }
.pp-mainplayer-photo .cropimg { width: 100%; height: 100%; }
.pp-mainplayer-video video, .pp-mainplayer-video .cropimg { width: 100%; height: 100%; object-fit: cover; display: block; }
.pp-mainplayer-ctl { position: absolute; right: 14px; bottom: 14px; display: flex; gap: 8px; z-index: 2; }
.pp-mainplayer-ctl button { width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(0,0,0,.55); color: #fff; display: grid; place-items: center; backdrop-filter: blur(4px); }
.pp-mainplayer-ctl button:hover { background: rgba(0,0,0,.75); }
.pp-mainplayer-embed { padding: 0; background: transparent; box-shadow: none; max-width: 360px; margin-inline: auto; cursor: default; }
.pp-mainplayer-embed iframe, .pp-mainplayer-embed video { width: 100%; border: 0; display: block; }

/* clickable video preview (opens the lightbox) */
.pp-video-preview { position: relative; display: block; width: 100%; padding: 0; border: 0; cursor: pointer; background: #000; border-radius: 6px; overflow: hidden; aspect-ratio: 16/9; }
.pp-video-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pp-video-fallback { width: 100%; height: 100%; background: linear-gradient(150deg, var(--accent), color-mix(in srgb, var(--accent) 40%, #2a2622)); }
.pp-play {
  position: absolute; inset: 0; margin: auto; width: 64px; height: 64px; border-radius: 50%;
  display: grid; place-items: center; color: #fff; background: rgba(0,0,0,.42);
  border: 1.5px solid rgba(255,255,255,.7); backdrop-filter: blur(4px);
  transition: transform .3s var(--ease), background .3s;
}
.pp-video-preview:hover .pp-play { transform: scale(1.08); background: var(--accent); border-color: var(--accent); }
/* inline player (plays in place on the project page) */
.pp-inline-video { width: 100%; aspect-ratio: 16/9; display: block; background: #000; border-radius: 6px; }
/* autoplaying, cover-cropped project-page video with a small custom control bar */
.pp-autovideo { position: relative; width: 100%; aspect-ratio: 16/9; border-radius: 6px; overflow: hidden; background: #000; }
.pp-autovideo .cropbox { border-radius: 6px; }
.pp-autov-ctl { position: absolute; left: 10px; bottom: 10px; z-index: 3; display: flex; gap: 7px; }
.pp-autov-ctl button {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  color: #fff; background: rgba(0,0,0,.5); border: 1px solid rgba(255,255,255,.4);
  backdrop-filter: blur(6px); cursor: pointer; transition: background .2s, transform .2s;
}
.pp-autov-ctl button:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-1px); }

/* lightbox */
.lb {
  position: fixed; inset: 0; z-index: 400; display: grid; place-items: center;
  background: rgba(6,5,4,.92); backdrop-filter: blur(6px); cursor: zoom-out;
  animation: lbIn .28s var(--ease) both;
}
@keyframes lbIn { from { opacity: 0; } to { opacity: 1; } }
.lb-stage { width: 100vw; height: 100vh; cursor: auto; display: grid; place-items: center; }
.lb-media { width: 100vw; height: 100vh; object-fit: cover; border-radius: 0; box-shadow: none; }
.lb-x {
  position: fixed; top: clamp(16px,3vw,30px); right: clamp(16px,3vw,30px); z-index: 410;
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.35);
  backdrop-filter: blur(8px); cursor: pointer; transition: transform .3s var(--ease), background .3s;
}
.lb-x:hover { background: var(--accent); border-color: var(--accent); transform: rotate(90deg); }
.lb-nav {
  position: fixed; top: 50%; transform: translateY(-50%); z-index: 410;
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.3);
  backdrop-filter: blur(8px); cursor: pointer; transition: background .3s var(--ease), transform .3s;
}
.lb-nav:hover { background: var(--accent); border-color: var(--accent); }
.lb-prev { left: clamp(12px,3vw,32px); }
.lb-next { right: clamp(12px,3vw,32px); }
.lb-prev:hover { transform: translateY(-50%) translateX(-2px); }
.lb-next:hover { transform: translateY(-50%) translateX(2px); }
@media (max-width: 720px) { .lb-nav { width: 42px; height: 42px; } }
.pp-foot { margin-top: 32px; color: rgba(255,255,255,.7); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; text-align: center; }

/* full-mode list row shows an arrow instead of the +/collapse */
.item.is-full .item-row { cursor: pointer; }
.row-arrow { color: var(--muted); display: inline-grid; place-items: center; transition: transform .3s var(--ease), color .3s; }
.item.is-full .item-row:hover .row-arrow { color: var(--accent); transform: translateX(4px); }

@media (prefers-reduced-motion: reduce) { .site-behind { transition: none; } }

/* =====================================================================
   PLAYGROUND TEASER — marker sign ⇄ polaroid collage
   ===================================================================== */
.teaser { padding: clamp(40px, 8vw, 90px) 0; text-align: center; }
.teaser-mono { color: var(--muted); margin-bottom: 28px; }
.teaser-link { display: inline-block; color: inherit; }

/* --- polaroid collage --- */
.tcollage { position: relative; display: inline-flex; align-items: center; justify-content: center; padding: 34px 20px 44px; }
.tcollage-stack { display: inline-flex; }
.tpola {
  width: clamp(116px, 15vw, 172px); background: #fbf9f4; padding: 9px 9px 26px; border-radius: 2px;
  box-shadow: 0 14px 30px -14px rgba(0,0,0,.5); border: 1px solid rgba(0,0,0,.06);
  transform: rotate(var(--r)); margin-left: -38px; transition: transform .5s var(--ease); position: relative; z-index: 1;
}
.tpola:first-child { margin-left: 0; }
.tpola:nth-child(even) { margin-top: 18px; }
.tpola-img { aspect-ratio: 4/5; overflow: hidden; background: var(--surface-2); }
.tpola-img .cropimg { width: 100%; height: 100%; }
.tpola-empty {
  display: block; width: 100%; height: 100%;
  background: radial-gradient(120% 100% at 30% 0%, color-mix(in srgb, var(--accent) 22%, transparent), #d8cfbf);
}
.teaser-link.is-collage:hover .tpola { transform: rotate(var(--r)) translateY(-8px); }
.teaser-link.is-collage:hover .tpola:nth-child(odd) { transform: rotate(calc(var(--r) - 3deg)) translateY(-8px); }
.tcollage-word {
  position: absolute; bottom: -2px; left: 50%; transform: translateX(-50%) rotate(-3deg);
  font-size: clamp(34px, 5.5vw, 62px); line-height: 1; color: var(--text); z-index: 3;
  text-shadow: 0 2px 14px var(--bg), 0 0 2px var(--bg);
}
.teaser-hint { text-align: center; color: var(--muted); margin-top: 22px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; }

/* =====================================================================
   CONTACT + FOOTER
   ===================================================================== */
.contact { border-top: 1px solid var(--line); padding: clamp(60px, 13vw, 150px) 0 clamp(40px, 8vw, 80px); text-align: center; }
.contact h2 {
  font-family: var(--font-display); font-weight: 400; font-size: clamp(34px, 7vw, 96px);
  line-height: 0.95; letter-spacing: -0.03em;
}
.marker-name .contact h2 { font-family: var(--font-marker); letter-spacing: 0; }
.contact-btn {
  display: inline-flex; align-items: center; gap: 12px; margin-top: clamp(26px, 5vw, 44px);
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  background: var(--text); color: var(--bg); border: 0; border-radius: 100px; padding: 16px 28px;
  white-space: nowrap;
  transition: gap .3s var(--ease), transform .3s var(--ease);
}
.contact-btn:hover { gap: 18px; transform: translateY(-2px); }

.foot {
  border-top: 1px solid var(--line); padding: 26px 0 42px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.foot .f-name { font-family: var(--font-marker); font-size: 26px; letter-spacing: .01em; }
.foot .f-year { color: var(--muted); }

/* =====================================================================
   MOTION LAYER
   ===================================================================== */
.serif { font-family: var(--font-display); }
.hero-h1, .marker-name .hero-h1 { font-family: var(--font-marker); }

/* --- inline open "feels" (inner entrance; Collapse drives height) --- */
.collapse-inner { transition: opacity .5s var(--ease), transform .55s var(--ease), clip-path .55s var(--ease); }
.feel-accordion { opacity: .2; }
.feel-accordion.open { opacity: 1; }
.feel-lift { opacity: 0; transform: translateY(14px) scale(.985); transform-origin: top center; }
.feel-lift.open { opacity: 1; transform: none; }
.feel-morph { opacity: 0; clip-path: inset(0 0 100% 0); }
.feel-morph.open { opacity: 1; clip-path: inset(0 0 0 0); }
.feel-fade { opacity: 0; transition: opacity .4s var(--ease); }
.feel-fade.open { opacity: 1; }

/* --- plus / x morph with spin --- */
.item-sub .plus {
  display: inline-grid; place-items: center; width: 1.1em; height: 1.1em;
  transition: transform .4s var(--ease), color .3s var(--ease); font-weight: 400;
}
.item-row:hover .item-sub .plus { transform: rotate(90deg); color: var(--accent); }
.item-sub .plus.x { transform: rotate(135deg); color: var(--accent); }
.item-row:hover .item-sub .plus.x { transform: rotate(225deg); }
.item-sub .plus.page { transform: none; }
.item-row:hover .item-sub .plus.page { transform: translate(2px, -2px); color: var(--accent); }

/* --- chip stagger pop-in --- */
@keyframes chipPop { from { opacity: 0; transform: translateY(8px) scale(.96); } }
.chip { animation: chipPop .5s var(--ease) both; animation-delay: calc(var(--ci, 0) * 55ms + 60ms); }

/* --- scroll reveal --- */
.reveal-up { opacity: 0; transform: translateY(calc(20px * var(--motion, .45) + 6px)); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal-up.in { opacity: 1; transform: none; }

/* =====================================================================
   INSTAGRAM — real embed inline, live mini-embed as the rail tile
   ===================================================================== */
.ig-embed { border-radius: 6px; overflow: hidden; background: #fff; }
.ig-embed iframe { display: block; width: 100%; border: 0; }
[data-theme="dark"] .ig-embed { filter: brightness(.9) saturate(.96); }

/* rail tile: the embed is scaled up and clipped so the post's media fills the
   4/5 tile; .igtile-hit sits on top because an iframe swallows clicks. */
.igtile { position: absolute; inset: 0; overflow: hidden; background: #fff; }
/* 620px was tuned for /embed/captioned/; the plain embed is shorter, so
   centring on 620 landed the crop on the likes/comment strip instead of the
   post's media. 500 puts the centre back inside the image. */
.igtile iframe { position: absolute; top: 50%; left: 50%; width: 340px; height: 500px; border: 0; transform: translate(-50%, -50%) scale(.62); transform-origin: center; pointer-events: none; }
.igtile-hit { position: absolute; inset: 0; z-index: 2; cursor: pointer; }
.igtile-fallback { position: absolute; inset: 0; }
.igtile-fallback .cropwrap, .igtile-fallback img { width: 100%; height: 100%; }
.igtile-badge { position: absolute; bottom: 7px; right: 7px; z-index: 3; width: 22px; height: 22px; border-radius: 5px; background: rgba(0,0,0,.6); display: grid; place-items: center; color: #fff; }
.igtile-badge svg { width: 13px; height: 13px; }
.pp-vidthumb-fallback svg { width: 26px; height: 26px; color: rgba(255,255,255,.6); }

/* fullscreen affordance on the main player */
.pp-expand { position: absolute; top: 10px; right: 10px; z-index: 3; display: flex; align-items: center; gap: 6px; padding: 6px 9px; border-radius: 5px; background: rgba(0,0,0,.5); backdrop-filter: blur(6px); color: #fff; opacity: 0; transition: opacity .2s var(--ease); pointer-events: none; }
.pp-expand em { font-style: normal; font-family: var(--font-mono, monospace); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; max-width: 0; overflow: hidden; white-space: nowrap; transition: max-width .28s var(--ease); }
.pp-mainplayer:hover .pp-expand { opacity: 1; }
.pp-mainplayer:hover .pp-expand em { max-width: 80px; }
.pp-mainplayer-video, .pp-mainplayer-photo { cursor: zoom-in; }
.lb-hint { position: absolute; bottom: 22px; left: 0; right: 0; text-align: center; font-size: 11px; letter-spacing: .1em; color: rgba(255,255,255,.42); pointer-events: none; }

/* BOOT — first-visit loading gate
   ===================================================================== */
.boot { position: fixed; inset: 0; z-index: 400; background: #0a0a0a; display: grid; place-items: center; transition: opacity .5s var(--ease); }
.boot.out { opacity: 0; pointer-events: none; }
.boot-inner { text-align: center; padding: 0 5vw; }
.boot-name {
  font-family: var(--font-marker); font-weight: 400; color: #fff;
  font-size: clamp(40px, 9vw, 120px); line-height: .98; letter-spacing: .01em;
  animation: bootFade .8s var(--ease) both;
}
.boot-pct {
  margin-top: clamp(14px, 2.5vw, 26px); font-family: var(--font-marker);
  color: rgba(255,255,255,.62); font-size: clamp(20px, 3vw, 34px); letter-spacing: .04em;
  font-variant-numeric: tabular-nums; animation: bootFade 1s .15s var(--ease) both;
}
@keyframes bootFade { from { opacity: 0; transform: translateY(8px); } }
.no-anim .boot-name, .no-anim .boot-pct { animation: none !important; opacity: 1 !important; transform: none !important; }

/* --- hover video catching up: the photo just dims and holds --- */
.vws-still { transition: opacity .32s var(--ease), filter .3s var(--ease); }
.vws-still.is-waiting { filter: brightness(.82); }
.thumb-video.is-waiting { filter: brightness(.82); }

/* --- cover-cropped photos: blur-up as each file arrives --- */
.cropfade { opacity: 0; filter: blur(14px); transition: opacity .45s var(--ease), filter .7s var(--ease); }
.cropfade.is-on { opacity: 1; filter: none; }
.no-anim .cropfade { opacity: 1 !important; filter: none !important; }

/* --- blur-up images --- */
.blurup { filter: blur(16px); transform: scale(1.05); transition: filter .8s var(--ease), transform .8s var(--ease); }
.blurup.loaded { filter: none; transform: none; }
.blurup.zoom.loaded { transition: filter .8s var(--ease), transform .9s var(--ease); }
.item-row:hover .thumb .blurup.zoom.loaded { transform: scale(1.03); }

/* --- magnetic buttons --- */
.magnetic { transition: transform .3s var(--ease), gap .3s var(--ease), background .3s var(--ease); will-change: transform; }

/* --- cursor-follow thumbnail --- */
.cursor-thumb {
  position: fixed; top: 0; left: 0; z-index: 95; width: 168px; pointer-events: none;
  opacity: 0; transition: opacity .35s var(--ease); will-change: transform;
}
.cursor-thumb.on { opacity: 1; }
.cursor-thumb .ct-inner {
  border-radius: 4px; overflow: hidden; background: var(--surface-2);
  border: 1px solid var(--line-strong); box-shadow: var(--shadow);
}
.cursor-thumb .ct-img { aspect-ratio: 5/4; }
.cursor-thumb .ct-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cursor-thumb .ct-img .ct-block {
  display: block; width: 100%; height: 100%;
  background: radial-gradient(130% 100% at 30% 0%, color-mix(in srgb, var(--accent) 26%, transparent), var(--surface-2));
}
.cursor-thumb .ct-name {
  font-family: var(--font-marker); font-size: 20px; text-align: center;
  padding: 7px 10px 9px; color: var(--text); line-height: 1;
}

/* (full-page nav/crossfade styles removed — superseded by .pp ProjectPage) */

/* =====================================================================
   INTRO
   ===================================================================== */
.intro {
  position: fixed; inset: 0; z-index: 300; background: var(--bg);
  display: grid; place-items: center; overflow: hidden;
  transition: opacity .5s var(--ease); pointer-events: none;
}
.intro.out { opacity: 0; }
/* The site stays hidden until both the boot gate and the intro are done.
   It used to be permanently visible with the overlays fading over it, which
   left one unpainted frame between Boot unmounting and Intro mounting — long
   enough to flash the top of the page. */
.site { opacity: 1; }
.site.pre { opacity: 0; }
.site.go { opacity: 1; transition: opacity .45s var(--ease); }
.intro-stage { position: relative; width: 100%; height: 100%; display: grid; place-items: center; }
.intro-frames, .intro-hero { position: absolute; inset: 0; }
.intro-frame, .intro-hero > * , .if-img, .if-block { position: absolute; inset: 0; width: 100%; height: 100%; }
.intro-frame { opacity: 0; }
.intro-frame.show { opacity: 1; }
.if-img { object-fit: cover; }
.if-block { display: block; }
.intro-veil { position: absolute; inset: 0; background: linear-gradient(0deg, color-mix(in srgb, #000 42%, transparent), color-mix(in srgb, #000 18%, transparent)); }
.intro-name {
  position: relative; z-index: 2; font-family: var(--font-marker); font-weight: 400;
  color: #fff; font-size: clamp(48px, 13vw, 180px); line-height: .96; text-align: center;
  letter-spacing: .01em; text-shadow: 0 4px 40px rgba(0,0,0,.45); padding: 0 4vw;
}
.intro-markerDraw .intro-name, .intro-stage.plain .intro-name { color: var(--text); text-shadow: none; }
/* hero slam */
.intro-heroSlam .intro-hero { animation: heroIn 1.6s var(--ease) both; }
@keyframes heroIn { from { transform: scale(1.14); } }
.intro-name.slam { animation: stampIn .5s var(--ease) both; }
@keyframes stampIn { 0% { opacity: 0; transform: scale(1.5); } 60% { opacity: 1; } 100% { transform: scale(1); } }
/* marker draw-on */
.intro-name.draw {
  animation: drawOn 1.4s var(--ease) both;
  -webkit-mask-image: linear-gradient(90deg, #000 0 0); mask-image: linear-gradient(90deg, #000 0 0);
}
@keyframes drawOn {
  from { clip-path: inset(0 100% 0 0); opacity: .2; }
  to { clip-path: inset(0 0 0 0); opacity: 1; }
}

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 720px) {
  .item-row { gap: 12px; }
  .head-nav { gap: 14px; }
  .detail-media { width: 100%; max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* fallback when CSS animation/transition is unavailable (disabled/frozen):
   force every from-hidden element to its visible end-state. */
.no-anim .reveal-up,
.no-anim .collapse-inner,
.no-anim .chip { opacity: 1 !important; transform: none !important; clip-path: none !important; animation: none !important; }
.no-anim .blurup { filter: none !important; }

/* =====================================================================
   PERSISTENT RADIO — bottom player bar + popup + visualizer
   (lives in the SPA shell so it persists across main ⇄ playground)
   ===================================================================== */
.pbar {
  position: fixed; z-index: 9000; left: 0; right: 0; bottom: 0;
  will-change: transform;
  display: grid; grid-template-columns: 56px minmax(140px, 1fr) minmax(90px, 200px) auto;
  align-items: center; gap: clamp(10px, 1.6vw, 20px);
  padding: 10px clamp(12px, 2.4vw, 26px);
  background: #1b1a16; color: #f4efe6;
  border-top: 2px solid color-mix(in srgb, var(--vc, #d98324) 60%, #1b1a16);
  box-shadow: 0 -12px 34px -18px rgba(0,0,0,.7);
}
.pbar.is-float {
  left: 50%; right: auto; bottom: 16px; transform: translateX(-50%);
  width: min(940px, 94vw); border: 2px solid color-mix(in srgb, var(--vc,#d98324) 55%, #1b1a16);
  border-radius: 14px; box-shadow: 0 20px 50px -20px rgba(0,0,0,.7);
}
.pbar-cover { position: relative; width: 56px; height: 56px; border-radius: 6px; overflow: hidden; background: transparent; display: grid; place-items: center; }
.pbar-cover img { width: 100%; height: 100%; object-fit: cover; }
.pbar-glyph { font-size: 24px; color: var(--vc, #d98324); }
.pbar-info { min-width: 0; }
.pbar-title { font-family: var(--font-display); font-size: clamp(15px, 1.8vw, 19px); line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pbar-meta { font-size: 10px; letter-spacing: .04em; color: #b3aa9a; margin-top: 3px; display: flex; gap: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pbar-pl { color: var(--vc, #d98324); }
.pbar-seek, .pbar-vol { -webkit-appearance: none; appearance: none; height: 4px; border-radius: 3px; background: #45413a; cursor: pointer; }
.pbar-seek { width: 100%; margin-top: 8px; background: linear-gradient(to right, var(--vc,#d98324) var(--pct,0%), #45413a var(--pct,0%)); }
.pbar-vol { width: 72px; }
.pbar-seek::-webkit-slider-thumb, .pbar-vol::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; border-radius: 50%; background: var(--vc,#d98324); }
.pbar-seek::-moz-range-thumb, .pbar-vol::-moz-range-thumb { width: 12px; height: 12px; border: 0; border-radius: 50%; background: var(--vc,#d98324); }
.pbar-viz { height: 38px; min-width: 80px; opacity: .9; }
@media (max-width: 760px) { .pbar { grid-template-columns: 48px 1fr auto; } .pbar-viz { display: none; } }
.pbar-ctrls { display: flex; align-items: center; gap: 6px; }
.pb-ic, .pb-play {
  -webkit-appearance: none; appearance: none; cursor: pointer;
  background: transparent; color: #f4efe6; border: 0; border-radius: 7px;
  display: grid; place-items: center; font-size: 15px; line-height: 1; text-decoration: none;
  width: 34px; height: 34px; transition: background .2s, color .2s, transform .15s;
}
.pb-ic:hover { background: rgba(255,255,255,.12); color: var(--vc,#d98324); }
.pb-ic:disabled { opacity: .3; cursor: default; }
.pb-play { width: 42px; height: 42px; border-radius: 50%; background: var(--vc,#d98324); color: #1b1a16; font-size: 14px; }
.pb-play:hover { transform: scale(1.06); }
.pb-play:disabled { opacity: .35; cursor: default; }
.pb-x:hover { background: rgba(255,90,70,.22); color: #ff7a64; }
/* desktop bar: the viz sits on the exact centre line, controls share one icon set */
.pbar-desk { --lcd: #39d353; grid-template-columns: 56px minmax(0,1fr) auto; }
.pbar-desk .pbar-vol::-webkit-slider-thumb { background: var(--lcd); }
.pbar-desk .pbar-vol::-moz-range-thumb { background: var(--lcd); }
.pbar-desk .pbar-vol:hover::-webkit-slider-thumb { background: #fff; }
.pbar-desk .pbar-vol:hover::-moz-range-thumb { background: #fff; }
.pbar-desk .pbar-vol { width: 64px; }
.pbar-title { text-transform: uppercase; }
.pbar-right { display: flex; align-items: center; gap: clamp(12px, 2vw, 22px); min-width: 0; }
.pbar-aux { display: flex; align-items: center; gap: 6px; }
/* every control green at rest, white on hover */
.pbd-ic, .pbd-play { -webkit-appearance: none; appearance: none; display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--lcd); cursor: pointer; transition: color .2s, background .2s, box-shadow .2s, transform .15s; }
.pbd-ic:hover { color: #fff; background: rgba(255,255,255,.08); }
.pbd-play { width: 40px; height: 40px; box-shadow: inset 0 0 0 2px var(--lcd); }
.pbd-play:hover { color: #fff; box-shadow: inset 0 0 0 2px #fff; transform: scale(1.05); }
.pbd-play:disabled { opacity: .35; cursor: default; transform: none; }
.pbar-desk .pb-x:hover { color: #fff; background: rgba(255,255,255,.08); }
@media (max-width: 760px) { .pbar-desk { grid-template-columns: 44px minmax(0,1fr) auto; } .pbar-desk .pbar-cover { width: 44px; height: 44px; } .pbar-desk .pbar-vol { display: none; } }

/* popup */
.rpop-scrim { position: fixed; inset: 0; z-index: 180; background: rgba(14,11,8,.6); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 20px; animation: fade .25s; }
.rpop {
  position: relative; width: min(620px, 94vw); background: #1b1a16; color: #f4efe6;
  border: 2px solid color-mix(in srgb, var(--vc,#d98324) 55%, #1b1a16); border-radius: 16px;
  padding: 20px; box-shadow: 0 30px 70px -24px rgba(0,0,0,.7); animation: pop .3s cubic-bezier(.2,.7,.2,1);
}
.rpop-x { position: absolute; top: 12px; right: 12px; z-index: 2; width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #f4efe6; cursor: pointer; font-size: 13px; }
.rpop-x:hover { background: var(--vc,#d98324); color: #1b1a16; }
.rpop-viz { height: clamp(200px, 34vh, 300px); border-radius: 12px; background: radial-gradient(120% 120% at 50% 30%, #211f1a, #15140f); overflow: hidden; }
.rpop-foot { display: flex; align-items: center; gap: 14px; margin-top: 16px; }
.rpop-cover { width: 54px; height: 54px; border-radius: 8px; overflow: hidden; background: #2a2822; display: grid; place-items: center; color: var(--vc,#d98324); font-size: 24px; flex: 0 0 auto; }
.rpop-cover img { width: 100%; height: 100%; object-fit: cover; }
.rpop-txt { min-width: 0; flex: 1; }
.rpop-title { font-family: var(--font-display); font-size: clamp(19px, 2.6vw, 26px); line-height: 1.05; }
.rpop-sub { font-size: 10px; letter-spacing: .06em; color: var(--vc,#d98324); margin-top: 5px; }
.rpop-link { color: #f4efe6; text-decoration: none; font-family: var(--font-mono); font-size: 11px; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; padding: 7px 13px; white-space: nowrap; }
.rpop-link:hover { background: var(--vc,#d98324); color: #1b1a16; border-color: var(--vc,#d98324); }
.rpop-embed { margin-top: 16px; }
.rpop-embed iframe { width: 100%; border: 0; border-radius: 10px; display: block; }
.rpop-note { margin-top: 8px; font-size: 9.5px; letter-spacing: .05em; color: #8f8678; text-align: center; }

/* =====================================================================
   TITLE-PICTURE CROSS-FADE (CyclingStill)
   ===================================================================== */
.cyc { position: absolute; inset: 0; }
.cyc-layer { position: absolute; inset: 0; transition: opacity .6s var(--ease); }
.cyc-layer .cropimg { width: 100%; height: 100%; object-fit: cover; display: block; }
.cyc-dots {
  position: absolute; left: 0; right: 0; bottom: 9px; z-index: 2;
  display: flex; gap: 5px; justify-content: center;
  opacity: 0; transition: opacity .35s var(--ease); pointer-events: none;
}
.item-row:hover .cyc-dots { opacity: 1; }
.cyc-dots i {
  width: 5px; height: 5px; border-radius: 50%; background: rgba(255,255,255,.5);
  box-shadow: 0 1px 3px rgba(0,0,0,.4); transition: background .3s, transform .3s;
}
.cyc-dots i.on { background: #fff; transform: scale(1.35); }
@media (prefers-reduced-motion: reduce) { .cyc-layer { transition: none; } }

/* video card resting on title #1, cross-fading to the hover-loop video */
.vws { position: absolute; inset: 0; }
.vws-layer { position: absolute; inset: 0; transition: opacity .6s var(--ease); }
.vws-still .cropbox, .vws-still .cropimg { width: 100%; height: 100%; }
.vws-video-wrap { width: 100%; height: 100%; }
@media (prefers-reduced-motion: reduce) { .vws-layer { transition: none; } }

/* title-picture strip on the opened project (gallery of stills up top) */
.pp-stills {
  margin-top: 28px; display: grid; gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}
.pp-still { aspect-ratio: 16/9; border-radius: 5px; overflow: hidden; background: rgba(0,0,0,.25); box-shadow: 0 14px 40px -22px rgba(0,0,0,.7); }
.pp-still .cropimg { width: 100%; height: 100%; }
.pp-media-label {
  color: rgba(255,255,255,.82); font-size: 10px; letter-spacing: .1em; text-transform: uppercase;
  margin-bottom: 10px; text-align: left;
}
.pp-media { position: relative; }
.pp-media .pp-media-label { background: none; }

/* =====================================================================
   ON-PAGE MEDIA EDIT LAYER (workspace only — hidden on the published site)
   ===================================================================== */
.edit-media-btn {
  position: absolute; top: 8px; left: 8px; z-index: 5;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .06em;
  background: color-mix(in srgb, var(--text) 82%, transparent); color: var(--bg);
  border: 0; border-radius: 100px; padding: 5px 11px;
  opacity: 0; transform: translateY(-3px); transition: opacity .25s var(--ease), transform .25s var(--ease), background .2s;
  backdrop-filter: blur(6px);
}
.item:hover .edit-media-btn { opacity: .92; transform: none; }
.edit-media-btn:hover { opacity: 1; background: var(--accent); }

/* drag-to-reorder grip (workspace only) */
.row-drag-grip {
  position: absolute; top: 8px; right: 8px; z-index: 6; width: 28px; height: 28px;
  display: grid; place-items: center; border-radius: 6px; font-size: 15px; line-height: 1;
  color: var(--muted); background: var(--surface-2); border: 1px solid var(--line-strong);
  cursor: grab; opacity: 0; transition: opacity .2s, background .2s, color .2s;
  touch-action: none;
}
.item:hover .row-drag-grip { opacity: .85; }
.row-drag-grip:hover { opacity: 1; background: var(--accent); color: #fff; }
.row-drag-grip:active { cursor: grabbing; }
.item.is-dragging { opacity: .55; }
.item.is-dragging .item-row { cursor: grabbing; }

.medit {
  position: fixed; inset: 0; z-index: 9500; display: grid; place-items: center;
  padding: 28px; background: rgba(20,18,16,.55); backdrop-filter: blur(4px);
}
@media (prefers-reduced-motion: no-preference) {
  html:not(.no-anim) .medit { animation: meditIn .2s var(--ease); }
}
@keyframes meditIn { from { opacity: 0; } to { opacity: 1; } }
.medit-card {
  width: min(760px, 100%); max-height: 88vh; overflow: auto;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 12px;
  box-shadow: var(--shadow); padding: clamp(18px, 3vw, 26px);
}
.medit-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.medit-title { display: flex; align-items: baseline; gap: 12px; }
.medit-title b { font-family: var(--font-display); font-weight: 500; font-size: 21px; }
.medit-title span { font-size: 11px; letter-spacing: .06em; color: var(--muted); text-transform: uppercase; }
.medit-x {
  width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line-strong);
  background: var(--surface-2); color: var(--text); font-size: 13px; display: grid; place-items: center;
  transition: background .2s, transform .25s var(--ease);
}
.medit-x:hover { background: var(--accent); color: #fff; border-color: var(--accent); transform: rotate(90deg); }
.medit-note {
  margin: 12px 0 8px; font-size: 10.5px; line-height: 1.6; letter-spacing: .03em;
  color: var(--muted); background: var(--surface-2); border-radius: 8px; padding: 9px 12px;
}
.medit-rowblk { margin-top: 18px; }
.medit-rowblk-h { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.medit-rowblk-h b { font-size: 14px; }
.medit-rowblk-h span { font-size: 10px; letter-spacing: .05em; color: var(--muted); text-transform: uppercase; }
.medit-cells { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 14px 12px; }
.medit-cell { position: relative; padding-bottom: 30px; border-radius: 8px; transition: transform .18s var(--ease); }
.medit-cell image-slot { display: block; width: 100%; }
.medit-cell.is-drag { opacity: .5; }
.medit-cell.is-target { box-shadow: 0 0 0 2px var(--accent); border-radius: 8px; }
.medit-grip {
  position: absolute; top: 6px; left: 6px; z-index: 4; cursor: grab;
  width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--text) 70%, transparent); color: var(--bg);
  font-size: 12px; line-height: 1; touch-action: none; user-select: none;
  opacity: 0; transition: opacity .2s;
}
.medit-cell:hover .medit-grip { opacity: 1; }
.medit-grip:active { cursor: grabbing; }
.medit-num {
  position: absolute; top: 6px; right: 8px; z-index: 4; font-size: 10px;
  color: var(--bg); background: color-mix(in srgb, var(--text) 55%, transparent);
  border-radius: 5px; padding: 1px 6px; pointer-events: none;
}
.medit-mm { display: inline-block; margin-top: 22px; font-size: 11px; letter-spacing: .05em; color: var(--accent); }
.medit-mm:hover { text-decoration: underline; }

/* ---- editor: info fields ---- */
.medit-info { display: flex; flex-direction: column; gap: 16px; margin: 18px 0 6px; }
.medit-field { display: flex; flex-direction: column; gap: 7px; }
.medit-lbl { font-size: 13px; color: var(--text); }
.medit-lbl .mono { font-size: 9.5px; letter-spacing: .05em; color: var(--muted); text-transform: uppercase; }
.medit-input {
  width: 100%; font: inherit; font-size: 14px; color: var(--text);
  background: var(--surface-2); border: 1px solid var(--line-strong); border-radius: 8px; padding: 9px 12px;
}
.medit-input:focus { outline: none; border-color: var(--accent); }
textarea.medit-input { resize: vertical; line-height: 1.5; }
.medit-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.medit-chip {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px; letter-spacing: .02em;
  padding: 5px 8px 5px 12px; border-radius: 100px; background: color-mix(in srgb, var(--accent) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); color: var(--text);
}
.medit-chip button { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 11px; line-height: 1; padding: 2px; }
.medit-chip button:hover { color: var(--accent); }
.medit-chip-add { display: flex; gap: 8px; }
.medit-chip-add input {
  flex: 1; font: inherit; font-size: 13px; color: var(--text);
  background: var(--surface-2); border: 1px solid var(--line-strong); border-radius: 8px; padding: 8px 11px;
}
.medit-chip-add input:focus { outline: none; border-color: var(--accent); }
.medit-btn {
  font: inherit; font-size: 12px; letter-spacing: .03em; cursor: pointer; white-space: nowrap;
  background: var(--text); color: var(--bg); border: 0; border-radius: 8px; padding: 8px 14px;
}
.medit-btn:hover { background: var(--accent); }

/* ---- editor: video ---- */
.medit-vtypes { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.medit-seg {
  font: inherit; font-size: 11.5px; letter-spacing: .02em; cursor: pointer;
  background: var(--surface-2); color: var(--muted); border: 1px solid var(--line-strong); border-radius: 100px; padding: 6px 12px;
}
.medit-seg.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.medit-drop {
  border: 1.5px dashed var(--line-strong); border-radius: 10px; background: var(--surface-2);
  padding: 18px; text-align: center; margin-bottom: 10px;
}
.medit-drop-in { display: block; cursor: pointer; font-size: 12.5px; color: var(--muted); }
.medit-drop:hover { border-color: var(--accent); }
.medit-err { color: #c0392b; font-size: 11px; margin: 6px 0; }
.medit-trim { margin-top: 10px; display: flex; flex-direction: column; gap: 10px; }
/* ---- editor: video crop on the card ---- */
.medit-covermode { display: flex; align-items: center; gap: 8px; margin: 6px 0 12px; flex-wrap: wrap; }
.medit-covermode .mono { font-size: 9.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-right: 2px; }
.medit-vrow { border: 1px solid var(--line); border-radius: 10px; padding: 12px; margin-bottom: 12px; background: var(--surface-2); }
.medit-vrow.is-cover { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.medit-vrow-top { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.medit-cover-pick { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--text); white-space: nowrap; cursor: pointer; }
.medit-cover-pick input { accent-color: var(--accent); }
.medit-vlabel { flex: 1; min-width: 0; font: inherit; font-size: 13px; color: var(--text); background: var(--bg); border: 1px solid var(--line-strong); border-radius: 7px; padding: 6px 9px; }
.medit-vlabel:focus { outline: none; border-color: var(--accent); }
.medit-vremove { width: 26px; height: 26px; border-radius: 7px; border: 1px solid var(--line-strong); background: var(--bg); color: var(--muted); cursor: pointer; line-height: 1; }
.medit-vremove:hover { background: #c0392b; color: #fff; border-color: #c0392b; }
.medit-addvid { align-self: flex-start; }
.medit-vcrop { margin-top: 12px; display: flex; flex-direction: column; gap: 9px; }
.medit-vcrop-box {
  position: relative; width: 100%; aspect-ratio: 16/9; overflow: hidden;
  border-radius: 8px; background: #000; cursor: grab; touch-action: none;
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.medit-vcrop-box:active { cursor: grabbing; }
.medit-vcrop-ctl { display: flex; align-items: center; gap: 10px; }
.medit-vcrop-ctl input[type="range"] { flex: 1; accent-color: var(--accent); }
.medit-vcrop-ctl .mono { font-size: 9.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.medit-trim video { width: 100%; max-height: 240px; border-radius: 8px; background: #000; display: block; }
.trim-track { position: relative; height: 26px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line-strong); }
.trim-range { position: absolute; top: 0; bottom: 0; background: color-mix(in srgb, var(--accent) 32%, transparent); border-left: 2px solid var(--accent); border-right: 2px solid var(--accent); }
.trim-h { position: absolute; top: 50%; width: 14px; height: 34px; transform: translate(-50%, -50%); border-radius: 4px; background: var(--accent); cursor: ew-resize; box-shadow: 0 2px 6px rgba(0,0,0,.3); touch-action: none; }
.trim-h::after { content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: 2px; height: 14px; background: rgba(255,255,255,.7); border-radius: 2px; }
.trim-row { display: flex; align-items: center; gap: 12px; }
.trim-row .mono { font-size: 10.5px; color: var(--muted); letter-spacing: .04em; }

/* =====================================================================
   BROWSER-WINDOW TEASER  ·  INLINE BLURB LINKS  ·  CONTACT PAGE
   ===================================================================== */
.twin{width:min(680px,92vw);text-align:left;background:var(--surface);border:1px solid var(--line-strong);border-radius:9px;box-shadow:var(--shadow);overflow:hidden;transition:transform .45s var(--ease),box-shadow .45s var(--ease)}
.teaser-link.is-window:hover .twin{transform:translateY(-4px)}
.twin-bar{display:flex;align-items:center;gap:12px;padding:10px 14px;border-bottom:1px solid var(--line)}
.twin-dots{display:flex;gap:6px}
.twin-dots i{width:9px;height:9px;border-radius:50%;border:1.5px solid color-mix(in srgb,var(--text) 45%,transparent)}
.twin-name{color:var(--text);letter-spacing:.06em;text-transform:none}
.twin-body{display:flex;flex-direction:column;gap:22px;padding:clamp(22px,4vw,38px) clamp(18px,4vw,34px) clamp(16px,3vw,24px)}
.twin-icons{display:grid;grid-template-columns:repeat(auto-fit,minmax(112px,1fr));gap:18px}
.twin-ic{display:flex;flex-direction:column;align-items:center;gap:8px;color:var(--text)}
.twin-ic svg{width:34px;height:34px;color:var(--accent)}
.twin-ic em{font-style:normal;font-family:var(--font-mono);font-size:10.5px;letter-spacing:.06em;color:var(--muted);text-align:center}
.twin-open{color:var(--accent);letter-spacing:.12em}
.inlink{color:var(--text);text-decoration:underline;text-decoration-color:color-mix(in srgb,var(--accent) 60%,transparent);text-underline-offset:3px;text-decoration-thickness:1px;transition:color .2s var(--ease)}
.inlink:hover{color:var(--accent)}
.inlink.hl{color:var(--accent);text-decoration-color:currentColor}.inlink.hl:hover{color:var(--text)}
.fontcard .inlink.hl{color:#ffd98a;text-decoration-color:currentColor}.fontcard .inlink.hl:hover{color:#fff}
.cpage{min-height:100vh;display:flex;flex-direction:column;padding-bottom:96px}
.cpage-head{position:sticky;top:0}
@media (max-width:860px){.cpage-head{position:relative}}
.cpage-brand{opacity:1;transform:none}
.cpage-here{color:var(--accent);letter-spacing:.06em}
.cpage-body{flex:1;padding-top:clamp(18px,4vw,40px);padding-bottom:clamp(40px,8vw,80px)}
.cpage-title{font-size:clamp(46px,9vw,110px);line-height:.92;margin:0 0 clamp(28px,5vw,54px)}
.cpage-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,.65fr);gap:clamp(28px,6vw,72px);align-items:start}
@media (max-width:860px){.cpage-grid{grid-template-columns:minmax(0,1fr)}}
@media (max-width:560px){.cpage-head .head-inner{height:auto;flex-wrap:wrap;gap:8px;padding:12px 0}.cpage-head .head-nav{gap:14px}.cpage-title{font-size:clamp(40px,13vw,64px)}.cside-mail,.cside-list a{font-size:19px}}
.cform{display:flex;flex-direction:column;gap:18px}
.cf-row{display:flex;flex-direction:column;gap:7px}
.cf-row>.mono{color:var(--muted)}
.cf-row input,.cf-row textarea{font-family:var(--font-body,inherit);font-size:16px;color:var(--text);background:var(--surface);border:1px solid var(--line-strong);border-radius:6px;padding:12px 13px;width:100%;transition:border-color .2s var(--ease)}
.cf-row textarea{resize:vertical;min-height:130px;line-height:1.5}
.cf-row input:focus,.cf-row textarea:focus{outline:none;border-color:var(--accent)}
.cf-send{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin-top:4px}
.cf-btn{font-family:var(--font-mono);font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:var(--bg);background:var(--text);border:0;border-radius:999px;padding:14px 30px;cursor:pointer;transition:transform .25s var(--ease),opacity .25s var(--ease)}
.cf-btn:hover{transform:translateY(-2px)}
.cf-btn:disabled{opacity:.5;transform:none}
.cf-note{color:var(--accent)}
.cf-note.bad{color:#b1472f}
.cside{display:flex;flex-direction:column;gap:14px}
.cside-mail{font-family:var(--font-marker);font-size:22px;letter-spacing:.01em;color:var(--text);text-decoration:underline;text-underline-offset:3px;text-decoration-color:color-mix(in srgb,var(--accent) 55%,transparent);word-break:break-all}
.cside-mail:hover{color:var(--accent)}
.cside-list{list-style:none;margin:10px 0 0;padding:0;display:flex;flex-direction:column;gap:2px}
.cside-list a{display:flex;align-items:center;gap:12px;padding:12px 2px;border-top:1px solid var(--line);color:var(--text);font-family:var(--font-marker);font-size:22px;letter-spacing:.01em}
.cside-list li:last-child a{border-bottom:1px solid var(--line)}
.cside-list a:hover{color:var(--accent)}
.cside-list img{opacity:.85}
.cside-list em{margin-left:auto;font-style:normal;color:var(--muted)}

/* =====================================================================
   HERO MONTAGE · MINI LIVE DESKTOP · PROJECT HEADER VIDEO
   ===================================================================== */
.hero{position:relative;isolation:isolate}
.hero-vid{position:absolute;top:0;bottom:calc(-1 * var(--hv-extend,0px));left:50%;width:100vw;transform:translateX(-50%);z-index:-1;overflow:hidden;pointer-events:none}
.hero-vid video{position:absolute;inset:-6%;width:112%;height:112%;object-fit:cover}
.hero-vid::after{content:"";position:absolute;inset:0;background:linear-gradient(to bottom,color-mix(in srgb,var(--hv-wc,var(--bg)) var(--hv-wash,55%),transparent) 0%,color-mix(in srgb,var(--hv-wc,var(--bg)) var(--hv-wash,55%),transparent) var(--hv-fade-at,55%),var(--hv-fc,var(--bg)) 100%)}
.teaser-top{padding-top:0}
.mdw{position:relative;width:100%;padding:0 1px 1px;background:#0831d9;cursor:pointer;text-align:left;-webkit-user-select:none;user-select:none;box-shadow:0 18px 40px -22px rgba(0,0,0,.45);transition:transform .45s var(--ease),box-shadow .45s var(--ease)}
.mdw:hover{transform:translateY(-5px);box-shadow:0 30px 60px -24px rgba(0,0,0,.55)}
.mdw:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.mdw-bar{height:30px;display:flex;align-items:center;gap:6px;padding:0 3px 0 8px;margin:0 -1px;background:linear-gradient(180deg,#0997ff 0%,#0053ee 8%,#0050ee 40%,#06f 88%,#06f 93%,#005bff 95%,#003dd7 96%,#003dd7 100%);color:#fff}
.mdw-title{flex:1;min-width:0;font-family:var(--font-body);font-weight:700;font-size:13px;letter-spacing:.01em;text-shadow:1px 1px 0 #0f1089;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mdw-x{width:22px;height:22px;padding:0;display:grid;place-items:center;border-radius:3px;border:1px solid #fff;color:#fff;cursor:default;background:radial-gradient(circle at 90% 90%,#cc4600 0%,#dc6527 55%,#cd7546 70%,#ffccb2 90%,#fff 100%);box-shadow:inset 0 -1px 2px 1px #da4600}
.mdw-x:hover{filter:brightness(1.12)}
.mdw-x:active{filter:brightness(.88)}
.mdw-x svg{width:10px;height:9px;shape-rendering:crispEdges}
.md{position:relative;width:100%;height:clamp(300px,42vw,520px);overflow:hidden;background:#0b1a2b}
.md-wall{position:absolute;inset:0 0 30px 0;overflow:hidden}
.md-wl{position:absolute;inset:0;animation:mdFade 1.4s ease}
.md-wl .cropimg,.md-wl img{width:100%;height:100%;object-fit:cover;display:block}
.md-wl-empty{background:linear-gradient(160deg,#3a6ea5,#0b1a2b)}
@keyframes mdFade{from{opacity:0}to{opacity:1}}
.md-icons{position:absolute;left:8px;top:10px;display:flex;flex-direction:column;gap:6px;z-index:2}
.md-ic{width:86px;display:flex;flex-direction:column;align-items:center;gap:3px;padding:5px 3px;background:none;border:0;cursor:pointer;border-radius:2px}
.md-ic svg{filter:drop-shadow(1px 1px 0 rgba(0,0,0,.55));image-rendering:pixelated}
.md-ic span{font-family:var(--font-display);font-size:12.5px;line-height:1.25;color:#fff;text-align:center;text-shadow:1px 1px 0 rgba(0,0,0,.9)}
.md-ic:hover{background:rgba(90,150,230,.35);outline:1px dotted rgba(255,255,255,.6)}
.md-kr{position:absolute;z-index:4;cursor:inherit}
.md-kr svg{display:block;filter:drop-shadow(0 3px 3px rgba(0,0,0,.35))}
.md-bub{position:absolute;z-index:6;pointer-events:none;display:flex;justify-content:center}
.md-bal{background:#fff;color:#123f8a;border:2px solid #123f8a;border-radius:14px;padding:8px 12px;font-family:var(--font-body);font-size:14.5px;line-height:1.35;box-shadow:3px 3px 0 rgba(18,63,138,.35);text-wrap:pretty;animation:mdPop .18s steps(3)}
@keyframes mdPop{from{transform:scale(.6);opacity:0}to{transform:none;opacity:1}}
.md-bar{position:absolute;left:0;right:0;bottom:0;height:30px;z-index:5;display:flex;align-items:center;gap:6px;background:linear-gradient(180deg,#1f2f86 0,#3165c4 3%,#3682e5 6%,#4490e6 10%,#3883e5 12%,#2b71e0 15%,#2663da 18%,#235bd6 20%,#2258d5 23%,#2157d6 38%,#245ddb 54%,#2562df 86%,#245fdc 89%,#2158d4 92%,#1d4ec0 95%,#1941a5 98%);color:#fff;font-family:Tahoma,var(--font-body),sans-serif;font-size:11.5px}
.md-start{height:100%;display:flex;align-items:center;gap:5px;padding:0 18px 0 8px;border-radius:0 12px 12px 0;background:radial-gradient(ellipse at 45% 0%,#79ce5b 0%,#4aa33a 45%,#3a8f2a 80%,#2f7a22 100%);box-shadow:inset -2px 0 3px rgba(0,0,0,.3),inset 0 1px 1px rgba(255,255,255,.45),2px 0 3px rgba(0,0,40,.35);font-family:"Trebuchet MS",Tahoma,sans-serif;font-weight:700;font-style:italic;font-size:15px;letter-spacing:.01em;text-shadow:1px 1px 1px rgba(0,0,0,.55)}
.md-start em{width:15px;height:14px;display:grid;grid-template-columns:1fr 1fr;gap:1px;transform:skewY(-6deg) rotate(-4deg);filter:drop-shadow(1px 1px 0 rgba(0,0,0,.35))}
.md-start em i{display:block;border-radius:1px}
.md-start em i:nth-child(1){background:#f3522b}.md-start em i:nth-child(2){background:#7ec43b}.md-start em i:nth-child(3){background:#2d9bf0}.md-start em i:nth-child(4){background:#fcc30b}
.md-task{display:flex;align-items:center;gap:5px;height:22px;padding:0 10px 0 7px;border-radius:3px;background:#1e52b7;box-shadow:inset 1px 1px 1px rgba(0,0,0,.45),inset -1px -1px 0 rgba(255,255,255,.12);min-width:0;max-width:190px}
.md-task svg{width:14px;height:14px;flex:none}
.md-task span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.md-cta{margin-left:auto;padding-right:4px;font-family:var(--font-mono);font-size:10.5px;letter-spacing:.1em;text-transform:uppercase;white-space:nowrap;text-shadow:1px 1px 0 rgba(0,0,40,.4)}
.md-tray{height:100%;display:flex;align-items:center;gap:8px;padding:0 10px 0 11px;white-space:nowrap;background:linear-gradient(180deg,#0c59b9 1%,#139ee9 6%,#18b5f2 10%,#139beb 14%,#1290e8 19%,#0d8dea 63%,#0d9ff1 81%,#0f9eed 88%,#119be9 91%,#1392e2 94%,#137ed7 97%,#095bc9);border-left:1px solid #1042af;box-shadow:inset 1px 0 1px #18bbff}
.md-tray svg{width:14px;height:14px}
@media (max-width:560px){.md-icons{flex-direction:row;gap:0}.md-ic{width:74px}.md-task{display:none}}
.pp-headvid{position:absolute;z-index:-2;left:-20%;right:-20%;top:-14vh;height:min(80vh,760px);pointer-events:none;overflow:hidden;-webkit-mask-image:radial-gradient(62% 60% at 50% 40%,#000 30%,transparent 100%);mask-image:radial-gradient(62% 60% at 50% 40%,#000 30%,transparent 100%)}
.pp-headvid video{width:100%;height:100%;object-fit:cover;filter:blur(42px) saturate(1.25);opacity:.8;transform:scale(1.12)}

.md-task svg,.md-tray svg{image-rendering:auto;filter:drop-shadow(1px 1px 0 rgba(0,0,40,.35))}

/* mobile QA: iOS toolbar-safe lightbox, no scroll bleed from overlays */
@supports (height:100dvh){.lb-stage,.lb-media{height:100dvh}}
.pp-scroll,.tagview,.dk-lb{overscroll-behavior:contain}
@media (max-width:560px){.theme-btn{min-width:32px;justify-content:center}}
@supports (min-height:100dvh){.cpage{min-height:100dvh}}
@media (hover:none){.mdw:hover,.cf-btn:hover,.teaser-link.is-window:hover .twin{transform:none}.mdw:hover{box-shadow:0 18px 40px -22px rgba(0,0,0,.45)}.mdw:active{transform:scale(.99)}.md-ic:hover{background:none;outline:0}.md-ic:active{background:rgba(90,150,230,.35)}}
