@font-face {
  font-family: "Ubuntu Regular";
  src: url("../../fonts/Ubuntu-Regular.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #272727;
  --surface: #131313;
  --text: #a0a0a0;
  --white: #ffffff;
  --accent: #14a76c;
  --accent-2: #3dffb0;
  --accent-soft: rgba(20, 167, 108, 0.16);
  --border: rgba(20, 167, 108, 0.3);
  --radius: 16px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: "Ubuntu Regular", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; transition: color 0.2s ease, transform 0.2s ease; }
a:hover { color: var(--accent-2); }
ul { list-style: none; }

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 9000;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.cursor-glow {
  pointer-events: none;
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(20, 167, 108, 0.14) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  z-index: 1;
  opacity: 0;
  transition: opacity 0.4s ease;
}
body.is-pointer .cursor-glow { opacity: 1; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -100%;
  z-index: 9999;
  padding: 10px 14px;
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
}
.skip-link:focus { top: 16px; }

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}
.container--narrow { max-width: 780px; }

.glass {
  background: rgba(19, 19, 19, 0.78);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.reveal {
  opacity: 1;
  transform: none;
}
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--header-h);
  background: rgba(19, 19, 19, 0.88);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.header__inner {
  max-width: 1160px;
  margin: 0 auto;
  height: 100%;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.header__logo:hover { color: var(--accent); }
.header__logo-img { width: 32px; height: 32px; }

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}
.nav__link {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 500;
  border: 1px solid transparent;
}
.nav__link:hover {
  color: var(--accent);
  background: var(--accent-soft);
}
.nav__link.is-active {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 18px var(--accent-soft);
}

.header__social { display: flex; gap: 10px; }
.header__social-link {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--border);
}
.header__social-link:hover {
  border-color: var(--accent);
  box-shadow: 0 0 16px var(--accent-soft);
}

.header__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 9px 10px;
  cursor: pointer;
}
.header__burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.main { min-height: calc(100vh - var(--header-h) - 180px); position: relative; z-index: 2; }

/* Hero cinematic */
.hero--cinematic {
  position: relative;
  padding: 80px 0 72px;
  overflow: hidden;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
}

.hero__aurora {
  position: absolute;
  inset: -20% -10%;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(20, 167, 108, 0.28) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 10%, rgba(61, 255, 176, 0.12) 0%, transparent 45%),
    radial-gradient(ellipse at 60% 80%, rgba(20, 167, 108, 0.1) 0%, transparent 40%);
  animation: auroraShift 14s ease-in-out infinite alternate;
  pointer-events: none;
}

.hero__grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(20, 167, 108, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 167, 108, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
  pointer-events: none;
  animation: gridDrift 40s linear infinite;
}

@keyframes auroraShift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(3%, -2%) scale(1.05); }
}
@keyframes gridDrift {
  from { background-position: 0 0; }
  to { background-position: 56px 56px; }
}

.hero__stage { max-width: 900px; }

.hero__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  padding: 8px 14px 8px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(19, 19, 19, 0.7);
}
.hero__brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.hero__brand-name {
  color: var(--white);
  font-weight: 700;
  font-size: 0.95rem;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 18px;
}
.hero__pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(20, 167, 108, 0.6);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(20, 167, 108, 0.55); }
  70% { box-shadow: 0 0 0 12px rgba(20, 167, 108, 0); }
  100% { box-shadow: 0 0 0 0 rgba(20, 167, 108, 0); }
}

