/* ==========================================================================
   AVENYR v3 — "Kinetic Flagship"
   Tech-startup energy on the warm Avenyr brand. Bento grids, aurora mesh,
   glassmorphism, kinetic type, bold micro-interactions. Built accessible.
   ========================================================================== */

:root {
  /* Brand palette (shared across all Avenyr variants) */
  --cream: #F7F3EE;
  --cream-2: #EFE9E1;
  --cream-3: #E6DDD2;
  --ink: #1A1210;
  --ink-2: #241915;

  --bg: var(--cream);
  --text: #1A1210;
  --text-soft: #5E534C;     /* AA on cream (~5.6:1) */
  --text-mute: #776B63;     /* AA on cream (4.67:1) — hints, placeholders, nav numerals */

  --accent: #8C1A2E;        /* bordeaux */
  --accent-2: #B22942;      /* brighter bordeaux for gradients */
  --accent-hover: #A32035;
  --accent-soft: rgba(140, 26, 46, 0.10);

  --teal: #2C4A52;          /* slate-teal */
  --teal-2: #3E6B74;
  --teal-soft: rgba(44, 74, 82, 0.10);

  --border: rgba(26, 18, 16, 0.12);
  --border-soft: rgba(26, 18, 16, 0.07);
  --border-strong: rgba(26, 18, 16, 0.22);
  --on-ink-border: rgba(247, 243, 238, 0.16);

  /* Glass */
  --glass: rgba(255, 253, 250, 0.62);
  --glass-2: rgba(255, 253, 250, 0.42);
  --glass-border: rgba(255, 255, 255, 0.65);
  --glass-blur: 18px;

  /* Gradients */
  --grad-brand: linear-gradient(115deg, var(--accent) 0%, var(--accent-2) 42%, var(--teal) 100%);
  --grad-warm: linear-gradient(120deg, var(--accent-2), var(--accent));
  --grad-text: linear-gradient(100deg, var(--accent) 0%, var(--accent-2) 38%, var(--teal-2) 100%);

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(26, 18, 16, 0.05);
  --shadow-md: 0 14px 40px -12px rgba(26, 18, 16, 0.18);
  --shadow-lg: 0 32px 70px -24px rgba(26, 18, 16, 0.30);
  --shadow-accent: 0 18px 44px -14px rgba(140, 26, 46, 0.45);

  --font-display: 'Space Grotesk', 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-serif: 'Fraunces', Georgia, 'Times New Roman', serif;

  --radius: 22px;
  --radius-lg: 30px;
  --radius-sm: 14px;
  --pill: 999px;

  --max: 1320px;
  --nav-h: 76px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.5, 1);
  --d1: 160ms;
  --d2: 300ms;
  --d3: 560ms;
}

/* --------------------------------------------------------------------------
   Reset & base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  min-height: 100dvh;
  overflow-x: hidden;
  position: relative;
}

img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul, ol { list-style: none; }
input, textarea, select { font-family: inherit; }

::selection { background: var(--accent); color: #fff; }

/* Accessibility primitives */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 1000;
  background: var(--accent); color: #fff; padding: .85rem 1.4rem;
  border-radius: 0 0 12px 0; font-weight: 600; font-size: .9rem;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 2.5px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}
.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;
}

/* --------------------------------------------------------------------------
   Decorative layers: noise grain + animated aurora mesh
   -------------------------------------------------------------------------- */
.grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  opacity: 0.5; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.045'/%3E%3C/svg%3E");
}

.aurora {
  position: fixed; inset: -20vh -10vw; z-index: 0; pointer-events: none;
  overflow: hidden; filter: blur(8px);
}
.aurora__blob {
  position: absolute; border-radius: 50%;
  filter: blur(60px); opacity: 0.55; will-change: transform;
}
.aurora__blob--1 {
  width: 52vw; height: 52vw; top: -12vh; right: -8vw;
  background: radial-gradient(circle, rgba(140,26,46,0.34), transparent 64%);
  animation: drift1 24s var(--ease-spring) infinite alternate;
}
.aurora__blob--2 {
  width: 46vw; height: 46vw; bottom: -16vh; left: -10vw;
  background: radial-gradient(circle, rgba(44,74,82,0.30), transparent 64%);
  animation: drift2 30s var(--ease-spring) infinite alternate;
}
.aurora__blob--3 {
  width: 34vw; height: 34vw; top: 38%; left: 44%;
  background: radial-gradient(circle, rgba(178,41,66,0.20), transparent 66%);
  animation: drift3 27s var(--ease-spring) infinite alternate;
}
@keyframes drift1 { from { transform: translate(0,0) scale(1); } to { transform: translate(-7vw, 9vh) scale(1.18); } }
@keyframes drift2 { from { transform: translate(0,0) scale(1); } to { transform: translate(9vw, -7vh) scale(1.22); } }
@keyframes drift3 { from { transform: translate(0,0) scale(1); } to { transform: translate(-6vw, -8vh) scale(0.85); } }

