/* ═════════ NAVIGATION ═════════ */
.nav {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}

/* The blurred backdrop lives on a pseudo-element so the fixed mobile drawer
   is positioned against the viewport, not the header. */
.nav::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(247, 244, 239, 0.82);
  backdrop-filter: saturate(1.2) blur(14px);
  -webkit-backdrop-filter: saturate(1.2) blur(14px);
  transition: background 0.3s var(--ease);
}

.nav--scrolled {
  border-bottom-color: var(--line);
}

.nav--scrolled::before {
  background: rgba(247, 244, 239, 0.94);
}

.nav__inner {
  max-width: 1360px;
  margin-inline: auto;
  padding-inline: var(--gutter);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav__brand {
  display: inline-flex;
  color: var(--ink);
  flex-shrink: 0;
  padding: 6px 0;
}

.nav__logo {
  height: 40px;
}

.nav__links {
  margin-left: auto;
}

.nav__links ul {
  display: flex;
  gap: clamp(14px, 1.6vw, 26px);
}

.nav__links a {
  font-size: 0.86rem;
  text-decoration: none;
  color: var(--ink-soft);
  padding: 8px 0;
  position: relative;
  white-space: nowrap;
  transition: color 0.2s;
}

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

.nav__links a:hover,
.nav__links a[aria-current='true'] {
  color: var(--navy);
}

.nav__links a:hover::after,
.nav__links a[aria-current='true']::after {
  transform: scaleX(1);
}

.nav__cta {
  flex-shrink: 0;
}

.nav__toggle {
  display: none;
  width: 48px;
  height: 48px;
  margin-left: auto;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  align-items: center;
  justify-content: center;
}

.nav__burger {
  width: 18px;
  height: 10px;
  position: relative;
  display: block;
}

.nav__burger span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.35s var(--ease), top 0.35s var(--ease);
}

.nav__burger span:first-child {
  top: 0;
}

.nav__burger span:last-child {
  top: 8.5px;
}

.nav__burger.is-open span:first-child {
  top: 4.25px;
  transform: rotate(45deg);
}

.nav__burger.is-open span:last-child {
  top: 4.25px;
  transform: rotate(-45deg);
}

.drawer {
  position: fixed;
  inset: calc(var(--nav-h) + env(safe-area-inset-top, 0px)) 0 0 0;
  background: var(--ivory);
  padding: 24px var(--gutter) calc(32px + env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 28px;
  animation: fade 0.3s var(--ease);
}

.drawer__list li {
  border-bottom: 1px solid var(--line);
}

.drawer__list a {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 16px 0;
  text-decoration: none;
  font-family: var(--serif);
  font-size: 1.6rem;
  line-height: 1.2;
}

.drawer__num {
  font-family: var(--sans);
  font-size: var(--t-xs);
  color: var(--gold);
  letter-spacing: 0.1em;
}

.drawer__cta {
  width: 100%;
}

.drawer__note {
  color: var(--muted);
  font-size: var(--t-sm);
}

@media (max-width: 1180px) {
  .nav__links {
    display: none;
  }
  .nav__cta {
    margin-left: auto;
  }
  .nav__toggle {
    display: inline-flex;
    margin-left: 0;
  }
}

@media (max-width: 560px) {
  .nav__cta {
    display: none;
  }
  .nav__toggle {
    margin-left: auto;
  }
  .nav__logo {
    height: 34px;
  }
}

/* ═════════ HERO ═════════ */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(48px, 8vw, 104px) clamp(40px, 5vw, 64px);
  isolation: isolate;
}

.hero__ambient {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.hero__copy > * {
  animation: rise 0.9s var(--ease) both;
}

.hero__copy > :nth-child(2) {
  animation-delay: 0.08s;
}
.hero__copy > :nth-child(3) {
  animation-delay: 0.16s;
}
.hero__copy > :nth-child(4) {
  animation-delay: 0.22s;
}
.hero__copy > :nth-child(5) {
  animation-delay: 0.28s;
}
.hero__copy > :nth-child(6) {
  animation-delay: 0.34s;
}

.hero__title {
  display: grid;
  gap: 14px;
}

.hero__brand {
  font-family: var(--sans);
  font-size: var(--t-xs);
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--navy);
  font-weight: 500;
}

.hero__headline {
  font-family: var(--serif);
  font-size: var(--t-hero);
  line-height: 0.98;
  letter-spacing: -0.025em;
}

