/* ARK cinematic introduction. The workbench remains the functional product layer. */
:root {
  --ark-paper: #f1f0ee;
  --ark-white: #ffffff;
  --ark-line: #e6e5e2;
  --ark-ink: #111111;
  --ark-black: #0a0a0a;
  --ark-muted: #6f6f6c;
  --ark-orange: #b15f2c;
  --ark-ease: cubic-bezier(.22, .78, .18, 1);
}

body.ark-landing-open { overflow: hidden; }

#boot {
  position: fixed;
  inset: 0;
  z-index: 100;
  min-height: 100dvh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 10px;
  overflow: hidden;
  color: var(--ark-ink);
  background: var(--ark-paper);
  transition: opacity .55s ease, visibility .55s ease;
}
#boot::before, #boot::after {
  content: "";
  position: absolute;
  background: var(--ark-line);
  transform-origin: center;
  animation: arkBootLine 1.1s var(--ark-ease) both;
}
#boot::before { left: 8vw; right: 8vw; top: 50%; height: 1px; }
#boot::after { top: 8vh; bottom: 8vh; left: 50%; width: 1px; animation-delay: .08s; }
#boot .boot-mark {
  position: relative;
  z-index: 1;
  width: 66px;
  height: 66px;
  border-radius: 20px;
  clip-path: none;
  color: var(--ark-white);
  background: var(--ark-black);
  box-shadow: 0 18px 55px rgba(17,17,17,.14);
  font-size: 1.45rem;
  animation: arkBootMark .9s var(--ark-ease) both;
}
#boot .boot-mark::before { display: none; }
#boot > div { position: relative; z-index: 1; display: grid; justify-items: center; gap: 5px; background: var(--ark-paper); padding: 0 20px; }
#boot strong { font-size: 1.05rem; letter-spacing: .2em; }
#boot div span { font-size: .58rem; letter-spacing: .22em; color: var(--ark-muted); }
#boot p { position: relative; z-index: 1; margin: 8px 0 0; padding: 0 14px; background: var(--ark-paper); color: var(--ark-orange); font: 650 .58rem/1.4 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .14em; text-transform: uppercase; }
#boot.is-leaving { opacity: 0; visibility: hidden; }

.ark-landing {
  position: fixed;
  inset: 0;
  z-index: 40;
  overflow: hidden;
  color: var(--ark-ink);
  background:
    linear-gradient(90deg, transparent calc(50% - .5px), rgba(17,17,17,.045) 50%, transparent calc(50% + .5px)),
    var(--ark-paper);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  opacity: 1;
  transition: opacity .55s ease, transform .75s var(--ark-ease);
}
.ark-landing::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(17,17,17,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(17,17,17,.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.7), transparent 72%);
}
.ark-landing.is-entering { opacity: 0; transform: scale(1.025); pointer-events: none; }

