/* ============================================================
   Elshalom Kibru Shume — Portfolio site — Design System v2
   ------------------------------------------------------------
   PALETTE
   Sourced from colors.robi.work (nice-color-palettes #0110):
   84b295 sage · eccf8d warm cream · bb8138 ochre · ac2005 rust · 2c1507 near-black brown
   Chosen because it extends the site's existing dark/warm identity
   rather than replacing it — same mood, richer and more considered.

   TYPE
   Fraunces (display, unchanged — distinctive, already the site's own
   voice) paired with Source Serif 4 for body copy, replacing Inter.
   Two serif voices instead of serif+sans: Fraunces carries the
   expressive high-contrast display role, Source Serif 4 carries calm
   readability at body sizes. Hierarchy comes from that contrast plus
   size/weight, not from a sans/serif split.
   ============================================================ */

:root {
  --color-bg: #1c0f07;
  --color-surface: #271609;
  --color-surface-2: #33200f;
  --color-text: #f3e4c2;
  --color-text-muted: #cbaa7e;
  --color-text-dim: #9c7f5c;
  --color-accent: #d9a34e;
  --color-accent-soft: #d9a34e2e;
  --color-border: #43301c;
  --color-sage: #84b295;
  --color-sold: #9c8266;
  --color-danger: #c2451f;
  --grain-rgb: 243, 228, 194;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Source Serif 4", Georgia, "Times New Roman", serif;

  --container: 1120px;
  --container-narrow: 720px;
  --radius: 3px;
  --radius-lg: 6px;
}

:root[data-theme="light"] {
  --color-bg: #f6ecd6;
  --color-surface: #fffaf0;
  --color-surface-2: #f1e4c8;
  --color-text: #2c1507;
  --color-text-muted: #6b4d2e;
  --color-text-dim: #8a6d49;
  --color-accent: #ac2005;
  --color-accent-soft: #ac200522;
  --color-border: #e0cca4;
  --color-sage: #4b7a5f;
  --color-sold: #a9906d;
  --color-danger: #ac2005;
  --grain-rgb: 44, 21, 7;
}

* { box-sizing: border-box; }
html {
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; scroll-behavior: smooth;
  background: #1c0f07; /* matches --color-bg default; prevents a white flash before CSS finishes applying */
}
html[data-theme="light"] { background: #f6ecd6; }
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  transition: background .25s ease, color .25s ease;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(var(--grain-rgb),0.035) 1px, transparent 0);
  background-size: 3px 3px;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, figure { margin: 0; }
button, input, textarea, select { font-family: inherit; color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--color-accent); color: var(--color-bg); }

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

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

.container { max-width: var(--container); margin: 0 auto; padding: 0 28px; }
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 28px; }

/* ---------- Typography ---------- */
h1, .h1 { font-family: var(--font-display); font-weight: 500; font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1.05; letter-spacing: -0.01em; }
h2, .h2 { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.7rem, 3vw, 2.3rem); line-height: 1.15; }
h3, .h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.25rem; line-height: 1.3; }
.eyebrow { font-family: var(--font-body); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-accent); font-weight: 600; }
.lede { font-family: var(--font-display); font-style: italic; font-size: 1.2rem; color: var(--color-text-muted); line-height: 1.5; font-weight: 400; }
.small { font-size: 0.85rem; color: var(--color-text-dim); }

@media (max-width: 480px) {
  h1, .h1 { font-size: 1.9rem; }
  h2, .h2 { font-size: 1.4rem; }
  .lede { font-size: 1rem; }
}

