/* Makbro site2: Fleur home, IKKARI shop, product detail. One stylesheet for all three pages.
   Tokens from docs/mocks/tf-rows (approved). Type scale per page <= 6 sizes:
   display 88/40 (home hero), 48/34 (product name), 32/26 (h2), 18 (lede, names), 16 (body), 15 (UI: nav, captions, buttons, notes). */

@font-face { font-family: "Nohemi"; src: url("fonts/Nohemi-Regular.woff2") format("woff2"), url("fonts/Nohemi-Regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Nohemi"; src: url("fonts/Nohemi-Medium.woff2") format("woff2"), url("fonts/Nohemi-Medium.ttf") format("truetype"); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  --ground: #FFFFFF;
  --tile: #F3F2EF;
  --stone: #E3DFD7;
  --ink: #1C1915;
  --ink-hover: #3A342D;
  --ink-2: #5E5850;
  --line: rgba(28, 25, 21, .10);
  --amber: #B4521E;
  --amber-hover: #9C4518;
  --g: 40px;            /* page gutter */
  --hdr: 64px;          /* header island height */
  --hdr-top: 12px;      /* island inset from the top */
  --hdr-space: calc(var(--hdr) + var(--hdr-top));
  --ease: cubic-bezier(.23, 1, .32, 1);
  --t-ui: 280ms;
  --t-slow: 700ms;
  --glass: rgba(246, 245, 242, .80);
  --glass-blur: saturate(160%) blur(24px);
  color-scheme: light;
}

/* Cross-document view transitions: header persists, bottle morphs, root crossfades calmly. */
@view-transition { navigation: auto; }
::view-transition-group(*) { animation-duration: 640ms; animation-timing-function: cubic-bezier(.23, 1, .32, 1); }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 420ms; animation-timing-function: cubic-bezier(.23, 1, .32, 1); }
::view-transition-group(hdr) { animation-duration: 1ms; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--ground); }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font-family: "Nohemi", system-ui, sans-serif; font-weight: 400; font-synthesis: none;
  font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
