/* =========================================================
   Smile Skin Co. — boutique site styles
   ========================================================= */

:root {
  --ivory: #F6F1E9;
  --cream: #EFE6D8;
  --sand: #E4D7C3;
  --blush: #EBD6CA;
  --mist: #DCE3EE;
  --navy: #162254;
  --navy-deep: #0C1435;
  --gold: #B8996A;
  --gold-soft: #D9C29A;
  --ink: #1A1F36;
  --muted: #6C6F82;
  --line: rgba(22, 34, 84, 0.14);

  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;
  --script: "Pinyon Script", cursive;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --gutter: clamp(16px, 4vw, 64px);
  --radius-arch: 999px 999px 0 0;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.is-loading { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
em { font-style: italic; }
::selection { background: var(--navy); color: var(--ivory); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (hover: hover) and (pointer: fine) {
  body, a, button { cursor: none; }
}

/* ---------- Type helpers ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 300; line-height: 0.98; letter-spacing: -0.01em; color: var(--navy); }
h2 { font-size: clamp(2.8rem, 6.4vw, 6rem); }
h2 em, h1 em, h3 em { font-style: italic; color: var(--gold); }
.center { text-align: center; justify-content: center; }
.eyebrow {
  display: flex; align-items: center; gap: 14px;
  font-size: 0.72rem; letter-spacing: 0.32em; text-transform: uppercase; font-weight: 400;
  color: var(--navy); margin-bottom: 28px;
}
.eyebrow.light { color: var(--gold-soft); }
.eyebrow__line { width: 42px; height: 1px; background: currentColor; transform-origin: left; display: inline-block; }
.script { font-family: var(--script); color: var(--gold); font-size: clamp(2rem, 3.5vw, 3.2rem); line-height: 1; }

/* split text */
.line-mask { display: block; overflow: hidden; padding-bottom: 0.2em; margin-bottom: -0.2em; } /* room for descenders (g, y, p) */
.line-inner { display: block; will-change: transform; }
.word { display: inline-block; white-space: nowrap; }
.char { display: inline-block; will-change: transform; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  height: 58px; padding: 0 34px; border-radius: 999px; overflow: hidden;
  font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 400;
  isolation: isolate; white-space: nowrap;
}
.btn--sm { height: 46px; padding: 0 24px; font-size: 0.72rem; letter-spacing: 0.14em; }
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  transform: translateY(101%); transition: transform 0.7s var(--ease);
}
.btn:hover::before { transform: translateY(0); }
.btn__text { position: relative; display: inline-block; overflow: hidden; height: 1.4em; line-height: 1.4em; }
.btn__text > span, .link-roll span { display: block; position: relative; transition: transform 0.6s var(--ease); }
.btn__text > span::after, .link-roll span::after {
  content: attr(data-text); position: absolute; left: 0; top: 100%; width: 100%;
}
.btn:hover .btn__text > span, .link-roll:hover span { transform: translateY(-100%); }

.btn--navy { background: var(--navy); color: var(--ivory); }
.btn--navy::before { background: var(--gold); }
.btn--ghost { color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); }
.btn--ghost::before { background: var(--navy); }
.btn--ghost:hover { color: var(--ivory); }
.btn--ivory { background: var(--ivory); color: var(--navy); }
.btn--ivory::before { background: var(--gold-soft); }

.link-roll { position: relative; display: inline-block; overflow: hidden; height: 1.6em; line-height: 1.6em; }
.link-roll span { display: inline-block; position: relative; }

/* ---------- Loader ---------- */
.loader { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; pointer-events: none; }
.loader__panel { position: absolute; left: 0; width: 100%; height: 50.5%; background: var(--ivory); }
.loader__panel--top { top: 0; }
.loader__panel--bottom { bottom: 0; }
.loader__inner { position: relative; display: flex; flex-direction: column; align-items: center; gap: 26px; }
.loader__logo { width: min(340px, 70vw); clip-path: inset(0 100% 0 0); }
.loader__bar { width: min(240px, 50vw); height: 1px; background: var(--line); overflow: hidden; }
.loader__bar span { display: block; height: 100%; width: 100%; background: var(--navy); transform: scaleX(0); transform-origin: left; }
.loader__count { font-family: var(--serif); font-size: 1rem; letter-spacing: 0.2em; color: var(--navy); }

/* ---------- Cursor ---------- */
.cursor { position: fixed; top: 0; left: 0; z-index: 90; pointer-events: none; display: none; }
@media (hover: hover) and (pointer: fine) { .cursor { display: block; } }
.cursor__dot, .cursor__ring { position: fixed; top: 0; left: 0; border-radius: 50%; will-change: transform; }
.cursor__dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--navy); }
.cursor__ring {
  width: 40px; height: 40px; margin: -20px 0 0 -20px; border: 1px solid rgba(22, 34, 84, 0.45);
  display: grid; place-items: center;
  transition: width 0.5s var(--ease), height 0.5s var(--ease), margin 0.5s var(--ease), background 0.4s, border-color 0.4s;
}
.cursor__label { font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ivory); opacity: 0; transition: opacity 0.3s; }
.cursor.is-hover .cursor__ring { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: rgba(184, 153, 106, 0.18); border-color: var(--gold); }
.cursor.is-view .cursor__ring { width: 96px; height: 96px; margin: -48px 0 0 -48px; background: var(--navy); border-color: var(--navy); }
.cursor.is-view .cursor__label { opacity: 1; }
.cursor.is-view .cursor__dot { opacity: 0; }
.cursor.on-dark .cursor__dot { background: var(--ivory); }
.cursor.on-dark .cursor__ring { border-color: rgba(246, 241, 233, 0.5); }

