/* ============================================
   SEMRAD AUDIO - OPTION 5
   Elegant editorial design with warm tones
   ============================================ */

:root {
  --gold: #cdb48e;
  --gold-light: #dcc9a8;
  --gold-dark: #a8915e;
  --cream: #f5f0e8;
  --cream-dark: #e8dfcf;
  --charcoal: #1a1714;
  --charcoal-light: #2a2520;
  --brown-dark: #0e0c0a;
  --text-primary: #f5f0e8;
  --text-muted: rgba(245, 240, 232, 0.6);
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Jost', 'Helvetica Neue', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Firefox: subtle warm thumb on track that matches page bg */
  scrollbar-width: thin;
  scrollbar-color: rgba(205, 180, 142, 0.18) transparent;
}

body {
  font-family: var(--font-body);
  background: var(--brown-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ====== SCROLLBAR (WebKit) ====== */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(205, 180, 142, 0.16);
  border: 2px solid transparent;
  background-clip: padding-box;
  border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(205, 180, 142, 0.3);
  background-clip: padding-box;
}
::-webkit-scrollbar-thumb:active {
  background: rgba(205, 180, 142, 0.45);
  background-clip: padding-box;
}
::-webkit-scrollbar-corner {
  background: transparent;
}

/* ====== REVEAL ANIMATIONS ====== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.3s; }
.reveal-delay-3 { transition-delay: 0.45s; }

/* ====== HERO ====== */
.hero {
  position: relative;
  height: auto;
  aspect-ratio: 3104 / 1376;
  max-height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image-wrapper {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  will-change: transform;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(14, 12, 10, 0.3) 0%,
    rgba(14, 12, 10, 0.15) 40%,
    rgba(14, 12, 10, 0.5) 80%,
    rgba(14, 12, 10, 0.85) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  will-change: opacity;
}

.hero-logo {
  width: clamp(60px, 6vw + 24px, 140px);
  height: auto;
  filter: brightness(1.1) drop-shadow(0 2px 20px rgba(0,0,0,0.4));
  margin-bottom: clamp(1rem, 1.5vw, 2rem);
}

.hero-divider {
  width: clamp(40px, 3vw + 16px, 60px);
  height: 1px;
  background: var(--gold);
  margin: 0 auto clamp(1rem, 1.5vw, 2rem);
  opacity: 0.7;
}

.hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 0.7vw + 0.85rem, 1.6rem);
  font-weight: 300;
  letter-spacing: 0.15em;
  color: var(--cream);
  text-shadow: 0 2px 15px rgba(0,0,0,0.5);
  line-height: 1.5;
}

.hero-tagline span {
  font-style: italic;
  font-size: clamp(0.85rem, 0.3vw + 0.78rem, 1.1rem);
  letter-spacing: 0.2em;
  opacity: 0.8;
}

.scroll-indicator {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.scroll-indicator span {
  font-family: var(--font-body);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-light);
  opacity: 0.6;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
  margin: 0 auto 1.75rem;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50% { opacity: 0.8; transform: scaleY(1); }
}

/* ====== STATEMENT ====== */
.statement {
  background: var(--brown-dark);
  border-top: 1px solid rgba(205, 180, 142, 0.08);
  border-bottom: 1px solid rgba(205, 180, 142, 0.08);
}

.section.statement {
  padding-top: 3rem;
  padding-bottom: 4rem;
}

.section.vision {
  padding-top: 4rem;
}

.statement-inner {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.statement-inner p {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.8vw, 1.3rem);
  font-weight: 300;
  font-style: italic;
  line-height: 2;
  color: #ffffff;
  letter-spacing: 0.015em;
}

/* ====== SECTIONS ====== */
.section {
  padding: 8rem 2rem;
  scroll-margin-top: 5rem;
}

.section-label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 300;
  line-height: 1.15;
  color: var(--cream);
  letter-spacing: 0.02em;
}

.section-heading.centered { text-align: center; }

