/* ===== Design tokens ===== */
/*
 * Design tokens — change colors, fonts and key sizes here.
 * Sizes are tuned for a 1440px desktop layout.
 */
:root {
  /* Fonts */
  --font-display: 'Manrope', 'Helvetica Neue', Arial, sans-serif;
  --font-display-weight: 400;
  --font-wordmark-weight: 300; /* oversized brand words (hero, footer) */
  /* Normalises cap height so the sizes below stay consistent across fonts.
     Set to "none" if you switch to a font that should render at its natural size. */
  --font-display-adjust: cap-height 0.6;
  --font-body: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  /* Accent = upright display face. Corporate system: no italics anywhere —
     emphasis comes from weight and tone, never slant or a second family. */
  --font-accent: var(--font-display);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: clamp(20px, 4vw, 60px);

  /* Core colors — light theme: warm ivory paper, sand surfaces, warm ink */
  --color-paper: #ffffff; /* page base */
  --color-black: #1c1915; /* deepest ink, kept for rare accents */
  --color-white: #fff;
  --color-ink: #1c1915; /* body/headline ink — warm near-black */
  --color-nav-text: #1c1915;
  --color-button-bg: #1c1915;
  --color-button-bg-hover: #3a342c;
  --color-button-text: #ffffff;
  --color-button-icon: #ffffff;
  --color-divider: rgba(28, 25, 21, 0.12);
  --color-ink-soft: rgba(28, 25, 21, 0.68);
  --color-focus: #8a6a3f; /* bronze ring, matches the accent highlight */

  /* Warm neutral tones */
  --tone-900: #1c1915;
  --tone-800: #e9e1d5;
  --tone-600: #3a342c;
  --tone-400: #9c9285;
  --tone-ink: #1c1915;
  --tone-light: #ffffff;
  --tone-lighter: #ffffff;
  --tone-50: #ffffff;

  /* Section backgrounds — alternate paper / sand for rhythm */
  --surface-sand: #ffffff;
  --hero-bg: #ffffff;
  --about-bg: #ffffff;
  --surface-soft-bg: #ffffff;
  --surface-deep-bg: #ffffff;
  --footer-bg: #1c1915; /* warm ink — the site's one dark closing surface */

  /* Gradient headline fills (applied with background-clip: text) */
  /* Gradient text sits over a faint base tint */
  --grad-base-hero: rgba(28, 25, 21, 0.14);
  --grad-hero: linear-gradient(180deg, #1c1915 0%, #2b2620 35%, rgba(28, 25, 21, 0.55) 75%, rgba(28, 25, 21, 0.18) 100%);

  /* Footer (ivory on warm ink) */
  --footer-heading: rgba(246, 242, 236, 0.5);
  --footer-link: rgba(246, 242, 236, 0.62);
  --footer-link-active: #f6f2ec;
  --footer-note: rgba(246, 242, 236, 0.78);
  --footer-copyright: rgba(246, 242, 236, 0.5);
  --footer-accent: #c9a774; /* champagne bronze that holds contrast on ink */

  /* Slider controls */
  --slider-gap: 10px;
    --slider-arrow-bg-hover: rgba(0, 0, 0, 0.7);
  --slider-dot: rgba(0, 0, 0, 0.2);
  --slider-dot-active: #111111;

  /* Type scale (desktop) */
  --display-xl: 176px; /* hero / section wordmarks */
  --display-tracking: -0.025em;
  --display-leading: 0.92;

  /* Fluid type scale (~1.25 ratio) — every heading on the site maps to one step.
     Min = 375px phone, max = 1440px desktop. */
  --fs-display: clamp(34px, 4.6vw + 16px, 84px); /* page hero titles */
  --fs-h1: clamp(30px, 3.2vw + 13px, 60px); /* section statements */
  --fs-h2: clamp(27px, 2.4vw + 11px, 46px); /* section headings */
  --fs-h3: clamp(23px, 1.4vw + 16px, 36px); /* sub-section headings */
  --fs-h4: clamp(19px, 0.9vw + 14px, 27px); /* card titles, stats */
  --fs-h5: clamp(17px, 1.3vw, 19px); /* small titles */
  --fs-lede: clamp(16px, 1.15vw, 17px); /* intro paragraphs */

  /* Legacy aliases */
  --about-size: var(--fs-h1);
  --h2-size: var(--fs-h2);
  --lede-size: var(--fs-lede);

  /* Fluid spacing scale (8pt grid) */
  --space-xs: clamp(20px, 2vw, 28px);
  --space-sm: clamp(24px, 2.6vw, 36px);
  --space-md: clamp(32px, 3.6vw, 48px);
  --space-lg: clamp(32px, 3.8vw, 52px);
  --space-xl: clamp(32px, 3.6vw, 56px);    /* heading → content */
  --space-2xl: clamp(40px, 4.6vw, 64px);    /* column gaps, large breaks */
  --space-section: clamp(32px, 3.8vw, 56px); /* section top/bottom */

  /* Label scale — never below 11px, restrained tracking */
  --label-size: 12px;
  --label-tracking: 0.1em;
  --accent-ink: #8a6a3f; /* antique bronze highlight — 5:1 on white, AA at any size */
  --accent-ink-inverse: #c9a774; /* champagne bronze for dark surfaces — 7.7:1 on ink */

  /* Section heights */
  --h-hero: 1400px;

  --nav-height: 80px;
  --nav-pad: var(--gutter);
}

/* Tablet */
@media (max-width: 1199px) {
  :root {
    --display-xl: 120px;
  }
}

/* Mobile */
@media (max-width: 809px) {
  :root {
    --nav-pad: 24px;
  }
}

/* ===== Base ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-synthesis: none; /* never fake an italic or bold */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

::selection {
  background: #1c1915;
  color: #fff;
}

body {
  margin: 0;
  background: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
  font-feature-settings: 'cv11', 'ss01';
  overflow-x: hidden;
}

img {
  display: block;
  max-width: none;
  user-select: none;
  -webkit-user-drag: none;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
p {
  margin: 0;
  font-weight: 400;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.section {
  position: relative;
  width: 100%;
  overflow: hidden;
}

/* Display type (all-caps thin face) */
.display {
  font-family: var(--font-display);
  font-weight: var(--font-display-weight);
  font-size-adjust: var(--font-display-adjust);
  text-transform: uppercase;
  letter-spacing: var(--display-tracking);
  line-height: var(--display-leading);
  white-space: nowrap;
}

/* Gradient-filled text */
.gradient-text {
  background-image: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* Scroll-effect targets get GPU layers */
[data-fx] {
  will-change: translate, scale;
}

em,
i {
  font-style: normal;
}

/* Headline accent: same face, upright, lighter tone */
em {
  font-family: inherit;
  font-weight: inherit;
  font-size: 1em;
  letter-spacing: inherit;
}

/* In running copy, emphasis is a weight change only */
.hero__lede em,
.about__text em,
.occasions__lede em,
.gift__text em {
  font-family: inherit;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0;
}

:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 200;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  background: var(--color-button-bg);
  color: var(--color-button-text);
  font-size: 14px;
  translate: 0 -200%;
  transition: translate 0.3s var(--ease-out);
}
.skip-link:focus {
  translate: 0 0;
}

/* Small uppercase label that introduces a block */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-body);
  font-size: var(--label-size);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: var(--label-tracking);
  text-transform: uppercase;
  color: var(--color-ink);
}
.eyebrow--ink {
  color: var(--tone-ink);
}

/* Text link with a drawn underline */
.link-underline {
  position: relative;
  padding: 6px 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.link-underline::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 1px;
  background: currentColor;
  transform-origin: right;
  transition: transform 0.5s var(--ease-out);
}
.link-underline:hover::after {
  transform: scaleX(0);
}

/* Fine film grain over everything for a printed, tactile finish */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0; /* grain off — keeps the page pure white; set to 0.05 to restore */
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  [data-fx] {
    translate: none !important;
    scale: none !important;
  }
}

/* Breadcrumb (sub-page heroes, on dark) */
.crumbs {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: var(--space-md);
  font-size: var(--label-size);
  font-weight: 600;
  letter-spacing: var(--label-tracking);
  text-transform: uppercase;
  color: rgba(28, 25, 21, 0.7);
}
.crumbs a {
  transition: color 0.2s ease;
}
.crumbs a:hover {
  color: var(--color-ink);
}
.crumbs i {
  width: 24px;
  height: 1px;
  background: currentColor;
}
.crumbs span {
  color: var(--color-ink);
}

/* ===== Buttons ===== */
.button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 44px;
  padding: 0 16px 0 20px;
  background: var(--color-button-bg);
  color: var(--color-button-text);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: 0;
  white-space: nowrap;
  transition: background-color 0.25s ease, box-shadow 0.4s var(--ease-out);
}

.button:hover {
  background: var(--color-button-bg-hover);
  box-shadow: 0 12px 32px -14px rgba(60, 45, 28, 0.45);
}

.button--lg {
  height: 56px;
  padding: 0 22px 0 28px;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.button__icon {
  color: var(--color-button-icon);
  transition: transform 0.25s ease;
}

.button:hover .button__icon {
  transform: translate(1px, -1px);
}

/* ===== Navigation ===== */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  color: var(--color-nav-text);
  transition: translate 0.6s var(--ease-out);
}

.nav.is-hidden {
  translate: 0 -100%;
}

.nav__bar {
  display: flex;
  align-items: center;
  height: var(--nav-height);
  padding: 0 var(--nav-pad);
  border-bottom: 1px solid var(--color-divider);
  /* Frosted ivory so ink links stay legible over imagery (e.g. the hero rocks) */
  background: rgba(255, 255, 255, 0.78);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  transition: height 0.5s var(--ease-out), background-color 0.5s ease;
}

.nav.is-scrolled .nav__bar {
  height: 64px;
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
}

.nav__logo {
  display: flex;
  align-items: center;
  margin-right: auto;
  transition: opacity 0.3s ease;
}

.nav__logo:hover {
  opacity: 0.8;
}

.nav__logo img {
  display: block;
  height: 46px;
  width: auto;
  /* White artwork rendered in warm ink for the light theme */
  filter: brightness(0) invert(9%) sepia(18%);
  transition: height 0.5s var(--ease-out);
}

.nav.is-scrolled .nav__logo img {
  height: 38px;
}

.nav__links {
  display: flex;
  gap: 40px;
  margin-right: 40px;
}

.nav__links a,
.nav__menu a:not(.button) {
  position: relative;
  font-size: 14px;
  font-weight: 500;
  line-height: 24px;
  letter-spacing: 0.01em;
  transition: opacity 0.2s ease;
}

.nav__links a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-out);
}

.nav__links a:hover::after {
  transform: scaleX(1);
}

.nav__menu a:not(.button):hover {
  opacity: 0.6;
}

.nav__toggle,
.nav__menu {
  display: none;
}

