:root {
  --ink: #07111e;
  --ink-2: #0e1c2d;
  --panel: #13243a;
  --paper: #f3f1eb;
  --white: #fff;
  --muted: #9aabba;
  --muted-dark: #607083;
  --line: rgba(255,255,255,.13);
  --line-dark: rgba(7,17,30,.14);
  --acid: #d6ff3f;
  --blue: #7ca9ff;
  --danger: #ff716b;
  --success: #7fe19d;
  --radius: 18px;
  --shadow: 0 24px 70px rgba(0,0,0,.22);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Inter, "Segoe UI", Arial, sans-serif; line-height: 1.6; -webkit-font-smoothing: antialiased; }
body.nav-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.05; letter-spacing: -.04em; }
.container { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.container-narrow { width: min(820px, calc(100% - 48px)); margin-inline: auto; }
.section { padding: 112px 0; position: relative; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.skip-link { position: fixed; top: -80px; left: 16px; z-index: 1000; padding: 12px 18px; color: var(--ink); background: var(--acid); }
.skip-link:focus { top: 16px; }
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.22,1,.36,1); }
.reveal.visible { opacity: 1; transform: none; }
.eyebrow, .kicker { font-size: .72rem; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; }
.eyebrow > span { width: 28px; height: 2px; background: var(--acid); }
.section-index { display: block; color: var(--muted-dark); font: 700 .8rem/1 monospace; margin-bottom: 16px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 16px; min-height: 52px; padding: 0 24px; border: 1px solid transparent; border-radius: 100px; font-size: .77rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; transition: transform .25s ease, background .25s ease, color .25s ease, border-color .25s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: var(--ink); background: var(--acid); }
.button-primary:hover { background: #e1ff77; }
.button-ghost { color: inherit; background: transparent; border-color: currentColor; }
.button-ghost:hover { color: var(--ink); background: var(--acid); border-color: var(--acid); }
.button-light { color: var(--ink); background: var(--white); }
.button-small { min-height: 42px; padding: 0 18px; }
.button-wide { width: 100%; }
.text-link { display: inline-flex; align-items: center; gap: 28px; padding-bottom: 4px; border-bottom: 1px solid currentColor; font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.text-link span { transition: transform .2s; }
.text-link:hover span { transform: translate(3px,-3px); }

/* Header */
.site-header { position: fixed; inset: 0 0 auto; z-index: 100; color: var(--white); border-bottom: 1px solid transparent; transition: background .3s, border-color .3s, backdrop-filter .3s; }
.site-header.scrolled, .static-header { background: rgba(7,17,30,.92); border-color: rgba(255,255,255,.1); backdrop-filter: blur(16px); }
.nav-shell { height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 26px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; flex: 0 0 auto; color: var(--ink); background: var(--acid); border-radius: 50%; font-size: .8rem; letter-spacing: -.02em; }
.brand-copy { display: grid; line-height: 1.1; }
.brand-copy small { margin-top: 5px; color: var(--muted); font-size: .55rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav a { position: relative; color: #c5d0db; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.main-nav a::after { content: ""; position: absolute; right: 0; bottom: -8px; left: 0; height: 2px; background: var(--acid); transform: scaleX(0); transition: transform .25s; }
.main-nav a:hover, .main-nav a.active { color: var(--white); }
.main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1); }
.owner-link { display: inline-flex; align-items: center; gap: 9px; min-height: 40px; padding: 0 16px; border: 1px solid rgba(255,255,255,.45); border-radius: 100px; font-size: .65rem; font-weight: 800; letter-spacing: .13em; }
.owner-link:hover { color: var(--ink); background: var(--acid); border-color: var(--acid); }
.status-dot { width: 7px; height: 7px; background: var(--acid); border-radius: 50%; box-shadow: 0 0 0 5px rgba(214,255,63,.12); }
.nav-toggle { display: none; padding: 8px; color: inherit; background: none; border: 0; }
.nav-toggle > span:not(.sr-only) { display: block; width: 24px; height: 2px; margin: 5px; background: currentColor; }

/* Home hero */
.hero { min-height: 900px; padding-top: 175px; overflow: hidden; color: var(--white); background: var(--ink); }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.027) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.027) 1px, transparent 1px); background-size: 64px 64px; mask-image: linear-gradient(to bottom, #000 45%, transparent); }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 80px; }
.hero-copy h1 { max-width: 760px; margin: 24px 0 26px; font-size: clamp(3.5rem, 6.3vw, 6.7rem); font-weight: 750; letter-spacing: -.065em; }
.hero-copy h1 span { color: var(--acid); font-style: italic; font-weight: 500; }
.hero-intro { max-width: 650px; color: #b8c6d3; font-size: 1.08rem; }
.hero-intro strong { color: var(--white); }
.hero-actions { display: flex; align-items: center; gap: 34px; margin-top: 36px; }
.hero-status { display: flex; align-items: center; gap: 12px; margin-top: 46px; color: #9fb0c0; font-size: .75rem; letter-spacing: .04em; }
.pulse { width: 9px; height: 9px; background: var(--success); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 9px rgba(127,225,157,0); } 0%,100% { box-shadow: 0 0 0 0 rgba(127,225,157,.35); } }
.hero-visual { position: relative; }
.profile-frame { position: relative; width: min(100%, 440px); margin-left: auto; }
.profile-frame::before { content: ""; position: absolute; inset: -20px 22px 22px -20px; border: 1px solid rgba(214,255,63,.35); border-radius: 44% 44% 12px 12px; }
.profile-frame > img { position: relative; width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 44% 44% 12px 12px; filter: saturate(.78); }
.profile-badge { position: absolute; right: -34px; bottom: 54px; width: 122px; height: 122px; display: grid; place-content: center; color: var(--ink); background: var(--acid); border-radius: 50%; text-align: center; animation: float 5s ease-in-out infinite; }
.profile-badge strong { font-size: 2.1rem; line-height: 1; }
.profile-badge span { margin-top: 5px; font-size: .58rem; font-weight: 800; line-height: 1.2; letter-spacing: .08em; text-transform: uppercase; }
.floating-chip { position: absolute; padding: 10px 14px; color: var(--white); background: rgba(16,34,54,.86); border: 1px solid rgba(255,255,255,.2); border-radius: 100px; backdrop-filter: blur(10px); font-size: .67rem; font-weight: 700; animation: float 5.5s ease-in-out infinite; }
.chip-one { top: 21%; left: -48px; }
.chip-two { top: 43%; right: -50px; animation-delay: -2s; }
@keyframes float { 50% { transform: translateY(-10px); } }
.hero-orbit { position: absolute; border: 1px solid rgba(124,169,255,.17); border-radius: 50%; }
.orbit-one { top: -340px; right: -250px; width: 820px; height: 820px; }
.orbit-two { top: -230px; right: -120px; width: 550px; height: 550px; }
.hero-metrics { position: relative; display: grid; grid-template-columns: repeat(3, 1fr) 1.25fr; gap: 0; margin-top: 90px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.hero-metrics > div { min-height: 125px; display: grid; align-content: center; padding: 22px 32px; border-right: 1px solid var(--line); }
.hero-metrics > div:first-child { padding-left: 0; }
.hero-metrics > div:last-child { border: 0; }
.hero-metrics strong { font-size: 2.25rem; line-height: 1; }
.hero-metrics span { margin-top: 9px; color: var(--muted); font-size: .68rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.hero-metrics .metric-note { grid-template-columns: auto 1fr; gap: 22px; align-items: center; }
.hero-metrics .metric-note span { writing-mode: vertical-rl; }
.hero-metrics .metric-note strong { color: var(--acid); font-size: 1rem; line-height: 1.4; letter-spacing: .02em; }

/* Sections */
.intro-band { color: var(--white); background: var(--panel); }
.split-heading, .section-heading { display: grid; grid-template-columns: .6fr 1.4fr; gap: 70px; }
.split-heading h2, .section-heading h2 { max-width: 850px; margin: 0 0 28px; font-size: clamp(2.2rem, 4.4vw, 4.5rem); }
.split-heading p:not(.kicker) { max-width: 720px; color: #b8c4d0; font-size: 1.08rem; }
.portfolio-section { background: #e8e5dd; }
.section-heading { margin-bottom: 58px; }
.section-heading h2 { margin: 0; }
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.project-card { overflow: hidden; background: var(--white); border-radius: var(--radius); }
.project-media { position: relative; overflow: hidden; transition: transform .18s ease; transform-style: preserve-3d; }
.project-media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .6s cubic-bezier(.22,1,.36,1); }
.project-card:hover img { transform: scale(1.045); }
.project-number { position: absolute; top: 16px; right: 16px; width: 42px; height: 42px; display: grid; place-items: center; color: var(--ink); background: var(--acid); border-radius: 50%; font: 700 .7rem monospace; }
.project-body { padding: 28px; }
.project-body > span:first-child { color: var(--muted-dark); font-size: .64rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.project-body h3 { margin: 12px 0 12px; font-size: 1.55rem; }
.project-body p { color: var(--muted-dark); font-size: .9rem; }
.project-soon { display: inline-block; margin-top: 8px; padding: 7px 12px; color: var(--muted-dark); background: #f0eee8; border-radius: 100px; font-size: .62rem !important; }
.expertise-section { color: var(--white); background: var(--ink); }
.expertise-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 100px; }
.expertise-grid h2 { max-width: 500px; font-size: clamp(2.2rem, 4.2vw, 4.3rem); }
.skill-row { padding: 20px 0; border-bottom: 1px solid var(--line); }
.skill-row > div:first-child { display: flex; justify-content: space-between; margin-bottom: 13px; }
.skill-row span { font-weight: 700; }
.skill-row small { color: var(--acid); font-family: monospace; }
.skill-track { height: 4px; overflow: hidden; background: rgba(255,255,255,.1); }
.skill-track span { display: block; width: var(--level); height: 100%; background: linear-gradient(90deg, var(--acid), var(--blue)); transform: scaleX(0); transform-origin: left; transition: transform 1.2s cubic-bezier(.22,1,.36,1) .2s; }
.visible .skill-track span { transform: scaleX(1); }
.career-preview { background: var(--paper); }
.career-line { margin-bottom: 42px; border-top: 1px solid var(--line-dark); }
.career-item { display: grid; grid-template-columns: .45fr 1.4fr auto; align-items: center; gap: 35px; padding: 31px 0; border-bottom: 1px solid var(--line-dark); transition: padding .25s, color .25s; }
.career-item:hover { padding-inline: 20px; color: #25487b; }
.career-item > span { color: var(--muted-dark); font: 700 .7rem monospace; text-transform: uppercase; }
.career-item h3 { margin: 0 0 8px; font-size: 1.65rem; }
.career-item p { margin: 0; color: var(--muted-dark); }
.career-item b { color: #b7b7b1; font: 700 1.1rem monospace; }
.game-section { color: var(--white); background: var(--panel); overflow: hidden; }
.game-grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: 80px; align-items: center; }
.game-grid h2 { margin: 15px 0 24px; font-size: clamp(2.3rem, 4.4vw, 4.6rem); }
.game-grid > div:first-child > p:not(.kicker) { color: #b8c4d0; }
.game-controls { display: flex; gap: 12px; margin-top: 32px; }
.game-shell { padding: 18px; background: #091525; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); }
.game-hud { display: flex; justify-content: space-between; padding: 5px 10px 16px; color: var(--muted); font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.game-hud strong { color: var(--acid); }
.game-field { position: relative; height: 390px; overflow: hidden; touch-action: none; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 32px 32px; border: 1px solid var(--line); border-radius: 14px; }
.game-field::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 -90px 100px rgba(124,169,255,.08); }
.game-message { position: absolute; inset: 0; z-index: 3; display: grid; place-content: center; text-align: center; background: rgba(7,17,30,.72); backdrop-filter: blur(4px); }
.game-message[hidden] { display: none; }
.game-message strong { font-size: 2rem; }
.game-message span { color: var(--muted); }
.catcher { position: absolute; bottom: 14px; left: 50%; z-index: 2; width: 76px; height: 38px; display: grid; place-items: center; color: var(--ink); background: var(--acid); border-radius: 9px 9px 22px 22px; font-weight: 900; transform: translateX(-50%); transition: left .08s linear; }
.falling-skill { position: absolute; top: 0; width: 54px; height: 54px; display: grid; place-items: center; color: var(--ink); background: var(--acid); border-radius: 14px; font-size: .68rem; font-weight: 900; box-shadow: 0 7px 20px rgba(214,255,63,.22); }
.falling-skill.danger { color: var(--white); background: var(--danger); box-shadow: 0 7px 20px rgba(255,113,107,.25); }
.falling-skill.caught { opacity: 0; scale: 1.5; }
.game-help { margin: 12px 0 0; color: var(--muted); text-align: center; font-size: .7rem; }
.contact-cta { overflow: hidden; color: var(--white); background: #31517a; }
.contact-cta::after { content: "AC"; position: absolute; right: -20px; bottom: -170px; color: rgba(255,255,255,.055); font-size: 32rem; font-weight: 900; line-height: 1; pointer-events: none; }
.contact-cta h2 { margin: 18px 0 40px; font-size: clamp(3rem, 7vw, 7rem); }
.contact-cta h2 em { color: var(--acid); font-weight: 500; }

/* Inner pages */
.page-hero { padding-top: 190px; color: var(--white); background: var(--ink); }
.page-hero-grid { display: grid; grid-template-columns: 1.35fr .65fr; align-items: end; gap: 70px; }
.page-hero h1 { margin: 25px 0 0; font-size: clamp(3.4rem, 7vw, 7.4rem); }
.page-hero h1 em { color: var(--acid); font-weight: 450; }
.page-hero-grid > p { color: #b8c4d0; font-size: 1.05rem; }
.about-grid { display: grid; grid-template-columns: .7fr 1.3fr; gap: 100px; align-items: center; }
.about-portrait { position: relative; }
.about-portrait img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 210px 210px 16px 16px; }
.about-portrait > span { position: absolute; right: -40px; bottom: 30px; width: 130px; height: 130px; display: grid; place-items: center; color: var(--ink); background: var(--acid); border-radius: 50%; text-align: center; font-size: .68rem; font-weight: 800; line-height: 1.35; text-transform: uppercase; }
.about-copy h2, .two-columns h2 { margin: 15px 0 28px; font-size: clamp(2.4rem, 4.4vw, 4.7rem); }
.about-copy > p:not(.kicker) { color: var(--muted-dark); font-size: 1.04rem; }
.about-copy blockquote { margin: 38px 0 0; padding: 26px 30px; color: var(--ink); background: var(--white); border-left: 5px solid var(--acid); font-size: 1.1rem; font-weight: 700; }
.education-section { color: var(--white); background: var(--panel); }
.two-columns { display: grid; grid-template-columns: .85fr 1.15fr; gap: 90px; }
.stack-cards { display: grid; gap: 18px; }
.info-card { padding: 36px; border: 1px solid var(--line); border-radius: var(--radius); }
.info-card span { color: var(--acid); font: 700 .72rem monospace; }
.info-card h3 { margin: 18px 0 8px; font-size: 1.7rem; }
.info-card p { margin: 0; color: var(--muted); }
.certificate-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.certificate-card { min-height: 220px; padding: 30px; background: var(--white); border-top: 4px solid var(--ink); }
.certificate-card b { color: var(--muted-dark); font: 700 .7rem monospace; }
.certificate-card h3 { margin: 48px 0 14px; font-size: 1.3rem; }
.certificate-card p { margin: 0; color: var(--muted-dark); font-size: .86rem; }
.experience-section { background: #e8e5dd; }
.experience-layout { display: grid; grid-template-columns: .42fr 1fr; gap: 70px; }
.experience-aside { position: sticky; top: 130px; align-self: start; }
.experience-aside h2 { font-size: 2.8rem; }
.experience-aside > p:last-child { color: var(--muted-dark); }
.experience-list { display: grid; gap: 24px; }
.experience-card { display: grid; grid-template-columns: auto 1fr; gap: 32px; padding: 42px; background: var(--white); border-radius: var(--radius); }
.experience-number { color: #a7adb3; font: 700 .9rem monospace; }
.experience-main > span { color: #31517a; font: 700 .72rem monospace; text-transform: uppercase; }
.experience-main h2 { margin: 16px 0 8px; font-size: 2.15rem; }
.experience-main h3 { color: var(--muted-dark); font-size: 1rem; letter-spacing: 0; }
.experience-main > p { font-size: 1.03rem; }
.experience-main ul { margin: 24px 0 0; padding: 22px 0 0 20px; color: var(--muted-dark); border-top: 1px solid var(--line-dark); }
.contact-section { background: #e8e5dd; }
.contact-layout { display: grid; grid-template-columns: .72fr 1.28fr; gap: 80px; }
.contact-info { display: grid; align-content: start; }
.contact-info > a, .contact-info > div { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 24px 0; border-bottom: 1px solid var(--line-dark); }
.contact-info small { grid-column: 1/-1; color: var(--muted-dark); font-size: .67rem; letter-spacing: .1em; text-transform: uppercase; }
.contact-info strong { word-break: break-word; }
.contact-info a span { transition: transform .2s; }
.contact-info a:hover span { transform: translate(4px,-4px); }
.contact-note { margin-top: 28px; color: var(--muted-dark); font-size: .8rem; }
.contact-form-wrap { padding: 42px; background: var(--white); border-radius: var(--radius); }
.contact-form, .login-form { display: grid; gap: 22px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
label { display: grid; gap: 8px; }
label > span { font-size: .69rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
input, textarea { width: 100%; padding: 14px 0; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid #bfc4c8; border-radius: 0; outline: none; }
input:focus, textarea:focus { border-color: #31517a; box-shadow: 0 1px 0 #31517a; }
textarea { resize: vertical; }
.honeypot { position: absolute; left: -9999px; }
.alert { margin-bottom: 24px; padding: 16px 18px; border-radius: 10px; font-size: .86rem; }
.alert ul { margin-bottom: 0; }
.alert-error { color: #802b29; background: #ffe6e4; border: 1px solid #ffc8c4; }
.alert-success { color: #175d31; background: #e0f8e8; border: 1px solid #b9edca; }
.articles-section { min-height: 480px; }
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.article-card { overflow: hidden; background: var(--white); border-radius: var(--radius); }
.article-card__image { position: relative; overflow: hidden; display: block; }
.article-card__image img { width: 100%; aspect-ratio: 16/10; object-fit: cover; transition: transform .5s; }
.article-card:hover .article-card__image img { transform: scale(1.04); }
.article-card__image span { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; display: grid; place-items: center; color: var(--ink); background: var(--acid); border-radius: 50%; font: 700 .7rem monospace; }
.article-card__body { padding: 28px; }
.article-meta { display: flex; gap: 16px; color: var(--muted-dark); font-size: .63rem; font-weight: 700; text-transform: uppercase; }
.article-card h2 { margin: 15px 0; font-size: 1.6rem; }
.article-card p { color: var(--muted-dark); font-size: .9rem; }
.empty-state { padding: 80px 20px; text-align: center; }
.empty-state > span { width: 68px; height: 68px; display: grid; place-items: center; margin: 0 auto 24px; color: var(--ink); background: var(--acid); border-radius: 50%; font-size: 1.5rem; }
.empty-state h2 { font-size: 2.1rem; }
.empty-state p { color: var(--muted-dark); }
.article-full { padding-top: 170px; padding-bottom: 110px; }
.article-full h1 { margin: 30px 0 24px; font-size: clamp(3rem, 7vw, 5.8rem); }
.article-full__meta { display: flex; gap: 20px; color: var(--muted-dark); font-size: .68rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.article-lead { color: var(--muted-dark); font-size: 1.24rem; }
.article-cover { width: 100%; margin: 48px 0; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--radius); }
.article-content { font-family: Georgia, serif; font-size: 1.08rem; line-height: 1.85; }
.article-content h2, .article-content h3 { margin-top: 2.2em; font-family: Inter, "Segoe UI", sans-serif; }
.article-content h2 { font-size: 2.15rem; }
.article-content h3 { font-size: 1.6rem; }
.article-content img { max-width: 100%; height: auto; margin: 30px auto; border-radius: 12px; }
.article-content blockquote { margin: 34px 0; padding: 22px 28px; background: var(--white); border-left: 5px solid var(--acid); font-size: 1.2rem; }
.article-content a { color: #275b9b; text-decoration: underline; }
.article-content pre { overflow-x: auto; padding: 22px; color: #dbe6ef; background: var(--ink); border-radius: 12px; }
.article-content table { width: 100%; margin: 28px 0; border-collapse: collapse; }
.article-content th, .article-content td { padding: 12px 14px; border: 1px solid var(--line-dark); text-align: left; }
.article-content th { background: var(--white); }
.article-cta { margin: 38px 0; padding: 28px; background: var(--panel); border-radius: 14px; color: #eaf1f7; }
.article-cta p { margin: 8px 0 20px; color: #c4d0da; }
.article-content .article-cta__button, .rich-editor .article-cta__button { display: inline-flex; min-height: 42px; align-items: center; padding: 0 18px; color: var(--ink); background: var(--acid); border-radius: 7px; font-size: .76rem; font-weight: 850; text-decoration: none; }
.article-end { display: flex; align-items: center; justify-content: space-between; margin-top: 70px; padding-top: 28px; border-top: 1px solid var(--line-dark); }

/* Login */
.login-section { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; padding: 0; background: var(--paper); }
.login-panel { width: min(520px, calc(100% - 60px)); margin: auto; padding: 130px 0 70px; }
.login-back { display: inline-block; margin-bottom: 60px; color: var(--muted-dark); font-size: .75rem; font-weight: 700; }
.login-icon { display: flex; align-items: center; gap: 12px; font-size: .7rem; font-weight: 800; letter-spacing: .12em; }
.login-panel h1 { margin: 20px 0 14px; font-size: clamp(2.7rem, 5vw, 4.5rem); }
.login-panel > p { margin-bottom: 34px; color: var(--muted-dark); }
.password-field { position: relative; }
.password-field button { position: absolute; top: 50%; right: 0; padding: 5px; background: none; border: 0; transform: translateY(-50%); cursor: pointer; font-size: .7rem; font-weight: 800; }
.login-panel > small { display: block; margin-top: 26px; color: var(--muted-dark); }
.login-art { position: relative; overflow: hidden; display: grid; place-content: center; color: var(--white); background: var(--ink); }
.login-grid-art { position: absolute; inset: 0; opacity: .5; background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px); background-size: 52px 52px; }
.login-art > span { position: relative; width: 210px; height: 210px; display: grid; place-items: center; color: var(--ink); background: var(--acid); border-radius: 50%; font-size: 5rem; font-weight: 900; box-shadow: 0 0 0 45px rgba(214,255,63,.05), 0 0 0 90px rgba(214,255,63,.03); }
.login-art p { position: relative; margin: 45px 0 0; color: var(--blue); font-size: 1.4rem; font-weight: 900; line-height: 1.05; letter-spacing: .08em; }

/* Admin */
.admin-page { background: #eef0f2; }
.admin-shell { min-height: 100vh; display: grid; grid-template-columns: 260px 1fr; }
.admin-sidebar { position: fixed; inset: 0 auto 0 0; z-index: 60; width: 260px; display: flex; flex-direction: column; padding: 28px 22px; color: var(--white); background: var(--ink); }
.admin-sidebar nav { display: grid; gap: 8px; margin-top: 55px; }
.admin-sidebar nav a, .admin-logout button { display: flex; align-items: center; gap: 13px; min-height: 46px; padding: 0 14px; color: #aebdcc; background: transparent; border: 0; border-radius: 9px; cursor: pointer; font-size: .8rem; font-weight: 700; }
.admin-sidebar nav a span, .admin-logout span { width: 18px; text-align: center; }
.admin-sidebar nav a:hover, .admin-sidebar nav a.active { color: var(--ink); background: var(--acid); }
.admin-logout { margin-top: auto; }
.admin-logout button { width: 100%; }
.admin-main { grid-column: 2; min-width: 0; }
.admin-topbar { height: 100px; display: flex; align-items: center; justify-content: space-between; padding: 0 42px; background: var(--white); border-bottom: 1px solid #dce0e3; }
.admin-topbar > div:first-of-type small { color: var(--muted-dark); font-size: .6rem; font-weight: 800; letter-spacing: .12em; }
.admin-topbar h1 { margin: 2px 0 0; font-size: 1.65rem; }
.admin-user { display: flex; align-items: center; gap: 11px; }
.admin-user > span { width: 42px; height: 42px; display: grid; place-items: center; color: var(--ink); background: var(--acid); border-radius: 50%; font-weight: 900; }
.admin-user > div { display: grid; line-height: 1.25; }
.admin-user small { color: var(--muted-dark); font-size: .68rem; }
.admin-menu { display: none; }
.admin-content { padding: 38px 42px 60px; }
.admin-welcome { display: flex; align-items: center; justify-content: space-between; margin-bottom: 30px; padding: 34px 38px; color: var(--white); background: #31517a; border-radius: var(--radius); }
.admin-welcome p { margin: 0 0 8px; color: #bed0e2; }
.admin-welcome h2 { margin: 0; font-size: 2rem; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 26px; }
.stat-grid article { display: grid; padding: 25px; background: var(--white); border: 1px solid #e1e4e7; border-radius: 14px; }
.stat-grid span { color: var(--muted-dark); font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.stat-grid strong { margin: 16px 0 9px; font-size: 2.8rem; line-height: 1; }
.stat-grid small { color: var(--muted-dark); }
.admin-columns { display: grid; grid-template-columns: 1.1fr .9fr; gap: 22px; }
.admin-card { background: var(--white); border: 1px solid #e0e3e5; border-radius: 14px; }
.admin-card__head { min-height: 78px; display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; border-bottom: 1px solid #e8eaec; }
.admin-card__head small { color: var(--muted-dark); font-size: .59rem; font-weight: 800; letter-spacing: .12em; }
.admin-card__head h2 { margin: 3px 0 0; font-size: 1.25rem; }
.admin-card__head > a, .admin-card__head > span { color: #31517a; font-size: .72rem; font-weight: 700; }
.admin-list > a { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; min-height: 76px; padding: 14px 24px; border-bottom: 1px solid #eef0f1; }
.admin-list > a:last-child { border: 0; }
.admin-list > a:hover { background: #f8f9fa; }
.admin-list > a > div { display: grid; }
.admin-list small { color: var(--muted-dark); }
.admin-empty { padding: 38px 24px; color: var(--muted-dark); text-align: center; }
.admin-empty.large { min-height: 300px; display: grid; place-content: center; gap: 8px; }
.admin-empty.large strong { color: var(--ink); font-size: 1.4rem; }
.status-badge { display: inline-flex; width: fit-content; padding: 5px 9px; border-radius: 100px; font-size: .59rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.status-badge.published { color: #176132; background: #dcf6e4; }
.status-badge.draft { color: #775311; background: #fff2ca; }
.message-dot { width: 9px; height: 9px; background: #b8c0c7; border-radius: 50%; }
.message-dot.unread { background: #4c82d0; box-shadow: 0 0 0 4px #e0ebf9; }
.admin-toolbar { display: flex; justify-content: space-between; margin-bottom: 22px; }
.filter-tabs { display: flex; gap: 8px; padding: 5px; background: var(--white); border-radius: 100px; }
.filter-tabs a { padding: 8px 16px; border-radius: 100px; font-size: .72rem; font-weight: 700; }
.filter-tabs a.active { color: var(--white); background: var(--ink); }
.table-card { overflow: hidden; }
.admin-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: .79rem; }
.admin-table th { padding: 15px 20px; color: var(--muted-dark); background: #f7f8f9; text-align: left; font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; }
.admin-table td { padding: 17px 20px; border-top: 1px solid #eceeef; }
.table-title { min-width: 270px; display: flex; align-items: center; gap: 13px; }
.table-title img { width: 58px; height: 42px; object-fit: cover; border-radius: 6px; }
.table-title div { display: grid; }
.table-title small { color: var(--muted-dark); }
.table-actions { display: flex; align-items: center; gap: 12px; }
.table-actions a, .table-actions button { padding: 0; color: #31517a; background: none; border: 0; cursor: pointer; font-size: .72rem; font-weight: 700; }
.table-actions button { color: #a73a37; }
.editor-topline { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.editor-topline > a { color: var(--muted-dark); font-size: .76rem; font-weight: 700; }
.editor-topline > div { display: flex; gap: 10px; }
.editor-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 22px; }
.editor-main { padding: 32px; }
.editor-form label { margin-bottom: 28px; }
.title-input input { padding: 15px 0; font-size: 2rem; font-weight: 750; letter-spacing: -.03em; }
.rich-editor-wrap > span { display: block; margin-bottom: 8px; font-size: .69rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.editor-toolbar { display: flex; flex-wrap: wrap; gap: 4px; padding: 9px; background: #f1f3f4; border: 1px solid #d9dee2; border-bottom: 0; border-radius: 9px 9px 0 0; }
.editor-toolbar button { min-width: 34px; height: 32px; padding: 0 8px; background: var(--white); border: 1px solid #d9dee2; border-radius: 5px; cursor: pointer; font-size: .72rem; }
.editor-toolbar button:hover { background: var(--acid); }
.editor-toolbar button:disabled { opacity: .45; cursor: not-allowed; }
.editor-toolbar i { width: 1px; margin: 4px 3px; background: #c7cdd1; }
.editor-source { padding: 18px; border: 1px solid #cbd1d6; }
.editor-source.enhanced { display: none; width: 100%; min-height: 500px; resize: vertical; font-family: Consolas, Monaco, monospace; line-height: 1.6; }
.editor-source.enhanced.source-mode { display: block; border-radius: 0 0 9px 9px; }
.rich-editor { min-height: 500px; padding: 28px; outline: none; border: 1px solid #cbd1d6; border-radius: 0 0 9px 9px; line-height: 1.75; }
.rich-editor[hidden] { display: none; }
.rich-editor:focus { border-color: #31517a; box-shadow: inset 0 0 0 1px #31517a; }
.rich-editor img { max-width: 100%; height: auto; }
.rich-editor .article-cta { margin: 24px 0; padding: 22px; background: var(--panel); border-radius: 12px; color: #eaf1f7; }
.editor-status { display: flex; justify-content: space-between; gap: 14px; padding-top: 8px; color: var(--muted-dark); font-size: .67rem; }
.editor-settings { display: grid; align-content: start; gap: 18px; }
.editor-settings .admin-card { padding: 22px; }
.editor-settings h3 { margin-bottom: 22px; font-size: 1rem; letter-spacing: -.01em; }
.editor-settings label { margin-bottom: 18px; }
.editor-settings small { color: var(--muted-dark); }
.publish-state { display: flex; align-items: center; justify-content: space-between; padding-top: 16px; border-top: 1px solid #e2e5e7; font-size: .75rem; }
.cover-preview { overflow: hidden; margin-bottom: 16px; border-radius: 9px; }
.cover-preview img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.file-input input { padding: 10px 0; font-size: .72rem; }
.check-label { display: flex; grid-template-columns: auto 1fr; align-items: center; gap: 8px; font-size: .72rem; }
.check-label input { width: auto; }
.editor-tip { color: #d5e1ec; background: var(--panel); }
.editor-tip > span { color: var(--acid); font-size: .6rem; font-weight: 900; letter-spacing: .12em; }
.editor-tip p { margin: 10px 0 0; font-size: .8rem; }
.inbox-layout { display: grid; grid-template-columns: 360px 1fr; gap: 22px; }
.inbox-list { overflow: hidden; }
.inbox-item { display: grid; grid-template-columns: auto 1fr; gap: 12px; padding: 18px 22px; border-bottom: 1px solid #eceeef; }
.inbox-item:hover, .inbox-item.active { background: #f0f5fb; }
.inbox-item > div { display: grid; }
.inbox-item b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .76rem; }
.inbox-item small { color: var(--muted-dark); }
.message-reader { min-height: 520px; padding: 34px; }
.message-reader__head { display: flex; justify-content: space-between; padding-bottom: 24px; border-bottom: 1px solid #e3e6e8; }
.message-reader__head small { color: var(--muted-dark); }
.message-reader__head h2 { margin: 8px 0 0; font-size: 2rem; }
.sender { display: flex; flex-wrap: wrap; gap: 10px 20px; padding: 24px 0; color: var(--muted-dark); font-size: .8rem; }
.sender strong { color: var(--ink); }
.message-body { min-height: 180px; margin-bottom: 30px; padding: 25px; background: #f6f7f8; border-radius: 10px; }

/* Footer */
.site-footer { padding: 75px 0 24px; color: var(--white); background: var(--ink); }
.footer-grid { display: grid; grid-template-columns: 1.4fr .55fr 1fr; gap: 70px; }
.footer-brand { margin-bottom: 20px; }
.footer-grid > div:first-child p { max-width: 420px; color: var(--muted); }
.footer-links { display: grid; align-content: start; gap: 10px; color: var(--muted); font-size: .8rem; }
.footer-links strong { margin-bottom: 8px; color: var(--white); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; }
.footer-links a:hover { color: var(--acid); }
.footer-bottom { display: flex; justify-content: space-between; margin-top: 55px; padding-top: 22px; color: #728598; border-top: 1px solid var(--line); font-size: .68rem; }

@media (max-width: 1050px) {
  .main-nav { gap: 16px; }
  .main-nav a { font-size: .64rem; }
  .hero-grid { gap: 40px; }
  .profile-badge { right: 0; }
  .chip-two { right: -10px; }
  .portfolio-grid, .article-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-columns { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .container, .container-narrow { width: min(100% - 32px, 1180px); }
  .section { padding: 82px 0; }
  .site-header, .site-header.scrolled { backdrop-filter: none; }
  .nav-shell { height: 72px; }
  .brand-copy { display: none; }
  .nav-toggle { display: block; order: 3; }
  .owner-link { margin-left: auto; }
  .main-nav { position: fixed; inset: 72px 0 0; z-index: 95; display: grid; align-content: center; justify-items: center; gap: 28px; color: var(--white); background: rgba(7,17,30,.98); transform: translateX(100%); transition: transform .35s cubic-bezier(.22,1,.36,1); }
  .main-nav.open { transform: none; }
  .main-nav a { font-size: 1rem; }
  .hero { min-height: auto; padding-top: 130px; }
  .hero-grid, .about-grid, .expertise-grid, .game-grid, .contact-layout, .two-columns, .experience-layout, .page-hero-grid { grid-template-columns: 1fr; }
  .hero-copy h1 { font-size: clamp(3rem, 11vw, 5.4rem); }
  .hero-visual { max-width: 440px; margin: 40px auto 0; }
  .hero-metrics { grid-template-columns: repeat(2, 1fr); }
  .hero-metrics > div:nth-child(2) { border-right: 0; }
  .hero-metrics > div:first-child { padding-left: 22px; }
  .hero-metrics .metric-note { border-top: 1px solid var(--line); }
  .split-heading, .section-heading { grid-template-columns: 1fr; gap: 18px; }
  .portfolio-grid, .article-grid { grid-template-columns: 1fr 1fr; }
  .experience-aside { position: static; }
  .certificate-grid { grid-template-columns: repeat(2, 1fr); }
  .page-hero { padding-top: 145px; }
  .page-hero-grid { gap: 25px; }
  .login-section { grid-template-columns: 1fr; }
  .login-art { display: none; }
  .admin-shell { display: block; }
  .admin-sidebar { transform: translateX(-105%); transition: transform .3s; box-shadow: 20px 0 50px rgba(0,0,0,.25); }
  .admin-sidebar.open { transform: none; }
  .admin-main { grid-column: auto; }
  .admin-topbar { padding: 0 22px; }
  .admin-menu { display: block; padding: 8px; background: none; border: 0; font-size: 1.2rem; }
  .admin-content { padding: 26px 20px 50px; }
  .editor-layout, .inbox-layout { grid-template-columns: 1fr; }
  .editor-settings { grid-template-columns: repeat(2, 1fr); }
  .editor-tip { grid-column: 1/-1; }
}

@media (max-width: 560px) {
  .section { padding: 68px 0; }
  .owner-link { min-height: 36px; padding: 0 11px; font-size: .57rem; }
  .hero-copy h1 { font-size: 2.95rem; }
  .hero-actions, .game-controls { align-items: flex-start; flex-direction: column; }
  .profile-frame { width: calc(100% - 20px); }
  .floating-chip { display: none; }
  .hero-metrics { grid-template-columns: 1fr 1fr; margin-top: 55px; }
  .hero-metrics > div { min-height: 105px; padding: 18px; }
  .hero-metrics strong { font-size: 1.8rem; }
  .hero-metrics span { font-size: .57rem; }
  .portfolio-grid, .article-grid, .certificate-grid, .form-grid { grid-template-columns: 1fr; }
  .career-item { grid-template-columns: 1fr auto; gap: 10px; }
  .career-item > span { grid-column: 1/-1; }
  .career-item h3 { font-size: 1.3rem; }
  .game-field { height: 330px; }
  .contact-cta::after { font-size: 18rem; }
  .about-portrait > span { right: -5px; }
  .experience-card { grid-template-columns: 1fr; padding: 28px; }
  .contact-form-wrap { padding: 26px 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 35px; }
  .footer-bottom { align-items: flex-start; flex-direction: column; gap: 6px; }
  .article-full__meta { flex-wrap: wrap; }
  .article-end { align-items: flex-start; flex-direction: column; gap: 20px; }
  .admin-topbar { height: 80px; }
  .admin-user > div { display: none; }
  .admin-welcome { align-items: flex-start; flex-direction: column; gap: 25px; padding: 26px; }
  .stat-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat-grid article { padding: 18px; }
  .stat-grid strong { font-size: 2rem; }
  .admin-toolbar, .editor-topline { align-items: flex-start; flex-direction: column; gap: 16px; }
  .editor-topline > div { width: 100%; }
  .editor-topline .button { flex: 1; padding: 0 13px; font-size: .62rem; }
  .editor-main { padding: 22px 16px; }
  .title-input input { font-size: 1.5rem; }
  .rich-editor { min-height: 400px; padding: 18px; }
  .editor-settings { grid-template-columns: 1fr; }
  .editor-tip { grid-column: auto; }
  .message-reader { padding: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

