/* ==========================================================================
   NIELLOR — Eau de Parfum
   Design system & site styles
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Surfaces — bright, warm, gallery-like */
  --ivory:        #FBF8F3;
  --ivory-deep:   #F4EDE2;
  --sand:         #EFE5D6;
  --linen:        #FFFDFA;

  /* Ink */
  --ink:          #17140F;
  --ink-soft:     #453E33;
  --ink-mute:     #7C7264;

  /* Gold */
  --gold:         #B0803F;
  --gold-light:   #D6B27C;
  --gold-pale:    #EADBC2;

  /* Line accents per collection */
  --rose:         #E3B3AA;
  --rose-deep:    #C98D82;
  --leaf:         #A9B79A;
  --onyx:         #1B1917;

  /* Ambient tint — shifts as you browse the collection */
  --ambient:      #FBF8F3;

  /* Type */
  --display: "Cormorant Garamond", "Didot", "Bodoni MT", Georgia, serif;
  --sans:    "Jost", "Futura", "Century Gothic", "Helvetica Neue", sans-serif;

  /* Motion */
  --ease:      cubic-bezier(.22, 1, .36, 1);
  --ease-soft: cubic-bezier(.4, 0, .2, 1);

  /* Metrics */
  --gutter: clamp(1.25rem, 5vw, 5.5rem);
  --nav-h:  84px;
}

/* --------------------------------------------------------------------------
   2. Reset
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

* { margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  background: var(--ambient);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.75;
  letter-spacing: .012em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 1.1s var(--ease-soft);
}

img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }

::selection { background: var(--gold); color: var(--linen); }

/* Scrollbar */
::-webkit-scrollbar { width: 9px; }
::-webkit-scrollbar-track { background: var(--ivory-deep); }
::-webkit-scrollbar-thumb {
  background: var(--gold-light);
  border-radius: 99px;
  border: 2px solid var(--ivory-deep);
}
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* --------------------------------------------------------------------------
   3. Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 300;
  line-height: 1.06;
  letter-spacing: .02em;
}

.display-xl {
  font-size: clamp(3.4rem, 12vw, 11rem);
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 300;
}

.display-lg {
  font-size: clamp(2.4rem, 6.2vw, 5.2rem);
  letter-spacing: .1em;
  text-transform: uppercase;
}

.display-md {
  font-size: clamp(1.9rem, 3.8vw, 3.2rem);
  letter-spacing: .07em;
  text-transform: uppercase;
}

.serif-quote {
  font-family: var(--display);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-style: italic;
  font-weight: 300;
  line-height: 1.4;
  letter-spacing: .01em;
}

.eyebrow {
  font-family: var(--sans);
  font-size: .68rem;
  font-weight: 400;
  letter-spacing: .42em;
  text-transform: uppercase;
  color: var(--gold);
}

.lede {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: var(--ink-soft);
  line-height: 1.9;
  max-width: 56ch;
}

.body-sm { font-size: .875rem; line-height: 1.85; color: var(--ink-soft); }

/* Gold divider with a four-point star, echoing the brochure */
.rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 1.75rem 0;
}
.rule::before, .rule::after {
  content: "";
  height: 1px;
  width: clamp(48px, 9vw, 130px);
  background: linear-gradient(90deg, transparent, var(--gold-light));
}
.rule::after { background: linear-gradient(270deg, transparent, var(--gold-light)); }
.rule i {
  width: 13px; height: 13px;
  background: var(--gold);
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
}
.rule.left { justify-content: flex-start; }
.rule.left::before { display: none; }

/* --------------------------------------------------------------------------
   4. Layout
   -------------------------------------------------------------------------- */
.wrap { width: 100%; max-width: 1440px; margin-inline: auto; padding-inline: var(--gutter); }
.wrap-narrow { max-width: 940px; margin-inline: auto; padding-inline: var(--gutter); }

section { position: relative; }
.section-pad { padding-block: clamp(5rem, 11vw, 9.5rem); }

.section-head { text-align: center; margin-bottom: clamp(3rem, 6vw, 5rem); }
.section-head .lede { margin-inline: auto; text-align: center; }

/* Thin gold frame used on feature panels, like the brochure pages */
.framed {
  position: relative;
  border: 1px solid var(--gold-pale);
  padding: clamp(2rem, 5vw, 4.5rem);
}
.framed::after {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px solid rgba(176, 128, 63, .18);
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   4b. The flacon — idle float, travelling shimmer, pointer tilt
   -------------------------------------------------------------------------- */
.flacon {
  transform-style: preserve-3d;
  transition: transform .5s var(--ease);
  will-change: transform;
  filter: drop-shadow(0 22px 26px rgba(23, 20, 15, .16));
}

/* A slow drift so the bottle never feels like a flat sticker */
[data-float] .flacon { animation: flaconFloat 7s var(--ease-soft) infinite; }
@keyframes flaconFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-14px) rotate(-.7deg); }
}

/* Light travelling across the glass */
.flacon-glint {
  animation: glint 5.5s var(--ease-soft) infinite;
  opacity: 0;
}
@keyframes glint {
  0%       { transform: translateX(0) skewX(-14deg);   opacity: 0; }
  12%      { opacity: 1; }
  38%, 100%{ transform: translateX(430px) skewX(-14deg); opacity: 0; }
}

/* Tilt stages get depth */
[data-tilt] { perspective: 900px; }
[data-tilt] .flacon { transition: transform .65s var(--ease); }
[data-tilt]:hover .flacon { animation-play-state: paused; }

/* --------------------------------------------------------------------------
   6. Preloader
   -------------------------------------------------------------------------- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: var(--ivory);
  display: grid;
  place-items: center;
  transition: opacity .9s var(--ease), visibility .9s;
}
.preloader.done { opacity: 0; visibility: hidden; }
.preloader-mark {
  font-family: var(--display);
  font-size: clamp(2rem, 6vw, 4rem);
  letter-spacing: .55em;
  text-indent: .55em;
  text-transform: uppercase;
  color: var(--ink);
}
.preloader-mark span {
  display: inline-block;
  opacity: 0;
  transform: translateY(14px);
  animation: preIn .8s var(--ease) forwards;
}
@keyframes preIn { to { opacity: 1; transform: none; } }
.preloader-bar {
  margin-top: 2rem;
  width: min(240px, 46vw);
  height: 1px;
  background: var(--gold-pale);
  overflow: hidden;
}
.preloader-bar i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--gold);
  animation: preBar 1.5s var(--ease-soft) forwards;
}
@keyframes preBar { to { width: 100%; } }

/* --------------------------------------------------------------------------
   7. Navigation
   -------------------------------------------------------------------------- */
.announce {
  background: var(--ink);
  color: var(--ivory);
  text-align: center;
  font-size: .68rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  padding: .7rem 1rem;
  overflow: hidden;
  /* One line tall, so the messages rotate through it instead of stacking */
  --announce-line: 1.15rem;
  height: calc(var(--announce-line) + 1.4rem);
  line-height: var(--announce-line);
}
.announce span > div { height: var(--announce-line); }
.announce span { display: inline-block; animation: announceSlide 16s linear infinite; }
@keyframes announceSlide {
  0%, 28%   { transform: translateY(0); }
  33%, 61%  { transform: translateY(-140%); }
  66%, 94%  { transform: translateY(-280%); }
  100%      { transform: translateY(-280%); }
}

.nav {
  position: sticky;
  top: 0;
  z-index: 800;
  background: rgba(251, 248, 243, .82);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: border-color .5s var(--ease), padding .5s var(--ease),
              background-color .5s var(--ease);
}
.nav.stuck {
  border-bottom-color: var(--gold-pale);
  background: rgba(251, 248, 243, .95);
}
.nav-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.5rem;
  height: var(--nav-h);
  transition: height .5s var(--ease);
}
.nav.stuck .nav-inner { height: 66px; }

.nav-links { display: flex; gap: clamp(1.4rem, 2.6vw, 2.8rem); }
.nav-links a {
  font-size: .7rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--ink-soft);
  position: relative;
  padding-block: .4rem;
  transition: color .35s var(--ease);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .45s var(--ease);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }

.brand {
  justify-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .1rem;
  line-height: 1;
}
/* ---------------------------------------------------------------------------
   THE WORDMARK
   NIELLOR must always sit on one straight horizontal line. Every element that
   renders the name carries `nowrap`, and the letter-spacing narrows on small
   screens rather than allowing a break. Never remove the nowrap.
   --------------------------------------------------------------------------- */
.brand-word,
.preloader-mark,
.cover-word,
.ty-mark .brand-word,
.wordmark {
  white-space: nowrap;
  word-break: keep-all;
  overflow-wrap: normal;
  hyphens: none;
}

.brand-word {
  font-family: var(--display);
  font-size: clamp(1.1rem, 2.2vw, 1.65rem);
  letter-spacing: clamp(.18em, 1.1vw, .38em);
  text-indent: clamp(.18em, 1.1vw, .38em);
  text-transform: uppercase;
}
.brand-sub {
  font-size: .5rem;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--gold);
}

.nav-actions { justify-self: end; display: flex; align-items: center; gap: 1.35rem; }
.icon-btn {
  position: relative;
  width: 38px; height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--ink-soft);
  transition: color .35s var(--ease), background-color .35s var(--ease);
}
.icon-btn:hover { color: var(--gold); background: var(--ivory-deep); }
.icon-btn svg { width: 19px; height: 19px; stroke-width: 1.15; }
.cart-count {
  position: absolute;
  top: 2px; right: 0;
  min-width: 17px; height: 17px;
  padding: 0 4px;
  border-radius: 99px;
  background: var(--gold);
  color: var(--linen);
  font-size: .58rem;
  font-weight: 500;
  letter-spacing: 0;
  display: grid;
  place-items: center;
  transform: scale(0);
  transition: transform .4s var(--ease);
}
.cart-count.show { transform: scale(1); }

.burger { display: none; width: 38px; height: 38px; }
.burger i {
  display: block;
  width: 20px; height: 1px;
  background: var(--ink);
  margin: 4px auto;
  transition: transform .4s var(--ease), opacity .3s var(--ease);
}
.burger.open i:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.burger.open i:nth-child(2) { opacity: 0; }
.burger.open i:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   8. Buttons
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--ivory);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  padding: 1.05rem 2.5rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: .7rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  border: 1px solid var(--btn-bg);
  overflow: hidden;
  isolation: isolate;
  transition: color .5s var(--ease), border-color .5s var(--ease);
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform .55s var(--ease);
  z-index: -1;
}
.btn:hover::before { transform: scaleY(1); }
.btn:hover { color: var(--linen); border-color: var(--gold); }

.btn-ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  border-color: var(--ink);
}
.btn-ghost:hover { color: var(--linen); }

.btn-gold { --btn-bg: var(--gold); --btn-fg: var(--linen); }
.btn-gold::before { background: var(--ink); }

.btn-sm { padding: .8rem 1.7rem; font-size: .63rem; }
.btn-full { width: 100%; }

/* Understated text link with a sliding rule */
.link-line {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: .7rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--ink);
  padding-bottom: .35rem;
  border-bottom: 1px solid var(--gold-light);
  transition: gap .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease);
}
.link-line:hover { gap: 1.1rem; color: var(--gold); border-color: var(--gold); }

/* --------------------------------------------------------------------------
   8b. Brochure furniture
   The deck's recurring devices: sub-headings, framed pages, pull quotes.
   -------------------------------------------------------------------------- */

/* "Discover Your Signature Scent" — the serif line under a page title */
.sub-serif {
  font-family: var(--sans);
  font-size: clamp(.92rem, 1.5vw, 1.15rem);
  font-weight: 300;
  color: var(--ink-soft);
  letter-spacing: .04em;
  margin-top: .85rem;
}

/* "THE ESSENCE OF MODERN LUXURY" — letterspaced caps in gold */
.sub-caps {
  font-size: clamp(.66rem, 1.1vw, .8rem);
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 1rem;
}

/* Botanical shadow in the corner of a framed page */
.framed.leafed::before {
  content: "";
  position: absolute;
  top: -4%; left: -3%;
  width: clamp(150px, 20vw, 290px);
  aspect-ratio: 1;
  background:
    radial-gradient(closest-side, rgba(140, 124, 99, .17), transparent 72%),
    radial-gradient(closest-side at 62% 38%, rgba(140, 124, 99, .14), transparent 70%);
  pointer-events: none;
}

/* Centred quote with oversized gold quotation marks */
.pull-quote {
  text-align: center;
  margin-top: clamp(2.75rem, 6vw, 4.5rem);
}
.pull-quote .qm {
  color: var(--gold);
  font-size: 2em;
  line-height: 0;
  vertical-align: -.25em;
}
.pull-quote .qm:last-child { vertical-align: -.35em; }

.brand-sign {
  font-family: var(--display);
  font-size: 1.5rem;
  letter-spacing: .34em;
  text-indent: .34em;
  text-transform: uppercase;
  color: var(--gold);
  line-height: 1.2;
}
.brand-sign em {
  display: block;
  font-family: var(--sans);
  font-style: normal;
  font-size: .5rem;
  letter-spacing: .32em;
  text-indent: .32em;
  color: var(--ink-mute);
  margin-top: .35rem;
}

