/*! Designed & developed by Anugra Rizky (https://github.com/anugraaa-rizky), 2026. */
/* =========================================================================
   CRU RSCM — Design System
   Colors and type sourced from CRU's real brand build (frontend-CRxqLGWM.css):
   --pbmit-global-color #40C3A3, --pbmit-secondary-color #007A7F,
   --pbmit-light-color #EAF7F5, --pbmit-link-color-hover #CDE300,
   heading font "Onest", body font "Schibsted Grotesk".
   ========================================================================= */

/* Fonts are loaded with <link> tags in each page <head> (faster than @import). */

/* ---------------------------------- Tokens ------------------------------ */
:root{
  --paper:        #FFFFFF;
  --surface:      #FFFFFF;
  --surface-sunk: #F3FAF9;
  --tint:         #EAF7F5;
  --ink:          #16211F;
  --ink-soft:     #5F6B68;
  --ink-faint:    #667370;
  --line:         #DCEEEA;
  --line-strong:  #BEDBD5;

  --brand:        #40C3A3;
  --brand-deep:   #007A7F;
  --brand-dark:   #063C3E;
  /* theme gradient for dark bands: top bar, footer, page headers, CTA */
  --theme-from:   #287B84;
  --theme-to:     #41B4C1;
  --theme-grad:   linear-gradient(110deg, var(--theme-from) 0%, #31919C 50%, var(--theme-to) 100%);
  --brand-pale:   #EAF7F5;

  --gold:         #40C3A3;
  --gold-deep:    #007A7F;
  --gold-pale:    #EAF7F5;

  --spark:        #CDE300;
  --spark-deep:   #8FA300;

  --teal:         #007A7F;
  --teal-deep:    #063C3E;
  --teal-pale:    #EAF7F5;

  --alert:        #B3432B;
  --alert-pale:   #F6E5DF;

  --font-display: 'Onest', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body:    'Schibsted Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:    'IBM Plex Mono', 'SFMono-Regular', Consolas, monospace;

  --container:    1200px;
  --container-nr: 760px;
  --gutter:       clamp(20px, 5vw, 64px);

  --radius-sm:    8px;
  --radius-md:    10px;
  --radius-pill:  999px;

  --shadow-card:  0 1px 0 rgba(6,60,62,0.06);

  --ease: cubic-bezier(.2,.7,.3,1);
}

/* ---------------------------------- Reset -------------------------------- */
*, *::before, *::after{ box-sizing:border-box; }
/* overflow-x:clip (not hidden) stops sideways scrolling without making html/body a
   scroll container, which would stop the header from sticking. Older browsers keep "hidden".
   scroll-padding-top keeps #anchors from landing under the sticky header. */
html{ scroll-behavior:smooth; overflow-x:hidden; overflow-x:clip; width:100%; scroll-padding-top:96px; }
body{
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:var(--font-body);
  font-size:16px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
  overflow-x:hidden;
  overflow-x:clip;
  width:100%;
}
/* The header stays at the top while the page scrolls. On large screens the thin
   contact bar above it (40px) scrolls away and the main bar stays. */
#site-header{ min-height:116px; position:sticky; top:-40px; z-index:100; }
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul, ol{ margin:0; padding:0; list-style:none; }
button{ font:inherit; cursor:pointer; }
input, textarea, select{ font:inherit; }
h1,h2,h3,h4,h5,h6{ margin:0; font-family:var(--font-display); font-weight:600; }
h1,h2{ color:var(--brand-dark); }
h3,h4,h5,h6{ color:var(--brand-deep); }
p{ margin:0; }
svg{ display:block; }

@media (prefers-reduced-motion: reduce){
  *{ animation-duration:0.001ms !important; animation-iteration-count:1 !important; transition-duration:0.001ms !important; scroll-behavior:auto !important; }
}

:focus-visible{ outline:2px solid var(--teal); outline-offset:3px; border-radius:2px; }

/* ---------------------------------- Type scale --------------------------- */
.h-display{ font-size:clamp(2.4rem, 3.6vw + 1rem, 4.2rem); line-height:1.05; letter-spacing:-0.01em; }
.h-1{ font-size:clamp(2rem, 2.2vw + 1rem, 2.9rem); line-height:1.12; letter-spacing:-0.01em; }
.h-2{ font-size:clamp(1.5rem, 1.2vw + 1rem, 2.1rem); line-height:1.2; }
.h-3{ font-size:clamp(1.2rem, 0.6vw + 1rem, 1.5rem); line-height:1.3; }
.lede{ font-size:clamp(1.05rem, 0.4vw + 1rem, 1.25rem); color:var(--ink-soft); line-height:1.55; max-width:56ch; }
.eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  font-family:var(--font-mono); font-size:0.78rem; color:var(--teal-deep);
  font-weight:500;
}
.eyebrow::before{
  content:""; width:16px; height:2px; background:var(--spark); flex:none;
}
.mono-num{ font-family:var(--font-mono); font-variant-numeric:tabular-nums; }

