/*
Theme Name: TMD 2026
Version: 1.0.0
Description: Responsive custom homepage based on the TMD Figma design.
Requires PHP: 7.4
Text Domain: tmd-2026
*/
:root{--blue:#0030ba;--green:#00c9a7;--ink:#2c2c2c;--scale: min(1px, calc(100vw / 1728));}*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:30px}body{margin:0;color:var(--ink);font-family:Satoshi,Arial,sans-serif}h1,h2,h3,h4,p{margin:0}a{color:inherit;text-decoration:none}button{font:inherit;cursor:pointer}img{vertical-align:middle}button:focus-visible,a:focus-visible{outline:3px solid #00c9a7;outline-offset:6px}.wrap{width:calc(100% - 19.1%);max-width:1414px;margin:auto}.skip{position:fixed;top:-100px;z-index:99;background:white;padding:15px}.skip:focus{top:0}.hero{height:calc(1620 * var(--scale));min-height:970px;position:relative;overflow:hidden;color:#fff;background:linear-gradient(180deg,#0a1628 0%,#003ae1 50%,#5b6eff 100%)}.hero-grid{position:absolute;left:50%;top:0;transform:translateX(-50%) scale(calc(100vw / 1728px));transform-origin:top center;width:1415px;height:1620px;opacity:1}.nav{position:relative;top:37px;border-radius:100px;background:#ffffff1a;height:74px;display:flex;align-items:center;justify-content:space-between;padding:10px 18px 10px 24px;z-index:5}.logo{display:flex;align-items:center;gap:3px}.nav-links{display:flex;gap:59px;font-size:16px;font-weight:900;text-transform:uppercase}.pill{display:inline-flex;align-items:center;justify-content:center;border-radius:45px;background:#fff;color:#0a1628;height:61px;padding:0 48px;font-weight:900;font-size:16px;text-transform:uppercase;white-space:nowrap}.nav-cta{height:54px;padding:0 24px}.menu-toggle{display:none}.hero-copy{position:relative;z-index:2;text-align:center;padding-top:109px;max-width:850px;margin:auto}.trust{display:flex;align-items:center;justify-content:center;gap:26px;color:#8f9cff;font:14px 'Plus Jakarta Sans',sans-serif}.avatars{display:flex;padding-left:18px}.avatars img{margin-left:-18px}.eyebrow{margin-top:58px;color:#8f9cff;font:14px 'Plus Jakarta Sans',sans-serif}.hero h1{font-size:clamp(64px,5.79vw,100px);line-height:.93;font-weight:700;margin-top:34px;letter-spacing:-2px}.intro{font:22px/1.4 'Plus Jakarta Sans',sans-serif;max-width:804px;margin:43px auto 0}.discover{margin-top:40px;min-width:230px}.portfolio-tiles{position:absolute;inset:0;pointer-events:none}.tile-column{position:absolute;width:15.6%;top:31.9%;display:grid;gap:calc(13 * var(--scale))}.tile-column div{background:var(--blue);border-radius:10px;aspect-ratio:269.493/301.449}.tile-0{left:1.33%}.tile-1{left:17.65%;top:42.23%}.tile-2{left:34%;top:52.56%}.tile-3{left:50.44%;top:52.56%}.tile-4{left:66.75%;top:42.23%}.tile-5{left:83.13%}.label{display:flex;align-items:center;gap:10px;font-weight:700;font-size:24px;line-height:1}.centered{justify-content:center}.clients{padding-top:96px;overflow:hidden}.logo-row{display:flex;justify-content:center;gap:89px;width:max-content;position:relative;left:50%;transform:translateX(-50%);margin-top:64px}.logo-row div{width:220px;height:111px;border:1px solid #dfdfdf;border-radius:10px;display:grid;place-items:center;font-size:12px;font-weight:700;color:#e3e3e3}.logo-row.staggered{margin-top:52px}.about{padding-top:117px;padding-bottom:190px}.about-grid{display:grid;grid-template-columns:1fr 1.13fr;gap:80px;margin-top:107px}.roles{font-size:clamp(50px,5.21vw,90px);line-height:1.155;color:var(--green);font-weight:700;letter-spacing:-2px}.statement{font-size:clamp(25px,2.2vw,38px);line-height:1.36;font-weight:700}.statement span{color:#d3d3d3}.audiences{background:#f8f9fb;position:relative;overflow:hidden;padding:136px 0 192px}.audience-decoration{position:absolute;top:-160px;left:50%;transform:translateX(-50%);pointer-events:none}.audiences .wrap{position:relative}.section-title{font-size:clamp(52px,5.21vw,90px);font-weight:700;line-height:1.045;letter-spacing:-2px;text-align:center;max-width:859px;margin:38px auto 0}.audience-cards{display:grid;grid-template-columns:repeat(4,1fr);gap:45px;margin-top:29px}.audience-cards article{background:#003ae1;border-radius:10px;min-height:395px;display:flex;flex-direction:column;justify-content:flex-end;padding:34px}.audience-cards article:nth-child(2),.audience-cards article:nth-child(3){transform:translateY(123px)}.audience-cards h4{color:white;font-size:30px;line-height:1.04;max-width:230px;margin-bottom:22px}.audience-cards p{color:#a4bbff;font:500 14px/18px 'Plus Jakarta Sans',sans-serif}.services{padding-top:124px}.disciplines{display:flex;align-items:center;gap:27px;margin-top:94px;height:620px}.discipline{border:1px solid #d5dae2;background:#f8f9fb;border-radius:10px;flex:1;min-width:0;height:513px;padding:32px;display:flex;flex-direction:column;justify-content:flex-end;transition:flex .3s,height .3s,background .3s}.discipline.active{flex:1.6;height:620px;background:var(--blue);border-color:var(--blue);color:white}.discipline button{border:0;background:none;padding:0;text-align:left;font-size:clamp(24px,2.32vw,40px);font-weight:700;white-space:nowrap;color:inherit}.tags{display:none;flex-wrap:wrap;gap:12px;margin-top:22px}.active .tags{display:flex}.tags span{border:1px solid #fff;border-radius:100px;font-size:22px;padding:13px 25px}.results{background:var(--green);border-radius:10px;min-height:509px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;margin-top:96px;color:white;padding:70px}.results h3{font-size:24px;font-weight:700;margin-bottom:44px}.results p{max-width:840px;font:700 36px/1.35 'Plus Jakarta Sans',sans-serif}.people{padding-top:123px;overflow:hidden}.people .section-title{max-width:none;margin-top:0}.team-rows{margin-top:62px;display:grid;gap:36px}.team-rows>div{display:flex;justify-content:center}.collaborators{padding-top:145px;padding-bottom:88px}.collaborator-grid{display:grid;grid-template-columns:750fr 508fr;gap:156px;margin-top:75px}.collaborator-grid blockquote{font-size:28px;line-height:41px;font-weight:700;margin:0}.founder{display:flex;align-items:center;gap:29px;margin-top:40px}.founder p{font-size:16px;font-weight:700;margin-top:15px}.signature{object-fit:cover}.blue{background:var(--blue);color:white;margin-top:64px}.generic{padding:100px 0}
@media(min-width:1728px){.hero-grid{transform:translateX(-50%)}.hero{height:1620px}}
@media(max-width:1300px){.hero{min-height:1100px}.hero-copy{padding-top:109px;max-width:650px}.intro{font-size:18px;max-width:610px}.tile-column{top:48%}.tile-1,.tile-4{top:60%}.tile-2,.tile-3{top:72%}.nav-links{gap:30px}.audience-cards{gap:24px}.audience-cards article{padding:24px;min-height:345px}.audience-cards h4{font-size:25px}.about-grid{gap:50px}.discipline{padding:22px}.tags span{font-size:16px;padding:12px 16px}.disciplines{gap:18px}.collaborator-grid{gap:80px}.collaborator-grid blockquote{font-size:24px;line-height:1.4}.team-rows>div{transform:scale(.75);height:86px}.team-rows{gap:28px}}
@media(max-width:800px){.wrap{width:calc(100% - 40px)}.hero{height:auto;min-height:1050px}.nav{top:20px;height:68px;padding:12px 18px}.nav-cta{font-size:11px;height:42px;padding:0 17px}.logo{transform:scale(.8);transform-origin:left center;width:90px}.menu-toggle{display:block;border:0;color:white;background:none;font-weight:700;font-size:13px}.nav-links{display:none;position:absolute;top:80px;left:0;right:0;background:#0a1628;padding:26px;border-radius:20px;flex-direction:column;font-size:15px}.nav-links.open{display:flex}.hero-copy{padding:88px 22px 0}.trust{gap:15px;font-size:11px}.avatars{transform:scale(.75);margin-right:-30px;margin-left:-24px}.eyebrow{font-size:11px;margin-top:44px}.hero h1{font-size:clamp(44px,8.8vw,70px);letter-spacing:-1px;line-height:1.02;margin-top:26px}.intro{font-size:16px;line-height:1.6;max-width:550px;margin-top:28px}.discover{margin-top:28px;height:54px;font-size:14px}.portfolio-tiles{top:610px;height:430px}.tile-column{top:0;width:29%;gap:12px}.tile-0{left:-15%}.tile-1{left:16%;top:45px}.tile-2{left:47%;top:90px}.tile-3{left:78%;top:45px}.tile-4,.tile-5{display:none}.hero-grid{opacity:.4}.clients{padding-top:64px}.label{font-size:20px}.logo-row{gap:25px;margin-top:42px}.logo-row div{width:150px;height:80px}.logo-row.staggered{margin-top:25px}.about{padding-top:75px;padding-bottom:85px}.about-grid{grid-template-columns:1fr;gap:42px;margin-top:50px}.roles{font-size:56px;letter-spacing:-1px}.statement{font-size:27px;line-height:1.4}.audiences{padding:75px 0}.section-title{font-size:48px;letter-spacing:-1px;margin-top:28px}.audience-cards{grid-template-columns:1fr 1fr;gap:20px;margin-top:50px}.audience-cards article{min-height:310px;padding:22px}.audience-cards article:nth-child(2),.audience-cards article:nth-child(3){transform:none}.audience-cards h4{font-size:25px}.services{padding-top:75px}.disciplines{margin-top:48px;height:auto;flex-direction:column;align-items:stretch;gap:15px}.discipline,.discipline.active{flex:auto;min-height:100px;height:auto;padding:28px}.discipline.active{min-height:340px;justify-content:flex-end}.discipline button{font-size:32px}.tags span{font-size:18px}.results{margin-top:60px;padding:45px 25px;min-height:400px}.results h3{font-size:20px;line-height:1.3;margin-bottom:28px}.results p{font-size:26px}.people{padding-top:75px}.people .section-title{padding:0 20px}.team-rows{margin-top:42px;gap:16px}.team-rows>div{transform:scale(.4);height:46px}.collaborators{padding-top:75px;padding-bottom:60px}.collaborator-grid{grid-template-columns:1fr;gap:48px;margin-top:45px}.collaborator-grid blockquote{font-size:25px}.founder{gap:22px}.blue{margin-top:45px;height:54px;font-size:14px}}
@media(max-width:450px){.hero{min-height:1000px}.hero-copy{padding-top:70px}.portfolio-tiles{top:630px}.section-title{font-size:40px}.audience-cards{grid-template-columns:1fr}.audience-cards article{min-height:300px}.audience-cards h4{max-width:250px;font-size:30px}.roles{font-size:50px}.statement{font-size:24px}.nav-cta{padding:0 12px}.founder>img{transform:scale(.8);margin-left:-10px;margin-right:-10px}.signature{max-width:180px;height:auto}.discipline button{font-size:29px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.discipline{transition:none}}
/* Preview layout refinements */
.team-rows>div{width:100%;transform-origin:center center}.team-rows img{flex-shrink:0}
@media(min-width:801px) and (max-width:1300px){.hero{min-height:1350px}.tile-column{top:42%}.tile-1,.tile-4{top:53%}.tile-2,.tile-3{top:64%}}
@media(max-width:800px){.team-rows>div{height:46px;transform:scale(.4)}}

.team-rows{grid-template-columns:minmax(0,1fr)}.team-rows>div{min-width:0;align-items:center}

/* Frosted navigation */
.nav{background:linear-gradient(-65deg,rgba(228,212,233,.4),rgba(255,255,255,.4));-webkit-backdrop-filter:blur(15px);backdrop-filter:blur(15px)}

/* Reference-style service accordion: equal height, horizontal expansion. */
@media(min-width:801px){
  .disciplines{height:513px;align-items:stretch}
  .discipline,.discipline.active{height:100%;flex:1 1 0;overflow:hidden;transition:flex-grow .55s cubic-bezier(.22,1,.36,1),background-color .45s ease,border-color .45s ease,color .45s ease}
  .discipline.active{flex-grow:1.35}
  .discipline button{white-space:normal;line-height:1.1;min-height:2.2em;display:flex;align-items:flex-end;order:2}
  .discipline .tags{display:flex;order:1;margin:0 0 32px;gap:10px}
  .discipline .tags span{font-size:16px;line-height:1.25;padding:10px 14px;border-color:currentColor;transition:border-color .45s ease}
}
@media(prefers-reduced-motion:reduce){.discipline,.discipline.active,.discipline .tags span{transition:none}}

/* Text enters upward through individual line masks, inspired by NOHO. */
.tmd-reveal-pending{visibility:hidden}
.tmd-line-mask{display:block;overflow:clip;padding-block:.15em;margin-block:-.15em}
.tmd-line-text{display:block;transform:translateY(115%);opacity:0;transition:transform .95s cubic-bezier(.16,1,.3,1),opacity .55s ease;transition-delay:var(--tmd-line-delay,0ms)}
.tmd-in-view .tmd-line-text{transform:translateY(0);opacity:1}
.tmd-block-reveal{opacity:0;transform:translateY(16px);transition:opacity .7s ease,transform .8s cubic-bezier(.16,1,.3,1)}
.tmd-block-reveal.tmd-in-view{opacity:1;transform:translateY(0)}
.hero .intro .tmd-line-text{transition-delay:calc(180ms + var(--tmd-line-delay,0ms))}
.hero .discover{transition-delay:320ms}
.audience-cards article:nth-child(2) .tmd-block-reveal{transition-delay:80ms}
.audience-cards article:nth-child(3) .tmd-block-reveal{transition-delay:160ms}
.audience-cards article:nth-child(4) .tmd-block-reveal{transition-delay:240ms}

.statement>.tmd-line-mask,.statement>.tmd-line-mask>.tmd-line-text{color:inherit}
.tmd-line-reveal{display:grid;grid-template-columns:minmax(0,1fr)}
.tmd-line-text{white-space:nowrap}

/* Hypen's 400ms ease; expanded size and pill reveal follow the TMD reference. */
.disciplines{--service-gap:27px;--service-pad:32px;gap:var(--service-gap);height:620px;align-items:center}
.disciplines .discipline{position:relative;flex:0 0 calc((100% - 3 * var(--service-gap))/4);height:513px;min-height:0;padding:var(--service-pad);overflow:hidden;transition:flex-basis .4s ease,height .4s ease,background-color .4s ease,border-color .4s ease,color .4s ease}
.disciplines.has-active .discipline{flex-basis:calc((100% - 3 * var(--service-gap))/4.6)}
.disciplines.has-active .discipline.active{flex-basis:calc((100% - 3 * var(--service-gap))*1.6/4.6);height:620px}
.disciplines .discipline button{position:absolute;left:var(--service-pad);right:var(--service-pad);bottom:var(--service-pad);display:block;min-height:0;white-space:normal;line-height:1.1;transform:translateY(0);transition:transform .4s ease,color .4s ease}
.disciplines .discipline.active button{transform:translateY(calc(-1 * (var(--pill-height,180px) + 28px)))}
.disciplines .discipline .tags{position:absolute;left:var(--service-pad);bottom:var(--service-pad);display:flex;width:var(--pill-width);max-width:none;gap:12px;margin:0;pointer-events:none}
.disciplines .discipline .tags span{font-size:clamp(16px,1.27vw,22px);line-height:1.2;padding:12px 20px;border-color:currentColor;opacity:0;transform:translateY(14px);transition:opacity .18s ease,transform .18s ease;transition-delay:0ms}
.disciplines .discipline.active .tags span{opacity:1;transform:translateY(0);transition-duration:.4s;transition-delay:var(--pill-delay,120ms)}
@media(min-width:801px) and (max-width:1300px){.disciplines{--service-gap:18px;--service-pad:22px}.disciplines .discipline .tags span{padding:10px 14px}}
@media(max-width:800px){
  .disciplines{--service-gap:15px;--service-pad:28px;height:auto;align-items:stretch}
  .disciplines .discipline,.disciplines.has-active .discipline{flex:0 0 auto;height:100px;min-height:100px}
  .disciplines.has-active .discipline.active{flex:0 0 auto;height:380px;min-height:380px}
  .disciplines .discipline .tags span{font-size:18px;padding:12px 16px}
}

/* Exact service content may need a second line inside a pill. */
.disciplines .discipline .tags span{max-width:100%;white-space:normal}
.disciplines.has-active .discipline.active{height:var(--service-active-height,620px)}
@media(max-width:800px){.disciplines.has-active .discipline.active{height:var(--service-active-height,380px)}}

/* Gradual hero tiles: individual fades with a gentle upward drift. */
.tile-column>div{animation:tmd-tile-load 1.5s cubic-bezier(.16,1,.3,1) both;animation-delay:calc(.7s + var(--tile-order,0)*.19s)}
.tile-0>div:first-child{--tile-order:0}.tile-5>div:first-child{--tile-order:1}
.tile-1>div:first-child{--tile-order:2}.tile-4>div:first-child{--tile-order:3}
.tile-2>div:first-child{--tile-order:4}.tile-3>div:first-child{--tile-order:5}
.tile-0>div:last-child{--tile-order:6}.tile-5>div:last-child{--tile-order:7}
.tile-1>div:last-child{--tile-order:8}.tile-4>div:last-child{--tile-order:9}
.tile-2>div:last-child{--tile-order:10}.tile-3>div:last-child{--tile-order:11}
@keyframes tmd-tile-load{from{opacity:0;transform:translateY(42px)}to{opacity:1;transform:translateY(0)}}

/* Team gallery: replace circular placeholders with colorful portrait cards. */
.team-gallery{display:flex;align-items:flex-end;gap:24px;overflow-x:auto;overflow-y:hidden;padding:115px max(20px,calc((100vw - 1414px)/2)) 24px;margin-top:35px;min-height:620px;scroll-snap-type:x proximity;scrollbar-width:none}
.team-gallery::-webkit-scrollbar{display:none}
.team-card{position:relative;flex:0 0 clamp(230px,18vw,320px);height:390px;border:0;border-radius:0;padding:0;background:var(--team-color);overflow:hidden;scroll-snap-align:center;transition:flex-basis .5s ease,height .5s ease;cursor:pointer}
.team-card:hover,.team-card:focus-visible,.team-card.is-active{flex-basis:clamp(290px,23.4vw,416px);height:507px}
.team-card img{width:100%;height:100%;object-fit:cover;object-position:center;display:block}
.team-hover-cue{position:absolute;left:50%;top:50%;display:grid;place-items:center;width:140px;height:140px;border-radius:50%;background:white;color:#2c2c2c;font-size:24px;transform:translate(-50%,-50%) scale(.7);opacity:0;transition:opacity .35s ease,transform .5s ease;pointer-events:none}
.team-card:hover .team-hover-cue,.team-card:focus-visible .team-hover-cue,.team-card.is-active .team-hover-cue{opacity:1;transform:translate(-50%,-50%) scale(1)}
@media(max-width:800px){.team-gallery{gap:16px;margin-top:20px;padding-top:70px;min-height:480px}.team-card{flex-basis:230px;height:320px}.team-card:hover,.team-card:focus-visible,.team-card.is-active{flex-basis:275px;height:390px}.team-hover-cue{width:100px;height:100px;font-size:20px}}

/* Frosted navigation contracts on downward scroll and opens on upward scroll. */
html{scroll-padding-top:115px}
.hero{padding-top:74px}
.nav{position:fixed;left:50%;top:24px;transform:translateX(-50%);z-index:1000;width:calc(100% - 19.1%);transition:width .45s ease,top .45s ease,background-color .45s ease,box-shadow .45s ease}
.nav-links{flex:1;justify-content:center;max-width:650px;white-space:nowrap;overflow:hidden;opacity:1;transition:opacity .2s ease,max-width .45s ease,transform .45s ease,visibility .2s}
.nav.is-away{background:linear-gradient(-65deg,rgba(26,38,63,.84),rgba(10,22,40,.78));box-shadow:0 8px 30px #0a16281a}
.nav.is-compact{width:380px;top:18px}
.nav.is-compact .nav-links{max-width:0;opacity:0;visibility:hidden;transform:translateY(-6px);pointer-events:none}
.menu-toggle{transition:opacity .2s ease,width .45s ease}
.nav.is-compact .menu-toggle{width:0;padding:0;opacity:0;visibility:hidden;overflow:hidden;pointer-events:none}
.admin-bar .nav{top:56px}
@media(max-width:800px){.hero{padding-top:68px}.nav{width:calc(100% - 40px);top:20px}.nav.is-compact{width:300px;top:14px}.nav-links{max-width:none;white-space:normal;overflow:visible}.nav.is-compact .nav-links{display:none}.admin-bar .nav{top:60px}}

/* One seamless, automatically scrolling client-logo row. */
.logo-marquee{overflow:hidden;margin-top:64px;width:100%}
.logo-track{display:flex;width:max-content;animation:tmd-logo-scroll 40s linear infinite;will-change:transform}
.logo-set{display:flex;flex:none;gap:89px;padding-right:89px}
.client-logo{flex:none;width:220px;height:111px;border:1px solid #dfdfdf;border-radius:10px;display:grid;place-items:center;font-size:12px;font-weight:700;color:#e3e3e3}
@keyframes tmd-logo-scroll{from{transform:translateX(0)}to{transform:translateX(-50%)}}
@media(max-width:800px){.logo-marquee{margin-top:42px}.logo-set{gap:25px;padding-right:25px}.client-logo{width:150px;height:80px}.logo-track{animation-duration:32s}}

.about .statement.scroll-fill .scroll-fill-word{display:inline-block;color:transparent;background:linear-gradient(to right,#2c2c2c var(--word-fill,0%),#d4d4d4 var(--word-fill,0%));background-clip:text;-webkit-background-clip:text;-webkit-text-fill-color:transparent}
