:root {
  --ink: #070a0b;
  --paper: #f2f4ef;
  --muted: #9ca39d;
  --line: rgba(242, 244, 239, 0.16);
  --lime: #d8ff45;
  --pointer-x: 50vw;
  --pointer-y: 30vh;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--ink);
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: "Arial Nova", "Helvetica Neue", Arial, sans-serif;
  text-rendering: optimizeLegibility;
}

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

::selection {
  color: var(--ink);
  background: var(--lime);
}

.site-shell {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    var(--ink);
  background-size: 64px 64px;
}

.ambient-glow {
  position: fixed;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    420px circle at var(--pointer-x) var(--pointer-y),
    rgba(216, 255, 69, 0.075),
    transparent 72%
  );
}

.site-header,
.section-wrap {
  position: relative;
  z-index: 1;
  width: min(100% - 48px, 1320px);
  margin-inline: auto;
}

.site-header {
  height: 90px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.brand {
  width: fit-content;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.06em;
}

.brand span {
  color: var(--lime);
}

.site-header nav {
  display: flex;
  gap: 2.25rem;
}

.site-header nav a {
  position: relative;
  color: #c6cbc6;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.site-header nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 1px;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 220ms ease;
}

.site-header nav a:hover::after,
.site-header nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.availability {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.74rem;
  color: #c6cbc6;
}

.availability span {
  width: 7px;
  aspect-ratio: 1;
  border-radius: 999px;
  background: var(--lime);
  box-shadow: 0 0 0 5px rgba(216, 255, 69, 0.1);
  animation: pulse 2.4s ease-in-out infinite;
}

.hero {
  min-height: calc(100svh - 90px);
  padding: 42px 0 56px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  isolation: isolate;
}

.hero-kicker,
.hero-footer,
.section-label,
.focus-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero-kicker {
  font-size: 0.7rem;
  color: #aeb4af;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.kicker-index {
  color: #6e766f;
}

.hero-copy {
  align-self: center;
  padding: 8vh 0;
}

.eyebrow {
  margin: 0 0 1.75rem;
  color: var(--lime);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1 {
  position: relative;
  z-index: 2;
  max-width: 1040px;
  margin: 0;
  font-size: clamp(4.2rem, 8.7vw, 9.2rem);
  font-weight: 700;
  line-height: 0.82;
  letter-spacing: -0.075em;
}

.hero h1 span {
  display: block;
}

.outline-word {
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(242, 244, 239, 0.72);
}

.hero h1 em {
  color: var(--lime);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

.hero-footer {
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.hero-footer p {
  max-width: 530px;
  margin: 0;
  color: #b7bdb7;
  font-size: clamp(0.95rem, 1.4vw, 1.15rem);
  line-height: 1.6;
}

.round-link {
  width: 58px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid rgba(216, 255, 69, 0.45);
  border-radius: 50%;
  color: var(--lime);
  transition: color 220ms ease, background 220ms ease, transform 220ms ease;
}

.round-link:hover,
.round-link:focus-visible {
  color: var(--ink);
  background: var(--lime);
  transform: rotate(-8deg);
}

.round-link svg {
  width: 20px;
}

.hero-portrait {
  position: absolute;
  z-index: 1;
  right: 1.5vw;
  top: 13%;
  width: clamp(320px, 31vw, 455px);
  margin: 0;
  filter: drop-shadow(0 32px 70px rgba(0, 0, 0, 0.45));
}

.portrait-stage {
  position: relative;
  aspect-ratio: 0.82;
  overflow: hidden;
  border: 1px solid rgba(216, 255, 69, 0.24);
  border-radius: 48% 48% 24px 24px;
  background:
    radial-gradient(circle at 55% 30%, rgba(216, 255, 69, 0.16), transparent 34%),
    linear-gradient(155deg, #151b18 0%, #090c0d 70%);
  isolation: isolate;
}

.portrait-stage::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  background:
    linear-gradient(rgba(216, 255, 69, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(216, 255, 69, 0.055) 1px, transparent 1px);
  background-size: 34px 34px;
  -webkit-mask-image: linear-gradient(to bottom, black, transparent 80%);
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}

.portrait-stage img {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: -1%;
  width: 112%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  transform: translateX(-50%);
  filter: saturate(0.9) contrast(1.04);
}

.portrait-halo {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 43%;
  width: 72%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(216, 255, 69, 0.08);
  box-shadow:
    0 0 0 1px rgba(216, 255, 69, 0.22),
    0 0 80px rgba(216, 255, 69, 0.15);
}

.hero-portrait figcaption {
  display: flex;
  justify-content: space-between;
  padding: 12px 3px 0;
  color: #737b74;
  font-family: var(--font-mono, monospace);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.portrait-stage .orbit {
  position: absolute;
  z-index: 2;
  inset: 0;
  border: 1px solid rgba(216, 255, 69, 0.19);
  border-radius: 47% 53% 52% 48%;
}

.orbit-one {
  animation: orbit 14s linear infinite;
}

.orbit-two {
  inset: 12%;
  border-color: rgba(242, 244, 239, 0.13);
  animation: orbit 11s linear infinite reverse;
}

.about,
.work,
.skills,
.journey {
  padding: 128px 0;
  border-top: 1px solid var(--line);
}

.section-label {
  width: 100%;
  gap: 0.8rem;
  justify-content: flex-start;
  color: #838b84;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.section-label span {
  color: var(--lime);
}

.section-label p {
  margin: 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 10vw;
  margin-top: 70px;
}

.about-grid h2,
.section-heading h2 {
  margin: 0;
  font-size: clamp(2.6rem, 4.8vw, 5.5rem);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.about-copy {
  align-self: end;
}

.about-copy > p {
  margin: 0 0 1.2rem;
  color: #b5bbb5;
  font-size: 1rem;
  line-height: 1.75;
}

.about-copy > p:first-child {
  color: var(--paper);
  font-size: 1.28rem;
  line-height: 1.55;
}

.focus-row {
  margin-top: 38px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: #7e867f;
  font-family: var(--font-mono, monospace);
  font-size: 0.67rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.section-heading {
  display: grid;
  grid-template-columns: 0.55fr 1fr;
  align-items: end;
  margin-bottom: 72px;
}

.section-heading h2 {
  max-width: 760px;
}

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

.project-card {
  min-height: 620px;
  display: grid;
  grid-template-rows: 1.1fr 0.9fr;
  overflow: hidden;
  background: #101415;
  border: 1px solid var(--line);
}

.project-visual {
  position: relative;
  min-height: 310px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #080b0c;
}

.project-visual::before,
.project-visual::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(7, 10, 11, 0.22);
  border-radius: 50%;
}

.project-visual::before {
  width: 70%;
  aspect-ratio: 1;
}

.project-visual::after {
  width: 46%;
  aspect-ratio: 1;
}

.project-visual.lime {
  background: #d8ff45;
}

.project-visual.blue {
  background: #83c9ff;
}

.project-visual.violet {
  background: #b9a3ff;
}

.project-visual.orange {
  background: #ffad66;
}

.project-number,
.visual-caption {
  position: absolute;
  z-index: 2;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.project-number {
  left: 24px;
  top: 22px;
}

.visual-caption {
  right: 24px;
  bottom: 22px;
}

.project-symbol {
  z-index: 2;
  width: 104px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid rgba(7, 10, 11, 0.55);
  border-radius: 50%;
  background: rgba(242, 244, 239, 0.22);
  backdrop-filter: blur(8px);
  transition: transform 350ms cubic-bezier(0.22, 1, 0.36, 1);
}

.project-symbol svg {
  width: 38px;
  height: 38px;
  stroke-width: 1.5;
}

.project-card:hover .project-symbol {
  transform: rotate(8deg) scale(1.1);
}

.project-content {
  position: relative;
  padding: 32px;
}

.project-type {
  margin: 0 0 1rem;
  color: var(--lime);
  font-size: 0.67rem;
  text-transform: uppercase;
  letter-spacing: 0.13em;
}

.project-content h3 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.project-description {
  max-width: 510px;
  margin: 1.25rem 0;
  color: #aab1aa;
  font-size: 0.92rem;
  line-height: 1.65;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag-list span {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #adb3ad;
  font-size: 0.66rem;
}

.project-arrow {
  position: absolute;
  right: 28px;
  top: 28px;
  color: #606862;
  transition: color 220ms ease, transform 220ms ease;
}

.project-card:hover .project-arrow {
  color: var(--lime);
  transform: translate(3px, -3px);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.skill-group {
  min-height: 360px;
  padding: 30px;
  border-right: 1px solid var(--line);
  transition: background 240ms ease;
}

.skill-group:last-child {
  border-right: 0;
}

.skill-group:hover {
  background: rgba(216, 255, 69, 0.035);
}

.skill-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #717971;
  font-family: var(--font-mono, monospace);
  font-size: 0.68rem;
}

.skill-head svg {
  width: 22px;
  color: var(--lime);
  stroke-width: 1.4;
}

.skill-group h3 {
  margin: 74px 0 32px;
  font-size: clamp(2.2rem, 4vw, 4rem);
  font-weight: 600;
  letter-spacing: -0.06em;
}

.skill-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-cloud span {
  padding: 8px 11px;
  border-radius: 999px;
  color: #abb2ac;
  background: rgba(255, 255, 255, 0.045);
  font-size: 0.72rem;
}

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

.timeline-row {
  display: grid;
  grid-template-columns: 64px 0.55fr 1fr auto;
  gap: 28px;
  align-items: start;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}

.timeline-mark {
  width: 42px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--lime);
}

.timeline-mark svg {
  width: 18px;
  stroke-width: 1.5;
}

.timeline-year,
.timeline-type {
  margin: 12px 0 0;
  color: #7f877f;
  font-family: var(--font-mono, monospace);
  font-size: 0.67rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.timeline-row h3 {
  margin: 6px 0 10px;
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: -0.025em;
}

.timeline-row div > p {
  max-width: 650px;
  margin: 0;
  color: #969e97;
  font-size: 0.9rem;
  line-height: 1.65;
}

.contact {
  margin-top: 72px;
  padding: 104px 0 46px;
  border-top: 1px solid var(--line);
}

.contact-meta {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: #9ca49d;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.contact-meta p {
  margin: 0;
}

.status-dot {
  width: 7px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 5px rgba(216, 255, 69, 0.09);
}

.contact h2 {
  margin: 64px 0 90px;
  max-width: 1180px;
  font-size: clamp(4rem, 9vw, 9.5rem);
  font-weight: 600;
  line-height: 0.82;
  letter-spacing: -0.08em;
}

.contact h2 span {
  display: block;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(242, 244, 239, 0.58);
}

.contact-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 40px;
  align-items: end;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.contact-bottom > div {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #aeb5af;
  font-size: 0.82rem;
}

.contact-bottom > div svg {
  width: 16px;
  color: var(--lime);
}

.contact-bottom > p {
  max-width: 410px;
  margin: 0;
  color: #7d857e;
  font-size: 0.8rem;
  line-height: 1.6;
}

.round-link.large {
  width: 70px;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  align-items: center;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  color: #626a63;
  font-size: 0.67rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: #b0b6b1;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  animation: reveal 780ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.delay-1 { animation-delay: 90ms; }
.delay-2 { animation-delay: 180ms; }
.delay-3 { animation-delay: 300ms; }

@keyframes reveal {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes orbit {
  to { transform: rotate(360deg); }
}

@keyframes pulse {
  50% { box-shadow: 0 0 0 8px rgba(216, 255, 69, 0.02); }
}

@media (max-width: 900px) {
  .site-header,
  .section-wrap {
    width: min(100% - 32px, 1320px);
  }

  .hero h1 {
    font-size: clamp(3.8rem, 12vw, 7rem);
  }

  .hero-portrait {
    top: 19%;
    right: -6vw;
    width: min(42vw, 360px);
    opacity: 0.78;
  }

  .about-grid,
  .section-heading {
    grid-template-columns: 1fr;
    gap: 52px;
  }

  .project-card {
    min-height: 540px;
  }

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

  .skill-group {
    min-height: 280px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .skill-group:last-child {
    border-bottom: 0;
  }

  .skill-group h3 {
    margin-top: 44px;
  }
}

@media (max-width: 680px) {
  .site-header {
    height: 76px;
    grid-template-columns: 1fr auto;
  }

  .site-header nav {
    display: none;
  }

  .availability {
    font-size: 0.68rem;
  }

  .hero {
    min-height: calc(100svh - 76px);
    padding-top: 28px;
  }

  .hero-kicker .kicker-index {
    display: none;
  }

  .hero-copy {
    padding: 10vh 0 7vh;
  }

  .hero h1 {
    font-size: clamp(3.35rem, 18vw, 5.5rem);
  }

  .hero-footer {
    align-items: flex-end;
    gap: 22px;
  }

  .hero-footer p {
    font-size: 0.88rem;
  }

  .round-link {
    flex: 0 0 50px;
  }

  .hero-portrait {
    width: 245px;
    right: -70px;
    top: 31%;
    opacity: 0.62;
  }

  .hero-portrait figcaption {
    display: none;
  }

  .about,
  .work,
  .skills,
  .journey {
    padding: 88px 0;
  }

  .about-grid {
    margin-top: 48px;
  }

  .about-copy > p:first-child {
    font-size: 1.08rem;
  }

  .focus-row {
    align-items: flex-start;
    gap: 10px;
    font-size: 0.56rem;
  }

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

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

  .project-card {
    min-height: 500px;
  }

  .project-content {
    padding: 26px 22px;
  }

  .project-arrow {
    right: 22px;
    top: 24px;
  }

  .timeline-row {
    grid-template-columns: 42px 1fr;
    gap: 12px 18px;
  }

  .timeline-year,
  .timeline-type {
    grid-column: 2;
    margin-top: 0;
  }

  .timeline-type {
    display: none;
  }

  .contact {
    margin-top: 24px;
    padding-top: 80px;
  }

  .contact h2 {
    margin: 50px 0 64px;
    font-size: clamp(3.7rem, 17vw, 6rem);
  }

  .contact-bottom {
    grid-template-columns: 1fr auto;
    gap: 24px;
  }

  .contact-bottom > p {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .round-link.large {
    grid-column: 2;
    grid-row: 1;
    width: 56px;
  }

  .site-footer {
    grid-template-columns: 1fr auto;
    gap: 10px;
  }

  .site-footer p:nth-child(2) {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
