@font-face {
  font-family: "Montserrat";
  src: url("assets/fonts/montserrat-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #07111c;
  --card: #101d2e;
  --ink: #f4f8fc;
  --muted: #c5d4e4;
  --cyan: #5cefff;
  --line: rgba(92, 239, 255, 0.28);
  --navy: #07111c;
  --header: rgba(7, 17, 28, 0.94);
  --radius: 16px;
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  font-weight: 400;
}

h1,
h2,
h3,
p,
ul,
ol,
figure {
  margin: 0;
  padding: 0;
}

ul,
ol {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
}

::selection {
  background: var(--cyan);
  color: var(--navy);
}

.skip {
  position: absolute;
  left: 1rem;
  top: 0;
  transform: translateY(-120%);
  z-index: 100;
  background: var(--cyan);
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
  padding: 0.65rem 1rem;
  border-radius: 0 0 10px 10px;
}

.skip:focus {
  transform: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--header);
  border-bottom: 1px solid rgba(92, 239, 255, 0.16);
  backdrop-filter: blur(14px);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.25rem;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--cyan);
  border-radius: 10px;
  color: var(--cyan);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.brand-name {
  font-size: 0.98rem;
}

.nav-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: transparent;
  color: var(--cyan);
  cursor: pointer;
  flex-shrink: 0;
}

.nav-check {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.nav-toggle:has(.nav-check:focus-visible) {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
}

.bars,
.bars::before,
.bars::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--cyan);
  border-radius: 2px;
  position: relative;
}

.bars::before,
.bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.bars::before {
  top: -6px;
}

.bars::after {
  top: 6px;
}

.header-inner:has(.nav-check:checked) .bars {
  background: transparent;
}

.header-inner:has(.nav-check:checked) .bars::before {
  top: 0;
  transform: rotate(45deg);
}

.header-inner:has(.nav-check:checked) .bars::after {
  top: 0;
  transform: rotate(-45deg);
}

.site-nav a {
  display: block;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--muted);
  padding: 0.8rem 0.85rem;
  border-radius: 10px;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--ink);
  background: rgba(92, 239, 255, 0.08);
}

@media (max-width: 859px) {
  .site-nav {
    display: none;
  }

  .header-inner:has(.nav-check:checked) .site-nav {
    display: block;
    position: absolute;
    top: calc(100% + 0.55rem);
    right: 0;
    width: min(16.5rem, calc(100vw - 2rem));
    padding: 0.4rem;
    background: #0e1a2a;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
    z-index: 50;
  }
}

@media (min-width: 860px) {
  .nav-toggle {
    display: none;
  }

  .site-nav {
    display: block;
    position: static;
    width: auto;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .site-nav ul {
    display: flex;
    align-items: center;
    gap: 0.15rem;
  }

  .site-nav a {
    padding: 0.4rem 0.7rem;
    font-size: 0.95rem;
  }
}

.hero {
  padding: 2.75rem 0 2.25rem;
  background: radial-gradient(ellipse 80% 55% at 50% 0%, rgba(92, 239, 255, 0.16), transparent 62%);
}

.hero-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.portrait {
  order: -1;
  width: min(100%, 320px);
  margin-inline: auto;
}

.portrait-frame {
  padding: 7px;
  border-radius: 28px;
  background: linear-gradient(160deg, rgba(92, 239, 255, 0.95), rgba(92, 239, 255, 0.18) 42%, rgba(92, 239, 255, 0.7));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35), 0 0 70px rgba(92, 239, 255, 0.12);
}

.portrait-frame img {
  width: 100%;
  border-radius: 22px;
}

.availability {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.9rem;
  padding: 0.28rem 0.75rem 0.28rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--cyan);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.availability-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #7dffa8;
  box-shadow: 0 0 0 0 rgba(125, 255, 168, 0.65);
  animation: pulse 2.4s ease-out infinite;
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 8px rgba(125, 255, 168, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(125, 255, 168, 0);
  }
}

.js .reveal {
  opacity: 0;
  transform: translateY(14px);
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.55s ease, transform 0.55s ease;
}

