/* Emmanuel Umo | Global Talent portfolio (dark-first, Stripe/Linear-inspired) */

:root {
  --bg: #09090b;
  --bg-elevated: #0c0c0f;
  --surface: #18181b;
  --surface-hover: #1f1f23;
  --border: rgba(255, 255, 255, 0.06);
  --border-strong: rgba(255, 255, 255, 0.12);
  --text: #fafafa;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  --accent: #6366f1;
  --accent-soft: rgba(99, 102, 241, 0.15);
  --accent-glow: rgba(99, 102, 241, 0.35);
  --success: #34d399;
  --font-sans: "Inter", system-ui, sans-serif;
  --font-display: "Inter", system-ui, sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 0 0 1px var(--border), 0 24px 48px -12px rgba(0, 0, 0, 0.45);
  --nav-h: 64px;
}

[data-theme="light"] {
  --bg: #fafafa;
  --bg-elevated: #ffffff;
  --surface: #ffffff;
  --surface-hover: #f4f4f5;
  --border: rgba(0, 0, 0, 0.08);
  --border-strong: rgba(0, 0, 0, 0.12);
  --text: #18181b;
  --text-secondary: #52525b;
  --text-muted: #71717a;
  --accent-soft: rgba(99, 102, 241, 0.1);
  --shadow: 0 0 0 1px var(--border), 0 16px 40px -12px rgba(0, 0, 0, 0.08);
}

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

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

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

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

img[loading="lazy"] {
  content-visibility: auto;
}

.about-marquee__slide img,
.project-showcase__visual img,
.product-case-study__visual img {
  background: var(--surface);
}

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

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 10000;
  padding: 0.75rem 1rem;
  background: var(--accent);
  color: #fff;
  border-radius: 6px;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Layout */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5.5rem 0;
  position: relative;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.section-intro {
  max-width: 52ch;
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
}

/* Nav */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease, backdrop-filter 0.25s ease;
}

.site-nav.scrolled {
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.nav-brand {
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
}

.nav-brand span {
  color: var(--text-muted);
  font-weight: 500;
}

.nav-links {
  display: none;
  gap: 1.75rem;
  align-items: center;
}

@media (min-width: 900px) {
  .nav-links {
    display: flex;
    gap: 1.15rem;
  }
}

@media (min-width: 1100px) {
  .nav-links {
    gap: 1.5rem;
  }
}

.nav-links a {
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--text-secondary);
  transition: background 0.2s, color 0.2s;
}

.theme-toggle:hover {
  background: var(--surface);
  color: var(--text);
}

.mobile-toggle {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--text);
}

@media (min-width: 900px) {
  .mobile-toggle {
    display: none;
  }
}

.mobile-menu {
  position: fixed;
  inset: 0;
  top: var(--nav-h);
  background: color-mix(in srgb, var(--bg) 96%, transparent);
  backdrop-filter: blur(16px);
  padding: 1.5rem;
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  z-index: 999;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.mobile-menu a:hover {
  background: var(--surface);
  color: var(--text);
}

/* Hero */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  padding-top: calc(var(--nav-h) + 4rem);
  padding-bottom: 4rem;
  position: relative;
  overflow: hidden;
}

.hero-grid-bg {
  pointer-events: none;
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(color-mix(in srgb, var(--accent) 8%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--accent) 8%, transparent) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 20%, transparent 70%);
  opacity: 0.5;
}

.hero-glow {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 55%;
  max-width: 600px;
  aspect-ratio: 1;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 65%);
  filter: blur(80px);
  opacity: 0.4;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
  animation: fadeUp 0.8s ease both;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 3.75rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 0.5rem;
  animation: fadeUp 0.8s ease 0.08s both;
}

.hero-title-sub {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  animation: fadeUp 0.8s ease 0.12s both;
}

.hero-statement {
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  line-height: 1.5;
  color: var(--text);
  max-width: 38ch;
  margin-bottom: 2.5rem;
  animation: fadeUp 0.8s ease 0.16s both;
}

.hero-statement strong {
  font-weight: 600;
  color: var(--text);
}

.metrics-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 520px;
  margin-bottom: 2.5rem;
  animation: fadeUp 0.8s ease 0.2s both;
}

