/* ZiaPixel Tools — homepage.
   Visual language comes from ziapixel.com: drafting grid, dimension lines,
   crop marks, copper rays, Archivo Light at 125% width.
   Everything is visible without JavaScript; html.motion adds the starting
   states that js/home.js animates from. */

.home {
  --surface: #121A1F;
  --surface-2: #172026;
  --line: rgba(244, 241, 232, .1);
  --line-2: rgba(244, 241, 232, .18);
  --soft: rgba(244, 241, 232, .72);
  --faint: rgba(244, 241, 232, .45);
  --graphite-light: #5E656A;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}
.home .wrap { max-width: 1240px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Icons */
[class^="i-"] { display: inline-block; width: 16px; height: 16px; background: currentColor; flex: none;
  -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.i-board { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='3' y='4' width='18' height='16' rx='2'/%3E%3Cpath d='M9 4v16M15 4v16'/%3E%3C/svg%3E"); }
.i-notes { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='9' y='3' width='6' height='11' rx='3'/%3E%3Cpath d='M5 11a7 7 0 0 0 14 0M12 18v3'/%3E%3C/svg%3E"); }
.i-list { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='3' y='5' width='14' height='14' rx='2'/%3E%3Cpath d='M17 10l4-2v8l-4-2'/%3E%3C/svg%3E"); }
.i-est { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M6 3h12v18l-3-2-3 2-3-2-3 2zM9 8h6M9 12h6'/%3E%3C/svg%3E"); }
.i-wiki { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M4 4h10l6 6v10H4zM14 4v6h6M8 14h8M8 17h5'/%3E%3C/svg%3E"); }
.i-chat { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M4 5h16v11H9l-5 4z'/%3E%3C/svg%3E"); }

/* ---------- Loader ---------- */
.loader { display: none; }
.motion .loader { display: grid; position: fixed; inset: 0; z-index: 300; place-items: center; background: var(--obsidian); }
.loader-inner { display: flex; align-items: flex-end; gap: 18px; }
.loader-mark { display: flex; align-items: flex-end; gap: 7px; height: 64px; }
.loader-mark i { display: block; width: 7px; border-radius: 4px; background: var(--gypsum); transform-origin: 50% 100%; }
.loader-mark i:nth-child(1) { height: 70%; } .loader-mark i:nth-child(2) { height: 100%; }
.loader-mark i:nth-child(3) { height: 100%; } .loader-mark i:nth-child(4) { height: 70%; background: var(--copper); }
.loader-word { margin: 0; font-size: 2.6rem; line-height: .8; font-weight: 300; font-variation-settings: "wdth" 125; }
.loader-count { margin: 0 0 0 22px; min-width: 3ch; color: var(--copper); font-variant-numeric: tabular-nums; font-size: .9rem; }

/* ---------- Cursor (fine pointers only) ---------- */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  .motion .cursor { display: block; position: fixed; left: 0; top: 0; z-index: 250; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%;
    background: var(--copper); pointer-events: none; opacity: 0; transition: opacity .3s, width .35s var(--ease-out), height .35s var(--ease-out), margin .35s var(--ease-out), background-color .3s; mix-blend-mode: normal; }
  .cursor.is-visible { opacity: 1; }
  .cursor.is-hover { width: 44px; height: 44px; margin: -22px 0 0 -22px; background: rgba(226, 90, 60, .18); box-shadow: inset 0 0 0 1px var(--copper); }
}

/* ---------- Shared ---------- */
.home h2 { font-size: clamp(2rem, 4.2vw, 3.5rem); line-height: 1.02; letter-spacing: -.02em; font-weight: 300;
  font-variation-settings: "wdth" 125; margin: 0 0 18px; max-width: 18ch; text-wrap: balance; }
.sec { padding: clamp(104px, 12vw, 176px) 0 0; }
.sec-p { color: var(--soft); font-size: 1.12rem; max-width: 52ch; margin: 0; text-wrap: pretty; }
.sec-link { margin: 28px 0 0; }
.sec-link a { color: var(--copper); font-weight: 600; }
.split-line { overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.av { width: 20px; height: 20px; border-radius: 50%; display: inline-grid; place-items: center; font-size: .62rem; font-weight: 700; font-style: normal;
  background: var(--copper); color: var(--obsidian); flex: none; }
.av.g { background: #C9C2AE; } .av.m { background: #7D8A92; }
.plus { list-style: none; padding: 0; margin: 24px 0 0; }
.plus li { position: relative; padding: 9px 0 9px 26px; border-top: 1px solid var(--line); }
.plus li:last-child { border-bottom: 1px solid var(--line); }
.plus li::before { content: "+"; position: absolute; left: 2px; top: 7px; color: var(--copper); font-weight: 500; font-size: 1.1rem; }
.motion .reveal-title, .motion .hero-title { visibility: hidden; }

/* ---------- Hero ---------- */
.hero3 { position: relative; padding: clamp(56px, 9vw, 120px) 0 0; }
.drafting { position: absolute; inset: 0 0 auto 0; height: 1000px; pointer-events: none;
  background-image: linear-gradient(rgba(244,241,232,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(244,241,232,.06) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse at var(--gx, 78%) var(--gy, 20%), #000 5%, transparent 62%); mask-image: radial-gradient(ellipse at var(--gx, 78%) var(--gy, 20%), #000 5%, transparent 62%); }
.hero3 .wrap { position: relative; }
.hero-title { font-size: clamp(2.6rem, 7.4vw, 6.6rem); line-height: .96; letter-spacing: -.025em; font-weight: 300;
  font-variation-settings: "wdth" 125; margin: 0 0 clamp(32px, 4vw, 48px); }
.hero3-sub { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px 64px; align-items: end; padding-bottom: clamp(56px, 7vw, 88px); }
.hero3 .lede { margin: 0; max-width: 50ch; font-size: clamp(1.08rem, 1.4vw, 1.25rem); color: var(--soft); }
.hero3-act { display: flex; align-items: center; gap: 24px; }
.hero3-act p { margin: 0; color: var(--faint); font-size: .88rem; line-height: 1.5; }

.drawing { margin: 0; }
.dims { display: grid; grid-template-columns: 19% minmax(0, 1fr) 31%; margin-bottom: 14px; font-size: .82rem; color: var(--soft); }
.dim { position: relative; text-align: center; padding: 0 6px 12px; white-space: nowrap; overflow: hidden; }
.dim b { font-weight: 400; display: inline-block; text-overflow: ellipsis; overflow: hidden; max-width: 100%; vertical-align: bottom; }
.dim::before { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 1px; background: var(--graphite-light); transform-origin: 50% 50%; transform: scaleX(var(--dx, 1)); }
.dim::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 9px; opacity: var(--do, 1);
  border-left: 1px solid var(--graphite-light); border-right: 1px solid var(--graphite-light); }
.drawing figcaption { margin-top: 18px; color: var(--faint); font-size: .9rem; max-width: 60ch; }

.appwin-tilt { perspective: 1600px; }
.appwin { position: relative; display: grid; grid-template-columns: 19% minmax(0, 1fr) 31%; min-height: 440px;
  border-radius: 12px; overflow: hidden; background: var(--surface); box-shadow: 0 0 0 1px var(--line-2), 0 60px 120px -50px #000;
  font-size: .84rem; transform-origin: 50% 0; }
.ray { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 3; pointer-events: none; overflow: visible; }
.ray path { fill: none; stroke: var(--copper); stroke-width: 2; stroke-linecap: round; }
.ray circle { fill: var(--copper); }
.aw-side { background: #0F161A; border-right: 1px solid var(--line); padding: 16px 12px; min-width: 0; }
.aw-ws { display: flex; align-items: center; gap: 10px; font-weight: 600; margin: 0 0 18px; padding: 0 6px; white-space: nowrap; }
.aw-ico { width: 24px; height: 24px; border-radius: 6px; background: var(--copper); color: var(--obsidian); display: grid; place-items: center; font-size: .72rem; font-weight: 800; flex: none; }
.aw-h { margin: 16px 0 6px; padding: 0 8px; color: var(--faint); font-size: .74rem; font-weight: 600; }
.aw-side ul { list-style: none; margin: 0; padding: 0; }
.aw-side li { display: flex; align-items: center; gap: 9px; padding: 7px 8px; border-radius: 6px; color: var(--soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aw-side li.on { background: rgba(244,241,232,.06); color: var(--gypsum); }
.aw-side li.on [class^="i-"] { color: var(--copper); }
.aw-board { padding: 16px 18px; min-width: 0; }
.aw-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; gap: 10px; }
.aw-title { margin: 0; font-weight: 600; font-size: .95rem; }
.faces { display: flex; }
.faces span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: .65rem; font-weight: 700; color: var(--obsidian); margin-left: -6px; box-shadow: 0 0 0 2px var(--surface); }
.faces .f1 { background: #C9C2AE; } .faces .f2 { background: var(--copper); } .faces .f3 { background: #7D8A92; }
.cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.col { border: 1px solid var(--line); border-radius: 8px; padding: 10px; }
.col-h { margin: 2px 4px 10px; display: flex; justify-content: space-between; color: var(--soft); font-weight: 600; font-size: .78rem; }
.col-h b { font-weight: 600; color: var(--faint); }
.tk { background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 10px 11px; margin-top: 8px; }
.tk:first-of-type { margin-top: 0; }
.tk p { margin: 0 0 8px; line-height: 1.35; }
.tk small { display: flex; align-items: center; gap: 8px; color: var(--faint); font-size: .72rem; }
.tk small em { font-style: normal; margin-left: auto; color: #F0A592; }
.tk .bar { flex: 1; height: 3px; background: rgba(244,241,232,.1); }
.tk .bar i { display: block; height: 100%; background: var(--copper); }
.tk-new { border-color: var(--copper); }
.aw-notes { position: relative; border-left: 1px solid var(--line); padding: 16px 18px 64px; background: #10171C; min-width: 0; }
.live { display: inline-flex; align-items: center; gap: 7px; font-size: .76rem; color: #F0A592; font-variant-numeric: tabular-nums; }
.live i { width: 7px; height: 7px; border-radius: 50%; background: var(--copper); animation: blink 1.4s steps(2, jump-none) infinite; }
@keyframes blink { 50% { opacity: .25; } }
.wave { display: flex; align-items: center; gap: 3px; height: 30px; margin: 0 0 14px; }
.wave i { flex: 1; max-width: 3px; height: 100%; background: rgba(226,90,60,.75); transform: scaleY(.3); transform-origin: 50% 50%; }
.ln { margin: 0 0 12px; line-height: 1.5; color: rgba(244,241,232,.86); }
.ln b { display: block; font-size: .7rem; color: var(--faint); font-weight: 600; margin-bottom: 1px; }
.aw-notes .mark { background-image: linear-gradient(rgba(226,90,60,.36), rgba(226,90,60,.36)); background-repeat: no-repeat;
  background-size: 100% 90%; background-position: 0 60%; color: var(--gypsum); padding: 0 2px; }
.toast { position: absolute; left: 18px; right: 18px; bottom: 16px; margin: 0; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px;
  background: var(--gypsum); color: var(--obsidian); font-weight: 600; font-size: .8rem; opacity: 0; }
.check { width: 18px; height: 18px; border-radius: 50%; flex: none; background: var(--copper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B1014' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 11px no-repeat; }

/* ---------- Tool strip ---------- */
.strip { margin-top: clamp(96px, 11vw, 160px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; padding: 22px 0; }
.strip-track { display: flex; width: max-content; }
.strip span { display: inline-flex; align-items: center; font-size: clamp(1.6rem, 3.4vw, 2.8rem); font-weight: 300; font-variation-settings: "wdth" 125; letter-spacing: -.01em; white-space: nowrap; padding-right: .9em; }
.strip span::after { content: "+"; color: var(--copper); margin-left: .9em; font-weight: 400; }
.strip span:nth-child(2n) { color: transparent; -webkit-text-stroke: 1px rgba(244,241,232,.55); }

/* ---------- Timeline ---------- */
.ruler-wrap { margin-top: clamp(56px, 7vw, 88px); position: relative; }
.ruler { position: relative; height: 22px; border-bottom: 1px solid var(--graphite-light);
  background:
    repeating-linear-gradient(90deg, var(--graphite-light) 0 1px, transparent 1px 12px) bottom / 100% 6px no-repeat,
    repeating-linear-gradient(90deg, var(--soft) 0 1px, transparent 1px 120px) bottom / 100% 14px no-repeat; }
.playhead { position: absolute; left: 0; bottom: -1px; width: 2px; height: 40px; background: var(--copper); transform: translateX(var(--px, 0px)); z-index: 2; }
.playhead::before { content: ""; position: absolute; left: -5px; top: -8px; border: 6px solid transparent; border-top: 8px solid var(--copper); }
.ph-tc { position: absolute; left: 10px; top: -26px; padding: 2px 8px; border-radius: 4px; background: var(--copper); color: var(--obsidian); font-size: .78rem; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.timeline { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.timeline li { position: relative; padding-top: 4px; transition: opacity .5s ease; }
.motion .timeline li:not(.is-on) { opacity: .32; }
.tc { display: block; color: var(--copper); font-variant-numeric: tabular-nums; font-weight: 500; font-size: .95rem; margin-bottom: 10px; }
.timeline h3 { margin: 0 0 8px; font-size: 1.3rem; font-weight: 600; font-variation-settings: "wdth" 112; }
.timeline p { margin: 0; color: var(--soft); max-width: 34ch; }

/* ---------- Chapters (one tool at a time) ---------- */
.ch-intro { margin-bottom: clamp(40px, 5vw, 64px); }
.ch-grid { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.ch-index ol { list-style: none; padding: 0; margin: 0; }
.ch-index a { position: relative; display: flex; align-items: center; gap: 12px; padding: 14px 0; color: var(--faint); text-decoration: none; transition: color .3s; }
.ch-index a:hover, .ch-index a.on { color: var(--gypsum); }
.ch-index a.on [class^="i-"] { color: var(--copper); }
.ch-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line-2); overflow: hidden; }
.ch-bar i { display: block; height: 100%; background: var(--copper); transform-origin: 0 50%; transform: scaleX(0); }
.ch-count { margin: 28px 0 0; color: var(--faint); font-size: .9rem; font-variant-numeric: tabular-nums; }
.ch-count b { color: var(--gypsum); font-weight: 600; font-size: 1.6rem; font-variation-settings: "wdth" 125; margin-right: 4px; }
.ch-stack { position: relative; }
.chapter { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 4vw, 56px); align-items: center; padding-bottom: clamp(64px, 8vw, 104px); }
.ch-copy h3 { font-size: clamp(1.7rem, 2.6vw, 2.4rem); line-height: 1.06; letter-spacing: -.015em; font-weight: 300; font-variation-settings: "wdth" 125; margin: 0 0 14px; text-wrap: balance; }
.ch-copy > p { color: var(--soft); margin: 0; }
.ch-stage { position: relative; padding: clamp(18px, 3vw, 32px); }
.ch-frame { display: none; }
.ch-stage, .pin-ch .ch-frame {
  --c: rgba(244, 241, 232, .4); --l: 14px;
  background:
    linear-gradient(var(--c), var(--c)) top left / var(--l) 1px no-repeat,
    linear-gradient(var(--c), var(--c)) top left / 1px var(--l) no-repeat,
    linear-gradient(var(--c), var(--c)) top right / var(--l) 1px no-repeat,
    linear-gradient(var(--c), var(--c)) top right / 1px var(--l) no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / var(--l) 1px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / 1px var(--l) no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / var(--l) 1px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / 1px var(--l) no-repeat;
}
.ch-index .ch-count { display: none; }

/* Pinned mode (desktop with motion): chapters overlap, one shows at a time */
.pin-ch .ch-pin { height: 100vh; display: flex; align-items: center; }
.pin-ch .ch-pin > .wrap { width: 100%; }
.pin-ch .ch-index { align-self: center; }
.pin-ch .ch-index .ch-count { display: block; }
.pin-ch .ch-stack { display: grid; }
.pin-ch .chapter { grid-area: 1 / 1; padding-bottom: 0; visibility: hidden; }
.pin-ch .chapter.is-active { visibility: visible; }
.pin-ch .ch-stage { background: none; }
.pin-ch .ch-frame { display: block; grid-area: 1 / 1; position: relative; pointer-events: none; margin-left: calc(40% + clamp(28px, 4vw, 56px) * .4); }

/* Mocks */
.mock { position: relative; background: var(--surface-2); border-radius: 10px; padding: 20px; font-size: .9rem; box-shadow: 0 0 0 1px var(--line-2), 0 40px 80px -40px #000; }
.mh { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.mh p { margin: 0; font-weight: 600; }
.mh span { color: var(--faint); font-size: .8rem; }
.mn-label { margin: 16px 0 8px; color: var(--faint); font-size: .8rem; font-weight: 600; }
.mn-sum { margin: 0; padding-left: 18px; color: rgba(244,241,232,.86); }
.mn-sum li { margin-bottom: 6px; }
.mn-sum li::marker { color: var(--copper); }
.mn-task { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 6px; border: 1px solid var(--line); margin-top: 8px; }
.mn-task p { margin: 0; flex: 1; }
.mn-task em { font-style: normal; color: var(--faint); font-size: .8rem; }
.mn-task .box { width: 16px; height: 16px; border-radius: 4px; box-shadow: inset 0 0 0 1.5px rgba(244,241,232,.35); }
.add { position: relative; display: inline-grid; font-size: .78rem; font-weight: 600; border-radius: 999px; padding: 6px 12px; background: var(--copper); color: var(--obsidian); overflow: hidden; }
.add > span { grid-area: 1 / 1; text-align: center; }
.add-b { visibility: hidden; }

.mock-chat { display: flex; flex-direction: column; gap: 12px; min-height: 290px; }
.bubble { margin: 0; max-width: 88%; padding: 12px 14px; border-radius: 12px; line-height: 1.45; }
.bubble.me { align-self: flex-end; background: var(--copper); color: var(--obsidian); border-bottom-right-radius: 3px; font-weight: 500; transform-origin: 100% 100%; }
.bubble.ai { border: 1px solid var(--line-2); border-bottom-left-radius: 3px; }
.ai-text { margin: 0 0 10px; }
.typing { display: none; margin: 0; gap: 5px; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 12px; border-bottom-left-radius: 3px; width: max-content; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--soft); animation: dot 1s ease-in-out infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 60%, 100% { transform: translateY(0); opacity: .4; } 30% { transform: translateY(-4px); opacity: 1; } }
.cite { display: flex; align-items: center; gap: 10px; margin: 6px 0 0; padding: 8px 10px; border-radius: 6px; background: rgba(11,16,20,.7); font-size: .8rem; color: var(--faint); }
.cite b { color: var(--gypsum); font-weight: 600; }
.play { width: 20px; height: 20px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--copper); position: relative; flex: none; }
.play::after { content: ""; position: absolute; left: 7px; top: 5px; border-left: 7px solid var(--copper); border-top: 5px solid transparent; border-bottom: 5px solid transparent; }

.ms-prog { height: 4px; background: rgba(244,241,232,.08); }
.ms-prog i { display: block; height: 100%; width: 58%; background: var(--copper); }
.ms-meta { margin: 8px 0 12px; color: var(--faint); font-size: .8rem; }
.ms-meta b { color: var(--gypsum); font-weight: 600; }
.ms-row { position: relative; display: flex; align-items: center; gap: 12px; padding: 11px 2px; border-top: 1px solid var(--line); }
.ms-row p { margin: 0; flex: 1; }
.ms-row em { font-style: normal; color: var(--faint); font-size: .8rem; min-width: 46px; text-align: right; }
.ms-row.done p { text-decoration: line-through; color: var(--faint); }
.pri { width: 8px; height: 8px; background: rgba(244,241,232,.25); transform: rotate(45deg); flex: none; }
.pri.hi { background: var(--copper); } .pri.md { background: #C9C2AE; }
.cursor-tag { position: absolute; left: 48%; top: 66%; padding: 2px 8px; border-radius: 0 6px 6px 6px; background: #C9C2AE; color: var(--obsidian); font-size: .7rem; font-weight: 700; }
.cursor-tag::before { content: ""; position: absolute; left: -2px; top: -9px; border-left: 7px solid #C9C2AE; border-bottom: 10px solid transparent; transform: rotate(-12deg); }

.mock-shots table { width: 100%; border-collapse: collapse; font-size: .86rem; }
.mock-shots th { text-align: left; color: var(--faint); font-weight: 600; font-size: .76rem; padding: 0 8px 8px 0; }
.mock-shots td { padding: 11px 8px 11px 0; border-top: 1px solid var(--line); }
.mock-shots td:first-child { color: var(--copper); font-weight: 600; width: 36px; }
.mock-shots td:nth-child(3) { color: var(--faint); white-space: nowrap; }
.chk { display: block; width: 18px; height: 18px; border-radius: 4px; box-shadow: inset 0 0 0 1.5px rgba(244,241,232,.3); margin-left: auto; }
.mock-shots tr.ok .chk { background: var(--copper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B1014' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat; box-shadow: none; }
.mock-shots tr.ok td:nth-child(2) { color: var(--faint); }

.chip { font-size: .74rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--soft); }
.es-row { display: grid; grid-template-columns: minmax(0, 1fr) auto 76px; gap: 12px; align-items: baseline; padding: 11px 0; border-top: 1px solid var(--line); }
.es-row p { margin: 0; }
.es-row em { font-style: normal; color: var(--faint); font-size: .8rem; }
.es-row b, .es-total b { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.es-total { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0 2px; border-top: 2px solid var(--copper); }
.es-total p { margin: 0; font-weight: 600; }
.es-total b { font-size: 1.6rem; font-weight: 300; font-variation-settings: "wdth" 125; }

.mock-graph { padding: 14px; }
.mock-graph svg { width: 100%; height: auto; display: block; overflow: visible; }
.mock-graph .edge { fill: none; stroke: rgba(244,241,232,.3); stroke-width: 1.5; }
.mock-graph .edge.hot { stroke: var(--copper); stroke-width: 2; }
.mock-graph .node rect { fill: #1F2930; stroke: rgba(244,241,232,.2); }
.mock-graph .node text { fill: var(--gypsum); font: 600 14px "Archivo", sans-serif; }
.mock-graph .node circle { fill: var(--obsidian); stroke: rgba(244,241,232,.5); stroke-width: 1.5; }
.mock-graph .node.main rect { stroke: var(--copper); }
.mock-graph .node.main circle { stroke: var(--copper); }
.mock-graph .node.out rect { fill: var(--copper); stroke: none; }
.mock-graph .node { transform-box: fill-box; transform-origin: 50% 50%; }

/* ---------- Ledger ---------- */
.ledger { margin: clamp(40px, 5vw, 64px) 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(32px, 6vw, 96px); }
.ledger > div { position: relative; display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 24px; padding: 20px 0; }
.ledger > div::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line-2); transform-origin: 0 50%; }
.ledger dt { font-weight: 600; }
.ledger dd { margin: 0; color: var(--soft); }

/* ---------- Specifications ---------- */
.sheet { margin-top: clamp(40px, 5vw, 64px); border: 1px solid var(--line-2); border-radius: 4px; }
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table th, .spec-table td { text-align: left; vertical-align: top; padding: 18px 24px; border-bottom: 1px solid var(--line); }
.spec-table th { width: 240px; font-weight: 600; color: var(--gypsum); border-right: 1px solid var(--line); }
.spec-table td { color: var(--soft); }
.spec-table a { color: var(--copper); }
.title-block { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 2px solid var(--gypsum); }
.tb-cell { padding: 14px 20px 16px; border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 4px; }
.tb-cell:nth-child(4n), .tb-wide:nth-child(2) { border-right: 0; }
.tb-wide { grid-column: span 2; }
.tb-cell:nth-last-child(-n+4) { border-bottom: 0; }
.tb-cell span { color: var(--faint); font-size: .76rem; }
.tb-cell b { font-weight: 500; }
.tb-wide b { font-size: 1.35rem; font-weight: 300; font-variation-settings: "wdth" 125; }

/* ---------- Security schematic ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 112px); align-items: center; }
.schematic { position: relative; }
.sc-node { padding: 18px 20px; border: 1px solid var(--line-2); border-radius: 8px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; background: var(--obsidian); position: relative; z-index: 1; }
.sc-node b { font-weight: 600; }
.sc-node span, .sc-aside span { color: var(--faint); font-size: .86rem; }
.sc-main { border-color: var(--copper); }
.sc-link { position: relative; height: 56px; margin-left: 32px; }
.sc-link::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; transform-origin: 50% 0;
  background: repeating-linear-gradient(180deg, var(--copper) 0 10px, transparent 10px 14px, var(--copper) 14px 16px, transparent 16px 20px); }
.sc-link span { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); font-size: .8rem; color: #F0A592; }
.pkt { position: absolute; left: -3px; top: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--gypsum); box-shadow: 0 0 12px 2px rgba(226,90,60,.8); opacity: 0; }
.sc-aside { margin-top: 22px; padding: 12px 16px; border: 1px dashed var(--line-2); border-radius: 8px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.sc-aside b { font-weight: 600; font-size: .92rem; }

/* ---------- Phone ---------- */
.split-phone { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
.phone-stage { perspective: 1400px; display: grid; place-items: center; }
.phone { width: 280px; padding: 10px; border-radius: 46px; box-shadow: inset 0 0 0 1.5px var(--gypsum), 0 0 0 7px var(--obsidian), 0 0 0 8px var(--line), 0 50px 100px -40px #000; transform-style: preserve-3d; }
.ph-screen { position: relative; border-radius: 36px; background: var(--surface); padding: 18px 22px 24px; min-height: 560px; display: flex; flex-direction: column; align-items: center; text-align: center; overflow: hidden; }
.ph-status { align-self: stretch; display: flex; justify-content: space-between; margin: 0 0 26px; font-weight: 600; font-size: .85rem; }
.ph-rec { display: inline-flex; align-items: center; gap: 6px; color: #F0A592; font-size: .72rem; letter-spacing: .02em; }
.ph-rec i { width: 7px; height: 7px; border-radius: 50%; background: var(--copper); animation: blink 1.4s steps(2, jump-none) infinite; }
.ph-title { margin: 0; font-size: 1.4rem; font-weight: 300; font-variation-settings: "wdth" 125; }
.ph-sub { margin: 4px 0 24px; color: var(--faint); font-size: .8rem; }
.ph-ring { position: relative; width: 168px; height: 168px; display: grid; place-items: center; margin-bottom: 18px; }
.ph-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.ph-track { fill: none; stroke: var(--line-2); stroke-width: 1.5; }
.ph-arc { fill: none; stroke: var(--copper); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 452.4; stroke-dashoffset: 120; }
.ph-clock { position: relative; font-size: 2rem; font-weight: 300; font-variation-settings: "wdth" 112; font-variant-numeric: tabular-nums; }
.wave.sm { width: 100%; justify-content: center; height: 34px; margin: 0; }
.ph-feed { position: relative; align-self: stretch; height: 92px; margin: 16px 0 auto; }
.ph-line { position: absolute; inset: 0; margin: 0; text-align: left; font-size: .82rem; color: rgba(244,241,232,.88); line-height: 1.45; border: 1px solid var(--line); padding: 10px 12px; border-radius: 12px; background: rgba(11,16,20,.4); }
.ph-line b { display: block; font-size: .7rem; color: var(--faint); margin-bottom: 2px; }
.ph-line .w { opacity: .15; transition: opacity .25s; }
.ph-line .w.on { opacity: 1; }
.ph-stop { width: 56px; height: 56px; border-radius: 50%; margin-top: 18px; box-shadow: inset 0 0 0 2px var(--gypsum); position: relative; flex: none; }
.ph-stop::after { content: ""; position: absolute; inset: 18px; border-radius: 4px; background: var(--copper); }

/* ---------- Company ---------- */
.company .split { align-items: start; }
.co-lede { font-size: clamp(1.3rem, 2vw, 1.7rem); line-height: 1.35; font-weight: 300; font-variation-settings: "wdth" 112; margin: 0 0 20px; max-width: 30ch; }

/* ---------- FAQ ---------- */
.split-faq { align-items: start; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); }
.home .faq summary { font-size: 1.05rem; padding: 20px 0; }
.home .faq a { color: var(--copper); }
.faq-a { overflow: hidden; }

/* ---------- Access ---------- */
.access { padding-bottom: clamp(104px, 12vw, 176px); }
.big-mail { position: relative; display: inline-block; margin-top: 36px; font-size: clamp(1.7rem, 5.6vw, 4.4rem); font-weight: 300; font-variation-settings: "wdth" 125;
  letter-spacing: -.02em; color: var(--gypsum); text-decoration: none; overflow-wrap: anywhere; padding-bottom: 8px; }
.big-mail::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--copper); transform-origin: 0 50%; transition: transform .6s var(--ease-out); }
.motion .big-mail::after { transform: scaleX(0); }
.motion .big-mail.drawn::after { transform: scaleX(1); }
.big-mail .ch { display: inline-block; }

/* ---------- Footer ---------- */
.home .site-foot { padding: 64px 0 36px; }
.foot-grid { display: grid !important; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.foot-grid > div p { margin: 16px 0 0; line-height: 1.6; }
.coords { color: var(--faint); font-variant-numeric: tabular-nums; }
.foot-grid nav { display: flex; flex-direction: column; gap: 10px; }
.foot-grid nav p { margin: 0 0 4px; color: var(--gypsum); font-weight: 600; }
.foot-grid nav a { color: var(--soft); text-decoration: none; }
.foot-grid nav a:hover { color: var(--gypsum); }
.foot-base { margin-top: 48px; padding-top: 24px !important; border-top: 1px solid var(--line); }
.foot-base p { margin: 0; }

/* Header hides while reading down */
.site-head { transition: transform .5s var(--ease-out), border-color .3s, background-color .3s; }
.site-head.is-hidden { transform: translateY(-100%); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .ch-grid { grid-template-columns: 1fr; }
  .ch-index { display: none; }
}
@media (max-width: 900px) {
  .dims, .appwin { grid-template-columns: minmax(0, 1fr) 42%; }
  .d-side, .aw-side { display: none; }
  .hero3-sub { grid-template-columns: 1fr; }
  .chapter, .split, .split-phone, .split-faq { grid-template-columns: 1fr; }
  .ledger { grid-template-columns: 1fr; }
  .title-block { grid-template-columns: 1fr 1fr; }
  .tb-wide { grid-column: span 2; }
  .tb-cell { border-right: 0 !important; }
  .tb-cell:nth-child(odd):not(.tb-wide) { border-right: 1px solid var(--line-2) !important; }
  .tb-cell:nth-last-child(-n+4) { border-bottom: 1px solid var(--line-2); }
  .tb-cell:nth-last-child(-n+2) { border-bottom: 0; }
  .phone-stage { order: 2; }
  .foot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot-grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
  .dims { display: none; }
  .appwin { grid-template-columns: 1fr; }
  .aw-notes { border-left: 0; border-top: 1px solid var(--line); }
  .cols .col:nth-child(1) { display: none; }
  .cols { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; gap: 28px; }
  .ruler-wrap .ruler { display: none; }
  .motion .timeline li:not(.is-on) { opacity: 1; }
  .ledger > div { grid-template-columns: 1fr; gap: 4px; }
  .spec-table th, .spec-table td { display: block; width: auto; border-right: 0; padding: 12px 16px; }
  .spec-table th { padding-bottom: 0; border-bottom: 0; }
  .hero3-act { flex-direction: column; align-items: flex-start; }
  .es-row { grid-template-columns: minmax(0, 1fr) 76px; }
  .es-row em, .mn-task em { display: none; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
