/* Hero test 2026-11-16: full screen portrait, navy fade, load and scroll motion. Straight lines only. */

/* Header sits on the photo, turns solid navy after scrolling */
.site-header { position: fixed; inset: 0 0 auto 0; background: transparent; border-bottom: 1px solid color-mix(in srgb, var(--color-surface) 12%, transparent); transition: background-color 0.3s ease, border-color 0.3s ease; }
.site-header.is-solid { background: var(--color-hero); border-color: transparent; }
.site-header .brand img { height: 40px; }
.site-header #site-nav a { color: var(--color-on-dark); }
.site-header .nav-toggle { border-color: var(--color-on-dark); color: var(--color-on-dark); }
#site-nav.is-open { background: var(--color-hero); }

/* Hero */
.hero-x { padding: 0; position: relative; min-height: max(640px, 100svh); display: grid; align-items: end; overflow: hidden; color: var(--color-on-dark); background: var(--color-hero); isolation: isolate; }
.hero-x__media { position: absolute; inset: 0; z-index: -2; will-change: transform; }
.hero-x__media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 0%; }
.hero-x__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, color-mix(in srgb, var(--color-hero) 55%, transparent) 0%, color-mix(in srgb, var(--color-hero) 0%, transparent) 16%), linear-gradient(0deg, color-mix(in srgb, var(--color-hero) 98%, transparent) 0%, color-mix(in srgb, var(--color-hero) 92%, transparent) 42%, color-mix(in srgb, var(--color-hero) 35%, transparent) 66%, color-mix(in srgb, var(--color-hero) 0%, transparent) 82%); }
.hero-x__content { padding-block: 0 clamp(2.5rem, 2rem + 3vw, 5rem); will-change: transform, opacity; }
.hero-x__eyebrow { display: flex; align-items: center; gap: 0.75rem; font-size: var(--text-sm); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-accent); margin-bottom: var(--space-3); }
.hero-x__eyebrow .rule { display: block; width: 48px; height: 2px; background: var(--color-accent); }
.hero-x h1 { font-size: clamp(3rem, 1.6rem + 5vw, 6rem); font-stretch: 62%; line-height: 0.9; letter-spacing: -0.005em; color: var(--color-surface); max-width: none; margin-bottom: var(--space-4); }
.hero-x h1 .ln { display: block; overflow: hidden; padding-bottom: 0.06em; white-space: nowrap; }
.hero-x h1 .ln > span { display: inline-block; }
.hero-x h1 em { font-style: normal; color: var(--color-accent); }
.hero-x__line { font-size: var(--text-lg); color: var(--color-on-dark-muted); max-width: 40ch; margin-bottom: var(--space-4); }
.hero-x__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }
.btn--ghost { border-color: color-mix(in srgb, var(--color-surface) 70%, transparent); color: var(--color-surface); background: transparent; }
.btn--ghost:hover { background: color-mix(in srgb, var(--color-surface) 8%, transparent); }
.btn--ghost svg { width: 14px; height: 14px; }
.hero-x__stats { display: none; }
@media (max-width: 767px) {
  .hero-x { display: block; min-height: 0; }
  .hero-x__media { bottom: auto; height: min(140vw, 620px); }
  .hero-x__shade { bottom: auto; height: calc(min(140vw, 620px) + 2px); background: linear-gradient(180deg, color-mix(in srgb, var(--color-hero) 55%, transparent) 0%, color-mix(in srgb, var(--color-hero) 0%, transparent) 14%), linear-gradient(0deg, color-mix(in srgb, var(--color-hero) 100%, transparent) 0%, color-mix(in srgb, var(--color-hero) 85%, transparent) 22%, color-mix(in srgb, var(--color-hero) 0%, transparent) 55%); }
  .hero-x__content { padding-top: calc(min(140vw, 620px) * 0.66); padding-bottom: var(--space-5); }
}
.hero-x__cue { display: none; }

