body.nursing-human-notes{
  --proposal-paper: #fffaf6;
  --proposal-ink: #24415a;
  --proposal-rule: rgba(36, 65, 90, 0.22);
  background: var(--proposal-paper);
}

body.nursing-human-notes .sample-header a,
body.nursing-human-notes .sample-menu,
body.nursing-human-notes .sample-cta a{
  min-height: 44px;
}

body.nursing-human-notes .hero-sticky,
body.nursing-human-notes .about-feature-flow,
body.nursing-human-notes .feature-backdrop{
  background: var(--proposal-paper);
}

/* Hero video: a nurse at the bedside, looping under a soft white veil (.hero-media::after). On wide screens the
   copy and the brain sit in the bright window to her right; on phones the video sits under the copy and fades into
   the paper. The layer sits behind everything else in the hero (the hero is its own stacking context). */
body.nursing-human-notes .hero-sticky::before,
body.nursing-human-notes .hero-sticky::after{ content: none; }

body.nursing-human-notes .hero-media{
  position: absolute;
  z-index: -1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

body.nursing-human-notes .hero-media::after{
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 250, 246, 0.5), rgba(255, 250, 246, 0) 18%),
    linear-gradient(90deg, rgba(255, 250, 246, 0.14), rgba(255, 250, 246, 0.24) 36%, rgba(255, 250, 246, 0.64) 52%, rgba(255, 250, 246, 0.72));
}

body.nursing-human-notes .hero-video{
  position: absolute;
  display: block;
  max-width: none;
  object-fit: cover;
  filter: blur(0.6px);
}

/* The hero is one screen tall and scrolls away at once; the brain bursts on its own clock as the page moves
   (js/nursing-layout.js), so there is no pinned stretch of scrolling. */
body.nursing-human-notes .motion-track{ height: auto; }

/* The hero's one heading; it breaks only after the comma. */
body.nursing-human-notes .hero-copy .hero-copy__lead{
  margin: 0;
  color: var(--sample-ink);
  font-family: "Shippori Mincho", serif;
  font-size: clamp(2rem, 9vw, 2.6rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.35;
  word-break: keep-all;
}

/* Keep the floating shapes off the nurse. */
body.nursing-human-notes .ambient-shape:nth-child(4){
  right: 6%;
  bottom: 26%;
  left: auto;
}

@media (min-width: 768px) {
  /* The video (16:9) is drawn 140% of the screen height tall (on screens wider than that, the full width), centred
     vertically, its right edge flush with the screen's right edge. On squarer screens that would push the nurse
     (her hair starts at 31% of the video's width) off the left, so there it stops sliding once her hair is 6vw from
     the left edge. */
  body.nursing-human-notes .hero-sticky{
    --hero-video-w: max(248.9svh, 100vw);
    --hero-video-left: max(100vw - var(--hero-video-w), 6vw - var(--hero-video-w) * 0.31);
  }

  /* Its bottom edge fades into the paper, where the next section's paper starts. */
  body.nursing-human-notes .hero-media{
    -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - clamp(60px, 10vh, 110px)), transparent);
    mask-image: linear-gradient(180deg, #000 calc(100% - clamp(60px, 10vh, 110px)), transparent);
  }

  body.nursing-human-notes .hero-video{
    top: 50%;
    left: var(--hero-video-left);
    width: var(--hero-video-w);
    height: auto;
    aspect-ratio: 16 / 9;
    transform: translateY(-50%);
  }

  /* The copy and the brain fill the screen to the right of the nurse, whose right side ends at 46.5% of the
     video's width. */
  body.nursing-human-notes .hero-grid{
    --hero-nurse-edge: calc(var(--hero-video-left) + var(--hero-video-w) * 0.465);
    width: calc(100% - 48px);
  }

  body.nursing-human-notes .hero-copy{
    grid-row: 1;
    grid-column: 2;
    max-width: none;
  }

  body.nursing-human-notes .hero-copy__text{
    display: block;
    max-width: none;
  }

  body.nursing-human-notes .motion-visual{ grid-column: 2; }

  body.nursing-human-notes .ambient-shape:nth-child(1){
    top: 11%;
    left: 45%;
  }
}

/* Portrait tablets and screens: the copy sits in the bright area right of the nurse, the brain under it. The video
   is drawn 120% of the screen height tall here, so the nurse leaves room for the copy column. */
