/*
PATH: /css/site.css
TYPE: stylesheet
STATUS: shared
USES: shared site shell, header, hero, lead form, footer, mobile sticky, trust-image bridge, lightbox
PURPOSE:
Shared site-owned systems that remain after extraction:
- shared header shell
- shared button styling used by hero and sticky CTA
- homepage hero
- lead form
- footer
- mobile sticky CTA bar
- trust-image bridge
- shared lightbox component

OWNERSHIP NOTES:
- This file SHOULD own:
  - shared header shell and navigation
  - shared button primitives used across page families
  - homepage hero shell headings
  - lead form card and fields inside hero
  - global footer
  - mobile sticky CTA bar
  - trust-image bridge
  - shared lightbox trigger affordance
  - shared lightbox overlay, frame, image, and controls
- This file SHOULD NOT own:
  - global typography tokens or root variables
  - generic layout primitives like .container or .section
  - band shells or section layout grids
  - CTA band internals
  - services or plan card systems
  - page-specific gallery layout rules or image crops
*/

/* =========================================================
   ACCESSIBILITY UTILITIES
   Screen-reader-only utility for visually hidden labels
   ========================================================= */

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

/* =========================================================
   HEADER
   Shared site header, desktop nav, mobile nav, menu toggle
   ========================================================= */

.site-header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 40;
  /* The header keeps the fonts it was built with; the rest of the site uses
     the system stacks in --font-display / --font-body. */
  font-family: var(--font-hero-body);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 0;
  color: var(--text-light);
}

.brand {
  display: inline-flex;
  align-items: flex-start;
  flex: 0 0 auto;
  margin: 0;
}

/* Studio logo (/assets/logo/, nearly square, 779x765). Sized by height;
   the width and height attributes on the <img> reserve its space before
   the SVG loads, so nothing shifts. The light version is used in the header
   on every page: the header always sits over a dark hero photo. */
.brand img {
  display: block;
  width: auto;
  height: 6rem;
}

.desktop-nav {
  display: none;
  align-items: center;
  gap: 1.7rem;
  margin-left: auto;
}

.desktop-nav a {
  position: relative;
  color: var(--text-light);
  font-size: 0.77rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: opacity 180ms ease, color 180ms ease;
}

.desktop-nav a:hover,
.desktop-nav a:focus-visible {
  opacity: 0.72;
}

.desktop-nav a[aria-current="page"] {
  opacity: 1;
}

/* Services label and its submenu. The label is plain text (there is no
   Services overview link in the menu); the submenu opens on hover or when a
   submenu link has focus. */
.nav-group {
  position: relative;
  display: flex;
  align-items: center;
}

.desktop-nav .nav-label,
.desktop-nav .is-unlinked {
  color: var(--text-light);
  font-size: 0.77rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.nav-submenu {
  position: absolute;
  top: 100%;
  left: -1rem;
  z-index: 45;
  display: grid;
  min-width: 260px;
  margin-top: 0.75rem;
  padding: 0.6rem 1rem;
  background: color-mix(in srgb, var(--ink-deep) 96%, transparent);
  border: 1px solid color-mix(in srgb, var(--porcelain) 12%, transparent);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.28);
  opacity: 0;
  visibility: hidden;
  transition: opacity 180ms ease, visibility 180ms ease;
}

/* Hover bridge so the pointer can move from the label into the submenu. */
.nav-submenu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: 0.75rem;
}

.nav-group:hover .nav-submenu,
.nav-group:focus-within .nav-submenu {
  opacity: 1;
  visibility: visible;
}

.desktop-nav .nav-submenu a,
.desktop-nav .nav-submenu .is-unlinked {
  display: block;
  padding: 0.6rem 0;
  white-space: nowrap;
}

/* Persistent Start a Project button at the end of the menu. */
.desktop-nav .nav-cta {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 1.1rem;
  border: 0;
  background: var(--btn-bg);
  color: var(--btn-text);
  transition: background 180ms ease;
}

.desktop-nav a.nav-cta:hover,
.desktop-nav a.nav-cta:focus-visible {
  opacity: 1;
  background: var(--btn-bg-hover);
}

