:root {
  color-scheme: dark;
  --bg: #070a12;
  --surface: #0d111d;
  --surface-raised: #111827;
  --text: #f5f7fb;
  --muted: #9ba7bd;
  --line: rgba(255, 255, 255, 0.11);
  --accent: #9cf8d2;
  --accent-strong: #5ce4b0;
  --max-width: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 74% 5%, rgba(68, 93, 166, 0.18), transparent 28rem),
    radial-gradient(circle at 10% 28%, rgba(45, 212, 191, 0.07), transparent 24rem),
    var(--bg);
  color: var(--text);
  font-family: "DM Sans", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 20;
  padding: 0.65rem 0.9rem;
  background: var(--text);
  color: var(--bg);
  border-radius: 0.35rem;
  transform: translateY(-150%);
}

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

.site-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 3rem), var(--max-width));
  margin: 0 auto;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}

.identity {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: "Manrope", sans-serif;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.identity-mark {
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  border: 1px solid rgba(156, 248, 210, 0.45);
  border-radius: 50%;
  color: var(--accent);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

nav a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 180ms ease;
}

nav a:hover,
nav a:focus-visible {
  color: var(--text);
}

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

.intro {
  min-height: 72vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 7rem 0 6rem;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 1.5rem;
  color: var(--accent);
  font-size: 0.77rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow span {
  width: 1.8rem;
  height: 1px;
  background: currentColor;
}

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

h1,
h2,
h3 {
  font-family: "Manrope", sans-serif;
}

h1 {
  max-width: 1000px;
  margin-bottom: 2rem;
  font-size: clamp(3rem, 8vw, 7.3rem);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.065em;
}

h1 em {
  color: transparent;
  font-style: normal;
  -webkit-text-stroke: 1px rgba(245, 247, 251, 0.48);
}

.intro-copy {
  max-width: 600px;
  margin-bottom: 2rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.text-link,
.project-link {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

.text-link span,
.project-link span {
  color: var(--accent);
  transition: transform 180ms ease;
}

.text-link:hover span {
  transform: translateY(0.2rem);
}

.project-link:hover span {
  transform: translate(0.15rem, -0.15rem);
}

.projects-section {
  padding: 6rem 0 8rem;
  border-top: 1px solid var(--line);
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr minmax(240px, 0.45fr);
  gap: 3rem;
  align-items: end;
  margin-bottom: 3rem;
}

.section-heading .eyebrow {
  margin-bottom: 0.85rem;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2.25rem, 5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.section-heading > p {
  max-width: 360px;
  margin: 0 0 0.4rem;
  color: var(--muted);
}

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

.project-card {
  overflow: hidden;
  background: linear-gradient(145deg, rgba(17, 24, 39, 0.98), rgba(10, 14, 24, 0.98));
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  transition: transform 250ms ease, border-color 250ms ease, box-shadow 250ms ease;
}

.project-card:hover {
  transform: translateY(-0.3rem);
  border-color: rgba(156, 248, 210, 0.28);
  box-shadow: 0 1.6rem 4rem rgba(0, 0, 0, 0.24);
}

.project-card--featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.42fr 0.9fr;
}

.project-card--featured .project-image {
  min-height: 31rem;
}

.project-card--featured .project-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 4vw, 4rem);
}

.project-image {
  position: relative;
  min-height: 20rem;
  overflow: hidden;
  background: #090d16;
}

.project-image::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7, 10, 18, 0.42), transparent 48%);
  content: "";
  pointer-events: none;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 700ms cubic-bezier(0.2, 0.75, 0.3, 1);
}

.project-card:hover .project-image img {
  transform: scale(1.025);
}

.project-index {
  position: absolute;
  z-index: 1;
  top: 1rem;
  left: 1rem;
  padding: 0.35rem 0.62rem;
  background: rgba(7, 10, 18, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  backdrop-filter: blur(10px);
  color: #dbe3f2;
  font-family: "Manrope", sans-serif;
  font-size: 0.73rem;
  font-weight: 700;
}

.project-body {
  padding: 1.6rem;
}

.project-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.project-title-row h3 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -0.04em;
}

.project-status {
  flex: 0 0 auto;
  padding: 0.28rem 0.58rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.project-status--live {
  border-color: rgba(92, 228, 176, 0.35);
  color: var(--accent);
}

.project-status--private {
  border-color: rgba(168, 137, 255, 0.38);
  color: #c9b8ff;
}

.project-body > p {
  margin-bottom: 1.4rem;
  color: var(--muted);
  font-size: 1.04rem;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.45rem;
}

.project-meta span {
  padding: 0.35rem 0.62rem;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 0.35rem;
  color: #b9c3d5;
  font-size: 0.76rem;
}

.project-link {
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}

.footer-meta {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
}

.footer-admin {
  color: inherit;
  font-size: 0.78rem;
  opacity: 0.55;
  text-decoration: none;
  transition: color 180ms ease, opacity 180ms ease;
}

.footer-admin:hover,
.footer-admin:focus-visible {
  color: var(--text);
  opacity: 1;
}

.reveal {
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity 600ms ease, transform 600ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 840px) {
  .project-grid {
    grid-template-columns: 1fr;
  }

  .project-card--featured {
    grid-column: auto;
    display: block;
  }

  .project-card--featured .project-image,
  .project-image {
    min-height: 22rem;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

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

  .identity > span:last-child,
  nav > a:first-child {
    display: none;
  }

  .intro {
    min-height: auto;
    padding: 6rem 0 5rem;
  }

  h1 {
    font-size: clamp(3rem, 14vw, 4.5rem);
  }

  .projects-section {
    padding: 4.5rem 0 5rem;
  }

  .project-image,
  .project-card--featured .project-image {
    min-height: 16rem;
  }

  .project-title-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.55rem;
  }

  footer {
    flex-direction: column;
  }

  .footer-meta {
    justify-content: space-between;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

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