@media (min-width: 768px) {
  .hero-x { align-items: center; }
  .hero-x__media img { object-position: 68% 30%; }
  .hero-x__shade { background: linear-gradient(90deg, color-mix(in srgb, var(--color-hero) 97%, transparent) 0%, color-mix(in srgb, var(--color-hero) 90%, transparent) 34%, color-mix(in srgb, var(--color-hero) 25%, transparent) 62%, color-mix(in srgb, var(--color-hero) 0%, transparent) 78%), linear-gradient(0deg, color-mix(in srgb, var(--color-hero) 70%, transparent) 0%, color-mix(in srgb, var(--color-hero) 0%, transparent) 30%), linear-gradient(180deg, color-mix(in srgb, var(--color-hero) 50%, transparent) 0%, color-mix(in srgb, var(--color-hero) 0%, transparent) 14%); }
  .hero-x__content { padding-block: 104px 88px; }
  .hero-x__text { max-width: 640px; }
  .hero-x__stats { display: flex; gap: var(--space-5); margin: var(--space-5) 0 0; padding-top: var(--space-4); border-top: 1px solid color-mix(in srgb, var(--color-surface) 18%, transparent); max-width: 560px; }
  .hero-x__stats dt { font-weight: 900; font-stretch: 62%; font-size: var(--text-3xl); line-height: 1; color: var(--color-surface); }
  .hero-x__stats dd { margin: var(--space-1) 0 0; font-size: var(--text-sm); color: var(--color-on-dark-muted); }
  .hero-x__cue { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; position: absolute; right: var(--gutter); bottom: 2rem; font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--color-on-dark-muted); }
  .hero-x__cue i { display: block; width: 2px; height: 48px; background: linear-gradient(var(--color-accent), var(--color-accent)) no-repeat top / 100% 0%, color-mix(in srgb, var(--color-surface) 20%, transparent); }
}
@media (min-width: 1200px) { .hero-x__cue { right: calc((100vw - var(--max-width)) / 2); } }

/* Load motion */
@media (prefers-reduced-motion: no-preference) {
  .hero-x__media img { animation: settle 2.6s cubic-bezier(.2,.7,.2,1) both; }
  .hero-x__eyebrow .rule { animation: draw 0.8s 0.2s ease-out both; transform-origin: left; }
  .hero-x__eyebrow span:last-child { animation: fadein 0.6s 0.4s ease-out both; }
  .hero-x h1 .ln > span { animation: rise 0.9s cubic-bezier(.2,.8,.2,1) both; }
  .hero-x h1 .ln:nth-child(1) > span { animation-delay: 0.35s; }
  .hero-x h1 .ln:nth-child(2) > span { animation-delay: 0.5s; }
  .hero-x h1 .ln:nth-child(3) > span { animation-delay: 0.65s; }
  .hero-x h1 .ln:nth-child(4) > span { animation-delay: 0.8s; }
  .hero-x h1 em { animation: gold 0.6s 1.4s ease-out both; }
  .hero-x__line, .hero-x__actions, .hero-x__stats { animation: up 0.8s ease-out both; }
  .hero-x__line { animation-delay: 1.05s; }
  .hero-x__actions { animation-delay: 1.2s; }
  .hero-x__stats { animation-delay: 1.4s; }
  .hero-x__cue i { animation: cue 2s 2s ease-in-out infinite; }
  @keyframes settle { from { transform: scale(1.12); filter: saturate(0.6); } to { transform: scale(1); filter: none; } }
  @keyframes draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
  @keyframes rise { from { transform: translateY(105%); } to { transform: none; } }
  @keyframes gold { from { color: var(--color-surface); } to { color: var(--color-accent); } }
  @keyframes up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
  @keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
  @keyframes cue { 0% { background-size: 100% 0%, auto; background-position: top; } 50% { background-size: 100% 100%, auto; background-position: top; } 100% { background-size: 100% 0%, auto; background-position: bottom; } }
}

