/* =========================================================
   Page-specific layouts
   ========================================================= */

/* ---------- HOME · the paper ----------
   Order: film → manifesto → brand story → First Edition → Collections → Instagram.
   Everything except the film and First Edition sits on one continuous sheet of off-white paper:
   a seamless tile (paper-tile.webp) laid on <main>, so the grain never restarts at a section edge.
   The manifesto carries two embossed tea sprigs (leaf-a / leaf-b, transparent). */
body[data-page="home"] main { background: #E6DED3 url(../img/paper-tile.webp) 0 0 / 840px repeat; }
.act1, .story, .hc, .ig { position: relative; overflow-x: clip; }
.act1 > *, .story > *, .hc > .wrap, .ig > * { position: relative; z-index: 1; }

/* ---------- HOME · Manifesto ----------
   A short band, read as an epigraph to the brand story right below it. Two small sprigs, upper left
   and lower right; each stem's tip is the image's own corner, so it is set a little past the page
   edge and the stem runs off the page. */
.act1 {
  height: clamp(220px, calc(100vw * .19), 300px);
  display: grid; place-items: center;
  padding: 24px var(--gutter);
  text-align: center;
}
.act1::before, .act1::after {
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  aspect-ratio: 1119 / 854; background: center / contain no-repeat;
  width: clamp(110px, 12vw, 190px);
}
.act1::before { /* upper left; stem tip at the image's lower-left corner */
  background-image: url(../img/leaf-a.webp);
  left: calc(-.06 * clamp(110px, 12vw, 190px)); top: clamp(22px, 2.6vw, 40px);
}
.act1::after { /* lower right; stem tip at the image's lower-right corner */
  background-image: url(../img/leaf-b-flip.webp);
  right: calc(-.06 * clamp(110px, 12vw, 190px)); bottom: clamp(14px, 1.8vw, 28px);
}
@media (max-width: 640px) {
  .act1 { height: 220px; }
  .act1::before, .act1::after { width: 84px; }
  .act1::before { left: -5px; }
  .act1::after { right: -5px; }
  .act1__manifesto { font-size: 1.05rem; max-width: 13em; margin-inline: auto; }
}
.act1__inner { max-width: 1100px; }
.act1__manifesto {
  margin: 0;
  font-family: var(--font-display); /* Cinzel: lowercase renders as small caps */
  font-size: clamp(1.05rem, 1.9vw, 1.6rem); line-height: 1.5;
  letter-spacing: .16em; color: var(--olive);
  text-wrap: balance;
}
.scroll-cue {
  position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  font-family: var(--font-display); text-transform: uppercase; font-size: .68rem; letter-spacing: .32em;
}
.scroll-cue::after {
  content: ""; width: 1px; height: 32px; background: currentColor; opacity: .6;
  transform-origin: top; animation: cue 2.4s var(--ease-out) infinite;
}
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .scroll-cue::after { animation: none; } }

/* ---------- HOME · Act II — the film ----------
   Full-bleed film with a film-stock look (grain, faded warm tones, lifted blacks,
   vignette). It plays once; as it ends the picture fades softly and the line appears. */
.act2 {
  position: relative; overflow: hidden; isolation: isolate;
  /* 2:1 widescreen (the 16:9 film loses ~5% top and bottom), never taller than 80% of the screen,
     so a strip of the next section shows and invites the scroll */
  aspect-ratio: 2 / 1; max-height: calc(var(--screen, 100svh) * .8); width: 100%;
  display: grid; place-items: center;
  background: var(--olive-ink);
}
.act2__video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: sepia(.22) saturate(.84) contrast(.88) brightness(1.04);
  transition: filter 2.4s var(--ease-out);
}
.act2::after { /* vignette + lifted, slightly warm blacks */
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(30, 22, 10, .55), rgba(30, 22, 10, .2) 12%, transparent 26%), /* keeps the light header readable over the film */
    radial-gradient(120% 95% at 50% 48%, transparent 55%, rgba(48, 34, 18, .38) 100%),
    linear-gradient(rgba(214, 196, 170, .08), rgba(214, 196, 170, .08));
}
.act2__grain { /* film grain; only the noise pattern jumps */
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='.33 .33 .33 0 0  .33 .33 .33 0 0  .33 .33 .33 0 0  0 0 0 0 1'/><feComponentTransfer><feFuncR type='linear' slope='2.6' intercept='-.8'/><feFuncG type='linear' slope='2.6' intercept='-.8'/><feFuncB type='linear' slope='2.6' intercept='-.8'/></feComponentTransfer></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: .42; mix-blend-mode: overlay;
  animation: grain 1.1s steps(6) infinite;
}
@keyframes grain {
  0% { background-position: 0 0; } 20% { background-position: -37px 23px; } 40% { background-position: 51px -61px; }
  60% { background-position: -83px -17px; } 80% { background-position: 29px 97px; } 100% { background-position: 0 0; }
}
.act2__mist { /* a light paper-toned wash, strongest behind the line */
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(60% 55% at 50% 50%, rgba(234, 226, 215, .58), rgba(234, 226, 215, .22) 100%);
  opacity: 0; transition: opacity 2.4s var(--ease-out);
}
/* Closing line: typewriter (Special Elite, as used in the brand's Canva work),
   typed out letter by letter once the film fades (see bindFilm) */
.act2__line {
  position: relative; z-index: 2; margin: 0; padding-inline: var(--gutter);
  font-family: "Special Elite", "Courier New", monospace; font-weight: 400;
  font-size: clamp(1.05rem, 1.85vw, 1.6rem); line-height: 1.75; letter-spacing: .02em;
  color: var(--olive-ink); text-align: center;
  text-shadow: 0 0 22px rgba(240, 232, 220, .7);
  opacity: 0;
}
.act2__line .ch { opacity: 0; }
.act2__line .ch.on { opacity: 1; }
.act2__line .caret {
  display: inline-block; width: .55em; height: 1.1em; margin-left: .08em; vertical-align: -.18em;
  border-bottom: 2px solid currentColor; animation: caret .9s steps(1) infinite;
  transition: opacity .6s var(--ease-out);
}
.act2__line .caret.off { opacity: 0; animation: none; }
@keyframes caret { 50% { border-color: transparent; } }
.act2.is-misted .act2__video { filter: sepia(.28) saturate(.62) contrast(.84) brightness(1.08); }
.act2.is-misted .act2__mist { opacity: 1; }
.act2.is-misted .act2__line { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .act2__video, .act2__mist { transition: none; }
  .act2__grain, .act2__line .caret { animation: none; }
}
@media (max-width: 640px) {
  .act2 { aspect-ratio: 4 / 5; }
  .act2__video { object-position: 53% center; } /* the balance scale centred in the narrow frame (measured on a phone) */
  .act2__line { font-size: .95rem; padding-inline: 16px; letter-spacing: 0; }
}
.video-toggle {
  position: absolute; right: 26px; bottom: 26px; z-index: 3;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(43, 35, 20, .55); color: var(--beige);
  display: grid; place-items: center;
}
.video-toggle::before { content: ""; width: 10px; height: 12px; border-left: 3px solid currentColor; border-right: 3px solid currentColor; }
.video-toggle[data-state="paused"]::before {
  width: 0; height: 0; border-style: solid; border-width: 7px 0 7px 11px;
  border-color: transparent transparent transparent currentColor; margin-left: 3px;
}
.video-toggle[data-state="ended"]::before {
  content: "↻"; width: auto; height: auto; border: 0; margin: 0;
  font-size: 1.25rem; line-height: 1;
}
@media (max-width: 640px) { .video-toggle { right: 14px; bottom: 14px; } }

