/* ============================================================
   STUDIO LUMIÈRE — editorial photography site
   Shared stylesheet
   ============================================================ */

:root {
  --bg:        #f5f1e8;       /* warm cream */
  --bg-2:      #ede7d8;       /* deeper cream */
  --paper:     #faf7f0;       /* lightest paper */
  --ink:       #181613;       /* warm near-black */
  --ink-2:     #2b2723;
  --muted:     #6c655a;
  --line:      rgba(24,22,19,.12);
  --line-2:    rgba(24,22,19,.22);
  --accent:    #8a3a1f;       /* burnt sienna, used sparingly */
  --tag-bg:    rgba(24,22,19,.06);

  --serif:     "Fraunces", "Cormorant Garamond", "Times New Roman", serif;
  --sans:      "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --mono:      "JetBrains Mono", "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --maxw:      1360px;
  --pad-x:     clamp(20px, 4vw, 56px);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ---------- typography ---------- */
.serif       { font-family: var(--serif); font-weight: 350; letter-spacing: -.01em; }
.mono        { font-family: var(--mono); }
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}
.display {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(48px, 8vw, 132px);
  line-height: .95;
  letter-spacing: -.025em;
}
.display em { font-style: italic; font-weight: 300; color: var(--ink); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 350; margin: 0; letter-spacing: -.015em; }
h2 { font-size: clamp(32px, 4.4vw, 64px); line-height: 1.02; }
h3 { font-size: clamp(22px, 2vw, 30px); }
p  { margin: 0; }

/* ---------- layout ---------- */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}
.section { padding: clamp(64px, 9vw, 140px) 0; }
.section--tight { padding: clamp(40px, 6vw, 80px) 0; }
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar__inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--pad-x);
  max-width: var(--maxw); margin: 0 auto;
}
.brand {
  display: flex; align-items: baseline; gap: 10px;
}
.brand__mark {
  font-family: var(--serif);
  font-weight: 350;
  font-size: 22px;
  letter-spacing: .04em;
}
.brand__mark em { font-style: italic; }
.brand__sub {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .22em;
  color: var(--muted);
  text-transform: uppercase;
}
.nav {
  display: flex; gap: 28px; align-items: center;
}
.nav a {
  font-size: 13px;
  letter-spacing: .02em;
  color: var(--ink-2);
  position: relative;
  padding-bottom: 2px;
}
.nav a.is-active::after,
.nav a:hover::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1px; background: var(--ink);
}
.nav a.cta {
  font-family: var(--mono);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: .18em;
  border: 1px solid var(--ink);
  padding: 9px 14px;
}
.nav a.cta:hover { background: var(--ink); color: var(--bg); }
.nav a.cta::after { display: none; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: clamp(560px, 88vh, 880px);
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
}
.hero__meta {
  display: flex; justify-content: space-between;
  padding: 24px var(--pad-x);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--muted);
  text-transform: uppercase;
}
.hero__stage {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  padding: 0 var(--pad-x);
}
.hero__slides {
  position: relative;
  border: 1px solid var(--line);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--bg-2);
}
.hero__slide {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity 1.4s ease;
}
.hero__slide.is-active { opacity: 1; }
.hero__title {
  position: absolute; left: var(--pad-x); right: var(--pad-x);
  bottom: clamp(28px, 6vw, 80px);
  pointer-events: none;
  mix-blend-mode: multiply;
}
.hero__title h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(56px, 11vw, 180px);
  line-height: .9;
  letter-spacing: -.035em;
  color: var(--ink);
}
.hero__title em { font-style: italic; }
.hero__bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px var(--pad-x);
  border-top: 1px solid var(--line);
  margin-top: 24px;
}
.hero__counter { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; color: var(--muted); }
.hero__counter b { color: var(--ink); font-weight: 500; }
.hero__caption { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; color: var(--muted); text-transform: uppercase; }

