:root {
  --bg: #f5f3ef;
  --bg-elevated: #ffffff;
  --pearl-black: #1a1c1b;
  --pearl-white: #f5f3ef;
  --metallic-gray: #6b7280;
  --metallic-gray-light: #9ca3af;
  --metallic-gray-dark: #374151;
  --text: #1a1c1b;
  --muted: #6b7280;
  --line: #e5e7eb;
  --accent: #059669;
  --accent-soft: #10b981;
  --signal: #047857;
  --glow: rgba(5, 150, 105, 0.08);
  --sheen: rgba(255, 255, 255, 0.6);
  --shadow-soft: 0 4px 24px rgba(0, 0, 0, 0.06);
  --shadow-elevated: 0 8px 32px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 12px 40px rgba(0, 0, 0, 0.1);
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --body: "Figtree", system-ui, sans-serif;
  --radius: 14px;
  --max: 100%;
  --pad: clamp(1.25rem, 4vw, 3.5rem);
}

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

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

body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--text);
  background:
    radial-gradient(ellipse 70% 50% at 90% -5%, rgba(5, 150, 105, 0.06), transparent 55%),
    radial-gradient(ellipse 55% 45% at 5% 15%, rgba(107, 114, 128, 0.08), transparent 50%),
    linear-gradient(180deg, #fafaf8 0%, var(--bg) 40%, #efeee9 100%);
  background-attachment: fixed;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
}

.stars {
  display: none;
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.018;
  z-index: 50;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

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

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

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 0.85rem;
}

h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.85rem);
  font-weight: 800;
  max-width: none;
  color: var(--pearl-black);
}

h2 {
  font-size: clamp(1.75rem, 3.8vw, 2.65rem);
  max-width: none;
  color: var(--pearl-black);
}

h3 {
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  color: var(--metallic-gray-dark);
}

.section-lede {
  max-width: 60ch;
  margin-bottom: 2.75rem;
  font-size: 1.08rem;
  line-height: 1.6;
}

.theme-kicker {
  font-family: var(--display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.9rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  padding: 0.9rem var(--pad);
  padding-top: max(0.9rem, env(safe-area-inset-top));
  padding-left: max(var(--pad), env(safe-area-inset-left));
  padding-right: max(var(--pad), env(safe-area-inset-right));
  backdrop-filter: blur(20px) saturate(1.25);
  -webkit-backdrop-filter: blur(20px) saturate(1.25);
  background: rgba(245, 243, 239, 0.85);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 1px 0 var(--sheen) inset;
  transition: border-color 0.35s ease, background 0.35s ease, box-shadow 0.35s ease;
}

.site-header.is-scrolled {
  border-bottom-color: rgba(0, 0, 0, 0.1);
  background: rgba(245, 243, 239, 0.95);
  box-shadow:
    0 1px 0 var(--sheen) inset,
    0 4px 20px rgba(0, 0, 0, 0.06);
}

.logo {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  flex-shrink: 1;
  color: var(--pearl-black);
  transition: color 0.25s ease;
}

.logo:hover {
  color: var(--accent);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  font-size: 0.92rem;
  color: var(--muted);
  flex-shrink: 0;
}

.nav a:not(.nav-cta) {
  position: relative;
  transition: color 0.25s ease;
}

.nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-soft));
  border-radius: 2px;
  transition: width 0.28s ease;
}

.nav a:not(.nav-cta):hover {
  color: var(--pearl-black);
}

.nav a:not(.nav-cta):hover::after {
  width: 100%;
}

.nav a:not(.nav-cta).is-active {
  color: var(--pearl-black);
  font-weight: 600;
}

.nav a:not(.nav-cta).is-active::after {
  width: 100%;
}

.nav-cta {
  color: var(--pearl-black) !important;
  padding: 0.45rem 0.95rem;
  border: 1px solid rgba(5, 150, 105, 0.25);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.nav-cta:hover {
  border-color: var(--accent);
  background: rgba(5, 150, 105, 0.08);
  box-shadow: 0 4px 16px rgba(5, 150, 105, 0.1);
}

.last-updated-bar {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 0.45rem var(--pad);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.6);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.last-updated-bar strong {
  color: var(--pearl-black);
  font-weight: 700;
}

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
  width: 100%;
  max-width: 100%;
  margin: 0;
  min-height: calc(100vh - 4.5rem);
  min-height: calc(100dvh - 4.5rem);
  padding: clamp(2rem, 6vh, 4rem) var(--pad) 3rem;
}

