/* ===== Theme ===== */
:root {
  --bg: #0B0C10;
  --panel: #1F2833;
  --text: #C5C6C7;
  --accent: #66FCF1;
  --accent-2: #45A29E;
  --danger: #ff3b5c;
  --display: 'Anton', 'Impact', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --body: 'Space Grotesk', system-ui, sans-serif;
  --ease: cubic-bezier(.77, 0, .18, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  overflow-x: hidden;
  cursor: none;
}
body.locked { overflow: hidden; height: 100vh; }
a { color: inherit; text-decoration: none; cursor: none; }
button { font: inherit; cursor: none; }
img { display: block; max-width: 100%; }
::selection { background: var(--accent); color: var(--bg); }
.hidden { display: none !important; }

/* ===== INTRO ===== */
#intro {
  position: fixed; inset: 0; z-index: 1000;
  background: #000;
  display: grid; place-items: center;
  font-family: var(--mono);
  color: var(--accent);
  overflow: hidden;
}
#intro.shake { animation: shake .4s linear 3; }
#intro.closing { animation: crtOff .9s var(--ease) forwards; }
#matrix { position: absolute; inset: 0; opacity: .35; }
.scanlines {
  position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,.35) 0 1px, transparent 1px 3px);
  mix-blend-mode: multiply;
}
.scanlines::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,.8));
}
.skip {
  position: absolute; top: 20px; right: 24px; z-index: 5;
  background: none; border: 1px solid rgba(102,252,241,.3); color: var(--accent);
  padding: 6px 14px; font-family: var(--mono); font-size: 12px; opacity: .6;
  transition: opacity .2s;
}
.skip:hover { opacity: 1; }
.intro-stage { position: relative; z-index: 2; width: min(900px, 92vw); }

