/* =========================================================
   The Perfume Factory · Homepage
   Layout concept: a factory drawing set. Ivory sheets on a
   hairline column grid, interrupted by forest-green plates.
   Built by SciWiz Technologies, October 2026.
   ========================================================= */

:root {
  /* Colour (TPF design system, Option 01) */
  --forest: #153B30;
  --forest-deep: #0E2A22;
  --forest-mid: #2E4F44;
  --gold: #C6AC7A;
  --gold-ink: #735C32;
  --ivory: #F3EEE5;
  --ivory-50: #F9F6F0;
  --ivory-200: #E8E1D3;
  --ink: #18201C;
  --ink-muted: #4D544F;
  --sage: #B9C2B8;
  --line: rgba(21, 59, 48, 0.18);
  --line-faint: rgba(21, 59, 48, 0.07);
  --line-gold: rgba(198, 172, 122, 0.32);

  /* Type */
  --display: "Bodoni Moda", "Bodoni 72", Didot, "Didot LT STD", Georgia, serif;
  --text: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --fs-h1: clamp(52px, 6.6vw, 104px);
  --fs-h2: clamp(38px, 4.6vw, 70px);
  --fs-h3: clamp(24px, 2vw, 30px);
  --fs-lead: 17px;
  --fs-body: 16px;
  --fs-small: 14px;
  --fs-eyebrow: 11px;

  /* Space and layout */
  --gutter: clamp(16px, 5vw, 72px);
  --section: clamp(88px, 11vw, 168px);
  --panel-w: clamp(420px, 40vw, 640px);
  --header-h: 88px;
  --logo-h: 34px;
  --max: 1440px;

  /* Motion */
  --ease: cubic-bezier(0.7, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body.tpf {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--text);
  font-size: var(--fs-body);
  line-height: 1.625;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
body.tpf::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 60;
  background: var(--ivory);
}
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 1px solid var(--gold-ink); outline-offset: 3px; }
::selection { background: var(--gold); color: var(--forest); }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--forest); color: var(--ivory); padding: 12px 18px; text-decoration: none;
}
.skip:focus { top: calc(12px + env(safe-area-inset-top, 0px)); }

.wrap {
  max-width: var(--max);
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

.grain {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  opacity: 0.14; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.6 0'/%3E%3C/filter%3E%3Crect width='260' height='260' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 260px 260px;
}

/* ---------- Type ---------- */
.eyebrow {
  display: flex; align-items: center; gap: 14px; margin: 0;
  font-size: var(--fs-eyebrow); font-weight: 500; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--gold-ink);
}
.eyebrow::before { content: ""; width: 40px; height: 1px; background: currentColor; flex-shrink: 0; }
.eyebrow--gold { color: var(--gold); }

.h2 {
  margin: 0;
  font-family: var(--display); font-weight: 400; font-size: var(--fs-h2);
  line-height: 1.02; letter-spacing: -0.015em; color: var(--forest);
  text-wrap: balance; font-optical-sizing: auto;
}
.h2 em, .hero__line--2 { font-style: italic; }
.h2--light { color: var(--ivory); }
.h2--light em { color: var(--gold); }

.link {
  font-size: 12px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase;
  text-decoration: none; color: var(--forest);
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  padding-bottom: 6px; transition: background-size 0.6s var(--ease);
}
.link:hover { background-size: 0 1px; background-position: 100% 100%; }
.link--light { color: var(--gold); }

