:root {
  --ink: #f1eee7;
  --muted: #a6a59e;
  --dim: #777a76;
  --line: #30332f;
  --surface: #171a19;
  --surface-2: #1e2220;
  --paper: #111413;
  --accent: #4f8cff;
  --accent-ink: #07152f;
  --warm: #9dbaff;
  --max: 1180px;
  --serif: Georgia, 'Times New Roman', serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: 'Montserrat', Arial, sans-serif; font-size: 15px; line-height: 1.65; }
body::before { content: ''; position: fixed; inset: 0; pointer-events: none; opacity: .2; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.14'/%3E%3C/svg%3E"); mix-blend-mode: soft-light; z-index: 10; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.site-shell { position: relative; overflow: clip; }
.topbar { position: sticky; top: 0; z-index: 20; min-height: 76px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 28px; border-bottom: 1px solid var(--line); background: var(--paper); }
.brand, .center-mark, .desktop-nav, .external-nav { display: flex; align-items: center; }
.desktop-nav { gap: 25px; justify-self: start; grid-column: 1; grid-row: 1; }
.desktop-nav a, .external-nav a { position: relative; color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .03em; transition: color .2s ease; }
.desktop-nav a:hover, .external-nav a:hover, .desktop-nav a[aria-current='page'] { color: var(--ink); }
.desktop-nav a[aria-current='page']::after { content: ''; position: absolute; left: 0; right: 0; bottom: -10px; height: 2px; background: var(--accent); }
.center-mark { grid-column: 2; grid-row: 1; width: 45px; height: 45px; justify-content: center; }
.center-mark img { width: 100%; height: 100%; object-fit: contain; animation: markFloat 5s ease-in-out infinite; transition: transform .25s ease; }
.center-mark:hover img { transform: scale(1.1) rotate(4deg); }
.external-nav { justify-self: end; grid-column: 3; grid-row: 1; gap: 25px; }
.external-nav a:last-child::after { content: '↗'; margin-left: 5px; color: var(--accent); }
.menu-toggle, .mobile-menu { display: none; }

.page-view { min-height: 1px; }
.hero { position: relative; max-width: var(--max); min-height: 680px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(390px, .92fr); gap: 60px; align-items: center; padding: 86px 28px 110px; }
.hero-copy { position: relative; z-index: 2; max-width: 650px; }
.eyebrow { margin: 0 0 18px; color: var(--accent); font-size: 10px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { letter-spacing: -.045em; }
h1 { max-width: 720px; margin-bottom: 18px; font-size: clamp(48px, 6.2vw, 84px); line-height: .98; font-weight: 700; }
.type-line { display: inline-block; min-width: 4.6ch; color: var(--accent); font-family: var(--serif); font-style: italic; font-weight: 400; }
.hero-subtitle { margin-bottom: 28px; color: var(--warm); font-size: 16px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.hero-intro { max-width: 470px; margin-bottom: 34px; color: var(--muted); font-size: 17px; line-height: 1.7; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 47px; padding: 0 20px; border: 1px solid transparent; font-size: 12px; font-weight: 700; letter-spacing: .03em; transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--accent); color: var(--accent-ink); }
.button-primary:hover { background: #e6f885; }
.button-ghost { border-color: var(--line); color: var(--ink); }
.button-ghost:hover { border-color: var(--muted); }
.button-small { min-height: 38px; padding: 0 14px; font-size: 11px; }
.hero-visual { position: relative; justify-self: end; width: min(100%, 490px); }
.hero-frame { position: relative; aspect-ratio: .88; overflow: hidden; border: 1px solid #263f75; background: #111a2b; animation: frameBreath 8s ease-in-out infinite; }
.hero-frame::after { content: ''; position: absolute; inset: 0; border: 1px solid rgba(79,140,255,.25); pointer-events: none; }
.hero-frame::before { content: ''; position: absolute; inset: 12px; border: 1px solid rgba(79,140,255,.35); pointer-events: none; animation: frameScan 5.6s ease-in-out infinite; }
.hero-frame img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.78) contrast(1.05); }
.hero-frame .hero-character { position: absolute; inset: 4% 4% 0; z-index: 1; width: 92%; height: 96%; object-fit: contain; filter: saturate(.94) drop-shadow(0 22px 22px rgba(0,0,0,.38)); animation: characterFloat 6.5s ease-in-out infinite; }
.hero-stamp { position: absolute; right: 18px; bottom: 18px; display: flex; flex-direction: column; align-items: end; color: white; text-align: right; text-shadow: 0 2px 12px rgba(0,0,0,.55); }
.hero-stamp span { font-size: 30px; font-weight: 800; line-height: 1; letter-spacing: .08em; }
.hero-stamp small { font-size: 9px; letter-spacing: .16em; text-transform: uppercase; }
.hero-note { position: absolute; left: -25px; bottom: 30px; padding: 8px 10px; border-left: 2px solid var(--accent); background: var(--surface); color: var(--muted); font-size: 10px; letter-spacing: .11em; text-transform: uppercase; writing-mode: vertical-rl; transform: rotate(180deg); animation: noteFloat 5s ease-in-out infinite; }
.scroll-cue { position: absolute; left: 28px; bottom: 30px; display: flex; gap: 10px; align-items: center; color: var(--dim); font-size: 10px; letter-spacing: .13em; text-transform: uppercase; }
.scroll-cue span { width: 25px; height: 1px; background: var(--accent); }

.section, .section-wide { max-width: var(--max); margin: 0 auto; padding: 110px 28px; }
.section-wide { max-width: 1320px; }
.server-status { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 390px); gap: clamp(28px, 6vw, 76px); align-items: center; border-top: 1px solid var(--line); }
.status-copy { display: flex; flex-direction: column; justify-content: center; min-height: 300px; }
.status-copy h2 { max-width: 570px; margin-bottom: 28px; font-size: clamp(34px, 4vw, 56px); line-height: 1.02; }
.server-address { width: fit-content; margin-bottom: 12px; color: var(--ink); font-size: clamp(22px, 3vw, 34px); font-weight: 700; letter-spacing: -.04em; }
.server-online { display: flex; align-items: center; gap: 9px; margin: 0; color: var(--muted); font-size: 15px; }
.server-online strong { color: var(--ink); font-weight: 600; }
.status-dot { width: 9px; height: 9px; flex: 0 0 9px; border-radius: 50%; background: var(--dim); box-shadow: 0 0 0 4px rgba(119,122,118,.1); transition: background .25s ease, box-shadow .25s ease; }
.status-dot.is-online { background: #56d49a; box-shadow: 0 0 0 4px rgba(86,212,154,.12); }
.status-dot.is-offline { background: #d16c7b; box-shadow: 0 0 0 4px rgba(209,108,123,.12); }
.status-note { margin: 18px 0 0; color: var(--dim); font-size: 12px; }
.status-art { position: relative; isolation: isolate; display: grid; width: min(100%, 390px); aspect-ratio: 1; min-height: 0; justify-self: end; overflow: hidden; place-items: center; border: 1px solid #263f75; border-radius: 0; background: #111a2b; box-shadow: none; cursor: crosshair; animation: frameBreath 8s ease-in-out infinite; }
.status-art::before { content: ''; position: absolute; inset: 12px; border: 1px solid rgba(79,140,255,.35); border-radius: 0; pointer-events: none; animation: frameScan 5.6s ease-in-out infinite; }
.status-art::after { content: ''; position: absolute; inset: -30%; z-index: -1; background: conic-gradient(from 90deg, transparent 0deg, rgba(79,140,255,.12) 70deg, transparent 135deg); animation: statusSweep 9s linear infinite; }
.status-glow { position: absolute; width: 58%; aspect-ratio: 1; border-radius: 50%; background: rgba(79,140,255,.14); filter: blur(28px); transform: translate3d(var(--logo-x, 0), var(--logo-y, 0), 0); transition: transform .25s ease; }
.status-logo { position: relative; z-index: 1; display: block; width: 67%; max-width: 260px; height: auto; object-fit: contain; filter: drop-shadow(0 14px 18px rgba(0,0,0,.4)); transform: translate3d(var(--logo-x, 0), var(--logo-y, 0), 0) rotate(-2deg); transition: transform .25s cubic-bezier(.2,.75,.25,1), filter .25s ease; animation: logoFloat 5.5s ease-in-out infinite; }
.status-art:hover .status-logo { filter: drop-shadow(0 18px 24px rgba(0,0,0,.45)); }
.gallery-section { border-top: 1px solid var(--line); }
.section-heading { margin-bottom: 46px; }
.section-heading h2 { margin-bottom: 0; font-size: clamp(36px, 4.5vw, 62px); line-height: 1.02; }
.section-heading h2 em { color: var(--accent); font-family: var(--serif); font-weight: 400; }
.split-heading { display: flex; justify-content: space-between; align-items: end; gap: 40px; }
.section-aside { max-width: 360px; margin-bottom: 5px; color: var(--muted); font-size: 13px; }
.gallery-wrap { position: relative; display: flex; align-items: center; gap: 15px; }
.gallery-track { display: flex; gap: 14px; min-width: 0; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px 2px 12px; }
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track figure { flex: 0 0 clamp(225px, 29vw, 360px); margin: 0; scroll-snap-align: start; }
.gallery-track img { display: block; width: 100%; aspect-ratio: 1.48; object-fit: cover; border: 1px solid var(--line); filter: saturate(.82); transition: filter .3s ease, transform .3s ease; }
.gallery-track figure:hover img { filter: saturate(1); transform: translateY(-3px); }
.gallery-track figcaption { padding-top: 10px; color: var(--muted); font-size: 11px; letter-spacing: .03em; }
.gallery-arrow { flex: 0 0 auto; display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; transition: background .2s ease, color .2s ease; }
.gallery-arrow:hover { background: var(--accent); color: var(--accent-ink); }
.gallery-progress { height: 2px; margin: 18px 57px 0; background: var(--line); }
.gallery-progress span { display: block; width: 20%; height: 100%; background: var(--accent); transition: width .2s ease; }

.features { border-top: 1px solid var(--line); }
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.feature-card { min-height: 250px; padding: 34px 36px; background: var(--paper); transition: background .25s ease, transform .25s ease, border-color .25s ease; }
.reveal-on-scroll.is-visible.feature-card:hover { transform: translateY(-5px); background: var(--surface); }
.feature-line { display: block; width: 30px; height: 3px; margin-bottom: 28px; background: var(--accent); }
.feature-card h3 { margin-bottom: 14px; font-size: 26px; }
.feature-card p { max-width: 430px; margin-bottom: 0; color: var(--muted); font-size: 14px; line-height: 1.75; }
.info-link { display: block; width: fit-content; margin: 60px auto 0; border-bottom: 1px solid var(--accent); padding-bottom: 4px; color: var(--ink); font-size: 13px; font-weight: 600; }
.info-link span, .text-link span { color: var(--accent); }

.faq-section { border-top: 1px solid var(--line); }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0; color: var(--ink); font-size: 16px; font-weight: 600; cursor: pointer; list-style: none; transition: color .2s ease, padding-left .2s ease; }
.faq-list summary:hover { padding-left: 8px; color: var(--accent); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; color: var(--accent); font-size: 22px; font-weight: 400; }
.faq-list details[open] summary::after { content: '–'; }
.faq-list details p { max-width: 680px; margin: -4px 0 23px; color: var(--muted); font-size: 14px; }
.faq-list strong { color: var(--ink); }

.news-preview { border-top: 1px solid var(--line); }
.text-link { color: var(--muted); font-size: 12px; font-weight: 600; }
.text-link:hover { color: var(--ink); }
.post-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; align-items: start; }
.post-card { display: flex; flex-direction: column; min-height: 225px; padding: 24px; border: 1px solid var(--line); background: var(--surface); transition: border-color .25s ease, background .25s ease, transform .25s ease; }
.post-card:hover { border-color: #3e5785; background: var(--surface-2); }
.post-card.reveal-on-scroll { transition: opacity .7s ease var(--reveal-delay, 0ms), transform .7s cubic-bezier(.2,.75,.25,1) var(--reveal-delay, 0ms), border-color .4s ease, background .4s ease; }
.post-meta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-bottom: 24px; color: var(--dim); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.post-author { display: flex; align-items: center; gap: 12px; min-width: 0; text-transform: none; letter-spacing: normal; }
.post-avatar { display: block; flex: 0 0 52px; width: 52px; height: 52px; padding: 3px; border: 1px solid #304b7f; border-radius: 0; background: #111a2b; overflow: hidden; transition: border-color .4s ease, box-shadow .4s ease; }
.post-avatar img { display: block; width: 100%; height: 100%; border-radius: 0; object-fit: cover; transition: transform .5s cubic-bezier(.22,1,.36,1); }
.post-author-details { display: flex; flex-direction: column; gap: 3px; }
.post-author-name { color: var(--ink); font-size: 13px; font-weight: 600; }
.post-kind { color: var(--accent); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; }
@media (hover: hover) {
  .post-author:hover .post-avatar { border-color: var(--accent); box-shadow: 0 0 14px rgba(79,140,255,.15); }
  .post-author:hover img { transform: scale(1.06); }
}
.post-card h3 { margin-bottom: 10px; font-size: 23px; line-height: 1.12; }
.post-card p { margin: 0; color: var(--muted); font-size: 13px; }
.post-card .read-more { width: fit-content; margin-top: auto; padding: 22px 0 0; border: 0; background: transparent; color: var(--ink); font-size: 11px; font-weight: 700; cursor: pointer; }
.post-card .read-more:hover { color: var(--accent); }
.post-card .read-more-arrow { color: var(--accent); transition: transform .25s ease; display: inline-block; }
.post-card .read-more:hover .read-more-arrow { transform: translateX(4px); }
.post-text-clip { overflow: hidden; flex: 0 0 auto; }
.post-card .post-text { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.75; white-space: pre-wrap; word-break: normal; overflow-wrap: break-word; hyphens: none; }
.post-text > span { display: inline; }
.read-more:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.post-card.is-expanded .read-more-arrow { transform: rotate(90deg); }

.news-page { border-top: 1px solid var(--line); }
.news-page-head { padding-top: 95px; padding-bottom: 50px; }
.news-page-head h1 { max-width: 600px; margin-bottom: 22px; font-size: clamp(52px, 7vw, 86px); }
.news-page-head > p:last-child { max-width: 420px; color: var(--muted); }
.news-tabs { max-width: var(--max); margin: 0 auto; padding: 0 28px; display: flex; gap: 24px; border-bottom: 1px solid var(--line); }
.news-tab { position: relative; padding: 0 0 16px; border: 0; background: transparent; color: var(--muted); font-size: 13px; font-weight: 600; cursor: pointer; }
.news-tab.is-active { color: var(--ink); }
.news-tab.is-active::after { content: ''; position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; background: var(--accent); }
.news-feed { display: grid; gap: 16px; padding-top: 50px; }
.news-feed .post-card { min-height: 0; padding: 30px; }
.news-feed .post-card h3 { font-size: clamp(24px, 3vw, 36px); }
.news-empty { padding: 50px 0; color: var(--muted); }

.reveal-on-scroll { opacity: 0; transform: translateY(24px); transition: opacity .7s ease var(--reveal-delay, 0ms), transform .7s cubic-bezier(.2,.75,.25,1) var(--reveal-delay, 0ms); }
.reveal-on-scroll.is-visible { opacity: 1; transform: translateY(0); }

.footer { border-top: 1px solid var(--line); padding-top: 64px; padding-bottom: 28px; }
.footer-main { display: flex; justify-content: space-between; gap: 40px; padding-bottom: 75px; }
.footer-identity { display: grid; grid-template-columns: 48px auto; gap: 0 15px; align-items: center; }
.footer-identity > img { grid-row: span 2; width: 43px; height: 43px; object-fit: contain; }
.footer-identity strong { display: block; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; }
.footer-identity div > span { display: block; color: var(--muted); font-size: 11px; }
.footer-buttons { grid-column: 2; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.footer-contacts { min-width: 260px; display: flex; flex-direction: column; align-items: end; gap: 4px; }
.footer-contacts .eyebrow { margin-bottom: 10px; }
.footer-contacts a { color: var(--muted); font-size: 13px; }
.footer-contacts a:hover { color: var(--ink); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--dim); font-size: 10px; letter-spacing: .02em; }
.footer-bottom span:last-child { max-width: 620px; text-align: right; }

@keyframes characterFloat { 0%, 100% { transform: translate3d(0, 0, 0) rotate(-1deg); } 50% { transform: translate3d(0, -12px, 0) rotate(1deg); } }
@keyframes frameBreath { 0%, 100% { border-color: #263f75; } 50% { border-color: #4f8cff; } }
@keyframes frameScan { 0%, 100% { transform: translateY(0); opacity: .32; } 50% { transform: translateY(12px); opacity: .72; } }
@keyframes noteFloat { 0%, 100% { transform: rotate(180deg) translateX(0); } 50% { transform: rotate(180deg) translateX(-5px); } }
@keyframes logoFloat { 0%, 100% { margin-top: 0; } 50% { margin-top: -8px; } }
@keyframes statusSweep { to { transform: rotate(360deg); } }
@keyframes markFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }

[hidden] { display: none !important; }
@media (max-width: 820px) {
  .topbar { min-height: 68px; padding: 0 18px; grid-template-columns: 1fr auto 1fr; }
  .brand span, .desktop-nav, .external-nav { display: none; }
  .center-mark { width: 38px; height: 38px; }
  .menu-toggle { position: relative; z-index: 2; display: flex; justify-self: end; width: 40px; height: 40px; flex-direction: column; justify-content: center; gap: 6px; padding: 0; border: 0; background: transparent; cursor: pointer; }
  .menu-toggle span:not(.sr-only) { display: block; width: 23px; height: 1px; background: var(--ink); }
  .mobile-menu { position: absolute; top: 67px; right: 0; left: 0; display: none; padding: 15px 18px 22px; border-bottom: 1px solid var(--line); background: var(--paper); }
  .mobile-menu.is-open { display: grid; gap: 14px; }
  .mobile-menu a { padding: 8px 0; color: var(--muted); font-size: 14px; font-weight: 600; }
  .mobile-menu a:hover { color: var(--ink); }
  .hero { min-height: 0; grid-template-columns: 1fr; gap: 48px; padding: 75px 20px 95px; }
  h1 { font-size: clamp(45px, 12vw, 70px); }
  .hero-visual { justify-self: stretch; width: min(100%, 500px); margin: 0 auto; }
  .hero-frame { aspect-ratio: 1.2; }
  .hero-note { left: -7px; bottom: 20px; }
  .scroll-cue { left: 20px; bottom: 24px; }
  .section, .section-wide { padding: 78px 20px; }
  .split-heading { display: block; }
  .section-aside { margin-top: 20px; }
  .server-status { grid-template-columns: minmax(0, 1fr) 132px; gap: 16px; }
  .status-copy { min-height: 0; }
  .status-art { width: 100%; min-height: 0; border-radius: 0; }
  .status-art::before { inset: 9px; border-radius: 0; }
  .status-logo { width: 78%; }
  .gallery-wrap { gap: 8px; }
  .gallery-arrow { display: none; }
  .gallery-progress { margin: 12px 0 0; }
  .feature-grid, .post-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: 0; padding: 28px 24px; }
  .news-tabs { padding: 0 20px; }
  .news-page-head { padding-top: 78px; }
  .news-feed { padding-top: 36px; }
  .footer-main { display: block; padding-bottom: 52px; }
  .footer-contacts { align-items: start; margin-top: 48px; }
  .footer-bottom { display: block; }
  .footer-bottom span { display: block; }
  .footer-bottom span:last-child { margin-top: 12px; text-align: left; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; } .reveal-on-scroll { opacity: 1; transform: none; } }
