/* v69 — Cohere
 * Self-contained stylesheet. No shared tokens, no theme system.
 * Implements DESIGN.md (Cohere alpha) for a single CV+portfolio pair.
 *
 * Fonts: CohereText → Space Grotesk (display); Unica77 → Inter (UI);
 *        CohereMono → JetBrains Mono (technical labels).
 */

:root {
  /* — DESIGN.md token mirrors (kept local; do not export) — */
  --c-primary: #17171c;
  --c-black: #000000;
  --c-ink: #212121;
  --c-deep-green: #003c33;
  --c-dark-navy: #071829;
  --c-canvas: #ffffff;
  --c-soft-stone: #eeece7;
  --c-pale-green: #edfce9;
  --c-pale-blue: #f1f5ff;
  --c-hairline: #d9d9dd;
  --c-border-light: #e5e7eb;
  --c-card-border: #f2f2f2;
  --c-muted: #93939f;
  --c-slate: #75758a;
  --c-body-muted: #616161;
  --c-action-blue: #1863dc;
  --c-focus-blue: #4c6ee6;
  --c-coral: #ff7759;
  --c-coral-soft: #ffad9b;
  --c-on-dark: #ffffff;

  --f-display: "Space Grotesk", "Inter", ui-sans-serif, system-ui, sans-serif;
  --f-body: "Inter", "Arial", ui-sans-serif, system-ui, sans-serif;
  --f-mono: "JetBrains Mono", "Menlo", monospace;
}

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

html {
  -webkit-text-size-adjust: 100%;
  /* Floor at smallest common mobile viewport; below this, horizontal scroll instead of squish. */
  min-width: 320px;
}

