/* ─────────────────────────────────────────────
   LDJ v2 — Particle Luxury × Control Plane × JARVIS
   ───────────────────────────────────────────── */
:root {
  --bg: #070A09;
  --bg-2: #0B100D;
  --ink: #E7F2EC;
  --dim: #74897E;
  --green: #45F08A;
  --green-2: #8CFFBB;
  --amber: #FFC061;
  --line: rgba(231, 242, 236, 0.11);
  --line-2: rgba(69, 240, 138, 0.18);
  --font-display: "Archivo", "Helvetica Neue", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --pad: clamp(18px, 4vw, 60px);
  --maxw: 1640px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { background: var(--bg); color: var(--ink); font-family: var(--font-display); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
.mono { font-family: var(--font-mono); font-size: 11.5px; font-weight: 500; letter-spacing: 0.13em; text-transform: uppercase; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--green); color: var(--bg); }
.green { color: var(--green); }

/* ── boot loader ── */
.boot { position: fixed; inset: 0; z-index: 200; background: var(--bg); display: flex; align-items: center; justify-content: center; padding: var(--pad); }
.boot__inner { width: min(560px, 100%); font-family: var(--font-mono); font-size: clamp(11px, 1.4vw, 14px); line-height: 2.1; }
.boot__line { opacity: 0; color: var(--dim); white-space: nowrap; overflow: hidden; }
.boot__line .ok { color: var(--green); }
.boot__line .hot { color: var(--green-2); }
.boot__bar { margin-top: 18px; height: 2px; background: rgba(69,240,138,0.15); overflow: hidden; }
.boot__bar i { display: block; height: 100%; width: 0; background: var(--green); box-shadow: 0 0 12px var(--green); }
/* boot handshake automation */
.boot__hand { margin-top: 10px; min-height: 0; font-family: var(--font-mono); font-size: clamp(10px,1.2vw,12.5px); line-height: 1.95; color: var(--dim); }
.boot__hand div { white-space: nowrap; overflow: hidden; }
.boot__hand .ar { color: var(--green-2); }
.boot__hand .ok { color: var(--green); }
.boot__hand .nm { color: var(--ink); }
/* ALL SYSTEMS LOADED stamp */
.boot__stamp { display: none; position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); white-space: nowrap;
  font-family: var(--font-mono); font-weight: 700; font-size: clamp(16px, 3.2vw, 30px); letter-spacing: 0.22em; color: var(--green-2);
  text-shadow: 0 0 8px var(--green), 0 0 26px rgba(69,240,138,0.7); }
.boot__stamp-brackets { color: var(--green); }
.boot__stamp.on { animation: stampFlicker 1.5s steps(1, end) both; }
@keyframes stampFlicker {
  0% { opacity: 0; } 6% { opacity: 1; } 9% { opacity: 0.2; } 13% { opacity: 1; } 18% { opacity: 0.4; } 22% { opacity: 1; }
  100% { opacity: 1; }
}
/* neon typing reveal for page content */
.neon-line { position: relative; }
.neon-line.armed { opacity: 0; clip-path: inset(0 100% 0 0); }
.neon-line.lit { opacity: 1; clip-path: inset(0 0 0 0); }
.neon-line.glow { text-shadow: 0 0 14px rgba(69,240,138,0.9), 0 0 32px rgba(69,240,138,0.5); }

/* ── grain + scanlines ── */
.scan { position: fixed; inset: 0; z-index: 90; pointer-events: none; background: repeating-linear-gradient(to bottom, transparent 0, transparent 3px, rgba(0,0,0,0.13) 3px, rgba(0,0,0,0.13) 4px); mix-blend-mode: multiply; }
.grain { position: fixed; inset: -50%; z-index: 91; pointer-events: none; opacity: 0.04; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E"); animation: grain 0.8s steps(4) infinite; }
@keyframes grain { 0%{transform:translate(0,0)} 50%{transform:translate(-2%,1%)} 100%{transform:translate(1%,-2%)} }
@media (prefers-reduced-motion: reduce) { .grain { animation: none; } }

/* ── status bar ── */
.statusbar { position: fixed; top: 0; left: 0; right: 0; z-index: 80; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px var(--pad); border-bottom: 1px solid var(--line); background: rgba(7,10,9,0.55); backdrop-filter: blur(8px); }
.statusbar__l { font-family: var(--font-mono); font-weight: 700; font-size: 13px; letter-spacing: 0.04em; }
.statusbar__l b { color: var(--green); }
.statusbar__nav { display: flex; gap: 22px; }
.statusbar__nav a { color: var(--dim); transition: color 0.2s ease; }
.statusbar__nav a:hover { color: var(--green); }
.statusbar__r { display: flex; gap: 8px; align-items: center; color: var(--dim); }
.statusbar__r .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.25; } }
@media (prefers-reduced-motion: reduce) { .statusbar__r .dot { animation: none; } }