/* --------------------------------------------------------------------------
   9. Cover — bright editorial opener
   Copy on the left over ivory, product photography on the right. No dark
   overlays: the image sits in its own panel so the type never fights it.
   -------------------------------------------------------------------------- */
.cover {
  position: relative;
  overflow: hidden;
  background: var(--ivory);
  padding-block: clamp(2.5rem, 6vw, 5rem);
}
.cover-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(2rem, 6vw, 5.5rem);
  min-height: min(78svh, 720px);
}

.cover-copy { max-width: 32rem; }

.cover-mark { display: block; color: var(--gold); margin-bottom: 1.35rem; }
.cover-mark svg { width: 42px; height: 58px; }

.cover-word {
  font-family: var(--display);
  font-weight: 300;
  line-height: 1;
  /* Sized so the name always fits one line, even on a 320px screen */
  font-size: clamp(1.9rem, 7.2vw, 4.4rem);
  letter-spacing: clamp(.12em, 1.6vw, .26em);
  text-indent: clamp(.12em, 1.6vw, .26em);
  text-transform: uppercase;
  color: var(--ink);
}
.cover-kicker {
  margin-top: 1.1rem;
  font-size: clamp(.6rem, 1.05vw, .72rem);
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.cover-lede {
  font-size: clamp(.88rem, 1.1vw, .98rem);
  line-height: 2;
  color: var(--ink-soft);
  max-width: 30rem;
}
.cover-cta { display: flex; gap: .9rem; flex-wrap: wrap; margin-top: clamp(1.5rem, 3vw, 2.25rem); }

/* The image panel */
.cover-media {
  position: relative;
  aspect-ratio: 4 / 5;
  max-height: min(78svh, 720px);
  overflow: hidden;
  background: var(--ivory-deep);
  justify-self: end;
  width: 100%;
}
.cover-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: coverRise 1.4s var(--ease) both;
}
@keyframes coverRise {
  from { opacity: 0; transform: scale(1.05); }
  to   { opacity: 1; transform: none; }
}
/* A hairline gold frame offset behind the photo — a quiet luxury device */
.cover-media::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--gold-pale);
  z-index: 2;
  pointer-events: none;
}

.rule.on-dark { justify-content: flex-start; margin: 1.4rem 0; }
.rule.on-dark::before { display: none; }
.rule.on-dark::after {
  background: linear-gradient(90deg, var(--gold-light), transparent);
  width: clamp(90px, 14vw, 190px);
}

/* Outlined control */
.btn-outline {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.05rem 2.4rem;
  border: 1px solid var(--ink);
  color: var(--ink);
  font-size: .68rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  overflow: hidden;
  isolation: isolate;
  transition: color .5s var(--ease), border-color .5s var(--ease);
}
.btn-outline::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .55s var(--ease);
}
.btn-outline:hover { color: var(--linen); }
.btn-outline:hover::before { transform: scaleX(1); }
.btn-outline.ghost { border-color: var(--gold); color: var(--gold); }
.btn-outline.ghost::before { background: var(--gold); }
.btn-outline.ghost:hover { color: var(--linen); border-color: var(--gold); }

@media (max-width: 900px) {
  .cover-inner {
    grid-template-columns: 1fr;
    text-align: center;
    min-height: 0;
    gap: clamp(1.75rem, 6vw, 2.75rem);
  }
  .cover-copy { max-width: none; margin-inline: auto; order: 2; }
  .cover-media { order: 1; justify-self: center; max-width: 26rem; max-height: none; }
  .cover-lede { margin-inline: auto; }
  .cover-cta { justify-content: center; }
  .cover-mark { margin-inline: auto; }
  .rule.on-dark { justify-content: center; }
  .rule.on-dark::before { display: block; }
}

/* --------------------------------------------------------------------------
   9a. Image placeholder
   Shown when a media object has no `src`. Never a broken image, never
   stand-in photography.
   -------------------------------------------------------------------------- */
.media-empty {
  width: 100%;
  height: 100%;
  min-height: 200px;
  display: grid;
  place-items: center;
  background:
    repeating-linear-gradient(45deg,
      var(--ivory-deep) 0 12px, var(--linen) 12px 24px);
  border: 1px solid var(--gold-pale);
}
.media-empty span {
  font-size: .6rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--ink-mute);
  background: var(--linen);
  padding: .5rem 1rem;
  border: 1px solid var(--gold-pale);
}

/* --------------------------------------------------------------------------
   9b. Legacy hero (kept for inner pages)
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: calc(100svh - var(--nav-h));
  display: grid;
  place-items: center;
  overflow: hidden;
  padding-block: clamp(3rem, 8vw, 6rem);
  text-align: center;
}
.hero-glow {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(46% 42% at 22% 26%, rgba(227, 179, 170, .30), transparent 70%),
    radial-gradient(44% 40% at 78% 32%, rgba(214, 178, 124, .32), transparent 70%),
    radial-gradient(60% 52% at 50% 92%, rgba(239, 229, 214, .85), transparent 72%);
  filter: blur(12px);
  animation: drift 22s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes drift {
  from { transform: translate3d(-2%, -1%, 0) scale(1); }
  to   { transform: translate3d(2%, 2%, 0) scale(1.08); }
}

/* Soft botanical shadow, like the brochure corners */
.leaf-shadow {
  position: absolute;
  width: clamp(260px, 34vw, 560px);
  opacity: .5;
  pointer-events: none;
  filter: blur(1.5px);
}
.leaf-shadow.tl { top: -6%; left: -6%; }
.leaf-shadow.br { bottom: -8%; right: -7%; transform: rotate(180deg); }

.hero-inner { position: relative; z-index: 2; }
.hero h1 { margin-bottom: .5rem; }
.hero-tag {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1.05rem, 2vw, 1.6rem);
  color: var(--ink-soft);
  letter-spacing: .04em;
}
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 2.75rem; }

.hero-bottle {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: clamp(180px, 22vw, 330px);
  opacity: .95;
  z-index: 1;
  pointer-events: none;
}

.scroll-hint {
  position: absolute;
  bottom: 1.6rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  font-size: .58rem;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--ink-mute);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .7rem;
}
.scroll-hint::after {
  content: "";
  width: 1px; height: 46px;
  background: linear-gradient(var(--gold), transparent);
  animation: scrollPulse 2.4s var(--ease-soft) infinite;
  transform-origin: top;
}
@keyframes scrollPulse {
  0%   { transform: scaleY(0); opacity: 0; }
  40%  { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1) translateY(46px); opacity: 0; }
}

/* Letter-by-letter reveal for the wordmark */
.split span {
  display: inline-block;
  opacity: 0;
  transform: translateY(.5em) rotateX(-40deg);
  animation: splitIn .95s var(--ease) forwards;
}
@keyframes splitIn { to { opacity: 1; transform: none; } }

/* --------------------------------------------------------------------------
   10. Marquee
   -------------------------------------------------------------------------- */
.marquee {
  border-block: 1px solid var(--gold-pale);
  padding-block: 1.5rem;
  overflow: hidden;
  background: var(--linen);
}
.marquee-track { display: flex; width: max-content; animation: marquee 42s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  font-family: var(--display);
  font-size: clamp(1.1rem, 2vw, 1.75rem);
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding-inline: 2.2rem;
  display: flex;
  align-items: center;
  gap: 2.2rem;
  white-space: nowrap;
}
.marquee-track span::after {
  content: "";
  width: 9px; height: 9px;
  background: var(--gold);
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
  flex: none;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* --------------------------------------------------------------------------
   11. Collection cards
   -------------------------------------------------------------------------- */
.collection-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2.2vw, 2rem);
}

.p-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--linen);
  border: 1px solid var(--gold-pale);
  overflow: hidden;
  transition: transform .7s var(--ease), box-shadow .7s var(--ease);
}
.p-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 70px -32px rgba(23, 20, 15, .28);
}
.p-card-media {
  position: relative;
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--card-tint, var(--ivory-deep));
  transition: background-color .7s var(--ease);
}
/* A drawn flacon sits inset on the tint; a photograph fills the frame. */
.p-card-media svg {
  width: 62%;
  transition: transform 1s var(--ease);
}
.p-card-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease);
}
.p-card:hover .p-card-media svg { transform: scale(1.07) translateY(-6px); }
.p-card:hover .p-card-media img { transform: scale(1.06); }

/* Halo that blooms behind the bottle on hover */
.p-card-media::before {
  content: "";
  position: absolute;
  width: 68%; aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.95), transparent 68%);
  opacity: 0;
  transform: scale(.7);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.p-card:hover .p-card-media::before { opacity: 1; transform: scale(1); }

.p-badge {
  position: absolute;
  top: 1rem; left: 1rem;
  z-index: 2;
  background: var(--linen);
  border: 1px solid var(--gold-pale);
  color: var(--gold);
  font-size: .55rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  padding: .4rem .8rem;
}

.p-quick {
  position: absolute;
  left: 1rem; right: 1rem; bottom: 1rem;
  z-index: 2;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.p-card:hover .p-quick { opacity: 1; transform: none; }

.p-card-body { padding: 1.6rem 1.5rem 1.9rem; text-align: center; }
.p-card-body h3 {
  font-size: 1.6rem;
  letter-spacing: .17em;
  text-transform: uppercase;
  margin-bottom: .3rem;
}
.p-mood {
  font-family: var(--display);
  font-style: italic;
  font-size: 1rem;
  color: var(--gold);
  margin-bottom: .9rem;
}
.p-card-body p { font-size: .84rem; color: var(--ink-soft); line-height: 1.8; }
.p-family {
  margin-top: 1.1rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--gold-pale);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.p-family em {
  font-family: var(--display);
  font-style: normal;
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.p-price {
  font-family: var(--display);
  font-size: 1.32rem;
  letter-spacing: .03em;
  color: var(--ink);
}
.p-price small {
  font-family: var(--sans);
  font-size: .58rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-right: .2rem;
}

/* Family footer on a collection card — icon plus fragrance family */
.p-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .7rem;
  padding: .95rem 1rem;
  border-top: 1px solid var(--gold-pale);
  background: var(--ivory);
}
.p-foot svg { width: 17px; height: 17px; color: var(--gold); stroke-width: 1.1; }
.p-foot em {
  font-family: var(--display);
  font-style: normal;
  font-size: .8rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* Circular badge that straddles the model frame, as on the brochure page */
.aud-visual { position: relative; }
.aud-badge {
  position: absolute;
  bottom: -26px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--linen);
  border: 1px solid var(--gold-light);
  display: grid;
  place-items: center;
  color: var(--gold);
  box-shadow: 0 8px 20px -12px rgba(23, 20, 15, .4);
}
.aud-badge svg { width: 22px; height: 22px; stroke-width: 1.1; }
.aud-card-body { padding-top: 2.4rem; }

/* Packaging: box beside bottle, one row per fragrance */
.pack-set { display: grid; gap: clamp(1rem, 2vw, 1.5rem); }
.pack-item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: 4%;
  padding: clamp(1.25rem, 2.5vw, 2rem) clamp(1rem, 2vw, 1.75rem) 3rem;
  background: var(--tint, var(--ivory-deep));
  border: 1px solid var(--gold-pale);
  transition: transform .6s var(--ease);
}
.pack-item:hover { transform: translateY(-6px); }
.pack-item svg { width: 100%; }
.pack-item .giftbox { max-height: 220px; }
.pack-item .flacon  { max-height: 210px; }
.pack-name {
  position: absolute;
  left: 0; right: 0; bottom: 1rem;
  text-align: center;
  font-family: var(--display);
  font-size: .95rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* Oval icon frame, as used on the brand identity page */
.pillar.oval .pillar-icon { border-radius: 999px; width: 66px; height: 82px; }

/* Size / price ladder */
.size-lead {
  text-align: center;
  margin-top: clamp(2.5rem, 5vw, 3.75rem);
  font-size: .68rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.size-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(.75rem, 1.6vw, 1.25rem);
  max-width: 800px;
  margin: clamp(1.5rem, 3vw, 2.25rem) auto 0;
}
.size-card {
  position: relative;
  border: 1px solid var(--gold-pale);
  background: var(--linen);
  padding: 1.9rem 1rem 1.6rem;
  text-align: center;
  transition: transform .55s var(--ease), border-color .55s var(--ease),
              box-shadow .55s var(--ease);
}
.size-card:hover {
  transform: translateY(-7px);
  border-color: var(--gold-light);
  box-shadow: 0 24px 50px -34px rgba(23, 20, 15, .35);
}
.size-card.feature { border-color: var(--gold); background: var(--ivory-deep); }
.size-card .size-tag {
  position: absolute;
  top: 0; left: 50%;
  transform: translate(-50%, -50%);
  background: var(--gold);
  color: var(--linen);
  font-size: .52rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  padding: .3rem .7rem;
  white-space: nowrap;
}

/* Same label, but inline inside a size selector button */
.size-opt .size-tag {
  display: block;
  font-style: normal;
  font-size: .5rem;
  letter-spacing: .18em;
  color: var(--gold);
  margin-top: .3rem;
}
.size-opt.sel .size-tag { color: var(--linen); opacity: .85; }
.size-ml {
  display: block;
  font-family: var(--display);
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  line-height: 1;
  color: var(--ink);
}
.size-ml em {
  font-style: normal;
  font-family: var(--sans);
  font-size: .68rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-left: .3rem;
}
.size-price {
  display: block;
  font-family: var(--display);
  font-size: clamp(1.5rem, 3vw, 1.95rem);
  color: var(--gold);
  margin-top: .7rem;
  padding-top: .7rem;
  border-top: 1px solid var(--gold-pale);
}
.size-note {
  display: block;
  font-size: .6rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: .45rem;
}

/* --------------------------------------------------------------------------
   12. Values / identity grids
   -------------------------------------------------------------------------- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(2.5rem, 5vw, 4.5rem);
  position: relative;
}
.values-grid::before {
  content: "";
  position: absolute;
  top: 8%; bottom: 8%;
  left: 50%;
  width: 1px;
  background: linear-gradient(transparent, var(--gold-pale) 18%, var(--gold-pale) 82%, transparent);
}
.value { text-align: center; }
.value-icon {
  width: 78px; height: 78px;
  margin: 0 auto 1.4rem;
  border: 1px solid var(--gold-light);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--gold);
  background: var(--linen);
  transition: transform .6s var(--ease), background-color .6s var(--ease),
              border-color .6s var(--ease);
}
.value:hover .value-icon {
  transform: translateY(-6px) rotate(-4deg);
  background: var(--gold);
  border-color: var(--gold);
  color: var(--linen);
}
.value-icon svg { width: 34px; height: 34px; stroke-width: 1.1; }
.value h3 {
  font-size: 1.15rem;
  letter-spacing: .19em;
  text-transform: uppercase;
  margin-bottom: .85rem;
}
.value h3::after {
  content: "";
  display: block;
  width: 42px; height: 1px;
  background: var(--gold-light);
  margin: .85rem auto 0;
}
.value p { font-size: .87rem; color: var(--ink-soft); max-width: 34ch; margin-inline: auto; }

/* Five-pillar identity strip */
.pillars {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
}
.pillar {
  text-align: center;
  padding: clamp(1rem, 2.2vw, 2rem);
  border-left: 1px solid var(--gold-pale);
  transition: background-color .6s var(--ease);
}
.pillar:first-child { border-left: 0; }
.pillar:hover { background: var(--linen); }
.pillar-icon {
  width: 62px; height: 76px;
  margin: 0 auto 1.1rem;
  border: 1px solid var(--gold-light);
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: var(--gold);
  transition: transform .6s var(--ease);
}
.pillar:hover .pillar-icon { transform: translateY(-5px); }
.pillar-icon svg { width: 28px; height: 28px; stroke-width: 1.1; }
.pillar h4 {
  font-size: .95rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  margin-bottom: .7rem;
}
.pillar h4::after {
  content: "";
  display: block;
  width: 28px; height: 1px;
  background: var(--gold-light);
  margin: .7rem auto 0;
}
.pillar p { font-size: .78rem; color: var(--ink-soft); line-height: 1.75; }

/* --------------------------------------------------------------------------
   13. Split feature (image + text)
   -------------------------------------------------------------------------- */
.split-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(2.5rem, 6vw, 6rem);
}
.split-feature.reverse .sf-media { order: 2; }
.sf-media {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--ivory-deep);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.sf-media svg { width: 58%; }
.sf-media img { width: 100%; height: 100%; object-fit: cover; }
.sf-body h2 { margin-bottom: 1.25rem; }
.sf-list { margin-top: 2rem; display: grid; gap: 1.5rem; }
.sf-item { display: flex; gap: 1.2rem; align-items: flex-start; }
.sf-item-icon {
  flex: none;
  width: 46px; height: 46px;
  border: 1px solid var(--gold-light);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--gold);
}
.sf-item-icon svg { width: 20px; height: 20px; stroke-width: 1.15; }
.sf-item h4 {
  font-family: var(--sans);
  font-size: .74rem;
  font-weight: 400;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .4rem;
}
.sf-item p { font-size: .87rem; color: var(--ink-soft); }

