/* ===================================================================
   OnlyHair.in — front-end styles
   Palette is strictly monochrome: paper, bone, line, smoke, ink.
   =================================================================== */

:root {
  --ink:    #000000;
  --paper:  #ffffff;
  --bone:   #f2f1ee;   /* section wash */
  --line:   #e0ded8;   /* hairlines */
  --smoke:  #6f6e6a;   /* secondary text */
  --hush:   #a3a19c;   /* tertiary text on dark */

  --serif: "Montserrat", "Helvetica Neue", Arial, sans-serif;   /* heading face (name kept for compatibility) */
  --sans:  "Archivo", "Helvetica Neue", Arial, sans-serif;

  --pad:    clamp(20px, 5vw, 48px);
  --gap:    clamp(18px, 2.4vw, 32px);
  --section: clamp(64px, 9vw, 128px);
  --shell:  1240px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.025em;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(34px, 5vw, 64px); font-weight: 700; }
h2 { font-size: clamp(27px, 3.4vw, 44px); }
h3 { font-size: clamp(19px, 1.8vw, 23px); line-height: 1.25; letter-spacing: -0.015em; }
h4 { font-size: 17px; line-height: 1.3; letter-spacing: -0.01em; }
p  { margin: 0 0 1.1em;  }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--paper);
  padding: 12px 18px; z-index: 999;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- Layout primitives ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--pad);
}
.section { padding-block: var(--section); }
.section--bone { background: var(--bone); }
.section--ink  { background: var(--ink); color: var(--paper); }
.section--tight { padding-block: clamp(40px, 5vw, 68px); }

