:root {
  color-scheme: dark;
  --bg: #0b0b0c;
  --bg-soft: #101114;
  --panel: #141416;
  --panel-2: #1a1b20;
  --text: #f2f2f0;
  --muted: #cfcfc9;
  --line: rgba(255,255,255,.08);
  --line-2: rgba(255,255,255,.12);
  --accent: #ffffff;
  --soft: #1c1c20;
  --max: 1120px;
  --shadow-soft: 0 12px 30px rgba(0,0,0,.16);
  --shadow-medium: 0 20px 50px rgba(0,0,0,.22);
  --shadow-strong: 0 28px 80px rgba(0,0,0,.30);
  --section-gap: 56px;
  --content-gap: 1.15em;
  --motion-standard: cubic-bezier(0.4,0,0.2,1);
  --hover-scale: 1.02;
  --hover-brightness: 1.08;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top, rgba(255,255,255,.05), transparent 32%),
    linear-gradient(180deg, #0b0b0c 0%, #101114 100%);
  color: var(--text);
  line-height: 1.6;
  position: relative;
}
body::before {
  content: "";
  position: fixed; inset: 0; pointer-events: none; z-index: -1;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,.012) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.01) 0 1px, transparent 1px 4px);
  opacity: .18;
}
a { color: var(--text); text-decoration: none; transition: opacity .18s ease, transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease; }
a:hover { opacity: .92; }
a:focus-visible, button:focus-visible { outline: 2px solid rgba(255,255,255,.65); outline-offset: 3px; }
img { max-width: 100%; height: auto; display: block; }
.container { width: min(calc(100% - 32px), var(--max)); margin: 0 auto; }

