/* ============================================
   ALTITUDE AERIAL — styles.css
   ============================================ */

/* --- Custom Properties --- */
:root {
  --bg-primary: #0a0d12;
  --bg-secondary: #10141c;
  --bg-tertiary: #171d2a;
  --text-primary: #ede8df;
  --text-secondary: #8a8478;
  --accent: #3dd8c0;
  --accent-dim: #2ab8a2;
  --accent-warm: #d4956b;
  --accent-warm-dim: #b87a54;
  --accent-glow: rgba(61, 216, 192, 0.10);
  --accent-warm-glow: rgba(212, 149, 107, 0.10);
  --glass: rgba(10, 13, 18, 0.88);
  --glass-light: rgba(10, 13, 18, 0.5);
  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body: 'Syne', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) var(--bg-primary);
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9997;
  pointer-events: none;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

body.loading { overflow: hidden; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }

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

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 4rem);
}

/* --- Preloader --- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  pointer-events: all;
}

.preloader-panel {
  position: absolute;
  left: 0;
  right: 0;
  height: 50%;
  background: var(--bg-primary);
  z-index: 2;
  transition: transform 1s var(--ease-out-expo);
}

.preloader-panel-top { top: 0; }
.preloader-panel-bottom { bottom: 0; }

.preloader.done .preloader-panel-top { transform: translateY(-100%); }
.preloader.done .preloader-panel-bottom { transform: translateY(100%); }

.preloader.done .preloader-inner {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.preloader.gone {
  visibility: hidden;
  pointer-events: none;
}

.preloader-inner {
  text-align: center;
  z-index: 3;
  position: relative;
  transition: opacity 0.5s, transform 0.5s;
}

.preloader-text {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 4vw, 4rem);
  font-weight: 400;
  letter-spacing: 0.12em;
  display: flex;
  gap: 0;
  justify-content: center;
  padding: 0 1.5rem;
  flex-wrap: wrap;
}

.preloader-text span {
  opacity: 0;
  transform: translateY(20px);
  animation: preloaderLetter 0.5s var(--ease-out-expo) forwards;
}

.preloader-text span:nth-child(1) { animation-delay: 0.05s; }
.preloader-text span:nth-child(2) { animation-delay: 0.1s; }
.preloader-text span:nth-child(3) { animation-delay: 0.15s; }
.preloader-text span:nth-child(4) { animation-delay: 0.2s; }
.preloader-text span:nth-child(5) { animation-delay: 0.25s; }
.preloader-text span:nth-child(6) { animation-delay: 0.3s; }
.preloader-text span:nth-child(7) { animation-delay: 0.35s; }
.preloader-text span:nth-child(8) { animation-delay: 0.4s; }
.preloader-space { width: 0.3em; }
.preloader-text span:nth-child(10) { animation-delay: 0.55s; }
.preloader-text span:nth-child(11) { animation-delay: 0.6s; }
.preloader-text span:nth-child(12) { animation-delay: 0.65s; }
.preloader-text span:nth-child(13) { animation-delay: 0.7s; }
.preloader-text span:nth-child(14) { animation-delay: 0.75s; }
.preloader-text span:nth-child(15) { animation-delay: 0.8s; }

@keyframes preloaderLetter {
  to { opacity: 1; transform: translateY(0); }
}

.preloader-bar {
  width: 200px;
  height: 1px;
  background: rgba(255,255,255,0.1);
  margin: 2rem auto 0;
  overflow: hidden;
  border-radius: 1px;
}

.preloader-bar-fill {
  width: 0;
  height: 100%;
  background: var(--accent);
  animation: preloaderBar 1.8s var(--ease-out-expo) forwards;
}

@keyframes preloaderBar {
  to { width: 100%; }
}

/* --- Custom Cursor --- */
.cursor-dot, .cursor-ring {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
}

@media (hover: hover) and (pointer: fine) {
  .cursor-dot, .cursor-ring { display: block; }
  body { cursor: none; }
  a, button, [role="tab"] { cursor: none; }

  .cursor-dot {
    width: 6px;
    height: 6px;
    background: var(--accent);
    transition: width 0.2s, height 0.2s, opacity 0.2s;
  }

  .cursor-ring {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(61, 216, 192, 0.4);
    transition: width 0.3s var(--ease-out-expo), height 0.3s var(--ease-out-expo),
                border-color 0.3s, opacity 0.3s;
  }

  .cursor-dot.hover {
    width: 10px;
    height: 10px;
    opacity: 0.8;
  }

  .cursor-ring.hover {
    width: 56px;
    height: 56px;
    border-color: var(--accent);
  }
}