/* ---------- Progress / grain ---------- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 80; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--navy)); transform: scaleX(0); transform-origin: left; }
.grain {
  position: fixed; inset: -50%; z-index: 70; pointer-events: none; opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 22px var(--gutter);
  transition: transform 0.7s var(--ease), background 0.5s, padding 0.5s var(--ease), box-shadow 0.5s;
}
.nav.is-scrolled { background: rgba(246, 241, 233, 0.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); padding-top: 14px; padding-bottom: 14px; box-shadow: 0 1px 0 var(--line); }
.nav.is-hidden { transform: translateY(-110%); }
.nav__logo img { height: 30px; width: auto; }
.nav__links { display: flex; gap: clamp(22px, 3vw, 46px); font-size: 0.86rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--navy); }
.nav__cta { font-size: 0.78rem; font-weight: 500; }
.nav__toggle { display: none; width: 44px; height: 44px; position: relative; z-index: 2; }
.nav__toggle span { position: absolute; left: 10px; right: 10px; height: 1px; background: var(--navy); transition: transform 0.6s var(--ease), background 0.4s; }
.nav__toggle span:first-child { top: 18px; }
.nav__toggle span:last-child { top: 26px; }
.menu-open .nav__toggle span:first-child { transform: translateY(4px) rotate(45deg); background: var(--ivory); }
.menu-open .nav__toggle span:last-child { transform: translateY(-4px) rotate(-45deg); background: var(--ivory); }
.menu-open .nav__logo img { filter: brightness(0) invert(1); }

.menu { position: fixed; inset: 0; z-index: 55; visibility: hidden; display: flex; flex-direction: column; justify-content: center; padding: 0 var(--gutter); }
.menu__bg { position: absolute; inset: 0; background: var(--navy); clip-path: circle(0% at calc(100% - 40px) 40px); }
.menu__links { position: relative; display: flex; flex-direction: column; gap: 8px; }
.menu__links a { font-family: var(--serif); font-size: clamp(2.6rem, 11vw, 4.2rem); color: var(--ivory); line-height: 1.1; display: flex; align-items: baseline; gap: 16px; overflow: hidden; }
.menu__links em { font-family: var(--sans); font-style: normal; font-size: 0.75rem; color: var(--gold-soft); letter-spacing: 0.2em; }
.menu__foot { position: relative; margin-top: 48px; display: flex; flex-direction: column; gap: 6px; color: var(--gold-soft); font-size: 0.95rem; }

/* Call us popover (desktop only; phones dial straight from the button) */
.call-pop {
  position: absolute; top: calc(100% + 6px); right: var(--gutter); width: 300px; padding: 30px 28px 26px;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px;
  background: var(--ivory); border-radius: 22px; box-shadow: 0 30px 70px -30px rgba(22, 34, 84, 0.45), inset 0 0 0 1px var(--line);
}
.call-pop[hidden] { display: none; }
.call-pop__close { position: absolute; top: 10px; right: 14px; font-size: 1.4rem; line-height: 1; color: var(--muted); padding: 6px; }
.call-pop__close:hover { color: var(--navy); }
.call-pop__eyebrow { font-size: 0.66rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); }
.call-pop__number { font-family: var(--serif); font-size: 2rem; line-height: 1; color: var(--navy); }
.call-pop__qr { width: 140px; height: 140px; margin: 8px 0 2px; padding: 10px; background: #fff; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line); }
.call-pop__hint { font-size: 0.85rem; color: var(--ink); max-width: 15rem; line-height: 1.45; }
.call-pop__hours { font-size: 0.72rem; color: var(--muted); letter-spacing: 0.04em; }

@media (max-width: 960px) {
  .nav__links { display: none; }
  .nav__cta { height: 40px; line-height: 40px; padding: 0 18px; margin-left: auto; margin-right: 4px; }
  .nav__toggle { display: block; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: grid; grid-template-columns: 1.05fr 1fr; align-items: center;
  gap: clamp(24px, 4vw, 80px); padding: 140px var(--gutter) 90px; overflow: hidden;
}
.hero__blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.7; pointer-events: none; }
.hero__blob--a { width: 46vw; height: 46vw; right: -10vw; top: -12vw; background: radial-gradient(circle, var(--blush), transparent 65%); }
.hero__blob--b { width: 38vw; height: 38vw; left: -12vw; bottom: -14vw; background: radial-gradient(circle, var(--mist), transparent 65%); }
.hero__copy { position: relative; z-index: 2; }
.hero__title { font-size: clamp(3.4rem, 8.4vw, 8.6rem); margin-bottom: 34px; }
.hero__title .line { display: block; }
.hero__title em { padding-right: 0.06em; }
.hero__sub { max-width: 30rem; color: var(--muted); font-size: 1.05rem; margin-bottom: 40px; }
.hero__ctas { display: flex; gap: 14px; flex-wrap: wrap; }

/* boutique video behind the right half. The video itself is masked to transparent at its left and bottom
   edges (instead of covering it with an opaque gradient), so there is no hard edge left to show as a seam. */
.hero__photo {
  position: absolute; top: 0; right: 0; bottom: 0; width: 54%; overflow: hidden; z-index: 0; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 30%), linear-gradient(0deg, transparent 0%, #000 22%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0%, #000 30%), linear-gradient(0deg, transparent 0%, #000 22%);
  mask-composite: intersect;
}
.hero__photo video, .hero__still { position: absolute; left: 0; top: -14%; width: 100%; height: 116%; object-fit: cover; /* extra height for the scroll parallax */ object-position: 50% 32%; will-change: transform; }
/* never show the phone's own play button over the hero; if autoplay is refused the video is hidden and the still frame shows instead */
.hero__photo video::-webkit-media-controls-start-playback-button { display: none !important; -webkit-appearance: none; }
.hero__photo video::-webkit-media-controls, .hero__photo video::-webkit-media-controls-panel { display: none !important; }
.hero__photo video.is-blocked { visibility: hidden; }
.hero__photo::after { content: ""; position: absolute; inset: 0; background: rgba(246, 241, 233, 0.38); /* soft ivory veil */ }
.hero__stage { height: min(78vh, 760px); } /* keeps the right column's space so the video has room */

/* Smile Skin Co. roundel pinned to the bottom-right corner of the video */
.badge { position: absolute; right: var(--gutter); bottom: 9%; width: clamp(130px, 12vw, 180px); height: clamp(130px, 12vw, 180px); z-index: 3; display: grid; place-items: center; }
.badge__ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 22s linear infinite; }
.badge__ring text { font-family: var(--sans); font-size: 13.5px; fill: var(--navy); }
.badge::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--ivory); box-shadow: 0 20px 50px -20px rgba(22, 34, 84, 0.35); }
.badge__script { position: relative; font-family: var(--script); font-size: clamp(2.1rem, 3vw, 2.8rem); color: var(--gold); }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 120px; }
  .hero__stage { height: 64vh; min-height: 420px; }
  .hero__photo { top: auto; width: 100%; height: 78vh; min-height: 500px; }
  .hero__photo { -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 80%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 80%, transparent 100%); }
  .badge { bottom: 6%; }
}

