:root {
  --bg-canvas: #07090c;
  --bg-surface: #0d1116;
  --bg-elevated: #151c23;
  --brand: #355059;
  --brand-deep: #263c43;
  --brand-dark: #17282e;
  --text: #ffffff;
  --text-secondary: #b9c3c7;
  --text-muted: #7c898e;
  --border: #222a30;
  --accent: #7cc9d6;
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-ui: "Geist", system-ui, sans-serif;
  --max: 1248px;
  --radius-control: 14px;
  --radius-card: 22px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg-canvas); }
body { margin: 0; min-width: 320px; background: var(--bg-canvas); color: var(--text); font-family: var(--font-ui); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body.is-locked { overflow: hidden; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.eyebrow, .micro { margin: 0; font-size: .75rem; line-height: 1rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow { color: var(--accent); }
.micro { color: var(--text-muted); }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 24px; border: 1px solid transparent; border-radius: var(--radius-control); font-family: var(--font-ui); font-size: .9rem; font-weight: 600; letter-spacing: .015em; text-decoration: none; cursor: pointer; transition: transform 180ms var(--ease-out), background-color 180ms ease, border-color 180ms ease, color 180ms ease; }
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(0); }
.button--primary { background: var(--brand); color: #fff; }
.button--primary:hover { background: #40616b; }
.button--quiet { border-color: var(--border); background: transparent; color: var(--text); }
.button--quiet:hover { border-color: #44515a; background: rgba(255,255,255,.025); }
.button--small { min-height: 44px; padding: 0 18px; font-size: .82rem; }
.gate-intro { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; min-height: 100svh; overflow: hidden; background: var(--bg-canvas); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 650ms var(--ease-out), visibility 650ms; }
.gate-intro.is-leaving { opacity: 0; visibility: hidden; pointer-events: none; }
.gate-intro::after { content: ""; position: absolute; top: 0; right: 8.3vw; width: 1px; height: 96px; background: var(--brand); }
.gate-orbit { position: absolute; border: 1px solid rgba(53,80,89,.35); border-radius: 50%; pointer-events: none; }
.gate-orbit--outer { width: min(72vw, 680px); aspect-ratio: 1; }
.gate-orbit--inner { width: min(47vw, 430px); aspect-ratio: .78; border-radius: 32px; border-color: rgba(255,255,255,.09); }
.gate-intro__content { position: relative; z-index: 1; width: min(92vw, 580px); display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; }
.gate-intro__mark { width: 176px; height: 176px; object-fit: contain; }
.gate-intro h1 { margin: 0; font-family: var(--font-display); font-size: clamp(2.25rem, 5vw, 3.5rem); line-height: .98; letter-spacing: -.045em; }
.gate-intro__lead { max-width: 430px; margin: 0 0 4px; color: var(--text-secondary); font-size: 1rem; line-height: 1.55; }
.site-shell { min-height: 100vh; opacity: 0; transform: translateY(14px); transition: opacity 650ms var(--ease-out), transform 650ms var(--ease-out); }
.site-shell.is-visible { opacity: 1; transform: none; }
.site-header { position: sticky; top: 0; z-index: 50; width: min(calc(100% - 48px), var(--max)); min-height: 88px; margin: 0 auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; background: color-mix(in srgb, var(--bg-canvas) 86%, transparent); border-bottom: 1px solid rgba(255,255,255,.05); backdrop-filter: blur(18px); }
.brand { display: inline-flex; align-items: center; gap: 12px; width: max-content; font-weight: 600; text-decoration: none; }
.brand img { object-fit: contain; }
.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav a, .site-footer a { color: var(--text-secondary); font-size: .875rem; font-weight: 500; text-decoration: none; transition: color 160ms ease; }
.site-nav a:hover, .site-footer a:hover { color: var(--text); }
.site-header > .button { justify-self: end; }
.section { width: min(calc(100% - 48px), var(--max)); margin-inline: auto; }
.hero { min-height: 650px; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr); align-items: center; gap: 80px; padding: 88px 0 72px; }
.hero__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; min-width: 0; }
.hero h2, .section-heading h2, .vision h2, .updates h2 { margin: 0; font-family: var(--font-display); font-weight: 700; letter-spacing: -.05em; }
.hero h2 { font-size: clamp(4rem, 7.2vw, 6.3rem); line-height: .84; }
.hero__lead { width: 100%; max-width: 660px; min-width: 0; margin: 0; color: var(--text-secondary); font-size: clamp(1.05rem, 1.6vw, 1.3rem); line-height: 1.55; }
.hero__actions { display: flex; gap: 12px; max-width: 100%; min-width: 0; margin-top: 10px; }
.hero__signal { position: relative; width: 100%; max-width: 100%; min-width: 0; min-height: 420px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 32px; overflow: hidden; background: linear-gradient(180deg, rgba(53,80,89,.09), rgba(53,80,89,.015)); }
.hero__signal::before, .hero__signal::after { content: ""; position: absolute; border: 1px solid rgba(124,201,214,.11); border-radius: 50%; }
.hero__signal::before { width: 390px; height: 390px; }
.hero__signal::after { width: 540px; height: 540px; }
.hero__signal img { position: relative; z-index: 2; width: min(58%, 280px); height: auto; object-fit: contain; }
.hero__signal-line { position: absolute; inset: 0 auto 0 50%; width: 1px; background: linear-gradient(transparent, rgba(124,201,214,.18), transparent); }
.hero__signal-label { position: absolute; right: 22px; bottom: 20px; color: var(--text-muted); font: 600 .68rem/1 var(--font-ui); letter-spacing: .12em; }
.passages { padding: 90px 0 120px; }
.section-heading { display: flex; flex-direction: column; gap: 16px; margin-bottom: 50px; }
.section-heading h2 { font-size: clamp(2.7rem, 5vw, 4.5rem); line-height: .98; }
.passage-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.passage-card { min-height: 360px; padding: 28px; display: flex; flex-direction: column; justify-content: space-between; gap: 48px; border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--bg-surface); transition: transform 220ms var(--ease-out), border-color 220ms ease, background-color 220ms ease; }
.passage-card:hover { transform: translateY(-5px); border-color: #35434b; background: #10161b; }
.passage-card__index { color: var(--accent); }
.passage-card h3 { margin: 22px 0 14px; font: 500 clamp(1.7rem, 2.5vw, 2.35rem)/1.04 var(--font-display); letter-spacing: -.035em; }
.passage-card p:not(.micro) { margin: 0; max-width: 31ch; color: var(--text-secondary); line-height: 1.55; }
.passage-card__links { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.passage-card__links a { font-weight: 600; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.muted-link { color: var(--text-muted); font-size: .83rem; text-decoration: none !important; }
.status { display: inline-flex; align-items: center; gap: 9px; color: var(--text-secondary); font-size: .9rem; font-weight: 600; }
.status__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(124,201,214,.08); }
.vision { padding: 36px 0 126px; }
.section-rule { height: 1px; background: var(--border); margin-bottom: 64px; }
.vision__grid { display: grid; grid-template-columns: 1fr 2fr; gap: 80px; }
.vision h2 { max-width: 750px; font-size: clamp(3rem, 5.5vw, 5rem); line-height: .96; }
.vision__grid > div > p { max-width: 690px; margin: 34px 0 0; color: var(--text-secondary); font-size: 1.1rem; line-height: 1.75; }
.universes { padding: 24px 0 130px; }
.section-heading--row { flex-direction: row; justify-content: space-between; align-items: end; }
.section-heading--row h2 { margin-top: 14px; }
.section-heading__note { max-width: 320px; margin: 0; color: var(--text-muted); line-height: 1.5; }
.universe-list { border-top: 1px solid var(--border); }
.universe-row { min-height: 94px; display: grid; grid-template-columns: 60px 1.2fr 1fr 24px; align-items: center; gap: 24px; border-bottom: 1px solid var(--border); text-decoration: none; transition: background-color 180ms ease, padding 220ms var(--ease-out); }
.universe-row:hover { padding-inline: 14px; background: rgba(255,255,255,.018); }
.universe-row__number { color: var(--text-muted); font-size: .78rem; }
.universe-row__name { font: 500 1.55rem/1.1 var(--font-display); letter-spacing: -.025em; }
.universe-row__type { color: var(--text-secondary); }
.updates { padding-bottom: 128px; }
.updates__panel { min-height: 300px; padding: 44px; display: grid; grid-template-columns: 1.2fr .8fr; align-items: end; gap: 80px; border-radius: 32px; background: var(--brand-dark); border: 1px solid rgba(124,201,214,.12); }
.updates h2 { margin-top: 18px; font-size: clamp(2.6rem, 4.6vw, 4.4rem); line-height: .98; }
.updates__panel > p { margin: 0; color: #c6d0d4; line-height: 1.7; }
.site-footer { width: min(calc(100% - 48px), var(--max)); min-height: 160px; margin-inline: auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 28px; border-top: 1px solid var(--border); }
.site-footer__brand { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.site-footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; }
.site-footer > .micro { justify-self: end; }
@media (max-width: 980px) {
  .site-header { grid-template-columns: 1fr auto; }
  .site-nav { display: none; }
  .hero { grid-template-columns: 1fr; gap: 46px; }
  .hero__signal { min-height: 330px; }
  .passage-grid { grid-template-columns: 1fr; }
  .passage-card { min-height: 300px; }
  .vision__grid, .updates__panel { grid-template-columns: 1fr; gap: 42px; }
  .section-heading--row { align-items: flex-start; flex-direction: column; }
  .universe-row { grid-template-columns: 44px 1fr 24px; }
  .universe-row__type { display: none; }
  .site-footer { grid-template-columns: 1fr; padding: 42px 0; }
  .site-footer__links { justify-content: flex-start; }
  .site-footer > .micro { justify-self: start; }
}
@media (max-width: 620px) {
  .site-header, .section, .site-footer { width: min(calc(100% - 32px), var(--max)); }
  .brand span { font-size: .9rem; }
  .site-header > .button { display: none; }
  .site-header { grid-template-columns: 1fr; min-height: 74px; }
  .hero { min-height: 0; padding-top: 62px; }
  .hero h2 { max-width: 100%; font-size: clamp(2.85rem, 15vw, 4.2rem); }
  .hero__actions { flex-direction: column; width: 100%; }
  .hero__actions .button { width: 100%; }
  .hero__signal { min-height: 280px; }
  .passages { padding-top: 64px; }
  .section-heading h2 { font-size: 2.65rem; }
  .vision h2, .updates h2 { font-size: 2.8rem; }
  .updates__panel { padding: 28px; }
  .universe-row__name { font-size: 1.2rem; }
  .gate-intro__mark { width: 144px; height: 144px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* NƎRDAR identity film — shown before "Franchir la Gate" */
.brand-film {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: grid;
  place-items: center;
  min-height: 100svh;
  overflow: hidden;
  background: #f4f4f2;
  transition: opacity 420ms var(--ease-out), visibility 420ms;
}
.brand-film.is-leaving {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.brand-film__video {
  width: min(76vw, 460px);
  height: min(76vw, 460px);
  object-fit: contain;
  display: block;
  background: transparent;
  /* White from the fallback MP4 inherits the intro surface instead of showing a square. */
  mix-blend-mode: multiply;
}
.brand-film__controls {
  position: absolute;
  right: clamp(18px, 3vw, 42px);
  bottom: clamp(18px, 3vw, 36px);
  display: flex;
  gap: 10px;
}
.brand-film__control {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(7,9,12,.18);
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  color: #17282e;
  font: 600 .78rem/1 var(--font-ui);
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: background-color 160ms ease, transform 160ms var(--ease-out);
}
.brand-film__control:hover { background: #fff; transform: translateY(-1px); }
.brand-film__control:focus-visible { outline: 2px solid #355059; outline-offset: 3px; }

.support { padding: 8px 0 118px; }
.support-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.support-card {
  min-height: 150px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255,255,255,.012);
  text-decoration: none;
  transition: transform 180ms var(--ease-out), border-color 180ms ease, background-color 180ms ease;
}
.support-card:hover {
  transform: translateY(-3px);
  border-color: #35434b;
  background: rgba(255,255,255,.022);
}
.support-card .micro { color: var(--accent); }
.support-card strong {
  font: 500 clamp(1.25rem, 2vw, 1.65rem)/1.1 var(--font-display);
  letter-spacing: -.025em;
}
.support-card > span:last-child {
  color: var(--text-secondary);
  font-size: .84rem;
  font-weight: 600;
}

@media (max-width: 980px) {
  .support-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .brand-film__video { width: min(88vw, 360px); height: min(88vw, 360px); }
  .brand-film__controls { left: 16px; right: 16px; justify-content: center; }
}

/* Critical entry navigation is native HTML/CSS first; JavaScript only enhances it. */
#gate-intro:target {
  z-index: 160;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
#site-shell:target {
  position: relative;
  z-index: 180;
  visibility: visible;
  pointer-events: auto;
  opacity: 1;
  transform: none;
}
body:has(#gate-intro:target) .brand-film,
body:has(#site-shell:target) .brand-film {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
body:has(#site-shell:target) .gate-intro {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}


/* NƎRDAR ecosystem architecture */
.ecosystem-reveal {
  min-height: calc(100svh - 88px);
  padding: 72px 0 84px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.ecosystem-reveal__core {
  width: clamp(92px, 10vw, 132px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid rgba(124,201,214,.22);
  border-radius: 50%;
  color: var(--accent);
  font: 700 clamp(4.2rem, 8vw, 6.8rem)/1 var(--font-display);
  letter-spacing: -.08em;
  animation: ecosystem-core 900ms var(--ease-out) both;
}
.ecosystem-reveal__brand {
  margin: 28px 0 0;
  color: var(--text);
  font: 700 clamp(3.8rem, 9vw, 8.4rem)/.88 var(--font-display);
  letter-spacing: -.065em;
  animation: ecosystem-brand 850ms 520ms var(--ease-out) both;
}
.ecosystem-reveal__intro {
  margin: 24px 0 0;
  color: var(--text-muted);
  font-size: .9rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  animation: ecosystem-brand 700ms 900ms var(--ease-out) both;
}
.ecosystem-reveal__poles {
  width: min(100%, 980px);
  margin-top: 54px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.ecosystem-reveal__poles a {
  min-height: 92px;
  display: grid;
  place-items: center;
  padding: 18px 12px;
  border-right: 1px solid var(--border);
  color: var(--text-secondary);
  font: 600 clamp(.9rem, 1.45vw, 1.08rem)/1 var(--font-display);
  letter-spacing: .04em;
  text-decoration: none;
  opacity: 0;
  transform: translateY(14px);
  animation: ecosystem-pole 620ms var(--ease-out) forwards;
}
.ecosystem-reveal__poles a:last-child { border-right: 0; }
.ecosystem-reveal__poles a:nth-child(1) { animation-delay: 1.12s; }
.ecosystem-reveal__poles a:nth-child(2) { animation-delay: 1.24s; }
.ecosystem-reveal__poles a:nth-child(3) { animation-delay: 1.36s; }
.ecosystem-reveal__poles a:nth-child(4) { animation-delay: 1.48s; }
.ecosystem-reveal__poles a:hover { color: var(--text); background: rgba(255,255,255,.018); }
.ecosystem-reveal__continue {
  margin-top: 34px;
  color: var(--text-muted);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .13em;
  text-decoration: none;
  opacity: 0;
  animation: ecosystem-pole 620ms 1.75s var(--ease-out) forwards;
}
@keyframes ecosystem-core {
  from { opacity: 0; transform: scale(.72) rotate(-10deg); }
  to { opacity: 1; transform: scale(1) rotate(0); }
}
@keyframes ecosystem-brand {
  from { opacity: 0; transform: translateY(20px); filter: blur(7px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}
@keyframes ecosystem-pole {
  to { opacity: 1; transform: translateY(0); }
}

.four-e { padding: 56px 0 126px; }
.pole-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.pole-card {
  min-width: 0;
  padding: clamp(26px, 3.5vw, 42px);
  border: 1px solid var(--border);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(53,80,89,.07), rgba(13,17,22,.65));
}
.pole-card__head {
  display: flex;
  align-items: center;
  gap: 20px;
  min-width: 0;
}
.pole-card__head > div {
  min-width: 0;
  max-width: 100%;
}
.pole-card__glyph {
  flex: 0 0 auto;
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(124,201,214,.2);
  border-radius: 50%;
  color: var(--accent);
  font: 700 2.8rem/1 var(--font-display);
}
.pole-card h3 {
  margin: 8px 0 0;
  font: 600 clamp(2rem, 3vw, 3.1rem)/.98 var(--font-display);
  letter-spacing: -.045em;
}
.pole-card__lead {
  max-width: 48ch;
  margin: 28px 0 32px;
  color: var(--text-secondary);
  line-height: 1.65;
}
.pole-card__list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--border);
}
.pole-card__list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, .8fr);
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.pole-card__list strong {
  min-width: 0;
  font: 500 1rem/1.25 var(--font-display);
}
.pole-card__list span {
  color: var(--text-muted);
  font-size: .82rem;
  line-height: 1.4;
}

.tools-map { padding: 10px 0 128px; }
.tools-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.tool-chip {
  min-width: 0;
  min-height: 132px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255,255,255,.012);
}
.tool-chip strong {
  font: 600 1.35rem/1 var(--font-display);
  letter-spacing: -.02em;
}
.tool-chip span {
  color: var(--text-muted);
  font-size: .78rem;
  line-height: 1.45;
}

@media (max-width: 980px) {
  .ecosystem-reveal__poles { grid-template-columns: repeat(2, 1fr); }
  .ecosystem-reveal__poles a:nth-child(2) { border-right: 0; }
  .ecosystem-reveal__poles a:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .pole-grid { grid-template-columns: 1fr; }
  .tools-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .ecosystem-reveal { min-height: calc(100svh - 74px); padding: 48px 0 58px; }
  .ecosystem-reveal__brand { font-size: clamp(3.4rem, 18vw, 5.3rem); }
  .ecosystem-reveal__poles { margin-top: 40px; grid-template-columns: 1fr; }
  .ecosystem-reveal__poles a { min-height: 62px; border-right: 0; border-bottom: 1px solid var(--border); }
  .ecosystem-reveal__poles a:last-child { border-bottom: 0; }
  .pole-card__head { align-items: flex-start; gap: 14px; }
  .pole-card__head > div { flex: 1 1 auto; }
  .pole-card h3 { max-width: 100%; font-size: clamp(1.72rem, 8vw, 2.2rem); overflow-wrap: anywhere; }
  .pole-card__glyph { width: 54px; height: 54px; font-size: 2.1rem; }
  .pole-card__list li { grid-template-columns: 1fr; gap: 6px; }
  .tools-grid { grid-template-columns: 1fr; }
  .tool-chip { min-height: 108px; }
}


/* v0.4 — Architecture UX validée */
html { scroll-padding-top: 108px; }

.ecosystem-reveal__logo {
  width: clamp(150px, 18vw, 235px);
  height: auto;
  object-fit: contain;
  opacity: 0;
  animation: ecosystem-core 900ms var(--ease-out) forwards;
}
.architecture-names {
  margin: -16px 0 38px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.architecture-names a {
  min-width: 0;
  min-height: 76px;
  display: grid;
  place-items: center;
  padding: 16px 10px;
  border-right: 1px solid var(--border);
  color: var(--text-secondary);
  font: 600 clamp(.82rem, 1.35vw, 1rem)/1 var(--font-display);
  letter-spacing: .035em;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: color 160ms ease, background-color 160ms ease;
}
.architecture-names a:last-child { border-right: 0; }
.architecture-names a:hover,
.architecture-names a:focus-visible { color: var(--text); background: rgba(255,255,255,.018); }

.tool-chip small {
  color: var(--accent);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.takoo-focus { padding: 12px 0 128px; }
.takoo-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.takoo-card {
  min-height: 300px;
  padding: clamp(28px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 18px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(53,80,89,.18), rgba(13,17,22,.55));
  text-decoration: none;
  transition: transform 220ms var(--ease-out), border-color 220ms ease;
}
.takoo-card:hover { transform: translateY(-4px); border-color: #40545e; }
.takoo-card .micro { color: var(--accent); }
.takoo-card strong { font: 600 clamp(2rem, 4vw, 3.4rem)/.98 var(--font-display); letter-spacing: -.045em; }
.takoo-card p { max-width: 38ch; margin: 0; color: var(--text-secondary); line-height: 1.6; }
.takoo-card > span:last-child { color: var(--text); font-weight: 600; }

.community {
  margin-bottom: 110px;
  padding-block: clamp(42px, 6vw, 72px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.community h2 { margin: 12px 0 18px; font: 700 clamp(2.8rem, 5vw, 4.7rem)/.95 var(--font-display); letter-spacing: -.05em; }
.community p:not(.eyebrow) { max-width: 600px; margin: 0; color: var(--text-secondary); line-height: 1.6; }

.site-footer--structured {
  width: min(calc(100% - 48px), var(--max));
  margin: 0 auto;
  padding: 72px 0 38px;
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 48px 36px;
  border-top: 1px solid var(--border);
}
.site-footer__intro { max-width: 320px; }
.site-footer__intro p { color: var(--text-muted); line-height: 1.55; }
.site-footer__brand img { width: 72px; height: auto; }
.site-footer__column { display: flex; flex-direction: column; align-items: flex-start; gap: 13px; }
.site-footer__column strong { margin-bottom: 5px; color: var(--text); font-size: .74rem; letter-spacing: .11em; }
.site-footer__bottom {
  grid-column: 1 / -1;
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
}
.site-footer__bottom a { text-decoration: none; }

/* Progressive enhancement: any in-site target keeps the portal visible. */
body:has(.site-shell :target) .site-shell {
  opacity: 1;
  transform: none;
  visibility: visible;
  pointer-events: auto;
}
body:has(.site-shell :target) .brand-film,
body:has(.site-shell :target) .gate-intro {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

@media (max-width: 980px) {
  .architecture-names { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .architecture-names a:nth-child(2) { border-right: 0; }
  .architecture-names a:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .takoo-grid { grid-template-columns: 1fr; }
  .site-footer--structured { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .site-footer__bottom { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  .ecosystem-reveal__logo { width: min(58vw, 205px); }
  .architecture-names { grid-template-columns: 1fr; margin-top: -6px; }
  .architecture-names a { min-height: 60px; border-right: 0; border-bottom: 1px solid var(--border); }
  .architecture-names a:last-child { border-bottom: 0; }
  .community { align-items: flex-start; flex-direction: column; }
  .community .button { width: 100%; }
  .site-footer--structured { grid-template-columns: 1fr; gap: 34px; }
  .site-footer__bottom { flex-direction: column; align-items: flex-start; gap: 18px; }
}