/* --- Scroll Progress --- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-warm));
  z-index: 8000;
  width: 0%;
  transition: width 0.1s linear;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 7000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem clamp(1.5rem, 4vw, 4rem);
  padding-top: max(1.5rem, env(safe-area-inset-top));
  padding-left: max(clamp(1.5rem, 4vw, 4rem), env(safe-area-inset-left));
  padding-right: max(clamp(1.5rem, 4vw, 4rem), env(safe-area-inset-right));
  transition: all 0.4s var(--ease-out-expo);
}

.nav.scrolled {
  padding: 1rem clamp(1.5rem, 4vw, 4rem);
  padding-top: max(1rem, env(safe-area-inset-top));
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(61, 216, 192, 0.08);
}

.nav-logo-text {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0.25em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-link {
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: color 0.3s;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s var(--ease-out-expo);
}

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

.nav-link-cta {
  color: var(--bg-primary);
  background: var(--accent);
  padding: 0.6rem 1.6rem;
  border-radius: 2px;
  font-weight: 500;
  letter-spacing: 0.1em;
  transition: background 0.3s, transform 0.3s;
}

.nav-link-cta::after { display: none; }
.nav-link-cta:hover {
  background: var(--accent-dim);
  color: var(--bg-primary);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  min-width: 44px;
  min-height: 44px;
  justify-content: center;
  align-items: center;
  z-index: 7001;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--text-primary);
  transition: transform 0.3s, opacity 0.3s;
  transform-origin: center;
}

.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(4.5px, 4.5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(4.5px, -4.5px); }

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    inset: 0;
    background: var(--bg-primary);
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s, visibility 0.4s;
  }
  .nav-links.open { opacity: 1; visibility: visible; }
  .nav-link { font-size: 1.2rem; letter-spacing: 0.2em; color: var(--text-primary); }
}

/* --- Hero --- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-img {
  position: absolute;
  inset: -10%;
  background-image: url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?auto=format&fit=crop&w=1920&q=80');
  background-size: cover;
  background-position: center;
  opacity: 0.35;
  animation: heroZoom 25s ease-in-out infinite alternate;
}

@keyframes heroZoom {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 13, 18, 0.4) 0%,
    rgba(10, 13, 18, 0.2) 40%,
    rgba(10, 13, 18, 0.6) 70%,
    var(--bg-primary) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 0 0.5rem;
  width: 100%;
  max-width: 100vw;
}

.hero-label {
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1;
  margin-bottom: 1.5rem;
}

.hero-title-line {
  display: block;
  overflow: hidden;
}

.hero-title-word {
  display: inline-block;
  font-size: clamp(4rem, 14vw, 12rem);
  letter-spacing: 0.04em;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent) 60%, var(--accent-warm) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-title-line:nth-child(2) .hero-title-word {
  font-size: clamp(2.8rem, 9vw, 8rem);
  letter-spacing: 0.2em;
  background: linear-gradient(135deg, var(--text-secondary) 0%, rgba(61, 216, 192, 0.5) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  font-style: italic;
  font-weight: 400;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  letter-spacing: 0.05em;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(61, 216, 192, 0.3);
  padding: 1rem 2rem;
  border-radius: 2px;
  transition: all 0.4s var(--ease-out-expo);
}

.hero-cta:hover {
  background: var(--accent);
  color: var(--bg-primary);
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(61, 216, 192, 0.2);
}

.hero-cta svg { transition: transform 0.4s var(--ease-out-expo); }
.hero-cta:hover svg { transform: translateY(3px); }

.hero-scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
}

.hero-scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(180deg, var(--accent), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0%, 100% { opacity: 0; transform: scaleY(0); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* --- Reveal Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

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

.reveal.delay-1 { transition-delay: 0.1s; }
.reveal.delay-2 { transition-delay: 0.2s; }
.reveal.delay-3 { transition-delay: 0.3s; }
.reveal.delay-4 { transition-delay: 0.4s; }

/* --- Labels --- */
.label-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
  position: relative;
  padding-left: 2rem;
}

.label-tag::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 1.2rem;
  height: 1px;
  background: var(--accent);
}

/* --- Section Titles --- */
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin-bottom: 3.5rem;
}

/* --- Statement --- */
.statement {
  padding: clamp(6rem, 12vw, 10rem) 0;
}

.statement-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 4rem;
  align-items: start;
}

.statement-label { padding-top: 0.5rem; }

.statement-text {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.statement-text:last-child { margin-bottom: 0; }

.statement-stats {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  padding-left: 3rem;
  border-left: 1px solid rgba(61, 216, 192, 0.1);
}

.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 400;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.stat-label {
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

@media (max-width: 900px) {
  .statement-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .statement-stats {
    flex-direction: row;
    padding-left: 0;
    border-left: none;
    border-top: 1px solid rgba(61, 216, 192, 0.1);
    padding-top: 2rem;
  }
}

/* --- Process / Before-After --- */
.process {
  padding: clamp(6rem, 12vw, 10rem) 0;
  background: var(--bg-secondary);
}

.comparison {
  margin-bottom: 4rem;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

.comparison-container {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(61, 216, 192, 0.1);
  user-select: none;
  touch-action: none;
}

.comparison-before, .comparison-after {
  position: absolute;
  inset: 0;
}

.comparison-before {
  z-index: 2;
  clip-path: inset(0 50% 0 0);
}

.comparison-after { z-index: 1; }

.comparison-img-wrapper {
  position: absolute;
  inset: 0;
}

.comparison-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.comparison-filter {
  position: absolute;
  inset: 0;
  background: rgba(10, 13, 18, 0.15);
  mix-blend-mode: multiply;
}

.comparison-before .comparison-img-wrapper img {
  filter: grayscale(1) contrast(0.7) brightness(0.8);
}

.comparison-label {
  position: absolute;
  bottom: 1rem;
  padding: 0.4rem 1rem;
  background: var(--glass);
  backdrop-filter: blur(10px);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-radius: 2px;
  z-index: 5;
}

.comparison-before .comparison-label { left: 1rem; }
.comparison-after .comparison-label { right: 1rem; }

.comparison-slider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: var(--accent);
  z-index: 10;
  cursor: ew-resize;
  transform: translateX(-50%);
}

.comparison-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-primary);
  box-shadow: 0 4px 20px rgba(61, 216, 192, 0.3);
  transition: transform 0.2s;
}