/* Everything sits above the decorative layers */
.topbar, .mobile-menu, main, .footer, .scroll-progress { position: relative; z-index: 2; }
.scroll-progress { z-index: 300; }

/* --------------------------------------------------------------------------
   Scroll progress
   -------------------------------------------------------------------------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: var(--grad-warm); z-index: 300; pointer-events: none;
  transition: width 80ms linear;
  box-shadow: 0 0 12px rgba(140,26,46,0.5);
}

/* --------------------------------------------------------------------------
   Type
   -------------------------------------------------------------------------- */
.eyebrow {
  font-family: var(--font-display);
  font-size: .75rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent); display: inline-flex; align-items: center; gap: .6rem;
}
.eyebrow::before {
  content: ''; width: 26px; height: 2px; border-radius: 2px;
  background: var(--grad-warm); display: block; flex-shrink: 0;
}
.eyebrow--center { justify-content: center; }

.display-1 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.7rem, 7vw, 6.2rem); line-height: 0.98; letter-spacing: -0.035em;
}
.display-2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2rem, 4.4vw, 3.6rem); line-height: 1.04; letter-spacing: -0.03em;
}
.display-3 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.45rem, 2.6vw, 2.1rem); line-height: 1.14; letter-spacing: -0.02em;
}
.grad-text {
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--accent);
}
.lede {
  font-size: clamp(1.05rem, 1.5vw, 1.28rem); line-height: 1.62; color: var(--text-soft); font-weight: 400;
}
.body { font-size: 1rem; line-height: 1.75; color: var(--text-soft); }
.mono {
  font-family: var(--font-display); font-feature-settings: "tnum" 1;
  letter-spacing: -0.01em;
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 3rem); }
.section { padding: clamp(4.5rem, 9vw, 8rem) 0; position: relative; }
.section--tight { padding: clamp(3rem, 5vw, 4.5rem) 0; }
.rule { width: 100%; height: 1px; background: var(--border); }

.section-head {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(1.5rem, 5vw, 4.5rem);
  align-items: end; margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}
.section-head .eyebrow { margin-bottom: 1.1rem; }
.section-head--center { grid-template-columns: 1fr; text-align: center; justify-items: center; }
.section-head--center .eyebrow { justify-content: center; }

