/* ===== Tokens ===== */
:root {
  --bg: #d7d2c7;
  --ink: #453b37;
  --muted: #988e87;
  --muted-30: rgba(69, 59, 55, 0.18);
  --muted-15: rgba(69, 59, 55, 0.1);
  --bg-tint: color-mix(in srgb, var(--ink) 6%, var(--bg));
  --bg-tint-strong: color-mix(in srgb, var(--ink) 10%, var(--bg));
  --on-dark-muted: rgba(215, 210, 199, 0.6);
  --on-dark-line: rgba(215, 210, 199, 0.18);

  --nav-h: 72px;
  --container-w: 1400px;
  --edge: clamp(1.25rem, 4vw, 4rem);
  --section-pad: clamp(4.5rem, 4rem + 3vw, 7.5rem);

  --fs-h1: clamp(2rem, 1.5rem + 1.8vw, 3.5rem);
  --fs-h2: clamp(1.875rem, 1.55rem + 1.6vw, 2.875rem);
  --fs-h3: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  --fs-lead: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  --fs-eyebrow: 0.75rem;
  --fs-caption: 0.8125rem;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body, h1, h2, h3, p, figure, ul { margin: 0; }
ul { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Gilroy", Georgia, serif;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.7;
  padding-top: var(--nav-h);
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: var(--edge);
}

h1, h2, h3 { font-weight: 700; letter-spacing: -0.01em; }

.eyebrow {
  display: block;
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin-bottom: 1rem;
}

.section-head {
  max-width: 42rem;
  margin-bottom: clamp(2.5rem, 3vw, 4rem);
}

.section-head h1,
.section-head h2 { font-size: var(--fs-h2); line-height: 1.12; }

.section-head p {
  margin-top: 1rem;
  font-size: var(--fs-lead);
  color: var(--ink);
  max-width: 38rem;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.95rem 1.85rem;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: transparent;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.15s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: scale(0.98); }

.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: transparent; color: var(--ink); }

.btn-secondary { background: transparent; color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: var(--bg); }

.btn-on-dark { border-color: var(--bg); color: var(--bg); }
.btn-on-dark:hover { background: var(--bg); color: var(--ink); }

/* ===== Reveal on scroll ===== */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ===== Navigation ===== */
.site-nav {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}
.site-nav.is-scrolled { border-bottom-color: var(--muted-30); }

/* Transparent, light-on-dark header over the homepage's fullscreen hero */
.nav-logo-img.nav-logo-img--light { display: none; }
.nav-logo:not(:has(.nav-logo-img--dark)) .nav-logo-img.nav-logo-img--light { display: block; }

/* Mobile always keeps a solid header, so the transparent treatment below is desktop-only. */
@media (min-width: 1024px) {
  body.has-hero-nav .site-nav:not(.is-scrolled) {
    background: transparent;
  }
  body.has-hero-nav .site-nav:not(.is-scrolled) .nav-logo-img.nav-logo-img--dark { display: none; }
  body.has-hero-nav .site-nav:not(.is-scrolled) .nav-logo-img.nav-logo-img--light { display: block; }
  body.has-hero-nav .site-nav:not(.is-scrolled) .nav-links a,
  body.has-hero-nav .site-nav:not(.is-scrolled) .nav-manager-link {
    color: var(--bg);
  }
  body.has-hero-nav .site-nav:not(.is-scrolled) .nav-links a:hover,
  body.has-hero-nav .site-nav:not(.is-scrolled) .nav-links a.is-active {
    border-color: var(--bg);
  }
  body.has-hero-nav .site-nav:not(.is-scrolled) .nav-manager-link {
    border-color: var(--on-dark-line);
  }
  body.has-hero-nav .site-nav:not(.is-scrolled) .nav-manager-link:hover {
    border-color: var(--bg);
    background: transparent;
  }
  body.has-hero-nav .site-nav:not(.is-scrolled) .nav-toggle {
    border-color: var(--bg);
  }
  body.has-hero-nav .site-nav:not(.is-scrolled) .nav-toggle:not([aria-expanded="true"]) span,
  body.has-hero-nav .site-nav:not(.is-scrolled) .nav-toggle span::before,
  body.has-hero-nav .site-nav:not(.is-scrolled) .nav-toggle span::after {
    background: var(--bg);
  }
}

