:root {
  color-scheme: dark;
  --bg: #10130f;
  --panel: #171b16;
  --panel-strong: #20251f;
  --text: #f4f1e8;
  --muted: #b9baad;
  --accent: #8fe388;
  --accent-strong: #f0c85a;
  --cream: #fff1c7;
  --ink: #0d120e;
  --line: rgba(244, 241, 232, 0.14);
  --shadow: rgba(0, 0, 0, 0.35);
  --max: 1120px;
  font-family:
    Futura, "Avenir Next", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(255, 241, 199, 0.018) 0,
      rgba(255, 241, 199, 0.018) 1px,
      transparent 1px,
      transparent 18px
    ),
    var(--bg);
  color: var(--text);
}

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: 12px;
  z-index: 20;
  padding: 10px 14px;
  transform: translateY(-140%);
  border-radius: 6px;
  background: var(--text);
  color: var(--bg);
  font-weight: 700;
}

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

.site-header {
  position: fixed;
  top: 0;
  z-index: 10;
  width: 100%;
  border-bottom: 1px solid rgba(244, 241, 232, 0.09);
  background: rgba(16, 19, 15, 0.78);
  backdrop-filter: blur(18px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(var(--max), calc(100% - 32px));
  min-height: 68px;
  margin: 0 auto;
}

.brand,
.nav-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 2px solid rgba(143, 227, 136, 0.72);
  border-radius: 50%;
  background: var(--ink);
  color: var(--cream);
  box-shadow: 7px 0 0 rgba(240, 200, 90, 0.78);
}

.nav-links {
  gap: 6px;
}

.nav-links a {
  border-radius: 6px;
  padding: 9px 11px;
  color: var(--muted);
  font-size: 0.95rem;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: rgba(244, 241, 232, 0.08);
  color: var(--text);
  outline: none;
}

.hero {
  position: relative;
  display: grid;
  min-height: 92vh;
  overflow: hidden;
  padding: 140px 16px 88px;
  border-bottom: 1px solid var(--line);
}

.hero::before,
.hero::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.hero::before {
  right: 7vw;
  top: 19vh;
  width: 92px;
  height: 92px;
  background:
    linear-gradient(90deg, transparent 47%, rgba(240, 200, 90, 0.7) 47% 53%, transparent 53%),
    linear-gradient(0deg, transparent 47%, rgba(240, 200, 90, 0.7) 47% 53%, transparent 53%),
    linear-gradient(45deg, transparent 48%, rgba(143, 227, 136, 0.55) 48% 52%, transparent 52%),
    linear-gradient(-45deg, transparent 48%, rgba(143, 227, 136, 0.55) 48% 52%, transparent 52%);
  opacity: 0.82;
  transform: rotate(12deg);
}

.hero::after {
  right: -60px;
  bottom: 18vh;
  width: 260px;
  height: 260px;
  border: 2px solid rgba(240, 200, 90, 0.19);
  border-radius: 50%;
  box-shadow:
    inset 0 0 0 28px rgba(143, 227, 136, 0.035),
    inset 0 0 0 56px rgba(240, 200, 90, 0.035);
}

#neat-field {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 12% 86%, rgba(255, 241, 199, 0.08), transparent 17%),
    radial-gradient(circle at 20% 20%, rgba(143, 227, 136, 0.16), transparent 32%),
    radial-gradient(circle at 80% 15%, rgba(240, 200, 90, 0.16), transparent 28%),
    linear-gradient(135deg, #10130f 0%, #181f17 45%, #111515 100%);
}

.hero-content {
  position: relative;
  align-self: end;
  width: min(var(--max), 100%);
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.77rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 980px;
  margin: 0;
  color: var(--cream);
  font-family:
    "Cooper Black", "Bookman Old Style", "Avenir Next Condensed", Impact, sans-serif;
  font-size: clamp(4.8rem, 18vw, 13.2rem);
  font-weight: 900;
  line-height: 0.79;
  letter-spacing: 0.01em;
  text-shadow:
    -0.045em 0.045em 0 rgba(143, 227, 136, 0.9),
    0.045em -0.03em 0 rgba(240, 200, 90, 0.76),
    0.085em 0.075em 0 rgba(13, 18, 14, 0.9),
    0 0.11em 0.22em rgba(0, 0, 0, 0.42);
  text-transform: uppercase;
}

.tagline {
  max-width: 900px;
  margin: 12px 0 0;
  color: var(--accent-strong);
  font-family: Futura, "Avenir Next", Inter, sans-serif;
  font-size: clamp(1.45rem, 3vw, 3rem);
  font-weight: 800;
  letter-spacing: 0.03em;
}

.atomic-badge {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  margin-bottom: 18px;
  border: 2px solid rgba(240, 200, 90, 0.82);
  border-radius: 50%;
  color: var(--cream);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  transform: rotate(-12deg);
}

.atomic-label {
  position: relative;
  z-index: 2;
}