/* --------------------------------------------------------------------------
   Floating glass navbar
   -------------------------------------------------------------------------- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  padding: clamp(.7rem, 1.5vw, 1.1rem) 0;
  transition: padding var(--d2) var(--ease);
}
.topbar__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: .55rem .65rem .55rem 1.1rem;
  border-radius: var(--pill);
  border: 1px solid transparent;
  transition: background var(--d2) var(--ease), border-color var(--d2) var(--ease),
              box-shadow var(--d2) var(--ease);
}
.topbar.scrolled .topbar__inner {
  background: var(--glass);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.3);
  backdrop-filter: blur(var(--glass-blur)) saturate(1.3);
  border-color: var(--glass-border);
  box-shadow: var(--shadow-md);
}

.brand { display: flex; align-items: center; gap: .65rem; flex-shrink: 0; }
.brand__mark {
  width: 38px; height: 38px; border-radius: 11px; background: var(--grad-brand);
  display: grid; place-items: center; flex-shrink: 0; box-shadow: var(--shadow-accent);
  transition: transform var(--d2) var(--ease-spring);
}
.brand:hover .brand__mark { transform: rotate(-6deg) scale(1.06); }
.brand__mark span { font-family: var(--font-serif); font-style: italic; font-weight: 600; color: #fff; font-size: 1.5rem; line-height: 1; }
.brand__word { font-family: var(--font-display); font-weight: 700; letter-spacing: .14em; font-size: 1rem; color: var(--text); }

.topnav { display: flex; align-items: center; gap: clamp(.4rem, 1vw, .6rem); }
.topnav__link {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: .9rem; font-weight: 500; color: var(--text-soft);
  padding: .55rem .85rem; border-radius: var(--pill);
  transition: color var(--d1), background var(--d1);
}
.topnav__link .tag {
  font-family: var(--font-display); font-size: .68rem; font-weight: 600;
  color: var(--text-mute); transition: color var(--d1);
}
.topnav__link:hover { color: var(--text); background: var(--accent-soft); }
.topnav__link[aria-current="page"] { color: var(--accent); background: var(--accent-soft); }
.topnav__link[aria-current="page"] .tag { color: var(--accent); }

.topbar__right { display: flex; align-items: center; gap: .6rem; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .9rem 1.6rem; min-height: 48px;
  font-family: var(--font-display); font-size: .92rem; font-weight: 600; letter-spacing: .005em;
  border-radius: var(--pill); white-space: nowrap;
  transition: transform var(--d2) var(--ease-spring), box-shadow var(--d2) var(--ease),
              background var(--d2) var(--ease), color var(--d2), border-color var(--d2);
  will-change: transform;
}
.btn svg { width: 17px; height: 17px; transition: transform var(--d2) var(--ease); }
.btn:hover svg { transform: translateX(4px); }

.btn-primary { background: var(--grad-brand); color: #fff; box-shadow: var(--shadow-accent); }
.btn-primary:hover { box-shadow: 0 22px 50px -12px rgba(140,26,46,0.6); }

.btn-glass {
  background: var(--glass); color: var(--text);
  border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
}
.btn-glass:hover { border-color: var(--accent); color: var(--accent); }

.btn-outline { background: transparent; color: var(--text); border: 1.5px solid var(--border-strong); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

.btn-light { background: var(--cream); color: var(--accent); box-shadow: var(--shadow-md); }
.btn-light:hover { background: #fff; }

.btn-small { padding: .7rem 1.2rem; min-height: 44px; font-size: .85rem; }

.btn-text {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-display); font-weight: 600; font-size: .92rem; color: var(--accent);
  padding: .4rem 0; border-bottom: 2px solid transparent; border-radius: 0;
}
.btn-text svg { width: 16px; height: 16px; transition: transform var(--d2) var(--ease); }
.btn-text:hover { border-bottom-color: var(--accent); }
.btn-text:hover svg { transform: translateX(4px); }

/* Hover lift only where motion is welcome (handled by buttons themselves) */
.btn-primary:active, .btn-glass:active, .btn-outline:active, .btn-light:active { transform: translateY(1px) scale(.99); }

/* --------------------------------------------------------------------------
   Mobile menu
   -------------------------------------------------------------------------- */
.menu-toggle {
  display: none; flex-direction: column; gap: 5px; width: 48px; height: 48px;
  align-items: center; justify-content: center; border-radius: var(--pill);
  background: var(--glass); border: 1px solid var(--glass-border);
}
.menu-toggle span { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--text); transition: all var(--d2) var(--ease); }
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none; position: fixed; inset: 0; z-index: 199;
  background: rgba(247, 243, 238, 0.92);
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  padding: calc(var(--nav-h) + 2rem) clamp(1.25rem, 6vw, 3rem) 2rem;
  flex-direction: column; transform: translateY(-100%);
  transition: transform var(--d3) var(--ease);
  overflow-y: auto;
}
.mobile-menu.open { transform: translateY(0); }
.mobile-menu__link {
  font-family: var(--font-display); font-size: clamp(2.1rem, 9vw, 3rem); font-weight: 700;
  letter-spacing: -0.02em; color: var(--text); padding: 1rem 0;
  border-bottom: 1px solid var(--border); display: flex; align-items: baseline; gap: .8rem;
}
.mobile-menu__link .tag { font-family: var(--font-display); font-size: 1rem; color: var(--accent); font-weight: 600; }
.mobile-menu__link:hover { color: var(--accent); }
.mobile-menu__cta { margin-top: 2rem; align-self: flex-start; }

/* --------------------------------------------------------------------------
   HERO (bento)
   -------------------------------------------------------------------------- */
.hero {
  padding-top: calc(var(--nav-h) + clamp(1.5rem, 5vh, 3.5rem));
  padding-bottom: clamp(3rem, 6vh, 5rem);
}
.hero__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.7rem, 7.2vw, 6rem); line-height: 0.97; letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
}
.hero__lede { max-width: 46ch; margin-bottom: 2.1rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; align-items: center; }