.nav-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}
.nav-logo-img { height: 45px; width: auto; display: block; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  font-size: 0.875rem;
  font-weight: 500;
}
.nav-links a { padding: 0.25rem 0; border-bottom: 1px solid transparent; transition: border-color 0.2s ease; }
.nav-links a:hover { border-color: var(--ink); }
.nav-links a.is-active { border-color: var(--ink); font-weight: 600; }

.nav-actions { display: flex; align-items: center; gap: 1rem; }

.nav-manager-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--muted-30);
  color: var(--ink);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.nav-manager-link:hover { background: var(--bg-tint); border-color: var(--ink); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--ink);
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 18px;
  height: 1px;
  background: var(--ink);
  position: relative;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

.nav-mobile-panel {
  position: fixed;
  top: var(--nav-h);
  inset-inline: 0;
  bottom: 0;
  background: var(--bg);
  z-index: 45;
  padding: 2rem var(--edge) 2.5rem;
  display: none;
  flex-direction: column;
  overflow-y: auto;
  opacity: 0;
  transform: translateY(-12px);
  transition: opacity 260ms var(--ease), transform 260ms var(--ease), display 260ms allow-discrete;
}
.nav-mobile-panel.is-open {
  display: flex;
  opacity: 1;
  transform: none;
}
@starting-style {
  .nav-mobile-panel.is-open {
    opacity: 0;
    transform: translateY(-12px);
  }
}

.nav-mobile-eyebrow {
  margin-bottom: 1.75rem;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 320ms var(--ease) 30ms, transform 320ms var(--ease) 30ms;
}
.nav-mobile-panel.is-open .nav-mobile-eyebrow { opacity: 1; transform: none; }
@starting-style {
  .nav-mobile-panel.is-open .nav-mobile-eyebrow { opacity: 0; transform: translateY(14px); }
}

.nav-mobile-links {
  display: flex;
  flex-direction: column;
  counter-reset: navlink;
}

.nav-mobile-link {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--muted-15);
  font-size: clamp(1.375rem, 1.1rem + 1.2vw, 1.875rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  counter-increment: navlink;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 320ms var(--ease), transform 320ms var(--ease), color 0.2s ease;
}
.nav-mobile-link::before {
  content: counter(navlink, decimal-leading-zero);
  font-size: var(--fs-caption);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.nav-mobile-link::after {
  content: "";
  margin-left: auto;
  align-self: center;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink);
  opacity: 0;
  transform: scale(0.4);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}
.nav-mobile-link:active { color: var(--muted); }
.nav-mobile-link.is-active::after { opacity: 1; transform: scale(1); }

.nav-mobile-panel.is-open .nav-mobile-link {
  opacity: 1;
  transform: none;
}
.nav-mobile-link:nth-child(1) { transition-delay: 70ms; }
.nav-mobile-link:nth-child(2) { transition-delay: 110ms; }
.nav-mobile-link:nth-child(3) { transition-delay: 150ms; }
.nav-mobile-link:nth-child(4) { transition-delay: 190ms; }
.nav-mobile-link:nth-child(5) { transition-delay: 230ms; }
@starting-style {
  .nav-mobile-panel.is-open .nav-mobile-link {
    opacity: 0;
    transform: translateY(14px);
  }
}

.nav-mobile-footer {
  margin-top: auto;
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 320ms var(--ease) 250ms, transform 320ms var(--ease) 250ms;
}
.nav-mobile-panel.is-open .nav-mobile-footer { opacity: 1; transform: none; }
@starting-style {
  .nav-mobile-panel.is-open .nav-mobile-footer { opacity: 0; transform: translateY(14px); }
}
.nav-mobile-admin {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted);
  transition: color 0.2s ease;
}
.nav-mobile-admin:hover { color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  .nav-mobile-panel {
    transform: none;
    transition: opacity 200ms ease, display 200ms allow-discrete;
  }
  @starting-style {
    .nav-mobile-panel.is-open { opacity: 0; }
  }
  .nav-mobile-eyebrow,
  .nav-mobile-link,
  .nav-mobile-footer {
    transform: none;
    transition: opacity 200ms ease;
    transition-delay: 0ms;
  }
  @starting-style {
    .nav-mobile-panel.is-open .nav-mobile-eyebrow,
    .nav-mobile-panel.is-open .nav-mobile-link,
    .nav-mobile-panel.is-open .nav-mobile-footer {
      opacity: 0;
    }
  }
}

@media (max-width: 1023px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
}

/* ===== Hero (fullscreen fade carousel) ===== */
body.has-hero-nav { padding-top: 0; }