/* ---------- Buttons (square, never pills) ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 14px;
  min-height: 52px; padding: 0 26px; border: 1px solid transparent; border-radius: 0;
  font-size: 12px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; overflow: hidden; isolation: isolate;
  transition: color 0.5s var(--ease), border-color 0.5s var(--ease);
  will-change: transform;
}
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  transform: scaleY(0); transform-origin: 50% 100%;
  transition: transform 0.55s var(--ease);
}
.btn:hover::after, .btn:focus-visible::after { transform: scaleY(1); }
.btn__arrow { display: inline-block; transition: transform 0.5s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }
.btn--forest { background: var(--forest); color: var(--ivory); }
.btn--forest::after { background: var(--gold); }
.btn--forest:hover { color: var(--forest); }
.btn--gold { background: var(--gold); color: var(--forest); }
.btn--gold::after { background: var(--ivory); }
.btn--line { border-color: var(--gold); color: var(--gold); background: transparent; }
.btn--line::after { background: var(--gold); }
.btn--line:hover { color: var(--forest); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  transition: transform 0.6s var(--ease), background-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.site-header__inner {
  display: grid; grid-template-columns: minmax(0, 1fr) var(--panel-w);
  height: var(--header-h); max-width: none;
}
.site-header__left {
  display: flex; align-items: center; gap: clamp(28px, 4vw, 64px);
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
}
.site-header__right {
  display: flex; align-items: center; justify-content: flex-end; gap: 28px;
  padding-right: max(32px, env(safe-area-inset-right, 0px)); padding-left: 24px;
}
.site-header__logo { display: inline-flex; }
.site-header__logo img { height: var(--logo-h); width: auto; }
.site-nav { display: flex; gap: clamp(20px, 2.6vw, 40px); }
.site-nav a, .site-header__wa {
  font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; text-decoration: none;
  padding-block: 8px; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size 0.5s var(--ease);
}
.site-nav a { color: var(--forest); }
.site-nav a:hover, .site-header__wa:hover { background-size: 100% 1px; }
.site-header__wa { color: var(--ivory); }
.menu-btn {
  display: none; min-height: 44px; padding: 0 4px; background: none; border: 0; cursor: pointer;
  font-size: 12px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--forest);
}
.site-header.is-solid { background: var(--ivory); box-shadow: 0 1px 0 var(--line); }
.site-header.is-solid .site-header__wa { color: var(--forest); }
.site-header.is-solid .site-header__cta { background: var(--forest); color: var(--ivory); }
.site-header.is-solid .site-header__cta::after { background: var(--gold); }
.site-header.is-solid .site-header__cta:hover { color: var(--forest); }
.site-header.is-hidden { transform: translateY(-100%); }

.menu {
  position: fixed; inset: 0; z-index: 70; background: var(--forest); color: var(--ivory);
  padding: calc(var(--header-h) + 24px + env(safe-area-inset-top, 0px)) max(var(--gutter), env(safe-area-inset-right, 0px)) calc(32px + env(safe-area-inset-bottom, 0px)) max(var(--gutter), env(safe-area-inset-left, 0px));
  overflow-y: auto; overscroll-behavior: contain;
}
.menu__inner { display: flex; flex-direction: column; gap: 40px; min-height: 100%; }
/* The gold mark sits exactly where the header logo is, in the header row */
.menu__mark {
  position: absolute; left: max(var(--gutter), env(safe-area-inset-left, 0px));
  top: calc(env(safe-area-inset-top, 0px) + (var(--header-h) - var(--logo-h)) / 2);
  height: var(--logo-h); width: auto;
}
.menu__nav { display: flex; flex-direction: column; border-top: 1px solid var(--line-gold); }
.menu__nav a {
  font-family: var(--display); font-size: 34px; line-height: 1.1; text-decoration: none;
  padding: 16px 0; border-bottom: 1px solid var(--line-gold);
}
.menu__foot { margin-top: auto; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.menu__wa { color: var(--gold); font-size: 14px; letter-spacing: 0.04em; text-decoration: none; }
body.menu-open { overflow: hidden; }
/* While the menu is open the header rides above it, so the Menu button becomes a visible Close button */
body.menu-open .site-header { z-index: 80; background: transparent; box-shadow: none; transform: none; }
body.menu-open .site-header__logo { visibility: hidden; }
body.menu-open .menu-btn { color: var(--ivory); }
body.menu-open .site-header__cta, body.menu-open .site-header__wa { visibility: hidden; }
.menu-btn[aria-expanded="true"]::after {
  content: ""; width: 14px; height: 14px; margin-left: 12px;
  background:
    linear-gradient(45deg, transparent calc(50% - 0.6px), currentColor calc(50% - 0.6px), currentColor calc(50% + 0.6px), transparent calc(50% + 0.6px)),
    linear-gradient(-45deg, transparent calc(50% - 0.6px), currentColor calc(50% - 0.6px), currentColor calc(50% + 0.6px), transparent calc(50% + 0.6px));
}

/* ---------- Hero ---------- */
.hero {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) var(--panel-w);
  min-height: clamp(760px, 100svh, 960px);
  background: var(--ivory);
}
.hero__copy { position: relative; min-width: 0; }
.hero__grid {
  position: absolute; inset: 0 0 0 var(--gutter);
  background-image: linear-gradient(to right, var(--line-faint) 1px, transparent 1px);
  background-size: calc(100% / 8) 100%;
  pointer-events: none;
}
.hero__side {
  position: absolute; left: calc(var(--gutter) / 2 - 6px); top: 200px;
  writing-mode: vertical-rl; transform: rotate(180deg);
  font-size: 10px; letter-spacing: 0.4em; text-transform: uppercase; color: var(--ink-muted);
}
.hero__content {
  position: relative; height: 100%;
  display: flex; flex-direction: column;
  padding: calc(var(--header-h) + clamp(56px, 9vh, 112px)) clamp(24px, 3.4vw, 56px) 40px max(var(--gutter), env(safe-area-inset-left, 0px));
}
.hero__eyebrow { margin-left: calc((100% - 0px) / 8); }
.hero__title {
  margin: 28px 0 0; font-family: var(--display); font-weight: 400; font-size: var(--fs-h1);
  line-height: 0.98; letter-spacing: -0.02em; color: var(--forest);
}
.hero__line { display: block; }
.hero__line--1 { padding-left: calc(100% / 8); }
.hero__row {
  display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); margin-top: clamp(40px, 6vh, 64px);
  align-items: end;
}
.hero__lead { grid-column: 1 / span 3; margin: 0; padding-right: 32px; font-size: var(--fs-body); line-height: 26px; color: var(--ink-muted); max-width: 40ch; }
.hero__form { grid-column: 4 / span 5; display: flex; flex-direction: column; gap: 14px; padding-left: 32px; min-width: 0; }
.hero__label { font-size: var(--fs-eyebrow); letter-spacing: 0.32em; text-transform: uppercase; color: var(--gold-ink); }
.hero__field { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 18px 24px; }
.hero__input {
  flex: 1 1 260px; min-width: 0; border: 0; border-bottom: 1px solid var(--forest); border-radius: 0;
  background: transparent; padding: 6px 0 10px; font-family: var(--display); font-size: 26px; color: var(--forest);
  transition: border-color 0.4s var(--ease);
}
.hero__input::placeholder { color: #7D827B; font-style: italic; }
.hero__input:focus { outline: none; border-bottom-color: var(--gold-ink); }
.hero__field .btn { flex-shrink: 0; }
.hero__wa { align-self: flex-start; font-size: 11px; }
.hero__facts {
  margin: auto 0 0; padding-top: 18px; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px;
}
.hero__facts div { display: flex; flex-direction: column; gap: 2px; }
.hero__facts dt { font-family: var(--display); font-size: 22px; color: var(--forest); font-variant-numeric: lining-nums; }
.hero__facts dd { margin: 0; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-muted); }
.hero__row { margin-bottom: 56px; }

