/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow: hidden;
  color: #fff;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__video,
.hero__poster-fallback img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__poster-fallback {
  position: absolute;
  inset: 0;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 12, 20, 0.62) 0%, rgba(8, 12, 20, 0.5) 50%, rgba(8, 12, 20, 0.58) 100%);
}

.hero__inner {
  position: relative;
  z-index: 1;
  /* vh-based so the copy holds the same spot in the frame as the viewport
     grows, rather than drifting toward the middle */
  padding-top: calc(var(--header-height) + 13vh);
}

.hero__kicker {
  letter-spacing: 0.02em;
  font-size: 1.25rem;
  font-weight: var(--fw-regular);
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 18px;
}

.hero__headline {
  color: #fff;
  font-size: clamp(2rem, 1.1rem + 2.8vw, 3.3rem);
  font-weight: var(--fw-light);
  line-height: 1.18;
  letter-spacing: -0.005em;
  max-width: 26ch;
  white-space: pre-line;
  margin-bottom: 0;
}

/* Runs immediately on page load (not scroll-gated like [data-reveal]) so it
   never delays paint of the hero H1, which Lighthouse identifies as the
   page's LCP element — [data-reveal]'s opacity:0-until-observed start state
   was adding ~1s to LCP when applied here. */
.hero__fade-in {
  animation: hero-fade-in 0.5s ease both;
}

@keyframes hero-fade-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__fade-in {
    animation: none;
  }
}


/* The live sections measure 1290px of CONTENT, not 1290px including padding.
   Widening max-width by the two 48px gutters lands the content edges on the
   same x as tprsglass.com while keeping the gutters on narrow viewports. */
/* ---------- Shared home section furniture ----------
   Measured off tprsglass.com: section headings are 47px/300 in near-black and
   eyebrows are sentence case (not uppercase). These override the sitewide
   .eyebrow/h2 rules for the home page only — this stylesheet is loaded from
   the page front matter, not the core bundle. */
.section-head {
  margin-bottom: 44px;
}

.reflection h2,
.glass-edge h2,
.glass-focus h2,
.glass-hub h2,
.subscribe-band__heading {
  max-width: 20ch;
  color: var(--color-text-dark);
  font-size: clamp(2rem, 1.1rem + 2.4vw, 2.94rem);
  font-weight: var(--fw-light);
  line-height: 1.07;
  letter-spacing: -0.01em;
}

.reflection .eyebrow,
.glass-edge .eyebrow,
.glass-focus .eyebrow,
.glass-hub .eyebrow,
.legacy .eyebrow {
  display: block;
  margin-bottom: 14px;
  color: var(--color-text-dark);
  font-size: 0.8125rem;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.12em;
  text-transform: none;
}

.legacy .eyebrow--light,
.latest-update .eyebrow--light {
  color: #fff;
}

/* ---------- Intro ----------
   One centred, justified column — 950px wide inside the 1290px container. */
.intro {
  padding-block: 96px 0;
}

.intro__body {
  max-width: 950px;
  margin-inline: auto;
  color: var(--color-text);
  font-size: 1.0625rem;
  line-height: 1.65;
  text-align: justify;
}

@media (max-width: 767px) {
  /* A full-height portrait box cropped the landscape hero video down to a
     sliver of the building. Live's mobile slider stops at ~550px; min() keeps
     a landscape phone from getting a hero taller than its own screen. */
  .hero {
    min-height: 0;
    height: 550px;
    height: min(100svh, 550px);
  }

  .intro {
    padding-block: 56px 0;
  }
}

/* ---------- Reflection (static four-up) ---------- */
.reflection {
  padding-block: 84px 0;
}

.reflection__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}

.reflection__link {
  display: block;
  color: inherit;
}

.reflection__image {
  width: 100%;
  height: auto;
  aspect-ratio: 298 / 201;
  object-fit: cover;
  border-radius: 6px;
}

/* Rule and date share a line; the rule fills the same 46px indent the title
   clears, so date text and title align on the left. */
.reflection__date {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
  color: #9c9c9c;
  font-size: 0.875rem;
  line-height: 1.5;
}

.reflection__date::before {
  content: "";
  flex: none;
  width: 32px;
  height: 1px;
  background: currentColor;
}