.hero-carousel {
  position: relative;
  height: 100svh;
  min-height: 26rem;
  overflow: hidden;
  background: var(--ink);
  color: var(--bg);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.6s var(--ease);
}
.hero-slide.is-active { opacity: 1; z-index: 1; }

.hero-media { position: absolute; inset: 0; }
.hero-media img,
.hero-media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-media--mobile { display: none; }

.hero-scrim {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, calc(var(--scrim, 35) / 100));
}

.hero-caption {
  position: absolute;
  left: 50%;
  bottom: clamp(2.5rem, 5vw + 1rem, 5rem);
  transform: translateX(-50%);
  z-index: 2;
  width: min(88%, 32rem);
  text-align: center;
}
.hero-caption-text {
  margin: 0 0 1.25rem;
  font-size: clamp(0.9375rem, 0.85rem + 0.3vw, 1.0625rem);
  font-weight: 400;
  line-height: 1.55;
  text-wrap: balance;
}
.hero-caption .btn { padding: 0.85rem 1.75rem; }

.hero-progress {
  position: absolute;
  z-index: 2;
  left: var(--edge);
  right: var(--edge);
  bottom: clamp(2.5rem, 5vw + 1rem, 5rem);
  display: flex;
  gap: 0.5rem;
  max-width: 28rem;
}
.hero-progress-seg {
  flex: 1;
  height: 3px;
  border-radius: 2px;
  background: var(--on-dark-line);
  overflow: hidden;
}
.hero-progress-fill {
  display: block;
  height: 100%;
  width: 0;
  background: var(--bg);
}
.hero-progress-fill.is-complete { width: 100%; }
.hero-progress-fill.is-animating {
  animation: hero-progress-fill 6.5s linear forwards;
}
.hero-progress-fill.is-paused { animation-play-state: paused; }

@keyframes hero-progress-fill {
  from { width: 0; }
  to { width: 100%; }
}

/* ===== Hero arrows (prev/next) ===== */
.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--on-dark-line);
  background: rgba(0, 0, 0, 0.15);
  color: var(--bg);
  font-size: 1.75rem;
  line-height: 1;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.hero-arrow:hover { background: rgba(0, 0, 0, 0.35); border-color: var(--bg); }
.hero-arrow:active { transform: translateY(-50%) scale(0.94); }
.hero-arrow--prev { left: var(--edge); }
.hero-arrow--next { right: var(--edge); }

@media (prefers-reduced-motion: reduce) {
  .hero-slide { transition: none; }
  .hero-progress { display: none; }
}

@media (max-width: 767px) {
  .hero-slide--has-mobile .hero-media--desktop { display: none; }
  .hero-slide--has-mobile .hero-media--mobile { display: block; }
  .hero-progress { bottom: 1.5rem; }
  .hero-caption { bottom: 4rem; }
  .hero-arrow { width: 38px; height: 38px; font-size: 1.375rem; }
}

/* ===== Video banner (full-bleed, logo + text over looped video) ===== */
.video-banner {
  position: relative;
  height: clamp(22rem, 30vw + 14rem, 34rem);
  padding-block: 0;
  overflow: hidden;
  color: var(--bg);
}
.video-banner-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.video-banner-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  text-align: center;
  padding-inline: var(--edge);
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.4));
}
.video-banner-logo { height: clamp(64px, 5vw + 40px, 96px); width: auto; }
.video-banner-text {
  max-width: 34ch;
  font-size: var(--fs-lead);
}

/* ===== Featured collection (asymmetric bento) ===== */
.collection-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.tile { display: flex; flex-direction: column; }
.tile-media { position: relative; overflow: hidden; border: 1px solid var(--muted-30); aspect-ratio: 4 / 3; }
.tile-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.tile-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.tile-media iframe { width: 100%; height: 100%; border: 0; display: block; }
.tile:hover .tile-media img { transform: scale(1.035); }
.tile-caption { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding-top: 0.9rem; }
.tile-caption h3 { font-size: var(--fs-h3); }
.tile-caption span { font-size: var(--fs-caption); color: var(--muted); white-space: nowrap; }

@media (min-width: 900px) {
  .collection-grid {
    grid-template-columns: 1.4fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 1.75rem;
  }
  .tile--large { grid-row: 1 / 3; }
  .tile--large .tile-media { aspect-ratio: auto; height: 100%; min-height: 26rem; }
}

/* ===== Emblem watermark (decorative brand mark) ===== */
.emblem-mark {
  position: absolute;
  z-index: -1;
  aspect-ratio: 1;
  opacity: 0.12;
  pointer-events: none;
  user-select: none;
}

