/* mir.contact — design system. Colours come only from the theme tokens set by
   js/themes.js (never hex in components). Structure borrowed from the MIR
   theme engine: grid backdrop, panels, corner brackets, glow accents. */
:root {
  --bg: #070b14; --panel: #0d1322; --fg: #e6ecff; --muted: #7f8bb3; --line: #1c2742; --grid: #0f1730; --accent: #5eead4; --accent2: #a78bfa;
  --font-display: 'Inter', system-ui, sans-serif; --font-body: 'Inter', system-ui, sans-serif; --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --radius: 14px; --radius-sm: 8px; --wrap: 1140px; --gutter: 20px;
  --nav-h: 64px;
  --ease: cubic-bezier(.2,.7,.2,1);
  color-scheme: dark;
}
:root[data-theme="light"] { color-scheme: light; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh;
  background: var(--bg); color: var(--fg);
  font-family: var(--font-body); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
:root[data-grid="on"] body {
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 32px 32px; background-attachment: fixed;
}
:root[data-theme="light"][data-grid="on"] body { background-image: linear-gradient(color-mix(in srgb, var(--grid) 70%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--grid) 70%, transparent) 1px, transparent 1px); }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
img, svg { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
::selection { background: color-mix(in srgb, var(--accent) 35%, transparent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; margin: 0; letter-spacing: -0.02em; font-weight: 700; }
:root[data-font="hud"] h1, :root[data-font="hud"] h2 { letter-spacing: 0.02em; text-transform: uppercase; }
:root[data-font="editorial"] h1, :root[data-font="editorial"] h2 { font-weight: 400; letter-spacing: -0.01em; }
:root[data-font="terminal"] h1, :root[data-font="terminal"] h2 { letter-spacing: -0.03em; }
p { margin: 0; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--font-mono); }
.grad { background: linear-gradient(90deg, var(--accent), var(--accent2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { font-family: var(--font-mono); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--accent); }
.lead { color: var(--muted); font-size: 18px; max-width: 58ch; }

/* ─── Buttons ───────────────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 999px; font-weight: 600; font-size: 15px; border: 1px solid transparent; cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s, background .2s, border-color .2s; white-space: nowrap; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--accent); color: var(--bg); box-shadow: 0 8px 24px -10px var(--accent); }
.btn-primary:hover { box-shadow: 0 12px 30px -10px var(--accent); }
.btn-ghost { background: color-mix(in srgb, var(--panel) 70%, transparent); color: var(--fg); border-color: var(--line); backdrop-filter: blur(8px); }
.btn-ghost:hover { border-color: var(--accent); }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn svg { width: 16px; height: 16px; }

/* ─── Nav ───────────────────────────────────────────────────────────────── */
.nav { position: fixed; inset: 0 0 auto 0; height: var(--nav-h); z-index: 50; display: flex; align-items: center; transition: background .3s, border-color .3s, backdrop-filter .3s; border-bottom: 1px solid transparent; }
.nav.scrolled { background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom-color: var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 18px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--fg); font-family: var(--font-display); font-weight: 700; letter-spacing: -0.01em; font-size: 17px; }
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 50%; background: radial-gradient(circle at 50% 50%, var(--accent), var(--accent2)); box-shadow: 0 0 0 1px var(--line), 0 0 18px -4px var(--accent); }
.brand b { color: var(--accent); font-weight: 700; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a { color: var(--muted); padding: 8px 12px; border-radius: 999px; font-size: 14px; font-weight: 500; transition: color .2s, background .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--fg); background: color-mix(in srgb, var(--fg) 7%, transparent); text-decoration: none; }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); background: color-mix(in srgb, var(--panel) 70%, transparent); color: var(--fg); cursor: pointer; transition: border-color .2s, transform .2s; }
.icon-btn:hover { border-color: var(--accent); transform: translateY(-1px); }
.icon-btn svg { width: 18px; height: 18px; }
.burger { display: none; }
@media (max-width: 860px) {
  .nav-links { display: none; position: fixed; top: var(--nav-h); left: 0; right: 0; flex-direction: column; padding: 10px var(--gutter) 18px; background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 10px; font-size: 16px; }
  .burger { display: inline-flex; }
  .nav .btn-hire { display: none; }
}

