/* ==========================================================================
   InstaFarm one-page site
   Plain CSS, no build step. Sections follow the order in index.html.
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --red: #C4161C;
  --red-text: #B3141A;
  --red-dark: #8E0F14;
  --red-light: #FF8F87;
  --blush: #FDF0EE;
  --blush-2: #FBE3DF;
  --blush-3: #F6D4CF;
  --line: #F2DAD6;
  --line-2: #EBCBC6;
  --line-3: #E9B8B3;
  --ink: #1E1616;
  --ink-2: #2B2120;
  --ink-3: #3D302E;
  --muted: #5A4A48;
  --muted-2: #6B5856;
  --muted-dark: #D9CCCA;
  --on-red: #FFE7E3;
  --on-red-2: #FFD9D4;
  --sun: #E8A33D;
  --sun-light: #FFD27A;
  --white: #FFFFFF;
  --input-line: #E2CFCC;

  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --container: 1280px;
  --gutter: 48px;
  --section-y: 112px;
  --header-h: clamp(60px, 8vh, 76px);
  --shadow: 0 24px 60px rgba(120, 20, 20, 0.10);
  --shadow-soft: 0 20px 50px rgba(120, 20, 20, 0.08);

  /* Hero + navigation (dark, cinematic) */
  --hero-bg: #080D0B;
  --hero-bg-2: #101713;
  --hero-green: #1B2A20;
  --hero-offwhite: #F5F1E8;
  --hero-text-2: rgba(245, 241, 232, 0.78);
  --hero-text-3: rgba(245, 241, 232, 0.60);
  --hero-gold: #D9A94A;
  --hero-gold-line: rgba(217, 169, 74, 0.35);
  --hero-red: #D71920;
  --hero-red-hover: #B8141A;
  --glass-bg: rgba(16, 23, 19, 0.55);
  --glass-border: rgba(245, 241, 232, 0.14);
  --pill-bg: rgba(245, 241, 232, 0.06);
  --pill-border: rgba(245, 241, 232, 0.28);
  --hero-pad: clamp(20px, 6vw, 104px);
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);

  /* "What we do" (light, sunlit) */
  --wwd-cream: #FBF6EC;
  --wwd-card: rgba(255, 250, 242, 0.92);
  --wwd-ink: #10231B;
  --wwd-text: #4F463E;
  --wwd-gold-dark: #8A5A22;
  --wwd-gold: #A87A2C;
  --wwd-line: rgba(201, 151, 63, 0.55);
  --wwd-red: #C4161C;
  --wwd-badge: #FDF1E6;
}

@media (max-width: 640px) {
  :root {
    --gutter: 20px;
    --section-y: 72px;
  }
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

h1, h2, h3, h4, p, figure, blockquote, ul, ol, dl, dd { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }

a { color: var(--red-text); text-decoration: none; }
a:hover { color: var(--red-dark); }

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
}
.bg-red :focus-visible,
.bg-ink :focus-visible,
.card--red :focus-visible {
  outline-color: var(--white);
}

section[id],
footer[id] { scroll-margin-top: 96px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Placeholder marker: styled like normal text on purpose, grep for class="todo" */
.todo { }

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  background: var(--ink);
  color: var(--white);
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 600;
}
.skip-link:focus { top: 12px; color: var(--white); }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section { padding-top: var(--section-y); padding-bottom: var(--section-y); }
.section--compact { padding-top: clamp(64px, 7vw, 96px); padding-bottom: clamp(64px, 7vw, 96px); }

.stack { display: flex; flex-direction: column; gap: 48px; }
.stack--sm { gap: 36px; }
.stack--lg { gap: 56px; }

.bg-white { background: var(--white); }
.bg-blush { background: var(--blush); }
.bg-ink { background: var(--ink); color: var(--white); }
.bg-red { background: var(--red); color: var(--white); }

.grid { display: grid; gap: 20px; }
.grid > * { min-width: 0; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.cols-7 { grid-template-columns: repeat(7, minmax(0, 1fr)); }

@media (max-width: 1100px) {
  .cols-5,
  .cols-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cols-7 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .cols-2,
  .cols-3 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .cols-4,
  .cols-5,
  .cols-6,
  .cols-7 { grid-template-columns: minmax(0, 1fr); }
  /* Small stat and logo tiles stay two-up on phones */
  .m-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Type ---------- */
.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--red-text);
}
.bg-ink .eyebrow { color: var(--red-light); }
.bg-red .eyebrow,
.card--red .eyebrow { color: var(--on-red-2); }

.h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 2.2vw + 20px, 52px);
  line-height: 1.06;
  letter-spacing: -0.023em;
}
.h2--md { font-size: clamp(30px, 1.8vw + 20px, 46px); line-height: 1.08; }
.h2--sm { font-size: clamp(28px, 1.3vw + 20px, 44px); line-height: 1.1; letter-spacing: -0.022em; }

.h3-display {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(26px, 0.8vw + 22px, 36px);
  line-height: 1.1;
  letter-spacing: -0.018em;
}

.lead {
  font-size: clamp(16px, 0.25vw + 15px, 19px);
  line-height: 1.6;
  color: var(--muted);
}
.bg-ink .lead { color: var(--muted-dark); }

.num {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: lining-nums;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 15px;
  font-weight: 700;
  color: var(--red-text);
}
.link-arrow--light { color: var(--white); }
.link-arrow--light:hover { color: var(--on-red); }
.link-arrow--coral { color: var(--red-light); }
.link-arrow--coral:hover { color: var(--white); }

/* ---------- Section heads ---------- */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 20px 40px;
}
.section-head__main {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 720px;
}
.section-head__aside {
  max-width: 420px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--muted);
}
.bg-ink .section-head__aside { color: var(--muted-dark); }
.bg-red .section-head__aside { color: var(--on-red); }