/* ---------- Marquee ---------- */
.marquee { padding: 34px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; background: var(--ivory); }
.marquee__track { display: flex; width: max-content; will-change: transform; }
.marquee__row { display: flex; align-items: center; gap: clamp(28px, 4vw, 64px); padding-right: clamp(28px, 4vw, 64px); }
.marquee__row span { font-family: var(--serif); font-size: clamp(2rem, 4.4vw, 4rem); color: var(--navy); white-space: nowrap; font-weight: 300; }
.marquee__row span:nth-of-type(even) { font-style: italic; color: transparent; -webkit-text-stroke: 1px var(--navy); }
.marquee__row i { color: var(--gold); font-style: normal; font-size: 1.2rem; }

/* ---------- Philosophy ---------- */
.philosophy { padding: clamp(110px, 18vw, 220px) var(--gutter); max-width: 1280px; margin: 0 auto; text-align: center; }
.philosophy__text { font-family: var(--serif); font-size: clamp(1.9rem, 4.2vw, 3.9rem); line-height: 1.18; color: var(--navy); font-weight: 300; }
.philosophy__text em { color: var(--gold); }
.philosophy__text .word { opacity: 0.12; transition: none; }
.philosophy__sign { display: block; margin-top: 48px; }

/* ---------- Worlds ---------- */
.worlds { display: flex; flex-direction: column; }
.world { position: relative; display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }
.world--skin { background: var(--navy); color: var(--ivory); }
.world--smile { background: var(--blush); }
.world--smile .world__media { order: 2; }
.world__media { position: relative; overflow: hidden; display: grid; place-items: center; }
/* product bundle shot in an arch, like the product cards */
.world__bundle {
  position: relative; width: min(84%, 580px); aspect-ratio: 1200 / 1180; margin: 10vh 0; border-radius: 999px 999px 20px 20px; overflow: hidden; /* same shape as the bundle shots so nothing is cropped */
  box-shadow: 0 50px 90px -50px rgba(12, 20, 53, 0.6);
}
.world__bundle::after { content: ""; position: absolute; inset: 12px; border-radius: 999px 999px 14px 14px; border: 1px solid rgba(184, 153, 106, 0.45); pointer-events: none; }
.world__bundle img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 70%; transform-origin: 50% 80%; will-change: transform; }
.world--skin .world__media { background: radial-gradient(ellipse at 50% 85%, #2A3B82 0%, var(--navy-deep) 70%); }
.world--smile .world__media { background: radial-gradient(ellipse at 50% 85%, #FFF7F2 0%, #E0C2B2 75%); }
.world__body { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 12vh clamp(24px, 6vw, 110px); gap: 28px; }
.world__body p { max-width: 30rem; font-size: 1.05rem; opacity: 0.85; }
.world--skin h2 { color: var(--ivory); }
.world--skin h2 em { color: var(--gold-soft); }
.world__num { font-family: var(--serif); font-size: 1rem; letter-spacing: 0.3em; color: var(--gold); }
.world__stat { display: flex; align-items: baseline; gap: 14px; }
.world__stat .count { font-family: var(--serif); font-size: clamp(3.4rem, 6vw, 5.4rem); line-height: 1; color: var(--gold); }
.world--smile .world__stat .count { color: var(--navy); }
.world__stat small { font-size: 0.75rem; letter-spacing: 0.24em; text-transform: uppercase; max-width: 9rem; line-height: 1.5; }
.clip-reveal { clip-path: inset(18% 12% 18% 12% round 24px); }

@media (max-width: 900px) {
  .world { grid-template-columns: 1fr; min-height: 0; }
  .world--smile .world__media { order: 0; }
  .world__media { min-height: 0; padding: 0 var(--gutter); }
  .world__media.clip-reveal { clip-path: none; } /* full-width colour block straight away on phones */
  .world__bundle { width: min(100%, 420px); margin: 56px 0 8px; }
}

/* ---------- Product cards ---------- */
.card { position: relative; display: flex; flex-direction: column; gap: 18px; }
.card__frame {
  position: relative; aspect-ratio: 3 / 4; border-radius: 999px 999px 18px 18px; overflow: hidden;
  display: grid; place-items: center; padding: 22% 12% 18%; text-align: center;
  will-change: transform;
  clip-path: inset(0 round 999px 999px 18px 18px); /* clips the photo to the arch even while the card tilts */
}
.card__frame::before { content: ""; position: absolute; inset: 10px 10px 10px; border-radius: 999px 999px 12px 12px; border: 1px solid rgba(184, 153, 106, 0.35); pointer-events: none; }
.card__frame::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 30%), rgba(255, 255, 255, 0.6), transparent 45%);
  transition: opacity 0.5s;
}
.card:hover .card__frame::after { opacity: 1; }
.card { transition: filter 0.6s var(--ease); }
.card:hover { filter: drop-shadow(0 26px 30px rgba(22, 34, 84, 0.22)); } /* shadow lives on the card so the arch clip can't cut it off */
.card__inner { position: relative; display: flex; flex-direction: column; align-items: center; gap: 14px; will-change: transform; }
.card__brand { font-size: 0.68rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); }
.card__name { font-family: var(--serif); font-size: clamp(1.45rem, 1.9vw, 2rem); line-height: 1.08; color: var(--navy); font-weight: 300; transition: transform 0.9s var(--ease); }
.card__rule { width: 28px; height: 1px; background: var(--gold); transition: width 0.9s var(--ease); }
.card:hover .card__rule { width: 72px; }
.card:hover .card__name { transform: translateY(-6px); }
.card__cat { display: block; font-size: 0.64rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); }

