/* ============================================================
   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: 8px;
  --radius-lg: 16px;
  --radius-xl: 26px;

  /* "Liquid glass" surface — now the site's consistent language for
     every floating box (nav, cards, panels, form fields, work
     sections), not just a couple of pills. It only reads as glass
     because there's something with real light and shadow behind it
     to blur — see the atmosphere layer on body, a few rules down. */
  --glass-bg: color-mix(in srgb, var(--color-surface) 46%, transparent);
  --glass-bg-soft: color-mix(in srgb, var(--color-surface) 34%, transparent);
  --glass-border: color-mix(in srgb, var(--color-text) 16%, transparent);
  --glass-blur: blur(22px) saturate(165%);
  --glass-blur-soft: blur(14px) saturate(150%);
  --shadow-raised: 0 1px 2px rgba(10,6,2,0.14), 0 14px 32px -14px rgba(10,6,2,0.38);
  --shadow-raised-lg: 0 2px 6px rgba(10,6,2,0.16), 0 26px 54px -20px rgba(10,6,2,0.42);
  --glass-shadow: inset 0 1px 0 rgba(255,255,255,0.07), 0 1px 2px rgba(10,6,2,0.14), 0 14px 32px -14px rgba(10,6,2,0.38);
  --glass-shadow-lg: inset 0 1px 0 rgba(255,255,255,0.09), 0 2px 6px rgba(10,6,2,0.16), 0 26px 54px -20px rgba(10,6,2,0.42);
}

: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-color: 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),
    linear-gradient(180deg, color-mix(in srgb, var(--color-bg) 28%, transparent) 0%, color-mix(in srgb, var(--color-bg) 42%, transparent) 100%),
    url("../img/bg-atmosphere.jpg");
  background-repeat: repeat, no-repeat, no-repeat;
  background-position: 0 0, center, center;
  background-size: 3px 3px, cover, cover;
  background-attachment: scroll, fixed, fixed;
}
/* Light theme keeps its original plain cream surface — the dark,
   blue atmosphere layer is a dark-mode-specific mood, not something
   that reads well against a light palette. */
:root[data-theme="light"] body {
  background-image: radial-gradient(circle at 1px 1px, rgba(var(--grain-rgb),0.035) 1px, transparent 0);
  background-repeat: repeat;
  background-size: 3px 3px;
  background-attachment: scroll;
}
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: var(--glass-bg-soft);
  backdrop-filter: var(--glass-blur-soft);
  -webkit-backdrop-filter: var(--glass-blur-soft);
  border-bottom: 1px solid var(--glass-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(--glass-bg); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--glass-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: 720px) {
  section { padding: 42px 0; }
  .section-head { margin-bottom: 22px; }
}
@media (max-width: 480px) {
  section { padding: 32px 0; }
  .section-head { margin-bottom: 18px; }
}

/* ---------- 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(--glass-bg-soft); border: 1px solid var(--glass-border);
  color: var(--color-text); padding: 12px 14px; border-radius: var(--radius); font-size: 0.95rem;
  font-family: var(--font-body);
  backdrop-filter: var(--glass-blur-soft); -webkit-backdrop-filter: var(--glass-blur-soft);
  transition: border-color .2s, background .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: 6px; } }
@media (max-width: 480px) {
  .event-row { padding: 11px 0; }
  .event-row h3 { font-size: 1rem; }
  .event-row .event-meta { font-size: 0.8rem; }
}

/* ---------- 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 */
}
/* Hidden by default; the mobile breakpoint below switches this on and
   hides .meta-full instead, so only name + size show on small phones. */
.piece-card .piece-meta .meta-compact { display: none; }