.hero__headline em {
  font-weight: 400;
}

.hero__lead {
  margin-top: 30px;
  font-family: var(--serif);
  font-style: italic;
  font-size: var(--t-lg);
  line-height: 1.35;
  color: var(--ink-soft);
}

.hero__body {
  margin-top: 18px !important;
  max-width: 50ch;
  font-size: var(--t-md);
  font-weight: 300;
  color: var(--ink-soft);
}

.hero__nos {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero__nos li {
  font-size: var(--t-sm);
  padding: 6px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--pill);
  background: rgba(247, 244, 239, 0.6);
}

.hero__just {
  margin-top: 16px !important;
  font-weight: 500;
}

.hero__ctas {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero__drop {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  max-width: 520px;
  width: 100%;
  justify-self: end;
  animation: fade 1.4s var(--ease) both 0.2s;
}

.drop {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.95) 0%, rgba(247, 244, 239, 0.7) 26%, rgba(223, 226, 232, 0.55) 58%, rgba(168, 179, 158, 0.28) 82%, rgba(141, 125, 113, 0.18) 100%);
  box-shadow: inset -24px -32px 60px rgba(141, 125, 113, 0.18), inset 18px 22px 40px rgba(255, 255, 255, 0.7),
    0 40px 80px -40px rgba(87, 76, 68, 0.45);
}

.drop__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(52, 67, 106, 0.22);
  animation: ripple 9s var(--ease) infinite;
}

.drop__ring--2 {
  animation-delay: 3s;
}

.drop__ring--3 {
  animation-delay: 6s;
}

@keyframes ripple {
  0% {
    transform: scale(0.55);
    opacity: 0;
  }
  25% {
    opacity: 0.8;
  }
  100% {
    transform: scale(1.12);
    opacity: 0;
  }
}

.drop__gloss {
  position: absolute;
  width: 26%;
  height: 14%;
  left: 20%;
  top: 14%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0));
  transform: rotate(-24deg);
}

.hero__drop-text {
  position: relative;
  width: 72%;
  text-align: center;
  display: grid;
  gap: 22px;
}

.hero__tagline {
  font-size: var(--t-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--navy);
  font-weight: 500;
  line-height: 1.8;
}

.journey {
  margin-top: clamp(48px, 7vw, 88px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}

.journey li {
  padding: 20px 20px 0 0;
  display: grid;
  gap: 4px;
  position: relative;
}

.journey li + li {
  padding-left: 20px;
  border-left: 1px solid var(--line);
}

.journey__from {
  font-size: var(--t-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.journey__step {
  font-family: var(--serif);
  font-size: var(--t-md);
}

@media (max-width: 900px) {
  .hero .orb--mist {
    display: none;
  }
  .hero__grid {
    grid-template-columns: 1fr;
  }
  .hero__drop {
    justify-self: center;
    max-width: 420px;
  }
}

@media (max-width: 560px) {
  .journey {
    grid-template-columns: 1fr;
  }
  .journey li,
  .journey li + li {
    padding: 14px 0;
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }
  .hero__drop-text {
    width: 80%;
  }
}

/* ═════════ SKIN FEELINGS ═════════ */
.section--feelings {
  background: linear-gradient(180deg, var(--ivory) 0%, var(--paper) 100%);
}

.feelings {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 40px);
  align-items: start;
}

.feelings__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.feeling-card {
  text-align: left;
  display: grid;
  grid-template-columns: 44px 1fr;
  grid-template-rows: auto auto;
  column-gap: 16px;
  row-gap: 2px;
  align-items: center;
  padding: 20px;
  min-height: 108px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.3s, background 0.3s;
}

.feeling-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
  border-color: var(--line-strong);
}

.feeling-card__glyph {
  grid-row: span 2;
  width: 44px;
  height: 44px;
  color: var(--taupe);
  transition: color 0.3s;
}

.feeling-card__label {
  font-family: var(--serif);
  font-size: 1.15rem;
  line-height: 1.25;
}

.feeling-card__hint {
  font-size: var(--t-sm);
  color: var(--muted);
}

.feeling-card.is-selected {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--ivory);
  box-shadow: var(--shadow-lift);
}

.feeling-card.is-selected .feeling-card__glyph {
  color: var(--sand);
}

.feeling-card.is-selected .feeling-card__hint {
  color: #c9cfdc;
}

