:root {
  --bg-stone: #cfcec9;
  --bg-stone-light: #dad9d4;
  --bg-stone-dark: #c2c1bc;
  --brand: #661f27;
  --brand-dark: #4c151b;
  --brand-soft: rgba(102, 31, 39, 0.12);
  --ink: #22201f;
  --ink-muted: #4b4845;
  --hairline: rgba(34, 32, 31, 0.22);
  --hairline-strong: rgba(34, 32, 31, 0.38);
  --header-h: 92px;
  --ease-apple: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-stone);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  background-color: var(--bg-stone);
  color: var(--ink);
  line-height: 1.65;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1160px, 90vw);
  margin: 0 auto;
}

.container-narrow {
  width: min(820px, 90vw);
  margin: 0 auto;
}

/* ------------------------------------------------------------------
   Sticky Editorial Header
------------------------------------------------------------------ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  z-index: 1000;
  background: rgba(207, 206, 201, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hairline);
  transition: background 0.35s var(--ease-apple), box-shadow 0.35s var(--ease-apple);
}

.site-header.is-scrolled {
  background: rgba(207, 206, 201, 0.94);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
}

.header-inner {
  width: min(1240px, 92vw);
  height: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 120px 1fr auto;
  align-items: center;
  gap: 16px;
}

.nav-logo-slot {
  display: flex;
  align-items: center;
  height: 76px;
  width: 120px;
}

.nav-logo-img {
  height: 74px;
  width: auto;
  object-fit: contain;
}

.nav-logo-img.nav-logo-hidden {
  visibility: hidden;
  pointer-events: none;
}

/* Body-level GPU-accelerated floating logo (always above navbar, zero jitter) */
.floating-morph-logo {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1100;
  display: block;
  transform-origin: top left;
  will-change: transform;
  opacity: 0;
  transition: opacity 0.18s ease;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.floating-morph-logo.is-ready {
  opacity: 1;
}

.floating-morph-logo img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.16));
}

.site-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(18px, 3.2vw, 48px);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: 8px 18px;
}

.nav-link {
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--ink);
  position: relative;
  padding: 4px 0;
  transition: color 0.25s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1.5px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.35s var(--ease-apple);
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--brand);
}

.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-self: end;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  border: 1px solid var(--hairline-strong);
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  background: rgba(255, 255, 255, 0.25);
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.lang-switch:hover {
  background: rgba(255, 255, 255, 0.55);
  border-color: var(--brand);
  transform: translateY(-1px);
}

.flag-svg {
  border-radius: 2px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  flex-shrink: 0;
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  background: transparent;
  border: 1px solid var(--hairline-strong);
  border-radius: 6px;
  cursor: pointer;
  padding: 8px;
}

.mobile-menu-btn span {
  display: block;
  height: 1.5px;
  width: 100%;
  background: var(--ink);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ------------------------------------------------------------------
   Hero Section & Scroll-Linked Logo Morph
------------------------------------------------------------------ */
.hero {
  position: relative;
  margin-top: var(--header-h);
  min-height: calc(86vh - var(--header-h));
  min-height: clamp(500px, 78vh, 780px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #1a0b0d;
}

.hero-media {
  position: absolute;
  inset: -4% 0;
  will-change: transform;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.74) contrast(1.06);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(207, 206, 201, 0.78) 0%, rgba(207, 206, 201, 0.35) 34%, rgba(16, 12, 18, 0.14) 68%, rgba(16, 12, 18, 0.32) 100%),
    linear-gradient(180deg, rgba(16, 12, 18, 0.08) 0%, rgba(16, 12, 18, 0.38) 100%);
}

.hero-content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 40px 0;
}

.hero-logo-anchor {
  width: clamp(190px, 32vw, 350px);
  height: auto;
  position: relative;
}

.hero-logo-placeholder {
  width: 100%;
  height: auto;
  visibility: hidden;
  pointer-events: none;
}

.hero-tagline {
  margin: 22px 0 0;
  font-family: var(--font-display);
  font-size: clamp(0.75rem, 1.2vw, 0.92rem);
  font-weight: 600;
  letter-spacing: 0.24em;
  color: var(--brand-dark);
  background: rgba(207, 206, 201, 0.72);
  padding: 7px 14px;
  border-left: 3px solid var(--brand);
  will-change: transform, opacity;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  transition: opacity 0.35s ease;
}

