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

:root {
  --ink: #1a1814;
  --ink-70: rgba(26, 24, 20, .70);
  --ink-40: rgba(26, 24, 20, .40);
  --ink-15: rgba(26, 24, 20, .15);
  --ink-08: rgba(26, 24, 20, .08);
  --paper: #78b8ea;
  --warm: #f2ebe0;
  --cream: #e9dfd0;
  --w100: #ffffff;
  --w80: rgba(255, 255, 255, .80);
  --w60: rgba(255, 255, 255, .60);
  --w30: rgba(255, 255, 255, .30);
  --w15: rgba(255, 255, 255, .15);
  --accent: #f06820;
  --green: #2d6b45;
  --green-d: #e5f0ea;
  --blue: #1e4a82;
  --blue-d: #e4ecf8;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Outfit', system-ui, sans-serif;
  --glass-bg: rgba(255, 255, 255, .32);
  --glass-border: rgba(255, 255, 255, .38);
  --glass-blur: 28px;
  --glass-shadow: 0 8px 60px rgba(0, 0, 0, .22), 0 1px 0 rgba(255, 255, 255, .5) inset;
}

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.site-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 200;
  height: 64px;
  padding: 0 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--glass-bg);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 1px 24px rgba(0, 0, 0, .08);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
}

.nav-logo {
  color: var(--w100);
  font-family: var(--sans);
  font-size: 1.15rem;
  font-weight: 400;
  letter-spacing: .02em;
  text-decoration: none;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .25);
  transition: color .3s, text-shadow .3s;
}

.nav-scrolled .nav-logo {
  color: #1e3a5f;
  text-shadow: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: .15rem;
  list-style: none;
}

.nav-links a {
  padding: .35rem .85rem;
  border-radius: 8px;
  color: var(--w80);
  font-size: 1rem;
  font-weight: 400;
  text-decoration: none;
  transition: background .15s, color .15s;
}

.nav-links a:hover {
  background: var(--w15);
  color: var(--w100);
}

.nav-links .nav-cta {
  margin-left: .5rem;
  border: 1px solid var(--w30);
  color: var(--w100);
  font-weight: 500;
  backdrop-filter: blur(6px);
}

.nav-links .nav-cta:hover {
  background: var(--w100);
  border-color: transparent;
  color: var(--ink);
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url('../images/hero.png') center center / cover no-repeat;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(150deg, rgba(15, 12, 8, .28) 0%, rgba(15, 12, 8, .12) 55%, rgba(15, 12, 8, .04) 100%);
}

.hero-body {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  align-items: center;
  padding: 6rem 3rem 2rem;
}