/* Partner marquee */
.marquee-band { background: var(--color-surface); padding-block: var(--space-4); border-bottom: 1px solid var(--color-border); }
.marquee-band .eyebrow { margin-bottom: var(--space-3); }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; width: max-content; gap: clamp(2.5rem, 5vw, 5rem); align-items: center; list-style: none; margin: 0; padding: 0; }
.marquee__track li { flex: none; }
.marquee__track img { height: 40px; width: auto; filter: grayscale(1); opacity: 0.75; transition: filter 0.3s ease, opacity 0.3s ease; }
.marquee__track .lg-dvuli { height: 26px; } .marquee__track .lg-reframe { height: 30px; } .marquee__track .lg-nnym { height: 34px; } .marquee__track .lg-boon { height: 46px; } .marquee__track .lg-iym, .marquee__track .lg-uywi { height: 44px; }
.marquee__track img:hover { filter: none; opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .marquee__track { animation: slide 32s linear infinite; }
  .marquee:hover .marquee__track { animation-play-state: paused; }
  @keyframes slide { to { transform: translateX(calc(-50% - clamp(2.5rem, 5vw, 5rem) / 2)); } }
}
@media (prefers-reduced-motion: reduce) { .marquee__track { flex-wrap: wrap; width: auto; } .marquee__track li[aria-hidden] { display: none; } }

/* Staggered scroll reveals and a heading line that draws in */
@media (prefers-reduced-motion: no-preference) {
  .reveal { transition-duration: 0.7s; transition-timing-function: cubic-bezier(.2,.8,.2,1); }
  .grid > .reveal:nth-child(2) { transition-delay: 0.1s; }
  .grid > .reveal:nth-child(3) { transition-delay: 0.2s; }
  .grid > .reveal:nth-child(4) { transition-delay: 0.3s; }
  .section-head::before { transform: scaleX(0); transform-origin: left; transition: transform 0.8s 0.2s ease-out; }
  .section-head.is-in::before { transform: none; }
  .service { transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.7s ease; }
  .service:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
}

/* Video modal */
.video-modal { padding: 0; border: 0; background: transparent; width: min(92vw, 1000px); }
.video-modal::backdrop { background: color-mix(in srgb, var(--color-hero) 88%, transparent); }
.video-modal__frame { position: relative; aspect-ratio: 16 / 9; background: var(--color-hero); }
.video-modal__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-modal__close { display: block; margin: 0 0 0.75rem auto; min-height: 44px; padding: 0 1rem; border: 2px solid var(--color-surface); border-radius: var(--radius-button); background: transparent; color: var(--color-surface); font-weight: 700; cursor: pointer; }

/* Gold ticker between the mission and the series */
.ticker { background: var(--color-accent); color: var(--color-on-accent); overflow: hidden; padding-block: 0.9rem; }
.ticker__track { display: flex; width: max-content; list-style: none; margin: 0; padding: 0; }
.ticker__track li { display: flex; align-items: center; flex: none; font-weight: 900; font-stretch: 62%; font-size: var(--text-2xl); line-height: 1; text-transform: uppercase; letter-spacing: 0.02em; padding-right: 2.25rem; }
.ticker__track li::after { content: ""; display: block; width: 10px; height: 10px; background: var(--color-on-accent); margin-left: 2.25rem; }
@media (prefers-reduced-motion: no-preference) {
  .ticker__track { animation: ticker 26s linear infinite; }
  @keyframes ticker { to { transform: translateX(-50%); } }
}
@media (prefers-reduced-motion: reduce) { .ticker__track { flex-wrap: wrap; width: auto; justify-content: center; } .ticker__track li[aria-hidden] { display: none; } }

