/* ============================================================
   fridgespy — shared design system (public + admin)
   ============================================================ */
:root {
  --bg: #06070d;
  --bg-2: #0a0c15;
  --panel: rgba(255, 255, 255, 0.035);
  --panel-2: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.09);
  --text: #e9ecf5;
  --muted: #98a0b5;
  --accent: #8b7bff;
  --accent-2: #3ee6ff;
  --gradient: linear-gradient(120deg, #8b7bff 0%, #3ee6ff 100%);
  --radius: 18px;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "JetBrains Mono", Consolas, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(139, 123, 255, 0.35); color: #fff; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #232741; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #33395c; }

a { color: inherit; text-decoration: none; }
ul, ol { list-style-position: inside; }
strong { color: var(--text); font-weight: 650; }

/* ============ Ambient layers ============ */
.noise {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

.cursor-glow {
  position: fixed; top: 0; left: 0; width: 600px; height: 600px;
  background: radial-gradient(circle at center, rgba(139, 123, 255, 0.10), rgba(62, 230, 255, 0.04) 40%, transparent 70%);
  border-radius: 50%; pointer-events: none; z-index: 1; mix-blend-mode: screen;
  transform: translate(-300px, -300px); will-change: transform;
}

/* ============ Nav (public) ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px clamp(20px, 5vw, 64px);
  transition: background 0.35s ease, padding 0.35s ease, border-color 0.35s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  padding: 14px clamp(20px, 5vw, 64px);
  background: rgba(6, 7, 13, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
}
.nav-logo { font-weight: 800; font-size: 1.35rem; letter-spacing: -0.02em; }
.logo-dot { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a {
  position: relative; color: var(--muted); font-size: 0.95rem; transition: color 0.25s ease;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--gradient); border-radius: 2px; transition: width 0.3s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.nav-admin {
  font-family: var(--mono); font-size: 0.8rem; padding: 6px 14px;
  border: 1px solid var(--line); border-radius: 999px; color: var(--muted);
}
.nav-links a.nav-admin:hover { border-color: rgba(139, 123, 255, 0.5); color: var(--text); }
.nav-links a.nav-admin::after { display: none; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; flex-direction: column; gap: 5px; padding: 6px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.3s ease, opacity 0.3s ease; }

/* ============ Hero ============ */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 120px 24px 80px; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.55; }
.orb-a { width: 520px; height: 520px; background: rgba(139, 123, 255, 0.28); top: -140px; left: -120px; animation: drift 18s ease-in-out infinite alternate; }
.orb-b { width: 460px; height: 460px; background: rgba(62, 230, 255, 0.18); bottom: -160px; right: -100px; animation: drift 22s ease-in-out infinite alternate-reverse; }
.orb-c { width: 300px; height: 300px; background: rgba(255, 255, 255, 0.06); top: 40%; left: 55%; animation: drift 26s ease-in-out infinite alternate; }
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(60px, -40px, 0) scale(1.12); }
}

.hero-watermark {
  position: absolute; bottom: -0.12em; left: 50%; transform: translateX(-50%);
  font-size: clamp(6rem, 22vw, 22rem); font-weight: 900; letter-spacing: -0.05em; line-height: 1;
  white-space: nowrap; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, 0.045);
  pointer-events: none; user-select: none;
}