.split-head {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 64px;
  align-items: end;
}
@media (max-width: 900px) {
  .split-head { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 13px 24px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.btn--lg { min-height: 58px; padding: 17px 30px; font-size: 17px; font-weight: 700; }

.btn--primary { background: var(--red); color: var(--white); }
.btn--primary:hover { background: var(--red-dark); color: var(--white); }

.btn--secondary { border-color: var(--line-3); color: var(--red-text); background: transparent; }
.btn--secondary:hover { background: var(--blush); color: var(--red-dark); }

.btn--outline-dark { border-color: var(--muted); color: var(--white); }
.btn--outline-dark:hover { border-color: var(--white); color: var(--white); }

.btn--dark { background: var(--ink); color: var(--white); border: 2px solid var(--white); }
.btn--dark:hover { background: var(--ink-2); }

.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

/* ---------- Header (dark, transparent over the hero, dark glass on scroll) ---------- */
.hero-wrap {
  width: 100%;
  max-width: calc(1520px + 2 * var(--hero-pad));
  margin: 0 auto;
  padding-left: var(--hero-pad);
  padding-right: var(--hero-pad);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: transparent;
  border-bottom: 1px solid rgba(245, 241, 232, 0.08);
  transition: background-color 0.25s ease, border-color 0.25s ease, -webkit-backdrop-filter 0.25s ease, backdrop-filter 0.25s ease;
}
.site-header.is-scrolled {
  background: rgba(8, 13, 11, 0.72);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: rgba(245, 241, 232, 0.14);
}
.site-header.is-menu-open { background: var(--hero-bg); border-bottom-color: rgba(245, 241, 232, 0.14); }

.site-header :focus-visible,
.hero :focus-visible { outline-color: var(--hero-gold); }

/* Light theme: set by JS when a data-nav-theme="light" section is under the bar */
.site-header[data-theme="light"] {
  background: rgba(251, 246, 236, 0.72);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: rgba(16, 35, 27, 0.08);
}
.site-header[data-theme="light"] .brand__logo--on-dark { opacity: 0; }
.site-header[data-theme="light"] .brand__logo--on-light { opacity: 1; }
.site-header[data-theme="light"] .primary-nav__list a { color: rgba(16, 35, 27, 0.78); }
.site-header[data-theme="light"] .primary-nav__list a:hover,
.site-header[data-theme="light"] .primary-nav__list a.is-active { color: var(--wwd-ink); }
.site-header[data-theme="light"] .btn-shop { border-color: rgba(16, 35, 27, 0.35); color: var(--wwd-ink); }
.site-header[data-theme="light"] .btn-shop:hover { background: rgba(16, 35, 27, 0.06); color: var(--wwd-ink); }
.site-header[data-theme="light"] .nav-toggle { border-color: rgba(16, 35, 27, 0.3); background: rgba(16, 35, 27, 0.03); }
.site-header[data-theme="light"] .nav-toggle__bars,
.site-header[data-theme="light"] .nav-toggle__bars::before,
.site-header[data-theme="light"] .nav-toggle__bars::after { background: var(--wwd-ink); }
.site-header[data-theme="light"] .nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.site-header[data-theme="light"] :focus-visible { outline-color: var(--hero-red); }
.btn-shop,
.nav-toggle { transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease; }

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 40px;
}

.brand { position: relative; display: flex; align-items: center; flex-shrink: 0; }
.brand__logo { height: clamp(24px, 3.4vh, 32px); width: auto; transition: opacity 0.25s ease; }
.brand__logo--on-light { position: absolute; left: 0; top: 50%; transform: translateY(-50%); opacity: 0; }

.primary-nav { flex-grow: 1; }
.primary-nav__list {
  display: flex;
  gap: 28px;
  font-size: 15px;
  font-weight: 500;
}
.primary-nav__list a {
  display: inline-block;
  padding: 8px 0;
  color: rgba(245, 241, 232, 0.85);
  background: linear-gradient(var(--hero-gold), var(--hero-gold)) no-repeat left bottom / 0% 1px;
  transition: color 0.2s ease, background-size 0.3s ease;
}
.primary-nav__list a:hover,
.primary-nav__list a.is-active {
  color: var(--hero-offwhite);
  background-size: 100% 1px;
}
.primary-nav__mobile-only,
.primary-nav__shop { display: none; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.btn-shop,
.btn-platform {
  min-height: 0;
  height: clamp(38px, 5vh, 44px);
  padding: 0 18px;
  font-size: 15px;
}
.btn-shop { border-color: rgba(245, 241, 232, 0.45); }

.btn-platform {
  background: var(--hero-red);
  color: var(--white);
  box-shadow: 0 8px 28px rgba(215, 25, 32, 0.35);
  white-space: nowrap;
}
.btn-platform:hover { background: var(--hero-red-hover); color: var(--white); }
.btn-platform svg { flex-shrink: 0; }
.btn-platform__short { display: none; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(245, 241, 232, 0.35);
  border-radius: 999px;
  background: rgba(245, 241, 232, 0.04);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0;
}
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--hero-offwhite);
  border-radius: 2px;
  transition: transform 0.25s ease, background-color 0.25s ease;
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before,
.nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

/* Narrow desktops: tighten the bar so links and both buttons fit on one line */
@media (min-width: 1024px) and (max-width: 1339px) {
  .header-inner { gap: 20px; }
  .primary-nav__list { gap: 16px; font-size: 14px; }
  .header-actions { gap: 10px; }
}
@media (min-width: 1024px) and (max-width: 1199px) {
  .btn-shop { display: none; }
}

@media (max-width: 1023px) {
  .header-inner { gap: 12px; }
  .nav-toggle { display: inline-flex; }

  .primary-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: calc(100vh - var(--header-h));
    height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    background: var(--hero-bg);
    padding: 16px var(--hero-pad) 32px;
    flex-direction: column;
    gap: 32px;
  }
  .primary-nav.is-open { display: flex; }
  .primary-nav__list { flex-direction: column; gap: 0; }
  .primary-nav__list li { border-bottom: 1px solid rgba(245, 241, 232, 0.1); }
  .primary-nav__list a {
    display: flex;
    align-items: center;
    min-height: 64px;
    padding: 12px 0;
    font-family: var(--font-display);
    font-variation-settings: "opsz" 144, "SOFT" 0, "WONK" 0;
    font-size: clamp(28px, 5vw, 36px);
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--hero-offwhite);
    background: none;
  }
  .primary-nav__list a.is-active { color: var(--hero-gold); }
  .primary-nav__mobile-only { display: list-item; }
  .primary-nav__shop { display: inline-flex; margin-top: auto; min-height: 56px; font-size: 17px; }
  body.nav-open { overflow: hidden; }
}

