/* ==========================================================================
   Homepage layout — Harvey LIVE light direction (prototype D)
   Load after css/tokens.css. Tokens supply palette, type, radii, ease.
   ========================================================================== */

:root {
  --home-max: 1120px;
  --home-max-wide: 1280px;
  --home-gutter: clamp(20px, 4vw, 40px);
  --page: #F7F5F0;
  --page-elevated: #FAFAF9;
  --wash: #1a1917;
  --home-rule: rgba(15, 14, 13, 0.08);
  --home-muted: rgba(15, 14, 13, 0.55);
  --home-soft: rgba(15, 14, 13, 0.68);
  --home-faint: rgba(15, 14, 13, 0.4);
}

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

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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  overflow-x: clip;
}

/* Page-wide paper grain — CSS fallback + Paper Shaders paperTexture */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.35;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0.82 0 0 0 0 0.80 0 0 0 0 0.74 0 0 0 0.55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 180px 180px;
}
.page-shader {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
  mix-blend-mode: multiply;
}
.page-shader canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}
/* Keep chrome/content above the fixed grain; dark trust covers it with opaque bg */
.skip-link,
.announce,
.nav,
main,
.footer {
  position: relative;
  z-index: 1;
}
.nav { z-index: 40; }
.skip-link { z-index: 100; }

a { color: inherit; text-decoration: none; }
a:hover { opacity: 0.78; }
img { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; font-weight: 400; font-family: var(--font-serif); }
p { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }

.skip-link {
  position: absolute;
  left: var(--home-gutter);
  top: -100px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--ivory);
  color: var(--ink);
  border-radius: var(--radius-control);
  font-size: 14px;
  font-weight: 500;
}
.skip-link:focus {
  top: 12px;
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.wrap { width: min(100% - 2 * var(--home-gutter), var(--home-max)); margin-inline: auto; }
.wrap-wide { width: min(100% - 2 * var(--home-gutter), var(--home-max-wide)); margin-inline: auto; }

/* Focus — visible on interactive controls */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  opacity: 1;
}

/* Announce — black bar, news-like beat (live Harvey) */
.announce {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  padding: 9px var(--home-gutter);
  padding-top: max(9px, env(safe-area-inset-top, 0px));
  font-size: 12.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.94);
  background: var(--ink);
  letter-spacing: 0.02em;
  line-height: 1.3;
}
.announce-kicker {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  padding: 2px 7px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 3px;
  margin: 0;
}
.announce span[aria-hidden] { color: rgba(255, 255, 255, 0.55); margin-left: 2px; }
.announce:hover { opacity: 1; color: #fff; }

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(247, 245, 240, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  padding-top: env(safe-area-inset-top, 0px);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  gap: 24px;
  position: relative;
}
.nav-backdrop {
  display: none;
}
.brand {
  font-family: var(--font-serif);
  font-size: 22px;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.brand:hover { opacity: 1; }
.brand .amp { font-style: italic; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 14px;
  color: var(--home-muted);
  margin-left: 8px;
}
.nav-links a:hover { color: var(--ink); opacity: 1; }
.nav-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 14px;
}
.nav-login {
  font-size: 14px;
  color: var(--home-muted);
  padding: 8px 4px;
}
.nav-login:hover { color: var(--ink); opacity: 1; }
.nav-links > .nav-login:last-child { margin-left: auto; }
.nav-login-btn {
  border-color: rgba(15, 14, 13, 0.28);
  color: var(--ink);
  background: transparent;
}
.nav-login-btn:hover {
  border-color: rgba(15, 14, 13, 0.55);
  background: transparent;
  color: var(--ink);
  opacity: 1;
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  padding: 8px 12px;
  min-height: var(--tap-target-min);
  min-width: var(--tap-target-min);
  touch-action: manipulation;
  z-index: 60;
  position: relative;
  border-radius: var(--radius-control);
  transition: opacity 0.2s var(--ease), background 0.2s var(--ease);
}
.nav-toggle:hover { opacity: 0.78; }
.nav.is-open .nav-toggle { opacity: 1; }
/* Harvey-style 2-line icon — text kept for a11y/JS, visually replaced on mobile */
.nav-toggle::before,
.nav-toggle::after {
  content: none;
}

body.nav-locked {
  overflow: hidden;
  touch-action: none;
  overscroll-behavior: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  min-height: var(--tap-target-min);
  border-radius: var(--radius-control);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  touch-action: manipulation;
  transition:
    opacity 0.22s var(--ease),
    background 0.22s var(--ease),
    color 0.22s var(--ease),
    border-color 0.22s var(--ease),
    transform 0.18s var(--ease);
}
.btn:hover { opacity: 1; }
.btn:active { transform: scale(0.98); }
@media (prefers-reduced-motion: reduce) {
  .btn:active { transform: none; }
}
.btn-ivory,
.btn-ink,
.btn-primary {
  background: var(--ink);
  color: #fff;
}
.btn-ivory:hover,
.btn-ink:hover,
.btn-primary:hover { background: var(--gray-900); color: #fff; }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: rgba(15, 14, 13, 0.2);
}
.btn-ghost:hover { border-color: rgba(15, 14, 13, 0.45); }
.btn-sm { padding: 10px 16px; font-size: 13.5px; }
.btn-lg { padding: 14px 22px; }

/* Hero — asymmetric split, poster-tight type (live Harvey light) */
.hero {
  padding: clamp(56px, 10vh, 96px) 0 clamp(36px, 5vh, 48px);
  text-align: left;
}
.hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 0.7fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start; /* Harvey: right copy sits at top of headline */
}
.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--home-faint);
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(48px, 6.8vw, 76px);
  line-height: 0.95;
  letter-spacing: -0.035em;
  max-width: none;
  margin-inline: 0;
  font-weight: 400;
}
.hero-line {
  display: block;
}
.hero-aside {
  padding-top: 0.35em; /* optical align with first headline line */
  padding-bottom: 0;
  max-width: 34ch;
  justify-self: start;
}
.hero-sub {
  margin: 0;
  max-width: none;
  font-size: clamp(14px, 1.25vw, 15.5px);
  font-weight: 400;
  line-height: 1.55;
  color: var(--home-muted);
  letter-spacing: -0.005em;
}
.hero-cta { margin-top: 22px; }

