/* ==========================================================================
   JustVend: site stylesheet
   Palette is taken from the machine: its wrap (vend), its glass front (glass),
   and the studio backdrop of the product film (paper).
   ========================================================================== */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --paper: #F7F6F2;
  --paper-2: #EFECE6;
  --ink: #1C1A17;
  --ink-2: #4A463F;
  --muted: #7D776C;
  --line: #DEDAD2;
  --vend: #F6B70A;
  --vend-deep: #E0A100;
  --vend-soft: #FCE9A8;
  --glass: #0F1820;
  --glass-2: #172330;
  --led: #E9F2FA;
  --ok: #1F7A4D;
  --err: #B3261E;

  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --wide: 125%;
  --semi: 112%;

  --wrap: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --sec: clamp(88px, 12vw, 176px);
  --r-sm: 10px;
  --r-md: 18px;
  --r-lg: 28px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--vend); color: var(--ink); }

:focus-visible { outline: 3px solid var(--vend-deep); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 8px; text-decoration: none; }
.skip:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Type ---------- */
.display, .h1, .h2, .h3 {
  font-family: var(--font);
  margin: 0;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.display {
  font-stretch: var(--wide);
  font-weight: 800;
  font-size: clamp(44px, 8.2vw, 128px);
  line-height: .92;
  letter-spacing: -0.035em;
}
.h1 {
  font-stretch: var(--wide);
  font-weight: 800;
  font-size: clamp(40px, 6.4vw, 96px);
  line-height: .95;
  letter-spacing: -0.035em;
}
.h2 {
  font-stretch: var(--semi);
  font-weight: 750;
  font-size: clamp(32px, 4.4vw, 62px);
  line-height: 1.02;
  letter-spacing: -0.03em;
}
.h3 {
  font-stretch: var(--semi);
  font-weight: 700;
  font-size: clamp(21px, 1.8vw, 26px);
  line-height: 1.2;
  letter-spacing: -0.015em;
}
.lead { font-size: clamp(18px, 1.5vw, 22px); line-height: 1.5; color: var(--ink-2); max-width: 36em; margin: 0; }
.body { color: var(--ink-2); max-width: 38em; }
.body p { margin: 0 0 1em; }
.small { font-size: 14px; color: var(--muted); }
p { margin: 0 0 1em; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.sec { padding: var(--sec) 0; position: relative; }
.sec--tight { padding: calc(var(--sec) * .6) 0; }
.sec--paper2 { background: var(--paper-2); }
.sec--vend { background: var(--vend); color: var(--ink); }
.sec--glass { background: var(--glass); color: var(--led); }
.sec--glass .lead, .sec--glass .body, .sec--glass .small { color: #A9B6C3; }
.sec-head { display: grid; grid-template-columns: 1fr; gap: 20px; margin-bottom: clamp(40px, 6vw, 80px); }
@media (min-width: 900px) {
  .sec-head--split { grid-template-columns: 1.15fr .85fr; align-items: end; gap: 64px; }
}
.grid-2 { display: grid; gap: clamp(32px, 5vw, 80px); }
@media (min-width: 900px) { .grid-2 { grid-template-columns: 1fr 1fr; align-items: center; } }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--ink); --fg: var(--paper);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  border-radius: 999px; border: 1.5px solid var(--bg);
  background: var(--bg); color: var(--fg);
  font-weight: 600; font-size: 16px; letter-spacing: -0.005em;
  text-decoration: none; cursor: pointer;
  transition: transform .35s var(--ease), background-color .25s, color .25s, border-color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--vend { --bg: var(--vend); --fg: var(--ink); }
.btn--vend:hover { --bg: var(--vend-deep); }
.btn--ghost { background: transparent; color: var(--ink); border-color: currentColor; }
.btn--ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.sec--glass .btn--ghost { color: var(--led); }
.sec--glass .btn--ghost:hover { background: var(--led); color: var(--glass); border-color: var(--led); }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.link { font-weight: 600; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.link:hover { text-decoration-color: var(--vend-deep); }

/* ---------- Header ---------- */
.hdr {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  transition: background-color .4s, box-shadow .4s, transform .5s var(--ease);
}
.hdr.is-solid {
  background: rgba(247, 246, 242, .82);
  -webkit-backdrop-filter: saturate(1.3) blur(12px);
  backdrop-filter: saturate(1.3) blur(12px);
  box-shadow: 0 1px 0 var(--line);
}
.hdr.is-hidden { transform: translateY(-100%); }
.hdr__in { height: 100%; display: flex; align-items: center; gap: 24px; }
.hdr__logo { display: block; flex: none; }
.hdr__logo img { height: 21px; width: auto; }
.nav { margin-left: auto; display: none; }
.nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.nav a {
  display: block; padding: 8px 12px; border-radius: 999px;
  font-size: 15px; font-weight: 500; text-decoration: none; color: var(--ink-2);
  transition: background-color .2s, color .2s;
}
.nav a:hover { color: var(--ink); background: rgba(28, 26, 23, .06); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--vend-soft); }
.hdr__cta { display: none; min-height: 44px; padding: 0 20px; font-size: 15px; }
.burger {
  margin-left: auto; width: 48px; height: 48px; border-radius: 50%;
  border: 0; background: var(--ink); cursor: pointer; position: relative;
}
.burger span { position: absolute; left: 15px; right: 15px; height: 2px; background: var(--paper); transition: transform .4s var(--ease), top .4s var(--ease); }
.burger span:nth-child(1) { top: 19px; }
.burger span:nth-child(2) { top: 27px; }
.menu-open .burger span:nth-child(1) { top: 23px; transform: rotate(45deg); }
.menu-open .burger span:nth-child(2) { top: 23px; transform: rotate(-45deg); }
@media (min-width: 1080px) {
  .nav, .hdr__cta { display: flex; }
  .burger { display: none; }
}

.mnav {
  position: fixed; inset: 0; z-index: 90;
  background: var(--vend);
  padding: calc(var(--header-h) + 24px) var(--gutter) 32px;
  display: flex; flex-direction: column;
  clip-path: circle(0% at calc(100% - 44px) 38px);
  transition: clip-path .7s var(--ease);
  visibility: hidden;
}
.menu-open .mnav { clip-path: circle(150% at calc(100% - 44px) 38px); visibility: visible; }
.menu-open { overflow: hidden; }
.mnav ul { list-style: none; margin: 0; padding: 0; }
.mnav a {
  display: block; padding: 6px 0; text-decoration: none;
  font-stretch: var(--wide); font-weight: 800; font-size: clamp(32px, 9vw, 54px); line-height: 1.1; letter-spacing: -0.03em;
}
.mnav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; }
.mnav__foot { margin-top: auto; display: flex; flex-direction: column; gap: 6px; font-weight: 500; }
.mnav__foot a { font-size: 17px; font-stretch: 100%; font-weight: 600; padding: 0; }

/* ---------- Home: rotation sequence ---------- */
.seq { position: relative; height: 640vh; background: var(--paper); }
.seq__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.seq__stage {
  position: absolute; left: 50%; top: 52%;
  width: min(66.4vh, 92vw); aspect-ratio: 680 / 880;
  transform: translate(-50%, -50%);
  will-change: transform;
}
.seq__canvas, .phero__machine canvas { width: 100%; height: 100%; } /* edges are feathered inside the frames */
.seq__floor {
  position: absolute; left: 50%; bottom: 6%; width: 46%; height: 6%;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(28, 26, 23, .10), transparent);
  pointer-events: none;
}
.chap {
  position: absolute; z-index: 2;
  width: min(32rem, 34vw);
  opacity: 0; visibility: hidden;
}
.chap--left { left: var(--gutter); top: 50%; transform: translateY(-50%); }
.chap--right { right: var(--gutter); top: 50%; transform: translateY(-50%); text-align: left; }
.chap .lead { margin-top: 18px; }
.chap--intro {
  left: var(--gutter); top: 50%; transform: translateY(-50%);
  width: min(42rem, 46vw);
  opacity: 1; visibility: visible;
}
.chap--intro .display { max-width: 8.5em; font-size: clamp(44px, 6.4vw, 104px); }
.chap--intro .lead { margin-top: 28px; max-width: 30em; }
.chap--intro .btn-row { margin-top: 32px; }
.seq__dial {
  position: absolute; right: var(--gutter); top: calc(var(--header-h) + 24px); z-index: 3;
  display: flex; align-items: center; gap: 12px;
  font-size: 14px; font-weight: 600; color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.seq__ring { width: 34px; height: 34px; transform: rotate(-90deg); }
.seq__ring circle { fill: none; stroke-width: 3; }
.seq__ring .bg { stroke: var(--line); }
.seq__ring .fg { stroke: var(--vend-deep); stroke-linecap: round; }
.seq__hint {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 3;
  font-size: 13px; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.seq__hint i { display: block; width: 1.5px; height: 34px; background: linear-gradient(var(--muted), transparent); animation: drip 1.8s var(--ease) infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
.seq__loader {
  position: absolute; left: 50%; top: 52%; transform: translate(-50%, -50%);
  font-size: 13px; color: var(--muted); z-index: 1;
}
.seq.is-ready .seq__loader { display: none; }
.seq__fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }

@media (max-width: 899px) {
  .seq { height: 480vh; }
  .seq__stage { top: 33%; width: min(43vh, 72vw); }
  .chap { width: auto; left: var(--gutter) !important; right: var(--gutter) !important; top: auto !important; bottom: 32px; transform: none !important; }
  .chap .h2 { font-size: clamp(28px, 8vw, 40px); }
  .chap .lead { font-size: 16px; margin-top: 10px; }
  .chap--intro { bottom: 28px; width: auto; }
  .chap--intro .display { font-size: clamp(38px, 11vw, 64px); }
  .seq__hint { display: none; }
  .seq__dial { top: calc(var(--header-h) + 8px); }
}

/* ---------- Stats band (the machine's wrap) ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border-top: 2px solid var(--ink); }
.stat { padding: 28px 0 8px; border-bottom: 2px solid var(--ink); }
.stat:nth-child(odd) { padding-right: 16px; }
.stat:nth-child(even) { padding-left: 16px; border-left: 2px solid var(--ink); }
.stat__n {
  display: block; font-stretch: var(--wide); font-weight: 800;
  font-size: clamp(40px, 6vw, 92px); line-height: 1; letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.stat__n--long { font-size: clamp(34px, 3.9vw, 62px); padding-top: .25em; }
@media (max-width: 899px) { .stat__n--long { font-size: clamp(26px, 7.4vw, 44px); } }
.stat__l { display: block; margin: 14px 0 18px; font-weight: 500; font-size: 16px; }
@media (min-width: 900px) {
  .stats { grid-template-columns: repeat(4, 1fr); border-bottom: 2px solid var(--ink); }
  .stat { border-bottom: 0; padding: 32px 24px 8px !important; border-left: 2px solid var(--ink); }
  .stat:first-child { border-left: 0; padding-left: 0 !important; }
}
.sec--glass .stats, .sec--glass .stat { border-color: rgba(233, 242, 250, .25); }

/* ---------- Shelf (glass front with product rails) ---------- */
.shelf {
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--glass-2), var(--glass));
  padding: clamp(12px, 2vw, 20px);
  box-shadow: inset 0 0 0 1px rgba(233, 242, 250, .08);
}
.shelf__row {
  display: grid; gap: clamp(10px, 1.5vw, 16px);
  grid-template-columns: 1fr;
  padding-bottom: clamp(10px, 1.5vw, 16px);
  margin-bottom: clamp(10px, 1.5vw, 16px);
  border-bottom: 2px solid rgba(233, 242, 250, .16);
  box-shadow: 0 2px 0 rgba(233, 242, 250, .04);
}
.shelf__row:last-child { margin-bottom: 0; }
@media (min-width: 700px) { .shelf__row { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .shelf__row--3 { grid-template-columns: repeat(3, 1fr); } }
.slot {
  position: relative; border-radius: var(--r-md);
  padding: 28px 24px 26px;
  background: rgba(233, 242, 250, .04);
  color: var(--led);
  min-height: 210px; display: flex; flex-direction: column;
  transition: background-color .3s;
}
.slot:hover { background: rgba(233, 242, 250, .08); }
.slot__code { font-size: 13px; font-weight: 600; color: var(--vend); margin-bottom: auto; padding-bottom: 36px; }
.slot .h3 { color: #fff; margin-bottom: 8px; }
.slot p { margin: 0; color: #A9B6C3; }
.slot ul { list-style: none; padding: 0; margin: 14px 0 0; color: #A9B6C3; font-size: 15px; }
.slot li { padding: 6px 0; border-top: 1px solid rgba(233, 242, 250, .1); }

/* ---------- Media ---------- */
.ph { position: relative; overflow: hidden; border-radius: var(--r-lg); background: var(--paper-2); }
.ph img, .ph video { width: 100%; height: 100%; object-fit: cover; }
.ph--4x3 { aspect-ratio: 4 / 3; }
.ph--1x1 { aspect-ratio: 1; }
.ph--3x4 { aspect-ratio: 3 / 4; }
.ph--16x10 { aspect-ratio: 16 / 10; }
.ph[data-parallax] img { height: 116%; margin-top: -8%; will-change: transform; }
figure { margin: 0; }
figcaption { margin-top: 16px; }
figcaption strong { display: block; font-weight: 650; font-size: 18px; letter-spacing: -0.01em; }
figcaption span { display: block; color: var(--muted); font-size: 15px; margin-top: 4px; max-width: 30em; }

/* Horizontal gallery */
.hgal { position: relative; overflow: hidden; }
.hgal__track { display: flex; gap: clamp(16px, 2.5vw, 32px); padding: 0 var(--gutter); width: max-content; will-change: transform; }
.hgal__item { width: clamp(280px, 34vw, 500px); flex: none; }
.hgal__item .ph { aspect-ratio: 4 / 3.3; }
/* Wide panoramas keep the same height as their neighbours */
@media (min-width: 900px) { .hgal__item--wide { width: clamp(508px, 61.7vw, 907px); } .hgal__item--wide .ph { aspect-ratio: 2.2 / 1; } }
.ph--cabin img { object-position: 50% 62%; }
.ph--display img { object-position: 60% 45%; }
.ph--assembly img { object-position: 50% 30%; }
.grid-2--top { align-items: start; row-gap: clamp(32px, 4vw, 56px); }
@media (max-width: 899px) {
  .hgal { overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .hgal::-webkit-scrollbar { display: none; }
  .hgal__item { width: 80vw; scroll-snap-align: center; }
}

/* ---------- Lists / checks ---------- */
.ticks { list-style: none; padding: 0; margin: 24px 0 0; }
.ticks li { position: relative; padding: 14px 0 14px 34px; border-top: 1px solid var(--line); font-weight: 500; }
.ticks li:last-child { border-bottom: 1px solid var(--line); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 19px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--vend) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.4l2.6 2.6L13 6.6' fill='none' stroke='%231C1A17' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat;
}
.sec--glass .ticks li { border-color: rgba(233, 242, 250, .14); }

/* Ordered steps: real sequences only */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 64px 1fr; gap: 16px; padding: 24px 0; border-top: 1px solid var(--line); align-items: baseline; }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(s); font-stretch: var(--wide); font-weight: 800; font-size: 34px; line-height: 1; color: var(--vend-deep); }
.steps strong { display: block; font-size: 20px; font-weight: 650; letter-spacing: -0.01em; }
.steps span { color: var(--muted); }
.sec--glass .steps li { border-color: rgba(233, 242, 250, .14); }
.sec--glass .steps li::before { color: var(--vend); }
.sec--vend .steps li { border-color: rgba(28, 26, 23, .25); }
.sec--vend .steps li::before { color: var(--ink); }

/* ---------- Page hero (inner pages) ---------- */
.phero { position: relative; padding: calc(var(--header-h) + clamp(40px, 7vw, 96px)) 0 clamp(56px, 8vw, 112px); overflow: hidden; }
.phero__grid { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .phero__grid { grid-template-columns: 1.25fr .75fr; } }
.phero .lead { margin-top: 28px; }
.phero__machine { position: relative; aspect-ratio: 680 / 880; max-width: 360px; width: 100%; justify-self: center; }

@media (max-width: 899px) { .phero__machine { max-width: 230px; margin-top: -8px; } }

/* ---------- Cards (used sparingly) ---------- */
.plain-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.plain-list > * { padding: 28px 0; border-bottom: 1px solid var(--line); display: grid; gap: 8px; }
@media (min-width: 800px) { .plain-list > * { grid-template-columns: .9fr 1.1fr; gap: 40px; } }
.plain-list p { margin: 0; color: var(--ink-2); }
.sec--glass .plain-list, .sec--glass .plain-list > * { border-color: rgba(233, 242, 250, .14); }
.sec--glass .plain-list p { color: #A9B6C3; }

/* ---------- Quote ---------- */
.quotes { display: grid; gap: clamp(24px, 3vw, 40px); }
@media (min-width: 1000px) { .quotes { grid-template-columns: repeat(3, 1fr); } }
.quote { margin: 0; display: flex; flex-direction: column; padding-top: 28px; border-top: 2px solid var(--ink); }
.quote p { font-size: 18px; line-height: 1.55; margin: 0 0 28px; }
.quote footer { margin-top: auto; }
.quote cite { font-style: normal; font-weight: 650; display: block; }
.quote small { display: block; color: var(--muted); font-size: 15px; }

/* ---------- Logos ---------- */
.logos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
@media (min-width: 700px) { .logos { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .logos { grid-template-columns: repeat(5, 1fr); } }
.logo-cell { background: #fff; padding: 28px 18px 20px; display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; min-height: 190px; }
.logo-cell img { height: 84px; width: auto; max-width: 80%; object-fit: contain; filter: grayscale(1); opacity: .75; transition: filter .35s, opacity .35s; }
.logo-cell:hover img { filter: none; opacity: 1; }
.logo-cell span { font-size: 14px; font-weight: 550; color: var(--ink-2); line-height: 1.3; margin-top: auto; }

/* Marquee */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 22px 0; }
.marquee__t { display: flex; gap: 56px; width: max-content; animation: mq 48s linear infinite; }
.marquee__t span { font-stretch: var(--semi); font-weight: 650; font-size: clamp(18px, 2vw, 24px); white-space: nowrap; color: var(--ink-2); }
.marquee__t span::after { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--vend); margin-left: 56px; vertical-align: middle; }
@keyframes mq { to { transform: translateX(-50%); } }

/* ---------- Team ---------- */
.team { display: grid; gap: clamp(28px, 4vw, 48px); }
@media (min-width: 760px) { .team { grid-template-columns: 1fr 1fr; } }
.person .ph { aspect-ratio: 4 / 5; }
.person .ph img { object-position: center 20%; }
.person h3 { margin-top: 20px; }
.person .role { color: var(--vend-deep); font-weight: 600; margin: 4px 0 10px; }
.person p { color: var(--ink-2); max-width: 30em; }

/* ---------- Roles ---------- */
.roles { border-top: 2px solid var(--ink); }
.role-row { display: grid; gap: 8px 24px; padding: 24px 0; border-bottom: 1px solid var(--line); align-items: center; grid-template-columns: 1fr auto; }
.role-row h3 { grid-column: 1 / -1; }
.role-row .meta { color: var(--muted); font-size: 15px; }
.role-row .desc { color: var(--ink-2); }
@media (min-width: 900px) {
  .role-row { grid-template-columns: 1.3fr 1fr 1.3fr auto; }
  .role-row h3 { grid-column: auto; }
}
.role-row .btn { min-height: 44px; padding: 0 20px; font-size: 15px; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 20px; }
.form-2 { display: grid; gap: 20px; }
@media (min-width: 700px) { .form-2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 8px; }
.field label { font-weight: 600; font-size: 15px; }
.field label .req { color: var(--vend-deep); }
.input, .select, .textarea {
  width: 100%; min-height: 54px; padding: 14px 18px;
  border-radius: var(--r-sm); border: 1.5px solid var(--line); background: #fff;
  font-size: 16px; transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none; appearance: none;
}
.select { background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%231C1A17' stroke-width='2'/%3E%3C/svg%3E") right 18px center no-repeat; padding-right: 44px; }
.textarea { min-height: 150px; resize: vertical; }
.input:hover, .select:hover, .textarea:hover { border-color: #C9C3B8; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px var(--vend-soft); }
.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-color: var(--err); }
.field .err { color: var(--err); font-size: 14px; min-height: 0; }
.field .err:empty { display: none; }
.drop {
  border: 1.5px dashed #C9C3B8; border-radius: var(--r-md); background: #fff;
  padding: 28px; text-align: center; cursor: pointer; transition: border-color .2s, background-color .2s;
}
.drop:hover, .drop.is-over { border-color: var(--ink); background: var(--vend-soft); }
.drop strong { display: block; font-weight: 650; }
.drop span { color: var(--muted); font-size: 14px; }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop.has-file { border-style: solid; border-color: var(--ok); }
.form-card { background: #fff; border-radius: var(--r-lg); padding: clamp(24px, 4vw, 48px); box-shadow: 0 1px 0 var(--line), 0 30px 60px -40px rgba(28, 26, 23, .35); }

/* ---------- Contact ---------- */
.ways { display: grid; gap: 1px; background: var(--line); border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); }
@media (min-width: 900px) { .ways { grid-template-columns: repeat(3, 1fr); } }
.way { background: var(--paper); padding: 32px 28px; display: flex; flex-direction: column; gap: 8px; text-decoration: none; transition: background-color .25s; min-height: 220px; }
.way:hover { background: var(--vend-soft); }
.way p { color: var(--ink-2); margin: 0 0 auto; }
.way .act { margin-top: 24px; font-weight: 650; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
.facts { display: grid; gap: 0; border-top: 1px solid var(--line); }
.facts > div { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-weight: 600; }
.facts dd { margin: 0; color: var(--ink-2); }
.facts dd a { color: var(--ink); font-weight: 600; }

/* ---------- Blog ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 40px; }
.chip { min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line); background: transparent; cursor: pointer; font-weight: 550; font-size: 15px; transition: background-color .2s, border-color .2s; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.search { margin-left: auto; position: relative; min-width: min(100%, 280px); }
.search .input { min-height: 44px; padding: 10px 16px 10px 42px; border-radius: 999px; }
.search svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); }
.posts { display: grid; gap: clamp(28px, 3vw, 40px) clamp(24px, 3vw, 40px); }
@media (min-width: 760px) { .posts { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .posts { grid-template-columns: repeat(3, 1fr); } }
.post { display: flex; flex-direction: column; padding-top: 22px; border-top: 2px solid var(--ink); }
.post .cat { font-weight: 600; font-size: 14px; color: var(--vend-deep); }
.post h3 { margin: 10px 0 12px; }
.post p { color: var(--ink-2); }
.post .by { margin-top: auto; font-size: 14px; color: var(--muted); display: flex; gap: 16px; flex-wrap: wrap; }
.post[hidden] { display: none; }
.feature-post { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .feature-post { grid-template-columns: 1fr 1fr; gap: 64px; } }
.empty { padding: 48px 0; color: var(--ink-2); }
.newsletter { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; max-width: 520px; }
.newsletter .input { flex: 1 1 240px; }

/* ---------- Big CTA ---------- */
.cta { text-align: left; }
.cta .h1 { max-width: 12em; }
.cta .lead { margin-top: 24px; color: var(--ink); opacity: .82; }
.cta .btn--ghost { color: var(--ink); }

/* ---------- Footer ---------- */
.ftr { background: var(--glass); color: var(--led); padding: clamp(64px, 8vw, 112px) 0 32px; }
.ftr__top { display: grid; gap: 40px; padding-bottom: 56px; border-bottom: 1px solid rgba(233, 242, 250, .14); }
@media (min-width: 900px) { .ftr__top { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.ftr__brand img { height: 24px; width: auto; }
.ftr__brand p { color: #A9B6C3; margin-top: 20px; max-width: 26em; }
.ftr h2 { font-size: 15px; font-weight: 650; margin: 0 0 14px; color: #fff; }
.ftr ul { list-style: none; padding: 0; margin: 0; }
.ftr li { padding: 5px 0; }
.ftr a { color: #A9B6C3; text-decoration: none; transition: color .2s; }
.ftr a:hover { color: var(--vend); }
.ftr__social { display: flex; gap: 10px; margin-top: 24px; }
.ftr__social a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(233, 242, 250, .2); }
.ftr__social a:hover { border-color: var(--vend); }
.ftr__social svg { width: 18px; height: 18px; fill: currentColor; }
.ftr__bottom { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; padding-top: 28px; font-size: 14px; color: #7F8C99; }
.ftr__bottom ul { display: flex; gap: 20px; }
.ftr__word { display: block; width: 100%; height: auto; margin-top: 56px; user-select: none; pointer-events: none; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 300;
  transform: translate(-50%, 140%);
  background: var(--ink); color: var(--paper);
  padding: 14px 18px 14px 20px; border-radius: 14px;
  display: flex; align-items: center; gap: 14px;
  max-width: calc(100vw - 32px); width: max-content;
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .5);
  transition: transform .5s var(--ease);
  font-weight: 500;
}
.toast.is-on { transform: translate(-50%, 0); }
.toast::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--vend); flex: none; }
.toast.is-error::before { background: #FF6B5E; }
.toast a { color: var(--vend); font-weight: 650; }
.toast button { background: none; border: 0; color: #A9B6C3; cursor: pointer; font-size: 22px; line-height: 1; padding: 0 0 2px 6px; }

/* ---------- Reveal (single, quiet) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(24px); }
.js [data-reveal].is-in { opacity: 1; transform: none; transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .line-mask { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.js .line-mask > span { display: block; }

/* ---------- Misc ---------- */
.gauge { position: relative; width: min(320px, 70vw); aspect-ratio: 1; margin: 0 auto; }
.gauge svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.gauge circle { fill: none; stroke-width: 14; }
.gauge .bg { stroke: rgba(233, 242, 250, .1); }
.gauge .fg { stroke: var(--vend); stroke-linecap: round; }
.gauge__v { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.gauge__v b { font-stretch: var(--wide); font-weight: 800; font-size: clamp(56px, 8vw, 88px); line-height: 1; letter-spacing: -0.04em; color: #fff; }
.gauge__v span { color: #A9B6C3; font-size: 15px; margin-top: 8px; }

.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.tabs .chip { border-color: rgba(233, 242, 250, .2); color: var(--led); }
.tabs .chip:hover { border-color: var(--led); }
.tabs .chip[aria-selected="true"] { background: var(--vend); color: var(--ink); border-color: var(--vend); }
.dash { border-radius: var(--r-lg); background: var(--glass-2); padding: clamp(20px, 3vw, 32px); box-shadow: inset 0 0 0 1px rgba(233, 242, 250, .08); }
.dash__panel[hidden] { display: none; }
.dash__panel h3 { color: #fff; }
.dash__panel p { color: #A9B6C3; }

.flow { display: grid; gap: 16px; }
@media (min-width: 800px) { .flow { grid-template-columns: repeat(3, 1fr); } }
.flow li { list-style: none; background: var(--paper); border-radius: var(--r-lg); padding: 32px 28px; }
.flow ol { padding: 0; margin: 0; display: contents; counter-reset: f; }
.flow li { counter-increment: f; }
.flow li::before { content: counter(f); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: var(--vend); font-weight: 750; margin-bottom: 48px; }
.flow b { display: block; font-stretch: var(--wide); font-weight: 800; font-size: clamp(36px, 4vw, 52px); line-height: 1; letter-spacing: -0.04em; margin-bottom: 8px; }
.flow span { color: var(--ink-2); }

.pill-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.pill-row span { padding: 8px 14px; border-radius: 999px; background: rgba(28, 26, 23, .07); font-size: 15px; font-weight: 550; }
.sec--glass .pill-row span { background: rgba(233, 242, 250, .08); }

.impact { display: grid; gap: 0; border-top: 2px solid var(--ink); }
@media (min-width: 900px) { .impact { grid-template-columns: repeat(3, 1fr); } }
.impact > div { padding: 32px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .impact > div { padding: 36px 32px 8px; border-bottom: 0; border-left: 1px solid var(--line); } .impact > div:first-child { border-left: 0; padding-left: 0; } }
.impact b { display: block; font-stretch: var(--wide); font-weight: 800; font-size: clamp(56px, 7vw, 104px); line-height: 1; letter-spacing: -0.045em; }
.impact strong { display: block; font-size: 19px; margin: 16px 0 6px; }
.impact span { color: var(--muted); }

.press { display: grid; gap: 32px; align-items: end; }
@media (min-width: 900px) { .press { grid-template-columns: 1.5fr 1fr; gap: 56px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .marquee__t { animation: none; }
}

/* FAQ */
.faq { border-top: 2px solid var(--ink); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary { list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary .h3 { font-size: clamp(18px, 1.5vw, 21px); }
.faq__item summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 14px; height: 14px; margin-top: -10px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg); transition: transform .35s var(--ease), margin-top .35s var(--ease); }
.faq__item[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.faq__item p { margin: 0 0 24px; color: var(--ink-2); max-width: 40em; }

/* ---------- Articles ---------- */
.art__head { padding-top: calc(var(--header-h) + clamp(32px, 5vw, 72px)); padding-bottom: clamp(28px, 4vw, 48px); }
.crumbs { display: flex; flex-wrap: wrap; gap: 10px; font-size: 14px; color: var(--muted); margin-bottom: 24px; }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.art__title { font-stretch: var(--semi); font-weight: 750; font-size: clamp(34px, 4.6vw, 64px); line-height: 1.04; letter-spacing: -0.03em; margin: 0; max-width: 18em; text-wrap: balance; }
.art__by { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--muted); font-size: 15px; }
.art__img { margin-bottom: clamp(40px, 6vw, 80px); }
.art__grid { display: grid; gap: 48px; padding-bottom: var(--sec); }
@media (min-width: 1000px) { .art__grid { grid-template-columns: minmax(0, 1fr) 300px; gap: 80px; } }
.art__aside { position: relative; }
.art__card { position: sticky; top: calc(var(--header-h) + 24px); background: var(--vend); border-radius: var(--r-lg); padding: 28px; display: grid; gap: 14px; justify-items: start; }
.art__card p { margin: 0; color: var(--ink); }
.prose { max-width: 42rem; font-size: 18px; line-height: 1.7; color: var(--ink-2); }
.prose > .lead { font-size: clamp(20px, 1.6vw, 23px); line-height: 1.5; color: var(--ink); margin-bottom: 1.4em; }
.prose h2 { font-stretch: var(--semi); font-weight: 750; font-size: clamp(26px, 2.6vw, 34px); line-height: 1.12; letter-spacing: -0.02em; color: var(--ink); margin: 2em 0 .6em; }
.prose h3 { font-size: 20px; font-weight: 650; letter-spacing: -0.01em; color: var(--ink); margin: 1.6em 0 .4em; }
.prose p { margin: 0 0 1.1em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.3em; }
.prose li { margin: .45em 0; padding-left: .2em; }
.prose li::marker { color: var(--vend-deep); font-weight: 700; }
.prose strong { color: var(--ink); font-weight: 650; }
.prose a { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--vend-deep); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.prose a:hover { background: var(--vend-soft); }
.prose table { width: 100%; border-collapse: collapse; margin: 1.4em 0 2em; font-size: 15px; line-height: 1.45; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; min-width: 120px; }
.prose thead th { color: var(--ink); font-weight: 650; border-bottom: 2px solid var(--ink); }
.prose tbody td:first-child { font-weight: 600; color: var(--ink); }
.prose blockquote { margin: 1.8em 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--vend); }
.prose blockquote p { color: var(--ink); font-size: 19px; margin-bottom: .6em; }
.prose blockquote cite { font-style: normal; font-size: 15px; color: var(--muted); }
.post__img { display: block; margin-bottom: 18px; border-radius: var(--r-md); }
.post .post__img + .cat { margin-top: 0; }
.post h3 a { text-decoration: none; }
.post h3 a:hover { text-decoration: underline; text-decoration-color: var(--vend-deep); text-underline-offset: 4px; }
.posts .post { border-top: 0; padding-top: 0; }
.plainlink { text-decoration: none; }
.plainlink:hover { text-decoration: underline; text-decoration-color: var(--vend-deep); }

/* Brand logos: full colour, some on their own brand-coloured tile */
.logos--color .logo-cell img { filter: none; opacity: 1; height: 76px; }
.logo-cell--filled span { color: rgba(255, 255, 255, .88); }
.logo-cell--filled[style*="#D8BEDD"] span { color: var(--ink); }

/* Let a lone last logo fill its row so no empty grid cell shows */
@media (max-width: 699px) { .logos > .logo-cell:last-child:nth-child(odd) { grid-column: 1 / -1; } }
@media (min-width: 700px) and (max-width: 999px) { .logos > .logo-cell:last-child:nth-child(3n+1) { grid-column: 1 / -1; } .logos > .logo-cell:last-child:nth-child(3n+2) { grid-column: span 2; } }
@media (min-width: 1000px) { .logos > .logo-cell:last-child:nth-child(5n+1) { grid-column: 1 / -1; } }