/* rotating word — clip-free fade/slide swap (font-metric safe) */
.rotator {
  display: inline-grid; vertical-align: top; position: relative;
}
.rotator__word {
  grid-area: 1 / 1; display: inline-block; white-space: nowrap;
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--accent);
  opacity: 0; transform: translateY(0.3em);
  transition: opacity var(--d3) var(--ease), transform var(--d3) var(--ease);
}
.rotator__word.is-active { opacity: 1; transform: translateY(0); }
.rotator__word.is-out { opacity: 0; transform: translateY(-0.3em); }

/* Hero bento grid */
.hero__bento {
  display: grid; gap: 1rem; margin-top: clamp(2.5rem, 5vw, 3.5rem);
  grid-template-columns: repeat(12, 1fr);
}
.bento {
  position: relative; border-radius: var(--radius);
  background: var(--glass); border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.2);
  backdrop-filter: blur(var(--glass-blur)) saturate(1.2);
  box-shadow: var(--shadow-md);
  padding: clamp(1.5rem, 2.4vw, 2.1rem);
  overflow: hidden;
  transition: transform var(--d2) var(--ease), box-shadow var(--d2) var(--ease), border-color var(--d2);
  will-change: transform;
}
.bento::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(120% 80% at var(--mx, 80%) var(--my, 0%), rgba(140,26,46,0.10), transparent 55%);
  opacity: 0; transition: opacity var(--d2) var(--ease);
}
.bento:hover { box-shadow: var(--shadow-lg); border-color: rgba(140,26,46,0.28); }
.bento:hover::after { opacity: 1; }

.bento--ink {
  background: var(--ink); color: var(--cream); border-color: rgba(247,243,238,0.10);
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
.bento--ink .bento__k { color: rgba(247,243,238,0.5); }
.bento--accent { background: var(--grad-brand); color: #fff; border-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: var(--shadow-accent); }

.bento__k {
  font-family: var(--font-display); font-size: .72rem; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--text-mute); display: flex; align-items: center; gap: .5rem;
}
.bento__stat {
  font-family: var(--font-display); font-weight: 700; letter-spacing: -0.03em; line-height: 1;
  font-size: clamp(2.4rem, 4vw, 3.4rem); margin: .6rem 0 .35rem;
}
.bento__label { font-size: .92rem; color: var(--text-soft); line-height: 1.5; }
.bento--ink .bento__label, .bento--accent .bento__label { color: rgba(247,243,238,0.78); }
.bento__icon {
  width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); margin-bottom: 1.1rem;
}
.bento--ink .bento__icon { background: rgba(247,243,238,0.10); color: var(--cream); }

/* Hero bento spans */
.hero__bento .b-stat-1 { grid-column: span 4; }
.hero__bento .b-stat-2 { grid-column: span 4; }
.hero__bento .b-stat-3 { grid-column: span 4; }

/* --------------------------------------------------------------------------
   Marquee ticker
   -------------------------------------------------------------------------- */
.ticker {
  border-top: 1px solid var(--accent-soft); border-bottom: 1px solid var(--accent-soft);
  background: var(--accent-soft); overflow: hidden; padding: .8rem 0;
}
.ticker__track { display: flex; width: max-content; animation: ticker 38s linear infinite; }
.ticker__group { display: flex; flex-shrink: 0; }
.ticker__item {
  display: inline-flex; align-items: center; gap: .9rem; padding: 0 1.9rem;
  font-family: var(--font-display); font-size: .88rem; font-weight: 500; letter-spacing: .04em;
  white-space: nowrap; color: rgba(140, 26, 46, 0.6);
}
.ticker__item .star { color: rgba(140, 26, 46, 0.42); }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ticker:hover .ticker__track { animation-play-state: paused; }

/* --------------------------------------------------------------------------
   Bento feature grid (generic, reused on pages)
   -------------------------------------------------------------------------- */
.bento-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1rem; }
.bento-grid .cell { grid-column: span 4; }
.bento-grid .cell--wide { grid-column: span 6; }
.bento-grid .cell--full { grid-column: span 12; }
.bento-grid .cell--8 { grid-column: span 8; }

