/* ==========================================================================
   Lauterborn Electric — site styles
   Design: "Copper Line" — graphite, copper and a live current running
   through the page. Tailwind handles the grid; this file holds the identity.
   ========================================================================== */

:root {
  --ink: #0e1116;
  --slate1: #161b22;
  --slate2: #222935;
  --copper: #b85800;
  --copper-deep: #8e4400;
  --ember: #e08a33;
  --paper: #f6f3ee;
  --line: #d9d2c7;

  --bg: var(--paper);
  --fg: var(--ink);
  --muted: #5b6270;
  --card: #ffffff;
  --border: var(--line);
  --accent: var(--copper);
  --accent-fg: #ffffff;

  --shell: 78rem;
  --radius: 14px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

html[data-theme="dark"] {
  --bg: var(--ink);
  --fg: var(--paper);
  --muted: #9aa3b2;
  --card: #161b22;
  --border: #2b323d;
  --accent: var(--ember);
  --accent-fg: #14181f;
  color-scheme: dark;
}

* { -webkit-tap-highlight-color: transparent; }

/* a hidden element stays hidden, whatever display a component sets */
[hidden] { display: none !important; }

html { scroll-padding-top: 6.5rem; }

body {
  background: var(--bg);
  color: var(--fg);
  overflow-x: hidden;
}

h1, h2, h3, h4, .font-display {
  font-family: Archivo, system-ui, sans-serif;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

/* Deliberately restrained heading sizes */
h1 { font-size: clamp(1.6rem, 1.15rem + 1.5vw, 2.4rem); line-height: 1.1; font-weight: 700; }
h2 { font-size: clamp(1.25rem, 1.02rem + .8vw, 1.7rem); line-height: 1.18; font-weight: 700; }
h3 { font-size: clamp(1.05rem, .97rem + .4vw, 1.25rem); line-height: 1.25; font-weight: 600; }

p, li { text-wrap: pretty; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.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;
}

.skip-link {
  position: fixed; left: 1rem; top: -4rem; z-index: 200;
  background: var(--accent); color: var(--accent-fg);
  padding: .65rem 1.1rem; border-radius: 0 0 10px 10px; font-weight: 600;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 0; }

/* ----------------------------------------------------------- header ----- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 90;
  padding-top: env(safe-area-inset-top, 0px);
  color: #fff;
  transition: background .35s var(--ease), box-shadow .35s var(--ease);
}
.site-header .topbar {
  background: rgba(14, 17, 22, .55);
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  backdrop-filter: blur(6px);
  transition: background .35s var(--ease);
}
.site-header .navbar { background: transparent; transition: background .35s var(--ease); }

.site-header.is-stuck { box-shadow: 0 10px 30px rgba(0, 0, 0, .22); }
.site-header.is-stuck .topbar { background: var(--ink); }
.site-header.is-stuck .navbar { background: rgba(14, 17, 22, .97); backdrop-filter: blur(10px); }

.link-plain { color: #fff; opacity: .9; transition: color .2s, opacity .2s; }
.link-plain:hover { color: var(--ember); opacity: 1; }

.logo-link { display: inline-flex; align-items: center; }
.logo-img {
  height: clamp(2.6rem, 2.1rem + 1.3vw, 3.4rem);
  width: auto;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, .45));
  background: #fff;
  padding: .3rem .55rem;
  border-radius: 8px;
}

.main-nav { display: none; }
@media (min-width: 1024px) { .main-nav { display: block; } }

.nav-list { display: flex; align-items: center; gap: 1.5rem; }
.nav-list > li > a {
  position: relative; display: inline-block; padding: .4rem 0;
  font-weight: 600; font-size: .95rem; color: #fff;
}
.nav-list > li > a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--ember); transition: width .25s var(--ease);
}
.nav-list > li > a:hover::after,
.nav-list > li > a[aria-current]::after { width: 100%; }

.has-sub { position: relative; display: flex; align-items: center; gap: .3rem; }
.sub-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.4rem; height: 1.4rem; color: #fff; border-radius: 4px;
}
.sub-toggle svg { width: .7rem; transition: transform .25s var(--ease); }
.sub-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

.sub-menu {
  position: absolute; top: calc(100% + .75rem); left: -1rem; z-index: 20;
  min-width: 17rem; padding: .45rem;
  background: var(--card); color: var(--fg);
  border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: 0 24px 50px rgba(0, 0, 0, .25);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
}
.has-sub:hover .sub-menu,
.has-sub:focus-within .sub-menu,
.sub-menu.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
.sub-menu a {
  display: block; padding: .55rem .7rem; border-radius: 8px;
  font-size: .9rem; font-weight: 500; color: var(--fg);
}
.sub-menu a:hover { background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); }

.nav-cta {
  display: none; padding: .6rem 1.15rem; border-radius: 999px;
  background: var(--copper); color: #fff; font-weight: 600; font-size: .9rem;
  box-shadow: 0 8px 20px rgba(184, 88, 0, .35);
  transition: transform .2s var(--ease), background .2s;
}
.nav-cta:hover { background: var(--copper-deep); transform: translateY(-2px); }
@media (min-width: 1024px) { .nav-cta { display: inline-block; } }

.burger { display: inline-flex; padding: .55rem; color: #fff; }
@media (min-width: 1024px) { .burger { display: none; } }
.burger-bars { display: grid; gap: 5px; width: 24px; }
.burger-bars i { display: block; height: 2px; background: currentColor; transition: transform .25s var(--ease), opacity .2s; }
.burger[aria-expanded="true"] i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  background: var(--ink); border-top: 1px solid rgba(255, 255, 255, .1);
  max-height: calc(100svh - 7rem); overflow-y: auto;
}
.mobile-nav ul { padding: .5rem 1rem 1.25rem; }
.mobile-nav a {
  display: block; padding: .7rem .25rem; color: #fff; font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.mobile-nav .sub a { padding-left: 1.1rem; font-weight: 400; font-size: .92rem; opacity: .85; }
.mob-cta {
  display: block !important; text-align: center; border: 0 !important;
  background: var(--copper); border-radius: 999px; margin-top: .5rem;
}

/* ------------------------------------------------------------- hero ----- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: flex-end;
  overflow: hidden;
  background: var(--ink);
}
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 38%; }
.hero-veil { position: absolute; inset: 0; background: rgba(0, 0, 0, .5); }
.hero-spark { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-inner {
  position: relative; z-index: 2; width: 100%;
  padding-bottom: clamp(1.25rem, .6rem + 2vh, 2.25rem);
  padding-top: calc(6.5rem + env(safe-area-inset-top, 0px));
  color: #fff;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .82rem; font-weight: 600; color: #fff;
  background: rgba(184, 88, 0, .9); padding: .4rem .85rem; border-radius: 999px;
}
.hero h1 { color: #fff; max-width: 16ch; }
.hero-sub { max-width: 54ch; font-size: clamp(1rem, .95rem + .3vw, 1.15rem); color: rgba(255, 255, 255, .88); }

.hero-stats { border-top: 1px solid rgba(255, 255, 255, .22); }
.hero-stat { min-width: 0; overflow-wrap: anywhere; }
.hero-stat b { font-family: Archivo, sans-serif; font-size: clamp(1.1rem, .95rem + .5vw, 1.35rem); font-weight: 700; display: block; line-height: 1.1; }
.hero-stat span { font-size: .8rem; color: rgba(255, 255, 255, .72); }

/* live current line under the hero */
.current-line { position: relative; height: 3px; background: var(--slate2); overflow: hidden; }
.current-line::after {
  content: ""; position: absolute; top: 0; left: -40%; height: 100%; width: 40%;
  background: linear-gradient(90deg, transparent, var(--ember), var(--copper), transparent);
  animation: current 4.5s linear infinite;
}
@keyframes current { to { left: 110%; } }

/* ---------------------------------------------------------- buttons ----- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.4rem; border-radius: 999px;
  font-weight: 600; font-size: .95rem; line-height: 1;
  transition: transform .2s var(--ease), background .2s, color .2s, box-shadow .2s;
}
.btn-primary { background: var(--copper); color: #fff; box-shadow: 0 10px 24px rgba(184, 88, 0, .35); }
.btn-primary:hover { background: var(--copper-deep); transform: translateY(-2px); }
.btn-ghost { border: 1.5px solid rgba(255, 255, 255, .6); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--ink); transform: translateY(-2px); }
.btn-outline { border: 1.5px solid var(--accent); color: var(--accent); }
.btn-outline:hover { background: var(--accent); color: var(--accent-fg); transform: translateY(-2px); }

/* -------------------------------------------------------- sections ----- */
.section { padding-block: clamp(2.5rem, 1.6rem + 3vw, 4.25rem); }
.section-tight { padding-block: clamp(2rem, 1.4rem + 2vw, 3rem); }
.shell { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: 1rem; }
.lede { color: var(--muted); max-width: 68ch; }

.rule-head { display: flex; align-items: center; gap: .85rem; }
.rule-head::after { content: ""; flex: 1; height: 1px; background: var(--border); }

/* service cards: light 3D tilt */
.tilt {
  position: relative; display: flex; flex-direction: column; height: 100%;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s;
  will-change: transform;
}
.tilt:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); box-shadow: 0 22px 44px rgba(14, 17, 22, .16); }
.tilt .tilt-layer { transform: translateZ(26px); }
.tilt-media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--slate2); }
.tilt-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.tilt:hover .tilt-media img { transform: scale(1.05); }
.tilt-media .veil { position: absolute; inset: 0; background: rgba(0, 0, 0, .5); }
.tilt-icon {
  position: absolute; left: .85rem; bottom: .85rem; z-index: 2;
  display: grid; place-items: center; width: 2.6rem; height: 2.6rem;
  border-radius: 10px; background: var(--copper); color: #fff;
}
.tilt-icon svg { width: 1.3rem; height: 1.3rem; }