/* Coach Thomas series on the hero navy */
.band--hero { background: var(--color-hero); color: var(--color-on-dark); }
.band--hero h2, .band--hero h3 { color: var(--color-surface); }
.band--hero .eyebrow, .band--hero .lead { color: var(--color-on-dark-muted); }
.band--hero .series__quote { color: var(--color-accent); }
.band--hero .video { background: var(--color-dark); border-color: transparent; }
.band--hero .video__body .eyebrow { color: var(--color-accent); }
.band--hero .more-videos a { color: var(--color-surface); }
.series__top { display: grid; gap: var(--space-5); align-items: center; margin-bottom: var(--space-4); }
.series__head { margin-bottom: 0; }
.series__feature { max-width: 600px; }
@media (min-width: 1000px) { .series__top { grid-template-columns: 1fr 1fr; } .series__feature { max-width: none; } }
.series__more { max-width: none; }
.video__frame img { transition: transform 0.6s cubic-bezier(.2,.8,.2,1); }
.video:hover .video__frame img { transform: scale(1.04); }
@media (prefers-reduced-motion: no-preference) {
  .video__play span { animation: pulse 2.4s ease-in-out infinite; }
  @keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--color-accent) 55%, transparent); } 50% { box-shadow: 0 0 0 14px color-mix(in srgb, var(--color-accent) 0%, transparent); } }
}

/* Writing cards and links come alive on hover */
.post { transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, opacity 0.7s ease; }
.post:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); border-color: var(--color-accent); }
.post .card__action a::after, .more-videos a::after { content: "\2192"; display: inline-block; margin-left: 0.4em; transition: transform 0.2s ease; }
.post .card__action a:hover::after, .more-videos a:hover::after { transform: translateX(4px); }
.grid--2 > .post.reveal:nth-child(2) { transition-delay: 0.1s; }

/* Social icons in navy and gold */
.socials { display: flex; flex-wrap: wrap; gap: 0.6rem; list-style: none; margin: 0; padding: 0; }
.socials a { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; min-height: 44px; border: 2px solid var(--color-accent); border-radius: var(--radius-button); color: var(--color-accent); transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease; }
.socials a:hover, .socials a:focus-visible { background: var(--color-accent); color: var(--color-on-accent); transform: translateY(-2px); }
.socials svg { width: 20px; height: 20px; }
.contact__list .socials a { display: inline-flex; }
.site-footer .socials { justify-content: flex-start; }
@media (min-width: 900px) { .site-footer .socials { justify-content: center; } }

/* Contact headline lifts in like the hero */
.band--dark .reveal h2 { color: var(--color-surface); }

/* Services over a navy tinted speaking photo (Merrick style) */
.band--photo { position: relative; isolation: isolate; overflow: hidden; background: var(--color-hero); color: var(--color-on-dark); }
.band__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 30% 30%; }
.band--photo::after { content: ""; position: absolute; inset: 0; z-index: -1; background: color-mix(in srgb, var(--color-hero) 86%, transparent); }
.band--photo h2 { color: var(--color-surface); }
.band--photo .lead, .band--photo .after-grid { color: var(--color-on-dark-muted); }
.band--photo .after-grid a { color: var(--color-surface); }
.band--photo .service { color: var(--color-text); border-color: transparent; border-top-color: var(--color-accent); }
.band--photo .service h3 { color: var(--color-dark); }

/* About photo */
.about__photo { margin: var(--space-5) 0 0; max-width: 560px; }
.about__photo img { width: 100%; aspect-ratio: 1 / 1; border-radius: var(--radius-card); object-position: 50% 20%; }

/* In the room */
.room__head { margin-bottom: var(--space-5); }
.room__quote { font-size: clamp(2.25rem, 1.2rem + 4.4vw, 5rem); font-stretch: 62%; color: var(--color-dark); max-width: 18ch; position: relative; }
.room__mark { color: var(--color-accent); }
.room__head .text-link { color: var(--color-dark); text-underline-offset: 4px; }
.room__head .text-link::after { content: "\2192"; margin-left: 0.4em; }
.room__photos figure { margin: 0; overflow: hidden; border-radius: var(--radius-card); }
.room__photos img { width: 100%; aspect-ratio: 1 / 1; transition: transform 0.8s cubic-bezier(.2,.8,.2,1); }
.room__photos figure:hover img { transform: scale(1.03); }
@media (min-width: 1000px) { .room__photos { grid-template-columns: 1.15fr 0.85fr; align-items: end; } .room__photos figure:last-child img { aspect-ratio: 4 / 5; } }

