/* =====================================================================
   ANTHERA DYNAMICS — MAIN STYLESHEET
   ---------------------------------------------------------------------
   HOW TO EDIT
   • Colours, fonts, spacing and animation speed live in the ":root"
     block right below. Change a value there and it updates everywhere.
   • Each section of the site has its own clearly labelled block
     (search for "====" to jump between them).
   • Save the file, then reload the page in your browser to see changes.
   ===================================================================== */


/* =====================================================================
   0. FONTS — bundled in assets/fonts (free for commercial use, SIL OFL)
   Montserrat = headings (same family as the logo), Inter = body text.
   ===================================================================== */
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 500; font-display: swap; src: url("../assets/fonts/montserrat-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 600; font-display: swap; src: url("../assets/fonts/montserrat-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 700; font-display: swap; src: url("../assets/fonts/montserrat-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../assets/fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("../assets/fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("../assets/fonts/inter-latin-600-normal.woff2") format("woff2"); }


/* =====================================================================
   1. DESIGN TOKENS  (brand colours, fonts, sizes, motion)
   ===================================================================== */
:root {
  /* --- Brand colours --------------------------------------------- */
  --white:        #FFFFFF;   /* Pure white (main background)          */
  --blue:         #0F4C8A;   /* Deep brand blue (from the logo)       */
  --blue-deep:    #08305C;   /* Darker blue for hover / dark bands    */
  --blue-bright:  #2A86D8;   /* Lighter logo blue ("DYNAMICS")        */
  --blue-tint:    #EEF4FB;   /* Very soft blue wash for panels        */
  --silver:       #C5CBD3;   /* Titanium silver                       */
  --silver-light: #EDEFF2;   /* Light titanium (cards, dividers)      */
  --silver-soft:  #F6F7F9;   /* Almost-white silver (section bg)      */
  --silver-dark:  #8A939E;   /* Darker titanium (small labels)        */

  /* --- Text colours ----------------------------------------------- */
  --ink:          #0C1B2E;   /* Headings + main text (near-black navy) */
  --ink-soft:     #3A4656;   /* Body text                             */
  --muted:        #6B7685;   /* Secondary / small text                */
  --line:         #E3E7EC;   /* Hairline borders                      */

  /* --- Fonts (files live in assets/fonts, see section 0) ---------- */
  --font-head: "Montserrat", "Helvetica Neue", Arial, sans-serif;   /* headings */
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;        /* body text */

  /* --- Layout ----------------------------------------------------- */
  --container: 1200px;                          /* max content width  */
  --gutter: clamp(20px, 5vw, 48px);             /* side padding       */

  /* --- SPACING CONTROLS (change these to tighten or loosen the site) ---
     clamp(SMALLEST, GROWS-WITH-SCREEN, LARGEST)
     • --section-y   space above and below every section
     • --head-gap    space under each section's heading block
     • --hero-top    space above the heading on inner pages (below the menu)
     • --row-gap     space between the product rows on the home page      */
  --section-y: clamp(56px, 7vw, 104px);
  --head-gap:  clamp(28px, 3.5vw, 52px);
  --hero-top:  clamp(36px, 5vw, 72px);
  --row-gap:   clamp(64px, 8vw, 112px);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;

  /* --- Shadows (kept very soft for a calm clinical feel) ---------- */
  --shadow-sm: 0 1px 2px rgba(12, 27, 46, .04), 0 4px 16px rgba(12, 27, 46, .04);
  --shadow-md: 0 2px 6px rgba(12, 27, 46, .04), 0 18px 48px rgba(12, 27, 46, .07);

  /* --- Motion: slow, calm, neat ----------------------------------- */
  --ease: cubic-bezier(.22, .61, .36, 1);
  --slow: 700ms;     /* buttons, hovers          */
  --slower: 1100ms;  /* entrances, image fades   */

  /* --- Header height (used to offset content) --------------------- */
  --header-h: 88px;
}


/* =====================================================================
   2. BASE / RESET
   ===================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; transition: color var(--slow) var(--ease); }
a:hover { color: var(--blue-deep); }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--blue-bright); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--blue-tint); color: var(--blue-deep); }

/* Headings use the heading font */
h1, h2, h3, h4 {
  text-wrap: balance;          /* evens out line lengths so no word hangs alone */
  font-family: var(--font-head);
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(34px, 6.2vw, 84px); font-weight: 500; }
h2 { font-size: clamp(30px, 4vw, 52px); font-weight: 500; }
h3 { font-size: clamp(22px, 2.2vw, 30px); }
h4 { font-size: 19px; letter-spacing: -0.01em; }
p  { margin: 0 0 1.1em; text-wrap: pretty; }

/* Small uppercase label that sits above headings */
.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--blue-bright);
  margin-bottom: 18px;
}
.lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.65; color: var(--ink-soft); max-width: 640px; }
.muted { color: var(--muted); }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* Screen-reader only text */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }


/* =====================================================================
   3. LAYOUT HELPERS
   ===================================================================== */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: calc(760px + var(--gutter) * 2); }
.section { padding: var(--section-y) 0; position: relative; }
.section--tint   { background: var(--silver-soft); }
.section--blue   { background: var(--blue-tint); }
.section-head { max-width: 760px; margin-bottom: var(--head-gap); }
.section-head.center { margin-left: auto; margin-right: auto; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(24px, 4vw, 56px); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 32px); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2.4vw, 28px); }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 680px)  { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* Thin titanium divider */
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }


/* =====================================================================
   4. BUTTONS  (calm, slow, neat interactions)
   ===================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px;
  border-radius: 999px; border: 1px solid transparent;
  font-family: var(--font-head); font-weight: 600; font-size: 15px; letter-spacing: .01em;
  white-space: nowrap;
  transition: background-color var(--slow) var(--ease), color var(--slow) var(--ease),
              border-color var(--slow) var(--ease), box-shadow var(--slow) var(--ease),
              transform var(--slow) var(--ease);
}
.btn svg { width: 18px; height: 18px; transition: transform var(--slow) var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: scale(.98); }

/* Solid deep blue */
.btn--primary { background: var(--blue); color: var(--white); box-shadow: 0 10px 30px rgba(15, 76, 138, .18); }
.btn--primary:hover { background: var(--blue-deep); color: var(--white); box-shadow: 0 14px 36px rgba(8, 48, 92, .24); }

/* Outline on white backgrounds */
.btn--outline { background: transparent; color: var(--ink); border-color: var(--silver); }
.btn--outline:hover { border-color: var(--blue); color: var(--blue); background: var(--white); }

/* Frosted glass, used on top of photos */
.btn--glass {
  background: rgba(255, 255, 255, .14); color: var(--white); border-color: rgba(255, 255, 255, .45);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
}
.btn--glass:hover { background: rgba(255, 255, 255, .95); color: var(--blue-deep); border-color: var(--white); }

/* White solid, used on dark/blue bands */
.btn--white { background: var(--white); color: var(--blue-deep); }
.btn--white:hover { background: var(--silver-light); color: var(--blue-deep); }

/* Simple text link with arrow */
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 600; font-size: 15px; color: var(--blue); }
.link-arrow svg { width: 16px; height: 16px; transition: transform var(--slow) var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* Small rounded label ("Coming soon", "Sample", status chips) */
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .04em; font-family: var(--font-head);
  background: var(--silver-light); color: var(--ink-soft);
}
.chip--blue { background: var(--blue-tint); color: var(--blue); }
.chip--live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #2FB37A; box-shadow: 0 0 0 4px rgba(47, 179, 122, .15); }
.chip--soon::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--silver-dark); }


/* =====================================================================
   5. HEADER + GLASS NAVIGATION
   ===================================================================== */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background-color var(--slow) var(--ease), box-shadow var(--slow) var(--ease), transform var(--slower) var(--ease);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; }

/* Once you scroll down, a faint white bar fades in behind the header */
.site-header.is-scrolled { background: rgba(255, 255, 255, .72); -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3); box-shadow: 0 1px 0 var(--line); }
/* The header hides when scrolling down and returns when scrolling up */
.site-header.is-hidden { transform: translateY(-100%); }

/* Symbol logo, top-left (click = home) */
.brand-symbol { display: inline-flex; align-items: center; height: 46px; }
.brand-symbol img { height: 40px; width: auto; filter: drop-shadow(0 2px 10px rgba(255,255,255,.35)); }