/* ─── Theme panel ───────────────────────────────────────────────────────── */
.theme-pop { position: fixed; top: calc(var(--nav-h) + 6px); right: var(--gutter); width: min(380px, calc(100vw - 2 * var(--gutter))); z-index: 60; background: color-mix(in srgb, var(--panel) 96%, transparent); backdrop-filter: blur(16px); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.6), 0 0 0 1px color-mix(in srgb, var(--accent) 12%, transparent); display: none; }
.theme-pop.open { display: block; animation: rise .25s var(--ease) both; }
.theme-pop h4 { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-family: var(--font-mono); font-weight: 500; margin: 0 0 10px; }
.theme-pop h4 + * { margin-bottom: 14px; }
.swatches { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.swatch { aspect-ratio: 1; border-radius: 10px; border: 2px solid transparent; cursor: pointer; padding: 0; position: relative; overflow: hidden; background: var(--sw-bg); transition: transform .15s, border-color .15s; }
.swatch:hover { transform: scale(1.06); }
.swatch.on { border-color: var(--fg); }
.swatch i { position: absolute; left: 22%; right: 22%; bottom: 20%; height: 18%; border-radius: 4px; background: var(--sw-accent); box-shadow: 0 0 10px var(--sw-accent); }
.swatch b { position: absolute; left: 22%; right: 50%; top: 20%; height: 12%; border-radius: 3px; background: var(--sw-accent2); }
.swatch u { position: absolute; left: 22%; right: 22%; top: 40%; height: 8%; border-radius: 3px; background: var(--sw-fg); opacity: .7; }
.seg { display: flex; gap: 6px; flex-wrap: wrap; }
.seg button { flex: 1 1 auto; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line); background: transparent; color: var(--muted); font-size: 13px; cursor: pointer; }
.seg button.on { color: var(--fg); border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.theme-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--muted); }
.theme-row .seg { flex: 0 0 auto; }
.theme-pop .link { background: none; border: 0; color: var(--accent); cursor: pointer; padding: 0; font-size: 13px; }
.theme-name { font-size: 13px; color: var(--fg); margin-bottom: 10px; }