.reflection__title {
  margin-top: 10px;
  padding-left: 46px;
  color: var(--color-text-dark);
  font-size: 1.25rem;
  font-weight: var(--fw-medium);
  line-height: 1.65;
  transition: color var(--dur-base) var(--ease-default);
}

.reflection__link:hover .reflection__title,
.reflection__link:focus-visible .reflection__title {
  color: var(--color-navy);
}

.reflection__arrow {
  display: block;
  margin-top: 18px;
  padding-left: 46px;
  color: var(--color-text-dark);
}

.reflection__arrow svg {
  transition: transform var(--dur-base) var(--ease-default);
}

.reflection__link:hover .reflection__arrow svg {
  transform: translateX(4px);
}

@media (prefers-reduced-motion: reduce) {
  .reflection__arrow svg {
    transition: none;
  }
}

@media (max-width: 1023px) {
  .reflection__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
  }
}

@media (max-width: 639px) {
  .reflection__list {
    grid-template-columns: minmax(0, 1fr);
  }

  .reflection__title,
  .reflection__arrow {
    padding-left: 0;
  }
}

/* ---------- Glass Edge (stacked slider + Latest Update panel) ---------- */
.glass-edge {
  padding-block: 84px 96px;
}

.spotlight-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 403px;
  gap: 30px;
  align-items: stretch;
}

/* Stacked, draggable deck of the latest TPRS posts. Cards are absolutely
   stacked; JS offsets each one up the stack and drags the front card. */
.spotlight-deck {
  position: relative;
  margin-top: 34px;
  aspect-ratio: 871 / 517;
  touch-action: pan-y;
}

.spotlight-slide {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 4px;
  color: #fff;
  /* Origin at the top edge: scaling then narrows the card without pushing its
     top edge down, so the offset actually shows as a peeking stack. */
  transform-origin: 50% 0;
  box-shadow: 0 10px 30px rgba(8, 24, 44, 0.22);
  transition: transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1),
    opacity 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* While the finger is down the card must track the pointer exactly, so the
   transition is switched off rather than fought against. */
.spotlight-deck.is-dragging .spotlight-slide {
  transition: none;
}

.spotlight-deck.is-dragging .spotlight-slide.is-front {
  will-change: transform;
}

/* Used for a single frame after the stack re-orders, so the promoted cards
   do not animate from the position they held a moment ago. */
.spotlight-deck.is-settling .spotlight-slide {
  transition: none;
}

.spotlight-slide.is-leaving {
  transition: transform 0.42s cubic-bezier(0.36, 0, 0.66, -0.2),
    opacity 0.42s ease-out;
  pointer-events: none;
}

.spotlight-deck.is-interactive .spotlight-slide.is-front {
  cursor: grab;
}

.spotlight-deck.is-dragging .spotlight-slide.is-front {
  cursor: grabbing;
  box-shadow: 0 18px 44px rgba(8, 24, 44, 0.34);
}

.spotlight-slide__link {
  display: block;
  width: 100%;
  height: 100%;
  color: inherit;
  -webkit-user-select: none;
  user-select: none;
}

.spotlight-slide picture {
  display: block;
  width: 100%;
  height: 100%;
}

.spotlight-slide__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-user-drag: none;
  pointer-events: none;
}

/* Several of these post images carry their own baked-in text, so the scrim
   needs to be dark enough at the base for the caption to sit on top of it. */
.spotlight-slide__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 38, 68, 0.12) 0%, rgba(8, 38, 68, 0.16) 46%, rgba(6, 26, 48, 0.92) 100%);
}

.spotlight-slide__copy {
  position: absolute;
  left: 34px;
  right: 34px;
  bottom: 28px;
  display: grid;
  gap: 6px;
}

.spotlight-slide__title {
  font-size: 1.375rem;
  font-weight: var(--fw-semibold);
  line-height: 1.3;
}

.spotlight-slide__meta {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.8125rem;
}

@media (prefers-reduced-motion: reduce) {
  .spotlight-slide {
    transition: none;
  }
}

.latest-update {
  padding: 46px 44px 44px;
  background: var(--color-navy);
  color: #fff;
}

.latest-update,
.latest-update .eyebrow,
.glass-edge .latest-update h2,
.latest-update__subtitle,
.latest-update__meta,
.latest-update__meta li {
  color: #fff;
}

.glass-edge .latest-update__heading {
  margin-bottom: 20px;
  color: #fff;
  font-size: 2.375rem;
  font-weight: var(--fw-light);
  line-height: 1.1;
}