@media (min-width: 768px) and (max-aspect-ratio: 1249 / 1000) {
  body.nursing-human-notes .hero-sticky{ --hero-video-w: max(213.3svh, 100vw); }

  body.nursing-human-notes .hero-grid{
    grid-template-columns: minmax(calc(var(--hero-nurse-edge) - 8px), 1fr) minmax(0, 32rem);
    align-content: center;
    column-gap: clamp(16px, 3vw, 32px);
    row-gap: clamp(16px, 3.5vh, 44px);
    padding-bottom: clamp(60px, 9vh, 120px);
  }

  body.nursing-human-notes .hero-copy .hero-copy__lead{ font-size: clamp(2rem, 5vw, 3.6rem); }

  body.nursing-human-notes .hero-copy__text{
    margin-top: clamp(14px, 2vh, 22px);
    font-size: clamp(0.9rem, 1.7vw, 1.02rem);
    line-height: 1.9;
  }

  body.nursing-human-notes .motion-visual{
    grid-row: 2;
    width: clamp(160px, min(28vw, 30vh), 300px);
    margin: 0;
    justify-self: center;
  }
}

/* Landscape screens: the copy and the brain side by side. */
@media (min-width: 768px) and (min-aspect-ratio: 5 / 4) {
  /* The first column never ends before the nurse, and the copy takes up to 40rem of what is left so the
     paragraph runs in two lines where there is room. The extra bottom padding lifts the row above the middle. */
  body.nursing-human-notes .hero-grid{
    grid-template-columns: minmax(calc(var(--hero-nurse-edge) - 40px), 1fr) minmax(0, 40rem) auto;
    align-content: center;
    gap: clamp(20px, 2.5vw, 32px);
    padding-bottom: clamp(110px, 22vh, 240px);
  }

  body.nursing-human-notes .hero-copy{ align-self: center; }

  body.nursing-human-notes .hero-copy .hero-copy__lead{ font-size: clamp(2.4rem, 4.4vw, 5rem); }

  body.nursing-human-notes .hero-copy__text{ margin-top: clamp(16px, 2.6vh, 28px); }

  /* On very wide screens the brain stops short of the screen edge. */
  body.nursing-human-notes .motion-visual{
    grid-row: 1;
    grid-column: 3;
    width: clamp(220px, 22vw, 400px);
    margin-top: 0;
    margin-right: clamp(0px, (100vw - 1800px) / 2, 160px);
    align-self: center;
  }
}

/* Phones: the video sits under the copy and fades into the paper at both edges, so the hero blends into the next
   section as on wider screens; the brain sits on its upper edge. */
@media (max-width: 767px) {
  body.nursing-human-notes .hero-media{
    inset: auto 0 0;
    height: 60%;
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 calc(100% - clamp(56px, 10vh, 96px)), transparent);
    mask-image: linear-gradient(180deg, transparent, #000 30%, #000 calc(100% - clamp(56px, 10vh, 96px)), transparent);
  }

  body.nursing-human-notes .hero-media::after{
    background: linear-gradient(180deg, rgba(255, 250, 246, 0.2), rgba(255, 250, 246, 0.06));
  }

  body.nursing-human-notes .hero-video{
    inset: 0;
    width: 100%;
    height: 100%;
    object-position: 46% 30%;
  }

  body.nursing-human-notes .hero-grid{ align-content: start; }

  body.nursing-human-notes .hero-copy__text{
    display: block;
    margin-top: 14px;
    font-size: 0.88rem;
    line-height: 1.9;
  }

  body.nursing-human-notes .motion-visual{
    width: min(42vw, 180px);
    margin-top: clamp(8px, 3vh, 28px);
    justify-self: end;
  }

  body.nursing-human-notes .ambient-shape:nth-child(1){
    top: 47%;
    left: 6%;
  }
}

body.nursing-human-notes .about-feature-flow::before{ content: none; }