.feature {
  display: flex; flex-direction: column; height: 100%;
}
.feature__title {
  font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; letter-spacing: -0.01em;
  margin-bottom: .55rem; color: var(--text);
}
.bento--ink .feature__title, .bento--accent .feature__title { color: #fff; }
.feature__body { font-size: .96rem; color: var(--text-soft); line-height: 1.65; }
.bento--ink .feature__body, .bento--accent .feature__body { color: rgba(247,243,238,0.8); }

.taglist { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: auto; padding-top: 1.4rem; }
.tagpill {
  font-size: .78rem; font-weight: 500; color: var(--text-soft);
  padding: .42rem .85rem; border-radius: var(--pill);
  background: rgba(26,18,16,0.04); border: 1px solid var(--border-soft);
}
.bento--ink .tagpill { color: rgba(247,243,238,0.85); background: rgba(247,243,238,0.08); border-color: rgba(247,243,238,0.14); }

.cell-link {
  display: inline-flex; align-items: center; gap: .5rem; margin-top: 1.4rem;
  font-family: var(--font-display); font-weight: 600; font-size: .92rem; color: var(--accent);
}
.cell-link svg { width: 16px; height: 16px; transition: transform var(--d2) var(--ease); }
.bento:hover .cell-link svg { transform: translate(3px, -3px); }
.bento--accent .cell-link { color: #fff; }

/* --------------------------------------------------------------------------
   Audience split cards (home)
   -------------------------------------------------------------------------- */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.duo__card { min-height: 420px; padding-bottom: clamp(2.6rem, 3.4vw, 3.4rem); }
.duo__num {
  font-family: var(--font-display); font-weight: 700; font-size: 2.4rem; letter-spacing: -0.03em;
  color: var(--accent); line-height: 1; margin-bottom: 1.2rem;
}

/* --------------------------------------------------------------------------
   Founder / personal note
   -------------------------------------------------------------------------- */
.founder { padding: clamp(2rem, 5vw, 4rem); }
.founder__mark {
  width: 58px; height: 58px; border-radius: 16px; background: var(--grad-brand);
  display: grid; place-items: center; box-shadow: var(--shadow-accent); margin-bottom: 1.6rem;
}
.founder__mark span { font-family: var(--font-serif); font-style: italic; font-weight: 600; color: #fff; font-size: 2rem; line-height: 1; }
.founder .eyebrow { margin-bottom: 1.1rem; }
.founder__title { margin-bottom: 1.4rem; max-width: 20ch; }
.founder__lede { margin-bottom: 1.25rem; max-width: 60ch; }
.founder .body { max-width: 62ch; margin-bottom: 1rem; }
.founder__sign {
  margin-top: 1.9rem; padding-top: 1.5rem; border-top: 1px solid var(--border);
  font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; color: var(--text);
}
.founder__sign span { color: var(--text-soft); font-weight: 400; }

/* --------------------------------------------------------------------------
   Process steps (kinetic horizontal cards)
   -------------------------------------------------------------------------- */
.steps { display: grid; gap: 1rem; }
.steps--3 { grid-template-columns: repeat(3, 1fr); }
.steps--5 { grid-template-columns: repeat(5, 1fr); }
.step {
  position: relative; padding: 1.8rem 1.5rem; border-radius: var(--radius);
  background: var(--glass); border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(var(--glass-blur)); backdrop-filter: blur(var(--glass-blur));
  box-shadow: var(--shadow-sm);
  transition: transform var(--d2) var(--ease), box-shadow var(--d2) var(--ease), border-color var(--d2);
}
.step:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: rgba(140,26,46,0.25); }
.step__num {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
  background: var(--grad-brand); color: #fff; margin-bottom: 1.2rem; box-shadow: var(--shadow-accent);
}
.step__title { font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; margin-bottom: .5rem; letter-spacing: -0.01em; }
.step__body { font-size: .92rem; color: var(--text-soft); line-height: 1.65; }

/* --------------------------------------------------------------------------
   About teaser / showcase panel
   -------------------------------------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split--reverse { direction: rtl; }
.split--reverse > * { direction: ltr; }

.showcase {
  position: relative; aspect-ratio: 1 / 1; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--ink);
  display: grid; place-items: center;
  box-shadow: var(--shadow-lg);
}
.showcase__aura {
  position: absolute; inset: 0;
  background: radial-gradient(60% 60% at 30% 25%, rgba(140,26,46,0.55), transparent 60%),
              radial-gradient(60% 60% at 78% 80%, rgba(44,74,82,0.5), transparent 62%);
  animation: showAura 16s var(--ease-spring) infinite alternate;
}
@keyframes showAura { from { transform: scale(1) translate(0,0); } to { transform: scale(1.25) translate(4%, -3%); } }
.showcase__mark {
  position: relative; z-index: 1; font-family: var(--font-display); font-weight: 700;
  font-size: clamp(7rem, 20vw, 14rem); color: var(--cream); line-height: 1; letter-spacing: -0.05em;
  text-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.showcase__chip {
  position: absolute; z-index: 2; bottom: 1.5rem; left: 1.5rem;
  font-family: var(--font-display); font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(247,243,238,0.8); padding: .55rem 1rem; border-radius: var(--pill);
  background: rgba(247,243,238,0.10); border: 1px solid rgba(247,243,238,0.2);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}

/* --------------------------------------------------------------------------
   CTA banner (dark, aurora glow)
   -------------------------------------------------------------------------- */
.cta {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  background: var(--ink); color: var(--cream);
  padding: clamp(3rem, 7vw, 6rem) clamp(1.5rem, 5vw, 5rem);
  box-shadow: var(--shadow-lg);
}
.cta__glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(50% 70% at 85% 10%, rgba(140,26,46,0.45), transparent 60%),
              radial-gradient(45% 60% at 8% 95%, rgba(44,74,82,0.42), transparent 62%);
  animation: showAura 18s var(--ease-spring) infinite alternate;
}
.cta__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.4fr .6fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: end; }
.cta .eyebrow { color: rgba(247,243,238,0.65); }
.cta .eyebrow::before { background: var(--cream); }
.cta__title { color: var(--cream); max-width: 16ch; }
.cta__actions { display: flex; flex-direction: column; gap: 1rem; align-items: flex-start; }
.cta__sub { color: rgba(247,243,238,0.6); font-size: .9rem; }
.cta__sub a { color: var(--cream); border-bottom: 1px solid rgba(247,243,238,0.4); }