@media (max-width: 640px) {
  .btn-shop { display: none; }
  .btn-platform { padding: 0 14px; gap: 6px; font-size: 14px; height: 44px; }
  .btn-platform__full { display: none; }
  .btn-platform__short { display: inline; }
  .header-actions { gap: 8px; }
  .header-inner { gap: 8px; }
  .brand__logo { height: 30px; }
}
@media (max-width: 479px) {
  .btn-platform__spark { display: none; }
  .brand__logo { height: 28px; }
}
@media (max-width: 389px) {
  .brand__logo { height: 24px; }
  .btn-platform { padding: 0 12px; font-size: 13px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  /* Exactly one screen tall; sizes below scale with height as well as width */
  min-height: 100vh;
  min-height: 100svh;
  padding-top: calc(var(--header-h) + clamp(10px, 2vh, 20px));
  background:
    radial-gradient(60% 80% at 0% 60%, rgba(27, 42, 32, 0.55), transparent 70%),
    var(--hero-bg);
  color: var(--hero-offwhite);
  border-bottom: 1px solid var(--hero-gold-line);
}

/* Photo layer: right ~55%, fading into the dark on the left */
.hero__media {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 55%;
  z-index: 0;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.35) 12%, #000 38%);
  mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.35) 12%, #000 38%);
  transform: scale(1.06);
  will-change: transform;
  /* Warm backdrop shown until the photo has loaded */
  background:
    radial-gradient(circle at 75% 35%, rgba(217, 169, 74, 0.35), transparent 40%),
    linear-gradient(160deg, var(--hero-green), var(--hero-bg));
}
.hero__media picture { display: contents; }
.hero__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 50%;
}

/* Readability overlay: keeps the nav and text legible, fades the bottom into the page */
.hero__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, #080D0B 0%, rgba(8, 13, 11, 0.85) 18%, rgba(8, 13, 11, 0.25) 45%, rgba(8, 13, 11, 0) 70%),
    linear-gradient(180deg, rgba(8, 13, 11, 0.55) 0%, rgba(8, 13, 11, 0) 22%, rgba(8, 13, 11, 0) 70%, #080D0B 100%);
}

/* Solar-path lines and the travelling sun marker */
.hero__orbits {
  position: absolute;
  top: 0;
  right: 0;
  width: 58%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  overflow: visible;
}
.hero__orbit-lines {
  transform-box: view-box;
  transform-origin: 760px 820px;
}
.hero__orbit-sun { filter: drop-shadow(0 0 12px rgba(217, 169, 74, 0.35)); }

.hero__inner {
  position: relative;
  z-index: 3;
}

.hero__pills { display: flex; flex-wrap: wrap; gap: 12px; }
.pill {
  display: inline-flex;
  align-items: center;
  height: clamp(28px, 3.8vh, 34px);
  padding: 0 clamp(12px, 1.1vw, 16px);
  border-radius: 999px;
  border: 1px solid var(--pill-border);
  background: var(--pill-bg);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--hero-offwhite);
}
.pill--accent { background: var(--hero-offwhite); border-color: var(--hero-offwhite); color: var(--hero-red); }
@media (min-height: 900px) {
  .pill { font-size: 12px; }
}

.hero__title {
  margin-top: clamp(20px, 6vh, 64px);
  font-family: var(--font-display);
  font-variation-settings: "opsz" 144, "SOFT" 0, "WONK" 0;
  font-weight: 560;
  /* Width- and height-aware so short laptop screens get a smaller headline */
  font-size: clamp(44px, min(5.6vw, 10.4vh), 104px);
  line-height: 0.95;
  letter-spacing: -0.035em;
  color: var(--hero-offwhite);
}
.hero__title span { display: block; }
.hero__title .is-gold { color: var(--hero-gold); }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero__title .is-gold {
    width: fit-content;
    background: linear-gradient(90deg, #E2B560, #C9953A);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    /* room for descenders, which background-clip would otherwise cut off */
    padding-bottom: 0.12em;
    margin-bottom: -0.12em;
  }
}

.hero__lede {
  margin-top: clamp(14px, 3vh, 32px);
  max-width: 34rem;
  font-size: clamp(16px, 2.1vh, 19px);
  line-height: 1.5;
  color: var(--hero-text-2);
}

