/* Homepage magazine-cover composition. */

.home-page{
  --home-accent: #e2a45f;
  --home-graphite: #15191d;
  --home-body-size: clamp(17px, 1.15vw, 18px);
  --home-section-title-size: clamp(28px, 2.6vw, 36px);
}

html body.home-page,
html[data-theme] body.home-page,
html body.home-page::before,
html body.home-page::after,
html[data-theme] body.home-page::before,
html[data-theme] body.home-page::after{
  background-color: var(--home-graphite) !important;
  background-image: none !important;
}

.home-page .header[hidden]{
  display: none !important;
}

.home-page .hero{
  min-height: min(900px, 100svh);
  padding: 0 0 18px;
  overflow: hidden;
}

.home-page .hero > .container{
  width: min(1380px, calc(100% - 48px));
}

.home-page .hero-grid{
  grid-template-columns: minmax(390px, 0.82fr) minmax(720px, 1.18fr);
  gap: 0;
  min-height: calc(100svh - 18px);
  align-items: center;
}

.home-page .home-welcome{
  position: relative;
  z-index: 3;
  grid-column: 1;
  width: min(640px, calc(100% + 76px));
  max-height: calc(100svh - 72px);
  padding: 36px 32px 36px 0;
  align-self: center;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  color: rgba(255,255,255,0.76);
  font-family: var(--site-font-sans);
}

.home-page .home-welcome::-webkit-scrollbar{
  display: none;
}

