:root {
  --ink: #09090b;
  --ink-2: #18181b;
  --paper: #f5f1ea;
  --paper-2: #fdf9f2;
  --surface: rgba(253, 249, 242, 0.9);
  --surface-strong: #ffffff;
  --surface-dark: #080b12;
  --muted: #5f6673;
  --line: #ddd5c9;
  --blue: #2563eb;
  --cyan: #06b6d4;
  --lime: #a3e635;
  --amber: #f59e0b;
  --rose: #fb7185;
  --violet: #8b5cf6;
  --data-blue: #1e40af;
  --data-green: #22c55e;
  --data-amber: #d97706;
  --data-red: #dc2626;
  --container: 1180px;
  --gutter: 32px;
  --gutter-mobile: 24px;
  --space-section: clamp(64px, 9vw, 118px);
  --shadow: 0 24px 70px rgba(9, 9, 11, 0.15);
  --shadow-card: 0 18px 40px rgba(53, 37, 17, 0.1);
  --shadow-panel: 0 24px 70px rgba(53, 37, 17, 0.14);
  --shadow-dark: 0 24px 80px rgba(0, 0, 0, 0.28);
  --radius: 8px;
  color-scheme: light;
  font-family: "Space Grotesk", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  scroll-behavior: auto;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-width: 320px;
  background: var(--paper);
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(54, 42, 24, 0.06) 1px, transparent 1px) 0 0 / 72px 72px,
    linear-gradient(180deg, rgba(54, 42, 24, 0.06) 1px, transparent 1px) 0 0 / 72px 72px,
    var(--paper);
  overflow-x: hidden;
}

body::selection {
  color: #ffffff;
  background: var(--blue);
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  transform: translateY(-160%);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper-2);
  padding: 10px 14px;
  font-weight: 700;
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(62, 45, 21, 0.14);
  background: rgba(245, 241, 234, 0.86);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(var(--container), calc(100% - var(--gutter)));
  margin: 0 auto;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  aspect-ratio: 1;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  color: #ffffff;
  background: linear-gradient(135deg, var(--ink), var(--blue));
  box-shadow: 5px 5px 0 var(--lime);
  font-family: Archivo, sans-serif;
  font-size: 0.82rem;
  font-weight: 900;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  color: #30343b;
  font-size: 0.95rem;
  font-weight: 700;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  width: 44px;
  height: 44px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper-2);
  box-shadow: 5px 5px 0 rgba(9, 9, 11, 0.14);
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
  transform: translate(-2px, -2px);
  border-color: var(--blue);
  box-shadow: 7px 7px 0 rgba(37, 99, 235, 0.2);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--ink);
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav.is-open .nav-toggle span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav.is-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.nav.is-open .nav-toggle span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.nav-links a {
  position: relative;
  padding: 10px 2px;
}

.nav-links a::after {
  position: absolute;
  right: 0;
  bottom: 5px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 220ms ease;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 0.86fr);
  align-items: center;
  gap: clamp(32px, 5vw, 78px);
  width: min(var(--container), calc(100% - var(--gutter)));
  margin: 0 auto;
  padding: clamp(44px, 6vw, 78px) 0 clamp(36px, 5vw, 64px);
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--blue);
  font-family: Archivo, sans-serif;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  line-height: 1.35;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 34px;
  height: 3px;
  content: "";
  background: linear-gradient(90deg, var(--blue), var(--lime));
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: Archivo, Inter, sans-serif;
  letter-spacing: 0;
}

h1 {
  max-width: 10ch;
  margin-bottom: 20px;
  font-size: clamp(4.7rem, 11vw, 7.6rem);
  font-weight: 900;
  line-height: 0.86;
}

.hero-lede {
  max-width: 660px;
  margin-bottom: 32px;
  color: #30343b;
  font-size: clamp(1.05rem, 1.9vw, 1.34rem);
  line-height: 1.58;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.cta-primary,
.cta-secondary {
  display: inline-flex;
  position: relative;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  border-radius: var(--radius);
  font-weight: 900;
  line-height: 1;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
  cursor: pointer;
}

.cta-primary {
  isolation: isolate;
  min-width: min(100%, 286px);
  overflow: hidden;
  border: 2px solid rgba(9, 9, 11, 0.9);
  padding: 19px 28px;
  color: #ffffff;
  box-shadow: 10px 10px 0 var(--ink);
  font-size: clamp(1rem, 2.6vw, 1.35rem);
  text-transform: uppercase;
}

.cta-primary::before,
.cta-primary::after {
  position: absolute;
  content: "";
  inset: 0;
  z-index: -2;
}

.cta-primary::before {
  background: conic-gradient(from var(--spin, 0deg), var(--blue), var(--cyan), var(--lime), var(--amber), var(--rose), var(--blue));
  animation: none;
}

.cta-primary::after {
  inset: 4px;
  z-index: -1;
  border-radius: calc(var(--radius) - 3px);
  background: linear-gradient(135deg, #06060a, #1c2242 52%, #0d1218);
}

.cta-primary:hover,
.cta-primary:focus-visible {
  transform: translate(-3px, -3px);
  box-shadow: 14px 14px 0 var(--ink);
}

.cta-secondary {
  min-width: 164px;
  border: 2px solid var(--ink);
  padding: 17px 22px;
  background: var(--paper-2);
  box-shadow: 6px 6px 0 rgba(9, 9, 11, 0.14);
  color: var(--ink);
}

.cta-secondary:hover,
.cta-secondary:focus-visible {
  transform: translate(-2px, -2px);
  border-color: var(--blue);
  box-shadow: 8px 8px 0 rgba(37, 99, 235, 0.2);
}

.cta-secondary.dark {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  box-shadow: none;
}

.arrow {
  margin-left: 14px;
  transition: transform 180ms ease;
}

.cta-primary:hover .arrow,
.cta-primary:focus-visible .arrow {
  transform: translateX(5px);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 34px 0 0;
}

.hero-stats div {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.76);
  padding: 16px;
}

.hero-stats dt {
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-stats dd {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 800;
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(420px, 58vw, 650px);
  border: 2px solid rgba(9, 9, 11, 0.88);
  border-radius: var(--radius);
  overflow: hidden;
  background: #080a10;
  box-shadow: var(--shadow), 14px 14px 0 var(--blue);
}

.proof-visual {
  align-items: stretch;
  min-height: auto;
  padding: clamp(12px, 2vw, 18px);
}

.hero-project-card {
  display: grid;
  position: relative;
  z-index: 1;
  width: 100%;
  gap: 14px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius);
  background: rgba(5, 8, 14, 0.78);
  color: #ffffff;
  padding: clamp(18px, 3vw, 28px);
}

.hero-project-card .project-kicker {
  margin-bottom: 0;
  color: #8cc7ff;
}

.hero-project-title {
  font-family: Archivo, sans-serif;
  font-size: clamp(2rem, 4vw, 3.6rem);
  font-weight: 900;
  line-height: 0.94;
}

.hero-project-text {
  max-width: 38rem;
  color: #cbd5e1;
  font-size: clamp(0.98rem, 1.5vw, 1.08rem);
  line-height: 1.58;
}

.hero-project-media {
  display: block;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: #f8fafc;
}

.hero-project-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.hero-project-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.hero-project-metrics span {
  display: grid;
  gap: 4px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.07);
  padding: 12px;
}

