:root {
  color-scheme: dark;
  --bg: #0b1020;
  --bg-soft: #10172a;
  --panel: #121b30;
  --panel-light: #17223a;
  --text: #f3f6ff;
  --muted: #a4afc5;
  --muted-dark: #74819c;
  --line: rgba(190, 207, 242, .13);
  --accent: #85f0cf;
  --accent-2: #9eafff;
  --radius: 22px;
  --content: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: "Manrope", sans-serif; font-size: 15px; line-height: 1.75; overflow-x: hidden; }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(ellipse at 78% 7%, rgba(85, 111, 214, .12), transparent 35%), radial-gradient(ellipse at 7% 43%, rgba(54, 191, 157, .06), transparent 28%); }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
img { display: block; max-width: 100%; }
.container { width: min(var(--content), calc(100% - 48px)); margin-inline: auto; }
.section { padding-block: 108px; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; background: var(--accent); color: #07131b; border-radius: 8px; }
.skip-link:focus { top: 12px; }
.site-header { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid transparent; background: rgba(11, 16, 32, .82); backdrop-filter: blur(18px); transition: border-color .25s ease, background .25s ease; }
.site-header.scrolled { border-color: var(--line); background: rgba(11, 16, 32, .94); }
.nav { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand { font-size: 20px; font-weight: 800; letter-spacing: -.06em; white-space: nowrap; }
.brand span { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 31px; }
.nav-links > a:not(.nav-cta) { color: var(--muted); font-size: 12px; font-weight: 700; transition: color .2s ease; }
.nav-links > a:not(.nav-cta):hover, .nav-links > a.active { color: var(--accent); }
.nav-cta { display: inline-flex; align-items: center; gap: 12px; padding: 10px 16px; border: 1px solid rgba(133, 240, 207, .36); border-radius: 999px; font-size: 12px; font-weight: 800; transition: background .2s ease, transform .2s ease; }
.nav-cta:hover { background: rgba(133, 240, 207, .1); transform: translateY(-2px); }
.menu-toggle { display: none; }
.hero { min-height: 670px; display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 64px; padding-top: 92px; padding-bottom: 95px; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 23px; color: var(--accent); font: 500 10px/1.5 "DM Mono", monospace; letter-spacing: .14em; text-transform: uppercase; }
.status-dot, .pulse { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px rgba(133, 240, 207, .09); }
.hero-kicker { margin: 0 0 4px; color: var(--muted); font-size: 15px; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1 { margin: 0; font-size: clamp(46px, 6.5vw, 76px); line-height: 1.08; letter-spacing: -.075em; font-weight: 800; }
.accent-dot { color: var(--accent); }
.headline-muted { color: #aeb9d2; }
.hero-intro { max-width: 540px; margin: 24px 0 0; color: var(--muted); font-size: 14px; line-height: 1.95; }
.hero-intro strong { color: var(--text); font-weight: 700; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button { min-height: 47px; display: inline-flex; justify-content: center; align-items: center; gap: 22px; padding: 12px 18px; border: 1px solid transparent; border-radius: 9px; font-size: 12px; font-weight: 800; transition: transform .22s ease, background .22s ease, border-color .22s ease, box-shadow .22s ease; }
.button:hover { transform: translateY(-3px); }
.button.primary { color: #08151a; background: var(--accent); box-shadow: 0 9px 28px rgba(133, 240, 207, .09); }
.button.primary:hover { background: #a2f7dc; box-shadow: 0 12px 34px rgba(133, 240, 207, .17); }
.button.secondary { border-color: var(--line); color: var(--text); background: rgba(255,255,255,.015); }
.button.secondary:hover { border-color: rgba(133, 240, 207, .5); }
.quick-facts { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 43px; padding-top: 22px; border-top: 1px solid var(--line); }
.quick-facts div { display: grid; gap: 2px; }
.quick-facts strong { font-size: 11px; }
.quick-facts span { color: var(--muted-dark); font-size: 10px; }
.hero-visual { position: relative; min-width: 0; padding: 22px 4px 26px 12px; }
.visual-glow { position: absolute; width: 280px; height: 280px; right: 4%; top: 10%; border-radius: 50%; background: rgba(89, 117, 224, .15); filter: blur(70px); }
.code-card { position: relative; z-index: 1; overflow: hidden; border: 1px solid rgba(186, 205, 246, .18); border-radius: 16px; background: linear-gradient(145deg, rgba(24, 35, 59, .98), rgba(13, 20, 37, .98)); box-shadow: 0 30px 80px rgba(0,0,0,.3); transform: perspective(1100px) rotateY(-4deg) rotateX(2deg); transition: transform .45s ease, border-color .35s ease; }
.hero-visual:hover .code-card { transform: perspective(1100px) rotateY(0) rotateX(0) translateY(-4px); border-color: rgba(133, 240, 207, .32); }
.code-top { display: flex; align-items: center; gap: 13px; min-height: 48px; padding: 0 17px; border-bottom: 1px solid var(--line); color: #94a1bc; font: 10px "DM Mono", monospace; }
.window-dots { display: flex; gap: 5px; }
.window-dots i { width: 7px; height: 7px; border-radius: 50%; background: #f08086; }
.window-dots i:nth-child(2) { background: #edc66e; }
.window-dots i:nth-child(3) { background: #76d7a9; }
.code-top-right { margin-left: auto; color: var(--accent); }
pre { max-width: 100%; margin: 0; padding: 25px 23px 27px; overflow-x: auto; color: #dbe5fb; font: 12px/2 "DM Mono", monospace; tab-size: 2; }
.code-comment { color: #7e8eaa; }
.code-purple { color: #c6a6ff; }
.code-green { color: #8de5c5; }
.code-yellow { color: #f1d89a; }
.code-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 13px 18px; border-top: 1px solid var(--line); color: #8492af; font: 9px "DM Mono", monospace; }
.code-footer > span:first-child { display: inline-flex; align-items: center; gap: 9px; }
.pulse { width: 5px; height: 5px; flex-basis: 5px; box-shadow: none; animation: pulse 2s infinite; }
.floating-chip { position: absolute; z-index: 2; display: flex; align-items: center; gap: 8px; padding: 10px 13px; border: 1px solid rgba(190, 207, 242, .18); border-radius: 10px; background: #17223a; color: #dbe5fb; box-shadow: 0 12px 30px rgba(0,0,0,.22); font-size: 10px; font-weight: 800; animation: float 5s ease-in-out infinite; }
.floating-chip span { color: var(--accent); font-size: 15px; }
.chip-a { top: 2px; right: -5px; }
.chip-b { bottom: 0; left: -8px; animation-delay: -2.5s; }
.trust-strip { border-block: 1px solid var(--line); background: rgba(255,255,255,.018); }
.tech-strip { min-height: 78px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 26px; }
.strip-label { color: var(--muted-dark); font: 10px "DM Mono", monospace; letter-spacing: .12em; }
.tech-strip b { color: #c4cce0; font-size: 12px; font-weight: 800; }
.section-heading { margin-bottom: 44px; }
.section-heading .eyebrow { margin-bottom: 15px; }
h2 { margin: 0; font-size: clamp(32px, 4.5vw, 48px); line-height: 1.2; letter-spacing: -.06em; }
h2 span { color: #8c9bb9; }
.section-subtitle { max-width: 590px; margin: 15px 0 0; color: var(--muted); font-size: 13px; }
.about-grid { display: grid; grid-template-columns: .78fr 1.22fr; align-items: center; gap: clamp(36px, 7vw, 88px); }
.profile-wrap { position: relative; max-width: 390px; padding: 0 18px 18px 0; }
.profile-frame { position: relative; z-index: 1; overflow: hidden; aspect-ratio: 4 / 4.6; border: 1px solid rgba(133, 240, 207, .35); border-radius: 18px; background: var(--panel); }
.profile-frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(8, 13, 26, .38)); pointer-events: none; }
.profile-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; filter: saturate(.9); transition: transform .7s cubic-bezier(.2,.75,.25,1), filter .4s ease; }
.profile-wrap:hover .profile-frame img { transform: scale(1.045); filter: saturate(1.05); }
.profile-caption { position: absolute; z-index: 2; left: 17px; right: 35px; bottom: 34px; display: flex; align-items: center; gap: 12px; padding: 13px; border: 1px solid rgba(255,255,255,.13); border-radius: 10px; background: rgba(11,16,32,.8); backdrop-filter: blur(14px); }
.caption-mark { width: 3px; height: 29px; border-radius: 4px; background: var(--accent); }
.profile-caption div { display: grid; line-height: 1.5; }
.profile-caption strong { font-size: 11px; }
.profile-caption div span { color: var(--muted); font-size: 9px; }
.profile-decoration { position: absolute; right: -4px; bottom: -8px; color: rgba(133,240,207,.25); font-size: 65px; line-height: 1; font-weight: 800; letter-spacing: -.1em; }
.about-lead { margin: 0 0 18px; color: var(--text); font-size: 19px; line-height: 1.7; font-weight: 700; letter-spacing: -.025em; }
.about-detail > p:not(.about-lead) { color: var(--muted); font-size: 13px; line-height: 2; }
.about-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 23px; }
.about-tags span { padding: 7px 10px; border: 1px solid var(--line); border-radius: 999px; color: #bdc9df; font-size: 10px; }
.note { margin-top: 23px; padding: 13px 15px; border-left: 2px solid var(--accent); background: rgba(133,240,207,.055); color: var(--muted); font-size: 11px; line-height: 1.8; }
.note strong { color: var(--accent); }
.skills-section { background: linear-gradient(180deg, rgba(255,255,255,.015), rgba(255,255,255,.005)); border-block: 1px solid var(--line); }
.skills-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; }
.skill-card { min-width: 0; padding: 23px 20px 20px; border: 1px solid var(--line); border-radius: 14px; background: rgba(17, 26, 46, .72); transition: transform .28s ease, border-color .28s ease, background .28s ease; }
.skill-card:hover { transform: translateY(-6px); border-color: rgba(133,240,207,.35); background: #141f35; }
.skill-icon { width: 39px; height: 39px; display: grid; place-items: center; border: 1px solid rgba(133,240,207,.22); border-radius: 10px; background: rgba(133,240,207,.07); color: var(--accent); font: 12px "DM Mono", monospace; }
.skill-card h3 { margin: 18px 0 13px; font-size: 15px; }
.skill-card ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.skill-card li { position: relative; padding-left: 14px; color: var(--muted); font-size: 11px; line-height: 1.7; }
.skill-card li::before { content: ""; position: absolute; left: 0; top: .7em; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }
.skill-card small { color: var(--muted-dark); font-size: 9px; }
.projects-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; }
.project-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: rgba(17,26,46,.72); transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease; }
.project-card:hover { transform: translateY(-6px); border-color: rgba(133,240,207,.32); box-shadow: 0 20px 45px rgba(0,0,0,.15); }
.project-art { position: relative; height: 200px; display: grid; place-items: center; overflow: hidden; }
.project-art::before, .project-art::after { content: ""; position: absolute; width: 200px; height: 200px; border: 1px solid rgba(255,255,255,.07); border-radius: 50%; }
.project-art::after { width: 260px; height: 260px; }
.art-inventory { background: linear-gradient(135deg, #173b4b, #17223c); }
.art-shop { background: linear-gradient(135deg, #493457, #202744); }
.art-admin { background: linear-gradient(135deg, #244c49, #19263e); }
.mock-window { position: relative; z-index: 1; width: 70%; border: 1px solid rgba(255,255,255,.2); border-radius: 7px; overflow: hidden; background: #f2f5fb; box-shadow: 0 12px 30px rgba(0,0,0,.22); transform: rotate(-3deg); transition: transform .4s ease; }
.project-card:hover .mock-window { transform: rotate(0) scale(1.04); }
.mock-bar { display: flex; gap: 3px; height: 15px; align-items: center; padding-left: 7px; background: #e2e8f2; }
.mock-bar i { width: 4px; height: 4px; border-radius: 50%; background: #a6b3c9; }
.mock-body { display: flex; height: 100px; }
.mock-sidebar { width: 22%; background: #263854; }
.mock-content { flex: 1; padding: 10px; }
.mock-metrics { display: flex; gap: 5px; margin-bottom: 8px; }
.mock-metrics i { flex: 1; height: 19px; border-radius: 3px; background: #d2e8e5; }
.mock-row { height: 7px; margin: 6px 0; border-radius: 3px; background: #dce3ed; }
.mock-row.short { width: 60%; }
.art-tag { position: absolute; z-index: 2; left: 14px; bottom: 13px; color: rgba(255,255,255,.75); font: 9px "DM Mono", monospace; letter-spacing: .08em; }
.shop-card { position: absolute; z-index: 1; width: 105px; padding: 8px; border: 1px solid rgba(255,255,255,.22); border-radius: 7px; background: #f7f3fb; box-shadow: 0 15px 30px rgba(0,0,0,.2); transform: rotate(-7deg) translateX(-20px); transition: transform .4s ease; }
.shop-card.small-card { transform: rotate(8deg) translate(45px, 10px); background: #fff; }
.project-card:hover .shop-card { transform: rotate(-3deg) translateX(-25px) translateY(-3px); }
.project-card:hover .shop-card.small-card { transform: rotate(4deg) translate(51px, 5px); }
.shop-image { height: 65px; border-radius: 4px; background: linear-gradient(135deg, #f1c9b7, #b4c5d9); }
.small-card .shop-image { background: linear-gradient(135deg, #b3d9ce, #d8b6db); }
.shop-line { width: 65%; height: 5px; margin-top: 7px; border-radius: 4px; background: #d5d8e3; }
.shop-line.wide { width: 90%; }
.shop-button { width: 45%; height: 8px; margin-top: 8px; border-radius: 4px; background: #5367a9; }
.admin-panel { position: relative; z-index: 1; width: 72%; padding: 13px; border: 1px solid rgba(255,255,255,.18); border-radius: 8px; background: #f3f7fb; box-shadow: 0 12px 30px rgba(0,0,0,.2); transform: rotate(3deg); transition: transform .4s ease; }
.project-card:hover .admin-panel { transform: rotate(0) scale(1.04); }
.admin-head { width: 43%; height: 8px; margin-bottom: 12px; border-radius: 4px; background: #aab8cc; }
.admin-stat-row { display: flex; gap: 7px; }
.admin-stat-row i { height: 26px; flex: 1; border-radius: 4px; background: #d8e9e5; }
.admin-graph { height: 58px; display: flex; align-items: end; gap: 7px; margin-top: 10px; padding: 7px; border-radius: 4px; background: #e4eaf3; }
.admin-graph b { flex: 1; height: 40%; border-radius: 2px 2px 0 0; background: #6ebfae; }
.admin-graph b:nth-child(2n) { height: 70%; }
.admin-graph b:nth-child(3n) { height: 90%; }
.project-content { padding: 20px 19px 21px; }
.project-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 7px; color: var(--accent); font: 9px "DM Mono", monospace; }
.project-meta span:last-child { color: var(--muted-dark); }
.project-content h3 { margin: 13px 0 8px; font-size: 15px; letter-spacing: -.025em; }
.project-content p { min-height: 100px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.9; }
.project-links { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.project-link { color: #d5def0; font-size: 10px; font-weight: 800; transition: color .2s ease; }
.project-link:hover { color: var(--accent); }
.project-disclaimer { display: flex; align-items: baseline; gap: 9px; margin: 20px 0 0; color: var(--muted-dark); font-size: 10px; }
.project-disclaimer span { color: var(--accent); font-weight: 800; }
.process-section { border-block: 1px solid var(--line); background: rgba(255,255,255,.018); }
.process-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 90px; }
.process-grid h2 { font-size: clamp(32px, 4vw, 44px); }
.process-list > div { display: grid; grid-template-columns: 43px 1fr; gap: 17px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.process-list > div:first-child { padding-top: 0; }
.process-list > div > span { color: var(--accent); font: 11px "DM Mono", monospace; }
.process-list h3 { margin: 0; font-size: 13px; }
.process-list p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.contact-card { display: grid; grid-template-columns: 1fr .8fr; gap: 60px; padding: clamp(26px, 5vw, 55px); border: 1px solid rgba(133,240,207,.2); border-radius: 20px; background: radial-gradient(ellipse at 0 0, rgba(133,240,207,.07), transparent 48%), var(--panel); }
.contact-card .eyebrow { margin-bottom: 14px; }
.contact-card h2 { font-size: clamp(32px, 4vw, 44px); }
.contact-copy { max-width: 420px; margin: 18px 0 23px; color: var(--muted); font-size: 12px; }
.contact-details { display: grid; align-content: center; }
.contact-details > a, .contact-location { display: grid; gap: 3px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.contact-details > a:first-child { padding-top: 0; }
.contact-details span { color: var(--muted-dark); font-size: 10px; }
.contact-details strong { overflow-wrap: anywhere; color: #e0e8f8; font-size: 11px; font-weight: 700; transition: color .2s ease; }
.contact-details a:hover strong { color: var(--accent); }
.footer { padding: 25px 0 20px; border-top: 1px solid var(--line); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.footer-inner .brand { font-size: 16px; }
.footer-inner p, .footer-inner > a:last-child { color: var(--muted-dark); font-size: 10px; }
.footer-inner > a:last-child:hover { color: var(--accent); }
.footer-bottom { padding-top: 17px; color: #65718b; font-size: 9px; }
.back-to-top { position: fixed; right: 22px; bottom: 22px; z-index: 10; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; background: #17223a; color: var(--accent); opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity .2s ease, transform .2s ease; cursor: pointer; }
.back-to-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); transition-delay: var(--reveal-delay, 0ms); }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr .9fr; gap: 30px; }
  .skills-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .projects-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-card:last-child { grid-column: 1 / -1; display: grid; grid-template-columns: .9fr 1.1fr; }
  .project-card:last-child .project-art { height: 100%; min-height: 220px; }
  .process-grid { gap: 45px; }
}
@media (max-width: 720px) {
  .container { width: min(var(--content), calc(100% - 36px)); }
  .section { padding-block: 76px; }
  .nav { min-height: 68px; }
  .menu-toggle { width: 42px; height: 42px; display: grid; align-content: center; justify-items: center; gap: 5px; border: 1px solid var(--line); border-radius: 10px; background: transparent; cursor: pointer; }
  .menu-toggle span { width: 17px; height: 1.5px; border-radius: 2px; background: var(--text); transition: transform .2s ease, opacity .2s ease; }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(6.5px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-6.5px) rotate(-45deg); }
  .nav-links { position: absolute; top: calc(100% + 1px); left: 0; right: 0; display: none; align-items: stretch; gap: 0; padding: 10px 18px 18px; border-bottom: 1px solid var(--line); background: rgba(11,16,32,.98); }
  .nav-links.open { display: flex; flex-direction: column; }
  .nav-links > a:not(.nav-cta) { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .nav-cta { justify-content: center; margin-top: 13px; }
  .hero { min-height: 0; grid-template-columns: 1fr; gap: 38px; padding-top: 69px; padding-bottom: 65px; }
  h1 { font-size: clamp(47px, 12vw, 68px); }
  .hero-visual { width: min(100%, 530px); margin: 0 auto; padding: 18px 5px 24px; }
  .code-card { transform: none; }
  .chip-a { right: -2px; }
  .chip-b { left: -2px; }
  .tech-strip { justify-content: flex-start; gap: 15px 23px; padding-block: 19px; }
  .strip-label { width: 100%; }
  .about-grid { grid-template-columns: 1fr; gap: 35px; }
  .profile-wrap { width: min(100%, 360px); margin-inline: auto; }
  .profile-frame { aspect-ratio: 4 / 4.1; }
  .about-detail { max-width: 620px; }
  .projects-grid { grid-template-columns: 1fr; }
  .project-card:last-child { display: block; grid-column: auto; }
  .project-card:last-child .project-art { height: 200px; min-height: 0; }
  .project-content p { min-height: 0; }
  .process-grid { grid-template-columns: 1fr; gap: 35px; }
  .contact-card { grid-template-columns: 1fr; gap: 35px; }
}
@media (max-width: 420px) {
  .container { width: calc(100% - 30px); }
  .quick-facts { gap: 16px; }
  .quick-facts div { min-width: calc(50% - 10px); }
  .floating-chip { padding: 8px 10px; font-size: 9px; }
  pre { padding: 20px 14px; font-size: 10px; }
  .skills-grid { grid-template-columns: 1fr; }
  .skill-card { padding: 21px; }
  .footer-inner { align-items: flex-start; flex-wrap: wrap; }
  .footer-inner p { order: 3; width: 100%; margin: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