/* ---------- Nav ---------- */
.site-nav {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 28px;
  background: color-mix(in srgb, var(--color-bg) 86%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}
.nav-left { display: flex; align-items: center; gap: 16px; }
.site-nav .name {
  font-family: var(--font-display); font-size: 1.1rem; font-weight: 500;
}
.site-nav .links { display: flex; gap: 28px; align-items: center; }
.site-nav .links a {
  font-size: 0.92rem; color: var(--color-text-muted);
  padding-bottom: 3px; border-bottom: 1px solid transparent;
  transition: color .2s, border-color .2s;
}
.site-nav .links a:hover, .site-nav .links a[aria-current="page"] { color: var(--color-text); border-color: var(--color-accent); }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--color-border); border-radius: var(--radius);
  color: var(--color-text); width: 38px; height: 38px; align-items: center; justify-content: center; cursor: pointer;
}
.theme-toggle {
  background: none; border: 1px solid var(--color-border); border-radius: 50%;
  color: var(--color-text-muted); width: 34px; height: 34px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: border-color .2s, color .2s; flex-shrink: 0;
}
.theme-toggle:hover { border-color: var(--color-accent); color: var(--color-accent); }
.theme-toggle svg { width: 17px; height: 17px; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="light"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: none; }

@media (max-width: 720px) {
  .site-nav .links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 4px;
    background: var(--color-surface); border-bottom: 1px solid var(--color-border);
    padding: 12px 28px 20px;
  }
  .site-nav .links.open { display: flex; }
  .site-nav .links a { width: 100%; padding: 10px 0; border-bottom: 1px solid var(--color-border); }
  .nav-toggle { display: flex; }
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 28px; margin-top: 100px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  color: var(--color-text-dim); font-size: 0.85rem;
}
.site-footer a { color: var(--color-text-dim); }
.site-footer a:hover { color: var(--color-accent); }

/* ---------- Sections ---------- */
section { padding: 88px 0; }
section + section { border-top: 1px solid var(--color-border); }
.section-head { margin-bottom: 40px; max-width: 640px; }
.section-head .eyebrow { display: block; margin-bottom: 10px; }
@media (max-width: 480px) { section { padding: 56px 0; } }

/* ---------- In-page nav anchors ----------
   Single-page nav: clicking Home/Studio Pieces/Commissions/Events scrolls
   to these ids instead of loading a new page. scroll-margin-top keeps the
   section's top clear of the sticky nav bar when it's scrolled into view. */
#home, #studio-pieces, #commissions, #events { scroll-margin-top: 90px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: var(--radius); font-size: 0.92rem; font-weight: 600;
  font-family: var(--font-body);
  border: 1px solid var(--color-accent); cursor: pointer; transition: transform .15s ease, background .2s, opacity .2s;
  background: var(--color-accent); color: var(--color-bg);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn-outline { background: transparent; color: var(--color-text); border-color: var(--color-border); }
.btn-outline:hover { border-color: var(--color-accent); color: var(--color-accent); }
.btn-danger { background: transparent; border-color: var(--color-danger); color: var(--color-danger); }
.btn-danger:hover { background: var(--color-danger); color: #fff; }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 14px; font-size: 0.82rem; }

/* ---------- Forms ---------- */
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.82rem; color: var(--color-text-muted); margin-bottom: 7px; }
.input, .textarea, .select {
  width: 100%; background: var(--color-surface); border: 1px solid var(--color-border);
  color: var(--color-text); padding: 12px 14px; border-radius: var(--radius); font-size: 0.95rem;
  font-family: var(--font-body);
  transition: border-color .2s;
}
.input:focus, .textarea:focus, .select:focus { border-color: var(--color-accent); outline: none; }
.textarea { min-height: 130px; resize: vertical; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%23cbaa7e' stroke-width='1.5' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; text-overflow: ellipsis; white-space: nowrap; overflow: hidden; }
@media (max-width: 480px) {
  .select { font-size: 0.86rem; padding: 11px 30px 11px 12px; background-position: right 12px center; }
}

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }
.calc-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 640px) { .calc-row { grid-template-columns: 1fr; } }
.form-note { font-size: 0.8rem; color: var(--color-text-dim); margin-top: 10px; }
.form-status { font-size: 0.88rem; margin-top: 14px; padding: 10px 14px; border-radius: var(--radius); display: none; }
.form-status.show { display: block; }
.form-status.ok { background: var(--color-accent-soft); color: var(--color-accent); border: 1px solid var(--color-accent-soft); }
.form-status.err { background: rgba(194,69,31,0.12); color: var(--color-danger); border: 1px solid rgba(194,69,31,0.4); }

