/* =========================================================================
   Alford AI - styles.css
   Drawn from the business card: warm off-white ground, one deep navy,
   one bright blue, a geometric-caps wordmark (Jost) over a humanist body
   (Manrope), and thin swept line-art in the corners.
   One radius system: pill for interactive, 16px containers, 10px inputs.
   ========================================================================= */

/* ---------- Fonts (self-hosted, latin subset) ---------- */
@font-face {
  font-family: "Jost";
  src: url("../fonts/jost-latin-var.woff2") format("woff2");
  font-weight: 300 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-latin-var.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens: light (base) ---------- */
:root {
  color-scheme: light;

  --bg: #faf8f2;
  --surface: #ffffff;
  --sunken: #f2efe6;
  --field: #ffffff;

  --ink: #0f2949;          /* card navy */
  --ink-2: #40506a;
  --muted: #5b6a80;

  --hairline: rgba(15, 41, 73, 0.14);
  --hairline-soft: rgba(15, 41, 73, 0.08);
  --field-border: #7a8598;   /* >= 3:1 on white (WCAG 1.4.11) */

  --accent: #1268ef;         /* card blue */
  --accent-ink: #0f57c9;     /* links / small text on the ground (>= 4.5:1) */
  --accent-wash: rgba(18, 104, 239, 0.10);

  --btn: #0f2949;
  --btn-text: #faf8f2;

  --panel: #0f2949;
  --panel-ink: #eef2f8;

  --arc-ink: rgba(15, 41, 73, 0.72);
  --arc-accent: rgba(18, 104, 239, 0.78);

  --shadow-sm: 0 1px 2px rgba(15, 41, 73, 0.05);
  --shadow-md: 0 2px 6px rgba(15, 41, 73, 0.05), 0 16px 40px -20px rgba(15, 41, 73, 0.24);
  --shadow-lg: 0 2px 8px rgba(15, 41, 73, 0.06), 0 36px 72px -32px rgba(15, 41, 73, 0.30);

  /* cards */
  --card-top: #ffffff;
  --card-bot: #fdfbf6;
  --card-hi: rgba(255, 255, 255, 0.7);
  --card-shadow: 0 1px 2px rgba(15, 41, 73, 0.04), 0 12px 28px -14px rgba(15, 41, 73, 0.16);
  --card-shadow-hover: 0 2px 5px rgba(15, 41, 73, 0.05), 0 26px 50px -18px rgba(15, 41, 73, 0.24);

  --r-lg: 18px;
  --r-md: 13px;
  --r-sm: 10px;
  --r-pill: 999px;

  --wrap: 1180px;
  --gutter: clamp(1.25rem, 0.6rem + 3vw, 2.5rem);
  --section-y: clamp(3.75rem, 2.5rem + 5.5vw, 6.5rem);

  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --nav-h: 68px;

  --font-display: "Jost", "Futura", "Century Gothic", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- Tokens: dark ---------- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0b1626;
    --surface: #111f33;
    --sunken: #0d1b2c;
    --field: #101f31;
    --ink: #eef1f6;
    --ink-2: #b4bfce;
    --muted: #8a95a6;
    --hairline: rgba(255, 255, 255, 0.12);
    --hairline-soft: rgba(255, 255, 255, 0.07);
    --field-border: #64707f;
    --accent: #4f92ff;
    --accent-ink: #86b3ff;
    --accent-wash: rgba(79, 146, 255, 0.15);
    --btn: #2b6ff0;
    --btn-text: #ffffff;
    --panel: #101f33;
    --panel-ink: #eef2f8;
    --arc-ink: rgba(180, 191, 206, 0.35);
    --arc-accent: rgba(79, 146, 255, 0.55);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.4), 0 24px 50px -22px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 2px 10px rgba(0, 0, 0, 0.45), 0 48px 90px -36px rgba(0, 0, 0, 0.7);
    --card-top: #14243d;
    --card-bot: #0f1d31;
    --card-hi: rgba(255, 255, 255, 0.055);
    --card-shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 14px 30px -16px rgba(0, 0, 0, 0.55);
    --card-shadow-hover: 0 2px 6px rgba(0, 0, 0, 0.4), 0 28px 54px -20px rgba(0, 0, 0, 0.65);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b1626;
  --surface: #111f33;
  --sunken: #0d1b2c;
  --field: #101f31;
  --ink: #eef1f6;
  --ink-2: #b4bfce;
  --muted: #8a95a6;
  --hairline: rgba(255, 255, 255, 0.12);
  --hairline-soft: rgba(255, 255, 255, 0.07);
  --field-border: #64707f;
  --accent: #4f92ff;
  --accent-ink: #86b3ff;
  --accent-wash: rgba(79, 146, 255, 0.15);
  --btn: #2b6ff0;
  --btn-text: #ffffff;
  --panel: #101f33;
  --panel-ink: #eef2f8;
  --arc-ink: rgba(180, 191, 206, 0.35);
  --arc-accent: rgba(79, 146, 255, 0.55);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.4), 0 24px 50px -22px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 2px 10px rgba(0, 0, 0, 0.45), 0 48px 90px -36px rgba(0, 0, 0, 0.7);
  --card-top: #14243d;
  --card-bot: #0f1d31;
  --card-hi: rgba(255, 255, 255, 0.055);
  --card-shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 14px 30px -16px rgba(0, 0, 0, 0.55);
  --card-shadow-hover: 0 2px 6px rgba(0, 0, 0, 0.4), 0 28px 54px -20px rgba(0, 0, 0, 0.65);
}
:root[data-theme="light"] { color-scheme: light; }

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  font-weight: 450;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--accent-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
:where(h1, h2, h3, h4) {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.005em;
  text-wrap: balance;
}
::selection { background: var(--accent); color: #fff; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* faint paper grain, like the printed card stock */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 140px 140px;
}
:root[data-theme="dark"] body::after,
:root:not([data-theme="light"]) body::after { opacity: 0.045; }

