:root {
  --bg: #070a12;
  --panel: #101827;
  --panel-2: #151f31;
  --text: #f5f7fb;
  --muted: #aeb9cc;
  --line: rgba(255,255,255,.12);
  --accent: #7dd3fc;
  --gold: #fbbf24;
  --purple: #a78bfa;
  --max: 1160px;
  --radius: 24px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(125,211,252,.18), transparent 34rem),
    radial-gradient(circle at top right, rgba(167,139,250,.14), transparent 30rem),
    linear-gradient(180deg, #050713 0%, #0b1220 48%, #050713 100%);
  line-height: 1.65;
}

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

.site-header {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0px;
  font-weight: 900;
  letter-spacing: -.03em;
  white-space: nowrap;
}

.brand span {
  font-size: 1.5rem;
}

.brand-logo {
  width: 72px;
  height: 54px;
  object-fit: contain;
  display: block;
  background: transparent;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.nav a {
  color: var(--muted);
  font-size: .94rem;
  font-weight: 750;
  padding: 9px 12px;
  border-radius: 999px;
  transition: .2s ease;
}

.nav a:hover,
.nav a.active {
  color: var(--text);
  background: rgba(255,255,255,.08);
}

.page-section {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 76px 0;
}

.page-section.compact {
  padding-top: 20px;
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 48px;
  align-items: center;
  min-height: calc(100vh - 84px);
}

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

.hero-copy .lead {
  max-width: 68ch;
  font-size: clamp(1.02rem, 1.55vw, 1.18rem);
  line-height: 1.5;
  text-wrap: pretty;
  margin-bottom: 14px;
}

.hero-copy > p:not(.eyebrow):not(.lead) {
  max-width: 68ch;
  font-size: clamp(1rem, 1.35vw, 1.08rem);
  line-height: 1.5;
  text-wrap: pretty;
}

.eyebrow {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .82rem;
  font-weight: 950;
  margin-bottom: 12px;
}

h1 {
  font-size: clamp(2.8rem, 7vw, 5.8rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  font-weight: 850;
  margin-bottom: 28px;
}

h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.35rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
  font-weight: 820;
  margin-bottom: 20px;
}

h3 {
  letter-spacing: -0.015em;
  line-height: 1.22;
  font-weight: 800;
  margin-bottom: 10px;
}

p {
  color: var(--muted);
}

.lead {
  font-size: clamp(1.08rem, 2vw, 1.28rem);
  color: #d8e2f3;
  max-width: 780px;
  margin-bottom: 18px;
}

.narrow {
  max-width: 680px;
}

.tag-row,
.actions,
.skill-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-row {
  margin-bottom: 22px;
}

.tag-row span,
.skill-pills span {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.055);
  color: #dcecff;
  padding: 8px 11px;
  border-radius: 999px;
  font-weight: 750;
  font-size: .9rem;
}

.side-card .skill-pills {
  margin-bottom: 38px;
}

.side-card h2 {
  margin-bottom: 18px;
}

.actions {
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  border: 1px solid transparent;
  background: var(--text);
  color: #07111f;
  padding: 13px 18px;
  border-radius: 999px;
  font-weight: 900;
  transition: .2s ease;
}

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

.button.secondary {
  color: var(--text);
  background: rgba(255,255,255,.055);
  border-color: var(--line);
}

.button.small {
  padding: 10px 14px;
  font-size: .88rem;
  margin-top: 18px;
}

.profile-photo-wrap {
  width: min(430px, 100%);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  padding: 8px;
  margin-inline: auto;
  background: linear-gradient(135deg, #7dd3fc, #a78bfa);
  box-shadow:
    0 28px 90px rgba(0,0,0,.38),
    0 0 70px rgba(125,211,252,.16);
  position: relative;
}

.profile-photo-wrap::before {
  content: "";
  position: absolute;
  inset: -18px;
  border-radius: 50%;
  border: 1px solid rgba(125,211,252,.18);
  pointer-events: none;
}

.profile-photo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  border-radius: 50%;
  border: 10px solid #07111f;
  background: #07111f;
}