h1, h2, h3, p, ul, figure { margin: 0; padding: 0; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
picture.mk2p { display: contents; } picture.mk2p > source { display: none; } /* brief 28: AVIF/WebP wrapper adds no box (sources would be grid/flex items) */
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* Clip only horizontally so botanicals can bleed off the page edge without a sideways scroll. */
.page { overflow-x: hidden; overflow-x: clip; position: relative; }

/* Authored headline lines */
.ln { display: block; }
@media (min-width: 360px) { .ln { white-space: nowrap; } }

/* ---------- Header island (frosted glass) ---------- */
.hdr {
  position: fixed; z-index: 50; top: var(--hdr-top); left: var(--g); right: var(--g);
  height: var(--hdr); padding: 0 28px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  background: var(--glass); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(28, 25, 21, .06);
  font-size: 15px; line-height: 1.4;
  view-transition-name: hdr;
}
.hdr__nav { display: flex; gap: 32px; }
.hdr__nav--r { justify-content: flex-end; }
.hdr a { transition: color var(--t-ui) var(--ease); }
.hdr__nav a:hover { color: var(--ink-2); }
.hdr__nav a[aria-current="page"] { color: var(--ink-2); }
.hdr__logo { grid-column: 2; line-height: 0; }
.hdr__logo img { height: 26px; width: auto; }

/* ---------- Buttons: solid, radius 0, sentence case ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 28px; border-radius: 0;
  font-size: 15px; font-weight: 500; line-height: 1; letter-spacing: 0; white-space: nowrap;
  transition: background-color var(--t-ui) var(--ease), color var(--t-ui) var(--ease), transform 120ms var(--ease);
}
.btn:active { transform: scale(.97); }
.btn--ink { background: var(--ink); color: #FFFFFF; }
.btn--ink:hover { background: var(--ink-hover); }
.btn--cart { background: var(--stone); color: var(--ink); }
.btn--cart:hover { background: var(--amber); color: #FFFFFF; }
.btn--cart:active { background: var(--amber-hover); color: #FFFFFF; }
.btn--block { width: 100%; }

/* ---------- Type ---------- */
.display { font-size: clamp(56px, 6.1vw, 88px); font-weight: 400; line-height: 1.02; letter-spacing: -.035em; }
.h2 { font-size: 32px; font-weight: 400; line-height: 1.12; letter-spacing: -.02em; }
.lede { font-size: 18px; line-height: 1.5; color: var(--ink-2); letter-spacing: -.005em; }
.body { font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.ui { font-size: 15px; line-height: 1.45; }
.muted { color: var(--ink-2); }

/* ---------- Botanicals (placement system: docs/design/23-asset-placement.md) ---------- */
.bot {
  position: absolute; z-index: 0; width: var(--w, 280px); height: auto; max-width: none;
  pointer-events: none; user-select: none;
  rotate: var(--r, 0deg); translate: 0 var(--py, 0px);
  transition: opacity 900ms var(--ease);
}
.bot--line { opacity: .55; mix-blend-mode: multiply; }
.bot--front { z-index: 3; }
html.js .bot { opacity: 0; }
html.js .bot.is-in { opacity: 1; }
html.js .bot--line.is-in { opacity: .55; }
.bot--flip { scale: -1 1; }
/* ?assets=boxes debug: missing files render as labelled dashed boxes with an assumed aspect */
.bot.is-ghost { opacity: 1 !important; aspect-ratio: var(--ar, 1); outline: 1px dashed rgba(180, 82, 30, .7); outline-offset: -1px; background: rgba(180, 82, 30, .05); }
.bot.is-ghost::after { content: attr(data-name); }
.ghost-label { position: absolute; left: 6px; top: 4px; font-size: 15px; color: var(--amber); }

/* ---------- Cut-out bottle with a hard sun shadow made from itself ---------- */
/* .bottle holds the cut-out at its native aspect; the shadow is the same PNG blackened, skewed and squashed from the base. */
.bottle { position: relative; display: block; aspect-ratio: var(--ar, .4); height: 100%; }
.bottle__cut, .bottle__shadow { position: absolute; inset: 0; width: 100%; height: 100%; }
.bottle__cut { z-index: 2; }
.bottle__shadow {
  z-index: 1; transform-origin: 50% 99%;
  /* Sun from the upper right as in the notes photos: shadow falls back and to the left. */
  transform: skewX(46deg) scaleY(.5);
  filter: brightness(0) blur(1px); opacity: .2;
}
.bottle::after { /* contact shadow: thin dark line where glass meets floor */
  content: ""; position: absolute; z-index: 1; left: 6%; right: 6%; bottom: -1.2%; height: 3%;
  background: radial-gradient(closest-side, rgba(28, 25, 21, .32), rgba(28, 25, 21, 0));
}

/* ---------- Tiles (shop, product "more", shared) ---------- */
.tiles { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 var(--gap); margin: 0 auto; }
.tile { flex: 0 0 var(--t); width: var(--t); margin-bottom: var(--rgap); }
.tile__link { display: block; }
.tile__media { position: relative; display: block; aspect-ratio: 1 / 1.08; background: var(--tile); overflow: hidden; }
.tile__media .bottle { position: absolute; left: 50%; bottom: 15%; height: 68%; translate: -50% 0;
  transition: opacity 500ms var(--ease), transform 600ms var(--ease); }
.tile__flat { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%;
  transition: opacity 500ms var(--ease), transform 900ms var(--ease); }
.tile__scene { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%;
  opacity: 0; transform: scale(1.04); transition: opacity 600ms var(--ease), transform 900ms var(--ease); z-index: 3; }
.tile__cap { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 12px; font-size: 15px; line-height: 1.35; }
.tile__price { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.tile.brk { flex: 0 0 100%; width: 100%; height: 0; margin: 0; display: none; }
@media (hover: hover) {
  .tile__link:hover .tile__media .bottle { transform: translateY(-2%); }
  .tile.has-scene .tile__link:hover .tile__scene,
  .tile.has-scene .tile__link:focus-visible .tile__scene { opacity: 1; transform: none; }
  .tile.has-scene .tile__link:hover .tile__media .bottle,
  .tile.has-scene .tile__link:hover .tile__flat { opacity: 0; }
  .tile__link:hover .tile__flat { transform: scale(1.02); }
}
.tile.is-leaving .tile__scene { opacity: 0 !important; transition: none; }
.tile.is-leaving .tile__media .bottle, .tile.is-leaving .tile__flat { opacity: 1 !important; transition: none; }

/* ================= SHOP (one screen) ================= */
.shop-body { min-height: 100vh; }
.shop {
  --gap: 24px; --rgap: 20px; --cap: 34px; --title: 76px;
  /* tile width: the smaller of width-fit (4 across) and height-fit (2 rows + captions), capped */
  --t: min(calc((100vw - 2 * var(--g) - 3 * var(--gap)) / 4),
           calc((100vh - var(--hdr-space) - var(--title) - 2 * var(--cap) - 2 * var(--rgap) - 8px) / 2.16),
           300px);
  padding-top: var(--hdr-space);
}
@supports (height: 100svh) {
  .shop { --t: min(calc((100vw - 2 * var(--g) - 3 * var(--gap)) / 4),
                   calc((100svh - var(--hdr-space) - var(--title) - 2 * var(--cap) - 2 * var(--rgap) - 8px) / 2.16),
                   300px); }
}
.shop { --tar: 1.08; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-bottom: 8px; }
.shop .tile__media { aspect-ratio: 1 / var(--tar); }
.shop__head { height: var(--title); display: flex; align-items: center; justify-content: center; }
.shop .tiles { width: calc(4 * var(--t) + 3 * var(--gap)); }
@media (min-width: 1024px) and (min-height: 600px) { .shop-body { height: 100vh; height: 100svh; overflow: hidden; } }

/* ================= HOME ================= */
.hero { position: relative; min-height: max(620px, min(100svh, 860px)); padding-top: var(--hdr-space);
  display: grid; grid-template-columns: 1fr 1fr; }
.hero__copy { position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: center; padding: 48px var(--g) 96px calc(var(--g) + 4vw); }
.hero__copy .lede { margin-top: 28px; max-width: 420px; }
.hero__copy .btn { margin-top: 36px; align-self: flex-start; }
.hero__art { position: relative; display: flex; align-items: center; justify-content: center; padding-bottom: 48px; }
.hero__bottle { position: relative; z-index: 2; display: block; height: var(--bh); flex: 0 0 auto; }
.hero__bottle .bottle { height: 100%; }

.sec { position: relative; padding: 120px var(--g); }
.sec__head { position: relative; z-index: 2; text-align: center; max-width: 640px; margin: 0 auto; }
.sec__head .body { margin: 20px auto 0; max-width: 476px; }

.cards { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 64px; }
.card__media { display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--tile); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease); }
.card__media:hover img { transform: scale(1.03); }
.card__row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-top: 18px; }
.card__name { font-size: 18px; font-weight: 500; line-height: 1.3; }
.card__price { font-size: 15px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.card__line { margin-top: 4px; font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.card .btn { margin-top: 18px; }
.sec__foot { position: relative; z-index: 2; display: flex; justify-content: center; margin-top: 56px; }

.feature { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 0; padding: 0 var(--g); align-items: stretch; }
.feature__media { position: relative; z-index: 2; aspect-ratio: 1122 / 1402; overflow: hidden; background: var(--tile); width: min(100%, 600px); justify-self: center; }
.feature__media > img, .feature__media > picture > img { width: 100%; height: 100%; object-fit: cover; }
.feature__copy { position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 64px var(--g); }
.feature__copy .lede { margin-top: 20px; max-width: 420px; }
.feature__copy .btn { margin-top: 36px; }

/* Glass bar over the photograph (glass only over imagery) */
.glassbar {
  position: absolute; left: 24px; right: 24px; bottom: 24px; z-index: 3;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 14px 14px 20px;
  background: rgba(255, 255, 255, .72); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(255, 255, 255, .55);
}
.glassbar__name { font-size: 18px; font-weight: 500; line-height: 1.25; }
.glassbar__price { font-size: 15px; color: var(--ink-2); }

.lineup { position: relative; z-index: 2; display: flex; justify-content: center; align-items: flex-end; gap: clamp(20px, 3.4vw, 56px); margin-top: 72px; }
.lineup > li { display: flex; justify-content: center; }
.lineup__item { display: flex; flex-direction: column; align-items: center; }
.lineup__item .bottle { height: clamp(150px, 15vw, 220px); transition: transform 600ms var(--ease); }
.lineup__item:hover .bottle { transform: translateY(-4%); }
.lineup__name { margin-top: 22px; font-size: 15px; line-height: 1.35; text-align: center; transition: color var(--t-ui) var(--ease); }
.lineup__item:hover .lineup__name { color: var(--ink-2); }

.facts { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); margin: 0 var(--g); }
.facts li { padding: 28px 12px; text-align: center; font-size: 15px; color: var(--ink-2); }

.ftr { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
  padding: 40px var(--g) 48px; border-top: 1px solid var(--line); margin: 0 var(--g); font-size: 15px; color: var(--ink-2); }
.ftr__nav { display: flex; gap: 28px; }
.ftr__nav--r { justify-content: flex-end; }
.ftr__nav a { transition: color var(--t-ui) var(--ease); }
.ftr__nav a:hover { color: var(--ink); }
.ftr img { height: 22px; width: auto; }
.ftr--x { padding-left: 0; padding-right: 0; }

/* Home shop teaser: same tile + hover language as shop.html, 3 across */
.teaser { --gap: 24px; --rgap: 0px; --t: min(calc((100vw - 2 * var(--g) - 2 * var(--gap)) / 3), 360px);
  position: relative; z-index: 2; width: calc(3 * var(--t) + 2 * var(--gap)); margin-top: 64px; }
.feature--last { padding-bottom: 120px; }
.p-col-line { --w: 250px; --r: 10deg; left: calc(50% + 230px); top: 64px; }

/* ================= PRODUCT ================= */
.pdp { position: relative; min-height: max(640px, min(100svh, 900px)); padding-top: var(--hdr-space);
  display: grid; grid-template-columns: 1fr 1fr;
  /* the product's own tint melts into the white page: no hard band at the seam */
  background: linear-gradient(180deg, var(--pground, var(--tile)) 0, var(--pground, var(--tile)) 72%, var(--ground) 100%); }
.pdp__art { position: relative; display: flex; align-items: center; justify-content: center; padding: 40px 0 72px; }
.pdp__bottle { position: relative; z-index: 2; display: block; height: var(--bh); flex: 0 0 auto; }
.pdp__side { position: relative; display: flex; align-items: center; justify-content: center; padding: 40px var(--g) 72px; }
.panel { position: relative; z-index: 2; width: min(440px, 100%); padding: 40px; background: #FFFFFF; border: 1px solid var(--line); }
.panel.is-glass { background: rgba(255, 255, 255, .74); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); border-color: rgba(255, 255, 255, .6); }
.panel__name { font-size: 48px; font-weight: 400; line-height: 1.04; letter-spacing: -.03em; }
.panel__line { margin-top: 14px; font-size: 18px; line-height: 1.45; color: var(--ink); }
.panel__notes { margin-top: 10px; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.panel__buy { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); }
.panel__price { font-size: 18px; font-variant-numeric: tabular-nums; }
.panel .btn--cart { flex: 0 0 auto; min-width: 180px; }

.notes { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 120px var(--g) 0; align-items: center; }
.notes__media { position: relative; z-index: 2; aspect-ratio: 1122 / 1402; overflow: hidden; background: var(--tile); width: min(100%, 560px); justify-self: center; }
.notes__media img { width: 100%; height: 100%; object-fit: cover; }
.notes__copy { position: relative; z-index: 2; justify-self: center; width: min(100%, 420px); padding: 0 var(--g); box-sizing: content-box; }
.notes__list { margin-top: 28px; }
.notes__list li { padding: 16px 0; border-top: 1px solid var(--line); font-size: 16px; line-height: 1.55; color: var(--ink-2); }
.notes__list li:last-child { border-bottom: 1px solid var(--line); }
.notes__list b { display: block; font-weight: 500; color: var(--ink); font-size: 15px; }

.more { position: relative; padding: 120px var(--g); }
.more .tiles { --gap: 24px; --rgap: 32px; --t: min(calc((100vw - 2 * var(--g) - 2 * var(--gap)) / 3), 300px); width: calc(3 * var(--t) + 2 * var(--gap)); margin-top: 56px; }

/* ================= Motion: reveal (failsafe pre-state only with JS) ================= */
html.js .rv { opacity: 0; transform: translateY(24px); transition: opacity 900ms var(--ease), transform 900ms var(--ease); }
html.js .rv.is-in { opacity: 1; transform: none; }

/* ================= Tablet ================= */
@media (max-width: 1023px) {
  .hero__copy { padding-left: var(--g); }
  .display { font-size: clamp(48px, 6.4vw, 64px); }
  .panel { padding: 32px; }
  .panel__name { font-size: 40px; }
}

/* ================= Phone: its own composition ================= */
@media (max-width: 767px) {
  :root { --g: 20px; --hdr: 56px; --hdr-top: 8px; }
  .hdr { padding: 0 18px; }
  .hdr__nav { gap: 20px; }
  .hdr .hide-s { display: none; }
  .hdr__logo img { height: 21px; }

  .display { font-size: 40px; line-height: 1.04; }
  .h2 { font-size: 26px; }
  .sec { padding: 80px var(--g); }

  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero__copy { padding: 40px var(--g) 0; text-align: left; }
  .hero__copy .lede { margin-top: 18px; font-size: 16px; }
  .hero__copy .btn { margin-top: 24px; }
  .hero__art { padding: 40px 0 64px; }
  .hero__bottle { height: min(380px, 46svh); }

  .cards { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin: 40px calc(-1 * var(--g)) 0; padding: 0 var(--g);
    scrollbar-width: none; overscroll-behavior-x: contain; }
  .cards::-webkit-scrollbar { display: none; }
  .card { flex: 0 0 78%; scroll-snap-align: center; }
  .sec__foot { margin-top: 40px; }

  .teaser { --t: 74vw; --gap: 12px; width: auto; flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scroll-snap-type: x mandatory;
    margin: 40px calc(-1 * var(--g)) 0; padding: 0 var(--g); scrollbar-width: none; overscroll-behavior-x: contain; }
  .teaser::-webkit-scrollbar { display: none; }
  .teaser .tile { scroll-snap-align: center; }
  .p-col-line { --w: 150px; left: auto; right: -30px; top: 24px; }
  .feature.feature--last { padding-bottom: 80px; }
  .feature { grid-template-columns: 1fr; padding: 0; }
  .feature__media { margin: 0 var(--g); }
  .feature__copy { padding: 48px var(--g) 0; }
  .glassbar { left: 12px; right: 12px; bottom: 12px; padding: 10px 10px 10px 14px; }
  .glassbar .btn { padding: 0 18px; }

  .lineup { flex-wrap: wrap; gap: 36px 0; margin-top: 48px; }
  .lineup > li { flex: 0 0 25%; }
  .lineup > li:nth-child(n+5) { flex-basis: 33.333%; }
  .lineup__item .bottle { height: 128px; }
  .lineup__name { margin-top: 14px; }

  .facts { grid-template-columns: 1fr 1fr; }
  .facts li { padding: 20px 8px; }
  .ftr { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 18px; padding: 32px 0 40px; }
  .ftr__nav, .ftr__nav--r { justify-content: center; }
  .ftr img { grid-row: 1; }

  /* Shop phone: 2-3-2 rows, still one screen */
  /* portrait tiles on phone so the 2-3-2 grid uses the tall screen */
  .shop { --tar: 1.36; --gap: 10px; --rgap: 16px; --cap: 42px; --title: 64px;
    --t: min(calc((100vw - 2 * var(--g) - 2 * var(--gap)) / 3), calc((100svh - var(--hdr-space) - var(--title) - 3 * var(--cap) - 3 * var(--rgap) - 16px) / (3 * 1.36))); }
  .shop .tile__media .bottle { height: 62%; bottom: 17%; }
  .shop .tiles { width: calc(3 * var(--t) + 2 * var(--gap)); }
  .shop .tile.brk { display: block; }
  .tile__cap { flex-direction: column; gap: 0; margin-top: 8px; }
  .shop .tile__cap { min-height: 42px; }
  .shop .h2 { font-size: 26px; }

  .pdp { grid-template-columns: 1fr; min-height: 0; }
  .pdp__art { padding: 32px 0 40px; }
  .pdp__bottle { height: min(400px, 50svh); }
  .pdp__side { padding: 0 var(--g) 56px; }
  .panel { padding: 24px; width: 100%; }
  .panel__name { font-size: 34px; }
  .panel__buy { flex-direction: column; align-items: stretch; gap: 14px; }
  .panel .btn--cart { width: 100%; }

  .notes { grid-template-columns: 1fr; padding: 72px var(--g) 0; gap: 40px; }
  .notes__copy { padding: 0; box-sizing: border-box; width: 100%; }

  .more { padding: 80px var(--g); }
  .more .tiles { --gap: 12px; --rgap: 24px; --t: calc((100vw - 2 * var(--g) - var(--gap)) / 2); width: calc(2 * var(--t) + var(--gap)); margin-top: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; }
  html.js .rv { opacity: 1; transform: none; }
  .bot { translate: none !important; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

/* ---------- Standing botanicals: same sun, same floor, same projected shadow as the bottle (Akash: 'make them look 3d') ---------- */
.hero__bottle { position: relative; }
.flora { position: absolute; bottom: 0; display: block; pointer-events: none; aspect-ratio: var(--far, 1); width: var(--fw); }
.flora img { position: absolute; inset: 0; width: 100%; height: 100%; }
.flora__cut { z-index: 2; filter: drop-shadow(-2px 3px 3px rgba(28,25,21,.18)); }
.flora__shadow { z-index: 1; transform-origin: 50% 99%; transform: skewX(46deg) scaleY(.5); filter: brightness(0) blur(1.5px); opacity: .14; }
.flora--flip .flora__cut { transform: scaleX(-1); }
.flora--flip .flora__shadow { transform: skewX(46deg) scaleY(.5) scaleX(-1); }
.flora::after { content: ""; position: absolute; bottom: -1%; width: 14%; height: 3%; background: radial-gradient(closest-side, rgba(28,25,21,.3), rgba(28,25,21,0)); }
.flora:not(.flora--flip)::after { left: 0; } .flora--flip::after { right: 0; }
/* Peony: stem base on the floor just right of the glass, leaning away, BEHIND the bottle, a touch softer = further back */
.f-hero-peony { --far: 1162/1149; --fw: calc(var(--bh) * .52); left: 50%; z-index: 0; }
.f-hero-peony .flora__cut { filter: drop-shadow(-2px 3px 3px rgba(28,25,21,.16)) blur(.35px) saturate(.96); }
/* Jasmine: stem base at the left foot of the bottle, spray leaning left, IN FRONT (nearer) */
.f-hero-jasmine { --far: 1053/1151; --fw: calc(var(--bh) * .46); right: 72%; z-index: 3; }
.hero__bottle .bottle { z-index: 2; position: relative; }
@media (min-width: 768px) and (max-width: 1120px) { .f-hero-peony { --fw: calc(var(--bh) * .44); } }
@media (max-width: 767px) { .f-hero-peony { --fw: calc(var(--bh) * .44); left: 48%; } .f-hero-jasmine { --fw: calc(var(--bh) * .38); } }

/* ================= Botanical placements (spec: docs/design/23-asset-placement.md) =================
   Rules: whole objects, cropped only by the page edge; never over text (line drawings may ghost behind headings);
   max ~3 per viewport; sides alternate down the page (hero R+L, seam 1 L, seam 2 R, seam 3 L). */
.hero__bottle, .pdp__bottle { --bh: min(520px, 62svh); }
.pdp__bottle { --bh: min(520px, 64svh); }

/* Home hero (Blossom Elite) */
.p-hero-line   { --w: 240px; --r: -8deg; left: 1.5vw; top: calc(var(--hdr-space) + 8px); }
.p-hero-peony  { --w: calc(var(--bh) * .78); --r: -6deg; left: 78%; bottom: calc(var(--bh) * -.1); }
.p-hero-jasmine{ --w: calc(var(--bh) * .5); --r: 14deg; right: 58%; bottom: calc(var(--bh) * -.05); }
/* Seam 1 hero -> collection (Amirah, first card): enters from the LEFT edge */
.p-s1-grapefruit  { --w: 250px; --r: -12deg; left: -78px; top: -64px; }
.p-s1-passionfruit{ --w: 118px; --r: 18deg; left: 96px; top: 176px; }
/* Seam 2 collection -> feature (Majd, third card): enters from the RIGHT edge */
.p-s2-rosemary  { --w: 230px; --r: -14deg; right: -64px; bottom: -170px; }
.p-s2-pinkpepper{ --w: 150px; --r: 0deg; right: 250px; bottom: -36px; }
/* Seam 3 feature -> lineup (Azraq, the feature): enters from the LEFT edge, tucked behind the photograph */
.p-s3-sandalwood{ --w: 320px; --r: 16deg; left: -84px; bottom: 84px; }
.p-s3-labdanum  { --w: 112px; --r: 0deg; left: 250px; bottom: 14px; }
/* Lineup heading ghost */
.p-lineup-line  { --w: 250px; --r: 10deg; left: calc(50% + 150px); top: 52px; }

/* Product page: slots anchored to the bottle (a, b) and the panel column (c), seam (d) */
.p-pdp-a { --w: calc(var(--bh) * .62); --r: -10deg; right: 70%; top: 2%; }
.p-pdp-b { --w: calc(var(--bh) * .46); --r: -4deg; left: 82%; bottom: calc(var(--bh) * -.06); }
.p-pdp-c { --w: min(560px, 40vw); --r: -14deg; right: -110px; top: 54%; translate: 0 calc(-50% + var(--py, 0px)); }
.p-pdp-d { --w: 300px; --r: 18deg; left: -90px; top: -150px; }

@media (max-width: 1023px) {
  .p-hero-line { --w: 220px; }
  .p-s1-passionfruit, .p-s2-pinkpepper { display: none; }
  .p-s3-labdanum { left: 180px; }
}
@media (max-width: 767px) {
  .hero__bottle { --bh: min(380px, 46svh); }
  .pdp__bottle { --bh: min(400px, 50svh); }
  .p-hero-line { --w: 150px; left: auto; right: -24px; top: calc(var(--hdr-space) + 4px); }
  .p-hero-peony { --w: calc(var(--bh) * .66); left: 76%; }
  .p-hero-jasmine { --w: calc(var(--bh) * .46); right: 56%; }
  .p-s1-grapefruit { --w: 124px; left: -44px; top: 28px; }
  .p-s2-rosemary { --w: 120px; right: -40px; bottom: -120px; }
  .p-s3-sandalwood { --w: 150px; left: -50px; bottom: auto; top: -40px; }
  .p-s3-labdanum { display: none; }
  .p-lineup-line { --w: 150px; left: auto; right: -30px; top: 24px; }
  .p-pdp-c { --w: 260px; right: -70px; top: 0; translate: 0 calc(-30% + var(--py, 0px)); }
  .p-pdp-d { --w: 180px; left: -56px; top: -90px; }
}
@media (max-width: 359px) { .p-s3-sandalwood { --w: 120px; } }

/* ================= Hero = one real campaign photograph (Akash, 23 Nov: TF/LV refs) ================= */
.hero--photo { display: block; height: min(100svh, 62vw); max-height: 980px; min-height: 560px; padding-top: 0; overflow: hidden; }
.hero__photo, .hero__photo img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__photo img { object-fit: cover; object-position: 50% 50%; }
.hero--photo .hero__copy { position: absolute; z-index: 2; left: 0; top: 0; bottom: 0; width: min(46%, 640px);
  padding: calc(var(--hdr-space) + 24px) var(--g) 64px calc(var(--g) + 3vw); }
@media (max-width: 767px) {
  /* Phone: photo first, copy BELOW it on the plaster colour sampled from the photo's bottom edge (never over a bottle) */
  .hero--photo { height: auto; min-height: 0; max-height: none; display: flex; flex-direction: column; background: linear-gradient(180deg, rgb(211,161,115), rgb(208,162,123)); padding-top: var(--hdr-space); }
  .hero__photo { position: relative; display: block; inset: auto; aspect-ratio: 912 / 941;
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 5%, #000 82%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0, #000 5%, #000 82%, transparent 100%); }
  .hero__photo img { object-position: 50% 50%; }
  .hero--photo .hero__copy { position: static; width: 100%; padding: 28px var(--g) 48px; color: var(--ink); }
  .hero--photo .hero__copy .lede { display: block; color: #2E2620; }
}

/* Hero v3 fixes (Opus review 23 Nov): photo starts below the header island so no cap sits under the nav;
   the strip above it is the photo's own top-edge plaster tone; smaller hero headline so it clears the bottles. */
@media (min-width: 768px) {
  .hero--photo { background: linear-gradient(90deg, rgb(228,192,156), rgb(216,170,124) 60%, rgb(208,161,116)); }
  .hero--photo .hero__photo { top: var(--hdr-space); height: calc(100% - var(--hdr-space));
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 7%); mask-image: linear-gradient(180deg, transparent 0, #000 7%); }
  .hero--photo .display { font-size: clamp(44px, 4.6vw, 76px); }
}
/* Notes hero: calm the water caustics behind the copy (desktop) so lede/body copy reads */
@media (min-width: 768px) {
  html[data-hero="notes"] .hero--photo::after { content: ""; position: absolute; z-index: 1; inset: 0 auto 0 0; width: 58%;
    background: linear-gradient(90deg, rgba(244,238,229,.78) 0, rgba(244,238,229,.62) 55%, rgba(244,238,229,0) 100%); pointer-events: none; }
  html[data-hero="notes"] .hero--photo .lede { color: var(--ink); }
  html[data-hero="notes"] .hero__photo img { object-position: 50% 62%; }
}
/* Full-bleed hero (Akash 23 Nov: "the image should take over the whole hero section"): photo fills the whole
   first screen under the glass header island; no white bar, no top fade over the cap. */
@media (min-width: 768px) {
  .hero--photo { height: 100vh; height: 100svh; max-height: none; min-height: 560px; }
  .hero--photo .hero__photo { top: 0; height: 100%; -webkit-mask-image: none; mask-image: none; }
  html[data-hero="notes"] .hero__photo img { object-position: 50% 100%; }
}
/* Extended notes hero (1672x1141): cap sits 23% down, so it clears the header island at every desktop size */
@media (min-width: 768px) { html[data-hero="notes"] .hero__photo img { object-position: 50% 40%; } }
@media (max-width: 767px) { html[data-hero="notes"] .hero__photo { aspect-ratio: 912 / 1141; } }
/* Akash: "the bottle is placed a bit too low now / place it a little higher" */
@media (min-width: 768px) { html[data-hero="notes"] .hero__photo img { object-position: 50% 72%; } }

/* 24 Nov: tile add to cart as an icon, never over the bottle (Akash: "i don't like how the add to cart button ... takes over the image").
   Chosen 24 Nov: bag icon in the caption row, plus badge on hover. one <a.tile__add> per tile, icons swap on .is-busy/.is-ok. */
.tile { position: relative; }
.tile__add { position: absolute; z-index: 3; display: inline-flex; align-items: center; justify-content: center; color: var(--ink);
  -webkit-tap-highlight-color: transparent; transition: background-color var(--t-ui) var(--ease), color var(--t-ui) var(--ease), border-color var(--t-ui) var(--ease), opacity var(--t-ui) var(--ease), translate var(--t-ui) var(--ease), width 420ms var(--ease); }
.tile__add .ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.tile__add .ic-ok, .tile__add.is-ok .ic-bag, .tile__add.is-ok .ic-plus { display: none; }
.tile__add.is-ok .ic-ok { display: block; }
.tile__add.is-busy { opacity: .55; pointer-events: none; }
.tile__add-t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* A: bag in the caption row, a plus badge pops onto it on hover */
.tile__cap { padding-right: 46px; }
.tile__add { right: 0; bottom: -9px; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--ground); }
.tile__add .ic-plus { position: absolute; top: -3px; right: -3px; width: 15px; height: 15px; box-shadow: 0 0 0 2px var(--ground); padding: 1px; border-radius: 50%; background: var(--amber); color: #FFFFFF; stroke-width: 2.4;
  scale: 0; transition: scale 360ms cubic-bezier(.34, 1.56, .64, 1); }
.tile__add:hover, .tile__add:focus-visible { background: var(--ink); border-color: var(--ink); color: #FFFFFF; }
.tile__add:hover .ic-plus, .tile__add:focus-visible .ic-plus { scale: 1; }
.tile__add:active { scale: .94; }

/* 23 Nov: home gift row (packaging still), mirrored: image right, copy left. */
.feature--gift { padding-bottom: 120px; }
@media (min-width: 768px) { .feature--gift .feature__media { order: 2; } }
@media (max-width: 767px) { .feature--gift { padding-bottom: 80px; } }

/* 24 Nov: option A spaced out (Akash: "looks a bit congested ... not looking spaced out properly").
   Name and price on their own lines with more air under the image; bag centred against the pair on desktop, beside the price on phone. */
.tile__cap { flex-direction: column; align-items: flex-start; gap: 3px; margin-top: 18px; padding-right: 56px; }
.tile__price { font-size: 14px; }
.tile__add { bottom: 2px; }
.shop { --cap: 60px; --rgap: 28px; }
.teaser .tile__cap { margin-top: 20px; }
@media (max-width: 767px) {
  .tile__cap { margin-top: 10px; gap: 1px; padding-right: 0; }
  .tile__price { padding-right: 34px; }
  .tile__add { width: 30px; height: 30px; bottom: -5px; }
  .tile__add .ic { width: 15px; height: 15px; }
  .shop { --cap: 48px; --rgap: 18px; }
  .shop .tile__cap { min-height: 48px; }
}
@media (max-width: 359px) { .shop .tile__cap { font-size: 12px; } .shop .tile__name { white-space: nowrap; } .shop .tile__price { font-size: 12px; padding-right: 30px; } .shop .tile__add { width: 26px; height: 26px; bottom: -4px; } }

/* ================= 24 Nov (brief 26): content pages, About / Contact / FAQs / policies, and the shared footer ================= */
/* Footer carries the content pages; it stacks below 1024 so eight links never crowd the logo. */
.ftr__nav { flex-wrap: wrap; row-gap: 10px; }
@media (max-width: 1023px) {
  .ftr { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 18px; padding: 32px 0 40px; }
  .ftr__nav, .ftr__nav--r { justify-content: center; }
  .ftr img { grid-row: 1; }
}
@media (max-width: 767px) { .ftr__nav { gap: 10px 22px; } }

/* About: hero = one photograph (Majd in the desert), copy left on the clear sky; then image + copy rows like home */
.hero--about .lede { color: var(--ink); }
@media (min-width: 768px) {
  .hero--about { background: rgb(232, 196, 172); }
  .hero--about .hero__copy { width: min(56%, 760px); }
  .hero--about .hero__photo img { object-position: 50% 60%; }
}
@media (min-width: 768px) and (max-width: 1023px) { .hero--about .display { font-size: 40px; } .hero--about .hero__photo img { object-position: 62% 60%; } }
@media (max-width: 767px) {
  .hero--about { background: rgb(217, 193, 183); } /* the photo's own top-edge sky, as home does with its plaster */
  .hero--about .hero__photo { -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 8%); mask-image: linear-gradient(180deg, transparent 0, #000 8%); }
}
.feature--story { padding-top: 120px; }
.feature__copy .lede + .lede { margin-top: 16px; }
.sec--mission .sec__head { max-width: 720px; }
.sec--mission .sec__head .lede { margin: 20px auto 0; max-width: 476px; }
.p-ab-rose    { --w: 230px; --r: 14deg; right: -70px; bottom: -150px; }
.p-ab-line    { --w: 250px; --r: -10deg; left: calc(50% - 470px); top: 56px; }
.p-ab-jasmine { --w: 200px; --r: -16deg; left: -60px; bottom: 48px; }
@media (max-width: 767px) {
  .feature--story { padding-top: 72px; }
  .p-ab-rose { display: none; } /* would cross the mission heading on a phone */
  .p-ab-line { --w: 150px; left: -30px; top: 24px; }
  .p-ab-jasmine { --w: 120px; left: -40px; bottom: -24px; }
}

/* Content pages frame (Contact, FAQs, policies): white ground under the header island */
.cpage { position: relative; padding: calc(var(--hdr-space) + 96px) var(--g) 120px; }
@media (max-width: 767px) { .cpage { padding: calc(var(--hdr-space) + 48px) var(--g) 80px; } }

/* Contact: details left, the site's form right */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 96px; max-width: 1080px; margin: 0 auto; align-items: start; }
.contact__info .lede { margin-top: 20px; max-width: 460px; text-wrap: balance; }
.contact__list { margin: 40px 0 0; }
.contact__list > div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.contact__list > div:last-child { border-bottom: 1px solid var(--line); }
.contact__list dt { font-size: 15px; color: var(--ink-2); line-height: 1.6; }
.contact__list dd { margin: 0; font-size: 16px; line-height: 1.6; overflow-wrap: anywhere; }
.contact__list a { transition: color var(--t-ui) var(--ease); }
.contact__list a:hover { color: var(--ink-2); }
.contact__social { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.contact__form { padding-top: 8px; }
.contact__form .wpcf7 { scroll-margin-top: calc(var(--hdr-space) + 32px); } /* CF7 posts back to #wpcf7-f6-o1: keep the form clear of the header island */
.contact__form form { display: grid; gap: 20px; }
.contact__form p { margin: 0; }
.contact__form br { display: none; }
.contact__form label { display: grid; gap: 8px; font-size: 15px; color: var(--ink-2); }
.contact__form .wpcf7-form-control-wrap { display: block; }
.contact__form :is(input[type="text"], input[type="email"], input[type="tel"], textarea) {
  display: block; width: 100%; height: 48px; padding: 0 16px; border: 1px solid transparent; border-radius: 0; background: var(--tile);
  font: inherit; font-size: 16px; color: var(--ink); -webkit-appearance: none; appearance: none; transition: border-color var(--t-ui) var(--ease); }
.contact__form textarea.wpcf7-textarea { height: 160px; padding: 12px 16px; resize: vertical; }
.contact__form :is(input, textarea):focus { outline: none; border-color: var(--ink); }
/* brief 28 a11y: a visible keyboard ring (focus only, nothing changes at rest) */
.contact__form :is(input, textarea):focus-visible { box-shadow: 0 0 0 1px var(--ink); }
.contact__form input[type="submit"]:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; box-shadow: none; }
.contact__form input[type="submit"] { justify-self: start; -webkit-appearance: none; appearance: none; border: 0; border-radius: 0; cursor: pointer;
  height: 48px; padding: 0 28px; background: var(--ink); color: #FFFFFF; font: inherit; font-size: 15px; font-weight: 500; transition: background-color var(--t-ui) var(--ease); }
.contact__form input[type="submit"]:hover { background: var(--ink-hover); }
.contact__form .wpcf7-spinner, .contact__form .screen-reader-response { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.contact__form .wpcf7-not-valid-tip { display: block; margin-top: 6px; font-size: 15px; color: var(--amber); }
.contact__form .wpcf7-response-output { margin: 0; font-size: 15px; color: var(--ink-2); }
.contact__form .wpcf7-response-output:empty { display: none; }
.contact__form .hidden-fields-container { display: none; }
@media (max-width: 900px) {
  .contact { grid-template-columns: 1fr; gap: 56px; max-width: 560px; }
}
@media (max-width: 767px) {
  .contact__list > div { grid-template-columns: 1fr; gap: 2px; }
  .contact__form input[type="submit"] { justify-self: stretch; }
}

/* FAQs: native <details> accordion; with no written answers yet, a short contact block */
.faq { position: relative; max-width: 720px; margin: 0 auto; }
.faq > .h2 { text-align: center; }
.faq__list { margin-top: 48px; }
.faq__item { border-top: 1px solid var(--line); }
.faq__item:last-child { border-bottom: 1px solid var(--line); }
.faq__item summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 0; cursor: pointer; list-style: none; font-size: 18px; line-height: 1.4; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary i { position: relative; flex: none; width: 14px; height: 14px; }
.faq__item summary i::before, .faq__item summary i::after { content: ""; position: absolute; left: 0; top: 6.5px; width: 14px; height: 1px; background: currentColor; transition: rotate var(--t-ui) var(--ease); }
.faq__item summary i::after { rotate: 90deg; }
.faq__item[open] summary i::after { rotate: 0deg; }
.faq__a { padding: 0 40px 24px 0; font-size: 16px; line-height: 1.7; color: var(--ink-2); }
.faq__more { margin-top: 56px; text-align: center; }
.faq__more .btn { margin-top: 20px; }
.faq--empty { min-height: calc(100svh - var(--hdr-space) - 96px - 120px - 112px); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.faq--empty .h2, .faq--empty .lede, .faq--empty .btn { position: relative; z-index: 2; }
.faq--empty .lede { margin-top: 20px; color: var(--ink); }
.faq--empty .lede a { transition: color var(--t-ui) var(--ease); }
.faq--empty .lede a:hover { color: var(--ink-2); }
.faq--empty .btn { margin-top: 32px; }
.p-faq-line { --w: 260px; --r: 10deg; left: calc(50% + 130px); top: calc(50% - 230px); }
@media (max-width: 767px) {
  .faq--empty { min-height: calc(100svh - var(--hdr-space) - 48px - 80px - 160px); }
  .p-faq-line { --w: 160px; left: auto; right: -30px; top: 0; }
}

/* Policies: one calm reading column (~640 px), headings from the page */
.policy { max-width: 640px; margin: 0 auto; }
.policy > .h2 { text-align: center; margin-bottom: 56px; }
.policy__body { font-size: 16px; line-height: 1.75; color: var(--ink-2); }
.policy__body :is(h2, h3, h4) { color: var(--ink); font-weight: 500; letter-spacing: -.005em; }
.policy__body h2 { font-size: 18px; line-height: 1.35; margin: 48px 0 12px; }
.policy__body :is(h3, h4) { font-size: 16px; line-height: 1.4; margin: 32px 0 8px; }
.policy__body > :first-child { margin-top: 0; }
.policy__body p { margin: 0 0 16px; }
.policy__body ul, .policy__body ol { margin: 0 0 16px; padding-left: 20px; list-style: disc; }
.policy__body li { margin: 6px 0; padding-left: 4px; }
.policy__body strong, .policy__body b { font-weight: 500; color: var(--ink); }
.policy__body a { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 767px) { .policy > .h2 { margin-bottom: 40px; } }

/* 2026-11-24 (27) About: two more image + copy rows (craft, team), alternating sides like home; 120px desktop / 80px phone between rows */
.feature--about { padding-top: 120px; }
@media (min-width: 768px) { .feature--flip .feature__media { order: 2; } }
@media (max-width: 767px) { .feature--about { padding-top: 80px; } }

/* 24 Nov (brief 27): links inside FAQ answers read as links, like the policy pages */
.faq__a a { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 767px) { .feature--story { padding-top: 80px; } } /* (27) phone rhythm: every About row 80px apart */

/* ===== 24 Nov hero swap (Akash: "use azraq for home and majd for about"): About hero = the Majd notes still (hero-notes-*),
   given the home notes treatment: left cream scrim behind the copy, same crop; desert sky band + top mask removed. ===== */
@media (min-width: 768px) {
  .hero--about { background: rgb(232, 214, 190); }
  .hero--about::after { content: ""; position: absolute; z-index: 1; inset: 0 auto 0 0; width: 58%;
    background: linear-gradient(90deg, rgba(244,238,229,.78) 0, rgba(244,238,229,.62) 55%, rgba(244,238,229,0) 100%); pointer-events: none; }
  .hero--about .hero__photo img { object-position: 50% 72%; }
}
@media (max-width: 767px) {
  .hero--about { background: linear-gradient(180deg, rgb(211,161,115), rgb(208,162,123)); }
  .hero--about .hero__photo { aspect-ratio: 912 / 1141;
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 5%, #000 82%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0, #000 5%, #000 82%, transparent 100%); }
}
/* 24 Nov hero swap, home: Azraq notes still (hero-azraq-*, 1672x1213, cap 20% down). Same scrim/phone rules as Majd via data-hero="notes";
   crop centred vertically so the cap clears the header island by >= 40px at 1440x900 and the base stays in frame. */
@media (min-width: 768px) { html[data-hero="notes"] .hero__photo img { object-position: 50% 50%; } }

/* ===== 2026-11-24 FX (Akash: "Film grain and halation on all the images for sure / Light through water / Reeded glass").
   html.fx-on is set by mk2f_head() on site2 routes unless ?fx=0. Halation is baked into the served photographs
   (*.mk2fx-*). Grain = one tiled noise layer per photograph, blended overlay, moved to a new random offset 24x a second
   with steps() on transform only (compositor, no repaint); fx.js adds .fx-g only while the box is on screen, so
   off-screen layers sit still. Not on heroes (their filmlook.py grain is baked; Akash asked for less hero grain), the
   logo, botanical cut-outs or bottle cut-outs. Canvases (fx.js) sit over the <img>, fade in after their first frame. ===== */
html.fx-on { --fx-grain: .085; }
html.fx-on .tile__media::after, html.fx-on .feature__media::after, html.fx-on .notes__media::after {
  content: ""; position: absolute; z-index: 1; top: -80px; left: -80px; right: 0; bottom: 0; pointer-events: none;
  background: url(img/fx/grain.png) 0 0 / 80px 80px repeat; mix-blend-mode: overlay; opacity: var(--fx-grain);
  animation: fx-grain 250ms infinite paused; will-change: transform; }
html.fx-on .fx-g::after { animation-play-state: running; }
@keyframes fx-grain { /* 6 frames x 41.7 ms = 24 fps; offsets are not multiples of a grain cell, so every frame is new noise */
  0% { transform: translate3d(0, 0, 0); animation-timing-function: steps(1, end); }
  16.667% { transform: translate3d(37px, 53px, 0); animation-timing-function: steps(1, end); }
  33.333% { transform: translate3d(71px, 11px, 0); animation-timing-function: steps(1, end); }
  50% { transform: translate3d(19px, 67px, 0); animation-timing-function: steps(1, end); }
  66.667% { transform: translate3d(59px, 29px, 0); animation-timing-function: steps(1, end); }
  83.333% { transform: translate3d(7px, 41px, 0); animation-timing-function: steps(1, end); }
  100% { transform: translate3d(0, 0, 0); } }
html.fx-glgrain .tile__media::after, html.fx-glgrain .feature__media::after, html.fx-glgrain .notes__media::after { display: none; } /* bench ?fxgrain=gl */
.fx-cv { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity .45s var(--ease); pointer-events: none; }
.fx-live > .fx-cv { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  html.fx-on .tile__media::after, html.fx-on .feature__media::after, html.fx-on .notes__media::after { display: none; }
  .fx-cv { display: none; }
}

/* 30 · themed PDPs (2026-11-26) ================= Verdict, Wild Intense, Miskal (docs/design/30-art-direction.md c).
   Scoped to .page[data-theme] (front-product.php renders it only for products whose meta has theme + story).
   Palette tokens arrive as inline --tp-* vars from the meta; the shell (header island, footer, tiles, .btn--cart) is untouched.
   Missing photo = .is-flat: the section is its flat palette ground with the copy centred (never a cut-out with CSS shadows). */
.page[data-theme] .tp-d { display: block; }
.page[data-theme] .tp-p { display: none; }

/* 1 · Hero: one photograph, full-bleed under the island, glass panel left on the home hero inset */
.page[data-theme] .tp-hero { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; background: var(--tp-pground); color: var(--tp-panel-ink); }
.page[data-theme] .tp-hero__photo, .page[data-theme] .tp-hero__photo img { position: absolute; inset: 0; width: 100%; height: 100%; }
.page[data-theme] .tp-hero__photo img { object-fit: cover; object-position: var(--tp-pos); }
.page[data-theme] .tp-hero__side { position: relative; z-index: 2; height: 100%; display: flex; align-items: center; padding: var(--hdr-space) var(--g) 0 calc(var(--g) + 3vw); }
.page[data-theme] .tp-hero.is-flat .tp-hero__side { justify-content: center; padding-left: var(--g); }
.page[data-theme] .tp-panel { width: min(440px, 100%); padding: 40px; background: var(--tp-glass); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  border: 1px solid var(--tp-glass-edge); color: var(--tp-panel-ink); }
.page[data-theme] .tp-panel .panel__line { color: var(--tp-panel-ink); }
.page[data-theme] .tp-panel .panel__buy { border-top-color: var(--tp-buy-rule); }

/* 2 · Story band: copy left half, life photo right half (mirrors the .notes grid); no photo = one centred column */
.page[data-theme] .tp-story { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr auto auto auto 1fr; padding: 120px 0;
  background: var(--tp-deep); color: var(--tp-story-ink); }
/* copy centred in the true left half (equal margins to the screen edge and the seam, >= the 40px gutter); 540 not 460: the authored 32px heading lines measure 474-521px */
.page[data-theme] .tp-story > :not(.tp-story__media) { grid-column: 1; justify-self: center; width: min(calc(100% - 2 * var(--g)), 540px); }
.page[data-theme] .tp-story__head { grid-row: 2; }
.page[data-theme] .tp-story__a { grid-row: 3; margin-top: 28px; }
.page[data-theme] .tp-story__b { grid-row: 4; margin-top: 16px; }
.page[data-theme] .tp-story .lede { color: var(--tp-story-ink); }
.page[data-theme] .tp-story .lede + .lede { margin-top: 16px; }
.page[data-theme] .tp-story__media { grid-column: 2; grid-row: 1 / -1; align-self: center; justify-self: center; position: relative; width: min(calc(100% - var(--g)), 560px);
  aspect-ratio: 1122 / 1402; overflow: hidden; background: var(--tp-deep); margin-right: var(--g); } /* = the mirror of the .notes photo box; also .feature__media in the markup so the FX grain layer (site2.css + fx.js) covers it */
.page[data-theme] .tp-story__media img { width: 100%; height: 100%; object-fit: cover; }
.page[data-theme] .tp-story.is-flat { grid-template-columns: 1fr; }

/* 3 · Notes: the existing section on the page ground; no photo = copy centred */
.page[data-theme] .tp-notes { background: var(--tp-ground); }
.page[data-theme] .tp-notes.is-flat { grid-template-columns: 1fr; }
.page[data-theme] .tp-notes.is-flat .notes__copy { width: min(100%, 540px); } /* same left edge as the flat story column above */
.page[data-theme] .tp-notes .notes__media { background: var(--tp-ground); }

/* 4 · Character: three quiet columns on the notes ground */
.page[data-theme] .tp-char { background: var(--tp-ground); padding: 120px var(--g); }
.page[data-theme] .tp-char__wrap { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 80px; max-width: 1120px; margin: 0 auto; align-items: start; }
.page[data-theme] .tp-char__h { font-size: 18px; font-weight: 500; line-height: 1.35; color: var(--ink); }
.page[data-theme] .tp-char__run { margin-top: 12px; font-size: 16px; line-height: 1.6; color: var(--ink-2); }

/* 5 · Statement band: centred authored lines, one hairline above */
.page[data-theme] .tp-say { background: var(--tp-deep2); color: var(--tp-ink); padding: 120px var(--g); text-align: center; }
.page[data-theme] .tp-say__rule { width: 64px; height: 1px; margin: 0 auto 40px; background: var(--tp-rule); }
.page[data-theme] .tp-say__b { font-size: 48px; font-weight: 400; line-height: 1.08; letter-spacing: -.03em; }
.page[data-theme] .tp-say__b + .tp-say__b { margin-top: 28px; }

@media (min-width: 768px) and (max-width: 1100px) { .page[data-theme] .tp-say__b { font-size: clamp(32px, 4.4vw, 48px); } }
/* story heading: 32 from 1218 up; below that, in the two-column band, a fluid version of the same step so the widest authored line (521px at 32) fits its half */
/* per product, only below the width where its widest line (V 506, W 474, M 521 px at 32) stops fitting the 50vw - 80px column */
@media (min-width: 1024px) and (max-width: 1171px) { .page[data-theme="verdict"] .tp-story:not(.is-flat) .tp-story__head { font-size: min(32px, calc(3.15vw - 5.2px)); } }
@media (min-width: 1024px) and (max-width: 1107px) { .page[data-theme="wild-intense"] .tp-story:not(.is-flat) .tp-story__head { font-size: min(32px, calc(3.36vw - 5.5px)); } }
@media (min-width: 1024px) and (max-width: 1217px) { .page[data-theme="miskal"] .tp-story:not(.is-flat) .tp-story__head { font-size: min(32px, calc(3.05vw - 5px)); } }
/* 768-1023: the story band stacks in one centred column (head, paragraphs, photo, paragraphs), as on the phone */
@media (max-width: 1023px) {
  .page[data-theme] .tp-story { display: block; }
  .page[data-theme] .tp-story > :not(.tp-story__media) { margin-left: auto; margin-right: auto; }
  .page[data-theme] .tp-story__media { width: min(calc(100% - 2 * var(--g)), 560px); margin: 40px auto 0; }
  .page[data-theme] .tp-story__b { margin-top: 40px; }
  .page[data-theme] .tp-story.is-flat .tp-story__b { margin-top: 16px; }
}
@media (max-width: 1023px) { .page[data-theme] .tp-char__wrap { gap: 0 40px; } }
/* 768-1023 (portrait tablets): a narrower panel with the phone's stacked buy row, so it stays clear of the bottle at x >= 56 % */
@media (min-width: 768px) and (max-width: 1023px) {
  .page[data-theme] .tp-panel { width: min(440px, 40vw); }
  .page[data-theme] .tp-panel .panel__buy { flex-direction: column; align-items: stretch; gap: 14px; }
  .page[data-theme] .tp-panel .btn--cart { width: 100%; min-width: 0; }
}

/* Phone: photo crop first, panel BELOW it on the photo's bottom-edge ground; story head, paragraphs, photo, paragraphs */
@media (max-width: 767px) {
  .page[data-theme] .tp-d { display: none; }
  .page[data-theme] .tp-p { display: block; }
  .page[data-theme] .tp-hero { height: auto; min-height: 0; padding-top: var(--hdr-space); }
  .page[data-theme] .tp-hero__photo { position: relative; display: block; inset: auto; height: auto; aspect-ratio: 4 / 5;
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 5%, #000 95%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0, #000 5%, #000 95%, transparent 100%); }
  .page[data-theme] .tp-hero__side, .page[data-theme] .tp-hero.is-flat .tp-hero__side { display: block; height: auto; padding: 0; }
  .page[data-theme] .tp-panel { width: 100%; padding: 24px var(--g) 56px; background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; border: 0; }
  .page[data-theme] .tp-hero.is-flat .tp-panel { padding-top: 40px; }
  .page[data-theme] .tp-story { padding: 80px var(--g); }
  .page[data-theme] .tp-story > :not(.tp-story__media) { width: 100%; }
  .page[data-theme] .tp-story__media { width: 100%; }
  .page[data-theme] .tp-char { padding: 80px var(--g); }
  .page[data-theme] .tp-char__wrap { grid-template-columns: 1fr; gap: 40px; }
  .page[data-theme] .tp-say { padding: 80px var(--g); }
  .page[data-theme] .tp-say__b { font-size: 26px; }
}

/* 31 · unified PDP (2026-11-26) ================= all seven products on one template (docs/design/31-unified-pdp.md).
   front-product.php renders: hero (photo .tp-hero, or the legacy cut-out .pdp until hero/hero-<k>-wide.jpg exists),
   .tp-tri (notes triptych), .tp-glass (full-bleed photo + one frosted panel), .more. The 30 story / notes / char / say
   rules above stay in the file but no longer match anything (their markup is gone); the 30 hero rules are kept.
   Palette tokens arrive as inline --tp-* vars. Radius 0 throughout; type 32 / 18 / 16 (+ shell 48 / 15 / 14). */

/* 2 · Notes triptych: family h2 centred, three 4:5 photographs, captions left-aligned to each tile */
.page[data-theme] .tp-tri { background: var(--tp-tri); color: var(--tp-tri-ink); padding: 120px var(--g); }
.page[data-theme] .tp-tri__head { max-width: 760px; }
.page[data-theme] .tp-tri .h2 { color: var(--tp-tri-ink); }
.page[data-theme] .tp-tri__list { margin: 12px auto 0; max-width: 640px; font-size: 16px; line-height: 1.6; color: var(--tp-tri-ink2); }
.page[data-theme] .tp-tri__row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; max-width: 1680px; margin: 40px auto 0; align-items: start; }
.page[data-theme] .tp-tri__tile { margin: 0; min-width: 0; }
.page[data-theme] .tp-tri__media { position: relative; z-index: auto; width: 100%; margin: 0; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 0;
  background: var(--tp-tile-flat); justify-self: stretch; } /* also .feature__media in the markup = the FX grain layer covers it */
.page[data-theme] .tp-tri__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.page[data-theme] .tp-tri__cap { margin-top: 16px; text-align: left; }
.page[data-theme] .tp-tri__h { font-size: 18px; font-weight: 500; line-height: 1.35; color: var(--tp-tri-ink); }
.page[data-theme] .tp-tri__line { margin-top: 8px; font-size: 16px; line-height: 1.5; color: var(--tp-tri-ink2); }
.page[data-theme] .tp-tri__n { display: none; }
html.js .page[data-theme] .tp-tri__tile.rv { transition-duration: 700ms; }
html.js .page[data-theme] .tp-tri__tile.rv:nth-child(2) { transition-delay: 80ms; }
html.js .page[data-theme] .tp-tri__tile.rv:nth-child(3) { transition-delay: 160ms; }

/* 3 · Character: flat fallback first (no wide photo): a flat3 band, content centred in a 520 column, no glass */
.page[data-theme] .tp-glass { position: relative; background: var(--tp-flat3); color: var(--tp-glass3-ink); overflow: hidden; }
.page[data-theme] .tp-glass__photo { display: none; }
.page[data-theme] .tp-glass__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.page[data-theme] .tp-glass__panel { position: relative; z-index: 1; padding: 120px var(--g); border-radius: 0; }
.page[data-theme] .tp-glass__in { max-width: 520px; margin: 0 auto; text-align: center; }
.page[data-theme] .tp-glass__say { color: var(--tp-glass3-ink); }
.page[data-theme] .tp-glass__gs { margin-top: 40px; }
.page[data-theme] .tp-glass__g + .tp-glass__g { margin-top: 28px; }
.page[data-theme] .tp-glass__h { font-size: 18px; font-weight: 500; line-height: 1.35; color: var(--tp-glass3-ink); }
.page[data-theme] .tp-glass__run { margin-top: 8px; font-size: 16px; line-height: 1.6; color: var(--tp-glass3-ink2); }
html.js .page[data-theme] .tp-glass__in.rv { transition-duration: 700ms; }
html.js .page[data-theme] .tp-glass__in.rv:not(.is-in) { transform: translateY(16px); }

/* >= 1024 with the wide photo: full-bleed photo, ONE full-height frosted panel on the right, sharp left edge */
@media (min-width: 1024px) {
  .page[data-theme] .tp-glass.has-w { height: clamp(640px, 100vh, 66.667vw); height: clamp(640px, 100svh, 66.667vw); background: var(--tp-pground3); }
  .page[data-theme] .tp-glass.has-w .tp-glass__photo { display: block; position: absolute; inset: 0; }
  .page[data-theme] .tp-glass.has-w .tp-glass__photo img { object-position: 30% 50%; }
  .page[data-theme] .tp-glass.has-w .tp-glass__panel { position: absolute; top: 0; right: 0; bottom: 0; width: clamp(488px, 40vw, 600px); padding: 0 clamp(48px, calc(48px + (100vw - 1280px) * .1), 64px);
    /* 576 / 64 at 1440 as spec; floor 488 / 48 (spec 440 / 64) so the widest authored line (Amirah 387 px at 32) keeps its 32 px in a >= 392 column; clearance at 1024 stays >= 40 */
    display: flex; align-items: center; background: var(--tp-glass3); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
    border-left: 1px solid var(--tp-glass3-edge); }
  .page[data-theme] .tp-glass.has-w .tp-glass__in { width: 100%; max-width: 420px; margin: 0; text-align: left; }
}
/* 768-1023 with the wide photo: the photo whole at 3:2, the panel overlaps its bottom 12 % and continues on pground3 */
@media (min-width: 768px) and (max-width: 1023px) {
  .page[data-theme] .tp-tri { padding: 96px var(--g); }
  .page[data-theme] .tp-tri__row { gap: 12px; }
  .page[data-theme] .tp-glass.has-w { background: var(--tp-pground3); }
  .page[data-theme] .tp-glass.has-w .tp-glass__photo { display: block; aspect-ratio: 3 / 2; }
  .page[data-theme] .tp-glass.has-w .tp-glass__panel { margin-top: -8%; padding: 40px 40px 56px; background: var(--tp-glass3);
    -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); border-top: 1px solid var(--tp-glass3-edge); } /* -8 % of the width = 12 % of the 3:2 photo */
  .page[data-theme] .tp-glass.has-w .tp-glass__in { max-width: none; text-align: left; }
  .page[data-theme] .tp-glass.has-w .tp-glass__gs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; align-items: start; }
  .page[data-theme] .tp-glass.has-w .tp-glass__g + .tp-glass__g { margin-top: 0; }
}
/* Phone: triptych = native scroll-snap row (78 % tiles, the next one peeks) + counter; s3 = 4:5 photo, glass panel over its bottom 12 % */
@media (max-width: 767px) {
  .page[data-theme] .tp-tri { padding: 80px 0; }
  .page[data-theme] .tp-tri__head { padding: 0 var(--g); }
  .page[data-theme] .tp-tri__row { display: flex; gap: 12px; margin-top: 32px; padding: 0 0 0 var(--g); overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding: 0 var(--g); -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .page[data-theme] .tp-tri__row::-webkit-scrollbar { display: none; }
  .page[data-theme] .tp-tri__row::after { content: ''; flex: 0 0 calc(var(--g) - 12px); } /* end gutter = 20 in every engine (scroll containers drop end padding in some) */
  .page[data-theme] .tp-tri__tile { flex: 0 0 78vw; scroll-snap-align: start; } /* 78 % of the screen: 304 x 380 at 390 */
  .page[data-theme] .tp-tri__n { display: block; margin: 20px var(--g) 0; text-align: right; font-size: 15px; line-height: 1.35; color: var(--tp-tri-ink2); font-variant-numeric: tabular-nums; }
  .page[data-theme] .tp-glass__panel { padding: 80px var(--g); }
  .page[data-theme] .tp-glass.has-p { background: var(--tp-pground3); }
  .page[data-theme] .tp-glass.has-p .tp-glass__photo { display: block; aspect-ratio: 4 / 5; }
  .page[data-theme] .tp-glass.is-crop .tp-glass__photo img { object-position: 26% 50%; }
  .page[data-theme] .tp-glass.has-p .tp-glass__panel { margin-top: -15%; padding: 24px var(--g) 56px; background: var(--tp-glass3);
    -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); border-top: 1px solid var(--tp-glass3-edge); } /* -15 % of the width = 12 % of the 4:5 photo */
  .page[data-theme] .tp-glass.has-p .tp-glass__in { max-width: none; text-align: left; }
  .page[data-theme] .tp-glass.has-p .tp-glass__g + .tp-glass__g { margin-top: 24px; }
}
/* 31: the legacy cut-out hero's botanicals (older four, until their hero photo lands) used to run into the white notes section; the triptych band now covers them */
.page[data-theme] .tp-tri, .page[data-theme] .tp-glass { position: relative; z-index: 3; }
/* 31: legacy cut-out hero (older four, until their photo lands): the 15px notes line sat at 3.8-4.5:1 over the botanical behind the phone glass; one step darker ink = >= 4.5 */
.page[data-theme] .pdp .panel__notes { color: #47423C; }
/* 31c · s3 prop clearance at narrow desktop (2026-11-26): approved photos' props reach ~55%; shift the photo left below 1190 */
@media (min-width: 1024px) and (max-width: 1189px) {
  .page[data-theme] .tp-glass.has-w .tp-glass__photo { left: -16%; right: auto; width: 116%; }
}
