/* Editorial feature stories and masked word reveals from the Neko reference.
   All colours, photographs, labels and clinical detail remain Yoda's. */
#care.cf .cf-list { display:grid !important; grid-template-columns:minmax(0,1fr) !important; gap:120px !important; }
html body #care.cf .cf-tile, html body #care.cf .cf-tile:first-child {
  display:grid !important; grid-template-columns:minmax(0,1fr) minmax(0,1fr); align-items:center;
  gap:clamp(48px,6vw,104px); min-height:0 !important; height:auto; width:100% !important;
  max-width:none !important; margin:0 !important; padding:0; overflow:visible;
  border:0; border-radius:0; background:none; box-shadow:none; color:var(--void);
  opacity:1 !important; transform:none !important;
}
#care.cf .cf-tile::after { display:none; }
#care.cf .cf-fig {
  position:relative !important; inset:auto !important; width:100%; height:clamp(480px,76svh,800px);
  border-radius:var(--site-card-radius); corner-shape:var(--site-corner-shape); overflow:hidden;
  background:var(--void); isolation:isolate;
}
#care.cf .cf-fig::before, #care.cf .cf-fig::after { display:none !important; }
html body #care.cf .cf-tile .cf-fig img, html body #care.cf .cf-tile:hover .cf-fig img {
  position:absolute; inset:0; width:100%; height:100%; object-fit:cover;
  object-position:50% 35%; transform:none !important; filter:none; mask-image:none; -webkit-mask-image:none;
  translate:0 var(--neo-image-y,0px); scale:1.09;
  transition:scale 1.2s cubic-bezier(.22,1,.36,1);
}
#care.cf .cf-body { position:relative; inset:auto; padding:40px 0; background:none; color:var(--void); width:100%; max-width:600px; }
html body #care.cf .cf-t { color:var(--void); font:400 clamp(44px,4.7vw,68px)/1.14 var(--f-display); letter-spacing:-.035em; max-width:13ch; }
#care.cf .cf-d { color:rgba(14,14,15,.7); font:400 20px/1.6 var(--f-text); max-width:32ch; margin-top:28px !important; }
#care.cf .cf-chips { position:static !important; inset:auto; display:flex; flex-wrap:wrap; gap:10px; margin-top:32px !important; }
#care.cf .cf-chip { height:auto; min-height:44px; padding:12px 18px; border:0; border-radius:999px;
  background:rgba(14,14,15,.065); color:var(--void); font-size:15px; line-height:1.25; backdrop-filter:none; -webkit-backdrop-filter:none; }
#care.cf .cf-register { margin-top:36px; height:56px; padding:0 26px; border:0; background:var(--void); color:var(--star); font-size:16px; }
#care.cf .cf-chip:focus-visible, #care.cf .cf-register:focus-visible { outline:2px solid var(--void); outline-offset:4px; }

/* Optional tests read as a horizontal collection, with a visible next-card peek. */
html #quiet-story.da.da-direct #beyond { margin-top:100px; scroll-margin-top:140px; }
html body #beyond .bh-wrap { display:block; max-width:none; }
html body #quiet-story.da #beyond .bh-head { position:static; display:grid; grid-template-columns:1fr .7fr; gap:64px; max-width:none; text-align:left; align-items:end; }
html body #quiet-story.da #beyond .bh-h { text-align:left; max-width:14ch; color:var(--star); background:none; -webkit-text-fill-color:currentColor; font-size:clamp(44px,4.7vw,68px) !important; line-height:1.14; }
html body #quiet-story.da #beyond .bh-intro { text-align:left; max-width:40ch; margin:0 0 6px auto; font-size:18px; line-height:1.6; }
html #quiet-story.da #beyond .bh-list-8 {
  display:grid !important; grid-template-columns:none !important; grid-auto-flow:column; grid-auto-columns:calc((100% - 72px)/3.3);
  gap:24px; overflow-x:auto; overscroll-behavior-x:contain; scroll-snap-type:x mandatory; scrollbar-width:thin;
  scrollbar-color:rgba(231,192,137,.5) transparent; margin:64px 0 24px; padding:0 0 20px;
}
html #quiet-story.da #beyond .bh-list-8 .bh-item {
  display:flex; flex-direction:column; align-items:flex-start; justify-content:space-between; gap:48px;
  min-height:320px; padding:32px !important; border:0 !important; border-radius:var(--site-card-radius); corner-shape:var(--site-corner-shape);
  background:linear-gradient(135deg,#22201c,#171615); scroll-snap-align:start; opacity:1; transform:none;
}
html #quiet-story.da #beyond .bh-ic { display:block; width:44px; height:44px; font-size:44px; color:var(--gold); }
html #quiet-story.da #beyond .bh-t { font:400 30px/1.16 var(--f-display); color:var(--star); letter-spacing:-.025em; }
html #quiet-story.da #beyond .bh-d { font:400 16px/1.6 var(--f-text); min-height:3.2em; margin-top:16px !important; color:rgba(233,228,218,.7); }
#beyond .bh-list-8:focus-visible { outline:2px solid var(--gold); outline-offset:8px; }