.desktop-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.45rem;
  height: 1px;
  background: currentColor;
  opacity: 0.75;
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  padding: 0;
  margin-left: auto;
  border: 0;
  background: transparent;
  box-shadow: none;
  appearance: none;
  -webkit-appearance: none;
  color: var(--text-light);
  cursor: pointer;
  border-radius: 0;
  transition: background 180ms ease, color 180ms ease, opacity 180ms ease;
}

.menu-toggle:hover {
  opacity: 0.78;
}

.menu-toggle:focus-visible {
  outline: 1px solid color-mix(in srgb, var(--porcelain) 70%, transparent);
  outline-offset: 4px;
}

.menu-toggle-bars {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

.menu-toggle-bars span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bars span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bars span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bars span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  padding-top: 0.35rem;
}

.mobile-menu.is-open {
  display: block;
}

.mobile-menu .container {
  width: min(calc(100% - 2rem), var(--content));
  margin: 0 auto;
}

.mobile-nav {
  display: grid;
  gap: 0;
  padding: 0.9rem 1rem;
  background: color-mix(in srgb, var(--ink-deep) 96%, transparent);
  border: 1px solid color-mix(in srgb, var(--porcelain) 12%, transparent);
  backdrop-filter: blur(12px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.28);
}

.mobile-nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0.65rem 0;
  color: var(--text-light);
  font-size: 0.77rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-bottom: 1px solid color-mix(in srgb, var(--porcelain) 8%, transparent);
  transition: opacity 180ms ease, color 180ms ease;
}

.mobile-nav a:hover,
.mobile-nav a:focus-visible {
  opacity: 0.72;
}

.mobile-nav a[aria-current="page"] {
  opacity: 1;
  color: var(--mist);
}

.mobile-nav a:last-child {
  border-bottom: 0;
}

.mobile-nav .nav-label,
.mobile-nav .is-unlinked {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0.65rem 0;
  color: var(--text-light);
  font-size: 0.77rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-bottom: 1px solid color-mix(in srgb, var(--porcelain) 8%, transparent);
}

.mobile-nav .mobile-subitem {
  padding-left: 1rem;
}

.mobile-nav .nav-cta {
  justify-content: center;
  margin-top: 0.75rem;
  border: 0;
  background: var(--btn-bg);
  color: var(--btn-text);
  transition: background 180ms ease;
}

.mobile-nav a.nav-cta:hover,
.mobile-nav a.nav-cta:focus-visible {
  opacity: 1;
  background: var(--btn-bg-hover);
}

/* =========================================================
   UNLINKED ITEMS
   Pages that are not built yet print as <span class="... is-unlinked">
   (see /includes/site-pages.php). They keep the box and look of the link
   they replace, so nothing shifts when the page is built, but they do not
   react to the pointer: default cursor, no hover color or underline.
   ========================================================= */

.is-unlinked {
  cursor: default;
  pointer-events: none;
}

/* =========================================================
   SHARED BUTTONS
   Sitewide button primitives (hero, sticky CTA, etc.)
   No border. Fill and text come from --btn-* (tokens.css): Mist with Ink
   text by default (hero, header, sticky bar, Ink bands), Ink with
   Porcelain text inside .band-light and .band-mist (bands.css). Hover
   shifts the fill one shade. Unlinked buttons (.is-unlinked) get no hover.
   ========================================================= */

.outline-btn,
.solid-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.95rem 1.25rem;
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 400;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  line-height: 1;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    opacity 180ms ease;
}

.outline-btn,
.solid-btn {
  border: 0;
  background: var(--btn-bg);
  color: var(--btn-text);
}

/* Shared hover: one shade lighter or darker, same text color. */
.solid-btn:hover,
.solid-btn:focus-visible,
.outline-btn:hover,
.outline-btn:focus-visible {
  background: var(--btn-bg-hover);
  color: var(--btn-text);
}

/* Larger button used in the closing band. Same --btn-* colors as the
   shared buttons (Mist on the Ink band). */
.light-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 1rem 1.6rem;
  border: 0;
  background: var(--btn-bg);
  color: var(--btn-text);
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1;
  transition: background 180ms ease, color 180ms ease;
}

