/* =============================================================
   GLOWLATTICE — styles.css
   Archetype: Editorial Light Cream · Brand palette: rose gold / blush
   ============================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  /* Brand palette (from brand board) */
  --ivory:       #FAF6F3;
  --rose-quartz: #F6DDE3;
  --blush:       #EFC5C9;
  --champagne:   #F1E4D6;
  --rose-gold:   #D8A59A;
  --charcoal:    #1C1C1E;

  /* Semantic */
  --bg:        var(--ivory);
  --bg-2:      #F3ECE4;
  --paper:     #FFFFFF;
  --ink:       #211C1D;
  --ink-soft:  #4A4143;
  --ink-mute:  #8A7E7C;
  --accent:    #C4867A;   /* deeper rose gold — readable on ivory */
  --accent-2:  var(--rose-gold);
  --line:      rgba(33, 28, 29, 0.12);
  --line-soft: rgba(33, 28, 29, 0.07);

  --sans:  "Poppins", system-ui, -apple-system, sans-serif;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;

  --gutter: clamp(1.25rem, 5vw, 5rem);
  --maxw: 1280px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);

  --nav-h: 76px;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
  scroll-behavior: smooth;
}
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 300;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
ul { list-style: none; padding: 0; }
::selection { background: var(--blush); color: var(--charcoal); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* =============================================================
   3. Utilities
   ============================================================= */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .6rem 1rem; background: var(--charcoal); color: var(--ivory);
  z-index: 9999; border-radius: 8px; font-size: .85rem; letter-spacing: .02em;
}
.skip-link:focus { top: 1rem; }

.eyebrow {
  font-family: var(--sans);
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--accent);
}

/* =============================================================
   4. Typography
   ============================================================= */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.04; letter-spacing: -0.01em; text-wrap: balance; }

.section-title {
  font-size: clamp(2.1rem, 5.2vw, 3.9rem);
  font-weight: 400;
  color: var(--ink);
}
.section-head { margin-bottom: clamp(2.2rem, 5vw, 3.6rem); }
.section-head .eyebrow { display: block; margin-bottom: 1rem; }
.section-head.split {
  display: grid; gap: 1.4rem;
  align-items: end;
}
.section-note {
  font-size: 1.02rem;
  color: var(--ink-soft);
  max-width: 42ch;
}

/* =============================================================
   5. Components — buttons
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .95rem 1.9rem;
  border-radius: 100px;
  font-family: var(--sans);
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: transform .5s var(--ease-out), background .4s var(--ease-out), color .4s var(--ease-out), box-shadow .5s var(--ease-out);
}
.btn-primary {
  background: var(--charcoal);
  color: var(--ivory);
  box-shadow: 0 10px 30px -12px rgba(33,28,29,.5);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -14px rgba(33,28,29,.55); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-3px); }

/* =============================================================
   6a. Lattice motif (SVG)
   ============================================================= */
.lattice { color: var(--rose-gold); width: 100%; height: 100%; overflow: visible; }
.lattice-grid { opacity: .5; }
.lattice-star { fill: var(--rose-gold); }

/* =============================================================
   6b. Splash
   ============================================================= */
.splash {
  position: fixed; inset: 0; z-index: 1000;
  display: grid; place-items: center;
  background: var(--ivory);
  animation: splashSafety .01s 4.5s forwards;
}
.splash-mark { width: 96px; height: 96px; color: var(--rose-gold); }
.splash .lattice-grid { animation: latticeSpin 8s linear infinite; transform-origin: 60px 60px; }
.splash .lattice-star { animation: starPulse 1.8s var(--ease-soft) infinite; transform-origin: 60px 60px; }
.splash.is-out {
  opacity: 0; pointer-events: none;
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
  transform: scale(1.04);
}
@keyframes splashSafety { to { opacity: 0; pointer-events: none; visibility: hidden; } }
@keyframes latticeSpin { to { transform: rotate(360deg); } }
@keyframes starPulse {
  0%, 100% { transform: scale(.85); opacity: .7; }
  50% { transform: scale(1.05); opacity: 1; }
}

