/* ==========================================================================
   Roam Atelier — Design system
   Modern, minimal, image-led. Big bold type, near-zero chrome.
   ========================================================================== */

:root {
  --ink:        #0a0a0b;
  --ink-raised: #141416;
  --paper:      #f2ede3;
  --paper-2:    #e8e0d0;
  --stone:      #a3906f;
  --stone-dark: #7a6a4f;

  --text-dark:      #f2ede3;
  --text-dark-mute: rgba(242, 237, 227, 0.62);
  --text-dark-faint:rgba(242, 237, 227, 0.34);
  --text-light:      #0a0a0b;
  --text-light-mute: rgba(10, 10, 11, 0.60);
  --text-light-faint:rgba(10, 10, 11, 0.32);

  --line-dark:  rgba(242, 237, 227, 0.14);
  --line-light: rgba(10, 10, 11, 0.12);

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

  --ease:      cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast:  0.25s;
  --dur-med:   0.6s;
  --dur-slow:  1.05s;

  --topbar-h: 76px;
  --gutter: clamp(20px, 4vw, 56px);
  --max: 1600px;
}

/* ---------------------------------- reset -------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body, h1, h2, h3, p, figure { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
ul { list-style: none; margin: 0; padding: 0; }

html, body {
  height: 100%;
  background: var(--ink);
  color: var(--text-dark);
}
body {
  font-family: var(--font);
  font-weight: 400;
  overflow-x: hidden;
  cursor: default;
}
body.has-custom-cursor, body.has-custom-cursor a, body.has-custom-cursor button {
  cursor: none;
}

.app { position: relative; min-height: 100%; }

/* ------------------------------- utilities -------------------------------- */
.eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ------------------------------- cursor ----------------------------------- */
/* Position (#cursor) and appearance (.cursor__dot) are split across two
   nested elements on purpose. JS writes translate3d on the outer element
   every mousemove with no CSS transition, so it tracks the pointer
   1:1 with zero added lag. The inner dot is the only thing that
   transitions (its own opacity/scale on hover-target enter/leave) —
   transitioning the position itself was what made this feel "heavy". */
.cursor {
  position: fixed; top: 0; left: 0; z-index: 900;
  width: 0; height: 0;
  pointer-events: none;
  will-change: transform;
}
.cursor__dot {
  position: absolute; top: 0; left: 0;
  width: 84px; height: 84px; margin: -42px 0 0 -42px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(242, 237, 227, 0.9);
  color: var(--ink);
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  opacity: 0; transform: scale(0.4);
  transition: opacity var(--dur-fast) var(--ease-soft), transform var(--dur-fast) var(--ease-soft);
}
.cursor.is-active .cursor__dot { opacity: 1; transform: scale(1); }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ------------------------------- topbar ------------------------------------ */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  height: var(--topbar-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--gutter);
  pointer-events: none;
  mix-blend-mode: difference;
}
.topbar > * { pointer-events: auto; }
.topbar__mark {
  font-weight: 800; font-size: 1.05rem; letter-spacing: -0.01em;
  color: #fff;
}
.topbar__nav { display: flex; gap: clamp(20px, 3vw, 40px); }
.topbar__nav a {
  color: #fff; font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  position: relative; padding-bottom: 4px;
}
.topbar__nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px;
  background: currentColor; transition: right var(--dur-med) var(--ease);
}
.topbar__nav a:hover::after, .topbar__nav a.is-active::after { right: 0; }
body.route-landing .topbar, body.route-cover .topbar {
  opacity: 0; transform: translateY(-8px); pointer-events: none;
  transition: opacity var(--dur-med) var(--ease), transform var(--dur-med) var(--ease);
}
.topbar { opacity: 1; transform: translateY(0); transition: opacity var(--dur-med) var(--ease), transform var(--dur-med) var(--ease); }

