/* Hidden Reef Photography */

:root {
  --bg: #090b0d;
  --bg-surface: #0e1114;
  --bg-elevated: #14181c;
  --text-primary: #e0d6c8;
  --text-secondary: #8a8175;
  --text-muted: #7d7468;
  --accent: #2a7a78;
  --accent-light: #38a09e;
  --gold: #b07d30;
  --gold-light: #cc9a4a;
  --border: rgba(255, 255, 255, 0.06);
  --border-light: rgba(255, 255, 255, 0.13);
  --nav-height: 80px;
  --max-width: 1440px;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }

/* ===== TYPOGRAPHY ===== */

h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  line-height: 1.15;
}

.eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.section-title {
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  font-weight: 300;
  letter-spacing: -0.01em;
}

.divider {
  width: 48px;
  height: 1px;
  background: linear-gradient(to right, var(--accent-light), rgba(56, 160, 158, 0.15));
  margin: 18px 0;
}

/* ===== BUTTONS ===== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
  padding: 15px 30px;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
  background: none;
}

.btn:hover {
  color: var(--text-primary);
  border-color: var(--accent-light);
  background: rgba(56, 160, 158, 0.06);
}

.btn-primary {
  color: var(--bg);
  background: var(--text-primary);
  border-color: var(--text-primary);
}

.btn-primary:hover {
  background: #fff;
  color: var(--bg);
  border-color: #fff;
  box-shadow: 0 0 0 1px rgba(56, 160, 158, 0.35), 0 10px 28px rgba(56, 160, 158, 0.12);
}

/* ===== NAVIGATION ===== */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(24px, 5vw, 80px);
  transition: background-color 0.6s ease, backdrop-filter 0.6s ease, border-color 0.6s ease;
  border-bottom: 1px solid transparent;
}

.nav.transparent { background-color: transparent; }

.nav.scrolled {
  background-color: rgba(9, 11, 13, 0.93);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--border);
}

.nav-logo {
  display: flex;
  flex-direction: column;
  gap: 3px;
  line-height: 1;
}

.nav-logo-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--text-primary);
}

.nav-logo-sub {
  font-family: 'Inter', sans-serif;
  font-size: 0.58rem;
  font-weight: 300;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 44px;
  list-style: none;
}

.nav-links a {
  font-size: 0.64rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: color var(--transition);
  position: relative;
  padding-bottom: 4px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent-light);
  transition: width var(--transition);
}

.nav-links a:hover { color: var(--text-primary); }
.nav-links a:hover::after { width: 100%; }

.nav-links a.active {
  color: var(--text-primary);
}
.nav-links a.active::after { width: 100%; }

.nav-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
}

.nav-menu-btn span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--text-primary);
  transition: var(--transition);
}

.nav-mobile {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 48px;
}

.nav-mobile.open { display: flex; }

.nav-mobile a {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 8vw, 3rem);
  font-weight: 300;
  color: var(--text-primary);
  letter-spacing: 0.02em;
  transition: color var(--transition);
}

.nav-mobile a:hover { color: var(--accent-light); }

.nav-mobile-close {
  position: absolute;
  top: 28px;
  right: 28px;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.8rem;
  font-weight: 200;
  padding: 8px;
  line-height: 1;
  font-family: 'Inter', sans-serif;
  transition: color var(--transition);
}

.nav-mobile-close:hover { color: var(--text-primary); }

/* ===== HERO ===== */

.hero {
  position: relative;
  height: 100vh;
  min-height: 620px;
  overflow: hidden;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  animation: heroZoom 9s var(--ease) forwards;
}

@keyframes heroZoom {
  from { transform: scale(1.07); }
  to { transform: scale(1.0); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(9, 11, 13, 0.18) 0%,
    rgba(9, 11, 13, 0.04) 35%,
    rgba(9, 11, 13, 0.5) 72%,
    rgba(9, 11, 13, 0.88) 100%
  );
}

.hero-content {
  position: absolute;
  bottom: 22%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  width: 100%;
  padding: 0 24px;
  animation: fadeUp 1.6s 0.5s var(--ease) both;
}

