:root {
  --ink: #f7f2ea;
  --muted: #c2cad1;
  --paper: #131923;
  --surface: #202c39;
  --surface-2: #263849;
  --line: #3b4d5d;
  --teal: #8fd0e0;
  --coral: #f26a5f;
  --gold: #d7a64a;
  --burgundy: #4a1f2f;
  --navy: #182739;
  --cream: #fff1d6;
  --white: #ffffff;
  --dark: #0e1219;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 82% 12%, rgba(143, 208, 224, 0.14), transparent 34%),
    linear-gradient(135deg, #131923 0%, #1a2635 48%, #211723 100%);
  line-height: 1.6;
}

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

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 56px);
  background: rgba(19, 25, 35, 0.84);
  border-bottom: 1px solid rgba(51, 64, 77, 0.75);
  backdrop-filter: blur(16px);
}

.brand {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--ink);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0;
}

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

.nav a {
  padding: 10px 12px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 700;
}

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

.hero {
  position: relative;
  min-height: 88vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(19, 25, 35, 0.98) 0%, rgba(19, 25, 35, 0.82) 42%, rgba(74, 31, 47, 0.2) 78%),
    linear-gradient(180deg, rgba(14, 18, 25, 0.08) 0%, rgba(19, 25, 35, 0.92) 100%);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-content {
  position: relative;
  width: min(760px, calc(100% - 36px));
  margin-left: clamp(18px, 7vw, 96px);
  padding: 104px 0 132px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 700px;
  margin: 0;
  font-size: clamp(3.7rem, 11vw, 8rem);
  line-height: 0.9;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 4.2rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.2;
}

.lede {
  max-width: 650px;
  margin: 26px 0 0;
  color: #d3d9dd;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.hero-actions,
.contact-actions,
.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid var(--ink);
  text-decoration: none;
  font-weight: 800;
}

.button.primary {
  color: #19120c;
  background: var(--cream);
  border-color: var(--cream);
}

.button.secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
}

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

.section {
  padding: clamp(68px, 10vw, 120px) clamp(18px, 5vw, 72px);
}

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

.row-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.7fr);
  gap: 28px;
  align-items: end;
  max-width: none;
}

.row-heading p:last-child {
  margin: 0;
  color: var(--muted);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(220px, 360px) minmax(0, 1fr);
  gap: clamp(26px, 5vw, 70px);
  align-items: center;
}

.portrait {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  box-shadow: var(--shadow);
}

.intro-copy {
  max-width: 760px;
  font-size: 1.08rem;
  color: #d0d6db;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 34px;
  background: var(--line);
  border: 1px solid var(--line);
}

.stat-row div {
  min-height: 112px;
  padding: 20px;
  background: #1b2633;
}

.stat-row strong {
  display: block;
  font-size: 1.75rem;
  line-height: 1;
}

.stat-row span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.9rem;
}

.work-band {
  background: linear-gradient(135deg, var(--navy) 0%, #20354a 56%, #341d2c 100%);
  border-block: 1px solid var(--line);
}

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

.feature-card,
.project-card,
.resume-panel {
  background: linear-gradient(180deg, rgba(38, 56, 73, 0.96), rgba(32, 44, 57, 0.96));
  border: 1px solid var(--line);
}

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

.feature-card.wide {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: clamp(22px, 4vw, 42px);
  align-items: center;
}

.video-frame {
  background: #111a25;
}

.video-frame iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
}

.tag {
  margin: 0 0 10px;
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.feature-card p:not(.tag),
.project-card p,
.resume-panel p {
  color: var(--muted);
}

.feature-card a,
.link-row a,
.footer a {
  color: var(--teal);
  font-weight: 800;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

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

.project-card {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
}

.project-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--surface-2);
}

.project-card img,
.community-grid img,
.portrait {
  cursor: zoom-in;
}

.project-body {
  display: flex;
  flex-direction: column;
  padding: clamp(20px, 3vw, 30px);
}

.project-body .link-row {
  margin-top: auto;
  padding-top: 18px;
}

.resume-section {
  background: linear-gradient(135deg, #211723 0%, #182739 100%);
  border-top: 1px solid var(--line);
}

.referee-section {
  background: linear-gradient(135deg, #17283b 0%, #20354a 50%, #2d2638 100%);
  border-top: 1px solid var(--line);
}

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

.referee-card {
  min-height: 260px;
  padding: clamp(20px, 3vw, 30px);
  background: linear-gradient(180deg, rgba(38, 56, 73, 0.96), rgba(32, 44, 57, 0.96));
  border: 1px solid var(--line);
}

.referee-card p:not(.tag) {
  color: var(--muted);
}

.lp-section {
  background: linear-gradient(135deg, #17202c 0%, #25384a 48%, #3d2130 100%);
  border-top: 1px solid var(--line);
}

.lp-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 18px;
  align-items: stretch;
}

.lp-story,
.lp-metrics,
.community-grid figure {
  background: linear-gradient(180deg, rgba(38, 56, 73, 0.96), rgba(32, 44, 57, 0.96));
  border: 1px solid var(--line);
}

.lp-story {
  padding: clamp(22px, 4vw, 34px);
}

.lp-story p:not(.tag) {
  color: var(--muted);
}

.lp-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  padding: 1px;
  background: var(--line);
}

.lp-metrics div {
  min-height: 150px;
  padding: 22px;
  background: #1b2633;
}

.lp-metrics strong {
  display: block;
  color: var(--cream);
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  line-height: 1;
}

.lp-metrics span {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.94rem;
}

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

.accomplishment-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.accomplishment-list span {
  padding: 10px 12px;
  border: 1px solid rgba(255, 241, 214, 0.28);
  background: rgba(255, 241, 214, 0.08);
  color: #f1e6d3;
  font-size: 0.92rem;
  font-weight: 700;
}

.community-grid figure {
  margin: 0;
  overflow: hidden;
}

.community-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.community-grid figcaption {
  padding: 14px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.35;
}

.resume-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 18px;
}

