/* ===========================================================
   FLIP — Fire, Light, Ice & Pressure
   Project website design system
   Palette derived from the four-element FLIP logo:
   Fire #F26522 · Light #F9A825 · Ice #4FC3F7 · Pressure #1565C0
   =========================================================== */

:root {
  --fire:      #F26522;
  --fire-dark: #E0451F;
  --light:     #F9A825;
  --ice:       #4FC3F7;
  --ice-dark:  #29B6F6;
  --pressure:  #1565C0;
  --pressure-dark: #0D3B66;

  --ink:    #16202E;
  --ink-2:  #44505F;
  --muted:  #6B7785;
  --line:   #E4E0D7;

  --sand:   #F7F3EC;   /* warm neutral, echoes the rollup banner */
  --sand-2: #EFE9DE;
  --paper:  #FFFFFF;

  --flip-gradient: linear-gradient(120deg, #E0451F 0%, #F26522 24%, #F9A825 46%, #4FC3F7 72%, #1565C0 100%);
  --flip-gradient-soft: linear-gradient(120deg, rgba(242,101,34,.10), rgba(249,168,37,.10), rgba(79,195,247,.10), rgba(21,101,192,.10));

  --shadow-sm: 0 1px 2px rgba(13,59,102,.06), 0 2px 8px rgba(13,59,102,.06);
  --shadow-md: 0 10px 30px rgba(13,59,102,.10);
  --shadow-lg: 0 24px 60px rgba(13,59,102,.16);

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 26px;

  --maxw: 1180px;
  --nav-h: 76px;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-2);
  background: var(--sand);
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--pressure); text-decoration: none; transition: color .2s; }
a:hover { color: var(--fire); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
p { margin: 0 0 1.1em; }

/* ---------- language toggle visibility ---------- */
.lang-en .hr { display: none; }
body:not(.lang-en) .en { display: none; }
/* inline variants keep flow */
.hr.inline, .en.inline { display: inline; }
.lang-en .hr.inline { display: none; }
body:not(.lang-en) .en.inline { display: none; }

/* ---------- layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 92px 0; }
.section.tight { padding: 64px 0; }
.section.sand { background: var(--sand); }
.section.sand-2 { background: var(--sand-2); }
.section.paper { background: var(--paper); }
.section.ink { background: var(--pressure-dark); color: #D7E3F0; }
.section.ink h2, .section.ink h3 { color: #fff; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--sans);
  font-weight: 700;
  font-size: .74rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--fire-dark);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: ""; width: 26px; height: 3px; border-radius: 3px;
  background: var(--flip-gradient);
}
.section.ink .eyebrow { color: var(--ice); }
.lead { font-size: 1.18rem; color: var(--ink-2); max-width: 64ch; }
.section.ink .lead { color: #C2D2E4; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.center .eyebrow { justify-content: center; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6em;
  font-family: var(--sans); font-weight: 700; font-size: .98rem;
  padding: 14px 26px; border-radius: 999px;
  border: 2px solid transparent; cursor: pointer;
  transition: transform .18s, box-shadow .2s, background .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--flip-gradient); color: #fff; box-shadow: var(--shadow-md); }
.btn-primary:hover { color: #fff; box-shadow: var(--shadow-lg); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--fire); color: var(--fire); }
.section.ink .btn-ghost { border-color: rgba(255,255,255,.3); color:#fff; }
.section.ink .btn-ghost:hover { border-color:#fff; color:#fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ===========================================================
   HEADER / NAV
   =========================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(247,243,236,.85);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 44px; height: 44px; }
.brand .word { display: flex; flex-direction: column; line-height: 1; }
.brand .word b {
  font-family: var(--serif); font-weight: 700; font-size: 1.35rem;
  letter-spacing: .04em; color: var(--ink);
  background: var(--flip-gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.brand .word span { font-size: .62rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); font-weight: 700; }

.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: inline-block; padding: 9px 14px; border-radius: 999px;
  font-weight: 600; font-size: .96rem; color: var(--ink);
}
.nav-links a:hover { background: var(--flip-gradient-soft); color: var(--ink); }
.nav-links a.active { color: var(--fire-dark); }

.nav-actions { display: flex; align-items: center; gap: 10px; }
.lang-switch {
  display: inline-flex; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden;
  font-weight: 700; font-size: .8rem; background: var(--paper);
}
.lang-switch button {
  border: 0; background: transparent; padding: 7px 13px; cursor: pointer; color: var(--muted);
  font-family: var(--sans); font-weight: 700;
}
.lang-switch button.on { background: var(--flip-gradient); color: #fff; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2.4px; background: var(--ink); border-radius: 3px; margin: 5px 0; transition: .25s; }

/* ===========================================================
   HERO
   =========================================================== */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1100px 520px at 78% -10%, rgba(79,195,247,.22), transparent 60%),
    radial-gradient(900px 460px at 8% 8%, rgba(242,101,34,.16), transparent 58%),
    var(--sand);
}
.hero .wrap { padding-top: 84px; padding-bottom: 84px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero h1 { margin-bottom: .35em; }
.hero h1 .grad { background: var(--flip-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .tagline { font-family: var(--serif); font-style: italic; font-size: 1.35rem; color: var(--pressure); margin-bottom: 1.4rem; }
.hero .code-pill {
  display: inline-flex; align-items: center; gap: .5em; margin-bottom: 1.3rem;
  background: var(--paper); border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 15px; font-size: .82rem; font-weight: 700; letter-spacing: .08em; color: var(--ink-2);
  box-shadow: var(--shadow-sm);
}
.hero .code-pill b { color: var(--fire-dark); }

.hero-art { position: relative; display: grid; place-items: center; }
.hero-art .ring-wrap {
  width: min(380px, 86%); position: relative;
  display: grid; place-items: center;
}
.hero-art img { width: 100%; filter: drop-shadow(0 30px 60px rgba(13,59,102,.18)); animation: floaty 7s ease-in-out infinite; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* element legend chips under hero */
.elements { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 30px; }
.element {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 16px; box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
}
.element::before { content:""; position:absolute; left:0; top:0; bottom:0; width:5px; }
.element.fire::before { background: var(--fire); }
.element.light::before { background: var(--light); }
.element.ice::before { background: var(--ice); }
.element.pressure::before { background: var(--pressure); }
.element .ico { font-size: 1.5rem; line-height: 1; }
.element b { display:block; font-family: var(--serif); color: var(--ink); font-size: 1.05rem; margin-top: 6px; }
.element small { color: var(--muted); font-size: .82rem; }

/* ===========================================================
   STAT STRIP
   =========================================================== */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.stat { text-align: center; }
.stat .num {
  font-family: var(--serif); font-weight: 700; line-height: 1;
  font-size: clamp(2.2rem, 4.4vw, 3.2rem);
  background: var(--flip-gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat .lbl { display:block; margin-top: 8px; font-size: .92rem; color: var(--muted); font-weight: 600; }

/* ===========================================================
   CARDS / GRIDS
   =========================================================== */
.grid { display: grid; gap: 26px; }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 28px; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s;
  height: 100%;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card .tag {
  display:inline-block; font-size:.72rem; font-weight:700; letter-spacing:.12em; text-transform:uppercase;
  color: var(--fire-dark); margin-bottom: 10px;
}
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.card .ico-badge {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  font-size: 1.5rem; margin-bottom: 16px; background: var(--flip-gradient-soft);
}

/* objective card numbered */
.obj { display: flex; gap: 18px; align-items: flex-start; }
.obj .n {
  flex: none; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  font-family: var(--serif); font-weight: 700; color: #fff; font-size: 1.15rem;
  background: var(--flip-gradient); box-shadow: var(--shadow-sm);
}
.obj h3 { font-size: 1.15rem; }

/* feature list */
.flist { list-style: none; margin: 0; padding: 0; }
.flist li { position: relative; padding-left: 30px; margin-bottom: 12px; }
.flist li::before {
  content: ""; position: absolute; left: 0; top: 9px; width: 14px; height: 14px; border-radius: 4px;
  background: var(--flip-gradient);
}

/* intervention cards with element accent */
.interv { border-top: 5px solid var(--line); }
.interv.fire { border-top-color: var(--fire); }
.interv.light { border-top-color: var(--light); }
.interv.ice { border-top-color: var(--ice); }
.interv.pressure { border-top-color: var(--pressure); }
.interv .meta { display:flex; flex-wrap:wrap; gap: 8px; margin-top: 14px; }
.interv .meta span { font-size:.78rem; font-weight:700; color: var(--ink-2); background: var(--sand-2); border-radius: 999px; padding: 5px 12px; }

/* ---------- timeline ---------- */
.timeline { display: grid; gap: 0; }
.tl-item { display: grid; grid-template-columns: 130px 1fr; gap: 26px; padding: 26px 0; border-top: 1px solid var(--line); }
.tl-item:last-child { border-bottom: 1px solid var(--line); }
.tl-year { font-family: var(--serif); font-weight: 700; font-size: 1.3rem; color: var(--pressure); }
.tl-year small { display:block; font-family: var(--sans); font-size:.78rem; color: var(--muted); font-weight:700; letter-spacing:.08em; text-transform:uppercase; }

/* ---------- team ---------- */
.team-grid { display:grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.member { background: var(--paper); border:1px solid var(--line); border-radius: var(--r-md); padding: 24px; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s; }
.member:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.member .avatar {
  width: 64px; height: 64px; border-radius: 50%; display:grid; place-items:center;
  font-family: var(--serif); font-weight:700; font-size:1.4rem; color:#fff; margin-bottom: 14px;
  background: var(--flip-gradient);
}
.team-photo { margin:0 auto; max-width:620px; }
.team-photo img { width:100%; height:auto; display:block; border-radius: var(--r-md); box-shadow: var(--shadow-md); }
.team-photo figcaption { margin-top:12px; text-align:center; color: var(--muted); font-size:.92rem; }
.lab-photo { margin:0 auto; max-width:680px; }
.lab-photo img { width:100%; height:auto; display:block; border-radius: var(--r-md); box-shadow: var(--shadow-md); }
.lab-photo figcaption { margin-top:12px; text-align:center; color: var(--muted); font-size:.92rem; }
/* infographic poster + click-to-zoom lightbox */
.poster-thumb { display:flex; flex-direction:column; align-items:center; gap:10px; width:200px; margin:0 auto; cursor:zoom-in; text-decoration:none; }
.poster-frame { display:block; width:100%; border-radius: var(--r-md); overflow:hidden; box-shadow: var(--shadow-md); transition: transform .25s ease, box-shadow .25s ease; }
.poster-thumb:hover .poster-frame { transform: translateY(-3px); box-shadow: var(--shadow-lg, 0 24px 60px rgba(13,59,102,.22)); }
.poster-frame img { width:100%; height:auto; display:block; }
.poster-hint { background:rgba(13,59,102,.88); color:#fff; font-size:.8rem; font-weight:600; padding:7px 14px; border-radius:999px; display:inline-flex; gap:5px; align-items:center; }
.poster-lightbox { position:fixed; inset:0; z-index:1000; background:rgba(8,20,35,.93); display:none; align-items:center; justify-content:center; padding:24px; cursor:zoom-out; }
.poster-lightbox:target { display:flex; }
.poster-lightbox img { max-width:96vw; max-height:94vh; width:auto; height:auto; border-radius:6px; box-shadow:0 24px 70px rgba(0,0,0,.55); }
.poster-lightbox::after { content:"×"; position:fixed; top:18px; right:26px; color:#fff; font-size:2.4rem; line-height:1; font-weight:300; opacity:.85; }
/* news / facebook page feed */
.news-layout { display:grid; grid-template-columns: 1fr minmax(300px, 500px); gap:44px; align-items:start; }
.news-intro { position:sticky; top:100px; }
.news-intro h2 { margin:6px 0 14px; }
.news-intro .flist { margin:18px 0 26px; }
.fb-page-wrap { display:flex; justify-content:center; width:100%; min-height:640px; border-radius: var(--r-md); overflow:hidden; box-shadow: var(--shadow-md); background:#fff; }
.fb-page-wrap .fb-page { width:100%; display:flex; justify-content:center; }
.fb-fallback { margin-top:14px; font-size:.86rem; color: var(--muted); text-align:center; }
@media (max-width: 900px){
  .news-layout { grid-template-columns: 1fr; gap:30px; }
  .news-intro { position:static; }
}
.welcome { display:grid; grid-template-columns:auto 1fr; gap:30px; align-items:center; max-width:900px; margin:0 auto; }
.welcome-photo { width:128px; height:128px; border-radius:50%; overflow:hidden; flex-shrink:0; box-shadow: var(--shadow-md); }
.welcome-photo img { width:100%; height:100%; object-fit:cover; display:block; }
.welcome blockquote { margin:10px 0 14px; padding:0; border:none; }
.welcome blockquote p { font-family: var(--serif); font-style:italic; font-size:1.28rem; line-height:1.55; color: var(--ink); margin:0; }
.welcome-sign b { display:block; font-family: var(--serif); font-size:1.05rem; color: var(--ink); }
.welcome-sign span { color: var(--muted); font-size:.9rem; }
@media (max-width:640px){ .welcome { grid-template-columns:1fr; text-align:center; justify-items:center; } }
.prose p { margin: 0 0 16px; line-height: 1.72; }
.summary-goals { margin: 4px 0 20px; padding-left: 1.3em; }
.summary-goals li { margin: 0 0 8px; line-height: 1.6; padding-left: 4px; }
.summary-goals li::marker { color: var(--fire-dark); font-weight: 700; }
.member .avatar.photo { padding:0; overflow:hidden; background:none; }
.member .avatar.photo img { width:100%; height:100%; object-fit:cover; border-radius:50%; display:block; }
.member b { font-family: var(--serif); font-size: 1.12rem; color: var(--ink); }
.member .role { font-size:.82rem; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color: var(--fire-dark); margin: 2px 0 8px; }
.member .org { color: var(--muted); font-size:.92rem; }
.member.lead { border: 2px solid transparent; background:
  linear-gradient(var(--paper), var(--paper)) padding-box,
  var(--flip-gradient) border-box; }

/* ---------- callout / quote ---------- */
.quote {
  font-family: var(--serif); font-style: italic; font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1.35; color: var(--ink); max-width: 22ch; margin: 0 auto; text-align:center;
}
.quote .by { display:block; font-family: var(--sans); font-style: normal; font-size:.95rem; font-weight:700; color: var(--muted); margin-top: 18px; letter-spacing:.04em; }

/* split media block */
.split { display:grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items:center; }
.split.flip { direction: rtl; }
.split.flip > * { direction: ltr; }
.split .visual {
  border-radius: var(--r-lg); aspect-ratio: 4/3; background: var(--flip-gradient);
  position: relative; overflow:hidden; box-shadow: var(--shadow-md);
  display:grid; place-items:center;
}
.split .visual .glyph { font-size: clamp(4rem, 12vw, 8rem); filter: drop-shadow(0 8px 20px rgba(0,0,0,.2)); }
.split .visual::after { content:""; position:absolute; inset:0; background: radial-gradient(circle at 30% 20%, rgba(255,255,255,.35), transparent 55%); }

/* CTA band */
.cta-band {
  background: var(--flip-gradient); color:#fff; border-radius: var(--r-lg);
  padding: 56px; text-align:center; box-shadow: var(--shadow-lg); position: relative; overflow:hidden;
}
.cta-band h2 { color:#fff; }
.cta-band p { color: rgba(255,255,255,.92); max-width: 60ch; margin-inline:auto; }
.cta-band .btn-primary { background:#fff; color: var(--fire-dark); }
.cta-band .btn-ghost { border-color: rgba(255,255,255,.6); color:#fff; }

/* ---------- partners ---------- */
.partners { display:flex; flex-wrap:wrap; gap: 18px; align-items:stretch; justify-content:center; }
.partner {
  background: var(--paper); border:1px solid var(--line); border-radius: var(--r-md);
  padding: 18px 26px; box-shadow: var(--shadow-sm); display:flex; flex-direction:column; gap:2px; min-width: 220px;
}
.partner b { font-family: var(--serif); color: var(--ink); font-size: 1.02rem; }
.partner small { color: var(--muted); }
.partner .partner-logo { height: 46px; width:auto; max-width: 180px; object-fit: contain; margin-bottom: 12px; align-self:flex-start; }

/* ---------- contact form ---------- */
.form-grid { display:grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display:flex; flex-direction:column; gap:6px; margin-bottom: 4px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight:700; font-size:.86rem; color: var(--ink); }
.field input, .field textarea, .field select {
  font-family: var(--sans); font-size: 1rem; padding: 12px 14px; border:1.5px solid var(--line);
  border-radius: var(--r-sm); background: var(--paper); color: var(--ink); transition: border .2s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline:none; border-color: var(--ice-dark); }
.form-note { font-size:.85rem; color: var(--muted); }

/* ===========================================================
   FOOTER
   =========================================================== */
.site-footer { background: var(--pressure-dark); color: #B9CADB; padding: 64px 0 28px; }
.footer-grid { display:grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; }
.site-footer h4 { color:#fff; font-family: var(--sans); font-size:.82rem; letter-spacing:.14em; text-transform:uppercase; margin-bottom: 16px; }
.site-footer a { color:#B9CADB; }
.site-footer a:hover { color:#fff; }
.site-footer ul { list-style:none; margin:0; padding:0; }
.site-footer ul li { margin-bottom: 9px; }
.footer-brand .word b { font-family: var(--serif); font-size:1.4rem; letter-spacing:.05em; color:#fff; }
.footer-brand p { font-size:.92rem; max-width: 34ch; }
.footer-logos { display:flex; flex-wrap:wrap; align-items:center; gap: 10px; margin-top: 16px; }
.footer-logos span { font-size:.74rem; background: rgba(255,255,255,.08); border-radius: 8px; padding: 6px 10px; }
.footer-logos .logo-chip { background:#fff; border-radius: 8px; padding: 8px 12px; display:inline-flex; align-items:center; box-shadow: var(--shadow-sm); }
.footer-logos .logo-chip img { display:block; height: 30px; width:auto; }
.footer-bottom { border-top:1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 22px; display:flex; flex-wrap:wrap; gap: 12px; justify-content:space-between; font-size:.84rem; color:#8FA3B8; }

/* ---------- page hero (interior) ---------- */
.page-hero { background:
    radial-gradient(800px 360px at 85% -20%, rgba(79,195,247,.20), transparent 60%),
    radial-gradient(640px 300px at 5% 0%, rgba(242,101,34,.14), transparent 60%),
    var(--sand);
  padding: 64px 0 56px; border-bottom: 1px solid var(--line);
}
.breadcrumb { font-size:.84rem; color: var(--muted); font-weight:600; margin-bottom: 12px; }
.breadcrumb a { color: var(--muted); }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity:1; transform:none; transition:none; }
  .hero-art img { animation: none; }
  html { scroll-behavior: auto; }
}

/* ===========================================================
   RESPONSIVE
   =========================================================== */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-art { order: -1; }
  .hero-art .ring-wrap { width: 280px; }
  .split, .split.flip { grid-template-columns: 1fr; direction: ltr; gap: 32px; }
  .grid.cols-3, .grid.cols-4, .team-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav-links {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--sand); border-bottom: 1px solid var(--line);
    padding: 14px 24px 22px; box-shadow: var(--shadow-md);
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: .22s;
  }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 12px 14px; border-radius: var(--r-sm); }
  .nav-toggle { display: block; }
  .section { padding: 64px 0; }
  .stats, .grid.cols-2, .grid.cols-3, .grid.cols-4, .elements, .team-grid, .form-grid, .footer-grid { grid-template-columns: 1fr; }
  .elements { grid-template-columns: 1fr 1fr; }
  .tl-item { grid-template-columns: 1fr; gap: 8px; }
  .cta-band { padding: 38px 24px; }
}

/* back-link ribbon to parent research group */
.lab-bar{background:#0b1a2b;text-align:center;padding:7px 16px;}
.lab-bar a{color:#fff;font-size:.82rem;font-weight:600;letter-spacing:.01em;text-decoration:none;}
.lab-bar a:hover{text-decoration:underline;}
@media(max-width:600px){.lab-bar a{font-size:.74rem;}}