.hero-copy {
  max-width: 620px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(5, 150, 105, 0.08);
  color: var(--signal);
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  margin-bottom: 0.9rem;
  box-shadow: inset 0 0 0 1px rgba(5, 150, 105, 0.15);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0.75rem 0 0.5rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.hero-meta span::before {
  content: "•";
  color: var(--accent);
  margin-right: 0.4rem;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.35rem 0 1rem;
}

.hero-tags span {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.65rem;
  border-radius: 8px;
  background: rgba(107, 114, 128, 0.08);
  color: var(--pearl-black);
  font-size: 0.87rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  border: 1px solid rgba(107, 114, 128, 0.12);
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  animation: fadeScale 1s ease 0.3s forwards;
}

.pie-chart-card {
  width: 100%;
  max-width: 540px;
  padding: 2rem 2rem 1.75rem;
  background: linear-gradient(155deg, #ffffff, #fafaf8);
  border-radius: var(--radius);
  border: 1px solid rgba(107, 114, 128, 0.12);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
}

.pie-chart-title {
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--pearl-black);
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
  text-align: center;
}

.pie-chart-subtitle {
  font-size: 0.9rem;
  color: var(--accent);
  text-align: center;
  margin: 0 0 1.5rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.pie-chart-subtitle::before {
  content: "👆";
  font-size: 1rem;
}

.pie-chart-svg {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  margin-bottom: 1.5rem;
  pointer-events: all;
}

.pie-slice {
  opacity: 0;
  transform-origin: 220px 200px;
  animation: sliceFadeIn 0.5s ease forwards;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  pointer-events: all;
}

.pie-slice:nth-child(1) { animation-delay: 0.5s; }
.pie-slice:nth-child(2) { animation-delay: 0.65s; }
.pie-slice:nth-child(3) { animation-delay: 0.8s; }
.pie-slice:nth-child(4) { animation-delay: 0.95s; }
.pie-slice:nth-child(5) { animation-delay: 1.1s; }

.pie-slice:hover {
  opacity: 1 !important;
  transform: scale(1.05);
  filter: brightness(1.15) drop-shadow(0 2px 8px rgba(0, 0, 0, 0.15));
}

.pie-slice.is-active {
  opacity: 1 !important;
  transform: scale(1.08);
  filter: brightness(1.1) drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
}

.industry-details {
  border-top: 2px solid rgba(5, 150, 105, 0.15);
  padding-top: 1.25rem;
  min-height: 160px;
  background: rgba(245, 243, 239, 0.5);
  border-radius: 0 0 var(--radius) var(--radius);
  margin: 0 -2rem -1.75rem;
  padding: 1.5rem 2rem 1.75rem;
}

.industry-detail {
  display: none;
  opacity: 0;
}

.industry-detail.is-visible {
  display: block;
  opacity: 1;
  animation: detailFadeIn 0.4s ease forwards;
}

.industry-detail h4 {
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--pearl-black);
  margin: 0 0 0.75rem;
  letter-spacing: -0.01em;
}

.industry-detail ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.45rem;
}

.industry-detail li {
  font-size: 0.92rem;
  color: var(--muted);
  padding-left: 1.25rem;
  position: relative;
  line-height: 1.5;
}

.industry-detail li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 600;
}

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

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

.hero-copy {
  max-width: none;
}

.hero-portrait {
  margin: 0 0 1.35rem;
  opacity: 0;
  animation: rise 0.8s ease 0s forwards;
}

.hero-portrait-frame {
  position: relative;
  width: clamp(108px, 16vw, 168px);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 25%, rgba(107, 114, 128, 0.15), transparent 55%),
    radial-gradient(circle at 70% 80%, rgba(5, 150, 105, 0.1), transparent 50%),
    linear-gradient(145deg, #ffffff, #f0eeea);
  border: 2px solid rgba(107, 114, 128, 0.2);
  box-shadow:
    0 0 0 4px rgba(5, 150, 105, 0.06),
    0 12px 40px rgba(0, 0, 0, 0.1);
}