.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Tags / status badges ---------- */
.tag {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 100px;
  font-family: var(--font-body);
  font-size: 0.72rem; letter-spacing: 0.04em; text-transform: uppercase; font-weight: 600;
  border: 1px solid var(--color-border); color: var(--color-text-muted); background: var(--color-bg);
}
.tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tag-recurring { color: var(--color-accent); border-color: var(--color-accent-soft); }
.tag-upcoming { color: var(--color-sage); border-color: color-mix(in srgb, var(--color-sage) 40%, transparent); }
.tag-past { color: var(--color-text-dim); }
.tag-available { color: var(--color-sage); border-color: color-mix(in srgb, var(--color-sage) 40%, transparent); }
.tag-reserved { color: var(--color-accent); border-color: var(--color-accent-soft); }
.tag-sold { color: var(--color-sold); }

/* ---------- Cards: events ---------- */
.event-list { display: flex; flex-direction: column; }
.event-row {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 0; border-top: 1px solid var(--color-border);
}
.event-row:last-child { border-bottom: 1px solid var(--color-border); }
.event-row h3 { margin-bottom: 4px; }
.event-row .event-meta { color: var(--color-text-muted); font-size: 0.92rem; }
@media (max-width: 560px) { .event-row { flex-direction: column; align-items: flex-start; gap: 10px; } }
@media (max-width: 480px) {
  .event-row { padding: 16px 0; }
  .event-row h3 { font-size: 1.02rem; }
  .event-row .event-meta { font-size: 0.82rem; }
}

/* ---------- Grids: type cards / videos ----------
   type-grid: flex-wrap, NOT a fixed 3-column grid — each card's width
   comes from its own content (how many photos it has), so a card with
   3 photos sits wider than one with 1, and cards wrap to a new row
   whenever they don't fit rather than being forced into equal thirds
   with empty background showing where the photos don't fill the box. */
.type-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  align-items: flex-start;
}
.video-grid {
  display: grid;
  gap: 22px;
  align-items: start;
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 820px) { .video-grid { grid-template-columns: 1fr; } }

/* ---------- Grid: studio pieces (true JS-packed masonry) ----------
   Always 3 columns, at every screen size — cards just get narrower
   on small screens, they never drop to fewer columns or stack full
   width. JS (layoutMasonry in main.js) positions each .piece-card
   absolutely, packing into whichever of the 3 columns is currently
   shortest, so items stay in roughly left-to-right reading order
   while still avoiding the big gaps a plain grid leaves when card
   heights vary a lot. --piece-gap is the only thing CSS controls
   here; JS reads it so the gap still responds to these breakpoints. */
.piece-grid {
  --piece-gap: 26px;
  position: relative;
  /* Fallback shown until JS positions things (or if JS never runs, for
     any reason) — a plain 3-column grid, not perfect masonry, but never
     a one-per-row stack. Once layoutMasonry() runs it sets
     position:absolute on each card, which overrides this placement —
     grid keeps working fine underneath that regardless. */
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--piece-gap);
  align-items: start;
}
@media (max-width: 900px) { .piece-grid { --piece-gap: 16px; } }
@media (max-width: 640px) { .piece-grid { --piece-gap: 8px; } }

.piece-grid .piece-card {
  margin-bottom: 0; /* spacing comes from --piece-gap via JS positioning, not margin */
}

@media (max-width: 640px) {
  .piece-card .frame { margin-bottom: 6px; border-radius: var(--radius); }
  .piece-card h3 { font-size: 0.76rem; line-height: 1.25; margin-bottom: 1px; }
  .piece-card .piece-meta { font-size: 0.64rem; line-height: 1.3; }
  .piece-card .frame .tag { top: 5px; left: 5px; padding: 2px 6px; font-size: 0.56rem; gap: 3px; }
  .piece-card .frame .tag::before { width: 4px; height: 4px; }
}