/* ---------------------------------- Layout -------------------------------- */
.container{ max-width:var(--container); margin-inline:auto; padding-inline:var(--gutter); }
.container-narrow{ max-width:var(--container-nr); margin-inline:auto; padding-inline:var(--gutter); }
.section{ padding-block: clamp(36px, 4.5vw, 68px); }
.section-tight{ padding-block: clamp(22px, 3vw, 38px); }
.rule{ border:none; border-top:1px solid var(--line); margin:0; }
.section-head{ max-width:640px; margin-bottom:clamp(22px, 3vw, 36px); }
.section-head + .rule{ display:none; }
.grid{ display:grid; gap:var(--gutter); }
.stack-sm > * + *{ margin-top:8px; }
.stack-md > * + *{ margin-top:16px; }
.stack-lg > * + *{ margin-top:28px; }
.visually-hidden{
  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-link{
  position:absolute; left:12px; top:-60px; background:var(--ink); color:var(--paper);
  padding:10px 16px; border-radius:var(--radius-sm); z-index:200; transition:top .2s var(--ease);
}
.skip-link:focus{ top:12px; }

/* ---------------------------------- Buttons -------------------------------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  padding:14px 26px; border-radius:var(--radius-pill); font-weight:600; font-size:0.95rem;
  border:1px solid transparent; transition:background .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
  white-space:nowrap; font-family:var(--font-display);
}
.btn-primary{ background:var(--brand-deep); color:#fff; }
.btn-primary:hover{ background:var(--brand-dark); }
.btn-gold{ background:var(--brand-deep); color:#fff; }
.btn-gold:hover{ background:var(--brand-dark); color:#fff; }
.btn-mint{ background:var(--brand); color:var(--brand-dark); }
.btn-mint:hover{ background:var(--spark); color:var(--brand-dark); }
.btn-outline{ background:transparent; color:var(--ink); border-color:var(--line-strong); }
.btn-outline:hover{ border-color:var(--brand-deep); color:var(--brand-deep); }
.btn-outline-invert{ background:transparent; color:var(--paper); border-color:rgba(255,255,255,0.4); }
.btn-outline-invert:hover{ border-color:var(--paper); }
.btn-ghost{
  background:transparent; color:var(--brand-deep); padding:8px 4px; border-radius:var(--radius-sm);
  font-family:var(--font-body); font-weight:600; display:inline-flex; align-items:center;
  border-bottom:2px solid transparent; transition:border-color .18s var(--ease), background .18s var(--ease), padding .18s var(--ease);
}
.btn-ghost:hover{ border-bottom-color:var(--brand); background:var(--tint); padding-inline:10px; }
.btn-ghost::after{ content:"\2192"; margin-left:8px; transition:transform .18s var(--ease); display:inline-block; }
.btn-ghost:hover::after{ transform:translateX(3px); }
.btn-sm{ padding:10px 18px; font-size:0.85rem; }

/* ---------------------------------- Tag / pill -------------------------------- */
.tag{
  display:inline-flex; align-items:center; font-family:var(--font-mono); font-size:0.72rem;
  padding:5px 10px; border-radius:100px; background:var(--teal-pale); color:var(--teal-deep);
  white-space:nowrap;
}
.tag-gold{ background:var(--gold-pale); color:var(--gold-deep); }
.filter-pill{
  display:inline-flex; align-items:center; gap:7px;
  border:1px solid var(--line-strong); background:var(--surface); color:var(--ink-soft);
  padding:8px 16px; border-radius:100px; font-size:0.86rem; font-weight:500;
  transition:border-color .16s var(--ease), color .16s var(--ease), background .16s var(--ease);
}
.filter-pill svg{ width:14px; height:14px; flex:none; }
.filter-pill:hover{ border-color:var(--teal); color:var(--teal-deep); }
.filter-pill[aria-pressed="true"]{ background:var(--brand-deep); border-color:var(--brand-deep); color:var(--paper); }

/* ============================== Site header ================================ */
.top-bar{
  background:var(--theme-grad); color:rgba(255,255,255,0.82); font-size:0.82rem;
}
.top-bar .container{ display:flex; align-items:center; justify-content:space-between; gap:24px; min-height:40px; flex-wrap:wrap; padding-block:6px; }
.top-bar-info{ display:flex; align-items:center; gap:22px; flex-wrap:wrap; }
.top-bar-info a{ color:inherit; }
.top-bar-info a:hover{ color:var(--gold); }
.top-bar-info span{ display:inline-flex; align-items:center; gap:7px; }
.top-bar-info svg{ width:14px; height:14px; flex:none; opacity:0.85; }
.top-bar-social{ display:flex; gap:14px; }
.top-bar-social a{ opacity:0.85; }
.top-bar-social a:hover{ opacity:1; color:var(--gold); }
.top-bar-social svg{ width:15px; height:15px; }

.site-header{
  position:sticky; top:0; z-index:100; background:rgba(255,255,255,0.92);
  backdrop-filter:saturate(1.4) blur(10px); border-bottom:1px solid var(--line);
}
.site-header .container{ display:flex; align-items:center; justify-content:space-between; gap:32px; min-height:76px; }
.brand{ display:flex; align-items:center; gap:12px; flex:none; }
.brand-mark-img{ height:44px; width:auto; display:block; }
.site-header .nav{ order:2; margin-left:auto; }
.site-header .nav-toggle{ order:4; }

.nav{ display:flex; align-items:center; gap:6px; }
.nav > ul{ display:flex; align-items:center; gap:2px; }
.nav-link{
  display:flex; align-items:center; gap:6px; padding:10px 14px; border-radius:var(--radius-sm);
  font-size:0.94rem; font-weight:500; color:var(--ink-soft); transition:color .16s var(--ease), background .16s var(--ease);
}
.nav-link:hover, .nav-link.is-active{ color:var(--ink); background:var(--surface-sunk); }
.nav-item{ position:relative; }
.nav-caret{ width:9px; height:9px; opacity:0.6; transition:transform .16s var(--ease); }
.nav-item:hover .nav-caret{ transform:rotate(180deg); }
.nav-dropdown{
  position:absolute; top:calc(100% + 6px); left:0; min-width:240px; background:var(--surface);
  border:1px solid var(--line); border-radius:var(--radius-md); box-shadow:0 16px 32px rgba(18,48,43,0.12);
  padding:8px; opacity:0; visibility:hidden; transform:translateY(4px); transition:opacity .16s var(--ease), transform .16s var(--ease), visibility .16s;
}
.nav-item:hover .nav-dropdown, .nav-item:focus-within .nav-dropdown{ opacity:1; visibility:visible; transform:translateY(0); }
.nav-dropdown a{
  display:flex; align-items:center; justify-content:space-between; padding:9px 12px; border-radius:var(--radius-sm);
  font-size:0.9rem; color:var(--ink-soft);
}
.nav-dropdown a:hover{ background:var(--surface-sunk); color:var(--ink); }
.nav-dropdown-grouped{ display:grid; grid-template-columns:repeat(3,1fr); gap:4px; min-width:540px; }
.nav-group{ padding:2px; }
.nav-group-heading{ font-weight:600; color:var(--ink) !important; padding:9px 12px !important; }
.nav-group ul{ margin-top:2px; }
.nav-group li a{ padding:7px 12px 7px 20px; font-size:0.84rem; }
.nav-cta{ margin-left:8px; }
.nav-services-trigger{ background:none; border:none; font:inherit; cursor:pointer; }
.mobile-only-block{ display:none; }

/* ============================== Services mega panel (AWS-style left/right) ================================ */
.services-panel{
  position:absolute; top:100%; left:0; width:100%; background:var(--surface);
  border-top:1px solid var(--line); box-shadow:0 24px 48px -20px rgba(6,60,62,0.28);
  z-index:120; opacity:0; visibility:hidden; transform:translateY(-8px);
  transition:opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
}
.services-panel.is-open{ opacity:1; visibility:visible; transform:translateY(0); }
.services-panel-backdrop{
  position:fixed; inset:0; background:rgba(40,123,132,0.35); z-index:90; opacity:0; visibility:hidden;
  transition:opacity .18s var(--ease), visibility .18s;
}
.services-panel-backdrop.is-open{ opacity:1; visibility:visible; }
.services-panel-inner{ position:relative; max-width:var(--container); margin-inline:auto; padding:32px var(--gutter) 40px; display:grid; grid-template-columns:280px 1fr; gap:0; min-height:320px; }
.services-panel-close{
  position:absolute; top:18px; right:var(--gutter); width:36px; height:36px; border-radius:50%;
  border:1px solid var(--line-strong); background:var(--surface); display:flex; align-items:center; justify-content:center; color:var(--ink-soft);
}
.services-panel-close:hover{ border-color:var(--brand-deep); color:var(--brand-deep); }
.services-panel-close svg{ width:15px; height:15px; }
.services-panel-side{ display:flex; flex-direction:column; gap:2px; border-right:1px solid var(--line); padding-right:20px; }
.services-panel-item{
  display:flex; align-items:center; gap:12px; padding:14px 16px; border-radius:var(--radius-sm); background:none; border:none;
  font:inherit; font-weight:600; font-size:0.98rem; color:var(--ink-soft); text-align:left; cursor:pointer;
  transition:background .15s var(--ease), color .15s var(--ease);
}
.services-panel-icon{ width:30px; height:30px; flex:none; }
.services-panel-icon svg{ width:100%; height:100%; }
.services-panel-item .nav-caret{ margin-left:auto; width:11px; height:11px; opacity:0.5; transform:rotate(-90deg); }
.services-panel-item:hover{ background:var(--surface-sunk); }
.services-panel-item.is-active{ background:var(--theme-grad); color:#fff; }
.services-panel-content{ padding-left:36px; transition:opacity .18s var(--ease); }
.services-panel-content.is-fading{ opacity:0; }
.services-panel-content h3{ font-size:1.3rem; }
.services-panel-content .services-panel-desc{ color:var(--ink-soft); margin-top:8px; max-width:60ch; }
.services-panel-browse{ margin-top:10px; display:inline-block; }
.services-panel-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:24px; margin-top:26px; }
.services-panel-card{ display:block; }
.services-panel-card h4{ font-family:var(--font-display); font-weight:600; font-size:1.02rem; color:var(--ink); }
.services-panel-card:hover h4{ color:var(--brand-deep); }
.services-panel-card p{ color:var(--ink-soft); font-size:0.88rem; margin-top:8px; line-height:1.55; }
@media (max-width: 980px){
  .services-panel{ display:none; }
  .desktop-only-flex{ display:none; }
  .mobile-only-block{ display:list-item; }
}
.nav-toggle{
  display:none; width:42px; height:42px; align-items:center; justify-content:center;
  border:1px solid var(--line-strong); border-radius:var(--radius-sm); background:var(--surface);
}
.nav-toggle svg{ width:18px; height:18px; }

@media (max-width: 980px){
  #site-header{ min-height:76px; top:0; }
  html{ scroll-padding-top:88px; }
  /* While the menu is open only the menu scrolls, not the page behind it. */
  html.nav-open, html.nav-open body{ overflow:hidden; }
  html.nav-open .chatbot, html.nav-open .collab-popup{ display:none; }
  /* backdrop-filter turns the header into the box that a position:fixed child is
     measured against, which squeezed the open menu to the header's own height.
     A solid header keeps the menu sized to the screen. */
  .site-header{ backdrop-filter:none; -webkit-backdrop-filter:none; background:var(--paper); }
  .top-bar{ display:none; }
  .site-header .container{ gap:12px; }
  .site-header .brand-mark-img{ height:36px; max-width:190px; }
  .site-header .nav-toggle{ display:inline-flex; order:3; }
  .site-header .nav{ order:4; margin-left:0; }
  .nav{
    position:fixed; inset:76px 0 0 0; background:var(--paper); flex-direction:column; align-items:stretch;
    padding:16px var(--gutter) 40px; overflow-y:auto; transform:translateX(100%); transition:transform .24s var(--ease);
  }
  .nav.is-open{ transform:translateX(0); }
  .nav > ul{ flex-direction:column; align-items:stretch; gap:2px; }
  .nav-link{ padding:14px 8px; font-size:1.05rem; justify-content:space-between; }
  .nav-dropdown{
    position:static; opacity:1; visibility:visible; transform:none; box-shadow:none; border:none;
    max-height:0; overflow:hidden; padding:0 0 0 12px; transition:max-height .22s var(--ease);
  }
  .nav-item.is-expanded .nav-dropdown{ max-height:1200px; padding-top:4px; padding-bottom:8px; }
  .nav-dropdown-grouped{ grid-template-columns:1fr; min-width:0; gap:14px; padding-left:0; }
  .nav-cta{ margin:14px 0 0; }
}

/* ============================== Footer ================================ */
.site-footer{ background:var(--theme-grad); color:rgba(255,255,255,0.78); }
.footer-top{ padding-block:clamp(48px,6vw,72px); }
.footer-grid{ display:grid; grid-template-columns:1.4fr 1fr 1fr 1.2fr; gap:40px; }
.footer-brand{ display:flex; align-items:flex-start; gap:12px; margin-bottom:16px; }
.footer-brand img{ height:44px; width:auto; }
.footer-brand strong{ font-family:var(--font-display); color:var(--paper); font-size:1.05rem; }
.footer-desc{ font-size:0.92rem; line-height:1.6; max-width:34ch; color:rgba(255,255,255,0.65); }
.footer-heading{ font-family:var(--font-mono); font-size:0.76rem; color:var(--gold); margin-bottom:16px; }
.footer-links li + li{ margin-top:10px; }
.footer-links a{ font-size:0.92rem; color:rgba(255,255,255,0.72); }
.footer-links a:hover{ color:var(--paper); }
.footer-contact li{ display:flex; gap:10px; font-size:0.9rem; align-items:flex-start; color:rgba(255,255,255,0.72); }
.footer-contact li + li{ margin-top:12px; }
.footer-contact svg{ width:16px; height:16px; margin-top:2px; flex:none; opacity:0.8; }
.footer-bottom{ border-top:1px solid rgba(255,255,255,0.14); padding-block:20px; }
.footer-bottom .container{ display:flex; justify-content:space-between; align-items:center; gap:16px; flex-wrap:wrap; font-size:0.82rem; color:rgba(255,255,255,0.55); }
.footer-social{ display:flex; gap:14px; }
.footer-social a{ color:rgba(255,255,255,0.6); }
.footer-social a:hover{ color:var(--gold); }
.footer-social svg{ width:15px; height:15px; }

@media (max-width: 860px){
  .footer-grid{ grid-template-columns:1fr 1fr; }
}
@media (max-width: 560px){
  .footer-grid{ grid-template-columns:1fr; gap:32px; }
}

/* ============================== Page header (inner pages) ================================ */
.page-header{
  position:relative; overflow:hidden; background:var(--theme-grad); color:var(--paper);
  padding-block: clamp(56px, 8vw, 96px) clamp(40px,5vw,64px);
}
.page-header .container{ position:relative; z-index:2; }
.page-header-crumbs{ font-family:var(--font-mono); font-size:0.8rem; color:rgba(255,255,255,0.6); margin-bottom:18px; }
.page-header-crumbs a:hover{ color:var(--gold); }
.page-header h1{ color:var(--paper); }
.page-header .lede{ color:rgba(255,255,255,0.72); margin-top:14px; }
.page-header-art{ position:absolute; right:-40px; top:-20px; width:420px; opacity:0.5; z-index:1; }

.service-hero-photo{ margin-top:28px; position:relative; z-index:3; border-radius:var(--radius-md); overflow:hidden; aspect-ratio:21/9; box-shadow:0 1px 0 rgba(6,60,62,0.06); }
.service-hero-photo img{ width:100%; height:100%; object-fit:cover; }
@media (max-width: 700px){ .service-hero-photo{ aspect-ratio:4/3; margin-top:20px; } }

.contact-circle{ position:absolute; z-index:1; opacity:0.5; pointer-events:none; }
.contact-circle-1{ width:70px; right:14%; top:18%; }
.contact-circle-2{ width:56px; right:6%; bottom:10%; }
@media (max-width: 700px){ .contact-circle{ display:none; } }

.about-teaser-photo{ background:var(--tint); border-radius:var(--radius-md); aspect-ratio:3/4; display:flex; align-items:flex-end; justify-content:center; overflow:hidden; }
.about-teaser-photo img{ width:82%; height:auto; object-fit:contain; }

/* ============================== About showcase (home, evidence-based) ================================ */
.about-showcase{ display:grid; grid-template-columns:0.85fr 1.15fr; gap:56px; align-items:center; }
.about-showcase-photo{ position:relative; padding:16px 16px 16px 0; }
.about-showcase-photo::before{
  content:""; position:absolute; inset:0 16px 0 0; border:2px solid var(--brand); border-radius:var(--radius-md);
  transform:translate(14px,14px);
}
.about-showcase-photo img{ position:relative; width:100%; aspect-ratio:4/5; object-fit:cover; border-radius:var(--radius-md); box-shadow:0 20px 44px -20px rgba(6,60,62,0.35); }
.about-showcase-grid{ display:grid; grid-template-columns:0.85fr 1.15fr; gap:20px; margin-top:30px; align-items:stretch; }
.about-stat-card{
  background:linear-gradient(160deg, var(--brand) 0%, var(--brand-deep) 100%); border-radius:var(--radius-md); color:#fff;
  padding:26px 22px; display:flex; flex-direction:column; justify-content:center; gap:8px; text-align:center;
}
.about-stat-card strong{ font-family:var(--font-mono); font-size:2.6rem; line-height:1; }
.about-stat-card span{ font-size:0.86rem; opacity:0.92; }
.about-feature-list{ display:flex; flex-direction:column; gap:16px; justify-content:center; }
.about-feature-item{ display:flex; gap:14px; align-items:flex-start; }
.about-feature-icon{ width:36px; height:36px; border-radius:50%; background:var(--tint); color:var(--brand-deep); display:flex; align-items:center; justify-content:center; flex:none; }
.about-feature-icon svg{ width:17px; height:17px; }
.about-feature-item h3{ font-size:0.96rem; color:var(--ink); font-family:var(--font-display); font-weight:600; }
.about-feature-item p{ font-size:0.84rem; color:var(--ink-soft); margin-top:4px; }
.about-showcase-phone{ display:flex; align-items:center; gap:16px; margin-top:28px; padding-top:24px; border-top:1px solid var(--line-strong); }
.about-phone-icon{ width:44px; height:44px; border-radius:50%; background:var(--tint); color:var(--brand-deep); display:flex; align-items:center; justify-content:center; flex:none; }
.about-phone-icon svg{ width:19px; height:19px; }
.about-showcase-phone div{ display:flex; flex-direction:column; gap:2px; }
.about-showcase-phone span{ font-size:0.84rem; color:var(--ink-soft); }
.about-showcase-phone a{ font-family:var(--font-display); font-weight:700; color:var(--brand-deep); font-size:1.05rem; }
@media (max-width: 900px){
  .section-tight .grid[style*="0.5fr"]{ grid-template-columns:1fr !important; }
  .about-teaser-photo{ max-width:220px; margin-inline:auto; aspect-ratio:3/3.4; }
  .about-showcase{ grid-template-columns:1fr; }
  .about-showcase-photo{ max-width:360px; margin-inline:auto; padding:12px 12px 12px 0; }
}
@media (max-width: 620px){
  .about-showcase-grid{ grid-template-columns:1fr; }
}

/* ============================== Hero photo wall (home) ================================ */
.hero-wall{ position:relative; height:clamp(540px,78vh,760px); overflow:hidden; background:var(--theme-grad); }
.hero-wall-row{ position:absolute; left:0; width:100%; height:50%; overflow:hidden; }
.hero-wall-row:not(.reverse){ top:0; }
.hero-wall-row.reverse{ top:50%; }
.hero-wall-track{ display:flex; height:100%; gap:0; flex:none; animation:marquee-scroll 70s linear infinite; }
.hero-wall .hero-wall-row:not(.reverse) .hero-wall-track{ animation-direction:reverse; }
.hero-wall .hero-wall-row.reverse .hero-wall-track{ animation-direction:normal; }
.hero-wall-track img{
  height:100%; width:auto; flex:none; object-fit:cover; aspect-ratio:3/2; filter:brightness(0.92) saturate(1.08);
  transform:scale(1.14); transform-origin:center;
  box-shadow:inset 20px 0 26px -20px rgba(40,123,132,0.7), inset -20px 0 26px -20px rgba(40,123,132,0.7);
}
.hero-wall-overlay{
  position:absolute; inset:0; z-index:2;
  background:linear-gradient(100deg, rgba(40,123,132,0.94) 0%, rgba(40,123,132,0.82) 34%, rgba(40,123,132,0.35) 62%, rgba(40,123,132,0.55) 100%);
}
.hero-wall-tag{
  position:absolute; left:clamp(20px,5vw,64px); top:clamp(20px,4vw,40px); z-index:3;
  display:inline-flex; align-items:center; gap:8px; font-family:var(--font-mono); font-size:0.8rem;
  color:rgba(255,255,255,0.75);
}
.hero-wall-tag svg{ width:14px; height:14px; }
.hero-wall-card{
  position:absolute; left:0; right:0; bottom:clamp(24px,5vw,56px); z-index:3;
  width:100%; max-width:var(--container); margin-inline:auto; padding-inline:var(--gutter); color:#fff;
}
.hero-wall-card .brand-mark-img{ height:34px; margin-bottom:22px; }
.hero-wall-card h1{ color:#fff; }
.hero-wall-card h1,.hero-wall-card > p,.hero-wall-card .lede{ max-width:600px; }
.hero-wall-card p{ color:rgba(255,255,255,0.82); margin-top:16px; font-size:1.06rem; max-width:600px; }
.hero-wall-actions{ display:flex; gap:14px; margin-top:30px; flex-wrap:wrap; }

/* ============================== Page header photo wall (inner pages, compact) ================================ */
.page-hero-wall{ position:relative; height:clamp(420px,54vh,520px); overflow:hidden; background:var(--theme-grad); }
.page-hero-wall .hero-wall-row{ height:100%; top:0 !important; }
.page-hero-wall .hero-wall-card{ top:clamp(28px,6vh,52px); bottom:auto; }
.page-hero-wall .hero-wall-card h1{ font-size:clamp(1.9rem,2.4vw+1rem,2.7rem); }
/* Breadcrumbs sit inside .hero-wall-card, whose generic `p` rule would otherwise enlarge them */
.hero-wall-card .page-header-crumbs{ font-size:0.8rem; margin:0; color:rgba(255,255,255,0.6); letter-spacing:0.02em; }

/* Service pages (biobank / genomic / clinical trial): content is vertically centred and the hero grows with it */
.page-hero-wall.is-service{ height:auto; min-height:clamp(460px,60vh,560px); display:flex; align-items:center; }
.page-hero-wall.is-service .hero-wall-card{ position:relative; top:auto; bottom:auto; padding-block:clamp(40px,7vh,64px); }
.page-hero-wall.is-service .hero-wall-card h1{ margin-top:18px; max-width:18ch; }
.page-hero-wall.is-service .hero-wall-card .lede{ margin-top:14px; max-width:52ch; }
.page-hero-wall.is-service .hero-actions{ margin-top:26px; }
.service-switch{ display:flex; gap:8px; margin-top:20px; flex-wrap:wrap; }
.service-switch .filter-pill{ background:rgba(255,255,255,0.06); border-color:rgba(255,255,255,0.28); color:rgba(255,255,255,0.85); padding:7px 14px; backdrop-filter:blur(4px); }
.service-switch .filter-pill:hover{ border-color:var(--brand); color:#fff; }
.service-switch .filter-pill[aria-current="page"]{ background:var(--brand); border-color:var(--brand); color:var(--brand-dark); }

@media (max-width: 720px){
  .hero-wall{ height:clamp(460px,86vh,620px); }
  .hero-wall-card{ max-width:var(--container); }
  .page-hero-wall{ height:clamp(420px,64vh,540px); }
}

/* ============================== Stat cards (home, eye-catching frames) ================================ */
.stat-card-row{ display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
.stat-card{
  position:relative; overflow:hidden; padding:28px 26px; border-radius:var(--radius-md);
  border:1px solid var(--line-strong); background:linear-gradient(160deg, var(--surface) 0%, var(--tint) 130%);
  box-shadow:0 14px 32px -20px rgba(6,60,62,0.22); display:flex; flex-direction:column; gap:6px;
  transition:transform .2s var(--ease), box-shadow .2s var(--ease);
}
.stat-card::before{ content:""; position:absolute; left:0; top:0; width:4px; height:100%; background:linear-gradient(180deg, var(--brand), var(--brand-deep)); }
.stat-card:hover{ transform:translateY(-4px); box-shadow:0 20px 40px -18px rgba(6,60,62,0.3); }
.stat-card-icon{ width:26px; height:26px; color:var(--brand-deep); opacity:0.8; margin-bottom:6px; }
.stat-card strong{ font-size:2.3rem; color:var(--brand-deep); line-height:1.1; }
.stat-card span{ font-size:0.88rem; color:var(--ink-soft); }
@media (max-width: 780px){ .stat-card-row{ grid-template-columns:1fr; } }

/* ============================== Hero (home, legacy split layout still used on inner refs) ================================ */
.hero{ position:relative; padding-block: clamp(48px,7vw,88px) clamp(56px,7vw,96px); overflow:hidden; }
.hero .container{ display:grid; grid-template-columns:1.1fr 0.9fr; gap:clamp(32px,5vw,64px); align-items:center; }
.hero-eyebrow{ margin-bottom:20px; }
.hero h1{ max-width:16ch; }
.hero .lede{ margin-top:20px; max-width:44ch; }
.hero-actions{ display:flex; gap:14px; margin-top:32px; flex-wrap:wrap; }
.hero-art{ position:relative; }
.hero-art svg{ width:100%; height:auto; }
.hero-slider{ position:relative; aspect-ratio:8/7; border-radius:var(--radius-md); overflow:hidden; box-shadow:0 24px 60px -20px rgba(6,60,62,0.35); }
.hero-slider img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; opacity:0; transition:opacity 1.2s ease; }
.hero-slider img.is-active{ opacity:1; }
.hero-ledger{ display:flex; gap:clamp(20px,4vw,48px); margin-top:48px; padding-top:28px; border-top:1px solid var(--line-strong); flex-wrap:wrap; }
.hero-ledger-item strong{ display:block; font-family:var(--font-mono); font-size:1.7rem; color:var(--ink); }
.hero-ledger-item span{ font-size:0.84rem; color:var(--ink-soft); }

@media (max-width: 900px){
  .hero .container{ grid-template-columns:1fr; }
  .hero-art{ order:-1; max-width:340px; margin-inline:auto; }
}

/* ============================== Service blocks ================================ */
.service-row{ display:grid; grid-template-columns:repeat(3,1fr); gap:24px; background:none; border:none; }
.service-block{
  background:var(--surface); padding:0 24px 24px; border:1px solid var(--line-strong); border-radius:var(--radius-md);
  display:flex; flex-direction:column; gap:14px; box-shadow:0 1px 0 rgba(6,60,62,0.06); transition:box-shadow .2s var(--ease), transform .2s var(--ease); overflow:visible;
}
.service-block:hover{ box-shadow:0 22px 40px -20px rgba(6,60,62,0.28); transform:translateY(-4px); }
.service-photo{ aspect-ratio:4/3; border-radius:0; overflow:hidden; position:relative; margin:0 -24px; }
.service-photo img{ width:100%; height:100%; object-fit:cover; }
.service-icon-badge{
  width:64px; height:64px; border-radius:16px; background:var(--tint); margin-top:20px;
  display:flex; align-items:center; justify-content:center; padding:12px;
}
.service-icon-badge svg{ width:100%; height:100%; overflow:visible; }
.service-block h3{ font-size:1.25rem; }
.service-tags{ display:flex; gap:8px; flex-wrap:wrap; }
.service-block p{ color:var(--ink-soft); font-size:0.94rem; }
@media (max-width:820px){ .service-row{ grid-template-columns:1fr; } }

/* ============================== Why-choose feature list ================================ */
.feature-list{ display:grid; grid-template-columns:repeat(4,1fr); gap:32px; }
.feature-item{ display:flex; flex-direction:column; gap:10px; }
.feature-item svg{ width:30px; height:30px; color:var(--brand-deep); }
.feature-item h3{ font-size:1.05rem; }
.feature-item p{ color:var(--ink-soft); font-size:0.9rem; }
@media (max-width: 900px){ .feature-list{ grid-template-columns:1fr 1fr; } }
@media (max-width: 560px){ .feature-list{ grid-template-columns:1fr; } }

/* ============================== News cards ================================ */
.news-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:24px; }
.news-card{
  display:flex; flex-direction:column; border:1px solid var(--line); border-top-width:3px; border-top-color:var(--brand);
  padding:20px; border-radius:var(--radius-md); background:var(--surface); box-shadow:var(--shadow-card);
  transition:box-shadow .2s var(--ease), transform .2s var(--ease), opacity .25s var(--ease);
}
.news-card.is-filtered-out{ opacity:0.18; transform:scale(0.97); pointer-events:none; }
.news-card:hover{ box-shadow:0 18px 34px -18px rgba(6,60,62,0.28); transform:translateY(-3px); }
.news-card-media{ display:block; aspect-ratio:16/10; border-radius:var(--radius-sm); overflow:hidden; margin:-20px -20px 16px; background:var(--tint); }
.news-card-media img{ width:100%; height:100%; object-fit:cover; transition:transform .3s var(--ease); }
.news-card-media:hover img{ transform:scale(1.04); }
.news-card-media-empty{ display:flex; align-items:center; justify-content:center; color:var(--brand-deep); opacity:0.35; }
.news-card-media-empty svg{ width:40px; height:40px; }
.news-card-tag{ align-self:flex-start; margin-bottom:12px; }
.news-language-badge{ align-self:flex-start; margin-bottom:12px; }
.news-card-date{ font-family:var(--font-mono); font-size:0.78rem; color:var(--ink-faint); display:flex; gap:8px; align-items:center; }
.news-card h3{ font-size:1.08rem; margin-top:10px; line-height:1.35; }
.news-card h3 a{ color:inherit; }
.news-card h3 a:hover{ color:var(--brand-deep); }
.news-card p{ color:var(--ink-soft); font-size:0.88rem; margin-top:10px; }
.news-card-links{ margin-top:auto; padding-top:16px; display:flex; align-items:center; gap:18px; flex-wrap:wrap; }
.news-card-links .btn-ghost{ font-size:0.86rem; }
.news-card-source{ color:var(--ink-soft) !important; }
.news-card-source::after{ content:"\2197"; }
@media (max-width: 980px){ .news-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width: 620px){ .news-grid{ grid-template-columns:1fr; } }

.news-filter-bar{ display:flex; gap:10px; flex-wrap:wrap; margin-bottom:36px; }
.news-article{ max-width:var(--container-nr); margin-inline:auto; }
.news-article-meta{ display:flex; gap:16px; align-items:center; flex-wrap:wrap; font-family:var(--font-mono); font-size:0.8rem; color:var(--ink-faint); margin-top:16px; }
.news-article-hero{ margin-top:28px; border-radius:var(--radius-md); overflow:hidden; aspect-ratio:16/9; }
.news-article-hero img{ width:100%; height:100%; object-fit:cover; }
.news-article-body{ margin-top:32px; font-size:1.05rem; line-height:1.75; }
.news-article-body p + p{ margin-top:20px; }

/* ============================== Timeline (history) ================================ */
.timeline{ display:grid; grid-template-columns:repeat(4,1fr); gap:0; }
.timeline-item{ position:relative; padding:24px 20px 0 0; border-top:2px solid var(--line-strong); }
.timeline-item::before{
  content:""; position:absolute; top:-2px; left:0; width:44px; height:2px; background:var(--gold);
}
.timeline-photo{ aspect-ratio:16/10; border-radius:var(--radius-md); overflow:hidden; margin-bottom:16px; }
.timeline-photo img{ width:100%; height:100%; object-fit:cover; }
.timeline-year{ font-family:var(--font-mono); font-size:1.4rem; color:var(--teal-deep); }
.timeline-item h3{ font-size:1rem; margin-top:10px; }
.timeline-item p{ font-size:0.88rem; color:var(--ink-soft); margin-top:8px; }
@media (max-width: 900px){ .timeline{ grid-template-columns:1fr 1fr; row-gap:32px; } }
@media (max-width: 560px){ .timeline{ grid-template-columns:1fr; } }

.about-pipette-photo img{ width:100%; height:auto; max-width:120px; }
.about-research-photo{ border-radius:var(--radius-md); overflow:hidden; aspect-ratio:1; background:var(--tint); }
.about-research-photo img{ width:100%; height:100%; object-fit:cover; }
@media (max-width: 900px){
  .about-pipette-photo{ display:none; }
  .section .grid[style*="0.6fr"]{ grid-template-columns:1fr !important; }
}

/* ============================== About vision/mission/commitment (with photo) ================================ */
.about-vision-wrap{ display:grid; grid-template-columns:0.6fr 1.4fr; gap:48px; align-items:center; }
.about-vision-photo{ border-radius:var(--radius-md); overflow:hidden; box-shadow:0 20px 44px -20px rgba(6,60,62,0.35); }
.about-vision-photo img{ width:100%; aspect-ratio:3/4; object-fit:cover; }
.about-vision-figure{ margin:0; }
.about-vision-caption{ display:flex; flex-direction:column; gap:4px; margin-top:16px; text-align:center; }
.about-vision-caption a{ font-weight:700; color:var(--ink); text-decoration:none; line-height:1.35; }
.about-vision-caption a:hover{ color:var(--brand-deep); text-decoration:underline; }
.about-vision-caption small{ display:block; font-weight:500; font-size:0.84rem; color:var(--ink-soft); white-space:nowrap; }
.about-vision-caption span{ font-family:var(--font-mono); font-size:0.78rem; color:var(--brand-deep); }
.about-vision-list{ display:flex; flex-direction:column; gap:16px; }
.about-vision-item{ display:flex; gap:18px; padding:22px; border:1px solid var(--line-strong); border-radius:var(--radius-md); background:var(--surface); box-shadow:0 1px 0 rgba(6,60,62,0.05); transition:box-shadow .2s var(--ease), transform .2s var(--ease); }
.about-vision-item:hover{ box-shadow:0 16px 32px -20px rgba(6,60,62,0.25); transform:translateY(-2px); }
.about-vision-icon{ width:40px; height:40px; border-radius:50%; background:var(--tint); color:var(--brand-deep); display:flex; align-items:center; justify-content:center; flex:none; }
.about-vision-icon svg{ width:19px; height:19px; }
.about-vision-item p:not(.eyebrow){ color:var(--ink-soft); }
@media (max-width: 860px){
  .about-vision-wrap{ grid-template-columns:1fr; }
  .about-vision-figure{ max-width:280px; margin-inline:auto; }
}

/* ============================== Facilities gallery (about) ================================ */
.facility-gallery{ display:grid; grid-template-columns:repeat(4,1fr); grid-auto-rows:160px; gap:14px; }
.facility-gallery-item{ position:relative; border-radius:var(--radius-md); overflow:hidden; }
.facility-gallery-item img{ width:100%; height:100%; object-fit:cover; transition:transform .3s var(--ease); }
.facility-gallery-item:hover img{ transform:scale(1.05); }
.facility-gallery-item.is-wide{ grid-column:span 2; }
.facility-gallery-item.is-tall{ grid-row:span 2; }
.facility-gallery-caption{
  position:absolute; left:0; right:0; bottom:0; padding:10px 14px; font-size:0.78rem; color:#fff;
  background:linear-gradient(0deg, rgba(40,123,132,0.85), rgba(40,123,132,0));
}
@media (max-width: 860px){ .facility-gallery{ grid-template-columns:repeat(2,1fr); grid-auto-rows:150px; } .facility-gallery-item.is-wide{ grid-column:span 2; } }
@media (max-width: 540px){ .facility-gallery{ grid-template-columns:1fr; } .facility-gallery-item.is-wide{ grid-column:span 1; } .facility-gallery-item.is-tall{ grid-row:span 1; } }

/* ============================== Process steps (truly sequential) ================================ */
.process{ display:grid; grid-template-columns:repeat(3,1fr); gap:32px; position:relative; }
.process-step{ display:flex; flex-direction:column; gap:12px; }
.process-num{ font-family:var(--font-mono); font-size:0.85rem; color:var(--paper); background:var(--teal); width:30px; height:30px; border-radius:50%; display:flex; align-items:center; justify-content:center; }
.process-step h3{ font-size:1.05rem; }
.process-step p{ color:var(--ink-soft); font-size:0.9rem; }
@media (max-width: 820px){ .process{ grid-template-columns:1fr; } }
/* Full-width diagram (clinical trial workflow and flow images) */
.workflow-figure{ margin:0; border-radius:var(--radius-md); overflow:hidden; border:1px solid var(--line); background:var(--surface); box-shadow:0 10px 30px -18px rgba(6,60,62,0.35); }
.workflow-figure img{ width:100%; height:auto; display:block; }

/* ============================== Ledger stat row (biobank/clinical-trial) ================================ */
.ledger{ display:grid; grid-template-columns:repeat(3,1fr); border-top:1px solid var(--line-strong); border-bottom:1px solid var(--line-strong); }
.ledger-item{ padding:28px 24px; border-left:1px solid var(--line-strong); }
.ledger-item:first-child{ border-left:none; }
.ledger-item strong{ display:block; font-family:var(--font-mono); font-size:2.1rem; color:var(--ink); }
.ledger-item span{ font-size:0.86rem; color:var(--ink-soft); }
@media (max-width: 780px){ .ledger{ grid-template-columns:1fr; } .ledger-item{ border-left:none; border-top:1px solid var(--line-strong); } .ledger-item:first-child{ border-top:none; } }

/* ============================== Live monitoring feed ============================== */
.cloud-studies-section{ background:var(--surface-sunk); border-block:1px solid var(--line); }
.cloud-summary-row{ grid-template-columns:repeat(3, minmax(0, 1fr)); max-width:none; gap:16px; }
.cloud-summary-card{ min-height:140px; padding:22px 18px; }
.cloud-summary-card > span:last-child{ font-size:0.84rem; }
.cloud-study-grid{ display:grid; gap:28px; }
.cloud-title-group-heading{ margin-bottom:14px; color:var(--brand-deep); font-size:1.1rem; }
/* Latest ongoing titles: a quiet list, so the counts above stay the focus */
.cloud-title-group-heading{ font-size:0.95rem; }
.cloud-title-list{ list-style:none; margin:0; padding:0; border-top:1px solid var(--line); }
.cloud-title-list li{ display:flex; justify-content:space-between; align-items:baseline; gap:16px; padding:10px 0; border-bottom:1px solid var(--line); }
.cloud-title-text{ color:var(--ink-soft); font-size:0.86rem; line-height:1.45; }
.cloud-title-list .cloud-study-type{ flex:none; }
.cloud-study-card{ padding:22px; background:var(--surface); border:1px solid var(--line); border-radius:var(--radius-md); box-shadow:var(--shadow-card); }
.cloud-study-card-head{ display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:14px; }
.cloud-study-card h3{ color:var(--ink); font-size:1.12rem; line-height:1.3; }
.cloud-study-type{ color:var(--ink-faint); font-family:var(--font-mono); font-size:.7rem; text-transform:uppercase; letter-spacing:.04em; }
.cloud-study-meta{ display:flex; flex-wrap:wrap; gap:6px 14px; margin-top:14px; color:var(--ink-soft); font-size:.82rem; }
.cloud-study-meta span + span{ position:relative; }
.cloud-study-meta span + span::before{ content:"/"; position:absolute; left:-9px; color:var(--line-strong); }
.cloud-study-card p{ margin-top:16px; color:var(--ink-soft); font-size:.9rem; }
.cloud-study-progress{ display:grid; gap:7px; margin-top:18px; color:var(--ink-soft); font-size:.8rem; }
.cloud-study-progress strong{ color:var(--ink); font-family:var(--font-mono); font-size:.78rem; font-weight:500; }
.cloud-study-progress-track{ height:5px; overflow:hidden; border-radius:99px; background:var(--line); }
.cloud-study-progress-track i{ display:block; height:100%; border-radius:inherit; background:var(--brand-deep); }
.cloud-study-card .tag.is-live{ background:var(--tint); color:var(--teal-deep); }
.cloud-study-card .tag.is-final{ background:var(--gold-pale); color:var(--gold-deep); }
.cloud-study-card .tag.is-neutral{ background:var(--surface-sunk); color:var(--ink-soft); }
.cloud-study-loading{ grid-column:1 / -1; padding:28px; border:1px dashed var(--line-strong); color:var(--ink-soft); text-align:center; }
@media (max-width: 780px){ .cloud-summary-row{ grid-template-columns:repeat(3, minmax(0, 1fr)); gap:8px; } .cloud-summary-card{ min-height:124px; padding:16px 10px; } .cloud-summary-card strong{ font-size:1.75rem; } .cloud-summary-card > span:last-child{ font-size:0.76rem; line-height:1.3; } .cloud-title-list li{ flex-direction:column; gap:4px; } .cloud-study-card-head{ align-items:flex-start; flex-direction:column; gap:8px; } }

/* ============================== Facility list ================================ */
.facility-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:1px; background:var(--line); border:1px solid var(--line); }
.facility-item{ background:var(--surface); padding:16px; display:flex; flex-direction:column; gap:12px; }
.facility-item svg{ width:26px; height:26px; color:var(--teal); }
.facility-item span{ font-size:0.86rem; color:var(--ink-soft); }
/* contain, not cover: show each instrument whole instead of cropping it to a square */
.facility-photo{ aspect-ratio:1; border-radius:var(--radius-sm); overflow:hidden; background:#fff; border:1px solid var(--line); display:flex; align-items:center; justify-content:center; }
.facility-photo img{ width:100%; height:100%; object-fit:contain; }
@media (max-width: 860px){ .facility-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width: 500px){ .facility-grid{ grid-template-columns:1fr; } }

/* ============================== Panels (genomic) ================================ */
.panel-tabs{ display:flex; gap:10px; flex-wrap:wrap; margin-bottom:28px; }
.panel-grid{ display:grid; grid-template-columns:1fr 1fr; gap:24px; }
.panel-card{ border:1px solid var(--line-strong); border-radius:var(--radius-md); padding:28px; background:var(--surface); }
.panel-photo{ aspect-ratio:16/10; border-radius:var(--radius-sm); overflow:hidden; margin:-4px -4px 18px; background:var(--tint); }
.panel-photo img{ width:100%; height:100%; object-fit:cover; }
.paper-item{ padding:20px 0; border-top:1px solid var(--line-strong); }
.paper-item:last-child{ padding-bottom:0; }
.paper-item h3{ font-size:1.02rem; }
.paper-item p{ color:var(--ink-soft); font-size:0.88rem; margin-top:6px; font-family:var(--font-mono); }
.paper-item .btn-ghost{ margin-top:10px; font-size:0.86rem; }
.panel-card .eyebrow{ margin-bottom:14px; }
.panel-card h3{ font-size:1.2rem; }
.panel-card p{ color:var(--ink-soft); margin-top:10px; font-size:0.92rem; }
.panel-card ul{ margin-top:16px; display:flex; flex-direction:column; gap:10px; }
.panel-card li{ display:flex; gap:10px; font-size:0.88rem; color:var(--ink-soft); }
.panel-card li svg{ width:15px; height:15px; margin-top:3px; flex:none; color:var(--teal); }
@media (max-width: 820px){ .panel-grid{ grid-template-columns:1fr; } }

/* ============================== Why choose / reasons list (numbered content that IS a list, not steps) ============ */
.reasons-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:1px; background:var(--line); border:1px solid var(--line); }
.reason-item{ background:var(--surface); padding:24px; display:flex; gap:16px; }
.reason-index{ font-family:var(--font-mono); color:var(--ink-faint); font-size:0.85rem; padding-top:3px; }
.reason-item h3{ font-size:1rem; }
.reason-item p{ color:var(--ink-soft); font-size:0.88rem; margin-top:6px; }
@media (max-width: 720px){ .reasons-grid{ grid-template-columns:1fr; } }

.reasons-grid-3{ display:grid; grid-template-columns:repeat(3,1fr); gap:1px; background:var(--line); border:1px solid var(--line); }
.reasons-grid-3 .reason-item{ background:var(--surface); padding:24px; display:flex; gap:16px; }
@media (max-width: 900px){ .reasons-grid-3{ grid-template-columns:1fr 1fr; } }
@media (max-width: 560px){ .reasons-grid-3{ grid-template-columns:1fr; } }

/* ============================== Evidence-based fact grid (home) ================================ */
.fact-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:20px; }
.fact-card{
  padding:26px 22px; border-radius:var(--radius-md); background:var(--surface); border:1px solid var(--line-strong);
  box-shadow:0 12px 28px -18px rgba(6,60,62,0.2); display:flex; flex-direction:column; gap:8px;
  transition:transform .2s var(--ease), box-shadow .2s var(--ease);
}
.fact-card:hover{ transform:translateY(-4px); box-shadow:0 20px 40px -18px rgba(6,60,62,0.3); }
.fact-icon{ width:34px; height:34px; border-radius:50%; background:var(--tint); color:var(--brand-deep); display:flex; align-items:center; justify-content:center; margin-bottom:4px; }
.fact-icon svg{ width:16px; height:16px; }
.fact-card strong{ font-family:var(--font-mono); font-size:2rem; color:var(--brand-deep); }
.fact-card span{ font-size:0.86rem; color:var(--ink-soft); }
@media (max-width: 900px){ .fact-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width: 560px){ .fact-grid{ grid-template-columns:1fr; } }

