/* Notion update on codex/sedare-notion-update. Base design and data stay in place. */

.has-site-illustrations {
  position: relative;
  isolation: isolate;
}
.site-illustrations {
  position: absolute;
  z-index: -1;
  inset: 0;
  overflow: clip;
  pointer-events: none;
  user-select: none;
}
.site-illustrations__image {
  position: absolute;
  inset-block-start: 62%;
  inset-inline-start: 1%;
  width: clamp(144px, 25vw, 360px);
  max-width: 46%;
  height: auto;
  max-height: 88%;
  object-fit: contain;
  translate: 0 -50%;
  opacity: .18;
}
.site-illustrations__image--right {
  inset-block-start: 38%;
  inset-inline: auto 1%;
  opacity: .15;
}
/* Let centered content use the page margins for its background illustrations. */
:is(.cast-directory, .activity-page-content, .gallery-content, .faq-directory, .contact-section) > .site-illustrations {
  inset-inline: min(0px, calc((100% - 100vw) / 2));
}
:is(.about-section, .activity-page-content, .faq-directory, .contact-section) .site-illustrations__image {
  width: clamp(144px, 21vw, 320px);
  inset-inline-start: -2%;
}
:is(.about-section, .activity-page-content, .faq-directory, .contact-section) .site-illustrations__image--right {
  inset-inline: auto -2%;
}
:is(.cast-directory, .gallery-content) .site-illustrations__image {
  width: clamp(144px, 19vw, 280px);
}
:is(.cast-directory, .gallery-content) .site-illustrations__image:first-child {
  inset-block-start: clamp(84px, 9vw, 138px);
  inset-inline-start: clamp(-64px, -4vw, -24px);
}
.gallery-content .site-illustrations__image:first-child {
  inset-block-start: min(clamp(216px, 17.5vw, 350px), 70%);
}
:is(.cast-directory, .gallery-content) .site-illustrations__image--right {
  inset-block: auto clamp(6px, 1.4vw, 22px);
  translate: none;
}
.album-preview .site-illustrations__image--right {
  inset-block: auto clamp(88px, 12vw, 168px);
  translate: none;
}
@media (prefers-reduced-motion: no-preference) {
  .site-illustrations__image {
    transform: translateY(calc(var(--illustration-progress, 0) * var(--illustration-travel)));
  }
}
@media (max-width: 640px) {
  .site-illustrations__image { width: 48vw; opacity: .12; }
}
@media (max-width: 700px) {
  .album-preview .site-illustrations__image { inset-block: auto 28px; translate: none; }
  .album-preview .site-illustrations__image--right { inset-block: 0 auto; }
}

/* Keep the layout in place while the first video frames lead the HOME screen. */
html.home-video-intro-pending :is(.nav-header--home, .home-page .hero-card,
  .home-page .hero-scroll-cue, .home-page .hero-video-link),
