
/* ===== RESET & VARIABLES ===== */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --cream:       #F0E8D6;
  --cream-light: #F8F3E9;
  --cream-soft:  #E6DBCA;
  --cream-deep:  #D9CCB3;
  --ink:         #191D14;
  --ink-mid:     #303827;
  --ink-soft:    #4A5441;
  --olive-deep:  #252F1F;
  --olive:       #526040;
  --olive-muted: #7D8B6C;
  --brass:       #9A7A32;
  --stone:       #B09A72;
  --line:        #C8BAAA;
  --line-soft:   #DCCFBA;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body:    "Manrope", system-ui, -apple-system, sans-serif;

  --mw: 1160px;
  --px: 24px;
  --r:  2px;

  --page-transition-duration: 0.4s;
  --page-transition-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --page-out-x: 0px;
  --page-out-y: 0px;
  --page-out-scale: 1;
  --page-out-blur: 0px;
  --page-in-x: 0px;
  --page-in-y: 0px;
  --page-in-scale: 1;
  --page-in-blur: 0px;

  --hero-rise-distance: 10px;
  --hero-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --hero-eyebrow-duration: 0.75s;
  --hero-eyebrow-delay: 0.05s;
  --hero-title-duration: 0.8s;
  --hero-title-delay: 0.15s;
  --hero-sub-duration: 0.8s;
  --hero-sub-delay: 0.24s;
  --hero-chips-duration: 0.8s;
  --hero-chips-delay: 0.32s;
  --hero-cta-duration: 0.8s;
  --hero-cta-delay: 0.4s;
  --hero-audience-duration: 0.8s;
  --hero-audience-delay: 0.48s;
  --hero-visual-duration: 1s;
  --hero-visual-delay: 0.36s;
}

/* ===== BASE ===== */

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.menu-open,
body.modal-open {
  overflow: hidden;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; }

p { color: var(--ink-soft); }

::selection {
  background: var(--olive-deep);
  color: var(--cream);
}

/* ===== FOCUS VISIBLE ===== */

:focus { outline: none; }

:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
  border-radius: 1px;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
  border-radius: 2px;
}

details summary:focus-visible {
  outline-offset: -2px;
}

/* ===== TYPOGRAPHY ===== */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.022em;
  line-height: 1.1;
}

h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.9rem);
  line-height: 1.03;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
}

h3 {
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.35;
}

/* ===== UTILITIES ===== */

.container {
  max-width: var(--mw);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--px);
  padding-right: var(--px);
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 0.71rem;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--olive);
}

.eyebrow::before {
  content: "";
  display: block;
  width: 22px;
  height: 1px;
  background: currentColor;
  flex-shrink: 0;
}

/* ===== BUTTONS ===== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--r);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.18s ease, color 0.2s ease;
  -webkit-user-select: none;
  user-select: none;
}

.btn-primary {
  background: var(--olive-deep);
  color: var(--cream);
  border-color: var(--olive-deep);
}

.btn-primary:hover {
  background: var(--ink);
  border-color: var(--ink);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary svg.arrow {
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.btn-primary:hover svg.arrow {
  transform: translateX(3px);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
  padding: 12px 23px;
}

.btn-ghost:hover {
  border-color: var(--olive);
  background: var(--cream-soft);
}

.btn-chat {
  background: var(--cream-light);
  color: var(--olive-deep);
  border-color: var(--line);
}

.btn-chat:hover {
  background: var(--cream-soft);
  border-color: var(--olive);
}

.demo-return-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 220;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid var(--olive-deep);
  background: var(--olive-deep);
  color: var(--cream);
  box-shadow: 0 18px 34px rgba(25, 29, 20, 0.24);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.01em;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.demo-return-fab.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.demo-return-fab:hover {
  background: var(--ink);
  border-color: var(--ink);
  transform: translateY(-1px);
}

@media (max-width: 700px) {
  .demo-return-fab {
    right: 14px;
    bottom: 14px;
    padding: 11px 14px;
    font-size: 0.86rem;
  }
}

/* ===== HEADER ===== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(240, 232, 214, 0.9);
  backdrop-filter: blur(14px) saturate(130%);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
  border-bottom: 1px solid var(--line-soft);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 17px 0;
}

/* Brand / Logo */

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
}

.brand img {
  display: block;
  height: 34px;
  width: auto;
}

.brand--drawer img {
  height: 30px;
}

.brand--footer img {
  height: 54px;
}

/* Desktop nav links */

.nav-desktop {
  display: none;
  list-style: none;
  gap: 28px;
  align-items: center;
}

.nav-desktop a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.18s;
}

.nav-desktop a:hover {
  color: var(--olive-deep);
}

@media (min-width: 860px) {
  .nav-desktop { display: flex; }
}

/* Nav right: CTA + hamburger */

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-cta {
  display: none;
}

@media (min-width: 640px) {
  .nav-cta { display: inline-flex; }
}

.nav-chat-cta {
  display: none;
}

@media (min-width: 980px) {
  .nav-chat-cta { display: inline-flex; }
}

/* Hamburger button */

.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: var(--r);
  color: var(--ink);
  flex-shrink: 0;
  transition: background 0.18s;
}

.menu-toggle:hover {
  background: var(--cream-soft);
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.25s ease, width 0.25s ease;
  transform-origin: center;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  width: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

@media (min-width: 860px) {
  .menu-toggle { display: none; }
}

/* ===== MOBILE DRAWER ===== */

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(25, 29, 20, 0.5);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nav-overlay.is-visible {
  display: block;
  opacity: 1;
}

.nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 200;
  width: min(360px, 90vw);
  height: 100dvh;
  background: var(--cream-light);
  border-left: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}

.nav-drawer.is-open {
  transform: translateX(0);
}

.nav-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 17px 24px;
  border-bottom: 1px solid var(--line-soft);
  flex-shrink: 0;
}

.nav-drawer-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: var(--r);
  color: var(--ink);
  transition: background 0.18s;
}

.nav-drawer-close:hover {
  background: var(--cream-soft);
}

.nav-drawer-links {
  list-style: none;
  padding: 24px 0;
  flex: 1;
}

.nav-drawer-links li a {
  display: block;
  padding: 14px 28px;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.nav-drawer-links li a:hover {
  background: var(--cream-soft);
  color: var(--olive-deep);
}

.nav-drawer-cta {
  padding: 20px 28px 32px;
  border-top: 1px solid var(--line-soft);
  flex-shrink: 0;
}

.nav-drawer-cta .btn {
  width: 100%;
  justify-content: center;
}

/* ===== HERO ===== */

.hero {
  padding: 72px 0 88px;
}

@media (min-width: 860px) {
  .hero {
    padding: 112px 0 136px;
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  align-items: center;
}

@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: 1.65fr 1fr;
    gap: 72px;
  }
}

.hero-eyebrow {
  display: block;
  margin-bottom: 26px;
}

.hero h1 {
  margin-bottom: 24px;
}

.hero h1 em {
  font-style: normal;
  color: var(--olive);
}

.hero-sub {
  font-size: 1.1rem;
  line-height: 1.58;
  color: var(--ink-soft);
  max-width: 540px;
  margin-bottom: 28px;
}

.hero-brand-lockup {
  width: min(100%, 460px);
  margin-bottom: 28px;
}

/* Capability chips under hero sub */

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 36px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--olive);
  background: var(--cream-soft);
  border: 1px solid var(--line);
  border-radius: 20px;
  white-space: nowrap;
}