h1 {
  font-size: clamp(2.5rem, 8vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 700;
}

.lede {
  margin-top: 1rem;
  max-width: 40rem;
  color: var(--ink);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.45;
}

.hero-note {
  margin-top: 0.75rem;
  max-width: 40rem;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.7rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
}

.button svg {
  flex-shrink: 0;
}

.button-primary {
  background: var(--cyan);
  color: var(--navy);
}

.button-primary:hover {
  background: #8af6ff;
}

.button-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--cyan);
}

.button-secondary:hover {
  background: rgba(92, 239, 255, 0.1);
}

.section {
  padding: 2.75rem 0;
  scroll-margin-top: 5.25rem;
}

.hero {
  scroll-margin-top: 5.25rem;
}

.section-heading {
  margin-bottom: 1.35rem;
}

.kicker {
  color: var(--cyan);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  margin-bottom: 0.3rem;
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 700;
}

h3 {
  font-size: 1.2rem;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.timeline {
  display: grid;
  gap: 0.9rem;
  margin-left: 0.35rem;
  padding-left: 1.35rem;
  border-left: 2px solid rgba(92, 239, 255, 0.4);
}

.timeline > li {
  position: relative;
}

.timeline > li::before {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--cyan);
  left: calc(-1.35rem - 7px);
  top: 1.35rem;
}

.role,
.skill-card,
.project-card,
.writing-card,
.contact-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.role {
  display: grid;
  gap: 0.35rem;
  padding: 1.15rem 1.15rem 1.2rem;
}

.role h3 {
  margin: 0;
}

.role-when {
  color: var(--cyan);
  font-weight: 600;
  font-size: 0.92rem;
}

.role-org {
  font-weight: 700;
  margin-top: 0.1rem;
}

.role-badge {
  display: inline-block;
  margin-top: 0.45rem;
  padding: 0.12rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--cyan);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.role ul {
  margin-top: 0.7rem;
  padding-left: 1.15rem;
}

.role li {
  list-style: disc;
}

.role li::marker {
  color: var(--cyan);
}

.role li + li {
  margin-top: 0.4rem;
}

.skill-grid,
.project-grid,
.writing-list,
.contact-grid {
  display: grid;
  gap: 0.9rem;
}

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

.skill-card {
  padding: 1.15rem 1.15rem 1.2rem;
  height: 100%;
}

.skill-card h3 {
  color: var(--cyan);
  font-size: 1rem;
  margin-bottom: 0.8rem;
}

.chips,
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.chips li,
.tags li {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.28rem 0.68rem;
  background: rgba(92, 239, 255, 0.06);
  font-size: 0.9rem;
  font-weight: 500;
}

.tags {
  margin-top: 1rem;
}

.tags li {
  color: var(--cyan);
  font-size: 0.8rem;
  font-weight: 700;
}

.tag-company {
  background: var(--cyan);
  color: var(--navy);
  border-color: var(--cyan);
}

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

.project-grid > li {
  display: flex;
}

.project-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.project-card:hover {
  border-color: var(--cyan);
  transform: translateY(-4px);
}

.project-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
  background: var(--navy);
}

.project-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.05rem 1.15rem 1.15rem;
}

.project-card h3 {
  font-size: 1.35rem;
}

.project-card p {
  margin-top: 0.55rem;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  margin-top: auto;
  padding-top: 1rem;
}

.project-cta {
  margin-top: auto;
  padding-top: 1rem;
  color: var(--cyan);
  font-weight: 700;
  text-decoration: none;
  text-underline-offset: 0.2em;
}

.project-links .project-cta {
  margin-top: 0;
  padding-top: 0;
}

.project-cta:hover {
  text-decoration: underline;
}

.open-source {
  margin-top: 1.75rem;
  padding: 1rem 1.15rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}

.open-source h3 {
  font-size: 1.05rem;
}

.open-source p {
  margin-top: 0.4rem;
  color: var(--muted);
}

.open-source ul {
  margin-top: 0.55rem;
  padding-left: 1.15rem;
}

.open-source li {
  list-style: disc;
}

.open-source li + li {
  margin-top: 0.25rem;
}

.open-source a {
  color: var(--cyan);
  font-weight: 700;
  text-underline-offset: 0.18em;
}