html.home-video-intro-playing .home-page .hero-scroll-cue.is-hidden {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
html.home-video-intro-playing :is(.nav-header--home, .home-page .hero-card,
  .home-page .hero-scroll-cue:not(.is-hidden), .home-page .hero-video-link) {
  /* ai-design-check-ignore-next-line interface-speed -- Passive HOME entrance after video starts; interaction cancels the wait. */
  animation: homeVideoUiReveal 1.2s ease 2s both;
  pointer-events: none !important;
}
html:is(.home-video-intro-pending, .home-video-intro-playing) .home-hero::before,
html:is(.home-video-intro-pending, .home-video-intro-playing) .home-hero::after {
  visibility: hidden;
}
@keyframes homeVideoUiReveal {
  from { opacity: 0; visibility: hidden; }
  to { opacity: 1; visibility: visible; }
}

/* Give the foreground its natural height, including in a half-width window. */
.home-page .home-hero {
  min-height: calc(100svh + 4px);
  min-height: calc(100dvh + 4px);
  padding: calc(var(--header-height) + 32px) clamp(24px, 4vw, 64px) 112px;
  align-items: center;
}
.home-page .hero-card {
  width: min(640px, 100%);
  min-width: 0;
  padding: 0;
  border: 0;
}
.home-page .hero-card .logo-img {
  width: min(100%, 560px);
  max-height: clamp(160px, 34svh, 320px);
  max-height: clamp(160px, 34dvh, 320px);
  object-fit: contain;
  animation: none;
}
.home-page .hero-card h1 { margin: 24px 0; font-size: clamp(24px, 2.2vw, 36px); line-height: 1.55; }
.home-page .hero-copy { font-size: 16px; font-weight: 600; }
.home-page .home-quick-links { margin-top: 24px; }
.home-page .hero-scroll-cue { bottom: 24px; animation: none; }
.home-page .hero-scroll-cue__text,
.home-page .hero-scroll-cue__sub { font-size: 12px; }

.home-page .home-news {
  --home-news-accent: #21678c;
  padding: clamp(48px, 6vw, 92px) clamp(16px, 3.6vw, 72px);
  background: var(--white);
  color: #233e50;
}
.home-news__layout {
  display: grid;
  grid-template-columns: clamp(10rem, 17vw, 16.25rem) minmax(0, 1fr);
  align-items: start;
  gap: clamp(24px, 4vw, 64px);
  max-width: 1400px;
  margin-inline: auto;
}
.home-news__heading { display: grid; gap: 8px; margin: 0; }
.home-news__wordmark {
  color: var(--home-news-accent);
  font: 400 clamp(3rem, 5.7vw, 5rem)/1 Georgia, "Times New Roman", serif;
  letter-spacing: .025em;
}
.home-news__label { font-size: 1rem; font-weight: 600; letter-spacing: .12em; }
.home-news__list { margin: 0; padding: 0; list-style: none; border-top: 1px solid #bdd3df; }
.home-news__item { border-bottom: 1px solid #bdd3df; }
.home-news__row {
  display: grid;
  grid-template-columns: 7rem minmax(0, 1fr);
  align-items: center;
  gap: clamp(16px, 2.2vw, 32px);
  min-height: 84px;
  padding: 20px 12px;
}
.home-news__row:focus-visible {
  outline: 2px solid var(--home-news-accent);
  outline-offset: -2px;
  background: #f4f9fc;
}
.home-news__date { color: var(--home-news-accent); font-size: clamp(1rem, 1.25vw, 1.125rem); font-weight: 600; font-variant-numeric: tabular-nums; }
.home-news__title { font-size: clamp(1.125rem, 1.55vw, 1.375rem); font-weight: 500; line-height: 1.55; overflow-wrap: anywhere; }
.home-news__title-text,
.activity-card__title-text {
  --news-underline-color: var(--home-news-accent, var(--page-accent));
  padding-block-end: .16em;
  background-image: linear-gradient(var(--news-underline-color), var(--news-underline-color));
  background-repeat: no-repeat;
  background-position: right bottom;
  background-size: 0 1px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  transition: background-size .35s ease;
}
.home-news__row:focus-visible .home-news__title-text,
.activity-card__open:focus-visible .activity-card__title-text {
  background-position: left bottom;
  background-size: 100% 1px;
}
.home-news__footer { display: flex; justify-content: flex-end; margin-top: 20px; }
.home-news__archive {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding-inline: 8px;
  color: var(--home-news-accent);
  font-weight: 600;
  text-underline-offset: .25em;
}
.home-news__archive:focus-visible { text-decoration: underline; }
@media (hover: hover) {
  .home-news__row:hover .home-news__title-text,
  .activity-card:hover .activity-card__title-text {
    background-position: left bottom;
    background-size: 100% 1px;
  }
  .home-news__archive:hover { text-decoration: underline; }
}

/* Photos and copy sit on the page rather than inside a large white box. */
.section :is(.text-panel, .guide-jump-panel, .guide-content-panel,
  .pre-visit-check, .gallery-content, .activity-page-content, .faq-panel) {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
/* Album photos frame the introduction while its text stays centered. */
.home-page .home-about {
  --home-about-rail: clamp(28px, 4vw, 76px);
  --home-about-inset: clamp(24px, 4vw, 72px);
  --home-about-spacing: clamp(48px, 6vw, 96px);
  --home-about-edge-travel: clamp(12px, 2vw, 36px);
  --home-about-inner-travel: clamp(28px, 6vw, 112px);
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding-block: var(--home-about-spacing);
  padding-inline: var(--home-about-inset) calc(var(--home-about-inset) + var(--home-about-rail));
  background: var(--white);
}
.home-about::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 var(--home-about-rail) 0 0;
  background: linear-gradient(180deg, #ddeef7 0%, #edf6fa 62%, var(--white) 100%);
  transform-origin: left center;
  pointer-events: none;
}
.home-about__label {
  position: absolute;
  top: var(--home-about-spacing);
  right: var(--home-about-rail);
  margin: 0;
  translate: 50% 0;
  writing-mode: vertical-rl;
  white-space: nowrap;
  color: #216f9c;
  font: 400 clamp(24px, 3.4vw, 64px)/1 Georgia, "Times New Roman", serif;
  letter-spacing: .025em;
}
.home-about__title {
  margin: 0 0 clamp(24px, 3.5vw, 52px);
  color: #233e50;
  font-family: var(--page-heading-font);
  font-size: clamp(1.375rem, 3.3vw, 2.875rem);
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
}
.home-about__title span {
  display: block;
  margin-top: .45em;
  color: #216f9c;
  font: 400 clamp(1rem, 1.6vw, 1.375rem)/1.3 Georgia, "Times New Roman", serif;
  letter-spacing: .08em;
}
.home-about__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, min(47vw, 42rem)) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 64px) clamp(20px, 3.4vw, 56px);
  max-width: 1600px;
  margin-inline: auto;
}
.home-about__copy {
  grid-area: 1 / 2;
  align-self: center;
  display: grid;
  gap: 1.3em;
  padding-block: 24px;
  color: #233e50;
  font-size: clamp(1rem, 1.26vw, 1.2rem);
  font-weight: 500;
  line-height: 2.15;
  letter-spacing: .025em;
  text-align: center;
  text-wrap: pretty;
  --home-about-delay: .66s;
}
.home-about__copy p { margin: 0; }
.home-about__photos { display: contents; }
.home-about__photo {
  align-self: start;
  width: min(100%, 352px);
  aspect-ratio: 16 / 9;
  margin: 0;
  overflow: hidden;
  border-radius: 6px;
  background: #f1f6f9;
  --home-about-delay: .56s;
}
.home-about__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.home-about__photo--group { aspect-ratio: auto; }
.home-about__photo--group img { height: auto; }
.home-about__photo:nth-child(1) {
  grid-area: 1 / 1;
  justify-self: end;
  --home-about-travel: calc(-1 * var(--home-about-edge-travel));
}
.home-about__photo:nth-child(2) {
  grid-area: 1 / 3;
  align-self: end;
  --home-about-travel: var(--home-about-edge-travel);
}
.home-about__photo:nth-child(3) {
  grid-area: 2 / 1 / auto / 3;
  width: min(25vw, 360px);
  margin-block-start: clamp(28px, 4.4vw, 80px);
  margin-inline-start: clamp(48px, 9vw, 160px);
  --home-about-travel: calc(-1 * var(--home-about-inner-travel));
}
.home-about__photo:nth-child(4) {
  grid-area: 2 / 2 / auto / 4;
  justify-self: end;
  width: min(28vw, 424px);
  margin-inline-end: clamp(48px, 8vw, 144px);
  --home-about-travel: var(--home-about-inner-travel);
}

@media (prefers-reduced-motion: no-preference) {
  .home-about__photo { translate: calc(var(--home-about-photo-progress, 0) * var(--home-about-travel)) 0; }
  .home-about.is-reveal-ready:not(.is-visible)::before { transform: scaleX(0); }
  .home-about.is-reveal-ready.is-visible::before {
    /* ai-design-check-ignore-next-line interface-speed -- Passive section entrance. */
    transition: transform .82s cubic-bezier(.57, .08, .22, 1);
  }
  .home-about.is-reveal-ready:not(.is-visible) :is(.home-about__label, .home-about__title, .home-about__photo, .home-about__copy) {
    opacity: 0;
    transform: translateY(14px);
  }
  .home-about.is-reveal-ready.is-visible :is(.home-about__label, .home-about__title, .home-about__photo, .home-about__copy) {
    /* ai-design-check-ignore-next-line interface-speed -- Passive section entrance. */
    transition: opacity .56s ease, transform .64s cubic-bezier(.22, 1, .36, 1);
    transition-delay: var(--home-about-delay, .52s);
  }
}

@media (max-width: 860px) {
  .home-page .home-about {
    --home-about-rail: clamp(16px, 4.5vw, 36px);
    --home-about-inset: clamp(20px, 5vw, 40px);
    --home-about-spacing: clamp(32px, 6vw, 52px);
    --home-about-edge-travel: 8px;
    --home-about-inner-travel: clamp(8px, 3vw, 20px);
  }
  .home-about__layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(16px, 4vw, 28px);
    width: min(100%, 560px);
  }
  .home-about__copy { grid-area: 2 / 1 / auto / -1; padding-block: 12px; line-height: 1.95; }
  .home-about__photo:nth-child(1) { grid-area: 1 / 1; }
  .home-about__photo:nth-child(2) { grid-area: 1 / 2; margin-block-start: 20px; }
  .home-about__photo:nth-child(3), .home-about__photo:nth-child(4) {
    width: 100%;
    margin-inline: 0;
  }
  .home-about__photo:nth-child(3) { grid-area: 3 / 1; margin-block-start: 28px; }
  .home-about__photo:nth-child(4) { grid-area: 3 / 2; }
}