.comparison-handle:hover { transform: translate(-50%, -50%) scale(1.1); }

.process-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 960px;
  margin: 0 auto;
}

.process-step {
  padding: 2rem;
  border: 1px solid rgba(61, 216, 192, 0.08);
  border-radius: 4px;
  transition: border-color 0.3s, transform 0.3s;
}

.process-step:hover {
  border-color: rgba(61, 216, 192, 0.2);
  transform: translateY(-4px);
}

.process-step-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--accent);
  opacity: 0.4;
  margin-bottom: 1rem;
}

.process-step h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 400;
  margin-bottom: 0.75rem;
}

.process-step p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

@media (max-width: 768px) {
  .process-steps { grid-template-columns: 1fr; }
}

/* --- Gallery --- */
.gallery {
  padding: clamp(6rem, 12vw, 10rem) 0;
}

.gallery-filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.gallery-filter {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.6rem 1.4rem;
  border: 1px solid rgba(61, 216, 192, 0.12);
  border-radius: 2px;
  color: var(--text-secondary);
  transition: all 0.3s var(--ease-out-expo);
}

.gallery-filter:hover {
  color: var(--text-primary);
  border-color: rgba(61, 216, 192, 0.3);
}

.gallery-filter.active {
  background: var(--accent);
  color: var(--bg-primary);
  border-color: var(--accent);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 6px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 3px;
  aspect-ratio: 3 / 2;
  background: var(--bg-tertiary);
  transition: opacity 0.5s, transform 0.5s var(--ease-out-expo);
  grid-column: span 4;
}

.gallery-item.featured {
  grid-column: span 7;
}

.gallery-item.featured + .gallery-item:not(.featured) {
  grid-column: span 5;
}

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

.gallery-item-inner {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.6s var(--ease-out-expo);
}

.gallery-item-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out-expo);
}

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

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(10, 13, 18, 0.9) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.5s var(--ease-out-expo);
}

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

.gallery-overlay .gallery-continent {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.gallery-overlay .gallery-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 400;
  margin-bottom: 0.2rem;
}

.gallery-overlay .gallery-location {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
}

.gallery-overlay .gallery-desc {
  font-size: 0.8rem;
  font-style: italic;
  color: var(--text-secondary);
  opacity: 0.8;
}

.gallery-cta {
  text-align: center;
  margin-top: 3.5rem;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(61, 216, 192, 0.3);
  padding: 1rem 2.5rem;
  border-radius: 2px;
  transition: all 0.4s var(--ease-out-expo);
}

.btn-outline:hover {
  background: var(--accent);
  color: var(--bg-primary);
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(61, 216, 192, 0.15);
}

@media (max-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item { grid-column: span 1; }
  .gallery-item.featured { grid-column: span 2; }
  .gallery-item.featured + .gallery-item:not(.featured) { grid-column: span 1; }
}

@media (max-width: 600px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item, .gallery-item.featured, .gallery-item.featured + .gallery-item:not(.featured) { grid-column: span 1; }
}

/* --- Mediums --- */
.mediums {
  padding: clamp(6rem, 12vw, 10rem) 0;
  background: var(--bg-secondary);
}

.mediums-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.medium-card {
  padding: 2.5rem 2rem;
  border: 1px solid rgba(61, 216, 192, 0.08);
  border-radius: 4px;
  transition: all 0.4s var(--ease-out-expo);
}

.medium-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(61, 216, 192, 0.08);
}

.medium-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1.5rem;
  color: var(--accent);
}

.medium-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 400;
  margin-bottom: 0.75rem;
}

.medium-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.medium-price {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--accent);
}

@media (max-width: 1000px) { .mediums-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .mediums-grid { grid-template-columns: 1fr; } }

/* --- Commission --- */
.commission {
  position: relative;
  padding: clamp(8rem, 16vw, 14rem) 0;
  overflow: hidden;
}

.commission-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1464822759023-fed622ff2c3b?auto=format&fit=crop&w=1920&q=80');
  background-size: cover;
  background-position: center;
  opacity: 0.15;
}

.commission-content {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.commission-text {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: var(--accent);
  color: var(--bg-primary);
  padding: 1.1rem 2.8rem;
  border-radius: 2px;
  transition: all 0.4s var(--ease-out-expo);
}

.btn-primary:hover {
  background: var(--accent-dim);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(61, 216, 192, 0.25);
}

/* --- Footer --- */
.footer {
  padding: 4rem 0 2rem;
  border-top: 1px solid rgba(61, 216, 192, 0.06);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2rem;
  align-items: start;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(61, 216, 192, 0.06);
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.25em;
  display: block;
  margin-bottom: 0.5rem;
}

.footer-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-secondary);
  letter-spacing: 0.08em;
  transition: color 0.3s;
}

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