/* --------------------------------------------------------------------------
   Page hero (inner pages)
   -------------------------------------------------------------------------- */
.page-hero {
  padding-top: calc(var(--nav-h) + clamp(2.5rem, 7vh, 5rem));
  padding-bottom: clamp(2.5rem, 5vh, 4rem);
}
.page-hero__grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: end; }
.page-hero__title { max-width: 16ch; }
.page-hero__lede { max-width: 40ch; }

/* --------------------------------------------------------------------------
   Stats counter strip
   -------------------------------------------------------------------------- */
.statstrip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.statstrip .bento { text-align: left; }

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.contact-detail { padding: 1.5rem 0; border-bottom: 1px solid var(--border); }
.contact-detail:first-of-type { border-top: 1px solid var(--border); }
.contact-detail__label { margin-bottom: .5rem; display: block; }
.contact-detail__value { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; color: var(--text); transition: color var(--d1); }
a.contact-detail__value:hover { color: var(--accent); }

.form-panel {
  background: var(--glass); border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.2); backdrop-filter: blur(var(--glass-blur)) saturate(1.2);
  border-radius: var(--radius-lg); padding: clamp(1.6rem, 4vw, 2.6rem); box-shadow: var(--shadow-md);
}
.form { display: flex; flex-direction: column; gap: 1.2rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: flex; flex-direction: column; gap: .45rem; }
.field__label {
  font-family: var(--font-display); font-size: .76rem; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--text-soft);
}
.field__label .req { color: var(--accent); }
.field__input, .field__select, .field__textarea {
  background: rgba(255,255,255,0.7); border: 1.5px solid var(--border);
  color: var(--text); font-size: 1rem; padding: .85rem 1rem; border-radius: var(--radius-sm);
  outline: none; width: 100%; -webkit-appearance: none; min-height: 50px;
  transition: border-color var(--d1), box-shadow var(--d1), background var(--d1);
}
.field__textarea { min-height: 140px; resize: vertical; }
.field__input::placeholder, .field__textarea::placeholder { color: var(--text-mute); }
.field__input:focus, .field__select:focus, .field__textarea:focus {
  border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); background: #fff;
}
.field__select {
  cursor: pointer; padding-right: 2.6rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235E534C' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center;
}
.form__privacy { font-size: .82rem; color: var(--text-soft); line-height: 1.6; }
.form__privacy a { color: var(--accent); border-bottom: 1px solid var(--accent-soft); }
.form__privacy a:hover { border-color: var(--accent); }
.form__error {
  display: none; font-size: .9rem; color: var(--accent); font-weight: 500;
  padding: .9rem 1.1rem; border-radius: var(--radius-sm);
  background: var(--accent-soft); border: 1px solid rgba(140,26,46,0.2);
}
.form__error a { color: var(--accent); text-decoration: underline; }
.form__success {
  display: none; padding: 2.2rem; text-align: center;
  background: rgba(255,255,255,0.7); border: 1.5px solid rgba(140,26,46,0.2); border-radius: var(--radius);
}
.form__success.visible { display: block; }
.form__success-icon {
  width: 56px; height: 56px; margin: 0 auto 1rem; border-radius: 50%;
  background: var(--grad-brand); display: grid; place-items: center; color: #fff; box-shadow: var(--shadow-accent);
}
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* --------------------------------------------------------------------------
   Calendly scheduling panel
   -------------------------------------------------------------------------- */