.ark-landing-header {
  position: fixed;
  z-index: 8;
  top: 0;
  left: 0;
  right: 0;
  height: 74px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 clamp(24px, 4vw, 70px);
  border-bottom: 1px solid rgba(17,17,17,.1);
  background: rgba(241,240,238,.82);
  backdrop-filter: blur(14px);
}
.ark-wordmark { display: flex; align-items: center; width: max-content; gap: 11px; }
.ark-wordmark > span, .ark-mini-brand > span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  color: white;
  background: var(--ark-black);
  font-size: .86rem;
  font-weight: 750;
}
.ark-wordmark strong { font-size: .84rem; letter-spacing: .16em; }
.ark-wordmark small { max-width: 130px; padding-left: 11px; border-left: 1px solid #cecdc9; color: var(--ark-muted); font-size: .48rem; line-height: 1.35; letter-spacing: .13em; }
.ark-header-meta { display: flex; align-items: center; gap: 24px; color: var(--ark-muted); font: 620 .56rem/1 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .12em; }
.ark-enter-link { justify-self: end; display: flex; gap: 18px; align-items: center; padding: 0; border: 0; color: var(--ark-ink); background: transparent; font-size: .6rem; font-weight: 750; letter-spacing: .14em; }
.ark-enter-link span { color: var(--ark-orange); font-size: .92rem; }

.ark-scenes { position: absolute; inset: 0; }
.ark-scene {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: center;
  padding: 84px 0 62px;
  visibility: hidden;
  opacity: 0;
  transform: translate3d(0, 8vh, 0) scale(.975);
  filter: blur(12px);
  pointer-events: none;
  transition: opacity .48s ease, transform .9s var(--ark-ease), filter .7s ease, visibility 0s linear .9s;
}
.ark-scene.is-before { transform: translate3d(0, -8vh, 0) scale(.975); }
.ark-scene.is-after { transform: translate3d(0, 8vh, 0) scale(.975); }
.ark-scene.is-active {
  visibility: visible;
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  filter: blur(0);
  pointer-events: auto;
  transition: opacity .58s ease .16s, transform .95s var(--ark-ease), filter .75s ease .08s, visibility 0s;
}
.ark-scene-inner {
  position: relative;
  width: min(1180px, calc(100% - clamp(92px, 11vw, 180px)));
  height: min(680px, calc(100dvh - 166px));
  min-height: 440px;
  margin: auto;
  display: grid;
  align-content: center;
}
.ark-scene-inner::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 58px;
  height: 58px;
  border-right: 1px solid rgba(177,95,44,.65);
  border-bottom: 1px solid rgba(177,95,44,.65);
  opacity: .45;
}
.ark-index { margin: 0 0 clamp(14px, 2.5vh, 26px); color: var(--ark-orange); font: 700 .59rem/1.2 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .16em; }
.ark-scene h1, .ark-scene h2 { margin: 0; color: var(--ark-black); font-weight: 620; letter-spacing: -.07em; }
.ark-scene h2 { font-size: clamp(2.55rem, 5.6vw, 5.8rem); line-height: .87; }
.ark-scene-heading { position: relative; z-index: 2; max-width: 770px; }
.ark-scene-heading > p:last-child, .ark-deck { max-width: 560px; margin: clamp(16px, 2.5vh, 28px) 0 0; color: var(--ark-muted); font-size: clamp(.8rem, 1vw, .98rem); line-height: 1.65; }
.ark-scene.is-active .ark-scene-copy, .ark-scene.is-active .ark-scene-heading { animation: arkCopyIn .85s var(--ark-ease) .16s both; }

.ark-arrival { grid-template-columns: 1.2fr .8fr; align-items: center; }
.ark-arrival h1 { display: flex; align-items: flex-end; gap: clamp(20px, 3.5vw, 48px); }
.ark-arrival h1 > span { font-size: clamp(7rem, 15vw, 12.8rem); line-height: .7; letter-spacing: -.1em; }
.ark-arrival h1 small { padding-bottom: .12em; font-size: clamp(.9rem, 1.55vw, 1.45rem); line-height: 1.12; letter-spacing: -.035em; }
.ark-deck { margin-left: 7px; }
.ark-arrival-orbit { justify-self: end; position: relative; width: clamp(240px, 28vw, 380px); aspect-ratio: 1; display: grid; place-items: center; }
.ark-arrival-orbit::before, .ark-arrival-orbit::after, .ark-arrival-orbit > span { content: ""; position: absolute; border: 1px solid rgba(17,17,17,.14); border-radius: 50%; }
.ark-arrival-orbit::before { inset: 0; }
.ark-arrival-orbit::after { inset: 16%; }
.ark-arrival-orbit > span:first-child { inset: 32%; background: var(--ark-white); box-shadow: 0 30px 80px rgba(17,17,17,.12); }
.ark-arrival-orbit > span:nth-child(2) { width: 12px; height: 12px; top: 13%; right: 18%; border: 0; background: var(--ark-orange); box-shadow: 0 0 0 8px rgba(177,95,44,.1); }
.ark-arrival-orbit i { position: relative; z-index: 1; font-style: normal; font-size: clamp(2rem, 4vw, 4rem); font-weight: 680; }
.ark-scene.is-active .ark-arrival-orbit { animation: arkOrbitIn 1.05s var(--ark-ease) .18s both; }
.ark-arrival-footer { position: absolute; left: 7px; right: 0; bottom: 0; display: flex; gap: 26px; color: var(--ark-muted); font: 650 .58rem/1 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .14em; }

