:root {
  --ink: #171614;
  --muted: #696158;
  --paper: #f7f3ec;
  --panel: #fffdf8;
  --line: #ded2c1;
  --gold: #bf9650;
  --sage: #7b8c72;
  --wine: #5d3538;
  --charcoal: #24211d;
  --radius: 6px;
  --shadow: 0 20px 70px rgba(35, 29, 22, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.5;
  letter-spacing: 0;
}

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

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  display: grid;
  width: 100%;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 16px clamp(18px, 4vw, 58px);
  color: #fffdf8;
  background: rgba(20, 18, 15, 0.78);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 760;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.34);
  color: #f2d48d;
  font-size: 13px;
  font-weight: 800;
}

.nav {
  display: flex;
  justify-content: center;
  gap: clamp(14px, 2vw, 28px);
  font-size: 14px;
}

.nav a,
.footer a {
  color: rgba(255, 253, 248, 0.82);
}

.nav a:hover,
.footer a:hover {
  color: #fff;
}

.header-cta {
  padding: 10px 16px;
  background: #f5d88d;
  color: #16130f;
  font-size: 14px;
  font-weight: 760;
  border-radius: var(--radius);
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: transparent;
  border-radius: var(--radius);
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: #fffdf8;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #fffdf8;
  background: var(--charcoal);
}

.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.96;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(18, 16, 14, 0.84), rgba(18, 16, 14, 0.42) 44%, rgba(18, 16, 14, 0.14)),
    linear-gradient(0deg, rgba(18, 16, 14, 0.92), transparent 52%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100% - 36px));
  margin: 0 0 150px clamp(18px, 6vw, 88px);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1,
.section h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 560;
  line-height: 1.03;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 820px;
  font-size: clamp(48px, 7vw, 88px);
}

.hero-copy {
  max-width: 620px;
  margin: 22px 0 0;
  color: rgba(255, 253, 248, 0.82);
  font-size: clamp(17px, 2vw, 21px);
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 780;
  cursor: pointer;
}

.btn.primary {
  background: var(--ink);
  color: #fffdf8;
}

.hero .btn.primary,
.contact .btn.primary {
  background: #f2d48d;
  color: #181410;
}

.btn.secondary {
  color: inherit;
  border-color: currentColor;
  background: rgba(255, 255, 255, 0.08);
}

.btn.full {
  width: 100%;
}

.hero-stats {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(940px, calc(100% - 36px));
  margin: 0 auto 34px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(14, 13, 12, 0.72);
  backdrop-filter: blur(10px);
}

.hero-stats div {
  padding: 18px 22px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-stats div:last-child {
  border-right: 0;
}

.hero-stats strong {
  display: block;
  color: #f2d48d;
  font-size: 28px;
}

.hero-stats span {
  display: block;
  color: rgba(255, 253, 248, 0.72);
  font-size: 13px;
}

.section {
  padding: clamp(64px, 9vw, 112px) clamp(18px, 5vw, 72px);
}

.section-heading {
  display: grid;
  gap: 8px;
  max-width: 780px;
  margin-bottom: 34px;
}

.section h2 {
  color: #211e1a;
  font-size: clamp(34px, 5vw, 64px);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 46px;
  align-items: start;
  max-width: 1160px;
}

.intro-grid p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 22px;
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  padding: 14px 16px;
  border-left: 4px solid var(--sage);
  background: rgba(255, 253, 248, 0.72);
}

.studio {
  background: #fdfaf4;
}

.studio-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 430px);
  gap: 28px;
  align-items: stretch;
}

