:root {
  color-scheme: dark;
  --bg: #050605;
  --panel: #10120f;
  --panel-strong: #171b14;
  --text: #f4f6ea;
  --muted: #a7ae9b;
  --green: #c6ff00;
  --green-soft: #8ee000;
  --line: rgba(244, 246, 234, 0.14);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 72% 12%, rgba(198, 255, 0, 0.16), transparent 28rem),
    linear-gradient(135deg, #050605 0%, #0b0d09 46%, #15180f 100%);
  color: var(--text);
  overflow-x: hidden;
}

body.is-loading {
  cursor: progress;
}

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

.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(to bottom, black, transparent 92%);
}

.cursor-orbit {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 20;
  width: 18px;
  height: 18px;
  border: 1px solid var(--green);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
  transition: width 160ms ease, height 160ms ease, opacity 160ms ease;
}

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

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

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

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: #111;
  font-size: 0.8rem;
}

.nav-links {
  gap: clamp(14px, 3vw, 34px);
  color: var(--muted);
  font-size: 0.95rem;
}

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

.section-shell {
  position: relative;
  z-index: 2;
  width: min(1360px, calc(100% - 48px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: clamp(26px, 5vw, 72px);
  align-items: center;
  min-height: calc(100vh - 80px);
  padding: clamp(48px, 8vw, 96px) 0 70px;
}

.eyebrow,
.card-kicker {
  margin: 0 0 18px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.hero h1 {
  max-width: 1040px;
  margin: 0;
  font-size: clamp(3.4rem, 10vw, 9.7rem);
  line-height: 0.88;
  letter-spacing: 0;
}

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

.motion-line,
.motion-word {
  display: inline-block;
}

.motion-line {
  overflow: hidden;
  vertical-align: top;
}

.hero-green-line {
  color: var(--green);
}

.hero-lede {
  max-width: 760px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.8;
}

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

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 22px;
  font-weight: 800;
}

.button.primary {
  background: var(--green);
  color: #10120f;
}

.button.ghost {
  border: 1px solid var(--line);
  color: var(--text);
}

.hero-card,
.identity-panel,
.focus-list article,
.timeline article,
.post-card,
.contact {
  border: 1px solid var(--line);
  background: rgba(16, 18, 15, 0.78);
  box-shadow: var(--shadow);
}

.hero-card {
  position: relative;
  min-height: 460px;
  padding: clamp(26px, 4vw, 42px);
  overflow: hidden;
  border-radius: 8px;
  transform-style: preserve-3d;
  will-change: transform;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(198, 255, 0, 0.28);
  pointer-events: none;
}

.hero-card h2 {
  max-width: 320px;
  margin: 0 0 20px;
  color: var(--green);
  font-size: clamp(2rem, 5vw, 4.2rem);
  line-height: 0.98;
}

.hero-card p:not(.card-kicker) {
  position: relative;
  z-index: 1;
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.8;
}

.scanline {
  position: absolute;
  inset: auto -20% 24% -20%;
  height: 120px;
  background: linear-gradient(90deg, transparent, rgba(198, 255, 0, 0.28), transparent);
  transform: rotate(-10deg);
  animation: scan 4s ease-in-out infinite;
}

.pulse-row {
  position: absolute;
  right: 32px;
  bottom: 32px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  width: 160px;
}

.pulse-row span {
  display: block;
  height: 48px;
  background: var(--green);
  animation: bars 1.25s ease-in-out infinite;
}

.pulse-row span:nth-child(2) { animation-delay: 120ms; }
.pulse-row span:nth-child(3) { animation-delay: 240ms; }
.pulse-row span:nth-child(4) { animation-delay: 360ms; }

.ticker {
  position: relative;
  z-index: 2;
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--green);
  color: #111;
}

.ticker-track {
  display: flex;
  width: max-content;
  gap: 34px;
  padding: 18px 0;
  font-size: clamp(1rem, 3vw, 2rem);
  font-weight: 900;
  text-transform: uppercase;
  animation: marquee 22s linear infinite;
}

.ticker-track span {
  white-space: nowrap;
}

.profile,
.split-section,
.story,
.writing,
.contact {
  padding-block: clamp(72px, 10vw, 132px);
}

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

.section-heading h2,
.contact h2 {
  margin: 0;
  font-size: clamp(2.4rem, 7vw, 6.4rem);
  line-height: 0.92;
}

.profile-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 18px;
}

