/* ==========================================================
   by yrame: brand styles
   Brand colours live here. Change once, updates everywhere.
   ========================================================== */
:root {
  --black: #0f0f0f;
  --white: #ffffff;
  --ivory: #faf8f4;
  --beige: #ece4d8;
  --sand: #d8c8b2;
  --taupe: #8a7760;
  --grey: #6b6661;

  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(16px, 5vw, 72px);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--black);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--serif); font-weight: 300; margin: 0; line-height: 1.1; }
h2 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); }
p { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Editorial tone: softens colourful photos into the black/white/beige palette.
   Toggle it in the admin under Brand > Image tone. */
body.tone-editorial img:not(.no-tone) { filter: grayscale(.85) sepia(.16) contrast(1.02); transition: filter .8s var(--ease), transform 1.2s var(--ease); }
body.tone-editorial .card:hover img,
body.tone-editorial .lookbook-item:hover img { filter: grayscale(0) sepia(0); }

.eyebrow {
  font-size: .72rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--taupe);
  margin-bottom: 1.25rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: .74rem;
  font-weight: 400;
  letter-spacing: .26em;
  text-transform: uppercase;
  padding: 1.1rem 2.4rem;
  border: 1px solid currentColor;
  background: transparent;
  cursor: pointer;
  transition: background .4s var(--ease), color .4s var(--ease);
}
.btn-light { color: var(--white); }
.btn-light:hover { background: var(--white); color: var(--black); }
.btn-dark { color: var(--white); background: var(--black); border-color: var(--black); }
.btn-dark:hover { background: transparent; color: var(--black); }

/* ---------- Announcement + Nav ---------- */
.announcement {
  background: var(--black);
  color: var(--beige);
  text-align: center;
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  padding: .7rem var(--gutter);
}
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.4rem var(--gutter);
  background: var(--ivory);
  border-bottom: 1px solid transparent;
  transition: border-color .4s, padding .4s var(--ease);
}
.nav.scrolled { border-color: var(--beige); padding-top: 1rem; padding-bottom: 1rem; }
.logo {
  font-family: var(--serif);
  font-size: 1.9rem;
  font-weight: 400;
  font-style: italic;
  letter-spacing: .02em;
}
.nav-links { display: flex; gap: 2.6rem; }
.nav-links a {
  font-size: .72rem; letter-spacing: .24em; text-transform: uppercase;
  position: relative; padding: .3rem 0;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: var(--black); transform: scaleX(0); transform-origin: right;
  transition: transform .5s var(--ease);
}
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 26px; height: 1px; background: var(--black); margin: 7px 0; transition: transform .4s var(--ease); }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: calc(100svh - 80px);
  min-height: 560px;
  max-height: 960px;
  display: flex; align-items: flex-end;
  color: var(--white);
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; }
.hero-media img { animation: heroZoom 14s var(--ease) forwards; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(15,15,15,.45) 0%, rgba(15,15,15,0) 60%),
    linear-gradient(180deg, rgba(15,15,15,0) 35%, rgba(15,15,15,.55) 100%);
}
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero-content { position: relative; padding: 0 var(--gutter) clamp(3rem, 9vh, 6rem); max-width: 760px; }
.hero .eyebrow { color: var(--beige); }
.hero h1 { font-size: clamp(3rem, 8vw, 6.4rem); white-space: pre-line; margin-bottom: 1.5rem; }
.hero-sub { font-size: 1.05rem; max-width: 30rem; margin-bottom: 2.5rem; color: rgba(255,255,255,.88); }

/* ---------- Sections ---------- */
.section { padding: clamp(5rem, 11vw, 9rem) var(--gutter); }
.section-beige { background: var(--beige); }
.section-dark { background: var(--black); color: var(--ivory); }
.section-head { text-align: center; max-width: 620px; margin: 0 auto clamp(3rem, 6vw, 5rem); }
.section-head p { color: var(--grey); margin-top: 1rem; }

/* ---------- Collections ---------- */
.collections-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 1.6vw, 24px); }
.card { position: relative; overflow: hidden; display: block; }
.card .card-media { aspect-ratio: 3 / 4; overflow: hidden; background: var(--beige); }
.card:hover img { transform: scale(1.05); }
.collection-card .card-caption {
  position: absolute; inset: auto 0 0 0; padding: 2rem 1.5rem 1.6rem;
  color: var(--white);
  background: linear-gradient(0deg, rgba(15,15,15,.65), transparent);
}
.collection-card h3 { font-size: 1.9rem; }
.collection-card p { font-size: .8rem; letter-spacing: .06em; opacity: .85; }

/* ---------- Products ---------- */
.products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2vw, 32px); }
.product-card .card-media { aspect-ratio: 4 / 5; }
.product-card .tag {
  position: absolute; top: 1rem; left: 1rem;
  background: var(--ivory); color: var(--black);
  font-size: .62rem; letter-spacing: .22em; text-transform: uppercase; padding: .35rem .7rem;
}
.product-info { display: flex; justify-content: space-between; gap: 1rem; padding-top: 1rem; }
.product-info h3 { font-size: 1.3rem; }
.product-info .price { font-size: .9rem; letter-spacing: .06em; color: var(--grey); white-space: nowrap; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 7vw, 7rem); align-items: center; }
.about-media { aspect-ratio: 4 / 5; overflow: hidden; }
.about-text h2 { margin-bottom: 2rem; }
.about-body p { color: var(--grey); margin-bottom: 1.2rem; max-width: 34rem; }