/* =============================================================
   6c. Nav
   ============================================================= */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  transition: background .5s var(--ease-out), box-shadow .5s var(--ease-out), backdrop-filter .5s var(--ease-out);
}
.nav-inner {
  max-width: var(--maxw); margin-inline: auto; height: 100%;
  padding-inline: var(--gutter);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
}
.nav-group { display: flex; gap: 2rem; align-items: center; }
.nav-right { justify-content: flex-end; }
.nav-group a {
  font-size: .78rem; font-weight: 400; letter-spacing: .04em;
  color: var(--ink-soft);
  position: relative; padding: .3rem 0;
  transition: color .35s var(--ease-out);
}
.nav-group a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 100%; height: 1px;
  background: var(--accent); transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--ease-out);
}
.nav-group a:hover { color: var(--ink); }
.nav-group a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-cta { color: var(--ink) !important; }

.nav-brand {
  font-family: var(--serif);
  font-size: 1.35rem;
  letter-spacing: .18em;
  font-weight: 500;
  color: var(--ink);
  padding-left: .18em;
  white-space: nowrap;
}
.nav.is-solid {
  background: rgba(250, 246, 243, 0.82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 1px 0 var(--line-soft);
}

.nav-toggle {
  display: none;
  width: 44px; height: 44px; position: relative; justify-self: end;
}
.nav-toggle span {
  position: absolute; left: 11px; width: 22px; height: 1.5px; background: var(--ink);
  transition: transform .4s var(--ease-out), opacity .3s;
}
.nav-toggle span:nth-child(1) { top: 19px; }
.nav-toggle span:nth-child(2) { top: 25px; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(3px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { transform: translateY(-3px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 99;
  background: var(--ivory);
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: .4rem;
  opacity: 0; pointer-events: none;
  transition: opacity .5s var(--ease-out);
}
.mobile-menu.is-open { opacity: 1; pointer-events: auto; }
.mobile-menu nav { display: flex; flex-direction: column; align-items: center; gap: .2rem; }
.mobile-menu a {
  font-family: var(--serif); font-size: 2.2rem; color: var(--ink); padding: .35rem 0;
}
.mobile-menu-tag {
  margin-top: 2rem; font-size: .74rem; letter-spacing: .22em; text-transform: uppercase; color: var(--accent);
}

/* =============================================================
   7. Hero
   ============================================================= */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center;
  text-align: center;
  padding: calc(var(--nav-h) + 2rem) var(--gutter) 4rem;
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 50% -10%, var(--rose-quartz) 0%, transparent 45%),
    radial-gradient(90% 70% at 85% 20%, var(--champagne) 0%, transparent 50%),
    radial-gradient(80% 80% at 10% 90%, var(--blush) 0%, transparent 55%),
    var(--ivory);
}
.hero-glow {
  position: absolute; inset: -20% -10% -10%;
  background: radial-gradient(40% 35% at 50% 42%, rgba(216,165,154,.35), transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  animation: glowBreathe 9s var(--ease-soft) infinite;
}
@keyframes glowBreathe {
  0%, 100% { opacity: .7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}
.hero-lattice {
  position: absolute; inset: 0; margin: auto;
  width: min(66vh, 540px); height: min(66vh, 540px);
  opacity: .3;
  pointer-events: none;
}
.hero-lattice .lattice-grid { opacity: .34; animation: latticeSpin 60s linear infinite; transform-origin: 60px 60px; }
.hero-lattice .lattice-star {
  fill: var(--rose-gold);
  filter: drop-shadow(0 0 18px rgba(216,165,154,.5));
  animation: starPulse 5s var(--ease-soft) infinite; transform-origin: 60px 60px;
}
.hero-content { position: relative; z-index: 2; max-width: 900px; }
.hero-mark { display: block; width: 72px; height: 72px; margin: 0 auto 1.5rem; color: var(--rose-gold); }
.hero-mark .lattice-grid { opacity: .55; animation: latticeSpin 40s linear infinite; transform-origin: 60px 60px; }
.hero-mark .lattice-star { fill: var(--rose-gold); filter: drop-shadow(0 0 10px rgba(216,165,154,.6)); animation: starPulse 4s var(--ease-soft) infinite; transform-origin: 60px 60px; }
.hero-tag {
  font-family: var(--sans); font-size: .78rem; font-weight: 500;
  letter-spacing: .3em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 1.6rem;
}
.hero-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(3.2rem, 12.5vw, 9.5rem);
  line-height: .92;
  letter-spacing: .02em;
  color: var(--ink);
  display: flex; flex-wrap: wrap; justify-content: center;
}
.hero-title span { display: inline-block; }
.hero-kicker {
  margin-top: 1.4rem;
  font-family: var(--sans); font-size: .82rem; font-weight: 400;
  letter-spacing: .34em; text-transform: uppercase; color: var(--ink-mute);
}
.hero-sub {
  margin: 1.4rem auto 0;
  max-width: 46ch; font-size: 1.06rem; color: var(--ink-soft);
}
.hero-actions { margin-top: 2.4rem; display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-scroll {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  z-index: 2; display: flex; flex-direction: column; align-items: center; gap: .7rem;
  font-size: .66rem; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-mute);
}
.hero-scroll-line { width: 1px; height: 46px; background: linear-gradient(var(--rose-gold), transparent); position: relative; overflow: hidden; }
.hero-scroll-line::after {
  content: ""; position: absolute; top: -50%; left: 0; width: 100%; height: 50%;
  background: var(--charcoal); animation: scrollCue 2.2s var(--ease-soft) infinite;
}
@keyframes scrollCue { 0% { top: -50%; } 60%,100% { top: 100%; } }
@media (max-height: 780px), (max-width: 600px) { .hero-scroll { display: none; } }

/* =============================================================
   8. Intro / marquee
   ============================================================= */
.intro { padding: clamp(4.5rem, 10vw, 8rem) 0 0; }
.intro-grid { display: grid; gap: 1.6rem; }
.intro-lede {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3.6vw, 2.5rem);
  line-height: 1.32;
  font-weight: 400;
  color: var(--ink);
  max-width: 24ch;
}
.intro-lede em { font-style: italic; color: var(--accent); }

.marquee {
  margin-top: clamp(3.5rem, 8vw, 6rem);
  border-block: 1px solid var(--line);
  padding: 1.4rem 0;
  overflow: hidden;
  white-space: nowrap;
}
.marquee-track {
  display: inline-flex; align-items: center; gap: 2.2rem;
  animation: marquee 26s linear infinite;
}
.marquee-track span {
  font-family: var(--serif); font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-style: italic; color: var(--ink); font-weight: 400;
}
.marquee-track .dot { color: var(--rose-gold); font-style: normal; font-size: 1rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* =============================================================
   9. Ethos
   ============================================================= */
.ethos { padding: clamp(4.5rem, 10vw, 8rem) 0; }
.ethos-grid {
  display: grid; gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 20px; overflow: hidden;
  grid-template-columns: 1fr;
}
.ethos-card {
  background: var(--bg);
  padding: clamp(1.8rem, 3vw, 2.6rem);
  transition: background .5s var(--ease-out);
}
.ethos-card:hover { background: var(--paper); }
.ethos-icon {
  display: inline-block; font-size: 1.5rem; color: var(--rose-gold); margin-bottom: 1.1rem;
  transition: transform .6s var(--ease-out);
}
.ethos-card:hover .ethos-icon { transform: rotate(90deg) scale(1.1); }
.ethos-card h3 { font-size: 1.8rem; margin-bottom: .5rem; }
.ethos-card p { font-size: .95rem; color: var(--ink-soft); max-width: 34ch; }

/* =============================================================
   10. Collections
   ============================================================= */
.collections { padding: clamp(4rem, 9vw, 7rem) 0; }
.collections.alt { background: var(--bg-2); }
.cat-grid {
  display: grid; gap: clamp(1.4rem, 3vw, 2.4rem);
  grid-template-columns: 1fr;
}
.product { display: flex; flex-direction: column; }
.product-frame {
  position: relative; aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden;
  transition: transform .6s var(--ease-out), box-shadow .6s var(--ease-out);
}
.product-frame img { width: 100%; height: 100%; object-fit: cover; }
.product:hover .product-frame { transform: translateY(-6px); box-shadow: 0 30px 50px -28px rgba(196,134,122,.5); }
.product-body { padding: 1.2rem .2rem 0; }
.product-cat {
  font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); margin-bottom: .5rem;
}
.product-body h3 { font-size: 1.5rem; margin-bottom: .4rem; }
.product-desc { font-size: .92rem; color: var(--ink-soft); max-width: 40ch; }

/* Branded placeholder frames (swap for real photos later) */
.ph {
  display: grid; place-items: center; position: relative;
  background: linear-gradient(150deg, var(--champagne), var(--rose-quartz));
  box-shadow: inset 0 0 0 1px rgba(196, 134, 122, 0.16);
}
.ph-blush { background: linear-gradient(150deg, var(--blush), var(--rose-quartz)); }
.ph-rose { background: linear-gradient(150deg, var(--rose-quartz), var(--champagne)); }
.ph-champagne { background: linear-gradient(150deg, var(--champagne), var(--ivory)); }
.ph::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 50% at 50% 40%, rgba(255,255,255,.35), transparent 70%);
}
.ph-mark {
  font-family: var(--serif); font-size: 2.4rem; letter-spacing: .1em;
  color: rgba(196,134,122,.55); z-index: 1;
}
.ph-mark.lg { font-size: 4rem; }