@media (max-width: 520px) {
  .metrics-row {
    grid-template-columns: 1fr;
    max-width: 100%;
  }
}

.metric {
  padding: 1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.metric-value {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, var(--text) 0%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

[data-theme="light"] .metric-value {
  background: linear-gradient(180deg, var(--text) 0%, #3f3f46 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.metric-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  animation: fadeUp 0.8s ease 0.24s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.35rem;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 10px;
  transition: transform 0.2s, background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--text);
  color: var(--bg);
}

.btn-primary:hover {
  box-shadow: 0 8px 24px color-mix(in srgb, var(--accent) 35%, transparent);
}

[data-theme="light"] .btn-primary {
  background: #18181b;
  color: #fafafa;
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border-strong);
}

.btn-secondary:hover {
  background: var(--surface-hover);
  border-color: var(--border-strong);
}

.btn-explore {
  transition:
    transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.btn-explore:hover {
  transform: translateY(-2px) scale(1.02);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border-strong));
  box-shadow: 0 10px 32px color-mix(in srgb, var(--accent) 22%, transparent);
}

[data-theme="light"] .btn-explore:hover {
  box-shadow: 0 10px 28px rgba(99, 102, 241, 0.15);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Cards grid */
.cards-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 700px) {
  .cards-grid.media-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .cards-grid.media-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.25s, transform 0.25s ease, box-shadow 0.25s;
  box-shadow: 0 0 0 0 transparent;
}

.card:hover {
  border-color: var(--border-strong);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.card-thumb {
  aspect-ratio: 16 / 10;
  background: var(--bg-elevated);
  position: relative;
  overflow: hidden;
}

.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card:hover .card-thumb img {
  transform: scale(1.03);
}

.card-body {
  padding: 1.25rem 1.35rem 1.35rem;
}

.card-pub {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.35rem;
}

.card-title {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.35;
  margin-bottom: 0.5rem;
}

.card-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.65rem;
}

.card-summary {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 1.15rem;
}

.card-footer .btn {
  width: 100%;
  font-size: 0.85rem;
  padding: 0.65rem 1rem;
}

/* Speaking tabs */
.speaking-panel {
  margin-top: 1rem;
}

.year-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1rem;
}

.year-tab {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}

.year-tab:hover {
  color: var(--text);
  background: var(--surface);
}

.year-tab[aria-selected="true"] {
  background: var(--accent-soft);
  color: var(--text);
}

.year-panel {
  display: none;
}

