@font-face {
  font-family: "Manrope";
  src: url("assets/Manrope-VariableFont_wght.ttf") format("truetype");
  font-style: normal;
  font-weight: 200 800;
}

:root {
  color-scheme: dark;
  --bg: #060606;
  --line: rgba(255, 255, 255, 0.12);
  --line-soft: rgba(255, 255, 255, 0.06);
  --text: #ece7dc;
  --muted: rgba(236, 231, 220, 0.58);
  --muted-strong: rgba(236, 231, 220, 0.8);
  --accent: #b8c6ff;
  --max-width: 980px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: clip;
  font-family: "Manrope", sans-serif;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 120px),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 23px,
      rgba(255, 255, 255, 0.025) 23px,
      rgba(255, 255, 255, 0.025) 24px
    ),
    var(--bg);
  color: var(--text);
}

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

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

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

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 0 18px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.73rem;
  font-weight: 650;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.brand-mark {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.site-nav {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-size: 0.8rem;
  letter-spacing: 0.01em;
}

.site-nav a,
.project-links a,
.about-links a {
  color: var(--muted);
  transition:
    color 160ms ease,
    opacity 160ms ease,
    transform 160ms ease;
}

.site-nav a:hover,
.project-links a:hover,
.about-links a:hover {
  color: var(--text);
}

.site-nav a::before,
.project-links a::before,
.about-links a::before,
.hero-actions a::before {
  content: "[";
  opacity: 0.35;
  margin-right: 2px;
}

.site-nav a::after,
.project-links a::after,
.about-links a::after,
.hero-actions a::after {
  content: "]";
  opacity: 0.35;
  margin-left: 2px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(180px, 0.8fr);
  align-items: start;
  gap: 18px;
  padding: 24px 0 10px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: lowercase;
}

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

h1 {
  max-width: 24ch;
  font-size: clamp(1.5rem, 2.6vw, 2.05rem);
  line-height: 1.16;
  letter-spacing: -0.02em;
  font-weight: 650;
  text-wrap: balance;
}

.hero-text {
  max-width: 34rem;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.6;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  font-size: 0.74rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition:
    transform 160ms ease,
    color 160ms ease,
    opacity 160ms ease;
}

.button:hover {
  transform: none;
}

.button-primary {
  color: var(--text);
}

.button-secondary {
  color: var(--muted);
}

.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1.08;
  width: min(100%, 240px);
  margin-left: auto;
  border: 1px solid var(--line);
  overflow: hidden;
}

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

.hero-visual::before {
  background:
    linear-gradient(var(--line-soft), var(--line-soft)) 50% 0 / 1px 100% no-repeat,
    linear-gradient(90deg, var(--line-soft), var(--line-soft)) 0 50% / 100% 1px no-repeat,
    linear-gradient(45deg, transparent 49.5%, var(--line-soft) 50%, transparent 50.5%) 50% 50% / 100% 100% no-repeat,
    linear-gradient(-45deg, transparent 49.5%, var(--line-soft) 50%, transparent 50.5%) 50% 50% / 100% 100% no-repeat;
}

.hero-visual::after {
  inset: 14px;
  border: 1px dashed var(--line-soft);
}

.pulse-ring,
.pulse-core,
.pulse-beam,
.hero-icon {
  position: absolute;
  inset: 0;
  margin: auto;
}

.pulse-ring {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  animation: pulse 6s ease-in-out infinite;
}

.pulse-ring-1 {
  width: 34%;
  height: 34%;
}

.pulse-ring-2 {
  width: 58%;
  height: 58%;
  display: block;
  opacity: 0.35;
}

.pulse-ring-3 {
  width: 78%;
  height: 78%;
  display: block;
  opacity: 0.18;
}

.pulse-core {
  width: 12%;
  height: 12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.16), rgba(0, 0, 0, 0.96) 64%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  animation: core-pulse 4.6s ease-in-out infinite;
}

