/* =============================================
   Klara Condac Consulting — Editorial Redesign
   v2/styles.css
   ============================================= */

/* Fonts loaded via <link rel="preconnect"> + <link rel="stylesheet"> in each page head */

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

:root {
  /* ── Dark mode palette ── */
  --bg:          #060E2E;
  --bg-2:        #0D1840;
  --bg-3:        #111f4d;
  --bg-glass:    rgba(13, 24, 64, 0.65);
  --bg-glass-2:  rgba(6, 14, 46, 0.82);

  /* Keep existing names mapped to dark values */
  --ink:         #F5F0E8;
  --ink-deep:    #FFFFFF;
  --ink-soft:    #C8D0EE;
  --amber:       #E8931C;
  --amber-soft:  #F5B84A;
  --amber-glow:  rgba(232, 147, 28, 0.18);
  --amber-glow-strong: rgba(232, 147, 28, 0.45);

  /* Surface neutrals (dark) */
  --paper:       #0D1840;
  --paper-alt:   #091535;
  --paper-warm:  #0A1740;
  --rule:        rgba(232, 147, 28, 0.12);
  --rule-strong: rgba(232, 147, 28, 0.28);

  /* Text */
  --text:         #F5F0E8;
  --text-muted:   #8A94B8;
  --text-soft:    #7882A8;
  --text-inverse: #060E2E;

  /* Type */
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Z-index scale */
  --z-nav: 50;
  --z-dropdown: 60;
  --z-overlay: 80;
}

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

/* Skip-to-main navigation link (a11y) */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 9999;
  padding: 10px 20px;
  background: var(--amber);
  color: #0A1744;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 0 0 6px 6px;
  text-decoration: none;
  transition: top 150ms ease;
}
.skip-link:focus { top: 0; }

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Scroll progress bar */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: calc(var(--scroll-pct, 0) * 1%);
  height: 2px;
  background: linear-gradient(90deg, var(--amber), var(--amber-soft));
  z-index: 9999;
  transition: width 80ms linear;
  pointer-events: none;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

/* ---------- Typography ---------- */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
}

h1 {
  font-weight: 500;
  font-size: clamp(2.5rem, 5.6vw, 4.75rem);
  letter-spacing: -0.022em;
  line-height: 1.04;
  font-variation-settings: "opsz" 144, "SOFT" 30;
}

h2 {
  font-weight: 500;
  font-size: clamp(1.9rem, 3.8vw, 3rem);
  letter-spacing: -0.018em;
  line-height: 1.1;
  font-variation-settings: "opsz" 100, "SOFT" 20;
}

h3 {
  font-weight: 600;
  font-size: clamp(1.3rem, 2.1vw, 1.65rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

h4 {
  font-weight: 600;
  font-size: 1.125rem;
  line-height: 1.3;
  letter-spacing: -0.005em;
}

p { font-size: 1.0625rem; line-height: 1.75; }

.lead {
  font-size: clamp(1.1rem, 1.4vw, 1.25rem);
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 60ch;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 20px;
}

.eyebrow-muted {
  color: var(--text-soft);
}

.serif-italic {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
}

/* ---------- Layout ---------- */

.container        { max-width: 1120px; margin: 0 auto; padding: 0 32px; }
.container-wide   { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
.container-tight  { max-width: 720px;  margin: 0 auto; padding: 0 32px; }

section { padding: clamp(72px, 9vw, 128px) 0; }

.edit-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 32px;
}

.span-full  { grid-column: 1 / -1; }
.span-half  { grid-column: span 6; }
.span-third { grid-column: span 4; }
.span-main  { grid-column: 1 / 9; }
.span-aside { grid-column: 9 / 13; }
.span-7     { grid-column: span 7; }
.span-5     { grid-column: span 5; }

@media (max-width: 900px) {
  .edit-grid {
    grid-template-columns: 1fr;
    row-gap: 40px;
    column-gap: 0;
  }
  .span-half, .span-third, .span-main, .span-aside, .span-7, .span-5 {
    grid-column: 1 / -1;
  }
}

/* Hairline rule */
.rule {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 0;
}

.rule-strong {
  border-top-color: var(--rule-strong);
}

/* ---------- Header / Nav ---------- */

header.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  background: rgba(6, 14, 46, 0.88);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid var(--rule);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 32px;
  gap: 24px;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  white-space: nowrap;
}

.nav-logo span { color: var(--amber); }

nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 4px;
}

nav ul li a {
  position: relative;
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 8px 14px;
  transition: color 200ms ease;
}

nav ul li a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 2px;
  height: 1.5px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 260ms ease;
}

nav ul li a:hover::after,
nav ul li a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

nav ul li a:hover { color: var(--ink); }

.nav-cta {
  margin-left: 12px;
}

/* Dropdown */
.has-dropdown { position: relative; }

.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(13, 24, 64, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--rule);
  border-radius: 4px;
  min-width: 260px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(232, 147, 28, 0.06);
  z-index: var(--z-dropdown);
  padding: 16px 0 8px;
}

.dropdown li a {
  display: block;
  padding: 10px 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.dropdown li a::after { display: none; }
.dropdown li a:hover { background: rgba(232, 147, 28, 0.08); color: var(--amber); }

.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown { display: block; }

/* Mobile hamburger — CSS-only via checkbox hack */
.nav-toggle-checkbox {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.8px;
  background: var(--text-muted);
  border-radius: 2px;
  transition: transform 300ms ease, opacity 200ms ease;
}

.nav-toggle-checkbox:focus-visible ~ .nav-toggle {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  nav { display: none; width: 100%; order: 3; }
  .nav-toggle-checkbox:checked ~ nav { display: block; }
  .nav-toggle-checkbox:checked ~ .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle-checkbox:checked ~ .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-toggle-checkbox:checked ~ .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav-inner { flex-wrap: wrap; padding: 14px 24px; }
  nav ul {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 0 8px;
    gap: 0;
    width: 100%;
    border-top: 1px solid var(--rule);
    margin-top: 14px;
  }
  nav ul li { width: 100%; }
  nav ul li a { display: block; padding: 12px 0; width: 100%; }
  nav ul li a::after { display: none; }
  /* On mobile, flatten the dropdown — always visible, indented below parent */
  .dropdown {
    display: block;
    position: static;
    border: none;
    box-shadow: none;
    background: transparent;
    padding: 0 0 8px 16px;
    min-width: 0;
  }
  .dropdown li a { padding: 8px 0; font-size: 0.82rem; color: var(--ink-soft, var(--ink)); }
  .nav-cta { margin: 14px 0 4px; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 14px 28px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  touch-action: manipulation;
  transition: background 220ms ease, color 220ms ease, border-color 220ms ease, transform 220ms ease;
  white-space: nowrap;
}

.btn .icon { width: 18px; height: 18px; }

.btn-primary {
  background: var(--amber);
  color: #060E2E;
  border-color: var(--amber);
  box-shadow: 0 0 20px var(--amber-glow);
  will-change: transform;
}
.btn-primary:hover {
  background: var(--amber-soft);
  color: #060E2E;
  border-color: var(--amber-soft);
  box-shadow: 0 0 32px rgba(232, 147, 28, 0.35);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: rgba(245, 240, 232, 0.3);
}
.btn-ghost:hover {
  background: rgba(245, 240, 232, 0.08);
  border-color: var(--ink);
}

.btn-ghost-light {
  background: transparent;
  color: var(--paper);
  border-color: rgba(251, 248, 241, 0.5);
}
.btn-ghost-light:hover {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}

.btn-compact {
  padding: 10px 20px;
  font-size: 0.85rem;
}

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 200ms ease;
}
.btn-link .icon { width: 16px; height: 16px; transition: transform 240ms ease; }
.btn-link:hover { color: var(--amber); }
.btn-link:hover .icon { transform: translateX(4px); }

/* ---------- Case study breadcrumb bar ---------- */
.breadcrumb-bar {
  padding: 12px 0;
  border-bottom: 1px solid rgba(245, 240, 232, 0.08); /* subtle divider under the bar */
}
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  min-width: 0;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
}
.breadcrumb li { display: flex; align-items: center; gap: 10px; min-width: 0; }
/* Separator rendered via CSS so screen readers don't announce a stray "/" */
.breadcrumb li + li::before { content: "/"; color: var(--text-muted); opacity: 0.55; }
.breadcrumb a {
  color: var(--text-muted);
  padding: 4px 0; /* enlarge the vertical tap area beyond the text height */
  transition: color 200ms ease;
}
.breadcrumb a:hover { color: var(--amber); }
/* Current page: brighter, non-link; truncates with an ellipsis when it wraps to its own row */
.breadcrumb [aria-current="page"] {
  color: var(--ink-soft);
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Focus ring — the outline follows each element's own border-radius,
   so buttons keep their pill/rounded shape instead of collapsing to a rectangle. */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}
/* Soft corners only for bare inline text links (which have no radius of their own) */
a:not([class]):focus-visible,
.btn-link:focus-visible {
  border-radius: 3px;
}

/* ---------- Hero ---------- */

.hero {
  background: var(--bg);
  padding: clamp(80px, 10vw, 140px) 0 clamp(72px, 9vw, 120px);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 50% at 80% 20%, rgba(232, 147, 28, 0.10), transparent 60%),
    radial-gradient(ellipse 45% 55% at 15% 75%, rgba(13, 40, 120, 0.35), transparent 60%),
    radial-gradient(ellipse 70% 60% at 50% 110%, rgba(6, 14, 46, 0.9), transparent 70%);
  pointer-events: none;
  z-index: 1;
}

/* Starfield canvas sits behind everything */
#starfield {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.hero .container-wide { position: relative; z-index: 2; }

.hero h1 { margin-bottom: 28px; }
.hero .lead { margin-bottom: 36px; }

.hero-meta {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 0 0 0 32px;
  border-left: 1px solid var(--rule);
}

.hero-meta-item .value {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 500;
  line-height: 1;
  color: var(--amber);
  letter-spacing: -0.02em;
  font-variation-settings: "opsz" 144, "SOFT" 40;
  text-shadow: 0 0 24px var(--amber-glow-strong);
}

.hero-meta-item .label {
  display: block;
  margin-top: 8px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

@media (max-width: 900px) {
  .hero-meta {
    border-left: none;
    border-top: 1px solid var(--rule);
    padding: 32px 0 0;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 24px 32px;
  }
  .hero-meta-item { flex: 1 1 120px; }
}

@media (max-width: 480px) {
  .hero-meta { gap: 20px 16px; }
  .hero-meta-item { flex: 1 1 100%; }
}

/* ---------- Page hero (sub-pages) ---------- */

.page-hero {
  background: var(--bg);
  padding: clamp(72px, 9vw, 120px) 0 clamp(48px, 6vw, 72px);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 60% at 80% 30%, rgba(232, 147, 28, 0.08), transparent 60%),
    radial-gradient(ellipse 60% 50% at 10% 70%, rgba(13, 40, 120, 0.3), transparent 60%);
  pointer-events: none;
}

