:root {
  --bg: #050505;
  --ink: #f4f1ea;
  --muted: #b8b4ad;
  --dim: #74716c;
  --line: rgba(244, 241, 234, 0.16);
  --white: #f4f1ea;
  --silver: #d6d2c8;
  --smoke: #8a8781;
  --panel: rgba(12, 12, 12, 0.78);
  --panel-strong: rgba(18, 18, 18, 0.9);
  --shadow: 0 34px 110px rgba(0, 0, 0, 0.5);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: Inter, "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  letter-spacing: 0;
  background:
    radial-gradient(circle at 18% 16%, rgba(255, 255, 255, 0.08), transparent 28rem),
    radial-gradient(circle at 78% 12%, rgba(255, 255, 255, 0.055), transparent 26rem),
    linear-gradient(135deg, #0b0b0b, #050505 42%, #151515),
    var(--bg);
}

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

#field {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 1;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(244, 241, 234, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 241, 234, 0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.1));
}

.site-header {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 10;
  width: min(1160px, calc(100% - 32px));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 10px 10px 14px;
  border: 1px solid rgba(244, 241, 234, 0.18);
  border-radius: 8px;
  background: rgba(8, 8, 8, 0.72);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

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

.brand {
  flex: 0 0 auto;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  color: #050505;
  background: linear-gradient(135deg, #ffffff, #bdbab3);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: lowercase;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.34), 0 12px 34px rgba(255, 255, 255, 0.08);
}

.nav {
  gap: 2px;
  padding: 3px;
  border: 1px solid rgba(244, 241, 234, 0.12);
  border-radius: 8px;
  background: rgba(244, 241, 234, 0.035);
}

.language-control {
  flex: 0 0 auto;
}

.language-control select {
  height: 34px;
  min-width: 76px;
  padding: 0 28px 0 10px;
  border: 1px solid rgba(244, 241, 234, 0.16);
  border-radius: 4px;
  color: var(--ink);
  background: rgba(244, 241, 234, 0.045);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 800;
  outline: none;
}

.language-control select:focus {
  border-color: rgba(244, 241, 234, 0.62);
}

.nav a {
  display: grid;
  place-items: center;
  min-width: 76px;
  height: 34px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
  transition: color 180ms ease, background 180ms ease;
}

.nav a:hover {
  color: var(--ink);
  background: rgba(244, 241, 234, 0.08);
}

main {
  position: relative;
  z-index: 2;
}

.hero {
  min-height: 100svh;
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.72fr);
  align-items: center;
  gap: 44px;
  padding: 128px 0 72px;
}

.hero-copy {
  max-width: 780px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 0 11px;
  border-bottom: 1px solid rgba(244, 241, 234, 0.34);
  border-radius: 8px;
  color: var(--silver);
  background: transparent;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.live-dot {
  width: 18px;
  height: 1px;
  border-radius: 0;
  background: var(--silver);
  box-shadow: none;
}

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

h1 {
  margin-top: 24px;
  max-width: 780px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(58px, 7.3vw, 100px);
  line-height: 0.92;
  font-weight: 700;
  letter-spacing: 0;
}

h1 span {
  display: block;
  margin-top: 10px;
  color: #cac6bd;
  -webkit-text-stroke: 0;
  font-size: clamp(38px, 5vw, 68px);
}

.hero-line {
  margin-top: 24px;
  max-width: 720px;
  color: var(--ink);
  font-size: clamp(23px, 2.25vw, 31px);
  line-height: 1.22;
  font-weight: 760;
}

.hero-sub {
  margin-top: 16px;
  max-width: 690px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.72;
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.button {
  display: inline-grid;
  place-items: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 4px;
  font-weight: 850;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  color: #050505;
  background: linear-gradient(135deg, var(--silver), var(--white));
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.26);
}

.button.ghost {
  border: 1px solid var(--line);
  color: var(--ink);
  background: rgba(244, 241, 234, 0.035);
}

.signal-panel {
  position: relative;
  min-height: 440px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--panel);
  backdrop-filter: blur(22px);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.signal-panel::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(244, 241, 234, 0.11);
  border-radius: 2px;
  pointer-events: none;
}

.signal-panel::after {
  content: "";
  position: absolute;
  left: -20%;
  right: -20%;
  top: 31%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(244, 241, 234, 0.78), transparent);
  opacity: 0.45;
  animation: scan 7.5s ease-in-out infinite;
}