.hero__panel {
  position: relative; background: var(--forest); overflow: hidden; isolation: isolate;
  min-height: 100%; container-type: size; cursor: none;
}
/* The film covers the panel like object-fit: cover, so the label overlay stays locked to the bottle. */
.film {
  --zoom: 1.14; --px: 0px; --py: 0px;
  position: absolute; left: 50%; top: 50%;
  width: calc(max(100cqw, 100cqh * 0.5625) * var(--zoom)); aspect-ratio: 720 / 1280;
  transform: translate(calc(-50% + var(--px)), calc(-50% + var(--py))) scale(1.08);
  filter: brightness(0.5) saturate(0.85);
  transition: transform 2.6s var(--ease-out), filter 2.4s var(--ease);
}
.hero__panel.is-lit .film { transform: translate(calc(-50% + var(--px)), calc(-50% + var(--py))) scale(1); filter: none; }
.hero__panel.is-lit.is-tracking .film { transition: transform 1.2s var(--ease-out), filter 2.4s var(--ease); }
.film__poster, .film__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.film__video { opacity: 0; transition: opacity 0.4s linear; }
.film.is-playing .film__video, .film.has-played .film__video { opacity: 1; }
.film__label {
  position: absolute; z-index: 2; left: 40%; top: 45%; width: 19.72%; height: 16.41%;
  container-type: inline-size; cursor: none;
}
.film__label-in {
  position: absolute; inset: 0; box-sizing: border-box; pointer-events: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7cqw;
  padding: 10cqw 9cqw; text-align: center;
}
.film__label::after {          /* soft glow on the paper when the label is ready for typing */
  content: ""; position: absolute; inset: -2px; pointer-events: none; opacity: 0;
  box-shadow: 0 0 0 1px rgba(198, 172, 122, 0.9), 0 0 28px rgba(243, 222, 170, 0.55);
  transition: opacity 0.5s var(--ease);
}
.film__label:hover::after, .film__label.is-editing::after { opacity: 1; }
.film__rule { width: 12cqw; height: 1px; background: #8a6d3c; opacity: 0.8; }
.film__name {
  position: relative; font-family: var(--display); font-weight: 400; font-size: 14cqw; line-height: 1.12;
  letter-spacing: 0.14em; text-transform: uppercase; color: #1b3a30; max-width: 100%; overflow-wrap: anywhere;
  transition: font-size 0.4s var(--ease); -webkit-font-smoothing: antialiased; text-rendering: geometricPrecision;
}
.film__name.is-md { font-size: 10.5cqw; }
.film__name.is-sm { font-size: 8.2cqw; letter-spacing: 0.1em; }
.film__name .ink { animation: tpf-ink 0.55s var(--ease-out) both; }
@keyframes tpf-ink { from { opacity: 0; } to { opacity: 1; } }
.film__name .ph { color: #9a958a; }
.film__caret {
  display: inline-block; width: 1px; height: 0.95em; margin: 0 0 -0.12em 0.06em; background: #8a6d3c;
  animation: tpf-caret 1s steps(1) infinite;
}
@keyframes tpf-caret { 50% { opacity: 0; } }
.film__meta { font-size: 4.6cqw; letter-spacing: 0.3em; text-transform: uppercase; color: #5b5a4f; }
.film__input {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; border-radius: 0;
  background: transparent; color: transparent; caret-color: transparent; font-size: 16px; text-align: center;
  opacity: 0; /* hides iOS composition underlines and selection handles; the label draws the text */
  cursor: none; outline: none; -webkit-appearance: none; appearance: none;
}
.film__input::selection { background: transparent; color: transparent; }
.film__label:focus-within::after { opacity: 1; }
.film__count {
  position: absolute; z-index: 2; left: 40%; width: 19.72%; top: calc(45% + 16.41% + 0.9%);
  text-align: center; font-size: 10px; letter-spacing: 0.24em; color: #f3eee5; text-shadow: 0 1px 6px rgba(40, 20, 0, 0.6);
  opacity: 0; transition: opacity 0.4s var(--ease); pointer-events: none; font-variant-numeric: tabular-nums;
}
.film.is-editing .film__count { opacity: 1; }
.film__press {
  position: absolute; z-index: 1; left: 34%; top: 26%; width: 32%; height: 50%;
  background: transparent; border: 0; padding: 0; cursor: none; border-radius: 0;
}
.film__press:focus-visible { outline: 1px solid var(--gold); outline-offset: 4px; }
/* No grey tap flash over the bottle, label or film controls on phones */
.film__press, .film__label, .film__input, .film__sound, .film__cta, .hero__panel { -webkit-tap-highlight-color: transparent; }
.film__nozzle {               /* guides the visitor to the atomizer once the perfume has a name */
  position: absolute; z-index: 1; left: 50%; top: 29.3%; width: 4.6%; aspect-ratio: 1; margin: -2.3% 0 0 -2.3%;
  border-radius: 50%; pointer-events: none; opacity: 0;
}
.film__nozzle::before, .film__nozzle::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(255, 236, 196, 0.95);
  box-shadow: 0 0 14px rgba(255, 226, 170, 0.8);
}
.film.is-named .film__nozzle { opacity: 1; transition: opacity 0.6s var(--ease) 0.3s; }
.film.is-named .film__nozzle::before { animation: tpf-ring 2s var(--ease-out) infinite; }
.film.is-named .film__nozzle::after { animation: tpf-ring 2s var(--ease-out) 1s infinite; }
@keyframes tpf-ring { from { transform: scale(0.4); opacity: 1; } to { transform: scale(2.6); opacity: 0; } }
/* Touch guidance: on phones there is no hover cursor, so a tag sits on the scene itself */
.film__tag {
  position: absolute; z-index: 3; left: 50%; display: none; align-items: center; gap: 8px; white-space: nowrap;
  padding: 7px 12px 7px 10px; background: rgba(14, 42, 34, 0.62); border: 1px solid rgba(243, 238, 229, 0.5);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); pointer-events: none;
  font-family: var(--display); font-style: italic; font-size: 13px; color: var(--ivory);
  transform: translate(-50%, 0); transition: top 0.6s var(--ease), opacity 0.4s var(--ease);
}
.film__tag i { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); animation: tpf-pulse 1.8s var(--ease) infinite; }
.film__tag.at-label { top: calc(45% + 16.41% + 1.2%); }
.film__tag.at-nozzle { top: 28.6%; left: 56.5%; transform: translate(0, -50%); }
.film__tag.is-off { opacity: 0; }
@media (hover: none), (pointer: coarse) {
  .film__tag { display: inline-flex; }
  .hero__panel:not(.is-editing) .film__hint { display: none; }
}
.film.is-editing .film__tag { opacity: 0; }
.hero__panel .grain { z-index: 1; opacity: 0.07; }
.film__ui { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.film__ui::before {
  content: ""; position: absolute; inset: auto 0 0; height: 30%;
  background: linear-gradient(to bottom, rgba(14, 42, 34, 0), rgba(14, 42, 34, 0.5) 55%, rgba(14, 42, 34, 0.82));
}
.film__ui > * { z-index: 1; }
.film__spec {
  position: absolute; left: 32px; top: calc(var(--header-h) + 28px);
  font-size: 10px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--ivory);
  text-shadow: 0 1px 12px rgba(14, 42, 34, 0.6);
}
/* Spray sound toggle: quiet, top right of the film, on by default */
.film__sound {
  position: absolute; right: max(32px, env(safe-area-inset-right, 0px)); top: calc(var(--header-h) + 17px);
  display: inline-flex; align-items: center; gap: 9px; min-height: 32px; margin: 0; padding: 0 2px;
  background: none; border: 0; border-radius: 0; cursor: pointer; pointer-events: auto;
  font-size: 10px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--ivory);
  text-shadow: 0 1px 12px rgba(14, 42, 34, 0.6); opacity: 0.72; transition: opacity 0.4s var(--ease);
  animation: tpf-fade-in 1s var(--ease-out) 2.4s backwards;
}
@keyframes tpf-fade-in { from { opacity: 0; } }
.film__sound:hover, .film__sound:focus-visible { opacity: 1; }
.film__sound svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.film__sound-off { display: none; }
.film__sound[aria-pressed="false"] .film__sound-on { display: none; }
.film__sound[aria-pressed="false"] .film__sound-off { display: inline; }
.film__sound[aria-pressed="false"] { opacity: 0.55; }
.film__hint {
  position: absolute; left: 32px; bottom: 28px; display: flex; align-items: center; gap: 14px;
  font-family: var(--display); font-style: italic; font-size: 15px; color: var(--ivory);
}
.film__hint span { transition: color 0.8s var(--ease); }
.film__hint i { position: relative; width: 26px; height: 26px; border: 1px solid rgba(243, 238, 229, 0.5); border-radius: 50%; flex-shrink: 0; }
.film__hint i::after {
  content: ""; position: absolute; inset: 8px; border-radius: 50%; background: var(--gold);
  animation: tpf-pulse 2.2s var(--ease) infinite;
}
@keyframes tpf-pulse { 0%, 100% { transform: scale(0.6); opacity: 0.6; } 50% { transform: scale(1); opacity: 1; } }
.film__hint.is-done span { color: var(--sage); }
.film__cursor {
  position: absolute; left: 0; top: 0; z-index: 4; pointer-events: none;
  display: flex; align-items: center; gap: 12px; white-space: nowrap;
  transform: translate3d(var(--cx, -200px), var(--cy, -200px), 0); opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.film__cursor i {
  display: block; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%;
  background: var(--ivory); box-shadow: 0 0 0 1px rgba(21, 59, 48, 0.35), 0 0 16px rgba(255, 230, 180, 0.7);
  transition: transform 0.35s var(--ease-out);
}
.film__cursor span {
  padding: 9px 14px; margin-top: -5px; background: rgba(14, 42, 34, 0.55); border: 1px solid rgba(243, 238, 229, 0.45);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  font-family: var(--display); font-style: italic; font-size: 14px; color: var(--ivory);
  opacity: 0; transform: translateX(-6px); transition: opacity 0.3s var(--ease), transform 0.4s var(--ease-out);
}
.film__cursor span:empty { display: none; }
.hero__panel.cursor-on .film__cursor { opacity: 1; }
.hero__panel.cursor-tip .film__cursor span { opacity: 1; transform: none; }
.hero__panel.cursor-tip .film__cursor i { transform: scale(1.5); }
.hero__panel.is-typing-cursor .film__cursor { opacity: 0; }
.film__cta {
  position: absolute; left: 32px; bottom: 22px; z-index: 2; pointer-events: auto;
  display: inline-flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 20px;
  background: var(--gold); color: var(--forest); text-decoration: none;
  font-size: 12px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase;
  animation: tpf-rise 0.7s var(--ease-out) both;
}
.film__cta b { font-weight: 600; }
.film__cta:hover { background: var(--ivory); }
@keyframes tpf-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.film__ui.has-cta .film__hint, .film__ui.has-cta .hero__scroll { visibility: hidden; }
@media (hover: none), (pointer: coarse) {
  .hero__panel, .film__press, .film__label, .film__input { cursor: pointer; }
  .film__cursor { display: none; }
}
.hero__scroll { position: absolute; right: max(32px, env(safe-area-inset-right, 0px)); bottom: 28px; font-size: 10px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--gold); }