.page-hero .container,
.page-hero .page-hero-layout { position: relative; z-index: 2; }


/* Split hero layout: text left, globe right */
.page-hero-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
}

.page-hero-text h1 { margin-bottom: 24px; max-width: 16ch; }
.page-hero-text .lead { max-width: 52ch; }

.page-hero-globe {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 14px;
}

.globe-caption {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-soft);
  user-select: none;
}

.globe-caption svg {
  flex-shrink: 0;
  opacity: 0.6;
  color: var(--amber);
}

/* Globe on light background: refine the glow */
.page-hero-globe .world-map svg {
  filter: drop-shadow(0 8px 40px rgba(10, 23, 68, 0.18)) drop-shadow(0 0 80px rgba(232, 147, 28, 0.45)) drop-shadow(0 0 140px rgba(232, 147, 28, 0.2));
}

@media (max-width: 900px) {
  .page-hero-layout {
    grid-template-columns: 1fr;
  }
  .page-hero-globe {
    order: -1;
  }
  .page-hero-globe .world-map {
    width: min(72vw, 360px);
  }
  .page-hero-text h1 { max-width: 100%; }
  .page-hero-text .lead { max-width: 100%; }
}

/* Fallback for non-clients pages using old .reveal wrapper */
.page-hero .reveal > h1 { margin-bottom: 24px; max-width: 18ch; }
.page-hero .reveal > .lead { max-width: 62ch; }

/* ---------- Pillars ---------- */

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.pillar {
  padding: 48px 40px;
  border-right: 1px solid var(--rule);
  position: relative;
}
.pillar:last-child { border-right: none; }

.pillar-num {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--amber);
  margin-bottom: 28px;
  display: block;
}

.pillar .icon-lg {
  width: 32px;
  height: 32px;
  color: var(--ink);
  margin-bottom: 24px;
  stroke-width: 1.5;
}

.pillar h3 {
  margin-bottom: 12px;
}

.pillar p {
  color: var(--text-muted);
  font-size: 0.98rem;
}

@media (max-width: 900px) {
  .pillars { grid-template-columns: 1fr; }
  .pillar {
    border-right: none;
    border-bottom: 1px solid var(--rule);
    padding: 40px 0;
  }
  .pillar:last-child { border-bottom: none; }
}

/* ---------- Section heading ---------- */

.section-heading {
  margin-bottom: clamp(48px, 6vw, 72px);
  max-width: 720px;
}

.section-heading.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-heading p {
  margin-top: 20px;
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* ---------- Editorial cards (3-up) ---------- */

.cards-section { background: var(--bg-2); }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

/* Glass card — shared by cards-section and proof points */
.card-edit {
  position: relative;
  padding: 40px 36px;
  background: var(--bg-glass);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid var(--rule);
  border-radius: 8px;
  transition: border-color 260ms ease, box-shadow 260ms ease, transform 260ms ease;
  overflow: hidden;
  transform-style: preserve-3d;
  will-change: transform;
}

.card-edit::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--amber), var(--amber-soft));
  border-radius: 8px 0 0 8px;
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 300ms ease;
}

/* Glow shimmer on hover */
.card-edit::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 8px;
  background: radial-gradient(circle at 50% 0%, rgba(232, 147, 28, 0.08), transparent 60%);
  opacity: 0;
  transition: opacity 300ms ease;
  pointer-events: none;
}

.card-edit:hover::before { transform: scaleY(1); }
.card-edit:hover::after { opacity: 1; }
.card-edit:hover {
  border-color: var(--rule-strong);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(232, 147, 28, 0.08), 0 0 40px rgba(232, 147, 28, 0.06);
}

.card-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 18px;
  padding: 4px 10px;
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: var(--amber-glow);
}

.card-edit h3 { margin-bottom: 14px; color: var(--ink); }
.card-edit p { color: var(--text-muted); font-size: 0.98rem; }

/* ---------- Pull quote ---------- */

.pullquote-section {
  background: var(--bg-2);
  padding: clamp(72px, 9vw, 128px) 0;
  position: relative;
  overflow: hidden;
}

.pullquote-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 50%, rgba(232, 147, 28, 0.05), transparent 70%);
  pointer-events: none;
}

.pullquote {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(1.5rem, 3.2vw, 2.4rem);
  line-height: 1.35;
  color: var(--ink);
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  letter-spacing: -0.01em;
  font-variation-settings: "opsz" 100, "SOFT" 40;
  position: relative;
  z-index: 1;
}

.pullquote::before {
  content: "\201C";
  display: block;
  font-size: 5rem;
  line-height: 0.4;
  color: var(--amber);
  margin-bottom: 28px;
  font-style: normal;
  text-shadow: 0 0 32px rgba(232, 147, 28, 0.5);
  animation: glow-pulse 3s ease-in-out infinite;
}

.pullquote-cite {
  display: block;
  margin-top: 36px;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: center;
}

.pullquote-cite a { color: var(--amber); }

.pullquote-cta {
  margin-top: 48px;
  text-align: center;
  position: relative;
  z-index: 1;
}

/* ---------- Footer CTA strip ---------- */

.cta-strip {
  background: var(--bg-2);
  color: var(--ink);
  padding: clamp(64px, 8vw, 96px) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Shimmer sweep animation */
.cta-strip::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    conic-gradient(from 180deg at 50% 50%, rgba(232, 147, 28, 0.08), transparent 30%, transparent 70%, rgba(232, 147, 28, 0.06));
  pointer-events: none;
}

.cta-strip::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(232, 147, 28, 0.06), transparent);
  animation: shimmer-sweep 4s ease-in-out infinite;
  pointer-events: none;
}

.cta-strip h2 {
  color: var(--ink);
  max-width: 20ch;
  margin: 0 auto 20px;
  position: relative;
  z-index: 1;
}

.cta-strip p {
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 32px;
  font-size: 1.05rem;
  position: relative;
  z-index: 1;
}

.cta-strip .eyebrow { color: var(--amber-soft); position: relative; z-index: 1; }
.cta-strip .btn { position: relative; z-index: 1; }

/* ---------- Service cards (about.html) ---------- */

.service-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  position: relative;
  display: block;
  padding: 44px 36px 40px;
  background: var(--bg-glass);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid var(--rule);
  border-radius: 8px;
  transition: border-color 260ms ease, transform 260ms ease, box-shadow 260ms ease;
  color: inherit;
  transform-style: preserve-3d;
  will-change: transform;
  overflow: hidden;
  cursor: pointer;
  touch-action: manipulation;
}

.service-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--amber), var(--amber-soft));
  border-radius: 8px 0 0 8px;
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 300ms ease;
}

.service-card:hover::before { transform: scaleY(1); }
.service-card:hover {
  border-color: var(--rule-strong);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(232, 147, 28, 0.08);
}

.service-num {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--amber);
  letter-spacing: 0.04em;
  margin-bottom: 40px;
  display: block;
}

.service-card h3 { margin-bottom: 14px; }
.service-card p {
  color: var(--text-muted);
  font-size: 0.96rem;
  margin-bottom: 28px;
}

.service-card .btn-link { color: var(--ink); }
.service-card:hover .btn-link { color: var(--amber); }
.service-card:hover .btn-link .icon { transform: translateX(4px); }

@media (max-width: 900px) {
  .service-cards { grid-template-columns: 1fr; }
}

/* ---------- Certifications ---------- */

.cert-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 24px;
}

.cert-badge {
  padding: 32px 28px;
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--rule);
  border-radius: 8px;
  text-align: left;
  transition: border-color 260ms ease, box-shadow 260ms ease, transform 260ms ease;
  cursor: default;
}

.cert-badge:hover {
  border-color: var(--rule-strong);
  box-shadow: 0 0 32px var(--amber-glow), 0 4px 20px rgba(0,0,0,0.2);
  transform: translateY(-2px);
}

.cert-badge .cert-image {
  width: 100%;
  height: 140px;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  margin-bottom: 20px;
  overflow: hidden;
  transition: border-color 260ms ease, box-shadow 260ms ease;
}

.cert-badge .cert-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  transition: transform 300ms ease;
}

.cert-badge:hover .cert-image {
  border-color: rgba(232, 147, 28, 0.35);
  box-shadow: 0 0 16px rgba(232, 147, 28, 0.12);
}

.cert-badge:hover .cert-image img {
  transform: scale(1.02);
}

.cert-badge .cert-image--full {
  padding: 0;
}

.cert-badge .cert-image--inset {
  padding: 8px;
}

.cert-badge .cert-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
  line-height: 1.3;
  margin-bottom: 6px;
}

.cert-badge .cert-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

@media (max-width: 900px) {
  .cert-row { grid-template-columns: 1fr; }
}

/* ---------- About bio ---------- */

.about-bio {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 64px;
  align-items: start;
}

.about-bio--centered {
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
}

.about-bio--centered .about-quickfacts {
  justify-content: center;
}

.about-bio > div:first-child {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-top: 8px;
}

.about-bio .portrait {
  position: relative;
  width: 240px;
  height: 240px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Inner rotating ring — orbits just outside the photo */
.about-bio .portrait::before {
  content: "";
  position: absolute;
  width: 284px;
  height: 284px;
  border-radius: 50%;
  border: 1px solid rgba(232, 147, 28, 0.28);
  animation: portrait-ring 12s linear infinite;
  box-shadow: 0 0 32px rgba(232, 147, 28, 0.1);
  z-index: 0;
}

/* Outer dashed ring */
.about-bio .portrait::after {
  content: "";
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  border: 1px dashed rgba(232, 147, 28, 0.1);
  animation: portrait-ring 22s linear infinite reverse;
  z-index: 0;
}

.about-bio .portrait .portrait-img {
  width: 240px;
  height: 240px;
  object-fit: cover;
  object-position: center top;
  border-radius: 50%;
  position: relative;
  z-index: 1;
  box-shadow:
    0 0 0 3px rgba(232, 147, 28, 0.35),
    0 0 48px rgba(232, 147, 28, 0.18),
    0 8px 32px rgba(0, 0, 0, 0.4);
}

.about-bio p { margin-bottom: 20px; color: var(--text-muted); }

.about-quickfacts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  margin-top: 32px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.about-quickfacts-sep {
  color: var(--amber);
  opacity: 0.45;
}

@media (max-width: 900px) {
  .about-bio { grid-template-columns: 1fr; gap: 56px; }
  .about-bio > div:first-child { padding-top: 0; }
}

/* ---------- Testimonials ---------- */

.testimonial-featured {
  background: var(--bg-2);
  padding: clamp(72px, 9vw, 128px) 0;
}

/* Carousel wrapper */
.testimonials-carousel {
  position: relative;
  outline: none;
}

.carousel-viewport {
  overflow: hidden;
  border-radius: 2px;
}

.carousel-track {
  display: flex;
  transition: transform 600ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.carousel-track .testimonial-card {
  flex: 0 0 100%;
  min-width: 0;
}

/* Carousel controls */
.carousel-ui {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 28px;
}

.carousel-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--bg-glass);
  backdrop-filter: blur(8px);
  border: 1px solid var(--rule);
  border-radius: 6px;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 220ms ease, color 220ms ease, border-color 220ms ease;
}