/* ---------- HOME · Brand story (short) ----------
   Desktop: a compact, centred pair — the client's collage (one transparent image) on the left,
   words on the right. The text block is as wide as its widest line, and "Origins →" ends at
   that right edge. Phone: heading → subtitle → collage → "Origins →" (right). */
.story { padding-block: clamp(8px, 1vw, 16px) clamp(48px, 6vw, 88px); } /* starts right under the manifesto */
.story__grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2vw, 28px); align-items: center;
  max-width: 1080px; margin-inline: auto;
}
/* Desktop: the pair is lined up with First Edition below it — the collage starts at the same left
   edge as "First Edition" (a 1120px wrap), and the words end where the gilt frame in that photo
   ends (outer moulding at x 1474 of the 1670px-wide photo, which spans the full page width).
   .story is a size container, so 100cqw is the page width the photo is scaled to. */
@media (min-width: 861px) {
  .story { container-type: inline-size; }
  .story > .wrap { max-width: 1120px; }
  .story__grid { max-width: none; margin-inline: 0; width: calc(100cqw * 1474 / 1670 - (100cqw - 100%) / 2); }
}
.story__collage { grid-column: 1 / 7; margin: 0; }
.story__collage img { width: 100%; height: auto; }
/* The word block (as wide as its widest line, left-aligned) is pushed to the right edge of the grid.
   It sits at the bottom of the row: the collage's lowest panel on the right (the stone) ends
   1251 / 1365 down the image, so the link's lower edge is lifted by the rest — 114 / 1600 of the
   column width (both columns are 6 of 12). */
.story__text {
  grid-column: 7 / 13; padding-left: clamp(16px, 3vw, 48px);
  display: grid; grid-template-columns: max-content; justify-content: end;
  align-self: end; padding-bottom: calc(100% * 114 / 1600);
}
.story__title { font-size: clamp(2rem, 3.4vw, 3.5rem); }
.story__title .l2 { display: inline-block; } /* T and R share the same left edge */
.story__sub { margin-top: clamp(18px, 2vw, 28px); white-space: nowrap; } /* two lines, set by the <br> */
.story__link { justify-self: end; margin-top: clamp(24px, 3vw, 40px); }
@media (max-width: 860px) {
  .story__grid { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
  .story__text { display: contents; } /* its children join the section grid so the link can follow the images */  .story__title { grid-row: 1; }
  .story__sub { grid-row: 2; white-space: normal; font-size: 1rem; }
  .story__collage { grid-row: 3; grid-column: 1; margin-top: 32px; }
  .story__link { grid-row: 4; margin-top: 24px; }
}

/* ---------- HOME · Collections ----------
   The paper picks up again below First Edition. A fine pressed line (white, with a faint shadow)
   closes the section off from Instagram, and three gilt clasps sit on that line. */
.hc {
  position: relative; z-index: 2;
  padding-block: clamp(56px, 6vw, 84px) clamp(44px, 4.6vw, 64px);
}
.hc::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; pointer-events: none;
  background: rgba(255, 255, 255, .8); box-shadow: 0 1px 0 rgba(76, 62, 36, .12);
}
.hc__clasps {
  position: absolute; z-index: 3; left: var(--gutter); right: var(--gutter);
  top: 0; transform: translateY(-50%);
  display: flex; justify-content: space-between; padding-inline: clamp(0px, 4vw, 64px);
  pointer-events: none;
}
.hc__clasps img { width: clamp(24px, 2.4vw, 34px); height: auto; filter: drop-shadow(0 3px 3px rgba(43, 35, 20, .38)); }

.hc__grid {
  display: grid; grid-template-columns: max-content minmax(0, 1fr); /* heading column fits its one-line title */
  gap: clamp(32px, 5vw, 80px); align-items: center; max-width: 1120px;
}
/* Heading + "View Collections" stay together as one group, vertically centred beside the two collections. */
.hc__head { display: flex; flex-direction: column; align-items: flex-start; }
.hc__title {
  font-family: var(--font-display); text-transform: uppercase; font-weight: 400;
  font-size: clamp(1.35rem, 2vw, 2rem); line-height: 1.3; letter-spacing: .08em;
  white-space: nowrap; /* "Two collections." and "Five stories." each stay on one line */
}
.hc__all { margin-top: clamp(20px, 2vw, 30px); } /* close under "Five stories."; left edge lines up with the T of "Two" */
.hc__items { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 52px); max-width: 590px; }
.hc__item { display: flex; flex-direction: column; }
.hc__photo { aspect-ratio: 4 / 5; overflow: hidden; background: var(--beige-deep); }
.hc__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out); }
.hc__item:hover .hc__photo img { transform: scale(1.03); }
.hc__label { margin-top: 18px; }
.hc__num { margin: 0; font-family: var(--font-display); text-transform: uppercase; font-size: .68rem; letter-spacing: .26em; color: var(--muted); }
.hc__name { margin-top: 6px; font-family: var(--font-display); text-transform: uppercase; font-size: clamp(1rem, 1.4vw, 1.25rem); letter-spacing: .1em; line-height: 1.25; }
.hc__scents { margin: 6px 0 0; font-size: .88rem; line-height: 1.55; color: var(--muted); }
@media (max-width: 960px) {
  .hc__grid { grid-template-columns: 1fr; gap: 32px; }
  .hc__items { max-width: none; }
}
@media (max-width: 560px) {
  .hc__items { grid-template-columns: 1fr; gap: 44px; }
}

/* ---------- HOME · First Edition ---------- */
/* The whole section stands in front of the photo's velvet: edition-bg.webp is a 1670 × 941 still life
   (gilt frame, diffuser and sachet on the right, open velvet on the left for the words).
   Height = the photo's own proportion, so the frame sits at fixed heights:
   its top moulding at 18.8 % and its bottom moulding at 81 % of the section.
   The words are laid out between those two lines. */
