:root {
  color-scheme: dark;
  --bg: #000000;
  --panel: #050708;
  --panel-strong: #080d0f;
  --text: #eef9fb;
  --muted: #91a6aa;
  --quiet: #5e7175;
  --line: rgba(123, 241, 255, 0.18);
  --line-strong: rgba(123, 241, 255, 0.34);
  --cyan: #7bf1ff;
  --green: #73ff9d;
  --red: #ff4d5e;
  --amber: #ffb25c;
  --shadow: 0 0 32px rgba(123, 241, 255, 0.12);
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    linear-gradient(rgba(123, 241, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(123, 241, 255, 0.035) 1px, transparent 1px),
    linear-gradient(135deg, rgba(123, 241, 255, 0.08), transparent 22rem),
    linear-gradient(225deg, rgba(115, 255, 157, 0.05), transparent 24rem),
    var(--bg);
  background-size: 42px 42px, 42px 42px, auto, auto, auto;
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), #000 72%),
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 5px);
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 20;
  padding: 0.7rem 1rem;
  border: 1px solid var(--cyan);
  background: var(--bg);
  color: var(--text);
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(123, 241, 255, 0.12);
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(18px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 2rem, var(--max-width));
  min-height: 72px;
  margin: 0 auto;
  gap: 1.5rem;
}

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

.brand {
  gap: 0.75rem;
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: block;
  border: 1px solid var(--line-strong);
  background: #000;
  padding: 2px;
  object-fit: contain;
  object-position: center;
  box-shadow: var(--shadow);
}

.nav-links {
  gap: 0.35rem;
}

.nav-links a {
  padding: 0.55rem 0.75rem;
  color: var(--muted);
  font-size: 0.92rem;
  text-decoration: none;
}

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

.section {
  width: min(100% - 2rem, var(--max-width));
  margin: 0 auto;
  padding: 6rem 0;
}

.hero {
  display: grid;
  min-height: calc(100vh - 72px);
  align-items: center;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.58fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  padding-top: 4rem;
}

.hero-lockup {
  display: flex;
  align-items: flex-end;
  gap: clamp(1.25rem, 2.2vw, 2rem);
  position: relative;
  padding-bottom: 4px;
}

.hero-identity {
  min-width: 0;
  flex: 1 1 auto;
}

.hero-character {
  flex: 0 0 clamp(220px, 21vw, 315px);
  margin: 0;
}

.hero-character img {
  display: block;
  width: 100%;
  height: auto;
  max-height: clamp(360px, 46vw, 560px);
  object-fit: contain;
  object-position: bottom center;
}

.hero-title-bar {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--green), var(--cyan));
  box-shadow: 0 0 18px rgba(123, 241, 255, 0.32);
}

.eyebrow,
.section-kicker {
  margin: 0 0 1rem;
  color: var(--green);
  font-family: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: clamp(0.78rem, 1.8vw, 0.95rem);
  font-weight: 700;
  text-transform: uppercase;
}

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

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.05;
}

h1 {
  max-width: none;
  color: var(--text);
  font-size: clamp(4.4rem, 7.1vw, 6.8rem);
  font-weight: 950;
  overflow-wrap: normal;
  text-transform: uppercase;
  text-shadow:
    0 0 20px rgba(123, 241, 255, 0.22),
    0 0 64px rgba(123, 241, 255, 0.14);
  white-space: nowrap;
}

h2 {
  max-width: 780px;
  font-size: clamp(2rem, 5vw, 4.3rem);
  font-weight: 850;
}

h3 {
  font-size: clamp(1.15rem, 2vw, 1.35rem);
}

.hero-text {
  max-width: 680px;
  margin: 1.4rem 0 0;
  color: #c9dadd;
  font-size: clamp(1.1rem, 2.4vw, 1.45rem);
}

.hero-actions,
.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.hero-actions {
  margin-top: 2rem;
}

.button,
.contact-card {
  min-height: 48px;
  border: 1px solid var(--line-strong);
  color: var(--text);
  text-decoration: none;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease, transform 160ms ease;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.82rem 1.05rem;
  font-weight: 800;
}

.button:hover,
.button:focus-visible,
.contact-card:hover,
.contact-card:focus-visible {
  border-color: var(--cyan);
  color: var(--cyan);
  transform: translateY(-2px);
}

.button.primary {
  background: var(--cyan);
  color: #001012;
}

.button.primary:hover,
.button.primary:focus-visible {
  background: var(--green);
  color: #001208;
}

.button.secondary {
  background: rgba(123, 241, 255, 0.055);
}

.signal-panel,
.work-card,
.project-card,
.redhead,
.contact-card {
  position: relative;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(8, 13, 15, 0.92), rgba(3, 4, 5, 0.94));
  box-shadow: var(--shadow);
}