.site-header {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(18px) saturate(135%);
  -webkit-backdrop-filter: blur(18px) saturate(135%);
  background: linear-gradient(180deg, rgba(15,15,17,.86), rgba(11,11,12,.78));
  border-bottom: 1px solid rgba(255,255,255,.09);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
}
.header-inner {
  min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 18px;
}
.brand { display: inline-flex; align-items: center; gap: 14px; font-weight: 700; letter-spacing: .03em; }
.brand-mark {
  width: 48px; height: 48px; flex: 0 0 auto; border-radius: 16px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.025)); border: 1px solid rgba(255,255,255,.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 12px 28px rgba(0,0,0,.24);
}
.brand-mark img { width: 32px; height: 32px; filter: drop-shadow(0 0 10px rgba(255,255,255,.08)); }
.brand-lockup { display: flex; flex-direction: column; gap: 3px; line-height: 1; }
.brand-lockup strong { font-size: 15px; font-weight: 700; letter-spacing: .02em; }
.brand-lockup span { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.nav { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.nav a { color: var(--muted); font-size: 15px; padding: 6px 0; position: relative; }
.nav a.active, .nav a:hover { color: var(--text); }
.nav a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -14px; height: 1px; background: rgba(255,255,255,.8);
}

.hero { padding: 78px 0 54px; }
.hero-grid { display: grid; grid-template-columns: 1.2fr .95fr; gap: 26px; align-items: stretch; }
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 12px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--muted);
  font-size: 13px; letter-spacing: .02em; margin-bottom: 18px;
}
.kicker::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.8); display: inline-block; }
h1 { font-size: clamp(40px, 6vw, 74px); line-height: 1.02; margin: 0 0 18px; letter-spacing: -.04em; max-width: 10.5ch; }
.hero p.lead { font-size: clamp(18px, 2.4vw, 22px); color: var(--muted); margin: 0 0 22px; max-width: 42rem; }
.hero-panel, .panel, .card, .story-frame {
  background: linear-gradient(180deg, rgba(255,255,255,.045) 0%, rgba(255,255,255,.025) 100%);
  border: 1px solid var(--line);
  border-radius: 24px; 
  box-shadow: var(--shadow-medium);
}
.hero-panel, .panel, .story-frame { padding: 24px; }
.hero-panel { display: grid; gap: 18px; position: relative; overflow: hidden; animation: fadeUp .7s ease both .08s; }
.hero-panel::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 1px; background: linear-gradient(90deg, rgba(255,255,255,.38), rgba(255,255,255,0)); }
.hero-panel h2, .panel h2 { margin: 0; font-size: 20px; letter-spacing: -.02em; }
.hero-panel p, .panel p { color: var(--muted); margin: 0; }
.hero-panel-brand {
  display: flex; align-items: center; gap: 14px;
  padding-bottom: 2px;
}
.hero-mark {
  width: 82px; height: 82px; border-radius: 22px; flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.03)); border: 1px solid rgba(255,255,255,.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 18px 36px rgba(0,0,0,.26);
}
.hero-mark img { width: 54px; height: 54px; filter: drop-shadow(0 0 14px rgba(255,255,255,.10)); }
.hero-panel-copy { display: flex; flex-direction: column; gap: 4px; }
.hero-panel-copy span {
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.hero-panel-copy strong { font-size: 18px; letter-spacing: -.02em; }
.mini-manifesto {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
  color: var(--text);
  font-size: 16px;
}
.hero-pillar-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 10px;
}
.hero-pillar {
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
  transition: transform .22s ease, border-color .22s ease, background .22s ease, box-shadow .22s ease;
  animation: fadeUp .55s ease both;
}
.hero-pillar:nth-child(1) { animation-delay: .12s; }
.hero-pillar:nth-child(2) { animation-delay: .16s; }
.hero-pillar:nth-child(3) { animation-delay: .20s; }
.hero-pillar:nth-child(4) { animation-delay: .24s; }
.hero-pillar:nth-child(5) { animation-delay: .28s; }
.hero-pillar:nth-child(6) { animation-delay: .32s; }
.hero-pillar:hover { transform: translateY(-3px); border-color: rgba(255,255,255,.18); background: rgba(255,255,255,.045); box-shadow: 0 16px 34px rgba(0,0,0,.24); }
.hero-pillar span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 4px;
}
.hero-pillar strong { font-size: 16px; letter-spacing: -.01em; }
.button-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 18px; border-radius: 999px;
  border: 1px solid var(--line-2); background: transparent; color: var(--text); font-weight: 600;
}
.button:hover { border-color: rgba(255,255,255,.22); transform: translateY(-1px); }
.button.primary { background: var(--accent); color: #0b0b0c; border-color: var(--accent); }

.section { padding: var(--section-gap) 0; }
.section.section-lined { border-top: 1px solid var(--line); }
.section-header { margin-bottom: 22px; }
.section-header h2, .section-header h1 { font-size: clamp(30px, 3vw, 44px); line-height: 1.08; margin: 0 0 10px; letter-spacing: -.03em; }
.section-header p { margin: 0; color: var(--muted); max-width: 44rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.card { padding: 22px; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, background .2s ease; }
.card:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.14); box-shadow: 0 18px 34px rgba(0,0,0,.22); }
.card h3 { margin: 0 0 8px; font-size: 20px; letter-spacing: -.02em; }
.card p { margin: 0; color: var(--muted); }

.prose { max-width: 820px; }
.prose p { color: var(--muted); margin: 0 0 18px; font-size: 18px; }
.prose strong { color: var(--text); }

.pillar-card { position: relative; overflow: hidden; }
.pillar-card .num {
  width: 42px; height: 42px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,.08)); border: 1px solid rgba(255,255,255,.14); color: var(--text); font-size: 14px; font-weight: 800; margin-bottom: 14px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
.pillar-card h3 { margin-bottom: 8px; }
.pillar-card p { margin-bottom: 12px; }
.pillar-card .mini {
  font-size: 14px;
  color: var(--muted);
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.status-grid { display:grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }
.status-box {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
  border-radius: 18px;
  padding: 18px;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.status-box:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.14); background: rgba(255,255,255,.04); }