/* The white transparent glass pill on the right */
.nav-glass {
  display: flex; align-items: center; gap: 4px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .55);
  border: 1px solid rgba(255, 255, 255, .7);
  -webkit-backdrop-filter: blur(20px) saturate(1.4); backdrop-filter: blur(20px) saturate(1.4);
  box-shadow: 0 8px 32px rgba(12, 27, 46, .08), inset 0 1px 0 rgba(255, 255, 255, .6);
}
.nav-item { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px;
  height: 42px; padding: 0 18px; border-radius: 999px;
  font-family: var(--font-head); font-weight: 500; font-size: 14.5px; color: var(--ink);
  background: transparent; border: 0;
  transition: background-color var(--slow) var(--ease), color var(--slow) var(--ease);
}
.nav-link svg { width: 12px; height: 12px; opacity: .6; transition: transform var(--slow) var(--ease); }
.nav-link:hover, .nav-item:focus-within > .nav-link, .nav-item.is-open > .nav-link { background: rgba(255, 255, 255, .85); color: var(--blue); }
.nav-item.is-open > .nav-link svg, .nav-item:hover > .nav-link svg { transform: rotate(180deg); }
.nav-link.is-active { color: var(--blue); }
.nav-link--cta { background: var(--blue); color: var(--white); margin-left: 4px; }
.nav-link--cta:hover { background: var(--blue-deep); color: var(--white); }

/* Dropdown panels (Products / Applications / About) */
.dropdown {
  position: absolute; top: calc(100% + 14px); left: 50%;
  min-width: 260px; padding: 10px;
  border-radius: 22px;
  background: rgba(255, 255, 255, .92);
  border: 1px solid rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: blur(24px) saturate(1.4); backdrop-filter: blur(24px) saturate(1.4);
  box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translate(-50%, 8px);
  transition: opacity 500ms var(--ease), transform 500ms var(--ease), visibility 0s linear 500ms;
}
.dropdown::before { content: ""; position: absolute; inset: -16px 0 auto 0; height: 16px; } /* hover bridge */
.nav-item:hover > .dropdown, .nav-item:focus-within > .dropdown, .nav-item.is-open > .dropdown {
  opacity: 1; visibility: visible; transform: translate(-50%, 0);
  transition: opacity 500ms var(--ease), transform 500ms var(--ease), visibility 0s;
}
.dropdown a {
  display: flex; flex-direction: column; gap: 2px;
  padding: 12px 16px; border-radius: 14px; color: var(--ink);
  transition: background-color var(--slow) var(--ease);
}
.dropdown a:hover { background: var(--blue-tint); color: var(--ink); }
.dropdown a strong { font-family: var(--font-head); font-weight: 600; font-size: 14.5px; }
.dropdown a span { font-size: 13px; color: var(--muted); line-height: 1.4; }

/* Mobile menu button (hidden on desktop) */
.menu-toggle {
  display: none;
  width: 52px; height: 52px; border-radius: 50%;
  align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .6); border: 1px solid rgba(255, 255, 255, .8);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  box-shadow: 0 8px 28px rgba(12, 27, 46, .08);
}
.menu-toggle span { display: block; width: 20px; height: 1.5px; background: var(--ink); position: relative; transition: background-color 400ms var(--ease); }
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; width: 20px; height: 1.5px; background: var(--ink); transition: transform 500ms var(--ease), top 500ms var(--ease); }
.menu-toggle span::before { top: -6px; } .menu-toggle span::after { top: 6px; }
body.menu-open .menu-toggle span { background: transparent; }
body.menu-open .menu-toggle span::before { top: 0; transform: rotate(45deg); }
body.menu-open .menu-toggle span::after { top: 0; transform: rotate(-45deg); }

/* Full-screen mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(255, 255, 255, .97);
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  padding: calc(var(--header-h) + 24px) var(--gutter) 40px;
  overflow-y: auto;
  opacity: 0; visibility: hidden;
  transition: opacity 600ms var(--ease), visibility 0s linear 600ms;
}
body.menu-open .mobile-menu { opacity: 1; visibility: visible; transition: opacity 600ms var(--ease), visibility 0s; }
body.menu-open { overflow: hidden; }
.mobile-menu details { border-bottom: 1px solid var(--line); }
.mobile-menu summary, .mobile-menu > a:not(.btn) {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 0; list-style: none; cursor: pointer;
  font-family: var(--font-head); font-size: 24px; font-weight: 600; color: var(--ink);
}
.mobile-menu > a:not(.btn) { border-bottom: 1px solid var(--line); }
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-menu summary::after { content: "+"; font-weight: 400; color: var(--muted); transition: transform 500ms var(--ease); }
.mobile-menu details[open] summary::after { transform: rotate(45deg); }
.mobile-menu details a { display: block; padding: 10px 0 10px 4px; font-size: 17px; color: var(--ink-soft); }
.mobile-menu details div { padding-bottom: 16px; }
.mobile-menu .btn { width: 100%; margin-top: 32px; }

@media (max-width: 980px) {
  .nav-glass { display: none; }
  .menu-toggle { display: inline-flex; }
}


/* =====================================================================
   6. HOME — HERO (full screen, headline bottom-left)

   Laptops, desktops and any landscape screen:
     the photo spans the FULL width, centred, and fills the hero from the
     top down to just behind the headline. It is cropped (never squashed)
     to fit. The bottom of the machine's stand may sit behind the text.
   Phones and portrait tablets: see the block at the end of this section.

   Per-photo settings live in index.html (style="…" on each slide):
     --d-pos   which part of the photo stays in view on wide screens
               (left% top%). Lower the top% to show more of the top of
               the photo, raise it to show more of the bottom.
     --m-pos   the same, for phones
   ===================================================================== */
