:root {
  --bg: #07090f;
  --surface: #0d111a;
  --surface-2: #121826;
  --text: #f6f8fb;
  --muted: #a8b0c2;
  --soft: #d9e1ef;
  --line: rgba(255, 255, 255, 0.12);
  --blue: #24d9ff;
  --purple: #9a72ff;
  --pink: #ff7ab8;
  --red: #ff4658;
  --mint: #04c78f;
  --green: #38f7b2;
  --radius: 8px;
  --max-width: 1040px;
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 0% 8%, rgba(36, 217, 255, 0.12), transparent 30rem),
    radial-gradient(circle at 85% 18%, rgba(154, 114, 255, 0.08), transparent 26rem),
    linear-gradient(180deg, #07090f 0%, #0a0d14 45%, #07090f 100%);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

body.nav-open {
  overflow: hidden;
}

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

button,
input,
textarea {
  font: inherit;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin: 0 auto;
  padding: 18px 32px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: rgba(7, 9, 15, 0.84);
  backdrop-filter: blur(18px);
  box-shadow: none;
  transition: background 180ms ease, border-color 180ms ease;
}

.site-header.is-scrolled {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(7, 9, 15, 0.94);
}

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

.brand {
  gap: 10px;
  font-weight: 900;
}

.brand-mark {
  display: none;
}

.site-nav {
  gap: 8px;
}

.site-nav a {
  min-height: 40px;
  padding: 9px 12px;
  border-radius: 7px;
  color: var(--soft);
  font-size: 0.9rem;
  font-weight: 800;
  transition: background 180ms ease, color 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  outline: none;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.section {
  width: min(var(--max-width), calc(100% - 32px));
  margin-inline: auto;
  padding: 88px 0;
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 650px;
  padding-top: 98px;
  padding-bottom: 84px;
  text-align: left;
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(620px, 100%);
  margin-left: clamp(0px, 13vw, 150px);
}

.intro-kicker {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 1.35rem;
  font-weight: 900;
}

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

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
}

h1 {
  color: var(--mint);
  font-size: clamp(2.7rem, 5.2vw, 4.4rem);
  font-weight: 900;
}

h2 {
  max-width: 760px;
  font-size: clamp(1.9rem, 4vw, 3.35rem);
  font-weight: 900;
}

h3 {
  font-size: 1.28rem;
  font-weight: 900;
}

.hero-subtitle,
.section-body > p,
.project-row > p,
.contact-copy p,
.where-panel p {
  color: var(--muted);
  font-size: 1.04rem;
}

.hero-subtitle {
  max-width: 520px;
  margin: 20px 0 0;
  color: var(--text);
  font-size: 1.18rem;
  line-height: 1.45;
}

.hero-role {
  margin: 8px 0 0;
  color: var(--text);
  font-size: 1.24rem;
  font-weight: 600;
}

.hero-role span {
  display: inline-block;
  min-width: min(100%, 26ch);
  font-weight: 900;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.hero-role span::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 3px;
  background: var(--mint);
  vertical-align: -0.12em;
  animation: blink 0.8s steps(2, start) infinite;
}

.hero-actions {
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button,
.icon-link,
.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 7px;
  font-weight: 900;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button {
  border: 1px solid transparent;
  padding: 12px 18px;
}

.button:hover,
.button:focus-visible,
.icon-link:hover,
.icon-link:focus-visible,
.social-links a:hover,
.social-links a:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.button-primary {
  background: var(--text);
  color: #031018;
}

.icon-link,
.social-links a {
  border: 1px solid var(--line);
  padding: 10px 13px;
  color: var(--text);
}

.icon-link:hover,
.social-links a:hover {
  border-color: rgba(36, 217, 255, 0.42);
  background: rgba(36, 217, 255, 0.08);
}

.hero-dot {
  position: absolute;
  display: block;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 12px 24px rgba(255, 70, 88, 0.22);
  opacity: 0.98;
  will-change: transform;
}

.dot-one {
  top: 98px;
  left: 32px;
}

.dot-two {
  top: 192px;
  left: 19%;
}

.dot-three {
  top: 224px;
  left: 27%;
}

.dot-four {
  right: 20%;
  bottom: 140px;
}

.dot-five {
  top: 72px;
  right: 28%;
  width: 38px;
  height: 38px;
}

.split-section {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 46px;
  border-top: 1px solid var(--line);
}

.section-label {
  position: sticky;
  top: 112px;
  align-self: start;
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.section-body {
  min-width: 0;
}

.section-body > p {
  max-width: 820px;
  margin: 20px 0 0;
}

.stack-panel {
  margin-top: 34px;
}

.stack-panel h3 {
  margin-bottom: 16px;
}

.stack-marquee {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
}

.stack-marquee::before,
.stack-marquee::after {
  content: "";
  position: absolute;
  z-index: 1;
  top: 0;
  bottom: 0;
  width: 80px;
  pointer-events: none;
}

.stack-marquee::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg), transparent);
}