/* Product stage — soft irregular wash + floating portal card */
.product {
  padding: 0 0 clamp(56px, 9vh, 88px);
}
.product-stage {
  position: relative;
  border-radius: 0;
  overflow: visible;
  padding: clamp(64px, 9vw, 112px) clamp(20px, 4vw, 56px) clamp(72px, 10vw, 120px);
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  box-shadow: none;
}
.hero-shader {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  background: #141311;
  /* Harvey stage: crisp rounded-rect charcoal plate (no soft blob mask) */
  inset: 6% 3% 4% 3%;
  min-height: 66%;
  border-radius: 14px;
  -webkit-mask-image: none;
  mask-image: none;
  filter: none;
  opacity: 0.9;
  outline: 1px solid rgba(15, 14, 13, 0.12);
  overflow: hidden;
}
.hero-shader canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
  border-radius: inherit;
}
.portal-hero {
  position: relative;
  z-index: 1;
  width: min(100%, 1080px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 200px 1fr;
  background: #F7F5F0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(15, 14, 13, 0.1),
    0 2px 4px rgba(15, 14, 13, 0.06),
    0 12px 28px rgba(15, 14, 13, 0.12),
    0 24px 48px rgba(15, 14, 13, 0.1);
  color: #0f0e0d;
  min-height: 0;
  align-self: center;
}

/* Sidebar — near-black Harvey Command Center craft */
.ph-side {
  background: #11110F;
  color: rgba(247, 245, 240, 0.68);
  padding: 14px 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  border-right: 1px solid rgba(247, 245, 240, 0.06);
}
.ph-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding: 0 6px 14px;
  border-bottom: 1px solid rgba(247, 245, 240, 0.08);
}
.ph-mark {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(247, 245, 240, 0.08);
  color: #F7F5F0;
  font-family: var(--font-serif);
  font-size: 11px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}
.ph-brand-name {
  font-family: var(--font-serif);
  font-size: 14px;
  color: #F7F5F0;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.ph-brand-name em { font-style: italic; font-weight: 400; }
.ph-nav-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(250, 248, 245, 0.38);
  padding: 4px 10px 8px;
}
.ph-nav-item {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  text-align: left;
  padding: 7px 10px;
  border-radius: 8px;
  border: 0;
  background: transparent;
  color: rgba(247, 245, 240, 0.58);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}
.ph-nav-item:hover {
  background: rgba(247, 245, 240, 0.07);
  color: #F7F5F0;
}
.ph-nav-item.is-active {
  background: rgba(247, 245, 240, 0.10);
  color: #F7F5F0;
}
.ph-ico {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  opacity: 0.9;
}
.ph-side-foot {
  margin-top: auto;
  padding: 12px 6px 4px;
}
.ph-chip {
  display: inline-block;
  font-size: 11px;
  color: rgba(247, 245, 240, 0.5);
  background: rgba(247, 245, 240, 0.06);
  border: 1px solid rgba(247, 245, 240, 0.1);
  border-radius: 999px;
  padding: 5px 10px;
  letter-spacing: 0.01em;
}

/* Main pane */
.ph-main {
  background: #F7F5F0;
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  overflow: hidden;
}
.ph-tabs {
  display: inline-flex;
  align-self: flex-start;
  gap: 2px;
  padding: 2px;
  background: rgba(15, 14, 13, 0.05);
  border-radius: 7px;
  border: 1px solid rgba(15, 14, 13, 0.06);
}
.ph-tab {
  border: 0;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  color: rgba(15, 14, 13, 0.5);
  padding: 5px 10px;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}
.ph-tab:hover { color: var(--ink); }
.ph-tab.is-active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(15, 14, 13, 0.06);
}
.ph-pane { display: none; flex-direction: column; gap: 10px; min-height: 0; flex: 1; }
.ph-pane.is-active,
.ph-pane:not([hidden]) { display: flex; }
.ph-pane[hidden] { display: none !important; }

.ph-cc-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.ph-cc-title {
  font-family: var(--font-serif);
  font-size: clamp(18px, 2.1vw, 24px);
  letter-spacing: -0.02em;
  line-height: 1.12;
  color: #1a1917;
  font-weight: 400;
  margin: 0;
}
.ph-cc-sub {
  margin-top: 3px;
  font-size: 12px;
  color: rgba(15, 14, 13, 0.45);
}
.ph-cc-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.ph-link-fake {
  font-size: 12px;
  font-weight: 500;
  color: rgba(15, 14, 13, 0.5);
  white-space: nowrap;
  pointer-events: none;
}

.ph-alert {
  font-size: 11.5px;
  line-height: 1.4;
  color: rgba(15, 14, 13, 0.62);
  background: rgba(15, 14, 13, 0.04);
  border: 1px solid rgba(15, 14, 13, 0.06);
  border-radius: 7px;
  padding: 7px 10px;
}

.ph-filters {
  display: inline-flex;
  align-self: flex-start;
  gap: 2px;
  padding: 2px;
  background: rgba(15, 14, 13, 0.05);
  border-radius: 7px;
  border: 1px solid rgba(15, 14, 13, 0.06);
}
.ph-filter {
  font-size: 11px;
  font-weight: 500;
  color: rgba(15, 14, 13, 0.48);
  padding: 4px 9px;
  border-radius: 5px;
  pointer-events: none;
}
.ph-filter.is-active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(15, 14, 13, 0.06);
}

.ph-cta-fake {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #1a1917;
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.12), 0 4px 12px rgba(0,0,0,0.1);
  white-space: nowrap;
  pointer-events: none;
}
.ph-cta-fake--sm { padding: 7px 11px; border-radius: 7px; }
.ph-cta-fake .ph-ico { width: 14px; height: 14px; }

/* Command Center 2×2 chart grid — Harvey density */
.ph-charts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.ph-charts--quad {
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.ph-chart {
  background: #fff;
  border: 1px solid rgba(15, 14, 13, 0.08);
  border-radius: 8px;
  padding: 10px 11px 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  min-height: 0;
}
.ph-chart-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.ph-chart-head h4 {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 600;
  color: rgba(15, 14, 13, 0.5);
  letter-spacing: -0.01em;
}
.ph-chart-head > span {
  font-size: 10px;
  color: rgba(15, 14, 13, 0.38);
  white-space: nowrap;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding-top: 2px;
}
.ph-chart-stat {
  font-family: var(--font-serif);
  font-size: 22px;
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: #1a1917;
  margin-top: 2px;
}
.ph-chart-stat em {
  font-style: normal;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  color: rgba(15, 14, 13, 0.45);
  margin-left: 4px;
  letter-spacing: 0;
}
.ph-bars,
.ph-spark,
.ph-hbars {
  width: 100%;
  height: 56px;
  display: block;
  margin-top: 2px;
}
.ph-chart-legend {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2px;
  font-size: 9px;
  color: rgba(15, 14, 13, 0.4);
  text-align: center;
  letter-spacing: 0.01em;
}
.ph-chart-legend--spread {
  grid-template-columns: 1fr 1fr;
  text-align: left;
}
.ph-chart-legend--spread span:last-child { text-align: right; }

.ph-activity {
  background: #fff;
  border: 1px solid rgba(15, 14, 13, 0.07);
  border-radius: 8px;
  overflow: hidden;
}
.ph-activity-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 8px 12px;
  border-bottom: 1px solid rgba(15, 14, 13, 0.06);
}
.ph-activity-head h4 {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.ph-activity-head span {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: rgba(15, 14, 13, 0.38);
  text-transform: uppercase;
}
.ph-activity-row {
  display: grid;
  grid-template-columns: 10px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 7px 12px;
  border-bottom: 1px solid rgba(15, 14, 13, 0.05);
}
.ph-activity-row:last-child { border-bottom: 0; }
.ph-activity-row:hover { background: rgba(15, 14, 13, 0.015); }
.ph-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #0f0e0d;
  opacity: 0.35;
}
.ph-activity-row strong {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #1a1917;
}
.ph-activity-row span:not(.ph-status) {
  display: block;
  font-size: 11.5px;
  color: rgba(15, 14, 13, 0.42);
  margin-top: 2px;
}