.light-btn:hover,
.light-btn:focus-visible {
  background: var(--btn-bg-hover);
  color: var(--btn-text);
}

/* Header and hero buttons keep the font they were built with. */
.site-header .outline-btn,
.site-header .solid-btn,
.hero .outline-btn,
.hero .solid-btn {
  font-family: var(--font-hero-body);
  font-weight: 500;
}

/* =========================================================
   HERO
   Homepage hero shell, headings, description, actions
   ========================================================= */

.hero {
  position: relative;
  /* The hero keeps the fonts it was built with (see .site-header). */
  font-family: var(--font-hero-body);
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--ink) var(--hero-image);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

/* Ink screen over the hero image: an even layer (::before) plus a stronger
   band at the top (::after) that fades out by 40% of the height, so the
   header and menu stay readable. Strengths: --hero-ink-overlay and
   --hero-ink-overlay-top in tokens.css. */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hero::before {
  background: var(--ink);
  opacity: var(--hero-ink-overlay);
}

.hero::after {
  background: linear-gradient(180deg, var(--ink) 0, transparent 40%);
  opacity: var(--hero-ink-overlay-top);
}

.hero-inner {
  position: relative;
  z-index: 2;
  min-height: 100svh;
  display: grid;
  align-items: end;
  padding: 6.4rem 0 2.4rem;
  color: var(--text-light);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(340px, 390px);
  gap: 2rem;
  align-items: end;
}

.hero-copy {
  max-width: 760px;
  padding-top: 0;
  padding-bottom: 1.2rem;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 0;
  margin-bottom: 1.15rem;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-light);
}

.eyebrow::after {
  content: "";
  width: 52px;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
}

.hero h1,
.hero h2,
.hero h3 {
  margin: 0;
  font-family: var(--font-hero-display);
  font-weight: 500;
}

.hero h1 {
  font-size: clamp(3rem, 7vw, 4.5rem);
  line-height: 0.98;
  max-width: 20ch;
}

.hero h2 {
  font-size: clamp(2.1rem, 4vw, 3.25rem);
  line-height: 0.98;
  max-width: 25ch;
  margin-bottom: 0.8rem;
}

.hero h3 {
  font-size: clamp(1.35rem, 2.2vw, 1.95rem);
  line-height: 1.04;
  margin-bottom: 0.35rem;
}

.hero-copy p {
  margin-top: 1.15rem;
  max-width: 62ch;
  font-size: 1rem;
  line-height: 1.72;
  color: var(--muted-light);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.6rem;
}

.scroll-indicator {
  position: absolute;
  left: 50%;
  bottom: 1.35rem;
  z-index: 2;
  transform: translateX(-50%);
  color: var(--scroll-light);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center;
}

.scroll-indicator::after {
  content: "";
  display: block;
  width: 1px;
  height: 34px;
  margin: 0.55rem auto 0;
  background: currentColor;
  opacity: 0.55;
}

/* =========================================================
   LEAD FORM
   Hero inquiry card, grouped fieldsets, inputs, consent

   Colors: Atera Design Studio palette (tokens in tokens.css). Ink card,
   translucent so the hero photo shows through the blur; Mist label;
   Porcelain text; Porcelain-tint fields with Slate lines; Mist focus.
   The local --lead-* values are mixed from those tokens only.
   ========================================================= */

.lead-card {
  --lead-card-bg: color-mix(in srgb, var(--ink) 84%, transparent);
  --lead-card-bg-strong: color-mix(in srgb, var(--ink) 92%, transparent);
  --lead-card-border: color-mix(in srgb, var(--porcelain) 16%, transparent);
  --lead-field-bg: color-mix(in srgb, var(--porcelain) 6%, transparent);
  --lead-field-bg-focus: color-mix(in srgb, var(--porcelain) 10%, transparent);
  --lead-field-border: var(--line-slate);
  --lead-placeholder: var(--porcelain-muted);

  width: 100%;
  max-width: 390px;
  justify-self: end;
  align-self: end;
  padding: 1rem;
  color: var(--porcelain);
  background: var(--lead-card-bg);
  border: 1px solid var(--lead-card-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.22);
}