@media (min-width: 768px) {
  .hero-content { bottom: 17%; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateX(-50%) translateY(24px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.hero-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3.8rem, 11vw, 9rem);
  font-weight: 300;
  color: #fff;
  letter-spacing: 0.06em;
  line-height: 1;
  margin-bottom: 18px;
}

.hero-tagline {
  font-family: 'Inter', sans-serif;
  font-size: clamp(0.58rem, 1.4vw, 0.72rem);
  font-weight: 300;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  animation: fadeUp 2s 1.8s var(--ease) both;
}

.hero-scroll span {
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

.hero-scroll-line {
  width: 1px;
  height: 52px;
  background: linear-gradient(to bottom, var(--accent-light), transparent);
  animation: pulse 2.4s 2.2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.5; transform: scaleY(1); transform-origin: top; }
  50% { opacity: 0.15; transform: scaleY(0.4); transform-origin: bottom; }
}

/* ===== SECTIONS ===== */

.section {
  padding: clamp(80px, 11vw, 140px) clamp(24px, 5vw, 80px);
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: clamp(48px, 6vw, 80px);
}

.section-header-left {
  display: flex;
  flex-direction: column;
}

.view-all {
  font-family: 'Inter', sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 4px;
  transition: color var(--transition), border-color var(--transition);
  white-space: nowrap;
  margin-bottom: 6px;
}

.view-all:hover {
  color: var(--accent-light);
  border-color: var(--accent-light);
}

/* ===== FEATURED GRID ===== */

.featured-grid {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 3px;
  height: clamp(440px, 65vh, 720px);
}

.featured-item {
  position: relative;
  height: 100%;
  flex: 0 0 auto;
  overflow: hidden;
  cursor: pointer;
}

.featured-item img {
  height: 100%;
  width: auto;
  max-width: 100%;
  display: block;
  transition: transform 0.8s var(--ease);
}

.featured-item:hover img { transform: scale(1.05); }

.featured-item:focus-visible {
  outline: 2px solid var(--accent-light);
  outline-offset: 2px;
}

/* ===== INTRO STATEMENT ===== */

.intro-statement {
  border-bottom: 1px solid var(--border);
}

.intro-statement-inner {
  max-width: 780px;
  margin: 0 auto;
  padding: clamp(72px, 10vw, 130px) clamp(24px, 5vw, 80px);
}

.intro-statement-inner p {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  font-weight: 300;
  line-height: 1.65;
  color: var(--text-secondary);
  margin: 0 0 1.4em;
}

.intro-statement-closer {
  font-style: italic;
  color: var(--text-primary) !important;
  margin-bottom: 0 !important;
  position: relative;
  padding-left: 28px;
}

.intro-statement-closer::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.9em;
  width: 18px;
  height: 1px;
  background: var(--accent-light);
}

/* ===== PAGE HEADERS ===== */

.page-header {
  padding: calc(var(--nav-height) + clamp(60px, 8vw, 100px)) clamp(24px, 5vw, 80px) clamp(48px, 6vw, 72px);
  max-width: var(--max-width);
  margin: 0 auto;
}

.page-header h1 {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  margin-top: 14px;
  letter-spacing: -0.01em;
}

.page-header-split {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: end;
}

.page-header-note {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.85;
  max-width: 46ch;
  justify-self: end;
  margin: 0 0 18px;
}

@media (max-width: 768px) {
  .page-header-split {
    grid-template-columns: 1fr;
    gap: 28px;
    align-items: start;
  }
  .page-header-note {
    justify-self: start;
    margin: 0;
  }
}

/* ===== PORTFOLIO GALLERY ===== */

.gallery-filters {
  display: flex;
  gap: 36px;
  padding: 0 clamp(24px, 5vw, 80px) 48px;
  max-width: var(--max-width);
  margin: 0 auto;
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 1px solid var(--border);
  margin-bottom: 48px;
}

.gallery-filters::-webkit-scrollbar { display: none; }

.filter-btn {
  font-family: 'Inter', sans-serif;
  font-size: 0.64rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-secondary);
  background: none;
  border: none;
  border-bottom: 1px solid transparent;
  padding: 6px 0;
  transition: color var(--transition), border-color var(--transition);
  white-space: nowrap;
  font-weight: 400;
}

