/* Excellent Care Services LLC — built on the GetLayers "Dantora" template
   (portable master), re-skinned for Excellent Care. Composition and motion
   are Dantora's; copy, imagery and brand are Excellent Care's. */

/* Google Sans Flex, SIL Open Font License 1.1, self-hosted (latin subset). */
@font-face {
  font-family: "Google Sans Flex";
  font-style: normal;
  font-weight: 300 500;
  font-stretch: 100%;
  font-display: swap;
  src: url("../fonts/google-sans-flex-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ==========================================================================
   TIER 1 — PRIMITIVES. Dantora brand ramp, Figma "Concept 4" (1518:1970);
   the file carries no Figma variables, so these are lifted from layer fills.
   ========================================================================== */
:root {
  --raw-white: #ffffff;
  --raw-black: #000000;
  --raw-brand-500: #246f65;
  --raw-brand-900: #054038;
  --raw-mint-50: #eff4f2;
  --raw-mint-100: #e5f1ed;
  /* Excellent Care red: the heart in the logo, eyebrows, arrow discs and secondary actions. */
  --raw-red-50: #fdf2f2;
  --raw-red-100: #f5d6d8;
  --raw-red-400: #ff6b74;
  --raw-red-600: #b42330;
  --raw-red-700: #941b26;

  /* ---- TIER 2 — SEMANTIC ROLES ---- */
  /* The page background is WHITE; the mint is a PANEL colour painted by each
     full-bleed section, which is why the Why Dantora band reads white. */
  --background: var(--raw-white);
  --foreground: var(--raw-black);
  --surface-section: var(--raw-mint-50);
  /* Deeper mint — what separates About/Team from the block they slide over. */
  --surface-section-deep: var(--raw-mint-100);

  --accent: var(--raw-brand-500);
  --action-primary: var(--raw-brand-500);
  --action-primary-border: var(--raw-brand-900);
  --action-primary-foreground: var(--raw-white);
  --action-secondary: var(--raw-red-50);
  --action-secondary-border: var(--raw-red-100);
  --action-secondary-foreground: var(--raw-red-700);
  --brand-red: var(--raw-red-600);
  --action-disc: var(--raw-red-600);
  --action-disc-foreground: var(--raw-white);

  --surface-glass: rgba(255,255,255,0.8);
  --surface-glass-subtle: rgba(255,255,255,0.5);
  --surface-glass-strong: rgba(255,255,255,0.9);
  --border-subtle: rgba(0,0,0,0.1);
  /* Secondary text: the greyed About clauses, roles, placeholders, the consent
     line. 0.6 is the lightest black small type on white can use (5.7:1). */
  --foreground-muted: rgba(0,0,0,0.6);
  --foreground-subtle: rgba(0,0,0,0.6);

  /* Named --corner-*, not --radius-*: Tailwind owns that namespace. */
  --corner-mark: 4px;
  --corner-panel: 8px;
  --corner-card: 24px;
  --corner-section: 48px;
  --corner-chip: 37px;
  --corner-action: 46px;
  --glass-blur: 10px;

  --duration-fast: 150ms;
  --duration-normal: 250ms;
  --ease-entrance: cubic-bezier(0.2, 0, 0, 1);
  --leading-display: 1.1;
  --leading-body: 1.2;

  --font-sans: "Google Sans Flex", ui-sans-serif, system-ui, sans-serif;
}

/* No `prefers-color-scheme: dark` override. This is a single light theme built
   on a mint page and a MULTIPLY-blended WebGL backdrop that only reads on a
   light surface — a dark flip would erase the scene. */

/* ==========================================================================
   THE ADAPTIVE GRID — desktop only, and deliberately so. From lg up the
   composition is absolutely positioned at the 1440 artboard's coordinates, so
   every offset must track the viewport. Below it the page is a flow layout and
   the root stays a plain 16px.
   ========================================================================== */
html {
  font-size: 16px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  tab-size: 4;
  font-family: var(--font-sans);
  /* Reserve the scrollbar track permanently. Without it the viewport width
     changes the moment the page becomes scrollable, which resizes the WebGL
     canvases and visibly re-frames the helix mid-scroll. */
  scrollbar-gutter: stable;
}
@media (min-width: 1024px) { html { font-size: 1.111111vw; } }  /* 16 * 100 / 1440 */

/* Tailwind preflight, the parts this page relies on. */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; border: 0 solid; }
body {
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: inherit;
}
h1, h2, h3, h4, h5, h6 { font-size: inherit; font-weight: inherit; }
img, svg, canvas { display: block; vertical-align: middle; }
img { max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; color: inherit; letter-spacing: inherit; background: transparent; border-radius: 0; }
button { cursor: pointer; }
a { color: inherit; text-decoration: inherit; }
ul, ol { list-style: none; }
hr { height: 0; color: inherit; border-top-width: 1px; }
textarea { resize: vertical; }
input::placeholder, textarea::placeholder { opacity: 1; }

/* Figma's text boxes are cap-height trimmed — almost every text node in the
   mockup carries this. Without it every block inherits half-leading it was
   never designed with: the hero h1 measured 132px against Figma's 109, pill
   buttons 57 against 48, the chip row 108 against 94 — an error that compounds
   down the page. Browsers without support fall back to the untrimmed box. */
h1, h2, h3, h4, h5, h6, p, li, dd, dt, label, figcaption, button, a {
  text-box: trim-both cap alphabetic;
}
/* For a label inside a flex container, where the bare text node is an anonymous
   flex item the rule above cannot reach. */
.text-trim { text-box: trim-both cap alphabetic; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
  pointer-events: none; user-select: none;
}


/* The word-split engine's container is a FLEX row, so `text-align` alone
   positions nothing — pair it with justify-content. The run of words sits in a
   `display: contents` wrapper, so each word stays a flex item of the host. */
.words { position: relative; display: flex; flex-wrap: wrap; }
.words.center { justify-content: center; text-align: center; }
.words .run { display: contents; }
.words .w { display: inline-block; user-select: auto; }

/* ==========================================================================
   PRELOADER — brand-green, clipped away bottom-to-top.
   ========================================================================== */
#preloader {
  position: fixed; inset: 0; z-index: 100;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4rem; background: var(--accent);
  will-change: clip-path;
}
#preloader.gone { display: none; }
#pre-dial { position: relative; display: grid; width: min(60vw, 22rem); height: min(60vw, 22rem); place-items: center; }
#pre-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
#pre-mark { position: relative; width: 38%; height: 38%; }
#pre-mark img { position: absolute; inset: 0; width: 100%; height: 100%; }
#pre-mark .lit { position: absolute; inset: 0; }
#pre-mark .lit img { position: static; }
#pre-count { font-size: 2.5rem; line-height: var(--leading-display); font-weight: 300; color: #fff; font-variant-numeric: tabular-nums; }

/* ==========================================================================
   HEADER — fixed, frosted. `pointer-events: none` on the bar so the gutters
   either side of the panels don't swallow clicks meant for the page beneath;
   each panel switches them back on.
   ========================================================================== */
#header {
  pointer-events: none;
  position: fixed; left: 0; right: 0; top: 1rem; z-index: 60;
  padding-inline: 1.25rem;
}
#header .hdr-row { display: flex; align-items: center; justify-content: space-between; }
#header .hdr-left { display: flex; align-items: center; gap: 0.5rem; }
.glass {
  pointer-events: auto; border-radius: var(--corner-panel);
  background: var(--surface-glass);
  -webkit-backdrop-filter: blur(var(--glass-blur));
  backdrop-filter: blur(var(--glass-blur));
}
#header .logo {
  display: flex; height: 3.375rem; width: 9.3125rem; align-items: center;
  gap: 0.75rem; padding-right: 1rem; padding-left: 0.375rem;
}
.mark-tile {
  display: grid; width: 2.625rem; height: 2.625rem; flex: none; place-items: center;
  border-radius: var(--corner-mark); background: var(--accent); color: var(--raw-white);
}
.mark-tile svg { width: 1.5rem; height: 1.5rem; }
#header .logo .name { font-size: 1.25rem; line-height: var(--leading-display); font-weight: 300; }
#header nav.bar { display: none; height: 3.375rem; width: 26.375rem; align-items: center; padding-inline: 2.25rem; }
#header nav.bar ul { display: flex; align-items: center; gap: 2.625rem; }
#header nav.bar a {
  font-size: 1rem; line-height: var(--leading-body); font-weight: 300;
  transition: color var(--duration-fast) var(--ease-entrance);
}
#header nav.bar a:hover { color: var(--accent); }
#header-cta-slot { display: none; }
#header-cta { pointer-events: auto; }