/* photo cards: product shot inside the arch, details underneath */
.card--photo .card__frame { padding: 16% 10% 12%; }
.card__img {
  position: absolute; top: 16%; left: 10%; width: 80%; height: 72%; object-fit: contain; /* tall packs scale down instead of overflowing */
  mix-blend-mode: multiply; /* white studio backgrounds melt into the arch tint */
  transition: transform 1s var(--ease);
}
.card--photo:hover .card__img { transform: translateY(-8px) scale(1.05); }
/* photos shot on a coloured backdrop: the arch takes the backdrop colour and the photo fills it edge to edge */
.card--fill .card__frame, .grid .card--fill .card__frame { padding: 0; }
.card--fill .card__img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; mix-blend-mode: normal; }
.card--fill:hover .card__img { transform: scale(1.06); }
.card__meta { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 22px 6px 0; }
.card__meta .card__name { font-size: clamp(1.2rem, 1.5vw, 1.55rem); }
.card__reserve {
  position: absolute; left: 50%; bottom: 22px; transform: translate(-50%, 20px); opacity: 0;
  font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase; background: var(--ivory); color: var(--navy);
  padding: 10px 18px; border-radius: 999px; transition: transform 0.6s var(--ease), opacity 0.5s; white-space: nowrap; z-index: 2;
}
.card:hover .card__reserve, .card:focus-within .card__reserve { transform: translate(-50%, 0); opacity: 1; }
/* touch screens: no hover zoom (a tap leaves it stuck on), and force the arch to clip its photo —
   iOS Safari otherwise lets a transformed photo's white background spill outside the rounded frame */