.home-page :is(.home-links, .home-partners) {
  --home-section-accent: #21678c;
  --home-section-line: #cfdee7;
  padding: clamp(48px, 6.7vw, 96px) clamp(20px, 5.5vw, 88px);
  color: #233e50;
}
.home-links { background: var(--white); }
.home-links__inner,
.home-partners__inner { width: min(100%, 1240px); margin-inline: auto; }
.home-links__inner {
  display: grid;
  grid-template-columns: clamp(12rem, 22vw, 18rem) minmax(0, 1fr);
  align-items: start;
  gap: clamp(28px, 5vw, 72px);
}
.home-section-heading { color: var(--home-section-accent); }
.home-section-heading h2 {
  margin: 0;
  font: 400 clamp(2.75rem, 6vw, 5.5rem)/1 Georgia, "Times New Roman", serif;
  letter-spacing: .045em;
}
.home-section-heading p { margin: 12px 0 0; font-size: .95rem; font-weight: 600; letter-spacing: .12em; }
.home-links__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.home-links__featured { grid-column: 1 / -1; }
.home-links__link {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 16px;
  height: 100%;
  min-height: 76px;
  padding: 12px 20px;
  border: 1px solid var(--home-section-line);
  border-radius: 6px;
  background: rgba(255, 255, 255, .76);
  font-weight: 600;
  line-height: 1.45;
  text-underline-offset: .25em;
}
.home-links__featured .home-links__link {
  grid-template-columns: 96px minmax(0, 1fr) 20px;
  min-height: 100px;
  border-color: #b2cddb;
  background: #ecf5f9;
  color: #184e6a;
  font-size: clamp(1.125rem, 1.8vw, 1.375rem);
}
.home-links__logo { width: 100%; height: 44px; object-fit: contain; }
.home-links__featured .home-links__logo { mix-blend-mode: multiply; }
.home-links__label { overflow-wrap: anywhere; }
.home-links__arrow { justify-self: end; color: var(--home-section-accent); font-size: 1.125rem; }