.response {
  position: sticky;
  top: calc(var(--nav-h) + 20px);
  border-radius: var(--radius-lg);
  background: var(--ivory);
  border: 1px solid var(--line);
  padding: clamp(24px, 3vw, 40px);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.response::before {
  content: '';
  position: absolute;
  width: 240px;
  height: 240px;
  right: -90px;
  top: -90px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--mist), rgba(223, 226, 232, 0) 70%);
  pointer-events: none;
}

.response__inner {
  position: relative;
  animation: rise 0.5s var(--ease) both;
}

.response__kicker {
  font-size: var(--t-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--navy);
  font-weight: 500;
}

.response__text {
  margin-top: 14px !important;
  font-family: var(--serif);
  font-size: var(--t-lg);
  line-height: 1.4;
}

.response__path-title {
  margin-top: 28px;
  font-size: var(--t-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.response__path {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.response__hint {
  margin-top: 16px !important;
  font-size: var(--t-sm);
  color: var(--muted);
}

.feelings__disclaimer {
  margin-top: 28px;
}

@media (max-width: 900px) {
  .feelings {
    grid-template-columns: 1fr;
  }
  .response {
    position: relative;
    top: 0;
  }
}

@media (max-width: 520px) {
  .feelings__grid {
    grid-template-columns: 1fr;
  }
  .feeling-card {
    min-height: 0;
    padding: 16px;
  }
}

/* ═════════ PHILOSOPHY + EQUATION ═════════ */
.section--philosophy {
  background: var(--taupe-deep);
  color: var(--on-dark);
  overflow: hidden;
}

.section--philosophy::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 50% at 85% 10%, rgba(205, 186, 157, 0.22), transparent 70%),
    radial-gradient(40% 40% at 5% 90%, rgba(168, 179, 158, 0.18), transparent 70%);
  pointer-events: none;
}

.section--philosophy .container {
  position: relative;
}

.philosophy__title {
  font-family: var(--serif);
  font-size: var(--t-2xl);
  line-height: 1.04;
  letter-spacing: -0.015em;
}

.philosophy__title em {
  color: var(--sand);
}

.philosophy__grid {
  margin-top: clamp(36px, 5vw, 64px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 80px);
}

.philosophy__nots li {
  font-family: var(--serif);
  font-size: var(--t-lg);
  line-height: 1.3;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-dark);
  color: var(--on-dark-dim);
}

.philosophy__nots li:first-child {
  border-top: 1px solid var(--line-dark);
}

.philosophy__nots strong {
  font-weight: 400;
  color: var(--on-dark);
}

.philosophy__copy {
  font-size: var(--t-md);
  font-weight: 300;
  line-height: 1.65;
  color: var(--on-dark);
}

.philosophy__matters {
  margin: 22px 0;
  display: grid;
  gap: 6px;
}

.philosophy__matters li {
  font-weight: 400;
}

.philosophy__matters span {
  color: var(--sand);
  font-family: var(--serif);
  font-style: italic;
}

.philosophy__close {
  font-family: var(--serif);
  font-size: var(--t-lg);
  line-height: 1.35;
  font-weight: 400;
}

@media (max-width: 820px) {
  .philosophy__grid {
    grid-template-columns: 1fr;
  }
}

.equation {
  margin-top: clamp(48px, 6vw, 80px);
  background: var(--ivory);
  color: var(--ink);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3.5vw, 48px);
  box-shadow: 0 40px 80px -50px rgba(0, 0, 0, 0.6);
}

.equation__label {
  font-size: var(--t-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 18px;
}

.equation__terms {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 0;
}

.equation__terms li {
  display: flex;
  align-items: center;
}

.equation__op {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--gold);
  padding-inline: 8px;
  line-height: 1;
}

.term {
  font-family: var(--serif);
  font-size: clamp(1.05rem, 0.9rem + 0.6vw, 1.4rem);
  padding: 8px 16px;
  min-height: 48px;
  border-radius: var(--pill);
  border: 1px solid var(--line);
  background: #fff;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.term:hover {
  border-color: var(--navy);
  transform: translateY(-2px);
}

.term.is-active {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--ivory);
}

.term--result {
  font-style: italic;
  background: var(--sand-tint);
  border-color: var(--sand);
}

