:root {
  --ink: #fbf8f2;
  --ink-soft: rgba(251, 248, 242, 0.82);
  --ink-faint: rgba(251, 248, 242, 0.6);
  --glass: rgba(24, 34, 44, 0.38);
  --glass-edge: rgba(255, 255, 255, 0.22);
  --amber: #f3d3a2;
  --bg: #1c2733;
  --gutter: clamp(16px, 4vw, 48px);
  /* Lettering 1 (default): the reserve's HUD, Liberation Serif capitals, widely tracked. */
  --display: "MW Liberation Serif", "Liberation Serif", "Times New Roman", Times, serif;
  --text: "MW Liberation Serif", "Liberation Serif", "Times New Roman", Times, serif;
  --track: 0.23em;          /* 5 px at 22 px in hud.gd */
  --letter: rgba(255, 252, 242, 0.95);
  --letter-shadow: 0 1px 1px rgba(0, 0, 0, 0.45);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  color-scheme: dark;
}

/* Lettering 2: Libre Caslon, same spirit (capitals, wide tracking, classical), a more refined serif. */
:root[data-type="2"] {
  --display: "MW Libre Caslon Display", "Libre Caslon Display", Georgia, serif;
  --text: "MW Libre Caslon Text", "Libre Caslon Text", Georgia, serif;
  --track: 0.2em;
}

@font-face {
  font-family: "MW Liberation Serif";
  src: url("fonts/LiberationSerif-Regular.latin.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "MW Libre Caslon Display";
  src: url("fonts/LibreCaslonDisplay-Regular.latin.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "MW Libre Caslon Text";
  src: url("fonts/LibreCaslonText-Regular.latin.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  min-height: 100svh;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.6 var(--text);
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
}

a { color: inherit; }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 4px;
  border-radius: 4px;
}

/* ---------- Footage ---------- */
.stage { position: fixed; inset: 0; z-index: 0; overflow: hidden; background: var(--bg); }
/* Poster layer: the full poster (preloaded) over an inline ~200-byte blurred copy, both the loop's frame 0. */
.poster {
  position: absolute;
  inset: 0;
  background:
    url("assets/video/willow-sunset-poster.webp") center / cover no-repeat,
    url("data:image/webp;base64,UklGRr4AAABXRUJQVlA4ILIAAAAwBQCdASogABIAPtFWpEuoJKOhsAgBABoJZgC2+oACYAXErCC47jS5N7gNj2lkhk8WgAD+8ry4gHOyuGGfgVp8v1D8rV0G79fRHglfWVXBzyLwJwA5DoN1PR+pbtKTEE8PyOAe44x3Lq0lv4ZPbgskQpZKXIgI3ki7XW2Qra2vb2sxlr7JpNtshUmmSD/P3HkT/vb4EP3FIquyK9GxZX0gk9jOVhjR6cJBCTSXNIWAAAAA") center / cover no-repeat;
}
@media (max-width: 900px) {
  .poster {
    background:
      url("assets/video/willow-sunset-poster-720.webp") center / cover no-repeat,
      url("data:image/webp;base64,UklGRr4AAABXRUJQVlA4ILIAAAAwBQCdASogABIAPtFWpEuoJKOhsAgBABoJZgC2+oACYAXErCC47jS5N7gNj2lkhk8WgAD+8ry4gHOyuGGfgVp8v1D8rV0G79fRHglfWVXBzyLwJwA5DoN1PR+pbtKTEE8PyOAe44x3Lq0lv4ZPbgskQpZKXIgI3ki7XW2Qra2vb2sxlr7JpNtshUmmSD/P3HkT/vb4EP3FIquyK9GxZX0gk9jOVhjR6cJBCTSXNIWAAAAA") center / cover no-repeat;
  }
}
.drift {
  position: absolute;
  inset: -3%;               /* replaced by an exact box from fit() in main.js */
  transform: translate3d(var(--dx, 0px), var(--dy, 0px), 0);
  transition: transform 1.2s var(--ease), left 0.9s var(--ease), top 0.9s var(--ease), width 0.9s var(--ease), height 0.9s var(--ease);
  will-change: transform;
}
.clip {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.8s var(--ease);
}
/* A clip shows only when chosen AND playing (or, under reduced motion, showing its poster). */
.drift.no-anim { transition: none; }
.clip.is-on.is-ready { opacity: 1; z-index: 2; }
.clip.was-on.is-ready { opacity: 1; z-index: 1; transition: none; }

/* Soft scrim: darker at the top (headline band) and bottom (panels, footer); clear in the middle. */
.scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(12, 20, 30, 0.6) 0%, rgba(12, 20, 30, 0.3) 30%, rgba(12, 20, 30, 0.08) 46%, rgba(12, 20, 30, 0) 56%, rgba(12, 20, 30, 0.12) 70%, rgba(12, 20, 30, 0.5) 100%);
  transition: background-color 1s var(--ease);
}
body.has-panel .scrim { background-color: rgba(12, 20, 30, 0.12); }