.edition {
  /* --h: the photo's full height at this width. The section shows it with --crop trimmed from
     the top and from the bottom (cover, centred), so the frame lines move up by --crop. */
  --h: calc(100vw * 941 / 1670);
  --crop: .1;
  --frame-top: calc(.188 - var(--crop)); --frame-bottom: calc(.81 - var(--crop));
  position: relative; z-index: 2; isolation: isolate; overflow-x: clip; /* clip sideways only: the clasps rise above the top edge */
  height: calc(var(--h) * (1 - 2 * var(--crop))); background: #3E3B27;
}
/* three gilt clasps over the paper's edge where the photo begins */
.edition > .hc__clasps { z-index: 3; }
.edition::before { /* the photo, with a film-stock grade: faded, warm, softer contrast, vignette */
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(120% 100% at 60% 50%, transparent 55%, rgba(24, 18, 8, .45) 100%),
    url(../img/edition-bg.webp) right center / cover no-repeat;
  filter: sepia(.2) saturate(.84) contrast(.9) brightness(1.05);
}
.edition::after { /* film grain */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='.33 .33 .33 0 0  .33 .33 .33 0 0  .33 .33 .33 0 0  0 0 0 0 1'/><feComponentTransfer><feFuncR type='linear' slope='2.6' intercept='-.8'/><feFuncG type='linear' slope='2.6' intercept='-.8'/><feFuncB type='linear' slope='2.6' intercept='-.8'/></feComponentTransfer></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: .32; mix-blend-mode: overlay;
}
.edition__grid { height: 100%; max-width: 1120px; } /* same left edge as the sections above */
.edition__text {
  height: 100%; max-width: 30rem;
  padding-top: calc(var(--h) * var(--frame-top));            /* "Now available" level with the frame's top */
  padding-bottom: calc(var(--h) * (1 - 2 * var(--crop) - var(--frame-bottom))); /* "Find your scent" level with its bottom */
}
/* the photo itself stays in the page for screen readers (and for phones, below) */
.edition__media { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.edition__img { margin: 0; overflow: hidden; background: var(--olive-ink); aspect-ratio: 4 / 5; }
.edition__img img { width: 100%; height: 100%; object-fit: cover; }
.edition__text { display: flex; flex-direction: column; align-items: flex-start; }
.edition__title {
  margin-top: clamp(10px, 1.2vw, 16px); /* sits close under "Now available" */
  font-family: var(--font-display); text-transform: uppercase; font-weight: 400;
  font-size: clamp(2rem, 3.6vw, 3.4rem); letter-spacing: .05em; line-height: 1.05;
}
.edition__lines { margin: clamp(22px, 2.6vw, 34px) 0 0; font-size: clamp(1.05rem, 1.3vw, 1.2rem); line-height: 1.75; }
.edition__more { margin: clamp(28px, 3vw, 40px) 0 0; max-width: 26em; color: var(--on-dark-muted); }
/* desktop: "Now available" on the frame's top line, the link on its bottom line.
   The title sits just above the middle copy (Full sachet … Make it yours) as one block; the space
   goes 1 : 2 above and below that block. The link is then lifted a little above the frame's bottom. */
@media (min-width: 861px) {
  .edition__text {
    display: grid; align-content: stretch; justify-items: start;
    grid-template-rows: auto 1fr auto clamp(14px, 1.2vw, 20px) auto auto 2fr auto; /* title sits right above the copy */
  }
  .edition__text > .eyebrow  { grid-row: 1; }
  .edition__title            { grid-row: 3; margin-top: 0; }
  .edition__lines            { grid-row: 5; margin-top: 0; }
  .edition__more             { grid-row: 6; margin-bottom: 0; }
  .edition__link             { grid-row: 8; margin-top: 0;
    position: relative; top: calc(-1 * clamp(36px, 4.4vw, 76px)); } /* lifted above the frame's bottom line without moving anything else */
}
@media (min-width: 861px) and (max-width: 1100px) { /* narrow desktops: less room between the frame lines */
  .edition__title { font-size: 2rem; }
  .edition__lines { font-size: 1rem; line-height: 1.6; }
  .edition__more { margin-top: 16px; font-size: .95rem; line-height: 1.6; }
}
@media (max-width: 860px) {
  /* phones: words on the velvet curtain, then the photo itself below */
  .edition { height: auto; padding-block: 56px; }
  .edition::before { background-position: center, left top; }
  .edition__grid { height: auto; display: flex; flex-direction: column; }
  .edition__text { height: auto; max-width: none; padding: 0; }
  .edition__more { margin-bottom: 0; }
  .edition__link { margin-top: 28px; }
  .edition__media { order: 2; }
  .edition__img img { filter: sepia(.2) saturate(.84) contrast(.9) brightness(1.05); } /* same film grade as the background */
  .edition__media { position: static; width: auto; height: auto; overflow: visible; clip: auto; margin-top: 36px; }
  .edition__img img { object-position: 92% 50%; } /* the gilt frame + pouring hand, from the right of the wide photo */
}

/* ---------- HOME · Instagram ----------
   A full-width strip of photos gliding slowly to the left in an endless loop (two identical sets,
   the track moves by exactly one set). Pauses on hover / keyboard focus;
   with reduced motion it stays still and can be scrolled sideways instead. */
.ig { padding-block: clamp(48px, 6vw, 88px); }
.ig__title { margin: 0 0 clamp(20px, 2.4vw, 32px); }
.ig__strip { overflow: hidden; }
.ig__track { display: flex; width: max-content; animation: ig-glide 60s linear infinite; }
.ig__set { display: flex; gap: 10px; padding-right: 10px; }
.ig__item { display: block; width: clamp(170px, 17vw, 260px); aspect-ratio: 4 / 5; overflow: hidden; background: var(--beige-deep); }
.ig__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.ig__item:hover img { transform: scale(1.04); }
@keyframes ig-glide { to { transform: translateX(-50%); } }
.ig__strip:hover .ig__track, .ig__strip:focus-within .ig__track { animation-play-state: paused; }
.ig__foot { display: flex; justify-content: flex-end; margin-top: clamp(16px, 2vw, 24px); }
@media (prefers-reduced-motion: reduce) {
  .ig__track { animation: none; }
  .ig__strip { overflow-x: auto; }
  .ig__set[aria-hidden="true"] { display: none; }
}

/* ---------- ORIGINS ----------
   One quiet column on the home page's paper: I · Beyond the Familiar, II · Behind the Name,
   five still lifes, and a short closing line. Sections are parted by the sprout divider. */
.o-page {
  background: #E6DED3 url(../img/paper-tile.webp) 0 0 / 840px repeat;
  padding-top: calc(var(--header-h) + clamp(40px, 5vw, 72px));
}
.o-sec { padding-block: clamp(16px, 2vw, 28px) clamp(36px, 4.4vw, 64px); }
/* Editorial two-column spread: the numbered title (and kicker) on the left,
   the words left-aligned on the right in a comfortable measure. */
.o-col {
  max-width: 1120px;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  column-gap: clamp(32px, 5vw, 88px); align-items: start;
}
.o-title {
  display: grid; gap: 10px; margin: 0;
  font-family: var(--font-display); text-transform: uppercase; font-weight: 400;
  font-size: clamp(1.6rem, 2.8vw, 2.5rem); letter-spacing: .08em; line-height: 1.2;
}
.o-num { font-size: .5em; letter-spacing: .2em; opacity: .7; }
.o-body { max-width: 34em; font-size: clamp(1.02rem, 1.2vw, 1.12rem); line-height: 1.62; } /* tighter lines, so the paragraph gaps read clearly */
.o-col > .o-body, .o-content { padding-top: clamp(24px, 2.4vw, 34px); } /* level with the title, below its numeral */
.o-body p { margin: 0; }
.o-body p + p { margin-top: 1.2em; }
.o-content > .o-body { margin: 0; }
.o-kicker { /* "Soft as a veil. Carried by a breeze." — one line, under the section title */
  margin: 14px 0 0; font-style: italic; font-size: clamp(1.05rem, 1.4vw, 1.25rem); color: var(--muted);
}
.o-words { /* Velluto · Velata | Esinti — the words behind the name, briefly */
  display: flex; gap: clamp(28px, 5vw, 72px);
  margin: clamp(26px, 3vw, 38px) 0 0; padding-block: clamp(16px, 1.8vw, 22px);
  border-block: 1px solid var(--line);
  max-width: 34em;
}
.o-words > div { display: grid; gap: 6px; }
.o-words dt { font-family: var(--font-display); font-size: clamp(1.15rem, 1.6vw, 1.4rem); letter-spacing: .08em; }
.o-words dd { margin: 0; display: flex; gap: .7em; align-items: baseline; font-style: italic; font-size: .95rem; color: var(--muted); }
.o-lang { font-family: var(--font-display); font-style: normal; text-transform: uppercase; font-size: .66rem; letter-spacing: .26em; }
.o-quote { margin: clamp(24px, 2.6vw, 34px) 0 0; max-width: 30em; font-style: italic; font-size: clamp(1.08rem, 1.4vw, 1.25rem); line-height: 1.6; }
.o-divider { padding-block: clamp(8px, 1vw, 14px); }
.o-gallery { padding-block: clamp(28px, 3.4vw, 48px); }
/* Three tall pictures (5 : 7, the poppy a touch wider), centred. */
.o-strip {
  display: grid; grid-template-columns: 1fr 1.05fr 1fr; gap: 1.85vw; align-items: end;
  width: min(58vw, 900px); margin-inline: auto;
}
.o-strip figure { margin: 0; overflow: hidden; background: var(--beige-deep); aspect-ratio: 5 / 7; }
.o-strip figure.o-wide { aspect-ratio: 3 / 4; } /* 1.05 × the width, same height */
.o-strip img { display: block; width: 100%; height: 100%; object-fit: cover; }
.o-close { padding-block: clamp(28px, 3.4vw, 48px) clamp(56px, 6vw, 88px); }
@media (max-width: 860px) {
  .o-col { grid-template-columns: 1fr; }
  .o-col > .o-body, .o-content { padding-top: 22px; }
}
@media (max-width: 760px) {
  .o-words { flex-direction: column; gap: 18px; }
  .o-strip { width: auto; margin-inline: var(--gutter); gap: 10px; } /* phones: the three side by side across the screen */
}
.origins-hero { min-height: calc(var(--screen, 100svh) * .92); display: grid; place-items: center; text-align: center; padding-top: var(--header-h); }
.name-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-dark); }
.name-grid > div { padding: clamp(28px, 4vw, 56px) clamp(16px, 2.4vw, 40px); border-right: 1px solid var(--line-dark); }
.name-grid > div:last-child { border-right: 0; }
.name-grid .word { font-family: var(--font-display); font-size: clamp(1.8rem, 3.4vw, 3rem); letter-spacing: .06em; line-height: 1.1; }
.name-grid .lang-tag { display: block; margin-top: 10px; font-family: var(--font-display); text-transform: uppercase; font-size: .7rem; letter-spacing: .28em; color: var(--on-dark-muted); }
.name-grid p { margin-top: 18px; }
@media (max-width: 760px) {
  .name-grid { grid-template-columns: 1fr; }
  .name-grid > div { border-right: 0; border-bottom: 1px solid var(--line-dark); padding-inline: 0; }
}
.gallery-3 { display: grid; grid-template-columns: 1fr 1.25fr 1fr; gap: clamp(12px, 2vw, 28px); align-items: end; }
.gallery-3 > :nth-child(2) { margin-bottom: clamp(32px, 6vw, 96px); }
@media (max-width: 640px) { .gallery-3 { grid-template-columns: 1fr 1fr; } .gallery-3 > :nth-child(2) { grid-column: 1 / -1; grid-row: 1; margin-bottom: 0; } }