/* photos always show complete and sharp */
.photo-frame {
  background: var(--slate2);
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
}
.photo-frame img { width: 100%; height: auto; display: block; image-rendering: auto; }
.photo-tile { aspect-ratio: 3 / 4; }
.photo-wide { aspect-ratio: 4 / 3; }
.photo-wide img { width: 100%; height: 100%; object-fit: contain; background: #0b0d11; }
.post-card .photo-tile { aspect-ratio: 4 / 3; }
.photo-single { max-width: 20rem; }
.photo-tile img { width: 100%; height: 100%; object-fit: contain; background: #0b0d11; }
.photo-cover { aspect-ratio: 4 / 3; }
.photo-cover img { width: 100%; height: 100%; object-fit: cover; }

/* post list */
.post-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.post-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(14, 17, 22, .14); }
.post-meta { font-size: .78rem; letter-spacing: .04em; color: var(--muted); }

.chip {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .3rem .7rem; border-radius: 999px; font-size: .78rem; font-weight: 600;
  background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent);
}

.check-list li {
  position: relative; padding-left: 1.6rem; font-size: .94rem; line-height: 1.5;
}
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .42em;
  width: .7rem; height: .7rem; border-radius: 2px;
  background: var(--accent); transform: rotate(45deg);
}

.prose-le p { margin-bottom: .9rem; line-height: 1.65; max-width: 72ch; }
.prose-le h2 { margin-top: 1.6rem; margin-bottom: .6rem; }
.prose-le h3 { margin-top: 1.3rem; margin-bottom: .45rem; }
.prose-le ul { margin: .25rem 0 1rem; padding-left: 1.1rem; list-style: disc; }
.prose-le ul li { margin-bottom: .35rem; line-height: 1.55; }
.prose-le a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.prose-le blockquote {
  margin: 1.2rem 0; padding: 1rem 1.2rem; border-left: 3px solid var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, transparent); font-style: italic;
}

