/* Engramyx — page styles */

/* ================= HOME ================= */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
#net { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-in { position: relative; padding-top: 70px; padding-bottom: 90px; pointer-events: none; }
.hero-in > * { pointer-events: auto; }
.hero { height: 100svh; min-height: 640px; }
.hero h1 { margin: 24px 0 26px; max-width: 13ch; font-size: clamp(38px, min(5.6vw, 9.4vh), 88px); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.hero-foot { position: absolute; left: 0; right: 0; bottom: 30px; margin: 0 auto; display: flex; justify-content: space-between; align-items: flex-end; }
.hero-foot b { display: block; font-family: var(--head); font-weight: 400; font-size: clamp(22px, 2.4vw, 32px); letter-spacing: -0.02em; margin-top: 4px; }
.scroll-cue { display: inline-flex; align-items: center; gap: 12px; }
.scroll-cue i { width: 1px; height: 44px; background: var(--line-2); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; left: 0; top: 0; width: 1px; height: 50%; background: var(--cyan); animation: cue 2s var(--ease-io) infinite; }
@keyframes cue { from { transform: translateY(-100%); } to { transform: translateY(200%); } }
@media (max-width: 760px) { .hero h1 { max-width: none; } .scroll-cue { display: none; } }

.scrub { margin-top: 34px; max-width: 20ch; max-width: min(100%, 1100px); }
.scrub .sw { opacity: 0.16; transition: opacity 0.35s; }
.scrub .sw.on { opacity: 1; }
.sec-head { margin-bottom: clamp(44px, 6vw, 80px); }
.sec-head h2 { margin-top: 22px; max-width: 16ch; }

/* horizontal capabilities */
.hz { position: relative; height: 520vh; }
.hz-pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
.hz-head { position: absolute; top: 92px; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; }
.hz-track { display: flex; gap: 22px; padding: 0 var(--pad); width: max-content; will-change: transform; align-items: stretch; }
.cap { width: min(430px, 82vw); flex: none; display: flex; flex-direction: column; min-height: min(520px, 66svh); }
.cap-intro { width: min(620px, 86vw); justify-content: center; padding-right: 40px; }
.cap .h-md { margin: 14px 0 14px; font-size: clamp(24px, 2.4vw, 34px); }
.cap p { font-size: 14.5px; }
.cap-viz { position: relative; height: 170px; margin: -6px -6px 26px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; display: grid; place-items: center; color: var(--text); background: var(--bg); }
.cap-viz svg { width: 100%; height: 100%; }
.svg-lab { font-family: var(--mono); font-size: 8px; letter-spacing: 0.14em; fill: currentColor; fill-opacity: 0.5; }
.hz-bar { position: absolute; left: var(--pad); right: var(--pad); bottom: 40px; height: 1px; background: var(--line); }
.hz-bar i { position: absolute; inset: 0; background: var(--cyan); transform-origin: left; transform: scaleX(0); }
.cap-motor { border-color: rgba(255, 64, 52, 0.28); }
.viz-live { position: absolute; top: 12px; right: 14px; color: var(--red); font-size: 10px; }
.arm-a { transform-origin: 110px 110px; animation: armA 3.2s var(--ease-io) infinite alternate; }
.arm-b { transform-origin: 170px 110px; animation: armB 3.2s var(--ease-io) infinite alternate; }
@keyframes armA { from { transform: rotate(8deg); } to { transform: rotate(-38deg); } }
@keyframes armB { from { transform: rotate(-10deg); } to { transform: rotate(-78deg); } }
/* viz: capture */
.vz-dots { display: grid; grid-template-columns: repeat(18, 1fr); gap: 9px; padding: 0 26px; width: 100%; }
.vz-dots i { aspect-ratio: 1; border-radius: 50%; background: var(--cyan); opacity: 0.12; animation: dot 3.6s infinite; animation-delay: calc(var(--k) * 30ms); }
@keyframes dot { 0%, 100% { opacity: 0.12; transform: scale(0.7); } 12% { opacity: 1; transform: scale(1); } 40% { opacity: 0.4; } }
/* viz: strengthen */
.vz-bars { width: 100%; padding: 0 28px; display: grid; gap: 11px; }
.vz-bars i { height: 5px; border-radius: 5px; background: rgba(255, 255, 255, 0.08); position: relative; overflow: hidden; }
.vz-bars i::after { content: ""; position: absolute; inset: 0; background: var(--cyan); transform-origin: left; transform: scaleX(var(--a)); animation: grow 4s var(--ease-io) infinite alternate; animation-delay: calc(var(--k) * 200ms); }
.vz-bars i.on::after { animation-name: growOn; }
@keyframes grow { to { transform: scaleX(calc(var(--a) * 0.6)); opacity: 0.4; } }
@keyframes growOn { to { transform: scaleX(1); } }
/* viz: recall */
.vz-wave { display: flex; align-items: center; gap: 3px; height: 100%; padding: 0 22px; width: 100%; position: relative; }
.vz-wave i { flex: 1; background: var(--text); opacity: 0.22; border-radius: 2px; height: calc(var(--h) * 1%); animation: wv 1.4s ease-in-out infinite alternate; animation-delay: calc(var(--k) * -70ms); }
@keyframes wv { to { height: calc(var(--h) * 0.45%); } }
.vz-wave::after { content: ""; position: absolute; top: 14px; bottom: 14px; left: 22px; width: 1px; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); animation: head 5s linear infinite; }
@keyframes head { to { left: calc(100% - 22px); } }
.vz-wave.scrub::after { animation: none; left: var(--px); }
.vz-wave i.pl { background: var(--cyan); opacity: 0.9; }
.vz-bars i { cursor: pointer; padding: 0; box-shadow: 0 0 0 5px transparent; }
.vz-bars i:hover { background: rgba(255, 255, 255, 0.2); }
.pr-list li { cursor: pointer; }
.pr-list li:hover { opacity: 0.75; }
.pr-list li.on:hover { opacity: 1; }
/* viz: edit */
.ed { width: 100%; padding: 0 26px; font-family: var(--mono); font-size: 11px; display: grid; gap: 9px; color: var(--muted); }
.ed li { position: relative; width: max-content; }
.ed .strike::after { content: ""; position: absolute; left: -4px; right: -4px; top: 50%; height: 1px; background: var(--red); transform-origin: left; animation: strike 5s var(--ease-io) infinite; }
.ed .strike { animation: gone 5s infinite; }
.ed .fade { animation: fadeMem 6s infinite; }
@keyframes strike { 0%, 15% { transform: scaleX(0); } 35%, 100% { transform: scaleX(1); } }
@keyframes gone { 0%, 40% { opacity: 1; } 60%, 92% { opacity: 0; } }
@keyframes fadeMem { 0%, 20% { opacity: 1; filter: blur(0); } 70%, 100% { opacity: 0.12; filter: blur(2.5px); } }