/* ------------------------------- back button -------------------------------- */
.back-btn {
  position: fixed; top: 96px; left: var(--gutter); z-index: 500;
  display: flex; align-items: center; gap: 10px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: #fff;
  mix-blend-mode: difference;
  opacity: 0; transform: translateX(-6px);
  transition: opacity var(--dur-med) var(--ease), transform var(--dur-med) var(--ease);
}
.back-btn:not([hidden]) { opacity: 1; transform: translateX(0); }
.back-btn__arrow { font-size: 1rem; transition: transform var(--dur-fast) var(--ease-soft); }
.back-btn:hover .back-btn__arrow { transform: translateX(-4px); }

/* ================================ COVER ===================================== */
/* The real home page, not a one-off loading gate: black -> logo fades in ->
   the interior/pillars photo and the quote fade in together -> the Explore
   button appears. The photo then breathes forever — a slow scale
   oscillation that never finishes and never sits still, so the page still
   feels alive if someone just stays here. First-load-only entrance is
   gated by sessionStorage (see shouldPlayEntrance in app.js); returning to
   "/" later in the same tab (e.g. via the logo on the split page) renders
   already-settled with no replay — .cover--instant strips the transitions
   so it just appears. */
.cover {
  position: fixed; inset: 0;
  background: #000;
  overflow: hidden;
}
.cover__bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0;
  transition: opacity 1.8s var(--ease-soft);
  animation: cover-breathe 22s ease-in-out infinite alternate;
}
.cover__bg.is-in { opacity: 1; }
@keyframes cover-breathe {
  from { transform: scale(1.14); }
  to   { transform: scale(1); }
}
.cover__scrim {
  position: absolute; inset: 0;
  background: radial-gradient(60% 50% at 50% 42%, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.72) 100%);
}
/* Logo + tagline + button live in one centered flex column so their gaps
   are real, explicit values rather than independently-positioned absolute
   elements whose spacing only works by coincidence. */
.cover__brand {
  position: absolute; top: 50%; left: 50%; z-index: 2;
  transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center;
  gap: 30px;
}
.cover__mark {
  width: min(420px, 54vw); height: auto;
  opacity: 0; transform: translateY(10px);
  transition: opacity 1.3s var(--ease), transform 1.3s var(--ease);
}
.cover__mark.is-in { opacity: 1; transform: translateY(0); }
.cover__tagline {
  width: min(560px, 80vw); text-align: center;
  color: rgba(255,255,255,0.9);
  font-family: "Cormorant Garamond", serif; font-style: italic; font-weight: 500;
  font-size: clamp(1.05rem, 2.2vw, 1.4rem);
  letter-spacing: 0.01em; line-height: 1.45;
  opacity: 0; transform: translateY(14px);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
}
.cover__tagline.is-in { opacity: 1; transform: translateY(0); }
/* Plain circle, no label — the custom cursor already shows "Explore" on
   hover (data-cursor="Explore" above) via the same 84px dot used
   everywhere else on the site (see .cursor__dot), so the button repeats
   nothing the cursor doesn't already say. Sized to match that dot
   exactly, so the button reads as the resting state of that same circle. */
.cover__explore {
  margin-top: 10px;
  width: 84px; height: 84px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.55);
  opacity: 0; transform: translateY(14px) scale(0.94);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease), background-color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.cover__explore.is-in { opacity: 1; transform: translateY(0) scale(1); }