@media (max-width: 809px) {
  .nav__links {
    display: none;
  }

  /* Logo left; CTA + menu toggle grouped under the right thumb */
  .nav__bar {
    position: relative;
    z-index: 2;
    gap: 8px;
    padding: 0 max(16px, env(safe-area-inset-right)) 0 max(20px, env(safe-area-inset-left));
  }

  .nav__logo {
    margin-right: auto;
  }

  .nav__logo img,
  .nav.is-scrolled .nav__logo img {
    height: 36px;
  }

  .nav__cta {
    order: 2;
    height: 38px;
    padding: 0 10px 0 14px;
    font-size: 14px;
    transition: opacity 0.3s ease, visibility 0.3s, background-color 0.25s ease;
  }

  .nav.is-open .nav__cta {
    opacity: 0;
    visibility: hidden;
  }

  .button--lg {
    padding: 0 20px 0 24px;
    letter-spacing: 0.06em;
  }

  .nav__toggle {
    order: 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    margin-right: -10px;
    padding: 0 11px;
  }

  .nav__toggle span {
    display: block;
    height: 1.5px;
    background: currentColor;
    transition: transform 0.45s var(--ease-out), opacity 0.3s ease;
  }

  .nav.is-open .nav__toggle span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
  }
  .nav.is-open .nav__toggle span:nth-child(2) {
    opacity: 0;
  }
  .nav.is-open .nav__toggle span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
  }

  .nav.is-open .nav__bar {
    background: var(--color-paper);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  /* Full-screen sheet: big display links up top, action + contact at thumb height */
  .nav__menu:not([hidden]) {
    position: fixed;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 40px;
    height: 100dvh;
    padding: calc(var(--nav-height) + 20px) 20px max(28px, env(safe-area-inset-bottom));
    overflow-y: auto;
    overscroll-behavior: contain;
    background: radial-gradient(120% 60% at 50% 0%, #ffffff 0%, var(--color-paper) 70%);
    animation: menu-in 0.5s var(--ease-out) both;
  }

  .nav__menu-links {
    display: flex;
    flex-direction: column;
  }

  .nav__menu .nav__menu-links a {
    display: flex;
    align-items: baseline;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--color-divider);
    font-family: var(--font-display);
    font-size: clamp(30px, 9vw, 40px);
    font-size-adjust: var(--font-display-adjust);
    font-weight: 300;
    line-height: 1.1;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: rgba(28, 25, 21, 0.92);
    animation: menu-item-in 0.7s var(--ease-out) both;
  }
  .nav__menu-links a:nth-child(2) { animation-delay: 0.05s; }
  .nav__menu-links a:nth-child(3) { animation-delay: 0.1s; }
  .nav__menu-links a:nth-child(4) { animation-delay: 0.15s; }

  .nav__menu .nav__menu-links a.is-active {
    color: var(--tone-400);
  }

  .nav__menu-links small {
    min-width: 22px;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: rgba(28, 25, 21, 0.6);
  }

  .nav__menu-foot {
    display: grid;
    gap: 24px;
    animation: menu-item-in 0.7s 0.2s var(--ease-out) both;
  }

  .nav__menu-foot .button {
    justify-content: space-between;
    width: 100%;
    height: 56px;
  }

  .nav__menu-contact {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 4px 16px;
  }

  .nav__menu .nav__menu-contact a {
    padding: 10px 0;
    font-size: 14px;
    color: rgba(28, 25, 21, 0.7);
  }

  html.is-menu-open,
  html.is-menu-open body {
    overflow: hidden;
  }
}

@keyframes menu-in {
  from { opacity: 0; }
}
@keyframes menu-item-in {
  from { opacity: 0; translate: 0 16px; }
}

/* ===== Hero ===== */
.hero {
  height: var(--h-hero);
  background: var(--hero-bg);
}

.hero__title {
  font-weight: var(--font-wordmark-weight);
  position: absolute;
  z-index: 1; /* sits behind the bottle as it scrolls down over it */
  top: 456px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: min(var(--display-xl), 14vw);
  line-height: 0.9;
  color: var(--grad-base-hero);
}

/* Brand wordmark (images/wordmark.svg, outlined from the logo file) used as a
 * mask so it keeps the hero gradient. Width is in em so the existing
 * font-size tokens and breakpoints still drive its size. */
.hero__wordmark {
  display: block;
  width: 5.5em;
  aspect-ratio: 109.239 / 8.561;
  margin: 0.23em auto;
  background: var(--grad-hero);
  -webkit-mask: url('../images/wordmark.svg') center / contain no-repeat;
  mask: url('../images/wordmark.svg') center / contain no-repeat;
}

.hero__eyebrow {
  margin-bottom: -12px;
}
.hero__eyebrow i {
  width: 48px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}

.hero__intro {
  position: absolute;
  z-index: 2;
  top: 1210px;
  left: 0;
  right: 0;
  margin-left: auto;
  margin-right: auto;
  width: min(560px, calc(100% - 48px));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  text-align: center;
  color: var(--color-ink);
}

.hero__lede {
  font-size: var(--fs-lede);
  font-weight: 400;
  line-height: 1.6;
  color: rgba(28, 25, 21, 0.82);
}
.hero__lede em {
  color: var(--color-ink);
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 32px;
}

.hero__bottle {
  position: absolute;
  z-index: 3; /* in front of the wordmark */
  top: 729px;
  left: 50%;
  width: 240px;
  height: 448px;
  margin-left: -120px;
  object-fit: contain;
}

/* --- Cave reveal --------------------------------------------------------
 * --reveal goes 0 → 1 as the hero scrolls (set by js/main.js).
 * `overflow: clip` (not hidden) keeps the sticky layer working. */
.hero {
  overflow: clip;
  --reveal: 0;
  --reveal-eased: 0.55; /* matches START in js/main.js */
}

.hero__reveal {
  position: sticky;
  z-index: 10;
  top: 0;
  height: 100vh;
  height: 100svh;
  pointer-events: none;
}

/* Soft fade into the next section instead of a hard edge */
.hero::after {
  content: '';
  position: absolute;
  z-index: 11;
  left: 0;
  right: 0;
  bottom: 0;
  height: 180px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), #ffffff);
  pointer-events: none;
}

/* Warm shade inside the cave that lifts to light as the rocks part */
.hero__reveal::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(40% 60% at 50% 55%, rgba(120, 92, 60, 0) 0%, rgba(92, 70, 46, 0.38) 100%);
  opacity: calc(1 - var(--reveal-eased));
}

.hero__rock {
  position: absolute;
  top: 0;
  bottom: 0;
  width: var(--rock-w, 62vw);
  will-change: translate, scale;
  /* Warm the basalt towards espresso so it matches the ink palette */
  filter: contrast(0.86) brightness(1.3) sepia(0.32);
}

.hero__rock img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: rock-settle 2.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero__rock--left {
  left: 0;
  transform-origin: left center;
  translate: calc(var(--rock-crack, 0vw) + var(--reveal-eased) * var(--rock-travel, -52vw)) 0;
  scale: calc(1.12 - var(--reveal-eased) * 0.12);
}
.hero__rock--left img {
  object-position: right center;
  --settle-from: 6vw;
}

.hero__rock--right {
  right: 0;
  transform-origin: right center;
  translate: calc((var(--rock-crack, 0vw) + var(--reveal-eased) * var(--rock-travel, -52vw)) * -1) 0;
  scale: calc(1.12 - var(--reveal-eased) * 0.12);
}
.hero__rock--right img {
  object-position: left center;
  --settle-from: -6vw;
}

/* On load the rocks drift a touch apart, leaving a sliver of light */
@keyframes rock-settle {
  from {
    translate: var(--settle-from) 0;
    filter: brightness(0.7);
  }
}

.hero__hint {
  position: absolute;
  left: 50%;
  bottom: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  translate: -50% 0;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  white-space: nowrap;
  text-transform: uppercase;
  color: var(--color-ink);
  opacity: calc(1 - var(--reveal) * 5);
  animation: hint-in 1.2s 1s ease-out both;
}

.hero__hint i {
  position: relative;
  width: 1px;
  height: 56px;
  overflow: hidden;
  background: rgba(28, 25, 21, 0.2);
}
.hero__hint i::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, var(--color-ink));
  animation: hint-line 1.8s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

@keyframes hint-in {
  from { opacity: 0; translate: -50% 12px; }
}
@keyframes hint-line {
  from { translate: 0 -100%; }
  to { translate: 0 100%; }
}

/* Hero content emerges from the dark as the rocks open */
.hero[data-reveal] .hero__title,
.hero[data-reveal] .hero__intro,
.hero[data-reveal] .hero__bottle {
  opacity: calc(0.15 + var(--reveal-eased) * 0.85);
  filter: blur(calc((1 - var(--reveal-eased)) * 8px));
}
.hero[data-reveal] .hero__bottle {
  filter: blur(calc((1 - var(--reveal-eased)) * 8px))
    drop-shadow(0 calc(var(--reveal-eased) * 40px) calc(var(--reveal-eased) * 50px) rgba(28, 25, 21, 0.16));
}

@media (max-width: 809px) {
  /* Rocks clear the screen completely so no fragments sit over the copy */
  .hero__rock {
    --rock-w: 80vw;
    --rock-travel: -86vw;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero {
    --reveal: 1;
    --reveal-eased: 1;
  }
  .hero__rock img,
  .hero__hint,
  .hero__hint i::after {
    animation: none;
  }
}

@media (max-width: 1199px) {
  .hero__title {
    top: 460px;
  }
}

@media (max-width: 809px) {
  .hero__title {
    top: 400px;
  }
}

/* ===== About ===== */
.about {
  padding: var(--space-section) var(--gutter);
  background: var(--about-bg);
}

.about__inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  align-items: center;
  gap: var(--space-2xl);
  max-width: 1320px;
  margin: 0 auto;
}

/* --- Copy --- */
.about__copy {
  position: relative;
  z-index: 2;
}

.about__copy .eyebrow {
  margin-bottom: var(--space-sm);
}
.about__rule {
  display: block;
  width: 40px;
  height: 1px;
  background: currentColor;
}

/* Three stacked lines, one face, flush left; the connecting words step back in tone only */
.about__title {
  display: grid;
  justify-items: start;
  margin: 0;
  font-size: var(--fs-h1);
  line-height: 0.98;
  letter-spacing: -0.02em;
  color: var(--color-ink);
}
.about__title .display {
  font-size: 1em;
  line-height: inherit;
  letter-spacing: inherit;
}
.about__title em {
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: var(--font-display-weight);
  font-size-adjust: var(--font-display-adjust);
  text-transform: uppercase;
  color: var(--accent-ink);
}

.about__text {
  max-width: 460px;
  margin: var(--space-sm) 0 0;
  font-weight: 400;
  font-size: var(--fs-lede);
  line-height: 1.65;
  color: var(--color-ink-soft);
}
.about__text em {
  color: var(--color-ink);
}

