@font-face {
  font-family: MontserratLocal;
  src: url("assets/fonts/montserrat-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --background: #0a0a0a;
  --component-bg: rgba(20, 20, 20, 0.78);
  --component-strong: #141414;
  --white: #f7f4ff;
  --white-icon: #b9b6c6;
  --white-icon-tr: rgba(255, 255, 255, 0.1);
  --muted: #94909f;
  --sec: #a476ff;
  --lime: #a9ff5b;
  --line: rgba(255, 255, 255, 0.1);
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 70% 0%, rgba(164, 118, 255, 0.18), transparent 28rem),
    radial-gradient(circle at 16% 16%, rgba(169, 255, 91, 0.08), transparent 23rem),
    var(--background);
  color: var(--white);
  font-family: MontserratLocal, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 4px;
}

button,
input,
textarea {
  font: inherit;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--component-strong);
  color: var(--white);
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

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

.site-header {
  position: fixed;
  top: 24px;
  left: 50%;
  z-index: 100;
  display: flex;
  width: min(80%, 900px);
  transform: translateX(-50%);
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 16px;
  background: rgba(10, 10, 10, 0.82);
  border: 1px solid transparent;
  backdrop-filter: blur(18px);
  transition: width 260ms ease, border-color 260ms ease, border-radius 260ms ease, background 260ms ease;
}

.site-header.scrolling {
  width: min(620px, calc(100% - 28px));
  border-color: var(--line);
  border-radius: 999px;
  background: var(--component-bg);
}

.brand,
.nav,
.hero-actions,
.filters,
.contact-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  min-width: max-content;
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 800;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border: 1px solid var(--white-icon-tr);
  border-radius: 12px;
  background: #1414149c;
  box-shadow: 0 0 0 3px rgba(164, 118, 255, 0.08);
  object-fit: cover;
}

.nav {
  gap: clamp(14px, 3vw, 34px);
  color: var(--white-icon);
  font-size: 0.92rem;
  font-weight: 700;
}

.nav a {
  position: relative;
  transition: color 180ms ease;
}

.nav a::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -14px;
  width: 6px;
  height: 6px;
  transform: translateY(-50%) scale(0);
  border-radius: 999px;
  background: var(--lime);
  opacity: 0;
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav a:hover,
.nav a.active {
  color: var(--white);
}

.nav a.active::before {
  transform: translateY(-50%) scale(1);
  opacity: 1;
}

.section {
  width: min(1040px, calc(100% - 36px));
  margin-inline: auto;
  padding-block: clamp(58px, 8vw, 104px);
}

.hero {
  position: relative;
  min-height: 100vh;
  padding-top: clamp(116px, 16vw, 180px);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 70px -120px auto auto;
  width: min(560px, 48vw);
  aspect-ratio: 1;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(164, 118, 255, 0.22), transparent 68%);
  filter: blur(10px);
  pointer-events: none;
}

.hero-portrait {
  position: absolute;
  top: clamp(88px, 13vw, 142px);
  right: clamp(-86px, -4vw, -28px);
  z-index: 0;
  width: min(470px, 42vw);
  aspect-ratio: 0.72;
  overflow: hidden;
  border-radius: 32px;
  opacity: 0.28;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.7) 18%, #000 44%, rgba(0, 0, 0, 0.62) 72%, transparent 100%), linear-gradient(180deg, #000 0%, #000 62%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.7) 18%, #000 44%, rgba(0, 0, 0, 0.62) 72%, transparent 100%), linear-gradient(180deg, #000 0%, #000 62%, transparent 100%);
  mask-composite: intersect;
}

.hero-portrait img {
  width: 100%;
  height: 100%;
  filter: grayscale(1) contrast(1.08);
  object-fit: cover;
  object-position: center 18%;
  mix-blend-mode: luminosity;
}

.hero-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 22px;
}

.hero-title-row {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.85fr);
  gap: clamp(22px, 5vw, 58px);
  align-items: end;
}

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

h1 {
  max-width: 680px;
  color: var(--white);
  font-size: clamp(3rem, 8vw, 6.4rem);
  font-weight: 650;
  line-height: 0.96;
}