/* ---------- Manifesto ---------- */
.manifesto { padding-block: var(--section); background: var(--ivory-50); border-block: 1px solid var(--line); }
.manifesto__inner { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; row-gap: 40px; }
.manifesto__eyebrow { grid-column: 1 / -1; }
.manifesto__text {
  grid-column: 2 / span 10; margin: 0;
  font-family: var(--display); font-size: clamp(34px, 4.4vw, 66px); line-height: 1.12; letter-spacing: -0.01em;
  color: var(--forest); text-wrap: balance;
}
.manifesto__text em { color: var(--gold-ink); }
.manifesto__aside { grid-column: 8 / span 4; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.manifesto__aside p { margin: 0; color: var(--ink-muted); max-width: 48ch; }

/* ---------- Ways to start ---------- */
.starts { background: var(--ivory-50); padding-block: var(--section); border-top: 1px solid var(--line); }
.starts__head { display: flex; flex-direction: column; gap: 22px; margin-bottom: 56px; }
.starts__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--forest); }
.start {
  position: relative; display: grid; grid-template-columns: 2fr 5fr 4fr 48px; align-items: baseline; gap: 32px;
  padding: 34px 24px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink);
  isolation: isolate; overflow: hidden;
  transition: color 0.6s var(--ease);
}
.start::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--forest);
  transform: scaleX(0); transform-origin: 0 50%; transition: transform 0.75s var(--ease);
}
.start:hover::before, .start:focus-visible::before { transform: scaleX(1); }
.start:hover, .start:focus-visible { color: var(--ivory); }
.start__for { font-size: var(--fs-eyebrow); letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold-ink); transition: color 0.6s var(--ease); }
.start:hover .start__for { color: var(--gold); }
.start__title { font-family: var(--display); font-size: clamp(28px, 3vw, 44px); line-height: 1.05; color: var(--forest); transition: color 0.6s var(--ease), transform 0.75s var(--ease); }
.start:hover .start__title { color: var(--ivory); transform: translateX(12px); }
.start__text { font-size: 15px; line-height: 24px; color: var(--ink-muted); transition: color 0.6s var(--ease); }
.start:hover .start__text { color: var(--sage); }
.start__arrow { font-size: 22px; justify-self: end; color: var(--forest); transition: transform 0.6s var(--ease), color 0.6s var(--ease); }
.start:hover .start__arrow { color: var(--gold); transform: translateX(6px); }

/* ---------- Image slots (placeholders until images exist) ---------- */
.ph {
  position: relative; margin: 0; overflow: hidden; background: var(--forest-mid);
  max-width: 100%;
}
.ph::before {
  content: ""; position: absolute; inset: 14px; border: 1px solid var(--line-gold); pointer-events: none;
}
.ph::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.18; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.6 0'/%3E%3C/filter%3E%3Crect width='260' height='260' filter='url(%23n)'/%3E%3C/svg%3E");
}
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.ph__cap {
  position: absolute; left: 28px; bottom: 24px; z-index: 0;
  font-family: var(--display); font-style: italic; font-size: 15px; color: var(--sage);
}
.ph.has-img::before, .ph.has-img::after, .ph.has-img .ph__cap { display: none; }

/* ---------- Process ---------- */
.process { padding-block: var(--section); background: var(--ivory); }
.process__inner { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; }
.process__aside { grid-column: 1 / span 4; }
.process__sticky {
  position: sticky; top: calc(var(--header-h) + 48px + env(safe-area-inset-top, 0px));
  display: flex; flex-direction: column; gap: 24px;
}
.process__intro { margin: 0; color: var(--ink-muted); max-width: 36ch; }
.process__meter { display: flex; align-items: center; gap: 18px; margin-top: 12px; }
.process__count { font-family: var(--display); font-size: 18px; color: var(--gold-ink); white-space: nowrap; min-width: 64px; }
.process__count b { font-weight: 400; color: var(--forest); }
.process__track { position: relative; flex: 1; height: 1px; background: var(--line); }
.process__bar { position: absolute; inset: 0; background: var(--gold-ink); transform-origin: 0 50%; transform: scaleX(0.2); }
.process__steps { grid-column: 6 / span 7; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: clamp(72px, 9vw, 128px); }
.step { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); column-gap: 32px; align-items: end; }
.step__fig { grid-column: 1 / span 4; aspect-ratio: 4 / 5; }
.step:nth-child(even) .step__fig { grid-column: 4 / span 4; grid-row: 1; }
.step:nth-child(even) .step__body { grid-column: 1 / span 3; grid-row: 1; }
.step__body { grid-column: 5 / span 3; display: flex; flex-direction: column; gap: 12px; padding-bottom: 8px; }
.step__num { font-family: var(--display); font-size: 15px; color: var(--gold-ink); }
.step__title { margin: 0; font-family: var(--display); font-weight: 400; font-size: var(--fs-h3); line-height: 1.15; color: var(--forest); text-wrap: balance; }
.step__body p { margin: 0; font-size: 15px; line-height: 24px; color: var(--ink-muted); }