.hero {
  position: relative; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end;
  background: linear-gradient(180deg, #FFFFFF 0%, var(--silver-soft) 100%);
  --copy: 300px;      /* height of the headline block, measured by js/main.js */
  --overlap: 120px;   /* how far the photo reaches down behind the headline */
}
.hero__slide { position: absolute; inset: 0; z-index: 0; opacity: 0; transition: opacity 1000ms var(--ease); }
.hero__slide.is-active  { opacity: 1; z-index: 2; }
.hero__slide.is-leaving { opacity: 0; z-index: 1; transition: opacity 800ms var(--ease); }

/* Soft blurred copy of the photo behind everything (colour continuity) */
.hero__ambient {
  position: absolute; inset: -12%; width: 124%; height: 124%; max-width: none;
  object-fit: cover; filter: blur(70px) saturate(1.05); opacity: .26;
}
/* The photo: full width, centred, cropped to fit */
.hero__photo {
  position: absolute; top: 0; left: 0; right: 0;
  width: 100%; max-width: none;
  height: calc(100svh - var(--copy) + var(--overlap));
  object-fit: cover; object-position: var(--d-pos, 50% 35%);
  -webkit-mask-image: linear-gradient(to top, transparent 0, #000 26%);
          mask-image: linear-gradient(to top, transparent 0, #000 26%);
  /* New photo settles from a very slight zoom */
  transform: scale(1.035); transform-origin: 50% 40%;
  transition: transform 1800ms var(--ease);
}
.hero__slide.is-active .hero__photo { transform: none; }

/* Headline + buttons (bottom-left) */
.hero__content { position: relative; z-index: 4; width: 100%; padding-bottom: clamp(44px, 7vh, 88px); }
.hero__copy { position: relative; }
/* soft white glow behind the headline so it stays readable over the photo */
.hero__copy::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  left: -14%; right: -18%; top: -26%; bottom: -30%;
  background: radial-gradient(ellipse 60% 62% at 42% 56%, rgba(255,255,255,.88) 0%, rgba(255,255,255,.55) 52%, rgba(255,255,255,0) 100%);
}
.hero__title {
  color: var(--ink); font-weight: 500;
  line-height: 1.07; letter-spacing: -0.03em;
  margin-bottom: 30px;
  font-size: min(64px, 4.3vw);
  text-shadow: 0 1px 24px rgba(255, 255, 255, .95);
}
.hero__title .line { display: block; white-space: nowrap; }

/* The rotating word ("hospital" / "clinic" / "home").
   The word changes FIRST; the blue line under it is a progress bar that
   fills from left to right until the next change. The photo follows the
   word shortly after (PHOTO_DELAY in js/main.js). */
.rotator { display: inline-grid; vertical-align: bottom; overflow: hidden; padding-bottom: .14em; margin-bottom: -.14em; }
.rotator__word {
  grid-area: 1 / 1; justify-self: start; position: relative; color: var(--blue);
  opacity: 0; transform: translateY(100%);
  transition: opacity 500ms var(--ease), transform 700ms var(--ease);
}
.rotator__word.is-active  { opacity: 1; transform: translateY(0); }
.rotator__word.is-leaving { opacity: 0; transform: translateY(-70%); transition: opacity 380ms var(--ease), transform 520ms var(--ease); }
/* progress bar: faint track (::before) + blue fill (::after) */
.rotator__word::before,
.rotator__word::after {
  content: ""; position: absolute; left: .02em; right: .02em; bottom: -.07em;
  height: max(2px, .05em); border-radius: 2px;
}
.rotator__word::before { background: rgba(15, 76, 138, .14); }
.rotator__word::after  { background: var(--blue-bright); transform: scaleX(0); transform-origin: left center; }
.hero.is-live .rotator__word.is-active::after { animation: wordbar var(--hero-interval, 5000ms) linear forwards; }
.rotator__word.is-leaving::after { transform: scaleX(1); }
.rotator__word.bar-reset::after { animation: none !important; }
@keyframes wordbar { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Phones and portrait tablets: the photo sits across the top in a fixed
   frame (same height for all three photos, so the text never jumps),
   and the headline sits underneath it. */
@media (max-width: 900px), (max-aspect-ratio: 5/4) {
  .hero { --mh: 64vw; min-height: 0; padding-top: calc(var(--mh) - 20px); }
  .hero__photo {
    height: var(--mh); object-position: var(--m-pos, 50% 50%);
    -webkit-mask-image: linear-gradient(to top, transparent 0, #000 22%);
            mask-image: linear-gradient(to top, transparent 0, #000 22%);
  }
  .hero__copy::before { display: none; }
  .hero__title { font-size: min(56px, calc((100vw - var(--gutter) * 2) / 11.2)); margin-bottom: 24px; }
  .hero__content { padding-bottom: 36px; }
}
@media (max-width: 560px) { .hero { --mh: 72vw; } }


/* =====================================================================
   7. HOME — MISSION (words turn from grey to black as you scroll)
   ===================================================================== */
.mission { position: relative; height: 230vh; background: var(--white); }
.mission__sticky {
  position: sticky; top: 0; height: 100vh; height: 100svh;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  padding: 0 var(--gutter); text-align: center;
}
.mission__text {
  font-family: var(--font-head); font-weight: 500;
  font-size: clamp(26px, 3.6vw, 50px); line-height: 1.32; letter-spacing: -0.02em;
  max-width: 1100px; margin: 0;
}
.mission__text .w { color: #D3D8DF; transition: color 600ms var(--ease); }
.mission__text .w.on { color: var(--ink); }
.mission__text .w.accent.on { color: var(--blue); }
@media (max-width: 680px) { .mission { height: 220vh; } }


/* =====================================================================
   8. HOME — PORTFOLIO (alternating product rows)
   ===================================================================== */
.product-row { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.product-row + .product-row { margin-top: var(--row-gap); }
.product-row--flip .product-row__text { order: 2; }
.product-row--flip .product-row__media { order: 1; }
.product-row__media {
  position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius-lg); overflow: hidden;
  background: linear-gradient(160deg, var(--silver-soft), var(--silver-light));
}
.product-row__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1600ms var(--ease); }
.product-row:hover .product-row__media img { transform: scale(1.03); }
.product-row__media--placeholder { display: grid; place-items: center; }
.product-row__media .chip { position: absolute; top: 20px; left: 20px; background: rgba(255,255,255,.85); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.product-row h3 { font-size: clamp(30px, 3.4vw, 46px); margin-bottom: 18px; }
.product-row p { max-width: 480px; }
.ticks { list-style: none; padding: 0; margin: 0 0 32px; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-soft); }
.ticks li::before {
  content: ""; flex: 0 0 20px; height: 20px; margin-top: 4px; border-radius: 50%;
  background: var(--blue-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%230F4C8A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 10.5l2.6 2.5L14 7.5'/%3E%3C/svg%3E") center/20px no-repeat;
}
@media (max-width: 860px) {
  .product-row { grid-template-columns: 1fr; }
  .product-row--flip .product-row__text { order: 2; }
  .product-row__text { order: 2; }
  .product-row__media { order: 1; }
}

/* Soft "coming soon" visual used where there is no product photo yet */
.soon-visual { width: 100%; height: 100%; display: grid; place-items: center; text-align: center; color: var(--silver-dark); }
.soon-visual svg { width: 72px; height: 72px; margin: 0 auto 16px; opacity: .55; }
.soon-visual span { font-family: var(--font-head); font-size: 13px; letter-spacing: .22em; text-transform: uppercase; }


/* =====================================================================
   9. CARDS, TESTIMONIALS, CERTIFICATIONS, MEDIA
   ===================================================================== */
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: clamp(24px, 3vw, 36px);
  transition: box-shadow var(--slow) var(--ease), transform var(--slow) var(--ease), border-color var(--slow) var(--ease);
}
.card:hover { box-shadow: var(--shadow-md); border-color: transparent; }

/* Segmented switch (e.g. Patients / Clinicians) */
.segmented {
  display: inline-flex; padding: 5px; border-radius: 999px; gap: 4px;
  background: var(--silver-light); margin-bottom: 48px;
}
.segmented button {
  min-height: 44px; padding: 0 24px; border-radius: 999px; border: 0; background: transparent;
  font-family: var(--font-head); font-weight: 600; font-size: 14px; color: var(--muted);
  display: inline-flex; align-items: center; gap: 10px;
  transition: background-color var(--slow) var(--ease), color var(--slow) var(--ease), box-shadow var(--slow) var(--ease);
}
.segmented button svg { width: 18px; height: 18px; }
.segmented button.is-active { background: var(--white); color: var(--ink); box-shadow: var(--shadow-sm); }
.segmented button.is-active.dark { background: var(--blue); color: var(--white); }

.testimonial { display: flex; flex-direction: column; gap: 24px; height: 100%; margin: 0; }
.testimonial > .chip { align-self: flex-start; }
.testimonial blockquote { margin: 0; font-size: 17.5px; line-height: 1.7; color: var(--ink); }
.testimonial blockquote::before { content: "\201C"; display: block; font-family: var(--font-head); font-size: 54px; line-height: .6; color: var(--silver); margin-bottom: 16px; }
.testimonial footer { margin-top: auto; display: flex; align-items: center; gap: 14px; }
.avatar { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--blue-tint); color: var(--blue); font-family: var(--font-head); font-weight: 600; font-size: 15px; flex: none; }
.testimonial strong { display: block; font-family: var(--font-head); color: var(--ink); font-size: 15px; }
.testimonial small { color: var(--muted); font-size: 13.5px; }
.testi-panel[hidden] { display: none; }
.testi-panel { animation: fadeUp 800ms var(--ease); }

/* Certification tiles */
.cert { text-align: center; padding: clamp(32px, 4vw, 48px) 24px; }
.cert__mark {
  width: 76px; height: 76px; margin: 0 auto 22px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(145deg, #FFFFFF, var(--silver-light));
  border: 1px solid var(--line); box-shadow: inset 0 1px 0 #fff, var(--shadow-sm);
  font-family: var(--font-head); font-weight: 700; font-size: 15px; letter-spacing: .04em; color: var(--blue);
}
.cert h4 { margin-bottom: 6px; }
.cert p { font-size: 14.5px; color: var(--muted); margin-bottom: 18px; }

/* Notice box (regulatory status) */
.notice {
  display: flex; gap: 18px; align-items: flex-start;
  padding: 24px 28px; border-radius: var(--radius-md);
  background: var(--blue-tint); color: var(--ink-soft); font-size: 15px; line-height: 1.65;
}
.notice svg { flex: none; width: 24px; height: 24px; color: var(--blue); margin-top: 2px; }
.notice strong { color: var(--ink); }

/* Media / press tiles (names written as text, no third-party logos) */
.media-tile {
  display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
  min-height: 210px; color: var(--ink);
}
.media-tile__name { font-family: var(--font-head); font-weight: 600; font-size: 22px; letter-spacing: -0.01em; line-height: 1.25; }
.media-tile__type { font-size: 12.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; display: block; }


/* =====================================================================
   10. CALL-TO-ACTION BAND (deep blue)
   ===================================================================== */
.cta-band {
  position: relative; overflow: hidden;
  border-radius: var(--radius-lg);
  padding: clamp(48px, 6vw, 88px) clamp(28px, 6vw, 96px);
  background: radial-gradient(120% 140% at 85% 0%, #1E66B0 0%, var(--blue) 40%, var(--blue-deep) 100%);
  color: rgba(255, 255, 255, .82); text-align: center;
}
.cta-band h2 { color: var(--white); margin-bottom: 18px; }
.cta-band p { max-width: 560px; margin: 0 auto 36px; }
.cta-band .btn-row { justify-content: center; }
/* faint symbol watermark */
.cta-band::after {
  content: ""; position: absolute; right: -60px; bottom: -80px; width: 380px; height: 300px;
  background: url("../assets/img/logo-symbol-white.png") center/contain no-repeat; opacity: .06; pointer-events: none;
}


/* =====================================================================
   11. FOOTER
   ===================================================================== */
.site-footer { background: var(--silver-soft); padding: var(--section-y) 0 40px; font-size: 15px; }
.footer-top { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 40px; }
.footer-brand img { height: 52px; width: auto; margin-bottom: 22px; }
.footer-brand p { color: var(--muted); max-width: 300px; }
.site-footer h5 { font-family: var(--font-head); font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ink); margin: 6px 0 18px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer ul a { color: var(--ink-soft); }
.site-footer ul a:hover { color: var(--blue); }
.footer-legal { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 16px 40px; justify-content: space-between; color: var(--muted); font-size: 13.5px; }
.footer-legal p { margin: 0; max-width: 760px; }
@media (max-width: 980px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-top { grid-template-columns: 1fr; } }


/* =====================================================================
   12. INNER PAGE HERO (Applications, About, Articles, Contact)
   ===================================================================== */
.page-hero {
  padding: calc(var(--header-h) + var(--hero-top)) 0 var(--section-y);
  background:
    radial-gradient(80% 60% at 85% 0%, rgba(42, 134, 216, .10), transparent 70%),
    linear-gradient(180deg, var(--silver-soft) 0%, var(--white) 100%);
}
.page-hero h1 { font-size: clamp(32px, 5.2vw, 72px); max-width: 16ch; }
.page-hero--split .container > div:first-child { container-type: inline-size; }
/* Headline where each sentence stays on its own line (Neurology page).
   "More repetitions." is 8.3 font-sizes wide; 8.7 leaves a margin. */
.page-hero h1.h1-lines { max-width: none; font-size: clamp(30px, 4.6vw, 64px); font-size: min(64px, 100cqi / 8.7); }
.h1-lines .line { display: block; white-space: nowrap; }
.page-hero--split .container { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.page-hero__media { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 5 / 4; background: var(--silver-light); box-shadow: var(--shadow-md); }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) { .page-hero--split .container { grid-template-columns: 1fr; } }

/* Breadcrumb trail */
.crumbs { font-size: 13.5px; color: var(--muted); margin-bottom: 28px; display: flex; gap: 10px; flex-wrap: wrap; }
.crumbs a { color: var(--muted); } .crumbs a:hover { color: var(--blue); }


/* =====================================================================
   13. APPLICATION PAGES (evidence, statistics, references)
   ===================================================================== */
/* Big numbers strip */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { padding: clamp(32px, 4vw, 52px) clamp(16px, 3vw, 40px); }
.stat + .stat { border-left: 1px solid var(--line); }
.stat__num { font-family: var(--font-head); font-weight: 600; font-size: clamp(40px, 5vw, 68px); letter-spacing: -0.03em; color: var(--blue); line-height: 1; margin-bottom: 14px; }
.stat__num small { font-size: .45em; letter-spacing: 0; margin-left: 4px; color: var(--blue-bright); }
.stat p { font-size: 15px; margin: 0; color: var(--ink-soft); }
.stat cite, .evidence cite { font-style: normal; font-size: 12.5px; color: var(--muted); display: block; margin-top: 10px; }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr; } .stat + .stat { border-left: 0; border-top: 1px solid var(--line); } }

/* Evidence cards */
.evidence { display: flex; flex-direction: column; gap: 14px; height: 100%; }
.evidence__figure { font-family: var(--font-head); font-weight: 600; font-size: clamp(34px, 3.6vw, 48px); letter-spacing: -0.03em; color: var(--ink); line-height: 1; }
.evidence__figure em { font-style: normal; color: var(--blue); }
.evidence h4 { margin: 0; }
.evidence p { margin: 0; font-size: 15.5px; }
.evidence cite { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
sup a { font-size: 11px; font-weight: 600; padding: 0 2px; }

/* Text + image feature split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.split__media { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3; background: var(--silver-light); }
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.split--flip .split__media { order: 2; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split--flip .split__media { order: 0; } }

/* Numbered steps */
.steps { counter-reset: step; display: grid; gap: 0; }
.step { counter-increment: step; display: grid; grid-template-columns: 64px 1fr; gap: 20px; padding: 28px 0; border-top: 1px solid var(--line); }
.step::before { content: counter(step, decimal-leading-zero); font-family: var(--font-head); font-weight: 600; color: var(--blue-bright); font-size: 15px; letter-spacing: .1em; padding-top: 4px; }
.step h4 { margin-bottom: 6px; }
.step p { margin: 0; font-size: 15.5px; }

/* References list */
.refs { font-size: 14px; color: var(--muted); padding-left: 1.4em; display: grid; gap: 10px; }
.refs li { padding-left: 6px; line-height: 1.6; }
.refs a { word-break: break-word; }
.evidence-note { font-size: 13.5px; color: var(--muted); max-width: 780px; }

/* Other applications quick links */
.app-links { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.app-link { display: flex; flex-direction: column; gap: 8px; padding: 26px; border-radius: var(--radius-md); background: var(--white); border: 1px solid var(--line); color: var(--ink); transition: border-color var(--slow) var(--ease), box-shadow var(--slow) var(--ease); }
.app-link:hover { border-color: transparent; box-shadow: var(--shadow-md); color: var(--ink); }
.app-link strong { font-family: var(--font-head); font-size: 17px; }
.app-link span { font-size: 14px; color: var(--muted); }
.app-link.is-current { background: var(--blue-tint); border-color: transparent; }
@media (max-width: 900px) { .app-links { grid-template-columns: 1fr 1fr; } }


/* =====================================================================
   14. PRODUCT PAGE (Therabot) — matches Product_page_template
   ===================================================================== */
.product-hero {
  padding: calc(var(--header-h) + var(--hero-top)) 0 0;
  text-align: center;
  background: radial-gradient(70% 55% at 50% 72%, #E4EEF9 0%, rgba(228, 238, 249, 0) 70%), var(--white);
}
.product-hero h1 { font-size: clamp(40px, 6vw, 80px); margin: 0 auto 18px; max-width: 22ch; }
.product-hero .lead { margin: 0 auto 28px; }
.product-hero .links { display: flex; justify-content: center; gap: 32px; flex-wrap: wrap; margin-bottom: clamp(28px, 4vw, 48px); }
.product-hero__img { max-width: 1100px; margin: 0 auto; }
.product-hero__img img { width: 100%; height: auto; border-radius: var(--radius-lg) var(--radius-lg) 0 0; -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 100%); mask-image: linear-gradient(180deg, #000 70%, transparent 100%); }

/* Disclaimer strip directly under the product hero */
.status-strip { display: flex; justify-content: center; padding: 8px var(--gutter) 0; }
.status-strip .notice { max-width: 900px; }

/* Arm / Leg / Gait switcher with labelled callouts */
.mode-switch { text-align: center; }
/* Photo on the left, labels on the right in their own white space,
   so the text never sits on top of the photo. */
.mode-stage {
  display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px); align-items: center;
  max-width: 1100px; margin: 0 auto; text-align: left;
}
.mode-media { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius-lg); overflow: hidden; background: var(--silver-soft); box-shadow: var(--shadow-md); }
.mode-pane { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 1000ms var(--ease), visibility 0s linear 1000ms; }
.mode-pane.is-active { opacity: 1; visibility: visible; transition: opacity 1000ms var(--ease), visibility 0s; }
.mode-pane img { width: 100%; height: 100%; object-fit: cover; }
.mode-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; animation: fadeUp 800ms var(--ease); }
.mode-list[hidden] { display: none; }
.mode-list li { display: grid; grid-template-columns: 22px 1fr; gap: 14px; padding: 22px 0; border-top: 1px solid var(--line); }
.mode-list li:last-child { border-bottom: 1px solid var(--line); }
.mode-list li::before { content: ""; width: 9px; height: 9px; margin: 8px 0 0 4px; border-radius: 50%; background: var(--blue-bright); box-shadow: 0 0 0 6px rgba(42, 134, 216, .15); }
.mode-list strong { display: block; font-family: var(--font-head); font-weight: 600; font-size: 16.5px; color: var(--ink); margin-bottom: 4px; }
.mode-list span { font-size: 15px; color: var(--muted); line-height: 1.55; }
@media (max-width: 860px) { .mode-stage { grid-template-columns: 1fr; } }

/* "Three settings" image cards */
.setting-card { border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--line); background: var(--white); height: 100%; display: flex; flex-direction: column; transition: box-shadow var(--slow) var(--ease); }
.setting-card:hover { box-shadow: var(--shadow-md); }
.setting-card__img { aspect-ratio: 4 / 3; overflow: hidden; }
.setting-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1600ms var(--ease); }
.setting-card:hover .setting-card__img img { transform: scale(1.04); }
.setting-card__body { padding: 26px 28px 30px; display: grid; grid-template-columns: 40px 1fr; gap: 16px; }
.setting-card__body svg { width: 28px; height: 28px; color: var(--blue); margin-top: 2px; }
.setting-card h4 { margin-bottom: 6px; }
.setting-card p { margin: 0; font-size: 15px; }

/* Spec table + comparison table */
.spec-wrap { display: grid; grid-template-columns: .9fr 1.3fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.spec-table, .compare-table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.spec-table th, .spec-table td { text-align: left; padding: 18px 20px; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table th { width: 38%; font-family: var(--font-head); font-weight: 600; color: var(--ink); font-size: 14.5px; }
.spec-table tr:first-child th, .spec-table tr:first-child td { border-top: 1px solid var(--line); }
.placeholder { color: var(--silver-dark); font-style: italic; }
@media (max-width: 860px) { .spec-wrap { grid-template-columns: 1fr; } }

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius-md); border: 1px solid var(--line); background: var(--white); }
.compare-table th, .compare-table td { padding: 18px 22px; text-align: left; border-bottom: 1px solid var(--line); }
.compare-table tr:last-child td { border-bottom: 0; }
.compare-table thead th { font-family: var(--font-head); font-size: 14px; font-weight: 600; color: var(--muted); background: var(--silver-soft); }
.compare-table thead th.us { background: var(--blue-tint); color: var(--blue); }
.compare-table td:first-child { font-family: var(--font-head); font-weight: 600; color: var(--ink); width: 22%; }
.compare-table td.us { background: rgba(238, 244, 251, .55); color: var(--ink); font-weight: 500; }
.compare-table td.us::before { content: "\2713"; color: #2FB37A; font-weight: 700; margin-right: 10px; }
.compare-table { min-width: 620px; }

/* Platform / coming soon cards */
.platform-card { position: relative; border-radius: var(--radius-md); border: 1px solid var(--line); background: var(--white); padding: 18px; display: flex; flex-direction: column; gap: 16px; height: 100%; transition: box-shadow var(--slow) var(--ease); color: var(--ink); }
.platform-card:hover { box-shadow: var(--shadow-md); color: var(--ink); }
.platform-card__img { aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: linear-gradient(160deg, var(--silver-soft), var(--silver-light)); display: grid; place-items: center; }
.platform-card__img img { width: 100%; height: 100%; object-fit: cover; }
.platform-card__img.blurred img { filter: blur(14px) saturate(.6); transform: scale(1.15); opacity: .7; }
.platform-card__body { padding: 0 6px 6px; display: flex; flex-direction: column; gap: 10px; }
.platform-card strong { font-family: var(--font-head); font-size: 18px; }
.platform-card span.desc { font-size: 14px; color: var(--muted); }


/* =====================================================================
   15. COMING SOON PRODUCT PAGES
   ===================================================================== */
.soon-hero { display: flex; align-items: center; padding: calc(var(--header-h) + var(--hero-top)) 0 var(--section-y); background: radial-gradient(70% 60% at 70% 30%, #E7F0FA 0%, rgba(231,240,250,0) 70%), var(--white); }
.soon-hero .container { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.soon-hero h1 { font-size: clamp(40px, 7vw, 96px); margin-bottom: 14px; }
/* The product name always fits its column on one line: the title shrinks with the
   width of the text column (cqi = 1% of that column's width). "Therabot Pro" is
   about 6.4 times as wide as its font size, so 15cqi leaves a little margin. */
.soon-hero .container > div:first-child { container-type: inline-size; }
@supports (font-size: 1cqi) {
  .soon-hero h1 { font-size: min(clamp(40px, 7vw, 96px), 15cqi); }
}
.soon-hero__media { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 5; background: linear-gradient(160deg, var(--silver-soft), var(--silver-light)); position: relative; }
.soon-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.soon-hero__media.veiled img { filter: blur(3px) saturate(.9); transform: scale(1.04); }
.soon-hero__media .chip { position: absolute; left: 20px; top: 20px; background: rgba(255,255,255,.9); }
@media (max-width: 860px) { .soon-hero .container { grid-template-columns: 1fr; } .soon-hero__media { aspect-ratio: 4 / 3; } }


/* =====================================================================
   16. ARTICLES
   ===================================================================== */
.article-card { display: flex; flex-direction: column; height: 100%; border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--line); background: var(--white); color: var(--ink); transition: box-shadow var(--slow) var(--ease); }
.article-card:hover { box-shadow: var(--shadow-md); color: var(--ink); }
.article-card__img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--silver-light); }
.article-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1600ms var(--ease); }
.article-card:hover .article-card__img img { transform: scale(1.04); }
.article-card__body { padding: 28px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.article-card__meta { font-size: 13px; color: var(--muted); letter-spacing: .04em; }
.article-card h3 { font-size: 22px; margin: 0; }
.article-card p { font-size: 15px; color: var(--ink-soft); margin: 0; }
.article-card .link-arrow { margin-top: auto; padding-top: 8px; }

.prose { font-size: 18px; line-height: 1.8; color: var(--ink-soft); }
.prose h2 { font-size: clamp(26px, 3vw, 36px); margin-top: 2.2em; }
.prose h3 { margin-top: 1.8em; }
.prose blockquote { margin: 2em 0; padding: 4px 0 4px 28px; border-left: 2px solid var(--blue-bright); font-family: var(--font-head); font-size: 22px; line-height: 1.5; color: var(--ink); }
.prose .figure-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 2em 0; }
.prose .figure-row div { background: var(--silver-soft); border-radius: var(--radius-sm); padding: 22px; }
.prose .figure-row strong { display: block; font-family: var(--font-head); font-size: 32px; color: var(--blue); letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 6px; }
.prose .figure-row span { font-size: 14px; line-height: 1.5; display: block; }
@media (max-width: 640px) { .prose .figure-row { grid-template-columns: 1fr; } }
.article-hero-img { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16 / 8; margin-top: 48px; }
.article-hero-img img { width: 100%; height: 100%; object-fit: cover; }


/* =====================================================================
   17. TEAM, JOURNEY, HIRING
   ===================================================================== */
.person { text-align: left; }
.person__img { aspect-ratio: 4 / 5; border-radius: var(--radius-md); overflow: hidden; background: var(--silver-light); margin-bottom: 20px; }
.person__img img { width: 100%; height: 100%; object-fit: cover; }
.person__img--empty { display: grid; place-items: center; color: var(--silver-dark); font-family: var(--font-head); font-size: 13px; letter-spacing: .18em; text-transform: uppercase; }
.person h4 { margin-bottom: 2px; }
.person span { font-size: 14.5px; color: var(--muted); }

.timeline { position: relative; display: grid; gap: 0; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 1px; background: var(--line); }
.tl-item { position: relative; padding: 0 0 56px 48px; }
.tl-item::before { content: ""; position: absolute; left: 0; top: 6px; width: 15px; height: 15px; border-radius: 50%; background: var(--white); border: 2px solid var(--silver); }
.tl-item.done::before { background: var(--blue); border-color: var(--blue); }
.tl-item.now::before { background: var(--white); border-color: var(--blue-bright); box-shadow: 0 0 0 6px rgba(42,134,216,.15); }
.tl-item time { font-family: var(--font-head); font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--blue-bright); }
.tl-item h3 { margin: 8px 0 8px; font-size: 24px; }
.tl-item p { margin: 0; max-width: 620px; }

.role { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 28px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.role h4 { margin-bottom: 4px; }
.role span { font-size: 14.5px; color: var(--muted); }


/* =====================================================================
   18. FORMS (Contact + Waitlist)
   ===================================================================== */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 20px; }
.form .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-family: var(--font-head); font-size: 13.5px; font-weight: 600; color: var(--ink); }
.field label .req { color: var(--blue-bright); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 54px; padding: 14px 18px;
  border: 1px solid var(--line); border-radius: 14px; background: var(--white);
  font: inherit; font-size: 16px; color: var(--ink);
  transition: border-color var(--slow) var(--ease), box-shadow var(--slow) var(--ease);
  -webkit-appearance: none; appearance: none;
}
.field select { background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%236B7685' stroke-width='1.6'%3E%3Cpath d='M5 8l5 5 5-5'/%3E%3C/svg%3E") right 16px center/18px no-repeat; padding-right: 44px; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue-bright); box-shadow: 0 0 0 4px rgba(42, 134, 216, .12); }
.field .hint { font-size: 13px; color: var(--muted); }
.field .error { font-size: 13px; color: #B4372F; display: none; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #D9786F; }
.field.has-error .error { display: block; }
.phone-row { display: grid; grid-template-columns: 120px 1fr; gap: 10px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; color: var(--ink-soft); }
.check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--blue); flex: none; }
.hp { position: absolute; left: -9999px; } /* spam trap, hidden from people */
.form-success { display: none; text-align: center; padding: 48px 24px; }
.form-success svg { width: 56px; height: 56px; color: #2FB37A; margin: 0 auto 18px; }
form.is-sent { display: none; }
form.is-sent + .form-success { display: block; animation: fadeUp 900ms var(--ease); }
@media (max-width: 640px) { .form { grid-template-columns: 1fr; } }

.contact-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact-aside { position: sticky; top: calc(var(--header-h) + 32px); }
.contact-aside ul { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 18px; }
.contact-aside li { display: grid; grid-template-columns: 28px 1fr; gap: 14px; font-size: 15.5px; }
.contact-aside li svg { width: 22px; height: 22px; color: var(--blue); margin-top: 3px; }
@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; } .contact-aside { position: static; } }