/* ---------- COLLECTIONS ----------
   Built on the Origins paper and two columns (.o-page, .o-col).
   "Collection I" over a fine line that runs across the full width. Below it, left: the
   collection's name large, its Turkish name, and its words (set line by line). Right: the scents
   stacked top to bottom, each a small card beside its name and notes; the first card's top is
   level with the first line of the collection's name. */
.c-sec { scroll-margin-top: var(--header-h); padding-bottom: clamp(56px, 6vw, 96px); }
/* left column: one fixed width (wide enough for the longest line), so the cards start at the same place in both collections */
.c-sec .o-col { grid-template-columns: clamp(28rem, 42vw, 34rem) minmax(0, 1fr); column-gap: clamp(28px, 4vw, 56px); }
.c-tag { grid-column: 1 / -1; margin-bottom: clamp(22px, 2.4vw, 32px); font-size: .9rem; }
.c-body { white-space: nowrap; } /* the lines are set by the <br>s */
.c-name {
  margin: 0; font-family: var(--font-display); text-transform: uppercase; font-weight: 400;
  font-size: clamp(1.7rem, 2.8vw, 2.5rem); letter-spacing: .08em; line-height: 1.2;
}
.c-name-tr { margin: 8px 0 0; font-style: italic; font-size: .98rem; color: var(--muted); }
.c-text > .o-body { margin-top: clamp(22px, 2.4vw, 32px); }
.c-scents { display: grid; grid-template-columns: 1fr; gap: clamp(22px, 2.4vw, 34px); padding-top: 6px; } /* 6px: down to the cap line of the name */
.c-scents .scent-card {
  display: grid; grid-template-columns: clamp(108px, 9.6vw, 132px) minmax(0, 1fr);
  grid-template-rows: auto auto auto 1fr; column-gap: clamp(16px, 1.8vw, 24px); align-content: start;
}
.c-scents .scent-card .media { grid-column: 1; grid-row: 1 / -1; aspect-ratio: 4 / 5; }
.c-scents .scent-card > :not(.media) { grid-column: 2; }
.c-scents .scent-card__name { margin-top: 0; font-size: clamp(1rem, 1.3vw, 1.15rem); line-height: 1.25; }
.c-scents .scent-card__bar { margin-top: 10px; width: 32px; }
.c-scents .scent-card__quote { margin-top: 12px; font-size: .95rem; line-height: 1.5; }
.c-scents .scent-card__meta { margin-top: 8px; font-size: .86rem; line-height: 1.6; }
.c-scents > :last-child:nth-child(odd) { grid-column: auto; max-width: none; justify-self: stretch; } /* undo the centred last card from .scent-grid */
@media (max-width: 860px) {
  .c-sec .o-col { grid-template-columns: minmax(0, 1fr); }
  .c-body { white-space: normal; }
  .c-body br { display: none; } /* phones: let the words wrap naturally */
  .c-scents { margin-top: 32px; }
}
.coll-intro { display: grid; grid-template-columns: minmax(0, 420px) 1fr; gap: clamp(32px, 6vw, 110px); align-items: center; margin-bottom: clamp(48px, 7vw, 96px); }
.coll-intro--rev { grid-template-columns: 1fr minmax(0, 420px); }
.coll-intro--rev .coll-intro__media { order: 2; }
@media (max-width: 860px) {
  .coll-intro, .coll-intro--rev { grid-template-columns: 1fr; }
  .coll-intro--rev .coll-intro__media { order: 0; }
  .coll-intro__media { max-width: 420px; }
}
.scent-grid--3 { grid-template-columns: repeat(3, 1fr); }
.scent-grid--2 { grid-template-columns: repeat(2, minmax(0, 360px)); }
@media (max-width: 640px) {
  .scent-grid--3, .scent-grid--2 { grid-template-columns: 1fr; }
  .scent-grid--3 > :last-child:nth-child(odd) { max-width: none; }
}

