/* One viewport, three Care stories. The document scroll drives the sequence. */
#care .care-story-nav { display:none; }
#care .care-runway { margin-top:var(--site-group-gap); }
#care .care-runway .cf-list { margin-top:0; }
html body #care.cf.care-is-pinned { overflow:visible; padding-bottom:0 !important; }
html body #care.care-is-pinned .cf-wrap { overflow:visible; }
#care.care-is-pinned .care-runway {
  position:relative; height:var(--care-runway-height,430svh);
  width:calc(100% + 2 * var(--site-gutter)); margin-left:calc(-1 * var(--site-gutter));
}
#care.care-is-pinned .care-stage { position:sticky; top:0; height:100svh; overflow:hidden; isolation:isolate; background:var(--star); }
html body #care.cf.care-is-pinned .cf-list { position:absolute; inset:0; display:block !important; height:100%; width:100%; margin:0; padding:0; }
html body #care.cf.care-is-pinned .cf-tile,
html body #care.cf.care-is-pinned .cf-tile:first-child {
  position:absolute; inset:0; display:block !important; width:100% !important; height:100%;
  padding:0; margin:0; pointer-events:none;
}
html body #care.cf.care-is-pinned .cf-fig {
  position:absolute !important; inset:0 auto 0 0 !important; width:41.6667%; height:100%;
  border-radius:0 var(--site-card-radius) var(--site-card-radius) 0;
  clip-path:inset(100% 0 0); transition:clip-path .85s cubic-bezier(.22,1,.36,1);
  z-index:var(--care-index); background:var(--star);
}
html body #care.cf.care-is-pinned .cf-tile:is(.care-current,.care-past) .cf-fig { clip-path:inset(0); }
html body #care.cf.care-is-pinned .cf-tile .cf-fig img,
html body #care.cf.care-is-pinned .cf-tile:hover .cf-fig img { scale:1; translate:none; object-position:50% 35%; transition:none; }
html body #care.cf.care-is-pinned .cf-body {
  position:absolute; top:50%; left:50.35%; width:calc(49.65% - var(--site-gutter)); max-width:680px;
  padding:0; opacity:0; transform:translateY(calc(-50% + 24px));
  transition:opacity .35s ease,transform .65s cubic-bezier(.22,1,.36,1); pointer-events:none;
}
html body #care.cf.care-is-pinned .care-current .cf-body { opacity:1; transform:translateY(-50%); transition-delay:.16s; pointer-events:auto; }
#care.care-is-pinned .care-story-nav { display:flex; flex-wrap:wrap; gap:12px 28px; margin-bottom:32px; }
#care .care-story-nav button { padding:8px 0; border:0; border-radius:0; background:none; color:rgba(14,14,15,.48); font:400 15px/20px var(--f-text); cursor:pointer; }
#care .care-story-nav button[aria-pressed="true"] { color:var(--void); }
#care .care-story-nav button:hover { color:var(--void); }
#care .care-story-nav button:focus-visible { outline:2px solid var(--gold); outline-offset:5px; border-radius:4px; }
html body #care.cf.care-is-pinned .cf-t { max-width:14ch; margin:0; }
html body #care.cf.care-is-pinned .cf-d { max-width:38ch; margin-top:24px !important; }
html body #care.cf.care-is-pinned .cf-chips { margin-top:24px !important; }
html body #care.cf.care-is-pinned .cf-register { margin-top:28px; }
/* The pinned stage owns its reveals; do not combine with the page entry animation. */
html.home-motion-enabled #care.care-is-pinned .cf-body .neo-enter { opacity:1; translate:none; transition:none; }
html.home-motion-enabled #care.care-is-pinned .cf-t .neo-word { transform:none; transition:none; }
@media (min-width:768px) and (max-width:1099px) {
  #care.care-is-pinned .care-story-nav { gap:8px 18px; margin-bottom:24px; }
  #care .care-story-nav button { font-size:13px; }
  html body #care.cf.care-is-pinned .cf-body { left:48%; width:calc(52% - var(--site-gutter)); }
  html body #care.cf.care-is-pinned .cf-t { font-size:44px; line-height:52px; }
  html body #care.cf.care-is-pinned .cf-d { font-size:16px; line-height:24px; }
  html body #care.cf.care-is-pinned .cf-chip { font-size:13px; padding:10px 14px; min-height:40px; }
}
@media (max-height:780px) {
  #care.care-is-pinned .care-story-nav { margin-bottom:20px; }
  html body #care.cf.care-is-pinned .cf-t { font-size:44px; line-height:52px; }
  html body #care.cf.care-is-pinned .cf-d { margin-top:16px !important; }
  html body #care.cf.care-is-pinned .cf-chips { margin-top:20px !important; }
  html body #care.cf.care-is-pinned .cf-register { margin-top:20px; height:48px; }
}
@media (prefers-reduced-motion:reduce) {
  #care .care-runway { height:auto; }
}
/* A smaller rounded composition expands, then images physically travel up over one another. */
html body #care.cf { background:#f0e4d1; }
#care.care-is-pinned .care-stage { background:transparent; overflow:hidden; }
#care.care-is-pinned .care-canvas { position:absolute; inset:0; overflow:hidden; isolation:isolate; background:#f4f2ed; transform:scale(var(--care-scale,.95)); transform-origin:50% 50%; border-radius:var(--care-radius,40px); will-change:transform; }
html body #care.cf.care-is-pinned .cf-fig,
html body #care.cf.care-is-pinned .cf-tile:is(.care-current,.care-past) .cf-fig { clip-path:none; transform:translate3d(0,var(--care-image-y,100%),0); transition:none; will-change:transform; }
html body #care.cf.care-is-pinned .cf-tile:first-child .cf-fig { --care-image-y:0%; }
html body #care.cf.care-is-pinned .cf-body,
html body #care.cf.care-is-pinned .care-current .cf-body { opacity:var(--care-copy-opacity,0); transform:translateY(calc(-50% + var(--care-copy-offset,0px))); transition:none; }