.philosophy,
.cta-banner,
.showroom-info {
  position: relative;
  z-index: 0;
  overflow: hidden;
}

.philosophy .emblem-mark {
  top: 50%;
  right: clamp(-4rem, -5vw, -1rem);
  width: clamp(13rem, 18vw, 20rem);
  transform: translateY(-50%);
}

.cta-banner .emblem-mark {
  top: 50%;
  right: clamp(-3rem, -4vw, -1rem);
  width: clamp(9rem, 11vw, 12rem);
  transform: translateY(-50%);
}

.showroom-info .emblem-mark {
  top: 50%;
  right: clamp(-3rem, -6vw, 0rem);
  width: clamp(16rem, 24vw, 22rem);
  transform: translateY(-50%);
}

.footer-grid .emblem-mark {
  top: 50%;
  right: clamp(1rem, 3vw, 2.5rem);
  width: clamp(14rem, 17vw, 17rem);
  transform: translateY(-50%);
  /* Scoped to .footer-grid (not the whole footer) so it stays clear of the
     copyright bar and the fixed WhatsApp/call buttons docked in the
     bottom-right corner. Kept fully inside the footer (no negative offset)
     so the outline isn't cropped. emblem3 is a fine-line outline (not a
     solid fill), so it needs more opacity than the solid marks to still
     read. */
  opacity: 0.55;
}

@media (max-width: 640px) {
  .emblem-mark { display: none; }
}

/* ===== Brand philosophy (full-bleed editorial statement) ===== */
.philosophy { background: var(--bg-tint); }
.philosophy-inner { max-width: 46rem; }
.philosophy h1,
.philosophy h2 {
  font-size: clamp(1.75rem, 1.3rem + 2.4vw, 3.25rem);
  line-height: 1.14;
}
.philosophy p {
  margin-top: 1.75rem;
  font-size: var(--fs-lead);
  max-width: 40rem;
  color: var(--ink);
}
.philosophy .philosophy-tagline {
  padding-top: 1.75rem;
  border-top: 1px solid var(--muted-30);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ===== Materials filmstrip (horizontal scroll-snap) ===== */
.materials-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.filmstrip-nav { display: flex; gap: 0.5rem; }
.filmstrip-nav button {
  width: 42px;
  height: 42px;
  border: 1px solid var(--ink);
  background: transparent;
  font-size: 1.125rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease;
}
.filmstrip-nav button:hover { background: var(--ink); color: var(--bg); }

.filmstrip {
  margin-top: clamp(2.5rem, 3vw, 3.5rem);
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.5rem;
  scrollbar-width: none;
}
.filmstrip::-webkit-scrollbar { display: none; }

.filmstrip-item {
  flex: 0 0 clamp(230px, 30vw, 320px);
  scroll-snap-align: start;
}
.filmstrip-item .tile-media { aspect-ratio: 3 / 4; }
.filmstrip-item .tile-caption { flex-direction: column; align-items: flex-start; gap: 0.35rem; }
.filmstrip-item .tile-caption span { color: var(--muted); }

/* ===== Product categories (index list) ===== */
.index-list { border-top: 1px solid var(--muted-30); margin-top: clamp(2.5rem, 3vw, 3.5rem); }
.index-row {
  display: grid;
  grid-template-columns: 3.5rem 1fr auto;
  align-items: baseline;
  gap: 1.5rem;
  padding: 1.85rem 0;
  border-bottom: 1px solid var(--muted-30);
}
.index-num { font-size: 1rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.index-row h3 { font-size: var(--fs-h3); }
.index-row p { margin-top: 0.4rem; color: var(--muted); max-width: 46ch; font-size: 0.9375rem; }
.index-arrow { font-size: 1.25rem; color: var(--muted); transition: transform 0.25s ease; }
.index-row:hover .index-arrow { transform: translateX(4px); }

@media (max-width: 640px) {
  .index-row { grid-template-columns: 2.5rem 1fr; }
  .index-arrow { display: none; }
}

/* ===== Showroom / contact (form panel) ===== */
.showroom { background: var(--bg-tint); }
.showroom-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }

.showroom-info h1,
.showroom-info h2 { font-size: var(--fs-h2); line-height: 1.12; max-width: 20ch; }
.showroom-info p { margin-top: 1.25rem; font-size: var(--fs-lead); max-width: 32ch; }

.showroom-details { margin-top: 2.25rem; display: flex; flex-direction: column; gap: 0.85rem; }
.showroom-details dt { font-size: var(--fs-caption); text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.showroom-details dd { margin: 0.15rem 0 0; font-size: 1rem; }
.showroom-map-links { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 2.25rem; }
.showroom-social { display: flex; gap: 0.85rem; }
.showroom-social a { display: inline-flex; font-size: 1.25rem; color: var(--ink); }
.showroom-social a:hover { color: var(--muted); }

.showroom-form {
  background: var(--bg);
  border: 1px solid var(--muted-30);
  padding: clamp(1.75rem, 3vw, 2.75rem);
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field label { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.02em; }
.field input,
.field textarea {
  border: 1px solid var(--muted);
  background: var(--bg);
  padding: 0.85rem 1rem;
  border-radius: 0;
  font-size: 0.9375rem;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--muted); }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 2px var(--muted-15);
}
.field textarea { resize: vertical; min-height: 7rem; }
.field-hint { font-size: 0.8125rem; color: var(--muted); }

.showroom-form .btn { align-self: flex-start; margin-top: 0.5rem; }

@media (min-width: 900px) {
  .showroom-grid { grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 5vw, 5rem); align-items: start; }
}