.hero__title {
  font-size: clamp(2.4rem, 7vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: 22px;
}
.hero__line { display: block; }
.hero__line--accent {
  background: linear-gradient(100deg, var(--white) 0%, var(--accent) 45%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__typewriter {
  border-right: 3px solid var(--accent);
  padding-right: 4px;
  animation: caret 0.85s step-end infinite;
}
@keyframes caret {
  50% { border-color: transparent; }
}

.hero__text {
  max-width: 560px;
  font-size: 1.1rem;
  margin-bottom: 28px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}

.hero__terminal {
  max-width: 520px;
  overflow: hidden;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.86rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}
.hero__terminal-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.35);
}
.hero__terminal-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #3a3a3a;
}
.hero__terminal-bar span:nth-child(1) { background: #ff5f56; }
.hero__terminal-bar span:nth-child(2) { background: #ffbd2e; }
.hero__terminal-bar span:nth-child(3) { background: #27c93f; }
.hero__terminal-bar em {
  margin-left: 10px;
  font-style: normal;
  color: #666;
  font-size: 0.75rem;
}
.hero__terminal-code {
  padding: 18px 20px 22px;
  white-space: pre-wrap;
  color: var(--text);
}
.t-muted { color: #666; }
.t-accent { color: var(--accent); }
.t-white { color: var(--white); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: 0.25s ease;
}
.btn--primary {
  background: var(--accent);
  color: #fff;
}
.btn--primary:hover {
  background: #18c07e;
  color: #fff;
  transform: translateY(-2px);
}
.btn--glow {
  box-shadow: 0 0 0 0 rgba(20, 167, 108, 0.4);
  animation: btnGlow 2.4s ease-in-out infinite;
}
@keyframes btnGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(20, 167, 108, 0.35); }
  50% { box-shadow: 0 0 28px 2px rgba(20, 167, 108, 0.35); }
}
.btn--ghost {
  border-color: var(--border);
  color: var(--white);
  background: transparent;
}
.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Sections */
.section { padding: 64px 0; }
.section--page { padding: 48px 0 80px; }
.section--last { padding-bottom: 40px; }

.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.section__kicker {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.section__title {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  color: var(--white);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.section__link {
  color: var(--accent);
  font-weight: 600;
}
.section__link:hover { text-decoration: underline; }
.section__intro { margin-bottom: 28px; max-width: 640px; }
.section__badge {
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.85rem;
}
.text-link {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.empty { padding: 40px; text-align: center; }

/* Timeline news */
.timeline {
  position: relative;
  display: grid;
  gap: 16px;
  padding-left: 28px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), transparent);
}
.timeline__item {
  position: relative;
  padding: 20px 22px;
  background: var(--surface);
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.timeline__item:hover {
  border-color: var(--accent);
  transform: translateX(4px);
}
.timeline__dot {
  position: absolute;
  left: -28px;
  top: 28px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--bg), 0 0 16px var(--accent);
}
.timeline__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 0.8rem;
}
.timeline__title {
  color: var(--white);
  font-size: 1.15rem;
  margin-bottom: 8px;
}
.timeline__title a { color: var(--white); }
.timeline__title a:hover { color: var(--accent); }
.timeline__text { font-size: 0.95rem; }
.timeline__more {
  display: inline-block;
  margin-top: 10px;
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 600;
}

.news-card__text { font-size: 0.95rem; }
.news-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 14px;
}
.news-card__more {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
}
.news-card__ext {
  color: var(--text);
  font-size: 0.85rem;
}
.news-card__ext:hover { color: var(--accent); }

.news-detail__lead {
  padding: 18px 22px;
  margin-bottom: 18px;
  font-size: 1.05rem;
  line-height: 1.7;
  border-left: 3px solid var(--accent);
}
.news-detail__ext { margin: 0 0 20px; }

.related-news { margin-top: 48px; }
.related-news__title {
  color: var(--white);
  font-size: 1.3rem;
  margin-bottom: 18px;
}

.news-card__badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--border);
}
.news-card--event .news-card__badge {
  color: #ffd166;
  border-color: rgba(255, 209, 102, 0.35);
  background: rgba(255, 209, 102, 0.1);
}
.news-card--note .news-card__badge { color: var(--text); }

.news-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.news-list--full { grid-template-columns: 1fr; }
.news-card {
  padding: 20px 22px;
  background: var(--surface);
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.news-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}
.news-card__date { display: block; font-size: 0.8rem; margin: 8px 0; }
.news-card__title { color: var(--white); font-size: 1.1rem; margin-bottom: 8px; }
.news-card__title a { color: var(--white); }
.news-card__title a:hover { color: var(--accent); }