.hero-portrait-frame::before {
  content: attr(data-initials);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.75rem, 4vw, 2.4rem);
  letter-spacing: -0.04em;
  color: var(--metallic-gray);
  opacity: 0.6;
  z-index: 0;
}

.hero-portrait-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05);
  pointer-events: none;
  z-index: 2;
}

.hero-portrait-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  z-index: 1;
}

.hero-portrait-frame img.is-missing {
  opacity: 0;
  pointer-events: none;
}

.hero h1 {
  opacity: 0;
  animation: rise 0.8s ease 0.05s forwards;
  max-width: none;
  line-height: 1.1;
}

.hero h1 .title-line {
  display: block;
}

.hero h1 .title-accent {
  background: linear-gradient(135deg, var(--metallic-gray-dark) 0%, var(--accent) 60%, var(--accent-soft) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  color: var(--muted);
  max-width: 52ch;
  font-size: 1.1rem;
  line-height: 1.62;
  opacity: 0;
  animation: rise 0.8s ease 0.15s forwards;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.85rem;
  opacity: 0;
  animation: rise 0.8s ease 0.25s forwards;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  -webkit-tap-highlight-color: transparent;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-soft) 0%, var(--accent) 50%, var(--signal) 100%);
  color: #ffffff;
  border: 1px solid rgba(5, 150, 105, 0.3);
  box-shadow: 0 6px 24px rgba(5, 150, 105, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #34d399 0%, #10b981 45%, #059669 100%);
  box-shadow: 0 10px 32px rgba(5, 150, 105, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn-ghost {
  border: 1px solid rgba(107, 114, 128, 0.25);
  color: var(--pearl-black);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow-soft);
}

.btn-ghost:hover {
  border-color: var(--accent);
  background: rgba(5, 150, 105, 0.06);
  box-shadow: 0 6px 20px rgba(5, 150, 105, 0.08);
}

.float-card {
  opacity: 0;
  animation: cardFloat 0.7s ease 1.3s forwards;
}

.proof,
.stack,
.impact,
.trust,
.experience,
.about,
.repository,
.quote-section,
.hire {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: clamp(3.5rem, 8vh, 6rem) var(--pad);
}

.quote-section {
  padding-top: clamp(2rem, 5vh, 3.5rem);
  padding-bottom: clamp(2rem, 5vh, 3.5rem);
}

.hire {
  padding: 0;
}

.experience .theme-kicker,
.experience h2,
.experience .timeline {
  max-width: none;
  width: 100%;
}

.experience .where p {
  max-width: none;
}

.standout-quote {
  margin: 0;
  width: 100%;
  padding: clamp(2.25rem, 5vw, 3.5rem) var(--pad);
  background:
    radial-gradient(ellipse at 85% 0%, rgba(5, 150, 105, 0.06), transparent 50%),
    radial-gradient(ellipse at 10% 100%, rgba(107, 114, 128, 0.04), transparent 45%),
    linear-gradient(180deg, #ffffff, #fafaf8);
  border: 1px solid rgba(107, 114, 128, 0.1);
  border-left: none;
  border-top: 3px solid var(--metallic-gray);
  border-bottom: 1px solid rgba(107, 114, 128, 0.08);
  box-shadow:
    inset 0 1px 0 var(--sheen),
    var(--shadow-soft);
  transition: box-shadow 0.35s ease;
}

.standout-quote:hover {
  box-shadow:
    inset 0 1px 0 var(--sheen),
    var(--shadow-glow);
}

.standout-quote p {
  margin: 0 0 0.9rem;
  font-family: var(--display);
  font-size: clamp(1.4rem, 3.2vw, 2.15rem);
  font-weight: 600;
  line-height: 1.32;
  letter-spacing: -0.025em;
  color: var(--pearl-black);
  max-width: none;
}

.standout-quote cite {
  font-style: normal;
  font-size: 0.95rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.hire-panel {
  width: 100%;
  padding: clamp(2.75rem, 6vw, 4.75rem) var(--pad);
  background:
    radial-gradient(ellipse at 92% 8%, rgba(5, 150, 105, 0.08), transparent 48%),
    radial-gradient(ellipse at 8% 92%, rgba(107, 114, 128, 0.06), transparent 42%),
    linear-gradient(180deg, #ffffff 0%, #fafaf8 100%);
  border: none;
  border-top: 1px solid rgba(5, 150, 105, 0.15);
  border-bottom: 1px solid rgba(107, 114, 128, 0.1);
  box-shadow:
    inset 0 1px 0 var(--sheen),
    0 -24px 64px rgba(0, 0, 0, 0.03);
}

.hire-brand {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.45rem;
  background: linear-gradient(90deg, var(--metallic-gray-dark), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.02em;
  margin-bottom: 0.8rem;
}

.hire-panel h2 {
  max-width: none;
}

.hire-panel > p {
  color: var(--muted);
  max-width: none;
  font-size: 1.05rem;
  line-height: 1.6;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}

.proof-grid article {
  padding: 1.6rem 1.35rem;
  background: linear-gradient(160deg, #ffffff 0%, #fafaf8 100%);
  border: 1px solid rgba(107, 114, 128, 0.1);
  border-top: 2px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.proof-grid article:hover {
  transform: translateY(-3px);
  border-color: rgba(5, 150, 105, 0.25);
  box-shadow: var(--shadow-glow);
}

.stat {
  font-family: var(--display);
  font-size: clamp(2rem, 3.5vw, 2.85rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin: 0 0 0.5rem;
  background: linear-gradient(135deg, var(--pearl-black) 0%, var(--metallic-gray) 45%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-label {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0;
  line-height: 1.45;
}

/* Use Cases Section */
.use-cases {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--line);
}

.use-cases-title {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--pearl-black);
  margin: 0 0 1.75rem;
  letter-spacing: -0.02em;
}

.use-cases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.use-case {
  padding: 1.5rem;
  background: linear-gradient(160deg, #ffffff 0%, #fafaf8 100%);
  border: 1px solid rgba(107, 114, 128, 0.1);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.use-case:hover {
  transform: translateY(-2px);
  border-color: rgba(5, 150, 105, 0.25);
  border-left-color: var(--accent);
  box-shadow: var(--shadow-glow);
}

.use-case-tag {
  display: inline-block;
  font-family: var(--display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(5, 150, 105, 0.08);
  padding: 0.3rem 0.6rem;
  border-radius: 0.35rem;
  margin-bottom: 0.75rem;
}

.use-case h4 {
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--pearl-black);
  margin: 0 0 0.6rem;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.use-case p {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.55;
}

.stack-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}

.stack-list li {
  padding: 1.85rem 1.5rem 1.85rem 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.28s ease;
}

.stack-list li:hover {
  background: rgba(5, 150, 105, 0.03);
}

.stack-list li:nth-child(even) {
  padding-left: 1.5rem;
  border-left: 1px solid var(--line);
}

.stack-list h3 {
  color: var(--accent);
}

.stack-list p {
  color: var(--muted);
  margin: 0;
  max-width: 40ch;
}

.impact-rows {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--line);
}

.impact-rows article {
  padding: 2.1rem 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.28s ease;
}

.impact-rows article:hover {
  background: rgba(5, 150, 105, 0.02);
}

.impact-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.7rem;
}

.impact-rows h3 {
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
  max-width: 28ch;
}

.impact-rows p {
  color: var(--muted);
  max-width: 54ch;
  margin: 0;
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.timeline li {
  display: grid;
  grid-template-columns: minmax(11rem, 16rem) 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  padding: 1.85rem 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.28s ease;
}

.timeline li:hover {
  background: rgba(5, 150, 105, 0.02);
}

.when {
  color: var(--muted);
  font-size: 0.9rem;
  padding-top: 0.2rem;
}

.where h3 {
  margin-bottom: 0.45rem;
}

.where p {
  color: var(--muted);
  margin: 0;
  max-width: 52ch;
}

.quotes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 1.35rem;
  margin-bottom: 2.75rem;
  align-items: stretch;
}

.quotes blockquote {
  margin: 0;
  padding: 1.6rem;
  background: linear-gradient(165deg, #ffffff 0%, #fafaf8 100%);
  border: 1px solid rgba(107, 114, 128, 0.1);
  border-left: 3px solid var(--metallic-gray);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  transition: box-shadow 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.quotes blockquote:hover {
  border-color: rgba(5, 150, 105, 0.2);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

.quotes blockquote p {
  font-size: 0.98rem;
  line-height: 1.6;
  margin: 0 0 1rem;
  color: var(--pearl-black);
}

.quotes blockquote footer {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: auto;
}

.quotes blockquote footer a,
.quotes blockquote .quote-name {
  color: var(--pearl-black);
  text-decoration: none;
  transition: color 0.2s ease;
  font-weight: 700;
}

.quotes blockquote footer a:hover {
  color: var(--accent);
}

.quotes blockquote .quote-meta {
  font-weight: 500;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.35;
}

.creds-label {
  font-family: var(--display);
  font-weight: 700;
  margin-bottom: 0.85rem;
}

.creds ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.creds li {
  padding: 0.48rem 0.9rem;
  border: 1px solid rgba(107, 114, 128, 0.15);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--pearl-black);
  background: rgba(255, 255, 255, 0.7);
  transition: border-color 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.creds li:hover {
  border-color: var(--accent);
  background: rgba(5, 150, 105, 0.05);
  color: var(--pearl-black);
}

.repository-soon {
  margin-top: 0.5rem;
  padding: clamp(2rem, 4vw, 3rem);
  border-radius: var(--radius);
  border: 1px solid rgba(107, 114, 128, 0.12);
  background:
    radial-gradient(ellipse at 12% 20%, rgba(107, 114, 128, 0.06), transparent 50%),
    radial-gradient(ellipse at 88% 80%, rgba(5, 150, 105, 0.05), transparent 48%),
    linear-gradient(160deg, #ffffff 0%, #fafaf8 100%);
  box-shadow: var(--shadow-soft);
}

.repository-soon-label {
  margin: 0 0 0.65rem;
  font-family: var(--display);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--pearl-black) 0%, var(--metallic-gray) 50%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.repository-soon p:last-child {
  margin: 0;
  color: var(--muted);
  max-width: 48ch;
  font-size: 1.05rem;
  line-height: 1.6;
}

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

.about-intro {
  max-width: 68ch;
  margin: 0 0 2rem;
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--pearl-black);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.about-card {
  padding: 1.35rem 1.5rem;
  background: linear-gradient(160deg, #ffffff 0%, #fafaf8 100%);
  border: 1px solid rgba(107, 114, 128, 0.1);
  border-top: 3px solid var(--metallic-gray);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.about-card h4 {
  margin: 0 0 0.65rem;
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--pearl-black);
  letter-spacing: -0.01em;
}

.about-card p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--muted);
}

.about-books {
  width: 100%;
  max-width: none;
  padding: 1.5rem;
  background: rgba(107, 114, 128, 0.04);
  border-radius: var(--radius);
  border: 1px solid rgba(107, 114, 128, 0.08);
}

.about-books h4 {
  margin: 0 0 1rem;
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--pearl-black);
  letter-spacing: -0.01em;
}

.about-books ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem 2rem;
}

.about-books li {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--pearl-black);
  line-height: 1.4;
}

.about-books li span {
  display: block;
  font-weight: 400;
  font-size: 0.78rem;
  color: var(--muted);
}

.about-books li.currently-reading {
  color: var(--accent);
}

.about-books li.currently-reading span {
  color: var(--accent);
  font-weight: 500;
}

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

.hire-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.85rem 0 0;
}

.hire-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
}

.site-footer {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 1.85rem var(--pad) max(2.5rem, env(safe-area-inset-bottom));
  border-top: 1px solid rgba(107, 114, 128, 0.1);
  background: rgba(255, 255, 255, 0.5);
}

.footer-copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.footer-updated {
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  opacity: 0.75;
}

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

@keyframes fadeScale {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.65s ease,
    transform 0.65s ease;
  transition-delay: var(--reveal-delay, 0ms);
}

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

@media (max-width: 900px) {
  .nav {
    gap: 0.5rem;
  }

  .nav a:not(.nav-cta) {
    display: none;
  }

  .nav-cta {
    padding: 0.55rem 0.95rem;
    font-size: 0.88rem;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 2rem;
    padding: 1.75rem var(--pad) 2.5rem;
  }

  .hero-copy {
    order: 0;
    max-width: none;
  }

  .hero-visual {
    order: 1;
  }

  .pie-chart-card {
    max-width: 100%;
    padding: 1.5rem 1.25rem;
  }
  
  .pie-chart-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
  }
  
  .pie-chart-subtitle {
    font-size: 0.85rem;
    margin-bottom: 1rem;
  }
  
  .pie-chart-subtitle::before {
    font-size: 0.9rem;
  }
  
  .industry-details {
    min-height: 180px;
    margin: 0 -1.25rem -1.5rem;
    padding: 1.25rem 1.25rem 1.5rem;
  }
  
  .industry-detail h4 {
    font-size: 0.95rem;
  }
  
  .industry-detail li {
    font-size: 0.87rem;
  }

  .hero h1 {
    font-size: clamp(1.85rem, 7.5vw, 2.6rem);
  }

  .hero-sub {
    max-width: none;
    font-size: 1rem;
  }

  .proof,
  .stack,
  .impact,
  .trust,
  .experience,
  .about,
  .repository,
  .quote-section,
  .hire {
    padding: clamp(2.25rem, 6vh, 3.5rem) var(--pad);
  }

  h2 {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }

  .proof-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .use-cases-grid {
    grid-template-columns: 1fr;
  }

  .stack-list {
    grid-template-columns: 1fr;
  }

  .stack-list li {
    padding-left: 0;
    padding-right: 0;
  }

  .stack-list li:nth-child(even) {
    padding-left: 0;
    border-left: none;
  }

  .stack-list p,
  .impact-rows p,
  .where p,
  .section-lede {
    max-width: none;
  }

  .impact-rows h3 {
    max-width: none;
  }

  .impact-rows article:hover {
    padding-left: 0;
  }

  .timeline li {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

  .when {
    padding-top: 0;
  }

  .hire-panel {
    padding: clamp(2rem, 5vw, 3rem) var(--pad);
  }

  .hire-panel h2 {
    max-width: none;
  }

  .site-footer {
    padding: 1.75rem var(--pad) max(2.5rem, env(safe-area-inset-bottom));
  }

  .footer-row {
    flex-direction: column;
    align-items: stretch;
  }

  .footer-contact {
    flex-direction: column;
  }

  .footer-contact .btn {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .hero-actions,
  .hire-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .proof-grid {
    grid-template-columns: 1fr;
  }

  .proof-grid article {
    padding: 1.25rem 1rem;
  }

  .stat {
    font-size: 2.15rem;
  }

  .creds ul {
    gap: 0.45rem;
  }

  .creds li {
    font-size: 0.82rem;
    padding: 0.4rem 0.7rem;
  }

  .journey-plane {
    aspect-ratio: 4 / 3;
  }
}

@media (hover: none) {
  .btn:hover,
  .proof-grid article:hover,
  blockquote:hover {
    transform: none;
  }

  .impact-rows article:hover {
    padding-left: 0;
  }
}

/* Section Navigator - SPA Navigation */
.section-nav {
  position: fixed;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%) translateX(20px);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.section-nav.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(-50%) translateX(0);
}

.section-nav ul {
  list-style: none;
  margin: 0;
  padding: 0.75rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  position: relative;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 2rem;
  border: 1px solid rgba(107, 114, 128, 0.12);
  box-shadow: 0 4px 24px rgba(20, 18, 28, 0.08);
  padding: 0.75rem 0.5rem;
}

.section-nav li {
  position: relative;
}

.section-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  text-decoration: none;
  position: relative;
  transition: all 0.3s ease;
}

.section-nav a span {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--metallic-gray);
  opacity: 0.35;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.section-nav a:hover span {
  opacity: 0.7;
  transform: scale(1.3);
  background: var(--accent);
}

.section-nav a.is-active span {
  opacity: 1;
  background: linear-gradient(135deg, var(--accent) 0%, #2a9d8f 100%);
  transform: scale(1.4);
  box-shadow: 0 0 0 3px rgba(26, 129, 112, 0.15);
}

/* Section label tooltip */
.section-nav a::before {
  content: attr(data-label);
  position: absolute;
  right: calc(100% + 0.75rem);
  top: 50%;
  transform: translateY(-50%) translateX(8px);
  padding: 0.4rem 0.75rem;
  background: var(--pearl-black);
  color: var(--pearl-white);
  font-family: var(--body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  border-radius: 0.5rem;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-nav a::after {
  content: "";
  position: absolute;
  right: calc(100% + 0.35rem);
  top: 50%;
  transform: translateY(-50%) translateX(8px);
  border: 5px solid transparent;
  border-left-color: var(--pearl-black);
  opacity: 0;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-nav a:hover::before,
.section-nav a:hover::after {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* Progress bar */
.section-nav-progress {
  position: absolute;
  left: 50%;
  top: 0.75rem;
  width: 2px;
  height: 0%;
  background: linear-gradient(180deg, var(--accent) 0%, #2a9d8f 100%);
  border-radius: 1px;
  transform: translateX(-50%);
  z-index: -1;
  transition: height 0.15s ease;
  max-height: calc(100% - 1.5rem);
}

/* Hide section nav on mobile */
@media (max-width: 768px) {
  .section-nav {
    display: none;
  }
}

/* Client Map Section */
.client-map-section {
  width: 100%;
  max-width: 100%;
  padding: clamp(3rem, 6vh, 5rem) var(--pad);
  background: linear-gradient(180deg, #fafaf8 0%, #f5f3ef 100%);
}

.client-map-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 2.5rem;
}

.client-map-header h2 {
  margin-bottom: 1rem;
}

.client-map-header .section-lede {
  margin-bottom: 0;
}

.client-map-container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: var(--radius);
  border: 1px solid rgba(107, 114, 128, 0.12);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
  padding: 2rem;
  overflow: hidden;
}

.map-wrapper {
  position: relative;
  width: 100%;
  height: clamp(420px, 55vh, 580px);
  background: #d4e5f7;
  border-radius: var(--radius);
  overflow: hidden;
}

/* D3 Vector Map */
.d3-map-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.world-map-d3 {
  display: block;
  width: 100%;
  height: 100%;
}

.client-marker {
  cursor: pointer;
}

.client-core {
  transition: transform 0.2s ease;
  transform-box: fill-box;
  transform-origin: center;
}

.client-marker:hover .client-core {
  transform: scale(1.6);
}

.client-pulse {
  opacity: 0.45;
  transform-box: fill-box;
  transform-origin: center;
  animation: clientPulse 1.8s ease-out infinite;
}

@keyframes clientPulse {
  0% {
    transform: scale(0.5);
    opacity: 0.55;
  }
  100% {
    transform: scale(2.4);
    opacity: 0;
  }
}

.map-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 2rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(107, 114, 128, 0.12);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.map-tooltip {
  position: fixed;
  background: var(--pearl-black);
  color: var(--pearl-white);
  padding: 0.6rem 0.9rem;
  border-radius: 8px;
  font-size: 0.85rem;
  line-height: 1.4;
  pointer-events: none;
  z-index: 1000;
  transform: translate(-50%, -100%);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: none;
}

.map-tooltip strong {
  display: block;
  font-weight: 700;
  margin-bottom: 0.15rem;
}

.map-tooltip span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.8rem;
}

.map-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--pearl-black);
}

@media (max-width: 900px) {
  .client-map-container {
    padding: 1.25rem;
  }
  
  .map-wrapper {
    height: clamp(300px, 60vw, 420px);
  }
  
  .map-legend {
    gap: 0.75rem 1.25rem;
  }
  
  .legend-item {
    font-size: 0.8rem;
  }
  
  .legend-dot {
    width: 10px;
    height: 10px;
  }
}

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

  .hero h1,
  .hero-portrait,
  .hero-sub,
  .hero-actions,
  .hero-visual,
  .pie-slice,
  .reveal {
    opacity: 1;
    transform: none;
    animation: none;
  }
}
