/* KD_SEC — SOC console portfolio */

:root {
    --void: #040807;
    --bg: #060b09;
    --panel: #09110e;
    --panel-hi: #0d1813;
    --line: #14302a;
    --line-hi: #21503f;
    --g: #26e884;
    --g-ink: #03150c;
    --g-glow: rgba(38, 232, 132, 0.34);
    --red: #ff4a4a;
    --blue: #4796ff;
    --cyan: #43e3ff;
    --amber: #ffb84a;
    --tx: #d8e8e0;
    --tx-dim: #8aa398;
    --tx-mute: #78927f;
    --f-ui: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
    --f-disp: 'Tiny5', 'JetBrains Mono', monospace;
    --r: 4px;
    --gap: 14px;
    --pad: 16px;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --top-h: 60px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font: 400 13px/1.6 var(--f-ui);
    color: var(--tx);
    background:
        radial-gradient(1200px 520px at 16% -8%, rgba(38, 232, 132, 0.11), transparent 62%),
        radial-gradient(900px 520px at 100% 8%, rgba(71, 150, 255, 0.07), transparent 60%),
        var(--bg);
    background-attachment: fixed;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    font-variant-numeric: tabular-nums;
}

body.intro-active { overflow: hidden; }

::selection { background: var(--g); color: var(--g-ink); }

* { scrollbar-width: thin; scrollbar-color: var(--line-hi) transparent; }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-thumb { background: var(--line-hi); border-radius: 0; }
::-webkit-scrollbar-track { background: transparent; }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
svg { display: block; }

:focus-visible { outline: 2px solid var(--g); outline-offset: 3px; border-radius: 2px; }

.skip {
    position: fixed; left: 12px; top: -60px; z-index: 999;
    background: var(--g); color: var(--g-ink); padding: 10px 14px; font-weight: 700;
}
.skip:focus { top: 12px; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- ambient layers ---------- */
.floor {
    position: fixed; left: -25%; right: -25%; bottom: -10vh; height: 60vh; z-index: -1; pointer-events: none;
    background-image:
        linear-gradient(rgba(38, 232, 132, 0.17) 1px, transparent 1px),
        linear-gradient(90deg, rgba(38, 232, 132, 0.17) 1px, transparent 1px);
    background-size: 68px 68px;
    transform: perspective(540px) rotateX(64deg);
    transform-origin: 50% 100%;
    -webkit-mask-image: linear-gradient(to top, #000 0%, transparent 76%);
    mask-image: linear-gradient(to top, #000 0%, transparent 76%);
    animation: floorMove 7s linear infinite;
}
@keyframes floorMove { to { background-position: 0 68px; } }

.scan {
    position: fixed; inset: 0; z-index: 300; pointer-events: none;
    background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.022) 0 1px, transparent 1px 3px);
}

/* ---------- boot intro ---------- */
#intro-screen {
    position: fixed; inset: 0; z-index: 900; display: grid; place-items: center;
    background: var(--void); transition: opacity 0.7s ease, visibility 0.7s;
}
#intro-screen.hide { opacity: 0; visibility: hidden; }
.intro-inner { width: min(420px, 84vw); }
.intro-logo { font: 400 3rem/1 var(--f-disp); letter-spacing: 0.04em; margin-bottom: 22px; }
.intro-logo span { color: var(--g); }
.intro-lines { min-height: 84px; color: var(--tx-dim); font-size: 12px; }
.intro-lines p { opacity: 0; animation: introLine 0.3s forwards; }
.intro-lines p:nth-child(1) { animation-delay: 0.1s; }
.intro-lines p:nth-child(2) { animation-delay: 0.6s; }
.intro-lines p:nth-child(3) { animation-delay: 1.1s; }
.intro-lines p:nth-child(4) { animation-delay: 1.5s; color: var(--g); }
@keyframes introLine { to { opacity: 1; } }
.intro-bar { height: 4px; background: var(--line); margin-top: 16px; overflow: hidden; }
.intro-bar-fill { display: block; height: 100%; width: 0; background: var(--g); animation: introFill 2s var(--ease) forwards; box-shadow: 0 0 14px var(--g-glow); }
@keyframes introFill { to { width: 100%; } }

/* ---------- top bar ---------- */
.topbar {
    position: sticky; top: 0; z-index: 100; height: var(--top-h);
    display: flex; align-items: center; gap: 16px; padding: 0 clamp(14px, 2.2vw, 34px);
    background: rgba(5, 10, 8, 0.88);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand-chev { width: 30px; height: 30px; stroke: var(--g); fill: none; stroke-width: 3; stroke-linecap: square; }
.brand-txt { display: grid; line-height: 1.15; }
.brand-txt b { font: 700 19px/1.1 var(--f-ui); letter-spacing: 0.1em; color: #fff; }
.brand-txt small { font-size: 11px; letter-spacing: 0.16em; color: var(--tx-dim); }

.tabs { display: flex; gap: 6px; margin-left: 8px; counter-reset: t; }
.tab {
    counter-increment: t; position: relative;
    padding: 9px 10px; font-size: 12px; letter-spacing: 0.05em; color: var(--tx-dim);
    border: 1px solid transparent; border-radius: 2px; transition: color 0.2s, border-color 0.2s, background 0.2s;
    white-space: nowrap;
}
.tab::before { content: '[ ' counter(t, decimal-leading-zero) '_'; }
.tab::after { content: ' ]'; }
.tab:hover { color: var(--tx); }
.tab.active { color: var(--g); border-color: var(--g); background: rgba(38, 232, 132, 0.07); }

.top-right { margin-left: auto; display: flex; align-items: center; gap: 10px; flex: none; }
.open-pill {
    display: inline-flex; align-items: center; gap: 9px; padding: 9px 16px;
    border: 1px solid var(--g); color: var(--g); background: rgba(38, 232, 132, 0.07);
    font-size: 12px; font-weight: 600; letter-spacing: 0.1em; border-radius: 2px; white-space: nowrap;
    transition: background 0.2s, box-shadow 0.2s;
}
.open-pill:hover { background: rgba(38, 232, 132, 0.16); box-shadow: 0 8px 22px var(--g-glow); }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--g); box-shadow: 0 0 0 0 var(--g-glow); animation: pulseDot 2s infinite; }
@keyframes pulseDot { 0% { box-shadow: 0 0 0 0 rgba(38, 232, 132, 0.55); } 70% { box-shadow: 0 0 0 8px rgba(38, 232, 132, 0); } 100% { box-shadow: 0 0 0 0 rgba(38, 232, 132, 0); } }

