/* ==========================================================================
   Voltaic — Portrait professionnel
   Single stylesheet, mobile-first (360px up), no framework, no build step.

   Direction: flat brand blue and near-black, the photographs do the work.
   No gradients, glass, glows or soft shadows; 4px corners; left-aligned type.

   State hooks set by JS:
     html.js                       JS is running (enables the .reveal start state)
     .reveal.is-revealed           scroll reveal done
     .booking-frame.is-loading     Acuity iframe swapping studio
     .studio-card[aria-current]    chosen studio
     body.nav-open                 mobile menu open
     dialog.lightbox               gallery lightbox
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --blue: #0C71C3;        /* white text on it: 5.1:1 */
  --blue-dark: #0A5EA6;
  --accent: #2EA3F2;
  --ink: #0A0A0A;
  --ink-2: #3D4A57;       /* secondary text on white: 9:1, on --mist: 8.4:1 */
  --on-ink-2: #B9C3CD;    /* secondary text on ink: 11:1 */
  --white: #FFFFFF;
  --mist: #F1F5F9;
  --rule: #D3DCE5;
  --field: #66788A;       /* input border: 4.6:1 on white */

  --font-head: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Open Sans", "Segoe UI", system-ui, -apple-system, sans-serif;

  --max: 75rem;
  --gutter: clamp(1rem, 0.5rem + 2.5vw, 2rem);
  --section-y: clamp(4rem, 2.5rem + 6vw, 7rem);
  --header-h: 4rem;
  --radius: 4px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- 2. Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3 {
  font-family: var(--font-head);
  line-height: 1.15;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

img,
svg,
iframe {
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: var(--blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--blue-dark);
}

[hidden] {
  display: none !important;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.container {
  width: min(100% - var(--gutter) * 2, var(--max));
  margin-inline: auto;
}

/* ---------- 3. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.65rem 1.25rem;
  border: 0;
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}

/* Primary sits on blue (hero): white block, ink label. */
.btn--primary {
  background: var(--white);
  color: var(--ink);
}

.btn--primary:hover {
  background: var(--ink);
  color: var(--white);
}

.btn--lg {
  min-height: 3.25rem;
  padding: 0.85rem 1.75rem;
  font-size: 1.0625rem;
}

/* ---------- 4. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ink);
  color: var(--white);
}

.site-header__inner {
  width: min(100% - var(--gutter) * 2, var(--max));
  min-height: var(--header-h);
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 0.75rem;
}

.site-header__logo {
  order: 0;
  margin-right: auto;
  display: inline-flex;
  padding-block: 0.5rem;
}

.site-header__logo img {
  display: block;
  width: auto;
  height: 1.6rem;
}

.site-header__cta {
  order: 1;
  min-height: 2.5rem;
  padding: 0.5rem 1rem;
  background: var(--blue);
  color: var(--white);
  font-size: 0.875rem;
}

.site-header__cta:hover {
  background: var(--white);
  color: var(--ink);
}

.nav-toggle {
  display: none;
  order: 2;
}

.site-nav {
  order: 3;
  flex-basis: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}

.site-nav__list {
  display: flex;
  gap: 1.5rem;
  margin: 0;
  /* Inline padding keeps the focus ring inside the scroll box. */
  padding: 0.3rem 0.35rem 0.75rem;
  list-style: none;
  white-space: nowrap;
}

.site-nav a {
  display: inline-block;
  padding-block: 0.25rem;
  color: var(--white);
  font-family: var(--font-head);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  text-underline-offset: 0.4em;
}

.site-nav a:hover {
  color: var(--white);
  text-decoration: underline;
}

/* With JS: menu button + dropdown panel on small screens. */
html.js .nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  height: 2.5rem;
  padding: 0 0.9rem;
  border: 1px solid rgb(255 255 255 / 0.4);
  border-radius: var(--radius);
  background: transparent;
  color: var(--white);
  font-family: var(--font-head);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
}

html.js .nav-toggle:hover {
  border-color: var(--white);
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 16px;
  height: 2px;
  background: currentColor;
  transition: transform 0.25s var(--ease), background-color 0.2s var(--ease);
}

