/* Station ident between the opening and the work. The HTML is readable before JS loads. */
.broadcast-cue {display:block;max-width:17ch;}
.broadcast-cue + .broadcast-cue {margin:clamp(76px,21svh,224px) 0 0 auto;}
.broadcast-cue em {
  display:inline-block;
  font-weight:610;font-variation-settings:"opsz" 72,"SOFT" 88,"WONK" 1;
}
.opening .hero-scroll {
  position:absolute;z-index:3;inset-inline-start:50%;transform:translateX(-50%);
  bottom:max(8px,env(safe-area-inset-bottom));display:grid;place-items:center;
  width:44px;height:44px;color:inherit;
}
.hero-scroll:focus-visible {outline:2px solid currentColor;outline-offset:1px;}
@media (max-height:480px) and (min-aspect-ratio:4/3) {
  .opening #lupaus {font-size:clamp(32px,14dvh,66px);}
}
.agency-intro {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: clamp(32px, 5.5svh, 68px);
  min-block-size: min(80svh, 58rem);
  margin-inline: calc(-1 * var(--sivureuna));
  padding: clamp(56px, 8svh, 100px) clamp(18px, 4vw, 72px);
  background: var(--klik-muste);
  color: var(--klik-kerma);
  text-align: center;
}
.agency-intro img {
  display: block;
  width: min(100%, clamp(140px, 19vw, 264px));
  height: auto;
}
.agency-intro h2 {
  width: min(100%, 24ch);
  margin: 0;
  font: 300 clamp(2rem, 6.3vw, 6.6rem)/1.06 Aeonik, Arial, sans-serif;
  letter-spacing: -.05em;
  text-wrap: balance;
}
.agency-intro-ending {
  display: block;
}
.agency-intro em {
  color: var(--klik-oranssi);
  font: 610 1em/1.06 var(--soft);
  font-variation-settings: "opsz" 72, "SOFT" 88, "WONK" 1;
  letter-spacing: -.045em;
}

.belief {
  margin-inline:calc(-1 * clamp(16px,3vw,46px));
  padding:clamp(72px,10vw,150px) clamp(20px,6vw,100px);
  background:var(--klik-vihrea);color:var(--klik-muste);
}
.belief h2 {
  margin:0 auto;max-width:23ch;font:300 clamp(38px,6.6vw,100px)/1.035 Aeonik,Arial,sans-serif;
  letter-spacing:-.055em;overflow-wrap:break-word;text-wrap:balance;
}
.belief em {font:610 1em/1 var(--soft);font-variation-settings:"opsz" 72,"SOFT" 88,"WONK" 1;letter-spacing:-.045em;}
@media (prefers-reduced-motion:no-preference) {
  .broadcast-cue .cue-mask {
    display:inline-block;vertical-align:baseline;overflow:clip;
    padding:.14em .045em .18em;margin:-.14em -.045em -.18em;
  }
  .broadcast-cue .cue-word {display:inline-block;}
  .broadcast-cue.cued:not(.on-air) .cue-word {transform:translateY(155%);}
  .broadcast-cue:first-child.on-air .cue-word {
    animation:ad-cut .34s cubic-bezier(.18,.78,.24,1) both;animation-delay:calc(var(--cue) * 24ms);
  }
  .broadcast-cue + .broadcast-cue.on-air .cue-word {
    animation:program-title .52s cubic-bezier(.16,.78,.23,1) both;animation-delay:calc(var(--cue) * 48ms);
  }
  .broadcast-cue + .broadcast-cue.on-air em .cue-word {animation-duration:.64s;}
  .broadcast-cue.cued:not(.on-air) .nauhatarra {visibility:hidden;}
  .broadcast-cue.on-air .nauhatarra {animation:slate-in .46s cubic-bezier(.18,.78,.24,1) .44s both;}
  @keyframes ad-cut {from {clip-path:inset(0 100% 0 0);transform:translateX(-.18em);} to {clip-path:inset(-.14em -.05em -.18em);transform:none;}}
  @keyframes program-title {from {transform:translateY(155%) rotate(3deg);} to {transform:translateY(0) rotate(0);}}
  @keyframes slate-in {from {clip-path:inset(0 0 100% 0);transform:translateY(.35em) rotate(-11deg);} to {clip-path:inset(0);transform:rotate(7deg);}}
}
/* Klik's own cursor points down the page and nods once in a while */
.opening .hero-scroll {width:56px;height:56px;}
.hero-cursor {width:clamp(30px,2.6vw,40px);height:auto;animation:kursori-nyokkaa 2.8s cubic-bezier(.45,0,.2,1) infinite;}
@keyframes kursori-nyokkaa {0%,55%,100% {transform:translateY(0);} 70% {transform:translateY(9px);} 82% {transform:translateY(2px);}}
.hero-scroll:hover .hero-cursor {animation-duration:1.2s;}
@media (prefers-reduced-motion:reduce) {.hero-cursor {animation:none;}}

/* Hero subtitle under the statement (Ville 24.11.2026), same sentence as the Klikway lead. */
.opening .hero-alaotsikko {
  margin: clamp(18px, 3.2svh, 40px) 0 0;
  font: 400 clamp(19px, 1.75vw, 28px)/1.3 Aeonik, Arial, sans-serif; letter-spacing: -.02em;
  text-wrap: pretty;
}
.opening .hero-alaotsikko span {display: block;} /* each sentence on its own line (Ville 24.11.2026) */
@media (max-width: 700px) {.opening .hero-alaotsikko {font-size: min(19px, 4.3vw);} .opening .hero-alaotsikko span {white-space: nowrap;}}

/* Hero CTA (Ville 24.11.2026): ink button on the orange hero, square like every Klik button. */
.opening .hero-cta {justify-self: start; margin-top: clamp(20px, 3svh, 36px); position: relative; z-index: 2;}
.opening .hero-cta:hover {background: var(--klik-kerma, #f7f2e8); color: var(--ink, #201b20);}
/* USP: statement on the left, the 3D glass eye on the right (Ville 25.11.2026: "vasemmalla voi olla teksti ja
   oikealla silmä"; the Klik Helsinki wordmark left this section). Phones stack the text above the eye. */
.silma-3d {width: min(100%, 78vw, 380px); aspect-ratio: 1; order: 3;}
.silma-3d canvas {display: block; width: 100%; height: 100%;}
@media (min-width: 900px) {
  .agency-intro {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-content: center; justify-items: start;
    column-gap: clamp(32px, 5vw, 96px); row-gap: 0;
    text-align: left;
  }
  .agency-intro > * {grid-column: 1;}
  .agency-intro h2 {align-self: end; width: min(100%, 16ch); font-size: clamp(2.4rem, 5vw, 6rem);}
  .agency-intro .rf-usp-more {align-self: start;}
  .agency-intro .silma-3d {grid-column: 2; grid-row: 1 / span 2; align-self: center; justify-self: center; width: min(100%, 620px);}
}