body {
  background: var(--c-canvas);
  color: var(--c-ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: var(--c-ink);
  color: var(--c-canvas);
}

a {
  color: inherit;
  text-decoration: none;
}
em {
  font-style: italic;
}
hr {
  border: 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}
.container-narrow {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ─────────────────────────────────────────── */
/* TYPE primitives                              */
/* ─────────────────────────────────────────── */

.mono-label,
.mono-label-dark {
  font-family: var(--f-mono);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.28px;
  text-transform: uppercase;
  color: var(--c-slate);
}
.mono-label-dark {
  color: var(--c-coral);
}

.section-heading {
  font-family: var(--f-body);
  font-size: clamp(32px, 4.4vw, 48px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.48px;
  color: var(--c-ink);
}

.section-display {
  font-family: var(--f-body);
  font-size: clamp(36px, 5.5vw, 60px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -1.2px;
}

/* ─────────────────────────────────────────── */
/* ANNOUNCEMENT BAR                             */
/* ─────────────────────────────────────────── */

.announcement-bar {
  height: 36px;
  background: var(--c-black);
  color: var(--c-on-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  font-size: 12px;
  line-height: 1.4;
  position: relative;
}
.ann-copy em {
  color: var(--c-coral);
  font-style: italic;
}
.ann-link {
  text-decoration: underline;
  text-underline-offset: 3px;
  margin-left: 6px;
}
.ann-close {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: 0;
  color: var(--c-on-dark);
  font-size: 18px;
  line-height: 1;
  opacity: 0.6;
  cursor: not-allowed;
}

/* ─────────────────────────────────────────── */
/* GLOBAL NAV (three-zone)                      */
/* ─────────────────────────────────────────── */

.globalnav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
  padding: 20px 32px;
  border-bottom: 1px solid var(--c-card-border);
  background: var(--c-canvas);
  position: sticky;
  top: 0;
  z-index: 20;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  justify-self: start;
}
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  background: var(--c-primary);
  color: var(--c-on-dark);
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  border-radius: 8px;
}
.brand-name {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.nav-center {
  display: flex;
  justify-content: center;
  gap: 28px;
  grid-column: 2;
  justify-self: center;
}
.nav-center a {
  font-size: 14px;
  color: var(--c-body-muted);
  transition: color 0.15s;
}
.nav-center a:hover {
  color: var(--c-ink);
}
.nav-center a[aria-current="page"] {
  color: var(--c-ink);
  font-weight: 500;
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
  grid-column: 3;
  justify-self: end;
}
.link-underline {
  font-size: 14px;
  color: var(--c-ink);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: border-color 0.15s;
}
.link-underline:hover {
  border-bottom-color: var(--c-ink);
}
.link-underline-inverted {
  font-size: 14px;
  color: var(--c-on-dark);
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  padding-bottom: 2px;
  transition: border-color 0.15s;
}
.link-underline-inverted:hover {
  border-bottom-color: var(--c-on-dark);
}

/* CTAs */
.btn-primary,
.btn-primary-inverted {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 32px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.71;
  letter-spacing: 0;
  transition:
    transform 0.15s,
    background 0.15s;
}
.btn-primary {
  background: var(--c-primary);
  color: var(--c-on-dark);
}
.btn-primary:hover {
  background: var(--c-black);
  transform: translateY(-1px);
}
.btn-primary-inverted {
  background: var(--c-canvas);
  color: var(--c-ink);
}
.btn-primary-inverted:hover {
  background: var(--c-soft-stone);
  transform: translateY(-1px);
}
.btn-secondary {
  display: inline-block;
  padding: 8px 0;
  border-bottom: 1px solid var(--c-ink);
  font-size: 14px;
  font-weight: 500;
  color: var(--c-ink);
  transition: opacity 0.15s;
}
.btn-secondary:hover {
  opacity: 0.7;
}

/* ─────────────────────────────────────────── */
/* HERO                                         */
/* ─────────────────────────────────────────── */

.hero {
  padding: 96px 0 80px;
}
.hero .mono-label {
  margin-bottom: 28px;
}
.hero-display {
  font-family: var(--f-display);
  font-size: clamp(48px, 9vw, 96px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -1.92px;
  color: var(--c-ink);
  max-width: 16ch;
}
.hero-display em {
  color: var(--c-deep-green);
  font-style: italic;
}
.hero .lede {
  margin-top: 32px;
  font-size: 19px;
  line-height: 1.5;
  color: var(--c-body-muted);
  max-width: 60ch;
}
.hero-cta {
  display: flex;
  gap: 24px;
  align-items: center;
  margin-top: 40px;
  flex-wrap: wrap;
}

.hero-media {
  margin-top: 80px;
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 16px;
}

.hero-photo-card {
  background: var(--c-soft-stone);
  border-radius: 22px;
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}
.hero-photo-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at 70% 30%,
    rgba(0, 60, 51, 0.1),
    transparent 60%
  );
}
.photo-frame {
  text-align: center;
  position: relative;
  z-index: 1;
}
.monogram {
  font-family: var(--f-display);
  font-size: clamp(120px, 18vw, 200px);
  line-height: 0.9;
  letter-spacing: -0.06em;
  color: var(--c-deep-green);
  font-weight: 400;
}
.photo-caption {
  margin-top: 24px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-body-muted);
}

.agent-console-card {
  background: var(--c-primary);
  color: var(--c-on-dark);
  border-radius: 8px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 14px;
}
.console-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 4px;
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-coral);
  box-shadow: 0 0 0 4px rgba(255, 119, 89, 0.15);
}
.console-title {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-coral);
}
.console-meta {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-left: auto;
}
.console-row {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  align-items: baseline;
}
.console-key {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}
.console-val {
  color: var(--c-on-dark);
  font-size: 14px;
}
.console-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 4px;
}
.chip {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.85);
}
.console-prompt {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.prompt-glyph {
  font-family: var(--f-mono);
  color: var(--c-coral);
  font-size: 14px;
  line-height: 1.4;
}
.prompt-text {
  font-size: 14px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.78);
}

/* Inline stand-in for the letters "AI" (ai-symbol.js). */
.ai-symbol {
  display: inline-flex;
  vertical-align: -0.12em;
  line-height: 0;
  color: var(--c-coral);
}
.ai-symbol-svg {
  width: 1.15em;
  height: auto;
  display: block;
}
.ai-symbol-glyph {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.2;
  vector-effect: non-scaling-stroke;
}
.ai-symbol-label {
  font-family: var(--f-mono);
  font-size: 4.6px;
  font-weight: 500;
  fill: currentColor;
  letter-spacing: -0.15px;
  dominant-baseline: central;
  text-anchor: middle;
}

