/* ================= SUBPAGES ================= */
/* All pixel values are multiplied by --k (scale factor for large screens, see <head>). */

.subpage { background: var(--ink); }

/* ---------- reusable subpage hero: light, blueprint grid, headline left, visual right ---------- */
.sub-hero { --accent: var(--lime); position: relative; min-height: 100vh; min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center; gap: 3vw; padding: calc(120px*var(--k)) var(--gutter) calc(70px*var(--k)); background: var(--bone); color: var(--ink); overflow: hidden; isolation: isolate; }
.sub-hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(rgba(11,11,14,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(11,11,14,.07) 1px, transparent 1px);
  background-size: calc(64px*var(--k)) calc(64px*var(--k)); background-position: -1px -1px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 45%, #000 30%, transparent 85%); mask-image: radial-gradient(ellipse 80% 70% at 60% 45%, #000 30%, transparent 85%); }
.sub-hero::after { content: ""; position: absolute; z-index: -1; right: -10vw; top: -20vh; width: 60vw; height: 60vw; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 45%, transparent), transparent 65%); filter: blur(calc(40px*var(--k))); opacity: .7; }
.sh-text { display: flex; flex-direction: column; gap: calc(28px*var(--k)); }
.sh-crumb { display: flex; flex-wrap: wrap; gap: .8em; opacity: .7; }
.sh-crumb a:hover { opacity: .6; }
.sh-title { font-size: clamp(54px, 8.4vw, calc(146px*var(--k))); font-weight: 900; line-height: .9; letter-spacing: -.055em; }
.sh-line { display: block; overflow: hidden; padding: 0 .04em .1em 0; margin-bottom: -.1em; }
.sh-line > span { display: inline-block; will-change: transform; }
.js .sh-line > span { transform: translateY(110%); }
.sh-word { position: relative; z-index: 0; font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.02em; padding: 0 .08em; }
.sh-mark { position: absolute; z-index: -1; left: 0; right: 0; top: .2em; bottom: .02em; background: var(--accent); border-radius: .08em; transform: scaleX(0); transform-origin: 0 50%; }
.sh-dot { color: var(--orange); }
.sh-lead { font-size: clamp(19px, 1.7vw, calc(26px*var(--k))); line-height: 1.35; letter-spacing: -.015em; max-width: 30ch; }
.sh-actions { display: flex; flex-wrap: wrap; align-items: center; gap: calc(14px*var(--k)) calc(26px*var(--k)); }
.btn-ink { display: inline-flex; align-items: center; gap: .7em; padding: calc(16px*var(--k)) calc(26px*var(--k)); border-radius: 99px; background: var(--ink); color: var(--bone);
  font-weight: 800; font-size: calc(18px*var(--k)); letter-spacing: -.02em; transition: background .3s, color .3s, transform .3s; }
.btn-ink span { color: var(--accent, var(--lime)); transition: transform .3s; }
.btn-ink:hover { background: var(--orange); color: var(--ink); }
.btn-ink:hover span { color: var(--ink); transform: rotate(45deg); }
.btn-line { display: inline-flex; gap: .6em; border-bottom: 1px solid currentColor; padding-bottom: .3em; opacity: .8; transition: opacity .2s; }
.btn-line:hover { opacity: 1; }

/* isometric layer stack, used in the hero and in the layer section */
.sh-visual { position: relative; height: min(76vh, calc(680px*var(--k))); perspective: calc(1800px*var(--k)); }
.sh-tilt { position: absolute; inset: 0; transform-style: preserve-3d; }
.stack { --gap: calc(30px*var(--k)); --size: calc(330px*var(--k)); position: absolute; left: 50%; top: 58%; width: var(--size); height: var(--size);
  margin: calc(var(--size) / -2) 0 0 calc(var(--size) / -2); transform-style: preserve-3d; transform: rotateX(58deg) rotateZ(-40deg); }
