:root {
  --ink: #f4f7fb;
  --muted: #9aabbd;
  --night: #07111f;
  --night-soft: #0c1a2b;
  --line: rgba(255, 255, 255, 0.12);
  --cyan: #58e5e1;
  --orange: #ff7b4d;
  --max-width: 1180px;
  --radius: 1.5rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 80% 8%, rgba(88, 229, 225, 0.11), transparent 24rem),
    var(--night);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.7rem 1rem;
  color: var(--night);
  background: var(--cyan);
  border-radius: 0.5rem;
  transform: translateY(-150%);
}

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

.site-header,
main,
footer {
  width: min(calc(100% - 3rem), var(--max-width));
  margin-inline: auto;
}

.site-header {
  min-height: 6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-mark {
  width: 2.5rem;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  color: var(--night);
  background: var(--cyan);
  border-radius: 50%;
  font-size: 0.72rem;
}

.accent {
  color: var(--orange);
}

.navigation {
  display: flex;
  gap: clamp(1.25rem, 3vw, 2.5rem);
}

.navigation a,
footer a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 650;
  transition: color 180ms ease;
}

.navigation a:hover,
.navigation a:focus-visible,
footer a:hover,
footer a:focus-visible {
  color: var(--cyan);
}

.menu-button {
  display: none;
  width: 2.8rem;
  height: 2.8rem;
  padding: 0.65rem;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 0.75rem;
}

.menu-button span:not(.sr-only) {
  display: block;
  height: 2px;
  margin: 0.28rem 0;
  background: var(--ink);
  transition: transform 180ms ease, opacity 180ms ease;
}

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

.hero {
  min-height: calc(100vh - 6rem);
  min-height: calc(100svh - 6rem);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  align-items: center;
  gap: clamp(3rem, 8vw, 7rem);
  padding-block: 5rem;
}

.eyebrow,
.section-number {
  margin: 0 0 1.2rem;
  color: var(--cyan);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 1.5rem;
  font-size: clamp(3.1rem, 7.5vw, 6.8rem);
  line-height: 0.92;
  letter-spacing: -0.065em;
}

h1 span {
  color: transparent;
  -webkit-text-stroke: 1px rgba(244, 247, 251, 0.72);
}

.hero-text {
  max-width: 610px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 2.25rem;
}

.button {
  min-height: 3.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.button-primary {
  color: var(--night);
  background: var(--cyan);
  box-shadow: 0 0 0 rgba(88, 229, 225, 0);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(88, 229, 225, 0.2);
}

.text-link {
  padding: 0.75rem 0;
  font-weight: 750;
  border-bottom: 1px solid var(--line);
}

.hero-visual {
  position: relative;
  min-height: 430px;
  display: grid;
  place-items: center;
}

.hero-visual::before {
  content: "";
  position: absolute;
  width: min(78vw, 24rem);
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--cyan), #2b7dbd 62%, var(--orange));
  border-radius: 46% 54% 62% 38% / 40% 45% 55% 60%;
  filter: saturate(0.85);
  animation: morph 9s ease-in-out infinite alternate;
}