/* ─────────────────────────────────────────── */
/* TRUST STRIP                                  */
/* ─────────────────────────────────────────── */

.trust-strip {
  padding: 96px 0 96px;
  border-top: 1px solid var(--c-card-border);
}
.trust-eyebrow {
  text-align: center;
  font-size: 14px;
  color: var(--c-body-muted);
  margin-bottom: 40px;
}
.trust-logos {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 40px 56px;
}
.trust-logos span {
  font-family: var(--f-mono);
  font-size: 16px;
  letter-spacing: 0.04em;
  color: var(--c-ink);
  opacity: 0.85;
}

/* ─────────────────────────────────────────── */
/* DARK FEATURE BAND                            */
/* ─────────────────────────────────────────── */

.dark-band {
  background: var(--c-pale-green);
  padding: 80px 0;
}
.dark-band-inner {
  background: var(--c-deep-green);
  color: var(--c-on-dark);
  border-radius: 22px;
  padding: clamp(40px, 6vw, 80px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.dark-band-lead {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.dark-band-lead .section-display {
  color: var(--c-on-dark);
}
.dark-band-lead .body-large {
  font-size: 18px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.78);
  max-width: 38ch;
}
.dark-band-lead em {
  color: var(--c-coral);
  font-style: italic;
}
.dark-band-cta {
  display: flex;
  gap: 24px;
  align-items: center;
  margin-top: 8px;
  flex-wrap: wrap;
}
.dark-band-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.dark-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 24px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.dark-card .mono-label-dark {
  color: var(--c-coral);
  margin-bottom: 4px;
}

/* ─────────────────────────────────────────── */
/* SECTION HEADER block                         */
/* ─────────────────────────────────────────── */

.section-header {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 56px;
  max-width: 56rem;
}
.section-header .section-heading {
  letter-spacing: -0.48px;
}
.section-sub {
  font-size: 18px;
  color: var(--c-body-muted);
  line-height: 1.5;
}

.link-blue {
  color: var(--c-action-blue);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
  transition: opacity 0.15s;
}
.link-blue:hover {
  opacity: 0.7;
}

/* ─────────────────────────────────────────── */
/* RESEARCH TABLE (experience + publications)   */
/* ─────────────────────────────────────────── */

.research {
  padding: 100px 0;
}
.research + .research {
  padding-top: 0;
}

.research-table {
  list-style: none;
  border-top: 1px solid var(--c-hairline);
}
.research-row {
  display: grid;
  grid-template-columns: 220px 1fr 220px;
  gap: 40px;
  padding: 32px 0;
  border-bottom: 1px solid var(--c-hairline);
  align-items: start;
}
.research-row.compact {
  grid-template-columns: 140px 1fr 200px;
  padding: 24px 0;
}
.row-period {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.period-range {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--c-ink);
}
.period-tag {
  font-size: 13px;
  color: var(--c-body-muted);
}
.row-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.row-title {
  font-family: var(--f-body);
  font-size: clamp(20px, 2.2vw, 24px);
  line-height: 1.3;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--c-ink);
}
.row-title a {
  color: var(--c-action-blue);
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
}
.row-lede {
  font-size: 16px;
  line-height: 1.5;
  color: var(--c-body-muted);
  max-width: 60ch;
}
.row-bullets {
  list-style: none;
  margin-top: 4px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.row-bullets li {
  font-size: 14px;
  line-height: 1.55;
  color: var(--c-body-muted);
  padding-left: 18px;
  position: relative;
}
.row-bullets li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--c-coral);
}
.row-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-content: start;
}
.row-chip {
  font-family: var(--f-body);
  font-size: 13px;
  padding: 4px 12px;
  border-radius: 30px;
  border: 1px solid var(--c-hairline);
  color: var(--c-body-muted);
  background: transparent;
}

/* ─────────────────────────────────────────── */
/* CAPABILITY GRID                              */
/* ─────────────────────────────────────────── */