/* product reveal */
.pr { height: 420vh; position: relative; }
.pr-pin { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; overflow: hidden; }
.pr-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 40px; align-items: center; }
.pr-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.pr-list li { padding: 16px 0 16px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 150px 1fr; gap: 14px; opacity: 0.28; transition: opacity 0.5s, padding 0.6s var(--ease); position: relative; }
.pr-list li::before { content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%; background: var(--cyan); transform: scaleX(0); transform-origin: left; transition: transform 0.8s var(--ease-io); }
.pr-list li.on { opacity: 1; padding-left: 12px; }
.pr-list li.on::before { transform: scaleX(1); }
.pr-list b { font-family: var(--head); font-weight: 500; font-size: 17px; }
.pr-list span { font-size: 13.5px; color: var(--muted); }
.pr-stage { position: relative; height: min(70vh, 640px); display: grid; place-items: center; perspective: 1400px; }
.pr-dev { position: relative; width: min(360px, 62vw); aspect-ratio: 360 / 160; transform-style: preserve-3d; will-change: transform; }
.pr-dev .ly { position: absolute; inset: 0; width: 100%; height: 100%; will-change: transform, opacity; }
.pr-scale { position: absolute; bottom: 6%; left: 50%; translate: -50% 0; display: flex; align-items: center; gap: 12px; white-space: nowrap; opacity: 0; transition: opacity 0.5s; }
.pr-scale i { width: 60px; height: 7px; border: 1px solid var(--line-2); border-top: 0; }
@media (max-width: 900px) {
  .pr-grid { grid-template-columns: 1fr; gap: 0; }
  .pr-copy h2 { font-size: 30px; margin: 14px 0 18px !important; }
  .pr-stage { height: 34svh; order: -1; }
  .pr-list li { grid-template-columns: 1fr; gap: 2px; padding: 10px 0; }
  .pr-list span { font-size: 12.5px; }
}

.quote blockquote { margin: 0 0 40px; font-family: var(--head); font-size: clamp(20px, 1.9vw, 26px); line-height: 1.25; letter-spacing: -0.02em; }
.quote { display: flex; flex-direction: column; justify-content: space-between; min-height: 280px; }
.cta-in h2 { margin: 26px 0 30px; max-width: 12ch; }
.cta-in .inline-form { margin-top: 44px; }

