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

html {
  scroll-behavior: smooth;
}

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

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

a {
  color: inherit;
}

/* ── Tokens ─────────────────────────────────────────── */
:root {
  --bg: #0e0e11;
  --bg-2: #16161a;
  --bg-3: #1d1d23;
  --bg-4: #24242c;

  --t1: #fafafa;
  --t2: #a1a1aa;
  --t3: #52525b;

  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.11);

  --r: 10px;
  --r-lg: 16px;

  --header-h: 60px;
  --max-w: 1200px;
  --ms: 200ms;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  --grad: linear-gradient(135deg, #22d3ee 0%, #6366f1 28%, #a78bfa 52%, #f472b6 76%, #fb7c5a 100%);
}

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Light sections ──────────────────────────────────── */
[data-theme="light"] {
  --bg: #ededf0;
  --bg-2: #e2e2e7;
  --bg-3: #d5d5dc;
  --bg-4: #c8c8d0;
  --t1: #09090b;
  --t2: #52525b;
  --t3: #a1a1aa;
  --line: rgba(0, 0, 0, 0.07);
  --line-2: rgba(0, 0, 0, 0.11);
  background: var(--bg);
}

/* ── Base ───────────────────────────────────────────── */
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--t1);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body.panel-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
}

.nav-backdrop {
  display: none;
}

body.nav-open .nav {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

body.nav-open .menu-btn span:first-child {
  transform: translateY(3.25px) rotate(45deg);
}

body.nav-open .menu-btn span:last-child {
  transform: translateY(-3.25px) rotate(-45deg);
}

/* ── Header ─────────────────────────────────────────── */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.25rem, 3.5vw, 2.5rem);
  border-bottom: 1px solid var(--line);
  background: rgba(14, 14, 17, 0.88);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  z-index: 100;
}

.brand {
  text-decoration: none;
  color: var(--t1);
  display: flex;
  align-items: center;
}

.brand-logo {
  height: 30px;
  width: auto;
  display: block;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 2.5vw, 2.25rem);
}

.nav a {
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--t2);
  letter-spacing: 0.01em;
  position: relative;
  padding-bottom: 2px;
  transition: color var(--ms) ease;
}

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

.nav a:hover {
  color: var(--t1);
}

.nav a.active {
  color: var(--t1);
}

.nav a.active::after {
  transform: scaleX(1);
}

.menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  padding: 4px;
}

.menu-btn span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--t2);
  border-radius: 2px;
  transform-origin: center;
  transition: transform var(--ms) ease;
}

/* ── Layout ─────────────────────────────────────────── */
main {
  padding-top: var(--header-h);
}

.section-inner {
  width: min(calc(100% - clamp(2.5rem, 7vw, 5rem)), var(--max-w));
  margin: 0 auto;
  padding: clamp(5rem, 10vh, 8rem) 0;
}