/* ---------- PRODUCT PAGES ---------- */
.p-hero { display: grid; grid-template-columns: 1fr 1fr; min-height: var(--screen, 100svh); }
.p-hero__media { position: relative; background: var(--beige-soft); display: grid; place-items: center; padding: calc(var(--header-h) + 32px) 6% 48px; }
.p-hero__media img { width: 100%; max-width: 640px; height: auto; }
.p-hero__text { display: flex; flex-direction: column; justify-content: center; padding: calc(var(--header-h) + 48px) var(--gutter) 64px; }
@media (max-width: 860px) { .p-hero { grid-template-columns: 1fr; min-height: 0; } .p-hero__text { padding-top: 48px; } }

.scene-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 2vw, 28px); }
.scene-grid--offset > :nth-child(3n+2) { margin-top: clamp(24px, 5vw, 80px); }
@media (max-width: 760px) { .scene-grid { grid-template-columns: 1fr 1fr; } .scene-grid--offset > :nth-child(3n+2) { margin-top: 0; } .scene-grid--offset > :nth-child(even) { margin-top: 40px; } }

.custom-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 3vw, 40px); }
.custom-grid figure { margin: 0; }
.custom-grid .media { background: #EFE6DB; aspect-ratio: auto; }
.custom-grid img { object-fit: contain; }
@media (max-width: 760px) { .custom-grid { grid-template-columns: 1fr; } }

/* Product page on the shared paper: a smaller product picture beside the words; titles at the
   Origins title size, body at the Origins body size; details & care and Shop right under the text. */
.pd-wrap {
  max-width: 1120px; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(32px, 5vw, 80px); align-items: start;
}
.pd-hero { padding-bottom: clamp(64px, 7vw, 112px); }
.pd-media { display: grid; place-items: center; padding-top: clamp(8px, 2vw, 32px); }
.pd-media img { width: 100%; max-width: 360px; height: auto; }
.pd-title { margin: 0; padding-right: 52px; }
.pd-text { position: relative; }
.pd-text .sale-tag { right: 0; } /* discount ribbon at the top right of the words, its right edge on the accordion's + */
/* accordion text: tighter lines and paragraph gaps (product pages and sets) */
.pd-text .accordion .panel, .s-info .accordion .panel { line-height: 1.55; }
.pd-text .accordion .panel p, .s-info .accordion .panel p { margin: 0; }
.pd-text .accordion .panel p + p, .s-info .accordion .panel p + p { margin-top: .6em; }
.s-info .accordion .panel li { margin-bottom: .15em; }
.pd-alt { margin: 4px 0 0; font-style: italic; color: var(--muted); }
.pd-text .price { margin-top: clamp(24px, 2.6vw, 34px); }
.pd-lede { margin: clamp(14px, 1.6vw, 20px) 0 0; font-style: italic; font-size: clamp(1.05rem, 1.3vw, 1.18rem); line-height: 1.45; }
.pd-body { margin: 12px 0 0; line-height: 1.55; }
.pd-text .accordion { margin-top: clamp(24px, 2.6vw, 34px); }
.pd-text .s-actions { margin-top: 24px; }
.pd-h2 { margin: 0 0 clamp(28px, 3vw, 44px); }
.pd-h2--tight { margin-bottom: 14px; }
/* Reed Diffuser · Make it yours */
.pd-mine { margin-bottom: clamp(28px, 3vw, 44px); }
@media (min-width: 900px) { .pd-mine p { white-space: nowrap; } } /* each sentence on one line */
.custom-grid .r-zoom { width: 100%; }
.custom-grid .r-zoom img { width: 100%; height: auto; transition: transform var(--dur-md) var(--ease-out); }
.custom-grid .r-zoom:hover img { transform: scale(1.015); }
.pd-mine .o-body { margin: 0; line-height: 1.55; }
.pd-note { margin: 0; font-size: .88rem; line-height: 1.5; color: var(--muted); } /* sits right under the sentence above */
.pd-sig { margin: clamp(24px, 2.6vw, 34px) 0 0; text-align: center; font-style: italic; color: var(--muted); }
.f-sec .custom-grid .media { background: transparent; }
@media (max-width: 860px) {
  .pd-wrap { grid-template-columns: 1fr; }
  .pd-media img { max-width: 300px; }
}

.shop-cta { text-align: center; }
.shop-cta .btn { min-width: min(100%, 320px); }

/* ---------- FIND YOUR SCENT (and SETS) ----------
   On the shared paper. Head: "— First Edition", a two-line title at the Origins title size, and a
   short note about the complimentary sample. Sections open with the Collections-style small tag
   over a fine line. Every product: its cut-out photo, name, and price (see PRICES in main.js);
   a discounted product carries a small round seal on the photo's top-right corner. */
.f-wrap { max-width: 1120px; }
.f-head { padding-bottom: clamp(28px, 3vw, 44px); }
.f-head--center { text-align: center; }
.f-head--center .f-title { margin-top: 0; }
.f-head--center + * , .f-head:has(.f-head--center) { padding-bottom: clamp(44px, 5vw, 72px); }
.f-back { margin: 0 0 clamp(18px, 2vw, 28px); }
/* back link: a little smaller, its line close under the words */
.f-back .link-arrow { font-size: .7rem; gap: 10px; padding-block: 4px 3px; }
.pd-back-wrap { max-width: 1120px; }
.pd-back-wrap .f-back { margin-bottom: clamp(20px, 2.4vw, 34px); }
.f-eyebrow { margin: 0; font-size: .9rem; }
.f-title {
  margin: clamp(18px, 2vw, 26px) 0 0; font-family: var(--font-display); text-transform: uppercase; font-weight: 400;
  font-size: clamp(1.45rem, 2.5vw, 2.3rem); letter-spacing: .07em; line-height: 1.3;
}
.f-note { margin: clamp(16px, 1.8vw, 22px) 0 0; font-style: italic; color: var(--muted); }
.f-sec { padding-bottom: clamp(56px, 6vw, 96px); }
.f-sec--sets { padding-top: clamp(24px, 3vw, 48px); } /* a little more room above Sets & discovery */
.f-divider { padding-block: clamp(32px, 4vw, 60px) clamp(52px, 6vw, 92px); }
.f-name {
  margin: 0; font-family: var(--font-display); text-transform: uppercase; font-weight: 400;
  font-size: clamp(1.05rem, 1.4vw, 1.25rem); letter-spacing: .1em; line-height: 1.3;
}
/* two columns, the same for Signature pieces and Sets, so every card lines up */
.f-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(48px, 5vw, 72px) clamp(24px, 3vw, 48px); }
.f-piece { display: flex; flex-direction: column; }
.f-piece__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: transparent; }
.f-piece__media img { position: absolute; inset: 0; width: 100%; height: 100%; }
/* the whole product, never cropped, sitting on the box's lower-left corner so it lines up with
   the name beneath; the right edge keeps a little room for the discount ribbon */