/* ---- the burger + the full-screen menu (below lg) ---- */
#menu-wrap { pointer-events: auto; }
#burger { position: relative; z-index: 10; display: flex; width: 3.375rem; height: 3.375rem; align-items: center; justify-content: center; }
#burger .bars { display: flex; flex-direction: column; gap: 0.3125rem; }
#burger .bars i {
  display: block; height: 1px; width: 1.25rem; background: var(--foreground);
}
#burger .bars i:nth-child(1), #burger .bars i:nth-child(3) { transition: transform var(--duration-normal) var(--ease-entrance); }
#burger .bars i:nth-child(2) { transition: opacity var(--duration-fast) var(--ease-entrance); }
#burger[aria-expanded="true"] .bars i:nth-child(1) { transform: translateY(0.34375rem) rotate(45deg); }
#burger[aria-expanded="true"] .bars i:nth-child(2) { opacity: 0; }
#burger[aria-expanded="true"] .bars i:nth-child(3) { transform: translateY(-0.34375rem) rotate(-45deg); }

/* Mounted only while open or closing. It floods out of the burger as a
   circle; the rows rise out of their masks and never fade, so contrast holds
   on every frame. */
#menu-panel {
  position: fixed; inset: 0; display: flex; height: 100dvh; flex-direction: column;
  overflow-y: auto; overscroll-behavior: contain;
  background: var(--accent); color: #fff;
  padding: 7rem 1.25rem 2.5rem;
  will-change: clip-path;
}
#menu-panel[hidden] { display: none; }
#menu-panel nav { display: flex; flex: 1; flex-direction: column; }
#menu-panel nav ul { display: flex; flex-direction: column; gap: 0.25rem; }
#menu-panel nav li { overflow: hidden; }
#menu-panel nav a {
  display: flex; align-items: baseline; gap: 1rem; padding-block: 0.25rem;
  font-size: clamp(2.5rem, 12vw, 4rem); line-height: var(--leading-display);
  font-weight: 300; letter-spacing: -0.03em;
}
#menu-panel nav a .num {
  font-size: 0.875rem; line-height: var(--leading-body); font-weight: 500;
  letter-spacing: normal; opacity: 0.85;
}
#menu-panel .menu-foot { margin-top: 2.5rem; display: flex; flex-direction: column; gap: 1.5rem; }
#menu-panel .mask { overflow: hidden; }
#menu-panel .menu-cta {
  display: flex; height: 3.375rem; width: 100%; align-items: center; justify-content: space-between;
  border-radius: var(--corner-action); border: 1px solid var(--action-secondary-border);
  background: var(--action-secondary); padding-right: 0.125rem; padding-left: 2rem;
  font-size: 1.25rem; line-height: var(--leading-body); font-weight: 300;
  color: var(--action-secondary-foreground);
}
#menu-panel .menu-cta .disc {
  display: grid; width: 3rem; height: 3rem; flex: none; place-items: center;
  border-radius: 9999px; background: var(--action-disc); color: var(--action-disc-foreground);
}
#menu-panel .menu-cta .disc svg { width: 1rem; height: 1rem; }
#menu-panel .menu-socials { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
#menu-panel .menu-socials a {
  display: inline-flex; min-height: 1.5rem; align-items: center;
  font-size: 1rem; line-height: var(--leading-body); font-weight: 300; opacity: 0.85;
  transition: opacity var(--duration-fast) var(--ease-entrance);
}
#menu-panel .menu-socials a:hover { opacity: 1; }

/* ==========================================================================
   THE BUTTON — the design's only action shape. Heights come straight from the
   mockup's frames (48 plain, 54 with the arrow disc).
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--corner-action); border: 1px solid transparent;
  font-size: 1.25rem; line-height: var(--leading-body); font-weight: 300;
  white-space: nowrap;
  transition: color var(--duration-fast) var(--ease-entrance),
              background-color var(--duration-fast) var(--ease-entrance),
              border-color var(--duration-fast) var(--ease-entrance);
  height: 3rem; padding-inline: 2rem;
}
.btn.primary {
  background: var(--action-primary); border-color: var(--action-primary-border);
  color: var(--action-primary-foreground);
}
.btn.primary:hover { background: var(--action-primary-border); }
.btn.secondary {
  background: var(--action-secondary); border-color: var(--action-secondary-border);
  color: var(--action-secondary-foreground);
}
.btn.secondary:hover { background: var(--action-secondary-border); }
.btn.arrow { height: 3.375rem; gap: 0.625rem; padding-right: 0.125rem; padding-left: 2rem; }
.btn .disc {
  display: grid; width: 3rem; height: 3rem; flex: none; place-items: center;
  border-radius: 9999px; background: var(--action-disc); color: var(--action-disc-foreground);
}
.btn .disc svg { width: 1rem; height: 1rem; }

/* ==========================================================================
   SECTIONS
   ========================================================================== */
main { display: block; }
.eyebrow {
  font-size: 0.875rem; line-height: var(--leading-body); font-weight: 500;
  color: var(--brand-red); text-transform: uppercase;
}
.display { font-size: 2.25rem; line-height: var(--leading-display); font-weight: 300; }
.lead { font-size: 1rem; line-height: var(--leading-body); font-weight: 300; }

/* ---- HERO ---- */
#hero {
  position: relative; display: flex; min-height: 100lvh; flex-direction: column;
  gap: 2rem; overflow: hidden;
  border-radius: 0 0 var(--corner-section) var(--corner-section);
  background: var(--surface-section);
  padding: 7rem 1.25rem 3rem;
}
#hero h1 { font-size: 2.5rem; line-height: var(--leading-display); font-weight: 300; }
/* Every hero block but the scene waits for the curtain: invisible (and under
   the opaque panel anyway) until it lifts. */
.js #hero .await { opacity: 0; }
/* `z-index: 10` is load-bearing: the markup is in mobile order, so the scene's
   canvas comes AFTER the copy in the DOM and would otherwise paint over it once
   both are absolutely positioned at lg. */
#hero-copy { position: relative; z-index: 10; }
#hero-copy .stack { display: flex; flex-direction: column; gap: 1.5rem; }
#hero-copy .head { display: flex; flex-direction: column; gap: 1rem; }
#hero-actions-slot { position: relative; z-index: 10; }
#hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }
#hero-actions .btn { width: 11.25rem; }
#hero-scene {
  pointer-events: none; margin-inline: -1.25rem; height: 40lvh;
}
#hero-scene canvas, #contact-scene canvas { display: block; width: 100%; height: 100%; }
#hero-rule { border-top: 1px solid var(--border-subtle); }
#hero-trust {
  display: flex; align-items: center; gap: 0.75rem;
  font-size: 1rem; line-height: var(--leading-body); color: var(--accent);
}
#hero-trust .tick { height: 1px; width: 3.125rem; background: var(--accent); }
#hero-chips { display: flex; flex-wrap: wrap; gap: 0.25rem; }
#hero-chips li {
  border-radius: var(--corner-chip); border: 1px solid var(--border-subtle);
  background: var(--surface-glass-subtle);
  padding: 0.75rem 1.25rem; font-size: 0.875rem; line-height: var(--leading-body); font-weight: 300;
  -webkit-backdrop-filter: blur(var(--glass-blur));
  backdrop-filter: blur(var(--glass-blur));
}

/* ---- WHY DANTORA — one viewport of plain white between two mint panels.
   `overflow: hidden` clips the trail; without it a card spawned near an edge
   spills over the hero above and Services below. ---- */
#why { position: relative; height: 100lvh; overflow: hidden; background: var(--background); }
#trail { position: relative; height: 100%; }
#trail .cards { pointer-events: none; position: absolute; inset: 0; }
#trail .card { position: absolute; top: 0; left: 0; will-change: transform; }
#trail .card img {
  width: 13.5rem; height: 17rem; max-width: none;
  border-radius: var(--corner-card); object-fit: cover;
}
#why-copy {
  position: absolute; top: 50%; left: 50%;
  display: flex; width: min(100% - 2.5rem, 44.75rem);
  translate: -50% -50%;
  flex-direction: column; align-items: center; gap: 2rem; text-align: center;
}
#why-copy .head { display: flex; width: 100%; flex-direction: column; align-items: center; gap: 1rem; }
#why-copy .head > *, #why-copy > .lead { width: 100%; }
#why-copy .why-actions { display: flex; align-items: center; gap: 1rem; }
#why-copy .why-actions .btn { width: 11.25rem; }