/* ─── Hero ──────────────────────────────────────────────────────────────── */
.hero { position: relative; padding: calc(var(--nav-h) + 72px) 0 72px; overflow: hidden; min-height: min(92vh, 860px); display: flex; align-items: center; }
.sky { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.aurora { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .45; mix-blend-mode: screen; animation: drift 14s ease-in-out infinite alternate; }
:root[data-theme="light"] .aurora { mix-blend-mode: multiply; opacity: .28; }
.aurora.a { width: 60vw; height: 60vw; max-width: 760px; max-height: 760px; left: -12vw; top: -18vw; background: var(--accent); }
.aurora.b { width: 50vw; height: 50vw; max-width: 640px; max-height: 640px; right: -14vw; top: 8vh; background: var(--accent2); animation-delay: -5s; }
.aurora.c { width: 34vw; height: 34vw; max-width: 460px; max-height: 460px; left: 36vw; bottom: -20vw; background: var(--accent); opacity: .25; animation-delay: -9s; }
@keyframes drift { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(4vw, 3vh, 0) scale(1.08); } }
.stars { position: absolute; inset: 0; background-image: radial-gradient(1px 1px at 20% 30%, var(--fg) 50%, transparent 51%), radial-gradient(1px 1px at 70% 20%, var(--fg) 50%, transparent 51%), radial-gradient(1.5px 1.5px at 85% 60%, var(--fg) 50%, transparent 51%), radial-gradient(1px 1px at 40% 80%, var(--fg) 50%, transparent 51%), radial-gradient(1px 1px at 10% 70%, var(--fg) 50%, transparent 51%), radial-gradient(1px 1px at 55% 45%, var(--fg) 50%, transparent 51%); opacity: .25; }
:root[data-theme="light"] .stars { display: none; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero-name { font-family: var(--font-display); font-size: clamp(22px, 2.6vw, 30px); font-weight: 600; margin-top: 22px; letter-spacing: -0.01em; }
.hero h1 { font-size: clamp(38px, 5.4vw, 66px); margin: 8px 0 20px; max-width: 12ch; }
.hero .lead { font-size: clamp(17px, 1.6vw, 20px); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.hero-stats { display: grid; grid-template-columns: repeat(3, auto); gap: 28px; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); width: fit-content; }
.hero-stats b { display: block; font-family: var(--font-display); font-size: 30px; font-weight: 700; letter-spacing: -0.02em; line-height: 1; }
.hero-stats b small { font-size: 16px; color: var(--muted); font-weight: 500; margin-left: 2px; }
.hero-stats span { display: block; font-size: 13px; color: var(--muted); margin-top: 6px; }

/* Console card */
.console { position: relative; border: 1px solid var(--line); border-radius: var(--radius); background: color-mix(in srgb, var(--panel) 88%, transparent); backdrop-filter: blur(10px); box-shadow: 0 40px 80px -40px rgba(0,0,0,.7), 0 0 0 1px color-mix(in srgb, var(--accent) 10%, transparent), 0 0 60px -30px var(--accent); font-family: var(--font-mono); font-size: 13.5px; transform: perspective(1200px) rotateY(-6deg) rotateX(2deg); transition: transform .6s var(--ease); }
.console:hover { transform: perspective(1200px) rotateY(0) rotateX(0); }
.console-bar { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.console-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--line); }
.console-bar i:nth-child(1) { background: color-mix(in srgb, var(--accent2) 80%, var(--line)); }
.console-bar i:nth-child(2) { background: color-mix(in srgb, var(--accent) 80%, var(--line)); }
.console-bar span { margin-left: auto; }
.console-body { padding: 16px 18px 18px; line-height: 1.7; }
.console-body .ln { display: flex; gap: 10px; white-space: pre-wrap; word-break: break-word; }
.console-body .p { color: var(--accent); user-select: none; }
.console-body .k { color: var(--muted); min-width: 9ch; display: inline-block; }
.console-body .v { color: var(--fg); }
.console-body .ok { color: var(--accent); }
.console-body .hl { color: var(--accent2); }
.cursor { display: inline-block; width: 8px; height: 15px; background: var(--accent); vertical-align: -2px; animation: blink 1s steps(2) infinite; }
@keyframes blink { to { opacity: 0; } }
.globe { position: absolute; left: -30px; top: -36px; width: 110px; height: 110px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, color-mix(in srgb, var(--accent) 70%, var(--bg)), var(--bg) 70%); padding: 10px; box-shadow: 0 0 0 1px var(--line), 0 0 50px -10px var(--accent); animation: float 6s ease-in-out infinite; }
.globe img { width: 100%; height: 100%; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-10px) rotate(4deg); } }
.globe-photo { padding: 4px; background: var(--panel); }
.globe-photo img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.hero-visual { position: relative; display: grid; justify-items: center; }
.hero-visual-stack { gap: 22px; }
.portrait { position: relative; width: min(380px, 100%); aspect-ratio: 1; border-radius: 28px; overflow: visible; }
.portrait img { width: 100%; height: 100%; object-fit: cover; border-radius: 28px; box-shadow: 0 40px 80px -40px rgba(0,0,0,.8), 0 0 0 1px var(--line), 0 0 60px -20px var(--accent); animation: floatY 7s ease-in-out infinite; }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.portrait-ring { position: absolute; inset: -14px; border-radius: 36px; background: conic-gradient(from 200deg, var(--accent), var(--accent2), transparent 60%, var(--accent)); opacity: .35; filter: blur(18px); z-index: -1; }
.portrait-badge { position: absolute; right: -16px; bottom: -16px; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 35%, color-mix(in srgb, var(--accent) 70%, var(--bg)), var(--bg) 70%); box-shadow: 0 0 0 1px var(--line), 0 0 30px -8px var(--accent); }
.portrait.bracket::before, .portrait.bracket::after { opacity: 1; width: 22px; height: 22px; }
.portrait.bracket::before { top: -10px; left: -10px; } .portrait.bracket::after { bottom: -10px; right: -10px; }
.hero-visual-stack .portrait { width: min(240px, 60%); border-radius: 22px; }
.hero-visual-stack .portrait img { border-radius: 22px; }
.hero-visual-stack .portrait-badge { width: 48px; height: 48px; right: -10px; bottom: -10px; }
.hero-visual-stack .portrait-badge img { width: 32px; height: 32px; }
.console-compact { width: 100%; transform: none; font-size: 12.5px; }
.console-compact .globe { display: none; }
.proj-img { margin: -20px -20px 4px; aspect-ratio: 16 / 10; overflow: hidden; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--fg) 4%, transparent); }
.proj-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.proj:hover .proj-img img { transform: scale(1.04); }
.proj.has-img .arrow { background: color-mix(in srgb, var(--bg) 70%, transparent); border-radius: 50%; width: 30px; height: 30px; display: grid; place-items: center; opacity: 1; transform: none; }
@media (max-width: 960px) {
  .portrait { width: min(300px, 80%); }
  .hero { min-height: 0; padding-top: calc(var(--nav-h) + 48px); }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .console { transform: none; }
  .globe { left: 6px; top: -30px; width: 76px; height: 76px; padding: 7px; }
}
@media (max-width: 520px) { .hero-stats { grid-template-columns: 1fr 1fr; gap: 18px 28px; } .hero-stats b { font-size: 26px; } }