.lead-kicker {
  margin-bottom: 0.55rem;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mist);
}

.lead-card .lead-title {
  max-width: none;
  font-size: clamp(1.55rem, 1.55vw, 2rem);
  line-height: 1.02;
  margin-bottom: 0.35rem;
  color: var(--porcelain);
}

.lead-card p {
  margin-bottom: 0.7rem;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--porcelain-muted);
}

.lead-form {
  display: grid;
  gap: 0.72rem;
}

/* Reset native fieldset chrome — fieldsets are used for a11y grouping only.
   Legends are visually hidden via .sr-only; borders/padding must not show.
   r11: bumped selector specificity (fieldset.lead-form-group + .lead-form
   fieldset) so the reset wins against any inherited UA mobile rules. Also
   explicitly clears background/box-shadow which some browsers add. */
.lead-form fieldset,
fieldset.lead-form-group,
.lead-form-group {
  border: 0 !important;
  padding: 0;
  margin: 0;
  min-width: 0;
  background: transparent;
  box-shadow: none;
  display: grid;
  gap: 0.72rem;
}

/* Belt-and-suspenders for mobile Safari/Chrome which sometimes re-applies
   UA fieldset chrome inside flex/grid hero contexts. */
@media (max-width: 767px) {
  .lead-form fieldset,
  fieldset.lead-form-group,
  .lead-form-group {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
  }
}

.lead-form input,
.lead-form select {
  width: 100%;
  min-height: 46px;
  padding: 0.88rem 0.92rem;
  border: 1px solid var(--lead-field-border, var(--field-border-light));
  background: var(--lead-field-bg, var(--field-bg-light));
}

.lead-form input {
  color: var(--porcelain);
}

.lead-form input::placeholder {
  color: var(--lead-placeholder, var(--placeholder-light));
  opacity: 1;
}

.lead-form select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  color: var(--lead-placeholder, var(--placeholder-light));
}

.lead-form select:valid {
  color: var(--porcelain);
}

/* Native drop-down list: Ink text on the browser's light list. */
.lead-form select option {
  color: var(--ink);
  background: var(--porcelain);
}

.lead-form input:focus,
.lead-form select:focus {
  outline: 2px solid var(--mist);
  outline-offset: 1px;
  border-color: var(--mist);
  background: var(--lead-field-bg-focus, var(--field-bg-light));
}

.lead-consent input[type="checkbox"]:focus {
  background: transparent;
}

.lead-form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.lead-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.7rem;
  line-height: 1.4;
  color: var(--porcelain-muted);
}

.lead-consent input[type="checkbox"] {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  min-height: 0;
  padding: 0;
  margin-top: 0.1rem;
  accent-color: var(--mist);
}

.lead-field {
  display: block;
  min-width: 0;
}

/* Spam trap field: kept off screen, never shown to people. */
.lead-form .lead-hp {
  position: absolute;
  left: -9999px;
  width: 0;
  height: 0;
  min-height: 0;
  padding: 0;
  border: 0;
  opacity: 0;
}

.lead-form .solid-btn {
  width: 100%;
  justify-content: center;
  text-align: center;
}

.form-legal {
  margin: 0;
  font-size: 0.7rem;
  line-height: 1.4;
  color: var(--porcelain-muted);
}

.form-legal a {
  color: var(--porcelain);
  text-decoration: underline;
}

.form-legal a:hover,
.form-legal a:focus-visible {
  color: var(--mist);
}

/* Second-step form on /thank-you.php (moved from an inline <style> block
   on that page): textarea, field label and the "Skip" link. */
.lead-form textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.45;
  color: var(--porcelain);
  background: var(--lead-field-bg, var(--field-bg-light));
  border: 1px solid var(--lead-field-border, var(--field-border-light));
  border-radius: 6px;
  min-height: 96px;
  resize: vertical;
}

.lead-form textarea::placeholder {
  color: var(--lead-placeholder, var(--placeholder-light));
  opacity: 1;
}