.hero-placeholder,
.placeholder-card,
.project-thumb,
.project-hero-mark {
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(125,211,252,.18), rgba(167,139,250,.16)),
    repeating-linear-gradient(45deg, rgba(255,255,255,.04) 0 12px, transparent 12px 24px);
  border-radius: 34px;
  position: relative;
  overflow: hidden;
}

.project-thumb {
  height: 210px;
  display: block;
  border-radius: 0;
  border-left: 0;
  border-right: 0;
  border-top: 0;
}

.project-thumb img,
.gallery-card img,
.project-hero-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-thumb-fallback,
.project-hero-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}

.placeholder-label,
.placeholder-card span {
  position: relative;
  z-index: 2;
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(5,7,19,.72);
  border: 1px solid rgba(255,255,255,.14);
  color: #dbeafe;
  font-weight: 850;
  backdrop-filter: blur(14px);
}

.section-heading {
  margin-bottom: 34px;
}

.focus-grid,
.values-grid,
.project-grid,
.toolkit-grid,
.gallery-grid,
.contact-grid {
  display: grid;
  gap: 24px;
}

.focus-grid,
.values-grid,
.toolkit-grid {
  grid-template-columns: repeat(3, 1fr);
}

.focus-grid article,
.values-grid article,
.toolkit-grid article,
.info-card,
.essay-card,
.side-card {
  background: linear-gradient(180deg, rgba(16,24,39,.9), rgba(12,18,31,.92));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}

.essay-card + .values-grid,
.philosophy-values {
  margin-top: 26px;
}

.toolkit-grid article {
  position: relative;
  overflow: hidden;
}

.toolkit-grid article::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(125,211,252,.12), transparent 40%);
  pointer-events: none;
}

.toolkit-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(125,211,252,.1);
  color: var(--accent);
  border: 1px solid rgba(125,211,252,.2);
  font-weight: 950;
  margin-bottom: 16px;
}

.project-grid {
  grid-template-columns: repeat(3, 1fr);
}

.project-tile {
  border: 1px solid var(--line);
  background: rgba(16,24,39,.82);
  border-radius: var(--radius);
  overflow: hidden;
  transition: .22s ease;
}

.project-tile:hover {
  transform: translateY(-5px);
  border-color: rgba(125,211,252,.42);
}

.project-thumb span,
.project-hero-mark span {
  width: 84px;
  height: 84px;
  border-radius: 26px;
  background: rgba(5,7,19,.72);
  border: 1px solid rgba(255,255,255,.14);
  display: grid;
  place-items: center;
  color: var(--text);
  font-size: 1.4rem;
  font-weight: 950;
}

.project-tile-body {
  padding: 22px;
}

.project-tile-body h2 {
  font-size: 1.2rem;
  line-height: 1.2;
  margin-bottom: 0;
}

.project-type {
  color: var(--gold);
  font-weight: 850;
  font-size: .82rem;
  margin-bottom: 8px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}

.filter-btn {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.05);
  color: var(--muted);
  border-radius: 999px;
  padding: 10px 13px;
  font-weight: 850;
  cursor: pointer;
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--accent);
  color: #07111f;
  border-color: var(--accent);
}

.readable {
  max-width: 980px;
}

.bio-layout,
.detail-grid,
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.bio-layout {
  grid-template-columns: minmax(280px, .8fr) minmax(0, 1.35fr);
  align-items: start;
}

.bio-image-card {
  position: sticky;
  top: 24px;
  min-height: 520px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  background: rgba(255,255,255,.045);
  display: grid;
  place-items: center;
}

.bio-photo {
  width: 100%;
  height: 100%;
  min-height: 520px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 20px 70px rgba(0,0,0,.3);
}

.bio-copy p + p {
  margin-top: 18px;
}

.bio-copy h2 {
  margin-top: 34px;
}

.resume-section {
  margin-top: 42px;
}

.gallery-grid {
  grid-template-columns: 1.2fr .9fr .9fr;
  margin: 34px 0;
}

