/* Thornton Sugar: homepage styles
   Brand system: original logo, Thornton Navy + Thornton Green (sampled from the logo),
   Newsreader (display) + Instrument Sans (text), one italic accent per headline. */

@font-face {
  font-family: "Newsreader";
  src: url("/case-studies/concepts/_assets/79f82f56206ff3255f8b3436.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("/case-studies/concepts/_assets/03673c6f29707bab49a43afc.woff2") format("woff2");
  font-weight: 400 600;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("/case-studies/concepts/_assets/6219bc4bfdfc5d9b2201dcdf.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --navy: #00437A;          /* logo navy */
  --navy-hover: #0A5290;
  --night: #061F38;         /* dark sections, hero */
  --night-2: #0B2A49;
  --ink: #0E1E2E;           /* body text */
  --slate: #4A5A6A;         /* secondary text */
  --mist: #B8C7D8;          /* secondary text on dark */
  --green: #80BA25;         /* logo green */
  --green-hover: #8DC92F;
  --green-ink: #4B7A10;     /* green for text on light backgrounds (4.8:1) */
  --cream: #FBF8F1;         /* caster sugar */
  --cream-2: #F4EEE2;
  --sand: #E4D9C4;
  --paper: #FFFFFF;
  --line: rgba(14, 30, 46, 0.12);
  --line-dark: rgba(255, 255, 255, 0.12);
  --error: #B3261E;

  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(6, 31, 56, 0.05), 0 4px 14px rgba(6, 31, 56, 0.05);
  --shadow: 0 2px 6px rgba(6, 31, 56, 0.05), 0 14px 36px rgba(6, 31, 56, 0.09);
  --shadow-lg: 0 24px 64px rgba(6, 31, 56, 0.22);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 76px;

  /* The Thornton spectrum: icing white to black treacle */
  --spectrum: linear-gradient(90deg, #F3EEE3 0 12.5%, #EAD9AE 0 25%, #DDB878 0 37.5%, #C98F45 0 50%, #A16B3A 0 62.5%, #7A4A28 0 75%, #4A2A15 0 87.5%, #1F120A 0);

  /* Sugar grain textures (SVG noise) for product swatches */
  --tex-powder: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64'%3E%3Cfilter id='d'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.9' numOctaves='2' seed='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -4 2.1'/%3E%3C/filter%3E%3Crect width='64' height='64' filter='url(%23d)' opacity='.13'/%3E%3C/svg%3E");
  --tex-fine: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64'%3E%3Cfilter id='d'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.25' numOctaves='1' seed='5' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -8 3.7'/%3E%3C/filter%3E%3Cfilter id='l'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.25' numOctaves='1' seed='11' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 10 -6.2'/%3E%3C/filter%3E%3Crect width='64' height='64' filter='url(%23d)' opacity='.2'/%3E%3Crect width='64' height='64' filter='url(%23l)' opacity='.85'/%3E%3C/svg%3E");
  --tex-medium: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64'%3E%3Cfilter id='d'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.78' numOctaves='1' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -9 4.1'/%3E%3C/filter%3E%3Cfilter id='l'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.78' numOctaves='1' seed='13' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 11 -6.9'/%3E%3C/filter%3E%3Crect width='64' height='64' filter='url(%23d)' opacity='.24'/%3E%3Crect width='64' height='64' filter='url(%23l)' opacity='.9'/%3E%3C/svg%3E");
  --tex-coarse: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64'%3E%3Cfilter id='d'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.4' numOctaves='1' seed='4' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -10 4.5'/%3E%3C/filter%3E%3Cfilter id='l'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.4' numOctaves='1' seed='21' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 12 -7.4'/%3E%3C/filter%3E%3Crect width='64' height='64' filter='url(%23d)' opacity='.3'/%3E%3Crect width='64' height='64' filter='url(%23l)' opacity='.95'/%3E%3C/svg%3E");
  --tex-soft: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64'%3E%3Cfilter id='c'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.16' numOctaves='2' seed='8' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -4 2.1'/%3E%3C/filter%3E%3Cfilter id='d'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='1' seed='6' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -6 2.9'/%3E%3C/filter%3E%3Cfilter id='l'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='1' seed='15' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 9 -6'/%3E%3C/filter%3E%3Crect width='64' height='64' filter='url(%23c)' opacity='.22'/%3E%3Crect width='64' height='64' filter='url(%23d)' opacity='.22'/%3E%3Crect width='64' height='64' filter='url(%23l)' opacity='.35'/%3E%3C/svg%3E");
  --chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300437A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg, picture, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { -webkit-tap-highlight-color: transparent; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.vh {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.nowrap { white-space: nowrap; }
.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; border-radius: 6px; }
.hero :focus-visible, .advisor :focus-visible, .quote__intro :focus-visible, .actionbar :focus-visible, .tray:focus-visible, .toast :focus-visible { outline-color: var(--green); }
.skip {
  position: absolute; left: 12px; top: -80px; z-index: 300;
  background: var(--night); color: #fff; padding: 12px 18px; border-radius: 10px;
  font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- Type ---------- */
.h1, .h2, .h3 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--navy);
  text-wrap: balance;
}
.h1 { font-size: clamp(2.7rem, 1.3rem + 5.4vw, 5.85rem); line-height: 0.98; letter-spacing: -0.028em; }
.h2 { font-size: clamp(2.15rem, 1.45rem + 2.9vw, 3.8rem); line-height: 1.03; letter-spacing: -0.022em; }
.h3 { font-size: clamp(1.35rem, 1.2rem + 0.5vw, 1.62rem); line-height: 1.15; letter-spacing: -0.01em; }
.h1 em, .h2 em, .h3 em {
  font-style: italic;
  font-weight: 400;
  color: var(--green-ink);
  letter-spacing: -0.01em;
}
.kicker {
  font: 600 0.76rem/1.3 var(--sans);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 1.1rem;
}
.kicker em {
  font: italic 400 1.42em/1 var(--serif);
  letter-spacing: 0;
  text-transform: none;
  color: var(--green-ink);
  padding: 0 0.08em;
}
.kicker--light { color: var(--mist); }
.kicker--light em { color: var(--green); }
.lead {
  font-size: clamp(1.08rem, 1rem + 0.35vw, 1.24rem);
  line-height: 1.6;
  color: var(--slate);
  max-width: 58ch;
  text-wrap: pretty;
}

/* ---------- Buttons ---------- */
.btn {
  --h: 50px;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: var(--h); padding: 0 1.4rem;
  border-radius: 999px; border: 1.5px solid transparent;
  font: 600 1rem/1.1 var(--sans); letter-spacing: -0.005em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.25s var(--ease), box-shadow 0.25s;
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform 0.25s var(--ease); }
.btn:hover svg:has(use[href="#i-arrow"]) { transform: translateX(3px); }
.btn:hover svg:has(use[href="#i-arrow-left"]) { transform: translateX(-3px); }
.btn--sm { --h: 42px; padding: 0 1.1rem; font-size: 0.95rem; }
.btn--lg { --h: 56px; padding: 0 1.75rem; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn--primary {
  background: var(--green); color: var(--night);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 6px 18px rgba(128, 186, 37, 0.28);
}
.btn--primary:hover { background: var(--green-hover); transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 10px 24px rgba(128, 186, 37, 0.34); }
.btn--primary:active { transform: none; }
.btn--primary:disabled { opacity: 0.6; cursor: default; transform: none; box-shadow: none; }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-hover); transform: translateY(-1px); }
.btn--outline { border-color: rgba(0, 67, 122, 0.3); color: var(--navy); background: transparent; }
.btn--outline:hover { border-color: var(--navy); background: rgba(0, 67, 122, 0.05); }
.btn--ghost { border-color: rgba(255, 255, 255, 0.34); color: #fff; }
.btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }
.btn--text { --h: 44px; background: none; border: 0; padding: 0 0.5rem; color: var(--slate); }
.btn--text:hover { color: var(--navy); }
.link-btn { background: none; border: 0; padding: 0; color: var(--navy); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.badge {
  display: inline-grid; place-items: center;
  min-width: 1.4rem; height: 1.4rem; padding: 0 0.38rem;
  border-radius: 999px; background: var(--night); color: #fff;
  font: 700 0.72rem/1 var(--sans);
}
.badge--soft { background: var(--cream-2); color: var(--navy); }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 248, 241, 0.88);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px rgba(6, 31, 56, 0.06); }
.header__inner { display: flex; align-items: center; gap: 1.5rem; height: var(--header-h); }
.header__logo { flex: none; border-radius: 4px; }
.header__logo img { width: clamp(168px, 10vw + 96px, 232px); }
.nav { margin-left: auto; }
.nav__list { display: flex; gap: clamp(0.9rem, 1.7vw, 1.8rem); }
.nav__list a {
  display: block; padding: 0.45rem 0;
  font-weight: 500; font-size: 0.95rem; text-decoration: none; color: var(--ink);
  background: linear-gradient(var(--green), var(--green)) left bottom / 0 2px no-repeat;
  transition: background-size 0.3s var(--ease), color 0.2s;
}
.nav__list a:hover, .nav__list a.is-active { background-size: 100% 2px; color: var(--navy); }
.header__actions { display: flex; align-items: center; gap: 0.9rem; }
.header__phone {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-weight: 600; font-size: 0.98rem; color: var(--navy); text-decoration: none; white-space: nowrap;
}
.header__phone svg { width: 18px; height: 18px; }
.header__phone:hover span { text-decoration: underline; text-underline-offset: 3px; }
.header__cta .badge { margin-left: 0.1rem; }
.header__menu {
  display: none; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1.5px solid var(--line); background: var(--paper); color: var(--navy); cursor: pointer;
}
.header__menu svg { width: 22px; height: 22px; }
@media (max-width: 1120px) {
  .nav { display: none; }
  .header__actions { margin-left: auto; }
  .header__menu { display: grid; }
}
@media (max-width: 640px) {
  :root { --header-h: 64px; }
  .header__phone { width: 44px; height: 44px; justify-content: center; border-radius: 50%; border: 1.5px solid var(--line); background: var(--paper); }
  .header__phone span { display: none; }
  .header__cta { display: none; }
  .header__actions { gap: 0.5rem; }
}

/* Mobile menu */
.mnav {
  position: fixed; inset: 0; z-index: 100;
  display: flex; flex-direction: column;
  padding: 10px var(--gutter) calc(24px + env(safe-area-inset-bottom));
  background: var(--cream); overflow-y: auto;
  animation: mnav-in 0.3s var(--ease);
}
@keyframes mnav-in { from { opacity: 0; transform: translateY(-8px); } }
.mnav__top { display: flex; align-items: center; justify-content: space-between; min-height: 54px; margin-bottom: 1.5rem; }
.mnav__close {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1.5px solid var(--line); background: var(--paper); color: var(--navy); cursor: pointer;
}
.mnav__close svg { width: 22px; height: 22px; }
.mnav__list a {
  display: block; padding: 0.7rem 0;
  font: 500 2rem/1.15 var(--serif); letter-spacing: -0.015em;
  color: var(--navy); text-decoration: none; border-bottom: 1px solid var(--line);
}
.mnav__foot { margin-top: auto; padding-top: 2rem; display: grid; gap: 0.6rem; }

/* ---------- Hero ---------- */
.hero { padding: clamp(8px, 1vw, 14px) clamp(8px, 1vw, 14px) 0; }
.hero__card {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: center;
  min-height: min(880px, calc(100svh - var(--header-h) - 14px));
  border-radius: var(--radius-lg);
  background: var(--night); color: #fff;
}
.hero__media { position: absolute; z-index: -1; inset: 0 0 0 auto; width: 64%; }
/* Scrim: keeps the copy on calm navy whatever the viewport width */
.hero__card::after {
  content: ""; position: absolute; z-index: -1; inset: 0;
  background: linear-gradient(90deg, rgba(6, 31, 56, 0.92) 0%, rgba(6, 31, 56, 0.78) 38%, rgba(6, 31, 56, 0.3) 56%, rgba(6, 31, 56, 0) 70%);
  pointer-events: none;
}
.hero__media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 34% 50%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 36%);
  mask-image: linear-gradient(90deg, transparent 0, #000 36%);
}
.hero__content {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto;
  padding: clamp(44px, 6vw, 88px) var(--gutter) clamp(76px, 8vw, 110px);
}
.hero__content > * { max-width: 640px; }
.hero .h1 { color: #fff; margin-bottom: 1.5rem; }
.hero .h1 span { display: block; }
.hero .h1 em { color: var(--green); }
.hero__lead { font-size: clamp(1.08rem, 1rem + 0.4vw, 1.28rem); line-height: 1.55; color: var(--mist); max-width: 31em; margin-bottom: 2rem; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero__note { display: flex; align-items: center; gap: 0.5rem; margin-top: 1.1rem; font-size: 0.92rem; color: var(--mist); }
.hero__note svg { width: 18px; height: 18px; color: var(--green); flex: none; }
.hero__jump { margin-top: clamp(2rem, 4vw, 3rem); padding-top: 1.4rem; border-top: 1px solid var(--line-dark); }
.hero__jump-label { font: 600 0.72rem/1 var(--sans); letter-spacing: 0.18em; text-transform: uppercase; color: var(--mist); margin-bottom: 0.85rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  display: inline-flex; align-items: center; min-height: 38px; padding: 0 0.95rem;
  border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(6, 31, 56, 0.45);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  color: #fff; font-size: 0.9rem; font-weight: 500; text-decoration: none;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.chip:hover { background: #fff; color: var(--night); border-color: #fff; }

.stamp { width: 150px; color: rgba(255, 255, 255, 0.9); overflow: visible; }
.hero .stamp { position: absolute; right: clamp(20px, 4vw, 64px); bottom: clamp(30px, 5vw, 64px); width: clamp(104px, 10vw, 150px); }
.stamp__line { fill: none; stroke: currentColor; stroke-width: 1.4; }
.stamp__line--thin { stroke-width: 1; opacity: 0.55; }
.stamp__text { font: 600 11.5px var(--sans); letter-spacing: 0.2em; text-transform: uppercase; fill: currentColor; }
.stamp__est { font: italic 400 19px var(--serif); fill: var(--green); }
.stamp__year { font: 500 32px var(--serif); fill: currentColor; }
.stamp__ring { transform-origin: 100px 100px; animation: spin 40s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.spectrum { height: 6px; background: var(--spectrum); }
.spectrum--hero { position: absolute; left: 0; right: 0; bottom: 0; }

@media (max-width: 1023px) {
  .hero__card { display: block; min-height: 0; }
  .hero__media { inset: auto 0 0 0; width: 100%; height: 40%; }
  .hero__media img {
    object-position: 50% 60%;
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 45%);
    mask-image: linear-gradient(180deg, transparent 0, #000 45%);
  }
  .hero__card::after { display: none; }
  .hero__content { padding-bottom: 150px; }
}
@media (max-width: 759px) {
  .hero__content { padding: 40px 22px 120px; }
  .hero__ctas .btn { flex: 1 1 auto; }
  .hero .stamp { right: 18px; bottom: 26px; width: 92px; }
  .hero__jump { border-top: 0; padding-top: 0; }
}

/* ---------- Proof bar ---------- */
.proof { padding: clamp(26px, 4vw, 42px) 0; }
.proof__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.75rem 2.5rem; flex-wrap: wrap; }
.proof__stats { display: flex; flex-wrap: wrap; gap: 1.25rem clamp(1.5rem, 4vw, 3.5rem); }
.proof__stats li { display: flex; align-items: center; gap: 0.85rem; }
.proof__num { font: 500 clamp(2.3rem, 1.9rem + 1.2vw, 3rem)/1 var(--serif); color: var(--navy); letter-spacing: -0.02em; font-variant-numeric: oldstyle-nums; }
.proof__label { max-width: 11.5rem; font-size: 0.88rem; line-height: 1.35; color: var(--slate); }
.proof__certs { display: flex; align-items: center; gap: 0.6rem; }
.proof__certs li { display: grid; place-items: center; height: 68px; padding: 6px 10px; border-radius: 14px; background: var(--paper); box-shadow: var(--shadow-sm); }
.proof__certs img { height: 52px; width: auto; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(72px, 10vw, 136px); }
.section-head { margin-bottom: clamp(36px, 5vw, 60px); }
.section-head--split { display: grid; gap: 1.25rem 4rem; }
@media (min-width: 960px) {
  .section-head--split { grid-template-columns: 1.15fr 1fr; align-items: end; }
  .section-head--split .lead { padding-bottom: 0.3rem; }
}

/* ---------- Why ---------- */
.why { background: var(--cream-2); }
.why__grid { display: grid; gap: clamp(44px, 6vw, 96px); }
@media (min-width: 1000px) { .why__grid { grid-template-columns: 1.05fr 1fr; align-items: start; } }
.why__intro .lead { margin-top: 1.4rem; }
.why__media { position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 16px; max-width: 520px; margin-top: 2.6rem; }
.why__fig { position: relative; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); }
.why__fig img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.why__fig figcaption {
  position: absolute; left: 12px; bottom: 12px;
  padding: 0.4rem 0.85rem; border-radius: 999px;
  background: rgba(251, 248, 241, 0.94); color: var(--navy);
  font: italic 500 1.05rem/1.1 var(--serif);
}
.why__fig--offset { margin-top: 48px; }
.why__media-note { grid-column: 1 / -1; max-width: 42ch; font-size: 0.95rem; color: var(--slate); }
.pillars { display: grid; gap: 14px; }
.pillar {
  display: grid; grid-template-columns: auto 1fr; gap: 1.15rem;
  padding: clamp(22px, 2.4vw, 32px);
  border-radius: var(--radius); border: 1px solid rgba(14, 30, 46, 0.05);
  background: var(--paper); box-shadow: var(--shadow-sm);
}
.pillar__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--cream-2); color: var(--navy); }
.pillar__icon svg { width: 26px; height: 26px; }
.pillar__title { margin-bottom: 0.45rem; }
.pillar p { color: var(--slate); }
.pillar a { color: var(--navy); font-weight: 600; white-space: nowrap; }
.why__promise {
  margin-top: 1.6rem; padding-left: 1.1rem; border-left: 3px solid var(--green);
  font: italic 400 1.3rem/1.4 var(--serif); color: var(--navy);
}
.why__promise span {
  display: block; margin-top: 0.35rem;
  font: 600 0.72rem/1.6 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--slate);
}