.plate-wrap { position: absolute; inset: 0; transform-style: preserve-3d; transform: translateZ(calc(var(--i) * (var(--gap) + var(--hv, 0px)))); transition: transform .7s cubic-bezier(.2,.8,.2,1); }
.plate { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: .3em; padding: calc(20px*var(--k));
  border-radius: calc(26px*var(--k)); background: var(--c); color: var(--bone); border: 1px solid rgba(255,255,255,.18);
  box-shadow: inset 0 0 0 1px rgba(11,11,14,.06), 0 calc(30px*var(--k)) calc(60px*var(--k)) rgba(11,11,14,.18); will-change: transform; }
.plate.plate-ink { color: var(--ink); }
.plate b { font-size: calc(22px*var(--k)); font-weight: 850; letter-spacing: -.03em; line-height: 1; }
.plate .mono { opacity: .7; }
.sh-visual:hover .stack-hero { --hv: calc(22px*var(--k)); }
.sh-shadow { position: absolute; left: 15%; top: 74%; width: 70%; height: 16%; border-radius: 50%; background: radial-gradient(ellipse, rgba(11,11,14,.28), transparent 70%); filter: blur(calc(14px*var(--k))); z-index: -1; }

@media (max-width: 900px) {
  .sub-hero { grid-template-columns: 1fr; gap: 0; padding-top: 110px; align-content: start; }
  .sh-visual { height: 46vh; margin-top: 2vh; }
  .stack { --size: min(62vw, 300px); --gap: 22px; }
  .plate b { font-size: 16px; } .plate { padding: 14px; border-radius: 18px; }
}