.reasons-inline{ display:flex; flex-wrap:wrap; gap:14px 28px; margin-top:28px; padding-top:24px; border-top:1px solid var(--line-strong); }
.reasons-inline-item{ display:flex; align-items:center; gap:9px; font-size:0.9rem; color:var(--ink-soft); font-weight:500; }
.reasons-inline-item svg{ width:17px; height:17px; color:var(--brand-deep); flex:none; }

/* ============================== Subject CTA (clinical trial) ================================ */
.subject-cta{ display:grid; grid-template-columns:0.8fr 1.2fr; gap:48px; align-items:center; background:var(--tint); border-radius:var(--radius-md); padding:clamp(24px,4vw,48px); }
.subject-cta-photo{ border-radius:var(--radius-md); overflow:hidden; box-shadow:0 20px 44px -20px rgba(6,60,62,0.3); }
.subject-cta-photo img{ width:100%; aspect-ratio:4/3; object-fit:cover; }
@media (max-width: 860px){ .subject-cta{ grid-template-columns:1fr; } }

/* ============================== FAQ accordion ================================ */
.faq-list{ max-width:var(--container-nr); }
.faq-item{ border-top:1px solid var(--line-strong); }
.faq-item:last-child{ border-bottom:1px solid var(--line-strong); }
.faq-q{
  width:100%; background:none; border:none; text-align:left; display:flex; align-items:center;
  justify-content:space-between; gap:20px; padding:20px 4px; font-family:var(--font-body);
  font-weight:600; font-size:1rem; color:var(--ink);
}
.faq-q svg{ width:16px; height:16px; flex:none; transition:transform .2s var(--ease); color:var(--teal); }
.faq-item[data-open="true"] .faq-q svg{ transform:rotate(45deg); }
.faq-a{ max-height:0; overflow:hidden; transition:max-height .25s var(--ease); }
.faq-a-inner{ padding:0 4px 22px; color:var(--ink-soft); font-size:0.94rem; max-width:64ch; }