.footer-contact { text-align: right; }

.footer-contact a {
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: color 0.3s;
}

.footer-contact a:hover { color: var(--accent); }

.footer-bottom {
  padding-top: 1.5rem;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.75rem;
  color: var(--text-secondary);
  opacity: 0.6;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-links { justify-content: center; flex-wrap: wrap; }
  .footer-contact { text-align: center; }
}

/* --- Lightbox --- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s, visibility 0.4s;
}

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

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 13, 18, 0.96);
  backdrop-filter: blur(10px);
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 9001;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--text-secondary);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 2px;
  transition: color 0.3s, border-color 0.3s;
}

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

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 9001;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 2px;
  transition: color 0.3s, border-color 0.3s, background 0.3s;
}

.lightbox-nav:hover {
  color: var(--text-primary);
  border-color: var(--accent);
  background: rgba(61, 216, 192, 0.05);
}

.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }

.lightbox-content {
  position: relative;
  z-index: 9001;
  text-align: center;
  max-width: 90vw;
  max-height: 85vh;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 75vh;
  object-fit: contain;
  border-radius: 3px;
  transition: opacity 0.3s;
}

.lightbox-info {
  padding-top: 1.5rem;
}

.lightbox-counter {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--text-secondary);
  opacity: 0.6;
  margin-bottom: 0.5rem;
}

.lightbox-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
  margin-bottom: 0.3rem;
}

.lightbox-location {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.3rem;
}

.lightbox-desc {
  font-size: 0.85rem;
  font-style: italic;
  color: var(--text-secondary);
  opacity: 0.7;
}

@media (max-width: 768px) {
  .lightbox-nav { display: none; }
}


/* ============================================
   POLISH ADDITIONS
   ============================================ */

/* --- Skip Link --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  padding: 0.8rem 1.5rem;
  background: var(--accent);
  color: var(--bg-primary);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  border-radius: 0 0 4px 4px;
  z-index: 10000;
  transition: top 0.3s;
}

.skip-link:focus { top: 0; }

/* --- Focus Visible --- */
a:focus-visible,
button:focus-visible,
[role="tab"]:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

:focus:not(:focus-visible) { outline: none; }

.btn-primary:focus-visible,
.btn-outline:focus-visible,
.hero-cta:focus-visible {
  box-shadow: 0 0 0 6px var(--accent-glow);
}

/* --- Hero Entrance Orchestration --- */
.hero-entrance {
  opacity: 0;
  transform: translateY(40px);
}

.hero-entrance.entered {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 1s var(--ease-out-expo), transform 1s var(--ease-out-expo);
}

.hero-entrance[data-entrance-delay="0"].entered { transition-delay: 0ms; }
.hero-entrance[data-entrance-delay="1"].entered { transition-delay: 200ms; }
.hero-entrance[data-entrance-delay="2"].entered { transition-delay: 400ms; }
.hero-entrance[data-entrance-delay="3"].entered { transition-delay: 700ms; }
.hero-entrance[data-entrance-delay="4"].entered { transition-delay: 1000ms; }

.hero-title-line.hero-entrance { overflow: hidden; }

.hero-title-line.hero-entrance .hero-title-word {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 1.2s var(--ease-out-expo);
}

.hero-title-line.hero-entrance.entered .hero-title-word {
  transform: translateY(0);
}

.hero-title-line[data-entrance-delay="1"].entered .hero-title-word { transition-delay: 200ms; }
.hero-title-line[data-entrance-delay="2"].entered .hero-title-word { transition-delay: 450ms; }

/* --- Reveal Variants --- */
.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }

.reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}
.reveal-right.visible { opacity: 1; transform: translateX(0); }

.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 1s var(--ease-out-expo), transform 1s var(--ease-out-expo);
}
.reveal-scale.visible { opacity: 1; transform: scale(1); }

/* Gallery stagger */
.gallery-item.reveal {
  transition-delay: calc(var(--stagger, 0) * 80ms);
}

/* --- Stat Counter --- */
.stat-number[data-count-to] {
  font-variant-numeric: tabular-nums;
}

.stat-number[data-count-symbol] {
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.stat-number[data-count-symbol].counted {
  opacity: 1;
  transform: scale(1);
}

/* --- Statement Layout (Asymmetric) --- */
.statement-label { grid-column: 1 / -1; }
.statement-content { grid-column: 1; grid-row: 2; }

.statement-stats {
  grid-column: 2;
  grid-row: 2;
  margin-top: 4rem;
}

/* --- Process Steps Stagger Offset --- */
.process-step:nth-child(2) { margin-top: 3rem; }
.process-step:nth-child(3) { margin-top: 1.5rem; }

/* Warm accent on step numbers */
.process-step-num { color: var(--accent-warm); }

/* --- Gallery Data Overlay (Coordinates) --- */
.gallery-data-overlay {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  opacity: 0;
  transition: opacity 0.5s var(--ease-out-expo);
  pointer-events: none;
}

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

.gallery-coord,
.gallery-alt {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.05em;
  color: var(--accent);
  background: var(--glass);
  backdrop-filter: blur(8px);
  padding: 0.2rem 0.5rem;
  border-radius: 2px;
  display: inline-block;
  width: fit-content;
}

/* --- Gallery Light Reflection --- */
.gallery-item-inner::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: radial-gradient(
    600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(255, 255, 255, 0.10),
    transparent 50%
  );
  opacity: 0;
  transition: opacity 0.3s;
}

