/* iPhone 18 Pro Max front. The 1320 x 2868 display is centered in a 78 x 163.4 mm body. */
.videopuhelin, .frame.videopuhelin {
  aspect-ratio: 78 / 163.4;
  border-radius: 15.5% / 7.4%;
  background: linear-gradient(113deg,#b1afad 0%,#6c6c6c 9%,#bcbab7 34%,#636261 62%,#b3b1ad 88%,#6c6a67);
}
.videopuhelin::before {
  content: ""; position: absolute; inset: .65% 1.35%; border-radius: 14.8% / 7.05%;
  background:#0c0c0d;
}
.videopuhelin .puhelinnaytto {
  left:3.2776%; width:93.4448%; top:1.5411633%; height:96.9176734%;
  border-radius:13.2% / 6.08%; background:#101010;
}
.videopuhelin .puhelinrunko { background:none; border-radius:inherit; }
.videopuhelin .puhelinrunko::before {
  content:""; position:absolute; top:3%; left:40.25%; width:19.5%; height:2.48%;
  border-radius:999px; background:#030303;
}
.videopuhelin .puhelinnaytto > :is(img,video,canvas):not(.local-picture) {
  position:absolute;inset:0;display:block;width:100%;height:100%;max-width:none;max-height:none;
  object-fit:cover;object-position:center;translate:none;
}
.videopuhelin .puhelinnaytto video::cue { font-size:75%; }
.video-stats {
  /* TikTok In-Feed Standard LTR, expressed in the 720 x 1280 video plane. */
  --side-inset:5.5%;
  --action-start:88.1%;
  --action-width:13%;
  --rail-edge:1%;
  position:absolute; z-index:5; inset:0;
  width:100%; height:100%; container-type:inline-size; pointer-events:none;
  color:white; font-family:Aeonik,Arial,sans-serif; font-variant-numeric:tabular-nums;
  text-align:center; letter-spacing:normal; font-style:normal; font-weight:600; line-height:1.05;
}
.puhelinnaytto:has(.local-picture) .video-stats {display:none;}
.puhelinnaytto video[controlslist~=nofullscreen]::-webkit-media-controls-fullscreen-button {display:none;}
.video-full {color:inherit;text-decoration:underline;min-height:44px;padding-inline:6px;}
.case .video-full {display:block;margin:-60px auto 45px;}
/* The type and action rail scale with the video, including small gallery phones. */
.video-stats {
  font-family:-apple-system,BlinkMacSystemFont,"Helvetica Neue",Arial,sans-serif;
  background:linear-gradient(to top,rgba(10,9,10,.76),rgba(10,9,10,.40) 10%,transparent 23%);
  text-shadow:0 .2cqw .8cqw rgba(0,0,0,.95),0 0 1.6cqw rgba(0,0,0,.6);
}
.video-rate {
  position:static;display:flex;flex-wrap:wrap;align-items:baseline;gap:.8cqw 1.2cqw;
  text-align:left;color:white;
}
.video-rate small,.video-total small {font:600 2.95cqw/1.13 -apple-system,BlinkMacSystemFont,Arial,sans-serif;}
.video-rate b {font:750 6.3cqw/.98 -apple-system,BlinkMacSystemFont,Arial,sans-serif;letter-spacing:-.035em;}
.video-rail {
  position:absolute;right:var(--rail-edge);bottom:4.3%;width:var(--action-width);
  display:grid;grid-template-columns:minmax(0,1fr);justify-items:center;gap:2.1cqw;color:white;
}
.video-rail .metric {display:grid;justify-items:center;gap:.5cqw;font:700 3.8cqw/1.08 -apple-system,BlinkMacSystemFont,Arial,sans-serif;white-space:nowrap;}
.video-rail svg {width:7cqw;height:7cqw;display:block;filter:drop-shadow(0 .3cqw .6cqw #2229);}
.video-total {
  position:absolute;left:var(--side-inset);bottom:4.3%;max-width:65%;color:#fff;text-shadow:inherit;
  display:grid;justify-items:start;gap:.85cqw;padding:0;text-align:left;letter-spacing:normal;
}
button.video-total {pointer-events:auto;}
.video-total b {font:750 8.2cqw/.98 -apple-system,BlinkMacSystemFont,Arial,sans-serif;letter-spacing:-.05em;}
button.video-total small::after {content:" ⌃";font-weight:700;}
.frame .puhelinnaytto::after,.phone-deck .puhelinnaytto::after,.work-card .puhelinnaytto::after {content:none;}
.sr-only {position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;}
.transport-time {white-space:nowrap;font-variant-numeric:tabular-nums;}
.transport-seek {min-width:0;flex:1;height:14px;accent-color:var(--klik-oranssi,#f35c35);cursor:pointer;}
.transport-cc[aria-pressed=true] {color:var(--klik-oranssi,#f35c35)!important;}
.player-fallback {position:absolute;z-index:6;left:50%;top:46%;transform:translateX(-50%);background:#161316;color:white;padding:.5em;text-align:center;}
.channel-sheet {
  position:absolute;z-index:7;inset:auto 0 0;padding:8% 8% 18%;background:rgba(21,17,21,.98);color:white;text-align:left;
  font:500 clamp(13px,3.7cqw,18px)/1.3 -apple-system,BlinkMacSystemFont,Arial,sans-serif;box-shadow:0 -2px 24px #0004;
}
.channel-sheet h3 {font-size:1.4em;font-weight:650;line-height:1.2;letter-spacing:-.03em;margin:0 0 .7em;}
.channel-sheet dl {display:grid;grid-template-columns:auto 1fr;align-items:start;gap:.65em .5em;margin:0;}
.channel-sheet dd {margin:0;text-align:right;}.channel-sheet dd small {display:block;opacity:.8;font-size:.78em;}
.channel-sheet dd a {color:#fff;display:inline;margin:0;text-decoration:underline;text-underline-offset:.18em;}
.channel-sheet .sheet-close {position:absolute;top:3%;right:6%;}
.case-player .channel-sheet .sheet-close {width:32px;height:32px;color:#fff;}.case-player .sheet-close svg {width:18px;}
.case-player .channel-sheet {font-size:14px;}


/* The credit belongs to its phone and follows it through every gallery layout. */
.phone-credit {
  position:absolute;top:calc(100% + 7px);left:50%;transform:translateX(-50%);width:112%;
  color:var(--klik-muste,#201b20);display:grid;justify-items:center;align-content:start;gap:2px;
  text-align:center;font-family:Aeonik,Arial,sans-serif;font-style:normal;letter-spacing:0;line-height:1.12;
}
.credit-mark {display:grid;place-items:center;height:20px;padding:2px 5px;width:fit-content;max-width:86%;}
.phone-credit .credit-mark img {position:static;display:block;width:auto;height:100%;max-width:76px;max-height:16px;object-fit:contain;}
.credit-value {text-wrap:balance;font-size:clamp(20px,1.7vw,30px);line-height:1;font-weight:700;letter-spacing:-.026em;}
.credit-average {font-size:clamp(10px,.78vw,13px);font-weight:500;}
.credit-numbers {font-size:clamp(10px,.78vw,13px);font-weight:500;opacity:.8;}
.credit-source {color:inherit;font-size:clamp(9px,.68vw,11px);font-weight:400;overflow-wrap:anywhere;line-height:1.15;}
.rolling .stage .frame {top:calc(50% - 47px);height:calc(100% - 101px);}
.rolling .stage {height:clamp(300px,57svh,640px);}
.stage.line-up {padding-bottom:95px;}
.stage:not(.line-up) .frame {margin-top:-16px;}
.rolling .stage:not(.line-up) .frame {margin-top:0;}
.stage:not(.line-up) .frame .phone-credit {pointer-events:none;}
.stage:not(.line-up) .frame {overflow:visible;}
.work-card .videopuhelin {margin-bottom:90px;}
.phone-deck {margin-bottom:88px;}
.phone-deck .back-phone .phone-credit {display:none;}
.phone-deck:has(.back-phone) {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.75fr) minmax(0,1fr);align-items:center;gap:4px;perspective:none;transform-style:flat;}
.phone-deck:has(.back-phone) .sample-link {grid-area:1/2;width:100%;}
.phone-deck #takapuhelimet .back-phone {position:relative;inset:auto;transform:none;translate:none;width:100%;height:auto;grid-area:1/1;align-self:center;}
.phone-deck #takapuhelimet .back-phone:nth-child(2) {grid-area:1/3;}
.phone-deck #takapuhelimet .back-phone .phone-credit {display:none;}
.phone-deck .back-phone .credit-mark {max-width:85%;}
.phone-deck .back-phone .credit-mark img {max-width:100%;}
.phone-deck .back-phone .credit-value {text-wrap:balance;font-size:clamp(10px,.9vw,15px);}
.phone-deck .back-phone .credit-average,.phone-deck .back-phone .credit-numbers,.phone-deck .back-phone .credit-source {font-size:clamp(9px,.69vw,11px);}
.case .case-player {margin-bottom:115px;}
.channel-sheet {max-height:85%;overflow-y:auto;overscroll-behavior:contain;}
.channel-sheet dd small {font-size:.75em;}
.channel-sheet .metric-comparisons {font-size:.83em;margin-top:1.2em;}
.channel-sheet .metric-comparisons dt {font-weight:600;}
@media(max-width:630px) {
  .rolling .stage {height:clamp(300px,52svh,520px);}
  .phone-credit {width:108%;}
  .client-film:has(.back-phone) {grid-column:1/-1;}
  .phone-deck:has(.back-phone) {max-width:430px;margin-inline:auto;}
}

@media(max-width:630px){
  .rolling .tools #otsikko {font-size:clamp(29px,7.5vw,40px);line-height:1.04;white-space:normal;}
  .rolling .filters {display:flex;flex-wrap:nowrap;overflow-x:auto;max-width:100%;min-height:40px;scrollbar-width:thin;}
  .rolling .filters>* {flex-shrink:0;}
  .rolling .filters button,.rolling .filters select {min-height:35px;font-size:14px;}
  .rolling .caption {min-height:0;gap:6px;}
  .rolling .caption p {margin-bottom:3px;}
  .rolling .rail-skip {min-height:28px;}
  .rolling .film-window {padding-block:8px;}
  .rolling .stage {height:clamp(250px,49svh,450px);}
}


.video-total b,.video-rate b,.phone-credit .credit-value {
  font-family:Fraunces,Georgia,serif;font-style:normal;font-synthesis:none;
  font-weight:620;font-variation-settings:"SOFT" 70;letter-spacing:-.045em;
}

@font-face {
  font-family:Aeonik;src:url("../studio/kuvat/aeonik-light.woff2") format("woff2");
  font-weight:300;font-style:normal;font-display:swap;
}
.opening h1,.opening-reply h2,.tools #otsikko {font-weight:300;}
.opening h1 em,.opening-reply h2 em {font-weight:610;}

.opening h1 {line-height:.91;}
.opening h1 em {margin-block-start:-.035em;}
/* The current work alone carries readable metadata in the layered gallery. */
.stage.mixed-collage:not(.line-up) {perspective:none;}
.stage.mixed-collage:not(.line-up) .frame {left:50%;}
:is(.rolling .stage,.stage.mixed-collage:not(.line-up)) .frame .puhelinnaytto {
  filter:brightness(var(--poster-light,1)) saturate(var(--poster-color,1));
}
:is(.rolling .stage,.stage.mixed-collage:not(.line-up)) .frame :is(.video-stats,.phone-credit) {opacity:var(--detail-opacity,1);}
:is(.rolling .stage,.stage.mixed-collage:not(.line-up)) .frame:not([data-active=true]) :is(.video-stats,.phone-credit) {visibility:hidden;}
.stage .wing {cursor:pointer;}
.puhelinnaytto:has(.channel-sheet) > :is(img,video,canvas,.video-stats) {visibility:hidden;}

.case-player .puhelinnaytto {container-type:inline-size;}
.stage.mixed-collage:not(.line-up) {width:calc(100% + 2 * clamp(16px,3vw,46px));margin-inline:calc(-1 * clamp(16px,3vw,46px));}

/* Keep the result and engagement together in the lower left corner. */
.video-total small,.video-rate small {font-size:clamp(7px,3.45cqw,14px);line-height:1.15;}
.video-total .video-rate b {font-size:clamp(8px,4.25cqw,17px);line-height:1.12;}
.video-rail {width:26%;right:3.4%;gap:.55cqw;}
.video-rail .metric {display:flex;align-items:center;justify-self:end;gap:1.4cqw;line-height:1.12;font-size:clamp(7px,3.9cqw,16px);}
.video-rail svg {width:4.3cqw;height:4.3cqw;}
.video-total {gap:.55cqw;}
.video-total b {font-size:7.3cqw;line-height:1;}
.inline-film {z-index:2;pointer-events:none;}
.showing-film .preview-video {visibility:hidden;}
.gallery-navigation {display:flex;align-items:center;justify-content:center;gap:14px;margin:6px auto;color:var(--klik-muste);font:500 clamp(12px,1vw,15px)/1.2 Aeonik,Arial,sans-serif;}
.gallery-navigation button {min-width:44px;min-height:44px;padding:8px 14px;border:0;border-radius:28px;white-space:nowrap;font:500 15px/1.2 Aeonik,Arial,sans-serif;background:var(--klik-muste);color:white;touch-action:manipulation;}
.gallery-navigation button:disabled {opacity:.3;}
.gallery-navigation button:focus-visible,.inline-controls button:focus-visible {outline:3px solid currentColor;outline-offset:2px;}
.inline-controls[hidden] {display:none;}
.inline-controls,.case-toolbar {position:relative;margin:6px auto;max-width:680px;color:var(--klik-muste);font:500 14px/1.2 Aeonik,Arial,sans-serif;}
.inline-controls .transport,.case-toolbar,.case-toolbar .transport,.case-toolbar .case-options {display:flex;align-items:center;justify-content:center;gap:6px;}
.inline-controls .transport,.case-toolbar {flex-wrap:wrap;}
.inline-controls button,.case-toolbar button {display:inline-grid;place-items:center;min-width:34px;min-height:34px;padding:4px 6px;background:transparent;color:inherit;border:0;}
.inline-controls svg,.case-toolbar svg {width:18px;height:18px;}
.inline-controls .transport-seek,.case-toolbar .transport-seek {width:clamp(55px,17vw,155px);flex:0 1 auto;}
.inline-controls .transport-cc[hidden],.case-toolbar .transport-cc[hidden] {display:none;}
.inline-controls .inline-results {text-decoration:underline;text-underline-offset:3px;}
.inline-controls .channel-sheet {position:relative;margin:8px auto;max-height:none;padding:14px 32px 14px 12px;overflow:visible;box-shadow:none;border-radius:8px;font-size:14px;}
.inline-controls .sheet-close {color:#fff;top:3px;right:3px;}
.inline-controls .player-fallback {position:static;display:block;transform:none;text-align:center;}
.inline-controls .player-fallback[hidden] {display:none;}
.case .case-toolbar .video-full {margin:0;}
.inline-film:fullscreen,.case-player video:fullscreen {inset:0!important;width:100%!important;height:100%!important;object-fit:contain!important;background:#111;}
@media(max-width:630px){.gallery-navigation {margin-block:2px;gap:10px;}.gallery-navigation {gap:6px;}.gallery-navigation button{padding-inline:10px;}.swipe-hint{font-size:12px;text-align:center;}.inline-controls .transport {gap:2px;}}

.rolling .stage {height:clamp(360px,65svh,740px);}
.rolling .stage .frame {height:calc(100% - 78px);top:calc(50% - 36px);}
@media(max-width:630px){.rolling .stage {height:clamp(300px,60svh,590px);}}

#videot:has(.frame.showing-film) .actions .play-toggle, #videot .inline-controls .transport-play {display:none;}

/* Only the front film carries the client identity and the editorial result. */
.stage .frame:not([data-active="true"]) > .phone-credit {display:none;}
#videot .film-window > .caption, #videot .inline-controls {display:none;}
.stage .phone-hit {position:absolute;inset:0;z-index:4;background:transparent;border:0;cursor:pointer;border-radius:inherit;}
.stage .frame:has(.phone-hit:focus-visible) {outline:3px solid var(--klik-muste);outline-offset:2px;}
.stage .video-total[hidden],.stage .puhelinnaytto .player-fallback[hidden] {display:none;}
:is(.stage,.client-posters) .puhelinnaytto > .player-sound {
  position:absolute;z-index:6;left:4%;top:3%;width:36px;height:36px;padding:8px;
  display:grid;place-items:center;color:white;background:rgb(15 13 15 / 55%);border:0;border-radius:50%;
}
:is(.stage,.client-posters) .player-sound svg,.stage .sheet-close svg {width:18px;height:18px;}
.stage .sheet-close {display:grid;place-items:center;width:36px;height:36px;color:white;z-index:1;}
.stage .channel-sheet {max-height:94%;overflow:auto;overscroll-behavior:contain;padding:10% 6% 8%;font-size:clamp(10px,3.5cqw,15px);}
.stage .channel-sheet p {margin:10px 0 0;font-size:.86em;line-height:1.3;}
.stage .channel-sheet :is(dl,dd,dt) {min-width:0;}
.stage .video-total > small::after {content:" ⌃";}
.stage .video-total .video-rate small::after {content:none;}
/* Paper grain removed from backgrounds (Ville 24.11.2026: "poista grain taustoista"). */

/* Real iPhone 18 Pro Max frame (24.11.2026): rendered front-on in Blender from the Sketchfab model
   "Apple iPhone 18 Pro Max Glacier 2026" by UnknownOrigin (Free Standard licence), body 79.0 x 163.4 mm incl. the side
   button. The display was keyed out of the render, and the aperture below is measured from it (tyokalut/iphone-malli). */
.videopuhelin, .frame.videopuhelin {
  aspect-ratio: 1579 / 3267;
  border-radius: 0;
  background: none;
}
.videopuhelin::before {display: none;}
.videopuhelin .puhelinnaytto {
  left: 3.6732%; top: 1.4998%; width: 92.5902%; height: 97.0309%;
  border-radius: 15.1163% / 7.6341%;
}
.videopuhelin .puhelinrunko {
  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;
  border-radius: 0;
}
.videopuhelin .puhelinrunko::before {display: none;}