.resume-panel {
  padding: clamp(22px, 4vw, 34px);
}

.timeline {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
}

.timeline li {
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.timeline span {
  display: block;
  color: var(--gold);
  font-size: 0.86rem;
  font-weight: 800;
}

.timeline strong {
  display: block;
  margin-top: 4px;
}

.skill-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0;
}

.skill-cloud span {
  padding: 9px 11px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: #e3e8eb;
  font-size: 0.9rem;
  font-weight: 700;
}

.button.full {
  width: 100%;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding: clamp(56px, 8vw, 92px) clamp(18px, 5vw, 72px);
  color: var(--white);
  background: linear-gradient(135deg, #4a1f2f 0%, #17283b 100%);
}

.contact-section .eyebrow,
.contact-section h2 {
  color: var(--white);
}

.contact-section .button.primary {
  color: #19120c;
  background: var(--cream);
  border-color: var(--cream);
}

.contact-section .button.secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.55);
  background: transparent;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 24px clamp(18px, 5vw, 72px);
  color: var(--muted);
  background: #121926;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(6, 9, 13, 0.88);
  backdrop-filter: blur(10px);
}

.lightbox.is-open {
  display: flex;
}

.lightbox-content {
  width: min(1120px, 100%);
  max-height: 90svh;
  margin: 0;
}

.lightbox-content img {
  width: 100%;
  max-height: 82svh;
  object-fit: contain;
  background: #111a25;
  box-shadow: var(--shadow);
}

.lightbox-content figcaption {
  margin-top: 12px;
  color: var(--ink);
  text-align: center;
  font-size: 0.95rem;
}

.lightbox-close {
  position: absolute;
  top: 14px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 241, 214, 0.35);
  color: var(--ink);
  background: rgba(32, 44, 57, 0.9);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

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

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

@media (max-width: 860px) {
  .site-header {
    position: sticky;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 18px;
  }

  .nav {
    flex: 1 1 100%;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .nav a {
    flex: 0 0 auto;
    padding: 9px 12px;
    border: 1px solid rgba(255, 241, 214, 0.16);
    background: rgba(255, 255, 255, 0.05);
    white-space: nowrap;
    font-size: 0.88rem;
  }

  .hero {
    min-height: 76svh;
    align-items: end;
  }

  .hero-media::after {
    background: linear-gradient(180deg, rgba(19, 25, 35, 0.97) 0%, rgba(24, 39, 57, 0.88) 52%, rgba(74, 31, 47, 0.72) 100%);
  }

  .hero-content {
    width: calc(100% - 36px);
    margin: 0 auto;
    padding: 72px 0 54px;
  }

  h1 {
    font-size: clamp(3.1rem, 16vw, 5.4rem);
    line-height: 0.94;
  }

  h2 {
    font-size: clamp(1.9rem, 9vw, 3.1rem);
    line-height: 1.04;
  }

  .lede {
    margin-top: 20px;
    font-size: 1.05rem;
  }

  .section {
    padding: 58px 18px;
  }

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

  .row-heading {
    gap: 14px;
  }

  .intro-grid,
  .row-heading,
  .feature-card.wide,
  .lp-showcase,
  .project-grid,
  .referee-grid,
  .resume-grid,
  .contact-section {
    grid-template-columns: 1fr;
  }

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

  .feature-card.wide {
    gap: 20px;
  }

  .portrait {
    max-height: 520px;
  }

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

@media (max-width: 600px) {
  .site-header {
    padding: 10px 14px;
  }

  .brand {
    width: 40px;
    height: 40px;
  }

  .nav a {
    padding: 8px 10px;
    font-size: 0.8rem;
  }

  .hero {
    min-height: 72svh;
  }

  .hero-content {
    width: calc(100% - 28px);
    padding: 56px 0 42px;
  }

  .eyebrow {
    font-size: 0.72rem;
  }

  h1 {
    font-size: clamp(2.75rem, 17vw, 4.2rem);
  }

  h2 {
    font-size: clamp(1.75rem, 10vw, 2.55rem);
  }

  h3 {
    font-size: 1.18rem;
  }

  .hero-actions,
  .contact-actions,
  .link-row {
    gap: 10px;
    margin-top: 22px;
  }

  .button {
    min-height: 44px;
    padding: 11px 14px;
    font-size: 0.92rem;
  }

  .section {
    padding: 48px 14px;
  }

  .intro-copy {
    font-size: 1rem;
  }

  .feature-card,
  .referee-card,
  .project-body,
  .resume-panel,
  .lp-story {
    padding: 18px;
  }

  .project-card img {
    aspect-ratio: 4 / 3;
  }

  .lp-metrics div,
  .stat-row div {
    min-height: auto;
    padding: 18px;
  }

  .stat-row {
    grid-template-columns: 1fr;
  }

  .lp-metrics,
  .community-grid {
    grid-template-columns: 1fr;
  }

  .community-grid img {
    aspect-ratio: 16 / 10;
  }

  .accomplishment-list span,
  .skill-cloud span {
    width: 100%;
  }

  .contact-section {
    padding: 44px 14px;
  }

  .lightbox {
    padding: 12px;
  }

  .lightbox-close {
    top: 10px;
    right: 10px;
  }

  .hero-actions .button,
  .contact-actions .button {
    width: 100%;
  }

  .footer {
    flex-direction: column;
  }
}