.f-piece__media .f-piece__product { object-fit: contain; object-position: left bottom; padding: 6% 12% 0 0; transition: opacity .6s var(--ease-out); }
/* Signature pieces: on hover / focus, the piece at home fades in over the product */
.f-piece__media .f-piece__mood { object-fit: cover; opacity: 0; transition: opacity .6s var(--ease-out); }
.f-piece:hover .f-piece__media .f-piece__mood, .f-piece:focus-visible .f-piece__media .f-piece__mood { opacity: 1; }
.f-piece:hover .f-piece__media--hover .f-piece__product, .f-piece:focus-visible .f-piece__media--hover .f-piece__product { opacity: 0; }
/* frame each mood photo on its product (the 4:3 box shows about the middle 56% of these portraits) */
.f-piece__mood[src*="sachet-wardrobe"] { object-position: center 14%; }
.f-piece__mood[src*="diffuser-living"] { object-position: center 70%; }
/* the arrow follows the name's last word, even when the name wraps; the row's right padding and
   the arrow's negative margin let it hang there instead of dropping to a line of its own */
.f-piece__row { margin-top: clamp(24px, 2.4vw, 34px); padding-right: 1.8em; }
/* the Duo photo is taller than the Trio's; shown at the same scale as the Trio, so a sachet is
   the same size in both (Trio 756 px wide fills 88% of the box → Duo 590 px fills ~69%) */
.f-piece__media .f-piece__product[src*="product-duo"] { padding-right: 31%; }
.s-item .media img[src*="product-duo"] { padding-inline: 15.6%; }
/* the single Scented Sachet photo is a closer shot: at 75% of its size its sachet matches the sets' */
.f-piece__media .f-piece__product[src*="product-sachet"] { padding-right: 40.5%; }
.f-piece__row .f-name { display: inline; }
.f-piece__row .arrow { display: inline-block; margin-left: .55em; margin-right: -1.8em; }
.f-piece__row .arrow { transition: transform var(--dur-sm) var(--ease-out); }
.f-piece:hover .f-piece__row .arrow { transform: translateX(4px); }
/* price line: price, then the original struck through */
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 8px 0 0; }
.price__now { font-family: var(--font-display); font-size: 1.08rem; letter-spacing: .06em; color: var(--olive); }
.price__was { color: var(--muted); opacity: .8; font-size: .92rem; text-decoration-thickness: 1px; }
.price__soon { font-style: italic; font-size: .92rem; color: var(--muted); }
/* discount: a small olive ribbon hanging from the top edge of the photo, on the right */
.s-item .media { position: relative; }
.sale-tag {
  position: absolute; top: 0; right: 14px; z-index: 2;
  width: 34px; padding: 10px 0 15px;
  display: grid; justify-items: center; gap: 2px;
  background: var(--olive); color: var(--beige-soft);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 80%, 0 100%);
  font-family: var(--font-display); line-height: 1; text-align: center;
}
.sale-tag b { font-weight: 400; font-size: .76rem; letter-spacing: 0; }
.sale-tag span { font-size: .5rem; letter-spacing: .14em; text-transform: uppercase; }
.f-sec .scent-list { border-top: 0; }
.f-ship { max-width: none; }
.f-ship__title { margin: 0; font: inherit; letter-spacing: inherit; text-transform: inherit; } /* reads like the other accordion rows */
.f-ship .panel { max-width: 52em; }
.f-ship .panel p + p { margin-top: 1.4em; } /* a clear blank line between Shipping and Returns */
.f-ship strong { font-weight: 500; }
.f-ship a { text-decoration: underline; text-underline-offset: 3px; }

/* Sets page: picture left, details right */
.s-list { display: grid; gap: clamp(88px, 9vw, 136px); margin-top: clamp(40px, 5vw, 80px); }
.f-head--tight .f-note { margin-top: 6px; } /* the note sits right under the title */
/* Sets page: the discount ribbon hangs at the top right of the words, its right edge on the accordion's + */
.s-info { position: relative; }
.s-info .sale-tag { right: 0; }
.s-info .f-name { padding-right: 52px; }
.s-info .f-name + .s-tag { margin-top: 0; } /* name and its line touch: no gap between the two lines */
.s-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.s-via { margin: 0; font-size: .74rem; letter-spacing: .04em; color: var(--muted); }
.s-item { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); /* the words get a little more room, so each sentence keeps to one line */ gap: clamp(28px, 4vw, 64px); align-items: start; scroll-margin-top: calc(var(--header-h) + 24px); }
.s-item .media { aspect-ratio: 4 / 3; background: transparent; }
.s-item .media img { width: 100%; height: 100%; object-fit: contain; padding: 4% 6%; }
.s-tag { margin: 10px 0 0; font-style: italic; line-height: 1.45; } /* tight lines: a two-line tag reads as one block */
@media (min-width: 1200px) { .s-tag { font-size: 1rem; white-space: nowrap; } } /* wide screens: one sentence per line */
.s-info .price { margin-top: 12px; }
.s-info .accordion { margin-top: 22px; }
.s-info ul { padding-left: 1.1em; margin: 0; }
.s-info li { margin-bottom: .3em; }
.s-actions { margin-top: 24px; }
@media (max-width: 760px) {
  .s-item { grid-template-columns: 1fr; gap: 18px; }
}
@media (max-width: 560px) {
  .f-title { font-size: 1.18rem; letter-spacing: .05em; }
  .f-grid { gap: 36px 16px; }
  .f-grid .f-name { font-size: .92rem; }
  .sale-tag { right: 8px; }
}
.fys-feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 3vw, 48px); }
.fys-feature a.feature { display: flex; flex-direction: column; }
.fys-feature .media { aspect-ratio: 4 / 5; }
.fys-feature .feature__row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-top: 22px; }
@media (max-width: 760px) { .fys-feature { grid-template-columns: 1fr; } }

/* ---------- RITUALS ---------- */
/* ---------- RITUALS & NOTES ----------
   On the Origins paper. "How to use" switches between the two products with a pill-shaped tab bar;
   each panel shows the guide card(s), then its title and the topics it covers. */
.r-sec { padding-bottom: clamp(48px, 5.4vw, 80px); scroll-margin-top: calc(var(--header-h) + 24px); }
/* every section: the title on one line, the content underneath */
.r-sec .o-col { grid-template-columns: minmax(0, 1fr); }
.r-sec .o-title { white-space: nowrap; }
.r-tabs, .r-faq, .r-contact { padding-top: clamp(20px, 2.2vw, 30px); }
.r-faq { max-width: 860px; }
.r-sec + .o-divider { padding-block: clamp(40px, 4.8vw, 72px); } /* a little more air around the sprout here */
/* Tabs: two words in Cinzel on a hairline that spans the cards; the chosen one is full olive with a
   short line drawn beneath it, the other is quieter. */