/* ---------- Header ---------- */
.top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  flex-wrap: wrap;
  padding: calc(18px + env(safe-area-inset-top)) var(--gutter) 0;
}
.wordmark {
  font: 400 1.05rem/1 var(--display);
  text-transform: uppercase;
  letter-spacing: var(--track);
  color: var(--letter);
  text-shadow: var(--letter-shadow);
  text-decoration: none;
  opacity: 0;
  transition: opacity 0.8s var(--ease);
}
body.has-panel .wordmark { opacity: 1; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.nav a {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  text-decoration: none;
  color: var(--ink-soft);
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.3s, border-color 0.3s;
  text-shadow: var(--letter-shadow), 0 1px 12px rgba(0, 0, 0, 0.3);
}
.nav a:hover { color: var(--ink); }
.nav a[aria-current="true"] { color: var(--ink); border-bottom-color: var(--amber); }

/* ---------- Hero ---------- */
main {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 0 var(--gutter);
}
.hero {
  text-align: center;
  margin-top: clamp(48px, 12vh, 140px);
  transition: transform 1s var(--ease), opacity 1s var(--ease);
}
.hero-title {
  margin: 0;
  font: 400 clamp(2rem, 5vw, 4.4rem)/1.05 var(--display);
  text-transform: uppercase;
  letter-spacing: var(--track);
  padding-left: var(--track);   /* balances the trailing tracking so the centred word sits true */
  color: var(--letter);
  text-shadow: var(--letter-shadow), 0 0 28px rgba(10, 18, 28, 0.35);
  opacity: 0;
  transform: translateY(14px);
  animation: rise 2.4s var(--ease) 0.3s forwards;
}
.hero-sub {
  margin: 20px 0 0;
  font: 400 clamp(0.72rem, 1.1vw, 0.95rem)/1.5 var(--text);
  text-transform: uppercase;
  letter-spacing: 0.32em;
  padding-left: 0.32em;
  color: var(--letter);
  text-shadow: var(--letter-shadow), 0 1px 16px rgba(10, 18, 28, 0.55);
  opacity: 0;
  animation: rise 2.4s var(--ease) 1.2s forwards;
}
@keyframes rise { to { opacity: 1; transform: none; } }

body.has-panel .hero { opacity: 0.0; transform: translateY(-12px); pointer-events: none; }

/* ---------- Glass panels ---------- */
.panel {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(24px, 9vh, 96px);
  width: min(440px, calc(100% - 2 * var(--gutter)));
  padding: 28px 30px 26px;
  border-radius: 18px;
  background: var(--glass);
  border: 1px solid var(--glass-edge);
  box-shadow: 0 20px 60px rgba(8, 14, 22, 0.25);
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  opacity: 0;
  transform: translateX(24px);
  transition: opacity 0.7s var(--ease), transform 0.9s var(--ease);
}
.panel[hidden] { display: block; visibility: hidden; }
.panel.is-in { opacity: 1; transform: none; visibility: visible; }
.panel h2 {
  margin: 0 0 14px;
  font: 400 1.15rem/1.2 var(--display);
  text-transform: uppercase;
  letter-spacing: var(--track);
  color: var(--letter);
  text-shadow: var(--letter-shadow);
}
.panel h2:focus { outline: none; }
.panel p { margin: 0 0 12px; color: var(--ink-soft); font-size: 1.02rem; line-height: 1.62; }
.panel p:last-child { margin-bottom: 0; }
.panel a { text-decoration-color: rgba(243, 211, 162, 0.7); text-underline-offset: 3px; }
.panel a:hover { color: var(--amber); }
.product { padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, 0.14); margin-top: 12px; }
/* Product names keep their own casing (OneVet, aiSwarmOS); the section label above them is the capitals. */
.product h3 { margin: 0 0 4px; font: 400 1.05rem/1.4 var(--display); letter-spacing: 0.06em; color: var(--letter); }
.product.invite p { font-style: normal; color: var(--ink-faint); }
.product h3 a { text-decoration: none; }
.product p { margin: 0; }