.filter-btn.active,
.filter-btn:hover {
  color: var(--text-primary);
  border-bottom-color: var(--accent-light);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 4px;
  gap: 3px;
  padding: 0 clamp(24px, 5vw, 80px) clamp(80px, 10vw, 120px);
  max-width: var(--max-width);
  margin: 0 auto;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  display: block;
  grid-row-end: span 100;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.65s var(--ease);
}

.gallery-item img[data-src] {
  background: #1a1d20;
}

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

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(42, 122, 120, 0.28) 0%,
    rgba(9, 11, 13, 0.5) 100%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-item-overlay svg {
  width: 28px;
  height: 28px;
  color: rgba(255, 255, 255, 0.95);
  filter: drop-shadow(0 0 10px rgba(56, 160, 158, 0.5));
}

.gallery-item:hover .gallery-item-overlay { opacity: 1; }

.gallery-item:focus-visible {
  outline: 2px solid var(--accent-light);
  outline-offset: 2px;
}

.gallery-item.hidden { display: none; }

.noscript-msg {
  max-width: 540px;
  margin: 0 auto;
  padding: 40px 24px 80px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.noscript-msg a { color: var(--accent-light); border-bottom: 1px solid var(--border-light); }

/* ===== LIGHTBOX ===== */

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(6, 8, 10, 0.97);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.lightbox.open { display: flex; }

.lightbox-img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  display: block;
  transition: opacity 0.25s ease;
}

.lightbox-img.loading { opacity: 0; }

.lightbox-close {
  position: fixed;
  top: 22px;
  right: 28px;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 2rem;
  font-weight: 200;
  font-family: 'Inter', sans-serif;
  padding: 8px 12px;
  line-height: 1;
  transition: color var(--transition);
}

.lightbox-close:hover { color: var(--text-primary); }

.lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
  font-size: 1.1rem;
}

.lightbox-nav:hover {
  color: var(--accent-light);
  border-color: var(--accent-light);
  background: rgba(56, 160, 158, 0.08);
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox-counter {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  font-family: 'Inter', sans-serif;
}

/* ===== ABOUT PAGE ===== */

.about-header {
  text-align: center;
  padding-bottom: clamp(24px, 4vw, 48px);
}

.about-header-title {
  font-size: clamp(3rem, 8vw, 5.8rem);
  letter-spacing: 0.005em;
  margin-top: 18px;
  font-weight: 300;
}


.about-header-divider {
  margin: 28px auto 22px;
  width: 72px;
  background: linear-gradient(to right, rgba(56, 160, 158, 0.15), var(--accent-light), rgba(56, 160, 158, 0.15));
}

.about-header-tagline {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--text-secondary);
  letter-spacing: 0.06em;
}

.about-body {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: clamp(60px, 8vw, 100px);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(80px, 10vw, 120px) clamp(24px, 5vw, 80px);
  align-items: start;
}

.about-sidebar {
  position: sticky;
  top: calc(var(--nav-height) + 32px);
}

.about-sidebar-image {
  position: relative;
  overflow: hidden;
}

.about-sidebar-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at center,
    transparent 30%,
    rgba(9, 11, 13, 0.55) 65%,
    rgba(9, 11, 13, 0.88) 100%
  );
  pointer-events: none;
}

.about-sidebar-image img {
  width: 100%;
  height: auto;
  display: block;
}

.about-main h2 {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  margin-bottom: 36px;
  margin-top: 14px;
}

.about-main p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 2;
  margin-bottom: 22px;
}

.about-gear {
  margin-top: 48px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
}

.about-gear h3 {
  font-size: 1.5rem;
  margin-bottom: 24px;
}

.gear-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
}

.gear-item {
  background: var(--bg-surface);
  padding: 20px 24px;
  border: 1px solid var(--border);
}

.gear-item-label {
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
  font-family: 'Inter', sans-serif;
}

.gear-item-name {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* ===== CONTACT PAGE ===== */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: clamp(60px, 8vw, 100px);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(80px, 10vw, 120px) clamp(24px, 5vw, 80px);
  align-items: start;
}