.panel-top,
.terminal,
.meter-grid {
  position: relative;
  z-index: 1;
}

.panel-top {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 17px;
  font-weight: 700;
}

.panel-top span:last-child {
  color: var(--silver);
}

.terminal {
  margin-top: 72px;
  padding: 24px 22px;
  border-radius: 4px;
  border: 1px solid rgba(244, 241, 234, 0.13);
  background: rgba(255, 255, 255, 0.035);
  color: var(--ink);
  font-size: 15px;
  line-height: 2.05;
  font-weight: 650;
}

.terminal p {
  display: flex;
  gap: 12px;
}

.terminal p > span:first-child {
  display: inline-block;
  flex: 0 0 34px;
  width: 34px;
  color: var(--white);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
}

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

.meter-grid div {
  min-height: 88px;
  padding: 14px;
  border: 1px solid rgba(244, 241, 234, 0.12);
  border-radius: 4px;
  background: rgba(244, 241, 234, 0.035);
}

.meter-grid strong,
.meter-grid span {
  display: block;
}

.meter-grid strong {
  font-size: 22px;
  font-weight: 900;
}

.meter-grid span {
  margin-top: 8px;
  color: var(--muted);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 12px;
  letter-spacing: 0.03em;
}

.section {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 88px 0;
}

.intro-band {
  padding: 30px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.intro-band p {
  max-width: 980px;
  color: var(--ink);
  font-size: clamp(24px, 3.7vw, 48px);
  line-height: 1.14;
  font-weight: 850;
}

.section-head {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  margin-bottom: 28px;
}

.section-head p,
.contact-copy p {
  color: var(--silver);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 18px;
  font-weight: 800;
  text-transform: uppercase;
}

.section-head h2,
.contact-copy h2,
.manifesto h2 {
  max-width: 860px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(34px, 5vw, 70px);
  line-height: 1;
  font-weight: 700;
}

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

.work-card {
  min-height: 310px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--panel-strong);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  position: relative;
}

.work-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(244, 241, 234, 0.12), transparent 38%),
    linear-gradient(315deg, rgba(120, 120, 120, 0.36), transparent 34%);
  opacity: 0;
  transition: opacity 220ms ease;
}

.work-card:hover::before {
  opacity: 1;
}

.work-card.wide {
  grid-column: span 2;
}

.work-card.alt::before {
  background:
    linear-gradient(135deg, rgba(96, 96, 96, 0.26), transparent 36%),
    linear-gradient(315deg, rgba(244, 241, 234, 0.12), transparent 34%);
}

.card-index,
.work-card h3,
.work-card p,
.tags {
  position: relative;
  z-index: 1;
}

.card-index {
  color: var(--dim);
  font-family: "JetBrains Mono", monospace;
  font-weight: 800;
}

.work-card h3 {
  margin-top: auto;
  color: var(--ink);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(36px, 5vw, 72px);
  line-height: 0.96;
  font-weight: 700;
}

.work-card p {
  margin-top: 18px;
  max-width: 760px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 600;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.tags span {
  padding: 7px 10px;
  border: 1px solid rgba(244, 241, 234, 0.12);
  border-radius: 4px;
  color: var(--ink);
  background: rgba(244, 241, 234, 0.035);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 700;
}

.stack-section {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1.1fr);
  gap: 40px;
  align-items: center;
}

.stack-section .section-head {
  grid-column: 1 / -1;
}

.stack-radar {
  position: relative;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 4px;
  background:
    repeating-radial-gradient(circle, rgba(244, 241, 234, 0.08) 0 1px, transparent 1px 78px),
    rgba(244, 241, 234, 0.025);
  overflow: hidden;
}