/* ─── Sections ──────────────────────────────────────────────────────────── */
.section { padding: 88px 0; position: relative; }
.section.alt { background: color-mix(in srgb, var(--panel) 55%, transparent); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.head { display: grid; grid-template-columns: 1fr auto; gap: 24px 48px; align-items: end; margin-bottom: 40px; }
.head h2 { font-size: clamp(28px, 3.6vw, 42px); margin-top: 12px; }
.head p { color: var(--muted); max-width: 42ch; font-size: 16px; }
@media (max-width: 760px) { .head { grid-template-columns: 1fr; } }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.card { position: relative; background: color-mix(in srgb, var(--panel) 85%, transparent); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; transition: transform .25s var(--ease), border-color .25s, box-shadow .25s; }
.card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); box-shadow: 0 20px 40px -24px var(--accent); }
.card .ic { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); margin-bottom: 16px; }
.card .ic svg { width: 20px; height: 20px; }
.card:nth-child(2n) .ic { background: color-mix(in srgb, var(--accent2) 14%, transparent); color: var(--accent2); }
.card h3 { font-size: 18px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 14.5px; }
.bracket::before, .bracket::after { content: ""; position: absolute; width: 12px; height: 12px; border-color: var(--accent); opacity: 0; transition: opacity .25s; }
.bracket::before { top: -1px; left: -1px; border-top: 2px solid; border-left: 2px solid; border-top-left-radius: 4px; }
.bracket::after { bottom: -1px; right: -1px; border-bottom: 2px solid; border-right: 2px solid; border-bottom-right-radius: 4px; }
.bracket:hover::before, .bracket:hover::after { opacity: 1; }

/* About */
.about { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: start; }
.about .prose p + p { margin-top: 14px; }
.about .prose { color: color-mix(in srgb, var(--fg) 85%, var(--muted)); font-size: 17px; }
.facts { display: grid; gap: 10px; }
.fact { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: color-mix(in srgb, var(--panel) 80%, transparent); font-size: 14px; }
.fact span { color: var(--muted); font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; align-self: center; }
.fact a { word-break: break-all; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } }

/* Timeline */
.timeline { position: relative; display: grid; gap: 14px; }
.timeline::before { content: ""; position: absolute; left: 11px; top: 10px; bottom: 10px; width: 1px; background: linear-gradient(var(--accent), var(--line)); }
.tl { position: relative; display: grid; grid-template-columns: 200px 1fr; gap: 16px 24px; padding: 18px 20px 18px 44px; border: 1px solid var(--line); border-radius: var(--radius); background: color-mix(in srgb, var(--panel) 80%, transparent); transition: border-color .25s; }
.tl:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); }
.tl::before { content: ""; position: absolute; left: 7px; top: 24px; width: 9px; height: 9px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); box-shadow: 0 0 12px var(--accent); }
.tl .when { font-family: var(--font-mono); font-size: 12.5px; color: var(--accent); letter-spacing: .04em; padding-top: 3px; }
.tl .when small { display: block; color: var(--muted); margin-top: 4px; letter-spacing: 0; font-size: 12px; }
.tl h3 { font-size: 17px; }
.tl h3 span { color: var(--muted); font-weight: 500; }
.tl .role { color: var(--accent2); font-size: 13.5px; font-weight: 600; margin: 3px 0 8px; }
.tl p { color: var(--muted); font-size: 14.5px; }
.tl .tags { margin-top: 10px; }
@media (max-width: 700px) { .tl { grid-template-columns: 1fr; gap: 6px; padding-left: 38px; } }

/* Tags */
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-family: var(--font-mono); font-size: 12px; padding: 4px 9px; border-radius: 6px; border: 1px solid var(--line); background: color-mix(in srgb, var(--fg) 4%, transparent); color: color-mix(in srgb, var(--fg) 80%, var(--muted)); white-space: nowrap; }
.tag.hot { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); }

/* Skills */
.skills { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.skill { padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: color-mix(in srgb, var(--panel) 80%, transparent); }
.skill h3 { font-size: 13px; font-family: var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.skill h3::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.skill:nth-child(2n) h3::before { background: var(--accent2); box-shadow: 0 0 8px var(--accent2); }

/* Projects */
.projects { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; align-items: start; }
.proj { display: flex; flex-direction: column; gap: 10px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: color-mix(in srgb, var(--panel) 85%, transparent); color: var(--fg); position: relative; overflow: hidden; transition: transform .25s var(--ease), border-color .25s, box-shadow .25s; }
.proj::after { content: ""; position: absolute; inset: auto -40% -60% auto; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 22%, transparent), transparent 65%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.proj:hover { transform: translateY(-3px); text-decoration: none; border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); box-shadow: 0 24px 48px -28px var(--accent); }
.proj:hover::after { opacity: 1; }
.proj-top { display: flex; align-items: center; gap: 10px; }
.proj-top .dot { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); font-family: var(--font-mono); font-size: 12px; font-weight: 700; }
.proj:nth-child(3n+2) .dot { background: color-mix(in srgb, var(--accent2) 14%, transparent); color: var(--accent2); }
.proj h3 { font-size: 17px; }
.proj .host { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.proj p { color: var(--muted); font-size: 14px; flex: 1; }
.status { margin-left: auto; font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; padding: 4px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status.live { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.status.live::before { box-shadow: 0 0 8px var(--accent); animation: pulse 2.4s ease-in-out infinite; }
.status.soon { color: var(--accent2); border-color: color-mix(in srgb, var(--accent2) 40%, var(--line)); }
@keyframes pulse { 0%, 100% { opacity: .5; } 50% { opacity: 1; } }
.proj .arrow { position: absolute; right: 16px; top: 18px; color: var(--muted); opacity: 0; transform: translate(-6px, 6px); transition: all .25s var(--ease); }
.proj:hover .arrow { opacity: 1; transform: none; color: var(--accent); }
.proj .arrow svg { width: 16px; height: 16px; }

/* Stack strip */
.strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.strip div { padding: 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: color-mix(in srgb, var(--panel) 80%, transparent); }
.strip b { display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.strip span { font-size: 14px; color: color-mix(in srgb, var(--fg) 85%, var(--muted)); }

/* Contact */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: start; }
.contact-list { display: grid; gap: 12px; margin-top: 22px; }
.contact-list a, .contact-list div { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: color-mix(in srgb, var(--panel) 80%, transparent); color: var(--fg); transition: border-color .2s, transform .2s; }
.contact-list a:hover { border-color: var(--accent); text-decoration: none; transform: translateX(3px); }
.contact-list .ic { width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); flex: 0 0 auto; }
.contact-list .ic svg { width: 17px; height: 17px; }
.contact-list small { display: block; color: var(--muted); font-size: 12px; font-family: var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.contact-list b { font-weight: 600; font-size: 15px; }
.socials { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.socials a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.socials a:hover { color: var(--fg); border-color: var(--accent); text-decoration: none; }
.socials svg { width: 15px; height: 15px; }
.form { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: color-mix(in srgb, var(--panel) 88%, transparent); display: grid; gap: 14px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 12.5px; color: var(--muted); font-family: var(--font-mono); letter-spacing: .06em; text-transform: uppercase; }
.field input, .field textarea { width: 100%; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 70%, transparent); color: var(--fg); transition: border-color .2s, box-shadow .2s; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.field textarea { min-height: 150px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: color-mix(in srgb, var(--muted) 70%, transparent); }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; overflow: hidden; }
.form-foot { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.form-note { font-size: 13px; color: var(--muted); }
.form-note.err { color: var(--accent2); }
.form-note.ok { color: var(--accent); }
.form.sent .fields { display: none; }
.sent-box { display: none; text-align: center; padding: 30px 10px; }
.form.sent .sent-box { display: block; }
.sent-box .ic { width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); }
.sent-box h3 { font-size: 22px; margin-bottom: 6px; }
.sent-box p { color: var(--muted); }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form .row { grid-template-columns: 1fr; } }

/* Cookie notice */
.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 80; margin: 0 auto; max-width: 720px; display: flex; align-items: center; gap: 16px; padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: color-mix(in srgb, var(--panel) 96%, transparent); backdrop-filter: blur(14px); box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); animation: rise .3s var(--ease); }
.cookie[hidden] { display: none; }
.cookie p { font-size: 13.5px; color: color-mix(in srgb, var(--fg) 85%, var(--muted)); flex: 1; }
.cookie-actions { display: flex; gap: 8px; flex: 0 0 auto; }
@media (max-width: 600px) { .cookie { flex-direction: column; align-items: stretch; } .cookie-actions { justify-content: flex-end; } }

