/* =============================================================================
   Chinye & Company, CPA, PA — Anthropic / Claude.com editorial system
   Warm cream canvas + coral accent + dark-navy product surfaces.
   Display: Cormorant Garamond (Copernicus/Tiempos sub) · Body: Inter (StyreneB sub)
   Data/code: JetBrains Mono. Color-block first, shadows rare.
   ========================================================================== */

/* ---- Tokens ------------------------------------------------------------- */
:root {
  /* Pin the rendering scheme + form-control accent so the OS/browser accent
     color never substitutes its own (fixes buttons showing the system color). */
  color-scheme: light only;
  accent-color: #2f6bd0;

  /* Brand / accent */
  --primary: #2f6bd0;
  --primary-active: #245bb0;
  --primary-disabled: #e6dfd8;
  --accent-teal: #5db8a6;
  --accent-amber: #e8a55a;

  /* Surfaces */
  --canvas: #faf9f5;
  --surface-soft: #f5f0e8;
  --surface-card: #efe9de;
  --surface-cream-strong: #e8e0d2;
  --surface-dark: #181715;
  --surface-dark-elevated: #252320;
  --surface-dark-soft: #1f1e1b;
  --hairline: #e6dfd8;
  --hairline-soft: #ebe6df;
  --hairline-dark: rgba(250, 249, 245, 0.1);

  /* Text */
  --ink: #141413;
  --body-strong: #252523;
  --body: #3d3d3a;
  --muted: #6c6a64;
  --muted-soft: #8e8b82;
  --on-primary: #ffffff;
  --on-dark: #faf9f5;
  --on-dark-soft: #a09d96;

  /* Semantic */
  --success: #5db872;
  --warning: #d4a017;
  --error: #c64545;
  --error-bg: #f7ecea;

  /* Type families */
  --font-display: "Cormorant Garamond", "EB Garamond", Garamond, "Times New Roman", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Type scale */
  --fs-display-xl: clamp(2.75rem, 1.9rem + 3.6vw, 4rem);
  --fs-display-lg: clamp(2.25rem, 1.7rem + 2.4vw, 3rem);
  --fs-display-md: clamp(1.85rem, 1.5rem + 1.6vw, 2.25rem);
  --fs-display-sm: clamp(1.55rem, 1.35rem + 0.9vw, 1.75rem);
  --fs-title-lg: 1.375rem;
  --fs-title-md: 1.125rem;
  --fs-title-sm: 1rem;
  --fs-body: 1rem;
  --fs-body-sm: 0.875rem;
  --fs-caption: 0.8125rem;
  --fs-caption-up: 0.75rem;
  --fs-code: 0.875rem;

  /* Spacing (4px base) */
  --sp-xxs: 4px;
  --sp-xs: 8px;
  --sp-sm: 12px;
  --sp-md: 16px;
  --sp-lg: 24px;
  --sp-xl: 32px;
  --sp-xxl: 48px;
  --sp-section: clamp(4rem, 2.5rem + 5vw, 6rem);

  /* Radii */
  --r-xs: 4px;
  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 16px;
  --r-pill: 9999px;

  /* Shadow (rare) */
  --shadow-soft: 0 1px 3px rgba(20, 20, 19, 0.08);
  --shadow-card: 0 1px 2px rgba(20, 20, 19, 0.05), 0 12px 28px -18px rgba(20, 20, 19, 0.22);

  /* z-index */
  --z-header: 200;
  --z-nav-overlay: 500;

  /* Motion */
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 0.18s;
  --dur: 0.3s;
  --dur-slow: 0.6s;

  /* Layout */
  --container: 1200px;
  --container-narrow: 760px;
  --gutter: clamp(1.15rem, 0.6rem + 2.5vw, 2.5rem);
  --header-h: 64px;

  /* Brand mark glyph (generic coral spark — NOT the Anthropic logo) */
  --spark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg stroke='%232f6bd0' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 2v20'/%3E%3Cpath d='M2 12h20'/%3E%3Cpath d='M4.9 4.9l14.2 14.2'/%3E%3Cpath d='M19.1 4.9L4.9 19.1'/%3E%3C/g%3E%3C/svg%3E");
}

/* ---- Reset / base ------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: rgba(47, 107, 208, 0.15); }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.55;
  color: var(--body);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 var(--sp-md);
  text-wrap: balance;
}
h1 { font-size: var(--fs-display-lg); }
h2 { font-size: var(--fs-display-md); }
h3 { font-size: var(--fs-display-sm); }

p { margin: 0 0 var(--sp-md); text-wrap: pretty; max-width: 68ch; }

a {
  color: #2f6bd0;
  text-decoration-color: rgba(47, 107, 208, 0.4);
  text-underline-offset: 3px;
  transition: color var(--dur-fast) var(--ease-out-quart);
}
a:hover { color: #245bb0; }

img { display: block; max-width: 100%; height: auto; }
ul, ol { margin: 0; padding: 0; }

:focus-visible {
  /* Solid rgba (not color-mix) so a parse failure can never fall back to the OS accent. */
  outline: 3px solid rgba(47, 107, 208, 0.55);
  outline-offset: 2px;
  border-radius: 3px;
}
:where(a, button, input, textarea, select):focus:not(:focus-visible) { outline: none; }
/* Pin text-selection to brand blue on every element — including form fields —
   so the OS/browser highlight color never shows through. */