.lead-form textarea:focus {
  outline: 2px solid var(--mist);
  outline-offset: 1px;
  border-color: var(--mist);
  background: var(--lead-field-bg-focus, var(--field-bg-light));
}

.enrich-skip {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--porcelain-muted);
  text-decoration: underline;
}

.enrich-skip:hover,
.enrich-skip:focus-visible {
  color: var(--mist);
}

/* =========================================================
   FOOTER
   Global footer, laid out like the Atera Homes footer: a dark Ink band
   with a hairline on top, the light logo on the left (header size) and
   the menu in a row to its right, then a small tagline / copyright row.
   ========================================================= */

.site-footer {
  background: var(--ink-deep);
  color: var(--text-light);
  font-family: var(--font-body);
}

.footer-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2.5rem;
  padding: 2.25rem 0 1.75rem;
  border-top: 1px solid var(--line-light);
}

/* Footer logo: the light version on the dark band, same height as the
   header logo. width/height attributes on the <img> reserve its space. */
.footer-logo {
  flex: 0 0 auto;
  display: block;
}

.footer-logo img {
  display: block;
  width: auto;
  height: 6rem;
}

.footer-logo:hover,
.footer-logo:focus-visible {
  opacity: 0.8;
}

/* Footer menu: same type as the header menu. */
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.75rem 1.7rem;
  font-family: var(--font-hero-body);
}

.footer-nav a,
.footer-nav .is-unlinked {
  color: var(--text-light);
  font-size: 0.77rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: opacity 180ms ease;
}

.footer-nav .is-unlinked {
  opacity: 0.6;
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  opacity: 0.72;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 1rem 2rem;
  padding: 1.25rem 0 1.6rem;
  border-top: 1px solid var(--line-light);
}

.footer-item {
  font-size: var(--type-label-size);
  font-weight: 400;
  letter-spacing: var(--type-label-tracking-wide);
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--porcelain-muted);
}

.footer-tagline {
  justify-self: start;
}

.footer-copyright {
  justify-self: end;
  text-align: right;
}

/* =========================================================
   MOBILE STICKY CTA
   Bottom sticky call-to-action bar on mobile
   ========================================================= */

.mobile-sticky {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--mobile-sticky-bg);
  backdrop-filter: blur(10px);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.18);
}

.mobile-sticky .outline-btn,
.mobile-sticky .solid-btn {
  width: 100%;
}

/* =========================================================
   LIGHTBOX
   Shared overlay, inner frame, image, close, prev/next
   Merged from /css/lightbox.css
   ========================================================= */

/* Shared trigger affordance.
   Source sections may add their own wrapper/layout rules, but the
   cursor and component behavior live with the shared lightbox system. */
.lightbox-trigger {
  cursor: zoom-in;
}

/* Shared lightbox shell */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: var(--lightbox-bg);
}

.lightbox.is-open {
  display: flex;
}

.lightbox[aria-hidden="true"] {
  pointer-events: none;
}

.lightbox[aria-hidden="false"] {
  pointer-events: auto;
}

.lightbox-inner {
  position: relative;
  width: min(100%, 1180px);
  max-height: min(90vh, 900px);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Shared displayed image */
.lightbox img,
#site-lightbox-image {
  display: block;
  max-width: 100%;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: var(--lightbox-image-shadow);
  background: var(--image-placeholder);
}

/* Shared controls */
.lightbox-close {
  position: absolute;
  top: -0.8rem;
  right: -0.8rem;
  z-index: 3;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-light);
  background: var(--lightbox-close-bg);
  color: var(--text-light);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.lightbox-close:hover,
.lightbox-close:focus-visible {
  background: var(--lightbox-close-bg-hover);
  border-color: color-mix(in srgb, var(--mist) 50%, transparent);
  color: var(--text-light);
  outline: none;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-light);
  background: var(--lightbox-close-bg);
  color: var(--text-light);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.lightbox-nav:hover,
.lightbox-nav:focus-visible {
  background: var(--lightbox-close-bg-hover);
  border-color: color-mix(in srgb, var(--mist) 50%, transparent);
  color: var(--text-light);
  outline: none;
}

.lightbox-prev {
  left: 1rem;
}