.stack-marquee::after {
  right: 0;
  background: linear-gradient(270deg, var(--bg), transparent);
}

.stack-track {
  display: flex;
  width: max-content;
  gap: 10px;
  padding: 16px;
  animation: marquee 26s linear infinite;
}

.stack-track span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--soft);
  font-size: 0.88rem;
  font-weight: 800;
  white-space: nowrap;
}

.resume-item,
.project-row,
.where-panel,
.contact-form {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(13, 17, 26, 0.72);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
}

.resume-item {
  display: grid;
  grid-template-columns: minmax(180px, 0.36fr) minmax(0, 1fr);
  gap: 24px;
  padding: 24px;
}

.resume-item + .resume-item,
.project-row + .project-row {
  margin-top: 18px;
}

.item-meta,
.project-type {
  margin: 8px 0 0;
  color: var(--blue);
  font-size: 0.92rem;
  font-weight: 800;
}

.resume-item ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.resume-item li + li {
  margin-top: 10px;
}

.project-row {
  display: grid;
  grid-template-columns: minmax(190px, 0.32fr) minmax(0, 1fr);
  gap: 22px;
  padding: 24px;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.project-row:hover {
  transform: translateY(-4px);
  border-color: rgba(36, 217, 255, 0.36);
  background: rgba(18, 24, 38, 0.82);
}

.project-row > p {
  margin: 0;
}

.tag-row {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.where-panel {
  padding: 28px;
  background:
    linear-gradient(135deg, rgba(36, 217, 255, 0.08), transparent 46%),
    rgba(13, 17, 26, 0.72);
}

.where-panel h2 {
  max-width: 880px;
}

.where-panel p:last-child {
  max-width: 760px;
  margin-bottom: 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.72fr) minmax(300px, 0.6fr);
  gap: 28px;
}

.contact-copy p {
  max-width: 600px;
}

.social-links {
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.contact-form {
  display: grid;
  gap: 14px;
  padding: 22px;
}

.hidden-field {
  display: none;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 850;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
  outline: none;
}

.contact-form input {
  min-height: 48px;
  padding: 0 13px;
}

.contact-form textarea {
  min-height: 138px;
  padding: 12px 13px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(36, 217, 255, 0.56);
  box-shadow: 0 0 0 4px rgba(36, 217, 255, 0.1);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(var(--max-width), calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 44px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--text);
  font-weight: 850;
}

.message-page {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 24px;
}

.message-card {
  width: min(680px, 100%);
  padding: clamp(28px, 6vw, 56px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(13, 17, 26, 0.82);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
}

.message-card h1 {
  color: var(--mint);
  font-size: clamp(2.4rem, 8vw, 4.6rem);
}

.message-card p:not(.intro-kicker) {
  max-width: 540px;
  margin: 18px 0 28px;
  color: var(--muted);
  font-size: 1.05rem;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 860px) {
  .split-section,
  .resume-item,
  .project-row,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .section-label {
    position: static;
  }

  .tag-row {
    grid-column: auto;
  }
}

@media (max-width: 720px) {
  .site-header {
    inset: 0 0 auto;
    width: 100%;
    padding: 12px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    top: 66px;
    left: 12px;
    right: 12px;
    display: grid;
    gap: 8px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(7, 9, 15, 0.96);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 180ms ease, visibility 180ms ease, transform 180ms ease;
  }

  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .section {
    width: calc(100% - 24px);
    padding: 66px 0;
  }

  .hero {
    min-height: auto;
    padding-top: 110px;
    padding-bottom: 72px;
  }

  .hero-copy {
    margin-left: 0;
  }

  h1 {
    font-size: clamp(2.35rem, 12vw, 3.75rem);
  }

  h2 {
    font-size: clamp(1.75rem, 9vw, 2.6rem);
  }

  .hero-subtitle,
  .section-body > p,
  .project-row > p,
  .contact-copy p,
  .where-panel p {
    font-size: 1rem;
  }

  .intro-kicker,
  .hero-role {
    font-size: 1.06rem;
  }

  .dot-one {
    top: 92px;
    left: 18px;
  }

  .dot-two {
    top: 190px;
    left: auto;
    right: 22px;
  }

  .dot-three {
    display: none;
  }

  .dot-four {
    right: 32px;
    bottom: 56px;
  }

  .dot-five {
    top: 150px;
    right: 42%;
  }

  .resume-item,
  .project-row,
  .where-panel,
  .contact-form {
    padding: 20px;
  }

  .site-footer {
    width: calc(100% - 24px);
    flex-direction: column;
    align-items: flex-start;
  }
}

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