:root {
  --ink: #11110f;
  --black: #090a09;
  --paper: #f0ede6;
  --paper-2: #e7e2d8;
  --orange: #f04a2f;
  --orange-dark: #c9311d;
  --acid: #d8ff62;
  --muted: #79766f;
  --line: rgba(17, 17, 15, 0.2);
  --line-dark: rgba(240, 237, 230, 0.17);
  --sans: Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: "Iowan Old Style", "Baskerville", "Times New Roman", serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
button, input, textarea { font: inherit; }
button { color: inherit; }

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 12px 16px;
  background: var(--acid);
  color: var(--black);
  font-weight: 700;
}

.skip-link:focus { top: 16px; }

.site-header {
  position: relative;
  z-index: 5;
  min-height: 76px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 3.2vw;
  background: var(--black);
  color: var(--paper);
  border-bottom: 1px solid var(--line-dark);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  color: inherit;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.brand-glyph {
  position: relative;
  width: 25px;
  height: 25px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 3px;
}

.brand-glyph i { display: block; background: var(--orange); }
.brand-glyph i:nth-child(1) { grid-column: 1 / 3; }
.brand-glyph i:nth-child(2) { grid-column: 1; }
.brand-glyph i:nth-child(3) { grid-column: 2; }

.site-header nav { display: flex; gap: 34px; }
.site-header nav a,
footer a {
  color: inherit;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-decoration: none;
  text-transform: uppercase;
}
.site-header nav a:hover,
footer a:hover { color: var(--orange); }

.system-status {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #9c9d97;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.system-status span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 16px rgba(216, 255, 98, 0.65);
}

.hero {
  position: relative;
  min-height: 740px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, 0.78fr);
  align-items: center;
  gap: 5.5vw;
  padding: 82px 7vw 136px;
  overflow: hidden;
  background: var(--black);
  color: var(--paper);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.3;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}

.hero-copy { position: relative; z-index: 1; min-width: 0; max-width: 760px; }

.eyebrow {
  margin: 0 0 24px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1.5;
  text-transform: uppercase;
}

.eyebrow span { color: var(--orange); margin-right: 18px; }

h1, h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.055em;
}

h1 { font-size: clamp(72px, 6.5vw, 110px); line-height: 0.88; }
h1 em {
  display: block;
  margin-top: 14px;
  color: var(--orange);
  font-size: .62em;
  font-style: normal;
  letter-spacing: -.035em;
  line-height: 1.05;
}
h2 em { color: var(--orange); font-weight: 400; }

.hero-intro {
  max-width: 650px;
  margin: 40px 0 30px;
  color: #aaa9a3;
  font-size: 16px;
  line-height: 1.65;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--orange);
  color: var(--paper);
  text-decoration: none;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.text-link span { color: var(--orange); font-size: 16px; }

.hero-system {
  position: relative;
  z-index: 1;
  justify-self: end;
  width: min(35vw, 520px);
  overflow: hidden;
  border: 1px solid var(--line-dark);
  background: #0d0e0d;
}

.pipeline-card-header,
.pipeline-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  padding: 0 22px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.pipeline-card-header { border-bottom: 1px solid var(--line-dark); }
.pipeline-card-header > span { color: #777873; }
.pipeline-card-header strong { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }
.pipeline-card-header i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 14px rgba(216, 255, 98, .55);
}