.eyebrow {
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--smoke);
  margin: 0 0 18px;
  display: block;
}
.lede { font-size: clamp(16px, 1.3vw, 18px); color: var(--smoke); }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center p { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .02em;
  cursor: pointer;
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.btn:hover { background: var(--paper); color: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--light { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn--light:hover { background: transparent; color: var(--paper); }
.btn--small { padding: 11px 20px; font-size: 13px; }
.btn--block { width: 100%; justify-content: center; }

.textlink {
  display: inline-block;
  font-size: 14px;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  transition: opacity .2s ease;
}
.textlink:hover { opacity: .55; }
.section--ink .textlink { border-color: var(--paper); }

/* ===================================================================
   Header
   =================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; height: 76px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand__mark { width: 26px; height: 26px; flex: none; }
.brand__name {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.brand__name span { font-style: italic; font-weight: 500; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a {
  font-size: 14px;
  color: var(--smoke);
  padding-block: 6px;
  border-bottom: 1px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }

.header-actions { display: flex; align-items: center; gap: 14px; }
.header-actions .account-link { font-size: 14px; color: var(--smoke); }
.header-actions .account-link:hover { color: var(--ink); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  background: transparent;
  align-items: center; justify-content: center;
  cursor: pointer;
}
.nav-toggle span {
  display: block; width: 18px; height: 1px; background: var(--ink);
  position: relative;
}
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 1px; background: var(--ink);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after  { top: 6px; }

/* ===================================================================
   Hero
   =================================================================== */
.hero { position: relative; overflow: hidden; padding-block: clamp(48px, 6vw, 84px) 0; isolation: isolate; }
.hero > .shell { position: relative; z-index: 1; }

/* Layered backdrop: gradient wash + facets + drifting orbs + hair strands.
   Stops short of the bottom so the facts panel overlaps onto white. */
.hero__bg {
  position: absolute;
  inset: 0 0 clamp(90px, 11vw, 150px) 0;
  z-index: 0;
  overflow: hidden;
  background:
    url("../img/hero-bg.svg") center / cover no-repeat,
    radial-gradient(120% 90% at 85% 10%, #ffffff 0%, rgba(255,255,255,0) 55%),
    linear-gradient(160deg, #fbfaf8 0%, #f0efeb 55%, #e7e5df 100%);
}
.hero__bg::after {               /* fine dot grain, fading out toward the copy */
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(0,0,0,.08) 1px, transparent 1.3px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(70% 80% at 80% 40%, #000 0%, transparent 75%);
          mask-image: radial-gradient(70% 80% at 80% 40%, #000 0%, transparent 75%);
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: .9;
  will-change: transform;
}
.orb--1 { width: 460px; height: 460px; top: -140px; right: 8%;  background: #ffffff; animation: drift 18s ease-in-out infinite; }
.orb--2 { width: 380px; height: 380px; bottom: -120px; left: -80px; background: #dcdad3; animation: drift 22s ease-in-out -6s infinite reverse; }
.orb--3 { width: 280px; height: 280px; top: 30%; left: 42%; background: #ffffff; opacity: .7; animation: drift 26s ease-in-out -12s infinite; }

.hero__strands { position: absolute; inset: 0; width: 100%; height: 100%; }
.strands path {
  fill: none;
  stroke: #000;
  stroke-width: 1;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw 3.2s cubic-bezier(.6,.1,.2,1) forwards;
}
.strands--low  path { stroke-opacity: .09; }
.strands--high path { stroke-opacity: .05; }
.strands path:nth-child(2) { animation-delay: .25s; }
.strands path:nth-child(3) { animation-delay: .5s; }
.strands path:nth-child(4) { animation-delay: .75s; }
.strands--low  { animation: sway 12s ease-in-out infinite; }
.strands--high { animation: sway 15s ease-in-out -4s infinite reverse; }
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
}
.hero h1 { margin-bottom: 22px; }
.hero h1 em { font-style: italic; }
.hero__copy p { max-width: 46ch; color: var(--smoke); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 40px; }

.hero__meta {
  display: flex; align-items: center; gap: 18px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}
.stack {
  display: flex;
}
.stack span {
  width: 40px; height: 40px; border-radius: 50%;
  border: 2px solid var(--paper);
  background: var(--bone);
  display: grid; place-items: center;
  font-family: var(--serif); font-size: 14px;
  margin-left: -12px;
}
.stack span:first-child { margin-left: 0; }
.hero__meta p { margin: 0; font-size: 14px; color: var(--smoke); max-width: 32ch; }
.hero__meta strong { display: block; color: var(--ink); font-size: 15px; font-weight: 600; }

.hero__media { position: relative; z-index: 0; animation: rise-in 1s .2s cubic-bezier(.2,.7,.2,1) both; }
.hero__media::before {           /* slow-turning dashed ring behind the card */
  content: "";
  position: absolute; z-index: -1;
  width: 78%; aspect-ratio: 1;
  top: -9%; right: -12%;
  border: 1px dashed rgba(0,0,0,.22);
  border-radius: 50%;
  animation: spin 60s linear infinite;
}
.hero__media::after {            /* offset dot block, like a printer's register */
  content: "";
  position: absolute; z-index: -1;
  width: 140px; height: 140px;
  right: -26px; bottom: -26px;
  background-image: radial-gradient(var(--ink) 1.2px, transparent 1.5px);
  background-size: 14px 14px;
  opacity: .25;
}
.hero__media img {
  width: 100%; height: auto;
  border: 10px solid var(--paper);
  box-shadow: 0 40px 80px -40px rgba(0,0,0,.35), 0 2px 6px rgba(0,0,0,.04);
}
.hero__chip {
  position: absolute; top: 28px; right: -14px;
  display: flex; align-items: center; gap: 10px;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 11px 18px;
  font-size: 13px; font-weight: 500;
  box-shadow: 0 18px 36px -18px rgba(0,0,0,.3);
  animation: rise-in .8s .8s both, float 7s 1.6s ease-in-out infinite reverse;
}
.hero__chip-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--ink);
  box-shadow: 0 0 0 0 rgba(0,0,0,.4);
  animation: pulse 2.4s ease-out infinite;
}
.hero__badge {
  position: absolute; left: -8px; bottom: 44px;
  background: var(--ink); color: var(--paper);
  padding: 22px 26px; max-width: 234px;
  box-shadow: 0 30px 60px -24px rgba(0,0,0,.55);
  animation: rise-in .8s .6s both, float 6s 1.4s ease-in-out infinite;
}
.hero__badge strong {
  display: block;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 8px;
}
.hero__badge span { font-size: 13px; color: var(--hush); line-height: 1.45; display: block; }

/* ---------- Overlapping facts panel ---------- */
.facts {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: clamp(28px, 3.4vw, 48px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 3vw, 48px);
  position: relative;
  margin-top: clamp(40px, 5vw, 72px);
  box-shadow: 0 40px 80px -48px rgba(0,0,0,.28);
}
.facts h2 { font-size: clamp(26px, 2.8vw, 36px); margin-bottom: 0; }
.facts__intro p { margin: 0; color: var(--smoke); font-size: 15px; }
.facts__grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
  border-top: 1px solid var(--line);
  padding-top: clamp(24px, 3vw, 36px);
}
.fact { display: flex; align-items: flex-start; gap: 14px; }
.fact__icon {
  flex: none;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  background: var(--ink);
  transition: transform .35s cubic-bezier(.2,.7,.2,1);
}
.fact__icon svg {
  width: 22px; height: 22px;
  fill: none; stroke: var(--paper); stroke-width: 1.4;
  stroke-linecap: round; stroke-linejoin: round;
}
.fact:hover .fact__icon { transform: translateY(-4px) rotate(-6deg); }
.fact strong {
  display: block;
  font-variant-numeric: tabular-nums;
  font-family: var(--serif);
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 8px;
}
.fact span { font-size: 13px; color: var(--smoke); }

/* ===================================================================
   Formula grid (the promo block from the reference layout)
   =================================================================== */
.formula-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--gap);
}
.formula {
  border: 1px solid var(--line);
  background: var(--paper);
  padding: clamp(22px, 2.4vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color .25s ease, transform .25s ease;
}
.formula:hover { border-color: var(--ink); }
.formula--wide { grid-column: span 3; flex-direction: row; align-items: stretch; gap: clamp(20px, 2.2vw, 32px); }
.formula--third { grid-column: span 2; }
.formula--wide .formula__body { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.formula__art {
  width: 40%;
  max-width: 190px;
  flex: none;
  background: var(--bone);
  display: grid;
  place-items: center;
  padding: 18px;
}
.formula__art img { width: 100%; max-width: 132px; }
.tag {
  display: inline-block;
  border: 1px solid var(--ink);
  border-radius: 100px;
  padding: 5px 14px;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.formula h3 { margin: 12px 0 8px; }
.formula p { font-size: 14px; color: var(--smoke); margin-bottom: 0; }
.formula__price { font-size: 14px; margin-top: auto; }
.formula__price span { color: var(--hush); margin-left: 6px; }

/* ===================================================================
   Split section (about / science)
   =================================================================== */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.split--reverse .split__media { order: -1; }
.split__media img { width: 100%; }
.split__points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  margin: 32px 0;
}
.point { border-top: 1px solid var(--ink); padding-top: 16px; }
.point h4 { margin-bottom: 6px; }
.point p { font-size: 14px; color: var(--smoke); margin: 0; }

/* ---------- Root cause list ---------- */
.causes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.cause {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(24px, 3vw, 38px);
}
.cause h3 { font-size: 22px; margin-bottom: 10px; }
.cause p { font-size: 14px; color: var(--smoke); margin: 0; }
.section--ink .cause { border-color: rgba(255,255,255,.18); }
.section--ink .causes { border-color: rgba(255,255,255,.18); }
.section--ink .cause p { color: var(--hush); }

/* ===================================================================
   Product cards
   =================================================================== */
.products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
}
.product {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 26px 24px 24px;
  display: flex;
  flex-direction: column;
  text-align: center;
  transition: border-color .25s ease;
}
.product:hover { border-color: var(--ink); }
.product__art {
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}
.product__art img { width: 72%; }
.product .tag { margin-inline: auto; }
.product h3 { font-size: 21px; margin: 14px 0 6px; }
.product p { font-size: 13px; color: var(--smoke); margin: 0 0 14px; }
.product__price { font-size: 15px; margin-bottom: 18px; }
.product__price span { color: var(--smoke); font-size: 13px; }
.product .btn { margin-top: auto; }

/* ===================================================================
   Promise strip
   =================================================================== */
.promises {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
}
.promise { border-top: 1px solid var(--ink); padding-top: 18px; }
.promise h4 { margin-bottom: 8px; }
.promise p { font-size: 14px; color: var(--smoke); margin: 0; }

/* ===================================================================
   Quiz band (inverted)
   =================================================================== */
.band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.band h2 { font-size: clamp(30px, 3.6vw, 46px); }
.band p { color: var(--hush); }
.band__steps { display: grid; gap: 18px; }
.band__step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  align-items: baseline;
  border-top: 1px solid rgba(255,255,255,.2);
  padding-top: 16px;
}
.band__step b { font-family: var(--serif); font-size: 14px; font-weight: 600; }
.band__step p { margin: 0; font-size: 14px; }
.band__step strong { display: block; color: var(--paper); font-size: 15px; font-weight: 500; margin-bottom: 2px; }

/* ===================================================================
   Testimonials
   =================================================================== */
.quotes { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.quote {
  background: var(--bone);
  padding: clamp(28px, 3vw, 40px);
  display: flex; flex-direction: column;
}
.quote__stars { letter-spacing: 4px; font-size: 13px; margin-bottom: 18px; }
.quote blockquote {
  margin: 0 0 24px;
  font-family: var(--serif);
  font-size: clamp(17px, 1.5vw, 20px);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.45;
}
.quote__who { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.quote__who span {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--paper); border: 1px solid var(--line);
  display: grid; place-items: center;
  font-family: var(--serif); font-size: 15px;
}
.quote__who strong { display: block; font-size: 14px; font-weight: 600; }
.quote__who em { font-style: normal; font-size: 13px; color: var(--smoke); }

/* ===================================================================
   Partner logos
   =================================================================== */
.logos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.logos div {
  background: var(--paper);
  aspect-ratio: 5 / 2;
  display: grid; place-items: center;
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 600;
  color: var(--hush);
}
.logos div:first-child { background: var(--ink); color: var(--paper); }

/* ===================================================================
   Blog cards
   =================================================================== */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.posts--two { grid-template-columns: repeat(2, 1fr); }
.post-card {
  border: 1px solid var(--line);
  background: var(--paper);
  display: flex; flex-direction: column;
  transition: border-color .25s ease;
}
.post-card:hover { border-color: var(--ink); }
.post-card__art { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bone); }
.post-card__art img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.post-card__art .tag {
  position: absolute; top: 14px; left: 14px;
  background: var(--paper);
}
.post-card__body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.post-card h3 { font-size: 21px; margin-bottom: 10px; }
.post-card p { font-size: 14px; color: var(--smoke); }
.post-card__foot {
  margin-top: auto; padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px; color: var(--smoke);
}

/* ---------- Article ---------- */
.article { max-width: 720px; margin-inline: auto; }
.article__meta { font-size: 13px; color: var(--smoke); margin-bottom: 18px; }
.article__cover { margin: 36px 0; }
.article__cover img { width: 100%; filter: grayscale(1); }
.article__body p { font-size: 17px; line-height: 1.75; }
.article__body p:first-of-type { font-size: 19px; }

/* ===================================================================
   Forms
   =================================================================== */
.form-wrap {
  max-width: 560px;
  margin-inline: auto;
  border: 1px solid var(--line);
  padding: clamp(28px, 4vw, 48px);
}
.form-wrap--wide { max-width: 760px; }
.field { margin-bottom: 18px; }
.field label {
  display: block; font-size: 13px; margin-bottom: 7px; color: var(--smoke);
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--line);
  background: var(--paper);
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  border-radius: 0;
  transition: border-color .2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--ink); outline: none;
}
.field textarea { min-height: 150px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field small { display: block; margin-top: 6px; font-size: 12px; color: var(--hush); }

.notice {
  border: 1px solid var(--ink);
  padding: 14px 18px;
  margin-bottom: 22px;
  font-size: 14px;
}
.notice--error { background: var(--ink); color: var(--paper); }
.notice--success { background: var(--bone); }

.form-foot { font-size: 14px; color: var(--smoke); margin-top: 20px; text-align: center; }

/* ===================================================================
   Account page
   =================================================================== */
.panel { border: 1px solid var(--line); padding: clamp(24px, 3vw, 40px); }
.data-list { display: grid; gap: 0; }
.data-list div {
  display: grid; grid-template-columns: 200px 1fr;
  gap: 16px; padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.data-list div:last-child { border-bottom: 0; }
.data-list dt { color: var(--smoke); font-size: 13px; margin: 0; }
.data-list dd { margin: 0; }

/* ===================================================================
   Footer
   =================================================================== */
.site-footer { background: var(--ink); color: var(--paper); padding-block: clamp(56px, 7vw, 88px) 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
  gap: clamp(28px, 4vw, 56px);
}
.site-footer h4 { font-family: var(--sans); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--hush); margin-bottom: 20px; }
.site-footer p { color: var(--hush); font-size: 14px; max-width: 34ch; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.site-footer ul a { font-size: 14px; color: var(--paper); opacity: .85; }
.site-footer ul a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.site-footer .brand__name { color: var(--paper); }

.subscribe { display: flex; border: 1px solid rgba(255,255,255,.3); }
.subscribe input {
  flex: 1; min-width: 0; background: transparent; border: 0;
  padding: 13px 14px; color: var(--paper); font: inherit; font-size: 14px;
}
.subscribe input::placeholder { color: var(--hush); }
.subscribe input:focus { outline: none; }
.subscribe button {
  border: 0; background: var(--paper); color: var(--ink);
  padding: 13px 20px; font-size: 13px; cursor: pointer;
}
.subscribe button:hover { opacity: .85; }

.socials { display: flex; gap: 10px; margin-top: 26px; }
.socials a {
  width: 38px; height: 38px;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 13px;
  transition: background .2s ease, color .2s ease;
}
.socials a:hover { background: var(--paper); color: var(--ink); }

.footer-bottom {
  margin-top: clamp(40px, 5vw, 64px);
  border-top: 1px solid rgba(255,255,255,.2);
  padding-block: 24px;
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  font-size: 13px; color: var(--hush);
}
.footer-bottom a { color: var(--hush); }
.footer-bottom a:hover { color: var(--paper); }

/* ===================================================================
   Page header (inner pages)
   =================================================================== */
.page-head { border-bottom: 1px solid var(--line); padding-block: clamp(48px, 6vw, 88px); }
.page-head h1 { max-width: 18ch; }
.page-head p { max-width: 58ch; color: var(--smoke); margin-bottom: 0; }
.crumb { font-size: 13px; color: var(--smoke); margin-bottom: 20px; }
.crumb a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none;
  padding: 22px 0;
  font-family: var(--serif);
  font-size: clamp(16px, 1.6vw, 19px);
  font-weight: 600;
  display: flex; justify-content: space-between; gap: 24px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--sans); font-size: 20px; color: var(--smoke); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding-bottom: 22px; color: var(--smoke); font-size: 15px; margin: 0; }

/* ===================================================================
   Backgrounds & motion
   =================================================================== */

/* ---------- Hero entrance ---------- */
.hero__copy > * { animation: rise-in .9s cubic-bezier(.2,.7,.2,1) both; }
.hero__copy > :nth-child(1) { animation-delay: .05s; }
.hero__copy > :nth-child(2) { animation-delay: .15s; }
.hero__copy > :nth-child(3) { animation-delay: .28s; }
.hero__copy > :nth-child(4) { animation-delay: .4s; }
.hero__copy > :nth-child(5) { animation-delay: .52s; }
.stack span { animation: pop .5s cubic-bezier(.3,1.6,.5,1) both; }
.stack span:nth-child(1) { animation-delay: .7s; }
.stack span:nth-child(2) { animation-delay: .8s; }
.stack span:nth-child(3) { animation-delay: .9s; }
.stack span:nth-child(4) { animation-delay: 1s; }
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.7);
  border: 1px solid var(--line);
  padding: 7px 14px;
  color: var(--ink);
}
.hero .eyebrow::before {
  content: ""; width: 18px; height: 1px; background: var(--ink);
}