.stack-radar::before {
  content: "";
  position: absolute;
  inset: -50%;
  background: conic-gradient(from 0deg, transparent, rgba(244, 241, 234, 0.26), transparent 26%);
  animation: rotate 13s linear infinite;
}

.radar-core {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  color: #050505;
  background: linear-gradient(135deg, var(--silver), var(--white));
  font-family: "JetBrains Mono", monospace;
  font-weight: 800;
  box-shadow: 0 0 54px rgba(244, 241, 234, 0.18);
}

.orbit-list,
.orbit-list li {
  list-style: none;
  padding: 0;
  margin: 0;
}

.orbit-list li {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  transform: rotate(var(--angle)) translateX(min(30vw, 190px)) rotate(calc(var(--angle) * -1));
}

.orbit-list span {
  display: grid;
  place-items: center;
  min-width: 86px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(244, 241, 234, 0.14);
  border-radius: 4px;
  background: rgba(8, 8, 8, 0.76);
  backdrop-filter: blur(8px);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 800;
}

.stack-copy {
  display: grid;
  gap: 14px;
}

.stack-copy div {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(244, 241, 234, 0.03);
}

.stack-copy h3 {
  color: var(--silver);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 28px;
  font-weight: 700;
}

.stack-copy p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
  font-weight: 600;
}

.manifesto {
  padding: 120px 0;
}

.manifesto p {
  margin-bottom: 20px;
  color: var(--silver);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 20px;
  font-weight: 800;
}

.manifesto h2 {
  max-width: 1040px;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.62fr);
  gap: 32px;
  align-items: end;
  padding-bottom: 80px;
}

.contact-links {
  display: grid;
  gap: 10px;
}

.contact-links a,
.contact-links span {
  display: block;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--ink);
  background: rgba(244, 241, 234, 0.035);
  font-weight: 760;
  overflow-wrap: anywhere;
  transition: background 180ms ease, transform 180ms ease;
}

.contact-links a:hover {
  transform: translateY(-2px);
  background: rgba(244, 241, 234, 0.08);
}

[data-reveal] {
  transform: translateY(18px);
  opacity: 0;
  transition: opacity 700ms ease, transform 700ms ease;
}

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

.site-header[data-reveal] {
  transform: translateX(-50%) translateY(18px);
}

.site-header[data-reveal].is-visible {
  transform: translateX(-50%) translateY(0);
}

@keyframes scan {
  0%,
  100% {
    transform: translateY(-125px);
  }
  50% {
    transform: translateY(172px);
  }
}

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

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

  .hero {
    gap: 26px;
    padding-top: 118px;
  }

  .signal-panel {
    min-height: 390px;
  }

  .section-head {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .orbit-list li {
    transform: rotate(var(--angle)) translateX(min(34vw, 178px)) rotate(calc(var(--angle) * -1));
  }
}

@media (max-width: 680px) {
  .site-header {
    top: 10px;
    width: calc(100% - 20px);
    padding: 8px;
    gap: 8px;
  }

  .nav a {
    min-width: 44px;
    height: 32px;
    font-size: 11px;
  }

  .language-control select {
    min-width: 62px;
    height: 32px;
    padding-left: 8px;
    font-size: 11px;
  }

  .hero,
  .section {
    width: calc(100% - 24px);
  }

  .hero {
    min-height: auto;
    align-items: start;
    padding-top: 128px;
    padding-bottom: 54px;
  }

  h1 {
    font-size: clamp(50px, 16vw, 82px);
  }

  h1 span {
    font-size: clamp(38px, 12vw, 62px);
  }

  .hero-sub {
    font-size: 15px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .button {
    padding: 0 12px;
  }

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

  .work-card.wide {
    grid-column: auto;
  }

  .work-card {
    min-height: 280px;
    padding: 20px;
  }

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

  .stack-radar {
    min-height: 330px;
    aspect-ratio: auto;
  }

  .orbit-list li {
    transform: rotate(var(--angle)) translateX(132px) rotate(calc(var(--angle) * -1));
  }

  .orbit-list span {
    min-width: 70px;
    height: 34px;
    font-size: 11px;
  }

  .manifesto {
    padding: 78px 0;
  }
}

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