.chip::before {
  content: "";
  display: block;
  width: 5px;
  height: 5px;
  background: var(--brass);
  border-radius: 50%;
  flex-shrink: 0;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
  margin-bottom: 36px;
}

.hero-audience {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
  max-width: 540px;
}

.hero-audience-dot {
  width: 6px;
  height: 6px;
  background: var(--brass);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 8px;
}

.hero-audience p {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--olive-muted);
}

/* Hero visual / pillar frame */

.hero-visual {
  display: none;
  justify-content: center;
  align-items: center;
}

@media (min-width: 960px) {
  .hero-visual { display: flex; }
}

.pillar-frame {
  position: relative;
  width: 100%;
  max-width: 300px;
  aspect-ratio: 1 / 1.15;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 24px;
  border: 1px solid var(--line);
  background: var(--cream-light);
  padding: 32px;
}

/* Corner marks */

.pillar-frame .c {
  position: absolute;
  width: 13px;
  height: 13px;
}

.pillar-frame .c-tl { top: 12px;    left: 12px;    border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.pillar-frame .c-tr { top: 12px;    right: 12px;   border-top: 1px solid var(--line); border-right: 1px solid var(--line); }
.pillar-frame .c-bl { bottom: 12px; left: 12px;    border-bottom: 1px solid var(--line); border-left: 1px solid var(--line); }
.pillar-frame .c-br { bottom: 12px; right: 12px;   border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); }

.pillar-hero-logo {
  width: min(100%, 156px);
  height: auto;
}

.pillar-frame-divider {
  width: 40px;
  height: 1px;
  background: var(--line);
}

.pillar-frame-label {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--olive-muted);
  font-family: var(--font-body);
  font-weight: 600;
}

/* ===== HERO SHOWCASE ===== */

.hero-showcase {
  padding: 0;
  overflow-x: clip;
}

@media (min-width: 860px) {
  .hero-showcase {
    padding: 0;
  }
}

.hero-showcase__intro {
  max-width: 760px;
  margin-bottom: 32px;
}

.hero-showcase__intro h1 {
  margin-top: 16px;
  margin-bottom: 16px;
}

.hero-showcase__intro p {
  max-width: 680px;
  font-size: 1.03rem;
  line-height: 1.65;
}

.hero-showcase__stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero-variant {
  --card-bg: #f6efdf;
  --card-border: rgba(201, 182, 154, 0.92);
  --chip-bg: rgba(255, 255, 255, 0.52);
  --chip-border: rgba(66, 78, 59, 0.14);
  --bg-overlay: linear-gradient(90deg, rgba(246, 239, 223, 0.92) 0%, rgba(246, 239, 223, 0.82) 24%, rgba(246, 239, 223, 0.5) 46%, rgba(246, 239, 223, 0.12) 68%, rgba(246, 239, 223, 0.04) 100%);
  position: relative;
  width: 100vw;
  left: 50%;
  margin-left: -50vw;
  min-height: clamp(460px, 58vw, 720px);
  display: flex;
  align-items: stretch;
  overflow: hidden;
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
  background:
    var(--bg-overlay),
    var(--hero-image) center right / cover no-repeat,
    var(--card-bg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), inset 0 -1px 0 rgba(25, 29, 20, 0.04);
}

@media (min-width: 960px) {
  .hero-variant {
    min-height: clamp(520px, 56vw, 780px);
  }
}

.hero-variant__copy {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 48px), 560px);
  min-height: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(20px, 4vw, 56px) clamp(24px, 5vw, 64px) clamp(32px, 5vw, 72px);
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.25);
}

@media (min-width: 1280px) {
  .hero-variant__copy {
    margin-left: max(0px, calc((100vw - var(--mw)) / 2 + var(--px) - clamp(24px, 5vw, 64px)));
  }
}

.hero-variant__kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--olive);
}

.hero-variant__kicker::before {
  content: "";
  display: block;
  width: 18px;
  height: 1px;
  background: currentColor;
  flex-shrink: 0;
}

.hero-variant__copy h1 {
  margin-bottom: 16px;
  font-size: clamp(1.85rem, 3.3vw, 2.95rem);
  line-height: 1.04;
  max-width: 16ch;
}

.hero-variant__copy p {
  max-width: 620px;
  font-size: 1.03rem;
  line-height: 1.65;
  margin-top: 0;
  margin-bottom: 0;
}

.hero-variant__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.hero-variant__chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--olive);
  background: var(--chip-bg);
  border: 1px solid var(--chip-border);
  border-radius: 999px;
  white-space: nowrap;
}

.hero-variant__chip::before {
  content: "";
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brass);
  flex-shrink: 0;
}

.hero-variant--1 { --card-bg: #f4e8d7; --hero-image: url("../output/hero-variants/hero-1-exchange.png"); }
.hero-variant--2 { --card-bg: #efe2cc; --hero-image: url("../output/hero-variants/hero-2-warehouse.png"); }
.hero-variant--3 { --card-bg: #f2ebdd; --hero-image: url("../output/hero-variants/hero-3-desk-wide.png"); }
.hero-variant--4 { --card-bg: #eef0ef; --hero-image: url("../output/hero-variants/hero-4-route.png"); }
.hero-variant--5 { --card-bg: #e9eceb; --hero-image: url("../output/hero-variants/hero-5-van.png"); }

@media (max-width: 959px) {
  .hero-variant {
    min-height: 520px;
  }

  .hero-variant__copy {
    width: min(calc(100% - 24px), 600px);
    padding-inline: 24px;
  }
}

@media (max-width: 640px) {
  .hero-showcase {
    padding-top: 0;
    padding-bottom: 0;
  }

  .hero-variant {
    width: 100vw;
    min-height: auto;
    padding: 0;
    background: var(--card-bg);
    background-image: none;
  }

  .hero-variant__copy h1 {
    font-size: clamp(1.6rem, 7vw, 2.2rem);
    max-width: none;
  }

  .hero-variant__copy {
    width: 100%;
    padding: 28px 20px 30px;
    text-shadow: none;
  }

  .hero-variant__copy p {
    max-width: 100%;
  }

  .hero-variant__chip {
    background: rgba(255, 255, 255, 0.58);
  }
}

/* ===== SECTION SHARED ===== */

.section {
  padding: 84px 0;
}

@media (min-width: 860px) {
  .section { padding: 120px 0; }
}

.section-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 56px;
}

@media (min-width: 860px) {
  .section-head {
    grid-template-columns: 5fr 7fr;
    gap: 64px;
    align-items: end;
  }
}

.section-head-left .eyebrow {
  margin-bottom: 18px;
}

.section-head p {
  font-size: 1rem;
  line-height: 1.65;
  max-width: 520px;
  margin-top: 8px;
}

/* ===== CAPABILITIES ===== */

.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
}

@media (min-width: 640px) {
  .cards-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 960px) {
  .cards-grid { grid-template-columns: 1fr 1fr 1fr; }
}

.card {
  background: var(--cream);
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: background 0.2s;
}

.card:hover {
  background: var(--cream-light);
}

.card-num {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--brass);
  margin-bottom: 4px;
}

.card h3 {
  color: var(--olive-deep);
  font-family: var(--font-display);
  font-weight: 500;
}

.card p {
  font-size: 0.94rem;
  line-height: 1.6;
}

.card-open {
  background: var(--cream-soft);
}

.card-open h3 {
  color: var(--olive);
}

/* ===== AUDIENCE ===== */

.audience {
  background: var(--olive-deep);
  position: relative;
  overflow: hidden;
}

.audience::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse 60% 50% at 15% 30%, rgba(154, 122, 50, 0.1), transparent 55%),
    radial-gradient(ellipse 40% 60% at 85% 70%, rgba(154, 122, 50, 0.07), transparent 55%);
  pointer-events: none;
}