/* ---------- placeholder tile (photograph stand-in) ---------- */
.ph {
  position: relative;
  background: linear-gradient(135deg, var(--ph-a, #d9cdb4) 0%, var(--ph-b, #c5b89c) 60%, var(--ph-c, #b6a888) 100%);
  overflow: hidden;
  isolation: isolate;
}
.ph::before {
  /* film grain */
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(rgba(0,0,0,.07) 1px, transparent 1px),
    radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 3px 3px, 5px 5px;
  background-position: 0 0, 1px 2px;
  mix-blend-mode: multiply;
  opacity: .55;
}
.ph::after {
  /* subtle vignette */
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(120% 100% at 50% 50%, transparent 50%, rgba(0,0,0,.18) 100%);
  pointer-events: none;
}
.ph__lbl {
  position: absolute; left: 14px; bottom: 12px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(24,22,19,.62);
  z-index: 2;
}
.ph__idx {
  position: absolute; right: 14px; top: 12px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .12em;
  color: rgba(24,22,19,.5);
  z-index: 2;
}
/* when a real uploaded image fills the tile */
.ph.has-img::before { opacity: 0; }
.ph.has-img::after { background: radial-gradient(120% 100% at 50% 50%, transparent 60%, rgba(0,0,0,.14) 100%); }
.ph.has-img .ph__lbl, .ph.has-img .ph__idx { display: none; }
.cat-card .ph.has-img .ph__lbl { display: none; }

/* palette variants */
.ph--sand   { --ph-a:#e3d7bd; --ph-b:#c7b693; --ph-c:#a89878; }
.ph--ivory  { --ph-a:#efe7d4; --ph-b:#d8ccb0; --ph-c:#bfb091; }
.ph--clay   { --ph-a:#d4b89e; --ph-b:#b6957a; --ph-c:#8c6c52; }
.ph--moss   { --ph-a:#c9c8a8; --ph-b:#9aa087; --ph-c:#6f7860; }
.ph--smoke  { --ph-a:#bdbab2; --ph-b:#8c8a82; --ph-c:#5d5b54; }
.ph--ink    { --ph-a:#4a4640; --ph-b:#2c2925; --ph-c:#1a1815; }
.ph--blush  { --ph-a:#e7c9bd; --ph-b:#c89e8e; --ph-c:#9a7363; }
.ph--rust   { --ph-a:#c69074; --ph-b:#9a604a; --ph-c:#6a3a28; }
.ph--sage   { --ph-a:#cad6c2; --ph-b:#94a48b; --ph-c:#65755e; }
.ph--noir   { --ph-a:#2e2a25; --ph-b:#1c1a17; --ph-c:#0c0b0a; }
.ph.is-dark .ph__lbl, .ph.is-dark .ph__idx { color: rgba(245,241,232,.62); }

/* ---------- buttons / chips ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  padding: 14px 22px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  transition: background .2s, color .2s;
}
.btn:hover { background: var(--ink); color: var(--bg); }
.btn--solid { background: var(--ink); color: var(--bg); }
.btn--solid:hover { background: transparent; color: var(--ink); }
.btn--ghost { border-color: var(--line-2); color: var(--ink-2); }
.btn .arrow { display: inline-block; transition: transform .25s; }
.btn:hover .arrow { transform: translateX(4px); }

.chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  padding: 7px 12px;
  background: var(--tag-bg);
  color: var(--ink-2);
  border-radius: 999px;
}

/* ---------- category grid (home) ---------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}
.cat-card {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--bg-2);
  border: 1px solid var(--line);
}
.cat-card .ph { width: 100%; height: 100%; }
.cat-card__body {
  position: absolute; left: 18px; bottom: 16px; right: 18px;
  display: flex; justify-content: space-between; align-items: flex-end;
  color: var(--ink);
  z-index: 3;
}
.cat-card__name { font-family: var(--serif); font-size: clamp(22px, 2.4vw, 38px); font-weight: 350; letter-spacing: -.01em; }
.cat-card__meta { font-family: var(--mono); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-2); }
.cat-card:hover .ph::after { background: radial-gradient(120% 100% at 50% 50%, transparent 40%, rgba(0,0,0,.30) 100%); }

.cat-card.is-dark .cat-card__body { color: var(--bg); }
.cat-card.is-dark .cat-card__meta { color: rgba(245,241,232,.7); }

/* spans for editorial rhythm */
.span-4  { grid-column: span 4; }
.span-5  { grid-column: span 5; }
.span-6  { grid-column: span 6; }
.span-7  { grid-column: span 7; }
.span-8  { grid-column: span 8; }
.span-12 { grid-column: span 12; }

/* ---------- masonry-ish gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
  grid-auto-rows: 80px;
  grid-auto-flow: dense;
}
.gallery .tile { position: relative; cursor: zoom-in; overflow: hidden; }
.gallery .tile .ph { width: 100%; height: 100%; }
.gallery .tile:hover .ph::after { background: radial-gradient(120% 100% at 50% 50%, transparent 30%, rgba(0,0,0,.35) 100%); }

/* tile size variants */
.tile.t-a { grid-column: span 5; grid-row: span 6; }
.tile.t-b { grid-column: span 4; grid-row: span 4; }
.tile.t-c { grid-column: span 3; grid-row: span 4; }
.tile.t-d { grid-column: span 7; grid-row: span 5; }
.tile.t-e { grid-column: span 5; grid-row: span 5; }
.tile.t-f { grid-column: span 4; grid-row: span 6; }
.tile.t-g { grid-column: span 4; grid-row: span 3; }
.tile.t-h { grid-column: span 6; grid-row: span 4; }
.tile.t-i { grid-column: span 3; grid-row: span 3; }
.tile.t-j { grid-column: span 4; grid-row: span 5; }
.tile.t-k { grid-column: span 8; grid-row: span 5; }
.tile.t-l { grid-column: span 6; grid-row: span 5; }

/* ---------- breadcrumbs / page header ---------- */
.pagehead {
  padding: clamp(48px, 7vw, 100px) 0 clamp(28px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
}
.pagehead .crumbs {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}
.pagehead .crumbs a:hover { color: var(--ink); }
.pagehead__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: end;
}
.pagehead h1 {
  font-size: clamp(56px, 9vw, 140px);
  line-height: .92;
  letter-spacing: -.03em;
  font-weight: 300;
}
.pagehead h1 em { font-style: italic; }
.pagehead__meta {
  display: flex; flex-direction: column; gap: 8px;
  font-size: 14px;
  color: var(--muted);
}
.pagehead__meta b { color: var(--ink); font-weight: 500; }

/* ---------- filters bar ---------- */
.filters {
  display: flex; flex-wrap: wrap; gap: 8px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
}
.filters .pill {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  padding: 9px 14px;
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--ink-2);
  border-radius: 999px;
}
.filters .pill.is-active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.filters .pill:hover:not(.is-active) { background: var(--tag-bg); }

/* ---------- editorial pair / split ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
}
.split--text {
  font-size: 16px;
  color: var(--ink-2);
  max-width: 52ch;
}
.split--text p + p { margin-top: 14px; }
.split--media .ph { aspect-ratio: 4/5; width: 100%; }

/* ---------- testimonials ---------- */
.quote {
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(24px, 2.8vw, 40px);
  line-height: 1.2;
  letter-spacing: -.01em;
  color: var(--ink);
}
.quote-meta { font-family: var(--mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-top: 20px; }
.tcard {
  padding: 36px;
  border: 1px solid var(--line);
  background: var(--paper);
  display: flex; flex-direction: column;
  min-height: 280px;
}
.tcard .quote { font-size: 22px; line-height: 1.35; }
.tcard .quote-meta { margin-top: auto; }

/* ---------- services / pricing ---------- */
.pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.price {
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 36px 30px;
  display: flex; flex-direction: column;
  min-height: 460px;
}
.price__name { font-family: var(--serif); font-size: 32px; font-weight: 350; letter-spacing: -.015em; }
.price__num  { font-family: var(--serif); font-style: italic; font-size: 44px; font-weight: 300; margin-top: 18px; }
.price__num span { font-family: var(--mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); font-style: normal; vertical-align: middle; margin-left: 6px; }
.price__list { list-style: none; padding: 0; margin: 24px 0 28px; font-size: 14px; color: var(--ink-2); }
.price__list li { padding: 10px 0; border-top: 1px solid var(--line); display: flex; gap: 10px; }
.price__list li::before { content: "—"; color: var(--muted); }
.price__cta { margin-top: auto; }
.price.is-featured { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.price.is-featured .price__list li { color: var(--bg); border-color: rgba(245,241,232,.18); }
.price.is-featured .price__list li::before { color: rgba(245,241,232,.5); }
.price.is-featured .price__num span { color: rgba(245,241,232,.6); }
.price.is-featured .btn { border-color: var(--bg); color: var(--bg); }
.price.is-featured .btn:hover { background: var(--bg); color: var(--ink); }

/* ---------- journal / blog ---------- */
.posts {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 26px;
}
.post {
  display: flex; flex-direction: column; gap: 14px;
}
.post .ph { aspect-ratio: 4/5; width: 100%; }
.post__meta { font-family: var(--mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.post__title { font-family: var(--serif); font-size: 24px; line-height: 1.15; font-weight: 350; letter-spacing: -.015em; }
.post__excerpt { font-size: 14px; color: var(--ink-2); max-width: 36ch; }

/* ---------- contact form ---------- */
.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 26px;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: span 2; }
.field label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input, .field select, .field textarea {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-2);
  padding: 10px 0;
  outline: none;
  transition: border-color .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); }
.field textarea { resize: vertical; min-height: 110px; }

/* ---------- footer ---------- */
.foot {
  border-top: 1px solid var(--line);
  padding: 60px 0 36px;
  background: var(--bg);
}
.foot__top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
}
.foot h4 { font-family: var(--mono); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-bottom: 16px; }
.foot__col a { display: block; padding: 5px 0; font-size: 14px; color: var(--ink-2); }
.foot__col a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.foot__big {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1;
  letter-spacing: -.02em;
}
.foot__bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 28px; border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted);
}

/* ---------- lightbox ---------- */
.lb {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(12, 11, 10, .96);
  display: none;
  align-items: center; justify-content: center;
}
.lb.is-open { display: flex; }
.lb__stage { position: relative; width: min(86vw, 1300px); height: min(82vh, 820px); }
.lb__stage .ph { width: 100%; height: 100%; }
.lb__close, .lb__prev, .lb__next {
  position: absolute;
  font-family: var(--mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(245,241,232,.7);
  background: transparent; border: 1px solid rgba(245,241,232,.25);
  padding: 10px 14px;
}
.lb__close { top: 24px; right: 24px; }
.lb__prev { left: -64px; top: 50%; transform: translateY(-50%); }
.lb__next { right: -64px; top: 50%; transform: translateY(-50%); }
.lb__close:hover, .lb__prev:hover, .lb__next:hover { color: var(--bg); border-color: var(--bg); }
.lb__caption {
  position: absolute; left: 0; right: 0; bottom: -52px;
  display: flex; justify-content: space-between;
  font-family: var(--mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: rgba(245,241,232,.6);
}

/* ---------- film modal player ---------- */
.filmlb__stage { width: min(86vw, 1180px); }
.filmlb__frame {
  position: relative; width: 100%; aspect-ratio: 16/9;
  background: #000; overflow: hidden; border: 1px solid rgba(245,241,232,.15);
}
.filmlb .lb__caption { color: rgba(245,241,232,.6); }

/* play affordance on film cards / posters */
.playable { position: relative; cursor: pointer; }
.playbtn {
  position: absolute; inset: 0; display: grid; place-items: center; z-index: 4;
}
.playbtn span {
  width: 72px; height: 72px; border-radius: 50%;
  background: rgba(245,241,232,.92); color: var(--ink);
  display: grid; place-items: center;
  font-size: 22px; padding-left: 4px;
  transition: transform .25s, background .25s;
}
.playable:hover .playbtn span { transform: scale(1.08); background: #fff; }
.playable .ph::after { background: radial-gradient(120% 100% at 50% 50%, rgba(0,0,0,.15) 30%, rgba(0,0,0,.45) 100%); }

/* =========================================================
   ADMIN
   ========================================================= */
.admin {
  background: #ece6d7;
}
.admin-shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}
.aside {
  background: var(--ink);
  color: var(--bg);
  padding: 28px 22px;
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column;
}
.aside__brand {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 350;
  letter-spacing: .02em;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(245,241,232,.16);
  margin-bottom: 22px;
}
.aside__brand em { font-style: italic; }
.aside__brand .tag {
  display: block;
  font-family: var(--mono); font-size: 9px; letter-spacing: .26em;
  color: rgba(245,241,232,.5); margin-top: 6px; text-transform: uppercase;
}
.aside__nav { display: flex; flex-direction: column; gap: 2px; }
.aside__nav a {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 12px;
  font-size: 13px;
  color: rgba(245,241,232,.72);
  border-radius: 4px;
}
.aside__nav a:hover { background: rgba(245,241,232,.06); color: var(--bg); }
.aside__nav a.is-active { background: rgba(245,241,232,.1); color: var(--bg); }
.aside__nav .dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: .5; }
.aside__group { font-family: var(--mono); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: rgba(245,241,232,.4); margin: 22px 12px 8px; }
.aside__foot {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(245,241,232,.16);
  display: flex; gap: 10px; align-items: center;
  font-size: 12px; color: rgba(245,241,232,.6);
}
.aside__avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(135deg,#b6a888,#8a3a1f);
  display: grid; place-items: center;
  font-family: var(--serif); font-size: 13px; color: var(--bg);
}

.main { padding: 26px 36px 60px; max-width: 100%; min-width: 0; }
.main__head {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 22px; border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
}
.main__head h1 { font-size: 36px; font-weight: 350; letter-spacing: -.015em; }
.main__head .sub { font-family: var(--mono); font-size: 11px; letter-spacing: .18em; color: var(--muted); text-transform: uppercase; margin-top: 4px; }
.main__head .actions { display: flex; gap: 10px; }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat {
  padding: 22px;
  background: var(--paper);
  border: 1px solid var(--line);
}
.stat__lbl { font-family: var(--mono); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.stat__num { font-family: var(--serif); font-size: 44px; font-weight: 300; line-height: 1; letter-spacing: -.02em; margin-top: 14px; }
.stat__sub { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; color: var(--accent); margin-top: 12px; }
.stat__sub.neg { color: #8a1f1f; }

.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 24px;
}
.panel__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.panel__title { font-family: var(--serif); font-size: 22px; font-weight: 350; letter-spacing: -.01em; }
.panel__sub { font-family: var(--mono); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }

.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); }
.table th { font-family: var(--mono); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.table tr:hover td { background: rgba(0,0,0,.02); }
.table td .ph { width: 56px; height: 40px; }

.badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 4px;
  background: var(--tag-bg);
  color: var(--ink-2);
}
.badge.green { background: #d8e6d0; color: #2d4d1f; }
.badge.amber { background: #ead9b5; color: #5a3e0f; }
.badge.red   { background: #e8c9c1; color: #5a1f10; }
.badge.blue  { background: #c9d6e6; color: #1f3a5a; }

.row-actions { display: flex; gap: 6px; }
.row-actions button, .row-actions a {
  font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  padding: 5px 8px;
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--ink-2);
}
.row-actions button:hover, .row-actions a:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* admin gallery grid (manage photos) */
.gallery-admin {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}
.gallery-admin .item {
  position: relative;
  aspect-ratio: 4/5;
  border: 1px solid var(--line);
}
.gallery-admin .item .ph { width: 100%; height: 100%; }
.gallery-admin .item__bar {
  position: absolute; left: 8px; right: 8px; bottom: 8px;
  display: flex; justify-content: space-between; align-items: center;
  background: rgba(245,241,232,.85);
  padding: 6px 8px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
}
.gallery-admin .item.is-cover::before {
  content: "COVER"; position: absolute; top: 8px; left: 8px;
  background: var(--ink); color: var(--bg);
  padding: 4px 8px;
  font-family: var(--mono); font-size: 9px; letter-spacing: .2em;
  z-index: 2;
}
.upload-tile {
  display: grid; place-items: center;
  aspect-ratio: 4/5;
  border: 1px dashed var(--line-2);
  background: rgba(0,0,0,.02);
  font-family: var(--mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
  text-align: center; padding: 14px;
}
.upload-tile:hover { background: rgba(0,0,0,.04); border-color: var(--ink); color: var(--ink); }

/* admin login */
.login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  background: var(--ink);
  color: var(--bg);
}
.login__left { padding: 56px; display: flex; flex-direction: column; justify-content: space-between; }
.login__left .brand__mark { color: var(--bg); }
.login__left .brand__sub { color: rgba(245,241,232,.5); }
.login__hero { font-family: var(--serif); font-weight: 300; font-size: clamp(40px, 5vw, 72px); line-height: 1; letter-spacing: -.03em; }
.login__hero em { font-style: italic; }
.login__foot { font-family: var(--mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: rgba(245,241,232,.5); }
.login__right { background: var(--bg); color: var(--ink); padding: 56px; display: flex; flex-direction: column; justify-content: center; }
.login__form { max-width: 380px; width: 100%; margin: 0 auto; }
.login__form h2 { font-size: 36px; margin-bottom: 8px; }
.login__form .sub { font-size: 14px; color: var(--muted); margin-bottom: 32px; }
.login__form .field { margin-bottom: 22px; }
.login__form .extra { display: flex; justify-content: space-between; align-items: center; font-size: 13px; margin-top: 8px; color: var(--muted); }
.login__form .extra a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* toast */
.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translate(-50%, 20px);
  background: var(--ink); color: var(--bg);
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  padding: 14px 22px; z-index: 300;
  opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* tabs */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.tabs a {
  padding: 12px 18px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.tabs a.is-active { color: var(--ink); border-color: var(--ink); }
.tabs a:hover { color: var(--ink); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
.nav-toggle { display: none; }
.admin-mobilebar { display: none; }
.admin-overlay { display: none; }

/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
  :root { --pad-x: clamp(18px, 3.5vw, 40px); }
  .foot__top { grid-template-columns: 1fr 1fr; gap: 30px; }
  .admin-shell { grid-template-columns: 200px 1fr; }
  .admin .main { padding: 24px 26px 50px; }
  .pricing { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .cat-grid { grid-template-columns: repeat(6, 1fr); }
  .span-4, .span-5, .span-6, .span-7, .span-8 { grid-column: span 6; }
  .pagehead__inner, .split, .form, .posts { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .login { grid-template-columns: 1fr; }
  .login__left { min-height: 240px; padding: 36px; }
  .login__right { padding: 40px 32px; }
}

/* ---------- Mobile navigation ---------- */
@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; background: transparent; border: 0; cursor: pointer; padding: 11px;
    margin-right: -8px;
  }
  .nav-toggle span { display: block; height: 1.5px; width: 100%; background: var(--ink); transition: transform .25s, opacity .2s; }
  .nav-toggle.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .nav-toggle.is-open span:nth-child(2) { opacity: 0; }
  .nav-toggle.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 4px var(--pad-x) 22px;
    display: none; box-shadow: 0 24px 44px rgba(0,0,0,.12);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 16px 2px; font-size: 16px; border-bottom: 1px solid var(--line); }
  .nav a::after { display: none !important; }
  .nav a.cta { border: 1px solid var(--ink); text-align: center; padding: 15px; margin-top: 16px; }
}

/* ---------- Admin off-canvas sidebar ---------- */
@media (max-width: 860px) {
  .admin-shell { grid-template-columns: 1fr; }
  .aside {
    position: fixed; top: 0; left: 0; bottom: 0; height: 100vh; width: 268px;
    z-index: 130; transform: translateX(-100%); transition: transform .3s ease;
  }
  .aside.is-open { transform: none; box-shadow: 0 0 80px rgba(0,0,0,.5); }
  .admin-overlay {
    display: block; position: fixed; inset: 0; background: rgba(12,11,10,.45);
    z-index: 120; opacity: 0; pointer-events: none; transition: opacity .3s;
  }
  .admin-overlay.show { opacity: 1; pointer-events: auto; }
  .admin .main { padding: 0 18px 48px; }
  .admin-mobilebar {
    display: flex; align-items: center; gap: 14px;
    position: sticky; top: 0; z-index: 90;
    background: color-mix(in oklab, #ece6d7 92%, transparent);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
    padding: 12px 4px; margin: 0 0 20px;
  }
  .admin-burger {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 42px; height: 42px; background: transparent; border: 1px solid var(--line-2); cursor: pointer; padding: 10px;
    flex-shrink: 0;
  }
  .admin-burger span { display: block; height: 1.5px; width: 100%; background: var(--ink); }
  .admin-mobilebar__title { font-family: var(--serif); font-size: 19px; flex: 1; }
  .admin-mobilebar__title em { font-style: italic; }
  .admin-mobilebar a { font-family: var(--mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
  .main__head h1 { font-size: 30px; }
}

/* heading-row (title + button) wraps so the button isn't crushed */
@media (max-width: 760px) {
  [style*="justify-content:space-between"][style*="align-items:end"] { flex-wrap: wrap; gap: 18px; }
  /* admin list+detail CRM panes stack once the sidebar is off-canvas */
  .admin [style*="grid-template-columns:1.4fr"],
  .admin [style*="grid-template-columns:1.6fr"],
  .admin [style*="grid-template-columns:1.3fr"],
  .admin [style*="grid-template-columns:1.7fr"],
  .admin [style*="grid-template-columns:2fr 1fr"] { grid-template-columns: 1fr !important; }
}

/* ---------- Phone ---------- */
@media (max-width: 640px) {
  /* every ad-hoc inline grid collapses to a single column */
  [style*="grid-template-columns"] { grid-template-columns: 1fr !important; }

  /* home stat strip: drop the vertical dividers / awkward padding when stacked */
  .section--tight .container[style*="repeat(4,1fr)"] > div {
    border-right: 0 !important; border-bottom: 1px solid var(--line);
    padding: 16px 0 !important;
  }
  .section--tight .container[style*="repeat(4,1fr)"] > div:last-child { border-bottom: 0; }

  /* press-logo / kit strips: 2-up instead of a tall single column */
  .section--tight [style*="repeat(5, 1fr)"],
  .section--tight [style*="repeat(5,1fr)"] { grid-template-columns: 1fr 1fr !important; gap: 24px !important; }

  /* big editorial display type fits a 390px screen */
  .hero__title h1 { font-size: clamp(48px, 15vw, 72px); }
  .pagehead h1 { font-size: clamp(46px, 14vw, 70px); }
  .display, .foot__big { font-size: clamp(34px, 11vw, 52px); }

  /* contact form footer row: button full width under the note */
  .field--full[style*="space-between"] { flex-direction: column !important; align-items: stretch !important; gap: 14px; }
  .field--full[style*="space-between"] .btn { justify-content: center; }

  .cat-grid { grid-template-columns: 1fr !important; gap: 12px; }
  .cat-card { aspect-ratio: 3 / 2 !important; }

  /* masonry → tidy 2-up */
  .gallery { grid-template-columns: repeat(2, 1fr) !important; grid-auto-rows: 124px !important; gap: 10px; }
  .gallery .tile { grid-column: span 1 !important; grid-row: span 2 !important; }

  .section { padding: 52px 0; }
  .hero { min-height: 70vh; }
  .hero__meta { font-size: 9px; letter-spacing: .12em; gap: 8px; }
  .hero__meta span:nth-child(2) { display: none; }
  .hero__bottom { flex-direction: column; align-items: flex-start; gap: 6px; }

  .foot__top { grid-template-columns: 1fr !important; gap: 30px; }
  .stat-grid { grid-template-columns: 1fr 1fr !important; }
  .btn { padding: 13px 18px; }

  /* admin: stack panels, scroll wide tables */
  .main__head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .main__head .actions { width: 100%; flex-wrap: wrap; }
  .main__head .actions .btn, .main__head .actions a { flex: 1; justify-content: center; text-align: center; }
  .panel { overflow-x: auto; }
  table.table { min-width: 440px; }
  .price { min-height: 0; }
  .tcard { min-height: 0; }
  .lb__prev { left: 8px; }
  .lb__next { right: 8px; }
  .lb__close { top: 12px; right: 12px; }
}