/* ── hero ── */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 88px var(--pad) 56px; overflow: hidden; }
.hero__codecol { position: absolute; top: 0; bottom: 0; width: 220px; overflow: hidden; pointer-events: none; opacity: 0.18; z-index: 1; mask-image: linear-gradient(to bottom, transparent, black 20%, black 80%, transparent); }
.hero__codecol.l { left: clamp(4px, 3vw, 60px); }
.hero__codecol.r { right: clamp(4px, 3vw, 60px); text-align: right; }
.hero__codecol pre { font-family: var(--font-mono); font-size: 11px; line-height: 1.95; color: var(--dim); white-space: pre; will-change: transform; }
.hero__codecol .tk { color: var(--green); }

.face-wrap { position: relative; z-index: 3; width: clamp(260px, 42vw, 440px); aspect-ratio: 1; display: flex; align-items: center; justify-content: center; }
.face-wrap canvas { width: 100%; height: 100%; display: block; animation: jarvisIn 1.3s cubic-bezier(.2,.7,.2,1) both; }
@keyframes jarvisIn { from { opacity: 0; transform: scale(0.86); filter: blur(6px); } to { opacity: 1; transform: scale(1); filter: blur(0); } }
@media (prefers-reduced-motion: reduce) { .face-wrap canvas { animation: none; } }
.face-glow { position: absolute; inset: 24%; border-radius: 50%; background: radial-gradient(circle at 50% 48%, rgba(69,240,138,0.14), transparent 64%); filter: blur(16px); z-index: -1; animation: facebreathe 5s ease-in-out infinite; }
@keyframes facebreathe { 0%,100%{transform:scale(0.92);opacity:0.6} 50%{transform:scale(1.05);opacity:1} }
@media (prefers-reduced-motion: reduce) { .face-glow { animation: none; } }

.hero__caption { position: relative; z-index: 4; margin-top: clamp(8px, 2vw, 20px); font-family: var(--font-mono); font-size: clamp(15px, 2.2vw, 26px); font-weight: 500; letter-spacing: 0.01em; color: var(--green-2); min-height: 1.4em; }
.hero__caption .cur { display: inline-block; width: 9px; height: 1em; background: var(--green); vertical-align: -1px; margin-left: 3px; animation: blinkc 1s steps(2) infinite; }
.face-wrap { cursor: pointer; transition: transform 0.25s ease; }
.face-wrap:hover { transform: scale(1.02); }
.talkhint { display: inline-flex; align-items: center; gap: 9px; margin-top: 14px; font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); cursor: pointer; transition: color 0.2s ease; }
.talkhint:hover { color: var(--green); }
.talkhint .d { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); flex-shrink: 0; }
.talkhint.is-live { color: var(--green); }
.talkhint.is-live .d { animation: pulse 1.1s ease-in-out infinite; }
.talkhint.is-speaking { color: var(--green-2); }
@keyframes blinkc { 50% { opacity: 0; } }

.hero__name { position: relative; z-index: 3; margin-top: clamp(20px, 4vw, 40px); font-stretch: 125%; font-weight: 900; font-size: clamp(40px, 9.4vw, 168px); line-height: 0.84; letter-spacing: -0.04em; text-transform: uppercase; }
.hero__name .ln { display: block; overflow: hidden; }
.hero__role { position: relative; z-index: 3; margin-top: clamp(16px, 2.4vw, 24px); color: var(--dim); }
.hero__role .typ { color: var(--ink); }
.hero__role .cur { display: inline-block; width: 8px; height: 1em; background: var(--green); vertical-align: -1px; margin-left: 2px; animation: blinkc 1s steps(2) infinite; }