/* ---------- Focus ---------- */
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* anchor targets clear the sticky header */
:where(section[id], [id]) { scroll-margin-top: calc(var(--nav-h) + 1.25rem); }

/* ---------- Helpers ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--btn); color: var(--btn-text);
  padding: 10px 16px; border-radius: var(--r-sm); text-decoration: none;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 12px; }

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}
.section-title { font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3rem); max-width: 20ch; }

/* ---------- Decorative arcs (from the card) ---------- */
.arc-deco {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  width: clamp(240px, 30vw, 440px);
  aspect-ratio: 1;
  overflow: hidden;
}
.arc-deco circle {
  fill: none;
  vector-effect: non-scaling-stroke;
  transform-box: view-box;
  transform-origin: 330px -30px;
  transform: rotate(94deg);
}
.arc-deco .a-ink { stroke: var(--arc-ink); }
.arc-deco .a-accent { stroke: var(--arc-accent); }
.arc-deco .a-faint { stroke: var(--arc-ink); opacity: 0.4; }
.arc-deco--tr { top: 0; right: 0; }
.arc-deco--br { bottom: 0; right: 0; transform: rotate(180deg); }
.arc-deco--bl { bottom: 0; left: 0; transform: scaleX(-1); }
.arc-deco--tl { top: 0; left: 0; transform: rotate(-90deg); }
.arc-deco--sm { width: clamp(180px, 22vw, 320px); }

@media (prefers-reduced-motion: no-preference) {
  .js .arc-deco { opacity: 0; transition: opacity 0.5s var(--ease); }
  .js .arc-deco.is-in { opacity: 1; }
  .js .arc-deco circle {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    transition: stroke-dashoffset 1.7s var(--ease);
  }
  .js .arc-deco.is-in circle { stroke-dashoffset: 72; }
  .js .arc-deco.is-in .a-accent { transition-delay: 0.16s; }
  .js .arc-deco.is-in .a-faint { transition-delay: 0.32s; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.85rem 1.4rem;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  font-weight: 650; font-size: 0.97rem; letter-spacing: -0.005em;
  text-decoration: none; cursor: pointer;
  transition: transform 0.35s var(--ease), background-color 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.btn:active { transform: translateY(1px) scale(0.985); }
.btn-primary { background: var(--btn); color: var(--btn-text); box-shadow: var(--shadow-sm); }
.btn-primary:hover { box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--hairline); }
.btn-ghost:hover { border-color: var(--ink); background: var(--accent-wash); }
.btn-icon {
  display: inline-grid; place-items: center;
  width: 1.5rem; height: 1.5rem; border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.16);
  transition: transform 0.35s var(--ease);
}
.btn-primary .btn-icon svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 2.1; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.btn:hover .btn-icon { transform: translateX(3px); }