/* ---------- Composer ---------- */
.composer { position: relative; background: var(--forest); color: var(--ivory); padding-block: var(--section); overflow: hidden; }
.composer::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(42% 55% at 68% 50%, rgba(198, 172, 122, 0.12), rgba(21, 59, 48, 0) 70%),
              radial-gradient(120% 90% at 50% 50%, rgba(14, 42, 34, 0) 55%, rgba(9, 28, 22, 0.7) 100%);
}
.composer__inner { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; align-items: center; }
.composer__copy { grid-column: 1 / span 5; display: flex; flex-direction: column; align-items: flex-start; gap: 26px; }
.composer__text { margin: 0; color: var(--sage); max-width: 44ch; }
.composer__steps { list-style: none; margin: 0; padding: 0; width: 100%; border-top: 1px solid var(--line-gold); }
.composer__steps li { display: grid; grid-template-columns: 48px 90px 1fr; align-items: baseline; padding: 13px 0; border-bottom: 1px solid var(--line-gold); }
.composer__steps li span:first-child { font-family: var(--display); color: var(--gold); }
.composer__steps li span:nth-child(2) { font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--sage); }
.composer__steps b { font-family: var(--display); font-weight: 400; font-size: 20px; color: var(--ivory); }
.composer__steps b.is-empty { font-style: italic; font-size: 17px; color: #8FA096; }
.composer__stage { grid-column: 7 / span 6; display: flex; flex-direction: column; align-items: center; gap: 28px; min-width: 0; }

.wheel { position: relative; width: min(100%, 600px); aspect-ratio: 1; }
.wheel__rings { position: absolute; inset: -5%; width: 110%; height: 110%; overflow: visible; }
.wheel__ring { fill: none; stroke: var(--gold); stroke-opacity: 0.45; stroke-width: 1; }
.wheel__ticks circle { fill: none; stroke: var(--gold); stroke-opacity: 0.35; stroke-width: 6; stroke-dasharray: 1 11; }
.wheel__ticks { transform-origin: 330px 330px; animation: tpf-spin 240s linear infinite; }
.wheel__cross { stroke: var(--gold); stroke-opacity: 0.08; fill: none; }
@keyframes tpf-spin { to { transform: rotate(360deg); } }
.tier { position: absolute; inset: 0; pointer-events: none; }
.tier > * { pointer-events: auto; }
.tier__name, .note, .note-own {
  position: absolute;
  left: calc(50% + var(--r) * cos(calc(var(--a) * 1deg)));
  top: calc(50% + var(--r) * sin(calc(var(--a) * 1deg)));
  transform: translate(-50%, -50%);
}
.tier[data-tier="top"] { --r: 46%; }
.tier[data-tier="heart"] { --r: 34%; }
.tier[data-tier="base"] { --r: 22%; }
.tier__name { padding: 0 10px; background: var(--forest); font-family: var(--display); font-style: italic; font-size: 14px; color: var(--gold); }
.note {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px;
  background: transparent; border: 0; cursor: pointer; white-space: nowrap;
  font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--sage);
  transition: color 0.4s var(--ease);
}
.note i { width: 5px; height: 5px; border-radius: 50%; border: 1px solid var(--gold); transition: all 0.5s var(--ease-out); flex-shrink: 0; }
.note:hover { color: var(--ivory); }
.note[aria-pressed="true"] { color: var(--gold); }
.note[aria-pressed="true"] i { width: 7px; height: 7px; background: var(--gold); box-shadow: 0 0 0 4px rgba(198, 172, 122, 0.18); }
/* "Your own" note: one per ring, at the bottom of the ring opposite its tier name */
.note-own {
  display: inline-flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 12px;
  background: var(--forest); cursor: text;
}
.note-own i { width: 6px; height: 6px; border-radius: 50%; border: 1px dashed var(--gold); flex-shrink: 0; transition: all 0.5s var(--ease-out); }
.note-own__input {
  width: 9.5em; min-width: 0; margin: 0; padding: 5px 0 4px; border: 0; border-bottom: 1px solid var(--line-gold); border-radius: 0;
  background: transparent; outline: none; -webkit-appearance: none; appearance: none;
  font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ivory);
  transition: border-color 0.4s var(--ease), color 0.4s var(--ease);
}
@supports (field-sizing: content) {
  .note-own__input { field-sizing: content; width: auto; min-width: 8.5em; max-width: 16em; }
}
.note-own__input::placeholder { color: var(--sage); opacity: 0.8; }
.note-own__input:focus { border-bottom-color: var(--gold); }
.note-own__input:focus::placeholder { opacity: 0.4; }
.note-own.is-on i { width: 7px; height: 7px; border-style: solid; background: var(--gold); box-shadow: 0 0 0 4px rgba(198, 172, 122, 0.18); }
.note-own.is-on .note-own__input { color: var(--gold); border-bottom-color: var(--gold); }
.vial { position: absolute; left: 50%; top: 50%; width: 9.4%; height: 30%; transform: translate(-50%, -46%); display: flex; flex-direction: column; align-items: center; }
.vial__cap { width: 26%; height: 4%; background: var(--gold); }
.vial__neck { width: 46%; height: 6%; border: 1px solid var(--gold); border-bottom: 0; }
.vial__body { position: relative; width: 100%; flex: 1; border: 1px solid var(--gold); border-radius: 2px 2px 999px 999px; overflow: hidden; display: flex; flex-direction: column-reverse; background: rgba(243, 238, 229, 0.04); }
.vial__layer { display: block; height: 0; background: var(--gold); transition: height 0.9s cubic-bezier(0.34, 1.56, 0.64, 1); }
.vial__layer.is-on { height: 30%; }
.vial__layer--base { opacity: 0.95; }
.vial__layer--heart { opacity: 0.62; }
.vial__layer--top { opacity: 0.34; }
.accord { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.accord span { font-size: 10px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--sage); }
.accord b { font-family: var(--display); font-style: italic; font-weight: 400; font-size: 26px; color: var(--ivory); }

/* ---------- Products (horizontal on desktop) ---------- */
.products { position: relative; background: var(--ivory); padding-block: var(--section); overflow: hidden; border-top: 1px solid var(--line); }
.products__track {
  display: flex; align-items: flex-start; gap: clamp(32px, 4vw, 64px);
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
  overflow-x: auto; scrollbar-width: thin;
}
.products.is-pinned .products__track { overflow: visible; width: max-content; will-change: transform; }
.products__intro { flex: 0 0 min(440px, 80vw); display: flex; flex-direction: column; gap: 24px; padding-top: 40px; }
.products__intro p { margin: 0; color: var(--ink-muted); max-width: 38ch; }
.products__hint { font-size: 10px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--gold-ink); display: flex; align-items: center; gap: 12px; }
.products__hint::after { content: ""; width: 56px; height: 1px; background: currentColor; }
.plate { flex: 0 0 clamp(280px, 26vw, 400px); display: flex; flex-direction: column; gap: 18px; }
.plate--low { margin-top: clamp(48px, 8vw, 120px); }
.plate__fig { aspect-ratio: 3 / 4; }
.plate__fig img { transition: transform 1.2s var(--ease-out); }
.plate:hover .plate__fig img { transform: scale(1.05); }
.plate__title { margin: 0; font-family: var(--display); font-weight: 400; font-size: var(--fs-h3); line-height: 1.15; color: var(--forest); }
.plate__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.plate__list li { padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--ink-muted); }
.products.is-pinned { padding-block: 56px 40px; }
.products.is-pinned .plate { flex-basis: clamp(240px, min(26vw, calc((100svh - 440px) * 0.8)), 400px); }
.products.is-pinned .plate__fig { aspect-ratio: 4 / 5; }
/* The images drift ±6% sideways while the row scrolls; oversize them so the frame never shows its green backing */
.products.is-pinned .plate__fig img { width: 116%; max-width: none; left: -8%; }
.products.is-pinned .plate--low { margin-top: 64px; }
.products.is-pinned .plate__list li { padding: 7px 0; font-size: 13px; }