/* ---- SERVICES — a four-viewport runway with a sticky panel ---- */
#services { position: relative; background: var(--background); }
#services-runway { position: relative; height: 400lvh; }
#services-panel {
  position: sticky; top: 0; height: 100lvh; overflow: hidden;
  border-radius: var(--corner-section) var(--corner-section) 0 0;
  background: var(--surface-section);
}
#services-head { display: flex; flex-direction: column; gap: 1rem; padding: 6rem 1.25rem 0; }
#services-rail {
  position: absolute; top: 46%; right: 0; bottom: 1.25rem; left: 1.25rem;
  display: flex; gap: 0.625rem; will-change: transform;
}
.svc-card {
  position: relative; display: flex; height: 100%; width: 78vw; max-width: 22rem;
  flex: none; flex-direction: column; justify-content: space-between;
  overflow: hidden; border-radius: var(--corner-card); padding: 1.5rem;
}
.svc-card.lime { border: 1px solid var(--action-secondary-border); background: var(--action-secondary); }
.svc-card.photo { color: #fff; }
.svc-card.brand { background: var(--accent); color: #fff; }
.svc-card > img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.svc-card .top { position: relative; z-index: 10; display: flex; flex-direction: column; gap: 1rem; }
.svc-card .idx { font-size: 1rem; line-height: var(--leading-body); }
.svc-card h3 { font-size: 1.5rem; line-height: var(--leading-display); font-weight: 300; }
.svc-card ul { position: relative; z-index: 10; display: flex; flex-direction: column; gap: 1rem; }
.svc-card ul li { display: flex; flex-direction: column; gap: 1rem; }
.svc-card ul .rule { height: 1px; width: 100%; background: var(--border-subtle); }
.svc-card ul .item {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 1rem; line-height: var(--leading-body);
}
.svc-card ul .item svg { width: 1.1875rem; height: 1.1875rem; }
/* `align-items: flex-end`, not center: Figma places the label on the row's
   baseline next to the ring, and centring drops the word below the line the
   lime card's last list row sits on. */
.svc-card .discover { position: relative; z-index: 10; display: flex; align-items: flex-end; justify-content: space-between; }
.svc-card .discover p { font-size: 1rem; line-height: var(--leading-body); }
/* A 72px RING — 1px white stroke, no fill — not the filled lime disc. */
.svc-card .ring {
  display: grid; width: 3.5rem; height: 3.5rem; place-items: center;
  border-radius: 9999px; border: 1px solid #fff; color: #fff;
}
.svc-card .ring svg { width: 1.1875rem; height: 1.1875rem; }

/* ---- ABOUT — rides up over Services ---- */
#about {
  position: relative; z-index: 10; margin-top: -100lvh;
  border-radius: var(--corner-section) var(--corner-section) 0 0;
  background: var(--surface-section-deep);
  padding: 4rem 1.25rem;
}
#about-banner { position: relative; height: 16rem; overflow: hidden; border-radius: var(--corner-card); }
#about-banner .layer { position: absolute; left: 0; right: 0; will-change: transform; }
#about-banner img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
#about-row { margin-top: 2.5rem; display: flex; flex-direction: column; gap: 2.5rem; }
#about-left { display: flex; flex-direction: column; gap: 2rem; }
#about-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 0.625rem; row-gap: 2.5rem; }
#about-stats > div {
  display: flex; flex-direction: column; gap: 1rem;
  border-left: 1px solid var(--accent); padding-left: 1rem;
}
#about-stats dd { font-size: 2.5rem; line-height: var(--leading-display); font-weight: 300; }
#about-stats dt { font-size: 0.875rem; line-height: var(--leading-body); font-weight: 300; }
#about-right { display: flex; flex-direction: column; gap: 2.5rem; }
#about-para { font-size: 1.375rem; line-height: var(--leading-body); font-weight: 300; }
#about-para .muted { color: var(--foreground-muted); }
#about-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }

/* ---- TEAM — sticky, so Contact rides up over it ---- */
#team {
  position: sticky; top: 0; z-index: 10;
  display: flex; height: 100lvh; flex-direction: column; justify-content: center;
  background: var(--surface-section-deep); padding-top: 18%;
}
#team-box { display: flex; height: 74%; flex-direction: column; }
/* `touch-action: manipulation` (pan-x + pan-y): touch is left entirely to
   native scrolling, so a finger must be allowed to pan BOTH axes — horizontal
   moves the rail, vertical scrolls the page. No scroll-snap: it re-snaps
   whenever the section's height changes as it sticks, and fights the glide. */
#team-rail {
  display: flex; min-height: 0; flex: 1; cursor: grab; gap: 0.6875rem;
  overflow-x: auto; overscroll-behavior-x: contain; padding-left: 1.25rem;
  touch-action: manipulation; user-select: none; -webkit-user-select: none;
  scroll-behavior: auto; scrollbar-width: none; -ms-overflow-style: none;
}
#team-rail:active { cursor: grabbing; }
#team-rail::-webkit-scrollbar { display: none; }
#team-rail img { pointer-events: none; }
.team-intro {
  display: flex; height: 100%; width: 80vw; max-width: 22rem; flex: none;
  flex-direction: column; justify-content: space-between;
  border-radius: var(--corner-card); background: var(--accent); padding: 1.5rem; color: #fff;
}
.team-intro .head { display: flex; flex-direction: column; gap: 2rem; }
.team-intro .eyebrow { color: inherit; opacity: 0.85; }
.team-intro h2 { font-size: 1.5rem; line-height: var(--leading-display); font-weight: 300; }
.team-intro ul { display: flex; gap: 0.75rem; }
.team-intro ul a { display: block; width: 3rem; height: 3rem; transition: opacity var(--duration-fast) var(--ease-entrance); }
.team-intro ul a:hover { opacity: 0.8; }
.team-intro ul img { width: 100%; height: 100%; }
.team-card {
  position: relative; height: 100%; width: 70vw; max-width: 20.75rem; flex: none;
  overflow: hidden; border-radius: var(--corner-card);
}
.team-card img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
/* `gap` is load-bearing: cap-height trimming removes the leading that would
   otherwise separate the two lines, so without it name and role collide. */
.team-card figcaption {
  position: absolute; left: 2rem; right: 2rem; bottom: 2rem;
  display: flex; height: 4rem; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.75rem; border-radius: var(--corner-panel); background: var(--surface-glass);
  padding-inline: 1.25rem; text-align: center;
  -webkit-backdrop-filter: blur(var(--glass-blur));
  backdrop-filter: blur(var(--glass-blur));
}
.team-card figcaption .n { font-size: 1rem; line-height: var(--leading-body); font-weight: 500; }
.team-card figcaption .r { font-size: 0.875rem; line-height: var(--leading-body); font-weight: 300; color: var(--foreground-subtle); }
.team-more {
  display: flex; height: 100%; width: 70vw; max-width: 20.75rem; flex: none;
  flex-direction: column; justify-content: space-between;
  border-radius: var(--corner-card); border: 1px solid var(--action-secondary-border);
  background: var(--action-secondary); padding: 1.5rem; color: var(--foreground);
}
.team-more p { font-size: 1.5rem; line-height: var(--leading-display); font-weight: 300; }
.team-more .foot { display: flex; align-items: flex-end; justify-content: space-between; }
.team-more .foot .label { font-size: 1rem; line-height: var(--leading-body); font-weight: 300; }
.team-more .ring {
  display: grid; width: 4.5rem; height: 4.5rem; place-items: center;
  border-radius: 9999px; border: 1px solid currentColor;
}
.team-more .ring svg { width: 1.1875rem; height: 1.1875rem; }
#team-bar { position: relative; margin: 1.5rem 1.25rem 0; height: 0.125rem; flex: none; background: var(--border-subtle); }
#team-bar .fill { height: 100%; transform-origin: left; background: var(--accent); }

/* ---- CONTACT — rides up over Team ---- */
#contact {
  position: relative; z-index: 20;
  display: flex; min-height: 100lvh; flex-direction: column; gap: 2.5rem;
  overflow: hidden; border-radius: var(--corner-section) var(--corner-section) 0 0;
  background: var(--surface-section); padding: 7rem 1.25rem 5rem;
}
/* A second WebGL context on a phone is a real cost and the form is what matters
   on that screen. */