.capabilities {
  padding: 100px 0;
  background: var(--c-canvas);
}
.cap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 1px;
  background: var(--c-hairline);
  border: 1px solid var(--c-hairline);
}
.cap-card {
  background: var(--c-canvas);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cap-icon {
  color: var(--c-deep-green);
  margin-bottom: 16px;
}
.cap-title {
  font-family: var(--f-body);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--c-ink);
}
.cap-meta {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--c-slate);
}
.cap-body {
  font-size: 15px;
  line-height: 1.55;
  color: var(--c-body-muted);
  margin-bottom: 12px;
  flex: 1;
}

/* ─────────────────────────────────────────── */
/* PRODUCT CARDS (warm stone)                   */
/* ─────────────────────────────────────────── */

.products {
  padding: 100px 0 64px;
}

/* Colophon — compact "/elsewhere" strip for languages, music, community.
   Sits between credentials section and publications; lighter weight than cards. */
.colophon {
  padding: 0 0 100px;
}
.colophon-table {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0;
  max-width: 56rem;
}
.colophon-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 32px;
  align-items: baseline;
  padding: 16px 0;
  border-top: 1px solid var(--c-hairline);
}
.colophon-row:last-child {
  border-bottom: 1px solid var(--c-hairline);
}
.colophon-row dt {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-body-muted);
  margin: 0;
}
.colophon-row dd {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--c-ink);
}
.colophon-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.colophon-list li {
  display: inline;
}
.colophon-list li + li::before {
  content: " · ";
  color: var(--c-body-muted);
  margin: 0 4px;
}
@media (max-width: 640px) {
  .colophon-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

/* Dark-band recognition line — small coral mono label under CTAs. */
.dark-band-recognition {
  margin-top: 0;
  letter-spacing: 0.16em;
}
.dark-band-recognition a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.3);
  text-underline-offset: 3px;
}
.dark-band-recognition a:hover {
  text-decoration-color: var(--c-coral);
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 24px;
}
.product-card {
  background: var(--c-soft-stone);
  color: var(--c-ink);
  border-radius: 8px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.product-eyebrow {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-body-muted);
}
.product-title {
  font-family: var(--f-body);
  font-size: 24px;
  line-height: 1.25;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.product-meta {
  font-size: 14px;
  color: var(--c-body-muted);
}
.product-rule {
  height: 1px;
  background: rgba(33, 33, 33, 0.12);
  margin: 4px 0;
}
.product-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.product-list li {
  font-size: 14px;
  line-height: 1.5;
  color: var(--c-ink);
  padding-left: 22px;
  position: relative;
}
.product-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--c-deep-green);
  font-size: 12px;
}
.product-sub {
  font-size: 13px;
  color: var(--c-body-muted);
  margin-top: 4px;
}
.cert-issuer {
  color: var(--c-body-muted);
  font-size: 13px;
}

/* ─────────────────────────────────────────── */
/* FOOTER NEWSLETTER                            */
/* ─────────────────────────────────────────── */

