:root {
  --bg: #071018;
  --bg-2: #0d1620;
  --panel: rgba(8, 14, 22, 0.78);
  --panel-strong: rgba(5, 10, 16, 0.92);
  --line: rgba(202, 227, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #eef6ff;
  --muted: #aac0d8;
  --muted-2: #7f96af;
  --accent: #7ee0ff;
  --accent-2: #95ffcc;
  --accent-3: #ffc96e;
  --warn: #ffb08a;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  --radius: 8px;
  --max: 1220px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background:
    radial-gradient(circle at 10% 0%, rgba(126, 224, 255, 0.14), transparent 28%),
    radial-gradient(circle at 90% 8%, rgba(149, 255, 204, 0.10), transparent 26%),
    linear-gradient(180deg, var(--bg) 0%, #0a121b 46%, #081018 100%);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

button,
a {
  font: inherit;
}

.page {
  position: relative;
  min-height: 100vh;
}

#gridCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.6;
}

.noise,
.scanlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.noise {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 3px 3px;
  mix-blend-mode: screen;
  opacity: 0.25;
}

.scanlines {
  background: linear-gradient(
    180deg,
    transparent 0,
    rgba(255, 255, 255, 0.02) 1px,
    transparent 2px
  );
  background-size: 100% 4px;
  opacity: 0.18;
}

.topbar,
main {
  position: relative;
  z-index: 1;
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 0 18px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.76rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 14px;
  height: 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.brand-text {
  color: var(--text);
}

.topbar-note {
  color: var(--muted-2);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.85fr);
  gap: 20px;
  align-items: stretch;
}

.hero-copy,
.hero-portrait,
.tile,
.matrix-item,
.step,
.footer-grid > div {
  background: linear-gradient(180deg, rgba(10, 16, 25, 0.96), rgba(6, 10, 17, 0.92));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 34px;
  min-height: 100%;
}

.eyebrow,
.section-label {
  margin: 0 0 14px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.74rem;
}

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

h1 {
  margin-bottom: 14px;
  max-width: 12ch;
  font-size: clamp(2.7rem, 5vw, 5.4rem);
  line-height: 0.96;
  letter-spacing: 0;
}

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

h3 {
  margin-bottom: 10px;
  font-size: 1.05rem;
  line-height: 1.2;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 56ch;
  margin-bottom: 14px;
  color: var(--text);
  font-size: 1.08rem;
}

.hero-subcopy {
  max-width: 68ch;
  margin-bottom: 24px;
  color: var(--muted);
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-points span {
  padding: 10px 14px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.hero-portrait {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
}

.portrait-frame {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 340px;
  background:
    linear-gradient(180deg, rgba(126, 224, 255, 0.06), rgba(149, 255, 204, 0.02)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
  border: 1px solid var(--line);
  overflow: hidden;
}

.portrait-frame::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px dashed rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.portrait {
  width: min(100%, 320px);
  height: auto;
  display: block;
}

.portrait-caption {
  margin: 0;
  color: var(--muted-2);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.74rem;
}

.band {
  margin-top: 18px;
  padding: 26px 0 0;
}

.band-alt {
  padding-top: 30px;
}

.band-footer {
  padding-bottom: 38px;
}

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

.section-head h2 {
  max-width: 14ch;
}

.project-grid,
.matrix,
.steps,
.footer-grid {
  display: grid;
  gap: 16px;
}

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

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

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

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

.tile,
.matrix-item,
.step,
.footer-grid > div {
  padding: 22px;
}

.tile-meta {
  margin-bottom: 0;
  color: var(--muted-2);
  font-size: 0.94rem;
}

.matrix-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  margin-bottom: 16px;
  border: 1px solid var(--line-strong);
  color: var(--accent);
  font-size: 0.88rem;
}

.matrix-item p,
.tile p,
.step p {
  color: var(--muted);
  margin-bottom: 0;
}

.step {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.step span {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid var(--line-strong);
  color: var(--accent-2);
  font-weight: 700;
}

.footer-grid > div h2 {
  font-size: 1.2rem;
}

.contact-link {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid rgba(126, 224, 255, 0.4);
  padding-bottom: 2px;
}

.contact-link:hover {
  color: var(--accent);
  border-bottom-color: rgba(126, 224, 255, 0.75);
}

#updatedAt {
  color: var(--accent-2);
}

.footer-grid > div:nth-child(2) {
  border-color: rgba(255, 176, 138, 0.22);
}

.footer-grid > div:nth-child(2) h2,
.footer-grid > div:nth-child(2) .section-label {
  color: var(--warn);
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

@media (max-width: 1060px) {
  .hero,
  .project-grid,
  .matrix,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .section-head {
    align-items: start;
    flex-direction: column;
  }

  .hero-portrait {
    order: -1;
  }
}

@media (max-width: 720px) {
  .topbar,
  main {
    width: min(var(--max), calc(100% - 24px));
  }

  .topbar {
    padding-top: 18px;
    font-size: 0.7rem;
  }

  .hero-copy,
  .hero-portrait,
  .tile,
  .matrix-item,
  .step,
  .footer-grid > div {
    padding: 18px;
  }

  .portrait-frame {
    min-height: 260px;
  }

  h1 {
    font-size: 2.6rem;
  }

  h2 {
    font-size: 1.4rem;
  }
}
