:root {
  --ink: #0A0A0A;
  --gold: #C6A75E;
  --gold-soft: #E8D5A3;
  --mist: #F5F5F5;
  --paper: #FFFFFF;
  --muted: #6B6B6B;
}

[x-cloak] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(198, 167, 94, 0.08), transparent),
    linear-gradient(180deg, #fff 0%, #fafafa 100%);
  min-height: 100vh;
}

.announcement-bar {
  background: var(--ink);
  color: var(--gold-soft);
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.6rem 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #000;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.header-inner {
  max-width: 1480px;
  margin: 0 auto;
  padding: 0.3rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
}

.header-inner > :last-child { justify-self: end; }

.brand-mark { text-align: center; text-decoration: none; display: flex; flex-direction: column; align-items: center; gap: 0.15rem; }
.brand-logo {
  display: block;
  max-height: 72px;
  max-width: 180px;
  width: auto;
  height: auto;
  object-fit: contain;
}
.brand-logo--footer {
  max-height: 72px;
  max-width: 200px;
}
.brand-logo--invert {
  filter: brightness(0) invert(1);
}
.brand-short {
  font-size: 10px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}
.brand-name {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.15rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #fff;
  font-weight: 500;
  line-height: 1.1;
}
.wait-line {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.25rem;
  font-style: italic;
  color: var(--ink);
  line-height: 1.45;
}

.nav-link {
  color: #fff;
  opacity: 0.72;
  transition: opacity 0.25s ease, color 0.25s ease;
}
.nav-link:hover { opacity: 1; color: var(--gold); }
.site-header .btn-gold-sm {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.45);
}
.site-header .btn-gold-sm:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}

.btn-gold, .btn-gold-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: var(--gold-soft);
  border: 1px solid var(--ink);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 11px;
  transition: all 0.35s ease;
  text-decoration: none;
}
.btn-gold { padding: 1rem 2rem; }
.btn-gold-sm { padding: 0.55rem 1rem; }
.btn-gold:hover, .btn-gold-sm:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  color: var(--ink);
  padding: 1rem 2rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 11px;
  transition: all 0.35s ease;
  text-decoration: none;
  background: transparent;
}
.btn-outline:hover { background: var(--ink); color: #fff; }

.search-panel {
  border-top: 1px solid rgba(255,255,255,0.08);
  background: #0A0A0A;
  animation: fadeDown 0.3s ease;
}
.search-input {
  width: 100%;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.75rem;
  padding: 0.75rem 0;
  outline: none;
  background: transparent;
  color: #fff;
}
.search-input::placeholder { color: rgba(255,255,255,0.55); }

.mobile-nav {
  display: flex;
  flex-direction: column;
  padding: 1rem 1.5rem 1.5rem;
  gap: 1rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  background: #0A0A0A;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 12px;
}
.mobile-nav a {
  color: #fff;
  text-decoration: none;
}
.mobile-nav a:hover {
  color: var(--gold);
}

.hero {
  position: relative;
  min-height: calc(100vh - 4.5rem);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--ink);
  color: #fff;
}
.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10,10,10,0.15) 0%, rgba(10,10,10,0.72) 100%),
    radial-gradient(circle at 70% 30%, rgba(198,167,94,0.25), transparent 45%),
    linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 50%, #2a2418 100%);
  animation: heroGlow 12s ease-in-out infinite alternate;
}
.hero-media.has-photo {
  animation: none;
  background: #0A0A0A;
}
.hero-media.has-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,0.18) 0%, rgba(10,10,10,0.72) 100%);
  pointer-events: none;
}
.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 4rem 1.5rem 5rem;
}
.hero-title {
  margin: 0 0 1.25rem;
}
.hero-brand {
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(3rem, 8vw, 6.5rem);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  line-height: 0.95;
  animation: riseIn 1s ease both;
}
.hero-headline {
  display: block;
  margin-top: 1.1rem;
  max-width: 45ch;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.6rem, 3.2vw, 2.35rem);
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.02em;
  line-height: 1.25;
  color: var(--gold-soft);
  animation: riseIn 1s ease 0.12s both;
}
.hero-line {
  max-width: 45rem;
  color: rgba(255,255,255,0.78);
  font-weight: 300;
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 2rem;
  animation: riseIn 1s ease 0.15s both;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  animation: riseIn 1s ease 0.3s both;
}
.hero .btn-gold {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
}
.hero .btn-outline {
  border-color: rgba(255,255,255,0.5);
  color: #fff;
}
.hero .btn-outline:hover {
  background: #fff;
  color: var(--ink);
}