.hero-project-metrics strong {
  font-family: Archivo, sans-serif;
  font-size: clamp(1.1rem, 2vw, 1.42rem);
  line-height: 1;
}

.hero-project-metrics small {
  color: #9eacc0;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-visual::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    radial-gradient(circle at 12% 22%, rgba(37, 99, 235, 0.25), transparent 28%),
    radial-gradient(circle at 86% 18%, rgba(163, 230, 53, 0.2), transparent 22%),
    linear-gradient(120deg, transparent 35%, rgba(255, 255, 255, 0.08), transparent 58%);
  pointer-events: none;
}

.stack-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  margin: clamp(18px, 4vw, 34px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: rgba(5, 8, 14, 0.72);
  padding: clamp(18px, 3vw, 28px);
}

.stack-panel-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  color: #ffffff;
}

.stack-panel-head span {
  color: #9eacc0;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.stack-panel-head strong {
  max-width: 13ch;
  font-family: Archivo, sans-serif;
  font-size: clamp(1.28rem, 2.4vw, 2rem);
  line-height: 1;
  text-align: right;
}

.stack-logo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.stack-card {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 76px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.055);
  padding: 12px;
  color: #ffffff;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.stack-card:hover {
  transform: translateY(-4px);
  border-color: var(--stack-color);
  background: rgba(255, 255, 255, 0.1);
}

.stack-card div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.stack-card span:not(.stack-mark) {
  color: #9aa7bb;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.stack-card strong {
  overflow-wrap: normal;
  word-break: normal;
  font-size: 1rem;
  line-height: 1.1;
}

.stack-mark {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 44px;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.07);
  color: var(--stack-color);
}

.stack-mark svg {
  width: 30px;
  height: 30px;
}

.logo-text {
  font-family: Archivo, sans-serif;
  font-size: 1rem;
  font-weight: 900;
}

.logo-text.hex {
  clip-path: polygon(25% 5%, 75% 5%, 100% 50%, 75% 95%, 25% 95%, 0 50%);
}

.stack-card.react {
  --stack-color: #61dafb;
}

.stack-card.next {
  --stack-color: #ffffff;
}

.stack-card.ts {
  --stack-color: #3178c6;
}

.stack-card.node {
  --stack-color: #83cd29;
}

.stack-card.postgres {
  --stack-color: #8cc7ff;
}

.stack-card.tailwind {
  --stack-color: #38bdf8;
}

.stack-card.vercel {
  --stack-color: #ffffff;
}

.stack-card.api {
  --stack-color: #f59e0b;
}

.ticker {
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  background: var(--ink);
  color: #ffffff;
  overflow: hidden;
}

.ticker-track {
  display: flex;
  gap: 0;
  width: max-content;
  font-family: Archivo, sans-serif;
  font-size: clamp(0.86rem, 1.8vw, 1.05rem);
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  animation: ticker 42s linear infinite;
  will-change: transform;
}

.ticker-set {
  display: flex;
  gap: 28px;
  padding: 17px 14px;
}

.ticker-set span {
  display: inline-flex;
  align-items: center;
  gap: 28px;
}

.ticker-set span::after {
  width: 8px;
  aspect-ratio: 1;
  content: "";
  background: var(--lime);
  transform: rotate(45deg);
}

.section {
  width: min(var(--container), calc(100% - var(--gutter)));
  margin: 0 auto;
  padding: var(--space-section) 0;
}

.section-heading {
  max-width: 790px;
  margin-bottom: clamp(28px, 5vw, 50px);
}

.section-heading h2,
.contact-inner h2 {
  margin-bottom: 18px;
  font-size: clamp(2.4rem, 6vw, 5.4rem);
  font-weight: 900;
  line-height: 0.94;
}