/* =============================================================
   11. The Difference
   ============================================================= */
.difference { padding: clamp(4.5rem, 10vw, 8rem) 0; }
.difference-grid { display: grid; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; grid-template-columns: 1fr; }
.difference-visual { order: -1; width: 100%; }
.ph-portrait {
  aspect-ratio: 4 / 5; border-radius: 20px; overflow: hidden; position: relative;
  width: 100%; max-width: 460px;
}
.ph-portrait .lattice-sm {
  position: absolute; width: 55%; top: 50%; left: 50%; transform: translate(-50%,-50%);
  opacity: .6;
}
.ph-portrait .ph-mark { position: absolute; top: 1.2rem; left: 1.4rem; font-size: 1.6rem; }
.difference-copy .section-title { margin-bottom: 2.4rem; }
.difference-copy .eyebrow { display: block; margin-bottom: 1rem; }
.difference-list { display: grid; gap: 2rem; }
.difference-list li { display: flex; gap: 1.4rem; align-items: flex-start; }
.diff-num {
  font-family: var(--serif); font-size: 1.4rem; color: var(--rose-gold);
  min-width: 2.2rem; line-height: 1;
}
.difference-list h3 { font-size: 1.5rem; margin-bottom: .4rem; }
.difference-list p { font-size: .95rem; color: var(--ink-soft); max-width: 46ch; }