.gallery-item:hover .gallery-item-inner::after { opacity: 1; }

/* --- Gallery Image Loading --- */
.gallery-item-inner {
  background: linear-gradient(
    90deg,
    var(--bg-tertiary) 25%,
    rgba(255,255,255,0.02) 50%,
    var(--bg-tertiary) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

.gallery-item-inner img.loaded ~ * { z-index: 2; }

.gallery-item-inner.img-error { animation: none; }

.gallery-item-inner.img-error::before {
  content: 'Image unavailable';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-secondary);
  opacity: 0.5;
}

@keyframes shimmer {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}

/* --- Topographic Contour Section Dividers --- */
.topo-divider {
  position: relative;
}

.topo-divider::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: -10%;
  width: 120%;
  height: 80px;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='800' height='80' viewBox='0 0 800 80'%3E%3Cpath d='M0,40 Q100,10 200,35 T400,45 T600,25 T800,40' fill='none' stroke='%233dd8c0' stroke-width='1'/%3E%3Cpath d='M0,50 Q100,20 200,45 T400,55 T600,35 T800,50' fill='none' stroke='%233dd8c0' stroke-width='0.8'/%3E%3Cpath d='M0,60 Q100,30 200,55 T400,65 T600,45 T800,60' fill='none' stroke='%233dd8c0' stroke-width='0.6'/%3E%3Cpath d='M0,30 Q100,5 200,25 T400,35 T600,15 T800,30' fill='none' stroke='%233dd8c0' stroke-width='0.5'/%3E%3C/svg%3E");
  background-size: 100% 100%;
  background-repeat: no-repeat;
}

/* --- Coordinate Grid Overlay on Gallery --- */
.gallery { position: relative; }

.gallery::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.018;
  background-image:
    repeating-linear-gradient(90deg, var(--accent) 0px, var(--accent) 1px, transparent 1px, transparent 200px),
    repeating-linear-gradient(0deg, var(--accent) 0px, var(--accent) 1px, transparent 1px, transparent 200px);
}

/* --- Radial Gradient Accents --- */
.process { position: relative; overflow: hidden; }

.process::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.process > .container { position: relative; z-index: 1; }

.mediums { position: relative; overflow: hidden; }

.mediums::before {
  content: '';
  position: absolute;
  bottom: -15%;
  left: -5%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-warm-glow), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.mediums > .container { position: relative; z-index: 1; }

/* --- Commission Split Layout --- */
.commission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.commission-content {
  text-align: left;
  max-width: none;
  margin: 0;
}

.commission-data {
  display: flex;
  align-items: center;
  justify-content: center;
}

.coord-display {
  font-family: var(--font-mono);
  text-align: center;
  padding: 3rem;
  border: 1px solid rgba(61, 216, 192, 0.12);
  border-radius: 4px;
  background: rgba(61, 216, 192, 0.03);
}

.coord-label {
  display: block;
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.coord-value {
  display: block;
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  color: var(--accent);
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
}

.coord-name {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  color: var(--text-secondary);
}

@media (max-width: 768px) {
  .commission-grid { grid-template-columns: 1fr; text-align: center; }
  .commission-content { text-align: center; }
}

/* --- Warm Accent on Prices --- */
.medium-price { color: var(--accent-warm); }

/* --- Comparison Slider Enhancements --- */
.comparison-handle {
  animation: handlePulse 2.5s ease-in-out infinite;
}

@keyframes handlePulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(61, 216, 192, 0.3); }
  50% { box-shadow: 0 4px 30px rgba(61, 216, 192, 0.6), 0 0 60px rgba(61, 216, 192, 0.15); }
}

.comparison-container.dragging .comparison-handle {
  animation: none;
  box-shadow: 0 4px 30px rgba(61, 216, 192, 0.5);
  transform: translate(-50%, -50%) scale(1.15);
}

.comparison-container.dragging .comparison-slider {
  box-shadow: 0 0 12px rgba(61, 216, 192, 0.4);
}

.comparison-container:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

/* --- 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, .reveal-left, .reveal-right, .reveal-scale {
    opacity: 1 !important;
    transform: none !important;
  }

  .hero-entrance {
    opacity: 1 !important;
    transform: none !important;
  }

  .hero-title-line.hero-entrance .hero-title-word {
    transform: none !important;
  }

  .hero-bg-img { animation: none !important; }
  .gallery-item-inner { animation: none !important; }
}

/* --- iPhone & Small Phone Optimizations --- */