.auth-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 5.5rem 1.5rem;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 480px);
  gap: 3rem;
  align-items: start;
}
.auth-shell--wide {
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 560px);
}
.auth-copy {
  padding-top: 1.25rem;
  max-width: 34rem;
}
.auth-card {
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(10,10,10,0.08);
  box-shadow: 0 20px 60px rgba(10,10,10,0.08);
  padding: 2rem;
}
.auth-form {
  display: grid;
  gap: 1.1rem;
}
.auth-grid {
  display: grid;
  gap: 1rem;
}
.auth-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.form-field {
  display: grid;
  gap: 0.45rem;
}
.field-help {
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}
.field-help ul {
  margin: 0.35rem 0 0;
  padding-left: 1rem;
}
.field-error,
.form-errors {
  font-size: 12px;
  line-height: 1.6;
  color: #8B1E3F;
}
.form-errors {
  background: rgba(139, 30, 63, 0.06);
  border: 1px solid rgba(139, 30, 63, 0.14);
  padding: 0.9rem 1rem;
}
.form-errors p {
  margin: 0;
}
.auth-submit {
  width: 100%;
  margin-top: 0.25rem;
}
.auth-switch {
  margin: 1.25rem 0 0;
  font-size: 14px;
  color: var(--muted);
}
.auth-switch a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid rgba(10,10,10,0.2);
}
.auth-switch a:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.section {
  max-width: 1400px;
  margin: 0 auto;
  padding: 5.5rem 1.5rem;
}
.section-label {
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}
.section-title {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 500;
  line-height: 1.15;
  margin-bottom: 1rem;
}
.section-lead {
  color: var(--muted);
  max-width: 36rem;
  font-weight: 300;
  line-height: 1.7;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
}
@media (min-width: 1100px) {
  .product-grid { grid-template-columns: repeat(4, 1fr); }
}

.product-card {
  group: true;
  text-decoration: none;
  color: inherit;
  display: block;
}
.product-media {
  aspect-ratio: 3/4;
  background:
    linear-gradient(160deg, #ece8e1 0%, #d9d2c5 100%);
  overflow: hidden;
  position: relative;
  margin-bottom: 1rem;
}
.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.product-card:hover .product-media img { transform: scale(1.05); }
.product-name {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}
.product-meta {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.collection-tile {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  text-decoration: none;
  color: #fff;
  background: #1a1a1a;
}
.collection-tile--wide {
  aspect-ratio: 16/10;
}
.collection-tile-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  z-index: 0;
  pointer-events: none;
}
.collection-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(10,10,10,0.05) 28%, rgba(10,10,10,0.82) 100%);
  pointer-events: none;
}
.collection-tile-copy {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 1.6rem 1.4rem 1.45rem;
  color: #fff;
  text-shadow: 0 1px 18px rgba(0,0,0,0.45);
}
.collection-tile-kicker {
  margin: 0 0 0.45rem;
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-soft);
}
.collection-tile-copy h2,
.collection-tile-copy h3 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.7rem, 2.4vw, 2.35rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.12;
  color: #fff;
  margin: 0;
}
.collection-tile-sub {
  margin: 0.45rem 0 0;
  max-width: 34ch;
  color: rgba(255,255,255,0.86);
  font-size: 0.92rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hero--collection {
  min-height: min(78vh, 720px);
}
.hero--collection .section-label {
  color: var(--gold-soft);
}
.hero--collection .hero-content {
  padding-top: 7rem;
}
.collection-hero-title {
  margin: 0.35rem 0 0.85rem;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 0.98;
  color: #fff;
}
.hero--collection .hero-headline {
  color: var(--gold-soft);
  max-width: 28ch;
}
.hero--collection .hero-line {
  max-width: 38rem;
}

.site-footer {
  background: var(--ink);
  color: #fff;
  margin-top: 4rem;
  padding: 4rem 1.5rem 2rem;
}
.site-footer .brand-name { color: #fff; }
.footer-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}
.footer-heading {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.65rem;
}
.footer-links a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.25s ease;
}
.footer-links a:hover { color: var(--gold-soft); }
.footer-bottom {
  max-width: 1400px;
  margin: 3rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 12px;
  color: rgba(255,255,255,0.45);
}