/* ============================== Team / researcher directory ================================ */
.leader-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:28px; }
.leader-card{ display:flex; gap:16px; align-items:flex-start; }
.leader-photo{
  width:64px; height:64px; border-radius:50%; flex:none; background:var(--teal-pale);
  overflow:hidden; display:flex; align-items:center; justify-content:center;
  font-family:var(--font-display); color:var(--teal-deep); font-size:1.1rem;
}
.leader-photo img{ width:100%; height:100%; object-fit:cover; }
.leader-card h3{ font-size:1rem; line-height:1.3; }
.leader-card .role{ font-size:0.84rem; color:var(--teal-deep); margin-top:4px; display:block; }
@media (max-width: 900px){ .leader-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width: 560px){ .leader-grid{ grid-template-columns:1fr; } }

/* Flex rather than a fixed column count, so any number of groups fills every row */
.group-grid{ display:flex; flex-wrap:wrap; gap:1px; background:var(--line); border:1px solid var(--line); }
.group-card{ flex:1 1 200px; background:var(--surface); padding:24px; display:flex; flex-direction:column; gap:10px; }
.group-card h3{ font-size:1.1rem; }
.group-card p{ font-size:0.86rem; color:var(--ink-soft); flex:1; }
@media (max-width: 500px){ .group-card{ flex-basis:100%; } }