#contact-scene { display: none; }
#contact-copy { display: flex; flex-direction: column; gap: 1.5rem; }
#contact-copy .head { display: flex; flex-direction: column; gap: 1rem; }
#form-panel {
  display: flex; flex-direction: column; gap: 2rem;
  border-radius: var(--corner-card); background: var(--surface-glass-strong);
  padding: 1.5rem;
  -webkit-backdrop-filter: blur(var(--glass-blur));
  backdrop-filter: blur(var(--glass-blur));
}
#form-panel .head { display: flex; flex-direction: column; gap: 1.5rem; }
#form-panel h3 { font-size: 1.75rem; line-height: var(--leading-display); font-weight: 300; }
#form-panel form { display: flex; flex: 1; flex-direction: column; gap: 1.5rem; }
#form-panel .field { display: flex; flex-direction: column; gap: 1rem; }
#form-panel label {
  font-size: 0.875rem; line-height: var(--leading-body); font-weight: 500;
  color: var(--accent); text-transform: uppercase;
}
#form-panel input, #form-panel textarea, #form-panel select {
  width: 100%; border-radius: var(--corner-panel); border: 1px solid var(--border-subtle);
  background: transparent; padding: 1.5rem 2rem;
  font-size: 1rem; line-height: var(--leading-body); font-weight: 300;
}
#form-panel textarea { resize: none; }
#form-panel select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23246f65' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1.5rem center; background-size: 0.75rem; padding-right: 3.5rem; }
#form-panel input::placeholder, #form-panel textarea::placeholder { color: var(--foreground-subtle); }
#form-panel input:focus-visible, #form-panel textarea:focus-visible, #form-panel select:focus-visible { border-color: var(--accent); outline: 2px solid var(--accent); outline-offset: 2px; }
#form-panel .field-note { font-size: 0.9375rem; line-height: var(--leading-body); font-weight: 400; color: var(--foreground); border-left: 3px solid var(--accent); padding-left: 0.75rem; }
#form-panel .consent { font-size: 1rem; line-height: var(--leading-body); font-weight: 300; color: var(--foreground-subtle); }
#form-panel .consent a { color: var(--foreground); text-decoration: underline; }
/* Height from the mockup's 54px frame, not from padding — padding around a 48px
   disc lands at 80 and blows the panel out of its box. `margin-top: auto` pins
   it to the bottom, as in Figma. */
#form-submit {
  margin-top: auto; display: flex; height: 3.375rem; flex: none;
  align-items: center; justify-content: space-between;
  border-radius: var(--corner-action); border: 1px solid var(--action-primary-border);
  background: var(--action-primary); padding-right: 0.125rem; padding-left: 2rem;
  font-size: 1.25rem; line-height: var(--leading-body); font-weight: 300;
  color: var(--action-primary-foreground);
  transition: color var(--duration-fast) var(--ease-entrance),
              background-color var(--duration-fast) var(--ease-entrance),
              border-color var(--duration-fast) var(--ease-entrance);
}
#form-submit:hover { background: var(--action-primary-border); }
#form-submit .disc {
  display: grid; width: 3rem; height: 3rem; flex: none; place-items: center;
  border-radius: 9999px; background: var(--action-disc); color: var(--action-disc-foreground);
}
#form-submit .disc svg { width: 1rem; height: 1rem; }

/* ==========================================================================
   md — 768
   ========================================================================== */
@media (min-width: 768px) {
  #header { padding-inline: 2.5rem; }
  #menu-panel { padding-inline: 2.5rem; }
  #hero { padding-inline: 2.5rem; }
  #hero h1 { font-size: 3rem; }
  #hero-scene { margin-inline: -2.5rem; }
  #why-copy .display, #services-head .display, #contact-copy .display { font-size: 3rem; }
  #services-head { padding-inline: 2.5rem; }
  #services-rail { left: 2.5rem; }
  #about { padding-inline: 2.5rem; }
  #about-banner { height: 24rem; }
  #about-para { font-size: 1.75rem; }
  #team-rail { padding-left: 2.5rem; }
  #team-bar { margin-inline: 2.5rem; }
  #team { padding-top: 12%; }
  #contact { padding-inline: 2.5rem; }
  #form-panel { padding: 2rem; }
}

/* ==========================================================================
   lg — 1024. The 1440 artboard: horizontal offsets in rem, vertical ones as a
   percentage of the artboard's 800px height, so the composition keeps Figma's
   proportions at any desktop width.
   ========================================================================== */
@media (min-width: 1024px) {
  #header nav.bar { display: flex; }
  #header-cta-slot { display: block; }
  #menu-wrap { display: none; }

  #hero { display: block; height: 100lvh; min-height: 0; padding: 0; }
  #hero h1 { font-size: 3.75rem; }
  #hero-copy { position: absolute; top: 28.55%; left: 2.5rem; width: 44.75rem; }
  #hero-copy .stack { gap: 3rem; }
  #hero-copy .head { gap: 2rem; }
  #hero-copy .lead { width: 30.875rem; }
  #hero-actions-slot { position: absolute; top: 89.375%; left: 2.5rem; }
  #hero-scene { position: absolute; top: 0; bottom: 0; left: 22.5625rem; width: 71.25rem; height: auto; margin: 0; }
  #hero-rule-slot { position: absolute; top: 78.625%; right: 2.5rem; left: 2.5625rem; }
  #hero-trust-slot { position: absolute; top: 83.625%; left: 2.5rem; }
  #hero-chips-slot { position: absolute; top: 83.625%; left: 55.5625rem; width: 31.9375rem; }
  #hero-chips { justify-content: flex-end; }
  #hero-chips li { padding: 1rem 2rem; font-size: 1rem; }

  #why-copy { gap: 3rem; }
  #why-copy .head { gap: 2rem; }
  #why-copy .head .display { width: 39.25rem; font-size: 3.75rem; }
  #why-copy > .lead { width: 27.625rem; }

  #services-head { display: block; padding: 0; }
  #services-head .eyebrow-slot { position: absolute; top: 14%; left: 66.75rem; width: 20.75rem; }
  /* 43.5rem, not Figma's 42.75 — split words are a hair wider than laid-out
     text, and at 42.75 the heading tipped onto a third line the card rail then
     covered. */
  #services-head .title-slot { position: absolute; top: 14%; left: 2.5rem; width: 43.5rem; }
  #services-head .desc-slot { position: absolute; top: 21%; left: 66.75rem; width: 20.75rem; }
  #services-head .display { font-size: 3.75rem; }
  #services-rail { top: 39%; bottom: 2.5rem; width: 85rem; }
  .svc-card { max-width: none; padding: 2rem; }
  .svc-card.lime { width: 35.0625rem; }
  .svc-card.photo, .svc-card.brand { width: 27.9375rem; }
  .svc-card .idx, .svc-card .discover p, .svc-card ul .item { font-size: 1.25rem; }
  .svc-card h3 { font-size: 2rem; }
  .svc-card .top { gap: 1.5rem; }
  .svc-card ul { width: 31.0625rem; gap: 1.5rem; }
  .svc-card ul li { gap: 1.5rem; }
  .svc-card .ring { width: 4.5rem; height: 4.5rem; }

  #about { height: 71.5rem; padding: 0; }
  #about-banner { position: absolute; top: 2.5rem; left: 2.5rem; height: 31.25rem; width: 85rem; }
  #about-row {
    position: absolute; top: 37.75rem; left: 2.375rem; width: 85.125rem;
    margin-top: 0; flex-direction: row; align-items: center; justify-content: space-between; gap: 0;
  }
  #about-left { width: 28.0625rem; gap: 5.5625rem; }
  #about-stats { height: 17.125rem; row-gap: 5.625rem; }
  #about-stats > div { gap: 2.375rem; padding-left: 1.5rem; }
  #about-stats dd { font-size: 3.75rem; }
  #about-stats dt { font-size: 1rem; }
  #about-right { width: 49.3125rem; gap: 8.375rem; }
  #about-para { font-size: 2.25rem; }

  #team { padding-top: 6%; }
  #team-box { height: 86%; }
  .team-intro { width: 27.9375rem; max-width: none; padding: 2rem; }
  .team-intro h2 { width: 21rem; font-size: 2rem; }
  .team-intro ul a { width: 4rem; height: 4rem; }
  .team-card { width: 20.75rem; }
  .team-more { width: 20.75rem; padding: 2rem; }
  .team-more p { font-size: 2rem; }
  #team-bar { margin-top: 2.5rem; }

  #contact { display: block; height: 100lvh; min-height: 0; padding: 0; }
  #contact-scene {
    pointer-events: none; display: block;
    position: absolute; top: 0; bottom: 0; left: 7.0625rem; width: 71.125rem;
  }
  #contact-copy { position: absolute; top: 35.25%; left: 2.5625rem; width: 42.75rem; gap: 3rem; }
  #contact-copy .head { gap: 2rem; }
  #contact-copy .display { font-size: 3.75rem; }
  #contact-copy .lead { width: 27.6875rem; }
  #form-panel {
    position: absolute; top: 1rem; right: 2.5rem; bottom: 2.5rem;
    width: 35.0625rem; gap: 3rem;
  }
  #form-panel h3 { font-size: 2.25rem; }
}