.hero__ctas {
  margin-top: clamp(16px, 3vh, 32px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}
.btn--hero {
  min-height: 0;
  height: clamp(44px, 6vh, 56px);
  padding: 0 clamp(20px, 1.8vw, 30px);
  font-size: 16px;
  font-weight: 600;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.btn--hero-red { background: var(--hero-red); color: var(--white); }
.btn--hero-red:hover { background: var(--hero-red-hover); color: var(--white); box-shadow: 0 12px 30px rgba(215, 25, 32, 0.35); }
.btn__arrow { display: inline-block; transition: transform 0.2s ease; }

.btn--hero-ghost {
  background: transparent;
  border: 1px solid rgba(245, 241, 232, 0.55);
  color: var(--hero-offwhite);
}
.btn--hero-ghost:hover { background: rgba(245, 241, 232, 0.08); color: var(--hero-offwhite); border-color: rgba(245, 241, 232, 0.75); }

.hero__story-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  font-size: 16px;
  font-weight: 600;
  color: var(--hero-offwhite);
  text-decoration: underline 1px;
  text-underline-offset: 6px;
}
.hero__story-link:hover { color: var(--hero-offwhite); text-decoration-color: var(--hero-gold); }
.hero__story-arrow { display: inline-block; }

/* Floating glass stats panel */
.hero__stats-wrap {
  position: relative;
  z-index: 3;
  margin-top: auto; /* pins the panel to the bottom of the one-screen hero */
  padding-top: clamp(20px, 4vh, 44px); /* minimum gap below the CTAs */
  padding-bottom: clamp(16px, 4vh, 40px);
}
ul.hero-stats { /* ul. beats the global ul[class] padding reset */
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 1340px;
  padding: clamp(14px, 2.4vh, 26px) clamp(16px, 2vw, 32px);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  -webkit-backdrop-filter: blur(18px) saturate(130%);
  backdrop-filter: blur(18px) saturate(130%);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(245, 241, 232, 0.06);
}
.hero-stat {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 1.2vw, 20px);
  padding: 0 16px;
  min-width: 0;
}
.hero-stat + .hero-stat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 1px;
  background: rgba(245, 241, 232, 0.12);
}
.hero-stat__icon { width: clamp(24px, 3.4vh, 32px); height: auto; aspect-ratio: 1; flex-shrink: 0; color: var(--hero-gold); }
.hero-stat p { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.hero-stat .num {
  font-variation-settings: "opsz" 144, "SOFT" 0, "WONK" 0;
  font-weight: 560;
  font-size: clamp(28px, 4.4vh, 44px);
  line-height: 1;
  font-variant-numeric: tabular-nums lining-nums;
  color: #F1E6CF;
}
.hero-stat__label { font-size: 14px; line-height: 1.35; color: var(--hero-text-2); }

/* Very short desktop windows: let the hero grow rather than squash or clip */
@media (max-height: 600px) and (min-width: 1024px) {
  .hero { min-height: auto; }
  .hero__stats-wrap { margin-top: 0; padding-top: 28px; }
}

/* Motion: only when the visitor hasn't asked for less of it */
@keyframes hero-fade { from { opacity: 0; } }
@keyframes hero-rise { from { opacity: 0; transform: translateY(16px); } }
@keyframes hero-rise-lg { from { opacity: 0; transform: translateY(24px); } }
@keyframes orbit-sway { from { transform: rotate(-2deg); } to { transform: rotate(2deg); } }
@keyframes arrow-bob { 50% { transform: translateY(2px); } }

@media (prefers-reduced-motion: no-preference) {
  .js .hero__pills { animation: hero-fade 0.7s var(--ease-out) both; }
  .js .hero__title > span { animation: hero-rise 0.7s var(--ease-out) both; }
  .js .hero__title > span:nth-child(1) { animation-delay: 90ms; }
  .js .hero__title > span:nth-child(2) { animation-delay: 180ms; }
  .js .hero__title > span:nth-child(3) { animation-delay: 270ms; }
  .js .hero__lede { animation: hero-rise 0.7s var(--ease-out) 300ms both; }
  .js .hero__ctas { animation: hero-rise 0.7s var(--ease-out) 400ms both; }
  .js .hero-stats { animation: hero-rise-lg 0.7s var(--ease-out) 550ms both; }
  .js .hero-stat { animation: hero-fade 0.7s var(--ease-out) both; }
  .js .hero-stat:nth-child(1) { animation-delay: 630ms; }
  .js .hero-stat:nth-child(2) { animation-delay: 710ms; }
  .js .hero-stat:nth-child(3) { animation-delay: 790ms; }
  .js .hero-stat:nth-child(4) { animation-delay: 870ms; }

  .hero__orbit-lines { animation: orbit-sway 40s ease-in-out infinite alternate; }

  .btn--hero:hover { transform: translateY(-2px); }
  .btn--hero-red:hover .btn__arrow { transform: translateX(3px); }
  .hero__story-link:hover .hero__story-arrow { animation: arrow-bob 0.9s ease-in-out infinite; }
}

/* 1024 to 1439: image on the right half */
@media (max-width: 1439px) {
  .hero__media { width: 50%; }
}

/* 768 to 1023: text over a darker image, stats 2 x 2 */
@media (max-width: 1023px) {
  .hero__media { width: 78%; }
  .hero__shade {
    background:
      linear-gradient(90deg, #080D0B 0%, rgba(8, 13, 11, 0.9) 60%, rgba(8, 13, 11, 0.55) 100%),
      linear-gradient(180deg, rgba(8, 13, 11, 0.55) 0%, rgba(8, 13, 11, 0) 22%, rgba(8, 13, 11, 0) 70%, #080D0B 100%);
  }
  .hero__orbits { width: 78%; opacity: 0.6; }
  ul.hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0; }
  .hero-stat { justify-content: flex-start; padding: 24px 28px; }
  .hero-stat + .hero-stat::before { top: 20px; bottom: 20px; }
  .hero-stat + .hero-stat::before { display: none; }
  .hero-stat:nth-child(even)::before {
    display: block;
    content: "";
    position: absolute;
    left: 0;
    top: 20px;
    bottom: 20px;
    width: 1px;
    background: rgba(245, 241, 232, 0.12);
  }
  .hero-stat:nth-child(n + 3)::after {
    content: "";
    position: absolute;
    top: 0;
    left: 20px;
    right: 20px;
    height: 1px;
    background: rgba(245, 241, 232, 0.12);
  }
}

/* Phones: content first, photo below, stats overlapping the photo */
@media (max-width: 767px) {
  .hero {
    min-height: 0;
    padding-top: calc(var(--header-h) + 16px);
  }
  .hero__inner { order: 1; }
  .hero__media {
    order: 2;
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    margin-top: 40px;
    transform: none;
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 25%);
    mask-image: linear-gradient(to bottom, transparent, #000 25%);
  }
  .hero__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8, 13, 11, 0) 60%, #080D0B 100%);
  }
  .hero__shade,
  .hero__orbits { display: none; }
  .hero__stats-wrap { order: 3; margin-top: -48px; padding-top: 0; }

  .hero__pills { gap: 8px; }
  .pill { height: 32px; padding: 0 14px; font-size: 11px; }
  .hero__title { margin-top: 32px; font-size: clamp(44px, 12.5vw, 64px); }
  .hero__lede { margin-top: 24px; }
  .hero__ctas { flex-direction: column; align-items: stretch; gap: 12px; }
  .hero__story-link { align-self: center; }

  .hero-stat { flex-direction: column; align-items: flex-start; gap: 10px; padding: 20px 16px; }
  .hero-stat__icon { width: 28px; height: 28px; }
  .hero-stat .num { font-size: 32px; }
  .hero-stat__label { font-size: 13px; }
}