.cover__explore:hover { background: rgba(255,255,255,0.14); border-color: #fff; }
.cover--instant .cover__bg,
.cover--instant .cover__mark,
.cover--instant .cover__tagline,
.cover--instant .cover__explore { transition: none !important; }
@media (prefers-reduced-motion: reduce) {
  .cover__bg { animation: none; transform: scale(1.05); }
  .cover__mark, .cover__tagline, .cover__explore { transition: none !important; transform: none !important; }
}

/* ================================ LANDING ================================= */
.landing {
  position: fixed; inset: 0; display: flex;
}
@media (prefers-reduced-motion: no-preference) {
  .landing { transition: opacity var(--dur-slow) var(--ease); }
}
/* Entrance every time this route is entered (via the Explore button or a
   direct link): each half wipes open from the centre line outward,
   instead of just being there. */
.landing--reveal .landing__half--entertainment { clip-path: inset(0 0 0 100%); }
.landing--reveal .landing__half--residential { clip-path: inset(0 100% 0 0); }
.landing--reveal.is-revealed .landing__half--entertainment,
.landing--reveal.is-revealed .landing__half--residential {
  clip-path: inset(0 0 0 0);
  /* flex-basis included here too, not just clip-path — this selector is
     more specific than the base .landing__half rule below, so without it
     a hover during the ~1.2s reveal window (removed after it finishes)
     would have no transition to animate on and just snap instead of
     sliding smoothly. */
  transition: clip-path 1.1s var(--ease), flex-basis 0.9s var(--ease);
}
@media (prefers-reduced-motion: reduce) {
  .landing--reveal .landing__half--entertainment,
  .landing--reveal .landing__half--residential { clip-path: none; }
}
.landing__half {
  position: relative; flex: 1 1 50%; overflow: hidden;
  display: flex; align-items: flex-end;
  min-height: 0;
  container-type: inline-size;
  transition: flex-basis 0.9s var(--ease);
}
/* Hover state is driven by JS (see setupLandingHover in app.js), not raw
   :has(:hover) — the divider moving under the cursor mid-transition made
   pure-CSS hover flicker back and forth right at the boundary. The JS
   version compares against the half's own live rect and debounces the
   hand-off, so the switch reads as one continuous motion either way you
   approach it. */
@media (hover: hover) and (pointer: fine) {
  .landing.has-active .landing__half.is-active { flex-basis: 60%; }
  .landing.has-active .landing__half:not(.is-active) { flex-basis: 40%; }
}
.landing__bg {
  position: absolute; inset: -3%; background-size: cover; background-position: center;
  transform: scale(1.04);
}
@media (prefers-reduced-motion: no-preference) {
  .landing__bg { animation: kenburns 26s var(--ease-soft) infinite alternate; }
}
@keyframes kenburns {
  from { transform: scale(1.04) translate3d(0,0,0); }
  to   { transform: scale(1.14) translate3d(-1.2%, -1%, 0); }
}
.landing__half--entertainment .landing__bg { background-color: #0c0c0d; }
.landing__half--residential .landing__bg { background-color: var(--paper-2); }
.landing__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.15) 45%, rgba(0,0,0,0.72) 100%);
}
.landing__half--residential .landing__scrim {
  background: linear-gradient(180deg, rgba(10,8,4,0.02) 0%, rgba(20,15,8,0.08) 45%, rgba(20,15,8,0.6) 100%);
}
.landing__content {
  position: relative; z-index: 2; padding: var(--gutter);
  padding-bottom: clamp(40px, 6vh, 76px);
  width: 100%;
}
/* Sized in cqw (container query width), against the half's OWN current
   width — not vw against the viewport. That's what makes it "responsive
   to both positions": as a half's flex-basis animates from 50% to 60%
   or down to 40%, its title scales with it instead of staying frozen
   at a size computed for the whole screen. */
.landing__title {
  color: #fff;
  font-weight: 900;
  font-size: clamp(2.1rem, 13cqw, 6.5rem);
  line-height: 0.96; letter-spacing: -0.02em;
  opacity: 0; transform: translateY(16px);
}
.landing__enter {
  margin-top: 22px; display: inline-flex; align-items: center; gap: 10px;
  color: #fff; font-size: clamp(0.72rem, 1.7cqw, 0.9rem); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  opacity: 0; transform: translateY(16px);
}
.landing.is-ready .landing__title,
.landing.is-ready .landing__enter { opacity: 1; transform: translateY(0); }
.landing__half--entertainment .landing__title,
.landing__half--entertainment .landing__enter { transition: opacity var(--dur-slow) var(--ease) 0.05s, transform var(--dur-slow) var(--ease) 0.05s; }
.landing__half--residential .landing__title,
.landing__half--residential .landing__enter { transition: opacity var(--dur-slow) var(--ease) 0.18s, transform var(--dur-slow) var(--ease) 0.18s; }
.landing__half--entertainment .landing__title { transition-delay: 0.1s; }
.landing__half--residential .landing__title { transition-delay: 0.23s; }
.landing__half--entertainment .landing__enter { transition-delay: 0.16s; }
.landing__half--residential .landing__enter { transition-delay: 0.29s; }
.landing__enter-arrow { display: inline-block; transition: transform var(--dur-fast) var(--ease-soft); }
.landing__half.is-active .landing__enter-arrow { transform: translateX(6px); }