.orbit {
  position: absolute;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.orbit-one {
  width: 100%;
  aspect-ratio: 1;
}

.orbit-two {
  width: 78%;
  aspect-ratio: 1;
}

.visual-card {
  position: relative;
  z-index: 1;
  width: min(82%, 20rem);
  padding: 1.5rem;
  background: rgba(7, 17, 31, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 1.25rem;
  box-shadow: 0 2rem 5rem rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(16px);
  transform: rotate(-5deg);
}

.visual-card strong,
.visual-card small {
  display: block;
}

.visual-card strong {
  margin: 2.5rem 0 0.35rem;
  font-size: clamp(1.7rem, 5vw, 2.6rem);
  letter-spacing: -0.05em;
}

.visual-card small,
.code-label {
  color: var(--muted);
}

.section {
  padding-block: clamp(5rem, 10vw, 9rem);
  border-top: 1px solid var(--line);
}

.about {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(3rem, 9vw, 9rem);
}

h2 {
  margin-bottom: 1.5rem;
  font-size: clamp(2.3rem, 5vw, 4.6rem);
  line-height: 1.03;
  letter-spacing: -0.05em;
}

.about-copy {
  color: var(--muted);
  font-size: 1.08rem;
}

.about-copy strong {
  color: var(--ink);
}

.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  padding: 0;
  margin: 2rem 0 0;
  list-style: none;
}

.skills li {
  padding: 0.55rem 0.9rem;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 700;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 3rem;
}

.section-heading h2 {
  margin-bottom: 0;
}

.section-heading > p {
  max-width: 18rem;
  color: var(--muted);
}

.project-grid {
  display: grid;
  grid-template-columns: 1.45fr 0.55fr;
  gap: 1.25rem;
}

.project-card {
  min-height: 430px;
  overflow: hidden;
  background: var(--night-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.project-card > a {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.project-preview {
  position: relative;
  min-height: 320px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #102943, #0f686b);
}

.project-index {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.85rem;
  font-weight: 800;
}

.browser-window {
  width: 70%;
  min-width: 230px;
  padding: 0.8rem;
  background: #e8f2f4;
  border-radius: 0.8rem;
  box-shadow: 0 2rem 4rem rgba(0, 0, 0, 0.3);
  transform: rotate(4deg) translateY(1rem);
  transition: transform 300ms ease;
}

.project-card a:hover .browser-window,
.project-card a:focus-visible .browser-window {
  transform: rotate(0) translateY(0) scale(1.03);
}

.browser-window > span {
  display: inline-block;
  width: 0.55rem;
  aspect-ratio: 1;
  margin-right: 0.25rem;
  background: var(--orange);
  border-radius: 50%;
}

.browser-window > span:nth-child(2) {
  background: #efc956;
}

.browser-window > span:nth-child(3) {
  background: #55bd79;
}

.browser-content {
  min-height: 150px;
  display: grid;
  place-items: center;
  margin-top: 0.65rem;
  color: var(--night);
  background: linear-gradient(140deg, #bce9e4, #f5f9fa);
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.06em;
}

.project-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem;
}

.project-info p {
  margin-bottom: 0.2rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.project-info h3 {
  margin-bottom: 0;
  font-size: 1.5rem;
}

.project-arrow {
  font-size: 1.75rem;
}

.project-card-soon {
  min-height: 100%;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: repeating-linear-gradient(-45deg, transparent, transparent 12px, rgba(255, 255, 255, 0.025) 12px, rgba(255, 255, 255, 0.025) 24px);
  border-style: dashed;
  text-align: center;
}

.project-card-soon span {
  font-size: 3rem;
  font-weight: 850;
}

.contact {
  text-align: center;
}

.contact h2 {
  margin-bottom: 1rem;
}

.contact > p:not(.section-number) {
  max-width: 36rem;
  margin: 0 auto 2rem;
  color: var(--muted);
}

footer {
  min-height: 6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

footer p {
  margin: 0;
}

@keyframes morph {
  from { border-radius: 46% 54% 62% 38% / 40% 45% 55% 60%; transform: rotate(-4deg); }
  to { border-radius: 60% 40% 42% 58% / 55% 60% 40% 45%; transform: rotate(5deg); }
}

@media (max-width: 800px) {
  .site-header,
  main,
  footer {
    width: min(calc(100% - 2rem), var(--max-width));
  }

  .site-header {
    min-height: 4.75rem;
  }

  .menu-button {
    display: block;
    position: relative;
    z-index: 11;
  }

  .menu-button[aria-expanded="true"] span:nth-of-type(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .menu-button[aria-expanded="true"] span:nth-of-type(2) {
    opacity: 0;
  }

  .menu-button[aria-expanded="true"] span:nth-of-type(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .navigation {
    position: fixed;
    inset: 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    background: rgba(7, 17, 31, 0.98);
    visibility: hidden;
    opacity: 0;
    transition: opacity 180ms ease, visibility 180ms ease;
  }

  .navigation.open {
    visibility: visible;
    opacity: 1;
  }

  .navigation a {
    color: var(--ink);
    font-size: 1.6rem;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-block: 4.5rem;
  }

  .hero-visual {
    min-height: 330px;
  }

  .hero-visual::before {
    width: min(82vw, 19rem);
  }

  .orbit-one {
    width: min(95%, 23rem);
  }

  .orbit-two {
    width: min(72%, 18rem);
  }

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

  .project-card-soon {
    min-height: 180px;
  }

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

@media (max-width: 480px) {
  h1 {
    font-size: clamp(2.75rem, 14vw, 4rem);
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .text-link {
    align-self: flex-start;
  }

  .project-preview {
    min-height: 260px;
  }

  .browser-window {
    width: 82%;
    min-width: 0;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
  }
}

@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;
  }
}