/* ==========================================================================
   Alexx Keukens — site styles
   Tokens ("Puls" theme on the Nocturne system) → base → components → layout.
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500&display=swap');

/* --------------------------------------------------------------------------
   Tokens — dark graphite ground
   -------------------------------------------------------------------------- */
:root {
  --color-bg: #242a20;
  --color-surface: #2d342a;
  --color-text: #edf1e6;
  --color-accent: #ff7518;
  --color-accent-400: #ff9a4d;
  --color-accent-100: #2c1304;
  --color-accent-700: #96470f;
  --color-accent-800: #5d2c09;
  --color-accent-900: #3b1d06;
  --color-neutral-800: #37402f;
  --color-neutral-100: #edf1e6;
  --color-divider: rgba(237, 241, 230, 0.18);
  --color-header: #101208;
  --color-header-line: rgba(237, 241, 230, 0.14);

  --shadow-sm: 0 0 0 1px rgba(237, 241, 230, 0.14);
  --shadow-md: 0 0 0 1px rgba(237, 241, 230, 0.16), 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 0 0 1px rgba(237, 241, 230, 0.22), 0 18px 44px rgba(0, 0, 0, 0.55);

  --font-heading: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-heading-weight: 500;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, monospace;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;

  --container: 1180px;
  --gutter: 28px;
  --ease-out: cubic-bezier(.2, .7, .2, 1);
  --bar-h: 64px; /* sticky appointment bar height; kept in sync by JS */
}

