/*
 * Raphael Group Limited — design system (plain CSS).
 * "Premium Industrial-Humanist": editorial layout, strategic green,
 * grain-gold accents, generous whitespace.
 * Colours live in custom properties only — never hardcode them in markup.
 */

:root {
  --radius: 0.5rem;

  --background: oklch(0.984 0.002 145.6);
  --foreground: oklch(0.235 0.009 137.8);
  --card: oklch(1 0 0);

  --primary: oklch(0.468 0.145 145.6);
  --primary-foreground: oklch(1 0 0);
  --primary-bright: oklch(0.645 0.198 145.7);
  --primary-deep: oklch(0.286 0.088 145.7);

  --secondary: oklch(0.963 0.02 131.5);
  --muted: oklch(0.963 0.02 131.5);
  --muted-foreground: oklch(0.493 0.02 137.1);

  --gold: oklch(0.728 0.138 89.7);
  --charcoal: oklch(0.235 0.009 137.8);
  --charcoal-foreground: oklch(0.981 0.02 131.4);

  --destructive: oklch(0.506 0.193 27.7);
  --border: oklch(0.912 0.019 133.1);

  --shadow-card: 0 1px 2px oklch(0.235 0.009 137.8 / 6%);
  --shadow-lifted: 0 18px 40px -24px oklch(0.235 0.009 137.8 / 30%);

  --font-display: "Montserrat", ui-sans-serif, system-ui, sans-serif;
  --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin: 0;
}

p {
  margin: 0;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--primary-bright);
  outline-offset: 2px;
}

::selection {
  background: var(--primary-bright);
  color: var(--primary-foreground);
}

/* ------------------------------------------------------------- primitives */
.container {
  width: 100%;
  max-width: 80rem;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

@media (min-width: 768px) {
  .container {
    padding-inline: 2.5rem;
  }
}

@media (min-width: 1280px) {
  .container {
    padding-inline: 3rem;
  }
}

.section {
  padding-block: 4rem;
}

@media (min-width: 768px) {
  .section {
    padding-block: 5.5rem;
  }
}

@media (min-width: 1024px) {
  .section {
    padding-block: 7rem;
  }
}

.section--tight {
  padding-block: 3rem;
}

.section--muted {
  background: var(--secondary);
}

.section--dark {
  background: var(--primary-deep);
  color: var(--charcoal-foreground);
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.display-1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.25rem, 5.5vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.display-2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 3.6vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.display-3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.375rem, 2.2vw, 1.75rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.lead {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--muted-foreground);
}

@media (min-width: 768px) {
  .lead {
    font-size: 1.125rem;
  }
}

.hairline {
  height: 1px;
  width: 3rem;
  background: var(--gold);
  border: 0;
  margin: 0;
}

.muted {
  color: var(--muted-foreground);
}

.text-gold {
  color: var(--gold);
}

.text-primary {
  color: var(--primary);
}

.center {
  text-align: center;
}

.stack > * + * {
  margin-top: 1rem;
}

.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: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--primary);
  color: var(--primary-foreground);
  border-radius: var(--radius);
  transition: top 0.2s;
}

.skip-link:focus {
  top: 1rem;
}

/* ------------------------------------------------------------------ grid */
.grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.home-products .card__body {
  padding: 1rem;
}

.home-products .card__body p {
  font-size: 0.875rem;
}

@media (min-width: 640px) {
  .grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .home-products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .grid--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .leadership-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1rem;
  }
}

.business-grid {
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(0.35rem, 1.5vw, 1.25rem);
}

@media (min-width: 640px) {
  .business-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .business-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.business-grid .card {
  min-width: 0;
}

.business-grid .card__media {
  flex: none;
  aspect-ratio: 1;
}

.business-grid .card__body {
  gap: 0.5rem;
  padding: clamp(0.5rem, 1.5vw, 0.8rem);
}

.business-grid .card__body .display-3 {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
}

.business-grid .card__body p {
  font-size: 0.8125rem;
  line-height: 1.45;
}

.business-grid .card__body .btn {
  align-self: flex-start;
  margin-top: auto;
}

.split {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4rem;
  }
  .split--reverse > :first-child {
    order: 2;
  }
}