/* ---------- Header ---------- */
/* Deliberately NOT extending into the notch/status-bar area: iOS Safari
   showed stale scrolled-past content ghosting into that strip under every
   variant tried (padding on the header, a fixed filler, a stacked sticky
   filler) — a real WebKit sticky-repaint bug, not something fixable from
   here. Plain sticky header, starting below the status bar, has none of
   that; it's the reliable option even though it leaves that strip unfilled. */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}
.site-header[data-scrolled] { border-bottom-color: var(--hairline-soft); }
.header-inner { display: flex; align-items: center; gap: 1.25rem; height: var(--nav-h); }
.header-section-label {
  display: none;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--ink-2);
}
.brand { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.brand-mark { width: 1.75rem; display: block; }
.brand-mark svg { width: 100%; height: auto; display: block; overflow: visible; }
.mk-ink { fill: var(--ink); stroke: var(--ink); }
.mk-accent { fill: var(--accent); stroke: var(--accent); }
.brand-word {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 500;
  font-size: 0.86rem;
  color: var(--ink);
  white-space: nowrap;
}

.primary-nav { margin-inline-start: auto; }
.nav-list { display: flex; gap: 0.35rem; list-style: none; padding: 0; }
.nav-list a {
  position: relative;
  display: inline-block; padding: 0.5rem 0.35rem; margin-inline: 0.5rem;
  color: var(--ink-2); text-decoration: none; font-weight: 550; font-size: 0.93rem;
  transition: color 0.2s var(--ease);
}
.nav-list a::after {
  content: ""; position: absolute; left: 0.35rem; right: 0.35rem; bottom: 0.22rem;
  height: 2px; border-radius: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
}
@media (prefers-reduced-motion: no-preference) {
  .nav-list a::after { transition: transform 0.3s var(--ease); }
}
.nav-list a:hover { color: var(--ink); }
.nav-list a:hover::after,
.nav-list a:focus-visible::after,
.nav-list a.is-active::after { transform: scaleX(1); }
.nav-list a.is-active { color: var(--ink); }

/* footer nav links get the same underline */
.footer-nav a { position: relative; display: inline-block; }
.footer-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1.5px; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
}
@media (prefers-reduced-motion: no-preference) {
  .footer-nav a::after { transition: transform 0.3s var(--ease); }
}
.footer-nav a:hover::after, .footer-nav a:focus-visible::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 0.6rem; flex-shrink: 0; }

