/* Gilded Ensemble - Five Capsules concept demo, v2. Mobile first. */

:root {
  --forest: #2E4438;
  --ink: #1F2F28;
  --gold: #C9982F;
  --gold-deep: #A97E26;
  --wheat: #DCC08A;
  --cream: #F6F1E6;
  --black: #16140F;
  --grey: #8A8172;
  --cream-88: rgba(246, 241, 230, 0.88);
  --hairline: rgba(138, 129, 114, 0.4);
  --ease: ease-out;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--black);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  transition: padding-bottom 0.3s var(--ease);
}
body.bar-space { padding-bottom: 84px; }

h1, h2, h3, .brand-name {
  font-family: "Cormorant Garamond", "Noto Serif SC", Georgia, serif;
  font-weight: 500;
  line-height: 1.12;
}

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

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; }
.wrap.narrow { max-width: 760px; }
.section { padding: 4.5rem 0; }
.section[id] { scroll-margin-top: 72px; }
.section h2 { font-size: 1.75rem; margin: 0.5rem 0 1.25rem; }
.section h2.center, .section-no.center, .claim.center, .section-lede.center { text-align: center; }
.section h2.light, .section-no.light { color: var(--cream); }
.section-lede { max-width: 680px; }
.section-lede.light { color: var(--cream-88); }
.section-lede.center { margin-left: auto; margin-right: auto; }
.section-lede strong { font-weight: 500; color: var(--wheat); }

.section-no {
  font-weight: 500;
  font-size: 0.8125rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 0.5rem;
}
.section-no.light { color: var(--wheat); }

.claim {
  font-family: "Cormorant Garamond", "Noto Serif SC", Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: 1.5rem;
  line-height: 1.3;
  margin: 0 0 1rem;
  color: var(--ink);
}
.claim.light { color: var(--cream); }
.claim.center { margin-left: auto; margin-right: auto; }

/* Buttons: capsule feel from letter-spacing, not radius. Hover darkens, never scales. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.9rem 2.25rem;
  font-family: "Jost", system-ui, sans-serif;
  font-weight: 500;
  font-size: 0.8125rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: none;
  border-radius: 0;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s var(--ease), box-shadow 0.2s var(--ease), color 0.2s var(--ease);
}
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-deep); box-shadow: 0 2px 12px rgba(22, 20, 15, 0.35); }

/* ---------- Top nav: desktop only (mobile keeps only the bottom bar) ---------- */
#topnav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  display: none;
  align-items: center;
  gap: 1.5rem;
  padding: 0.75rem 1.25rem;
  background: rgba(31, 47, 40, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--cream);
  opacity: 0;
  transform: translateY(-100%);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  pointer-events: none;
}
#topnav.show { opacity: 1; transform: none; pointer-events: auto; }
#topnav .brand {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.25rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-right: auto;
}
#topnav .links { display: none; gap: 1.5rem; }
#topnav .links a {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(246, 241, 230, 0.7);
}
#topnav .links a:hover { color: var(--wheat); }
.btn-nav { min-height: 44px; padding: 0.5rem 1.5rem; font-size: 0.75rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  background: var(--ink);
  overflow: hidden;
  color: var(--cream);
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: kenburns 20s ease-out forwards;
  will-change: transform;
}
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.08); } }
.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(31,47,40,0.82) 0%, rgba(31,47,40,0.45) 55%, rgba(31,47,40,0.25) 100%);
}
.frame-line {
  position: absolute;
  top: 0; left: 0;
  height: 1px;
  width: 0;
  background: var(--wheat);
  z-index: 3;
  animation: frameline 1.2s var(--ease) 0.2s forwards;
}
@keyframes frameline { to { width: 100%; } }
.hero-copy {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem 4.5rem;
}
.hero-copy .overline {
  font-weight: 500;
  font-size: 0.8125rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--wheat);
  margin-bottom: 1rem;
}
.hero-copy h1 {
  font-weight: 600;
  font-size: clamp(3rem, 7vw, 5.5rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.02;
}
.hero-copy .tagline {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-size: clamp(1.35rem, 2.6vw, 1.9rem);
  color: var(--cream-88);
  margin: 0.75rem 0 1.75rem;
}
.reveal-line { opacity: 0; animation: linein 0.8s var(--ease) forwards; }
.reveal-line:nth-child(2) { animation-delay: 0.15s; }
.reveal-line:nth-child(3) { animation-delay: 0.3s; }
.reveal-line:nth-child(4) { animation-delay: 0.45s; }
@keyframes linein { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.concept-note {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  z-index: 2;
  font-size: 0.7rem;
  color: rgba(246, 241, 230, 0.6);
  letter-spacing: 0.03em;
}
.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 0.4rem;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.75rem 1rem;
  text-decoration: none;
  color: rgba(246, 241, 230, 0.7);
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}
.scroll-hint i {
  display: block;
  width: 1px;
  height: 36px;
  background: var(--wheat);
  opacity: 0.7;
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- S2 Collections ---------- */
.collections { background: var(--cream); }

.tabs {
  display: flex;
  gap: 0.25rem;
  margin-top: 2.5rem;
  border-bottom: 1px solid var(--hairline);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: 1 0 auto;
  min-width: 44px;
  min-height: 48px;
  padding: 0.9rem 1.1rem;
  background: none;
  border: none;
  border-radius: 0;
  cursor: pointer;
  font-family: "Jost", system-ui, sans-serif;
  font-weight: 500;
  font-size: 0.8125rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--grey);
  box-shadow: inset 0 -2px 0 transparent;
  transition: color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  white-space: nowrap;
}
.tab:hover { color: var(--ink); }
.tab.is-active {
  color: var(--ink);
  box-shadow: inset 0 -2px 0 var(--tab-accent, var(--gold-deep));
}

.panel { padding: 2.5rem 0 3rem; }
.panel[hidden] { display: none; }
.panel-eyebrow {
  font-weight: 500;
  font-size: 0.8125rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.panel-mood {
  font-family: "Cormorant Garamond", "Noto Serif SC", Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: 1.75rem;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 1rem;
}
.panel-copy { max-width: 560px; margin-bottom: 2rem; color: var(--black); }
.panel-imgs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.panel-imgs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s var(--ease);
}
.panel-imgs img:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
.panel-imgs img:not(:first-child) { aspect-ratio: 4 / 5; }
.panel-imgs img:hover { transform: scale(1.02); }

/* Swatches: static grid, no copy */
.swatches {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.75rem;
  margin-top: 0.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--hairline);
}
.swatch .chip { display: block; height: 64px; }
.swatch-name {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.05rem;
  margin-top: 0.5rem;
  line-height: 1.25;
}

