:root {
  --bg: #090d19;
  --bg-deep: #060914;
  --surface: #11172a;
  --surface-strong: #151d34;
  --surface-soft: rgba(255, 255, 255, .055);
  --text: #f4f7ff;
  --text-soft: #b9c1d8;
  --text-muted: #8791ad;
  --line: rgba(255, 255, 255, .12);
  --line-strong: rgba(255, 255, 255, .2);
  --green: #79e4c2;
  --green-strong: #38c99b;
  --blue: #7ca7ff;
  --purple: #c699ff;
  --gold: #ffd47a;
  --cyan: #7ee3ff;
  --coral: #ff9d7a;
  --danger: #ff9a9a;
  --shadow-lg: 0 32px 80px rgba(0, 0, 0, .36);
  --shadow-md: 0 20px 45px rgba(0, 0, 0, .24);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shell: min(1180px, calc(100% - 40px));
  --header-height: 84px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 8% 4%, rgba(76, 111, 255, .14), transparent 31rem),
    radial-gradient(circle at 92% 17%, rgba(121, 228, 194, .1), transparent 27rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: .16;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

::selection {
  color: #07120f;
  background: var(--green);
}

img, svg {
  display: block;
  max-width: 100%;
}

svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, textarea, select {
  font: inherit;
}

button {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 4px;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 16px;
  border-radius: 10px;
  color: #09100f;
  background: var(--green);
  font-weight: 800;
  transform: translateY(-160%);
  transition: transform .2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-height);
  border-bottom: 1px solid transparent;
  background: linear-gradient(to bottom, rgba(9, 13, 25, .82), rgba(9, 13, 25, .18));
  backdrop-filter: blur(14px);
  transition: background .25s ease, border-color .25s ease, height .25s ease;
}

.site-header.is-scrolled,
.site-header.is-solid {
  height: 72px;
  border-color: var(--line);
  background: rgba(9, 13, 25, .9);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-mark {
  flex: 0 0 auto;
  filter: drop-shadow(0 8px 22px rgba(121, 228, 194, .16));
}

.brand-copy {
  display: grid;
  line-height: 1.04;
  letter-spacing: -.02em;
}

.brand-copy strong {
  font-size: 1rem;
  font-weight: 800;
}

.brand-copy span {
  color: var(--text-soft);
  font-size: .86rem;
  font-weight: 600;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav > a,
.nav-share {
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  color: var(--text-soft);
  background: transparent;
  font-size: .92rem;
  font-weight: 650;
  cursor: pointer;
  transition: color .2s ease, background .2s ease, transform .2s ease;
}

.site-nav > a:hover,
.nav-share:hover {
  color: var(--text);
  background: rgba(255, 255, 255, .07);
}

.nav-share {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 8px;
  border: 1px solid var(--line);
}

.nav-share svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
  stroke: none;
}

.menu-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 13px;
  background: rgba(255,255,255,.04);
  cursor: pointer;
}

.menu-toggle-label {
  font-size: .85rem;
  font-weight: 750;
}

.menu-toggle-lines {
  position: relative;
  width: 18px;
  height: 14px;
}

.menu-toggle-lines i {
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform .2s ease, top .2s ease;
}

.menu-toggle-lines i:first-child { top: 3px; }
.menu-toggle-lines i:last-child { top: 9px; }
.menu-toggle[aria-expanded="true"] .menu-toggle-lines i:first-child { top: 6px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-lines i:last-child { top: 6px; transform: rotate(-45deg); }

.hero {
  position: relative;
  overflow: clip;
  min-height: 780px;
  padding: 154px 0 92px;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}

.hero-orbit {
  position: absolute;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 50%;
  pointer-events: none;
}

.hero-orbit-one {
  width: 680px;
  aspect-ratio: 1;
  top: 40px;
  right: -230px;
}

.hero-orbit-two {
  width: 450px;
  aspect-ratio: 1;
  left: -260px;
  bottom: -230px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(420px, .98fr);
  align-items: center;
  gap: clamp(44px, 7vw, 88px);
}

.eyebrow,
.section-kicker {
  margin: 0 0 18px;
  color: var(--green);
  font-size: .77rem;
  font-weight: 820;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid rgba(121, 228, 194, .24);
  border-radius: 999px;
  background: rgba(121, 228, 194, .06);
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(121, 228, 194, .09);
}

.hero h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(3.5rem, 7vw, 6.6rem);
  line-height: .94;
  letter-spacing: -.07em;
  font-weight: 800;
}