.hr-switch {
    display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; font-size: 11px; letter-spacing: 0.1em;
    border: 1px solid var(--line-hi); border-radius: 2px; color: var(--tx-dim); transition: color 0.2s, border-color 0.2s;
}
.hr-switch:hover, .hr-switch.active { color: var(--g); border-color: var(--g); }
.hr-switch .knob { width: 26px; height: 14px; border: 1px solid currentColor; border-radius: 8px; position: relative; }
.hr-switch .knob::after { content: ''; position: absolute; top: 2px; left: 2px; width: 8px; height: 8px; border-radius: 50%; background: currentColor; transition: transform 0.25s var(--ease); }
.hr-switch.active .knob::after { transform: translateX(12px); }

.lang-switch { display: inline-flex; font-size: 11px; letter-spacing: 0.1em; border: 1px solid var(--line-hi); border-radius: 2px; overflow: hidden; }
.lang-switch button { padding: 8px 10px; color: var(--tx-dim); }
.lang-switch button.active { background: var(--g); color: var(--g-ink); font-weight: 700; }
.lang-switch button:not(.active):hover { color: var(--tx); }

.cv-lang { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; }
.cv-lang-label { font-size: 10.5px; letter-spacing: 0.12em; color: var(--tx-mute); }
.cv-lang-group { display: inline-flex; font-size: 11px; letter-spacing: 0.08em; border: 1px solid var(--line-hi); border-radius: 2px; overflow: hidden; }
.cv-lang-group button { padding: 5px 9px; color: var(--tx-dim); transition: color 0.2s, background 0.2s; }
.cv-lang-group button.active { background: var(--g); color: var(--g-ink); font-weight: 700; }
.cv-lang-group button:not(.active):hover { color: var(--tx); }
.hr-actions .cv-lang { margin-top: 0; margin-left: 2px; }


.clock { display: grid; text-align: right; line-height: 1.2; min-width: 110px; }
.clock small { font-size: 11px; letter-spacing: 0.12em; color: var(--tx-dim); }
.clock b { font: 600 16px/1.2 var(--f-ui); color: var(--g); letter-spacing: 0.06em; }

/* ---------- layout ---------- */
.page { width: min(1740px, 100%); margin: 0 auto; padding: 0 clamp(12px, 2.2vw, 34px); }

.wall { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); padding-top: var(--gap); }
.wall > * { min-width: 0; }
.hero { grid-column: 1 / span 7; }
.col-right { grid-column: 8 / span 5; display: grid; gap: var(--gap); grid-template-rows: auto 1fr; grid-template-columns: minmax(0, 1fr); }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.team { grid-column: span 4; }
.term { grid-column: span 4; }
.pj-panel { grid-column: span 5; }
.sk-panel { grid-column: span 4; }
.ct-panel { grid-column: span 3; }
.strip { grid-column: 1 / -1; }

/* ---------- panels ---------- */
.panel {
    position: relative; padding: var(--pad); border: 1px solid var(--line); border-radius: var(--r);
    background:
        radial-gradient(420px circle at var(--mx, 50%) var(--my, -20%), rgba(38, 232, 132, 0.07), transparent 46%),
        linear-gradient(180deg, rgba(12, 21, 17, 0.94), rgba(8, 14, 11, 0.94));
}
.panel::before, .panel::after {
    content: ''; position: absolute; width: 11px; height: 11px; border: 1px solid var(--g); opacity: 0.75; pointer-events: none;
}
.panel::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.panel::after { right: -1px; bottom: -1px; border-left: 0; border-top: 0; }

[data-tilt] {
    transform: perspective(1200px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
    transition: transform 0.28s var(--ease), border-color 0.25s;
}
[data-tilt]:hover { border-color: var(--line-hi); }

.ph { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; }
.ph-t { display: inline-flex; align-items: center; gap: 8px; color: var(--tx); font-weight: 600; }
.chev { display: inline-block; width: 10px; height: 10px; border-right: 2px solid var(--g); border-top: 2px solid var(--g); transform: rotate(45deg) scale(0.8); flex: none; margin-right: 2px; }
.ph-r { display: inline-flex; align-items: center; gap: 8px; color: var(--tx-dim); font-size: 11px; }
.ph-r a { color: var(--g); display: inline-flex; align-items: center; gap: 6px; }
.ph-r a:hover { text-decoration: underline; text-underline-offset: 4px; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: 0.25; } }

.tag {
    display: inline-block; padding: 2px 8px; font-size: 11px; letter-spacing: 0.06em; color: var(--tx-dim);
    border: 1px solid var(--line-hi); border-radius: 2px;
}
.tag-g { color: var(--g); border-color: rgba(38, 232, 132, 0.45); background: rgba(38, 232, 132, 0.06); }
.tag-r { color: var(--red); border-color: rgba(255, 74, 74, 0.45); background: rgba(255, 74, 74, 0.06); }

.btn {
    display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border: 1px solid var(--g); border-radius: 3px;
    font: 700 12px/1 var(--f-ui); letter-spacing: 0.12em; text-transform: uppercase; white-space: nowrap;
    transition: transform 0.25s var(--ease), box-shadow 0.25s, background 0.2s, color 0.2s;
}
.btn svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.btn-primary { background: var(--g); color: var(--g-ink); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px var(--g), 0 8px 28px var(--g-glow); }
.btn-ghost { color: var(--tx); border-color: var(--line-hi); background: rgba(255, 255, 255, 0.02); }
.btn-ghost:hover { border-color: var(--g); color: var(--g); transform: translateY(-2px); }

