:root {
  color-scheme: dark;
  --paper: #070b14;
  --ink: #f2f6ff;
  --muted: #8d9ab1;
  --line: rgba(143, 170, 214, .16);
  --panel: #0d1424;
  --panel-soft: #111b2e;
  --accent: #61dafb;
  --accent-2: #8b7cff;
  --green: #58e6a9;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Segoe UI Variable", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(circle at 78% 8%, rgba(97, 218, 251, .08), transparent 28rem),
    radial-gradient(circle at 18% 48%, rgba(139, 124, 255, .06), transparent 24rem);
}

a { color: inherit; }

.site-header,
main,
footer {
  width: min(1040px, calc(100% - 48px));
  margin-inline: auto;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .18em;
}

.brand-mark {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(97, 218, 251, .45);
  background: linear-gradient(145deg, rgba(97, 218, 251, .18), rgba(139, 124, 255, .22));
  color: var(--accent);
  border-radius: 8px;
  letter-spacing: 0;
}

.header-note { color: var(--muted); font-size: .76rem; }

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(420px, 1.1fr);
  align-items: center;
  gap: 28px;
  min-height: 470px;
  padding: 48px 0 58px;
}

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

.hero-art {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  border: 1px solid rgba(97, 218, 251, .2);
  border-radius: 18px;
  background: #080d19;
  box-shadow: 0 26px 80px rgba(0, 0, 0, .34), 0 0 70px rgba(97, 218, 251, .06);
}

.hero-art::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(7, 11, 20, .35), transparent 38%), linear-gradient(0deg, rgba(7, 11, 20, .22), transparent 45%);
  pointer-events: none;
}

.hero-art img { width: 100%; height: 100%; min-height: 360px; display: block; object-fit: cover; object-position: 58% center; }

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .17em;
}

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

h1 {
  margin-bottom: 22px;
  max-width: 590px;
  font-size: clamp(2.45rem, 4.7vw, 4.15rem);
  font-weight: 650;
  letter-spacing: -.045em;
  line-height: 1.02;
}

.intro {
  max-width: 590px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(.95rem, 1.5vw, 1.08rem);
  line-height: 1.7;
}

.projects { padding-bottom: 64px; }

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.section-heading .eyebrow { margin-bottom: 8px; }

h2 { margin-bottom: 0; font-size: clamp(1.3rem, 2.4vw, 1.8rem); font-weight: 600; letter-spacing: -.03em; }
.project-count { color: var(--muted); font-size: 1.4rem; font-weight: 300; letter-spacing: -.04em; }

.project-card {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  max-width: 760px;
  min-height: 260px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(145deg, var(--panel-soft), var(--panel));
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.project-card:hover,
.project-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(97, 218, 251, .34);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .28), 0 0 32px rgba(97, 218, 251, .06);
}

.project-card:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }

.project-visual { position: relative; min-height: 260px; overflow: hidden; background: #111827; }
.project-visual img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform 300ms ease; }
.project-card:hover .project-visual img { transform: scale(1.015); }

.status {
  position: absolute;
  top: 16px;
  left: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  border: 1px solid rgba(88, 230, 169, .26);
  border-radius: 999px;
  background: rgba(7, 11, 20, .82);
  backdrop-filter: blur(8px);
  color: var(--green);
  font-size: .68rem;
  font-weight: 750;
}

.status span { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

.project-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 30px 34px;
}

.project-index { color: var(--muted); font-size: .7rem; font-weight: 800; letter-spacing: .14em; }
.project-copy h3 { margin-bottom: 12px; font-size: clamp(1.8rem, 3vw, 2.45rem); font-weight: 620; letter-spacing: -.045em; }
.project-copy > p:not(.project-index) { margin-bottom: 20px; color: var(--muted); font-size: .84rem; line-height: 1.62; }
.cta { align-self: flex-start; padding: 9px 13px; border: 1px solid rgba(97, 218, 251, .3); border-radius: 8px; color: var(--accent); font-size: .76rem; font-weight: 700; }

footer {
  display: flex;
  justify-content: space-between;
  padding: 24px 0 32px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .72rem;
}

@media (max-width: 760px) {
  .site-header, main, footer { width: min(100% - 28px, 1040px); }
  .site-header { min-height: 62px; }
  .header-note { display: none; }
  .hero { grid-template-columns: 1fr; gap: 26px; min-height: auto; padding: 36px 0 52px; }
  .hero-art { min-height: 230px; order: -1; }
  .hero-art img { min-height: 230px; }
  h1 { font-size: clamp(2.55rem, 12vw, 3.8rem); }
  .projects { padding-bottom: 52px; }
  .project-count { font-size: 1.25rem; }
  .project-card { grid-template-columns: 1fr; }
  .project-visual { min-height: 210px; aspect-ratio: 16 / 10; }
  .project-copy { padding: 24px 22px 26px; }
  .project-copy h3 { font-size: 2rem; }
  footer { gap: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