.scroll-line {
  width: 1px;
  height: 30px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { transform: scaleY(0.5); opacity: 0.4; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* ------------------------------------------------------------------
   Editorial Sections (About & History)
------------------------------------------------------------------ */
.section {
  padding: clamp(64px, 8vw, 112px) 0;
  position: relative;
}

.section-editorial {
  text-align: center;
}

.section-history {
  padding-top: clamp(24px, 4vw, 48px);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--brand);
  text-transform: uppercase;
  margin: 0 0 28px;
  text-align: center;
}

.editorial-copy {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.editorial-copy p {
  margin: 0;
  font-size: clamp(0.86rem, 1.05vw, 0.96rem);
  line-height: 1.8;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 500;
}

.editorial-copy-compact p {
  font-size: clamp(0.78rem, 0.95vw, 0.86rem);
  line-height: 1.85;
  color: var(--ink-muted);
}

/* ------------------------------------------------------------------
   References Alternating Timeline (Scroll-Driven Center Line)
------------------------------------------------------------------ */
.section-references {
  padding-top: clamp(32px, 5vw, 64px);
}

.timeline {
  position: relative;
  margin-top: 48px;
  padding: 20px 0 40px;
}

.timeline-track {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: var(--hairline);
  transform: translateX(-50%);
}

.timeline-progress {
  width: 100%;
  height: 0%;
  background: var(--brand);
  will-change: height;
}

.timeline-row {
  display: grid;
  grid-template-columns: 1fr 48px 1fr;
  align-items: start;
  padding: clamp(36px, 5vw, 64px) 0;
  position: relative;
  border-bottom: 1px solid var(--hairline);
}

.timeline-row:last-child {
  border-bottom: none;
}

.timeline-col-title {
  text-align: right;
  padding-right: clamp(20px, 3vw, 44px);
  padding-top: 4px;
}

.timeline-col-content {
  text-align: left;
  padding-left: clamp(20px, 3vw, 44px);
}

.timeline-row.is-reversed .timeline-col-title {
  order: 3;
  text-align: left;
  padding-right: 0;
  padding-left: clamp(20px, 3vw, 44px);
}

.timeline-row.is-reversed .timeline-node {
  order: 2;
}

.timeline-row.is-reversed .timeline-col-content {
  order: 1;
  text-align: right;
  padding-left: 0;
  padding-right: clamp(20px, 3vw, 44px);
}

.timeline-node {
  display: flex;
  justify-content: center;
  padding-top: 10px;
  position: relative;
  z-index: 2;
}

.timeline-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--ink);
  border: 2px solid var(--bg-stone);
  box-shadow: 0 0 0 1px var(--ink);
  transition: background 0.35s ease, transform 0.35s var(--ease-apple);
}

.timeline-row.is-visible .timeline-dot {
  background: var(--brand);
  box-shadow: 0 0 0 2px var(--brand-soft);
  transform: scale(1.15);
}

.timeline-category-title {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.8vw, 1.45rem);
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--brand);
  margin: 0;
  text-transform: uppercase;
}

.ref-entry {
  margin-bottom: 24px;
}

.ref-entry:last-child {
  margin-bottom: 0;
}

.ref-entry-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
}

.timeline-row.is-reversed .ref-entry-head {
  justify-content: flex-end;
}

.ref-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}

.ref-year {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--brand);
  padding: 1px 7px;
  border: 1px solid rgba(102, 31, 39, 0.35);
  border-radius: 3px;
}

.ref-details {
  margin: 6px 0 0;
  font-size: 0.8rem;
  line-height: 1.7;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.ref-empty {
  font-size: 0.84rem;
  color: var(--ink-muted);
  font-style: italic;
}

/* Reference Gallery Thumbs */
.ref-gallery-bar {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.timeline-row.is-reversed .ref-gallery-bar {
  align-items: flex-end;
}

.ref-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ref-thumb-btn {
  width: 66px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--hairline-strong);
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  background: #1a1a1a;
  transition: transform 0.28s var(--ease-apple), border-color 0.25s ease;
}

.ref-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ref-thumb-btn:hover {
  transform: translateY(-2px) scale(1.04);
  border-color: var(--brand);
}

.ref-hidden-img {
  display: none;
}

.ref-gallery-trigger {
  align-self: flex-start;
  background: transparent;
  border: none;
  padding: 0;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--brand);
  cursor: pointer;
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease;
}

