:root{
  --white:#ffffff; --black:#000000;
  --blue-900:#0d47a1; --blue-500:#2196f3;
  --sky-200:#90caf9;  --sky-50:#e3f2fd;
  --sky-25:#f2f8fe;   /* --sky-50 lifted toward white — section ground */

  --background:var(--white);
  --foreground:var(--black);
  --surface-section:var(--sky-25);
  --surface-section-deep:var(--sky-50);

  --accent:var(--blue-900);
  --accent-bright:var(--blue-500);
  --action-primary:var(--blue-900);
  --action-primary-border:var(--blue-900);
  --action-primary-hover:var(--blue-500);
  --action-primary-foreground:var(--white);
  --action-secondary:var(--sky-50);
  --action-secondary-border:var(--sky-200);
  --action-secondary-foreground:var(--black);

  --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);
  --foreground-muted:rgba(0,0,0,0.4);
  --foreground-subtle:rgba(0,0,0,0.5);

  --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;
}

*,*::before,*::after{box-sizing:border-box}
html{font-size:16px;scrollbar-gutter:stable;-webkit-text-size-adjust:100%}
@media (min-width:1024px){ html{font-size:1.111111vw} }

body{
  margin:0;
  background:#ffffff;
  min-height:100vh;
  overflow-x:hidden;
  color:var(--foreground);
  font-family:"Google Sans Flex","Google Sans",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  font-variation-settings:"GRAD" 0,"ROND" 0,"wdth" 100;
  font-weight:300;
  line-height:var(--leading-body);
  -webkit-font-smoothing:antialiased;
}
body.is-locked{overflow:hidden}

h1,h2,h3,h4,h5,h6,p,li,dd,dt,label,figcaption,button,a{
  text-box:trim-both cap alphabetic;
}
.text-trim{text-box:trim-both cap alphabetic}

h1,h2,h3,h4,h5,h6,p,dl,dd,dt,figure,ul,ol{margin:0;padding:0}
ul,ol{list-style:none}
img,svg{display:block;max-width:100%}
a{color:inherit;text-decoration:none}
button{font:inherit;color:inherit;background:none;border:0;cursor:pointer}
input,textarea{font:inherit;color:inherit}

/* ---------- reveal engine ---------- */
/* words are inline-blocks inside a real block container, so the element keeps its
   own line boxes and the global cap-height trim still reaches it. A flex row would
   silently opt the heading out of text-box trimming. */
.rv-words{display:block}
.rv-center{text-align:center}
.rv-w{display:inline-block;will-change:transform,filter,opacity}
.hero-hold{opacity:0}

/* ---------- buttons ---------- */
.btn{
  display:inline-flex;align-items:center;justify-content:center;
  height:3rem;padding-inline:2rem;border-radius:var(--corner-action);
  border:1px solid transparent;font-size:1.25rem;font-weight:300;line-height:var(--leading-body);
  white-space:nowrap;
  transition:background-color var(--duration-normal) var(--ease-entrance),
             color var(--duration-normal) var(--ease-entrance),
             border-color var(--duration-normal) var(--ease-entrance);
}
.btn--primary{background:var(--action-primary);border-color:var(--action-primary-border);color:var(--action-primary-foreground)}
.btn--primary:hover{background:var(--action-primary-hover)}
.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:.625rem;padding:0 .125rem 0 2rem}
.btn--arrow .disc{
  width:3rem;height:3rem;border-radius:999px;background:var(--action-secondary);
  display:grid;place-items:center;color:var(--black);flex:none;
}
.btn--arrow .disc svg{width:16px;height:16px}
.btn-w{width:11.25rem}

.ring{
  width:72px;height:72px;border-radius:999px;border:1px solid currentColor;
  display:grid;place-items:center;flex:none;
}
.ring svg{width:16px;height:16px}

