/* A continuous ink landscape. The hero keeps its original layout. */
body {
  --sky: #e7efea;
  --night: 0;
  --scene: 0;
  --sun-opacity: 0;
  --moon-opacity: 0;
  --celestial-y: 65vh;
  --celestial-x: 73vw;
  --land-x: 15vw;
  --land-y: 30px;
  --pine-x: -180px;
  --pine-y: 30px;
  --land-filter: 1;
  --scene-density: .78;
  --care-progress: 0;
  background: var(--sky);
}
.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  overflow: hidden;
  background: radial-gradient(ellipse at 75% 22%, #9bb7a41c, transparent 55%),
    radial-gradient(ellipse at 20% 90%, #9bb7a42e, transparent 60%);
}
.sky-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 70%, #e3b87925, transparent 55%);
  opacity: calc(var(--scene) * (1 - var(--night)));
}
.paper { z-index: -1; opacity: .065; }
.landscape { position: absolute; inset: 0; opacity: var(--scene); }
.mountains {
  position: absolute;
  width: 114%;
  height: 82%;
  object-fit: fill;
  object-position: center bottom;
  left: -7%;
  bottom: -8%;
  transform: translate3d(var(--land-x), var(--land-y), 0);
  filter: brightness(var(--land-filter));
  opacity: var(--scene-density);
}
.pine {
  position: absolute;
  bottom: -7%;
  left: -5%;
  width: min(44vw, 680px);
  height: 82%;
  object-fit: contain;
  object-position: left bottom;
  transform: translate3d(var(--pine-x), var(--pine-y), 0);
  filter: brightness(var(--land-filter));
  opacity: calc(var(--scene-density) * .8);
}
.celestial {
  position: absolute;
  width: clamp(74px, 9vw, 144px);
  aspect-ratio: 1;
  left: var(--celestial-x);
  top: var(--celestial-y);
  transform: translate(-50%, -50%);
}
.sun, .moon { position: absolute; inset: 0; border-radius: 50%; }
.sun {
  background: radial-gradient(circle at 38% 33%, #ffe4a9, #e5a476 85%);
  box-shadow: 0 0 75px 14px #ecbd862b;
  opacity: var(--sun-opacity);
}
.moon {
  background: radial-gradient(circle at 35% 28%, #edf2dc, #c7d5c6);
  box-shadow: 0 0 70px 9px #d6e6d01c, inset -12px -7px 18px #869ca42b;
  opacity: var(--moon-opacity);
}
.stars { position: absolute; inset: 0; opacity: var(--night); }
.stars i { position: absolute; width: 2px; height: 2px; border-radius: 50%; background: #d9eee5; box-shadow: 0 0 6px #d9eee580; }
.stars i:nth-child(1) { top: 14%; left: 14%; }
.stars i:nth-child(2) { top: 28%; left: 38%; }
.stars i:nth-child(3) { top: 17%; left: 60%; }
.stars i:nth-child(4) { top: 9%; left: 87%; }
.stars i:nth-child(5) { top: 42%; left: 92%; }
.stars i:nth-child(6) { top: 37%; left: 8%; }
.stars i:nth-child(7) { top: 7%; left: 49%; }
.stars i:nth-child(8) { top: 36%; left: 70%; }
.flock { position: absolute; inset: 0; opacity: calc(1 - var(--night) * .85); }
.bird { position: absolute; display: block; left: 0; top: 0; width: 75px; aspect-ratio: 1; will-change: transform; }
.bird img { width: 100%; height: 100%; object-fit: contain; }
.bird-two { width: 50px; opacity: .7; }
.bird-three { width: 35px; opacity: .5; }
.memory { height: 115svh; min-height: 970px; }
.memory-proof { background: color-mix(in srgb, var(--sky) 55%, transparent); backdrop-filter: blur(10px); padding: 24px; }
.memory-copy { max-width: 600px; }
.memory-copy p { max-width: 475px; }
.memory-bottom .chapter-label { font-size: 16px; }
.connection-tabs { background: color-mix(in srgb, var(--sky) 50%, transparent); backdrop-filter: blur(6px); }
.demo-surface { background: color-mix(in srgb, var(--sky) 90%, white 10%); }
.scroll-enter { opacity: 1; transform: none; }
.scene-ready .scroll-enter { will-change: transform, opacity; }
.care { height: 330svh; min-height: 2300px; padding: 0; overflow: visible; }
.care-sticky { position: sticky; top: 0; height: 100svh; min-height: 700px; padding: 48px 8% 35px; overflow: hidden; }
.care-heading { border-top: 1px solid var(--line); padding-top: 26px; }
.care-heading .eyebrow { margin-bottom: 12px; }
.care-heading h2 { font-family: var(--sans); font-weight: 400; font-size: 17px; letter-spacing: .03em; color: var(--muted); }
.care-stage { position: absolute; top: 31%; left: 8%; right: 8%; height: 50%; }
.care-phase { position: absolute; inset: 0; display: grid; grid-template-columns: 1.1fr 1fr; gap: 12%; align-items: center; }
.care-phase[aria-hidden="true"] { pointer-events: none; opacity: 0; }
.care-words { position: relative; isolation: isolate; will-change: transform, opacity; }
.care-words::before {
  content: "";
  position: absolute;
  inset: -45px -65px;
  z-index: -1;
  background: radial-gradient(ellipse, var(--sky) 35%, color-mix(in srgb, var(--sky) 95%, transparent) 56%, transparent 76%);
  filter: blur(15px);
  pointer-events: none;
}
.phase-label { font-size: 12px; letter-spacing: 2px; color: var(--teal); margin-bottom: 24px; }
.care-words h3 { font-family: var(--serif); font-size: clamp(46px, 4.6vw, 74px); font-weight: 400; letter-spacing: -.04em; line-height: 1.32; margin-bottom: 26px; }
.care-words h3 span { color: var(--teal); white-space: nowrap; }
.care-words > p:last-child { color: var(--muted); font-size: 16px; line-height: 2; max-width: 440px; }
.care-example { position: relative; width: 100%; padding: 30px; border: 1px solid var(--line); background: color-mix(in srgb, var(--sky) 83%, transparent); backdrop-filter: blur(20px); border-radius: 12px; box-shadow: 0 25px 70px #092d2510; will-change: transform, opacity; }
.example-top { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); padding-bottom: 22px; border-bottom: 1px solid var(--line); gap: 15px; }
.note-quote { font-family: var(--serif); font-size: clamp(19px, 1.7vw, 27px); line-height: 1.9; margin: 26px 0; }
.example-caption { font-size: 12px; color: var(--muted); line-height: 1.8; display: block; }
.care-message { padding: 18px 0; font-size: 17px; line-height: 1.8; }
.alarm-request { width: fit-content; margin: 0 0 18px auto; padding: 11px 15px; border-radius: 13px 13px 3px 13px; font-size: 14px; background: color-mix(in srgb, var(--teal) 12%, transparent); }
.alarm-preview { display: flex; align-items: center; gap: 20px; padding: 16px 0 21px; border-top: 1px solid var(--line); }
.alarm-time { font-size: 39px; font-weight: 300; letter-spacing: -2px; }
.alarm-preview strong { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.alarm-preview div>span { font-size: 12px; color: var(--muted); }
.alarm-check { margin-left: auto; width: 24px; height: 24px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; font-size: 13px; }
.care-bottom { position: absolute; left: 8%; right: 8%; bottom: 25px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12%; isolation: isolate; }
.care-bottom::before { content: ""; position: absolute; z-index: -1; inset: -30px -10vw -30px; background: linear-gradient(transparent, color-mix(in srgb, var(--sky) 94%, transparent) 50%); pointer-events: none; }
.day-timeline { position: relative; width: 330px; display: flex; justify-content: space-between; padding-top: 14px; font-size: 13px; color: var(--muted); }
.timeline-line { position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--line); }
.timeline-line i { display: block; width: calc(var(--care-progress) * 100%); height: 1px; background: var(--teal); }
.care-scroll-hint { text-align: right; color: var(--muted); font-size: 12px; margin: 10px 0; }
.care-scroll-hint span { margin-left: 15px; }
.care-settings { color: var(--muted); font-size: 12px; line-height: 1.8; grid-column: 1 / -1; margin: 8px 0 0; }
.download { border-color: var(--line); }
.download .primary { background: var(--ink); color: var(--sky); }
.motion-toggle { color: var(--ink); background: color-mix(in srgb, var(--sky) 90%, transparent); border-color: var(--line); }
dialog { color: #173f38; }
dialog .eyebrow, dialog p { color: #61796e; }
dialog .primary { background: #173f38; color: #f0f8ed; }
body[data-motion="paused"] .bird { will-change: auto; }

footer { display: block; padding: 24px 0 18px; }
.footer-main { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.back-to-top { font-size: 12px; color: var(--muted); }
.back-to-top span { margin-left: 15px; }
.footer-record { margin-top: 18px; text-align: center; font-size: 12px; color: var(--muted); }
.footer-record a { display: inline-block; padding: 8px 12px; line-height: 1.6; }
.footer-record a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 600px) {
  footer { padding-bottom: 25px; }
  .footer-record { margin-top: 14px; padding-right: 18px; }
}

/* An accessible reading layout replaces scroll choreography when motion is reduced. */
body[data-reduced="true"] .care { height: auto; min-height: 0; }
body[data-reduced="true"] .care-sticky { position: relative; height: auto; overflow: visible; }
body[data-reduced="true"] .care-stage { position: static; height: auto; }
body[data-reduced="true"] .care-phase { position: relative; margin: 80px 0; }
body[data-reduced="true"] .care-bottom { position: static; display: block; }
body[data-reduced="true"] .day-timeline, body[data-reduced="true"] .care-scroll-hint { display: none; }

@media (max-width: 900px) {
  .header nav { gap: 18px; }
  .care-sticky { padding-left: 7%; padding-right: 7%; }
  .care-stage { left: 7%; right: 7%; gap: 6%; }
  .care-phase { gap: 6%; }
  .care-example { padding: 23px; }
  .care-words h3 { font-size: 48px; }
  .day-timeline { width: 270px; }
}
@media (max-width: 600px) {
  .mountains { width: 200%; left: -50%; height: 69%; bottom: -3%; }
  .pine { width: 70%; height: 55%; left: -18%; bottom: -2%; opacity: calc(var(--scene-density) * .65); }
  .celestial { width: 77px; }
  .bird { width: 58px; }
  .bird-two { width: 39px; }
  .bird-three { width: 27px; }
  .memory { height: 1050px; min-height: 0; }
  .memory-proof { padding: 20px 16px; }
  .memory-copy p br { display: none; }
  .memory-bottom .chapter-label { font-size: 14px; letter-spacing: 2px; }
  .care { height: 360svh; min-height: 2500px; }
  .care-sticky { min-height: 740px; padding: 30px 7% 20px; }
  .care-heading { padding-top: 20px; }
  .care-heading h2 { font-size: 14px; line-height: 1.9; max-width: 280px; }
  .care-heading .eyebrow { font-size: 10px; letter-spacing: 1.4px; }
  .care-stage { top: 22%; left: 7%; right: 7%; height: 61%; }
  .care-phase { display: flex; flex-direction: column; align-items: stretch; justify-content: center; gap: 18px; }
  .care-words h3 { font-size: clamp(32px, 9vw, 43px); margin-bottom: 13px; }
  .care-words h3 br { display: none; }
  .care-words > p:last-child { font-size: 15px; line-height: 1.8; margin-bottom: 0; }
  .care-words > p:last-child br { display: none; }
  .care-words::before { inset: -30px; }
  .phase-label { font-size: 11px; margin-bottom: 13px; }
  .care-example { padding: 20px; border-radius: 9px; }
  .example-top { font-size: 12px; padding-bottom: 12px; }
  .note-quote { font-size: 20px; line-height: 1.7; margin: 20px 0; }
  .example-caption { font-size: 11px; }
  .care-message { font-size: 15px; padding: 12px 0; }
  .alarm-request { font-size: 13px; padding: 8px 11px; margin-bottom: 12px; }
  .alarm-preview { padding: 12px 0; gap: 16px; }
  .alarm-time { font-size: 35px; }
  .care-bottom { left: 7%; right: 7%; bottom: 23px; display: block; }
  .day-timeline { width: 100%; font-size: 12px; }
  .care-scroll-hint { text-align: left; font-size: 11px; margin: 14px 0 5px; }
  .care-settings { font-size: 11px; margin-top: 0; max-width: 270px; }
  .care-settings + p { margin: 0; }
  body[data-reduced="true"] .care-phase { margin: 55px 0; }
}
@media (max-height: 720px) and (min-width: 601px) {
  .care-sticky { min-height: 590px; padding-top: 24px; }
  .care-stage { top: 26%; height: 54%; }
  .care-words h3 { font-size: 46px; margin-bottom: 18px; }
  .phase-label { margin-bottom: 15px; }
  .care-words > p:last-child { font-size: 15px; }
  .care-example { padding: 22px; }
  .care-bottom { bottom: 16px; }
}
@media (max-width: 360px) {
  .care-words h3 { font-size: 28px; letter-spacing: -.055em; }
  .care-example { padding: 16px; }
  .care-words > p:last-child { font-size: 14px; }
  .care-bottom { bottom: 38px; }
  .care-settings { max-width: 225px; font-size: 10px; }
  .care-heading h2 { font-size: 13px; }
}