/* ==========================================================================
   EXCELLENT CARE ADDITIONS — everything below is new for this site. It reuses
   the Dantora tokens and shapes; nothing here introduces a new colour or font.
   ========================================================================== */

/* ---- Keyboard focus, visible on every surface ---- */
a:focus-visible, button:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px;
}
.btn:focus-visible, #form-submit:focus-visible, .menu-cta:focus-visible { outline-offset: 3px; border-radius: var(--corner-action); }
#menu-panel a:focus-visible, .team-intro a:focus-visible, .svc-card.brand a:focus-visible,
.svc-card.photo a:focus-visible, #site-footer .on-green a:focus-visible { outline-color: var(--raw-white); }

.skip-link {
  position: fixed; left: 1rem; top: -4rem; z-index: 120;
  background: var(--accent); color: #fff; padding: 0.875rem 1.25rem; border-radius: var(--corner-panel);
  font-size: 1rem; transition: top var(--duration-fast) var(--ease-entrance);
}
.skip-link:focus { top: 1rem; }

/* ---- Preloader: once per visit, never without JS, never under reduced motion ---- */
.no-js #preloader, .seen #preloader { display: none; }
@media (prefers-reduced-motion: reduce) { #preloader { display: none; } }

/* ---- Header ---- */
#header .logo { width: auto; padding-right: 1.25rem; }
#header .logo .name { white-space: nowrap; }
#header nav.bar { width: auto; }
#header nav.bar a[aria-current="page"] { color: var(--accent); font-weight: 400; }
.mark-tile svg { width: 1.625rem; height: 1.625rem; }

/* ---- Menu footer: contact lines instead of social links ---- */
#menu-panel .menu-contact { display: flex; flex-direction: column; gap: 0.75rem; font-size: 1rem; font-weight: 300; }
#menu-panel .menu-contact a { opacity: 0.9; }
#menu-panel .menu-contact a:hover { opacity: 1; }

/* ---- Whole-card links on the services rail ---- */
.svc-card .stretch { position: absolute; inset: 0; z-index: 12; border-radius: var(--corner-card); }
.svc-card .stretch:focus-visible { outline-offset: -4px; }
.svc-card ul a.item { position: relative; z-index: 13; transition: color var(--duration-fast) var(--ease-entrance); }
.svc-card ul a.item:hover { color: var(--accent); }
.svc-card.photo::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(5,64,56,0.35) 0%, rgba(5,64,56,0) 35%, rgba(5,64,56,0) 65%, rgba(5,64,56,0.45) 100%);
}
.svc-card.photo .top, .svc-card.photo .discover { z-index: 10; }

/* ---- Rail intro card: a text link instead of social icons ---- */
.team-intro .intro-link { display: inline-flex; align-items: center; gap: 0.75rem; font-size: 1rem; font-weight: 300; }
.team-intro .intro-link .ring {
  display: grid; width: 3.5rem; height: 3.5rem; place-items: center; border-radius: 9999px; border: 1px solid currentColor;
}
.team-intro .intro-link .ring svg { width: 1rem; height: 1rem; }
.team-card.dark figcaption .r { color: var(--foreground-muted); }

/* ---- Sub-page hero: the same mint panel and helix, shorter ---- */
#hero.sub { min-height: 0; gap: 1.5rem; padding-bottom: 2.5rem; }
#hero.sub .crumbs { display: flex; gap: 0.5rem; font-size: 0.875rem; font-weight: 300; color: var(--foreground-muted); }
#hero.sub .crumbs a { text-decoration: underline; text-underline-offset: 0.2em; }
#hero.sub .crumbs a:hover { color: var(--accent); }
#hero.sub #hero-scene { height: 30lvh; }
#hero.sub .sub-foot { display: flex; flex-direction: column; gap: 1.5rem; position: relative; z-index: 10; }

/* ---- Photo placeholders: a quiet label so nobody mistakes them for photos ---- */
.ph-note { position: absolute; z-index: 11; right: 1rem; top: 1rem; font-size: 0.75rem; letter-spacing: 0.02em; color: #000; background: var(--surface-glass); padding: 0.375rem 0.625rem; border-radius: var(--corner-mark); }

/* ---- About as a flow block (sub-pages), not an overlay ---- */
#about.flow { margin-top: 0.75rem; border-radius: var(--corner-section); }

/* ---- Service details: ride up over the pinned runway on the Services page ---- */
#svc-details {
  position: relative; z-index: 10; margin-top: -100lvh;
  border-radius: var(--corner-section) var(--corner-section) 0 0;
  background: var(--surface-section-deep);
  padding: 4rem 1.25rem; display: flex; flex-direction: column; gap: 1rem;
}
#svc-details > .head { display: flex; flex-direction: column; gap: 1rem; padding-bottom: 2rem; max-width: 44rem; }
.svc-detail {
  scroll-margin-top: 6rem;
  display: grid; gap: 2rem; padding: 1.5rem; border-radius: var(--corner-card);
  background: var(--surface-glass-strong);
}
.svc-detail .media { position: relative; overflow: hidden; border-radius: var(--corner-panel); aspect-ratio: 4 / 3; max-width: 100%; }
.svc-detail .media img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.svc-detail .body { display: flex; flex-direction: column; gap: 1.5rem; min-width: 0; }
.svc-detail .idx { font-size: 1rem; line-height: var(--leading-body); color: var(--accent); }
.svc-detail h3 { font-size: 2rem; line-height: var(--leading-display); font-weight: 300; text-wrap: balance; }
.svc-detail .lead { max-width: 36rem; color: var(--foreground-muted); font-size: 1.125rem; line-height: 1.45; text-box: none; }
.svc-detail ul.incl { display: flex; flex-direction: column; }
.svc-detail ul.incl li { display: flex; gap: 1rem; align-items: center; padding-block: 1rem; border-top: 1px solid var(--border-subtle); font-size: 1rem; font-weight: 300; }
.svc-detail ul.incl li svg { width: 0.875rem; height: 0.875rem; flex: none; color: var(--accent); }
.svc-detail .for { display: flex; flex-wrap: wrap; gap: 0.25rem; }
.svc-detail .for li {
  border-radius: var(--corner-chip); border: 1px solid var(--border-subtle); background: var(--surface-section);
  padding: 0.625rem 1rem; font-size: 0.875rem; font-weight: 300;
}
.svc-detail .actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ---- Contact page: the details beside the form ---- */
#contact-info { position: relative; z-index: 20; background: var(--background); padding: 4rem 1.25rem; }
#contact-info > .head { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2.5rem; max-width: 44rem; }
#contact-info .cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.625rem; }
.info-card {
  display: flex; flex-direction: column; gap: 1.5rem; justify-content: space-between; min-height: 12rem;
  border-radius: var(--corner-card); background: var(--surface-section); padding: 1.5rem; min-width: 0;
}
.info-card.brand { background: var(--accent); color: #fff; }
.info-card.brand .eyebrow { color: var(--raw-white); }
.info-card.lime { background: var(--action-secondary); border: 1px solid var(--action-secondary-border); }
.info-card .value { font-size: 1.5rem; line-height: var(--leading-display); font-weight: 300; overflow-wrap: anywhere; }
.info-card .note { font-size: 0.9375rem; line-height: 1.4; font-weight: 300; opacity: 0.8; text-box: none; }
.info-card a.value:hover { text-decoration: underline; text-underline-offset: 0.15em; }

/* ---- CTA band (About page end): rides up over the sticky rail ---- */
#cta-band {
  position: relative; z-index: 20; overflow: hidden;
  border-radius: var(--corner-section) var(--corner-section) 0 0;
  background: var(--surface-section); padding: 6rem 1.25rem;
  display: flex; flex-direction: column; align-items: center; gap: 2rem; text-align: center;
}
#cta-band .head { display: flex; flex-direction: column; align-items: center; gap: 1rem; width: min(100%, 44.75rem); }
#cta-band .head > * { width: 100%; }
#cta-band .lead { width: min(100%, 30rem); }
#cta-band .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }

/* ---- Form additions ---- */
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
#form-panel .row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
#form-panel .opt { font-weight: 300; text-transform: none; color: var(--foreground-muted); }
#form-panel input, #form-panel textarea, #form-panel select { padding: 1.125rem 1.5rem; }
#form-panel input[aria-invalid="true"], #form-panel textarea[aria-invalid="true"] { border-color: #b3261e; }
#form-status { font-size: 1rem; line-height: 1.4; font-weight: 300; text-box: none; border-radius: var(--corner-panel); }
#form-status:empty { display: none; }
#form-status.ok { background: var(--action-secondary); border: 1px solid var(--action-secondary-border); padding: 1rem 1.25rem; }
#form-status.err { background: #fdeceb; border: 1px solid #f3c2bf; color: #8c1d18; padding: 1rem 1.25rem; }
#form-submit[disabled] { opacity: 0.6; cursor: progress; }
.field-error { font-size: 0.875rem; color: #8c1d18; font-weight: 400; text-box: none; }

/* ---- Footer ---- */
#site-footer {
  position: relative; z-index: 20; background: var(--background);
  padding: 0.75rem 0.75rem 1.25rem;
}
#site-footer .on-green {
  border-radius: var(--corner-section); background: var(--accent); color: #fff;
  padding: 3rem 1.5rem 2rem; display: flex; flex-direction: column; gap: 3rem;
}
#site-footer .cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
#site-footer .brand { display: flex; flex-direction: column; gap: 1.5rem; max-width: 26rem; }
#site-footer .brand .logo { display: flex; align-items: center; gap: 0.75rem; font-size: 1.5rem; font-weight: 300; }
#site-footer .brand .mark-tile { background: var(--raw-white); color: var(--accent); }
#site-footer .brand p { font-size: 1rem; line-height: 1.45; font-weight: 300; opacity: 0.85; text-box: none; }
#site-footer h2 { font-size: 0.875rem; font-weight: 500; text-transform: uppercase; color: var(--raw-white); margin-bottom: 1.25rem; }
#site-footer ul { display: flex; flex-direction: column; gap: 0.875rem; font-size: 1rem; font-weight: 300; }
#site-footer ul a { opacity: 0.9; }
#site-footer ul a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 0.2em; }
#site-footer .base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  border-top: 1px solid rgba(255,255,255,0.2); padding-top: 1.5rem; font-size: 0.875rem; font-weight: 300; opacity: 0.85;
}
#site-footer .base a { text-decoration: underline; text-underline-offset: 0.2em; }

/* ---- Prose pages (privacy, 404) ---- */
.prose-wrap { padding: 4rem 1.25rem 6rem; }
.prose { max-width: 44rem; display: flex; flex-direction: column; gap: 1.25rem; font-size: 1.0625rem; line-height: 1.6; font-weight: 300; }
.prose :is(p, li) { text-box: none; }
.prose h2 { font-size: 1.75rem; line-height: var(--leading-display); margin-top: 1.5rem; }
.prose ul { list-style: disc; padding-left: 1.25rem; display: flex; flex-direction: column; gap: 0.5rem; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 0.2em; }

@media (min-width: 768px) {
  #hero.sub #hero-scene { height: 36lvh; }
  #svc-details { padding-inline: 2.5rem; }
  .svc-detail { padding: 2rem; }
  #contact-info { padding-inline: 2.5rem; }
  #contact-info .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #cta-band { padding-inline: 2.5rem; }
  #cta-band .display { font-size: 3rem; }
  #form-panel .row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #site-footer .on-green { padding: 4rem 2.5rem 2rem; }
  #site-footer .cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #site-footer .brand { grid-column: 1 / -1; }
  .prose-wrap { padding-inline: 2.5rem; }
}

@media (min-width: 1024px) {
  /* Sub-page hero: a flow layout inside the same panel, scene on the right. */
  #hero.sub { display: flex; height: auto; min-height: 46rem; padding: 13rem 2.5rem 2.5rem; justify-content: space-between; }
  #hero.sub #hero-copy { position: relative; top: auto; left: auto; width: 44.75rem; }
  #hero.sub #hero-scene { position: absolute; top: 0; bottom: 0; left: 40rem; width: 50rem; height: auto; margin: 0; }
  #hero.sub .sub-foot { flex-direction: row; align-items: center; justify-content: space-between; }
  #hero.sub #hero-chips { justify-content: flex-end; }

  #svc-details { padding: 5rem 2.5rem 6rem; gap: 0.75rem; }
  #svc-details > .head { padding-bottom: 3rem; }
  #svc-details > .head .display { font-size: 3.75rem; }
  .svc-detail { grid-template-columns: 27.9375rem minmax(0, 1fr); gap: 4rem; padding: 1.25rem 3rem 1.25rem 1.25rem; align-items: center; }
  .svc-detail .media { aspect-ratio: auto; height: 100%; min-height: 30rem; border-radius: var(--corner-card); }
  .svc-detail h3 { font-size: 2.75rem; }

  #contact-info { padding: 6rem 2.5rem; }
  #contact-info > .head .display { font-size: 3.75rem; }
  #contact-info .cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .info-card { min-height: 17rem; padding: 2rem; }

  #cta-band { padding-block: 9rem; }
  #cta-band .display { font-size: 3.75rem; }

  #form-panel { overflow-y: auto; gap: 2rem; }
  #form-panel form { gap: 1.25rem; }
  #form-panel .field { gap: 0.75rem; }

  #site-footer .on-green { padding: 5rem 2.5rem 2.5rem; }
  #site-footer .cols { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
  #site-footer .brand { grid-column: auto; }
}

/* Rings never squash when the label beside them wraps. */
.svc-card .ring, .team-more .ring, .team-intro .intro-link .ring { flex: none; }
.svc-card .discover { gap: 1rem; }
.svc-card .discover p { max-width: 22rem; }
#about-banner .ph-note { top: auto; bottom: 1rem; }
.svc-detail .actions .btn { white-space: normal; height: auto; min-height: 3rem; padding-block: 0.875rem; text-align: center; max-width: 100%; }
.info-card > div { display: flex; flex-direction: column; gap: 0.875rem; }
@media (min-width: 1024px) {
  #contact-info .cards { grid-template-columns: 1fr 1.35fr 1fr 1fr; }
  .info-card .value { font-size: 1.375rem; }
}
.info-card.brand .note { opacity: 1; }
/* No GPU (or no JavaScript): a still of the helix in the same place. */
.no-scene #hero-scene, .no-js #hero-scene, .no-scene #contact-scene, .no-js #contact-scene {
  background: url("../img/helix-poster.webp") center / cover no-repeat;
}
/* 24px minimum targets (WCAG 2.2) without moving the design's baselines. */
.svc-card ul a.item { padding-block: 0.5rem; margin-block: -0.5rem; }
#site-footer ul a, #site-footer .base a, #hero.sub .crumbs a, #form-panel .consent a { display: inline-block; padding-block: 0.4375rem; margin-block: -0.4375rem; }
#site-footer ul a, #site-footer .base a, #hero.sub .crumbs a, #form-panel .consent a { text-box: none; padding-block: 0; margin-block: 0; line-height: 1.5; }
#site-footer ul { gap: 0.375rem; }
#site-footer ul a, #site-footer .base a, #hero.sub .crumbs a, #form-panel .consent a, .svc-card ul a.item { min-height: 24px; }
#site-footer ul a, #site-footer .base a { display: inline-flex; align-items: center; }
#site-footer ul li { display: flex; min-height: 24px; line-height: 1.5; text-box: none; }
#site-footer ul { gap: 0.25rem; }
/* Five chips need two rows, not three, so they stay inside the hero on wide 16:9 screens. */
@media (min-width: 1024px) {
  #hero-chips-slot { left: 45rem; width: 42.5rem; }
  #hero-chips li { padding: 0.75rem 1.5rem; }
}
#site-footer .cols a[href^="mailto:"] { overflow-wrap: anywhere; }
.info-card a.value[href^="mailto:"] { font-size: 1.125rem; overflow-wrap: normal; }