/* ---------- Factory figures ---------- */
.factory { background: var(--forest-deep); color: var(--ivory); padding-bottom: var(--section); }
.factory__fig { height: clamp(320px, 52vw, 720px); }
.factory__fig img { height: 120%; top: -10%; }
.factory__inner { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; row-gap: 56px; margin-top: calc(var(--section) * -0.45); position: relative; z-index: 2; }
.factory__head {
  grid-column: 1 / span 5; align-self: start; display: flex; flex-direction: column; align-items: flex-start; gap: 26px;
  background: var(--forest-deep); padding: 48px 48px 0 0;
}
.figures { grid-column: 7 / span 6; margin: calc(var(--section) * 0.45) 0 0; display: flex; flex-direction: column; border-top: 1px solid var(--line-gold); }
.figure { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 4fr); align-items: baseline; gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--line-gold); }
.figure:nth-child(even) .figure__num { padding-left: 12%; }
.figure__num { font-family: var(--display); font-size: clamp(56px, 6.4vw, 104px); line-height: 0.95; color: var(--gold); font-variant-numeric: lining-nums tabular-nums; }
.figure dd { margin: 0; font-size: 14px; line-height: 22px; color: var(--sage); }
.figure dd b { display: block; font-weight: 500; font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ivory); margin-bottom: 4px; }

/* ---------- Clients ---------- */
.clients { position: relative; background: var(--ivory); padding-block: var(--section); }
.clients__inner { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; row-gap: 48px; }
.clients__head { grid-column: 1 / span 4; display: flex; flex-direction: column; gap: 22px; align-self: start; }
.clients__list { grid-column: 6 / span 7; list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--forest); }
.clients__list li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 24px;
  padding: 22px 0; border-bottom: 1px solid var(--line); cursor: default;
}
.clients__name { font-family: var(--display); font-size: clamp(22px, 2.2vw, 32px); line-height: 1.15; color: var(--forest); transition: transform 0.6s var(--ease), color 0.4s var(--ease); }
.clients__note { flex-shrink: 0; font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-ink); text-align: right; }
.clients__list li:hover .clients__name { transform: translateX(14px); color: var(--gold-ink); }
.hover-img {
  position: fixed; left: 0; top: 0; z-index: 40; width: 240px; aspect-ratio: 4 / 5; pointer-events: none;
  overflow: hidden; opacity: 0; visibility: hidden;
}
.hover-img img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Lounge ---------- */
.lounge { position: relative; background: var(--forest); }
.lounge__fig { height: clamp(420px, 46vw, 680px); }
.lounge__fig img { height: 120%; top: -10%; }
.lounge__inner { position: relative; z-index: 2; margin-top: -180px; padding-bottom: var(--section); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; }
.lounge__card {
  grid-column: 2 / span 6; background: var(--ivory); color: var(--ink);
  padding: clamp(32px, 4.4vw, 64px); display: flex; flex-direction: column; gap: 24px;
}
.lounge__card p:not(.eyebrow) { margin: 0; color: var(--ink-muted); max-width: 46ch; }
.lounge__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 32px; margin-top: 8px; }
.lounge__addr { font-size: 13px; line-height: 20px; color: var(--ink-muted); }

/* ---------- Brief form ---------- */
.brief { position: relative; background: var(--forest); color: var(--ivory); padding-block: var(--section); overflow: hidden; border-top: 1px solid var(--line-gold); }
.brief__inner { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; row-gap: 56px; }
.brief__copy { grid-column: 1 / span 4; display: flex; flex-direction: column; gap: 26px; }
.brief__text { margin: 0; color: var(--sage); max-width: 38ch; }
.brief__contacts { margin: 8px 0 0; border-top: 1px solid var(--line-gold); }
.brief__contacts div { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line-gold); }
.brief__contacts dt { font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); padding-top: 2px; }
.brief__contacts dd { margin: 0; font-size: 15px; color: var(--ivory); overflow-wrap: anywhere; }
.brief__contacts a { text-decoration: none; }
.brief__contacts a:hover { color: var(--gold); }
.brief__form, .brief__done { grid-column: 6 / span 7; }
.brief__form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 40px; align-content: start; }
.intent { grid-column: 1 / -1; border: 0; margin: 0; padding: 0; min-width: 0; }
.intent__opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 12px; border: 1px solid var(--line-gold); }
.intent__opt { position: relative; cursor: pointer; }
.intent__opt + .intent__opt { border-left: 1px solid var(--line-gold); }
.intent__opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.intent__opt span { display: flex; align-items: center; justify-content: center; min-height: 56px; padding: 8px 14px; text-align: center; font-size: 13px; line-height: 1.3; color: var(--sage); transition: background-color 0.5s var(--ease), color 0.5s var(--ease); }
.intent__opt input:checked + span { background: var(--gold); color: var(--forest); }
.intent__opt input:focus-visible + span { outline: 1px solid var(--ivory); outline-offset: -5px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field--wide { grid-column: 1 / -1; }
.field__label { font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); }
.field__label span { letter-spacing: 0.1em; text-transform: none; color: var(--sage); }
.field__input {
  width: 100%; border: 0; border-bottom: 1px solid rgba(243, 238, 229, 0.4); border-radius: 0; background: transparent;
  padding: 8px 0 12px; font-size: 17px; color: var(--ivory);
  transition: border-color 0.4s var(--ease);
}
.field__input:focus { outline: none; border-bottom-color: var(--gold); }
.field__input::placeholder { color: #7F9288; }
select.field__input {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 28px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23C6AC7A' stroke-width='1.25'/%3E%3C/svg%3E") no-repeat right 4px center;
}
select.field__input option { background: var(--forest); color: var(--ivory); }
textarea.field__input { resize: vertical; min-height: 84px; }
.field.is-invalid .field__input { border-bottom-color: #E6A491; }
.brief__error { grid-column: 1 / -1; margin: 0; color: #F0BFAE; font-size: 14px; }
.brief__submit { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; }
.brief__done { display: flex; flex-direction: column; gap: 18px; align-self: center; }
.brief__done:focus { outline: none; }
.brief__done-title { margin: 0; font-family: var(--display); font-size: clamp(36px, 4vw, 56px); line-height: 1.05; color: var(--ivory); }
.brief__done p:last-child { margin: 0; color: var(--sage); max-width: 46ch; }

/* ---------- Footer ---------- */
.site-footer { background: var(--forest-deep); color: var(--sage); padding-block: clamp(72px, 9vw, 128px) calc(32px + env(safe-area-inset-bottom, 0px)); }
.site-footer__tagline {
  margin: 0 0 clamp(56px, 7vw, 96px); font-family: var(--display); font-size: clamp(44px, 8.4vw, 132px); line-height: 0.95;
  letter-spacing: -0.02em; color: var(--ivory);
}
.site-footer__tagline em { color: var(--gold); }
.site-footer__grid { display: grid; grid-template-columns: 4fr 3fr 3fr 2fr; gap: 40px; padding-top: 40px; border-top: 1px solid var(--line-gold); }
.site-footer__logo { width: 180px; height: auto; }
.site-footer__h { margin: 0 0 12px; font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold); }
.site-footer__grid p { margin: 0; font-size: 14px; line-height: 26px; }
.site-footer a { text-decoration: none; color: var(--ivory); }
.site-footer a:hover { color: var(--gold); }
.site-footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line-gold); font-size: 12px; letter-spacing: 0.08em; }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed; z-index: 45;
  right: calc(20px + env(safe-area-inset-right, 0px)); bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 18px;
  background: var(--forest); color: var(--gold); border: 1px solid var(--line-gold); text-decoration: none;
  font-size: 11px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase;
  transform: translateY(140%); transition: transform 0.6s var(--ease), background-color 0.4s var(--ease), color 0.4s var(--ease);
}
.wa-float.is-visible { transform: none; }
.wa-float:hover { background: var(--gold); color: var(--forest); }
.wa-float svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.25; stroke-linecap: square; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1180px) {
  .site-nav { display: none; }
  .menu-btn { display: inline-flex; align-items: center; }
  .site-header__wa { display: none; }
}
/* 1024 to 1180px: the transparent header's right column sits on the green hero panel */
@media (min-width: 1024px) and (max-width: 1180px) {
  .site-header:not(.is-solid) .menu-btn { color: var(--ivory); }
}