.landing__divider {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 1px;
  background: rgba(255,255,255,0.18); z-index: 3; pointer-events: none;
}

/* A full-width ribbon across the top, not a badge hugging just the logo —
   guarantees the mark stays legible no matter what's directly behind it
   (a lit chandelier, a pale sky), and reads as one continuous band rather
   than a button floating on the photo. */
.landing::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 108px;
  background: linear-gradient(180deg, rgba(0,0,0,0.58) 0%, rgba(0,0,0,0.42) 65%, rgba(0,0,0,0) 100%);
  z-index: 3; pointer-events: none;
}

/* Now a real link back to the cover page, not a decorative image — see
   renderLanding() in app.js. */
.landing__mark {
  position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
  z-index: 4; height: 72px;
  display: block;
  opacity: 0;
  transition: opacity var(--dur-slow) var(--ease) 0.4s, transform var(--dur-fast) var(--ease-soft);
  filter: drop-shadow(0 1px 6px rgba(0,0,0,0.4));
}
.landing__mark img { height: 100%; width: auto; display: block; }
.landing.is-ready .landing__mark { opacity: 1; }
.landing__mark:hover { transform: translateX(-50%) scale(1.06); }

@media (max-width: 780px) {
  .landing { flex-direction: column; }
  .landing::before { height: 82px; }
  .landing__half { flex-basis: 50% !important; }
  .landing__divider { top: 50%; left: 0; right: 0; bottom: auto; width: auto; height: 1px; }
  .landing__title { font-size: clamp(2rem, 9vw, 3rem); }
  .landing__mark { height: 54px; top: 14px; }
  .landing__mark:hover { transform: translateX(-50%); }
}

/* ================================ LIST VIEW ================================ */
.list-view {
  min-height: 100vh;
  padding-top: calc(var(--topbar-h) + 46px);
}
.list-view[data-theme="dark"] { background: var(--ink); color: var(--text-dark); }
.list-view[data-theme="light"] { background: var(--paper); color: var(--text-light); }

.list-view__header {
  padding: 10px var(--gutter) clamp(28px, 5vh, 56px);
  max-width: var(--max); margin: 0 auto;
}
.list-view__title {
  font-weight: 900; letter-spacing: -0.02em;
  font-size: clamp(2.6rem, 7vw, 5.2rem); line-height: 0.98;
}
.list-view__statement {
  margin-top: 16px; max-width: 46ch;
  font-size: clamp(1rem, 1.6vw, 1.2rem); font-weight: 500; line-height: 1.5;
}
[data-theme="dark"] .list-view__statement { color: var(--text-dark-mute); }
[data-theme="light"] .list-view__statement { color: var(--text-light-mute); }

.strip-list { display: flex; flex-direction: column; }
.strip-card {
  position: relative; overflow: hidden;
  aspect-ratio: 3.2 / 1;
  border-top: 1px solid var(--line-dark);
}
[data-theme="light"] .strip-card { border-top-color: var(--line-light); }
.strip-list .strip-card:last-child { border-bottom: 1px solid var(--line-dark); }
[data-theme="light"] .strip-list .strip-card:last-child { border-bottom-color: var(--line-light); }