.ark-split-layout { grid-template-columns: .72fr 1.28fr; gap: clamp(38px, 7vw, 100px); align-items: center; }
.ark-split-layout blockquote { margin: 28px 0 0; color: var(--ark-muted); font-family: Georgia, serif; font-size: clamp(1rem, 1.35vw, 1.25rem); line-height: 1.45; }
.ark-boundary { height: min(490px, 62vh); display: grid; grid-template-columns: 1fr 62px 1fr; align-items: stretch; border: 1px solid var(--ark-line); border-radius: 28px; overflow: hidden; background: var(--ark-white); box-shadow: 0 30px 90px rgba(17,17,17,.08); }
.ark-boundary-side { display: flex; flex-direction: column; justify-content: center; padding: clamp(22px, 3vw, 42px); }
.ark-boundary-side small { margin-bottom: 26px; color: var(--ark-orange); font: 700 .56rem/1 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .15em; }
.ark-boundary-side strong { font-size: clamp(1rem, 1.6vw, 1.45rem); line-height: 1.18; letter-spacing: -.035em; }
.ark-boundary-side > span { margin-top: auto; color: var(--ark-muted); font-size: .68rem; }
.ark-boundary-side.external { background: #e9e8e5; color: #777; }
.ark-boundary-side.external small { color: #8d8d8d; }
.ark-boundary-line { position: relative; display: grid; place-items: center; background: var(--ark-black); color: white; }
.ark-boundary-line i { position: absolute; top: 20px; width: 7px; height: 7px; border-radius: 50%; background: var(--ark-orange); }
.ark-boundary-line span { writing-mode: vertical-rl; transform: rotate(180deg); font: 650 .5rem/1 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .18em; }

.ark-material-stage { margin-top: clamp(28px, 5vh, 58px); display: grid; grid-template-columns: 1.8fr repeat(4, .72fr); gap: 10px; }
.ark-material-stage article { position: relative; min-height: clamp(125px, 20vh, 190px); display: flex; flex-direction: column; justify-content: space-between; padding: clamp(16px, 2vw, 25px); border: 1px solid var(--ark-line); border-radius: 22px; background: rgba(255,255,255,.72); overflow: hidden; }
.ark-material-stage article > span { color: var(--ark-orange); font: 700 .66rem/1 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .1em; }
.ark-material-stage article > strong { font-size: .68rem; letter-spacing: .12em; }
.ark-material-stage .ark-material-main { flex-direction: row; align-items: center; justify-content: flex-start; gap: 24px; color: white; background: var(--ark-black); border-color: var(--ark-black); }
.ark-material-main .ark-file-mark { display: grid; place-items: center; flex: none; width: 78px; height: 96px; border: 1px solid #545454; border-radius: 8px; color: white; }
.ark-material-main small { color: #aaa; font-size: .55rem; letter-spacing: .12em; }
.ark-material-main strong { display: block; margin-top: 8px; font-size: clamp(.85rem, 1.2vw, 1.08rem); line-height: 1.25; }
.ark-material-main i { position: absolute; top: 18px; right: 18px; color: #555; font-style: normal; font-size: .6rem; }
.ark-caption { margin: 15px 0 0; color: var(--ark-muted); font: 600 .52rem/1.4 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .11em; }

.ark-flow-layout { grid-template-columns: .86fr 1.14fr; gap: clamp(50px, 8vw, 120px); align-items: center; }
.ark-process { margin: 0; padding: 0; list-style: none; counter-reset: item; }
.ark-process li { position: relative; display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 15px; min-height: 76px; border-bottom: 1px solid #d4d3cf; }
.ark-process li::after { content: "↓"; position: absolute; left: 14px; bottom: -10px; z-index: 1; color: var(--ark-orange); background: var(--ark-paper); font-size: .7rem; }
.ark-process li:last-child::after { display: none; }
.ark-process li > span { color: var(--ark-orange); font: 650 .54rem/1 ui-monospace, SFMono-Regular, Consolas, monospace; }
.ark-process li strong { font-size: clamp(.82rem, 1.1vw, 1rem); letter-spacing: .08em; }
.ark-process li small { color: var(--ark-muted); font-size: .63rem; }
.ark-scene.is-active .ark-process li, .ark-scene.is-active .ark-agent-rail span, .ark-scene.is-active .ark-review-path li { animation: arkRowIn .6s var(--ark-ease) both; }
.ark-scene.is-active .ark-process li:nth-child(2), .ark-scene.is-active .ark-agent-rail span:nth-child(2), .ark-scene.is-active .ark-review-path li:nth-child(2) { animation-delay: .1s; }
.ark-scene.is-active .ark-process li:nth-child(3), .ark-scene.is-active .ark-agent-rail span:nth-child(3), .ark-scene.is-active .ark-review-path li:nth-child(3) { animation-delay: .18s; }
.ark-scene.is-active .ark-process li:nth-child(4), .ark-scene.is-active .ark-agent-rail span:nth-child(4), .ark-scene.is-active .ark-review-path li:nth-child(4) { animation-delay: .26s; }
.ark-scene.is-active .ark-process li:nth-child(5), .ark-scene.is-active .ark-agent-rail span:nth-child(5) { animation-delay: .34s; }
.ark-scene.is-active .ark-agent-rail span:nth-child(6) { animation-delay: .42s; }

.ark-evidence-layout { grid-template-columns: .85fr 1.15fr; gap: clamp(45px, 7vw, 100px); align-items: center; }
.ark-evidence-card { padding: clamp(22px, 3vw, 38px); border: 1px solid var(--ark-line); border-radius: 28px; background: var(--ark-white); box-shadow: 0 28px 80px rgba(17,17,17,.08); }
.ark-question { padding-bottom: 22px; border-bottom: 1px solid var(--ark-line); }
.ark-question small, .ark-sources > small { display: block; margin-bottom: 9px; color: var(--ark-orange); font: 700 .53rem/1 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .14em; }
.ark-question strong { font-size: clamp(.88rem, 1.2vw, 1.05rem); }
.ark-answer-bridge { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 18px; margin: 25px 0; color: var(--ark-muted); font-size: .62rem; font-weight: 700; letter-spacing: .12em; }
.ark-answer-bridge i { display: block; height: 1px; background: linear-gradient(90deg, var(--ark-orange), var(--ark-line)); }
.ark-sources { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ark-sources > small, .ark-sources > p { grid-column: 1/-1; }
.ark-sources button { min-height: 74px; border: 1px solid var(--ark-line); border-radius: 12px; color: var(--ark-ink); background: #f6f5f3; opacity: 1; cursor: default; font: 700 .55rem/1.4 ui-monospace, SFMono-Regular, Consolas, monospace; }
.ark-sources p { margin: 5px 0 0; color: var(--ark-muted); font-size: .58rem; }

.ark-agent-layout { grid-template-columns: .85fr 1.15fr; grid-template-rows: 1fr auto; gap: 30px clamp(40px, 7vw, 100px); align-items: center; }
.ark-agent-layout .ark-scene-heading { grid-row: 1/3; }
.ark-agent-rail { align-self: end; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ark-agent-rail span { min-height: 75px; display: flex; flex-direction: column; justify-content: space-between; padding: 15px; border: 1px solid var(--ark-line); border-radius: 14px; background: rgba(255,255,255,.75); font-size: .68rem; font-weight: 750; letter-spacing: .08em; }
.ark-agent-rail span i { color: var(--ark-orange); font: normal 600 .5rem/1 ui-monospace, SFMono-Regular, Consolas, monospace; }
.ark-agent-rail span.active { color: white; background: var(--ark-black); border-color: var(--ark-black); }
.ark-agent-core { align-self: start; display: grid; grid-template-columns: 68px 1fr; align-items: center; gap: 18px; padding: 20px; border-left: 2px solid var(--ark-orange); background: rgba(255,255,255,.55); }
.ark-agent-core > span { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 18px; color: white; background: var(--ark-black); font-size: 1.1rem; font-weight: 700; }
.ark-agent-core small { display: block; color: var(--ark-orange); font-size: .5rem; letter-spacing: .12em; }
.ark-agent-core strong { display: block; margin-top: 5px; font-size: .85rem; }
.ark-agent-core p { margin: 4px 0 0; color: var(--ark-muted); font-size: .62rem; }

.ark-deliverable-layout { grid-template-columns: .9fr .3fr 1.15fr; gap: clamp(30px, 5vw, 72px); align-items: center; }
.ark-deliverable-flow { display: grid; justify-items: center; gap: 11px; color: var(--ark-muted); font: 700 .54rem/1 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .12em; }
.ark-deliverable-flow span { padding: 10px 0; }
.ark-deliverable-flow i { color: var(--ark-orange); font-style: normal; }
.ark-output-stack { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; transform: rotate(-2deg); }
.ark-output-stack article { min-height: clamp(120px, 18vh, 165px); display: flex; flex-direction: column; justify-content: space-between; padding: 19px; border: 1px solid var(--ark-line); border-radius: 17px; background: var(--ark-white); box-shadow: 0 14px 40px rgba(17,17,17,.055); }
.ark-output-stack article:nth-child(2), .ark-output-stack article:nth-child(4) { transform: translateY(16px); }
.ark-output-stack article > span { color: var(--ark-orange); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-weight: 700; }
.ark-output-stack article strong { font-size: .7rem; letter-spacing: .12em; }
.ark-output-stack article small { color: var(--ark-muted); font-size: .58rem; }

.ark-review-layout { grid-template-columns: .85fr 1.15fr; grid-template-rows: 1fr auto; gap: 24px clamp(45px, 7vw, 100px); align-items: center; }
.ark-review-layout .ark-scene-heading { grid-row: 1/3; }
.ark-review-path { align-self: end; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 0; padding: 0; list-style: none; }
.ark-review-path li { position: relative; min-height: 180px; padding: 18px 14px; border-top: 1px solid #c9c8c4; }
.ark-review-path li::before { content: ""; position: absolute; top: -5px; left: 14px; width: 9px; height: 9px; border-radius: 50%; background: #c9c8c4; }
.ark-review-path li.complete::before { background: var(--ark-black); }
.ark-review-path li.current::before { background: var(--ark-orange); box-shadow: 0 0 0 6px rgba(177,95,44,.12); }
.ark-review-path li span { display: block; color: var(--ark-muted); font: 600 .5rem/1 ui-monospace, SFMono-Regular, Consolas, monospace; }
.ark-review-path li strong { display: block; margin-top: 70px; font-size: .63rem; letter-spacing: .08em; }
.ark-review-path li small { display: block; margin-top: 7px; color: var(--ark-muted); font-size: .55rem; }
.ark-review-note { align-self: start; display: flex; align-items: center; gap: 15px; padding: 15px 18px; border: 1px solid rgba(177,95,44,.26); border-radius: 13px; background: rgba(255,255,255,.6); }
.ark-review-note > span { color: var(--ark-orange); }
.ark-review-note p { margin: 0; color: var(--ark-muted); font-size: .67rem; }
.ark-review-note strong { color: var(--ark-ink); }

.ark-architecture-layout { grid-template-columns: .76fr 1.24fr; grid-template-rows: 1fr auto; gap: 20px clamp(45px, 8vw, 115px); align-items: center; }
.ark-architecture-layout .ark-scene-heading { grid-row: 1/3; }
.ark-architecture-map { align-self: end; display: grid; justify-items: center; gap: 9px; }
.ark-architecture-map > span { min-width: 210px; padding: 12px 24px; border: 1px solid #cecdc9; border-radius: 999px; background: rgba(255,255,255,.65); text-align: center; font-size: .62rem; font-weight: 750; letter-spacing: .1em; }
.ark-architecture-map > span.primary { color: white; background: var(--ark-black); border-color: var(--ark-black); }
.ark-architecture-map > i { color: var(--ark-orange); font-style: normal; }
.ark-architecture-map > div { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; width: 100%; }
.ark-architecture-map > div span { padding: 13px 8px; border: 1px solid var(--ark-line); border-radius: 9px; background: var(--ark-white); text-align: center; font-size: .52rem; font-weight: 700; letter-spacing: .07em; }
.ark-architecture-map > div span:nth-child(4) { grid-column: 1/2; }
.ark-runtime-line { align-self: start; display: grid; grid-template-columns: auto 1fr; gap: 3px 10px; padding-top: 16px; border-top: 1px solid #cfceca; }
.ark-runtime-line .status-dot { grid-row: 1/3; align-self: center; }
.ark-runtime-line strong { font: 700 .56rem/1.2 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .1em; }
.ark-runtime-line small { color: var(--ark-muted); font-size: .55rem; }

.ark-workbench-layout { grid-template-columns: .66fr 1.34fr; gap: clamp(40px, 7vw, 100px); align-items: center; }
.ark-enter-button { display: flex; align-items: center; justify-content: space-between; width: min(310px, 100%); margin-top: 30px; padding: 8px 9px 8px 20px; border: 0; border-radius: 999px; color: white; background: var(--ark-black); font-size: .66rem; font-weight: 750; letter-spacing: .13em; box-shadow: 0 18px 40px rgba(17,17,17,.16); }
.ark-enter-button i { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: white; background: var(--ark-orange); font-style: normal; font-size: 1rem; transition: transform .25s ease; }
.ark-enter-button:hover i { transform: rotate(45deg); }
.ark-workbench-preview { height: min(510px, 64vh); display: grid; grid-template-columns: 26% 74%; overflow: hidden; border: 1px solid #d2d1ce; border-radius: 24px; background: var(--ark-white); box-shadow: 0 38px 100px rgba(17,17,17,.13); transform: perspective(1200px) rotateY(-4deg) rotateX(1deg); transform-origin: left center; }
.ark-workbench-preview aside { display: flex; flex-direction: column; gap: 9px; padding: 18px 14px; border-right: 1px solid var(--ark-line); }
.ark-mini-brand { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.ark-mini-brand > span { width: 27px; height: 27px; border-radius: 8px; font-size: .65rem; }
.ark-mini-brand strong { font-size: .62rem; letter-spacing: .14em; }
.ark-workbench-preview aside > small { margin-bottom: 4px; color: var(--ark-muted); font-size: .42rem; letter-spacing: .12em; }
.ark-workbench-preview aside > span, .ark-workbench-preview aside > b { padding: 10px; border-radius: 8px; font-size: .52rem; font-weight: 600; }
.ark-workbench-preview aside > b { color: white; background: var(--ark-black); }
.ark-workbench-preview > div { min-width: 0; background: #f7f6f4; }
.ark-workbench-preview header { height: 52px; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; border-bottom: 1px solid var(--ark-line); background: white; }
.ark-workbench-preview header small { font-size: .48rem; font-weight: 750; letter-spacing: .14em; }
.ark-workbench-preview header > span { display: flex; align-items: center; gap: 6px; color: var(--ark-muted); font-size: .43rem; }
.ark-workbench-preview header .status-dot { width: 5px; height: 5px; }
.ark-workbench-preview main { padding: clamp(18px, 3vw, 34px); }
.ark-workbench-preview main > p { margin: 0 0 8px; color: var(--ark-orange); font-size: .45rem; font-weight: 700; letter-spacing: .12em; }
.ark-workbench-preview h3 { font-size: clamp(1.2rem, 2vw, 1.9rem); letter-spacing: -.055em; }
.ark-mini-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 26px; }
.ark-mini-grid article { min-height: 130px; display: flex; flex-direction: column; padding: 16px; border: 1px solid var(--ark-line); border-radius: 13px; background: white; }
.ark-mini-grid article > span { color: var(--ark-orange); font-size: 1.25rem; }
.ark-mini-grid article strong { margin-top: auto; font-size: .65rem; }
.ark-mini-grid article small { margin-top: 5px; color: var(--ark-muted); font-size: .48rem; }

.ark-scene-nav { position: fixed; z-index: 8; top: 50%; right: clamp(20px, 2.6vw, 46px); display: grid; gap: 7px; transform: translateY(-50%); }
.ark-scene-nav button { width: 3px; height: 16px; padding: 0; border: 0; border-radius: 99px; background: #c7c6c2; transition: height .3s var(--ark-ease), background .3s ease; }
.ark-scene-nav button.active { height: 36px; background: var(--ark-orange); }
.ark-scroll-cue { position: fixed; z-index: 8; left: clamp(24px, 4vw, 70px); bottom: 23px; display: flex; align-items: center; gap: 11px; color: var(--ark-muted); font: 650 .5rem/1 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .13em; }
.ark-scroll-cue > span { color: var(--ark-orange); }
.ark-scroll-cue i { width: clamp(30px, 4vw, 60px); height: 1px; background: #bfbebb; }

@keyframes arkBootLine { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes arkBootMark { from { opacity: 0; transform: scale(.7) rotate(-8deg); } to { opacity: 1; transform: scale(1) rotate(0); } }
@keyframes arkCopyIn { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }
@keyframes arkOrbitIn { from { opacity: 0; transform: scale(.7) rotate(-12deg); } to { opacity: 1; transform: scale(1) rotate(0); } }
@keyframes arkRowIn { from { opacity: 0; transform: translateX(22px); } to { opacity: 1; transform: translateX(0); } }

@media (max-width: 980px) {
  .ark-header-meta { display: none; }
  .ark-landing-header { grid-template-columns: 1fr 1fr; }
  .ark-scene-inner { width: min(760px, calc(100% - 100px)); }
  .ark-split-layout, .ark-flow-layout, .ark-evidence-layout, .ark-agent-layout, .ark-review-layout, .ark-architecture-layout, .ark-workbench-layout { grid-template-columns: 1fr 1.2fr; gap: 34px; }
  .ark-arrival { grid-template-columns: 1fr .65fr; }
  .ark-material-stage { grid-template-columns: 1.5fr repeat(2, 1fr); }
  .ark-material-stage article:nth-child(4), .ark-material-stage article:nth-child(5) { display: none; }
  .ark-deliverable-layout { grid-template-columns: .85fr 1.15fr; }
  .ark-deliverable-flow { display: none; }
  .ark-workbench-preview { grid-template-columns: 29% 71%; }
}

@media (max-width: 700px) {
  .ark-landing-header { height: 64px; padding: 0 18px; }
  .ark-wordmark small { display: none; }
  .ark-enter-link { font-size: .52rem; gap: 8px; }
  .ark-scene { padding: 68px 0 48px; }
  .ark-scene-inner { width: calc(100% - 42px); height: calc(100dvh - 124px); min-height: 0; align-content: center; }
  .ark-scene-inner::after { width: 28px; height: 28px; }
  .ark-index { margin-bottom: 12px; font-size: .5rem; }
  .ark-scene h2 { font-size: clamp(2.15rem, 12vw, 3.25rem); }
  .ark-scene-heading > p:last-child, .ark-deck { margin-top: 13px; font-size: .72rem; line-height: 1.45; }
  .ark-arrival { grid-template-columns: 1fr; }
  .ark-arrival h1 { align-items: flex-start; flex-direction: column; gap: 18px; }
  .ark-arrival h1 > span { font-size: min(36vw, 9rem); }
  .ark-arrival h1 small { font-size: .8rem; }
  .ark-arrival-orbit { position: absolute; right: -30px; bottom: 20px; width: 170px; opacity: .6; }
  .ark-arrival-footer { gap: 12px; font-size: .45rem; }
  .ark-split-layout, .ark-flow-layout, .ark-evidence-layout, .ark-agent-layout, .ark-review-layout, .ark-architecture-layout, .ark-workbench-layout, .ark-deliverable-layout { grid-template-columns: 1fr; grid-template-rows: auto; gap: 20px; align-content: center; }
  .ark-agent-layout .ark-scene-heading, .ark-review-layout .ark-scene-heading, .ark-architecture-layout .ark-scene-heading { grid-row: auto; }
  .ark-split-layout blockquote { margin-top: 14px; font-size: .84rem; }
  .ark-boundary { height: min(300px, 40vh); grid-template-columns: 1fr 36px 1fr; border-radius: 18px; }
  .ark-boundary-side { padding: 15px; }
  .ark-boundary-side small { margin-bottom: 13px; font-size: .43rem; }
  .ark-boundary-side strong { font-size: .72rem; }
  .ark-boundary-side > span { font-size: .48rem; }
  .ark-boundary-line span { font-size: .4rem; }
  .ark-material-stage { margin-top: 18px; grid-template-columns: 1.4fr 1fr 1fr; gap: 6px; }
  .ark-material-stage article { min-height: 112px; padding: 12px; border-radius: 14px; }
  .ark-material-main .ark-file-mark { width: 44px; height: 58px; }
  .ark-material-main div { display: none; }
  .ark-caption { font-size: .42rem; }
  .ark-process li { min-height: 52px; grid-template-columns: 26px 1fr auto; gap: 8px; }
  .ark-process li strong { font-size: .65rem; }
  .ark-process li small { font-size: .48rem; }
  .ark-evidence-card { padding: 17px; border-radius: 18px; }
  .ark-question { padding-bottom: 13px; }
  .ark-answer-bridge { margin: 13px 0; }
  .ark-sources button { min-height: 48px; padding: 5px; font-size: .42rem; }
  .ark-sources p { font-size: .48rem; }
  .ark-agent-rail { grid-template-columns: repeat(3, 1fr); gap: 5px; }
  .ark-agent-rail span { min-height: 52px; padding: 9px; font-size: .52rem; }
  .ark-agent-core { grid-template-columns: 44px 1fr; padding: 11px; }
  .ark-agent-core > span { width: 40px; height: 40px; border-radius: 12px; }
  .ark-agent-core p { display: none; }
  .ark-output-stack { gap: 6px; }
  .ark-output-stack article { min-height: 88px; padding: 12px; }
  .ark-output-stack article:nth-child(2), .ark-output-stack article:nth-child(4) { transform: translateY(7px); }
  .ark-review-path li { min-height: 102px; padding: 10px 5px; }
  .ark-review-path li strong { margin-top: 35px; font-size: .47rem; }
  .ark-review-path li small { font-size: .42rem; }
  .ark-review-note { padding: 10px 12px; }
  .ark-review-note p { font-size: .54rem; }
  .ark-architecture-map { gap: 5px; }
  .ark-architecture-map > span { min-width: 170px; padding: 8px 14px; font-size: .48rem; }
  .ark-architecture-map > div { gap: 4px; }
  .ark-architecture-map > div span { padding: 8px 4px; font-size: .4rem; }
  .ark-runtime-line { padding-top: 9px; }
  .ark-runtime-line strong, .ark-runtime-line small { font-size: .44rem; }
  .ark-workbench-preview { height: min(300px, 42vh); grid-template-columns: 32% 68%; border-radius: 15px; transform: none; }
  .ark-workbench-preview aside { padding: 10px 7px; gap: 4px; }
  .ark-workbench-preview aside > span, .ark-workbench-preview aside > b { padding: 6px; font-size: .4rem; }
  .ark-workbench-preview header { height: 34px; padding: 0 10px; }
  .ark-workbench-preview main { padding: 13px; }
  .ark-workbench-preview h3 { font-size: 1rem; }
  .ark-mini-grid { margin-top: 12px; gap: 5px; }
  .ark-mini-grid article { min-height: 80px; padding: 8px; }
  .ark-mini-grid article small { display: none; }
  .ark-enter-button { margin-top: 17px; }
  .ark-scene-nav { right: 10px; gap: 5px; }
  .ark-scene-nav button { height: 9px; }
  .ark-scene-nav button.active { height: 22px; }
  .ark-scroll-cue { left: 18px; bottom: 16px; }
  .ark-scroll-cue small { display: none; }
}

@media (max-height: 700px) and (min-width: 701px) {
  .ark-scene-inner { height: calc(100dvh - 140px); min-height: 390px; }
  .ark-scene-heading > p:last-child { margin-top: 14px; line-height: 1.45; }
  .ark-material-stage { margin-top: 24px; }
  .ark-boundary { height: 410px; }
  .ark-process li { min-height: 62px; }
  .ark-output-stack article { min-height: 115px; }
  .ark-workbench-preview { height: 430px; }
}

@media (prefers-reduced-motion: reduce) {
  #boot::before, #boot::after, #boot .boot-mark, .ark-scene.is-active .ark-scene-copy, .ark-scene.is-active .ark-scene-heading, .ark-scene.is-active .ark-arrival-orbit, .ark-scene.is-active .ark-process li, .ark-scene.is-active .ark-agent-rail span, .ark-scene.is-active .ark-review-path li { animation: none !important; }
  .ark-scene, .ark-landing { transition-duration: .12s !important; }
}