/* Bento portfolio */
.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 16px;
}
.bento__item {
  overflow: hidden;
  background: var(--surface);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  transform-style: preserve-3d;
}
.bento__item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.bento__item:nth-child(2) { grid-column: span 2; }
.bento__item:hover {
  border-color: var(--accent);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35), 0 0 0 1px var(--accent);
}
.bento__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
}
.bento__link:hover { color: inherit; }
.bento__media {
  position: relative;
  flex: 1;
  min-height: 120px;
  overflow: hidden;
}
.bento__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}
.bento__item:hover .bento__media img { transform: scale(1.08); }
.bento__shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.08) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.7s ease;
}
.bento__item:hover .bento__shine { transform: translateX(120%); }
.bento__body {
  padding: 16px 18px 18px;
  background: linear-gradient(to top, rgba(19,19,19,0.98), rgba(19,19,19,0.85));
}
.bento__title {
  color: var(--white);
  font-size: 1.05rem;
  margin-bottom: 6px;
}
.bento__desc { font-size: 0.88rem; margin-bottom: 8px; }
.bento__cta {
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Cards / blog rail */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  overflow: hidden;
  background: var(--surface);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 12px 30px rgba(0,0,0,0.35), 0 0 0 1px var(--accent);
}
.card__link { display: block; color: inherit; height: 100%; }
.card__link:hover { color: inherit; }
.card__media {
  height: 180px;
  overflow: hidden;
  background: #1a1a1a;
}
.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.card:hover .card__media img { transform: scale(1.05); }
.card__placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #131313, #1c1c1c 40%, rgba(20,167,108,0.15));
}
.card__body { padding: 18px; }
.card__title { color: var(--white); font-size: 1.05rem; margin-bottom: 8px; }
.card__desc { font-size: 0.9rem; margin-bottom: 12px; }
.card__meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
}
.card__cta { color: var(--accent); font-size: 0.85rem; font-weight: 600; }