@media (hover: none) {
  .card__reserve { opacity: 1; transform: translate(-50%, 0); }
  .card:hover .card__img, .card:hover .card__name { transform: none; }
  .card__frame { -webkit-mask-image: -webkit-radial-gradient(white, black); mask-image: radial-gradient(white, black); }
}
.card__frame { isolation: isolate; }

.tone-ivory { background: linear-gradient(180deg, #FBF8F3, #EDE4D5); }
.tone-navy { background: linear-gradient(180deg, #D9DEEC, #B9C1DA); }
.tone-blush { background: linear-gradient(180deg, #F8ECE5, #E9D3C6); }
.tone-mist { background: linear-gradient(180deg, #EEF2F8, #D6DEEA); }
.tone-gold { background: linear-gradient(180deg, #F7EFDF, #E6D3AE); }
.tone-sage { background: linear-gradient(180deg, #EEF1EA, #D3DCCD); }

/* ---------- Ritual ---------- */
.ritual { background: var(--navy-deep); color: var(--ivory); position: relative; overflow: hidden; }
.ritual__inner { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; align-items: center; padding: 120px var(--gutter); gap: 6vw; }
.ritual__title { color: var(--ivory); font-size: clamp(2.6rem, 5vw, 5rem); margin-bottom: 56px; }
.ritual__title em { color: var(--gold-soft); }
.ritual__steps { display: flex; flex-direction: column; border-top: 1px solid rgba(246, 241, 233, 0.14); }
.step { position: relative; padding: 22px 0; border-bottom: 1px solid rgba(246, 241, 233, 0.14); display: grid; grid-template-columns: 54px 1fr; gap: 8px 16px; align-items: baseline; opacity: 0.38; transition: opacity 0.6s var(--ease); cursor: pointer; }
.step.is-active { opacity: 1; }
.step__num { font-family: var(--serif); color: var(--gold); letter-spacing: 0.1em; }
.step__name { font-family: var(--serif); font-size: clamp(1.6rem, 2.6vw, 2.4rem); line-height: 1; }
.step__copy { grid-column: 2 / -1; max-height: 0; overflow: hidden; opacity: 0; font-size: 0.98rem; color: rgba(246, 241, 233, 0.72); transition: max-height 0.8s var(--ease), opacity 0.6s, margin 0.8s var(--ease); }
.step__copy small { display: block; margin-top: 6px; font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-soft); }
.step.is-active .step__copy { max-height: 160px; opacity: 1; margin-top: 10px; }
.step__bar { position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%; background: var(--gold); transform: scaleX(0); transform-origin: left; }

.ritual__right { position: relative; height: min(76vh, 680px); display: grid; place-items: center; }
.ritual__orbit { position: absolute; inset: 0; display: grid; place-items: center; }
.ritual__orbit span { position: absolute; border-radius: 50%; border: 1px solid rgba(217, 194, 154, 0.25); }
.ritual__orbit span:first-child { width: 88%; aspect-ratio: 1; animation: spin 40s linear infinite; border-style: dashed; }
.ritual__orbit span:last-child { width: 62%; aspect-ratio: 1; background: radial-gradient(circle, rgba(42, 59, 130, 0.9), rgba(12, 20, 53, 0) 70%); border: 0; }
.ritual__stage { position: relative; width: 80%; aspect-ratio: 1; }
.ritual__item { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; opacity: 0; }
.ritual__card {
  position: relative; width: 58%; aspect-ratio: 4 / 5; border-radius: 999px 999px 18px 18px; overflow: hidden;
  background: linear-gradient(180deg, #faf6ef, #ece2d2); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.6);
}
.ritual__card::after { content: ""; position: absolute; inset: 10px; border-radius: 999px 999px 12px 12px; border: 1px solid rgba(184, 153, 106, 0.45); pointer-events: none; }
.ritual__card img { position: absolute; top: 16%; left: 12%; width: 76%; height: 70%; object-fit: contain; mix-blend-mode: multiply; }
.ritual__big { position: absolute; top: 4%; left: 6%; font-family: var(--serif); font-weight: 300; font-size: clamp(5rem, 10vw, 9rem); line-height: 0.85; color: transparent; -webkit-text-stroke: 1px var(--gold-soft); }
.ritual__word { margin-top: 22px; font-family: var(--serif); font-style: italic; font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1; color: var(--ivory); }
.ritual__index { position: absolute; bottom: 0; right: 0; font-family: var(--serif); letter-spacing: 0.2em; color: var(--gold-soft); }
.ritual__current { display: inline-block; font-size: 1.6rem; color: var(--ivory); }
/* phones: heading, photo, then the four steps — sized to fit one screen so the
   highlighted step and its product are always visible together */
@media (max-width: 900px) {
  .ritual__inner { grid-template-columns: 1fr; gap: 16px; min-height: 100svh; align-content: center; padding: 78px var(--gutter) 28px; }
  .ritual__left { display: contents; }
  .ritual .eyebrow { order: 1; margin-bottom: 0; }
  .ritual__title { order: 2; font-size: clamp(1.9rem, 8vw, 2.4rem); margin-bottom: 0; }
  .ritual__right { order: 3; height: 28svh; min-height: 210px; }
  .ritual__steps { order: 4; }
  .ritual__orbit span:first-child { width: 72%; }
  .ritual__orbit span:last-child { width: 56%; }
  .ritual__stage { width: auto; height: 100%; aspect-ratio: 1; }
  .ritual__card { width: 54%; }
  .ritual__word { margin-top: 12px; font-size: 1.5rem; }
  .ritual__big { display: none; }
  .ritual__current { font-size: 1.2rem; }
  .step { padding: 11px 0; grid-template-columns: 40px 1fr; }
  .step__name { font-size: 1.35rem; }
  .step__copy { font-size: 0.88rem; }
  .step.is-active .step__copy { max-height: 130px; margin-top: 6px; }
}
/* shorter phones (e.g. iPhone SE): tighten everything so it still fits one screen */
@media (max-width: 900px) and (max-height: 740px) {
  .ritual__inner { gap: 10px; padding-top: 66px; padding-bottom: 16px; }
  .ritual__title { font-size: 1.7rem; }
  .ritual__right { height: 24svh; min-height: 150px; }
  .ritual__word { margin-top: 8px; font-size: 1.25rem; }
  .step { padding: 8px 0; }
  .step__name { font-size: 1.2rem; }
  .step__copy { font-size: 0.82rem; }
}

/* ---------- Collection filters + grid ---------- */
.filters { position: relative; display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin: 0 auto 64px; width: max-content; max-width: 100%; padding: 6px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); }
.filter { position: relative; z-index: 1; padding: 12px 22px; border-radius: 999px; font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--navy); transition: color 0.5s var(--ease); }
.filter.is-active { color: var(--ivory); }
.filters__pill { position: absolute; z-index: 0; top: 6px; left: 6px; height: calc(100% - 12px); border-radius: 999px; background: var(--navy); transition: transform 0.7s var(--ease), width 0.7s var(--ease); }
@media (max-width: 640px) {
  .filters { width: 100%; border-radius: 24px; }
  .filters__pill { display: none; }
  .filter.is-active { background: var(--navy); }
  .filter { padding: 10px 14px; }
}
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(28px, 3vw, 48px) clamp(16px, 2vw, 32px); max-width: 1480px; margin: 0 auto; }
.grid .card.is-hidden { display: none; }
@media (max-width: 1100px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.grid .card__frame { aspect-ratio: 4 / 5; }
@media (max-width: 760px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid .card__frame { aspect-ratio: 3 / 4; padding: 26% 8% 24%; } .card__name { font-size: 1.15rem; } .card__brand, .card__cat { font-size: 0.64rem; letter-spacing: 0.16em; } }

/* ---------- Visit ---------- */
.visit { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 110px); padding: clamp(110px, 14vw, 180px) var(--gutter); align-items: stretch; }
.visit h2 { margin-bottom: 36px; }
.visit__address { font-style: normal; font-family: var(--serif); font-size: clamp(1.4rem, 2vw, 1.8rem); line-height: 1.35; color: var(--navy); margin-bottom: 26px; }
.visit__status { display: inline-flex; align-items: center; gap: 12px; padding: 10px 18px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); font-size: 0.8rem; letter-spacing: 0.1em; margin-bottom: 34px; color: var(--navy); }
.dot { position: relative; width: 9px; height: 9px; border-radius: 50%; background: #9aa0b4; }
.dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: ping 1.8s var(--ease) infinite; }
.visit__status.is-open .dot { background: #3E9B6E; }
.visit__status.is-closed .dot { background: #C0605A; }
@keyframes ping { 0% { transform: scale(1); opacity: 0.7; } 100% { transform: scale(3); opacity: 0; } }
.hours { list-style: none; margin-bottom: 44px; max-width: 520px; }
.hours li { display: flex; align-items: baseline; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 0.98rem; transition: padding 0.5s var(--ease), color 0.4s; }
.hours li i { flex: 1; height: 1px; border-bottom: 1px dotted rgba(22, 34, 84, 0.25); transform: translateY(-4px); }
.hours small { font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-left: 6px; }
.hours li.is-today { color: var(--navy); font-weight: 400; padding-left: 14px; }
.hours li.is-today::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); margin-left: -14px; margin-right: 8px; align-self: center; }
.visit__contact { display: flex; flex-direction: column; gap: 18px; }
.big-link { position: relative; display: inline-flex; flex-direction: column; font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.6rem); color: var(--navy); line-height: 1.1; width: max-content; max-width: 100%; overflow-wrap: anywhere; }
.big-link small { font-family: var(--sans); font-size: 0.66rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); margin-bottom: 4px; }
.big-link::after { content: ""; position: absolute; left: 0; bottom: -4px; width: 100%; height: 1px; background: var(--navy); transform: scaleX(0); transform-origin: right; transition: transform 0.7s var(--ease); }
.big-link:hover::after { transform: scaleX(1); transform-origin: left; }
/* compact map that fits on screen in one go, and stays in view while you read the hours */
.visit__map { position: sticky; top: 110px; align-self: start; height: clamp(380px, 58vh, 500px); border-radius: 36px; /* soft corners so Google's address card in the top-left is never clipped */ overflow: hidden; background: var(--cream); }
.visit__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(1) sepia(0.25) contrast(0.95) brightness(1.03); }
.visit__directions { position: absolute; left: 0; right: 0; bottom: 28px; margin: 0 auto; width: max-content; }
@media (max-width: 900px) { .visit { grid-template-columns: 1fr; } .visit__map { position: relative; top: auto; height: 400px; border-radius: 28px; } .big-link { width: auto; } }

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: var(--ivory); padding: clamp(80px, 10vw, 140px) var(--gutter) 28px; overflow: hidden; }
.footer__top { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; padding-bottom: 80px; }
.footer__cta h3 { color: var(--ivory); font-size: clamp(2rem, 3.6vw, 3.4rem); line-height: 1.08; margin: 10px 0 36px; max-width: 34rem; }
.footer__cta h3 em { color: var(--gold-soft); }
.news { position: relative; display: flex; max-width: 480px; border-bottom: 1px solid rgba(246, 241, 233, 0.35); flex-wrap: wrap; }
.news input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--ivory); font: inherit; font-size: 1.05rem; padding: 16px 0; }
.news input::placeholder { color: rgba(246, 241, 233, 0.5); }
.news button { width: 52px; height: 52px; border-radius: 50%; background: var(--gold); color: var(--navy); font-size: 1.2rem; margin-bottom: 6px; transition: background 0.4s; }
.news button:hover { background: var(--ivory); }
.news__msg { width: 100%; position: absolute; top: 100%; padding-top: 12px; font-size: 0.85rem; color: var(--gold-soft); }
.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; align-self: end; }
.footer__cols h4 { font-weight: 400; font-size: 0.68rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 14px; }
.footer__cols p { font-size: 0.95rem; opacity: 0.8; line-height: 1.8; }
.footer__cols a:hover { color: var(--gold-soft); }
.footer__giant { padding: 20px 0 40px; border-top: 1px solid rgba(246, 241, 233, 0.14); }
.footer__giant img { width: 100%; height: auto; clip-path: inset(100% 0 0 0); }
.footer__base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 0.75rem; letter-spacing: 0.12em; opacity: 0.6; }
.to-top:hover { color: var(--gold-soft); }
@media (max-width: 900px) { .footer__top { grid-template-columns: 1fr; } .footer__cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__cols { grid-template-columns: 1fr; } }