.section-heading p,
.contact-inner p {
  max-width: 690px;
  color: #3d4451;
  font-size: clamp(1rem, 1.8vw, 1.18rem);
  line-height: 1.65;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.project-card,
.proof-item,
.skill-column {
  contain: layout paint;
  border: 1px solid rgba(62, 45, 21, 0.14);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.project-card {
  display: flex;
  min-height: 360px;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(22px, 3vw, 30px);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.project-card:hover {
  transform: translateY(-8px);
  border-color: rgba(37, 99, 235, 0.5);
  box-shadow: 0 24px 64px rgba(37, 99, 235, 0.16);
}

.project-kicker {
  margin-bottom: 40px;
  color: var(--blue);
  font-family: Archivo, sans-serif;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.project-card h3,
.proof-item h3,
.skill-column h3 {
  margin-bottom: 14px;
  font-size: clamp(1.35rem, 2.7vw, 2rem);
  line-height: 1.08;
}

.project-card p:not(.project-kicker),
.proof-item p,
.skill-column li {
  color: #4a5160;
  line-height: 1.6;
}

.project-card a {
  display: inline-flex;
  align-self: flex-start;
  margin-top: 28px;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 4px;
  font-weight: 900;
}

.project-card a:hover,
.project-card a:focus-visible {
  color: var(--blue);
  border-color: var(--blue);
}

.featured-projects {
  padding-top: clamp(56px, 8vw, 96px);
}

.project-carousel-heading {
  display: grid;
  max-width: none;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(18px, 4vw, 42px);
  align-items: end;
}

.section-heading-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper-2);
  box-shadow: 6px 6px 0 rgba(9, 9, 11, 0.14);
  padding: 0 18px;
  font-weight: 900;
  white-space: nowrap;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.section-heading-link:hover,
.section-heading-link:focus-visible {
  transform: translate(-2px, -2px);
  border-color: var(--blue);
  box-shadow: 8px 8px 0 rgba(37, 99, 235, 0.2);
}

.section-heading-link:hover .arrow,
.section-heading-link:focus-visible .arrow {
  transform: translateX(5px);
}

.project-carousel {
  contain: layout paint;
  overflow: hidden;
  border: 1px solid rgba(62, 45, 21, 0.16);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.74), rgba(248, 250, 252, 0.44)),
    rgba(253, 249, 242, 0.92);
  box-shadow: var(--shadow-panel);
  padding: clamp(12px, 2vw, 18px);
}

.project-carousel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.project-carousel-progress {
  height: 7px;
  overflow: hidden;
  border: 1px solid rgba(9, 9, 11, 0.2);
  border-radius: 999px;
  background: rgba(253, 249, 242, 0.86);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.74);
  margin: -2px 0 16px;
}

.project-carousel-progress span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--cyan), var(--lime), var(--amber), var(--rose), var(--violet), var(--blue));
  box-shadow: 0 0 20px rgba(37, 99, 235, 0.28);
  transform: scaleX(var(--carousel-progress, 0));
  transform-origin: left center;
}

.project-carousel-categories {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  width: min(100%, 560px);
  margin-bottom: 16px;
  border: 1px solid rgba(9, 9, 11, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.74);
  padding: 6px;
}

.project-carousel-category {
  min-width: 0;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: calc(var(--radius) - 2px);
  background: transparent;
  color: #30343b;
  padding: 0 12px;
  font-family: Archivo, sans-serif;
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.project-carousel-category:hover,
.project-carousel-category:focus-visible {
  border-color: rgba(37, 99, 235, 0.4);
  background: rgba(219, 234, 254, 0.7);
}

.project-carousel-category[aria-pressed="true"] {
  border-color: rgba(37, 99, 235, 0.74);
  background: var(--ink);
  color: #ffffff;
  box-shadow: 4px 4px 0 var(--lime);
}

.project-carousel-status {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  margin: 0;
  color: #30343b;
  font-family: Archivo, sans-serif;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.project-carousel-status span:first-child {
  color: var(--blue);
  font-size: clamp(1.45rem, 3vw, 2.15rem);
}

.project-carousel-controls {
  display: flex;
  gap: 8px;
}

.carousel-control {
  display: inline-grid;
  place-items: center;
  width: 52px;
  aspect-ratio: 1;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper-2);
  box-shadow: 5px 5px 0 rgba(9, 9, 11, 0.14);
  color: var(--ink);
  font-family: Archivo, sans-serif;
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.carousel-control:hover,
.carousel-control:focus-visible {
  transform: translate(-2px, -2px);
  border-color: var(--blue);
  background: #ffffff;
  box-shadow: 7px 7px 0 rgba(37, 99, 235, 0.22);
}

.project-carousel-viewport {
  overflow: hidden;
  border-radius: var(--radius);
}

.project-carousel-track {
  display: flex;
  transition: transform 360ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.project-carousel-slide {
  flex: 0 0 100%;
  min-width: 100%;
  min-width: 0;
  box-shadow: none;
}

.project-carousel-slide + .project-carousel-slide {
  margin-top: 0;
}

.project-carousel .featured-project-card {
  background: rgba(255, 255, 255, 0.74);
}

.project-carousel .featured-project-media {
  background: #f8fafc;
  min-height: clamp(340px, 41vw, 520px);
  padding: clamp(10px, 1.6vw, 18px);
}

.project-carousel .featured-project-media img,
.project-carousel .featured-project-media img.screen-crop {
  background: #f8fafc;
  object-fit: contain;
  object-position: center;
}

.project-carousel .featured-project-copy {
  min-height: clamp(360px, 38vw, 500px);
}

.project-carousel .featured-project-copy h3 {
  overflow-wrap: anywhere;
}

.project-carousel-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.project-carousel-tab {
  display: grid;
  gap: 8px;
  align-content: center;
  min-height: 76px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  color: #30343b;
  padding: 12px;
  text-align: left;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.project-carousel-tab:hover,
.project-carousel-tab:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(37, 99, 235, 0.46);
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.13);
}

.project-carousel-tab[aria-current="true"] {
  border-color: rgba(37, 99, 235, 0.74);
  background: linear-gradient(135deg, rgba(219, 234, 254, 0.98), rgba(255, 255, 255, 0.9));
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.16), 0 16px 32px rgba(37, 99, 235, 0.16);
}

.project-carousel-tab span {
  color: var(--blue);
  font-family: Archivo, sans-serif;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.project-carousel-tab strong {
  overflow: hidden;
  font-size: 0.92rem;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.featured-project-card,
.project-list-card {
  display: grid;
  contain: layout paint;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: clamp(18px, 4vw, 44px);
  align-items: stretch;
  border: 1px solid rgba(62, 45, 21, 0.14);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-panel);
  padding: clamp(12px, 2vw, 18px);
}

.featured-project-card + .featured-project-card {
  margin-top: 18px;
}

.project-carousel .project-carousel-slide + .project-carousel-slide {
  margin-top: 0;
}

.featured-project-media,
.project-list-media {
  display: block;
  overflow: hidden;
  min-height: 360px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: #080b12;
}

.featured-project-media img,
.project-list-media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  background: #f8fafc;
  object-fit: cover;
  object-position: top center;
  transition: transform 280ms ease;
}

.featured-project-media:hover img,
.featured-project-media:focus-visible img,
.project-list-media:hover img,
.project-list-media:focus-visible img {
  transform: scale(1.025);
}

.featured-project-media img.screen-crop,
.project-list-media img.screen-crop {
  object-fit: cover;
  object-position: top center;
}

.featured-project-media img.project-visual-contain,
.project-list-media img.project-visual-contain {
  background: #f8fafc;
  object-fit: contain;
  padding: clamp(14px, 2vw, 24px);
}

.featured-project-media img.evidence-thumb,
.project-list-media img.evidence-thumb {
  background: #eef4ff;
  object-fit: cover;
  object-position: top center;
  padding: 0;
}

.featured-project-copy,
.project-list-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: clamp(16px, 3vw, 32px);
}