.hero h1 span {
  color: transparent;
  background: linear-gradient(90deg, var(--green), #9dd9ff 50%, var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-lead {
  max-width: 650px;
  margin: 28px 0 0;
  color: var(--text-soft);
  font-size: clamp(1.08rem, 1.9vw, 1.32rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 12px 20px;
  font-size: .94rem;
  font-weight: 780;
  letter-spacing: -.01em;
  transition: transform .2s var(--ease), box-shadow .2s ease, border-color .2s ease, background .2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button svg,
.text-link svg,
.card-link svg {
  width: 20px;
  height: 20px;
  transition: transform .2s var(--ease);
}

.button:hover svg:not(.button-icon-left),
.text-link:hover svg,
.project-card:hover .card-link svg {
  transform: translateX(4px);
}

.button-primary {
  color: #07120f;
  background: var(--green);
  box-shadow: 0 14px 34px rgba(56, 201, 155, .2);
}

.button-primary:hover {
  background: #8cf0d0;
  box-shadow: 0 18px 40px rgba(56, 201, 155, .27);
}

.button-quiet {
  color: var(--text);
  border-color: var(--line);
  background: rgba(255,255,255,.045);
}

.button-quiet:hover {
  border-color: var(--line-strong);
  background: rgba(255,255,255,.08);
}

.button-light {
  min-width: max-content;
  color: #0b1020;
  background: #f3f7ff;
}

.button-small {
  min-height: 42px;
  padding: 8px 15px;
}

.button-icon-left {
  transform: none !important;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 42px;
  color: var(--text-soft);
  font-size: .88rem;
}

.meta-item {
  display: grid;
  gap: 2px;
}

.meta-label {
  color: var(--text-muted);
  font-size: .69rem;
  font-weight: 790;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.meta-divider {
  width: 1px;
  height: 34px;
  background: var(--line);
}

.hero-visual {
  min-width: 0;
}

.visual-frame {
  position: relative;
  min-height: 530px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 50% 42%, rgba(121, 228, 194, .11), transparent 38%),
    linear-gradient(145deg, rgba(255,255,255,.07), rgba(255,255,255,.018));
  box-shadow: var(--shadow-lg), inset 0 1px rgba(255,255,255,.08);
  isolation: isolate;
}

.visual-frame::before {
  content: "";
  position: absolute;
  inset: 16px;
  z-index: -1;
  border: 1px solid rgba(255,255,255,.055);
  border-radius: calc(var(--radius-xl) - 10px);
}

.visual-frame::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  z-index: -1;
  width: 310px;
  aspect-ratio: 1;
  border: 1px dashed rgba(255,255,255,.14);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: slow-spin 35s linear infinite;
}

@keyframes slow-spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.topography {
  position: absolute;
  inset: 0;
  z-index: -2;
  color: #b8d7ff;
  opacity: .85;
}

.visual-center {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  gap: 12px;
  width: 166px;
  aspect-ratio: 1;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 50%;
  background: rgba(9, 13, 25, .72);
  box-shadow: 0 24px 56px rgba(0,0,0,.35), inset 0 1px rgba(255,255,255,.08);
  transform: translate(-50%, -50%);
  backdrop-filter: blur(16px);
}

.visual-center img {
  width: 72px;
  height: 72px;
}

.visual-center span {
  color: var(--text-soft);
  font-size: .72rem;
  font-weight: 760;
  line-height: 1.1;
  letter-spacing: .08em;
  text-align: center;
  text-transform: uppercase;
}

.project-node {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 148px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(14, 20, 37, .78);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(14px);
  transition: transform .22s var(--ease), border-color .22s ease, background .22s ease;
}

.project-node:hover {
  z-index: 4;
  border-color: rgba(255,255,255,.28);
  background: rgba(19, 27, 49, .95);
  transform: translateY(-4px) scale(1.025);
}

.node-clima { top: 75px; right: 46px; }
.node-luci { top: 80px; left: 40px; }
.node-gol { bottom: 82px; left: 37px; }
.node-fn { right: 31px; bottom: 79px; }

.node-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 40px;
  aspect-ratio: 1;
  border-radius: 12px;
  color: var(--green);
  background: rgba(121, 228, 194, .1);
}

.node-gol .node-icon { color: var(--gold); background: rgba(255, 212, 122, .1); }
.node-fn .node-icon { color: var(--purple); background: rgba(198, 153, 255, .1); }
.node-luci .node-icon { color: var(--cyan); background: rgba(126, 227, 255, .1); }
.node-icon svg { width: 22px; height: 22px; }

.node-copy {
  display: grid;
  line-height: 1.2;
}

.node-copy strong { font-size: .86rem; }
.node-copy small { margin-top: 3px; color: var(--text-muted); font-size: .68rem; }

.visual-caption {
  margin: 14px 14px 0;
  color: var(--text-muted);
  font-size: .78rem;
  text-align: center;
}

.projects-section {
  position: relative;
  padding: 116px 0 128px;
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr minmax(320px, .62fr);
  align-items: end;
  gap: 36px;
  margin-bottom: 44px;
}

.section-heading h2,
.portal-copy h2,
.privacy-copy h2,
.legal-callout h2 {
  margin: 0;
  font-size: clamp(2.25rem, 4.4vw, 4rem);
  line-height: 1.04;
  letter-spacing: -.055em;
}

.section-heading p,
.portal-copy > p,
.legal-callout p {
  margin: 0;
  color: var(--text-soft);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.project-card {
  --card-accent: var(--green);
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 480px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
  background:
    radial-gradient(circle at 15% 110%, color-mix(in srgb, var(--card-accent) 20%, transparent), transparent 40%),
    linear-gradient(150deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  box-shadow: 0 12px 34px rgba(0,0,0,.14);
  transition: transform .3s var(--ease), border-color .3s ease, box-shadow .3s ease;
}

.project-card::before {
  content: "";
  position: absolute;
  top: -90px;
  right: -90px;
  width: 220px;
  aspect-ratio: 1;
  border: 1px solid color-mix(in srgb, var(--card-accent) 35%, transparent);
  border-radius: 50%;
  opacity: .6;
  transition: transform .4s var(--ease), opacity .3s ease;
}

.project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  background: linear-gradient(145deg, color-mix(in srgb, var(--card-accent) 9%, transparent), transparent 48%);
  transition: opacity .3s ease;
}

.project-card:hover {
  z-index: 3;
  border-color: color-mix(in srgb, var(--card-accent) 44%, var(--line));
  box-shadow: 0 24px 60px rgba(0,0,0,.28);
  transform: translateY(-8px);
}

.project-card:hover::before { opacity: 1; transform: scale(1.12); }
.project-card:hover::after { opacity: 1; }

.card-clima { --card-accent: var(--green); }
.card-gol { --card-accent: var(--gold); }
.card-fn { --card-accent: var(--purple); }
.card-luci { --card-accent: var(--cyan); }

.card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--text-muted);
  font-size: .69rem;
  font-weight: 760;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.card-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.card-status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--card-accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--card-accent) 12%, transparent);
}

