/* AM DENT CO — premium scrollytelling */

:root {
  --bg: #060605;
  --bg-elevated: #0e0e0c;
  --fg: #e8e6e1;
  --fg-muted: rgba(232, 230, 225, 0.55);
  --accent: #c9a87c;
  --accent-soft: rgba(201, 168, 124, 0.15);
  --line: rgba(232, 230, 225, 0.08);
  --font-display: "Syne", system-ui, sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 4rem;
}

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

html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-scrolling iframe {
  pointer-events: none;
}

html {
  scroll-behavior: auto;
}

section[id] {
  scroll-margin-top: 5rem;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1rem, 0.95rem + 0.2vw, 1.0625rem);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

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

/* Film grain */
.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  opacity: 0.04;
  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.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem clamp(1.25rem, 4vw, 3rem);
  mix-blend-mode: difference;
  color: #fff;
}

.logo {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
}

.nav {
  display: none;
  gap: 2rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

@media (min-width: 768px) {
  .nav {
    display: flex;
  }
}

.nav a {
  opacity: 0.85;
}

.nav a:hover {
  opacity: 1;
}

.header-cta {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.6rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
}

.header-cta:hover {
  background: #fff;
  color: #000;
  border-color: #fff;
}

/* Mobile nav */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  cursor: pointer;
  align-items: center;
}

.nav-toggle span {
  display: block;
  width: 1rem;
  height: 1.5px;
  background: #fff;
  transition: transform 0.3s var(--ease-out), opacity 0.3s var(--ease-out);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

@media (max-width: 767px) {
  .nav-toggle {
    display: flex;
  }
  .header-cta {
    display: none;
  }
}

.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 95;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  background: rgba(6, 6, 5, 0.97);
  backdrop-filter: blur(14px);
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 6vw, 2.5rem);
  letter-spacing: -0.01em;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease-out);
}

.mobile-nav[hidden] {
  display: flex;
}

.mobile-nav.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav a {
  color: var(--fg);
}

.mobile-nav a:hover,
.mobile-nav a:focus-visible {
  color: var(--accent);
}

.mobile-nav-cta {
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.9rem 1.75rem;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--accent);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--header-h) + 2rem) clamp(1.25rem, 4vw, 3rem) 3rem;
  overflow: hidden;
}

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

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  will-change: transform;
}

.hero-media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(6, 6, 5, 0.35) 0%,
    rgba(6, 6, 5, 0.5) 35%,
    rgba(6, 6, 5, 0.92) 100%
  );
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 56rem;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1.25rem;
}

.hero-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.75rem, 8vw, 5.5rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 1.5rem;
}

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

.hero-title-accent {
  font-style: italic;
  color: var(--fg);
  background: linear-gradient(135deg, #f0ebe3 0%, var(--accent) 55%, #e8e6e1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lede {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  color: var(--fg-muted);
  max-width: 32rem;
  margin: 0 0 2rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin: 0 0 3rem;
}

.btn-light {
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

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

.hero-scroll-hint {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(232, 230, 225, 0.4);
}

.hero-scroll-line {
  width: 3rem;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

/* Marquee */
.marquee-wrap {
  border-block: 1px solid var(--line);
  background: var(--bg-elevated);
  overflow: hidden;
  padding: 1rem 0;
}

.marquee {
  display: flex;
  flex-wrap: nowrap;
  gap: 2rem;
  width: max-content;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-muted);
  animation: marquee 32s linear infinite;
}

.marquee .dot {
  opacity: 0.35;
}

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

/* Panels */
.section-label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1rem;
}

.section-label.light {
  color: var(--accent);
}

.section-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 1.5rem;
}

.section-title em {
  font-style: italic;
  color: var(--accent);
}

.section-body {
  color: var(--fg-muted);
  max-width: 36rem;
  margin: 0;
  line-height: 1.75;
}

.panel-split {
  display: grid;
  gap: 3rem;
  padding: clamp(4rem, 12vw, 8rem) clamp(1.25rem, 4vw, 3rem);
  align-items: center;
}

@media (min-width: 900px) {
  .panel-split {
    grid-template-columns: 1fr 1.1fr;
    gap: 4rem;
  }
}

.panel-figure {
  margin: 0;
  border-radius: 0.25rem;
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 4/3;
}

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