.nav-toggle__bars {
  position: relative;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle__bars::before {
  top: -5px;
}

.nav-toggle__bars::after {
  top: 5px;
}

body.nav-open .nav-toggle__bars {
  background: transparent;
}

body.nav-open .nav-toggle__bars::before {
  transform: translateY(5px) rotate(45deg);
}

body.nav-open .nav-toggle__bars::after {
  transform: translateY(-5px) rotate(-45deg);
}

html.js .site-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  padding: 0 var(--gutter) 1rem;
  background: var(--ink);
  border-top: 1px solid rgb(255 255 255 / 0.12);
}

html.js body.nav-open .site-nav {
  display: block;
}

html.js .site-nav__list {
  flex-direction: column;
  gap: 0;
  padding: 0;
}

html.js .site-nav__list a {
  display: block;
  padding: 0.85rem 0;
  font-size: 1.0625rem;
  border-bottom: 1px solid rgb(255 255 255 / 0.12);
}

/* Without JS, small screens get the links as a compact second row. */
@media (max-width: 959px) {
  html:not(.js) .site-header__inner {
    padding-top: 0.6rem;
  }

  html:not(.js) .site-nav__list {
    gap: 1.25rem;
  }

  html:not(.js) .site-nav a {
    font-size: 0.875rem;
  }
}

@media (max-width: 419px) {
  html.js .nav-toggle {
    width: 2.5rem;
    padding: 0;
  }

  .nav-toggle__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

@media (min-width: 960px) {
  :root {
    --header-h: 4.5rem;
  }

  .site-header__inner {
    flex-wrap: nowrap;
    column-gap: 2.5rem;
  }

  .site-header__logo {
    margin-right: 0;
  }

  .site-header__logo img {
    height: 1.9rem;
  }

  html.js .nav-toggle {
    display: none;
  }

  .site-nav,
  html.js .site-nav {
    order: 1;
    display: block;
    position: static;
    flex-basis: auto;
    margin-left: auto;
    padding: 0;
    overflow: visible;
    background: none;
    border: 0;
  }

  .site-nav__list,
  html.js .site-nav__list {
    flex-direction: row;
    gap: 2rem;
    padding: 0;
  }

  html.js .site-nav__list a {
    display: inline-block;
    padding: 0.25rem 0;
    font-size: 0.9375rem;
    border: 0;
  }

  .site-header__cta {
    order: 2;
    min-height: 2.75rem;
    padding: 0.6rem 1.25rem;
    font-size: 0.9375rem;
  }
}

/* ---------- 5. Hero ----------
   Flat blue text panel; the portrait runs to the right edge of the window. */
.hero {
  background: var(--blue);
  color: var(--white);
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: min(100% - var(--gutter) * 2, var(--max));
  margin-inline: auto;
  padding-block: clamp(3rem, 2rem + 5vw, 5rem);
}

.hero__title {
  margin: 0;
  font-size: clamp(2.75rem, 1.4rem + 5.5vw, 5.25rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.035em;
}

.hero__subtitle {
  max-width: 34ch;
  margin: 1.25rem 0 0;
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.3125rem);
  line-height: 1.5;
}

/* Stacked on phones; one line with rule separators once there is room. */
.hero__facts {
  display: grid;
  gap: 0.3rem;
  margin: 2rem 0 2.25rem;
  padding: 0;
  list-style: none;
  font-family: var(--font-head);
  font-size: 0.9375rem;
  font-weight: 500;
}

@media (min-width: 1100px) {
  .hero__facts {
    display: flex;
    gap: 0;
  }

  .hero__facts li {
    padding-inline: 1rem;
    border-left: 1px solid rgb(255 255 255 / 0.55);
  }

  .hero__facts li:first-child {
    padding-left: 0;
    border-left: 0;
  }
}

/* Promo ribbon: a plain white label above the title. */
#promo-ribbon {
  order: -1;
}

#promo-ribbon:not(:empty) {
  margin-bottom: 1.5rem;
}

.promo-ribbon__text {
  display: inline-block;
  padding: 0.45rem 0.8rem;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-head);
  font-size: 0.875rem;
  font-weight: 600;
  animation: fade-in 0.4s var(--ease);
}

.hero__media {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--blue-dark);
}

.hero__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