.featured-project-copy h3,
.project-list-copy h2 {
  margin-bottom: 14px;
  font-size: clamp(1.75rem, 4vw, 3.2rem);
  line-height: 0.96;
}

.featured-project-copy p:not(.project-kicker),
.project-list-copy p:not(.project-kicker) {
  color: #3d4451;
  font-size: clamp(1rem, 1.7vw, 1.12rem);
  line-height: 1.62;
}

.project-proof-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 22px 0 0;
}

.project-proof-points div {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(248, 250, 252, 0.92);
  padding: 13px;
}

.project-proof-points dt {
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 0.67rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.project-proof-points dd {
  margin: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
  font-family: Archivo, sans-serif;
  font-size: clamp(1.05rem, 2vw, 1.4rem);
  line-height: 1.1;
  font-weight: 900;
}

.featured-project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.project-index-hero h1 {
  max-width: 11ch;
  margin-bottom: 20px;
  font-size: clamp(3rem, 8vw, 6.4rem);
  line-height: 0.9;
}

.project-list-grid {
  display: grid;
  gap: 18px;
}

.project-category-section + .project-category-section {
  margin-top: clamp(52px, 8vw, 92px);
}

.project-category-heading {
  max-width: 760px;
  margin-bottom: 18px;
}

.project-category-heading h2 {
  max-width: none;
  margin-bottom: 0;
  font-size: clamp(2rem, 4.8vw, 4rem);
  line-height: 0.98;
}

.project-link {
  display: inline-flex;
  align-self: flex-start;
  margin-top: 26px;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 4px;
  font-weight: 900;
}

.project-link:hover,
.project-link:focus-visible {
  color: var(--blue);
  border-color: var(--blue);
}

.case-study {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(9, 9, 11, 0.18);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(180deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px) 0 0 / 56px 56px,
    #080b12;
  color: #ffffff;
  padding: clamp(64px, 9vw, 118px) 0;
}

.case-study-inner {
  width: min(var(--container), calc(100% - var(--gutter)));
  margin: 0 auto;
}

.case-study .eyebrow {
  color: #8cc7ff;
}

.case-title-row {
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(340px, 0.72fr);
  gap: clamp(24px, 5vw, 70px);
  align-items: end;
  margin-bottom: clamp(28px, 5vw, 46px);
}

.case-heading .case-title-row {
  margin-bottom: 16px;
}

.case-title-row > * {
  min-width: 0;
}

.case-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 clamp(28px, 5vw, 46px);
}

.case-meta div {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  padding: 14px;
}

.case-meta dt {
  margin-bottom: 7px;
  color: #8cc7ff;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.case-meta dd {
  margin: 0;
  color: #ffffff;
  font-weight: 800;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.case-title-row h1,
.case-title-row h2 {
  max-width: none;
  margin-bottom: 0;
  overflow-wrap: anywhere;
  font-size: clamp(2.6rem, 6.4vw, 5.8rem);
  font-weight: 900;
  line-height: 0.92;
}

.case-title-row p {
  margin-bottom: 0;
  color: #cbd5e1;
  font-size: clamp(1rem, 1.8vw, 1.16rem);
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.case-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: stretch;
}

.case-video,
.case-metrics,
.case-step,
.case-shot {
  min-width: 0;
  contain: layout paint;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow-dark);
}

.case-video {
  overflow: hidden;
}

.case-video video {
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 16 / 9;
  background: #000000;
  object-fit: contain;
}

.case-video img {
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  background: #f8fafc;
  object-fit: contain;
}

.case-video img.screen-crop,
.case-shot img.screen-crop {
  width: 100%;
  height: clamp(320px, 56vw, 680px);
  object-fit: cover;
  object-position: top center;
}

.case-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
}

.case-metric,
.agreement-bars {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(3, 7, 18, 0.58);
  padding: 16px;
}

.case-metric.primary {
  grid-column: span 2;
  background: linear-gradient(135deg, rgba(30, 64, 175, 0.78), rgba(217, 119, 6, 0.34));
}

.case-metric span,
.agreement-bars span {
  display: block;
  margin-bottom: 8px;
  color: #aebbd0;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.case-metric strong {
  display: block;
  font-family: Archivo, sans-serif;
  font-size: clamp(1.6rem, 4vw, 2.65rem);
  line-height: 0.95;
}

.agreement-bars {
  grid-column: span 2;
  display: grid;
  gap: 14px;
}

.agreement-bars div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 12px;
  align-items: center;
}

.agreement-bars strong {
  font-family: Archivo, sans-serif;
  font-size: 1rem;
}