.carousel-btn:hover {
  background: var(--amber-glow);
  color: var(--amber);
  border-color: var(--rule-strong);
}

.carousel-pause {
  margin-left: 8px;
}

.carousel-pause.is-paused {
  background: var(--amber-glow);
  color: var(--amber);
  border-color: var(--amber);
}

.carousel-btn:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

.carousel-dots {
  display: flex;
  gap: 12px;
  align-items: center;
}

.carousel-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rule-strong);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 240ms ease, width 320ms cubic-bezier(0.4, 0, 0.2, 1), border-radius 240ms ease;
}

/* Expand tap area to ≥44px without visual change */
.carousel-dot::after {
  content: "";
  position: absolute;
  inset: -16px;
}

.carousel-dot:hover {
  background: var(--ink-soft);
}

.carousel-dot.active {
  background: var(--amber);
  width: 28px;
  border-radius: 4px;
}

.carousel-dot:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 4px;
}

/* Tag system — unified editorial chips
   All tags share the same dimensions and typography.
   Hierarchy is expressed through fill + marker, not shape.
   Contrast: all pairings meet WCAG AA (4.5:1) or AAA (7:1). */
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 22px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 2px;
  line-height: 1.4;
  border: 1px solid transparent;
  white-space: nowrap;
}

/* Category — primary, highest contrast */
.tag--category {
  background: rgba(232, 147, 28, 0.15);
  color: var(--amber-soft);
  border-color: var(--rule);
}

/* Tool — secondary, warm chip with amber marker */
.tag--tool {
  background: rgba(13, 24, 64, 0.8);
  color: var(--text-muted);
  border-color: var(--rule);
}

.tag--tool::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
  flex-shrink: 0;
}

/* Skill — tertiary, outlined with ink-soft text (~11:1) */
.tag--skill {
  background: transparent;
  color: var(--ink-soft);
  border-color: var(--rule-strong);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.testimonial-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(36px, 5vw, 56px) clamp(32px, 4.5vw, 56px) clamp(32px, 4vw, 44px) clamp(40px, 5vw, 64px);
  background: #F5F0E8;
  border: none;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.35), 0 1px 4px rgba(0, 0, 0, 0.2);
}

/* Amber leading rule — editorial marker */
.testimonial-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 28px;
  bottom: 28px;
  width: 4px;
  background: var(--amber);
  border-radius: 0 2px 2px 0;
}

/* Decorative serif quotation mark watermark */
.testimonial-card::after {
  content: "\201C";
  position: absolute;
  top: 4px;
  right: 28px;
  font-family: var(--font-display);
  font-size: clamp(7rem, 11vw, 11rem);
  font-weight: 500;
  line-height: 0.85;
  color: rgba(232, 147, 28, 0.14);
  pointer-events: none;
  user-select: none;
  font-variation-settings: "opsz" 144, "SOFT" 30;
  z-index: 0;
}

.testimonial-card > * {
  position: relative;
  z-index: 1;
}

.testimonial-card.placeholder {
  opacity: 0.55;
  background: transparent;
  border-style: dashed;
}
.testimonial-card.placeholder::before { background: var(--rule-strong); }

.testimonial-card blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.08rem, 1.35vw, 1.25rem);
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 28px;
  font-variation-settings: "opsz" 72, "SOFT" 30;
}

/* Attribution byline — unified typography, middle-dot separators */
.testimonial-card cite {
  display: block;
  padding-top: 22px;
  border-top: 1px solid var(--rule);
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.55;
  color: var(--ink-soft);
}

.testimonial-card .cite-name {
  color: var(--ink);
  font-weight: 600;
}

.testimonial-card .cite-role {
  color: var(--ink-soft);
  font-weight: 500;
}

/* Middle-dot separators before each part after the name */
.testimonial-card .cite-role::before,
.testimonial-card .cite-company::before {
  content: "·";
  display: inline-block;
  margin: 0 8px;
  color: var(--rule-strong);
  font-weight: 400;
}

/* Company: amber when it's a link, ink-soft when plain text */
.testimonial-card a.cite-company {
  color: var(--amber);
  font-weight: 600;
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease;
}

.testimonial-card a.cite-company:hover { border-bottom-color: var(--amber); }

/* ---- Scoped dark-text overrides for white testimonial card ---- */
/* Card background is #F5F0E8 (warm white), so all text must be dark navy */
.testimonial-card blockquote {
  color: #0A1744;
}

.testimonial-card cite {
  color: #2A3566;
  border-top-color: rgba(10, 23, 68, 0.15);
}

.testimonial-card .cite-name {
  color: #0A1744;
}

.testimonial-card .cite-role {
  color: #2A3566;
}

.testimonial-card span.cite-company {
  color: #2A3566;
  font-weight: 500;
}

.testimonial-card .cite-role::before,
.testimonial-card .cite-company::before {
  color: #A89880;
}

/* Tags on white card — scoped overrides */
.testimonial-card .tag--category {
  background: rgba(232, 147, 28, 0.12);
  color: #8B5A0A;
  border-color: rgba(232, 147, 28, 0.3);
}

.testimonial-card .tag--tool {
  background: rgba(10, 23, 68, 0.07);
  color: #2A3566;
  border-color: rgba(10, 23, 68, 0.18);
}

.testimonial-card .tag--skill {
  background: transparent;
  color: #3A4A80;
  border-color: rgba(10, 23, 68, 0.22);
}

@media (max-width: 800px) {
  .testimonials-grid { grid-template-columns: 1fr; }
}

/* ---------- Global reach strip ---------- */

.global-reach-strip {
  background: #030a1f;
  padding: 28px 0;
  position: relative;
}

.global-reach-strip::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--amber) 0%, rgba(232,147,28,0.1) 60%, transparent 100%);
}

.reach-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.reach-label {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber-soft);
  white-space: nowrap;
}

.reach-regions {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
}

.reach-regions li {
  font-size: 0.82rem;
  color: rgba(251, 248, 241, 0.65);
  letter-spacing: 0.04em;
  padding: 0 20px;
  border-left: 1px solid rgba(251, 248, 241, 0.15);
}

.reach-regions li:first-child {
  border-left: none;
  padding-left: 0;
}

@media (max-width: 640px) {
  .reach-inner { gap: 16px; }
  .reach-regions { gap: 0; }
}

/* ---------- World Globe ---------- */

.world-map {
  position: relative;
  width: min(100%, 480px);
  aspect-ratio: 1;
  margin: 0 auto;
  z-index: 1;
}

.world-map svg {
  width: 100%;
  height: 100%;
  cursor: grab;
  display: block;
  filter: drop-shadow(0 0 60px rgba(232, 147, 28, 0.5)) drop-shadow(0 0 120px rgba(232, 147, 28, 0.25));
}

.world-map svg:active { cursor: grabbing; }

.globe-ocean {
  fill: #060e2e;
}

.globe-graticule {
  fill: none;
  stroke: rgba(255, 255, 255, 0.045);
  stroke-width: 0.5;
}

.globe-land {
  fill: #132048;
}

.globe-borders {
  fill: none;
  stroke: #1e3070;
  stroke-width: 0.4;
}

.pin-dot {
  fill: var(--amber);
  filter: drop-shadow(0 0 5px rgba(232, 147, 28, 0.9));
}

.pin-ring {
  fill: none;
  stroke: var(--amber);
  stroke-width: 1.5;
  animation: pin-pulse 2.4s ease-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}

@keyframes pin-pulse {
  0%   { transform: scale(1); stroke-opacity: 0.85; }
  100% { transform: scale(4); stroke-opacity: 0; }
}

.map-tooltip {
  position: absolute;
  background: var(--ink-deep);
  color: var(--paper);
  border: 1px solid var(--amber);
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 2px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
  white-space: nowrap;
  z-index: 10;
}

.map-tooltip.visible { opacity: 1; }

/* ---------- Industry Orbit ---------- */

.industry-orbit {
  background: #060e2e;
  padding: clamp(64px, 9vw, 112px) 0;
  position: relative;
  overflow: hidden;
}

.industry-orbit::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--amber) 0%, rgba(232,147,28,0.1) 60%, transparent 100%);
}

.industry-orbit .section-heading { margin-bottom: clamp(32px, 5vw, 56px); }

.orbit-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.orbit-stage {
  position: relative;
  width: min(100%, 560px);
  aspect-ratio: 1;
  margin: 0 auto;
}

.orbit-stage svg {
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
  filter: drop-shadow(0 0 60px rgba(232, 147, 28, 0.35)) drop-shadow(0 0 120px rgba(232, 147, 28, 0.18));
}

.orbit-stage svg:active { cursor: grabbing; }

.orbit-ring {
  fill: none;
  stroke: rgba(255, 255, 255, 0.06);
  stroke-width: 1;
}

.orbit-hub {
  fill: #132048;
  stroke: rgba(232, 147, 28, 0.5);
  stroke-width: 1;
}

.orbit-hub-count {
  fill: var(--amber-soft);
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 600;
}

.orbit-hub-label {
  fill: rgba(251, 248, 241, 0.6);
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.orbit-dot {
  fill: var(--amber);
  filter: drop-shadow(0 0 5px rgba(232, 147, 28, 0.9));
}

.orbit-node-ring {
  fill: none;
  stroke: var(--amber);
  stroke-width: 1.5;
  animation: pin-pulse 2.4s ease-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}

.orbit-node-label {
  fill: rgba(251, 248, 241, 0.78);
  font-family: var(--font-body);
  font-size: 12.5px;
  letter-spacing: 0.02em;
  pointer-events: none;
}

.orbit-node:hover .orbit-dot,
.orbit-node.active .orbit-dot {
  fill: var(--amber-soft);
  r: 6;
}

.orbit-node.active .orbit-node-label,
.orbit-node:hover .orbit-node-label {
  fill: var(--ink-deep);
}

.orbit-node:focus-visible {
  outline: none;
}

.orbit-node:focus-visible .orbit-dot {
  stroke: var(--ink-deep);
  stroke-width: 2;
}

.orbit-side {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.industry-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.industry-chip {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--ink-soft);
  background: rgba(13, 24, 64, 0.65);
  border: 1px solid rgba(232, 147, 28, 0.22);
  border-radius: 999px;
  padding: 9px 16px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s, box-shadow 0.2s;
}

.industry-chip:hover {
  color: var(--ink-deep);
  border-color: rgba(232, 147, 28, 0.5);
}

.industry-chip:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}