.signal-panel::before,
.work-card::before,
.project-card::before,
.redhead::before,
.contact-card::before {
  position: absolute;
  top: -1px;
  left: 1rem;
  width: 64px;
  height: 1px;
  content: "";
  background: var(--cyan);
  box-shadow: 0 0 18px var(--cyan);
}

.signal-panel {
  align-self: center;
  padding: 1rem;
}

.panel-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 44px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-family: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.85rem;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 16px var(--green);
}

.signal-list {
  display: grid;
  gap: 1rem;
  margin: 1rem 0 0;
}

.signal-list div {
  padding: 1rem;
  background: rgba(123, 241, 255, 0.035);
}

.signal-list dt {
  margin-bottom: 0.25rem;
  color: var(--quiet);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.signal-list dd {
  margin: 0;
  color: var(--text);
  font-weight: 700;
}

.split {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  border-top: 1px solid rgba(123, 241, 255, 0.12);
}

.prose p {
  margin: 0;
  color: #c7d5d8;
  font-size: clamp(1rem, 1.7vw, 1.14rem);
}

.prose p + p {
  margin-top: 1rem;
}

.section-heading {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.work-grid,
.project-grid {
  display: grid;
  gap: 1rem;
}

.work-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.project-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.work-card,
.project-card {
  min-height: 260px;
  padding: 1.35rem;
}

.work-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-index {
  color: var(--red);
  font-family: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.9rem;
  font-weight: 800;
}

.work-card h3,
.project-card h3 {
  margin-top: 1.5rem;
}

.work-card p,
.project-card p,
.redhead p {
  margin: 0.9rem 0 0;
  color: var(--muted);
}

.redhead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.48fr);
  gap: clamp(2rem, 5vw, 4rem);
  width: min(100% - 2rem, var(--max-width));
  padding: clamp(2rem, 5vw, 4rem);
}

.redhead-copy p {
  max-width: 720px;
  font-size: clamp(1rem, 1.7vw, 1.15rem);
}

.principles {
  display: grid;
  gap: 0.8rem;
  align-content: start;
  margin: 0;
  padding: 0;
  list-style: none;
}

.principles li {
  border-left: 2px solid var(--green);
  padding: 0.9rem 1rem;
  background: rgba(115, 255, 157, 0.055);
  color: #d9f8df;
  font-weight: 750;
}

.project-card {
  display: flex;
  flex-direction: column;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.project-meta span {
  border: 1px solid rgba(255, 178, 92, 0.28);
  padding: 0.25rem 0.5rem;
  color: var(--amber);
  font-family: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.76rem;
  font-weight: 800;
}

.personal {
  border-bottom: 1px solid rgba(123, 241, 255, 0.12);
}

.contact {
  padding-bottom: 4rem;
}

.contact h2 {
  margin-bottom: 2rem;
}

.contact-card {
  display: grid;
  min-width: min(100%, 280px);
  gap: 0.15rem;
  padding: 1rem;
}

.contact-card span {
  color: var(--quiet);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.contact-card strong {
  overflow-wrap: anywhere;
}

.site-footer {
  width: min(100% - 2rem, var(--max-width));
  margin: 0 auto;
  border-top: 1px solid rgba(123, 241, 255, 0.12);
  padding: 2rem 0 3rem;
  color: var(--quiet);
}

.site-footer p {
  margin: 0;
}

@media (max-width: 920px) {
  .hero,
  .split,
  .redhead {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 5rem;
  }

  .hero-lockup {
    align-items: flex-end;
  }

  .signal-panel {
    width: 100%;
  }

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

  .work-card,
  .project-card {
    min-height: auto;
  }
}

@media (max-width: 640px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    min-height: 96px;
    gap: 0.35rem;
  }

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

  .nav-links a {
    padding-inline: 0;
  }

  .section {
    padding: 4.2rem 0;
  }

  .hero {
    min-height: calc(100vh - 96px);
    padding-top: 3rem;
  }

  .hero-lockup {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(104px, 28vw);
    gap: 0.9rem;
    padding-bottom: 4px;
  }

  .hero-character {
    align-self: end;
  }

  .hero-character img {
    max-height: clamp(170px, 52vw, 240px);
  }

  h1 {
    font-size: clamp(3rem, 15vw, 5.8rem);
  }

  .hero-actions,
  .contact-links {
    flex-direction: column;
  }

  .button,
  .contact-card {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .hero-lockup {
    grid-template-columns: minmax(0, 1fr) 92px;
  }

  .hero-character {
    align-self: end;
  }

  .hero-character img {
    max-height: 168px;
  }

  h1 {
    font-size: clamp(2.7rem, 13vw, 3.4rem);
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