.strip-card__media {
  position: absolute; inset: 0; overflow: hidden;
}
.strip-card__media img, .strip-card__media .placeholder-tile {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.02);
  transition: transform 1.2s var(--ease);
}
.strip-card:hover .strip-card__media img,
.strip-card:hover .strip-card__media .placeholder-tile { transform: scale(1.09); }
.strip-card__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.55) 100%);
}
.strip-card__row {
  position: relative; z-index: 2; height: 100%;
  display: flex; align-items: flex-end; justify-content: space-between;
  padding: clamp(14px, 2.6vw, 34px) var(--gutter);
  gap: 20px;
}
.strip-card__name {
  color: #fff; font-weight: 900; letter-spacing: -0.02em;
  font-size: clamp(1.5rem, 4.6vw, 3.6rem); line-height: 1;
}
.strip-card__meta {
  color: rgba(255,255,255,0.82); text-align: right;
  font-size: clamp(0.68rem, 1vw, 0.82rem); font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  display: flex; flex-direction: column; gap: 6px; flex-shrink: 0;
}
.status-pill {
  display: inline-flex; align-self: flex-end;
  padding: 5px 11px; border: 1px solid rgba(255,255,255,0.45); border-radius: 999px;
  font-size: 0.64rem; letter-spacing: 0.14em;
}
.status-pill[data-status="pending"], .status-pill[data-status="concept"] {
  border-color: rgba(255,255,255,0.3); color: rgba(255,255,255,0.68);
}

@media (max-width: 780px) {
  .strip-card { aspect-ratio: 3 / 2; }
  .strip-card__row { flex-direction: column; align-items: flex-start; gap: 10px; }
  .strip-card__meta { text-align: left; align-items: flex-start; }
  .status-pill { align-self: flex-start; }
}

/* scroll reveal */
[data-reveal] {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .landing__bg { animation: none !important; }
  .landing__title, .landing__enter { opacity: 1 !important; transform: none !important; }
}

/* =============================== PROJECT VIEW =============================== */
.project-view { min-height: 100vh; }
.project-view[data-theme="dark"] { background: var(--ink); color: var(--text-dark); }
.project-view[data-theme="light"] { background: var(--paper); color: var(--text-light); }

.project-hero {
  position: relative; height: clamp(360px, 58vh, 760px); overflow: hidden;
}
.project-hero__media { position: absolute; inset: 0; }
.project-hero__media img, .project-hero__media .placeholder-tile {
  width: 100%; height: 100%; object-fit: cover;
}
.project-hero__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.2) 40%, rgba(0,0,0,0.78) 100%);
}
.project-hero__content {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: clamp(24px, 5vh, 60px) var(--gutter);
  max-width: var(--max); margin: 0 auto; width: 100%;
}
.project-hero__eyebrow { color: rgba(255,255,255,0.75); margin-bottom: 14px; }
.project-hero__title {
  color: #fff; font-weight: 900; letter-spacing: -0.02em;
  font-size: clamp(2.2rem, 6.4vw, 5rem); line-height: 0.98;
}
.project-hero__meta {
  margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px 26px;
  color: rgba(255,255,255,0.82);
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
}

.project-body {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(28px, 5vh, 60px) var(--gutter) clamp(60px, 10vh, 120px);
}
.project-blurb {
  max-width: 62ch; font-size: clamp(1rem, 1.6vw, 1.25rem); font-weight: 500; line-height: 1.55;
  margin-bottom: clamp(30px, 6vh, 64px);
}
[data-theme="dark"] .project-blurb { color: var(--text-dark-mute); }
[data-theme="light"] .project-blurb { color: var(--text-light-mute); }

.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 11vw;
  gap: clamp(6px, 1vw, 14px);
}
.bento__cell {
  position: relative; overflow: hidden; cursor: pointer;
}
.bento__cell img, .bento__cell .placeholder-tile {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.01);
  transition: transform 0.9s var(--ease);
}
.bento__cell:hover img, .bento__cell:hover .placeholder-tile { transform: scale(1.07); }
.bento__cell--wide  { grid-column: span 2; grid-row: span 1; }
.bento__cell--card  { grid-column: span 1; grid-row: span 2; }
.bento__cell--tall  { grid-column: span 1; grid-row: span 2; }
.bento__cell--square{ grid-column: span 1; grid-row: span 1; }
.bento__cell--strip { grid-column: span 4; grid-row: span 1; }