.industry-chip.active,
.industry-chip[aria-pressed="true"] {
  color: var(--ink-deep);
  border-color: var(--amber);
  background: rgba(232, 147, 28, 0.12);
  box-shadow: 0 0 0 1px var(--amber), 0 0 18px rgba(232, 147, 28, 0.35);
}

.industry-detail {
  border: 1px solid rgba(232, 147, 28, 0.28);
  border-left: 3px solid var(--amber);
  border-radius: 4px;
  background: rgba(6, 14, 46, 0.6);
  padding: 22px 24px;
}

.industry-detail-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink-deep);
  margin-bottom: 8px;
}

.industry-detail-desc {
  font-family: var(--font-body);
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--ink-soft);
  margin-bottom: 16px;
}

.industry-detail-close {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber-soft);
  background: none;
  border: 1px solid rgba(232, 147, 28, 0.35);
  border-radius: 999px;
  padding: 7px 16px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.industry-detail-close:hover { color: var(--ink-deep); border-color: var(--amber); }

.industry-detail-close:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}

@media (max-width: 900px) {
  .orbit-layout { grid-template-columns: 1fr; }
  .orbit-stage { order: -1; }
}

@media (prefers-reduced-motion: reduce) {
  .orbit-node-ring { animation: none; }
}

/* Small screens: keep the orbit visible, scale SVG text up so it stays
   legible once the 720-unit viewBox shrinks to phone width. */
@media (max-width: 600px) {
  .orbit-node-label { font-size: 19px; }
  .orbit-hub-count { font-size: 44px; }
  .orbit-hub-label { font-size: 14.5px; }
  .orbit-dot { r: 7; }
  .orbit-node-ring { stroke-width: 2; }
}

/* ---------- Contact ---------- */

.contact-options {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: clamp(64px, 9vw, 112px);
}

.contact-opt {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 36px 28px 32px;
  background: var(--bg-glass);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid var(--rule);
  border-radius: 10px;
  transition: border-color 260ms ease, box-shadow 260ms ease, transform 260ms ease;
  overflow: hidden;
  transform-style: preserve-3d;
  will-change: transform;
  cursor: default;
  touch-action: manipulation;
}

.contact-opt::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--amber), var(--amber-soft));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 300ms ease;
  border-radius: 10px 10px 0 0;
}

.contact-opt:hover::before { transform: scaleX(1); transform-origin: left; }
.contact-opt:hover {
  border-color: var(--rule-strong);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3), 0 0 24px var(--amber-glow);
}

.contact-opt .icon-lg {
  width: 28px;
  height: 28px;
  color: var(--amber);
  margin-bottom: 24px;
  stroke-width: 1.6;
  transition: filter 260ms ease, transform 260ms ease;
}

.contact-opt:hover .icon-lg {
  filter: drop-shadow(0 0 8px rgba(232, 147, 28, 0.7));
  transform: scale(1.1);
}

.contact-opt h4 { margin-bottom: 8px; }
.contact-opt p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 22px;
  flex: 1;
}

.contact-opt .btn-link { align-self: flex-start; }

@media (max-width: 1000px) {
  .contact-options { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .contact-options { grid-template-columns: 1fr; }
}

/* Contact form — underline inputs */
.contact-form-wrap {
  max-width: 680px;
  margin: 0 auto;
  padding-top: clamp(40px, 6vw, 64px);
  border-top: 1px solid var(--rule);
}

.contact-form-wrap h2 { margin-bottom: 12px; }
.contact-form-wrap > p { color: var(--text-muted); margin-bottom: 40px; }

form .form-group { margin-bottom: 28px; }
form label {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 10px;
  color: var(--text-muted);
}

form input,
form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: rgba(13, 24, 64, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--ink);
  transition: border-color 220ms ease, box-shadow 220ms ease;
}

form input::placeholder,
form textarea::placeholder {
  color: var(--text-soft);
  font-family: var(--font-body);
}

form input:focus,
form textarea:focus {
  outline: none;
  border-color: var(--amber);
  box-shadow: 0 0 0 3px var(--amber-glow);
}

form textarea { resize: vertical; min-height: 140px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; }
}

.form-submit { margin-top: 12px; }

/* ---------- Portfolio / Tab nav (service subpages) ---------- */

.tab-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: clamp(48px, 6vw, 80px);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 0;
  position: sticky;
  top: 68px;
  z-index: 40;
  background: rgba(6, 14, 46, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding-top: 20px;
  margin-top: -20px;
}

.tab-nav a {
  position: relative;
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0 0 18px;
  transition: color 220ms ease;
}

.tab-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 260ms ease;
}

.tab-nav a:hover { color: var(--ink); }
.tab-nav a:hover::after,
.tab-nav a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}
.tab-nav a.active { color: var(--ink); font-weight: 600; }

/* Spotlight block */
.spotlight {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--rule);
  color: var(--text);
  padding: clamp(48px, 6vw, 72px) clamp(36px, 5vw, 56px);
  border-radius: 10px;
  margin-bottom: clamp(48px, 6vw, 72px);
  position: relative;
  overflow: hidden;
}

.spotlight::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 80% at 90% 0%, rgba(232, 147, 28, 0.10), transparent 60%);
  pointer-events: none;
}

.spotlight-inner { position: relative; max-width: 820px; }

.spotlight .eyebrow { color: var(--amber-soft); }
.spotlight h2 {
  color: var(--ink);
  margin: 0 0 24px;
  max-width: 22ch;
}
.spotlight p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 18px;
  max-width: 62ch;
}
.spotlight .btn { margin-top: 20px; }

/* ===== Featured spotlights row (static, above the filterable grid) ===== */
.spotlights {
  position: relative;
  padding-top: clamp(44px, 6vw, 80px);
  padding-bottom: clamp(20px, 3vw, 36px);
}
/* Glowing backdrop band that lifts the row off the dark page */
.spotlights::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 72% 60% at 50% -12%, rgba(232, 147, 28, 0.15), transparent 60%),
    radial-gradient(ellipse 40% 55% at 102% 0%, rgba(232, 147, 28, 0.07), transparent 55%);
  pointer-events: none;
}
.spotlights > .container { position: relative; }

.spotlights-head { margin-bottom: clamp(28px, 4vw, 44px); }
.spotlights-head .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--amber-soft);
}
.spotlights-head .eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: linear-gradient(90deg, var(--amber), transparent);
}
.spotlights-head h2 {
  margin: 12px 0 0;
  max-width: 26ch;
  background: linear-gradient(100deg, var(--ink) 58%, var(--amber-soft));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--ink); /* fallback */
}

.spotlight-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.spotlight-card {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  padding: 36px 32px 34px;
  border-radius: 14px;
  /* Gradient hairline border while keeping the translucent glass fill */
  background:
    linear-gradient(var(--bg-glass), var(--bg-glass)) padding-box,
    linear-gradient(140deg, rgba(232, 147, 28, 0.55), rgba(232, 147, 28, 0.10) 38%, rgba(255, 255, 255, 0.06) 72%) border-box;
  border: 1px solid transparent;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
  /* "Spotlight beam": JS sets --mx/--my (pointer) and --rx/--ry (tilt); all default to a tasteful static state */
  transform-style: preserve-3d;
  transform: perspective(900px) translateY(var(--lift, 0)) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  will-change: transform;
  transition: transform 220ms cubic-bezier(.2, .7, .2, 1), box-shadow 340ms ease, background 340ms ease;
}
/* Amber beam that follows the cursor (idle default = soft top glow), sits behind content */
.spotlight-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), rgba(232, 147, 28, 0.24), transparent 62%);
  opacity: 0.9;
  transition: opacity 340ms ease;
  pointer-events: none;
}
.spotlight-card:hover,
.spotlight-card:focus-within {
  --lift: -6px;
  background:
    linear-gradient(var(--bg-glass), var(--bg-glass)) padding-box,
    linear-gradient(140deg, rgba(232, 147, 28, 0.95), rgba(232, 147, 28, 0.28) 42%, rgba(255, 255, 255, 0.12) 74%) border-box;
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.45), 0 0 30px var(--amber-glow);
}
.spotlight-card:hover::before,
.spotlight-card:focus-within::before { opacity: 1; }

/* Static, motion-safe fallback */
@media (prefers-reduced-motion: reduce) {
  .spotlight-card { transform: translateY(var(--lift, 0)); }
  .spotlight-card::before {
    background: radial-gradient(ellipse 85% 70% at 88% -8%, rgba(232, 147, 28, 0.16), transparent 58%);
  }
}

.spotlight-card .card-eyebrow {
  align-self: flex-start;
  display: inline-flex;
  font-family: var(--font-body);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  padding: 6px 12px;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  background: rgba(232, 147, 28, 0.08);
  margin-bottom: 18px;
}
.spotlight-card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.22;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin: 0 0 14px;
}
.spotlight-card p {
  color: var(--text-muted);
  font-size: 0.96rem;
  margin: 0 0 22px;
}
.spotlight-card .card-tags { margin-bottom: 26px; }
.spotlight-card .btn { margin-top: auto; align-self: flex-start; }

@media (max-width: 980px) {
  .spotlight-grid { grid-template-columns: 1fr; max-width: 560px; }
}

/* Portfolio grid (case-study cards) */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
}

.portfolio-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 40px 40px 40px 44px;
  background: var(--bg-glass);
  border-bottom: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
  transition: background 260ms ease;
}

/* Striping is JS-managed on the filterable /work grid: every 2nd *visible* card
   loses its right border. (Replaces the old :nth-child(2n) rule, which mis-stripes
   once cards are hidden by filtering.) */
.portfolio-card.no-right { border-right: none; }
.portfolio-card.is-hidden { display: none; }

.portfolio-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--amber);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 300ms ease;
}

.portfolio-card:hover::before { transform: scaleY(1); }
.portfolio-card:hover { background: rgba(232, 147, 28, 0.04); }

.portfolio-card .card-eyebrow {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 14px;
}

.portfolio-card h4 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}

.portfolio-card p {
  color: var(--text-muted);
  font-size: 0.96rem;
  margin-bottom: 24px;
  flex: 1;
}

.portfolio-card .btn-link {
  align-self: flex-start;
  color: var(--ink);
}