.post-rail {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.post-rail__card {
  overflow: hidden;
  background: var(--surface);
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.post-rail__card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}
.post-rail__link { display: block; color: inherit; }
.post-rail__link:hover { color: inherit; }
.post-rail__media { height: 160px; overflow: hidden; }
.post-rail__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.post-rail__card:hover .post-rail__media img { transform: scale(1.06); }
.post-rail__body { padding: 18px; }
.post-rail__body time {
  display: block;
  font-size: 0.78rem;
  color: var(--accent);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.post-rail__body h3 {
  color: var(--white);
  font-size: 1.05rem;
  margin-bottom: 8px;
  line-height: 1.35;
}
.post-rail__body p { font-size: 0.9rem; }

/* CTA */
.cta-band { padding: 20px 0 80px; }
.cta-band__inner {
  padding: 40px 36px;
  text-align: center;
  background:
    radial-gradient(ellipse at center, rgba(20,167,108,0.18) 0%, rgba(19,19,19,0.9) 65%),
    var(--surface);
}
.cta-band__title {
  color: var(--white);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 10px;
}
.cta-band__text { margin-bottom: 22px; }

/* Post detail */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.85rem;
  margin-bottom: 22px;
}
.breadcrumb a { color: var(--accent); }
.post-head { padding: 28px; margin-bottom: 22px; }
.post-head__title {
  color: var(--white);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  margin-bottom: 12px;
  line-height: 1.25;
}
.post-head__meta { display: flex; gap: 18px; font-size: 0.9rem; }
.post-cover { overflow: hidden; margin-bottom: 22px; }
.post-cover img { width: 100%; max-height: 420px; object-fit: cover; }
.post-content { padding: 28px; margin-bottom: 24px; }
.post-content h2, .post-content h3 { color: var(--white); margin: 1.4em 0 0.6em; }
.post-content p { margin-bottom: 1em; }
.post-content a { color: var(--accent); text-decoration: underline; }
.post-content ul, .post-content ol { margin: 0 0 1em 1.4em; }
.post-content img { border-radius: 8px; margin: 1em 0; }
.post-content__empty {
  color: var(--text);
  font-style: italic;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 16px;
  margin-top: 36px;
}
.pagination__pages {
  display: flex;
  align-items: center;
  gap: 8px;
}
.pagination__btn {
  min-width: 42px;
  height: 42px;
  padding: 0 10px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  border: 1px solid var(--border);
  color: var(--white);
  background: var(--surface);
  font-size: 0.95rem;
}
.pagination__btn:hover { border-color: var(--accent); color: var(--accent); }
.pagination__btn.is-active {
  border-color: var(--accent);
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  pointer-events: none;
}
.pagination__btn.is-disabled,
.pagination__nav.is-disabled { opacity: 0.35; pointer-events: none; }
.pagination__nav {
  color: var(--text);
  font-size: 0.9rem;
  text-decoration: none;
  white-space: nowrap;
}
.pagination__nav:hover { color: var(--accent); }

.error-page {
  position: relative;
  min-height: calc(100vh - var(--header-h) - 160px);
  display: grid;
  place-items: center;
  padding: 72px 0 96px;
  overflow: hidden;
}
.error-page__glow {
  position: absolute;
  width: min(70vw, 560px);
  height: min(70vw, 560px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(20, 167, 108, 0.18) 0%, transparent 68%);
  top: 42%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: errorGlow 5s ease-in-out infinite alternate;
}
.error-page__inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 640px;
}
.error-page__code {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: clamp(5rem, 18vw, 8.5rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.06em;
  color: var(--white);
}
.error-page__digit {
  display: inline-block;
  text-shadow: 0 0 28px rgba(20, 167, 108, 0.35);
}
.error-page__digit--pulse {
  color: var(--accent);
  animation: errorPulse 1.8s ease-in-out infinite;
}
.error-page__prompt {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin: 0 auto 22px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(19, 19, 19, 0.85);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88rem;
  color: var(--text);
}
.error-page__prompt-user { color: var(--accent); }
.error-page__prompt-path { color: var(--accent-2); }
.error-page__prompt-sep { color: var(--text); }
.error-page__cmd {
  color: var(--white);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.error-page__cmd::after {
  content: "";
  display: inline-block;
  width: 8px;
  height: 1em;
  margin-left: 4px;
  vertical-align: -2px;
  background: var(--accent);
  animation: errorCaret 1s steps(1) infinite;
}
.error-page__title {
  color: var(--white);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  margin-bottom: 12px;
}
.error-page__text {
  margin: 0 auto 28px;
  max-width: 42ch;
  color: var(--text);
}
.error-page__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

@keyframes errorGlow {
  from { opacity: 0.55; transform: translate(-50%, -50%) scale(0.92); }
  to { opacity: 1; transform: translate(-50%, -48%) scale(1.06); }
}
@keyframes errorPulse {
  0%, 100% { opacity: 1; transform: translateY(0); }
  50% { opacity: 0.72; transform: translateY(-4px); }
}
@keyframes errorCaret {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

@media (max-width: 640px) {
  .error-page { padding: 48px 0 72px; }
  .error-page__actions { width: 100%; }
  .error-page__actions .btn { flex: 1 1 100%; }
}

.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 40px 0;
  position: relative;
  z-index: 2;
}
.footer__inner { display: grid; gap: 18px; text-align: center; }
.footer__title { color: var(--white); font-weight: 700; margin-bottom: 4px; }
.footer__nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer__nav a { color: var(--text); }
.footer__nav a:hover { color: var(--accent); }
.footer__copy { font-size: 0.85rem; }

@media (max-width: 991px) {
  .header__burger { display: flex; margin-left: auto; }
  .header__social { display: none; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    margin: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 16px;
    background: rgba(19, 19, 19, 0.98);
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: 0.25s ease;
  }
  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .bento {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 200px;
  }
  .bento__item:nth-child(1),
  .bento__item:nth-child(2) {
    grid-column: span 2;
    grid-row: span 1;
  }
  .card-grid, .post-rail { grid-template-columns: 1fr 1fr; }
  .news-list { grid-template-columns: 1fr; }
  .cursor-glow { display: none; }
}

@media (max-width: 640px) {
  .hero--cinematic { min-height: auto; padding: 48px 0 40px; }
  .bento, .card-grid, .post-rail { grid-template-columns: 1fr; }
  .bento__item:nth-child(1),
  .bento__item:nth-child(2) { grid-column: span 1; }
  .hero__actions { flex-direction: column; }
  .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero__aurora, .hero__grid-bg, .btn--glow, .hero__pulse, .hero__typewriter,
  .error-page__glow, .error-page__digit--pulse, .error-page__cmd::after { animation: none; }
}