/* =============================================================
   12. Story
   ============================================================= */
.story {
  position: relative; overflow: hidden;
  padding: clamp(5rem, 12vw, 9rem) 0;
  background: linear-gradient(160deg, var(--blush), var(--rose-quartz) 60%, var(--champagne));
  text-align: center;
}
.story-lattice {
  position: absolute; top: 50%; right: -6%; width: min(60vw, 460px); aspect-ratio: 1;
  transform: translateY(-50%); opacity: .35; pointer-events: none;
}
.story-lattice .lattice-grid { opacity: .5; animation: latticeSpin 80s linear infinite; transform-origin: 60px 60px; }
.story-lattice .lattice-star { fill: #fff; opacity: .7; }
.story-inner { position: relative; z-index: 2; }
.story-quote {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(1.8rem, 4.6vw, 3.4rem); line-height: 1.28;
  color: var(--charcoal); max-width: 20ch; margin: 1.4rem auto 0;
}
.story .eyebrow { color: var(--charcoal); opacity: .7; }
.story-sign {
  margin-top: 2.2rem; font-size: .78rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--charcoal); font-weight: 500;
}

/* =============================================================
   13. Contact
   ============================================================= */
.contact { padding: clamp(4.5rem, 10vw, 8rem) 0; }
.contact-grid { display: grid; gap: clamp(2.5rem, 6vw, 4.5rem); grid-template-columns: 1fr; }
.contact-head .eyebrow { display: block; margin-bottom: 1rem; }
.contact-head .section-title { margin-bottom: 1.2rem; }
.contact-details { display: grid; gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
.contact-row {
  background: var(--bg); padding: 1.3rem .2rem;
  display: grid; grid-template-columns: 8rem 1fr; align-items: baseline; gap: 1rem;
  transition: background .4s var(--ease-out), padding-left .4s var(--ease-out);
}
a.contact-row:hover { background: var(--paper); padding-left: 1rem; }
.contact-label { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-mute); }
.contact-value { font-family: var(--serif); font-size: clamp(1.3rem, 3vw, 1.9rem); color: var(--ink); }