.timeline-row.is-reversed .ref-gallery-trigger {
  align-self: flex-end;
}

.ref-gallery-trigger:hover {
  border-color: var(--brand);
}

/* ------------------------------------------------------------------
   Contact & Follow Us
------------------------------------------------------------------ */
.section-contact {
  border-top: 1px solid var(--hairline);
  padding: clamp(56px, 7vw, 92px) 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr 0.9fr;
  gap: clamp(28px, 4vw, 52px);
  align-items: start;
}

.contact-heading {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--brand);
  margin: 0 0 18px;
  text-transform: uppercase;
}

.contact-block {
  margin-bottom: 16px;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  line-height: 1.65;
  display: flex;
  flex-direction: column;
}

.contact-block p {
  margin: 0;
}

.contact-label {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--ink-muted);
  margin-bottom: 2px;
}

.contact-block a,
.social-link {
  font-weight: 600;
  transition: color 0.2s ease;
}

.contact-block a:hover,
.social-link:hover {
  color: var(--brand);
}

.custom-map {
  width: 100%;
  height: 310px;
  border: 2px solid #111111;
  box-shadow: 4px 4px 0 #111111;
  background: #d8d7d2;
  z-index: 1;
}

.custom-map .leaflet-tile-pane {
  filter: grayscale(1) contrast(1.2);
}

.custom-map .leaflet-control-zoom {
  border: 2px solid #111111 !important;
  box-shadow: 3px 3px 0 #111111 !important;
  border-radius: 0 !important;
}

.custom-map .leaflet-control-zoom a,
.custom-map .leaflet-control-attribution,
.custom-map .leaflet-popup-content-wrapper,
.custom-map .leaflet-popup-tip {
  border-radius: 0;
}

.custom-map .leaflet-control-zoom a {
  color: #111111;
  font-weight: 700;
  border-bottom: 1px solid #111111;
}

.custom-map .leaflet-control-zoom a:hover {
  background: var(--brand);
  color: #ffffff;
}

.custom-map .leaflet-popup-content-wrapper {
  border: 2px solid #111111;
  box-shadow: 4px 4px 0 #111111;
  background: #f5f4f0;
  color: #111111;
}

.custom-map .leaflet-popup-content {
  margin: 12px 14px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  line-height: 1.5;
}

.ae-popup-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--brand);
  margin-bottom: 4px;
}

.ae-popup-link {
  display: inline-block;
  margin-top: 6px;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #111111;
  border-bottom: 1.5px solid var(--brand);
}

.ae-map-pin-wrapper {
  background: transparent;
  border: none;
}

.ae-map-pin {
  width: 18px;
  height: 18px;
  background: var(--brand);
  border: 2px solid #111111;
  box-shadow: 2px 2px 0 #111111;
  transition: transform 0.2s ease;
}

.ae-map-pin:hover {
  transform: scale(1.15);
}

.contact-follow {
  text-align: right;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 290px;
}

.follow-social {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

/* ------------------------------------------------------------------
   Burgundy Footer Strip
------------------------------------------------------------------ */
.footer-bar {
  background: var(--brand);
  color: #f4f3ef;
  padding: 28px 0;
}

.footer-bar-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px 24px;
}

.footer-secondhand {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
}

.footer-secondhand a {
  display: inline-block;
  margin-left: 8px;
  font-weight: 700;
  border-bottom: 1px solid rgba(255, 255, 255, 0.55);
  padding-bottom: 1px;
  transition: border-color 0.2s ease;
}

.footer-secondhand a:hover {
  border-color: #ffffff;
}

.footer-copy {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  opacity: 0.78;
}

/* ------------------------------------------------------------------
   Equipment Catalog Page
------------------------------------------------------------------ */
.equipment-hero {
  margin-top: var(--header-h);
  padding: clamp(64px, 8vw, 100px) 0 36px;
  text-align: center;
  border-bottom: 1px solid var(--hairline);
}

.equipment-subtitle {
  max-width: 620px;
  margin: 0 auto 32px;
  font-size: 0.92rem;
  color: var(--ink-muted);
}

.equipment-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.filter-btn {
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 9px 18px;
  border: 1px solid var(--hairline-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: all 0.25s var(--ease-apple);
}

.filter-btn:hover,
.filter-btn.is-active {
  background: var(--brand);
  border-color: var(--brand);
  color: #ffffff;
}

.equipment-group {
  margin-bottom: 56px;
}

.equipment-group.is-hidden {
  display: none;
}

.equipment-group-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 1px solid var(--hairline-strong);
  padding-bottom: 12px;
  margin-bottom: 24px;
}