.earlier {
  margin-top: 2rem;
  border-top: 1px solid var(--line);
  padding-top: 1.1rem;
}

.earlier summary {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.35rem 0.2rem;
  color: var(--ink);
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  list-style: none;
}

.earlier summary::-webkit-details-marker {
  display: none;
}

.earlier summary::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid var(--cyan);
  border-bottom: 2px solid var(--cyan);
  transform: rotate(-45deg);
  transition: transform 0.2s ease;
}

.earlier[open] summary::before {
  transform: rotate(45deg);
}

.project-grid-compact {
  margin-top: 0.4rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.project-grid-compact .project-card h3 {
  font-size: 1.1rem;
}

.project-grid-compact .project-body {
  padding: 0.85rem 0.95rem 1rem;
}

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

.writing-card {
  padding: 1.2rem 1.25rem 1.3rem;
  transition: border-color 0.2s ease;
}

.writing-card:hover {
  border-color: var(--cyan);
}

.writing-source {
  color: var(--cyan);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.writing-card h3 {
  margin-top: 0.45rem;
  font-size: 1.25rem;
}

.writing-card h3 a {
  color: inherit;
  text-decoration-color: var(--cyan);
  text-underline-offset: 0.18em;
}

.writing-card p:last-child {
  margin-top: 0.55rem;
  color: var(--muted);
}

.project-meta {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.92rem;
}

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

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-height: 7.5rem;
  padding: 1.2rem 1.2rem 1.25rem;
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.contact-card:hover {
  border-color: var(--cyan);
  background: #132536;
}

.contact-label {
  color: var(--cyan);
  font-size: 0.92rem;
  font-weight: 700;
}

.contact-value {
  font-weight: 600;
  font-size: 1.02rem;
  overflow-wrap: anywhere;
}

.site-footer {
  border-top: 1px solid rgba(92, 239, 255, 0.16);
  padding: 0.4rem 0 1.5rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  padding-top: 1.1rem;
}

.footer-inner a {
  color: var(--ink);
  font-weight: 700;
  text-decoration-color: var(--cyan);
  text-underline-offset: 0.2em;
}

a,
summary {
  -webkit-tap-highlight-color: rgba(92, 239, 255, 0.25);
}

@media (min-width: 800px) {
  .role {
    grid-template-columns: 14.5rem 1fr;
    grid-template-areas:
      "meta title"
      "meta body";
    column-gap: 1.5rem;
    row-gap: 0.35rem;
    align-items: start;
    padding: 1.3rem 1.4rem 1.35rem;
  }

  .role h3 {
    grid-area: title;
  }

  .role-meta {
    grid-area: meta;
  }

  .role ul {
    grid-area: body;
    margin-top: 0.45rem;
  }
}

@media (min-width: 860px) {
  .wrap {
    width: min(1120px, calc(100% - 3rem));
  }

  .hero {
    padding: 4.5rem 0 3.25rem;
    background: radial-gradient(ellipse 48% 80% at 86% 35%, rgba(92, 239, 255, 0.16), transparent 64%);
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.8fr);
    gap: 3.5rem;
  }

  .portrait {
    order: 0;
    width: 100%;
    max-width: 420px;
    margin-inline: 0 0 auto;
  }

  .section {
    padding: 3.5rem 0;
  }

  .brand-name {
    font-size: 1.05rem;
  }
}

@media (max-width: 359px) {
  .brand-name {
    font-size: 0.86rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

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

@media print {
  .js .reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  .earlier > ul {
    display: grid !important;
  }

  .site-header,
  .skip,
  .hero-actions,
  .nav-toggle {
    display: none !important;
  }

  body {
    background: #fff;
    color: #121212;
  }

  .role,
  .skill-card,
  .project-card,
  .writing-card,
  .open-source,
  .contact-card {
    background: #fff;
    border-color: #ccc;
    break-inside: avoid;
  }

  .eyebrow,
  .kicker,
  .role-when,
  .contact-label,
  .skill-card h3,
  .tags li,
  .role-badge {
    color: #0b6d84;
  }

  a {
    color: #121212;
  }
}