.section-head {
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

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

.section-hed {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.06;
  color: var(--t1);
  will-change: transform;
}

.section-sub {
  margin-top: 1.5rem;
  font-size: 0.875rem;
  color: var(--t3);
  line-height: 1.6;
}

/* ── Hero ───────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100dvh - var(--header-h));
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.face-wrap {
  position: absolute;
  top: 0;
  bottom: 0;
  width: clamp(120px, 17vw, 240px);
  overflow: hidden;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.face-wrap--left {
  left: 0;
}

.face-wrap--right {
  right: 0;
}


.face-wrap img {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(240px, 34vw, 480px);
  height: auto;
  max-width: none;
  opacity: clamp(0, calc((100vw - 1000px) / 300px * 0.15), 0.15);
  will-change: transform;
}

.face-wrap--left img {
  right: 0;
}

.face-wrap--right img {
  left: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(calc(100% - clamp(2.5rem, 7vw, 5rem)), var(--max-w));
  margin: 0 auto;
  padding: clamp(3rem, 8vh, 6rem) 0;
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, 1vw, 1rem);
}

.hero-content {
  flex: 1;
  min-width: 0;
}

.hero-venn {
  flex: 0 0 clamp(260px, 36vw, 440px);
  isolation: isolate;
  will-change: transform;
}

.hero-venn svg {
  width: 100%;
  height: auto;
  display: block;
}

.eyebrow {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--t3);
  margin-bottom: 1.5rem;
}

.hero-hed {
  font-size: clamp(3.5rem, calc(5.58vw + 8.56px), 5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.96;
  max-width: 15ch;
  margin-bottom: 1.25rem;
  background: linear-gradient(to right, #22d3ee 0%, #6366f1 28%, #a78bfa 52%, #f472b6 76%, #fb7c5a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  color: var(--t2);
  line-height: 1.6;
  margin-bottom: clamp(2.5rem, 6vh, 4rem);
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.25rem;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.3rem 0.85rem;
  background: var(--bg-3);
}

.pill-num {
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pill-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--t2);
  letter-spacing: 0.01em;
}

.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--t3);
  letter-spacing: 0.01em;
  transition: color var(--ms) ease;
}

.scroll-cue:hover {
  color: var(--t2);
}

/* ── Impact grid ────────────────────────────────────── */
.impact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.impact-card {
  background: var(--bg-2);
  padding: clamp(1.25rem, 2.5vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: background var(--ms) ease;
}

.impact-card[data-open-project] {
  cursor: pointer;
}

.impact-card[data-open-project]:hover {
  background: var(--bg-3);
}

.impact-metric {
  font-size: clamp(2.5rem, 4.25vw, 4rem);
  font-weight: 800;
  line-height: 1;
  width: fit-content;
  white-space: nowrap;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.impact-card:nth-child(1) .impact-metric {
  background-image: linear-gradient(to right, #22d3ee, #5c72f1);
}

.impact-card:nth-child(2) .impact-metric {
  background-image: linear-gradient(to right, #5c72f1, #a188f9);
}

.impact-card:nth-child(3) .impact-metric {
  background-image: linear-gradient(to right, #a188f9, #f173b9);
}

.impact-card:nth-child(4) .impact-metric {
  background-image: linear-gradient(to right, #f173b9, #fb7c5a);
}

.impact-context {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--t3);
  margin-top: -0.15rem;
}

.impact-name {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--t1);
  margin-top: 0.15rem;
}

.impact-desc {
  font-size: 0.875rem;
  color: var(--t2);
  line-height: 1.6;
  flex: 1;
}

.impact-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.impact-open {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--t3);
  white-space: nowrap;
  flex-shrink: 0;
  transition: color var(--ms) ease;
}

.impact-card:hover .impact-open {
  color: var(--t2);
}

/* ── Process ────────────────────────────────────────── */
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.process-card {
  background: var(--bg-2);
  padding: clamp(1.5rem, 3vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
}

.process-num {
  flex-shrink: 0;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.process-card:nth-child(1) .process-num {
  background-image: linear-gradient(to right, #22d3ee, #716ef3);
}

.process-card:nth-child(2) .process-num {
  background-image: linear-gradient(to right, #716ef3, #d47cd2);
}

.process-card:nth-child(3) .process-num {
  background-image: linear-gradient(to right, #d47cd2, #fb7c5a);
}

.process-card h3 {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--t1);
  line-height: 1.3;
}

.process-card p {
  font-size: 0.875rem;
  color: var(--t2);
  line-height: 1.65;
}

/* ── Project toolbar ────────────────────────────────── */
.project-toolbar {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.project-count {
  font-size: 0.75rem;
  color: var(--t3);
  letter-spacing: 0.01em;
}

.project-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.filter-pill {
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: transparent;
  color: var(--t2);
  padding: 0.28rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: background var(--ms) ease, color var(--ms) ease, border-color var(--ms) ease;
}

.filter-pill:hover {
  background: var(--bg-2);
  color: var(--t1);
}

.filter-pill.active {
  background: var(--t1);
  color: var(--bg);
  border-color: var(--t1);
}

/* ── Project grid ───────────────────────────────────── */
.project-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: var(--bg);
  overflow: hidden;
}

.project-card {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-3);
}

.project-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(0.6) brightness(0.45);
  transform: scale(1);
  transition: filter 400ms var(--ease), transform 500ms var(--ease);
}

.project-card:hover .project-thumb {
  filter: grayscale(0.1) brightness(0.7);
  transform: scale(1.04);
}

.project-thumb--locked {
  filter: blur(0px) brightness(0.4);
  transform: scale(1.12);
  transition: none;
}

.project-card:hover .project-thumb--locked {
  filter: blur(0px) brightness(0.4);
  transform: scale(1.12);
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.25) 55%, transparent 100%);
}

.project-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem 1.125rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.project-name {
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #fff;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.tag {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--t3);
  border: 1px solid var(--line-2);
  border-radius: 4px;
  padding: 0.18rem 0.4rem;
}

.project-info .tag {
  color: rgba(255, 255, 255, 0.6);
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

/* ── Project lock badge ─────────────────────────────── */
.project-lock {
  position: absolute;
  top: 0.625rem;
  right: 0.625rem;
  width: 28px;
  height: 28px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.65);
  pointer-events: none;
  z-index: 2;
}

/* ── Password modal ──────────────────────────────────── */
.pw-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.pw-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.pw-modal-card {
  position: relative;
  z-index: 1;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  padding: 1.875rem;
  width: min(380px, 100%);
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.pw-modal-hed {
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--t1);
}

.pw-modal-sub {
  font-size: 0.875rem;
  color: var(--t2);
  line-height: 1.55;
  margin-top: -0.25rem;
}

.pw-modal-input {
  width: 100%;
  background: var(--bg-3);
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  color: var(--t1);
  font: inherit;
  font-size: 0.9375rem;
  padding: 0.625rem 0.875rem;
  outline: none;
  transition: border-color var(--ms) ease;
}

.pw-modal-input:focus {
  border-color: rgba(255, 255, 255, 0.25);
}

.pw-modal-error {
  font-size: 0.8125rem;
  color: #f87171;
  min-height: 1.1em;
  margin-top: -0.25rem;
}

.pw-modal-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
  margin-top: 0.125rem;
}

.pw-modal-cancel {
  padding: 0.5rem 1rem;
  border-radius: var(--r);
  border: 1px solid var(--line-2);
  color: var(--t2);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color var(--ms) ease, background var(--ms) ease;
}

.pw-modal-cancel:hover {
  background: var(--bg-3);
  color: var(--t1);
}

.pw-modal-submit {
  padding: 0.5rem 1.125rem;
  border-radius: var(--r);
  background: var(--t1);
  color: var(--bg);
  font-size: 0.875rem;
  font-weight: 600;
  transition: opacity var(--ms) ease;
}

.pw-modal-submit:hover {
  opacity: 0.82;
}

.pw-modal-contact {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.pw-modal-contact p {
  font-size: 0.8125rem;
  color: #71717a;
  line-height: 1.5;
}

.pw-modal-contact-links {
  display: flex;
  gap: 1rem;
}

.pw-modal-contact-links a {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #09090b;
  text-decoration: none;
  transition: opacity 0.15s;
}

.pw-modal-contact-links a:hover {
  opacity: 0.6;
}

@keyframes shake {

  0%,
  100% {
    transform: translateX(0);
  }

  20% {
    transform: translateX(-7px);
  }

  40% {
    transform: translateX(7px);
  }

  60% {
    transform: translateX(-4px);
  }

  80% {
    transform: translateX(4px);
  }
}

.pw-modal-card.shake {
  animation: shake 0.42s ease;
}

/* ── About ──────────────────────────────────────────── */
.about-section {
  position: relative;
  overflow: hidden;
}

.about-section .section-inner {
  position: relative;
  z-index: 1;
}

.about-layout {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  row-gap: clamp(1.5rem, 3vw, 2.5rem);
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
}

.about-half {
  padding: 0;
}

.about-half:first-child {
  padding-right: clamp(2rem, 5vw, 4rem);
  border-right: 1px solid var(--line);
}

.about-half:last-child {
  padding-left: clamp(2rem, 5vw, 4rem);
}

.about-half-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--t3);
  margin-bottom: 1.25rem;
}

.about-half-copy {
  font-size: 0.9375rem;
  color: var(--t2);
  line-height: 1.85;
}

.about-stats {
  display: flex;
  gap: clamp(1.5rem, 4vw, 3rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.about-stat {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.about-num {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about-label {
  font-size: 0.75rem;
  color: var(--t3);
  letter-spacing: 0.02em;
}

.about-photo {
  width: clamp(220px, 32vw, 420px);
  height: auto;
  display: block;
  opacity: 0.25;
}

/* ── Contact ────────────────────────────────────────── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 8vw, 6rem);
  align-items: start;
}

.contact-left {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-hed {
  font-size: clamp(1.875rem, 3.5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.08;
  color: var(--t1);
}

.contact-right {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  padding-left: 0;
  transition: padding-left 300ms var(--ease);
}

.contact-item:hover {
  padding-left: 0.625rem;
}

.contact-item.is-locked {
  cursor: pointer;
}

.contact-item.is-locked .contact-item-value {
  color: var(--t3);
  display: flex;
  align-items: center;
}

.contact-item-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--t3);
}

.contact-item-value {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--t1);
}

/* ── Footer ─────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--line);
  padding: 1.5rem clamp(1.25rem, 3.5vw, 2.5rem);
  font-size: 0.75rem;
  color: var(--t3);
}

/* ── Panel ──────────────────────────────────────────── */
.panel {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
}

.panel.open {
  pointer-events: auto;
}

.panel-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 300ms var(--ease);
}

.panel.open .panel-backdrop {
  opacity: 1;
}

.panel-sheet {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(700px, 100%);
  background: #ffffff;
  border-left: 1px solid rgba(0, 0, 0, 0.08);
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  transform: translateX(100%);
  transition: transform 340ms var(--ease), box-shadow 340ms var(--ease);
  box-shadow: none;
}

.panel.open .panel-sheet {
  transform: translateX(0);
  box-shadow: -24px 0 80px rgba(0, 0, 0, 0.18);
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 1.25rem;
  min-height: 54px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
  gap: 1rem;
}

.panel-title-group {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.panel-title {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #09090b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.panel-subhead {
  font-size: 0.75rem;
  line-height: 1.5;
  color: #71717a;
}

.panel-close {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 6px;
  color: #71717a;
  font-size: 0.875rem;
  transition: color var(--ms) ease, border-color var(--ms) ease;
}

.panel-close:hover {
  color: #09090b;
  border-color: rgba(0, 0, 0, 0.3);
}

.panel-body {
  overflow-y: auto;
  overscroll-behavior: contain;
}

.panel-hero {
  width: 100%;
  height: auto;
  display: block;
}


.panel-meta {
  padding: clamp(1.25rem, 3vw, 1.75rem) clamp(1.25rem, 3vw, 1.75rem);
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.panel-section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.panel-section-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #a1a1aa;
}

.panel-section p {
  font-size: 0.9375rem;
  color: #52525b;
  line-height: 1.7;
}

.panel-results {
  padding: 1rem 1.25rem;
  background: #f4f4f6;
  border-radius: var(--r);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.panel-results p {
  color: #09090b;
  font-weight: 500;
}

.panel-recap {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.panel-recap p {
  font-size: 0.9375rem;
  color: #52525b;
  line-height: 1.72;
}

.panel-slideshow {
  width: 100%;
  background: #f4f4f6;
}

.panel-slideshow img {
  width: 100%;
  height: auto;
}

.panel-inline-img {
  width: 100%;
}

.panel-inline-img img {
  width: 100%;
  height: auto;
  display: block;
}

.panel-img-caption {
  font-size: 0.75rem;
  color: #71717a;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.panel-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.panel-tags .tag {
  color: #52525b;
  border-color: rgba(0, 0, 0, 0.15);
}

.panel-foot {
  padding: 1rem 1.5rem 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.panel-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: #a1a1aa;
  transition: color 150ms ease;
  cursor: pointer;
}

.panel-share-btn:hover {
  color: #09090b;
}

.panel-share-check,
.panel-share-label-done {
  display: none;
}

.panel-share-btn.copied {
  color: #16a34a;
  pointer-events: none;
}

.panel-share-btn.copied .panel-share-icon,
.panel-share-btn.copied .panel-share-label {
  display: none;
}

.panel-share-btn.copied .panel-share-check,
.panel-share-btn.copied .panel-share-label-done {
  display: block;
}

.panel-share-btn.copied .panel-share-check {
  display: inline;
}

/* ── Reveal ─────────────────────────────────────────── */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 480ms var(--ease), transform 480ms var(--ease);
}

.js [data-reveal].in-view {
  opacity: 1;
  transform: none;
}

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 1400px) {
  .project-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

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

@media (max-width: 900px) {
  .impact-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .impact-card:nth-child(odd) .impact-metric {
    background-image: linear-gradient(to right, #22d3ee, #a188f9);
  }

  .impact-card:nth-child(even) .impact-metric {
    background-image: linear-gradient(to right, #a188f9, #fb7c5a);
  }

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

  .process-card:nth-child(n) .process-num {
    background-image: linear-gradient(to right, #22d3ee, #6366f1, #a78bfa, #f472b6, #fb7c5a);
  }
}

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

@media (max-width: 850px) {
  .hero-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-venn {
    display: none;
  }

  .hero-hed {
    font-size: clamp(2.5rem, calc(10.67vw - 2.67px), 5.5rem);
  }
}

@media (max-width: 680px) {
  .hero {
    min-height: calc(100svh - var(--header-h));
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  .menu-btn {
    display: flex;
  }

  .nav-backdrop {
    display: block;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 200ms ease;
    z-index: 99;
  }

  body.nav-open .nav-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: rgba(17, 17, 21, 0.97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 0;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity var(--ms) ease, transform var(--ms) ease;
  }

  .nav a {
    width: 100%;
    padding: 0.75rem clamp(1.25rem, 3.5vw, 2.5rem);
  }

  .nav a::after {
    display: none;
  }

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

  .about-half:first-child {
    padding-right: 0;
    padding-bottom: clamp(1.5rem, 3vw, 2.5rem);
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .about-half:last-child {
    padding-left: 0;
  }

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

  .panel-sheet {
    top: auto;
    right: 0;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 90svh;
    border-left: none;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--r-lg) var(--r-lg) 0 0;
    transform: translateY(100%);
    box-shadow: 0 -24px 80px rgba(0, 0, 0, 0.4);
  }

  .panel.open .panel-sheet {
    transform: translateY(0);
  }
}

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

body.is-resizing .panel-sheet,
body.is-resizing .nav,
body.is-resizing .menu-btn span {
  transition: none;
}

/* ── Team block inside Work ─────────────────────────── */
.team-in-work {
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.team-in-work .section-inner {
  padding-top: clamp(3rem, 6vw, 5rem);
  padding-bottom: 0;
}

.team-body {
  max-width: 640px;
}

.team-body .section-label {
  margin-bottom: 0.75rem;
}

.team-hed {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  color: var(--t1);
}

.team-desc {
  color: var(--t2);
  font-size: clamp(0.9375rem, 1.1vw, 1.0625rem);
  line-height: 1.75;
  margin-bottom: 2rem;
}

.team-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  color: var(--t1);
  font-size: 0.9375rem;
  font-weight: 600;
  transition: background var(--ms) var(--ease), border-color var(--ms) var(--ease);
}

.team-cta:hover {
  background: var(--bg-3);
}

.team-cta-icon {
  flex-shrink: 0;
}

.team-cta.is-unlocked .team-cta-lock {
  display: none;
}

/* ── Team panel (wider sheet + iframe body) ─────────── */
.team-panel .panel-sheet {
  width: min(1100px, 100%);
}

.team-panel-iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: none;
}

@media (max-width: 680px) {
  body.nav-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .hero-pills {
    display: none;
  }

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

  .section-inner {
    padding: 3.5rem 0;
  }

  .hero-inner {
    padding: 2.5rem 0;
  }

  .hero-hed {
    font-size: 2.125rem;
  }

  .section-hed,
  .team-hed {
    font-size: clamp(1.25rem, 5.5vw, 1.75rem);
  }

  .impact-metric {
    font-size: 2rem;
  }

  .contact-hed {
    font-size: 1.5rem;
  }
}

.hero-hed,
.section-hed,
.contact-hed,
.team-hed,
.process-card h3 {
  text-wrap: balance;
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}