.agreement-bars i {
  grid-column: 1 / -1;
  display: block;
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

.agreement-bars i::before {
  display: block;
  width: var(--bar);
  height: 100%;
  content: "";
  background: var(--bar-color);
}

.case-story-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.case-step {
  padding: clamp(18px, 2.4vw, 24px);
}

.case-step span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  aspect-ratio: 1;
  margin-bottom: 28px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(30, 64, 175, 0.8);
  font-family: Archivo, sans-serif;
  font-weight: 900;
}

.case-step h2,
.case-step h3 {
  max-width: none;
  margin-bottom: 12px;
  overflow-wrap: anywhere;
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  line-height: 1.08;
}

.case-step p {
  margin-bottom: 0;
  color: #cbd5e1;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.case-gallery-heading {
  max-width: 760px;
  margin-top: clamp(42px, 7vw, 78px);
}

.case-gallery-heading h2 {
  max-width: none;
  margin-bottom: 14px;
  font-size: clamp(2rem, 4.8vw, 4.2rem);
  line-height: 0.96;
}

.case-gallery-heading p {
  margin-bottom: 0;
  color: #cbd5e1;
  font-size: clamp(1rem, 1.6vw, 1.12rem);
  line-height: 1.65;
}

.case-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  margin-top: 18px;
}

.case-shot {
  display: grid;
  gap: 0;
  margin: 0;
  overflow: hidden;
  padding: clamp(8px, 1.3vw, 12px);
}

.case-shot.wide {
  grid-column: auto;
}

.case-shot-link {
  display: block;
  overflow-x: auto;
  max-width: 100%;
  border-radius: calc(var(--radius) - 3px);
  background: #ffffff;
}

.case-shot-link:focus-visible {
  outline-offset: 6px;
}

.case-shot img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  border-radius: calc(var(--radius) - 3px);
  background: #ffffff;
  object-fit: contain;
}

.popup-shot .case-shot-link {
  display: grid;
  place-items: center;
  background: #eef4ff;
}

.popup-shot img {
  width: min(100%, 420px);
  max-width: 420px;
}

.case-shot figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  margin-top: 10px;
  border-radius: var(--radius);
  background: rgba(3, 7, 18, 0.78);
  color: #dbe4f0;
  padding: 11px 13px;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.35;
}

.case-shot figcaption span {
  min-width: 0;
}

.case-shot figcaption a {
  flex: 0 0 auto;
  border-bottom: 2px solid rgba(255, 255, 255, 0.72);
  color: #ffffff;
  font-weight: 900;
}

.case-shot figcaption a:hover,
.case-shot figcaption a:focus-visible {
  color: #8cc7ff;
  border-color: #8cc7ff;
}

.case-process-card {
  padding: clamp(20px, 3vw, 30px);
}

.case-process-card .project-kicker {
  margin-bottom: 18px;
  color: #8cc7ff;
}

.case-process-card h2 {
  max-width: none;
  margin-bottom: 16px;
  font-size: clamp(1.8rem, 4vw, 3.1rem);
  line-height: 1;
}

.case-process-card ol {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.case-process-card li {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(3, 7, 18, 0.58);
  color: #dbe4f0;
  padding: 14px;
  font-weight: 800;
  line-height: 1.35;
}

.case-process-card strong {
  display: block;
  margin-bottom: 7px;
  color: #ffffff;
  font-family: Archivo, sans-serif;
}

.transcript-case .case-title-row {
  align-items: center;
}

.transcript-case .case-title-row h1 {
  max-width: 11ch;
  font-size: clamp(2.7rem, 5.7vw, 5.1rem);
  line-height: 0.98;
}

.transcript-case .case-meta dd {
  overflow-wrap: anywhere;
}

.transcript-hero-media {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(230px, 0.72fr);
  gap: 14px;
  padding: clamp(10px, 1.4vw, 16px);
  background:
    linear-gradient(135deg, rgba(219, 234, 254, 0.98), rgba(248, 250, 252, 0.94) 42%, rgba(15, 23, 42, 0.2)),
    #eef4ff;
}

.transcript-hero-media a {
  display: grid;
  place-items: center;
  overflow: hidden;
  min-height: 430px;
  border: 1px solid rgba(15, 23, 42, 0.18);
  border-radius: calc(var(--radius) - 2px);
  background: #ffffff;
}

.transcript-hero-media .transcript-hero-side {
  background: #1f1f1f;
}

.transcript-hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 620px;
  object-fit: contain;
}

.workflow-shot .case-shot-link {
  display: grid;
  place-items: center;
  background: #1f1f1f;
}

.workflow-shot img {
  width: min(100%, 560px);
  max-width: 560px;
}

.case-process-card > p:not(.project-kicker) {
  max-width: 820px;
  margin-bottom: 0;
  color: #cbd5e1;
  font-size: clamp(1rem, 1.6vw, 1.12rem);
  line-height: 1.65;
}

.transcript-pipeline-card ol {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.transcript-pipeline-card li {
  min-height: 128px;
}

.malware-case .eyebrow,
.malware-case .case-meta dt,
.malware-case .case-process-card .project-kicker {
  color: #91f7bd;
}

.malware-case .case-metric.primary {
  background:
    linear-gradient(135deg, rgba(20, 83, 45, 0.88), rgba(185, 28, 28, 0.34)),
    #0f172a;
}

.malware-case .case-step span {
  background: rgba(20, 83, 45, 0.82);
}

.evidence-hero-media {
  display: grid;
  place-items: center;
  padding: clamp(10px, 1.4vw, 16px);
  background:
    linear-gradient(135deg, rgba(220, 252, 231, 0.98), rgba(239, 246, 255, 0.94) 46%, rgba(15, 23, 42, 0.2)),
    #eef4ff;
}

.evidence-hero-media .case-shot-link {
  display: grid;
  place-items: center;
  width: 100%;
  background: #eef4ff;
}

.evidence-hero-media img {
  width: auto;
  max-width: 100%;
  height: clamp(430px, 62vw, 760px);
  object-fit: contain;
}

.evidence-shot .case-shot-link {
  background: #eef4ff;
}

.evidence-report-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.evidence-download {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  border: 1px solid rgba(145, 247, 189, 0.5);
  border-radius: var(--radius);
  background: rgba(20, 83, 45, 0.42);
  color: #ffffff;
  padding: 13px 15px;
  font-weight: 900;
}

.evidence-download:hover,
.evidence-download:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(145, 247, 189, 0.86);
  background: rgba(20, 83, 45, 0.68);
  box-shadow: 0 14px 34px rgba(20, 83, 45, 0.28);
}