.status-box h3 { margin: 0 0 12px; font-size: 18px; }
.status-box ul { margin: 0; padding: 0; color: var(--muted); list-style: none; }
.status-box li { position: relative; padding-left: 20px; }
.status-box li::before { content: ""; position: absolute; left: 0; top: .65em; width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.72); box-shadow: 0 0 0 4px rgba(255,255,255,.04); }
.status-box li + li { margin-top: 10px; }

.note {
  color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); margin-top: 18px; padding-top: 18px;
}
.links-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.link-card { display: block; position: relative; overflow: hidden; }
.link-card::after {
  content: "↗";
  position: absolute; top: 18px; right: 18px; color: var(--muted); font-size: 18px;
}
.link-card:hover::after { transform: translate(1px,-1px); color: var(--text); }
.link-top { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.link-icon {
  width: 44px; height: 44px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.045); border: 1px solid var(--line); color: var(--text); flex: 0 0 auto;
}
.link-icon svg { width: 22px; height: 22px; }
.link-meta { min-width: 0; }
.link-card span.k { display: block; color: var(--muted); font-size: 14px; margin-bottom: 2px; }
.link-card strong { display: block; font-size: 22px; margin-bottom: 0; letter-spacing: -.02em; }
.link-card em { font-style: normal; color: var(--muted); display: block; }
.story-frame { max-width: 920px; }

.site-footer { padding: 52px 0 66px; border-top: 1px solid var(--line); margin-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 18px; align-items: start; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-mark {
  width: 48px; height: 48px; border-radius: 16px; flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.025)); border: 1px solid rgba(255,255,255,.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}