.home-page .home-welcome-title{
  max-width: 14ch;
  margin: 0 0 16px;
  color: rgba(255,255,255,0.96);
  font-family: var(--site-font-display);
  font-size: clamp(48px, 4.6vw, 64px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.home-page .home-welcome-role{
  max-width: none;
  margin: 0 0 28px;
  color: rgba(255,255,255,0.94);
  font-family: var(--site-font-sans);
  font-size: var(--home-body-size);
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.home-page .home-welcome-copy{
  display: grid;
  gap: 13px;
}

.home-page .home-welcome-copy p,
.home-page .home-welcome-signature{
  margin: 0;
  font-size: var(--home-body-size);
  line-height: 1.58;
  letter-spacing: -0.008em;
  text-wrap: pretty;
}

.home-page .home-welcome-copy p{
  font-size: var(--home-body-size);
  line-height: 1.52;
}

.home-page .home-welcome-signature{
  margin-top: 20px;
  color: rgba(255,255,255,0.9);
}

.home-page .home-welcome-signature strong{
  font-weight: 600;
}

.home-page .profile-stage{
  position: relative;
  grid-column: 2;
  min-width: 0;
  min-height: min(946px, calc(100svh - 18px));
  align-self: stretch;
}

.home-page .profile-photo-frame{
  position: absolute;
  inset: 0 auto 0 14px;
  width: min(650px, 78%);
  height: 100%;
  overflow: visible;
  background: var(--home-graphite);
}

.home-page .profile-photo{
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center top;
  mix-blend-mode: screen;
}

@media (min-width: 961px){
  body.home-page{
    height: 100svh;
    min-height: 100svh;
    overflow: hidden;
  }

  body.home-page > main{
    height: 100svh;
    min-height: 0;
    overflow: hidden;
  }

  body.home-page .hero{
    width: 100%;
    min-height: min(900px, 100svh);
    padding: 0;
    align-items: stretch;
  }

  body.home-page .hero > .container{
    min-height: min(900px, 100svh);
    display: flex;
  }

  body.home-page .hero-grid{
    width: 100%;
    min-height: min(900px, 100svh);
  }

  body.home-page .profile-stage{
    min-height: min(900px, 100svh);
  }

  .home-page .profile-photo{
    transform: translateY(8px) scale(1.018);
    animation: magazinePhotoReveal 900ms cubic-bezier(.16,.82,.24,1) 140ms forwards;
  }
}

.home-page .home-profile-content{
  margin-top: 24px;
  color: rgba(255,255,255,0.76);
  font-family: var(--site-font-sans);
}

.home-page .home-profile-content-inner{
  width: 100%;
}

.home-page .home-profile-section{
  padding: 24px 0;
  border-top: 0;
}

.home-page .home-profile-heading{
  max-width: 18ch;
  margin: 0 0 16px;
  color: var(--home-accent);
  font-family: var(--site-font-display);
  font-size: var(--home-section-title-size);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.home-page .home-metrics-grid{
  display: grid;
  grid-template-columns: 1fr;
}

.home-page .home-metric{
  padding: 12px 0 14px;
  border-top: 0;
}

.home-page .home-metric strong{
  display: block;
  margin-bottom: 10px;
  color: var(--home-accent);
  font-size: var(--home-body-size);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.012em;
}

.home-page .home-metric p,
.home-page .home-expertise-item p,
.home-page .home-industry-section p{
  margin: 0;
  font-size: var(--home-body-size);
  line-height: 1.58;
  text-wrap: pretty;
}

.home-page .home-expertise-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
}

.home-page .home-expertise-item{
  position: relative;
  padding: 14px 0 16px 30px;
  border-top: 0;
}

.home-page .home-expertise-item::before{
  content: "✓";
  position: absolute;
  top: 14px;
  left: 0;
  color: var(--home-accent);
  font-size: var(--home-body-size);
  font-weight: 700;
}

.home-page .home-expertise-item h3{
  margin: 0 0 14px;
  color: var(--home-accent);
  font-size: var(--home-body-size);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.home-page .home-industry-section{
  display: grid;
  grid-template-columns: 1fr;
}

.home-page .home-industry-section .home-profile-heading{
  grid-row: auto;
  margin-bottom: 16px;
}

.home-page .home-industry-section p + p{
  margin-top: 18px;
}

.home-page .home-industry-list{
  color: rgba(255,255,255,0.94);
  font-weight: 600;
}

@keyframes magazinePhotoReveal{
  to{
    opacity: 1;
    transform: translateY(8px) scale(1);
  }
}

.home-page .cover-nav{
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: calc(24px - (100vw - min(1380px, calc(100vw - 48px))) / 2);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(46px, 6.5vh, 66px);
  text-align: left;
  pointer-events: none;
}

.home-page .cover-nav-link{
  position: relative;
  display: inline-flex;
  align-items: baseline;
  justify-content: flex-start;
  width: 6.32em;
  pointer-events: auto;
  color: rgba(255,255,255,0.94);
  font-family: var(--site-font-sans);
  font-size: clamp(32px, 2.75vw, 47px);
  font-style: normal;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.035em;
  text-shadow: 0 5px 30px rgba(0,0,0,0.92);
  transform: none;
  transition: color 180ms ease, transform 240ms cubic-bezier(.16,.82,.24,1);
  white-space: nowrap;
}

.home-page .cover-nav-link:hover,
.home-page .cover-nav-link:focus-visible{
  color: #fff;
  transform: translateX(10px);
}

@media (max-width: 1180px){
  .home-page .hero > .container{
    width: min(1080px, calc(100% - 40px));
  }

  .home-page .hero-grid{
    grid-template-columns: minmax(330px, 0.72fr) minmax(600px, 1.28fr);
  }

  .home-page .home-welcome{
    width: 100%;
    padding-right: 34px;
  }

  .home-page .cover-nav-link{
    font-size: clamp(32px, 3.6vw, 46px);
  }

  .home-page .cover-nav{
    gap: clamp(38px, 5.5vh, 56px);
    right: calc(20px - (100vw - min(1080px, calc(100vw - 40px))) / 2);
  }
}

@media (max-width: 960px){
  body.home-page{
    overflow-x: hidden;
    overflow-y: auto;
  }

  .home-page .hero{
    padding-top: 28px;
    overflow: visible;
  }

  .home-page .hero-grid{
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .home-page .home-welcome{
    grid-column: 1;
    width: min(100%, 720px);
    max-height: none;
    padding: 18px 14px 30px 0;
    justify-self: center;
    align-self: start;
    overflow: visible;
    overscroll-behavior: auto;
  }

  .home-page .hero-title{
    position: relative;
    z-index: 3;
    margin-bottom: -34px;
  }

  .home-page .profile-stage{
    grid-column: 1;
    min-height: 0;
    display: grid;
    gap: 24px;
    margin-top: 12px;
  }

  .home-page .profile-photo-frame{
    position: relative;
    inset: auto;
    width: min(100%, 610px);
    height: auto;
    aspect-ratio: 1122 / 1402;
    justify-self: center;
    overflow: hidden;
  }

  .home-page .profile-photo{
    height: auto;
    object-fit: contain;
  }

  .home-page .cover-nav{
    position: relative;
    inset: auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 22px;
    align-items: stretch;
    padding: 0 0 24px;
    pointer-events: auto;
  }

  .home-page .cover-nav-link{
    width: auto;
    min-height: 56px;
    padding: 14px 0 12px;
    border-top: 1px solid rgba(255,255,255,0.2);
    font-size: clamp(25px, 4vw, 34px);
    text-shadow: none;
  }

  .home-page .home-profile-content-inner{
    width: 100%;
  }

  .home-page .home-industry-section{
    grid-template-columns: 1fr;
  }

  .home-page .home-industry-section .home-profile-heading{
    grid-row: auto;
    margin-bottom: 42px;
  }
}

@media (max-width: 620px){
  .home-page{
    --home-section-title-size: clamp(21px, 6.65vw, 27px);
  }

  .home-page .hero{
    min-height: 100svh;
    padding: 22px 0 12px;
  }

  .home-page .hero > .container{
    width: min(100% - 24px, 440px);
  }

  .home-page .home-welcome{
    min-width: 0;
    max-height: none;
    padding: 10px 12px 28px 6px;
  }

  .home-page .home-welcome-title{
    max-width: none;
    margin-bottom: 18px;
    font-size: clamp(46px, 13vw, 54px);
  }

  .home-page .home-welcome-role{
    margin-bottom: 24px;
    font-size: var(--home-body-size);
  }

  .home-page .home-welcome-copy{
    gap: 11px;
  }

  .home-page .home-welcome-copy p,
  .home-page .home-welcome-signature{
    font-size: var(--home-body-size);
    line-height: 1.62;
  }

  .home-page .home-welcome-copy p{
    font-size: var(--home-body-size);
    line-height: 1.5;
  }

  .home-page .hero-title{
    margin: 0 0 -8px;
    font-size: clamp(42px, 12vw, 52px);
    line-height: 0.98;
  }

  .home-page .profile-stage{
    gap: 22px;
  }

  .home-page .profile-photo-frame{
    width: min(100%, 390px);
  }

  .home-page .cover-nav-link{
    width: auto;
    min-height: 52px;
    padding: 13px 0 11px;
    border-top: 1px solid rgba(255,255,255,0.2);
    font-size: clamp(23px, 6.6vw, 28px);
    text-shadow: none;
  }

  .home-page .cover-nav{
    gap: 8px 18px;
    padding: 0 6px 20px;
  }

  .home-page .home-profile-section{
    padding: 24px 0;
  }

  .home-page .home-profile-heading{
    margin-bottom: 26px;
    font-size: var(--home-section-title-size);
  }

  .home-page #functionsTitle{
    max-width: none;
    white-space: nowrap;
    text-wrap: nowrap;
  }

  .home-page .home-metrics-grid,
  .home-page .home-expertise-grid{
    grid-template-columns: 1fr;
  }

  .home-page .home-expertise-grid{
    gap: 18px;
  }

  .home-page .home-metric{
    padding: 17px 0 20px;
  }

  .home-page .home-expertise-item h3{
    margin-bottom: 9px;
  }

  .home-page .home-industry-section .home-profile-heading{
    margin-bottom: 26px;
  }

  .home-page .home-industry-section p + p{
    margin-top: 14px;
  }

  .home-page .home-industry-section .home-industry-list{
    text-wrap: auto;
  }
}

@media (prefers-reduced-motion: reduce){
  .home-page .cover-nav-link{
    transition: none;
  }
}

@media (min-width: 1181px){
  .home-page .home-welcome-role,
  .home-page .home-profile-heading{
    max-width: none;
    white-space: nowrap;
    text-wrap: nowrap;
  }
}

@media (min-width: 961px) and (prefers-reduced-motion: reduce){
  .home-page .profile-photo{
    opacity: 1;
    transform: translateY(8px);
    animation: none;
  }
}

/* Keep the original cover footer visible while the profile copy scrolls. */
body.home-page > footer{
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 20;
  padding: 0 0 max(12px, env(safe-area-inset-bottom));
  background: linear-gradient(180deg, transparent 0, rgba(21,25,29,0.96) 38%) !important;
  pointer-events: none;
}

body.home-page > footer .footer-inner{
  min-height: 42px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

@media (max-width: 960px){
  body.home-page > main{
    padding-bottom: 0;
  }

  body.home-page > footer{
    position: static;
    padding-bottom: max(12px, env(safe-area-inset-bottom));
    background: transparent !important;
  }

  body.home-page > footer .footer-inner{
    min-height: 52px;
  }
}