.latest-update__subtitle {
  margin-bottom: 16px;
  font-size: 0.9375rem;
  font-weight: var(--fw-semibold);
}

.latest-update__body {
  margin-bottom: 16px;
  color: #ffffff;
  font-size: 0.9375rem;
  line-height: 1.6;
}

.latest-update__meta {
  margin-bottom: 26px;
  font-size: 0.9375rem;
  font-weight: var(--fw-semibold);
  line-height: 1.75;
}

.latest-update__cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  background: #ffffff;
  color: var(--color-text-dark);
  font-size: 0.9375rem;
  font-weight: var(--fw-semibold);
  transition: background-color var(--dur-base) var(--ease-default),
    color var(--dur-base) var(--ease-default);
}

.latest-update__cta:hover,
.latest-update__cta:focus-visible {
  background: var(--color-gold);
  color: var(--color-text-dark);
}

.latest-update__cta svg {
  transition: transform var(--dur-base) var(--ease-default);
}

.latest-update__cta:hover svg {
  transform: translateX(4px);
}

@media (max-width: 1023px) {
  .spotlight-feature {
    grid-template-columns: minmax(0, 1fr);
  }

  /* Drop the ratio here and set the height outright: with aspect-ratio still
     applied, a min-height makes the browser derive the WIDTH from it, which
     pushed the deck wider than the viewport. */
  .spotlight-deck {
    aspect-ratio: auto;
    height: 340px;
  }

  .spotlight-slide__copy {
    left: 22px;
    right: 22px;
    bottom: 22px;
  }

  .spotlight-slide__title {
    font-size: 1.125rem;
  }
}

/* ---------- Legacy ---------- */
.legacy {
  position: relative;
  padding-block: 58px;
  background-color: #0f4c81;
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  color: #fff;
  overflow: hidden;
}

/* No scrim: vision.jpg already carries the black-to-navy gradient, and
   sampling the live band shows its pixels match the source file exactly.
   An overlay here is what was washing the section out. */
.legacy__overlay {
  display: none;
}

.legacy__inner {
  position: relative;
}

.legacy__heading {
  max-width: 500px;
  margin-bottom: 150px;
  color: #fff;
  font-size: clamp(2rem, 1.35rem + 2vw, 3rem);
  font-weight: var(--fw-light);
  line-height: 1.2;
}

.legacy__stats {
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr);
  row-gap: 38px;
}

.legacy__stat-value {
  display: block;
  color: #fff;
  font-size: 2.75rem;
  font-weight: var(--fw-bold);
  line-height: 1.15;
}

.legacy__stat-label {
  display: block;
  color: #fff;
  font-size: 2.5rem;
  font-weight: var(--fw-regular);
  line-height: 1.2;
  white-space: nowrap;
}

@media (max-width: 767px) {
  .legacy {
    padding-block: 56px;
  }

  .legacy__heading {
    margin-bottom: 44px;
  }

  .legacy__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 24px;
    column-gap: 20px;
  }

  .legacy__stat-value {
    font-size: 1.625rem;
  }

  .legacy__stat-label {
    font-size: 1.125rem;
    white-space: normal;
  }
}

/* ---------- Subscribe band ---------- */
.subscribe-band {
  margin-top: 100px;
  padding-block: 42px;
  background: #f0f0f0;
}

.subscribe-band__inner {
  display: grid;
  grid-template-columns: minmax(0, 562px) minmax(0, 1fr) auto;
  gap: 40px;
  align-items: center;
}

.subscribe-band__form {
  display: contents;
}

.subscribe-band__field input[type="email"] {
  width: 100%;
  padding: 12px 2px;
  border: 0;
  border-bottom: 1px solid var(--color-text-dark);
  border-radius: 0;
  background: transparent;
  color: var(--color-text-dark);
  font: inherit;
}

.subscribe-band__field input::placeholder {
  color: #8b8b8b;
}

.subscribe-band__consent {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  color: var(--color-text-dark);
  font-size: 0.8125rem;
  font-weight: var(--fw-semibold);
}

.subscribe-band__consent a {
  text-decoration: underline;
}

.subscribe-band__submit {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--color-text-dark);
  font-size: 1.0625rem;
  font-weight: var(--fw-bold);
  white-space: nowrap;
  transition: color var(--dur-base) var(--ease-default);
}