.pulse-beam {
  width: 2px;
  height: 82%;
  background: linear-gradient(
    180deg,
    transparent 10%,
    rgba(184, 198, 255, 0.58) 40%,
    rgba(255, 255, 255, 0) 100%
  );
  opacity: 0.62;
  transform-origin: center;
  animation: spin 18s linear infinite;
}

.pulse-beam-1 {
  transform: rotate(28deg);
}

.pulse-beam-2 {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(184, 198, 255, 0.58) 66%,
    transparent 94%
  );
  transform: rotate(208deg);
}

.hero-icon {
  display: none;
}

.section {
  padding: 22px 0;
}

.section-heading {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}

h2 {
  max-width: 16ch;
  font-size: clamp(1rem, 1.4vw, 1.24rem);
  line-height: 1.14;
  letter-spacing: -0.01em;
  font-weight: 650;
}

.projects-grid {
  display: grid;
  gap: 14px;
}

.project-card,
.about-card {
  border: 1px dashed var(--line-soft);
  background: transparent;
}

.project-card {
  position: relative;
  padding: 16px;
}

.project-top {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.project-icon {
  width: 52px;
  height: 52px;
  object-fit: cover;
}

.project-label,
.about-location {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.78rem;
}

.project-description {
  max-width: 64ch;
  margin-top: 12px;
  color: var(--muted-strong);
  font-size: 0.8rem;
  line-height: 1.58;
}

.project-links,
.about-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  font-weight: 650;
  text-transform: uppercase;
}

.about-card {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 18px;
  padding: 16px;
  align-items: start;
}

.spin {
  animation: spin 1.5s linear infinite;
}

.signal-section {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding-top: 26px;
  overflow: hidden;
}

.signal-plot-frame {
  position: relative;
  height: clamp(170px, 22vw, 300px);
  overflow: hidden;
  border-bottom: 2px solid var(--line-soft);
  border-top: 2px solid var(--line-soft);
}

.signal-plot-canvas {
  position: absolute;
  top: -50%;
  left: 0;
  width: 100%;
  height: 200%;
  display: block;
}

.about-photo {
  width: 100%;
  max-width: 132px;
  aspect-ratio: 1;
  border-radius: 0;
  object-fit: cover;
  filter: saturate(0.88) contrast(1.04);
  outline: 1px solid var(--line);
  outline-offset: 4px;
}

.about-copy {
  display: grid;
  gap: 6px;
}

.about-copy p {
  color: var(--muted-strong);
  font-size: 0.8rem;
  line-height: 1.58;
}

.about-copy h3,
.project-top h3 {
  font-size: 0.9rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(0.99);
    opacity: 0.22;
  }
  50% {
    transform: scale(1.015);
    opacity: 0.4;
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes core-pulse {
  0%,
  100% {
    transform: scale(0.99);
  }
  50% {
    transform: scale(1.01);
  }
}

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

  .hero {
    padding-top: 22px;
  }

  .hero-visual {
    width: min(100%, 200px);
    margin: 8px 0 0;
  }

  h1,
  h2 {
    max-width: none;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(calc(100% - 24px), var(--max-width));
    padding-top: 14px;
  }

  .site-header {
    flex-direction: column;
    align-items: flex-start;
    padding-bottom: 14px;
  }

  .site-nav {
    flex-wrap: wrap;
    gap: 10px;
  }

  .project-card,
  .about-card {
    padding: 14px;
  }

  .signal-plot-frame {
    height: clamp(140px, 28vw, 190px);
  }

  .project-top {
    align-items: flex-start;
  }

  .project-icon {
    width: 46px;
    height: 46px;
  }

  h1 {
    max-width: none;
    font-size: clamp(1.34rem, 7vw, 1.75rem);
  }

  h2 {
    font-size: clamp(0.96rem, 5vw, 1.14rem);
  }

  .hero-text,
  .project-description,
  .about-copy p {
    font-size: 0.78rem;
  }
}