.heading-rule {
  width: 50px;
  height: 1px;
  background: var(--gold);
  margin: 2rem 0;
  opacity: 0.5;
}
.heading-rule.centered { margin: 2rem auto; }

.body-text {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.85;
  color: #ffffff;
  max-width: 540px;
  margin-bottom: 1.25rem;
}

/* ====== PARALLAX DIVIDERS ====== */
.parallax-divider {
  position: relative;
  height: 50vh;
  min-height: 350px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.parallax-divider.tall {
  height: 60vh;
  min-height: 420px;
}

.parallax-bg {
  position: absolute;
  inset: -20%;
  overflow: hidden;
}

.parallax-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
}

.parallax-darken {
  position: absolute;
  inset: 0;
  background: rgba(14, 12, 10, 0.55);
}

.parallax-quote-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 0 2rem;
}

.quote-text {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.7;
  color: #ffffff;
  letter-spacing: 0.02em;
  text-wrap: balance;
}

.quote-cite {
  margin-top: 1.5rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(245, 240, 232, 0.65);
}

.quote-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.85rem;
  width: 14px;
  height: 14px;
  color: var(--gold);
  transition: color 0.3s ease, transform 0.3s ease;
}

.quote-link svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.quote-link:hover {
  color: var(--cream);
  transform: translateY(-1px);
}

/* ====== VISION SECTION ====== */
.vision {
  background: var(--brown-dark);
}

.vision-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 4rem;
  align-items: center;
}

.vision-image {
  position: relative;
  overflow: hidden;
  order: -1;
  align-self: start;
  margin-top: 2.6rem;
}

.vision-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 1626 / 1176;
  object-fit: cover;
  display: block;
  filter: brightness(0.95);
}

.vision-image::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(205, 180, 142, 0.1);
  pointer-events: none;
}

.vision .section-heading {
  font-size: clamp(1.7rem, 2.8vw, 2.5rem);
}

.vision .body-text {
  font-size: 0.95rem;
  line-height: 1.75;
}

/* ====== SPECS SECTION ====== */
.specs {
  background: var(--charcoal);
}

.specs-inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  margin-top: 4rem;
}

.spec-card {
  text-align: left;
  padding: 2.5rem;
  border: 1px solid rgba(205, 180, 142, 0.1);
  background: rgba(205, 180, 142, 0.03);
  transition: border-color 0.4s, background 0.4s;
}

.spec-card:hover {
  border-color: rgba(205, 180, 142, 0.25);
  background: rgba(205, 180, 142, 0.06);
}

.spec-number {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 300;
  color: var(--gold);
  opacity: 0.5;
  margin-bottom: 1.25rem;
}

.spec-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--cream);
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}

.spec-card p {
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.8;
  color: #ffffff;
}

/* ====== GALLERY ====== */
.gallery {
  background: var(--brown-dark);
}

.gallery-inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.gallery-mosaic {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 260px;
  gap: 1rem;
  margin-top: 4rem;
}

.mosaic-item {
  overflow: hidden;
  cursor: pointer;
  position: relative;
}

.mosaic-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              filter 0.7s ease;
  filter: brightness(0.88);
}

.mosaic-item:hover img {
  transform: scale(1.06);
  filter: brightness(1);
}

.mosaic-item::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(205, 180, 142, 0.08);
  pointer-events: none;
  transition: border-color 0.4s;
}

.mosaic-item:hover::after {
  border-color: rgba(205, 180, 142, 0.25);
}

.mosaic-tall {
  grid-row: span 2;
}

.mosaic-wide {
  grid-column: span 3;
  height: 320px;
}

.mosaic-wide img {
  object-position: center 40%;
}

/* ====== CONFIGURATOR / BUILD ====== */
.build {
  background: var(--charcoal);
}