@media (max-width: 640px) {
  .piece-card .frame { margin-bottom: 8px; border-radius: var(--radius); }
  .piece-card h3 { font-size: 0.88rem; line-height: 1.3; margin-bottom: 2px; letter-spacing: 0.005em; }
  .piece-card .piece-meta { font-size: 0.74rem; line-height: 1.35; }
  /* Compact status indicator — a full text pill can be wider than the
     card itself on small phones (cards stay 3-columns-always by
     design), so mobile shows a small colored dot instead of a label. */
  .piece-card .frame .tag {
    top: 7px; left: 7px; padding: 0; gap: 0; border: none; background: none;
  }
  .piece-card .frame .tag::before {
    width: 9px; height: 9px;
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--color-bg) 55%, transparent);
  }
  .piece-card .frame .tag .tag-text { display: none; }
  /* Only name + size on mobile — medium and year drop out of view */
  .piece-card .piece-meta .meta-full { display: none; }
  .piece-card .piece-meta .meta-compact { display: inline; }
}
/* Smallest phones: still 3 columns (by design), so trim the gap
   further rather than the type — text stays legible, only the
   whitespace between cards shrinks. */
@media (max-width: 400px) {
  .piece-grid { --piece-gap: 6px; }
  .piece-card h3 { font-size: 0.82rem; }
  .piece-card .piece-meta { font-size: 0.68rem; }
}

/* ---------- 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(--glass-bg); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  margin-bottom: 14px;
  position: relative;
  display: flex;
  gap: 3px;
  box-shadow: var(--glass-shadow);
  transition: box-shadow .25s ease, transform .25s ease;
}
.piece-card:hover .frame { box-shadow: var(--glass-shadow-lg); transform: translateY(-2px); }

.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-xl); overflow: hidden;
  aspect-ratio: 9 / 5;
  display: flex; align-items: center; justify-content: flex-end;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-raised-lg);
}
.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;
  backdrop-filter: blur(2px);
  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: auto;
    min-height: 400px;
  }

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

  .hero-banner .hero-content h1 {
    font-size: clamp(1.7rem, 4.4vw, 2.4rem);
    line-height: 1.08;
  }

  .hero-banner .hero-content .lede {
    font-size: clamp(1rem, 2vw, 1.15rem);
    line-height: 1.4;
  }

  .hero-banner .hero-content p.bio {
    font-size: clamp(0.88rem, 1.6vw, 1rem);
    line-height: 1.48;
    margin-top: 1vw;
  }
}

@media (max-width: 720px) {
  .hero-banner {
    aspect-ratio: auto;
    min-height: 420px;
  }

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

  .hero-banner .hero-content h1 {
    font-size: clamp(1.5rem, 5.6vw, 2rem);
  }

  .hero-banner .hero-content .lede {
    font-size: clamp(0.92rem, 2.6vw, 1.05rem);
  }

  .hero-banner .hero-content p.bio {
    font-size: clamp(0.82rem, 2.2vw, 0.95rem);
  }
}

@media (max-width: 480px) {
  .hero-banner {
    aspect-ratio: auto;
    min-height: 400px;
  }

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

  .hero-banner .hero-content h1 {
    font-size: clamp(1.35rem, 7vw, 1.75rem);
  }

  .hero-banner .hero-content .lede {
    font-size: clamp(0.85rem, 3.4vw, 1rem);
  }

  .hero-banner .hero-content p.bio {
    font-size: clamp(0.78rem, 3vw, 0.92rem);
    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; box-shadow: var(--shadow-raised); transition: transform .25s ease, box-shadow .25s ease; }
.video-frame:hover { transform: translateY(-2px); box-shadow: var(--shadow-raised-lg); }
.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(--glass-border); border-radius: var(--radius-lg);
  background: var(--glass-bg); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  transition: border-color .2s, transform .2s, box-shadow .2s; box-shadow: var(--glass-shadow);
}
.make-card:hover { border-color: var(--color-accent); transform: translateY(-3px); box-shadow: var(--glass-shadow-lg); }
.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(--glass-border); border-radius: var(--radius-lg); overflow: hidden;
  background: var(--glass-bg); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  flex: 0 1 auto; min-width: 260px; max-width: 100%; box-shadow: var(--glass-shadow); transition: transform .25s ease, box-shadow .25s ease;
}
.type-card:hover { transform: translateY(-3px); box-shadow: var(--glass-shadow-lg); }
.type-card .frame { display: flex; flex-wrap: wrap; gap: 3px; position: relative; }
.type-card .frame img { width: auto; height: 230px; max-width: 100%; object-fit: contain; background: transparent; 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(--glass-bg); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border); border-radius: var(--radius-lg);
  padding: 32px; box-shadow: var(--glass-shadow-lg);
}
@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);
}

/* ============================================================
   SCROLL-REVEAL ANIMATIONS
   ============================================================ */