/* =====================================================================
   19. MODALS (video "See it move" + waitlist)
   ===================================================================== */
.modal {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center; padding: 24px;
  background: rgba(8, 20, 38, .55);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  opacity: 0; visibility: hidden;
  transition: opacity 600ms var(--ease), visibility 0s linear 600ms;
}
.modal.is-open { opacity: 1; visibility: visible; transition: opacity 600ms var(--ease), visibility 0s; }
.modal__box {
  position: relative; width: 100%; max-width: 980px; max-height: calc(100vh - 48px); overflow: auto;
  background: var(--white); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 44px);
  box-shadow: 0 40px 120px rgba(8, 20, 38, .3);
  transform: translateY(16px) scale(.985); transition: transform 700ms var(--ease);
}
.modal.is-open .modal__box { transform: none; }
.modal__box--form { max-width: 640px; }
.modal__close {
  position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--white); display: grid; place-items: center; color: var(--ink);
  transition: background-color var(--slow) var(--ease);
}
.modal__close:hover { background: var(--silver-light); }
.modal__close svg { width: 18px; height: 18px; }
.video-frame { border-radius: var(--radius-md); overflow: hidden; background: #0B1422; display: grid; place-items: center; }
.video-frame video { width: 100%; max-height: 68vh; object-fit: contain; background: #0B1422; }
.modal .segmented { margin-bottom: 24px; }
body.modal-open { overflow: hidden; }


/* =====================================================================
   20. SCROLL REVEAL ANIMATIONS (gentle fade-up)
   ===================================================================== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity var(--slower) var(--ease), transform var(--slower) var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 120ms; } .reveal-d2 { transition-delay: 240ms; } .reveal-d3 { transition-delay: 360ms; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
/* If JavaScript is off, show everything */
.no-js .reveal { opacity: 1; transform: none; }

/* Respect the "Reduce motion" accessibility setting (macOS/iOS/Windows):
   the hero still rotates and the mission still lights up, but nothing
   slides, zooms or blurs; changes are simple fades. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__slide img, .hero__slide.is-active img, .hero__slide.is-leaving img { transform: none !important; transition: none; }
  .rotator__word, .rotator__word.is-leaving { transform: none; filter: none; }
  .rotator__word.is-active::after { transition: none; }
  .reveal { transform: none; }
}

/* Phones: keep all three comparison columns visible without sideways scrolling */
@media (max-width: 640px) {
  .compare-table { min-width: 0; font-size: 13.5px; }
  .compare-table th, .compare-table td { padding: 14px 12px; }
  .compare-table td.us::before { margin-right: 6px; }
}

/* Phones: one Application link per row (long words like "Rehabilitation" need the width) */
@media (max-width: 560px) { .app-links { grid-template-columns: 1fr; } .app-link { padding: 20px 22px; } }

/* Dextro photo: shown whole on a matching light-grey background */
.media--dextro, .soon-hero__media.media--dextro, .platform-card__img.media--dextro { background: #F3F3F3; }
.media--dextro img { object-fit: contain !important; object-position: right center !important; padding: 6% 0 6% 6%; }  /* forearm runs off the right edge, like the photo */
.soon-hero__media.media--dextro { aspect-ratio: 4 / 3; }


/* =====================================================================
   21. BACKERS' LOGOS + MEDIA POSTS (home page and Therabot page)
   Each logo's height comes from style="--lh: …" in the HTML, chosen so
   the four logos look equally large even though their shapes differ.
   ===================================================================== */
.backers {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: clamp(28px, 5vw, 72px) clamp(36px, 6vw, 88px);
  padding: clamp(28px, 4vw, 44px) 0;
  margin: 0 auto clamp(40px, 5vw, 64px);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.backers img { height: var(--lh, 48px); width: auto; transition: transform var(--slow) var(--ease); }
.backers img:hover { transform: translateY(-2px); }
@media (max-width: 640px) {
  .backers { display: grid; grid-template-columns: 1fr 1fr; justify-items: center; gap: 32px 20px; }
  .backers img { height: calc(var(--lh, 48px) * .78); max-width: 100%; }
}

.press-card { display: flex; flex-direction: column; gap: 14px; color: inherit; transition: transform var(--slow) var(--ease), box-shadow var(--slow) var(--ease); }
.press-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.press-card__logo { height: 64px; display: flex; align-items: center; padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.press-card__logo img { height: calc(var(--lh, 48px) * .74); width: auto; max-width: 80%; }
.press-card__source { font-family: var(--font-head); font-size: 12.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.press-card h4 { line-height: 1.35; margin: 0; }
.press-card p { font-size: 15px; color: var(--ink-soft); margin: 0; }
.press-card .link-arrow { margin-top: auto; padding-top: 6px; }


/* =====================================================================
   22. "QUESTIONS ABOUT THIS PRODUCT?" strip on every product page
   ===================================================================== */
/* even space above and below the box (the next section adds the space below) */
.ask-section { padding-top: var(--section-y); padding-bottom: 0; }
.ask-strip {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 24px 48px;
  padding: clamp(28px, 4vw, 48px); border-radius: var(--radius-lg);
  background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm, 0 2px 10px rgba(12,27,46,.04));
}
.ask-strip h3 { margin: 6px 0 10px; }
.ask-strip p { margin: 0; color: var(--ink-soft); max-width: 620px; }
/* min-width:0 lets the text column shrink, so long words or a long button
   never push past the box (seen on phones with larger text settings) */
.ask-strip > * { min-width: 0; }
@media (max-width: 760px) {
  .ask-strip { grid-template-columns: 1fr; }
  .ask-strip .btn { white-space: normal; max-width: 100%; text-align: left; line-height: 1.3; padding-top: 14px; padding-bottom: 14px; }
}
.card-text { margin: 0; font-size: 15.5px; }


/* =====================================================================
   23. WAITLIST PAGE
   ===================================================================== */
.assistive-box { padding: 28px; border-radius: var(--radius-lg); background: var(--blue-tint); border: 1px solid rgba(15, 76, 138, .12); }
.assistive-box h3 { font-size: 22px; margin: 6px 0 12px; }
.assistive-box p { font-size: 15.5px; color: var(--ink-soft); }
.assistive-box p:last-child { margin-bottom: 0; }

.form-step { display: flex; align-items: center; gap: 12px; font-family: var(--font-head); font-weight: 600; font-size: 17px; color: var(--ink); padding-top: 14px; }
.form-step:first-of-type { padding-top: 0; }
.form-step span { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--blue); color: #fff; font-size: 13.5px; flex: none; }
.form-step small { font-weight: 500; color: var(--muted); font-size: 14px; }
.form .form-step + .field, .form .form-step { margin-top: 0; }
.waitlist-form .form-step:not(:first-of-type) { border-top: 1px solid var(--line); padding-top: 28px; margin-top: 8px; }

/* Product tiles: tap to tick */
.product-pick { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.product-pick label {
  position: relative; display: grid; grid-template-columns: 64px 1fr; grid-template-rows: auto auto auto; column-gap: 14px; align-items: center;
  padding: 14px; border: 1.5px solid var(--line); border-radius: 16px; background: var(--white); cursor: pointer;
  transition: border-color var(--slow) var(--ease), box-shadow var(--slow) var(--ease), background var(--slow) var(--ease);
}
.product-pick label:hover { border-color: var(--silver); }
.product-pick input { position: absolute; top: 14px; right: 14px; width: 20px; height: 20px; accent-color: var(--blue); }
.product-pick img { grid-row: 1 / 4; width: 64px; height: 64px; border-radius: 12px; object-fit: cover; background: var(--silver-soft); }
.product-pick .media--dextro img, .product-pick label.media--dextro img { object-fit: contain; background: #F3F3F3; }
.product-pick label.media--dextro { background: var(--white); }
.product-pick strong { font-family: var(--font-head); font-size: 16px; color: var(--ink); padding-right: 28px; }
.product-pick small { font-size: 13.5px; color: var(--muted); line-height: 1.4; }
.product-pick em { font-style: normal; justify-self: start; margin-top: 6px; font-size: 11.5px; padding: 4px 10px; }
.product-pick label:has(input:checked) { border-color: var(--blue); background: var(--blue-tint); box-shadow: 0 0 0 3px rgba(15, 76, 138, .08); }
.field.has-error .product-pick label { border-color: #E3A39D; }
@media (max-width: 520px) { .product-pick { grid-template-columns: 1fr; } }

/* Condition chips: tap to tick */
.chip-pick { display: flex; flex-wrap: wrap; gap: 10px; }
.chip-pick label { position: relative; cursor: pointer; font-family: var(--font-body, inherit); font-weight: 500; }
.chip-pick input { position: absolute; opacity: 0; pointer-events: none; }
.chip-pick span { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--line); font-size: 14.5px; color: var(--ink-soft); background: var(--white); transition: all var(--slow) var(--ease); }
.chip-pick input:checked + span { border-color: var(--blue); background: var(--blue-tint); color: var(--blue); }
.chip-pick input:focus-visible + span { box-shadow: 0 0 0 4px rgba(42, 134, 216, .18); }

.check--boxed { padding: 18px; border-radius: 14px; background: var(--silver-soft); border: 1px solid var(--line); }
.check--boxed strong { color: var(--ink); }
.field.has-error .check--boxed { border-color: #E3A39D; background: #FDF6F5; }


/* =====================================================================
   24. READING SIZE ON LAPTOPS AND MONITORS
   Small text (card text, lists, captions) is one step larger on screens
   1024px and wider. Headings are unchanged, so they still lead.
   To change: edit the sizes below and reload.
   ===================================================================== */
@media (min-width: 1024px) {
  body { font-size: 18px; }
  .lead { font-size: clamp(19px, 1.55vw, 22px); }
  h4 { font-size: 20px; }
  .mode-list strong { font-size: 17.5px; }
  .mode-list span, .setting-card p, .stat p, .article-card p, .platform-card span.desc,
  .app-link span, .person span, .role span, .press-card p, .card-text, .assistive-box p { font-size: 16.5px; }
  .evidence p, .step p, .spec-table, .compare-table, .contact-aside li { font-size: 16.5px; }
  .spec-table th { font-size: 15.5px; }
  .testimonial blockquote { font-size: 18.5px; }
  .testimonial small, .article-card__meta, .evidence-note, .refs { font-size: 14.5px; }
  .stat cite, .evidence cite { font-size: 13.5px; }
  .check { font-size: 15.5px; }
  .field label { font-size: 14px; }
  .field .hint, .field .error { font-size: 14px; }
  .platform-card strong { font-size: 19px; }
  .site-footer { font-size: 15.5px; }
  .prose { font-size: 19px; }
  .notice { font-size: 16px; }
  .dropdown a span { font-size: 13.5px; }
}
#contact-form, #waitlist-form, #media { scroll-margin-top: calc(var(--header-h) + 16px); }
/* Tick boxes inside form fields keep their normal small size */
.field input[type="checkbox"] { -webkit-appearance: checkbox; appearance: auto; width: 20px; height: 20px; min-height: 0; padding: 0; border-radius: 4px; box-shadow: none; flex: none; accent-color: var(--blue); }
.product-pick small { padding-right: 24px; }
.field label.check { font-family: var(--font-body); font-weight: 400; color: var(--ink-soft); font-size: 15px; line-height: 1.55; }
@media (min-width: 1024px) { .field label.check { font-size: 15.5px; } }


/* =====================================================================
   25. MEDIA CAROUSEL (home page)
   A row of news cards that slides sideways (drag, swipe, scroll or use
   the arrow buttons). Card width: --card-w below.
   ===================================================================== */
.section-head.split { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.carousel-nav { display: flex; gap: 10px; flex: none; }
.carousel-btn {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: var(--white); border: 1px solid var(--line); color: var(--ink); cursor: pointer;
  transition: background var(--slow) var(--ease), color var(--slow) var(--ease), border-color var(--slow) var(--ease), opacity var(--slow) var(--ease);
}
.carousel-btn svg { width: 20px; height: 20px; }
.carousel-btn:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.carousel-btn:disabled { opacity: .35; pointer-events: none; }

.carousel { --card-w: clamp(280px, 30vw, 400px); }
.carousel__track {
  display: flex; gap: clamp(16px, 2vw, 28px);
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 8px max(var(--gutter), calc((100vw - var(--container, 1200px)) / 2)) 28px;
  scroll-padding-inline: max(var(--gutter), calc((100vw - var(--container, 1200px)) / 2));
  scrollbar-width: none; -webkit-overflow-scrolling: touch; outline: none;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track:focus-visible { box-shadow: inset 0 0 0 2px rgba(42, 134, 216, .35); border-radius: 12px; }

.story {
  flex: 0 0 var(--card-w); scroll-snap-align: start;
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg, 24px);
  color: inherit; text-decoration: none;
  transition: transform var(--slow) var(--ease), box-shadow var(--slow) var(--ease);
}
a.story:hover { transform: translateY(-4px); box-shadow: 0 22px 50px rgba(12, 27, 46, .10); }
a.story:hover .story__media img { transform: scale(1.04); }
.story__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--silver-soft); }
.story__media > img { width: 100%; height: 100%; object-fit: cover; transition: transform 1200ms var(--ease); }
/* the big number chip on photo cards */
.story__stat {
  position: absolute; left: 16px; bottom: 16px;
  padding: 8px 14px; border-radius: 999px;
  background: rgba(8, 48, 92, .82); color: #fff; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-family: var(--font-head); font-weight: 600; font-size: 14px; letter-spacing: .02em;
}
/* cards without a photo: the organisation's logo + a big number */
.story__brand {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center;
  background: radial-gradient(120% 90% at 50% 0%, #FFFFFF 0%, var(--silver-soft) 60%, #E9EDF2 100%);
}
.story__brand img { height: var(--lh, 56px); width: auto; max-width: 70%; margin-bottom: 10px; transition: transform 1200ms var(--ease); }
.story__brand strong { font-family: var(--font-head); font-weight: 600; font-size: clamp(30px, 3vw, 40px); letter-spacing: -.02em; color: var(--blue-deep); line-height: 1; }
.story__brand small { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.story__brand--wtf { background: radial-gradient(120% 90% at 50% 0%, #FFFCF2 0%, #FBF3DC 70%, #F5E9C8 100%); }
.story__brand--wtf strong { color: #171717; }
.story__brand--spc { background: radial-gradient(120% 90% at 50% 0%, #FFFFFF 0%, #F3F1EA 70%, #E9E5D8 100%); }
.story__brand--nsrcel strong, .story__brand--nsrcel2 strong { color: #C65A2E; }
.story__brand--nsrcel { background: radial-gradient(120% 90% at 50% 0%, #FFFFFF 0%, #FBF1EC 70%, #F5E2D8 100%); }
.story__brand--nsrcel2 { background: radial-gradient(120% 90% at 50% 100%, #FFFFFF 0%, #FBF1EC 70%, #F5E2D8 100%); }
.story__brand--antler { background: radial-gradient(120% 90% at 50% 0%, #FFFFFF 0%, #F2F2F2 70%, #E6E6E6 100%); }
.story__brand--antler strong { color: #111; }
.story__brand--artpark { background: radial-gradient(120% 90% at 50% 0%, #FFFFFF 0%, #F1EFFB 70%, #E4E0F6 100%); }
.story__brand--artpark strong { color: #3A2E9C; }

.story__body { display: flex; flex-direction: column; gap: 10px; padding: 22px 24px 26px; flex: 1; }
.story__tag { font-family: var(--font-head); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--blue-bright); }
.story__title { font-size: 20px; line-height: 1.3; margin: 0; letter-spacing: -.01em; }
.story__body p { font-size: 15px; color: var(--ink-soft); margin: 0; line-height: 1.6; }
.story__body .link-arrow { margin-top: auto; padding-top: 8px; }
@media (min-width: 1024px) { .story__title { font-size: 21px; } .story__body p { font-size: 16px; } }
@media (max-width: 640px) {
  .carousel { --card-w: 82vw; }
  .section-head.split { align-items: flex-start; }
  .carousel-nav { display: none; }   /* phones swipe instead */
}
@media (max-width: 640px) { .backers img[alt="Antler"] { height: 24px; } }

/* Two testimonials side by side (home page) */
.testi-duo { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(20px, 3vw, 36px); max-width: 1040px; margin: 0 auto; }
.testi-duo .testimonial { padding: clamp(28px, 4vw, 48px); }
.testi-duo .testimonial blockquote { font-family: var(--font-head); font-weight: 500; font-size: clamp(19px, 1.7vw, 23px); line-height: 1.5; letter-spacing: -.01em; }
@media (max-width: 760px) { .testi-duo { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .backers img:last-child:nth-child(odd) { grid-column: 1 / -1; } }
.story__brand--meity { background: radial-gradient(120% 90% at 50% 0%, #FFFFFF 0%, #EEF4FB 70%, #DFEAF6 100%); }
.story__brand--antler strong { color: #A6192E; }
.story__brand--atf { background: radial-gradient(120% 90% at 50% 0%, #FFFFFF 0%, #FBF0F1 70%, #F4DFE2 100%); }
.story__brand--atf strong { color: #A6192E; }

/* Mission page */
.mission--short { height: 170vh; }
h1.mission__text { margin: 0; }
.story-copy { margin-top: 28px; }
.story-copy p { margin-bottom: 1.25em; }
.story-copy .lead-strong { font-family: var(--font-head); font-weight: 500; font-size: clamp(20px, 1.9vw, 24px); line-height: 1.5; color: var(--ink); margin-top: 1.6em; }
a.cite { font-size: .72em; vertical-align: super; line-height: 0; margin-left: 2px; color: var(--blue-bright); text-decoration: none; font-weight: 600; }
a.cite:hover { text-decoration: underline; }
.refs li:target { background: var(--blue-tint); border-radius: 8px; }
.mission--short .mission__text { font-size: clamp(32px, 5vw, 70px); max-width: 1000px; line-height: 1.2; }


/* =====================================================================
   26. "PROPRIETARY, PATENT-PENDING DESIGN" BADGE
   Used once per product page (under the intro buttons) and in the
   specifications tables. Keep it to these places so it never feels
   overdone.
   ===================================================================== */
.ip-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px 7px 10px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--white);
  font-family: var(--font-head); font-size: 12.5px; font-weight: 600; letter-spacing: .04em; color: var(--ink-soft);
}
.ip-badge svg { width: 16px; height: 16px; color: var(--blue); flex: none; }
.product-hero .ip-badge { margin: -8px auto clamp(24px, 3vw, 40px); }
.soon-hero .ip-badge { margin-top: 18px; }
.ip-note { font-size: 13px; color: var(--muted); }

/* Alvio VR page: photo instead of a product cut-out in the intro */
.product-hero__img--photo { max-width: 1100px; padding: 0 var(--gutter); }
.product-hero__img--photo img { aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-lg); -webkit-mask-image: none; mask-image: none; box-shadow: var(--shadow-md); }

/* Feature grid (Alvio VR) */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.feature { padding: 32px 28px 32px 0; border-bottom: 1px solid var(--line); }
.feature h4 { margin-bottom: 8px; }
.feature p { margin: 0; color: var(--ink-soft); font-size: 15.5px; }
@media (min-width: 1024px) { .feature p { font-size: 16.5px; } }
@media (max-width: 860px) { .feature-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .feature-grid { grid-template-columns: 1fr; } .feature { padding-right: 0; } }

.audience-grid .card h3 { margin: 8px 0 18px; }
@media (max-width: 760px) { .audience-grid { grid-template-columns: 1fr; } }

/* FAQ (tap to open) */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 0; font-family: var(--font-head); font-weight: 600; font-size: 17px; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; font-size: 24px; color: var(--muted); transition: transform 500ms var(--ease); flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 22px; color: var(--ink-soft); max-width: 640px; }

/* Mission page statement: three lines, bold, with a scroll prompt */
.mission--short .mission__text { font-weight: 600; font-size: clamp(30px, 4.6vw, 68px); max-width: none; line-height: 1.18; }
.mission--short .mission__text .w { color: #C9CFD7; }
.mission--short .mission__text .w.on { color: var(--ink); }
.mission--short .mission__text .w.accent.on { color: var(--blue); }
/* Mission statement: three fixed lines shaped like an upside-down triangle
   (line 1 >= line 2 > line 3). The lines never re-wrap; instead the text
   shrinks so the longest line (about 12.6 times the font size) always fits. */
.mission--short .mission__text { font-weight: 500; white-space: nowrap;
  font-size: min(clamp(30px, 4.6vw, 68px), calc((100vw - 2 * var(--gutter)) / 13.2)); }
.scroll-cue {
  position: absolute; bottom: clamp(28px, 6vh, 56px); left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-family: var(--font-head); font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
  transition: opacity 600ms var(--ease);
}
.scroll-cue i { position: relative; width: 1px; height: 46px; background: var(--line); overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--blue-bright); animation: cueDrop 1.8s var(--ease) infinite; }
@keyframes cueDrop { to { top: 100%; } }
.mission.is-scrolled .scroll-cue { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .scroll-cue i::after { animation: none; top: 0; height: 100%; } }

/* Alvio VR: four features in one row on wide screens */
.feature-grid--4 { grid-template-columns: repeat(4, 1fr); }
.feature-grid--4 .feature { padding-right: 32px; }
@media (max-width: 1100px) { .feature-grid--4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .feature-grid--4 { grid-template-columns: 1fr; } }

/* Mission page "Why we do this" heading: exactly two lines on laptops and wider */
.h2-lines { max-width: none; font-size: clamp(28px, 3.1vw, 46px); }
@media (min-width: 900px) { .h2-lines .line { display: block; white-space: nowrap; } }
.contact-aside li a { color: var(--blue); font-weight: 500; word-break: break-word; }
.contact-aside li a:hover { text-decoration: underline; }


/* =====================================================================
   27. PHONES: solid white header bar + tighter Articles intro
   ===================================================================== */
/* On phones the header is a solid white bar of its own. Every page starts
   BELOW it, so the bar never covers part of a photo. */
@media (max-width: 760px) {
  :root { --header-h: 72px; }
  .site-header,
  .site-header.is-scrolled {
    background: var(--white);
    -webkit-backdrop-filter: none; backdrop-filter: none;
    box-shadow: 0 1px 0 var(--line);
  }
  .brand-symbol img { height: 36px; filter: none; }
  .menu-toggle { width: 46px; height: 46px; background: var(--silver-soft); border-color: var(--line); box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  /* push all page content below the bar... */
  main { padding-top: var(--header-h); }
  /* ...so the first sections no longer need to leave room for it themselves */
  .page-hero, .soon-hero { padding-top: var(--hero-top); }
  .product-hero { padding-top: var(--hero-top); }
  /* Mission page statement: centre it in the space under the bar */
  .mission__sticky { top: var(--header-h); height: calc(100svh - var(--header-h)); }
}

/* Articles page: the intro sits closer to the article cards */
.page-hero--tight { padding-bottom: clamp(24px, 3vw, 40px); }
.page-hero--tight + .section { padding-top: 0; }

/* Safety net for very narrow phones (or phones with large text settings):
   boxes inside grids and rows may shrink, so text wraps inside them
   instead of being cut off at the screen edge. */
main :where(div, article, aside, figure, form, ul, li) { min-width: 0; }
/* Never split a word in the middle of a big title; smaller headings may break only as a last resort */
h1 { overflow-wrap: normal; }
h2, h3, h4 { overflow-wrap: break-word; }
/* Arm / Leg / Gait switch: on the narrowest phones the three buttons share
   the width evenly instead of running off the screen */
@media (max-width: 400px) {
  .segmented { display: flex; width: 100%; max-width: 100%; }
  .segmented button { flex: 1 1 0; min-width: 0; padding-left: 8px; padding-right: 8px; justify-content: center; gap: 6px; }
}
/* Specification tables wrap long values instead of widening past the screen */
.spec-table { width: 100%; }
.spec-table td, .spec-table th { overflow-wrap: anywhere; }