/* 4 Nov (Shali, after Neko's phone scan explainer): the phone story. One full-screen stage: the photo fills the top
   40% with rounded lower corners and each next photo slides up over the last, held inside that frame; below it the
   three tabs share one hairline and one dark progress line that fills through the whole story; then the copy. The
   heading words rise out of their mask when a story becomes current; the rest follows the scroll. */
@media (max-width:767px) {
  #care.care-is-phone { --care-img-h:40svh; }
  html body #care.cf.care-is-phone .care-runway { width:calc(100% + 2 * var(--site-gutter)); margin-left:calc(-1 * var(--site-gutter)); }
  #care.care-is-phone .care-canvas { transform:none; border-radius:0; background:var(--star,#f4f2ed); }
  html body #care.cf.care-is-phone .cf-fig,
  html body #care.cf.care-is-phone .cf-tile:is(.care-current,.care-past) .cf-fig {
    inset:0 0 auto 0 !important; width:100% !important; height:var(--care-img-h) !important; aspect-ratio:auto !important; margin:0 !important;
    border-radius:0 !important; transform:translate3d(0,var(--care-image-y,100%),0);
    clip-path:inset(0 0 var(--care-image-y,100%) 0 round 0 0 var(--site-card-radius,29px) var(--site-card-radius,29px));
  }
  html body #care.cf.care-is-phone .cf-tile:first-child .cf-fig { --care-image-y:0%; }
  html body #care.cf.care-is-phone .cf-fig img { width:100%; height:100%; object-fit:cover; object-position:50% 30%; border-radius:0; }
  html body #care.cf.care-is-phone .cf-body,
  html body #care.cf.care-is-phone .care-current .cf-body {
    top:calc(var(--care-img-h) + 20px); left:var(--site-gutter,20px); right:var(--site-gutter,20px); width:auto; max-width:none;
    transform:translate3d(0,var(--care-copy-offset,0px),0);
  }
  #care.care-is-phone .care-story-nav { position:relative; display:flex; flex-wrap:nowrap; gap:20px; margin:0 0 24px; border-bottom:1px solid rgba(14,14,15,.12); }
  #care.care-is-phone .care-story-nav::after { content:''; position:absolute; left:0; bottom:-1px; width:100%; height:2px; background:var(--void,#0e0e0f);
    transform:scaleX(var(--care-progress,0)); transform-origin:0 50%; }
  #care.care-is-phone .care-story-nav button { padding:12px 0; font-size:14px; line-height:20px; white-space:nowrap; min-height:44px; }
  html body #care.cf.care-is-phone .cf-t { max-width:none; font-size:var(--site-feature-size,32px); line-height:var(--site-feature-line,40px); }
  html body #care.cf.care-is-phone .cf-d { margin-top:12px !important; }
  html body #care.cf.care-is-phone .cf-chips { margin-top:20px !important; gap:8px; }
  html body #care.cf.care-is-phone .cf-chip { min-height:40px; padding:9px 14px; font-size:14px; }
  html body #care.cf.care-is-phone .cf-register { margin-top:20px; }
  /* heading words rise from their mask as the story becomes current (Neko's headline reveal) */
  html.home-motion-enabled #care.care-is-phone .cf-t .neo-word-mask { display:inline-block; overflow:hidden; vertical-align:top; }
  html.home-motion-enabled #care.care-is-phone .cf-tile .cf-t .neo-word { display:inline-block; transform:translate3d(0,105%,0); transition:transform .7s cubic-bezier(0,0,.2,1); }
  html.home-motion-enabled #care.care-is-phone .cf-tile.care-current .cf-t .neo-word { transform:none; transition-delay:calc(var(--word-index,0) * 70ms + 80ms); }
}
@media (max-width:767px) and (prefers-reduced-motion:reduce) {
  html.home-motion-enabled #care .cf-t .neo-word { transform:none !important; }
}
@media (max-width:767px) {
  /* one steady tab row: every story carries its own row, so only the current one shows and only its label changes */
  html body #care.cf.care-is-phone .cf-body,
  html body #care.cf.care-is-phone .care-current .cf-body { opacity:1; transform:none; }
  html body #care.cf.care-is-phone .cf-body > :not(.care-story-nav) { opacity:var(--care-copy-opacity,0); transform:translate3d(0,var(--care-copy-offset,0px),0); }
  html body #care.cf.care-is-phone .cf-tile:not(.care-current) .care-story-nav { visibility:hidden; }
}
@media (max-width:767px) and (max-height:740px) {
  /* short phones (iPhone SE and similar): a shorter photo and tighter copy so the story still fits one screen */
  #care.care-is-phone { --care-img-h:30svh; }
  html body #care.cf.care-is-phone .cf-body, html body #care.cf.care-is-phone .care-current .cf-body { top:calc(var(--care-img-h) + 12px); }
  #care.care-is-phone .care-story-nav { margin-bottom:16px; }
  html body #care.cf.care-is-phone .cf-t { font-size:28px; line-height:32px; }
  html body #care.cf.care-is-phone .cf-d { margin-top:8px !important; font-size:15px; line-height:22px; }
  html body #care.cf.care-is-phone .cf-chips { margin-top:14px !important; gap:6px; }
  html body #care.cf.care-is-phone .cf-chip { min-height:36px; padding:7px 12px; }
  html body #care.cf.care-is-phone .cf-register { margin-top:14px; }
}