.footer-mark img { width: 32px; height: 32px; filter: drop-shadow(0 0 10px rgba(255,255,255,.08)); }
.footer-title { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.footer-text, .footer-links a { color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 14px; justify-content: flex-end; }
.footer-links a { display: inline-flex; align-items: center; gap: 8px; }
.footer-links svg { width: 14px; height: 14px; color: var(--muted); }
.small { font-size: 14px; color: var(--muted); }
.telegram-inline { margin-top: 20px; display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; }
.telegram-inline svg { width: 18px; height: 18px; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

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

@media (max-width: 980px) {
  .hero-grid, .grid-4, .grid-3, .footer-grid, .status-grid { grid-template-columns: 1fr; }
  .links-grid, .grid-2 { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
}
@media (max-width: 720px) {
  .header-inner { padding: 12px 0; align-items: flex-start; flex-direction: column; }
  .nav { gap: 12px 14px; }
  .brand-lockup span { letter-spacing: .08em; }
  .nav a.active::after { bottom: -8px; }
  .hero { padding-top: 42px; }
  .hero-panel, .panel, .card, .story-frame { padding: 18px; border-radius: 20px; }
  .prose p { font-size: 17px; }
  h1 { max-width: 12ch; }
  .hero-pillar-grid { grid-template-columns: 1fr; }
}


.lang-switch{
  display:flex; gap:8px; align-items:center; flex-wrap:wrap;
}
.lang-switch a{
  display:inline-flex; align-items:center; justify-content:center;
  min-width:42px; height:34px; padding:0 12px;
  border-radius:999px; border:1px solid var(--line);
  background:rgba(255,255,255,.03);
  color:var(--muted); font-size:12px; letter-spacing:.12em; text-transform:uppercase;
}
.lang-switch a:hover{ color:var(--text); background:rgba(255,255,255,.05); transform:translateY(-1px); }
.lang-switch a.active{
  color:var(--text); border-color:rgba(255,255,255,.18); background:rgba(255,255,255,.08);
}

.draft-banner-wrap{ padding-top:26px; }
.draft-banner{
  display:flex; flex-direction:column; gap:6px;
  padding:14px 16px; border-radius:18px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.04);
  color:var(--muted);
}
.draft-banner strong{ color:var(--text); font-size:14px; letter-spacing:.01em; }



.status-grid-compact{
  margin-top: 18px;
}
@media (min-width: 860px){
  .status-grid-compact{
    grid-template-columns: 1.1fr .9fr;
  }
}


.project-map-grid{
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.stack-list{
  display:grid;
  gap:12px;
}
.stack-item{
  padding:14px 16px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.035);
  color:var(--muted);
}
.stack-item strong{ color:var(--text); }
@media (max-width:980px){
  .project-map-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width:720px){
  .project-map-grid{
    grid-template-columns: 1fr;
  }
}


.glossary-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:16px;
}
.glossary-card{
  padding:18px 18px 16px;
  border-radius:20px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.035);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
.glossary-card h3{
  margin:0 0 10px;
}
.glossary-def{
  margin:0 0 10px;
  color:var(--text);
}
.glossary-note{
  margin:0;
  color:var(--muted);
  font-size:14px;
}
@media (max-width: 840px){
  .glossary-grid{
    grid-template-columns: 1fr;
  }
}


.principles-list{
  display:grid;
  gap:14px;
}
.principle-card{
  display:grid;
  grid-template-columns: 64px 1fr;
  gap:16px;
  padding:18px;
  border-radius:22px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.035);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
.principle-num{
  display:flex;
  align-items:flex-start;
  justify-content:center;
  font-size:28px;
  line-height:1;
  letter-spacing:-.04em;
  color:var(--text);
  opacity:.92;
}
.principle-body h3{
  margin:0 0 8px;
}
.principle-body p{
  margin:0;
  color:var(--muted);
}
@media (max-width:720px){
  .principle-card{
    grid-template-columns: 1fr;
    gap:10px;
  }
  .principle-num{
    justify-content:flex-start;
  }
}




/* v6.5 stabilized header + project subnav */
.header-actions{
  display:flex;
  align-items:center;
  gap:16px;
  margin-left:auto;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.simple-nav{
  display:flex;
  align-items:center;
  gap:22px;
  flex-wrap:wrap;
}
.simple-nav a{
  color:var(--muted);
  font-size:15px;
  padding:6px 0;
  position:relative;
  white-space:nowrap;
}
.simple-nav a:hover,
.simple-nav a.active{
  color:var(--text);
}
.simple-nav a.active::after{
  content:"";
  position:absolute;
  left:0; right:0; bottom:-14px;
  height:1px;
  background:rgba(255,255,255,.8);
}

.project-subnav-wrap{
  border-top:1px solid rgba(255,255,255,.06);
  border-bottom:1px solid rgba(255,255,255,.06);
  background:rgba(255,255,255,.015);
}
.project-subnav{
  display:flex;
  gap:10px;
  flex-wrap:nowrap;
  overflow-x:auto;
  padding:12px 0 14px;
  scrollbar-width:thin;
}
.project-subnav::-webkit-scrollbar{
  height:8px;
}
.project-subnav::-webkit-scrollbar-thumb{
  background:rgba(255,255,255,.12);
  border-radius:999px;
}
.project-subnav a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 14px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.025);
  color:var(--muted);
  font-size:14px;
  white-space:nowrap;
  flex:0 0 auto;
}
.project-subnav a:hover,
.project-subnav a.active{
  color:var(--text);
  background:rgba(255,255,255,.06);
  border-color:rgba(255,255,255,.16);
}

@media (max-width:1180px){
  .header-inner{
    align-items:flex-start;
    padding:14px 0;
    flex-direction:column;
  }
  .header-actions{
    width:100%;
    margin-left:0;
    justify-content:flex-start;
    gap:12px 16px;
  }
  .simple-nav{
    gap:12px 16px;
  }
  .simple-nav a.active::after{
    bottom:-6px;
  }
}


/* v6.5.2 polish */
.prose{
  line-height:1.84;
}
.prose p + p{
  margin-top:1.12em;
}

