:root {
  color-scheme: dark;
  --bg: #313338;
  --depth: #1e1f22;
  --surface: #2b2d31;
  --popup: #383a40;
  --border: #4e5058;
  --text: #f2f3f5;
  --muted: #b5bac1;
  --accent: #ffc800;
  --accent-hover: #ffd633;
  --accent-active: #e6b400;
  --success: #43c478;
  --radius: 16px;
  --shadow: 0 18px 50px rgba(0, 0, 0, .22);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Manrope, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body:has(dialog[open]) { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { text-wrap: balance; }
h1 { margin-bottom: 24px; font-size: clamp(40px, 5.4vw, 72px); line-height: 1.06; letter-spacing: -.045em; font-weight: 800; }
h1 span { color: var(--accent); }
h2 { margin-bottom: 0; font-size: clamp(30px, 3.5vw, 44px); line-height: 1.16; letter-spacing: -.03em; font-weight: 800; }
h3 { font-size: 20px; line-height: 1.4; }
p { color: var(--muted); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
::selection { background: var(--accent); color: var(--depth); }
.container { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.section { padding: 56px 0; }
.mono, .eyebrow { font-family: "JetBrains Mono", monospace; }
.eyebrow { display: flex; align-items: center; gap: 9px; margin-bottom: 16px; color: var(--accent); font-size: 12px; line-height: 1.5; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px rgba(67, 196, 120, .12); }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--accent); color: var(--depth); font-weight: 800; transform: translateY(-150%); }
.skip-link:focus { transform: none; }

.site-header { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid rgba(255, 255, 255, .06); background: rgba(30, 31, 34, .92); backdrop-filter: blur(16px); }
.header-inner { position: relative; display: flex; align-items: center; min-height: 76px; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--text); font-size: 18px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.brand-mark { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; overflow: hidden; border-radius: 10px; background: var(--accent); color: var(--depth); font-size: 14px; font-weight: 800; letter-spacing: -.04em; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .15); }
.brand-mark img { width: 100%; height: 100%; object-fit: cover; }
.main-nav { display: flex; align-items: center; justify-content: center; gap: 4px; flex: 1; }
.main-nav a { padding: 10px 14px; border-radius: 10px; color: var(--muted); font-size: 14px; font-weight: 600; text-decoration: none; transition: color .15s, background .15s; }
.main-nav a:hover { background: var(--popup); color: var(--text); }
.header-action { min-height: 40px; padding: 10px 16px; font-size: 14px; }
.menu-toggle { display: none !important; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 42px; padding: 10px 18px; border: 1.5px solid transparent; border-radius: 10px; font-weight: 700; line-height: 1.2; text-align: center; text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, transform .05s; }
.button:hover { transform: translateY(-1px); }
.button:active { transform: translateY(1px); }
.button-primary { background: var(--accent); color: var(--depth); }
.button-primary:hover { background: var(--accent-hover); }
.button-primary:active { background: var(--accent-active); }
.button-secondary { border-color: var(--border); background: var(--popup); color: var(--text); }
.button-secondary:hover { background: #45474d; }
.button-large { min-height: 50px; padding: 14px 21px; border-radius: 12px; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; padding: 0; border: 0; border-radius: 10px; background: transparent; color: var(--text); cursor: pointer; }
.icon-button:hover { background: #45474d; }

.hero { padding-top: 40px; }
.hero-panel { overflow: hidden; border: 1px solid rgba(255, 255, 255, .06); border-radius: 20px; background: var(--surface); box-shadow: var(--shadow); }
.hero-copy { position: relative; padding: 64px 64px 48px; overflow: hidden; }
.hero-copy::after { content: ""; position: absolute; top: 46px; right: 58px; width: 116px; height: 116px; opacity: .06; background-image: linear-gradient(var(--text) 2px, transparent 2px), linear-gradient(90deg, var(--text) 2px, transparent 2px); background-size: 16px 16px; transform: rotate(4deg); pointer-events: none; }
.hero-copy > * { position: relative; z-index: 1; }
.hero-lead { max-width: 680px; margin-bottom: 30px; font-size: 18px; line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 22px; margin: 32px 0 0; padding: 0; color: var(--muted); font-size: 13px; font-weight: 600; list-style: none; }
.tag-list li { display: flex; align-items: center; gap: 8px; }
.tag-list li::before { content: ""; width: 5px; height: 5px; border-radius: 1px; background: var(--accent); }
.hero-visual { position: relative; margin: 0; border-top: 1px solid rgba(255, 255, 255, .08); background: var(--depth); }
.hero-visual > img { width: 100%; height: auto; min-height: 260px; object-fit: cover; }
.hero-visual figcaption { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 18px 28px; color: var(--muted); font-size: 13px; }
.hero-visual figcaption .mono { color: var(--accent); font-size: 11px; letter-spacing: .06em; }

.section-heading { display: grid; grid-template-columns: 1.1fr .9fr; align-items: end; gap: 64px; margin-bottom: 36px; }
.section-heading > p { max-width: 480px; margin: 0 0 3px; font-size: 16px; }
.section-heading.compact { align-items: end; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.feature-card { position: relative; min-height: 310px; padding: 28px; border: 1px solid rgba(255, 255, 255, .05); border-radius: var(--radius); background: var(--surface); transition: border-color .2s, transform .2s; }
.feature-card:hover { border-color: rgba(255, 200, 0, .35); transform: translateY(-3px); }
.feature-icon { display: flex; align-items: center; justify-content: center; width: 54px; height: 54px; margin-bottom: 30px; border-radius: 12px; background: rgba(255, 200, 0, .14); color: var(--accent); }
.feature-icon svg { width: 30px; height: 30px; stroke-width: 1.7; }
.card-number { position: absolute; top: 30px; right: 28px; color: #6d6f78; font-size: 12px; }
.feature-card h3 { margin-bottom: 10px; }
.feature-card p { margin-bottom: 0; font-size: 14px; line-height: 1.7; }
.principle-note { display: flex; align-items: center; gap: 18px; margin-top: 18px; padding: 22px 26px; border: 1px solid rgba(255, 200, 0, .2); border-radius: var(--radius); background: rgba(255, 200, 0, .06); }
.principle-note p { margin: 0; font-size: 14px; }
.principle-note strong { color: var(--text); }
.principle-mark { color: var(--accent); font-size: 30px; line-height: 1; }

.section-gallery { background: var(--depth); }
.gallery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.gallery-item { position: relative; display: block; overflow: hidden; border: 1px solid rgba(255, 255, 255, .07); border-radius: var(--radius); background: var(--surface); color: var(--text); text-decoration: none; }
.gallery-item img { width: 100%; aspect-ratio: 1.75; object-fit: cover; transition: transform .35s, filter .35s; }
.gallery-item:hover img { transform: scale(1.025); filter: brightness(.82); }
.gallery-wide { grid-column: 1 / -1; }
.gallery-wide img { aspect-ratio: 2.35; }
.gallery-caption { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 18px; font-size: 14px; font-weight: 700; }
.gallery-caption .mono { color: var(--accent); font-size: 11px; }

.news-list { display: flex; flex-direction: column; gap: 12px; }
.news-card { display: grid; grid-template-columns: 180px 1fr 48px; align-items: center; gap: 28px; padding: 26px 28px; border: 1px solid rgba(255, 255, 255, .05); border-radius: var(--radius); background: var(--surface); }
.news-date { display: flex; flex-direction: column; gap: 5px; }
.news-date time { color: var(--accent); font-family: "JetBrains Mono", monospace; font-size: 13px; font-weight: 600; }
.news-date span { color: var(--muted); font-size: 11px; }
.news-body h3 { margin-bottom: 6px; font-size: 18px; }
.news-body p { margin: 0; font-size: 14px; }
.news-link { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 10px; color: var(--accent); transition: background .15s; }
.news-link:hover { background: rgba(255, 200, 0, .12); }

.community-section { padding-top: 24px; }
.community-card { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 48px; overflow: hidden; padding: 48px; border-radius: 20px; background: var(--surface); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.community-card::after { content: ""; position: absolute; right: -35px; bottom: -85px; width: 260px; height: 180px; border: 24px solid rgba(255, 200, 0, .045); border-radius: 50%; transform: rotate(-18deg); pointer-events: none; }
.community-copy { position: relative; z-index: 1; }
.community-copy h2 { margin-bottom: 16px; }
.community-copy p { max-width: 570px; margin: 0; }
.community-actions { position: relative; z-index: 1; display: flex; flex-direction: column; flex: none; gap: 12px; min-width: 220px; }
.site-footer { padding: 30px 0 40px; border-top: 1px solid rgba(255, 255, 255, .06); }
.footer-inner { display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; gap: 24px; }
.footer-inner > p { margin: 0; font-size: 12px; text-align: center; }
.footer-inner .footer-note { color: #858b94; font-size: 10px; line-height: 1.6; text-align: right; }

.lightbox { width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 24px; border: 0; background: rgba(20, 21, 23, .94); color: var(--text); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox::backdrop { background: rgba(20, 21, 23, .94); }
.lightbox-inner { width: min(1400px, 100%); }
.lightbox-toolbar, .lightbox-navigation { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.lightbox-toolbar { margin-bottom: 14px; color: var(--muted); font-size: 14px; }
.lightbox > .lightbox-inner > img { width: 100%; max-height: calc(100vh - 190px); border-radius: 12px; object-fit: contain; }
.lightbox-navigation { margin-top: 16px; }
.lightbox-navigation .mono { color: var(--muted); font-size: 12px; }

@media (max-width: 900px) {
  .header-inner { gap: 14px; }
  .main-nav { gap: 0; }
  .main-nav a { padding-inline: 10px; }
  .hero-copy { padding: 48px 40px 40px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: auto; }
  .feature-icon { margin-bottom: 22px; }
  .community-card { align-items: flex-start; flex-direction: column; }
  .community-actions { flex-direction: row; flex-wrap: wrap; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-inner > p:not(.footer-note) { display: none; }
}

@media (max-width: 680px) {
  html { scroll-padding-top: 78px; }
  .container { width: min(100% - 28px, 1180px); }
  .section { padding: 38px 0; }
  .site-header .brand { font-size: 16px; }
  .header-inner { min-height: 66px; justify-content: space-between; }
  .header-action { display: none; }
  .menu-toggle { display: inline-flex !important; order: 3; }
  .main-nav { position: absolute; top: 62px; left: 0; right: 0; display: none; align-items: stretch; flex-direction: column; padding: 8px; border: 1px solid rgba(255, 255, 255, .08); border-radius: 12px; background: var(--popup); box-shadow: var(--shadow); }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 12px 14px; }
  .hero { padding-top: 20px; }
  .hero-copy { padding: 34px 24px 30px; }
  .hero-copy::after { top: 24px; right: 20px; width: 80px; height: 80px; }
  h1 { font-size: clamp(36px, 11vw, 52px); }
  .hero-lead { font-size: 16px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .tag-list { align-items: flex-start; flex-direction: column; gap: 10px; margin-top: 26px; }
  .hero-visual > img { min-height: 210px; object-fit: cover; }
  .hero-visual figcaption { align-items: flex-start; flex-direction: column; gap: 4px; padding: 14px 18px; }
  .section-heading { grid-template-columns: 1fr; gap: 18px; margin-bottom: 26px; }
  .section-heading > p { font-size: 14px; }
  .feature-card { padding: 24px; }
  .principle-note { align-items: flex-start; padding: 20px; }
  .gallery-grid { grid-template-columns: 1fr; gap: 14px; }
  .gallery-wide { grid-column: auto; }
  .gallery-wide img, .gallery-item img { aspect-ratio: 1.65; }
  .news-card { grid-template-columns: 1fr 40px; gap: 14px; padding: 22px; }
  .news-date { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 12px; }
  .news-body h3 { font-size: 17px; }
  .news-link { grid-column: 2; grid-row: 2; }
  .community-card { gap: 28px; padding: 30px 24px; }
  .community-actions { align-items: stretch; flex-direction: column; width: 100%; min-width: 0; }
  .footer-inner { grid-template-columns: 1fr; justify-items: start; }
  .footer-inner .footer-note { text-align: left; }
  .lightbox { padding: 14px; }
  .lightbox-navigation .button { padding-inline: 12px; font-size: 12px; }
}

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