.gallery-grid .placeholder-card,
.gallery-card {
  min-height: 250px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255,255,255,.04);
}

.project-hero {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 28px;
  align-items: center;
}

.project-hero-mark {
  height: 220px;
  display: block;
  overflow: hidden;
  border-radius: 34px;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(125,211,252,.18), rgba(167,139,250,.16)),
    repeating-linear-gradient(45deg, rgba(255,255,255,.04) 0 12px, transparent 12px 24px);
}

.back-link {
  display: inline-block;
  color: var(--accent);
  font-weight: 900;
  margin-bottom: 26px;
}

.file-list {
  display: grid;
  gap: 10px;
  margin: 12px 0 16px;
}

.file-list a,
.contact-grid a {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.045);
  border-radius: 16px;
  padding: 14px 16px;
  color: #dbeafe;
  font-weight: 800;
}

.file-empty {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px dashed var(--line);
  background: rgba(255,255,255,.035);
}

.note {
  font-size: .9rem;
}

.contact-grid {
  grid-template-columns: repeat(2, 1fr);
  margin-top: 28px;
}

.contact-grid a span {
  display: block;
  color: var(--gold);
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: 6px;
}

.footer {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 34px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .92rem;
}

.quote-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px;
  margin: 28px 0;
  background:
    radial-gradient(circle at top left, rgba(125,211,252,.16), transparent 38%),
    linear-gradient(180deg, rgba(16,24,39,.92), rgba(12,18,31,.92));
}

.quote-card blockquote {
  color: var(--text);
  font-size: clamp(1.55rem, 4vw, 3rem);
  line-height: 1.22;
  letter-spacing: -0.04em;
  font-weight: 850;
  margin-bottom: 18px;
}

.quote-card p {
  color: var(--accent);
  font-weight: 850;
}

.philosophy-page .essay-card p + p {
  margin-top: 18px;
}

.philosophy-page .essay-card h2 {
  margin-top: 34px;
  margin-bottom: 22px;
  max-width: 780px;
}

.philosophy-actions {
  margin-top: 34px;
}

.lightbox-trigger {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  cursor: zoom-in;
  overflow: hidden;
}

.lightbox-trigger img {
  transition: transform .25s ease, filter .25s ease;
}

.lightbox-trigger:hover img {
  transform: scale(1.035);
  filter: brightness(1.08);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  place-items: center;
  padding: 28px;
  background: rgba(2, 6, 23, .74);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.lightbox.active {
  display: grid;
}

.lightbox img {
  max-width: min(1100px, 92vw);
  max-height: 84vh;
  object-fit: contain;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 30px 120px rgba(0,0,0,.55);
  background: rgba(255,255,255,.04);
}

.lightbox-close {
  position: fixed;
  top: 24px;
  right: 28px;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(15,23,42,.82);
  color: var(--text);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: .2s ease;
}

.lightbox-close:hover {
  background: var(--accent);
  color: #07111f;
  transform: scale(1.05);
}

body.lightbox-open {
  overflow: hidden;
}

@media (max-width: 920px) {
  .hero,
  .bio-layout,
  .detail-grid,
  .two-col,
  .project-hero {
    grid-template-columns: 1fr;
  }

  .project-grid,
  .focus-grid,
  .values-grid,
  .toolkit-grid,
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero {
    min-height: auto;
  }

  .bio-image-card {
    position: relative;
    top: auto;
    min-height: auto;
  }

  .bio-photo {
    min-height: auto;
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 640px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px 0;
  }

  .nav {
    justify-content: flex-start;
  }

  .brand-logo {
    width: 68px;
    height: 50px;
  }

  .brand span {
    font-size: 1.35rem;
  }

  .project-grid,
  .focus-grid,
  .values-grid,
  .toolkit-grid,
  .gallery-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .profile-photo-wrap {
    width: min(330px, 100%);
  }

  h1 {
    font-size: clamp(2.5rem, 18vw, 4rem);
  }
}