/* --------------------------------------------------------------------------
   14. Scent Finder
   -------------------------------------------------------------------------- */
.finder {
  background: var(--ivory-deep);
  color: var(--ink);
  position: relative;
  overflow: hidden;
}
.finder::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(50% 60% at 15% 10%, rgba(214, 178, 124, .16), transparent 70%),
    radial-gradient(50% 60% at 85% 90%, rgba(227, 179, 170, .14), transparent 70%);
}
.finder .wrap { position: relative; z-index: 2; }
.finder .eyebrow { color: var(--gold); }
.finder h2 { color: var(--ink); }
.finder .lede { color: var(--ink-soft); }

.quiz { max-width: 880px; margin: 3rem auto 0; }
.quiz-step { display: none; }
.quiz-step.active { display: block; animation: fadeUp .7s var(--ease) both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

.quiz-q {
  font-family: var(--display);
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  text-align: center;
  letter-spacing: .05em;
  margin-bottom: 2.5rem;
  color: var(--ink);
}
.quiz-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.quiz-opt {
  border: 1px solid var(--gold-pale);
  background: var(--linen);
  padding: 2rem 1.2rem;
  text-align: center;
  color: var(--ink);
  transition: border-color .5s var(--ease), background-color .5s var(--ease),
              transform .5s var(--ease), box-shadow .5s var(--ease);
}
.quiz-opt:hover {
  border-color: var(--gold-light);
  transform: translateY(-5px);
  box-shadow: 0 22px 44px -30px rgba(23, 20, 15, .3);
}
.quiz-opt svg {
  width: 32px; height: 32px;
  margin: 0 auto .9rem;
  color: var(--gold);
  stroke-width: 1.1;
}
.quiz-opt strong {
  display: block;
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 400;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: .35rem;
}
.quiz-opt span { font-size: .76rem; color: var(--ink-mute); }

.quiz-progress {
  display: flex;
  justify-content: center;
  gap: .55rem;
  margin-bottom: 2.25rem;
}
.quiz-progress i {
  width: 34px; height: 2px;
  background: var(--gold-pale);
  transition: background-color .5s var(--ease);
}
.quiz-progress i.on { background: var(--gold); }

.quiz-result { text-align: center; }
.quiz-result .result-media {
  width: min(230px, 60vw);
  aspect-ratio: 4 / 5;
  margin: 0 auto 1.5rem;
  overflow: hidden;
  border: 1px solid var(--gold-pale);
  background: var(--linen);
}
.quiz-result .result-media img { width: 100%; height: 100%; object-fit: cover; }
.quiz-result h3 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: .5rem;
}
.quiz-result .result-mood {
  font-family: var(--display);
  font-style: italic;
  color: var(--gold);
  font-size: 1.15rem;
  margin-bottom: 1.25rem;
}
.quiz-result p { color: var(--ink-soft); max-width: 48ch; margin: 0 auto 2rem; }
.quiz-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* --------------------------------------------------------------------------
   15. Notes pyramid
   -------------------------------------------------------------------------- */
.notes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--gold-pale);
  border: 1px solid var(--gold-pale);
}
.note {
  background: var(--linen);
  padding: clamp(1.75rem, 3.4vw, 2.75rem);
  text-align: center;
  transition: background-color .6s var(--ease);
  cursor: default;
}
.note:hover { background: var(--ivory-deep); }
.note-step {
  font-family: var(--display);
  font-size: 2.6rem;
  color: var(--gold-pale);
  line-height: 1;
  transition: color .6s var(--ease);
}
.note:hover .note-step { color: var(--gold-light); }
.note h4 {
  font-size: 1rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  margin: .9rem 0 1rem;
}
.note-list { display: flex; flex-wrap: wrap; gap: .45rem; justify-content: center; }
.note-list li {
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border: 1px solid var(--gold-pale);
  padding: .35rem .8rem;
  border-radius: 99px;
  transition: border-color .4s var(--ease), color .4s var(--ease);
}
.note:hover .note-list li { border-color: var(--gold-light); color: var(--ink); }

/* --------------------------------------------------------------------------
   16. Audience
   -------------------------------------------------------------------------- */
.audience-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.aud-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.aud-card {
  border: 1px solid var(--gold-pale);
  background: var(--linen);
  overflow: hidden;
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
.aud-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 26px 60px -34px rgba(23, 20, 15, .3);
}
.aud-visual {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--tint, var(--ivory-deep));
}
/* The model frame fills the card; the badge keeps its own size */
.aud-visual > svg,
.aud-visual > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 1.2s var(--ease);
}
.aud-card:hover .aud-visual > svg,
.aud-card:hover .aud-visual > img { transform: scale(1.05); }
.aud-card-body { padding: 1.3rem 1.1rem 1.6rem; text-align: center; }
.aud-card-body h4 {
  font-size: 1.1rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  margin-bottom: .7rem;
}
.aud-card-body h4::after {
  content: "";
  display: block;
  width: 30px; height: 1px;
  background: var(--gold-light);
  margin: .7rem auto 0;
}
.aud-card-body p { font-size: .78rem; color: var(--ink-soft); line-height: 1.8; }

.aud-facts { display: grid; gap: 0; }
.aud-fact {
  display: flex;
  gap: 1.25rem;
  padding: 1.5rem 0;
  border-bottom: 1px dashed var(--gold-pale);
}
.aud-fact:last-child { border-bottom: 0; }
.aud-fact-icon {
  flex: none;
  width: 52px; height: 52px;
  border: 1px solid var(--gold-light);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--gold);
}
.aud-fact-icon svg { width: 22px; height: 22px; stroke-width: 1.1; }
.aud-fact h4 {
  font-family: var(--display);
  font-size: 1.05rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .35rem;
}
.aud-fact p { font-size: .83rem; color: var(--ink-soft); }

/* --------------------------------------------------------------------------
   17. Testimonials
   -------------------------------------------------------------------------- */
.testi-track { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.25rem, 3vw, 2.5rem); }
.testi {
  background: var(--linen);
  border: 1px solid var(--gold-pale);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  position: relative;
  transition: transform .6s var(--ease);
}
.testi:hover { transform: translateY(-6px); }
.testi-quote {
  font-family: var(--display);
  font-size: 3.4rem;
  line-height: .6;
  color: var(--gold-pale);
}
.testi p {
  font-family: var(--display);
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 1.1rem 0 1.5rem;
}
.testi-who {
  font-size: .66rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--gold);
}
.stars { display: flex; gap: .25rem; color: var(--gold); margin-bottom: .9rem; }
.stars svg { width: 13px; height: 13px; }

/* --------------------------------------------------------------------------
   18. Newsletter
   -------------------------------------------------------------------------- */
.newsletter { background: var(--sand); text-align: center; }
.nl-form {
  display: flex;
  gap: .75rem;
  max-width: 520px;
  margin: 2.25rem auto 1rem;
  flex-wrap: wrap;
}
.nl-form input {
  flex: 1 1 240px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--gold-light);
  padding: .95rem .5rem;
  font-size: .84rem;
  letter-spacing: .1em;
  outline: none;
  transition: border-color .4s var(--ease);
}
.nl-form input::placeholder { color: var(--ink-mute); letter-spacing: .16em; text-transform: uppercase; font-size: .72rem; }
.nl-form input:focus { border-color: var(--gold); }
.nl-note { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-mute); }

/* --------------------------------------------------------------------------
   18b. Thank you — the brochure's closing page
   -------------------------------------------------------------------------- */
.thankyou {
  position: relative;
  text-align: center;
  padding-block: clamp(4rem, 9vw, 7rem);
  background:
    radial-gradient(60% 50% at 50% 30%, #FFFFFF, transparent 70%),
    linear-gradient(180deg, var(--ivory) 0%, var(--sand) 100%);
  border-top: 1px solid var(--gold-pale);
}
.thankyou::before {
  content: "";
  position: absolute;
  inset: clamp(1rem, 2.5vw, 2.25rem);
  border: 1px solid var(--gold-pale);
  pointer-events: none;
}
.ty-mark { display: grid; gap: .25rem; margin-bottom: 1.75rem; }
.ty-mark .brand-word {
  font-family: var(--display);
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  letter-spacing: .38em;
  text-indent: .38em;
  text-transform: uppercase;
  color: var(--gold);
}
.ty-mark .brand-sub {
  font-size: .55rem;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.ty-head {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(2.6rem, 8vw, 6rem);
  letter-spacing: .2em;
  text-indent: .2em;
  text-transform: uppercase;
  color: var(--gold);
  line-height: 1;
}
.ty-set {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: clamp(.75rem, 2vw, 1.5rem);
  margin: clamp(2rem, 4vw, 3rem) auto clamp(2rem, 4vw, 2.75rem);
  max-width: 820px;
}
.ty-bottle { display: block; text-align: center; }
.ty-frame {
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid var(--gold-pale);
  background: var(--linen);
}
.ty-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease);
}
.ty-bottle:hover .ty-frame img { transform: scale(1.05); }
.ty-name {
  display: block;
  margin-top: .9rem;
  font-family: var(--display);
  font-size: .95rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--ink-soft);
  transition: color .35s var(--ease);
}
.ty-bottle:hover .ty-name { color: var(--gold); }
.ty-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* --------------------------------------------------------------------------
   18c. Lifestyle band
   One wide editorial image with the caption placed beneath it, never over it.
   -------------------------------------------------------------------------- */