/* --------------------------------------------------------------- buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--primary);
  color: var(--primary-foreground);
}

.btn--primary:hover {
  background: var(--primary-deep);
}

.btn--gold {
  background: var(--gold);
  color: var(--charcoal);
}

.btn--outline {
  border-color: var(--border);
  background: transparent;
  color: var(--foreground);
}

.btn--outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn--inverse {
  border-color: oklch(1 0 0 / 35%);
  background: transparent;
  color: var(--charcoal-foreground);
}

.btn--inverse:hover {
  background: oklch(1 0 0 / 12%);
}

.btn--block {
  width: 100%;
}

@media (min-width: 640px) {
  .btn--block {
    width: auto;
  }
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--primary);
  text-decoration: none;
}

.link-arrow:hover {
  text-decoration: underline;
}

/* ---------------------------------------------------------------- header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: oklch(1 0 0 / 92%);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.5rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.logo__mark {
  display: block;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius);
  object-fit: contain;
}

.logo__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.1;
}

.logo__sub {
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.logo--inverse .logo__sub {
  color: oklch(1 0 0 / 70%);
}

.nav {
  display: none;
  align-items: center;
  gap: 1.75rem;
}

@media (min-width: 1024px) {
  .nav {
    display: flex;
    gap: 1rem;
  }
}

.nav a {
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--foreground);
  padding-block: 0.5rem;
  border-bottom: 2px solid transparent;
}

.nav a:hover {
  color: var(--primary);
}

.nav a[aria-current="page"] {
  color: var(--primary);
  border-bottom-color: var(--gold);
}

@media (min-width: 1024px) and (max-width: 1199px) {
  .header-inner {
    gap: 0.5rem;
  }
  .nav {
    gap: 0.6rem;
  }
  .nav a {
    font-size: 0.8125rem;
  }
  .header-actions {
    gap: 0.4rem;
  }
  .header-actions .btn {
    padding-inline: 0.75rem;
    font-size: 0.8125rem;
  }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-actions .btn {
  display: none;
}

@media (min-width: 1024px) {
  .header-actions .btn {
    display: inline-flex;
  }
}

.lang-switch {
  display: inline-flex;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 999px;
}

.lang-switch a {
  min-height: 2.25rem;
  display: inline-flex;
  align-items: center;
  padding: 0 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted-foreground);
}

.lang-switch a[aria-current="true"] {
  background: var(--primary);
  color: var(--primary-foreground);
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: transparent;
  cursor: pointer;
}

@media (min-width: 1024px) {
  .menu-toggle {
    display: none;
  }
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  width: 1.1rem;
  height: 2px;
  background: var(--foreground);
  content: "";
  position: relative;
}

.menu-toggle span::before {
  position: absolute;
  top: -6px;
}

.menu-toggle span::after {
  position: absolute;
  top: 6px;
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--border);
  background: var(--card);
  padding-block: 1rem;
}

.mobile-nav.is-open {
  display: block;
}

@media (min-width: 1024px) {
  .mobile-nav.is-open {
    display: none;
  }
}

.mobile-nav a {
  display: block;
  padding: 0.75rem 0;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--border);
}

.mobile-nav a:last-child {
  border-bottom: 0;
}

/* ------------------------------------------------------------------ hero */
.hero {
  position: relative;
  background: var(--primary-deep);
  color: var(--charcoal-foreground);
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
}

.hero__media--slideshow .hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.hero__media--slideshow .hero__slide.is-active {
  opacity: 0.4;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    oklch(0.286 0.088 145.7 / 92%) 0%,
    oklch(0.286 0.088 145.7 / 72%) 55%,
    oklch(0.286 0.088 145.7 / 45%) 100%
  );
}

.hero__inner {
  position: relative;
  padding-block: 5rem;
  max-width: 46rem;
}

@media (min-width: 768px) {
  .hero__inner {
    padding-block: 7.5rem;
  }
}

.hero--home .hero__inner {
  max-width: 52rem;
}

.hero .eyebrow {
  color: var(--gold);
}

.hero .lead {
  color: oklch(1 0 0 / 78%);
}