.atomic-badge::before,
.atomic-badge::after {
  position: absolute;
  width: 92px;
  height: 26px;
  border: 1px solid rgba(143, 227, 136, 0.78);
  border-radius: 50%;
  content: "";
}

.atomic-badge::before {
  transform: rotate(34deg);
}

.atomic-badge::after {
  transform: rotate(-34deg);
}

.electron-track {
  position: absolute;
  width: 108px;
  height: 30px;
  border: 1px solid rgba(255, 241, 199, 0.64);
  border-radius: 50%;
}

.electron-track-one {
  transform: rotate(34deg);
}

.electron-track-two {
  transform: rotate(-34deg);
}

.electron-track-three {
  transform: rotate(88deg);
}

.electron-track-four {
  transform: rotate(-82deg);
}

.electron {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  animation: electron-run 3.6s linear infinite;
  background: var(--accent);
  offset-path: path("M 54 15 m -54 0 a 54 15 0 1 0 108 0 a 54 15 0 1 0 -108 0");
  offset-rotate: 0deg;
  box-shadow: 0 0 12px rgba(143, 227, 136, 0.8);
}

.electron-track .electron {
  left: -3.5px;
  top: -3.5px;
}

.electron-track-two .electron,
.electron-track-four .electron {
  background: var(--accent-strong);
  box-shadow: 0 0 12px rgba(240, 200, 90, 0.8);
}

.electron-track-two .electron {
  animation-delay: -0.9s;
  animation-duration: 4.2s;
}

.electron-track-three .electron {
  animation-delay: -1.8s;
  animation-duration: 4.8s;
}

.electron-track-four .electron {
  animation-delay: -2.6s;
  animation-duration: 3.2s;
}

@keyframes electron-run {
  from {
    offset-distance: 0%;
  }

  to {
    offset-distance: 100%;
  }
}

.intro {
  max-width: 630px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.7vw, 1.23rem);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 2px solid transparent;
  border-radius: 6px;
  padding: 0 18px;
  box-shadow: 6px 6px 0 rgba(13, 18, 14, 0.85);
  font-weight: 800;
  letter-spacing: 0.03em;
  text-decoration: none;
  text-transform: uppercase;
}

.button-primary {
  background: var(--accent);
  color: var(--ink);
}

.button-secondary {
  border-color: rgba(255, 241, 199, 0.34);
  background: rgba(255, 241, 199, 0.07);
  color: var(--cream);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

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

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(260px, 0.55fr);
  gap: 32px;
  align-items: end;
  margin-bottom: 30px;
}

.section h2 {
  margin: 0;
  color: var(--cream);
  font-family: "Cooper Black", "Bookman Old Style", Georgia, serif;
  font-size: clamp(2rem, 5vw, 4.3rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.section-heading p:not(.eyebrow),
.contact-section p,
.note-list p,
.project-card p {
  color: var(--muted);
  line-height: 1.6;
}

.project-band {
  width: 100%;
  max-width: none;
  padding-right: max(16px, calc((100vw - var(--max)) / 2));
  padding-left: max(16px, calc((100vw - var(--max)) / 2));
  background:
    linear-gradient(135deg, rgba(240, 200, 90, 0.06), transparent 34%),
    #141812;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.project-card {
  display: flex;
  min-height: 320px;
  flex-direction: column;
  justify-content: space-between;
  border: 2px solid rgba(255, 241, 199, 0.14);
  border-radius: 8px;
  padding: 22px;
  background:
    linear-gradient(180deg, rgba(255, 241, 199, 0.045), transparent 42%),
    var(--panel);
  box-shadow:
    9px 9px 0 rgba(13, 18, 14, 0.86),
    0 20px 50px var(--shadow);
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.project-card h3,
.note-list h3 {
  margin: 34px 0 0;
  color: var(--cream);
  font-family: "Bookman Old Style", Georgia, serif;
  font-size: 1.35rem;
}

.project-card a {
  width: fit-content;
  margin-top: 24px;
  color: var(--accent-strong);
  font-weight: 800;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(280px, 1fr);
  gap: 48px;
  align-items: start;
}

.note-list {
  display: grid;
  gap: 18px;
}

.note-list article {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.note-list h3 {
  margin: 0;
}

.contact-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
}

.contact-section p {
  max-width: 680px;
}

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

.site-footer p {
  margin: 0;
}

@media (max-width: 820px) {
  .section-heading,
  .split-section {
    grid-template-columns: 1fr;
  }

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

  .project-card {
    min-height: 250px;
  }

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

@media (max-width: 620px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    min-height: 104px;
    padding: 14px 0;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
  }

  .nav-links a {
    padding-right: 8px;
    padding-left: 8px;
  }

  .hero {
    min-height: 88vh;
    padding-top: 156px;
  }

  .button {
    width: 100%;
  }

  .section {
    padding: 64px 0;
  }
}

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

  .button:hover,
  .button:focus-visible {
    transform: none;
  }
}