/* Masks reveal each word from its baseline; headings keep their semantic labels. */
.neo-word-mask { display:inline-block; overflow:clip; vertical-align:bottom; padding-bottom:.08em; margin-bottom:-.08em; }
.neo-word { display:inline-block; }
html.home-motion-enabled .neo-words .neo-word {
  transform:translateY(0); transition:transform .95s cubic-bezier(.16,1,.3,1); transition-delay:calc(var(--word-index,0) * 35ms);
}
html.home-motion-enabled .neo-words:not(.is-revealed) .neo-word { transform:translateY(115%); }
/* Cancel the old whole-heading fade so it cannot compete with the word masks. */
html.js :is(#care,#programs) :is(.cf-h,.cf-intro,.pg-h,.pg-intro)[data-cf],
html.js #programs :is(.pg-h,.pg-intro)[data-pg] { opacity:1; transform:none; }
html.home-motion-enabled .neo-enter { opacity:1; translate:0 0; transition:opacity .85s ease,translate 1s cubic-bezier(.16,1,.3,1); transition-delay:var(--entry-delay,0ms); }
html.home-motion-enabled .neo-enter:not(.is-revealed) { opacity:0; translate:0 24px; }
html.home-motion-enabled #care .cf-fig { clip-path:inset(0 round var(--site-card-radius)); transition:clip-path 1.2s cubic-bezier(.16,1,.3,1); }
html.home-motion-enabled #care .cf-fig:not(.is-revealed) { clip-path:inset(12% 0 0 round var(--site-card-radius)); }
html.home-motion-enabled #care .cf-fig[data-parallax-active] img { will-change:translate; }
#programs .pg-card { transition:translate .55s cubic-bezier(.22,1,.36,1),box-shadow .55s ease,background-color .4s; }
#final-cta .fc-media { scale:var(--neo-close-scale,1.06); }
#final-cta .fc-copy { position:relative; z-index:2; }
#faq .faq-q { transition:color .3s ease,padding-left .35s cubic-bezier(.22,1,.36,1); }
@media (hover:hover) and (prefers-reduced-motion:no-preference) {
  html body #care.cf .cf-tile:hover .cf-fig img { scale:1.13; }
  #care.cf .cf-chip:hover { background:var(--void); color:var(--star); }
  #care.cf .cf-register:hover { background:#38342c; }
  #programs .pg-card:hover { translate:0 -6px; box-shadow:0 20px 48px rgba(45,35,20,.08); }
  #faq .faq-q:hover { padding-left:10px; color:#806039; }
  #beyond .qs-more .sl { transition:translate .35s ease; }
  #beyond .qs-more:hover .sl { translate:4px 0; }
}
@media (max-width:1099px) {
  html #quiet-story.da #beyond .bh-list-8 { grid-auto-columns:calc((100% - 48px)/2.2); }
  html body #care.cf .cf-tile, html body #care.cf .cf-tile:first-child { gap:40px; }
  #care.cf .cf-fig { height:600px; }
  #care.cf .cf-d { font-size:18px; }
  #care.cf .cf-chip { font-size:14px; padding:12px 15px; }
}
@media (max-width:767px) {
  #care.cf .cf-list { gap:80px !important; }
  html body #care.cf .cf-tile, html body #care.cf .cf-tile:first-child { grid-template-columns:minmax(0,1fr); gap:28px; }
  #care.cf .cf-fig { height:auto; aspect-ratio:1 / 1.06; }
  #care.cf .cf-body { padding:0; max-width:none; }
  html body #care.cf .cf-t { font-size:40px; line-height:1.1; }
  #care.cf .cf-d { font-size:17px; margin-top:20px !important; }
  #care.cf .cf-chips { margin-top:24px !important; gap:8px; }
  #care.cf .cf-chip { font-size:14px; }
  #care.cf .cf-register { margin-top:28px; height:52px; }
  html #quiet-story.da.da-direct #beyond { margin-top:50px; scroll-margin-top:160px; }
  html body #quiet-story.da #beyond .bh-head { display:block; }
  html body #quiet-story.da #beyond .bh-h { font-size:40px !important; }
  html body #quiet-story.da #beyond .bh-intro { font-size:16px; margin:24px 0 0; }
  html #quiet-story.da #beyond .bh-list-8 { grid-auto-columns:86%; gap:16px; margin-top:40px; }
  html #quiet-story.da #beyond .bh-list-8 .bh-item { padding:28px !important; min-height:300px; }
  html #quiet-story.da #beyond .bh-t { font-size:28px; }
  html.home-motion-enabled .neo-words .neo-word { transition-duration:.75s; transition-delay:calc(var(--word-index,0) * 25ms); }
}
@media (prefers-reduced-motion:reduce) {
  html.home-motion-enabled .neo-words .neo-word, html.home-motion-enabled .neo-enter { transform:none; translate:none; opacity:1; transition:none; }
  html.home-motion-enabled #care .cf-fig { clip-path:none; transition:none; }
  html body #care.cf .cf-tile .cf-fig img { translate:none; scale:1; transition:none; }
  #programs .pg-card { translate:none; transition:none; }
  #final-cta .fc-media { scale:1; }
}