/* Brand colours: green carries the surfaces, red marks the heart and every call to action. */
.mark-tile .heart { fill: var(--raw-red-400); }
#site-footer .brand .mark-tile .heart { fill: var(--brand-red); }
#site-footer .brand .mark-tile { background: var(--raw-white); color: var(--accent); }
#site-footer h2 { color: var(--raw-white); opacity: 0.85; }
.info-card.brand .eyebrow { color: var(--raw-white); opacity: 0.85; }
#form-status.ok { color: var(--foreground); }
/* Careers */
#svc-details > .head .openings { max-width: 40rem; padding: 1rem 1.25rem; border-radius: var(--corner-panel); background: var(--action-secondary); border: 1px solid var(--action-secondary-border); font-size: 1rem; line-height: 1.45; font-weight: 300; text-box: none; }
#svc-details > .head .openings strong { font-weight: 500; color: var(--raw-red-700); }
.svc-detail.role h4.eyebrow { margin-bottom: -0.75rem; }
#cta-band .lead a { color: var(--accent); text-decoration: underline; text-underline-offset: 0.2em; overflow-wrap: anywhere; }

/* ---- Two phone lines (contact card, footer, menu) ---- */
.info-card.phones > div { gap: 0.375rem; }
.info-card.phones .note { margin-top: 0.75rem; }
.info-card.phones .note:first-child { margin-top: 0; }
.info-card.phones .value { font-size: 1.375rem; }
#site-footer li.ph { display: flex; flex-direction: column; gap: 0; }
#site-footer .lbl { font-size: 0.8125rem; font-weight: 500; }
#menu-panel .menu-contact p { margin: 0; }
#menu-panel .menu-contact .lbl { display: block; font-size: 0.8125rem; font-weight: 500; }
#menu-panel .menu-contact { gap: 0.5rem; }
#site-footer .social { display: flex; gap: 1.5rem; }
#site-footer .social a { text-decoration: underline; text-underline-offset: 0.2em; }

/* ---- Client Experience Survey ---- */
#survey { padding: 2.5rem 1rem 4rem; background: var(--surface-section); }
#survey #form-panel { position: static; width: auto; max-width: 52rem; margin-inline: auto; overflow: visible; background: var(--background); }
#survey #form-panel h2 { font-size: 2rem; line-height: var(--leading-display); font-weight: 300; }
#survey fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
#survey legend {
  padding: 0; margin-bottom: 1rem; font-size: 0.875rem; line-height: 1.35; font-weight: 500;
  color: var(--accent); text-transform: uppercase;
}
#survey .followup legend .opt { text-transform: none; }
#survey .scale { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.5rem; }
#survey .scale.three { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 30rem; }
#survey .rate { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.25rem;
  min-height: 4rem; padding: 0.5rem 0.25rem; border: 1px solid var(--border-subtle); border-radius: var(--corner-panel);
  background: var(--background); cursor: pointer; text-transform: none; color: var(--foreground); text-align: center;
  transition: background-color var(--duration-fast) var(--ease-entrance), border-color var(--duration-fast) var(--ease-entrance); }
#survey .rate input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; padding: 0; border: 0; }
#survey .rate .n { font-size: 1.5rem; font-weight: 300; line-height: 1; }
#survey .rate .w { font-size: 0.8125rem; font-weight: 400; line-height: 1.2; color: var(--foreground-muted); }
#survey .scale.three .rate .w { font-size: 1rem; color: var(--foreground); }
#survey .rate:hover { border-color: var(--accent); }
#survey .rate:has(input:checked) { background: var(--accent); border-color: var(--action-primary-border); color: var(--raw-white); }
#survey .rate:has(input:checked) .w { color: var(--raw-white); }
#survey .rate:has(input:focus-visible) { outline: 2px solid var(--brand-red); outline-offset: 2px; }
#survey fieldset[aria-invalid="true"] .rate { border-color: #b3261e; }
#survey #form-submit { margin-top: 0.5rem; }
@media (max-width: 479px) {
  #survey .rate .w { font-size: 0.6875rem; }
}
@media (min-width: 768px) {
  #survey { padding: 4rem 2.5rem 6rem; }
  #survey #form-panel { padding: 3rem; }
}
/* Homepage review fixes, 11 Oct 2026: 24px desktop nav targets (WCAG 2.2), and the
   two "why" buttons wrap instead of running off narrow phones (320-360px). */
#header nav.bar a { display: inline-flex; align-items: center; min-height: 24px; }
@media (max-width: 400px) {
  #why-copy .why-actions { flex-wrap: wrap; justify-content: center; }
  #why-copy .why-actions .btn { width: auto; flex: 1 1 8.5rem; }
}
/* Real photos, 11 Oct 2026: a soft deep-green scrim at the top and bottom of photo
   cards keeps the white title and blurb readable on bright, sunlit photos. */
.svc-card.photo::after {
  content: ""; position: absolute; inset: 0; z-index: 5; pointer-events: none; border-radius: inherit;
  background: linear-gradient(to bottom, rgb(5 40 34 / 0.62) 0%, rgb(5 40 34 / 0) 32%, rgb(5 40 34 / 0) 50%, rgb(5 40 34 / 0.78) 100%);
}
/* Mobile carousels, 11 Oct 2026. On touch screens the "who we care for" rail
   snaps each card to the left edge. The section is a fixed 100lvh, so its height
   doesn't change while it sticks, and mouse dragging (which sets scrollLeft
   itself) is never affected. Captions grow to fit their text instead of
   overflowing a fixed-height box. */
@media (hover: none) and (pointer: coarse) {
  #team-rail { scroll-snap-type: x mandatory; scroll-padding-inline: 1.25rem; }
  #team-rail > .team-intro, #team-rail > .team-card, #team-rail > .team-more { scroll-snap-align: start; scroll-snap-stop: always; }
}
.team-card figcaption { height: auto; min-height: 4rem; padding-block: 0.75rem; gap: 0.5rem; }
@media (max-width: 759px) {
  .team-card figcaption { left: 1rem; right: 1rem; bottom: 1rem; padding-inline: 0.875rem; }
}

/* 11 Oct 2026 review: breadcrumb grey darkened for WCAG AA (about 7.5:1 settled). */
#hero.sub .crumbs { color: rgba(0, 0, 0, 0.68); }

/* 11 Oct 2026 review: trim empty space without changing the design. */
@media (min-width: 1024px) {
  #hero.sub { min-height: 40rem; padding-top: 11rem; }
  #why { height: min(100lvh, 46rem); }
}
@media (hover: none) and (pointer: coarse), (max-width: 759px) {
  /* No hover trail on touch screens, so the section only needs room for its copy. */
  #why { height: auto; }
  #trail { height: auto; }
  #why-copy { position: relative; top: auto; left: auto; translate: none; margin-inline: auto; padding-block: 6rem; }
}

/* 11 Oct 2026: menu contact lines sit in .mask (overflow hidden); give descenders room so "days" isn't clipped. */
#menu-panel .menu-contact p, #menu-panel .menu-contact a { line-height: 1.35; padding-bottom: 0.15em; text-box: none; }

/* 11 Oct 2026 review fix: #svc-details overlaps the services runway on the Services page (margin-top -100lvh).
   On Careers it follows the hero directly, so the overlap hid the page hero. */
#hero.sub + #svc-details { margin-top: 0.75rem; }

/* 11 Oct 2026 review: Contact page phone and email links get a 24px-tall hit area (WCAG 2.5.8) with no visual change. */
.info-card a.value, .info-card.phones a { display: inline-flex; align-items: center; min-height: 24px; }

/* ==========================================================================
   22 Oct 2026: About page content update. Who we are, Mission and Vision cards
   and the seven Core Values cards. Long copy, so: no word-by-word reveals on
   the paragraphs, no parallax, and body text never drops below 16-17px even
   where the desktop grid shrinks the rem.
   ========================================================================== */
#who {
  position: relative; z-index: 10; margin-top: 0.75rem;
  border-radius: var(--corner-section); background: var(--surface-section-deep);
  padding: 1.25rem 1.25rem 4rem;
}
.who-banner { position: relative; height: 16rem; overflow: hidden; border-radius: var(--corner-card); }
.who-banner img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 52% 50%; }
.who-row { display: grid; gap: 2rem; margin-top: 3rem; }
.who-head { display: flex; flex-direction: column; gap: 1rem; }
.who-copy { display: flex; flex-direction: column; gap: 1.25rem; max-width: 46rem; }
.who-copy p, .mv-card p, .value-card p { text-box: none; font-weight: 350; }
.who-copy p { font-size: max(1.125rem, 17px); line-height: 1.65; color: rgba(0, 0, 0, 0.82); }
.who-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1rem; }

