/* === Quacktory × The Fabulous Cartier Journey === */
/* Editorial-luxury, atmospheric, italic Didone + thin sans */

:root {
  --bg: #f1dcbc;
  --fg: #ffffff;
  --accent: #9bb6c4;
  --muted: #a86852;
  --ink: #4a3a44;
  --surface: #e8e0d4;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Cormorant Garamond", "Garamond", serif;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.55;
  overflow-x: hidden;
  font-size: 16px;
}
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; text-align: left; }

.skip {
  position: absolute; left: -9999px;
  background: var(--ink); color: var(--bg);
  padding: 8px 16px;
}
.skip:focus { left: 8px; top: 8px; z-index: 99; }

.kicker {
  font-family: "Inter", sans-serif;
  font-size: 11px; letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 400;
}

/* ===== TOP BAR ===== */
.top {
  position: absolute; top: 0; left: 0; right: 0;
  z-index: 5;
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px 32px;
  color: var(--fg);
}
.top__brand {
  position: absolute; left: 50%; transform: translateX(-50%);
  font-family: "Italiana", "Cormorant Garamond", serif;
  font-size: 30px; letter-spacing: 0.06em;
  font-weight: 400;
}
.top__menu {
  width: 28px; height: 16px;
  display: inline-flex; flex-direction: column; justify-content: space-between;
}
.top__menu span {
  display: block; height: 1px;
  background: var(--fg);
}
.top__menu span:last-child { width: 60%; align-self: flex-end; }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  color: var(--fg);
}