.page-head {
  position: relative; background: var(--ink); color: #fff; overflow: hidden;
  padding-top: calc(7rem + env(safe-area-inset-top, 0px));
  padding-bottom: 2rem;
}
.page-head .veil { position: absolute; inset: 0; background: rgba(0, 0, 0, .5); }
.page-head img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-head > .shell { position: relative; z-index: 2; }
.page-head h1 { color: #fff; }
.crumbs { font-size: .8rem; color: rgba(255, 255, 255, .75); }
.crumbs a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.crumbs li + li::before { content: "/"; margin: 0 .5rem; opacity: .55; }

.side-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.1rem; }
.side-link {
  display: flex; align-items: center; justify-content: space-between; gap: .5rem;
  padding: .55rem .6rem; border-radius: 8px; font-size: .9rem; font-weight: 500;
}
.side-link:hover, .side-link[aria-current] { background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); }

/* forms */
.field label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: .3rem; }
.field input, .field textarea, .field select {
  width: 100%; padding: .7rem .85rem; font-size: .95rem;
  background: var(--card); color: var(--fg);
  border: 1.5px solid var(--border); border-radius: 10px;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); outline: none;
}
.field .hint { font-size: .78rem; color: var(--muted); margin-top: .25rem; }
.field .err { font-size: .8rem; color: #c0392b; margin-top: .25rem; font-weight: 600; }
html[data-theme="dark"] .field .err { color: #ff8a7a; }
.req { color: var(--accent); }

.alert { border-radius: 10px; padding: .9rem 1.1rem; font-size: .92rem; border: 1.5px solid; }
.alert-ok { border-color: #2e7d4f; background: rgba(46, 125, 79, .12); color: #1f6b41; }
.alert-bad { border-color: #c0392b; background: rgba(192, 57, 43, .1); color: #a3291c; }
html[data-theme="dark"] .alert-ok { color: #8fe0b0; }
html[data-theme="dark"] .alert-bad { color: #ff9c90; }

/* footer */
.site-footer { position: relative; overflow: hidden; background: var(--ink); color: var(--paper); isolation: isolate; }
.foot-spark { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.foot-inner {
  position: relative; z-index: 1;
  /* padding lives here, not in a utility class, so it can never go missing */
  padding-top: clamp(3rem, 2.4rem + 2vw, 4rem);
  padding-bottom: clamp(2.5rem, 2rem + 1.5vw, 3.5rem);
}
/* narrower screens: leave room so the floating buttons never cover the copyright line */
@media (max-width: 1340px) {
  .foot-inner { padding-bottom: 7.5rem; }
  .foot-bar { padding-inline: 4rem; text-align: center; }
}
.foot-bar { margin-top: 2.5rem; padding-top: 1.5rem; }
.footer-head { font-family: Archivo, sans-serif; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ember); margin-bottom: .7rem; }
.footer-list li { margin-bottom: .4rem; }
.footer-list a { font-size: .9rem; color: rgba(246, 243, 238, .78); }
.footer-list a:hover { color: #fff; text-decoration: underline; }
.footer-phone { font-family: Archivo, sans-serif; font-size: 1.3rem; font-weight: 700; color: #fff; }
.footer-phone:hover { color: var(--ember); }
.social-dot { display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .25); color: #fff; transition: background .2s, color .2s; }
.social-dot:hover { background: var(--copper); border-color: var(--copper); }

/* ---------------------------------------------- floating tools & panels - */
.float-stack {
  position: fixed; z-index: 95;
  display: grid; gap: .55rem; justify-items: center;
}
.float-stack--left  { left: 1rem;  bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); }
/* right side is kept clear of the Tawk.to bubble that sits in the bottom-right corner */
.float-stack--right { right: 1rem; bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px)); }
.float-btn {
  display: grid; place-items: center; width: 2.9rem; height: 2.9rem;
  border-radius: 999px; background: var(--card); color: var(--fg);
  border: 1px solid var(--border); box-shadow: 0 10px 24px rgba(14, 17, 22, .2);
  transition: transform .2s var(--ease), background .2s, color .2s;
}
.float-btn:hover { transform: translateY(-2px); }
.float-btn--accent { background: var(--copper); color: #fff; border-color: var(--copper); }
.float-btn--chat { background: var(--slate2); color: #fff; border-color: var(--slate2); }
.float-btn--top { opacity: .9; }
#themeToggle .icon-moon { display: none; }
html[data-theme="dark"] #themeToggle .icon-sun { display: none; }
html[data-theme="dark"] #themeToggle .icon-moon { display: block; }

.a11y-panel, .chat-panel {
  position: fixed; z-index: 96;
  width: min(20rem, calc(100vw - 5.6rem));
  background: var(--card); color: var(--fg);
  border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(14, 17, 22, .3);
  padding: 1rem;
  animation: pop .22s var(--ease);
}
.a11y-panel { left: 4.4rem;  bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); }
.chat-panel { right: 4.4rem; bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px)); }
@keyframes pop { from { opacity: 0; transform: translateY(10px); } }
.panel-close { display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 999px; border: 1px solid var(--border); }
.panel-close:hover { background: var(--accent); color: var(--accent-fg); }

.a11y-list { margin-top: .75rem; display: grid; gap: .35rem; }
.a11y-opt {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: .55rem .7rem; border-radius: 10px; border: 1px solid var(--border);
  font-size: .9rem; font-weight: 500; text-align: left;
}
.a11y-opt:hover { border-color: var(--accent); }
.a11y-opt .state { font-size: .72rem; font-weight: 700; letter-spacing: .06em; color: var(--muted); }
.a11y-opt[aria-pressed="true"] { background: color-mix(in srgb, var(--accent) 14%, transparent); border-color: var(--accent); }
.a11y-opt[aria-pressed="true"] .state { color: var(--accent); }
.a11y-reset { margin-top: .75rem; width: 100%; padding: .5rem; border-radius: 10px; background: var(--slate2); color: #fff; font-size: .85rem; font-weight: 600; }

.chat-panel { padding: 0; overflow: hidden; display: flex; flex-direction: column; max-height: min(30rem, 72svh); }
.chat-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .85rem 1rem; background: var(--slate2); color: #fff; }
.chat-head .panel-close { border-color: rgba(255, 255, 255, .35); color: #fff; }
.chat-log { flex: 1; overflow-y: auto; padding: .9rem 1rem; display: grid; gap: .6rem; align-content: start; }
.msg { max-width: 85%; padding: .55rem .8rem; border-radius: 12px; font-size: .88rem; line-height: 1.45; }
.msg a { text-decoration: underline; }
.msg-bot { background: color-mix(in srgb, var(--accent) 12%, transparent); justify-self: start; border-bottom-left-radius: 3px; }
.msg-you { background: var(--slate2); color: #fff; justify-self: end; border-bottom-right-radius: 3px; }
.chat-chips { display: flex; flex-wrap: wrap; gap: .35rem; padding: 0 1rem .6rem; }
.chat-chips button { font-size: .78rem; padding: .32rem .65rem; border-radius: 999px; border: 1px solid var(--border); }
.chat-chips button:hover { border-color: var(--accent); color: var(--accent); }
.chat-form { display: flex; gap: .4rem; padding: .7rem 1rem 1rem; border-top: 1px solid var(--border); }
.chat-form input { flex: 1; padding: .55rem .7rem; font-size: .88rem; border: 1.5px solid var(--border); border-radius: 999px; background: var(--bg); color: var(--fg); }
.chat-form button { display: grid; place-items: center; width: 2.3rem; height: 2.3rem; border-radius: 999px; background: var(--copper); color: #fff; }

/* ------------------------------------------------------- reveal motion -- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }
.reveal[data-delay="5"] { transition-delay: .4s; }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; background: rgba(8, 10, 14, .92); padding: 1.5rem; }
.lightbox img { max-width: min(92vw, 1100px); max-height: 86svh; width: auto; height: auto; border-radius: 8px; }
.lightbox figcaption { color: #fff; font-size: .85rem; margin-top: .6rem; text-align: center; }
.lightbox .lb-close { position: absolute; top: 1rem; right: 1rem; width: 2.6rem; height: 2.6rem; border-radius: 999px; background: #fff; color: var(--ink); display: grid; place-items: center; }

/* ------------------------------------------- accessibility preferences -- */
html.a11y-bigger { font-size: 118%; }
html.a11y-readable body { letter-spacing: .015em; word-spacing: .08em; line-height: 1.85; }
html.a11y-links a { text-decoration: underline !important; text-underline-offset: 2px; }
html.a11y-contrast {
  --bg: #000; --fg: #fff; --card: #000; --border: #fff; --muted: #f2f2f2;
  --accent: #ffd300; --accent-fg: #000;
}
html.a11y-contrast body { background: #000; color: #fff; }
html.a11y-contrast .hero-veil,
html.a11y-contrast .page-head .veil,
html.a11y-contrast .tilt-media .veil { background: rgba(0, 0, 0, .72); }
html.a11y-contrast .btn-primary,
html.a11y-contrast .nav-cta,
html.a11y-contrast .tilt-icon,
html.a11y-contrast .chat-form button { background: #ffd300; color: #000; }
html.a11y-contrast .site-footer,
html.a11y-contrast .site-header.is-stuck .navbar,
html.a11y-contrast .site-header .topbar { background: #000; }
html.a11y-contrast .msg-bot { background: #222; color: #fff; }

html.a11y-stillness *,
html.a11y-stillness *::before,
html.a11y-stillness *::after {
  animation-duration: .001ms !important; animation-iteration-count: 1 !important;
  transition-duration: .001ms !important; scroll-behavior: auto !important;
}
html.a11y-stillness .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .float-stack, .a11y-panel, .chat-panel, .site-footer { display: none !important; }
  body { background: #fff; color: #000; }
}