/* ---------- Meet the team ---------- */
.team { padding: clamp(110px, 14vw, 180px) var(--gutter) 0; }
.team__head { text-align: center; margin-bottom: clamp(48px, 6vw, 80px); }
.team__intro { color: var(--muted); max-width: 30rem; margin: 22px auto 0; }
.team__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px); max-width: 1280px; margin: 0 auto; }
.member__frame { position: relative; aspect-ratio: 4 / 5; border-radius: 999px 999px 18px 18px; overflow: hidden; background: var(--cream); }
.member__frame::after { content: ""; position: absolute; inset: 10px; border-radius: 999px 999px 12px 12px; border: 1px solid rgba(217, 194, 154, 0.55); pointer-events: none; }
.member__frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transform-origin: 50% 40%; transition: transform 1.2s var(--ease); }
.member:hover .member__frame img { transform: scale(1.04); }
.member figcaption { display: flex; flex-direction: column; align-items: center; gap: 6px; padding-top: 22px; text-align: center; }
.member__name { font-family: var(--serif); font-size: clamp(1.5rem, 2vw, 1.9rem); color: var(--navy); line-height: 1.1; }
.member__role { font-size: 0.66rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--gold); }
.member__bio { max-width: 22rem; margin-top: 10px; color: var(--muted); font-size: 0.95rem; line-height: 1.65; }
@media (max-width: 760px) { .team__grid { grid-template-columns: 1fr; max-width: 420px; } }