/* ---------- Cards (shared) ---------- */
.card {
  border-radius: 20px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.card--white { background: var(--white); }
.card--line { background: var(--white); border: 1px solid var(--line); }
.card--blush { background: var(--blush); }
.card--ink { background: var(--ink-2); }
.card--red { background: var(--red); color: var(--white); }
.card--sm { padding: 22px; gap: 12px; border-radius: 18px; }
.card--lg { padding: clamp(28px, 3vw, 44px); border-radius: 28px; gap: 18px; }

.card__title { font-size: 20px; font-weight: 700; line-height: 1.3; }
.card__title--sm { font-size: 18px; }
.card__text { font-size: 15px; line-height: 1.55; color: var(--muted); }
.card__text--sm { font-size: 14px; line-height: 1.5; }
.card--ink .card__text { color: var(--muted-dark); }
.card--red .card__text { color: var(--on-red); }

.icon-tile {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--blush);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.icon-tile--sm { width: 44px; height: 44px; }
.card--ink .icon-tile { background: #3A2C2B; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-size: 13px;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--blush);
  color: var(--red-dark);
}
.card--red .chip { background: rgba(255, 255, 255, 0.16); color: var(--white); }

/* ---------- What we do (light, sunlit counterpart to the hero) ---------- */
.wwd {
  --wide-pad: clamp(16px, 4.5vw, 88px);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-top: clamp(72px, 12vh, 120px);
  padding-bottom: clamp(64px, 10vh, 110px);
  background: var(--wwd-cream);
  color: var(--wwd-ink);
  border-top: 1px solid rgba(217, 169, 74, 0.35);
}

/* Photo layer: covers the heading + tiles, then fades into cream behind the engine cards */
.wwd__bg {
  position: absolute;
  top: -40px;
  left: 0;
  right: 0;
  height: clamp(720px, calc(90vh + 80px), 1060px);
  z-index: -2;
  background-image: url("../assets/img/what-we-do-bg.jpg");
  background-image: image-set(url("../assets/img/what-we-do-bg.webp") type("image/webp"), url("../assets/img/what-we-do-bg.jpg") type("image/jpeg"));
  background-size: cover;
  background-position: 70% 35%;
  -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 70%, transparent 100%);
  will-change: transform;
}
.wwd__haze {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(251, 246, 236, 0.95) 0%, rgba(251, 246, 236, 0.88) 38%, rgba(251, 246, 236, 0.45) 68%, rgba(251, 246, 236, 0.15) 100%),
    linear-gradient(180deg, rgba(251, 246, 236, 0.35) 0%, rgba(251, 246, 236, 0) 30%, rgba(251, 246, 236, 0) 75%, rgba(251, 246, 236, 0.6) 100%);
}

/* Solar path: thin gold arc with a small sun, echoing the hero orbit */
.wwd__path {
  position: absolute;
  top: clamp(8px, 3vh, 40px);
  right: 0;
  width: min(40vw, 760px);
  height: auto;
  z-index: -1;
  pointer-events: none;
  overflow: visible;
}
.wwd__sun { filter: drop-shadow(0 0 8px rgba(224, 168, 74, 0.45)); }

.wwd__head { position: relative; }
.wwd__title {
  font-family: var(--font-display);
  /* opsz 72: the wider display cut used in the mockup (144 reads too condensed here) */
  font-variation-settings: "opsz" 72, "SOFT" 0, "WONK" 0;
  font-weight: 600;
  font-size: clamp(40px, min(4.1vw, 8.2vh), 76px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--wwd-ink);
}
.wwd__line { display: block; }
.wwd__w1 { color: var(--wwd-gold-dark); }
.wwd__w2 { color: var(--wwd-gold); }
@media (min-width: 1280px) {
  .wwd__line { white-space: nowrap; }
}
.wwd__intro {
  margin-top: clamp(14px, 2.4vh, 24px);
  max-width: 44rem;
  font-size: clamp(17px, 2.2vh, 21px);
  line-height: 1.55;
  color: var(--wwd-text);
}