.home-partners {
  border-block-start: 1px solid #dbe8ef;
  background: linear-gradient(180deg, #eaf4f8, #f8fbfd);
}
.home-partners .home-section-heading { margin-bottom: clamp(28px, 4vw, 56px); text-align: center; }
.partner-logo-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.partner-logo-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 156px;
  padding: 20px 16px;
  border: 1px solid var(--home-section-line);
  border-radius: 6px;
  background: rgba(255, 255, 255, .76);
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.partner-logo-card::after {
  content: "";
  position: absolute;
  inset: 16px 16px auto auto;
  width: 6px;
  height: 6px;
  border-right: 1px solid var(--home-section-accent);
  border-bottom: 1px solid var(--home-section-accent);
  rotate: -45deg;
}
.partner-logo-area {
  display: block;
  width: 90%;
  aspect-ratio: 1;
  min-height: 0;
  max-height: 128px;
}
.partner-logo-area img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.partner-identity { display: grid; gap: 4px; }
.partner-name { font-weight: 650; line-height: 1.4; text-wrap: balance; }
.partner-identity .partner-kana { margin: 0; font-weight: 500; }
.partner-logo-card.reveal { transition-delay: var(--reveal-delay, 0ms); }
.partner-logo-card.reveal:focus-visible { opacity: 1; transform: none; filter: none; transition: none; }
.home-links__link:focus-visible, .partner-logo-card:focus-visible {
  outline: 2px solid var(--home-section-accent);
  outline-offset: 2px;
}
@media (hover: hover) {
  .home-links__list .home-links__link:hover, .partner-logo-card:hover {
    border-color: #8ab1c5;
    background: #f1f7fa;
  }
  .home-links__link:hover .home-links__label { text-decoration: underline; }
}
@media (max-width: 900px) {
  .home-links__inner { grid-template-columns: minmax(0, 1fr); }
  .partner-logo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 641px) and (max-width: 900px) {
  .partner-logo-grid > :last-child:nth-child(3n+1) { grid-column: 2; }
}
@media (max-width: 640px) {
  .partner-logo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .partner-logo-card { min-height: 140px; padding: 16px 10px; }
}
@media (max-width: 520px) {
  .home-links__list { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .home-links__link { min-height: 68px; padding-inline: 16px; }
  .home-links__featured .home-links__link { grid-template-columns: 80px minmax(0, 1fr) 20px; min-height: 84px; }
}
.guide-page {
  --guide-accent: #21678c;
  --guide-line: #bfd4df;
  --guide-gutter: clamp(20px, 5.5vw, 88px);
  --guide-serif: Georgia, "Times New Roman", serif;
  color: #233e50;
  background: var(--white);
}
.guide-frame { width: min(100%, 1120px); margin-inline: auto; }
.guide-page .guide-block {
  padding: clamp(40px, 5.5vw, 80px) var(--guide-gutter);
  border-block-start: 1px solid var(--guide-line);
}
.guide-rules__photo img {
  width: 100%;
  height: auto;
  border-radius: 6px;
}

.guide-body > .site-illustrations {
  z-index: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-auto-rows: minmax(0, 1fr);
  align-items: center;
}
.guide-body.has-site-illustrations .guide-frame {
  position: relative;
  z-index: 1;
}
.guide-body .site-illustrations__image {
  position: static;
  width: clamp(150px, 18vw, 280px);
  justify-self: start;
  margin-inline-start: clamp(-28px, -1.8vw, -12px);
  translate: none;
}
.guide-body .site-illustrations__image--right {
  justify-self: end;
  margin-inline: 0 clamp(-28px, -1.8vw, -12px);
}
.guide-block--steps { background: linear-gradient(180deg, #f3f9fc, var(--white) 30rem); }
.guide-heading {
  margin: 0 0 clamp(28px, 4vw, 56px);
  padding-block-end: 12px;
  border-block-end: 1px solid var(--guide-line);
  color: var(--guide-accent);
  font: 400 clamp(2rem, 3.6vw, 3.25rem)/1.1 var(--guide-serif);
  letter-spacing: .075em;
}
.guide-rules {
  display: grid;
  grid-template-columns: clamp(180px, 17.5vw, 248px) minmax(0, 1fr);
  grid-template-areas: "lead lead" "photo rules";
  align-items: start;
  gap: clamp(24px, 3vw, 42px) clamp(28px, 4.5vw, 64px);
}
.guide-rules__lead {
  grid-area: lead;
  width: min(100%, 42rem);
  justify-self: center;
  margin: 0;
  color: var(--guide-accent);
  font-size: clamp(1rem, 1.3vw, 1.125rem);
  font-weight: 600;
  text-align: center;
}
@media (min-width: 75rem) {
  .guide-rules__lead {
    width: min(90rem, calc(100vw - 3rem));
    font-size: clamp(.9375rem, 1.23vw, 1.125rem);
  }
}
.guide-rules__photo { grid-area: photo; margin: 0; }
.guide-rules__body {
  grid-area: rules;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px clamp(18px, 3vw, 36px);
}
.guide-rules__body > section {
  padding-block-start: 14px;
  border-block-start: 1px solid var(--guide-line);
}
.guide-rules__body p { margin: 0; }
.guide-rules__body h3 { margin: 0 0 8px; color: var(--guide-accent); font-size: 1rem; line-height: 1.6; }
.guide-rules__body ul { display: grid; gap: 6px; margin: 0; padding-inline-start: 1.3em; }
.guide-rules__body li::marker { color: var(--guide-accent); }
.guide-rules__body [lang="en"] { color: #496577; font-size: .925em; }
.guide-rules__note { grid-column: 1 / -1; padding-block-start: 20px; border-block-start: 1px solid var(--guide-line); }

.guide-timeline { margin: 0; padding: 0; list-style: none; }
.guide-timeline__step { border-block-end: 1px solid var(--guide-line); }
.guide-timeline__row {
  display: grid;
  grid-template-columns: minmax(0, 32%) minmax(0, 1fr);
  align-items: center;
  gap: clamp(16px, 3.5vw, 50px);
  padding: clamp(20px, 3vw, 38px) clamp(10px, 1.65vw, 22px);
}
a.guide-timeline__row {
  --guide-step-highlight: #dfedf4;
  transition: background-color .2s ease;
}
a.guide-timeline__row:focus-visible {
  background-color: var(--guide-step-highlight);
  outline: 2px solid var(--guide-accent);
  outline-offset: -2px;
}
.guide-timeline__media {
  grid-area: 1 / 1;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: 4px;
}
.guide-timeline__media img { width: 100%; height: 100%; object-fit: contain; }
.guide-timeline__body {
  grid-area: 1 / 2;
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 8px clamp(16px, 2vw, 32px);
}
.guide-timeline__body :is(h3, p) { grid-column: 2; margin: 0; }
.guide-timeline__number {
  grid-area: 1 / 1 / span 2;
  color: var(--guide-accent);
  font: 400 clamp(1rem, 1.48vw, 1.25rem)/1.55 var(--guide-serif);
  letter-spacing: .08em;
  white-space: nowrap;
}
.guide-timeline__body h3 { font: 700 clamp(1.0625rem, 1.7vw, 1.4375rem)/1.55 var(--page-heading-font); }
.guide-timeline__link-text {
  padding-block-end: .16em;
  background: linear-gradient(currentColor, currentColor) right bottom / 0 1px no-repeat;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  transition: background-size .45s ease, color .22s ease;
}
a.guide-timeline__row:focus-visible .guide-timeline__link-text {
  color: var(--guide-accent);
  background-position: left bottom;
  background-size: 100% 1px;
}
@media (hover: hover) {
  a.guide-timeline__row:hover { background-color: var(--guide-step-highlight); }
  a.guide-timeline__row:hover .guide-timeline__link-text {
    color: var(--guide-accent);
    background-position: left bottom;
    background-size: 100% 1px;
  }
}
@media (max-width: 960px) {
  .guide-rules__body { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .guide-rules { grid-template-columns: minmax(0, 1fr); grid-template-areas: "lead" "rules" "photo"; }
  .guide-rules__photo { width: min(100%, 240px); margin-inline: auto; }
}
@media (max-width: 720px) {
  .guide-body .site-illustrations__image { width: min(40vw, 180px); }
  .guide-block--steps .guide-heading { margin-block-end: clamp(84px, 25vw, 108px); }
  .guide-timeline__row { grid-template-columns: minmax(0, 1fr); }
  .guide-timeline__row { padding-inline: 12px; }
  .guide-timeline__body, .guide-timeline__media { grid-area: auto; }
  .guide-timeline__body { display: block; }
  .guide-timeline__body h3 { margin-block: 4px 8px; }
  .guide-timeline__media { aspect-ratio: auto; }
  .guide-timeline__media img { height: auto; }
}
@media (min-width: 360px) and (max-width: 520px) {
  .guide-body .site-illustrations__image { translate: 0 120px; }
}
@media screen and (prefers-reduced-motion: no-preference) {
  body:has(> main > :is(.page-intro, .page-hero)) {
    --page-entry-heading-end: 1.4s;
    --page-entry-easing: cubic-bezier(.32, .12, .27, 1);
  }
  .page-intro__wordmark {
    width: fit-content;
    margin-inline: auto;
    animation: pageEntryWordmark 1s var(--page-entry-easing) .28s backwards;
  }
  .page-intro__label {
    --page-entry-label-delay: .53s;
    animation: pageEntryLabel calc(var(--page-entry-heading-end) - var(--page-entry-label-delay))
      var(--page-entry-easing) var(--page-entry-label-delay) backwards;
  }
  .page-hero .page-kicker { animation: pageEntryLabel 1s var(--page-entry-easing) .18s backwards; }
  .page-hero h1 { animation: pageEntryLabel 1s var(--page-entry-easing) .38s backwards; }
  .page-hero :is(.inner, .section-inner) > p:not(.page-kicker, .small-note) {
    --page-entry-lead-delay: .55s;
    animation: pageEntryLabel calc(var(--page-entry-heading-end) - var(--page-entry-lead-delay))
      var(--page-entry-easing) var(--page-entry-lead-delay) backwards;
  }
  :is(main > :is(.page-intro, .page-hero) ~ :is(section, div),
    main:has(> :is(.page-intro, .page-hero)) ~ .footer) {
    animation: pageEntryContent .7s var(--page-entry-easing) var(--page-entry-heading-end) backwards;
  }
  /* Links to a section and keyboard navigation can show the content right away. */
  body:has(:target, :focus-visible) :is(main > :is(.page-intro, .page-hero) ~ :is(section, div),
    main:has(> :is(.page-intro, .page-hero)) ~ .footer) {
    opacity: 1 !important;
    visibility: visible !important;
  }
}

@keyframes pageEntryWordmark {
  from { opacity: 0; transform: scale(1.14); }
}
@keyframes pageEntryLabel {
  from { opacity: 0; transform: translateY(16px); }
}
@keyframes pageEntryContent {
  from { opacity: 0; visibility: hidden; }
  to { opacity: 1; visibility: visible; }
}

/* One reveal observer manages these wrappers alongside the existing reveals. */
.home-reveal { min-width: 0; }
:is(.home-page, .guide-page, .about-page) .home-reveal.is-reveal-ready {
  opacity: 0;
  transform: translateY(24px);
  /* ai-design-check-ignore-next-line interface-speed -- Passive scroll entrance; focus and clicks remain immediate. */
  transition: opacity .56s ease, transform .56s cubic-bezier(.22, 1, .36, 1);
  transition-delay: var(--home-reveal-delay, 0ms);
}
:is(.home-page, .guide-page, .about-page) .home-reveal.is-visible { opacity: 1; transform: none; }
:is(.home-page, .guide-page, .about-page) .home-reveal:focus-within { opacity: 1; transform: none; transition: none; }
@media (prefers-reduced-motion: no-preference) {
  .album-preview-grid > .home-reveal.is-reveal-ready:not(.is-visible, :focus-within) {
    transform: translateY(14px) scale(.965);
    filter: blur(2px);
  }
  .album-preview-grid > .home-reveal.is-reveal-ready:not(:focus-within) {
    /* ai-design-check-ignore-next-line interface-speed -- Passive photo reveal triggered by the viewport. */
    transition: opacity .48s ease, transform .56s cubic-bezier(.22, 1, .36, 1), filter .64s ease-out;
    transition-delay: var(--home-reveal-delay, 0ms);
  }
}

@media (max-width: 1100px) {
  .home-page .home-hero { padding-inline: 24px; }
}
@media (max-width: 1100px), (max-aspect-ratio: 4 / 3) {
  .home-page .home-hero { justify-content: center; }
}
@media (max-width: 768px) {
  .home-page .hero-card { width: min(560px, 100%); }
  .home-news__layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  /* Clip horizontally without creating a scroll container for the sticky header. */
  body.sedare-guide-page { overflow-x: clip; }
  .home-page .home-hero { padding-block: calc(var(--header-height) + 24px) 112px; }
  .home-page .hero-card .logo-img { width: min(100%, 400px); }
  .home-page .hero-card h1 { margin-block: 24px; }
  .home-page .home-quick-link { width: min(100%, 200px); min-width: 0; justify-self: center; }
  .home-news__row { grid-template-columns: minmax(0, 1fr); gap: 4px; padding-block: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .home-news__title-text,
  .activity-card__title-text,
  a.guide-timeline__row,
  .guide-timeline__link-text { transition: none; }
  :is(.home-page, .guide-page, .about-page) .home-reveal.is-reveal-ready { opacity: 1; transform: none; transition: none; }
}