/* ---------- hero ---------- */
.hero {
    display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr); gap: 10px; align-items: center;
    min-height: 500px; padding: 30px clamp(18px, 2.4vw, 36px);
    background:
        radial-gradient(620px 420px at 82% 40%, rgba(38, 232, 132, 0.13), transparent 62%),
        radial-gradient(420px circle at var(--mx, 50%) var(--my, -20%), rgba(38, 232, 132, 0.05), transparent 46%),
        linear-gradient(180deg, rgba(11, 20, 16, 0.94), rgba(7, 12, 10, 0.94));
}
.whoami { display: flex; align-items: center; gap: 10px; color: var(--tx-dim); letter-spacing: 0.2em; font-size: 12px; margin-bottom: 14px; }
.hero-copy { container-type: inline-size; min-width: 0; }
.name { font: 400 clamp(2.4rem, 3.6vw, 5rem)/0.92 var(--f-disp); font-size: min(5.4rem, 13.2cqw); text-transform: uppercase; letter-spacing: 0.01em; margin-bottom: 22px; }
.name .n1 { display: block; color: #fff; }
.name .n2 { display: block; color: var(--g); text-shadow: 0 6px 28px rgba(38, 232, 132, 0.3); }
.roles { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; font-size: 13.5px; font-weight: 500; letter-spacing: 0.08em; margin-bottom: 18px; }
.roles em { font-style: normal; color: var(--g); }
.blurb { max-width: 46ch; color: var(--tx-dim); font-size: 13px; line-height: 1.75; margin-bottom: 26px; }
.blurb-red { color: var(--red); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.socials { display: flex; gap: 10px; }
.socials a {
    width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line-hi); border-radius: 3px;
    color: var(--tx-dim); transition: color 0.2s, border-color 0.2s, transform 0.25s var(--ease), box-shadow 0.25s;
}
.socials a:hover { color: var(--g); border-color: var(--g); transform: translateY(-3px); box-shadow: 0 8px 20px rgba(38, 232, 132, 0.14); }
.socials svg, .ico { width: 19px; height: 19px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* 3D operator ID card */
.idcard-wrap { position: relative; display: grid; place-items: center; perspective: 1100px; padding: 10px 6px; }
.idcard {
    position: relative; width: min(100%, 320px); aspect-ratio: 3 / 4; transform-style: preserve-3d;
    transform: rotateY(var(--ry, -9deg)) rotateX(var(--rx, 4deg));
    transition: transform 0.22s ease-out;
}
.idc-frame {
    position: absolute; inset: 0; overflow: hidden; border: 1px solid var(--line-hi); border-radius: 6px; background: #071410;
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.5);
}
.idc-frame img {
    width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%;
}
.idc-tint { display: none; }
.idc-fade { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 52%, rgba(3, 12, 8, 0.78) 100%); }
.idc-scan {
    position: absolute; left: 0; right: 0; height: 26%; top: -30%;
    background: linear-gradient(180deg, transparent, rgba(38, 232, 132, 0.28), transparent);
    animation: idScan 4.6s linear infinite;
}
@keyframes idScan { to { top: 110%; } }
.idc-sheen {
    position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(260px circle at var(--sx, 30%) var(--sy, 20%), rgba(255, 255, 255, 0.18), transparent 60%);
    mix-blend-mode: soft-light;
}
.idc-cb { position: absolute; width: 20px; height: 20px; border: 2px solid var(--g); z-index: 2; }
.idc-cb.tl { top: 10px; left: 10px; border-right: 0; border-bottom: 0; }
.idc-cb.tr { top: 10px; right: 10px; border-left: 0; border-bottom: 0; }
.idc-cb.bl { bottom: 10px; left: 10px; border-right: 0; border-top: 0; }
.idc-cb.br { bottom: 10px; right: 10px; border-left: 0; border-top: 0; }
.idc-plate {
    position: absolute; left: 26px; right: 26px; bottom: 26px; display: grid; gap: 2px; z-index: 2; transform: translateZ(28px);
}
.idc-plate b { font: 600 15px/1.2 var(--f-ui); letter-spacing: 0.1em; color: #fff; }
.idc-plate small { font-size: 11px; letter-spacing: 0.14em; color: var(--g); }
.chip {
    position: absolute; z-index: 3; padding: 6px 12px; font: 700 11px/1.2 var(--f-ui); letter-spacing: 0.14em; border-radius: 2px; white-space: nowrap;
}
.chip-ok { top: 12%; right: -8%; color: var(--g); border: 1px solid var(--g); background: rgba(3, 20, 12, 0.86); transform: translateZ(70px) rotate(-6deg); box-shadow: 0 8px 20px var(--g-glow); }
.chip-hack { top: 58%; left: -5%; color: var(--red); border: 1px solid var(--red); background: rgba(24, 4, 4, 0.86); transform: translateZ(100px) rotate(-8deg); text-align: left; line-height: 1.5; box-shadow: 0 8px 20px rgba(255, 74, 74, 0.28); }
.chip-tag { bottom: 26%; right: -10%; color: var(--cyan); border: 1px solid rgba(67, 227, 255, 0.55); background: rgba(2, 16, 22, 0.86); transform: translateZ(54px); }

/* ---------- live threats ---------- */
.threats { display: grid; grid-template-rows: auto 1fr auto; min-height: 0; }
.threats-body { display: grid; grid-template-columns: minmax(140px, 0.74fr) minmax(0, 1.26fr); gap: 14px; align-items: stretch; min-height: 250px; }
.globe-box { position: relative; min-height: 250px; }
#threat-globe { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; touch-action: pan-y; }
#threat-globe:active { cursor: grabbing; }
.globe-ctl { position: absolute; left: 0; bottom: 0; display: flex; gap: 6px; }
.gbtn {
    width: 26px; height: 26px; display: grid; place-items: center; border: 1px solid var(--line-hi); background: rgba(5, 10, 8, 0.8);
    color: var(--g); font-size: 13px; line-height: 1; border-radius: 2px; transition: border-color 0.2s, background 0.2s;
}
.gbtn:hover { border-color: var(--g); background: rgba(38, 232, 132, 0.12); }
.gbtn svg { width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-width: 2.4; stroke-linecap: round; }
.feed { display: grid; align-content: start; gap: 0; font-size: 12px; }
.feed li {
    display: grid; grid-template-columns: 12px 44px minmax(0, 1fr) auto; gap: 8px; align-items: baseline;
    padding: 8px 0; border-bottom: 1px dashed rgba(33, 80, 63, 0.7);
}
.feed li:last-child { border-bottom: 0; }
.feed .arr { color: var(--red); font-size: 11px; }
.feed .tm { color: var(--red); }
.feed .ev { color: var(--tx); line-height: 1.35; }
.feed .ip { color: var(--tx-dim); text-align: right; white-space: nowrap; }
.feed li.fresh { animation: feedIn 0.6s var(--ease); background: linear-gradient(90deg, rgba(255, 74, 74, 0.12), transparent); }
@keyframes feedIn { from { opacity: 0; transform: translateX(-12px); } }
.threats-foot { display: flex; justify-content: space-between; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 11px; letter-spacing: 0.1em; color: var(--tx-dim); }
.threats-foot b { color: var(--g); font-weight: 600; }

/* ---------- status + mitre ---------- */
.st-list { display: grid; gap: 15px; margin-top: 4px; }
.st-row { display: grid; gap: 6px; }
.st-row > div { display: flex; justify-content: space-between; font-size: 12px; color: var(--tx-dim); }
.st-row b { color: var(--g); font-weight: 600; }
.seg { height: 10px; background: repeating-linear-gradient(90deg, var(--line) 0 4px, transparent 4px 6px); overflow: hidden; }
.seg i { display: block; height: 100%; width: var(--v, 50%); background: repeating-linear-gradient(90deg, var(--g) 0 4px, transparent 4px 6px); }
body.booted .seg i { animation: segFill 1.4s var(--ease) both 0.5s; }
@keyframes segFill { from { width: 0; } }
.note { margin-top: 12px; font-size: 11px; color: var(--tx-mute); }

.mt-list { display: grid; gap: 7px; }
.mt-list a {
    display: grid; grid-template-columns: 58px minmax(0, 1fr); align-items: center; gap: 10px; padding: 7px 9px;
    border: 1px solid var(--line); background: rgba(255, 255, 255, 0.015); border-radius: 2px;
    transition: border-color 0.2s, background 0.2s, transform 0.25s var(--ease);
}
.mt-list a:hover { border-color: var(--g); background: rgba(38, 232, 132, 0.06); transform: translateX(3px); }
.mt-id { font-weight: 700; font-size: 11px; text-align: center; padding: 3px 0; border: 1px solid var(--g); color: var(--g); background: rgba(38, 232, 132, 0.06); }
.mt-list a:nth-child(2) .mt-id, .mt-list a:nth-child(4) .mt-id { border-color: var(--amber); color: var(--amber); background: rgba(255, 184, 74, 0.06); }
.mt-n { font-size: 11px; color: var(--tx); line-height: 1.3; }

/* ---------- team cards ---------- */
.team { display: flex; flex-direction: column; gap: 14px; min-height: 236px; overflow: hidden; }
.team::before { z-index: 1; }
.team.blue { background: radial-gradient(360px 220px at 100% 0%, rgba(71, 150, 255, 0.16), transparent 70%), linear-gradient(180deg, rgba(9, 16, 24, 0.95), rgba(6, 11, 14, 0.95)); border-color: rgba(71, 150, 255, 0.4); }
.team.red { background: radial-gradient(360px 220px at 100% 0%, rgba(255, 74, 74, 0.17), transparent 70%), linear-gradient(180deg, rgba(22, 9, 9, 0.95), rgba(12, 6, 6, 0.95)); border-color: rgba(255, 74, 74, 0.4); }
.team.blue::before, .team.blue::after { border-color: var(--blue); }
.team.red::before, .team.red::after { border-color: var(--red); }
.team-head { display: flex; align-items: center; gap: 14px; }
.team-ico { width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid currentColor; border-radius: 4px; flex: none; }
.team-ico svg { width: 26px; height: 26px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.blue .team-ico, .blue .team-title { color: var(--blue); }
.red .team-ico, .red .team-title { color: var(--red); }
.team-title { font: 600 20px/1.2 var(--f-ui); letter-spacing: 0.06em; }
.team-title span { color: var(--tx-mute); }
.team-sub { font-size: 11px; letter-spacing: 0.16em; color: var(--tx-dim); margin-top: 3px; }
.team .go { margin-left: auto; width: 30px; height: 30px; display: grid; place-items: center; color: var(--tx-dim); border: 1px solid var(--line-hi); border-radius: 2px; transition: color 0.2s, border-color 0.2s, transform 0.25s var(--ease); }
.team .go:hover { color: var(--tx); transform: translateX(3px); }
.team .go svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.checks { display: grid; gap: 9px; margin-top: 2px; }
.checks li { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--tx); }
.checks li::before { content: ''; width: 13px; height: 13px; flex: none; border: 1px solid currentColor; border-radius: 50%; background: radial-gradient(circle, currentColor 0 2px, transparent 2.5px); }
.blue .checks li::before { color: var(--g); }
.red .checks li::before { color: var(--red); }
.team .tag { align-self: flex-start; margin-top: auto; }

/* ---------- terminal ---------- */
.term { display: flex; flex-direction: column; min-height: 236px; }
.term-body { flex: 1; min-height: 150px; max-height: 210px; overflow-y: auto; font-size: 12px; line-height: 1.55; padding-right: 6px; }
.tl { white-space: pre-wrap; word-break: break-word; }
.tl .ps { color: var(--g); }
.tl .c { color: #fff; }
.tl-out { color: var(--tx-dim); }
.tl-ok { color: var(--g); }
.tl-gap { height: 2px; }
.caret { display: inline-block; width: 7px; height: 13px; background: var(--g); vertical-align: -2px; animation: blink 1s steps(1) infinite; margin-left: 2px; }
.term-form { display: flex; align-items: center; gap: 8px; margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line-hi); font-size: 12px; }
.term-ps { color: var(--g); white-space: nowrap; }
.term-form input { flex: 1; min-width: 0; background: transparent; border: 0; color: #fff; font: inherit; caret-color: var(--g); outline: none; }
.term-form:focus-within { border-top-color: var(--g); }
.term-form input::placeholder { color: var(--tx-mute); }

/* ---------- compact bottom row ---------- */
.pj-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.pj {
    display: flex; flex-direction: column; border: 1px solid var(--line); background: rgba(3, 8, 6, 0.6); border-radius: 2px; overflow: hidden;
    transition: border-color 0.25s, transform 0.3s var(--ease), box-shadow 0.3s;
}
.pj:hover { border-color: var(--g); transform: translateY(-4px) translateZ(0); box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(38, 232, 132, 0.15); }
.pj-thumb { position: relative; aspect-ratio: 16 / 10; display: grid; place-items: center; overflow: hidden; border-bottom: 1px solid var(--line); }
.pj-thumb.t1 { background: radial-gradient(120px 80px at 50% 60%, rgba(38, 232, 132, 0.28), transparent 70%), linear-gradient(160deg, #06201a, #030d0a); }
.pj-thumb.t2 { background: radial-gradient(120px 80px at 50% 60%, rgba(71, 150, 255, 0.28), transparent 70%), linear-gradient(160deg, #08152b, #040a14); }
.pj-thumb.t3 { background: radial-gradient(120px 80px at 50% 60%, rgba(255, 184, 74, 0.25), transparent 70%), linear-gradient(160deg, #21160a, #0c0703); }
.pj-thumb svg { width: 38px; height: 38px; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.pj-thumb.t1 svg { color: var(--g); } .pj-thumb.t2 svg { color: var(--blue); } .pj-thumb.t3 svg { color: var(--amber); }
.pj-thumb::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.18) 0 1px, transparent 1px 3px); }
.pj-badge { position: absolute; top: 6px; right: 6px; z-index: 1; }
.pj-body { display: flex; flex-direction: column; gap: 7px; padding: 12px; flex: 1; }
.pj-body h3 { font: 600 14px/1.2 var(--f-ui); color: #fff; }
.pj-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.pj-tags .tag { font-size: 11px; padding: 1px 7px; }
.pj-body p { font-size: 12px; color: var(--tx-dim); line-height: 1.55; }
.pj-link { margin-top: auto; padding-top: 4px; display: inline-flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 600; letter-spacing: 0.12em; color: var(--g); text-transform: uppercase; }
.pj-link svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.25s var(--ease); }
.pj:hover .pj-link svg { transform: translateX(4px); }

.sk-group + .sk-group { margin-top: 12px; }
.sk-group h3 { font: 500 11px/1 var(--f-ui); letter-spacing: 0.1em; color: var(--tx-dim); margin-bottom: 8px; }
.sk-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; }
.tile {
    position: relative; display: grid; justify-items: center; align-content: center; gap: 6px; padding: 10px 6px 8px; min-height: 68px;
    border: 1px solid var(--line); background: rgba(255, 255, 255, 0.015); border-radius: 2px; color: var(--tx-dim);
    transition: color 0.2s, border-color 0.2s, transform 0.3s var(--ease), box-shadow 0.3s, background 0.2s; transform-style: preserve-3d;
}
.tile:hover { color: var(--g); border-color: var(--g); background: rgba(38, 232, 132, 0.06); transform: perspective(500px) translateZ(14px) rotateX(-6deg); box-shadow: 0 12px 24px rgba(0, 0, 0, 0.5); }
.tile .ic { width: 22px; height: 22px; background: currentColor; -webkit-mask: var(--ic) center / contain no-repeat; mask: var(--ic) center / contain no-repeat; }
.tile span { font-size: 11px; letter-spacing: 0.01em; line-height: 1.15; text-align: center; max-width: 100%; }

.cert-list { display: grid; gap: 9px; }
.cert-row {
    display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; align-items: center; padding: 8px 10px;
    border: 1px solid var(--line); background: rgba(255, 255, 255, 0.015); border-radius: 2px;
    transition: border-color 0.2s, transform 0.25s var(--ease), background 0.2s;
}
.cert-row:hover { border-color: var(--g); background: rgba(38, 232, 132, 0.05); transform: translateX(3px); }
.cert-ico { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid currentColor; border-radius: 3px; }
.cert-ico svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.cert-row b { display: block; font: 600 12px/1.3 var(--f-ui); color: #fff; }
.cert-row small { display: block; font-size: 11px; color: var(--tx-dim); }
.c-g { color: var(--g); } .c-r { color: var(--red); } .c-p { color: #a78bfa; }

/* ---------- footer strip ---------- */
.strip { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 24px; padding: 14px 20px; }
.strip-q { display: flex; align-items: center; gap: 16px; min-width: 0; }
.strip-q svg { width: 44px; height: 44px; flex: none; stroke: var(--g); fill: none; stroke-width: 1.2; opacity: 0.85; }
.strip-q p { color: var(--tx); font-size: 12.5px; line-height: 1.5; }
.strip-q small { display: block; color: var(--tx-mute); font-size: 11px; margin-top: 2px; }
.pdots { display: flex; align-items: center; }
.pdot { position: relative; display: grid; gap: 6px; justify-items: center; padding: 6px 12px; color: var(--tx-mute); font-size: 11px; letter-spacing: 0.06em; }
.pdot::before { content: ''; width: 8px; height: 8px; border: 1px solid currentColor; border-radius: 50%; background: var(--bg); position: relative; z-index: 1; }
.pdot::after { content: ''; position: absolute; top: 9px; left: 50%; width: 100%; height: 1px; background: var(--line-hi); }
.pdot:last-child::after { display: none; }
.pdot:hover { color: var(--tx); }
.pdot.active { color: var(--g); }
.pdot.active::before { background: var(--g); box-shadow: 0 0 12px var(--g-glow); }
.strip-cta { justify-self: end; }
.strip-cta .btn { border-color: var(--g); color: var(--g); background: rgba(38, 232, 132, 0.05); }
.strip-cta .btn:hover { background: var(--g); color: var(--g-ink); box-shadow: 0 8px 28px var(--g-glow); transform: translateY(-2px); }

/* ---------- boot power-on ---------- */
body.intro-active .wall > *, body.intro-active .topbar { opacity: 0; }
body.booted .wall > * { animation: powerOn 0.85s var(--ease) both; animation-delay: calc(var(--i, 0) * 70ms + 60ms); }
body.booted .topbar { animation: dropIn 0.7s var(--ease) both; }
@keyframes powerOn { from { opacity: 0; transform: perspective(1200px) translateY(28px) rotateX(-14deg) scale(0.98); filter: brightness(2.2); } }
@keyframes dropIn { from { opacity: 0; transform: translateY(-100%); } }
body.booted [data-tilt] { animation-fill-mode: both; }

/* ---------- content sections ---------- */
#home { scroll-margin-top: var(--top-h); }
.sec { padding-top: 92px; scroll-margin-top: calc(var(--top-h) + 6px); }
.sec-h { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 26px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.sec-h h2 { display: flex; align-items: center; gap: 12px; font: 400 clamp(2.1rem, 3.6vw, 3rem)/1.05 var(--f-disp); text-transform: uppercase; letter-spacing: 0.02em; }
.sec-h h2 .chev { width: 14px; height: 14px; border-width: 3px; }
.sec-tag { font-size: 11px; letter-spacing: 0.18em; color: var(--tx-dim); text-transform: uppercase; }

.reveal { transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
body.reveal-ready .reveal:not(.in) { opacity: 0; transform: translateY(26px); }

.about-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: var(--gap); align-items: start; }
.prose { font-size: 14px; line-height: 1.85; white-space: pre-line; color: var(--tx); max-width: 72ch; }
.goals { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 22px; }
.goal { padding: 14px; border: 1px solid var(--line-hi); background: rgba(38, 232, 132, 0.04); border-radius: 2px; }
.goal h3 { font: 500 11px/1.2 var(--f-ui); letter-spacing: 0.16em; color: var(--tx-dim); margin-bottom: 6px; }
.goal p { font-size: 13.5px; color: #fff; font-weight: 500; }
.stack { display: grid; gap: var(--gap); }
.lang-list { display: grid; gap: 12px; }
.lang-list li { display: grid; gap: 6px; font-size: 12.5px; }
.lang-list .seg { height: 8px; }
.focus-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.focus { padding: 12px; border: 1px solid var(--line); border-radius: 2px; background: rgba(255, 255, 255, 0.015); }
.focus h3 { font: 600 11px/1.3 var(--f-ui); letter-spacing: 0.1em; margin-bottom: 8px; }
.focus li { font-size: 12px; color: var(--tx-dim); padding-left: 12px; position: relative; }
.focus li::before { content: '›'; position: absolute; left: 0; color: currentColor; }
.mind { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); margin-top: var(--gap); }
.mind .panel h3 { font: 600 13px/1.3 var(--f-ui); letter-spacing: 0.12em; margin-bottom: 8px; }
.mind .panel p { font-size: 12.5px; color: var(--tx-dim); line-height: 1.7; }
.mind .blue { border-color: rgba(71, 150, 255, 0.4); } .mind .blue h3 { color: var(--blue); }
.mind .blue::before, .mind .blue::after { border-color: var(--blue); }
.mind .red { border-color: rgba(255, 74, 74, 0.4); } .mind .red h3 { color: var(--red); }
.mind .red::before, .mind .red::after { border-color: var(--red); }

/* experience timeline */
.timeline { position: relative; display: grid; gap: 20px; padding-left: 44px; }
.timeline::before { content: ''; position: absolute; left: 14px; top: 8px; bottom: 8px; width: 1px; background: linear-gradient(180deg, var(--g), var(--line-hi) 70%, transparent); }
.tl-item { position: relative; }
.tl-item::before { content: ''; position: absolute; left: -36px; top: 26px; width: 15px; height: 15px; border: 2px solid var(--g); border-radius: 50%; background: var(--bg); box-shadow: 0 0 14px var(--g-glow); }
.tl-item:not(.now)::before { border-color: var(--line-hi); box-shadow: none; }
.exp-head { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.logo-tile { width: 56px; height: 56px; flex: none; display: grid; place-items: center; background: #fff; border-radius: 4px; padding: 6px; }
.logo-tile img { width: 100%; height: 100%; object-fit: contain; }
.exp-head h3 { font: 600 18px/1.25 var(--f-ui); color: #fff; }
.exp-co { display: block; color: var(--g); font-size: 13px; }
.exp-date { margin-left: auto; align-self: flex-start; font-size: 11px; letter-spacing: 0.06em; color: var(--tx-dim); border: 1px solid var(--line-hi); padding: 3px 10px; border-radius: 2px; white-space: nowrap; }
.now .exp-date { color: var(--g); border-color: var(--g); }
.bullets { display: grid; gap: 7px; }
.bullets li { position: relative; padding-left: 18px; font-size: 13px; color: var(--tx); }
.bullets li::before { content: '›'; position: absolute; left: 2px; color: var(--g); font-weight: 700; }

/* projects */
.pj-big { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.pj-big .pj-thumb { aspect-ratio: 16 / 6.2; }
.pj-big .pj-thumb svg { width: 56px; height: 56px; }
.pj-big .pj-body { padding: 18px; gap: 10px; }
.pj-big .pj-body h3 { font-size: 20px; }
.pj-big .pj-body p { font-size: 13px; }
.pj-big .pj { border-radius: 3px; }
.chrome { position: absolute; top: 0; left: 0; right: 0; z-index: 1; display: flex; align-items: center; gap: 6px; padding: 7px 10px; background: rgba(0, 0, 0, 0.42); font-size: 11px; color: var(--tx-dim); }
.chrome i { width: 8px; height: 8px; border-radius: 50%; background: #ff5f56; }
.chrome i:nth-child(2) { background: #ffbd2e; } .chrome i:nth-child(3) { background: #27c93f; }
.chrome span { margin-left: 6px; }
.thumb-brand { position: relative; z-index: 0; display: grid; justify-items: center; gap: 8px; }
.thumb-brand b { font: 700 15px/1 var(--f-ui); letter-spacing: 0.08em; color: #fff; }
.thumb-brand small { font-size: 11px; letter-spacing: 0.2em; color: var(--tx-dim); }
.tools-h { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 6px 18px; margin: 46px 0 16px; }
.tools-h h3 { font: 600 15px/1.2 var(--f-ui); letter-spacing: 0.14em; text-transform: uppercase; display: flex; align-items: center; gap: 8px; }
.tools-h p { font-size: 12px; color: var(--tx-mute); }
.tool-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.tool { display: flex; flex-direction: column; gap: 10px; padding: 18px; }
.tool .path { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--tx-dim); letter-spacing: 0.06em; }
.tool .path b { color: var(--g); font-weight: 600; }
.tool .cmd { display: block; padding: 9px 12px; border: 1px dashed var(--line-hi); background: rgba(0, 0, 0, 0.25); color: var(--tx); font-size: 12px; border-radius: 2px; }
.tool .cmd::before { content: "$ "; color: var(--g); }
.tool h4 { font: 600 15px/1.25 var(--f-ui); color: #fff; }
.tool p { font-size: 12.5px; color: var(--tx-dim); line-height: 1.65; }
.tool .pj-link { margin-top: auto; }

/* skills section */
.chain { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; position: relative; }
.step { position: relative; padding: 16px 14px; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(12, 21, 17, 0.9), rgba(8, 14, 11, 0.9)); border-radius: 2px; transition: border-color 0.25s, transform 0.3s var(--ease); }
.step:hover { border-color: var(--g); transform: translateY(-4px); }
.step:not(:last-child)::after { content: ''; position: absolute; top: 34px; right: -11px; width: 12px; height: 1px; background: var(--g); z-index: 2; }
.step-n { display: inline-block; font: 400 28px/1 var(--f-disp); color: var(--g); margin-bottom: 10px; }
.step h3 { font: 600 12px/1.3 var(--f-ui); letter-spacing: 0.1em; color: #fff; margin-bottom: 10px; min-height: 30px; }
.step li { font-size: 12px; color: var(--tx-dim); padding: 2px 0; }
.step:nth-child(n+3) { --hue: var(--red); }
.arsenal { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); margin-top: var(--gap); }
.arsenal .sk-row { grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); }
.arsenal .tile { min-height: 84px; }
.arsenal .tile .ic { width: 28px; height: 28px; }
.arsenal .tile span { font-size: 11px; }
.arsenal h3 { display: flex; align-items: center; gap: 8px; }

/* certifications section */
.vault { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--gap); }
.vc { display: flex; flex-direction: column; grid-column: span 2; gap: 14px; padding: 14px; }
.vault > .vc:nth-last-child(-n+2) { grid-column: span 3; }
.vc-img { position: relative; height: 330px; padding: 8px; overflow: hidden; border: 1px solid var(--line); background: #050a08; border-radius: 2px; }
.vc-img img { width: 100%; height: 100%; object-fit: contain; transition: transform 0.5s var(--ease); }
.vc:hover .vc-img img, .vc:focus-visible .vc-img img { transform: scale(1.05); }
.vc h3 { font: 600 14px/1.35 var(--f-ui); color: #fff; }
.vc p { font-size: 12px; color: var(--tx-dim); margin-top: 3px; }
.credential-type { display: inline-flex; width: fit-content; font-size: 11px; font-weight: 600; letter-spacing: 0.1em; color: var(--tx-dim); border: 1px solid var(--line-hi); padding: 3px 10px; border-radius: 2px; }
.archive { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); margin-top: var(--gap); }
.arc { display: flex; flex-direction: column; gap: 10px; padding: 12px; }
.arc-img { height: 130px; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--line); background: #050a08; }
.arc-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.arc h3 { font: 500 12px/1.4 var(--f-ui); color: var(--tx); }
.arc p { font-size: 11px; color: var(--tx-dim); }
.arc .mono { color: var(--g); }
.edu { display: flex; align-items: center; gap: 18px; padding: 16px 18px; margin-top: var(--gap); }
.edu .logo-tile { width: 64px; height: 64px; }
.edu h3 { font: 600 15px/1.3 var(--f-ui); color: #fff; }
.edu p { font-size: 12px; color: var(--tx-dim); }

.foot { margin-top: 90px; padding: 22px 0 40px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 11px; letter-spacing: 0.08em; color: var(--tx-mute); }
.foot .b { color: var(--blue); } .foot .r { color: var(--red); }

/* mobile tab bar */
.bottom-tabs {
    display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 120; height: 62px;
    background: rgba(5, 10, 8, 0.94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-top: 1px solid var(--line);
    padding-bottom: env(safe-area-inset-bottom);
}
.tab-btn { flex: 1; display: grid; justify-items: center; align-content: center; gap: 3px; color: var(--tx-mute); font-size: 11px; letter-spacing: 0.06em; }
.tab-btn svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tab-btn.active { color: var(--g); }

/* ---------- HR / recruiter summary ---------- */
.hr-banner { display: none; }
body.recruiter-mode {
    --void: #edf2ef; --bg: #f3f6f4; --panel: #fff; --panel-hi: #f6f9f7; --line: #d3ded8; --line-hi: #b4c6bc;
    --g: #0a7a44; --g-ink: #fff; --g-glow: rgba(10, 122, 68, 0.14); --red: #c0281f; --blue: #1c5fd0; --cyan: #08718c; --amber: #a86000;
    --tx: #14201a; --tx-dim: #465a4f; --tx-mute: #6a7d72;
    background: var(--bg);
}
body.recruiter-mode .floor, body.recruiter-mode .scan, body.recruiter-mode .wall { display: none; }
body.recruiter-mode .topbar { background: rgba(255, 255, 255, 0.92); }
body.recruiter-mode .brand-txt b, body.recruiter-mode .name .n1, body.recruiter-mode .pj-body h3, body.recruiter-mode .exp-head h3,
body.recruiter-mode .c-row b, body.recruiter-mode .vc h3, body.recruiter-mode .tool h4, body.recruiter-mode .edu h3, body.recruiter-mode .goal p,
body.recruiter-mode .step h3, body.recruiter-mode .cert-row b { color: #0d1712; }
body.recruiter-mode .panel { background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); }
body.recruiter-mode .panel::before, body.recruiter-mode .panel::after { display: none; }
body.recruiter-mode .step { background: #fff; }
body.recruiter-mode .bottom-tabs { background: rgba(255, 255, 255, 0.96); }
body.recruiter-mode .tool .cmd { background: var(--panel-hi); }
body.recruiter-mode .vc-img, body.recruiter-mode .arc-img { background: #eef2ef; }
body.recruiter-mode .hr-banner { display: block; margin-top: var(--gap); }
body.recruiter-mode [data-tilt], body.recruiter-mode .idcard { transform: none !important; }
body.recruiter-mode .hr-photo { filter: none; }
.hr-top { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.hr-photo { width: 132px; height: 132px; border-radius: 6px; object-fit: cover; object-position: 50% 32%; border: 1px solid var(--line-hi); }
.hr-id h1 { font: 400 2.8rem/1.05 var(--f-disp); text-transform: uppercase; color: #0d1712; }
.hr-role { font-size: 14px; color: var(--tx-dim); margin: 6px 0 2px; }
.hr-loc { font-size: 13px; color: var(--g); font-weight: 600; }
.hr-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.hr-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 22px; }
.hr-fact { padding: 12px 14px; border: 1px solid var(--line); border-radius: 3px; background: var(--panel-hi); }
.hr-fact-label { display: block; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--tx-mute); }
.hr-fact-val { display: block; font-size: 13.5px; font-weight: 600; color: #0d1712; margin-top: 2px; }

/* ---------- responsive ---------- */
@media (max-width: 1620px) {
    .clock { display: none; }
    .tab { padding: 9px 9px; font-size: 11px; }
}
@media (max-width: 1220px) {
    .tabs { gap: 2px; }
    .tab::before { content: '[ '; }
    .open-pill span:not(.pulse-dot) { display: none; }
    .open-pill { padding: 9px 11px; }
    .hero, .col-right, .team, .term, .pj-panel, .sk-panel, .ct-panel { grid-column: 1 / -1; }
    .team, .term { grid-column: span 6; }
    .pj-panel { grid-column: span 12; }
    .sk-panel, .ct-panel { grid-column: span 6; }
    .term { grid-column: 1 / -1; }
    .col-right { grid-template-rows: auto; }
}
@media (max-width: 980px) {
    .tabs, .open-pill, .lang-switch { }
    .tabs { display: none; }
    .open-pill span:not(.pulse-dot) { display: inline; }
    .about-grid { grid-template-columns: 1fr; }
    .vault { grid-template-columns: 1fr; }
    .vault > .vc { grid-column: 1 / -1; }
    .vc-img { height: 360px; }
    .archive { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .chain { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .step:not(:last-child)::after { display: none; }
    .arsenal, .tool-grid { grid-template-columns: 1fr; }
    .strip { grid-template-columns: 1fr; justify-items: start; }
    .strip-cta { justify-self: start; }
    .pdots { display: none; }
    .bottom-tabs { display: flex; }
    body { padding-bottom: 62px; }
    .foot { margin-bottom: 30px; }
}
@media (max-width: 760px) {
    :root { --top-h: 56px; }
    .hero { grid-template-columns: minmax(0, 1fr); padding: 22px 16px; min-height: 0; }
    .idcard-wrap { order: -1; padding: 6px 0 14px; }
    .idcard { width: min(72%, 250px); }
    .chip-ok { right: -4%; } .chip-hack { left: -6%; } .chip-tag { right: -6%; }
    .duo, .team-row { grid-template-columns: minmax(0, 1fr); }
    .team, .sk-panel, .ct-panel { grid-column: 1 / -1; }
    .threats-body { grid-template-columns: minmax(0, 1fr); }
    .globe-box { min-height: 230px; }
    .pj-grid { grid-template-columns: 1fr; }
    .pj-grid .pj-thumb, .pj-big .pj-thumb { aspect-ratio: 16 / 6; }
    .pj-big { grid-template-columns: 1fr; }
    .goals, .focus-grid, .mind, .hr-facts { grid-template-columns: 1fr; }
    .timeline { padding-left: 30px; }
    .tl-item::before { left: -24px; }
    .timeline::before { left: 6px; }
    .exp-head { flex-wrap: wrap; }
    .exp-date { margin-left: 0; }
    .brand-txt small { display: none; }
    .top-right { gap: 8px; }
    .hr-switch span:not(.knob) { display: none; }
    .sec { padding-top: 64px; }
    .sk-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 420px) {
    .archive { grid-template-columns: 1fr; }
    .sk-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .arsenal .sk-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .cta .btn { width: 100%; justify-content: center; }
}


/* ---------- phone comfort: no overflow, larger touch targets, lighter effects ---------- */
html { overflow-x: clip; }
.threats, .timeline { grid-template-columns: minmax(0, 1fr); }
.exp-date { max-width: 100%; }
@media (max-width: 560px) {
    .topbar { gap: 8px; padding: 0 12px; }
    .brand { gap: 8px; }
    .brand-chev { width: 24px; height: 24px; }
    .brand-txt b { font-size: 16px; }
    .top-right { gap: 6px; }
    .open-pill { padding: 0; width: 38px; height: 38px; justify-content: center; }
    .open-pill span:not(.pulse-dot) { display: none; }
    .hr-switch { padding: 0 9px; height: 38px; }
    .lang-switch button { padding: 0 10px; height: 36px; }
    .page { padding: 0 12px; }
    .wall { gap: 12px; padding-top: 12px; }
    .panel { padding: 14px; }
    .hero { padding: 18px 14px; }
    .idcard { width: min(78%, 270px); }
    .roles { flex-direction: column; gap: 4px; font-size: 12.5px; }
    .roles em { display: none; }
    .blurb { font-size: 13px; max-width: none; }
    .cta { gap: 10px; }
    .cta .btn { flex: 1 1 100%; justify-content: center; padding: 15px 18px; }
    .socials a { width: 46px; height: 46px; }
    .feed li { grid-template-columns: 12px 42px minmax(0, 1fr); row-gap: 0; }
    .feed .ip { grid-column: 3; text-align: left; font-size: 11px; }
    .gbtn { width: 36px; height: 36px; }
    .globe-box { min-height: 250px; }
    .team { min-height: 0; }
    .term-body { max-height: 240px; }
    .term-form input { font-size: 16px; }
    .prose { font-size: 13.5px; line-height: 1.75; }
    .sec { padding-top: 52px; }
    .sec-h { margin-bottom: 18px; }
    .sec-h h2 { font-size: 2rem; }
    .exp-head h3 { font-size: 16px; }
    .vc-img { height: 300px; }
    .arsenal .sk-row, .sk-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .tile { min-height: 72px; }
    .strip { padding: 14px; }
    .strip-cta, .strip-cta .btn { width: 100%; justify-content: center; }
    .strip-q svg { width: 34px; height: 34px; }
    .mt-list a { padding: 9px; }
    .foot { flex-direction: column; margin-top: 56px; }
    .exp-date { white-space: normal; }
    .hero-copy, .idcard-wrap { min-width: 0; }
}
@media (max-width: 760px) {
    .floor { animation: none; opacity: 0.55; }
    .scan { display: none; }
    .topbar { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(5, 10, 8, 0.96); }
}
@media (hover: none) {
    .tile:hover, .pj:hover, .socials a:hover, .btn:hover { transform: none; }
    [data-tilt] { transform: none !important; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .floor, .idc-scan, .pulse-dot, .live-dot, .caret { animation: none; }
    body.booted .wall > *, body.booted .topbar { animation: none; }
    body.reveal-ready .reveal:not(.in) { opacity: 1; transform: none; }
    [data-tilt], .idcard { transform: none !important; }
    .seg i { animation: none !important; }
}