.about__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 500px;
  margin: var(--space-md) 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(0, 0, 0, 0.14);
  border-bottom: 1px solid rgba(0, 0, 0, 0.14);
}
.about__facts li {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 16px 22px 0;
}
.about__facts li + li {
  padding-left: 20px;
  border-left: 1px solid rgba(0, 0, 0, 0.14);
}
.about__facts strong {
  font-family: var(--font-display);
  font-weight: var(--font-display-weight);
  font-size-adjust: var(--font-display-adjust);
  font-size: var(--fs-h4);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--color-ink);
}
.about__facts span {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-ink-soft);
}

.about__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 32px;
  margin-top: var(--space-md);
}
/* Dark button so the CTA holds contrast on the light background */
.about__button {
  background: var(--color-ink);
  color: var(--color-white);
}
.about__button .button__icon {
  color: var(--tone-lighter);
}
.about__button:hover {
  background: var(--tone-600);
  box-shadow: 0 14px 40px -12px rgba(0, 0, 0, 0.6);
}
.about__actions .link-underline {
  color: var(--color-ink);
}

/* --- Media --- */
.about__media {
  position: relative;
  padding: 0 0 12% 14%;
}

.about__media figure {
  margin: 0;
  overflow: hidden;
}
.about__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Arched frame echoes a perfume bottle shoulder */
.about__frame {
  aspect-ratio: 4 / 5;
  border-radius: 999px 999px 4px 4px;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.45);
}
.about__frame img {
  object-position: 60% center;
  transition: scale 1.4s var(--ease-out);
}
.about__media:hover .about__frame img {
  scale: 1.04;
}

/* Slider: stacked slides crossfade; the active one drifts in with a slow zoom */
.about__frame[data-slider] {
  position: relative;
  touch-action: pan-y;
}
.about__frame .about__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  object-position: center;
  transition: opacity 0.8s ease, scale 1.4s var(--ease-out);
}
.about__frame .about__slide.is-active {
  z-index: 1;
  opacity: 1;
  animation: about-drift 3s var(--ease-out) both;
}

@keyframes about-drift {
  from {
    transform: scale(1.08);
  }
  to {
    transform: scale(1);
  }
}

/* Controls sit in the gutter right of the inset photo */
.about__controls {
  position: absolute;
  right: 0;
  bottom: 0;
  left: calc(38% + 28px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.about__dots {
  display: flex;
  gap: 2px;
}
.about__dots button {
  position: relative;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  transition: width 0.5s var(--ease-out);
}
.about__dots button::before {
  content: '';
  width: 8px;
  height: 2px;
  background: var(--slider-dot);
  transition: width 0.5s var(--ease-out), background-color 0.3s ease;
}
.about__dots button:hover::before {
  background: rgba(28, 25, 21, 0.45);
}
/* Active dot stretches into a bar; its fill doubles as the autoplay timer */
.about__dots button[aria-current='true'] {
  width: 44px;
}
.about__dots button[aria-current='true']::before {
  width: 36px;
  background: var(--slider-dot);
}
.about__dots button[aria-current='true']::after {
  content: '';
  position: absolute;
  width: 36px;
  height: 2px;
  background: var(--color-ink);
  transform-origin: left;
  animation: about-timer var(--slide-time, 2s) linear both;
}
[data-slider-controls].is-paused .about__dots button::after {
  animation-play-state: paused;
}
[data-slider-controls].is-static .about__dots button::after {
  animation: none;
}

@keyframes about-timer {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

.about__arrows {
  display: flex;
  gap: 8px;
}
.about__arrow {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--color-divider);
  border-radius: 50%;
  color: var(--color-ink);
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.about__arrow:hover {
  border-color: var(--color-ink);
  background: var(--color-ink);
  color: var(--color-white);
}

.about__inset {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 38%;
  aspect-ratio: 3 / 4;
  border: 8px solid var(--tone-50);
  border-radius: 4px;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.5);
}

.about__seal {
  position: absolute;
  top: 8%;
  left: 2%;
  display: grid;
  place-items: center;
  width: clamp(104px, 10vw, 136px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--color-ink);
  color: var(--tone-lighter);
}
.about__seal svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  animation: about-spin 24s linear infinite;
}
.about__seal text {
  font-family: var(--font-body);
  font-size: 9.4px;
  font-weight: 600;
  letter-spacing: 0.145em; /* full ring fits the 289-unit path without clipping */
  text-transform: uppercase;
  fill: currentColor;
}
.about__seal .about__seal-logo {
  position: relative;
  display: block;
  width: 30%;
  height: auto;
  /* Sits inside the text ring with breathing room; warm white to match the type */
  filter: brightness(0) invert(95%) sepia(6%);
}

@keyframes about-spin {
  to {
    rotate: 360deg;
  }
}

@media (prefers-reduced-motion: reduce) {
  .about__seal svg {
    animation: none;
  }
  .about__frame .about__slide.is-active {
    animation: none;
  }
}

@media (max-width: 1199px) {
  .about__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 48px;
  }
  .about__title {
    font-size: var(--fs-h2);
  }
}

@media (max-width: 809px) {
  .about {
    padding-bottom: 64px;
  }
  .about__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 64px;
  }
  .about__title {
    font-size: var(--fs-h1);
  }
  .about__facts li {
    padding-right: 8px;
  }
  .about__facts li + li {
    padding-left: 12px;
  }
  .about__facts span {
    font-size: 12px;
    letter-spacing: 0.06em;
  }
  .about__media {
    padding: 0 0 14% 10%;
  }
  /* Narrow gutter: dots + swipe carry navigation */
  .about__controls {
    left: calc(38% + 16px);
    gap: 8px;
  }
  .about__arrows {
    display: none;
  }
}

/* ===== Solutions — Tailored Fragrances for Every Occasion ===== */
.occasions {
  padding: var(--space-section) var(--gutter) var(--space-section);
  background: var(--surface-soft-bg);
  color: var(--color-ink);
}

.occasions__inner {
  max-width: 1320px;
  margin: 0 auto;
}

/* --- Reveal (armed by js only, so content is visible without it) --- */
.occasions.is-armed [data-reveal-in] {
  opacity: 0;
  translate: 0 36px;
  transition: opacity 1s ease, translate 1.2s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.occasions.is-armed [data-reveal-in].is-in {
  opacity: 1;
  translate: 0 0;
}

/* --- Head: headline + lede --- */
.occasions__head {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  grid-template-areas: 'eyebrow eyebrow' 'title lede';
  align-items: end;
  gap: var(--space-sm) var(--space-xl);
  margin-bottom: clamp(32px, 3.6vw, 56px);
}
.occasions__head .eyebrow {
  grid-area: eyebrow;
}

.occasions__title {
  grid-area: title;
  font-size: var(--fs-h2);
  line-height: 1;
  letter-spacing: -0.02em;
}
.occasions__title .display {
  line-height: inherit;
  letter-spacing: inherit;
}
.occasions__title em {
  font-family: var(--font-display);
  font-weight: var(--font-display-weight);
  font-size-adjust: var(--font-display-adjust);
  text-transform: uppercase;
  color: var(--accent-ink);
}

.occasions__lede {
  grid-area: lede;
  display: grid;
  justify-items: start;
  gap: 24px;
  padding-bottom: 0.6em;
}
.occasions__lede p {
  font-weight: 400;
  font-size: var(--fs-lede);
  line-height: 1.65;
  color: var(--color-ink-soft);
}
.occasions__lede em {
  color: var(--color-ink);
}

/* --- Group label: roman numeral + hairline --- */
.occasions__group,
.gift {
  scroll-margin-top: calc(var(--nav-height) + 24px);
}
.occasions__group + .occasions__group {
  margin-top: var(--space-section);
}
.occasions__label {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: var(--space-sm);
  font-size: var(--label-size);
  font-weight: 600;
  letter-spacing: var(--label-tracking);
  text-transform: uppercase;
  color: var(--color-ink-soft);
}
.occasions__label p {
  display: flex;
  align-items: center;
  gap: 16px;
}
.occasions__label p span {
  font-family: var(--font-accent);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--tone-ink);
}
.occasions__label::after {
  content: '';
  order: 1;
  flex: 1;
  height: 1px;
  background: rgba(0, 0, 0, 0.14);
}
.occasions__label .occasions__hint {
  order: 2;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: rgba(17, 17, 17, 0.5);
}

/* --- I. Business cards: a flexible row — the active card widens and reveals its details --- */
.biz {
  display: flex;
  gap: clamp(12px, 1.4vw, 20px);
  height: clamp(520px, 44vw, 640px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.biz__card {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  border-radius: 4px;
  background: var(--tone-900);
  color: var(--color-white);
  isolation: isolate;
  transition: flex-grow 0.9s var(--ease-out);
}
.biz__card.is-active {
  flex-grow: 1.85;
}
.occasions.is-armed .biz__card {
  transition: opacity 1s ease, translate 1.2s var(--ease-out), flex-grow 0.9s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 90ms), calc(var(--i, 0) * 90ms), 0s;
}
.biz__media {
  position: absolute;
  inset: 0;
  z-index: -1;
  margin: 0;
}
.biz__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.7) brightness(0.8);
  transition: scale 1.4s var(--ease-out), filter 0.8s ease;
}
.biz__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 10, 10, 0.95) 0%, rgba(10, 10, 10, 0.6) 45%, rgba(10, 10, 10, 0.1) 80%);
}
.biz__card.is-active .biz__media img {
  scale: 1.04;
  filter: saturate(1) brightness(1);
}

.biz__index {
  position: absolute;
  top: clamp(20px, 2vw, 30px);
  left: clamp(24px, 2.4vw, 36px);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  font-variant-numeric: tabular-nums;
  color: var(--tone-lighter);
}
/* Plus fills and turns when its card is open */
.biz__plus {
  position: absolute;
  top: clamp(14px, 1.6vw, 24px);
  right: clamp(14px, 1.6vw, 24px);
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  transition: rotate 0.7s var(--ease-out), background-color 0.4s ease, border-color 0.4s ease;
}
.biz__plus::before,
.biz__plus::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 1px;
  translate: -50% -50%;
  background: currentColor;
  transition: background-color 0.4s ease;
}
.biz__plus::after {
  rotate: 90deg;
}
.biz__card.is-active .biz__plus {
  rotate: 90deg;
  border-color: var(--color-white);
  background: var(--color-white);
  color: var(--color-ink);
}

.biz__body {
  display: grid;
  margin-top: auto;
  padding: var(--space-sm);
}
.biz__title {
  font-size: var(--fs-h4);
}
.biz__link {
  display: grid;
  width: max-content;
  max-width: 100%;
}
/* Whole card is the click target */
.biz__link::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
}
.biz__link:focus-visible {
  outline: none;
}
.biz__card:has(.biz__link:focus-visible) {
  outline: 2px solid var(--color-focus);
  outline-offset: 4px;
}
.biz__title .display {
  font-size: 1em;
  line-height: 0.92;
  letter-spacing: -0.02em;
}
.biz__title .display:last-child {
  color: rgba(255, 255, 255, 0.62);
}