/* ================= HOW IT WORKS ================= */
.two-col { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(30px, 6vw, 100px); align-items: start; }
.sticky-col { position: sticky; top: 120px; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } .sticky-col { position: static; } }
.how { height: 700vh; position: relative; }
.how-pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.how-svg { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--text); }
.how-svg text { font-family: var(--mono); font-size: 9px; letter-spacing: 0.16em; fill: #86939a; }
.how-pin::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--bg) 4%, transparent 52%), linear-gradient(to bottom, var(--bg), transparent 16%); pointer-events: none; }
.how-top { position: absolute; top: 88px; left: 0; right: 0; margin: 0 auto; display: flex; justify-content: space-between; z-index: 2; }
.how-steps { position: absolute; left: 0; right: 0; bottom: clamp(28px, 6vh, 64px); margin: 0 auto; z-index: 2; }
.how-stack { position: relative; max-width: 470px; display: grid; }
.how-step { grid-area: 1 / 1; align-self: end; opacity: 0; transform: translateY(26px); transition: opacity 0.5s, transform 0.8s var(--ease); pointer-events: none; }
.how-step.on { opacity: 1; transform: none; pointer-events: auto; transition-delay: 0.15s; }
.how-step.past { transform: translateY(-26px); }
.how-step h2 { margin: 14px 0 14px; }
.how-step p { color: var(--muted); font-size: 15px; }
.how-step ul { display: flex; flex-wrap: wrap; gap: 6px 26px; margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.how-step ul b { font-weight: 400; color: var(--text); margin-left: 6px; }
.how-rail { position: absolute; right: var(--pad); top: 50%; translate: 0 -50%; z-index: 2; list-style: none; margin: 0; padding: 0; display: grid; gap: 44px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); text-align: right; }
.how-rail::before, .how-fill { content: ""; position: absolute; right: 3px; top: 8px; bottom: 8px; width: 1px; background: var(--line-2); }
.how-fill { background: var(--cyan); transform-origin: top; transform: scaleY(0); }
.how-rail li { position: relative; padding-right: 24px; transition: color 0.4s; cursor: pointer; }
.how-rail li:hover { color: var(--text); }
.how-rail li i { position: absolute; right: 0; top: 50%; width: 7px; height: 7px; margin-top: -4px; border-radius: 50%; background: var(--bg); border: 1px solid var(--faint); z-index: 1; transition: background 0.3s, border-color 0.3s, box-shadow 0.3s; }
.how-rail li.on { color: var(--text); }
.how-rail li.on i { background: var(--cyan); border-color: var(--cyan); box-shadow: 0 0 0 5px var(--cyan-dim); }
.how-rail li.r.on { color: var(--red); }
.how-rail li.r.on i { background: var(--red); border-color: var(--red); box-shadow: 0 0 0 5px rgba(255, 64, 52, 0.18); }
@media (max-width: 760px) {
  .how-rail { top: 124px; right: var(--pad); left: var(--pad); translate: none; display: flex; justify-content: space-between; gap: 0; font-size: 8px; }
  .how-rail::before, .how-fill { left: 0; right: 0; top: 3px; bottom: auto; width: auto; height: 1px; }
  .how-fill { transform-origin: left; transform: scaleX(0); }
  .how-rail li { padding: 16px 0 0; }
  .how-rail li i { top: 0; margin: 0; right: auto; left: 0; }
  .how-step p { font-size: 14px; }
}
.spec { width: 100%; border-collapse: collapse; }
.spec tr { border-bottom: 1px solid var(--line); transition: background 0.3s, opacity 1s var(--ease), transform 1.2s var(--ease); }
.spec tr:hover { background: rgba(165, 238, 248, 0.04); }
.spec th { text-align: left; font-family: var(--head); font-weight: 500; font-size: 18px; padding: 20px 14px 20px 0; white-space: nowrap; vertical-align: top; }
.spec td { padding: 22px 14px 20px 0; font-size: 14px; color: var(--muted); }
.spec td:last-child { text-align: right; padding-right: 0; white-space: nowrap; }
@media (max-width: 600px) { .spec th { white-space: normal; font-size: 15px; } .spec td { font-size: 13px; } }