/* Legal pages */
.legal-page { padding: calc(var(--nav-h) + 56px) 0 80px; min-height: calc(100vh - 120px); }
.legal-page .wrap { max-width: 760px; }
.legal { margin-top: 14px; color: color-mix(in srgb, var(--fg) 88%, var(--muted)); font-size: 16px; }
.legal h2 { font-size: clamp(28px, 4vw, 40px); margin: 0 0 18px; }
.legal h3 { font-size: 19px; margin: 30px 0 8px; }
.legal p { margin: 10px 0; }
.legal ul { margin: 10px 0; padding-left: 22px; }
.legal li { margin: 6px 0; }
.legal-updated { margin-top: 36px; font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.h2-sm { margin: 12px 0 20px; font-size: clamp(26px, 3.2vw, 38px); }
#contact .h2-sm { margin-bottom: 14px; }
.contact-solo { grid-template-columns: 1fr; max-width: 720px; }
.admin-link { opacity: .55; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 36px 0 44px; color: var(--muted); font-size: 13.5px; }
.footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; }
.footer nav { display: flex; gap: 16px; flex-wrap: wrap; }
.footer a { color: var(--muted); }
.footer a:hover { color: var(--fg); }

/* Reveal + misc */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); white-space: nowrap; background: var(--panel); border: 1px solid var(--line); color: var(--fg); padding: 10px 16px; border-radius: 999px; font-size: 13px; z-index: 70; box-shadow: 0 20px 40px -20px rgba(0,0,0,.6); animation: rise .25s var(--ease); }
.back-top { position: fixed; right: 20px; bottom: 20px; z-index: 40; opacity: 0; pointer-events: none; transition: opacity .3s; }
.back-top.show { opacity: 1; pointer-events: auto; }
.err-page { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 20px; }
.err-page h1 { font-size: clamp(64px, 14vw, 140px); line-height: 1; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
@media print {
  .nav, .sky, .theme-pop, .back-top, .form, .hero-actions { display: none !important; }
  body { background: #fff !important; color: #000 !important; }
  .section { padding: 24px 0; }
}