@media (min-width: 900px) {
  /* Grid lines line the text up with the header's container while the
     photo bleeds to the window edge. */
  .hero__inner {
    display: grid;
    grid-template-columns:
      minmax(var(--gutter), 1fr)
      minmax(0, calc(var(--max) * 0.55))
      minmax(0, calc(var(--max) * 0.45))
      minmax(var(--gutter), 1fr);
    min-height: min(calc(100svh - var(--header-h)), 48rem);
  }

  /* The title now only has about half the window. */
  .hero__title {
    font-size: clamp(3rem, 0.5rem + 4.6vw, 5.25rem);
  }

  .hero__content {
    grid-column: 2;
    align-self: center;
    width: auto;
    margin: 0;
    padding-right: 3rem;
  }

  .hero__media {
    grid-column: 3 / 5;
    aspect-ratio: auto;
  }
}

/* ---------- 6. Sections ---------- */
.section {
  padding-block: var(--section-y);
}

.section--tint {
  background: var(--mist);
}

.section__title {
  max-width: 22ch;
  margin: 0 0 clamp(2rem, 1rem + 3vw, 3.5rem);
  font-size: clamp(1.875rem, 1.2rem + 2.6vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.025em;
}

/* Experience: four steps under a rule, big plain numerals. */
.steps {
  display: grid;
  gap: 2.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  padding-top: 1.25rem;
  border-top: 2px solid var(--ink);
}

.step__number {
  display: block;
  margin-bottom: 1.5rem;
  color: var(--blue);
  font-family: var(--font-head);
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 1;
}

.step__title {
  margin: 0 0 0.5rem;
  font-size: 1.1875rem;
  font-weight: 600;
}

.step__text {
  margin: 0;
  color: var(--ink-2);
  font-size: 0.96875rem;
}

@media (min-width: 640px) {
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3rem 2rem;
  }
}

@media (min-width: 1100px) {
  .steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Included: heading beside a ruled list. */
.included__list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid var(--rule);
}

.included__list li {
  padding-block: 1.1rem;
  border-top: 1px solid var(--rule);
  font-family: var(--font-head);
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  font-weight: 500;
}

@media (min-width: 900px) {
  .included__inner {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 3rem;
    align-items: start;
  }

  .included .section__title {
    margin-bottom: 0;
  }
}

/* Gallery: tight grid, square corners. */
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 6px;
}

.gallery-item {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--mist);
}

.gallery-item img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transition: transform 0.6s var(--ease);
}

.gallery-item:hover img {
  transform: scale(1.025);
}

/* The two landscape shots take a full row on phones. */
.gallery-item:nth-child(1),
.gallery-item:nth-child(3) {
  grid-column: span 2;
  aspect-ratio: 3 / 2;
}

@media (min-width: 768px) {
  .gallery__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  /* Landscapes span two columns, zig-zagging, and take the row's height. */
  .gallery-item:nth-child(1),
  .gallery-item:nth-child(3) {
    aspect-ratio: auto;
  }

  .gallery-item:nth-child(3) {
    grid-column: 2 / span 2;
  }
}

/* ---------- 7. Booking ---------- */
#booking-dynamic {
  position: relative;
  display: grid;
  gap: 1.25rem;
}

/* Pricing */
.pricing-card {
  padding: 1.75rem 1.5rem;
  border-top: 3px solid var(--ink);
  background: var(--white);
}

.pricing-card__promo {
  margin: 0 0 0.25rem;
  color: var(--blue);
  font-family: var(--font-head);
  font-size: 0.9375rem;
}

.pricing-card__description {
  margin: 0 0 0.5rem;
  color: var(--ink-2);
}

.pricing-card__fee {
  margin: 0 0 1.75rem;
  font-family: var(--font-head);
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  font-weight: 600;
  line-height: 1.3;
}

.pricing-card__title {
  margin: 0 0 0.25rem;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
}

.pricing-card__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.pricing-card__list li {
  padding-block: 0.6rem;
  border-bottom: 1px solid var(--rule);
  color: var(--ink-2);
}

.pricing-card__list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

/* One-slot note */
.booking-note {
  margin: 0;
  font-weight: 600;
}

/* Promo code form */
.promo-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.5rem;
  align-items: center;
}

.promo-form label {
  grid-column: 1 / -1;
  font-family: var(--font-head);
  font-size: 0.9375rem;
  font-weight: 600;
}

.promo-form input[type="text"] {
  width: 100%;
  min-height: 2.75rem;
  padding: 0 0.85rem;
  border: 1px solid var(--field);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  font: inherit;
}