.close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink-faint);
  font: 400 1.5rem/1 var(--text);
  cursor: pointer;
}
.close:hover { color: var(--ink); background: rgba(255, 255, 255, 0.08); }

/* ---------- Footer ---------- */
.foot {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 0 var(--gutter) calc(16px + env(safe-area-inset-bottom));
  color: var(--ink-faint);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
}
.motion {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  cursor: pointer;
}
.motion:hover { color: var(--ink); }
.motion-icon { width: 8px; height: 10px; border-left: 2px solid currentColor; border-right: 2px solid currentColor; }
.motion[aria-pressed="true"] .motion-icon {
  width: 0; height: 0; border-right: 0;
  border-left: 8px solid currentColor;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}

/* ---------- Phones ---------- */
@media (max-width: 700px) {
  .top { justify-content: center; padding-top: calc(14px + env(safe-area-inset-top)); }
  .wordmark { display: none; }
  .nav { justify-content: center; gap: 2px 16px; }
  .nav a { font-size: 0.68rem; letter-spacing: 0.16em; }
  .hero { margin-top: 13vh; }
  .hero-title { font-size: 1.9rem; }
  .hero-sub { font-size: 0.7rem; letter-spacing: 0.26em; }
  .panel {
    left: var(--gutter);
    right: var(--gutter);
    width: auto;
    bottom: 16px;
    padding: 22px 20px 20px;
    transform: translateY(20px);
  }
  .panel h2 { font-size: 1.05rem; }
  .foot { flex-wrap: wrap; row-gap: 2px; }
  .foot .legal { flex-basis: 100%; }
  body.has-panel .hero { opacity: 1; transform: none; }
  body.has-panel .hero-title { font-size: 1.5rem; }
  body.has-panel .hero-sub { font-size: 0.62rem; margin-top: 10px; }
}

/* ---------- Reduced motion: stills, no drift, no slides ---------- */
@media (prefers-reduced-motion: reduce) {
  .drift, .clip, .panel, .hero, .wordmark, .scrim { transition: none !important; }
  .hero-title, .hero-sub { animation: none; opacity: 1; transform: none; }
  .panel { transform: none; }
  .motion { display: none; }
}

/* ---------- Contact footage B: seaside path, near-still. It settles in slowly and never drifts. ---------- */
.clip[data-clip="contact"] { transition-duration: 2.6s; }
@media (max-width: 700px) {
  .clip[data-clip="contact"] { object-position: 28% 50%; }   /* keep the sky and sea in view on phones */
}

/* ---------- Preview switches (lettering, letterbox): preview hosts only, deliberately quiet ---------- */
.tools { display: inline-flex; flex-wrap: wrap; gap: 4px 14px; margin-right: auto; margin-left: 18px; align-items: center; }
.tools[hidden] { display: none; }
.tool { display: inline-flex; gap: 2px; align-items: center; }
.tool-label { margin-right: 4px; font-style: italic; opacity: 0.8; }
.tool a {
  min-width: 24px;
  padding: 3px 6px;
  border-radius: 6px;
  text-align: center;
  text-decoration: none;
  color: var(--ink-faint);
  border: 1px solid transparent;
  cursor: pointer;
}
.tool a:hover { color: var(--ink); }
.tool a[aria-current="true"], .tool a[aria-pressed="true"] { color: var(--ink); border-color: rgba(255, 255, 255, 0.28); }

/* ---------- Filmic finish. A's grade is baked into its encode; vignette and grain are overlays on all footage
   (no bitrate cost, no banding), applied equally to poster and video so the hand-off stays invisible. ---------- */