/* ===== Legal pages (privacy / cookies / terms) ===== */
.legal-page .section-head { margin-bottom: clamp(2rem, 2.5vw, 3rem); }
.section-head .legal-updated {
  margin-top: 0.75rem;
  font-size: var(--fs-caption);
  color: var(--muted);
  max-width: none;
}

.legal-content { max-width: 50rem; }
.legal-content > * + * { margin-top: 1.15rem; }

.legal-content h1,
.legal-content h2 {
  font-size: var(--fs-h3);
  line-height: 1.3;
  margin-top: 2.5rem;
}
.legal-content h3 {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  margin-top: 2rem;
}
.legal-content > *:first-child { margin-top: 0; }

.legal-content ul,
.legal-content ol { padding-left: 1.25rem; }
.legal-content ul li { list-style: disc; }
.legal-content li + li { margin-top: 0.5rem; }

.legal-content a { text-decoration: underline; text-underline-offset: 0.15em; }
.legal-content a:hover { color: var(--muted); }
.legal-content strong { font-weight: 600; }

/* ===== Footer (dark, single deliberate inversion) ===== */
.site-footer { background: var(--ink); color: var(--bg); padding-block: clamp(3.5rem, 5vw, 5rem) 2rem; }

.footer-grid {
  position: relative;
  z-index: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.75rem;
  /* No overflow:hidden here (unlike the other emblem-mark hosts): the
     emblem is taller than this grid's own content, and .site-footer's
     padding plus .footer-bottom's margin-top around it leave enough
     room for it to bleed slightly beyond this box without being
     clipped or touching the copyright bar. */
}

.footer-brand { max-width: 22rem; }
.footer-brand .nav-logo { font-size: 1.375rem; }
.footer-brand p { margin-top: 1rem; color: var(--on-dark-muted); font-size: 0.9375rem; }

.footer-col h4 {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--on-dark-muted);
  margin-bottom: 1.1rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-col a { font-size: 0.9375rem; transition: opacity 0.2s ease; opacity: 0.92; }
.footer-col a:hover { opacity: 1; text-decoration: underline; }

.footer-social { flex-direction: row; gap: 1rem; }
.footer-social a { display: inline-flex; font-size: 1.125rem; }
.footer-social a:hover { text-decoration: none; }

.footer-bottom {
  margin-top: clamp(3rem, 4vw, 4rem);
  padding-top: 1.75rem;
  border-top: 1px solid var(--on-dark-line);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: var(--on-dark-muted);
}
.footer-legal { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-credit { opacity: 0.75; transition: opacity 0.2s ease; }
.footer-credit:hover { opacity: 1; text-decoration: underline; }

@media (min-width: 700px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}

/* ===== Notices (form feedback) ===== */
.notice-stack { padding-top: 1.5rem; display: flex; flex-direction: column; gap: 0.75rem; }
.notice {
  border: 1px solid var(--muted-30);
  border-left: 3px solid var(--ink);
  padding: 0.9rem 1.25rem;
  font-size: 0.9375rem;
  background: var(--bg-tint);
}
.notice--error { border-left-color: var(--muted); }

/* ===== Text link (inline, non-button CTA) ===== */
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  margin-top: 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 0.15rem;
  transition: opacity 0.2s ease;
}
.text-link:hover { opacity: 0.7; }