.sky {
  position: absolute; inset: 0;
  z-index: 0;
}
.sky__layer {
  position: absolute; left: 0; right: 0;
}
.sky__layer--top {
  top: 0; height: 30%;
  background: linear-gradient(180deg, #9bb6c4 0%, #b8c8d4 100%);
}
.sky__layer--mid {
  top: 25%; height: 25%;
  background: linear-gradient(180deg, #d6c8b4 0%, #f1dcbc 100%);
}
.sky__layer--horizon {
  top: 45%; height: 18%;
  background: linear-gradient(180deg, #f3e2c4 0%, #e8a896 100%);
}
.sky__layer--peach {
  top: 60%; height: 22%;
  background: linear-gradient(180deg, #e8a896 0%, #cf8a72 100%);
}
.sky__layer--terra {
  top: 80%; height: 22%;
  background: linear-gradient(180deg, #cf8a72 0%, #a86852 100%);
}

.sky__peak {
  position: absolute;
  left: 50%; bottom: 22%;
  width: 320px; height: 200px;
  transform: translateX(-50%);
  background:
    radial-gradient(ellipse at 50% 100%, var(--ink) 0%, transparent 60%),
    linear-gradient(180deg, transparent 30%, var(--ink) 100%);
  clip-path: polygon(20% 100%, 50% 10%, 80% 100%);
  opacity: 0.7;
}
.sky__peak::after {
  content: "";
  position: absolute; left: 30%; top: 25%;
  width: 40%; height: 28%;
  background: var(--surface);
  clip-path: polygon(20% 100%, 50% 0%, 80% 100%);
  opacity: 0.65;
}

.hero__content {
  position: relative; z-index: 2;
  text-align: center;
  padding: 18vh 24px 24px;
  max-width: 720px;
  margin: 0 auto;
}
.lede {
  font-family: "Italiana", serif;
  font-style: italic;
  font-size: clamp(22px, 3vw, 32px);
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}
.display {
  font-family: "Inter", sans-serif;
  font-weight: 300;
  font-size: clamp(48px, 9vw, 110px);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1;
  margin: 0 0 36px;
  text-shadow: 0 2px 30px rgba(0,0,0,0.18);
}
.body {
  max-width: 56ch;
  margin: 0 auto 36px;
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.7;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 12px rgba(0,0,0,0.18);
}
.cta {
  display: inline-block;
  font-family: "Inter", sans-serif;
  font-size: 12px; letter-spacing: 0.32em;
  text-transform: uppercase;
  padding: 8px 4px;
  border-bottom: 1px solid var(--fg);
  transition: opacity .2s;
}
.cta:hover, .cta:focus-visible { opacity: 0.7; outline: 0; }

/* ===== GALLERY (taxonomy) ===== */
.gallery {
  background: var(--surface);
  padding: 80px 32px;
  text-align: center;
}
.gallery__head { max-width: 720px; margin: 0 auto 48px; }
.gallery__title {
  margin-top: 14px;
  font-family: "Italiana", serif;
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.15;
}
.gallery__title em { font-style: italic; color: var(--muted); }
.gallery__hint {
  margin-top: 14px;
  font-size: 14px; letter-spacing: 0.02em;
  color: var(--ink);
}
.gallery__list {
  list-style: none;
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  max-width: 1100px;
  margin: 0 auto;
}
.card__btn {
  width: 100%;
  display: flex; flex-direction: column; align-items: center;
  padding: 28px 14px;
  background: var(--bg);
  border: 1px solid rgba(74,58,68,0.15);
  text-align: center;
  transition: background .25s, transform .25s, border-color .25s;
}
.card__btn:hover, .card__btn:focus-visible {
  background: #fff;
  transform: translateY(-4px);
  border-color: var(--ink);
  outline: 0;
}
.card__no {
  font-family: "Italiana", serif;
  font-size: 22px; color: var(--muted);
  letter-spacing: 0.04em;
}
.card__name {
  margin-top: 12px;
  font-family: "Italiana", serif;
  font-size: 30px; font-weight: 400;
  letter-spacing: 0.04em;
}
.card__size {
  margin-top: 6px;
  font-family: "Inter", sans-serif;
  font-size: 12px; letter-spacing: 0.22em;
  color: var(--ink);
  text-transform: uppercase;
}
.card__hint {
  margin-top: 12px;
  font-size: 13px; line-height: 1.5;
  color: var(--ink);
  font-style: italic;
}

/* ===== PRODUCTION ===== */
.prod {
  background: var(--bg);
  padding: 80px 32px;
}
.prod__col {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}
.prod__title {
  margin-top: 14px;
  font-family: "Italiana", serif;
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.15;
}
.prod__title em { font-style: italic; color: var(--muted); }
.prod__body {
  margin: 24px auto 28px;
  max-width: 52ch;
  font-size: 15px; line-height: 1.7;
  color: var(--ink);
}
.prod__list {
  list-style: none;
  text-align: left;
  max-width: 480px;
  margin: 0 auto;
}
.prod__list li {
  padding: 12px 0;
  border-bottom: 1px solid rgba(74,58,68,0.15);
  font-size: 14px; line-height: 1.5;
}
.prod__certs {
  margin-top: 28px;
  font-size: 13px; line-height: 1.6;
  font-style: italic;
  color: var(--muted);
  max-width: 56ch; margin-left: auto; margin-right: auto;
}

/* ===== B2B ===== */
.b2b {
  background: var(--surface);
  padding: 80px 32px;
}
.b2b__col {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.b2b__title {
  margin-top: 14px;
  font-family: "Italiana", serif;
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.15;
}
.b2b__title em { font-style: italic; color: var(--muted); }
.b2b__lede {
  margin: 24px auto 32px;
  max-width: 56ch;
  font-size: 15px; line-height: 1.7;
}
.b2b__rows {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  margin-bottom: 32px;
}
.b2b__rows > div {
  padding: 18px 14px;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  display: flex; flex-direction: column; gap: 6px;
  text-align: left;
}
.b2b__rows > div:nth-child(2n) { border-right: 0; }
.b2b__rows > div:nth-last-child(-n+2) { border-bottom: 0; }
.b2b__rows span {
  font-family: "Inter", sans-serif;
  font-size: 10px; letter-spacing: 0.2em;
  color: var(--muted);
}
.b2b__rows b {
  font-family: "Italiana", serif;
  font-weight: 400;
  font-size: 18px; letter-spacing: 0.04em;
}
.b2b__form {
  display: grid; grid-template-columns: 1fr 1fr 1fr auto;
  gap: 14px; align-items: end;
  text-align: left;
}
.b2b__form label {
  display: flex; flex-direction: column;
  font-family: "Inter", sans-serif;
  font-size: 10px; letter-spacing: 0.22em;
  color: var(--muted); gap: 6px;
}
.b2b__form input, .b2b__form select {
  background: transparent; color: var(--ink);
  border: 0; border-bottom: 1px solid var(--ink);
  padding: 8px 0;
  font: inherit; font-size: 14px; border-radius: 0;
}
.b2b__form input:focus, .b2b__form select:focus { outline: 0; }
.b2b__form button {
  padding: 12px 22px;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
  font-family: "Inter", sans-serif;
  font-size: 11px; letter-spacing: 0.22em;
  border-radius: 0;
}
.b2b__form button:hover { background: var(--ink); color: var(--bg); }

/* ===== FOOTER ===== */
.foot {
  background: var(--bg);
  padding: 40px 32px 24px;
}
.foot__row {
  display: flex; gap: 12px; align-items: center;
  font-family: "Italiana", serif;
  font-size: 16px; letter-spacing: 0.04em;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--ink);
  margin-bottom: 24px;
}
.foot__cols {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  font-size: 13px;
}
.foot__cols p { margin-top: 4px; }
.foot__h {
  font-family: "Inter", sans-serif !important;
  font-size: 10px !important; letter-spacing: 0.24em !important;
  color: var(--muted) !important;
  margin-bottom: 6px;
}

/* ===== MODAL ===== */
.modal[hidden] { display: none; }
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; }
.modal__overlay { position: absolute; inset: 0; background: rgba(74,58,68,0.6); backdrop-filter: blur(8px); }
.modal__card {
  position: relative; width: min(560px, 92vw);
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--ink);
  padding: 36px 32px;
}
.modal__close {
  position: absolute; top: 14px; right: 16px;
  font-family: "Italiana", serif;
  font-size: 22px; width: 32px; height: 32px;
  border-radius: 50%;
}
.modal__close:hover { background: rgba(74,58,68,0.08); }
.modal__eyebrow {
  font-family: "Inter", sans-serif;
  font-size: 10px; letter-spacing: 0.28em;
  color: var(--muted);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--ink);
}
.modal__title {
  margin-top: 14px;
  font-family: "Italiana", serif;
  font-weight: 400;
  font-size: 56px; line-height: 1;
  letter-spacing: 0.04em;
}
.modal__size {
  margin-top: 6px;
  font-family: "Italiana", serif;
  font-style: italic;
  font-size: 22px; color: var(--muted);
}
.modal__body {
  font-size: 14px; line-height: 1.7;
  margin-top: 18px; max-width: 50ch;
}
.modal__spec {
  margin-top: 18px; padding-top: 12px;
  border-top: 1px solid var(--ink);
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 6px 18px;
  font-family: "Inter", sans-serif;
  font-size: 11px; letter-spacing: 0.14em;
}
.modal__spec dd { text-align: right; }
.modal__share {
  margin-top: 24px; padding-top: 14px;
  border-top: 1px solid var(--ink);
  display: flex; justify-content: center;
}
.share {
  font-family: "Inter", sans-serif;
  font-size: 11px; letter-spacing: 0.22em;
  padding: 10px 18px;
  border: 1px solid var(--ink); border-radius: 999px;
  display: inline-flex; gap: 8px; align-items: baseline;
}
.share:hover { background: var(--ink); color: var(--surface); }
.share__num, .share__cap { font-family: "Italiana", serif; font-size: 18px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .gallery__list { grid-template-columns: repeat(3, 1fr); }
  .gallery__list li:nth-child(4),
  .gallery__list li:nth-child(5) { grid-column: span 1; }
  .b2b__form { grid-template-columns: 1fr; }
  .foot__cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .top__brand { font-size: 24px; }
  .display { font-size: 44px; }
  .gallery__list { grid-template-columns: 1fr 1fr; }
  .b2b__rows { grid-template-columns: 1fr; }
  .b2b__rows > div { border-right: 0; border-bottom: 1px solid var(--ink); }
  .b2b__rows > div:last-child { border-bottom: 0; }
  .foot__cols { grid-template-columns: 1fr; }
  .modal__title { font-size: 42px; }
}
