/* =========================================================
   Portfolio theme: deep navy, cyan to indigo accents
   ========================================================= */
:root {
  --bg: #070d1a;
  --bg-2: #0a1222;
  --panel: rgba(13, 22, 40, .72);
  --panel-solid: #0d1628;
  --line: rgba(56, 189, 248, .14);
  --line-2: rgba(148, 163, 184, .12);
  --txt: #c7d2e3;
  --muted: #8193ad;
  --white: #f1f5fb;
  --c1: #38bdf8;
  --c2: #818cf8;
  --c3: #22d3ee;
  --grad: linear-gradient(90deg, var(--c1), var(--c2));
  --mono: "JetBrains Mono", Consolas, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --r: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--txt);
  font-family: "Outfit", "Segoe UI", system-ui, sans-serif; font-size: 16px; line-height: 1.65;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3 { color: var(--white); margin: 0; line-height: 1.15; font-weight: 700; }
p { margin: 0; }
[hidden] { display: none !important; }
.wrap { width: min(1320px, calc(100% - 48px)); margin: 0 auto; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.accent-txt { color: var(--c1); }
.live { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #22c55e; animation: dotPulse 2s infinite; }

/* ---------- ambient layers ---------- */
#grain { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; opacity: .05; mix-blend-mode: overlay; }
.scroll-progress { position: fixed; top: 0; left: 0; height: 2px; width: 0; z-index: 120; background: var(--grad); box-shadow: 0 0 10px var(--c1); }

/* custom cursor (desktop pointer devices only) */
/* Cursor: crosshair ring with a rotating gradient arc + a soft trailing glow (no centre dot) */
.cursor-dot { display: none; }
.cursor-ring, .cursor-orbit { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 200; opacity: 0; will-change: transform; }
.cursor-ring {
  width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%;
  transition: width .3s var(--ease), height .3s var(--ease), margin .3s var(--ease), opacity .3s;
}
.cursor-ring::before {           /* rotating gradient arc */
  content: ""; position: absolute; inset: 0; border-radius: 50%; padding: 1.5px;
  background: conic-gradient(from 0deg, var(--c1), var(--c2), transparent 70%, var(--c1));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: spin 2.4s linear infinite;
}
.cursor-ring::after {            /* four crosshair ticks */
  content: ""; position: absolute; inset: -7px;
  background:
    linear-gradient(var(--c1), var(--c1)) top center / 1.5px 6px no-repeat,
    linear-gradient(var(--c1), var(--c1)) bottom center / 1.5px 6px no-repeat,
    linear-gradient(var(--c1), var(--c1)) center left / 6px 1.5px no-repeat,
    linear-gradient(var(--c1), var(--c1)) center right / 6px 1.5px no-repeat;
  opacity: .85; transition: inset .3s var(--ease), opacity .3s;
}
.cursor-orbit {                  /* soft glow that trails behind */
  width: 260px; height: 260px; margin: -130px 0 0 -130px; border-radius: 50%;
  background: radial-gradient(circle, rgba(56,189,248,.13), rgba(129,140,248,.06) 40%, transparent 70%);
  mix-blend-mode: screen;
}
body.has-cursor .cursor-ring, body.has-cursor .cursor-orbit { opacity: 1; }
body.has-cursor, body.has-cursor a, body.has-cursor button { cursor: none; }
body.cursor-hover .cursor-ring { width: 56px; height: 56px; margin: -28px 0 0 -28px; background: rgba(56,189,248,.08); }
body.cursor-hover .cursor-ring::after { inset: -10px; opacity: 1; }
body.cursor-down .cursor-ring { width: 22px; height: 22px; margin: -11px 0 0 -11px; }

/* ---------- nav ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 18px 0; transition: background .4s, padding .4s, border-color .4s; border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(7,13,26,.86); backdrop-filter: blur(14px); padding: 10px 0; border-color: var(--line); }
.nav-inner { display: flex; align-items: center; gap: 24px; }
.logo { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 11px; border: 1px solid rgba(56,189,248,.5); background: rgba(56,189,248,.08); color: var(--c1); font-family: var(--mono); font-weight: 600; font-size: .85rem; box-shadow: inset 0 0 14px rgba(56,189,248,.18); }
.logo.small { width: 36px; height: 36px; font-size: .75rem; }

/* Logo: rotating gradient border, scan line sweep, glow pulse, glitch on hover */
.logo { position: relative; overflow: hidden; isolation: isolate; border-color: transparent; }
.logo::before {                       /* rotating border */
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; z-index: -1;
  background: conic-gradient(from var(--a, 0deg), var(--c1), transparent 35%, var(--c2) 60%, transparent 85%, var(--c1));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: logoSpin 4s linear infinite;
}
.logo::after {                        /* scan line */
  content: ""; position: absolute; left: 0; right: 0; top: -40%; height: 40%;
  background: linear-gradient(180deg, transparent, rgba(56,189,248,.55), transparent);
  animation: logoScan 2.8s ease-in-out infinite;
}
.logo span { position: relative; z-index: 1; letter-spacing: .06em; animation: logoGlow 3s ease-in-out infinite; }
.logo:hover span { animation: logoGlitch .45s steps(2) 2; }
@property --a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes logoSpin { to { --a: 360deg; } }
@keyframes logoScan { 0% { top: -40%; } 60%, 100% { top: 110%; } }
@keyframes logoGlow { 0%, 100% { text-shadow: 0 0 4px rgba(56,189,248,.4); } 50% { text-shadow: 0 0 12px rgba(56,189,248,.95), 0 0 22px rgba(129,140,248,.5); } }
@keyframes logoGlitch {
  0% { transform: translate(0); text-shadow: 2px 0 var(--c2), -2px 0 var(--c1); }
  50% { transform: translate(-1px, 1px); text-shadow: -2px 0 var(--c2), 2px 0 var(--c1); }
  100% { transform: translate(0); text-shadow: none; }
}
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nl { padding: 8px 14px; border-radius: 8px; font-size: .92rem; font-weight: 500; color: var(--txt); transition: color .2s, background .2s; }
.nl:hover { color: var(--white); }
.nl.active { color: var(--white); background: rgba(56,189,248,.12); box-shadow: inset 0 -2px 0 var(--c1); }
.nav-cta { padding: 10px 20px; border-radius: 999px; background: var(--grad); color: #06101f; font-weight: 700; font-size: .9rem; transition: opacity .2s, transform .2s; }
.nav-cta:hover { transform: translateY(-2px); }
.burger { display: none; margin-left: auto; background: none; border: 0; padding: 8px; cursor: pointer; }
.burger span { display: block; width: 24px; height: 2px; background: var(--white); margin: 5px 0; transition: transform .3s; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 28px; border-radius: 999px; font-weight: 600; font-size: .95rem; transition: transform .25s, box-shadow .25s, background .25s, color .25s, border-color .25s; }
.btn-grad { background: var(--grad); color: #06101f; box-shadow: 0 10px 30px rgba(56,189,248,.28); }
.btn-grad:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(99,102,241,.35); }
.btn-line { border: 1px solid rgba(241,245,251,.35); color: var(--white); }
.btn-line:hover { border-color: var(--c1); color: var(--c1); transform: translateY(-3px); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 120px 0 90px; overflow: hidden; }
#warp { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero-glow { position: absolute; inset: 0; z-index: 0; pointer-events: none; background:
  radial-gradient(700px 420px at 78% 40%, rgba(56,189,248,.14), transparent 65%),
  radial-gradient(600px 400px at 15% 80%, rgba(129,140,248,.10), transparent 65%); }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }

.term { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); backdrop-filter: blur(10px); box-shadow: 0 30px 70px rgba(0,0,0,.45); overflow: hidden; }
.term-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--line); background: rgba(8,14,28,.8); font-family: var(--mono); font-size: .78rem; color: var(--muted); }
.tdots { display: inline-flex; gap: 7px; }
.tdots i { width: 11px; height: 11px; border-radius: 50%; background: #ef4444; }
.tdots i:nth-child(2) { background: #f59e0b; }
.tdots i:nth-child(3) { background: #22c55e; }
.term-status { display: inline-flex; align-items: center; gap: 8px; color: #4ade80; }
.term-body { padding: 34px 36px 32px; }

.sys-label { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-family: var(--mono); font-size: .78rem; letter-spacing: .18em; color: var(--muted); text-transform: uppercase; }
.sys-label .dash { width: 22px; height: 1px; background: var(--c1); display: inline-block; }
.hero-name { margin: 18px 0 14px; font-size: clamp(3rem, 6.4vw, 5.6rem); font-weight: 800; letter-spacing: -.03em; line-height: .98; }
.hero-name span { display: block; }
.hero-name .grad:last-child { display: inline; }
.hn-last { display: inline !important; }
.hn-first { position: relative; }
.hn-first::before, .hn-first::after { content: attr(data-text); position: absolute; inset: 0; opacity: 0; }
.hn-first::before { color: var(--c1); animation: glitchA 9s infinite; }
.hn-first::after { color: var(--c2); animation: glitchB 9s infinite; }
.typed-line { font-family: var(--mono); font-size: 1.02rem; color: var(--c1); min-height: 1.6em; }
.typed-line .prompt { color: var(--c2); }
.typed-cursor { color: var(--c1); animation: blink .8s steps(1) infinite; margin-left: 2px; }
.hero-quote { margin-top: 18px; padding: 14px 18px; border-radius: 10px; background: rgba(56,189,248,.05); border: 1px solid var(--line); font-family: var(--mono); font-size: .88rem; color: var(--muted); }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }
.hero-socials { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.hero-socials a { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line-2); background: rgba(13,22,40,.6); color: var(--txt); transition: border-color .2s, color .2s, transform .2s, background .2s; }
.hero-socials a:hover { border-color: var(--c1); color: var(--c1); transform: translateY(-3px); background: rgba(56,189,248,.08); }
.hero-socials svg { width: 18px; height: 18px; }
.hero-stats { list-style: none; padding: 22px 0 0; margin: 26px 0 0; border-top: 1px solid var(--line-2); display: flex; gap: 46px; flex-wrap: wrap; }
.hero-stats strong { display: block; font-size: 2.1rem; font-weight: 800; line-height: 1; }
.hero-stats span { font-family: var(--mono); font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }

/* orb + photo */
.hero-visual { position: relative; display: grid; justify-items: center; gap: 26px; }
.orb { position: relative; width: min(420px, 80vw); aspect-ratio: 1; display: grid; place-items: center; animation: orbIn 1.6s var(--ease) both; }
.ring, .arc, .ticks { position: absolute; border-radius: 50%; pointer-events: none; }
.ring-far { inset: -6%; border: 1px solid rgba(56,189,248,.18); animation: ringPulse 5s ease-in-out infinite; }
.ring-mid { inset: 4%; border: 1px dashed rgba(129,140,248,.35); animation: spin 40s linear infinite; }
.arc { inset: 9%; border: 2px solid transparent; }
.arc-a { border-top-color: var(--c1); border-right-color: rgba(56,189,248,.4); animation: spin 7s linear infinite; filter: drop-shadow(0 0 6px var(--c1)); }
.arc-b { inset: 13%; border-bottom-color: var(--c2); border-left-color: rgba(129,140,248,.35); animation: spin 11s linear infinite reverse; filter: drop-shadow(0 0 6px var(--c2)); }
.ticks { inset: -1%; background: repeating-conic-gradient(rgba(56,189,248,.5) 0 .4deg, transparent .4deg 6deg); -webkit-mask: radial-gradient(circle, transparent 66%, #000 67%, #000 68.5%, transparent 69.5%); mask: radial-gradient(circle, transparent 66%, #000 67%, #000 68.5%, transparent 69.5%); animation: spin 60s linear infinite reverse; }
.orb-photo { position: relative; width: 72%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; border: 2px solid rgba(56,189,248,.45); box-shadow: 0 0 60px rgba(56,189,248,.25), inset 0 0 30px rgba(0,0,0,.4); background: var(--panel-solid); }
.orb-photo img { width: 100%; height: 100%; object-fit: cover; }
.orb-initials, .about-initials { position: absolute; inset: 0; display: grid; place-items: center; font-size: 4rem; font-weight: 800; color: var(--c1); }
.code-float { margin: 0; width: min(380px, 100%); padding: 18px 20px; border-radius: 12px; background: rgba(8,14,28,.88); border: 1px solid var(--line); box-shadow: 0 24px 50px rgba(0,0,0,.45); font-family: var(--mono); font-size: .8rem; line-height: 1.7; color: var(--txt); white-space: pre-wrap; animation: floatY 6s ease-in-out infinite; position: relative; overflow: hidden; }
.code-float::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 36px; background: linear-gradient(180deg, transparent, rgba(56,189,248,.1), transparent); animation: scanY 4s linear infinite; }
.code-float .k { color: var(--c2); }
.code-float .p { color: var(--c1); }
.code-float .s { color: #fcd34d; }
.code-float .ok { color: #4ade80; }

.hero-foot { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 18px; margin-top: 44px; }
.loc-chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: rgba(13,22,40,.6); font-family: var(--mono); font-size: .75rem; color: var(--c1); letter-spacing: .08em; }
.scroll-hint { width: 24px; height: 38px; border: 1px solid rgba(241,245,251,.35); border-radius: 14px; display: flex; justify-content: center; padding-top: 7px; }
.scroll-hint span { width: 3px; height: 7px; border-radius: 3px; background: var(--c1); animation: scrollDot 1.8s infinite; }

/* ---------- sections ---------- */
.section { position: relative; z-index: 2; padding: 120px 0; }
.section-dark { background: var(--bg-2); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.sec-head { position: relative; margin-bottom: 56px; }
.sec-label { font-family: var(--mono); font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; color: var(--c1); margin-bottom: 12px; }
.sec-title { font-size: clamp(2.2rem, 4.4vw, 3.4rem); letter-spacing: -.02em; display: inline-block; }
.sec-title::after { content: ""; display: block; height: 3px; width: 0; margin-top: 14px; border-radius: 3px; background: var(--grad); transition: width .9s var(--ease) .2s; }
.sec-head.in .sec-title::after { width: 64px; }
.sec-num { position: absolute; right: 0; top: -20px; font-size: clamp(5rem, 11vw, 9rem); font-weight: 800; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(56,189,248,.12); letter-spacing: -.04em; user-select: none; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- about ---------- */
.about-card { display: grid; grid-template-columns: 340px 1fr; gap: 48px; padding: 44px; border-radius: 20px; background: var(--panel); border: 1px solid var(--line); box-shadow: 0 30px 70px rgba(0,0,0,.35); }
.about-photo { position: relative; align-self: start; aspect-ratio: 4 / 5; border-radius: 14px; overflow: hidden; background: var(--panel-solid); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.05) contrast(1.03); }
.corner { position: absolute; width: 26px; height: 26px; border: 2px solid var(--c1); z-index: 3; filter: drop-shadow(0 0 6px var(--c1)); }
.corner.tl { top: 10px; left: 10px; border-right: 0; border-bottom: 0; }
.corner.tr { top: 10px; right: 10px; border-left: 0; border-bottom: 0; }
.corner.bl { bottom: 10px; left: 10px; border-right: 0; border-top: 0; }
.corner.br { bottom: 10px; right: 10px; border-left: 0; border-top: 0; }
.photo-scan { position: absolute; left: 0; right: 0; height: 60px; top: 0; z-index: 2; background: linear-gradient(180deg, transparent, rgba(56,189,248,.18), transparent); animation: scanY 5s linear infinite; }
.about-body h3 { font-size: 2rem; }
.about-role { margin: 8px 0 18px; font-family: var(--mono); font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--c1); }
.about-bio { color: var(--txt); font-size: 1.02rem; }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 26px 0 22px; }
.info-item { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(8,14,28,.55); transition: border-color .25s, transform .25s; }
.info-item:hover { border-color: var(--line); transform: translateY(-2px); }
.info-ico { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: rgba(56,189,248,.1); color: var(--c1); flex: 0 0 38px; }
.info-ico svg { width: 18px; height: 18px; }
.info-item small { display: block; font-family: var(--mono); font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.info-item span { color: var(--white); font-size: .95rem; word-break: break-word; }
.info-item a:hover { color: var(--c1); }
.cert-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.cert { padding: 6px 12px; border-radius: 8px; border: 1px solid rgba(129,140,248,.3); background: rgba(129,140,248,.08); color: #c7d2fe; font-size: .8rem; }

/* ---------- facts band ---------- */
.facts { padding: 70px 0; }
.facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.fact { text-align: center; padding: 20px; border-right: 1px solid var(--line-2); }
.fact:last-child { border-right: 0; }
.fact strong { display: block; font-size: clamp(2.6rem, 5vw, 3.8rem); font-weight: 800; line-height: 1; }
.fact span { display: block; margin-top: 10px; font-family: var(--mono); font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }

/* ---------- skills terminal ---------- */
.skills-term .term-body { padding: 30px 34px; font-family: var(--mono); font-size: .9rem; }
.cmd { color: var(--txt); margin: 0 0 22px; }
.cmd .usr { color: #4ade80; }
.cmd .dir { color: var(--c1); }
.skill-group { margin: 0 0 22px; opacity: 0; transform: translateX(-12px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.skill-group.show { opacity: 1; transform: none; }
.sg-name { color: var(--c1); }
.sg-name::before { content: "\25B8 "; color: var(--c2); }
.sg-comment { color: #5b6b85; margin-left: 12px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.tag { padding: 6px 12px; border-radius: 7px; border: 1px solid var(--line); background: rgba(56,189,248,.06); color: var(--white); font-size: .8rem; transition: border-color .2s, background .2s, transform .2s; }
.tag:hover { border-color: var(--c1); background: rgba(56,189,248,.14); transform: translateY(-2px); }

/* ---------- career journey (staircase) ---------- */
.journey { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 20px; align-items: end; padding-bottom: 70px; }
.journey::after { content: ""; position: absolute; left: 0; right: 0; bottom: 30px; height: 2px; background: linear-gradient(90deg, rgba(56,189,248,.1), var(--c1), var(--c2)); }
.jstep { position: relative; margin-bottom: var(--lift, 0px); }
.jcard { padding: 22px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); transition: transform .3s var(--ease), border-color .3s, box-shadow .3s; }
.jcard:hover { transform: translateY(-6px); border-color: rgba(56,189,248,.5); box-shadow: 0 20px 40px rgba(0,0,0,.35); }
.jstep.current .jcard { border-color: rgba(56,189,248,.6); box-shadow: 0 0 0 1px rgba(56,189,248,.25), 0 24px 50px rgba(56,189,248,.12); }
.jbadge { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; color: var(--c1); margin-bottom: 10px; }
.jcard h3 { font-size: 1.15rem; }
.jplace { color: var(--c1); font-size: .85rem; margin: 4px 0 10px; font-weight: 500; }
.jcard p { color: var(--muted); font-size: .9rem; }
.jdot { position: absolute; left: 50%; bottom: calc(-47px - var(--lift, 0px)); width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--bg); border: 2px solid var(--c1); z-index: 2; box-shadow: 0 0 12px var(--c1); }
.jstep.current .jdot { background: var(--c1); animation: dotPulse 2s infinite; }
.jyear { position: absolute; left: 0; right: 0; bottom: calc(-78px - var(--lift, 0px)); text-align: center; font-family: var(--mono); font-size: .75rem; letter-spacing: .14em; color: var(--muted); }
.jstep.current .jyear { color: var(--c1); }

/* ---------- selected work (bento) ---------- */
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 30px; }
.fbtn { padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(13,22,40,.6); color: var(--txt); font: inherit; font-size: .88rem; cursor: pointer; transition: all .25s; }
.fbtn:hover { border-color: var(--c1); color: var(--white); }
.fbtn.active { background: var(--grad); color: #06101f; border-color: transparent; font-weight: 600; }
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pcard { position: relative; padding: 30px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); overflow: hidden; min-height: 240px; display: flex; flex-direction: column; transition: transform .35s var(--ease), border-color .35s, box-shadow .35s, opacity .35s; }
.pcard.wide { grid-column: span 2; }
.pcard::before { content: ""; position: absolute; inset: 0; background: radial-gradient(400px 200px at var(--mx, 50%) var(--my, 0%), rgba(56,189,248,.12), transparent 60%); opacity: 0; transition: opacity .3s; }
.pcard:hover { transform: translateY(-6px); border-color: rgba(56,189,248,.45); box-shadow: 0 24px 50px rgba(0,0,0,.4); }
.pcard:hover::before { opacity: 1; }
.pcard.hide { display: none; }
.pnum { position: absolute; right: 22px; top: 12px; font-size: 4.2rem; font-weight: 800; color: transparent; -webkit-text-stroke: 1px rgba(56,189,248,.16); line-height: 1; }
.pico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(56,189,248,.1); border: 1px solid var(--line); color: var(--c1); margin-bottom: 18px; }
.pico svg { width: 20px; height: 20px; }
.pcat { font-family: var(--mono); font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--c2); margin-bottom: 8px; }
.pcard h3 { font-size: 1.25rem; margin-bottom: 10px; }
.pcard p { color: var(--muted); font-size: .92rem; }
.pcard .tags { margin-top: auto; padding-top: 18px; }
.parrow { position: absolute; right: 22px; bottom: 20px; color: var(--muted); transition: transform .3s, color .3s; }
.pcard:hover .parrow { color: var(--c1); transform: translate(3px, -3px); }

/* ---------- services (HUD cards) ---------- */
.hud-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.hud { position: relative; padding: 26px; border-radius: 6px; background: var(--panel); border: 1px solid var(--line-2); overflow: hidden; transition: border-color .3s, transform .3s var(--ease); }
.hud:hover { border-color: rgba(56,189,248,.45); transform: translateY(-5px); }
.hud::before, .hud::after { content: ""; position: absolute; width: 16px; height: 16px; border: 2px solid var(--c1); transition: width .3s, height .3s; }
.hud::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.hud::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }
.hud:hover::before, .hud:hover::after { width: 30px; height: 30px; }
.hud-top { display: flex; justify-content: space-between; font-family: var(--mono); font-size: .68rem; letter-spacing: .16em; color: var(--muted); margin-bottom: 18px; }
.hud-top .ok { color: #4ade80; }
.hud h3 { font-size: 1.15rem; margin: 14px 0 8px; }
.hud p { color: var(--muted); font-size: .9rem; }
.hud .tags { margin-top: 16px; }
.hud-scan { position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--c1), transparent); opacity: 0; }
.hud:hover .hud-scan { opacity: 1; animation: hudScan 1.6s linear infinite; }
.hud-foot { margin-top: 18px; padding-top: 12px; border-top: 1px dashed var(--line-2); font-family: var(--mono); font-size: .7rem; color: var(--muted); }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; }
.panel { border-radius: 16px; background: var(--panel); border: 1px solid var(--line); overflow: hidden; }
.panel-bar { display: flex; justify-content: space-between; padding: 12px 20px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; color: var(--muted); background: rgba(8,14,28,.7); }
.panel-body { padding: 26px; }
.contact-intro { color: var(--txt); margin-bottom: 20px; }
.kv { display: grid; gap: 10px; margin-bottom: 20px; }
.kv-row { display: grid; grid-template-columns: 70px 1fr; gap: 14px; align-items: center; padding: 12px 16px; border-radius: 10px; border: 1px solid var(--line-2); background: rgba(8,14,28,.55); transition: border-color .25s, background .25s; }
.kv-row b { font-family: var(--mono); font-size: .7rem; letter-spacing: .16em; color: var(--c1); font-weight: 500; }
.kv-row span, .kv-row a { color: var(--white); word-break: break-word; }
.kv-row a:hover { color: var(--c1); }
.kv-row.flash { animation: flash .6s ease-in-out 4; }
.map-box { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.map-label { display: flex; align-items: center; gap: 8px; padding: 10px 14px; font-family: var(--mono); font-size: .72rem; color: var(--c1); background: rgba(8,14,28,.8); border-bottom: 1px solid var(--line); }
.map-box iframe { display: block; width: 100%; height: 240px; border: 0; filter: invert(.9) hue-rotate(180deg) saturate(.6) brightness(.85); }
.channels { display: grid; gap: 14px; }
.channel { display: grid; gap: 2px; padding: 18px 20px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(8,14,28,.55); transition: border-color .25s, transform .25s, background .25s; position: relative; overflow: hidden; }
.channel::after { content: "\2192"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); color: var(--muted); transition: transform .25s, color .25s; }
.channel:hover { border-color: rgba(56,189,248,.5); background: rgba(56,189,248,.06); transform: translateX(4px); }
.channel:hover::after { color: var(--c1); transform: translate(4px, -50%); }
.ch-cmd { font-family: var(--mono); font-size: .72rem; color: var(--c1); letter-spacing: .1em; }
.channel strong { color: var(--white); font-size: 1.05rem; font-weight: 600; }
.ch-val { color: var(--muted); font-size: .9rem; word-break: break-word; }
.hours { font-family: var(--mono); font-size: .78rem; color: var(--muted); padding-top: 6px; }

/* ---------- footer ---------- */
.footer { position: relative; z-index: 2; border-top: 1px solid var(--line-2); padding: 40px 0; background: #050a15; }
.footer-inner { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.foot-links { display: flex; gap: 18px; flex-wrap: wrap; }
.foot-links a { color: var(--muted); font-size: .9rem; }
.foot-links a:hover { color: var(--c1); }
.copy { margin-left: auto; color: var(--muted); font-size: .85rem; }
.admin-link { font-family: var(--mono); font-size: .75rem; color: #4b5b75; }
.admin-link:hover { color: var(--c1); }

.btt { position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(56,189,248,.45); background: rgba(13,22,40,.85); color: var(--c1); font-size: 1.1rem; cursor: pointer; opacity: 0; transform: translateY(14px); pointer-events: none; transition: opacity .3s, transform .3s, border-color .2s; }
.btt.show { opacity: 1; transform: none; pointer-events: auto; }
.btt:hover { border-color: var(--c1); }

/* ---------- keyframes ---------- */
@keyframes dotPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(34,197,94,.55); } 50% { box-shadow: 0 0 0 7px rgba(34,197,94,0); } }
@keyframes blink { 0%, 50% { opacity: 1; } 51%, 100% { opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes ringPulse { 0%, 100% { transform: scale(1); opacity: .7; } 50% { transform: scale(1.04); opacity: 1; } }
@keyframes orbIn { from { opacity: 0; transform: scale(.85) rotate(-8deg); } to { opacity: 1; transform: none; } }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes scanY { 0% { transform: translateY(-100%); } 100% { transform: translateY(900%); } }
@keyframes scrollDot { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }
@keyframes cursorOrbit { to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes hudScan { 0% { top: 0; } 100% { top: 100%; } }
@keyframes flash { 0%, 100% { background: rgba(8,14,28,.55); } 50% { background: rgba(56,189,248,.22); border-color: var(--c1); } }
@keyframes heroIn { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
@keyframes glitchA { 0%, 92%, 100% { opacity: 0; transform: none; clip-path: inset(0 0 0 0); } 93% { opacity: .8; transform: translate(-3px, 1px); clip-path: inset(10% 0 55% 0); } 95% { opacity: .8; transform: translate(3px, -1px); clip-path: inset(60% 0 8% 0); } 97% { opacity: 0; } }
@keyframes glitchB { 0%, 93%, 100% { opacity: 0; transform: none; clip-path: inset(0 0 0 0); } 94% { opacity: .8; transform: translate(3px, 0); clip-path: inset(40% 0 30% 0); } 96% { opacity: .8; transform: translate(-3px, 1px); clip-path: inset(5% 0 75% 0); } 98% { opacity: 0; } }
.enter { opacity: 0; animation: heroIn .9s var(--ease) forwards; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr; gap: 50px; }
  .about-card { grid-template-columns: 260px 1fr; gap: 32px; padding: 30px; }
  .bento, .hud-grid { grid-template-columns: repeat(2, 1fr); }
  .pcard.wide { grid-column: span 2; }
}
@media (max-width: 860px) {
  .burger { display: block; }
  .nav-cta { display: none; }
  .nav-links { position: fixed; top: 0; right: 0; bottom: 0; width: min(300px, 80vw); flex-direction: column; gap: 4px; padding: 90px 24px 24px; background: rgba(7,13,26,.97); border-left: 1px solid var(--line); transform: translateX(100%); transition: transform .35s var(--ease); }
  .nav-links.open { transform: none; }
  .about-card { grid-template-columns: 1fr; }
  .about-photo { max-width: 320px; }
  .facts-grid { grid-template-columns: repeat(2, 1fr); }
  .fact:nth-child(2) { border-right: 0; }
  .journey { grid-auto-flow: row; grid-auto-columns: auto; padding: 0 0 0 30px; gap: 18px; }
  .journey::after { left: 6px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; background: linear-gradient(180deg, var(--c1), var(--c2)); }
  .jstep { margin: 0 !important; }
  .jdot { left: -31px; bottom: auto; top: 24px; margin: 0; }
  .jyear { position: static; text-align: left; margin-bottom: 6px; }
  .contact-grid { grid-template-columns: 1fr; }
  .copy { margin-left: 0; }
}
@media (max-width: 620px) {
  .wrap { width: calc(100% - 32px); }
  .section { padding: 84px 0; }
  .term-body { padding: 24px 20px; }
  .bento, .hud-grid { grid-template-columns: 1fr; }
  .pcard.wide { grid-column: auto; }
  .info-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 28px; }
  .sec-num { font-size: 4.5rem; top: -6px; }
  .kv-row { grid-template-columns: 1fr; gap: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .enter, .skill-group { opacity: 1 !important; transform: none !important; }
}

/* new portrait: keep the face centred in the crops */
.orb-photo img { object-position: 50% 28%; }
.about-photo img { object-position: 50% 22%; }