.film {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden;
  background: radial-gradient(ellipse 78% 72% at 50% 46%, rgba(6, 8, 12, 0) 52%, rgba(6, 8, 12, 0.34) 100%);
}
.film::after {
  content: "";
  position: absolute;
  inset: -64px;
  background-image: var(--grain, none);
  background-size: 192px 192px;
  opacity: 0.09;
  mix-blend-mode: overlay;
  animation: grain 0.75s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  17% { transform: translate(-37px, 21px); }
  33% { transform: translate(24px, -42px); }
  50% { transform: translate(-15px, 48px); }
  67% { transform: translate(43px, 9px); }
  83% { transform: translate(-29px, -26px); }
  100% { transform: translate(0, 0); }
}

/* Contain framing (very wide or very tall windows): the whole picture on dark bars; see fit() in main.js. */
.fit-contain .stage { background: #050607; }
.fit-contain .poster { background-size: contain, contain; }

@media (prefers-reduced-motion: reduce) {
  .film::after { animation: none; }
}

/* ---------- Section links inside panels ---------- */
.panel .more { margin-top: 10px; }
.panel .more a { font-size: 0.92rem; letter-spacing: 0.04em; }

/* ---------- Register-your-interest form ---------- */
.panel-form { width: min(460px, calc(100% - 2 * var(--gutter))); }
.interest .intro { margin-bottom: 14px; }
.field { margin: 0 0 12px; }
.field label {
  display: block;
  margin-bottom: 5px;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--letter);
}
.field .opt { text-transform: none; letter-spacing: 0.04em; color: var(--ink-faint); }
.field input, .field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 10px;
  background: rgba(10, 16, 22, 0.32);
  color: var(--ink);
  font: 400 1rem/1.4 var(--text);
  transition: border-color 0.3s, background-color 0.3s;
}
.field textarea { resize: vertical; min-height: 76px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--amber); background: rgba(10, 16, 22, 0.45); }
.field input:focus-visible, .field textarea:focus-visible { box-shadow: 0 0 0 1px var(--amber); }
.field [aria-invalid="true"] { border-color: #f0b49a; }
.err { margin: 6px 0 0 !important; font-size: 0.86rem !important; color: #f6cdb8 !important; }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.actions { margin-top: 16px; }
.send {
  padding: 11px 22px;
  border: 1px solid rgba(255, 252, 242, 0.55);
  border-radius: 999px;
  background: rgba(255, 252, 242, 0.1);
  color: var(--letter);
  font: 400 0.78rem/1 var(--display);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  cursor: pointer;
  transition: background-color 0.3s, border-color 0.3s;
}
.send:hover { background: rgba(255, 252, 242, 0.2); border-color: var(--letter); }
.send:disabled { opacity: 0.6; cursor: progress; }
.privacy { margin: 12px 0 0 !important; font-size: 0.82rem !important; color: var(--ink-faint) !important; }
.privacy a { text-decoration-color: rgba(255, 255, 255, 0.3); }
.status { margin: 12px 0 0 !important; color: #f6cdb8 !important; }
.thanks h3 {
  margin: 0 0 8px;
  font: 400 1rem/1.3 var(--display);
  text-transform: uppercase;
  letter-spacing: var(--track);
  color: var(--letter);
}
.thanks:focus { outline: none; }

/* ---------- Footer ---------- */
.legal { margin: 0; text-align: right; }
.legal .sep { margin: 0 0.6em; opacity: 0.7; }
.legal a { text-decoration: none; }
.legal a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Phones: panels scroll inside themselves; on Contact the form has the screen ---------- */
@media (max-width: 700px) {
  .panel { max-height: calc(100svh - 150px); overflow-y: auto; overscroll-behavior: contain; }
  body.is-contact .hero { opacity: 0; pointer-events: none; }
  .legal { text-align: left; }
}

/* ---------- Edit mode (?edit=1 on the preview) ---------- */
body.editing [data-k] { outline: 1px dotted rgba(255, 252, 242, 0.55); outline-offset: 3px; border-radius: 2px; cursor: text; }
body.editing [data-k]:focus { outline: 1px dashed var(--amber); background: rgba(0, 0, 0, 0.18); }
body.editing .hero { opacity: 1 !important; }
.editbar {
  position: fixed;
  left: 50%;
  bottom: calc(14px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100% - 32px);
  padding: 8px 10px 8px 16px;
  border-radius: 999px;
  background: rgba(14, 20, 26, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 0.82rem;
  color: var(--ink-soft);
}
.editbar-msg { flex: 1; min-width: 0; }
.editbar button {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}
.editbar-save { background: rgba(243, 211, 162, 0.22) !important; border-color: var(--amber) !important; }

/* ---------- What we make: the OneVet showcase. Wider than the other panels; its body scrolls inside the glass
   while the heading and the close button stay put. ---------- */
.panel[hidden] img { display: none; }   /* lazy images in a closed panel are not fetched until it opens */
.panel-make {
  width: min(700px, calc(100% - 2 * var(--gutter)));
  /* The panel sits inside <main> (below the header, above the footer): never taller than that space. */
  max-height: calc(100% - clamp(24px, 9vh, 96px) - 20px);
  display: flex;
  flex-direction: column;
  padding-right: 18px;
}
.panel-make[hidden] { display: flex; }
.panel-make h2 { flex: none; padding-right: 32px; }
.make {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 12px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 252, 242, 0.28) transparent;
}
/* A soft fade at the foot while there is more below, so the scroll reads at a glance. */
.make.has-more {
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 40px), transparent);
  mask-image: linear-gradient(to bottom, #000 calc(100% - 40px), transparent);
}
.make p { font-size: 0.98rem; }
.make-sub {
  margin: 22px 0 10px;
  font: 400 0.74rem/1.3 var(--text);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--letter);
}
.vets, .shots { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.vet img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: 50% 30%;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(10, 16, 22, 0.3);
}
.make .vet-name { margin: 8px 0 0; font: 400 1.02rem/1.3 var(--display); letter-spacing: 0.06em; color: var(--letter); }
.make .vet-role { margin: 2px 0 0; font-size: 0.86rem; line-height: 1.4; color: var(--ink-faint); }
.make .vet-site { margin: 4px 0 0; font-size: 0.84rem; }
.shots figure { margin: 0; }
.shot { display: block; border-radius: 10px; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.16); cursor: zoom-in; }
.shot img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; transition: transform 0.6s var(--ease); }
.shot:hover img { transform: scale(1.03); }
.shots figcaption { margin-top: 6px; font-size: 0.82rem; line-height: 1.4; color: var(--ink-faint); }
.products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 18px; margin-top: 10px; }
.products .product p { font-size: 0.9rem; line-height: 1.5; }
.products .product .more { margin-top: 6px; }
.make .make-invite { margin: 18px 0 2px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, 0.14); font-size: 0.88rem; color: var(--ink-faint); }