.promo-form button {
  min-height: 2.75rem;
  padding: 0 1.25rem;
  border: 0;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-head);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
}

.promo-form button:hover {
  background: var(--blue);
}

.promo-remove {
  grid-column: 1 / -1;
  justify-self: start;
  font-size: 0.9375rem;
}

.promo-message {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
}

/* Empty live region: kept in the accessibility tree, takes no space. */
.promo-message:empty {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

/* Studio cards */
.studio-cards {
  display: grid;
  gap: 0.75rem;
}

.studio-card {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1.35rem 1.5rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.studio-card:hover {
  border-color: var(--blue);
  color: var(--ink);
}

.studio-card__name {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 600;
}

.studio-card__address {
  color: var(--ink-2);
  font-size: 0.9375rem;
}

.studio-card__note {
  color: var(--blue);
  font-size: 0.875rem;
  font-weight: 600;
}

.studio-card__cta {
  position: relative;
  align-self: flex-start;
  margin-top: auto;
  padding-top: 0.9rem;
  color: var(--blue);
  font-family: var(--font-head);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.3em;
}

/* Chosen studio: solid blue card, CTA reads "Studio sélectionné". */
.studio-card[aria-current="true"] {
  border-color: var(--blue);
  background: var(--blue);
}

.studio-card[aria-current="true"],
.studio-card[aria-current="true"] .studio-card__address,
.studio-card[aria-current="true"] .studio-card__note {
  color: var(--white);
}

.studio-card[aria-current="true"] .studio-card__cta {
  visibility: hidden;
}

.studio-card[aria-current="true"] .studio-card__cta::after {
  content: "Studio sélectionné";
  position: absolute;
  top: 0.9rem;
  left: 0;
  visibility: visible;
  color: var(--white);
  white-space: nowrap;
  text-decoration: none;
}

@media (min-width: 640px) {
  .studio-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Acuity frame: height comes from Acuity's embed.js. */
.booking-frame {
  position: relative;
  overflow: hidden;
  min-height: 16rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--white);
}

.booking-frame iframe {
  display: block;
  width: 100%;
  border: 0;
  transition: opacity 0.4s var(--ease);
}

.booking-frame__placeholder,
.booking-frame__unavailable {
  display: grid;
  place-items: center;
  min-height: 16rem;
  margin: 0;
  padding: 3rem 1.5rem;
  color: var(--ink-2);
  font-family: var(--font-head);
  font-size: 1.0625rem;
  font-weight: 500;
  text-align: center;
}

.booking-frame__unavailable {
  color: var(--ink);
}

.booking-frame.is-loading iframe {
  opacity: 0.2;
}

.booking-frame.is-loading::after {
  content: "";
  position: absolute;
  top: 6rem;
  left: 50%;
  width: 2.5rem;
  height: 2.5rem;
  margin-left: -1.25rem;
  border: 3px solid var(--rule);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@media (min-width: 900px) {
  #booking-dynamic {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
      "pricing promo"
      "pricing note"
      "cards   cards"
      "frame   frame";
    grid-template-rows: auto 1fr auto auto;
    align-items: start;
    column-gap: 3rem;
    row-gap: 1.5rem;
  }

  .pricing-card {
    grid-area: pricing;
    padding: 2rem;
  }

  .promo-form {
    grid-area: promo;
    align-self: start;
    padding-top: 1.75rem;
  }

  .booking-note {
    grid-area: note;
  }

  .pricing-card {
    align-self: stretch;
  }

  .studio-cards {
    grid-area: cards;
    margin-top: 1.5rem;
  }

  .booking-frame {
    grid-area: frame;
  }
}

/* ---------- 8. Studios ---------- */
.studios__grid {
  display: grid;
  gap: 3rem;
}

.studio__name {
  margin: 0 0 0.25rem;
  font-size: 1.375rem;
  font-weight: 600;
}

.studio__address {
  margin-bottom: 1.25rem;
  color: var(--ink-2);
  font-style: normal;
}

.studio__map {
  display: block;
  width: 100%;
  height: clamp(16rem, 12rem + 12vw, 22rem);
  border: 0;
  background: var(--mist);
}

@media (min-width: 768px) {
  .studios__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
  }
}

/* ---------- 9. Contact band ---------- */
.contact-band {
  padding-block: clamp(3rem, 2rem + 4vw, 5rem);
  background: var(--blue);
  color: var(--white);
}

.contact-band__inner {
  display: grid;
  gap: 1.25rem;
}

.contact-band__title {
  margin: 0;
  font-size: clamp(2rem, 1.2rem + 3vw, 3.25rem);
  font-weight: 600;
  letter-spacing: -0.025em;
}

.contact-band__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  margin: 0;
}