/* Tile row: a little wider than the text column */
.wwd__wide {
  width: 100%;
  max-width: calc(1520px + 2 * var(--hero-pad));
  margin: clamp(28px, 5vh, 48px) auto 0;
  padding-left: var(--wide-pad);
  padding-right: var(--wide-pad);
}
.pillars {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(12px, 1vw, 18px);
}
.pillar {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
  border-radius: 22px;
  overflow: hidden;
  background: var(--wwd-card);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 18px 40px rgba(80, 50, 20, 0.10), 0 2px 6px rgba(80, 50, 20, 0.05);
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out);
}
.pillar__media {
  aspect-ratio: 16 / 9.4;
  overflow: hidden;
  /* Warm placeholder shown until the photo loads */
  background: linear-gradient(135deg, #F3D9A8, #E9B872 55%, #C98A3E);
}
.pillar__media picture { display: contents; }
.pillar__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}
.pillar__body {
  position: relative;
  flex: 1;
  margin-top: -18px;
  padding: 44px 24px 26px;
  border-radius: 22px 22px 0 0;
  background: var(--wwd-card);
}
.pillar__icon {
  position: absolute;
  top: -40px;
  left: 22px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--wwd-badge);
  box-shadow: 0 6px 18px rgba(80, 50, 20, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--wwd-red);
  transition: transform 0.4s var(--ease-out);
}
.pillar__icon svg { width: 32px; height: 32px; }
.pillar__title {
  margin-top: 6px;
  font-family: var(--font-display);
  font-variation-settings: "opsz" 72, "SOFT" 0, "WONK" 0;
  font-weight: 600;
  font-size: clamp(22px, 1.6vw, 30px);
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--wwd-ink);
}
.pillar__text {
  margin-top: 10px;
  font-size: clamp(15px, 1.05vw, 19px);
  line-height: 1.45;
  color: var(--wwd-text);
}

@media (hover: hover) and (pointer: fine) {
  .wwd .pillar:hover { box-shadow: 0 28px 56px rgba(80, 50, 20, 0.16), 0 4px 10px rgba(80, 50, 20, 0.06); }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .wwd .pillar:hover { transform: translateY(-6px); }
  .wwd .pillar:hover .pillar__media img { transform: scale(1.05); }
  .wwd .pillar:hover .pillar__icon { transform: rotate(8deg); }
}

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

.pillars__dots { display: none; }

/* Load-in on first view (JS adds .is-inview); backwards fill so hover transforms still work afterwards */
@keyframes wwd-rise { from { opacity: 0; transform: translateY(16px); } }
@keyframes wwd-rise-lg { from { opacity: 0; transform: translateY(24px); } }
@media (prefers-reduced-motion: no-preference) {
  .js .wwd:not(.is-inview) [data-reveal] { opacity: 0; }
  .wwd.is-inview .wwd__line { animation: wwd-rise 0.7s var(--ease-out) var(--d, 0ms) backwards; }
  .wwd.is-inview .wwd__intro { animation: hero-fade 0.7s var(--ease-out) var(--d, 0ms) backwards; }
  .wwd.is-inview .pillar { animation: wwd-rise-lg 0.7s var(--ease-out) var(--d, 0ms) backwards; }
}

/* 1024 to 1279: 3 + 2 tiles */
@media (min-width: 1024px) and (max-width: 1279px) {
  .pillars { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .pillar:nth-child(-n + 3) { grid-column: span 2; }
  .pillar:nth-child(n + 4) { grid-column: span 3; }
  .pillar:nth-child(n + 4) .pillar__media { aspect-ratio: 16 / 7; }
}

/* Below 1024: scroll-snap carousel with dots */
@media (max-width: 1023px) {
  .wwd__bg { background-position: 60% 30%; }
  .wwd__haze {
    background:
      linear-gradient(90deg, rgba(251, 246, 236, 0.92) 0%, rgba(251, 246, 236, 0.9) 100%),
      linear-gradient(180deg, rgba(251, 246, 236, 0.35) 0%, rgba(251, 246, 236, 0) 30%);
  }
  .wwd__title { font-size: clamp(34px, 8.5vw, 52px); }
  .pillars {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 44%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-left: var(--wide-pad);
    margin-left: calc(-1 * var(--wide-pad));
    margin-right: calc(-1 * var(--wide-pad));
    padding: 8px var(--wide-pad) 28px;
    scrollbar-width: none;
  }
  .pillars::-webkit-scrollbar { display: none; }
  .pillar { scroll-snap-align: start; }
  .pillars__dots {
    display: flex;
    justify-content: center;
    gap: 2px;
    margin-top: -8px;
  }
  .pillars__dot {
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .pillars__dot::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(16, 35, 27, 0.25);
    transition: width 0.25s ease, background-color 0.25s ease;
  }
  .pillars__dot[aria-current="true"]::before { width: 22px; background: var(--wwd-red); }
}
@media (max-width: 640px) {
  .pillars { grid-auto-columns: 78%; }
}
@media (max-width: 600px) {
  .wwd__path { display: none; }
}

.subhead { font-size: 14px; font-weight: 700; color: var(--muted); }
.bg-ink .subhead { color: var(--muted-dark); }

/* ---------- Before / after slider ---------- */
.compare {
  --pos: 50%;
  position: relative;
  height: clamp(360px, 40vw, 560px);
  border-radius: 28px;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  background: #1B1715;
}
.compare__layer { position: absolute; inset: 0; }
.compare__layer picture { display: contents; }
.compare__layer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 22%;
  display: block;
  pointer-events: none;
  user-select: none;
}
.compare__layer--after { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }

.compare__chip {
  position: absolute;
  top: 24px;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 999px;
  white-space: nowrap;
}
.compare__layer--before .compare__chip { right: 24px; background: var(--ink); color: var(--white); }
.compare__layer--after .compare__chip { left: 24px; background: var(--red); color: var(--white); }

