/* The hero and navigation are one composition. All rules stay in this slice. */
.site-header,.hero{
  --hero-ink:#20211f;--hero-canvas:#f6f7f5;--hero-dark:#1a1c1b;
  --hero-ease:cubic-bezier(.22,1,.36,1);
  font-family:PF Sans,Arial,sans-serif;
}
.site-header{
  position:fixed;inset:0 0 auto;z-index:40;color:#fff;
  background:transparent;border-bottom:1px solid transparent;
  transition:background-color .28s ease,border-color .28s ease,color .28s ease;
}
.site-header[data-scrolled=true],.site-header:has(#navigation.is-open){
  color:var(--hero-ink);background:rgb(246 247 245 / .72);border-color:rgb(32 33 31 / .09);
  backdrop-filter:blur(18px) saturate(1.15);-webkit-backdrop-filter:blur(18px) saturate(1.15);
}
.site-header .header-inner{max-width:none;height:48px;padding-inline:clamp(20px,2.4vw,40px);gap:24px}
.site-header .brand{display:inline-flex;align-items:center;gap:9px;width:auto;height:44px;color:inherit;flex:none}
.site-header .brand .brand-symbol{display:block;width:25px;height:18px;flex:none;background:currentColor;mask:url('/assets/hero-lab/correlia-mark.svg') center/contain no-repeat;-webkit-mask:url('/assets/hero-lab/correlia-mark.svg') center/contain no-repeat}
.site-header .brand .brand-name{font:400 21px/1 PF Sans,Arial,sans-serif;letter-spacing:-.5px}
.site-header :is(a,button),.hero :is(a,button){font-family:PF Sans,Arial,sans-serif}
.site-header #navigation{position:static;display:flex;gap:30px;margin:0;padding:0;border:0;background:none;box-shadow:none}
.site-header #navigation :is(a,button),.site-header .login-link{font-size:15px;line-height:24px;color:inherit;opacity:.9;transition:opacity .18s ease}
.site-header .header-actions{gap:24px}
.site-header #navigation a,.site-header .login-link{display:inline-flex;align-items:center;min-height:44px}
.site-header .header-actions>.btn:not(.menu-toggle){height:34px;padding-inline:18px;font-size:14px;font-weight:400;border:1px solid transparent;background:#f6f7f5;color:#20211f;box-shadow:none;transition:background .2s ease,color .2s ease,transform .16s var(--hero-ease)}
.site-header[data-scrolled=true] .header-actions>.btn:not(.menu-toggle),.site-header:has(#navigation.is-open) .header-actions>.btn:not(.menu-toggle){background:#20211f;color:#fff}
.site-header .header-actions>.menu-toggle{display:none;place-items:center;width:44px;height:44px;padding:0;border:0;background:transparent;color:inherit}
.site-header .menu-toggle img{width:21px;height:21px;filter:brightness(0) invert(1);transition:filter .28s ease}
.site-header[data-scrolled=true] .menu-toggle img,.site-header:has(#navigation.is-open) .menu-toggle img{filter:brightness(0)}
.site-header :is(a,button):focus-visible{outline:0;box-shadow:inset 0 0 0 1px currentColor;border-radius:8px}
.hero{
  position:relative;isolation:isolate;display:flex;align-items:center;
  min-height:680px;height:84svh;max-height:900px;margin:0;padding:0;
  color:#fff;background:var(--hero-dark);
}
.hero::after{display:none}
.hero .hero-media{position:absolute;inset:0;z-index:0;width:100%;max-width:none;height:100%;margin:0}
.hero .media-stage[data-interview-layout=device]:not([data-preview-open=true]):not(:has(>.interview-player:not([hidden]))){
  display:block;width:100%;height:100%;aspect-ratio:auto;padding:0;border:0;border-radius:0;background:#242724;
}
.hero .media-stage[data-interview-layout=device] .hero-film{position:absolute;inset:0;display:block;width:100%;height:100%;aspect-ratio:auto;object-fit:cover}
.hero .media-stage::after{
  content:'';position:absolute;inset:0;z-index:0;pointer-events:none;
  background:linear-gradient(90deg,rgba(12,15,17,.79) 0%,rgba(12,15,17,.64) 24%,rgba(12,15,17,.30) 49%,rgba(12,15,17,.06) 72%,transparent 100%),linear-gradient(0deg,rgba(12,15,17,.25),transparent 42%),linear-gradient(180deg,rgba(12,15,17,.26),transparent 22%);
}
.hero .hero-copy{position:relative;z-index:2;width:auto;max-width:none;margin:0 0 0 clamp(24px,6.66vw,112px);padding:150px 0 90px;text-align:left;pointer-events:none}
.hero h1{max-width:640px;margin:0;font-family:PF Serif,Georgia,serif;font-size:clamp(46px,3.5vw,56px);line-height:1.08;font-weight:400;letter-spacing:-.025em;text-wrap:initial;white-space:normal}
.hero .hero-title-line{display:block;white-space:nowrap}
.hero .headline-typewriter-caret{width:.023em;height:.73em;opacity:.65}
.hero .hero-description{max-width:420px;margin:24px 0 0;font-size:18px;line-height:1.5;letter-spacing:0;color:rgb(255 255 255 / .88);text-wrap:pretty}
.hero .hero-actions{justify-content:flex-start;gap:12px;margin-top:28px;pointer-events:auto;width:fit-content}
.hero .hero-actions .btn,.hero .hero-secondary{display:inline-flex;align-items:center;justify-content:center;height:48px;min-height:48px;padding:0 25px;border:1px solid transparent;border-radius:999px;font:400 15px/20px PF Sans,Arial,sans-serif;box-shadow:none;transition:background .18s ease,transform .16s var(--hero-ease)}
.hero .hero-actions .btn{background:#f6f7f5;color:#20211f}
.hero .hero-secondary{background:rgb(255 255 255 / .04);border-color:rgb(255 255 255 / .48);color:#fff;backdrop-filter:blur(8px);text-decoration:none}
.hero .hero-secondary:disabled{opacity:.75;cursor:default}
.hero .hero-actions .btn:active,.site-header .header-actions>.btn:active{transform:scale(.98)}
.hero .hero-actions :is(a,button):focus-visible{outline:2px solid #fff;outline-offset:5px}
.hero .media-stage[data-interview-layout=device] .hero-dialogue{
  position:absolute;z-index:3;left:auto;right:clamp(24px,6.66vw,112px);top:auto;bottom:40px;
  display:grid;grid-template-columns:minmax(0,1fr);width:400px;min-height:164px;gap:0;padding:22px 24px;
  border:1px solid rgb(255 255 255 / .48);border-radius:18px;background:linear-gradient(135deg,rgb(245 248 246 / .72),rgb(245 248 246 / .56));color:#20211f;
  box-shadow:inset 0 1px 0 rgb(255 255 255 / .38),0 12px 40px rgb(0 0 0 / .10);backdrop-filter:blur(24px) saturate(1.15);-webkit-backdrop-filter:blur(24px) saturate(1.15);pointer-events:none;
}
.hero .media-stage[data-interview-layout=device] .hero-dialogue-context{
  position:absolute;top:25px;right:24px;max-width:230px;margin:0;padding:0;border:0;border-radius:0;
  background:none;backdrop-filter:none;color:#404a45;font:400 13px/18px PF Sans,Arial,sans-serif;letter-spacing:0;
}
.hero .media-stage[data-interview-layout=device] .hero-dialogue-line{
  grid-column:1;grid-row:1;align-self:start;justify-content:flex-start;height:auto;min-height:118px;margin:0;padding:0;
  border:0;border-radius:0;background:transparent;color:#20211f;box-shadow:none;backdrop-filter:none;
}
.hero .media-stage[data-interview-layout=device] .hero-dialogue-line [data-dialogue-speaker]{
  display:flex;align-items:center;gap:8px;height:24px;margin:0 0 12px;font:400 14px/20px PF Sans,Arial,sans-serif;color:#20211f;
}
.hero .media-stage[data-interview-layout=device] .hero-dialogue-line [data-dialogue-text]{
  position:relative;display:block;font:400 18px/25px PF Sans,Arial,sans-serif;letter-spacing:-.1px;color:inherit;text-wrap:wrap;
}
.hero .dialogue-text-measure{visibility:hidden}
.hero .dialogue-text-reveal{position:absolute;inset:0}
.hero .dialogue-corra-mark{width:20px;height:14px;flex:none}
.hero .dialogue-follow-up{display:none}
.hero .hero-film-controls{position:absolute;inset:auto auto 40px clamp(24px,6.66vw,112px);z-index:4;display:flex;align-items:center;padding:0;min-height:44px}
.hero .hero-playback{display:flex;align-items:center;gap:8px}
/* Fixed hit areas: only the small progress pill changes shape. */
.hero .hero-scenes{display:flex;align-items:center;gap:0;height:40px;padding:2px 6px;border:1px solid #ffffff26;border-radius:999px;background:rgb(21 27 32 / .35);backdrop-filter:blur(12px);isolation:isolate}
.hero .hero-scenes button{appearance:none;display:grid;place-items:center;flex:0 0 36px;width:36px;min-width:0;height:34px;padding:0;border:0;border-radius:7px;background:transparent;box-shadow:none;outline:none;-webkit-tap-highlight-color:transparent}
.hero .hero-scenes button>span{display:block;width:6px;height:5px;border-radius:999px;background:#ffffff66;overflow:hidden;transition:width .3s var(--hero-ease),background-color .2s ease,scale .16s ease}
.hero .hero-scenes button[aria-pressed=true]>span{width:28px;background:#ffffff45}
.hero .hero-scenes i{display:block;width:100%;height:100%;border-radius:inherit;background:#fff;transform:scaleX(0);transform-origin:left;transition:transform .16s linear}
.hero .hero-scenes button:active>span{scale:.88}
.hero .hero-scenes button:focus-visible{outline:0;box-shadow:inset 0 0 0 1px #ffffffa6;background:#ffffff0d}
.hero .hero-film-toggle{display:grid;place-items:center;flex:none;width:40px;height:40px;padding:0;border:1px solid #ffffff26;border-radius:50%;background:rgb(21 25 23 / .35);color:#fff;backdrop-filter:blur(12px);transition:background .18s ease,transform .16s var(--hero-ease)}
.hero .hero-film-toggle::before{content:'';display:block;width:0;height:0;border-top:5px solid transparent;border-bottom:5px solid transparent;border-left:8px solid currentColor;margin-left:2px}
.hero .hero-film-toggle[data-playing=true]::before{width:9px;height:11px;border-top:0;border-bottom:0;border-left:3px solid currentColor;border-right:3px solid currentColor;margin-left:0}
.hero .hero-film-toggle:active{transform:scale(.94)}
.hero .hero-film-toggle:disabled{opacity:.45;cursor:default}
.hero .hero-film-toggle:focus-visible{outline:0;box-shadow:inset 0 0 0 2px #fff}
.hero .media-footer:has(.player-caption[hidden]){display:none}
.hero .media-footer{position:absolute;bottom:0;inset-inline:0;z-index:6;padding:12px 24px;background:#f6f7f5}
.hero .interview-player{z-index:5}
.hero .media-error{position:absolute;z-index:7;bottom:12px;inset-inline:24px;color:#fff}
@media(hover:hover) and (pointer:fine){
  .site-header #navigation a:hover,.site-header .login-link:hover{opacity:1}
  .hero .hero-actions .btn:hover,.site-header .header-actions>.btn:not(.menu-toggle):hover{background:#e6e8e3;color:#20211f}
  .hero .hero-film-toggle:hover{background:rgb(255 255 255 / .14)}
  .hero .hero-scenes button:hover{background:transparent}
  .hero .hero-scenes button:hover>span{background:#ffffffb3}
  .hero .hero-secondary:not(:disabled):hover{background:rgb(255 255 255 / .16);border-color:rgb(255 255 255 / .8)}
}
@media(max-width:1100px){
  .site-header .header-inner{gap:20px;padding-inline:32px}
  .site-header #navigation{gap:22px}
  .site-header #navigation a,.site-header .login-link{font-size:14px}
  .site-header .header-actions{gap:20px}
  .hero .hero-copy{margin:0 32px;padding:100px 0 170px}
  .hero h1{font-size:clamp(44px,5vw,54px)}
  .hero .hero-description{font-size:18px;max-width:400px}
  .hero .hero-film-controls{left:32px;right:auto;bottom:38px}
  .hero .media-stage[data-interview-layout=device] .hero-dialogue{left:auto;right:32px;bottom:38px;width:360px}
  .hero .media-stage[data-interview-layout=device] .hero-film{object-position:15% top!important}
}
@media(max-width:800px){
  .site-header .header-inner{height:56px;padding-inline:24px;gap:16px}
  .site-header .brand .brand-name{font-size:23px}
  .site-header .brand .brand-symbol{width:28px;height:20px}
  .site-header .header-actions{gap:12px}
  .site-header .header-actions>.menu-toggle{display:grid}
  .site-header .login-link{display:none}
  .site-header #navigation{display:none;position:absolute;inset:55px 0 auto;margin:0;padding:12px 24px 24px;border:0;border-bottom:1px solid #20211f15;border-radius:0;background:#f6f7f5;color:#20211f;box-shadow:0 12px 20px #00000006}
  .site-header #navigation.is-open{display:flex;align-items:stretch;flex-direction:column;gap:0;animation:hero-menu-in .18s var(--hero-ease)}
  .site-header #navigation a{display:flex;align-items:center;min-height:48px;font-size:16px}
  .site-header #navigation a:last-child{display:flex}
  .hero h1{font-size:clamp(36px,5.5vw,44px)}
  .hero .hero-copy{margin:0 24px;padding-inline:0}
  .hero .media-stage[data-interview-layout=device] .hero-dialogue{left:auto;right:24px;width:350px}
}
@media(max-width:650px){
  .site-header .header-inner{height:56px;padding-inline:20px;gap:12px}
  .site-header .brand{gap:7px}
  .site-header .brand .brand-name{font-size:23px}
  .site-header .brand .brand-symbol{width:28px;height:20px}
  .site-header .header-actions{gap:9px}
  .site-header .header-actions>.btn:not(.menu-toggle){height:36px;padding-inline:16px;font-size:14px}
  .site-header #navigation{top:55px;padding-inline:20px}
  .hero{display:flex;flex-direction:column;align-items:stretch;min-height:0;height:auto;max-height:none;background:#1c211f}
  .hero .hero-copy{flex:none;width:100%;margin:0;padding:118px 22px 40px;pointer-events:auto}
  .hero h1{font-size:clamp(32px,8.2vw,48px);line-height:1.09;letter-spacing:-.035em}
  .hero .hero-description{font-size:16px;line-height:1.5;max-width:370px;margin-top:22px;color:#d5d9d5}
  .hero .hero-actions{gap:10px;margin-top:26px}
  .hero .hero-actions .btn,.hero .hero-secondary{height:44px;min-height:44px;padding-inline:19px;font-size:14px}
  .hero .hero-media{position:relative;inset:auto;z-index:auto;height:auto;width:100%;max-width:none;margin:0}
  .hero .media-stage[data-interview-layout=device]:not([data-preview-open=true]):not(:has(>.interview-player:not([hidden]))){display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto 182px 72px;height:auto;aspect-ratio:auto;padding:0;border-radius:0;background:#1c211f}
  .hero .media-stage[data-interview-layout=device] .hero-film{grid-column:1;grid-row:1;position:static;display:block;height:auto;aspect-ratio:20/11;object-fit:contain}
  .hero .media-stage::after{display:none}
  .hero .media-stage[data-interview-layout=device] .hero-dialogue{grid-column:1;grid-row:2;align-self:start;position:relative;inset:auto;width:auto;margin:18px 22px 0;gap:0;min-height:156px;padding:18px 20px}
  .hero .media-stage[data-interview-layout=device] .hero-dialogue-context{top:21px;right:20px;font-size:12px;color:#404a45}
  .hero .media-stage[data-interview-layout=device] .hero-dialogue-line{min-height:118px;padding:0}
  .hero .media-stage[data-interview-layout=device] .hero-dialogue-line [data-dialogue-text]{font-size:17px;line-height:24px}
  .hero .hero-film-controls{grid-column:1;grid-row:3;position:relative;inset:auto;align-self:start;justify-self:start;padding:10px 22px 18px}
}
@media(max-width:360px){
  .site-header .header-inner{padding-inline:16px}
  .site-header .brand .brand-name{font-size:21px}
  .site-header .brand .brand-symbol{width:26px;height:18px}
  .site-header .header-actions>.btn:not(.menu-toggle){font-size:13px;padding-inline:12px}
  .hero .hero-copy{padding-inline:18px}
  .hero .media-stage[data-interview-layout=device] .hero-dialogue-context{font-size:11px;max-width:170px}
  .hero h1{font-size:clamp(26px,8.2vw,30px)}
  .hero .hero-actions .btn,.hero .hero-secondary{padding-inline:16px;font-size:13px}
}
@keyframes hero-menu-in{from{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){
  .site-header,.site-header *,.hero *{animation:none!important;transition:none!important}
  .hero .hero-dialogue-line{transform:none!important}
}

/* The label rolls inside the original button; its hit area never moves. */
.site-header [data-roll-cta],.hero [data-roll-cta]{overflow:hidden;isolation:isolate;user-select:none}
.cta-labels{position:relative;display:block;height:20px;line-height:20px;will-change:transform}
.cta-labels>span{display:block;white-space:nowrap}
.cta-labels>.cta-label-copy{position:absolute;top:200%;left:0;right:0}
@media(prefers-reduced-motion:reduce){
  .cta-labels{transform:none!important}
  .cta-label-copy{display:none!important}
}

/* On phones the movie has its own controls. The transcript only occupies
   space when there is a line to read (including with reduced motion). */
@media (max-width: 650px) {
  .hero .hero-copy {padding-block: 88px 28px;}
  .hero .hero-description {margin-top: 16px;}
  .hero .hero-actions {margin-top: 22px;}
  .hero .media-stage[data-interview-layout=device]:not([data-preview-open=true]):not(:has(>.interview-player:not([hidden]))) {
    grid-template-rows: auto auto;
  }
  .hero .hero-film-controls {
    grid-row: 1;
    align-self: end;
    justify-self: end;
    padding: 0;
    margin: 0 12px 12px;
  }
  .hero .hero-scenes, .hero .hero-film-toggle {background-color: rgb(15 20 23 / .68);}
  .hero .hero-scenes, .hero .hero-film-toggle {height: 44px;}
  .hero .hero-film-toggle {width: 44px;}
  .hero .hero-scenes button {height: 40px; width: 32px; flex-basis: 32px;}
  .hero #hero-dialogue.hero-dialogue {
    min-height: 0;
    padding: 14px 0 19px;
    margin: 0 22px;
    border: none;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    color: #f5f8f6;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .hero #hero-dialogue .hero-dialogue-context {top: 15px; right: 0; color: #c5cdd0;}
  .hero #hero-dialogue .hero-dialogue-line {min-height: 84px; color: #f5f8f6;}
  .hero #hero-dialogue [data-dialogue-speaker] {color: #f5f8f6; margin-bottom: 6px;}
  .hero #hero-dialogue .dialogue-corra-mark {filter: brightness(0) invert(1);}
}
@media(max-width:800px){.hero .hero-secondary{display:none}}