/* 0fr → 1fr row animates height without measuring */
.biz__more {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.8s var(--ease-out);
}
.biz__more > div {
  min-height: 0;
  overflow: hidden;
  opacity: 0;
  translate: 0 12px;
  transition: opacity 0.4s ease, translate 0.8s var(--ease-out);
}
.biz__card.is-active .biz__more {
  grid-template-rows: 1fr;
}
.biz__card.is-active .biz__more > div {
  opacity: 1;
  translate: 0 0;
  transition-delay: 0.25s;
}
.biz__text {
  max-width: 40ch;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  font-size: clamp(14px, 1.05vw, 16px);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.86);
}
.biz__list {
  display: grid;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}
.biz__list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.72);
  white-space: nowrap;
}
.biz__list li::before {
  content: '';
  flex: none;
  width: 14px;
  height: 1px;
  background: currentColor;
}
.biz__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  padding-bottom: 4px;
  border-bottom: 1px solid currentColor;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.biz__cta svg {
  width: 18px;
  height: 18px;
  transition: translate 0.3s ease;
}
.biz__card:hover .biz__cta svg {
  translate: 2px -2px;
}

/* --- II. Life's occasions: arched frames, echoing a bottle shoulder --- */
.moments {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.moment__link {
  display: grid;
  justify-items: center;
  text-align: center;
}
.moment__link:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 8px;
}
.moment__media {
  position: relative;
  width: 100%;
  margin: 0;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 999px 999px 4px 4px;
  box-shadow: 0 34px 60px -40px rgba(0, 0, 0, 0.55);
}
.moment__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: scale 1.4s var(--ease-out), filter 0.8s ease;
  filter: saturate(0.85);
}
.moment__go {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-white);
  color: var(--color-ink);
  box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.4);
  opacity: 0;
  scale: 0.6;
  transition: opacity 0.4s ease, scale 0.6s var(--ease-out);
}
.moment__go svg {
  width: 18px;
  height: 18px;
}
.moment__link:hover .moment__media img,
.moment__link:focus-visible .moment__media img {
  scale: 1.07;
  filter: saturate(1.05);
}
.moment__link:hover .moment__go,
.moment__link:focus-visible .moment__go {
  opacity: 1;
  scale: 1;
}
.moment__title {
  display: grid;
  justify-items: center;
  gap: 6px;
  margin-top: 22px;
}
.moment__title .display {
  font-size: var(--fs-h4);
  line-height: 1;
  letter-spacing: -0.01em;
}
.moment__title em {
  font-size: 15px;
  font-weight: 400;
  color: var(--color-ink-soft);
}
.moment__text {
  max-width: 28ch;
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--color-ink-soft);
}

/* --- III. Personalized gifting panel --- */
.gift {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  align-items: center;
  gap: var(--space-xl);
  margin-top: var(--space-section);
  padding: var(--space-lg);
  overflow: hidden;
  border-radius: 6px;
  background: var(--surface-deep-bg);
  color: var(--color-ink);
}

.gift__stage {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 28px;
}
.gift__glow {
  position: absolute;
  top: 8%;
  left: 50%;
  width: 120%;
  aspect-ratio: 1;
  translate: -50% 0;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.35) 55%, transparent);
  pointer-events: none;
}
.gift__bottle {
  position: relative;
  width: min(262px, 62vw);
  animation: gift-float 7s ease-in-out infinite;
}
/* Products share one 262×448 frame and crossfade in place */
.gift__items {
  display: grid;
}
.gift__item {
  grid-area: 1 / 1;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  scale: 0.94;
  translate: 0 14px;
  transition: opacity 0.5s ease, scale 0.7s var(--ease-out), translate 0.7s var(--ease-out), visibility 0s linear 0.5s;
}
.gift__item.is-active {
  opacity: 1;
  visibility: visible;
  scale: 1;
  translate: 0 0;
  transition-delay: 0.08s, 0.08s, 0.08s, 0s;
}
.gift__item img,
.gift__item svg {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 36px 36px rgba(96, 64, 28, 0.28));
}
.gift__mist {
  animation: gift-mist 4s ease-in-out infinite;
}
.gift__flame {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: gift-flicker 2.6s ease-in-out infinite;
}

/* Product switcher: understated text tabs, the active one underlined in ink */
.gift__products {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px 22px;
}
/* Five tabs always wrap as a balanced 3 + 2 */
.gift__products-break {
  flex-basis: 100%;
  height: 0;
}
.gift__products button {
  padding: 8px 0 7px;
  border: 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  color: rgba(28, 25, 21, 0.62);
  font: 600 12px/1.2 var(--font-body);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.3s ease, border-color 0.3s ease;
}
.gift__products button:hover {
  color: var(--color-ink);
  border-color: rgba(28, 25, 21, 0.3);
}
.gift__products button[aria-pressed='true'] {
  color: var(--color-ink);
  border-color: var(--color-ink);
}
.gift__products button:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 4px;
}

/* Label sits on the flat of each product (perfume measured on perfume_bottle-hero.webp) */
.gift__stage {
  --label-top: 55%;
  --label-w: 0.58;
}
.gift__stage[data-product='candle'] {
  --label-top: 72.6%;
  --label-w: 0.6;
}
.gift__stage[data-product='cream'] {
  --label-top: 73.8%;
  --label-w: 0.62;
}
.gift__stage[data-product='handwash'] {
  --label-top: 71.4%;
  --label-w: 0.46;
}
.gift__stage[data-product='freshener'] {
  --label-top: 69%;
  --label-w: 0.44;
}
.gift__label {
  --len: 5;
  position: absolute;
  top: var(--label-top);
  left: 50%;
  width: calc(var(--label-w) * 100%);
  translate: -50% -50%;
  transition: top 0.7s var(--ease-out), width 0.7s var(--ease-out);
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 14px 10px 12px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--color-ink);
  box-shadow: 0 6px 18px rgba(60, 40, 20, 0.18);
}
.gift__label-for {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--tone-ink);
}
.gift__label-name {
  max-width: 100%;
  overflow: hidden;
  font-family: var(--font-accent);
  font-weight: 500;
  letter-spacing: -0.01em;
  font-size: calc(min(262px, 62vw) * var(--label-w) * 0.86 / (var(--len) * 0.5 + 1.2));
  transition: font-size 0.7s var(--ease-out);
  line-height: 1.1;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.gift__label-rule {
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.4;
}

.gift__try {
  position: relative;
  display: grid;
  gap: 8px;
  width: min(280px, 100%);
  text-align: center;
}
.gift__try span {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-ink);
}
.gift__try input {
  width: 100%;
  padding: 10px 4px;
  border: 0;
  border-bottom: 1px solid rgba(28, 25, 21, 0.36);
  background: transparent;
  color: var(--color-ink);
  font-family: var(--font-accent);
  font-weight: 400;
  font-size: 20px;
  text-align: center;
  transition: border-color 0.3s ease;
}
.gift__try input::placeholder {
  color: rgba(28, 25, 21, 0.6);
}
.gift__try input:focus {
  outline: none;
  border-color: var(--color-ink);
}
.gift__try input:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 6px;
}

.gift__chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: -12px;
}
.gift__chips button {
  padding: 6px 14px;
  border: 1px solid rgba(28, 25, 21, 0.19);
  border-radius: 999px;
  background: transparent;
  color: rgba(28, 25, 21, 0.82);
  font: 500 13px/1.2 var(--font-body);
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.gift__chips button:hover,
.gift__chips button[aria-pressed='true'] {
  border-color: var(--color-ink);
  background: var(--color-ink);
  color: var(--color-white);
}
.gift__chips button:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 3px;
}

.gift__copy {
  position: relative;
  display: grid;
  justify-items: start;
}
.gift__copy .eyebrow i {
  display: block;
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}
.gift__title {
  margin-top: var(--space-xs);
  font-size: var(--fs-h2);
  line-height: 1;
  letter-spacing: -0.02em;
}
.gift__title .display {
  line-height: inherit;
  letter-spacing: inherit;
}
.gift__title em {
  font-family: var(--font-display);
  font-weight: var(--font-display-weight);
  font-size-adjust: var(--font-display-adjust);
  text-transform: uppercase;
  color: var(--accent-ink);
}
.gift__text {
  max-width: 460px;
  margin-top: var(--space-xs);
  font-weight: 400;
  font-size: var(--fs-lede);
  line-height: 1.65;
  color: rgba(28, 25, 21, 0.82);
}
.gift__text em {
  color: var(--color-ink);
}

.gift__perks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%;
  margin: var(--space-md) 0 var(--space-md);
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(28, 25, 21, 0.14);
  border-bottom: 1px solid rgba(28, 25, 21, 0.14);
}
.gift__perks li {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 24px 18px 24px 0;
}
.gift__perks li + li {
  padding-left: 20px;
  border-left: 1px solid rgba(28, 25, 21, 0.14);
}
.gift__perks svg {
  width: 26px;
  height: 26px;
  margin-bottom: 4px;
  fill: none;
  stroke: var(--color-ink);
  stroke-width: 1.3;
}
.gift__perks p {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.gift__perks p em {
  display: block;
  font-size: 17px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--color-ink);
}
.gift__perks span {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.55;
  color: rgba(28, 25, 21, 0.7);
}

/* Touch screens can't hover: keep every business card open at equal width */
@media (hover: none) {
  .occasions__label .occasions__hint {
    display: none;
  }
  .biz__card.is-active {
    flex-grow: 1;
  }
  .biz__plus {
    display: none;
  }
  .biz__media img {
    filter: none;
  }
  .biz__more {
    grid-template-rows: 1fr;
  }
  .biz__more > div {
    opacity: 1;
    translate: 0 0;
  }
}

@keyframes gift-float {
  50% {
    translate: 0 -12px;
  }
}
@keyframes gift-mist {
  0%, 100% { opacity: 0.35; translate: 6px 0; }
  50% { opacity: 1; translate: 0 -2px; }
}
@keyframes gift-flicker {
  0%, 100% { scale: 1 1; rotate: 0deg; }
  30% { scale: 0.96 1.05; rotate: -1.5deg; }
  60% { scale: 1.03 0.97; rotate: 1deg; }
}

@media (prefers-reduced-motion: reduce) {
  .gift__bottle,
  .gift__flame,
  .gift__mist {
    animation: none;
  }
  .gift__item,
  .gift__label,
  .gift__label-name {
    transition: none;
  }
}

@media (max-width: 479px) {
  .gift__products {
    gap: 0 14px;
  }
  .gift__products button {
    min-height: 40px;
    font-size: 11px;
    letter-spacing: 0.06em;
  }
}
@media (max-width: 359px) {
  .gift__products {
    gap: 0 10px;
  }
  .gift__products button {
    font-size: 10px;
    letter-spacing: 0.04em;
  }
}