/* Gallery filter touch targets */
@media (max-width: 768px) {
  .gallery-filter {
    padding: 0.7rem 1.2rem;
    font-size: 0.75rem;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  .gallery-filters {
    gap: 0.4rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    flex-wrap: nowrap;
    padding-bottom: 0.5rem;
  }

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

  /* Mobile nav full screen with safe areas */
  .nav-links {
    padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
  }

  /* Ensure medium cards aren't cramped */
  .medium-card { padding: 2rem 1.5rem; }

  /* Commission coordinate box */
  .coord-display { padding: 2rem 1.5rem; }
}

/* Extra small phones (iPhone SE, etc.) */
@media (max-width: 400px) {
  .hero-title-word {
    font-size: 3.5rem !important;
  }

  .hero-title-line:nth-child(2) .hero-title-word {
    font-size: 2.5rem !important;
  }

  .hero-label {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
  }

  .hero-tagline {
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .statement-text {
    font-size: 0.95rem;
  }

  .container {
    padding: 0 1.2rem;
  }

  .process-step,
  .medium-card {
    padding: 1.5rem 1.2rem;
  }

  /* Stack stats horizontally even on small screens */
  .statement-stats {
    flex-direction: column;
    gap: 1.5rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  .coord-display {
    padding: 1.5rem 1rem;
  }

  .coord-value {
    font-size: 1rem;
  }

  .footer-links {
    flex-direction: column;
    gap: 1rem;
  }
}

/* Safe area bottom padding for footer */
.footer-bottom {
  padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
}

/* Landscape mobile */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    min-height: 100vh;
    min-height: 100svh;
  }

  .hero-title-word {
    font-size: 8vw !important;
  }

  .hero-title-line:nth-child(2) .hero-title-word {
    font-size: 5vw !important;
  }

  .hero-scroll-indicator { display: none; }
}

/* Use svh for hero on mobile (respects iOS toolbar) */
@supports (height: 100svh) {
  .hero {
    height: 100svh;
  }
}


/* ============================================
   AWARD-WINNING POLISH
   ============================================ */

/* --- Marquee Strip --- */
.marquee {
  overflow: hidden;
  white-space: nowrap;
  padding: 1.8rem 0;
  border-top: 1px solid rgba(61, 216, 192, 0.06);
  border-bottom: 1px solid rgba(61, 216, 192, 0.06);
  background: var(--bg-secondary);
}

.marquee-track {
  display: inline-flex;
  animation: marqueeScroll 60s linear infinite;
}

.marquee-content {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
  color: var(--text-secondary);
  letter-spacing: 0.08em;
  padding-right: 0;
  opacity: 0.5;
}

@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

/* --- Gallery "50" Watermark --- */
.gallery-watermark {
  position: absolute;
  top: -0.15em;
  right: clamp(1rem, 5vw, 6rem);
  font-family: var(--font-display);
  font-size: clamp(12rem, 28vw, 26rem);
  font-weight: 400;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(61, 216, 192, 0.06);
  pointer-events: none;
  z-index: 0;
  user-select: none;
}

.gallery > .container {
  position: relative;
  z-index: 1;
}

/* --- Clip-Path Wipe Reveal for Gallery Items --- */
.gallery-item.reveal {
  clip-path: inset(100% 0 0 0);
  opacity: 1;
  transform: none;
  transition: clip-path 1s var(--ease-out-expo);
  transition-delay: calc(var(--stagger, 0) * 100ms);
}

.gallery-item.reveal.visible {
  clip-path: inset(0 0 0 0);
}

/* --- Bigger Section Breathing Room --- */
.statement { padding: clamp(8rem, 15vw, 14rem) 0; }
.process { padding: clamp(8rem, 15vw, 14rem) 0; }
.gallery { padding: clamp(8rem, 15vw, 14rem) 0; }
.mediums { padding: clamp(8rem, 15vw, 14rem) 0; }

/* --- Slower, More Luxurious Reveal Timings --- */
.reveal {
  transition-duration: 1.1s;
}

.reveal-left, .reveal-right {
  transition-duration: 1.1s;
}

.reveal-scale {
  transition-duration: 1.4s;
}

/* --- Hero Title Margin/Spacing for Impact --- */
.hero-title {
  margin-bottom: 2rem;
}

.hero-label {
  margin-bottom: 2rem;
  font-size: 0.8rem;
  letter-spacing: 0.4em;
}

.hero-tagline {
  margin-bottom: 3.5rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Process Steps Vertical Timeline --- */
.process-steps {
  position: relative;
}

.process-steps::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(61, 216, 192, 0.15), transparent);
  transform: translateX(-50%);
}

@media (max-width: 768px) {
  .process-steps::before { display: none; }
}

/* --- Medium Card Hover — More Dramatic --- */
.medium-card:hover {
  border-color: var(--accent);
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(61, 216, 192, 0.1), 0 0 0 1px rgba(61, 216, 192, 0.1);
}

/* --- Gallery Overlay — Cinematic Gradient --- */
.gallery-overlay {
  background: linear-gradient(
    180deg,
    transparent 20%,
    rgba(10, 13, 18, 0.3) 50%,
    rgba(10, 13, 18, 0.92) 100%
  );
}