h2 {
  color: var(--white);
  font-size: clamp(2.1rem, 5vw, 4.25rem);
  font-weight: 620;
  line-height: 1.02;
}

h3 {
  color: var(--white);
  font-size: 1.14rem;
  font-weight: 800;
  line-height: 1.2;
}

.lede,
.intro-grid > p,
.section-heading.split > p,
.skill-grid p,
.timeline p,
.case-card p,
.case-card li,
.project-card p,
.credential-list p,
.contact p,
.stats dd {
  color: var(--white-icon);
}

.lede {
  max-width: 520px;
  font-size: clamp(1.05rem, 2vw, 1.45rem);
}

.eyebrow,
.panel-kicker,
.tag,
.tech,
.date {
  color: var(--sec);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.shiny {
  width: fit-content;
  background: linear-gradient(135deg, #a476ff 25%, #eee5ff 50%, #a476ff 75%);
  background-size: 400% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shine 3.2s linear infinite;
}

@keyframes shine {
  0% {
    background-position: 100% 50%;
  }
  30%,
  70% {
    background-position: 0% 50%;
  }
}

.hero-actions {
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 8px;
}

.icon-button,
.filter,
.contact-links a {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--white-icon-tr);
  border-radius: 14px;
  background: #1414149c;
  color: var(--white-icon);
  font-weight: 800;
  transition: transform 180ms ease, color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.icon-button {
  padding: 12px 18px;
}

.icon-button:hover,
.filter:hover,
.filter.active,
.contact-links a:hover {
  transform: translateY(-2px);
  border-color: rgba(164, 118, 255, 0.42);
  background: rgba(164, 118, 255, 0.14);
  color: var(--white);
}

.icon-button.primary {
  color: #101010;
  background: var(--lime);
  border-color: var(--lime);
}

.hero-lower {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(300px, 1fr);
  gap: 22px;
  align-items: stretch;
  margin-top: clamp(46px, 8vw, 82px);
}

.focus-panel,
.glitch-card,
.skill-grid article,
.approach-grid article,
.focus-grid article,
.leadership-grid article,
.case-card,
.project-card,
.credential-list article {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--component-bg);
  box-shadow: var(--shadow);
}

.focus-panel {
  display: flex;
  min-height: 292px;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(22px, 4vw, 34px);
}

.focus-panel h2 {
  max-width: 560px;
  font-size: clamp(1.6rem, 3vw, 2.55rem);
}

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

.stats div {
  padding: 13px;
  border: 1px solid var(--white-icon-tr);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
}

.stats dt {
  color: var(--white);
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  font-weight: 900;
}

.stats dd {
  margin: 2px 0 0;
  font-size: 0.8rem;
}

.glitch-card {
  position: relative;
  min-height: 292px;
  overflow: hidden;
  background: #101010;
}

#letter-glitch {
  display: block;
  width: 100%;
  height: 100%;
}

.glitch-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle, rgba(16, 16, 16, 0) 60%, rgba(16, 16, 16, 1) 100%);
}

.intro-grid,
.credentials,
.contact {
  display: grid;
  grid-template-columns: minmax(250px, 0.8fr) minmax(280px, 1fr);
  gap: clamp(26px, 5vw, 74px);
  align-items: start;
  border-top: 1px solid var(--line);
}

.intro-grid > p {
  font-size: clamp(1.05rem, 2vw, 1.22rem);
}

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

.section-heading.split {
  display: flex;
  justify-content: space-between;
  gap: 26px;
  align-items: end;
}

.section-heading.split > p {
  max-width: 430px;
  font-size: 1.02rem;
}

.skill-grid,
.approach-grid,
.focus-grid,
.leadership-grid,
.case-grid,
.project-grid,
.credential-list {
  display: grid;
  gap: 18px;
}

.skill-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

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

.focus-grid,
.leadership-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.case-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

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

.skill-grid article,
.approach-grid article,
.focus-grid article,
.leadership-grid article,
.case-card,
.credential-list article {
  padding: 22px;
}

.approach-grid article,
.focus-grid article,
.leadership-grid article {
  min-height: 230px;
}