.r-tabs__list {
  display: flex; gap: clamp(28px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
}
.r-tabs__tab {
  position: relative; padding: 10px 0 14px;
  font-family: var(--font-display); text-transform: uppercase; font-size: .82rem; letter-spacing: .24em;
  color: var(--muted); opacity: .88; transition: opacity var(--dur-sm), color var(--dur-sm);
}
.r-tabs__tab::after {
  content: ""; position: absolute; left: 0; right: .24em; bottom: -1px; height: 1px;
  background: var(--olive); transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur-md) var(--ease-out);
}
.r-tabs__tab:hover { opacity: 1; }
.r-tabs__tab[aria-selected="true"] { color: var(--olive); opacity: 1; }
.r-tabs__tab[aria-selected="true"]::after { transform: scaleX(1); height: 2px; bottom: -1.5px; }
.r-tabs__tab:focus-visible { outline: 2px solid var(--olive); outline-offset: 4px; }
.r-tabs__panel { margin-top: clamp(22px, 2.4vw, 32px); } /* bar → guide title → topics → the cards */
.r-tabs__panel:focus-visible { outline: 2px solid var(--olive); outline-offset: 6px; }
.r-guide { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(12px, 1.4vw, 20px); margin-top: clamp(18px, 2vw, 26px); }
.r-guide--one { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } /* one card, the same size as each diffuser card */
.r-zoom { display: block; padding: 0; cursor: zoom-in; position: relative; }
.r-zoom:focus-visible { outline: 2px solid var(--olive); outline-offset: 4px; }
.r-guide img { display: block; width: 100%; height: auto; box-shadow: 0 12px 30px -18px rgba(43, 35, 20, .45); transition: box-shadow var(--dur-md) var(--ease-out), transform var(--dur-md) var(--ease-out); }
.r-zoom:hover img { transform: translateY(-2px); box-shadow: 0 18px 36px -18px rgba(43, 35, 20, .55); }
/* the enlarged guide */
.zoom { padding: 0; border: 0; background: transparent; max-width: none; max-height: none; width: 100vw; height: 100vh; margin: 0; cursor: zoom-out; }
.zoom::backdrop { background: rgba(30, 24, 14, .82); }
/* the enlarged picture shows at (nearly) full size; a tall guide scrolls inside the dialog */
.zoom[open] { display: grid; justify-items: center; align-items: start; overflow-y: auto; padding: 4vh 0; }
.zoom img { width: min(96vw, 1122px); max-width: none; max-height: none; height: auto; margin: auto 0; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .5); }
.zoom[data-size="small"] img { width: min(90vw, 820px); } /* tassel & charm: enlarged, but not overwhelming */
.zoom__close {
  position: fixed; top: 16px; right: 20px; width: 44px; height: 44px;
  color: var(--beige); font-size: 2rem; line-height: 1; cursor: pointer;
}
.r-guide__title {
  margin: 0; font-family: var(--font-display); text-transform: uppercase; font-weight: 400;
  font-size: clamp(1rem, 1.3vw, 1.15rem); letter-spacing: .12em; line-height: 1.3;
}
.r-guide__sub { margin: 2px 0 0; font-style: italic; font-size: .95rem; line-height: 1.4; color: var(--muted); }
.r-contact .o-body { margin: 0 0 24px; }
.r-contact__actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 560px) {
  .r-sec .o-title { white-space: normal; }
  .r-guide, .r-guide--one { grid-template-columns: 1fr; }
  .r-tabs__tab { font-size: .72rem; letter-spacing: .18em; }
}

.guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 32px); }
.guide-grid figure { margin: 0; }
.guide-grid figcaption { margin-top: 14px; }
@media (max-width: 860px) { .guide-grid { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; } }
.contact-box { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; }
@media (max-width: 760px) { .contact-box { grid-template-columns: 1fr; } }

/* =========================================================
   PHONES — adjustments that apply only to narrow screens
   (nothing here reaches the desktop layout)
   ========================================================= */
.nb { white-space: nowrap; } /* keeps a short phrase on one line */

@media (max-width: 960px) {
  /* header: menu on the left, the logo centred, EN | TR on the right */
  .site-header .wrap { grid-template-columns: 1fr auto 1fr; }
  .site-header .header-tools { display: contents; }
  .site-header .menu-toggle { grid-column: 1; grid-row: 1; justify-self: start; justify-content: flex-start; }
  .site-header .brand { grid-column: 2; grid-row: 1; justify-self: center; }
  .site-header .lang { grid-column: 3; grid-row: 1; justify-self: end; font-size: .7rem; }
  .site-header .lang button { min-width: 30px; }
  /* home · Collections: "View Collections" moves below the two collections */
  .hc__head { display: contents; }
  .hc__all { order: 3; justify-self: end; margin-top: 0; } /* right, like "Origins →" */
}

@media (max-width: 860px) {
  /* home · First Edition: "Find your scent" moves below the photo */
  .edition__text { display: contents; }
  .edition__link { order: 3; align-self: flex-end; margin-top: 28px; } /* right, like "Origins →" */
}

@media (max-width: 640px) {
  /* opened menu: smaller words */
  .mobile-menu nav { margin-top: 5vh; }
  .mobile-menu nav a { font-size: clamp(1.1rem, 5.2vw, 1.4rem); letter-spacing: .12em; padding-block: 16px; }

  /* two-line italic subtitles sit tight, with no gap between the lines */
  .f-note, .pd-lede, .s-tag, .o-kicker, .story__sub, .c-name-tr { line-height: 1.35; }
  .f-note { font-size: .84rem; line-height: 1.3; }

  /* Collections: the name is already on each scent card, so the words start with the quote,
     and the last note sits on the card's bottom edge */
  .c-scents .scent-card { grid-template-rows: auto 1fr auto; }
  .c-scents .scent-card__name, .c-scents .scent-card__bar {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
  }
  .c-scents .scent-card__quote { grid-row: 1; margin-top: -2px; font-size: .95rem; line-height: 1.4; }
  .c-scents .scent-card__meta { grid-row: 3; align-self: end; margin: 0 0 -4px; font-size: .9rem; line-height: 1.45; }

  /* Find your scent: the title on two lines (one sentence each), smaller */
  .f-title { font-size: min(3.45vw, 1.18rem); letter-spacing: .04em; white-space: nowrap; }
  /* product names: smaller and tight; every name keeps two lines' room so the prices line up */
  .f-grid .f-name { font-size: .74rem; letter-spacing: .08em; line-height: 1.3; }
  .f-grid .f-piece__row { margin-top: 18px; line-height: 1.3; font-size: .74rem; }
  .f-sec--sets .f-grid .f-piece__row { min-height: calc(2 * 1.3em); } /* sets: every name keeps two lines, so the prices line up */
  .f-grid .price { margin-top: 10px; }
  .f-grid .price__now { font-size: .95rem; }
  .f-grid .price__was { font-size: .82rem; }
  /* Shipping & returns: smaller, tighter text */
  .f-ship .panel { font-size: .9rem; line-height: 1.5; }
  .f-ship .panel p + p { margin-top: 1.1em; }

  /* Reed Diffuser · Make it yours: closing line a little smaller */
  .pd-sig { font-size: .92rem; line-height: 1.45; }
}