.access-control-case .eyebrow,
.access-control-case .case-meta dt,
.access-control-case .case-process-card .project-kicker {
  color: #7dd3fc;
}

.access-control-case .case-metric.primary {
  background:
    linear-gradient(135deg, rgba(14, 116, 144, 0.88), rgba(190, 18, 60, 0.34)),
    #0f172a;
}

.access-control-case .case-step span {
  background: rgba(14, 116, 144, 0.82);
}

.access-control-hero-media {
  display: grid;
  place-items: center;
  padding: clamp(10px, 1.4vw, 16px);
  background:
    linear-gradient(135deg, rgba(224, 242, 254, 0.98), rgba(248, 250, 252, 0.94) 48%, rgba(15, 23, 42, 0.2)),
    #eef6ff;
}

.access-control-hero-media .case-shot-link {
  display: grid;
  place-items: center;
  width: 100%;
  background: #eef6ff;
}

.access-control-hero-media img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.access-control-case .evidence-download {
  border-color: rgba(125, 211, 252, 0.52);
  background: rgba(14, 116, 144, 0.42);
}

.access-control-case .evidence-download:hover,
.access-control-case .evidence-download:focus-visible {
  border-color: rgba(125, 211, 252, 0.9);
  background: rgba(14, 116, 144, 0.68);
  box-shadow: 0 14px 34px rgba(14, 116, 144, 0.28);
}

.proof {
  width: 100%;
  max-width: none;
  border-top: 1px solid rgba(9, 9, 11, 0.1);
  border-bottom: 1px solid rgba(9, 9, 11, 0.1);
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.1), transparent 36%),
    linear-gradient(315deg, rgba(245, 158, 11, 0.14), transparent 32%),
    #ffffff;
}

.proof > * {
  width: min(var(--container), calc(100% - var(--gutter)));
  margin-right: auto;
  margin-left: auto;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.proof-item {
  padding: clamp(22px, 3vw, 30px);
}

.proof-number {
  display: inline-grid;
  place-items: center;
  width: 44px;
  aspect-ratio: 1;
  margin-bottom: 34px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  color: #ffffff;
  background: var(--ink);
  font-family: Archivo, sans-serif;
  font-weight: 900;
}

.training {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(430px, 1.1fr);
  gap: clamp(32px, 5vw, 76px);
  align-items: start;
}

.training-copy {
  max-width: 540px;
}

.training-copy h2 {
  margin-bottom: 24px;
  font-size: clamp(2.4rem, 5.8vw, 5.2rem);
  font-weight: 900;
  line-height: 0.94;
}

.training-quote {
  margin: 0;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.25), transparent 52%),
    var(--ink);
  box-shadow: 10px 10px 0 var(--lime);
  color: #ffffff;
  padding: clamp(22px, 4vw, 36px);
}

.training-quote p {
  margin-bottom: 20px;
  color: #ffffff;
  font-family: Archivo, sans-serif;
  font-size: clamp(1.28rem, 2.5vw, 2.05rem);
  font-weight: 900;
  line-height: 1.12;
}

.training-quote cite {
  color: #c9d3e3;
  font-style: normal;
  font-weight: 800;
}

.training-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-areas:
    "wide wide"
    "tall strava";
  gap: clamp(14px, 1.6vw, 18px);
  align-items: stretch;
}

.training-photo {
  display: flex;
  contain: layout paint;
  flex-direction: column;
  margin: 0;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: #ffffff;
  padding: 10px;
  box-shadow: 0 24px 60px rgba(9, 9, 11, 0.14);
}

.training-photo.tall {
  grid-area: tall;
}

.training-photo.wide {
  grid-area: wide;
}

.training-photo img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: calc(var(--radius) - 3px);
  background: #eef0f3;
  object-fit: contain;
}

.training-photo.wide img {
  aspect-ratio: 16 / 7;
  object-position: center;
}

.training-photo.tall img,
.strava-photo img {
  aspect-ratio: 1 / 1.08;
}

.training-photo.tall img,
.strava-photo img {
  object-position: center;
}

.training-photo figcaption {
  margin-top: 10px;
  border-radius: var(--radius);
  background: var(--ink);
  color: #ffffff;
  padding: 12px 14px;
  font-size: 0.88rem;
  font-weight: 900;
}

.strava-photo {
  grid-area: strava;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: start;
}

.split .section-heading {
  position: sticky;
  top: 112px;
  margin-bottom: 0;
}

.skill-columns {
  display: grid;
  gap: 14px;
}

.skill-column {
  padding: clamp(20px, 3vw, 28px);
}

.skill-column ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.skill-column li {
  position: relative;
  padding-left: 22px;
}

.skill-column li::before {
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 10px;
  height: 10px;
  content: "";
  border: 2px solid var(--blue);
  transform: translateY(-50%) rotate(45deg);
}

