/* A steady introduction beside an automatically changing photo story. */
.home-introduction {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.65fr);
  align-items: center;
  gap: clamp(20px, 2vw, 32px);
  max-width: none;
  margin: 0 auto;
  padding: 16px clamp(20px, 2vw, 40px);
}
.index-page .home-introduction .hero { min-height: 0; padding: 0; }
.home-introduction .hero > .container { max-width: none; padding: 0; }
.home-introduction .hero .row { margin: 0; }
.home-introduction .hero .col-12 { padding: 0; margin: 0; }
.home-introduction .hero .hero-content h1 {
  font-size: clamp(34px, 3.15vw, 46px);
  line-height: 1.16;
  margin-bottom: 26px;
}
.home-introduction .hero .hero-content h1 .highlight { display: block; }
.home-introduction .hero .hero-content h1 .highlight::after { display: none; }
.home-introduction .hero .hero-content p {
  font-size: 16px;
  line-height: 1.75;
  color: #c4d3db;
  margin-bottom: 18px;
}
.home-introduction .hero .hero-actions { margin-top: 28px; }
.home-introduction .hero .hero-actions .btn { padding: 12px 22px; font-size: 14px; }
.home-introduction .hero .social-links { margin-top: 26px; }
.home-showcase {
  --showcase-height: max(620px, calc(100svh - 128px));
  --caption-height: 72px;
  position: relative;
  min-width: 0;
  padding: 0;
  isolation: isolate;
  overflow: hidden;
  background: #101a20;
  color: #fff;
}
.home-showcase .home-carousel { width: 100%; }
.home-showcase .showcase-slide {
  position: relative;
  height: auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #101a20;
}
/* Keep image effects inside the photo; captions occupy their own row. */
.home-showcase .showcase-media {
  position: relative;
  flex: none;
  height: calc(var(--showcase-height) - var(--caption-height));
  min-height: 0;
  width: 100%;
  overflow: hidden;
}
.home-showcase .showcase-backdrop {
  position: absolute;
  inset: -24px;
  width: calc(100% + 48px);
  height: calc(100% + 48px);
  object-fit: cover;
  filter: blur(18px);
  opacity: .3;
}
.home-showcase .showcase-photo-frame {
  position: absolute;
  inset: 0 0 auto;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.home-showcase .showcase-photo {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  object-position: var(--photo-focus, center);
  mask-image: linear-gradient(90deg, transparent, rgba(0,0,0,.45) 20%, #000 52%, #000 94%, transparent);
}
.home-showcase .showcase-photo-frame--fill { height: 100%; }
.home-showcase .showcase-photo-frame--fill .showcase-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--photo-focus, center);
}
.home-showcase .showcase-photo-frame--close {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, rgba(0,0,0,.45) 20%, #000 52%);
}
.home-showcase .showcase-photo-frame--close .showcase-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--photo-focus, center);
  transform: scale(var(--photo-zoom, 1));
  transform-origin: var(--photo-focus, center);
  mask-image: none;
}
.home-showcase .showcase-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg, #101a20 0%, rgba(16,26,32,.95) 8%, rgba(16,26,32,.65) 22%, rgba(16,26,32,.24) 42%, transparent 70%),
    linear-gradient(180deg, rgba(16,26,32,.7), transparent 16%),
    linear-gradient(0deg, rgba(16,26,32,.25), transparent 25%);
}
.home-showcase .showcase-content {
  position: relative;
  flex: none;
  min-height: var(--caption-height);
  display: flex;
  align-content: flex-start;
  align-items: baseline;
  flex-wrap: wrap;
  column-gap: 12px;
  row-gap: 4px;
  width: 100%;
  max-width: none;
  padding: 12px 0 0;
  border-top: 1px solid rgba(211,224,230,.15);
  background: #101a20;
}
.home-showcase h2 {
  max-width: none;
  margin: 0;
  color: #fff;
  font-size: 28px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.home-showcase .showcase-description { max-width: 100%; font-size: 18px; line-height: 1.45; color: #d3e0e6; margin: 0; }
.home-showcase picture { display: contents; }
.hero-bio-toggle { display: none; }
@media (min-width: 992px) and (max-width: 1199px) {
  .home-showcase { --caption-height: 96px; }
}
@media (max-width: 1199px) {
  .home-introduction { grid-template-columns: 1fr; gap: 32px; padding: 32px 24px; }
  .home-introduction .hero .hero-content h1 { font-size: 38px; }
  .home-introduction .hero .hero-content { text-align: left; }
  .home-introduction .hero .hero-actions, .home-introduction .hero .social-links { justify-content: flex-start; }
  .home-showcase { --showcase-height: 640px; }
  .home-showcase h2 { font-size: 26px; }

  .home-introduction .hero { min-width: 0; width: 100%; }
  .home-introduction .hero .hero-content > .home-showcase { margin-bottom: 24px; }
  /* Keep hero text styles from changing the nested gallery captions. */
  .home-introduction .hero .hero-content .showcase-content h2 {
    margin: 0;
    font-size: 26px;
    font-weight: 500;
    line-height: 1.3;
  }
  .home-introduction .hero .hero-content .showcase-description {
    margin: 0;
    font-size: 16px;
    line-height: 1.45;
    color: #d3e0e6;
  }
  .home-introduction .hero .hero-content .hero-bio-toggle:not([hidden]) {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 8px 0;
    border: 0;
    background: transparent;
    color: var(--accent-color);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
  }
  .hero-bio-toggle:focus-visible { outline: 2px solid var(--accent-color); outline-offset: 4px; }

  .home-introduction .hero .hero-content h1 { overflow-wrap: anywhere; }
  .home-introduction .hero .hero-actions { flex-wrap: wrap; margin-bottom: 24px; }
  .home-introduction .hero .hero-actions .btn { min-height: 48px; }
  .home-introduction .hero .social-links { flex-wrap: wrap; margin-top: 0; }
  .home-showcase .showcase-media {
    height: auto;
    aspect-ratio: 4 / 3;
    max-height: 70svh;
  }
  .home-showcase .showcase-media--letterboxed {
    mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent),
      linear-gradient(180deg, transparent, #000 4%, #000 92%, transparent);
    mask-composite: intersect;
  }
  .home-showcase .showcase-photo-frame--close { mask-image: none; }
  /* Keep narrow photos at their natural width; crop wider photos to fill
     the frame height without top or bottom bars. */
  .home-showcase .showcase-photo-frame .showcase-photo {
    width: auto;
    height: 100%;
    max-width: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(var(--mobile-photo-zoom, 1));
    transform-origin: center;
    mask-image: none;
  }
  .home-showcase .showcase-media--letterboxed .showcase-photo-frame .showcase-photo {
    mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent),
      linear-gradient(180deg, transparent, #000 4%, #000 96%, transparent);
    mask-composite: intersect;
  }
  .home-showcase .showcase-shade { background: none; }
  .home-showcase .showcase-content { min-height: 100px; flex-direction: column; gap: 6px; padding: 16px 0; }
  .home-showcase .showcase-description { font-size: 16px; }
  .home-carousel:focus-visible { outline: 2px solid var(--accent-color); outline-offset: -3px; }


}
@media (max-width: 575px) {
  .home-introduction { padding: 28px 20px; }
  .home-introduction .hero .hero-content h1 { font-size: clamp(30px, 8vw, 34px); margin-bottom: 20px; }
  .home-introduction .hero .hero-content p { font-size: 16px; line-height: 1.7; }
  .home-showcase { --showcase-height: 600px; --caption-height: 96px; }
  .home-showcase .showcase-content { padding: 12px 0; }
  .home-showcase h2, .home-introduction .hero .hero-content .showcase-content h2 { font-size: 24px; }
  .home-showcase .showcase-description { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .home-showcase *, .home-showcase *::after { transition-duration: 0s !important; }
}