.term {
  font-size: clamp(12px, 1.4vw, 15px); line-height: 1.7;
  white-space: pre-wrap; min-height: 1em;
  text-shadow: 0 0 8px rgba(102,252,241,.6);
}
.term .ok { color: #7CFF9B; }
.term .warn { color: var(--danger); text-shadow: 0 0 8px rgba(255,59,92,.7); }
.term .dim { color: var(--accent-2); }
.term.small { font-size: 12.5px; text-align: left; margin-top: 18px; min-height: 140px; }
.caret::after { content: '▋'; animation: blink 1s steps(1) infinite; }

.hacked { display: none; text-align: center; }
.hacked.show { display: block; animation: popIn .3s steps(3); }
.skull {
  color: var(--danger); font-size: 12px; line-height: 1.1; display: inline-block;
  text-shadow: 0 0 10px var(--danger); animation: flicker 2s infinite;
}
.glitch {
  position: relative; font-family: var(--display); font-weight: 400;
  font-size: clamp(40px, 8.5vw, 110px); letter-spacing: 2px; color: #fff;
  margin: 10px 0 6px; line-height: 1;
}
.glitch::before, .glitch::after {
  content: attr(data-text); position: absolute; inset: 0;
}
.glitch::before { color: var(--accent); left: 3px; clip-path: inset(0 0 60% 0); animation: glitchA 1.6s infinite linear alternate-reverse; }
.glitch::after { color: var(--danger); left: -3px; clip-path: inset(55% 0 0 0); animation: glitchB 1.1s infinite linear alternate-reverse; }
.hacked-sub { color: var(--danger); font-size: 15px; letter-spacing: 2px; }
.enc-bar { width: min(520px, 80vw); height: 8px; margin: 18px auto 8px; border: 1px solid var(--danger); }
.enc-bar span { display: block; height: 100%; width: 0; background: var(--danger); box-shadow: 0 0 12px var(--danger); }
.enc-meta { font-size: 12px; color: #ff8a9e; opacity: .9; }

.call-btn {
  margin-top: 34px; padding: 18px 34px;
  background: var(--accent); color: var(--bg); border: 0;
  font-family: var(--mono); font-weight: 800; font-size: 16px; letter-spacing: 2px;
  box-shadow: 0 0 0 0 rgba(102,252,241,.7);
  animation: pulse 1.4s infinite;
  opacity: 0; transform: translateY(20px); transition: opacity .5s, transform .5s;
  pointer-events: none;
}
.call-btn.show { opacity: 1; transform: none; pointer-events: auto; }
.call-btn:hover { background: #fff; }
.phone { display: inline-block; animation: ring .5s infinite; margin-right: 8px; }

.call-card {
  width: min(520px, 92vw); margin: 0 auto; text-align: center;
  background: rgba(31,40,51,.85); border: 1px solid rgba(102,252,241,.25);
  padding: 40px 32px; backdrop-filter: blur(8px);
  animation: popIn .5s var(--ease);
}
.avatar {
  position: relative; width: 96px; height: 96px; margin: 0 auto 18px;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--accent);
  font-family: var(--display); font-size: 34px; color: var(--accent);
}
.avatar i {
  position: absolute; inset: -2px; border-radius: 50%; border: 2px solid var(--accent);
  animation: ripple 1.8s infinite ease-out;
}
.avatar i:nth-child(3) { animation-delay: .6s; }
.avatar i:nth-child(4) { animation-delay: 1.2s; }
.avatar.connected i { display: none; }
.call-status { font-size: 13px; letter-spacing: 2px; color: var(--accent-2); text-transform: uppercase; }
.call-status.ok { color: #7CFF9B; }
.dots::after { content: ''; animation: dots 1.2s steps(4) infinite; }
.call-name { font-family: var(--display); font-weight: 400; font-size: 42px; color: #fff; margin-top: 8px; letter-spacing: 1px; }
.call-role { font-size: 13px; color: var(--text); }
.open-btn {
  margin-top: 18px; width: 100%; padding: 16px;
  background: transparent; color: var(--accent); border: 2px solid var(--accent);
  font-family: var(--mono); font-weight: 800; letter-spacing: 3px; font-size: 15px;
  position: relative; overflow: hidden; transition: color .35s;
  animation: popIn .4s var(--ease);
}
.open-btn::before {
  content: ''; position: absolute; inset: 0; background: var(--accent);
  transform: translateX(-101%); transition: transform .35s var(--ease); z-index: -1;
}
.open-btn:hover { color: var(--bg); }
.open-btn:hover::before { transform: none; }

/* ===== Cursor / overlays ===== */
.cursor, .cursor-ring {
  position: fixed; top: 0; left: 0; pointer-events: none; z-index: 2000;
  border-radius: 50%; transform: translate(-50%, -50%);
}
.cursor { width: 7px; height: 7px; background: var(--accent); }
.cursor-ring {
  width: 38px; height: 38px; border: 1px solid var(--accent);
  transition: width .25s, height .25s, background .25s, border-color .25s;
  mix-blend-mode: difference;
}
.cursor-ring.hover { width: 72px; height: 72px; background: var(--accent); border-color: transparent; }
@media (hover: none) { .cursor, .cursor-ring { display: none; } body, a, button { cursor: auto; } }

.grain {
  position: fixed; inset: -50%; z-index: 999; pointer-events: none; opacity: .05;
  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 baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(6) infinite;
}
.progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 600;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  transform-origin: left; transform: scaleX(0);
}

/* ===== Nav ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 5vw; font-family: var(--mono); font-size: 13px; text-transform: uppercase; letter-spacing: 1.5px;
  transition: transform .5s var(--ease), background .3s, padding .3s;
}
.nav.scrolled { background: rgba(11,12,16,.75); backdrop-filter: blur(12px); padding: 14px 5vw; border-bottom: 1px solid rgba(102,252,241,.08); }
.nav.hide { transform: translateY(-100%); }
.logo { font-family: var(--display); font-size: 26px; color: #fff; letter-spacing: 1px; }
.logo span { color: var(--accent); }
.nav nav { display: flex; gap: 28px; }
.nav nav a { position: relative; }
.nav nav a::after {
  content: ''; position: absolute; left: 0; bottom: -4px; height: 1px; width: 100%;
  background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease);
}
.nav nav a:hover { color: var(--accent); }
.nav nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.clock { color: var(--accent-2); }
@media (max-width: 820px) { .nav nav { display: none; } }

/* ===== Common ===== */
section { position: relative; padding: 140px 5vw; }
.label { font-family: var(--mono); font-size: 13px; color: var(--accent); letter-spacing: 1px; margin-bottom: 18px; }
.label.center { text-align: center; }
.section-title {
  font-family: var(--display); font-weight: 400; color: #fff;
  font-size: clamp(56px, 11vw, 170px); line-height: .9; letter-spacing: 1px;
}
.section-title em { font-style: normal; color: var(--accent); }
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  padding: 16px 30px; border: 2px solid var(--accent); color: var(--bg); background: var(--accent);
  font-family: var(--mono); font-weight: 800; font-size: 13px; letter-spacing: 2px; overflow: hidden;
  transition: color .4s;
}
.btn span { position: relative; z-index: 1; pointer-events: none; }
.btn::before {
  content: ''; position: absolute; inset: 0; background: var(--bg);
  transform: translateY(101%); transition: transform .4s var(--ease);
}
.btn:hover { color: var(--accent); }
.btn:hover::before { transform: none; }
.btn.ghost { background: transparent; color: var(--accent); }
.btn.ghost::before { background: var(--accent); }
.btn.ghost:hover { color: var(--bg); }
.btn.big { padding: 24px 52px; font-size: 16px; }

/* ===== Hero ===== */
.hero {
  min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding-top: 120px; overflow: hidden;
}
.hero-glow {
  position: absolute; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px; border-radius: 50%;
  background: radial-gradient(circle, rgba(102,252,241,.14), transparent 65%);
  left: 50%; top: 50%; transform: translate(-50%, -50%); pointer-events: none;
  transition: transform .2s linear;
}
.eyebrow { font-family: var(--mono); font-size: 13px; color: var(--accent); letter-spacing: 2px; }
.hello {
  font-family: var(--display); font-weight: 400; color: var(--accent);
  font-size: clamp(100px, min(27vw, 40vh), 420px); line-height: 1; letter-spacing: 2px;
  display: flex; margin: 4px 0 18px;
  text-shadow: 0 0 80px rgba(102,252,241,.25);
}
.hello span { display: inline-block; transform: translateY(110%); opacity: 0; transition: color .3s; }
.hello.in span { animation: letterUp 1s var(--ease) forwards; }
.hello.in span:nth-child(2) { animation-delay: .07s; }
.hello.in span:nth-child(3) { animation-delay: .14s; }
.hello.in span:nth-child(4) { animation-delay: .21s; }
.hello.in span:nth-child(5) { animation-delay: .28s; }
.hello.in span:nth-child(6) { animation-delay: .35s; }
.hello.in span:nth-child(7) { animation-delay: .42s; }
.hello.done span { opacity: 1; transform: none; animation: none; }
.hello.done span:hover { color: #fff; animation: jelly .6s both; }
.hero-copy { max-width: 620px; font-size: clamp(16px, 1.5vw, 19px); line-height: 1.6; }
.hero-copy b { color: #fff; }
.hero-cta { display: flex; gap: 16px; margin-top: 34px; flex-wrap: wrap; justify-content: center; }
.mouse {
  position: absolute; bottom: 36px; width: 24px; height: 38px; border: 2px solid var(--text); border-radius: 14px;
}
.mouse span { position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; background: var(--accent); border-radius: 2px; animation: wheel 1.6s infinite; }

/* ===== About scrub ===== */
.about { max-width: 1200px; margin: 0 auto; }
.scrub { font-size: clamp(26px, 3.6vw, 52px); line-height: 1.25; font-weight: 500; letter-spacing: -.5px; }
.scrub .w { opacity: .12; transition: opacity .2s, color .2s; }
.scrub .w.on { opacity: 1; }
.scrub .w.hl.on { color: var(--accent); }

/* ===== Compile ===== */
.compile { height: 420vh; padding: 0; }
.compile-sticky {
  position: sticky; top: 0; height: 100vh; padding: 90px 5vw 30px;
  display: flex; flex-direction: column; justify-content: center; gap: 24px;
}
.compile-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 8px; }
.compile-head .label { order: 2; margin: 0; }
.compile .section-title { font-size: clamp(48px, 7vw, 110px); }
.compile-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 20px; min-height: 0; flex: 0 1 62vh; }
.editor, .output {
  background: var(--panel); border: 1px solid rgba(102,252,241,.12); border-radius: 14px;
  overflow: hidden; display: flex; flex-direction: column; min-height: 0;
}
.win-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; background: rgba(0,0,0,.25); font-family: var(--mono); font-size: 12px; }
.win-bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.win-bar i:nth-child(2) { background: #febc2e; }
.win-bar i:nth-child(3) { background: #28c840; }
.win-bar span { margin-left: 10px; opacity: .6; }
.code {
  flex: 1; padding: 18px 20px; font-family: var(--mono); font-size: clamp(11px, 1vw, 14px); line-height: 1.65;
  white-space: pre; overflow: hidden; color: #e6e6e6; counter-reset: ln;
}
.code .ln { display: inline-block; width: 2.4em; color: rgba(197,198,199,.25); user-select: none; }
.tk-k { color: #c792ea; } .tk-s { color: #7CFF9B; } .tk-c { color: #5c6b7a; font-style: italic; }
.tk-n { color: #f78c6c; } .tk-f { color: var(--accent); } .tk-t { color: #ffcb6b; }
.typing-caret { display: inline-block; width: .55em; height: 1.1em; background: var(--accent); vertical-align: text-bottom; animation: blink 1s steps(1) infinite; }

.output { padding-bottom: 14px; }
.preview { flex: 1; margin: 14px; border-radius: 8px; background: var(--bg); padding: 14px; display: flex; flex-direction: column; gap: 12px; min-height: 0; }
.pv { opacity: 0; transform: translateY(14px) scale(.96); transition: all .6s var(--ease); }
.pv.on { opacity: 1; transform: none; }
.pv-nav { display: flex; align-items: center; gap: 8px; }
.pv-nav b { width: 26px; height: 10px; background: var(--accent); border-radius: 2px; margin-right: auto; }
.pv-nav span { width: 30px; height: 6px; background: var(--panel); border-radius: 3px; }
.pv-hero { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 10px 0; }
.pv-hero b { width: 60%; height: 30px; background: var(--accent); border-radius: 4px; }
.pv-hero span { width: 70%; height: 6px; background: var(--panel); border-radius: 3px; }
.pv-hero span + span { width: 45%; }
.pv-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; flex: 1; min-height: 40px; }
.pv-cards div { border-radius: 6px; background: linear-gradient(135deg, var(--panel), rgba(69,162,158,.4)); }
.pv-btn { align-self: center; font-family: var(--mono); font-size: 11px; font-weight: 800; color: var(--bg); background: #7CFF9B; padding: 6px 14px; border-radius: 30px; }
.build-log { margin: 0 14px; font-family: var(--mono); font-size: 11.5px; line-height: 1.6; height: 6.4em; overflow: hidden; color: var(--accent-2); display: flex; flex-direction: column; justify-content: flex-end; }
.build-log .ok { color: #7CFF9B; }
.build-bar { margin: 10px 14px 0; height: 4px; background: rgba(255,255,255,.06); border-radius: 4px; overflow: hidden; }
.build-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent-2), var(--accent)); }
.build-pct { margin: 8px 14px 0; font-family: var(--mono); font-size: 12px; display: flex; justify-content: space-between; }
.build-pct b { color: var(--accent); }
.build-pct .done { color: #7CFF9B; }
@media (max-width: 900px) {
  .compile-grid { grid-template-columns: 1fr; grid-template-rows: 1.2fr 1fr; flex-basis: 72vh; }
  .preview { display: none; }
}

/* ===== Work (stacked cards) ===== */
.work-head { margin-bottom: 60px; }
.stack-cards { position: relative; }
.card {
  position: sticky; top: calc(84px + var(--i) * min(28px, 3.2vh));
  background: var(--bg); border: 1.5px solid rgba(197,198,199,.35); border-radius: 28px;
  padding: 22px 26px 26px; margin-bottom: 8vh;
  transform-origin: center top; will-change: transform;
  box-shadow: 0 -20px 50px rgba(0,0,0,.6);
}
.card header { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.num { font-family: var(--display); font-size: 52px; line-height: 1; color: #fff; }
.meta b { display: block; font-family: var(--mono); font-size: 13px; color: #fff; letter-spacing: 1px; }
.meta small { font-size: 13px; color: var(--accent); }
.tags { display: flex; gap: 8px; margin-left: auto; flex-wrap: wrap; }
.tags span { font-family: var(--mono); font-size: 11px; padding: 5px 10px; border-radius: 30px; background: var(--panel); color: var(--text); }
.pill {
  font-family: var(--mono); font-weight: 800; font-size: 12px; letter-spacing: 1px; color: #fff;
  border: 1.5px solid #fff; padding: 10px 22px; border-radius: 40px; transition: background .3s, color .3s;
}
.pill:hover { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.desc { margin: 14px 0 18px; max-width: 720px; line-height: 1.6; font-size: 15px; }
.shots { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 14px; height: clamp(260px, 42vh, 440px); }
.shot { border-radius: 22px; overflow: hidden; background: var(--panel); position: relative; }
.shot.big { grid-row: span 2; }
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 1.2s var(--ease); }
.shot:hover img { transform: scale(1.06); }
.shots.phones { grid-template-columns: repeat(3, 1fr); grid-template-rows: 1fr; }
.shots.phones img { object-fit: contain; background: #fff3e6; }
@media (max-width: 700px) {
  .tags { margin-left: 0; width: 100%; }
  .shots { grid-template-columns: 1fr 1fr; grid-template-rows: auto; height: auto; }
  .shot.big { grid-column: span 2; grid-row: auto; height: 200px; }
  .shot { height: 130px; }
  .card { top: calc(70px + var(--i) * 30px); }
}

/* mock UIs for projects without screenshots */
.mock { display: flex; padding: 16px; gap: 12px; }
.mock-side { width: 18%; display: flex; flex-direction: column; gap: 10px; padding: 10px; background: rgba(0,0,0,.25); border-radius: 12px; }
.mock-side i { height: 10px; border-radius: 5px; background: rgba(197,198,199,.15); }
.mock-side i:first-child { background: var(--accent); }
.mock-main { flex: 1; display: flex; flex-direction: column; gap: 12px; }
.mock-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mock-stats div { padding: 14px; border-radius: 12px; background: rgba(0,0,0,.25); font-family: var(--mono); font-size: 11px; }
.mock-stats div::after { content: ''; display: block; margin-top: 8px; width: 60%; height: 18px; border-radius: 4px; background: var(--accent-2); }
.mock-chart { flex: 1; display: flex; align-items: flex-end; gap: 10px; padding: 14px; background: rgba(0,0,0,.25); border-radius: 12px; }
.mock-chart i { flex: 1; height: var(--h); border-radius: 6px 6px 0 0; background: linear-gradient(var(--accent), var(--accent-2)); transform-origin: bottom; animation: grow 1.4s var(--ease) both; }
.code-mock { align-items: center; font-family: var(--mono); font-size: 12px; color: var(--accent); }
.code-mock pre { white-space: pre; overflow: hidden; }
.code-mock .k { color: #c792ea; } .code-mock .s { color: #7CFF9B; }
.shot.big.code-mock { font-size: clamp(11px, 1.1vw, 15px); color: #e6e6e6; padding: 28px; }
.form-mock { flex-direction: column; justify-content: center; }
.form-mock i { height: 22px; border-radius: 6px; border: 1px solid rgba(197,198,199,.25); }
.form-mock b { align-self: flex-start; font-family: var(--mono); font-size: 11px; padding: 6px 14px; border-radius: 6px; background: var(--accent); color: var(--bg); }
.db-mock { flex-direction: column; justify-content: center; font-family: var(--mono); font-size: 12px; color: var(--accent); }
.db-mock i { height: 14px; border-bottom: 1px dashed rgba(197,198,199,.25); }

/* ===== Stack ===== */
.stack { overflow: hidden; padding-left: 0; padding-right: 0; }
.marquee { overflow: hidden; white-space: nowrap; padding: 6px 0; }
.track { display: inline-flex; gap: 40px; animation: marquee 22s linear infinite; padding-right: 40px; }
.marquee.reverse .track { animation-direction: reverse; }
.track span { font-family: var(--display); font-size: clamp(50px, 8vw, 120px); color: #fff; line-height: 1.1; }
.track span:nth-child(even) { color: var(--accent); font-size: clamp(30px, 4vw, 60px); align-self: center; }
.marquee.outline .track span:nth-child(odd) { color: transparent; -webkit-text-stroke: 1.5px var(--accent-2); }
.marquee:hover .track { animation-play-state: paused; }
.skills { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; padding: 80px 5vw 0; }
.skill {
  position: relative; padding: 30px 26px 60px; border-radius: 20px; background: var(--panel);
  border: 1px solid rgba(102,252,241,.1); transform-style: preserve-3d; overflow: hidden;
  transition: border-color .3s;
}
.skill::before {
  content: ''; position: absolute; inset: 0; opacity: 0; transition: opacity .3s;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(102,252,241,.18), transparent 40%);
}
.skill:hover { border-color: rgba(102,252,241,.5); }
.skill:hover::before { opacity: 1; }
.skill h3 { font-family: var(--display); font-weight: 400; font-size: 34px; color: #fff; margin-bottom: 10px; letter-spacing: .5px; }
.skill p { line-height: 1.6; font-size: 15px; }
.skill span { position: absolute; right: 22px; bottom: 16px; font-family: var(--mono); color: var(--accent); font-size: 13px; }

/* ===== Certs ===== */
.cert-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; margin-top: 50px; }
.cert {
  position: relative; text-align: left; padding: 28px 24px 54px; border-radius: 20px;
  display: flex; flex-direction: column; justify-content: flex-start;
  background: linear-gradient(160deg, var(--panel), var(--bg)); color: var(--text);
  border: 1px solid rgba(102,252,241,.15); overflow: hidden; transform-style: preserve-3d;
}
.cert::after {
  content: ''; position: absolute; top: -50%; left: -60%; width: 40%; height: 200%;
  background: linear-gradient(90deg, transparent, rgba(102,252,241,.15), transparent);
  transform: rotate(20deg); transition: left .8s var(--ease);
}
.cert:hover::after { left: 130%; }
.cert:hover { border-color: var(--accent); }
.issuer { font-family: var(--mono); font-size: 11px; letter-spacing: 2px; color: var(--accent); }
.cert h3 { color: #fff; font-size: 20px; line-height: 1.3; margin: 14px 0 10px; font-weight: 700; }
.cert p { font-size: 13px; opacity: .8; }
.cert i { position: absolute; bottom: 18px; left: 24px; font-style: normal; font-family: var(--mono); font-size: 12px; color: var(--accent); }

.modal {
  position: fixed; inset: 0; z-index: 1500; background: rgba(11,12,16,.92); backdrop-filter: blur(8px);
  display: grid; place-items: center; padding: 5vh 5vw; opacity: 0; pointer-events: none; transition: opacity .35s;
}
.modal.open { opacity: 1; pointer-events: auto; }
.modal-body { width: min(1100px, 100%); max-height: 88vh; transform: scale(.92); transition: transform .45s var(--ease); }
.modal.open .modal-body { transform: none; }
.modal-body img { width: 100%; max-height: 88vh; object-fit: contain; border-radius: 12px; }
.modal-body iframe { width: 100%; height: 85vh; border: 0; border-radius: 12px; background: #fff; }
.modal-close { position: absolute; top: 20px; right: 26px; background: none; border: 1px solid var(--accent); color: var(--accent); width: 44px; height: 44px; border-radius: 50%; font-size: 18px; }

/* ===== Contact ===== */
.contact { min-height: 90vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.big-cta { font-family: var(--display); font-weight: 400; font-size: clamp(64px, 13vw, 220px); line-height: .92; color: #fff; margin-bottom: 50px; }
.big-cta .line { display: block; overflow: hidden; }
.big-cta .accent { color: var(--accent); }
.socials { display: flex; gap: 34px; margin-top: 50px; font-family: var(--mono); font-size: 14px; text-transform: uppercase; letter-spacing: 2px; }
.socials a:hover { color: var(--accent); }

.foot { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 30px 5vw; border-top: 1px solid rgba(197,198,199,.1); font-family: var(--mono); font-size: 12px; opacity: .7; }
.foot a:hover { color: var(--accent); }

/* ===== Keyframes ===== */
@keyframes blink { 50% { opacity: 0; } }
@keyframes shake { 0%,100% { transform: translate(0); } 20% { transform: translate(-6px, 3px); } 40% { transform: translate(5px, -4px); } 60% { transform: translate(-4px, -2px); } 80% { transform: translate(6px, 4px); } }
@keyframes glitchA { 0% { clip-path: inset(0 0 85% 0); transform: translate(-4px); } 25% { clip-path: inset(30% 0 40% 0); } 50% { clip-path: inset(70% 0 5% 0); transform: translate(4px); } 75% { clip-path: inset(10% 0 60% 0); } 100% { clip-path: inset(45% 0 30% 0); transform: translate(-2px); } }
@keyframes glitchB { 0% { clip-path: inset(60% 0 10% 0); transform: translate(3px); } 33% { clip-path: inset(5% 0 75% 0); } 66% { clip-path: inset(40% 0 35% 0); transform: translate(-5px); } 100% { clip-path: inset(80% 0 2% 0); } }
@keyframes flicker { 0%,19%,22%,62%,64%,100% { opacity: 1; } 20%,21%,63% { opacity: .3; } }
@keyframes popIn { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(102,252,241,.6); } 100% { box-shadow: 0 0 0 26px rgba(102,252,241,0); } }
@keyframes ring { 0%,100% { transform: rotate(-15deg); } 50% { transform: rotate(15deg); } }
@keyframes ripple { from { transform: scale(1); opacity: .9; } to { transform: scale(2); opacity: 0; } }
@keyframes dots { 0% { content: ''; } 25% { content: '.'; } 50% { content: '..'; } 75% { content: '...'; } }
@keyframes crtOff {
  0% { clip-path: inset(0 0 0 0); filter: brightness(1); }
  40% { clip-path: inset(49.5% 0 49.5% 0); filter: brightness(3); }
  70% { clip-path: inset(49.5% 49% 49.5% 49%); filter: brightness(5); }
  100% { clip-path: inset(50% 50% 50% 50%); opacity: 0; }
}
@keyframes grain { 0% { transform: translate(0,0); } 20% { transform: translate(-5%,4%); } 40% { transform: translate(4%,-6%); } 60% { transform: translate(-3%,2%); } 80% { transform: translate(6%,5%); } }
@keyframes letterUp { to { transform: none; opacity: 1; } }
@keyframes jelly { 0% { transform: scale(1,1); } 30% { transform: scale(1.25,.75); } 40% { transform: scale(.75,1.25); } 60% { transform: scale(1.15,.85); } 75% { transform: scale(.95,1.05); } 100% { transform: scale(1,1); } }
@keyframes wheel { 0% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(12px); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes grow { from { transform: scaleY(0); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}

/* ===== JL logo ===== */
.jl { fill: currentColor; display: block; }
.logo { color: var(--accent); display: block; width: 40px; height: 42px; transition: transform .5s var(--ease), filter .3s; }
.logo .jl { width: 100%; height: 100%; }
.logo:hover { transform: rotateY(180deg); filter: drop-shadow(0 0 10px var(--accent)); }
.avatar .jl { width: 54px; height: 57px; filter: drop-shadow(0 0 8px rgba(102,252,241,.6)); }
.foot-brand { display: inline-flex; align-items: center; gap: 10px; }
.foot-brand .jl { width: 18px; height: 19px; color: var(--accent); }

.card:last-child { margin-bottom: 0; }
.work { padding-bottom: 40px; }
.stack { padding-top: 80px; }
.pill.disabled { opacity: .45; border-style: dashed; pointer-events: none; }

/* ===== Furecipe mocks ===== */
.api-mock pre { font-size: clamp(10px, 1vw, 14px); line-height: 1.75; }
.code-mock .c { color: #5c6b7a; }
.chat-mock { flex-direction: column; justify-content: center; gap: 8px; font-size: 12px; line-height: 1.45; }
.chat-mock p { max-width: 88%; padding: 8px 12px; border-radius: 14px; }
.chat-mock .me { align-self: flex-end; background: var(--accent); color: var(--bg); border-bottom-right-radius: 4px; }
.chat-mock .ai { background: rgba(0,0,0,.3); border-bottom-left-radius: 4px; }
.chat-mock .ai b { display: block; font-family: var(--mono); font-size: 10px; color: var(--accent); margin-bottom: 3px; }
.plan-mock { flex-direction: column; justify-content: center; gap: 8px; font-size: 12px; }
.plan-mock b { color: #fff; font-size: 15px; }
.plan-mock i { height: 10px; width: var(--w); border-radius: 6px; background: linear-gradient(90deg, var(--accent-2), var(--accent)); }

/* ===== Click-to-enlarge gallery ===== */
.shot:has(img) { cursor: none; }
.shot:has(img)::after {
  content: '⤢  VIEW'; position: absolute; right: 12px; bottom: 12px;
  font-family: var(--mono); font-size: 11px; font-weight: 800; letter-spacing: 1px;
  padding: 6px 10px; border-radius: 20px; background: rgba(11,12,16,.8); color: var(--accent);
  opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s;
}
.shot:has(img):hover::after { opacity: 1; transform: none; }
.modal { grid-template-rows: 1fr auto; gap: 14px; }
.modal-body { display: grid; place-items: center; }
.modal-body img { max-height: 80vh; width: auto; max-width: 100%; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.modal-body img.swap { animation: popIn .35s var(--ease); }
.modal-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 52px; height: 52px; border-radius: 50%; font-size: 20px;
  background: rgba(31,40,51,.9); color: var(--accent); border: 1px solid rgba(102,252,241,.4);
  transition: background .25s, color .25s;
}
.modal-nav:hover { background: var(--accent); color: var(--bg); }
.modal-nav.prev { left: 2vw; } .modal-nav.next { right: 2vw; }
.modal-nav[hidden] { display: none; }
.modal-caption { display: flex; gap: 16px; align-items: center; font-family: var(--mono); font-size: 13px; }
.modal-caption b { color: var(--accent); }
@media (max-width: 700px) {
  .modal { padding-bottom: 96px; }
  .modal-nav { top: auto; bottom: 22px; transform: none; }
  .modal-caption { flex-direction: column; gap: 4px; text-align: center; font-size: 12px; }
}

/* =========================================================
   HERO v2: giant HELLO behind, photo in front, name + stats
   ========================================================= */
.hero {
  position: relative; min-height: 100vh; padding: 0; overflow: hidden;
  display: block; text-align: left;
  background:
    radial-gradient(ellipse 60% 70% at 50% 75%, rgba(69,162,158,.28), transparent 70%),
    linear-gradient(180deg, var(--bg) 0%, #0e1a1f 60%, var(--bg) 100%);
}
.hero .hello {
  position: absolute; left: 0; right: 0; top: 11vh; z-index: 1; margin: 0;
  justify-content: center; line-height: .82; letter-spacing: 0;
  font-size: clamp(100px, min(22vw, 58vh), 440px);
  text-shadow: none;
}
.hero .hello span {
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent) 45%, rgba(69,162,158,.35) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 40px rgba(102,252,241,.18));
}
.hero .hello.done span:hover { color: transparent; filter: drop-shadow(0 0 30px var(--accent)); }

/* photo (or logo stand-in) */
.hero-photo {
  position: absolute; left: 50%; bottom: 52px; z-index: 2; margin: 0;
  height: 84vh; aspect-ratio: 3 / 4; transform: translateX(-50%);
  display: flex; align-items: flex-end; justify-content: center; pointer-events: none;
}
.hero-photo img {
  display: none; height: 100%; width: 100%; object-fit: contain; object-position: bottom;
  filter: grayscale(.15) contrast(1.06) drop-shadow(0 0 50px rgba(102,252,241,.22));
  -webkit-mask-image: linear-gradient(180deg, #000 78%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 78%, transparent 100%);
}
.hero.has-photo .hero-photo img { display: block; }
.hero.has-photo .hero-logo { display: none; }
.hero-logo {
  width: 62%; height: auto; aspect-ratio: 330 / 350; margin-bottom: 14vh; color: #fff;
  filter: drop-shadow(0 0 40px rgba(102,252,241,.5));
}
.hero-photo > * { opacity: 0; transform: translateY(70px) scale(.97); transition: opacity 1.2s var(--ease) .45s, transform 1.4s var(--ease) .45s; }
.hero.ready .hero-photo > * { opacity: 1; transform: none; }

/* side columns */
.hero-left, .hero-right { position: absolute; z-index: 3; bottom: calc(52px + 7vh); }
.hero-left { left: 5vw; max-width: 380px; }
.hero-right { right: 5vw; width: 230px; }
.hero-in { opacity: 0; transform: translateY(30px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.hero.ready .hero-in { opacity: 1; transform: none; }
.hero.ready .hero-left { transition-delay: .7s; }
.hero.ready .hero-right { transition-delay: .85s; }
.hero.ready .hero-bottom { transition-delay: 1s; }

.hi { font-family: 'Mr Dafoe', cursive; font-size: clamp(34px, 3.4vw, 48px); color: var(--accent); line-height: 1; margin-bottom: -4px; }
.hero-name { font-family: var(--display); font-weight: 400; color: #fff; font-size: clamp(54px, 6.2vw, 96px); line-height: .9; letter-spacing: 1px; }
.hero-role { font-family: var(--mono); font-weight: 800; font-size: 13px; letter-spacing: 2px; color: var(--accent); margin: 14px 0 10px; line-height: 1.5; }
.hero-role span { color: var(--text); }
.hero .hero-copy { max-width: 330px; font-size: 15px; line-height: 1.6; }
.hero .hero-cta { justify-content: flex-start; margin-top: 22px; gap: 12px; }
.hero .hero-cta .btn { padding: 13px 20px; font-size: 12px; }

.avail { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11px; letter-spacing: 1.5px; padding: 7px 12px; border: 1px solid rgba(102,252,241,.3); border-radius: 30px; }
.avail i { width: 8px; height: 8px; border-radius: 50%; background: #7CFF9B; box-shadow: 0 0 0 0 rgba(124,255,155,.7); animation: livePulse 1.6s infinite; }
.hero-note { display: flex; gap: 10px; font-size: 14px; line-height: 1.5; margin: 18px 0 22px; }
.hero-note span { color: var(--accent); }
.stats { list-style: none; display: grid; gap: 14px; }
.stats li { display: flex; align-items: center; gap: 14px; padding-bottom: 14px; border-bottom: 1px solid rgba(197,198,199,.12); }
.stats b { font-family: var(--display); font-weight: 400; font-size: 46px; line-height: 1; color: var(--accent); min-width: 64px; }
.stats b::after { content: ''; }
.stats span { font-family: var(--mono); font-size: 11px; letter-spacing: 1px; text-transform: uppercase; line-height: 1.4; }

.hero-bottom {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; height: 52px;
  display: flex; align-items: center; justify-content: space-between; padding: 0 5vw;
  font-family: var(--mono); font-size: 12px; font-weight: 800; letter-spacing: 2px;
  border-top: 1px solid rgba(102,252,241,.15); background: rgba(11,12,16,.75); backdrop-filter: blur(10px);
}
.hero-bottom span:last-child { color: var(--accent); }
.hero-bottom:hover span:last-child { animation: nudge .6s ease infinite alternate; }

@keyframes livePulse { 100% { box-shadow: 0 0 0 10px rgba(124,255,155,0); } }
@keyframes nudge { to { transform: translateY(4px); } }

/* tablets & phones: stack it */
@media (max-width: 900px) {
  .hero { padding: 90px 6vw 70px; display: flex; flex-direction: column; align-items: center; }
  .hero .hello { position: relative; top: 0; font-size: clamp(64px, 23vw, 220px); }
  .hero-photo { position: relative; left: auto; bottom: auto; transform: none; height: 58vh; max-height: 520px; margin-top: -22vw; }
  .hero-logo { margin-bottom: 4vh; width: 55%; }
  .hero-left, .hero-right { position: relative; left: auto; right: auto; bottom: auto; max-width: 520px; width: 100%; margin-top: 26px; }
  .hero-left { text-align: center; }
  .hero .hero-copy { margin: 0 auto; }
  .hero .hero-cta { justify-content: center; }
  .stats { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .stats li { flex-direction: column; align-items: flex-start; gap: 4px; border: 1px solid rgba(197,198,199,.12); border-radius: 12px; padding: 12px; }
  .stats b { font-size: 36px; min-width: 0; }
}
.code-link { font-family: var(--mono); font-size: 12px; letter-spacing: 1px; color: var(--text); border-bottom: 1px solid rgba(197,198,199,.4); padding-bottom: 2px; transition: color .25s, border-color .25s; }
.code-link:hover { color: var(--accent); border-color: var(--accent); }
.term.small:empty { display: none; }