.leadership {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(520px, 1.18fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: start;
}

.leadership-copy {
  position: sticky;
  top: 112px;
}

.leadership-copy h2 {
  margin-bottom: 18px;
  font-size: clamp(2.4rem, 5.6vw, 5rem);
  font-weight: 900;
  line-height: 0.94;
}

.leadership-copy p:not(.eyebrow) {
  color: #3d4451;
  font-size: clamp(1rem, 1.7vw, 1.16rem);
  line-height: 1.65;
}

.leadership-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.leadership-card {
  contain: layout paint;
  min-height: 260px;
  border: 1px solid rgba(62, 45, 21, 0.14);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  padding: clamp(20px, 3vw, 28px);
}

.leadership-card:nth-child(2),
.leadership-card:nth-child(4) {
  margin-top: 28px;
}

.leadership-number {
  display: inline-grid;
  place-items: center;
  width: 42px;
  aspect-ratio: 1;
  margin-bottom: 34px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  color: #ffffff;
  background: linear-gradient(135deg, var(--ink), var(--blue));
  font-family: Archivo, sans-serif;
  font-weight: 900;
  box-shadow: 5px 5px 0 var(--lime);
}

.leadership-card h3 {
  margin-bottom: 14px;
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  line-height: 1.08;
}

.leadership-card p {
  color: #4a5160;
  line-height: 1.6;
}

.contact-section {
  padding: clamp(64px, 9vw, 112px) 16px;
  background: var(--ink);
  color: #ffffff;
}

.contact-inner {
  contain: layout paint;
  width: min(1060px, 100%);
  margin: 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  padding: clamp(28px, 6vw, 64px);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(180deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(135deg, rgba(37, 99, 235, 0.32), rgba(139, 92, 246, 0.14) 48%, rgba(163, 230, 53, 0.13));
}

.contact-inner h2 {
  max-width: 900px;
}

.contact-inner p {
  color: #d6dce8;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px max(16px, calc((100vw - 1180px) / 2));
  color: #d6dce8;
  background: #050508;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  font-weight: 800;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--lime);
}

.reveal {
  opacity: 1;
  transform: none;
  transition: none;
  will-change: auto;
}

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

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 4px;
}

@keyframes spin {
  to {
    --spin: 360deg;
  }
}

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

@property --spin {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

@media (max-width: 1440px) and (min-width: 1281px) {
  .hero {
    grid-template-columns: minmax(0, 0.98fr) minmax(340px, 0.82fr);
    gap: clamp(24px, 3vw, 42px);
  }

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

  .hero h1 {
    font-size: clamp(4.85rem, 7.7vw, 6.4rem);
    line-height: 0.9;
  }

  .hero-lede {
    max-width: 620px;
    font-size: clamp(1.03rem, 1.55vw, 1.2rem);
  }

  .hero-visual {
    min-height: clamp(420px, 48vw, 570px);
    box-shadow: var(--shadow), 10px 10px 0 var(--blue);
  }

  .hero-project-card {
    gap: 12px;
    padding: clamp(16px, 2.2vw, 22px);
  }

  .hero-project-title {
    font-size: clamp(2.1rem, 3.4vw, 3rem);
    line-height: 0.96;
  }

  .hero-project-text {
    font-size: clamp(0.94rem, 1.35vw, 1rem);
  }

  .hero-project-metrics span {
    padding: 10px;
  }
}

@media (max-width: 1280px) {
  .hero {
    grid-template-columns: 1fr;
    align-items: start;
    padding-top: clamp(36px, 5vw, 60px);
  }

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

  .hero h1 {
    max-width: none;
    font-size: clamp(4.2rem, 10.2vw, 6.2rem);
    line-height: 0.9;
  }

  .hero-lede,
  .hero-actions,
  .hero-stats {
    max-width: 720px;
  }

  .hero-visual {
    justify-self: center;
    width: min(680px, 100%);
    min-height: auto;
  }

  .section-heading h2,
  .leadership-copy h2,
  .training-copy h2,
  .contact-inner h2 {
    font-size: clamp(2.35rem, 5.4vw, 4.6rem);
    line-height: 0.98;
  }

  .project-carousel-heading {
    grid-template-columns: 1fr;
  }

  .section-heading-link {
    justify-self: start;
  }
}

@media (max-width: 980px) {
  .hero,
  .training,
  .split,
  .leadership,
  .featured-project-card,
  .project-list-card,
  .case-title-row,
  .case-hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 470px;
  }

  .proof-visual {
    min-height: auto;
  }

  .project-grid,
  .proof-grid,
  .case-story-grid,
  .case-meta {
    grid-template-columns: 1fr;
  }

  .project-card {
    min-height: 280px;
  }

  .split .section-heading {
    position: static;
  }

  .leadership-copy {
    position: static;
  }

  .leadership-card:nth-child(2),
  .leadership-card:nth-child(4) {
    margin-top: 0;
  }

  .training-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "wide wide"
      "tall strava";
  }

  .featured-project-media,
  .project-list-media {
    min-height: 300px;
  }

  .project-carousel-heading {
    grid-template-columns: 1fr;
  }

  .section-heading-link {
    justify-self: start;
  }

  .project-carousel .featured-project-copy {
    min-height: auto;
  }

  .transcript-pipeline-card ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .training-photo.tall {
    transform: none;
  }

  .strava-photo {
    justify-self: stretch;
    width: 100%;
  }
}