.card-icon {
  display: grid;
  place-items: center;
  width: 76px;
  aspect-ratio: 1;
  margin-top: 45px;
  border: 1px solid color-mix(in srgb, var(--card-accent) 22%, transparent);
  border-radius: 22px;
  color: var(--card-accent);
  background: color-mix(in srgb, var(--card-accent) 8%, transparent);
}

.card-icon svg { width: 38px; height: 38px; }

.card-copy {
  margin-top: 30px;
}

.card-tag {
  color: var(--card-accent);
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.card-copy h3 {
  margin: 8px 0 12px;
  font-size: clamp(1.75rem, 2.8vw, 2.35rem);
  line-height: 1.05;
  letter-spacing: -.04em;
}

.card-copy p {
  margin: 0;
  color: var(--text-soft);
}

.card-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  padding-top: 32px;
  font-weight: 760;
}

.card-link svg { color: var(--card-accent); }

.card-domain {
  display: block;
  overflow: hidden;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--text-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: .69rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}


/* Standalone Trame Future project */
.datamart-section {
  position: relative;
  padding: 0 0 128px;
}

.datamart-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(430px, .97fr);
  min-height: 520px;
  overflow: hidden;
  border: 1px solid rgba(124, 167, 255, .25);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 8% 95%, rgba(121, 228, 194, .13), transparent 34%),
    radial-gradient(circle at 86% 8%, rgba(198, 153, 255, .13), transparent 34%),
    linear-gradient(145deg, rgba(20, 30, 56, .96), rgba(11, 16, 32, .94));
  box-shadow: var(--shadow-lg);
  transition: transform .35s var(--ease), border-color .35s ease, box-shadow .35s ease;
}