.ph-status {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid rgba(15, 14, 13, 0.1);
  color: rgba(15, 14, 13, 0.55);
  white-space: nowrap;
  background: rgba(15, 14, 13, 0.02);
}
.ph-status.done {
  background: rgba(15, 14, 13, 0.04);
  border-color: rgba(15, 14, 13, 0.12);
  color: #0f0e0d;
}
.ph-status.review {
  background: rgba(15, 14, 13, 0.06);
  border-color: rgba(15, 14, 13, 0.14);
  color: #33312c;
}
.ph-status.due {
  background: rgba(15, 14, 13, 0.08);
  border-color: rgba(15, 14, 13, 0.18);
  color: #0f0e0d;
}

.ph-pane-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.ph-pane-head h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  letter-spacing: -0.015em;
}
.ph-pane-head p {
  margin-top: 4px;
  font-size: 12.5px;
  color: rgba(15, 14, 13, 0.45);
}

.ph-table {
  background: #fff;
  border: 1px solid rgba(15, 14, 13, 0.07);
  border-radius: 10px;
  overflow: hidden;
}
.ph-table-head,
.ph-table-row {
  display: grid;
  grid-template-columns: 1.6fr 0.7fr auto;
  gap: 12px;
  align-items: center;
  padding: 11px 14px;
}
.ph-table-head {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(15, 14, 13, 0.4);
  border-bottom: 1px solid rgba(15, 14, 13, 0.06);
  background: rgba(15, 14, 13, 0.015);
}
.ph-table-row {
  border-bottom: 1px solid rgba(15, 14, 13, 0.05);
  font-size: 13px;
}
.ph-table-row:last-child { border-bottom: 0; }
.ph-table-row:hover { background: rgba(15, 14, 13, 0.015); }
.ph-table-row strong {
  display: block;
  font-weight: 500;
  font-size: 13px;
}
.ph-file-meta {
  display: block;
  font-size: 11.5px;
  color: rgba(15, 14, 13, 0.4);
  margin-top: 2px;
}
.ph-cat {
  font-size: 12px;
  color: rgba(15, 14, 13, 0.5);
}

.ph-task-list {
  background: #fff;
  border: 1px solid rgba(15, 14, 13, 0.07);
  border-radius: 10px;
  overflow: hidden;
}
.ph-task {
  display: grid;
  grid-template-columns: 16px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(15, 14, 13, 0.05);
}
.ph-task:last-child { border-bottom: 0; }
.ph-task:hover { background: rgba(15, 14, 13, 0.015); }
.ph-task.is-done strong { color: rgba(15, 14, 13, 0.45); }
.ph-task strong {
  display: block;
  font-size: 13px;
  font-weight: 500;
}
.ph-task span:not(.ph-status):not(.ph-check) {
  display: block;
  font-size: 11.5px;
  color: rgba(15, 14, 13, 0.42);
  margin-top: 2px;
}
.ph-check {
  width: 15px;
  height: 15px;
  border: 1.5px solid rgba(15, 14, 13, 0.22);
  border-radius: 4px;
  flex-shrink: 0;
  position: relative;
}
.ph-check.on {
  background: #2b3a55;
  border-color: #2b3a55;
}
.ph-check.on::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 4px;
  height: 8px;
  border: solid #fff;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}

/* Proof */
.proof {
  padding: 56px 0 72px;
  border-top: 1px solid var(--home-rule);
  text-align: center;
}
.proof-label {
  font-size: 13px;
  color: var(--home-faint);
  margin-bottom: 32px;
}
.proof-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 40px;
  color: var(--home-faint);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.proof-strip span { white-space: nowrap; }

/* Section heads */
.section-head {
  text-align: left;
  max-width: 38ch;
  margin: 0 0 48px;
}
.section-head--wide { max-width: 48ch; }
.section-head h2 {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.015em;
}
.section-head p {
  margin-top: 14px;
  font-size: 15px;
  color: var(--home-muted);
}

/* Services index — six equal cards */
.services {
  padding: clamp(80px, 12vh, 128px) 0;
  border-top: 1px solid var(--home-rule);
}
.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--home-rule);
  border: 1px solid var(--home-rule);
}
.svc-card {
  background: var(--page);
  padding: 40px 30px 44px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: background 0.2s var(--ease);
}
.svc-card:hover { background: var(--white); }
.svc-num {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--home-faint);
  letter-spacing: 0.08em;
}
.svc-card h3 {
  font-size: clamp(22px, 2.4vw, 26px);
  letter-spacing: -0.015em;
  line-height: 1.18;
}
.svc-card > p {
  font-size: 14.5px;
  color: var(--home-muted);
  line-height: 1.58;
  flex: 1;
  max-width: 36ch;
}
.svc-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 4px;
}
.svc-link {
  font-size: 13.5px;
  color: var(--home-soft);
  margin-top: 8px;
  display: inline-block;
}
.svc-links .svc-link { margin-top: 0; }
.svc-link:hover { color: var(--ink); opacity: 1; }
.svc-link--secondary { color: var(--home-faint); }

/* Legacy card grid (inner pages may reuse) */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--home-rule);
  border: 1px solid var(--home-rule);
}
.card {
  background: var(--page);
  padding: 36px 28px 40px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: background 0.2s var(--ease);
}
.card:hover { background: var(--white); opacity: 1; }
.card-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--home-faint);
  letter-spacing: 0.06em;
}
.card h3 {
  font-size: 24px;
  letter-spacing: -0.01em;
}
.card p {
  font-size: 14.5px;
  color: var(--home-muted);
  line-height: 1.55;
  flex: 1;
}
.card-link {
  font-size: 13.5px;
  color: var(--home-soft);
  margin-top: 8px;
}
.card:hover .card-link { color: var(--ink); }