.approach-grid span {
  display: inline-flex;
  margin-bottom: 42px;
  color: var(--lime);
  font-weight: 900;
}

.skill-grid h3,
.focus-grid h3,
.leadership-grid h3,
.case-card h3,
.project-card h3,
.credential-list h3 {
  margin-bottom: 10px;
}

.focus-grid p,
.leadership-grid p,
.project-note {
  color: var(--white-icon);
}

.timeline {
  display: grid;
  border-top: 1px solid var(--line);
}

.timeline-item {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 28px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.date {
  color: var(--lime);
}

.case-card ul {
  padding-left: 20px;
  margin: 18px 0;
}

.tech {
  margin-top: 18px;
  color: var(--sec);
}

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

.filter {
  min-height: 40px;
  padding: 8px 14px;
  cursor: pointer;
}

.project-card {
  overflow: hidden;
  transition: transform 180ms ease, border-color 180ms ease;
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(164, 118, 255, 0.48);
}

.project-card.hidden {
  display: none;
}

.project-image {
  display: grid;
  min-height: 210px;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(164, 118, 255, 0.35), rgba(169, 255, 91, 0.08)),
    #141414;
  color: var(--white);
  font-size: clamp(2rem, 6vw, 4.5rem);
  font-weight: 900;
}

.project-body {
  padding: 20px;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0 0 12px;
}

.project-meta span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border: 1px solid var(--white-icon-tr);
  border-radius: 999px;
  padding: 4px 9px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--lime);
  font-size: 0.74rem;
  font-weight: 850;
}

.project-note {
  margin-top: 14px;
  font-size: 0.92rem;
}

.project-card a {
  display: inline-flex;
  margin-top: 22px;
  color: var(--sec);
  font-weight: 900;
}

.credential-list {
  grid-template-columns: 1fr;
}

.contact {
  padding-bottom: clamp(74px, 9vw, 112px);
}

.contact p {
  margin-top: 18px;
}

.contact-links {
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}

.contact-links a {
  justify-content: flex-start;
  padding: 16px 18px;
}

.footer {
  display: flex;
  width: min(1040px, calc(100% - 36px));
  margin-inline: auto;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 0 34px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.footer-identity {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
}

.footer-identity img {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(164, 118, 255, 0.58);
  border-radius: 14px;
  background: #101010;
  box-shadow: 0 0 0 4px rgba(164, 118, 255, 0.08);
  object-fit: cover;
}

.footer-identity strong {
  display: block;
  font-size: 0.95rem;
}

.footer-identity p,
.footer > p {
  margin: 0;
}

.footer-identity p {
  color: var(--white-icon);
  font-size: 0.82rem;
}

@media (max-width: 920px) {
  .site-header {
    top: auto;
    bottom: 0;
    width: 100%;
    border-color: var(--line);
    border-radius: 18px 18px 0 0;
    background: var(--component-bg);
  }

  .site-header.scrolling {
    width: 100%;
    border-radius: 18px 18px 0 0;
  }

  .brand {
    display: none;
  }

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

  .nav a::before {
    top: -8px;
    left: 50%;
    transform: translateX(-50%) scale(0);
  }

  .nav a.active::before {
    transform: translateX(-50%) scale(1);
  }

  body {
    padding-bottom: 74px;
  }

  .hero-title-row,
  .hero-lower,
  .intro-grid,
  .credentials,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 76px;
  }

  .hero-portrait {
    top: 78px;
    right: -74px;
    width: min(340px, 72vw);
    opacity: 0.18;
  }

  .section-heading.split {
    align-items: flex-start;
    flex-direction: column;
  }

  .approach-grid,
  .focus-grid,
  .leadership-grid,
  .project-grid {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 640px) {
  .section {
    width: min(100% - 28px, 1040px);
    padding-block: 54px;
  }

  h1 {
    font-size: clamp(2.7rem, 13vw, 4rem);
  }

  .hero::before {
    inset: 80px -180px auto auto;
    width: 360px;
  }

  .hero-portrait {
    top: 96px;
    right: -112px;
    width: 330px;
    opacity: 0.14;
  }

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

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

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}