.lifestyle {
  background: var(--ivory);
  padding-block: clamp(3rem, 7vw, 5.5rem);
}
.lifestyle-media {
  position: relative;
  width: 100%;
  /* Cinematic on desktop, taller on phones so the bottle stays readable */
  aspect-ratio: 21 / 9;
  overflow: hidden;
  background: var(--ivory-deep);
}
.lifestyle-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 1.6s var(--ease);
}
.lifestyle-media:hover img { transform: scale(1.03); }
/* Hairline frame, consistent with the rest of the site */
.lifestyle-media::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--gold-pale);
  pointer-events: none;
}

.lifestyle-caption {
  text-align: center;
  margin-top: clamp(1.75rem, 3.5vw, 2.5rem);
}
.lifestyle-caption .serif-quote {
  margin-top: .85rem;
  max-width: 30ch;
  margin-inline: auto;
}

/* Narrower viewports crop the 21:9 banner horizontally, so shift the visible
   window toward the flacon (it sits in the right half of the composition). */
@media (max-width: 900px) {
  .lifestyle-media { aspect-ratio: 16 / 10; }
  .lifestyle-media img { object-position: 72% center; }
}
@media (max-width: 620px) {
  .lifestyle-media { aspect-ratio: 4 / 3; }
  .lifestyle-media img { object-position: 78% center; }
  .lifestyle-caption .serif-quote { font-size: 1.15rem; }
}

/* --------------------------------------------------------------------------
   19. Footer
   -------------------------------------------------------------------------- */
.footer {
  background: var(--ivory-deep);
  color: var(--ink-soft);
  border-top: 1px solid var(--gold-pale);
  padding-top: clamp(3.5rem, 7vw, 6rem);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: 3.5rem;
}
.footer-brand .brand-word { color: var(--ink); font-size: clamp(1.2rem, 3vw, 1.7rem); }
.footer-brand .brand-sub { color: var(--gold); }
.footer-brand .brand { align-items: flex-start; }
.footer-brand p { font-size: .84rem; margin-top: 1.25rem; max-width: 34ch; line-height: 1.9; }
.footer h5 {
  font-family: var(--sans);
  font-size: .66rem;
  font-weight: 400;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.4rem;
}
.footer-links { display: grid; gap: .8rem; }
.footer-links a {
  font-size: .82rem;
  color: var(--ink-soft);
  transition: color .35s var(--ease), padding-left .35s var(--ease);
}
.footer-links a:hover { color: var(--gold); padding-left: .4rem; }
.socials { display: flex; gap: .7rem; margin-top: 1.6rem; flex-wrap: wrap; }
/* Icon plus handle, e.g. "Instagram — @niellor.co" */
.socials a {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  min-height: 38px;
  padding: .45rem 1rem .45rem .8rem;
  border: 1px solid var(--gold-pale);
  border-radius: 999px;
  color: var(--ink-soft);
  transition: background-color .4s var(--ease), color .4s var(--ease),
              border-color .4s var(--ease), transform .4s var(--ease);
}
.socials a em {
  font-style: normal;
  font-size: .72rem;
  letter-spacing: .1em;
  white-space: nowrap;
}
.socials a:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
  transform: translateY(-3px);
}
.socials svg { width: 16px; height: 16px; }
/* Payment rail */
.pay-rail { display: flex; flex-wrap: wrap; gap: .55rem; }
.pay-chip {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  border: 1px solid var(--gold-pale);
  border-radius: 3px;
  padding: .48rem .8rem;
  background: var(--linen);
  color: var(--ink-soft);
  transition: border-color .4s var(--ease), color .4s var(--ease);
}
.pay-chip:hover { border-color: var(--gold-light); color: var(--ink); }
.pay-chip svg { width: 17px; height: 17px; color: var(--gold); stroke-width: 1.2; flex: none; }
.pay-chip em {
  font-style: normal;
  font-size: .62rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  white-space: nowrap;
}

.footer-pay {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding-bottom: 2rem;
  border-top: 1px solid var(--gold-pale);
  padding-top: 2rem;
}
.footer-pay .pay-chip { background: var(--linen); }
.footer-terms {
  font-size: .7rem;
  letter-spacing: .1em;
  color: var(--ink-mute);
  text-align: right;
}
.footer-terms:empty { display: none; }

/* Free-delivery meter in the bag */
.ship-meter { margin-bottom: 1.1rem; }
.ship-meter:empty { display: none; }
.ship-meter p {
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: .55rem;
}
.ship-meter p b { color: var(--gold); font-weight: 400; }
.ship-meter p.done {
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: .45rem;
}
.ship-meter p.done svg { width: 14px; height: 14px; }
.ship-meter i { display: block; height: 2px; background: var(--gold-pale); overflow: hidden; }
.ship-meter i span {
  display: block;
  height: 100%;
  background: var(--gold);
  transition: width .7s var(--ease);
}

.drawer-total em {
  font-style: normal;
  font-size: .58rem;
  letter-spacing: .16em;
  color: var(--ink-mute);
  margin-left: .4rem;
}
.drawer-foot .pay-rail { margin-top: 1rem; justify-content: center; }
.drawer-foot .pay-chip { padding: .38rem .6rem; }
.drawer-foot .pay-chip em { font-size: .55rem; letter-spacing: .12em; }

.footer-bottom {
  border-top: 1px solid var(--gold-pale);
  padding-block: 1.6rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: .7rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* --------------------------------------------------------------------------
   20. Cart drawer
   -------------------------------------------------------------------------- */
.scrim {
  position: fixed;
  inset: 0;
  background: rgba(23, 20, 15, .45);
  backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  z-index: 900;
  transition: opacity .55s var(--ease), visibility .55s;
}
.scrim.open { opacity: 1; visibility: visible; }

.drawer {
  position: fixed;
  top: 0; right: 0;
  height: 100%;
  width: min(430px, 100%);
  background: var(--ivory);
  z-index: 950;
  transform: translateX(102%);
  transition: transform .65s var(--ease);
  display: flex;
  flex-direction: column;
  box-shadow: -30px 0 70px -40px rgba(23, 20, 15, .5);
}
.drawer.open { transform: none; }
.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid var(--gold-pale);
}
.drawer-head h3 { font-size: 1.15rem; letter-spacing: .24em; text-transform: uppercase; }
.drawer-body { flex: 1; overflow-y: auto; padding: 1.5rem; }
.drawer-foot { border-top: 1px solid var(--gold-pale); padding: 1.5rem; background: var(--linen); }
.drawer-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1.2rem;
  font-size: .74rem;
  letter-spacing: .24em;
  text-transform: uppercase;
}
.drawer-total b { font-family: var(--display); font-size: 1.65rem; font-weight: 400; letter-spacing: .04em; }

.cart-item { display: grid; grid-template-columns: 76px 1fr auto; gap: 1rem; padding-block: 1.25rem; border-bottom: 1px solid var(--gold-pale); }
.cart-item:first-child { padding-top: 0; }
.cart-thumb {
  background: var(--tint, var(--ivory-deep));
  aspect-ratio: 3/4;
  display: grid;
  place-items: center;
}
.cart-thumb svg { width: 58%; }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-item h4 { font-size: .95rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: .2rem; }
.cart-item .meta { font-size: .7rem; letter-spacing: .12em; color: var(--ink-mute); text-transform: uppercase; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--gold-pale); margin-top: .6rem; }
.qty button { width: 26px; height: 26px; color: var(--ink-soft); transition: color .3s, background-color .3s; }
.qty button:hover { color: var(--gold); background: var(--ivory-deep); }
.qty span { min-width: 26px; text-align: center; font-size: .78rem; }
.cart-item-right { text-align: right; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end; }
.cart-remove { font-size: .62rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-mute); border-bottom: 1px solid transparent; transition: color .3s, border-color .3s; }
.cart-remove:hover { color: var(--rose-deep); border-color: var(--rose-deep); }

.cart-empty { text-align: center; padding-block: 4rem; color: var(--ink-mute); }
.cart-empty svg { width: 42px; height: 42px; margin: 0 auto 1.25rem; color: var(--gold-light); stroke-width: .9; }
.cart-empty p { font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 1.75rem; }

/* Toast */
.toast {
  position: fixed;
  bottom: 2rem; left: 50%;
  /* Must clear its own height AND the 2rem bottom offset — a percentage
     alone left ~13px of the black bar visible at the foot of every page. */
  transform: translate(-50%, calc(100% + 3rem));
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  background: var(--ink);
  color: var(--ivory);
  padding: 1rem 1.9rem;
  font-size: .68rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  z-index: 990;
  display: flex;
  align-items: center;
  gap: .8rem;
  transition: transform .6s var(--ease), opacity .35s var(--ease), visibility .35s;
}
.toast.show {
  transform: translate(-50%, 0);
  opacity: 1;
  visibility: visible;
}
.toast svg { width: 15px; height: 15px; color: var(--gold-light); }

/* --------------------------------------------------------------------------
   21. Product detail page
   -------------------------------------------------------------------------- */
.pdp { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.pdp-media {
  position: sticky;
  top: calc(var(--nav-h) + 1.5rem);
  aspect-ratio: 4/5;
  background: var(--pdp-tint, var(--ivory-deep));
  display: grid;
  place-items: center;
  overflow: hidden;
}

/* The thumbnail strip sat under the frame at every width. That is right on a
   phone, where the frame is short and both fit on screen at once. On a laptop
   — wide but short — the 4:5 frame grew taller than the window and pushed the
   strip below the fold, so a customer never saw that a second photograph
   existed. Capping the frame's height would fix that but leave a small
   picture, so on desktop the same thumbnails move alongside the frame
   instead. Same markup, same thumbnails, same click handling — only their
   position changes, and the frame keeps its full size.

   :has() scopes this to products that actually have extra shots, so a
   single-image product keeps its frame flush with the breadcrumbs above.
   Browsers without :has() simply keep the stacked layout. */
@media (min-width: 700px) {
  .pdp-figure:has(.pdp-gallery:not(:empty)) {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: .85rem;
    align-items: start;
  }
  .pdp-figure:has(.pdp-gallery:not(:empty)) .pdp-gallery {
    order: -1;                 /* strip to the left of the frame */
    flex-direction: column;
    flex-wrap: nowrap;
    margin-top: 0;
    position: sticky;
    top: calc(var(--nav-h) + 1.5rem);
  }
  .pdp-figure:has(.pdp-gallery:not(:empty)) .pdp-thumb { width: 100%; }
}
.pdp-media svg { width: 56%; transition: transform 1.1s var(--ease); }
.pdp-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.pdp-media:hover svg { transform: scale(1.08); }
.pdp-media:hover img { transform: scale(1.05); }

/* Product gallery thumbnails — only rendered when a product has extra shots */
.pdp-gallery { display: flex; gap: .6rem; margin-top: .75rem; flex-wrap: wrap; }
.pdp-gallery:empty { display: none; }
.pdp-thumb {
  width: 72px;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid var(--gold-pale);
  background: var(--linen);
  padding: 0;
  transition: border-color .4s var(--ease);
}
.pdp-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pdp-thumb.sel { border-color: var(--gold); }

/* Specification list — only the fields we actually hold */
.pdp-specs {
  margin-top: 2rem;
  border-top: 1px solid var(--gold-pale);
}
.pdp-specs > div {
  display: grid;
  grid-template-columns: 11rem 1fr;
  gap: 1rem;
  padding: .85rem 0;
  border-bottom: 1px solid var(--gold-pale);
}
.pdp-specs dt {
  font-size: .62rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--gold);
}
.pdp-specs dd { font-size: .88rem; color: var(--ink-soft); }

/* Comparison table */
.table-scroll { overflow-x: auto; }
#compare {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  background: var(--linen);
  border: 1px solid var(--gold-pale);
}
#compare th, #compare td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--gold-pale);
  font-size: .85rem;
  text-align: left;
  vertical-align: top;
  color: var(--ink-soft);
}
#compare th {
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 400;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink);
}
#compare .rowlabel {
  font-size: .62rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  width: 22%;
}

.crumbs { font-size: .66rem; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 1.5rem; }
.crumbs a:hover { color: var(--gold); }
.crumbs span { margin-inline: .55rem; color: var(--gold-light); }

.pdp-body h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); letter-spacing: .14em; text-transform: uppercase; }
.pdp-mood { font-family: var(--display); font-style: italic; font-size: 1.3rem; color: var(--gold); margin-top: .4rem; }
.pdp-price { font-family: var(--display); font-size: 2rem; margin-block: 1.5rem 1rem; }
.pdp-price small { font-size: .8rem; font-family: var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-mute); margin-left: .6rem; }
.pdp-desc { color: var(--ink-soft); line-height: 1.95; margin-bottom: 2rem; }