/* --------------------------------------------------------- partner marquee */
.partners-section {
  overflow: hidden;
}

.partner-marquee {
  overflow: hidden;
  margin-top: 2rem;
  padding-block: 0.75rem;
}

.partner-track {
  display: flex;
  width: max-content;
  align-items: center;
  animation: partner-marquee 36s linear infinite;
}

.partner-item {
  display: grid;
  width: clamp(9rem, 19vw, 15rem);
  height: 6rem;
  place-items: center;
  padding-inline: 1.5rem;
}

.partner-item img {
  max-width: 100%;
  max-height: 4.5rem;
  width: auto;
  height: auto;
  object-fit: contain;
}

.partner-marquee:hover .partner-track,
.partner-marquee:focus-within .partner-track {
  animation-play-state: paused;
}

@keyframes partner-marquee {
  from {
    transform: translateX(-50%);
  }
  to {
    transform: translateX(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .partner-track {
    animation: none;
  }
}

/* ----------------------------------------------------------------- cards */
.card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.25s, transform 0.25s;
}

.card:hover {
  box-shadow: var(--shadow-lifted);
  transform: translateY(-3px);
}

.card__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--muted);
}

.leadership-grid .card__media {
  aspect-ratio: 3 / 4;
}

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card__media img.product-image-contain {
  object-fit: contain;
  background: #fff;
}

.card__body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}

.card__body p {
  color: var(--muted-foreground);
  font-size: 0.9375rem;
}

.market-card-link {
  display: flex;
  flex: 1;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
}

.market-card-link .card__body > span:not(.tag):not(.btn) {
  color: var(--muted-foreground);
  font-size: 0.9375rem;
}

.market-card-link .card__body > .display-3 {
  color: var(--foreground);
}

.market-card-link .btn {
  align-self: flex-start;
  margin-top: auto;
}

.market-directory {
  scroll-margin-top: 6rem;
  margin-top: 3rem;
  border-top: 1px solid var(--border);
  padding-top: 2rem;
}

.market-directory-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.market-regions-nav {
  margin-block: 1.5rem;
}

.market-regions-nav a[aria-current="true"] {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--primary-foreground);
}

.market-region-list {
  display: grid;
  gap: 1.25rem;
}

.market-region {
  scroll-margin-top: 6rem;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  background: var(--card);
  padding: clamp(1rem, 3vw, 1.5rem);
}

.market-region > .muted,
.branch-card > p,
.branch-card > a,
.branch-card > .copy-phone,
.branch-card > .copy-status {
  margin-top: 0.5rem;
}

.copy-phone {
  display: block;
  padding: 0;
  border: 0;
  background: none;
  color: var(--primary);
  font: inherit;
  text-align: left;
  text-decoration: underline;
  cursor: pointer;
}

.copy-status {
  display: block;
  min-height: 1.5em;
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.branch-grid {
  margin-top: 1rem;
}

.branch-empty {
  margin-top: 1rem;
  color: var(--muted-foreground);
}

.card--plain {
  padding: 1.75rem;
}

.card--plain:hover {
  transform: none;
  box-shadow: var(--shadow-card);
}

.tag {
  align-self: flex-start;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--secondary);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
}

/* --------------------------------------------------------------- filters */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filters a {
  padding: 0.45rem 1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
}

.filters a[aria-current="true"] {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--primary-foreground);
}

/* ----------------------------------------------------------------- steps */
.steps {
  display: grid;
  gap: 1.5rem;
  counter-reset: step;
}

@media (min-width: 768px) {
  .steps {
    grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  }
}

.step {
  border-top: 2px solid var(--gold);
  padding-top: 1rem;
}

.step__num {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--gold);
}

.step h3 {
  font-size: 1.0625rem;
  margin-top: 0.35rem;
}

.step p {
  margin-top: 0.5rem;
  font-size: 0.9375rem;
  color: var(--muted-foreground);
}

.section--dark .step p,
.section--dark .lead {
  color: oklch(1 0 0 / 78%);
}

/* ------------------------------------------------------------------ spec */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 0.9375rem;
}