.equation__detail {
  margin-top: 32px;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: clamp(20px, 4vw, 56px);
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.equation__rings {
  width: 100%;
  max-width: 220px;
}

.ring {
  fill: none;
  stroke: var(--line-strong);
  stroke-width: 1;
  transition: stroke 0.4s var(--ease), stroke-width 0.4s var(--ease), fill 0.4s var(--ease);
}

.ring--on {
  stroke: var(--olive-grey);
  fill: rgba(168, 179, 158, 0.08);
}

.ring--current {
  stroke: var(--navy);
  stroke-width: 2;
}

.ring-core {
  fill: var(--gold);
}

.equation__definition {
  min-height: 170px;
}

.equation__step {
  font-size: var(--t-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}

.equation__term-title {
  font-family: var(--serif);
  font-size: var(--t-xl);
  margin-top: 6px;
}

.equation__term-def {
  margin-top: 10px !important;
  font-size: var(--t-md);
  max-width: 56ch;
}

.equation__term-example {
  margin-top: 14px !important;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  align-items: baseline;
  color: var(--ink-soft);
  font-size: var(--t-sm);
}

.equation__term-example span {
  font-size: var(--t-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--olive-grey);
  font-weight: 500;
}

@media (max-width: 720px) {
  .equation__terms {
    flex-direction: column;
    align-items: stretch;
  }
  .equation__terms li {
    flex-direction: column;
    align-items: stretch;
  }
  .equation__op {
    text-align: center;
    padding: 2px 0;
    font-size: 1.2rem;
  }
  .term {
    width: 100%;
  }
  .equation__detail {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
  .equation__rings {
    max-width: 160px;
  }
  .equation__term-example {
    justify-content: center;
  }
}

/* ═════════ FORMULATION STORIES ═════════ */
.dev-note {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: var(--pill);
  background: var(--sand-tint);
  color: var(--ink);
  font-size: var(--t-sm);
  font-weight: 400;
  margin-bottom: 16px;
}

.dev-note__dot {
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(180, 143, 87, 0.2);
  animation: pulse 2.6s ease-in-out infinite;
}

@keyframes pulse {
  50% {
    box-shadow: 0 0 0 8px rgba(180, 143, 87, 0);
  }
}

.stories {
  display: grid;
  gap: clamp(56px, 8vw, 112px);
}

.product {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.product--reverse .product__visual {
  order: 2;
}

.product__visual {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.product__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product__badge {
  position: absolute;
  left: 18px;
  top: 18px;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--pill);
  background: rgba(247, 244, 239, 0.88);
  color: var(--ink);
  backdrop-filter: blur(6px);
}

.product__texture-label {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  font-size: var(--t-xs);
  color: rgba(36, 35, 33, 0.72);
  font-style: italic;
}

.product__heading {
  font-size: var(--t-xs);
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--navy);
  font-weight: 500;
}

.product__name {
  margin-top: 14px;
  font-family: var(--serif);
  font-size: clamp(2.4rem, 1.6rem + 3vw, 4rem);
  line-height: 1;
  letter-spacing: -0.02em;
  display: grid;
  gap: 10px;
}

.product__descriptor {
  font-family: var(--sans);
  font-size: var(--t-md);
  letter-spacing: 0.02em;
  color: var(--muted);
  font-weight: 300;
}

.product__copy {
  margin-top: 22px !important;
  max-width: 54ch;
  font-weight: 300;
  font-size: var(--t-md);
  line-height: 1.65;
}

.product__copy + .product__copy {
  margin-top: 14px !important;
}

.product__closing {
  margin-top: 22px !important;
  font-family: var(--serif);
  font-style: italic;
  font-size: var(--t-lg);
  line-height: 1.35;
  color: var(--navy);
  padding-left: 18px;
  border-left: 2px solid var(--sand);
}

.product__toggle {
  margin-top: 28px;
}

.chev {
  width: 8px;
  height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.3s var(--ease);
}

[aria-expanded='true'] > .chev {
  transform: rotate(-135deg) translateY(-2px);
}

.product__panel {
  margin-top: 24px;
  padding: clamp(20px, 3vw, 32px);
  border-radius: var(--radius);
  background: var(--paper);
  animation: rise 0.45s var(--ease) both;
  display: grid;
  gap: 28px;
}

.product__panel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.claims-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.product__notes {
  display: grid;
  gap: 10px;
  font-size: var(--t-sm);
  color: var(--ink-soft);
}

.product__notes li {
  padding-left: 18px;
  position: relative;
}

.product__notes li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1px solid var(--gold);
}

@media (max-width: 1080px) {
  .product__panel-grid,
  .claims-split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .product {
    grid-template-columns: 1fr;
  }
  .product--reverse .product__visual {
    order: 0;
  }
  .product__visual {
    position: relative;
    top: 0;
    aspect-ratio: 16 / 11;
  }
}

/* Abstract texture placeholders */
.texture {
  isolation: isolate;
}

.texture__layers,
.texture__layers span {
  position: absolute;
  inset: 0;
}

.texture--mineral {
  background: radial-gradient(120% 90% at 30% 20%, #fbf8f3 0%, #ece3d6 45%, #d9ccb8 100%);
}

.texture--mineral .texture__layers span:nth-child(1) {
  background: radial-gradient(60% 40% at 50% 60%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0) 70%),
    repeating-radial-gradient(circle at 50% 120%, rgba(205, 186, 157, 0) 0 22px, rgba(205, 186, 157, 0.18) 23px 24px);
  animation: drift-a 28s var(--ease) infinite alternate;
}

.texture--mineral .texture__layers span:nth-child(2) {
  background: conic-gradient(from 30deg at 72% 30%, rgba(223, 226, 232, 0) 0deg, rgba(223, 226, 232, 0.9) 20deg, rgba(255, 255, 255, 0) 40deg, rgba(223, 226, 232, 0.7) 60deg, rgba(255, 255, 255, 0) 90deg);
  clip-path: polygon(62% 12%, 84% 22%, 88% 44%, 70% 52%, 56% 34%);
  opacity: 0.85;
}

.texture--mineral .texture__layers span:nth-child(3) {
  background: conic-gradient(from 200deg at 26% 70%, rgba(223, 226, 232, 0) 0deg, rgba(255, 255, 255, 0.9) 24deg, rgba(223, 226, 232, 0.6) 50deg, rgba(255, 255, 255, 0) 80deg);
  clip-path: polygon(14% 62%, 30% 54%, 40% 70%, 28% 84%, 12% 78%);
}

.texture--coffee {
  background: linear-gradient(160deg, #efe6da 0%, #d8c4ab 38%, #a88a6f 72%, #7d6552 100%);
}

.texture--coffee .texture__layers span:nth-child(1) {
  background: radial-gradient(80% 50% at 30% 30%, rgba(255, 252, 247, 0.9), rgba(255, 252, 247, 0) 70%);
  filter: blur(8px);
  animation: drift-b 26s var(--ease) infinite alternate;
}

.texture--coffee .texture__layers span:nth-child(2) {
  background: radial-gradient(70% 30% at 70% 72%, rgba(87, 60, 40, 0.35), rgba(87, 60, 40, 0) 70%);
  filter: blur(14px);
  animation: drift-c 30s var(--ease) infinite alternate;
}

.texture--coffee .texture__layers span:nth-child(3) {
  background: repeating-linear-gradient(115deg, rgba(255, 255, 255, 0) 0 36px, rgba(255, 255, 255, 0.07) 37px 70px);
  filter: blur(6px);
}

.texture--coffee .product__texture-label {
  color: rgba(255, 250, 244, 0.9);
}

.texture--oat {
  background: radial-gradient(120% 90% at 70% 20%, #fbf8f1 0%, #efe5d3 50%, #dccbb0 100%);
}

.texture--oat .texture__layers span:nth-child(1) {
  background-image: radial-gradient(circle at 20% 30%, rgba(184, 156, 133, 0.55) 0 1.2px, transparent 2px),
    radial-gradient(circle at 70% 60%, rgba(184, 156, 133, 0.45) 0 1px, transparent 1.8px),
    radial-gradient(circle at 40% 80%, rgba(141, 125, 113, 0.35) 0 1.4px, transparent 2.2px);
  background-size: 23px 19px, 31px 27px, 41px 37px;
  opacity: 0.8;
}

.texture--oat .texture__layers span:nth-child(2) {
  background: radial-gradient(45% 30% at 38% 56%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0) 70%),
    radial-gradient(30% 20% at 66% 36%, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0) 70%);
  animation: drift-a 30s var(--ease) infinite alternate;
}

.texture--oat .texture__layers span:nth-child(3) {
  background: radial-gradient(ellipse 14% 5% at 30% 30%, rgba(205, 186, 157, 0.8), transparent 70%),
    radial-gradient(ellipse 12% 4% at 72% 70%, rgba(205, 186, 157, 0.7), transparent 70%),
    radial-gradient(ellipse 10% 4% at 58% 20%, rgba(205, 186, 157, 0.6), transparent 70%);
  transform: rotate(-18deg) scale(1.2);
}

/* ═════════ DICTIONARY ═════════ */
.section--dictionary {
  background: var(--oat);
}

.dict__controls {
  position: sticky;
  top: calc(var(--nav-h) + env(safe-area-inset-top, 0px));
  z-index: 5;
  background: var(--oat);
  padding-block: 14px 12px;
  margin-bottom: 20px;
  display: grid;
  gap: 14px;
  border-bottom: 1px solid var(--line);
}

.dict__count {
  font-size: var(--t-sm);
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  align-items: center;
}

.dict__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}

.dict__empty {
  padding: clamp(28px, 5vw, 56px);
  border-radius: var(--radius-lg);
  border: 1px dashed var(--line-strong);
  text-align: center;
  display: grid;
  gap: 12px;
  justify-items: center;
  max-width: 640px;
  margin-inline: auto;
}

.dict__empty-title {
  font-family: var(--serif);
  font-size: var(--t-lg);
}

@media (max-width: 860px) {
  .dict__list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .dict__controls {
    position: static;
  }
}

/* ═════════ INGREDIENT COURT ═════════ */
.section--court {
  background: var(--ivory);
}

.court {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: start;
}

.court__sub {
  margin-top: 18px !important;
  font-family: var(--serif);
  font-style: italic;
  font-size: var(--t-lg);
  color: var(--ink-soft);
  line-height: 1.35;
}

.court__progress {
  margin-top: 36px;
  display: grid;
  gap: 12px;
}

.court__steps {
  display: flex;
  gap: 6px;
}

.court__steps li {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  transition: background 0.3s, border-color 0.3s, transform 0.3s var(--ease);
}

.court__steps li.is-done {
  background: var(--olive-grey);
  border-color: var(--olive-grey);
}

.court__steps li.is-current {
  border-color: var(--navy);
  transform: scale(1.3);
}

.court__progress-text {
  font-size: var(--t-sm);
  color: var(--muted);
}

.court__fine {
  margin-top: 20px !important;
  font-size: var(--t-sm);
  color: var(--muted);
  max-width: 44ch;
}

@media (max-width: 900px) {
  .court {
    grid-template-columns: 1fr;
  }
}

/* ═════════ SUNDAY SKIN WORD ═════════ */
.section--sunday {
  background: var(--olive-tint);
}

.sunday {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: start;
}

.word-card {
  background: var(--ivory);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 3vw, 36px);
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 14px;
  justify-items: start;
}