/* ---------- Range ---------- */
.formats { display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem 1.4rem; margin-bottom: 1.6rem; }
.formats__label { font: 600 0.76rem/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--slate); }
.formats__list { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.fmt {
  display: inline-flex; align-items: center; gap: 0.5rem;
  height: 50px; padding: 0 1.05rem 0 0.55rem;
  border-radius: 999px; border: 1.5px solid var(--sand); background: var(--paper);
  font: 600 0.92rem/1 var(--sans); color: var(--ink); cursor: pointer; white-space: nowrap;
  transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}
.fmt svg { width: 34px; height: 34px; color: var(--navy); transition: color 0.2s; }
.fmt:hover { border-color: var(--navy); }
.fmt.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.fmt.is-active svg { color: var(--green); }
.formats__status { flex-basis: 100%; min-height: 1.4em; margin-top: -0.4rem; font-size: 0.9rem; color: var(--slate); }
.formats__status:empty { display: none; }
@media (max-width: 759px) {
  .formats__list {
    flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
    margin-inline: calc(-1 * var(--gutter)); padding: 2px var(--gutter);
    scroll-padding-inline: var(--gutter);
  }
  .formats__list::-webkit-scrollbar { display: none; }
  .fmt { flex: none; }
}

.tabs {
  display: flex; gap: 2px; margin-bottom: clamp(26px, 3.5vw, 44px);
  border-bottom: 1px solid var(--line);
  overflow-x: auto; scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  position: relative; display: inline-flex; align-items: center; gap: 0.5rem; flex: none;
  padding: 1rem 1.05rem 1.05rem; border: 0; background: none; cursor: pointer;
  font: 600 1rem/1 var(--sans); color: var(--slate); white-space: nowrap;
  transition: color 0.2s, opacity 0.2s;
}
.tab::after {
  content: ""; position: absolute; left: 0.7rem; right: 0.7rem; bottom: -1px; height: 3px;
  border-radius: 3px 3px 0 0; background: var(--green);
  transform: scaleX(0); transition: transform 0.3s var(--ease);
}
.tab:hover { color: var(--navy); }
.tab[aria-selected="true"] { color: var(--navy); }
.tab[aria-selected="true"]::after { transform: scaleX(1); }
.tab__count { padding: 0.22rem 0.5rem; border-radius: 999px; background: var(--cream-2); color: var(--slate); font-size: 0.74rem; font-weight: 700; }
.tab[aria-selected="true"] .tab__count { background: var(--navy); color: #fff; }
.tab.is-empty { opacity: 0.45; }

.panel { display: grid; gap: clamp(22px, 4vw, 56px); }
@media (min-width: 960px) {
  .panel { grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.5fr); align-items: start; }
  .panel__aside { position: sticky; top: calc(var(--header-h) + 24px); }
}
.panel__img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.panel__meta { margin-top: 1.3rem; }
.panel__title { margin-bottom: 0.5rem; }
.panel__intro { color: var(--slate); }
.panel__count { margin-top: 0.9rem; font-size: 0.85rem; color: var(--slate); }
@media (max-width: 959px) {
  .panel__aside { display: grid; grid-template-columns: 132px 1fr; gap: 1rem; align-items: center; }
  .panel__img img { aspect-ratio: 1; }
  .panel__meta { margin-top: 0; }
  .panel__count { display: none; }
}
@media (max-width: 480px) {
  .panel__aside { grid-template-columns: 96px 1fr; }
  .panel__intro { font-size: 0.95rem; }
}

.ledger { border-top: 1px solid var(--line); }
.item {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: "sw text add" "sw fmts add";
  gap: 0.45rem 1.1rem; align-items: center;
  padding: 1.1rem 0.4rem; border-bottom: 1px solid var(--line);
  transition: background-color 0.2s;
}
.item:hover { background: rgba(255, 255, 255, 0.7); }
.item > .swatch { grid-area: sw; }
.item__text { grid-area: text; }
.item__name { font: 500 1.3rem/1.2 var(--serif); color: var(--navy); letter-spacing: -0.01em; }
.item__desc { margin-top: 0.15rem; font-size: 0.95rem; line-height: 1.45; color: var(--slate); }
.item__formats { grid-area: fmts; display: flex; flex-wrap: wrap; gap: 0.35rem; }
.item__formats li {
  padding: 0.38rem 0.55rem; border-radius: 6px; background: var(--cream-2);
  font: 600 0.72rem/1 var(--sans); letter-spacing: 0.03em; color: var(--ink); white-space: nowrap;
}
.item > .add { grid-area: add; }
@media (min-width: 1180px) {
  .item { grid-template-columns: auto minmax(0, 1fr) minmax(150px, auto) auto; grid-template-areas: "sw text fmts add"; }
  .item__formats { justify-content: flex-end; max-width: 250px; }
}
@media (max-width: 560px) {
  .item { grid-template-areas: "sw text text" "sw fmts add"; gap: 0.6rem 0.9rem; padding-inline: 0; }
  .item > .swatch { align-self: start; }
}
.ledger__empty { padding: 1.4rem 0; color: var(--slate); }

/* Add-to-quote toggle */
.add {
  display: inline-flex; align-items: center; gap: 0.35rem;
  height: 40px; padding: 0 1rem 0 0.75rem;
  border-radius: 999px; border: 1.5px solid var(--navy); background: transparent;
  color: var(--navy); font: 600 0.9rem/1 var(--sans); cursor: pointer; white-space: nowrap;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.add svg { width: 16px; height: 16px; flex: none; }
.add__check { display: none; }
.add:hover { background: var(--navy); color: #fff; }
.add[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: var(--night); }
.add[aria-pressed="true"] .add__plus { display: none; }
.add[aria-pressed="true"] .add__check { display: block; }
.add.is-pop { animation: pop 0.35s var(--ease); }
@keyframes pop { 45% { transform: scale(1.09); } }
.add--dark { border-color: rgba(255, 255, 255, 0.42); color: #fff; }
.add--dark:hover { background: #fff; border-color: #fff; color: var(--night); }

/* Sugar swatches */
.swatch {
  --c: #F6F4EF; --s: 50px;
  position: relative; isolation: isolate; overflow: hidden; flex: none;
  width: var(--s); height: var(--s); border-radius: 50%;
  background: var(--c);
  box-shadow:
    inset 0 0 0 1px rgba(14, 30, 46, 0.09),
    inset 0 -7px 12px rgba(14, 30, 46, 0.12),
    inset 0 6px 10px rgba(255, 255, 255, 0.5),
    0 1px 3px rgba(6, 31, 56, 0.1);
}
.swatch::before { content: ""; position: absolute; inset: 0; background-image: var(--tex, none); background-size: 64px 64px; }
.swatch[data-tex="powder"] { --tex: var(--tex-powder); }
.swatch[data-tex="fine"] { --tex: var(--tex-fine); }
.swatch[data-tex="medium"] { --tex: var(--tex-medium); }
.swatch[data-tex="coarse"] { --tex: var(--tex-coarse); }
.swatch[data-tex="soft"] { --tex: var(--tex-soft); }
.swatch[data-tex="pearl"]::before {
  background:
    radial-gradient(circle at 42% 38%, #fff 0 24%, rgba(14, 30, 46, 0.1) 36%, transparent 44%) 0 0 / 11px 11px,
    radial-gradient(circle at 42% 38%, #fff 0 24%, rgba(14, 30, 46, 0.1) 36%, transparent 44%) 5.5px 5.5px / 11px 11px;
}
.swatch[data-tex="liquid"] {
  background:
    radial-gradient(70% 55% at 32% 26%, rgba(255, 255, 255, 0.85) 0 9%, rgba(255, 255, 255, 0.25) 24%, transparent 46%),
    radial-gradient(90% 90% at 70% 82%, rgba(0, 0, 0, 0.28), transparent 62%),
    var(--c);
}
.swatch--icon { display: grid; place-items: center; color: var(--navy); }
.swatch--icon svg { width: 58%; height: 58%; }
.swatch--dark { color: #FBF1DF; }

/* "Can't see it" strip */
.range__ask {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem;
  margin-top: clamp(32px, 4vw, 52px); padding: clamp(20px, 2.5vw, 28px) clamp(20px, 3vw, 36px);
  border-radius: var(--radius); background: var(--cream-2);
}
.range__ask p { max-width: 60ch; color: var(--slate); }
.range__ask strong { color: var(--navy); }

/* ---------- Advisor (dark) ---------- */
.advisor { position: relative; isolation: isolate; overflow: hidden; background: var(--night); color: #fff; }
.advisor__bg { position: absolute; z-index: -1; inset: 0 0 auto 0; height: min(640px, 75%); }
.advisor__bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.32; }
.advisor__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 31, 56, 0.55) 0%, var(--night) 96%); }
.advisor .h2 { color: #fff; }
.advisor .h2 em { color: var(--green); }
.advisor .lead { color: var(--mist); }
.sectors { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.sector {
  display: flex; flex-direction: column; align-items: flex-start; gap: 0.9rem;
  padding: 1.05rem 1rem; border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.16); background: rgba(255, 255, 255, 0.05);
  color: #fff; font: 600 0.94rem/1.25 var(--sans); text-align: left; cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.sector svg { width: 28px; height: 28px; color: var(--green); }
.sector:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.32); }
.sector[aria-selected="true"] { background: #fff; border-color: #fff; color: var(--night); }
.sector[aria-selected="true"] svg { color: var(--navy); }
@media (max-width: 999px) {
  .sectors {
    display: flex; overflow-x: auto; scrollbar-width: none;
    margin-inline: calc(-1 * var(--gutter)); padding: 2px var(--gutter);
  }
  .sectors::-webkit-scrollbar { display: none; }
  .sector { flex: none; width: 168px; }
}
.spanel {
  display: grid; gap: clamp(24px, 4vw, 56px);
  padding: clamp(22px, 3.5vw, 48px); border-radius: var(--radius-lg);
  background: rgba(11, 42, 73, 0.82); border: 1px solid rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
@media (min-width: 960px) { .spanel { grid-template-columns: 0.78fr 1.4fr; align-items: start; } }
.spanel__intro .h3 { color: #fff; margin-bottom: 0.75rem; }
.spanel__intro p { color: var(--mist); margin-bottom: 1.6rem; max-width: 40ch; }
.recs { display: grid; gap: 10px; }
.rec {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 1rem; align-items: center;
  padding: 0.85rem 0.9rem; border-radius: 14px;
  background: rgba(255, 255, 255, 0.045); border: 1px solid rgba(255, 255, 255, 0.08);
}
.rec .swatch { --s: 44px; }
.rec__name { font: 500 1.16rem/1.2 var(--serif); color: #fff; }
.rec__why { margin-top: 0.1rem; font-size: 0.92rem; line-height: 1.45; color: var(--mist); }
@media (max-width: 480px) {
  .rec { grid-template-columns: auto minmax(0, 1fr); }
  .rec .add { grid-column: 2; justify-self: start; }
}

/* ---------- How it works ---------- */
.how { background: var(--cream-2); }
.steps { display: grid; gap: 14px; }
@media (min-width: 720px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step {
  position: relative; padding: clamp(24px, 2.5vw, 32px);
  border-radius: var(--radius); border: 1px solid rgba(14, 30, 46, 0.05);
  background: var(--paper); box-shadow: var(--shadow-sm);
}
.step__num { display: block; margin-bottom: 1.6rem; font: italic 400 2.7rem/1 var(--serif); color: var(--green-ink); }
.step .h3 { margin-bottom: 0.6rem; }
.step p { font-size: 0.98rem; color: var(--slate); }
.how__cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: clamp(28px, 4vw, 48px); }

/* ---------- Quality ---------- */
.quality__grid { display: grid; gap: clamp(40px, 6vw, 96px); }
@media (min-width: 960px) { .quality__grid { grid-template-columns: 0.82fr 1.18fr; align-items: center; } }
.quality__media { position: relative; }
.quality__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-lg); }
.quality__badge {
  position: absolute; left: clamp(-16px, -1.5vw, -8px); bottom: 28px;
  display: flex; align-items: center; gap: 0.75rem; max-width: 260px;
  padding: 0.9rem 1.15rem; border-radius: 16px; background: var(--paper); box-shadow: var(--shadow);
  font-size: 0.92rem; line-height: 1.35; color: var(--slate);
}
.quality__badge strong { color: var(--navy); }
.quality__badge svg { width: 30px; height: 30px; flex: none; color: var(--green-ink); }
@media (max-width: 959px) { .quality__media img { aspect-ratio: 4 / 3; } .quality__badge { left: 12px; bottom: 12px; } }
.quality .lead { margin-top: 1.4rem; }
.certs { display: grid; gap: 12px; margin-top: 2.2rem; }
@media (min-width: 640px) { .certs { grid-template-columns: 1fr 1fr; } }
.cert { display: flex; align-items: flex-start; gap: 1rem; padding: 1.1rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--paper); }
.cert__logo { display: grid; place-items: center; flex: none; width: 76px; height: 64px; }
.cert__logo img { max-height: 58px; width: auto; }
.cert__logo--icon { width: 64px; height: 64px; margin-inline: 6px; border-radius: 50%; background: var(--cream-2); color: var(--green-ink); }
.cert__logo--icon svg { width: 30px; height: 30px; }
.cert__title { margin-bottom: 0.25rem; font: 600 1rem/1.3 var(--sans); color: var(--navy); }
.cert p { font-size: 0.9rem; line-height: 1.5; color: var(--slate); }

/* ---------- Story ---------- */
.story { background: var(--cream-2); }
.story__grid { display: grid; gap: clamp(36px, 5vw, 80px); }
@media (min-width: 960px) { .story__grid { grid-template-columns: 1.25fr 0.75fr; align-items: center; } }
.story__text .h2 { margin-bottom: 1.6rem; }
.story__text p { max-width: 58ch; color: var(--slate); }
.story__text p + p { margin-top: 1rem; }
.story__lede { font: 400 clamp(1.25rem, 1.1rem + 0.5vw, 1.45rem)/1.5 var(--serif); color: var(--ink) !important; }
.story__sign { font: italic 400 1.35rem/1.4 var(--serif); color: var(--navy) !important; }
.story__sign em { color: var(--green-ink); }
.story__aside { position: relative; display: grid; justify-items: center; text-align: center; gap: 1.5rem; }
.story__years { display: grid; justify-items: center; }
.story__years-num { font: 500 clamp(7rem, 5rem + 8vw, 12rem)/0.85 var(--serif); letter-spacing: -0.04em; color: var(--navy); font-variant-numeric: lining-nums; }
.story__years-label { margin-top: 0.6rem; font: 600 0.76rem/1.4 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--slate); }
.stamp--ink { width: 150px; color: var(--navy); }
.stamp--ink .stamp__est { fill: var(--green-ink); }
.story__archive { position: relative; margin-top: clamp(40px, 5vw, 72px); }
.story__archive img { width: 100%; aspect-ratio: 1594 / 400; object-fit: cover; border-radius: var(--radius); }
.story__archive figcaption { margin-top: 0.7rem; font: italic 400 1rem/1.4 var(--serif); color: var(--slate); }
@media (max-width: 640px) { .story__archive img { aspect-ratio: 16 / 9; object-position: 30% 50%; } }

.timeline { position: relative; display: grid; margin-top: clamp(40px, 5vw, 64px); }
@media (min-width: 960px) {
  .timeline { grid-template-columns: repeat(6, 1fr); border-top: 2px solid var(--sand); }
  .timeline li { position: relative; padding: 1.6rem 1.4rem 0 0; }
  .timeline li::before { top: -8px; left: 0; }
}
@media (max-width: 959px) {
  .timeline { margin-left: 6px; padding-left: 1.6rem; border-left: 2px solid var(--sand); }
  .timeline li { position: relative; padding-bottom: 1.5rem; }
  .timeline li:last-child { padding-bottom: 0; }
  .timeline li::before { top: 6px; left: calc(-1.6rem - 8px); }
}
.timeline li::before {
  content: ""; position: absolute; width: 14px; height: 14px; border-radius: 50%;
  background: var(--cream-2); border: 2px solid var(--green-ink);
}
.timeline li:last-child::before { background: var(--green); border-color: var(--green); }
.timeline__year { display: block; margin-bottom: 0.45rem; font: 500 1.7rem/1 var(--serif); color: var(--navy); font-variant-numeric: oldstyle-nums; }
.timeline p { font-size: 0.93rem; line-height: 1.5; color: var(--slate); }

/* ---------- Team ---------- */
.people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 2vw, 24px); }
@media (min-width: 720px) { .people { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .people { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.person {
  position: relative; text-align: center;
  padding: clamp(18px, 2.2vw, 28px) clamp(12px, 1.5vw, 20px) clamp(18px, 2vw, 24px);
  border-radius: var(--radius); border: 1px solid rgba(14, 30, 46, 0.05);
  background: var(--paper); box-shadow: var(--shadow-sm);
}
.person__photo {
  width: clamp(104px, 11vw, 148px); aspect-ratio: 1; margin: 0 auto 1.1rem;
  border-radius: 50%; overflow: hidden; background: var(--cream-2);
  box-shadow: 0 0 0 6px var(--cream), 0 0 0 7px var(--sand);
}
.person__photo img { width: 100%; height: 100%; object-fit: cover; }
.person__photo--mono { display: grid; place-items: center; background: var(--navy); color: #fff; font: italic 400 clamp(2.2rem, 1.8rem + 1vw, 2.8rem)/1 var(--serif); }
.person__name { font: 500 1.28rem/1.2 var(--serif); color: var(--navy); letter-spacing: -0.01em; }
.person__role { margin-top: 0.3rem; font-size: 0.88rem; line-height: 1.4; color: var(--slate); }
.person__tag {
  display: inline-block; margin-top: 0.8rem; padding: 0.4rem 0.65rem; border-radius: 999px;
  background: rgba(128, 186, 37, 0.16); color: var(--green-ink);
  font: 700 0.66rem/1 var(--sans); letter-spacing: 0.12em; text-transform: uppercase;
}
.team__cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.75rem; margin-top: clamp(28px, 4vw, 48px); }
.team__cta p { margin-right: 0.5rem; font: italic 400 1.35rem/1.3 var(--serif); color: var(--navy); }
@media (max-width: 560px) { .team__cta .btn { width: 100%; } .team__cta p { width: 100%; text-align: center; margin: 0 0 0.25rem; } }

/* ---------- FAQs ---------- */
.faqs { background: var(--cream-2); }
.faqs__grid { display: grid; gap: clamp(32px, 5vw, 80px); }
@media (min-width: 960px) {
  .faqs__grid { grid-template-columns: 0.8fr 1.2fr; align-items: start; }
  .faqs__head { position: sticky; top: calc(var(--header-h) + 32px); }
}
.faqs__head .lead { margin-top: 1.3rem; }
.faqs__head .lead a { color: var(--navy); font-weight: 600; }
.faq { border-bottom: 1px solid var(--line); }
.faq:first-child { border-top: 1px solid var(--line); }
.faq__q {
  display: flex; align-items: center; justify-content: space-between; gap: 1.25rem;
  padding: 1.35rem 0; cursor: pointer; list-style: none;
  font: 500 clamp(1.15rem, 1.05rem + 0.35vw, 1.3rem)/1.3 var(--serif); color: var(--navy);
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q:hover { color: var(--navy-hover); }
.faq__icon { width: 22px; height: 22px; flex: none; color: var(--green-ink); transition: transform 0.3s var(--ease); }
.faq[open] .faq__icon { transform: rotate(45deg); }
.faq__a { padding: 0 2.5rem 1.4rem 0; color: var(--slate); }
.faq__a a { color: var(--navy); font-weight: 600; }

/* ---------- Quote ---------- */
.quote { position: relative; isolation: isolate; overflow: hidden; background: var(--night); color: #fff; }
.quote::before {
  content: ""; position: absolute; z-index: -1; inset: -20% auto auto -10%; width: 60%; aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(128, 186, 37, 0.13), transparent);
}
.quote__grid { display: grid; gap: clamp(36px, 5vw, 80px); }
@media (min-width: 1000px) {
  .quote__grid { grid-template-columns: 0.9fr 1.1fr; align-items: start; }
  .quote__intro { position: sticky; top: calc(var(--header-h) + 32px); }
}
.quote .h2 { color: #fff; }
.quote .h2 em { color: var(--green); }
.quote .lead { margin-top: 1.4rem; color: var(--mist); }
.contact-list { display: grid; gap: 10px; max-width: 480px; margin-top: 2rem; }
.contact-list a {
  display: flex; align-items: flex-start; gap: 1rem; padding: 1rem 1.15rem;
  border-radius: 16px; border: 1px solid rgba(255, 255, 255, 0.11); background: rgba(255, 255, 255, 0.05);
  color: #fff; text-decoration: none; transition: background-color 0.2s, border-color 0.2s;
}
.contact-list a:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.24); }
.contact-list svg { width: 22px; height: 22px; flex: none; margin-top: 2px; color: var(--green); }
.contact-list strong { display: block; font-size: 1.05rem; font-weight: 600; overflow-wrap: anywhere; }
.contact-list small { display: block; margin-top: 0.15rem; font-size: 0.88rem; line-height: 1.45; color: var(--mist); }
.quote__card { padding: clamp(22px, 3.5vw, 44px); border-radius: var(--radius-lg); background: var(--cream); color: var(--ink); box-shadow: var(--shadow-lg); }
.quote__alt { margin-top: 1.1rem; text-align: center; font-size: 0.92rem; color: var(--slate); }
.quote__alt a { color: var(--navy); font-weight: 600; }

/* Form */
.qform__progress { display: flex; gap: 1.5rem; margin-bottom: 1.6rem; font-size: 0.86rem; font-weight: 600; color: var(--slate); }
.qform__progress li { display: flex; align-items: center; gap: 0.5rem; }
.qform__progress span {
  display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  border: 1.5px solid var(--sand); font-size: 0.78rem; transition: all 0.25s;
}
.qform__progress .is-current { color: var(--navy); }
.qform__progress .is-current span { background: var(--navy); border-color: var(--navy); color: #fff; }
.qform__progress .is-done span { background: var(--green); border-color: var(--green); color: var(--night); }
.qform__legend { margin-bottom: 1.3rem; font: 500 clamp(1.45rem, 1.3rem + 0.6vw, 1.75rem)/1.2 var(--serif); color: var(--navy); }
.qform__stepno { display: block; margin-bottom: 0.6rem; font: 600 0.72rem/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--green-ink); }
.field { display: grid; gap: 0.4rem; margin-bottom: 1rem; }
.field-row { display: grid; gap: 0 1rem; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field label { font-size: 0.92rem; font-weight: 600; color: var(--ink); }
.opt { font-weight: 400; color: var(--slate); }
.req { color: var(--error); }
.qform input[type="text"], .qform input[type="email"], .qform input[type="tel"], .qform select, .qform textarea {
  width: 100%; min-height: 50px; padding: 0.75rem 0.95rem;
  border-radius: 12px; border: 1.5px solid var(--sand); background: var(--paper);
  font-size: 1rem; line-height: 1.3; transition: border-color 0.2s, box-shadow 0.2s;
}
.qform textarea { min-height: 112px; resize: vertical; }
.qform select { appearance: none; -webkit-appearance: none; padding-right: 2.6rem; background: var(--paper) var(--chev) no-repeat right 0.85rem center / 18px; }
.qform input:focus, .qform select:focus, .qform textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(0, 67, 122, 0.14); }
.qform .is-invalid { border-color: var(--error) !important; }
.field__error, .qform__error { font-size: 0.86rem; color: var(--error); }
.qform__error { margin-bottom: 0.9rem; }
.qform__privacy { margin: 0.25rem 0 1.25rem; font-size: 0.86rem; color: var(--slate); }
.qform__actions { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap-reverse; }
@media (max-width: 480px) { .qform__actions .btn--primary { width: 100%; } }

.qlist { margin-bottom: 1.3rem; padding: 1rem 1.1rem; border-radius: 16px; border: 1.5px dashed var(--sand); background: var(--paper); }
.qlist.has-items { border-style: solid; }
.qlist__title { display: flex; align-items: center; gap: 0.5rem; font-size: 0.92rem; font-weight: 700; }
.qlist__items:not(:empty) { margin-top: 0.4rem; }
.qlist__empty { margin-top: 0.4rem; font-size: 0.92rem; color: var(--slate); }
.qlist__empty a { color: var(--navy); font-weight: 600; }
.qitem { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 0.55rem 0.8rem; align-items: center; padding: 0.75rem 0; border-top: 1px solid var(--line); }
.qitem:first-child { border-top: 0; }
.qitem > .swatch { --s: 34px; }
.qitem__name { font-size: 0.98rem; font-weight: 600; line-height: 1.3; }
.qitem__remove {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  border: 0; background: var(--cream-2); color: var(--slate); cursor: pointer; transition: background-color 0.2s, color 0.2s;
}
.qitem__remove:hover { background: #F6D9D6; color: var(--error); }
.qitem__remove svg { width: 16px; height: 16px; }
.qitem__controls { grid-column: 2 / 4; display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.qform .qitem__controls select, .qform .qitem__controls input { min-height: 40px; padding: 0.45rem 0.7rem; border-radius: 10px; font-size: 0.9rem; }
.qform .qitem__controls select { padding-right: 2.1rem; background-position: right 0.6rem center; background-size: 15px; }
@media (max-width: 420px) { .qitem__controls { grid-column: 1 / -1; grid-template-columns: 1fr; } }

/* Stepped form (enhanced by JS); without JS both steps show as one form */
.qform:not(.is-stepped) .qlist, .qform:not(.is-stepped) [data-next], .qform:not(.is-stepped) [data-back], .qform:not(.is-stepped) .qform__progress { display: none; }
.qform:not(.is-stepped) .qform__step + .qform__step { margin-top: 1.5rem; }
.qform.is-stepped .qform__step[data-step="2"] { display: none; }
.qform.is-stepped.on-step-2 .qform__step[data-step="1"] { display: none; }
.qform.is-stepped.on-step-2 .qform__step[data-step="2"] { display: block; }
.qform__step { animation: step-in 0.35s var(--ease); }
@keyframes step-in { from { opacity: 0; transform: translateY(6px); } }

/* ---------- Footer ---------- */
.footer { background: var(--cream); }
.footer__grid { display: grid; gap: 2.4rem; padding-block: clamp(48px, 6vw, 84px); }
@media (min-width: 720px) { .footer__grid { grid-template-columns: 1.5fr 1fr 1fr; } .footer__contact { grid-column: 1 / -1; } }
@media (min-width: 1080px) { .footer__grid { grid-template-columns: 1.55fr 0.8fr 0.9fr 1.3fr; } .footer__contact { grid-column: auto; } }
.footer__logo { display: inline-block; border-radius: 4px; }
.footer__logo img { width: 232px; }
.footer__line { margin-top: 1rem; font: 400 1.18rem/1.45 var(--serif); color: var(--navy); }
.footer__line em { color: var(--green-ink); }
.footer__social { display: inline-flex; align-items: center; gap: 0.6rem; margin-top: 1.3rem; font-weight: 600; font-size: 0.95rem; color: var(--navy); text-decoration: none; }
.footer__social svg { width: 22px; height: 22px; }
.footer__social:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer__title { margin-bottom: 1rem; font: 600 0.74rem/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--slate); }
.footer__col ul { display: grid; gap: 0.55rem; }
.footer__col a { color: var(--ink); text-decoration: none; font-size: 0.97rem; }
.footer__col a:hover { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.footer__contact li > a, .footer__contact li > span { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.97rem; line-height: 1.5; color: var(--ink); }
.footer__contact svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--green-ink); }
.footer__contact .btn { margin-top: 1.4rem; }
.footer__legal {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.2rem 2rem;
  padding-block: 1.5rem 2rem; border-top: 1px solid var(--line); font-size: 0.82rem; color: var(--slate);
}
.footer__legal p { max-width: 80ch; }
.footer__certs { display: flex; gap: 0.5rem; }
.footer__certs img { height: 40px; width: auto; padding: 3px; border-radius: 8px; background: var(--paper); }

/* ---------- Floating quote tray, action bar, toast ---------- */
.tray {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  display: flex; align-items: center; gap: 0.9rem; padding: 0.55rem 0.55rem 0.55rem 1.05rem;
  border-radius: 999px; background: var(--night); color: #fff; text-decoration: none; box-shadow: var(--shadow-lg);
  transform: translateY(150%); visibility: hidden;
  transition: transform 0.4s var(--ease), visibility 0s linear 0.4s;
}
.tray.is-visible { transform: none; visibility: visible; transition: transform 0.4s var(--ease), visibility 0s; }
.tray > svg { width: 22px; height: 22px; color: var(--green); }
.tray__text { font-size: 0.92rem; }
.tray__go { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.62rem 1rem; border-radius: 999px; background: var(--green); color: var(--night); font-size: 0.88rem; font-weight: 700; }
.tray__go svg { width: 16px; height: 16px; }
@media (max-width: 759px) { .tray { display: none !important; } }

.actionbar {
  position: fixed; left: 8px; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom)); z-index: 60;
  display: none; grid-template-columns: 0.8fr 1.15fr 1.15fr; gap: 6px; padding: 6px;
  border-radius: 18px; background: rgba(6, 31, 56, 0.95); box-shadow: var(--shadow-lg);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transform: translateY(calc(100% + 24px)); visibility: hidden;
  transition: transform 0.4s var(--ease), visibility 0s linear 0.4s;
}
.actionbar.is-visible { transform: none; visibility: visible; transition: transform 0.4s var(--ease), visibility 0s; }
@media (max-width: 759px) { .actionbar { display: grid; } body { padding-bottom: 84px; } }
.actionbar__btn {
  display: flex; align-items: center; justify-content: center; gap: 0.4rem; height: 48px;
  border-radius: 12px; color: #fff; font-size: 0.9rem; font-weight: 600; text-decoration: none; white-space: nowrap;
}
.actionbar__btn svg { width: 18px; height: 18px; }
.actionbar__btn--primary { background: var(--green); color: var(--night); }
.actionbar .badge { background: var(--green); color: var(--night); }

.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 70;
  display: flex; align-items: center; gap: 1rem; max-width: calc(100% - 32px);
  padding: 0.75rem 0.75rem 0.75rem 1.1rem; border-radius: 14px;
  background: var(--ink); color: #fff; font-size: 0.92rem; box-shadow: var(--shadow-lg);
  opacity: 0; transform: translate(-50%, 16px); pointer-events: none;
  transition: opacity 0.25s, transform 0.3s var(--ease);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
body:has(.tray.is-visible) .toast { bottom: 92px; }
.toast__undo { padding: 0.45rem 0.7rem; border: 0; border-radius: 8px; background: none; color: var(--green); font-weight: 700; cursor: pointer; }
.toast__undo:hover { background: rgba(255, 255, 255, 0.08); }
@media (max-width: 759px) { .toast { bottom: calc(92px + env(safe-area-inset-bottom)); width: calc(100% - 32px); justify-content: space-between; } }

/* ---------- Simple pages (thank you, 404) ---------- */
.simple { display: flex; flex-direction: column; min-height: 100svh; }
.simple main { flex: 1; display: grid; place-items: center; padding: clamp(32px, 6vw, 80px) 0; }
.simple-card {
  position: relative; overflow: hidden; max-width: 760px; margin-inline: auto;
  padding: clamp(32px, 6vw, 72px); border-radius: var(--radius-lg); background: var(--night); color: #fff; text-align: center;
}
.simple-card::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--spectrum); }
.simple-card .h1 { color: #fff; font-size: clamp(2.4rem, 1.6rem + 3.4vw, 4.2rem); }
.simple-card .h1 em { color: var(--green); }
.simple-card .lead { margin: 1.4rem auto 0; color: var(--mist); }
.simple-card .lead a { color: #fff; font-weight: 600; }
.simple-card .stamp { width: 120px; margin: 0 auto 1.6rem; }
.simple-card__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-top: 2rem; }
.simple-foot { padding: 1.5rem 0 2rem; border-top: 1px solid var(--line); font-size: 0.85rem; color: var(--slate); }
.simple-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.simple-foot a { color: var(--navy); font-weight: 600; text-decoration: none; }

/* ---------- Motion ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .stamp__ring { animation: none; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

@media print {
  .header, .actionbar, .tray, .toast, .hero__jump, .stamp, .advisor__bg { display: none !important; }
  .hero__card, .advisor, .quote { background: #fff !important; color: #000 !important; }
}