.build .body-text {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.build .body-text.centered { text-align: center; }

.build-inner {
  max-width: 1280px;
  margin: 0 auto;
  text-align: center;
}

.build-stage-wrap {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 4rem;
  margin-top: 4.5rem;
  align-items: center;
  text-align: left;
}

.build-stage {
  position: relative;
  aspect-ratio: 4 / 5;
  background: radial-gradient(ellipse at 50% 35%, #ffffff 0%, #f3ebd9 55%, #ddd0b3 100%);
  overflow: hidden;
  border: 1px solid rgba(205, 180, 142, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    0 40px 80px -20px rgba(0, 0, 0, 0.6);
  cursor: crosshair;
}

.build-stage-inner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform-style: preserve-3d;
  will-change: transform;
}

.build-speaker {
  position: absolute;
  max-width: 88%;
  max-height: 96%;
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.7s ease;
  pointer-events: none;
  mix-blend-mode: multiply;
}

.build-speaker.visible {
  opacity: 1;
}

.build-floor-shadow {
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: 6%;
  height: 24px;
  background: radial-gradient(ellipse at center, rgba(26, 23, 20, 0.28) 0%, transparent 70%);
  filter: blur(6px);
  pointer-events: none;
}

.build-meta {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.build-eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.build-name {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 2.8vw, 2.4rem);
  font-weight: 400;
  color: var(--cream);
  line-height: 1.1;
  letter-spacing: 0.01em;
  min-height: 2.6rem;
}

.build-desc {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.8;
  color: rgba(245, 240, 232, 0.72);
  margin-top: 1rem;
  max-width: 480px;
}

.build-swatches {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.build-swatch {
  position: relative;
  aspect-ratio: 1 / 1;
  border: 1px solid rgba(205, 180, 142, 0.18);
  background-size: cover;
  background-position: center;
  cursor: pointer;
  padding: 0;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  outline: none;
}

.build-swatch::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px solid transparent;
  transition: border-color 0.3s ease;
  pointer-events: none;
}

.build-swatch:hover {
  transform: translateY(-2px);
  border-color: rgba(205, 180, 142, 0.5);
  box-shadow: 0 8px 18px -10px rgba(0, 0, 0, 0.6);
}

.build-swatch.active {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px var(--gold), 0 10px 24px -10px rgba(0, 0, 0, 0.7);
  transform: translateY(-2px);
}

.build-swatch.active::after {
  inset: 4px;
  border-color: rgba(245, 240, 232, 0.5);
}

.build-swatch-name { display: none; }

.build-finish {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(205, 180, 142, 0.15);
  max-height: 0;
  padding-top: 0;
  margin-top: 0;
  border-top-color: transparent;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.5s ease, opacity 0.4s ease, padding-top 0.5s ease, border-top-color 0.4s ease;
}

.build-finish.available {
  max-height: 320px;
  opacity: 1;
  padding-top: 1.5rem;
  border-top-color: rgba(205, 180, 142, 0.15);
}

.build-finish-toggle {
  display: inline-flex;
  align-self: flex-start;
  border: 1px solid rgba(205, 180, 142, 0.25);
  background: rgba(245, 240, 232, 0.04);
  padding: 3px;
}

.build-finish-btn {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.7rem 1.4rem;
  background: transparent;
  border: none;
  color: rgba(245, 240, 232, 0.55);
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
  white-space: nowrap;
}

.build-finish-btn:hover {
  color: var(--cream);
}

.build-finish-btn.active {
  background: var(--gold);
  color: var(--charcoal);
}

.build-finish-btn.active[data-finish="piano-black"] {
  background: #0a0807;
  color: var(--cream);
  box-shadow: inset 0 0 0 1px rgba(205, 180, 142, 0.3);
}

.build-finish-note {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 300;
  line-height: 1.65;
  color: rgba(245, 240, 232, 0.55);
  max-width: 460px;
  font-style: italic;
}

.build-stage-placeholder {
  position: absolute;
  inset: 8% 12%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-align: center;
  background: rgba(245, 240, 232, 0.94);
  backdrop-filter: blur(2px);
  border: 1px solid rgba(168, 145, 94, 0.3);
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  z-index: 2;
  color: var(--charcoal);
}

.build-stage-placeholder.visible {
  opacity: 1;
}

.build-stage-placeholder p {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(26, 23, 20, 0.7);
  max-width: 320px;
}

.build-hint {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245, 240, 232, 0.4);
  margin-top: 0.5rem;
}

@media (max-width: 900px) {
  .build-stage-wrap {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .build-stage { aspect-ratio: 1 / 1; }
  .build-meta { text-align: center; align-items: center; }
  .build-desc { margin-left: auto; margin-right: auto; }
  .build-swatches { width: 100%; max-width: 360px; }
}

/* ====== BESPOKE COMMISSIONS ====== */
.commissions {
  background: var(--charcoal);
}

/* shared gradient borders for the customization pair */
.build,
.commissions {
  position: relative;
}

.build::before,
.build::after,
.commissions::before,
.commissions::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent 0%,
    rgba(205, 180, 142, 0.15) 15%,
    var(--gold) 50%,
    rgba(205, 180, 142, 0.15) 85%,
    transparent 100%
  );
  pointer-events: none;
}