.compare__caption {
  position: absolute;
  bottom: 24px;
  max-width: 320px;
  padding: 16px 20px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.compare__caption-day {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.compare__caption-text { font-size: 16px; font-weight: 700; line-height: 1.35; }
.compare__layer--before .compare__caption { right: 24px; background: rgba(30, 22, 22, 0.9); color: var(--white); border: 1px solid rgba(255, 255, 255, 0.16); }
.compare__layer--before .compare__caption-day { color: var(--red-light); }
.compare__layer--after .compare__caption { left: 24px; background: var(--white); color: var(--ink); box-shadow: 0 10px 30px rgba(120, 20, 20, 0.15); }
.compare__layer--after .compare__caption-day { color: var(--red-text); }

.compare__range {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  -webkit-appearance: none;
  appearance: none;
  touch-action: pan-y;
}
.compare__divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 4px;
  margin-left: -2px;
  background: var(--white);
  pointer-events: none;
  z-index: 2;
}
.compare__handle {
  position: absolute;
  top: 50%;
  left: var(--pos);
  width: 60px;
  height: 60px;
  margin: -30px 0 0 -30px;
  border-radius: 999px;
  background: var(--white);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 2;
}
.compare__range:focus-visible ~ .compare__handle {
  outline: 3px solid var(--white);
  outline-offset: 4px;
  box-shadow: 0 0 0 7px var(--red), 0 8px 24px rgba(0, 0, 0, 0.3);
}

@media (max-width: 640px) {
  .compare { border-radius: 22px; }
  .compare__chip { top: 14px; font-size: 12px; padding: 8px 12px; }
  .compare__layer--before .compare__chip { right: 14px; }
  .compare__layer--after .compare__chip { left: 14px; }
  .compare__caption { bottom: 14px; max-width: 46%; padding: 10px 12px; border-radius: 12px; }
  .compare__layer--before .compare__caption { right: 14px; }
  .compare__layer--after .compare__caption { left: 14px; }
  .compare__caption-day { font-size: 11px; }
  .compare__caption-text { font-size: 13px; }
  .compare__handle { width: 48px; height: 48px; margin: -24px 0 0 -24px; }
}

.fact-card { gap: 8px; padding: 24px; border-radius: 18px; }
.fact-card__label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--red-light);
}
.fact-card__title { font-size: 18px; font-weight: 700; }

/* ---------- Women ---------- */
.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px 64px;
  align-items: center;
}
@media (max-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr); }
}
/* ---------- Traction ---------- */
.traction-tile {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 18px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.traction-tile .num { font-size: clamp(34px, 1.4vw + 24px, 44px); }
.traction-tile__label { font-size: 15px; color: var(--white); }
@media (max-width: 640px) {
  .traction-grid > :last-child { grid-column: span 2; }
  .traction-tile { padding: 18px; }
}

/* ---------- Partners ---------- */
.logo-row { display: flex; flex-direction: column; gap: 12px; }
.logo-row__label { font-size: 13px; font-weight: 700; color: var(--muted-2); }
.logo-tile {
  height: 84px;
  border: 1px solid var(--line);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.2px;
  color: var(--muted-2);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.logo-tile:hover { color: var(--red-text); border-color: var(--line-3); }
/* When real logo files arrive: greyscale by default, colour on hover */
.logo-tile img { max-height: 44px; width: auto; filter: grayscale(1); opacity: 0.75; transition: filter 0.2s ease, opacity 0.2s ease; }
.logo-tile:hover img { filter: none; opacity: 1; }
@media (max-width: 900px) {
  .logo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .logo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .logo-tile { height: 72px; font-size: 16px; }
}

/* ---------- Testimonials ---------- */
.testimonial {
  background: var(--blush);
  border-radius: 20px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}
.testimonial blockquote p { font-size: 17px; line-height: 1.55; }
.testimonial figcaption { font-size: 15px; font-weight: 700; color: var(--red-text); }

/* ---------- FAQ ---------- */
.faq-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px 64px;
  align-items: start;
}
.faq-layout > * { min-width: 0; }
.faq-intro { display: flex; flex-direction: column; gap: 16px; }
.faq-intro p { font-size: 16px; line-height: 1.6; color: var(--muted); }
.faq-intro a { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 901px) {
  .faq-intro { position: sticky; top: 120px; }
}
@media (max-width: 900px) {
  .faq-layout { grid-template-columns: minmax(0, 1fr); }
}
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item h3 { font-size: inherit; }
.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 22px 0;
  min-height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  color: var(--ink);
  font-size: clamp(16px, 0.2vw + 15px, 18px);
  font-weight: 700;
  line-height: 1.4;
}
.faq-q:hover { color: var(--red-text); }
.faq-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 999px;
  background: var(--white);
  color: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
}
.faq-icon::before { content: "+"; }
.faq-item.is-open .faq-icon::before { content: "\2212"; }
.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}
.faq-a > div {
  overflow: hidden;
  visibility: hidden;
  transition: visibility 0s linear 0.3s;
}
.faq-item.is-open .faq-a { grid-template-rows: 1fr; }
.faq-item.is-open .faq-a > div { visibility: visible; transition-delay: 0s; }
.faq-a p { font-size: 16px; line-height: 1.65; color: var(--muted); padding: 0 56px 24px 0; }
@media (max-width: 640px) {
  .faq-a p { padding-right: 0; }
}
/* Without JS every answer is readable */
.no-js .faq-a { grid-template-rows: 1fr; }
.no-js .faq-a > div { visibility: visible; }

