/* MetaCare — identity from the logo: a graphite metallic monogram.
   Dark "immersive" bands (night landscape in layers, aqua light) alternate with calm light bands.
   Motion: layered parallax, words rising, cards stacking, rooms drifting. All off with prefers-reduced-motion. */

@font-face { font-family: "Jost"; src: url("../fonts/jost.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("../fonts/manrope.woff2") format("woff2"); font-weight: 300 800; font-display: swap; }

:root {
  --ink: #0B131B;
  --ink-2: #111E29;
  --ink-3: #1A2A37;
  --graphite: #3B4249;
  --paper: #F6F8F8;
  --mist: #E9F1F1;
  --line: #D9E2E3;
  --text: #16212A;
  --muted: #56636D;
  --aqua: #66C4BF;
  --aqua-deep: #0B7B76;        /* aqua for text/buttons on light: 5.2:1 on white */
  --on-dark: #E8F0F2;
  --on-dark-muted: #A9B8C1;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 24px 60px -30px rgba(11, 19, 27, .45);
  --ease: cubic-bezier(.22, .8, .18, 1);
  --head: "Jost", "Futura", "Century Gothic", system-ui, sans-serif;
  --body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --top-h: 76px;
}

/* Project colours: --c for accents on dark, --cd for text/buttons on light, --cg for card gradients */
.c-aqua   { --c: #6FD3CB; --cd: #0B7B76; --cg: #0E3A3C; }
.c-ocean  { --c: #7FB2F0; --cd: #2559A8; --cg: #12294A; }
.c-violet { --c: #A99BFF; --cd: #5A48C9; --cg: #241D4A; }
.c-coral  { --c: #F6A57D; --cd: #B4501F; --cg: #43221A; }
.c-sage   { --c: #7FD8A6; --cd: #237A4C; --cg: #10342A; }
.c-gold   { --c: #EAC57A; --cd: #8A6312; --cg: #3A2C10; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--top-h) + 16px); }
body { margin: 0; font-family: var(--body); font-size: 1.0625rem; line-height: 1.65; color: var(--text); background: var(--paper); overflow-x: hidden; }
img, svg { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--aqua-deep); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, .h3 { font-family: var(--head); font-weight: 500; line-height: 1.12; letter-spacing: -.01em; margin: 0 0 .5em; color: inherit; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.6rem); font-weight: 400; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.8rem); font-weight: 400; }
h3, .h3 { font-size: clamp(1.2rem, 1.7vw, 1.45rem); }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
:focus-visible { outline: 3px solid var(--aqua); outline-offset: 3px; border-radius: 6px; }
main:focus { outline: none; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: #fff; color: var(--ink); padding: 10px 16px; border-radius: 10px; font-weight: 700; }
.skip:focus { top: 12px; }
.no-scroll { overflow: hidden; }

.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(780px, 100% - 32px); }
.center { text-align: center; }
.small { font-size: .9rem; }
.muted { color: var(--muted); }
.lead { font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.6; color: var(--muted); max-width: 42em; }
.kicker, .eyebrow { font-family: var(--head); text-transform: uppercase; letter-spacing: .18em; font-size: .78rem; font-weight: 600; color: var(--aqua-deep); margin: 0 0 1em; }
.ico { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }

/* ---------- Buttons & links ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55em; min-height: 48px; padding: .75em 1.4em; border-radius: 999px; border: 1.5px solid transparent;
  background: var(--ink); color: #fff; font: 600 1rem/1.2 var(--body); text-decoration: none; cursor: pointer; transition: transform .3s var(--ease), background .3s, box-shadow .3s, color .3s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -14px rgba(11, 19, 27, .55); background: var(--ink-3); }
.btn .ico { transition: transform .3s var(--ease); }
.btn:hover .ico { transform: translateX(3px); }
.btn.ghost { background: transparent; color: var(--ink); border-color: currentColor; }
.btn.ghost:hover { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--aqua); color: var(--ink); }
.ghost-light { background: rgba(255, 255, 255, .06); color: #fff; border-color: rgba(255, 255, 255, .45); backdrop-filter: blur(6px); }
.ghost-light:hover { background: rgba(255, 255, 255, .16); border-color: #fff; color: #fff; }
.btn-sm { min-height: 42px; padding: .55em 1.1em; font-size: .93rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.4em; }
.link-arrow { display: inline-flex; align-items: center; gap: .45em; font-weight: 700; text-decoration: none; color: var(--aqua-deep); }
.link-arrow .ico { transition: transform .3s var(--ease); }
.link-arrow:hover .ico { transform: translateX(4px); }
.link-arrow.on-dark { color: var(--aqua); }
.btn-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid currentColor; background: transparent; color: inherit; cursor: pointer; transition: background .3s, color .3s; }
.btn-icon:hover { background: var(--aqua); border-color: var(--aqua); color: var(--ink); }
.linklike { background: none; border: 0; padding: 0; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }

/* ---------- Header ---------- */
.top { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--top-h); color: #fff; transition: background .4s, color .4s, box-shadow .4s, transform .4s var(--ease); }
.top.scrolled { background: rgba(246, 248, 248, .9); backdrop-filter: blur(14px) saturate(1.3); color: var(--text); box-shadow: 0 1px 0 var(--line); }
.top-inner { height: 100%; display: flex; align-items: center; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; margin-right: auto; }
.brand-mono { width: 52px; height: auto; }
.brand-on-light { display: none; }
.top.scrolled .brand-on-light { display: block; }
.top.scrolled .brand-on-dark { display: none; }
.brand-name { font: 500 1.1rem/1 var(--head); letter-spacing: .22em; text-transform: uppercase; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.nav-item { position: relative; display: flex; align-items: center; }
.nav-item > a { color: inherit; text-decoration: none; font-weight: 600; font-size: .95rem; padding: 10px 12px; border-radius: 999px; transition: background .25s; }
.nav-item > a:hover, .nav-item > a[aria-current], .nav-item > a.is-active { background: rgba(127, 160, 170, .18); }
.sub-btn { display: none; }
.sub { list-style: none; margin: 0; padding: 10px; position: absolute; top: 100%; left: 0; min-width: 230px; background: #fff; color: var(--text); border-radius: var(--radius-sm); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .25s, transform .25s var(--ease), visibility .25s; }
.sub a { display: block; padding: 9px 12px; border-radius: 10px; color: inherit; text-decoration: none; font-weight: 600; font-size: .95rem; }
.sub a:hover, .sub a[aria-current] { background: var(--mist); }
.has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.has-sub.dismissed .sub { opacity: 0; visibility: hidden; }
.nav-mobile-only { display: none; }
.top-cta { background: var(--aqua); color: var(--ink); }
.top-cta:hover { background: #fff; color: var(--ink); }
.menu-btn { display: none; }

@media (max-width: 1060px) {
  .menu-btn { display: grid; place-content: center; gap: 7px; width: 46px; height: 46px; border-radius: 50%; border: 1px solid currentColor; background: transparent; color: inherit; cursor: pointer; order: 3; position: relative; z-index: 2; }
  .menu-btn span { display: block; width: 20px; height: 2px; background: currentColor; transition: transform .35s var(--ease); }
  .menu-btn[aria-expanded="true"] span:first-child { transform: translateY(4.5px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-4.5px) rotate(-45deg); }
  .menu-btn[aria-expanded="true"] { color: #fff; }
  .top-cta { display: none; }
  .nav { position: fixed; inset: 0; background: var(--ink); color: #fff; padding: calc(var(--top-h) + 20px) 24px 40px; overflow-y: auto;
    opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s; }
  .nav[data-open] { opacity: 1; visibility: visible; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-item { flex-wrap: wrap; border-bottom: 1px solid rgba(255, 255, 255, .1); }
  .nav-item > a { flex: 1; font: 400 1.5rem/1.3 var(--head); padding: 14px 4px; border-radius: 0; }
  .nav-item > a:hover, .nav-item > a[aria-current], .nav-item > a.is-active { background: none; color: var(--aqua); }
  .sub-btn { display: grid; place-items: center; width: 46px; height: 46px; border: 0; background: none; color: inherit; cursor: pointer; }
  .sub-btn[aria-expanded="true"] .ico { transform: rotate(180deg); }
  .sub { position: static; flex-basis: 100%; opacity: 1; visibility: visible; transform: none; display: none; background: none; color: #fff; box-shadow: none; padding: 0 0 12px 8px; min-width: 0; }
  .sub.open { display: block; }
  .sub a:hover, .sub a[aria-current] { background: rgba(255, 255, 255, .08); }
  .nav-mobile-only { display: flex; }
  /* backdrop-filter would make the header the containing block of the fixed menu */
  .top:has(.nav[data-open]) { color: #fff; backdrop-filter: none; background: var(--ink); box-shadow: none; }
  .top:has(.nav[data-open]) .brand-on-light { display: none; }
  .top:has(.nav[data-open]) .brand-on-dark { display: block; }
  .brand { position: relative; z-index: 2; }
}

.demo-note { position: fixed; z-index: 45; left: 16px; bottom: 16px; max-width: min(320px, 100% - 110px); margin: 0; background: #FFF4C2; color: #3D3200; padding: 10px 14px; border-radius: 12px; font-size: .85rem; box-shadow: var(--shadow); }

/* ---------- Dark scene (hero, page heads) ---------- */
.hero, .page-hero, .p-hero { position: relative; isolation: isolate; overflow: hidden; background: var(--ink); color: var(--on-dark); }
.scene { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.layer { position: absolute; inset: 0; will-change: transform; }
.sky { background:
    radial-gradient(120% 80% at 70% 10%, rgba(102, 196, 191, .22), transparent 55%),
    radial-gradient(90% 70% at 10% 30%, rgba(90, 110, 200, .18), transparent 60%),
    linear-gradient(180deg, #0A1119 0%, #0E1B26 55%, #12242F 100%); }
.stars { inset: -10% 0; background-image:
    radial-gradient(1.2px 1.2px at 12% 18%, rgba(255,255,255,.7), transparent 60%),
    radial-gradient(1px 1px at 28% 42%, rgba(255,255,255,.5), transparent 60%),
    radial-gradient(1.4px 1.4px at 46% 12%, rgba(255,255,255,.8), transparent 60%),
    radial-gradient(1px 1px at 63% 30%, rgba(255,255,255,.55), transparent 60%),
    radial-gradient(1.2px 1.2px at 78% 16%, rgba(255,255,255,.7), transparent 60%),
    radial-gradient(1px 1px at 88% 44%, rgba(255,255,255,.45), transparent 60%),
    radial-gradient(1px 1px at 36% 26%, rgba(255,255,255,.4), transparent 60%),
    radial-gradient(1.3px 1.3px at 54% 48%, rgba(255,255,255,.5), transparent 60%);
  background-size: 640px 420px; animation: twinkle 7s ease-in-out infinite alternate; }
@keyframes twinkle { to { opacity: .55; } }
.orb { inset: auto; width: min(70vw, 760px); aspect-ratio: 1; right: -12%; top: -18%; border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, rgba(130, 225, 218, .55), rgba(102, 196, 191, .18) 40%, transparent 70%); filter: blur(10px); animation: breathe 9s ease-in-out infinite; }
@keyframes breathe { 50% { scale: 1.08; opacity: .85; } }
.ridge { top: auto; bottom: 0; width: 100%; height: 46%; }
.ridge path { fill: currentColor; }
.r1 { color: #142632; height: 52%; }
.r2 { color: #0F1E29; height: 40%; }
.r3 { color: #0B151D; height: 24%; }

.hero { min-height: 100svh; display: grid; align-items: center; padding: calc(var(--top-h) + 40px) 0 120px; }
.hero-inner { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero-mono { width: clamp(120px, 16vw, 190px); margin-bottom: 26px; filter: drop-shadow(0 10px 40px rgba(102, 196, 191, .35)); }
.hero .eyebrow, .page-hero .eyebrow, .p-hero .eyebrow { color: var(--aqua); }
.hero-title { max-width: 15em; margin-inline: auto; font-size: clamp(2.3rem, 5.8vw, 4.8rem); color: #fff; }
.hero-title .w { display: inline-block; opacity: 0; transform: translateY(.6em); filter: blur(6px); animation: word .9s var(--ease) forwards; animation-delay: calc(.25s + var(--i) * .06s); }
@keyframes word { to { opacity: 1; transform: none; filter: none; } }
.hero .lead { color: var(--on-dark-muted); margin-inline: auto; }
.hero .actions { justify-content: center; }
.scroll-cue { position: absolute; left: 50%; bottom: 28px; translate: -50% 0; width: 28px; height: 46px; border: 1.5px solid rgba(255,255,255,.5); border-radius: 20px; }
.scroll-cue span { position: absolute; left: 50%; top: 9px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: cue 2s ease-in-out infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 80%, 100% { opacity: 0; transform: translateY(14px); } }

.rise { opacity: 0; transform: translateY(24px); animation: rise 1s var(--ease) forwards; animation-delay: var(--d, 0s); }
@keyframes rise { to { opacity: 1; transform: none; } }

.page-hero { padding: calc(var(--top-h) + 70px) 0 110px; }
.page-hero h1 { color: #fff; max-width: 16em; }
.page-hero .lead { color: var(--on-dark-muted); }
.page-hero.has-img .hero-photo { inset: 0; width: 100%; height: 115%; object-fit: cover; opacity: .32; mask-image: linear-gradient(90deg, transparent 10%, #000 70%); }
.crumbs ol { list-style: none; padding: 0; margin: 0 0 26px; display: flex; flex-wrap: wrap; gap: 6px; font-size: .88rem; color: var(--on-dark-muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .5; }
.crumbs a { color: inherit; }
.crumbs [aria-current] { color: #fff; }

/* ---------- Bands ---------- */
.band { padding: clamp(72px, 10vw, 130px) 0; position: relative; }
.band-tight { padding: clamp(48px, 6vw, 80px) 0; }
.band-soft { background: var(--mist); }
.head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 60px); }
.head-row { max-width: none; display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; }
.split { display: grid; gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1.1fr .9fr; } }
.split-head { display: grid; gap: 18px; margin-bottom: 40px; }
@media (min-width: 900px) { .split-head { grid-template-columns: 1fr 1fr; align-items: end; } }

.reveal { opacity: 0; transform: translateY(30px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
html:not(.js) .reveal { opacity: 1; transform: none; }

/* Intro statement: words light up while scrolling */
.statement { font-size: clamp(1.7rem, 3.6vw, 3.1rem); line-height: 1.25; max-width: 22em; margin-bottom: 1.4em; }
.mw { color: #B9C6CC; transition: color .5s; }
.mw.on { color: var(--text); }
.mw.hl.on { color: var(--aqua-deep); }

.pillars { list-style: none; padding: 0; margin: 0 0 40px; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.pillar { position: relative; overflow: hidden; display: flex; align-items: flex-end; min-height: 360px; border-radius: var(--radius); background: linear-gradient(135deg, var(--aqua-deep), var(--ink)); color: #fff; transition: transform .4s var(--ease), box-shadow .4s; }
.pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.pillar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.pillar:hover img { transform: scale(1.05); }
.pillar::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 19, 27, 0) 25%, rgba(11, 19, 27, .55) 55%, rgba(11, 19, 27, .92)); }
.pillar-text { position: relative; z-index: 1; padding: 28px; }
.pillar h3 { color: #fff; }
.pillar .pillar-text p { color: rgba(255, 255, 255, .85); }
.intro { padding-bottom: clamp(40px, 5vw, 64px); }
.intro .pillars + p { margin-bottom: 0; }
.projects-band { padding-top: clamp(40px, 5vw, 72px); }
.pillar-ico, .feat-ico, .portal-ico { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--mist); color: var(--aqua-deep); margin-bottom: 18px; }
.pillar-ico .ico, .feat-ico .ico, .portal-ico .ico { width: 26px; height: 26px; }
.pillar p { color: var(--muted); margin: 0; }

/* ---------- Projects: stacking cards ---------- */
.projects-band { background: linear-gradient(180deg, var(--paper), #fff); }
.stack { list-style: none; padding: 0; margin: 0; display: grid; gap: 28px; }
.stack-card { position: sticky; top: calc(var(--top-h) + 20px + var(--i) * 14px); display: grid; overflow: hidden; border-radius: 28px; color: var(--on-dark); min-height: 420px;
  background: radial-gradient(120% 120% at 100% 0%, color-mix(in srgb, var(--c) 30%, transparent), transparent 55%), linear-gradient(135deg, var(--cg), var(--ink)); box-shadow: 0 30px 70px -40px rgba(0, 0, 0, .7); }
@media (min-width: 900px) { .stack-card { grid-template-columns: 1.05fr .95fr; } }
.stack-text { padding: clamp(28px, 4vw, 56px); display: flex; flex-direction: column; justify-content: center; }
.stack-text h3 { font-size: clamp(2rem, 3.8vw, 3.2rem); font-weight: 400; margin-bottom: .35em; }
.stack-text h3 a { color: #fff; text-decoration: none; }
.stack-card a { scroll-margin-top: calc(var(--top-h) + 120px); scroll-margin-bottom: 40vh; }
.stack-card:focus-within { z-index: 2; }
.stack-text h3 a:hover { color: var(--c); }
.stack-text p { color: var(--on-dark-muted); max-width: 34em; }
.stack-text .eyebrow { color: var(--c); }
.stack-num { font: 300 .95rem/1 var(--head); letter-spacing: .2em; color: var(--c); margin-bottom: 18px; }
.stack-art { position: relative; min-height: 260px; overflow: hidden; }
.stack-art img { position: absolute; inset: -8% 0; width: 100%; height: 116%; object-fit: cover; }
.stack-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--cg) 0%, transparent 45%); }
@media (max-width: 899px) { .stack-art::after { background: linear-gradient(0deg, var(--cg) 0%, transparent 50%); } }
.stack-name { position: absolute; right: 18px; bottom: 6px; z-index: 1; font: 500 clamp(2.4rem, 6vw, 5rem)/1 var(--head); color: rgba(255, 255, 255, .1); letter-spacing: -.02em; }

/* ---------- Immersive band (home) ---------- */
.immersive-band { background: var(--ink); color: var(--on-dark); overflow: hidden; }
.immersive-band .kicker { color: var(--aqua); }
.immersive-band h2 { color: #fff; }
.immersive-band p { color: var(--on-dark-muted); }
.immersive-band { padding-bottom: clamp(56px, 7vw, 90px); }
.drift { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: rgba(102, 196, 191, .5) transparent; padding-bottom: 12px; margin-bottom: 10px; }
.drift.is-pinned { scrollbar-width: none; }
.drift-track { list-style: none; margin: 0; padding: 0 16px; display: flex; gap: 20px; width: max-content; }
.room-tile { scroll-snap-align: center; width: min(78vw, 400px); }
.room-tile:nth-child(even) { margin-top: 48px; }
.room-tile figure { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--ink-3); }
.room-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.room-tile:hover img { transform: scale(1.06); }
.room-tile figcaption { position: absolute; inset: auto 0 0; padding: 40px 20px 18px; background: linear-gradient(0deg, rgba(8, 14, 20, .85), transparent); display: grid; gap: 2px; }
.room-tile strong { font: 500 1.3rem/1.2 var(--head); color: #fff; }
.room-tile figcaption span { font-size: .9rem; color: var(--on-dark-muted); }
@media (min-width: 900px) {
  .drift.is-pinned { overflow: visible; }
  .drift.is-pinned .drift-track { padding-left: max(16px, (100vw - 1200px) / 2); will-change: transform; }
}

/* ---------- Research band ---------- */
.research-band { background: linear-gradient(180deg, #0F1C27, var(--ink)); color: var(--on-dark); overflow: hidden; }
.research-band h2, .research-band h3 { color: #fff; }
.research-band .kicker { color: var(--aqua); }
.research-band .lead, .research-band p { color: var(--on-dark-muted); }
.research-band .btn { background: var(--aqua); color: var(--ink); }
.research-band .btn:hover { background: #fff; }
.research-band .btn.ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.research-band .btn.ghost:hover { background: rgba(255,255,255,.12); }
.data-lines { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .5; }
.data-lines path { fill: none; stroke: var(--aqua); stroke-width: 1.2; stroke-dasharray: 1600; stroke-dashoffset: 1600; animation: draw 6s var(--ease) forwards; vector-effect: non-scaling-stroke; }
.data-lines path:nth-child(2) { stroke: #7FB2F0; animation-delay: .6s; opacity: .7; }
.data-lines path:nth-child(3) { stroke: #A99BFF; animation-delay: 1.2s; opacity: .5; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.research-band .wrap { position: relative; }
.feat-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.feat { padding: 24px; border-radius: var(--radius); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); backdrop-filter: blur(6px); }
.feat h3 { font-size: 1.15rem; }
.feat p { margin: 0; font-size: .97rem; }
.feat .feat-ico { background: rgba(102, 196, 191, .14); color: var(--aqua); }
.feat-wide { margin-top: 36px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

/* ---------- Duo cards (pros, direction) ---------- */
.duo { display: grid; gap: 20px; }
@media (min-width: 800px) { .duo { grid-template-columns: 1fr 1fr; } }
.duo-card { display: flex; flex-direction: column; gap: 10px; padding: clamp(28px, 4vw, 44px); border-radius: var(--radius); text-decoration: none; color: var(--on-dark);
  background: radial-gradient(100% 120% at 100% 0%, rgba(102, 196, 191, .35), transparent 60%), var(--ink-2); transition: transform .4s var(--ease), box-shadow .4s; }
a.duo-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.duo-card .eyebrow { color: var(--aqua); margin: 0; }
.duo-card strong { font: 400 clamp(1.5rem, 2.6vw, 2.1rem)/1.2 var(--head); color: #fff; }
.duo-card span { color: var(--on-dark-muted); }
.duo-card .link-arrow { color: var(--aqua); margin-top: auto; padding-top: 8px; }
.duo-quiet { background: #fff; color: var(--text); border: 1px solid var(--line); }
.duo-quiet .eyebrow, .duo-quiet .link-arrow { color: var(--aqua-deep); }
.duo-quiet strong { color: var(--text); }
.duo-quiet span { color: var(--muted); }

/* ---------- CTA ---------- */
.cta-band { padding: clamp(40px, 6vw, 80px) 0; }
.cta-card { position: relative; overflow: hidden; display: grid; gap: 24px; align-items: center; padding: clamp(32px, 5vw, 64px); border-radius: 30px; background: var(--ink); color: var(--on-dark); }
@media (min-width: 900px) { .cta-card { grid-template-columns: 1fr auto; } }
.cta-card h2 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.5rem); }
.cta-card p { color: var(--on-dark-muted); margin: 0; }
.cta-card .actions { margin: 0; }
.cta-card > div:not(.cta-glow) { position: relative; }
.cta-glow { position: absolute; width: 520px; aspect-ratio: 1; right: -160px; top: -260px; border-radius: 50%; background: radial-gradient(circle, rgba(102, 196, 191, .45), transparent 65%); animation: breathe 10s ease-in-out infinite; }

/* ---------- Project page ---------- */
.p-hero { padding: calc(var(--top-h) + 60px) 0 90px; }
.p-hero .sky { background: radial-gradient(100% 90% at 85% 10%, color-mix(in srgb, var(--c) 32%, transparent), transparent 60%), linear-gradient(160deg, var(--cg), var(--ink) 70%); }
.p-hero .orb { background: radial-gradient(circle, color-mix(in srgb, var(--c) 45%, transparent), transparent 65%); }
.p-hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .p-hero-grid { grid-template-columns: 1.05fr .95fr; } }
.p-hero h1 { color: #fff; }
.p-hero .eyebrow { color: var(--c); }
.p-open { font-size: clamp(1.15rem, 1.6vw, 1.4rem); color: var(--on-dark-muted); max-width: 30em; }
.p-photo { margin: 0; border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 3; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8); }
.p-photo img { width: 100%; height: 116%; object-fit: cover; margin-top: -8%; }
.project { display: grid; gap: 48px; }
@media (min-width: 960px) { .project { grid-template-columns: 1fr 360px; align-items: start; } }
.pblock { padding-bottom: 32px; margin-bottom: 32px; border-bottom: 1px solid var(--line); }
.pblock:last-child { border-bottom: 0; }
.pblock h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); color: var(--cd, var(--text)); }
.funding { background: var(--mist); padding: 26px; border-radius: var(--radius); border: 0; }
.project-side { display: grid; gap: 18px; position: sticky; top: calc(var(--top-h) + 24px); }
.side-card { padding: 28px; border-radius: var(--radius); background: var(--ink); color: var(--on-dark); }
.side-card h2 { color: #fff; }
.side-card .ext-links a { color: #fff; }
.side-card .ext-links span { color: var(--on-dark-muted); }
.side-quiet { background: #fff; color: var(--text); border: 1px solid var(--line); }
.side-quiet h2 { color: var(--text); }
.ext-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.ext-links li { display: grid; gap: 2px; }
.ext-links a { display: inline-flex; align-items: center; gap: .4em; font-weight: 700; text-decoration: none; color: var(--cd, var(--aqua-deep)); }
.ext-links a:hover { text-decoration: underline; }
.ext-links span { font-size: .88rem; color: var(--muted); }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-block; padding: 10px 18px; border-radius: 999px; background: #fff; border: 1.5px solid var(--cd); color: var(--cd); font-weight: 700; text-decoration: none; transition: background .3s, color .3s; }
.chip:hover { background: var(--cd); color: #fff; }

/* ---------- Immersive page ---------- */
.rooms { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: clamp(48px, 7vw, 96px); }
.room { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .room { grid-template-columns: 1.1fr .9fr; } .room-flip .room-pic { order: 2; } }
.room-pic { position: relative; margin: 0; border-radius: 28px; overflow: hidden; aspect-ratio: 16 / 10; background: var(--ink-3); }
.room-blur { position: absolute; inset: -30px; background-size: cover; background-position: center; filter: blur(24px) brightness(.8); }
.room-pic img { position: relative; width: 100%; height: 116%; object-fit: cover; margin-top: -8%; }
.room-text h3 { font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 400; }
.room-short { font-size: 1.15rem; color: var(--muted); }
.room-text .stack-num { color: var(--aqua-deep); }
.steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); counter-reset: s; }
.step { padding: 28px; background: #fff; border-radius: var(--radius); }
.step-n { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: var(--aqua); font: 500 1.1rem/1 var(--head); margin-bottom: 16px; }
.step p { margin: 0; color: var(--muted); }
.note-card { display: flex; gap: 14px; align-items: flex-start; padding: 22px 24px; border-radius: var(--radius); background: var(--mist); margin: 0; }
.note-card .ico { width: 26px; height: 26px; color: var(--aqua-deep); }

/* ---------- Research page ---------- */
.portal-card { padding: clamp(28px, 4vw, 44px); border-radius: var(--radius); background: var(--ink); color: var(--on-dark); }
.portal-card h2 { color: #fff; }
.portal-card p { color: var(--on-dark-muted); }
.portal-card .portal-ico { background: rgba(102, 196, 191, .14); color: var(--aqua); }
.portal-card .btn { background: var(--aqua); color: var(--ink); }
.portal-card .btn:hover { background: #fff; }

/* ---------- Professionals ---------- */
.pro-grid { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.pro-card { padding: 28px; border-radius: var(--radius); background: #fff; border-top: 4px solid var(--cd); box-shadow: 0 18px 40px -34px rgba(0,0,0,.5); }
.pro-card h3 { color: var(--cd); }
.pro-card p { color: var(--muted); }

/* ---------- People ---------- */
.team-wrap { margin-top: 40px; }
.team { list-style: none; padding: 0; margin: 0; display: grid; gap: 28px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.member-photo { aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: var(--mist); display: grid; place-items: center; margin-bottom: 14px; }
.member-photo img { width: 100%; height: 100%; object-fit: cover; }
.member-initials { font: 400 2.6rem/1 var(--head); color: var(--aqua-deep); }
.member-name { font-size: 1.2rem; margin-bottom: .2em; }
.member-role { color: var(--aqua-deep); font-weight: 600; margin-bottom: .4em; }
.member-bio { color: var(--muted); font-size: .95rem; }
.photo { margin: 0; border-radius: 28px; overflow: hidden; }
.photo img { width: 100%; height: 112%; object-fit: cover; }
.split-img .photo { aspect-ratio: 4 / 3; }

/* ---------- Prose, legal, FAQ ---------- */
.prose h2 { font-size: 1.6rem; margin-top: 1.6em; }
.prose > :first-child { margin-top: 0; }
.legal h2 { font-size: 1.35rem; }
.grant { padding: 26px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); margin-bottom: 24px; }
.grant dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0; }
.grant dt { font-weight: 700; }
.grant dd { margin: 0; }
@media (max-width: 560px) { .grant dl { grid-template-columns: 1fr; } .grant dd { margin-bottom: 8px; } }
.faq { display: grid; gap: 12px; }
.faq details { background: #fff; border-radius: var(--radius-sm); padding: 0 22px; }
.faq summary { cursor: pointer; padding: 18px 0; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: "+"; font: 300 1.5rem/1 var(--head); color: var(--aqua-deep); }
.faq details[open] summary::after { content: "–"; }
.faq summary::-webkit-details-marker { display: none; }

/* ---------- News ---------- */
.news { list-style: none; padding: 0; margin: 0; display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.news-item { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.news-img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.news-body { padding: 22px; }
.news-body a { color: inherit; text-decoration: none; }
.news-body a:hover { color: var(--aqua-deep); }
.meta { font-size: .85rem; color: var(--muted); }
.tag { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--mist); color: var(--aqua-deep); font-weight: 700; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.filters a { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; color: var(--text); font-weight: 600; }
.filters a[aria-current] { background: var(--ink); color: #fff; border-color: var(--ink); }
.empty { padding: 40px; text-align: center; background: var(--mist); border-radius: var(--radius); }
.article-img { margin-bottom: 30px; }
.back-link { margin-top: 40px; }

/* ---------- Contact & forms ---------- */
.contact-grid { display: grid; gap: 48px; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1.15fr .85fr; align-items: start; } }
.form { display: grid; gap: 20px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; }
.field input, .field select, .field textarea { width: 100%; font: inherit; color: inherit; padding: 13px 16px; border-radius: 12px; border: 1.5px solid #B8C6CA; background: #fff; transition: border-color .25s, box-shadow .25s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--aqua-deep); box-shadow: 0 0 0 4px rgba(102, 196, 191, .3); }
.field [aria-invalid="true"] { border-color: #B3261E; }
.field-check { grid-template-columns: auto 1fr; align-items: start; gap: 12px; }
.field-check input { width: 22px; height: 22px; margin-top: 3px; accent-color: var(--aqua-deep); }
.field-check label { font-weight: 400; }
.field-check .field-err { grid-column: 1 / -1; }
.field-hint { font-size: .88rem; color: var(--muted); margin: 0; }
.field-err { color: #B3261E; font-weight: 700; font-size: .92rem; margin: 0; }
.hp { position: absolute; left: -9999px; }
.notice { padding: 22px 24px; border-radius: var(--radius-sm); }
.notice-ok { background: #E3F5EE; }
.notice-err { background: #FCE8E6; }
.contact-info { padding: 32px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.info-list { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 18px; }
.info-list li { display: flex; gap: 14px; }
.info-list .ico { width: 24px; height: 24px; color: var(--aqua-deep); margin-top: 3px; }
.info-list span { display: grid; }
.map { margin-top: 22px; border-radius: var(--radius-sm); overflow: hidden; background: var(--mist); min-height: 240px; display: grid; }
.map iframe { width: 100%; height: 300px; border: 0; }
.map-consent { padding: 24px; display: grid; gap: 12px; align-content: center; font-size: .92rem; }

/* ---------- Footer ---------- */
.foot { position: relative; overflow: hidden; background: var(--ink); color: var(--on-dark-muted); padding: clamp(60px, 8vw, 100px) 0 96px; font-size: .95rem; }
.foot-glow { position: absolute; width: 700px; aspect-ratio: 1; left: -240px; bottom: -420px; border-radius: 50%; background: radial-gradient(circle, rgba(102, 196, 191, .22), transparent 65%); }
.foot-grid { position: relative; display: grid; gap: 40px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.foot-logo img { width: 150px; margin-bottom: 16px; }
.foot-social { display: flex; gap: 10px; margin-top: 18px; }
.foot-social .btn-icon { color: #fff; border-color: rgba(255,255,255,.3); }
.foot-h { font: 600 .8rem/1 var(--head); letter-spacing: .18em; text-transform: uppercase; color: #fff; margin-bottom: 18px; }
.foot-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.foot a { color: var(--on-dark); }
.foot a:hover { color: var(--aqua); }
.foot-legal { position: relative; display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 60px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .85rem; }
.foot-credit { margin-left: auto; }

.foot { padding-bottom: 72px; }
.wa-float { position: fixed; z-index: 40; right: 20px; bottom: 20px; height: 56px; min-width: 56px; padding: 0 16px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: #25D366; color: #fff; font: 600 .98rem/1 var(--head); text-decoration: none; box-shadow: 0 10px 24px -8px rgba(18, 140, 126, .55), 0 2px 6px rgba(0, 0, 0, .12); transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s; }
.wa-float:hover { color: #fff; background: #1EBE5A; transform: translateY(-2px); box-shadow: 0 16px 30px -10px rgba(18, 140, 126, .6), 0 2px 6px rgba(0, 0, 0, .12); }
.wa-float:focus-visible { outline: 3px solid var(--aqua); outline-offset: 3px; }
.wa-float .ico { width: 26px; height: 26px; flex: none; }
.wa-label { padding-right: 4px; }
@media (max-width: 640px) {
  .wa-float { right: 16px; bottom: 16px; padding: 0; width: 56px; }
  .wa-label { display: none; }
}

/* ---------- Consent ---------- */
.consent-banner { position: fixed; z-index: 60; left: 16px; right: 16px; bottom: 16px; max-width: 620px; margin-inline: auto; background: #fff; color: var(--text); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 56px 22px 22px; }
.consent-banner[hidden] { display: none; }
.consent-banner p { margin: 0 0 14px; font-size: .95rem; }
.consent-banner-actions, .consent-dialog-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.consent-banner-close { position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; border: 0; }
.consent-dialog { border: 0; border-radius: var(--radius); padding: 0; max-width: 520px; width: calc(100% - 32px); }
.consent-dialog::backdrop { background: rgba(11, 19, 27, .6); }
.consent-dialog-body { padding: 26px; display: grid; gap: 14px; }
.consent-dialog-head { display: flex; justify-content: space-between; align-items: center; }
.consent-dialog-head h2 { font-size: 1.4rem; margin: 0; }
.consent-toggle { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.consent-toggle span { display: grid; }
.consent-toggle small { color: var(--muted); }
.consent-toggle input { width: 22px; height: 22px; accent-color: var(--aqua-deep); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal, .rise, .hero-title .w { opacity: 1 !important; transform: none !important; filter: none !important; }
  .data-lines path { stroke-dashoffset: 0; }
  .stack-card { position: relative; top: auto; }
}