@media (max-width: 1199px) {
  .occasions__head {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: 'eyebrow' 'title' 'lede';
  }
  .occasions__lede {
    max-width: 520px;
  }
  .moments {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px 24px;
  }
  .biz__list li {
    white-space: normal;
  }
  .gift {
    grid-template-columns: minmax(0, 1fr);
  }
  .gift__perks li {
    padding-right: 12px;
  }
}

@media (max-width: 809px) {
  .occasions__label .occasions__hint {
    display: none;
  }
  /* Stacked on phones: every card shows its details, no hover needed */
  .biz {
    flex-direction: column;
    height: auto;
    gap: 16px;
  }
  .biz__card {
    min-height: 460px;
  }
  .biz__plus {
    display: none;
  }
  .biz__media img {
    filter: none;
  }
  .biz__more {
    grid-template-rows: 1fr;
  }
  .biz__more > div {
    opacity: 1;
    translate: 0 0;
  }
  .moment__text {
    font-size: 13px;
  }
  .moment__go {
    width: 36px;
    height: 36px;
    right: 10px;
    bottom: 10px;
    opacity: 1;
    scale: 1;
  }
  .moments {
    gap: 32px 14px;
  }
  .moment__title em {
    font-size: 15px;
  }
  .gift {
    padding: 48px 20px 40px;
  }
  .gift__perks {
    grid-template-columns: minmax(0, 1fr);
  }
  .gift__perks li,
  .gift__perks li + li {
    grid-template-columns: 26px 1fr;
    column-gap: 16px;
    padding: 20px 0;
    border-left: 0;
  }
  .gift__perks li + li {
    border-top: 1px solid rgba(28, 25, 21, 0.14);
  }
  .gift__perks svg {
    grid-row: span 2;
  }
  .gift__copy .button {
    width: 100%;
    justify-content: space-between;
  }
}

/* ===== Our Process — pinned horizontal steps =====
 * The stage sticks inside a tall track; js/main.js (initJourney) sizes the track
 * and maps vertical scroll to the rail's translateX. A timeline runs through a
 * node on every card and draws itself as you travel, lighting each step.
 * JS sets on [data-journey]: .is-pinned, --x (px), --fill (px), --p (0→1), --n (active index).
 * Without .is-pinned (no JS / reduced motion) the rail is a native swipeable row.
 */
.journey {
  --card-w: clamp(260px, min(30vw, calc(100svh - 440px)), 460px);
  --card-gap: clamp(40px, 6vw, 110px);
  --node-y: calc(var(--card-w) + 30px);
  background: var(--about-bg);
  color: var(--color-ink);
}
/* .section clips with overflow:hidden, which would break position: sticky */
.journey.section {
  overflow: clip;
}

.journey__stage {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(28px, 5svh, 56px);
  padding: 120px 0 110px;
}
.journey.is-pinned .journey__stage {
  position: sticky;
  top: 0;
  height: 100svh;
  padding: 72px 0 32px;
  overflow: hidden;
}

.journey__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  width: calc(100% - 2 * var(--gutter));
  max-width: 1320px;
  margin: 0 auto;
}

.journey__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: var(--font-display-weight);
  font-size: var(--fs-h2);
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  text-align: right;
}
.journey__title em {
  font-weight: 300;
  color: var(--accent-ink);
}

/* ---------- Rail ---------- */
.journey__viewport {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.journey__viewport::-webkit-scrollbar {
  display: none;
}
.journey.is-pinned .journey__viewport {
  overflow: visible;
}

.journey__rail {
  position: relative;
  width: max-content;
  padding: 0 var(--gutter);
  padding-left: max(var(--gutter), calc((100vw - 1320px) / 2));
}
.journey.is-pinned .journey__rail {
  transform: translate3d(calc(var(--x, 0) * -1px), 0, 0);
  will-change: transform;
}

.journey__grid {
  display: flex;
  gap: var(--card-gap);
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Timeline: faint dashed track + solid fill that draws with scroll */
.journey__line {
  position: absolute;
  top: var(--node-y);
  left: max(var(--gutter), calc((100vw - 1320px) / 2));
  right: var(--gutter);
  height: 1px;
  background-image: linear-gradient(90deg, rgba(0, 0, 0, 0.28) 50%, transparent 0);
  background-size: 8px 1px;
  pointer-events: none;
}
.journey__line-fill {
  position: absolute;
  inset: -0.5px auto -0.5px 0;
  width: calc(var(--fill, 0) * 1px);
  max-width: 100%;
  background: var(--color-ink);
}
/* Glowing tip travelling along the line */
.journey__line-fill::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-ink);
  box-shadow: 0 0 0 5px rgba(0, 0, 0, 0.08), 0 0 18px 4px rgba(0, 0, 0, 0.18);
  translate: 50% -50%;
}
.journey:not(.is-pinned) .journey__line-fill {
  width: 100%;
}
.journey:not(.is-pinned) .journey__line-fill::after {
  display: none;
}

/* ---------- Cards ---------- */
.jcard {
  position: relative;
  flex: 0 0 var(--card-w);
  width: var(--card-w);
  scroll-snap-align: start;
}

.jcard__node {
  position: absolute;
  top: var(--node-y);
  left: 0;
  z-index: 1;
  width: 13px;
  height: 13px;
  border: 1px solid rgba(0, 0, 0, 0.4);
  border-radius: 50%;
  background: #f3eee6;
  translate: 0 -50%;
  transition: background-color 0.5s ease, border-color 0.5s ease, box-shadow 0.6s var(--ease-out), scale 0.6s var(--ease-out);
}
.jcard.is-reached .jcard__node {
  border-color: var(--tone-ink);
  background: var(--tone-ink);
}
.jcard.is-active .jcard__node {
  scale: 1.25;
  box-shadow: 0 0 0 6px rgba(0, 0, 0, 0.1), 0 0 0 14px rgba(0, 0, 0, 0.04);
}

.jcard__media {
  position: relative;
  margin: 0 0 60px;
  aspect-ratio: 1;
  overflow: hidden;
  background: #ebe4da;
}
.jcard__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: scale 1.2s var(--ease-out), filter 0.8s ease;
}
.jcard:hover .jcard__media img {
  scale: 1.05;
}

/* Cut-out product shot on a brand gradient instead of a photo */
.jcard__media--product {
  background: var(--hero-bg);
}
.jcard__media--product img {
  object-fit: contain;
  padding: 10%;
}

.jcard__label {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.jcard__label span {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
  color: var(--tone-ink);
}

.jcard__title {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(15px, 1.1vw, 16px);
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: -0.005em;
  color: var(--color-ink);
  text-wrap: pretty;
  transition: color 0.3s ease;
}
.jcard:hover .jcard__title {
  color: var(--tone-600);
}

/* Steps ahead of the line wait quietly until the timeline reaches them */
.journey.is-pinned .jcard > :not(.jcard__node) {
  transition: opacity 0.7s ease, translate 0.9s var(--ease-out);
}
.journey.is-pinned .jcard:not(.is-reached) > :not(.jcard__node) {
  opacity: 0.55;
}
.journey.is-pinned .jcard:not(.is-reached) .jcard__label,
.journey.is-pinned .jcard:not(.is-reached) .jcard__title {
  translate: 0 10px;
}
.journey.is-pinned .jcard:not(.is-reached) .jcard__media img {
  filter: saturate(0.55);
}

/* ---------- Footer: counter + progress ---------- */
.journey__foot {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  width: calc(100% - 2 * var(--gutter));
  max-width: 1320px;
  margin: 0 auto;
}
.journey:not(.is-pinned) .journey__foot {
  display: none;
}

.journey__count {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--tone-ink);
}
.journey__count i {
  font-style: normal;
  font-weight: 400;
  font-size: 14px;
  color: var(--color-ink-soft);
}
.journey__roll {
  display: flex;
  flex-direction: column;
  height: 1em;
  overflow: hidden;
}
.journey__roll span {
  display: block;
  height: 1em;
  translate: 0 calc(var(--n, 0) * -100%);
  transition: translate 0.6s var(--ease-out);
}

.journey__bar {
  position: relative;
  flex: 1;
  height: 1px;
  background: rgba(0, 0, 0, 0.16);
}
.journey__bar span {
  position: absolute;
  inset: 0;
  background: var(--tone-ink);
  transform-origin: left;
  transform: scaleX(var(--p, 0));
}

.journey__hint {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-ink-soft);
  transition: opacity 0.5s ease;
}
.journey.is-done .journey__hint {
  opacity: 0;
}