.audience .container { position: relative; z-index: 1; }

.audience .eyebrow { color: var(--stone); }
.audience .eyebrow::before { background: var(--stone); }
.audience h2 { color: var(--cream); }
.audience .section-head p { color: rgba(240, 232, 214, 0.75); max-width: 480px; }

.audience-variants {
  display: grid;
  gap: 22px;
}

.audience-variant {
  padding-top: 22px;
  border-top: 1px solid rgba(200, 186, 170, 0.16);
}

.audience-variant-head {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.audience-variant-head h3 {
  color: var(--cream);
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.audience-variant-head p {
  max-width: 640px;
  color: rgba(240, 232, 214, 0.72);
  font-size: 0.96rem;
  line-height: 1.6;
}

.audience-layout {
  list-style: none;
  margin: 0;
  padding: 0;
}

.audience-layout li {
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 1.08rem;
  letter-spacing: -0.01em;
}

.audience-layout--grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 640px) {
  .audience-layout--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 960px) {
  .audience-layout--grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.audience-layout--grid li {
  min-height: 86px;
  display: flex;
  align-items: center;
  padding: 18px 18px 18px 20px;
  border: 1px solid rgba(200, 186, 170, 0.16);
  border-radius: 18px;
  background: rgba(240, 232, 214, 0.035);
}

.audience-layout--rows {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

@media (min-width: 700px) {
  .audience-layout--rows {
    grid-template-columns: 1fr 1fr;
    column-gap: 42px;
    row-gap: 0;
  }
}

.audience-layout--rows li {
  padding: 18px 0;
  border-bottom: 1px solid rgba(200, 186, 170, 0.14);
}

.audience-layout--rows li:last-child {
  border-bottom: 0;
}

.audience-layout--chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.audience-layout--chips li {
  padding: 12px 16px;
  border: 1px solid rgba(200, 186, 170, 0.16);
  border-radius: 999px;
  background: rgba(240, 232, 214, 0.05);
}

.audience-layout--split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 760px) {
  .audience-layout--split {
    grid-template-columns: 1.05fr 0.95fr;
  }
}

.audience-layout--split li {
  min-height: 72px;
  padding: 18px 18px 18px 20px;
  border-left: 2px solid rgba(154, 122, 50, 0.75);
  background: linear-gradient(90deg, rgba(154, 122, 50, 0.08), rgba(240, 232, 214, 0.02));
}

.audience-layout--stack {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.audience-layout--stack li {
  min-height: 66px;
  display: flex;
  align-items: center;
  padding: 16px 18px 16px 20px;
  border: 1px solid rgba(200, 186, 170, 0.14);
  border-radius: 16px;
  background: rgba(240, 232, 214, 0.035);
  position: relative;
}

.audience-layout--stack li::before { content: none; }

/* ===== EDITORIAL ===== */

.editorial .section-head {
  margin-bottom: 40px;
}

.editorial-body {
  max-width: 720px;
}

.editorial-body p {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  line-height: 1.48;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 22px;
}

.editorial-body p + p {
  color: var(--ink-mid);
}

.editorial-body .editorial-close {
  font-family: var(--font-body);
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--olive);
  letter-spacing: 0.01em;
  padding-top: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 0;
}

.editorial-body .editorial-close::before {
  content: "";
  width: 20px;
  height: 1px;
  background: var(--olive);
  flex-shrink: 0;
}

/* ===== PROCESS ===== */

.process {
  background: var(--cream-soft);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.steps {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line-soft);
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 20px;
  row-gap: 8px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line-soft);
  align-items: start;
}

@media (min-width: 860px) {
  .step {
    grid-template-columns: 100px 1fr 2.2fr;
    column-gap: 48px;
    padding: 38px 0;
  }
}

.step-num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 300;
  line-height: 1;
  color: var(--brass);
  letter-spacing: -0.04em;
  grid-row: 1 / 3;
  padding-top: 4px;
}

.step-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 450;
  color: var(--ink);
  letter-spacing: -0.018em;
  line-height: 1.28;
  align-self: end;
}

@media (max-width: 859px) {
  .step-title { grid-column: 2; }
  .step-desc { grid-column: 2; }
}

.step-desc {
  font-size: 0.97rem;
  line-height: 1.62;
  color: var(--ink-soft);
}

@media (min-width: 860px) {
  .step-title { align-self: center; }
  .step-desc  { align-self: center; }
}

/* ===== PRICING ===== */

.pricing {
  background: var(--cream-light);
  border-bottom: 1px solid var(--line-soft);
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  background: transparent;
  border: 0;
}

@media (min-width: 760px) {
  .pricing-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1100px) {
  .pricing-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
  }
}

.pricing-card {
  background: var(--cream-light);
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  border: 1px solid rgba(200, 186, 170, 0.72);
  box-shadow: 0 12px 30px rgba(25, 29, 20, 0.05);
}

.pricing-card--featured {
  position: relative;
  background: linear-gradient(160deg, #283221 0%, #1f281a 100%);
  color: var(--cream-light);
  border-color: rgba(154, 122, 50, 0.2);
  box-shadow: 0 20px 48px rgba(25, 29, 20, 0.18);
}

@media (min-width: 1100px) {
  .pricing-grid > .pricing-card:not(.pricing-card--featured):not(.pricing-card--workflow) {
    overflow: hidden;
  }

  .pricing-card--featured {
    transform: translateY(calc(var(--pricing-featured-offset, 12px) * -1));
  }
}

.pricing-card-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.pricing-card-head h3 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--olive-deep);
}

.pricing-card--featured .pricing-card-head h3 {
  color: var(--cream-light);
}

.pricing-badge {
  display: inline-flex;
  align-items: center;
  padding: 7px 11px;
  border: 1px solid rgba(154, 122, 50, 0.28);
  color: var(--olive);
  background: rgba(154, 122, 50, 0.08);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.pricing-card--featured .pricing-badge {
  border-color: rgba(154, 122, 50, 0.5);
  background: rgba(154, 122, 50, 0.18);
  color: var(--cream-light);
}

.pricing-grid--badge-corner .pricing-card--featured {
  padding-top: 34px;
}

.pricing-grid--badge-corner .pricing-card--featured .pricing-card-head {
  display: block;
  padding-right: 156px;
}

.pricing-grid--badge-corner .pricing-card--featured .pricing-card-head h3 {
  font-size: clamp(1.2rem, 1.6vw, 1.55rem);
  line-height: 1.12;
}

.pricing-badge--corner {
  position: absolute;
  top: 0;
  right: 0;
  border-radius: 0 0 0 18px;
  padding: 9px 12px 8px 14px;
  border-top: 0;
  border-right: 0;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
}

.pricing-card-actions {
  margin-top: auto;
  padding-top: 4px;
}

.pricing-card-actions .btn {
  width: 100%;
  justify-content: center;
}

.pricing-card--featured .pricing-card-actions .btn {
  background: var(--cream-light);
  color: var(--olive-deep);
  border-color: var(--cream-light);
}

.pricing-card--featured .pricing-card-actions .btn:hover {
  background: var(--cream-soft);
  border-color: var(--cream-soft);
}

.pricing-card p {
  font-size: 0.96rem;
  line-height: 1.62;
}

.pricing-card--featured p,
.pricing-card--featured .pricing-note {
  color: rgba(240, 232, 214, 0.84);
}

.pricing-meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

@media (min-width: 480px) {
  .pricing-meta {
    grid-template-columns: 1fr 1fr;
  }
}

.pricing-meta-item span {
  display: block;
}

.pricing-meta-label {
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--olive-muted);
  margin-bottom: 8px;
}