/* ---------- Cards: studio pieces ---------- */
.series-block-section { padding-top: 56px; }
.series-block-section:first-of-type { padding-top: 24px; }
.series-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 26px; gap: 16px; flex-wrap: wrap; }
.series-head p { color: var(--color-text-muted); max-width: 56ch; }

.piece-card { position: relative; }
.piece-card .frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  margin-bottom: 14px;
  position: relative;
  display: flex;
  gap: 3px;
}

.piece-card .frame img {
  width: 100%;
  height: auto;
  display: block;
  cursor: zoom-in;
  flex: 1 1 0;
  min-width: 0;
}

.piece-card .frame img + img {
  margin-top: 0;
}.piece-card .frame .placeholder { min-height: 220px; display: flex; align-items: center; justify-content: center; color: var(--color-text-dim); font-size: 0.8rem; text-align: center; padding: 20px; }
.piece-card .frame .tag { position: absolute; top: 12px; left: 12px; background: color-mix(in srgb, var(--color-bg) 82%, transparent); backdrop-filter: blur(4px); }
.piece-card .frame .photo-count {
  position: absolute; bottom: 8px; right: 8px; z-index: 1;
  background: color-mix(in srgb, var(--color-bg) 70%, transparent); backdrop-filter: blur(4px);
  color: var(--color-text); font-size: 0.68rem; font-weight: 600; padding: 2px 7px; border-radius: 100px;
}
@media (max-width: 640px) { .piece-card .frame .photo-count { font-size: 0.56rem; padding: 1px 5px; bottom: 5px; right: 5px; } }
.piece-card h3 { font-size: 1.05rem; margin-bottom: 3px; }
.piece-card .piece-meta { color: var(--color-text-dim); font-size: 0.85rem; }

/* ---------- Hero (home) — image behind the text, with an intro rise ----------
   aspect-ratio (not min-height) drives the box shape, so it's never at
   the mercy of content height collapsing to 0 — it's always width-
   proportional, at every breakpoint, and the image can never "disappear". */