/* How we work */
.how {
  padding: clamp(72px, 11vh, 112px) 0;
  border-top: 1px solid var(--home-rule);
}
.how-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--home-rule);
}
.how-step {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px 28px 8px 0;
  border-bottom: 1px solid var(--home-rule);
  border-right: 1px solid var(--home-rule);
}
.how-step:last-child { border-right: 0; padding-right: 0; }
.how-step:first-child { padding-left: 0; }
.how-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--home-faint);
  letter-spacing: 0.06em;
}
.how-step h3 {
  font-size: 24px;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.how-step p {
  font-size: 14.5px;
  color: var(--home-muted);
  line-height: 1.55;
  max-width: 36ch;
}

/* Trust — Harvey-style dark security / compliance band */
.trust {
  padding: clamp(80px, 12vh, 128px) 0 clamp(72px, 10vh, 112px);
  border-top: 0;
}
.trust--dark {
  background: #0a0a09;
  color: #f5f4f0;
}
.trust-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.trust-feature {
  padding: 8px 36px 8px 0;
  border-right: 1px solid rgba(245, 244, 240, 0.14);
}
.trust-feature:last-child {
  border-right: 0;
  padding-right: 0;
}
.trust-feature:not(:first-child) {
  padding-left: 36px;
}
.trust-feature h3 {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: #fff;
  margin: 0 0 14px;
}
.trust-feature p {
  font-size: 14.5px;
  line-height: 1.55;
  color: rgba(245, 244, 240, 0.62);
  max-width: 34ch;
  margin: 0;
}

.trust-compliance {
  margin-top: clamp(72px, 11vh, 112px);
  text-align: center;
}
.trust-compliance h2 {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: #fff;
  max-width: 22ch;
  margin: 0 auto;
}
.trust-marks {
  list-style: none;
  margin: 48px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: clamp(28px, 5vw, 56px);
}
.trust-mark {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-width: 108px;
  color: rgba(245, 244, 240, 0.88);
}
.trust-mark-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  color: rgba(245, 244, 240, 0.92);
}
.trust-mark-icon svg {
  display: block;
}
.trust-mark strong {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
}
.trust-mark span {
  font-size: 12.5px;
  line-height: 1.35;
  color: rgba(245, 244, 240, 0.5);
  text-align: center;
  max-width: 14ch;
}

/* Qualitative ruled rows — Harvey impact-stats craft, no invented numbers */
.trust-qual {
  margin: clamp(64px, 10vh, 96px) 0 0;
  padding: 0;
  border-top: 1px solid rgba(245, 244, 240, 0.14);
  border-bottom: 1px solid rgba(245, 244, 240, 0.14);
}
.trust-qual-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 24px;
  padding: clamp(22px, 3.2vh, 32px) 0;
  border-bottom: 1px solid rgba(245, 244, 240, 0.14);
}
.trust-qual-row:last-child {
  border-bottom: 0;
}
.trust-qual-row dt {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 400;
  color: rgba(245, 244, 240, 0.72);
}
.trust-qual-row dd {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1;
  color: #fff;
  text-align: right;
}

/* Close CTA */
.close {
  padding: clamp(72px, 12vh, 112px) 0;
  border-top: 1px solid var(--home-rule);
}
.close--dark {
  background: var(--ink);
  color: #fff;
  border-top: 0;
}
.close-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.close h2 {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.015em;
  max-width: 16ch;
}
.close--dark h2 { color: #fff; }
.btn-light {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
}
.btn-light:hover {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}

/* Footer */
.footer {
  padding: 64px 0 32px;
  border-top: 1px solid var(--home-rule);
  color: var(--home-muted);
  font-size: 13.5px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px 32px;
  margin-bottom: 48px;
}
.footer-brand {
  font-family: var(--font-serif);
  font-size: 28px;
  color: var(--ink);
  display: block;
  margin-bottom: 12px;
}
.footer-brand:hover { opacity: 1; }
.footer-brand .amp { font-style: italic; }
.footer-tag { max-width: 28ch; line-height: 1.55; }
.footer-address {
  margin-top: 16px;
  max-width: 28ch;
  line-height: 1.55;
  color: var(--home-faint);
  font-size: 12.5px;
}
.footer h4 {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--home-faint);
  margin: 0 0 16px;
}
.footer li + li { margin-top: 10px; }
.footer a:hover { color: var(--ink); opacity: 1; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--home-rule);
  font-size: 12.5px;
  color: var(--home-faint);
}

/* ==========================================================================
   Mobile — purpose-built phone experience (860 / 640 / 430)
   Desktop chrome above this line stays unchanged.
   ========================================================================== */