/* 4 Nov (Shali, Neko's tab row): the Care tabs in small capitals with open tracking, inactive tabs at half strength.
   Phones: the three tabs share the row edge to edge, one hairline and one progress line beneath. */
#care .care-story-nav button { text-transform:uppercase; font:500 12px/16px var(--f-text); letter-spacing:.08em; color:rgba(14,14,15,.5); }
#care .care-story-nav button[aria-pressed="true"] { color:var(--void,#0e0e0f); }
#care.care-is-pinned:not(.care-is-phone) .care-story-nav { gap:12px 36px; }
@media (max-width:767px) {
  #care.care-is-phone .care-story-nav { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:0 8px; align-items:center; }
  #care.care-is-phone .care-story-nav button { padding:12px 2px; min-height:52px; white-space:normal; text-wrap:balance; text-align:center; letter-spacing:.06em; }
}
@media (max-width:374px) { #care.care-is-phone .care-story-nav button { letter-spacing:.02em; } }
@media (max-width:767px) {
  /* 4 Nov (Shali): all three tab labels on one line: spread across the row, tighter tracking, size easing down on
     narrow phones (12 px at 390 px wide) */
  #care.care-is-phone .care-story-nav { display:flex; justify-content:space-between; gap:8px; }
  #care.care-is-phone .care-story-nav button { flex:0 0 auto; white-space:nowrap; text-wrap:nowrap; padding:14px 0; min-height:44px;
    font-size:min(12px, 3.08vw); letter-spacing:.02em; }
}