/* =========================================================
   Products page
   ========================================================= */
.page-head { padding: clamp(150px, 20vh, 220px) var(--gutter) 56px; text-align: center; max-width: 980px; margin: 0 auto; }
.page-head h1 { font-size: clamp(3.6rem, 11vw, 10rem); margin-bottom: 28px; }
.page-head h1 .line { display: block; }
.page-head p:not(.eyebrow) { color: var(--muted); max-width: 34rem; margin: 0 auto; font-size: 1.05rem; }

.switch {
  position: sticky; top: 92px; z-index: 40; display: flex; width: max-content; margin: 0 auto; padding: 6px; border-radius: 999px;
  background: rgba(246, 241, 233, 0.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: inset 0 0 0 1px var(--line), 0 18px 40px -26px rgba(22, 34, 84, 0.45);
  transition: top 0.7s var(--ease);
}
.switch.is-raised { top: 18px; }
.switch a { position: relative; z-index: 1; padding: 12px clamp(28px, 4vw, 48px); font-family: var(--serif); font-size: 1.35rem; color: var(--navy); transition: color 0.5s var(--ease); }
.switch a.is-active { color: var(--ivory); }
.switch__pill { position: absolute; top: 6px; left: 6px; height: calc(100% - 12px); width: 0; border-radius: 999px; background: var(--navy); }

.collection { position: relative; padding: clamp(90px, 12vw, 150px) var(--gutter) clamp(100px, 12vw, 160px); }
.collection--smile { background: #F4E8E0; }
.collection__head { display: grid; grid-template-columns: auto 1fr auto; align-items: end; gap: clamp(20px, 4vw, 60px); max-width: 1480px; margin: 0 auto 56px; }
.collection__head h2 { font-size: clamp(2.6rem, 5.4vw, 5rem); }
.collection__head .eyebrow { margin-bottom: 18px; }
.collection__num { font-family: var(--serif); font-weight: 300; font-size: clamp(5rem, 11vw, 10rem); line-height: 0.8; color: transparent; -webkit-text-stroke: 1px var(--gold); will-change: transform; }
.collection__text { max-width: 24rem; color: var(--muted); }
.collection .filters { margin-bottom: 56px; }
@media (max-width: 900px) {
  .collection__head { grid-template-columns: 1fr; gap: 16px; }
  .collection__num { font-size: 4.5rem; }
  .switch { top: 82px; }
}

.cta-band { background: var(--navy); color: var(--ivory); text-align: center; padding: clamp(110px, 14vw, 180px) var(--gutter); }
.cta-band__inner { max-width: 900px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.cta-band h2 { color: var(--ivory); }
.cta-band h2 em { color: var(--gold-soft); }
.cta-band p { opacity: 0.8; max-width: 30rem; }
.cta-band__actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 12px; }
.btn--line { color: var(--ivory); box-shadow: inset 0 0 0 1px rgba(246, 241, 233, 0.5); }
.btn--line::before { background: var(--gold); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .clip-reveal { clip-path: none; }
  .footer__giant img { clip-path: none; }
  .philosophy__text .word { opacity: 1; }
  .loader__logo { clip-path: none; }
}
