:root {
  color-scheme: dark;
  --bg: #020305;
  --text: #f4f7fb;
  --muted: #acb6c3;
  --subtle: #8692a1;
  --accent: #80f3be;
  --line: rgba(210, 230, 255, 0.15);
  --max: 1120px;
  --header-height: 60px;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

body.portal-active {
  overflow: hidden;
}

[hidden] {
  display: none !important;
}

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

button {
  font: inherit;
}

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

[tabindex="-1"]:focus {
  outline: none;
}

.container {
  width: min(calc(100% - 64px), var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  inset-block-start: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(3, 5, 7, 0.84);
  backdrop-filter: blur(16px);
}

.header-inner,
.logo,
.nav-links {
  display: flex;
  align-items: center;
}

.header-inner {
  min-height: var(--header-height);
  justify-content: space-between;
  gap: 20px;
}

.logo {
  gap: 10px;
  color: #88ffbd;
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
}

.logo img {
  display: block;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.logo span {
  text-shadow: 0 0 8px #4af3a980;
}

.logo:is(:hover, :focus-visible) span {
  color: #d1ffe5;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (prefers-reduced-motion: no-preference) {
  .logo span {
    animation: orbit-link-glow 1.8s ease-in-out infinite alternate;
  }
}

@keyframes orbit-link-glow {
  from { text-shadow: 0 0 6px #4af3a960, 0 0 12px #4af3a91a; }
  to { text-shadow: 0 0 7px #4af3a9eb, 0 0 18px #4af3a9a6; }
}

.nav-links {
  gap: clamp(16px, 3vw, 38px);
}

.nav-links a {
  display: grid;
  min-height: 44px;
  place-items: center;
  border-bottom: 1px solid transparent;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
}

.nav-links a:hover,
.nav-links a[aria-current] {
  color: var(--accent);
}

.nav-links a[aria-current] {
  border-bottom-color: var(--accent);
}

.menu-toggle {
  display: none;
}

body.portal-active:not(.portal-returning) .site-header {
  display: none;
}

.portal-entry {
  --opening-duration: 1320ms;
  --return-duration: 1120ms;
  --bubble-size: clamp(41px, min(13vw, 13dvh), 72px);
  --entry-size: min(calc(100vw - var(--bubble-size) * 1.65 - 14px), calc(100dvh - var(--bubble-size) * 1.65 - 22px), 710px);
  --core-size: calc(var(--entry-size) * 0.45);
  position: fixed;
  inset: 0;
  z-index: 25;
  display: none;
  place-items: center;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 50%, #05080b 0, #010203 63%, #000 100%);
}

.portal-ready .portal-entry {
  display: grid;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 240ms ease, visibility 240ms ease;
}

body.portal-active .portal-entry {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

body.portal-active:not(.portal-returning) .site-shell {
  visibility: hidden;
}

@media (prefers-reduced-motion: no-preference) {
  .portal-ready .portal-entry.is-opening {
    visibility: visible;
    transition: none;
    animation: portal-fade-out var(--opening-duration) cubic-bezier(.36, 0, .24, 1) both;
  }

  .portal-entry.is-opening .portal-core {
    animation: portal-open var(--opening-duration) cubic-bezier(.24, .74, .24, 1) both;
  }

  .portal-entry.is-opening .portal-core-text,
  .portal-entry.is-opening .orbit::before,
  .portal-entry.is-opening .orbit-pill {
    animation: portal-fade-out 320ms ease both;
  }

  .portal-ready.portal-returning .portal-entry {
    transition: none;
    animation: portal-fade-in var(--return-duration) cubic-bezier(.22, .82, .24, 1) both;
  }

  .portal-returning .portal-core {
    animation: portal-close var(--return-duration) cubic-bezier(.22, .82, .24, 1) both;
  }

  .portal-returning .portal-core-text,
  .portal-returning .orbit::before,
  .portal-returning .orbit-pill {
    animation: portal-fade-in calc(var(--return-duration) - 260ms) ease 260ms both;
  }
}

@keyframes portal-fade-out {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes portal-open {
  from { opacity: 1; transform: rotate(0deg) scale(1); filter: blur(0); }
  to { opacity: 0; transform: rotate(320deg) scale(7.4); filter: blur(14px); }
}

@keyframes portal-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes portal-close {
  from { opacity: 0; transform: rotate(320deg) scale(7.4); filter: blur(14px); }
  to { opacity: 1; transform: rotate(0deg) scale(1); filter: blur(0); }
}

.star-field {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.cursor-stars {
  position: fixed;
  inset: 0;
  z-index: 30;
  overflow: clip;
  pointer-events: none;
  mix-blend-mode: screen;
}

.cursor-star {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--size);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--color);
  box-shadow: 0 0 4px var(--color);
  animation: cursor-star-bloom var(--life) ease-out both;
}

@keyframes cursor-star-bloom {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.35); }
  18% { opacity: var(--opacity); }
  62% { opacity: calc(var(--opacity) * 0.65); }
  100% { opacity: 0; transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(0.15); }
}

.portal-star {
  position: absolute;
  inset: var(--star-y) auto auto var(--star-x);
  width: var(--star-size);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--star-color);
  opacity: var(--star-opacity);
  box-shadow: 0 0 var(--star-glow) var(--star-color);
  animation: star-birth var(--star-duration) ease-in-out var(--star-delay) infinite;
}

@keyframes star-birth {
  0%, 100% { opacity: 0; transform: scale(0.24); }
  10%, 34% { opacity: var(--star-opacity); transform: scale(1); }
  48% { opacity: calc(var(--star-opacity) * 0.36); transform: scale(0.72); }
  62% { opacity: var(--star-opacity); transform: scale(1.08); }
}

.portal-system {
  position: relative;
  display: grid;
  width: var(--entry-size);
  aspect-ratio: 1;
  place-items: center;
  pointer-events: none;
}

.orbit {
  position: absolute;
  left: calc(50% - var(--entry-size) * var(--orbit-w) / 2);
  top: calc(50% - var(--entry-size) * var(--orbit-h) / 2);
  width: calc(var(--entry-size) * var(--orbit-w));
  height: calc(var(--entry-size) * var(--orbit-h));
}

.orbit::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  border: 1px solid var(--ring-color);
  border-radius: 50%;
  transform: rotate(var(--orbit-rotate));
  content: "";
}

.orbit-pill {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: var(--bubble-size);
  height: var(--bubble-size);
  z-index: 2;
  margin: calc(var(--bubble-size) / -2);
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--color) 72%, #19212b);
  border-radius: 50%;
  background: radial-gradient(circle at 34% 25%, color-mix(in srgb, var(--color) 27%, #101621), #0d1320 81%);
  box-shadow: 0 0 22px color-mix(in srgb, var(--color) 28%, transparent);
  color: var(--text);
  font-size: clamp(0.51rem, calc(var(--bubble-size) * 0.155), 0.78rem);
  font-weight: 700;
  text-align: center;
  pointer-events: auto;
  transition: box-shadow 180ms ease, border-color 180ms ease;
}

.orbit-pill[data-stat]::after {
  position: absolute;
  inset: 4px;
  border: 1px solid color-mix(in srgb, var(--color) 29%, transparent);
  border-radius: inherit;
  pointer-events: none;
  content: "";
}

.orbit-pill:hover,
.orbit-pill:focus-visible {
  border-color: var(--color);
  box-shadow: 0 0 29px color-mix(in srgb, var(--color) 40%, transparent);
}

.orbit-caption {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.orbit-caption text {
  fill: var(--color);
  font: 650 15px Inter, sans-serif;
  paint-order: stroke;
  stroke: #010203;
  stroke-width: 2px;
}

.orbit-caption text:first-of-type {
  font-size: 16px;
  font-weight: 750;
}

.orbit-count {
  font-size: clamp(0.72rem, calc(var(--bubble-size) * 0.238), 1.2rem);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.05em;
}

.portal-core {
  position: relative;
  z-index: 1;
  display: grid;
  width: var(--core-size);
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(111, 246, 190, 0.62);
  border-radius: 50%;
  overflow: hidden;
  background: radial-gradient(circle, rgba(9, 20, 24, 0.82), rgba(3, 8, 10, 0.48));
  pointer-events: auto;
  transition: transform 200ms ease;
}

.portal-core:hover {
  transform: scale(1.025);
}

.portal-core img {
  position: absolute;
  inset: -4%;
  width: 108%;
  height: 108%;
  object-fit: contain;
  mask-image: radial-gradient(ellipse closest-side, #000 72%, transparent 100%);
}

.portal-core-text {
  position: absolute;
  inset: 66% auto auto 50%;
  display: grid;
  justify-items: center;
  gap: 0.24em;
  width: max-content;
  transform: translateX(-50%);
  color: #53f7ae;
  font-size: clamp(0.55rem, calc(var(--core-size) * 0.047), 0.94rem);
  font-weight: 700;
  line-height: 1.22;
  text-align: center;
  text-shadow: 0 2px 7px #000, 0 0 12px #000;
}

.portal-core-text strong {
  color: var(--text);
  font-size: clamp(0.72rem, calc(var(--core-size) * 0.095), 2rem);
  letter-spacing: -0.045em;
}

.site-shell {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(ellipse 70% 560px at 84% 0, rgba(14, 47, 41, 0.32), transparent),
    radial-gradient(ellipse 55% 700px at 0 56%, rgba(54, 36, 88, 0.14), transparent),
    var(--bg);
}

.site-shell > .star-field {
  position: fixed;
  opacity: 0.74;
}

body.portal-active:not(.portal-returning) .site-shell .portal-star,
body:not(.portal-active) .portal-entry:not(.is-opening) .portal-star {
  animation-play-state: paused;
}

section {
  padding-block: clamp(52px, 8vw, 105px);
  scroll-margin-top: var(--header-height);
}

section + section {
  border-top: 1px solid var(--line);
}

.hero {
  display: grid;
  min-height: min(650px, calc(100svh - var(--header-height)));
  align-items: center;
  overflow: hidden;
}

.hero-layout {
  position: relative;
  display: grid;
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.hero-portrait {
  position: absolute;
  top: 50%;
  right: -7%;
  width: min(51vw, 570px);
  height: auto;
  transform: translateY(-50%);
  mask-image: radial-gradient(ellipse 49% 51% at 58% 49%, #000 48%, transparent 100%);
  opacity: 0.89;
  pointer-events: none;
}

.eyebrow,
.timeline-period,
.project-stack {
  margin: 0;
  color: var(--subtle);
  font: 500 0.75rem/1.6 var(--mono);
}

.eyebrow {
  color: var(--accent);
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.hero-signal {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 10px;
  border-radius: 50%;
  background: #54f5ad;
  box-shadow: 0 0 12px #54f5ad;
}

.hero h1 {
  max-width: 74%;
  margin: 0.16em 0 0.2em;
  color: #50f6ad;
  font-size: clamp(3.1rem, 8.3vw, 8rem);
  font-weight: 800;
  line-height: 0.96;
  letter-spacing: -0.074em;
}

.hero-role {
  max-width: 37ch;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.1rem, 2.2vw, 1.45rem);
}

.social-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.social-icon {
  display: grid;
  width: 47px;
  height: 47px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(20, 31, 38, 0.55);
  transition: transform 180ms ease, border-color 180ms ease, color 180ms ease;
}

.social-icon:hover,
.social-icon:focus-visible {
  transform: translateY(-3px);
  border-color: var(--accent);
  color: var(--accent);
}

.text-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 650;
}

.text-link:hover,
.about-text a:hover,
.contact-item a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.section-header {
  margin-bottom: clamp(24px, 4vw, 42px);
}

.section-header h2 {
  margin: 0;
  font-size: clamp(2.25rem, 5vw, 4rem);
  font-weight: 720;
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.about-content,
.contact-details {
  display: grid;
  gap: clamp(22px, 5vw, 66px);
}

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

.about-text h3,
.skill-descriptions h3 {
  margin: 0 0 0.5em;
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.about-text p,
.skill-descriptions p,
.timeline-entry p,
.project-copy p:not(.eyebrow),
.contact-item p {
  margin: 0;
  color: var(--muted);
}

.about-text p + p {
  margin-top: 1em;
}

.about-text .research-note {
  color: var(--subtle);
  font-size: 0.9rem;
}

.about-text a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.about-text + .about-text {
  padding-left: clamp(24px, 4vw, 50px);
  border-left: 1px solid var(--line);
}

.education strong {
  color: var(--text);
}

.timeline,
.project-track {
  margin: 0;
  padding: 0;
  list-style: none;
}

.experience-track {
  --date-column: clamp(156px, 24%, 260px);
  --comet-axis: clamp(38px, 5.8vw, 78px);
  --comet-width: clamp(76px, 10vw, 132px);
  position: relative;
  isolation: isolate;
}

.experience-comet {
  position: absolute;
  top: 0;
  left: var(--comet-axis);
  z-index: -1;
  width: 0;
  height: 0;
  pointer-events: none;
  transform: translate3d(0, var(--comet-y, 0px), 0);
}

.experience-comet::before {
  position: absolute;
  bottom: calc(var(--comet-width) * 0.26);
  left: 0;
  width: clamp(21px, 3.5vw, 47px);
  height: max(0px, calc(var(--comet-y, 0px) - var(--comet-width) * 0.26));
  background: linear-gradient(to bottom, #58318c18, #a268e251 20%, #b489ef90 62%, #8de9c4a6 89%, #baffdc);
  clip-path: polygon(46% 0, 56% 0, 64% 24%, 53% 46%, 74% 66%, 68% 82%, 93% 100%, 13% 100%, 26% 78%, 36% 66%, 31% 45%, 44% 23%);
  transform: translateX(-50%);
  content: "";
}

.experience-comet img {
  position: absolute;
  bottom: calc(var(--comet-width) * -0.32);
  left: 0;
  width: var(--comet-width);
  height: auto;
  max-width: none;
  clip-path: inset(max(0px, calc(var(--comet-width) * 2.33625 - var(--comet-y, 0px))) 0 0);
  transform: translateX(-50%);
}

.timeline-entry {
  display: grid;
  grid-template-columns: var(--date-column) minmax(0, 1fr);
  align-items: center;
  position: relative;
  gap: clamp(14px, 2.1vw, 30px);
  padding-block: 20px;
}

.timeline-entry::before {
  position: absolute;
  top: 0;
  right: 0;
  left: calc(var(--comet-axis) + var(--comet-width) * 0.40);
  height: 1px;
  background: linear-gradient(to right, transparent, var(--line) 16%);
  transform-origin: left;
  transition: transform 630ms cubic-bezier(.16, 1, .3, 1), opacity 430ms ease;
  content: "";
}

.has-reveals .timeline-entry:not(.is-visible)::before {
  opacity: 0;
  transform: scaleX(0.35);
}

.timeline-entry .timeline-period {
  justify-self: end;
  color: var(--subtle);
  text-align: right;
  transition: color 280ms ease;
}

.timeline-entry .timeline-period.is-current-period {
  color: #d8ffe5;
}

.timeline-period span {
  white-space: nowrap;
}

.timeline-entry .timeline-company {
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 650;
}

.timeline-entry h3 {
  margin: 2px 0 4px;
  font-size: 1.15rem;
  line-height: 1.25;
  letter-spacing: -0.03em;
}

.timeline-featured {
  padding-block: 30px;
}

.timeline-featured h3 {
  font-size: clamp(1.55rem, 3.5vw, 2.5rem);
  letter-spacing: -0.05em;
}

.earlier-label-open,
.earlier-roles[open] .earlier-label-closed {
  display: none;
}

.earlier-roles[open] .earlier-label-open {
  display: inline;
}

.earlier-roles.has-end-control[open] > summary {
  display: none;
}

.experience-toggle {
  display: inline-flex;
  align-items: center;
  margin-left: calc(var(--date-column) / 2);
  min-height: 44px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #0a1016;
  color: var(--accent);
  font: 400 0.9rem/1.65 Inter, sans-serif;
  cursor: pointer;
}

.experience-toggle::-webkit-details-marker {
  display: none;
}

.experience-toggle span[aria-hidden="true"] {
  margin-left: 4px;
}

.experience-toggle:hover {
  border-color: var(--accent);
}

.has-reveals [data-reveal]:not(.is-visible) > * {
  opacity: 0;
  transform: translate(-24px, 14px);
}

[data-reveal] > * {
  transition: opacity 520ms ease, transform 620ms cubic-bezier(.16, 1, .3, 1);
}

.skill-constellation {
  position: relative;
  isolation: isolate;
}

.skill-constellation::before {
  position: absolute;
  z-index: -1;
  inset: -85px -26px -38px;
  background: url("/assets/showcase/milky-way.svg") center 30% / 100% 100% no-repeat;
  opacity: 0.88;
  pointer-events: none;
  content: "";
}

.skill-stars {
  position: relative;
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  align-items: center;
  justify-items: center;
  gap: 18px clamp(4px, 1.3vw, 18px);
  min-height: 216px;
  margin: 20px 0 34px;
  padding: 10px 18px 14px;
}

.skill-star {
  position: relative;
  display: grid;
  width: min(100%, 69px);
  aspect-ratio: 1;
  padding: 7px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(15, 11, 28, 0.9);
  filter: grayscale(1);
  opacity: 0.5;
  cursor: pointer;
  transition: opacity 210ms ease, filter 210ms ease, box-shadow 210ms ease;
}

.skill-star:nth-child(even) { transform: translateY(17px); }
.skill-star:nth-child(3n + 1) { transform: translateY(-16px); }

.skill-star.is-highlighted {
  border-color: var(--accent);
  filter: none;
  opacity: 1;
  box-shadow: 0 0 29px rgba(171, 137, 255, 0.57), inset 0 0 16px rgba(128, 243, 190, 0.13);
}

.skill-star img {
  display: block;
  width: 100%;
  max-width: 48px;
  max-height: 48px;
  object-fit: contain;
}

.skill-star img[src$="openai.svg"] {
  filter: invert(1);
}

.skill-star .skill-claude {
  width: 80%;
  max-width: 36px;
}

.skill-symbol {
  color: #e2efff;
  font-size: clamp(1.1rem, 3vw, 2.5rem);
}

.skill-terminal {
  font-size: clamp(0.9rem, 2.25vw, 1.85rem);
}

.skill-docker,
.skill-react {
  color: #62b6ff;
}

.skill-web {
  color: #ff916a;
}

.skill-pair {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
}

.skill-star .skill-pair img {
  width: calc(50% - 2px);
  max-height: 32px;
}

.skill-typescript {
  display: grid;
  width: 70%;
  max-width: 44px;
  aspect-ratio: 1;
  align-items: end;
  justify-items: end;
  padding: 0 5px 2px 0;
  border-radius: 4px;
  background: #3178c6;
  color: #fff;
  font-size: clamp(0.75rem, 2.2vw, 1.4rem);
  font-weight: 750;
  line-height: 1;
}

.skill-descriptions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 3.4vw, 40px);
}

.skill-descriptions article {
  min-width: 0;
  padding: 12px 4px 4px;
  border-top: 1px solid rgba(187, 161, 255, 0.22);
  transition: border-color 200ms ease;
}

.skill-descriptions article.is-highlighted {
  border-color: var(--accent);
}

.skill-descriptions h3 button {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.skill-descriptions .is-highlighted h3 {
  color: var(--accent);
}

.skill-descriptions article > p {
  font-size: 0.9rem;
}

.skill-descriptions .skill-tools {
  margin-top: 0.6em;
  color: var(--subtle);
  font: 500 0.82rem/1.65 var(--mono);
}

.project-carousel {
  --slots: 8;
  --track-gap: clamp(4px, 1vw, 12px);
  display: none;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(2px, 0.8vw, 9px);
  margin-bottom: 18px;
}

.portal-ready .project-carousel {
  display: grid;
}

.project-window {
  overflow: clip;
  padding-block: 14px 10px;
}

.project-track {
  display: flex;
  gap: var(--track-gap);
}

.project-track li {
  flex: 0 0 calc((100% - (var(--slots) - 1) * var(--track-gap)) / var(--slots));
  min-width: 0;
}

.project-track a {
  display: flex;
  min-height: 120px;
  flex-direction: column;
  align-items: center;
  justify-content: start;
  gap: 8px;
  color: var(--muted);
  text-align: center;
}

.project-disc {
  display: grid;
  width: min(83%, 78px);
  min-width: 36px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: radial-gradient(ellipse at 34% 24%, #223044, #080e16 78%);
  color: #e9eefb;
  filter: grayscale(1);
  opacity: 0.48;
  font-size: clamp(1rem, 3vw, 1.6rem);
  transition: opacity 210ms ease, filter 210ms ease, box-shadow 210ms ease;
}

.project-disc img {
  width: 67%;
  aspect-ratio: 1;
  border-radius: 12%;
  object-fit: contain;
}

.project-track a:hover .project-disc,
.project-track a:focus-visible .project-disc {
  opacity: 0.86;
}

.project-track a[aria-current] {
  color: var(--accent);
}

.project-track a[aria-current] .project-disc {
  border-color: var(--accent);
  box-shadow: 0 0 18px rgba(128, 243, 190, 0.36);
  filter: none;
  opacity: 1;
}

.project-name {
  font-size: 0.75rem;
  font-weight: 650;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.project-arrow {
  display: grid;
  width: 30px;
  height: 44px;
  margin-bottom: 31px;
  padding: 0;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--accent);
  font-size: 1.8rem;
  line-height: 0.7;
  cursor: pointer;
}

.project-arrow:hover {
  color: var(--text);
}

.project-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.45fr);
  align-items: center;
  gap: clamp(20px, 4vw, 52px);
  padding-bottom: clamp(18px, 3vw, 34px);
  scroll-margin-top: calc(var(--header-height) + 16px);
}

.project-panel:not([hidden]) ~ .project-panel:not([hidden]) {
  margin-top: clamp(20px, 4vw, 48px);
}

.project-visual {
  display: grid;
  width: 100%;
  min-width: 0;
  place-items: center;
  isolation: isolate;
}

#project-tree .project-visual img {
  border: 1px solid rgba(161, 209, 147, 0.25);
  border-radius: 12px;
}

.project-panel.is-selected .eyebrow::before {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}

.project-visual img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 460px;
  object-fit: contain;
}

.project-copy .eyebrow::before {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 9px;
  border: 1px solid var(--subtle);
  border-radius: 50%;
  vertical-align: 0.1em;
  content: "";
}

.project-copy h3 {
  margin: 0.13em 0 0.28em;
  font-size: clamp(1.85rem, 4.4vw, 3.55rem);
  line-height: 1;
  letter-spacing: -0.058em;
}

.project-copy > p {
  max-width: 62ch;
}

.project-copy p.project-stack {
  margin-top: 0.7em;
  color: var(--subtle);
}

.project-status {
  display: inline-block;
  margin-top: 0.75em;
  color: var(--subtle);
  font-size: 0.9rem;
}

.contact-details {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  row-gap: 26px;
}

.contact-item h3 {
  margin: 0 0 4px;
  font-size: 1rem;
}

.contact-item a {
  color: var(--accent);
  overflow-wrap: anywhere;
}

footer {
  padding: 26px 0;
  border-top: 1px solid var(--line);
  color: var(--subtle);
  font-size: 0.82rem;
}

@media (max-width: 950px) {
  .portal-ready .menu-toggle {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: #0a0e14;
    color: var(--text);
    cursor: pointer;
  }

  .portal-ready .nav-links {
    position: absolute;
    inset: 100% 0 auto;
    display: none;
    padding: 8px 18px 14px;
    border-bottom: 1px solid var(--line);
    background: #060a0f;
  }

  .menu-open .nav-links {
    display: grid;
  }

  .nav-links {
    flex-wrap: wrap;
    gap: 0 20px;
  }

  .project-carousel {
    --slots: 6;
  }

  .skill-stars {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    row-gap: 17px;
  }
}

@media (max-width: 620px) {
  :root {
    --header-height: 56px;
  }

  .container {
    width: calc(100% - 36px);
  }

  .hero {
    min-height: 550px;
  }

  .hero-layout {
    align-items: end;
    min-height: 435px;
  }

  .hero-copy {
    padding-bottom: 8px;
  }

  .hero-portrait {
    top: -18px;
    right: -12%;
    width: min(92vw, 382px);
    transform: none;
    mask-image: radial-gradient(ellipse 47% 48% at 56% 42%, #000 50%, transparent 100%);
    opacity: 0.76;
  }

  .hero h1 {
    max-width: none;
    font-size: clamp(3rem, 12vw, 4.4rem);
  }

  .hero .eyebrow {
    max-width: 30ch;
    font-size: 0.65rem;
  }

  .about-content {
    grid-template-columns: minmax(0, 1fr);
  }

  .about-text + .about-text {
    padding: 20px 0 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .project-carousel {
    --slots: 4;
  }

  .project-arrow {
    width: 26px;
  }

  .project-track a {
    min-height: 84px;
  }

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

  .experience-track {
    --date-column: 98px;
    --comet-axis: 6px;
    --comet-width: 68px;
  }

  .timeline-entry .timeline-period {
    width: 66px;
    max-width: 100%;
  }

  .skill-constellation::before {
    inset: -35px -12px -20px;
    background-size: 175% 100%;
    mask-image: radial-gradient(ellipse at center, #000 34%, #000d 62%, transparent 95%);
  }

  .skill-stars {
    padding-inline: 3px;
  }

  .skill-descriptions {
    gap: 14px 10px;
  }

  .skill-descriptions h3 {
    font-size: 0.95rem;
  }

  .skill-descriptions .skill-tools {
    font-size: 0.72rem;
    overflow-wrap: anywhere;
  }

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

@media (max-width: 380px) {
  .project-carousel {
    --slots: 3;
  }

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

@media (prefers-reduced-motion: reduce) {
  .portal-entry,
  .portal-core,
  .orbit-pill,
  .skill-star,
  .project-disc,
  .timeline-entry::before,
  [data-reveal] > * {
    transition: none !important;
  }

  .portal-star,
  .cursor-star {
    animation: none;
  }

  .cursor-stars,
  .experience-comet {
    display: none;
  }

  .has-reveals .timeline-entry:not(.is-visible)::before,
  .has-reveals [data-reveal]:not(.is-visible) > * {
    opacity: 1;
    transform: none;
  }
}