.year-panel.active {
  display: block;
  animation: fadeIn 0.35s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.talk-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.talk-item {
  display: grid;
  gap: 0.75rem;
  padding: 1.35rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color 0.2s;
}

@media (min-width: 768px) {
  .talk-item {
    grid-template-columns: 1fr auto;
    align-items: start;
  }
}

.talk-item:hover {
  border-color: var(--border-strong);
}

.talk-media {
  margin-bottom: 0.85rem;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
}

.talk-media img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.talk-media-grid {
  display: grid;
  gap: 0.6rem;
  margin-bottom: 0.85rem;
}

@media (min-width: 700px) {
  .talk-media-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.talk-title {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
}

.talk-event {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.talk-impact {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  font-style: italic;
}

.talk-audience {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--success);
  white-space: nowrap;
  padding: 0.35rem 0.75rem;
  background: color-mix(in srgb, var(--success) 12%, transparent);
  border-radius: 999px;
  justify-self: end;
  align-self: start;
}

.talk-loc {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* Impact */
.initiative-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 900px) {
  .initiative-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.initiative {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s, transform 0.25s;
}

.initiative:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
}

.initiative-visual {
  aspect-ratio: 4 / 3;
  background: var(--bg-elevated);
  overflow: hidden;
}

.initiative-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.initiative-body {
  padding: 1.35rem 1.5rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.initiative-body h2,
.initiative-body h3 {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.i-block {
  margin-bottom: 0.85rem;
}

.i-block:last-of-type {
  margin-bottom: 0;
}

.i-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.i-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* Impact page: featured rural outreach under hero heading */
.impact-hero-spotlight {
  margin-top: 1.35rem;
  text-align: left;
}

@media (min-width: 768px) {
  .impact-hero-spotlight.initiative {
    flex-direction: row;
    align-items: stretch;
  }

  .impact-hero-spotlight .initiative-visual {
    flex: 0 0 42%;
    max-width: 440px;
    aspect-ratio: 4 / 3;
    align-self: stretch;
  }

  .impact-hero-spotlight .initiative-body {
    flex: 1;
    min-width: 0;
  }
}

/* Case studies */
.case-grid {
  display: grid;
  gap: 2rem;
}

.case-study {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
}

@media (min-width: 900px) {
  .case-study {
    grid-template-columns: 1fr 1fr;
  }
}

.case-visual {
  min-height: 240px;
  background: var(--bg-elevated);
}

.case-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 240px;
}

.case-content {
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.case-content h3 {
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.case-row {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.case-row:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.case-row .i-label {
  margin-bottom: 0.35rem;
}

.case-row p {
  font-size: 0.925rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Awards */
.awards-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 600px) {
  .awards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .awards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.award-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.25s, border-color 0.25s;
}

.award-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
}

.award-thumb {
  aspect-ratio: 16 / 10;
  background: var(--bg-elevated);
}

.award-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.award-body {
  padding: 1.15rem 1.25rem 1.35rem;
}

.award-body h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  letter-spacing: -0.02em;
}

.award-org {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.award-date {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0;
  margin-top: 2rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: flex-start;
}

@media (min-width: 640px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-tagline {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 36ch;
  line-height: 1.5;
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Divider between major sections */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 0 auto;
  max-width: 1160px;
}

/* Landing (home): product-led hero */
.hero--home {
  min-height: auto;
  min-height: unset;
  padding-top: calc(var(--nav-h) + 2.5rem);
  padding-bottom: 3rem;
}

.hero--product {
  padding-bottom: 4rem;
}

@media (min-width: 960px) {
  .hero--home.hero--product {
    min-height: min(100dvh, 920px);
    display: flex;
    align-items: center;
    padding-top: calc(var(--nav-h) + 1.5rem);
    padding-bottom: 3.5rem;
  }
}

.hero-grid-bg--product {
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 90% 70% at 30% 20%, black 15%, transparent 72%);
  opacity: 0.35;
}

.hero-ambient {
  pointer-events: none;
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 40% at 85% 35%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 70%),
    radial-gradient(ellipse 40% 50% at 10% 80%, rgba(255, 255, 255, 0.03), transparent 65%);
}

.hero-glow--product {
  top: 5%;
  right: 5%;
  width: 45%;
  opacity: 0.28;
  filter: blur(100px);
}

[data-theme="light"] .hero-glow--product {
  opacity: 0.18;
}

.hero-split {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  align-items: stretch;
}

@media (min-width: 960px) {
  .hero-split--product {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
    gap: clamp(2rem, 4vw, 4rem);
    align-items: center;
  }
}

.hero-split .hero-copy {
  min-width: 0;
}

.hero--product .hero-eyebrow {
  color: var(--accent);
  opacity: 0.9;
  margin-bottom: 1.25rem;
}

.hero--product h1 {
  font-size: clamp(2.15rem, 4.8vw, 3.65rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.06;
  max-width: 20ch;
  margin-bottom: 1.35rem;
  text-wrap: balance;
}

.hero-lede {
  font-size: clamp(1rem, 1.65vw, 1.125rem);
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 46ch;
  margin-bottom: 1.75rem;
  animation: fadeUp 0.85s ease 0.14s both;
}

.hero--product .hero-ctas {
  animation-delay: 0.22s;
}

/* Layered product visual stack */
.hero-visual {
  position: relative;
  width: 100%;
  max-width: 540px;
  margin-inline: auto;
}

@media (min-width: 960px) {
  .hero-visual {
    margin-inline: 0 0 auto;
    max-width: none;
  }
}

.hero-visual-glow {
  position: absolute;
  inset: 10% 5% 5%;
  background: radial-gradient(circle at 50% 40%, var(--accent-glow), transparent 62%);
  filter: blur(48px);
  opacity: 0.35;
  pointer-events: none;
}

.hero-portrait {
  position: relative;
  margin: 0;
  width: 100%;
  max-width: 400px;
  margin-inline: auto;
  aspect-ratio: 4 / 5;
  max-height: min(560px, 72vh);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--surface);
  animation: fadeUp 0.9s ease 0.2s both;
}

.hero-portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 22%, transparent);
  border-radius: inherit;
}

.hero-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

@media (min-width: 960px) {
  .hero-portrait {
    max-width: none;
    margin-inline: 0 0 auto;
  }
}

.hero-visual-stack {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 0.92;
  max-height: 520px;
  transform-style: preserve-3d;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  animation: fadeUp 0.9s ease 0.2s both;
}

.hero-ui-card {
  position: absolute;
  margin: 0;
  border-radius: 14px;
  border: 1px solid var(--border-strong);
  background: #0c0c10;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 32px 64px -16px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s ease;
}

[data-theme="light"] .hero-ui-card {
  background: #fafafa;
  box-shadow:
    0 0 0 1px var(--border) inset,
    0 28px 56px -20px rgba(0, 0, 0, 0.12);
}

.hero-ui-card:hover {
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent) inset,
    0 40px 72px -20px rgba(0, 0, 0, 0.5);
}

.hero-ui-chrome {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 60%, #0a0a0c);
}

.hero-ui-chrome--compact {
  padding: 0.45rem 0.6rem;
}

.hero-ui-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--border-strong);
  flex-shrink: 0;
}

