/* =====================================================================
   Olga Stanis - Portfolio · Design System
   Derived from the Figma presentation: violet #5E17EB, Inter,
   organic blob motif, white editorial pages, enterprise greys/blues.
   ===================================================================== */

/* ---- Fonts ---- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ---- Tokens ---- */
:root {
  /* Brand */
  --violet:        #5E17EB;
  --violet-700:    #4A10C2;
  --violet-600:    #6A28F0;
  --violet-300:    #B9A3FF;
  --violet-tint:   #EAE6FF;   /* page wash / section bg */
  --violet-tint-2: #DBD4FF;   /* highlight blocks */

  /* Ink + neutrals */
  --ink:        #0A1C2E;      /* near-black navy, headings */
  --ink-2:      #1E1E1E;
  --body:       #36414F;      /* body copy */
  --muted:      #6A7282;      /* secondary */
  --faint:      #99A1AF;      /* meta / captions */
  --line:       #E7E6EE;
  --line-2:     #EDEDF2;
  --paper:      #FFFFFF;
  --bg:         #FFFFFF;
  --bg-soft:    #FAF9FF;      /* off-white violet-tinted */
  --bg-soft-2:  #F6F7F9;

  /* Enterprise accents (from the real product) */
  --blue:   #2E61DE;
  --teal:   #2FC7BE;
  --green:  #1F8A5B;
  --green-bg: #E4F6EE;
  --amber:  #F79256;

  /* Type */
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Radii */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;

  /* Shadows */
  --sh-sm: 0 2px 8px rgba(10,28,46,.05);
  --sh-md: 0 12px 32px rgba(10,28,46,.08);
  --sh-lg: 0 28px 70px rgba(10,28,46,.14);
  --sh-violet: 0 26px 60px rgba(94,23,235,.22);

  /* Layout */
  --maxw: 1240px;
  --gutter: clamp(20px, 5vw, 72px);
  --nav-h: 76px;

  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---- Reset / base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--body);
  background: var(--bg);
  font-size: 18px;
  line-height: 1.6;
  -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; }