.portfolio-card:hover .btn-link { color: var(--amber); }
.portfolio-card:hover .btn-link .icon { transform: translateX(4px); }

@media (max-width: 800px) {
  .portfolio-grid { grid-template-columns: 1fr; }
  .portfolio-card { border-right: none; padding: 36px 0 36px 20px; }
}

/* ---------- Category glyph chip (JS-injected on spotlight + portfolio cards) ---------- */

.card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.card-head .card-eyebrow { margin-bottom: 0; }   /* the row owns the spacing now */

.card-glyph {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  color: var(--amber-soft);
  background: rgba(232, 147, 28, 0.10);
  border: 1px solid rgba(232, 147, 28, 0.22);
  box-shadow: 0 0 18px rgba(232, 147, 28, 0.10);   /* faint glow */
  transition: color 200ms ease, background 200ms ease, border-color 200ms ease;
}
.card-glyph svg { width: 20px; height: 20px; }

/* Brighten with the card's existing hover */
.spotlight-card:hover .card-glyph,
.spotlight-card:focus-within .card-glyph,
.portfolio-card:hover .card-glyph {
  background: rgba(232, 147, 28, 0.16);
  border-color: rgba(232, 147, 28, 0.40);
  color: var(--amber);
}

@media (max-width: 800px) {
  .card-glyph { width: 34px; height: 34px; }
  .card-glyph svg { width: 18px; height: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .card-glyph { transition: none; }
}

/* ---------- Filter panel (/work) ---------- */

.filter-panel {
  position: relative;
  overflow: hidden;
  background: var(--bg-glass);
  border: 1px solid var(--rule-strong);
  border-radius: 12px;
  padding: clamp(24px, 3vw, 36px);
  margin-bottom: clamp(40px, 5vw, 64px);
}

/* Brand glow — same device as the spotlight, signals an active surface */
.filter-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 45% 70% at 88% 0%, rgba(232, 147, 28, 0.10), transparent 60%);
  pointer-events: none;
}

/* Panel header */
.filter-head {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  padding-bottom: 22px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--rule);
}

.filter-head-icon {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 11px;
  color: var(--amber);
  background: rgba(232, 147, 28, 0.14);
  border: 1px solid var(--rule-strong);
}
.filter-head-icon svg { width: 24px; height: 24px; }

.filter-head-text { flex: 1; min-width: 0; }

.filter-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}

.filter-sub {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

.filter-head-meta {
  flex: none;
  display: flex;
  align-items: center;
  gap: 18px;
}

#results-count {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
}
#results-count strong { color: var(--ink); font-weight: 700; }

.filter-clear {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--amber);
  background: none;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: color 200ms ease-out;
}
.filter-clear:hover { color: var(--amber-soft); }

/* Service row */
.filter-services {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--rule);
}

.filter-label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-right: 6px;
}

/* Shared chip look for service + secondary filters */
.service-chip,
.filter-chip {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink-soft);
  background: var(--bg-glass);
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  padding: 8px 18px;
  cursor: pointer;
  transition: color 200ms ease-out, background 200ms ease-out, border-color 200ms ease-out, box-shadow 200ms ease-out, transform 200ms ease-out;
}

.service-chip { font-weight: 600; }

.service-chip:hover,
.filter-chip:hover {
  color: var(--ink);
  border-color: var(--amber);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.22);
  transform: translateY(-1px);
}

.service-chip[aria-pressed="true"],
.filter-chip[aria-pressed="true"] {
  color: var(--text-inverse);
  background: var(--amber);
  border-color: var(--amber);
  box-shadow: 0 0 0 4px var(--amber-glow);
}

/* Leading check on a selected chip — state cue that isn't colour-only */
.service-chip[aria-pressed="true"]::before,
.filter-chip[aria-pressed="true"]::before {
  content: "";
  width: 6px;
  height: 11px;
  margin: -2px 9px 0 -2px;
  border: solid var(--text-inverse);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  flex: none;
}

.service-chip:focus-visible,
.filter-chip:focus-visible,
.filter-clear:focus-visible,
.filter-secondary summary:focus-visible {
  outline: 2px solid var(--amber-soft);
  outline-offset: 2px;
}

/* Secondary collapsible groups — styled as expandable buttons */
.filter-secondary {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 22px;
}

.filter-secondary details {
  flex: 1 1 240px;
  min-width: 0;
}

.filter-secondary summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  box-sizing: border-box;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 12px 16px;
  background: var(--bg-glass);
  border: 1px solid var(--rule-strong);
  border-radius: 8px;
  transition: color 200ms ease-out, border-color 200ms ease-out, background 200ms ease-out;
}

.filter-secondary summary::-webkit-details-marker { display: none; }
.filter-secondary summary:hover { color: var(--amber); border-color: var(--amber); }
.filter-secondary details[open] summary { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.filter-secondary details.has-selection summary { border-color: var(--amber); }

.summary-label { display: inline-flex; align-items: baseline; gap: 6px; flex: 1; }
.filter-meta { color: var(--text-soft); font-weight: 500; }

.summary-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  background: var(--amber);
  color: var(--text-inverse);
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 999px;
}
.summary-badge[hidden] { display: none; }

.filter-secondary summary::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform 220ms ease-out;
}
.filter-secondary details[open] summary::after { transform: rotate(-135deg); }

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--rule-strong);
  border-top: none;
  border-radius: 0 0 8px 8px;
}

.filter-chip { min-height: 36px; padding: 7px 14px; font-size: 0.78rem; }
.filter-chip[aria-pressed="true"]::before { height: 10px; }

/* One-time attention cue on first reveal (never loops) */
.filter-panel.in .filter-head::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg, transparent, var(--amber), transparent);
  transform-origin: left;
  animation: filterSweep 1000ms ease-out 220ms 1 both;
}
@keyframes filterSweep {
  0%   { transform: scaleX(0); opacity: 0; }
  30%  { opacity: 1; }
  100% { transform: scaleX(1); opacity: 0; }
}
.filter-panel.in .filter-head-icon { animation: filterIconPulse 1500ms ease-out 320ms 1 both; }
@keyframes filterIconPulse {
  0%   { box-shadow: 0 0 0 0 var(--amber-glow-strong); }
  100% { box-shadow: 0 0 0 16px rgba(232, 147, 28, 0); }
}

/* Empty state */
.portfolio-empty {
  text-align: center;
  padding: clamp(48px, 7vw, 80px) 20px;
  border-bottom: 1px solid var(--rule);
}
.portfolio-empty p {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--ink);
  margin-bottom: 16px;
}
.portfolio-empty .btn-link { display: inline-flex; color: var(--amber); }

@media (max-width: 800px) {
  .filter-head { flex-wrap: wrap; gap: 14px; }
  .filter-head-text { flex-basis: calc(100% - 64px); }
  .filter-head-meta { width: 100%; justify-content: space-between; }
  .filter-secondary details { flex-basis: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .service-chip, .filter-chip, .filter-secondary summary,
  .filter-secondary summary::after, .filter-clear { transition: none; }
  .service-chip:hover, .filter-chip:hover { transform: none; }
  .filter-panel.in .filter-head::after,
  .filter-panel.in .filter-head-icon { animation: none; }
}

/* ---------- Footer ---------- */

footer.site-footer {
  background: #030a1f;
  color: var(--text-muted);
  padding: 72px 0 40px;
  border-top: 1px solid var(--rule);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--rule);
}

.footer-brand .nav-logo {
  color: var(--text);
  font-size: 1.5rem;
}
.footer-brand p {
  color: var(--text-soft);
  font-size: 0.92rem;
  margin-top: 12px;
  max-width: 320px;
}

.footer-col h5 {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 20px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col li a {
  font-size: 0.92rem;
  color: var(--text-soft);
  transition: color 200ms ease;
}
.footer-col li a:hover { color: var(--amber); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 32px;
  font-size: 0.82rem;
  color: var(--text-soft);
}

@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
}

/* ---------- Reveal (scroll in) — CSS-only via animation-timeline ---------- */
/* Default state: fully visible, so browsers without animation-timeline support (older
   Safari/Firefox) render everything normally. Supporting browsers layer the animation on. */

@supports (animation-timeline: view()) {
  .reveal {
    animation: reveal-in linear both;
    animation-timeline: view();
    animation-range: entry 10% cover 25%;
  }
}

@keyframes reveal-in {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { animation: none; opacity: 1; transform: none; }
}

/* ---------- Utility ---------- */

.text-center { text-align: center; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }
.amber { color: var(--amber); }
.muted { color: var(--text-muted); }

/* ============================================
   Interactive & Animation Layer
   ============================================ */

/* ---------- Keyframes ---------- */

@keyframes glow-pulse {
  0%, 100% { text-shadow: 0 0 24px rgba(232, 147, 28, 0.4); opacity: 1; }
  50%       { text-shadow: 0 0 48px rgba(232, 147, 28, 0.8); opacity: 0.9; }
}

@keyframes shimmer-sweep {
  0%   { left: -60%; }
  100% { left: 120%; }
}