/* ---------- Header lifts once the page scrolls ---------- */
.site-header { transition: box-shadow .3s ease, background .3s ease; }
.site-header.is-scrolled { box-shadow: 0 10px 30px -18px rgba(0,0,0,.25); background: rgba(255,255,255,.97); }

/* ---------- Buttons & cards ---------- */
.btn { transition: background .25s ease, color .25s ease, border-color .25s ease, transform .25s ease, box-shadow .25s ease; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 26px -14px rgba(0,0,0,.45); }

.formula, .product, .post-card, .quote {
  transition: border-color .3s ease, transform .4s cubic-bezier(.2,.7,.2,1), box-shadow .4s ease;
}
.formula:hover, .product:hover, .post-card:hover, .quote:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 50px -30px rgba(0,0,0,.3);
}
.formula__art img, .product__art img, .post-card__art img { transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.formula:hover .formula__art img,
.product:hover .product__art img { transform: translateY(-6px) rotate(-3deg) scale(1.04); }
.post-card:hover .post-card__art img { transform: scale(1.06); }
.product__art {
  background: radial-gradient(closest-side, var(--bone) 0%, rgba(242,241,238,0) 100%);
}

.cause { position: relative; transition: background .3s ease; }
.cause::before {
  content: "";
  position: absolute; left: 0; top: -1px;
  width: 100%; height: 2px;
  background: var(--ink);
  transform: scaleX(0); transform-origin: left;
  transition: transform .5s cubic-bezier(.2,.7,.2,1);
}
.cause:hover { background: rgba(255,255,255,.75); }
.cause:hover::before { transform: scaleX(1); }

.promise, .point { transition: transform .3s ease; }
.promise:hover { transform: translateY(-3px); }

.logos div { transition: color .3s ease, background .3s ease; }
.logos div:not(:first-child):hover { color: var(--ink); background: var(--bone); }

/* ---------- Section textures ---------- */
.section--bone, .section--ink { position: relative; isolation: isolate; overflow: hidden; }
.section--bone::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(rgba(0,0,0,.09) 1px, transparent 1.3px);
  background-size: 24px 24px;
  -webkit-mask-image: linear-gradient(115deg, #000 0%, transparent 35%, transparent 65%, #000 100%);
          mask-image: linear-gradient(115deg, #000 0%, transparent 35%, transparent 65%, #000 100%);
}
.section--ink::before,
.section--ink::after {
  content: "";
  position: absolute; z-index: -1;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.section--ink::before {
  width: 520px; height: 520px; top: -200px; right: -120px;
  background: rgba(255,255,255,.12);
  animation: drift 20s ease-in-out infinite;
}
.section--ink::after {
  width: 420px; height: 420px; bottom: -220px; left: -100px;
  background: rgba(255,255,255,.08);
  animation: drift 24s ease-in-out -8s infinite reverse;
}
.page-head {
  background:
    radial-gradient(60% 120% at 100% 0%, #ffffff 0%, rgba(255,255,255,0) 60%),
    linear-gradient(160deg, #fbfaf8 0%, #f0efeb 100%);
}

/* ---------- Scroll reveal (classes are added by main.js) ---------- */
/* Uses `translate`, not `transform`, so it never fights the hover lifts. */
.reveal {
  opacity: 0;
  translate: 0 28px;
  transition: opacity .8s ease var(--d, 0ms), translate .9s cubic-bezier(.2,.7,.2,1) var(--d, 0ms),
              border-color .3s ease, transform .4s cubic-bezier(.2,.7,.2,1), box-shadow .4s ease, background .3s ease;
}
.reveal.is-in { opacity: 1; translate: none; }

/* ---------- Keyframes ---------- */
@keyframes rise-in {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: none; }
}
@keyframes pop {
  from { opacity: 0; transform: scale(.4); }
  to   { opacity: 1; transform: none; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}
@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(40px, 30px) scale(1.08); }
  66%      { transform: translate(-30px, 20px) scale(.95); }
}
@keyframes sway {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-18px); }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(0,0,0,.35); }
  80%, 100% { box-shadow: 0 0 0 10px rgba(0,0,0,0); }
}