/* ===== Teaser split (homepage previews) ===== */
.teaser-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}
.teaser-copy { max-width: 30rem; }
.teaser-copy h2 { font-size: var(--fs-h2); line-height: 1.14; }
.teaser-copy p { margin-top: 1rem; font-size: var(--fs-lead); }
.teaser-media .tile-media { aspect-ratio: 4 / 3; }

@media (min-width: 900px) {
  .teaser-split { grid-template-columns: 6fr 6fr; column-gap: 3rem; }
  .teaser-split.is-reversed .teaser-media { order: 2; }
  .teaser-split.is-reversed .teaser-copy { order: 1; }
}

/* ===== CTA banner (reusable include) ===== */
.cta-banner { background: var(--bg-tint); }
.cta-banner-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.75rem;
}
.cta-banner-copy h2 { font-size: var(--fs-h2); line-height: 1.14; max-width: 20ch; }
.cta-banner-copy p { margin-top: 0.75rem; font-size: var(--fs-lead); max-width: 32ch; }

@media (min-width: 700px) {
  .cta-banner-inner { flex-direction: row; align-items: center; justify-content: space-between; gap: 2.5rem; }
}

/* ===== Gallery grid (Çalışmalarımız + detail-page related items) ===== */
.gallery-grid {
  margin-top: clamp(2.5rem, 3vw, 3.5rem);
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}
.gallery-grid figcaption { margin-top: 1rem; }
.gallery-grid figcaption h3 { display: flex; align-items: baseline; gap: 0.5rem; font-size: var(--fs-h3); }
.gallery-grid figcaption > span { display: block; margin-top: 0.25rem; font-size: var(--fs-caption); color: var(--muted); }
.gallery-grid .tile-media { aspect-ratio: 4 / 5; transition: border-color 0.3s ease; }
.gallery-grid a:hover .tile-media { border-color: var(--ink); }
.gallery-grid a:hover .tile-media img { transform: scale(1.05); }

.gallery-arrow { font-size: 0.85em; color: var(--muted); transition: transform 0.3s var(--ease); }
.gallery-grid a:hover .gallery-arrow { transform: translate(3px, -3px); color: var(--ink); }

.gallery-grid figure { transition-delay: min(calc(var(--i, 0) * 0.08s), 0.4s); }
@media (prefers-reduced-motion: reduce) {
  .gallery-grid figure { transition-delay: 0s; }
}

@media (min-width: 700px) {
  .gallery-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .gallery-grid figure:nth-child(1) .tile-media { aspect-ratio: 4 / 5; }
  .gallery-grid figure:nth-child(2) .tile-media { aspect-ratio: 3 / 4; }
  .gallery-grid figure:nth-child(3) .tile-media { aspect-ratio: 4 / 3; }
  .gallery-grid figure:nth-child(4) .tile-media { aspect-ratio: 4 / 5; }
}

/* ===== Heritage mark (About page, "53 years" emphasis) ===== */
.heritage-mark {
  display: inline-flex;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 1.75rem;
}
.heritage-mark-figure {
  font-size: 6rem;
  line-height: 0.85;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--ink);
}
.heritage-mark-unit {
  font-size: 1rem;
  font-weight: 600;
  margin-left: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.heritage-mark-caption {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.35;
  padding-bottom: 0.5rem;
}
@media (max-width: 480px) {
  .heritage-mark-figure { font-size: 4rem; }
}

/* ===== Story video (inline stop-motion accent with caption) ===== */
.story-video {
  margin: clamp(2.5rem, 3vw, 3.5rem) 0;
  max-width: 40rem;
}
.story-video .tile-media { aspect-ratio: 4 / 5; }
.story-video figcaption {
  margin-top: 0.85rem;
  font-size: var(--fs-caption);
  color: var(--muted);
  max-width: 30rem;
}

.story-duo {
  margin-top: clamp(2.5rem, 3vw, 3.5rem);
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
.story-duo .story-video { margin: 0; max-width: none; }
@media (min-width: 700px) {
  .story-duo { grid-template-columns: 1fr 1fr; }
}

/* ===== Reference cards (Referanslarımız + homepage) ===== */
.reference-filters {
  margin-top: clamp(2rem, 3vw, 2.5rem);
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--muted-30);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
}

.reference-filter {
  background: none;
  border: none;
  padding: 0.2rem 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.reference-filter:hover { color: var(--ink); }
.reference-filter.is-active { color: var(--ink); font-weight: 600; border-color: var(--ink); }

.reference-grid {
  margin-top: clamp(2.5rem, 3vw, 3.5rem);
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}

.reference-card a {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 1px solid var(--muted-30);
}

.reference-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.reference-card-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(20, 16, 14, 0.4) 0%,
    rgba(20, 16, 14, 0.42) 55%,
    rgba(20, 16, 14, 0.64) 100%
  );
  transition: background 0.5s var(--ease);
}