/* ---------- header ---------- */
.hdr{
  position:fixed;top:1rem;left:0;right:0;z-index:50;
  display:flex;justify-content:center;
  padding-inline:1.25rem;pointer-events:none;
}
@media (min-width:1024px){ .hdr{padding-inline:2.5rem} }
.hdr-bar{
  pointer-events:auto;
  display:flex;align-items:center;gap:.75rem;
  width:100%;max-width:64rem;height:4.25rem;
  padding:.5rem .5rem .5rem .5rem;
  border-radius:999px;
  background:var(--surface-glass-strong);
  -webkit-backdrop-filter:blur(var(--glass-blur));
  backdrop-filter:blur(var(--glass-blur));
  border:1px solid var(--border-subtle);
  box-shadow:0 .75rem 2rem rgba(0,0,0,.08);
}
.hdr-logo{
  height:3.25rem;padding-right:.75rem;flex:none;
  display:flex;align-items:center;gap:.625rem;
}
.hdr-logo .mark{
  width:3.25rem;height:3.25rem;border-radius:999px;
  background:var(--accent);color:var(--sky-50);
  display:grid;place-items:center;flex:none;
}
.hdr-logo .mark svg{width:24px;height:24px}
.hdr-logo .word{font-size:1.25rem;font-weight:300;line-height:var(--leading-display)}
.hdr-nav{
  display:none;flex:1;align-items:center;justify-content:center;
}
.hdr-nav ul{display:flex;align-items:center;gap:2.25rem}
.hdr-nav a{font-size:1rem;font-weight:400;transition:color var(--duration-fast) var(--ease-entrance)}
.hdr-nav a:hover{color:var(--accent-bright)}
.hdr-cta{display:none;margin-left:auto;transform-origin:100% 50%;pointer-events:auto;will-change:transform,opacity}
.hdr-cta .btn{
  font-size:1rem;font-weight:500;
  height:3.25rem;border-radius:999px;
  padding:0 .125rem 0 1.5rem;gap:.5rem;
}
.hdr-cta .btn--arrow .disc{width:2.875rem;height:2.875rem}
.hdr-cta .btn--arrow .disc svg{width:14px;height:14px}
.burger{
  height:3.25rem;width:3.25rem;border-radius:999px;
  display:grid;place-items:center;margin-left:auto;
  background:var(--surface-section);
}
.burger .bars{position:relative;width:20px;height:14px}
.burger .bars i{
  position:absolute;left:0;right:0;height:1px;background:var(--black);
  transition:transform var(--duration-normal) var(--ease-entrance),opacity var(--duration-fast) linear;
}
.burger .bars i:nth-child(1){top:0}
.burger .bars i:nth-child(2){top:6.5px}
.burger .bars i:nth-child(3){top:13px}
.burger[aria-expanded="true"] .bars i:nth-child(1){transform:translateY(6.5px) rotate(45deg)}
.burger[aria-expanded="true"] .bars i:nth-child(2){opacity:0}
.burger[aria-expanded="true"] .bars i:nth-child(3){transform:translateY(-6.5px) rotate(-45deg)}
.menu{
  position:fixed;top:calc(1rem + 4.25rem + .75rem);right:1.25rem;z-index:51;
  width:min(18rem,100vw - 2.5rem);
  background:var(--surface-glass);
  -webkit-backdrop-filter:blur(var(--glass-blur));
  backdrop-filter:blur(var(--glass-blur));
  border-radius:var(--corner-panel);
  padding:1.25rem;
  transform-origin:100% 0;
  pointer-events:none;opacity:0;transform:scale(.9);
}
.menu.is-open{pointer-events:auto}
.menu ul{display:flex;flex-direction:column;gap:1rem}
.menu a{font-size:1.125rem;font-weight:300}
.menu .btn{margin-top:1.25rem;width:100%}

/* ---------- generic ---------- */
.eyebrow{font-size:.875rem;font-weight:500;text-transform:uppercase;letter-spacing:.02em;color:var(--accent)}
.h-display{font-size:2.25rem;font-weight:300;line-height:var(--leading-display)}
@media (min-width:768px){ .h-display{font-size:3rem} }
@media (min-width:1024px){ .h-display{font-size:3.75rem} }
.lead{font-size:1rem;font-weight:300;line-height:var(--leading-body)}
.actions{display:flex;flex-wrap:wrap;gap:.75rem}

/* ---------- hero ---------- */
.hero{
  position:relative;min-height:100lvh;background:var(--surface-section);
  border-radius:0 0 var(--corner-section) var(--corner-section);
  overflow:hidden;
  display:flex;flex-direction:column;gap:2rem;
  padding:7rem 1.25rem 3rem;
}
@media (min-width:768px){ .hero{padding-inline:2.5rem} }
.hero-copy{display:flex;flex-direction:column;gap:1.5rem;z-index:10;position:relative}
.hero-lead{max-width:30.875rem}
.hero-scene{position:relative;height:40lvh;width:100%}
.scene-canvas{position:absolute;inset:0;width:100%;height:100%;display:block}
.hero-rule{height:1px;background:var(--border-subtle);width:100%}
.hero-trust{display:flex;align-items:center;gap:1rem;font-size:1rem;font-weight:300}
.hero-trust .hair{height:1px;width:3.125rem;background:var(--accent-bright);flex:none}
.hero-chips{display:flex;flex-wrap:wrap;gap:.5rem}
.chip{
  border-radius:var(--corner-chip);border:1px solid var(--border-subtle);
  background:var(--surface-glass-subtle);
  -webkit-backdrop-filter:blur(var(--glass-blur));
  backdrop-filter:blur(var(--glass-blur));
  padding:1rem 2rem;font-size:1rem;font-weight:300;
}