.hero-ui-dot:nth-child(1) {
  background: #ef4444;
  opacity: 0.85;
}

.hero-ui-dot:nth-child(2) {
  background: #eab308;
  opacity: 0.85;
}

.hero-ui-dot:nth-child(3) {
  background: #22c55e;
  opacity: 0.85;
}

.hero-ui-title {
  margin-left: auto;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 55%;
}

.hero-ui-screen {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #111116;
}

.hero-ui-screen--tall {
  aspect-ratio: 3 / 4;
}

.hero-ui-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.hero-ui-card--back {
  width: 72%;
  left: 0;
  top: 14%;
  z-index: 1;
  transform: rotate(-5deg) scale(0.94);
  opacity: 0.72;
  animation: heroFloat 9s ease-in-out infinite;
}

.hero-ui-card--main {
  width: 88%;
  right: 0;
  top: 6%;
  z-index: 3;
  animation: heroFloat 8s ease-in-out 0.6s infinite;
}

.hero-ui-card--float {
  width: 42%;
  left: 8%;
  bottom: 2%;
  z-index: 4;
  animation: heroFloat 7s ease-in-out 1.2s infinite reverse;
}

.hero-ui-widget {
  position: absolute;
  right: 6%;
  bottom: 14%;
  z-index: 5;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: color-mix(in srgb, var(--bg-elevated) 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.45);
  animation: heroFloat 6.5s ease-in-out 0.3s infinite;
}