.lightbox-next {
  right: 1rem;
}

.lightbox-nav[hidden] {
  display: none;
}

/* =========================================================
   RESPONSIVE: TABLET (max-width: 979px)
   ========================================================= */

@media (max-width: 979px) {
  /* Header stays shorter than the hero's top padding (6.4rem). */
  .header-inner {
    align-items: center;
    padding: 0.75rem 0;
  }

  .brand img {
    height: 4.5rem;
  }

  .hero-inner {
    align-items: start;
    padding: 6.4rem 0 6.2rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 1.5rem;
  }

  .hero-copy {
    max-width: 100%;
    padding-top: 1rem;
    padding-bottom: 0;
  }

  .hero h1 {
    font-size: clamp(3.15rem, 13vw, 4.9rem);
    max-width: 100%;
  }

  .hero-copy p {
    max-width: 100%;
    font-size: 1.05rem;
  }

  .hero-actions {
    margin-top: 1.35rem;
  }

  .lead-card {
    width: 100%;
    max-width: none;
    justify-self: stretch;
    margin-top: 0.4rem;
    background: var(--lead-card-bg-strong);
  }

  .lead-form {
    grid-template-columns: 1fr;
  }

  .scroll-indicator {
    display: none;
  }
}

/* =========================================================
   RESPONSIVE: MOBILE (max-width: 767px)
   ========================================================= */

@media (max-width: 767px) {
  /* Header stays shorter than the coming-soon hero's top padding (5.9rem). */
  .header-inner {
    padding: 0.75rem 0;
    gap: 0.75rem;
  }

  .brand img {
    height: 4.25rem;
  }

  .mobile-nav a {
    font-size: 0.74rem;
    letter-spacing: 0.12em;
  }

  .outline-btn,
.solid-btn {
    padding: 0.9rem 1rem;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    min-height: auto;
    padding: 5.9rem 0 6.2rem;
  }

  .eyebrow {
    gap: 0.6rem;
    margin-bottom: 0.95rem;
    font-size: 0.64rem;
  }

  .eyebrow::after {
    width: 38px;
  }

  .hero h1 {
    font-size: clamp(2.95rem, 14.5vw, 4.4rem);
    line-height: 0.96;
    max-width: 100%;
  }

  .hero-copy p {
    margin-top: 1rem;
    max-width: 100%;
    font-size: 1rem;
  }

  .lead-card {
    padding: 0.9rem;
  }

  .lead-card .lead-title {
    max-width: none;
    font-size: 1.3rem;
  }

  .lead-card p {
    font-size: 0.9rem;
  }

  .lead-form input {
    min-height: 44px;
    padding: 0.82rem 0.88rem;
  }

  .lightbox {
    padding: 1rem;
  }

  .lightbox-inner {
    width: 100%;
    max-height: 88vh;
  }

  .lightbox-close {
    top: 0.5rem;
    right: 0.5rem;
    width: 44px;
    height: 44px;
    font-size: 1.35rem;
  }

  .lightbox-nav {
    width: 44px;
    height: 44px;
    font-size: 1.6rem;
  }

  .lightbox-prev {
    left: 0.4rem;
  }

  .lightbox-next {
    right: 0.4rem;
  }

  .lightbox img,
  #site-lightbox-image {
    max-height: 82vh;
  }

  /* Footer mobile: logo, then the menu, then tagline and copyright, all
     stacked and centered. */
  .footer-main {
    flex-direction: column;
    gap: 1.25rem;
    padding: 2rem 0 1.5rem;
  }

  .footer-logo img {
    height: 5rem;
  }

  .footer-nav {
    justify-content: center;
    gap: 0.6rem 1.25rem;
  }

  .footer-nav a,
  .footer-nav .is-unlinked {
    font-size: 0.74rem;
    letter-spacing: 0.12em;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    padding: 1.25rem 0 1.5rem;
  }

  /* Keep the footer clear of the fixed mobile sticky bar on pages that have one. */
  body:has(.mobile-sticky) .site-footer {
    padding-bottom: 4.75rem;
  }

  .footer-tagline,
  .footer-copyright {
    justify-self: center;
    text-align: center;
  }

  .footer-item {
    font-size: var(--type-label-size-sm);
  }
}