.pricing-meta-value {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  line-height: 1.05;
  color: var(--ink);
  letter-spacing: -0.03em;
}

.pricing-card--featured .pricing-meta {
  border-top-color: rgba(240, 232, 214, 0.2);
  border-bottom-color: rgba(240, 232, 214, 0.2);
}

.pricing-card--featured .pricing-meta-label {
  color: rgba(240, 232, 214, 0.68);
}

.pricing-card--featured .pricing-meta-value {
  color: var(--cream-light);
}

.pricing-note {
  color: var(--olive);
}

.pricing-card--workflow {
  grid-column: 1 / -1;
  background: linear-gradient(180deg, #F4EBDD 0%, #EDE2CC 100%);
  margin-top: 8px;
}

@media (min-width: 1100px) {
  .pricing-card--workflow {
    margin-top: 6px;
  }
}

.pricing-workflow-layout {
  display: grid;
  gap: 28px;
}

@media (min-width: 960px) {
  .pricing-workflow-layout {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: start;
  }
}

.pricing-workflow-copy {
  display: grid;
  gap: 14px;
}

.pricing-workflow-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--olive);
}

.pricing-workflow-copy h3 {
  margin-top: 2px;
}

.pricing-workflow-copy p {
  max-width: 660px;
}

.pricing-workflow-list-wrap {
  padding-top: 6px;
}

.pricing-workflow-list-title {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--olive);
  margin-bottom: 14px;
}

.pricing-workflow-list {
  list-style: none;
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
}

.pricing-workflow-list li {
  position: relative;
  padding-left: 18px;
  font-size: 0.96rem;
  line-height: 1.62;
  color: var(--ink);
}

.pricing-workflow-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--olive);
}

.pricing-footnote,
.calculator-note {
  margin-top: 22px;
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--olive-muted);
  max-width: 760px;
}

/* ===== CALCULATOR ===== */

.calculator {
  border-bottom: 1px solid var(--line-soft);
}

.calculator-lead {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
}

@media (min-width: 960px) {
  .calculator-lead {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

.calculator-copy,
.calculator-callout {
  background: var(--cream);
  padding: 34px 30px;
}

.calculator-copy p + p {
  margin-top: 14px;
}

.calculator-callout {
  background: var(--olive-deep);
  color: var(--cream);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 26px;
}

.calculator-callout p {
  color: rgba(240, 232, 214, 0.8);
  font-size: 0.98rem;
  line-height: 1.65;
}

.calculator-highlight {
  display: grid;
  gap: 10px;
}

.calculator-highlight-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--stone);
}

.calculator-highlight-value {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  color: var(--cream);
}

.calculator-open-btn {
  width: 100%;
  justify-content: center;
  padding: 18px 24px;
  font-size: 0.98rem;
  font-weight: 700;
  background: var(--cream);
  color: var(--olive-deep);
  border-color: var(--cream);
}

.calculator-open-btn:hover {
  background: var(--cream-light);
  border-color: var(--cream-light);
}

.calculator-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
}

@media (min-width: 1024px) {
  .calculator-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

.calculator-panel,
.calculator-result {
  background: var(--cream);
  padding: 30px;
}

.calculator-panel h3,
.calculator-result h3 {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2vw, 1.65rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  color: var(--olive-deep);
}

.calculator-panel-intro {
  font-size: 0.94rem;
  line-height: 1.6;
  margin-bottom: 22px;
}

.calculator-form {
  display: grid;
  gap: 18px;
}

.calculator-field {
  display: grid;
  gap: 8px;
}

.calculator-field label {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--olive);
}

.calculator-field input,
.calculator-field select {
  width: 100%;
  min-height: 50px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--cream-light);
  color: var(--ink);
  font: inherit;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.calculator-field input:hover,
.calculator-field select:hover {
  border-color: var(--olive-muted);
}

.calculator-field input[readonly] {
  background: var(--cream-soft);
  color: var(--ink-soft);
}

.calculator-field small {
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--olive-muted);
}

.calculator-result {
  background: var(--cream-light);
}

@media (min-width: 1024px) {
  .calculator-result {
    grid-column: 1 / -1;
  }
}

.calculator-result-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
}

@media (min-width: 760px) {
  .calculator-result-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .calculator-result-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.calculator-stat {
  background: var(--cream);
  padding: 22px 20px;
}

.calculator-stat--accent {
  background: var(--cream-soft);
}

.calculator-stat-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--olive-muted);
  margin-bottom: 10px;
}

.calculator-stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.calculator-stat--accent .calculator-stat-value {
  color: var(--olive-deep);
}

.calculator-result-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
}

.calculator-download-btn {
  justify-content: center;
}

.calculator-download-status {
  font-size: 0.88rem;
  color: var(--olive);
}

@media (max-width: 699px) {
  .calculator-download-btn {
    width: 100%;
  }
}

/* ===== CALCULATOR MODAL ===== */

.calculator-modal[hidden] {
  display: none;
}

.calculator-modal {
  position: fixed;
  inset: 0;
  z-index: 260;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.calculator-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(25, 29, 20, 0.62);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.calculator-modal-dialog {
  position: relative;
  width: min(1120px, 100%);
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  background: var(--cream-light);
  border: 1px solid var(--line-soft);
  box-shadow: 0 28px 80px rgba(25, 29, 20, 0.22);
}

.calculator-modal-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 30px;
  border-bottom: 1px solid var(--line-soft);
}

.calculator-modal-header h3 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.calculator-modal-header p {
  max-width: 620px;
  margin-top: 10px;
  font-size: 0.95rem;
  line-height: 1.6;
}

.calculator-modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  border-radius: var(--r);
  flex-shrink: 0;
}

.calculator-modal-close:hover {
  background: var(--cream-soft);
  border-color: var(--olive-muted);
}

.calculator-modal-body {
  padding: 30px;
}

@media (max-width: 699px) {
  .calculator-copy,
  .calculator-callout,
  .calculator-panel,
  .calculator-result,
  .calculator-modal-header,
  .calculator-modal-body {
    padding: 24px 20px;
  }
}

/* ===== AI CHAT ===== */

.chat-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.chat-modal[hidden] {
  display: none;
}