/* --- Stat Numbers — Bigger on Desktop --- */
@media (min-width: 900px) {
  .stat-number {
    font-size: 3.5rem;
  }
}

/* --- Commission Coord Display — Animated Border --- */
.coord-display {
  position: relative;
  overflow: hidden;
}

.coord-display::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 4px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(61, 216, 192, 0.3), transparent 40%, transparent 60%, rgba(212, 149, 107, 0.3));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

/* --- Footer — More Breathing Room --- */
.footer {
  padding: 6rem 0 2rem;
}

/* --- Lightbox Image — Subtle Glow --- */
.lightbox-img {
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.6);
}

/* --- Gallery Filter Active — More Visible --- */
.gallery-filter.active {
  box-shadow: 0 4px 20px rgba(61, 216, 192, 0.2);
}

/* --- Small Phone Marquee --- */
@media (max-width: 400px) {
  .marquee { padding: 1.2rem 0; }
  .marquee-content { font-size: 0.8rem; }
  .gallery-watermark { font-size: 10rem; }
}


/* ============================================
   HORIZONTAL SHOWCASE
   ============================================ */

.showcase {
  height: 350vh;
  position: relative;
}

.showcase-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--bg-primary);
}

.showcase-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem clamp(1.5rem, 4vw, 4rem);
  padding-top: max(2rem, calc(env(safe-area-inset-top) + 5rem));
  flex-shrink: 0;
}

.showcase-hint {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-secondary);
  opacity: 0.5;
}

.showcase-track {
  display: flex;
  gap: clamp(1.5rem, 3vw, 3rem);
  padding: 0 clamp(1.5rem, 4vw, 4rem);
  flex: 1;
  align-items: stretch;
  will-change: transform;
}

.showcase-item {
  flex: 0 0 clamp(300px, 65vw, 800px);
  display: flex;
  flex-direction: column;
  position: relative;
}

.showcase-img {
  flex: 1;
  background-size: cover;
  background-position: center;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  min-height: 0;
}

.showcase-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(10, 13, 18, 0.7) 100%);
}

.showcase-info {
  padding: 1.5rem 0.5rem 0;
  flex-shrink: 0;
}

.showcase-num {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  opacity: 0.6;
  display: block;
  margin-bottom: 0.5rem;
}

.showcase-info h3 {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 400;
  margin-bottom: 0.2rem;
}

.showcase-info p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
}

.showcase-coord {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  color: var(--accent);
  opacity: 0.5;
}

.showcase-progress {
  height: 2px;
  background: rgba(61, 216, 192, 0.08);
  margin: 0 clamp(1.5rem, 4vw, 4rem);
  margin-bottom: 2rem;
  flex-shrink: 0;
  border-radius: 1px;
  overflow: hidden;
}

.showcase-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-warm));
  border-radius: 1px;
  transition: width 0.05s linear;
}

/* Showcase mobile: stack vertically, no horizontal scroll trick */
@media (max-width: 768px) {
  .showcase {
    height: auto;
  }

  .showcase-sticky {
    position: relative;
    height: auto;
    padding-bottom: 2rem;
  }

  .showcase-track {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding-bottom: 1rem;
  }

  .showcase-track::-webkit-scrollbar { display: none; }

  .showcase-item {
    flex: 0 0 85vw;
    scroll-snap-align: start;
  }

  .showcase-img {
    min-height: 50vh;
  }

  .showcase-progress { display: none; }
  .showcase-hint { display: none; }
}


/* ============================================
   FULL-BLEED IMAGE BREAK
   ============================================ */

.image-break {
  position: relative;
  height: 70vh;
  min-height: 400px;
  max-height: 700px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-break-bg {
  position: absolute;
  inset: -15%;
  background-image: url('https://images.unsplash.com/photo-1433086966358-54859d0ed716?auto=format&fit=crop&w=1920&q=80');
  background-size: cover;
  background-position: center;
  will-change: transform;
}

.image-break-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 13, 18, 0.45);
}

.image-break-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 2rem;
}

.image-break-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.6rem, 4vw, 3rem);
  color: var(--text-primary);
  max-width: 700px;
  line-height: 1.4;
  position: relative;
}

.image-break-open,
.image-break-close {
  color: var(--accent);
  opacity: 0.6;
  font-size: 1.3em;
}

.image-break-open {
  position: absolute;
  left: -0.6em;
  top: -0.1em;
}


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

.footer {
  position: relative;
  overflow: hidden;
}

.footer-brand-mark {
  font-family: var(--font-display);
  font-size: clamp(6rem, 15vw, 14rem);
  letter-spacing: 0.05em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(61, 216, 192, 0.04);
  text-align: center;
  line-height: 0.8;
  margin-bottom: -2rem;
  user-select: none;
  pointer-events: none;
}

.footer-top-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  transition: color 0.3s;
}

.footer-top-link:hover { color: var(--accent); }

.footer-top-link svg {
  transition: transform 0.3s var(--ease-out-expo);
}

.footer-top-link:hover svg {
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
}


/* ============================================
   HERO SCROLL-AWAY EFFECT
   ============================================ */

.hero-content {
  will-change: transform, opacity;
}


/* ============================================
   AMBIENT MOUSE GLOW (HERO)
   ============================================ */

