/* ==========================================================================
   RAMBAM AG — stylesheet for both pages

   The two pages share everything except how they scroll, which is switched
   by the class on <html>:
     class="page-home"       sheets stack and snap as you scroll
     class="page-structure"  fixed viewport, header stays, content scrolls
                             inside .scroll-area

   Contents
     1. Tokens
     2. Base
     3. Layout — sheets, scroll area
     4. Components — eyebrow, buttons, nav, footer, reveal
     5. Home page
     6. Structure page
   ========================================================================== */

/* ==========================================================================
   1. TOKENS
   ========================================================================== */

:root{
  /* colour */
  --brand: #0061F8;
  --brand-deep: #0A2A6B;
  --brand-ink: #0B1B3A;
  --brand-soft: #EAF1FF;
  --ink: #101828;
  --ink-soft: #5A6478;
  --ink-faint: #98A0B0;

  --page: #0061F8;
  --paper: #FFFFFF;
  --tint: #F3F6FB;
  --line: #E4E7EC;
  --wire: #C3D4F0;

  /* type */
  --font-display: 'Switzer', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;

  /* spacing */
  --gap: 10px;
  --sheet-gap: 22px;
  --nav-h: 76px;
  --stack-top: calc(var(--gap) + var(--nav-h) + var(--sheet-gap));
  --pad: clamp(24px, 3vw, 52px);

  /* radius */
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
}

@media (max-width: 640px){
  :root{ --radius-lg: 20px; }
}

/* ==========================================================================
   2. BASE
   ========================================================================== */

*{ box-sizing: border-box; margin: 0; padding: 0; }

html{ scroll-behavior: smooth; }
html.page-home{ scroll-snap-type: none; }

body{
  font-family: var(--font-display);
  background: var(--page);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  padding: var(--gap);
}

a{ color: inherit; }
ul{ list-style: none; }
img{ max-width: 100%; display: block; }