body.nursing-human-notes .about-principle,
body.nursing-human-notes .about-principle--policy{
  min-height: 0;
  margin-top: 0;
  padding: 38px 0 54px;
  overflow: visible;
  border: 0;
  border-top: 1px solid var(--proposal-rule);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.nursing-human-notes .about-director__visual{
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.nursing-human-notes .about-director__message-surface{
  background: transparent;
  box-shadow: none;
  filter: none;
}

/* Desktop: the director's message sits in the left half, the lead above the body, so no line runs into the
   portrait on the right. The portrait (a close cutout, 512:570) stands on the panel's bottom edge, 64% of its
   height, its transparent right margin tucked under the vertical title and its lower part fading out. The title
   starts lower than the shared placement. Landscape tablets wider than 1024px use this layout too. */
@media (min-width: 1025px) {
  body.nursing-human-notes .about-director__visual{
    --director-message-top: 38%;
    --director-title-top: clamp(24px, min(10%, 100% - var(--director-title-font-size) * 8.9 - 24px), 90px);
    --director-portrait-top: auto;
    --director-portrait-right: 10%;
    --director-portrait-bottom: 0;
    --director-portrait-left: auto;
    --director-portrait-width: auto;
    --director-portrait-height: 64%;
    --director-portrait-x: 0px;
    --director-portrait-y: 0px;
    --director-portrait-scale: 1;
    --director-portrait-object-position: center bottom;
  }

  body.nursing-human-notes .about-director__portrait{
    aspect-ratio: 512 / 570;
    -webkit-mask-image: linear-gradient(180deg, #000 66%, transparent 98%);
    mask-image: linear-gradient(180deg, #000 66%, transparent 98%);
  }

  body.nursing-human-notes .about-director__message{
    right: auto;
    width: min(50%, 620px);
    grid-template:
      "meta" auto
      "lead" auto
      "body" auto
      / minmax(0, 1fr);
    row-gap: 0;
  }

  body.nursing-human-notes .about-director__lead{
    max-width: none;
    margin-top: clamp(18px, 2vw, 26px);
  }

  body.nursing-human-notes .about-director__body{
    max-width: none;
    margin-top: clamp(20px, 2.2vw, 30px);
  }
}

/* Tablets and phones: the parts leave their absolute desktop positions and flow in a grid. The portrait (512:570) sits
   beside the vertical title; the message starts over the portrait's lower fifth, where the portrait has faded
   out, so the text stays clear. The panel is a size container: the portrait's width is 80% of the panel width
   less the title column (two vertical lines of 1.12em plus 6px) and the gap, which gives the overlap exactly.
   The title is sized to stay within the portrait's height, so the portrait alone sets where the message starts. */
@media (max-width: 1024px) {
  body.nursing-human-notes .about-director{ margin-top: clamp(96px, 14vw, 150px); }

  body.nursing-human-notes .about-director__visual{
    --director-title-color: var(--sample-ink);
    --director-title-font-family: "Shippori Mincho", serif;
    --director-title-font-weight: 700;
    --director-title-letter-spacing: 0.06em;
    --director-title-line-height: 1.12;
    --director-title-z: 3;
    --director-title-patient-color: var(--sample-ink);
    --director-title-care-color: var(--sample-ink);
    --director-title-first-color: var(--sample-ink);
    --director-title-nursing-color: var(--sample-ink);
    --director-sp-title-size: clamp(2rem, 6.4vw, 3.2rem);
    --director-sp-gap: clamp(8px, 2vw, 20px);
    --director-sp-portrait-w: calc(min(100cqw - var(--director-sp-title-size) * 2.24 - 6px - var(--director-sp-gap), 520px) * 0.8);
    --director-sp-overlap: calc(var(--director-sp-portrait-w) * 570 / 512 * 0.19);
    display: grid;
    min-height: 0;
    padding: 0;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "heading heading"
      "portrait title"
      "message message";
    column-gap: var(--director-sp-gap);
    translate: none;
    container-type: inline-size;
  }

  body.nursing-human-notes .about-director__visual > :is(.about-director__heading, .about-director__portrait, .about-director__title, .about-director__message){
    position: relative;
    inset: auto;
    translate: none;
  }

  body.nursing-human-notes .about-director__message-surface{ display: none; }

  body.nursing-human-notes .about-director__heading{ z-index: 2; grid-area: heading; }
  body.nursing-human-notes .about-director__heading > span{ font-size: clamp(3.1rem, 15vw, 6.4rem); }
  body.nursing-human-notes .about-director__heading .about-director__name{
    max-width: none;
    margin-top: 6px;
    flex-wrap: wrap;
    gap: 4px 10px;
  }

  /* The portrait fades out from 56% of its height, so the message over its lower part reads clearly. */
  body.nursing-human-notes .about-director__portrait{
    z-index: 1;
    grid-area: portrait;
    width: var(--director-sp-portrait-w);
    height: auto;
    margin-top: 22px;
    overflow: hidden;
    aspect-ratio: 512 / 570;
    justify-self: end;
    -webkit-mask-image: linear-gradient(180deg, #000 56%, rgba(0, 0, 0, 0.18) 80%, transparent 92%);
    mask-image: linear-gradient(180deg, #000 56%, rgba(0, 0, 0, 0.18) 80%, transparent 92%);
  }

  body.nursing-human-notes .about-director__portrait img{
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center bottom;
    transform: none;
  }

  body.nursing-human-notes .about-director__title{
    z-index: 3;
    display: flex;
    width: auto;
    max-width: none;
    margin: 30px 0 0;
    grid-area: title;
    flex-direction: row-reverse;
    gap: 6px;
    align-self: start;
    font-size: var(--director-sp-title-size);
    text-shadow: none;
  }

  body.nursing-human-notes .about-director__title > .about-director__title-part{
    display: block;
    writing-mode: vertical-rl;
    translate: none;
    letter-spacing: inherit;
  }

  body.nursing-human-notes .about-director__title > .about-director__title-part + .about-director__title-part{
    margin-top: 0;
    letter-spacing: inherit;
  }

  body.nursing-human-notes .about-director__title-token{
    color: inherit;
    font-size: inherit;
    translate: none;
  }

  body.nursing-human-notes .about-director__message{
    z-index: 2;
    display: grid;
    margin-top: calc(var(--director-sp-overlap) * -1);
    padding: 0;
    grid-area: message;
    grid-template:
      "meta" auto
      "lead" auto
      "body" auto
      / minmax(0, 1fr);
    row-gap: 0;
  }

  body.nursing-human-notes .about-director__lead{
    max-width: none;
    margin: 18px 0 0;
    line-height: 1.8;
  }

  body.nursing-human-notes .about-director__lead strong{
    margin-bottom: 6px;
    font-size: clamp(1.15rem, 3.2vw, 1.4rem);
  }

  body.nursing-human-notes .about-director__lead span{ font-size: clamp(0.9rem, 2.2vw, 1rem); }

  body.nursing-human-notes .about-director__body{
    max-width: none;
    margin: 20px 0 0;
    padding-left: 16px;
    justify-self: stretch;
    font-size: clamp(0.88rem, 2vw, 0.96rem);
    line-height: 1.85;
  }

  /* Japanese lines break between phrases, and a lone last character is avoided. */
  body.nursing-human-notes :is(.about-director__lead span, .about-director__body){
    word-break: auto-phrase;
    text-wrap: pretty;
  }

  body.nursing-human-notes .about-director__frame--primary{
    top: 90px;
    right: 4%;
    width: min(80%, 520px);
  }

  body.nursing-human-notes .about-director__frame--secondary{
    right: auto;
    bottom: 22%;
    left: -12%;
    width: min(66%, 380px);
  }
}

@media (max-width: 767px) {
  body.nursing-human-notes .about-director__visual{ --director-sp-title-size: clamp(1.25rem, 6.2vw, 2.4rem); }
  body.nursing-human-notes .about-director__heading > span{ font-size: clamp(3.1rem, 18vw, 4.6rem); }
  body.nursing-human-notes .about-director__title{ margin-top: 26px; }
}

body.nursing-human-notes .feature-section--stack .feature-card,
body.nursing-human-notes .feature-section--stack .feature-card:nth-child(even){
  border: 2px solid var(--proposal-rule);
  background: #fffdfb;
  box-shadow: none;
}

body.nursing-human-notes .feature-section--stack .feature-card__media::after{ content: none; }

body[data-sample-state="ready"] > .proposal-loading{ display: none; }

.proposal-loading{
  position: fixed;
  z-index: 200;
  inset: 0;
  display: grid;
  padding: 24px;
  place-content: center;
  text-align: center;
  color: var(--proposal-ink);
  background: var(--proposal-paper);
}

.proposal-loading a,
.proposal-loading button{
  display: inline-grid;
  min-height: 44px;
  margin: 8px;
  padding: 0 18px;
  place-items: center;
  border: 1px solid var(--proposal-ink);
  border-radius: 999px;
  color: var(--proposal-ink);
  background: #fff;
  font: inherit;
  text-decoration: none;
}

@media (max-width: 767px) {
  body.nursing-human-notes{ padding-bottom: 0; }
  
  
}