.equipment-group-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--brand);
  text-transform: uppercase;
}

.equipment-count {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-muted);
}

.equipment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 22px;
}

.equipment-card {
  background: var(--bg-stone-light);
  border: 1px solid var(--hairline);
  border-radius: 6px;
  overflow: hidden;
  transition: transform 0.35s var(--ease-apple), box-shadow 0.35s var(--ease-apple), border-color 0.25s ease;
}

.equipment-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.08);
}

.equipment-card-media {
  aspect-ratio: 4 / 3;
  background: #e5e4df;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid var(--hairline);
}

.equipment-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-apple);
}

.equipment-card:hover .equipment-card-media img {
  transform: scale(1.04);
}

.equipment-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #dcdbd6 0%, #c8c7c2 100%);
}

.equipment-placeholder img {
  width: 68px;
  height: auto;
  opacity: 0.22;
  object-fit: contain;
}

.equipment-card-body {
  padding: 16px 18px;
}

.equipment-card-body h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink);
}

.equipment-card-body p {
  margin: 8px 0 0;
  font-size: 0.8rem;
  color: var(--ink-muted);
}

.equipment-back-wrap {
  text-align: center;
  margin-top: 32px;
}

.btn-outline {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  padding: 12px 26px;
  border: 1px solid var(--brand);
  color: var(--brand);
  border-radius: 999px;
  transition: background 0.25s ease, color 0.25s ease;
}

.btn-outline:hover {
  background: var(--brand);
  color: #ffffff;
}

/* ------------------------------------------------------------------
   Lightbox Modal
------------------------------------------------------------------ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(16, 12, 13, 0.94);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox-stage {
  max-width: min(92vw, 1100px);
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.lightbox-img {
  max-width: 100%;
  max-height: 76vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.55);
}

.lightbox-caption {
  color: #f4f3ef;
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
}

.lightbox-counter {
  color: rgba(244, 243, 239, 0.65);
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
}

.lightbox-close,
.lightbox-nav {
  position: fixed;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
}

.lightbox-close:hover,
.lightbox-nav:hover {
  background: var(--brand);
}

.lightbox-close {
  top: 22px;
  right: 22px;
}

.lightbox-prev {
  left: 22px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
}

/* ------------------------------------------------------------------
   Apple-Style Scroll Reveal Utility
------------------------------------------------------------------ */
.reveal {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition: opacity 0.85s var(--ease-apple), transform 0.85s var(--ease-apple);
}

.reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* ------------------------------------------------------------------
   Responsive Design
------------------------------------------------------------------ */
@media (max-width: 920px) {
  :root {
    --header-h: 72px;
  }

  .header-inner {
    grid-template-columns: auto 1fr auto;
  }

  .nav-logo-slot {
    height: 56px;
    width: 78px;
  }

  .nav-logo-img {
    height: 54px;
  }

  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: rgba(207, 206, 201, 0.98);
    flex-direction: column;
    gap: 18px;
    padding: 24px;
    border-bottom: 1px solid var(--hairline-strong);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s var(--ease-apple), opacity 0.3s ease;
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .timeline-track {
    left: 16px;
  }

  .timeline-row,
  .timeline-row.is-reversed {
    grid-template-columns: 32px 1fr;
    gap: 8px 16px;
    padding: 28px 0;
  }

  .timeline-node,
  .timeline-row.is-reversed .timeline-node {
    order: 1;
    grid-row: 1 / span 2;
  }

  .timeline-col-title,
  .timeline-row.is-reversed .timeline-col-title {
    order: 2;
    text-align: left;
    padding: 0;
  }

  .timeline-col-content,
  .timeline-row.is-reversed .timeline-col-content {
    order: 3;
    text-align: left;
    padding: 8px 0 0;
  }

  .timeline-row.is-reversed .ref-entry-head {
    justify-content: flex-start;
  }

  .timeline-row.is-reversed .ref-gallery-bar,
  .timeline-row.is-reversed .ref-gallery-trigger {
    align-items: flex-start;
    align-self: flex-start;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-follow {
    text-align: left;
    min-height: auto;
  }

  .follow-social {
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .scroll-line {
    animation: none;
  }
}