@media (min-width:1024px){
  .hero{height:100lvh;min-height:0;display:block;padding:0}
  .hero-copy{position:absolute;top:28.55%;left:2.5rem;width:44.75rem;gap:1.5rem}
  .hero-copy h1{font-size:3.75rem}
  .hero-actions{position:absolute;top:89.375%;left:2.5rem;z-index:10}
  .hero-scene{position:absolute;top:0;bottom:0;height:auto;left:22.5625rem;width:71.25rem}
  .hero-rule{position:absolute;top:78.625%;right:2.5rem;left:2.5625rem;width:auto}
  .hero-trust{position:absolute;top:83.625%;left:2.5rem}
  .hero-chips{position:absolute;top:83.625%;left:55.5625rem;width:31.9375rem}
}

/* ---------- why novacare ---------- */
.why{
  position:relative;background:var(--white);overflow:hidden;
  display:flex;align-items:center;justify-content:center;
  padding:7rem 1.25rem;min-height:100lvh;
}
@media (min-width:1024px){ .why{height:100lvh;min-height:0;padding:0} }
.why-copy{
  position:relative;z-index:2;
  width:min(100% - 2.5rem,44.75rem);
  display:flex;flex-direction:column;align-items:center;gap:3rem;text-align:center;
}
.why-copy .why-h{width:min(100%,39.25rem)}
.why-copy .why-l{width:min(100%,27.625rem)}
.trail{position:absolute;inset:0;z-index:1;pointer-events:none}
.trail-card{
  position:absolute;top:0;left:0;
  width:13.5rem;height:17rem;border-radius:var(--corner-card);
  overflow:hidden;will-change:transform,opacity;
}
.trail-card img{width:100%;height:100%;object-fit:cover}

/* ---------- services ---------- */
.svc-wrap{position:relative;height:400lvh}
.svc-sticky{
  position:sticky;top:0;height:100lvh;overflow:hidden;
  background:var(--surface-section);
  border-radius:var(--corner-section) var(--corner-section) 0 0;
}
.svc-inner{position:relative;height:100%;padding:7rem 1.25rem 3rem;display:flex;flex-direction:column;gap:1.5rem}
@media (min-width:768px){ .svc-inner{padding-inline:2.5rem} }
.svc-rail{overflow:hidden;flex:1;min-height:0}
.svc-track{display:flex;gap:.625rem;height:100%;width:max-content;will-change:transform}
.svc-card{
  flex:none;height:100%;border-radius:var(--corner-card);padding:2rem;
  display:flex;flex-direction:column;justify-content:space-between;gap:2rem;
  width:78vw;max-width:22rem;overflow:hidden;position:relative;
}
.svc-card--lime{background:var(--action-secondary);outline:1px solid var(--action-secondary-border);outline-offset:-1px;color:var(--black)}
.svc-card--brand{background:var(--accent);color:var(--white)}
.svc-card--photo{color:var(--white)}
.svc-card--photo .bg{position:absolute;inset:0;z-index:0}
.svc-card--photo .bg img{width:100%;height:100%;object-fit:cover}
.svc-card > *{position:relative;z-index:1}
.svc-idx{font-size:1.25rem;font-weight:300}
.svc-body{display:flex;flex-direction:column;gap:1.5rem}
.svc-title{font-size:2rem;font-weight:300;line-height:var(--leading-display)}
.svc-list li{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1rem 0;border-top:1px solid var(--border-subtle);font-size:1rem;font-weight:300}
.svc-list li:last-child{border-bottom:1px solid var(--border-subtle)}
.svc-list svg{width:16px;height:16px;flex:none}
.svc-disc{display:flex;align-items:end;gap:1rem;font-size:1.25rem;font-weight:300}
@media (min-width:1024px){
  .svc-inner{padding:0}
  .svc-heading{position:absolute;top:14%;left:2.5rem;width:43.5rem}
  .svc-eyebrow{position:absolute;top:14%;left:66.75rem;width:20.75rem}
  .svc-desc{position:absolute;top:21%;left:66.75rem;width:20.75rem}
  .svc-rail{position:absolute;top:39%;right:0;bottom:2.5rem;left:2.5rem;width:85rem;flex:none}
  .svc-card{width:27.9375rem;max-width:none}
  .svc-card--lime{width:35.0625rem}
}