/* PHONES, round 2 — tight lines throughout, smaller details */
@media (max-width: 640px) {
  /* body copy: lines sit close; paragraph gaps stay */
  .o-body, .o-body p, .c-body, .edition__more, .story__sub, .lede,
  .accordion .panel, .accordion .panel p, .accordion .panel li, .r-contact .o-body, .pd-mine p, .f-ship .panel { line-height: 1.32; }
  .accordion .panel li { margin-bottom: .2em; }
  .edition__more { margin-top: 14px; }

  /* Collections: the colour bar comes back, above the quote */
  .c-scents .scent-card { grid-template-rows: auto auto auto 1fr auto; }
  .c-scents .scent-card__name, .c-scents .scent-card__bar { position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal; }
  .c-scents .scent-card__name { grid-row: 1; margin: 6px 0 0; font-size: .95rem; line-height: 1.2; }
  .c-scents .scent-card__bar { grid-row: 2; width: 28px; height: 3px; margin: 6px 0 0; }
  .c-scents .scent-card__quote { grid-row: 3; margin-top: 6px; }
  .c-scents .scent-card__meta { grid-row: 5; }

  /* Find your scent */
  .sale-tag { width: 28px; padding: 8px 0 12px; }
  .sale-tag b { font-size: .62rem; }
  .sale-tag span { font-size: .4rem; }
  .f-ship .panel { font-size: .86rem; }
  .f-ship .panel p + p { margin-top: 1em; }
  .f-ship .panel strong { display: inline-block; margin-bottom: 2px; }

  /* product pages: no line under the price; words tight */
  .pd-lede { display: none; }
  .pd-text .price { margin-top: 12px; }

  /* The five scents (product pages): a slightly larger card, as tall as its words */
  .scent-row { grid-template-columns: 76px minmax(0, 1fr); gap: 2px 16px; align-items: start; }
  .scent-row__thumb { grid-row: 1 / span 2; width: 76px; }
  .scent-row__name { font-size: 1rem; line-height: 1.25; }
  .scent-row__coll { margin-top: 2px; }
  .scent-row__notes { font-size: .88rem; line-height: 1.32; }
  /* "Read the collection stories →": small, on the right */
  .scent-list + p { text-align: right; }
  .scent-list + p .link-arrow { font-size: .7rem; letter-spacing: .2em; gap: 10px; padding-block: 4px 3px; }

  /* Sets page · The five scents: card, the three notes one per line, the label on the right */
  .scent-row--badge { grid-template-columns: 76px minmax(0, 1fr) auto; align-items: center; }
  .scent-row--badge .scent-row__thumb { grid-row: 1; }
  .scent-row--badge .scent-row__name, .scent-row--badge .mood, .scent-row--badge .dot {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
  }
  .scent-row--badge .scent-row__notes { grid-column: 2; grid-row: 1; }
  .scent-row--badge .note { display: block; white-space: nowrap; }
  .scent-row--badge { column-gap: 12px; }
  .scent-row--badge .badge { grid-column: 3; grid-row: 1; justify-self: end; align-self: center; margin: 0; font-size: .54rem; letter-spacing: .1em; padding: 5px 6px; }

  /* Make it yours: the note smaller */
  .pd-note { font-size: .78rem; line-height: 1.3; }

  /* footer: smaller logo, tight links */
  .footer-mark .mark { width: 54px; }
  .footer-grid li a { font-size: .84rem; padding-block: 1px; line-height: 1.3; }
  .footer-grid { row-gap: 22px; }
}

/* PHONES, round 3 */
.footer-social--connect { display: none; } /* phones only: the icons sit under "Connect" */
@media (max-width: 640px) {
  /* home */
  .edition__lines { line-height: 1.75; }
  .hc__item { width: 86%; margin-inline: auto; } /* a little smaller, centred */
  .ig__foot .link-arrow { font-size: .62rem; letter-spacing: .2em; gap: 10px; padding-block: 6px 4px; }
  /* footer: smaller logo; the links small and tight; Connect shows the icons only */
  .footer-mark .mark { width: 44px; }
  .footer-grid li a { font-size: .78rem; line-height: 1.25; padding-block: 1px; }
  .footer-grid ul:not(.footer-social) li + li { margin-top: 2px; }
  .footer-grid h2 + ul:not(.footer-social) { display: block; }
  .footer-grid > div:nth-child(3) > ul:first-of-type { display: none; }
  .footer-social--connect { display: flex; margin: -4px 0 0 -7px; }
  .footer-side .footer-social { display: none; }
  .footer-side { justify-content: flex-end; }
  /* Sets page: no italic line under each name */
  .s-tag { display: none; }
  /* Find your scent: the title a touch larger, the note smaller and evenly balanced */
  .f-title { font-size: min(3.62vw, 1.22rem); letter-spacing: .015em; }
  .f-note { font-size: .78rem; text-wrap: balance; }
  /* Origins: the two lines about the words sit together; body text set evenly */
  .o-words > div { gap: 0; }
  .o-body, .o-body p { text-wrap: pretty; } /* no lone short words at line ends */
  .o-quote { line-height: 1.35; }
  .footer-grid li { line-height: 1.25; }
  /* Collections: keep the Turkish break before "her" */
  .c-body br.keep { display: inline; }
}

/* Rituals · Contact: three set lines on wide screens */
br.m-only { display: none; } /* a line break used on phones only */

/* PHONES, round 4 */
@media (max-width: 640px) {
  .edition__more { margin-top: 24px; }
  /* footer: icons stacked; the signature at the bottom right, level with the last link */
  .footer-social--connect { flex-direction: column; gap: 4px; }
  .footer-grid > div:nth-child(3) { grid-column: 2; grid-row: 2; align-self: start; } /* Connect */
  .footer-side { grid-column: 2; grid-row: 2; align-self: end; justify-self: end; }
  .footer-sign .sig { font-size: .82rem; }
  .footer-sign .copy { font-size: .5rem; }
  .site-footer { padding-block: 26px; }
  .footer-grid { row-gap: 18px; }
  /* Origins: each word and its meaning sit together */
  .o-words dt { line-height: 1.2; }
  .o-words dd { line-height: 1.3; }
  /* Collections: the three notes a little higher */
  .c-scents .scent-card__meta { margin-bottom: 4px; }
  /* Sets page: its title larger than the back link */
  .f-head--tight .f-title { font-size: 1.25rem; white-space: normal; letter-spacing: .06em; }
  /* Rituals · Contact: let the words wrap naturally */
  .r-contact .o-body br.m-only { display: inline; }
}

/* PHONES, round 5 */
@media (max-width: 640px) {
  .c-scents { gap: 48px; }                        /* more room between the scent cards */
  body[data-page="collections"] .o-close .wrap { text-align: right; } /* "View all scents & products →" on the right */
  .footer-social--connect { gap: 0; }
  .footer-social--connect a { height: 28px; }
  .site-footer .wrap { position: relative; }
  .footer-side { position: absolute; right: var(--gutter); bottom: -8px; } /* signature near the foot of the block */
}

/* PHONES, round 6 — lines set exactly as given */
@media (max-width: 640px) {
  .o-body br.m-only, .o-quote br.m-only { display: inline; }
  .o-body .italic { font-size: min(4.5vw, 1.02rem); }        /* "Each scent … to feel, / and to remember." */
  .o-quote { font-size: min(4.3vw, 1.08rem); }             /* three set lines */
  .r-contact .o-body { font-size: min(2.82vw, .95rem); line-height: 1.45; } /* three set lines */
}
