/* Shared refinement; retain the medium weight with a quieter subtitle tone. */
.service-card p.service-description,.service-card:last-child p.service-description{color:#60635c}
.service-card.service-contact p.service-description{color:#bcc2b7}
.menu-toggle{display:none}
#mobile-menu:not([open]){display:none}
#mobile-menu{position:fixed;inset:0;margin:0;width:100%;height:100dvh;max-height:none;padding:0;border:0;border-radius:0;background:var(--paper);color:var(--ink);opacity:1;overflow:auto}
#mobile-menu::backdrop{background:#17191666}
.mobile-menu-inner{display:flex;flex-direction:column;min-height:100%;padding:24px max(20px,env(safe-area-inset-right)) max(28px,env(safe-area-inset-bottom)) max(20px,env(safe-area-inset-left))}
.mobile-menu-heading{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);padding-bottom:20px}
.mobile-menu-heading .eyebrow{color:var(--muted);font-size:12px}
.mobile-nav{display:flex;flex-direction:column;margin-top:24px}
.mobile-nav a{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:20px 0;border-bottom:1px solid var(--line);font-size:clamp(28px,7.3vw,42px);font-weight:500;line-height:1.15;text-transform:uppercase}
.mobile-nav a>span:last-child{font-size:12px;font-weight:400;color:var(--muted)}
.mobile-nav a[aria-current]{color:var(--red)}
.mobile-menu-cta{margin-top:36px;align-self:flex-start;min-height:48px;font-size:18px;font-weight:500;gap:36px}
.mobile-menu-caption{margin-top:auto;padding-top:40px;font-size:11px;line-height:1.8;color:var(--muted);text-transform:uppercase;letter-spacing:.04em}

@media(max-width:1000px) and (min-width:801px){
  .header nav{gap:17px}.header nav,.header .contact-link{font-size:11px}
  .header-inner{grid-template-columns:70px minmax(0,1fr) 160px;gap:12px}
  .brand,.brand img{width:64px;height:64px}
  .services-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .contact{gap:32px}.contact h2{font-size:46px}
  .footer-main{grid-template-columns:100px minmax(0,1fr);gap:28px}
  .footer-email{grid-column:1/-1;text-align:center}
}
@media(max-width:900px){
  .project-row{grid-template-columns:minmax(0,1fr);gap:22px;padding:28px 0}
  .case-cover{aspect-ratio:16/9;height:auto;min-height:0}
  .case-info{display:grid;min-height:0;padding:0;grid-template-rows:auto auto auto auto;gap:16px}
  .case-info .case-tags{margin:0;min-height:0;flex-wrap:wrap;gap:6px}
  .case-heading h3{font-size:30px;line-height:1.12}
  .case-heading .case-subtitle{margin-top:7px;font-size:15px;line-height:1.45}
  .case-info .case-details{margin:3px 0 0;min-height:0;padding-top:20px;align-self:start;gap:24px}
  .case-details h4{font-size:15px;line-height:1.4;margin-bottom:9px}
  .case-details li{font-size:14px;line-height:1.5;margin-bottom:7px}
  .case-info>.text-link{margin:0;padding:6px 0;min-height:44px;gap:30px;font-size:15px}
}
@media(max-width:800px){
  html{scroll-padding-top:88px;-webkit-text-size-adjust:100%}
  .shell{width:calc(100% - 40px)}
  .header{height:72px;height:calc(72px + env(safe-area-inset-top));padding-top:env(safe-area-inset-top)}
  .header-inner{display:flex;gap:16px}
  .brand,.brand img{width:54px;height:54px;flex-shrink:0}
  #desktop-navigation{display:none}
  .header .contact-link{display:flex;margin-left:auto;min-height:44px;font-size:11px;gap:10px;padding:10px 0;border:0}
  .menu-toggle{display:flex;align-items:center;gap:10px;min-height:44px;padding:10px 0 10px 8px;background:transparent;font-size:11px;text-transform:uppercase;font-weight:500}
  .menu-lines{position:relative;display:block;width:20px;height:12px;border-block:1.5px solid currentColor}
  .menu-lines:after{content:'';position:absolute;left:6px;right:0;top:4px;height:1.5px;background:currentColor}
  .hero{padding-top:20px}
  .hero-eyebrow{font-size:9px;margin-bottom:14px}
  .hero-panels{grid-template-columns:1fr;gap:12px}
  .hero-media.hero-message{height:310px;padding:22px}
  .hero-message .hero-slogan{left:22px;top:67px;font-size:clamp(42px,8.8vw,66px);line-height:1.05;letter-spacing:-.035em}
  .hero-message .media-caption{top:22px;left:22px;font-size:9px}
  .hero-foundation{left:22px;bottom:22px;max-width:calc(100% - 44px)}
  .hero-foundation .hero-house{width:44px;height:46px;margin:0 0 -1px}
  .foundation-caption{font-size:8px;margin-top:8px}
  .hero-art.showreel-card{display:block;height:auto;min-height:0;aspect-ratio:16/9;padding:0}
  .showreel-meta{gap:12px;padding:28px 18px 16px;font-size:10px}
  .showreel-meta>span:last-child{font-size:8px}
  .about-grid{grid-template-columns:1fr;gap:22px;padding-top:36px;scroll-margin-top:88px}
  .about-grid h1{font-size:clamp(29px,4.8vw,40px);line-height:1.13;max-width:650px}
  .about-copy{font-size:16px;line-height:1.6;max-width:620px;padding:0}
  .about-copy p+p{margin-top:14px}
  .about-copy .about-cta{margin-top:18px;min-height:44px;gap:32px;font-size:16px}
  .process-strip{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:22px 16px;margin-top:32px;padding:24px 0}
  .process-strip>.process-tagline{width:auto;max-width:none;font-size:11px;line-height:1.8;white-space:nowrap}
  .process-strip svg.process-bricks{display:block;order:0;grid-column:2;grid-row:1;width:66px;height:47px;margin:0}
  .process-strip>div{order:0;grid-column:1/-1;display:flex;justify-content:space-between;gap:8px;min-width:0;font-size:clamp(20px,3.9vw,30px)}
  .process-strip i{font-size:18px}
  .section,.services.section,.contact.section,.projects.section{padding-top:40px;scroll-margin-top:88px}
  .clients.section{padding-top:32px}
  .section-heading,.projects .section-heading,.clients .section-heading{align-items:flex-start;gap:16px;margin-bottom:24px}
  .section-index{font-size:9px;margin-bottom:10px}
  .section-heading h2{font-size:clamp(32px,5.5vw,42px);line-height:1.1}
  .section-note,.projects .section-note{align-self:flex-end;font-size:9px;line-height:1.6;letter-spacing:.02em;max-width:130px;padding-bottom:2px;flex-shrink:0}
  .marquee-zone.shell{padding-block:16px;gap:12px}
  .client-logo{width:184px;height:84px}
  .client-logo .normalized-logo{transform:scale(.85)}
  .services-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
  .service-card,.service-card:last-child{height:302px;min-height:302px;padding:20px;grid-template-rows:14px 110px 58px minmax(44px,1fr);row-gap:10px}
  .service-heading{display:flex;flex-wrap:wrap;align-items:baseline;gap:5px 8px}
  .service-card h3,.service-card:last-child h3{font-size:23px;line-height:26px;flex-basis:100%}
  .service-card .service-price{font-size:14px;line-height:20px;text-align:left}
  .service-card p.service-description,.service-card:last-child p.service-description{font-size:15px;line-height:21px;margin-top:7px}
  .service-result h4{font-size:17px;line-height:22px;margin-bottom:6px}
  .service-card .service-result p,.service-card:last-child .service-result p{font-size:15px;line-height:21px}
  .service-card .text-link,.service-card:last-child .text-link{font-size:16px;min-height:44px;padding:9px 0;gap:22px}
  .service-card .tool-icon,.service-card:last-child .tool-icon{width:50px;height:50px;right:16px;bottom:19px}
  .service-mark{width:50px;height:44px;right:16px;bottom:20px}
  .services{padding-bottom:40px}
  .contact{grid-template-columns:1fr;gap:30px;padding-bottom:44px}
  .contact h2{font-size:clamp(36px,7.2vw,54px);line-height:1.07}
  .contact-intro>p{font-size:16px;line-height:1.6;margin-top:20px;max-width:550px}
  .contact-intro .contact-cta{font-size:16px;min-height:44px;margin-top:20px}
  .form-wrap{padding:24px;border-radius:18px;width:100%;min-width:0}
  .form-wrap .form-note{font-size:11px;margin-bottom:22px}
  .field{margin-bottom:22px}
  .field label,.task-field legend{font-size:16px;line-height:1.4}
  input:not([type=checkbox]){font-size:16px;min-height:48px}
  #clear-phone{width:44px;height:44px;top:2px}
  .task-options{grid-template-columns:1fr;gap:0}
  .task-choice{grid-template-columns:20px minmax(0,1fr);gap:12px;padding:14px 0;min-height:52px;font-size:15px;line-height:1.4}
  .task-box{width:19px;height:19px}
  .task-box svg{width:15px;height:15px}
  .task-hint{font-size:12px}
  .consent{gap:12px;font-size:13px;margin-top:24px;min-height:44px}
  .consent input{width:20px;height:20px;margin-top:1px}
  .consent a{font-size:12px;padding-block:6px;margin:0}
  .field-error{font-size:12px}
  #contact-form>.primary-button{min-height:56px;font-size:17px}
  .form-footnote{font-size:12px;line-height:1.55}
  .form-footnote a{padding-block:4px}
  .footer{padding-top:28px;padding-bottom:env(safe-area-inset-bottom)}
  .footer-main{display:grid;grid-template-columns:64px minmax(0,1fr);gap:24px 18px;align-items:center;padding-bottom:28px}
  .footer-brand{gap:0}.footer-brand>span{display:none}.footer-brand img{width:60px;height:60px}
  .footer-steps{width:auto;position:static;display:grid;grid-template-columns:1fr 1fr;gap:5px 10px;font-size:13px;line-height:1.5}
  .footer-steps>span{white-space:normal;text-align:center}
  .footer-steps>span:last-child{position:static;grid-column:1/-1}
  .footer-email{grid-column:1/-1;text-align:left;margin:0;font-size:20px}
  .footer-bottom{display:grid;grid-template-columns:1fr;gap:10px;padding:18px 0;font-size:11px;line-height:1.6}
  .footer-bottom>div{gap:24px}.footer-bottom a{display:inline-flex;align-items:center;min-height:44px}
  .footer-legal{display:flex;flex-direction:column;gap:0;padding:10px 0 20px;font-size:12px}
  .footer-legal a{display:flex;align-items:center;min-height:44px;padding-block:8px}
  #case-dialog{position:fixed;inset:12px;margin:auto;width:calc(100% - 24px);max-height:calc(100dvh - 24px)}
  #case-dialog .modal-shell{padding:16px;max-height:calc(100dvh - 24px);border-radius:12px;scrollbar-gutter:auto;padding-bottom:max(20px,env(safe-area-inset-bottom))}
  .modal-heading{top:-16px;padding-block:12px;gap:12px;margin-bottom:12px}
  .modal-heading h2{font-size:22px;line-height:1.15;overflow-wrap:anywhere}
  .close-button{width:44px;height:44px;border-radius:6px}
  #dialog-note{font-size:13px;line-height:1.45;margin-bottom:20px}
  .player-heading{gap:12px;margin-bottom:10px}
  .player-heading h3{font-size:16px}.player-heading .eyebrow{flex-shrink:0}
  .player-description{font-size:14px;margin:0 0 14px;line-height:1.5}
  #case-media iframe,#case-media video,#case-dialog video{height:auto;min-height:0;aspect-ratio:16/9;max-height:none}
  .video-frame{min-height:0}
  .player-poster .cover-bottom{left:14px;right:14px;bottom:14px;font-size:8px}
  .player-poster .cover-brand{left:14px;top:16px}
  .player-poster .cover-brand .normalized-logo{transform:scale(.65)}
  .player-poster .mini-play{width:40px;height:40px}
  .player-note{font-size:12px}
  .case-player+.case-player{margin-top:24px;padding-top:22px}
  .legal-header{height:80px}.legal-header img{width:50px;height:50px}
  .legal-document{padding-inline:20px;margin:32px auto 48px}
  .legal-document h1{font-size:30px;overflow-wrap:anywhere}
  .legal-document h2{font-size:22px}.legal-document .legal-status{padding:14px}
}
@media(max-width:600px){
  .hero-media.hero-message{height:280px}
  .hero-message .hero-slogan{font-size:clamp(36px,10.8vw,58px)}
  .hero-message .hero-foundation{bottom:20px}
  .hero-foundation .hero-house{width:39px;height:42px}
  .about-grid h1{font-size:clamp(28px,7.8vw,38px)}
  .section-heading,.projects .section-heading{flex-wrap:wrap;gap:12px}
  .section-note,.projects .section-note{max-width:none;flex-basis:100%;font-size:10px;line-height:1.5}
  .section-note br{display:none}.section-note br:after{content:' '}
  .section-note{white-space:normal}
  .section-heading h2{font-size:36px}
  .client-logo{width:174px;height:80px}
  .case-cover{aspect-ratio:16/10}
  .cover-brand{left:18px;top:20px}
  .cover-bottom{left:18px;right:18px;bottom:16px;font-size:9px}
  .case-info .case-tags{gap:6px}
  .case-tag{font-size:11px;line-height:16px;padding:5px 10px}
  .case-heading h3{font-size:28px;letter-spacing:.015em;line-height:1.15}
  .case-info .case-details{gap:18px;padding-top:18px}
  .case-details h4{font-size:14px;letter-spacing:.01em}
  .case-details li{font-size:14px;padding-left:12px}
  .case-details li:before{top:8px;width:4px;height:4px}
  .services-grid{grid-template-columns:1fr;gap:14px}
  .service-card,.service-card:last-child{height:auto;min-height:284px;grid-template-rows:14px minmax(84px,auto) minmax(58px,auto) 44px;row-gap:14px;padding:20px}
  .service-card h3,.service-card:last-child h3{font-size:24px;line-height:27px}
  .service-card .service-result{max-width:100%}
  .service-card.service-contact .service-result{max-width:calc(100% - 30px)}
  .service-card .text-link,.service-card:last-child .text-link{padding-right:0}
  .form-wrap{padding:22px 20px}
}
@media(max-width:359px){
  .shell{width:calc(100% - 32px)}
  .header .contact-link{font-size:10px;gap:5px}.header-inner{gap:8px}
  .menu-toggle{gap:6px;font-size:10px}
  .hero-message .hero-slogan{left:18px;font-size:36px}.hero-message .media-caption{left:18px;font-size:8px}
  .hero-foundation{left:18px}
  .process-strip>div{font-size:18px;gap:5px}.process-strip i{font-size:14px}
  .section-heading h2{font-size:32px}
  .case-details{grid-template-columns:1fr}.case-info .case-details{gap:14px}
  .contact h2{font-size:34px}.footer-steps{font-size:12px}
  .service-card h3,.service-card:last-child h3{font-size:23px}
}
@media(prefers-reduced-motion:reduce){
  .mobile-nav a{transition:none}
}
@media(min-width:700px) and (max-width:800px){
  .service-card,.service-card:last-child{height:282px;min-height:282px;grid-template-rows:14px 90px 58px minmax(44px,1fr)}
}
@media(min-width:801px) and (max-width:1200px){
  .services-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(min-width:1201px) and (max-width:1330px){
  .service-card h3,.service-card:last-child h3{font-size:22px;line-height:25px}
  .service-card .service-price{font-size:13px}.service-heading{gap:10px}
}
/* Both flex items participate in the same text baseline. */
.service-card .service-heading h3{align-self:baseline}

/* A quieter, closely grouped result in every service card. */
.service-card .service-result h4{font-size:16px;line-height:20px;font-weight:500;letter-spacing:0;text-transform:none;margin:0 0 3px}
.service-card .service-result p,.service-card:last-child .service-result p{font-size:14px;line-height:20px;margin:0}
.mini-play{padding:0}
.mini-play svg{display:block;width:21px;height:21px;flex:none}

@media(max-width:800px){
  .client-logo[data-client="rotenstein"] .normalized-logo{transform:scale(.75)}
  /* Only internal boundaries separate the six projects. */
  .project-row,.project-row:last-child{border-top:0;border-bottom:0}
  .project-row+.project-row{border-top:1px solid #969990}
  /* Shared tracks keep the second bullets aligned after either first bullet wraps. */
  .case-info .case-details{grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:auto auto auto;column-gap:18px;row-gap:9px}
  .case-details>div{display:grid;grid-template-rows:subgrid;grid-row:1/span 3;min-width:0}
  .case-details>div:first-child{grid-column:1}.case-details>div:last-child{grid-column:2}
  .case-details h4{grid-row:1;margin:0;align-self:start}
  .case-details ul{display:grid;grid-template-rows:subgrid;grid-row:2/span 2}
  .case-details li{margin:0;align-self:start;line-height:1.5}
  /* Intrinsic text groups replace the empty fixed-height slots. */
  .service-card,.service-card:last-child{height:auto;min-height:0;padding:18px;grid-template-rows:14px auto auto 44px;row-gap:14px;align-content:start}
  .service-intro{min-height:0}
  .service-heading{display:block}
  .service-heading.has-price{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:baseline;gap:10px}
  .service-card h3,.service-card:last-child h3{font-size:22px;line-height:25px;max-width:100%;min-width:0}
  .service-card .service-price{font-size:12px;line-height:20px;text-align:right;align-self:baseline}
  .service-card p.service-description,.service-card:last-child p.service-description{font-size:15px;line-height:21px;margin-top:5px}
  .service-card .service-result,.service-card.service-contact .service-result{max-width:100%;min-height:0}
  .service-card .text-link,.service-card:last-child .text-link{align-self:end;min-height:44px;max-width:calc(100% - 55px);font-size:15px;gap:20px}
  .service-card .tool-icon,.service-card:last-child .tool-icon{width:46px;height:46px;right:16px;bottom:18px}
  .service-mark{width:46px;height:40px;right:16px;bottom:21px}
  /* Three readable steps beside the logo replace the mobile pyramid. */
  .footer-main{grid-template-columns:54px minmax(0,1fr);column-gap:20px}
  .footer-brand{align-self:start}.footer-brand img{width:54px;height:54px}
  .footer-steps{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;font-size:14px;line-height:1.4;counter-reset:footer-step}
  .footer-steps>span,.footer-steps>span:last-child{display:flex;align-items:baseline;gap:10px;grid-column:1;text-align:left;position:static;white-space:normal}
  .footer-steps>span:before{counter-increment:footer-step;content:'0' counter(footer-step);font-size:10px;font-weight:400;color:var(--red);flex:none}
}

/* Center the result between its introduction and action on desktop. */
@media(min-width:801px){
  .service-card,.service-card:last-child{grid-template-rows:14px auto minmax(43px,1fr) 38px}
  .service-card .service-result{align-self:center}
}
@media(max-width:800px){
  .client-logo[data-client="rotenstein"] .normalized-logo{transform:scale(.58)}
  .project-row:first-child{padding-top:8px}
  .project-row:last-child{padding-bottom:8px}
  .services.section{padding-top:28px}
}

/* One compact title/description/media rhythm inside the viewing dialog. */
#case-dialog .modal-shell{padding:20px}
#case-dialog .modal-heading{top:0;padding:0 0 12px;margin:0;gap:16px;align-items:flex-start}
#case-dialog .modal-heading .eyebrow{display:none}
#case-dialog .modal-heading h2{margin:0;font-size:24px;line-height:1.2}
#case-dialog .modal-heading .close-button{width:44px;height:44px;margin-top:-4px}
#dialog-note:empty,.player-note:empty{display:none}
#case-dialog #dialog-note:not(:empty){margin:0 0 16px;font-size:13px;line-height:1.45}
.case-player{display:grid;grid-template-columns:minmax(0,1fr);gap:8px}
.case-player .player-heading{margin:0;gap:16px;align-items:baseline}
.case-player .player-heading h3{font-size:16px;line-height:1.35}
.case-player .player-description{margin:0;font-size:14px;line-height:1.5}
.case-player .video-frame{margin-top:4px}
.case-player .player-note{margin:0;font-size:12px}
.case-player+.case-player{margin-top:20px;padding-top:20px}
@media(max-width:800px){
  /* Each client introduces its own cover, within one continuous surface. */
  #project-list{display:grid;gap:20px}
  .project-row,.project-row:first-child,.project-row:last-child,.project-row+.project-row{display:grid;grid-template-columns:minmax(0,1fr);grid-template-areas:'heading' 'tags' 'cover' 'details' 'action';gap:12px;padding:18px 16px;background:var(--paper);border:0;border-radius:12px;margin:0}
  .case-info{display:contents}
  .case-heading{grid-area:heading}
  .case-info .case-tags{grid-area:tags;margin:0}
  .case-cover{grid-area:cover;aspect-ratio:16/10;border-radius:7px;margin-top:2px}
  .case-info .case-details{grid-area:details;margin:4px 0 0;padding-top:16px}
  .case-info>.text-link{grid-area:action;justify-self:start;margin:2px 0 0}
  .case-heading h3{font-size:26px;line-height:1.14}
  .case-heading .case-subtitle{margin-top:5px;font-size:14px;line-height:1.4}
  .case-tag{background:#fff8}
  #case-dialog .modal-shell{padding:16px}
  #case-dialog .modal-heading{padding-bottom:10px;gap:12px}
  #case-dialog .modal-heading h2{font-size:22px;line-height:1.2}
  .case-player .player-description{font-size:14px;line-height:1.45}
}

/* Full-width mobile lists avoid cramped, uneven two-column wrapping. */
.premium-segment{white-space:nowrap}
@media(max-width:800px){
  .case-heading .premium-segment{display:block}
  .case-info .case-details{grid-template-columns:minmax(0,1fr);grid-template-rows:none;gap:18px}
  .case-details>div,.case-details>div:first-child,.case-details>div:last-child{display:block;grid-column:auto;grid-row:auto}
  .case-details h4{margin:0 0 8px}
  .case-details ul{display:grid;grid-template-rows:none;gap:6px}
  .case-details li{font-size:14px;line-height:1.45;padding-left:12px;text-wrap:pretty}
  .service-card .service-result,.service-card.service-contact .service-result{padding:18px 0;margin:0;align-self:center}
  .service-card .service-result h4{font-size:15px;line-height:19px;margin-bottom:2px}
  .service-card .service-result p,.service-card:last-child .service-result p{font-size:13px;line-height:19px}
  #case-dialog .modal-shell{overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;touch-action:pan-y;max-height:calc(100dvh - 24px)}
}

/* Expert RS clips retain their vertical frame without cropping the speaker. */
.case-player.is-portrait .video-frame{width:min(100%,320px);aspect-ratio:9/16;justify-self:center}
.case-player.is-portrait .player-poster{aspect-ratio:9/16;height:100%}
#case-media .case-player.is-portrait iframe{height:100%;aspect-ratio:9/16}
.case-player.is-portrait .cover-brand{display:none}

@media(min-width:801px){#case-dialog.portrait-case{width:min(430px,calc(100vw - 64px))}}

/* 1.0.7: service names lead; results remain a compact secondary group. */
.service-card,.service-card:last-child{
  height:auto;min-height:290px;
  grid-template-rows:14px auto minmax(min-content,1fr) 44px;
  row-gap:12px;
}
.service-card .service-intro{align-self:start}
.service-card .service-result,.service-card.service-contact .service-result{
  align-self:center;max-width:100%;min-height:0;margin:0;padding:0;
}
.service-card .service-result h4{
  font-size:18px;line-height:23px;font-weight:500;
  letter-spacing:0;text-transform:none;margin:0 0 1px;
}
.service-card .service-result p,.service-card:last-child .service-result p{
  font-size:15px;line-height:22px;margin:0;color:var(--muted);
}
.service-card .text-link,.service-card:last-child .text-link{
  align-self:start;min-height:44px;margin-top:0;
}
@media(max-width:800px){
  .service-card,.service-card:last-child{min-height:0}
}