@keyframes portrait-ring {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes float-up {
  0%   { opacity: 0; transform: translateY(12px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes count-in {
  from { opacity: 0; transform: translateY(8px) scale(0.92); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes word-fade-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes word-fade-out {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-6px); }
}

@keyframes draw-path {
  from { stroke-dashoffset: 1; }
  to   { stroke-dashoffset: 0; }
}

/* ---------- Word cycle ---------- */

.word-cycle {
  display: inline-block;
  color: var(--amber);
  position: relative;
}

.word-cycle.fading-out {
  animation: word-fade-out 200ms ease-in forwards;
}
.word-cycle.fading-in {
  animation: word-fade-in 250ms ease-out forwards;
}

/* ---------- Count-up numbers ---------- */

[data-count] {
  display: inline-block;
  animation: count-in 400ms ease-out both;
}

/* ---------- Timeline (How I provide value) ---------- */

.timeline-wrapper {
  position: relative;
  padding: 24px 0 48px;
}

/* Vertical spine */
.timeline-spine {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 1;
}

.spine-svg {
  width: 2px;
  height: 100%;
  color: var(--amber);
  display: block;
  overflow: visible;
}

/* Each row: card | dot | card-spacer (or spacer | dot | card) */
.timeline-step {
  display: grid;
  grid-template-columns: 1fr 52px 1fr;
  align-items: center;
  gap: 48px;
  padding: 28px 0;
}

.timeline-card-spacer { /* empty cell on the side without a card */ }

/* Node dot */
.timeline-dot {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid var(--amber);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 400ms ease, transform 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.timeline-dot.active {
  opacity: 1;
  transform: scale(1);
}

@media (prefers-reduced-motion: no-preference) {
  .timeline-dot.active {
    animation: pulse-ring 2s ease-out 400ms infinite;
  }

  @keyframes pulse-ring {
    0%   { box-shadow: 0 0 0 0 rgba(232, 147, 28, 0.45); }
    70%  { box-shadow: 0 0 0 14px rgba(232, 147, 28, 0); }
    100% { box-shadow: 0 0 0 0 rgba(232, 147, 28, 0); }
  }
}

.dot-num {
  font-family: var(--font-mono, monospace);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--amber);
  letter-spacing: 0.04em;
}

/* Cards */
.timeline-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 32px 28px;
  background: var(--bg-glass);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid var(--rule);
  border-radius: 10px;
  min-height: 220px;
  position: relative;
  overflow: hidden;
  cursor: default;
  transition: border-color 260ms ease, box-shadow 260ms ease, transform 260ms ease, opacity 600ms ease;
}

.timeline-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 10px;
  background: radial-gradient(circle at 50% 0%, rgba(232, 147, 28, 0.07), transparent 60%);
  opacity: 0;
  transition: opacity 300ms ease;
  pointer-events: none;
}

/* Initial hidden state — left cards enter from left, right cards from right */
.tl-left {
  opacity: 0;
  transform: translateX(-40px);
}
.tl-right {
  opacity: 0;
  transform: translateX(40px);
}

@media (prefers-reduced-motion: reduce) {
  .tl-right, .tl-left { transform: none; }
}

/* Revealed state */
.timeline-card.visible {
  opacity: 1;
  transform: translateX(0);
  transition: opacity 600ms ease, transform 600ms cubic-bezier(0.16, 1, 0.3, 1), border-color 260ms ease, box-shadow 260ms ease;
}

.timeline-card:hover {
  border-color: var(--rule-strong);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3), 0 0 40px var(--amber-glow);
  transform: translateY(-3px);
}
.timeline-card.visible:hover { transform: translateY(-3px); }

.timeline-card:hover::after { opacity: 1; }

.timeline-card .icon-lg {
  width: 32px;
  height: 32px;
  color: var(--amber);
  margin-bottom: 20px;
  stroke-width: 1.5;
  transition: transform 300ms ease, filter 300ms ease;
}

.timeline-card:hover .icon-lg {
  transform: scale(1.15) rotate(8deg);
  filter: drop-shadow(0 0 8px rgba(232, 147, 28, 0.6));
}

.pillar-label {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 8px;
  display: block;
}

.timeline-card h3 { margin-bottom: 10px; color: var(--ink); }
.timeline-card p  { color: var(--text-muted); font-size: 0.96rem; line-height: 1.6; }
.timeline-card .btn-link { margin-top: 18px; }

.tl-programs {
  list-style: none;
  padding: 0;
  margin: 10px 0 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.tl-programs li {
  font-size: 0.92rem;
  color: var(--text-muted);
  padding-left: 16px;
  position: relative;
}
.tl-programs li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--amber);
  opacity: 0.7;
}

/* Mobile: spine left-aligned, all cards stack on right */
@media (max-width: 768px) {
  .timeline-spine { left: 26px; }

  .timeline-step {
    grid-template-columns: 52px 1fr;
    gap: 20px;
    padding: 20px 0;
  }

  /* dot is always column 1 */
  .timeline-dot { grid-column: 1; grid-row: 1; }

  /* both card types occupy column 2, slide in from right */
  .tl-right,
  .tl-left {
    grid-column: 2;
    grid-row: 1;
    transform: translateX(20px);
    opacity: 0;
  }

  .timeline-card.visible { transform: translateX(0); }
  .timeline-card.visible:hover { transform: translateY(-2px); }

  /* hide the spacer cells on mobile */
  .timeline-card-spacer { display: none; }
}

/* ---------- Stagger delays ---------- */

.stagger-1 { animation-delay: 60ms !important; transition-delay: 60ms !important; }
.stagger-2 { animation-delay: 120ms !important; transition-delay: 120ms !important; }
.stagger-3 { animation-delay: 180ms !important; transition-delay: 180ms !important; }
.stagger-4 { animation-delay: 240ms !important; transition-delay: 240ms !important; }
.stagger-5 { animation-delay: 300ms !important; transition-delay: 300ms !important; }

/* ---------- Magnetic buttons ---------- */

.btn-magnetic {
  will-change: transform;
}

/* ---------- Section backgrounds (dark variants) ---------- */

section { background: var(--bg); }
.cards-section { background: var(--bg-2); }
.pullquote-section { background: var(--bg-2); }
.testimonial-featured { background: var(--bg-2); }

/* About page cert section */
section[style*="background: var(--paper-alt)"],
section[style*="background:var(--paper-alt)"] {
  background: var(--bg-2) !important;
}

/* ---------- Eyebrow text on dark bg ---------- */
.eyebrow { color: var(--amber); }

/* ---------- Section dividers ---------- */
section + section { border-top: 1px solid var(--rule); }

/* ---------- Mobile nav dark ---------- */
@media (max-width: 860px) {
  #main-nav.open { display: block; }
  nav ul {
    border-top: 1px solid var(--rule);
  }
  .tab-nav {
    top: 62px;
    gap: 20px;
  }
}

/* ---------- Pillars dark mode ---------- */
.pillars {
  border-color: var(--rule);
}
.pillar {
  border-right-color: var(--rule);
}
.pillar p { color: var(--text-muted); }

/* ---------- reduced motion override ---------- */
@media (prefers-reduced-motion: reduce) {
  .word-cycle { animation: none !important; }
  [data-count] { animation: none !important; }
  .about-bio .portrait::before,
  .about-bio .portrait::after,
  .about-portrait-card .portrait::before,
  .about-portrait-card .portrait::after { animation: none !important; }
  .cta-strip::after { animation: none !important; }
  .pullquote::before { animation: none !important; }
}

/* =============================================
   NEW COMPONENTS — v2 Visual Enhancement
   ============================================= */

/* ---------- Stat cards (proof points) ---------- */

.stat-card {
  position: relative;
  padding: 36px 32px;
  background: var(--bg-glass);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid var(--rule);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 260ms ease, box-shadow 260ms ease, transform 260ms ease;
  transform-style: preserve-3d;
  will-change: transform;
}

.stat-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--amber), var(--amber-soft));
  border-radius: 8px 0 0 8px;
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 300ms ease;
}

.stat-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 8px;
  background: radial-gradient(circle at 50% 0%, rgba(232, 147, 28, 0.07), transparent 60%);
  opacity: 0;
  transition: opacity 300ms ease;
  pointer-events: none;
}

.stat-card:hover::before { transform: scaleY(1); }
.stat-card:hover::after  { opacity: 1; }
.stat-card:hover {
  border-color: var(--rule-strong);
  box-shadow: 0 8px 40px rgba(0,0,0,0.3), 0 0 40px rgba(232,147,28,0.06);
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 4.5rem);
  font-weight: 700;
  line-height: 1;
  color: var(--amber);
  letter-spacing: -0.02em;
  margin: 16px 0 6px;
}

.stat-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.stat-context {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 0;
}

.stat-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  margin-top: 1rem;
}

/* ---------- Testimonial footer (avatar + cite) ---------- */

.testimonial-footer {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 22px;
  border-top: 1px solid rgba(10, 23, 68, 0.15);
  margin-top: 4px;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(232, 147, 28, 0.12);
  border: 1px solid rgba(232, 147, 28, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  color: #8B5A0A;
  letter-spacing: 0.04em;
}

/* Override the testimonial-card cite border since footer handles it */
.testimonial-footer cite {
  display: block;
  padding-top: 0;
  border-top: none;
  font-style: normal;
  font-size: 0.875rem;
  line-height: 1.45;
  color: #2A3566;
}

/* ---------- Tools strip (about page) ---------- */

.tools-section { background: var(--bg); }

.tools-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  margin-top: 2rem;
}

.tool-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--bg-glass);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--rule);
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 200ms ease, border-color 200ms ease, background 200ms ease;
  cursor: default;
}

.tool-pill:hover {
  color: var(--amber);
  border-color: var(--rule-strong);
  background: var(--amber-glow);
}

.tool-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  stroke: currentColor;
}

/* ---------- About bio — larger portrait on desktop ---------- */

@media (min-width: 901px) {
  .about-bio .portrait {
    width: 280px;
  }
  .about-bio .portrait .portrait-img {
    width: 280px;
    height: 280px;
    object-fit: cover;
  }
}

/* ---------- Value prop cards — compact (no body copy) ---------- */

.card-edit:not(:has(p)) {
  padding-bottom: 32px;
}

.card-edit h3 {
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .stat-number { font-size: clamp(2.5rem, 10vw, 3.5rem); }
  .tools-grid  { gap: 0.5rem; }
  .tool-pill   { font-size: 0.8125rem; padding: 0.4rem 0.875rem; }
}

/* ===== ABOUT BLURB ===== */
.about-blurb {
  font-size: 1.15rem;
  line-height: 1.75;
  color: var(--ink);
  margin-bottom: 40px;
}

/* ===== FAQ SECTION ===== */
.faq-section {
  padding: 120px 0;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 860px;
  margin: 0 auto;
}

.faq-group-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
  padding-left: 4px;
  margin-top: 20px;
  margin-bottom: 4px;
}

.faq-group-label:first-child {
  margin-top: 0;
}

.faq-cta {
  margin-top: 48px;
  text-align: center;
}

.faq-item {
  background: var(--bg-glass);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid var(--rule);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  position: relative;
}

.faq-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--amber);
  opacity: 0;
  transition: opacity 0.25s ease;
  border-radius: 8px 0 0 8px;
}

.faq-item[open]::before,
.faq-item:hover::before {
  opacity: 1;
}

.faq-item[open],
.faq-item:hover {
  border-color: var(--amber-soft);
  box-shadow: 0 0 24px var(--amber-glow), 0 4px 24px rgba(0,0,0,0.25);
}

.faq-item summary {
  list-style: none;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 28px;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--ink-deep);
  line-height: 1.4;
  user-select: none;
  transition: color 0.2s ease;
}

.faq-question:hover {
  color: var(--amber-soft);
}

.faq-chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--amber);
  transition: transform 0.25s ease;
}

.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.2s ease-out;
}

.faq-item[open] .faq-answer {
  grid-template-rows: 1fr;
}

.faq-answer-inner {
  overflow: hidden;
}

.faq-answer-inner > p {
  padding: 0 28px 24px;
  color: var(--ink-soft);
  line-height: 1.75;
  font-size: 1rem;
}