.team-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
.team-card{ background:var(--surface-sunk); border:1px dashed var(--line-strong); border-radius:var(--radius-md); padding:22px; display:flex; flex-direction:column; gap:8px; }
.team-card svg{ width:22px; height:22px; color:var(--ink-faint); }
.team-card h3{ font-size:0.98rem; }
.team-card p{ font-size:0.84rem; color:var(--ink-soft); }
@media (max-width: 860px){ .team-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width: 560px){ .team-grid{ grid-template-columns:1fr; } }

.directory-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:20px; }
.directory-card{
  position:relative; aspect-ratio:3/3.6; border-radius:var(--radius-md); overflow:hidden;
  background:linear-gradient(160deg,var(--teal-pale),var(--surface-sunk)); display:flex; align-items:flex-end;
  box-shadow:0 1px 0 rgba(6,60,62,0.06); transition:box-shadow .2s var(--ease), transform .2s var(--ease);
}
.directory-card:hover{ box-shadow:0 18px 34px -18px rgba(6,60,62,0.3); transform:translateY(-3px); }
.directory-card img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:top center; }
.directory-card-info{
  position:relative; width:100%; padding:16px; background:linear-gradient(0deg, rgba(40,123,132,0.94) 15%, rgba(40,123,132,0.55) 70%, rgba(40,123,132,0));
  color:var(--paper);
}
.directory-card-info strong{ display:block; font-size:0.94rem; line-height:1.3; }
.directory-card-info span{ display:block; font-size:0.78rem; opacity:0.85; margin-top:4px; }
.directory-card-monogram{ position:absolute; inset:0; display:flex; align-items:center; justify-content:center; font-family:var(--font-display); font-size:2.6rem; color:var(--teal); opacity:0.4; }
@media (max-width: 900px){ .directory-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width: 560px){ .directory-grid{ grid-template-columns:1fr; } }

.person-detail{ display:grid; grid-template-columns:220px 1fr; gap:48px; }
.person-photo{
  width:100%; aspect-ratio:1; border-radius:var(--radius-md); overflow:hidden;
  background:linear-gradient(160deg,var(--teal-pale),var(--surface-sunk)); display:flex; align-items:center; justify-content:center;
  font-family:var(--font-display); font-size:3rem; color:var(--teal);
}
.person-photo img{ width:100%; height:100%; object-fit:cover; }
.profile-tags{ display:flex; gap:10px; flex-wrap:wrap; }
.profile-details{ margin-top:56px; display:grid; grid-template-columns:1fr 1fr; gap:48px; }
.profile-block h2{ padding-bottom:14px; border-bottom:1px solid var(--line-strong); }
.paper-list .paper-item:first-child{ padding-top:0; }
@media (max-width: 720px){ .person-detail{ grid-template-columns:1fr; } .person-photo{ max-width:180px; } .profile-details{ grid-template-columns:1fr; gap:36px; } }

/* Researcher profile: personal info, education/experience timelines, publications, unit team */
.person-detail .person-photo{ position:sticky; top:24px; align-self:start; }
.person-subtitle{ margin-top:10px; color:var(--teal-deep); font-size:0.95rem; font-weight:500; max-width:70ch; }
.profile-info{ margin:28px 0 0; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px 28px; padding:20px 22px; border:1px solid var(--line); border-radius:var(--radius-md); background:var(--surface-sunk); }
.profile-info-row{ display:flex; gap:12px; align-items:flex-start; min-width:0; }
.profile-info-icon{ width:32px; height:32px; flex:none; border-radius:50%; background:var(--surface); color:var(--brand-deep); display:flex; align-items:center; justify-content:center; }
.profile-info-icon svg{ width:15px; height:15px; }
.profile-info dt{ font-family:var(--font-mono); font-size:0.72rem; color:var(--ink-faint); }
.profile-info dd{ margin:2px 0 0; font-size:0.92rem; color:var(--ink); overflow-wrap:anywhere; }
.profile-info dd a{ color:var(--brand-deep); }
.profile-info dd a:hover{ text-decoration:underline; }
.profile-block-wide{ grid-column:1 / -1; }
.profile-timeline{ margin-top:18px; display:flex; flex-direction:column; gap:22px; border-left:2px solid var(--line-strong); padding-left:22px; }
.profile-timeline li{ position:relative; }
.profile-timeline li::before{ content:""; position:absolute; left:-29px; top:5px; width:12px; height:12px; border-radius:50%; background:var(--surface); border:2px solid var(--brand); }
.profile-timeline-period{ font-family:var(--font-mono); font-size:0.74rem; color:var(--brand-deep); }
.profile-timeline h3{ font-size:1rem; line-height:1.35; margin-top:4px; }
.profile-timeline-org{ font-size:0.9rem; color:var(--ink); margin-top:4px; }
.profile-timeline-desc{ font-size:0.88rem; color:var(--ink-soft); margin-top:6px; line-height:1.55; }
.paper-item h3 a:hover{ color:var(--brand-deep); text-decoration:underline; }
.profile-team{ margin-top:72px; padding-top:48px; border-top:1px solid var(--line-strong); }
.profile-team .lede{ max-width:80ch; font-size:1rem; }
.team-member-grid{ margin-top:32px; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }
.team-member-card{ display:flex; gap:16px; align-items:flex-start; padding:18px; border:1px solid var(--line); border-radius:var(--radius-md); background:var(--surface); }
.team-member-photo{ width:72px; height:72px; flex:none; border-radius:50%; overflow:hidden; background:var(--teal-pale); display:flex; align-items:center; justify-content:center; font-family:var(--font-display); color:var(--teal-deep); }
.team-member-photo img{ width:100%; height:100%; object-fit:cover; object-position:top; }
.team-member-card h3{ font-size:0.98rem; line-height:1.3; }
.team-member-card .role{ display:block; margin-top:3px; font-size:0.82rem; color:var(--brand-deep); }
.team-member-card p{ margin-top:8px; font-size:0.86rem; color:var(--ink-soft); line-height:1.55; }
@media (max-width: 720px){
  .person-detail .person-photo{ position:static; }
  .profile-info, .team-member-grid{ grid-template-columns:1fr; }
}