.theme-toggle {
  display: inline-flex; align-items: center;
  background: transparent; border: 1px solid var(--hairline);
  border-radius: var(--r-pill); padding: 4px; cursor: pointer;
  transition: border-color 0.2s var(--ease);
}
.theme-toggle:hover { border-color: var(--ink); }
.theme-toggle [data-theme-label] {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.theme-toggle-track { position: relative; width: 1.6rem; height: 1.6rem; display: grid; place-items: center; }
.theme-toggle-track svg {
  grid-area: 1 / 1; width: 17px; height: 17px;
  stroke: var(--ink-2); stroke-width: 1.8; fill: none;
  stroke-linecap: round; stroke-linejoin: round;
  transition: opacity 0.3s var(--ease), transform 0.4s var(--ease);
}
.icon-moon { opacity: 0; transform: rotate(-40deg) scale(0.7); }
.icon-sun { opacity: 1; }
:root[data-theme="dark"] .icon-sun,
:root:not([data-theme="light"]) .icon-sun { opacity: 0; transform: rotate(40deg) scale(0.7); }
:root[data-theme="dark"] .icon-moon,
:root:not([data-theme="light"]) .icon-moon { opacity: 1; transform: none; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .icon-sun { opacity: 1; transform: none; }
  :root:not([data-theme="dark"]) .icon-moon { opacity: 0; transform: rotate(-40deg) scale(0.7); }
}

.menu-toggle { display: none; }

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: var(--nav-h) 0 0 0; z-index: 45;
  background: var(--bg);
  padding: 2rem var(--gutter) 3rem;
  display: flex; flex-direction: column; gap: 1.5rem; overflow-y: auto;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu nav ul { list-style: none; padding: 0; display: flex; flex-direction: column; }
.mobile-menu nav a {
  display: block; padding: 1rem 0;
  border-bottom: 1px solid var(--hairline-soft);
  color: var(--ink); text-decoration: none;
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 500; letter-spacing: 0.01em;
}
.mobile-menu .btn { align-self: flex-start; }
.mobile-menu-meta { display: flex; flex-direction: column; gap: 0.4rem; color: var(--muted); }
.mobile-menu-meta a { color: var(--ink-2); text-decoration: none; }

body.menu-open { overflow: hidden; }
.menu-open .menu-toggle-bars span:first-child { transform: translateY(3px) rotate(45deg); }
.menu-open .menu-toggle-bars span:last-child { transform: translateY(-3px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-top: clamp(2.5rem, 1rem + 5vw, 5rem); padding-bottom: var(--section-y); }
.hero-grid {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 1rem + 5vw, 4.5rem);
  align-items: center;
}
.hero-copy { max-width: 40rem; }
.hero-copy .eyebrow { margin-bottom: 1.15rem; display: block; }
.hero h1 {
  font-size: clamp(2.35rem, 1.6rem + 3vw, 3.6rem);
  font-weight: 500;
  margin-bottom: 1.25rem;
  max-width: 24ch;
}
.hero-lead {
  font-size: clamp(1.05rem, 0.98rem + 0.5vw, 1.28rem);
  color: var(--ink-2); max-width: 30rem; margin-bottom: 2rem;
}
.hero-cta-row { display: flex; flex-wrap: wrap; gap: 0.85rem; }
.hero-visual {
  position: relative; justify-self: center;
  width: min(100%, 22rem); aspect-ratio: 1;
  display: grid; place-items: center;
  perspective: 640px;
}
.hero-tilt {
  display: grid; place-items: center;
  width: 74%;
  transform-style: preserve-3d;
  will-change: transform;
}
@media (prefers-reduced-motion: no-preference) {
  .hero-tilt { transition: transform 0.5s var(--ease); }
}
.hero-mark { width: 100%; height: auto; }
@media (prefers-reduced-motion: no-preference) {
  .hero-mark { animation: mark-float 9s ease-in-out infinite; animation-delay: 1.4s; }
}
@keyframes mark-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* hero load choreography */
@media (prefers-reduced-motion: no-preference) {
  .js .hero .hero-copy .reveal { animation: hero-rise 0.75s var(--ease) both; }
  .js .hero .hero-copy .eyebrow.reveal { animation-delay: 0.12s; }
  .js .hero .hero-copy h1.reveal { animation-delay: 0.26s; }
  .js .hero .hero-copy .hero-lead.reveal { animation-delay: 0.46s; }
  .js .hero .hero-copy .hero-cta-row.reveal { animation-delay: 0.62s; }
  .js .hero-visual.reveal { animation: hero-mark-in 1s var(--ease) both; animation-delay: 0.4s; }
}
@keyframes hero-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
@keyframes hero-mark-in {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: none; }
}

/* ---------- Positioning ---------- */
.positioning { position: relative; overflow: hidden; padding-block: var(--section-y); border-top: 1px solid var(--hairline-soft); }
.positioning > .wrap { position: relative; z-index: 1; }
.positioning-head { display: grid; gap: 1.1rem; max-width: 52rem; margin-bottom: clamp(2.5rem, 1.5rem + 4vw, 4rem); }
.positioning-head h2 { font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3rem); }
.positioning-head p { font-size: 1.12rem; color: var(--ink-2); max-width: 46ch; }
.principles { list-style: none; padding: 0; display: grid; gap: 0; }
.principles li {
  padding: 1.4rem 0; border-top: 1px solid var(--hairline);
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 0.95rem + 0.7vw, 1.45rem);
  font-weight: 400; letter-spacing: 0.005em; max-width: 44ch;
}
.principles li:last-child { border-bottom: 1px solid var(--hairline); }

/* ---------- Services / bento ---------- */
.services { padding-block: var(--section-y); }
.section-title { margin-bottom: clamp(2rem, 1.2rem + 3vw, 3.5rem); }

.services-group + .services-group { margin-top: clamp(2.75rem, 1.75rem + 3vw, 4.25rem); }
.services-group-title {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1rem + 0.55vw, 1.45rem);
  font-weight: 500;
  color: var(--ink);
  padding-top: 1.25rem;
  margin-bottom: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  border-top: 1px solid var(--hairline);
}