::selection { background: var(--violet); color: #fff; }

h1, h2, h3, h4 {
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.022em;
  line-height: 1.08;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }

/* ---- Layout helpers ---- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 9vw, 140px); }
.section--tight { padding-block: clamp(48px, 6vw, 96px); }
.bg-soft { background: var(--bg-soft); }
.bg-tint { background: var(--violet-tint); }
.bg-ink  { background: var(--ink); color: #fff; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 16px; font-weight: 700; color: var(--violet);
}
.eyebrow::before {
  content: ""; width: 22px; height: 2px; background: var(--violet); border-radius: 2px;
}
.eyebrow--light { color: var(--violet-300); }
.eyebrow--light::before { background: var(--violet-300); }

.lead { font-size: clamp(20px, 2.3vw, 27px); line-height: 1.5; color: var(--ink); font-weight: 500; letter-spacing: -.01em; }
.muted { color: var(--muted); }
.measure { max-width: 62ch; }
.measure-sm { max-width: 46ch; }

/* Display scale */
.d1 { font-size: clamp(44px, 8.5vw, 116px); font-weight: 800; letter-spacing: -.03em; line-height: .98; }
.d2 { font-size: clamp(34px, 5.2vw, 68px); font-weight: 700; letter-spacing: -.026em; }
.d3 { font-size: clamp(26px, 3.4vw, 44px); font-weight: 700; letter-spacing: -.02em; }
.h-sm { font-size: clamp(20px, 2vw, 26px); font-weight: 700; letter-spacing: -.018em; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px;
  font-weight: 600; font-size: 16px; letter-spacing: -.01em;
  border: 1.5px solid transparent; transition: all .25s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: var(--violet); color: #fff; box-shadow: 0 10px 26px rgba(94,23,235,.30); }
.btn--primary:hover { background: var(--violet-700); transform: translateY(-2px); box-shadow: 0 16px 34px rgba(94,23,235,.38); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { transform: translateY(-2px); box-shadow: var(--sh-md); }
.btn--on-dark { background: rgba(255,255,255,.10); color: #fff; border-color: rgba(255,255,255,.28); }
.btn--on-dark:hover { background: rgba(255,255,255,.18); transform: translateY(-2px); }

.textlink {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--violet); font-weight: 600; letter-spacing: -.01em;
}
.textlink svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.textlink:hover svg { transform: translateX(4px); }

/* ===================================================================
   NAV
   =================================================================== */
.nav {
  position: sticky; top: 0; z-index: 60;
  height: var(--nav-h); display: flex; align-items: center;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.nav.is-scrolled { border-color: var(--line); }
.nav__inner { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 700; color: var(--ink); letter-spacing: -.02em; font-size: 18px; white-space: nowrap; }
.brand__mark {
  width: 34px; height: 34px; border-radius: 11px 11px 13px 11px;
  background: var(--violet); color: #fff; display: grid; place-items: center;
  font-weight: 800; font-size: 16px; letter-spacing: -.04em;
}
.nav__links { display: flex; align-items: center; gap: 6px; }
.nav__links a {
  padding: 9px 15px; border-radius: 999px; font-size: 15.5px; font-weight: 500; color: var(--body);
  transition: background .2s, color .2s;
}
.nav__links a:hover { color: var(--ink); background: var(--bg-soft); }
.nav__links a.is-active { color: var(--violet); font-weight: 600; }
.nav__cta { margin-left: 6px; }
.nav__cta.btn--primary { color: #fff; }
.nav__cta.btn--primary:hover { color: #36414f !important; }
.nav__toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: #fff; align-items: center; justify-content: center; }
.nav__toggle span, .nav__toggle span::before, .nav__toggle span::after {
  content: ""; display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; transition: .25s var(--ease);
}
.nav__toggle span::before { position: absolute; top: -6px; }
.nav__toggle span::after  { position: absolute; top: 6px; }
body.menu-open .nav__toggle span { background: transparent; }
body.menu-open .nav__toggle span::before { top: 0; transform: rotate(45deg); }
body.menu-open .nav__toggle span::after  { top: 0; transform: rotate(-45deg); }

@media (max-width: 880px) {
  .nav__toggle { display: inline-flex; }
  .nav__links {
    position: fixed; inset: var(--nav-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 2px;
    background: #fff; padding: 16px var(--gutter) 28px; border-bottom: 1px solid var(--line);
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: .28s var(--ease);
    box-shadow: var(--sh-md);
  }
  body.menu-open .nav__links { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav__links a { padding: 14px 12px; font-size: 18px; border-radius: 12px; }
  .nav__cta { margin: 8px 0 0; }
}

/* ===================================================================
   FOOTER
   =================================================================== */
.footer { background: var(--ink); color: #fff; padding-block: clamp(56px, 7vw, 96px); }
.footer a { color: rgba(255,255,255,.72); transition: color .2s; }
.footer a:hover { color: #fff; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 48px; }
.footer__cta { font-size: clamp(28px, 4vw, 52px); font-weight: 700; letter-spacing: -.025em; color: #fff; line-height: 1.05; }
.footer__col h4 { color: rgba(255,255,255,.5); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; margin-bottom: 16px; }
.footer__col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; font-size: 16px; }
.footer__bar { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; color: rgba(255,255,255,.5); }
.placeholder-link { color: rgba(255,255,255,.45) !important; border-bottom: 1px dashed rgba(255,255,255,.3); }
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__cta { grid-column: 1 / -1; margin-bottom: 12px; } }

/* ===================================================================
   MOTIF - organic blob
   =================================================================== */
.blob { border-radius: 47% 53% 48% 52% / 60% 57% 43% 40%; }
.capsule { border-radius: 280px; }
.blob-watermark {
  position: absolute; pointer-events: none; z-index: 0;
  background: var(--violet); opacity: .07;
  border-radius: 47% 53% 46% 54% / 58% 56% 44% 42%;
}

/* ===================================================================
   CARDS / SHARED
   =================================================================== */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); }

.metric { display: flex; flex-direction: column; gap: 4px; }
.metric__num { font-size: clamp(34px, 4.4vw, 56px); font-weight: 800; letter-spacing: -.03em; color: var(--ink); line-height: 1; }
.metric__num .unit { color: var(--violet); }
.metric__label { font-size: 15px; color: var(--muted); font-weight: 500; }

.chip { display: inline-flex; align-items: center; padding: 7px 14px; border-radius: 999px;
  font-size: 13.5px; font-weight: 600; background: var(--violet-tint); color: var(--violet-700); }

.tag { font-size: 13px; font-weight: 600; color: var(--muted); }

/* Browser frame for screenshots */
.frame { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #fff; box-shadow: var(--sh-lg); }
.frame__bar { height: 38px; background: #F2F1F7; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 7px; padding-inline: 15px; }
.frame__bar i { width: 11px; height: 11px; border-radius: 50%; background: #D6D5DF; display: block; }
.frame__bar i:nth-child(1){ background:#FF6058; } .frame__bar i:nth-child(2){ background:#FFC130; } .frame__bar i:nth-child(3){ background:#28CA42; }
.frame img { display: block; width: 100%; }

/* Swappable-image note */
.swap { position: relative; }
.swap[data-swap]::after {
  content: attr(data-swap); position: absolute; left: 10px; bottom: 10px; z-index: 3;
  font-size: 11px; font-weight: 600; letter-spacing: .02em; color: #fff;
  background: rgba(10,28,46,.62); padding: 5px 9px; border-radius: 7px; backdrop-filter: blur(4px);
  opacity: 0; transition: opacity .2s; pointer-events: none;
}
body.show-swaps .swap[data-swap]::after { opacity: 1; }

/* ---- Scroll reveal ---- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; } .reveal-d2 { transition-delay: .16s; }
.reveal-d3 { transition-delay: .24s; } .reveal-d4 { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ===================================================================
   CASE STUDY PAGES
   =================================================================== */
.cs-hero { padding-top: clamp(40px, 6vw, 72px); }
.cs-hero__crumb { font-size: 14px; color: var(--muted); display: inline-flex; gap: 8px; align-items: center; margin-bottom: 26px; }
.cs-hero__crumb a:hover { color: var(--violet); }
.cs-hero__title { font-size: clamp(38px, 6vw, 84px); font-weight: 800; letter-spacing: -.03em; line-height: 1; max-width: 16ch; }
.cs-hero__sub { font-size: clamp(19px, 2.1vw, 26px); line-height: 1.5; color: var(--body); max-width: 52ch; margin-top: 24px; font-weight: 500; }
.cs-hero__visual { margin-top: clamp(40px, 5vw, 64px); }

.cs-meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 40px;
  padding: 28px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cs-meta dt { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); margin-bottom: 7px; }
.cs-meta dd { margin: 0; font-size: 16px; font-weight: 600; color: var(--ink); letter-spacing: -.01em; }
@media (max-width: 680px) { .cs-meta { grid-template-columns: 1fr 1fr; gap: 22px 18px; } }

/* Two-column text/visual block */
.block { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.block--text-wide { grid-template-columns: .9fr 1.1fr; }
.block--visual-first .block__visual { order: -1; }
.block__title { font-size: clamp(28px, 3.6vw, 46px); font-weight: 700; letter-spacing: -.025em; line-height: 1.05; }
.block__body { margin-top: 22px; font-size: 18.5px; line-height: 1.62; color: var(--body); }
.block__body p + p { margin-top: 18px; }
@media (max-width: 820px) { .block, .block--text-wide { grid-template-columns: 1fr; } .block--visual-first .block__visual { order: 0; } }

/* Figure */
.figure { display: flex; flex-direction: column; gap: 12px; }
.figure__cap { font-size: 14px; color: var(--muted); }
.figure__cap b { color: var(--ink); font-weight: 600; }

/* Number / objective list */
.olist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 22px; counter-reset: o; }
.olist li { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; counter-increment: o; }
.olist li::before { content: counter(o, decimal-leading-zero); font-size: 15px; font-weight: 700; color: var(--violet);
  background: var(--violet-tint); width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; letter-spacing: -.02em; }
.olist h4 { font-size: 19px; font-weight: 700; letter-spacing: -.015em; margin-bottom: 5px; }
.olist p { color: var(--muted); font-size: 16px; line-height: 1.55; }

/* Metrics band */
.band { background: var(--ink); color: #fff; border-radius: var(--r-xl); padding: clamp(36px, 5vw, 64px); }
.band--violet { background: linear-gradient(140deg, var(--violet-600), var(--violet-700)); }
.band__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.band .metric__num { color: #fff; font-size: clamp(40px, 5.5vw, 68px); }
.band .metric__num .unit { color: var(--violet-300); }
.band .metric__label { color: rgba(255,255,255,.72); font-size: 16px; max-width: 24ch; }
.band--violet .metric__num .unit { color: #fff; opacity:.7; }
@media (max-width: 760px) { .band__grid { grid-template-columns: 1fr; gap: 28px; } }

/* Process timeline */
.phases { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.phase { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 26px 24px; position: relative; }
.phase__n { font-size: 13px; font-weight: 700; color: var(--violet); letter-spacing: .06em; }
.phase h4 { font-size: 21px; font-weight: 700; margin: 10px 0 8px; letter-spacing: -.02em; }
.phase p { font-size: 15px; color: var(--muted); line-height: 1.5; }
@media (max-width: 820px) { .phases { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .phases { grid-template-columns: 1fr; } }

/* Persona */
.persona { display: grid; grid-template-columns: 300px 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.persona__photo { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 1; box-shadow: var(--sh-md); }
.persona__photo img { width: 100%; height: 100%; object-fit: cover; }
.persona__name { font-size: clamp(26px, 3vw, 38px); font-weight: 800; letter-spacing: -.025em; }
.persona__role { color: var(--muted); margin-top: 6px; font-size: 16px; }
.persona__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.persona__card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 22px; }
.persona__card h5 { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--violet); font-weight: 700; margin-bottom: 12px; }
.persona__card ul { margin: 0; padding-left: 18px; color: var(--body); font-size: 15.5px; line-height: 1.6; }
.persona__card li + li { margin-top: 6px; }
@media (max-width: 720px) { .persona { grid-template-columns: 1fr; } .persona__photo { max-width: 260px; } .persona__cards { grid-template-columns: 1fr; } }

/* Pull quote */
.pullquote { font-size: clamp(24px, 3.2vw, 40px); font-weight: 600; letter-spacing: -.02em; line-height: 1.28; color: var(--ink); max-width: 22ch; }
.pullquote--center { max-width: 26ch; margin-inline: auto; text-align: center; }
.pullquote .mark { color: var(--violet); }

/* Before / after split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.split__col { display: flex; flex-direction: column; gap: 14px; }
.split__label { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .01em; }
.split__label.is-before { color: var(--amber); } .split__label.is-after { color: var(--green); }
@media (max-width: 680px) { .split { grid-template-columns: 1fr; } }

/* Image strip */
.strip-imgs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
@media (max-width: 760px) { .strip-imgs { grid-template-columns: 1fr; } }

/* Appendix (collapsible) */
.appendix { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.appendix + .appendix { margin-top: 14px; }
.appendix summary { list-style: none; cursor: pointer; padding: 24px 28px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-weight: 700; font-size: 19px; color: var(--ink); letter-spacing: -.015em; }
.appendix summary::-webkit-details-marker { display: none; }
.appendix summary .plus { width: 28px; height: 28px; flex-shrink: 0; position: relative; }
.appendix summary .plus::before, .appendix summary .plus::after { content:""; position:absolute; inset:0; margin:auto; background: var(--violet); border-radius: 2px; transition: transform .25s var(--ease); }
.appendix summary .plus::before { width: 16px; height: 2px; } .appendix summary .plus::after { width: 2px; height: 16px; }
.appendix[open] summary .plus::after { transform: rotate(90deg); opacity: 0; }
.appendix__body { padding: 0 28px 28px; color: var(--body); font-size: 17px; line-height: 1.6; }
.appendix__body p + p { margin-top: 14px; }

/* Next case CTA */
.nextcase { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
  padding: clamp(32px, 4vw, 52px); border-radius: var(--r-xl); background: var(--violet-tint); }
.nextcase__label { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--violet); }
.nextcase__title { font-size: clamp(26px, 3.4vw, 40px); font-weight: 700; letter-spacing: -.025em; color: var(--ink); margin-top: 8px; max-width: 18ch; }

/* Section label */
.slabel { display: flex; align-items: baseline; gap: 16px; margin-bottom: clamp(28px, 4vw, 48px); }
.slabel__no { font-size: 14px; font-weight: 700; color: var(--violet); letter-spacing: .04em; }

/* HMW callout + diagram figure */
.hmw { margin-top: 26px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(22px, 3vw, 30px); }
.hmw__q { margin-top: 14px; font-size: clamp(19px, 2.1vw, 24px); font-weight: 600; letter-spacing: -.015em; color: var(--ink); line-height: 1.34; max-width: 42ch; }
.diagram { display: block; width: 100%; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: #EAF1FB; cursor: zoom-in; box-shadow: var(--sh-md); padding: 0; }
.diagram img { width: 100%; display: block; }

/* ===================================================================
   GALLERY
   =================================================================== */
.filters { display: flex; flex-direction: column; gap: 16px; }
.filters__row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.filters__label { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); width: 64px; flex-shrink: 0; }
.filter {
  padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--line);
  background: #fff; color: var(--body); font-weight: 600; font-size: 14.5px;
  transition: all .2s var(--ease);
}
.filter:hover { border-color: var(--violet-300); color: var(--ink); }
.filter.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }

.gallery {
  columns: 3; column-gap: 24px;
}
@media (max-width: 980px) { .gallery { columns: 2; } }
@media (max-width: 600px) { .gallery { columns: 1; } }
.gallery__item {
  break-inside: avoid; margin-bottom: 24px; border-radius: var(--r-md); overflow: hidden;
  border: 1px solid var(--line); background: #fff; cursor: zoom-in;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), opacity .3s;
}
.gallery__item:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); }
.gallery__item.is-hidden { display: none; }
.gallery__item img { width: 100%; display: block; }
.gallery__meta { padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; }
.gallery__meta b { font-size: 15px; font-weight: 600; color: var(--ink); letter-spacing: -.01em; }
.gallery__meta span { font-size: 13px; color: var(--muted); }
.gallery__tag { align-self: flex-start; margin-top: 6px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--violet); }
.gallery-empty { text-align: center; padding: 60px; color: var(--muted); }

/* ---- Lightbox ---- */
.lightbox { position: fixed; inset: 0; z-index: 100; display: none; place-items: center;
  background: rgba(8,12,24,.86); padding: clamp(20px, 5vw, 64px); backdrop-filter: blur(6px); }
.lightbox.is-open { display: grid; }
.lightbox figure { margin: 0; max-width: 1100px; max-height: 88vh; display: flex; flex-direction: column; gap: 12px; }
.lightbox img { max-width: 100%; max-height: 80vh; object-fit: contain; border-radius: 10px; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.lightbox figcaption { color: rgba(255,255,255,.8); font-size: 14px; text-align: center; }
.lightbox__close { position: fixed; top: 22px; right: 26px; width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255,255,255,.12); color: #fff; border: none; font-size: 26px; line-height: 1; }
.lightbox__close:hover { background: rgba(255,255,255,.24); }

/* ---- Utility ---- */
.stack { display: flex; flex-direction: column; }
.row { display: flex; }
.center { align-items: center; }
.between { justify-content: space-between; }
.wrap-gap { flex-wrap: wrap; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-24 { gap: 24px; } .gap-32 { gap: 32px; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; } .mt-48 { margin-top: 48px; }