.size-opts { display: flex; gap: .7rem; flex-wrap: wrap; margin-bottom: 2rem; }
.size-opt {
  border: 1px solid var(--gold-pale);
  padding: .8rem 1.4rem;
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  transition: border-color .4s var(--ease), background-color .4s var(--ease);
}
.size-opt:hover { border-color: var(--gold-light); }
.size-opt.sel { border-color: var(--gold); background: var(--gold); color: var(--linen); }

.pdp-actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-bottom: 2.25rem; }
.pdp-perks { display: grid; gap: .9rem; border-top: 1px solid var(--gold-pale); padding-top: 1.75rem; }
.pdp-perk { display: flex; gap: .85rem; align-items: center; font-size: .8rem; color: var(--ink-soft); }
.pdp-perk svg { width: 17px; height: 17px; color: var(--gold); flex: none; stroke-width: 1.2; }

/* Accordion */
.acc { border-top: 1px solid var(--gold-pale); margin-top: 2.25rem; }
.acc-item { border-bottom: 1px solid var(--gold-pale); }
.acc-head {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.3rem 0;
  font-size: .74rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  text-align: left;
  transition: color .35s var(--ease);
}
.acc-head:hover { color: var(--gold); }
.acc-head i {
  position: relative;
  flex: none;
  width: 13px; height: 13px;
}
.acc-head i::before, .acc-head i::after {
  content: "";
  position: absolute;
  background: var(--gold);
  transition: transform .45s var(--ease);
}
.acc-head i::before { inset: 6px 0; height: 1px; }
.acc-head i::after  { inset: 0 6px; width: 1px; }
.acc-item.open .acc-head i::after { transform: scaleY(0); }
.acc-panel { max-height: 0; overflow: hidden; transition: max-height .6s var(--ease); }
.acc-panel-inner { padding-bottom: 1.4rem; font-size: .86rem; color: var(--ink-soft); line-height: 1.9; }

/* --------------------------------------------------------------------------
   22. Page header (inner pages)
   -------------------------------------------------------------------------- */
.page-head {
  text-align: center;
  padding-block: clamp(3.5rem, 8vw, 6.5rem) clamp(2rem, 4vw, 3.5rem);
  position: relative;
  overflow: hidden;
}
.page-head::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 100% at 50% 0%, rgba(214, 178, 124, .18), transparent 70%);
}
.page-head > * { position: relative; }

/* --------------------------------------------------------------------------
   23. Contact
   -------------------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5rem); }
.field { margin-bottom: 1.6rem; }
.field label {
  display: block;
  font-size: .64rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .6rem;
}
.field input, .field textarea, .field select {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--gold-pale);
  padding: .8rem .2rem;
  font-size: .9rem;
  outline: none;
  transition: border-color .4s var(--ease);
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--gold); }

/* Contact form status + honeypot */
.form-status {
  margin-top: 1.1rem;
  font-size: .8rem;
  line-height: 1.7;
  color: var(--ink-soft);
  min-height: 1.2em;
}
.form-status:empty { display: none; }
.form-status.is-ok    { color: var(--gold); }
.form-status.is-error { color: #A8443A; }

/* Hidden from people, visible to bots */
.hp {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.contact-cards { display: grid; gap: 1.25rem; }
.contact-card {
  border: 1px solid var(--gold-pale);
  background: var(--linen);
  padding: 1.75rem;
  display: flex;
  gap: 1.25rem;
  transition: transform .5s var(--ease), border-color .5s var(--ease);
}
.contact-card:hover { transform: translateX(6px); border-color: var(--gold-light); }
.contact-card-icon {
  flex: none;
  width: 46px; height: 46px;
  border: 1px solid var(--gold-light);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--gold);
}
.contact-card-icon svg { width: 19px; height: 19px; stroke-width: 1.15; }
.contact-card h4 { font-family: var(--sans); font-size: .68rem; font-weight: 400; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); margin-bottom: .35rem; }
.contact-card p { font-size: .88rem; color: var(--ink-soft); }

/* --------------------------------------------------------------------------
   24. Scroll reveal
   -------------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
  transition-delay: var(--d, 0ms);
}
[data-reveal].in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   25. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .pillars { grid-template-columns: repeat(3, 1fr); }
  .pillar:nth-child(4) { border-left: 0; }
  .pillar { border-top: 1px solid var(--gold-pale); }
  .pillar:nth-child(-n+3) { border-top: 0; }
  .audience-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  :root { --nav-h: 70px; }

  .nav-inner { grid-template-columns: auto 1fr auto; }
  .nav-links {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    background: var(--ivory);
    flex-direction: column;
    gap: 0;
    padding: 1.5rem var(--gutter) 2.5rem;
    border-bottom: 1px solid var(--gold-pale);
    transform: translateY(-115%);
    transition: transform .6s var(--ease);
    z-index: 700;
  }
  .nav-links.open { transform: none; }
  .nav-links a { padding-block: 1rem; font-size: .82rem; border-bottom: 1px solid var(--gold-pale); }
  .nav-links a::after { display: none; }
  .burger { display: block; }
  .brand { justify-self: center; }

  .collection-grid { grid-template-columns: 1fr; }
  .split-feature { grid-template-columns: 1fr; }
  /* Tablets have room for a proper two-up product grid */
  @media (min-width: 621px) {
    .collection-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  }
  .split-feature.reverse .sf-media { order: 0; }
  .values-grid { grid-template-columns: 1fr; }
  .values-grid::before { display: none; }
  .notes { grid-template-columns: 1fr; }
  .testi-track { grid-template-columns: 1fr; }
  .pdp { grid-template-columns: 1fr; }
  .pdp-media { position: relative; top: 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .quiz-options { grid-template-columns: 1fr; }
  .quiz-opt { display: flex; align-items: center; gap: 1rem; text-align: left; padding: 1.25rem; }
  .quiz-opt svg { margin: 0; flex: none; }
}

@media (max-width: 900px) {
  .pack-item { grid-template-columns: 1fr 1fr; }
  .framed.leafed::before { display: none; }
}

@media (max-width: 620px) {
  /* Show the three flacons as one lineup rather than orphaning the third */
  .ty-set { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
  .ty-name { font-size: .68rem; letter-spacing: .16em; }

  .pack-item { padding-bottom: 2.5rem; }
  /* minmax(0,…) so a long word cannot widen one column against the other */
  .pillars { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }

  /* Narrow columns: long single words like "Craftsmanship" were being cut
     off, so relax the tracking and let them break rather than clip. */
  .pillar h4, .value h3, .aud-card-body h4, .sf-item h4 {
    letter-spacing: .1em;
    overflow-wrap: anywhere;
    hyphens: auto;
  }
  .pillar h4 { font-size: .82rem; }
  .pillar p  { font-size: .74rem; }
  .pillar { border-left: 0; border-top: 1px solid var(--gold-pale); }
  .pillar:nth-child(-n+2) { border-top: 0; }
  .aud-cards { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { justify-content: center; text-align: center; }
  .hero-bottle { width: 165px; opacity: .8; }
  .nav-actions { gap: .4rem; }
}

/* ==========================================================================
   26. MOBILE EXPERIENCE
   A deliberate phone layout, not a narrowed desktop. Everything here is
   scoped to small screens; the desktop rules above are untouched.
   ========================================================================== */
@media (max-width: 900px) {

  :root {
    --nav-h: 58px;              /* compact header */
    --gutter: 1.25rem;
  }

  /* ---- Tighter rhythm: the page was over 20 screens tall ---- */
  .section-pad { padding-block: clamp(2.75rem, 9vw, 4rem); }
  .section-head { margin-bottom: 1.75rem; }
  .rule { margin: 1rem 0; }
  .framed { padding: 1.5rem 1.1rem; border: 0; }
  .framed::after { display: none; }

  /* ---- Typography: less tracking, sensible sizes ---- */
  .display-lg {
    font-size: clamp(1.75rem, 7.4vw, 2.4rem);
    letter-spacing: .06em;
    line-height: 1.12;
  }
  .display-md { font-size: clamp(1.5rem, 6.2vw, 2rem); letter-spacing: .06em; }
  .sub-serif  { font-size: .9rem; margin-top: .55rem; }
  .sub-caps   { font-size: .6rem; letter-spacing: .22em; margin-top: .6rem; }
  .eyebrow    { font-size: .6rem; letter-spacing: .26em; }
  .lede       { font-size: .9rem; line-height: 1.75; }
  .serif-quote { font-size: 1.2rem; line-height: 1.45; }
  .page-head  { padding-block: 2.25rem 1.25rem; }

  /* ---- Compact header ---- */
  .announce { font-size: .58rem; letter-spacing: .18em; padding: .5rem .75rem; }
  .nav {
    border-bottom: 1px solid var(--gold-pale);
    /* backdrop-filter would make .nav a containing block for its
       position:fixed child, trapping the overlay menu inside the header.
       A solid bar is also cheaper to paint while scrolling on a phone. */
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: var(--ivory);
  }
  .nav.stuck { background: var(--ivory); }
  /* The overlay is a descendant of .nav, so it paints above its siblings
     regardless of z-index. Lift the controls back above it. */
  .burger, .brand, .nav-actions { position: relative; z-index: 720; }
  .nav-inner { grid-template-columns: auto 1fr auto; gap: .5rem; }
  .nav.stuck .nav-inner { height: 52px; }
  .brand-word { font-size: 1.05rem; letter-spacing: .26em; text-indent: .26em; }
  .brand-sub  { font-size: .42rem; letter-spacing: .26em; }
  /* 44px minimum touch target */
  .icon-btn   { width: 44px; height: 44px; }
  .burger     { width: 44px; height: 44px; }
  .nav-actions { gap: .15rem; }
  /* Search and account are not wired up; keep the bar clean on a phone */
  .nav-actions .icon-btn:not(#cartBtn):not(#searchBtn):not(#accountBtn) { display: none; }

  /* ---- Full-screen overlay menu, sitting under the header ---- */
  .nav-links {
    position: fixed;
    inset: 0;
    z-index: 700;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0;
    padding: calc(var(--nav-h) + 2.5rem) var(--gutter) 3rem;
    background: var(--ivory);
    border: 0;
    transform: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity .35s var(--ease), visibility .35s;
  }
  .nav-links.open { opacity: 1; visibility: visible; }
  .nav-links li { overflow: hidden; }
  .nav-links a {
    display: block;
    text-align: center;
    font-family: var(--display);
    font-size: 1.5rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--ink);
    padding-block: .95rem;
    border-bottom: 1px solid var(--gold-pale);
    transform: translateY(110%);
    transition: transform .5s var(--ease);
  }
  .nav-links li:last-child a { border-bottom: 0; }
  .nav-links.open a { transform: none; }
  .nav-links.open li:nth-child(1) a { transition-delay: .05s; }
  .nav-links.open li:nth-child(2) a { transition-delay: .10s; }
  .nav-links.open li:nth-child(3) a { transition-delay: .15s; }
  .nav-links.open li:nth-child(4) a { transition-delay: .20s; }
  .nav-links.open li:nth-child(5) a { transition-delay: .25s; }
  .nav-links a[aria-current="page"] { color: var(--gold); }
  body.menu-open { overflow: hidden; }

  /* ---- Hero: the image leads ---- */
  .cover { padding-block: 1.25rem 2.25rem; }
  .cover-inner { gap: 1.5rem; }
  .cover-media {
    order: 1;
    max-width: none;
    width: 100%;
    aspect-ratio: 4 / 5;
    max-height: 56svh;
    animation: heroImg .9s var(--ease) both;
  }
  .cover-media img { object-position: center 42%; }
  .cover-copy { order: 2; }
  .cover-mark { display: none; }        /* the wordmark carries it on a phone */
  .cover-word {
    font-size: clamp(1.9rem, 9.5vw, 2.6rem);
    letter-spacing: .16em;
    text-indent: .16em;
    animation: heroUp .7s var(--ease) .15s both;
  }
  .cover-kicker {
    margin-top: .7rem;
    font-size: .58rem;
    letter-spacing: .2em;
    line-height: 1.7;
    animation: heroUp .7s var(--ease) .25s both;
  }
  .cover .rule.on-dark { margin: .9rem 0; animation: heroUp .7s var(--ease) .32s both; }
  .cover-lede {
    font-size: .85rem;
    line-height: 1.75;
    max-width: 30ch;
    animation: heroUp .7s var(--ease) .4s both;
  }
  .cover-cta {
    margin-top: 1.35rem;
    gap: .5rem;
    flex-direction: column;
    align-items: center;
    animation: heroUp .7s var(--ease) .5s both;
  }
  .cover-cta .btn-outline { width: 100%; max-width: 20rem; padding-block: .95rem; }
  /* Secondary action reads as a quiet link rather than a second button */
  .cover-cta .btn-outline.ghost {
    border: 0;
    padding: .3rem 0;
    width: auto;
    font-size: .62rem;
    color: var(--ink-mute);
  }
  .cover-cta .btn-outline.ghost::before { display: none; }
  .cover-cta .btn-outline.ghost:hover { color: var(--gold); }

  @keyframes heroImg { from { opacity: 0; transform: scale(1.03); } to { opacity: 1; transform: none; } }
  @keyframes heroUp  { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

  /* ---- Product cards: photography first, minimal copy ---- */
  .p-card-media { aspect-ratio: 3 / 4; }
  .p-card-body { padding: 1rem .9rem 1.1rem; }
  .p-card-body h3 { font-size: 1.15rem; letter-spacing: .12em; }
  .p-mood { font-size: .82rem; margin-bottom: .5rem; }
  /* The long description belongs on the product page, not the card */
  .p-card-body > p:not(.p-mood) { display: none; }
  .p-family { margin-top: .6rem; padding-top: .6rem; }
  .p-price { font-size: 1.05rem; }
  .p-foot { padding: .7rem .8rem; }
  .p-foot em { font-size: .64rem; letter-spacing: .16em; }
  /* Quick-add is a hover affordance; on touch the card links to the product */
  .p-quick { display: none; }

  .aud-visual { aspect-ratio: 3 / 4; }
  .aud-card-body { padding: 1.9rem .9rem 1.2rem; }
  .aud-card-body h4 { font-size: .95rem; }
  .aud-card-body p { font-size: .76rem; line-height: 1.65; }

  /* ---- Supporting blocks ---- */
  .aud-fact { padding: 1rem 0; gap: .9rem; }
  .aud-fact-icon { width: 42px; height: 42px; }
  .aud-fact h4 { font-size: .92rem; }
  .aud-fact p { font-size: .78rem; }

  .value-icon { width: 62px; height: 62px; margin-bottom: 1rem; }
  .value h3 { font-size: 1rem; }
  .value p { font-size: .8rem; }
  .values-grid { gap: 2rem; }

  .pillar { padding: .9rem .5rem; }
  .pillar-icon { width: 52px; height: 62px; margin-bottom: .8rem; }
  .pillar-icon svg { width: 22px; height: 22px; }

  .sf-item { gap: .9rem; }
  .sf-item-icon { width: 40px; height: 40px; }
  .sf-item p { font-size: .8rem; }

  .size-cards { margin-top: 1.25rem; }
  .size-lead { margin-top: 2rem; font-size: .6rem; letter-spacing: .22em; }

  .lifestyle { padding-block: 2.25rem; }
  .lifestyle-caption { margin-top: 1.25rem; }

  .thankyou { padding-block: 2.75rem; }
  .ty-head { font-size: clamp(2rem, 11vw, 3rem); letter-spacing: .12em; text-indent: .12em; }
  .quiz { margin-top: 1.75rem; }
  .quiz-q { font-size: 1.25rem; margin-bottom: 1.5rem; }

  /* ---- Footer: compact ---- */
  .footer { padding-top: 2.5rem; }
  /* Brand block full width, the three link groups two-up beneath it, so the
     footer is roughly half the height it was when everything stacked. */
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem 1.25rem;
    padding-bottom: 2rem;
  }
  .footer-brand { grid-column: 1 / -1; }
  .footer-brand p { font-size: .8rem; margin-top: .9rem; }
  .footer h5 { margin-bottom: .8rem; }
  .footer-links { gap: .55rem; }
  .footer-links a { font-size: .8rem; }
  .footer-pay { flex-direction: column; align-items: flex-start; gap: .9rem; padding-block: 1.5rem; }
  .footer-terms { text-align: left; }
  .socials { gap: .5rem; }

  /* ---- Touch targets ---- */
  .btn, .btn-outline { min-height: 46px; }
  .size-opt { min-height: 42px; display: inline-flex; align-items: center; }
}

/* Phones proper */
@media (max-width: 620px) {

  /* ---- Swipeable rows -------------------------------------------------
     Phones only. Cards laid out horizontally with snap points, bleeding to
     the screen edges so the next card peeks and signals there is more.
     Tablets keep the two-up grid; desktop keeps the full grid. ---------- */
  .collection-grid,
  .aud-cards {
    display: grid;
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 80%;
    gap: .85rem;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    padding-bottom: .4rem;
  }
  .collection-grid::-webkit-scrollbar,
  .aud-cards::-webkit-scrollbar { display: none; }
  .collection-grid > *, .aud-cards > * { scroll-snap-align: center; }

  .contact-grid { gap: 2rem; }
  .pdp-specs > div { grid-template-columns: 8.5rem 1fr; gap: .6rem; }
}

/* Small phones — 320px must still hold together */
@media (max-width: 360px) {
  :root { --gutter: 1rem; }
  .collection-grid, .aud-cards { grid-auto-columns: 84%; }
  .cover-word { font-size: 1.75rem; letter-spacing: .12em; text-indent: .12em; }
  .size-card { padding: 1.6rem .5rem 1.2rem; }
  .size-ml { font-size: 1.5rem; }
  .size-price { font-size: 1.25rem; }
  .size-tag { font-size: .46rem; letter-spacing: .14em; padding: .25rem .45rem; }
}

/* ==========================================================================
   27. CAMPAIGN · COMING SOON · WELCOME OFFER
   ========================================================================== */

/* --------------------------------------------------------------------------
   Campaign / editorial
   -------------------------------------------------------------------------- */
.campaign-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.75rem);
}
.camp-card {
  display: block;
  position: relative;
  overflow: hidden;
  background: var(--ivory-deep);
  border: 1px solid var(--gold-pale);
}
.camp-media {
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--ivory-deep);
}
.camp-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.camp-card:hover .camp-media img { transform: scale(1.04); }
.camp-media .media-empty { min-height: 0; }