.pipeline-map { margin: 0; padding: 0; list-style: none; }
.pipeline-map li {
  min-height: 88px;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 0 22px;
  border-bottom: 1px solid var(--line-dark);
}
.pipeline-map > li > span { color: var(--orange); font-family: var(--mono); font-size: 9px; }
.pipeline-map div { min-width: 0; }
.pipeline-map div strong { display: block; font-family: var(--serif); font-size: 20px; font-weight: 400; }
.pipeline-map div small { display: block; margin-top: 7px; color: #777873; font-family: var(--mono); font-size: 7px; letter-spacing: .04em; }
.pipeline-map b { color: #8b8c86; font-family: var(--mono); font-size: 7px; font-weight: 400; letter-spacing: .08em; text-transform: uppercase; }
.pipeline-card-footer { color: #8b8c86; }
.pipeline-card-footer span:last-child { color: var(--paper); }

.claim-ribbon {
  position: absolute;
  inset: auto 0 0;
  min-height: 94px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-dark);
}
.claim-ribbon div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 3.2vw;
  border-right: 1px solid var(--line-dark);
}
.claim-ribbon span,
.claim-ribbon strong { font-size: 9px; letter-spacing: .14em; text-transform: uppercase; }
.claim-ribbon span { margin-bottom: 10px; color: #72736f; }
.claim-ribbon strong { color: var(--paper); }

.workspace,
.boundary-section { position: relative; padding: 120px 7vw 130px; }

.section-index {
  position: absolute;
  top: 126px;
  left: 3vw;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.section-index span { color: var(--orange); margin-bottom: 12px; }
.section-index.light { color: var(--paper); }

.workspace-heading,
.boundary-title { display: grid; grid-template-columns: .7fr 1.55fr 1fr; gap: 4vw; align-items: end; margin-bottom: 72px; }
.workspace-heading .eyebrow,
.boundary-title .eyebrow { align-self: start; margin-top: 10px; }
.workspace-heading h2,
.boundary-title h2,
.result-header h2 { font-size: clamp(54px, 5.7vw, 92px); line-height: .88; }
.workspace-heading > p:last-child { max-width: 430px; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.65; }
.boundary-intro { max-width: 430px; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.65; }

.run-console {
  display: grid;
  grid-template-columns: minmax(360px, .82fr) minmax(520px, 1.18fr);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.run-controls,
.pipeline-panel { padding: 40px 0 46px; }
.run-controls { padding-right: 4.5vw; border-right: 1px solid var(--line); }
.pipeline-panel { padding-left: 4.5vw; }

.panel-heading { display: flex; align-items: center; gap: 16px; min-height: 48px; margin-bottom: 32px; }
.panel-heading > div p { margin: 0 0 5px; color: var(--muted); font-size: 8px; font-weight: 700; letter-spacing: .15em; }
.panel-heading h3 { margin: 0; font-family: var(--serif); font-size: 28px; font-weight: 400; }
.panel-number {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-family: var(--mono);
  font-size: 9px;
}

.pipeline-counter { margin-left: auto; align-items: baseline; }
.pipeline-counter strong { font-family: var(--serif); font-size: 35px; font-weight: 400; }
.pipeline-counter span { color: var(--muted); font-family: var(--mono); font-size: 10px; }

.preset-list { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.preset-option {
  position: relative;
  width: 100%;
  min-height: 104px;
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border: 0;
  background: var(--paper);
  text-align: left;
  cursor: pointer;
}
.preset-option:hover { background: #e9e5dd; }
.preset-option[aria-checked="true"] { background: var(--ink); color: var(--paper); }
.preset-radio {
  width: 18px;
  height: 18px;
  border: 1px solid currentColor;
  border-radius: 50%;
}
.preset-option[aria-checked="true"] .preset-radio { border: 5px solid var(--orange); }
.preset-copy span { display: block; margin-bottom: 8px; color: var(--orange); font-size: 7px; font-weight: 700; letter-spacing: .15em; }
.preset-copy strong { display: block; font-family: var(--serif); font-size: 20px; font-weight: 400; }
.preset-option small { max-width: 170px; color: var(--muted); font-size: 9px; line-height: 1.45; }
.preset-option[aria-checked="true"] small { color: #9b9c97; }

.custom-switch { display: flex; align-items: center; gap: 12px; margin: 22px 0; font-size: 11px; font-weight: 650; letter-spacing: .04em; cursor: pointer; }
.custom-switch input { position: absolute; opacity: 0; }
.switch-track { width: 38px; height: 20px; padding: 3px; border: 1px solid var(--line); border-radius: 20px; background: var(--paper-2); }
.switch-track i { display: block; width: 12px; height: 12px; border-radius: 50%; background: var(--muted); transition: transform .2s, background .2s; }
.custom-switch input:checked + .switch-track i { transform: translateX(18px); background: var(--orange); }

.custom-inputs { display: grid; gap: 18px; padding: 20px 0 4px; }
.custom-inputs label > span { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 8px; font-weight: 700; letter-spacing: .14em; }
.custom-inputs label i { color: var(--muted); font-style: normal; font-weight: 500; letter-spacing: .04em; }
.custom-inputs label i.valid { color: #39731d; }
.custom-inputs input,
.custom-inputs textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0;
  outline: none;
  background: #f7f4ee;
  color: var(--ink);
}
.custom-inputs input { padding: 11px 13px; border-bottom: 0; font-weight: 650; }
.custom-inputs textarea { display: block; padding: 13px; resize: vertical; font-family: var(--mono); font-size: 11px; line-height: 1.55; }
.custom-inputs input:focus,
.custom-inputs textarea:focus { border-color: var(--orange); }
.input-note { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.5; }

.run-button {
  width: 100%;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 22px;
  padding: 0 22px;
  border: 0;
  background: var(--orange);
  color: var(--black);
  cursor: pointer;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .12em;
  text-transform: uppercase;
  transition: background .2s, transform .2s;
}
.run-button:hover { background: var(--acid); transform: translateY(-2px); }
.run-button:disabled { background: #beb9b0; color: #6d6962; cursor: not-allowed; transform: none; }
.run-button i { font-size: 19px; font-style: normal; }
.run-message { min-height: 18px; margin-top: 12px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.run-message.error { color: var(--orange-dark); }

.pipeline-progress { height: 2px; margin-bottom: 14px; background: var(--line); overflow: hidden; }
.pipeline-progress i { display: block; width: 0; height: 100%; background: var(--orange); transition: width .35s ease; }
.pipeline-progress i.progress-1 { width: 8.333%; }
.pipeline-progress i.progress-2 { width: 16.667%; }
.pipeline-progress i.progress-3 { width: 25%; }
.pipeline-progress i.progress-4 { width: 33.333%; }
.pipeline-progress i.progress-5 { width: 41.667%; }
.pipeline-progress i.progress-6 { width: 50%; }
.pipeline-progress i.progress-7 { width: 58.333%; }
.pipeline-progress i.progress-8 { width: 66.667%; }
.pipeline-progress i.progress-9 { width: 75%; }
.pipeline-progress i.progress-10 { width: 83.333%; }
.pipeline-progress i.progress-11 { width: 91.667%; }
.pipeline-progress i.progress-12 { width: 100%; }
.stage-list { margin: 0; padding: 0; list-style: none; }
.stage-item {
  min-height: 46px;
  display: grid;
  grid-template-columns: 32px minmax(170px, 1fr) 1.2fr auto;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  color: #aaa59c;
  transition: color .25s, background .25s;
}
.stage-index { font-family: var(--mono); font-size: 8px; }
.stage-name { color: var(--ink); font-family: var(--serif); font-size: 17px; }
.stage-metric { overflow: hidden; color: var(--muted); font-family: var(--mono); font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.stage-status { width: 10px; height: 10px; border: 1px solid var(--line); border-radius: 50%; }
.stage-item.running { color: var(--orange); background: linear-gradient(90deg, transparent, rgba(240,74,47,.05)); }
.stage-item.running .stage-status { border: 2px solid var(--orange); border-top-color: transparent; animation: spin .7s linear infinite; }
.stage-item.passed .stage-status { border-color: var(--ink); background: var(--ink); box-shadow: inset 0 0 0 3px var(--paper); }
.stage-item.failed { color: var(--orange-dark); }
.stage-item.failed .stage-status { border-color: var(--orange); background: var(--orange); }
@keyframes spin { to { transform: rotate(360deg); } }

.result-section { position: relative; padding: 125px 7vw 135px; background: var(--orange); color: var(--black); }
.result-header { display: grid; grid-template-columns: 1.25fr .75fr; align-items: end; gap: 5vw; margin-bottom: 70px; }
.result-header h2 em { color: var(--paper); }
.release-identity { padding: 24px 0 8px; border-top: 1px solid var(--black); border-bottom: 1px solid var(--black); }
.release-identity span,
.release-identity small { display: block; font-size: 8px; font-weight: 700; letter-spacing: .14em; }
.release-identity code { display: block; margin: 17px 0; overflow-wrap: anywhere; font-family: var(--mono); font-size: 15px; }
.release-identity small { margin-bottom: 14px; opacity: .65; }

.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--black); border-bottom: 1px solid var(--black); }
.metric-grid article { min-height: 170px; display: flex; flex-direction: column; justify-content: center; padding: 20px 2vw; border-right: 1px solid rgba(9,10,9,.35); }
.metric-grid article:last-child { border-right: 0; }
.metric-grid span,
.metric-grid small { font-size: 8px; font-weight: 700; letter-spacing: .15em; }
.metric-grid strong { margin: 10px 0 4px; font-family: var(--serif); font-size: 66px; font-weight: 400; line-height: 1; }
.metric-grid small { opacity: .6; }

.evidence-layout { display: grid; grid-template-columns: 310px minmax(0, 1fr); margin-top: 72px; border: 1px solid var(--black); min-height: 610px; }
.artifact-nav { display: flex; flex-direction: column; background: var(--paper); color: var(--ink); border-right: 1px solid var(--black); }
.artifact-heading { display: flex; align-items: center; justify-content: space-between; min-height: 57px; padding: 0 18px; border-bottom: 1px solid var(--line); font-size: 8px; font-weight: 700; letter-spacing: .14em; }
.artifact-heading small { color: var(--muted); font-size: 7px; }
#artifact-list { flex: 1; padding: 8px 0; }
.artifact-button { width: 100%; min-height: 39px; display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 8px; padding: 0 17px; border: 0; background: transparent; color: var(--muted); text-align: left; cursor: pointer; font-size: 10px; }
.artifact-button:hover { color: var(--ink); background: var(--paper-2); }
.artifact-button[aria-selected="true"] { color: var(--ink); background: var(--acid); }
.artifact-button i { width: 6px; height: 6px; background: currentColor; transform: rotate(45deg); }
.artifact-button small { font-family: var(--mono); font-size: 7px; }
.download-button { min-height: 62px; display: flex; align-items: center; justify-content: space-between; padding: 0 18px; background: var(--ink); color: var(--paper); text-decoration: none; font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.download-button:hover { background: var(--acid); color: var(--ink); }
.download-button i { font-family: var(--mono); font-size: 8px; font-style: normal; }

.artifact-viewer { min-width: 0; background: var(--black); color: var(--paper); }
.viewer-bar { min-height: 57px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 20px; border-bottom: 1px solid var(--line-dark); }
.viewer-bar > div { display: flex; gap: 7px; }
.viewer-bar > div span { width: 8px; height: 8px; border: 1px solid #5c5d59; border-radius: 50%; }
.viewer-bar > div span:first-child { background: var(--orange); border-color: var(--orange); }
.viewer-bar code { color: #bfc0ba; font-family: var(--mono); font-size: 9px; }
.viewer-bar small { justify-self: end; color: #6f706c; font-family: var(--mono); font-size: 7px; }
.artifact-viewer pre { height: 552px; margin: 0; padding: 25px; overflow: auto; color: #bfc9b3; font-family: var(--mono); font-size: 10px; line-height: 1.65; tab-size: 2; white-space: pre-wrap; word-break: break-word; }

.boundary-section { background: var(--paper); }
.boundary-grid { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.boundary-grid article { min-height: 360px; padding: 45px 4vw 50px 0; }
.boundary-grid article + article { padding-left: 4vw; border-left: 1px solid var(--line); }
.boundary-grid article > span { display: block; margin-bottom: 34px; font-size: 9px; font-weight: 700; letter-spacing: .16em; }
.boundary-grid .established > span { color: #39731d; }
.boundary-grid .not-established > span { color: var(--orange-dark); }
.boundary-grid ul { margin: 0; padding: 0; list-style: none; }
.boundary-grid li { position: relative; min-height: 52px; display: flex; align-items: center; padding: 8px 0 8px 30px; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: 20px; }
.boundary-grid li::before { content: ""; position: absolute; left: 3px; width: 7px; height: 7px; transform: rotate(45deg); background: currentColor; }

footer { min-height: 150px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 30px; padding: 35px 3.2vw; background: var(--black); color: var(--paper); }
footer p { color: #72736f; font-size: 10px; letter-spacing: .05em; }
footer > div:last-child { justify-self: end; display: flex; gap: 26px; }

@media (max-width: 1050px) {
  .hero { grid-template-columns: minmax(0, 1fr) minmax(340px, .75fr); padding-left: 6vw; padding-right: 6vw; }
  .hero-system { width: min(40vw, 470px); }
  .workspace-heading, .boundary-title { grid-template-columns: .5fr 1.5fr; }
  .workspace-heading > p:last-child { grid-column: 2; }
  .run-console { grid-template-columns: 1fr; }
  .run-controls { padding-right: 0; border-right: 0; border-bottom: 1px solid var(--ink); }
  .pipeline-panel { padding-left: 0; }
  .evidence-layout { grid-template-columns: 250px minmax(0,1fr); }
}

@media (max-width: 760px) {
  .site-header { grid-template-columns: 1fr auto; min-height: 68px; }
  .site-header nav { gap: 16px; }
  .system-status { display: none; }
  .hero { min-height: 0; display: block; padding: 72px 7vw 188px; }
  h1 { font-size: clamp(62px, 17vw, 84px); }
  h1 em { font-size: .57em; }
  .hero-system { width: 100%; max-width: 520px; margin: 56px 0 0; }
  .pipeline-map li { grid-template-columns: 30px minmax(0, 1fr); min-height: 82px; padding: 0 18px; }
  .pipeline-map b { display: none; }
  .claim-ribbon { grid-template-columns: 1fr 1fr; }
  .claim-ribbon div { min-height: 70px; border-bottom: 1px solid var(--line-dark); }
  .workspace, .boundary-section, .result-section { padding: 90px 7vw 100px; }
  .section-index { display: none; }
  .workspace-heading, .boundary-title, .result-header { display: block; }
  .workspace-heading h2, .boundary-title h2, .result-header h2 { font-size: 57px; }
  .workspace-heading > p:last-child { margin-top: 28px; }
  .preset-option { grid-template-columns: 26px 1fr; }
  .preset-option small { display: none; }
  .stage-item { grid-template-columns: 26px minmax(135px,1fr) auto; }
  .stage-metric { display: none; }
  .release-identity { margin-top: 45px; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .metric-grid article { min-height: 135px; border-bottom: 1px solid rgba(9,10,9,.35); }
  .metric-grid strong { font-size: 52px; }
  .evidence-layout { grid-template-columns: 1fr; }
  .artifact-nav { border-right: 0; border-bottom: 1px solid var(--paper); }
  #artifact-list { display: grid; grid-template-columns: 1fr 1fr; }
  .artifact-viewer pre { height: 470px; }
  .boundary-grid { grid-template-columns: 1fr; }
  .boundary-grid article { min-height: auto; padding: 40px 0; }
  .boundary-grid article + article { padding-left: 0; border-left: 0; border-top: 1px solid var(--ink); }
  footer { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  footer > div:last-child { justify-self: center; }
}

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