.footer-band {
  background: var(--c-primary);
  color: var(--c-on-dark);
  padding: 96px 0 0;
  margin-top: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 80px;
  padding-bottom: 80px;
}
.footer-eyebrow {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-coral);
  margin-bottom: 24px;
}
.footer-headline {
  font-family: var(--f-display);
  font-size: clamp(32px, 4.8vw, 56px);
  line-height: 1.05;
  letter-spacing: -1.2px;
  font-weight: 400;
  margin-bottom: 16px;
}
.footer-sub {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
}
.footer-contact {
  display: flex;
  flex-direction: column;
}
.contact-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 18px;
  color: var(--c-on-dark);
  transition: padding 0.2s;
}
.contact-line:first-child {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.contact-line .mono-meta {
  font-family: var(--f-mono);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.04em;
}
.contact-line:hover {
  padding-left: 8px;
}
.contact-line:hover .mono-meta {
  color: var(--c-coral);
}

.footer-meta {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px 32px;
  display: flex;
  justify-content: space-between;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

/* ─────────────────────────────────────────── */
/* PORTFOLIO-specific surfaces                  */
/* ─────────────────────────────────────────── */

.portfolio-hero {
  padding: 96px 0 56px;
}
.portfolio-hero .mono-label {
  margin-bottom: 24px;
}
.portfolio-hero h1 {
  font-family: var(--f-display);
  font-size: clamp(48px, 7.5vw, 88px);
  line-height: 1;
  letter-spacing: -1.6px;
  font-weight: 400;
  max-width: 18ch;
}
.portfolio-hero h1 em {
  color: var(--c-deep-green);
  font-style: italic;
}
.portfolio-hero .lede {
  margin-top: 32px;
  font-size: 19px;
  line-height: 1.5;
  color: var(--c-body-muted);
  max-width: 60ch;
}

.blog-filters {
  padding: 24px 0 80px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.filter-chip {
  display: inline-flex;
  align-items: center;
  font-family: var(--f-body);
  font-size: clamp(22px, 2.6vw, 28px);
  line-height: 1.2;
  letter-spacing: -0.32px;
  font-weight: 400;
  padding: 8px 18px;
  border-radius: 8px;
  border: 1.5px solid var(--c-coral-soft);
  color: var(--c-coral);
  background: transparent;
  transition:
    background 0.15s,
    color 0.15s,
    border-color 0.15s;
}
.filter-chip.is-active {
  background: var(--c-coral);
  color: var(--c-ink);
  border-color: var(--c-coral);
}
.filter-chip:hover {
  background: rgba(255, 119, 89, 0.06);
}

.case {
  padding: 80px 0 120px;
  border-top: 1px solid var(--c-hairline);
}
.case.is-hidden {
  display: none;
}
.case-meta-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 56px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--c-hairline);
}
.case-meta-row > div {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.case-meta-label {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-slate);
}
.case-meta-val {
  font-size: 16px;
  color: var(--c-ink);
  line-height: 1.4;
}

.case-title {
  font-family: var(--f-display);
  font-size: clamp(40px, 6.5vw, 72px);
  line-height: 1;
  letter-spacing: -1.44px;
  font-weight: 400;
  color: var(--c-ink);
  margin-bottom: 24px;
}
.case-title em {
  color: var(--c-deep-green);
  font-style: italic;
}

.case-deck {
  font-size: clamp(22px, 2.6vw, 28px);
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--c-ink);
  margin-bottom: 56px;
  max-width: 42ch;
  white-space: pre-line;
}

.case-media {
  background: var(--c-soft-stone);
  border-radius: 22px;
  aspect-ratio: 16 / 9;
  margin: 56px 0 64px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  --case-media-filter: none;
  --case-media-overlay: radial-gradient(
    ellipse at 30% 70%,
    rgba(0, 60, 51, 0.1),
    transparent 60%
  );
}
.case-media.green {
  background: var(--c-deep-green);
  --case-media-overlay: radial-gradient(
    ellipse at 70% 30%,
    rgba(255, 119, 89, 0.18),
    transparent 60%
  );
}
/* Unify disparate screenshots and video frames under one Cohere wash. */
.case-media:has(.case-media-image),
.case-media:has(.case-media-video),
.case-media:has(.case-media-embed) {
  --case-media-filter: saturate(0.84) contrast(1.06) brightness(0.95);
  --case-media-overlay:
    linear-gradient(
      155deg,
      rgba(0, 60, 51, 0.3) 0%,
      rgba(0, 60, 51, 0.08) 40%,
      rgba(255, 119, 89, 0.14) 100%
    ),
    radial-gradient(
      ellipse at 75% 18%,
      rgba(255, 119, 89, 0.16),
      transparent 55%
    ),
    radial-gradient(ellipse at 12% 82%, rgba(0, 60, 51, 0.22), transparent 52%);
}
.case-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--case-media-overlay);
  pointer-events: none;
}
.case-media-label {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-body-muted);
  position: relative;
  z-index: 1;
}
.case-media.green .case-media-label {
  color: rgba(255, 255, 255, 0.6);
}
.case-media-glyph {
  font-family: var(--f-display);
  font-size: clamp(80px, 14vw, 160px);
  line-height: 0.8;
  letter-spacing: -0.08em;
  color: rgba(0, 60, 51, 0.18);
  position: relative;
  z-index: 1;
}
.case-media.green .case-media-glyph {
  color: rgba(255, 255, 255, 0.12);
}