@media (max-width: 860px) {
  :root {
    --home-gutter: 20px;
  }

  /* ---- Native drawer nav ---- */
  /* backdrop-filter creates a fixed containing block — disable while open */
  .nav.is-open {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: var(--page);
  }

  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0; /* hide Menu/Close label; aria-label remains */
    line-height: 0;
    color: var(--ink);
    width: var(--tap-target-min);
    padding: 8px;
  }
  .nav-toggle::before,
  .nav-toggle::after {
    content: "";
    display: block;
    width: 18px;
    height: 1.5px;
    background: currentColor;
    border-radius: 1px;
    transition: transform 0.2s var(--ease);
  }
  .nav.is-open .nav-toggle::before {
    transform: translateY(3.75px) rotate(45deg);
  }
  .nav.is-open .nav-toggle::after {
    transform: translateY(-3.75px) rotate(-45deg);
  }

  .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 45;
    background: rgba(15, 14, 13, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.26s var(--ease);
    -webkit-tap-highlight-color: transparent;
  }
  .nav.is-open .nav-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links,
  .nav-actions {
    display: none;
  }

  /* Full-height sheet from the right (or full-bleed on narrow phones via 430) */
  .nav.is-open .nav-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    width: min(100vw - 48px, 380px);
    max-width: 100%;
    height: 100vh; /* fallback */
    height: 100dvh;
    margin: 0;
    padding:
      calc(var(--nav-h) + env(safe-area-inset-top, 0px) + 20px)
      28px
      calc(120px + env(safe-area-inset-bottom, 0px))
      28px;
    background: var(--page-elevated);
    border-left: 1px solid var(--home-rule);
    box-shadow: -16px 0 48px rgba(15, 14, 13, 0.14);
    z-index: 50;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    transform: translateX(0);
    animation: nav-drawer-in 0.28s var(--ease) both;
  }

  .nav.is-open .nav-links > a {
    display: flex;
    align-items: center;
    min-height: var(--tap-target-min);
    padding: 14px 4px;
    font-size: 22px;
    font-family: var(--font-serif);
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--ink);
    border-bottom: 1px solid var(--home-rule);
    opacity: 1;
    transition: opacity 0.2s var(--ease), color 0.2s var(--ease);
  }
  .nav.is-open .nav-links > a:hover,
  .nav.is-open .nav-links > a:focus-visible {
    opacity: 1;
    color: var(--ink);
  }
  .nav.is-open .nav-links > a.nav-login {
    margin-top: 8px;
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0;
    color: var(--home-muted);
    border-bottom: 0;
    min-height: var(--tap-target-min);
  }

  /* Sticky primary CTA at bottom of drawer (index pattern) */
  .nav.is-open .nav-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    position: fixed;
    top: auto;
    right: 0;
    bottom: 0;
    left: auto;
    width: min(100vw - 48px, 380px);
    max-width: 100%;
    margin: 0;
    padding: 16px 28px calc(16px + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(to top, var(--page-elevated) 72%, rgba(250, 250, 249, 0));
    border-left: 1px solid var(--home-rule);
    box-shadow: none;
    z-index: 51;
    animation: nav-cta-in 0.28s var(--ease) both;
  }
  .nav.is-open .nav-actions .btn {
    width: 100%;
    justify-content: center;
  }
  .nav.is-open .nav-login { margin-left: 0; }

  @keyframes nav-drawer-in {
    from {
      opacity: 0.6;
      transform: translateX(18px);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }
  @keyframes nav-cta-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
  }
  @media (prefers-reduced-motion: reduce) {
    .nav.is-open .nav-links,
    .nav.is-open .nav-actions {
      animation: none;
    }
    .nav-backdrop { transition: none; }
  }

  /* Pages without .nav-actions: give the last login link room at bottom */
  .nav.is-open .nav-links:not(:has(+ .nav-actions)) {
    padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px));
  }

  /* ---- Hero recomposed (Harvey-match mobile first viewport) ---- */
  .hero {
    padding: 56px 0 36px;
  }
  .hero-split {
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: start;
  }
  .hero h1 {
    max-width: none;
    font-size: clamp(40px, 11vw, 52px);
    line-height: 1.06;
    letter-spacing: -0.028em;
  }
  .hero-aside {
    max-width: none;
    padding-top: 0;
    justify-self: start;
  }
  .hero-sub {
    font-size: 15.5px;
    line-height: 1.55;
    max-width: 36ch;
  }
  .hero-cta { margin-top: 28px; }
  /* Compact left-aligned CTA (override full-width phone rules below) */
  .hero-cta .btn {
    width: auto;
    max-width: none;
    align-self: flex-start;
  }

  /* ---- Charcoal stage: page gutters, not full-bleed ---- */
  .product {
    padding: 48px 0 48px; /* clear air between CTA and charcoal plate */
  }
  .product .wrap-wide {
    /* Match page gutters (~16–20px) so charcoal sits inset like Harvey */
    width: min(100% - 2 * var(--home-gutter), var(--home-max-wide)) !important;
    max-width: none !important;
    margin-inline: auto;
    padding-inline: 0;
  }
  .product-stage {
    min-height: 0;
    padding: 20px 16px 28px;
  }
  .hero-shader {
    inset: 0; /* fills inset wrap-wide — not viewport edge */
    border-radius: 14px;
    min-height: 100%;
    opacity: 0.94;
  }
  .portal-hero {
    grid-template-columns: 56px 1fr; /* Harvey: keep dark rail on phone */
    width: 100%;
    border-radius: 12px;
    max-height: none; /* show full 2×2 Command Center like Harvey */
    overflow: hidden;
  }
  .ph-side {
    display: flex;
    padding: 10px 6px 10px;
    gap: 2px;
    align-items: stretch;
  }
  .ph-brand {
    justify-content: center;
    margin-bottom: 10px;
    padding: 0 0 10px;
  }
  .ph-brand-name,
  .ph-nav-label,
  .ph-side-foot { display: none; }
  .ph-mark {
    width: 30px;
    height: 30px;
    font-size: 10px;
  }
  .ph-nav-item {
    justify-content: center;
    padding: 9px 6px;
    font-size: 0; /* icon-only rail */
    gap: 0;
    border-radius: 8px;
  }
  .ph-nav-item .ph-ico {
    width: 16px;
    height: 16px;
  }
  .ph-main {
    padding: 10px 9px 12px;
    gap: 8px;
  }
  .ph-tabs {
    width: auto;
    display: inline-flex;
    align-self: flex-start;
  }
  .ph-tab {
    flex: 0 0 auto;
    min-height: 32px;
    padding: 5px 9px;
    font-size: 11.5px;
    touch-action: manipulation;
  }
  .ph-cc-title { font-size: 17px; }
  .ph-cc-actions .ph-link-fake { display: none; }
  .ph-charts,
  .ph-charts--quad {
    grid-template-columns: 1fr 1fr;
    gap: 7px;
  }
  .ph-chart { padding: 8px 8px 6px; }
  .ph-chart-stat { font-size: 18px; }
  .ph-bars,
  .ph-spark,
  .ph-hbars { height: 44px; }
  .ph-cc-sub { font-size: 11px; }
  .ph-cc-actions .ph-cta-fake--sm { padding: 5px 9px; }
  .ph-alert {
    font-size: 10.5px;
    padding: 6px 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .ph-filters { max-width: 100%; overflow: hidden; }
  .ph-table-head,
  .ph-table-row { grid-template-columns: 1.4fr auto; }
  .ph-table-head span:nth-child(2),
  .ph-table-row .ph-cat { display: none; }

  /* ---- Sections ---- */
  .services { padding: 64px 0; }
  .cards { grid-template-columns: 1fr; }
  .svc-grid { grid-template-columns: 1fr 1fr; gap: 1px; }
  .svc-card {
    padding: 28px 20px 32px;
    gap: 12px;
    min-height: 0;
  }
  .svc-card h3 { font-size: 22px; }
  .svc-link {
    min-height: var(--tap-target-min);
    display: inline-flex;
    align-items: center;
  }

  .how { padding: 56px 0; }
  .how-steps { grid-template-columns: 1fr; }
  .how-step {
    border-right: 0;
    padding: 24px 0;
  }

  .trust { padding: 64px 0 56px; }
  .trust-features { grid-template-columns: 1fr; }
  .trust-feature {
    border-right: 0;
    border-bottom: 1px solid rgba(245, 244, 240, 0.14);
    padding: 24px 0;
  }
  .trust-feature:first-child { padding-top: 0; }
  .trust-feature:last-child {
    border-bottom: 0;
    padding-bottom: 0;
  }
  .trust-feature:not(:first-child) { padding-left: 0; }
  .trust-feature p { max-width: 48ch; }
  .trust-marks { gap: 24px 28px; }
  .trust-qual-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .trust-qual-row dd { text-align: left; }

  .footer {
    padding: 48px 0 calc(28px + env(safe-area-inset-bottom, 0px));
  }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .close-inner { flex-direction: column; align-items: flex-start; gap: 20px; }
  .close { padding-bottom: calc(48px + env(safe-area-inset-bottom, 0px)); }
}

