@font-face {
  font-family: Aeonik;
  src: url("../media/aeonik-regular.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: Fraunces;
  src: url("../vaikutus/kirjasimet/fraunces.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: Aeonik;
  src: url("../studio/kuvat/aeonik-light.woff2") format("woff2");
  font-weight: 300;
  font-display: swap;
}
:root {
  --ink: #201b20;
  --paper: #f7f2e8;
  --accent: #f35c35;
  --edge: clamp(16px, 4.8vw, 78px);
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.4 Aeonik, Arial, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; }
h1, h2, p, figure, blockquote, ul { margin: 0; }
h1, h2 { font-weight: 300; }
b { font-weight: 400; }
a { color: inherit; text-underline-offset: .17em; }
a:focus-visible, video:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }
/* The homepage stylesheet supplies the navigation grid and contact interaction. */
.site-masthead {
  --klik-muste: var(--ink);
  --klik-kerma: var(--paper);
  --gutter: clamp(16px, 3vw, 46px);
  padding: var(--gutter) var(--gutter) 0;
  align-items: center;
  column-gap: clamp(12px, 2vw, 34px);
  background: var(--accent);
  line-height: 1.35;
}
.site-masthead .home-link { display: inline-flex; }
.site-masthead .logo { width: clamp(56px, 7vw, 98px); height: auto; }
.site-masthead nav { display: flex; align-items: center; gap: clamp(10px, 2vw, 35px); font-size: clamp(13px, 1.25vw, 18px); }
.site-masthead nav a { display: inline-flex; align-items: center; min-height: 44px; text-underline-offset: .2em; }
.end { line-height: 1.35; }
.story-content { padding: 0 var(--edge) 2.5rem; max-width: 1680px; margin-inline: auto; }
.intro { margin: clamp(1.3rem, 4vw, 4rem) 0 clamp(1.3rem, 3vw, 2.8rem); }
.intro p, .headline > p:first-child { font-size: clamp(1.05rem, 1.7vw, 1.45rem); margin-bottom: .55rem; }
h1 { font-size: clamp(2.5rem, 7.1vw, 6.2rem); line-height: 1; letter-spacing: -.065em; text-wrap: balance; }
em, strong, blockquote { font-family: Fraunces, Georgia, serif; font-style: normal; font-weight: 640; font-variation-settings: "SOFT" 88, "opsz" 72; letter-spacing: -.045em; }
#asiakkaat {
  --soft: Fraunces, Georgia, serif;
  --orange: var(--accent);
  --klik-kerma: var(--paper);
  --cream: var(--paper);
}
#asiakkaat[hidden], #toistin[hidden] { display: none; }
#asiakkaat .spoken-word {
  position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
#asiakkaat .brand-face { display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; }
#asiakkaat button { cursor: pointer; }
#asiakastarinat { scroll-margin-top: 1rem; }
.stories { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(.65rem, 1.4vw, 1.4rem); }
.ebeling { --tint: #f2a9dc; }
.fiksuviini { --tint: #acc17c; }
.puuilo { --tint: #f35c35; }
.autoklinikka { --tint: #f0d4bd; }
.budget-sport { --tint: #bccb92; }
/* An odd last story takes the full row: picture left, result right, so no card stands alone. */
@media (min-width: 781px) {
  .stories > .story-card:last-child:nth-child(odd) { grid-column: 1 / -1; flex-direction: row; }
  .stories > .story-card:last-child:nth-child(odd) > .case-cover { width: calc(50% - clamp(.65rem, 1.4vw, 1.4rem) / 2); flex: none; }
}
.story-card, .feature { background: var(--tint); }
.story-card { display: flex; flex-direction: column; text-decoration: none; }
.case-cover { display: block; width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; }
.story-card > div { flex: 1; display: flex; flex-direction: column; align-items: start; padding: clamp(1rem, 2.2vw, 2rem); }
.story-card .read { margin-top: auto; }
.story-card h2 { font-size: clamp(.92rem, 1.5vw, 1.45rem); line-height: 1.1; }
.story-card p, .lead { margin: .85rem 0; }
.story-card strong, .lead strong, .results strong { display: block; line-height: 1.04; font-size: clamp(2rem, 3.7vw, 3.7rem); }
.story-card p > span, .lead span, .results li > span { display: block; margin-top: .32rem; }
.story-card p > span { font-size: clamp(.85rem, 1.15vw, 1.15rem); line-height: 1.24; }
.read { font-size: .86rem; text-decoration: underline; text-underline-offset: .2em; }
.read span { display: inline-block; transition: transform .2s; }
.story-card:hover .read span { transform: translateX(.25rem); }
.body-copy, .results, .quote { margin-block: clamp(2.6rem, 6vw, 6rem); }
.body-copy h2, .results h2 { font-size: clamp(1.5rem, 3.2vw, 2.85rem); line-height: 1.1; letter-spacing: -.055em; }
.results ul { list-style: none; padding: 0; margin-top: 1.2rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 225px), 1fr)); gap: 1.35rem; }
.back { display: inline-block; margin: .6rem 0 1.1rem; }
.feature { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); align-items: center; }
.headline { padding: clamp(1.2rem, 3.2vw, 3.5rem); }
.feature h1 { font-size: clamp(2.25rem, 4.5vw, 4.75rem); line-height: 1.02; }
.body-copy video { display: block; justify-self: center; width: min(100%, 250px); height: auto; aspect-ratio: 9/16; background: var(--ink); }
.lead { margin: clamp(1.2rem, 2.6vw, 2.8rem) 0 0; max-width: 39ch; }
.body-copy { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.4rem, 6vw, 6rem); }
.body-copy { align-items: center; }
.body-copy section + section { margin-top: clamp(1.5rem, 3.3vw, 3rem); }
.body-copy p { max-width: 52ch; margin-top: .7rem; }
.results li { max-width: 32ch; }
.quote { max-width: 50rem; }
blockquote { font-size: clamp(1.5rem, 3.3vw, 3rem); line-height: 1.15; text-wrap: pretty; }
figcaption, .source { margin-top: .8rem; font-size: .84rem; }
@media (max-width: 780px) {
  .stories { grid-template-columns: 1fr; }
  .feature { grid-template-columns: 1fr; }
}
@media (max-width: 550px) {
  .body-copy { grid-template-columns: minmax(0, 1fr); }
  .body-copy video { width: min(68%, 230px); }
  .story-card p { margin: .6rem 0; }
  .story-card strong { font-size: clamp(1.75rem, 7.5vw, 2.3rem); }
  .back { font-size: .9rem; }
}
@media (max-width: 375px) {
  .feature h1 { font-size: clamp(1.75rem, 9.5vw, 2.1rem); }
}
@media (prefers-reduced-motion: reduce) {
  .read span { transition: none; }
}