@media (max-width: 720px) {
  .nav {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    min-height: auto;
    width: min(var(--container), calc(100% - var(--gutter-mobile)));
    gap: 12px;
    padding: 14px 0;
  }

  .nav.is-collapsible .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(76px, 1fr));
    width: 100%;
    gap: 8px;
    overflow: visible;
  }

  .nav.is-collapsible .nav-links {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    transform: translateY(-6px);
    transition: max-height 220ms ease, opacity 160ms ease, transform 160ms ease, visibility 0s linear 220ms;
    visibility: hidden;
  }

  .nav.is-collapsible.is-open .nav-links {
    max-height: 360px;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    transition: max-height 220ms ease, opacity 160ms ease, transform 160ms ease, visibility 0s;
    visibility: visible;
  }

  .nav-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    border: 1px solid rgba(9, 9, 11, 0.12);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.72);
    padding: 0 14px;
    font-size: 0.82rem;
    white-space: nowrap;
  }

  .nav-links a::after {
    content: none;
  }

  .ticker {
    display: none;
  }

  h1 {
    max-width: none;
    font-size: clamp(3.45rem, 14.6vw, 4.2rem);
    line-height: 0.92;
  }

  .hero {
    padding-top: 36px;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 380px;
    box-shadow: 8px 8px 0 var(--blue);
  }

  .proof-visual {
    min-height: auto;
  }

  .hero-project-metrics {
    grid-template-columns: 1fr;
  }

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

  .stack-panel {
    margin: 16px;
  }

  .stack-panel-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .stack-panel-head strong {
    max-width: none;
    text-align: left;
  }

  .cta-primary,
  .cta-secondary {
    width: 100%;
    min-width: 0;
    padding-right: 14px;
    padding-left: 14px;
    text-align: center;
  }

  .cta-primary {
    box-shadow: 6px 6px 0 var(--ink);
    font-size: 0.98rem;
  }

  .cta-primary:hover,
  .cta-primary:focus-visible {
    transform: translate(-2px, -2px);
    box-shadow: 8px 8px 0 var(--ink);
  }

  .section-heading h2,
  .leadership-copy h2,
  .training-copy h2,
  .contact-inner h2,
  .project-index-hero h1,
  .case-title-row h1,
  .case-title-row h2 {
    font-size: clamp(2.15rem, 11vw, 3.4rem);
    line-height: 0.98;
  }

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

  .project-carousel {
    width: 100%;
    padding: 10px;
  }

  .project-carousel-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: stretch;
  }

  .project-carousel-controls {
    display: flex;
    justify-content: flex-end;
  }

  .carousel-control {
    width: 46px;
    min-height: 46px;
  }

  .project-carousel .featured-project-media {
    min-height: 280px;
  }

  .project-carousel .featured-project-copy h3 {
    font-size: clamp(1.55rem, 7.4vw, 2.15rem);
    line-height: 1.02;
  }

  .project-carousel .featured-project-card,
  .project-carousel .featured-project-copy,
  .project-carousel .featured-project-media,
  .project-carousel .project-proof-points {
    min-width: 0;
  }

  .project-carousel-tabs {
    display: flex;
    max-width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-snap-type: x proximity;
  }

  .project-carousel-tab {
    flex: 0 0 148px;
    min-height: 68px;
    scroll-snap-align: start;
  }

  .case-metrics,
  .case-gallery {
    grid-template-columns: 1fr;
  }

  .case-process-card ol {
    grid-template-columns: 1fr;
  }

  .transcript-case .case-title-row h1 {
    max-width: none;
    font-size: clamp(2.35rem, 10vw, 3.25rem);
  }

  .transcript-hero-media {
    grid-template-columns: 1fr;
  }

  .transcript-hero-media a {
    min-height: 0;
  }

  .transcript-hero-media img {
    height: auto;
    max-height: 470px;
  }

  .case-metric.primary,
  .agreement-bars {
    grid-column: auto;
  }

  .interface-shot .case-shot-link img {
    width: auto;
    min-width: 860px;
    max-width: none;
  }

  .case-shot.wide {
    grid-column: auto;
  }

  .case-shot figcaption {
    align-items: flex-start;
    flex-direction: column;
  }

  .case-shot figcaption a {
    align-self: flex-start;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 430px) {
  .hero,
  .section,
  .case-study-inner {
    width: min(var(--container), calc(100% - var(--gutter-mobile)));
  }

  .brand {
    font-size: 0.92rem;
  }

  .brand-mark {
    width: 38px;
  }

  .hero-visual {
    min-height: auto;
  }

  .case-title-row h1,
  .case-title-row h2 {
    font-size: clamp(2rem, 10.8vw, 2.75rem);
    line-height: 0.96;
  }

  .case-title-row p {
    font-size: 0.98rem;
  }

  .evidence-hero-media img {
    height: 360px;
  }

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

  .stack-card {
    min-height: 68px;
  }

  .project-card,
  .proof-item,
  .leadership-card,
  .training-quote,
  .skill-column {
    padding: 20px;
  }

  .training-gallery {
    grid-template-columns: 1fr;
    grid-template-areas:
      "wide"
      "tall"
      "strava";
  }

  .training-photo {
    padding: 8px;
  }

  .strava-photo {
    grid-column: auto;
    width: min(280px, 100%);
    justify-self: center;
    transform: none;
  }

  .featured-project-media,
  .project-list-media {
    min-height: 220px;
  }
}

@media (max-width: 520px) {
  .nav,
  .hero,
  .section,
  .case-study-inner {
    width: min(var(--container), calc(100% - var(--gutter-mobile)));
    margin-right: auto;
    margin-left: auto;
  }

  .case-study-inner {
    width: 100%;
    max-width: 100%;
    margin-right: 0;
    margin-left: 0;
    padding-right: 24px;
    padding-left: 24px;
    overflow: hidden;
  }

  .case-study *,
  .case-study *::before,
  .case-study *::after {
    min-width: 0;
  }

  .case-title-row,
  .case-meta,
  .case-hero-grid,
  .case-story-grid,
  .case-gallery,
  .case-shot,
  .case-video {
    width: 100%;
    max-width: 100%;
  }

  .case-title-row p,
  .case-meta dd,
  .case-step p,
  .case-process-card li {
    overflow-wrap: anywhere;
  }

  .access-control-case .case-title-row h1 {
    font-size: clamp(1.85rem, 8vw, 2.25rem);
    line-height: 1;
  }

  .proof {
    width: 100%;
    margin-right: 0;
    margin-left: 0;
  }

  .proof > * {
    width: min(var(--container), calc(100% - var(--gutter-mobile)));
    margin-right: auto;
    margin-left: auto;
  }

  .contact-section {
    padding-right: 12px;
    padding-left: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  :root:not([data-allow-motion="true"]) {
    scroll-behavior: auto;
  }

  :root:not([data-allow-motion="true"]) *,
  :root:not([data-allow-motion="true"]) *::before,
  :root:not([data-allow-motion="true"]) *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }

  :root:not([data-allow-motion="true"]) .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (hover: none), (pointer: coarse), (update: slow) {
  .ticker-track {
    width: auto;
    animation: none;
    transform: none;
  }

  .cta-primary::before {
    animation: none;
  }
}