.hero-ui-widget__label {
  display: block;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

.hero-ui-widget__value {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}

.hero-ui-widget__delta {
  display: block;
  font-size: 0.72rem;
  color: var(--success);
  margin-top: 0.15rem;
}

[data-theme="light"] .hero-ui-widget__delta {
  color: #059669;
}

@keyframes heroFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

.hero-ui-card--back {
  animation-name: heroFloatBack;
}

@keyframes heroFloatBack {
  0%,
  100% {
    transform: rotate(-5deg) scale(0.94) translateY(0);
  }
  50% {
    transform: rotate(-5deg) scale(0.94) translateY(-5px);
  }
}

.hero-ui-card--main {
  animation-name: heroFloatMain;
}

@keyframes heroFloatMain {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.hero-ui-card--float {
  animation-name: heroFloatSide;
}

@keyframes heroFloatSide {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

@media (max-width: 959px) {
  .hero--product h1 {
    max-width: none;
  }

  .hero-visual-stack {
    max-height: 440px;
  }

  .hero-ui-card--float {
    width: 38%;
    bottom: 6%;
  }

  .hero-ui-widget {
    right: 4%;
    bottom: 20%;
    padding: 0.65rem 0.8rem;
  }

  .hero-ui-widget__value {
    font-size: 0.8rem;
  }
}

/* Project showcase (home) */
.projects-section {
  padding: 4rem 0 5rem;
}

.projects-section .section-title {
  margin-bottom: 0.5rem;
}

.project-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .project-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .project-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.project-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.25s, transform 0.25s ease, box-shadow 0.25s;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

a.project-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.project-card-thumb {
  aspect-ratio: 16 / 11;
  background: var(--bg-elevated);
  overflow: hidden;
}

.project-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

a.project-card:hover .project-card-thumb img {
  transform: scale(1.04);
}

.project-card-body {
  padding: 1.15rem 1.25rem 1.35rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.project-card-tag {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.35rem;
}

.project-card-title {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

.project-card-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
  flex: 1;
  margin-bottom: 1rem;
}

.project-card-cta {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

a.project-card:hover .project-card-cta {
  color: var(--accent);
}

/* Explore strip (home) */
.explore-strip {
  padding: 3rem 0 4rem;
  border-top: 1px solid var(--border);
}

.explore-grid {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 700px) {
  .explore-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .explore-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.explore-link {
  display: block;
  padding: 1.15rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.explore-link:hover {
  border-color: var(--border-strong);
  color: var(--text);
  background: var(--surface-hover);
}

.explore-link span {
  display: block;
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* Inner pages */
.page-hero {
  padding-top: calc(var(--nav-h) + 3rem);
  padding-bottom: 2.5rem;
}

.page-hero h1 {
  font-size: clamp(1.85rem, 4vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.page-lede {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 62ch;
  line-height: 1.65;
}

.page-hero .section-label {
  margin-bottom: 0.65rem;
}

.detail-prose {
  max-width: 68ch;
}

.detail-prose p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.detail-prose p:last-child {
  margin-bottom: 0;
}

.detail-prose h2 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  margin: 2rem 0 0.75rem;
  letter-spacing: -0.02em;
}

.detail-prose h2:first-child {
  margin-top: 0;
}

.detail-prose ul {
  margin: 0.5rem 0 1rem 1.25rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.detail-prose li {
  margin-bottom: 0.35rem;
}

.work-detail-block {
  margin-top: 3.5rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
  scroll-margin-top: calc(var(--nav-h) + 1rem);
}

.work-detail-block:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.work-detail-block h2 {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.footer-sitemap {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  margin-top: 1rem;
  font-size: 0.8rem;
}

.footer-sitemap a {
  color: var(--text-muted);
}

.footer-sitemap a:hover {
  color: var(--text-secondary);
}

/* Responsive YouTube / video embeds */
.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #000;
  margin-top: 0.75rem;
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.impact-year-section {
  margin-top: 3.5rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
}

/* First year block sits directly under hero */
.container > .impact-year-section:first-child {
  margin-top: 1.5rem;
  padding-top: 0;
  border-top: none;
}

.impact-year-header .section-intro {
  margin-bottom: 1.75rem;
}

.impact-section-block {
  margin-top: 3.5rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
}

.impact-section-block h2 {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.leadership-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.5rem 1.65rem;
  margin-top: 1rem;
}

.leadership-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.testimonial-quote {
  margin: 1rem 0;
  padding: 1rem 1.15rem;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.initiative-video-caption {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  line-height: 1.45;
}

/* Major projects (docs): home showcase rows */
.project-showcase-stack {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

@media (min-width: 900px) {
  .project-showcase-stack {
    gap: 4rem;
  }
}

.project-showcase {
  display: grid;
  gap: 0;
  align-items: stretch;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.project-showcase:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}

@media (min-width: 900px) {
  .project-showcase {
    grid-template-columns: 1.05fr 1fr;
  }

  .project-showcase--reverse .project-showcase__visual {
    order: 2;
  }

  .project-showcase--reverse .project-showcase__body {
    order: 1;
  }
}

.project-showcase__visual {
  background: var(--bg-elevated);
  min-height: 240px;
}

.project-showcase__visual a {
  display: block;
  height: 100%;
  min-height: 240px;
}

.project-showcase__visual img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.45s ease;
}

.project-showcase:hover .project-showcase__visual img {
  transform: scale(1.02);
}

@media (min-width: 900px) {
  .project-showcase__visual img {
    min-height: 100%;
  }
}

.project-showcase__body {
  padding: 1.75rem 1.75rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (min-width: 900px) {
  .project-showcase__body {
    padding: 2.25rem 2.5rem;
  }
}

.project-showcase__kicker {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.project-showcase__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 0.75rem;
}

.project-showcase__lede {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 0.5rem;
}

.project-showcase__files {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.project-showcase__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

/* Project detail: document grid */
.doc-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .doc-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .doc-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.doc-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s;
}

.doc-card:hover {
  border-color: var(--border-strong);
}

a.doc-card.doc-card--link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

a.doc-card.doc-card--link:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent);
}

.doc-card-preview {
  aspect-ratio: 4 / 3;
  background: var(--bg-elevated);
}

.doc-card-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.doc-card-body {
  padding: 1rem 1.15rem 1.15rem;
}

.doc-card-body h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  letter-spacing: -0.02em;
}

.doc-card-body p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
  line-height: 1.45;
}

.doc-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.btn-text {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent);
}

.btn-text:hover {
  text-decoration: underline;
}

.project-hero-visual {
  margin: 0 auto 2.5rem;
  max-width: 1160px;
  padding: 0 1.5rem;
}

.project-hero-visual figure {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.project-hero-visual img {
  width: 100%;
  display: block;
  vertical-align: middle;
}

/* Scrollable inline PDF (fixed viewport height, scroll inside viewer) */
.pdf-scroll-panel {
  --pdf-sidebar-offset: 180px;
  width: 100%;
  height: min(62vh, 560px);
  min-height: 280px;
  max-height: 680px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  margin-top: 1rem;
  position: relative;
  isolation: isolate;
}

/*
 * Chrome/Edge reserve a left thumbnail rail inside the iframe even with navpanes=0.
 * Widen the iframe and shift it left so the page viewport aligns with this panel;
 * overflow:hidden crops the rail without squashing FitH / page-width zoom.
 */
.pdf-scroll-panel iframe {
  position: absolute;
  top: 0;
  left: calc(-1 * var(--pdf-sidebar-offset));
  width: calc(100% + var(--pdf-sidebar-offset));
  height: 100%;
  border: 0;
  display: block;
}

@media (max-width: 640px) {
  .pdf-scroll-panel {
    --pdf-sidebar-offset: 0px;
  }

  .pdf-scroll-panel iframe {
    left: 0;
    width: 100%;
  }
}

.pdf-scroll-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.65rem;
  line-height: 1.45;
}

.pdf-embed-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 1.5rem;
  margin-bottom: 0.35rem;
}

.pdf-embed-label:first-child {
  margin-top: 0;
}

.project-docs-block {
  margin-top: 2.75rem;
  padding-top: 2.75rem;
  border-top: 1px solid var(--border);
}

.project-docs-block:first-of-type {
  margin-top: 1.5rem;
  padding-top: 0;
  border-top: none;
}

.project-docs-block h3 {
  font-size: clamp(1.35rem, 3vw, 1.65rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}

.project-docs-block .project-showcase__lede,
.project-docs-block .detail-prose p {
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 0.75rem;
}

.project-docs-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

/* Books & thought leadership (uses global theme tokens) */
.books-page {
  padding-bottom: 0;
}

.books-hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.books-hero .page-lede {
  max-width: 52ch;
}

.books-catalog {
  padding: 0 0 5rem;
}

.books-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .books-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 980px), 1fr));
  }
}

.book-card {
  display: grid;
  gap: 2rem;
  align-items: center;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (min-width: 900px) {
  .book-card {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: clamp(2rem, 4vw, 3.5rem);
    padding: clamp(2rem, 4vw, 3rem);
  }
}

.book-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--accent) 20%, transparent),
    0 32px 64px -16px rgba(0, 0, 0, 0.45);
}

[data-theme="light"] .book-card:hover {
  box-shadow:
    0 0 0 1px var(--border-strong),
    0 24px 48px -16px rgba(0, 0, 0, 0.12);
}

.book-card__visual-wrap {
  display: flex;
  justify-content: center;
  perspective: 1200px;
}

.book-card__visual {
  width: min(100%, 340px);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  transform-style: preserve-3d;
  will-change: transform;
}

.book-card:hover .book-card__visual {
  transform: translateY(-4px) rotateY(-4deg) rotateX(2deg);
}

.book-card__visual img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 28px 40px rgba(0, 0, 0, 0.18));
}