@media (max-width: 700px) {
  .panel.panel-make { max-height: calc(100% - 28px); overflow: hidden; padding-right: 10px; }
  .vet img { aspect-ratio: 4 / 5; }
  body.is-make .hero { opacity: 0; pointer-events: none; }
  .vets { gap: 10px; }
  .make .vet-role { font-size: 0.8rem; }
  /* Screenshots become a strip that swipes sideways. */
  .shots { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; padding-bottom: 6px; scrollbar-width: none; }
  .shots li { flex: 0 0 78%; scroll-snap-align: start; }
  .products { grid-template-columns: 1fr; }
}

/* ---------- Screenshot viewer ---------- */
.lightbox {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 56px 16px 24px;
  border: 0;
  background: transparent;
  color: var(--ink);
}
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox::backdrop { background: rgba(8, 12, 18, 0.86); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.lightbox figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; max-width: min(1400px, 100%); }
.lightbox img { display: block; max-width: 100%; max-height: calc(100svh - 150px); border-radius: 10px; box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5); }
.lightbox figcaption { font-size: 0.92rem; color: var(--ink-soft); text-align: center; }
.lightbox button {
  position: fixed;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(24, 34, 44, 0.6);
  color: var(--ink);
  font: 400 1.5rem/1 var(--text);
  cursor: pointer;
}
.lightbox button:hover { background: rgba(24, 34, 44, 0.85); border-color: var(--amber); }
.lb-close { top: 12px; right: 12px; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); }
.lb-prev { left: 12px; }
.lb-next { right: 12px; }
.lightbox.is-single .lb-prev, .lightbox.is-single .lb-next { display: none; }
@media (max-width: 700px) {
  .lb-prev, .lb-next { top: auto; bottom: 16px; transform: none; }
  .lb-prev { left: calc(50% - 56px); }
  .lb-next { right: calc(50% - 56px); }
  .lightbox { padding-bottom: 76px; }
}