.word-card__top {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.word-card__date {
  font-size: var(--t-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--olive-grey);
  font-weight: 500;
}

.word-dots {
  display: flex;
  align-items: center;
  gap: 2px;
}

.word-dot {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
}

.word-dot::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid var(--olive-grey);
  transition: background 0.25s, transform 0.25s var(--ease);
}

.word-dot.is-learned::before {
  background: var(--olive-grey);
}

.word-dot.is-current::before {
  border-color: var(--navy);
  box-shadow: 0 0 0 2px var(--ivory), 0 0 0 3px var(--navy);
}

.word-dot:disabled::before {
  opacity: 0.35;
}

.word-dots__count {
  margin-left: 6px;
  font-size: var(--t-xs);
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.word-card__word {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 1.6rem + 2.4vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.02em;
}

.word-card__def {
  font-size: var(--t-md);
  max-width: 52ch;
}

.word-card__myth {
  margin: 0 !important;
  font-size: var(--t-sm);
  color: var(--ink-soft);
  display: flex;
  gap: 10px;
  align-items: baseline;
}

.word-card__myth span {
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: var(--pill);
  background: var(--sand-tint);
  color: var(--ink);
  flex-shrink: 0;
}

.word-card__more {
  font-size: var(--t-sm);
}

@media (max-width: 900px) {
  .sunday {
    grid-template-columns: 1fr;
  }
}

/* ═════════ CLAIM DECODER ═════════ */
.section--claims {
  background: var(--ivory);
}

.claims {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr));
  gap: 10px;
  grid-auto-flow: dense;
}

