:root {
  color-scheme: dark;
  --ink: #f2f7f1;
  --muted: #a8b5ae;
  --paper: #070a09;
  --surface: #101713;
  --surface-soft: #141d19;
  --line: rgba(220, 231, 224, 0.14);
  --green: #68d69f;
  --green-dark: #2a9d73;
  --blue: #76a8ff;
  --yellow: #f0c564;
  --red: #ef796c;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.42);
  --glow: rgba(104, 214, 159, 0.24);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(rgba(104, 214, 159, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(118, 168, 255, 0.03) 1px, transparent 1px),
    linear-gradient(135deg, #070a09 0%, #101713 48%, #12100a 100%);
  background-size: 42px 42px, 42px 42px, auto;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(120deg, transparent 0%, rgba(104, 214, 159, 0.07) 45%, transparent 70%);
  opacity: 0.55;
  transform: translateX(-35%);
  animation: ambient-scan 16s linear infinite;
}

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

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 52px);
  background: rgba(7, 10, 9, 0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--green-dark), #1f6953);
  border-radius: 8px;
  font-size: 0.78rem;
  letter-spacing: 0;
  box-shadow: 0 0 22px var(--glow);
  animation: mark-pulse 4s ease-in-out infinite;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 24px);
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--green);
}

main {
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.hero-section,
.status-band,
.projects-section,
.tools-section,
.contact-section,
.content-grid {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.hero-section {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: clamp(32px, 6vw, 76px);
  align-items: center;
  min-height: calc(100vh - 68px);
  padding: clamp(36px, 7vw, 82px) 0 44px;
}

.hero-copy {
  animation: fade-up 700ms ease-out both;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 20px;
  font-size: 6rem;
  line-height: 0.92;
  letter-spacing: 0;
  text-shadow: 0 0 42px rgba(104, 214, 159, 0.18);
}

h2 {
  margin-bottom: 0;
  font-size: 2.7rem;
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.05rem;
  line-height: 1.25;
}

.hero-text {
  max-width: 620px;
  color: var(--muted);
  font-size: 1.16rem;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid rgba(104, 214, 159, 0.55);
  border-radius: 8px;
  font-weight: 800;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease, background 180ms ease;
}

.button.primary {
  color: #04100c;
  background: var(--green);
  box-shadow: 0 0 22px rgba(104, 214, 159, 0.2);
}

.button.secondary {
  color: var(--green);
  background: rgba(104, 214, 159, 0.06);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(104, 214, 159, 0.18);
}

.hero-visual {
  position: relative;
  align-self: stretch;
  min-height: 420px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #111813;
  box-shadow: var(--shadow);
  animation: float-panel 7s ease-in-out infinite;
}

.hero-visual::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.08) 48%, transparent 62%);
  transform: translateX(-120%);
  animation: panel-sweep 7s ease-in-out infinite;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.section-heading.compact {
  display: block;
  margin-bottom: 20px;
}

.status-band,
.projects-section,
.tools-section,
.contact-section {
  padding: 58px 0;
}

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

.status-card,
.project-card,
.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.28);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.status-card:hover,
.project-card:hover,
.panel:hover {
  border-color: rgba(104, 214, 159, 0.38);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.36), 0 0 32px rgba(104, 214, 159, 0.08);
  transform: translateY(-3px);
}

.status-card,
.project-card {
  padding: 20px;
}

.status-label,
.project-type,
.quick-links span {
  display: block;
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-card strong {
  display: block;
  margin-bottom: 10px;
  line-height: 1.25;
}

.status-card p,
.project-card p,
.log-entry p {
  margin-bottom: 0;
  color: var(--muted);
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.6fr);
  gap: 18px;
  padding: 36px 0 58px;
}

.panel {
  padding: clamp(20px, 3vw, 30px);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.chip {
  min-height: 36px;
  padding: 0 13px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 999px;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.chip.active,
.chip:hover,
.chip:focus-visible {
  color: #06100d;
  background: var(--green);
  border-color: var(--green);
  transform: translateY(-1px);
}

.timeline {
  display: grid;
  gap: 12px;
}

.log-entry {
  padding: 18px;
  border: 1px solid var(--line);
  border-left: 6px solid var(--green);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.log-entry:hover {
  border-color: rgba(104, 214, 159, 0.34);
  background: rgba(104, 214, 159, 0.055);
  transform: translateX(3px);
}

.log-entry[hidden] {
  display: none;
}

.log-entry time {
  display: block;
  margin-bottom: 8px;
  color: var(--blue);
  font-size: 0.84rem;
  font-weight: 800;
}

.log-entry span {
  display: block;
  margin-top: 10px;
  color: var(--green);
  font-size: 0.92rem;
  font-weight: 800;
}

.quick-links {
  display: grid;
  gap: 10px;
}

.quick-links a,
.quick-link {
  display: block;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease, background 180ms ease;
}

.quick-links a:hover,
.quick-links a:focus-visible {
  border-color: var(--green);
  background: rgba(104, 214, 159, 0.055);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

.quick-link.pending {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.025);
}

.quick-links strong {
  display: block;
  overflow-wrap: anywhere;
  line-height: 1.3;
}

.project-card:nth-child(1) {
  border-top: 5px solid var(--green);
}

.project-card:nth-child(2) {
  border-top: 5px solid var(--blue);
}

.project-card:nth-child(3) {
  border-top: 5px solid var(--yellow);
}

.project-card:nth-child(4) {
  border-top: 5px solid var(--red);
}

.tool-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.tool-list li {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  font-weight: 800;
  transition: border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.tool-list li:hover {
  color: var(--green);
  border-color: rgba(104, 214, 159, 0.4);
  transform: translateY(-2px);
}

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

.contact-section h2 {
  max-width: 780px;
}

.site-footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px clamp(18px, 4vw, 52px);
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
}

.site-footer span:first-child {
  color: var(--ink);
  font-weight: 800;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 650ms ease, transform 650ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.status-card.reveal.is-visible:hover,
.project-card.reveal.is-visible:hover,
.panel.reveal.is-visible:hover {
  transform: translateY(-3px);
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ambient-scan {
  0% {
    transform: translateX(-45%);
  }
  100% {
    transform: translateX(45%);
  }
}

@keyframes mark-pulse {
  0%,
  100% {
    box-shadow: 0 0 18px rgba(104, 214, 159, 0.18);
  }
  50% {
    box-shadow: 0 0 34px rgba(104, 214, 159, 0.34);
  }
}

@keyframes float-panel {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes panel-sweep {
  0%,
  45% {
    transform: translateX(-120%);
  }
  80%,
  100% {
    transform: translateX(120%);
  }
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .nav-links {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero-section {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  h1 {
    font-size: 4.6rem;
  }

  h2 {
    font-size: 2.25rem;
  }

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

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

  .content-grid {
    align-items: start;
  }
}

@media (max-width: 640px) {
  .hero-section,
  .status-band,
  .projects-section,
  .tools-section,
  .contact-section,
  .content-grid {
    width: min(100% - 28px, 1180px);
  }

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

  .section-heading,
  .contact-section,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

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

  .nav-links {
    gap: 16px;
    font-size: 0.9rem;
  }

  h1 {
    font-size: 3.2rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  .hero-text {
    font-size: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

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