.reference-card-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(44%, 10rem);
  transform: translate(-50%, -50%) scale(1);
  opacity: 0.92;
  transition: opacity 0.5s var(--ease), transform 0.7s var(--ease);
  pointer-events: none;
}

.reference-card-emblem {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  width: clamp(3rem, 14%, 4.5rem);
  height: auto;
  aspect-ratio: 1;
  opacity: 0.7;
  /* soft-light (not a flat overlay) so it reads consistently regardless of
     how dark or light the photo underneath happens to be. */
  mix-blend-mode: soft-light;
  pointer-events: none;
  user-select: none;
}

.reference-card-caption {
  position: absolute;
  left: 1.5rem;
  right: 1.5rem;
  bottom: 1.35rem;
  color: var(--bg);
}

.reference-card-title { font-size: 13px; font-weight: 700; }

.reference-card a:hover .reference-card-img { transform: scale(1.06); }
.reference-card a:hover .reference-card-scrim {
  background: linear-gradient(
    180deg,
    rgba(20, 16, 14, 0.48) 0%,
    rgba(20, 16, 14, 0.5) 55%,
    rgba(20, 16, 14, 0.72) 100%
  );
}
.reference-card a:hover .reference-card-logo { opacity: 0.5; transform: translate(-50%, -50%) scale(0.92); }

.reference-card { transition-delay: min(calc(var(--i, 0) * 0.08s), 0.4s); }
@media (prefers-reduced-motion: reduce) {
  .reference-card { transition-delay: 0s; }
}

/* Live category filtering reuses .reveal's own opacity/transform transition
   (already lasting on the element) so it shares the same motion as the
   scroll-in entrance instead of introducing a second timing. */
.reference-card.is-filtered-out {
  opacity: 0;
  transform: scale(0.94);
  pointer-events: none;
  transition-delay: 0s;
}

@media (min-width: 700px) {
  .reference-grid { grid-template-columns: 1fr 1fr; gap: 1.75rem; }
}