.hero__cta { position: relative; z-index: 3; margin-top: clamp(26px, 4vw, 40px); display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.cmd { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.04em; padding: 14px 22px; border: 1px solid var(--line-2); color: var(--ink); background: rgba(69,240,138,0.04); transition: all 0.2s ease; cursor: pointer; }
.cmd:hover { border-color: var(--green); box-shadow: 0 0 30px rgba(69,240,138,0.18); }
.cmd .p { color: var(--green); }
.cmd--ghost { background: transparent; border-color: var(--line); color: var(--dim); }
.cmd--ghost:hover { color: var(--green); border-color: var(--green); }

.hero__scroll { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 4; color: var(--dim); display: flex; align-items: center; gap: 10px; }
.hero__scroll i { display: block; width: 44px; height: 1px; background: var(--green); transform-origin: left; animation: scl 2.4s cubic-bezier(.65,0,.35,1) infinite; }
@keyframes scl { 0%{transform:scaleX(0)} 50%{transform:scaleX(1)} 100%{transform:scaleX(0);transform-origin:right} }
@media (prefers-reduced-motion: reduce) { .hero__scroll i { animation: none; transform: scaleX(1); } }

/* ── sections ── */
section { position: relative; z-index: 2; padding: clamp(72px, 11vh, 150px) var(--pad); max-width: var(--maxw); margin: 0 auto; }
.shead { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); padding-bottom: 18px; margin-bottom: clamp(32px, 5vh, 56px); flex-wrap: wrap; }
.shead__t { font-stretch: 125%; font-weight: 900; font-size: clamp(32px, 5.5vw, 92px); line-height: 0.9; letter-spacing: -0.03em; text-transform: uppercase; }
.shead__n { color: var(--dim); }
.shead__n b { color: var(--green); font-weight: 500; }

/* ── stats ── */
.stats { padding-top: clamp(48px,7vh,90px); padding-bottom: clamp(48px,7vh,90px); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 44px); }
.stat { border-top: 1px solid var(--line); padding-top: 18px; }
.stat__n { display: block; font-stretch: 125%; font-weight: 900; font-size: clamp(48px, 6.5vw, 120px); line-height: 0.9; letter-spacing: -0.03em; }
.stat__n b { color: var(--green); font-weight: 900; }
.stat__l { display: block; margin-top: 12px; color: var(--dim); }

/* ── systems ── */
.sx-cat { color: var(--green); margin: 32px 0 6px; }
.sx-row { display: grid; grid-template-columns: 64px 1fr 48px; gap: clamp(14px, 2.5vw, 36px); padding: clamp(20px,3.4vh,38px) 0; border-bottom: 1px solid var(--line); align-items: center; transition: padding-left 0.35s cubic-bezier(.65,0,.35,1); }
.sx-row:hover { padding-left: clamp(8px,1.5vw,22px); }
.sx-row:hover .sx-title { color: var(--green); }
.sx-row:hover .sx-arrow { color: var(--green); transform: translate(6px,-6px); }
.sx-no { color: var(--dim); align-self: start; padding-top: 6px; }
.sx-for { color: var(--dim); }
.sx-title { font-stretch: 118%; font-weight: 800; font-size: clamp(22px, 3.2vw, 50px); line-height: 1; letter-spacing: -0.02em; text-transform: uppercase; margin: 8px 0; transition: color 0.25s ease; }
.sx-stack { color: var(--ink); font-size: 11px; letter-spacing: 0.04em; line-height: 1.55; }
.sx-stack b { color: var(--green); margin-right: 8px; letter-spacing: 0.1em; }
.sx-loop { color: var(--amber); margin-top: 8px; font-size: 11px; }
.sx-arrow { font-size: 26px; color: var(--dim); transition: transform 0.35s cubic-bezier(.65,0,.35,1), color 0.25s ease; align-self: center; }

/* ── live log ── */
.logpanel { border: 1px solid var(--line-2); background: var(--bg-2); }
.logpanel__bar { display: flex; justify-content: space-between; padding: 12px 18px; border-bottom: 1px solid var(--line-2); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); }
.logpanel__bar b { color: var(--green); font-weight: 500; }
.logpanel__body { padding: 18px; height: 280px; overflow: hidden; font-family: var(--font-mono); font-size: clamp(11px, 1.3vw, 13.5px); line-height: 1.9; display: flex; flex-direction: column; justify-content: flex-end; }
.logpanel__body div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.logpanel__body .ts { color: rgba(116,137,126,0.55); }
.logpanel__body .ok { color: var(--green); }
.logpanel__body .wa { color: var(--amber); }