.identity-panel {
  display: flex;
  min-height: 280px;
  align-items: end;
  gap: 20px;
  border-radius: 8px;
  padding: 26px;
}

.avatar {
  display: grid;
  flex: 0 0 auto;
  width: 96px;
  height: 96px;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: #111;
  font-size: 3rem;
  font-weight: 900;
}

.identity-panel h3 {
  margin: 0 0 8px;
  font-size: 2rem;
}

.identity-panel p,
.info-grid dd,
.focus-list p,
.timeline p,
.post-card p,
.contact p {
  color: var(--muted);
  line-height: 1.7;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
}

.info-grid div {
  min-height: 130px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: rgba(244, 246, 234, 0.04);
}

.info-grid dt {
  color: var(--green);
  font-weight: 800;
}

.info-grid dd {
  margin: 16px 0 0;
  font-size: 1.08rem;
}

.focus-list,
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.focus-list article,
.post-card {
  min-height: 280px;
  border-radius: 8px;
  padding: 26px;
}

.focus-list span,
.post-card span {
  color: var(--green);
  font-weight: 900;
}

.focus-list h3,
.timeline h3,
.post-card h3 {
  margin: 32px 0 12px;
  font-size: clamp(1.45rem, 3vw, 2.2rem);
  line-height: 1.1;
}

.timeline {
  position: relative;
  display: grid;
  gap: 14px;
}

.timeline::before,
.timeline-progress {
  content: "";
  position: absolute;
  left: 24px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(244, 246, 234, 0.12);
}

.timeline-progress {
  bottom: auto;
  height: 100%;
  background: var(--green);
  box-shadow: 0 0 28px rgba(198, 255, 0, 0.55);
  transform: scaleY(0);
  transform-origin: top;
  z-index: 1;
}

.timeline article {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 140px 0.8fr 1.2fr;
  gap: 26px;
  align-items: start;
  border-radius: 8px;
  padding: 24px;
}

.timeline time {
  color: var(--green);
  font-size: 1.5rem;
  font-weight: 900;
}

.timeline h3,
.timeline p,
.post-card p {
  margin-top: 0;
}

.post-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
}

.post-card:hover {
  border-color: rgba(198, 255, 0, 0.7);
  background: var(--panel-strong);
}

.contact {
  display: grid;
  grid-template-columns: 1fr 0.7fr;
  gap: 28px;
  align-items: center;
  margin-bottom: 84px;
  border-radius: 8px;
  padding: clamp(28px, 5vw, 48px);
}

.contact-links {
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}

.contact-links a {
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
  color: var(--green);
  font-weight: 800;
}

.site-footer {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 4vw, 56px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer p {
  margin: 0;
}

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

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

.gsap-ready .reveal {
  opacity: 1;
  transform: none;
  transition: none;
}

@keyframes scan {
  0%, 100% { transform: translateY(-80px) rotate(-10deg); opacity: 0.4; }
  50% { transform: translateY(160px) rotate(-10deg); opacity: 0.9; }
}

@keyframes bars {
  0%, 100% { transform: scaleY(0.45); transform-origin: bottom; }
  50% { transform: scaleY(1); transform-origin: bottom; }
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

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

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

  .hero,
  .profile-grid,
  .focus-list,
  .post-grid,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-card {
    min-height: 360px;
  }

  .section-heading {
    display: block;
  }

  .timeline article {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .timeline::before,
  .timeline-progress {
    left: 14px;
  }
}

@media (max-width: 560px) {
  .section-shell {
    width: min(100% - 24px, 1360px);
  }

  .hero h1 {
    font-size: clamp(3rem, 18vw, 5rem);
  }

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

  .identity-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .pulse-row {
    width: 118px;
  }

  .cursor-orbit {
    display: none;
  }
}

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