/* ============================== Partners / sponsors logo grid ================================ */
.logo-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:1px; background:var(--line); border:1px solid var(--line); }
.logo-tile{ background:var(--surface); padding:32px 28px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:10px; text-align:center; min-height:150px; filter:grayscale(15%); transition:filter .2s var(--ease), transform .2s var(--ease); }
.logo-tile:hover{ filter:grayscale(0%); transform:translateY(-2px); }
.logo-tile img{ max-width:100%; max-height:64px; width:auto; height:auto; object-fit:contain; }
.logo-tile-mark{ width:52px; height:52px; color:var(--ink-faint); }
.logo-tile span{ font-size:0.78rem; color:var(--ink-faint); font-family:var(--font-mono); }
@media (max-width: 860px){ .logo-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width: 480px){ .logo-grid{ grid-template-columns:1fr; } }

/* ============================== Logo marquee (home) ================================ */
.marquee-section{ overflow:hidden; position:relative; }
.marquee-row{ display:flex; overflow:hidden; -webkit-mask-image:linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image:linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee-track{ display:flex; align-items:center; gap:88px; flex:none; padding-inline:44px; animation:marquee-scroll 55s linear infinite; }
.marquee-row:focus-within .marquee-track{ animation-play-state:paused; }
.marquee-track img{ height:78px; width:auto; max-width:300px; object-fit:contain; filter:grayscale(100%) opacity(0.65); transition:filter .2s var(--ease); flex:none; }
.marquee-track img:hover{ filter:grayscale(0%) opacity(1); }
.cloud-marquee-name{ flex:none; color:var(--ink-soft); font-family:var(--font-mono); font-size:0.85rem; white-space:nowrap; }
.marquee-row.reverse .marquee-track{ animation-direction:reverse; }
.marquee-group{ margin-top:32px; }
.marquee-group-label{ text-align:center; font-family:var(--font-mono); font-size:0.76rem; color:var(--ink-faint); margin-bottom:16px; }

.cert-tile{ flex:none; display:flex; flex-direction:column; align-items:center; gap:8px; padding:18px 24px; border:1px solid var(--line-strong); border-radius:var(--radius-md); background:var(--surface); min-width:220px; }
.cert-tile img{ height:44px; width:auto; max-width:160px; object-fit:contain; }
.cert-tile-text{ display:flex; flex-direction:column; align-items:center; text-align:center; gap:4px; }
.cert-tile-text svg{ width:22px; height:22px; color:var(--brand-deep); }
.cert-tile-text strong{ font-size:0.86rem; color:var(--ink); max-width:22ch; }
.cert-tile-photo{ text-decoration:none; width:300px; padding:14px; transition:border-color .2s var(--ease); }
.cert-tile-photo:hover{ border-color:var(--brand-deep); }
.marquee-track .cert-tile-photo img{ width:100%; height:200px; max-width:none; object-fit:contain; filter:none; border-radius:calc(var(--radius-md) - 4px); }
.cert-tile-photo .cert-tile-text strong{ max-width:none; }
.cert-issuer{ font-size:0.74rem; color:var(--ink-faint); font-family:var(--font-mono); }
@keyframes marquee-scroll{
  from{ transform:translateX(0); }
  to{ transform:translateX(-50%); }
}
@media (prefers-reduced-motion: reduce){
  .marquee-track{ animation:none; flex-wrap:wrap; justify-content:center; }
}

/* ============================== Contact page ================================ */
.contact-grid{ display:grid; grid-template-columns:0.9fr 1.1fr; gap:56px; }
.contact-info-list{ display:flex; flex-direction:column; gap:28px; }
.contact-info-item{ display:flex; gap:16px; }
.contact-info-icon{ width:40px; height:40px; border-radius:50%; background:var(--teal-pale); color:var(--teal-deep); display:flex; align-items:center; justify-content:center; flex:none; }
.contact-info-icon svg{ width:18px; height:18px; }
.contact-info-item h3{ font-size:1rem; }
.contact-info-item p{ color:var(--ink-soft); font-size:0.9rem; margin-top:4px; }
.form-field{ display:flex; flex-direction:column; gap:8px; }
.form-field label{ font-size:0.86rem; font-weight:600; color:var(--ink); }
.form-field input, .form-field textarea, .form-field select{
  border:1px solid var(--line-strong); border-radius:var(--radius-sm); padding:12px 14px; background:var(--surface);
  color:var(--ink); font-size:0.95rem;
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus{ border-color:var(--teal); }
.form-grid{ display:grid; grid-template-columns:1fr 1fr; gap:20px; }
.form-grid .full{ grid-column:1 / -1; }
.form-note{ font-size:0.82rem; color:var(--ink-faint); }
@media (max-width: 900px){ .contact-grid{ grid-template-columns:1fr; } }
@media (max-width: 560px){ .form-grid{ grid-template-columns:1fr; } }

/* ============================== Empty / not-found states ================================ */
.empty-state{
  border:1px dashed var(--line-strong); border-radius:var(--radius-md); padding:clamp(28px,4vw,48px);
  text-align:left; max-width:var(--container-nr);
}
.empty-state h3{ font-size:1.15rem; }
.empty-state p{ color:var(--ink-soft); margin-top:10px; max-width:56ch; }
.empty-state .btn{ margin-top:18px; }
.section-load-failure{ color:var(--ink-soft); max-width:56ch; }

/* ============================== CTA band ================================ */
.cta-band{ background:var(--theme-grad); color:var(--paper); border-radius:var(--radius-md); padding:clamp(32px,5vw,56px); display:flex; align-items:center; justify-content:space-between; gap:32px; flex-wrap:wrap; }
.cta-band h2{ color:var(--paper); }
.cta-band p{ color:rgba(255,255,255,0.72); margin-top:8px; }
@media (max-width: 700px){ .cta-band{ flex-direction:column; align-items:flex-start; } }

/* ============================== Downloads list ================================ */
.download-list{ display:grid; grid-template-columns:repeat(2,1fr); gap:20px; }
.download-box{
  display:flex; flex-direction:column; gap:14px; padding:28px; border-radius:var(--radius-md);
  border:1.5px solid var(--line-strong); background:linear-gradient(160deg, var(--surface) 0%, var(--tint) 140%);
  box-shadow:0 12px 28px -18px rgba(6,60,62,0.2); transition:transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.download-box:hover{ transform:translateY(-4px); box-shadow:0 20px 40px -18px rgba(6,60,62,0.32); border-color:var(--brand); }
.download-box-icon{ width:44px; height:44px; border-radius:50%; background:var(--brand-pale); color:var(--brand-deep); display:flex; align-items:center; justify-content:center; }
.download-box-icon svg{ width:20px; height:20px; }
.download-box-label{ font-family:var(--font-display); font-weight:600; font-size:1.05rem; color:var(--ink); }
.download-box-cta{ display:flex; align-items:center; gap:8px; font-size:0.86rem; color:var(--brand-deep); font-weight:600; }
.download-box-cta svg{ width:15px; height:15px; }
@media (max-width: 620px){ .download-list{ grid-template-columns:1fr; } }

/* ============================== Check list (bullets with check glyph) ================================ */
.check-list{ display:flex; flex-direction:column; gap:12px; }
.check-list li{ display:flex; gap:10px; color:var(--ink-soft); font-size:0.95rem; }
.check-list svg{ width:16px; height:16px; color:var(--teal); flex:none; margin-top:4px; }

/* ============================== Trio / grid overrides ================================ */
.trio-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:1px; background:var(--line); border:1px solid var(--line); }
.trio-card{ background:var(--surface); padding:28px; display:flex; flex-direction:column; gap:10px; }
.trio-card h3{ font-size:1.05rem; }
.trio-card p{ color:var(--ink-soft); font-size:0.9rem; }
@media (max-width: 820px){ .trio-grid{ grid-template-columns:1fr; } }

/* ============================== Video embed ================================ */
.video-embed{ position:relative; width:100%; aspect-ratio:16/9; border-radius:var(--radius-md); overflow:hidden; background:var(--surface-sunk); margin-top:36px; }
.video-embed iframe, .video-embed video{ position:absolute; inset:0; width:100%; height:100%; border:0; }
.video-embed video{ object-fit:cover; background:#000; }
.video-embed .empty-state{ position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; border:none; margin:auto; max-width:480px; }

/* ============================== Utility spacing ================================ */
.mt-0{ margin-top:0 !important; }
.center{ text-align:center; margin-inline:auto; }

/* ============================== Scroll reveal (single orchestrated moment) ================================ */
[data-reveal]{ opacity:0; transform:translateY(14px); transition:opacity .5s var(--ease), transform .5s var(--ease); }
[data-reveal].is-visible{ opacity:1; transform:translateY(0); }

/* ============================== Collaboration popup (after 1 minute on site) ================================ */
.collab-popup{ position:fixed; inset:0; z-index:300; display:flex; align-items:center; justify-content:center; padding:16px; opacity:0; transition:opacity .25s var(--ease); }
.collab-popup.is-open{ opacity:1; }
.collab-popup-backdrop{ position:absolute; inset:0; background:rgba(40,123,132,0.55); backdrop-filter:blur(3px); }
.collab-popup-dialog{
  position:relative; width:100%; max-width:480px; max-height:calc(100vh - 32px); overflow:auto;
  background:var(--surface); border-radius:var(--radius-md); border-top:4px solid var(--brand);
  padding:32px 30px 28px; box-shadow:0 30px 70px -20px rgba(6,60,62,0.45);
  transform:translateY(14px) scale(0.98); transition:transform .3s var(--ease);
}
.collab-popup.is-open .collab-popup-dialog{ transform:none; }
.collab-popup-dialog:focus{ outline:none; }
.collab-popup-close{ position:absolute; top:14px; right:14px; width:34px; height:34px; border-radius:50%; border:1px solid var(--line-strong); background:var(--surface); color:var(--ink-soft); display:flex; align-items:center; justify-content:center; }
.collab-popup-close:hover{ color:var(--ink); background:var(--surface-sunk); }
.collab-popup-close svg{ width:16px; height:16px; }
.collab-popup-icon{ width:48px; height:48px; border-radius:50%; background:var(--teal-pale); color:var(--brand-deep); display:flex; align-items:center; justify-content:center; margin-bottom:18px; }
.collab-popup-icon svg{ width:24px; height:24px; }
.collab-popup .h-2{ margin-top:10px; font-size:clamp(1.4rem,1vw + 1rem,1.75rem); }
.collab-popup-body{ margin-top:12px; color:var(--ink-soft); font-size:0.95rem; line-height:1.6; }
.collab-popup-list{ display:flex; flex-wrap:wrap; gap:8px; margin-top:18px; }
.collab-popup-list li{ display:inline-flex; align-items:center; gap:6px; padding:6px 12px; border-radius:var(--radius-pill); background:var(--surface-sunk); border:1px solid var(--line); font-size:0.82rem; color:var(--teal-deep); }
.collab-popup-list svg{ width:14px; height:14px; color:var(--brand-deep); }
.collab-popup-actions{ display:flex; gap:10px; flex-wrap:wrap; margin-top:24px; }
@media (max-width: 480px){ .collab-popup-dialog{ padding:28px 20px 22px; } .collab-popup-actions .btn{ flex:1 1 100%; justify-content:center; } }

/* ============================== CRU members (researcher page, grouped by sub-unit) ================================ */
.member-units{ display:flex; flex-direction:column; gap:28px; }
.member-unit{ border:1px solid var(--line); border-radius:var(--radius-md); background:var(--surface); padding:24px; }
.member-unit-head{ display:flex; justify-content:space-between; align-items:center; gap:16px; flex-wrap:wrap; padding-bottom:18px; border-bottom:1px solid var(--line); }
.member-unit-head h3{ font-size:1.12rem; }
.member-unit-count{ display:block; margin-top:2px; font-family:var(--font-mono); font-size:0.74rem; color:var(--ink-faint); }
.member-unit-lead{ display:flex; align-items:center; gap:10px; padding:6px 14px 6px 6px; border-radius:var(--radius-pill); background:var(--surface-sunk); border:1px solid var(--line); font-size:0.86rem; color:var(--ink); transition:border-color .16s var(--ease); }
.member-unit-lead:hover{ border-color:var(--brand); }
.member-unit-lead small{ display:block; font-family:var(--font-mono); font-size:0.68rem; color:var(--ink-faint); }
.member-unit-lead-photo{ width:36px; height:36px; flex:none; border-radius:50%; overflow:hidden; background:var(--teal-pale); display:flex; align-items:center; justify-content:center; font-size:0.8rem; color:var(--teal-deep); }
.member-unit-lead-photo img{ width:100%; height:100%; object-fit:cover; }
.member-grid{ margin-top:22px; display:grid; grid-template-columns:repeat(auto-fill,minmax(150px,1fr)); gap:22px 18px; }
.member-card{ display:flex; flex-direction:column; align-items:center; text-align:center; gap:4px; }
.member-card-photo{ width:96px; height:96px; border-radius:50%; overflow:hidden; margin-bottom:8px; background:linear-gradient(160deg,var(--teal-pale),var(--surface-sunk)); display:flex; align-items:center; justify-content:center; box-shadow:0 0 0 3px var(--surface), 0 0 0 4px var(--line-strong); }
.member-card-photo img{ width:100%; height:100%; object-fit:cover; object-position:top; }
.member-card-monogram{ font-family:var(--font-display); font-size:1.5rem; color:var(--teal); }
.member-card strong{ font-family:var(--font-display); font-weight:600; font-size:0.9rem; line-height:1.3; color:var(--brand-dark); }
.member-card span:last-child{ font-size:0.8rem; color:var(--brand-deep); line-height:1.35; }
@media (max-width: 560px){ .member-unit{ padding:18px; } .member-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); } .member-card-photo{ width:80px; height:80px; } }

/* ---------------------------------- Chat assistant ------------------------ */
.chatbot{ position:fixed; right:20px; bottom:20px; z-index:250; font-family:var(--font-body); }
.chatbot{ display:flex; flex-direction:column; align-items:flex-end; }
.chatbot-bubble{
  position:relative; width:68px; height:68px; padding:0; border:3px solid #fff; border-radius:50%;
  background:#E6EEFA; color:#fff; display:grid; place-items:center; overflow:hidden;
  box-shadow:0 0 0 2px var(--brand), 0 10px 26px rgba(6,60,62,0.3); transition:transform .2s var(--ease), box-shadow .2s var(--ease);
}
.chatbot-bubble:hover{ transform:translateY(-3px) scale(1.04); box-shadow:0 0 0 2px var(--brand-deep), 0 14px 30px rgba(6,60,62,0.34); }
.chatbot-bubble-open img{ width:100%; height:100%; object-fit:cover; display:block; }
.chatbot-bubble svg{ width:28px; height:28px; }
.chatbot.is-open .chatbot-bubble{ background:var(--brand-deep); }
.chatbot-teaser{
  position:relative; display:flex; align-items:center; margin-bottom:12px; max-width:min(280px, calc(100vw - 32px));
  background:#fff; border:1px solid var(--line-strong); border-radius:16px 16px 4px 16px;
  box-shadow:0 12px 30px -10px rgba(6,60,62,0.35);
  opacity:0; transform:translateY(8px) scale(.96); transform-origin:bottom right; transition:opacity .25s var(--ease), transform .25s var(--ease);
}
.chatbot-teaser.is-visible{ opacity:1; transform:none; }
.chatbot-teaser[hidden]{ display:none; }
.chatbot-teaser::after{
  content:""; position:absolute; right:26px; bottom:-7px; width:12px; height:12px; background:#fff;
  border-right:1px solid var(--line-strong); border-bottom:1px solid var(--line-strong); transform:rotate(45deg);
}
.chatbot-teaser-text{
  border:none; background:none; padding:12px 6px 12px 16px; text-align:left; font-size:0.92rem; font-weight:600;
  line-height:1.4; color:var(--brand-dark);
}
.chatbot-teaser-text span{ display:block; font-weight:500; color:var(--ink); }
.chatbot-teaser-text strong{ display:block; font-size:1rem; color:var(--brand-deep); }
.chatbot-teaser-text:hover strong{ text-decoration:underline; text-underline-offset:3px; }
.chatbot-teaser-close{ flex:none; width:28px; height:28px; margin-right:6px; border:none; border-radius:50%; background:transparent; color:var(--ink-faint); display:grid; place-items:center; }
.chatbot-teaser-close:hover{ background:var(--tint); color:var(--ink); }
.chatbot-teaser-close svg{ width:14px; height:14px; }
.chatbot-teaser.is-visible + .chatbot-bubble{ animation:chatbot-wave 1.2s var(--ease) 2; }
@keyframes chatbot-wave{ 0%,100%{ transform:none; } 25%{ transform:rotate(-8deg); } 50%{ transform:rotate(6deg); } 75%{ transform:rotate(-3deg); } }
.chatbot-bubble-close{ display:none; }
.chatbot.is-open .chatbot-bubble-open{ display:none; }
.chatbot.is-open .chatbot-bubble-close{ display:block; }
.chatbot-panel{
  position:absolute; right:0; bottom:84px; width:min(380px, calc(100vw - 32px)); height:min(600px, calc(100vh - 120px));
  display:flex; flex-direction:column; background:var(--surface); border:1px solid var(--line-strong);
  border-radius:16px; box-shadow:0 18px 48px rgba(6,60,62,0.22); overflow:hidden;
  animation:chatbot-in .22s var(--ease);
}
.chatbot-panel[hidden]{ display:none; }
@keyframes chatbot-in{ from{ opacity:0; transform:translateY(10px); } to{ opacity:1; transform:none; } }
.chatbot-head{ display:flex; align-items:center; gap:12px; padding:14px 14px 14px 16px; background:var(--theme-grad); color:#fff; }
.chatbot-head img{ width:40px; height:40px; border-radius:50%; background:#E6EEFA; border:2px solid #fff; object-fit:cover; flex:none; }
.chatbot-head div{ flex:1; min-width:0; }
.chatbot-head h2{ color:#fff; font-size:1rem; line-height:1.2; }
.chatbot-head p{ font-size:0.8rem; opacity:0.8; }
.chatbot-close{ width:34px; height:34px; border:none; border-radius:50%; background:transparent; color:#fff; display:grid; place-items:center; flex:none; }
.chatbot-close:hover{ background:rgba(255,255,255,0.12); }
.chatbot-close svg{ width:20px; height:20px; }
.chatbot-log{ flex:1; overflow-y:auto; padding:16px; display:flex; flex-direction:column; gap:10px; background:var(--surface-sunk); overscroll-behavior:contain; }
.chatbot-msg{ max-width:88%; padding:10px 13px; border-radius:14px; font-size:0.92rem; line-height:1.5; overflow-wrap:anywhere; }
.chatbot-msg p + p, .chatbot-msg p + .chatbot-links, .chatbot-msg p + .chatbot-chips, .chatbot-msg p + .chatbot-actions{ margin-top:8px; }
.chatbot-msg-bot{ align-self:flex-start; background:var(--surface); border:1px solid var(--line); border-bottom-left-radius:4px; color:var(--ink); }
.chatbot-msg-user{ align-self:flex-end; background:var(--brand-deep); color:#fff; border-bottom-right-radius:4px; }
.chatbot-msg-form{ max-width:100%; width:100%; }
.chatbot-msg a{ color:var(--brand-deep); text-decoration:underline; text-underline-offset:2px; }
.chatbot-q{ font-weight:600; color:var(--brand-dark); }
.chatbot-note{ font-size:0.8rem; color:var(--ink-soft); }
.chatbot-links{ display:flex; flex-wrap:wrap; gap:6px 14px; font-size:0.85rem; font-weight:500; }
.chatbot-chips{ display:flex; flex-wrap:wrap; gap:6px; margin-top:10px; }
.chatbot-chip{
  border:1px solid var(--line-strong); background:var(--tint); color:var(--brand-dark);
  border-radius:var(--radius-pill); padding:6px 12px; font-size:0.82rem; line-height:1.3; text-align:left;
  transition:background .15s var(--ease), border-color .15s var(--ease);
}
.chatbot-chip:hover{ background:#fff; border-color:var(--brand); }
.chatbot-actions, .chatbot-form-actions{ display:flex; flex-wrap:wrap; gap:6px; margin-top:10px; }
.chatbot-msg .chatbot-action, .chatbot-action{
  display:inline-flex; align-items:center; border:1px solid var(--brand-deep); background:#fff; color:var(--brand-deep);
  border-radius:var(--radius-sm); padding:7px 12px; font-size:0.84rem; font-weight:600; text-decoration:none;
}
.chatbot-action:hover{ background:var(--tint); }
.chatbot-msg .chatbot-action-primary, .chatbot-action-primary{ background:var(--brand-deep); color:#fff; }
.chatbot-action-primary:hover{ background:var(--brand-dark); }
.chatbot-msg .chatbot-action-wa{ border-color:#1E8E4E; color:#1E8E4E; }
.chatbot-form{ display:flex; flex-direction:column; gap:8px; }
.chatbot-form label{ display:flex; flex-direction:column; gap:3px; font-size:0.8rem; color:var(--ink-soft); }
.chatbot-form input, .chatbot-form select, .chatbot-form textarea{
  border:1px solid var(--line-strong); border-radius:var(--radius-sm); padding:8px 10px; font-size:0.9rem; color:var(--ink); background:#fff; resize:vertical;
}
.chatbot-form input:focus, .chatbot-form select:focus, .chatbot-form textarea:focus{ outline:2px solid var(--brand); outline-offset:0; border-color:var(--brand); }
.chatbot-form-error{ color:var(--alert); font-size:0.8rem; }
.chatbot-form-error:empty{ display:none; }
.chatbot-typing{ display:inline-flex; gap:4px; padding:4px 0; }
.chatbot-typing i{ width:6px; height:6px; border-radius:50%; background:var(--ink-faint); animation:chatbot-dot 1s infinite ease-in-out; }
.chatbot-typing i:nth-child(2){ animation-delay:.15s; }
.chatbot-typing i:nth-child(3){ animation-delay:.3s; }
@keyframes chatbot-dot{ 0%,80%,100%{ opacity:.3; transform:none; } 40%{ opacity:1; transform:translateY(-3px); } }
.chatbot-input{ display:flex; gap:8px; padding:10px 12px; border-top:1px solid var(--line); background:var(--surface); }
.chatbot-input input{ flex:1; min-width:0; border:1px solid var(--line-strong); border-radius:var(--radius-pill); padding:9px 14px; font-size:0.92rem; }
.chatbot-input input:focus{ outline:2px solid var(--brand); outline-offset:0; border-color:var(--brand); }
.chatbot-input button{ width:40px; height:40px; flex:none; border:none; border-radius:50%; background:var(--brand-deep); color:#fff; display:grid; place-items:center; }
.chatbot-input button:hover{ background:var(--brand-dark); }
.chatbot-input button svg{ width:18px; height:18px; }
.chatbot-disclaimer{ padding:0 14px 10px; font-size:0.7rem; line-height:1.4; color:var(--ink-faint); background:var(--surface); }
@media (max-width: 480px){
  .chatbot{ right:16px; bottom:16px; }
  .chatbot.is-open .chatbot-bubble{ display:none; }
  .chatbot-panel{ position:fixed; inset:0; width:100%; height:100%; height:100dvh; border-radius:0; border:none; }
}

/* ---------------------------------- Researcher hover effects -------------- */
/* Selectors include [data-reveal].is-visible so the hover transform wins over the reveal-on-scroll reset */
.directory-card[data-reveal]{ transition:opacity .5s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease); isolation:isolate; }
.directory-card img{ transition:transform .6s var(--ease), filter .4s var(--ease); }
.directory-card::after{
  content:""; position:absolute; left:0; right:0; bottom:0; height:4px; background:var(--spark);
  transform:scaleX(0); transform-origin:left; transition:transform .35s var(--ease);
}
.directory-card-info{ transition:padding .35s var(--ease); }
.directory-card-info span{ transition:opacity .35s var(--ease); }
.directory-card[data-reveal].is-visible:hover,
.directory-card[data-reveal].is-visible:focus-visible{ transform:translateY(-8px); box-shadow:0 26px 44px -20px rgba(6,60,62,0.45); }
.directory-card:hover img, .directory-card:focus-visible img{ transform:scale(1.07); filter:saturate(1.08); }
.directory-card:hover::after, .directory-card:focus-visible::after{ transform:scaleX(1); }
.directory-card:hover .directory-card-info, .directory-card:focus-visible .directory-card-info{ padding-bottom:22px; }
.directory-card:hover .directory-card-info span{ opacity:1; }

.member-card{ padding:12px 8px; border-radius:var(--radius-md); transition:background .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease); }
.member-card-photo{ transition:box-shadow .3s var(--ease), transform .3s var(--ease); }
.member-card-photo img{ transition:transform .5s var(--ease); }
.member-card:hover{ background:var(--tint); transform:translateY(-4px); box-shadow:0 14px 26px -18px rgba(6,60,62,0.4); }
.member-card:hover .member-card-photo{ transform:scale(1.05); box-shadow:0 0 0 3px var(--surface), 0 0 0 5px var(--brand); }
.member-card:hover .member-card-photo img{ transform:scale(1.08); }
.member-unit-lead{ transition:border-color .2s var(--ease), background .2s var(--ease), transform .2s var(--ease); }
.member-unit-lead:hover{ background:var(--tint); transform:translateY(-2px); }
@media (prefers-reduced-motion: reduce){
  .chatbot-teaser.is-visible + .chatbot-bubble{ animation:none; }
  .directory-card[data-reveal].is-visible:hover, .member-card:hover, .member-unit-lead:hover{ transform:none; }
  .directory-card:hover img, .member-card:hover .member-card-photo, .member-card:hover .member-card-photo img{ transform:none; }
}

/* ------------------------ Symbol images (data-icon="sym:...") ------------ */
[data-icon].has-symbol{ display:block; flex:none; background:none; border-radius:0; opacity:1; }
[data-icon].has-symbol img{ display:block; width:100%; height:100%; object-fit:contain; }
.stat-card-icon.has-symbol{ width:44px; height:44px; margin-bottom:2px; }
.fact-icon.has-symbol{ width:52px; height:52px; }
.trio-card .has-symbol{ width:64px; height:64px; }
.download-box-icon.has-symbol{ width:56px; height:56px; }
.about-feature-icon.has-symbol{ width:44px; height:44px; }
.about-vision-icon.has-symbol{ width:52px; height:52px; }
.reason-index.has-symbol{ width:40px; height:40px; padding-top:0; }
.reasons-inline-item .has-symbol{ width:28px; height:28px; }
.collab-popup-icon.has-symbol{ width:64px; height:64px; }
.service-icon-badge.has-symbol{ padding:8px; }
.services-panel-icon.has-symbol{ width:34px; height:34px; }
.filter-pill .has-symbol{ width:20px; height:20px; }
.collab-popup .has-symbol:not(.collab-popup-icon){ width:20px; height:20px; display:inline-block; vertical-align:middle; }
.profile-info-icon.has-symbol{ width:36px; height:36px; }

/* ------------------------- Collaboration web (home) ---------------------- */
.collab-web-head{ display:flex; align-items:flex-end; justify-content:space-between; gap:24px; flex-wrap:wrap; margin-bottom:24px; }
.collab-web-head > div:first-child{ max-width:62ch; }
.collab-web-actions{ display:flex; align-items:center; gap:18px; flex-wrap:wrap; }
.collab-toggle{ display:inline-flex; align-items:center; gap:10px; cursor:pointer; font-weight:600; font-size:0.92rem; color:var(--ink); user-select:none; }
.collab-toggle input{ position:absolute; opacity:0; width:1px; height:1px; }
.collab-toggle-track{ position:relative; width:44px; height:24px; border-radius:var(--radius-pill); background:var(--line-strong); transition:background .2s var(--ease); flex:none; }
.collab-toggle-track::after{ content:""; position:absolute; top:3px; left:3px; width:18px; height:18px; border-radius:50%; background:var(--paper); box-shadow:0 1px 3px rgba(6,60,62,0.3); transition:transform .2s var(--ease); }
.collab-toggle input:checked + .collab-toggle-track{ background:var(--brand-deep); }
.collab-toggle input:checked + .collab-toggle-track::after{ transform:translateX(20px); }
.collab-toggle input:focus-visible + .collab-toggle-track{ outline:2px solid var(--brand-deep); outline-offset:2px; }
.collab-web-embed{ border:1px solid var(--line-strong); border-radius:var(--radius-md); overflow:hidden; background:var(--surface); box-shadow:0 24px 48px -32px rgba(6,60,62,0.35); }
.collab-web-embed[hidden]{ display:none; }
.collab-web-bar{ display:flex; align-items:center; gap:6px; padding:10px 14px; background:var(--surface-sunk); border-bottom:1px solid var(--line); }
.collab-web-bar span{ width:10px; height:10px; border-radius:50%; background:var(--line-strong); }
.collab-web-bar p{ margin:0 0 0 10px; font-family:var(--font-mono); font-size:0.8rem; color:var(--ink-soft); }
.collab-web-embed iframe{ display:block; width:100%; height:min(72vh,720px); border:0; background:#fff; }
@media (max-width: 640px){ .collab-web-embed iframe{ height:70vh; } }
.website-block{ scroll-margin-top:110px; }
.website-block + .website-block{ margin-top:clamp(56px,8vw,96px); padding-top:clamp(40px,6vw,64px); border-top:1px solid var(--line); }

/* Large call-to-action button (clinical trial: Request feasibility discussion) */
.btn-spotlight{
  padding:20px 34px; font-size:1.15rem; font-weight:700; gap:14px; color:#fff;
  background:var(--theme-grad); background-size:160% 100%; background-position:0 0;
  box-shadow:0 14px 30px -12px rgba(40,123,132,0.6), 0 0 0 0 rgba(65,180,193,0.45);
  transition:transform .2s var(--ease), box-shadow .2s var(--ease), background-position .4s var(--ease);
  animation:spotlight-glow 2.6s ease-in-out infinite;
}
.btn-spotlight:hover{ color:#fff; transform:translateY(-3px); background-position:100% 0; box-shadow:0 20px 38px -12px rgba(40,123,132,0.7); }
.btn-spotlight:focus-visible{ outline:3px solid var(--spark); outline-offset:3px; }
.btn-spotlight-arrow{ display:inline-flex; align-items:center; justify-content:center; width:34px; height:34px; border-radius:50%; background:rgba(255,255,255,0.22); font-size:1.1rem; transition:transform .2s var(--ease); }
.btn-spotlight:hover .btn-spotlight-arrow{ transform:translateX(4px); }
@keyframes spotlight-glow{
  0%,100%{ box-shadow:0 14px 30px -12px rgba(40,123,132,0.6), 0 0 0 0 rgba(65,180,193,0.45); }
  50%{ box-shadow:0 14px 30px -12px rgba(40,123,132,0.6), 0 0 0 10px rgba(65,180,193,0); }
}
@media (max-width: 640px){ .btn-spotlight{ width:100%; white-space:normal; padding:18px 24px; font-size:1.05rem; } }
@media (prefers-reduced-motion: reduce){ .btn-spotlight{ animation:none; } .btn-spotlight:hover, .btn-spotlight:hover .btn-spotlight-arrow{ transform:none; } }

/* ============================== Process flow figure (genomic) ================================ */
.flow-figure{ display:block; border:1px solid var(--line-strong); border-radius:var(--radius-md); overflow:hidden; background:var(--surface); transition:border-color .2s var(--ease); }
.flow-figure:hover{ border-color:var(--brand-deep); }
.flow-figure img{ display:block; width:100%; height:auto; }

/* ============================== Page transitions ================================ */
/* Same-site navigations cross-fade (Chromium browsers; others simply navigate as before).
   The header keeps its own transition name so it stays still while the page changes. */
@view-transition{ navigation:auto; }
.site-header{ view-transition-name:site-header; }
::view-transition-old(root){ animation:page-out .2s var(--ease) both; }
::view-transition-new(root){ animation:page-in .38s var(--ease) both; }
@keyframes page-out{ to{ opacity:0; transform:translateY(-6px); } }
@keyframes page-in{ from{ opacity:0; transform:translateY(12px); } }

/* Heartbeat loader (see CRU.pulse in main.js) */
.pulse-loader{ position:fixed; left:50%; bottom:28px; z-index:1200; display:flex; align-items:center; gap:10px; padding:8px 16px 8px 12px; border-radius:999px; background:rgba(255,255,255,0.97); border:1px solid var(--line-strong); box-shadow:0 14px 34px -14px rgba(6,60,62,0.45); color:var(--brand-deep); font:600 0.74rem/1 var(--font-mono); letter-spacing:.02em; opacity:0; transform:translate(-50%, 10px); transition:opacity .2s var(--ease), transform .2s var(--ease); pointer-events:none; }
.pulse-loader.is-active{ opacity:1; transform:translate(-50%, 0); }
.pulse-loader svg{ width:68px; height:20px; overflow:visible; }
.pulse-loader path{ fill:none; stroke:currentColor; stroke-width:2.4; stroke-linecap:round; stroke-linejoin:round; }
.pulse-trace-bg{ opacity:.16; }
.pulse-trace{ stroke:var(--brand); stroke-dasharray:32 68; animation:pulse-sweep 1.25s linear infinite; }
@keyframes pulse-sweep{ from{ stroke-dashoffset:100; } to{ stroke-dashoffset:0; } }

@media (prefers-reduced-motion: reduce){
  @view-transition{ navigation:none; }
  .pulse-trace{ animation:none; stroke-dasharray:none; }
}

/* ============================== Document preview dialog (downloads) ================================ */
.doc-preview{ width:min(1000px, calc(100vw - 32px)); height:calc(100vh - 48px); max-width:none; max-height:none; padding:0; border:0; border-radius:var(--radius-md); overflow:hidden; background:var(--surface); box-shadow:0 30px 70px -20px rgba(6,60,62,0.5); }
.doc-preview[open]{ display:flex; flex-direction:column; animation:doc-preview-in .25s var(--ease); }
.doc-preview::backdrop{ background:rgba(40,123,132,0.55); backdrop-filter:blur(3px); }
.doc-preview-head{ display:flex; align-items:center; justify-content:space-between; gap:16px; padding:14px 16px 14px 24px; border-bottom:1px solid var(--line); border-top:4px solid var(--brand); }
.doc-preview-title{ font-family:var(--font-display); font-size:1.1rem; font-weight:600; color:var(--ink); margin:0; }
.doc-preview-actions{ display:flex; align-items:center; gap:8px; }
.doc-preview-actions .btn svg{ width:15px; height:15px; }
.doc-preview-close{ width:38px; height:38px; border-radius:50%; border:1px solid var(--line-strong); background:var(--surface); color:var(--ink-soft); display:flex; align-items:center; justify-content:center; cursor:pointer; }
.doc-preview-close:hover{ color:var(--ink); background:var(--surface-sunk); }
.doc-preview-close svg{ width:16px; height:16px; }
.doc-preview-frame{ flex:1; width:100%; border:0; background:var(--surface-sunk); }
@keyframes doc-preview-in{ from{ opacity:0; transform:translateY(14px) scale(.98); } }
@media (prefers-reduced-motion: reduce){ .doc-preview[open]{ animation:none; } }

/* Contact and chat forms: hidden spam-trap field, and the result line under the button */
.form-trap{ position:absolute; left:-10000px; width:1px; height:1px; overflow:hidden; }
.form-status{ margin-top:10px; font-size:0.92rem; color:var(--ink-soft); min-height:1.4em; }
.form-status.is-ok{ color:var(--teal-deep); font-weight:600; }
.form-status.is-error{ color:var(--alert); }