.subscribe-band__submit:hover,
.subscribe-band__submit:focus-visible {
  color: var(--color-navy);
}

.subscribe-band .form-honeypot,
.subscribe-band .form-status:empty {
  display: none;
}

@media (max-width: 1023px) {
  .subscribe-band__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
}

/* ---------- Glass Focus (full-bleed mosaic) ---------- */
.glass-focus {
  padding-block: 84px 0;
}

.focus-mosaic {
  display: grid;
  grid-template-columns: 1fr 1fr 2fr;
  grid-template-rows: repeat(2, 476px);
  gap: 8px;
  margin-top: 44px;
}

.focus-mosaic__item--1 {
  grid-column: 1;
  grid-row: 1 / span 2;
}

.focus-mosaic__item--2 {
  grid-column: 2;
  grid-row: 1;
}

.focus-mosaic__item--3 {
  grid-column: 2;
  grid-row: 2;
}

.focus-mosaic__item--4 {
  grid-column: 3;
  grid-row: 1 / span 2;
}

.focus-mosaic__link {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  color: #fff;
}

.focus-mosaic__link picture,
.spotlight-slide picture {
  display: block;
  width: 100%;
  height: 100%;
}

.focus-mosaic__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-default);
}

.focus-mosaic__link:hover .focus-mosaic__image,
.focus-mosaic__link:focus-visible .focus-mosaic__image {
  transform: scale(1.04);
}

.focus-mosaic__caption {
  position: absolute;
  inset: auto 0 0 0;
  display: grid;
  gap: 4px;
  padding: 26px 28px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.72) 100%);
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease-default);
}

.focus-mosaic__link:hover .focus-mosaic__caption,
.focus-mosaic__link:focus-visible .focus-mosaic__caption {
  opacity: 1;
}

.focus-mosaic__title {
  font-size: 1.0625rem;
  font-weight: var(--fw-semibold);
}

.focus-mosaic__category {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.8125rem;
}

@media (prefers-reduced-motion: reduce) {
  .focus-mosaic__image {
    transition: none;
  }
}

@media (max-width: 767px) {
  .focus-mosaic {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(3, 180px);
  }

  .focus-mosaic__item--1 { grid-column: 1; grid-row: 1; }
  .focus-mosaic__item--2 { grid-column: 2; grid-row: 1; }
  .focus-mosaic__item--3 { grid-column: 1; grid-row: 2; }
  .focus-mosaic__item--4 { grid-column: 1 / span 2; grid-row: 3; }

  .focus-mosaic__caption {
    opacity: 1;
  }
}

/* ---------- Glass Hub (brand tiles) ---------- */
.glass-hub {
  padding-block: 116px 90px;
}

.glass-hub .section-head {
  margin-bottom: 62px;
}

.hub-tiles {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 20px 29px;
}

/* Row one: LinkedIn spans four of six columns, Instagram the remaining two.
   Row two: three equal pairs. */
.hub-tiles__cell--linkedin { grid-column: 1 / span 4; }
.hub-tiles__cell--instagram { grid-column: 5 / span 2; }
.hub-tiles__cell--facebook { grid-column: 1 / span 2; }
.hub-tiles__cell--youtube { grid-column: 3 / span 2; }
.hub-tiles__cell--x { grid-column: 5 / span 2; }

.hub-tile {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 14px;
  height: 191px;
  padding: 50px;
  color: #fff;
  transition: filter var(--dur-base) var(--ease-default);
}

.hub-tile:hover,
.hub-tile:focus-visible {
  filter: brightness(1.08);
}

.hub-tile__icon {
  display: block;
  line-height: 0;
}

.hub-tile__tagline {
  font-size: 1.0625rem;
  font-weight: var(--fw-bold);
  line-height: 1.4;
}

.hub-tile--linkedin { background: #0077b5; }
.hub-tile--instagram { background: #ff0069; }
.hub-tile--facebook { background: #4267b2; }
.hub-tile--youtube { background: #ff0000; }
.hub-tile--x { background: #000000; }

@media (max-width: 767px) {
  .hub-tiles {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .hub-tiles__cell--linkedin,
  .hub-tiles__cell--instagram,
  .hub-tiles__cell--facebook,
  .hub-tiles__cell--youtube,
  .hub-tiles__cell--x {
    grid-column: 1;
  }

  .hub-tile {
    height: 150px;
    padding: 32px;
  }
}
