/* The illustrated login is one composition, scoped away from care-record screens. */
.auth .reference-scene {
  --scene-pad: clamp(20px,2.5vw,44px);
  --cards-height: clamp(150px,20svh,206px);
  min-height: 100svh; padding: 28px var(--scene-pad) 48px;
  background:
    radial-gradient(ellipse at 72% 58%,#4a466344,transparent 46%),
    radial-gradient(ellipse at 25% 100%,#f2b88a88,transparent 56%),
    linear-gradient(155deg,#142b45 0%,#101d32 54%,#55516d 100%);
}
.reference-scene .scene-brand { position: relative; margin: 0; z-index: 8; font-size: 1.08rem; }
.reference-scene .scene-brand .logo { width: 52px; height: 52px; }
.reference-scene .scene-copy {
  position: absolute; top: 20%; left: var(--scene-pad); width: 40%; max-width: none; z-index: 5;
}
.reference-scene h1 { font-size: clamp(1.8rem,2.6vw,3.15rem); line-height: 1.12; letter-spacing: -.035em; max-width: none; text-wrap: balance; }
.reference-scene h1 .tagline-first { color: #fff4dd; }
.reference-scene h1 .tagline-second { margin-top: .24em; color: #ffad94; }
.reference-scene .scene-description { margin-top: 28px; font-size: clamp(.88rem,1.08vw,1.16rem); line-height: 1.7; color: #dae1ed; max-width: 36ch; text-wrap: pretty; }
.reference-scene .scene-description > span { display: inline; }
.reference-scene .hero-cat {
  position: absolute; right: 1%; bottom: calc(var(--cards-height) + 32px);
  width: min(52%,58svh); margin: 0; display: block; z-index: 4;
}
.reference-scene .perch { width: 100%; animation: scene-hover 8s ease-in-out infinite; }
.reference-scene .perch::before { inset: 3% -1% 9%; border-color: #f2cf9a44; box-shadow: 0 0 50px #f8c78e13; }
.reference-scene .perch::after { width: 7px; height: 7px; top: 15%; left: 13%; }
.reference-scene .perch .mascot { width: 100%; height: auto; filter: drop-shadow(0 20px 20px #14213955); }
.reference-scene .scene-ground {
  width: 150%; height: auto; max-height: none; left: -10%; bottom: 6%;
  object-fit: contain; opacity: 1; z-index: 2; animation: ground 32s ease-in-out infinite;
}
.reference-scene::before {
  content: ""; position: absolute; inset: auto -15% -15%; height: 38%; z-index: 3; pointer-events: none;
  background: radial-gradient(ellipse at 10% 60%,#fff1daaa,transparent 38%),radial-gradient(ellipse at 78% 75%,#dcc8e6bb,transparent 45%);
  filter: blur(14px);
}
.reference-scene::after { left: 44%; top: 16%; width: 4px; height: 4px; box-shadow: 0 0 12px #ffdfab,90px 40px 0 1px #ffe0ac,-12px 290px 0 1px #fff1ce; }
.reference-scene .stars { height: 100%; opacity: .72; }
.reference-scene .earth { top: 11%; right: 25%; width: 10px; height: 10px; }
.reference-scene .jupiter { top: 9%; left: auto; right: 8%; width: 17px; height: 17px; }
.reference-scene .scene-thoughts { position: absolute; inset: 0; pointer-events: none; z-index: 6; }
.reference-scene .scene-thought {
  position: absolute; width: clamp(115px,10.6vw,184px); max-width: none; min-height: 0; height: auto;
  margin: 0; padding: 10px 14px 14px; text-align: center; border-radius: 42% 43% 32% 35%;
  background: linear-gradient(#fffaf0,#ffe9c9); box-shadow: inset 0 -7px 16px #edcaa844,0 9px 24px #0d1d3433;
  font-size: clamp(.7rem,.85vw,.95rem); line-height: 1.35; white-space: normal; overflow-wrap: normal;
}
.reference-scene .scene-thought::before,.reference-scene .scene-thought::after { background: #fff7e7; }
.reference-scene .scene-thought .bubble-text { display: block; }
.reference-scene .thought-symbol { width: 44px; height: 38px; display: block; margin: -6px auto 3px; filter: drop-shadow(0 3px 2px #9a5b3822); }
.reference-scene .thought-food { left: 48%; top: 15%; transform: rotate(-5deg); }
.reference-scene .thought-water { right: 2%; top: 17%; transform: rotate(5deg); }
.reference-scene .thought-visit { left: 43%; bottom: calc(var(--cards-height) + 86px); transform: rotate(-4deg); }
.reference-scene .scene-thought .d1 { right: 23%; left: auto; bottom: -16px; width: 12px; height: 12px; }
.reference-scene .scene-thought .d2 { right: 17%; left: auto; bottom: -29px; width: 7px; height: 7px; }
.reference-scene .thought-water .d1 { left: 20%; right: auto; }
.reference-scene .thought-water .d2 { left: 13%; right: auto; }
.reference-scene .care-paths {
  position: absolute; bottom: 46px; left: var(--scene-pad); right: var(--scene-pad);
  display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; height: var(--cards-height);
  width: auto; margin: 0; z-index: 7;
}
.reference-scene .care-path {
  position: relative; display: grid; grid-template-columns: 44% minmax(0,1fr); gap: 0;
  align-items: center; padding: 12px 12px 12px 0; border: 1px solid #fff8; border-radius: 22px;
  background: linear-gradient(125deg,#faf4ff,#eee5fb); overflow: hidden;
  box-shadow: 0 12px 30px #11203922; transition: transform .2s,box-shadow .2s;
}
.reference-scene .care-senior { background: linear-gradient(125deg,#f2fbec,#dbede4); }
.reference-scene .care-kidney { background: linear-gradient(125deg,#fff3e6,#f4e4ec); }
.reference-scene .care-path img {
  width: 110%; max-width: none; height: 100%; max-height: 165px; object-fit: contain; grid-column: 1; margin-left: -10%; filter: drop-shadow(0 8px 8px #51416815);
}
.reference-scene .care-copy { position: relative; grid-column: 2; align-self: center; padding-bottom: 12px; }
.reference-scene .care-copy strong { display: block; font-size: clamp(.83rem,1vw,1.1rem); line-height: 1.2; margin-bottom: 8px; }
.reference-scene .care-copy p { display: block; font-size: clamp(.66rem,.78vw,.88rem); line-height: 1.45; color: #44516a; font-weight: 500; margin: 0; max-width: none; }
.reference-scene .care-arrow { position: absolute; right: 10px; bottom: 8px; font-size: 1rem; margin: 0; }
.reference-scene .care-path:hover { transform: translateY(-4px); box-shadow: 0 16px 30px #11203933; }
.reference-scene .motion-toggle { left: var(--scene-pad); bottom: 8px; padding: 6px 12px; font-size: .72rem; }
@media (min-width: 961px) and (max-width: 1200px) {
  .auth .reference-scene { --scene-pad: 20px; --cards-height: 174px; }
  .reference-scene .scene-copy { top: 18%; width: 44%; }
  .reference-scene h1 { font-size: 1.8rem; }
  .reference-scene .scene-description { font-size: .86rem; margin-top: 22px; line-height: 1.6; }
  .reference-scene .hero-cat { width: 51%; bottom: calc(var(--cards-height) + 38px); }
  .reference-scene .scene-thought { width: 116px; font-size: .68rem; padding-inline: 9px; }
  .reference-scene .thought-symbol { width: 34px; height: 29px; }
  .reference-scene .thought-food { top: 13%; left: 49%; }
  .reference-scene .thought-water { top: 29%; right: 1%; }
  .reference-scene .thought-visit { left: 42%; bottom: calc(var(--cards-height) + 50px); }
  .reference-scene .care-path { grid-template-columns: 1fr; grid-template-rows: 70px auto; padding: 6px 10px 18px; border-radius: 16px; }
  .reference-scene .care-path img { grid-column: 1; width: 100%; height: 80px; margin: -6px 0 0; }
  .reference-scene .care-copy { grid-column: 1; padding: 0; align-self: start; }
  .reference-scene .care-copy strong { font-size: .78rem; margin-bottom: 4px; }
  .reference-scene .care-copy p { font-size: .62rem; line-height: 1.35; }
}
@media (max-width: 960px) {
  .auth .reference-scene { min-height: 0; padding: 24px 20px 50px; display: flex; --cards-height: 170px; }
  .reference-scene .scene-brand { font-size: .95rem; margin-bottom: 42px; }
  .reference-scene .scene-brand .logo { width: 42px; height: 42px; }
  .reference-scene .scene-copy { position: relative; top: auto; left: auto; width: 100%; max-width: 560px; }
  .reference-scene h1 { font-size: clamp(2rem,4.8vw,3rem); max-width: 25ch; }
  .reference-scene .scene-description { display: block; max-width: 48ch; font-size: .95rem; margin-top: 24px; }
  .reference-scene .hero-cat { position: relative; right: auto; bottom: auto; width: min(440px,82%); margin: 86px 0 0; align-self: flex-end; }
  .reference-scene .scene-thoughts { inset: auto 20px 222px; height: 430px; }
  .reference-scene .scene-thought { width: 145px; font-size: .78rem; }
  .reference-scene .thought-food { top: 5%; left: 8%; }
  .reference-scene .thought-water { top: 15%; right: 0; }
  .reference-scene .thought-visit { bottom: 5%; left: 0; }
  .reference-scene .care-paths { position: relative; inset: auto; width: 100%; margin-top: 8px; height: auto; }
  .reference-scene .care-path { grid-template-columns: 1fr; grid-template-rows: 100px auto; padding: 6px 12px 24px; }
  .reference-scene .care-path img { grid-column: 1; width: 120%; height: 108px; margin-left: -10%; }
  .reference-scene .care-copy { grid-column: 1; padding: 0; }
  .reference-scene .care-copy strong { font-size: .9rem; }
  .reference-scene .care-copy p { font-size: .74rem; }
  .reference-scene .scene-ground { width: 190%; left: -45%; bottom: 130px; }
}
@media (max-width: 520px) {
  .reference-scene .scene-copy { max-width: none; }
  .reference-scene h1 { font-size: 2rem; }
  .reference-scene .hero-cat { width: 92%; margin-top: 110px; }
  .reference-scene .scene-thoughts { inset: auto 16px 260px; height: 380px; }
  .reference-scene .scene-thought { width: 116px; font-size: .68rem; padding: 8px 10px 12px; }
  .reference-scene .thought-symbol { width: 34px; height: 28px; }
  .reference-scene .thought-food { top: 3%; left: 0; }
  .reference-scene .thought-water { top: 6%; right: 0; }
  .reference-scene .thought-visit { bottom: 5%; left: 0; }
  .reference-scene .care-paths { gap: 7px; }
  .reference-scene .care-path { padding: 5px 7px 22px; grid-template-rows: 76px auto; border-radius: 14px; }
  .reference-scene .care-path img { height: 84px; width: 140%; margin-left: -20%; }
  .reference-scene .care-copy strong { font-size: .75rem; margin-bottom: 6px; }
  .reference-scene .care-copy p { font-size: .65rem; line-height: 1.4; }
  .reference-scene .scene-ground { width: 230%; left: -65%; bottom: 170px; }
}
@media (prefers-reduced-motion: reduce) {
  .reference-scene *, .reference-scene *::before, .reference-scene *::after { animation: none !important; transition: none !important; }
}

.reference-scene .no-break { white-space: nowrap; }

.reference-scene .scene-skip { display: none; }
@media (max-width: 520px) {
  .reference-scene .scene-brand { flex-wrap: wrap; gap: 8px; }
  .reference-scene .scene-brand > span { font-size: .82rem; }
  .reference-scene .scene-skip { display: block; margin-left: auto; border: 1px solid #fff4dd88; color: #fff4dd; background: #142b45; border-radius: 20px; padding: 8px 10px; font-size: .75rem; cursor: pointer; }
  .reference-scene .care-paths { display: flex; flex-direction: column; gap: 10px; }
  .reference-scene .care-path { display: grid; grid-template-columns: 40% 1fr; grid-template-rows: auto; padding: 10px 16px 14px 6px; min-height: 120px; }
  .reference-scene .care-path img { width: 110%; height: 120px; margin-left: -10%; }
  .reference-scene .care-copy { grid-column: 2; }
  .reference-scene .care-copy strong { font-size: .95rem; }
  .reference-scene .care-copy p { font-size: .78rem; }
  .reference-scene .scene-thoughts { bottom: 480px; }
  .reference-scene .scene-ground { bottom: 350px; }
}

@keyframes scene-hover { 50% { transform: translateY(-8px); } }

/* Preview: thoughts take turns. Six seconds per thought, including a quiet gap. */
.reference-scene .scene-thought { opacity: 0; animation: thought-turn 18s ease-in-out infinite both; }
.reference-scene .thought-food { animation-delay: 0s; }
.reference-scene .thought-water { animation-delay: 6s; }
.reference-scene .thought-visit { animation-delay: 12s; }
@keyframes thought-turn {
  0% { opacity: 0; translate: 0 10px; scale: .94; }
  3%, 25% { opacity: 1; translate: 0 0; scale: 1; }
  30%, 100% { opacity: 0; translate: 0 -6px; scale: .98; }
}
.still .reference-scene .scene-thought { animation: none !important; opacity: 0; }
.still .reference-scene .thought-food { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .reference-scene .scene-thought { animation: none !important; opacity: 0; }
  .reference-scene .thought-food { opacity: 1; }
}

/* The new habitat is a continuous painted environment rather than a stretched strip. */
.auth .reference-scene { background: #11243c url('/assets/img/login-habitat-no-planet-v3.webp') center center / cover no-repeat; }
.reference-scene .scene-ground, .reference-scene::before { display: none; }
.reference-scene .scene-copy { top: 23%; }
.reference-scene .hero-cat { right: 2%; width: min(57%,61svh); bottom: calc(var(--cards-height) + 45px); }
.reference-scene .scene-thought { width: clamp(155px,13vw,220px); }
.reference-scene .thought-food { left: auto; right: 15%; top: 16%; }
.reference-scene .thought-water { right: 3%; top: 17%; }
.reference-scene .thought-visit { left: auto; right: 18%; top: 16%; bottom: auto; }
@media (max-width: 960px) {
 .auth .reference-scene { background-position: 65% center; }
 .reference-scene .scene-copy { top: auto; }
 .reference-scene .hero-cat { right: auto; bottom: auto; width: min(440px,90%); }
 .reference-scene .thought-food, .reference-scene .thought-water, .reference-scene .thought-visit { top: 0; right: 8%; left: auto; bottom: auto; }
}

.reference-scene .scene-thought { background: url('/assets/img/thought-cloud-clean-v3.webp') center / 100% 100% no-repeat; box-shadow: none; border-radius: 0; width: clamp(190px,15vw,270px); min-height: 165px; padding: 38px 32px 44px; transform: none; display: flex; flex-direction: column; justify-content: center; }
.reference-scene .scene-thought::before, .reference-scene .scene-thought::after, .reference-scene .scene-thought .bubble-dot { display: none; }
.reference-scene .thought-symbol { flex-shrink: 0; margin: 0 auto 4px; }
.reference-scene .scene-thought .bubble-text { font-size: .85rem; line-height: 1.35; }
@media (max-width: 1200px) { .reference-scene .scene-thought { min-height: 150px; padding: 30px 28px 40px; } .reference-scene .scene-thought .bubble-text { font-size: .74rem; } }

@media (min-width: 961px) {
 .reference-scene .scene-copy { width: 38%; }
 .reference-scene .hero-cat { width: min(54%,61svh); right: 1%; }
 .reference-scene .thought-food, .reference-scene .thought-water, .reference-scene .thought-visit { top: 7%; }
}
@media (max-width: 960px) {
 .reference-scene .thought-food, .reference-scene .thought-water, .reference-scene .thought-visit { top: -75px; }
}

/* Ground the mascot and attach every thought to its composition. */
.reference-scene .perch { animation: none; }
.reference-scene .cat-cloud-seat { position: absolute; z-index: 5; pointer-events: none; width: 120%; max-width: none; height: 30%; object-fit: fill; left: -10%; bottom: -9%; }
.reference-scene .hero-cat .scene-thoughts { inset: 0; height: 100%; z-index: 6; }
.reference-scene .hero-cat .scene-thought { margin: 0; width: 46%; min-width: 155px; max-width: 230px; min-height: 145px; padding: 28px 28px 40px; }
.reference-scene .hero-cat .thought-food { left: -20%; right: auto; top: -12%; bottom: auto; }
.reference-scene .hero-cat .thought-water { left: auto; right: -16%; top: -10%; bottom: auto; }
.reference-scene .hero-cat .thought-visit { left: auto; right: -20%; top: 25%; bottom: auto; }
@media (min-width: 961px) {
 .auth .reference-scene { --cards-height: clamp(140px,17svh,176px); background-size: 100% 100%; }
 .reference-scene .hero-cat { width: min(48%,55svh); right: 10%; bottom: 29%; }
 .reference-scene .care-paths { bottom: max(12px, calc(5% - 24px)); }
 .reference-scene .care-path { border-radius: 18px; }
 .reference-scene .care-path img { max-height: 135px; }
 .reference-scene .scene-copy { top: 23%; width: 36%; }
 .reference-scene .motion-toggle { bottom: 10px; }
}
@media (max-width: 960px) {
 .reference-scene .hero-cat { margin-top: 120px; margin-bottom: 70px; width: 75%; align-self: center; }
 .reference-scene .hero-cat .scene-thought { min-width: 150px; width: 55%; }
 .reference-scene .hero-cat .thought-food { top: -22%; left: -17%; }
 .reference-scene .hero-cat .thought-water { top: -22%; right: -17%; }
 .reference-scene .hero-cat .thought-visit { top: -22%; right: -17%; }
}

.reference-scene .cat-cloud-seat { width: 140%; left: -20%; height: 40%; bottom: -18%; mask-image: linear-gradient(to bottom,#000 0%,#000 65%,transparent 100%); }
@media (min-width: 961px) {
 .reference-scene .hero-cat .thought-food { top: -25%; }
 .reference-scene .hero-cat .thought-water { top: -24%; }
 .reference-scene .hero-cat .thought-visit { top: -24%; right: -16%; }
}

.reference-scene .hero-cat .scene-thought { position: absolute; }
.reference-scene .cat-cloud-seat { bottom: -12%; }
@media (max-width: 960px) {
 .auth .reference-scene { background-size: auto 900px; background-position: 65% top; background-color: #172940; }
 .reference-scene .hero-cat .thought-food, .reference-scene .hero-cat .thought-water, .reference-scene .hero-cat .thought-visit { top: -38%; }
}

@media (min-width: 961px) and (max-width: 1100px) {
 .reference-scene .hero-cat .thought-food { top: calc(100% - 68svh); }
}
@media (min-width: 521px) and (max-width: 960px) {
 .reference-scene .hero-cat { margin-top: 170px; }
 .reference-scene .hero-cat .thought-food, .reference-scene .hero-cat .thought-water, .reference-scene .hero-cat .thought-visit { top: -20%; }
}

@media (max-width: 960px) {
 .reference-scene .care-paths { margin-top: 32px; }
}

/* Keep the mascot on the habitat's own clouds; no separate floating cushion. */
@media (min-width: 961px) {
 .reference-scene .hero-cat { width: min(54%,61svh); right: 4%; bottom: 24%; }
 .reference-scene .hero-cat .thought-food { top: -25%; left: -16%; }
 .reference-scene .hero-cat .thought-water, .reference-scene .hero-cat .thought-visit { right: 0; top: -24%; }
}
/* Mirror only the cloud artwork, keeping the lettering and icons upright.
   Its baked-in trailing dots sit on the inward edge on either side. */
.reference-scene .hero-cat .scene-thought { background: none; }
.reference-scene .hero-cat .scene-thought::before { display: block; content: ''; position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 0; background: url('/assets/img/thought-cloud-clean-v3.webp') center / 100% 100% no-repeat; z-index: -1; }
.reference-scene .hero-cat .thought-water::before, .reference-scene .hero-cat .thought-visit::before { transform: scaleX(-1); }

/* Smaller, translucent thoughts surrounding the viewer-facing mascot. */
.reference-scene .perch::before, .reference-scene .perch::after { display: none; }
.reference-scene.look .perch .mascot { transform: none; }
.reference-scene .hero-cat .scene-thought { width: 36%; min-width: 136px; max-width: 185px; min-height: 122px; padding: 24px 23px 30px; }
.reference-scene .hero-cat .scene-thought::before { opacity: .72; transform: none; clip-path: polygon(0 0,100% 0,100% 73%,76% 73%,76% 100%,0 100%); }
.reference-scene .hero-cat .scene-thought .bubble-text { font-size: .74rem; line-height: 1.35; }
.reference-scene .hero-cat .thought-symbol { width: 30px; height: 26px; }
.reference-scene .hero-cat .thought-food { left: -9%; right: auto; top: -14%; }
.reference-scene .hero-cat .thought-water { left: auto; right: -5%; top: 22%; }
.reference-scene .hero-cat .thought-visit { left: -12%; right: auto; top: 51%; }
.reference-scene .thought-tail { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
@media (max-width: 960px) {
 .reference-scene .hero-cat .scene-thought { min-width: 120px; width: 44%; min-height: 112px; padding: 23px 22px 30px; }
 .reference-scene .hero-cat .scene-thought .bubble-text { font-size: .66rem; }
 .reference-scene .hero-cat .thought-food { top: -34%; left: -16%; }
 .reference-scene .hero-cat .thought-water { right: -18%; top: -19%; }
 .reference-scene .hero-cat .thought-visit { left: -17%; top: 34%; }
}

@media (min-width: 961px) { .reference-scene .hero-cat .thought-water { top: 38%; } }


.reference-scene h1 { font-family: 'Fraunces', Georgia, serif; font-weight: 650; font-variation-settings: 'SOFT' 70, 'WONK' 1, 'opsz' 48; letter-spacing: -.035em; line-height: 1.2; text-shadow: 0 2px 14px #07172b55; }
.reference-scene h1 .tagline-first, .reference-scene h1 .tagline-second { display: inline; margin: 0; }
.reference-scene h1 .tagline-second { color: #ffad94; }
@media (min-width: 961px) {
 .reference-scene .scene-copy { top: 13%; width: calc(100% - 2 * var(--scene-pad)); }
 .reference-scene h1 { font-size: clamp(24px,2.65vw,48px); max-width: none; white-space: nowrap; text-wrap: nowrap; }
 .reference-scene .scene-description { max-width: 34%; margin-top: 30px; }
 .reference-scene .hero-cat .thought-food { top: 9%; left: -16%; }
}
@media (max-width: 960px) {
 .reference-scene h1 { font-size: clamp(1.85rem,4.8vw,2.8rem); text-wrap: balance; white-space: normal; }
}

/* A compact left-hand wordmark: rounded headline and handwritten reassurance. */

@font-face { font-family: 'Caveat'; src: url('/assets/fonts/Caveat.ttf') format('truetype'); font-weight: 400 700; font-display: swap; }
.reference-scene .scene-copy { width: 39%; top: 22%; }
.reference-scene h1 { font-family: 'Baloo 2',sans-serif; font-weight: 700; font-variation-settings: normal; font-size: clamp(27px,2.9vw,52px); line-height: 1.08; letter-spacing: -.025em; white-space: normal; text-wrap: initial; }
.reference-scene h1 .tagline-first, .reference-scene h1 .tagline-line { display: block; }
.reference-scene h1 .tagline-line { white-space: nowrap; }
.reference-scene h1 .tagline-second { display: inline-block; font-family: 'Caveat',cursive; font-weight: 700; font-size: 1.4em; line-height: 1.08; margin-top: .18em; color: #ffa38d; letter-spacing: -.03em; transform: rotate(-3deg); transform-origin: left center; white-space: nowrap; }
.reference-scene .scene-description { max-width: 100%; width: 31ch; font-size: clamp(14px,1.2vw,20px); font-weight: 700; color: #e1e7f0; line-height: 1.65; margin-top: clamp(36px,5svh,56px); text-wrap: pretty; }
@media (min-width: 961px) {
 .reference-scene .hero-cat .thought-food { top: -18%; left: 4%; }
 .reference-scene .hero-cat .thought-visit { top: 61%; left: -2%; }
}
@media (max-width: 960px) {
 .reference-scene .scene-copy { top: auto; width: 100%; max-width: 540px; }
 .reference-scene h1 { font-size: clamp(32px,5.8vw,46px); }
 .reference-scene .scene-description { width: 100%; max-width: 36ch; font-size: 16px; margin-top: 34px; }
}

@media (min-width: 961px) { .reference-scene .scene-description { width: 100%; max-width: 100%; } }

@media (min-width: 961px) { .reference-scene .scene-copy { width: 37%; } }



.reference-scene h1 .tagline-first { font-family: 'Sora',sans-serif; font-weight: 650; font-size: .84em; letter-spacing: -.045em; line-height: 1.28; }
.reference-scene .scene-description { font-family: 'Barlow Condensed',sans-serif; font-size: clamp(12px,1.04vw,18px); font-weight: 700; white-space: nowrap; text-wrap: nowrap; }
.reference-scene .hero-cat .thought-water { right: auto; left: -12%; top: 34%; }
.reference-scene .hero-cat .thought-food { right: auto; left: -4%; top: -18%; }
.reference-scene .hero-cat .thought-visit { right: auto; left: -2%; top: 61%; }
@media (max-width: 960px) {
 .reference-scene .scene-description { font-size: 14px; white-space: normal; text-wrap: balance; }
 .reference-scene .hero-cat .thought-water { left: -17%; right: auto; top: 8%; }
 .reference-scene .hero-cat .thought-food { left: -17%; right: auto; top: -34%; }
 .reference-scene .hero-cat .thought-visit { left: -17%; right: auto; top: 44%; }
}

@media (min-width: 961px) {
 .reference-scene .scene-description { width: calc(100% + 56px); max-width: none; font-size: clamp(11px,.98vw,18px); }
 .reference-scene .hero-cat .thought-water { left: -4%; top: 16%; }
}

/* Coordinated cream typography, retaining the coral handwritten signature. */
@font-face { font-family: 'Outfit'; src: url('/assets/fonts/Outfit.ttf') format('truetype'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Roboto Condensed'; src: url('/assets/fonts/RobotoCondensed.ttf') format('truetype'); font-weight: 100 900; font-display: swap; }
.reference-scene h1 .tagline-first { font-family: 'Outfit',sans-serif; font-weight: 650; letter-spacing: -.025em; color: #fff4dd; }
.reference-scene .scene-description { font-family: 'Roboto Condensed',sans-serif; font-weight: 650; color: #fff4dd; }
@media (min-width: 961px) {
 .reference-scene .scene-description { font-size: clamp(12px,1.1vw,20px); width: max-content; max-width: none; letter-spacing: -.025em; }
}
@media (max-width: 960px) { .reference-scene .scene-description { font-size: 16px; } }

.auth-box .signin-heading { text-align: center; text-wrap: balance; margin: 0 auto 12px; max-width: 20ch; line-height: 1.2; }
.auth-box > .signin-intro { text-align: center; margin: 0 auto 24px; font-size: 1rem; line-height: 1.5; }
.signin-intro > span { display: block; }
.no-card-badge { display: inline-block; margin-top: 10px; padding: 5px 15px; border-radius: 999px; color: #863c2d; background: #ffe0d4; border: 1px solid #efb6a4; font-weight: 800; font-size: .92rem; }
@media (min-width: 961px) and (max-height: 800px) {
 .auth-box .signin-heading { margin-bottom: 8px; }
 .auth-box > .signin-intro { margin-bottom: 16px; font-size: .94rem; }
 .no-card-badge { margin-top: 6px; padding-block: 3px; }
}

.auth-box .signin-heading { max-width: none; white-space: nowrap; text-wrap: nowrap; font-size: clamp(18px,1.8vw,28px); margin-bottom: 12px; }
.auth-box > .signin-intro { white-space: nowrap; text-wrap: nowrap; font-size: clamp(11px,.84vw,13px); margin-bottom: 24px; }
.signin-intro > span { display: inline; }
.no-card-highlight { color: #863c2d; font-weight: 800; background: linear-gradient(transparent 60%,#ffc7a8 60%); padding: 0 1px 2px; border-bottom: 2px solid #e47d5c; }
@media (max-width: 960px) {
 .auth-box .signin-heading { font-size: clamp(17px,4.8vw,26px); }
 .auth-box > .signin-intro { font-size: clamp(9.5px,2.75vw,13px); }
}

.no-card-highlight { background: none; border: 0; padding: 0; text-decoration: none; color: inherit; font-weight: 800; }
.auth-box > .signin-intro { font-size: clamp(12px,.98vw,15px); }
@media (max-width: 960px) { .auth-box > .signin-intro { font-size: clamp(10.5px,3.05vw,14px); } }

/* Gentle seated greeting; the paws remain anchored to the landscape. */
.reference-scene .perch { transform-origin: 54% 96%; animation: seated-greeting 10s ease-in-out infinite; will-change: transform; }
@keyframes seated-greeting {
  0%, 12%, 52%, 100% { transform: rotate(0deg) scaleY(1); }
  20% { transform: rotate(-1.5deg) scaleY(1.012); }
  29% { transform: rotate(1.2deg) scaleY(1.006); }
  38% { transform: rotate(-.7deg) scaleY(1.012); }
  45% { transform: rotate(.4deg) scaleY(1.004); }
  75% { transform: rotate(0deg) scaleY(1.008); }
}
.reference-scene .hero-cat .scene-thought::before { opacity: 1; }
.reference-scene .thought-tail circle { opacity: 1; }
.reference-scene .hero-cat .thought-food { left: -4%; right: auto; top: -18%; }
.reference-scene .hero-cat .thought-water { left: -10%; right: auto; top: 8%; }
.reference-scene .hero-cat .thought-visit { left: -12%; right: auto; top: 18%; }
@media (max-width: 960px) {
 .reference-scene .hero-cat .thought-food { left: -17%; right: auto; top: -34%; }
 .reference-scene .hero-cat .thought-water { left: -17%; right: auto; top: -15%; }
 .reference-scene .hero-cat .thought-visit { left: -17%; right: auto; top: 4%; }
}
@media (prefers-reduced-motion: reduce) { .reference-scene .perch { animation: none !important; will-change: auto; } }

.auth .reference-scene { background-image: url('/assets/img/login-habitat-no-planet-v3.webp'); }

/* More presence for the tagline; keep thoughts clear of the face. */
@media (min-width: 961px) {
 .reference-scene h1 { font-size: clamp(28px,3.06vw,55px); margin-left: 12px; }
 .reference-scene .hero-cat .thought-food { left: -8%; top: -23%; }
 .reference-scene .hero-cat .thought-water { left: -10%; top: 1%; }
 .reference-scene .hero-cat .thought-visit { left: -11%; top: 10%; }
}
@media (max-width: 960px) {
 .reference-scene h1 { font-size: clamp(34px,6.1vw,49px); margin-left: 6px; }
 .reference-scene .hero-cat .thought-food { top: -39%; }
 .reference-scene .hero-cat .thought-water { top: -22%; }
 .reference-scene .hero-cat .thought-visit { top: -5%; }
}

@media (max-width: 360px) {
 .reference-scene .hero-cat .thought-water { top: -40%; }
 .reference-scene .hero-cat .thought-visit { top: -34%; }
}
@media (min-width: 961px) and (max-width: 1100px) {
 .reference-scene .hero-cat .thought-visit { top: -18%; left: -14%; }
}

.reference-scene .care-path { cursor: default; }
.reference-scene .hero-cat .scene-thought { width: 178px; min-width: 178px; max-width: 178px; height: 120px; min-height: 120px; padding: 20px 18px 18px; justify-content: center; align-items: center; gap: 5px; }
.reference-scene .hero-cat .scene-thought::before { clip-path: none; background-image: url('/assets/img/thought-cloud-clean-v3.webp'); }
.reference-scene .hero-cat .thought-symbol { width: 27px; height: 25px; margin: 0; }
.reference-scene .hero-cat .scene-thought .bubble-text { font-size: 11px; line-height: 1.35; text-align: center; white-space: pre-line; font-weight: 750; }
@media (max-width: 960px) {
 .reference-scene .hero-cat .scene-thought { width: 152px; min-width: 152px; max-width: 152px; height: 108px; min-height: 108px; padding: 17px 15px; }
 .reference-scene .hero-cat .scene-thought .bubble-text { font-size: 10px; }
}

/* Continuous gentle dance with no resting interval; anchored at the paws. */
.reference-scene .perch { animation: mascot-sway 3.6s ease-in-out infinite; transform-origin: 54% 96%; }
@keyframes mascot-sway {
  0%, 100% { transform: rotate(-1.6deg) scaleY(1); }
  25% { transform: rotate(0deg) scaleY(1.012); }
  50% { transform: rotate(1.6deg) scaleY(1); }
  75% { transform: rotate(0deg) scaleY(1.012); }
}
@media (prefers-reduced-motion: reduce) { .reference-scene .perch { animation: none !important; } }

@media (min-width: 961px) {
 .reference-scene h1 { font-size: clamp(31px,3.4vw,61px); margin-left: clamp(28px,2.5vw,44px); }
}
@media (max-width: 960px) {
 .reference-scene h1 { font-size: clamp(36px,6.5vw,52px); margin-left: 14px; }
}

@media (min-width: 961px) and (max-width: 1100px) { .reference-scene h1 { width: max-content; max-width: none; } }

/* Prevent platform font metrics from widening the narrow-phone form grid. */
.auth-panel, .auth-box { min-width: 0; }
@media (max-width: 380px) {
 .auth-box > .signin-intro { font-family: 'Roboto Condensed',sans-serif; font-size: 12px; }
 .auth-box .auth-foot { font-size: .78rem; }
}
