:root {
  --ink: #eef2e8;
  --muted: #a6b0a1;
  --dim: #758073;
  --bg: #101310;
  --panel: #171c17;
  --line: rgba(216, 232, 205, 0.14);
  --green: #b8d36b;
  --green-deep: #819d43;
  --orange: #df8753;
  --serif: Georgia, "Times New Roman", serif;
  --sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display: "Space Grotesk", var(--sans);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  min-width: 320px;
  overflow-x: hidden;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 76% 13%, rgba(117, 151, 66, 0.13), transparent 27rem),
    radial-gradient(circle at 16% 67%, rgba(220, 120, 72, 0.08), transparent 25rem),
    var(--bg);
  font-family: var(--sans);
  line-height: 1.5;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
  opacity: 0.33;
  background-image: linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, black, transparent 75%);
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}

.shell { width: min(1160px, calc(100% - 64px)); margin-inline: auto; }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 30px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-decoration: none;
}

.brand-mark { display: inline-flex; align-items: end; gap: 3px; height: 21px; }
.brand-mark span { display: block; width: 4px; border-radius: 4px; background: var(--green); transform: skew(-24deg); }
.brand-mark span:nth-child(1) { height: 11px; opacity: .58; }
.brand-mark span:nth-child(2) { height: 17px; opacity: .8; }
.brand-mark span:nth-child(3) { height: 21px; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr);
  align-items: center;
  min-height: min(760px, calc(100svh - 90px));
  gap: 72px;
  padding-top: 44px;
  padding-bottom: 72px;
}

.eyebrow, .section-kicker {
  color: var(--green);
  font-size: .71rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.eyebrow { display: flex; align-items: center; gap: 10px; }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 7px rgba(223, 135, 83, .12); }
.hero-category { margin: 22px 0 0; color: var(--dim); font-size: .68rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }

h1, h2 { margin: 0; font-family: var(--display); font-weight: 600; letter-spacing: -.065em; line-height: .94; }
h1 { max-width: 760px; margin-top: 22px; font-size: clamp(3.7rem, 5.8vw, 6.1rem); line-height: .98; }
h1 em { color: var(--green); font-family: var(--serif); font-size: .97em; font-weight: 400; letter-spacing: -.07em; }
h2 { max-width: 680px; font-size: clamp(2.5rem, 5vw, 4.6rem); }
.hero-text { max-width: 560px; margin: 34px 0 0; color: var(--muted); font-size: 1.04rem; line-height: 1.78; }
.hero-path { display: flex; align-items: center; gap: 10px; margin-top: 43px; color: var(--dim); font-family: var(--display); font-size: .63rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.hero-path span:first-child, .hero-path span:last-child { color: var(--ink); }
.hero-path i { display: block; width: 24px; height: 1px; background: var(--line); }

.hero-art { position: relative; width: min(100%, 500px); justify-self: end; }
.trace-diagram { display: block; width: 100%; height: auto; overflow: visible; }
.trace-surface { fill: rgba(18, 25, 18, .48); stroke: rgba(216, 232, 205, .14); stroke-width: 1; }
.trace-grid { fill: none; stroke: rgba(216, 232, 205, .06); stroke-width: 1; stroke-dasharray: 2 9; }
.trace-meta { fill: var(--dim); font-family: var(--display); font-size: 10px; font-weight: 700; letter-spacing: 2.4px; }
.trace-meta-main { fill: var(--green); }
.trace-line-under { fill: none; stroke: rgba(216, 232, 205, .1); stroke-width: 8; stroke-linecap: round; }
.trace-line { fill: none; stroke: url(#routeGradient); stroke-width: 1.5; stroke-linecap: round; }
.trace-flow-glow { fill: rgba(184, 211, 107, .25); filter: url(#smallGlow); }
.trace-flow-point { fill: var(--green); }
.node-halo { fill: rgba(184, 211, 107, .1); stroke: rgba(184, 211, 107, .22); stroke-width: 1; }
.node-dot { fill: var(--green); stroke: var(--bg); stroke-width: 3; }
.node-orange { fill: var(--orange); }
.node-name, .node-number { font-family: var(--display); font-size: 10px; font-weight: 700; letter-spacing: 2px; }
.node-name { fill: var(--ink); }
.node-number { fill: var(--orange); font-size: 9px; letter-spacing: 1.5px; }
.stone-glow { fill: rgba(184, 211, 107, .25); }
.stone-face { stroke: rgba(184, 211, 107, .5); stroke-width: 1; }
.stone-face-back { fill: url(#stoneGradient); }
.stone-face-left { fill: rgba(21, 42, 28, .72); }
.stone-face-right { fill: rgba(104, 136, 55, .24); }
.stone-cut { fill: none; stroke: rgba(238, 242, 232, .23); stroke-width: 1; }
.stone-name, .stone-sub { font-family: var(--display); font-weight: 700; letter-spacing: 3px; }
.stone-name { fill: var(--ink); font-size: 20px; }
.stone-sub { fill: var(--muted); font-size: 7px; letter-spacing: 1.7px; }
.trace-panel rect { fill: rgba(16, 19, 16, .86); stroke: rgba(184, 211, 107, .42); stroke-width: 1; }
.panel-kicker, .panel-copy { font-family: var(--display); }
.panel-kicker { fill: var(--green); font-size: 8px; font-weight: 700; letter-spacing: 1.7px; }
.panel-status-dot { fill: var(--green); filter: url(#smallGlow); }
.panel-title { fill: var(--ink); font-family: var(--display); font-size: 17px; font-weight: 600; letter-spacing: -.4px; }
.panel-copy { fill: var(--dim); font-size: 9px; letter-spacing: .4px; }

.signal-band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(25, 31, 24, .58); }
.signal-grid { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: 30px; padding: 35px 0; }
.signal-lead { margin: 0; font-family: var(--display); font-size: 1.32rem; font-weight: 600; line-height: 1.15; letter-spacing: -.04em; }
.signal-lead em { color: var(--green); font-family: var(--serif); font-weight: 400; }
.signal-item { display: grid; grid-template-columns: auto 1fr; column-gap: 13px; align-content: center; border-left: 1px solid var(--line); padding-left: 23px; }
.signal-item span { grid-row: span 2; color: var(--orange); font-family: var(--display); font-size: .7rem; }
.signal-item strong { font-family: var(--display); font-size: .92rem; }
.signal-item small { margin-top: 3px; color: var(--dim); font-size: .76rem; }

.closing { display: flex; align-items: end; justify-content: space-between; min-height: 400px; padding-top: 100px; padding-bottom: 100px; }
.section-kicker { margin: 0 0 24px; }
.closing-mark { display: grid; place-items: center; width: 74px; height: 74px; border: 1px solid var(--line); border-radius: 50%; color: var(--green); font-size: 1.5rem; transform: rotate(14deg); }
.site-footer { display: flex; justify-content: space-between; gap: 25px; padding-top: 22px; padding-bottom: 30px; border-top: 1px solid var(--line); color: var(--dim); font-size: .68rem; letter-spacing: .07em; text-transform: uppercase; }

.reveal { opacity: 0; transform: translateY(18px); animation: reveal .8s cubic-bezier(.2,.8,.2,1) forwards; }
.delay-1 { animation-delay: .16s; }
@keyframes reveal { to { opacity: 1; transform: translateY(0); } }

@media (min-width: 901px) and (max-width: 1120px) {
  .shell { width: min(100% - 64px, 1040px); }
  .hero {
    grid-template-columns: minmax(0, 1.08fr) minmax(330px, .92fr);
    min-height: 650px;
    gap: 42px;
    padding-top: 38px;
    padding-bottom: 55px;
  }
  h1 { max-width: 520px; font-size: clamp(3.3rem, 5.8vw, 5.2rem); }
  .hero-text { max-width: 420px; font-size: 1rem; }
  .hero-art { width: min(100%, 400px); }
  .signal-grid { gap: 20px; }
}

@media (max-width: 900px) {
  .shell { width: min(100% - 64px, 760px); }
  .hero { display: block; min-height: auto; padding-top: 92px; }
  .hero-copy { max-width: 640px; }
  h1 { max-width: 650px; font-size: clamp(3.35rem, 8vw, 5.2rem); }
  .hero-art { width: min(100%, 450px); margin: 53px auto 10px; }
  .signal-grid { grid-template-columns: 1fr 1fr; gap: 25px 18px; }
  .signal-lead { grid-column: 1 / -1; margin-bottom: 8px; }
  .signal-item { padding-left: 15px; }
  .closing { min-height: 350px; padding-top: 76px; padding-bottom: 76px; }
}

@media (max-width: 480px) {
  .shell { width: min(100% - 32px, 600px); }
  .site-header { padding-top: 22px; }
  .hero { padding-top: 72px; text-align: center; }
  .hero-copy { max-width: 360px; margin-inline: auto; }
  .eyebrow { justify-content: center; font-size: .61rem; letter-spacing: .13em; }
  .hero-category { max-width: none; margin-top: 18px; font-size: .57rem; line-height: 1.5; }
  h1 { max-width: 360px; margin-inline: auto; font-size: clamp(2.85rem, 14vw, 4.3rem); line-height: .98; }
  .hero-text { max-width: 330px; margin: 24px auto 0; font-size: .94rem; line-height: 1.62; }
  .hero-path { justify-content: center; gap: 6px; margin-top: 31px; font-size: .49rem; letter-spacing: .08em; }
  .hero-path i { width: 10px; }
  .hero-art { width: 100%; max-width: 360px; margin: 35px auto 0; }
  .trace-grid { display: none; }
  .trace-meta { font-size: 8px; letter-spacing: 1.7px; }
  .node-name { font-size: 9px; letter-spacing: 1.5px; }
  .node-number { font-size: 8px; }
  .stone-name { font-size: 18px; }
  .stone-sub { font-size: 6px; }
  .trace-panel { display: none; }
  .signal-grid { grid-template-columns: 1fr; }
  .signal-lead { grid-column: auto; }
  .signal-item { min-height: 55px; }
  .closing { display: block; }
  .closing-mark { margin-top: 38px; }
  .site-footer { display: grid; gap: 8px; line-height: 1.5; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; animation: none; }
}