/* ---------- about ---------- */
.about{
  position:relative;z-index:10;background:var(--surface-section-deep);
  border-radius:var(--corner-section) var(--corner-section) 0 0;
  margin-top:-100lvh;
  padding:7rem 1.25rem 3rem;
}
@media (min-width:768px){ .about{padding-inline:2.5rem} }
.about-banner{
  position:relative;overflow:hidden;border-radius:var(--corner-card);
  height:18rem;width:100%;margin-bottom:3rem;
}
.about-banner img{position:absolute;left:0;top:-12.5%;width:100%;height:125%;object-fit:cover;will-change:transform}
.about-row{display:flex;flex-direction:column;gap:3rem;justify-content:space-between}
.about-left{display:flex;flex-direction:column;gap:2rem}
.stats{display:grid;grid-template-columns:1fr 1fr;gap:2rem 1.5rem}
.stat{border-left:1px solid var(--accent-bright);padding-left:1.5rem;display:flex;flex-direction:column;gap:.5rem}
.stat dt{font-size:2.5rem;font-weight:300;line-height:var(--leading-display);font-variant-numeric:tabular-nums}
.stat dd{font-size:1rem;font-weight:300}
.about-right{display:flex;flex-direction:column;gap:2.5rem}
.about-p{font-size:1.5rem;font-weight:300;line-height:var(--leading-body)}
.muted{color:var(--foreground-muted)}
@media (min-width:1024px){
  .about{height:71.5rem;padding:0}
  .about-banner{position:absolute;top:2.5rem;left:2.5rem;height:31.25rem;width:85rem;margin:0}
  .about-row{position:absolute;top:37.75rem;left:2.375rem;width:85.125rem;flex-direction:row}
  .about-left{width:28.0625rem}
  .about-right{width:49.3125rem}
  .about-p{font-size:2.25rem}
  .stat dt{font-size:3.75rem}
  .about-actions .btn:first-child{width:15rem}
  .about-actions .btn:last-child{width:11.25rem}
}

/* ---------- team ---------- */
.team{
  position:sticky;top:0;z-index:10;
  height:100lvh;background:var(--surface-section-deep);
  display:flex;flex-direction:column;padding-top:6%;overflow:hidden;
}
.team-railbox{height:86%;display:flex;flex-direction:column;gap:1.25rem;padding-inline:1.25rem}
@media (min-width:768px){ .team-railbox{padding-inline:2.5rem} }
.team-rail{
  overflow-x:auto;overflow-y:hidden;flex:1;min-height:0;
  scroll-behavior:auto;touch-action:pan-y;-ms-overflow-style:none;scrollbar-width:none;
  cursor:grab;
}
.team-rail::-webkit-scrollbar{display:none}
.team-rail.is-dragging{cursor:grabbing}
.team-rail img{pointer-events:none}
.team-track{display:flex;gap:.75rem;height:100%;width:max-content}
.team-card{
  flex:none;height:100%;border-radius:var(--corner-card);overflow:hidden;position:relative;
  width:70vw;max-width:20.75rem;
}
.team-card--intro{
  background:var(--accent);color:var(--white);padding:2rem;
  display:flex;flex-direction:column;justify-content:space-between;gap:2rem;
}
.team-card--intro .eyebrow{color:var(--sky-50)}
.team-card--intro h2{font-size:2rem;font-weight:300;line-height:var(--leading-display)}
.socials{display:flex;gap:.75rem;flex-wrap:wrap}
.socials a{width:64px;height:64px;border-radius:999px;border:1px solid rgba(255,255,255,.35);display:grid;place-items:center}
.socials img{width:20px;height:20px;filter:brightness(0) invert(1)}
.team-card--photo img{width:100%;height:100%;object-fit:cover}
.plate{
  position:absolute;left:2rem;right:2rem;bottom:2rem;height:4rem;
  border-radius:var(--corner-panel);background:var(--surface-glass);
  -webkit-backdrop-filter:blur(var(--glass-blur));
  backdrop-filter:blur(var(--glass-blur));
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.75rem;
}
.plate .nm{font-size:1rem;font-weight:500}
.plate .rl{font-size:.875rem;font-weight:300;color:var(--foreground-subtle)}
.team-card--tail{
  background:var(--action-secondary);outline:1px solid var(--action-secondary-border);outline-offset:-1px;
  padding:2rem;display:flex;flex-direction:column;justify-content:space-between;gap:2rem;
}
.team-card--tail .t{font-size:2rem;font-weight:300;line-height:var(--leading-display)}
.team-bar{height:2px;background:var(--border-subtle);position:relative;overflow:hidden;flex:none}
.team-bar i{position:absolute;inset:0;background:var(--accent-bright);transform-origin:left;display:block}
@media (min-width:1024px){
  .team-card{width:20.75rem;max-width:none}
  .team-card--intro{width:27.9375rem}
}