/* ---------- S3 Reserve ---------- */
.reserve { background: var(--forest); }
.price-card {
  background: var(--cream);
  border: 1px solid var(--gold);
  border-radius: 0;
  padding: 2.5rem 1.75rem;
  text-align: center;
  color: var(--black);
  margin-top: 2.5rem;
}
.price {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  font-size: 2.5rem;
  color: var(--gold-deep);
  margin: 0.25rem 0;
  font-variant-numeric: tabular-nums;
}
.price-sub { font-size: 0.95rem; color: var(--black); margin-bottom: 0.5rem; }
.price-early {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.price-card hr { border: none; border-top: 1px solid var(--wheat); margin: 1.5rem 0; }
.deposit-line { max-width: 560px; margin: 0 auto 1rem; }
.deposit-line strong { font-weight: 500; color: var(--gold-deep); }
.delivery-line { max-width: 560px; margin: 0 auto 1.75rem; color: var(--black); }
.price-card .btn { margin-bottom: 1.5rem; }
.price-disclaimer { font-size: 0.75rem; color: var(--grey); font-style: italic; }

/* FAQ: hairline separators only, no per-card boxes */
.faq-list { margin-top: 2.5rem; border-top: 1px solid rgba(220, 192, 138, 0.4); }
.faq-item { border-bottom: 1px solid rgba(220, 192, 138, 0.4); }
.faq-q {
  width: 100%;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0.25rem;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: "Jost", system-ui, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--cream);
}
.faq-icon { position: relative; flex: 0 0 14px; height: 14px; }
.faq-icon::before, .faq-icon::after {
  content: "";
  position: absolute;
  background: var(--wheat);
  transition: transform 0.3s var(--ease);
}
.faq-icon::before { left: 0; top: 6px; width: 14px; height: 2px; }
.faq-icon::after { left: 6px; top: 0; width: 2px; height: 14px; }
.faq-item.open .faq-icon::after { transform: rotate(90deg); }
.faq-item.open .faq-icon::before { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s var(--ease); }
.faq-a p { padding: 0 0.25rem 1.25rem; font-size: 0.95rem; color: var(--cream-88); }