.claim {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fff;
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease), border-color 0.3s;
}

.claim:not(.is-open):hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}

.claim.is-open {
  grid-column: 1 / -1;
  border-color: var(--navy);
  box-shadow: var(--shadow-lift);
}

.claim__label {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
  padding: 18px 20px;
  min-height: 64px;
  font-family: var(--serif);
  font-size: 1.12rem;
  line-height: 1.25;
}

.claim__quote {
  color: var(--gold);
  font-size: 1.6rem;
  line-height: 0.5;
  margin-top: 6px;
}

.claim__plus {
  margin-left: auto;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  position: relative;
}

.claim__plus::before,
.claim__plus::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1.3px;
  background: var(--ink);
  transition: transform 0.3s var(--ease);
}

.claim__plus::after {
  transform: rotate(90deg);
}

.claim.is-open .claim__plus::after {
  transform: rotate(0deg);
}

.claim__body {
  padding: 0 20px 22px;
  animation: rise 0.4s var(--ease) both;
}

.claim__frame {
  font-family: var(--serif);
  font-style: italic;
  color: var(--navy);
  font-size: var(--t-md);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.claim__body dl {
  margin: 16px 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.claim__body dt {
  font-size: var(--t-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.claim__body dd {
  margin: 6px 0 0;
  font-size: var(--t-sm);
  line-height: 1.6;
}

@media (max-width: 760px) {
  .claim__body dl {
    grid-template-columns: 1fr;
  }
}

/* ═════════ ASK POISED ═════════ */
.section--ask {
  background: var(--paper);
}

.ask {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: start;
}

.ask__intro .section-title,
.prelaunch__copy .section-title {
  margin-bottom: 22px;
}

.ask__intro > p:not(.eyebrow) {
  font-weight: 300;
  font-size: var(--t-md);
  max-width: 46ch;
  color: var(--ink-soft);
}

.ask__pair {
  margin-top: 22px !important;
  font-family: var(--serif);
  font-style: italic;
  font-size: var(--t-lg) !important;
  line-height: 1.4;
  color: var(--ink) !important;
}

.ask__fine {
  margin-top: 22px !important;
  font-size: var(--t-sm) !important;
  color: var(--muted) !important;
}

@media (max-width: 900px) {
  .ask {
    grid-template-columns: 1fr;
  }
}

/* ═════════ PRE-LAUNCH ═════════ */
.section--prelaunch {
  background: var(--sand-tint);
  overflow: hidden;
}

.prelaunch {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: start;
}

.prelaunch__copy > p:not(.eyebrow) {
  font-weight: 300;
  font-size: var(--t-md);
  max-width: 48ch;
}

.prelaunch__lead {
  font-weight: 400 !important;
}

.prelaunch__pull {
  margin-top: 28px !important;
  font-family: var(--serif);
  font-size: var(--t-lg) !important;
  font-weight: 400 !important;
  line-height: 1.35;
}

.prelaunch__pull em {
  color: var(--navy);
}

.prelaunch__form {
  background: var(--ivory);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3.5vw, 44px);
  box-shadow: var(--shadow-lift);
}

.prelaunch__form-title {
  font-family: var(--serif);
  font-size: var(--t-xl);
  line-height: 1.1;
}

.prelaunch__form-sub {
  margin: 10px 0 24px !important;
  color: var(--ink-soft);
  font-weight: 300;
}

@media (max-width: 900px) {
  .prelaunch {
    grid-template-columns: 1fr;
  }
}

/* ═════════ CLOSING MANIFESTO ═════════ */
.manifesto {
  position: relative;
  background: var(--ink);
  color: var(--on-dark);
  padding-block: clamp(88px, 12vw, 176px);
  overflow: hidden;
  isolation: isolate;
}

.manifesto::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(50% 60% at 88% 20%, rgba(205, 186, 157, 0.16), transparent 70%),
    radial-gradient(40% 50% at 10% 100%, rgba(128, 134, 109, 0.18), transparent 70%);
}

.manifesto__inner {
  display: grid;
  gap: 32px;
}

.manifesto__title {
  font-family: var(--serif);
  font-size: var(--t-2xl);
  line-height: 1.06;
  letter-spacing: -0.015em;
  max-width: 18ch;
}

.manifesto__title em {
  color: var(--sand);
}

.manifesto__body {
  max-width: 58ch;
  font-weight: 300;
  font-size: var(--t-md);
  color: var(--on-dark-dim);
}

.manifesto__close {
  font-family: var(--serif);
  font-size: var(--t-lg);
  line-height: 1.4;
  max-width: 40ch;
  padding-top: 28px;
  border-top: 1px solid var(--line-dark);
}

.manifesto__close strong {
  font-weight: 400;
  font-style: italic;
  color: var(--sand);
}

/* ═════════ FOOTER ═════════ */
.footer {
  background: var(--paper);
  padding-block: clamp(56px, 7vw, 88px) calc(32px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
}

.footer__logo {
  height: 64px;
  color: var(--ink);
}

.footer__tagline {
  margin-top: 16px !important;
  font-family: var(--serif);
  font-style: italic;
  font-size: var(--t-md);
  color: var(--navy);
}

.footer__small {
  font-size: var(--t-sm);
  color: var(--muted);
  margin-top: 6px !important;
}

.footer__nav ul {
  display: grid;
  gap: 10px;
}

.footer__nav a {
  text-decoration: none;
  font-size: var(--t-base);
}

.footer__nav a:hover {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer__email {
  display: block;
  font-size: var(--t-xs);
  color: var(--muted);
}

.footer__signup-title {
  font-family: var(--serif);
  font-size: var(--t-lg);
}

.footer__signup .form {
  margin-top: 16px;
}

.footer__disclaimer {
  margin-top: 48px !important;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: var(--t-xs);
  line-height: 1.7;
  color: var(--muted);
  max-width: 110ch;
}

.footer__copy {
  margin-top: 14px !important;
  font-size: var(--t-xs);
  color: var(--muted);
}

@media (max-width: 900px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer__signup {
    grid-column: 1 / -1;
  }
}

@media (max-width: 520px) {
  .footer__grid {
    grid-template-columns: 1fr;
  }
}

.dict__more {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  padding-top: 16px;
}

.sunday__lede {
  margin-top: 16px !important;
  color: var(--ink-soft);
  font-weight: 300;
  max-width: 34ch;
}

.dict__pair {
  margin-top: 18px !important;
  font-family: var(--serif);
  font-style: italic;
  font-size: var(--t-md);
  line-height: 1.45;
  color: var(--navy);
}

/* ═════════ MOBILE TABS ═════════ */
.mtabs {
  position: sticky;
  top: calc(var(--nav-h) + env(safe-area-inset-top, 0px));
  z-index: 40;
  background: rgba(247, 244, 239, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.mtabs__list {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px var(--gutter);
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}

.mtabs__list::-webkit-scrollbar {
  display: none;
}

.mtabs__tab {
  flex-shrink: 0;
  scroll-snap-align: center;
  min-height: 40px;
  padding: 8px 16px;
  border-radius: var(--pill);
  border: 1px solid var(--line-strong);
  background: #fff;
  font-size: var(--t-sm);
  white-space: nowrap;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}

.mtabs__tab.is-active {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--ivory);
}

.tab-next {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px 24px;
  padding: 0 var(--gutter) 40px;
  margin-top: calc(var(--section-y) * -0.5);
  position: relative;
}

.back-top {
  font-size: var(--t-sm);
  letter-spacing: 0.04em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
}

.back-top:hover {
  text-decoration: underline;
}

/* The row sits on the same tint as the section above it. */
.tab-panel:has(.section--feelings) .tab-next { background: var(--paper); }
.tab-panel:has(.section--philosophy) .tab-next { background: var(--taupe-deep); }
.tab-panel:has(.section--philosophy) .tab-next .btn { --btn-fg: var(--on-dark); --btn-bd: var(--line-dark); }
.tab-panel:has(.section--philosophy) .back-top { color: var(--sand); }
.tab-panel:has(.section--dictionary) .tab-next { background: var(--oat); }
.tab-panel:has(.section--court) .tab-next { background: var(--ivory); }
.tab-panel:has(.section--sunday) .tab-next { background: var(--olive-tint); }
.tab-panel:has(.section--claims) .tab-next { background: var(--ivory); }
.tab-panel:has(.section--prelaunch) .tab-next { background: var(--sand-tint); }

@media (max-width: 760px) {
  :root {
    --section-y: 44px;
  }
  html {
    scroll-padding-top: calc(var(--nav-h) + 72px);
  }
  .journey {
    display: none;
  }
  .hero {
    padding-block: 36px 40px;
  }
  .hero__drop {
    max-width: 320px;
  }
}