/* Caption sits on an ivory band beneath the frame, never over the image */
.camp-body {
  display: block;
  padding: 1.1rem 1.1rem 1.3rem;
  text-align: center;
  background: var(--linen);
  border-top: 1px solid var(--gold-pale);
}
.camp-aud {
  display: block;
  font-style: normal;
  font-size: .58rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold);
}
.camp-title {
  display: block;
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.5rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink);
  margin: .45rem 0 .35rem;
}
.camp-line { display: block; font-size: .8rem; color: var(--ink-soft); line-height: 1.7; }

.campaign-note {
  margin-top: 1.5rem;
  text-align: center;
  font-size: .62rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* --------------------------------------------------------------------------
   Coming soon
   -------------------------------------------------------------------------- */
.coming-sec { background: var(--ivory-deep); }
.coming-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(.85rem, 1.8vw, 1.5rem);
}
.coming-card {
  background: var(--linen);
  border: 1px solid var(--gold-pale);
  display: flex;
  flex-direction: column;
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
.coming-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px -34px rgba(23, 20, 15, .3);
}
.coming-media {
  position: relative;
  aspect-ratio: 3 / 4;
  background: var(--tint, var(--ivory-deep));
  display: grid;
  place-items: center;
  overflow: hidden;
}
.coming-media img { width: 100%; height: 100%; object-fit: cover; }

/* A quiet gold monogram stands in for a bottle we have not made yet */
.coming-mark {
  width: 54px;
  height: 72px;
  border: 1px solid var(--gold-light);
  border-radius: 999px;
  position: relative;
  opacity: .75;
}
.coming-mark::before {
  content: "N";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 1.7rem;
  color: var(--gold);
}

.coming-flag {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  text-align: center;
  padding: .5rem;
  font-size: .55rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(255, 253, 250, .88);
  border-top: 1px solid var(--gold-pale);
}

.coming-body { padding: 1.1rem 1rem 1.35rem; text-align: center; }
.coming-body h3 {
  font-size: .82rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-family: var(--sans);
  font-weight: 400;
}
.coming-body p {
  font-family: var(--display);
  font-style: italic;
  font-size: .95rem;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: .6rem 0 1.1rem;
  min-height: 3em;
}

/* --------------------------------------------------------------------------
   Welcome offer
   -------------------------------------------------------------------------- */
.promo-sec { padding-block: clamp(2.5rem, 6vw, 4.5rem); background: var(--ivory); }
.promo {
  position: relative;
  text-align: center;
  padding: clamp(2.25rem, 5vw, 3.5rem) clamp(1.25rem, 4vw, 3rem);
  border: 1px solid var(--gold-light);
  background:
    radial-gradient(70% 120% at 50% 0%, rgba(214, 178, 124, .10), transparent 70%),
    var(--linen);
}
/* Inner hairline, the same device used on the framed brochure pages */
.promo::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid var(--gold-pale);
  pointer-events: none;
}
.promo-kicker {
  font-family: var(--display);
  font-size: clamp(1.4rem, 3.4vw, 2.1rem);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink);
}
.promo-offer {
  margin-top: .6rem;
  font-size: clamp(.85rem, 1.4vw, 1rem);
  letter-spacing: .06em;
  color: var(--ink-soft);
}

.promo-code {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: .3rem;
  margin: 1.35rem 0 1.5rem;
  padding: .85rem 2rem;
  border: 1px dashed var(--gold);
  background: transparent;
  transition: background-color .4s var(--ease), border-color .4s var(--ease);
}
.promo-code span {
  font-family: var(--display);
  font-size: clamp(1.15rem, 2.6vw, 1.5rem);
  letter-spacing: .3em;
  text-indent: .3em;
  color: var(--gold);
}
.promo-code em {
  font-style: normal;
  font-size: .55rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.promo-code:hover { background: rgba(214, 178, 124, .09); border-color: var(--gold-light); }
.promo-code.copied { border-style: solid; }
.promo-code.copied em { color: var(--gold); }

.promo-fine {
  margin-top: 1.25rem;
  font-size: .62rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* Card additions used by the collection cards */
.p-desc {
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.p-cta {
  font-size: .62rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom: 1px solid var(--gold-pale);
  padding-bottom: .2rem;
  transition: border-color .4s var(--ease);
}
.p-card:hover .p-cta { border-color: var(--gold); }

/* --------------------------------------------------------------------------
   Tablet
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .campaign-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
  .camp-title { font-size: 1.2rem; }
  .camp-line { font-size: .74rem; }
  .coming-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .promo-code { margin: 1.1rem 0 1.25rem; }
}

/* --------------------------------------------------------------------------
   Phones — campaign and coming soon become swipe rows
   -------------------------------------------------------------------------- */
@media (max-width: 620px) {
  .campaign-grid,
  .coming-grid {
    display: grid;
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 74%;
    gap: .85rem;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    padding-bottom: .4rem;
  }
  .campaign-grid::-webkit-scrollbar,
  .coming-grid::-webkit-scrollbar { display: none; }
  .campaign-grid > *, .coming-grid > * { scroll-snap-align: center; }

  .coming-grid { grid-auto-columns: 62%; }
  .coming-body p { min-height: 0; font-size: .88rem; }
  .coming-body { padding: .9rem .8rem 1.1rem; }

  .camp-body { padding: .9rem .8rem 1.1rem; }
  .camp-title { font-size: 1.15rem; }
  .campaign-note { margin-top: 1.1rem; font-size: .56rem; }

  .promo { padding: 1.9rem 1.1rem; }
  .promo-code { padding: .75rem 1.5rem; }
  .promo .btn { width: 100%; max-width: 20rem; }
}

/* ==========================================================================
   28. SEARCH OVERLAY
   ========================================================================== */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 960;
  background: rgba(23, 20, 15, .32);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s var(--ease), visibility .3s;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(1rem, 6vh, 5rem) var(--gutter) 2rem;
}
.search-overlay.open { opacity: 1; visibility: visible; }

.search-panel {
  width: min(720px, 100%);
  max-height: min(78vh, 720px);
  display: flex;
  flex-direction: column;
  background: var(--ivory);
  border: 1px solid var(--gold-pale);
  box-shadow: 0 40px 80px -50px rgba(23, 20, 15, .55);
  transform: translateY(-12px);
  opacity: 0;
  transition: transform .35s var(--ease), opacity .35s var(--ease);
}
.search-overlay.open .search-panel { transform: none; opacity: 1; }

/* ---- input row ---- */
.search-bar {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .9rem 1rem;
  border-bottom: 1px solid var(--gold-pale);
  background: var(--linen);
}
.search-bar-icon { display: grid; place-items: center; color: var(--gold); flex: none; }
.search-bar-icon svg { width: 19px; height: 19px; stroke-width: 1.2; }

#searchInput {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  outline: none;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 300;
  letter-spacing: .02em;
  color: var(--ink);
  padding: .35rem 0;
}
#searchInput::placeholder { color: var(--ink-mute); }
/* the browser's own clear affordance duplicates ours */
#searchInput::-webkit-search-cancel-button { display: none; }

.search-clear, .search-close {
  flex: none;
  width: 36px; height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--ink-mute);
  transition: color .3s var(--ease), background-color .3s var(--ease);
}
.search-clear:hover, .search-close:hover { color: var(--gold); background: var(--ivory-deep); }
.search-clear svg, .search-close svg { width: 15px; height: 15px; }
.search-close { border-left: 1px solid var(--gold-pale); border-radius: 0; }

/* ---- body ---- */
.search-body { overflow-y: auto; padding: 1rem; }

.s-count {
  font-size: .6rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: .75rem;
}
.s-list { display: grid; gap: .5rem; }