.chat-modal {
  position: fixed;
  inset: 0;
  z-index: 320;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.chat-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(25, 29, 20, 0.66);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.chat-modal-dialog {
  position: relative;
  width: clamp(560px, 46vw, 700px);
  height: min(760px, calc(100dvh - 40px));
  max-height: calc(100dvh - 40px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--cream-light);
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  box-shadow: 0 28px 80px rgba(25, 29, 20, 0.24);
}

.chat-modal-shell {
  display: flex;
  flex: 1;
  min-height: 0;
}

.chat-modal-main {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.chat-modal-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px 18px;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(248, 243, 233, 0.92);
}

.chat-modal-header h3 {
  font-size: clamp(1.45rem, 2.2vw, 1.95rem);
  line-height: 1.08;
}

.chat-modal-header p {
  max-width: 720px;
  margin-top: 7px;
  font-size: 0.9rem;
  line-height: 1.6;
}

.chat-access-panel {
  display: grid;
  gap: 14px;
  padding: 18px 24px 16px;
  border-bottom: 1px solid var(--line-soft);
  background:
    linear-gradient(180deg, rgba(248, 243, 233, 0.95), rgba(240, 232, 214, 0.82)),
    radial-gradient(circle at top right, rgba(154, 122, 50, 0.08), transparent 34%);
}

.chat-access-panel[hidden] {
  display: none;
}

.chat-access-intro {
  max-width: 700px;
  font-size: 0.95rem;
  line-height: 1.62;
}

.chat-access-form {
  display: grid;
  gap: 14px;
}

.chat-access-field {
  display: grid;
  gap: 6px;
}

.chat-access-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--olive);
}

.chat-access-input {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--cream-light);
  color: var(--ink);
  padding: 14px 16px;
  font: inherit;
  line-height: 1.6;
  border-radius: var(--r);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.chat-access-input:hover {
  border-color: var(--olive-muted);
}

.chat-access-input:focus {
  border-color: var(--olive);
  box-shadow: 0 0 0 3px rgba(154, 122, 50, 0.12);
}

.chat-access-consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  background: rgba(255, 255, 255, 0.4);
}

.chat-access-consent input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex: 0 0 auto;
  accent-color: var(--olive);
}

.chat-access-consent label {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--ink);
}

.chat-access-consent a {
  color: var(--olive-deep);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.14em;
}

.chat-access-consent a:hover {
  color: var(--olive);
}

.chat-access-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.chat-access-status {
  font-size: 0.84rem;
  color: var(--olive);
}

.chat-access-status[hidden] {
  display: none;
}

.chat-workspace {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.chat-workspace[hidden] {
  display: none;
}

.chat-modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  border-radius: var(--r);
  flex-shrink: 0;
}

.chat-modal-close:hover {
  background: var(--cream-soft);
  border-color: var(--olive-muted);
}

.chat-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--line-soft);
  background: var(--cream);
}

.chat-prompt-btn {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border: 1px solid var(--line);
  background: var(--cream-light);
  color: var(--ink);
  font: inherit;
  font-size: 0.86rem;
  line-height: 1.35;
  cursor: pointer;
  border-radius: 999px;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.chat-prompt-btn:hover {
  background: var(--cream-soft);
  border-color: var(--olive-muted);
  transform: translateY(-1px);
}

.chat-thread {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(240, 232, 214, 0.55), rgba(248, 243, 233, 0.92)),
    radial-gradient(circle at top right, rgba(154, 122, 50, 0.08), transparent 30%);
}

.chat-message {
  display: flex;
  margin-bottom: 16px;
}

.chat-message--assistant {
  justify-content: flex-start;
}

.chat-message--user {
  justify-content: flex-end;
}

.chat-bubble {
  max-width: min(720px, 100%);
  padding: 16px 18px;
  border: 1px solid var(--line);
  line-height: 1.65;
  font-size: 0.96rem;
  white-space: pre-wrap;
}

.chat-message--assistant .chat-bubble {
  background: var(--cream);
  color: var(--ink);
}

.chat-message--user .chat-bubble {
  background: var(--olive-deep);
  border-color: var(--olive-deep);
  color: var(--cream);
}

.chat-message--status .chat-bubble {
  background: var(--cream-soft);
  color: var(--olive);
}

.chat-status-row {
  padding: 0 24px 14px;
  color: var(--olive);
  font-size: 0.86rem;
}

.chat-status-row[hidden] {
  display: none;
}

.chat-composer {
  border-top: 1px solid var(--line-soft);
  background: var(--cream-light);
  padding: 12px 24px 14px;
}

.chat-form {
  display: grid;
  gap: 6px;
}

.chat-turnstile-wrap {
  display: grid;
  gap: 4px;
}

.chat-turnstile {
  min-height: 0;
}

.chat-input-wrap {
  display: grid;
  gap: 6px;
}

.chat-textarea {
  width: 100%;
  min-height: 108px;
  max-height: 260px;
  resize: vertical;
  border: 1px solid var(--line);
  background: var(--cream);
  color: var(--ink);
  padding: 16px 18px;
  font: inherit;
  line-height: 1.6;
  border-radius: var(--r);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.chat-textarea:hover {
  border-color: var(--olive-muted);
}

.chat-textarea:focus {
  border-color: var(--olive);
  box-shadow: 0 0 0 3px rgba(154, 122, 50, 0.12);
}

.chat-form-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 10px 12px;
}

.chat-form-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-send-status {
  font-size: 0.84rem;
  color: var(--olive);
}

.chat-send-status[hidden] {
  display: none;
}

@media (max-width: 699px) {
  .chat-modal {
    padding: 20px;
  }

  .chat-modal-dialog {
    width: min(100%, calc(100vw - 40px));
    height: min(760px, calc(100dvh - 40px));
    max-height: calc(100dvh - 40px);
    border-radius: 18px;
  }

  .chat-modal-shell {
    height: 100%;
  }

  .chat-modal-header,
  .chat-quick-actions,
  .chat-thread,
  .chat-composer {
    padding-left: 16px;
    padding-right: 16px;
  }

  .chat-modal-header {
    padding-top: 18px;
    padding-bottom: 14px;
  }

  .chat-modal-header h3 {
    font-size: 1.35rem;
  }

  .chat-modal-header p {
    font-size: 0.86rem;
    line-height: 1.48;
  }

  .chat-access-panel {
    padding: 16px;
  }

  .chat-access-intro {
    font-size: 0.88rem;
    line-height: 1.5;
  }

  .chat-access-consent {
    padding: 12px 14px;
  }

  .chat-access-consent label {
    font-size: 0.84rem;
    line-height: 1.48;
  }

  .chat-quick-actions {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .chat-quick-actions::-webkit-scrollbar {
    display: none;
  }

  .chat-prompt-btn {
    flex: 0 0 auto;
    white-space: nowrap;
    font-size: 0.82rem;
    padding: 9px 12px;
  }

  .chat-thread {
    padding-top: 16px;
  }

  .chat-bubble {
    max-width: 100%;
  }

  .chat-composer {
    padding-top: 10px;
    padding-bottom: 12px;
  }

  .chat-textarea {
    min-height: 92px;
    max-height: 180px;
  }

  .chat-turnstile {
    min-height: 0;
  }
}

/* ===== CONTACT MODAL ===== */

.contact-modal[hidden] {
  display: none;
}

.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 330;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.contact-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(25, 29, 20, 0.66);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.contact-modal-dialog {
  position: relative;
  width: clamp(620px, 52vw, 820px);
  height: min(760px, calc(100dvh - 40px));
  max-height: calc(100dvh - 40px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(180deg, rgba(248, 243, 233, 0.98), rgba(240, 232, 214, 0.98));
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  box-shadow: 0 28px 80px rgba(25, 29, 20, 0.24);
}

.contact-modal-shell {
  display: flex;
  flex: 1;
  min-height: 0;
}

.contact-modal-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.contact-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px 18px;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(248, 243, 233, 0.96);
}

.contact-modal-header h3 {
  font-size: clamp(1.45rem, 2.2vw, 1.95rem);
  line-height: 1.08;
}

.contact-modal-header p {
  max-width: 720px;
  margin-top: 7px;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--olive);
}