/* =============================================================
   14. Footer
   ============================================================= */
.footer { padding: clamp(3rem, 6vw, 4.5rem) 0; border-top: 1px solid var(--line); }
.footer-inner { display: grid; gap: 2rem; }
.footer-logo { font-family: var(--serif); font-size: 1.5rem; letter-spacing: .16em; color: var(--ink); display: block; margin-bottom: .5rem; }
.footer-brand p { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-mute); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.4rem; }
.footer-nav a { font-size: .85rem; color: var(--ink-soft); transition: color .35s var(--ease-out); }
.footer-nav a:hover { color: var(--accent); }
.footer-copy { font-size: .78rem; color: var(--ink-mute); }

/* =============================================================
   15. Reveal effects
   ============================================================= */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
  transition-delay: var(--d, 0s);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* Safety: if JS never runs, content is visible */
.no-js .reveal { opacity: 1; transform: none; }

/* =============================================================
   16. Responsive
   ============================================================= */
@media (min-width: 600px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .ethos-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr 1.1fr; align-items: start; }
}

@media (min-width: 900px) {
  .section-head.split { grid-template-columns: 1fr auto; gap: 3rem; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .ethos-grid { grid-template-columns: repeat(5, 1fr); }
  .ethos-card p { min-height: 5.5em; }
  .difference-grid { grid-template-columns: 1fr 1.1fr; }
  .difference-visual { order: 0; justify-self: start; max-width: 460px; }
  .footer-inner { grid-template-columns: 1fr auto; align-items: center; }
  .footer-nav { grid-column: 1 / -1; order: 3; padding-top: 1.5rem; border-top: 1px solid var(--line-soft); }
  .footer-copy { grid-row: 1; grid-column: 2; text-align: right; }
}

@media (max-width: 899px) {
  .nav-left, .nav-right { display: none; }
  .nav-inner { grid-template-columns: 1fr auto; }
  .nav-brand { grid-column: 1; justify-self: start; }
  .nav-toggle { display: block; grid-column: 2; }
}

/* =============================================================
   17. Reduced motion — only gate intrusive loops
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .hero-glow, .hero-scroll-line::after,
  .splash .lattice-grid, .splash .lattice-star,
  .hero-lattice .lattice-grid, .hero-lattice .lattice-star,
  .story-lattice .lattice-grid { animation: none; }
  .marquee-track { animation-duration: 90s; }
}