.s-result {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: .9rem;
  align-items: center;
  padding: .6rem;
  border: 1px solid transparent;
  transition: border-color .25s var(--ease), background-color .25s var(--ease);
}
.s-result:hover, .s-result.on {
  border-color: var(--gold-pale);
  background: var(--linen);
}
.s-thumb {
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--tint, var(--ivory-deep));
  border: 1px solid var(--gold-pale);
}
.s-thumb img { width: 100%; height: 100%; object-fit: cover; }

.s-text { min-width: 0; }
.s-text strong {
  display: block;
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.1rem;
  letter-spacing: .08em;
  color: var(--ink);
}
.s-text em {
  display: block;
  font-style: normal;
  font-size: .58rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--gold);
  margin: .2rem 0 .3rem;
}
.s-text > span {
  display: block;
  font-size: .78rem;
  line-height: 1.55;
  color: var(--ink-soft);
  /* two lines, then ellipsis */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.s-price {
  font-family: var(--display);
  font-size: .95rem;
  color: var(--ink);
  white-space: nowrap;
}

/* ---- chips / suggestions ---- */
.s-chips + .s-chips { margin-top: 1.25rem; }
.s-chips-label {
  font-size: .58rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: .6rem;
}
.s-chip-row { display: flex; flex-wrap: wrap; gap: .45rem; }
.s-chip {
  border: 1px solid var(--gold-pale);
  background: var(--linen);
  padding: .45rem .85rem;
  font-size: .72rem;
  letter-spacing: .1em;
  color: var(--ink-soft);
  border-radius: 99px;
  transition: border-color .3s var(--ease), color .3s var(--ease);
}
.s-chip:hover { border-color: var(--gold-light); color: var(--ink); }

/* ---- empty ---- */
.s-empty { padding: 1.5rem .25rem; text-align: center; }
.s-empty-head {
  font-family: var(--display);
  font-size: 1.35rem;
  letter-spacing: .06em;
  color: var(--ink);
}
.s-empty-sub { font-size: .82rem; color: var(--ink-soft); margin: .4rem 0 1.5rem; }
.s-empty .s-chips { text-align: center; }
.s-empty .s-chip-row { justify-content: center; }

/* --------------------------------------------------------------------------
   Phones: the panel becomes the screen
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .search-overlay { padding: 0; background: var(--ivory); backdrop-filter: none; }
  .search-panel {
    width: 100%;
    max-width: none;
    height: 100svh;
    max-height: none;
    border: 0;
    box-shadow: none;
  }
  .search-bar { padding: .75rem .85rem; gap: .5rem; }
  #searchInput { font-size: 16px; }   /* 16px stops iOS zooming on focus */
  .search-clear, .search-close { width: 44px; height: 44px; }
  .search-body { padding: 1rem .85rem 3rem; }

  .s-result { grid-template-columns: 56px 1fr; row-gap: .35rem; }
  .s-price { grid-column: 2; justify-self: start; font-size: .88rem; }
  .s-text > span { -webkit-line-clamp: 2; }
}

/* ==========================================================================
   29. AUTH · ACCOUNT
   ========================================================================== */
.auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 970;
  background: rgba(23, 20, 15, .34);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s var(--ease), visibility .3s;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow-y: auto;
  padding: clamp(1rem, 6vh, 4rem) var(--gutter) 2rem;
}
.auth-overlay.open { opacity: 1; visibility: visible; }

.auth-panel {
  position: relative;
  width: min(430px, 100%);
  background: var(--ivory);
  border: 1px solid var(--gold-pale);
  padding: clamp(1.75rem, 4vw, 2.5rem);
  box-shadow: 0 40px 80px -50px rgba(23, 20, 15, .55);
  transform: translateY(-12px);
  opacity: 0;
  transition: transform .35s var(--ease), opacity .35s var(--ease);
}
.auth-overlay.open .auth-panel { transform: none; opacity: 1; }

.auth-close {
  position: absolute;
  top: .6rem; right: .6rem;
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--ink-mute);
  transition: color .3s var(--ease), background-color .3s var(--ease);
}
.auth-close:hover { color: var(--gold); background: var(--ivory-deep); }
.auth-close svg { width: 15px; height: 15px; }

.auth-head { text-align: center; margin-bottom: 1.5rem; }
.auth-head .brand-word {
  display: block;
  font-family: var(--display);
  font-size: 1.1rem;
  letter-spacing: .34em;
  text-indent: .34em;
  text-transform: uppercase;
  color: var(--gold);
}
.auth-head h2 {
  font-size: 1.6rem;
  letter-spacing: .06em;
  color: var(--ink);
  margin-top: .5rem;
}

.auth-lead { font-size: .84rem; color: var(--ink-soft); margin-bottom: 1.25rem; text-align: center; }

/* Social / alternate methods */
.auth-socials { display: grid; gap: .55rem; }
.auth-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  min-height: 46px;
  width: 100%;
  border: 1px solid var(--gold-pale);
  background: var(--linen);
  font-size: .74rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink);
  transition: border-color .35s var(--ease), background-color .35s var(--ease);
}
.auth-social:hover { border-color: var(--gold-light); background: var(--ivory-deep); }
.auth-social svg { width: 16px; height: 16px; }
.auth-social-mark {
  font-family: var(--display);
  font-size: 1rem;
  color: var(--gold);
  line-height: 1;
}

.auth-or {
  position: relative;
  text-align: center;
  margin: 1.25rem 0;
}
.auth-or::before {
  content: "";
  position: absolute;
  top: 50%; left: 0; right: 0;
  height: 1px;
  background: var(--gold-pale);
}
.auth-or span {
  position: relative;
  background: var(--ivory);
  padding: 0 .8rem;
  font-size: .58rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.auth-panel .field { margin-bottom: 1.1rem; }
.field-hint {
  font-size: .66rem;
  color: var(--ink-mute);
  margin-top: .4rem;
  letter-spacing: .04em;
}

.otp-input {
  font-family: var(--display);
  font-size: 1.6rem !important;
  letter-spacing: .5em;
  text-align: center;
}

.auth-status {
  margin-top: .9rem;
  font-size: .78rem;
  line-height: 1.6;
  text-align: center;
  color: var(--ink-soft);
  min-height: 1.2em;
}
.auth-status:empty { display: none; }
.auth-status.is-ok { color: var(--gold); }
.auth-status.is-error { color: #A8443A; }

.auth-alt {
  margin-top: 1.25rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--gold-pale);
  display: flex;
  flex-direction: column;
  gap: .55rem;
  align-items: center;
}
.auth-alt button {
  font-size: .7rem;
  letter-spacing: .12em;
  color: var(--ink-soft);
  border-bottom: 1px solid transparent;
  transition: color .3s var(--ease), border-color .3s var(--ease);
}
.auth-alt button:hover { color: var(--gold); border-color: var(--gold-pale); }

/* Not-configured notice */
.auth-notice { text-align: center; }
.auth-notice-head {
  font-family: var(--display);
  font-size: 1.15rem;
  color: var(--ink);
  margin-bottom: .75rem;
}
.auth-notice p { font-size: .82rem; line-height: 1.7; color: var(--ink-soft); margin-bottom: .75rem; }
.auth-notice-fine { font-size: .72rem !important; color: var(--ink-mute) !important; }
.auth-notice code {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: .92em;
  background: var(--ivory-deep);
  padding: .1rem .35rem;
  border: 1px solid var(--gold-pale);
}
.auth-notice .btn { margin-top: .75rem; }

/* Signed-in marker on the header icon */
.icon-btn.is-authed { color: var(--gold); }
.icon-btn.is-authed::after {
  content: "";
  position: absolute;
  right: 6px; top: 7px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

/* --------------------------------------------------------------------------
   Account page
   -------------------------------------------------------------------------- */
.acct-grid {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: start;
}
.acct-side {
  border: 1px solid var(--gold-pale);
  background: var(--linen);
  padding: 1.5rem 1.25rem;
  text-align: center;
  position: sticky;
  top: calc(var(--nav-h) + 1rem);
}
.acct-hello {
  font-size: .58rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.acct-name {
  font-family: var(--display);
  font-size: 1.25rem;
  letter-spacing: .08em;
  color: var(--ink);
  margin: .5rem 0 1.25rem;
  word-break: break-word;
}

.acct-main { display: grid; gap: clamp(1rem, 2vw, 1.5rem); }
.acct-panel {
  border: 1px solid var(--gold-pale);
  background: var(--linen);
  padding: clamp(1.25rem, 3vw, 1.9rem);
}
.acct-panel h2 {
  font-size: .72rem;
  font-family: var(--sans);
  font-weight: 400;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.acct-empty {
  font-family: var(--display);
  font-style: italic;
  font-size: 1rem;
  color: var(--ink-mute);
}

.acct-rows { display: grid; gap: 0; }
.acct-rows > div {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 1rem;
  padding: .75rem 0;
  border-bottom: 1px solid var(--gold-pale);
}
.acct-rows > div:last-child { border-bottom: 0; }
.acct-rows dt {
  font-size: .6rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.acct-rows dd { font-size: .9rem; color: var(--ink); word-break: break-word; }

.acct-gate {
  max-width: 30rem;
  margin: 0 auto;
  text-align: center;
  border: 1px solid var(--gold-pale);
  background: var(--linen);
  padding: clamp(1.75rem, 4vw, 2.75rem);
}
.acct-gate-head {
  font-family: var(--display);
  font-size: 1.35rem;
  color: var(--ink);
  margin-bottom: .75rem;
}
.acct-gate p { font-size: .85rem; line-height: 1.75; color: var(--ink-soft); }
.acct-gate code {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: .9em;
  background: var(--ivory-deep);
  padding: .1rem .35rem;
  border: 1px solid var(--gold-pale);
}
.acct-gate-cta, .acct-gate .btn { margin-top: 1.5rem; }
.acct-gate-cta { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }

/* --------------------------------------------------------------------------
   Phones
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .auth-overlay { padding: 0; background: var(--ivory); backdrop-filter: none; }
  .auth-panel {
    width: 100%;
    min-height: 100svh;
    border: 0;
    box-shadow: none;
    padding: 3.5rem 1.25rem 3rem;
  }
  .auth-close { top: .5rem; right: .5rem; width: 44px; height: 44px; }
  .auth-social { min-height: 50px; }
  .auth-panel input { font-size: 16px; }   /* stops iOS zooming on focus */
  .auth-or span { background: var(--ivory); }

  .acct-grid { grid-template-columns: 1fr; }
  .acct-side { position: static; }
  .acct-rows > div { grid-template-columns: 6.5rem 1fr; gap: .6rem; }
}

/* ==========================================================================
   30. AUTH — NIELLOR refinement
   Overrides section 29. Same ivory/gold language as the rest of the site.
   ========================================================================== */
.auth-overlay {
  background: rgba(23, 20, 15, .28);
  align-items: center;
}
.auth-panel {
  width: min(408px, 100%);
  padding: clamp(2rem, 4.5vw, 2.75rem) clamp(1.5rem, 4vw, 2.25rem) clamp(1.75rem, 4vw, 2.25rem);
  background: var(--linen);
  border: 1px solid var(--gold-pale);
}
/* Inner hairline, the device used on the brochure pages and the promo panel */
.auth-panel::after {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(176, 128, 63, .16);
  pointer-events: none;
}
.auth-panel > * { position: relative; z-index: 1; }

.auth-head { margin-bottom: 1.4rem; }
.auth-head .brand-word {
  font-size: 1rem;
  letter-spacing: .42em;
  text-indent: .42em;
  color: var(--ink);
}
.auth-head .brand-word::after {
  content: "";
  display: block;
  width: 34px;
  height: 1px;
  background: var(--gold);
  margin: .8rem auto 0;
}
.auth-head h2 {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(1.5rem, 4.5vw, 1.85rem);
  letter-spacing: .04em;
  color: var(--ink);
  margin-top: .9rem;
}

.auth-lead {
  font-size: .84rem;
  line-height: 1.7;
  color: var(--ink-soft);
  text-align: center;
  margin-bottom: 1.5rem;
  max-width: 30ch;
  margin-inline: auto;
}

/* ---- Google button ---- */
.auth-social {
  gap: .7rem;
  min-height: 48px;
  background: var(--linen);
  border-color: var(--gold-pale);
  font-family: var(--sans);
  font-size: .7rem;
  letter-spacing: .18em;
  color: var(--ink);
}
.auth-social:hover {
  border-color: var(--gold);
  background: var(--ivory);
  transform: translateY(-1px);
}
.auth-social .g-mark { width: 17px; height: 17px; flex: none; }

.auth-or { margin: 1.35rem 0; }
.auth-or span { background: var(--linen); letter-spacing: .3em; }

/* ---- fields ---- */
.auth-panel .field { margin-bottom: 1.15rem; position: relative; }
.auth-panel .field label {
  font-size: .6rem;
  letter-spacing: .24em;
  color: var(--ink-mute);
}
.auth-panel .field input {
  border-bottom-color: var(--gold-pale);
  padding: .7rem .1rem;
  font-size: .92rem;
}
.auth-panel .field input:focus { border-bottom-color: var(--gold); }
.auth-panel .field input::placeholder { color: #C2B8A8; }

/* "Forgot password?" sits with the password field */
.field-link {
  position: absolute;
  top: 0; right: 0;
  font-size: .62rem;
  letter-spacing: .1em;
  color: var(--gold);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease);
}
.field-link:hover { border-bottom-color: var(--gold); }

.auth-panel .btn { margin-top: .35rem; letter-spacing: .3em; }

.auth-status { margin-top: 1rem; }

/* ---- footer link ---- */
.auth-foot {
  margin-top: 1.4rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--gold-pale);
  text-align: center;
  font-size: .78rem;
  color: var(--ink-soft);
}
.auth-foot button {
  font-size: .78rem;
  letter-spacing: .06em;
  color: var(--gold);
  border-bottom: 1px solid var(--gold-pale);
  padding-bottom: 1px;
  margin-left: .3rem;
  transition: border-color .3s var(--ease);
}
.auth-foot button:hover { border-bottom-color: var(--gold); }

/* ---- reset-link sent ---- */
.auth-sent { text-align: center; }
.auth-sent-mark {
  display: grid;
  place-items: center;
  width: 62px; height: 62px;
  margin: 0 auto 1.1rem;
  border: 1px solid var(--gold-light);
  border-radius: 50%;
  color: var(--gold);
}
.auth-sent-mark svg { width: 24px; height: 24px; stroke-width: 1.1; }
.auth-sent-head {
  font-family: var(--display);
  font-size: 1.35rem;
  letter-spacing: .04em;
  color: var(--ink);
}
.auth-sent-body {
  font-size: .84rem;
  line-height: 1.75;
  color: var(--ink-soft);
  margin: .7rem auto 1rem;
  max-width: 32ch;
}
.auth-sent-body strong { color: var(--ink); font-weight: 400; }
.auth-sent-fine {
  font-size: .7rem;
  color: var(--ink-mute);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

/* ---- notice (accounts unavailable) ---- */
.auth-notice-cta { display: grid; gap: .6rem; margin-top: 1.4rem; }

/* --------------------------------------------------------------------------
   Phones — the panel is a sheet, not a shrunken dialog
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .auth-overlay { align-items: stretch; }
  .auth-panel {
    padding: 3.25rem 1.25rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .auth-panel::after { inset: 0; border: 0; }
  .auth-head h2 { font-size: 1.6rem; }
  .auth-lead { font-size: .82rem; margin-bottom: 1.35rem; }
  .auth-social { min-height: 50px; font-size: .68rem; }
  .auth-panel .btn { min-height: 50px; }
  .auth-foot { font-size: .8rem; }
  .auth-foot button { font-size: .8rem; }
}

/* Very small phones */
@media (max-width: 360px) {
  .auth-panel { padding-inline: 1rem; }
  .auth-head .brand-word { font-size: .88rem; letter-spacing: .32em; text-indent: .32em; }
  .auth-head h2 { font-size: 1.4rem; }
  .auth-social { font-size: .62rem; letter-spacing: .12em; }
}

/* ==========================================================================
   31. ACCOUNT — section navigation
   ========================================================================== */
.acct-nav { display: grid; gap: .3rem; margin-top: 1.25rem; text-align: left; }
.acct-nav button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
  width: 100%;
  padding: .7rem .75rem;
  font-size: .68rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border: 1px solid transparent;
  transition: border-color .3s var(--ease), color .3s var(--ease),
              background-color .3s var(--ease);
}
.acct-nav button:hover { color: var(--ink); background: var(--ivory); }
.acct-nav button.on {
  color: var(--ink);
  border-color: var(--gold-pale);
  background: var(--ivory);
}
.acct-nav button.on::before { content: ""; }

.acct-section { display: none; }
.acct-section.on { display: grid; gap: clamp(1rem, 2vw, 1.5rem); }

.acct-provider {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  text-transform: capitalize;
}
.acct-since { font-size: .72rem; color: var(--ink-mute); margin-top: 1rem; }

.acct-empty-cta { margin-top: 1.1rem; }

/* --------------------------------------------------------------------------
   31b. Auth — mobile touch corrections
   These sit last so they win over the refinement block above.
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  /* 16px minimum, otherwise iOS Safari zooms the page when a field is focused */
  .auth-panel .field input,
  .auth-panel input { font-size: 16px; }

  /* Comfortable hit areas for the two text links */
  .field-link {
    padding: .35rem .25rem;
    margin: -.35rem -.25rem;
    font-size: .68rem;
  }
  .auth-foot { padding-top: 1.35rem; }
  .auth-foot button {
    display: inline-block;
    padding: .5rem .25rem;
    margin: -.15rem 0 -.15rem .25rem;
  }
}

/* ==========================================================================
   32. ACCOUNT — profile editing and addresses
   ========================================================================== */
.acct-panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
}
.acct-panel-head h2 { margin-bottom: 0; }

.acct-link {
  font-size: .62rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom: 1px solid var(--gold-pale);
  padding-bottom: 2px;
  white-space: nowrap;
  transition: border-color .3s var(--ease);
}
.acct-link:hover { border-bottom-color: var(--gold); }

/* Forms inside account panels */
.acct-panel .field { margin-bottom: 1.05rem; }
.acct-panel .field label {
  display: block;
  font-size: .6rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: .5rem;
}
.acct-panel .field input {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--gold-pale);
  padding: .65rem .1rem;
  font-size: .92rem;
  color: var(--ink);
  outline: none;
  transition: border-color .35s var(--ease);
}
.acct-panel .field input:focus { border-bottom-color: var(--gold); }
.acct-panel .field input::placeholder { color: #C2B8A8; }

.field-static {
  font-size: .92rem;
  color: var(--ink-soft);
  padding: .65rem .1rem;
  border-bottom: 1px dashed var(--gold-pale);
}

/* Two fields side by side on wider screens */
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }

/* Default-address toggle */
.switch {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin: .35rem 0 1.25rem;
  cursor: pointer;
  font-size: .82rem;
  color: var(--ink-soft);
}
.switch input {
  appearance: none;
  -webkit-appearance: none;
  width: 44px; height: 24px;
  border-radius: 99px;
  border: 1px solid var(--gold-pale);
  background: var(--ivory-deep);
  position: relative;
  flex: none;
  cursor: pointer;
  transition: background-color .3s var(--ease), border-color .3s var(--ease);
}
.switch input::after {
  content: "";
  position: absolute;
  top: 2px; left: 2px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--linen);
  box-shadow: 0 1px 3px rgba(23,20,15,.25);
  transition: transform .3s var(--ease);
}
.switch input:checked { background: var(--gold); border-color: var(--gold); }
.switch input:checked::after { transform: translateX(20px); }
.switch input:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.acct-actions {
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}

/* ---- Address cards ---- */
.addr-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: .85rem;
}
.addr-card {
  position: relative;
  border: 1px solid var(--gold-pale);
  background: var(--ivory);
  padding: 1.1rem 1rem 1rem;
  transition: border-color .35s var(--ease);
}
.addr-card:hover { border-color: var(--gold-light); }
.addr-card.is-default { border-color: var(--gold); }

.addr-flag {
  position: absolute;
  top: -1px; right: -1px;
  background: var(--gold);
  color: var(--linen);
  font-size: .5rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  padding: .28rem .6rem;
}
.addr-name {
  font-family: var(--display);
  font-size: 1.05rem;
  letter-spacing: .04em;
  color: var(--ink);
  margin-bottom: .35rem;
  padding-right: 4.5rem;
}
.addr-lines { font-size: .82rem; line-height: 1.7; color: var(--ink-soft); }
.addr-phone { font-size: .78rem; color: var(--ink-mute); margin-top: .35rem; }

.addr-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
  margin-top: .9rem;
  padding-top: .8rem;
  border-top: 1px solid var(--gold-pale);
}
.addr-actions button {
  font-size: .62rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: color .3s var(--ease), border-color .3s var(--ease);
}
.addr-actions button:hover { color: var(--gold); border-bottom-color: var(--gold-pale); }
.addr-actions .addr-del:hover { color: #A8443A; border-bottom-color: #A8443A; }

/* --------------------------------------------------------------------------
   Mobile
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  /* 16px minimum so iOS Safari does not zoom when a field is focused */
  .acct-panel .field input { font-size: 16px; padding: .75rem .1rem; }
  .field-static { font-size: 16px; }

  .field-row { grid-template-columns: 1fr; gap: 0; }

  .acct-panel-head { flex-direction: column; align-items: flex-start; gap: .5rem; }
  /* ~44px comfortable hit areas for the inline text actions */
  .acct-link { padding: .75rem 0; }

  .acct-actions { gap: .5rem; }
  .acct-actions .btn { flex: 1 1 100%; min-height: 48px; }

  .addr-grid { grid-template-columns: 1fr; }
  .addr-actions { gap: 1.1rem; }
  .addr-actions button { padding: .75rem 0; }
  .switch { margin: .5rem 0 1.25rem; }
}


/* ==========================================================================
   33. FOCUS — NIELLOR focus ring
   Browsers draw a blue ring by default. Focus indication is essential for
   keyboard users, so this restyles it in the brand palette instead of
   removing it. Only keyboard focus shows a ring (:focus-visible), so a
   mouse click or a programmatic focus does not leave one behind.
   ========================================================================== */
:where(a, button, input, textarea, select, [tabindex]):focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 3px;
  border-radius: 1px;
}
/* Circular controls get a ring that follows their shape */
.icon-btn:focus-visible,
.auth-close:focus-visible,
.search-close:focus-visible,
.search-clear:focus-visible,
.socials a:focus-visible {
  outline-offset: 2px;
  border-radius: 50%;
}
/* Underlined fields read better with the rule itself highlighted */
.field input:focus-visible,
.field textarea:focus-visible,
.field select:focus-visible {
  outline: none;
  border-bottom-color: var(--gold);
  box-shadow: 0 1px 0 0 var(--gold);
}
/* Tone down the grey flash mobile browsers paint on tap */
a, button, input, select, textarea, label {
  -webkit-tap-highlight-color: rgba(176, 128, 63, .12);
}

.auth-inline-link {
  font-size: inherit;
  color: var(--gold);
  border-bottom: 1px solid var(--gold-pale);
  padding-bottom: 1px;
  transition: border-color .3s var(--ease);
}
.auth-inline-link:hover { border-bottom-color: var(--gold); }

/* ==========================================================================
   34. CHECKOUT
   New page only. Built entirely from the existing tokens and reusing
   .acct-panel, .field, .btn, .addr-card and .form-status, so nothing that
   already existed is altered.
   ========================================================================== */
.co-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: start;
}

/* The order summary follows you down the page on desktop */
.co-summary { position: sticky; top: calc(var(--nav-h) + 1.5rem); }

/* ---- One line in the order ---- */
.co-line {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: .9rem;
  align-items: center;
  padding: .85rem 0;
  border-bottom: 1px solid var(--gold-pale);
}
.co-line:last-of-type { border-bottom: 0; }

.co-thumb {
  width: 56px;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--linen);
  border: 1px solid var(--gold-pale);
}
.co-thumb img { width: 100%; height: 100%; object-fit: cover; }

.co-name {
  font-family: var(--display);
  font-size: 1rem;
  letter-spacing: .04em;
  color: var(--ink);
}
.co-meta { font-size: .76rem; color: var(--ink-mute); margin-top: .2rem; }
.co-amount { font-family: var(--display); font-size: 1rem; color: var(--ink); white-space: nowrap; }

/* ---- Totals ---- */
.co-totals {
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--gold-pale);
  display: grid;
  gap: .55rem;
}
.co-totals > div { display: flex; justify-content: space-between; align-items: baseline; }
.co-totals span { font-size: .82rem; color: var(--ink-soft); }
.co-totals b { font-size: .9rem; color: var(--ink); }

.co-grand {
  margin-top: .35rem;
  padding-top: .7rem;
  border-top: 1px solid var(--gold-pale);
}
.co-grand span { font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.co-grand b { font-family: var(--display); font-size: 1.5rem; }

.co-fine { font-size: .72rem; color: var(--ink-mute); margin-top: .6rem; }

/* ---- Address choice: the whole card is the control ---- */
.co-addr { display: block; cursor: pointer; padding-left: 2.6rem; position: relative; }
.co-addr .addr-name { padding-right: 0; display: block; }
.co-addr .addr-lines { display: block; }
.co-addr .addr-phone { display: block; }

.co-radio {
  appearance: none;
  -webkit-appearance: none;
  position: absolute;
  top: 1.15rem; left: 1rem;
  width: 17px; height: 17px;
  border: 1px solid var(--gold-pale);
  border-radius: 50%;
  cursor: pointer;
  transition: border-color .3s var(--ease);
}
.co-radio:checked { border-color: var(--gold); }
.co-radio:checked::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--gold);
}

/* --------------------------------------------------------------------------
   Mobile
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .co-grid { grid-template-columns: 1fr; }
  /* Summary must not stick on a phone — it would cover the form */
  .co-summary { position: static; }
  /* 16px stops iOS Safari zooming when the coupon field is focused */
  .acct-panel .field input#coupon { font-size: 16px; }
  .co-grand b { font-size: 1.35rem; }
}