.form-shell {
  max-width: 720px;
  margin: 0 auto;
  display: grid;
  gap: 1.25rem;
}
.form-label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  color: var(--muted);
}
.form-input, .form-select, .form-textarea {
  width: 100%;
  border: 1px solid rgba(10,10,10,0.15);
  background: #fff;
  padding: 0.85rem 1rem;
  font: inherit;
  outline: none;
  transition: border-color 0.25s ease;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--gold);
}
.form-textarea { min-height: 120px; resize: vertical; }

.dashboard-layout {
  max-width: 1400px;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
  display: grid;
  gap: 2rem;
}
@media (min-width: 900px) {
  .dashboard-layout { grid-template-columns: 240px 1fr; }
}
.dash-nav a {
  display: block;
  padding: 0.7rem 0;
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.08em;
  border-bottom: 1px solid transparent;
  transition: color 0.25s ease;
}
.dash-nav a:hover, .dash-nav a.active { color: var(--ink); }

.timeline {
  border-left: 1px solid rgba(198,167,94,0.45);
  margin-left: 0.5rem;
  padding-left: 1.5rem;
  display: grid;
  gap: 1.5rem;
}
.timeline-item { position: relative; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -1.72rem;
  top: 0.35rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(198,167,94,0.2);
}

.pay-track {
  height: 3px;
  background: rgba(0,0,0,0.08);
  overflow: hidden;
}
.pay-track span {
  display: block;
  height: 100%;
  background: var(--gold);
}
.dress-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.1rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.dress-step {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.dress-step.is-done,
.dress-step.is-current { color: var(--gold); }
.dress-step.is-current { font-weight: 600; }

.toast {
  background: var(--ink);
  color: var(--gold-soft);
  padding: 0.9rem 1.2rem;
  font-size: 13px;
  letter-spacing: 0.04em;
  box-shadow: 0 12px 40px rgba(0,0,0,0.18);
  animation: riseIn 0.35s ease;
}

@keyframes riseIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes heroGlow {
  from { filter: saturate(1); }
  to { filter: saturate(1.15) brightness(1.05); }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

.atelier-match {
  padding: 1.5rem 0 0;
  border-top: 1px solid rgba(10,10,10,0.08);
}
.atelier-match--compact {
  border-top: none;
  padding: 0;
}
.tone-chips, .expr-chips, .swatch-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}
.tone-chip, .expr-chip, .colour-swatch {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  border: 1px solid rgba(10,10,10,0.12);
  background: #fff;
  padding: 0.45rem 0.75rem;
  font-size: 12px;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  text-align: left;
}
.tone-chip:hover, .expr-chip:hover, .colour-swatch:hover,
.tone-chip.is-selected, .expr-chip.is-selected, .colour-swatch.is-selected {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold);
}
.tone-swatch, .colour-dot {
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  border: 1px solid rgba(10,10,10,0.12);
  flex-shrink: 0;
}
.expr-chip {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  max-width: 16rem;
  padding: 0.75rem 1rem;
}
.expr-label {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
}
.expr-hint {
  font-size: 11px;
  color: var(--muted);
  font-weight: 300;
  letter-spacing: 0;
}
.colour-swatch {
  flex-direction: column;
  align-items: flex-start;
  min-width: 7.5rem;
  padding: 0.7rem 0.85rem;
}
.colour-name { font-size: 12px; }
.colour-meta {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (max-width: 900px) {
  .auth-shell,
  .auth-shell--wide {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }
  .auth-copy {
    padding-top: 0;
    max-width: none;
  }
}

@media (max-width: 640px) {
  .auth-card {
    padding: 1.25rem;
  }
  .auth-grid--two {
    grid-template-columns: 1fr;
  }
}
.colourway-hero { position: relative; }
.colourway-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  mix-blend-mode: multiply;
  opacity: 0.42;
}
.colourway-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 0.7rem 1rem;
  background: linear-gradient(transparent, rgba(10,10,10,0.72));
  color: var(--gold-soft);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.colourway-thumb {
  border: 1px solid transparent;
  padding: 0;
  cursor: pointer;
  background: none;
}
.colourway-thumb.is-active { border-color: var(--gold); }