/* Newest article gets a wide card */
.post--feature { margin-bottom: var(--space-4); border-top: 4px solid var(--color-accent); }
.post--feature h3 { font-size: var(--text-2xl); }

/* Testimonials (ready for real quotes; markup lives in build/testimonials-snippet.html) */
.quotes { display: grid; gap: var(--space-4); }
.quote-card { background: var(--color-surface); border-top: 4px solid var(--color-accent); border-radius: var(--radius-card); padding: var(--space-4); }
.quote-card__who { display: grid; grid-template-columns: 64px 1fr; gap: var(--space-3); align-items: center; margin-bottom: var(--space-3); }
.quote-card__who img { width: 64px; height: 64px; border-radius: var(--radius-card); object-fit: cover; }
.quote-card__name { font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; margin: 0; }
.quote-card__role { color: var(--color-muted); margin: 0; font-size: var(--text-sm); }
.quote-card__headline { font-weight: 900; font-stretch: 78%; font-size: var(--text-xl); color: var(--color-dark); margin-bottom: var(--space-2); }
.quote-card blockquote { margin: 0; color: var(--color-text); }
@media (min-width: 900px) { .quotes { grid-template-columns: repeat(3, 1fr); } }

/* Keep It Real Fridays card stacks on narrow phones */
@media (max-width: 520px) { .kirf { grid-template-columns: 1fr; gap: var(--space-3); } .kirf img { width: 72px; height: 72px; } }

/* Phone menu: full screen with a soft navy tint */
.nav-book { display: none; }
@media (max-width: 959px) {
  .site-header .brand, .site-header .nav-toggle { position: relative; z-index: 2; }
  #site-nav.is-open {
    position: fixed; inset: 0; z-index: 1; height: 100dvh;
    display: flex; flex-direction: column; justify-content: center; gap: var(--space-5);
    padding: 96px var(--gutter) calc(var(--space-5) + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--color-hero) 90%, transparent);
    -webkit-backdrop-filter: blur(16px) saturate(0.8); backdrop-filter: blur(16px) saturate(0.8);
    border: 0;
  }
  #site-nav.is-open ul { display: grid; gap: var(--space-2); }
  #site-nav.is-open a:not(.btn) { font-size: clamp(2rem, 1.2rem + 4vw, 2.75rem); font-weight: 900; font-stretch: 62%; letter-spacing: 0.01em; min-height: 56px; color: var(--color-surface); }
  #site-nav.is-open a:not(.btn):hover, #site-nav.is-open a[aria-current="true"] { color: var(--color-accent); box-shadow: none; }
  #site-nav.is-open .nav-book { display: inline-flex; align-self: flex-start; text-transform: none; letter-spacing: 0; font-size: var(--text-base); font-stretch: 100%; color: var(--color-on-accent); min-height: 48px; }
  body.nav-open { overflow: hidden; }
  body.nav-open .sticky-cta { visibility: hidden; }
  body.nav-open .site-header { background: transparent; border-color: transparent; }
  @media (prefers-reduced-motion: no-preference) {
    #site-nav.is-open { animation: fadein 0.25s ease-out both; }
    #site-nav.is-open li { animation: up 0.45s cubic-bezier(.2,.8,.2,1) both; }
    #site-nav.is-open li:nth-child(2) { animation-delay: 0.04s; } #site-nav.is-open li:nth-child(3) { animation-delay: 0.08s; }
    #site-nav.is-open li:nth-child(4) { animation-delay: 0.12s; } #site-nav.is-open li:nth-child(5) { animation-delay: 0.16s; }
    #site-nav.is-open li:nth-child(6) { animation-delay: 0.2s; } #site-nav.is-open .nav-book { animation: up 0.45s 0.26s cubic-bezier(.2,.8,.2,1) both; }
  }
}

/* Calendly pop up sits above the sticky bar and menu */
.calendly-overlay { z-index: 9999 !important; }
.calendly-overlay .calendly-close-overlay { background: color-mix(in srgb, var(--color-hero) 85%, transparent) !important; }