/* Story pages, visual version 24.11.2026. Brand rule: cards and buttons are square, no divider lines,
   numbers sit on raw colour bars, orange is always a gradient, the highlight box is only slightly tilted. */
.story-content { --oranssi-liuku: linear-gradient(100deg, #f35c35 0%, #ff8d5e 100%); }
.feature h1 { font-size: clamp(2.4rem, 5.2vw, 5.6rem); }
.lead strong { font-size: clamp(3rem, 7vw, 7.5rem); letter-spacing: -.06em; }
.bars { display: grid; gap: .45rem; margin-bottom: .9rem; max-width: 34rem; }
.bar { position: relative; display: block; height: clamp(26px, 2.6vw, 40px); width: calc(var(--w) * .78); min-width: 10px; background: rgba(32, 27, 32, .22); }
.bar + .bar { background: var(--oranssi-liuku); }
.feature .bar + .bar, .results li:nth-child(4n+1) .bar + .bar { background: var(--ink); }
.bar b { position: absolute; left: 100%; top: 50%; transform: translateY(-50%); margin-left: .45em; white-space: nowrap; font: 640 clamp(1.1rem, 1.8vw, 1.6rem)/1 Fraunces, Georgia, serif; letter-spacing: -.04em; }
.has-bars > strong { display: none; }

.steps { margin-block: clamp(3rem, 7vw, 7rem); }
.steps h2, .results h2 { font-size: clamp(2rem, 4.6vw, 4.4rem); line-height: 1; letter-spacing: -.06em; margin-bottom: clamp(1rem, 2.4vw, 2rem); }
.steps ol { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(.6rem, 1.4vw, 1.4rem); counter-reset: askel; }
.steps li { counter-increment: askel; position: relative; display: grid; align-content: start; }
.steps img { width: 100%; height: auto; aspect-ratio: 4/5; object-fit: cover; object-position: 50% 30%; display: block; background: var(--ink); }
.steps li::before { content: counter(askel, decimal-leading-zero); position: absolute; top: 0; left: 0; z-index: 1; padding: .35em .5em .3em; background: var(--oranssi-liuku); font: 640 clamp(1.3rem, 2.2vw, 2rem)/1 Fraunces, Georgia, serif; letter-spacing: -.04em; }
.steps li:nth-child(2)::before { background: var(--klik-pinkki, #f1acbf); }
.steps li:nth-child(3)::before { background: var(--klik-vihrea, #a8bc78); }
.steps li:nth-child(4)::before { background: var(--ink); color: var(--paper); }
.steps li p { margin-top: .75rem; line-height: 1.38; font-size: clamp(.95rem, 1.15vw, 1.08rem); max-width: 34ch; }
.steps li:not(:has(img)) { padding-top: 3rem; }

.results { margin-block: clamp(3rem, 7vw, 7rem); }
.results ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(.6rem, 1.2vw, 1.1rem); }
.results li { max-width: none; padding: clamp(1.2rem, 2.8vw, 2.6rem); min-height: clamp(11rem, 18vw, 17rem); display: flex; flex-direction: column; justify-content: flex-end; background: var(--oranssi-liuku); }
.results li:nth-child(4n+2) { background: var(--klik-pinkki, #f1acbf); }
.results li:nth-child(4n+3) { background: var(--klik-vihrea, #a8bc78); }
.results li:nth-child(4n+4) { background: var(--ink); color: var(--paper); }
.results li:nth-child(4n+4) .bar { background: rgba(247, 242, 232, .3); }
.results li:nth-child(4n+4) .bar + .bar { background: var(--oranssi-liuku); }
.results li:last-child:nth-child(odd) { grid-column: 1 / -1; }
.results strong { font-size: clamp(3rem, 7vw, 7rem); letter-spacing: -.06em; }
.results li > span:last-child { font-size: clamp(1rem, 1.3vw, 1.2rem); max-width: 38ch; }

.quote { max-width: 62rem; margin-inline: auto; padding: clamp(1.6rem, 4vw, 3.6rem); background: var(--klik-pinkki, #f1acbf); transform: rotate(-1deg); }
.quote blockquote { font-size: clamp(1.3rem, 2.4vw, 2.2rem); line-height: 1.24; }
.quote figcaption { font-size: 1rem; margin-top: 1.2rem; }

.next-story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); align-items: stretch; background: var(--tint); text-decoration: none; color: inherit; margin-top: clamp(3rem, 6vw, 5rem); }
.next-story img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16/9; }
.next-story > span { display: grid; align-content: center; gap: .4rem; padding: clamp(1.2rem, 3vw, 2.6rem); }
.next-story small { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }
.next-story strong { font-size: clamp(2rem, 4vw, 3.6rem); line-height: 1; }
.next-story:hover strong { text-decoration: underline; text-underline-offset: .12em; }
@media (max-width: 900px) { .steps ol { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1.6rem; } }
@media (max-width: 600px) {
  .results ul { grid-template-columns: 1fr; }
  .results li:last-child:nth-child(odd) { grid-column: auto; }
  .results li { min-height: 0; }
  .next-story { grid-template-columns: 1fr; }
  .quote { transform: rotate(-.6deg); }
}
@media (prefers-reduced-motion: reduce) { .quote { transform: none; } }
#edellinen, #seuraava { border-radius: 0; }

/* Story video sits in the same phone frame as the homepage videos */
.story-phone { justify-self: center; width: min(100%, 300px); cursor: pointer; }
.story-play { position: absolute; z-index: 2; left: 50%; top: 50%; width: clamp(56px, 6vw, 72px); aspect-ratio: 1; transform: translate(-50%, -50%); display: grid; place-items: center; border-radius: 50%; background: rgba(32, 27, 32, .82); color: #fff; transition: opacity .2s; }
.story-play svg { width: 46%; margin-left: 6%; }
.story-phone[aria-pressed="true"] .story-play { opacity: 0; }
.story-phone:focus-visible { outline: 3px solid var(--ink); outline-offset: 6px; }
@media (max-width: 550px) { .story-phone { width: min(72%, 260px); } }

/* Quote: straight box, one sentence per line, the customer's key sentence large */
.quote { transform: none !important; max-width: 64rem; margin-inline: 0; }
.quote blockquote { display: grid; gap: .7em; font-size: inherit; }
.quote .q-line { font: 400 clamp(1.05rem, 1.5vw, 1.35rem)/1.4 Aeonik, Arial, sans-serif; letter-spacing: 0; max-width: 46ch; }
.quote .q-lead { font: 640 clamp(1.7rem, 3.4vw, 3.1rem)/1.08 Fraunces, Georgia, serif; letter-spacing: -.045em; max-width: 24ch; text-wrap: balance; }

/* Real iPhone 18 Pro Max frame (Ville 25.11.2026): the same Blender render of the Sketchfab model as on the homepage
   (tyokalut/iphone-malli). The render sits on top of the video, so its Dynamic Island and rim cover the screen edge.
   The screen aperture is measured from the render. No shadows. */
.iphone { position: relative; display: block; padding: 0; border: 0; background: none; aspect-ratio: 1579 / 3267; border-radius: 0; }
.iphone::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: image-set(url("../vaikutus/kuvat/iphone-18-pro-max-etu-800.webp") 1x, url("../vaikutus/kuvat/iphone-18-pro-max-etu-1600.webp") 2x) center / 100% 100% no-repeat; }
.iphone-naytto { position: absolute; display: block; left: 3.6732%; top: 1.4998%; width: 92.5902%; height: 97.0309%; padding: 0; border-radius: 15.1163% / 7.6341%; background: #000; overflow: hidden; }
.iphone-naytto video, .iphone-naytto img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.iphone-saari, .iphone-napit { display: none; }

/* The orange masthead keeps equal space above and below, so the fixed contact bubble sits inside the bar */
.site-masthead { padding-bottom: var(--gutter); }

/* Logo wall at the bottom of the Työt page, after hasanpartners.fi/about "Brands we've worked with" (Ville 25.11.2026):
   heading on the left, five columns of monochrome logos, generous gaps, no boxes. Colour returns on hover. */
.logo-wall {margin: clamp(72px, 10vw, 160px) 0 clamp(48px, 7vw, 110px); padding-top: clamp(40px, 5vw, 76px); border-top: 1px solid rgba(32, 27, 32, .18);}
.logo-wall h2 {max-width: 14ch; margin: 0 0 clamp(40px, 6vw, 96px); font: 300 clamp(2.2rem, 4.6vw, 4.4rem)/1 Aeonik, Arial, sans-serif; letter-spacing: -.045em;}
.logo-wall h2 em {font: 610 1em/1 var(--soft, Georgia, serif); font-variation-settings: "opsz" 72, "SOFT" 88, "WONK" 1; letter-spacing: -.04em;}
.logo-wall ul {display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(36px, 5vw, 64px) clamp(12px, 1.6vw, 24px); margin: 0; padding: 0; list-style: none; align-items: center;}
.logo-wall li {display: grid; place-items: center; height: clamp(40px, 4.2vw, 56px);}
.logo-wall img {display: block; width: min(78%, 160px); height: clamp(40px, 4.2vw, 56px); object-fit: contain; filter: grayscale(1) contrast(1.1); mix-blend-mode: multiply; opacity: .9; transition: filter .25s ease, opacity .25s ease;}
.logo-wall li:hover img {filter: none; opacity: 1;}
.logo-wall li.vaalea img, .logo-wall li.vaalea:hover img {filter: brightness(0);}
@media (max-width: 900px) {.logo-wall ul {grid-template-columns: repeat(3, minmax(0, 1fr));}}
@media (max-width: 520px) {.logo-wall ul {grid-template-columns: repeat(2, minmax(0, 1fr));}}

/* Long Swedish compounds such as "Infrastrukturbyggaren" must wrap on phones (red team 25.11.2026); the break point is a soft hyphen in asiakastarinat.json. */
h1, h2 { hyphens: manual; overflow-wrap: break-word; }

/* Contact prompt at the end of every client story, right after the results and quote (red team 25.11.2026:
   the buyer is most convinced here). The link opens the shared contact dialog (#yhteys). Square, no shadows. */
.story-cta { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: clamp(1.4rem, 3vw, 2.6rem); margin-top: clamp(3rem, 6vw, 5rem); padding: clamp(1.8rem, 4.5vw, 4rem); background: var(--orange, #f35c35); color: #201b20; }
.story-cta h2 { max-width: 18ch; margin: 0; font: 300 clamp(2rem, 4.4vw, 4.2rem)/1.02 Aeonik, Arial, sans-serif; letter-spacing: -.045em; text-wrap: balance; }
.story-cta h2 em { font: 610 1em/1 var(--soft, Georgia, serif); font-variation-settings: "opsz" 72, "SOFT" 88, "WONK" 1; letter-spacing: -.04em; }
.story-cta-button { display: inline-flex; align-items: center; gap: .6em; min-height: 52px; padding: .9rem 1.5rem; border-radius: 0; background: #201b20; color: #fff; font: 500 1.05rem/1 Aeonik, Arial, sans-serif; text-decoration: none; transition: background .2s; }
.story-cta-button:hover { background: #000; }
.story-cta-button:focus-visible { outline: 3px solid #201b20; outline-offset: 4px; }

/* ===== Client story layout 25.11.2026, from the best agency case pages (W+K, Born Social, Billion Dollar Boy,
   Hasan & Partners, Mischief, Rethink, Day One). The work plays at once beside the headline, three figures
   follow, then the story, the recipe as numbered cards, a wall of episodes, the customer's words, contact and
   three more stories. Klik's own look: cream, ink and orange, Aeonik with Fraunces, square cards, no shadows. */
.case { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(3.2rem, 7vw, 7rem); }
.case > *, .case-hero > * { min-width: 0; }
.case-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 340px); gap: clamp(1.5rem, 5vw, 6rem); align-items: center; margin-top: clamp(.6rem, 2vw, 1.6rem); }
.case-head h1 { font-size: clamp(2.6rem, 6.4vw, 6.4rem); line-height: .98; letter-spacing: -.06em; max-width: 13ch; }
.case-tags { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: clamp(1rem, 2vw, 1.6rem); }
.case-tags span { display: inline-flex; align-items: center; min-height: 34px; padding: .3rem .75rem; border: 1px solid var(--ink); font-size: .9rem; line-height: 1; }
.case-tags span:first-child { background: var(--ink); color: var(--paper); }
.case-phone { width: 100%; cursor: pointer; }
.case-sound { position: absolute; z-index: 2; right: 9%; bottom: 5%; display: grid; place-items: center; width: 48px; height: 48px; background: var(--paper); color: var(--ink); }
.case-sound svg { width: 26px; }
.case-phone[aria-pressed="false"] .case-sound .aalto { opacity: .25; }
/* Figures are split by colour, not by lines (brand set 4.0: no divider lines). */
.case-figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: clamp(.6rem, 1vw, 1rem); padding: 0; list-style: none; }
.case-figures li { display: grid; align-content: start; gap: .6rem; padding: clamp(1.2rem, 2.4vw, 2rem); background: #efe7d8; }
.case-figures li:nth-child(2) { background: var(--ink); color: var(--paper); }
.case-figures li:nth-child(3) { background: var(--accent); }
.case-figures li:nth-child(2) .bar { background: rgba(247, 242, 232, .3); }
.case-figures strong { font-size: clamp(2.6rem, 5.4vw, 5.2rem); line-height: .95; }
.case-figures span { max-width: 30ch; font-size: clamp(1rem, 1.2vw, 1.12rem); }
.case-figures .has-bars > strong { display: none; }
.case-story { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.5rem, 5vw, 6rem); }
.case-story h2, .case-recipe h2, .case-wall h2, .case-more h2 { margin-bottom: 1rem; font-size: clamp(1.5rem, 2.6vw, 2.4rem); letter-spacing: -.035em; line-height: 1.05; }
.case-story p { max-width: 38rem; font-size: clamp(1.08rem, 1.45vw, 1.3rem); line-height: 1.5; }
.case-recipe ol { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: clamp(.6rem, 1vw, 1rem); padding: 0; list-style: none; }
.case-recipe li { display: grid; align-content: start; gap: 1.4rem; min-height: 12rem; padding: clamp(1.1rem, 2vw, 1.6rem); background: #efe7d8; }
.case-recipe li:nth-child(2) { background: var(--ink); color: var(--paper); }
.case-recipe li:nth-child(3) { background: var(--accent); }
.case-no { font: 640 clamp(2rem, 3vw, 2.8rem)/1 Fraunces, Georgia, serif; letter-spacing: -.04em; }
.case-recipe p { font-size: 1.05rem; line-height: 1.42; }
.case-wall ul { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 240px); justify-content: start; gap: clamp(.8rem, 1.6vw, 1.6rem); margin: 0; padding: 0 0 .6rem; list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.case-wall li { display: grid; gap: .7rem; scroll-snap-align: start; max-width: 260px; }
.case-wall p { font-size: .95rem; }
.case-wall p a { text-decoration: none; }
.case-wall p a:hover strong { text-decoration: underline; }
.case-wall strong { font-size: 1.15rem; }
.case .quote { margin: 0; }
.case .story-cta { margin-top: 0; }
.case-more > div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.8rem, 1.6vw, 1.6rem); }
.case-card { display: grid; align-content: start; text-decoration: none; color: inherit; background: #efe7d8; }
.case-card img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.case-card > span { display: grid; gap: .35rem; padding: 1rem 1.1rem 1.3rem; }
.case-card small { font-size: .9rem; }
.case-card strong { font-size: clamp(1.8rem, 2.6vw, 2.5rem); line-height: 1; }
.case-card > span > span { font-size: .98rem; line-height: 1.35; }
.case-card:hover strong, .case-card:focus-visible strong { color: var(--accent); }
.case-card:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }
.case + .source, .case .source { margin-top: -2rem; }
@media (max-width: 860px) {
  .case-hero { grid-template-columns: 1fr; }
  .case-phone { width: min(72vw, 300px); justify-self: center; }
  .case-story { grid-template-columns: 1fr; }
  .case-wall ul { grid-auto-columns: 44vw; }
  .case-more > div { grid-template-columns: 1fr; }
  .case-recipe li { min-height: 0; gap: .8rem; }
  .case-recipe ol { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .case-card strong { transition: none; } }

/* ===== Bigger visual pass 25.11.2026 (Ville: "tee vielä isommin visuaalinen"). Full-bleed bands carry the page:
   the cover photo behind a huge headline, the lead figure as a giant number on orange, the episodes on ink.
   The photo is dimmed evenly as a whole, so no separate darkening patch shows behind the text. */
main { overflow-x: clip; }
.case-hero, .case-lead, .case-wall { width: 100vw; margin-left: calc(50% - 50vw); }
.case-hero { position: relative; isolation: isolate; min-height: min(92vh, 1000px); margin-top: clamp(.4rem, 1vw, 1rem); padding: clamp(2rem, 6vw, 6rem) var(--edge); grid-template-columns: minmax(0, 1fr) minmax(240px, 400px); align-items: center; color: var(--paper); background: var(--ink); }
.case-hero > .case-cover { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.08) brightness(.45); }
.case-hero .case-head h1 { font-size: clamp(3rem, 8.4vw, 9.6rem); line-height: .92; max-width: 11ch; color: var(--paper); }
.case-hero .case-tags span { border-color: var(--paper); }
.case-hero .case-tags span:first-child { background: var(--paper); color: var(--ink); }
.case-lead { display: grid; gap: clamp(.8rem, 1.6vw, 1.4rem); padding: clamp(2.4rem, 7vw, 7rem) var(--edge); background: var(--accent); }
.case-lead > strong { font-size: clamp(4.6rem, 19vw, 21rem); line-height: .82; letter-spacing: -.06em; }
.case-lead > span { max-width: 34ch; font-size: clamp(1.2rem, 2.1vw, 1.9rem); line-height: 1.25; }
.case-lead.has-bars > strong { display: none; }
.case-lead .bars { max-width: none; gap: .7rem; }
.case-lead .bar { height: clamp(44px, 6vw, 96px); width: calc(var(--w) * .62); background: rgba(32, 27, 32, .25); }
.case-lead .bar + .bar { background: var(--ink); }
.case-lead .bar b { font-size: clamp(2.4rem, 6.4vw, 6.6rem); }
.case-lead + .case-figures { margin-top: calc(-1 * clamp(3.2rem, 7vw, 7rem) + clamp(.6rem, 1vw, 1rem)); }
.case-figures li:nth-child(1) { background: #efe7d8; color: var(--ink); }
.case-figures li:nth-child(2) { background: var(--ink); color: var(--paper); }
.case-figures strong { font-size: clamp(3rem, 6.6vw, 6.8rem); }
.case-story p { font-size: clamp(1.15rem, 1.75vw, 1.6rem); line-height: 1.45; }
.case-story h2 { font-size: clamp(1.8rem, 3.4vw, 3.4rem); }
.case-wall { padding: clamp(2.6rem, 6vw, 6rem) var(--edge); background: var(--ink); color: var(--paper); }
.case-wall h2 { font-size: clamp(2.2rem, 5vw, 5rem); margin-bottom: clamp(1.2rem, 3vw, 2.6rem); }
.case-wall ul { grid-auto-columns: minmax(200px, 300px); }
.case-wall li { max-width: 300px; }
.case-wall p { font-size: 1.05rem; }
.case-wall strong { font-size: 1.5rem; }
.case .quote .q-lead { font-size: clamp(2.2rem, 5.2vw, 5.4rem); max-width: 20ch; }
@media (max-width: 860px) {
  .case-hero { min-height: 0; grid-template-columns: 1fr; padding-block: 2.4rem 2.8rem; }
  .case-hero .case-phone { width: min(70vw, 300px); }
  .case-lead > strong { font-size: clamp(4rem, 23vw, 9rem); }
  .case-wall ul { grid-auto-columns: 62vw; }
}
/* The giant figure joins the hero directly; the recipe matches the larger scale. */
.case-hero + .case-lead { margin-top: calc(-1 * clamp(3.2rem, 7vw, 7rem)); }
.case-recipe h2 { font-size: clamp(1.8rem, 3.4vw, 3.4rem); }
.case-recipe li { min-height: 15rem; }
.case-recipe p { font-size: clamp(1.05rem, 1.35vw, 1.3rem); }
.case-no { font-size: clamp(2.6rem, 4.4vw, 4.4rem); }
@media (max-width: 860px) { .case-recipe li { min-height: 0; } }
/* A figure such as "228 000+" never breaks at its thousands space; the size keeps it on one line. */
.case-lead > strong { white-space: nowrap; font-size: min(19vw, 21rem); padding-top: .08em; }
@media (max-width: 860px) { .case-lead > strong { font-size: 17vw; } }
/* No empty strip under the menu (Ville 25.11.2026: "miksi menun jälkeen on tyhjä viivakohta?"): the photo starts
   right at the orange bar and the way back sits on the photo, top left. */
.case-hero { margin-top: 0; }
.case-back { position: absolute; z-index: 1; top: clamp(1rem, 2.2vw, 2rem); left: var(--edge); margin: 0; color: var(--paper); font-size: .95rem; }
.case-back:focus-visible { outline-color: var(--paper); }

/* Transparent top bar on client stories (Ville 25.11.2026, after hasanpartners.fi): no orange bar; the bar floats
   over the page and its text, logo and contact button turn light or dark to match what lies beneath
   (data-tone is set by the script in the story template). */
body:has(.case) .site-masthead { position: fixed; inset: 0 0 auto; z-index: 15; background: transparent; color: var(--ink); transition: color .25s ease; }
body:has(.case) .site-masthead .logo { transition: filter .25s ease; }
body:has(.case) .site-masthead[data-tone="light"] { --klik-muste: var(--paper); --klik-kerma: var(--ink); color: var(--paper); }
body:has(.case) .site-masthead[data-tone="light"] .logo { filter: brightness(0) invert(1); }
body:has(.case) .case-hero { padding-top: calc(var(--masthead-h, 110px) + clamp(2.6rem, 5vw, 5rem)); }
body:has(.case) .case-back { top: calc(var(--masthead-h, 110px) + .4rem); }
@media (prefers-reduced-motion: reduce) { body:has(.case) .site-masthead, body:has(.case) .site-masthead .logo { transition: none; } }
/* The compact bar that follows the scroll (kielet.css, html.valikko-kiinni) stays transparent on stories too. */
html.valikko-kiinni #alku:has(.case) > main > header { background: transparent; color: var(--klik-muste); }
/* The bar copies the colour of the section beneath it (set by the story script), so it reads as transparent
   while text scrolls cleanly under it; over the cover photo it stays see-through. */
body:has(.case) .site-masthead, html.valikko-kiinni #alku:has(.case) > main > header { background: var(--bar-fill, transparent); transition: color .25s ease, background-color .25s ease; }
/* Ville 25.11.2026: "siis ei taustapalkkia ollenkaan menussa". The bar has no background at any point; only its
   text, logo and button change between light and dark with the surface beneath. */
body:has(.case) .site-masthead, html.valikko-kiinni #alku:has(.case) > main > header { background: transparent; }

/* Video strip = the homepage's work strip (rakenne-fi.css .rf-track / .rf-card / .rf-nav): tall 9:16 video cards
   without phone frames, scroll-snap, arrow buttons beside the heading (Ville 25.11.2026: "sama rullaussysteemi kuin
   etusivulla", "ei puhelinreunuksia"). Each card has a sound button; the views sit at the bottom like the results. */
.case-wall-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: clamp(1.2rem, 3vw, 2.6rem); }
.case-wall-head h2 { margin: 0; }
.case-wall .rf-nav { display: flex; gap: 8px; }
.case-wall .rf-nav button { width: 48px; height: 48px; border: 0; border-radius: 0; background: var(--paper); color: var(--ink); font: 500 19px/1 Aeonik, Arial, sans-serif; cursor: pointer; }
.case-wall .rf-nav button:hover { background: var(--accent); }
.case-track { display: flex; gap: clamp(20px, 3vw, 48px); overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; padding-bottom: 14px; scrollbar-width: thin; margin: 0; }
.case-clip { position: relative; flex: 0 0 clamp(250px, 25vw, 360px); aspect-ratio: 9 / 16; margin: 0; overflow: hidden; background: #000; color: var(--paper); scroll-snap-align: start; }
.case-clip video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.case-clip .rf-card-shade { position: absolute; inset: 55% 0 0; background: linear-gradient(to bottom, rgba(32,27,32,0), rgba(32,27,32,.7)); pointer-events: none; }
.case-clip .rf-card-body { position: absolute; left: 0; right: 0; bottom: 0; padding: clamp(16px, 1.6vw, 24px); }
.case-clip .rf-card-body a { color: inherit; text-decoration: none; display: grid; gap: 2px; }
.case-clip .rf-card-result { font: 600 clamp(30px, 2.6vw, 42px)/.95 Fraunces, Georgia, serif; letter-spacing: -.03em; }
.case-clip .rf-card-explain { font: 400 15px/1.3 Aeonik, Arial, sans-serif; }
.clip-sound { position: absolute; z-index: 2; top: 12px; right: 12px; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 0; background: var(--paper); color: var(--ink); cursor: pointer; }
.clip-sound svg { width: 24px; }
.clip-sound[aria-pressed="false"] .aalto { opacity: .25; }
.clip-sound:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
@media (max-width: 600px) { .case-clip { flex-basis: 72vw; } .case-wall .rf-nav { display: none; } }

/* The orange block holds the same simple form as the footer: message and email, sent straight away. */
.story-cta { align-items: center; }
.story-cta-form { flex: 1 1 min(100%, 30rem); max-width: 36rem; color: var(--ink); }
.story-cta-form .rf-f { border-color: var(--ink); }
.story-cta-form .rf-f :is(input, textarea) { border-bottom-color: var(--ink); color: var(--ink); }
.story-cta-form button[type=submit] { background: var(--ink) !important; color: var(--paper) !important; border-color: var(--ink) !important; }
.story-cta-form button[type=submit]:hover { background: #000 !important; }
.story-cta-form :is(input, textarea):focus-visible { outline-color: var(--ink); }
.story-cta-form p, .story-cta-form a { color: var(--ink); }

/* 3D phone (vaikutus/puhelin-3d.js): the canvas takes the phone's place; the flat frame and screen stay in the page
   underneath (the video still feeds the 3D screen) but are hidden, and the sound button stays on top. */
.case-phone.on-3d { overflow: visible; }
.case-phone.on-3d::after, .case-phone.on-3d .iphone-naytto { opacity: 0; }
.case-phone .puhelin-3d { position: absolute; z-index: 1; left: -30%; top: -12%; width: 160%; height: 124%; pointer-events: none; }
.case-phone.on-3d .case-sound { z-index: 3; }
.story-cta-form .rf-f input { border: 0; border-bottom: 1px solid var(--ink); border-radius: 0; background: transparent; }
/* The fixed bar always stays above the 3D phone and the page; the phone never covers the menu. */
body:has(.case) .site-masthead { z-index: 40; }
body:has(.case) .menu-contact { z-index: 41; }
/* With the 3D phone the sound mark is drawn on the phone's screen, so the flat one is hidden. The strip's sound
   buttons are smaller (34 px) but keep a 44 px click area. */
.case-phone.on-3d .case-sound { display: none; }
.clip-sound { width: 34px; height: 34px; top: 10px; right: 10px; }
.clip-sound svg { width: 19px; }
.clip-sound::after { content: ""; position: absolute; inset: -5px; }
/* The hero phone always fits inside the cover, sound mark included: its width follows the screen height. */
.case-hero .case-phone { width: min(100%, 400px, calc((100svh - var(--masthead-h, 110px) - 7rem) * .483)); justify-self: center; }
@media (max-width: 860px) { .case-hero .case-phone { width: min(70vw, 300px); } }

/* Before and after rows (Ville 25.11.2026: "vasen laita on sekava"): a fixed label column, the bar, then the value
   at the end of the bar, all on one baseline. The measuring date sits apart in small type under the caption. */
.bars { display: grid; gap: .55rem; width: 100%; max-width: none; margin-bottom: 1rem; }
.bar-row { display: grid; grid-template-columns: 7.5em minmax(0, 1fr); align-items: center; column-gap: .8rem; }
.bar-row small { font: 500 .85rem/1.1 Aeonik, Arial, sans-serif; letter-spacing: 0; opacity: .75; }
.bar-track { display: flex; align-items: center; gap: .55rem; min-width: 0; }
.bar-row .bar { position: static; flex: 0 0 auto; height: clamp(22px, 2.2vw, 34px); width: calc(var(--w) * .68); min-width: 8px; background: rgba(32, 27, 32, .22); }
.bar-row + .bar-row .bar { background: var(--oranssi-liuku, var(--accent)); }
.bar-row b { position: static; transform: none; margin: 0; white-space: nowrap; font: 640 clamp(1.15rem, 1.7vw, 1.55rem)/1 Fraunces, Georgia, serif; letter-spacing: -.04em; }
.measured { display: block; margin-top: .45rem; font: 400 .8rem/1.3 Aeonik, Arial, sans-serif; opacity: .6; }
.case-figures li:nth-child(2) .bar-row .bar { background: rgba(247, 242, 232, .3); }
.case-figures li:nth-child(2) .bar-row + .bar-row .bar { background: var(--accent); }
.case-lead .bar-row { grid-template-columns: 10em minmax(0, 1fr); }
.case-lead .bar-row small { font-size: clamp(.95rem, 1.3vw, 1.2rem); opacity: .85; }
.case-lead .bar-row .bar { height: clamp(40px, 5vw, 84px); background: rgba(32, 27, 32, .25); }
.case-lead .bar-row + .bar-row .bar { background: var(--ink); }
.case-lead .bar-row b { font-size: clamp(2rem, 5.4vw, 5.6rem); }
/* Episode facts: an Organic tag when no paid reach is recorded, then engagement, shares and likes. */
.case-clip .rf-card-shade { inset: 38% 0 0; background: linear-gradient(to bottom, rgba(32,27,32,0), rgba(32,27,32,.86)); }
.clip-organic { justify-self: start; margin-bottom: 6px; padding: 3px 7px; background: var(--accent); color: var(--ink); font: 600 12px/1.2 Aeonik, Arial, sans-serif; letter-spacing: .02em; text-transform: uppercase; }
.clip-stats { display: flex; flex-wrap: wrap; gap: 2px 12px; margin-top: 8px; font: 400 13px/1.35 Aeonik, Arial, sans-serif; }
.clip-stats strong { font: 600 14px/1 Aeonik, Arial, sans-serif; letter-spacing: 0; }
@media (max-width: 600px) {
  .bar-row, .case-lead .bar-row { grid-template-columns: 5.6em minmax(0, 1fr); column-gap: .6rem; }
  .bar-row small, .case-lead .bar-row small { font-size: .8rem; }
  .case-lead .bar-row .bar { height: 34px; width: calc(var(--w) * .55); }
  .case-lead .bar-row b { font-size: clamp(1.6rem, 8vw, 2.4rem); }
}

/* ===== Vertical card picture 30.11.2026 (Ville: "boksin oikeassa laidassa on pystykuva aina jotta voimme hyödyntää
   meidän pystysisältöjä"). Text left, a 9:16 frame from the client's own vertical video right, never scaled up. */
.stories > .story-card, .stories > .story-card:last-child:nth-child(odd) { flex-direction: row; align-items: stretch; }
.stories > .story-card > div { flex: 1 1 auto; min-width: 0; }
.stories > .story-card > .story-pysty { flex: none; display: block; width: 38%; max-width: 300px; height: auto; aspect-ratio: 9/16; object-fit: cover; align-self: flex-start; }
@media (min-width: 781px) {
  .stories > .story-card:last-child:nth-child(odd) { grid-column: auto; }
}
@media (max-width: 550px) {
  .stories > .story-card > .story-pysty { width: 42%; }
}

/* ===== Orange as the lead colour 1.12.2026 (Ville: "oranssi on nyt se pääväri millä mennään ja vihreä + pinkki vain
   erityistilanteissa"). Results and the customer quote use orange, ink and cream only; orange is a flat colour, as on
   the homepage. The quote spans the full column like the blocks around it. */
.story-content { --oranssi-liuku: var(--accent, #f35c35); }
.case .results { margin-block: 0; }
.case .results li:nth-child(4n+1) { background: var(--accent, #f35c35); color: var(--ink); }
.case .results li:nth-child(4n+2) { background: var(--ink); color: var(--paper); }
.case .results li:nth-child(4n+3) { background: #efe7d8; color: var(--ink); }
.case .results li:nth-child(4n+4) { background: var(--accent, #f35c35); color: var(--ink); }
.case .results li:nth-child(4n+2) .bar { background: rgba(247, 242, 232, .3); }
.case .quote { max-width: none; margin-inline: 0; background: var(--ink); color: var(--paper); padding: clamp(2rem, 5vw, 5rem); }
.case .quote .q-lead { color: var(--accent, #f35c35); }
.case .quote figcaption { color: rgba(247, 242, 232, .78); }
/* Long Finnish words in the story headline break at a syllable with a hyphen, never mid-letter
   (Autoklinikka: "Pysäköintipäivästä"). */
.case-head h1 { max-width: 15ch; overflow-wrap: normal; word-break: normal; hyphens: auto; -webkit-hyphens: auto; }
/* Headline column wide enough for "ennätysmäärän" on desktop; hyphenate only long words, with at least five letters
   on each side of the break. */
.case-hero .case-head h1 { max-width: 17ch; hyphenate-limit-chars: 12 5 5; }