::selection { background: rgba(47, 107, 208, 0.26); }
::-moz-selection { background: rgba(47, 107, 208, 0.26); }
input::selection, textarea::selection { background: rgba(47, 107, 208, 0.26); }
input::-moz-selection, textarea::-moz-selection { background: rgba(47, 107, 208, 0.26); }

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

.skip-link {
  position: absolute; left: 50%; top: 0; transform: translate(-50%, -140%);
  z-index: 600; background: var(--surface-dark); color: var(--on-dark);
  padding: 0.7rem 1.2rem; border-radius: 0 0 var(--r-md) var(--r-md);
  font-weight: 500; transition: transform var(--dur) var(--ease-out-expo);
}
.skip-link:focus { transform: translate(-50%, 0); color: var(--on-dark); }

/* ---- Layout helpers ----------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: var(--container-narrow); }

.section { padding-block: var(--sp-section); }
.section--tight { padding-block: clamp(2.5rem, 2rem + 2vw, 3.5rem); }
.section--soft, .section--paper2 { background: var(--surface-soft); }
.section--sky { background: #eaf4fb; }
.section--ink { background: var(--surface-dark); color: var(--on-dark); }
.section--ink h1, .section--ink h2, .section--ink h3 { color: var(--on-dark); }

.section-head { max-width: 60ch; margin-bottom: clamp(2rem, 1.4rem + 1.6vw, 3rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-lead { font-size: var(--fs-title-md); line-height: 1.55; color: var(--muted); margin-bottom: 0; }
.section--ink .section-lead { color: var(--on-dark-soft); }

/* Optional small kicker (unused by default; kept minimal) */
.kicker {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-mono); font-size: var(--fs-caption-up);
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
  margin-bottom: var(--sp-md);
}

/* ---- Brand mark --------------------------------------------------------- */
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; color: inherit; }
.brand__mark {
  flex: none; width: 24px; height: 24px;
  background: var(--spark) center / contain no-repeat;
  color: transparent; font-size: 0; border: 0; border-radius: 0;
}
.brand__logo { flex: none; height: 45px; width: auto; display: block; opacity: 0.8; }
.brand__text { display: inline-flex; flex-direction: column; }
.brand__name {
  font-family: var(--font-display); font-weight: 600; font-size: 1.25rem;
  line-height: 1; letter-spacing: -0.01em; color: var(--ink);
}
.brand__sub {
  font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--muted-soft); margin-top: 4px;
}