.build::before,
.commissions::before { top: 0; }

.build::after,
.commissions::after { bottom: 0; }

.commissions-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.commissions-image {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.commissions-stage {
  position: relative;
  background: radial-gradient(ellipse at 50% 35%, #ffffff 0%, #f3ebd9 55%, #ddd0b3 100%);
  padding: 2rem 1.5rem;
  border: 1px solid rgba(205, 180, 142, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    0 40px 80px -20px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}

.commissions-stage::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center 80%, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, 0.08) 100%);
}

.commissions-stage img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 620px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.commissions-caption {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-style: italic;
  font-weight: 300;
  line-height: 1.55;
  color: rgba(245, 240, 232, 0.55);
  letter-spacing: 0.015em;
  text-align: center;
  max-width: 360px;
  margin: 0 auto;
}

.commissions-text {
  padding-right: 1rem;
}

@media (max-width: 900px) {
  .commissions-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .commissions-text {
    padding-right: 0;
  }
  .commissions-stage img {
    max-height: 480px;
  }
}

/* ====== PRESS ====== */
.press {
  background: var(--brown-dark);
}

.press-inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.press-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  margin-top: 4.5rem;
  text-align: left;
}

.press-card {
  position: relative;
  padding: 0 1rem;
  display: flex;
  flex-direction: column;
}

.press-quote-mark {
  font-family: var(--font-display);
  font-size: 4.5rem;
  line-height: 0.6;
  color: var(--gold);
  opacity: 0.55;
  margin-bottom: 1.25rem;
  user-select: none;
}

.press-quote {
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.35vw, 1.15rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.7;
  color: #ffffff;
  margin: 0 0 2rem;
  flex-grow: 1;
}

.press-attribution {
  border-top: 1px solid rgba(205, 180, 142, 0.2);
  padding-top: 1.1rem;
}

.press-author {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
}

@media (max-width: 900px) {
  .press-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    margin-top: 3rem;
  }
}

/* ====== CONTACT ====== */
.contact {
  background: var(--charcoal);
}

.contact-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.contact-logo {
  width: 60px;
  height: auto;
  filter: brightness(1.1);
  margin-bottom: 2rem;
  opacity: 0.7;
}

.contact-details {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-details a {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--gold-light);
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: color 0.3s;
}

.contact-details a:hover { color: var(--cream); }