.studio-visual img,
.factory-media img,
.gallery-item img,
.product-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.studio-visual {
  min-height: 520px;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.configurator,
.rfq-form {
  display: grid;
  gap: 15px;
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.field-group,
.rfq-form label {
  display: grid;
  gap: 7px;
  color: #342d25;
  font-size: 13px;
  font-weight: 760;
}

select,
input,
textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #d3c5b2;
  background: #fffdf8;
  color: var(--ink);
  border-radius: var(--radius);
  font: inherit;
}

textarea {
  min-height: 116px;
  resize: vertical;
}

.summary {
  display: grid;
  gap: 6px;
  padding: 16px;
  border: 1px solid #d5c4a8;
  background: #f4ecde;
  border-radius: var(--radius);
}

.summary span {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 800;
}

.products {
  background: #eee5d8;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.product-card {
  display: grid;
  grid-template-rows: 240px auto auto;
  gap: 14px;
  min-height: 420px;
  padding: 16px;
  background: #fffdf8;
  border: 1px solid #ddd0be;
  border-radius: var(--radius);
}

.product-card img {
  min-height: 0;
  border-radius: var(--radius);
  background: #f1eadf;
}

.product-card h3 {
  margin: 0;
  font-size: 22px;
}

.product-card p {
  margin: 0;
  color: var(--muted);
}

.text-card {
  display: block;
  padding: 28px;
  background: #201d19;
  color: #fffdf8;
}

.text-card p {
  color: rgba(255, 253, 248, 0.72);
}

.card-index {
  display: inline-grid;
  width: 54px;
  height: 54px;
  place-items: center;
  margin-bottom: 84px;
  background: #f2d48d;
  color: #181410;
  font-weight: 900;
}

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

.finish {
  display: grid;
  gap: 10px;
  min-height: 180px;
  padding: 16px;
  align-content: end;
  background: #fffdf8;
  border: 1px solid #dccdba;
  border-radius: var(--radius);
}

.finish small {
  color: var(--muted);
}

.swatch {
  display: block;
  height: 82px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius);
}

.frosted { background: linear-gradient(135deg, #fff, #d9d3c8); }
.matte { background: #1e1d1b; }
.pearl { background: linear-gradient(135deg, #fff7e8, #cfd8d8, #f6e9f1); }
.metal { background: linear-gradient(90deg, #84602a, #f0cf7b, #9b6d26); }
.gradient { background: linear-gradient(135deg, #31171c, #c58d73 55%, #f3dcc9); }
.clear { background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(168,196,199,0.36)); }

.factory {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 560px);
  gap: 46px;
  align-items: center;
  background: #1f1d19;
  color: #fffdf8;
}

.factory h2 {
  color: #fffdf8;
}

.factory-media {
  overflow: hidden;
  border-radius: var(--radius);
}

.capability-list {
  display: grid;
  gap: 14px;
  margin-top: 26px;
}

.capability-list div {
  display: grid;
  gap: 4px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.capability-list span,
.factory-copy p,
.contact-copy p {
  color: rgba(255, 253, 248, 0.72);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 220px;
  gap: 14px;
}

.gallery-item {
  overflow: hidden;
  border-radius: var(--radius);
}

.gallery-item.tall {
  grid-row: span 2;
}

.gallery-item.wide {
  grid-column: span 2;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 520px);
  gap: 44px;
  align-items: start;
  background: #34241f;
  color: #fffdf8;
}

.contact h2 {
  color: #fffdf8;
}

.rfq-form {
  box-shadow: none;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 28px clamp(18px, 5vw, 72px);
  color: #fffdf8;
  background: #141210;
}

.footer div {
  display: grid;
  gap: 3px;
}

.footer span {
  color: rgba(255, 253, 248, 0.62);
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  .nav-toggle {
    display: block;
    justify-self: end;
  }

  .nav,
  .header-cta {
    display: none;
  }

  .site-header.open .nav {
    display: grid;
    grid-column: 1 / -1;
    justify-content: start;
    width: 100%;
    padding-top: 8px;
  }

  .site-header.open .header-cta {
    display: inline-flex;
    grid-column: 1 / -1;
    width: max-content;
  }

  .hero {
    min-height: 820px;
  }

  .hero-content {
    margin: 0 18px 154px;
  }

  .hero-stats,
  .intro-grid,
  .studio-layout,
  .factory,
  .contact {
    grid-template-columns: 1fr;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .finish-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .brand span:last-child {
    max-width: 190px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .hero {
    min-height: 760px;
  }

  .hero h1 {
    font-size: 48px;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .hero-stats div {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .hero-stats div:last-child {
    border-bottom: 0;
  }

  .section {
    padding: 58px 18px;
  }

  .section h2 {
    font-size: 34px;
  }

  .studio-visual {
    min-height: 320px;
  }

  .product-grid,
  .finish-strip,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .product-card {
    grid-template-rows: 210px auto auto;
  }

  .gallery-grid {
    grid-auto-rows: 230px;
  }

  .gallery-item.tall,
  .gallery-item.wide {
    grid-row: auto;
    grid-column: auto;
  }

  .footer {
    display: grid;
  }
}