/* ---------- S4 Atelier note ---------- */
.atelier { background: var(--cream); }
.atelier-copy { max-width: 680px; margin-bottom: 1.25rem; }
.atelier-contact { font-size: 0.95rem; color: var(--black); }
.atelier-contact a { color: var(--gold-deep); text-decoration: none; border-bottom: 1px solid var(--gold); }
.atelier-contact a:hover { color: var(--ink); }

/* ---------- S5 Footer ---------- */
footer { background: var(--ink); color: var(--cream-88); padding: 3rem 0 2rem; }
.foot-mini { text-align: center; }
.brand-name {
  font-size: 1.5rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: 0.5rem;
}
.foot-line { font-size: 0.95rem; margin-bottom: 1rem; }
.foot-contact { margin-bottom: 1.5rem; }
.foot-contact a { text-decoration: none; border-bottom: 1px solid var(--wheat); }
.foot-contact a:hover { color: var(--wheat); }
.foot-small { font-size: 0.75rem; color: rgba(246, 241, 230, 0.55); }

/* ---------- Deposit bar: mobile only ---------- */
.deposit-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 55;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 1.25rem;
  background: rgba(31, 47, 40, 0.97);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--cream);
  transform: translateY(110%);
  transition: transform 0.35s var(--ease);
  border-top: 1px solid rgba(220, 192, 138, 0.4);
}
.deposit-bar.show { transform: none; }
.bar-text { font-size: 0.8125rem; line-height: 1.5; color: var(--cream-88); }
.bar-text strong { color: var(--gold); font-weight: 500; }
.btn-bar { min-height: 44px; padding: 0.6rem 1.5rem; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center; padding: 1.25rem; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(22, 20, 15, 0.7); }
.modal-card {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: 90svh;
  overflow-y: auto;
  background: var(--cream);
  border: 1px solid var(--gold);
  padding: 2.5rem 2rem;
  animation: linein 0.35s var(--ease);
}
.modal-close {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  color: var(--grey);
  min-width: 44px;
  min-height: 44px;
}
.modal-close:hover { color: var(--black); }
.modal-body h3 { font-size: 2rem; margin: 0.5rem 0 0.75rem; }
.modal-lede { margin-bottom: 1.25rem; font-size: 0.95rem; }
.modal-body form { display: grid; gap: 1rem; }
.modal-body label { display: grid; gap: 0.4rem; font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--black); }
.modal-body .opt { text-transform: none; letter-spacing: 0; color: var(--grey); font-weight: 400; }
.modal-body input {
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 1rem;
  font-family: "Jost", system-ui, sans-serif;
  font-size: 1rem;
  color: var(--black);
  background: #fff;
  border: 1px solid rgba(138, 129, 114, 0.5);
  border-radius: 0;
}
.modal-body input:focus { outline: 2px solid var(--wheat); outline-offset: 0; border-color: var(--gold); }
.modal-mail { color: var(--gold-deep); font-weight: 400; border-bottom: 1px solid var(--gold); text-decoration: none; }
#modal-done-view .btn { margin-top: 1.5rem; }

/* ---------- Desktop ---------- */
@media (min-width: 900px) {
  .section { padding: 6.5rem 0; }
  .section h2 { font-size: clamp(2rem, 4vw, 3rem); }
  #topnav { display: flex; }
  #topnav .links { display: flex; }
  .deposit-bar { display: none; }
  body.bar-space { padding-bottom: 0; }
  .tabs { gap: 0.5rem; }
  .tab { font-size: 0.875rem; padding: 1rem 1.5rem; }
  .panel { padding: 3.5rem 0 4rem; }
  .panel-mood { font-size: 2.25rem; }
  .panel-imgs { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
  .panel-imgs img:first-child { grid-column: auto; aspect-ratio: 4 / 5; }
  .panel-imgs img:not(:first-child) { aspect-ratio: 4 / 5; }
  .swatches { gap: 1rem; }
  .swatch .chip { height: 110px; }
  .swatch-name { font-size: 1.25rem; }
  .price-card { padding: 3rem 4rem; }
  .hero-copy { padding-bottom: 5.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg { animation: none; }
  .frame-line { animation: none; width: 100%; }
  .reveal-line { animation: none; opacity: 1; }
  .reveal { transition: none; opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