/* ---------- workflow before agent ---------- */
.flow-sec { position: relative; background: var(--ink); }
.flow-stage { position: relative; height: 100vh; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: 8vh; padding: calc(90px*var(--k)) var(--gutter) calc(50px*var(--k));
  background: radial-gradient(ellipse at 70% 80%, #1b1830, var(--ink) 60%); }
.flow-copy { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4vw; align-items: end; }
.flow-copy .big-h .serif { color: var(--lime); }
.flow-states { position: relative; min-height: calc(150px*var(--k)); }
.fs { position: absolute; inset: 0 0 auto 0; display: flex; flex-direction: column; gap: calc(10px*var(--k)); opacity: 0; visibility: hidden; }
.fs:first-child { opacity: 1; visibility: visible; }
.fs h3 { font-size: clamp(24px, 2.2vw, calc(34px*var(--k))); font-weight: 850; letter-spacing: -.035em; line-height: 1.05; }
.fs p { opacity: .75; max-width: 46ch; }
.fs-no { color: var(--lime); }
.flow { display: flex; align-items: center; justify-content: space-between; }
.fnode { position: relative; flex: none; width: calc(158px*var(--k)); min-height: calc(110px*var(--k)); display: flex; flex-direction: column; justify-content: flex-end; gap: calc(6px*var(--k));
  padding: calc(16px*var(--k)); border-radius: calc(18px*var(--k)); background: var(--ink-2); border: 1px solid rgba(242,238,230,.16); }
.fnode b { font-size: calc(17px*var(--k)); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.fnode .mono { font-size: calc(10px*var(--k)); opacity: .55; }
.fnode[data-kind="llm"] { border-color: rgba(43,52,245,.7); }
.fnode[data-kind="llm"] .mono { color: #8f95ff; opacity: 1; }
.fnode[data-kind="human"] { background: var(--bone); color: var(--ink); }
.fnode[data-kind="io"] { border-style: dashed; }
.flink { position: relative; flex: 1; height: 2px; margin: 0 calc(8px*var(--k)); background: rgba(242,238,230,.25); transform-origin: 0 50%; overflow: hidden; }
.flink::after { content: ""; position: absolute; top: -2px; left: -12px; width: 12px; height: 6px; border-radius: 3px; background: var(--lime); box-shadow: 0 0 10px var(--lime); animation: token 1.6s linear infinite; }
@keyframes token { to { transform: translateX(calc(100% + 400px)); } }
.fnode-agent { background: transparent; border: 1.5px dashed var(--lime); }
.fa-q { position: absolute; top: calc(12px*var(--k)); right: calc(14px*var(--k)); font-size: calc(30px*var(--k)); font-weight: 900; color: var(--lime); line-height: 1; }
.fa-orb { position: absolute; left: 50%; top: calc(-62px*var(--k)); width: calc(96px*var(--k)); height: calc(96px*var(--k)); margin-left: calc(-48px*var(--k)); }
.fa-orb .ac-eyes { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -60%); display: flex; gap: 26%; width: 40%; justify-content: center; }
.fa-orb .ac-eyes i { width: 16%; min-width: 7px; aspect-ratio: .6; background: var(--ink); border-radius: 99px; animation: eye 4s infinite; }
.fa-split { position: absolute; left: 50%; top: calc(100% + 26px*var(--k)); transform: translateX(-50%); display: flex; gap: calc(14px*var(--k)); }
.fa-sub { display: flex; flex-direction: column; align-items: center; gap: 6px; opacity: 0; }
.fa-sub i { width: calc(40px*var(--k)); height: calc(40px*var(--k)); border-radius: 50%; background: radial-gradient(circle at 32% 28%, #fff 0 8%, transparent 30%), var(--pink); }
.fa-sub + .fa-sub i { background: radial-gradient(circle at 32% 28%, #fff 0 8%, transparent 30%), var(--blue); }
.fa-sub .mono { font-size: calc(9px*var(--k)); opacity: .7; }
.fa-split::before { content: ""; position: absolute; left: 50%; top: calc(-26px*var(--k)); height: calc(24px*var(--k)); border-left: 1.5px dashed rgba(212,255,58,.6); }
@media (max-width: 900px) {
  .flow-copy { grid-template-columns: 1fr; gap: 3vh; }
  .flow-states { min-height: 170px; }
  .flow-stage { gap: 3vh; justify-content: flex-start; padding-top: 100px; }
  .flow { flex-direction: column; align-items: stretch; gap: 0; padding-right: 40%; }
  .fnode { width: auto; min-height: 0; padding: 9px 12px; flex-direction: row; align-items: baseline; justify-content: space-between; border-radius: 12px; }
  .fnode b { font-size: 14px; }
  .flink { flex: none; height: 12px; width: 2px; margin: 0 0 0 24px; transform-origin: 50% 0; }
  .flink::after { display: none; }
  .fa-orb { left: auto; right: -64px; top: 50%; width: 56px; height: 56px; margin: -28px 0 0; }
  .fa-q { position: static; font-size: 18px; order: 3; }
  .fa-split { left: calc(100% + 76px); top: 50%; transform: translateY(-50%); flex-direction: column; gap: 6px; }
  .fa-split::before { display: none; }
  .fa-sub i { width: 24px; height: 24px; }
}

/* ---------- eight layers ---------- */
.layers { position: relative; background: var(--bone); color: var(--ink); }
.layers-stage { position: relative; height: 100vh; height: 100svh; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 4vw; padding: calc(90px*var(--k)) var(--gutter) calc(50px*var(--k)); }
.layers-copy { display: flex; flex-direction: column; gap: calc(18px*var(--k)); }
.layers-copy .big-h { font-size: clamp(38px, 5vw, calc(80px*var(--k))); }
.layers-copy .big-h .serif { color: var(--orange-deep); }
.lcards { position: relative; min-height: calc(250px*var(--k)); margin-top: calc(14px*var(--k)); }
.lcard { position: absolute; inset: 0 0 auto 0; display: flex; flex-direction: column; gap: calc(12px*var(--k)); padding: calc(26px*var(--k)); border-radius: calc(24px*var(--k)); background: #fff; border: 1px solid rgba(11,11,14,.1); box-shadow: 0 30px 60px -36px rgba(11,11,14,.35); opacity: 0; visibility: hidden; }
.lcard h3 { font-size: clamp(24px, 2.2vw, calc(34px*var(--k))); font-weight: 850; letter-spacing: -.035em; line-height: 1.05; }
.lcard p { opacity: .78; max-width: 52ch; }
.lc-no { color: var(--orange-deep); }
.chips { display: flex; flex-wrap: wrap; gap: calc(6px*var(--k)); margin: 0; padding: 0; list-style: none; }
.chips li { font-family: var(--mono); font-size: calc(11px*var(--k)); padding: calc(6px*var(--k)) calc(10px*var(--k)); border-radius: 99px; background: var(--ink); color: var(--bone); }
.layers-visual { position: relative; height: 100%; perspective: calc(1800px*var(--k)); }
.stack-build { --gap: calc(38px*var(--k)); --size: calc(300px*var(--k)); top: 66%; }
.stack-build .plate { opacity: 0; }
.stack-build .plate.dim { filter: saturate(.55) brightness(.96); }
@media (max-width: 900px) {
  .layers-stage { grid-template-columns: 1fr; grid-template-rows: auto 1fr; align-items: start; gap: 0; padding-top: 90px; }
  .layers-copy .lead { display: none; }
  .layers-visual { order: -1; height: 30vh; }
  .stack-build { --size: 150px; --gap: 18px; top: 72%; }
  .stack-build .plate b { font-size: 11px; } .stack-build .plate { padding: 9px; border-radius: 12px; } .stack-build .plate .mono { display: none; }
  .lcard { padding: 18px; } .lcard p { font-size: 15px; }
}

/* ---------- lethal trifecta ---------- */
.tri-sec { position: relative; background: var(--ink); }
.tri-stage { height: 100vh; height: 100svh; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 4vw; padding: calc(90px*var(--k)) var(--gutter) calc(50px*var(--k)); }
.tri-copy { display: flex; flex-direction: column; gap: calc(24px*var(--k)); }
.tri-copy .big-h { font-size: clamp(38px, 5vw, calc(84px*var(--k))); }
.tri-copy .big-h .serif { color: var(--orange); }
.tri-copy .lead { max-width: 44ch; }
.tri { position: relative; width: min(100%, calc(560px*var(--k))); aspect-ratio: 1; margin: 0 auto; }
.tc { position: absolute; width: 56%; aspect-ratio: 1; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3em; text-align: center; padding: 6%;
  mix-blend-mode: screen; color: var(--bone); }
.tc b { font-size: clamp(16px, 1.4vw, calc(22px*var(--k))); font-weight: 850; letter-spacing: -.02em; }
.tc .mono { font-size: calc(10px*var(--k)); opacity: .75; max-width: 14ch; }
.tc1 { left: 22%; top: 2%; background: radial-gradient(circle, rgba(43,52,245,.9), rgba(43,52,245,.55)); padding-bottom: 22%; }
.tc2 { left: 2%; top: 38%; background: radial-gradient(circle, rgba(122,92,255,.9), rgba(122,92,255,.55)); padding-right: 20%; padding-top: 14%; }
.tc3 { left: 42%; top: 38%; background: radial-gradient(circle, rgba(255,74,28,.92), rgba(255,74,28,.55)); padding-left: 20%; padding-top: 14%; }
.tri-core { position: absolute; left: 39.5%; top: 41.5%; width: 21%; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: #ff2d2d; box-shadow: 0 0 40px rgba(255,45,45,.8); z-index: 3; }
.tri-core span { grid-area: 1 / 1; font-size: calc(10px*var(--k)); color: var(--bone); font-weight: 700; }
.tri-good { opacity: 0; color: var(--ink) !important; }
.tri-note { position: absolute; right: -2%; bottom: 0; font-size: calc(11px*var(--k)); padding: .6em 1em; border-radius: 99px; border: 1px dashed rgba(242,238,230,.5); opacity: 0; }
@media (max-width: 900px) {
  .tri-stage { grid-template-columns: 1fr; align-content: center; gap: 4vh; }
  .tri-copy .lead { font-size: 15px; }
  .tri { width: min(80vw, 46vh); }
  .tc .mono { display: none; }
}

/* ---------- difference ---------- */
.diff-sec { background: var(--bone); color: var(--ink); padding: 16vh var(--gutter); }
.diff-sec > .big-h { margin-bottom: 7vh; }
.diff-sec .big-h .serif { color: var(--orange-deep); }
.diff { display: flex; flex-direction: column; }
.drow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 4vw; align-items: center; padding: calc(22px*var(--k)) 0; border-bottom: 1px solid rgba(11,11,14,.14); }
.dhead { padding: 0 0 calc(12px*var(--k)); opacity: .6; }
.d-old { position: relative; justify-self: start; font-size: clamp(17px, 1.4vw, calc(22px*var(--k))); opacity: .5; }
.d-strike { position: absolute; left: -3%; right: -3%; top: 52%; height: calc(3px*var(--k)); min-height: 2px; border-radius: 3px; background: var(--orange); transform-origin: 0 50%; }
.d-new { display: flex; gap: .7em; align-items: baseline; font-size: clamp(19px, 1.8vw, calc(28px*var(--k))); font-weight: 800; letter-spacing: -.025em; line-height: 1.2; }
.d-new i { font-style: normal; color: var(--orange-deep); }
@media (max-width: 760px) { .drow { grid-template-columns: 1fr; gap: 8px; } .dhead { display: none; } }

/* ---------- steps + autonomy gauge ---------- */
.steps-sec { background: var(--ink); padding: 16vh var(--gutter); }
.steps-sec > .big-h .serif { color: var(--lime); }
.steps-wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 5vw; align-items: center; margin-top: 7vh; }
.vsteps { display: flex; flex-direction: column; }
.vstep { display: grid; grid-template-columns: calc(90px*var(--k)) 1fr; grid-template-rows: auto auto; column-gap: calc(20px*var(--k)); padding: calc(26px*var(--k)) 0; border-top: 1px solid rgba(242,238,230,.14); }
.vs-no { grid-row: span 2; font-size: calc(64px*var(--k)); font-weight: 900; letter-spacing: -.06em; line-height: .85; color: transparent; -webkit-text-stroke: 1.5px var(--lime); }
.vstep h3 { font-size: clamp(22px, 2vw, calc(32px*var(--k))); font-weight: 850; letter-spacing: -.035em; }
.vstep p { opacity: .72; margin-top: .3em; }
.gauge { position: relative; }
.gauge svg { width: 100%; overflow: visible; }
.g-track { fill: none; stroke: rgba(242,238,230,.1); stroke-width: 34; }
.g-arc { fill: none; stroke-width: 34; stroke-dasharray: 31 100; }
.g1 { stroke: var(--blue); stroke-dashoffset: 0; }
.g2 { stroke: var(--violet); stroke-dashoffset: -34.5; }
.g3 { stroke: var(--orange); stroke-dashoffset: -69; }
.g-needle line { stroke: var(--bone); stroke-width: 6; stroke-linecap: round; }
.g-needle circle { fill: var(--lime); }
.g-labels { display: flex; justify-content: space-between; margin-top: calc(14px*var(--k)); opacity: .75; }
.g-title { position: absolute; left: 50%; top: 100%; transform: translate(-50%, calc(26px*var(--k))); color: var(--lime); }
@media (max-width: 900px) { .steps-wrap { grid-template-columns: 1fr; } .gauge { max-width: 420px; margin: 0 auto 40px; } .vstep { grid-template-columns: 64px 1fr; } .vs-no { font-size: 46px; } }

/* ---------- final call to action ---------- */
.sub-final { background: var(--orange); color: var(--ink); padding: 18vh var(--gutter); display: flex; flex-direction: column; gap: 6vh; }
.sub-final .big-h { font-size: clamp(42px, 7vw, calc(120px*var(--k))); max-width: 16ch; }
.sub-final .serif { color: var(--bone); }
.sf-actions { display: flex; flex-wrap: wrap; gap: calc(18px*var(--k)) calc(30px*var(--k)); align-items: center; }
.sub-final .big-btn { background: var(--ink); color: var(--bone); }
.sub-final .big-btn span { background: var(--lime); color: var(--ink); }
.sub-final .big-btn:hover { background: var(--bone); color: var(--ink); }