@media (max-width: 809px) {
  .journey {
    --card-w: clamp(200px, calc(100svh - 400px), 78vw);
    --card-gap: 36px;
    --node-y: calc(var(--card-w) + 22px);
  }
  .journey.is-pinned .journey__stage {
    padding-top: 80px;
    justify-content: flex-start;
  }
  .journey__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .journey__title {
    font-size: 30px;
    text-align: left;
  }
  .jcard__media {
    margin-bottom: 44px;
  }
  .jcard__label {
    margin-bottom: 8px;
    font-size: 17px;
  }
  .jcard__title {
    font-size: 17px;
  }
  .journey__hint {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .jcard__media img,
  .jcard__node,
  .journey__roll span {
    transition: none;
  }
}

/* ===== Private Label — the atelier dial =====
 * Eight services sit on a ring around a circular window. js/main.js (initPrivateLabel)
 * sets on [data-plabel]: --rot (angle the ring has turned), --n (active index),
 * .is-armed (reveal) and .is-playing (auto tour). Each node places itself from
 * its --i and the shared --rot, so the whole dial turns with one transition.
 */
@property --rot {
  syntax: '<angle>';
  inherits: true;
  initial-value: 0deg;
}

.plabel {
  --rot: 0deg;
  --n: 0;
  --step-a: 45deg; /* 360 / 8 steps */
  padding: var(--space-section) var(--gutter);
  background: var(--surface-deep-bg);
  color: var(--color-ink);
  transition: --rot 1.3s var(--ease-out);
  scroll-margin-top: 0;
}

/* Oversized, barely-there wordmark anchoring the dark field */
.plabel__wordmark {
  position: absolute;
  left: 50%;
  bottom: -0.2em;
  translate: -50% 0;
  font-family: var(--font-display);
  font-weight: var(--font-wordmark-weight);
  font-size-adjust: var(--font-display-adjust);
  font-size: clamp(104px, 16vw, 240px);
  line-height: 1;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  background-image: linear-gradient(180deg, rgba(28, 25, 21, 0.07) 0%, rgba(28, 25, 21, 0.0) 70%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  pointer-events: none;
  user-select: none;
}

.plabel__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  align-items: center;
  gap: var(--space-2xl);
  max-width: 1320px;
  margin: 0 auto;
}

/* --- Reveal (armed by js only) --- */
.plabel.is-armed [data-reveal-in] {
  opacity: 0;
  translate: 0 36px;
  transition: opacity 1s ease, translate 1.2s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.plabel.is-armed [data-reveal-in].is-in {
  opacity: 1;
  translate: 0 0;
}

/* ---------- Copy ---------- */
.plabel__copy {
  display: grid;
  justify-items: start;
}
.plabel__rule {
  display: block;
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}
.plabel__title {
  display: grid;
  margin-top: var(--space-xs);
  font-size: var(--fs-h1);
  line-height: 0.98;
  letter-spacing: -0.025em;
}
.plabel__title .display {
  line-height: inherit;
  letter-spacing: inherit;
}
.plabel__title em {
  font-family: var(--font-display);
  font-weight: 300;
  font-size-adjust: var(--font-display-adjust);
  text-transform: uppercase;
  color: var(--accent-ink);
  padding-left: 1.1em; /* offset second line, like a label set on a bottle shoulder */
}
.plabel__lede {
  max-width: 470px;
  margin-top: var(--space-sm);
  font-size: var(--fs-lede);
  line-height: 1.65;
  color: rgba(28, 25, 21, 0.7);
}
.plabel__lede em {
  font-weight: 600;
  color: var(--color-ink);
}

/* --- Active step panel --- */
.plabel__panel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: var(--space-sm);
  width: 100%;
  margin: var(--space-md) 0 var(--space-md);
  padding: var(--space-sm) 0;
  border-top: 1px solid rgba(28, 25, 21, 0.14);
  border-bottom: 1px solid rgba(28, 25, 21, 0.14);
}
.plabel__count {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
}
.plabel__roll {
  display: flex;
  flex-direction: column;
  height: 1em;
  overflow: hidden;
  font-size: var(--fs-h1);
  font-weight: 200;
  line-height: 1;
  letter-spacing: -0.04em;
}
.plabel__roll span {
  translate: 0 calc(var(--n) * -100%);
  transition: translate 0.9s var(--ease-out);
}
.plabel__count i {
  padding-top: 0.5em;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgba(28, 25, 21, 0.6);
}

.plabel__detail {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 7.6em;
}
.plabel__detail strong {
  font-family: var(--font-display);
  font-size: var(--fs-h5);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.plabel__detail p {
  max-width: 400px;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(28, 25, 21, 0.7);
}
.plabel__detail.is-swapping > * {
  animation: plabel-swap 0.8s var(--ease-out) both;
}
.plabel__detail.is-swapping > p {
  animation-delay: 70ms;
}
@keyframes plabel-swap {
  from {
    opacity: 0;
    translate: 0 14px;
    filter: blur(4px);
  }
}

.plabel__controls {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
}
.plabel__arrow {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(28, 25, 21, 0.19);
  border-radius: 50%;
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}
.plabel__arrow svg {
  width: 20px;
  height: 20px;
}
.plabel__arrow:hover {
  border-color: var(--color-ink);
  background: var(--color-ink);
  color: var(--color-white);
}
.plabel__play {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  padding: 10px 0 10px 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(28, 25, 21, 0.7);
  transition: color 0.3s ease;
}
.plabel__play:hover {
  color: var(--color-ink);
}
/* Countdown bar: its animationend advances the tour (see js) */
.plabel__timer {
  position: relative;
  width: 56px;
  height: 1px;
  background: rgba(28, 25, 21, 0.2);
  overflow: hidden;
}
.plabel__timer span {
  position: absolute;
  inset: 0;
  background: var(--color-ink);
  transform: scaleX(0);
  transform-origin: left;
}
.plabel.is-playing .plabel__timer span.is-running {
  animation: plabel-timer var(--dwell, 5s) linear forwards;
}
.plabel.is-paused .plabel__timer span.is-running {
  animation-play-state: paused;
}
@keyframes plabel-timer {
  to {
    transform: scaleX(1);
  }
}

.plabel__arrow:focus-visible,
.plabel__play:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 3px;
}

/* ---------- Dial ---------- */
.plabel__dial {
  width: 100%;
  max-width: 640px;
  justify-self: end;
  padding: 3%;
}
.plabel__dial-inner {
  position: relative;
  aspect-ratio: 1;
  container-type: inline-size;
}

.plabel__ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  fill: none;
}
.plabel__ring-outer {
  stroke: rgba(28, 25, 21, 0.1);
  stroke-width: 0.2;
}
.plabel__ring-track {
  stroke: rgba(28, 25, 21, 0.13);
  stroke-width: 0.2;
}
/* Visited arc: runs anticlockwise from 12 o'clock back through the steps already passed */
.plabel__ring-progress {
  stroke: var(--color-ink);
  stroke-width: 0.35;
  stroke-linecap: round;
  stroke-dasharray: 0 100;
  transform: rotate(-90deg) scaleY(-1);
  transform-origin: 50px 50px;
  transition: stroke-dasharray 1.3s var(--ease-out);
}
.plabel__ring-dash {
  stroke: rgba(28, 25, 21, 0.11);
  stroke-width: 0.2;
  stroke-dasharray: 0.4 1.2;
  transform-origin: 50px 50px;
  rotate: calc(var(--rot) * -0.5);
}

/* Fixed marker at 12 o'clock — the "now" position every step turns to */
.plabel__pointer {
  position: absolute;
  top: -3.2%;
  left: 50%;
  width: 1px;
  height: 3.4%;
  background: linear-gradient(to bottom, transparent, var(--color-ink));
}
.plabel__pointer::before {
  content: '';
  position: absolute;
  top: -4px;
  left: -2px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-ink);
  box-shadow: 0 0 0 3px rgba(28, 25, 21, 0.1);
}

/* Circular window: photos stack; the active one irises open from the top over the last */
.plabel__window {
  position: absolute;
  inset: 22%;
  overflow: hidden;
  border-radius: 50%;
  background: var(--tone-800);
  box-shadow: 0 40px 80px -40px rgba(70, 50, 28, 0.45), inset 0 0 0 1px rgba(28, 25, 21, 0.08);
  isolation: isolate;
}
.plabel__window::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: 50%;
  background: radial-gradient(closest-side, transparent 66%, rgba(40, 28, 16, 0.22));
  pointer-events: none;
}
.plabel__shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.35) contrast(1.05);
  clip-path: circle(0% at 50% 0%);
  scale: 1.12;
  transition: clip-path 1.2s var(--ease-out), scale 1.8s var(--ease-out);
}
.plabel__shot.is-leaving {
  z-index: 1;
  clip-path: circle(75% at 50% 50%);
  scale: 1;
  transition: none;
}
.plabel__shot.is-active {
  z-index: 2;
  clip-path: circle(75% at 50% 50%);
  scale: 1;
}

/* Slow-turning seal of short step names hugging the window */
.plabel__seal {
  position: absolute;
  inset: 17.5%;
  pointer-events: none;
}
.plabel__seal svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  animation: plabel-spin 60s linear infinite;
}
.plabel__seal text {
  fill: rgba(28, 25, 21, 0.7);
  font-family: var(--font-body);
  font-size: 7.2px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
@keyframes plabel-spin {
  to {
    rotate: 360deg;
  }
}

/* Nodes: a zero-size anchor at the centre, pushed out along its angle then turned upright */
.plabel__nodes {
  --node: clamp(40px, 8cqw, 54px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.plabel__node {
  --a: calc(var(--i) * var(--step-a) + var(--rot));
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  transform: rotate(var(--a)) translateY(-44cqw) rotate(calc(var(--a) * -1));
  z-index: 4;
}
.plabel__node button {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: var(--node);
  height: var(--node);
  translate: -50% -50%;
  border: 1px solid rgba(28, 25, 21, 0.22);
  border-radius: 50%;
  background: var(--color-paper);
  color: rgba(28, 25, 21, 0.82);
  font-family: var(--font-display);
  font-size: clamp(11px, 2.3cqw, 14px);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  transition: background-color 0.5s ease, color 0.5s ease, border-color 0.5s ease, scale 0.8s var(--ease-out), box-shadow 0.8s ease;
}
.plabel__node button:hover {
  border-color: var(--color-ink);
  color: var(--color-ink);
  scale: 1.08;
}
.plabel__node button:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 4px;
}
.plabel__node.is-active button {
  border-color: var(--color-ink);
  background: var(--color-ink);
  color: var(--color-white);
  scale: 1.22;
  box-shadow: 0 0 0 8px rgba(28, 25, 21, 0.06), 0 12px 30px -6px rgba(28, 25, 21, 0.35);
}
.plabel__node.is-visited:not(.is-active) button {
  border-color: rgba(28, 25, 21, 0.48);
  color: var(--color-ink);
}

.plabel__node-label {
  position: absolute;
  left: 0;
  width: 13ch;
  translate: -50% 0;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.1em;
  text-align: center;
  text-transform: uppercase;
  color: rgba(28, 25, 21, 0.7);
  pointer-events: none;
  transition: color 0.5s ease, opacity 0.5s ease;
  /* Sit below the node by default */
  top: calc(var(--node) / 2 + 12px);
}
.plabel__node.is-active .plabel__node-label {
  opacity: 0; /* its name is already in the panel and under the pointer */
}
.plabel__node:hover .plabel__node-label {
  color: var(--color-ink);
}

/* ---------- Signature line ---------- */
.plabel__sign {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 1320px;
  margin: clamp(64px, 8vw, 120px) auto 0;
  font-family: var(--font-display);
  font-size: clamp(14px, 1.15vw, 17px);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(28, 25, 21, 0.7);
}
.plabel__sign i {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(28, 25, 21, 0.3), rgba(28, 25, 21, 0.05));
}
.plabel__sign strong {
  font-weight: 600;
  color: var(--color-ink);
}

@media (prefers-reduced-motion: reduce) {
  .plabel {
    transition: none;
  }
  .plabel__seal svg {
    animation: none;
  }
  .plabel__shot {
    transition: none;
  }
}

/* Stacked: headline, then the dial, then the step it's showing — so the name sits right under the ring */
@media (max-width: 1199px) {
  .plabel__inner {
    grid-template-columns: minmax(0, 1fr);
    justify-items: start;
    gap: 0;
  }
  .plabel__copy {
    display: contents;
  }
  .plabel__dial {
    order: 1;
    justify-self: center;
    max-width: 600px;
    margin-top: var(--space-lg);
  }
  .plabel__panel {
    order: 2;
    max-width: 640px;
    justify-self: center;
    margin-top: var(--space-md);
  }
  .plabel__cta {
    order: 3;
    justify-self: center;
  }
}

@media (max-width: 809px) {
  .plabel__dial {
    padding: 6%;
  }
  .plabel__nodes {
    --node: 11cqw;
  }
  .plabel__node-label {
    display: none;
  }
  .plabel__seal text {
    font-size: 8px;
  }
  .plabel__title em {
    padding-left: 0.6em;
  }
  .plabel__panel {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 14px;
  }
  .plabel__roll {
    font-size: 48px;
  }
  .plabel__detail {
    min-height: 8em;
  }
  .plabel__cta {
    width: 100%;
    justify-content: space-between;
  }
  .plabel__sign {
    flex-wrap: wrap;
    gap: 6px 14px;
  }
  .plabel__sign i {
    display: none;
  }
}

/* ===== Portfolio ===== */
.portfolio {
  padding: 140px var(--gutter) 150px;
  background: var(--tone-50);
  color: var(--color-ink);
}

.portfolio__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  max-width: 1320px;
  margin: 0 auto 56px;
}