.bento__view {
  position: absolute; right: 14px; bottom: 14px; z-index: 2;
  color: #fff; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  opacity: 0; transform: translateY(6px);
  transition: opacity var(--dur-fast), transform var(--dur-fast);
  text-shadow: 0 1px 8px rgba(0,0,0,0.5);
}
.bento__cell:hover .bento__view { opacity: 1; transform: translateY(0); }

@media (max-width: 900px) {
  .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 42vw; }
  .bento__cell--wide, .bento__cell--strip { grid-column: span 2; }
}

/* ============================== PLACEHOLDER TILE ============================= */
.placeholder-tile {
  position: relative; width: 100%; height: 100%;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: clamp(14px, 2vw, 26px);
  overflow: hidden;
  background:
    radial-gradient(120% 140% at 12% 8%, var(--pt-a, #2a2a2c) 0%, transparent 55%),
    radial-gradient(130% 140% at 88% 96%, var(--pt-b, #131315) 0%, transparent 60%),
    linear-gradient(150deg, var(--pt-base, #17171a) 0%, var(--pt-base2, #0c0c0d) 100%);
}
.placeholder-tile::before {
  content: ""; position: absolute; inset: 0; opacity: 0.5; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.35'/></svg>");
  background-size: 220px 220px;
}
.placeholder-tile__mono {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -46%);
  font-weight: 900; font-size: clamp(3.5rem, 10vw, 9rem); letter-spacing: -0.03em;
  color: var(--pt-ink, rgba(255,255,255,0.08));
  line-height: 1; user-select: none; pointer-events: none;
}
.placeholder-tile__tag {
  position: relative; z-index: 2;
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--pt-tag, rgba(255,255,255,0.55));
}
.placeholder-tile__name {
  position: relative; z-index: 2; margin-top: 6px;
  font-weight: 800; letter-spacing: -0.01em;
  font-size: clamp(1rem, 2vw, 1.6rem);
  color: var(--pt-name, rgba(255,255,255,0.92));
}
.placeholder-tile[data-theme="light"] {
  --pt-base: #eee7d8; --pt-base2: #e2d8c2; --pt-a: #f4eee0; --pt-b: #ded1b2;
  --pt-ink: rgba(10,10,11,0.07); --pt-tag: rgba(10,10,11,0.5); --pt-name: rgba(10,10,11,0.92);
}

/* ================================= LIGHTBOX =================================== */
.lightbox {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(6, 6, 7, 0.97);
  display: flex; align-items: center; justify-content: center;
  padding: 6vh 6vw;
}
.lightbox[hidden] { display: none; }
.lightbox__figure { max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.lightbox__figure img {
  max-width: 100%; max-height: 78vh; object-fit: contain;
  animation: lb-in 0.35s var(--ease);
}
@keyframes lb-in { from { opacity: 0; transform: scale(0.98); } to { opacity: 1; transform: scale(1); } }
.lightbox__figure figcaption {
  color: var(--text-dark-mute); font-size: 0.82rem; font-weight: 500; text-align: center; max-width: 60ch;
}
.lightbox__close {
  position: absolute; top: 22px; right: var(--gutter);
  font-size: 2rem; line-height: 1; color: var(--text-dark);
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
}
.lightbox__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  font-size: 2.4rem; color: var(--text-dark-mute);
  width: 56px; height: 56px; display: flex; align-items: center; justify-content: center;
  transition: color var(--dur-fast);
}
.lightbox__nav:hover { color: var(--text-dark); }
.lightbox__nav--prev { left: clamp(8px, 2vw, 30px); }
.lightbox__nav--next { right: clamp(8px, 2vw, 30px); }
.lightbox__count {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; color: var(--text-dark-faint);
}
@media (max-width: 700px) {
  .lightbox__nav { width: 40px; height: 40px; font-size: 1.8rem; }
}

/* ============================== transitions ================================== */
.app-fade-enter { animation: app-fade-in var(--dur-med) var(--ease); }
@keyframes app-fade-in { from { opacity: 0; } to { opacity: 1; } }