.contact-band__link {
  color: var(--white);
  font-family: var(--font-head);
  font-size: clamp(1.125rem, 1rem + 0.6vw, 1.375rem);
  font-weight: 500;
  text-underline-offset: 0.25em;
}

.contact-band__link:hover {
  color: var(--white);
  text-decoration-thickness: 2px;
}

@media (min-width: 900px) {
  .contact-band__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }
}

/* ---------- 10. Footer ---------- */
.site-footer {
  padding-block: 4rem 2rem;
  background: var(--ink);
  color: var(--on-ink-2);
  font-size: 0.9375rem;
}

.site-footer__inner {
  display: grid;
  gap: 2.5rem;
}

.site-footer__title {
  margin: 0 0 1rem;
  color: var(--white);
  font-size: 0.9375rem;
  font-weight: 600;
}

.site-footer__list {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer a {
  color: var(--white);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--white);
  text-decoration: underline;
}

.site-footer strong {
  color: var(--white);
  font-weight: 600;
}

.site-footer__legal {
  width: min(100% - var(--gutter) * 2, var(--max));
  margin: 3rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgb(255 255 255 / 0.15);
  font-size: 0.875rem;
}

@media (min-width: 768px) {
  .site-footer__inner {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ---------- 11. Lightbox (dialog built by ui.js) ---------- */
.lightbox {
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--white);
  overflow: hidden;
}

.lightbox[open] {
  display: grid;
  place-items: center;
  animation: fade-in 0.2s var(--ease);
}

.lightbox::backdrop {
  background: rgb(10 10 10 / 0.94);
}

.lightbox__figure {
  display: grid;
  justify-items: center;
  gap: 0.85rem;
  margin: 0;
  padding: 4.5rem 1rem 1.5rem;
}

.lightbox__img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(92vw, 1600px);
  max-height: calc(100dvh - 9rem);
}

.lightbox__caption {
  max-width: 60ch;
  color: var(--on-ink-2);
  font-size: 0.9375rem;
  text-align: center;
}

.lightbox button {
  position: fixed;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: 1px solid rgb(255 255 255 / 0.35);
  border-radius: var(--radius);
  background: rgb(10 10 10 / 0.6);
  color: var(--white);
  font-family: var(--font-head);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox button:hover {
  background: var(--blue);
  border-color: var(--blue);
}

.lightbox__close {
  top: 1rem;
  right: 1rem;
}

.lightbox__prev,
.lightbox__next {
  top: 50%;
  margin-top: -1.5rem;
}

.lightbox__prev {
  left: 0.75rem;
}

.lightbox__next {
  right: 0.75rem;
}

@media (max-width: 639px) {
  .lightbox__prev,
  .lightbox__next {
    top: auto;
    bottom: 1rem;
    margin-top: 0;
  }

  .lightbox__prev {
    left: calc(50% - 3.5rem);
  }

  .lightbox__next {
    right: calc(50% - 3.5rem);
  }
}

/* ---------- 12. Scroll reveal (JS only) ---------- */
html.js .reveal {
  opacity: 0;
  translate: 0 14px;
  transition: opacity 0.6s var(--ease), translate 0.6s var(--ease);
}

html.js .reveal.is-revealed {
  opacity: 1;
  translate: none;
}

/* ---------- 13. Keyframes ---------- */
@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---------- 14. Focus ----------
   Accent ring with an ink halo; white ring on the blue panels, where the
   accent would be too close to the background. */
:focus:not(:focus-visible) {
  outline: none;
}

:is(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--focus, var(--accent));
  outline-offset: 2px;
  box-shadow: 0 0 0 2px var(--ink);
}

.hero,
.contact-band,
.studio-card[aria-current="true"] {
  --focus: var(--white);
}

/* ---------- 15. Reduced motion: nothing moves ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  html.js .reveal {
    opacity: 1;
    translate: none;
  }
}