.hero-content { max-width: 820px; text-align: center; position: relative; z-index: 2; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 0.82rem;
  color: var(--muted); border: 1px solid var(--line); background: var(--panel); border-radius: 999px;
  padding: 8px 16px; margin-bottom: 26px;
}
.pulse { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6); animation: pulse 2.2s ease-out infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.55); }
  70% { box-shadow: 0 0 0 10px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

.hero-title {
  font-size: clamp(3.6rem, 11vw, 8.5rem); font-weight: 850; letter-spacing: -0.045em; line-height: 1.02;
}
.hero-title .accent { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-type { font-family: var(--mono); font-size: clamp(1rem, 2.4vw, 1.35rem); color: var(--accent-2); min-height: 2em; margin-top: 12px; }
.caret { display: inline-block; width: 2px; height: 1.1em; background: var(--accent-2); margin-left: 4px; vertical-align: -0.15em; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.hero-desc { max-width: 620px; margin: 22px auto 0; color: var(--muted); font-size: 1.08rem; }
.hero-actions { display: flex; gap: 16px; justify-content: center; margin-top: 36px; flex-wrap: wrap; }

/* ============ Layout / sections ============ */
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 860px; }
.section { padding: clamp(80px, 10vw, 120px) 0; position: relative; z-index: 2; }
.section-alt { background: linear-gradient(180deg, rgba(255, 255, 255, 0.018), rgba(255, 255, 255, 0.004)); }
.section-top { padding-top: 40px; }

.eyebrow {
  font-family: var(--mono); font-size: 0.82rem; color: var(--accent-2); text-transform: uppercase;
  letter-spacing: 0.14em; margin-bottom: 12px;
}
.section-title { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; margin-bottom: clamp(28px, 5vw, 48px); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.section-head .section-title { margin-bottom: clamp(24px, 4vw, 40px); }

.page-head { padding: 160px 0 30px; position: relative; z-index: 2; text-align: center; }
.page-title { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 850; letter-spacing: -0.03em; line-height: 1.15; margin-bottom: 10px; }
.page-sub { color: var(--muted); font-size: 1.05rem; }

.empty-hint { color: var(--muted); text-align: center; padding: 48px 0; font-style: italic; }

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: 999px; border: 1px solid transparent; cursor: pointer;
  font-weight: 600; font-size: 0.98rem; font-family: var(--font);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
  will-change: transform;
}
.btn-primary { background: var(--gradient); color: #06070d; box-shadow: 0 8px 30px rgba(139, 123, 255, 0.28); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 44px rgba(139, 123, 255, 0.42); }
.btn-ghost { border-color: var(--line); color: var(--text); background: rgba(255, 255, 255, 0.02); }
.btn-ghost:hover { transform: translateY(-2px); border-color: rgba(139, 123, 255, 0.55); box-shadow: 0 10px 34px rgba(139, 123, 255, 0.14); }
.btn-danger { background: rgba(239, 68, 68, 0.12); border-color: rgba(239, 68, 68, 0.35); color: #fca5a5; }
.btn-danger:hover { background: rgba(239, 68, 68, 0.22); border-color: rgba(239, 68, 68, 0.6); }
.btn-sm { padding: 10px 22px; font-size: 0.92rem; }
.btn-xs { padding: 6px 14px; font-size: 0.8rem; }
.btn-block { width: 100%; }

/* ============ Cards ============ */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 22px; }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.card:hover { transform: translateY(-5px); border-color: rgba(139, 123, 255, 0.4); box-shadow: 0 18px 48px rgba(139, 123, 255, 0.12); }
.card h3 { font-size: 1.2rem; font-weight: 750; margin-bottom: 10px; }
.card h3 a:hover { color: var(--accent-2); }
.card p { color: var(--muted); font-size: 0.95rem; margin-bottom: 16px; }
.card-meta { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; font-family: var(--mono); font-size: 0.76rem; color: var(--muted); margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.06em; }
.card-tag { color: var(--accent-2); }
.text-link { color: var(--accent); font-weight: 600; font-size: 0.92rem; transition: color 0.25s ease; }
.text-link:hover { color: var(--accent-2); }
.tags { display: flex; gap: 8px; flex-wrap: wrap; list-style: none; margin: 14px 0; }
.tags li {
  font-family: var(--mono); font-size: 0.75rem; padding: 4px 12px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--accent-2); background: rgba(62, 230, 255, 0.05);
}

/* ============ About ============ */
.about-grid { display: grid; grid-template-columns: 1.35fr 0.85fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.about-copy p { color: var(--muted); font-size: 1.06rem; margin-bottom: 18px; }
.quote {
  margin-top: 26px; padding: 18px 22px; border-left: 3px solid transparent;
  border-image: linear-gradient(180deg, var(--accent), var(--accent-2)) 1;
  color: var(--text); font-style: italic; font-size: 1.05rem;
  background: var(--panel); border-radius: 0 var(--radius) var(--radius) 0;
}
.about-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.facts { display: flex; flex-direction: column; list-style: none; }
.facts li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px dashed var(--line); font-size: 0.95rem; }
.facts li:last-child { border-bottom: 0; }
.facts span { color: var(--muted); font-family: var(--mono); font-size: 0.82rem; }
.facts strong.ok { color: #4ade80; }
.about-card .btn { margin-top: 22px; width: 100%; }

/* ============ Post page ============ */
.post-container { max-width: 820px; }
.post-head { text-align: center; padding: 30px 0 20px; }
.post-content {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(28px, 5vw, 48px); line-height: 1.9; font-size: 1.04rem;
}
.post-content h1, .post-content h2, .post-content h3, .post-content h4, .post-content h5, .post-content h6 {
  margin: 1.6em 0 0.6em; line-height: 1.3; letter-spacing: -0.02em;
}
.post-content h1 { font-size: 1.8rem; } .post-content h2 { font-size: 1.5rem; }
.post-content h3 { font-size: 1.25rem; } .post-content h4 { font-size: 1.1rem; }
.post-content p { margin-bottom: 1.1em; color: var(--text); }
.post-content a { color: var(--accent); border-bottom: 1px solid rgba(139, 123, 255, 0.4); }
.post-content a:hover { color: var(--accent-2); }
.post-content ul, .post-content ol { margin: 0 0 1.1em 1.2em; }
.post-content li { margin-bottom: 0.4em; }
.post-content blockquote {
  border-left: 3px solid var(--accent); padding: 12px 18px; margin: 1.2em 0;
  background: rgba(139, 123, 255, 0.06); border-radius: 0 10px 10px 0; color: var(--muted);
}
.post-content pre {
  background: #0d1020; border: 1px solid var(--line); border-radius: 12px;
  padding: 18px; overflow-x: auto; margin: 1.2em 0; font-size: 0.9rem;
}
.post-content code {
  font-family: var(--mono); background: rgba(139, 123, 255, 0.12); color: #c7c9ff;
  padding: 2px 6px; border-radius: 6px; font-size: 0.9em;
}
.post-content pre code { background: none; padding: 0; color: #dbe2ff; }
.post-content img { max-width: 100%; border-radius: 12px; margin: 1.2em 0; border: 1px solid var(--line); }
.post-content hr { border: 0; height: 1px; background: var(--line); margin: 2em 0; }
.post-foot { margin-top: 32px; text-align: center; }

/* ============ Projects page ============ */
.project-list { display: flex; flex-direction: column; gap: 20px; }
.project-row {
  display: flex; justify-content: space-between; gap: 24px; align-items: flex-start;
  scroll-margin-top: 110px;
}
.project-row-main { flex: 1; min-width: 0; }
.project-row-main h3 { font-size: 1.4rem; margin-bottom: 8px; }
.project-row-main > p { color: var(--muted); }
.project-row-side { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; flex-shrink: 0; }
.file-chip {
  font-family: var(--mono); font-size: 0.75rem; color: var(--muted);
  border: 1px dashed var(--line); border-radius: 10px; padding: 8px 12px; max-width: 260px; text-align: right;
}
.project-desc { margin-top: 14px; color: var(--muted); font-size: 0.95rem; line-height: 1.8; }
.project-desc p { margin-bottom: 0.8em; }
.project-desc ul { margin-left: 1.2em; }
.project-desc pre, .project-desc code { font-family: var(--mono); }

/* ============ Contact ============ */
.contact-card {
  text-align: center; max-width: 720px; margin: 0 auto; padding: clamp(40px, 7vw, 72px) clamp(26px, 6vw, 64px);
  background: linear-gradient(160deg, rgba(139, 123, 255, 0.09), rgba(62, 230, 255, 0.05)), var(--panel);
  border: 1px solid var(--line); border-radius: 26px;
}
.contact-card .section-title { margin-bottom: 18px; }
.contact-text { color: var(--muted); max-width: 460px; margin: 0 auto 34px; }
.contact-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.contact-note { font-family: var(--mono); font-size: 0.82rem; color: var(--muted); margin-top: 28px; }

/* ============ Footer ============ */
.footer { border-top: 1px solid var(--line); padding: 30px 0; position: relative; z-index: 2; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: 0.9rem; }
.to-top { color: var(--muted); transition: color 0.25s ease; }
.to-top:hover { color: var(--accent-2); }

/* ============================================================
   Admin
   ============================================================ */
.admin-bar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(6, 7, 13, 0.85); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.admin-bar-inner {
  max-width: 1120px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.admin-bar .nav-logo { font-size: 1.1rem; }
.admin-nav { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.admin-nav a { color: var(--muted); font-size: 0.92rem; transition: color 0.25s ease; }
.admin-nav a:hover, .admin-nav a.active { color: var(--text); }
.admin-nav a.active { color: var(--accent-2); }
.admin-nav a.danger-link { color: #f87171; }
.admin-nav a.danger-link:hover { color: #fca5a5; }

.admin-main { padding: clamp(32px, 5vw, 56px) 0 80px; position: relative; z-index: 2; }
.admin-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 32px; }
.admin-head .page-title { font-size: clamp(1.7rem, 4vw, 2.4rem); margin-bottom: 0; }
.admin-head-actions { display: flex; gap: 12px; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 18px; margin-bottom: 32px; }
.stat-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; display: flex; flex-direction: column; gap: 6px;
}
.stat-num { font-size: 2.1rem; font-weight: 850; background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-label { font-family: var(--mono); font-size: 0.78rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }

.quick-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.quick-card { display: flex; flex-direction: column; gap: 8px; }
.quick-card h3 { margin-bottom: 0; }

.form-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(24px, 4vw, 40px); display: flex; flex-direction: column; gap: 20px;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field > span { font-size: 0.88rem; color: var(--muted); font-weight: 600; }
.field input[type="text"],
.field input[type="password"],
.field textarea,
.field input[type="file"] {
  background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); border-radius: 12px;
  color: var(--text); padding: 12px 16px; font-size: 0.98rem; font-family: var(--font);
  transition: border-color 0.25s ease, box-shadow 0.25s ease; width: 100%;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: rgba(139, 123, 255, 0.6); box-shadow: 0 0 0 3px rgba(139, 123, 255, 0.12);
}
.field textarea { resize: vertical; min-height: 140px; line-height: 1.7; }
.field input[type="file"] { padding: 10px; }
.field input[type="file"]::file-selector-button {
  font-family: var(--font); font-size: 0.88rem; background: rgba(139, 123, 255, 0.15);
  color: var(--text); border: 1px solid rgba(139, 123, 255, 0.4); border-radius: 8px;
  padding: 8px 14px; margin-right: 12px; cursor: pointer;
}
.check-field { display: flex; align-items: center; gap: 10px; font-size: 0.92rem; color: var(--muted); cursor: pointer; }
.check-field input { width: 17px; height: 17px; accent-color: var(--accent); }
.form-row { display: grid; grid-template-columns: 1fr 2fr; gap: 16px; }
.form-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }

.table-wrap { overflow-x: auto; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.93rem; min-width: 720px; }
.data-table th {
  text-align: left; font-family: var(--mono); font-size: 0.75rem; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--muted); padding: 16px 20px; border-bottom: 1px solid var(--line);
}
.data-table td { padding: 14px 20px; border-bottom: 1px solid rgba(255, 255, 255, 0.05); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tr:hover td { background: rgba(255, 255, 255, 0.02); }
.table-title { font-weight: 650; }
.table-title:hover { color: var(--accent-2); }
.table-tags { color: var(--muted); font-size: 0.85rem; max-width: 260px; }
.th-actions { text-align: right; }
.row-actions { display: flex; gap: 8px; justify-content: flex-end; align-items: center; }
.inline-form { display: inline-flex; margin: 0; }

.badge {
  display: inline-block; font-family: var(--mono); font-size: 0.72rem; padding: 3px 10px;
  border-radius: 999px; letter-spacing: 0.04em;
}
.badge-ok { background: rgba(74, 222, 128, 0.12); color: #4ade80; border: 1px solid rgba(74, 222, 128, 0.3); }
.badge-muted { background: rgba(255, 255, 255, 0.06); color: var(--muted); border: 1px solid var(--line); }

.alert { padding: 14px 18px; border-radius: 12px; margin-bottom: 22px; font-size: 0.94rem; }
.alert-ok { background: rgba(74, 222, 128, 0.1); border: 1px solid rgba(74, 222, 128, 0.3); color: #4ade80; }
.alert-error { background: rgba(239, 68, 68, 0.1); border: 1px solid rgba(239, 68, 68, 0.3); color: #fca5a5; }

/* Login */
.login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.login-wrap { width: 100%; max-width: 420px; position: relative; z-index: 2; }
.login-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 24px;
  padding: 40px; display: flex; flex-direction: column; gap: 18px;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}
.login-title { font-size: 2rem; font-weight: 850; letter-spacing: -0.03em; }
.login-title .accent { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.login-back { text-align: center; color: var(--muted); font-size: 0.86rem; transition: color 0.25s ease; }
.login-back:hover { color: var(--accent-2); }

/* ============ Reveal ============ */
[data-reveal] {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.7s ease var(--d, 0s), transform 0.7s cubic-bezier(0.2, 0.7, 0.3, 1) var(--d, 0s);
}
[data-reveal].revealed { opacity: 1; transform: none; }

/* ============ Responsive ============ */
@media (max-width: 900px) {
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0;
    background: rgba(6, 7, 13, 0.96); border-bottom: 1px solid var(--line); padding: 12px 24px 20px;
    opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity 0.25s ease, transform 0.25s ease;
  }
  .nav-links.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links a { padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
  .nav-links a::after { display: none; }
  .nav-toggle { display: inline-flex; }
  .about-grid { grid-template-columns: 1fr; }
  .project-row { flex-direction: column; }
  .project-row-side { align-items: flex-start; }
  .file-chip { text-align: left; max-width: none; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .hero { padding-top: 110px; }
  .footer-inner { justify-content: center; text-align: center; }
  .admin-bar-inner { justify-content: center; }
  .admin-nav { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