.hero-banner {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 9 / 5;
  display: flex; align-items: center; justify-content: flex-end;
  border: 1px solid var(--color-border);
}
.hero-banner .hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0;
}
.hero-banner .hero-scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(270deg, rgba(10,8,6,0.88) 0%, rgba(10,8,6,0.72) 45%, rgba(10,8,6,0.35) 100%),
    linear-gradient(0deg, rgba(10,8,6,0.55), rgba(10,8,6,0.2) 40%);
}
:root[data-theme="light"] .hero-banner .hero-scrim {
  background:
    linear-gradient(270deg, rgba(246,236,214,0.92) 0%, rgba(246,236,214,0.78) 45%, rgba(246,236,214,0.4) 100%),
    linear-gradient(0deg, rgba(246,236,214,0.6), rgba(246,236,214,0.2) 40%);
}
.hero-banner .hero-content {
  position: relative;
  z-index: 2;
  padding: 4.5vw 3.5vw;
  width: 52%;
  max-width: none;
  color: #f3e4c2;
  text-align: right;
}
:root[data-theme="light"] .hero-banner .hero-content { color: #2c1507; }
.hero-banner .hero-content .lede { color: inherit; opacity: 0.92; }
.hero-banner .hero-content p.bio { color: inherit; opacity: 0.88; margin-top: 14px; }
@media (max-width: 900px) {
  .hero-banner {
    aspect-ratio: 9 / 5;
  }

  .hero-banner .hero-content {
    width: 52%;
    max-width: none;
    padding: 4.5vw 3.5vw;
  }

  .hero-banner .hero-content h1 {
    font-size: 3.2vw;
    line-height: 1.05;
  }

  .hero-banner .hero-content .lede {
    font-size: 1.35vw;
    line-height: 1.35;
  }

  .hero-banner .hero-content p.bio {
    font-size: 1.15vw;
    line-height: 1.45;
    margin-top: 1vw;
  }
}

@media (max-width: 720px) {
  .hero-banner {
    aspect-ratio: 9 / 5;
  }

  .hero-banner .hero-content {
    width: 62%;
    max-width: none;
    padding: 3.5vw 2.8vw;
  }

  .hero-banner .hero-content h1 {
    font-size: 3.3vw;
  }

  .hero-banner .hero-content .lede {
    font-size: 1.45vw;
  }

  .hero-banner .hero-content p.bio {
    font-size: 1.2vw;
  }
}

@media (max-width: 480px) {
  .hero-banner {
    aspect-ratio: 9 / 5;
  }

  .hero-banner .hero-content {
    width: 64%;
    max-width: none;
    padding: 2.8vw 2.2vw;
  }

  .hero-banner .hero-content h1 {
    font-size: 3.5vw;
  }

  .hero-banner .hero-content .lede {
    font-size: 1.5vw;
  }

  .hero-banner .hero-content p.bio {
    font-size: 1.25vw;
    line-height: 1.4;
  }
}
@keyframes rise-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
.rise-in { animation: rise-in .7s cubic-bezier(.2,.7,.3,1) both; }
.rise-in-1 { animation-delay: .05s; }
.rise-in-2 { animation-delay: .16s; }
.rise-in-3 { animation-delay: .27s; }

.video-frame { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--color-border); background: #000; }
.video-frame video { width: 100%; height: auto; display: block; }
.video-frame.rotate-90 video { transform: rotate(270deg); width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; }

.make-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.make-card { padding: 26px; border: 1px solid var(--color-border); border-radius: var(--radius-lg); transition: border-color .2s, transform .2s; }
.make-card:hover { border-color: var(--color-accent); transform: translateY(-2px); }
.make-card h3 { margin-bottom: 10px; }
.make-card p { color: var(--color-text-muted); font-size: 0.92rem; margin-bottom: 16px; }
.make-card .go { color: var(--color-accent); font-size: 0.88rem; font-weight: 600; }
@media (max-width: 820px) { .make-grid { grid-template-columns: 1fr; } }

/* ---------- Get in touch icon rows ---------- */
.contact-info-list { display: flex; flex-direction: column; gap: 14px; margin: 22px 0 30px; }
.contact-info-list .row { display: flex; align-items: center; gap: 12px; color: var(--color-text-muted); }
.contact-info-list .row a:hover { color: var(--color-accent); }
.contact-info-list .row svg { flex-shrink: 0; color: var(--color-accent); }

/* ---------- Type cards (commission types / event types) ----------
   One image or several — the frame is always a flex row at a shared
   height, so a single photo and a 3-photo strip use the same rule and
   the card is exactly as wide as its photos need, no leftover
   background showing where photos don't reach the edge of a box. */
.type-card { border: 1px solid var(--color-border); border-radius: var(--radius-lg); overflow: hidden; flex: 0 1 auto; min-width: 260px; max-width: 100%; }
.type-card .frame { background: var(--color-surface); display: flex; flex-wrap: wrap; gap: 3px; position: relative; }
.type-card .frame img { width: auto; height: 230px; max-width: 100%; object-fit: contain; background: var(--color-surface); flex: 0 0 auto; display: block; }
.type-card .frame .placeholder { width: 300px; max-width: 100%; height: 230px; display: flex; align-items: center; justify-content: center; color: var(--color-text-dim); font-size: 0.8rem; }
.type-card .body { padding: 18px 20px 22px; max-width: 420px; }
.type-card h3 { margin-bottom: 8px; }
.type-card p { color: var(--color-text-muted); font-size: 0.9rem; }

@media (max-width: 640px) {
  .type-card .frame img, .type-card .frame .placeholder { height: 170px; }
  .type-card { min-width: 220px; }
}

/* ---------- Boxed panel (quote calculator etc) ---------- */
.panel {
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg);
  padding: 32px;
}
@media (max-width: 600px) { .panel { padding: 22px; } }