/* Inverted (light grey) band — burnt orange accent for contrast */
.invert {
  --color-text: #16190f;
  --color-surface: #e2e4df;
  --color-divider: rgba(22, 25, 15, 0.20);
  --color-accent: #c24d00;
  --color-accent-400: #9c3e00;
  background: #d7dad4;
  color: #16190f;
}
.invert .lighten { mix-blend-mode: normal; }
.invert .btn-secondary { border-color: rgba(22, 25, 15, 0.28); }
.invert .tag-neutral { border-color: rgba(22, 25, 15, 0.24); color: #16190f; }

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100%;
  padding-bottom: var(--bar-h);
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
body.lb-open { overflow: hidden; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--font-heading-weight);
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 6px;
}
h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.05; letter-spacing: -0.035em; }
h2 { font-size: clamp(28px, 4vw, 44px); }
h3 { font-size: 22px; }
h4 { font-size: 18px; }
p { margin: 0 0 8px; }
a { color: var(--color-accent); text-underline-offset: 3px; }
a:hover { color: var(--color-accent-400); }
img { display: block; max-width: 100%; }
figure { margin: 0; }
button { font: inherit; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
::selection { background: color-mix(in srgb, var(--color-accent) 30%, transparent); }

.lighten { mix-blend-mode: lighten; background-color: transparent; }
.mono {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.kicker {
  font-family: var(--font-heading);
  font-weight: var(--font-heading-weight);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent-400);
  margin: 0 0 12px;
}
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  padding: 8px 12px; border-radius: var(--radius-md);
  background: var(--color-header); color: var(--color-text); text-decoration: none; font-size: 14px;
}
.skip-link:focus { top: 12px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* --------------------------------------------------------------------------
   Components — buttons, tags, forms
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  cursor: pointer; text-decoration: none;
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 14px; line-height: 1.2; color: var(--color-text);
  background: transparent; border: 1px solid transparent;
  padding: 6px 10px;
  border-radius: var(--radius-md);
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}
.btn:hover { color: var(--color-text); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-primary { color: var(--color-accent); border-color: var(--color-accent); }
.btn-primary:hover { color: var(--color-accent); background: color-mix(in srgb, var(--color-accent) 12%, transparent); }
.btn-primary:active { background: color-mix(in srgb, var(--color-accent) 22%, transparent); }
.btn-secondary { border-color: var(--color-divider); }
.btn-secondary:hover { background: color-mix(in srgb, var(--color-text) 7%, transparent); }
.btn-secondary:active { background: color-mix(in srgb, var(--color-text) 14%, transparent); }
.btn-block { width: 100%; margin-top: 6px; }
.btn-lg { font-size: 15px; padding: 13px 24px; }
.btn-md { font-size: 14px; padding: 11px 20px; }

.tag {
  display: inline-flex; align-items: center; font-size: 11px;
  letter-spacing: 0.02em; padding: 3px 10px;
  border-radius: 6px;
}
.tag-neutral { background: transparent; border: 1px solid var(--color-divider); color: var(--color-text); }
.tag-accent { background: var(--color-accent-800); color: var(--color-accent-400); }

.field > label {
  display: block; font-size: 12px; margin-bottom: 5px;
  color: color-mix(in srgb, var(--color-text) 70%, transparent);
}
.input {
  width: 100%; min-height: 36px; padding: 6px 10px; font: inherit;
  font-size: 14px; color: var(--color-text); caret-color: var(--color-accent);
  background: var(--color-bg);
  border: 1px solid var(--color-divider); border-radius: var(--radius-md);
}
.input::placeholder { color: color-mix(in srgb, var(--color-text) 40%, transparent); }
.input:hover { border-color: color-mix(in srgb, var(--color-text) 45%, transparent); }
.input:focus-visible { border-color: var(--color-accent); outline-offset: 0; }
textarea.input { min-height: 110px; resize: vertical; }
.radio { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14px; position: relative; }
.radio input { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }
.radio .dot {
  width: 16px; height: 16px; flex: none; border-radius: 50%;
  border: 1.5px solid var(--color-divider);
}
.radio:hover .dot { border-color: var(--color-accent); }
.radio input:checked + .dot {
  border-color: var(--color-accent); background: var(--color-accent);
  box-shadow: inset 0 0 0 4px var(--color-surface);
}
.radio input:focus-visible + .dot { outline: 2px solid var(--color-accent); outline-offset: 2px; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: var(--color-header);
  border-bottom: 1px solid var(--color-header-line);
}
.navrow {
  max-width: var(--container); margin: 0 auto;
  padding: 22px var(--gutter);
  display: flex; align-items: center; gap: 28px;
}
.brand {
  display: flex; align-items: center; text-decoration: none;
  color: var(--color-text); margin-right: auto;
  border-radius: var(--radius-md); padding: 6px 4px;
  transition: opacity 160ms ease;
}
.brand:hover { color: var(--color-text); opacity: 0.8; }
.logo { height: 34px; width: auto; display: block; }
.mainnav { display: flex; align-items: center; gap: 28px; }
.navlinks { display: flex; align-items: center; gap: 4px; }
.navlinks a {
  padding: 8px 12px; font-size: 14px; text-decoration: none;
  color: color-mix(in srgb, var(--color-text) 78%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color 160ms ease;
}
.navlinks a:hover { color: color-mix(in srgb, var(--color-text) 78%, transparent); border-bottom-color: var(--color-accent); }
.navlinks a[aria-current="page"] { color: var(--color-accent); }
.nav-ext { font-size: 13px; white-space: nowrap; }
.nav-toggle {
  display: none; width: 40px; height: 40px; padding: 0; border: 1px solid var(--color-divider);
  border-radius: var(--radius-md); background: transparent; color: var(--color-text); cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span { display: block; width: 18px; height: 1.5px; background: currentColor; transition: transform 200ms ease, opacity 200ms ease; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 800px) {
  .navrow { padding: 14px 20px; gap: 16px; }
  .logo { height: 30px; }
  .nav-toggle { display: flex; }
  .mainnav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 16px;
    padding: 6px 20px 22px; background: var(--color-header);
    border-bottom: 1px solid var(--color-header-line);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
  }
  .nav-open .mainnav { display: flex; }
  .navlinks { flex-direction: column; align-items: stretch; gap: 0; }
  .navlinks a { padding: 13px 4px; font-size: 16px; border-bottom: 1px solid var(--color-divider); }
  .navlinks a:hover { border-bottom-color: var(--color-accent); }
  .nav-ext { align-self: flex-start; }
}

/* --------------------------------------------------------------------------
   Sticky appointment bar
   -------------------------------------------------------------------------- */
.sticky-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  border-top: 1px solid var(--color-divider);
  background: color-mix(in srgb, var(--color-bg) 92%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.sticky-bar .inner {
  max-width: var(--container); margin: 0 auto;
  padding: 11px var(--gutter);
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
}
.sticky-bar .msg { font-size: 14px; color: color-mix(in srgb, var(--color-text) 78%, transparent); margin-right: auto; }
.sticky-bar a:not(.btn) { font-size: 14px; text-decoration: none; }
.sticky-bar .btn { font-size: 14px; }
@media (max-width: 700px) {
  .sticky-bar .msg, .sticky-bar .bar-ext { display: none; }
  .sticky-bar .inner { padding: 10px 20px; gap: 14px; justify-content: space-between; }
  .sticky-bar .btn { margin-left: auto; }
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer { margin-top: 104px; border-top: 1px solid var(--color-divider); }
.site-footer .inner {
  max-width: var(--container); margin: 0 auto; padding: 44px var(--gutter);
  display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between; align-items: flex-start;
}
.footer-brand { display: flex; flex-direction: column; gap: 6px; }
.footer-logo { height: 30px; width: auto; flex: none; align-self: flex-start; display: block; color: var(--color-text); }
.footer-brand .line { font-size: 13px; color: color-mix(in srgb, var(--color-text) 60%, transparent); }
.footer-brand .fine { font-size: 12px; color: color-mix(in srgb, var(--color-text) 45%, transparent); }
.footer-brand a { text-decoration: none; }
.footer-links { display: flex; flex-direction: column; gap: 10px; font-size: 13px; align-items: flex-start; }
.footer-links a { text-decoration: none; }

/* --------------------------------------------------------------------------
   Home — hero
   -------------------------------------------------------------------------- */
.hero { position: relative; padding-top: 56px; }
.hero-glow {
  position: absolute; left: -8%; top: -10%; width: 60%; height: 70%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--color-accent) 22%, transparent), transparent);
  filter: blur(30px); pointer-events: none;
}
.hero-grid {
  position: relative; display: grid;
  grid-template-columns: minmax(280px, 0.68fr) minmax(300px, 1.32fr);
  gap: 36px; align-items: center;
}
.hero .hero-kicker { display: block; color: var(--color-accent); margin-bottom: 18px; }
.hero h1 { margin: 0 0 20px; font-size: clamp(38px, 5.6vw, 66px); line-height: 1.02; max-width: 16ch; }
.hero .lead { margin: 0 0 26px; font-size: 17px; max-width: 42ch; color: color-mix(in srgb, var(--color-text) 78%, transparent); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-figure { margin: 0; cursor: zoom-in; overflow: hidden; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
/* stacked hero photos, crossfading one over the next */
.hero-stack { position: relative; height: clamp(320px, 32vw, 460px); }
.hero-slide {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%;
  opacity: 0; pointer-events: none;
  transition: opacity 1100ms ease-in-out;
}
.hero-slide.is-active { opacity: 1; pointer-events: auto; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-stack { height: clamp(220px, 52vw, 420px); }
}

/* Process strip (inverted band) */
.process { margin: 84px 0 0; padding: 64px 0; }
.process-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 28px; }
.step { border-top: 1px solid var(--color-divider); padding-top: 16px; }
.step:first-child { border-top: 2px solid var(--color-accent); }
.step .mono { display: block; color: var(--color-accent); margin-bottom: 10px; }
.step h4 { margin: 0 0 6px; }
.step p { margin: 0; font-size: 14px; color: color-mix(in srgb, var(--color-text) 72%, transparent); }

/* Gallery slider */
.gallery { margin: 96px 0 0; position: relative; }
.gallery-head { display: flex; align-items: baseline; gap: 20px; flex-wrap: wrap; margin-bottom: 32px; }
.gallery-head h2 { margin: 0; max-width: 20ch; }
.gallery-head .hint { font-size: 14px; color: color-mix(in srgb, var(--color-text) 60%, transparent); }
.gal-wrap { position: relative; }
.gal-track {
  display: flex; align-items: flex-start; gap: 24px;
  overflow-x: auto; overflow-y: hidden;
  padding: 0 max(var(--gutter), calc((100% - var(--container)) / 2));
  scroll-behavior: auto; /* the loop-normalizing jump must be instant */
  scrollbar-width: none; -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}
.gal-track::-webkit-scrollbar { display: none; }
.gal-card {
  flex: 0 0 clamp(200px, 30vw, 400px); margin: 0; cursor: zoom-in;
  display: flex; flex-direction: column; align-self: flex-start;
}
.img-frame { overflow: hidden; border-radius: var(--radius-md); aspect-ratio: 4 / 3; }
.img-frame img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 700ms var(--ease-out); }
[data-photo]:hover .img-frame img { transform: scale(1.06); }
.gal-card figcaption { display: flex; gap: 12px; margin-top: 14px; font-size: 14px; line-height: 1.4; color: var(--color-text); }
.gal-card figcaption .mono { color: var(--color-accent); padding-top: 3px; flex: none; }
.gal-arrow {
  position: absolute; top: clamp(75px, 11vw, 150px);
  width: 48px; height: 48px; padding: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; border-radius: 999px;
  border: 1px solid var(--color-divider);
  background: color-mix(in srgb, var(--color-bg) 82%, transparent);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  color: var(--color-text); cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}
.gal-prev { left: 16px; }
.gal-next { right: 16px; }
.gal-arrow:hover { background: var(--color-accent); border-color: var(--color-accent); color: #14160f; }

/* Statement band (inverted) */
.statement {
  margin: 96px 0 0; padding: 72px 0;
  border-top: 1px solid var(--color-accent);
  border-bottom: 1px solid var(--color-divider);
}
.statement .big {
  margin: 0 0 24px; font-size: clamp(22px, 3vw, 34px); line-height: 1.25; max-width: 30ch;
  font-family: var(--font-heading); font-weight: var(--font-heading-weight); letter-spacing: -0.015em;
}
.statement-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px;
  padding-top: 12px; border-top: 1px solid var(--color-divider);
}
.statement-grid p { margin: 0; font-size: 15px; color: color-mix(in srgb, var(--color-text) 76%, transparent); }
.statement-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }

/* FAQ */
.faq { padding-top: 88px; }
.faq-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 44px; align-items: start; }
.faq h2 { margin: 0; font-size: clamp(26px, 3.4vw, 38px); max-width: 16ch; }
.faq details { border-top: 1px solid var(--color-divider); padding: 18px 0; }
.faq details:last-child { border-bottom: 1px solid var(--color-divider); }
.faq summary {
  display: flex; align-items: center; gap: 16px; list-style: none; cursor: pointer;
  font-family: var(--font-heading); font-weight: var(--font-heading-weight); font-size: 17px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq-plus { color: var(--color-accent); transition: transform 240ms ease; display: inline-block; width: 14px; }
.faq details[open] .faq-plus { transform: rotate(45deg); }
.faq details p { font-size: 14px; color: color-mix(in srgb, var(--color-text) 75%, transparent); }

/* Home closing */
.closing { padding-top: 88px; }
.closing-inner {
  border-top: 2px solid var(--color-accent); padding-top: 32px;
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px;
}
.closing h2 { margin: 0; font-size: clamp(28px, 4.4vw, 50px); max-width: 22ch; line-height: 1.05; }

/* --------------------------------------------------------------------------
   Subpages — Keukens, Kasten, Contact
   -------------------------------------------------------------------------- */
.page { padding-top: 72px; }
.page h1 { margin: 0 0 18px; max-width: 22ch; }
.lead { margin: 0; font-size: 17px; max-width: 58ch; color: color-mix(in srgb, var(--color-text) 78%, transparent); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 40px; }
.tile-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 28px 24px; align-items: start; }
.tile { margin: 0; cursor: zoom-in; display: flex; flex-direction: column; gap: 14px; }
.tile .img-frame { box-shadow: var(--shadow-sm); }
.tile-title { display: block; font-family: var(--font-heading); font-weight: var(--font-heading-weight); font-size: 17px; color: var(--color-text); margin-bottom: 4px; }
.tile-desc { font-size: 13px; color: color-mix(in srgb, var(--color-text) 65%, transparent); }