/* ===================================================================
   Responsive
   =================================================================== */
@media (max-width: 1080px) {
  .formula--wide { grid-column: span 3; }
  .formula--third { grid-column: span 2; }
  .products { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .nav {
    position: fixed; inset: 76px 0 auto 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 12px var(--pad) 24px;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { width: 100%; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav-toggle { display: inline-flex; }
  .header-actions .btn { display: none; }

  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { max-width: 520px; }
  .facts { grid-template-columns: 1fr; }
  .facts__grid { grid-template-columns: repeat(2, 1fr); }
  .formula-grid { grid-template-columns: repeat(2, 1fr); }
  .formula--wide, .formula--third { grid-column: span 1; }
  .formula--wide { flex-direction: column; align-items: stretch; }
  .formula--wide .formula__art { width: 100%; max-width: none; padding: 24px; }
  .formula--wide .formula__art img { max-width: 120px; }
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .causes { grid-template-columns: repeat(2, 1fr); }
  .promises { grid-template-columns: repeat(2, 1fr); }
  .band { grid-template-columns: 1fr; }
  .quotes { grid-template-columns: 1fr; }
  .posts, .posts--two { grid-template-columns: 1fr; }
  .logos { grid-template-columns: repeat(2, 1fr); }
  .data-list div { grid-template-columns: 1fr; gap: 4px; }
}

@media (max-width: 560px) {
  .formula-grid { grid-template-columns: 1fr; }
  .products { grid-template-columns: 1fr; }
  .causes { grid-template-columns: 1fr; }
  .promises { grid-template-columns: 1fr; }
  .facts__grid { grid-template-columns: 1fr 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero__badge { position: static; margin-top: -1px; max-width: none; }
  .hero__chip { right: 8px; top: 18px; }
  .hero__media::after { display: none; }
  .fact { flex-direction: column; gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .strands path { stroke-dashoffset: 0; }
}