@media (max-width: 1023px) {
  :root { --header-h: 72px; }
  .site-header { background: var(--ivory); box-shadow: 0 1px 0 var(--line); }
  .site-header__inner { grid-template-columns: 1fr auto; }
  .site-header__right { padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); gap: 16px; }
  .site-header__cta { background: var(--forest); color: var(--ivory); min-height: 44px; padding: 0 18px; }
  .site-header__cta::after { background: var(--gold); }

  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero__grid, .hero__side { display: none; }
  .hero__content { padding: calc(var(--header-h) + 48px) max(var(--gutter), env(safe-area-inset-right, 0px)) 40px max(var(--gutter), env(safe-area-inset-left, 0px)); }
  .hero__eyebrow, .hero__line--1 { margin-left: 0; padding-left: 0; }
  .hero__row { grid-template-columns: 1fr; row-gap: 32px; }
  .hero__lead, .hero__form { grid-column: 1; padding: 0; }
  .hero { padding-top: var(--header-h); }
  .hero__panel { order: -1; min-height: min(64svh, 600px); }
  .hero__content { padding-top: 40px; }
  .film__spec { top: 20px; left: max(var(--gutter), env(safe-area-inset-left, 0px)); }
  .film__sound { top: 9px; right: max(var(--gutter), env(safe-area-inset-right, 0px)); }
  .film__hint { left: max(var(--gutter), env(safe-area-inset-left, 0px)); bottom: 20px; right: 90px; }
  .film__cta { left: max(var(--gutter), env(safe-area-inset-left, 0px)); bottom: 16px; }
  .film { --zoom: 1.2; }
  .hero__scroll { bottom: 20px; }

  .manifesto__text { grid-column: 1 / -1; }
  .manifesto__aside { grid-column: 1 / -1; }
  .start { grid-template-columns: 1fr 40px; gap: 10px 24px; padding: 28px 16px; }
  .start__for, .start__title, .start__text { grid-column: 1; }
  .start__arrow { grid-column: 2; grid-row: 1 / span 3; align-self: center; }

  .process__aside, .process__steps { grid-column: 1 / -1; }
  .process__sticky { position: static; margin-bottom: 56px; }
  .process__meter { display: none; }

  .composer__copy, .composer__stage { grid-column: 1 / -1; }
  .composer__stage { margin-top: 56px; }

  .factory__head, .figures { grid-column: 1 / -1; }
  .factory__head { padding-right: 0; }
  .figures { margin-top: 0; }

  .clients__head, .clients__list { grid-column: 1 / -1; }
  .lounge__card { grid-column: 1 / -1; }
  .lounge__inner { margin-top: -96px; }
  .brief__copy, .brief__form, .brief__done { grid-column: 1 / -1; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .site-header__cta { display: none; }
  .hero__title { font-size: clamp(46px, 13vw, 72px); }
  .hero__field { flex-direction: column; align-items: stretch; }
  .hero__input { flex: none; }
  .hero__field .btn { justify-content: space-between; }
  .hero__facts { grid-template-columns: 1fr; gap: 14px; }
  .hero__facts div { flex-direction: row; align-items: baseline; gap: 12px; }
  .hero__panel { min-height: min(62svh, 520px); }

  .step, .step:nth-child(even) { grid-template-columns: 1fr; row-gap: 24px; }
  .step__fig, .step:nth-child(even) .step__fig, .step__body, .step:nth-child(even) .step__body { grid-column: 1; grid-row: auto; }

  /* Composer: rings become rows of notes */
  .wheel { aspect-ratio: auto; width: 100%; display: flex; flex-direction: column; gap: 20px; }
  .wheel__rings { display: none; }
  .tier { position: static; display: flex; flex-wrap: wrap; gap: 8px; padding-top: 14px; border-top: 1px solid var(--line-gold); }
  .tier__name, .note, .note-own { position: static; transform: none; }
  .note-own { flex: 1 1 100%; min-height: 44px; padding: 0 14px; border: 1px dashed var(--line-gold); background: transparent; }
  .note-own.is-on { border-style: solid; border-color: var(--gold); }
  .note-own__input { width: 100%; max-width: none; font-size: 16px; letter-spacing: 0.04em; text-transform: none; border-bottom: 0; }
  @supports (field-sizing: content) { .note-own__input { width: 100%; max-width: none; } }
  .tier__name { flex-basis: 100%; padding: 0; background: none; }
  .note { border: 1px solid var(--line-gold); padding: 0 14px; }
  .vial { position: relative; left: auto; top: auto; transform: none; width: 56px; height: 160px; margin: 8px auto 0; order: -1; }

  .products__track { flex-direction: column; overflow: visible; gap: 56px; }
  .products__intro, .plate { flex: none; width: 100%; padding-top: 0; }
  .plate--low { margin-top: 0; }
  .products__hint { display: none; }

  .figure { grid-template-columns: 1fr; gap: 8px; }
  .figure:nth-child(even) .figure__num { padding-left: 0; }
  .clients__list li { flex-direction: column; gap: 6px; }
  .clients__note { text-align: left; }
  .lounge__inner { margin-top: -64px; }
  .brief__form { grid-template-columns: 1fr; }
  .intent__opts { grid-template-columns: 1fr; }
  .intent__opt + .intent__opt { border-left: 0; border-top: 1px solid var(--line-gold); }
  .site-footer__grid { grid-template-columns: 1fr; }
  .wa-float span { display: none; }
  .wa-float { padding: 0 15px; }
}