.case-media-image,
.case-media-video,
.case-media-embed {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: var(--case-media-filter);
}
.case-media-embed {
  border: 0;
}
.case-media:has(.case-media-image) .case-media-glyph,
.case-media:has(.case-media-video) .case-media-glyph,
.case-media:has(.case-media-embed) .case-media-glyph {
  display: none;
}
.case-media:has(.case-media-image) .case-media-label,
.case-media:has(.case-media-video) .case-media-label,
.case-media:has(.case-media-embed) .case-media-label {
  position: absolute;
  left: 24px;
  bottom: 20px;
  z-index: 2;
}

.case-body {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 36rem;
  margin: 0 auto;
}
.case-body h3 {
  font-family: var(--f-body);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--c-ink);
  margin: 40px 0 12px;
  letter-spacing: -0.01em;
}
.case-body h3:first-of-type {
  margin-top: 0;
}
.case-body p {
  font-size: 18px;
  line-height: 1.55;
  color: var(--c-ink);
  margin-bottom: 18px;
}
.case-body p em {
  font-style: italic;
  color: var(--c-deep-green);
}
.case-body strong {
  font-weight: 500;
}

.case-pullquote {
  margin: 56px 0;
  padding-left: 24px;
  border-left: 2px solid var(--c-coral);
  font-family: var(--f-display);
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.3;
  letter-spacing: -0.02em;
  font-style: italic;
  color: var(--c-ink);
  max-width: 32ch;
}

.case-footer {
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--c-hairline);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.case-footer-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.case-stack-line {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--c-body-muted);
  line-height: 1.6;
}
.case-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.case-links a {
  font-size: 14px;
  color: var(--c-action-blue);
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
  align-self: flex-start;
}

.coda {
  padding: 120px 0 80px;
  text-align: center;
  background: var(--c-pale-blue);
}
.coda .mono-label {
  margin-bottom: 24px;
}
.coda h2 {
  font-family: var(--f-display);
  font-size: clamp(36px, 5.5vw, 60px);
  line-height: 1;
  letter-spacing: -1.2px;
  font-weight: 400;
  max-width: 22ch;
  margin: 0 auto 32px;
}
.coda .btn-primary {
  margin-top: 16px;
}

/* ─────────────────────────────────────────── */
/* RESPONSIVE                                   */
/* ─────────────────────────────────────────── */

@media (max-width: 768px) {
  .globalnav {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    padding: 14px 20px;
  }
  .brand {
    grid-column: 1;
  }
  .nav-center {
    grid-column: 1;
    grid-row: 2;
    justify-self: stretch;
    flex-wrap: wrap;
    gap: 8px 20px;
  }
  .nav-right {
    grid-column: 1;
    grid-row: 3;
    justify-self: start;
  }
}