.social-links {
  display: flex;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.social-links a {
  color: var(--gold);
  opacity: 0.5;
  transition: opacity 0.3s;
}

.social-links a:hover { opacity: 1; }

/* ====== CONTACT FORM ====== */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.form-group {
  position: relative;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem 0 0.75rem;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(205, 180, 142, 0.2);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 300;
  outline: none;
  transition: border-color 0.3s;
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-group input:focus,
.form-group textarea:focus {
  border-bottom-color: var(--gold);
}

.form-group label {
  position: absolute;
  left: 0;
  top: 1rem;
  font-size: 0.85rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  pointer-events: none;
  transition: all 0.3s ease;
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {
  top: -0.5rem;
  font-size: 0.65rem;
  color: var(--gold);
}

.form-submit {
  align-self: flex-start;
  padding: 0.9rem 2.5rem;
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.4s ease;
  margin-top: 0.5rem;
}

.form-submit:hover {
  background: var(--gold);
  color: var(--brown-dark);
}

.form-submit:disabled {
  opacity: 0.5;
  cursor: default;
}

/* ====== FOOTER ====== */
.site-footer {
  padding: 4rem 2rem;
  text-align: center;
  background: var(--brown-dark);
  border-top: 1px solid rgba(205, 180, 142, 0.08);
}

.footer-inner {
  max-width: 800px;
  margin: 0 auto;
}

.footer-logo {
  width: 80px;
  height: auto;
  filter: brightness(0.8);
  opacity: 0.5;
  margin-bottom: 1.5rem;
}

.footer-copy {
  font-size: 0.75rem;
  font-weight: 300;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

.footer-tagline {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-style: italic;
  color: rgba(205, 180, 142, 0.4);
  margin-top: 0.5rem;
}

/* ====== FLOATING NAV ====== */
.floating-nav {
  position: fixed;
  top: 2rem;
  right: 2rem;
  z-index: 100;
  display: flex;
  gap: 1.5rem;
  padding: 0.75rem 1.5rem;
  background: rgba(14, 12, 10, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(205, 180, 142, 0.1);
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: opacity 0.4s, transform 0.4s;
}

.floating-nav.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.floating-nav a {
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-light);
  text-decoration: none;
  opacity: 0.6;
  transition: opacity 0.3s;
}

.floating-nav a:hover { opacity: 1; }

/* ====== LIGHTBOX ====== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
  cursor: pointer;
}

.lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-img {
  max-width: 90%;
  max-height: 85vh;
  object-fit: contain;
  border: 1px solid rgba(205, 180, 142, 0.1);
}

.lightbox-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: none;
  border: none;
  color: var(--cream);
  font-size: 2rem;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.3s;
  line-height: 1;
}

.lightbox-close:hover { opacity: 1; }

/* ====== RESPONSIVE ====== */
@media (max-width: 900px) {
  .vision-inner,
  .contact-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .vision-image { order: 0; margin-top: 0; margin-bottom: 0; }

  .vision-image img {
    height: 400px;
  }

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

  .gallery-mosaic {
    grid-template-columns: 1fr 1fr;
  }

  .mosaic-tall { grid-row: span 1; }
  .mosaic-wide {
    grid-column: span 2;
    height: 250px;
  }

  .floating-nav {
    top: auto;
    bottom: 1rem;
    right: 50%;
    transform: translateX(50%) translateY(10px);
  }

  .floating-nav.visible {
    transform: translateX(50%) translateY(0);
  }

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

@media (max-width: 600px) {
  .section { padding: 5rem 1.5rem; }

  .gallery-mosaic {
    grid-template-columns: 1fr;
  }

  .mosaic-wide {
    grid-column: span 1;
    height: 200px;
  }

  .hero-logo { width: 90px; }

  .contact-inner { gap: 2rem; }
}

/* ====================================================
   GALLERY PAGE  (gallery.html)
   ==================================================== */
.gallery-page {
  background: var(--brown-dark);
  min-height: 100vh;
}

.page-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(1.25rem, 1.8vw + 0.5rem, 2.25rem) clamp(1.5rem, 2vw + 0.5rem, 2.75rem);
  background: transparent;
  border-bottom: none;
  pointer-events: none;
}

.page-header > * {
  pointer-events: auto;
}

.page-header-home img {
  height: clamp(22px, 1.6vw + 0.5rem, 36px);
  width: auto;
  display: block;
  filter: brightness(1.05) drop-shadow(0 2px 12px rgba(0, 0, 0, 0.5));
}

.page-header-nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  padding: 0.75rem 1.5rem;
  background: rgba(14, 12, 10, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(205, 180, 142, 0.1);
}

.page-header-nav a {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-light);
  text-decoration: none;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.page-header-nav a:hover {
  opacity: 1;
}

.page-header-back {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  transition: color 0.3s ease;
  display: none;
}

.page-header-back:hover { color: var(--cream); }

/* ====== MOBILE MENU TOGGLE (HAMBURGER) ====== */
.page-header-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  background: rgba(14, 12, 10, 0.85);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(205, 180, 142, 0.18);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  transition: border-color 0.3s ease, background 0.3s ease;
  z-index: 60;
}

.page-header-toggle:hover {
  border-color: rgba(205, 180, 142, 0.45);
}

.page-header-toggle-bar {
  display: block;
  width: 18px;
  height: 1px;
  background: var(--gold-light);
  transition: transform 0.35s ease, opacity 0.25s ease;
}

.page-header.is-open .page-header-toggle-bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.page-header.is-open .page-header-toggle-bar:nth-child(2) {
  opacity: 0;
}
.page-header.is-open .page-header-toggle-bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.gallery-page-intro {
  padding-top: 6rem;
  padding-bottom: 2rem;
}

.gallery-page-intro-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.gallery-page-lede {
  margin: 2.25rem auto 0;
  max-width: 560px;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.7;
  color: rgba(245, 240, 232, 0.7);
}

.gallery-page-grid {
  padding-top: 2rem;
  padding-bottom: 6rem;
}

.gallery-page-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 5rem;
}

.gallery-figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.gallery-figure-frame {
  width: 100%;
  border: 1px solid rgba(205, 180, 142, 0.18);
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.65);
  overflow: hidden;
}

.gallery-figure-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.gallery-figure-caption {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-style: italic;
  font-weight: 300;
  line-height: 1.6;
  color: rgba(245, 240, 232, 0.6);
  letter-spacing: 0.015em;
  max-width: 560px;
  text-align: center;
}

.gallery-page-footer {
  padding: 4rem 2rem 6rem;
  text-align: center;
  border-top: 1px solid rgba(205, 180, 142, 0.08);
}

.gallery-page-footer-link {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  transition: color 0.3s ease;
}

.gallery-page-footer-link:hover { color: var(--cream); }

/* Hamburger triggers early so the inline nav pill never crowds the hero monogram */
@media (max-width: 900px) {
  .page-header-toggle { display: flex; }

  /* Inline nav pill becomes a fullscreen drawer */
  .page-header-nav {
    position: fixed;
    inset: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.75rem;
    padding: 5rem 1.5rem 3rem;
    background: rgba(10, 8, 7, 0.96);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: none;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    z-index: 55;
  }
  .page-header.is-open .page-header-nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
  .page-header-nav a {
    font-size: 0.85rem;
    letter-spacing: 0.32em;
    opacity: 0.85;
    padding: 0.5rem 0;
  }
  .page-header-nav a:hover { opacity: 1; }

  /* Drawer subsumes the gallery "back" link */
  .gallery-page .page-header-back { display: none; }
}

@media (max-width: 700px) {
  .page-header { padding: 1rem 1.25rem; }
  .gallery-page-intro { padding-top: 4rem; }
  .gallery-page-inner { gap: 3.5rem; }
}

/* ====== HERO: stack image + content at narrow widths ====== */
@media (max-width: 700px) {
  .hero {
    flex-direction: column;
    aspect-ratio: auto;
    height: auto;
    max-height: none;
    overflow: visible;
  }
  .hero-image-wrapper {
    position: relative;
    inset: auto;
    width: 100%;
    aspect-ratio: 3104 / 1376;
    flex-shrink: 0;
  }
  .hero-overlay { display: none; }
  .hero-content {
    width: 100%;
    padding: 3rem 1.5rem 2.5rem;
    background: var(--brown-dark);
  }
  .scroll-indicator {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    margin: 1.5rem auto 0;
  }
  /* Disable the JS parallax for stacked hero so the image doesn't drift */
  .hero-image { transform: none !important; }
  .hero-content { opacity: 1 !important; }
}
