/* =====================================================================
   Silver Antler homepage: smooth, layered, interactive.
   Loaded after styles.css. Everything here is scoped to the homepage
   (body.home) or uses new class names, so quiz.html is unaffected.
   No inline styles are needed anywhere (keeps a strict CSP possible).
   ===================================================================== */

:root {
  --night: #0a1230;
  --night-2: #111d4a;
  --line-dark: rgba(255, 255, 255, 0.14);
  --rose: #d0708f;
  --rose-pale: #f3cddb;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --shadow-soft: 0 26px 60px -30px rgba(13, 21, 38, 0.4);
  --header-h: 76px;
  --sec: clamp(2.5rem, 5.5vw, 4.5rem);
}

/* Lenis smooth-scroll required rules */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-scrolling iframe { pointer-events: none; }
body.is-modal { overflow: hidden; }

button.btn { border: 0; font-family: inherit; cursor: pointer; }
.btn--on-dark { background: #fff; color: var(--royal-deep); }
.btn--on-dark:hover { background: var(--royal-pale); color: var(--night); }

/* ---------- Shared bits ---------- */
.eyebrow {
  margin: 0 0 1.1rem;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--royal);
}
.eyebrow--light { color: var(--royal-pale); }
.eyebrow--rose { color: var(--rose-pale); }
.eyebrow--dot { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--royal-pale); }
.eyebrow--dot::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--royal-pale); box-shadow: 0 0 0 4px rgba(169, 184, 230, 0.18);
}
.link-arrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-weight: 600; font-size: 0.95rem; color: var(--royal); text-decoration: none;
  transition: gap 0.3s var(--ease), color 0.3s ease;
}
.link-arrow:hover { gap: 0.85rem; color: var(--royal-deep); }