/* =========================================================
   RESPONSIVE: SMALL MOBILE (max-width: 479px)
   ========================================================= */

@media (max-width: 479px) {
  .brand img {
    height: 4rem;
  }

  .menu-toggle {
    width: 42px;
    height: 42px;
    min-width: 42px;
  }

  .menu-toggle-bars span {
    width: 20px;
  }

  .hero h1 {
    font-size: clamp(2.7rem, 15vw, 4rem);
    max-width: 11ch;
  }

  .hero-copy p {
    max-width: 30ch;
  }

  .lead-kicker {
    font-size: 0.62rem;
  }

  .mobile-sticky {
    padding: 0.6rem 0.75rem;
    gap: 0.6rem;
  }

  .mobile-sticky .outline-btn,
  .mobile-sticky .solid-btn {
    padding: 0.85rem 0.7rem;
    font-size: 0.68rem;
  }
}

/* =========================================================
   RESPONSIVE: DESKTOP (min-width: 980px)
   ========================================================= */

@media (min-width: 980px) {
  .desktop-nav {
    display: flex;
  }

  .menu-toggle {
    display: none;
  }

  .mobile-menu {
    display: none !important;
  }

  .mobile-sticky {
    display: none;
  }
}
/* =========================================================
   COMING SOON
   /coming-soon.php (body.coming-soon-page): logo-only header (top-left), a centered
   full-viewport hero with the shared rotating image and Ink overlay
   (--hero-ink-overlay), and a one-line footer. The hero fills the
   viewport less the footer, so both are visible without scrolling.
   Kept after the responsive blocks so these rules win over the shared
   hero breakpoints.
   ========================================================= */

.coming-soon-page {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
}

.coming-soon-page main {
  display: flex;
  flex: 1 0 auto;
  flex-direction: column;
}

.hero.hero--coming-soon {
  flex: 1 0 auto;
  min-height: 0;
  align-items: stretch;
}

.hero--coming-soon .hero-inner {
  min-height: 0;
  align-items: center;
  justify-items: center;
  padding: 6.4rem 0 4rem;
  text-align: center;
  color: var(--porcelain);
}

.hero--coming-soon .hero-copy {
  max-width: 760px;
  padding: 0;
}

.hero--coming-soon h1 {
  max-width: 20ch;
  margin: 0 auto;
}

.hero--coming-soon .hero-copy p {
  max-width: 54ch;
  margin-left: auto;
  margin-right: auto;
  color: var(--porcelain);
}

.hero--coming-soon .hero-actions {
  justify-content: center;
}

/* With the lead box beside it, the message sits left of the box (desktop)
   or above it (phone), left-aligned like the other heroes. */
.hero--coming-soon .hero-grid {
  width: 100%;
  align-items: center;
  text-align: left;
}

.hero--coming-soon .hero-grid .hero-copy h1,
.hero--coming-soon .hero-grid .hero-copy p {
  margin-left: 0;
}

.hero--coming-soon .hero-grid .hero-actions {
  justify-content: flex-start;
}

.footer-grid--single {
  grid-template-columns: 1fr;
  gap: 0.6rem;
}

.footer-grid--single .footer-copyright {
  justify-self: center;
  text-align: center;
}

/* Coming-soon footer: Privacy Policy and Terms of Use links. */
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 1.6rem;
}

.footer-legal a {
  color: var(--text-light);
  text-decoration: underline;
  text-underline-offset: 0.35em;
}

.footer-legal a:hover,
.footer-legal a:focus-visible {
  color: var(--mist);
}

@media (max-width: 767px) {
  .hero--coming-soon .hero-inner {
    padding: 5.9rem 0 3rem;
  }

  .hero--coming-soon h1 {
    max-width: 100%;
  }

  .hero--coming-soon .hero-copy p {
    max-width: 100%;
  }
}

@media (max-width: 479px) {
  .hero--coming-soon h1 {
    max-width: 11ch;
  }

  .hero--coming-soon .hero-copy p {
    max-width: 30ch;
  }
}
