/* deckhaus v1.2 — home: showreel hero, selected work, why Deckhaus, four doors */
.v12 .wrap12{max-width:1480px;margin:0 auto;padding:0 clamp(20px,4vw,64px)}
.v12-mono{font-family:var(--font-mono);font-size:11px;letter-spacing:.18em;text-transform:uppercase;font-variant-numeric:tabular-nums}
.v12-lab{display:flex;gap:12px;align-items:center;color:var(--text-muted)}.v12-lab b{font-weight:400;color:var(--lime-text)}
.v12-dark .v12-lab{color:rgba(244,244,239,.55)}.v12-dark .v12-lab b{color:var(--lime-500)}
.v12-h2{font-family:var(--font-display);font-weight:400;font-size:clamp(36px,5vw,84px);line-height:1.02;letter-spacing:-.005em;margin:18px 0 0;text-wrap:balance}
.v12-h2 em{font-style:normal;color:var(--lime-text)}.v12-dark .v12-h2 em{color:var(--lime-500)}
.v12-p{font-size:clamp(17px,1.35vw,20px);line-height:1.62;color:var(--text-secondary);max-width:58ch;margin:24px 0 0;text-wrap:pretty}
.v12-dark{background:#08080A;color:#F4F4EF}.v12-dark .v12-p{color:rgba(244,244,239,.72)}
/* hero */
#top.v12-hero{position:relative;min-height:100svh;display:flex;flex-direction:column;justify-content:flex-end;overflow:hidden;background:#08080A;color:#F4F4EF;border-bottom:0}
.v12-hero .reel{position:absolute;inset:0}
.v12-hero .reel video,.v12-hero .reel img{width:100%;height:100%;object-fit:cover;display:block}
.v12-hero .scrim{position:absolute;inset:0;background:linear-gradient(90deg,rgba(8,8,10,.72) 0%,rgba(8,8,10,.38) 42%,rgba(8,8,10,0) 70%),linear-gradient(180deg,rgba(8,8,10,.6) 0%,rgba(8,8,10,.1) 26%,rgba(8,8,10,.2) 52%,rgba(8,8,10,.92) 100%)}
.v12-hero .in{position:relative;z-index:2;padding-top:150px;padding-bottom:clamp(30px,4vw,56px)}
.v12-hero h1{font-family:var(--font-display);font-weight:400;font-size:clamp(58px,10.4vw,188px);line-height:.92;letter-spacing:-.015em;margin:20px 0 0;color:#F4F4EF}
.v12-hero h1 span{color:var(--lime-500)}
.v12-hero .sub{font-size:clamp(18px,1.6vw,23px);line-height:1.5;color:rgba(244,244,239,.82);max-width:44ch;margin:26px 0 0;text-wrap:balance}
.v12-hero .ctas{display:flex;gap:12px;flex-wrap:wrap;margin-top:32px}
.v12-hero .foot{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-top:clamp(36px,5vw,70px);padding-top:16px;border-top:1px solid rgba(244,244,239,.16);color:rgba(244,244,239,.55)}
.v12-hero .foot a{color:rgba(244,244,239,.8);text-decoration:none}
.v12-hero .foot a:hover{color:#fff}
.v12-hero .rise{animation:v12rise 1.1s cubic-bezier(.16,1,.3,1) both}
@keyframes v12rise{from{opacity:0;transform:translateY(24px)}to{opacity:1;transform:none}}
.v12-sound{position:absolute;right:clamp(20px,4vw,64px);top:110px;z-index:3}
/* work */
#work{padding:clamp(80px,10vw,150px) 0 clamp(70px,8vw,120px);background:var(--bg-base)}
#work .hd{display:flex;justify-content:space-between;align-items:flex-end;gap:24px;flex-wrap:wrap}
.v12-grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:clamp(14px,1.6vw,26px);margin-top:clamp(40px,5vw,72px)}
.v12-card{display:flex;flex-direction:column;gap:16px;text-decoration:none;color:inherit}
.v12-card .m{position:relative;overflow:hidden;border-radius:8px;background:#141416}
.v12-card .m img,.v12-card .m video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform 1.4s cubic-bezier(.16,1,.3,1)}
.v12-card:hover .m img,.v12-card:hover .m video{transform:scale(1.03)}
.v12-card .pill{position:absolute;left:14px;top:14px;z-index:2;padding:6px 10px;border-radius:99px;background:rgba(8,8,10,.6);color:#F4F4EF;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}
.v12-card .row{display:flex;justify-content:space-between;align-items:baseline;gap:12px}
.v12-card h3{font-family:var(--font-display);font-weight:400;font-size:clamp(26px,2.4vw,40px);line-height:1;margin:0}
.v12-card p{margin:6px 0 0;color:var(--text-secondary);font-size:16px;line-height:1.45}
.v12-card .k{color:var(--text-muted);white-space:nowrap}
.v12-card .go{display:inline-block;transition:transform .4s cubic-bezier(.16,1,.3,1)}.v12-card:hover .go{transform:translateX(5px)}
@media(max-width:900px){.v12-grid{grid-template-columns:1fr}.v12-grid>.v12-card{grid-column:auto!important}.v12-card .m{aspect-ratio:4/3!important}}
/* why */
#why{padding:clamp(90px,11vw,170px) 0;position:relative;overflow:hidden}
#why .top{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(30px,5vw,90px);align-items:end}
#why .wall{position:relative;border-radius:10px;overflow:hidden;aspect-ratio:16/10;background:#141416}
#why .wall img{width:100%;height:100%;object-fit:cover}
#why .wall .cap{position:absolute;left:14px;bottom:12px;color:rgba(244,244,239,.85);background:rgba(8,8,10,.6);padding:6px 9px;border-radius:4px}
.v12-prin{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;margin-top:clamp(50px,6vw,90px);border-top:1px solid rgba(244,244,239,.14)}
.v12-prin>div{padding:26px 26px 0 0}
.v12-prin>div+div{padding-left:26px;border-left:1px solid rgba(244,244,239,.14)}
.v12-prin b{color:var(--lime-500);font-weight:400}
.v12-prin h3{font-family:var(--font-display);font-weight:400;font-size:clamp(22px,2vw,30px);margin:14px 0 0;line-height:1.1}
.v12-prin p{color:rgba(244,244,239,.64);font-size:15.5px;line-height:1.6;margin:12px 0 0;max-width:38ch}
@media(max-width:900px){#why .top{grid-template-columns:1fr}.v12-prin{grid-template-columns:1fr}.v12-prin>div+div{padding-left:0;border-left:0;border-top:1px solid rgba(244,244,239,.14);margin-top:26px}}
/* four doors */
#what-we-do.v12-doors{padding:clamp(80px,10vw,150px) 0;background:var(--sand-100);border-top:1px solid var(--border-subtle);border-bottom:1px solid var(--border-subtle)}
.v12-door-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(12px,1.4vw,22px);margin-top:clamp(40px,5vw,70px)}
.v12-door{display:flex;flex-direction:column;border:1px solid var(--border-default);border-radius:10px;overflow:hidden;background:var(--sand-050);color:inherit;text-decoration:none;transition:border-color .3s,transform .5s cubic-bezier(.16,1,.3,1)}
.v12-door:hover{border-color:var(--ink-900);transform:translateY(-3px)}
.v12-door .ph{aspect-ratio:4/5;overflow:hidden;background:#141416}.v12-door .ph img{width:100%;height:100%;object-fit:cover;object-position:var(--op,50% 50%)}
.v12-door .tx{padding:20px;display:flex;flex-direction:column;gap:10px;flex:1}
.v12-door h3{font-family:var(--font-display);font-weight:400;font-size:clamp(22px,1.9vw,30px);line-height:1.05;margin:0}
.v12-door p{margin:0;color:var(--text-secondary);font-size:15px;line-height:1.5}
.v12-door .cs{margin-top:auto;padding-top:14px;border-top:1px solid var(--border-subtle);color:var(--text-muted)}
@media(max-width:1000px){.v12-door-grid{grid-template-columns:1fr 1fr}}@media(max-width:560px){.v12-door-grid{grid-template-columns:1fr}}
.v12-orig{margin-top:28px;color:var(--text-muted);max-width:70ch}
/* reveal for new blocks (scroll-pass driven, never stuck hidden) */
.r12{opacity:0;transform:translateY(26px);transition:opacity 1s cubic-bezier(.22,1,.28,1),transform 1.2s cubic-bezier(.16,1,.3,1);transition-delay:calc(var(--i,0)*70ms)}
.r12.in{opacity:1;transform:none}
html.no-rv .r12{opacity:1;transform:none;transition:none}
@media(prefers-reduced-motion:reduce){.r12{opacity:1;transform:none;transition:none}.v12-hero .rise{animation:none}}
/* mobile: keep the reel, left-aligned statement (overrides v6 mobile.css #top rules) */
#top.v12-hero .reel{display:block!important}
@media(max-width:760px){
  #top.v12-hero .wrap12.in{padding:calc(110px + env(safe-area-inset-top)) 20px 30px!important;text-align:left!important}
  #top.v12-hero h1{font-size:clamp(50px,14.5vw,76px)!important;line-height:.95!important;margin:16px 0 0!important;text-align:left!important;white-space:normal!important}
  #top.v12-hero .sub{font-size:17px!important;margin:20px 0 0!important;text-align:left!important;max-width:30ch!important}
  #top.v12-hero .ctas{flex-direction:column;align-items:stretch;margin:26px 0 0!important}
  #top.v12-hero .ctas .btn{width:100%;justify-content:center}
  #top.v12-hero .foot{flex-direction:column;gap:10px;margin-top:28px}
  #top.v12-hero .v12-mono{text-align:left!important}
  #top.v12-hero .scrim{background:linear-gradient(180deg,rgba(8,8,10,.55) 0%,rgba(8,8,10,.2) 30%,rgba(8,8,10,.7) 60%,rgba(8,8,10,.95) 100%)}
}
/* fix: "Led by Rodrigo / One direction throughout" no longer clips on narrow screens */
@media(max-width:760px){#studio .side{font-size:clamp(28px,8vw,36px)!important;max-width:9ch;z-index:3}#studio .side.l{top:calc(8% + 6px)!important}#studio .side.r{max-width:none;white-space:normal}}
@media(min-width:761px) and (max-width:1100px){#studio .side{font-size:clamp(30px,4.2vw,52px)}}
/* v1.2b — persuasive hero + service doors */
.v12-hero h1{font-size:clamp(48px,7.4vw,136px);line-height:.95;max-width:15ch}
.v12-hero .sub{max-width:54ch}
.v12-hero .svc{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));margin-top:clamp(36px,5vw,64px);border-top:1px solid rgba(244,244,239,.18)}
.v12-hero .svc a{display:flex;gap:12px;align-items:baseline;padding:16px 16px 4px 0;color:rgba(244,244,239,.86);text-decoration:none;font-size:15.5px;transition:color .25s}
.v12-hero .svc a b{font-family:var(--font-mono);font-weight:400;font-size:11px;letter-spacing:.16em;color:var(--lime-500)}
.v12-hero .svc a:hover{color:#fff}
.v12-hero .svc a:after{content:'→';margin-left:auto;padding-left:8px;opacity:0;transform:translateX(-6px);transition:.3s}
.v12-hero .svc a:hover:after{opacity:1;transform:none}
@media(max-width:900px){.v12-hero .svc{grid-template-columns:1fr 1fr}}
@media(max-width:640px){#top.v12-hero h1{font-size:clamp(40px,11vw,60px)!important}.v12-hero .svc{grid-template-columns:1fr;margin-top:26px}.v12-hero .svc a{padding:12px 0;border-bottom:1px solid rgba(244,244,239,.1)}}
.v12-door .ph video{width:100%;height:100%;object-fit:cover;display:block}
.v12-door .cs{margin-top:auto;color:var(--lime-text)}
.v12 .wall video{width:100%;height:100%;object-fit:cover;display:block}
.v12-hero .scrim{background:linear-gradient(90deg,rgba(8,8,10,.84) 0%,rgba(8,8,10,.6) 38%,rgba(8,8,10,.1) 68%,rgba(8,8,10,0) 80%),linear-gradient(180deg,rgba(8,8,10,.6) 0%,rgba(8,8,10,.1) 26%,rgba(8,8,10,.2) 52%,rgba(8,8,10,.92) 100%)}
.v12-hero .reel video{object-position:70% 50%}
@media(max-width:820px){.v12-hero .scrim{background:linear-gradient(180deg,rgba(8,8,10,.78) 0%,rgba(8,8,10,.62) 45%,rgba(8,8,10,.9) 100%)}.v12-hero .reel video{object-position:68% 50%}}
.v12-hero h1{font-size:clamp(44px,6.2vw,112px);max-width:12.5ch}
.v12-hero .scrim{background:linear-gradient(90deg,rgba(8,8,10,.9) 0%,rgba(8,8,10,.78) 34%,rgba(8,8,10,.35) 58%,rgba(8,8,10,.05) 78%),linear-gradient(180deg,rgba(8,8,10,.55) 0%,rgba(8,8,10,0) 26%,rgba(8,8,10,.1) 55%,rgba(8,8,10,.92) 100%)}
.v12-hero .reel video{object-position:80% 50%}
@media(max-width:820px){.v12-hero .scrim{background:linear-gradient(180deg,rgba(8,8,10,.82) 0%,rgba(8,8,10,.7) 50%,rgba(8,8,10,.92) 100%)}}
.v12-hero h1{max-width:none}
@media(max-width:820px){.v12-hero .scrim{background:linear-gradient(180deg,rgba(8,8,10,.86) 0%,rgba(8,8,10,.74) 50%,rgba(8,8,10,.94) 100%)}.v12-hero .reel video{filter:blur(1.5px) brightness(.8)}}
/* v1.2c — hero: the wall. Real covers, sharp, moving in depth. */
#top.wallhero{background:#07070A;isolation:isolate}
.wallhero .wstage{position:absolute;inset:0;perspective:1800px;perspective-origin:70% 40%;overflow:hidden;z-index:0}
.wallhero .w3d{position:absolute;left:34%;top:-38%;width:96%;height:190%;display:flex;gap:clamp(12px,1.1vw,20px);transform-style:preserve-3d;
  transform:rotateX(calc(16deg + var(--ry,0deg))) rotateY(calc(-26deg + var(--rx,0deg))) rotateZ(9deg) scale(var(--ws,1));transition:transform 1.2s cubic-bezier(.16,1,.3,1);will-change:transform}
.wallhero .col{flex:0 0 clamp(230px,19.5vw,380px);display:flex;flex-direction:column;gap:clamp(12px,1.1vw,20px);animation:wUp var(--d,80s) linear infinite;will-change:transform}
.wallhero .col.dn{animation-name:wDn}
@keyframes wUp{from{transform:translate3d(0,0,0)}to{transform:translate3d(0,-50%,0)}}
@keyframes wDn{from{transform:translate3d(0,-50%,0)}to{transform:translate3d(0,0,0)}}
.wallhero .col:hover{animation-play-state:paused}
.wallhero .t{position:relative;display:block;aspect-ratio:16/9;border-radius:7px;overflow:hidden;background:#15151a;box-shadow:0 1px 0 rgba(255,255,255,.05) inset,0 30px 60px -30px rgba(0,0,0,.9);transition:transform .7s cubic-bezier(.16,1,.3,1),filter .5s;filter:brightness(.86) saturate(.95)}
.wallhero .t img{width:100%;height:100%;object-fit:cover;display:block}
.wallhero .t span{position:absolute;left:10px;bottom:9px;padding:5px 8px;border-radius:4px;background:rgba(8,8,10,.66);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);color:#F4F4EF;font-family:var(--font-mono);font-size:10px;letter-spacing:.14em;text-transform:uppercase;opacity:0;transform:translateY(6px);transition:.35s}
.wallhero .t:hover{transform:translateZ(40px) scale(1.04);filter:none}
.wallhero .t:hover span{opacity:1;transform:none}
.wallhero .scrim{position:absolute;inset:0;z-index:1;pointer-events:none;background:
  radial-gradient(120% 90% at 0% 60%,rgba(7,7,10,.97) 0%,rgba(7,7,10,.9) 32%,rgba(7,7,10,.45) 56%,rgba(7,7,10,0) 74%),
  linear-gradient(180deg,rgba(7,7,10,.75) 0%,rgba(7,7,10,0) 22%,rgba(7,7,10,0) 70%,rgba(7,7,10,.95) 100%)}
.wallhero .grain{position:absolute;inset:-50%;z-index:1;pointer-events:none;opacity:.06;background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");animation:grain 1.2s steps(4) infinite}
@keyframes grain{0%{transform:translate(0,0)}25%{transform:translate(-3%,2%)}50%{transform:translate(2%,-3%)}75%{transform:translate(-2%,-1%)}}
.wallhero .in{position:relative;z-index:2;pointer-events:none}
.wallhero .in a,.wallhero .in nav{pointer-events:auto}
.wallhero .dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--lime-500);margin-right:10px;vertical-align:1px;box-shadow:0 0 0 0 rgba(183,201,74,.6);animation:pulse 2.4s infinite}
@keyframes pulse{0%{box-shadow:0 0 0 0 rgba(183,201,74,.55)}70%{box-shadow:0 0 0 10px rgba(183,201,74,0)}100%{box-shadow:0 0 0 0 rgba(183,201,74,0)}}
.wallhero .wcap{position:absolute;right:clamp(20px,3vw,48px);bottom:clamp(20px,3vw,40px);z-index:2;color:rgba(244,244,239,.55);text-align:right}
.wallhero .reel{display:none!important}
@media(max-width:820px){
  .wallhero .w3d{left:-10%;top:-30%;width:170%;transform:rotateX(18deg) rotateY(-18deg) rotateZ(10deg)}
  .wallhero .col{flex-basis:46vw}
  .wallhero .scrim{background:linear-gradient(180deg,rgba(7,7,10,.86) 0%,rgba(7,7,10,.78) 46%,rgba(7,7,10,.92) 100%)}
  .wallhero .wcap{display:none}}
@media(prefers-reduced-motion:reduce){.wallhero .col,.wallhero .grain{animation:none}}
.wallhero .w3d{left:47%;top:-42%}
.wallhero .scrim{background:
  linear-gradient(90deg,rgba(7,7,10,.98) 0%,rgba(7,7,10,.94) 30%,rgba(7,7,10,.7) 44%,rgba(7,7,10,.15) 62%,rgba(7,7,10,0) 72%),
  linear-gradient(180deg,rgba(7,7,10,.7) 0%,rgba(7,7,10,0) 20%,rgba(7,7,10,0) 72%,rgba(7,7,10,.96) 100%)}
@media(max-width:820px){.wallhero .w3d{left:-4%;top:-12%}.wallhero .scrim{background:linear-gradient(180deg,rgba(7,7,10,.93) 0%,rgba(7,7,10,.9) 62%,rgba(7,7,10,.72) 80%,rgba(7,7,10,.95) 100%)}}
.wallhero .w3d{left:50%;top:-36%;transform:rotateX(calc(12deg + var(--ry,0deg))) rotateY(calc(-28deg + var(--rx,0deg))) rotateZ(-6deg) scale(var(--ws,1))}
.wallhero h1{font-size:clamp(44px,5.6vw,104px)}
.wallhero .scrim{background:
  linear-gradient(90deg,rgba(7,7,10,.98) 0%,rgba(7,7,10,.95) 40%,rgba(7,7,10,.6) 52%,rgba(7,7,10,.08) 66%,rgba(7,7,10,0) 74%),
  linear-gradient(180deg,rgba(7,7,10,.7) 0%,rgba(7,7,10,0) 20%,rgba(7,7,10,0) 72%,rgba(7,7,10,.96) 100%)}
@media(max-width:820px){.wallhero .wstage{top:58%}.wallhero .w3d{left:-8%;top:-20%;width:180%;transform:rotateX(14deg) rotateY(-14deg) rotateZ(-6deg)}
 .wallhero .scrim{background:linear-gradient(180deg,rgba(7,7,10,1) 0%,rgba(7,7,10,.96) 56%,rgba(7,7,10,.55) 68%,rgba(7,7,10,.6) 86%,rgba(7,7,10,.96) 100%)}}

/* ───────── v1.2d · THE RAIL hero ───────── */
#top.railhero{background:#07070A;isolation:isolate;min-height:max(100svh,780px)}
.railhero .rstage{position:absolute;inset:0;perspective:1200px;perspective-origin:50% var(--cy,34%);overflow:hidden;z-index:0;touch-action:pan-y;cursor:grab;-webkit-user-select:none;user-select:none}
.railhero .rstage.drag{cursor:grabbing}
.railhero .ring{position:absolute;left:50%;top:var(--cy,34%);width:0;height:0;transform-style:preserve-3d;will-change:transform}
.railhero .ring.r0{top:calc(var(--cy,34%) - var(--th,170px) - var(--gap,18px))}
.railhero .ring.r2{top:calc(var(--cy,34%) + var(--th,170px) + var(--gap,18px))}
.railhero .t{position:absolute;display:block;width:var(--tw,300px);height:var(--th,170px);left:calc(var(--tw,300px)/-2);top:calc(var(--th,170px)/-2);border-radius:6px;overflow:hidden;backface-visibility:hidden;-webkit-backface-visibility:hidden;background:#141418;box-shadow:0 0 0 1px rgba(255,255,255,.06);filter:brightness(.8) saturate(.92);transition:filter .45s}
.railhero .t img,.railhero .t video{width:100%;height:100%;object-fit:cover;display:block;pointer-events:none}
.railhero .t span{position:absolute;left:10px;bottom:9px;padding:5px 8px;border-radius:4px;background:rgba(8,8,10,.66);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);color:#F4F4EF;font-family:var(--font-mono);font-size:10px;letter-spacing:.14em;text-transform:uppercase;opacity:0;transform:translateY(6px);transition:.35s;white-space:nowrap}
.railhero .t:hover{filter:none}.railhero .t:hover span{opacity:1;transform:none}
.railhero .fog{position:absolute;inset:0;z-index:1;pointer-events:none;background:linear-gradient(90deg,#07070A 0%,rgba(7,7,10,0) 16%,rgba(7,7,10,0) 84%,#07070A 100%),linear-gradient(180deg,rgba(7,7,10,.9) 0%,rgba(7,7,10,0) 13%,rgba(7,7,10,0) calc(var(--cy,34%) + 1.25*var(--th,170px)),rgba(7,7,10,.9) calc(var(--cy,34%) + 1.85*var(--th,170px)),#07070A calc(var(--cy,34%) + 2.2*var(--th,170px)))}
.railhero .grain{position:absolute;inset:-50%;z-index:1;pointer-events:none;opacity:.05;background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");animation:grain 1.2s steps(4) infinite}
.railhero .in{position:relative;z-index:2;pointer-events:none;padding-top:0}
.railhero .in a,.railhero .in nav{pointer-events:auto}
.railhero .dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--lime-500);margin-right:10px;vertical-align:1px;animation:pulse 2.4s infinite}
.railhero .rgrid{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(0,1fr);gap:clamp(24px,4vw,72px);align-items:end;margin-top:18px}
.railhero h1{font-size:clamp(46px,4.6vw,88px);margin:0;max-width:none}.railhero h1 span{display:block;text-wrap:balance}
.railhero .sub{margin:0;font-size:clamp(17px,1.35vw,20px);max-width:42ch}
.railhero .ctas{margin-top:26px}
.railhero .svc{margin-top:clamp(28px,3.6vw,48px)}
.railhero .rnow{position:absolute;z-index:2;right:clamp(12px,2vw,30px);top:var(--cy,34%);transform:translateY(-50%) rotate(180deg);writing-mode:vertical-rl;color:rgba(244,244,239,.55);font-size:10.5px;display:flex;align-items:center;gap:10px;pointer-events:none}
.railhero .rnow i{width:1px;height:40px;background:rgba(244,244,239,.35)}
@media(max-width:820px){
  #top.railhero{min-height:max(100svh,700px)}
  .railhero .rgrid{grid-template-columns:1fr;gap:18px}
  .railhero h1{font-size:clamp(42px,11.5vw,64px)}
  .railhero .svc{grid-template-columns:1fr 1fr}
  .railhero .rnow{display:none}
  .railhero .fog{background:linear-gradient(90deg,#07070A 0%,rgba(7,7,10,0) 10%,rgba(7,7,10,0) 90%,#07070A 100%),linear-gradient(180deg,rgba(7,7,10,.9) 0%,rgba(7,7,10,0) 12%,rgba(7,7,10,0) calc(var(--cy,34%) + 1.2*var(--th,100px)),rgba(7,7,10,.9) calc(var(--cy,34%) + 2.1*var(--th,100px)),#07070A calc(var(--cy,34%) + 2.6*var(--th,100px)))}
}
@media(prefers-reduced-motion:reduce){.railhero .grain{animation:none}}

/* ───────── v1.2d · WHY DECKHAUS — the corridor ───────── */
#why.why3{position:relative;height:640vh;padding:0;background:#07070A;color:#F4F4EF;border:0;overflow:visible!important}
.why3 .st{position:sticky;top:0;height:100vh;height:100svh;overflow:hidden}
.why3 .wworld{position:absolute;inset:0;perspective:900px;perspective-origin:64% 46%}
.why3 .wcam{position:absolute;left:64%;top:46%;width:0;height:0;transform-style:preserve-3d;will-change:transform}
.why3 .wf{position:absolute;margin:0;width:440px;transform-style:preserve-3d;opacity:0;will-change:transform,opacity}
.why3 .wf.p{width:300px}
.why3 .wf img,.why3 .wf video{width:100%;display:block;border-radius:6px;box-shadow:0 40px 80px -40px rgba(0,0,0,.9);background:#15151a}
.why3 .wf figcaption{margin-top:12px;color:rgba(244,244,239,.6);font-size:10.5px}
.why3 .wf figcaption em{font-style:normal;margin-left:10px;padding:3px 7px;border:1px solid rgba(244,244,239,.3);border-radius:20px;font-size:9.5px}
.why3 .wfog{position:absolute;inset:0;pointer-events:none;background:linear-gradient(90deg,#07070A 0%,rgba(7,7,10,.92) 26%,rgba(7,7,10,.4) 44%,rgba(7,7,10,0) 58%),radial-gradient(120% 90% at 64% 46%,rgba(7,7,10,0) 35%,rgba(7,7,10,.7) 78%,#07070A 100%)}
@media(max-width:820px){.why3 .wworld{perspective-origin:50% 36%}.why3 .wcam{left:50%;top:36%}.why3 .wfog{background:linear-gradient(0deg,#07070A 0%,rgba(7,7,10,.9) 38%,rgba(7,7,10,0) 62%)}}
.why3 .whead{position:absolute;left:clamp(20px,4vw,64px);top:clamp(90px,12vh,130px);z-index:3}
.why3 .wtxt{position:absolute;left:clamp(20px,4vw,64px);bottom:clamp(120px,17vh,170px);z-index:3;width:min(640px,calc(100% - 40px));pointer-events:none}
.why3 .wt{position:absolute;left:0;bottom:0;opacity:0;transform:translateY(24px);transition:opacity .6s,transform .8s cubic-bezier(.16,1,.3,1)}
.why3 .wt.on{opacity:1;transform:none}
.why3 .wt>span{color:rgba(244,244,239,.55)}.why3 .wt>span b{color:var(--lime-500);font-weight:400}
.why3 .wt h2{font-family:var(--font-display);font-weight:400;font-size:clamp(38px,4.6vw,78px);line-height:1;margin:16px 0 0;text-wrap:balance}
.why3 .wt h2 em{font-style:normal;color:var(--lime-500)}
.why3 .wt p{margin-top:20px;color:rgba(244,244,239,.75);font-size:clamp(16px,1.25vw,19px);line-height:1.55;max-width:46ch}
.why3 .whud{position:absolute;left:clamp(20px,4vw,64px);right:clamp(20px,4vw,64px);bottom:clamp(28px,5vh,48px);z-index:3;display:flex;align-items:flex-end;justify-content:space-between;gap:24px}
.why3 .wseg{display:flex;gap:10px;flex:1;max-width:760px}
.why3 .wseg button{flex:1;background:none;border:0;padding:0;text-align:left;color:rgba(244,244,239,.5);cursor:pointer}
.why3 .wseg i{display:block;height:2px;background:rgba(244,244,239,.18);position:relative;overflow:hidden;margin-bottom:10px}
.why3 .wseg i:after{content:'';position:absolute;inset:0;background:var(--lime-500);transform-origin:0 50%;transform:scaleX(var(--f,0))}
.why3 .wseg button.on{color:#F4F4EF}
@media(max-width:820px){
  #why.why3{height:520vh}
  .why3 .wf{width:260px}.why3 .wf.p{width:180px}
  .why3 .wtxt{bottom:120px}
  .why3 .wseg span{display:none}
  .why3 .whud .btn{display:none}
}

/* ───────── v1.2d · WHAT WE DO — four ways in, one reel each ───────── */
#what-we-do.wwd{position:relative;height:440vh;padding:0;background:#0B0B0D;color:#F4F4EF;border:0}
.wwd .st{position:sticky;top:0;height:100vh;height:100svh;display:flex;align-items:center;overflow:hidden}
.wwd .g{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.9fr);gap:clamp(30px,5vw,90px);align-items:center;width:100%}
.wwd .v12-h2{font-size:clamp(34px,3.6vw,60px)}
.wwd .svs{position:relative;height:clamp(300px,40vh,400px);margin-top:clamp(26px,4vh,46px)}
.wwd .sv{position:absolute;inset:0;opacity:0;transform:translateY(20px);transition:opacity .5s,transform .7s cubic-bezier(.16,1,.3,1);pointer-events:none}
.wwd .sv.on{opacity:1;transform:none;pointer-events:auto}
.wwd .sv .n{color:rgba(244,244,239,.55)}.wwd .sv .n b{color:var(--lime-500);font-weight:400}
.wwd .sv h3{font-family:var(--font-display);font-weight:400;font-size:clamp(30px,3vw,50px);line-height:1.02;margin:14px 0 0}
.wwd .sv p{margin-top:14px;color:rgba(244,244,239,.75);font-size:17px;line-height:1.55;max-width:44ch}
.wwd .sv ul{list-style:none;display:flex;flex-wrap:wrap;gap:8px;margin:20px 0 0;padding:0}
.wwd .sv li{font-size:13.5px;padding:8px 12px;border:1px solid rgba(244,244,239,.2);border-radius:30px;color:rgba(244,244,239,.85)}
.wwd .sv .rw{display:block;margin:18px 0 22px;color:rgba(244,244,239,.45)}
.wwd .svb{display:flex;gap:10px;margin-top:clamp(18px,3vh,30px)}
.wwd .svb button{flex:1;background:none;border:0;padding:0;text-align:left;color:rgba(244,244,239,.45);cursor:pointer}
.wwd .svb i{display:block;height:2px;background:rgba(244,244,239,.18);position:relative;overflow:hidden;margin-bottom:10px}
.wwd .svb i:after{content:'';position:absolute;inset:0;background:var(--lime-500);transform-origin:0 50%;transform:scaleX(var(--f,0))}
.wwd .svb button.on{color:#F4F4EF}
.wwd .svb span{font-size:10px}
.wwd .stage{position:relative;aspect-ratio:4/5;max-height:82vh;margin-left:auto;border-radius:12px;overflow:hidden;background:#141416;box-shadow:0 60px 120px -60px rgba(0,0,0,.9)}
.wwd .sm{position:absolute;inset:0;clip-path:inset(100% 0 0 0);transition:clip-path .8s cubic-bezier(.77,0,.18,1)}
.wwd .sm.on{clip-path:inset(0 0 0 0);z-index:2}
.wwd .sm.was{clip-path:inset(0 0 0 0);z-index:1}
.wwd .sm video{width:100%;height:100%;object-fit:cover;display:block}
@media(max-width:820px){
  #what-we-do.wwd{height:auto;padding:90px 0}
  .wwd .st{position:relative;height:auto;display:block}
  .wwd .g{grid-template-columns:1fr}
  .wwd .svs{height:auto}
  .wwd .sv{position:relative;opacity:1;transform:none;pointer-events:auto;margin-top:40px}
  .wwd .svb{display:none}
  .wwd .r{display:none}
  .wwd .sv:before{content:'';display:block}
}
.wwd .svm{display:none}
@media(max-width:820px){.wwd .svm{display:block;aspect-ratio:4/5;margin:22px 0 0;border-radius:10px;overflow:hidden;background:#141416}.wwd .svm video{width:100%;height:100%;object-fit:cover}}

/* hero sub — the services as a changing sign (as on the earlier site) */
.v12-hero .hrot{display:block;position:relative;height:1.25em;margin-bottom:.32em;font-family:var(--font-display);font-size:1.5em;line-height:1.25;letter-spacing:-.01em;color:var(--lime-500)}
.v12-hero .hrot-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.v12-hero .hrot-w{position:absolute;left:0;top:0;white-space:nowrap;display:inline-flex}
.v12-hero .hrot-w .c{display:inline-block;overflow:hidden;vertical-align:top;line-height:1.25}
.v12-hero .hrot-w .c b{display:inline-block;font-weight:inherit;transform:translateY(0);transition:transform .62s cubic-bezier(.16,1,.3,1),opacity .4s ease;transition-delay:calc(380ms + var(--k)*24ms)}
.v12-hero .hrot-w.pre .c b{transform:translateY(105%);opacity:0;transition:none}
.v12-hero .hrot-w.out .c b{transform:translateY(-105%);opacity:0;transition:transform .34s cubic-bezier(.7,0,.84,0),opacity .26s ease;transition-delay:calc(var(--k)*10ms)}
.v12-hero .hrot::after{content:"";position:absolute;left:0;bottom:-.12em;height:1px;width:var(--hw,0px);background:currentColor;opacity:.45;transition:width .6s cubic-bezier(.16,1,.3,1)}
@media(prefers-reduced-motion:reduce){.v12-hero .hrot-w .c b{transition:none}}
@media(max-width:760px){.v12-hero .hrot{font-size:1.45em}}

/* v1.2e — hero: "We design how ideas are…" + "One idea" moved to Why */
.railhero h1 .l1{font-style:normal}
@media(min-width:861px){.railhero .rgrid{grid-template-columns:minmax(0,2.25fr) minmax(0,1fr)}.railhero h1{font-size:clamp(44px,4.25vw,84px)}.railhero h1 .l1{white-space:nowrap}}
@media(max-width:860px){.railhero h1 .dbr{display:none}}
.v12-hero .hcl{display:block;margin-top:14px;font-size:11px;letter-spacing:.16em;opacity:.6}
.why3 .whead{display:block}
.why3 .wh2{font-family:var(--font-display);font-weight:400;font-size:clamp(24px,2.1vw,36px);line-height:1.02;letter-spacing:-.005em;color:#F4F4EF;margin:12px 0 0}
.why3 .wh2 span{color:var(--lime-500)}
/* v1.3 — Why Deckhaus: the outgoing chapter leaves before the next one arrives (no two headlines on screen at once) */
.why3 .wt{transition:opacity .22s ease,transform .3s ease}
.why3 .wt.on{transition:opacity .5s ease .2s,transform .8s cubic-bezier(.16,1,.3,1) .2s}
/* v1.3 — chapter tabs: every bar and label hangs from the same top line, whatever the label length */
.wwd .svb,.why3 .wseg{align-items:flex-start}
.wwd .svb button,.why3 .wseg button{display:flex;flex-direction:column;justify-content:flex-start;align-self:flex-start}
.wwd .svb i,.why3 .wseg i{width:100%;flex:none}

/* v1.3b — Mango + Lonja pair: Mango's frame takes Lonja's height, so both title rows sit on one line */
@media(min-width:901px){
  .v12-grid{--g:clamp(14px,1.6vw,26px);gap:var(--g);container-type:inline-size}
  .v12-card[href="case-mango.html"]:has(+ .v12-card[href="case-lonja.html"]) .m{aspect-ratio:auto!important;height:calc(((100cqw - 11 * var(--g)) * 5 / 12 + 4 * var(--g)) * 481 / 520)}
}