.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(0.9rem, 0.5rem + 1.5vw, 1.4rem); }
.bento-cell {
  position: relative;
  overflow: hidden;
  background: linear-gradient(176deg, var(--card-top), var(--card-bot));
  border: 1px solid var(--hairline-soft);
  border-radius: var(--r-lg);
  padding: clamp(1.65rem, 1.15rem + 2vw, 2.45rem);
  box-shadow: inset 0 1px 0 var(--card-hi), var(--card-shadow);
  transition:
    transform 0.5s cubic-bezier(0.32, 0.72, 0, 1),
    box-shadow 0.5s cubic-bezier(0.32, 0.72, 0, 1),
    border-color 0.3s var(--ease);
}
.bento-cell:hover {
  transform: translateY(-5px);
  border-color: var(--hairline);
  border-color: color-mix(in srgb, var(--accent) 26%, var(--hairline));
  box-shadow: inset 0 1px 0 var(--card-hi), var(--card-shadow-hover);
}
.bento-cell--wide { grid-column: span 2; }
.bento-cell > h4, .bento-cell > p, .bento-feature-body { position: relative; z-index: 1; }
.bento-cell h4 {
  font-size: 1.22rem; font-weight: 500;
  padding-bottom: 0.9rem; margin-bottom: 0.9rem;
  border-bottom: 1px solid var(--hairline-soft);
}
.bento-cell p { color: var(--muted); max-width: 40ch; }