@media (min-width: 1024px) {
  .reference-grid { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
}

.section-cta {
  margin-top: clamp(2.5rem, 3vw, 3.5rem);
  display: flex;
  justify-content: center;
}

/* ===== Map embed (İletişim, Google Maps) ===== */
.map-frame {
  width: 100%;
  aspect-ratio: 16 / 7;
  overflow: hidden;
  border: 1px solid var(--muted-30);
  background: var(--bg-tint);
  filter: grayscale(75%) sepia(12%) saturate(120%) brightness(1.03) contrast(1.03);
}
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ===== Floating actions (WhatsApp, call) ===== */
.floating-actions {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 44;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.floating-btn {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: var(--bg);
  border: 1px solid rgba(215, 210, 199, 0.4);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease, border-color 0.2s ease;
}
.floating-btn:hover { background: var(--bg); color: var(--ink); border-color: var(--muted-30); }
.floating-btn:active { transform: scale(0.96); }
.floating-btn svg { width: 22px; height: 22px; }
.floating-btn i { font-size: 20px; line-height: 1; }

@media (max-width: 640px) {
  .floating-actions { right: 1rem; bottom: 1rem; gap: 0.6rem; }
  .floating-btn { width: 44px; height: 44px; }
}

/* ===== Section rhythm ===== */
/* Each section contributes half a section-pad on its own top and bottom,
   so two adjacent sections sum to exactly one full section-pad at their
   shared boundary — split across both sides, so a tinted section's
   background still has some breathing room before its own edge, instead
   of the next section's heading butting right up against the color seam.
   The page's first/last section has nothing to share the other half
   with, so it gets the full amount. Same for a section that runs
   edge-to-edge with no padding of its own (hero, video banner): the
   section after it needs the full amount restored since that side
   contributes nothing. */
section { padding-block: calc(var(--section-pad) / 2); }
main > section:first-child { padding-top: var(--section-pad); }
main > section:last-child { padding-bottom: var(--section-pad); }
.hero-carousel + section,
.video-banner + section {
  padding-top: var(--section-pad);
}
section:has(+ .video-banner) {
  padding-bottom: var(--section-pad);
}

/* ===== Detail pages (Çalışma / Referans) ===== */
.detail-back { margin-top: 0; }

.detail-head {
  margin-top: clamp(1.5rem, 2vw, 2.25rem);
  max-width: 40rem;
}
.detail-head h1 { font-size: var(--fs-h1); line-height: 1.05; }
.detail-meta { margin-top: 0.75rem; font-size: var(--fs-lead); color: var(--muted); }

.detail-cover {
  margin-top: clamp(2rem, 3vw, 3rem);
}
.detail-cover .tile-media { aspect-ratio: 16 / 9; border: 1px solid var(--muted-30); }

.tile-media .detail-cover-emblem {
  position: absolute;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  width: clamp(10rem, 16vw, 16rem);
  height: auto;
  aspect-ratio: 1;
  opacity: 0.7;
  /* soft-light (not a flat overlay) so the mark reads consistently whether
     the photo underneath it is dark or light, instead of vanishing into
     shadow like a plain low-opacity layer would. */
  mix-blend-mode: soft-light;
  pointer-events: none;
  user-select: none;
}
@media (max-width: 640px) {
  .detail-cover-emblem { display: none; }
}

.detail-copy {
  margin-top: clamp(1.75rem, 2.5vw, 2.5rem);
  max-width: 42rem;
  font-size: var(--fs-lead);
}

.detail-video {
  margin-top: clamp(2.5rem, 3vw, 3.5rem);
}
.detail-video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--muted-30);
}
.detail-video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.detail-gallery {
  margin-top: clamp(2.5rem, 3vw, 3.5rem);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.detail-gallery-item { display: block; overflow: hidden; border: 1px solid var(--muted-30); aspect-ratio: 4 / 3; }
.detail-gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.detail-gallery-item:hover img { transform: scale(1.04); }

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

/* ===== Lightbox ===== */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: rgba(30, 25, 23, 0.92);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;
}
.lightbox-overlay.is-open { opacity: 1; visibility: visible; }

.lightbox-stage {
  position: relative;
  flex: 1;
  min-height: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.lightbox-stage img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease;
  cursor: pointer;
  touch-action: none;
}
.lightbox-stage img.is-zoomed { cursor: grab; }
.lightbox-stage img.is-dragging { cursor: grabbing; transition: none; }

.lightbox-zoom {
  display: none;
  position: absolute;
  top: 1.25rem;
  left: 1.5rem;
  z-index: 1;
  align-items: center;
  gap: 0.5rem;
}
.lightbox-zoom button {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg);
  border: 1px solid rgba(215, 210, 199, 0.4);
  background: rgba(30, 25, 23, 0.4);
  font-size: 1.25rem;
  line-height: 1;
  transition: background 0.2s ease, opacity 0.2s ease;
}
.lightbox-zoom button:hover:not(:disabled) { background: rgba(215, 210, 199, 0.12); }
.lightbox-zoom button:disabled { opacity: 0.35; cursor: default; }
.lightbox-zoom-value {
  min-width: 3rem;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--bg);
  font-variant-numeric: tabular-nums;
}

.lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg);
  border: 1px solid rgba(215, 210, 199, 0.4);
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  z-index: 1;
}
.lightbox-close:hover { background: rgba(215, 210, 199, 0.12); }

.lightbox-prev, .lightbox-next {
  display: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  color: var(--bg);
  border: 1px solid rgba(215, 210, 199, 0.4);
  background: rgba(30, 25, 23, 0.4);
  font-size: 1.75rem;
  line-height: 1;
  z-index: 1;
  transition: background 0.2s ease;
}
.lightbox-prev:hover, .lightbox-next:hover { background: rgba(215, 210, 199, 0.12); }
.lightbox-prev { left: 0.5rem; }
.lightbox-next { right: 0.5rem; }
.lightbox-overlay.has-multiple .lightbox-prev,
.lightbox-overlay.has-multiple .lightbox-next { display: flex; }

@media (max-width: 640px) {
  .lightbox-prev, .lightbox-next { width: 38px; height: 38px; font-size: 1.4rem; }
  .lightbox-zoom { top: 1rem; left: 1rem; gap: 0.35rem; }
  .lightbox-zoom button { width: 32px; height: 32px; font-size: 1.05rem; }
  .lightbox-zoom-value { min-width: 2.5rem; font-size: 0.75rem; }
}