/* ── capabilities ── */
.caps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.cap { background: var(--bg); padding: clamp(20px,2.6vw,38px); transition: background 0.3s ease; }
.cap:hover { background: var(--bg-2); }
.cap__l { color: var(--green); }
.cap__t { font-stretch: 118%; font-weight: 800; font-size: clamp(18px,2vw,28px); text-transform: uppercase; letter-spacing: -0.01em; margin: 14px 0 18px; }
.cap ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.cap li { font-family: var(--font-mono); font-size: 12px; line-height: 1.5; color: var(--dim); padding-left: 16px; position: relative; }
.cap li::before { content: "▸"; position: absolute; left: 0; color: var(--green); }

/* ── experience ── */
.xp { list-style: none; border-top: 1px solid var(--line); }
.xp li { display: grid; grid-template-columns: 120px 1fr auto; gap: clamp(14px,2.5vw,40px); align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--line); }
.xp__y { color: var(--green); }
.xp__r { font-stretch: 116%; font-weight: 800; font-size: clamp(16px,1.9vw,28px); text-transform: uppercase; letter-spacing: -0.01em; }
.xp__o { color: var(--dim); text-align: right; }

/* ── contact ── */
.contact { text-align: center; }
.contact__cmd { font-family: var(--font-mono); font-size: clamp(12px,1.6vw,17px); margin-bottom: clamp(20px,3vh,34px); color: var(--ink); }
.contact__cmd .p { color: var(--green); }
.contact__cmd .a { color: var(--green-2); }
.contact__t { font-stretch: 125%; font-weight: 900; font-size: clamp(46px, 12vw, 200px); line-height: 0.82; letter-spacing: -0.045em; text-transform: uppercase; }
.contact__t .run { color: var(--green); text-shadow: 0 0 50px rgba(69,240,138,0.45); }
.contact__row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: clamp(30px,5vh,56px); }
.btn { font-family: var(--font-mono); font-size: 13px; font-weight: 700; letter-spacing: 0.05em; padding: 16px 28px; border: 1px solid var(--line-2); transition: all 0.2s ease; }
.btn--solid { background: var(--green); color: var(--bg); border-color: var(--green); }
.btn:hover { border-color: var(--green); color: var(--green); }
.btn--solid:hover { color: var(--bg); box-shadow: 0 0 40px rgba(69,240,138,0.35); }

.footer { position: relative; z-index: 2; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 22px var(--pad); border-top: 1px solid var(--line); color: var(--dim); max-width: var(--maxw); margin: 0 auto; }

/* ── BYOAI banner ── */
.byoai-cta { max-width: var(--maxw); margin: 0 auto; padding: clamp(40px,7vh,90px) var(--pad); }
.byoai-cta__box { border: 1px solid var(--line-2); background:
  linear-gradient(rgba(231,242,236,0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(231,242,236,0.025) 1px, transparent 1px), var(--bg-2);
  background-size: 26px 26px, 26px 26px, auto; padding: clamp(28px,5vw,64px); display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.byoai-cta__t { font-stretch: 120%; font-weight: 900; font-size: clamp(26px, 4vw, 56px); letter-spacing: -0.03em; text-transform: uppercase; line-height: 0.95; }
.byoai-cta__t span { color: var(--green); }
.byoai-cta__d { color: var(--dim); margin-top: 12px; max-width: 460px; font-family: var(--font-mono); font-size: 12px; line-height: 1.6; }

@media (max-width: 860px) {
  .stats__grid { grid-template-columns: 1fr 1fr; }
  .caps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .hero__codecol { display: none; }
  .statusbar__nav { display: none; }
  .sx-row { grid-template-columns: 1fr; gap: 4px; }
  .sx-no { padding-top: 0; }
  .sx-arrow { display: none; }
  .xp li { grid-template-columns: 92px 1fr; }
  .xp__o { grid-column: 2; text-align: left; margin-top: 2px; }
  .caps { grid-template-columns: 1fr; }
}