/* corner line-work on the wide cards, in their open space */
.cell-arc {
  position: absolute; z-index: 0; pointer-events: none;
  width: clamp(120px, 20%, 190px); aspect-ratio: 1;
  overflow: hidden; opacity: 0.42;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.bento-cell:hover .cell-arc { opacity: 0.7; }
.cell-arc circle { fill: none; stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.cell-arc .a-ink { stroke: var(--arc-ink); }
.cell-arc .a-accent { stroke: var(--arc-accent); }
.cell-arc--tr { top: 0; right: 0; }
.cell-arc--br { bottom: 0; right: 0; transform: rotate(180deg); }
.bento-cell:hover .cell-arc--br { transform: rotate(180deg) scale(1.06); }
.bento-cell:hover .cell-arc--tr { transform: scale(1.06); }
@media (prefers-reduced-motion: no-preference) {
  .cell-arc circle {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    transition: stroke-dashoffset 1.7s var(--ease);
  }
  .cell-arc.is-in circle { stroke-dashoffset: 72; }
  .cell-arc.is-in .a-accent { transition-delay: 0.16s; }
}
.bento-feature {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(1.5rem, 1rem + 3vw, 3.5rem);
  align-items: center;
  position: relative; overflow: hidden;
}
.bento-feature-media {
  position: relative; align-self: stretch; min-height: 210px;
  background:
    radial-gradient(130% 100% at 18% 12%, var(--accent-wash), transparent 62%),
    #eceff4;
  border-radius: var(--r-md);
  overflow: hidden;
}
:root[data-theme="dark"] .bento-feature-media,
:root:not([data-theme="light"]) .bento-feature-media {
  background:
    radial-gradient(130% 100% at 18% 12%, var(--accent-wash), transparent 62%),
    #0e1c30;
}
.bento-feature-media .brand-mark {
  position: absolute;
  width: 62%; height: auto;
  left: -6%; bottom: -14%;
  opacity: 0.9;
}
.bento-feature-body h4 {
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.85rem);
  padding-bottom: 1rem; margin-bottom: 1rem;
}
.bento-feature-body p { color: var(--muted); max-width: 44ch; }

/* ---------- Approach ---------- */
.approach { padding-block: var(--section-y); border-top: 1px solid var(--hairline-soft); }
.phases { list-style: none; padding: 0; counter-reset: phase; display: grid; gap: 0; }
.phase {
  display: grid; grid-template-columns: minmax(0, 3.5rem) minmax(0, 46rem);
  gap: clamp(1rem, 0.5rem + 3vw, 3.5rem);
  padding: clamp(1.7rem, 1.2rem + 1.8vw, 2.6rem) 0;
  border-top: 1px solid var(--hairline);
}
.phase:last-child { border-bottom: 1px solid var(--hairline); }
.phase::before {
  counter-increment: phase;
  content: counter(phase, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 0.9rem; letter-spacing: 0.1em;
  color: var(--accent); padding-top: 0.55rem;
}
.phase h3 { font-size: clamp(1.4rem, 1.15rem + 1.3vw, 2rem); margin-bottom: 0.55rem; }
.phase p { color: var(--ink-2); max-width: 54ch; }

/* ---------- Founder ---------- */
.founder { position: relative; overflow: hidden; padding-block: var(--section-y); }
.founder-grid { position: relative; z-index: 1; }
.founder-grid {
  display: grid; grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(2rem, 1rem + 5vw, 4.5rem); align-items: center;
}
.founder-copy { max-width: 38rem; }
.founder-copy .section-title { margin-bottom: 1.5rem; }
.founder-copy p { color: var(--ink-2); margin-bottom: 1.1rem; }
.founder-quote { margin: 1.75rem 0 1.4rem; }
.founder-quote blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 1rem + 0.8vw, 1.5rem);
  font-weight: 400;
  line-height: 1.4;
  color: var(--ink);
  text-wrap: balance;
}
.founder-quote figcaption {
  margin-top: 0.85rem;
  font: 500 0.78rem/1 var(--font-display);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.founder-links { display: flex; flex-wrap: wrap; gap: 1.25rem 2rem; margin-top: 1.75rem; }
.link-arrow {
  display: inline-flex; align-items: center; gap: 0.4rem;
  color: var(--ink); text-decoration: none; font-weight: 600;
  border-bottom: 1px solid var(--accent); padding-bottom: 2px;
}
.link-arrow svg { width: 15px; height: 15px; stroke: var(--accent); stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.link-arrow:hover { color: var(--accent-ink); }
.founder-portrait { justify-self: start; width: 100%; max-width: 20rem; }
.founder-portrait picture {
  display: block;
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.founder-portrait img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

/* ---------- Contact ---------- */
.contact { position: relative; overflow: hidden; padding-block: var(--section-y); border-top: 1px solid var(--hairline-soft); }
.contact > .wrap { position: relative; z-index: 1; }
.contact-head { max-width: 40rem; margin-bottom: clamp(2rem, 1.2rem + 3vw, 3.5rem); }
.contact-head .section-title { margin-bottom: 1.1rem; }
.contact-head p { color: var(--ink-2); font-size: 1.12rem; }

.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(0.9rem, 0.5rem + 1.5vw, 1.4rem); }
.contact-card {
  display: flex; align-items: flex-start; gap: 1rem;
  background: linear-gradient(176deg, var(--card-top), var(--card-bot));
  border: 1px solid var(--hairline-soft);
  border-radius: var(--r-lg);
  padding: clamp(1.4rem, 1.1rem + 1.2vw, 1.9rem);
  box-shadow: inset 0 1px 0 var(--card-hi), var(--card-shadow);
  color: var(--ink); text-decoration: none;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.3s var(--ease);
}
a.contact-card:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--accent) 26%, var(--hairline));
  box-shadow: inset 0 1px 0 var(--card-hi), var(--card-shadow-hover);
}
.contact-card-icon {
  display: inline-grid; place-items: center; flex-shrink: 0;
  width: 2.4rem; height: 2.4rem; border-radius: var(--r-pill);
  background: var(--accent-wash);
}
.contact-card-icon svg {
  width: 19px; height: 19px;
  stroke: var(--accent); stroke-width: 1.8; fill: none;
  stroke-linecap: round; stroke-linejoin: round;
}
.contact-card-text { display: grid; gap: 0.2rem; }
.contact-card-label {
  font-family: var(--font-display);
  font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted);
}
.contact-card-value { font-weight: 600; word-break: break-word; }

/* ---------- Footer ---------- */
.site-footer { position: relative; overflow: hidden; border-top: 1px solid var(--hairline); padding-block: clamp(3rem, 2rem + 4vw, 5rem) 2rem; }
.footer-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid var(--hairline-soft);
}
.footer-brand { display: grid; gap: 0.75rem; align-content: start; }
.footer-brand .brand { gap: 0.65rem; }
.footer-brand .brand-mark { width: 1.75rem; }
.footer-tagline { color: var(--muted); max-width: 34ch; font-size: 0.95rem; }
.footer-nav ul, .footer-contact { list-style: none; padding: 0; display: grid; gap: 0.6rem; align-content: start; }
.footer-nav a, .footer-contact a { color: var(--ink-2); text-decoration: none; font-size: 0.95rem; }
.footer-nav a:hover, .footer-contact a:hover { color: var(--ink); }
.footer-legal {
  position: relative; z-index: 1;
  display: flex; flex-wrap: wrap; justify-content: space-between;
  gap: 0.5rem 2rem; padding-top: 1.5rem; color: var(--muted); font-size: 0.85rem;
}

