/* scieneers — what tokens.json does not declare: motion and base element styles
   (every other value lives in tokens.json) */
:root {
  /* Motion — quiet, professional */
  --ease-out: cubic-bezier(0.25, 0.8, 0.35, 1);
  --duration-base: 250ms;
}

/* Type styles h1 (44–80px) and h1-home (44–90px) are responsive. tokens.json can only hold a fixed fontSize
   (the maximum), so the responsive size overrides the token and its class here, after tokens.css. */
:root {
  --text-h1: 600 clamp(44px, 14vw, 80px)/1 var(--font-display);
  --text-h1-home: 600 clamp(44px, 14vw, 90px)/1 var(--font-display);
}
.h1 { font-size: clamp(44px, 14vw, 80px); }
.h1-home { font-size: clamp(44px, 14vw, 90px); }

/* Height of the NavBar bar at the current viewport, for layouts below it (home-page Hero) */
:root { --nav-height: var(--nav-height-desktop); }

/* Below the breakpoint (token `breakpoint`, 960px — media queries cannot read variables) the container uses container-pad-mobile
   and the NavBar its mobile bar */
@media (max-width: 960px) {
  :root { --container-pad: var(--container-pad-mobile); --nav-height: var(--nav-height-mobile); }
}

/* scieneers — minimal base element styles */
body {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-body);
  background: var(--sci-white);
  margin: 0;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 400;
  color: var(--text-heading);
  line-height: 1.2;
  margin: 0;
}
a { color: var(--text-link); text-decoration: none; transition: color var(--duration-base) var(--ease-out); }
a:hover { color: var(--text-link-hover); }

/* Testimonials — the card row scrolls without a visible scrollbar; arrows and dots below it page through */
[data-sci-carousel] { scrollbar-width: none; }
[data-sci-carousel]::-webkit-scrollbar { display: none; }

/* TestimonialCard — after the first click on its arrow or the first scroll, the quote keeps a visible scrollbar instead of
   the system's overlay one (Chromium applies ::-webkit-scrollbar only while scrollbar-width is auto) */
[data-sci-quote-revealed]::-webkit-scrollbar { width: 6px; }
[data-sci-quote-revealed]::-webkit-scrollbar-thumb { background: var(--border); border-radius: var(--radius-pill); }

/* Keyboard focus ring for every link, button and focusable region (Button, TextLink, textlinks, cards, NavBar, carousel, scrollable quotes):
   3px in focus-ring, following the element's radius. An outline, not a box-shadow, so it also shows where an inline style sets its own
   box-shadow (Card). Form fields draw their own ring. */
a:focus-visible, button:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 0; }
/* Checkbox and Switch: the hidden native input has focus, the ring goes on the visible box or track right after it */
[data-sci-toggle]:focus-visible + span { outline: 3px solid var(--focus-ring); outline-offset: 0; }

/* NavBar — dropdown panel fades in from 8px above */
@keyframes sciNavIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  [data-sci-nav-panel], [data-sci-nav-panel] * { animation: none !important; transition: none !important; }
}