/* ---------- contact ---------- */
.contact{
  position:relative;z-index:20;min-height:100lvh;overflow:hidden;
  background:var(--surface-section);
  border-radius:var(--corner-section) var(--corner-section) 0 0;
  padding:7rem 1.25rem 3rem;display:flex;flex-direction:column;gap:2.5rem;
}
@media (min-width:768px){ .contact{padding-inline:2.5rem} }
.contact-scene{display:none;position:absolute;top:0;bottom:0;left:7.0625rem;width:71.125rem}
.contact-copy{position:relative;z-index:2;display:flex;flex-direction:column;gap:1.5rem}
.form-panel{
  position:relative;z-index:2;
  background:var(--surface-glass-strong);
  -webkit-backdrop-filter:blur(var(--glass-blur));
  backdrop-filter:blur(var(--glass-blur));
  border-radius:var(--corner-card);padding:2rem;
  display:flex;flex-direction:column;gap:1.5rem;
}
.form-panel .mark{
  width:2.625rem;height:2.625rem;border-radius:var(--corner-mark);
  background:var(--accent);color:var(--sky-50);display:grid;place-items:center;flex:none;
}
.form-panel .mark svg{width:24px;height:24px}
.form-title{font-size:2.25rem;font-weight:300;line-height:var(--leading-display)}
.field{display:flex;flex-direction:column;gap:.75rem}
.field label{font-size:.875rem;font-weight:500;text-transform:uppercase;letter-spacing:.02em;color:var(--accent)}
.field input,.field textarea{
  border-radius:var(--corner-panel);border:1px solid var(--border-subtle);background:transparent;
  padding:1.5rem 2rem;font-size:1rem;font-weight:300;outline:none;resize:none;
  transition:border-color var(--duration-fast) var(--ease-entrance);
}
.field textarea{overflow:hidden}
.field input:focus,.field textarea:focus{border-color:var(--accent-bright)}
.consent{font-size:.875rem;font-weight:300;color:var(--foreground-subtle)}
.consent a{text-decoration:underline}
.form-submit{margin-top:auto}
@media (min-width:1024px){
  .contact{height:100lvh;min-height:0;padding:0;display:block}
  .contact-scene{display:block}
  .contact-copy{position:absolute;top:35.25%;left:2.5625rem;width:42.75rem}
  .form-panel{position:absolute;top:1rem;right:2.5rem;bottom:2.5rem;width:35.0625rem}
}

/* ---------- header responsive ---------- */
@media (min-width:1024px){
  .hdr-nav{display:flex}
  .hdr-cta{display:flex}
  .burger{display:none}
  .menu{display:none}
}

/* ---------- preloader ---------- */
.pre{
  position:fixed;inset:0;z-index:100;background:var(--accent);
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2rem;
  will-change:clip-path;
}
.pre-stack{position:relative;width:min(400px,70vw);aspect-ratio:1}
.pre-ring{position:absolute;inset:0;width:100%;height:100%}
.pre-ring circle{fill:none;stroke:var(--sky-50);stroke-width:1.5;stroke-linecap:round;transform:rotate(-90deg);transform-origin:50% 50%}
.pre-mark{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:34%;height:34%}
.pre-mark svg{position:absolute;inset:0;width:100%;height:100%}
.pre-mark .ghost{color:rgba(227,242,253,0.14)}
.pre-mark .fill{color:var(--sky-50)}
.pre-pct{color:var(--sky-50);font-size:1rem;font-weight:300;font-variant-numeric:tabular-nums}

/* ---------- asset failure banner ---------- */
.asset-banner{
  position:fixed;left:0;right:0;bottom:0;z-index:200;
  background:#7a1d1d;color:#fff;font-size:12px;line-height:1.4;
  padding:10px 14px;max-height:30vh;overflow:auto;
  font-family:ui-monospace,SFMono-Regular,Menlo,monospace;
}
.asset-banner b{display:block;margin-bottom:4px;font-weight:500}