[data-reveal] {
  opacity: 0; transform: translateY(22px);
  transition: opacity .7s cubic-bezier(.2,.7,.3,1), transform .7s cubic-bezier(.2,.7,.3,1);
  transition-delay: var(--reveal-delay, 0s);
  will-change: opacity, transform;
}
[data-reveal].in-view { opacity: 1; transform: translateY(0); }

/* Horizontal variant — used for studio-piece cards and the testimonials
   rail so those images ease in moving left to right, distinct from the
   vertical rise used everywhere else. */
[data-reveal-x] {
  opacity: 0; transform: translateX(-46px);
  transition: opacity .7s cubic-bezier(.2,.7,.3,1), transform .7s cubic-bezier(.2,.7,.3,1);
  transition-delay: var(--reveal-delay, 0s);
  will-change: opacity, transform;
}
[data-reveal-x].in-view { opacity: 1; transform: translateX(0); }

/* Deep-linked section briefly glows so it's obvious what a share
   link / "See Live Art Pieces" button jumped to. */
@keyframes hash-flash {
  0%, 100% { box-shadow: none; }
  30% { box-shadow: 0 0 0 3px var(--color-accent-soft); }
}
.hash-target-flash .series-block { animation: hash-flash 1.5s ease; border-radius: var(--radius-lg); }

/* ============================================================
   SHARE BUTTON — sits next to a series heading; deep-links to
   that section. Small glass pill, consistent everywhere it's used.
   ============================================================ */
.share-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 15px; border-radius: 100px; cursor: pointer;
  font-family: var(--font-body); font-size: 0.82rem; font-weight: 600;
  color: var(--color-text-muted); border: 1px solid var(--color-border);
  background: var(--glass-bg); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  transition: border-color .2s, color .2s, transform .15s;
}
.share-btn:hover { border-color: var(--color-accent); color: var(--color-accent); transform: translateY(-1px); }
.share-btn:active { transform: translateY(0); }
.share-btn svg { width: 14px; height: 14px; flex-shrink: 0; }
.share-btn.share-copied { border-color: var(--color-sage); color: var(--color-sage); }
.series-head .head-actions { display: flex; align-items: center; gap: 10px; }

/* ============================================================
   EVENT-PAGE "SEE LIVE ART PIECES" LINKS
   ============================================================ */
.event-links-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.event-link-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: 100px;
  font-size: 0.9rem; font-weight: 600; color: var(--color-accent);
  border: 1px solid var(--color-accent-soft);
  background: var(--glass-bg); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--shadow-raised);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.event-link-pill:hover { transform: translateY(-2px); box-shadow: var(--shadow-raised-lg); background: var(--color-accent-soft); }

/* ============================================================
   ABOUT-PAGE WORK SECTIONS (video in a rounded glass frame, text
   underneath, link to the relevant section) — alternates side to
   side on wide screens for visual rhythm, stacks on mobile.
   ============================================================ */