.contact-modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  border-radius: var(--r);
  flex-shrink: 0;
}

.contact-modal-close:hover {
  background: var(--cream-soft);
  border-color: var(--olive-muted);
}

.contact-modal-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(240, 232, 214, 0.52), rgba(248, 243, 233, 0.94)),
    radial-gradient(circle at top right, rgba(154, 122, 50, 0.08), transparent 32%);
}

.contact-modal-intro {
  max-width: 680px;
  margin-bottom: 18px;
  font-size: 0.95rem;
  line-height: 1.62;
}

.contact-form {
  display: grid;
  gap: 16px;
}

.contact-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 760px) {
  .contact-form-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-field {
  display: grid;
  gap: 6px;
}

.contact-field--wide {
  grid-column: 1 / -1;
}

.contact-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--olive);
}

.contact-input,
.contact-textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--cream);
  color: var(--ink);
  padding: 14px 16px;
  font: inherit;
  line-height: 1.6;
  border-radius: var(--r);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.contact-input:hover,
.contact-textarea:hover {
  border-color: var(--olive-muted);
}

.contact-input:focus,
.contact-textarea:focus {
  border-color: var(--olive);
  box-shadow: 0 0 0 3px rgba(154, 122, 50, 0.12);
}

.contact-textarea {
  min-height: 168px;
  resize: vertical;
}

.contact-help {
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--olive-muted);
}

.contact-consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  background: rgba(255, 255, 255, 0.34);
}

.contact-consent input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex: 0 0 auto;
  accent-color: var(--olive);
}

.contact-consent label {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--ink);
}

.contact-consent a {
  color: var(--olive-deep);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.14em;
}

.contact-consent a:hover {
  color: var(--olive);
}

.contact-status-row {
  font-size: 0.88rem;
  color: var(--olive);
}

.contact-status-row[hidden] {
  display: none;
}

.contact-form-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 10px 12px;
  margin-top: 2px;
}

.contact-form-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-send-status {
  font-size: 0.84rem;
  color: var(--olive);
}

.contact-send-status[hidden] {
  display: none;
}

.contact-note {
  margin-top: 2px;
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--olive-muted);
}

@media (max-width: 699px) {
  .contact-modal {
    padding: 20px;
  }

  .contact-modal-dialog {
    width: min(100%, calc(100vw - 40px));
    height: min(760px, calc(100dvh - 40px));
    max-height: calc(100dvh - 40px);
    border-radius: 18px;
  }

  .contact-modal-shell {
    height: 100%;
  }

  .contact-modal-header,
  .contact-modal-body {
    padding-left: 16px;
    padding-right: 16px;
  }

  .contact-modal-header {
    padding-top: 18px;
    padding-bottom: 14px;
  }

  .contact-modal-header h3 {
    font-size: 1.35rem;
  }

  .contact-modal-header p {
    font-size: 0.86rem;
    line-height: 1.48;
  }

  .contact-modal-body {
    padding-top: 16px;
    padding-bottom: 18px;
  }

  .contact-textarea {
    min-height: 132px;
  }
}

/* ===== BENEFITS ===== */

.benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

@media (min-width: 860px) {
  .benefits-grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0;
  }
}

.benefit {
  padding: 0;
  border-top: 1px solid var(--line);
  padding-top: 32px;
}

@media (min-width: 860px) {
  .benefit {
    padding: 36px 36px 36px 0;
  }
  .benefit + .benefit {
    padding-left: 40px;
    border-left: 1px solid var(--line);
  }
}

.benefit-icon {
  width: 28px;
  height: 28px;
  color: var(--olive);
  margin-bottom: 18px;
}

.benefit h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--olive-deep);
  margin-bottom: 10px;
  line-height: 1.2;
}

.benefit p {
  font-size: 0.97rem;
  line-height: 1.6;
}

/* ===== BLOG PREVIEW ===== */

.blog-preview {
  background: linear-gradient(180deg, rgba(248, 243, 233, 0.72) 0%, rgba(230, 219, 202, 0.62) 100%);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

@media (min-width: 860px) {
  .blog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.blog-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 30px 26px;
  border: 1px solid var(--line);
  background: rgba(248, 243, 233, 0.9);
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.blog-card:hover {
  transform: translateY(-2px);
  border-color: var(--olive);
  box-shadow: 0 16px 30px rgba(37, 47, 31, 0.06);
}

.blog-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.blog-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--cream);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--olive);
}

.blog-tag::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brass);
}

.blog-card h3 {
  font-family: var(--font-display);
  font-size: 1.34rem;
  font-weight: 400;
  line-height: 1.16;
  color: var(--ink);
}

.blog-card p {
  font-size: 0.96rem;
  line-height: 1.68;
}

.blog-card-cta {
  margin-top: auto;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--olive-deep);
}

/* ===== FAQ ===== */

.faq-band {
  background: var(--cream-soft);
  border-top: 1px solid var(--line-soft);
}

.faq-list {
  max-width: 800px;
  border-top: 1px solid var(--line);
}

details.faq-item {
  border-bottom: 1px solid var(--line);
}

details.faq-item summary {
  -webkit-appearance: none;
  appearance: none;
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 24px 0;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.35;
  color: var(--ink);
  transition: color 0.18s;
}

details.faq-item summary::-webkit-details-marker {
  display: none;
}

details.faq-item summary:hover {
  color: var(--olive-deep);
}

.faq-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  position: relative;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--olive);
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.faq-icon::before {
  width: 12px;
  height: 1px;
  transform: translate(-50%, -50%);
}

.faq-icon::after {
  width: 1px;
  height: 12px;
  transform: translate(-50%, -50%);
}

details.faq-item[open] .faq-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}

.faq-answer {
  padding: 0 0 24px 0;
  max-width: 660px;
}

.faq-answer p {
  font-size: 0.97rem;
  line-height: 1.68;
}

/* ===== FINAL CTA ===== */

.final-cta {
  padding: 112px 0 120px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

@media (min-width: 860px) {
  .final-cta { padding: 152px 0; }
}

.final-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 50%, rgba(154, 122, 50, 0.07), transparent 65%);
  pointer-events: none;
}

.final-cta .container { position: relative; z-index: 1; }

.final-cta-mark {
  display: inline-block;
  margin-bottom: 36px;
}

.final-cta-mark img {
  width: min(100%, 420px);
  height: auto;
  margin: 0 auto;
}

.final-cta h2 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  max-width: 740px;
  margin: 0 auto 24px;
  font-weight: 400;
}

