:root {
  color-scheme: dark;
  --background: #080b0a;
  --surface: #101612;
  --line: #28352d;
  --text: #f1f8f2;
  --muted: #a9b7ad;
  --mint: #a0ffc0;
  --gutter: clamp(1rem, 4.2vw, 4.5rem);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: var(--background);
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 280px; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 5px; }

.wrap {
  width: min(100% - 2 * var(--gutter), 90rem);
  margin-inline: auto;
}

.skip {
  position: fixed;
  z-index: 10;
  inset: .75rem auto auto .75rem;
  padding: .75rem 1rem;
  border-radius: .5rem;
  background: var(--mint);
  color: var(--background);
  transform: translateY(-150%);
}

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

.header {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #080b0af0;
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  min-height: 5.25rem;
  align-items: center;
  justify-content: space-between;
  gap: .625rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  font-size: .95rem;
  font-weight: 750;
  letter-spacing: .14em;
  white-space: nowrap;
}

.brand-mark {
  position: relative;
  display: grid;
  width: 1.875rem;
  height: 1.875rem;
  flex: none;
  place-items: center;
  color: var(--mint);
}

.brand-mark::before, .brand-mark::after {
  content: "";
  grid-area: 1 / 1;
}

.brand-mark::before {
  width: 100%;
  height: 43%;
  transform: rotate(-42deg);
  border: 1.5px solid currentColor;
  border-radius: 50%;
}

.brand-mark::after {
  width: .34rem;
  height: .34rem;
  background: currentColor;
  border-radius: 50%;
  box-shadow: 0 0 .65rem #a0ffc088;
}

.nav {
  display: flex;
  gap: .2rem;
  align-items: center;
  padding: .23rem;
  border: 1px solid var(--line);
  border-radius: 99rem;
  background: #101512;
}

.nav a {
  padding: .62rem clamp(.65rem, 1.45vw, 1.25rem);
  border-radius: inherit;
  color: var(--muted);
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.25;
  transition: color .18s, background .18s;
}