/* ================= APP ================= */
.app-row { padding: clamp(60px, 9vw, 130px) 0; border-top: 1px solid var(--line); overflow: clip; }
.app-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); gap: clamp(30px, 6vw, 90px); align-items: center; }
.app-row.flip .app-copy { order: 2; }
.app-copy h2 { margin: 20px 0 26px; font-size: clamp(32px, 4.4vw, 64px); max-width: 14ch; }
.ticks { margin-top: 30px; border-top: 1px solid var(--line); max-width: 440px; }
.ticks li { padding: 13px 0 13px 26px; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--muted); position: relative; transition: padding 0.5s var(--ease), color 0.3s; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 20px; width: 9px; height: 5px; border: solid var(--cyan); border-width: 0 0 1px 1px; transform: rotate(-45deg); }
.ticks li:hover { padding-left: 34px; color: var(--text); }
.phone-wrap { display: grid; place-items: center; perspective: 1400px; position: relative; }
.phone-wrap::before { content: ""; position: absolute; width: 130%; aspect-ratio: 1; border-radius: 50%; border: 1px solid var(--line); }
.phone-wrap::after { content: ""; position: absolute; width: 96%; aspect-ratio: 1; border-radius: 50%; border: 1px dashed var(--line); animation: spin 90s linear infinite; }
.phone { position: relative; z-index: 1; width: min(318px, 86vw); height: 650px; border-radius: 46px; background: #0b0e10; border: 1px solid rgba(255, 255, 255, 0.2); padding: 9px; box-shadow: 0 0 0 5px #050607, 0 0 0 6px rgba(255, 255, 255, 0.09), 0 60px 120px -30px rgba(0, 0, 0, 0.9); transition: transform 0.6s var(--ease); transform-style: preserve-3d; }
.ph-notch { position: absolute; top: 18px; left: 50%; translate: -50% 0; width: 86px; height: 24px; border-radius: 20px; background: #000; z-index: 5; }
.ph-screen { position: relative; height: 100%; border-radius: 38px; background: #060809; overflow: hidden auto; padding: 0 16px 20px; color: #e8eef0; font-size: 13px; scrollbar-width: none; }
.ph-screen::-webkit-scrollbar { display: none; }
.ph-bar { position: sticky; top: 0; z-index: 4; display: flex; justify-content: space-between; align-items: center; padding: 14px 8px 10px; font-size: 12px; font-weight: 500; background: linear-gradient(#060809 70%, transparent); }
.ph-bar .mono { font-size: 9px; color: #86939a; letter-spacing: 0.08em; text-transform: uppercase; }
.ph-h { padding: 20px 4px 14px; }
.ph-h small { color: #86939a; font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase; }
.ph-h h4 { font-size: 30px; margin-top: 6px; }
.ph-search { display: flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, 0.06); border-radius: 11px; padding: 0 12px; margin-bottom: 12px; border: 1px solid transparent; transition: border-color 0.3s; }
.ph-search:focus-within { border-color: rgba(165, 238, 248, 0.5); }
.ph-search svg { width: 12px; fill: none; stroke: #86939a; flex: none; }
.ph-search input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: inherit; font: inherit; font-size: 13px; padding: 10px 0; }
.ph-list { display: grid; gap: 8px; }
.ph-note { color: #4d575c; font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase; text-align: center; margin-top: 16px; transition: color 0.3s; min-height: 2.6em; }
.ph-note.warn { color: var(--red); }
.ph-note.ok { color: var(--cyan); }
/* timeline */
.tl { text-align: left; width: 100%; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 14px; padding: 12px 13px; display: grid; grid-template-columns: 38px 1fr auto; gap: 2px 10px; align-items: center; transition: background 0.3s, border-color 0.3s, transform 0.4s var(--ease); }
.tl:hover { background: rgba(255, 255, 255, 0.04); border-color: rgba(255, 255, 255, 0.18); }
.tl:active { transform: scale(0.98); }
.tl time { font-family: var(--mono); font-size: 10px; color: #86939a; }
.tl b { font-weight: 500; font-size: 13.5px; }
.tl small { grid-column: 2; color: #86939a; font-size: 11px; }
.tl .v { grid-row: 1 / 3; grid-column: 3; font-family: var(--mono); font-size: 11px; color: var(--cyan); width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(165, 238, 248, 0.35); display: grid; place-items: center; }
.tl .more { grid-column: 1 / -1; display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.5s var(--ease); }
.tl .more > span { overflow: hidden; min-height: 0; display: block; }
.tl .more em { display: block; font-style: normal; padding-top: 10px; margin-top: 10px; border-top: 1px solid rgba(255, 255, 255, 0.08); color: #86939a; font-size: 11.5px; line-height: 1.5; }
.tl.open .more { grid-template-rows: 1fr; }
.tl.open { border-color: rgba(165, 238, 248, 0.4); }
.tl.gone b { color: #4d575c; }
.tl.gone .v { color: var(--red); border-color: rgba(255, 64, 52, 0.4); }
.tl.flag small { color: var(--cyan); }
.tl-sk { height: 58px; border-radius: 14px; }
.tl-none { color: #86939a; text-align: center; padding: 30px 10px; font-size: 12px; }
/* strengthen */
.st-slots { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; margin: 0 4px 16px; }
.st-slots i { height: 3px; border-radius: 3px; background: rgba(255, 255, 255, 0.1); transition: background 0.4s; }
.st-slots i.on { background: var(--cyan); }
.st { display: flex; align-items: center; gap: 12px; justify-content: space-between; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 14px; padding: 10px 13px; transition: border-color 0.3s, background 0.3s; }
.st.on { border-color: rgba(165, 238, 248, 0.35); background: rgba(165, 238, 248, 0.04); }
.st b { display: block; font-weight: 500; font-size: 13px; }
.st small { color: #86939a; font-size: 10.5px; }
.st.lock small { color: var(--cyan); }
/* memory */
.mm-wave { height: 150px; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 16px; overflow: hidden; position: relative; }
.mm-wave canvas { width: 100%; height: 100%; cursor: pointer; }
.mm-ctrl { display: flex; align-items: center; gap: 12px; margin: 14px 2px; }
.mm-ctrl .mono { font-size: 10px; color: #86939a; }
.mm-val { margin-left: auto; } .mm-val b { color: var(--cyan); font-weight: 400; }
.mm-play { width: 42px; height: 42px; border-radius: 50%; background: var(--cyan); display: grid; place-items: center; transition: transform 0.4s var(--ease), background 0.3s; }
.mm-play:hover { transform: scale(1.08); background: #fff; } .mm-play:active { transform: scale(0.92); }
.mm-play svg { width: 14px; fill: #060809; } .mm-play .i-pause, .mm-play.playing .i-play { display: none; } .mm-play.playing .i-pause { display: block; }
.mm-slider { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; margin: 4px 2px 14px; }
.mm-slider .mono { font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; color: #86939a; }
.mm-slider input { -webkit-appearance: none; appearance: none; width: 100%; height: 22px; background: none; }
.mm-slider input::-webkit-slider-runnable-track { height: 2px; background: linear-gradient(to right, var(--cyan) var(--p, 100%), rgba(255, 255, 255, 0.14) var(--p, 100%)); }
.mm-slider input::-moz-range-track { height: 2px; background: rgba(255, 255, 255, 0.14); }
.mm-slider input::-moz-range-progress { height: 2px; background: var(--cyan); }
.mm-slider input::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; background: #fff; margin-top: -7px; transition: transform 0.2s; }
.mm-slider input::-moz-range-thumb { width: 16px; height: 16px; border: 0; border-radius: 50%; background: #fff; }
.mm-slider input:active::-webkit-slider-thumb { transform: scale(1.3); }
.mm-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.mm-chips button { font-size: 11px; padding: 6px 11px; border-radius: 20px; border: 1px solid rgba(255, 255, 255, 0.14); color: #86939a; transition: all 0.3s; }
.mm-chips button.on { border-color: var(--cyan); color: var(--cyan); background: rgba(165, 238, 248, 0.08); }
.mm-chips button:active { transform: scale(0.94); }
.mm-acts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.mm-acts button, .ph-sheet button, .gd-revoke { padding: 12px 0; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.14); font-size: 12.5px; font-weight: 500; transition: background 0.3s, transform 0.3s var(--ease), border-color 0.3s; }
.mm-acts button:hover, .ph-sheet button:hover { background: rgba(255, 255, 255, 0.07); }
.mm-acts button:active, .ph-sheet button:active, .gd-revoke:active { transform: scale(0.96); }
.danger { color: var(--red); border-color: rgba(255, 64, 52, 0.4) !important; }
.ph-sheet { position: absolute; left: 8px; right: 8px; bottom: 8px; z-index: 6; background: #111517; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 28px; padding: 22px 18px 16px; transform: translateY(115%); transition: transform 0.6s var(--ease); }
.ph-sheet.open { transform: none; }
.ph-sheet h5 { font-family: var(--head); font-weight: 500; font-size: 18px; margin: 0 0 8px; }
.ph-sheet p { color: #86939a; font-size: 12px; margin-bottom: 16px; }
.ph-sheet div { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.ph-toast { position: absolute; left: 16px; right: 16px; top: 56px; z-index: 7; background: #e8eef0; color: #060809; border-radius: 14px; padding: 11px 14px; font-size: 12px; font-weight: 500; transform: translateY(-160%); opacity: 0; transition: transform 0.6s var(--ease), opacity 0.4s; }
.ph-toast.show { transform: none; opacity: 1; }
.ph-screen.wiped .mm-wave, .ph-screen.wiped .mm-ctrl, .ph-screen.wiped .mm-slider, .ph-screen.wiped .mm-chips, .ph-screen.wiped .mm-acts { opacity: 0.25; pointer-events: none; transition: opacity 0.6s; }
/* guardian */
.gd-card { display: flex; align-items: center; gap: 11px; border: 1px solid rgba(165, 238, 248, 0.3); border-radius: 16px; padding: 13px; margin-bottom: 10px; background: rgba(165, 238, 248, 0.04); }
.gd-av { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--cyan); display: grid; place-items: center; font-family: var(--mono); font-size: 11px; color: var(--cyan); flex: none; }
.gd-card b { display: block; font-weight: 500; } .gd-card small { color: #86939a; font-size: 10.5px; }
.gd-card .mono { margin-left: auto; font-size: 8.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cyan); }
.gd-revoke { width: 100%; margin-top: 12px; color: var(--red); border-color: rgba(255, 64, 52, 0.4); }
.gd-revoke:hover { background: rgba(255, 64, 52, 0.08); }
@media (max-width: 860px) {
  .app-grid { grid-template-columns: 1fr; gap: 54px; }
  .app-row.flip .app-copy { order: 0; }
  .phone-wrap::before { width: 100%; } .phone-wrap::after { width: 78%; }
}

/* ================= MOTOR LINK (clinical white) ================= */
.theme-light .nav.scrolled { background: rgba(245, 246, 246, 0.82); }
.theme-light .card { background: #fff; }
.theme-light .footer-word { -webkit-text-stroke-color: rgba(0, 0, 0, 0.14); }
.theme-light .field select option { background: #fff; color: #0a0d0f; }
.theme-light .footer .field input { color: var(--text); }
.theme-light .mmenu { background: var(--bg); }
.ml-head { padding-bottom: 0; background: linear-gradient(var(--bg-2), var(--bg)); }
.ml-head::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 72px 72px; -webkit-mask-image: linear-gradient(to bottom, #000, transparent 85%); mask-image: linear-gradient(to bottom, #000, transparent 85%); opacity: 0.6; pointer-events: none; }
.ml-head .wrap { position: relative; }
.ml-strip { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(60px, 9vw, 120px); border-top: 1px solid var(--line); }
.ml-strip > div { padding: 28px 22px 34px 0; }
.ml-strip > div + div { border-left: 1px solid var(--line); padding-left: 22px; }
.ml-strip b { display: block; font-family: var(--head); font-weight: 500; font-size: clamp(32px, 3.8vw, 54px); letter-spacing: -0.04em; line-height: 1; }
.ml-strip span { font-size: 13px; color: var(--muted); display: block; margin-top: 10px; }
@media (max-width: 760px) { .ml-strip { grid-template-columns: 1fr 1fr; } .ml-strip > div:nth-child(3) { border-left: 0; padding-left: 0; } .ml-strip > div:nth-child(n+3) { border-top: 1px solid var(--line); } }
.ml-anat { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(30px, 5vw, 80px); align-items: center; }
.mg { margin-top: 34px; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.mg li { border-bottom: 1px solid var(--line); }
.mg li:nth-child(odd) { border-right: 1px solid var(--line); }
.mg button { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 13px 12px 13px 0; font-size: 14px; text-align: left; transition: padding 0.45s var(--ease), color 0.3s, background 0.3s; color: var(--muted); }
.mg li:nth-child(even) button { padding-left: 14px; }
.mg button small { font-family: var(--mono); font-size: 10px; color: var(--faint); }
.mg button.on, .mg button:hover { color: var(--text); padding-left: 14px; background: var(--cyan-dim); }
.mg li:nth-child(even) button.on, .mg li:nth-child(even) button:hover { padding-left: 24px; }
.mg button.on small { color: var(--cyan-ink); }
.ml-fig { position: relative; height: min(84vh, 720px); border: 1px solid var(--line); background: #fff; }
.ml-fig canvas, .rs-view canvas { width: 100%; height: 100%; }
.ml-read { position: absolute; left: 18px; bottom: 16px; right: 18px; display: flex; gap: 28px; font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; }
.ml-read span, .rs-vitals span, .rs-axes span { display: block; color: var(--faint); margin-bottom: 3px; }
.ml-read b, .rs-vitals b, .rs-axes b { font-weight: 400; color: var(--text); }
.ml-corner { position: absolute; width: 10px; height: 10px; border: solid var(--text); border-width: 0; }
.ml-corner.c-tl { left: -1px; top: -1px; border-left-width: 1px; border-top-width: 1px; } .ml-corner.c-tr { right: -1px; top: -1px; border-right-width: 1px; border-top-width: 1px; }
.ml-corner.c-bl { left: -1px; bottom: -1px; border-left-width: 1px; border-bottom-width: 1px; } .ml-corner.c-br { right: -1px; bottom: -1px; border-right-width: 1px; border-bottom-width: 1px; }
@media (max-width: 900px) { .ml-anat { grid-template-columns: 1fr; } .ml-fig { height: 520px; } }

.rs { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr); border: 1px solid var(--line-2); background: #fff; }
.rs-view { position: relative; height: 680px; border-right: 1px solid var(--line); overflow: hidden; }
.rs-hud { position: absolute; left: 18px; right: 18px; top: 16px; display: flex; justify-content: space-between; gap: 12px; font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); z-index: 1; }
.rs-hud .live { color: var(--red); }
.rs-vitals { position: absolute; left: 18px; right: 18px; bottom: 16px; display: flex; gap: 30px; font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; }
.rs-panel { display: flex; flex-direction: column; }
.rs-block { padding: 20px 22px; border-bottom: 1px solid var(--line); }
.rs-block .lab { display: block; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); margin-bottom: 12px; }
.rs-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.rs-seg button { padding: 10px 0; font-size: 13px; border: 1px solid var(--line-2); border-radius: 8px; transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.3s var(--ease); }
.rs-seg button:hover { border-color: var(--text); } .rs-seg button:active { transform: scale(0.96); }
.rs-seg button.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.rs-joy-row { display: flex; align-items: center; gap: 26px; }
.joy { position: relative; width: 148px; height: 148px; flex: none; border-radius: 50%; border: 1px solid var(--line-2); background: radial-gradient(circle, transparent 0 32%, var(--line) 32% calc(32% + 1px), transparent calc(32% + 1px) 66%, var(--line) 66% calc(66% + 1px), transparent calc(66% + 1px)); touch-action: none; outline-offset: 5px; transition: border-color 0.3s; }
.joy:hover, .joy.drag { border-color: var(--text); }
.joy-x, .joy-y { position: absolute; background: var(--line); }
.joy-x { left: 8px; right: 8px; top: 50%; height: 1px; } .joy-y { top: 8px; bottom: 8px; left: 50%; width: 1px; }
.joy b { position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px; border-radius: 50%; background: var(--text); box-shadow: 0 8px 20px -6px rgba(0, 0, 0, 0.5), inset 0 0 0 5px var(--text), inset 0 0 0 6px rgba(255, 255, 255, 0.35); transition: background 0.3s, scale 0.3s var(--ease); will-change: transform; }
.joy.drag b { background: var(--red); box-shadow: 0 8px 22px -6px rgba(255, 64, 52, 0.7); scale: 0.92; }
.rs-axes { display: grid; gap: 12px; font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; }
.rs-axes b { font-size: 14px; letter-spacing: 0; }
.rs-log { list-style: none; margin: 0; padding: 0; height: 104px; overflow: hidden; font-size: 10.5px; color: var(--muted); display: flex; flex-direction: column; justify-content: flex-end; }
.rs-log li { white-space: nowrap; animation: rise 0.4s var(--ease) both; line-height: 1.7; }
.rs-log li:last-child { color: var(--text); }
.rs-log li.r { color: var(--red); }
.rs-over { margin: auto 22px 22px; margin-top: 22px; padding: 14px 16px; border: 1px dashed var(--line-2); border-radius: 8px; display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13px; color: var(--faint); cursor: not-allowed; transition: border-color 0.3s, color 0.3s; }
.rs-over small { font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase; text-align: right; }
.rs-over.deny { border-color: var(--red); color: var(--red); animation: shake 0.45s; }
@media (max-width: 900px) { .rs { grid-template-columns: 1fr; } .rs-view { height: 460px; border-right: 0; border-bottom: 1px solid var(--line); } .rs-hud span:nth-child(2) { display: none; } }
.sg { list-style: none; margin: 0; padding: 0; counter-reset: sg; border-top: 1px solid var(--line); }
.sg li { counter-increment: sg; display: grid; grid-template-columns: 44px 1fr; gap: 4px 0; padding: 24px 0; border-bottom: 1px solid var(--line); }
.sg li::before { content: "0" counter(sg); font-family: var(--mono); font-size: 11px; color: var(--cyan-ink); grid-row: 1 / 3; padding-top: 5px; }
.sg b { font-family: var(--head); font-weight: 500; font-size: 20px; letter-spacing: -0.02em; }
.sg span { color: var(--muted); font-size: 14.5px; max-width: 56ch; }

/* ================= SAFETY ================= */
.prin { list-style: none; margin: 0; padding: 0; counter-reset: pr; border-top: 1px solid var(--line); }
.prin li { counter-increment: pr; padding: 30px 0 30px 56px; border-bottom: 1px solid var(--line); position: relative; }
.prin li::before { content: "0" counter(pr); position: absolute; left: 0; top: 38px; font-family: var(--mono); font-size: 11px; color: var(--cyan); }
.prin h3 { font-size: clamp(22px, 2.5vw, 34px); max-width: 20ch; }
.prin p { color: var(--muted); margin-top: 12px; max-width: 52ch; }
.fn { font-family: var(--mono); font-size: 9px; vertical-align: super; color: var(--faint); margin-left: 3px; letter-spacing: 0; transition: color 0.3s; }
.fn:hover { color: var(--red); }
.fnotes { margin: 26px 0 0; padding: 0 0 0 16px; font-size: 8.5px; line-height: 1.55; color: var(--faint); max-width: 76ch; transition: color 0.4s; }
.fnotes li { padding-left: 4px; margin-bottom: 3px; transition: color 0.4s; }
.fnotes li:target, .fnotes li.hit { color: var(--text); }
.fnotes:hover { color: var(--muted); }
.fp-toggle { display: flex; align-items: center; gap: 14px; margin-top: 40px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; width: max-content; max-width: 100%; }
.fp-toggle b { display: block; font-weight: 500; font-size: 14px; }
.fp-toggle small { font-size: 9.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.fp-toggle small.warn { color: var(--red); }
.tr-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tr-grid .card b { display: block; font-family: var(--head); font-weight: 500; font-size: clamp(34px, 4.4vw, 62px); letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.tr-grid .card > span { display: block; margin-top: 46px; color: var(--muted); font-size: 14px; max-width: 26ch; }
@media (max-width: 900px) { .tr-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .tr-grid { grid-template-columns: 1fr; } .tr-grid .card > span { margin-top: 20px; } }
.ledger { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.ledger th { text-align: left; font-family: var(--mono); font-weight: 400; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); padding: 0 12px 12px 0; border-bottom: 1px solid var(--line-2); }
.ledger td { padding: 16px 12px 16px 0; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--muted); }
.ledger td:first-child { font-family: var(--mono); font-size: 11px; white-space: nowrap; color: var(--faint); padding-top: 18px; }
.ledger td:nth-child(2) { color: var(--text); }
.ledger tr { transition: background 0.3s, opacity 1s var(--ease), transform 1.2s var(--ease); }
.ledger tbody tr:hover { background: rgba(165, 238, 248, 0.04); }
.redact { position: relative; display: inline-block; color: var(--red); cursor: help; }
.redact::after { content: ""; position: absolute; inset: 1px -3px; background: var(--text); transform-origin: right; transition: transform 0.14s steps(3); }
.redact:hover::after, .redact:focus::after { transform: scaleX(0); transition-duration: 0.1s; }
.redact.snap::after { transform: scaleX(1) !important; }
.board { border-top: 1px solid var(--line); }
.board li { display: grid; grid-template-columns: 80px 1fr; gap: 2px 10px; padding: 20px 0; border-bottom: 1px solid var(--line); transition: padding 0.5s var(--ease), opacity 1s var(--ease), transform 1.2s var(--ease); }
.board li:hover { padding-left: 10px; }
.board .mono { grid-row: 1 / 3; color: var(--faint); padding-top: 5px; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; }
.board b { font-family: var(--head); font-weight: 500; font-size: 20px; letter-spacing: -0.02em; }
.board small { color: var(--muted); font-size: 13.5px; }
.board .vac b { color: var(--faint); text-decoration: line-through; text-decoration-thickness: 1px; }

/* ================= ABOUT ================= */
.tline { list-style: none; margin: 0; padding: 0 0 0 34px; position: relative; }
.tline::before, .tline-fill { content: ""; position: absolute; left: 3px; top: 8px; bottom: 8px; width: 1px; background: var(--line-2); }
.tline-fill { background: var(--cyan); transform-origin: top; transform: scaleY(0); }
.tline li { position: relative; padding: 0 0 54px; }
.tline li::before { content: ""; position: absolute; left: -34px; top: 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--bg); border: 1px solid var(--faint); z-index: 1; transition: background 0.4s, border-color 0.4s, box-shadow 0.4s; }
.tline li.lit::before { background: var(--cyan); border-color: var(--cyan); box-shadow: 0 0 0 5px var(--cyan-dim); }
.tline time { font-family: var(--mono); font-size: 11px; color: var(--cyan); letter-spacing: 0.1em; }
.tline h3 { font-size: clamp(22px, 2.4vw, 32px); margin: 10px 0 12px; }
.tline p { color: var(--muted); max-width: 54ch; }
.val { min-height: 250px; display: flex; flex-direction: column; }
.val h3 { margin: auto 0 12px; padding-top: 50px; }
.val p { max-width: 40ch; }
.sites { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sites li { padding: 30px 24px 34px; border-left: 1px solid var(--line); transition: background 0.4s, opacity 1s var(--ease), transform 1.2s var(--ease); }
.sites li:first-child { border-left: 0; padding-left: 0; }
.sites li:hover { background: rgba(165, 238, 248, 0.03); }
.sites .mono { color: var(--faint); font-size: 10px; }
.sites h3 { font-size: clamp(26px, 3vw, 40px); margin: 60px 0 8px; }
.sites p { color: var(--muted); font-size: 14px; }
@media (max-width: 860px) { .sites { grid-template-columns: 1fr 1fr; } .sites li { padding-left: 18px; } .sites li:nth-child(odd) { border-left: 0; padding-left: 0; } .sites li:nth-child(n+3) { border-top: 1px solid var(--line); } .sites h3 { margin-top: 30px; } }
.roles .acc-q span { display: flex; flex-direction: column; gap: 6px; }
.roles .acc-q small { font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.roles .in .btn { margin-top: 20px; }

/* ================= CONTACT / 404 ================= */
.ct { border-top: 1px solid var(--line); }
.ct li { padding: 24px 0; border-bottom: 1px solid var(--line); display: grid; gap: 6px; justify-items: start; }
.ct .mono { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
.ct .link, .ct b { font-family: var(--head); font-weight: 500; font-size: clamp(20px, 2.2vw, 28px); letter-spacing: -0.02em; }
.ct p { color: var(--muted); font-size: 14px; }
.ct-status { margin-top: 28px; }
.nf { min-height: 100svh; display: flex; align-items: center; padding: 120px 0 80px; }
.nf h1 { margin: 26px 0 30px; max-width: 12ch; }

/* ================= SUPPORT ================= */
.don { padding: clamp(26px, 4vw, 44px); }
.don-amts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 14px 0 28px; }
.don-amts button { padding: 18px 0; border: 1px solid var(--line-2); border-radius: 12px; font-family: var(--head); font-size: 22px; letter-spacing: -0.02em; transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.35s var(--ease); }
.don-amts button:hover { border-color: var(--text); transform: translateY(-2px); }
.don-amts button:active { transform: scale(0.96); }
.don-amts button.on { background: var(--cyan); border-color: var(--cyan); color: #060809; }
.don .field input::-webkit-outer-spin-button, .don .field input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.don .field input { -moz-appearance: textfield; }
.don .btn { margin-top: 8px; }
