:root {
  color-scheme: dark;
  --bg: #000000;
  --panel: #050607;
  --panel-strong: #0a0d0f;
  --text: #f4fbfc;
  --muted: #a6b6b8;
  --quiet: #708184;
  --line: rgba(255, 255, 255, 0.14);
  --line-strong: rgba(255, 255, 255, 0.28);
  --cyan: #67e8f9;
  --green: #9dff70;
  --amber: #ffb45f;
  --red: #ff5366;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  --glow: 0 0 34px rgba(103, 232, 249, 0.18);
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 20% 10%, rgba(103, 232, 249, 0.14), transparent 34rem),
    linear-gradient(145deg, rgba(157, 255, 112, 0.08), transparent 28rem),
    #000;
  background-size: 44px 44px, 44px 44px, 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), #000 78%),
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 6px);
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 20;
  border: 1px solid var(--cyan);
  padding: 0.7rem 1rem;
  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(255, 255, 255, 0.1);
  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: 76px;
  margin: 0 auto;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  width: min(42vw, 280px);
  min-width: 170px;
  text-decoration: none;
}

.brand-mark {
  display: block;
  width: 100%;
  height: auto;
  filter: invert(1);
}

.nav-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.25rem;
}

.nav-links a {
  padding: 0.55rem 0.72rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  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 - 76px);
  align-items: center;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.52fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  padding-top: 4rem;
}

.hero-logo {
  display: block;
  width: min(100%, 760px);
  height: auto;
  margin-bottom: 1.5rem;
  filter: invert(1) drop-shadow(0 0 28px rgba(103, 232, 249, 0.22));
}

.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.94rem);
  font-weight: 800;
  text-transform: uppercase;
}

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

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

h1 {
  max-width: 940px;
  color: var(--text);
  font-size: clamp(3.3rem, 8vw, 7.5rem);
  font-weight: 950;
  text-transform: uppercase;
  text-shadow:
    0 0 20px rgba(103, 232, 249, 0.22),
    0 0 80px rgba(157, 255, 112, 0.12);
}

h2 {
  max-width: 840px;
  font-size: clamp(2rem, 5vw, 4.15rem);
  font-weight: 880;
}

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

.hero-text {
  max-width: 740px;
  margin: 1.35rem 0 0;
  color: #cddbdd;
  font-size: clamp(1.08rem, 2.2vw, 1.38rem);
}

.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: 850;
}

.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(--text);
  color: #000;
}

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

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

.signal-panel,
.notice,
.work-card,
.project-card,
.principles-section,
.contact-card {
  position: relative;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(10, 13, 15, 0.94), rgba(2, 3, 4, 0.96));
  box-shadow: var(--shadow), var(--glow);
}

.signal-panel::before,
.notice::before,
.work-card::before,
.project-card::before,
.principles-section::before,
.contact-card::before {
  position: absolute;
  top: -1px;
  left: 1rem;
  width: 72px;
  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(255, 255, 255, 0.04);
}

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

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

.notice {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  padding: clamp(2rem, 5vw, 4rem);
}

.notice p:last-child {
  margin: 0;
  color: #cfdddf;
  font-size: clamp(1rem, 1.7vw, 1.12rem);
}

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

.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(4, 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: 850;
}

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

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

.principles-section {
  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);
}

.principles-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(157, 255, 112, 0.065);
  color: #e7ffe1;
  font-weight: 760;
}

.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, 180, 95, 0.32);
  padding: 0.25rem 0.5rem;
  color: var(--amber);
  font-family: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.76rem;
  font-weight: 850;
}

.community {
  border-bottom: 1px solid rgba(255, 255, 255, 0.11);
}

.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: 850;
  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(255, 255, 255, 0.11);
  padding: 2rem 0 3rem;
  color: var(--quiet);
}

.site-footer p {
  margin: 0;
}

.site-footer strong {
  color: var(--text);
}

@media (max-width: 1080px) {
  .work-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

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

  .signal-panel {
    width: 100%;
  }

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

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

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

  .brand {
    width: min(100%, 250px);
  }

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

  .nav-links a {
    padding: 0.4rem 0;
    font-size: 0.82rem;
  }

  .section {
    padding: 4.2rem 0;
  }

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

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

  h1 {
    font-size: clamp(2.75rem, 14vw, 4.8rem);
  }

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

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

@media (max-width: 460px) {
  .nav-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .nav-links a {
    font-size: 0.78rem;
  }

  h1 {
    font-size: clamp(2.35rem, 13vw, 3.2rem);
  }

  .notice,
  .principles-section {
    padding: 1.35rem;
  }
}

@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;
  }
}