/* ---------- Skeleton / loading states ---------- */
.skeleton {
  background: linear-gradient(100deg, var(--color-surface) 28%, var(--color-surface-2) 48%, var(--color-surface) 68%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: var(--radius-lg);
}
@keyframes shimmer { 0% { background-position: 150% 0; } 100% { background-position: -50% 0; } }
.skeleton-card { border: 1px solid var(--color-border); border-radius: var(--radius-lg); overflow: hidden; break-inside: avoid; margin-bottom: 26px; }
.skeleton-card .skeleton-img { height: 220px; border-radius: 0; }
.skeleton-card .skeleton-line { height: 13px; margin: 14px 16px 0; }
.skeleton-card .skeleton-line.w60 { width: 55%; }
.skeleton-card .skeleton-line.last { margin-bottom: 16px; }
.skeleton-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; border-top: 1px solid var(--color-border); }
.skeleton-row .skeleton-line { height: 14px; }

img.lazy-fade { opacity: 0; transition: opacity .45s ease; }
img.lazy-fade.is-loaded { opacity: 1; }

/* ---------- Lightbox viewer (studio pieces) ---------- */
body.lightbox-open { overflow: hidden; }
.lightbox {
  position: fixed; inset: 0; z-index: 300; display: none;
  align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox-backdrop {
  position: absolute; inset: 0;
  background: rgba(10,6,3,0.74);
  backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px);
  opacity: 0; transition: opacity .3s ease; cursor: zoom-out;
}
.lightbox.open .lightbox-backdrop { opacity: 1; }
.lightbox-stage {
  position: relative; z-index: 2; max-width: 88vw; max-height: 76vh;
  display: flex; align-items: center; justify-content: center;
  touch-action: pan-y;
}
.lightbox-stage img {
  max-width: 88vw; max-height: 76vh; width: auto; height: auto; object-fit: contain;
  border-radius: var(--radius-lg); box-shadow: 0 30px 80px rgba(0,0,0,0.5);
  background: var(--color-surface);
  transition: transform .4s cubic-bezier(.2,.8,.2,1), opacity .25s ease;
}
.lightbox-close, .lightbox-nav {
  position: absolute; z-index: 3;
  background: rgba(20,14,8,0.55); border: 1px solid rgba(255,255,255,0.16);
  color: #f3e4c2; border-radius: 50%; width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  font-size: 1.3rem; line-height: 1; padding: 0;
  opacity: 0; transition: opacity .25s ease .12s, background .2s;
}
.lightbox.open .lightbox-close, .lightbox.open .lightbox-nav { opacity: 1; }
.lightbox-close:hover, .lightbox-nav:hover { background: rgba(20,14,8,0.85); }
.lightbox-nav:disabled { opacity: 0.25 !important; cursor: default; }
.lightbox-nav:disabled:hover { background: rgba(20,14,8,0.55); }
.lightbox-close { top: 20px; right: 20px; }
.lightbox-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-caption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 30px 28px 24px; text-align: center;
  background: linear-gradient(0deg, rgba(10,6,3,0.88), transparent);
  opacity: 0; transition: opacity .3s ease .1s;
}
.lightbox.open .lightbox-caption { opacity: 1; }
.lightbox-caption h3 { color: #f3e4c2; font-size: 1.1rem; }
.lightbox-caption .lightbox-meta { color: #cbaa7e; font-size: 0.86rem; margin-top: 4px; }
.lightbox-caption .tag { margin-top: 10px; }
.piece-card .frame[data-openable] { cursor: zoom-in; }
@media (max-width: 600px) {
  .lightbox-prev { left: 8px; } .lightbox-next { right: 8px; }
  .lightbox-close { top: 12px; right: 12px; width: 36px; height: 36px; }
  .lightbox-stage img { max-width: 94vw; max-height: 66vh; }
  .lightbox-caption { padding: 18px 20px 20px; }
}

/* ---------- Signature divider (brushstroke) ---------- */
.brush-divider { width: 84px; height: 14px; margin: 0 0 20px; opacity: 0.85; }
.brush-divider path { fill: var(--color-accent); }

/* ---------- Utility ---------- */
.stack { display: flex; flex-direction: column; gap: 10px; }
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.empty-state {
  border: 1px dashed var(--color-border); border-radius: var(--radius-lg);
  padding: 40px 28px; text-align: center; color: var(--color-text-dim);
}