/* Immersive */
.panel-immersive {
  position: relative;
  min-height: 90vh;
  min-height: 90dvh;
  display: flex;
  align-items: center;
  padding: clamp(4rem, 10vw, 7rem) clamp(1.25rem, 4vw, 3rem);
}

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

.immersive-bg .immersive-bg-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center;
  will-change: transform;
}

.immersive-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(6, 6, 5, 0.92) 0%, rgba(6, 6, 5, 0.45) 55%, rgba(6, 6, 5, 0.25) 100%);
}

.immersive-content {
  position: relative;
  z-index: 1;
  max-width: 38rem;
}

.immersive-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  margin: 0 0 1.25rem;
}

.immersive-body {
  color: rgba(232, 230, 225, 0.65);
  line-height: 1.75;
  margin: 0;
}

/* Horizontal */
.horizontal-section {
  position: relative;
  background: var(--bg);
}

.horizontal-pin {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(4rem, 10vw, 7rem) 0 2rem;
}

.horizontal-head {
  padding: 0 clamp(1.25rem, 4vw, 3rem) 2rem;
  max-width: 40rem;
}

.horizontal-title {
  margin-bottom: 0;
}

.horizontal-scroll {
  overflow: hidden;
  width: 100%;
  padding-bottom: 3rem;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.horizontal-track {
  display: flex;
  gap: 0;
  width: max-content;
  will-change: transform;
  animation: process-marquee 30s linear infinite;
}

.horizontal-set {
  display: flex;
  gap: 1.5rem;
  padding-right: 1.5rem;
}

.horizontal-set:first-child {
  padding-left: clamp(1.25rem, 4vw, 3rem);
}

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

.h-card {
  flex: 0 0 min(85vw, 22rem);
  padding: 2rem 1.75rem;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 0.25rem;
  transition: border-color 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}

.h-card:hover {
  border-color: rgba(201, 168, 124, 0.35);
  transform: translateY(-4px);
}

.h-num {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.15em;
  color: var(--accent);
  display: block;
  margin-bottom: 1rem;
}

.h-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}

.h-card p {
  margin: 0;
  color: var(--fg-muted);
  font-size: 0.9375rem;
  line-height: 1.65;
}

/* St. Louis */
.panel-stl {
  padding: clamp(4rem, 12vw, 8rem) clamp(1.25rem, 4vw, 3rem);
}

.stl-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 900px) {
  .stl-grid {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 4rem;
  }
}

.stl-figure {
  margin: 0;
  order: -1;
  border-radius: 0.25rem;
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 16/10;
}

@media (min-width: 900px) {
  .stl-figure {
    order: 0;
  }
}

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

.stl-figure--map {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--bg-elevated);
}

@media (min-width: 720px) {
  .stl-figure--map {
    aspect-ratio: 16/13;
  }
}

.stl-figure--map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(0.3) contrast(1.05) brightness(0.92);
}

.stl-figure-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    120% 80% at 50% 50%,
    transparent 60%,
    rgba(6, 6, 5, 0.35) 100%
  );
  mix-blend-mode: multiply;
}

.stl-figure-link {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 1rem;
  background: rgba(6, 6, 5, 0.85);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg);
  backdrop-filter: blur(8px);
  transition: border-color 0.3s var(--ease-out), color 0.3s var(--ease-out);
}

.stl-figure-link:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.stl-figure-arrow {
  transition: transform 0.3s var(--ease-out);
}

.stl-figure-link:hover .stl-figure-arrow {
  transform: translateX(3px);
}

.stl-address {
  margin: 2rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  line-height: 1.8;
  font-style: normal;
  color: var(--fg-muted);
}

.stl-address span {
  color: var(--fg);
}