.datamart-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .38;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(90deg, black, transparent 66%);
}

.datamart-card:hover {
  border-color: rgba(126, 227, 255, .48);
  box-shadow: 0 36px 90px rgba(0,0,0,.42);
  transform: translateY(-7px);
}

.datamart-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  padding: clamp(30px, 5vw, 58px);
}

.datamart-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.datamart-topline .section-kicker { margin: 0; }

.external-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: max-content;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 10px;
  color: var(--text-soft);
  background: rgba(255,255,255,.045);
  font-size: .7rem;
  font-weight: 760;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.external-badge svg {
  width: 15px;
  height: 15px;
  color: var(--cyan);
}

.datamart-label {
  margin-top: 58px;
  color: var(--cyan);
  font-size: .75rem;
  font-weight: 820;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.datamart-copy h2 {
  max-width: 620px;
  margin: 10px 0 0;
  font-size: clamp(2.6rem, 5vw, 5.2rem);
  line-height: .96;
  letter-spacing: -.065em;
}

.datamart-copy > p {
  max-width: 660px;
  margin: 24px 0 0;
  color: var(--text-soft);
  font-size: 1.05rem;
}

.datamart-copy .datamart-note {
  margin-top: 12px;
  color: var(--text-muted);
  font-size: .86rem;
}

.datamart-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  margin-top: auto;
  padding-top: 42px;
  color: var(--cyan);
  font-weight: 820;
}

.datamart-link svg {
  width: 20px;
  height: 20px;
  transition: transform .2s var(--ease);
}

.datamart-card:hover .datamart-link svg { transform: translateX(5px); }

.datamart-domain {
  display: block;
  width: fit-content;
  margin-top: 11px;
  color: var(--text-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: .7rem;
}

.datamart-visual {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border-left: 1px solid var(--line);
  background:
    radial-gradient(circle at 50% 45%, rgba(124, 167, 255, .12), transparent 44%),
    rgba(5, 9, 20, .34);
}

.datamart-visual::before,
.datamart-visual::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 50%;
  pointer-events: none;
}

.datamart-visual::before {
  width: 390px;
  aspect-ratio: 1;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.datamart-visual::after {
  width: 510px;
  aspect-ratio: 1;
  top: 50%;
  left: 50%;
  border-style: dashed;
  opacity: .55;
  transform: translate(-50%, -50%);
  animation: slow-spin 48s linear infinite reverse;
}

.data-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.data-grid path {
  fill: none;
  stroke: rgba(255,255,255,.055);
  stroke-width: 1;
}

.data-edges path {
  fill: none;
  stroke: url(#dataLine);
  stroke-width: 1.7;
}

.data-edges .data-edge-soft {
  stroke: rgba(255,255,255,.09);
  stroke-dasharray: 5 9;
}

.data-node circle {
  stroke-width: 1.6;
  filter: drop-shadow(0 12px 20px rgba(0,0,0,.28));
}

.data-node text {
  fill: #eef5ff;
  stroke: none;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 11px;
  font-weight: 780;
  letter-spacing: 1.1px;
  text-anchor: middle;
}

.data-node-main circle { fill: rgba(12, 22, 45, .93); stroke: rgba(126, 227, 255, .78); }
.data-node-main .data-node-inner { fill: rgba(124, 167, 255, .08); stroke: rgba(255,255,255,.12); }
.data-node-main text { font-size: 13px; fill: var(--cyan); }
.data-node-source circle { fill: rgba(12, 31, 34, .94); stroke: rgba(121, 228, 194, .68); }
.data-node-person circle { fill: rgba(31, 23, 45, .94); stroke: rgba(198, 153, 255, .72); }
.data-node-event circle { fill: rgba(43, 29, 20, .94); stroke: rgba(255, 212, 122, .72); }
.data-node-election circle { fill: rgba(16, 29, 48, .94); stroke: rgba(124, 167, 255, .72); }
.data-node-theme circle { fill: rgba(45, 23, 25, .94); stroke: rgba(255, 157, 122, .72); }

.evidence-strip {
  position: absolute;
  right: 20px;
  bottom: 20px;
  left: 20px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 12px;
  background: rgba(8, 13, 27, .78);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(14px);
}

.evidence-strip span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: .65rem;
  font-weight: 700;
}

.evidence-strip i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.evidence-fact { background: var(--green); }
.evidence-statement { background: var(--blue); }
.evidence-reconstruction { background: var(--gold); }
.evidence-hypothesis { background: var(--coral); }

.portal-section {
  padding: 112px 0;
  border-block: 1px solid var(--line);
  background:
    radial-gradient(circle at 15% 10%, rgba(124, 167, 255, .08), transparent 28rem),
    rgba(255,255,255,.018);
}

.portal-grid {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(480px, 1.15fr);
  align-items: start;
  gap: clamp(52px, 8vw, 112px);
}

.portal-copy {
  position: sticky;
  top: 120px;
}

.portal-copy > p {
  margin-top: 24px;
  font-size: 1.08rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 30px;
  color: var(--green);
  font-weight: 800;
}

.principles {
  display: grid;
}

.principle {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 22px;
  padding: 30px 0;
  border-top: 1px solid var(--line);
}

.principle:last-child { border-bottom: 1px solid var(--line); }

.principle-index {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--green);
  font-size: .8rem;
  font-weight: 850;
}

