
:root {
  color-scheme: light;
  --ink: #302b28;
  --muted: #655c55;
  --orange: #ab3b13;
  --orange-deep: #882e14;
  --rust: #76301c;
  --peach: #fff5ed;
  --line: #ead9cd;
  --radius: 20px;
  --shadow: 0 16px 38px #71301514;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 75px; }
body { margin: 0; background: white; color: var(--ink); font: 400 1rem/1.66 "Be Vietnam Pro", Arial, sans-serif; }
h1, h2, h3, summary { font-family: Montserrat, "Be Vietnam Pro", Arial, sans-serif; line-height: 1.19; }
h1, h2, h3, p, figure { margin: 0; }
h1 { font-size: clamp(3rem, 7.3vw, 6.25rem); letter-spacing: -.075em; line-height: 1.06; font-weight: 800; }
h2 { max-width: 24ch; font-size: clamp(1.85rem, 3.6vw, 3.35rem); font-weight: 800; letter-spacing: -.049em; text-wrap: balance; }
h3 { font-size: clamp(1.05rem, 1.65vw, 1.32rem); font-weight: 750; }
h2 em { color: var(--orange); font-style: normal; }
p + p { margin-top: .8rem; }
img { display: block; width: 100%; height: auto; }
figure { min-width: 0; }
a { color: inherit; text-underline-offset: .2em; }
a:focus-visible, summary:focus-visible, button:focus-visible { outline: 3px solid #e87a33; outline-offset: 4px; }
svg { display: block; width: 24px; height: 24px; }
.wrap { width: min(1160px, calc(100% - 3rem)); margin-inline: auto; }
.section { padding-block: clamp(3.75rem, 8vw, 7.2rem); }
.warm { background: var(--peach); }
.split { display: grid; grid-template-columns: minmax(0, .84fr) minmax(0, 1.16fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.eyebrow { display: flex; align-items: baseline; gap: .6rem; margin: 0 0 .85rem; color: var(--orange); font-size: .86rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.eyebrow::before { display: inline-block; flex: none; content: ""; width: 1.5rem; height: 2px; background: currentColor; transform: translateY(-.22em); }
.lead { max-width: 65ch; margin-top: 1.15rem; color: var(--muted); }
.skip { position: fixed; left: 1rem; top: 1rem; z-index: 10; padding: .6rem 1rem; color: white; background: var(--orange-deep); transform: translateY(-170%); }
.skip:focus { transform: none; }

.hero {
  position: relative;
  padding-block: clamp(2.8rem, 7vw, 6rem);
  color: #fff9f4;
  background: radial-gradient(ellipse at 93% 13%, #dc653b 0%, transparent 48%), linear-gradient(125deg,#732910,#9e3d1e 56%,#b8502b);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, #ffe8d90f 1px, transparent 1px),
    linear-gradient(to bottom, #ffe8d90f 1px, transparent 1px);
  background-size: var(--hero-grid-cell, 48px) var(--hero-grid-cell, 48px);
  background-position: center top;
  mask-image: linear-gradient(to bottom, transparent, #000 var(--hero-grid-fade, 7rem), #000 55%, transparent 98%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0,1.08fr) minmax(0,.92fr); align-items: center; gap: clamp(2.1rem, 6vw, 5.8rem); }
.hero .eyebrow, .contact .eyebrow { color: #ffd5b7; }
.hero h1, .hero h1 span { color: #fff; }
.hero .alias { margin-top: .65rem; color: #fff1e5; font-size: 1.03rem; letter-spacing: .075em; }
.roles { display: flex; gap: .5rem 1.15rem; flex-wrap: wrap; margin: 1.4rem 0; line-height: 1.35; }
.roles strong { padding-left: .65rem; border-left: 2px solid #f8ae7d; font-size: .94rem; }
.hero h2 { margin: 1.4rem 0 .7rem; font-size: clamp(1.35rem, 2.5vw, 2.25rem); letter-spacing: -.033em; }
.hero h2 em, .contact h2 em { color: #ffd6b7; }
.hero-portrait { position: relative; justify-self: end; max-width: 440px; padding: .65rem; border: 1px solid #ffd4b6; border-radius: 32px 32px 32px 5px; background: linear-gradient(125deg, #a15133, #b36143); box-shadow: 0 18px 55px #51220e50; }
.hero-portrait img { border-radius: 23px 23px 23px 3px; }
.actions { display: flex; gap: .65rem; flex-wrap: wrap; margin-top: 1.4rem; }
.btn { display: inline-flex; justify-content: center; align-items: center; min-height: 46px; padding: .66rem 1.2rem; border: 1px solid transparent; border-radius: 999px; font-size: .91rem; font-weight: 700; line-height: 1.4; text-align: center; text-decoration: none; transition: background-color .18s, box-shadow .18s; }
.btn.primary { background: #b34115; color: white; }
.btn.primary:hover { background: #95320d; }
.hero .btn.primary, .contact .btn.primary { background: #ffd3b2; color: #541f0e; }
.hero .btn.primary:hover, .contact .btn.primary:hover { background: #ffe4d0; }
.btn.ghost { border-color: #ffc39e; color: #fffaf5; background: #521d141f; }
.btn.ghost:hover { background: #551f184d; }
.btn.secondary { background: white; border-color: #d5ac95; color: #81300f; }
.btn.secondary:hover { background: #fff7ef; }

.section-nav { background: #fff; border-block-end: 1px solid var(--line); position: sticky; top: 0; z-index: 3; box-shadow: 0 4px 18px #5f2b1010; }
.nav-links { display: flex; justify-content: safe center; align-items: center; gap: .2rem .6rem; overflow-x: auto; scrollbar-width: thin; padding-block: .45rem; }
.nav-links a { flex: none; padding: .68rem .7rem; border-radius: 9px; text-decoration: none; color: var(--ink); font-size: .9rem; font-weight: 650; }
.nav-links a:hover, .nav-links a:focus-visible { background: var(--peach); color: var(--orange); }
.nav-links a:focus-visible { outline-offset: -3px; }
.journey-portrait img, .contact-portrait img { border-radius: var(--radius); box-shadow: var(--shadow); }
.journey-portrait { align-self: center; max-width: 444px; }
.timeline { list-style: none; margin: 1.6rem 0 0; padding: 0 0 0 1.4rem; border-left: 1px solid #dfb29a; }
.timeline li { position: relative; }
.timeline li + li { margin-top: 1.15rem; }
.timeline li::before { content: ""; position: absolute; left: -1.68rem; top: .36rem; width: .52rem; height: .52rem; border-radius: 50%; background: var(--orange); }
.timeline h3 { color: var(--orange); }
.timeline p { margin-top: .32rem; color: var(--muted); }
.closing { margin-top: 1.4rem; }
.facts, .awards, .service-grid, .activities { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(.8rem,2vw,1.5rem); margin-top: 1.65rem; }
.facts > div, .award-card, .service, .activities > article {
  min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: 0 8px 22px #6633190a;
}
.facts > div { padding: clamp(1rem,2.4vw,1.65rem); }
.facts > div:nth-child(2) { background: #ffe3ce; border-color: #efbe9d; }
.facts strong { display: block; color: var(--orange-deep); font: 800 clamp(1.42rem,2.8vw,2.4rem)/1.1 Montserrat, sans-serif; letter-spacing: -.04em; }
.fact-label { margin-top: .65rem; font-weight: 700; line-height: 1.48; }
.fact-detail { color: var(--muted); }
.award-card { padding: clamp(1rem,2vw,1.4rem); }
.award-card-head { display: flex; gap: .65rem; align-items: center; color: var(--orange); margin-bottom: .5rem; }
.award-card-head h3 { font-size: 1.6rem; }
.award-card > p { margin-bottom: .9rem; }
.award-proof img { width: 100%; height: auto; aspect-ratio: 1.4; object-fit: contain; }
figcaption { margin-top: .4rem; color: var(--muted); font-size: .88rem; }

.method { grid-template-columns: minmax(0,1fr) minmax(0,.88fr); align-items: start; }
.accordion { display: grid; gap: .68rem; align-self: center; }
details { background: #fff; border: 1px solid var(--line); border-radius: 14px; }
details[open] { background: #fff7f1; }
summary { display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding: 1.05rem; color: var(--orange-deep); cursor: pointer; font-weight: 800; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; font: 600 1.45rem/1 Arial, sans-serif; }
details[open] summary::after { content: '−'; }
details > div { padding: 0 1.05rem 1.05rem; }
blockquote { margin: 1.35rem 0 0; padding: 1rem 1.15rem; border-left: 3px solid #d25b2b; background: var(--peach); border-radius: 0 14px 14px 0; color: #62311f; }
.keytext, .heading-accent { color: var(--orange); font-weight: 750; }
.learning-proof { margin-top: 2rem; padding: clamp(1.05rem,3vw,2rem); border-radius: var(--radius); background: #fdf8f4; display: grid; align-items: center; grid-template-columns: minmax(0,1.3fr) minmax(0,.75fr); gap: 1.5rem; }
.learning-proof ul { margin-bottom: 0; padding-left: 1.2rem; }
.learning-proof li + li { margin-top: .5rem; }
.learning-proof figure img { max-height: 245px; object-fit: contain; }
.service-grid { margin-bottom: 1.25rem; }
.service, .activities article { overflow: hidden; }
.service .photo, .activities article .photo { border-radius: 0; }
.card-copy { padding: 1.2rem; }
.card-copy h3, .activities h3 { margin-bottom: .65rem; }
.card-copy p, .activities article > p { color: var(--muted); }
.card-copy .keytext { color: var(--orange); }
.activities article > h3 { margin: 1rem 1rem .45rem; }
.activities article > p { margin: 0 1rem 1.15rem; }
.photo { display: block; overflow: hidden; border-radius: 13px; background: #f8eee6; }
.photo img { transition: transform .24s; }
.service .photo img, .activities article .photo img { aspect-ratio: 3/2; object-fit: contain; }
.gallery { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: .75rem; margin-top: 1rem; }
.gallery .photo img { aspect-ratio: 3/2; object-fit: contain; }
.gallery .photo:first-child, .gallery .photo:last-child { grid-column: span 2; }
.care-notes { margin-top: 2rem; max-width: 68ch; }
.care-notes h3 { margin-bottom: .6rem; }
.care-notes .care-gallery-note { color: var(--muted); }
.care-photos { width: 100%; margin-top: 1.2rem; }
.care-grid { display: grid; gap: .75rem; grid-template-columns: repeat(4,minmax(0,1fr)); }
.care-grid + .care-grid { margin-top: .75rem; }
.care-grid-wide { grid-template-columns: repeat(3,minmax(0,1fr)); }
.care-photo img { object-fit: contain; }
.contact { color: white; background: linear-gradient(125deg,#743019,#a84222 70%,#922f17); }
.contact-grid { grid-template-columns: minmax(0,1.4fr) minmax(0,.6fr); align-items: center; }
.contact .lead { color: #fff3ea; }
.contact-portrait { justify-self: center; max-width: 310px; border: 1px solid #f8bd9a; border-radius: var(--radius); padding: .4rem; }
.contact-topics { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1.25rem; }
.contact-topics span { padding: .33rem .68rem; color: #fff6ef; border: 1px solid #edb497; border-radius: 999px; font-size: .83rem; }
.contact-phone { margin-top: 1rem; }
.mobile-contact { display: none; }
dialog { width: max-content; max-width: calc(100vw - 24px); max-height: calc(100dvh - 24px); background: #231b17; padding: 0; border: 0; border-radius: 14px; }
dialog::backdrop { background: #1f1714e5; }
dialog img { width: auto; max-width: 100%; max-height: calc(100dvh - 24px); object-fit: contain; }
.close { position: absolute; z-index: 1; right: .55rem; top: .55rem; width: 44px; height: 44px; color: #492a1e; background: #fff; border: 0; border-radius: 50%; cursor: pointer; font: 1.4rem/1 Arial, sans-serif; box-shadow: 0 2px 12px #27181065; }
@media (hover:hover) { .gallery .photo:hover img { transform: scale(1.045); } }

@media (max-width:950px) {
  .hero-grid { gap: 2rem; }
  h1 { font-size: clamp(3rem,7vw,5.15rem); }
  .split { gap: 2.1rem; }
  .facts { gap: .75rem; }
}
@media (max-width:680px) {
  body { padding-bottom: calc(61px + env(safe-area-inset-bottom)); }
  .wrap { width: calc(100% - 2rem); }
  .hero-grid,.split,.learning-proof { grid-template-columns: minmax(0,1fr); }
  .hero-grid { gap: 1.6rem; }
  .hero-portrait,.journey-portrait { width: min(100%, 375px); justify-self: center; }
  .journey-portrait { grid-row: 2; }
  .hero .roles { max-width: 27rem; }
  .hero h1 { font-size: clamp(2.8rem, 9.7vw, 4.45rem); }
  .section-nav .wrap { width: 100%; padding-inline: 1rem; }
  .facts,.awards,.service-grid,.activities { grid-template-columns: minmax(0,1fr); }
  .care-grid,.gallery { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .contact-portrait { max-width: 240px; }
  .mobile-contact { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem; position: fixed; z-index: 4; inset: auto 0 0; background: white; border-top: 1px solid var(--line); padding: .43rem 1rem calc(.43rem + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .gallery .photo:hover img { transform: none; }
}

/* Added activity images and the skincare poster. */
.method-poster { max-width: 17rem; margin-top: 1rem; }
.method-poster img { aspect-ratio: 1; object-fit: contain; }
@media (min-width:681px) {
  .gallery { grid-template-columns: repeat(5,minmax(0,1fr)); grid-auto-rows: clamp(8rem, 14vw, 12rem); }
  .gallery .photo img { height: 100%; }
}
/* Crop the printed date band in event imagery, including in the viewer. */
.date-crop { display: block; width: 100%; aspect-ratio: var(--clean-ratio); overflow: hidden; }
.photo .date-crop img, .gallery .photo .date-crop img, dialog .date-crop img {
  width: 100%;
  height: auto;
  max-height: none;
  aspect-ratio: auto;
  transform-origin: center top;
}
.service .date-crop, .activities .date-crop { margin-inline: auto; }
.gallery .photo:has(.date-crop) { display: grid; place-items: center; container-type: size; }
.gallery .date-crop { width: min(100%, calc(100cqh * var(--clean-ratio))); }
@media (max-width:680px) {
  .gallery .photo:has(.date-crop) { aspect-ratio: 3/2; }
  .gallery .photo:is(:first-child,:last-child):has(.date-crop) { aspect-ratio: 16/10; }
}
.zoom-stage { display: block; }
dialog .date-crop {
  width: min(calc(100vw - 24px), calc((100dvh - 24px) * var(--clean-ratio)), var(--photo-width));
}
.date-crop img { position: relative; top: var(--top-shift, 0%); }

/* Nationwide training and network illustration. */
.training-network { background: white; }
.network-layout { display: grid; grid-template-columns: minmax(0,.82fr) minmax(0,1.18fr); gap: clamp(1.4rem,3.8vw,4rem); align-items: center; }
.network-intro h2 { max-width: 25ch; }
.network-reach { display: inline-flex; align-items: center; gap: 1rem; margin-top: 1.55rem; padding: .7rem 1.15rem .75rem; border: 1px solid #efc7af; border-radius: 16px; background: #fff3e8; color: var(--orange-deep); }
.network-reach strong { font: 800 clamp(2.95rem,6vw,4.85rem)/1 Montserrat, sans-serif; letter-spacing: -.07em; }
.network-reach > span { color: var(--ink); font-weight: 700; line-height: 1.38; }
.network-map { padding: .65rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff9f4; }
.network-map img { border-radius: 13px; }
.network-map figcaption { margin: .55rem .35rem .25rem; line-height: 1.45; }
.network-program-heading { margin: clamp(1.7rem,3vw,2.75rem) 0 .85rem; }
.training-counts { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: .8rem; }
.training-count { display: flex; flex-direction: column; gap: .5rem; padding: clamp(.95rem,2vw,1.3rem); border: 1px solid var(--line); border-top: 3px solid #bb4d23; border-radius: 14px; background: #fff9f5; }
.training-count h4 { margin: .25rem 0 0; font-size: 1rem; color: var(--ink); line-height: 1.45; }
.training-count > p:last-child { margin: auto 0 0; padding-top: .25rem; font-size: .9rem; color: var(--muted); }
.training-number { color: var(--orange-deep); font-weight: 700; }
.training-number strong { margin-right: .1rem; font: 800 clamp(2rem,3.7vw,3.2rem)/1 Montserrat, sans-serif; letter-spacing: -.055em; }
.training-network + .section { border-top: 1px solid var(--line); }
@media (max-width:900px) { .training-counts { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width:680px) { .network-layout { grid-template-columns: minmax(0,1fr); } }
/* Give the vertical network map its own narrow column. */
.network-layout { grid-template-columns: minmax(0,1.7fr) minmax(0,1fr); }
.network-intro { container-type: inline-size; }
.network-intro h2 { max-width: none; font-size: clamp(1.35rem,3.85cqw,2.05rem); text-wrap: initial; }
.network-intro h2 span, .network-intro h2 em { display: block; }
.network-intro h2 em { margin-top: .22em; }
.network-map { width: min(100%, 365px); justify-self: center; }
@media (max-width:680px) {
  .network-layout { grid-template-columns: minmax(0,1fr); }
  .network-map { width: min(100%, 305px); }
}
#journey-title .journey-transition { font-family: "Be Vietnam Pro", Arial, sans-serif; font-weight: 400; font-style: italic; }
#journey-title .journey-accent { color: var(--orange); }
/* Keep the overview scannable and show each explanation on demand. */
.facts > div { display: flex; flex-direction: column; align-items: flex-start; }
.fact-more, .fact-more[open] { width: 100%; margin-top: auto; padding-top: .85rem; border: 0; background: transparent; }
.fact-more summary {
  width: fit-content; max-width: 100%; min-height: 34px; gap: .45rem;
  padding: .2rem .12rem .2rem 0; border: 0; border-radius: 0; background: transparent;
  color: var(--orange-deep); font: italic 500 .8rem/1.35 "Be Vietnam Pro", Arial, sans-serif;
}
.fact-more summary:hover { text-decoration: underline; text-underline-offset: .14em; }
.fact-more summary::after {
  content: ""; flex: none; width: .38rem; height: .38rem;
  border-right: 1px solid currentColor; border-bottom: 1px solid currentColor;
  transform: translateY(-.1em) rotate(45deg);
}
.fact-more[open] summary::after { content: ""; transform: translateY(.09em) rotate(225deg); }
.fact-more .fact-hide, .fact-more[open] .fact-show { display: none; }
.fact-more[open] .fact-hide { display: inline; }
.fact-more .fact-detail { margin: .85rem 0 0; }
.method-visuals {
  display: grid;
  grid-template-columns: minmax(0,1.45fr) minmax(0,1fr);
  align-items: start;
  gap: .85rem;
  margin-top: .9rem;
}
.method-visuals .method-poster { margin: 0; }
.method-visuals-single { display: block; max-width: 24rem; }
.photo .date-crop img, dialog .date-crop img {
  width: var(--source-width, 100%);
  max-width: none;
  left: var(--left-shift, 0%);
}
@media (max-width:420px) {
  .method-visuals { grid-template-columns: minmax(0,1fr); }
}
.method > div:first-child { container-type: inline-size; }
#method-title { max-width: none; font-size: clamp(1.48rem,4.45cqw,2.1rem); text-wrap: initial; }
.method-title-line { display: block; }
.method-transition { font-family: "Be Vietnam Pro", Arial, sans-serif; font-weight: 400; font-style: italic; }
.activities .activity-more { width: auto; margin: -.65rem 1rem .9rem; padding-top: 0; }
.activities .activity-more[open] { margin-bottom: 1.15rem; }
.activity-continuation { display: none; }
.activities article:has(.activity-more[open]) .activity-continuation { display: inline; }
.activities article:has(.activity-more[open]) .activity-ellipsis { display: none; }
/* Keep the final totals available as text and reserve space for count-up. */
.stat-static { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.stat-count { display: inline-block; min-width: 2ch; font-variant-numeric: tabular-nums; }
.stat-count[data-count="500"] { min-width: 3ch; }

@media (prefers-reduced-motion: no-preference) {
  [data-appear].has-appeared { animation: photo-arrive .55s ease-out; }
}
@keyframes photo-arrive {
  from { opacity: .62; translate: 0 12px; }
  to { opacity: 1; translate: 0 0; }
}
/* Compact ULANNII mark above the profile. */
.hero-brand {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 48px;
  margin-bottom: 1.25rem;
  padding: .38rem 0;
}
.hero-brand img { width: clamp(4.5rem,8vw,5.65rem); height: auto; }
@supports (mask-image: url("assets/logo-ulannii-2025-mobile.png")) {
  .hero-brand picture {
    display: block;
    background: #fff4e5;
    mask: url("assets/logo-ulannii-2025-mobile.png") center / contain no-repeat;
  }
  .hero-brand img { opacity: 0; }
}
/* A portrait-first opening on phones. The desktop composition remains two columns. */
@media (max-width:680px) {
  .hero {
    --hero-grid-cell: 34px;
    --hero-grid-fade: 4.75rem;
    padding-top: clamp(1.05rem,4.8vw,1.55rem);
  }
  .hero-grid { gap: 1.1rem; }
  .hero-copy { display: contents; }
  .hero-brand {
    grid-row: 1;
    justify-self: center;
    min-height: 0;
    margin: 0 0 -.25rem;
    padding: .25rem 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }
  .hero-brand img { width: 5rem; }
  .hero-portrait {
    grid-area: 2 / 1;
    justify-self: center;
    width: min(calc(100% - 1.15rem), 22rem);
    padding: .4rem;
    border-radius: 24px 24px 24px 6px;
    background: linear-gradient(125deg, #964729, #a65639);
  }
  .hero-portrait img { border-radius: 17px 17px 17px 4px; }
  .hero-details { grid-row: 3; padding-top: .15rem; min-width: 0; }
  .hero-details .eyebrow { margin-bottom: .6rem; }
}

/* Two compact credentials anchored to the lower edge of the portrait. */
.hero-caption {
  position: relative;
  display: grid;
  gap: .45rem;
  margin: -2.15rem .45rem .15rem;
}
.hero-note {
  display: grid;
  gap: .13rem;
  max-width: min(90%, 20rem);
  padding: .62rem .8rem;
  border: 1px solid #edbc9e;
  border-radius: 12px;
  line-height: 1.24;
  box-shadow: 0 4px 14px #471f1933;
}
.hero-note-kicker { font-size: .78rem; font-weight: 650; }
.hero-note strong {
  color: var(--note-emphasis);
  font: 800 clamp(1rem,2.2vw,1.25rem)/1.22 Montserrat, "Be Vietnam Pro", sans-serif;
}
.hero-note em { font-size: .78rem; font-weight: 400; }
.hero-note-treatment {
  --note-emphasis: #ffd3a6;
  --note-enter-x: -8px;
  justify-self: start;
  background: #7e2e15;
  color: #fff6ee;
}
.hero-note-training {
  --note-emphasis: #963a1c;
  --note-enter-x: 8px;
  justify-self: end;
  background: #fff7ef;
  color: #57291d;
}
@media (max-width:680px) {
  .hero-caption {
    /* Scale the overlap with the portrait to keep both notes below the face. */
    margin: -34% -1.1rem 0;
    gap: .45rem;
  }
  .hero-note-treatment { width: 86%; }
  .hero-note.hero-note-training { width: max-content; max-width: 72%; }
  .hero-note-training .training-title-continuation { display: block; }
  .hero-note { max-width: 93%; padding: .5rem .7rem; }
  .hero-note strong { font-size: clamp(.91rem, 4vw, 1.05rem); }
  .hero-note-kicker, .hero-note em { font-size: .75rem; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-note { animation: hero-note-arrive .52s cubic-bezier(.2,.7,.3,1) backwards; }
  .hero-note-training { animation-delay: .13s; }
}
@keyframes hero-note-arrive {
  from { opacity: .68; translate: var(--note-enter-x) 6px; }
  to { opacity: 1; translate: 0 0; }
}

/* Activity photo collage on the hero background. */
.hero {
  --collage-columns: 5;
  --collage-cell: 20vw;
  isolation: isolate;
  overflow: hidden;
}
.hero::before {
  opacity: .7;
  background-position: left top;
  background-size: var(--collage-cell) var(--collage-cell);
  mask-image: none;
}
.hero-scenes {
  position: absolute;
  z-index: 0;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(var(--collage-columns), minmax(0, 1fr));
  grid-auto-rows: var(--collage-cell);
  align-content: start;
  pointer-events: none;
}
.hero-scene {
  display: block;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  border-bottom: 1px solid #ffe4d34d;
  border-right: 1px solid #ffe4d34d;
  filter: grayscale(1) contrast(.85);
  opacity: .25;
  mix-blend-mode: luminosity;
}
.hero-scene-leadership {
  grid-area: 1 / 1;
  background-image: url("assets/hero-collage/nen-huong-dan-soi-da.jpg");
}
.hero-scene-guidance {
  grid-area: 1 / 3;
  background-image: url("assets/hero-collage/nen-dao-tao-nhom-thuc-te.jpg");
  background-position: left center;
  opacity: .27;
}
.hero-scene-stage {
  grid-area: 2 / 3;
  background-image: url("assets/hero-collage/nen-dung-lop.jpg");
  background-position: 29% center;
  opacity: .21;
}
.hero-scene-class {
  grid-area: 3 / 3;
  background-image: url("assets/hero-collage/nen-tap-the.jpg");
  opacity: .18;
}
.hero-scene-exchange {
  grid-area: 3 / 5;
  background-image: url("assets/hero-collage/nen-chia-se-doi-ngu.jpg");
  background-position: left center;
  opacity: .22;
}
.hero-grid { z-index: 1; }
@media (min-width: 681px) and (max-width: 1000px) {
  .hero-scene-stage { grid-area: 3 / 1; }
  .hero-scene-exchange { grid-area: 3 / 3; }
  .hero-scene-class { grid-area: 4 / 2; }
}
@media (max-width: 680px) {
  .hero {
    --collage-columns: 3;
    --collage-cell: calc(100vw / 3);
  }
  .hero-portrait { margin-top: clamp(1.25rem, 5vw, 2rem); }
  .hero-scenes {
    grid-template-rows: var(--collage-cell) minmax(0, 1fr) repeat(3, var(--collage-cell));
  }
  .hero-scene-guidance { grid-area: 1 / 3; }
  .hero-scene-stage {
    position: absolute;
    grid-area: auto;
    right: 0;
    bottom: calc(3 * var(--collage-cell));
    width: var(--collage-cell);
    height: var(--collage-cell);
    opacity: .18;
  }
  .hero-scene-exchange { grid-area: 5 / 3; opacity: .17; }
  .hero-scene-class { grid-area: 5 / 2; opacity: .14; }
}
.hero-scene-demo {
  grid-area: 1 / 2;
  background-image: url("assets/hero-collage/nen-gioi-thieu-mo-hinh-da.jpg");
  opacity: .22;
}
.hero-scene-practice {
  grid-area: 1 / 4;
  background-image: url("assets/hero-collage/nen-huong-dan-tai-ban.jpg");
  opacity: .18;
}
.hero-scene-team {
  grid-area: 1 / 5;
  background-image: url("assets/hero-collage/nen-chup-cung-doi-ngu.jpg");
  opacity: .21;
}
@media (max-width: 680px) {
  .hero-scene-demo { opacity: .14; }
  .hero-scene-team { grid-area: 3 / 1; opacity: .12; }
  .hero-scene-practice { grid-area: 4 / 3; opacity: .16; }
}