.cta-panel {
  margin: 76px 0 0; padding: 48px 40px;
  border: 1px solid var(--color-accent-700); border-radius: var(--radius-lg);
  background: radial-gradient(120% 140% at 12% 0%, var(--color-accent-900), var(--color-surface) 62%);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
}
.cta-panel h2 { margin: 0 0 8px; font-size: clamp(24px, 3vw, 32px); max-width: 26ch; }
.cta-panel p { margin: 0; font-size: 15px; max-width: 48ch; color: color-mix(in srgb, var(--color-text) 78%, transparent); }
@media (max-width: 600px) { .cta-panel { padding: 32px 24px; } }

.info-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 1px;
  margin-top: 72px; background: var(--color-divider);
  border: 1px solid var(--color-divider); border-radius: var(--radius-md); overflow: hidden;
}
.info-grid > div { background: var(--color-bg); padding: 28px 24px; }
.info-grid h4 { margin: 0 0 6px; }
.info-grid p { margin: 0; font-size: 14px; color: color-mix(in srgb, var(--color-text) 70%, transparent); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 56px; align-items: start; }
.contact-intro { display: flex; flex-direction: column; gap: 26px; }
.contact-intro h1 { max-width: 16ch; }
.contact-intro .lead { max-width: 46ch; }
.details { display: grid; grid-template-columns: 110px 1fr; gap: 0 20px; }
.details .rule { grid-column: 1 / -1; height: 1px; background: var(--color-divider); }
.details .label { display: flex; align-items: center; gap: 8px; padding: 16px 0; color: color-mix(in srgb, var(--color-text) 60%, transparent); }
.details .label svg { flex: none; color: var(--color-accent); }
.details .value { margin: 0; padding: 14px 0 16px; font-size: 16px; line-height: 1.5; }
.details .value a { text-decoration: none; }
.details .sub { margin: 4px 0 0; font-size: 14px; color: color-mix(in srgb, var(--color-text) 60%, transparent); }
.details .tel-list { line-height: 1.6; }
@media (max-width: 420px) {
  .details { grid-template-columns: 1fr; }
  .details .label { padding-bottom: 2px; }
  .details .value { padding-top: 4px; }
}