.principle h3 {
  margin: 0 0 7px;
  font-size: 1.35rem;
  letter-spacing: -.025em;
}

.principle p {
  margin: 0;
  color: var(--text-soft);
}

.privacy-section {
  padding: 112px 0;
}

.privacy-panel {
  position: relative;
  display: grid;
  grid-template-columns: 82px 1fr auto;
  align-items: center;
  gap: 30px;
  overflow: hidden;
  border: 1px solid rgba(121, 228, 194, .25);
  border-radius: var(--radius-xl);
  padding: clamp(28px, 5vw, 54px);
  color: #eafff8;
  background:
    radial-gradient(circle at 0 100%, rgba(121,228,194,.16), transparent 35%),
    linear-gradient(135deg, rgba(31, 93, 76, .62), rgba(18, 46, 56, .75));
  box-shadow: var(--shadow-md);
}

.privacy-panel::after {
  content: "";
  position: absolute;
  width: 330px;
  aspect-ratio: 1;
  top: -230px;
  right: 10%;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%;
}

.privacy-seal {
  display: grid;
  place-items: center;
  width: 82px;
  aspect-ratio: 1;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 24px;
  background: rgba(255,255,255,.08);
}

.privacy-seal svg { width: 43px; height: 43px; }
.privacy-copy { position: relative; z-index: 1; }
.privacy-copy .section-kicker { color: #b9f7e3; }
.privacy-copy h2 { max-width: 820px; font-size: clamp(2rem, 3.5vw, 3.25rem); }
.privacy-copy > p { max-width: 820px; margin: 18px 0 0; color: rgba(234, 255, 248, .82); }
.privacy-copy .privacy-note { margin-top: 10px; color: rgba(234, 255, 248, .62); font-size: .82rem; }
.privacy-panel .button { position: relative; z-index: 1; }

.site-footer {
  padding: 72px 0 24px;
  border-top: 1px solid var(--line);
  background: var(--bg-deep);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(250px, 1.5fr) 1fr 1fr;
  gap: 60px;
  padding-bottom: 56px;
}

.brand-footer { margin-bottom: 18px; }
.footer-brand p { max-width: 360px; margin: 0; color: var(--text-muted); font-size: .9rem; }
.footer-links { display: grid; align-content: start; gap: 10px; }
.footer-links > span { margin-bottom: 6px; color: var(--text); font-size: .78rem; font-weight: 820; letter-spacing: .1em; text-transform: uppercase; }
.footer-links a,
.footer-links button {
  width: fit-content;
  border: 0;
  padding: 0;
  color: var(--text-muted);
  background: none;
  font-size: .9rem;
  cursor: pointer;
  transition: color .2s ease;
}
.footer-links a:hover,
.footer-links button:hover { color: var(--text); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--text-muted);
  font-size: .75rem;
}