.book-card__category {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.book-card__title {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 0.65rem;
}

.book-card__meta {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.book-card__desc {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  max-width: 48ch;
}

.book-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.book-card__actions .btn {
  font-size: 0.875rem;
  padding: 0.7rem 1.25rem;
}

/* Book detail modal (above fixed nav: z-index 1000) */
.book-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: calc(var(--nav-h) + 1rem) 1rem 1.5rem;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.book-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.book-modal[hidden] {
  display: none;
}

.book-modal:not([hidden]) {
  display: flex;
}

.book-modal__backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: color-mix(in srgb, var(--bg) 40%, rgba(0, 0, 0, 0.65));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.book-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  margin: 0 auto;
  max-height: calc(100dvh - var(--nav-h) - 2.5rem);
  background: var(--surface);
  color: var(--text);
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: 0 32px 80px -20px rgba(0, 0, 0, 0.35);
  transform: translateY(24px) scale(0.98);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.book-modal.is-open .book-modal__dialog {
  transform: translateY(0) scale(1);
}

.book-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.book-modal__close:hover {
  background: var(--bg-elevated);
  transform: scale(1.05);
}

.book-modal__hero {
  display: grid;
  gap: 1.5rem;
  padding: 2rem 2rem 1.5rem;
  background: linear-gradient(165deg, var(--bg-elevated) 0%, var(--surface) 55%);
  border-bottom: 1px solid var(--border);
}

@media (max-width: 719px) {
  .book-modal__hero .book-modal__visual {
    order: -1;
  }
}

@media (min-width: 720px) {
  .book-modal__hero {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    align-items: center;
    gap: 2rem;
    padding: 2.5rem 2.5rem 2rem;
  }
}

.book-modal__visual {
  display: flex;
  justify-content: center;
  transition: transform 0.35s ease;
  will-change: transform;
}

.book-modal__visual img {
  width: min(100%, 280px);
  height: auto;
  border-radius: 8px;
  box-shadow: var(--shadow);
  filter: drop-shadow(0 20px 32px rgba(0, 0, 0, 0.2));
}

.book-modal__label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.book-modal__intro h2 {
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 0.5rem;
}

.book-modal__category {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.book-modal__summary {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  max-width: 42ch;
}

.book-modal__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.book-modal__content {
  padding: 0 2rem 2.5rem;
  max-height: none;
}

@media (min-width: 720px) {
  .book-modal__content {
    padding: 0 2.5rem 2.5rem;
  }
}

.book-modal__section {
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  margin-top: 2rem;
}

.book-modal__section:first-child {
  border-top: none;
  margin-top: 0;
  padding-top: 1.5rem;
}

.book-modal__section h3 {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  color: var(--text);
}

.book-modal__section p,
.book-modal__lead {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.book-modal__lead {
  font-size: 1.05rem;
  color: var(--text);
  font-weight: 500;
}

.book-modal__list {
  margin: 0 0 1rem 1.15rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.65;
}

.book-modal__list li {
  margin-bottom: 0.45rem;
}

@media (max-width: 640px) {
  .book-modal {
    padding: var(--nav-h) 0 0;
    align-items: stretch;
  }

  .book-modal__dialog {
    width: 100%;
    max-height: calc(100dvh - var(--nav-h));
    min-height: calc(100dvh - var(--nav-h));
    border-radius: 0;
    border: none;
  }

  .book-card__actions .btn {
    flex: 1 1 auto;
    min-width: calc(50% - 0.35rem);
  }
}

/* About page, editorial layout */
.about-page {
  padding-bottom: 0;
}

.about-editorial {
  max-width: 920px;
  padding: calc(var(--nav-h) + 3.5rem) 1.5rem 5rem;
}

.about-editorial__header {
  margin-bottom: 2.5rem;
}

.about-editorial__header h1 {
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.about-editorial__tagline {
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: -0.01em;
}

.about-marquee {
  position: relative;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-bottom: 2.75rem;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 6%,
    #000 94%,
    transparent 100%
  );
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 6%,
    #000 94%,
    transparent 100%
  );
}

.about-marquee__viewport {
  overflow: hidden;
  width: 100%;
}

.about-marquee__track {
  display: flex;
  width: max-content;
  animation: about-marquee-scroll 52s linear infinite;
  will-change: transform;
}

.about-marquee:hover .about-marquee__track {
  animation-play-state: paused;
}

.about-marquee__group {
  display: flex;
  flex: 0 0 auto;
  align-items: stretch;
  gap: clamp(0.75rem, 2vw, 1.15rem);
  padding-right: clamp(0.75rem, 2vw, 1.15rem);
  margin: 0;
  list-style: none;
}

.about-marquee__slide {
  flex: 0 0 auto;
  width: clamp(200px, 32vw, 300px);
  aspect-ratio: 3 / 4;
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 12px 40px color-mix(in srgb, var(--text) 6%, transparent);
}

.about-marquee__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

@keyframes about-marquee-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .about-marquee__track {
    animation: none;
  }

  .about-marquee__viewport {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .about-marquee__viewport::-webkit-scrollbar {
    display: none;
  }

  .about-marquee__track {
    width: max-content;
  }

  .about-marquee__slide {
    scroll-snap-align: start;
  }

  .about-marquee {
    -webkit-mask-image: none;
    mask-image: none;
  }
}

.about-editorial__prose {
  max-width: 68ch;
}

.about-editorial__prose p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 1.35rem;
}

.about-editorial__prose p:last-child {
  margin-bottom: 0;
}

.about-editorial__prose cite {
  font-style: normal;
  font-weight: 600;
  color: var(--text);
}

.about-editorial__prose strong {
  font-weight: 600;
  color: var(--text);
}

.about-inline-link {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 0.22em;
  text-decoration-color: color-mix(in srgb, var(--text-muted) 70%, transparent);
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.about-inline-link:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

.about-editorial__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

@media (max-width: 768px) {
  .about-marquee__slide {
    width: clamp(180px, 58vw, 240px);
  }

  .about-marquee__track {
    animation-duration: 40s;
  }
}

/* Featured product case studies (work page) */
.product-case-study {
  margin-top: 3.5rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
  scroll-margin-top: calc(var(--nav-h) + 1rem);
}

.product-case-study--featured {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.product-case-study__label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.product-case-study__header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  margin-bottom: 1.5rem;
}

.product-case-study__titles h2 {
  font-size: clamp(1.5rem, 3.2vw, 2.15rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 0.5rem;
}

.product-case-study__tagline {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.5;
  max-width: 52ch;
}

.product-case-study__visual {
  margin: 0 0 2rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
  box-shadow: var(--shadow);
}

.product-case-study__visual img {
  width: 100%;
  display: block;
  vertical-align: middle;
}

.product-case-study__prose {
  max-width: 72ch;
  margin-bottom: 2rem;
}

.product-case-study__grid {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

@media (min-width: 720px) {
  .product-case-study__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.product-case-study__panel {
  padding: 1.35rem 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
}

.product-case-study__panel h3 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}

.product-case-study__panel ul {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.65;
  font-size: 0.95rem;
}

.product-case-study__panel li {
  margin-bottom: 0.35rem;
}

.product-case-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
  margin-bottom: 0.65rem;
}

@media (min-width: 640px) {
  .product-case-metrics {
    grid-template-columns: repeat(4, 1fr);
  }
}

.product-case-metrics__item {
  padding: 1.1rem 1.15rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  text-align: center;
}

.product-case-metrics__value {
  display: block;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1.1;
}

.product-case-metrics__label {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.product-case-metrics__note {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-style: italic;
}

.product-case-study__role {
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.product-case-study__role h3 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.product-case-study__role-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.85rem;
}

.product-case-study__role ul {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.65;
  columns: 1;
}

@media (min-width: 640px) {
  .product-case-study__role ul {
    columns: 2;
    column-gap: 2rem;
  }
}

.product-case-study__role li {
  margin-bottom: 0.35rem;
  break-inside: avoid;
}