.glass-card {
  width: 100%;
  max-width: 780px;
  padding: 2rem 3.5rem .75rem;
  animation: cardIn .9s cubic-bezier(.22, 1, .36, 1) both;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(28px) scale(.98);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.glass-card::before {
  content: '';
  display: block;
  width: 48px;
  height: 2px;
  margin-bottom: 1.5rem;
  background: linear-gradient(90deg, var(--accent), transparent);
  border-radius: 2px;
}

.card-category {
  margin-bottom: 1.1rem;
  color: #1e3a5f;
  font-size: .9rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.card-headline {
  margin-bottom: 1.5rem;
  color: var(--w100);
  font-family: var(--sans);
  font-size: clamp(2.6rem, 5.5vw, 5rem);
  font-weight: 300;
  letter-spacing: -.025em;
  line-height: 1.06;
  text-shadow: 0 2px 20px rgba(0, 0, 0, .2);
}

.card-headline em {
  color: #1e6fa8;
  font-style: italic;
}

.card-desc {
  max-width: 100%;
  margin-bottom: .5rem;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.15;
}

.card-desc strong {
  color: var(--ink);
  font-weight: 500;
}

.nng-badge {
  width: fit-content;
  margin-bottom: 0;
}

.nng-badge-img {
  height: 120px;
  width: auto;
  display: block;
}

.nng-icon {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  border-radius: 6px;
  color: #fff;
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .05em;
}

.nng-text-wrap {
  display: flex;
  flex-direction: column;
  gap: .04rem;
}

.nng-title {
  color: var(--w100);
  font-size: .8rem;
  font-weight: 500;
  line-height: 1.2;
}

.nng-sub {
  color: var(--w60);
  font-size: .65rem;
  font-weight: 300;
}

.chip-row {
  margin-bottom: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .28rem .75rem;
  border: 1px solid transparent;
  border-radius: 100px;
  font-size: .7rem;
  font-weight: 500;
  backdrop-filter: blur(6px);
}

.chip-ai {
  background: rgba(30, 74, 130, .35);
  border-color: rgba(30, 74, 130, .5);
  color: #b8d0f5;
}

.chip-exp {
  background: rgba(255, 255, 255, .14);
  border-color: var(--w30);
  color: var(--w80);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

.btn-solid,
.btn-glass {
  padding: .72rem 1.8rem;
  border-radius: 100px;
  font-size: .85rem;
  letter-spacing: .01em;
  text-decoration: none;
  transition: all .2s;
}

.btn-solid {
  background: var(--w100);
  border: 1px solid transparent;
  color: var(--ink);
  font-weight: 600;
}

.btn-solid:hover {
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .2);
  transform: translateY(-2px);
}

.btn-glass {
  background: rgba(255, 255, 255, .12);
  border: 1px solid var(--w30);
  color: var(--w100);
  font-weight: 500;
  backdrop-filter: blur(8px);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, .22);
  border-color: var(--w60);
  transform: translateY(-2px);
}

.stats-bar {
  position: relative;
  z-index: 2;
  display: flex;
  background: rgba(12, 10, 8, .52);
  border-top: 1px solid rgba(255, 255, 255, .10);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.stat {
  flex: 1;
  padding: 1.5rem 3rem;
  border-right: 1px solid rgba(255, 255, 255, .08);
}

.stat:last-child {
  border-right: none;
}

.stat-inline {
  display: flex;
  align-items: center;
  gap: .4rem;
  margin-bottom: .6rem;
  color: var(--w100);
}

.stat-num {
  margin-bottom: .6rem;
  color: var(--w100);
  font-family: var(--sans);
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: -.01em;
  line-height: 1;
}

.stat-label {
  color: rgba(255, 255, 255, .42);
  font-size: .68rem;
  font-weight: 400;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.venn-wrap svg {
  display: block;
  overflow: visible;
  will-change: transform;
  transition: transform .2s cubic-bezier(.22, 1, .36, 1), filter .2s ease;
  transform-origin: center;
  cursor: pointer;
}

.venn-wrap svg:hover {
  transform: scale(1.28);
  filter: drop-shadow(0 8px 24px rgba(30, 74, 130, .18));
}

.venn-centre-text {
  transition: fill .3s ease;
}

.venn-wrap svg:hover .venn-centre-text {
  fill: rgba(26, 24, 20, .95);
  font-weight: 700;
}

.venn-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 4rem;
  overflow: visible;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  justify-items: center;
}

.venn-copy-head,
.sec-heading,
.case-title {
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.2;
}

.venn-copy-head {
  margin-bottom: 1.5rem;
  color: var(--ink);
  font-size: clamp(2rem, 3.5vw, 3.2rem);
}

.venn-copy-head em {
  color: #c94d83;
  font-style: italic;
}

.venn-copy-body {
  max-width: 44ch;
  color: var(--ink-70);
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.75;
}

.section-rule {
  max-width: 1060px;
  margin: 0 auto;
  border: none;
  border-top: 1px solid rgba(26, 24, 20, .1);
}

.projects-wrap,
.ai-wrap,
.co-wrap-outer,
.map-wrap,
.case-wrap {
  max-width: 1060px;
  margin: 0 auto;
  padding-right: 2rem;
  padding-left: 2rem;
}

.projects-wrap {
  max-width: 1440px;
  padding: 0 clamp(32px, 4vw, 64px) 2.5rem;
}

.map-wrap {
  padding-top: 0;
  padding-bottom: 4.5rem;
}

.map-frame,
.map,
#map,
.google-map,
.location-map,
.map-container,
gmp-map,
iframe[src*="google.com/maps"],
.map-wrap iframe {
  width: 100%;
  height: clamp(320px, 36vw, 460px);
  display: block;
  overflow: hidden;
  border: 0;
  border-radius: 18px;
}

.map,
#map,
.google-map,
.location-map,
.map-container,
gmp-map,
iframe[src*="google.com/maps"] {
  width: calc(100% - clamp(40px, 4vw, 96px));
  margin-right: auto;
  margin-left: auto;
}

.section-intro {
  padding-top: 2rem;
}

.sec-eyebrow {
  margin-bottom: .5rem;
  display: flex;
  align-items: center;
  gap: .7rem;
  color: rgba(30, 58, 95, .75);
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.sec-eyebrow::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(30, 58, 95, .3);
}

.sec-heading {
  margin-bottom: 2rem;
  color: var(--ink);
  font-size: clamp(1.9rem, 3.2vw, 3rem);
  line-height: 1.1;
}

.sec-heading em {
  color: var(--ink-40);
  font-style: italic;
}

.proj-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.proj-card {
  position: relative;
  overflow: hidden;
  height: 420px;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 18px;
  color: var(--ink);
  text-decoration: none;
  box-shadow:
    0 2px 6px rgba(20, 50, 100, .12),
    0 10px 28px rgba(20, 50, 100, .18),
    0 20px 40px rgba(10, 30, 70, .12);
  transition: border-color .35s ease, box-shadow .35s ease, transform .25s cubic-bezier(.25, .46, .45, .94);
}

.proj-card:hover {
  border-color: rgba(30, 74, 130, .5);
  box-shadow:
    0 4px 8px rgba(20, 50, 100, .1),
    0 16px 40px rgba(20, 50, 100, .18),
    0 32px 64px rgba(10, 25, 60, .14);
  transform: translateY(-6px);
}

.proj-img,
.proj-img-fb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity .45s ease, transform .5s ease;
}

.proj-card:hover .proj-img,
.proj-card:hover .proj-img-fb {
  opacity: .15;
  transform: scale(1.04);
}

.proj-img {
  display: block;
  background: var(--cream);
  object-fit: cover;
  object-position: center top;
}

.proj-img-fb {
  display: none;
  align-items: center;
  justify-content: center;
  color: rgba(26, 24, 20, .1);
  font-family: var(--sans);
  font-size: 3.5rem;
}

.fb-genie { background: linear-gradient(135deg, #dde9f8, #b8cfed); }
.fb-solar { background: linear-gradient(135deg, #fde9d0, #f5c896); }
.fb-squads { background: linear-gradient(135deg, #ddf0dd, #b8d9b8); }
.fb-argos { background: linear-gradient(135deg, #ede0f5, #d3b8e8); }

.proj-body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  top: 64%;
  z-index: 2;
  padding: 3rem 1.25rem 1.2rem;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(58, 108, 168, .95) 28%,
    rgba(58, 108, 168, 1) 50%,
    rgba(58, 108, 168, 1) 100%
  );
  display: flex;
  flex-direction: column;
  transition: top .4s cubic-bezier(.4, 0, .2, 1), background .35s ease, padding-top .35s ease;
}

.proj-card:hover .proj-body {
  top: 0;
  background: rgba(12, 32, 68, .96);
  padding-top: 1.5rem;
}

.proj-tags {
  order: 1;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem;
  margin-bottom: .5rem;
}

.proj-co {
  order: 4;
  display: block;
  margin-top: .4rem;
  color: rgba(255, 255, 255, .4);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.proj-name { order: 2; margin-bottom: .2rem; }
.proj-desc { order: 3; }

.proj-tag {
  padding: .22rem .65rem;
  background: rgba(255, 255, 255, .15);
  border: 2px solid rgba(240, 104, 32, .9);
  border-radius: 20px;
  color: #ffffff;
  font-size: .68rem;
  font-weight: 600;
  backdrop-filter: blur(8px);
  white-space: nowrap;
}

.proj-tag.ai {
  background: rgba(255, 255, 255, .15);
  border-color: rgba(240, 104, 32, .9);
  color: #ffffff;
}

.proj-name {
  margin-bottom: .35rem;
  color: #ffffff;
  font-family: var(--sans);
  font-size: 1.15rem;
  font-weight: 400;
  letter-spacing: -.01em;
  line-height: 1.2;
}

.proj-desc {
  flex: 1;
  overflow: hidden;
  max-height: 0;
  color: var(--ink-70);
  font-size: .88rem;
  font-weight: 300;
  line-height: 1.7;
  transition: max-height .45s ease, color .3s ease;
}

.proj-card:hover .proj-desc {
  max-height: 20em;
  color: rgba(255, 255, 255, .82);
}

.proj-card:hover .proj-name {
  color: #fff;
}

.proj-card:hover .proj-co {
  color: rgba(255, 255, 255, .55);
}


.proj-footer {
  margin-top: 1.1rem;
  padding-top: .85rem;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  border-top: 1px solid var(--ink-08);
}

.proj-footer .proj-impact {
  margin-right: auto;
}

.proj-impact {
  color: var(--accent);
  font-size: .75rem;
  font-weight: 500;
}

.proj-impact::before {
  content: '↑ ';
}

.proj-arrow {
  color: var(--ink-40);
  font-size: 1.1rem;
  transition: transform .2s;
}

.creds-strip {
  background: rgba(242, 235, 224, .5);
  border-top: 1px solid var(--ink-15);
  border-bottom: 1px solid var(--ink-15);
}

.creds-inner {
  max-width: 1060px;
  margin: 0 auto;
  padding: 3.5rem 3rem 2rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}

.creds-companies {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 3rem 3rem;
}

.cred-num {
  margin-bottom: .4rem;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 2.8rem;
  font-weight: 300;
  letter-spacing: -.03em;
  line-height: 1;
}

.cred-num-compact {
  font-size: 1.9rem;
  letter-spacing: -.01em;
  line-height: 1.15;
}

.cred-num-ai {
  font-size: 2rem;
}

.cred-title {
  margin-bottom: .3rem;
  color: var(--ink);
  font-size: .88rem;
  font-weight: 500;
}

.cred-body {
  color: var(--ink-70);
  font-size: .78rem;
  font-weight: 300;
  line-height: 1.65;
}

.cred-pill {
  width: fit-content;
  margin-top: .6rem;
  padding: .25rem .65rem;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  border-radius: 100px;
  font-size: .68rem;
  font-weight: 500;
}

.pill-green {
  background: var(--green-d);
  color: var(--green);
}

.pill-blue {
  background: var(--blue-d);
  color: var(--blue);
}

.ai-wrap {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 2.5rem clamp(32px, 4vw, 64px);
  background: rgba(220, 237, 248, .75);
}

.ai-wrap > .sec-eyebrow,
.ai-wrap > .sec-heading,
.ai-wrap > .ai-grid {
  max-width: 1440px;
  margin-right: auto;
  margin-left: auto;
}

.ai-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: stretch;
}

.ai-card {
  position: relative;
  min-height: 240px;
  padding: 2rem 2rem 2rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  background: transparent;
  border: none;
  border-radius: 0;
  border-left: 3px solid rgba(240, 104, 32, .9);
  overflow: hidden;
}

.ai-card::before {
  content: none;
}

.ai-card-title {
  margin-bottom: .65rem;
  color: #0d1f3c;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -.01em;
  position: relative;
}

.ai-card-body {
  max-width: 68ch;
  min-height: 5rem;
  color: rgba(13, 31, 60, .72);
  font-size: .9rem;
  font-weight: 300;
  line-height: 1.65;
  position: relative;
}

.ai-card--illustrated {
  flex-direction: row;
  align-items: flex-start;
  gap: 1rem;
  padding-right: 1rem;
}

.ai-card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
}

.ai-card-illustration {
  width: 260px;
  flex-shrink: 0;
  object-fit: contain;
  align-self: center;
  margin-top: auto;
  margin-bottom: auto;
}

.ai-tools {
  margin-top: 1.25rem;
  padding-top: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  position: relative;
}

.ai-tool {
  padding: .25rem .75rem;
  background: transparent !important;
  border: 1.5px solid rgba(240, 104, 32, .6);
  border-radius: 20px;
  color: rgba(13, 31, 60, .8);
  font-size: .7rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: none;
  pointer-events: none;
}

.co-wrap-outer {
  max-width: 1440px;
  padding-right: clamp(32px, 4vw, 64px);
  padding-left: clamp(32px, 4vw, 64px);
  padding-top: 3.5rem;
  padding-bottom: 4.5rem;
}

.co-logos {
  margin-top: 1.5rem;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(10, minmax(56px, 1fr));
  align-items: center;
  gap: clamp(1.25rem, 2vw, 2.25rem);
}

.co-logo-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
}

.co-logo-item:first-child {
  justify-content: flex-start;
}

.co-logo-item:last-child {
  justify-content: flex-end;
}

.co-logo-item img {
  height: 48px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  filter: none;
  transition: transform .25s ease;
}

.co-logo-item img:hover {
  transform: translateY(-2px);
}

.co-logo-fb {
  display: none;
  padding: .4rem 1rem;
  background: rgba(255, 255, 255, .4);
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 6px;
  color: rgba(20, 45, 85, .65);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .03em;
  white-space: nowrap;
}

footer {
  border-top: 1px solid var(--ink-15);
}

.foot-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 2rem clamp(32px, 4vw, 64px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.foot-logo {
  color: var(--ink-40);
  font-family: var(--sans);
  font-size: .95rem;
}

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

.foot-link {
  color: var(--ink-40);
  font-size: .78rem;
  text-decoration: none;
  transition: color .15s;
}

.foot-link:hover {
  color: var(--ink);
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

.case-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.about-page {
  min-height: 100vh;
}

.about-page .site-nav {
  background: rgba(26, 24, 20, .72);
}

.about-page .nav-scrolled .nav-logo,
.case-page .nav-scrolled .nav-logo,
.cv-page .nav-scrolled .nav-logo {
  color: var(--w100);
  text-shadow: 0 1px 8px rgba(0, 0, 0, .25);
}

.cv-page .site-nav {
  background: rgba(26, 24, 20, .72);
}

.cv-main {
  max-width: 1440px;
  margin: 0 auto;
  padding: 8rem clamp(32px, 4vw, 64px) 4.5rem;
}

.cv-hero {
  margin-bottom: 2rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
}

.cv-hero h1 {
  margin-bottom: .7rem;
  color: var(--ink);
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.1;
}

.cv-hero p {
  max-width: 58ch;
  color: var(--ink-70);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.65;
}

.cv-download,
.cv-fallback a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: .75rem 1.25rem;
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 999px;
  color: var(--w100);
  font-size: .86rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.cv-viewer {
  overflow: hidden;
  background: rgba(255, 255, 255, .42);
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 18px;
}

.cv-viewer iframe {
  width: 100%;
  height: min(74vh, 900px);
  min-height: 640px;
  display: block;
  border: 0;
}

.cv-fallback {
  padding: 1rem 1.25rem 1.25rem;
  display: flex;
  gap: .85rem;
  align-items: center;
  justify-content: space-between;
  color: var(--ink-70);
  font-size: .9rem;
}

.about-main {
  padding-top: 64px;
}

.about-hero,
.about-intro,
.about-companies {
  max-width: 1440px;
  margin: 0 auto;
  padding-right: clamp(32px, 4vw, 64px);
  padding-left: clamp(32px, 4vw, 64px);
}

.about-hero {
  padding-top: 4.5rem;
  padding-bottom: 3rem;
}

.about-hero h1 {
  max-width: none;
  margin-bottom: 1rem;
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(2rem, 3.8vw, 3.8rem);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.1;
  white-space: nowrap;
}

.about-hero p {
  max-width: 58ch;
  color: var(--ink-70);
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.75;
}

.about-intro {
  padding-top: 1rem;
  padding-bottom: 4rem;
  display: grid;
  grid-template-columns: minmax(220px, 360px) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.about-portrait-wrap {
  overflow: hidden;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, .36);
  border-radius: 18px;
  background: rgba(255, 255, 255, .26);
}

.about-portrait {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.about-copy h2 {
  margin-bottom: 1rem;
  color: var(--ink);
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.1;
}

.about-copy p {
  max-width: 78ch;
  color: rgba(26, 24, 20, .76);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.85;
}

.about-companies {
  padding-top: 2.5rem;
  padding-bottom: 5rem;
}

.case-page .site-nav {
  background: rgba(26, 24, 20, .72);
}

.case-wrap {
  flex: 1;
  padding-top: 8rem;
  padding-bottom: 5rem;
}

.case-kicker {
  margin-bottom: 1rem;
  color: var(--accent);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.case-title {
  max-width: 780px;
  margin-bottom: 1rem;
  font-size: clamp(2.6rem, 6vw, 5rem);
}

.case-summary {
  max-width: 64ch;
  margin-bottom: 1.5rem;
  color: var(--ink-70);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.75;
}

.case-panel {
  margin-top: 3rem;
  padding: 2rem;
  background: rgba(255, 255, 255, .58);
  border: 1px solid var(--ink-15);
  border-radius: 18px;
}

.case-panel h2 {
  margin-bottom: .6rem;
  font-family: var(--sans);
  font-size: 1.8rem;
  font-weight: 300;
}

.case-panel p {
  max-width: 62ch;
  color: var(--ink-70);
  font-size: .9rem;
  font-weight: 300;
  line-height: 1.7;
}

.back-link {
  display: inline-flex;
  margin-top: 2rem;
  color: var(--accent);
  font-size: .85rem;
  font-weight: 500;
  text-decoration: none;
}

@media (max-width: 820px) {
  .site-nav {
    height: auto;
    min-height: 64px;
    padding: .8rem 1.25rem;
    align-items: flex-start;
    flex-direction: column;
    gap: .5rem;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
  }

  .nav-links .nav-cta {
    margin-left: 0;
  }

  .hero-body {
    padding: 7.5rem 1.25rem 2rem;
  }

  .glass-card {
    padding: 2rem;
    border-radius: 18px;
  }

  .stats-bar,
  .venn-wrap,
  .proj-grid,
  .creds-inner,
  .ai-grid {
    grid-template-columns: 1fr;
  }

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

  .stat {
    padding: 1rem 1.25rem;
  }

  .stat:nth-child(2) {
    border-right: none;
  }

  .stat:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(255, 255, 255, .08);
  }

  .venn-wrap {
    padding: 4rem 1.25rem;
    gap: 2rem;
  }

  .venn-wrap svg {
    width: 100%;
    max-width: 280px;
  }

  .projects-wrap,
  .ai-wrap,
  .co-wrap-outer,
  .map-wrap,
  .case-wrap,
  .about-hero,
  .about-intro,
  .about-companies {
    padding-right: 1.25rem;
    padding-left: 1.25rem;
  }

  .about-main {
    padding-top: 108px;
  }

  .about-hero {
    padding-top: 3rem;
  }

  .cv-main {
    padding: 7rem 1.25rem 3rem;
  }

  .cv-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .cv-viewer iframe {
    height: 70vh;
    min-height: 520px;
  }

  .cv-fallback {
    align-items: flex-start;
    flex-direction: column;
  }

  .about-hero h1 {
    white-space: normal;
  }

  .about-intro {
    grid-template-columns: 1fr;
    padding-bottom: 3rem;
  }

  .about-portrait-wrap {
    max-width: 320px;
  }

  .map,
  #map,
  .google-map,
  .location-map,
  .map-container,
  gmp-map,
  iframe[src*="google.com/maps"] {
    width: calc(100% - 2.5rem);
  }

  .creds-inner {
    padding: 3rem 1.25rem;
    gap: 2rem;
  }

  .foot-inner {
    padding: 1.5rem 1.25rem;
  }
}

@media (max-width: 520px) {
  .nav-links {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links a {
    padding-left: 0;
  }

  .card-headline {
    font-size: 2.45rem;
  }

  .glass-card {
    padding: 1.5rem;
  }

  .nng-badge {
    align-items: flex-start;
  }

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

  .stat {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
  }

  .stat:last-child {
    border-bottom: none;
  }
}

/* ── Illustrated card stacks early (1100px) ── */
@media (max-width: 1100px) {
  .ai-card--illustrated {
    flex-direction: column;
    align-items: flex-start;
  }

  .ai-card-illustration {
    width: 220px;
    align-self: center;
    margin-top: 1.5rem;
  }
}

/* ── Tablet (820px) additions ── */
@media (max-width: 820px) {
  .ai-grid {
    grid-template-columns: 1fr;
  }

  .ai-card-illustration {
    width: 200px;
    align-self: center;
    margin-top: 1.5rem;
  }

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

  .proj-card {
    height: 380px;
  }

  .proj-tags {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    margin-bottom: .5rem;
    order: -1;
  }

  .proj-co {
    order: -2;
  }

  .co-logos {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1rem;
  }

  .venn-wrap {
    flex-direction: column;
  }
}

/* ── Mobile (520px) additions ── */
@media (max-width: 520px) {
  .ai-card {
    padding: 1.5rem 1.25rem 1.5rem 1.5rem;
  }

  .ai-card-illustration {
    width: 160px;
  }

  .sec-heading {
    font-size: 1.6rem;
  }

  .proj-card {
    height: 360px;
  }

  .proj-body {
    top: 52%;
    padding: 1.5rem 1rem 1rem;
  }

  /* Move tags into normal flow — no more absolute overlap */
  .proj-tags {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    margin-bottom: .5rem;
    order: -1;
  }

  .proj-co {
    order: -2;
  }

  .co-logos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }

  .co-logo-item {
    height: 36px;
  }

  .co-logo-item img {
    height: 36px;
    max-width: 110px;
  }

  .co-wrap-outer {
    padding-top: 2rem;
    padding-bottom: 2.5rem;
  }

  .ai-wrap {
    padding: 2rem 1.25rem;
  }

  .foot-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: .75rem;
  }
}