.footer-bottom p { margin: 0; }

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 300;
  max-width: min(360px, calc(100vw - 40px));
  padding: 12px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  color: var(--text);
  background: rgba(17, 23, 42, .94);
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  backdrop-filter: blur(16px);
  font-size: .86rem;
}

.toast.is-visible { opacity: 1; transform: translateY(0); }

.reveal {
  opacity: 1;
  transform: none;
}

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .72s var(--ease), transform .72s var(--ease);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.js .reveal-delay-1 { transition-delay: .08s; }
.js .reveal-delay-2 { transition-delay: .16s; }
.js .reveal-delay-3 { transition-delay: .24s; }

/* Legal page */
.legal-page { background: var(--bg); }
.legal-main { padding: 142px 0 110px; }
.legal-shell { max-width: 940px; }
.legal-hero { padding: 48px 0 54px; border-bottom: 1px solid var(--line); }
.legal-hero h1 { margin: 0; font-size: clamp(3rem, 8vw, 6rem); line-height: .95; letter-spacing: -.065em; }
.legal-hero > p { max-width: 680px; margin: 22px 0 0; color: var(--text-soft); font-size: 1.12rem; }
.legal-summary { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 30px; }
.legal-summary span { padding: 7px 11px; border: 1px solid rgba(121, 228, 194, .22); border-radius: 999px; color: #bdf7e5; background: rgba(121, 228, 194, .06); font-size: .76rem; font-weight: 750; }
.legal-content { padding: 34px 0 24px; }
.legal-content section { padding: 30px 0; border-bottom: 1px solid var(--line); }
.legal-content h2 { margin: 0 0 14px; font-size: 1.45rem; letter-spacing: -.025em; }
.legal-content p { margin: 0; color: var(--text-soft); }
.legal-content p + p { margin-top: 12px; }
.legal-content strong { color: var(--text); }
.legal-content a { color: var(--green); text-decoration: underline; text-decoration-color: rgba(121, 228, 194, .35); text-underline-offset: 3px; }
.legal-content a:hover { color: #a1f1d8; text-decoration-color: currentColor; }
.legal-contact { display: grid; margin: 18px 0 0; overflow: hidden; border: 1px solid rgba(121, 228, 194, .2); border-radius: 16px; background: rgba(121, 228, 194, .045); }
.legal-contact-row { display: grid; grid-template-columns: minmax(150px, .42fr) 1fr; gap: 22px; padding: 16px 18px; }
.legal-contact-row + .legal-contact-row { border-top: 1px solid var(--line); }
.legal-contact dt { color: var(--text-muted); font-size: .76rem; font-weight: 780; letter-spacing: .08em; text-transform: uppercase; }
.legal-contact dd { margin: 0; color: var(--text); font-weight: 680; }
.legal-updated { color: var(--text-muted) !important; font-size: .82rem; }
.legal-callout { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 30px; margin-top: 52px; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.legal-callout h2 { max-width: 650px; font-size: clamp(1.7rem, 4vw, 2.45rem); }
.legal-callout p:not(.section-kicker) { margin-top: 14px; }
.legal-footer { padding-top: 24px; }

@media (max-width: 1050px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: 800px; }
  .hero-visual { max-width: 720px; width: 100%; }
  .visual-frame { min-height: 560px; }
  .projects-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .datamart-card { grid-template-columns: 1fr; }
  .datamart-visual { min-height: 500px; border-top: 1px solid var(--line); border-left: 0; }
  .project-card { min-height: 390px; }
  .card-icon { margin-top: 30px; }
  .portal-grid { grid-template-columns: 1fr; }
  .portal-copy { position: static; max-width: 700px; }
  .privacy-panel { grid-template-columns: 82px 1fr; }
  .privacy-panel .button { grid-column: 2; justify-self: start; }
}

@media (max-width: 760px) {
  :root { --shell: min(100% - 28px, 1180px); --header-height: 72px; }
  body::before { background-size: 36px 36px; }
  .site-header { height: 72px; }
  .menu-toggle { display: inline-flex; }
  .js .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 14px;
    left: 14px;
    display: grid;
    gap: 4px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(11, 16, 32, .97);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transform: translateY(-8px) scale(.985);
    visibility: hidden;
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
    backdrop-filter: blur(18px);
  }
  .js .site-nav.is-open { opacity: 1; transform: translateY(0) scale(1); visibility: visible; }
  .site-nav > a,
  .nav-share { width: 100%; justify-content: flex-start; border-radius: 11px; padding: 12px 13px; text-align: left; }
  .nav-share { margin-left: 0; border-color: transparent; }
  .no-js .header-inner { align-items: flex-start; height: auto; padding-block: 14px; }
  .no-js .site-header { position: static; height: auto; }
  .no-js .site-nav { display: grid; }
  .hero { min-height: 0; padding: 118px 0 70px; }
  .hero h1 { font-size: clamp(3.15rem, 17vw, 5rem); }
  .hero-lead { margin-top: 22px; }
  .hero-actions { align-items: stretch; }
  .hero-actions .button { width: 100%; }
  .hero-meta { align-items: flex-start; gap: 14px; }
  .meta-divider { height: 44px; }
  .visual-frame { min-height: 450px; border-radius: 26px; }
  .visual-center { width: 132px; }
  .visual-center img { width: 58px; height: 58px; }
  .visual-frame::after { width: 245px; }
  .project-node { min-width: 128px; padding: 9px 10px; }
  .node-icon { width: 34px; }
  .node-icon svg { width: 19px; height: 19px; }
  .node-clima { top: 50px; right: 18px; }
  .node-luci { top: 50px; left: 14px; }
  .node-gol { bottom: 52px; left: 14px; }
  .node-fn { right: 12px; bottom: 122px; }
  .visual-caption { margin-inline: 4px; }
  .projects-grid { grid-template-columns: 1fr; }
  .projects-section,
  .portal-section,
  .privacy-section { padding-block: 78px; }
  .datamart-section { padding-bottom: 78px; }
  .datamart-card { border-radius: 24px; }
  .datamart-copy { padding: 26px; }
  .datamart-topline { align-items: flex-start; flex-direction: column; gap: 12px; }
  .datamart-label { margin-top: 42px; }
  .datamart-copy h2 { font-size: clamp(2.8rem, 14vw, 4.5rem); }
  .datamart-link { padding-top: 34px; }
  .datamart-visual { min-height: 420px; }
  .section-heading { grid-template-columns: 1fr; gap: 16px; margin-bottom: 30px; }
  .project-card { min-height: 430px; padding: 20px; }
  .portal-grid { gap: 42px; }
  .principle { grid-template-columns: 44px 1fr; gap: 16px; }
  .privacy-panel { grid-template-columns: 1fr; gap: 22px; border-radius: 24px; }
  .privacy-panel .button { grid-column: 1; width: 100%; }
  .privacy-seal { width: 66px; border-radius: 19px; }
  .privacy-seal svg { width: 35px; height: 35px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px 24px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { align-items: flex-start; flex-direction: column; gap: 8px; }
  .legal-main { padding-top: 106px; }
  .legal-hero { padding-top: 36px; }
  .legal-callout { grid-template-columns: 1fr; }
  .legal-callout .button { width: 100%; }
}

@media (max-width: 480px) {
  .brand-copy { display: none; }
  .hero h1 { letter-spacing: -.065em; }
  .hero-meta { display: grid; grid-template-columns: 1fr; }
  .meta-divider { width: 100%; height: 1px; }
  .visual-frame { min-height: 410px; }
  .visual-center { width: 118px; }
  .visual-center span { display: none; }
  .project-node { min-width: auto; }
  .node-copy small { display: none; }
  .node-fn { bottom: 108px; }
  .card-status { display: none; }
  .external-badge { font-size: .64rem; }
  .datamart-visual { min-height: 350px; }
  .evidence-strip { right: 12px; bottom: 12px; left: 12px; gap: 7px 10px; }
  .evidence-strip span { font-size: .59rem; }
  .legal-contact-row { grid-template-columns: 1fr; gap: 4px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

@media (prefers-contrast: more) {
  :root { --line: rgba(255,255,255,.28); --line-strong: rgba(255,255,255,.5); --text-soft: #d5dbec; --text-muted: #b5bed4; }
}