.faq-list details:nth-of-type(1) { animation-delay: 0ms; }
.faq-list details:nth-of-type(2) { animation-delay: 40ms; }
.faq-list details:nth-of-type(3) { animation-delay: 80ms; }
.faq-list details:nth-of-type(4) { animation-delay: 120ms; }
.faq-list details:nth-of-type(5) { animation-delay: 160ms; }
.faq-list details:nth-of-type(6) { animation-delay: 200ms; }
.faq-list details:nth-of-type(7) { animation-delay: 240ms; }

@media (prefers-reduced-motion: reduce) {
  .faq-answer,
  .faq-chevron,
  .faq-item,
  .faq-item::before {
    transition: none;
  }
}

@media (max-width: 768px) {
  .faq-section {
    padding: 80px 0;
  }
  .faq-question {
    padding: 20px;
    font-size: 1rem;
  }
  .faq-answer-inner > p {
    padding: 0 20px 20px;
    font-size: 0.95rem;
  }
}

/* ===== ABOUT QA SECTION ===== */

.about-qa-section {
  padding: 120px 0 72px;
}

.qa-group-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 16px;
  margin-top: 0;
}

.qa-group-label--me {
  margin-top: 40px;
}

/* Bento grid — portrait card + work Q&A cards */
.about-qa-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: auto;
  gap: 16px;
}

/* Portrait card: spans 2 rows */
.about-portrait-card {
  grid-row: span 2;
  grid-column: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 44px 32px;
  background: #ffffff;
  border: 1px solid rgba(232, 147, 28, 0.18);
  border-radius: 12px;
  text-align: center;
  overflow: visible;
  box-shadow:
    0 2px 12px rgba(6, 14, 46, 0.18),
    0 1px 3px rgba(6, 14, 46, 0.1);
}

.about-portrait-card .portrait {
  position: relative;
  width: 200px;
  height: 200px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-portrait-card .portrait::before {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  border: 1px solid rgba(232, 147, 28, 0.28);
  animation: portrait-ring 12s linear infinite;
  box-shadow: 0 0 32px rgba(232, 147, 28, 0.1);
  z-index: 0;
}

.about-portrait-card .portrait::after {
  content: "";
  position: absolute;
  width: 284px;
  height: 284px;
  border-radius: 50%;
  border: 1px dashed rgba(232, 147, 28, 0.1);
  animation: portrait-ring 22s linear infinite reverse;
  z-index: 0;
}

.about-portrait-card .portrait-img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  object-position: center top;
  border-radius: 50%;
  position: relative;
  z-index: 1;
  box-shadow:
    0 0 0 3px rgba(232, 147, 28, 0.35),
    0 0 40px rgba(232, 147, 28, 0.2),
    0 8px 24px rgba(6, 14, 46, 0.18);
}

.about-tags {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.about-tag {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  background: rgba(232, 147, 28, 0.13);
  border: 1px solid rgba(232, 147, 28, 0.28);
  border-radius: 9999px;
  font-size: 0.8125rem;
  color: #3D4F72;
}

.about-tag .tool-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: #b86e0e;
  opacity: 0.9;
}

/* Q&A cards — always visible */
.qa-card {
  padding: 28px 28px;
  background: #ffffff;
  border: 1px solid rgba(232, 147, 28, 0.18);
  border-radius: 12px;
  position: relative;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
  box-shadow:
    0 2px 12px rgba(6, 14, 46, 0.18),
    0 1px 3px rgba(6, 14, 46, 0.1);
}

.qa-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--amber);
  opacity: 0;
  transition: opacity 0.25s ease;
  border-radius: 12px 0 0 12px;
}

.qa-card:hover {
  border-color: rgba(232, 147, 28, 0.45);
  box-shadow:
    0 0 28px rgba(232, 147, 28, 0.12),
    0 6px 24px rgba(6, 14, 46, 0.22);
}

.qa-card:hover::before {
  opacity: 1;
}

.qa-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: rgba(232, 147, 28, 0.13);
  border: 1px solid rgba(232, 147, 28, 0.28);
  border-radius: 8px;
  margin-bottom: 16px;
  flex-shrink: 0;
  color: #b86e0e;
}

.qa-icon svg {
  width: 17px;
  height: 17px;
}

.qa-question {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  color: #060E2E;
  line-height: 1.4;
  margin-bottom: 12px;
}

.qa-answer {
  font-size: 0.9rem;
  line-height: 1.75;
  color: #3D4F72;
  margin: 0;
}

/* Me group — 3 equal columns, no portrait card */
.about-qa-grid--me {
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: auto;
}

@media (max-width: 900px) {
  .about-qa-grid {
    grid-template-columns: 1fr 1fr;
  }

  .about-portrait-card {
    grid-row: span 1;
    grid-column: 1 / -1;
    flex-direction: row;
    gap: 32px;
    padding: 36px 32px;
    text-align: left;
  }

  .about-portrait-card .portrait {
    flex-shrink: 0;
  }

  .about-tags {
    align-items: flex-start;
  }

  .about-tag {
    justify-content: flex-start;
  }

  .about-qa-grid--me {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .about-qa-section {
    padding: 80px 0;
  }

  .about-qa-grid,
  .about-qa-grid--me {
    grid-template-columns: 1fr;
  }

  .about-portrait-card {
    flex-direction: column;
    text-align: center;
  }

  .about-tags {
    align-items: center;
  }

  .about-tag {
    justify-content: center;
  }

  .qa-card {
    padding: 22px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .qa-card,
  .qa-card::before {
    transition: none;
  }
}

/* ===== Live embed modal ===== */
body.modal-open { overflow: hidden; }

.iframe-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 3vw, 40px);
}
.iframe-modal[hidden] { display: none; }

.iframe-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 8, 26, 0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.iframe-modal__dialog {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(1200px, 100%);
  height: min(860px, 92vh);
  background: var(--bg-2);
  border: 1px solid var(--rule-strong);
  border-radius: 14px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(232, 147, 28, 0.06);
  overflow: hidden;
}

.iframe-modal__bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px 12px 18px;
  border-bottom: 1px solid var(--rule);
  background: var(--bg-glass-2);
}
.iframe-modal__title {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  margin-right: auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.iframe-modal__open {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--amber);
  text-decoration: none;
  transition: color 200ms ease;
}
.iframe-modal__open:hover { color: var(--amber-soft); }
.iframe-modal__open .icon { width: 15px; height: 15px; }

.iframe-modal__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  transition: color 200ms ease, border-color 200ms ease, background 200ms ease;
}
.iframe-modal__close:hover {
  color: var(--ink-deep);
  border-color: var(--rule-strong);
  background: rgba(232, 147, 28, 0.08);
}
.iframe-modal__close .icon { width: 18px; height: 18px; }

.iframe-modal__frame {
  flex: 1 1 auto;
  width: 100%;
  border: 0;
  background: #fff;
}

@media (max-width: 640px) {
  .iframe-modal { padding: 0; }
  .iframe-modal__dialog {
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 0;
  }
}

/* =============================================
   CASE STUDY SUB-PAGES (/work/<slug>)
   ============================================= */

.case-body h2 { margin: 72px 0 20px; }
.case-body h2:first-of-type { margin-top: 0; }
.case-body h3 { margin: 40px 0 14px; }
.case-body p { margin-bottom: 18px; color: var(--ink-soft); }
.case-body ul,
.case-body ol { margin: 0 0 18px; padding-left: 24px; }
.case-body li { margin-bottom: 10px; line-height: 1.7; color: var(--ink-soft); }
.case-body li::marker { color: var(--amber); }
.case-body strong { color: var(--ink); }
.case-body .card-tags { margin-top: 4px; }

.case-related-links { list-style: none; padding-left: 0; }
.case-related-links li { margin-bottom: 14px; }

/* =============================================
   CASE-STUDY DIAGRAM COMPONENTS — v11
   Driven by /case.js: html.cx-armed + [data-diagram].is-active
   All animation: transform / opacity / stroke-dashoffset / clip-path only.
   ============================================= */

/* ---------- Figure wrapper ---------- */
figure.case-figure {
  margin: 36px 0 44px;
  padding: 30px 28px 22px;
  background: var(--bg-glass);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid var(--rule);
  border-radius: 10px;
}
.case-figure figcaption {
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}
.flow-row-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--amber);
  margin-bottom: 14px;
}

/* ---------- Horizontal flow diagram ---------- */
.case-flow {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 4px;
}
.flow-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  flex: 0 0 auto;
  width: 96px;
  transition: opacity 500ms ease, transform 550ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
.cx-armed [data-diagram]:not(.is-active) .flow-node { opacity: 0; transform: translateY(10px) scale(0.9); }
.flow-node-dot {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--bg-glass-2);
  border: 1.5px solid var(--amber);
  display: flex; align-items: center; justify-content: center;
  color: var(--amber);
  flex-shrink: 0;
}
.flow-node-dot svg { width: 22px; height: 22px; }
.flow-node-label { font-size: 0.75rem; line-height: 1.4; color: var(--text-muted); letter-spacing: 0.02em; }
.flow-node--hero .flow-node-dot {
  background: rgba(232, 147, 28, 0.12);
  box-shadow: 0 0 24px var(--amber-glow);
}
[data-diagram].is-active .flow-node--hero .flow-node-dot { animation: pulse-ring 2s ease-out 1.4s infinite; }

/* Connectors: SVG lines normalized with pathLength="100" */
.flow-link { flex: 1 1 24px; min-width: 16px; height: 52px; display: flex; align-items: center; }
.flow-link svg { width: 100%; height: 10px; display: block; overflow: visible; }
.link-base  { stroke: var(--rule-strong); stroke-width: 1.5; stroke-dasharray: 2 4; fill: none; }
.link-draw  { stroke: var(--amber); stroke-width: 1.5; stroke-dasharray: 100; stroke-dashoffset: 0; fill: none;
              transition: stroke-dashoffset 900ms cubic-bezier(0.16, 1, 0.3, 1) 250ms; }
.cx-armed [data-diagram]:not(.is-active) .link-draw { stroke-dashoffset: 100; }
.link-pulse { stroke: var(--amber-soft); stroke-width: 3; stroke-linecap: round;
              stroke-dasharray: 5 95; fill: none; opacity: 0; }
[data-diagram].is-active .link-pulse { opacity: 1; animation: dash-travel 2.4s linear 1200ms infinite; }
.link-pulse--reverse { animation-direction: reverse !important; }
.flow-link--slow .link-pulse { stroke: var(--text-muted); animation-duration: 5.5s; }
.flow-link--slow .link-draw  { stroke: var(--text-muted); opacity: 0.55; }
@keyframes dash-travel { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }

/* Sub-flow (nested loop, e.g. coach loop) */
.case-flow--sub { margin-top: 20px; padding-top: 18px; border-top: 1px dashed var(--rule); }
.case-flow--sub .flow-node-dot { width: 40px; height: 40px; }
.case-flow--sub .flow-node-dot svg { width: 17px; height: 17px; }
.case-flow--sub .flow-link { height: 40px; }