/* Scroll reveal: only hides content when JS is running (html.js) */
.js .reveal {
  opacity: 0; transform: translateY(26px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
  transition-delay: var(--d, 0s);
}
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Header: transparent over hero, floating pill on scroll ---------- */
.home .site-header {
  position: sticky; top: 0; z-index: 60;
  height: 0; margin: 0;
  background: transparent; border: 0;
  -webkit-backdrop-filter: none; backdrop-filter: none;
  pointer-events: none;
}
.home .site-header__inner {
  pointer-events: auto;
  width: 100%; max-width: calc(var(--max) + var(--gutter) * 2);
  margin-inline: auto; margin-top: 0;
  padding: 1.15rem var(--gutter);
  border: 1px solid transparent; border-radius: 0;
  transition: width 0.6s var(--ease), max-width 0.6s var(--ease), margin 0.6s var(--ease),
    padding 0.6s var(--ease), background-color 0.4s ease, border-color 0.4s ease,
    border-radius 0.6s var(--ease), box-shadow 0.4s ease;
}
.home .brand { color: #fff; transition: color 0.4s ease; }
.home .nav a:not(.btn) { color: rgba(255, 255, 255, 0.9); transition: color 0.4s ease, border-color 0.3s ease; }
.home .nav a:not(.btn):hover { border-bottom-color: currentColor; }
.home .site-header .btn--small { background: #fff; color: var(--royal-deep); transition: background-color 0.4s ease, color 0.4s ease; }
.home .site-header .btn--small:hover { background: var(--royal-pale); color: var(--night); }

.home .site-header.is-scrolled .site-header__inner {
  width: calc(100% - 1.5rem); max-width: 1000px;
  margin-top: 12px; padding: 0.55rem 0.6rem 0.55rem 1.5rem;
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
  border-color: rgba(13, 21, 38, 0.08); border-radius: 999px;
  box-shadow: 0 16px 44px -20px rgba(13, 21, 38, 0.5);
}
.home .site-header.is-scrolled .brand { color: var(--ink); }
.home .site-header.is-scrolled .nav a:not(.btn) { color: var(--ink); }
.home .site-header.is-scrolled .btn--small { background: var(--royal); color: #fff; }
.home .site-header.is-scrolled .btn--small:hover { background: var(--royal-deep); color: #fff; }
.home .nav { gap: 1.5rem; }

/* ---------- Hero ---------- */
.home .hero {
  position: relative; isolation: isolate; overflow: hidden; color: #fff;
  background:
    radial-gradient(90% 80% at 82% 6%, rgba(58, 84, 200, 0.75) 0%, rgba(44, 67, 168, 0) 58%),
    linear-gradient(170deg, #16256a 0%, var(--night-2) 40%, var(--night) 100%);
  padding-block: calc(var(--header-h) + clamp(2rem, 5vw, 4rem)) 0;
}
.hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero__bg::before {
  content: ""; position: absolute; top: -20%; left: 42%; width: 34%; height: 150%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0));
  transform: skewX(-24deg);
}
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.11) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(70% 75% at 72% 30%, #000 0%, transparent 100%);
  mask-image: radial-gradient(70% 75% at 72% 30%, #000 0%, transparent 100%);
}
.home .hero__grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: clamp(2rem, 5vw, 4rem); }
.home .hero h1 {
  font-size: clamp(3rem, 6.2vw, 5.6rem); line-height: 0.98; letter-spacing: -0.025em;
  color: #fff; text-wrap: balance; max-width: 12ch;
}
.home .hero h1 em { color: var(--royal-pale); }
.home .hero__copy > p.hero__sub {
  margin-top: 1.5rem; max-width: 30ch;
  font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: rgba(255, 255, 255, 0.74);
}
.hero__cta { margin-top: 2rem; }
.home .hero__quiz-bubble {
  margin-top: 1.1rem;
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.2);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.home .hero__quiz-bubble p { color: rgba(255, 255, 255, 0.86); }
.home .hero__quiz-bubble .btn--light { background: #fff; color: var(--royal-deep); }
.home .hero__quiz-bubble .btn--light:hover { background: var(--royal-pale); }

.hero__by { display: flex; align-items: center; gap: 0.85rem; margin-top: 1.8rem; font-size: 0.82rem; line-height: 1.4; color: rgba(255, 255, 255, 0.7); }
.hero__by strong { color: #fff; font-weight: 600; }
.hero__by-mark {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.28); background: rgba(255, 255, 255, 0.08);
}
.hero__by-mark img { width: 26px; filter: invert(1) brightness(1.2); }

/* Orbit graphic, recoloured for the dark hero */
.home .hero__art { justify-self: end; max-width: 520px; }
.home .hero__art::before {
  content: ""; position: absolute; inset: 6%; border-radius: 50%;
  background: radial-gradient(circle, rgba(120, 150, 255, 0.34), rgba(120, 150, 255, 0) 66%);
  filter: blur(8px);
}
.home .ring { border-color: rgba(255, 255, 255, 0.16); }
.home .hero__logo {
  filter: invert(1) brightness(1.2) drop-shadow(0 26px 44px rgba(0, 0, 0, 0.5));
}
.home .orbit__dot { background: var(--royal-pale); box-shadow: 0 0 0 5px rgba(169, 184, 230, 0.2), 0 0 18px rgba(169, 184, 230, 0.7); }
.home .orbit__dot--burgundy { background: var(--rose); box-shadow: 0 0 0 5px rgba(208, 112, 143, 0.22), 0 0 18px rgba(208, 112, 143, 0.7); }
.home .orbit__label {
  color: #fff; background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.26);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.home .orbit__label--burgundy { color: var(--rose-pale); background: rgba(120, 20, 60, 0.5); border-color: rgba(243, 205, 219, 0.35); }

.hero__stats {
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line-dark);
}
.hero__stat { padding: 1.5rem 1.5rem 1.6rem 0; }
.hero__stat + .hero__stat { padding-left: 1.75rem; border-left: 1px solid var(--line-dark); }
.hero__stat-num { font-family: var(--serif); font-size: clamp(2.3rem, 4.4vw, 3.6rem); line-height: 1; color: #fff; }
.hero__stat-num--word { font-style: italic; color: var(--royal-pale); }
.hero__stat-label { margin-top: 0.5rem; font-size: 0.82rem; color: rgba(255, 255, 255, 0.62); }

/* ---------- In good company ---------- */
.trusted { padding-block: clamp(2.5rem, 6vw, 4rem); }
.trusted__card {
  position: relative; overflow: hidden;
  padding: 1.7rem 0 1.5rem;
  border: 1px solid var(--hair); border-radius: 28px;
  background:
    radial-gradient(rgba(43, 66, 143, 0.12) 1px, transparent 1px) 0 0 / 22px 22px,
    rgba(255, 255, 255, 0.6);
}
.trusted__label {
  margin-bottom: 1.2rem; text-align: center;
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--graphite);
}

/* ---------- Scattered vs connected: interactive toggle ---------- */
.system { padding-bottom: var(--sec); }
.system__panel {
  position: relative; overflow: hidden; color: #fff;
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 4rem); align-items: center;
  padding: clamp(1.75rem, 5vw, 4rem);
  border-radius: 34px;
  background:
    radial-gradient(80% 90% at 90% 0%, rgba(58, 84, 200, 0.55), rgba(58, 84, 200, 0) 60%),
    linear-gradient(160deg, #16256a, var(--night));
}
.system__copy h2 { font-size: clamp(2.4rem, 4.6vw, 3.8rem); line-height: 1.02; color: #fff; }
.system__copy h2 em { color: var(--royal-pale); }
.system__copy p { margin: 1.2rem 0 1.8rem; max-width: 36ch; color: rgba(255, 255, 255, 0.72); }

.sys-card { background: #fff; color: var(--ink); border-radius: 24px; padding: clamp(1.1rem, 2.6vw, 1.7rem); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.6); }
.sys-card .off { display: none; }
.sys-card[data-state="off"] .on { display: none; }
.sys-card[data-state="off"] .off { display: inline; }
.sys-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.sys-card__kicker { font-size: 0.66rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--royal); }
.sys-card__title { margin-top: 0.3rem; font-family: var(--serif); font-size: 1.6rem; line-height: 1.1; }
.sys-card__hint { margin-top: 0.25rem; font-size: 0.82rem; color: var(--graphite); }

.switch {
  display: inline-flex; align-items: center; gap: 0.7rem; cursor: pointer;
  padding: 0.4rem 1rem 0.4rem 0.45rem; border-radius: 999px;
  border: 1px solid var(--hair); background: var(--bone); color: var(--ink);
  font: 600 0.8rem var(--sans); transition: background-color 0.3s ease, border-color 0.3s ease;
}
.switch:hover { border-color: var(--royal); }
.switch__track { position: relative; flex: none; width: 40px; height: 24px; border-radius: 999px; background: var(--royal); transition: background-color 0.35s ease; }
.switch__thumb { position: absolute; top: 3px; left: 19px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3); transition: left 0.35s var(--ease); }
.switch[aria-checked="false"] .switch__track { background: #b6bcc7; }
.switch[aria-checked="false"] .switch__thumb { left: 3px; }

.sys-map { position: relative; aspect-ratio: 600 / 260; margin-top: 1.4rem; }
.sys-map__lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.sys-map__lines path {
  fill: none; stroke: var(--royal); stroke-opacity: 0.4; stroke-width: 1.5; vector-effect: non-scaling-stroke;
  transition: stroke-opacity 0.5s ease;
}
.sys-map__pulse { fill: var(--royal); }
.sys-node {
  position: absolute; width: 22%; transform: translateY(-50%);
  padding: 0.55rem 0.5rem; text-align: center; font-size: 0.76rem; font-weight: 600; line-height: 1.25;
  background: #fff; border: 1px solid var(--hair); border-radius: 12px;
  box-shadow: 0 10px 22px -16px rgba(13, 21, 38, 0.5);
  transition: transform 0.6s var(--ease), background-color 0.4s ease, border-color 0.4s ease, color 0.4s ease;
}
.sys-node--l1, .sys-node--r1 { top: 20%; }
.sys-node--l2, .sys-node--r2 { top: 50%; }
.sys-node--l3, .sys-node--r3 { top: 80%; }
.sys-node--l1, .sys-node--l2, .sys-node--l3 { left: 0; }
.sys-node--r1, .sys-node--r2, .sys-node--r3 { right: 0; }
.sys-hub {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: grid; place-items: center; width: 78px; height: 78px; border-radius: 22px;
  background: var(--night); box-shadow: 0 0 0 9px rgba(43, 66, 143, 0.1);
  transition: opacity 0.5s ease, filter 0.5s ease, transform 0.6s var(--ease);
}
.sys-hub img { width: 46px; height: auto; filter: invert(1) brightness(1.2); }
.sys-node--r1 span, .sys-node--r2 span, .sys-node--r3 span { display: inline; }

.sys-card[data-state="off"] .sys-map__lines path { stroke-dasharray: 3 8; stroke-opacity: 0.2; }
.sys-card[data-state="off"] .sys-map__pulse { display: none; }
.sys-card[data-state="off"] .sys-hub { opacity: 0.4; filter: grayscale(1); transform: translate(-50%, -50%) scale(0.9); }
.sys-card[data-state="off"] .sys-node--r1, .sys-card[data-state="off"] .sys-node--r2, .sys-card[data-state="off"] .sys-node--r3 {
  background: #f6e7ec; border-color: rgba(86, 6, 29, 0.28); color: var(--burgundy);
}
.sys-card[data-state="off"] .sys-node--r1 { transform: translateY(-50%) translateX(8px) rotate(-3deg); }
.sys-card[data-state="off"] .sys-node--r2 { transform: translateY(-50%) translateX(-6px) rotate(2deg); }
.sys-card[data-state="off"] .sys-node--r3 { transform: translateY(-50%) translateX(10px) rotate(-2deg); }

.sys-card__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 1.5rem; padding-top: 1.2rem; border-top: 1px solid var(--hair); }
.sys-card__cols h3 { font-size: 0.86rem; font-weight: 700; }
.sys-card__cols p { margin-top: 0.3rem; font-size: 0.76rem; line-height: 1.45; color: var(--graphite); }
.sys-card__foot { margin-top: 1.2rem; font-size: 0.62rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--graphite); }

/* ---------- Interactive preview ---------- */
.preview { padding-block: var(--sec); background: linear-gradient(180deg, var(--bone) 0%, #e6eaf6 100%); }
.preview__grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.preview__copy h2 { font-size: clamp(2.3rem, 4.4vw, 3.6rem); line-height: 1.04; }
.preview__copy > p:not(.eyebrow):not(.preview__note) { margin: 1.2rem 0 1.8rem; max-width: 40ch; color: var(--graphite); }
.preview__note { margin-top: 1rem; font-size: 0.78rem; color: var(--graphite); }

.win {
  overflow: hidden; cursor: pointer; background: #fff;
  border: 1px solid var(--hair); border-radius: 22px; box-shadow: var(--shadow-soft);
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
}
.win:hover { transform: translateY(-6px) rotate(-0.4deg); box-shadow: 0 44px 90px -40px rgba(13, 21, 38, 0.55); }
.win:focus-visible { outline: 3px solid var(--royal); outline-offset: 4px; }
.win__chrome { display: flex; align-items: center; gap: 0.4rem; padding: 0.75rem 1rem; background: #f4f6fb; border-bottom: 1px solid var(--hair); }
.win__chrome i { width: 10px; height: 10px; border-radius: 50%; background: #cfd5e6; }
.win__chrome span { margin-left: 0.8rem; font-size: 0.72rem; color: var(--graphite); }
.win__body { position: relative; padding: 1.1rem; background: #fbfcfe; }
.win__hint {
  position: absolute; right: 1.4rem; bottom: 1.4rem; padding: 0.5rem 0.95rem; border-radius: 999px;
  background: var(--royal); color: #fff; font-size: 0.78rem; font-weight: 600;
  box-shadow: 0 14px 26px -12px rgba(43, 66, 143, 0.8);
  animation: bob 3.6s ease-in-out infinite;
}
.win__hint i { font-style: normal; }

/* The sample brand ("Harbour & Pine") is illustrative only */
.win, .pv {
  --hp-harbour: #14313f; --hp-pine: #2f6b5a; --hp-mist: #e4efec; --hp-coral: #e07a5f; --hp-cloud: #f6f8f7;
}
/* The site-wide em style (italic royal blue) must not leak into the sample brand */
.win em, .pv em { color: inherit; }
.hp-mark {
  position: relative; display: inline-block; flex: none; overflow: hidden;
  width: 44px; height: 44px; border-radius: 50%; background: var(--hp-pine);
}
.hp-mark::before {
  content: ""; position: absolute; left: 50%; top: 20%; width: 46%; height: 52%; transform: translateX(-50%);
  background: var(--hp-mist); clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
.hp-mark::after { content: ""; position: absolute; left: 0; right: 0; bottom: 16%; height: 9%; background: var(--hp-coral); }
.hp-mark--sm { width: 28px; height: 28px; }
.hp-mark--lg { width: 112px; height: 112px; }
.hp-word { font-family: var(--serif); font-size: 1.7rem; line-height: 1; letter-spacing: -0.01em; color: var(--hp-harbour); white-space: nowrap; }
.hp-word i { font-style: italic; color: var(--hp-coral); }

.board { display: grid; grid-template-columns: 1.25fr 1fr; gap: 0.8rem; }
.board > div { border-radius: 14px; }
.board__logo { display: flex; align-items: center; justify-content: center; gap: 0.7rem; padding: 1.5rem 1rem; background: var(--hp-mist); }
.board__logo .hp-word { font-size: 1.35rem; }
.board__swatches { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.sw { display: block; min-height: 44px; border-radius: 10px; }
.sw--harbour { background: var(--hp-harbour); } .sw--pine { background: var(--hp-pine); }
.sw--mist { background: var(--hp-mist); border: 1px solid rgba(20, 49, 63, 0.12); } .sw--coral { background: var(--hp-coral); }
.board__type { display: flex; align-items: center; gap: 0.9rem; padding: 1rem 1.1rem; background: #fff; border: 1px solid var(--hair); }
.board__type span { font-family: var(--serif); font-size: 2.8rem; line-height: 1; color: var(--hp-harbour); }
.board__type p { font-size: 0.72rem; line-height: 1.4; color: var(--graphite); }
.board__site { display: grid; gap: 0.4rem; align-content: start; padding: 0.7rem; background: var(--hp-cloud); border: 1px solid var(--hair); }
.board__site b { display: block; height: 42px; border-radius: 8px; background: linear-gradient(120deg, var(--hp-harbour), var(--hp-pine)); }
.board__site em { display: block; height: 7px; border-radius: 4px; background: #d7e0dd; }
.board__site em + em { width: 60%; }
.board__site u { display: block; width: 44%; height: 14px; border-radius: 999px; background: var(--hp-coral); }
.board__card { display: flex; align-items: center; gap: 0.6rem; padding: 0.9rem 1rem; background: var(--hp-harbour); color: #fff; font-family: var(--serif); font-size: 1.05rem; }
.board__card p { margin: 0; }

.preview__tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.9rem; margin-top: clamp(2rem, 5vw, 3.2rem); }
.tile {
  display: flex; align-items: center; gap: 0.85rem; text-align: left; cursor: pointer;
  padding: 1rem 1.1rem; background: #fff; border: 1px solid var(--hair); border-radius: 20px;
  font: inherit; color: var(--ink);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.3s ease;
}
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); border-color: rgba(43, 66, 143, 0.35); }
.tile__icon { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 12px; background: #e6ebf8; color: var(--royal); }
.tile__text { flex: 1; min-width: 0; }
.tile__text strong { display: block; font-size: 0.9rem; line-height: 1.25; }
.tile__text em { display: block; margin-top: 0.15rem; font-style: normal; font-size: 0.74rem; color: var(--graphite); }
.tile__arrow { color: var(--royal); transition: transform 0.35s var(--ease); }
.tile:hover .tile__arrow { transform: translate(3px, -3px); }

/* ---------- Preview pop-up ---------- */
.pv { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: clamp(0.5rem, 2.5vw, 2rem); }
.pv[hidden] { display: none; }
.pv__backdrop { position: absolute; inset: 0; background: rgba(8, 14, 40, 0.62); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); opacity: 0; transition: opacity 0.35s ease; }
.pv.is-open .pv__backdrop { opacity: 1; }
.pv__window {
  position: relative; display: grid; grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(1180px, 100%); height: min(800px, 100%);
  background: #f7f8fb; border-radius: 24px; overflow: hidden;
  box-shadow: 0 60px 140px -30px rgba(0, 0, 0, 0.7);
  opacity: 0; transform: translateY(28px) scale(0.97);
  transition: opacity 0.4s ease, transform 0.5s var(--ease);
}
.pv.is-open .pv__window { opacity: 1; transform: none; }
.pv__bar { display: flex; align-items: center; gap: 0.9rem; padding: 0.8rem 1rem 0.8rem 1.2rem; background: #fff; border-bottom: 1px solid var(--hair); }
.pv__dots { display: inline-flex; gap: 0.35rem; }
.pv__dots i { width: 10px; height: 10px; border-radius: 50%; background: #cfd5e6; }
.pv__brand { font-family: var(--serif); font-size: 1.25rem; font-weight: 400; }
.pv__tag { padding: 0.15rem 0.6rem; border-radius: 999px; background: #e6ebf8; color: var(--royal); font-size: 0.66rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.pv__meta { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.78rem; color: var(--graphite); }
.pv__close {
  display: grid; place-items: center; flex: none; width: 38px; height: 38px; margin-left: auto;
  border: 1px solid var(--hair); border-radius: 50%; background: #fff; font-size: 1.4rem; line-height: 1; cursor: pointer; color: var(--ink);
  transition: background-color 0.3s ease, color 0.3s ease;
}
.pv__close:hover { background: var(--ink); color: #fff; }
.pv__body { display: grid; grid-template-columns: 224px minmax(0, 1fr); min-height: 0; }
.pv__tabs { display: flex; flex-direction: column; gap: 0.25rem; padding: 1rem; background: #fff; border-right: 1px solid var(--hair); overflow-y: auto; }
.pv__tab {
  position: relative; padding: 0.8rem 1rem; text-align: left; cursor: pointer;
  border: 0; border-radius: 12px; background: transparent; color: var(--graphite);
  font: 600 0.9rem var(--sans); transition: background-color 0.3s ease, color 0.3s ease;
}
.pv__tab:hover { background: #f1f3f9; color: var(--ink); }
.pv__tab[aria-selected="true"] { background: #e6ebf8; color: var(--royal-deep); }
.pv__panels { min-height: 0; overflow-y: auto; padding: clamp(1.25rem, 3vw, 2.2rem); }
.pv__panel[hidden] { display: none; }
.pv__panel { animation: pvIn 0.55s var(--ease); }
@keyframes pvIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.pv__head { margin-bottom: 1.6rem; }
.pv__head h3 { max-width: 26ch; font-family: var(--serif); font-weight: 400; font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.1; }
.pv__foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.85rem 1.2rem; background: #fff; border-top: 1px solid var(--hair); font-weight: 600; font-size: 0.92rem; }

/* Example brand mock-ups inside the pop-up */
.hp { display: grid; gap: 1rem; }
.hp-card {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.9rem;
  min-height: 160px; padding: 1.4rem 1.2rem 2.4rem;
  background: #fff; border: 1px solid var(--hair); border-radius: 18px;
}
.hp-cap { position: absolute; left: 1rem; bottom: 0.75rem; font-size: 0.64rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--graphite); }
.hp-cap--top { top: 0.85rem; bottom: auto; }
.hp-lockup { display: flex; align-items: center; gap: 0.8rem; }
.hp-lockup--stack { flex-direction: column; text-align: center; }
.hp-lockup--sm .hp-word { font-size: 1.05rem; }
.hp-card--dark { background: var(--hp-harbour); border-color: var(--hp-harbour); }
.hp-card--dark .hp-word { color: #fff; }
.hp-card--dark .hp-cap { color: rgba(255, 255, 255, 0.6); }
.hp-card--lockup { background: var(--hp-mist); border-color: transparent; }

.hp--logo { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.hp--logo .hp-card--lockup { grid-column: span 4; }
.hp--logo .hp-card--icon { grid-column: span 2; }
.hp--logo .hp-card--dark { grid-column: span 2; }
.hp--logo .hp-card--palette { grid-column: span 4; }
.hp--logo .hp-card--type { grid-column: span 6; flex-direction: row; gap: 2rem; }
.hp-swatches { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.55rem; width: 100%; }
.hp-sw { display: flex; flex-direction: column; justify-content: flex-end; gap: 0.1rem; min-height: 96px; padding: 0.65rem; border-radius: 12px; color: #fff; font-size: 0.72rem; }
.hp-sw b { font-weight: 700; } .hp-sw i { font-style: normal; opacity: 0.75; font-size: 0.66rem; }
.hp-sw--harbour { background: var(--hp-harbour); } .hp-sw--pine { background: var(--hp-pine); }
.hp-sw--mist { background: var(--hp-mist); color: var(--hp-harbour); border: 1px solid rgba(20, 49, 63, 0.12); } .hp-sw--coral { background: var(--hp-coral); }
.hp-aa { font-family: var(--serif); font-size: 5rem; line-height: 1; color: var(--hp-harbour); }
.hp-typeline { font-size: 0.9rem; line-height: 1.7; color: var(--graphite); }
.hp-typeline b { color: var(--ink); }

.hp-browser { overflow: hidden; background: #fff; border: 1px solid var(--hair); border-radius: 18px; box-shadow: var(--shadow-soft); }
.hp-browser__bar { display: flex; align-items: center; gap: 0.4rem; padding: 0.7rem 1rem; background: #f4f6fb; border-bottom: 1px solid var(--hair); }
.hp-browser__bar i { width: 10px; height: 10px; border-radius: 50%; background: #cfd5e6; }
.hp-browser__bar span { margin-left: 0.8rem; padding: 0.2rem 0.8rem; border-radius: 999px; background: #fff; font-size: 0.7rem; color: var(--graphite); }
.hp-site { background: var(--hp-cloud); }
.hp-site__nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.9rem 1.4rem; background: #fff; border-bottom: 1px solid rgba(20, 49, 63, 0.08); }
.hp-site__links { display: flex; align-items: center; gap: 1.1rem; font-size: 0.78rem; color: var(--hp-harbour); }
.hp-site__links em { font-style: normal; }
.hp-site__links b { padding: 0.4rem 0.9rem; border-radius: 999px; background: var(--hp-coral); color: #fff; font-weight: 600; }
.hp-site__hero { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 1.5rem; align-items: center; padding: 2rem 1.4rem; }
.hp-site__hero h4 { max-width: 14ch; font-family: var(--serif); font-weight: 400; font-size: clamp(1.7rem, 3.2vw, 2.6rem); line-height: 1.04; color: var(--hp-harbour); }
.hp-site__hero p { margin: 0.8rem 0 1.1rem; max-width: 30ch; font-size: 0.86rem; color: var(--graphite); }
.hp-site__btns { display: flex; gap: 0.6rem; font-size: 0.78rem; }
.hp-site__btns b { padding: 0.55rem 1rem; border-radius: 999px; background: var(--hp-harbour); color: #fff; font-weight: 600; }
.hp-site__btns em { padding: 0.55rem 1rem; border: 1px solid rgba(20, 49, 63, 0.25); border-radius: 999px; font-style: normal; color: var(--hp-harbour); }
.hp-site__art { display: block; aspect-ratio: 1; border-radius: 26px; background: radial-gradient(circle at 70% 28%, var(--hp-coral) 0 14%, transparent 15%), linear-gradient(170deg, var(--hp-pine), var(--hp-harbour)); }
.hp-site__cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.9rem; padding: 0 1.4rem 1.6rem; }
.hp-site__cards div { display: flex; flex-direction: column; gap: 0.15rem; padding: 0.8rem; background: #fff; border: 1px solid rgba(20, 49, 63, 0.08); border-radius: 14px; }
.hp-site__cards span { display: block; aspect-ratio: 16 / 9; margin-bottom: 0.5rem; border-radius: 10px; background: linear-gradient(135deg, var(--hp-mist), #cfe3dc); }
.hp-site__cards b { font-size: 0.82rem; color: var(--hp-harbour); } .hp-site__cards em { font-style: normal; font-size: 0.74rem; color: var(--graphite); }

.hp--voice { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hp--voice .hp-card { align-items: flex-start; justify-content: flex-start; padding-top: 2.6rem; padding-bottom: 1.4rem; }
.hp--voice .hp-card:last-child { grid-column: span 2; }
.hp-card--tagline { background: var(--hp-harbour); border-color: var(--hp-harbour); }
.hp-card--tagline .hp-cap { color: rgba(255, 255, 255, 0.6); }
.hp-tagline { font-family: var(--serif); font-size: clamp(1.9rem, 3.4vw, 2.7rem); line-height: 1.05; color: #fff; }
.hp-list { display: grid; gap: 0.8rem; font-size: 0.9rem; color: var(--graphite); }
.hp-list b { display: inline-block; min-width: 4.4rem; color: var(--hp-pine); }
.hp-tags { display: flex; gap: 0.5rem; }
.hp-tags span { padding: 0.35rem 0.85rem; border-radius: 999px; background: var(--hp-mist); color: var(--hp-pine); font-size: 0.8rem; font-weight: 700; }
.hp-say { display: grid; gap: 0.5rem; margin-top: 0.4rem; font-size: 0.92rem; }
.hp-say em { display: inline-block; margin-right: 0.5rem; font-style: normal; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--hp-coral); }

.hp--print { grid-template-columns: 1.3fr 1fr 1fr; }
.hp-bizcard { display: flex; flex-direction: column; justify-content: center; gap: 0.25rem; width: 190px; height: 112px; padding: 0.9rem 1rem; border-radius: 10px; box-shadow: 0 16px 30px -18px rgba(13, 21, 38, 0.6); font-size: 0.7rem; }
.hp-bizcard b { font-family: var(--serif); font-size: 1.1rem; font-weight: 400; }
.hp-bizcard--front { background: var(--hp-harbour); color: #fff; flex-direction: row; align-items: center; gap: 0.6rem; transform: rotate(-4deg); }
.hp-bizcard--back { background: #fff; border: 1px solid var(--hair); color: var(--hp-harbour); transform: rotate(3deg); margin-top: -1.6rem; margin-left: 2rem; }
.hp-bizcard--back em { font-style: normal; color: var(--hp-pine); } .hp-bizcard--back span { color: var(--graphite); font-size: 0.62rem; }
.hp-bag { display: flex; flex-direction: column; align-items: center; gap: 0.35rem; width: 120px; height: 158px; padding: 1.1rem 0.6rem; border-radius: 10px 10px 14px 14px; background: var(--hp-pine); color: #fff; text-align: center; box-shadow: 0 16px 30px -18px rgba(13, 21, 38, 0.6); }
.hp-bag .hp-mark { background: var(--hp-mist); } .hp-bag .hp-mark::before { background: var(--hp-pine); }
.hp-bag b { margin-top: 0.6rem; font-family: var(--serif); font-size: 1.15rem; font-weight: 400; } .hp-bag em { font-style: normal; font-size: 0.62rem; opacity: 0.8; }
.hp-flyer { display: flex; flex-direction: column; justify-content: space-between; width: 128px; height: 176px; padding: 1rem 0.9rem; border-radius: 8px; background: var(--hp-mist); color: var(--hp-harbour); box-shadow: 0 16px 30px -18px rgba(13, 21, 38, 0.6); border-top: 8px solid var(--hp-coral); }
.hp-flyer b { font-family: var(--serif); font-size: 1.35rem; font-weight: 400; line-height: 1.05; } .hp-flyer em { font-style: normal; font-size: 0.7rem; color: var(--graphite); } .hp-flyer span { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--hp-pine); }

.hp--launch { grid-template-columns: 0.9fr 1.2fr 1fr; }
.hp-poster { display: flex; flex-direction: column; justify-content: flex-end; gap: 0.3rem; width: 150px; height: 200px; padding: 1rem; border-radius: 10px; background: linear-gradient(170deg, var(--hp-coral), #c25a41); color: #fff; box-shadow: 0 16px 30px -18px rgba(13, 21, 38, 0.6); }
.hp-poster em { font-style: normal; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.85; }
.hp-poster b { font-family: var(--serif); font-size: 1.7rem; font-weight: 400; line-height: 1; } .hp-poster span { font-size: 0.7rem; opacity: 0.9; }
.hp-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.6rem; width: 100%; }
.hp-tile { display: grid; place-items: center; aspect-ratio: 1; padding: 0.4rem; border-radius: 12px; text-align: center; color: #fff; font-family: var(--serif); font-size: 1.05rem; line-height: 1.05; }
.hp-tile--a { background: var(--hp-pine); } .hp-tile--b { background: var(--hp-harbour); } .hp-tile--c { background: var(--hp-coral); }
.hp-tile b { font-weight: 400; }
.hp-steps { display: grid; gap: 1.1rem; width: 100%; padding-left: 1.6rem; border-left: 2px solid var(--hp-mist); }
.hp-steps li { position: relative; }
.hp-steps li::before { content: ""; position: absolute; left: -2.02rem; top: 0.3rem; width: 12px; height: 12px; border-radius: 50%; background: var(--hp-coral); box-shadow: 0 0 0 4px #fff; }
.hp-steps b { display: block; font-size: 0.9rem; color: var(--hp-harbour); } .hp-steps em { font-style: normal; font-size: 0.76rem; color: var(--graphite); }

/* ---------- Sourcing offer: pop-up content ---------- */
.src-card {
  padding: clamp(1.25rem, 3.5vw, 1.9rem); border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 24px;
  background: rgba(255, 255, 255, 0.08);
}
.src-card__num { font-family: var(--serif); font-size: clamp(3.4rem, 7vw, 5.4rem); line-height: 1; }
.src-card__num small { font-size: 0.55em; }
.src-card__label { margin-top: 0.6rem; max-width: 30ch; color: rgba(255, 255, 255, 0.8); }
.src-route { display: flex; align-items: center; margin-top: 2rem; }
.src-route__node { flex: none; padding: 0.55rem 0.95rem; border: 1px solid rgba(255, 255, 255, 0.28); border-radius: 12px; background: rgba(255, 255, 255, 0.1); font-size: 0.78rem; font-weight: 600; white-space: nowrap; }
.src-route__node--hub { background: #fff; border-color: #fff; color: var(--burgundy); }
.src-route__line { position: relative; flex: 1 1 20px; min-width: 16px; height: 2px; margin-inline: 6px; background: rgba(255, 255, 255, 0.28); }
.src-route__line i { position: absolute; top: 50%; left: 0; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: #fff; animation: pulseX 2s linear infinite; }
.src-card__foot { margin-top: 1.4rem; font-size: 0.74rem; color: rgba(255, 255, 255, 0.6); }
@keyframes pulseX { from { left: 0; } to { left: calc(100% - 8px); } }

/* ---------- Stories carousel ---------- */
.stories { padding-block: var(--sec); overflow: hidden; }
.stories__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin-bottom: clamp(1.5rem, 4vw, 2.5rem); }
.stories__ctrl { display: flex; align-items: center; gap: 0.7rem; }
.stories__count { margin-right: 0.6rem; font-family: var(--serif); font-size: 1.2rem; color: var(--graphite); }
.stories__count [data-stories-current] { color: var(--ink); }
.round-btn { display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid var(--hair); border-radius: 50%; background: #fff; font-size: 1.05rem; color: var(--ink); cursor: pointer; transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s var(--ease); }
.round-btn:hover { background: var(--royal); color: #fff; border-color: var(--royal); transform: scale(1.06); }
.stories__track {
  --pad: max(var(--gutter), calc((100vw - var(--max)) / 2));
  display: flex; gap: 1.1rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 0.5rem var(--pad) 1.6rem; scroll-padding-inline: var(--pad);
}
.stories__track::-webkit-scrollbar { display: none; }
.stories__track:focus-visible { outline: 3px solid var(--royal); outline-offset: -3px; }
.stories .t-card {
  flex: 0 0 min(84vw, 370px); width: auto; scroll-snap-align: start;
  padding: 1.9rem; background: #fff; border-radius: 28px;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.stories .t-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-soft); }
.stories .t-card__quote { font-size: 1.06rem; line-height: 1.55; }

/* ---------- About ---------- */

/* ---------- FAQ ---------- */
.faq { padding-block: var(--sec); background: var(--bone); }
.faq__grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.faq__head h2 { font-size: clamp(2.4rem, 4.6vw, 3.8rem); line-height: 1.02; }
.faq__head > p:not(.eyebrow) { margin: 1.2rem 0 1.6rem; max-width: 34ch; color: var(--graphite); }
.faq__item { border-bottom: 1px solid var(--hair); }
.faq__item:first-child { border-top: 1px solid var(--hair); }
.faq__q { display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%; padding: 1.35rem 0; border: 0; background: none; text-align: left; cursor: pointer; font: 600 1.05rem/1.35 var(--sans); color: var(--ink); }
.faq__q:hover { color: var(--royal); }
.faq__icon { position: relative; flex: none; width: 22px; height: 22px; }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 3px; right: 3px; top: 50%; height: 2px; margin-top: -1px; border-radius: 2px; background: currentColor; transition: transform 0.4s var(--ease); }
.faq__icon::after { transform: rotate(90deg); }
.faq__item.is-open .faq__icon::after { transform: rotate(0deg); }
.faq__a { display: grid; grid-template-rows: 1fr; }
.faq__a > div { overflow: hidden; }
.faq__a p { padding: 0 2.4rem 1.5rem 0; max-width: 62ch; color: var(--graphite); }
.faq__a a { color: var(--royal); }
.js .faq__a { grid-template-rows: 0fr; transition: grid-template-rows 0.5s var(--ease); }
.js .faq__item.is-open .faq__a { grid-template-rows: 1fr; }

/* ---------- Closing CTA ---------- */
.finale {
  position: relative; isolation: isolate; overflow: hidden; text-align: center; color: #fff;
  padding-block: clamp(5rem, 11vw, 9rem);
  background:
    radial-gradient(90% 90% at 50% 0%, rgba(58, 84, 200, 0.7) 0%, rgba(44, 67, 168, 0) 62%),
    linear-gradient(170deg, #16256a, var(--night));
}
.finale__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.finale__bg::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px); background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(60% 80% at 50% 20%, #000, transparent); mask-image: radial-gradient(60% 80% at 50% 20%, #000, transparent);
}
.finale h2 { font-size: clamp(2.8rem, 7vw, 5.6rem); line-height: 1; color: #fff; }
.finale h2 em { color: var(--royal-pale); }
.finale__sub { max-width: 40ch; margin: 1.5rem auto 2rem; color: rgba(255, 255, 255, 0.74); font-size: 1.1rem; }
.finale__cta { display: flex; flex-direction: column; align-items: center; gap: 1.1rem; }
.finale .hero__quiz-bubble { margin-top: 0; }
.finale__note { margin-top: 2.2rem; font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255, 255, 255, 0.55); }

/* ---------- Footer ---------- */
.home .site-footer { background: var(--night); color: rgba(255, 255, 255, 0.6); }
.home .site-footer__inner { align-items: center; padding-block: 1.6rem; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 0.4rem 1.6rem; }
.site-footer__links a { color: rgba(255, 255, 255, 0.8); text-decoration: none; }
.site-footer__links a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* =====================================================================
   Responsive
   ===================================================================== */
@media (max-width: 1080px) {
  .preview__tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
  .system__panel { grid-template-columns: minmax(0, 1fr); }
  .system__copy { text-align: center; }
  .system__copy p { margin-inline: auto; }
  .preview__grid, .faq__grid { grid-template-columns: minmax(0, 1fr); }
  .preview__copy, .faq__head { text-align: center; }
  .preview__copy > p, .faq__head > p { margin-inline: auto; }
  .win { max-width: 620px; margin-inline: auto; }
  .src-card { max-width: 620px; margin-inline: auto; }
  .hp--print { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hp--launch { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hp--launch .hp-card--timeline { grid-column: span 2; }
}

@media (max-width: 860px) {
  .home .nav a[href^="trade/"] { display: none; }
}
@media (max-width: 660px) {
  .home .nav a:not(.btn) { display: none; }
}

@media (max-width: 880px) {
  .home .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .home .hero__art { justify-self: center; max-width: min(72vw, 400px); }
  .home .hero h1 { max-width: none; }
  .home .hero__copy > p.hero__sub { max-width: 34ch; }

  /* Journey becomes a vertical stepper */
}

@media (max-width: 760px) {
  .pv { padding: 0; }
  .pv__window { width: 100%; height: 100%; border-radius: 0; }
  .pv__meta { display: none; }
  .pv__body { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .pv__tabs { flex-direction: row; gap: 0.3rem; padding: 0.6rem 0.8rem; overflow-x: auto; overflow-y: hidden; border-right: 0; border-bottom: 1px solid var(--hair); scrollbar-width: none; }
  .pv__tabs::-webkit-scrollbar { display: none; }
  .pv__tab { flex: none; padding: 0.6rem 0.95rem; white-space: nowrap; }
  .hp--logo { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hp--logo .hp-card--lockup, .hp--logo .hp-card--palette, .hp--logo .hp-card--type { grid-column: span 2; }
  .hp--logo .hp-card--icon, .hp--logo .hp-card--dark { grid-column: span 1; }
  .hp--logo .hp-card--type { flex-direction: column; gap: 0.8rem; text-align: center; }
  .hp-word { font-size: 1.3rem; }
  .hp--voice { grid-template-columns: minmax(0, 1fr); }
  .hp--voice .hp-card:last-child { grid-column: auto; }
  .hp--print, .hp--launch { grid-template-columns: minmax(0, 1fr); }
  .hp--launch .hp-card--timeline { grid-column: auto; }
  .hp-site__hero { grid-template-columns: minmax(0, 1fr); }
  .hp-site__art { display: none; }
  .hp-site__links em { display: none; }
  .hp-site__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hp-site__cards div:last-child { display: none; }
  .hp-swatches { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  /* Scattered-vs-connected map stacks: left row, hub, right row */
  .sys-map { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.6rem; aspect-ratio: auto; justify-items: stretch; align-items: stretch; }
  .sys-map__lines { display: none; }
  .sys-node, .sys-node--l1, .sys-node--l2, .sys-node--l3, .sys-node--r1, .sys-node--r2, .sys-node--r3 {
    position: static; width: auto; transform: none; top: auto; left: auto; right: auto;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.7rem; padding: 0.5rem 0.3rem;
  }
  .sys-hub { position: static; grid-column: 1 / -1; justify-self: center; transform: none; margin: 0.6rem 0; }
  .sys-card[data-state="off"] .sys-hub { transform: scale(0.9); }
  .sys-card[data-state="off"] .sys-node--r1, .sys-card[data-state="off"] .sys-node--r2, .sys-card[data-state="off"] .sys-node--r3 { transform: none; }
  .sys-card__cols { grid-template-columns: minmax(0, 1fr); gap: 0.9rem; text-align: center; }
  .sys-card__head { justify-content: center; text-align: center; }
  .sys-card__foot { text-align: center; }
  .preview__tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile__arrow { display: none; }
}

@media (max-width: 560px) {
  :root { --header-h: 68px; }
  /* Hide orbit labels on phones without display:none, so their counter-rotation
     never restarts out of sync with the orbit if the screen is rotated. */
  .home .orbit__tag { display: block; visibility: hidden; }
  .home .site-header__inner { padding: 0.9rem var(--gutter); }
  .home .site-header.is-scrolled .site-header__inner { padding: 0.45rem 0.5rem 0.45rem 1.15rem; }
  .home .hero { padding-block: calc(var(--header-h) + 1.75rem) 0; }
  .home .hero h1 { font-size: clamp(2.5rem, 11.5vw, 3.2rem); }
  .home .hero__copy > p.hero__sub { font-size: 1.05rem; }
  .hero__cta { margin-top: 1.6rem; }
  .hero__by { justify-content: center; text-align: left; }
  .hero__stats { grid-template-columns: repeat(3, minmax(0, 1fr)); text-align: center; }
  .hero__stat { padding: 1.2rem 0.4rem 1.3rem; }
  .hero__stat + .hero__stat { padding-left: 0.4rem; }
  .hero__stat-num { font-size: clamp(1.7rem, 8vw, 2.3rem); }
  .hero__stat-label { font-size: 0.7rem; }
    .system__panel { padding: 1.5rem 1rem; border-radius: 26px; }
  .sys-card { padding: 1rem; }

  .win__hint { right: 0.8rem; bottom: 0.8rem; }
  .board { grid-template-columns: minmax(0, 1fr); }
  .board__site, .board__card { display: none; }


  .src-route { flex-wrap: wrap; justify-content: center; gap: 0.5rem; }
  .src-route__line { display: none; }
  .src-card { text-align: center; }
  .src-card__label { margin-inline: auto; }

  .stories__ctrl { justify-content: center; }
  .faq__q { font-size: 1rem; }
  .faq__a p { padding-right: 0; }
  .site-footer__inner { justify-content: center; text-align: center; }
  .site-footer__links { justify-content: center; }
}

/* ---------- Hero: floating brand board (replaces the orbit graphic) ---------- */
.hero__board { position: relative; justify-self: end; width: 100%; max-width: 560px; }
.hero__board::before {
  content: ""; position: absolute; inset: -8% -6%; z-index: -1; border-radius: 50%;
  background: radial-gradient(circle, rgba(120, 150, 255, 0.32), rgba(120, 150, 255, 0) 65%);
  filter: blur(10px);
}
.hero__float { animation: boardFloat 7s ease-in-out infinite; }
@keyframes boardFloat {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-14px) rotate(0.4deg); }
}
.hero__board .win { box-shadow: 0 50px 90px -30px rgba(0, 0, 0, 0.6); border-color: rgba(255, 255, 255, 0.5); }
.hero__board .win:hover { transform: translateY(-4px) scale(1.02); }
.hero__board-note { margin-top: 1.4rem; text-align: center; font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255, 255, 255, 0.5); }

@media (max-width: 880px) {
  .hero__board { justify-self: center; max-width: 520px; }
}
@media (max-width: 560px) {
  .hero__board { max-width: 100%; }
  .hero__board .win__body { padding-bottom: 3.6rem; }
}

/* Shortened hero: scroll cue sits directly under the copy */

/* Wider diagram card so each caption title sits on one line */
@media (min-width: 981px) {
  .system__panel { grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr); }
}
@media (min-width: 1181px) {
  .sys-card__cols h3 { white-space: nowrap; }
}
@media (min-width: 981px) {
  .sys-card__cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.4fr); gap: 1.1rem; }
}


/* ---------- Floating sourcing offer + pop-up ---------- */
.btn--ghost-dark { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, 0.5); }
.btn--ghost-dark:hover { background: rgba(255, 255, 255, 0.14); color: #fff; }

.src-pill {
  position: fixed; z-index: 55; left: 1.25rem; bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
  display: flex; align-items: center; gap: 0.15rem;
  padding: 0.3rem 0.3rem 0.3rem 0.35rem; border-radius: 999px;
  background: linear-gradient(135deg, #6d0b28, var(--burgundy));
  color: #fff; box-shadow: 0 16px 34px -14px rgba(50, 3, 15, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.12) inset;
  opacity: 0; visibility: hidden; transform: translateY(14px);
  transition: opacity 0.5s var(--ease), transform 0.6s var(--ease), visibility 0s linear 0.5s;
}
.src-pill.is-visible { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
body.is-modal .src-pill { opacity: 0; visibility: hidden; }
.src-pill__btn {
  display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.5rem 0.9rem 0.5rem 0.75rem;
  border: 0; border-radius: 999px; background: transparent; color: inherit; cursor: pointer;
  font: 500 0.78rem/1.2 var(--sans); text-align: left;
}
.src-pill__btn strong { font-weight: 700; color: var(--rose-pale); }
.src-pill__btn:hover .src-pill__arrow { transform: translateX(3px); }
.src-pill__dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--rose-pale); box-shadow: 0 0 0 4px rgba(243, 205, 219, 0.2); }
.src-pill__arrow { transition: transform 0.3s var(--ease); }
.src-pill__close {
  display: grid; place-items: center; flex: none; width: 26px; height: 26px; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, 0.12); color: rgba(255, 255, 255, 0.85); font-size: 1rem; line-height: 1; cursor: pointer;
  transition: background-color 0.3s ease;
}
.src-pill__close:hover { background: rgba(255, 255, 255, 0.28); color: #fff; }
.src-pill__btn:focus-visible, .src-pill__close:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.sm { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: clamp(0.75rem, 3vw, 2rem); }
.sm[hidden] { display: none; }
.sm__backdrop { position: absolute; inset: 0; background: rgba(28, 3, 12, 0.62); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); opacity: 0; transition: opacity 0.35s ease; }
.sm.is-open .sm__backdrop { opacity: 1; }
.sm__card {
  position: relative; width: min(560px, 100%); max-height: 100%; overflow-y: auto;
  padding: clamp(1.5rem, 4vw, 2.4rem); border-radius: 28px; color: #fff;
  background: linear-gradient(155deg, #6d0b28 0%, var(--burgundy) 50%, #33030f 100%);
  box-shadow: 0 60px 120px -30px rgba(0, 0, 0, 0.7);
  opacity: 0; transform: translateY(24px) scale(0.97); transition: opacity 0.4s ease, transform 0.5s var(--ease);
}
.sm.is-open .sm__card { opacity: 1; transform: none; }
.sm__close {
  position: absolute; top: 1rem; right: 1rem; display: grid; place-items: center; width: 38px; height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 50%; background: rgba(255, 255, 255, 0.08);
  color: #fff; font-size: 1.4rem; line-height: 1; cursor: pointer; transition: background-color 0.3s ease;
}
.sm__close:hover { background: rgba(255, 255, 255, 0.22); }
.sm__card h2 { font-size: clamp(2.2rem, 5vw, 3.1rem); line-height: 1; color: #fff; padding-right: 2.5rem; }
.sm__card h2 em { color: var(--rose-pale); }
.sm__copy { margin: 1rem 0 1.4rem; color: rgba(255, 255, 255, 0.78); font-size: 0.98rem; }
.sm__cta { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.5rem; }

@media (max-width: 560px) {
  .src-pill { left: 0; right: 0; margin-inline: auto; width: max-content; max-width: calc(100% - 1.5rem); bottom: calc(0.85rem + env(safe-area-inset-bottom, 0px)); }
  .src-pill__btn { font-size: 0.74rem; }
  .sm__cta .btn { width: 100%; justify-content: center; }
  .sm__card { text-align: center; }
  .sm__card h2 { padding-right: 0; }
  .sm__card .src-card__label { margin-inline: auto; }
}

@media (max-width: 1300px) and (min-width: 1081px) {
  .tile { padding: 0.9rem 0.8rem; gap: 0.6rem; }
  .tile__icon { width: 36px; height: 36px; }
}
.sm__copy { margin: 0.8rem 0 1.1rem; }
.sm__cta { margin-top: 1.1rem; }
.sm .src-route { margin-top: 1.3rem; }
.sm .src-card__foot { margin-top: 1rem; }
@media (max-height: 800px) {
  .sm__card { padding-block: 1.5rem; }
  .sm__card h2 { font-size: clamp(2rem, 4.5vw, 2.6rem); }
}

.faq__a .faq__cta { padding: 0 0 1.5rem; }
.faq__a .faq__cta .link-arrow { font-size: 0.9rem; }

/* ---------- Spacing + header room (final adjustments) ---------- */
/* No announcement bar or hero scroll row any more: give the hero its own bottom space */
.home .hero { padding-bottom: clamp(3rem, 7vw, 5rem); }
/* Even gap between the blue diagram panel and the services section */

/* Floating pill nav: leave room above it, like ecomflow */
.home .site-header.is-scrolled .site-header__inner { margin-top: 22px; }
/* Stop the pill's top margin collapsing out of the zero-height header */
.home .site-header { display: flow-root; }

/* Long call-to-action label: let it wrap on small screens */
@media (max-width: 640px) {
  .hero__quiz-bubble .btn { white-space: normal; text-align: center; justify-content: center; line-height: 1.25; padding-block: 0.7rem; }
}