:focus-visible{
  outline: 2px solid #fff;
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  html.page-home{ scroll-snap-type: none; }
  *{ animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* structure: page itself never scrolls, .scroll-area does */
html.page-structure,
html.page-structure body{ height: 100%; }
html.page-structure body{ overflow: hidden; }


/* ==========================================================================
   3. LAYOUT
   ========================================================================== */

.bento{
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--sheet-gap);
}

.block{
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: var(--pad);
  position: relative;
}

/* --- home: sheets that stack and snap --- */


.page-home .block:not(.nav-block){
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  scroll-margin-top: calc(var(--stack-top) + 10px);
}

.page-home .bento > .block.stack{
  position: sticky;
  top: var(--stack-top);
  height: calc(100dvh - var(--stack-top) - var(--gap));
  max-height: calc(100dvh - var(--stack-top) - var(--gap));
  overflow-y: auto;
  scroll-snap-align: start;
  scroll-snap-stop: normal;
  scroll-margin-top: var(--stack-top);
}


.page-home .bento > .block.stack:nth-of-type(2){ z-index: 2; }
.page-home .bento > .block.stack:nth-of-type(3){ z-index: 3; }
.page-home .bento > .block.stack:nth-of-type(4){ z-index: 4; }
.page-home .bento > .block.stack:nth-of-type(5){ z-index: 5; }
.page-home .bento > .block.stack:nth-of-type(6){ z-index: 6; }
.page-home .bento > .block.stack:nth-of-type(7){ z-index: 7; }

/* closing screen: contact + footer share one viewport */
.closing{

  position: sticky;
  top: var(--stack-top);
  z-index: 8;
  height: calc(100dvh - var(--stack-top) - var(--gap));
  max-height: calc(100dvh - var(--stack-top) - var(--gap));
  overflow-y: auto;
  min-height: calc(100dvh - var(--stack-top) - var(--gap));
  display: flex;
  flex-direction: column;
  gap: var(--gap);
  background: linear-gradient(to bottom, rgba(0, 97, 248, 0) 0%, var(--page) 60%);
  scroll-snap-align: start;
  scroll-snap-stop: normal;
  scroll-margin-top: var(--stack-top);
}
.closing > #contact{ flex: 1; }
.closing > .footer-block{ flex: 0 0 auto; }

/* the last sheet is never covered, so it needs no shade */


/* too short or too narrow to pin a whole sheet: fall back to normal flow */
@media (max-height: 720px), (max-width: 1360px){
  html.page-home{ scroll-snap-type: none; }

  .page-home .bento > .block.stack{
    position: relative;
    top: auto;
    height: auto;
    max-height: none;
    min-height: 0;
    overflow: visible;
    scroll-snap-align: none;
    scroll-snap-stop: normal;
  }

  .page-home .block:not(.nav-block){
    overflow: visible;
    justify-content: flex-start;
  }

  .closing{
    position: relative;
    top: auto;
    height: auto;
    max-height: none;
    min-height: 0;
    overflow: visible;
    scroll-snap-align: none;
    scroll-snap-stop: normal;
  }

  /* no scroll-triggered animation below this size — show content immediately */
  .reveal{
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* --- structure: fixed frame, inner scroll --- */
.page-structure .bento{ height: 100%; }
.page-structure .bento > .nav-block{ flex: 0 0 auto; }

.scroll-area{
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: var(--sheet-gap);
  scrollbar-width: thin;
  scrollbar-color: rgba(11,27,58,.25) transparent;
}
.scroll-area::-webkit-scrollbar{ width: 8px; }
.scroll-area::-webkit-scrollbar-track{ background: transparent; }
.scroll-area::-webkit-scrollbar-thumb{
  background: rgba(11,27,58,.18);
  border-radius: 999px;
}
.scroll-area::-webkit-scrollbar-thumb:hover{ background: rgba(11,27,58,.3); }

/* ==========================================================================
   4. COMPONENTS
   ========================================================================== */

/* --- eyebrow --- */
.eyebrow{
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.eyebrow::after{
  content: '';
  width: 56px; height: 1px;
  background: rgba(11,27,58,.16);
}
/* the centred eyebrow gets a rule on both sides */
.page-head .eyebrow::before{
  content: '';
  width: 56px; height: 1px;
  background: rgba(11,27,58,.16);
}
.eyebrow.on-dark{ color: #8FBAFF; }
.eyebrow.on-dark::after{ background: rgba(255,255,255,.25); }

/* --- block head --- */
.block-head{ margin-bottom: clamp(24px, 3vh, 40px); }
.block-head h2{
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 500;
  letter-spacing: -.025em;
  margin-top: 14px;
  max-width: 22ch;
  color: var(--brand-ink);
}

/* --- buttons: one shape everywhere --- */
.btn{
  display:inline-flex; align-items:center; gap:10px;
  font-family: var(--font-display);
  font-size:14.5px; font-weight:500;
  padding:13px 24px; border-radius:10px;
  text-decoration:none; border:1px solid transparent;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
  cursor:pointer;
}
.btn .arw{ transition: transform .18s ease; }
.btn:hover .arw{ transform: translateX(4px); }
.btn-dark{ background: var(--brand-ink); color:#FFFFFF; }
.btn-dark:hover{ background: var(--brand); color:#FFFFFF; }
.btn-outline{ border-color: var(--line); color: var(--ink); background:transparent; }
.btn-outline:hover{ border-color: var(--brand); color: var(--brand); }
.btn-sm{ padding:11px 20px; font-size:13.5px; }

/* --- nav: identical on both pages, only the positioning differs --- */
.nav-block{
  position: relative;
  z-index: 60;
  min-height: var(--nav-h);
  padding: 14px 14px 14px clamp(22px, 2vw, 34px);
  border-radius: var(--radius-lg);
  display:grid; grid-template-columns: 1fr auto 1fr; align-items:center; gap:20px;
}
.nav-block .btn{ padding:12px 24px; font-size:14px; }
.nav-left{ justify-self:start; }
.nav-center{ justify-self:center; }
.nav-right{ justify-self:end; }
.logo-placeholder{ display:flex; align-items:center; gap:10px; }
a.logo-placeholder{ text-decoration:none; }
.logo-placeholder .mark{
  width:28px; height:28px; border:1.5px dashed rgba(11,27,58,.28); border-radius:7px;
  display:flex; align-items:center; justify-content:center;
  font-family: var(--font-mono); font-size:9px; color: var(--brand-ink); background: var(--tint);
  overflow:hidden;
}
/* once a real logo is in place the dashed placeholder frame goes away */
.logo-placeholder .mark:has(img){
  border:0; background:transparent; width:auto; height:32px;
}
.logo-placeholder .mark img{ height:100%; width:auto; object-fit:contain; }
.logo-placeholder .label{
  font-family: var(--font-mono); font-size:10.5px; letter-spacing:.08em; text-transform:uppercase; color: var(--ink-soft);
}
.nav-center ul{ display:flex; gap:30px; }
.nav-center a{ font-size:14.5px; text-decoration:none; color: var(--ink-soft); transition:color .15s ease; }
.nav-center a:hover{ color: var(--ink); }
.nav-center a[aria-current="page"]{
  color: var(--brand); font-weight:500;
  background: var(--brand-soft); border-radius:8px;
  padding:8px 16px; margin:-8px 0;
}
/* the contact button lives in the header on desktop, in the menu on mobile */
.nav-contact{ display: none; }

/* --- burger --- */
.nav-toggle{
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after{
  content: '';
  position: absolute;
  width: 18px; height: 1.8px;
  background: var(--brand-ink);
  border-radius: 2px;
  transition: transform .2s ease, background .2s ease;
}
.nav-toggle-bars{ top: 50%; left: 50%; margin: -.9px 0 0 -9px; }
.nav-toggle-bars::before{ top: -6px; left: 0; }
.nav-toggle-bars::after{ top: 6px; left: 0; }

/* the burger becomes a cross while the menu is open */
.nav-toggle[aria-expanded="true"] .nav-toggle-bars{ background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before{ transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after{ transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 820px){
  .nav-block{
    grid-template-columns: 1fr auto;
    align-items: center;
    gap:0;
  }
  .nav-left{ grid-row: 1; grid-column: 1; }
  .nav-right{ grid-row: 1; grid-column: 2; display: flex; align-items: center; gap: 10px; }
  .nav-center{ grid-row: 2; }
.nav-center{ line-height: 0; }
  .logo-placeholder .mark:has(img){ height: 24px; }

  .nav-toggle{ display: block; }
  .nav-right > .btn{ display: none; }
  .nav-contact{ display: block; padding-top: 10px; }
  .nav-contact .btn{ width: 100%; justify-content: center; }

  /* the menu opens as a second row inside the header */
  .nav-center{
    grid-column: 1 / -1;
    justify-self: stretch;
    display: block;
    overflow: hidden;
    max-height: 0;
    transition: max-height .25s ease, margin-top .25s ease;
  }
  .nav-center.is-open{
    max-height: 200px;
    margin-top: 14px;
  }
  .nav-center ul{
    padding-top: 10px;
    flex-direction: column;
    gap: 0;
    border-top: 1px solid var(--line);
  }
  .nav-block{
    padding: 14px;
  }

  .nav-center li a{
    display: block;
    padding: 20px 24px;
    font-size: 16px;
    border-radius: 10px;
  }
  .nav-center a[aria-current="page"]{
    display: inline-block;
    margin: 6px 0;
  }
  .nav-center a[aria-current="page"]{
    padding: 20px 24px;

  }
}



/* home keeps the header pinned while the sheets slide underneath */
.page-home .nav-block{ position: sticky; top: var(--gap); }

/* --- contact modal --- */
.modal{
  border: 0;
  padding: 0;
  background: transparent;
  max-width: min(560px, calc(100vw - var(--gap) * 4));
  width: 100%;
  margin: auto;
  overflow: visible;
}
.modal::backdrop{
  background: rgba(11,27,58,.55);
  backdrop-filter: blur(3px);
}

.modal-card{
  position: relative;
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 44px);
  max-height: calc(100dvh - var(--gap) * 6);
  overflow-y: auto;
}

.modal-card h2{
  font-size: clamp(26px, 3.2vw, 34px);
  font-weight: 500;
  letter-spacing: -.025em;
  color: var(--brand-ink);
  margin: 14px 0 clamp(22px, 3vh, 30px);
}

.modal-close{
  position: absolute;
  top: 18px; right: 18px;
  width: 34px; height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink-soft);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .15s ease, color .15s ease;
}
.modal-close:hover{ border-color: var(--brand); color: var(--brand); }

.modal-details{
  margin-top: clamp(24px, 3vh, 32px);
  padding-top: clamp(18px, 2.4vh, 24px);
  border-top: 1px solid var(--line);
}
.modal-details li{ padding: 10px 0; }
.modal-details .k{
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  display: block;
  margin-bottom: 5px;
}
.modal-details .v{ font-size: 15px; }
.modal-details a{ color: var(--brand); text-decoration: none; }
.modal-details a:hover{ text-decoration: underline; }

/* --- footer --- */
.footer-block{
  background: var(--brand-ink);
  color: rgba(255,255,255,.72);
  padding: 0;
  justify-content: center;
}
.footer-main{
  display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:20px;
  padding: 20px var(--pad);
}
.footer-block .logo-placeholder .mark{ border-color: rgba(255,255,255,.5); color:#fff; background: rgba(255,255,255,.08); }
/* a real logo in the footer loses the placeholder frame too */
.footer-block .logo-placeholder .mark:has(img){ border:0; background:transparent; width:auto; height:32px; }
.footer-block .logo-placeholder .label{ color: rgba(255,255,255,.7); }
.footer-nav{ display:flex; align-items:center; gap:28px; flex-wrap:wrap; }
.footer-nav a{ font-size:14px; text-decoration:none; color: rgba(255,255,255,.78); transition:color .15s ease; display:inline-flex; align-items:center; gap:8px; }
.footer-nav a:hover{ color:#fff; }
.footer-nav .mail-ico{ opacity:.75; }
.footer-bottom{
  border-top:1px solid rgba(255,255,255,.12); padding:14px var(--pad);
  display:flex; justify-content:center; align-items:center; text-align:center;
}
.footer-bottom .label{ font-family: var(--font-mono); font-size:11px; color: rgba(255,255,255,.42); }

/* --- reveal on scroll --- */
.reveal{
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .55s cubic-bezier(.22,.61,.36,1),
              transform .55s cubic-bezier(.22,.61,.36,1);
  transition-delay: var(--d, 0ms);
}
.reveal.is-visible{ opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce){
  .reveal{ opacity: 1; transform: none; transition: none; }
}

/* ==========================================================================
   5. HOME PAGE
   ========================================================================== */

/* --- hero --- */
.hero{ justify-content:center; }
.hero-art{
  position:absolute; inset:0; z-index:0; pointer-events:none;
  overflow: hidden;
  border-radius: inherit;
}
.hero-art img{ width:100%; height:100%; object-fit:cover; object-position: right center; }
.hero-art::after{
  content:''; position:absolute; inset:0;
  background: linear-gradient(100deg,
    rgba(255,255,255,.97) 0%, rgba(255,255,255,.92) 34%,
    rgba(255,255,255,.55) 52%, rgba(255,255,255,0) 70%);
}
@media (max-width: 1000px){
  .hero-art img{ object-position: 78% center; }
  .hero-art::after{
    background: linear-gradient(180deg, rgba(255,255,255,.96) 0%, rgba(255,255,255,.88) 45%, rgba(255,255,255,.6) 100%);
  }
}
.hero-inner{ position:relative; z-index:1; max-width: 780px; }
.hero h1{
  font-size: clamp(40px, 6vw, 78px);
  font-weight:500; line-height:1.02; letter-spacing:-0.035em;
  max-width: 14ch; color: var(--brand-ink);
}
.hero p{
  font-size: clamp(16px, 1.7vw, 19px); color: var(--ink-soft);
  max-width: 42ch; margin: clamp(22px, 3vh, 34px) 0 clamp(24px, 3.4vh, 36px);
}
.hero-actions{ display:flex; gap:12px; flex-wrap:wrap; }
/* --- about --- */
.about-grid{
  display:grid; grid-template-columns: minmax(0,1fr) minmax(0,1.05fr);
  gap: clamp(28px, 5vw, 80px); align-items:start;
}
@media (max-width: 900px){ .about-grid{ grid-template-columns:1fr; gap:28px; } }
.about-grid h2{
  font-size: clamp(28px, 3.6vw, 44px); font-weight:500; letter-spacing:-0.03em;
  color: var(--brand-ink); max-width: 14ch; margin-top:16px; line-height:1.1;
}
.about-text{ border-left:3px solid var(--brand); padding-left: clamp(20px, 2.4vw, 32px); }
.about-text .lead{
  font-size: clamp(17px, 1.85vw, 21px); line-height:1.5; color: var(--brand-ink);
  margin-bottom: clamp(16px, 2.2vh, 24px);
}
.about-text p:not(.lead){ font-size:14.5px; color: var(--ink-soft); margin-bottom:14px; }
.about-text p:last-child{ margin-bottom:0; }
.about-text strong{ color: var(--ink); font-weight:600; }

.stats{ display:grid; grid-template-columns:repeat(3,1fr); gap:var(--gap); margin-top: auto; }
@media (max-width: 700px){ .stats{ grid-template-columns:1fr; } }
.stat{
  background: var(--tint); border-radius: var(--radius-md);
  padding: clamp(20px, 2.6vh, 30px) clamp(20px, 2vw, 28px);
  display:flex; flex-direction:column; justify-content:flex-end;
}
.stat strong{
  display:block; font-size: clamp(30px, 3.4vw, 44px); font-weight:500;
  letter-spacing:-0.035em; color: var(--brand); line-height:1;
}
.stat span{ font-size:14px; color: var(--ink-soft); margin-top:10px; max-width:26ch; }
/* --- approach --- */
.pillars{
  display:grid; grid-template-columns:repeat(3,1fr); gap:var(--gap);
  align-items: stretch;
}
@media (max-width: 860px){ .pillars{ grid-template-columns:1fr; } }
.pillar{
  background: var(--tint); border-radius: var(--radius-md);
  border: 1px solid var(--line);
  overflow:hidden; display:flex; flex-direction:column;
  min-height: 0;
}
.pillar .ph{
  background: #E3E9F3; border-bottom:1px solid rgba(11,27,58,.06);
  flex: 0 0 auto; aspect-ratio: 1 / 1;
  /* квадрат тянется за шириной колонки — без потолка он вырастает
     выше листа и срезает текст под собой */
  max-height: clamp(190px, 34vh, 360px);
  display:flex; align-items:center; justify-content:center;
  font-family: var(--font-mono); font-size:10.5px; letter-spacing:.08em;
  text-transform:uppercase; color: var(--ink-faint);
  overflow: hidden;
}
.pillar .ph img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.pillar .body{ flex: 1; padding: clamp(18px, 2.4vh, 26px) clamp(20px, 2vw, 28px); }
.pillar h3{ font-size:19px; font-weight:500; letter-spacing:-0.015em; margin-bottom:8px; }
.pillar p{ font-size:14px; color: var(--ink-soft); }
/* --- partners --- */
.logo-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:var(--gap); }
@media (max-width: 900px){ .logo-grid{ grid-template-columns:repeat(2,1fr); } }
.logo-cell{
  background: var(--brand-ink); border-radius: var(--radius-md);
  min-height: clamp(110px, 16vh, 170px);
  display:flex; align-items:center; justify-content:center; padding:28px 32px; text-align:center;
  font-family: var(--font-mono); font-size:10.5px; letter-spacing:.08em; text-transform:uppercase;
  color: rgba(255,255,255,.42);
  transition: background .18s ease;
}
.logo-cell:hover{ background:#16274d; }
/* fill the card generously — these are the whole point of the section */
.logo-cell img{
  max-width: 100%;
  max-height: clamp(60px, 9vh, 96px);
  width: auto;
  object-fit: contain;
}
/* --- team --- */
.team-head{ display:flex; align-items:flex-end; justify-content:space-between; gap:24px; flex-wrap:wrap; }
.team-nav{ display:flex; gap:8px; }
.team-nav button{
  width:44px; height:44px; border-radius:999px; border:1px solid var(--line);
  background:#fff; color: var(--brand-ink); cursor:pointer;
  display:flex; align-items:center; justify-content:center;
  transition: background .15s ease, border-color .15s ease, color .15s ease, opacity .15s ease;
}
.team-nav button:hover:not(:disabled){ background: var(--brand); border-color: var(--brand); color:#fff; }
.team-nav button:disabled{ opacity:.35; cursor:default; }

.team-track{
  display:flex; gap:var(--gap);
  overflow-x:auto; scroll-snap-type:x mandatory;
  scroll-behavior:smooth; padding-bottom:4px;
  scrollbar-width:none;
}
.team-track::-webkit-scrollbar{ display:none; }
.member{
  flex: 0 0 calc((100% - var(--gap) * 3) / 4);
  scroll-snap-align:start;
  position:relative; overflow:hidden;
  background: var(--tint); border-radius: var(--radius-md);
  display:flex; flex-direction:column;
  text-decoration:none; color:inherit;
  transition: background .18s ease;
}
@media (max-width: 1200px){ .member{ flex-basis: calc((100% - var(--gap) * 2) / 3); } }
@media (max-width: 900px){ .member{ flex-basis: calc((100% - var(--gap)) / 2); } }
@media (max-width: 600px){ .member{ flex-basis: 82%; } }
.member:hover{ background:#E8EDF5; }

.member .photo{
  width:100%; aspect-ratio: 4 / 5;
  background:#E0E6EE; overflow:hidden; flex:1; min-height:0;
  display:flex; align-items:center; justify-content:center;
  font-family: var(--font-mono); font-size:10px; letter-spacing:.06em; color: var(--ink-faint);
}
.member .photo img{ width:100%; height:100%; object-fit:cover; }

.member .body{
  padding: clamp(14px, 2vh, 20px) clamp(16px, 1.6vw, 22px) clamp(16px, 2.2vh, 22px);
  display:flex; align-items:flex-end; justify-content:space-between; gap:12px;
}
.member .body .role{
  font-family: var(--font-mono); font-size:10px; letter-spacing:.08em; text-transform:uppercase;
  color: var(--ink-faint); display:block; margin-bottom:6px;
}
.member .body h3{ font-size:18px; font-weight:500; letter-spacing:-0.02em; line-height:1.2; }
.member .li{
  flex-shrink:0; width:32px; height:32px; border-radius:8px;
  background:#fff; color: var(--brand);
  display:flex; align-items:center; justify-content:center;
  transition: background .18s ease, color .18s ease;
}
.member:hover .li{ background: var(--brand); color:#fff; }
/* --- contact --- */
.contact-grid{ display:grid; grid-template-columns:1.15fr 1fr; gap: clamp(32px, 4vw, 64px); align-items:start; }
@media (max-width: 900px){ .contact-grid{ grid-template-columns:1fr; gap:32px; } }
.contact-details li{ padding:16px 0; border-bottom:1px solid var(--line); }
.contact-details li:first-child{ padding-top:0; }
.contact-details li:last-child{ border-bottom:0; }
.contact-details .k{
  font-family: var(--font-mono); font-size:10.5px; letter-spacing:.1em; text-transform:uppercase;
  color: var(--ink-faint); display:block; margin-bottom:7px;
}
.contact-details .v{ font-size:16.5px; }
.contact-details a{ color: var(--brand); text-decoration:none; }
.contact-details a:hover{ text-decoration:underline; }

.field{ margin-bottom:16px; }
.field label{
  display:block; font-family: var(--font-mono); font-size:10.5px; letter-spacing:.1em; text-transform:uppercase;
  color: var(--ink-soft); margin-bottom:8px;
}
.field label .req{ color: var(--brand); }
.field input, .field textarea{
  width:100%; font-family: var(--font-display); font-size:15.5px; color: var(--ink);
  background: var(--tint); border:1px solid transparent; border-radius:12px; padding:13px 16px;
  transition: border-color .15s ease, background .15s ease;
}
.field input:focus, .field textarea:focus{ outline:none; background:#fff; border-color: var(--brand); }
.field textarea{ min-height: clamp(96px, 13vh, 150px); resize:vertical; }

/* let the grids fill a full-height sheet */
@media (min-width: 901px) and (min-height: 721px){
  .page-home .bento > .block.stack .pillars,
  .page-home .bento > .block.stack .logo-grid,
  .page-home .bento > .block.stack .team-track{
    flex: 1;
    align-content: stretch;
    min-height: 0;
  }
  /* внутри закреплённого листа высоту диктует вьюпорт, а не картинка:
     текст берёт сколько нужно, артворк забирает остаток */
  .page-home .bento > .block.stack .pillars{ grid-template-rows: 1fr; }
  .page-home .bento > .block.stack .pillar .ph{
    aspect-ratio: auto;
    flex: 1 1 auto;
    min-height: 120px;
    max-height: none;
  }
  .page-home .bento > .block.stack .pillar .body{ flex: 0 0 auto; }
  .closing > #contact{ justify-content: center; }
}

/* ==========================================================================
   6. STRUCTURE PAGE
   ========================================================================== */

/* --- page head --- */
.page-head{ text-align:center; padding-bottom: clamp(28px, 4vh, 48px); }
.page-head h1{
  font-size: clamp(30px, 4.4vw, 52px); font-weight:500; letter-spacing:-0.03em;
  color: var(--brand-ink); margin-top:16px;
}
.page-head p{
  color: var(--ink-soft); max-width: 56ch; margin: 14px auto 0; font-size:16px;
}
/* --- chart primitives --- */
.chart{ max-width: 1240px; margin:0 auto; }
.row-center{ display:flex; justify-content:center; }

.wire{ width:2px; height:26px; background: var(--wire); margin:0 auto; }
.wire.dashed{
  width:0; height:26px; margin:0 auto;
  border-left:2px dashed var(--wire); background:none;
}

.node{ border-radius: var(--radius-md); padding:16px 24px; text-align:center; }
.node .kicker{
  font-family: var(--font-mono); font-size:10.5px; letter-spacing:.1em; text-transform:uppercase;
  display:block; margin-bottom:5px;
}
.node h2{ font-size:17px; font-weight:600; letter-spacing:-0.01em; }
.node .sub{ font-size:13.5px; margin-top:3px; }

.node-holding{ background: var(--brand-ink); color:#fff; min-width:min(340px, 100%); padding:22px 28px 20px; }
.holding-logo{
  width:46px; height:46px; margin:0 auto 14px;
  border:1.5px dashed rgba(255,255,255,.45); border-radius:10px;
  display:flex; align-items:center; justify-content:center;
  font-family: var(--font-mono); font-size:10px; letter-spacing:.06em;
  color: rgba(255,255,255,.75); background: rgba(255,255,255,.08);
  overflow:hidden;
}
.holding-logo:has(img){
  border:0; background:transparent; width:auto; height:48px;
}
.holding-logo img{ height:100%; width:auto; object-fit:contain; }
.node-holding .kicker{ color: rgba(255,255,255,.55); }
.node-holding .sub{ color: rgba(255,255,255,.72); }

.node-csoo{
  border:1.5px solid var(--brand); background:#fff;
  width: min(760px, 100%); padding:20px 28px 22px;
}
.node-csoo .kicker{ color: var(--brand); }
.node-csoo .node-note{
  font-size:14px; color: var(--ink-soft); line-height:1.55;
  max-width: 60ch; margin: 10px auto 0;
}

/* governance */
.gov{
  border:1.5px dashed var(--wire); border-radius: var(--radius-md);
  padding:16px; margin:0 auto;
}
.gov-label{
  font-family: var(--font-mono); font-size:10.5px; letter-spacing:.1em; text-transform:uppercase;
  color: var(--ink-faint); text-align:center; margin-bottom:12px;
}
.gov-items{ display:grid; grid-template-columns:repeat(6,1fr); gap:8px; }
.gov-items span{
  background: var(--tint); border-radius:10px; padding:14px 10px;
  display:flex; align-items:center; justify-content:center; gap:9px;
  text-align:center; font-size:13.5px; font-weight:500; color: var(--brand-ink);
}
.gov-items svg{ width:19px; height:19px; flex-shrink:0; color: var(--brand); }
@media (max-width: 1100px){ .gov-items span{ font-size:13px; gap:7px; } }
@media (max-width: 900px){ .gov-items{ grid-template-columns:repeat(3,1fr); } }
@media (max-width: 520px){ .gov-items{ grid-template-columns:repeat(2,1fr); } }
/* --- process chain --- */
/* branch down to the chain */
.branch{ display:none; }

/* ---------- process chain ---------- */
/* ---------- process chain: stacked, one stage per row ---------- */
.chain{ display:flex; flex-direction:column; }

.stage{
  border:1px solid var(--line); border-radius: var(--radius-md);
  background:#fff; overflow:hidden;
  display:grid; grid-template-columns: minmax(240px, 300px) 1fr;
  align-items:stretch;
}
.stage.is-core{ border-color: var(--brand); }

.stage-head{ padding:24px 26px; background: var(--brand-ink); color:#fff; }
.stage.is-core .stage-head{ background: var(--brand); }
.stage-head .step{
  font-family: var(--font-mono); font-size:10.5px; letter-spacing:.12em; text-transform:uppercase;
  color: rgba(255,255,255,.6); display:block; margin-bottom:8px;
}
.stage-head h3{ font-size:20px; font-weight:600; letter-spacing:-0.015em; }
.stage-head .loc{ font-family: var(--font-mono); font-size:11px; opacity:.8; margin-top:6px; line-height:1.5; }

.stage-body{
  padding:24px 26px;
  display:grid; grid-template-columns:repeat(auto-fit, minmax(210px, 1fr)); gap: 22px 30px;
  align-content:start;
}
.stage-body .group{ min-width:0; }
.stage-body h5{
  font-family: var(--font-mono); font-size:10px; letter-spacing:.06em; text-transform:uppercase;
  color: var(--brand); margin:0 0 8px;
}
.stage-body ul li{
  font-size:13.5px; color: var(--ink-soft); padding:3px 0 3px 13px; position:relative;
}
.stage-body ul li::before{
  content:''; position:absolute; left:0; top:11px; width:4px; height:4px; border-radius:50%; background: var(--wire);
}

.stage-foot{
  grid-column: 1 / -1;
  padding:14px 26px; border-top:1px solid var(--line); background: var(--tint);
  font-size:13px; color: var(--ink-soft); line-height:1.5;
}
.stage-foot.mono{ font-family: var(--font-mono); font-size:11.5px; }

/* arrow between stacked stages */
.arrow{
  display:flex; align-items:center; justify-content:center;
  color: var(--brand); padding: 10px 0;
}
.arrow svg{ width:16px; height:16px; transform: rotate(90deg); }

@media (max-width: 820px){
  .stage{ grid-template-columns: 1fr; }
  .stage-body{ grid-template-columns:1fr; gap:18px; }
}
/* --- key points --- */
/* legend */
.legend{
  margin-top: clamp(32px, 5vh, 56px);
  border-top:1px solid var(--line); padding-top: clamp(28px, 4vh, 44px);
}
.legend h4{
  font-family: var(--font-mono); font-size:10.5px; letter-spacing:.1em; text-transform:uppercase;
  color: var(--ink-faint); margin-bottom:18px;
}
.key-points{ display:grid; grid-template-columns:1fr 1fr; gap:0 clamp(28px, 4vw, 56px); }
@media (max-width: 860px){ .key-points{ grid-template-columns:1fr; } }
.key-points li{
  display:flex; gap:12px; padding:11px 0; border-top:1px solid var(--line);
  font-size:14px; color: var(--ink-soft);
}
.key-points li::before{
  content:'✓'; color: var(--brand); font-family: var(--font-mono); flex-shrink:0;
}
/* --- mobile: the chart becomes a vertical outline --- */
@media (max-width: 980px){
  .wire, .wire.dashed{ height:20px; }
  .node-holding, .node-csoo{ width:100%; }
  .mobile-step{
    font-family: var(--font-mono); font-size:10px; letter-spacing:.1em; text-transform:uppercase;
    color: var(--ink-faint); text-align:center; margin: 18px 0 10px; display:block;
  }
}
@media (min-width: 981px){ .mobile-step{ display:none; } }

/* --- Netlify honeypot: hidden from people, visible to bots --- */
.hp{
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* --- thank-you modal: title + text, closed with the X --- */
.modal-card--center{ text-align: center; }
.modal-card--center h2{ margin: 8px 0 12px; }
.thanks-text{
  font-size: 15.5px;
  color: var(--ink-soft);
  max-width: 34ch;
  margin: 0 auto;
}
.nav-block{
  box-shadow: 0 2px 12px rgba(11, 27, 58, .25);
}

/* ==========================================================================
   STRUCTURE PAGE ON NARROW SCREENS

   The inner scroll area works on a desktop but is awkward on a phone: 100dvh
   jumps as the address bar hides, momentum feels wrong, and a scrollbar inside
   a block is unexpected. Below 900px the page scrolls normally instead, with
   the header pinned — the same behaviour as the home page.
   ========================================================================== */
@media (max-width: 900px){
  html.page-structure,
  html.page-structure body{ height: auto; }
  html.page-structure body{ overflow: visible; }

  .page-structure .bento{ height: auto; }

  .page-structure .nav-block{
    position: sticky;
    top: var(--gap);
  }

  .scroll-area{
    display: block;
    overflow: visible;
    min-height: 0;
    border-radius: 0;
  }
  /* the flex gap is gone with display:block — space the children instead */
  .scroll-area > * + *{ margin-top: var(--sheet-gap); }
}

/* ==========================================================================
   HEADER THAT MERGES WITH THE TOP EDGE

   At rest the header floats as a card inside the blue frame. Once the page is
   scrolled, .is-stuck is added and it grows to the full width, flush against
   the top of the screen, keeping only its bottom corners rounded.
   ========================================================================== */
@media (max-width: 900px){
  .nav-block{
    transition: margin .22s ease, border-radius .22s ease, top .22s ease;
  }

  .nav-block.is-stuck{
    top: 0;
    margin: calc(-1 * var(--gap)) calc(-1 * var(--gap)) 0;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  }
}

@media (prefers-reduced-motion: reduce){
  .nav-block{ transition: none; }
}
/* ===== FIX: pillars — равные карточки и стабильная картинка ===== */
.pillars{
  align-items:stretch;              /* работает и для grid, и для flex */
}

.pillar{
  display:flex;
  flex-direction:column;
  height:100%;
}

/* медиа-блок: фиксированная пропорция БЕЗ aspect-ratio (Safari) */
.pillar .ph{
  position:relative;
  width:100%;
  height:0;
  padding-bottom:75%;               /* 4:3 — поменяй на 66.67% для 3:2 */
  overflow:hidden;
  flex:0 0 auto;
  aspect-ratio:auto;                /* глушим унаследованное правило */
}

.pillar .ph img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  max-width:none;
  object-fit:cover;
  object-position:center;
  display:block;
}

/* текст занимает остаток высоты — низ карточек выравнивается */
.pillar .body{
  flex:1 1 auto;
}

/* заглушка «Image» на карточках без картинки */
.pillar .ph:not(:has(img)){
  height:auto;
  padding-bottom:0;
  min-height:260px;
  display:flex;
  align-items:center;
  justify-content:center;
}
.arrow-down{
  display:flex;
  justify-content:center;
  align-items:center;
  width:100%;
  margin:18px 0;
  color:#C3D4F0;
  transform:none;
}
.arrow-down svg{
  width:24px;
  height:56px;
  display:block;
  transform:none;
}
/* ==========================================================================
   7. ABOUT PAGE
   ========================================================================== */

/* --- intro + molecule --- */
.group-grid{
  display:grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  gap: clamp(28px, 5vw, 80px); align-items:center;
  height:100%;
}
.group-intro h1{
  font-size: clamp(34px, 4.6vw, 58px); font-weight:500; line-height:1.05;
  letter-spacing:-0.035em; color: var(--brand-ink);
  max-width: 14ch; margin-top:16px;
}
.group-intro .lead{
  font-size: clamp(16px, 1.6vw, 18px); color: var(--ink-soft);
  max-width: 46ch; margin: clamp(16px, 2.4vh, 24px) 0 clamp(22px, 3.4vh, 36px);
}

/* description of the selected company */
.mol-panel{
  border-left:3px solid var(--brand);
  padding-left: clamp(18px, 2vw, 28px);
  max-width: 48ch;
}
.mol-panel[hidden]{ display:none; }
.mol-panel.is-active{ animation: panelIn .35s cubic-bezier(.22,.61,.36,1); }
@keyframes panelIn{ from{ opacity:0; transform: translateY(6px); } to{ opacity:1; transform:none; } }
.mol-panel .k{
  font-family: var(--font-mono); font-size:10.5px; letter-spacing:.1em; text-transform:uppercase;
  color: var(--brand); display:block; margin-bottom:6px;
}
.mol-panel h3{ font-size:22px; font-weight:500; letter-spacing:-0.02em; color: var(--brand-ink); }
.mol-panel p{ font-size:14.5px; color: var(--ink-soft); margin:8px 0 14px; }
.mol-tags{ display:flex; flex-wrap:wrap; gap:6px; }
.mol-tags li{
  font-size:13px; font-weight:500; color: var(--brand-ink);
  background: var(--tint); border-radius:8px; padding:6px 10px;
}
.mol-link{
  font-size:14px; font-weight:500; color: var(--brand); text-decoration:none;
  display:inline-flex; gap:8px; align-items:center;
}
.mol-link .arw{ transition: transform .18s ease; }
.mol-link:hover .arw{ transform: translateX(4px); }

/* the molecule itself: a square, nodes placed by percentage */
.molecule{
  position:relative;
  width: min(100%, 60vh, 560px);
  aspect-ratio: 1 / 1;
  justify-self:center;
}
.mol-bonds{ position:absolute; inset:0; width:100%; height:100%; overflow:visible; }
.mol-bonds line{
  stroke: var(--wire); stroke-width:2; vector-effect: non-scaling-stroke;
  transition: stroke .2s ease, stroke-width .2s ease;
}
.mol-bonds line.is-active{ stroke: var(--brand); stroke-width:3; }

/* orbit the three companies sit on, drifting slowly */
.mol-orbit{
  fill:none; stroke: var(--wire); stroke-width:1.5; vector-effect: non-scaling-stroke;
  stroke-dasharray: 2 6;
  animation: orbitDrift 40s linear infinite;
}
@keyframes orbitDrift{ to{ stroke-dashoffset: -160; } }
/* soft second ring around the holding */
.mol-halo{ fill: var(--brand-soft); stroke:none; }

/* small atoms: the services each company brings */
.mol-atoms line{ stroke-width:1.5; }
.mol-atoms circle{ fill:#fff; stroke: var(--wire); stroke-width:1.5; vector-effect: non-scaling-stroke; transition: fill .2s ease, stroke .2s ease; }
.mol-atoms.is-active line{ stroke: var(--brand); stroke-width:2; }
.mol-atoms.is-active circle{ fill: var(--brand); stroke: var(--brand); }

.mol-node{
  position:absolute;
  transform: translate(-50%, -50%);
  border-radius:50%;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  text-align:center; gap:4px; padding:10px;
  font-family: var(--font-display);
  cursor:pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.mol-node .name{ font-weight:500; letter-spacing:-0.015em; line-height:1.15; }
.mol-node .loc{ font-family: var(--font-mono); font-size:10.5px; letter-spacing:.08em; text-transform:uppercase; }

.mol-core{
  left:50%; top:54%;
  width:34%; aspect-ratio:1/1;
  background: var(--brand-ink); color:#fff; border:0;
}
.mol-core img{ height: clamp(20px, 3.2vh, 30px); width:auto; margin-bottom:4px; }
.mol-core .name{ font-size: clamp(13px, 1.3vw, 16px); max-width:10ch; }
.mol-core .loc{ color: rgba(255,255,255,.6); }
.mol-core.is-active{ background: var(--brand); }

.mol-sat{
  left: var(--x); top: var(--y);
  width:26%; aspect-ratio:1/1;
  background:#fff; color: var(--brand-ink);
  border:1.5px solid var(--wire);
}
.mol-sat .name{ font-size: clamp(14px, 1.3vw, 17px); }
.mol-sat .loc{ color: var(--ink-faint); }
.mol-sat:hover{ border-color: var(--brand); }
.mol-sat.is-active{ background: var(--brand); border-color: var(--brand); color:#fff; }
.mol-sat.is-active .loc{ color: rgba(255,255,255,.7); }
.mol-node:hover{ transform: translate(-50%, -50%) scale(1.04); }
.mol-node:focus-visible{ outline:2px solid var(--brand); outline-offset:4px; border-radius:50%; }

/* --- leadership --- */
.leaders{
  display:grid; grid-template-columns: repeat(3, minmax(0,1fr));
  gap: var(--gap);
}
.leader .org{
  display:inline-block; margin-top:8px;
  font-family: var(--font-mono); font-size:10.5px; letter-spacing:.04em;
  color: var(--brand); background: var(--brand-soft);
  border-radius:6px; padding:3px 8px;
}

/* inside a pinned full-height sheet the photos take what is left */
@media (min-width: 901px) and (min-height: 721px){
  .page-about .bento > .block.stack .leaders{ flex:1; min-height:0; grid-template-rows: 1fr; }
  .page-about .leader .photo{ aspect-ratio:auto; }
}

@media (max-width: 900px){
  .group-grid{ grid-template-columns:1fr; gap:32px; }
  .molecule{ width: min(100%, 440px); grid-row:1; }
  .leaders{ grid-template-columns:1fr 1fr; }
}
@media (max-width: 600px){
  .leaders{ grid-template-columns:1fr; }
  .mol-core{ width:38%; }
  .mol-sat{ width:29%; }
  .mol-node .loc{ font-size:9.5px; }
}
@media (prefers-reduced-motion: reduce){
  .mol-orbit{ animation:none; }
  .mol-panel.is-active{ animation:none; }
  .mol-node:hover{ transform: translate(-50%, -50%); }
}

/* ==========================================================================
   8. HOME HERO: MOVING GLASS
   The photo drifts slowly on its own and tilts towards the cursor
   (--mx / --my are set in app.js). A soft glint passes over the glass
   every few seconds.
   ========================================================================== */
.hero-art{ perspective: 1200px; }
.hero-art .glass{
  position:absolute; inset:-4%;
  transform:
    translate3d(calc(var(--mx, 0) * -30px), calc(var(--my, 0) * -22px), 0)
    rotateY(calc(var(--mx, 0) * 6deg))
    rotateX(calc(var(--my, 0) * -4deg))
    scale(calc(1 + (var(--my, 0) + .5) * .04));
  transition: transform .6s cubic-bezier(.22,.61,.36,1);
  will-change: transform;
}
.hero-art .glass img{
  width:100%; height:100%; object-fit:cover; object-position: right center;
  transform-origin: 80% 60%;
  /* push-in on load, then a slow, deeper breathing zoom */
  animation:
    glassIntro 2.6s cubic-bezier(.16,1,.3,1),
    glassFloat 16s ease-in-out 2.6s infinite;
  transform: scale(1.03);
}
@keyframes glassIntro{
  from{ transform: translateY(24px) rotate(2deg) scale(1.22); opacity:0; }
  to  { transform: translateY(0) rotate(0deg) scale(1.03); opacity:1; }
}
@keyframes glassFloat{
  0%,100%{ transform: translateY(0) rotate(0deg) scale(1.03); }
  50%    { transform: translateY(-20px) rotate(-1.8deg) scale(1.11); }
}
/* glint: a light band crossing the right half, blended onto the glass */
.hero-art .glass::after{
  content:''; position:absolute; inset:0;
  background: linear-gradient(115deg,
    rgba(255,255,255,0) 40%, rgba(255,255,255,.55) 50%, rgba(255,255,255,0) 60%);
  background-size: 250% 100%;
  background-position: 150% 0;
  mix-blend-mode: soft-light;
  -webkit-mask-image: linear-gradient(90deg, transparent 45%, #000 70%);
          mask-image: linear-gradient(90deg, transparent 45%, #000 70%);
  animation: glassGlint 9s ease-in-out infinite;
  pointer-events:none;
}
@keyframes glassGlint{
  0%, 55%{ background-position: 150% 0; }
  85%, 100%{ background-position: -50% 0; }
}
@media (max-width: 1000px){
  .hero-art .glass img{ object-position: 78% center; }
}
@media (prefers-reduced-motion: reduce){
  .hero-art .glass{ transform:none; transition:none; }
  .hero-art .glass img, .hero-art .glass::after{ animation:none; }
}

/* ==========================================================================
   9. GLINT ON THE STAT CARDS
   Like tilting a phone with glass UI: a highlight slides over the card and
   lights up its edge. --lx / --ly (0..1) are the light position, set in
   app.js from the cursor, the device tilt, or the scroll position.
   ========================================================================== */
.stats{ --lx: .25; --ly: .15; }

.stat{
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(160deg, #F8FAFE 0%, #EEF2F9 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 1px 2px rgba(11,27,58,.04);
}
.stat > *{ position: relative; z-index: 1; }

/* soft light on the surface */
.stat::before{
  content:''; position:absolute; inset:0; z-index:0; pointer-events:none;
  background:
    radial-gradient(55% 90% at calc(var(--lx) * 100%) calc(var(--ly) * 100%),
      rgba(255,255,255,1) 0%, rgba(255,255,255,.55) 35%, rgba(255,255,255,0) 70%),
    linear-gradient(calc(100deg + var(--lx) * 50deg),
      rgba(0,97,248,0) 35%, rgba(0,97,248,.07) 50%, rgba(0,97,248,0) 65%);
}

/* lit edge: a thin ring that is brightest nearest the light */
.stat::after{
  content:''; position:absolute; inset:0; z-index:2; pointer-events:none;
  border-radius: inherit;
  padding: 1.5px;
  background: radial-gradient(70% 120% at calc(var(--lx) * 100%) calc(var(--ly) * 100%),
    rgba(255,255,255,1) 0%, rgba(120,170,255,.55) 30%, rgba(195,212,240,.35) 60%, rgba(195,212,240,.15) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  mask-composite: exclude;
}

/* ==========================================================================
   10. ABOUT SHEET: same rhythm as the approach sheet
   Content starts at the top padding; the stat cards sit on the bottom
   padding, and the space between them is whatever the screen has left.
   ========================================================================== */
.page-home #about{ justify-content: flex-start; }
.about-grid{ margin-bottom: clamp(32px, 5vh, 56px); }

/* text column lines up with the heading, not with the eyebrow above it */
.about-grid{ row-gap: 0; }
.about-grid > div:first-child{ display: contents; }
.about-grid > div:first-child .eyebrow{ grid-column: 1; grid-row: 1; justify-self: start; }
.about-grid > div:first-child h2{ grid-column: 1; grid-row: 2; }
.about-grid .about-text{ grid-column: 2; grid-row: 2; margin-top: 16px; }
@media (max-width: 900px){
  .about-grid .about-text{ grid-column: 1; grid-row: 3; margin-top: 28px; }
}

/* ==========================================================================
   11. APPROACH CARDS: living glass
   - the same light as the stat cards slides over the plates (--lx / --ly)
   - hover (or scrolling past on a phone): the front tile glows from inside
     and the view eases in towards it
   - the three cards come in one after another
   ========================================================================== */
.pillars{ --lx: .25; --ly: .15; }

/* where the front tile sits in each picture */
.pillar{ --fx: 56%; --fy: 56%; }

.pillar .ph img{
  transform-origin: var(--fx) var(--fy);
  transition: transform 1.2s cubic-bezier(.22,.61,.36,1), filter .6s ease;
}

/* inner glow around the front tile */
.pillar .ph::before{
  content:''; position:absolute; inset:0; z-index:1; pointer-events:none;
  background: radial-gradient(34% 40% at var(--fx) var(--fy),
    rgba(0,97,248,.85) 0%, rgba(0,97,248,.35) 45%, rgba(0,97,248,0) 75%);
  mix-blend-mode: soft-light;
  opacity: 0;
  transition: opacity .6s ease;
}

/* light sliding over the glass */
.pillar .ph::after{
  content:''; position:absolute; inset:0; z-index:2; pointer-events:none;
  background:
    radial-gradient(45% 60% at calc(var(--lx) * 100%) calc(var(--ly) * 100%),
      rgba(255,255,255,.75) 0%, rgba(255,255,255,0) 70%),
    linear-gradient(calc(100deg + var(--lx) * 50deg),
      rgba(255,255,255,0) 38%, rgba(255,255,255,.55) 50%, rgba(255,255,255,0) 62%);
  background-size: 100% 100%, 220% 100%;
  background-position: 0 0, calc(var(--lx) * 100%) 0;
  mix-blend-mode: soft-light;
}

.pillar:hover .ph::before,
.pillar.is-lit .ph::before{ opacity: 1; }
.pillar:hover .ph img,
.pillar.is-lit .ph img{
  transform: scale(1.06);
  filter: saturate(1.15) brightness(1.02);
}

/* one after another */
.pillars.will-enter .pillar{
  opacity: 0;
  transform: translateY(28px);
}
.pillars.will-enter .pillar .ph img{ transform: scale(1.14); }
.pillars.is-in .pillar{
  opacity: 1;
  transform: none;
  transition: opacity .7s ease, transform .9s cubic-bezier(.22,.61,.36,1);
}
.pillars.is-in .pillar .ph img{ transform: scale(1); }
.pillars.is-in .pillar:nth-child(2){ transition-delay: .15s; }
.pillars.is-in .pillar:nth-child(3){ transition-delay: .3s; }
.pillars.is-in .pillar:nth-child(2) .ph img{ transition-delay: .15s; }
.pillars.is-in .pillar:nth-child(3) .ph img{ transition-delay: .3s; }
/* hover still wins after the entrance */
.pillars.is-in .pillar:hover .ph img,
.pillars.is-in .pillar.is-lit .ph img{ transform: scale(1.06); transition-delay: 0s; }

@media (prefers-reduced-motion: reduce){
  .pillars.will-enter .pillar{ opacity:1; transform:none; }
  .pillar .ph img{ transition:none; transform:none !important; }
}

/* ==========================================================================
   12. PARTNERS: dark cells with a spotlight
   - a blue light follows the cursor across the grid (--px / --py per cell,
     set in app.js), and the nearest cell edges light up
   - logos are bigger, slightly dimmed, and brighten on hover
   - cells come in one after another
   ========================================================================== */
.logo-cell{
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--brand-ink);
  --px: 50%; --py: 50%; --spot: 0;
}
/* spotlight */
.logo-cell::before{
  content:''; position:absolute; inset:0; z-index:0; pointer-events:none;
  background: radial-gradient(420px circle at var(--px) var(--py),
    rgba(0,97,248,.55) 0%, rgba(0,97,248,.18) 35%, rgba(0,97,248,0) 70%);
  opacity: var(--spot);
  transition: opacity .4s ease;
}
/* lit edge */
.logo-cell::after{
  content:''; position:absolute; inset:0; z-index:2; pointer-events:none;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(300px circle at var(--px) var(--py),
    rgba(143,186,255,.9) 0%, rgba(143,186,255,.15) 50%, rgba(255,255,255,.06) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: calc(.35 + var(--spot) * .65);
  transition: opacity .4s ease;
}
.logo-cell:hover{ background: var(--brand-ink); }

/* bigger logos, dimmed until hovered */
.logo-cell img{
  position: relative; z-index: 1;
  width: min(68%, 280px);
  max-width: 68%;
  max-height: 46%;
  height: auto;
  object-fit: contain;
  opacity: .72;
  transition: opacity .35s ease, transform .6s cubic-bezier(.22,.61,.36,1);
}
.logo-cell:hover img{ opacity: 1; transform: scale(1.18); }

/* entrance */
.logo-grid.will-enter .logo-cell{ opacity: 0; transform: translateY(20px) scale(.98); }
.logo-grid.is-in .logo-cell{
  opacity: 1; transform: none;
  transition: opacity .6s ease, transform .8s cubic-bezier(.22,.61,.36,1);
  transition-delay: calc(var(--i, 0) * 70ms);
}

@media (max-width: 900px){
  .logo-cell img{ width: min(72%, 220px); max-height: 50%; }
}
/* touch: no cursor, so keep the logos fully visible */
@media (hover: none){
  .logo-cell img{ opacity: .9; }
}
@media (prefers-reduced-motion: reduce){
  .logo-grid.will-enter .logo-cell{ opacity:1; transform:none; }
  .logo-cell img{ transition:none; }
}

/* ==========================================================================
   13. TEAM: three people, glass glint on the photos
   Uses the same light (--lx / --ly) as the stat and approach cards.
   ========================================================================== */
.team-grid,
.leaders{ --lx: .25; --ly: .15; }

.team-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
}
@media (max-width: 700px){ .team-grid{ grid-template-columns: 1fr; } }

.team-grid .member,
.leaders .member{
  isolation: isolate;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
}
.team-grid .member .photo,
.leaders .member .photo{ position: relative; }
.team-grid .member .photo img{
  object-position: center 20%;
  transition: transform 1s cubic-bezier(.22,.61,.36,1);
}
.team-grid .member:hover .photo img{ transform: scale(1.05); }

/* lit edge on the whole card */
.team-grid .member::after,
.leaders .member::after{
  content:''; position:absolute; inset:0; z-index:3; pointer-events:none;
  border-radius: inherit;
  padding: 1.5px;
  background: radial-gradient(70% 90% at calc(var(--lx) * 100%) calc(var(--ly) * 100%),
    rgba(255,255,255,1) 0%, rgba(120,170,255,.55) 30%, rgba(195,212,240,.3) 60%, rgba(195,212,240,.12) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  mask-composite: exclude;
}

/* fill the pinned sheet like the approach cards */
@media (min-width: 901px) and (min-height: 721px){
  .page-home .bento > .block.stack .team-grid{
    flex: 1; min-height: 0; grid-template-rows: 1fr;
  }
  .page-home .team-grid .member .photo{ aspect-ratio: auto; }
}

/* entrance, same as approach */
.team-grid.will-enter .member{ opacity: 0; transform: translateY(28px); }
.team-grid.is-in .member{
  opacity: 1; transform: none;
  transition: opacity .7s ease, transform .9s cubic-bezier(.22,.61,.36,1), background .18s ease;
}
.team-grid.is-in .member:nth-child(2){ transition-delay: .15s; }
.team-grid.is-in .member:nth-child(3){ transition-delay: .3s; }

@media (prefers-reduced-motion: reduce){
  .team-grid.will-enter .member{ opacity:1; transform:none; }
  .team-grid .member .photo img{ transition:none; transform:none !important; }
}

/* ==========================================================================
   14. NEWS: one featured story + a short list, no separate page
   ========================================================================== */
.news-grid{
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 48px);
  align-items: stretch;
}
@media (max-width: 900px){ .news-grid{ grid-template-columns: 1fr; } }

/* featured: dark card with a slow blue glow, same family as the partners */
.news-featured{
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--brand-ink); color: #fff;
  border-radius: var(--radius-md);
  padding: clamp(28px, 4vh, 48px) clamp(24px, 3vw, 44px);
  display: flex; flex-direction: column; align-items: flex-start;
  min-height: 320px;
}
.news-featured::before{
  content:''; position:absolute; z-index:-1; pointer-events:none;
  width: 140%; aspect-ratio: 1; right: -60%; bottom: -80%;
  background: radial-gradient(circle, rgba(10,60,170,.55) 0%, rgba(10,60,170,.16) 35%, rgba(10,60,170,0) 60%);
  animation: newsGlow 12s ease-in-out infinite alternate;
}
@keyframes newsGlow{
  from{ transform: translate(0, 0) scale(1); }
  to  { transform: translate(-12%, -8%) scale(1.1); }
}
.news-featured::after{
  content:''; position:absolute; inset:0; pointer-events:none;
  border-radius: inherit; padding: 1px;
  background: linear-gradient(140deg, rgba(255,255,255,.08), rgba(143,186,255,.6) 70%, rgba(143,186,255,.2));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  mask-composite: exclude;
}
.news-featured .tag{
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase;
  color: #fff; background: var(--brand); border-radius: 6px; padding: 4px 9px;
}
.news-featured time{
  font-family: var(--font-mono); font-size: 12px; color: rgba(255,255,255,.6);
  margin-top: 18px;
}
.news-featured h3{
  font-size: clamp(28px, 3.2vw, 44px); font-weight: 500; letter-spacing: -.03em; line-height: 1.08;
  margin-top: 10px; max-width: 16ch;
}
.news-featured p{
  font-size: 15.5px; color: rgba(255,255,255,.72); max-width: 44ch;
  margin: 16px 0 auto; padding-bottom: 28px;
}
.btn-light{ background: #fff; color: var(--brand-ink); }
.btn-light:hover{ background: var(--brand); color: #fff; }

/* list */
.news-list{ display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.news-list li{ flex: 1; border-bottom: 1px solid var(--line); display: flex; }
.news-row{
  flex: 1;
  display: grid; grid-template-columns: 110px 1fr auto; gap: 18px; align-items: center;
  padding: 18px 8px 18px 4px;
  text-decoration: none; color: var(--brand-ink);
  transition: background .2s ease, padding .3s ease;
  border-radius: 0;
}
.news-row time{ font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-faint); }
.news-row .t{ font-size: 16.5px; font-weight: 500; letter-spacing: -.01em; line-height: 1.35; }
.news-row .go{
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--line); color: var(--brand-ink);
  display: flex; align-items: center; justify-content: center;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .3s ease;
}
.news-row:hover{ background: var(--tint); padding-left: 14px; }
.news-row:hover .t{ color: var(--brand); }
.news-row:hover .go{ background: var(--brand); border-color: var(--brand); color: #fff; transform: rotate(-45deg); }

@media (max-width: 600px){
  .news-row{ grid-template-columns: 1fr auto; gap: 6px 14px; }
  .news-row time{ grid-column: 1 / -1; }
}

/* fill the pinned sheet */
@media (min-width: 901px) and (min-height: 721px){
  .page-home .bento > .block.stack .news-grid{ flex: 1; min-height: 0; }
}

@media (prefers-reduced-motion: reduce){
  .news-featured::before{ animation: none; }
}

/* --- news: rows are buttons now --- */
.news-row{
  width: 100%; text-align: left; font: inherit;
  background: transparent; border: 0; cursor: pointer;
}
.news-row:focus-visible{ outline: 2px solid var(--brand); outline-offset: 2px; }

/* --- featured: light that follows the cursor (same as the partners) --- */
.news-featured{ --px: 70%; --py: 80%; --spot: 0; }
.news-featured .spot{
  position:absolute; inset:0; z-index:-1; pointer-events:none;
  background: radial-gradient(460px circle at var(--px) var(--py),
    rgba(20,80,200,.4) 0%, rgba(20,80,200,.12) 35%, rgba(20,80,200,0) 70%);
  opacity: var(--spot);
  transition: opacity .4s ease;
}
.news-featured::after{
  background: radial-gradient(360px circle at var(--px) var(--py),
    rgba(143,186,255,.95) 0%, rgba(143,186,255,.2) 50%, rgba(255,255,255,.08) 100%);
}

/* --- news modal --- */
.modal--news{ max-width: min(720px, calc(100vw - var(--gap) * 4)); }
.modal--news .news-meta{
  display:block; margin-top: 18px;
  font-family: var(--font-mono); font-size: 12px; color: var(--ink-faint);
}
.modal--news h2{ font-size: clamp(24px, 2.8vw, 32px); line-height: 1.15; margin: 10px 0 18px; }
.modal--news .news-body p{ font-size: 15.5px; color: var(--ink-soft); margin-bottom: 14px; line-height: 1.65; }
.modal--news .news-body p:last-child{ margin-bottom: 0; }
.modal[open] .modal-card{ animation: modalIn .35s cubic-bezier(.22,.61,.36,1); }
@keyframes modalIn{ from{ opacity:0; transform: translateY(14px) scale(.98); } to{ opacity:1; transform:none; } }
@media (prefers-reduced-motion: reduce){ .modal[open] .modal-card{ animation:none; } }

/* pop-ups: the dialog itself scrolls, the page behind stays put */
.modal--news{
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.modal--news .modal-card{ max-height: none; overflow: visible; }
html:has(dialog[open]){ overflow: hidden; }

/* news rows: top-aligned, narrower title, bare arrow */
.news-row{ align-items: start; }
.news-row time{ padding-top: 4px; }
.news-row .t{ padding-right: 16px; }
.news-row .go,
.news-row:hover .go{
  width: 22px; height: 22px;
  border: 0; border-radius: 0;
  background: transparent;
  color: var(--brand-ink);
  transform: none;
}
.news-row:hover .go{ color: var(--brand); transform: translateX(4px); }
@media (max-width: 600px){
  .news-row time{ padding-top: 0; }
}

/* news rows: tighter date column, arrow points north-east and turns east on hover */
.news-row{ grid-template-columns: 92px 1fr auto; column-gap: 16px; }
.news-row .go{ transform: rotate(-45deg); transition: transform .3s ease, color .2s ease; }
.news-row:hover .go{ transform: rotate(0deg); color: var(--brand); }
@media (max-width: 600px){
  .news-row{ grid-template-columns: 1fr auto; }
}

/* ==========================================================================
   15. ABOUT: glass molecule image with clickable circles
   The picture carries the design; invisible round buttons sit exactly on
   each circle (--x / --y / --d in % of the picture) and light up a ring.
   ========================================================================== */
.sr-only{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0;
}
.molecule--img{
  width: min(100%, 66vh, 620px);
  perspective: 1100px;
}
.mol-stage{
  position:absolute; inset:0;
  transform:
    rotateY(calc(var(--mx, 0) * 7deg))
    rotateX(calc(var(--my, 0) * -5deg));
  transition: transform .7s cubic-bezier(.22,.61,.36,1);
}
.mol-art{
  width:100%; height:100%; display:block;
  /* soften the picture's off-white edges into the white sheet */
  -webkit-mask-image: radial-gradient(circle at 50% 48%, #000 60%, transparent 71%);
          mask-image: radial-gradient(circle at 50% 48%, #000 60%, transparent 71%);
}
/* float uses `translate`, so it never fights the tilt `transform` */
.mol-stage{ animation: molFloat 10s ease-in-out infinite; }
@keyframes molFloat{
  0%,100%{ translate: 0 0; }
  50%    { translate: 0 -10px; }
}

.mol-hit{
  position:absolute;
  left: var(--x); top: var(--y);
  width: var(--d); aspect-ratio: 1 / 1;
  transform: translate(-50%, -50%);
  border:0; padding:0; border-radius:50%;
  background: transparent;
  cursor: pointer;
}
.mol-hit::before{
  content:''; position:absolute; inset:-5px; border-radius:50%;
  box-shadow: 0 0 0 2px rgba(0,97,248,0), 0 0 0 rgba(0,97,248,0);
  transition: box-shadow .35s ease;
}
.mol-hit:hover::before{ box-shadow: 0 0 0 2px rgba(0,97,248,.35), 0 0 24px rgba(0,97,248,.18); }
.mol-hit.is-active::before{ box-shadow: 0 0 0 3px var(--brand), 0 0 44px rgba(0,97,248,.45); }
.mol-hit:focus-visible{ outline:none; }
.mol-hit:focus-visible::before{ box-shadow: 0 0 0 3px var(--brand-ink); }

/* a glint passing over the selected circle */
.mol-hit::after{
  content:''; position:absolute; inset:0; border-radius:50%; pointer-events:none;
  background: linear-gradient(115deg, rgba(255,255,255,0) 35%, rgba(255,255,255,.7) 50%, rgba(255,255,255,0) 65%);
  background-size: 260% 100%;
  background-position: 160% 0;
  mix-blend-mode: soft-light;
  opacity: 0;
}
.mol-hit.is-active::after{ opacity:1; animation: molGlint 5s ease-in-out infinite; }
@keyframes molGlint{
  0%, 50%{ background-position: 160% 0; }
  80%, 100%{ background-position: -60% 0; }
}

@media (max-width: 900px){
  .molecule--img{ width: min(100%, 460px); }
}
@media (prefers-reduced-motion: reduce){
  .mol-stage, .mol-hit.is-active::after{ animation:none; }
  .mol-stage{ transform:none; transition:none; }
}

/* about: bigger molecule, more room for it in the grid */
.page-about .group-grid{ grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
.molecule--img{ width: min(112%, 80vh, 800px); justify-self: center; }
/* keyboard ring should not replace the blue "selected" ring after a click */
.mol-hit.is-active:focus-visible::before{ box-shadow: 0 0 0 3px var(--brand), 0 0 44px rgba(0,97,248,.45); }
@media (max-width: 900px){
  .page-about .group-grid{ grid-template-columns: 1fr; }
  .molecule--img{ width: min(calc(100% + 48px), 560px); margin-inline: -24px; }
}

/* about: keep the block still when another company is selected
   (the panels differ in height, which used to shift the whole row) */
.mol-panels{ min-height: clamp(170px, 28vh, 320px); }
@media (max-width: 1000px){ .mol-panels{ min-height: 280px; } }
@media (max-width: 600px){ .mol-panels{ min-height: 0; } }

/* long company description scrolls inside the panel instead of stretching the sheet */
.mol-panel{ max-height: clamp(170px, 28vh, 320px); overflow-y: auto; overscroll-behavior: contain; padding-right: 10px; }
.mol-panel p + p{ margin-top: 12px; }
.mol-panel::-webkit-scrollbar{ width: 6px; }
.mol-panel::-webkit-scrollbar-thumb{ background: var(--wire); border-radius: 3px; }
@media (max-width: 900px){ .mol-panel{ max-height: none; overflow: visible; } }

/* --- news: link to the full list --- */
.news-all{
  align-self: start; margin-top: 18px;
  font-size: 14px; font-weight: 500; color: var(--brand); text-decoration: none;
  display: inline-flex; gap: 8px; align-items: center;
}
.news-all .arw{ transition: transform .18s ease; }
.news-all:hover .arw{ transform: translateX(4px); }

/* --- careers: dark call-to-action card --- */
.careers-card{
  position: relative; overflow: hidden; isolation: isolate;
  --px: 70%; --py: 80%; --spot: 0;
  background: var(--brand-ink); color: #fff;
  border-radius: var(--radius-md);
  padding: clamp(32px, 6vh, 64px) clamp(24px, 4vw, 64px);
  display: flex; flex-direction: column; align-items: flex-start;
}
.careers-card .spot{
  position:absolute; inset:0; z-index:-1; pointer-events:none;
  background: radial-gradient(520px circle at var(--px) var(--py),
    rgba(20,80,200,.45) 0%, rgba(20,80,200,.14) 35%, rgba(20,80,200,0) 70%);
  opacity: var(--spot); transition: opacity .4s ease;
}
.careers-card::before{
  content:''; position:absolute; z-index:-1; pointer-events:none;
  width: 120%; aspect-ratio: 1; right: -50%; bottom: -70%;
  background: radial-gradient(circle, rgba(10,60,170,.5) 0%, rgba(10,60,170,.14) 35%, rgba(10,60,170,0) 60%);
  animation: newsGlow 12s ease-in-out infinite alternate;
}
.careers-card .tag{
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase;
  color: #fff; background: var(--brand); border-radius: 6px; padding: 4px 9px;
}
.careers-card h2{
  font-size: clamp(30px, 4vw, 54px); font-weight: 500; letter-spacing: -.03em; line-height: 1.05;
  margin-top: 18px;
}
.careers-card p{ font-size: 16px; color: rgba(255,255,255,.72); max-width: 60ch; margin: 16px 0 28px; }
@media (prefers-reduced-motion: reduce){ .careers-card::before{ animation: none; } }

/* --- news page --- */
.page-news #all-news h1{ font-size: clamp(32px, 4vw, 52px); font-weight: 500; letter-spacing: -.03em; }

.page-news .news-featured h2{
  font-size: clamp(26px, 3vw, 40px); font-weight: 500; letter-spacing: -.03em; line-height: 1.1;
  margin-top: 10px; max-width: 22ch;
}
.page-news .news-featured p{ font-size: 15.5px; color: rgba(255,255,255,.72); max-width: 70ch; margin: 16px 0 0; padding-bottom: 0; }
.page-news .news-row{ grid-template-columns: 110px 1fr auto; }
@media (max-width: 600px){ .page-news .news-row{ grid-template-columns: 1fr auto; } }

/* the news page is a plain list, so its sheet grows with the content */
.page-news .bento > .block.stack{
  position: static;
  height: auto;
  max-height: none;
  overflow: visible;
}
.page-news .block:not(.nav-block){ justify-content: flex-start; overflow: visible; }
.page-news .closing{
  position: static;
  height: auto;
  min-height: 0;
  max-height: none;
  background: none;
}

/* --- header: menu centred in the space between the logo and the button --- */
@media (min-width: 821px){
  .nav-block{ grid-template-columns: auto 1fr auto; }
  .nav-center{ justify-self: center; }
}

/* --- news block: title row with the link on the right --- */
.block-head--row{
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.block-head--row .news-all{ margin-top: 0; padding-bottom: 6px; }

/* --- news page behaves like the other sheets: snap + inner scroll --- */
.page-news .bento > .block.stack{
  position: sticky;
  height: calc(100dvh - var(--stack-top) - var(--gap));
  max-height: calc(100dvh - var(--stack-top) - var(--gap));
  overflow: hidden;
}
.page-news .block:not(.nav-block){ justify-content: flex-start; }
.page-news .closing{
  position: sticky;
  height: calc(100dvh - var(--stack-top) - var(--gap));
  min-height: calc(100dvh - var(--stack-top) - var(--gap));
  max-height: calc(100dvh - var(--stack-top) - var(--gap));
  background: linear-gradient(to bottom, rgba(0, 97, 248, 0) 0%, var(--page) 60%);
}
/* left: the featured card, right: the scrolling list */
.page-news .news-grid{ flex: 1; min-height: 0; }
.page-news .news-featured{ min-height: 0; }
.page-news .news-list{
  min-height: 0; overflow-y: auto; overscroll-behavior: contain;
  /* push the scrollbar away from the text */
  margin-right: clamp(-28px, -2vw, -14px);
  padding-right: clamp(14px, 2vw, 28px);
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 44px), transparent 100%);
          mask-image: linear-gradient(to bottom, #000 calc(100% - 44px), transparent 100%);
}
.page-news .news-list::-webkit-scrollbar{ width: 6px; }
.page-news .news-list::-webkit-scrollbar-thumb{ background: var(--wire); border-radius: 3px; }
@media (max-width: 900px){
  .page-news .bento > .block.stack{ height: auto; max-height: none; overflow: visible; position: static; }
  .page-news .news-list{ overflow: visible; -webkit-mask-image: none; mask-image: none; }
}

/* --- news page: rows come in one after another --- */
.news-list.will-enter li{ opacity: 0; transform: translateY(18px); }
.news-list.is-in li{
  opacity: 1; transform: none;
  transition: opacity .55s ease, transform .7s cubic-bezier(.22,.61,.36,1);
  transition-delay: calc(var(--i, 0) * 60ms);
}
.page-news .news-featured{ opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .8s cubic-bezier(.22,.61,.36,1); }
.page-news .news-featured.is-in{ opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce){
  .news-list.will-enter li{ opacity:1; transform:none; }
  .page-news .news-featured{ opacity:1; transform:none; }
}

/* about: the intro paragraph is gone, so the heading needs its own breathing room */
.page-about .group-intro h1{ max-width: 17ch; }
.page-about .mol-panels{ margin-top: clamp(26px, 4vh, 44px); }
/* about: the text starts at the top padding, like every other sheet */
.page-about .group-intro{ align-self: start; }
/* about: wider and taller description area, tags removed */
.page-about .group-grid{ grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
.page-about .mol-panel{ max-width: none; max-height: clamp(220px, 44vh, 520px); }
.page-about .mol-panels{ min-height: clamp(220px, 44vh, 520px); }

/* ==========================================================================
   SCROLLBARS: faint by default, clearer when the pointer is over the area
   ========================================================================== */
.mol-panel,
.modal--news,
.page-news .news-list,
.page-home .bento > .block.stack,
.page-home .closing{
  scrollbar-width: thin;
  scrollbar-color: rgba(11,27,58,.12) transparent;
}
.mol-panel:hover,
.modal--news:hover,
.page-news .news-list:hover,
.page-home .bento > .block.stack:hover,
.page-home .closing:hover{ scrollbar-color: rgba(11,27,58,.32) transparent; }

.mol-panel::-webkit-scrollbar,
.modal--news::-webkit-scrollbar,
.page-news .news-list::-webkit-scrollbar,
.page-home .bento > .block.stack::-webkit-scrollbar,
.page-home .closing::-webkit-scrollbar{ width: 8px; }

.mol-panel::-webkit-scrollbar-track,
.modal--news::-webkit-scrollbar-track,
.page-news .news-list::-webkit-scrollbar-track,
.page-home .bento > .block.stack::-webkit-scrollbar-track,
.page-home .closing::-webkit-scrollbar-track{ background: transparent; }

.mol-panel::-webkit-scrollbar-thumb,
.modal--news::-webkit-scrollbar-thumb,
.page-news .news-list::-webkit-scrollbar-thumb,
.page-home .bento > .block.stack::-webkit-scrollbar-thumb,
.page-home .closing::-webkit-scrollbar-thumb{
  background: rgba(11,27,58,.12);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: content-box;
  transition: background .25s ease;
}
.mol-panel:hover::-webkit-scrollbar-thumb,
.modal--news:hover::-webkit-scrollbar-thumb,
.page-news .news-list:hover::-webkit-scrollbar-thumb,
.page-home .bento > .block.stack:hover::-webkit-scrollbar-thumb,
.page-home .closing:hover::-webkit-scrollbar-thumb{ background: rgba(11,27,58,.34); background-clip: content-box; }
/* about: leadership cards match the team cards on the home page */
.page-about #leadership .block-head h2{ max-width: none; }
.page-about .leaders .member .photo img{ object-position: center 20%; transition: transform 1s cubic-bezier(.22,.61,.36,1); }
.page-about .leaders .member:hover .photo img{ transform: scale(1.05); }

/* ==========================================================================
   NEWS PAGE: list on the right, the selected story on the left
   ========================================================================== */
.page-news .news-reader{ display: flex; flex-direction: column; min-height: 0; }
.page-news .news-detail{ flex: 1; min-height: 0; overflow: hidden; }
/* the text scrolls inside, so the card's glow and border stay put */
.page-news .news-body{ flex: 1; min-height: 0; overflow-y: auto; padding-right: 10px; }

.page-news .news-detail .news-meta{
  display: block; margin-bottom: 10px;
  font-family: var(--font-mono); font-size: 12px; color: rgba(255,255,255,.6);
}
.page-news .news-detail h2{
  font-size: clamp(24px, 2.6vw, 36px); font-weight: 500; letter-spacing: -.03em; line-height: 1.12;
  color: #fff; max-width: 24ch;
}
.page-news .news-detail p{
  font-size: 15px; line-height: 1.65; color: rgba(255,255,255,.72);
  margin-top: 14px; max-width: 62ch;
}
.page-news .news-body{ display: flex; flex-direction: column; align-items: flex-start; }
.page-news .news-detail.is-swapping .news-meta,
.page-news .news-detail.is-swapping h2,
.page-news .news-detail.is-swapping p{ animation: newsSwap .45s cubic-bezier(.22,.61,.36,1); }
@keyframes newsSwap{ from{ opacity:0; transform: translateY(8px); } to{ opacity:1; transform:none; } }

/* prev / next */
.news-nav{ display: flex; align-items: center; gap: 14px; margin-top: 18px; }
.news-step{
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line); background: #fff; color: var(--brand-ink);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease, opacity .2s ease;
}
.news-step:hover:not(:disabled){ background: var(--brand); border-color: var(--brand); color: #fff; }
.news-step:disabled{ opacity: .35; cursor: default; }
.news-count{ font-family: var(--font-mono); font-size: 12px; color: var(--ink-faint); }

/* the list: no line on top, soft fade at both ends */
.page-news .news-scroll{ min-height: 0; display: flex; }
.page-news .news-list{
  flex: 1; border-top: 0;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 26px, #000 calc(100% - 44px), transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0, #000 26px, #000 calc(100% - 44px), transparent 100%);
}
/* hover is a quiet tint, the selected row gets the blue accent */
.page-news .news-row:hover{ background: rgba(11,27,58,.03); }
.page-news .news-row:hover .t{ color: var(--brand-ink); }
.page-news .news-row:hover .go{ color: var(--brand-ink); transform: rotate(-45deg); }
.page-news .news-row.is-active{ background: var(--brand-soft); box-shadow: inset 3px 0 0 var(--brand); }
.page-news .news-row.is-active .t{ color: var(--brand); }
.page-news .news-row.is-active .go{ color: var(--brand); transform: rotate(0deg); }
.page-news .news-row.is-active:hover{ background: var(--brand-soft); }
.page-news .news-row.is-active:hover .t{ color: var(--brand); }
.page-news .news-row.is-active:hover .go{ color: var(--brand); transform: rotate(0deg); }

/* entrance */
.page-news .news-detail{ opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .8s cubic-bezier(.22,.61,.36,1); }
.page-news .news-detail.is-in{ opacity: 1; transform: none; }

@media (max-width: 900px){
  .page-news .news-detail{ overflow: visible; }
  .page-news .news-list{ -webkit-mask-image: none; mask-image: none; }
}
@media (prefers-reduced-motion: reduce){
  .page-news .news-detail{ opacity:1; transform:none; }
  .page-news .news-detail.is-swapping *{ animation: none; }
}
/* reader: no auto margins inside a scrolling card, they inflate its height */
.page-news .news-detail p{ margin: 14px 0 0; padding-bottom: 0; }
.page-news .news-detail p:last-child{ padding-bottom: 4px; }
/* the glow layer stuck out below the card and inflated its scroll height */
.page-news .news-detail::before{ display: none; }
.page-news .news-detail{
  background:
    radial-gradient(120% 90% at 115% 115%, rgba(10,60,170,.55) 0%, rgba(10,60,170,.16) 38%, rgba(10,60,170,0) 68%),
    var(--brand-ink);
}

/* news page: the date should not touch the blue accent of the selected row */
.page-news .news-row{ padding-left: 16px; }
.page-news .news-row:hover{ padding-left: 16px; }
/* team and leadership cards are no longer links */
.member{ cursor: default; }
/* news block: the link sits on the heading line */
.block-head--row{ align-items: flex-end; }
.block-head--row .news-all{ align-self: flex-end; margin-top: 0; padding-bottom: 8px; }
/* leadership: company label as a dark chip */
.leader .org{ color: #fff; background: var(--brand-ink); }

/* consent checkbox in the contact forms */
.consent{
  display: flex; align-items: flex-start; gap: 10px;
  margin: 4px 0 20px;
  font-size: 13.5px; line-height: 1.5; color: var(--ink-soft);
  cursor: pointer;
}
.consent input{
  flex: none; width: 17px; height: 17px; margin-top: 2px;
  accent-color: var(--brand); cursor: pointer;
}
.consent span{ max-width: 56ch; }

/* ==========================================================================
   v26: MOBILE FIXES, NEWS READER, TEAM BLOCKS, CONTACT PAGE
   ========================================================================== */

/* mobile menu: room for the fourth link */
@media (max-width: 820px){
  .nav-center.is-open{ max-height: 340px; }
}

/* --- about, mobile: picture on top, text under it ---
   the two-column rule for .page-about .group-grid sits lower in the file
   than the mobile one, so it has to be undone here */
@media (max-width: 900px){
  .page-about .group-grid{ grid-template-columns: 1fr; gap: 20px; height: auto; }
  .page-about .molecule--img{ order: -1; }
  .page-about .group-intro h1{ max-width: none; font-size: clamp(30px, 8.5vw, 42px); }
  .page-about .mol-panels{ min-height: 0; margin-top: 20px; }
  .page-about .mol-panel{ max-height: none; overflow: visible; padding-right: 0; }
}

/* --- about: management + scientific team blocks --- */
.page-about .team-section .block-head h2{ max-width: none; }

/* --- news: the sheet no longer pins, so the footer simply follows it
   (when it pinned, the footer slid over the prev/next arrows) --- */
.page-news .bento > .block.stack{ position: relative; top: auto; }
.page-news .closing{
  position: relative; top: auto; z-index: 8;
  height: auto; min-height: 0; max-height: none;
  overflow: visible; background: none;
  scroll-snap-align: none;
}

/* --- news, phones: the side reader is hidden, a story opens in the pop-up --- */
@media (max-width: 900px){
  .page-news .news-reader{ display: none; }
  .page-news .news-row.is-active{ background: none; box-shadow: none; }
  .page-news .news-row.is-active .t{ color: var(--brand-ink); }
  .page-news .news-row.is-active .go{ color: var(--brand-ink); transform: rotate(-45deg); }
}

/* --- contact page --- */
.page-contact .bento{ min-height: calc(100dvh - var(--gap) * 2); }
.page-contact .contact-page{ flex: 1 0 auto; justify-content: flex-start; }
.page-contact .block-head h1{
  font-size: clamp(32px, 4vw, 52px); font-weight: 500; line-height: 1.05;
  letter-spacing: -.03em; color: var(--brand-ink); margin-top: 14px;
}
.contact-side{ display: flex; flex-direction: column; gap: 24px; }

.map-card{
  position: relative; overflow: hidden;
  aspect-ratio: 3 / 2;
  border-radius: var(--radius-md);
  background: var(--tint);
  box-shadow: inset 0 0 0 1px var(--line);
}
.map-card img{ width: 100%; height: 100%; object-fit: cover; object-position: 50% 38%; }
.map-link{
  position: absolute; right: 12px; bottom: 12px;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 11px;
  font-size: 12.5px; font-weight: 500; line-height: 1;
  color: var(--brand-ink); text-decoration: none;
  background: rgba(255,255,255,.92);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border: 1px solid var(--line); border-radius: 8px;
  transition: color .15s ease, border-color .15s ease;
}
.map-link svg{ transition: transform .18s ease; }
.map-link:hover{ color: var(--brand); border-color: var(--brand); }
.map-link:hover svg{ transform: translate(2px, -2px); }
.map-link:focus-visible{ outline: 2px solid var(--brand); outline-offset: 2px; }

/* --- news + contact: one block pages fit the screen on desktop
   (header, the block and the footer together fill exactly one viewport) --- */
@media (min-width: 901px) and (min-height: 700px){
  .page-news .bento,
  .page-contact .bento{
    height: calc(100dvh - var(--gap) * 2);
    min-height: 0;
  }
  .page-news .bento > .nav-block,
  .page-contact .bento > .nav-block,
  .page-news .closing,
  .page-contact .footer-block{ flex: none; }

  /* news: the sheet takes what is left, the list scrolls inside */
  .page-news .bento > .block.stack{
    position: relative; top: auto;
    flex: 1 1 auto; min-height: 0;
    height: auto; max-height: none;
    overflow: hidden;
  }
  .page-news #all-news .block-head{ margin-bottom: clamp(16px, 2.4vh, 32px); flex: none; }

  /* contact: form left, details + map right, map takes the free height */
  .page-contact .contact-page{ flex: 1 1 auto; min-height: 0; overflow: hidden; }
  .page-contact .block-head{ margin-bottom: clamp(16px, 2.6vh, 36px); flex: none; }
  .page-contact .contact-grid{ flex: 1; min-height: 0; align-items: stretch; grid-template-rows: minmax(0, 1fr); }
  .page-contact .contact-side{ min-height: 0; }
  .page-contact .map-card{ flex: 1 1 auto; min-height: 160px; aspect-ratio: auto; }
  .page-contact .field textarea{ min-height: clamp(90px, 14vh, 180px); }
}
/* short laptop screens: tighten so the contact page still fits */
@media (min-width: 901px) and (min-height: 700px) and (max-height: 860px){
  .page-contact .contact-page{ padding-top: 28px; padding-bottom: 28px; overflow-y: auto; }
  .page-contact .block-head h1{ font-size: clamp(28px, 3vw, 40px); margin-top: 8px; }
  .page-contact .field{ margin-bottom: 12px; }
  .page-contact .field textarea{ min-height: 72px; }
  .page-contact .consent{ margin-bottom: 14px; }
  .page-contact .contact-details li{ padding: 10px 0; }
  .page-contact .contact-side{ gap: 14px; }
  .page-contact .map-card{ min-height: 110px; }
}

/* --- footer, phones: everything centred, email on its own line --- */
@media (max-width: 820px){
  .footer-main{
    flex-direction: column; align-items: center; text-align: center;
    gap: 20px; padding: 28px 20px 22px;
  }
  .footer-nav{ justify-content: center; gap: 12px 24px; }
  .footer-nav a[href^="mailto"]{ flex-basis: 100%; justify-content: center; margin-top: 4px; }
  .footer-bottom{ text-align: center; }
  .footer-bottom .label{ display: block; line-height: 1.7; }
}

/* --- partners, phones: bigger logos, less empty space in the cards --- */
@media (max-width: 900px){
  .logo-cell{ padding: 14px 12px; min-height: 0; aspect-ratio: 3 / 2; }
  .logo-cell img{ width: 100%; max-width: 100%; max-height: none; opacity: 1; }
}

/* --- news pop-up: dark, same card as the featured story (home + news) --- */
.modal--news .modal-card{
  background:
    radial-gradient(120% 90% at 115% 115%, rgba(10,60,170,.55) 0%, rgba(10,60,170,.16) 38%, rgba(10,60,170,0) 68%),
    var(--brand-ink);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(143,186,255,.18);
}
.modal--news .news-meta{ color: rgba(255,255,255,.55); padding-right: 48px; }
.modal--news h2{ color: #fff; }
.modal--news .news-body p{ color: rgba(255,255,255,.74); }
.modal--news .news-body a{ color: #8FBAFF; }
.modal--news .modal-close{
  background: transparent; color: #fff;
  border-color: rgba(255,255,255,.22);
}
.modal--news .modal-close:hover{ border-color: #8FBAFF; color: #8FBAFF; }
.modal--news .modal-close:focus-visible{ outline: 2px solid #8FBAFF; outline-offset: 2px; }

/* --- header menu on phones: items centred --- */
@media (max-width: 820px){
  .nav-center ul{ align-items: center; }
  .nav-center li{ width: 100%; text-align: center; }
  .nav-center li a{ display: inline-block; }
}

/* about: when the company text is scrolled to the end, the page carries on
   scrolling instead of getting stuck inside the panel */
.mol-panel{ overscroll-behavior: auto; }

/* ==========================================================================
   NEWS PAGE v2: same parts as the home news block
   featured card + full list, every story opens the dark pop-up
   ========================================================================== */
.page-news .news-featured{ opacity: 1; transform: none; min-height: 0; }
.page-news .news-featured p{ margin: 16px 0 0; }
.page-news .news-row{ padding-left: 0; }
.page-news .news-row:hover{ padding-left: 14px; background: var(--tint); }
.page-news .news-row:hover .t{ color: var(--brand); }
.page-news .news-row:hover .go{ color: var(--brand); transform: rotate(0deg); }

/* desktop: the list scrolls inside the sheet, soft fade at both ends */
@media (min-width: 901px){
  .page-news .news-grid{ grid-template-rows: minmax(0, 1fr); flex: 1; min-height: 0; }
  .page-news .news-list{
    min-height: 0; overflow-y: auto; border-top: 0;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 20px, #000 calc(100% - 44px), transparent 100%);
            mask-image: linear-gradient(to bottom, transparent 0, #000 20px, #000 calc(100% - 44px), transparent 100%);
  }
}
@media (max-width: 900px){
  .page-news .news-grid{ gap: 20px; }
  .page-news .news-featured{ padding: 26px 22px; }
  .page-news .news-list{ overflow: visible; -webkit-mask-image: none; mask-image: none; }
}

/* news page: lines like on the home page, no fade, rows keep their own height */
.page-news .news-list{
  border-top: 1px solid var(--line);
  -webkit-mask-image: none; mask-image: none;
  align-self: start; max-height: 100%;
}
.page-news .news-list li{ flex: 0 0 auto; }

/* news page, desktop: the list scrolls inside the sheet, so it needs a clear
   cue: a visible scrollbar and a "Scroll for more" hint that goes away at the end */
.page-news .news-col{ display: flex; flex-direction: column; min-height: 0; }
.page-news .news-col .news-list{ flex: 1 1 auto; min-height: 0; max-height: none; align-self: stretch; }
.page-news .news-list{ scrollbar-width: thin; scrollbar-color: var(--wire) var(--tint); }
.page-news .news-list::-webkit-scrollbar{ width: 6px; }
.page-news .news-list::-webkit-scrollbar-track{ background: var(--tint); border-radius: 999px; }
.page-news .news-list::-webkit-scrollbar-thumb{ background: var(--wire); border-radius: 999px; border: 0; }

.news-more{
  flex: none; display: flex; align-items: center; justify-content: center; gap: 8px;
  padding-top: 14px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--brand);
  transition: opacity .3s ease, visibility .3s;
}

.news-more.is-hidden{ opacity: 0; visibility: hidden; }
@media (max-width: 900px){ .news-more{ display: none; } }
.page-news .news-list{ border-top: 0; }
.page-news .news-list li:first-child{ border-top: 1px solid var(--line); }
/* about: key phrases in the company text */
.mol-panel p strong{ font-weight: 600; color: var(--brand-ink); }

/* --- news pop-up v2: fixed size, text scrolls inside, close button stays put,
   flat dark background (no blue glow at the bottom) --- */
.modal--news{ max-height: none; overflow: visible; }
.modal--news .modal-card{
  display: flex; flex-direction: column;
  max-height: min(680px, calc(100dvh - 48px));
  overflow: hidden;
  background: var(--brand-ink);
}
.modal--news .news-body{
  display: block;
  flex: 1 1 auto; min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding-right: 10px; margin-right: -10px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.25) transparent;
}
.modal--news .news-body::-webkit-scrollbar{ width: 6px; }
.modal--news .news-body::-webkit-scrollbar-thumb{ background: rgba(255,255,255,.25); border-radius: 999px; }
.modal--news .news-body::-webkit-scrollbar-track{ background: transparent; }
@media (max-width: 900px){
  .modal--news .modal-card{ max-height: calc(100dvh - 32px); padding: 26px 22px; }
}

/* --- contact page, desktop: address + email side by side, line under them --- */
@media (min-width: 901px){
  .page-contact .contact-details{
    display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
    padding-bottom: 16px; border-bottom: 1px solid var(--line);
  }
  .page-contact .contact-details li,
  .page-contact .contact-details li:first-child{ padding: 0; border: 0; }
}

/* --- home About: its own picture on the left (img/about.jpg), white on the
   right already, so only a soft fade at the top keeps the heading readable.
   No position change on the section: it is a sticky sheet --- */
.page-home #about{ overflow: hidden; isolation: isolate; }
.about-art{
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  border-radius: inherit; overflow: hidden;
}
.about-art img{ width: 100%; height: 100%; object-fit: cover; object-position: left center; }
.about-art::after{
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.92) 0%, rgba(255,255,255,.6) 22%, rgba(255,255,255,0) 42%);
}
@media (max-width: 900px){ .about-art{ display: none; } }

/* --- home stats: clinical trials card, sub-line as a small chip --- */
.stat .stat-sub{
  display: inline-block; margin-top: 14px;
  font-family: var(--font-mono); font-style: normal; font-size: 11px;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--brand); background: var(--brand-soft);
  padding: 4px 8px; border-radius: 6px;
}
.stat .stat-sub{ align-self: flex-start; }
.stats .stat{ justify-content: flex-start; }

/* --- home stats: big number, smaller regular word next to it --- */
.stat strong .unit{
  font-size: .5em; font-weight: 400; letter-spacing: -0.01em;
  margin-left: .08em;
}

/* about panels: no title, the eyebrow (company + city) leads straight into the text */
.mol-panel .k{ display: block; margin-bottom: 14px; }

/* --- featured news: text "Read more" button on the dark card --- */
.news-more-link{
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
  padding: 0; border: 0; background: none; cursor: pointer;
  font: inherit; font-size: 15px; font-weight: 500; color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.35); padding-bottom: 4px;
  transition: border-color .18s ease, color .18s ease;
}
.news-more-link svg{ transition: transform .18s ease; }
.news-more-link:hover{ border-color: #fff; }
.news-more-link:hover svg{ transform: translateX(4px); }
.news-more-link:focus-visible{ outline: 2px solid #8FBAFF; outline-offset: 4px; }
.page-news .news-featured .news-more-link{ margin-top: 24px; }

/* --- featured news card: content uses the card width, no orphan words,
   fixed height on desktop, two text actions at the bottom --- */
.news-featured h2, .news-featured h3{ max-width: none; text-wrap: balance; }
.news-featured p{ max-width: none; text-wrap: pretty; }
.news-actions{
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px;
  margin-top: auto;
}
.news-featured p{ margin-bottom: 28px; padding-bottom: 0; }
.page-news .news-featured .news-more-link{ margin-top: 0; }
@media (min-width: 901px){
  .news-featured{ height: clamp(380px, 52vh, 470px); align-self: start; }
}
/* same rule for text everywhere: no single word left on the last line */
h1, h2, h3{ text-wrap: balance; }
p{ text-wrap: pretty; }
@media (min-width: 901px){
  /* the news page row already has a fixed height, so the card simply fills it */
  .page-news .news-featured{ height: auto; align-self: stretch; }
}

/* --- page heroes (About, News, Contact): no eyebrow, same heading size --- */
.page-about .group-intro h1,
.page-news #all-news h1,
.page-contact .bento .block-head h1{ margin-top: 0; }
.page-contact .bento .block-head h1{
  font-size: clamp(32px, 4vw, 52px); font-weight: 500; letter-spacing: -.03em; line-height: 1.05;
}
/* About: more air between the big title and the company text */
.page-about .mol-panels{ margin-top: clamp(40px, 6vh, 72px); }

/* featured news card: short text is capped at 3 lines so the card never
   overflows on shorter screens ("Read more" opens the full story) */
.news-featured p{
  display: -webkit-box; -webkit-box-orient: vertical;
  -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden;
}
/* news page: the card sits in a fixed-height row, so on shorter screens the
   heading gets a bit smaller and the text shows 2 lines instead of 3 */
.news-featured p{ flex-shrink: 0; }
.page-news .news-featured h2{ font-size: clamp(24px, 1.6vw + 1.6vh, 40px); }
@media (min-width: 901px) and (max-height: 820px){
  .page-news .news-featured{ padding-top: 24px; padding-bottom: 24px; }
  .page-news .news-featured p{ -webkit-line-clamp: 2; line-clamp: 2; margin-bottom: 18px; }
}
@media (min-width: 901px) and (max-height: 760px){
  .page-news .news-featured h2{ font-size: 25px; margin-top: 8px; }
  .page-news .news-featured time{ margin-top: 0; }
  .page-news .news-featured p{ margin-top: 12px; }
}

/* --- featured card actions: primary + secondary button, no arrows --- */
.news-actions{ gap: 12px; }
.btn-outline-light{
  background: transparent; color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.4);
}
.btn-outline-light:hover{ background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px #fff; color: #fff; }

/* --- page heroes (About, News, Contact): the title sits in exactly the same
   place and size on all three --- */
.page-about .group-intro h1,
.page-news #all-news h1,
.page-contact .bento .block-head h1{
  font-size: clamp(32px, 4vw, 52px); line-height: 1.05; letter-spacing: -.03em; font-weight: 500;
  margin-top: 0;
}
@media (min-width: 901px){
  .page-about .bento > section:first-of-type,
  .page-news #all-news,
  .page-contact .bento > section.contact-page{
    justify-content: flex-start;
    padding-top: clamp(28px, 4.2vh, 48px);
  }
  .page-about .group-intro{ align-self: start; }
}
@media (max-width: 900px){
  .page-about .group-intro h1,
  .page-news #all-news h1,
  .page-contact .bento .block-head h1{ font-size: clamp(30px, 8.5vw, 42px); }
}

/* --- About hero, desktop: content starts at the top (title in the same place
   and size as on News and Contact), so switching companies does not jump --- */
@media (min-width: 901px){
  .page-about .bento > section:first-of-type{ display: flex; flex-direction: column; justify-content: flex-start; padding-bottom: clamp(28px, 4.2vh, 48px); }
  .page-about .group-grid{ flex: 1 1 auto; min-height: 0; height: auto; grid-template-rows: minmax(0, 1fr); align-items: stretch; }
  .page-about .group-intro{ align-self: start; display: block; }
  .page-about .mol-panels{ min-height: 0; margin-top: clamp(36px, 5.5vh, 60px); margin-bottom: 0; padding-top: 0; }
  .page-about .bento .mol-panels .mol-panel > p:last-child{ margin-bottom: 0; }
  .page-about .molecule{ min-height: 0; max-height: 100%; }
}
.page-about .group-intro h1{ max-width: none; text-wrap: balance; }

/* --- page heroes: a bit more room above the title (same on About, News, Contact),
   and a bit more space between the About title and the company text --- */
@media (min-width: 901px){
  .page-about .bento > section:first-of-type,
  .page-news #all-news,
  .page-contact .bento > section.contact-page{ padding-top: clamp(40px, 6vh, 68px); }
  .page-about .mol-panels{ margin-top: clamp(44px, 6.5vh, 72px); }
}

/* --- News page: more space between the page title and the card/list --- */
@media (min-width: 901px){
  .page-news #all-news .block-head{ margin-bottom: clamp(28px, 4.5vh, 56px); }
}

/* --- About hero, desktop: company text indented under the title and a bit
   narrower, like the mockup --- */
@media (min-width: 901px){
  .page-about .mol-panels{
    margin-left: clamp(40px, 7vw, 104px);
    max-width: 540px;
    margin-top: clamp(48px, 7.5vh, 72px);
  }
}
@media (min-width: 901px) and (max-width: 1360px){
  .page-about .mol-panels{ margin-left: clamp(20px, 3vw, 40px); max-width: none; }
}

/* About title: "One holding," in brand blue */
.h1-accent{ color: var(--brand); }

/* ==========================================================================
   MOBILE FIXES (v43)
   ========================================================================== */

/* pop-up close button: always above the scrolling text, bigger tap area.
   On iOS the scrolling text layer could sit over the X and swallow taps */
.modal-close{ z-index: 10; touch-action: manipulation; }
@media (max-width: 900px){
  .modal-close{ width: 42px; height: 42px; top: 14px; right: 14px; }
  .modal--news .news-meta{ padding-right: 52px; }
}

@media (max-width: 900px){
  /* featured news card hugs its content */
  .news-featured,
  .page-news .news-featured{ min-height: 0; height: auto; padding: 26px 22px; }
  .news-featured p{ margin: 14px 0 0; }
  .news-actions{ margin-top: 22px; gap: 10px; flex-wrap: nowrap; }
  .news-actions .btn{ padding: 11px 16px; font-size: 14px; white-space: nowrap; }

  /* home hero: both buttons full width, text centred */
  .hero-actions{ flex-direction: column; align-items: stretch; }
  .hero-actions .btn{ justify-content: center; width: 100%; }
}

/* the smallest phones: card buttons one under the other, full width,
   the same way as the hero buttons */
@media (max-width: 380px){
  .news-actions{ flex-direction: column; align-items: stretch; flex-wrap: wrap; }
  .news-actions .btn{ justify-content: center; width: 100%; }
}
@media (max-width: 380px){
  .news-actions{ width: 100%; align-self: stretch; }
}

/* ==========================================================================
   HOME NEWS (v44): full list scrolls inside the block, like the news page
   ========================================================================== */
@media (min-width: 901px){
  .page-home #news .news-grid{ grid-template-rows: minmax(0, 1fr); }
  .page-home #news .news-featured{ min-height: 320px; }
  /* the column takes its height from the featured card, not from the list */
  .page-home #news .news-col{
    display: flex; flex-direction: column; min-height: 0;
    contain: size;
  }
  .page-home #news .news-list{
    flex: 1 1 auto; min-height: 0;
    overflow-y: auto; overscroll-behavior: auto;
    border-top: 0;
    margin-right: clamp(-28px, -2vw, -14px);
    padding-right: clamp(14px, 2vw, 28px);
    scrollbar-width: thin; scrollbar-color: var(--wire) var(--tint);
  }
  .page-home #news .news-list li{ flex: 0 0 auto; }
  .page-home #news .news-list li:first-child{ border-top: 1px solid var(--line); }
  .page-home #news .news-list::-webkit-scrollbar{ width: 6px; }
  .page-home #news .news-list::-webkit-scrollbar-track{ background: var(--tint); border-radius: 999px; }
  .page-home #news .news-list::-webkit-scrollbar-thumb{ background: var(--wire); border-radius: 999px; border: 0; }
}
/* phones: plain list, no inner scroll (same as the news page) */
@media (max-width: 900px){
  .page-home #news .news-list li{ flex: 0 0 auto; }
}

/* ==========================================================================
   FOOTER-ONLY CLOSING (v45): the contact block now lives on contact.html only.
   Home and about end with the footer, which simply follows the last sheet
   ========================================================================== */
.closing--footer{
  position: relative; top: auto; z-index: 8;
  height: auto; min-height: 0; max-height: none;
  overflow: visible; background: none;
  scroll-snap-align: none;
}
/* the last sheet stops pinning, otherwise the footer would slide over it */
.page-home .bento > .block.stack.stack--last{ position: relative; top: auto; }
/* the pinned sheets stay behind the last one, so the gap above the footer
   and the last sheet's rounded corners are filled with the page colour */
@media (min-width: 1361px) and (min-height: 721px){
  .closing--footer::before{
    content: ''; position: absolute; z-index: -1; pointer-events: none;
    left: 0; right: 0; top: calc(var(--sheet-gap) * -1); bottom: 0;
    background: var(--page);
  }
  /* shadow shifted down only: fills the gap and the bottom corners, nothing above */
  .page-home .bento > .block.stack.stack--last{ box-shadow: 0 var(--sheet-gap) 0 0 var(--page); }
}

/* ==========================================================================
   LAST SHEET + FOOTER FIT ONE SCREEN (v46), same as the news page.
   --footer-h is measured in app.js; 150px is only the fallback
   ========================================================================== */
@media (min-width: 901px){
  .page-home .bento > .block.stack.stack--last{
    position: relative; top: auto;
    height: max(280px, calc(100dvh - var(--stack-top) - var(--gap) - var(--sheet-gap) - var(--footer-h, 150px)));
    max-height: none; min-height: 0;
    overflow: hidden;
    justify-content: flex-start;
  }
  .stack--last > .block-head{ flex: none; margin-bottom: clamp(16px, 2.6vh, 36px); }

  /* home news: the grid takes what is left, the list scrolls inside */
  .page-home #news .news-grid{ flex: 1; min-height: 0; }
  .page-home #news .news-featured{ min-height: 0; overflow: hidden; }

  /* about, scientific team: photos shrink to the space that is left */
  .page-about #science .leaders{ flex: 1; min-height: 0; grid-template-rows: minmax(0, 1fr); }
  .page-about #science .leader .photo{ aspect-ratio: auto; }
}
/* home news card: same shrinking as on the news page */
@media (min-width: 901px){
  .page-home #news .news-featured h3{ font-size: clamp(24px, 1.6vw + 1.6vh, 40px); max-width: none; }
}
@media (min-width: 901px) and (max-height: 820px){
  .page-home #news .news-featured{ padding-top: 24px; padding-bottom: 24px; }
  .page-home #news .news-featured p{ -webkit-line-clamp: 2; line-clamp: 2; margin-bottom: 18px; }
}
@media (min-width: 901px) and (max-height: 760px){
  .page-home #news .news-featured h3{ font-size: 25px; margin-top: 8px; }
  .page-home #news .news-featured time{ margin-top: 0; }
  .page-home #news .news-featured p{ margin-top: 12px; }
}
@media (min-width: 901px){
  /* the card fills the row instead of its own fixed height */
  .page-home #news .news-featured{ height: auto; align-self: stretch; }
}

/* short laptop screens (v47): the last sheet gets tight, so its heading
   and the news card get more compact */
@media (min-width: 901px) and (max-height: 700px){
  .stack--last{ padding-top: 24px; padding-bottom: 24px; }
  .stack--last > .block-head{ margin-bottom: 14px; }
  .stack--last > .block-head .eyebrow{ display: none; }
  .stack--last > .block-head h2{ font-size: 28px; }
  .page-home #news .news-featured{ padding: 20px 26px; }
  .page-home #news .news-featured h3{ font-size: 22px; margin-top: 6px; }
  .page-home #news .news-featured p{ -webkit-line-clamp: 1; line-clamp: 1; margin: 8px 0 14px; }
  .page-home #news .news-actions .btn{ padding-top: 10px; padding-bottom: 10px; }
  .page-home #news .news-row{ padding-top: 12px; padding-bottom: 12px; }
}
@media (min-width: 901px) and (max-height: 600px){
  .page-home #news .news-featured p{ display: none; }
}

/* stats: the "16" inside the third card's text */
.stat .stat-hl{ color: var(--brand); font-weight: 600; }

/* ==========================================================================
   NEWS + CONTACT: soft entrance on page load (v50)
   The sheet fades in, then its content rises one piece after another.
   --i on list rows is set in app.js
   ========================================================================== */
@keyframes sheetIn{ from{ opacity: 0; } to{ opacity: 1; } }
@keyframes riseIn{
  from{ opacity: 0; transform: translateY(18px); }
  to  { opacity: 1; transform: none; }
}
.page-news #all-news,
.page-contact .contact-page,
.page-news .footer-block,
.page-contact .footer-block{
  animation: sheetIn .6s ease backwards;
}
.page-news .footer-block,
.page-contact .footer-block{ animation-delay: .25s; }

.page-news #all-news h1,
.page-news .news-featured,
.page-news .news-list li,
.page-news .news-more,
.page-contact .contact-page h1,
.page-contact .contact-page form > *,
.page-contact .contact-details li,
.page-contact .map-card{
  animation: riseIn .7s cubic-bezier(.22,.61,.36,1) backwards;
}
/* news */
.page-news #all-news h1{ animation-delay: .1s; }
.page-news .news-featured{ animation-delay: .22s; }
.page-news .news-list li{ animation-delay: calc(.3s + var(--i, 0) * 60ms); }
.page-news .news-more{ animation-delay: .8s; }
/* contact */
.page-contact .contact-page h1{ animation-delay: .1s; }
.page-contact .contact-page form > *{ animation-delay: calc(.22s + var(--i, 0) * 70ms); }
.page-contact .contact-details li{ animation-delay: calc(.3s + var(--i, 0) * 80ms); }
.page-contact .map-card{ animation-delay: .5s; }


@media (prefers-reduced-motion: reduce){
  .page-news #all-news, .page-contact .contact-page,
  .page-news .footer-block, .page-contact .footer-block,
  .page-news #all-news h1, .page-news .news-featured, .page-news .news-list li, .page-news .news-more,
  .page-contact .contact-page h1, .page-contact .contact-page form > *,
  .page-contact .contact-details li, .page-contact .map-card{ animation: none; }
}

/* about (v51): company text back under the title, no indent */
@media (min-width: 901px){
  .page-about .mol-panels{ margin-left: 0; max-width: none; }
}
/* about title: a bit more air between its three lines */
.page-about .group-intro h1{ line-height: 1.18; }
/* about: company text sits closer to the title */
@media (min-width: 901px){
  .page-about .mol-panels{ margin-top: clamp(22px, 3.2vh, 34px); }
}

/* about (v54): the company text uses all the height down to the bottom of the
   sheet. If it still does not fit, it scrolls with a soft fade at the bottom
   instead of a cut line (the fade goes away at the end of the text) */
@media (min-width: 901px){
  .page-about .group-intro{ align-self: stretch; display: flex; flex-direction: column; min-height: 0; }
  .page-about .group-intro h1{ flex: none; }
  .page-about .mol-panels{ flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
  .page-about .mol-panel{ flex: 0 1 auto; min-height: 0; max-height: none; overflow-y: auto; }
  .page-about .mol-panel.is-clipped{
    -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 56px), transparent 100%);
            mask-image: linear-gradient(to bottom, #000 calc(100% - 56px), transparent 100%);
  }
}

/* featured news card (v55): the same padding on all four sides.
   The date had its own top margin, which made the top gap bigger */
@media (min-width: 901px){
  .page-home #news .news-featured,
  .page-news .news-featured{ --fp: clamp(28px, 2.8vw, 44px); padding: var(--fp); }
  .page-home #news .news-featured time,
  .page-news .news-featured time{ margin-top: 0; }
}
@media (min-width: 901px) and (max-height: 820px){
  .page-home #news .news-featured,
  .page-news .news-featured{ --fp: 26px; }
}
@media (min-width: 901px) and (max-height: 700px){
  .page-home #news .news-featured,
  .page-news .news-featured{ --fp: 20px; }
}

/* about (v56): the text column can now be taller than the picture, so the
   molecule must not stretch with the row. It stays square and centred */
.page-about .molecule{ align-self: center; height: auto; aspect-ratio: 1 / 1; }
.page-about .mol-art{ object-fit: contain; }

/* phones (v56): featured news card, the same padding on all four sides */
@media (max-width: 900px){
  .news-featured,
  .page-news .news-featured,
  .page-home #news .news-featured{ padding: 24px; }
  .news-featured time,
  .page-news .news-featured time,
  .page-home #news .news-featured time{ margin-top: 0; }
}
@media (min-width: 901px){
  /* never taller than the space the sheet leaves, so it stays a circle */
  .page-about .molecule--img{ width: min(112%, calc(100dvh - 220px), 800px); max-height: none; }
}

/* about (v57): when the text column is taller than the screen, the molecule
   travels with the scroll and stays in view next to the text */
@media (min-width: 901px){
  .page-about .molecule{
    align-self: start;
    position: sticky;
    top: calc(var(--stack-top) + 24px);
  }
}

/* ==========================================================================
   PAGE TRANSITIONS (v58): cross-document View Transitions.
   The current page moves back (smaller, darker), the new one slides up
   from below like the next card in a stack. The header stays in place.
   Chrome / Edge / Safari 18.2+; other browsers just open the page as before.
   ========================================================================== */
@view-transition{ navigation: auto; }

.nav-block{ view-transition-name: site-nav; }

/* what shows around the page while it shrinks */
::view-transition{
  background: var(--page);
  --vt-card: inset(var(--stack-top, 108px) var(--gap, 10px) 0 var(--gap, 10px) round var(--radius-lg, 24px));
}

::view-transition-group(root){ animation-duration: .75s; }

::view-transition-old(root){
  animation: vtBack .75s cubic-bezier(.65,0,.25,1) both;
  transform-origin: 50% 0;
}
::view-transition-new(root){
  animation: vtUp .75s cubic-bezier(.65,0,.25,1) both;
}

/* both layers are cut to the white sheet: below the header, 10px from the
   sides, rounded corners. So only the cards move, not the blue page */
@keyframes vtBack{
  from{ transform: none; filter: brightness(1); clip-path: var(--vt-card); }
  to  { transform: translateY(20px) scale(.9); filter: brightness(.7); clip-path: var(--vt-card); }
}
@keyframes vtUp{
  from{ transform: translateY(100vh); clip-path: var(--vt-card); }
  to  { transform: none; clip-path: var(--vt-card); }
}

/* going back in history: the stack plays the other way */
html:active-view-transition-type(back)::view-transition-old(root){
  animation: vtDown .75s cubic-bezier(.65,0,.25,1) both;
  z-index: 2;
}
html:active-view-transition-type(back)::view-transition-new(root){
  animation: vtFront .75s cubic-bezier(.65,0,.25,1) both;
  transform-origin: 50% 0;
}
@keyframes vtDown{
  from{ transform: none; clip-path: var(--vt-card); }
  to  { transform: translateY(100vh); clip-path: var(--vt-card); }
}
@keyframes vtFront{
  from{ transform: translateY(20px) scale(.9); filter: brightness(.7); clip-path: var(--vt-card); }
  to  { transform: none; filter: brightness(1); clip-path: var(--vt-card); }
}

/* the header stays on top and does not move */
::view-transition-group(site-nav){ z-index: 10; animation-duration: .3s; }

@media (prefers-reduced-motion: reduce){
  @view-transition{ navigation: none; }
}

/* partners (v59): on laptop widths the sheets do not pin, so the cards were
   short and the logos small. Give the cards a fixed shape and let the logo
   use most of it, like on the big desktop */
@media (min-width: 901px) and (max-width: 1360px), (min-width: 901px) and (max-height: 720px){
  .logo-cell{ min-height: 0; aspect-ratio: 16 / 9; padding: 16px; }
  .logo-cell img{ width: 88%; max-width: 88%; max-height: 72%; }
}

/* page transitions, phones (v60): the old page does not darken into a dark
   block, it just steps back and fades away while the new one slides up */
@keyframes vtBackM{
  from{ transform: none; opacity: 1; clip-path: var(--vt-card); }
  to  { transform: translateY(12px) scale(.94); opacity: 0; clip-path: var(--vt-card); }
}
@keyframes vtFrontM{
  from{ transform: translateY(12px) scale(.94); opacity: 0; clip-path: var(--vt-card); }
  to  { transform: none; opacity: 1; clip-path: var(--vt-card); }
}
@media (max-width: 900px){
  ::view-transition-old(root){ animation-name: vtBackM; }
  html:active-view-transition-type(back)::view-transition-new(root){ animation-name: vtFrontM; }
}