.work-sections { display: flex; flex-direction: column; gap: 36px; }
.work-section {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: stretch;
  border-radius: var(--radius-xl); overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--glass-bg); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--shadow-raised-lg);
  transition: transform .3s cubic-bezier(.2,.7,.3,1), box-shadow .3s ease;
}
.work-section:hover { transform: translateY(-2px); }
.work-section:nth-child(even) { direction: rtl; }
.work-section:nth-child(even) > * { direction: ltr; }
.work-section-media {
  background: #000;
  min-width: 0;
  min-height: 180px;
  overflow: hidden;
}
.work-section-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.work-section-body {
  padding: 28px; display: flex; flex-direction: column; justify-content: center;
}
.work-section-body h3 { margin-bottom: 12px; }
.work-section-body p { color: var(--color-text-muted); line-height: 1.6; }
.work-section-body .go {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 16px;
  color: var(--color-accent); font-size: 0.9rem; font-weight: 600;
  transition: gap .2s ease;
}
.work-section-body .go:hover { gap: 10px; }

/* Video and caption stay side by side (alternating left/right) at
   every width now that they share one card — padding and type just
   tighten as the columns narrow, rather than stacking. */
@media (max-width: 640px) {
  .work-section-body { padding: 16px; }
  .work-section-body h3 { font-size: 1rem; margin-bottom: 6px; line-height: 1.25; }
  .work-section-body p { font-size: 0.82rem; line-height: 1.45; }
  .work-section-body .go { font-size: 0.8rem; margin-top: 10px; }
}
@media (max-width: 480px) {
  .work-sections { gap: 18px; }
  .work-section-body { padding: 12px; }
  .work-section-body h3 { font-size: 0.9rem; margin-bottom: 4px; }
  .work-section-body p { font-size: 0.74rem; line-height: 1.4; }
  .work-section-body .go { font-size: 0.74rem; margin-top: 8px; }
}

/* ============================================================
   TESTIMONIALS — coverflow-style slideshow: one photo centered
   and large, previous/next visible at each side (smaller, blurred,
   translucent), sliding on click/swipe/timer.
   ============================================================ */
.testimonials-head { text-align: center; margin-bottom: 8px; }
.testimonial-rail {
  position: relative; height: 380px; margin-top: 30px;
  display: flex; align-items: center; justify-content: center;
  perspective: 1200px; overflow: hidden;
}
.testimonial-slide {
  position: absolute; width: 220px; height: 280px; border-radius: var(--radius-lg);
  overflow: hidden; border: 1px solid var(--glass-border); background: var(--glass-bg);
  box-shadow: var(--glass-shadow-lg);
  cursor: pointer; text-align: center;
  transition: transform .55s cubic-bezier(.2,.7,.3,1), opacity .55s ease, filter .55s ease;
  transform: translateX(calc(var(--offset, 0) * 150px)) scale(0.72);
  opacity: 0; filter: blur(3px);
}
.testimonial-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.testimonial-slide.is-center {
  width: 260px; height: 330px; transform: translateX(0) scale(1);
  opacity: 1; filter: none; z-index: 3; cursor: default;
}
.testimonial-slide.is-prev, .testimonial-slide.is-next {
  opacity: 0.55; filter: blur(1.5px); z-index: 2;
}
.testimonial-slide.is-hidden { opacity: 0; pointer-events: none; z-index: 1; }
.testimonial-name {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 22px 14px 14px; font-size: 0.85rem; font-weight: 600; color: #f3e4c2;
  background: linear-gradient(0deg, rgba(10,6,3,0.85), transparent);
}
@media (max-width: 640px) {
  .testimonial-rail { height: 300px; }
  .testimonial-slide { width: 160px; height: 210px; transform: translateX(calc(var(--offset, 0) * 96px)) scale(0.72); }
  .testimonial-slide.is-center { width: 200px; height: 260px; }
}

/* ============================================================
   PERFORMANCE — offscreen sections skip layout/paint work until
   they're near the viewport (safe here: each section has a natural
   height so nothing jumps when it's promoted back in).
   ============================================================ */
@media (min-width: 1px) {
  #process, #what-i-make, #testimonials, .series-block-section:not(:first-of-type) {
    content-visibility: auto;
    contain-intrinsic-size: 1px 900px;
  }
}