/* ---- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--font-sans); font-size: var(--fs-body-sm); font-weight: 500;
  line-height: 1; padding: 0.75rem 1.25rem; min-height: 44px;
  border: 1px solid transparent; border-radius: var(--r-md);
  cursor: pointer; text-decoration: none; white-space: nowrap;
  /* Never inherit the platform's button/accent appearance. */
  -webkit-appearance: none; appearance: none; forced-color-adjust: none;
  transition: background-color var(--dur-fast) var(--ease-out-quart),
    border-color var(--dur-fast) var(--ease-out-quart),
    color var(--dur-fast) var(--ease-out-quart);
}
.btn--primary { background: #2f6bd0; color: var(--on-primary); }
.btn--primary:hover { background: #245bb0; color: var(--on-primary); }

.btn--ghost { background: var(--canvas); color: var(--ink); border-color: var(--hairline); }
.btn--ghost:hover { background: var(--surface-card); color: var(--ink); border-color: var(--muted-soft); }

/* On dark surfaces */
.on-dark .btn--ghost, .section--ink .btn--ghost {
  background: var(--surface-dark-elevated); color: var(--on-dark); border-color: transparent;
}
.on-dark .btn--ghost:hover, .section--ink .btn--ghost:hover { background: #2f2c28; color: var(--on-dark); }

/* Cream button used on coral / dark surfaces */
.btn--onlight { background: var(--canvas); color: var(--ink); }
.btn--onlight:hover { background: #fff; color: var(--ink); }

.btn--lg { min-height: 48px; padding: 0.9rem 1.6rem; font-size: var(--fs-body); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-weight: 500; font-size: var(--fs-body-sm); color: #2f6bd0; text-decoration: none;
}
.link-arrow svg { transition: transform var(--dur-fast) var(--ease-out-quart); }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---- Header ------------------------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: var(--z-header);
  display: flex; align-items: center; min-height: var(--header-h);
  background: transparent;
  border-bottom: 1px solid transparent;
  /* Sits slightly lower while the page is at the top; slides up to hug the
     viewport edge as it docks on scroll. */
  top: clamp(0.75rem, 2.2vh, 1.5rem);
  transition: top var(--dur) var(--ease-out-quart), background-color var(--dur) var(--ease-out-quart), border-color var(--dur) var(--ease-out-quart), box-shadow var(--dur) var(--ease-out-quart);
}
.site-header.is-scrolled { top: 0; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-lg); width: 100%; }
/* Transparent at the top of the page; docks into the cream bar once you scroll. */
.site-header.is-scrolled {
  background: color-mix(in srgb, var(--canvas) 92%, transparent);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-bottom-color: var(--hairline); box-shadow: 0 1px 0 rgba(20, 20, 19, 0.02);
}
/* Over the dark home hero, keep the header content light until it docks. */
.site-header--on-hero:not(.is-scrolled) .brand__name { color: #fff; }
.site-header--on-hero:not(.is-scrolled) .brand__sub { color: rgba(255, 255, 255, 0.72); }
.site-header--on-hero:not(.is-scrolled) .nav__link { color: rgba(255, 255, 255, 0.82); }
.site-header--on-hero:not(.is-scrolled) .nav__link:hover,
.site-header--on-hero:not(.is-scrolled) .nav__link[aria-current="page"],
.site-header--on-hero:not(.is-scrolled) .nav__link.is-current { color: #fff; }
.site-header--on-hero:not(.is-scrolled) .nav-toggle { color: #fff; border-color: rgba(255, 255, 255, 0.4); }
/* The logo is ink; invert it to light while over the dark hero. */
.site-header--on-hero:not(.is-scrolled) .brand__logo { filter: brightness(0) invert(1); }
/* The home nav spans full width (aligned to the hero) at the top, then eases
   its links inward to the standard 1200px container as it docks. Both states
   drive position with padding-inline only (max-width stays none) so the shift
   can animate — max-width can't. The docked padding reproduces the centered
   1200px container exactly: (viewport − container)/2 + the usual gutter. */
.site-header--on-hero .container {
  max-width: none;
  padding-inline: max(var(--gutter), calc((100% - var(--container)) / 2 + var(--gutter)));
  transition: padding var(--dur) var(--ease-out-quart);
}
.site-header--on-hero:not(.is-scrolled) .container {
  padding-inline: clamp(1.5rem, 5.5vw, 6rem);
}

.nav { display: flex; align-items: center; gap: clamp(0.5rem, 0.2rem + 1.4vw, 1.75rem); }
.nav__list { display: flex; align-items: center; gap: clamp(0.25rem, 0.1rem + 0.9vw, 0.9rem); list-style: none; }
.nav__link {
  position: relative; display: inline-flex; align-items: center; min-height: 40px; padding: 0 0.5rem;
  font-size: var(--fs-body-sm); font-weight: 500; color: var(--muted); text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out-quart);
}
.nav__link:hover { color: var(--ink); }
.nav__link[aria-current="page"], .nav__link.is-current { color: var(--ink); }
.nav__link[aria-current="page"]::after, .nav__link.is-current::after {
  content: ""; position: absolute; left: 0.5rem; right: 0.5rem; bottom: 8px; height: 2px;
  background: #2f6bd0; border-radius: 2px;
}
.nav__cta { margin-left: 0.4rem; }

/* ---- Services dropdown (disclosure nav) ---------------------------------- */
.nav__item--dropdown { position: relative; }
.nav__dropdown-btn {
  -webkit-appearance: none; appearance: none; forced-color-adjust: none;
  background: transparent; border: 0; cursor: pointer; font: inherit;
  gap: 0.35rem;
}
.nav__dropdown-btn .chev { transition: transform var(--dur-fast) var(--ease-out-quart); }
.nav__dropdown-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.nav__dropdown {
  position: absolute; top: calc(100% + 2px); left: 50%; z-index: 5;
  min-width: 250px; padding: 0.4rem; margin: 0; list-style: none;
  background: var(--canvas); border: 1px solid var(--hairline); border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  opacity: 0; visibility: hidden; transform: translateX(-50%) translateY(4px);
  transition: opacity var(--dur-fast) var(--ease-out-quart), transform var(--dur-fast) var(--ease-out-quart), visibility var(--dur-fast);
}
.nav__item--dropdown.is-open .nav__dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.nav__dropdown-link {
  display: flex; align-items: center; min-height: 44px; padding: 0.55rem 0.8rem;
  border-radius: var(--r-sm); color: var(--body-strong); text-decoration: none;
  font-size: var(--fs-body-sm); font-weight: 500;
  transition: background-color var(--dur-fast) var(--ease-out-quart), color var(--dur-fast) var(--ease-out-quart);
}
.nav__dropdown-link:hover { background: #eaf4fb; color: var(--ink); }
.nav__dropdown-link[aria-current="page"] { background: #eaf4fb; color: #245bb0; }

.nav-toggle {
  display: none; flex: none; width: 44px; height: 44px; align-items: center; justify-content: center;
  -webkit-appearance: none; appearance: none; forced-color-adjust: none;
  background: transparent; border: 1px solid var(--hairline); border-radius: var(--r-md); cursor: pointer; color: var(--ink);
}
.nav-toggle__bars { position: relative; width: 20px; height: 14px; }
.nav-toggle__bars span { position: absolute; left: 0; width: 100%; height: 2px; background: currentColor; border-radius: 2px; }
.nav-toggle__bars span:nth-child(1) { top: 0; }
.nav-toggle__bars span:nth-child(2) { top: 6px; }
.nav-toggle__bars span:nth-child(3) { top: 12px; }

/* ---- Mobile nav (full-screen cream sheet) ------------------------------- */
.mobile-nav {
  position: fixed; inset: 0; z-index: var(--z-nav-overlay);
  display: grid; grid-template-rows: var(--header-h) 1fr;
  background: var(--canvas); color: var(--body);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity var(--dur) var(--ease-out-quart), transform var(--dur) var(--ease-out-expo), visibility var(--dur);
}
.mobile-nav.is-open { opacity: 1; visibility: visible; transform: none; }
.mobile-nav__head { display: flex; align-items: center; justify-content: space-between; padding-inline: var(--gutter); border-bottom: 1px solid var(--hairline); }
.mobile-nav__close {
  width: 44px; height: 44px; display: grid; place-items: center;
  -webkit-appearance: none; appearance: none; forced-color-adjust: none;
  background: transparent; border: 1px solid var(--hairline); border-radius: var(--r-md); color: var(--ink); cursor: pointer;
  font-size: 1.5rem; line-height: 1;
}
.mobile-nav__body { padding: var(--sp-lg) var(--gutter) var(--sp-xl); display: flex; flex-direction: column; overflow-y: auto; }
.mobile-nav__list { list-style: none; display: flex; flex-direction: column; }
.mobile-nav__link {
  display: block; padding: 1rem 0; border-bottom: 1px solid var(--hairline);
  font-family: var(--font-display); font-weight: 500; font-size: 1.85rem; letter-spacing: -0.01em;
  color: var(--ink); text-decoration: none;
}
.mobile-nav__link[aria-current="page"] { color: #2f6bd0; }
.mobile-nav__group { padding: 1rem 0; border-bottom: 1px solid var(--hairline); }
.mobile-nav__group-label {
  display: block; margin-bottom: 0.35rem;
  font-family: var(--font-mono); font-size: var(--fs-caption-up); font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-soft);
}
.mobile-nav__sublist { list-style: none; display: flex; flex-direction: column; }
.mobile-nav__sublink {
  display: flex; align-items: center; min-height: 44px; padding: 0.3rem 0 0.3rem 0.9rem;
  border-left: 2px solid var(--hairline);
  font-size: var(--fs-body); font-weight: 500; color: var(--body-strong); text-decoration: none;
}
.mobile-nav__sublink[aria-current="page"] { color: #2f6bd0; border-left-color: #2f6bd0; }
.mobile-nav__cta { margin-top: var(--sp-lg); }
.mobile-nav__contact { margin-top: var(--sp-xl); font-size: var(--fs-body-sm); color: var(--muted); line-height: 1.9; }
.mobile-nav__contact a { color: var(--body); }
body.nav-open { overflow: hidden; }

/* ---- Hero (full-screen image, edge-aligned content) --------------------- */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  display: flex;
  color: var(--on-dark);
  background: var(--surface-dark);
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__overlay {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(94deg, rgba(14,16,20,0.96) 0%, rgba(14,16,20,0.8) 40%, rgba(14,16,20,0.5) 100%),
    linear-gradient(0deg, rgba(14,16,20,0.9) 0%, rgba(14,16,20,0.28) 44%, rgba(14,16,20,0.34) 100%);
}
.hero__inner {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: clamp(2rem, 1.4rem + 3vw, 3.5rem);
  padding: calc(var(--header-h) + clamp(3rem, 2rem + 5vw, 6rem)) clamp(1.5rem, 5.5vw, 6rem) clamp(2.5rem, 1.8rem + 3vw, 4.5rem);
}
.hero__content { max-width: 32ch; }
.hero__content--wide { max-width: 62ch; }
.hero .hero__content--wide h1 { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.6rem); }
.hero .kicker { color: #9dc0f2; }
.hero h1 { color: #fff; font-size: var(--fs-display-xl); letter-spacing: -0.025em; margin-bottom: var(--sp-lg); }
.hero h1 .accent { color: #9dc0f2; }
.hero__tagline { font-size: var(--fs-title-md); line-height: 1.55; color: rgba(255, 255, 255, 0.92); max-width: 44ch; margin-bottom: var(--sp-lg); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--sp-sm); }
.hero .btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.5); }
.hero .btn--ghost:hover { background: rgba(255, 255, 255, 0.12); color: #fff; border-color: #fff; }
.hero__meta {
  display: flex; flex-wrap: wrap; gap: clamp(1.5rem, 1rem + 3vw, 3.5rem);
  padding-top: var(--sp-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  justify-content: flex-start;
}
.stat { min-width: 7rem; }
.stat__num {
  font-family: var(--font-mono); font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.4rem);
  font-weight: 500; font-variant-numeric: tabular-nums; color: #fff; line-height: 1; letter-spacing: -0.01em;
}
.stat__num .suffix { color: #9dc0f2; }
.stat__label { display: block; margin-top: 0.5rem; font-size: var(--fs-body-sm); color: rgba(255, 255, 255, 0.72); }

/* ---- Product mockup card (dark) ----------------------------------------- */
.mockup {
  background: var(--surface-dark); border-radius: var(--r-xl); overflow: hidden;
  color: var(--on-dark); box-shadow: var(--shadow-card); border: 1px solid var(--hairline-dark);
}
.mockup__bar { display: flex; align-items: center; gap: 0.5rem; padding: 0.85rem 1rem; border-bottom: 1px solid var(--hairline-dark); background: var(--surface-dark-soft); }
.mockup__dots { display: inline-flex; gap: 0.4rem; }
.mockup__dots span { width: 10px; height: 10px; border-radius: 50%; background: #3a3733; }
.mockup__title { font-family: var(--font-mono); font-size: var(--fs-caption); color: var(--on-dark-soft); margin-left: 0.4rem; }
.mockup__body { padding: var(--sp-lg); font-family: var(--font-mono); font-size: var(--fs-code); line-height: 1.7; }
.mockup__row { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: 0.4rem 0; border-bottom: 1px solid var(--hairline-dark); }
.mockup__row:last-child { border-bottom: 0; }
.mockup__k { color: var(--on-dark-soft); }
.mockup__v { color: var(--on-dark); }
.mockup__v.pos { color: var(--accent-teal); }
.mockup__v.coral { color: #2f6bd0; }
.mockup__tag {
  display: inline-flex; align-items: center; gap: 0.45rem; font-family: var(--font-mono);
  font-size: var(--fs-caption); color: var(--on-dark-soft);
}
.mockup__tag .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); }
.mockup__ln { color: var(--muted-soft); padding-right: 1rem; -webkit-user-select: none; user-select: none; }

/* Cream illustration card */
.artboard {
  background: var(--surface-card); border-radius: var(--r-xl); padding: clamp(0.75rem, 0.6rem + 0.7vw, 1.1rem);
  display: grid; place-items: center;
}
.artboard svg { width: 100%; height: auto; max-width: 460px; }
.artboard img { width: 100%; height: auto; border-radius: var(--r-lg); display: block; }
.artboard__cap { margin: 0.7rem 0 0.15rem; font-family: var(--font-mono); font-size: var(--fs-caption); color: var(--muted); text-align: center; }

/* Portrait card (founder — light card, no stock photo) */
.portrait {
  background: var(--surface-card); color: var(--body); border-radius: var(--r-xl);
  padding: clamp(1.75rem, 1.2rem + 2vw, 2.75rem); display: flex; flex-direction: column; gap: 1.5rem;
  min-height: 460px; justify-content: flex-start; border: 1px solid var(--hairline);
}
.portrait__mono {
  width: clamp(150px, 55%, 200px); aspect-ratio: 4 / 5; display: grid; place-items: center; border-radius: var(--r-lg);
  background: #2f6bd0; color: #fff;
  font-family: var(--font-display); font-weight: 600; font-size: clamp(3rem, 2rem + 4vw, 4.5rem);
}
.portrait__name { font-family: var(--font-display); font-weight: 500; font-size: var(--fs-display-sm); color: var(--ink); margin: 0; }
.portrait__role { font-family: var(--font-mono); font-size: var(--fs-caption); color: #2f6bd0; letter-spacing: 0.04em; }

/* ---- Split ------------------------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr; gap: clamp(2rem, 1.2rem + 4vw, 4rem); align-items: center; }
.prose p { font-size: var(--fs-body); color: var(--body); }
.prose p.lead { font-size: var(--fs-title-md); color: var(--body-strong); line-height: 1.55; }
.section--ink .prose p { color: var(--on-dark); }
.section--ink .prose p.lead { color: var(--on-dark); }
.section--ink .prose p:not(.lead) { color: var(--on-dark-soft); }

/* ---- Feature cards ------------------------------------------------------ */
.svc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--sp-lg); }
@media (min-width: 900px) { .svc-grid--3 { grid-template-columns: repeat(3, 1fr); } }
.svc-card {
  display: flex; flex-direction: column; gap: 0.75rem; padding: var(--sp-xl);
  background: var(--surface-card); border-radius: var(--r-lg); text-decoration: none; color: inherit;
  transition: background-color var(--dur) var(--ease-out-quart), box-shadow var(--dur) var(--ease-out-quart), transform var(--dur) var(--ease-out-quart);
}
.svc-card:hover { background: var(--surface-cream-strong); box-shadow: var(--shadow-card); transform: scale(1.06); }
/* Cards are also scroll-reveal targets; the reveal rule's transform:none out-ranked
   the hover and cancelled the zoom. Restore it at higher specificity and give the
   card its own transition so background, shadow, and scale all animate. */
.js .reveal.svc-card {
  transition: opacity var(--dur-slow) var(--ease-out-expo),
              transform var(--dur) var(--ease-out-quart),
              background-color var(--dur) var(--ease-out-quart),
              box-shadow var(--dur) var(--ease-out-quart);
}
.js .reveal.svc-card.is-visible:hover { transform: scale(1.06); }
.svc-card__icon {
  width: 40px; height: 40px; display: grid; place-items: center; border-radius: var(--r-md);
  background: #d7e9f7; color: #2f6bd0; margin-bottom: 0.25rem;
}
.svc-card__title { font-family: var(--font-display); font-weight: 500; font-size: var(--fs-title-lg); color: var(--ink); margin: 0; letter-spacing: -0.01em; }
.svc-card__desc { font-size: var(--fs-body-sm); color: var(--muted); margin: 0; flex: 1; line-height: 1.55; }
.svc-card__more { display: inline-flex; align-items: center; gap: 0.4rem; font-size: var(--fs-body-sm); font-weight: 500; color: #2f6bd0; }
.svc-card__more svg { transition: transform var(--dur-fast) var(--ease-out-quart); }
.svc-card:hover .svc-card__more svg { transform: translateX(3px); }

/* ---- Services detail ---------------------------------------------------- */
.service-block { display: grid; grid-template-columns: 1fr; gap: clamp(1.5rem, 1rem + 3vw, 3rem); align-items: start; }
.service-block + .service-block { margin-top: clamp(2.5rem, 1.8rem + 3vw, 4.5rem); padding-top: clamp(2.5rem, 1.8rem + 3vw, 4.5rem); border-top: 1px solid var(--hairline); }
.service-block h3 { font-size: var(--fs-display-md); margin-top: 0; }
.service-list { list-style: none; display: flex; flex-direction: column; }
.service-list li {
  display: flex; align-items: flex-start; gap: 0.75rem; padding: 0.85rem 0;
  border-top: 1px solid var(--hairline); font-size: var(--fs-body); color: var(--body-strong);
}
.service-list li:first-child { border-top: 0; }
.service-list li svg { flex: none; margin-top: 4px; color: #2f6bd0; }
.service-list li .svc-note { color: var(--muted); font-size: var(--fs-body-sm); }
@media (min-width: 720px) {
  .service-list--2col { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(2rem, 1.4rem + 3vw, 4rem); }
  .service-list--2col li:nth-child(2) { border-top: 0; }
}

/* ---- Chips (sky-tinted keyword pills) ------------------------------------ */
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; padding: 0; margin: 0; }
.chip {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0.35rem 0.9rem;
  background: #d7e9f7; border: 1px solid #56a7e0; border-radius: 999px;
  font-size: var(--fs-body-sm); font-weight: 500; color: var(--ink);
}

/* ---- Ledger (light card) ------------------------------------------------ */
.ledger { background: var(--surface-card); color: var(--body); border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--hairline); }
.ledger__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.9rem 1.25rem; background: var(--surface-cream-strong); border-bottom: 1px solid var(--hairline); }
.ledger__head h3 { color: var(--ink); margin: 0; font-size: var(--fs-title-md); font-family: var(--font-display); font-weight: 500; }
.ledger__head .tag { font-family: var(--font-mono); font-size: var(--fs-caption); letter-spacing: 0.06em; color: #2f6bd0; }
.ledger__row { display: grid; grid-template-columns: 11rem 1fr; gap: 0.5rem 1.5rem; padding: 0.85rem 1.25rem; border-top: 1px solid var(--hairline); }
.ledger__row:first-of-type { border-top: none; }
.ledger__key { font-family: var(--font-mono); font-size: var(--fs-caption); letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); padding-top: 2px; }
.ledger__val { color: var(--body-strong); font-size: var(--fs-body-sm); line-height: 1.5; }
.ledger__val .code { font-family: var(--font-mono); font-variant-numeric: tabular-nums; color: #2f6bd0; }
.code-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.code-chip {
  font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: var(--fs-caption);
  color: var(--body-strong); background: var(--surface-soft); border: 1px solid var(--hairline);
  border-radius: var(--r-sm); padding: 0.2rem 0.5rem;
}

/* ---- Values ------------------------------------------------------------- */
.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: clamp(1.5rem, 1rem + 2vw, 2.5rem); }
.value { padding-top: 1.25rem; border-top: 2px solid #2f6bd0; }
.value h3 { font-size: var(--fs-title-lg); margin: 0 0 0.5rem; font-family: var(--font-display); font-weight: 500; }
.value p { font-size: var(--fs-body-sm); color: var(--on-dark-soft); margin: 0; line-height: 1.55; }
.section:not(.section--ink) .value h3 { color: var(--ink); }
.section:not(.section--ink) .value p { color: var(--muted); }

/* ---- Membership panels -------------------------------------------------- */
.panel { background: var(--surface-card); border-radius: var(--r-lg); padding: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem); }
.panel--strong { background: #e7ddcb; border: 1px solid #d8cbb2; }
.panel h3 { font-family: var(--font-display); font-weight: 500; }
.section--ink .panel { background: var(--surface-dark-elevated); }

/* ---- Credentials strip (soft cream band) -------------------------------- */
.credbar { background: var(--surface-soft); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.credbar__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.75rem; padding-block: 1.1rem; }
.credbar__label { font-family: var(--font-mono); font-size: var(--fs-caption-up); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); padding-right: 1rem; border-right: 1px solid var(--hairline); }
.credbar__item { display: inline-flex; align-items: center; gap: 0.5rem; font-size: var(--fs-body-sm); color: var(--body-strong); }
.credbar__item svg { color: #2f6bd0; flex: none; }

/* ---- Contact ------------------------------------------------------------ */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: clamp(2rem, 1.4rem + 3vw, 3.5rem); align-items: start; }
.contact-grid > * { min-width: 0; }
.contact-detail { display: flex; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--hairline); }
.contact-detail:first-of-type { padding-top: 0; }
.contact-detail__icon { flex: none; width: 42px; height: 42px; display: grid; place-items: center; border-radius: var(--r-md); background: #d7e9f7; color: #2f6bd0; }
.contact-detail__label { font-family: var(--font-mono); font-size: var(--fs-caption-up); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.2rem; }
.contact-detail__value { font-size: var(--fs-body); color: var(--body-strong); }
.contact-detail__value a { color: var(--body-strong); }
.contact-detail__value a:hover { color: #2f6bd0; }

.form-note { display: flex; gap: 0.7rem; padding: 0.85rem 1.1rem; margin-bottom: var(--sp-lg); background: var(--surface-soft); border: 1px solid var(--hairline); border-radius: var(--r-md); font-size: var(--fs-body-sm); color: var(--body); }
.form-note svg { flex: none; margin-top: 2px; color: #2f6bd0; }

.form-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--sp-md) var(--sp-lg); }
.field { display: flex; flex-direction: column; gap: 0.4rem; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: var(--fs-body-sm); font-weight: 500; color: var(--body-strong); }
.field .req { color: #2f6bd0; }
.field input, .field textarea {
  /* Strip native control chrome so the OS/browser accent color can never tint
     the field, its caret, or its focus ring — everything is brand-pinned. */
  -webkit-appearance: none; appearance: none; forced-color-adjust: none;
  caret-color: #2f6bd0;
  font-family: inherit; font-size: max(16px, var(--fs-body)); color: var(--ink);
  background: var(--canvas); border: 1px solid var(--hairline); border-radius: var(--r-md); padding: 0.7rem 0.9rem;
  transition: border-color var(--dur-fast) var(--ease-out-quart), box-shadow var(--dur-fast) var(--ease-out-quart);
}
.field textarea { resize: vertical; min-height: 8rem; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted-soft); }
.field input:focus-visible, .field textarea:focus-visible {
  outline: none; border-color: #2f6bd0; box-shadow: 0 0 0 3px rgba(47, 107, 208, 0.15);
}
/* Chrome paints autofilled fields a stubborn yellow that normal `background`
   can't override — force them back to the brand palette. */
.field input:-webkit-autofill,
.field input:-webkit-autofill:hover,
.field input:-webkit-autofill:focus,
.field textarea:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px var(--canvas) inset;
  box-shadow: 0 0 0 1000px var(--canvas) inset;
  -webkit-text-fill-color: var(--ink);
  caret-color: #2f6bd0;
}
.field .error-msg { font-size: var(--fs-body-sm); color: var(--error); min-height: 0; }
.field[data-invalid="true"] input, .field[data-invalid="true"] textarea { border-color: var(--error); background: var(--error-bg); }
.form-status { margin-top: var(--sp-md); font-size: var(--fs-body-sm); }
.form-status[data-state="success"] { color: var(--success); }
.form-status[data-state="error"] { color: var(--error); }

/* ---- Map ---------------------------------------------------------------- */
.map-embed { position: relative; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--hairline); background: var(--surface-soft); aspect-ratio: 16 / 9; }
.map-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---- Page hero (cream) -------------------------------------------------- */
.page-hero { background: var(--canvas); padding-top: calc(var(--header-h) + clamp(2rem, 1.2rem + 3vw, 3.5rem)); padding-bottom: clamp(1.5rem, 1rem + 2vw, 2.5rem); }
.page-hero__media { display: none; }
.page-hero__scrim { display: none; }
.page-hero h1 { font-size: var(--fs-display-lg); color: var(--ink); margin-bottom: var(--sp-md); }
.page-hero__lead { font-size: var(--fs-title-md); line-height: 1.55; color: var(--muted); max-width: 54ch; margin: 0; }
.breadcrumb { display: flex; gap: 0.5rem; align-items: center; font-size: var(--fs-body-sm); color: var(--muted); margin-bottom: var(--sp-md); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb span[aria-hidden] { color: var(--muted-soft); }

.jumpnav { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: var(--sp-lg); }
.jumpnav a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0.45rem 0.9rem; border-radius: var(--r-pill);
  border: 1px solid var(--hairline); background: var(--canvas); color: var(--body-strong); font-size: var(--fs-body-sm); text-decoration: none;
  transition: background-color var(--dur-fast) var(--ease-out-quart), border-color var(--dur-fast) var(--ease-out-quart);
}
.jumpnav a:hover { background: #d7e9f7; border-color: #56a7e0; }

/* ---- Coral callout / CTA ------------------------------------------------ */
.cta-band { background: var(--canvas); padding-inline: var(--gutter); }
.cta-band .container {
  max-width: 960px; margin-inline: auto;
  background: var(--surface-dark); color: var(--on-dark);
  border-radius: var(--r-xl); padding: clamp(2.5rem, 1.8rem + 3vw, 4rem);
  text-align: center;
}
.cta-band h2 { color: var(--on-dark); font-size: var(--fs-display-md); }
.cta-band .section-lead { color: var(--on-dark-soft); }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: var(--sp-sm); justify-content: center; margin-top: var(--sp-lg); }
.cta-band .btn--ghost { background: transparent; color: var(--on-dark); border-color: color-mix(in srgb, var(--on-dark) 45%, transparent); }
.cta-band .btn--ghost:hover { background: color-mix(in srgb, var(--on-dark) 12%, transparent); color: var(--on-dark); border-color: var(--on-dark); }

/* ---- Footer (dark) ------------------------------------------------------ */
.site-footer { background: var(--surface-dark); color: var(--on-dark-soft); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 0.8fr 1.2fr; gap: clamp(1.75rem, 1.2rem + 2.6vw, 3.5rem); padding-block: clamp(3rem, 2rem + 3vw, 4rem); }
.footer-brand .brand__name { color: var(--on-dark); }
.footer-brand .brand__sub { color: var(--on-dark-soft); }
/* Logo is ink; invert it to read on the dark footer. */
.footer-brand .brand__logo { filter: brightness(0) invert(1); }
.footer-tagline { margin-top: var(--sp-md); font-size: var(--fs-body-sm); color: var(--on-dark-soft); max-width: 34ch; }
.footer-col h4 { font-family: var(--font-mono); font-size: var(--fs-caption-up); font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-soft); margin: 0 0 var(--sp-md); }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.1rem; }
.footer-col a { display: inline-flex; min-height: 38px; align-items: center; color: var(--on-dark-soft); text-decoration: none; font-size: var(--fs-body-sm); }
.footer-col a:hover { color: var(--on-dark); }
.footer-contact address { font-style: normal; font-size: var(--fs-body-sm); line-height: 2; color: var(--on-dark-soft); }
.footer-contact address a { color: var(--on-dark-soft); }
.footer-contact address a:hover { color: var(--on-dark); }
.footer-contact .label { font-family: var(--font-mono); font-size: 0.68rem; color: var(--muted-soft); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; padding-block: 1.4rem; border-top: 1px solid var(--hairline-dark); font-size: var(--fs-caption); color: var(--muted-soft); }
.footer-bottom__links { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.footer-bottom a { color: var(--muted-soft); text-decoration: none; }
.footer-bottom a:hover { color: var(--on-dark); }

/* ---- Page load fade-in -------------------------------------------------- */
/* Gated on .js (added synchronously in <head>) so a no-JS page is never hidden. */
.js body { animation: page-fade-in 0.6s var(--ease-out-quart) both; }
@keyframes page-fade-in { from { opacity: 0; } to { opacity: 1; } }

/* ---- Reveal on scroll --------------------------------------------------- */
.js .reveal {
  opacity: 0; transform: translateY(16px);
  transition: opacity var(--dur-slow) var(--ease-out-expo), transform var(--dur-slow) var(--ease-out-expo);
  transition-delay: var(--reveal-delay, 0ms);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---- Responsive --------------------------------------------------------- */
@media (min-width: 720px) {
  .split { grid-template-columns: 1.05fr 0.95fr; }
  .split--media-start .prose { order: 2; }
  .split--media-start .figure, .split--media-start .mockup, .split--media-start .artboard, .split--media-start .portrait { order: 1; }
  .service-block { grid-template-columns: 0.8fr 1.2fr; }
  .contact-grid { grid-template-columns: 0.9fr 1.1fr; }
}
@media (min-width: 960px) {
  .hero__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); align-items: center; }
}
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 860px) { .nav__list, .nav__cta { display: none; } .nav-toggle { display: inline-flex; } }
@media (max-width: 620px) {
  .form-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .ledger__row { grid-template-columns: 1fr; gap: 0.3rem; }
}

/* ---- Reduced motion ----------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1 !important; transform: none !important; }
  .js body { animation: none !important; }
}

/* ---- Print -------------------------------------------------------------- */
@media print {
  .site-header, .mobile-nav, .nav-toggle, .cta-band, .map-embed { display: none !important; }
  body { color: #000; background: #fff; }
}