.final-cta-sub {
  font-size: 1.07rem;
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.final-cta-btns {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.page-cta .chat-inline-actions {
  justify-content: center;
  margin-top: 0;
}

.final-cta-note {
  margin-top: 28px;
  font-size: 0.83rem;
  color: var(--olive-muted);
}

/* ===== FOOTER ===== */

footer {
  background: var(--olive-deep);
  color: var(--cream);
  padding: 60px 0 40px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  margin-bottom: 48px;
}

@media (min-width: 680px) {
  .footer-inner {
    grid-template-columns: 2.2fr 1fr 1fr 1fr;
    gap: 60px;
  }
}

.footer-brand p {
  margin-top: 14px;
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(240, 232, 214, 0.65);
  max-width: 320px;
}

.footer-col h4 {
  font-size: 0.69rem;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--stone);
  font-weight: 700;
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  font-size: 0.92rem;
  color: rgba(240, 232, 214, 0.8);
  text-decoration: none;
  transition: color 0.18s;
}

.footer-col a:hover { color: var(--cream); }

.footer-col a:focus-visible {
  outline-color: var(--stone);
}

.footer-col button {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  text-align: left;
  color: rgba(240, 232, 214, 0.8);
  cursor: pointer;
  transition: color 0.18s;
}

.footer-col button:hover {
  color: var(--cream);
}

.footer-col button:focus-visible {
  outline-color: var(--stone);
}

.footer-bottom {
  border-top: 1px solid rgba(200, 186, 170, 0.18);
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.8rem;
  color: rgba(200, 186, 170, 0.65);
}

/* ===== COOKIE BANNER ===== */

.cookie-banner {
  position: fixed;
  inset: auto 0 0;
  z-index: 260;
  padding: 18px var(--px) 22px;
  pointer-events: none;
}

.cookie-banner__panel {
  pointer-events: auto;
  max-width: var(--mw);
  margin: 0 auto;
  display: grid;
  gap: 16px;
  padding: 18px 18px;
  border: 1px solid rgba(240, 232, 214, 0.16);
  border-radius: 18px;
  background: rgba(25, 29, 20, 0.97);
  box-shadow: 0 20px 48px rgba(25, 29, 20, 0.24);
  color: var(--cream);
  backdrop-filter: blur(12px);
}

@media (min-width: 720px) {
  .cookie-banner__panel {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    padding: 20px 24px;
  }
}

.cookie-banner__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--stone);
}

.cookie-banner__eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: currentColor;
}

.cookie-banner__title {
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.25;
  color: var(--cream);
}

.cookie-banner__text {
  max-width: 780px;
  font-size: 0.92rem;
  line-height: 1.6;
  color: rgba(240, 232, 214, 0.78);
}

.cookie-banner__text a {
  color: var(--cream);
  text-decoration-color: rgba(240, 232, 214, 0.35);
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn-cookie-secondary {
  background: transparent;
  color: var(--cream);
  border-color: rgba(240, 232, 214, 0.24);
}

.btn-cookie-secondary:hover {
  background: rgba(240, 232, 214, 0.08);
  border-color: rgba(240, 232, 214, 0.34);
}

@media (max-width: 719px) {
  .cookie-banner__actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ===== ANIMATIONS ===== */

@keyframes rise {
  from { opacity: 0; transform: translateY(var(--hero-rise-distance, 10px)); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-eyebrow {
  animation: rise var(--hero-eyebrow-duration, 0.75s) var(--hero-eyebrow-delay, 0.05s) var(--hero-ease, cubic-bezier(0.22, 1, 0.36, 1)) both;
}

.hero h1 {
  animation: rise var(--hero-title-duration, 0.8s) var(--hero-title-delay, 0.15s) var(--hero-ease, cubic-bezier(0.22, 1, 0.36, 1)) both;
}

.hero-sub {
  animation: rise var(--hero-sub-duration, 0.8s) var(--hero-sub-delay, 0.24s) var(--hero-ease, cubic-bezier(0.22, 1, 0.36, 1)) both;
}

.hero-chips {
  animation: rise var(--hero-chips-duration, 0.8s) var(--hero-chips-delay, 0.32s) var(--hero-ease, cubic-bezier(0.22, 1, 0.36, 1)) both;
}

.hero-cta {
  animation: rise var(--hero-cta-duration, 0.8s) var(--hero-cta-delay, 0.4s) var(--hero-ease, cubic-bezier(0.22, 1, 0.36, 1)) both;
}

.hero-audience {
  animation: rise var(--hero-audience-duration, 0.8s) var(--hero-audience-delay, 0.48s) var(--hero-ease, cubic-bezier(0.22, 1, 0.36, 1)) both;
}

.hero-visual {
  animation: rise var(--hero-visual-duration, 1s) var(--hero-visual-delay, 0.36s) var(--hero-ease, cubic-bezier(0.22, 1, 0.36, 1)) both;
}

/* ===== REDUCED MOTION ===== */

@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;
  }

  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) {
    animation: none !important;
  }
}

/* ===== VIEW TRANSITIONS (MPA) ===== */

@view-transition {
  navigation: auto;
}

@keyframes page-transition-old {
  from {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0);
  }

  to {
    opacity: 0;
    transform: translate3d(var(--page-out-x, 0px), var(--page-out-y, 0px), 0) scale(var(--page-out-scale, 1));
    filter: blur(var(--page-out-blur, 0px));
  }
}

@keyframes page-transition-new {
  from {
    opacity: 0;
    transform: translate3d(var(--page-in-x, 0px), var(--page-in-y, 0px), 0) scale(var(--page-in-scale, 1));
    filter: blur(var(--page-in-blur, 0px));
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0);
  }
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: var(--page-transition-duration, 0.4s);
  animation-timing-function: var(--page-transition-ease, cubic-bezier(0.22, 1, 0.36, 1));
}

::view-transition-old(root) {
  animation-name: page-transition-old;
}

::view-transition-new(root) {
  animation-name: page-transition-new;
}

html[data-animation-scheme="fade-slide"]::view-transition-old(root) {
  animation-name: page-transition-old;
}

html[data-animation-scheme="fade-slide"]::view-transition-new(root) {
  animation-name: page-transition-new;
}

html[data-animation-scheme="wipe"]::view-transition-old(root) {
  animation-name: page-transition-old;
}

html[data-animation-scheme="wipe"]::view-transition-new(root) {
  animation-name: page-transition-new;
}

html[data-animation-scheme="staged"]::view-transition-old(root) {
  animation-name: page-transition-old;
}

html[data-animation-scheme="staged"]::view-transition-new(root) {
  animation-name: page-transition-new;
}

@keyframes page-transition-old-fade {
  from {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }

  to {
    opacity: 0;
    transform: translate3d(0, -10px, 0) scale(0.997);
  }
}

@keyframes page-transition-new-fade {
  from {
    opacity: 0;
    transform: translate3d(0, 12px, 0) scale(0.997);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes page-transition-old-wipe {
  from {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0);
    clip-path: inset(0 0 0 0);
  }

  to {
    opacity: 0;
    transform: translate3d(-36px, 0, 0) scale(1.02);
    filter: blur(0.5px);
    clip-path: inset(0 100% 0 0);
  }
}

@keyframes page-transition-new-wipe {
  from {
    opacity: 0;
    transform: translate3d(36px, 0, 0) scale(0.985);
    filter: blur(1px);
    clip-path: inset(0 0 0 100%);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0);
    clip-path: inset(0 0 0 0);
  }
}

@keyframes page-transition-old-staged {
  from {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0);
  }

  to {
    opacity: 0;
    transform: translate3d(0, -20px, 0) scale(0.985);
    filter: blur(1px);
  }
}

@keyframes page-transition-new-staged {
  from {
    opacity: 0;
    transform: translate3d(0, 20px, 0) scale(0.975);
    filter: blur(1px);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0);
  }
}

html[data-animation-scheme="fade-slide"]::view-transition-old(root) {
  animation-name: page-transition-old-fade;
}

html[data-animation-scheme="fade-slide"]::view-transition-new(root) {
  animation-name: page-transition-new-fade;
}