@media (max-width: 640px) {
  .svc-grid { grid-template-columns: 1fr; }
  .svc-card { padding: 24px 20px 28px; }
  .section-head h2 { font-size: clamp(28px, 8vw, 36px); }

  /* Portal hero keeps Command Center density (charts + rail) on phone */
  .ph-cta-fake--sm { padding: 6px 10px; font-size: 11px; }
  .ph-activity-row:nth-child(n+4) { display: none; }

  /* Drawer goes full-bleed sheet on tablet-phone */
  .nav.is-open .nav-links,
  .nav.is-open .nav-actions {
    width: 100%;
    border-left: 0;
    box-shadow: none;
  }
  .nav.is-open .nav-links {
    padding-left: max(24px, env(safe-area-inset-left, 0px));
    padding-right: max(24px, env(safe-area-inset-right, 0px));
  }
  .nav.is-open .nav-actions {
    padding-left: max(24px, env(safe-area-inset-left, 0px));
    padding-right: max(24px, env(safe-area-inset-right, 0px));
  }
}

/* iPhone-class widths — 390×844 / 430×932 mental model */
@media (max-width: 430px) {
  :root {
    --home-gutter: 16px;
    --nav-h: 56px;
  }

  .announce {
    font-size: 11.5px;
    gap: 8px;
    padding-left: max(16px, env(safe-area-inset-left, 0px));
    padding-right: max(16px, env(safe-area-inset-right, 0px));
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .announce-kicker { flex-shrink: 0; }
  .announce > span[aria-hidden] { flex-shrink: 0; }

  .brand { font-size: 20px; }

  .hero {
    padding: 48px 0 32px;
  }
  .hero-split {
    gap: 28px;
  }
  .hero h1 {
    font-size: clamp(34px, 8.8vw, 42px);
    line-height: 1.08;
    letter-spacing: -0.03em;
  }
  .hero-line { display: block; }
  .hero-sub {
    font-size: 15px;
    line-height: 1.55;
  }
  .hero-cta { margin-top: 26px; }
  .hero-cta .btn {
    width: auto; /* compact like Harvey Request a Demo */
    min-height: 48px;
    font-size: 15px;
    padding-inline: 20px;
  }

  .product {
    padding: 44px 0 40px; /* air between CTA and stage */
  }
  .product-stage {
    padding: 18px 14px 24px;
  }
  .hero-shader {
    border-radius: 12px;
  }
  .portal-hero {
    border-radius: 12px;
    max-height: none;
    grid-template-columns: 52px 1fr;
  }
  .ph-main { padding: 9px 8px 10px; gap: 7px; }
  .ph-cc-title { font-size: 15.5px; letter-spacing: -0.018em; }
  .ph-cc-sub { font-size: 11px; }
  .ph-chart-stat { font-size: 16px; }
  .ph-chart-head h4 { font-size: 10.5px; }
  .ph-bars,
  .ph-spark,
  .ph-hbars { height: 42px; }
  .ph-filter { padding: 3px 7px; font-size: 10.5px; }

  .services,
  .how { padding: 48px 0; }
  .trust { padding: 48px 0 40px; }

  .nav.is-open .nav-links > a {
    font-size: 24px;
    padding: 16px 2px;
  }

  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .close .btn { width: 100%; }
}

@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-cta .btn { width: auto; } /* homepage hero: compact, left-aligned */
  .close .btn { width: 100%; }
}

/* ==========================================================================
   Shared page chrome extensions (Harvey-live light across marketing site)
   ========================================================================== */

.nav-links a.is-active { color: var(--ink); }

/* Page hero (inner pages) */
.page-hero {
  padding: clamp(56px, 10vh, 96px) 0 clamp(40px, 6vh, 64px);
  border-bottom: 1px solid var(--home-rule);
  text-align: left;
}
.page-hero.center { text-align: center; }
.page-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(15, 14, 13, 0.45);
  margin-bottom: 20px;
}
.page-hero h1 {
  font-size: clamp(36px, 5.5vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  max-width: 18ch;
}
.page-hero.center h1 { margin-inline: auto; }
.page-sub {
  margin-top: 20px;
  max-width: 48ch;
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.6;
  color: var(--home-soft);
}
.page-hero.center .page-sub { margin-inline: auto; }

/* Prose / long-form on ink */
.prose {
  max-width: 68ch;
  margin: 0 auto;
  padding: clamp(48px, 8vh, 80px) 0;
  color: rgba(15, 14, 13, 0.72);
  font-size: 16px;
  line-height: 1.7;
}
.prose h2 {
  font-size: clamp(24px, 3vw, 30px);
  color: var(--ink);
  margin: 48px 0 16px;
  letter-spacing: -0.015em;
}
.prose h3 {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin: 28px 0 10px;
}
.prose p + p { margin-top: 16px; }
.prose ul {
  list-style: disc;
  padding-left: 1.25em;
  margin: 12px 0 16px;
}
.prose li + li { margin-top: 8px; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { opacity: 1; color: var(--ink); }
.prose strong { color: var(--ink); font-weight: 500; }

/* About */
.team {
  padding: clamp(48px, 8vh, 80px) 0;
  border-bottom: 1px solid var(--home-rule);
}
.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--home-rule);
  border: 1px solid var(--home-rule);
}
.team-card {
  background: var(--page-elevated);
  padding: 40px 32px 44px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.team-photo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 1px solid var(--gray-800, #33312c);
}
.team-initials {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 1px solid rgba(15, 14, 13, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.06em;
  color: rgba(15, 14, 13, 0.55);
}
.team-name { font-size: 28px; letter-spacing: -0.01em; }
.team-role {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  color: var(--home-muted);
}
.team-creds {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.team-creds span {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  padding: 4px 8px;
  border: 1px solid rgba(15, 14, 13, 0.14);
  color: rgba(15, 14, 13, 0.55);
}
.team-bio {
  font-size: 14.5px;
  line-height: 1.65;
  color: rgba(15, 14, 13, 0.62);
}
.team-list {
  display: grid;
  gap: 10px;
  margin-top: 4px;
}
.team-list li {
  font-size: 13.5px;
  color: var(--home-muted);
  padding-left: 14px;
  position: relative;
}
.team-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(15, 14, 13, 0.35);
}

.values {
  padding: clamp(56px, 9vh, 88px) 0;
  border-bottom: 1px solid var(--home-rule);
}
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--home-rule);
  border: 1px solid var(--home-rule);
  margin-top: 40px;
}
.value-card {
  background: var(--page-elevated);
  padding: 32px 28px 36px;
}
.value-card h3 { font-size: 22px; margin-bottom: 12px; }
.value-card p {
  font-size: 14.5px;
  color: rgba(15, 14, 13, 0.58);
  line-height: 1.55;
}