/* ---------- Blog ---------- */
.blog-arrows { display: flex; gap: 10px; flex-shrink: 0; }
.blog-arrow {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1.5px solid var(--line-3);
  background: var(--white);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.blog-arrow:hover:not(:disabled) { background: var(--blush); border-color: var(--blush-2); color: var(--red-text); }
.blog-arrow:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.blog-arrow:disabled { opacity: 0.35; cursor: default; }

.blog-track {
  display: flex;
  gap: 24px;
  margin: 0;
  padding: 4px 4px 12px;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 4px;
  scrollbar-width: none;
}
.blog-track::-webkit-scrollbar { display: none; }
.blog-track__item { flex: 0 0 min(340px, 82vw); scroll-snap-align: start; }

.post { display: flex; flex-direction: column; gap: 16px; height: 100%; color: var(--ink); }
.post:hover { color: var(--ink); }
.post:hover .post__title { color: var(--red-text); }
.post__media {
  height: 200px;
  border-radius: 20px;
  background: var(--ph, var(--blush-2));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.post__media img { width: 100%; height: 100%; object-fit: cover; }
.post__meta { font-size: 13px; font-weight: 600; color: var(--muted-2); }
.post__title { font-size: clamp(19px, 0.3vw + 17px, 21px); font-weight: 700; line-height: 1.3; transition: color 0.2s ease; }
.post__author { font-size: 14px; color: var(--muted); }

/* ---------- Blog article pop-up ---------- */
.blog-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(30, 22, 22, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.blog-modal-overlay[hidden] { display: none; }
.blog-modal {
  position: relative;
  width: min(680px, 100%);
  max-height: min(88vh, 820px);
  box-sizing: border-box;
  overflow-y: auto;
  background: var(--white);
  border-radius: 20px;
  box-shadow: var(--shadow);
}
.blog-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 1;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}
.blog-modal__close:hover { background: var(--white); }
.blog-modal__close:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.blog-modal__media { aspect-ratio: 16 / 9; background: var(--blush-2); }
.blog-modal__media img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 20px 20px 0 0; }
.blog-modal__content { padding: 28px 32px 32px; display: flex; flex-direction: column; gap: 4px; }
.blog-modal__tag { font-size: 13px; font-weight: 600; color: var(--red-text); text-transform: uppercase; letter-spacing: 0.04em; }
.blog-modal__title {
  margin: 6px 0 0;
  font-family: var(--font-display);
  font-size: clamp(21px, 1.1vw + 16px, 26px);
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
}
.blog-modal__byline { margin-top: 8px; font-size: 14px; color: var(--muted); }
.blog-modal__byline[hidden] { display: none; }
.blog-modal__article { margin-top: 18px; }
.blog-modal__article p { margin: 0 0 16px; font-size: 15px; line-height: 1.7; color: var(--ink); }
.blog-modal__article h4 {
  margin: 26px 0 10px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--red-text);
}
.blog-modal__article h4:first-child { margin-top: 0; }
body.blog-modal-open { overflow: hidden; }
@media (max-width: 640px) {
  .blog-modal-overlay { padding: 0; align-items: flex-end; }
  .blog-modal { width: 100%; max-height: 92vh; border-radius: 20px 20px 0 0; }
  .blog-modal__media img { border-radius: 20px 20px 0 0; }
  .blog-modal__content { padding: 22px 20px 28px; }
}

/* ---------- Footer ---------- */
.site-footer .container {
  padding-top: clamp(64px, 6vw, 88px);
  padding-bottom: 40px;
  display: flex;
  flex-direction: column;
  gap: 56px;
}
.footer-top {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px 56px;
  align-items: center;
}
.footer-top .h2 { font-size: clamp(32px, 1.8vw + 22px, 48px); letter-spacing: -0.025em; }
@media (max-width: 900px) {
  .footer-top { grid-template-columns: minmax(0, 1fr); }
}

.newsletter { display: flex; flex-direction: column; gap: 10px; }
.newsletter label { font-size: 15px; font-weight: 600; color: var(--on-red); }
.newsletter__row { display: flex; gap: 10px; }
.newsletter input {
  flex-grow: 1;
  min-width: 0;
  font-size: 16px;
  padding: 0 20px;
  min-height: 52px;
  border-radius: 999px;
  border: 2px solid transparent;
  color: var(--ink);
  background: var(--white);
}
.newsletter input[aria-invalid="true"] { border-color: var(--ink); }
.newsletter .btn { min-height: 52px; padding: 0 26px; font-weight: 700; }
@media (max-width: 480px) {
  .newsletter__row { flex-direction: column; }
}
.form-msg { font-size: 14px; font-weight: 600; min-height: 1.4em; }
.newsletter .form-msg { color: var(--white); }

.contact-card {
  background: var(--white);
  color: var(--ink);
  border-radius: 28px;
  padding: clamp(24px, 3.4vw, 48px);
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 32px 56px;
}
.contact-card__intro { display: flex; flex-direction: column; gap: 14px; }
.contact-card__intro .eyebrow { color: var(--red-text); }
.contact-card__intro p { font-size: 16px; line-height: 1.6; color: var(--muted); }
.contact-card :focus-visible { outline-color: var(--red); }
@media (max-width: 900px) {
  .contact-card { grid-template-columns: minmax(0, 1fr); }
}
.contact-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.contact-form .field--full { grid-column: 1 / -1; }
@media (max-width: 640px) {
  .contact-form { grid-template-columns: minmax(0, 1fr); }
}
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-size: 14px; font-weight: 600; color: var(--muted); }
.field .opt { font-weight: 400; color: var(--muted-2); }
.field input,
.field select,
.field textarea {
  width: 100%;
  font-size: 16px;
  padding: 12px 16px;
  min-height: 50px;
  border-radius: 14px;
  border: 1.5px solid var(--input-line);
  background: var(--white);
  color: var(--ink);
}
.field textarea { min-height: 128px; resize: vertical; line-height: 1.5; }
.field select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23C4161C' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible { outline-offset: 1px; border-color: var(--red); }
.field [aria-invalid="true"] { border-color: var(--red); }
.field__error { font-size: 13px; font-weight: 600; color: var(--red-text); min-height: 0; }
.field__error:empty { display: none; }
.contact-form__foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.contact-form .form-msg { color: var(--red-dark); }

.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  padding-top: 40px;
}
.footer-col { display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.footer-col__title { font-weight: 700; margin-bottom: 4px; }
.footer-col a { color: var(--on-red); display: inline-flex; align-items: center; min-height: 32px; }
.footer-col a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.footer-brand { font-family: var(--font-display); font-size: 26px; font-weight: 700; }
@media (max-width: 900px) {
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
}
@media (max-width: 420px) {
  .footer-cols { grid-template-columns: minmax(0, 1fr); }
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  font-size: 13px;
  color: var(--on-red-2);
}
.footer-bottom a { color: var(--on-red-2); }
.footer-bottom a:hover { color: var(--white); }
