/* Arcus — landing page
   Marcellus (headlines) + Plus Jakarta Sans (text) */

:root {
  --ink: #111111;
  --ink-2: #555555;
  --ink-3: #8C8C8C;
  --bg: #FFFFFF;
  --gray: #F3F3F1;
  --gray-hover: #EAEAE6;
  --ok: #1E7F4F;
  --r: 44px;        /* the one corner radius: hero, tiles, CTA. Short things (buttons, rows) clamp to a pill */

  --serif: "Marcellus", Georgia, serif;
  --sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ios: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
/* the rail on the right shows scroll position, so the browser's own scrollbar is hidden (Chrome, Safari, Firefox, Edge) */
html { scrollbar-width: none; -ms-overflow-style: none; }
html::-webkit-scrollbar, body::-webkit-scrollbar { display: none; width: 0; height: 0; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
figure { margin: 0; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
p { text-wrap: pretty; }

.icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

.wrap { width: min(1240px, 100% - 48px); margin-inline: auto; }

.word {
  font-family: var(--serif);
  font-size: 28px;
  letter-spacing: 0;
  line-height: 1;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: var(--r);
  background: var(--ink);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  transition: opacity .2s;
}
.btn:hover { opacity: .85; }
.btn-light { background: #fff; color: var(--ink); }
.btn .icon { width: 16px; height: 16px; transition: transform .2s; }
.btn:hover .icon, .tile:hover .btn .icon { transform: translateX(3px); }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: background-color .35s ease; }
/* Over the hero video: transparent with white type */
.nav.over:not(.open) { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.nav.over:not(.open) .word, .nav.over:not(.open) .menu { color: #fff; }
.nav.over:not(.open) .links a, .nav.over:not(.open) .signin { color: rgba(255, 255, 255, .88); }
.nav.over:not(.open) .links a:hover, .nav.over:not(.open) .signin:hover { color: #fff; }
.nav.over:not(.open) .btn { background: #fff; color: var(--ink); }
.nav .word, .nav .links a, .nav .signin, .nav .menu, .nav .btn { transition: color .35s ease, background-color .35s ease, opacity .2s; }
.nav-in { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.links { display: flex; gap: 36px; }
.links a, .signin { font-size: 15px; color: var(--ink-2); transition: color .2s; }
.links a:hover, .signin:hover { color: var(--ink); }
.nav-r { display: flex; align-items: center; gap: 28px; }
.nav-r .btn { padding: 11px 18px; font-size: 14px; }
.menu { display: none; width: 40px; height: 40px; place-items: center; }
.menu .icon { width: 24px; height: 24px; stroke-width: 1.8; }
.mobile { display: none; }

/* ---------- Hero ---------- */
/* First view: full-screen video, slides under the sticky nav, smooth rounded bottom corners */
.hv {
  position: relative;
  isolation: isolate;
  margin-top: -72px;
  min-height: max(620px, 100svh);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 140px 0 72px;
  overflow: hidden;
  border-radius: 0 0 var(--r) var(--r);
  background: #44512F url("assets/video/hero-poster.jpg") center / cover no-repeat;
  color: #fff;
}
.hv-media { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.hv-shade {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(0, 0, 0, .42) 0%, rgba(0, 0, 0, 0) 22%, rgba(0, 0, 0, 0) 38%, rgba(0, 0, 0, .55) 100%), rgba(0, 0, 0, .1);
}
.hv h1 { color: #fff; text-shadow: 0 2px 30px rgba(0, 0, 0, .18); }
.hv .trust li { color: rgba(255, 255, 255, .92); }
.hv .trust .icon { color: #fff; }

.hero { padding: 56px 0 0; }
.hero-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 48px; }
.hv h1 { font-size: clamp(2.8rem, 6vw, 5.4rem); max-width: 10.5em; letter-spacing: -0.02em; }
.trust { display: grid; gap: 10px; flex-shrink: 0; padding-bottom: 8px; }
.trust li { display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--ink-2); }
.trust .icon { width: 16px; height: 16px; color: var(--ink); }

.hero-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 16px; }

/* ---------- Image tiles ---------- */
.tile { position: relative; display: block; overflow: hidden; isolation: isolate; border-radius: var(--r); background: var(--gray); color: #fff; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.2, .7, .2, 1); }
.tile:hover img { transform: scale(1.03); }

.tile-hero { height: clamp(420px, 44vw, 620px); }
.pos-doc img { object-position: 50% 10%; }
.tile-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  padding: 36px;
  background: linear-gradient(180deg, rgba(0, 0, 0, .36) 0%, rgba(0, 0, 0, 0) 45%);
}
.tile-text h2 { color: #fff; font-size: clamp(2rem, 3vw, 2.75rem); max-width: 9em; }
.tile-sub { margin-top: 12px; font-size: 16px; color: rgba(255, 255, 255, .92); max-width: 22em; }

/* ---------- Sections ---------- */
.section { padding: 160px 0 0; }
.head { max-width: 700px; }
.head h2, .copy h2 { font-size: clamp(2.3rem, 4.4vw, 3.8rem); letter-spacing: -0.015em; }
.head p, .copy > p { font-size: 18px; color: var(--ink-2); margin-top: 20px; max-width: 34em; }

/* ---------- Barrier stats ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; margin-top: 72px; }
.stat strong { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(3.6rem, 7vw, 6rem); line-height: 1; letter-spacing: -0.02em; }
.stat p { margin-top: 18px; font-size: 17px; max-width: 19em; }
.stat cite { display: block; margin-top: 10px; font-size: 13px; font-style: normal; color: var(--ink-3); }

/* ---------- Coordinator ---------- */
.rep { display: flex; flex-direction: column; align-items: center; gap: 56px; }
.rep > .copy, .rep-note { text-align: center; }
.rep-note { margin-top: -24px; font-size: 15px; color: var(--ink-3); }
.list { margin-top: 36px; display: grid; gap: 16px; }
.list li { display: flex; align-items: center; gap: 14px; font-size: 16px; }
.list .icon { width: 16px; height: 16px; }

.rep-visual { display: flex; justify-content: center; }

/* iPhone 18 Pro — built like Gridlync's display frame: aluminum band, glass bezel, screen.
   The screen is authored in real iOS points (402 x 874) and scaled with --s. */
.iphone {
  --s: .8;          /* screen scale: 1 = 402pt wide */
  --band: 5px;      /* aluminum edge */
  --bez: 7.5px;     /* black glass border */
  --rad: calc(62px * var(--s));
  position: relative;
  z-index: 2;
  isolation: isolate;
  padding: var(--band);
  border-radius: calc(var(--rad) + var(--bez) + var(--band));
  /* Dark graphite frame. Background layers only show on the band (the bezel covers the rest):
     antenna lines, corner highlights, then polished metal that catches light unevenly. */
  background:
    linear-gradient(180deg, transparent 0 11.2%, rgba(0, 0, 0, .6) 11.2% 11.5%, transparent 11.5% 88.4%, rgba(0, 0, 0, .6) 88.4% 88.7%, transparent 88.7%),
    linear-gradient(135deg, rgba(255, 255, 255, .42) 0%, rgba(255, 255, 255, 0) 16%, rgba(255, 255, 255, 0) 80%, rgba(255, 255, 255, .26) 100%),
    conic-gradient(from 200deg at 50% 50%, #3C3E43, #6E7177 7%, #2B2C30 18%, #1D1E21 42%, #33353A 58%, #63666C 67%, #25262A 80%, #3C3E43);
  box-shadow:
    0 0 0 .5px rgba(0, 0, 0, .6),
    inset 0 0 0 1px rgba(255, 255, 255, .28),
    inset 0 0 0 2.2px rgba(0, 0, 0, .3),
    0 30px 60px -28px rgba(0, 0, 0, .28),
    0 10px 22px -12px rgba(0, 0, 0, .16);
}
.bezel {
  position: relative;
  padding: var(--bez);
  border-radius: calc(var(--rad) + var(--bez));
  background: #050506;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .8);
}

/* Hardware buttons (front view): Action, volume up/down on the left; side button and Camera Control on the right */
.hw { position: absolute; z-index: -1; width: 3px; background: linear-gradient(90deg, #17181B, #74777D 50%, #26272A); box-shadow: 0 0 0 .5px rgba(0, 0, 0, .5); }
.hw-action, .hw-vol-up, .hw-vol-down { left: -2.5px; border-radius: 2px 0 0 2px; }
.hw-side, .hw-cam { right: -2.5px; border-radius: 0 2px 2px 0; }
.hw-action   { top: 17%;   height: 4.6%; }
.hw-vol-up   { top: 25.5%; height: 8.6%; }
.hw-vol-down { top: 36%;   height: 8.6%; }
.hw-side     { top: 28%;   height: 13%; }
.hw-cam      { top: 59%;   height: 8.4%; width: 2px; right: -1.5px; background: linear-gradient(90deg, #16171A, #3E4044); }

.screen {
  position: relative;
  width: 402px;
  height: 874px;
  zoom: var(--s);
  overflow: hidden;
  border-radius: 62px;
  background: #fff;
  color: #000;
  font-family: var(--ios);
  -webkit-font-smoothing: antialiased;
  --im-blue: #2AA1FD;   /* iOS 26 bubble blue, sampled from Apple's screenshots */
  --im-gray: #E9E9EB;
}

/* Dynamic Island (smaller on iPhone 18 Pro), with a faint front-camera lens */
.island {
  position: absolute; top: 11px; left: 50%; translate: -50% 0; z-index: 6;
  width: 98px; height: 34px; border-radius: 17px;
  background: radial-gradient(circle at 79% 50%, #1B1E26 0 4px, rgba(27, 30, 38, 0) 5.5px), #000;
}

/* ---- Inside the phone: iOS 26 Messages ----
   Every size below was measured from Apple's own iOS 26 screenshots (1pt = 1px on this 402pt screen).
   Icons are Apple's SF Symbols, rendered from macOS and used as masks so they take any color. */
.sf {
  display: block;
  flex-shrink: 0;
  background: currentColor;
  -webkit-mask: var(--m) center / 100% 100% no-repeat;
  mask: var(--m) center / 100% 100% no-repeat;
}
.sf-cell  { --m: url("assets/img/sf/cellular.png");      width: 18px;   height: 12px; }
.sf-wifi  { --m: url("assets/img/sf/wifi.png");          width: 16.6px; height: 11.2px; }
.sf-batt  { --m: url("assets/img/sf/battery.png");       width: 26.3px; height: 12px; }
.sf-back  { --m: url("assets/img/sf/chevron-left.png");  width: 10.6px; height: 17.5px; }
.sf-video { --m: url("assets/img/sf/video.png");         width: 26px;   height: 17.3px; }
.sf-more  { --m: url("assets/img/sf/chevron-right.png"); width: 5.8px;  height: 10px; }
.sf-plus  { --m: url("assets/img/sf/plus.png");          width: 15px;   height: 15px; }
.sf-mic   { --m: url("assets/img/sf/mic.png");           width: 12.1px; height: 17.2px; }
.sf-send  { --m: url("assets/img/sf/send.png");          width: 30px;   height: 30px; }

/* Status bar */
.status { position: absolute; top: 0; left: 0; right: 0; height: 56px; z-index: 5; }
.st-time {
  position: absolute; left: 20.7px; top: 20.5px; width: 104px;
  text-align: center; font-size: 17px; line-height: 22px; font-weight: 600; letter-spacing: .2px;
}
.st-icons { position: absolute; right: 40px; top: 26px; display: flex; align-items: center; gap: 6.5px; }

/* Liquid Glass controls */
.glass {
  background: rgba(255, 255, 255, .72);
  -webkit-backdrop-filter: blur(14px) saturate(1.8);
  backdrop-filter: blur(14px) saturate(1.8);
  box-shadow:
    0 0 0 .5px rgba(0, 0, 0, .07),
    0 6px 20px rgba(0, 0, 0, .08),
    inset 0 1px 1.5px rgba(255, 255, 255, .95),
    inset 0 -1px 1px rgba(0, 0, 0, .03);
}

/* Header: glass back button, avatar + name pill, FaceTime button */
.im-head { position: absolute; top: 0; left: 0; right: 0; z-index: 4; }
.im-btn { position: absolute; top: 62px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #000; }
.im-back { left: 16px; }
.im-back .sf { margin-right: 1.5px; }
.im-video { right: 16px; }
.im-contact { position: absolute; top: 62px; left: 50%; translate: -50% 0; display: flex; flex-direction: column; align-items: center; }
.im-avatar { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; display: block; }
.im-name {
  margin-top: -5px;
  display: inline-flex; align-items: center; gap: 7px;
  height: 34px; padding: 0 11.5px 0 13.5px; border-radius: 17px;
  font-size: 17px; font-weight: 600; white-space: nowrap; color: #000;
}
.im-name .sf { color: #A3A3A8; }

/* Conversation */
.thread {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 160px 15.5px calc(79px + var(--grow, 0px));
  overflow: hidden;
  /* Older messages fade out cleanly before they reach the header; new ones rise out from behind the field */
  --fade: linear-gradient(180deg, transparent 154px, #000 226px, #000 calc(100% - 72px - var(--grow, 0px)), transparent calc(100% - 40px - var(--grow, 0px)));
  -webkit-mask-image: var(--fade);
  mask-image: var(--fade);
}
.stamp { align-self: center; text-align: center; font-size: 12px; line-height: 15px; color: #8A8A8E; margin-bottom: 4px; }
.stamp b { font-weight: 600; }

/* Bubbles: 17pt text on its natural 20.3pt line, 40.2pt tall on one line, 20pt corners.
   10.3pt between people, 4.6pt between messages in a run. */
.b {
  position: relative;
  max-width: 296px;
  margin-top: 10.3px;
  padding: 9.6px 14.8px 10.3px;
  border-radius: 20px;
  font-size: 17px;
  line-height: 20.3px;
  overflow-wrap: anywhere;
  transform-origin: 0 100%;
}
.b.cont { margin-top: 4.6px; }
.b.out { align-self: flex-end; background: var(--im-blue); color: #fff; transform-origin: 100% 100%; }
.b.in  { align-self: flex-start; background: var(--im-gray); color: #000; }

/* Tail, only on the last bubble of a run. Traced from iOS 26: the corner drops
   into a small foot that hangs 7.5pt below the bubble, its tip turned slightly out. */
.b.tail::after {
  content: "";
  position: absolute; bottom: -8px; width: 22px; height: 14px;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-22 -6 22 14'%3E%3Cpath d='M-22 -6H-5.7C-7.6 -4 -10.3 -2.2 -10.3 0V2.6C-10.3 4.3 -9 5.8 -7.9 7.1C-8.1 7.6 -8.8 7.9 -9.4 7.7C-13.6 6.5 -17.6 3.7 -21.4 0H-22Z'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-22 -6 22 14'%3E%3Cpath d='M-22 -6H-5.7C-7.6 -4 -10.3 -2.2 -10.3 0V2.6C-10.3 4.3 -9 5.8 -7.9 7.1C-8.1 7.6 -8.8 7.9 -9.4 7.7C-13.6 6.5 -17.6 3.7 -21.4 0H-22Z'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
}
.b.out.tail::after { right: 0; background: var(--im-blue); }
.b.in.tail::after  { left: 0; background: var(--im-gray); transform: scaleX(-1); }

/* Typing indicator */
.b.typing { display: none; width: 62px; height: 40.2px; padding: 0; align-items: center; justify-content: center; gap: 5px; }
.b.typing.on { display: inline-flex; }
.b.typing::before, .b.typing::after { content: ""; position: absolute; border-radius: 50%; background: var(--im-gray); }
.b.typing::before { left: -2px; bottom: -2px; width: 14px; height: 14px; }
.b.typing::after  { left: -7.5px; bottom: -8.5px; width: 6.5px; height: 6.5px; }
.b.typing i { width: 8.5px; height: 8.5px; border-radius: 50%; background: #8E8E93; animation: dot 1.35s infinite ease-in-out; }
.b.typing i:nth-child(2) { animation-delay: .18s; }
.b.typing i:nth-child(3) { animation-delay: .36s; }
@keyframes dot { 0%, 55%, 100% { opacity: .3; } 25% { opacity: .85; } }

/* "Delivered" / "Read 9:12 AM" under Sofia's latest message */
.rcpt { display: none; align-self: flex-end; margin: 9px 2px 0 0; font-size: 11.5px; line-height: 14px; color: #8A8A8E; }
.rcpt.on { display: block; }
.rcpt b { font-weight: 600; }

.js .thread .b[data-d]:not(.show) { display: none; }

/* Input bar (keyboard down): "+" and the field, 39.5pt tall, 28pt from the sides */
.im-input { position: absolute; left: 28px; right: 28px; bottom: 27.4px; z-index: 4; display: flex; align-items: flex-end; gap: 12.3px; }
.im-plus { flex-shrink: 0; width: 39.5px; height: 39.5px; border-radius: 50%; display: grid; place-items: center; color: #000; }
.im-field {
  position: relative; flex: 1;
  min-height: 39.5px; border-radius: 19.75px;
  padding: 9.6px 46px 9.6px 16px;
  background: rgba(243, 243, 245, .88);
  font-size: 17px; line-height: 20.3px; color: #000;
  overflow-wrap: anywhere;
}
.im-ph { color: #8B8B90; }
.im-text:empty, .im-field.has-text .im-ph { display: none; }
.im-field .sf-mic { position: absolute; right: 15.5px; bottom: 11.15px; color: #8E8E93; transition: opacity .15s; }
.im-field .sf-send { position: absolute; right: 4.75px; bottom: 4.75px; color: var(--im-blue); opacity: 0; transform: scale(.4); transition: opacity .15s, transform .4s cubic-bezier(.2, .9, .3, 1.25); }
.im-field.has-text .sf-mic { opacity: 0; }
.im-field.has-text .sf-send { opacity: 1; transform: none; }
.home-bar { position: absolute; bottom: 8px; left: 50%; translate: -50% 0; z-index: 5; width: 134px; height: 5px; border-radius: 3px; background: #000; }

/* ---------- Access matrix ---------- */
.matrix { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 64px; }
.mcol h3 { font-size: 28px; }
.msub { font-size: 14px; color: var(--ink-3); margin: 6px 0 18px; }
/* One soft card per category, rows split by hairlines. Type only: no pills, no dots. */
.mcol ul { background: var(--gray); border-radius: var(--r); padding: 10px 0; }
.mcol li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin: 0 24px;
  padding: 15px 0;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
}
.mcol li + li { border-top: 1px solid rgba(17, 17, 17, .08); }
.mcol li span { flex-shrink: 0; font-size: 14px; font-weight: 400; color: var(--ink-3); white-space: nowrap; }
.mcol li span.now { color: var(--ok); }
.matrix-note { margin-top: 28px; font-size: 14px; color: var(--ink-3); }

/* ---------- Places (bento) ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 280px;
  gap: 16px;
  margin-top: 56px;
}
.b-doc { grid-column: 1 / 3; grid-row: 1 / 3; }
.b-rx  { grid-column: 3; grid-row: 1; }
.b-er  { grid-column: 4; grid-row: 1 / 3; }
.b-hub { grid-column: 3; grid-row: 2; }

.cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 64px 26px 24px;
  background: linear-gradient(0deg, rgba(0, 0, 0, .6) 0%, rgba(0, 0, 0, 0) 100%);
}
.cap h3 { color: #fff; font-size: 28px; }
.cap p { font-size: 14px; color: rgba(255, 255, 255, .82); margin-top: 6px; line-height: 1.45; }
.b-doc .cap { padding: 120px 36px 32px; }
.b-doc .cap h3 { font-size: 44px; }
.b-doc .cap p { font-size: 16px; }

.b-hub { background: var(--ink); padding: 26px; display: flex; flex-direction: column; justify-content: space-between; }
.b-hub .word { font-size: 26px; }
.b-hub p { font-family: var(--serif); font-size: 26px; line-height: 1.15; }

/* ---------- Pharmacy + labs ----------
   Medication cutouts sit on the same blue as the pills tile up top. */
:root { --rx-blue: #4897E8; }
.rx-rows {
  margin-top: 64px;
  display: grid; gap: 28px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.rx-row { display: flex; width: max-content; }
.rx-track { display: flex; gap: 16px; padding-right: 16px; }
.rx { width: 200px; flex-shrink: 0; }
.rx-img { display: block; aspect-ratio: 1; border-radius: var(--r); background: var(--rx-blue); overflow: hidden; }
.rx-img img { width: 100%; height: 100%; object-fit: contain; padding: 12%; }
.rx b { display: block; margin-top: 14px; font-size: 15px; font-weight: 600; line-height: 1.3; }
.rx > span:last-child { display: block; font-size: 14px; color: var(--ink-3); line-height: 1.4; margin-top: 2px; }

@media (prefers-reduced-motion: no-preference) {
  .rx-a { animation: rx-scroll 110s linear infinite; }
  .rx-b { animation: rx-scroll 120s linear infinite reverse; }
  .rx-rows:hover .rx-row { animation-play-state: paused; }
}
@keyframes rx-scroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .rx-rows { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .rx-track[aria-hidden] { display: none; }
  .rx-row { padding-inline: max(24px, (100vw - 1240px) / 2); }
}

.labs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 96px; align-items: stretch; }
.labs-visual { background: var(--rx-blue); border-radius: var(--r); display: grid; place-items: center; padding: 48px 32px; overflow: hidden; }
.labs-tubes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 4px; width: min(100%, 420px); }
.labs-tubes img { width: 100%; height: auto; }
.labs-panel { background: var(--gray); border-radius: var(--r); padding: 40px 0 10px; }
.labs-panel h3 { font-size: 30px; margin: 0 32px; }
.labs-panel > p { margin: 10px 32px 16px; color: var(--ink-2); max-width: 30em; }
.labs-list li {
  display: flex; align-items: baseline; justify-content: space-between; gap: 24px;
  margin: 0 32px; padding: 15px 0;
  font-size: 15px;
}
.labs-list li + li, .labs-list li:first-child { border-top: 1px solid rgba(17, 17, 17, .08); }
.labs-list b { font-weight: 500; }
.labs-list span { font-size: 14px; color: var(--ink-3); text-align: right; }

@media (max-width: 1000px) {
  .labs { grid-template-columns: 1fr; margin-top: 72px; }
  .labs-visual { padding: 40px 24px; }
  .labs-tubes { width: min(100%, 360px); }
}
@media (max-width: 600px) {
  .rx-rows { margin-top: 40px; gap: 20px; }
  .rx { width: 150px; }
  .rx-track { gap: 12px; padding-right: 12px; }
  .rx b { font-size: 14px; margin-top: 10px; }
  .rx > span:last-child { font-size: 13px; }
  .labs { gap: 12px; margin-top: 56px; }
  .labs-panel { padding-top: 28px; }
  .labs-panel h3 { font-size: 24px; margin: 0 22px; }
  .labs-panel > p { margin: 8px 22px 12px; }
  .labs-list li { margin: 0 22px; flex-direction: column; gap: 2px; padding: 13px 0; }
  .labs-list span { text-align: left; }
}

/* ---------- Locations ----------
   Two equal columns, 16px gutters, every panel on the same grid: the list and the city card share a row,
   telehealth and delivery share the next, so all edges line up. Text sits 32px in on every panel. */
.loc { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 64px; align-items: stretch; }
.loc-list { display: flex; flex-direction: column; background: var(--gray); border-radius: var(--r); padding: 10px 0; }
.loc-list li { flex: 1; display: flex; margin: 0 32px; }
.loc-list li + li { border-top: 1px solid rgba(17, 17, 17, .08); }
.loc-city {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 0;
  text-align: left; color: var(--ink-3);
  transition: color .25s;
}
.loc-city b { font-family: var(--serif); font-weight: 400; font-size: 28px; line-height: 1.15; letter-spacing: -0.01em; }
.loc-city span { flex-shrink: 0; font-size: 14px; white-space: nowrap; }
.loc-city:hover, .loc-city[aria-selected="true"] { color: var(--ink); }
.loc-city[aria-selected="true"] span { color: var(--ink-2); }
.loc-city:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 8px; }

.loc-card { display: flex; flex-direction: column; gap: 16px; }
.loc-photo { margin: 0; flex: 1; min-height: 400px; }
.loc-photo .cap { z-index: 2; padding: 80px 32px 28px; }
.loc-photo .cap h3 { font-size: 40px; }
.loc-photo .cap p { font-size: 15px; }
.loc-facts { background: var(--gray); border-radius: var(--r); padding: 10px 0; }
.loc-facts li {
  display: flex; align-items: baseline; justify-content: space-between; gap: 24px;
  margin: 0 32px; padding: 17px 0;
  font-size: 15px;
}
.loc-facts li + li { border-top: 1px solid rgba(17, 17, 17, .08); }
.loc-facts b { font-weight: 500; }
.loc-facts span { font-size: 14px; color: var(--ink-3); text-align: right; }

.anywhere { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.any { background: var(--gray); border-radius: var(--r); padding: 36px 32px; }
.any h3 { font-size: 30px; }
.any p { margin-top: 10px; color: var(--ink-2); max-width: 26em; }

@media (max-width: 1000px) {
  .loc { grid-template-columns: 1fr; }
  .loc-card { order: -1; }
  .loc-photo { flex: none; min-height: 0; height: 380px; }
}
@media (max-width: 600px) {
  .loc { margin-top: 40px; gap: 12px; }
  .loc-card { gap: 12px; }
  .loc-photo { height: 280px; }
  .loc-photo .cap { padding: 56px 22px 20px; }
  .loc-photo .cap h3 { font-size: 30px; }
  .loc-photo .cap p { display: block; font-size: 14px; }
  .loc-facts li, .loc-list li { margin: 0 22px; }
  .loc-facts li { flex-direction: column; gap: 2px; padding: 14px 0; }
  .loc-facts span { text-align: left; }
  .loc-city b { font-size: 22px; }
  .loc-city span { font-size: 13px; }
  .anywhere { grid-template-columns: 1fr; gap: 12px; margin-top: 12px; }
  .any { padding: 28px 22px; }
  .any h3 { font-size: 24px; }
}

/* ---------- CTA + footer ---------- */
.cta { margin-top: 160px; background: var(--ink); color: #fff; padding: 140px 0 120px; border-radius: var(--r) var(--r) 0 0; }
.cta h2 { font-size: clamp(2.8rem, 6.4vw, 5.6rem); letter-spacing: -0.02em; max-width: 10em; }
.cta p { color: rgba(255, 255, 255, .65); font-size: 18px; margin: 24px 0 40px; }

.footer { background: var(--ink); color: rgba(255, 255, 255, .55); padding: 40px 0 48px; font-size: 14px; }
.footer .word { color: #fff; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer h4 { font-family: var(--sans); font-size: 14px; font-weight: 600; color: #fff; margin-bottom: 12px; }
.foot-grid a { display: block; padding: 4px 0; transition: color .2s; }
.foot-grid a:hover { color: #fff; }
.foot-legal { margin-top: 80px; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 12.5px; line-height: 1.7; color: rgba(255, 255, 255, .42); }
.foot-bottom { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-top: 28px; font-size: 13px; }

/* ---------- Scroll rail: thin lines on the right, one per section ---------- */
.rail { position: fixed; right: 18px; top: 50%; translate: 0 -50%; z-index: 19; display: flex; flex-direction: column; align-items: flex-end; --c: 17, 17, 17; --pill: 255, 255, 255; }
.rail.on-dark { --c: 255, 255, 255; --pill: 17, 17, 17; }
.rail a { position: relative; display: flex; align-items: center; justify-content: flex-end; width: 34px; height: 14px; }
.rail a::after { content: ''; width: 12px; height: 1.5px; border-radius: 1px; background: rgb(var(--c)); opacity: .22; transition: width .45s cubic-bezier(.2, .7, .2, 1), opacity .3s ease, background-color .3s ease; }
.rail a.past::after { opacity: .5; }
.rail a[aria-current]::after { width: 26px; opacity: 1; }
.rail a:hover::after { opacity: .85; }
.rail span { position: absolute; right: 42px; padding: 3px 9px; border-radius: 999px; white-space: nowrap; font-size: 12px; color: rgb(var(--c)); background: rgba(var(--pill), .88); opacity: 0; translate: 6px 0; transition: opacity .2s ease, translate .2s ease; pointer-events: none; }
.rail a:hover span, .rail a:focus-visible span { opacity: 1; translate: 0 0; }
@media (hover: none) { .rail span { display: none; } }
@media (max-width: 600px) {
  .rail { right: 3px; }
  .rail a { width: 14px; height: 11px; }
  .rail a::after { width: 6px; }
  .rail a[aria-current]::after { width: 11px; }
}

/* ---------- Responsive ---------- */
/* 4 columns only when every row fits on one line; 2 below that */
@media (max-width: 1240px) {
  .matrix { grid-template-columns: 1fr 1fr; row-gap: 48px; }
}

@media (max-width: 1100px) {
}

@media (max-width: 1000px) {
  .links, .signin { display: none; }
  .menu { display: grid; }
  .nav-r { gap: 12px; }
  .nav.open .mobile { display: block; }
  .mobile { padding: 8px 0 24px; }
  .mobile a { display: block; padding: 12px 0; font-size: 18px; }

  .hero-head { flex-direction: column; align-items: flex-start; gap: 32px; }
  .hero-grid { grid-template-columns: 1fr; }
  .tile-hero { height: 460px; }

  .stats { grid-template-columns: 1fr; gap: 44px; }

  .bento { grid-template-columns: 1fr 1fr; grid-auto-rows: 240px; }
  .b-doc { grid-column: 1 / -1; grid-row: span 2; }
  .b-rx, .b-er { grid-column: auto; grid-row: auto; }
  .b-hub { grid-column: 1 / -1; grid-row: auto; }

  .section { padding-top: 120px; }
  .cta { margin-top: 120px; }
}

@media (max-width: 600px) {
  .wrap { width: calc(100% - 32px); }
  .nav-in { height: 64px; }
  .nav-r .btn { display: none; }
  .hv { margin-top: -64px; min-height: max(560px, 100svh); padding: 120px 0 48px; }
  .hero { padding-top: 40px; }
  .tile-hero { height: 400px; }
  .tile-text { padding: 24px; }
  .head p, .copy > p { font-size: 17px; }

  .iphone { --s: .72; --band: 4.5px; --bez: 7px; }

  .matrix { grid-template-columns: 1fr; row-gap: 40px; }
  .mcol h3 { font-size: 22px; }
  .msub { font-size: 13px; margin-bottom: 12px; }

  .bento { grid-auto-rows: 200px; gap: 12px; }
  .cap { padding: 48px 20px 18px; }
  .cap h3 { font-size: 22px; }
  .cap p { display: none; }
  .b-doc .cap { padding: 80px 22px 22px; }
  .b-doc .cap h3 { font-size: 34px; }
  .b-doc .cap p { display: block; font-size: 15px; }
  .b-hub p { font-size: 22px; }

  .section { padding-top: 96px; }
  .cta { margin-top: 96px; padding: 96px 0 80px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid .word { grid-column: 1 / -1; }
}

/* ---------- One corner radius everywhere ----------
   Smooth (squircle) corners where the browser supports them; a squircle needs a larger value to look as round. */
/* Phones: the three stats sit in one compact gray panel instead of three tall blocks */
@media (max-width: 600px) {
  .stats { gap: 0; margin-top: 36px; background: var(--gray); border-radius: var(--r); padding: 6px 0; }
  .stat { margin: 0 24px; padding: 20px 0; }
  .stat + .stat { border-top: 1px solid rgba(17, 17, 17, .08); }
  .stat strong { font-size: 40px; }
  .stat p { margin-top: 8px; font-size: 15px; line-height: 1.45; }
  .stat cite { margin-top: 6px; font-size: 12px; }

  /* closing call to action and footer: shorter, links in three tidy columns */
  .cta { margin-top: 72px; padding: 64px 0 56px; }
  .cta h2 { font-size: 40px; }
  .cta p { font-size: 16px; margin: 14px 0 28px; }
  .footer { padding: 32px 0 40px; }
  .foot-grid { grid-template-columns: repeat(3, 1fr); gap: 28px 16px; }
  .foot-grid .word { grid-column: 1 / -1; }
  .footer h4 { margin-bottom: 8px; }
  .foot-grid a { padding: 3px 0; }
  .foot-legal { margin-top: 36px; padding-top: 20px; font-size: 11.5px; line-height: 1.6; }
  .foot-bottom { flex-direction: column; gap: 6px; margin-top: 20px; font-size: 12px; }
}

@media (max-width: 600px) { :root { --r: 28px; } }
@supports (corner-shape: squircle) {
  :root { --r: 96px; }
  .hv, .tile, .cta, .mcol ul, .loc-list, .loc-facts, .any, .rx-img, .labs-visual, .labs-panel { corner-shape: squircle; }
  @media (max-width: 600px) { :root { --r: 60px; } }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