@media (max-width: 640px) {
  .case-flow { flex-direction: column; align-items: center; gap: 2px; }
  .flow-node { width: 100%; max-width: 280px; }
  .flow-link { flex: none; width: 34px; height: 34px; justify-content: center; transform: rotate(90deg); }
  .flow-link svg { width: 34px; }
}

/* ---------- Before/after bar meter ---------- */
.case-meter { display: flex; flex-direction: column; gap: 18px; }
.case-meter-row { display: grid; grid-template-columns: 96px 1fr 84px; align-items: center; gap: 14px; }
.case-meter-label { font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-muted); text-align: right; }
.case-meter-track { position: relative; height: 12px; border-radius: 6px; background: rgba(232, 147, 28, 0.07); border: 1px solid var(--rule); }
.case-meter-fill {
  position: absolute; inset: 0; border-radius: 6px;
  background: linear-gradient(90deg, var(--amber), var(--amber-soft));
  transform: scaleX(var(--fill, 1)); transform-origin: left;
  transition: transform 1200ms cubic-bezier(0.16, 1, 0.3, 1) 300ms;
}
.cx-armed [data-diagram]:not(.is-active) .case-meter-fill { transform: scaleX(0); }
.case-meter-fill--muted { background: rgba(138, 148, 184, 0.4); }
.case-meter-value { font-family: var(--font-display); font-size: 1.05rem; color: var(--amber); text-align: left; white-space: nowrap; }
.meter-marker { position: absolute; top: -5px; bottom: -5px; left: var(--at); width: 2px; background: var(--ink-soft); opacity: 0.75; }
.meter-marker::after {
  content: attr(data-label);
  position: absolute; top: -17px; left: 50%; transform: translateX(-50%);
  font-size: 0.62rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-muted); white-space: nowrap;
}
.case-meter-row--marked { margin-top: 14px; }
@media (max-width: 560px) {
  .case-meter-row { grid-template-columns: 72px 1fr 64px; gap: 10px; }
  .case-meter-value { font-size: 0.9rem; }
}

/* ---------- SVG donut gauge ---------- */
.case-gauge { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.gauge-dial { position: relative; width: 132px; height: 132px; flex-shrink: 0; }
.gauge-dial svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.gauge-track { fill: none; stroke: rgba(232, 147, 28, 0.1); stroke-width: 3; }
.gauge-fill {
  fill: none; stroke: var(--amber); stroke-width: 3; stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: calc(100 - var(--gauge, 100));
  transition: stroke-dashoffset 1400ms cubic-bezier(0.16, 1, 0.3, 1) 300ms;
}
.cx-armed [data-diagram]:not(.is-active) .gauge-fill { stroke-dashoffset: 100; }
.gauge-num {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 1.7rem; font-weight: 600; color: var(--ink);
}
.gauge-side { font-size: 0.92rem; color: var(--text-muted); max-width: 300px; line-height: 1.55; }

/* ---------- Star meter (CSAT) ---------- */
.case-stars-group { display: flex; flex-direction: column; gap: 20px; }
.case-stars-row { display: grid; grid-template-columns: 96px auto 70px; align-items: center; gap: 16px; }
.case-stars { position: relative; display: inline-block; line-height: 0; }
.case-stars-base, .case-stars-fill { display: flex; gap: 6px; }
.case-stars-base { color: rgba(200, 208, 238, 0.28); }
.case-stars-base svg, .case-stars-fill svg { width: 32px; height: 32px; }
.case-stars-fill {
  position: absolute; inset: 0; color: var(--amber);
  clip-path: inset(0 calc(100% - var(--stars, 100%)) 0 0);
  transition: clip-path 1300ms cubic-bezier(0.16, 1, 0.3, 1) 300ms;
}
.case-stars-fill svg { fill: currentColor; }
.case-stars--before .case-stars-fill { color: var(--text-muted); }
.cx-armed [data-diagram]:not(.is-active) .case-stars-fill { clip-path: inset(0 100% 0 0); }
.case-stars-num { font-family: var(--font-display); font-size: 1.3rem; color: var(--amber); }
.case-stars-row--before .case-stars-num { color: var(--text-muted); }
@media (max-width: 520px) {
  .case-stars-row { grid-template-columns: 64px auto 56px; gap: 10px; }
  .case-stars-base svg, .case-stars-fill svg { width: 22px; height: 22px; }
}

/* ---------- Funnel (stepped bars) ---------- */
.case-funnel { display: flex; flex-direction: column; gap: 16px; }
.funnel-row { display: grid; grid-template-columns: 138px 1fr; gap: 14px; align-items: center; }
.funnel-label { font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); text-align: right; line-height: 1.35; }
.funnel-track { position: relative; height: 32px; border-radius: 6px; background: rgba(232, 147, 28, 0.05); border: 1px solid var(--rule); }
.funnel-bar {
  position: absolute; top: 0; bottom: 0; left: 0; width: var(--w, 100%);
  border-radius: 6px;
  background: linear-gradient(90deg, rgba(232, 147, 28, 0.85), rgba(245, 184, 74, 0.6));
  transform-origin: left;
  transition: transform 1000ms cubic-bezier(0.16, 1, 0.3, 1);
}
.cx-armed [data-diagram]:not(.is-active) .funnel-bar { transform: scaleX(0); }
.funnel-bar--muted { background: rgba(138, 148, 184, 0.35); }
.funnel-value {
  position: absolute; left: calc(var(--w) + 12px); top: 50%; transform: translateY(-50%);
  font-family: var(--font-display); font-size: 0.95rem; color: var(--ink); white-space: nowrap;
}
/* Full-width row: value sits inside the bar (right-aligned) instead of overflowing */
.funnel-row--full .funnel-value { left: auto; right: 12px; color: var(--text-inverse); }
@media (max-width: 560px) {
  .funnel-row { grid-template-columns: 1fr; gap: 6px; }
  .funnel-label { text-align: left; }
}

/* ---------- Icon grid (solution components) ---------- */
.case-icon-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 720px) { .case-icon-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .case-icon-grid { grid-template-columns: 1fr; } }
.case-icon-cell {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px;
  border: 1px solid var(--rule); border-radius: 8px; background: var(--bg-glass-2);
  transition: border-color 250ms ease, transform 500ms cubic-bezier(0.16, 1, 0.3, 1), opacity 500ms ease;
}
.cx-armed [data-diagram]:not(.is-active) .case-icon-cell { opacity: 0; transform: translateY(10px); }
.case-icon-cell:hover { border-color: var(--rule-strong); transform: translateY(-2px); }
.cell-glyph {
  width: 38px; height: 38px; flex-shrink: 0; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  color: var(--amber); background: rgba(232, 147, 28, 0.1); border: 1px solid var(--rule);
}
.cell-glyph svg { width: 20px; height: 20px; }
.cell-label { font-size: 0.85rem; color: var(--ink-soft); line-height: 1.4; }

/* ---------- Matrix (variants grid) ---------- */
.case-matrix { display: grid; grid-template-columns: 108px repeat(4, 1fr); gap: 8px; align-items: center; }
.matrix-head, .matrix-side { font-size: 0.66rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); }
.matrix-head { text-align: center; }
.matrix-side { text-align: right; padding-right: 6px; }
.matrix-cell {
  height: 40px; border-radius: 6px; border: 1px solid var(--rule);
  background: rgba(232, 147, 28, 0.08);
  display: flex; align-items: center; justify-content: center; color: var(--amber);
  transition: opacity 400ms ease, transform 450ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
.matrix-cell svg { width: 16px; height: 16px; }
.cx-armed [data-diagram]:not(.is-active) .matrix-cell { opacity: 0; transform: scale(0.85); }
@media (max-width: 520px) { .case-matrix { grid-template-columns: 84px repeat(4, 1fr); } }

/* ---------- Two-node loop ---------- */
.case-loop { display: flex; align-items: center; justify-content: center; gap: 14px; }
.loop-arcs { width: 130px; height: 64px; flex-shrink: 0; overflow: visible; }
.loop-tip { stroke: var(--amber); stroke-width: 1.5; fill: none; }

/* ---------- Cursor beam on stat cards ---------- */
.stat-card[data-beam]::after {
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 0%), rgba(232, 147, 28, 0.1), transparent 65%);
}

/* ---------- Reduced motion: kill infinite pulses; everything else already
     neutralized because case.js never adds .cx-armed ---------- */
@media (prefers-reduced-motion: reduce) {
  .link-pulse { animation: none !important; opacity: 0 !important; }
  [data-diagram].is-active .flow-node--hero .flow-node-dot { animation: none !important; }
}

/* =============================================
   Inline live embed (case-study pages)
   Screenshot + overlay CTA → opens the claude.ai
   artifact in a new tab (framing it is unreliable)
   ============================================= */
.case-embed {
  border: 1px solid var(--rule-strong);
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-2);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}
.case-embed__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--rule);
  background: var(--bg-glass-2);
}
.case-embed__title {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.case-embed__open {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--amber);
  text-decoration: none;
  white-space: nowrap;
  transition: color 150ms ease;
}
.case-embed__open:hover { color: var(--amber-soft); }
.case-embed__open .icon { width: 15px; height: 15px; }
.case-embed__stage {
  position: relative;
  aspect-ratio: 16 / 10;
  min-height: 420px;
  max-height: 760px;
}
.case-embed__shot {
  position: absolute;
  inset: 0;
  display: block;
  background: var(--bg-3);
}
.case-embed__shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 400ms ease, filter 300ms ease;
}
.case-embed__shot:hover img,
.case-embed__shot:focus-visible img {
  transform: scale(1.015);
  filter: brightness(0.92);
}
.case-embed__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 26px;
  background: linear-gradient(to top, rgba(6, 14, 46, 0.82), rgba(6, 14, 46, 0.35) 30%, transparent 62%);
}
.case-embed__shot:hover .case-embed__play,
.case-embed__shot:focus-visible .case-embed__play {
  background: var(--ink-deep);
  transform: translateY(-1px);
}
.case-embed__play {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 24px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--text-inverse);
  font-size: 0.95rem;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(6, 14, 46, 0.35);
  transition: background 150ms ease, transform 150ms ease;
}
.case-embed__play .icon { width: 18px; height: 18px; }
.case-embed__claude { width: 19px; height: 19px; flex-shrink: 0; }
.case-embed__note {
  margin-top: 14px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.case-embed__note a { color: var(--amber); }
@media (max-width: 700px) {
  .case-embed__stage { min-height: 0; }
  .case-embed__bar { padding: 10px 14px; }
  .case-embed__title { font-size: 0.78rem; }
}