.cal-panel {
  background: var(--glass); border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.2); backdrop-filter: blur(var(--glass-blur)) saturate(1.2);
  border-radius: var(--radius-lg); padding: clamp(1.5rem, 3.5vw, 2.4rem); box-shadow: var(--shadow-md);
}
.cal-panel__head { margin-bottom: 1.5rem; }
.cal-panel__title { margin: .55rem 0 .8rem; }
.cal-panel__intro { max-width: 48ch; }
.cal-meta { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.3rem 0 0; padding-left: 0; list-style: none; }
.cal-meta__item {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-display); font-size: .82rem; font-weight: 500; color: var(--text-soft);
  padding: .5rem .9rem; border-radius: 100px;
  background: rgba(26,18,16,0.04); border: 1px solid var(--border-soft);
}
.cal-meta__item svg { color: var(--accent); flex-shrink: 0; }
.cal-embed {
  width: 100%; min-width: 0; height: 760px;
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border-soft);
  background: var(--cream);
}
@media (max-width: 760px) { .cal-embed { height: 940px; } }

/* --------------------------------------------------------------------------
   Prose (privacy)
   -------------------------------------------------------------------------- */
.prose-grid { display: grid; grid-template-columns: 250px 1fr; gap: clamp(2rem, 4vw, 4rem); align-items: start; }
.prose-nav {
  position: sticky; top: calc(var(--nav-h) + 1.5rem); display: flex; flex-direction: column; gap: .4rem;
  padding: 1rem; border-radius: var(--radius); background: var(--glass); border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.prose-nav a {
  font-family: var(--font-display); font-size: .9rem; font-weight: 500; color: var(--text-soft);
  padding: .6rem .8rem; border-radius: var(--radius-sm); transition: background var(--d1), color var(--d1);
}
.prose-nav a:hover { color: var(--accent); background: var(--accent-soft); }
.prose { max-width: 720px; }
.prose h2 {
  font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; letter-spacing: -0.02em;
  margin: 2.8rem 0 1rem; scroll-margin-top: calc(var(--nav-h) + 1.5rem);
}
.prose h2:first-of-type { margin-top: 0; }
.prose h3 { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; margin: 1.8rem 0 .7rem; }
.prose p { font-size: 1rem; color: var(--text-soft); line-height: 1.8; margin-bottom: 1rem; }
.prose ul { list-style: none; margin-bottom: 1rem; display: flex; flex-direction: column; gap: .5rem; }
.prose ul li { position: relative; padding-left: 1.6rem; font-size: 1rem; color: var(--text-soft); line-height: 1.7; }
.prose ul li::before { content: ''; position: absolute; left: 0; top: .65em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.prose strong { color: var(--text); font-weight: 600; }
.prose a { color: var(--accent); border-bottom: 1px solid var(--accent-soft); }
.prose a:hover { border-color: var(--accent); }
.prose .updated {
  display: inline-block; font-family: var(--font-display); font-size: .76rem; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent); background: var(--accent-soft);
  padding: .4rem .8rem; border-radius: var(--pill); margin-bottom: 1.6rem;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer { background: var(--ink); color: var(--cream); margin-top: clamp(3rem, 6vw, 5rem); }
.footer__signoff { padding-top: clamp(3.5rem, 8vw, 6rem); padding-bottom: clamp(2.5rem, 5vw, 4rem); border-bottom: 1px solid var(--on-ink-border); }
.footer__signoff-link {
  display: inline-flex; align-items: center; gap: 1.2rem;
  font-family: var(--font-display); font-weight: 700; font-size: clamp(2.2rem, 7vw, 5.2rem);
  color: var(--cream); letter-spacing: -0.03em; line-height: 1;
  transition: gap var(--d2) var(--ease), color var(--d2);
  will-change: transform;
}
.footer__signoff-link:hover { color: var(--accent-2); gap: 2rem; }
.footer__signoff-link svg { width: clamp(30px, 6vw, 60px); height: clamp(30px, 6vw, 60px); flex-shrink: 0; transition: transform var(--d2) var(--ease); }
.footer__signoff-link:hover svg { transform: translateX(8px) rotate(-45deg); }

.footer__cols { padding-top: clamp(2.5rem, 5vw, 4rem); padding-bottom: clamp(2.5rem, 5vw, 4rem); display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); }
.footer__brand { display: flex; align-items: center; gap: .65rem; margin-bottom: 1.1rem; }
.footer__brand .brand__word { color: var(--cream); }
.footer__desc { font-size: .92rem; color: rgba(247,243,238,0.55); line-height: 1.7; max-width: 28ch; margin-bottom: 1.5rem; }
.footer__social { display: flex; gap: .6rem; }
.footer__social a {
  width: 44px; height: 44px; border: 1px solid var(--on-ink-border); border-radius: 12px;
  display: grid; place-items: center; color: rgba(247,243,238,0.7); transition: all var(--d2) var(--ease);
}
.footer__social a:hover { border-color: var(--accent-2); color: var(--cream); background: rgba(140,26,46,0.25); transform: translateY(-3px); }
.footer__col-title { font-family: var(--font-display); font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 1.2rem; }
.footer__links { display: flex; flex-direction: column; gap: .8rem; }
.footer__links a, .footer__links span { font-size: .95rem; color: rgba(247,243,238,0.6); transition: color var(--d1); }
.footer__links a:hover { color: var(--cream); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; padding-top: 1.5rem; padding-bottom: 1.5rem; border-top: 1px solid var(--on-ink-border); }
.footer__copy { font-size: .82rem; color: rgba(247,243,238,0.4); }
.footer__legal { display: flex; gap: 1.5rem; }
.footer__legal a { font-size: .82rem; color: rgba(247,243,238,0.4); transition: color var(--d1); }
.footer__legal a:hover { color: rgba(247,243,238,0.8); }

/* --------------------------------------------------------------------------
   Reveal animations
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
  .reveal.visible { opacity: 1; transform: translateY(0); }
  .r1 { transition-delay: 80ms; } .r2 { transition-delay: 160ms; } .r3 { transition-delay: 240ms; } .r4 { transition-delay: 320ms; }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .hero__bento, .bento-grid { grid-template-columns: repeat(6, 1fr); }
  .hero__bento .b-stat-1, .hero__bento .b-stat-2, .hero__bento .b-stat-3 { grid-column: span 2; }
  .bento-grid .cell, .bento-grid .cell--wide, .bento-grid .cell--8 { grid-column: span 3; }
  .bento-grid .cell--full { grid-column: span 6; }
  .section-head, .page-hero__grid, .cta__inner, .split, .contact-grid, .prose-grid { grid-template-columns: 1fr; }
  .split--reverse { direction: ltr; }
  .steps--5 { grid-template-columns: repeat(2, 1fr); }
  .statstrip { grid-template-columns: repeat(2, 1fr); }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .footer__cols > *:first-child { grid-column: 1 / -1; }
  .prose-nav { display: none; }
  .cta__inner { gap: 2rem; }
  .cta__actions { flex-direction: row; flex-wrap: wrap; }
}

@media (max-width: 760px) {
  .topnav, .topbar__right .btn-primary { display: none; }
  .menu-toggle { display: flex; }
  .mobile-menu { display: flex; }
  .duo { grid-template-columns: 1fr; }
  .steps--3 { grid-template-columns: 1fr; }
  .hero__bento, .bento-grid { grid-template-columns: 1fr 1fr; }
  .hero__bento .b-stat-1, .hero__bento .b-stat-2, .hero__bento .b-stat-3 { grid-column: span 1; }
  .bento-grid .cell, .bento-grid .cell--wide, .bento-grid .cell--8, .bento-grid .cell--full { grid-column: span 2; }
}

@media (max-width: 540px) {
  .form__row { grid-template-columns: 1fr; }
  .statstrip { grid-template-columns: 1fr; }
  .steps--5 { grid-template-columns: 1fr; }
  .hero__bento, .bento-grid { grid-template-columns: 1fr; }
  .bento-grid .cell, .bento-grid .cell--wide, .bento-grid .cell--8, .bento-grid .cell--full,
  .hero__bento .b-stat-1, .hero__bento .b-stat-2, .hero__bento .b-stat-3 { grid-column: span 1; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; }
  .footer__cols { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; text-align: left; }
}

/* --------------------------------------------------------------------------
   Reduced motion: cut all non-essential movement
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .aurora__blob, .ticker__track, .showcase__aura, .cta__glow { animation: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .rotator { height: auto; }
  .rotator__word { position: static; opacity: 1; transform: none; }
  .rotator__word:not(.is-active) { display: none; }
}