.spec-table th,
.spec-table td {
  text-align: left;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.spec-table th {
  font-weight: 600;
  width: 45%;
}

.spec-table td {
  color: var(--muted-foreground);
  overflow-wrap: anywhere;
}

/* ------------------------------------------------------------------ form */
.form-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .field--full {
    grid-column: 1 / -1;
  }
}

.field label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.field .req {
  color: var(--destructive);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 0.9375rem;
  color: var(--foreground);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.6rem 0.75rem;
  min-height: 2.75rem;
}

.field textarea {
  min-height: 8rem;
  resize: vertical;
}

.field .hint {
  margin-top: 0.4rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.alert {
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  font-size: 0.9375rem;
  margin-bottom: 1.25rem;
}

.alert--error {
  background: oklch(0.506 0.193 27.7 / 10%);
  color: var(--destructive);
}

.alert--success {
  background: var(--secondary);
  color: var(--primary);
}

.alert ul {
  margin: 0.5rem 0 0;
  padding-left: 1.1rem;
}

.success-panel {
  border: 1px solid oklch(0.468 0.145 145.6 / 25%);
  background: var(--secondary);
  border-radius: calc(var(--radius) + 4px);
  padding: 2rem;
  text-align: center;
}

/* ---------------------------------------------------------------- footer */
.site-footer {
  background: var(--charcoal);
  color: var(--charcoal-foreground);
  padding-block: 3.5rem 2rem;
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.4fr repeat(3, 1fr);
  }
}

.footer-grid h3 {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
  font-size: 0.9375rem;
}

.footer-grid a {
  text-decoration: none;
  color: oklch(1 0 0 / 78%);
}

.footer-grid a:hover {
  color: var(--charcoal-foreground);
}

.footer-note {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid oklch(1 0 0 / 15%);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: oklch(1 0 0 / 65%);
}

.footer-note a {
  color: inherit;
}

/* ------------------------------------------------------------ breadcrumb */
.breadcrumb {
  font-size: 0.8125rem;
  color: var(--muted-foreground);
  padding-top: 1.5rem;
}

.breadcrumb a {
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--primary);
}

/* ---------------------------------------------------------------- gallery */
.gallery-filters {
  margin-block: 1.5rem;
}

.gallery-filters .btn {
  min-height: 2.75rem;
}

.gallery-filters .btn[aria-pressed="true"] {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--primary-foreground);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.35rem, 1.5vw, 1.25rem);
}

.gallery-more {
  margin-top: 1.5rem;
}

.gallery-more[hidden] {
  display: none;
}

.gallery-card {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  background: var(--card);
  box-shadow: var(--shadow-card);
}

.gallery-image-button {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  padding: 0;
  border: 0;
  background: var(--muted);
  cursor: zoom-in;
}

.gallery-image-button img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-card figcaption {
  padding: clamp(0.35rem, 1.5vw, 0.8rem);
  font-weight: 600;
}

.gallery-lightbox {
  width: min(94vw, 70rem);
  max-width: 70rem;
  max-height: 92vh;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  background: var(--background);
  color: var(--foreground);
}

.gallery-lightbox::backdrop {
  background: oklch(0.1 0.01 145 / 82%);
}

.gallery-lightbox > img {
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
}

.lightbox-toolbar,
.lightbox-navigation {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  padding-block: 0.5rem;
}

.gallery-lightbox > p {
  padding-block: 0.5rem;
  font-weight: 600;
}

/* --------------------------------------------------------- loading intro */
.site-intro {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  background: var(--background);
  opacity: 1;
  transition: opacity 0.3s ease;
}

.site-intro[hidden] {
  display: none;
}

.site-intro.is-leaving {
  opacity: 0;
  pointer-events: none;
}

.site-intro img {
  width: clamp(7rem, 22vw, 12rem);
  height: auto;
  animation: intro-float 1.2s ease-in-out infinite alternate;
}

@keyframes intro-float {
  to {
    transform: translateY(-0.5rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-intro,
  .site-intro img {
    animation: none;
    transition: none;
  }
}

/* --------------------------------------------------------------- reveal */
.reveal {
  opacity: 0;
  transform: translateY(12px);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