html[data-animation-scheme="wipe"]::view-transition-old(root) {
  animation-name: page-transition-old-wipe;
}

html[data-animation-scheme="wipe"]::view-transition-new(root) {
  animation-name: page-transition-new-wipe;
}

html[data-animation-scheme="staged"]::view-transition-old(root) {
  animation-name: page-transition-old-staged;
}

html[data-animation-scheme="staged"]::view-transition-new(root) {
  animation-name: page-transition-new-staged;
}

@keyframes scene-fade-up {
  from {
    opacity: 0;
    transform: translate3d(0, var(--scene-offset-y, 12px), 0) scale(var(--scene-scale, 0.995));
    filter: blur(var(--scene-blur, 0px));
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0);
  }
}

@keyframes scene-sweep-left {
  from {
    opacity: 0;
    transform: translate3d(var(--scene-offset-x, 34px), 0, 0) scale(var(--scene-scale, 1.015));
    clip-path: inset(0 100% 0 0);
    filter: blur(var(--scene-blur, 0px));
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    clip-path: inset(0 0 0 0);
    filter: blur(0);
  }
}

@keyframes scene-cascade {
  from {
    opacity: 0;
    transform: translate3d(0, var(--scene-offset-y, 22px), 0) scale(var(--scene-scale, 0.985));
    filter: blur(var(--scene-blur, 1px));
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0);
  }
}

html[data-animation-scheme="fade-slide"] main > section,
html[data-animation-scheme="fade-slide"] main > .section,
html[data-animation-scheme="fade-slide"] main > .hero-showcase {
  animation: scene-fade-up var(--scene-duration, 0.45s) var(--scene-ease, cubic-bezier(0.22, 1, 0.36, 1)) both;
}

html[data-animation-scheme="wipe"] main > section,
html[data-animation-scheme="wipe"] main > .section,
html[data-animation-scheme="wipe"] main > .hero-showcase {
  animation: scene-sweep-left var(--scene-duration, 0.68s) var(--scene-ease, cubic-bezier(0.16, 1, 0.3, 1)) both;
}

html[data-animation-scheme="wipe"] main > section:nth-of-type(even),
html[data-animation-scheme="wipe"] main > .section:nth-of-type(even) {
  animation-name: scene-sweep-left;
  animation-direction: reverse;
}

html[data-animation-scheme="staged"] main > section,
html[data-animation-scheme="staged"] main > .section,
html[data-animation-scheme="staged"] main > .hero-showcase {
  animation: scene-cascade var(--scene-duration, 0.82s) var(--scene-ease, cubic-bezier(0.2, 1, 0.22, 1)) both;
}

html[data-animation-scheme="staged"] main > section:nth-of-type(1),
html[data-animation-scheme="staged"] main > .section:nth-of-type(1) {
  animation-delay: calc(var(--scene-stagger-step, 120ms) * 0);
}

html[data-animation-scheme="staged"] main > section:nth-of-type(2),
html[data-animation-scheme="staged"] main > .section:nth-of-type(2) {
  animation-delay: calc(var(--scene-stagger-step, 120ms) * 1);
}

html[data-animation-scheme="staged"] main > section:nth-of-type(3),
html[data-animation-scheme="staged"] main > .section:nth-of-type(3) {
  animation-delay: calc(var(--scene-stagger-step, 120ms) * 2);
}

html[data-animation-scheme="staged"] main > section:nth-of-type(4),
html[data-animation-scheme="staged"] main > .section:nth-of-type(4) {
  animation-delay: calc(var(--scene-stagger-step, 120ms) * 3);
}

html[data-animation-scheme="staged"] main > section:nth-of-type(5),
html[data-animation-scheme="staged"] main > .section:nth-of-type(5) {
  animation-delay: calc(var(--scene-stagger-step, 120ms) * 4);
}

html[data-animation-scheme="staged"] main > section:nth-of-type(6),
html[data-animation-scheme="staged"] main > .section:nth-of-type(6) {
  animation-delay: calc(var(--scene-stagger-step, 120ms) * 5);
}

html[data-animation-scheme="staged"] .cards-grid > *,
html[data-animation-scheme="staged"] .benefits-grid > *,
html[data-animation-scheme="staged"] .page-hub-grid > * {
  animation: scene-cascade 0.72s var(--hero-ease, cubic-bezier(0.2, 1, 0.22, 1)) both;
}

html[data-animation-scheme="staged"] .cards-grid > *:nth-child(1),
html[data-animation-scheme="staged"] .benefits-grid > *:nth-child(1),
html[data-animation-scheme="staged"] .page-hub-grid > *:nth-child(1) {
  animation-delay: calc(var(--scene-stagger-step, 120ms) * 0.5);
}

html[data-animation-scheme="staged"] .cards-grid > *:nth-child(2),
html[data-animation-scheme="staged"] .benefits-grid > *:nth-child(2),
html[data-animation-scheme="staged"] .page-hub-grid > *:nth-child(2) {
  animation-delay: calc(var(--scene-stagger-step, 120ms) * 1);
}

html[data-animation-scheme="staged"] .cards-grid > *:nth-child(3),
html[data-animation-scheme="staged"] .benefits-grid > *:nth-child(3),
html[data-animation-scheme="staged"] .page-hub-grid > *:nth-child(3) {
  animation-delay: calc(var(--scene-stagger-step, 120ms) * 1.5);
}

html[data-animation-scheme="staged"] .cards-grid > *:nth-child(4),
html[data-animation-scheme="staged"] .benefits-grid > *:nth-child(4),
html[data-animation-scheme="staged"] .page-hub-grid > *:nth-child(4) {
  animation-delay: calc(var(--scene-stagger-step, 120ms) * 2);
}

html[data-animation-scheme="wipe"] .cards-grid > *,
html[data-animation-scheme="wipe"] .benefits-grid > *,
html[data-animation-scheme="wipe"] .page-hub-grid > * {
  animation: scene-sweep-left 0.72s var(--scene-ease, cubic-bezier(0.16, 1, 0.3, 1)) both;
}

html[data-animation-scheme="wipe"] .cards-grid > *:nth-child(even),
html[data-animation-scheme="wipe"] .benefits-grid > *:nth-child(even),
html[data-animation-scheme="wipe"] .page-hub-grid > *:nth-child(even) {
  animation-direction: reverse;
}

html[data-animation-scheme="fade-slide"] .cards-grid > *,
html[data-animation-scheme="fade-slide"] .benefits-grid > *,
html[data-animation-scheme="fade-slide"] .page-hub-grid > * {
  animation: scene-fade-up 0.48s var(--scene-ease, cubic-bezier(0.22, 1, 0.36, 1)) both;
}

.site-header {
  view-transition-name: site-header;
}

/* ===== PAGE HUB ===== */

.page-hub-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 36px;
}

.page-hub-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px;
  border: 1px solid var(--line-soft);
  background: var(--cream-light);
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.page-hub-card:hover {
  border-color: var(--brass);
  transform: translateY(-2px);
}

.page-hub-card__eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass);
}

.page-hub-card h3 {
  font-size: 1.35rem;
}

.page-hub-card p {
  flex: 1;
}

.page-hub-card__link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--olive);
}

.nav-desktop a.is-active,
.nav-drawer-links a.is-active {
  color: var(--brass);
}

@media (max-width: 720px) {
  .page-hub-grid {
    grid-template-columns: 1fr;
  }
}