.portfolio__title {
  font-family: var(--font-display);
  font-weight: var(--font-display-weight);
  font-size: var(--fs-h2);
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  text-align: right;
}
.portfolio__title em {
  font-weight: 300;
  color: var(--accent-ink);
}

.portfolio__list {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(0, 0, 0, 0.14);
}

.portfolio__list li {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  align-items: baseline;
  gap: 24px;
  padding: 30px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.14);
  transition: padding 0.6s var(--ease-out), color 0.3s ease;
}
.portfolio__list li:hover {
  padding-left: 16px;
  color: var(--tone-600);
}

.portfolio__index {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
  color: var(--tone-ink);
}

.portfolio__list strong {
  font-size: var(--fs-h2);
  line-height: 1;
  letter-spacing: -0.03em;
  white-space: normal;
}

.portfolio__type {
  font-size: var(--label-size);
  font-weight: 600;
  letter-spacing: var(--label-tracking);
  text-transform: uppercase;
  color: var(--color-ink-soft);
}

@media (max-width: 809px) {
  .portfolio {
    padding: 96px var(--gutter) 104px;
  }
  .portfolio__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 36px;
  }
  .portfolio__title {
    text-align: left;
  }
  .portfolio__list li {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 24px 0;
  }
  .portfolio__list li:hover {
    padding-left: 0;
  }
  .portfolio__index {
    font-size: 13px;
  }
}

/* ===== Testimonials =====
 * Cards sit in a native scroll-snap track (3 / 2 / 1 per view). js/main.js
 * (initTestimonials) wires the arrows, builds one dot per page and adds
 * .is-armed for the reveal. Without JS the track still swipes and scrolls.
 */
.voices {
  --per-view: 3;
  --gap: clamp(16px, 1.6vw, 24px);
  padding: var(--space-section) var(--gutter);
  background: var(--about-bg);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  color: var(--color-ink);
}

.voices__inner {
  max-width: 1320px;
  margin: 0 auto;
}

/* --- Reveal (armed by js only) --- */
.voices.is-armed [data-reveal-in] {
  opacity: 0;
  translate: 0 36px;
  transition: opacity 1s ease, translate 1.2s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.voices.is-armed [data-reveal-in].is-in {
  opacity: 1;
  translate: 0 0;
}

/* --- Head --- */
.voices__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: var(--space-lg);
}
.voices__head .eyebrow {
  margin-bottom: var(--space-sm);
}
.voices__title {
  font-size: var(--fs-h2);
  line-height: 1;
  letter-spacing: -0.02em;
}
.voices__title .display {
  line-height: inherit;
  letter-spacing: inherit;
}
.voices__title em {
  font-family: var(--font-display);
  font-weight: var(--font-display-weight);
  font-size-adjust: var(--font-display-adjust);
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--accent-ink);
}

.voices__nav {
  display: flex;
  gap: 8px;
}
.voices__arrow {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 50%;
  color: var(--color-ink);
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, opacity 0.3s ease;
}
.voices__arrow svg {
  width: 20px;
  height: 20px;
}
.voices__arrow:hover:not(:disabled) {
  border-color: var(--color-ink);
  background: var(--color-ink);
  color: var(--color-white);
}
.voices__arrow:disabled {
  opacity: 0.3;
  cursor: default;
}

/* --- Track --- */
.voices__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - (var(--per-view) - 1) * var(--gap)) / var(--per-view));
  gap: var(--gap);
  /* Room for the hover lift and shadow inside the scroll clip */
  margin: -8px 0 -40px;
  padding: 8px 0 40px;
  list-style: none;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.voices__track::-webkit-scrollbar {
  display: none;
}
.voices__track:focus-visible {
  outline-offset: 6px;
}

.tcard {
  scroll-snap-align: start;
  display: flex;
}
.tcard__inner {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin: 0;
  padding: var(--space-sm);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  background: var(--color-white);
  transition: border-color 0.4s ease, box-shadow 0.6s var(--ease-out), translate 0.6s var(--ease-out);
}
.tcard__inner:hover {
  border-color: rgba(0, 0, 0, 0.2);
  box-shadow: 0 30px 60px -40px rgba(0, 0, 0, 0.35);
  translate: 0 -4px;
}
.tcard__mark {
  height: 0.5em;
  margin-bottom: 20px;
  font-family: var(--font-display);
  font-size: 72px;
  font-weight: 300;
  line-height: 0.9;
  color: var(--color-ink);
}
.tcard blockquote {
  flex: 1;
  margin: 0 0 32px;
}
.tcard blockquote p {
  font-family: var(--font-display);
  font-size: var(--fs-lede);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.01em;
  text-wrap: pretty;
}
.tcard__who {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 24px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}
.tcard__who img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}
.tcard__who span {
  display: grid;
  gap: 2px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--color-ink-soft);
}
.tcard__who strong {
  font-size: var(--label-size);
  font-weight: 600;
  letter-spacing: var(--label-tracking);
  text-transform: uppercase;
  color: var(--color-ink);
}

/* --- Dots --- */
.voices__dots {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-top: var(--space-sm);
}
.voices__dots button {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
}
.voices__dots button::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--slider-dot);
  transition: width 0.5s var(--ease-out), background-color 0.3s ease;
}
.voices__dots button:hover::before {
  background: rgba(0, 0, 0, 0.45);
}
.voices__dots button[aria-current='true']::before {
  width: 24px;
  background: var(--slider-dot-active);
}

@media (prefers-reduced-motion: reduce) {
  .voices__track {
    scroll-behavior: auto;
  }
  .tcard__inner:hover {
    translate: none;
  }
}

@media (max-width: 1199px) {
  .voices {
    --per-view: 2;
  }
}

@media (max-width: 809px) {
  .voices {
    --per-view: 1;
  }
  .voices__head {
    align-items: flex-start;
    flex-direction: column;
  }
  .voices__nav {
    display: none;
  }
  /* Peek the next card so the swipe is discoverable */
  .voices__track {
    grid-auto-columns: 86%;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    scroll-padding-inline: var(--gutter);
  }
}

/* ===== Footer / Contact ===== */
/* Warm-ink closing surface: the one dark block on an all-paper site, so the
   page ends with weight and the closing CTA gets the stage. */
.footer {
  --footer-line: rgba(246, 242, 236, 0.12);
  --footer-ivory: #f6f2ec;
  position: relative;
  overflow: hidden;
  padding: var(--space-xl) var(--gutter) 28px;
  background: var(--footer-bg);
  font-family: var(--font-body);
  color: var(--footer-ivory);
}

.footer__inner {
  max-width: 1320px;
  margin: 0 auto;
}

/* ---------- Closing CTA ---------- */
.footer__cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 32px 64px;
  padding-bottom: var(--space-lg);
  margin-bottom: var(--space-lg);
  border-bottom: 1px solid var(--footer-line);
}
.footer__cta-copy {
  display: grid;
  gap: 20px;
}
.footer__cta-title {
  max-width: 13em;
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  font-size-adjust: var(--font-display-adjust);
  font-weight: var(--font-display-weight);
  line-height: 1.04;
  letter-spacing: var(--display-tracking);
  color: var(--footer-ivory);
  text-wrap: balance;
}
.footer__cta-title span {
  color: var(--footer-accent);
}
.footer__cta-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.footer__cta-btn {
  background: var(--footer-ivory);
  color: var(--color-ink);
}
.footer__cta-btn .button__icon {
  color: var(--color-ink);
}
.footer__cta-btn:hover {
  background: var(--color-white);
  box-shadow: 0 16px 40px -16px rgba(0, 0, 0, 0.8);
}

/* ---------- Info grid ---------- */
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}
.footer__brand p {
  max-width: 280px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--footer-link);
}

.footer__logo {
  display: block;
  transition: opacity 0.3s ease;
}
.footer__logo:hover {
  opacity: 0.75;
}
.footer__logo img {
  display: block;
  height: 56px;
  width: auto;
  filter: brightness(0) invert(95%) sepia(6%);
}

.footer__col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.footer__heading {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: var(--label-tracking);
  text-transform: uppercase;
  color: var(--footer-heading);
}

.footer__links {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer__links--split {
  grid-template-columns: repeat(2, auto);
  column-gap: 32px;
}

/* Links draw an underline in from the left on hover */
.footer__links a,
.footer__more {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--footer-note);
  transition: color 0.2s ease;
}
.footer__links a::after,
.footer__more::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease-out);
}
.footer__links a:hover,
.footer__links a.is-active,
.footer__more:hover {
  color: var(--footer-link-active);
}
.footer__links a:hover::after,
.footer__more:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}
/* Current page: a small bronze dot instead of a permanent underline */
.footer__links a.is-active::before {
  content: '';
  position: absolute;
  left: -12px;
  top: 50%;
  width: 4px;
  height: 4px;
  margin-top: -2px;
  border-radius: 50%;
  background: var(--color-focus);
}

.footer__place {
  display: grid;
  justify-items: start;
  gap: 6px;
}
.footer__place + .footer__place {
  margin-top: 4px;
}
.footer__place-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: var(--label-tracking);
  text-transform: uppercase;
  color: var(--footer-accent);
}
.footer__place .footer__more {
  margin-top: 2px;
}

.footer__address {
  font-style: normal;
  font-size: 15px;
  line-height: 1.7;
  color: var(--footer-note);
}

.footer__more {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: var(--label-tracking);
  text-transform: uppercase;
  color: var(--footer-link-active);
}
.footer__more svg {
  transition: transform 0.25s ease;
}
.footer__more:hover svg {
  transform: translate(1px, -1px);
}
.footer__more::after {
  transform: scaleX(1);
  opacity: 0.3;
}
.footer__more:hover::after {
  opacity: 1;
}

.footer__contact {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer__contact li {
  display: grid;
  justify-items: start;
  gap: 6px;
}
.footer__contact a {
  font-size: 15px;
  line-height: 1.6;
  color: var(--footer-note);
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: color 0.2s ease, background-size 0.45s var(--ease-out);
}
.footer__contact a:hover {
  color: var(--footer-link-active);
  background-size: 100% 1px;
}

/* Circles shrink evenly when the Contact column is narrower than the row */
.footer__socials {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 44px);
  justify-content: start;
  gap: 8px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}
.footer__socials a {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1;
  border: 1px solid rgba(246, 242, 236, 0.18);
  border-radius: 50%;
  color: var(--footer-note);
  transition: color 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}
.footer__socials a:hover {
  border-color: var(--footer-ivory);
  background: var(--footer-ivory);
  color: var(--color-ink);
}