.contact-info h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 14px 0 24px;
}

.contact-info p {
  font-size: 0.87rem;
  color: var(--text-secondary);
  line-height: 1.95;
  margin-bottom: 36px;
}

.contact-detail {
  margin-bottom: 24px;
}

.contact-detail-label {
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
  font-family: 'Inter', sans-serif;
}

.contact-detail-value {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.form-group { margin-bottom: 26px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-label {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 0.87rem;
  font-weight: 300;
  padding: 14px 18px;
  outline: none;
  transition: border-color var(--transition);
  -webkit-appearance: none;
  appearance: none;
  border-radius: 0;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--accent-light);
  box-shadow: 0 0 0 3px rgba(56, 160, 158, 0.1);
}

.form-textarea {
  height: 160px;
  resize: vertical;
  line-height: 1.7;
}

.form-select-wrap {
  position: relative;
}

.form-select-wrap::after {
  content: '↓';
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
  font-size: 0.8rem;
  pointer-events: none;
}

.form-select option {
  background: var(--bg-surface);
  color: var(--text-primary);
}

/* ===== FOOTER ===== */

.footer {
  border-top: 1px solid var(--border);
  padding: 48px clamp(24px, 5vw, 80px);
  margin-top: auto;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

.footer-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  font-weight: 300;
  letter-spacing: 0.06em;
}

.footer-links {
  display: flex;
  gap: 32px;
  list-style: none;
  justify-content: center;
}

.footer-links a {
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color var(--transition);
}

.footer-links a:hover { color: var(--text-secondary); }

.footer-copy {
  font-size: 0.62rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-align: right;
}

.footer-legal {
  max-width: var(--max-width);
  margin: 20px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 0.58rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-align: center;
  line-height: 1.7;
  opacity: 0.75;
}

/* ===== IMAGE PROTECTION ===== */

img {
  -webkit-user-drag: none;
  user-select: none;
}

.img-protect {
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* ===== SCROLL REVEAL ===== */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }
.reveal-delay-5 { transition-delay: 0.40s; }

/* ===== MEDIA QUERIES ===== */

@media (max-width: 1100px) {
  .featured-grid {
    flex-direction: column;
    align-items: center;
    height: auto;
  }
  .featured-item {
    height: auto;
    width: 100%;
    max-width: 520px;
  }
  .featured-item img {
    height: auto;
    width: 100%;
  }
  .about-body { grid-template-columns: 1fr; }
  .about-sidebar { position: static; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-menu-btn { display: flex; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); padding: 0 16px clamp(60px, 8vw, 80px); }
  .gallery-filters { padding: 0 16px 36px; gap: 24px; }
  .lightbox-nav { width: 42px; height: 42px; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .footer-copy { text-align: center; }
  .footer-links { justify-content: center; }
  .form-row { grid-template-columns: 1fr; }
  .gear-list { grid-template-columns: 1fr; }
}

@media (max-width: 540px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .hero-name { letter-spacing: 0.03em; }
}

/* ===== PRELOADER ===== */

.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.7s var(--ease), visibility 0.7s;
}

.preloader.done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-wordmark {
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  animation: preloaderFade 0.7s 0.1s var(--ease) forwards;
}

.preloader-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 300;
  letter-spacing: 0.06em;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 10px;
}

.preloader-sub {
  font-family: 'Inter', sans-serif;
  font-size: 0.62rem;
  font-weight: 300;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.preloader-line {
  width: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--accent-light), transparent);
  margin-top: 22px;
  animation: preloaderLine 1s 0.45s var(--ease) forwards;
}

@keyframes preloaderFade {
  to { opacity: 1; }
}

@keyframes preloaderLine {
  to { width: 200px; }
}

body.preloading { overflow: hidden; }

/* ===== REDUCED MOTION ===== */

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

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  .hero-img { animation: none !important; transform: none !important; }
  .hero-content { animation: none !important; }
  .hero-scroll { animation: none !important; }
  .hero-scroll-line { animation: none !important; }

  .preloader { display: none !important; }
}