/* ---------- Reveal animation ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0; transform: translateY(18px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  }
  .js .reveal.is-in { opacity: 1; transform: none; }
  .js .principles li.reveal:nth-child(2),
  .js .bento .reveal:nth-child(3),
  .js .phases .reveal:nth-child(2),
  .js .hero-copy .reveal:nth-child(2),
  .js .founder-copy .reveal:nth-child(2),
  .js .contact-head .reveal:nth-child(2),
  .js .contact-cards .reveal:nth-child(2) { transition-delay: 0.08s; }
  .js .principles li.reveal:nth-child(3),
  .js .bento .reveal:nth-child(4),
  .js .phases .reveal:nth-child(3),
  .js .hero-copy .reveal:nth-child(3),
  .js .founder-copy .reveal:nth-child(3),
  .js .contact-cards .reveal:nth-child(3) { transition-delay: 0.16s; }
  .js .principles li.reveal:nth-child(4),
  .js .bento .reveal:nth-child(5),
  .js .phases .reveal:nth-child(4),
  .js .hero-copy .reveal:nth-child(4) { transition-delay: 0.24s; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1040px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { justify-self: start; margin-top: 1rem; width: min(80%, 18rem); }
  .bento { grid-template-columns: 1fr; }
  .bento-cell--wide { grid-column: auto; }
  .bento-cell--wide .cell-arc { width: 44%; }
  .bento-feature { grid-template-columns: 1fr; }
  .founder-grid { grid-template-columns: 1fr; }
  .founder-portrait { justify-self: start; order: 2; max-width: 18rem; }
  .contact-cards { grid-template-columns: 1fr; }
  .phase { grid-template-columns: 1fr; gap: 0.3rem; }
  .phase::before { padding-top: 0; }
  .arc-deco { width: clamp(160px, 32vw, 260px); }
}

@media (max-width: 900px) {
  /* no room for corner line-work beside full-width card text */
  .cell-arc { display: none; }
}
@media (max-width: 720px) {
  /* keep arcs only where they sit clear of text */
  .positioning > .arc-deco,
  .founder > .arc-deco { display: none; }
  .arc-deco { width: clamp(130px, 34vw, 190px); }
}

@media (max-width: 720px) {
  .primary-nav, .header-cta { display: none; }
  .header-section-label {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(-4px);
  }
  @media (prefers-reduced-motion: no-preference) {
    .header-section-label { transition: opacity 0.3s var(--ease), transform 0.3s var(--ease); }
  }
  .header-section-label.is-visible { opacity: 1; transform: none; }
  .menu-toggle {
    display: inline-grid; place-items: center;
    width: 2.4rem; height: 2.4rem;
    border: 1px solid var(--hairline); border-radius: var(--r-pill);
    background: transparent; cursor: pointer;
  }
  .menu-toggle-bars { display: grid; gap: 5px; width: 18px; }
  .menu-toggle-bars span { height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.35s var(--ease); }
  .header-actions { margin-inline-start: auto; }
  .brand-word { font-size: 0.8rem; letter-spacing: 0.16em; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
}

@media (min-width: 721px) { .mobile-menu { display: none !important; } }

/* ---------- Simple pages (404, privacy) ---------- */
.simple-page { padding-block: clamp(3.5rem, 2rem + 8vw, 7rem); }
.simple-page .eyebrow { margin-bottom: 1rem; display: block; }
.simple-page-lead { color: var(--ink-2); font-size: 1.12rem; max-width: 60ch; margin-bottom: 1.5rem; }
.prose { max-width: 68ch; }
.prose h2 { font-size: 1.3rem; margin-top: 2.25rem; margin-bottom: 0.5rem; }
.prose p { color: var(--ink-2); margin-bottom: 1rem; }
.prose .section-title { margin-bottom: 1.25rem; }
.prose .link-arrow { margin-top: 1.5rem; }

/* ---------- Print ---------- */
@media print {
  .site-header, .mobile-menu, .hero-visual, .arc-deco, .founder-portrait { display: none; }
  body { color: #000; background: #fff; }
}
