:root {
  color-scheme: light dark;
  --bg: light-dark(#f7f8fc, #0d101b);
  --panel: light-dark(#fff, #171b29);
  --panel-alt: light-dark(#f0f0f8, #202334);
  --ink: light-dark(#171927, #f5f3fb);
  --muted: light-dark(#696f82, #aeb1c0);
  --border: light-dark(#e6e8f0, #303444);
  --accent: light-dark(#6852d9, #ab9aff);
  --accent-deep: light-dark(#6048cd, #6b55d4);
  --accent-soft: light-dark(#ebe6ff, #292441);
  --green: light-dark(#148d68, #71d7af);
  --white: #fff;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: Inter, "Segoe UI", Arial, sans-serif; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }

.site-shell { max-width: 1180px; margin: auto; }
.site-header { display: flex; align-items: center; gap: 28px; min-height: 74px; padding: 0 42px; border-bottom: 1px solid var(--border); }
.brand { color: var(--ink); text-decoration: none; font-size: 19px; font-weight: 800; letter-spacing: -.6px; white-space: nowrap; }
.site-nav { display: flex; gap: 26px; margin-left: auto; }
.site-nav a { color: var(--muted); text-decoration: none; font-size: 13px; font-weight: 600; white-space: nowrap; }
.site-nav a:hover, .site-nav a:focus-visible { color: var(--accent); }
.nav-action { border: 1px solid var(--accent); color: var(--accent); border-radius: 9px; padding: 9px 13px; text-decoration: none; font-size: 12px; font-weight: 700; white-space: nowrap; }
.nav-action:hover, .nav-action:focus-visible { background: var(--accent-soft); }

.hero { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 40px; padding: 90px 42px 94px; }
.eyebrow, .section-eyebrow { color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: 1.4px; }
.eyebrow { display: flex; align-items: center; gap: 9px; }
.eyebrow-line { width: 20px; height: 2px; background: var(--accent); }
.hero h1 { font-size: clamp(36px, 5.2vw, 64px); line-height: 1.16; letter-spacing: -2.5px; margin: 18px 0 23px; }
.hero-accent { color: var(--accent); }
.hero-copy > p { color: var(--muted); font-size: 15px; line-height: 1.8; margin: 0 0 28px; max-width: 460px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 11px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; border-radius: 9px; padding: 13px 16px; font-size: 13px; font-weight: 750; text-decoration: none; border: 0; }
.button-primary { color: var(--white); background: var(--accent-deep); }
.button-primary:hover, .button-primary:focus-visible { filter: brightness(1.08); }
.button-secondary { color: var(--ink); background: var(--panel); border: 1px solid var(--border); }
.button-secondary:hover, .button-secondary:focus-visible { border-color: var(--accent); }
.hero-art { position: relative; display: grid; place-items: center; min-height: 365px; border-radius: 22px; background: radial-gradient(circle at center, var(--accent-soft), var(--bg) 66%); overflow: hidden; }
.orbit { position: absolute; border: 1px solid var(--border); border-radius: 50%; }
.orbit-one { width: 255px; height: 255px; }
.orbit-two { width: 355px; height: 355px; }
.art-core { display: grid; place-items: center; width: 132px; height: 132px; padding: 16px; border-radius: 26px; background: var(--accent-deep); color: var(--white); text-align: center; font-size: 15px; font-weight: 800; letter-spacing: 1px; line-height: 1.4; box-shadow: 0 22px 50px light-dark(#6e55d33a, #00000055); }
.floating { position: absolute; display: flex; align-items: center; gap: 10px; border: 1px solid var(--border); background: var(--panel); border-radius: 12px; padding: 11px 13px; box-shadow: 0 12px 25px light-dark(#25305614, #00000040); white-space: nowrap; }
.floating-active { top: 32px; right: 7px; }
.floating-next { bottom: 48px; left: 3px; }
.floating-icon { display: grid; place-items: center; flex: none; width: 30px; height: 30px; background: var(--accent-soft); color: var(--accent); border-radius: 8px; font-size: 21px; font-weight: 800; }
.floating strong { display: block; font-size: 12px; }
.floating small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }
.floating i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); margin-left: 8px; }
.art-caption { position: absolute; bottom: 9px; right: 9px; color: var(--muted); font-size: 8px; letter-spacing: 1px; }

.section { padding: 58px 42px 66px; border-top: 1px solid var(--border); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 25px; margin-bottom: 26px; }
h2 { font-size: 26px; line-height: 1.28; letter-spacing: -.8px; margin: 10px 0 0; }
.section-head > p { max-width: 300px; color: var(--muted); font-size: 12px; line-height: 1.6; margin: 0; }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.project-card { display: flex; flex-direction: column; min-height: 275px; padding: 23px; border-radius: 14px; border: 1px solid var(--border); background: var(--panel); }
.project-card.upcoming { background: var(--panel-alt); }
.project-top { display: flex; align-items: center; justify-content: space-between; }
.project-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; background: var(--accent-soft); color: var(--accent); font-size: 21px; font-weight: 800; }
.status { border-radius: 999px; background: var(--accent-soft); color: var(--accent); padding: 6px 10px; font-size: 10px; font-weight: 700; }
.project-kind { color: var(--accent); font-size: 10px; font-weight: 800; letter-spacing: 1.1px; margin-top: 25px; }
.project-card h3 { font-size: 21px; letter-spacing: -.5px; margin: 7px 0 8px; }
.project-card p { color: var(--muted); font-size: 12px; line-height: 1.7; max-width: 390px; margin: 0 0 22px; }
.project-links { display: flex; flex-wrap: wrap; gap: 18px; margin-top: auto; border-top: 1px solid var(--border); padding-top: 15px; font-size: 12px; font-weight: 700; }
.project-links a { color: var(--accent); text-decoration: none; }
.project-links a:hover { text-decoration: underline; }
.project-links span { color: var(--muted); }

.content-row { display: grid; grid-template-columns: 1.1fr .9fr; gap: 15px; padding: 0 42px 60px; }
.news-panel, .feedback-panel { border-radius: 14px; padding: 25px; }
.news-panel { border: 1px solid var(--border); background: var(--panel); }
.panel-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.text-action { padding: 0; border: 0; background: none; color: var(--accent); font-size: 11px; font-weight: 700; text-align: right; }
.text-action:hover { text-decoration: underline; }
.news-panel h2 { font-size: 21px; margin: 9px 0 16px; }
.news-item { display: flex; gap: 11px; border-top: 1px solid var(--border); padding: 13px 0; }
.news-dot { width: 6px; height: 6px; flex: none; border-radius: 50%; background: var(--accent); margin-top: 5px; }
.news-tag { display: block; color: var(--accent); font-size: 10px; font-weight: 800; letter-spacing: 1px; margin-bottom: 4px; }
.news-item strong { display: block; font-size: 12px; }
.news-item small { display: block; color: var(--muted); font-size: 11px; margin-top: 4px; line-height: 1.5; }
.news-read { display: inline-block; margin-top: 8px; padding: 0; border: 0; background: none; color: var(--accent); font-size: 11px; font-weight: 750; }
.news-read:hover { text-decoration: underline; }
.feedback-panel { display: flex; flex-direction: column; align-items: flex-start; background: var(--accent-soft); }
.feedback-panel h2 { font-size: 25px; margin: 13px 0 10px; }
.feedback-panel p { color: var(--muted); font-size: 12px; line-height: 1.7; margin: 0; }
.feedback-open { margin-top: auto; }
.site-footer { display: flex; justify-content: space-between; gap: 20px; align-items: flex-end; border-top: 1px solid var(--border); padding: 25px 42px 32px; color: var(--muted); font-size: 11px; }
.site-footer strong { color: var(--ink); display: block; font-size: 16px; }
.site-footer small { display: block; margin-top: 5px; font-size: 11px; }

.modal-backdrop { position: fixed; inset: 0; z-index: 10; display: grid; place-items: center; padding: 16px; background: #0009; }
.feedback-dialog { width: min(100%, 490px); max-height: calc(100vh - 32px); overflow: auto; background: var(--panel); color: var(--ink); border: 1px solid var(--border); border-radius: 16px; padding: 24px; box-shadow: 0 25px 70px #0005; }
.update-dialog { width: min(100%, 580px); max-height: calc(100vh - 32px); overflow: auto; background: var(--panel); color: var(--ink); border: 1px solid var(--border); border-radius: 16px; padding: 24px; box-shadow: 0 25px 70px #0005; }
.update-dialog h2 { margin: 7px 0 16px; }
.update-dialog p { white-space: pre-wrap; line-height: 1.75; font-size: 14px; margin: 0; }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.dialog-head h2 { margin: 0; font-size: 22px; }
.dialog-close { border: 0; background: transparent; color: var(--muted); font-size: 27px; line-height: 1; }
.feedback-dialog form { display: grid; gap: 9px; margin-top: 20px; }
.feedback-dialog label { font-size: 12px; font-weight: 700; }
.feedback-dialog input, .feedback-dialog textarea { width: 100%; padding: 11px 12px; border-radius: 8px; border: 1px solid var(--border); background: var(--bg); color: var(--ink); font-size: 15px; resize: vertical; }
.feedback-dialog textarea { min-height: 140px; }
.feedback-dialog .button { justify-self: end; margin-top: 4px; }
.form-status { min-height: 1.3em; color: var(--muted); font-size: 12px; margin: 0; }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 850px) {
  .site-header { gap: 16px; padding: 0 24px; }
  .site-nav { gap: 14px; }
  .hero { gap: 20px; padding: 68px 24px 72px; }
  .section { padding: 48px 24px 54px; }
  .content-row { padding: 0 24px 50px; }
  .site-footer { padding: 23px 24px; }
}

@media (max-width: 650px) {
  .site-header { flex-wrap: wrap; min-height: 0; padding: 17px 18px; row-gap: 16px; }
  .site-nav { order: 3; width: 100%; justify-content: space-between; gap: 8px; }
  .site-nav a { font-size: 12px; }
  .nav-action { margin-left: auto; }
  .hero { grid-template-columns: 1fr; gap: 34px; padding: 56px 18px 52px; }
  .hero h1 { font-size: clamp(36px, 10vw, 56px); }
  .hero-art { min-height: 305px; }
  .floating-active { right: 0; }
  .floating-next { left: 0; }
  .section { padding: 42px 18px; }
  .section-head { display: block; }
  .section-head > p { margin-top: 12px; }
  .project-grid, .content-row { grid-template-columns: 1fr; }
  .project-card { min-height: 245px; }
  .content-row { padding: 0 18px 42px; }
  .feedback-open { margin-top: 28px; }
  .site-footer { padding: 22px 18px; flex-direction: column; align-items: flex-start; }
}