@media (max-width: 1024px) {
  .globalnav {
    padding: 16px 24px;
  }
  .nav-center {
    gap: 20px;
  }
  .container,
  .container-narrow {
    padding: 0 24px;
  }

  .hero-media {
    grid-template-columns: 1fr;
  }
  .dark-band-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .research-row,
  .research-row.compact {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .row-period {
    flex-direction: row;
    gap: 16px;
    align-items: baseline;
  }
  .row-chips {
    gap: 6px;
  }

  .case-meta-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  .case-footer {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 15px;
  }
  .announcement-bar {
    font-size: 11px;
    padding: 0 40px 0 16px;
  }
  .ann-copy {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .container,
  .container-narrow {
    padding: 0 20px;
  }

  .globalnav:has(.brand-mark) .brand-name {
    display: none;
  }
  .globalnav:not(:has(.brand-mark)) .brand-name {
    display: inline;
    font-size: 15px;
  }
  .nav-center {
    gap: 16px;
  }
  .nav-center a {
    font-size: 13px;
  }
  .nav-right {
    gap: 12px;
  }
  .link-underline {
    display: none;
  }

  .hero {
    padding: 56px 0 48px;
  }
  .hero-cta {
    gap: 12px;
  }
  .hero-cta .btn-primary,
  .hero-cta .btn-secondary {
    width: 100%;
    text-align: center;
  }
  .hero-media {
    margin-top: 48px;
    gap: 12px;
  }

  .trust-strip {
    padding: 64px 0;
  }
  .trust-logos {
    gap: 24px 32px;
    justify-content: flex-start;
  }

  .dark-band {
    padding: 48px 0;
  }
  .dark-band-inner {
    padding: 32px 24px;
    border-radius: 16px;
  }
  .dark-band-grid {
    grid-template-columns: 1fr;
  }

  .research,
  .capabilities,
  .products {
    padding: 72px 0;
  }
  .section-header {
    margin-bottom: 40px;
  }

  .footer-band {
    padding-top: 64px;
  }
  .footer-grid {
    padding-bottom: 56px;
  }
  .footer-meta {
    flex-direction: column;
    gap: 8px;
    padding: 24px 20px;
    text-align: center;
  }
  .footer-meta-right {
    text-align: center;
  }

  .case {
    padding: 56px 0 80px;
  }
  .case-meta-row {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 32px;
    padding-bottom: 24px;
  }
  .case-media {
    margin: 32px 0 40px;
    border-radius: 16px;
  }
  .case-pullquote {
    margin: 32px 0;
    padding-left: 16px;
  }
}

/* ─────────────────────────────────────────── */
/* DARK THEME                                   */
/* Activated by [data-theme="dark"] on <html>.  */
/* Follows DESIGN.md: italic em on dark surface */
/* shifts to coral; deep-green stays as a       */
/* feature-band surface; primary near-black     */
/* (#17171c) becomes "elevated dark" above the  */
/* slightly deeper page canvas.                 */
/* ─────────────────────────────────────────── */

[data-theme="dark"] {
  --c-canvas: #0e0d0b;
  --c-ink: #eeece7;
  --c-body-muted: #93939f;
  --c-slate: #a0a0b0;
  --c-hairline: #2a2a30;
  --c-border-light: #2a2a30;
  --c-card-border: #1f1f24;
  --c-soft-stone: #1c1b18;
  --c-pale-green: #0e0d0b; /* wash collapses into canvas */
  --c-pale-blue: #11151c;
  --c-action-blue: #7aa8ff;
  --c-coral: #ff8a70;
}

[data-theme="dark"] ::selection {
  background: var(--c-coral);
  color: var(--c-canvas);
}

/* Brand mark inverts so the PA pill stays visible on dark canvas */
[data-theme="dark"] .brand-mark {
  background: var(--c-ink);
  color: var(--c-canvas);
}

/* Primary CTA inverts to a light pill on dark surface */
[data-theme="dark"] .btn-primary {
  background: var(--c-ink);
  color: var(--c-canvas);
}
[data-theme="dark"] .btn-primary:hover {
  background: #ffffff;
}
[data-theme="dark"] .btn-primary-inverted {
  background: var(--c-soft-stone);
  color: var(--c-ink);
}
[data-theme="dark"] .btn-primary-inverted:hover {
  background: #2a2620;
}
[data-theme="dark"] .btn-secondary {
  color: var(--c-ink);
  border-bottom-color: var(--c-ink);
}

/* em on light canvas was deep-green — too dark in dark mode.
   Use coral, matching DESIGN.md's em-on-dark-surface pattern. */
[data-theme="dark"] .hero-display em,
[data-theme="dark"] .portfolio-hero h1 em,
[data-theme="dark"] .case-title em,
[data-theme="dark"] .case-body p em {
  color: var(--c-coral);
}

/* Graphical green accents lift to a teal-mint for legibility */
[data-theme="dark"] .monogram,
[data-theme="dark"] .cap-icon,
[data-theme="dark"] .product-list li::before {
  color: #4eb5a3;
}

/* Photo-card warm wash, retuned for dark canvas */
[data-theme="dark"] .hero-photo-card::before {
  background: radial-gradient(
    ellipse at 70% 30%,
    rgba(78, 181, 163, 0.1),
    transparent 60%
  );
}

/* Agent console (#17171c) and canvas (#0e0d0b) are close — add a subtle rule */
[data-theme="dark"] .agent-console-card {
  border: 1px solid var(--c-hairline);
}

/* product-rule was hardcoded rgba(33,33,33,.12) — invisible on dark soft-stone */
[data-theme="dark"] .product-rule {
  background: rgba(255, 255, 255, 0.08);
}

/* Light-variant case-media glyph used green tint that vanishes on dark */
[data-theme="dark"] .case-media:not(.green) .case-media-glyph {
  color: rgba(255, 255, 255, 0.12);
}
[data-theme="dark"] .case-media:not(.green) {
  --case-media-overlay: radial-gradient(
    ellipse at 30% 70%,
    rgba(255, 119, 89, 0.1),
    transparent 60%
  );
}
[data-theme="dark"] .case-media:has(.case-media-image),
[data-theme="dark"] .case-media:has(.case-media-video),
[data-theme="dark"] .case-media:has(.case-media-embed) {
  --case-media-filter: saturate(0.78) contrast(1.08) brightness(0.88);
  --case-media-overlay:
    linear-gradient(
      155deg,
      rgba(0, 60, 51, 0.42) 0%,
      rgba(0, 60, 51, 0.14) 40%,
      rgba(255, 119, 89, 0.18) 100%
    ),
    radial-gradient(
      ellipse at 75% 18%,
      rgba(255, 119, 89, 0.2),
      transparent 55%
    ),
    radial-gradient(ellipse at 12% 82%, rgba(0, 60, 51, 0.3), transparent 52%);
}

/* Portfolio filter chips: tighten coral-soft border for dark */
[data-theme="dark"] .filter-chip {
  border-color: rgba(255, 138, 112, 0.45);
}
[data-theme="dark"] .filter-chip:hover {
  background: rgba(255, 138, 112, 0.08);
}
[data-theme="dark"] .filter-chip.is-active {
  background: var(--c-coral);
  color: var(--c-canvas);
  border-color: var(--c-coral);
}

/* ─────────────────────────────────────────── */
/* THEME TOGGLE (inline in footer-meta)         */
/* Intentionally low-weight: a single mono glyph */
/* that sits in the footer's micro register.    */
/* ─────────────────────────────────────────── */

.footer-meta-right .theme-toggle {
  margin-left: 12px;
}

.theme-toggle {
  background: transparent;
  border: 0;
  padding: 0 2px;
  font-family: inherit;
  font-size: inherit;
  letter-spacing: inherit;
  color: inherit;
  opacity: 0.7;
  cursor: pointer;
  transition: opacity 0.15s;
}
.theme-toggle:hover {
  opacity: 1;
}
.theme-toggle:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 2px;
}
.theme-toggle .icon-sun {
  display: none;
}
[data-theme="dark"] .theme-toggle .icon-moon {
  display: none;
}
[data-theme="dark"] .theme-toggle .icon-sun {
  display: inline;
}

/* ─────────────────────────────────────────── */
/* PRINT                                        */
/* ─────────────────────────────────────────── */

@media print {
  html {
    min-width: 0;
  }
  .announcement-bar,
  .globalnav,
  .footer-band,
  .version-switcher,
  .hero-cta,
  .blog-filters,
  .coda,
  .ann-close,
  .case-media,
  .hero-media,
  .theme-toggle {
    display: none;
  }
  body {
    background: #fff;
    color: #000;
  }
  .dark-band-inner,
  .dark-card,
  .agent-console-card,
  .hero-photo-card {
    background: #fff !important;
    color: #000 !important;
    border: 1px solid #d9d9dd !important;
    box-shadow: none !important;
  }
  .dark-band,
  .coda {
    background: #fff !important;
  }
  .footer-headline,
  .hero-display,
  .section-display,
  .mono-label-dark,
  .console-key,
  .console-val,
  .console-title,
  .body-large,
  .case-deck,
  .case-title,
  .case-pullquote {
    color: #000 !important;
  }
  .status-dot {
    background: #555 !important;
  }
  a {
    color: #000 !important;
    text-decoration: underline;
  }
  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.85em;
    color: #555;
  }
  a[href^="#"]::after,
  a[href^="mailto:"]::after {
    content: "";
  }
  .case {
    page-break-inside: avoid;
  }
  .research-row,
  .product-card,
  .cap-card {
    page-break-inside: avoid;
  }
}