#mission-vision { position: relative; z-index: 10; background: var(--background); padding: 4rem 1.25rem; }
.mv-grid { display: grid; gap: 0.75rem; }
.mv-card {
  display: flex; flex-direction: column; gap: 1.25rem; min-width: 0;
  border-radius: var(--corner-card); background: var(--surface-section); padding: 2rem 1.5rem;
}
.mv-card h2 { font-size: 2.25rem; line-height: var(--leading-display); font-weight: 300; margin-bottom: 0.5rem; }
.mv-card p { font-size: max(1.0625rem, 17px); line-height: 1.65; color: rgba(0, 0, 0, 0.82); }
.mv-icon, .value-icon { display: grid; place-items: center; flex: none; border-radius: 9999px; }
.mv-icon { width: 3.5rem; height: 3.5rem; background: var(--accent); color: var(--raw-white); }
.mv-card.vision .mv-icon { background: var(--brand-red); }
.mv-icon svg { width: 1.75rem; height: 1.75rem; }

#core-values {
  position: relative; z-index: 10;
  border-radius: var(--corner-section); background: var(--surface-section-deep);
  padding: 4rem 1.25rem;
}
.values-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.75rem; }
/* The list's cards share the grid with the heading, so 1 heading + 7 cards fill two rows of four on desktop. */
.values-list { display: contents; }
.values-head { display: flex; flex-direction: column; gap: 1rem; padding-bottom: 1.5rem; }
.values-head .lead { font-size: max(1.125rem, 17px); line-height: 1.5; color: var(--foreground-muted); text-box: none; }
.value-card {
  display: flex; flex-direction: column; gap: 1rem; min-width: 0;
  border-radius: var(--corner-card); background: var(--surface-glass-strong); padding: 1.75rem 1.5rem;
}
.value-icon { width: 3rem; height: 3rem; background: var(--surface-section); border: 1px solid var(--border-subtle); color: var(--accent); margin-bottom: 0.25rem; }
.value-icon svg { width: 1.5rem; height: 1.5rem; }
.value-card h3 { font-size: max(1.5rem, 21px); line-height: var(--leading-display); font-weight: 400; overflow-wrap: anywhere; }
.value-card p { font-size: max(1rem, 16px); line-height: 1.6; color: rgba(0, 0, 0, 0.8); }

@media (min-width: 768px) {
  #who { padding: 2.5rem 2.5rem 5rem; }
  .who-banner { height: 24rem; }
  #mission-vision { padding: 5rem 2.5rem; }
  .mv-card { padding: 2.5rem; }
  #core-values { padding: 5rem 2.5rem; }
  .values-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .values-head { grid-column: 1 / -1; }
  .values-head .display { font-size: 3rem; }
}
@media (min-width: 1024px) {
  .who-banner { height: 31.25rem; }
  .who-row { grid-template-columns: 26rem minmax(0, 1fr); gap: 4rem; margin-top: 4.5rem; }
  .who-head .display { font-size: 3.75rem; }
  .who-copy { gap: 1.5rem; }
  .who-copy p { font-size: max(1.375rem, 18px); }
  #mission-vision { padding: 6rem 2.5rem; }
  .mv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
  .mv-card { padding: 3rem; }
  .mv-card h2 { font-size: 3rem; }
  .mv-card p { font-size: max(1.125rem, 17px); }
  #core-values { padding: 6rem 2.5rem; }
  .values-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 1fr; }
  .values-head { grid-column: auto; padding: 1rem 1rem 0 0; }
  .values-head .display { font-size: 3.75rem; }
  .value-card { padding: 2rem; }
}

/* 22 Oct 2026: Meet our team (About page). One .profile per person; the layout
   repeats cleanly as profiles are added. Photo column beside the bio from 900px,
   stacked below. */
#our-team { position: relative; z-index: 10; background: var(--background); padding: 4rem 1.25rem; }
.team-section-head { display: flex; flex-direction: column; gap: 1rem; padding-bottom: 2rem; max-width: 44rem; }
.profiles { display: flex; flex-direction: column; gap: 1.25rem; }
.profile {
  display: grid; gap: 2rem; min-width: 0; scroll-margin-top: 6rem;
  border-radius: var(--corner-card); background: var(--surface-section); border: 1px solid var(--border-subtle);
  padding: 1.25rem 1.25rem 2rem;
}
.profile-photo { position: relative; overflow: hidden; border-radius: var(--corner-panel); aspect-ratio: 4 / 5; width: 100%; max-width: 22rem; background: var(--surface-section-deep); }
.profile-photo img, .profile-photo svg { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; display: block; }
.profile-body { display: flex; flex-direction: column; gap: 1.75rem; min-width: 0; }
.profile-head { display: flex; flex-direction: column; gap: 0.75rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border-subtle); }
.profile-head h3 { font-size: max(2.25rem, 30px); line-height: var(--leading-display); font-weight: 300; }
.profile-title { font-size: max(1.125rem, 17px); line-height: 1.3; font-weight: 450; color: var(--accent); text-box: none; }
.profile-org { font-size: max(0.9375rem, 15px); line-height: 1.3; font-weight: 350; color: var(--foreground-muted); text-box: none; }
.profile-bio { display: flex; flex-direction: column; gap: 1.125rem; max-width: 46rem; }
.profile-bio p { font-size: max(1.0625rem, 17px); line-height: 1.65; font-weight: 350; color: rgba(0, 0, 0, 0.82); text-box: none; }

@media (min-width: 768px) {
  #our-team { padding: 5rem 2.5rem; }
  .team-section-head .display { font-size: 3rem; }
  .profile { padding: 2rem; }
}
@media (min-width: 900px) {
  .profile { grid-template-columns: minmax(15rem, 2fr) 3fr; gap: 3rem; align-items: start; }
  .profile-photo { max-width: none; }
}
@media (min-width: 1024px) {
  #our-team { padding: 6rem 2.5rem; }
  .team-section-head { padding-bottom: 3rem; }
  .team-section-head .display { font-size: 3.75rem; }
  .profile { grid-template-columns: 26rem minmax(0, 1fr); gap: 4.5rem; padding: 1.25rem 3.5rem 1.25rem 1.25rem; align-items: center; }
  .profile-body { padding-block: 2.5rem; }
  .profile-head h3 { font-size: 3rem; }
  .profile-bio p { font-size: max(1.1875rem, 17px); }
}
/* 22 Oct 2026: headshots are supplied at 4:5, the frame's own ratio, so nothing is cropped;
   if a future photo differs, keep the face in view. */
.profile-photo img { object-position: 50% 22%; }
/* 22 Oct 2026: a profile whose biography is still pending shows name, title and photo only. */
.profile.no-bio .profile-head { border-bottom: 0; padding-bottom: 0; }
/* 22 Oct 2026: long executive biographies; the headshot lines up with the name instead of floating mid-card. */
@media (min-width: 900px) { .profile { align-items: start; } }

/* 23 Oct 2026: the Excellent Care logo. The emblem replaces the drawn house mark in the
   header and on the forms; the footer shows the full logo on a white card so the teal
   lettering keeps its contrast against the green panel. */
.mark-tile.logo-mark { background: var(--raw-white); border: 1px solid var(--border-subtle); padding: 0.1875rem; overflow: hidden; }
.mark-tile.logo-mark img { width: 100%; height: 100%; object-fit: contain; display: block; }
#site-footer .brand .logo.full {
  display: inline-flex; align-self: flex-start; background: var(--raw-white);
  border-radius: var(--corner-card); padding: 0.75rem 1rem;
}
#site-footer .brand .logo.full img { width: 15rem; height: auto; max-width: 100%; display: block; }
#site-footer .brand .logo.full:focus-visible { outline: 2px solid var(--raw-white); outline-offset: 3px; }

/* 23 Oct 2026: services from the client's flyer. Disclaimers sit under their service's list,
   in body-size type with a red rule so they stay readable on phones. */
.svc-detail .svc-note {
  max-width: 36rem; padding: 1rem 1.25rem; border-left: 3px solid var(--brand-red);
  border-radius: 0 var(--corner-panel) var(--corner-panel) 0; background: var(--action-secondary);
  font-size: max(0.9375rem, 15px); line-height: 1.55; font-weight: 350; color: rgba(0, 0, 0, 0.82); text-box: none;
}
.svc-detail .svc-note strong { font-weight: 500; }
.svc-card .discover p { text-wrap: pretty; }