.hero-glow {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1s ease;
  background: radial-gradient(
    600px circle at var(--glow-x, 50%) var(--glow-y, 50%),
    rgba(212, 149, 107, 0.08),
    rgba(61, 216, 192, 0.03) 40%,
    transparent 70%
  );
}

.hero:hover .hero-glow { opacity: 1; }


/* ============================================
   GALLERY SPOTLIGHT EFFECT
   ============================================ */

.gallery-grid:hover .gallery-item {
  opacity: 0.35;
  transition: opacity 0.4s ease, transform 0.5s var(--ease-out-expo), clip-path 1s var(--ease-out-expo);
}

.gallery-grid:hover .gallery-item:hover {
  opacity: 1;
  transform: scale(1.02);
  z-index: 2;
}

.gallery-grid:hover .gallery-item.reveal:not(.visible) {
  opacity: 0;
}


/* ============================================
   COMPARISON SCANLINES (BEFORE SIDE)
   ============================================ */

.comparison-before .comparison-img-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(0, 0, 0, 0.08) 2px,
      rgba(0, 0, 0, 0.08) 4px
    );
  mix-blend-mode: multiply;
}

/* Subtle vignette on before side */
.comparison-before .comparison-img-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 50%, rgba(0, 0, 0, 0.3) 100%);
}

/* Glow edge on the after side (where the slider meets) */
.comparison-after .comparison-img-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  z-index: 5;
  pointer-events: none;
  background: var(--accent);
  opacity: 0;
  box-shadow: 0 0 20px rgba(61, 216, 192, 0.4), 0 0 60px rgba(61, 216, 192, 0.1);
  transition: opacity 0.3s;
}

.comparison-container:hover .comparison-after .comparison-img-wrapper::after,
.comparison-container.dragging .comparison-after .comparison-img-wrapper::after {
  opacity: 0.5;
}


/* ============================================
   COORDINATE CYCLING ANIMATION
   ============================================ */

.coord-value, .coord-name {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.coord-value.switching, .coord-name.switching {
  opacity: 0;
  transform: translateY(-8px);
}


/* ============================================
   SHOWCASE ITEM DEPTH SCALING
   ============================================ */

.showcase-item {
  transition: transform 0.6s var(--ease-out-expo), opacity 0.6s ease;
}

.showcase-img {
  transition: transform 0.6s var(--ease-out-expo);
}

.showcase-item:hover .showcase-img {
  transform: scale(1.03);
}


/* ============================================
   MISC REFINEMENTS
   ============================================ */

/* Medium card material hints */
.medium-card:nth-child(1):hover {
  background: linear-gradient(135deg, rgba(61, 216, 192, 0.03), rgba(200, 200, 220, 0.04));
}

.medium-card:nth-child(2):hover {
  background: linear-gradient(135deg, rgba(212, 149, 107, 0.04), rgba(180, 160, 130, 0.03));
}

.medium-card:nth-child(3):hover {
  background: linear-gradient(135deg, rgba(61, 216, 192, 0.04), rgba(100, 180, 255, 0.03));
}

.medium-card:nth-child(4):hover {
  background: linear-gradient(135deg, rgba(212, 149, 107, 0.03), rgba(61, 216, 192, 0.02));
}

/* Nav link hover — subtle glow text */
.nav-link:hover {
  text-shadow: 0 0 20px rgba(61, 216, 192, 0.15);
}

/* CTA buttons — subtle inner glow on hover */
.hero-cta:hover,
.btn-outline:hover {
  text-shadow: 0 0 15px rgba(61, 216, 192, 0.3);
}

.btn-primary:hover {
  text-shadow: 0 0 15px rgba(10, 13, 18, 0.3);
}

/* Gallery name on hover — accent underline */
.gallery-overlay .gallery-name {
  display: inline;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-size: 0% 1px;
  background-position: left bottom;
  background-repeat: no-repeat;
  transition: background-size 0.6s var(--ease-out-expo);
  padding-bottom: 2px;
}

.gallery-item:hover .gallery-overlay .gallery-name {
  background-size: 100% 1px;
}

/* Lightbox — entrance animation */
.lightbox-img {
  transition: opacity 0.4s ease, transform 0.5s var(--ease-out-expo);
}

.lightbox.open .lightbox-img {
  animation: lightboxEnter 0.5s var(--ease-out-expo);
}

@keyframes lightboxEnter {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

/* Lightbox info slide up */
.lightbox-info {
  transition: opacity 0.5s ease 0.15s, transform 0.5s var(--ease-out-expo) 0.15s;
}

.lightbox.open .lightbox-info {
  animation: lightboxInfoEnter 0.6s var(--ease-out-expo) 0.2s both;
}

@keyframes lightboxInfoEnter {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Process step hover — number color shift */
.process-step:hover .process-step-num {
  color: var(--accent);
  transition: color 0.4s ease;
}

/* Statement first letter drop cap feel */
.statement-text:first-of-type::first-letter {
  font-family: var(--font-display);
  font-size: 3.5em;
  float: left;
  line-height: 0.8;
  margin-right: 0.08em;
  margin-top: 0.05em;
  color: var(--accent);
}