/* Insurance */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.insurance {
  padding: clamp(4rem, 10vw, 7rem) 0 0;
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.insurance-intro {
  padding: 0 clamp(1.25rem, 4vw, 3rem) 2.5rem;
  max-width: 42rem;
}

.insurance-lede {
  margin-bottom: 0;
}

.insurance-scroll {
  overflow: hidden;
  width: 100%;
  padding: 2rem 0 3rem;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.insurance-strip {
  display: flex;
  flex-direction: row;
  width: max-content;
  gap: 0;
  will-change: transform;
  animation: insurance-marquee 18s linear infinite;
}

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

.insurance-logos {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: clamp(2rem, 6vw, 5rem);
  padding: 0 clamp(1rem, 3vw, 2rem);
}

.insurance-logo-img {
  height: clamp(2rem, 4vw, 2.75rem);
  width: auto;
  max-width: min(10rem, 28vw);
  object-fit: contain;
  object-position: center;
  opacity: 0.92;
  filter: grayscale(0.15) brightness(1.05);
}

/* Gallery */
.gallery {
  padding: clamp(4rem, 12vw, 8rem) clamp(1.25rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.gallery-inner {
  max-width: 72rem;
  margin: 0 auto;
}

.gallery-lede {
  max-width: 40rem;
  margin-bottom: 0;
}

.gallery-grid {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
  margin-top: 3rem;
}

@media (min-width: 640px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.gallery-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 0.25rem;
  overflow: hidden;
  background: var(--bg-elevated);
}

.gallery-shot {
  position: relative;
  aspect-ratio: 4 / 3;
  margin: 0;
  overflow: hidden;
}

.gallery-shot.is-empty {
  background: linear-gradient(145deg, var(--bg-elevated) 0%, #151513 100%);
  min-height: 10rem;
}

.gallery-shot.is-empty::after {
  content: "Add image to media/gallery/";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-muted);
  text-align: center;
  line-height: 1.5;
  pointer-events: none;
}

.gallery-zoom {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
  cursor: zoom-in;
}

.gallery-zoom img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-shot.is-empty .gallery-zoom {
  cursor: default;
}

.gallery-shot.is-empty .gallery-zoom img {
  display: none;
}

.gallery-tag {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.35rem 0.6rem;
  border-radius: 2px;
  background: rgba(6, 6, 5, 0.75);
  backdrop-filter: blur(6px);
}

.gallery-tag--after {
  color: var(--accent);
}

.gallery-live {
  margin-top: 2rem;
}

.gallery-live .gallery-pair {
  max-width: 40rem;
  margin-inline: auto;
}

.gallery-owner {
  margin-top: 3rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: 0.25rem;
  background: var(--bg-elevated);
}

.gallery-owner summary {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  color: var(--fg-muted);
}

.gallery-owner summary:hover {
  color: var(--accent);
}

.gallery-owner-body {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.gallery-owner-note {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  color: var(--fg-muted);
  line-height: 1.65;
}

.gallery-owner-note strong {
  color: var(--fg);
  font-weight: 600;
}

.gallery-path {
  font-family: var(--font-mono);
  font-size: 0.75em;
  color: var(--accent);
  word-break: break-all;
}

.gallery-upload-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-end;
}

.gallery-file-label {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.gallery-file-label input[type="file"] {
  max-width: 16rem;
  font-size: 0.8125rem;
}

.gallery-upload-btn {
  margin-top: 0.25rem;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: rgba(6, 6, 5, 0.92);
  backdrop-filter: blur(8px);
}

.lightbox[hidden] {
  display: none;
}

.lightbox-img {
  max-width: min(96vw, 1400px);
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 2px;
}

.lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 3rem;
  height: 3rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-elevated);
  color: var(--fg);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.2s var(--ease-out), color 0.2s var(--ease-out);
}

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

/* Contact */
.contact {
  padding: clamp(5rem, 14vw, 10rem) clamp(1.25rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
  text-align: center;
}

.contact-inner {
  max-width: 40rem;
  margin: 0 auto;
}

.contact-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin: 0 0 1rem;
}

.contact-note {
  color: var(--fg-muted);
  font-size: 0.9375rem;
  margin: 0 0 2rem;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.booking-block {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
}

.booking-lede {
  margin: 0 0 1.25rem;
  font-size: 0.9375rem;
  color: var(--fg-muted);
  line-height: 1.65;
}

.btn-booking {
  background: transparent;
  color: var(--accent);
  border-color: rgba(201, 168, 124, 0.45);
}

.btn-booking:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 2.25rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--fg);
  transition: border-color 0.3s var(--ease-out), background 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}

.social-link:hover {
  border-color: rgba(201, 168, 124, 0.5);
  background: var(--accent-soft);
  transform: translateY(-2px);
  color: var(--accent);
}

.social-link img {
  display: block;
}

.btn {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 1rem 1.75rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background 0.35s var(--ease-out), color 0.35s var(--ease-out), border-color 0.35s var(--ease-out);
}

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

.btn-primary:hover {
  background: #dcc29a;
  border-color: #dcc29a;
  color: var(--bg);
}

.btn-ghost {
  border-color: var(--line);
  color: var(--fg);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Estimate form */
.estimate {
  padding: clamp(4rem, 12vw, 8rem) clamp(1.25rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.estimate-inner {
  max-width: 56rem;
  margin: 0 auto;
}

.estimate-intro {
  margin-bottom: 3rem;
  text-align: left;
}

.est-form {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
}

.est-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  list-style: none;
  margin: 0 0 2rem;
  padding: 0 0 1.5rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.est-step {
  position: relative;
  padding-left: 0;
  transition: color 0.3s var(--ease-out);
}

.est-step.is-active {
  color: var(--accent);
}

.est-step.is-done {
  color: var(--fg);
}

.est-panels {
  display: grid;
}

.est-panel {
  display: none;
  border: 0;
  margin: 0;
  padding: 0;
}

.est-panel.is-active {
  display: block;
  animation: est-fade 0.35s var(--ease-out);
}

@keyframes est-fade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.est-row {
  display: grid;
  gap: 1rem;
  margin-bottom: 1rem;
}

@media (min-width: 640px) {
  .est-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .est-panel[data-step="1"] .est-row {
    grid-template-columns: 0.75fr 1fr 1fr;
  }
}

.est-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.est-field > span {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.est-field input,
.est-field select,
.est-field textarea {
  font-family: var(--font-display);
  font-size: 1rem;
  padding: 0.85rem 1rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 0.25rem;
  color: var(--fg);
  transition: border-color 0.25s var(--ease-out), background 0.25s var(--ease-out);
  font-weight: 400;
}

.est-field textarea {
  resize: vertical;
  min-height: 6rem;
  font-family: var(--font-display);
  line-height: 1.5;
}

.est-field input:focus,
.est-field select:focus,
.est-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(201, 168, 124, 0.04);
}

.est-field input::placeholder,
.est-field textarea::placeholder {
  color: rgba(232, 230, 225, 0.3);
}

.est-field--check {
  flex-direction: row;
  align-items: center;
  gap: 0.65rem;
  padding-top: 0.5rem;
}

.est-field--check span {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--fg-muted);
}

.est-field--check input[type="checkbox"] {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--accent);
}

.est-hint {
  margin: 0.5rem 0 0;
  font-size: 0.8125rem;
  color: var(--fg-muted);
}

.est-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.est-actions .btn[hidden] {
  display: none;
}

.est-fineprint {
  margin: 1.5rem 0 0;
  font-size: 0.75rem;
  color: rgba(232, 230, 225, 0.4);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

.est-success {
  text-align: center;
  padding: 2rem 0;
}

.est-success h3 {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--accent);
  margin: 0 0 1rem;
  font-weight: 400;
}

.est-success p {
  color: var(--fg-muted);
  margin: 0;
  line-height: 1.7;
}

/* FAQ */
.faq {
  padding: clamp(4rem, 12vw, 8rem) clamp(1.25rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.faq-inner {
  max-width: 56rem;
  margin: 0 auto;
}

.faq-intro {
  margin-bottom: 3rem;
}

.faq-list {
  display: flex;
  flex-direction: column;
}

.faq-item {
  border-top: 1px solid var(--line);
  padding: 0;
}

.faq-item:last-child {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem 0;
  font-family: var(--font-serif);
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  letter-spacing: -0.01em;
  cursor: pointer;
  list-style: none;
  color: var(--fg);
  transition: color 0.25s var(--ease-out);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary:hover {
  color: var(--accent);
}

.faq-icon {
  position: relative;
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  background: currentColor;
  transition: transform 0.3s var(--ease-out);
}

.faq-icon::before {
  top: 50%;
  left: 0;
  width: 1rem;
  height: 1.5px;
  transform: translateY(-50%);
}

.faq-icon::after {
  top: 0;
  left: 50%;
  width: 1.5px;
  height: 1rem;
  transform: translateX(-50%);
}

.faq-item[open] .faq-icon::after {
  transform: translateX(-50%) rotate(90deg);
  opacity: 0;
}

.faq-body {
  padding: 0 0 1.5rem;
  max-width: 44rem;
}

.faq-body p {
  margin: 0;
  color: var(--fg-muted);
  line-height: 1.8;
  font-size: 0.9375rem;
}

/* Trust strip */
.trust {
  border-block: 1px solid var(--line);
  background: var(--bg-elevated);
  padding: clamp(2rem, 5vw, 3.25rem) clamp(1.25rem, 4vw, 3rem);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem 1.5rem;
  max-width: 64rem;
  margin: 0 auto;
  text-align: center;
}

@media (min-width: 720px) {
  .trust-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.trust-num {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  line-height: 1;
  color: var(--accent);
  letter-spacing: -0.02em;
  font-feature-settings: "tnum";
}

.trust-label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

/* Before/after slider */
.bna {
  position: relative;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 0.25rem;
  overflow: hidden;
  background: var(--bg-elevated);
  aspect-ratio: 4 / 3;
  cursor: ew-resize;
  user-select: none;
  touch-action: pan-y;
  outline: none;
  container-type: inline-size;
}

.bna:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(201, 168, 124, 0.35);
}

.bna-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.bna-clip {
  position: absolute;
  inset: 0;
  width: var(--bna-pos, 50%);
  overflow: hidden;
  will-change: width;
}

.bna-clip .bna-img--before {
  width: 100cqw;
  height: 100%;
  max-width: none;
}

.bna-tag {
  position: absolute;
  top: 0.75rem;
  z-index: 3;
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.35rem 0.6rem;
  border-radius: 2px;
  background: rgba(6, 6, 5, 0.75);
  backdrop-filter: blur(6px);
  pointer-events: none;
}

.bna-tag--before {
  left: 0.75rem;
}

.bna-tag--after {
  right: 0.75rem;
  color: var(--accent);
}

.bna-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--bna-pos, 50%);
  transform: translateX(-50%);
  width: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 4;
  pointer-events: none;
}

.bna-handle-line {
  flex: 1;
  width: 2px;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.45);
}

.bna-handle-knob {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  background: rgba(6, 6, 5, 0.85);
  border: 1.5px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: #fff;
  font-size: 1rem;
  line-height: 1;
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
  flex-shrink: 0;
}

.bna-arrow {
  display: block;
  font-family: var(--font-mono);
  line-height: 1;
}

.bna.is-active .bna-handle-knob {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}

/* Sticky mobile action bar */
.mobile-bar {
  position: fixed;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.75rem;
  z-index: 90;
  display: none;
  gap: 0.5rem;
  padding: 0.5rem;
  background: rgba(14, 14, 12, 0.92);
  border: 1px solid var(--line);
  border-radius: 999px;
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

@media (max-width: 767px) {
  .mobile-bar {
    display: flex;
  }
  body {
    padding-bottom: 5rem;
  }
}

.mobile-bar-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 0.55rem 0.4rem;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg);
}

.mobile-bar-btn--primary {
  background: var(--accent);
  color: var(--bg);
}

.mobile-bar-btn--primary:hover,
.mobile-bar-btn--primary:focus-visible {
  background: #dcc29a;
  color: var(--bg);
}

.mobile-bar-icon {
  font-size: 0.95rem;
  line-height: 1;
}

/* Footer */
.site-footer {
  padding: 3rem clamp(1.25rem, 4vw, 3rem) 4rem;
  border-top: 1px solid var(--line);
}

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

.footer-brand {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
}

.footer-tag {
  font-size: 0.875rem;
  color: var(--fg-muted);
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.footer-social .social-link {
  width: 2.5rem;
  height: 2.5rem;
}

.footer-year {
  margin: 2rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  color: rgba(232, 230, 225, 0.3);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .marquee {
    animation: none;
  }

  .insurance-strip {
    transform: none !important;
    will-change: auto;
    animation: none;
  }

  .insurance-scroll {
    mask-image: none;
    -webkit-mask-image: none;
  }

  .horizontal-track {
    animation: none;
  }

  .horizontal-scroll {
    overflow-x: auto;
    mask-image: none;
    -webkit-mask-image: none;
  }
}