.nav a:hover, .nav a[aria-current] { color: var(--text); background: #243028; }

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: clamp(34rem, 73svh, 47rem);
  overflow: hidden;
  align-items: center;
  border: 1px solid #2a3c32;
  border-radius: 1.35rem;
  background: radial-gradient(ellipse at 78% 46%, #15392b, #050a08 64%);
}

.hero-art, .hero::after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero-art { object-fit: cover; object-position: 58% 50%; }

.hero::after {
  content: "";
  background:
    linear-gradient(90deg, #040907df, #04090758 41%, transparent 70%),
    linear-gradient(0deg, #040907a3, transparent 28%);
}

.hero-content { padding: 3.5rem clamp(1.375rem, 5.3vw, 5.25rem) 4.75rem; }

.hero h1 {
  margin: 0;
  font-size: clamp(3.05rem, 7.2vw, 7.65rem);
  font-weight: 710;
  letter-spacing: -.078em;
  line-height: .97;
}

.hero h1 span { display: block; color: var(--mint); }

.hero p {
  margin: 1.5rem 0 2rem;
  color: #d0ded4;
  font-size: clamp(1.125rem, 2vw, 1.55rem);
  letter-spacing: -.025em;
}

.button {
  display: inline-flex;
  min-height: 3.2rem;
  align-items: center;
  justify-content: center;
  padding: .75rem 1.35rem;
  border: 1px solid transparent;
  border-radius: .65rem;
  color: #082113;
  background: var(--mint);
  font-size: .95rem;
  font-weight: 720;
  transition: background .18s, box-shadow .18s;
}

.button:hover { background: #c3ffd7; box-shadow: 0 0 1.4rem #80ffa947; }

.hero-domain {
  position: absolute;
  right: clamp(1.35rem, 2.8vw, 2.5rem);
  bottom: clamp(1.25rem, 2.6vw, 2.25rem);
  color: #c2d4c8;
  font: .82rem/1.2 ui-monospace, Consolas, monospace;
  letter-spacing: .055em;
}

.section { padding-block: clamp(3.75rem, 7vw, 6rem) 0; }

.section-title {
  margin: 0 0 1.45rem;
  font-size: clamp(2.35rem, 4.5vw, 4.15rem);
  font-weight: 675;
  letter-spacing: -.065em;
  line-height: 1.06;
}

.project {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--surface);
}

.project-copy { padding: clamp(1.5rem, 4vw, 3.5rem); }
.project h3 { margin: 0 0 .6rem; font-size: 1.6rem; letter-spacing: -.035em; }
.project p { max-width: 33ch; margin: 0; color: var(--muted); line-height: 1.65; }

.trail-toggle {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  min-height: 2.75rem;
  margin-top: 1.25rem;
  padding: .45rem .75rem;
  border: 1px solid #435749;
  border-radius: .55rem;
  color: var(--text);
  background: transparent;
  cursor: pointer;
  font-size: .9rem;
}

.trail-toggle[hidden] { display: none; }
.trail-toggle:hover { background: #1b2b20; }
.trail-toggle::before { content: ""; width: .55rem; height: .55rem; border: 1px solid var(--muted); border-radius: 50%; }
.trail-toggle[aria-pressed="true"]::before { background: var(--mint); border-color: var(--mint); box-shadow: 0 0 .6rem #a0ffc088; }

.project-art {
  position: relative;
  display: grid;
  min-height: 11rem;
  overflow: hidden;
  place-items: center;
  border-left: 1px solid var(--line);
  background:
    radial-gradient(ellipse at 57% 59%, #224d31 0, transparent 62%),
    repeating-linear-gradient(0deg, transparent 0 31px, #a0ffc00e 31px 32px),
    repeating-linear-gradient(90deg, transparent 0 31px, #a0ffc00e 31px 32px),
    #0b150f;
}

.project-orbit {
  position: absolute;
  width: min(67%, 21rem);
  height: 29%;
  transform: rotate(-15deg);
  border: 1px solid #acffc3;
  border-radius: 50%;
  box-shadow: 0 0 .85rem #73ffa867, inset 0 0 1.15rem #73ffa841;
}

.project-orbit-secondary { opacity: .45; transform: rotate(-18deg) scale(1.02, .8); }

.project-point {
  position: absolute;
  left: 71%;
  top: 29%;
  width: .46rem;
  height: .46rem;
  border-radius: 50%;
  background: #e4ffe8;
  box-shadow: 0 0 .8rem .23rem #9affbd;
}

.contact {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.contact .section-title { margin: 0; }

.contact-link {
  color: var(--mint);
  font-size: clamp(1.2rem, 2.1vw, 1.65rem);
  text-decoration: underline;
  text-decoration-color: #8cedae80;
  text-underline-offset: .36em;
}

.contact-link:hover { text-decoration-color: currentColor; }

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-block: 1.35rem;
  border-top: 1px solid var(--line);
}

.footer-home { color: var(--muted); font-size: .9rem; }
.footer-home:hover { color: var(--text); }
.cursor-trail { position: fixed; inset: 0; z-index: 3; width: 100%; height: 100%; pointer-events: none; }

@media (max-width: 42rem) {
  :root { scroll-padding-top: 5rem; }
  .header-inner { min-height: 4.5rem; }
  .brand { gap: .35rem; font-size: .83rem; }
  .brand-mark { width: 1.45rem; height: 1.45rem; }
  .nav { gap: 0; }
  .nav a { padding-inline: .55rem; }
  .hero { align-items: end; min-height: clamp(31rem, 78svh, 40rem); border-radius: 1rem; }
  .hero-art { object-position: 70% 50%; }
  .hero::after { background: linear-gradient(0deg, #040907 2%, #040907e0 31%, #04090712 79%); }
  .hero-content { padding-bottom: 5.5rem; }
  .hero p { margin: 1.15rem 0 1.55rem; }
  .project { grid-template-columns: 1fr; }
  .project-art { border-left: 0; border-top: 1px solid var(--line); }
}

@media (max-width: 23rem) {
  .header-inner { gap: .25rem; }
  .header .brand-mark { display: none; }
  .nav a { padding-inline: .45rem; }
  .hero h1 { font-size: clamp(2.4rem, 12vw, 3.05rem); }
}

@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; }
  .cursor-trail { display: none; }
}