.story {
  padding: clamp(56px, 9vh, 88px) 0;
  border-bottom: 1px solid var(--home-rule);
}
.story-inner { max-width: 62ch; }
.story h2 {
  font-size: clamp(28px, 3.6vw, 36px);
  margin-bottom: 24px;
  letter-spacing: -0.015em;
}
.story p {
  font-size: 15.5px;
  line-height: 1.7;
  color: rgba(15, 14, 13, 0.68);
}
.story p + p { margin-top: 18px; }
.story-pull {
  margin: 32px 0;
  padding: 24px 0;
  border-top: 1px solid var(--home-rule);
  border-bottom: 1px solid var(--home-rule);
  font-family: var(--font-serif);
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.45;
  color: var(--ink);
  font-style: italic;
}

/* Schedule */
.schedule-block {
  padding: clamp(40px, 6vh, 64px) 0 clamp(72px, 10vh, 112px);
}
.schedule-frame {
  border: 1px solid var(--home-rule);
  background: var(--gray-100);
  min-height: 640px;
  overflow: hidden;
}
.schedule-frame > div { min-height: 640px; }
.schedule-note {
  margin-top: 20px;
  font-size: 13.5px;
  color: var(--home-faint);
  text-align: center;
}

/* Blog listing */
.blog-list {
  padding: clamp(40px, 6vh, 64px) 0 clamp(72px, 10vh, 112px);
}
.blog-featured {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding: 36px 0 48px;
  border-bottom: 1px solid var(--home-rule);
  margin-bottom: 48px;
}
.blog-featured .badge {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(15, 14, 13, 0.45);
}
.blog-featured h2 {
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.015em;
  max-width: 22ch;
}
.blog-featured p {
  max-width: 54ch;
  color: rgba(15, 14, 13, 0.62);
  font-size: 15.5px;
  line-height: 1.6;
}
.blog-featured-meta {
  display: flex;
  gap: 20px;
  align-items: center;
  font-size: 13.5px;
  color: var(--home-faint);
}
.blog-featured-meta a { color: rgba(15, 14, 13, 0.78); }
.blog-featured-meta a:hover { color: var(--ink); opacity: 1; }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--home-rule);
  border: 1px solid var(--home-rule);
}
.blog-card {
  background: var(--page-elevated);
  padding: 28px 24px 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: background 0.2s var(--ease);
}
.blog-card:hover { background: var(--white); opacity: 1; }
.blog-cat {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--home-faint);
}
.blog-card h3 {
  font-size: 22px;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.blog-card p {
  font-size: 14px;
  color: rgba(15, 14, 13, 0.55);
  line-height: 1.55;
  flex: 1;
}
.blog-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--home-faint);
  margin-top: 8px;
}
.blog-card-meta span:last-child { color: rgba(15, 14, 13, 0.72); }

/* Article pages */
.article-hero {
  padding: clamp(48px, 8vh, 80px) 0 40px;
  border-bottom: 1px solid var(--home-rule);
}
.article-hero .wrap { max-width: 720px; }
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  font-size: 13px;
  color: var(--home-faint);
  margin-bottom: 20px;
}
.article-hero h1 {
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  max-width: 20ch;
}
.article-lead {
  margin-top: 20px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--home-soft);
  max-width: 48ch;
}
.article-body {
  max-width: 680px;
  margin: 0 auto;
  padding: clamp(40px, 6vh, 64px) var(--home-gutter) clamp(64px, 10vh, 96px);
  color: rgba(15, 14, 13, 0.72);
  font-size: 16.5px;
  line-height: 1.75;
}
.article-body h2 {
  font-size: clamp(24px, 3vw, 30px);
  color: var(--ink);
  margin: 48px 0 16px;
  letter-spacing: -0.015em;
}
.article-body h3 {
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  margin: 32px 0 12px;
}
.article-body p + p { margin-top: 18px; }
.article-body ul, .article-body ol {
  padding-left: 1.3em;
  margin: 14px 0 18px;
}
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body li + li { margin-top: 8px; }
.article-body a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.article-body blockquote {
  margin: 28px 0;
  padding: 4px 0 4px 20px;
  border-left: 1px solid rgba(15, 14, 13, 0.18);
  font-family: var(--font-serif);
  font-size: 20px;
  font-style: italic;
  color: var(--ink);
  line-height: 1.45;
}
.article-body .callout,
.article-body .tip,
.article-body .warning {
  margin: 28px 0;
  padding: 20px 22px;
  border: 1px solid var(--home-rule);
  background: var(--gray-100);
  font-size: 15px;
  color: rgba(15, 14, 13, 0.7);
}
.article-footer-cta {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 var(--home-gutter) clamp(64px, 10vh, 96px);
}
.article-footer-cta .close-inner {
  border-top: 1px solid var(--home-rule);
  padding-top: 40px;
}

/* Service pages */
.service-hero {
  padding: clamp(56px, 10vh, 96px) 0 clamp(40px, 6vh, 64px);
  border-bottom: 1px solid var(--home-rule);
}
.service-hero .wrap { max-width: 720px; }
.service-hero h1 {
  font-size: clamp(36px, 5.5vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  max-width: 16ch;
}
.service-lead {
  margin-top: 20px;
  font-size: 17px;
  color: var(--home-soft);
  max-width: 48ch;
  line-height: 1.6;
}
.service-desc {
  margin-top: 14px;
  font-size: 15px;
  color: rgba(15, 14, 13, 0.58);
  max-width: 52ch;
  line-height: 1.6;
}
.service-cta { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }

.service-section {
  padding: clamp(48px, 8vh, 80px) 0;
  border-bottom: 1px solid var(--home-rule);
}
.service-section .section-head {
  text-align: left;
  max-width: 40ch;
  margin: 0 0 36px;
}
.service-section .section-head h2 {
  font-size: clamp(26px, 3.5vw, 34px);
}

.split-list {
  display: grid;
  gap: 0;
  border-top: 1px solid rgba(15, 14, 13, 0.1);
  max-width: 720px;
}
.split-list li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(15, 14, 13, 0.1);
  font-size: 14.5px;
  color: rgba(15, 14, 13, 0.68);
}
.split-list li::before {
  content: "→";
  color: rgba(15, 14, 13, 0.35);
  font-family: var(--font-mono);
  font-size: 12px;
  padding-top: 2px;
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--home-rule);
  border: 1px solid var(--home-rule);
  max-width: 800px;
}
.price-card {
  background: var(--page-elevated);
  padding: 32px 28px;
}
.price-card h3 { font-size: 22px; margin-bottom: 8px; }
.price-card .price {
  font-family: var(--font-serif);
  font-size: 36px;
  letter-spacing: -0.02em;
  margin: 16px 0 8px;
}
.price-card .price span {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--home-muted);
}
.price-card p {
  font-size: 14px;
  color: rgba(15, 14, 13, 0.55);
  line-height: 1.55;
}
.price-card ul {
  margin-top: 20px;
  display: grid;
  gap: 10px;
}
.price-card li {
  font-size: 13.5px;
  color: rgba(15, 14, 13, 0.65);
  padding-left: 14px;
  position: relative;
}
.price-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(15, 14, 13, 0.35);
}

