/* YouTube section: single component stylesheet for desktop and mobile. */
.youtube {
  padding: clamp(82px, 8.5vw, 124px) 0 clamp(92px, 8.9vw, 132px);
  background: linear-gradient(180deg, #fbfaf8 0%, #f5f4ef 12%, #f5f4ef 100%);
  color: #29312c;
  font-family: Arial, Helvetica, sans-serif;
  scroll-margin-top: 82px;
}
.youtube__container { width: min(90%, 1240px); margin-inline: auto; }
.youtube__header { margin: 0 0 clamp(32px, 4vw, 54px); }
.youtube__label { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 clamp(26px, 3.5vw, 43px); color: #505950; font-size: 12px; font-weight: 600; line-height: 1.5; letter-spacing: .16em; text-transform: uppercase; }
.youtube__label-dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.youtube__intro-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); align-items: end; column-gap: clamp(38px, 7vw, 110px); }
.youtube__title { max-width: 780px; margin: 0; font: 400 clamp(40px, 4.05vw, 58px)/1.16 Georgia, 'Times New Roman', serif; letter-spacing: -.037em; text-wrap: balance; }
.youtube__title em { color: #819181; font-weight: 400; font-style: italic; }
.youtube__intro { max-width: 510px; margin: 0 0 4px; color: #687168; font-size: 16px; line-height: 1.8; }

.youtube__stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 0 0 clamp(38px, 4.8vw, 66px); padding: 25px 0 27px; border-top: 1px solid #d4d8d0; border-bottom: 1px solid #d4d8d0; list-style: none; }
.youtube__stat { min-width: 0; display: flex; flex-direction: column; gap: 9px; padding: 0 clamp(12px, 2.25vw, 33px); border-left: 1px solid #d4d8d0; }
.youtube__stat:first-child { padding-left: 0; border-left: 0; }
.youtube__number { display: block; color: #323b34; font: 400 clamp(34px, 3.25vw, 49px)/1 Georgia, 'Times New Roman', serif; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.youtube__number span { color: #819181; font-size: .72em; }
.youtube__stat-label { max-width: 165px; color: #687168; font-size: 13px; line-height: 1.45; }

.youtube__feature { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(280px, .8fr); align-items: stretch; gap: clamp(22px, 3.3vw, 46px); }
.youtube__player-shell { min-width: 0; }
.youtube__player { width: 100%; position: relative; aspect-ratio: 16/9; overflow: hidden; border-radius: 22px; background: #142019; isolation: isolate; }
.youtube__poster { position: absolute; inset: 0; }
.youtube__cover { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.youtube__poster::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,14,10,.06) 20%,rgba(8,14,10,.42)); pointer-events: none; }
.youtube__play { position: absolute; z-index: 1; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; width: 100%; border: 0; padding: 24px; background: transparent; color: #fff; cursor: pointer; font: 600 15px/1.4 Arial, Helvetica, sans-serif; }
.youtube__play-circle { display: grid; place-items: center; width: 80px; height: 80px; border-radius: 50%; background: #f6f3ed; color: #263329; box-shadow: 0 12px 45px rgba(0,0,0,.24); transition: transform .25s ease, background-color .25s ease; }
.youtube__play-circle svg { width: 30px; height: 30px; transform: translateX(2px); }
.youtube__play-caption { display: block; padding: 4px 9px; text-shadow: 0 2px 12px rgba(0,0,0,.45); }
@media (hover: hover) and (pointer: fine) { .youtube__play:hover .youtube__play-circle { transform: scale(1.075); background: #fff; } }
.youtube__play:focus-visible { outline: 3px solid #fff; outline-offset: -7px; }
.youtube__player iframe { display: block; position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.youtube__video-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; margin-top: 13px; padding-inline: 2px; color: #777f76; font-size: 12px; line-height: 1.5; }

.youtube__details { min-width: 0; display: flex; flex-direction: column; padding: clamp(3px, 1vw, 14px) 0 4px; }
.youtube__eyebrow { color: #687168; font-size: 11px; font-weight: 600; line-height: 1.55; letter-spacing: .14em; text-transform: uppercase; }
.youtube__video-title { max-width: 440px; margin: 24px 0 15px; color: #29312c; font: 400 clamp(29px, 2.75vw, 40px)/1.22 Georgia, 'Times New Roman', serif; letter-spacing: -.034em; text-wrap: balance; }
.youtube__video-description { max-width: 310px; margin: 0; color: #687168; font-size: 15px; line-height: 1.7; }
.youtube__details-footer { margin-top: auto; padding-top: 30px; }
.youtube__helper { max-width: 380px; margin: 0 0 23px; color: #777f76; font-size: 13px; line-height: 1.65; }
.youtube__external { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 51px; padding: 12px 23px; border: 1px solid #414943; border-radius: 999px; background: #414943; color: #fbfaf5; font-size: 14px; font-weight: 600; line-height: 1.4; text-align: center; text-decoration: none; transition: background-color .25s ease, transform .25s ease; }
.youtube__external:hover { transform: translateY(-2px); background: #515e50; }
.youtube__external:focus-visible { outline: 2px solid #647760; outline-offset: 4px; }
.youtube__external svg { flex: none; }
.youtube__closing { max-width: 720px; margin: clamp(36px, 4.4vw, 58px) 0 0; color: #687168; font-size: 15px; line-height: 1.75; }

/* Motion never hides content unless an observer is supported and active. */
.youtube.youtube--motion [data-youtube-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .76s ease, transform .76s cubic-bezier(.2,.8,.25,1); }
.youtube.youtube--motion [data-youtube-reveal].is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1000px) {
  .youtube__container { width: min(calc(100% - 48px), 780px); }
  .youtube__intro-grid { column-gap: 32px; }
  .youtube__title { font-size: clamp(36px, 4.8vw, 47px); }
  .youtube__feature { grid-template-columns: minmax(0, 1.25fr) minmax(230px, .75fr); gap: 25px; }
  .youtube__video-title { margin-top: 16px; font-size: clamp(27px, 3.3vw, 35px); }
  .youtube__helper { font-size: 12px; }
}
@media (max-width: 740px) {
  .youtube { padding: 82px 0 88px; }
  .youtube__container { width: min(calc(100% - 36px), 540px); }
  .youtube__header { margin-bottom: 27px; }
  .youtube__label { margin-bottom: 23px; }
  .youtube__intro-grid { grid-template-columns: 1fr; gap: 17px; }
  .youtube__title { font-size: clamp(34px, 8.4vw, 43px); line-height: 1.17; }
  .youtube__intro { max-width: 520px; font-size: 15px; line-height: 1.75; }
  .youtube__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 24px; margin-bottom: 30px; padding: 23px 0 24px; }
  .youtube__stat { padding: 0 0 0 20px; }
  .youtube__stat:nth-child(odd) { padding-left: 0; border-left: 0; }
  .youtube__number { font-size: clamp(34px, 8vw, 45px); }
  .youtube__feature { grid-template-columns: 1fr; gap: 28px; }
  .youtube__player { border-radius: 17px; }
  .youtube__play-circle { width: 64px; height: 64px; }
  .youtube__play-circle svg { width: 26px; height: 26px; }
  .youtube__play { gap: 8px; font-size: 13px; }
  .youtube__video-bottom { font-size: 11px; }
  .youtube__details { padding: 0; }
  .youtube__video-title { max-width: 520px; margin: 13px 0 10px; font-size: clamp(29px, 7vw, 37px); }
  .youtube__video-description { max-width: 500px; font-size: 14px; }
  .youtube__details-footer { padding-top: 19px; }
  .youtube__helper { max-width: 500px; margin-bottom: 18px; font-size: 12px; }
  .youtube__external { min-height: 50px; }
  .youtube__closing { margin-top: 36px; font-size: 14px; }
}
@media (max-width: 360px) {
  .youtube__container { width: min(calc(100% - 28px), 540px); }
  .youtube__stat { padding-left: 14px; }
  .youtube__stat-label { font-size: 12px; }
  .youtube__player { border-radius: 13px; }
  .youtube__play-circle { width: 56px; height: 56px; }
  .youtube__play-caption { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .youtube.youtube--motion [data-youtube-reveal] { opacity: 1; transform: none; transition: none; }
  .youtube__play-circle, .youtube__external { transition: none; }
}