.form-panel { background: var(--color-surface); border-radius: var(--radius-lg); padding: 34px 32px; box-shadow: var(--shadow-sm); }
.form-panel form { display: flex; flex-direction: column; gap: 16px; }
.form-panel form[hidden] { display: none; }
.form-panel h3 { margin: 0 0 4px; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.radios { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.form-note { margin: 0; font-size: 12px; color: color-mix(in srgb, var(--color-text) 55%, transparent); }
.form-error { margin: 0; font-size: 13px; color: var(--color-accent-400); }
.form-success { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; padding: 22px 0; }
.form-success[hidden] { display: none; }
.form-success h3 { margin: 0; }
.form-success p { margin: 0; font-size: 15px; color: color-mix(in srgb, var(--color-text) 75%, transparent); }
.form-success .btn { font-size: 14px; }
@media (max-width: 480px) { .form-panel { padding: 26px 20px; } }

/* --------------------------------------------------------------------------
   Lightbox
   -------------------------------------------------------------------------- */
.lightbox {
  position: fixed; inset: 0; z-index: 90;
  background: color-mix(in srgb, #0b0c14 86%, transparent);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 18px; padding: 40px 24px; cursor: zoom-out;
}
.lightbox[hidden] { display: none; }
.lightbox-stage {
  /* fixed box: the photo scales inside it, so nothing below ever shifts */
  width: min(1100px, 92vw);
  height: min(74vh, calc(100vh - 215px));
  display: flex; align-items: center; justify-content: center;
}
.lightbox-img {
  max-width: 100%; max-height: 100%; object-fit: contain;
  border-radius: var(--radius-md); cursor: default;
  animation: lbIn 260ms var(--ease-out);
}
/* fixed-width row: the arrows keep the same position whatever the caption says */
.lightbox-nav {
  width: min(760px, 92vw);
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; cursor: default;
}
.lightbox-nav .btn { flex: none; }
.lightbox-nav .btn { font-size: 14px; color: #e9e9ed; border-color: rgba(233, 233, 237, 0.25); }
.lightbox-nav .btn:hover { background: rgba(233, 233, 237, 0.08); }
.lightbox-caption { flex: 1; font-size: 14px; color: color-mix(in srgb, #e9e9ed 80%, transparent); text-align: center; }
.lightbox-hint { font-size: 12px; color: color-mix(in srgb, #e9e9ed 45%, transparent); }
@keyframes lbIn {
  from { opacity: 0; transform: scale(0.97); }
  to { opacity: 1; transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .img-frame img, .faq-plus, .lightbox-img, .nav-toggle span { transition: none; animation: none; }
}

/* small helpers used by the page markup */
.tile-grid-spaced { margin-top: 44px; }
.details .value-main { margin: 0; }
.fieldset-plain { border: 0; padding: 0; margin: 0; min-width: 0; }
.fieldset-plain > legend {
  display: block; padding: 0; font-size: 12px; margin-bottom: 5px;
  color: color-mix(in srgb, var(--color-text) 70%, transparent);
}

/* focal point for tall photographs shown in the 4:3 frame */
.img-frame img.focus-top { object-position: center 26%; }

/* honeypot — off-screen for people, visible to bots */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* FAQ: the answer animates open and closed (see js/main.js) */
.faq-body { overflow: hidden; }
.faq-body p { margin: 12px 0 0 30px; }

/* Touch devices swipe the strip directly, so the arrows only get in the way */
@media (max-width: 800px) {
  .gal-arrow { display: none; }
}