.glossary-card{
  padding:20px 20px 18px;
}
.glossary-def{
  line-height:1.82;
}
.glossary-note{
  line-height:1.78;
}

.principle-card{
  padding:20px;
}
.principle-body p{
  line-height:1.8;
}

.status-box p,
.status-box li,
.stack-item,
.hero-copy .lead,
.hero-note,
.hero-manifest p{
  line-height:1.72;
}

/* Subnav edge-fade cue */
.project-subnav-wrap{
  position:relative;
}
.project-subnav-wrap::before,
.project-subnav-wrap::after{
  content:"";
  position:absolute;
  top:0;
  bottom:0;
  width:28px;
  pointer-events:none;
  z-index:2;
}
.project-subnav-wrap::before{
  left:0;
  background:linear-gradient(90deg, rgba(11,11,12,.92), rgba(11,11,12,0));
}
.project-subnav-wrap::after{
  right:0;
  background:linear-gradient(270deg, rgba(11,11,12,.92), rgba(11,11,12,0));
}

/* Slight polish for links cards */
.link-card{
  transition:transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.link-card:hover{
  transform:translateY(-2px);
  border-color:rgba(255,255,255,.16);
  background:rgba(255,255,255,.05);
}

/* Mobile hero tuning */
@media (max-width:720px){
  .hero-panel{
    padding:18px;
  }
  .hero-mark img{
    width:40px;
    height:40px;
  }
  .hero-copy .button-row{
    gap:10px;
  }
  .project-subnav{
    padding:10px 0 12px;
  }
  .project-subnav a{
    padding:9px 13px;
    font-size:13px;
  }
}

/* Reduced-motion should stay respected */
@media (prefers-reduced-motion: reduce){
  .link-card{
    transition:none !important;
  }
}


/* v7 stabilized */
.site-header{
  background: rgba(11,11,12,.72);
  border-bottom: 1px solid rgba(255,255,255,.09);
  box-shadow: 0 10px 28px rgba(0,0,0,.14);
  backdrop-filter: blur(18px) saturate(130%);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
}
.site-header::before{
  content:"";
  position:absolute;
  inset:0 0 auto 0;
  height:1px;
  background:linear-gradient(90deg, rgba(255,255,255,.22), rgba(255,255,255,0));
  pointer-events:none;
}

.skip-link{
  position:absolute;
  left:16px;
  top:-48px;
  z-index:50;
  padding:10px 14px;
  border-radius:999px;
  background:var(--text);
  color:#0b0b0c;
  font-weight:700;
  box-shadow: var(--shadow-soft);
}
.skip-link:focus{
  top:16px;
}

.hero{
  position:relative;
  padding:82px 0 calc(var(--section-gap) - 4px);
}
.hero::before{
  content:"";
  position:absolute;
  inset:0 0 auto 0;
  height:138px;
  background:
    radial-gradient(clamp(360px, 58vw, 720px) clamp(120px, 18vw, 220px) at 50% 0%, rgba(255,255,255,.055), rgba(255,255,255,0) 72%),
    linear-gradient(180deg, rgba(255,255,255,.095) 0%, rgba(255,255,255,.028) 38%, rgba(255,255,255,0) 100%);
  pointer-events:none;
}
.hero-panel, .panel, .card, .story-frame, .glossary-card, .principle-card, .status-box, .stack-item{
  box-shadow: var(--shadow-medium);
}
.hero-panel{
  box-shadow: var(--shadow-strong);
}
.brand-mark,
.footer-mark,
.hero-mark,
.link-icon{
  transition: transform .18s cubic-bezier(0.4,0,0.2,1), box-shadow .18s cubic-bezier(0.4,0,0.2,1), filter .18s cubic-bezier(0.4,0,0.2,1), background .18s ease, border-color .18s ease;
}
.brand:hover .brand-mark,
.hero-panel-brand:hover .hero-mark,
.footer-brand:hover .footer-mark{
  transform: scale(1.02);
  filter: brightness(1.08);
}
.lang-switch a,
.hero-pillar,
.button,
.card,
.glossary-card,
.principle-card,
.status-box,
.stack-item,
.link-card{
  transition: transform .18s cubic-bezier(0.4,0,0.2,1), box-shadow .18s cubic-bezier(0.4,0,0.2,1), border-color .18s ease, background .18s ease, filter .18s ease;
}
.lang-switch a:hover{
  transform: translateY(-1px) scale(1.02);
  filter: brightness(1.08);
}
.link-card:hover .link-icon,
.footer-links a:hover svg,
.telegram-inline:hover svg{
  transform: scale(1.05);
  filter: brightness(1.1);
}

.button.secondary,
.button-secondary{
  background: rgba(255,255,255,.028);
  border-color: rgba(255,255,255,.12);
  color: var(--text);
}
.button.secondary:hover,
.button-secondary:hover{
  background: rgba(255,255,255,.055);
  border-color: rgba(255,255,255,.18);
  box-shadow: var(--shadow-soft);
}
.button.primary{
  box-shadow: 0 10px 24px rgba(255,255,255,.07);
}

.section-header{
  margin-bottom: 26px;
}
.prose,
.status-box p,
.status-box li,
.stack-item,
.hero p.lead,
.hero-panel p,
.hero-manifest p{
  line-height:1.82;
}

.project-subnav-wrap{
  margin-bottom: 8px;
  padding: 2px 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
}
.project-subnav-wrap::before,
.project-subnav-wrap::after{
  width:36px;
}
.project-subnav{
  padding:14px 0 16px;
  scroll-padding-inline: 12px;
  -webkit-overflow-scrolling: touch;
}
.project-subnav a{
  padding:10px 15px;
}
.draft-banner-wrap{
  padding-top:18px;
}
.draft-banner{
  padding:10px 14px;
  border-color: rgba(255,255,255,.08);
  background: rgba(255,255,255,.024);
}
.draft-banner strong{
  font-size:13px;
}
.footer-grid{
  grid-template-columns: 1.05fr .7fr .7fr;
  gap:22px;
}
.footer-brand{
  grid-column: 1;
}
.footer-links{
  grid-column: 2 / span 2;
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap:10px 16px;
  align-items:start;
}
.footer-links a{
  justify-self:start;
}

.js .reveal-section{
  opacity:0;
  transform: translateY(20px);
  transition: opacity .56s ease, transform .56s ease;
  transition-delay: var(--reveal-delay, 0ms);
}
.js .reveal-section.is-visible{
  opacity:1;
  transform: translateY(0);
}

@media (max-width:980px){
  .footer-grid{
    grid-template-columns:1fr;
  }
  .footer-links{
    grid-column:auto;
    grid-template-columns:1fr 1fr;
  }
}
@media (max-width:720px){
  .prose{
    line-height:1.75;
  }
  .hero{
    padding-top:40px;
  }
}
@media (max-width:420px){
  .hero{
    padding-top:32px;
  }
  .hero-grid{
    grid-template-columns: 1fr !important;
    gap:20px;
  }
  .hero-panel{
    padding:16px;
  }
  .hero-mark{
    width:62px;
    height:62px;
  }
  .hero-mark img{
    width:44px;
    height:44px;
  }
  .project-subnav{
    gap:8px;
    padding:10px 0 12px;
  }
  .project-subnav a{
    font-size:13px;
    padding:8px 11px;
  }
}
@media (prefers-reduced-motion: reduce){
  .js .reveal-section,
  .lang-switch a,
  .hero-pillar,
  .button,
  .card,
  .glossary-card,
  .principle-card,
  .status-box,
  .stack-item,
  .link-card,
  .brand-mark,
  .footer-mark,
  .hero-mark,
  .link-icon{
    transition:none !important;
    transform:none !important;
    animation:none !important;
  }
}


/* v8 polished system */
.status-box ul,
.glossary-card ul,
.principle-card ul{
  line-height:1.78;
}
.status-box li + li,
.glossary-card li + li,
.principle-card li + li{
  margin-top:calc(var(--content-gap) * .55);
}
.glossary-card,
.principle-card,
.status-box,
.hero-pillar,
.link-card,
.panel,
.card,
.story-frame,
.stack-item{
  transition:
    transform .18s var(--motion-standard),
    box-shadow .18s var(--motion-standard),
    filter .18s var(--motion-standard),
    border-color .18s var(--motion-standard),
    background .18s var(--motion-standard);
}
.glossary-card:hover,
.principle-card:hover,
.status-box:hover,
.hero-pillar:hover,
.link-card:hover,
.panel:hover,
.card:hover,
.story-frame:hover,
.stack-item:hover{
  transform: translateY(-2px) scale(1.01);
  filter: brightness(var(--hover-brightness));
  box-shadow: var(--shadow-strong);
}
.hero-pillar{
  box-shadow: var(--shadow-medium);
}
.hero-pillar:hover{
  transform: translateY(-2px) scale(1.01);
  filter: brightness(var(--hover-brightness));
  box-shadow: var(--shadow-strong);
  border-color: rgba(255,255,255,.16);
  background: rgba(255,255,255,.05);
}
.status-box:hover{
  background: rgba(255,255,255,.05);
}
.link-card:hover{
  border-color: rgba(255,255,255,.16);
  background: rgba(255,255,255,.05);
}
.button,
.lang-switch a,
.brand-mark,
.hero-mark,
.footer-mark,
.link-icon{
  transition:
    transform .18s var(--motion-standard),
    box-shadow .18s var(--motion-standard),
    filter .18s var(--motion-standard),
    border-color .18s var(--motion-standard),
    background .18s var(--motion-standard),
    color .18s var(--motion-standard);
}
.button:hover,
.lang-switch a:hover{
  transform: translateY(-1px) scale(1.02);
  filter: brightness(var(--hover-brightness));
}
.button.primary:hover{
  box-shadow:
    0 0 0 1px rgba(255,255,255,.11),
    0 0 22px rgba(255,255,255,.09),
    0 12px 28px rgba(255,255,255,.11),
    0 22px 52px rgba(0,0,0,.30);
}
.brand:hover .brand-mark,
.hero-panel-brand:hover .hero-mark,
.footer-brand:hover .footer-mark,
.link-card:hover .link-icon,
.lang-switch a:hover{
  transform: translateY(-1px) scale(var(--hover-scale));
  filter: brightness(1.1);
}

.project-subnav-wrap{
  position:relative;
  margin-bottom:32px;
  padding:8px 0;
  box-shadow: 0 12px 24px rgba(0,0,0,.10);
}
.project-subnav{
  padding:14px 0 16px;
}
.project-subnav-wrap::before,
.project-subnav-wrap::after{
  width:34px;
}

.skip-link{
  left:14px;
  top:-38px;
  padding:7px 11px;
  font-size:13px;
}
.skip-link:focus{
  top:12px;
}

.hero-mark img{
  width:82px;
  height:82px;
}

.footer-grid{
  align-items:start;
}
.footer-links{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:12px 18px;
}
.footer-links a{
  white-space:nowrap;
}

.reveal-section{
  opacity:0;
  transform: translateY(20px);
  transition: opacity .65s var(--motion-standard), transform .65s var(--motion-standard);
  transition-delay: var(--reveal-delay, 0ms);
}
html:not(.js) .reveal-section,
.no-js .reveal-section{
  opacity:1;
  transform:none;
}

.draft-banner{
  gap:5px;
  padding:10px 12px;
  border-color: rgba(255,255,255,.08);
  background: rgba(255,255,255,.028);
}
.draft-banner strong{
  font-size:13px;
}
.draft-banner span{
  font-size:13px;
}

@media (max-width:720px){
  .prose{
    line-height:1.75;
  }
}

@media (max-width:420px){
  .project-subnav{
    gap:8px;
  }
  .project-subnav a{
    padding:8px 11px;
    font-size:13px;
  }
  .footer-links{
    grid-template-columns:1fr 1fr;
    gap:10px 12px;
  }
}

@media (max-width:380px){
  .project-subnav{
    gap:7px;
    padding:10px 0 12px;
  }
  .project-subnav a{
    padding:7px 10px;
    font-size:12px;
  }
  .footer-grid{
    gap:18px;
  }
  .footer-links{
    grid-template-columns:1fr;
    gap:8px;
  }
  .hero{
    padding-top:32px;
  }
}

@media (prefers-reduced-motion: reduce){
  .glossary-card,
  .principle-card,
  .status-box,
  .hero-pillar,
  .link-card,
  .panel,
  .card,
  .story-frame,
  .stack-item,
  .button,
  .lang-switch a,
  .brand-mark,
  .hero-mark,
  .footer-mark,
  .link-icon{
    transition:none !important;
    transform:none !important;
    filter:none !important;
  }
  .reveal-section{
    opacity:1 !important;
    transform:none !important;
    transition:none !important;
  }
}


/* v9 final polish */
.hero-pillar:hover{
  transform: translateY(-2px) scale(1.01);
  filter: brightness(var(--hover-brightness));
  box-shadow: var(--shadow-strong);
  border-color: rgba(255,255,255,.16);
  background: rgba(255,255,255,.05);
}

.project-subnav a{
  min-width: max-content;
}

@media (max-width:380px){
  .project-subnav a{
    min-width: 92px;
    justify-content: center;
  }
  .footer-grid{
    gap:24px;
  }
  .footer-links{
    margin-top:4px;
  }
}

/* one-time hero glow */
.hero-mark img{
  will-change: transform, filter;
}
html.hero-glow .hero-mark img{
  animation: heroGlowOnce .8s var(--motion-standard) .08s 1 both;
}
@keyframes heroGlowOnce{
  0%{
    transform: scale(.992);
    filter: brightness(1) drop-shadow(0 0 0 rgba(255,255,255,0));
  }
  42%{
    transform: scale(1.012);
    filter: brightness(1.08) drop-shadow(0 0 14px rgba(255,255,255,.13));
  }
  100%{
    transform: scale(1);
    filter: brightness(1) drop-shadow(0 0 0 rgba(255,255,255,0));
  }
}
  45%{
    transform: scale(1.02);
    filter: brightness(1.12) drop-shadow(0 0 18px rgba(255,255,255,.16));
  }
  100%{
    transform: scale(1);
    filter: brightness(1) drop-shadow(0 0 0 rgba(255,255,255,0));
  }
}

html.reduced-motion .hero-mark img{
  animation:none !important;
}

/* breathing on long content */
.prose ul,
.prose ol{
  line-height:1.82;
}
.status-box,
.glossary-card{
  line-height:1.76;
}
.status-box ul,
.glossary-card ul{
  gap:0;
}

/* footer mid-width balance */
@media (min-width:981px) and (max-width:1180px){
  .footer-grid{
    grid-template-columns: 1.2fr .9fr .9fr;
    gap:20px 18px;
  }
  .footer-links{
    grid-template-columns: 1fr 1fr;
  }
}

@media (prefers-reduced-motion: reduce){
  .hero-mark img{
    animation:none !important;
  }
}


/* v10 master final polish */
.project-subnav a{
  flex-shrink: 0;
}

@media (max-width:380px){
  .project-subnav a{
    min-width: 104px;
    flex-shrink: 0;
  }
  .footer-grid{
    gap: 28px;
  }
  .footer-links{
    margin-top: 8px;
    gap: 10px;
  }
}

/* Decorative pseudo elements are visual-only by nature; keep them attached to non-semantic containers */
.hero::before,
.project-subnav-wrap::before,
.project-subnav-wrap::after{
  pointer-events:none;
}