/* ---------- Certifications ---------- */
/* Same tracks as .footer__grid: the copy sits under the brand block and each
   logo tile lines up with Explore / Visit / Contact above */
.footer__certs {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 24px 48px;
  margin-top: var(--space-lg);
  padding-top: 40px;
  border-top: 1px solid var(--footer-line);
}

.footer__certs-copy {
  display: grid;
  gap: 10px;
}
.footer__certs-text {
  max-width: 280px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--footer-link);
}

.footer__certs-list {
  grid-column: 2 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-columns: subgrid;
  gap: 48px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Each mark gets its own optical height so they read as the same size */
.footer__cert {
  --cert-h: 56px;
  position: relative;
  display: grid;
  place-items: center;
  height: 112px;
  padding: 0 24px;
  border: 1px solid var(--footer-line);
  border-radius: 2px;
  background: rgba(246, 242, 236, 0.03);
  transition: border-color 0.4s var(--ease-out), background-color 0.4s var(--ease-out);
}
.footer__cert--iso {
  --cert-h: 58px;
}
.footer__cert--gcs {
  --cert-h: 38px;
}
.footer__cert--globus {
  --cert-h: 70px;
}

/* Marks are knocked out to ivory so three different brand palettes sit as
   one quiet row on the dark surface */
.footer__cert img {
  display: block;
  width: auto;
  max-width: 100%;
  height: var(--cert-h);
  object-fit: contain;
  filter: grayscale(1) brightness(0) invert(1);
  opacity: 0.62;
  transition: opacity 0.5s var(--ease-out), transform 0.6s var(--ease-out);
}
/* The gold seal is a solid disc — a full knock-out flattens it, so it goes
   silver instead and keeps its engraving */
.footer__cert--globus img {
  filter: grayscale(1) brightness(1.5) contrast(0.95);
  opacity: 0.7;
}
.footer__cert:hover {
  border-color: rgba(246, 242, 236, 0.32);
  background: rgba(246, 242, 236, 0.06);
}
.footer__cert:hover img {
  opacity: 1;
  transform: scale(1.04);
}

/* ---------- Wordmark + legal bar ---------- */
/* Brand wordmark (images/wordmark.svg) masked so it keeps the faint fade */
.footer__wordmark {
  width: 100%;
  max-width: 1320px;
  aspect-ratio: 109.239 / 8.561;
  margin: var(--space-xl) auto 0;
  background: linear-gradient(180deg, rgba(246, 242, 236, 0.16) 0%, rgba(246, 242, 236, 0.02) 100%);
  -webkit-mask: url('../images/wordmark.svg') center / contain no-repeat;
  mask: url('../images/wordmark.svg') center / contain no-repeat;
  user-select: none;
  pointer-events: none;
}

/* Right padding keeps "Back to top" clear of the fixed WhatsApp button
   (20px inset + 56px wide + 16px breathing room) */
.footer__bottom {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
  max-width: 1320px;
  margin: 0 auto;
  padding-top: 24px;
  padding-right: max(0px, calc(92px - var(--gutter)));
  border-top: 1px solid var(--footer-line);
}

.footer__bottom p {
  font-size: 13px;
  color: var(--footer-copyright);
}
.footer__credit a {
  color: var(--footer-note);
  transition: color 0.2s ease;
}
.footer__credit a:hover {
  color: var(--footer-link-active);
}

.footer__top-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  padding: 4px 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: var(--label-tracking);
  text-transform: uppercase;
  color: var(--footer-note);
  transition: color 0.2s ease;
}
.footer__top-link svg {
  box-sizing: content-box;
  padding: 11px;
  border: 1px solid rgba(246, 242, 236, 0.18);
  border-radius: 50%;
  transition: transform 0.35s var(--ease-out), background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.footer__top-link:hover {
  color: var(--footer-link-active);
}
.footer__top-link:hover svg {
  border-color: var(--footer-ivory);
  background: var(--footer-ivory);
  color: var(--color-ink);
  transform: translateY(-3px);
}

@media (max-width: 1199px) {
  .footer__grid,
  .footer__certs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .footer__certs-copy,
  .footer__certs-list {
    grid-column: 1 / -1;
  }
  .footer__brand {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    gap: 24px;
  }
}

@media (max-width: 809px) {
  .footer {
    padding-top: var(--space-lg);
  }
  .footer__cta {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }
  .footer__cta-actions {
    align-items: stretch;
  }
  .footer__cta-btn {
    justify-content: space-between;
  }
  .footer__cta-actions .footer__more {
    align-self: flex-start;
  }
  .footer__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 44px 24px;
  }
  .footer__brand {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer__grid > .footer__col {
    grid-column: 1 / -1;
  }
  .footer__links--split {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer__links a {
    padding: 6px 0;
  }
  .footer__certs {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 32px;
  }
  .footer__certs-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  .footer__cert {
    height: 84px;
    padding: 0 10px;
  }
  .footer__cert--iso {
    --cert-h: 42px;
  }
  .footer__cert--gcs {
    --cert-h: 26px;
  }
  .footer__cert--globus {
    --cert-h: 52px;
  }
  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer__top-link {
    order: -1;
    margin: 0 0 12px;
  }
}

/* ==========================================================================
 * Text reveals (armed by js/main.js initTextReveal — [data-tr] is set by JS,
 * so text is fully visible without it)
 *   mask — words rise out of a clip, with a slight settle from a tilt
 *   wipe — eyebrows draw in left to right
 *   ink  — words settle in from a soft blur
 * Delay = the block's own stagger (--tr-base) + the word's index (--k).
 * ======================================================================== */

/* Blocks that also carry [data-reveal-in] hand their motion to the words */
.is-armed [data-reveal-in][data-tr][data-tr] {
  opacity: 1;
  translate: none;
}

tr-w,
tr-i {
  display: inline-block;
}

/* --- mask --- */
/* Padding (cancelled by margin) lets the clip clear ascenders and descenders */
[data-tr='mask'] tr-w {
  padding: 0.12em 0.08em 0.2em;
  margin: -0.12em -0.08em -0.2em;
  clip-path: inset(0);
}
[data-tr='mask'] tr-i {
  transform-origin: 0 100%;
  transform: translate3d(0, 110%, 0) rotate(4deg);
  transition: transform 0.7s var(--ease-out);
  transition-delay: calc(var(--tr-base, 0ms) + min(var(--k, 0) * 35ms, 350ms));
  will-change: transform;
}
[data-tr='mask'].tr-in tr-i {
  transform: none;
}

/* --- wipe --- */
[data-tr='wipe'] {
  clip-path: inset(0 100% 0 0);
  opacity: 0;
  translate: -14px 0;
  transition:
    clip-path 0.7s var(--ease-out),
    opacity 0.4s ease,
    translate 0.7s var(--ease-out);
  transition-delay: var(--tr-base, 0ms);
}
[data-tr='wipe'].tr-in {
  clip-path: inset(0 0 0 0);
  opacity: 1;
  translate: 0 0;
}

/* --- ink --- */
/* No per-word blur: filter on dozens of words repaints every frame and stutters */
[data-tr='ink'] tr-w {
  opacity: 0;
  transform: translate3d(0, 0.35em, 0);
  transition:
    opacity 0.5s ease,
    transform 0.6s var(--ease-out);
  transition-delay: calc(var(--tr-base, 0ms) + 80ms + min(var(--k, 0) * 10ms, 300ms));
  will-change: opacity, transform;
}
[data-tr='ink'].tr-in tr-w {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
 * Mobile refinements — fit, thumb reach and 44px touch targets
 * ======================================================================== */
@media (max-width: 809px) {
  /* Wordmark sized to the viewport so the SCENTessence lockup never crops */
  .hero__title {
    font-size: clamp(44px, 16vw, 133px);
  }

  /* Text links: keep the look, grow the hit area */
  .link-underline {
    display: inline-block;
    padding: 12px 0;
  }
  .link-underline::after {
    bottom: 8px;
  }

  /* Gifting name chips */
  .gift__chips {
    gap: 8px;
  }
  .gift__chips button {
    min-height: 40px;
    padding: 8px 16px;
    font-size: 14px;
  }

  /* Dial nodes stay small visually, but take a full finger */
  .plabel__node button::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
  }

  .voices__dots {
    gap: 0;
  }
  .voices__dots button {
    width: 36px;
    height: 44px;
  }

  /* Footer lists: roomier rows for thumbs */
  .footer__links {
    gap: 2px;
  }
  .footer__links a,
  .footer__more,
  .footer__contact a {
    padding: 8px 0;
  }
  .footer__links a::after,
  .footer__more::after {
    bottom: 7px;
  }
  .footer__credit a {
    display: inline-block;
    padding: 8px 0;
  }
}


/* ===== WhatsApp floating button (shared across all pages) ===== */
.wa-fab {
  position: fixed;
  right: calc(20px + env(safe-area-inset-right, 0px));
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  z-index: 40; /* under the nav (50) so the mobile menu sheet covers it */
  display: flex;
  align-items: center;
  height: 56px;
  padding: 0 16px;
  border-radius: 999px;
  background: #25d366;
  color: var(--color-white);
  box-shadow: 0 14px 32px -12px rgba(18, 140, 126, 0.6), 0 2px 6px rgba(28, 25, 21, 0.18);
  animation: wa-fab-in 0.8s 1.2s var(--ease-out) both;
  transition: background-color 0.3s ease, translate 0.3s var(--ease-out), opacity 0.3s ease;
}
.wa-fab:hover {
  background: #1ebe57;
  translate: 0 -2px;
}
.wa-fab svg {
  flex: none;
  width: 24px;
  height: 24px;
}
/* Label slides open on hover / focus (pointer devices); icon-only otherwise */
.wa-fab__label {
  display: grid;
  grid-template-columns: 0fr;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: grid-template-columns 0.45s var(--ease-out);
}
.wa-fab__label > span {
  overflow: hidden;
}
.wa-fab__label > span::before {
  content: '';
  display: inline-block;
  width: 10px;
}
.wa-fab:hover .wa-fab__label,
.wa-fab:focus-visible .wa-fab__label {
  grid-template-columns: 1fr;
}
/* "Online" dot — hidden now that the whole button is WhatsApp green */
.wa-fab__dot {
  display: none;
  position: absolute;
  top: 6px;
  left: 38px;
  width: 10px;
  height: 10px;
  border: 2px solid var(--color-ink);
  border-radius: 50%;
  background: #25d366;
}
.is-menu-open .wa-fab {
  opacity: 0;
  pointer-events: none;
}
@keyframes wa-fab-in {
  from {
    opacity: 0;
    translate: 0 16px;
  }
}
@media (max-width: 809px) {
  .wa-fab {
    right: calc(16px + env(safe-area-inset-right, 0px));
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    height: 52px;
    padding: 0 14px;
  }
  .wa-fab__dot {
    left: 34px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .wa-fab {
    animation: none;
  }
  .wa-fab,
  .wa-fab__label {
    transition: none;
  }
}