.client-tabs {
  display: inline-flex;
  gap: 0;
  margin-top: 28px;
  border: 1px solid rgba(15, 14, 13, 0.14);
  border-radius: var(--radius-control);
  overflow: hidden;
}
.client-tab {
  background: transparent;
  border: 0;
  color: rgba(15, 14, 13, 0.55);
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 500;
  padding: 10px 18px;
  cursor: pointer;
}
.client-tab.active {
  background: var(--ink);
  color: #fff;
}
.tab-panel { display: none; }
.tab-panel.active { display: block; }

.info-note {
  max-width: 720px;
  padding: 20px 22px;
  border: 1px solid var(--home-rule);
  background: var(--gray-100);
  margin-bottom: 28px;
  font-size: 14.5px;
  color: rgba(15, 14, 13, 0.68);
  line-height: 1.55;
}
.info-note strong { color: var(--ink); font-weight: 500; display: block; margin-bottom: 6px; }

.req-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--home-rule);
  border: 1px solid var(--home-rule);
  max-width: 800px;
}
.req-card {
  background: var(--page-elevated);
  padding: 28px 24px;
}
.req-card h3 {
  font-size: 18px;
  margin-bottom: 14px;
}
.req-card ul { display: grid; gap: 10px; }
.req-card li {
  font-size: 13.5px;
  color: rgba(15, 14, 13, 0.62);
  line-height: 1.45;
}

/* Legal */
.legal-hero {
  padding: clamp(48px, 8vh, 72px) 0 32px;
  border-bottom: 1px solid var(--home-rule);
}
.legal-hero h1 {
  font-size: clamp(32px, 4.5vw, 44px);
  letter-spacing: -0.02em;
}
.legal-updated {
  margin-top: 12px;
  font-size: 13px;
  color: var(--home-faint);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

/* Resources */
.res-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 32px;
}
.res-pill {
  font-size: 13px;
  padding: 8px 14px;
  border: 1px solid rgba(15, 14, 13, 0.14);
  border-radius: 999px;
  color: rgba(15, 14, 13, 0.7);
}
.res-pill:hover { color: var(--ink); border-color: rgba(15, 14, 13, 0.4); opacity: 1; }

.res-section {
  padding: clamp(48px, 8vh, 80px) 0;
  border-top: 1px solid var(--home-rule);
}
.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--home-rule);
  border: 1px solid var(--home-rule);
  margin-top: 40px;
}
.tool-card {
  background: var(--page-elevated);
  padding: 28px 24px 32px;
}
.tool-card h3 { font-size: 20px; margin: 0 0 8px; }
.tool-card > p {
  font-size: 13.5px;
  color: rgba(15, 14, 13, 0.55);
  margin-bottom: 20px;
  line-height: 1.5;
}
.tool-input-group { margin-bottom: 14px; }
.tool-input-group label {
  display: block;
  font-size: 12px;
  color: var(--home-faint);
  margin-bottom: 6px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-family: var(--font-mono);
}
.tool-input-group input,
.tool-input-group select {
  width: 100%;
  background: var(--gray-100);
  border: 1px solid rgba(15, 14, 13, 0.14);
  color: var(--ink);
  padding: 10px 12px;
  border-radius: var(--radius-control);
  font-family: var(--font-sans);
  font-size: 14px;
}
.tool-input-group input:focus,
.tool-input-group select:focus {
  outline: 2px solid var(--ivory);
  outline-offset: 1px;
}
.tool-result {
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid var(--home-rule);
  background: var(--gray-100);
  font-size: 14px;
  color: rgba(15, 14, 13, 0.75);
}
.tool-result strong { color: var(--ink); font-weight: 500; }

.guides-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 40px;
  max-width: 800px;
}
.guide-card {
  border: 1px solid var(--home-rule);
  padding: 28px 28px 8px;
}
.guide-card h3 { font-size: 24px; margin-bottom: 8px; }
.guide-card > p {
  font-size: 14px;
  color: var(--home-muted);
  margin-bottom: 20px;
}
.guide-section {
  border-top: 1px solid var(--home-rule);
  padding: 16px 0;
}
.guide-section summary {
  cursor: pointer;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink);
  list-style: none;
}
.guide-section summary::-webkit-details-marker { display: none; }
.guide-section-text {
  margin-top: 10px;
  font-size: 14px;
  color: rgba(15, 14, 13, 0.6);
  line-height: 1.6;
}

.faq-list { max-width: 720px; margin-top: 36px; }
.faq-item {
  border-top: 1px solid rgba(15, 14, 13, 0.1);
}
.faq-item:last-child { border-bottom: 1px solid rgba(15, 14, 13, 0.1); }
.faq-item summary {
  cursor: pointer;
  padding: 18px 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-answer {
  padding: 0 0 18px;
  font-size: 14.5px;
  color: rgba(15, 14, 13, 0.62);
  line-height: 1.6;
}

.deadline-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 32px;
  font-size: 14px;
}
.deadline-table th,
.deadline-table td {
  text-align: left;
  padding: 14px 12px;
  border-bottom: 1px solid rgba(15, 14, 13, 0.1);
}
.deadline-table th {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--home-faint);
  font-weight: 500;
}
.deadline-table td { color: rgba(15, 14, 13, 0.7); }
.deadline-table td:first-child { color: var(--ink); }

/* Logo page utilitarian */
.logo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--home-rule);
  border: 1px solid var(--home-rule);
  margin: 40px 0;
}
.logo-card {
  background: var(--page-elevated);
  padding: 32px 28px;
}
.logo-card.light-bg { background: var(--ivory); color: var(--ink); }
.logo-card h3 { font-size: 18px; margin-bottom: 16px; }
.logo-card img { max-height: 80px; margin-bottom: 16px; }
.logo-card p { font-size: 13.5px; color: inherit; opacity: 0.7; }

@media (max-width: 860px) {
  .team-grid,
  .values-grid,
  .blog-grid,
  .tools-grid,
  .price-grid,
  .req-grid,
  .logo-grid { grid-template-columns: 1fr; }
}