/* ---------- Stats ---------- */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--sand); border-bottom: 1px solid var(--sand);
  margin: 0 var(--gutter);
}
.stat { text-align: center; padding: clamp(2.5rem, 5vw, 4rem) 1rem; }
.stat + .stat { border-left: 1px solid var(--sand); }
.stat-number { font-family: var(--serif); font-size: clamp(2.6rem, 5vw, 4rem); line-height: 1; }
.stat-label { font-size: .72rem; font-weight: 400; letter-spacing: .24em; text-transform: uppercase; color: var(--taupe); margin-top: .8rem; }

/* ---------- Lookbook ---------- */
.lookbook-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-flow: dense;
  grid-auto-rows: clamp(220px, 24vw, 400px); gap: clamp(10px, 1.4vw, 20px);
}
.lookbook-item { position: relative; overflow: hidden; cursor: zoom-in; background: var(--beige); }
.lookbook-item:nth-child(6n+1), .lookbook-item:nth-child(6n+4) { grid-row: span 2; }
.lookbook-item:hover img { transform: scale(1.04); }
.lookbook-item figcaption {
  position: absolute; left: 1rem; bottom: 1rem;
  font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: var(--white);
  opacity: 0; transform: translateY(8px); transition: all .5s var(--ease);
  text-shadow: 0 1px 12px rgba(0,0,0,.4);
}
.lookbook-item:hover figcaption { opacity: 1; transform: none; }

.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(15,15,15,.94);
  display: grid; place-items: center; padding: 4vh 4vw; cursor: zoom-out;
}
.lightbox img { max-width: 100%; max-height: 92vh; width: auto; height: auto; object-fit: contain; filter: none !important; }

/* ---------- Testimonials ---------- */
.testimonials { text-align: center; }
.testimonials h2 { margin-bottom: 3.5rem; color: var(--beige); }
.quote-track { position: relative; max-width: 820px; margin: 0 auto; min-height: 220px; }
.quote {
  position: absolute; inset: 0; opacity: 0; transition: opacity 1s var(--ease);
}
.quote.active { opacity: 1; position: relative; }
.quote blockquote { margin: 0; font-family: var(--serif); font-style: italic; font-size: clamp(1.5rem, 3vw, 2.3rem); line-height: 1.35; }
.quote cite { display: block; margin-top: 2rem; font-style: normal; font-size: .72rem; letter-spacing: .26em; text-transform: uppercase; color: var(--sand); }
.quote-dots { display: flex; justify-content: center; gap: .8rem; margin-top: 2.5rem; }
.quote-dots button { width: 28px; height: 1px; padding: 6px 0; border: 0; background: none; cursor: pointer; position: relative; }
.quote-dots button::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--grey); }
.quote-dots button.active::after { background: var(--beige); }

/* ---------- Newsletter ---------- */
.newsletter { text-align: center; }
.newsletter p { color: var(--grey); margin: 1rem auto 2.5rem; max-width: 30rem; }
.newsletter-form { display: flex; max-width: 520px; margin: 0 auto; }
.newsletter-form input {
  flex: 1; min-width: 0; border: 1px solid var(--black); border-right: 0; background: transparent;
  padding: 1rem 1.2rem; font: inherit; font-size: .9rem; color: var(--black);
}
.newsletter-form input:focus { outline: none; background: var(--ivory); }
.form-note { font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: var(--black) !important; }

/* ---------- Footer ---------- */
.footer { background: var(--black); color: var(--sand); padding: clamp(4rem, 8vw, 6rem) var(--gutter) 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 3rem; padding-bottom: 4rem; border-bottom: 1px solid #2a2a2a; }
.logo-footer { color: var(--ivory); font-size: 2.4rem; margin-bottom: .8rem; }
.logo-img { display: block; width: auto; max-width: min(220px, 50vw); height: var(--logo-h, 44px); object-fit: contain; }
.logo-footer .logo-img { height: calc(var(--logo-h, 44px) * 1.3); max-width: 260px; }
@media (max-width: 760px) { .nav .logo-img { height: calc(var(--logo-h, 44px) * .8); } }
.footer h3 { font-family: var(--sans); font-size: .7rem; font-weight: 400; letter-spacing: .26em; text-transform: uppercase; color: var(--ivory); margin-bottom: 1.2rem; }
.footer p { font-size: .9rem; white-space: pre-line; }
.footer a:hover { color: var(--ivory); }
.socials { display: flex; flex-direction: column; gap: .3rem; }
.copyright { padding-top: 2rem; font-size: .72rem; letter-spacing: .12em; color: var(--grey); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .hero-media img { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .collections-grid, .products-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; inset: 0; top: 0; z-index: -1;
    flex-direction: column; justify-content: center; align-items: center; gap: 2rem;
    background: var(--ivory);
    opacity: 0; pointer-events: none; transition: opacity .4s var(--ease);
  }
  .nav-links.open { opacity: 1; pointer-events: auto; }
  .nav-links a { font-family: var(--serif); font-size: 2rem; letter-spacing: .02em; text-transform: none; }
  .about { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--sand); }
  .lookbook-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 46vw; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .newsletter-form { flex-direction: column; gap: .8rem; }
  .newsletter-form input { border-right: 1px solid var(--black); }
}
@media (max-width: 480px) {
  .collections-grid, .products-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .collection-card h3 { font-size: 1.4rem; }
  .collection-card .card-caption { padding: 1.2rem 1rem 1rem; }
  .product-info { flex-direction: column; gap: .1rem; }
  .product-info h3 { font-size: 1.1rem; }
}