/* =========================================================
   WordPress / Elementor compatibility
   ========================================================= */
.tpf .elementor-widget-html, .tpf .elementor-widget-html .elementor-widget-container { margin: 0; padding: 0; }
/* Hello Elementor's header-footer.css also styles .site-header and .site-footer (flex, padding).
   functions.php dequeues it; these lines keep the layout safe if a future Hello update renames it. */
.tpf .site-header { display: block; margin: 0; padding: env(safe-area-inset-top, 0px) 0 0; max-width: none; }
.tpf .site-header__inner { width: 100%; }
.tpf .site-footer { display: block; margin: 0; max-width: none; }
/* Elementor's ".elementor img { height: auto; max-width: 100% }" outranks single-class image rules */
.tpf .menu__mark { height: var(--logo-h); max-width: none; }
.tpf .film__poster { height: 100%; max-width: none; }
.tpf .btn--forest:hover { background: var(--forest); }
.tpf .btn--gold:hover { background: var(--gold); }
.tpf .note:hover, .tpf .note:focus, .tpf .menu-btn:hover, .tpf .menu-btn:focus { background: transparent; }
/* Elementor Pro Form placed inside a container with the CSS class "brief" */
.tpf .brief .elementor-field-group { margin-bottom: 30px; }
.tpf .brief .elementor-field-label { font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); }
.tpf .brief .elementor-field-textual, .tpf .brief .elementor-select-wrapper select {
  background: transparent; border: 0; border-bottom: 1px solid rgba(243, 238, 229, 0.4); border-radius: 0;
  padding: 8px 0 12px; font-family: var(--text); font-size: 17px; color: var(--ivory); box-shadow: none;
}
.tpf .brief .elementor-field-textual:focus, .tpf .brief .elementor-select-wrapper select:focus { border-bottom-color: var(--gold); outline: none; }
.tpf .brief .elementor-select-wrapper select option { background: var(--forest); }
.tpf .brief .elementor-field-subgroup .elementor-field-option label { color: var(--sage); }
.tpf .brief .elementor-button {
  min-height: 52px; padding: 0 26px; border-radius: 0; background: var(--gold); color: var(--forest);
  font-family: var(--text); font-size: 12px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase;
  transition: background-color 0.5s var(--ease);
}
.tpf .brief .elementor-button:hover { background: var(--ivory); color: var(--forest); }
.tpf .brief .elementor-message { color: var(--ivory); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation: none !important; }
}

/* =========================================================
   Mobile refinements (v1.0.1, 23 Oct 2026)
   Tighter rhythm, composer picker before its CTA,
   product categories as a swipe carousel.
   ========================================================= */
@media (max-width: 760px) {
  :root { --section: 72px; --header-h: 60px; --logo-h: 28px; }
  .menu-btn { margin-right: -4px; }

  /* Hero film: keep the bottle clear of overlay text on a narrow frame */
  .film__spec, .hero__scroll { display: none; }
  .film__sound { top: 6px; min-height: 44px; }

  /* 12-column grids stack to one column here, so their 32px column gaps only
     force the page wider than small phones (11 x 32px > a 360px screen) */
  .manifesto__inner, .process__inner, .composer__inner, .factory__inner,
  .clients__inner, .lounge__inner, .brief__inner { column-gap: 0; }

  /* Hero */
  .hero__content { padding-top: 32px; }
  .hero__row { margin-top: 28px; margin-bottom: 40px; }
  .hero__facts dt { white-space: nowrap; }

  /* Manifesto and ways to begin */
  .manifesto__inner { row-gap: 28px; }
  .starts__head { margin-bottom: 32px; }
  .start { padding: 24px 4px; }

  /* Process: shorter images, closer steps */
  .process__sticky { margin-bottom: 40px; }
  .process__steps { gap: 48px; }
  .step, .step:nth-child(even) { row-gap: 18px; }
  .step__fig { aspect-ratio: 4 / 3; }

  /* Composer: intro, then the picker, then the button */
  .composer__inner { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
  .composer__copy { display: contents; }
  .composer__steps { display: none; }
  .composer__stage { order: 1; width: 100%; margin-top: 4px; gap: 22px; }
  .composer [data-accord-send] { order: 2; align-self: stretch; justify-content: space-between; margin-top: 4px; }
  .vial { height: 132px; }

  /* Products: swipe carousel, intro stays put above it */
  .products__track {
    display: grid; grid-auto-flow: column; grid-template-rows: auto auto; grid-auto-columns: 80%;
    column-gap: 16px; row-gap: 32px; overflow-x: auto; overflow-y: hidden;
    overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
    scroll-padding-inline: max(var(--gutter), env(safe-area-inset-left, 0px));
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .products__track::-webkit-scrollbar { display: none; }
  .products__intro {
    grid-row: 1; grid-column: 1 / span 5; position: sticky; left: 0;
    width: calc(100vw - 2 * max(var(--gutter), env(safe-area-inset-left, 0px))); gap: 18px;
  }
  .products__intro::after {
    content: "Swipe to see all five  \2192"; font-size: 10px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--gold-ink);
  }
  .plate { grid-row: 2; width: auto; scroll-snap-align: start; }
  .plate__fig { aspect-ratio: 4 / 5; }
  .plate__list li { padding: 8px 0; }

  /* Factory, clients, lounge, brief */
  .factory__inner { row-gap: 32px; }
  .factory__head { padding-top: 36px; }
  .figure { padding: 20px 0; }
  .clients__inner { row-gap: 32px; }
  .clients__list li { padding: 18px 0; }
  .brief__inner { row-gap: 40px; }
  .brief__form { gap: 24px; }

  /* Footer: keep the last lines clear of the floating WhatsApp button */
  .site-footer { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
  .site-footer__tagline { margin-bottom: 44px; }
  .site-footer__grid { gap: 32px; }
  .site-footer__base { margin-top: 40px; }
}

/* Small phones (320 to 360px) */
@media (max-width: 360px) {
  .btn { padding: 0 18px; letter-spacing: 0.16em; gap: 10px; }
  .hero__facts dt { font-size: 20px; }
  .brief__contacts div { grid-template-columns: 72px 1fr; }
  .brief__contacts dt { font-size: 10px; letter-spacing: 0.18em; }
  .brief__contacts dd { font-size: 14px; }
  .lounge__card { padding: 28px 22px; }
}

/* WordPress admin bar (logged-in editors only): keep the fixed header and the menu below it.
   On phones WordPress lets the bar scroll away, which would cover the header and the Close button, so pin it. */
.admin-bar .site-header, .admin-bar .menu { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header, .admin-bar .menu { top: 46px; } }
@media (max-width: 600px) { .admin-bar #wpadminbar { position: fixed; } }
