:root{
  --red:#E31E24;
  --red-dark:#B8151B;
  --ink:#14161A;
  --grey:#6B6F76;
  --grey-light:#9BA0A8;
  --paper:#FFFFFF;
  --off:#F4F2EE;
  --line:#D8D5CF;
}
html[data-theme="dark"]{
  --ink:#F0EEEA;
  --grey:#A6ABB3;
  --grey-light:#787E88;
  --paper:#15171B;
  --off:#1D2025;
  --line:#33363D;
}
/* applied briefly during a theme toggle so the page's main surfaces fade their colours
   together, rather than snapping instantly -- removed straight after so it doesn't
   slow down normal hover/click transitions the rest of the time.
   Deliberately NOT a wildcard (*) selector: applying an !important transition to
   every element (including the mobile menu and dropdowns, which already animate
   their own max-height/opacity open+close) forces a global style recalculation and
   was causing the mobile menu to visibly flash during the toggle. */
html.theme-fade,
html.theme-fade body,
html.theme-fade header,
html.theme-fade .topbar,
html.theme-fade .hero,
html.theme-fade .pillar,
html.theme-fade .panel,
html.theme-fade .serv-row,
html.theme-fade .about,
html.theme-fade .services,
html.theme-fade .deepdive,
html.theme-fade .cta-band,
html.theme-fade .partners,
html.theme-fade .partner-badge,
html.theme-fade footer,
html.theme-fade .back-to-top,
html.theme-fade .modal-box,
html.theme-fade .modal-field input,
html.theme-fade .modal-field textarea,
html.theme-fade .btn{
  transition:background-color .4s ease, color .4s ease, border-color .4s ease, box-shadow .4s ease, fill .4s ease, stroke .4s ease !important;
}
*{box-sizing:border-box; margin:0; padding:0;}
html{scroll-behavior:smooth;}
body{font-family:'Inter',sans-serif; color:var(--ink); background:var(--paper); line-height:1.55;}
h1,h2,h3,h4{font-family:'Space Grotesk',sans-serif; font-weight:600; letter-spacing:-0.015em; line-height:1; margin-bottom:18px;}
.mono{font-family:'JetBrains Mono',monospace;}
a{color:inherit; text-decoration:none;}
img{max-width:100%; display:block;}
.wrap{max-width:1240px; margin:0 auto; padding:0 40px;}
@media(max-width:700px){.wrap{padding:0 22px;}}

/* blueprint tick label — signature motif */
.tick-label{
  display:inline-flex; align-items:center; gap:8px;
  font-family:'JetBrains Mono'; font-size:11.5px; letter-spacing:0.1em; text-transform:uppercase;
  color:var(--red); margin-bottom:18px;
}
.tick-label::before{content:''; width:14px; height:1px; background:var(--red);}
.tick-label::after{content:''; width:14px; height:1px; background:var(--red);}

/* nav */
/* ---------- top bar ---------- */
.topbar{background:#14161A; color:#fff; border-bottom:2px solid #14161A; position:sticky; top:0; z-index:51;}
.topbar .wrap{display:flex; justify-content:flex-end; align-items:center; height:34px; gap:20px;}
.topbar a{font-family:'JetBrains Mono'; font-size:12px; color:#fff; display:flex; align-items:center; gap:7px; text-transform:uppercase; letter-spacing:0.04em;}
.topbar a:hover{color:var(--red);}
.topbar svg{flex:none;}
.theme-toggle{
  display:flex; align-items:center; gap:6px; background:none; border:none; cursor:pointer;
  font-family:'JetBrains Mono'; font-size:12px; color:#fff; text-transform:uppercase; letter-spacing:0.04em;
  padding:0; transition:color .15s ease;
}
.theme-toggle:hover{color:var(--red);}
.theme-toggle svg{flex:none; transition:transform .3s cubic-bezier(.34,1.56,.64,1);}
.theme-toggle:hover svg{transform:rotate(20deg);}
.theme-toggle .icon-moon{display:none;}
html[data-theme="dark"] .theme-toggle .icon-sun{display:none;}
html[data-theme="dark"] .theme-toggle .icon-moon{display:flex;}

header{border-bottom:2px solid var(--ink); position:sticky; top:36px; background:var(--paper); z-index:50;}
.nav{display:flex; align-items:center; justify-content:space-between; height:88px;}
.nav img{height:46px; width:auto;}
.logo-dark{display:none;}
html[data-theme="dark"] .logo-light{display:none;}
html[data-theme="dark"] .logo-dark{display:block;}
.nav-links{display:flex; align-items:center; gap:38px;}
.nav-links a{font-size:13.5px; font-weight:600; font-family:'Space Grotesk'; text-transform:uppercase; letter-spacing:0.04em; position:relative; padding:6px 0;}
.nav-links a:not(.nav-cta)::after{content:''; position:absolute; left:0; bottom:0; width:0; height:2px; background:var(--red); transition:width .2s ease;}
.nav-links a:not(.nav-cta):hover::after{width:100%;}
.nav-cta{background:var(--red); color:#fff !important; padding:10px 20px; transition:transform .18s cubic-bezier(.34,1.56,.64,1), box-shadow .18s ease, background .15s ease;}
.nav-cta:hover{transform:translateY(-2px); box-shadow:0 5px 0 rgba(227,30,36,0.25);}
.nav-cta:active{transform:translateY(0); box-shadow:none; transition-duration:.05s;}
.nav-cta:hover{background:#14161A;}
.nav-toggle{display:none; background:none; border:none; cursor:pointer;}
.nav-toggle span{display:block; width:24px; height:2px; background:var(--ink); margin:5px 0;}
@media(max-width:900px){
  .nav-links{position:fixed; top:126px; left:0; right:0; background:var(--paper);
    flex-direction:column; align-items:flex-start; gap:0; max-height:0; overflow:hidden; overflow-y:auto; transition:max-height .3s ease;}
  .nav-links.open{max-height:calc(100vh - 126px); max-height:calc(100dvh - 126px); border-bottom:2px solid var(--ink);}
  .nav-links a{width:100%; padding:18px 22px; border-bottom:1px solid var(--line);}
  .nav-cta{margin:16px 22px; width:calc(100% - 44px); text-align:center;}
  .nav-toggle{display:block;}
}

/* client resources dropdown */
.client-res{position:relative;}
.client-res > span{font-size:13.5px; font-weight:600; font-family:'Space Grotesk'; text-transform:uppercase; letter-spacing:0.04em; cursor:pointer; display:flex; align-items:center; gap:6px;}
.client-res > span::after{content:'';width:6px;height:6px;border-right:1.5px solid var(--ink);border-bottom:1.5px solid var(--ink);transform:rotate(45deg);margin-top:-3px;}
.client-res-menu{position:absolute; top:100%; left:0; margin-top:18px; background:var(--paper); border:2px solid var(--ink);
  min-width:260px; box-shadow:8px 8px 0 var(--red); opacity:0; visibility:hidden; transform:translateY(-6px); transition:all .16s ease; padding:10px;}
.client-res:hover .client-res-menu, .client-res:focus-within .client-res-menu{opacity:1; visibility:visible; transform:translateY(0);}
.client-res-menu a{display:flex; flex-direction:column; gap:2px; padding:10px 12px; font-size:13.5px; font-weight:600; font-family:'Space Grotesk';}
.client-res-menu a small{font-family:'Inter'; font-weight:400; color:var(--grey); font-size:12px;}
.client-res-menu a:hover{background:var(--off); color:var(--red);}
.menu-divider{height:1px; background:var(--line); margin:6px 4px;}
.mini-login{padding:10px 12px 6px;}
.mini-login .ml-label{font-family:'Space Grotesk'; font-weight:600; font-size:13.5px; margin-bottom:8px; display:block;}
.mini-login .ml-label small{font-family:'Inter'; font-weight:400; color:var(--grey); font-size:12px; display:block; margin-top:2px;}
.mini-login input{width:100%; font-family:'Inter'; font-size:13px; padding:9px 10px; border:1.5px solid var(--ink); margin-bottom:8px; background:var(--off); color:var(--ink);}
.mini-login input:focus{outline:none; border-color:var(--red);}
.mini-login button{width:100%; background:#14161A; color:#fff; border:none; padding:10px; font-family:'Space Grotesk'; font-weight:600; font-size:13px; cursor:pointer; transition:transform .15s cubic-bezier(.34,1.56,.64,1), background .15s ease;}
.mini-login button:active{transform:scale(.96); transition-duration:.05s;}
.mini-login button:hover{background:var(--red);}
.mini-login.dark input{background:#1F2228; border-color:#3A3D43; color:#fff;}
.mini-login.dark input::placeholder{color:var(--grey-light);}
.mini-login.dark .ml-label{color:#fff;}
.mini-login.dark button{background:var(--red);}
@media(max-width:900px){
  .client-res{width:100%;}
  .client-res > span{padding:18px 22px; border-bottom:1px solid var(--line); justify-content:space-between;}
  .client-res-menu{position:static; opacity:1; visibility:visible; transform:none; box-shadow:none; border:none; display:none; padding:0 22px 14px; margin-top:0;}
  .client-res.open .client-res-menu{display:flex; flex-direction:column;}
}

/* hero — editorial split */
.hero{padding:44px 0 40px; border-bottom:2px solid var(--ink);}
@media(max-width:700px){.hero{padding-top:14px;}}
.hero-top{display:grid; grid-template-columns:2.2fr 1fr; gap:60px; align-items:center; margin-bottom:28px;}
@media(max-width:900px){.hero-top{grid-template-columns:1fr; gap:28px;}}
.hero h1{font-size:clamp(40px,7vw,92px); letter-spacing:-0.03em; line-height:1.08;}
@media(max-height:820px) and (min-width:700px){
  .hero{padding:28px 0 24px;}
  .hero-top{margin-bottom:18px;}
  .hero h1{font-size:clamp(36px,5.5vw,64px);}
}
@media(max-height:680px) and (min-width:700px){
  .hero{padding:20px 0 18px;}
  .hero-top{margin-bottom:14px;}
  .hero h1{font-size:clamp(32px,4.5vw,52px);}
}
.hero h1 .r{color:var(--red);}
.hero-side{font-size:16px; color:var(--grey); border-left:2px solid var(--ink); padding-left:22px;}
.hero-actions{display:flex; gap:14px; flex-wrap:wrap; margin-top:26px;}
.hero-actions .btn{width:170px; justify-content:center;}
.btn{display:inline-flex; align-items:center; gap:8px; padding:15px 26px; font-family:'Space Grotesk'; font-weight:600; font-size:14px; text-transform:uppercase; letter-spacing:0.03em; border:2px solid var(--ink); cursor:pointer; transition:transform .18s cubic-bezier(.34,1.56,.64,1), box-shadow .18s ease, background .15s ease, color .15s ease, border-color .15s ease;}
.btn:hover{transform:translateY(-2px); box-shadow:0 6px 0 rgba(20,22,26,0.12);}
.btn:active{transform:translateY(0); box-shadow:none; transition-duration:.05s;}
.btn-solid{background:#14161A; color:#fff;}
.btn-solid:hover{background:var(--red); border-color:var(--red);}
.btn-outline{background:transparent; color:var(--ink);}
.btn-outline:hover{background:#14161A; color:#fff;}
.btn-red{background:var(--red); border-color:var(--red); color:#fff;}
.btn-red:hover{background:#14161A; border-color:#14161A;}

.hero-strip{display:grid; grid-template-columns:repeat(4,1fr); gap:20px;}
@media(max-width:700px){
  .hero-strip{grid-template-columns:repeat(2,1fr); row-gap:14px; text-align:center;}
}
.hero-strip div{padding:24px 0 0;}
.hero-strip .num{font-family:'Space Grotesk'; font-size:28px; font-weight:600; display:block; margin-bottom:4px;}
.hero-strip .lbl{font-family:'JetBrains Mono'; font-size:11px; color:var(--grey); text-transform:uppercase; letter-spacing:0.05em;}

/* three disciplines strip — equal-weighted, no percentages */
.disciplines-strip{display:grid; grid-template-columns:1fr; gap:12px; margin-bottom:18px;}
.discipline-item{display:flex; flex-direction:column; gap:6px; cursor:pointer; transition:transform .18s cubic-bezier(.34,1.56,.64,1);}
.discipline-item:active{transform:translateX(2px) scale(.98); transition-duration:.05s;}
.discipline-item .discipline-name{font-family:'Space Grotesk'; font-weight:700; font-size:13.5px; text-transform:uppercase; letter-spacing:0.04em; color:var(--ink); transition:color .15s ease;}
.discipline-item .discipline-desc{font-size:13px; color:var(--grey); line-height:1.5;}
.discipline-item .discipline-bar{display:block; height:3px; width:100%; background:var(--red); border-radius:2px; transition:height .15s ease;}
.discipline-item:hover{transform:translateX(4px);}
.discipline-item:hover .discipline-name{color:var(--red);}
.discipline-item:hover .discipline-bar{height:5px;}

/* services — full width numbered rows */
.services{background:var(--paper);}
.serv-head{padding:60px 0 60px;}
@media(max-width:700px){.serv-head{padding-top:52px;}}
.serv-head .tick-label{margin-bottom:20px;}
.serv-head h2{font-size:clamp(30px,4vw,46px); max-width:680px; margin-bottom:18px;}
.serv-head p{max-width:560px; color:var(--grey); font-size:16px;}

.serv-row{border-top:2px solid var(--ink); position:relative; overflow:hidden; transition:background .25s ease;}
.serv-row:hover{background:var(--off);}
.serv-row:last-child{border-bottom:2px solid var(--ink);}
.serv-inner{display:grid; grid-template-columns:120px 1.1fr 1.4fr; gap:40px; padding-top:52px; padding-bottom:52px; position:relative; z-index:1;}
@media(max-width:900px){.serv-inner{grid-template-columns:1fr; gap:16px; padding-top:36px; padding-bottom:36px;}}
.serv-bignum{font-family:'Space Grotesk'; font-size:20px; font-weight:600; color:var(--red); display:inline-block; width:fit-content; transition:transform .25s cubic-bezier(.34,1.56,.64,1);}
.serv-row:hover .serv-bignum{transform:scale(1.15);}
.serv-title h3{font-size:clamp(24px,3vw,34px); margin-bottom:10px;}
.serv-title p{color:var(--grey); font-size:14.5px; max-width:280px;}
.serv-detail ul{list-style:none; display:grid; grid-template-columns:1fr 1fr; gap:12px 24px;}
@media(max-width:600px){.serv-detail ul{grid-template-columns:1fr;}}
.serv-detail li{font-size:14px; padding-left:20px; position:relative;}
.serv-detail li::before{content:'—'; position:absolute; left:0; color:var(--red); font-weight:700;}

/* blueprint annotation divider */
.blueprint{padding-top:50px; padding-bottom:50px; border-bottom:2px solid var(--ink);}
.bp-row{display:flex; align-items:center; gap:16px;}
.bp-line{flex:1; height:1px; background:var(--line); position:relative;}
.bp-line::before, .bp-line::after{content:''; position:absolute; top:-4px; width:1px; height:9px; background:#14161A;}
.bp-line::before{left:0;} .bp-line::after{right:0;}
.bp-note{font-family:'JetBrains Mono'; font-size:12px; color:var(--grey); white-space:nowrap;}
@media(max-width:640px){
  .bp-row{flex-direction:column; align-items:flex-start; gap:10px;}
  .bp-line{display:none;}
}

/* deep-dive panels */
.panels{background:var(--off); border-bottom:2px solid var(--ink);}
.panel-grid{display:grid; grid-template-columns:repeat(3,1fr); border-left:2px solid var(--ink); border-top:2px solid var(--ink); margin-top:60px;}
@media(max-width:900px){.panel-grid{grid-template-columns:1fr;}}
.panel{border-right:2px solid var(--ink); border-bottom:2px solid var(--ink); padding:36px 30px; background:var(--paper); transition:transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .25s ease;}
.panel:hover{transform:translateY(-6px); box-shadow:0 16px 32px rgba(20,22,26,0.14); position:relative; z-index:2;}
.panel .tick-label{font-size:10.5px;}
.panel h4{font-size:19px; margin-bottom:14px;}
.panel p{font-size:14px; color:var(--grey); margin-bottom:0;}

/* about — big pull statement */
.about{padding:100px 0; border-bottom:2px solid var(--ink);}
.about-statement{font-family:'Space Grotesk'; font-size:clamp(28px,4.4vw,50px); font-weight:600; max-width:920px; letter-spacing:-0.02em; margin-bottom:60px; line-height:1; text-align:left;}
.about-statement .r{color:var(--red);}
.about-intro{color:var(--grey); font-size:15.5px; line-height:1.65;}
.wrap-wide{max-width:1560px; margin:0 auto; padding:0 40px;}
@media(max-width:700px){.wrap-wide{padding:0 22px;}}
.about-layout{display:grid; grid-template-columns:1fr 1fr; gap:70px; align-items:stretch;}
@media(max-width:900px){.about-layout{grid-template-columns:1fr;}}
.about-intro-col{padding-top:6px; display:flex; flex-direction:column;}

/* ---------- testimonial carousel ---------- */
.testimonial-carousel{
  border:2px solid var(--ink); background:var(--off);
  padding:26px 24px; position:relative;
}
.testimonial-content{min-height:150px; opacity:1; transition:opacity .25s ease;}
.testimonial-quote{
  font-size:14.5px; line-height:1.65; color:var(--ink); margin-bottom:18px; position:relative; padding-left:20px;
}
.testimonial-quote::before{
  content:'"'; position:absolute; left:0; top:-4px;
  font-family:'Space Grotesk'; font-size:32px; font-weight:700; color:var(--red); line-height:1;
}
.testimonial-quote::after{
  content:'"';
  font-family:'Space Grotesk'; font-weight:700; color:var(--red);
  font-size:32px; line-height:0; vertical-align:-8px; margin-left:2px;
}
.testimonial-author{display:flex; flex-direction:column; gap:2px;}
.testimonial-name{font-family:'Space Grotesk'; font-weight:700; font-size:13.5px; color:var(--ink);}
.testimonial-role{font-size:12px; color:var(--grey);}
.testimonial-controls{display:flex; align-items:center; justify-content:space-between; margin-top:20px; padding-top:16px; border-top:1px solid var(--line);}
.testimonial-nav{
  width:32px; height:32px; border-radius:50%; border:1.5px solid var(--ink); background:transparent;
  display:flex; align-items:center; justify-content:center; cursor:pointer; color:var(--ink);
  transition:background .15s ease, color .15s ease, transform .18s cubic-bezier(.34,1.56,.64,1);
}
.testimonial-nav:hover{background:var(--ink); color:#fff;}
.testimonial-nav:active{transform:scale(.9); transition-duration:.05s;}
.testimonial-dots{display:flex; align-items:center; gap:6px;}
.testimonial-dot{
  width:6px; height:6px; border-radius:3px; background:var(--line); border:none; cursor:pointer; padding:0;
  transition:width .2s ease, background .2s ease;
}
.testimonial-dot.active{width:20px; background:var(--red);}
.about-facts{display:flex; flex-direction:row; flex-wrap:wrap; gap:24px 30px; margin-top:30px;}
@media(min-width:901px){.about-facts{margin-top:auto; padding-top:30px;}}
@media(max-width:500px){.about-facts{justify-content:center; text-align:center;}}
.about-facts div{border-top:2px solid var(--ink); padding-top:14px; flex:1 1 140px;}
.about-facts .num{font-family:'Space Grotesk'; font-size:26px; font-weight:600; display:block;}
.about-facts .lbl{font-family:'JetBrains Mono'; font-size:11px; color:var(--grey); text-transform:uppercase;}

/* testimonial — single big spread */
.pullquote{padding:110px 0; text-align:left; border-bottom:2px solid #14161A; background:#14161A; color:#fff;}
.pq-mark{font-family:'Space Grotesk'; font-size:80px; color:var(--red); line-height:0.6; display:block; margin-bottom:20px;}
.pq-text{font-family:'Space Grotesk'; font-size:clamp(24px,3.6vw,40px); font-weight:500; max-width:920px; letter-spacing:-0.015em; margin-bottom:36px;}
.pq-switch{display:flex; gap:40px; flex-wrap:wrap; align-items:center;}
.pq-who{font-family:'Space Grotesk'; font-weight:600; font-size:15px;}
.pq-role{font-size:13px; color:var(--grey-light);}
.pq-tabs{display:flex; gap:10px; margin-left:auto;}
.pq-tabs button{width:34px; height:34px; border:1px solid #3A3D43; background:transparent; color:#fff; font-family:'JetBrains Mono'; font-size:12px; cursor:pointer;}
.pq-tabs button.active{background:var(--red); border-color:var(--red);}

/* CTA — full bleed red */
.cta-band{background:var(--red); color:#fff; padding:90px 0; border-bottom:2px solid var(--ink);}
.cta-inner{display:flex; justify-content:space-between; align-items:flex-end; flex-wrap:wrap; gap:30px;}
.cta-inner h2{font-size:clamp(30px,5vw,58px); max-width:640px;}
.cta-inner .btn{border-color:#fff;}
.cta-inner .btn-solid{background:#14161A; border-color:#14161A;}
.cta-inner .btn-solid:hover{background:#fff; color:var(--ink);}

/* footer */
footer{padding-top:60px;}
.footer-grid{display:grid; grid-template-columns:1.3fr 0.9fr 0.9fr 1fr; gap:30px; padding-bottom:50px; border-top:2px solid var(--ink); padding-top:40px;}
@media(max-width:960px){.footer-grid{grid-template-columns:1fr 1fr; row-gap:32px;}}
.footer-grid p{font-size:13.5px; color:var(--grey); line-height:1.7;}
.footer-col h4{font-family:'Space Grotesk'; font-size:12px; text-transform:uppercase; letter-spacing:0.06em; margin-bottom:16px;}
.footer-col a{display:block; font-size:13.5px; padding:5px 0; color:var(--ink); position:relative; width:fit-content; transition:color .15s ease;}
.footer-col a::after{content:''; position:absolute; left:0; bottom:3px; width:0; height:1.5px; background:var(--red); transition:width .25s ease;}
.footer-col a:hover::after{width:100%;}
.footer-col a:hover{color:var(--red);}
.footer-bottom{display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:10px; padding:24px 0; font-size:12px; color:var(--grey); border-top:1px solid var(--line);}
.footer-bottom a:hover{color:var(--red); text-decoration:underline;}

@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto;} *{transition:none !important;}}
:focus-visible{outline:2px solid var(--red); outline-offset:2px;}

/* ---------- cookie / privacy notice (subtle) ---------- */
.cookie-notice{
  position:fixed; right:16px; bottom:88px; z-index:250; max-width:340px;
  display:flex; align-items:flex-start; gap:10px;
  background:var(--paper); border:1px solid var(--line); border-radius:10px;
  padding:12px 14px; box-shadow:0 8px 24px rgba(20,22,26,0.12);
  opacity:0; visibility:hidden; transform:translateY(8px);
  transition:opacity .4s ease, transform .4s ease, visibility .4s ease;
}
.cookie-notice.visible{opacity:1; visibility:visible; transform:translateY(0);}
.cookie-notice p{font-size:11.5px; line-height:1.5; color:var(--grey); margin:0;}
.cookie-notice p a{color:var(--grey); text-decoration:underline;}
.cookie-notice p a:hover{color:var(--red);}
.cookie-notice button{
  flex:none; background:none; border:none; cursor:pointer; color:var(--grey-light);
  font-size:16px; line-height:1; padding:2px; margin-top:-1px;
  transition:color .15s ease;
}
.cookie-notice button:hover{color:var(--ink);}
@media(max-width:500px){.cookie-notice{left:12px; right:12px; bottom:76px; max-width:none;}}

/* ---------- cinematic scrolling ---------- */
.scroll-progress{position:fixed; top:0; left:0; height:3px; width:100%; z-index:300; background:transparent; pointer-events:none;}
.scroll-progress-bar{height:100%; width:0%; background:var(--red); transform-origin:left; transition:width .05s linear;}

.reveal{opacity:0; transform:translateY(32px); transition:opacity .8s cubic-bezier(.16,1,.3,1), transform .8s cubic-bezier(.16,1,.3,1); transition-delay:var(--reveal-delay, 0s);}
.reveal.is-visible{opacity:1; transform:translateY(0);}
.reveal-fade{opacity:0; transition:opacity 1s ease; transition-delay:var(--reveal-delay, 0s);}
.reveal-fade.is-visible{opacity:1;}
.reveal-scale{opacity:0; transform:scale(.92); transition:opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1); transition-delay:var(--reveal-delay, 0s);}
.reveal-scale.is-visible{opacity:1; transform:scale(1);}

@media(prefers-reduced-motion:reduce){
  .reveal, .reveal-fade, .reveal-scale{opacity:1 !important; transform:none !important; transition:none !important;}
  .scroll-progress-bar{transition:none !important;}
}

@keyframes introUp{
  from{opacity:0; transform:translateY(24px);}
  to{opacity:1; transform:translateY(0);}
}
.intro{opacity:0; animation:introUp .8s cubic-bezier(.16,1,.3,1) forwards; animation-delay:var(--intro-delay, 0s);}
@media(prefers-reduced-motion:reduce){.intro{opacity:1; animation:none;}}

.hero{position:relative; overflow:hidden;}

/* ---------- back to top button ---------- */
.back-to-top{
  position:fixed; bottom:28px; right:28px; z-index:150;
  width:48px; height:48px; border-radius:50%; border:2px solid var(--ink); background:var(--paper);
  display:flex; align-items:center; justify-content:center; cursor:pointer;
  box-shadow:4px 4px 0 var(--red);
  opacity:0; visibility:hidden; transform:translateY(10px);
  transition:opacity .2s ease, transform .2s cubic-bezier(.34,1.56,.64,1), visibility .2s ease, background .15s ease, box-shadow .2s ease;
}
.back-to-top.visible{opacity:1; visibility:visible; transform:translateY(0);}
.back-to-top.visible:hover{transform:translateY(-4px); box-shadow:6px 6px 0 var(--red);}
.back-to-top.visible:active{transform:translateY(-1px) scale(.9); box-shadow:2px 2px 0 var(--red); transition-duration:.05s;}
.back-to-top:hover{background:#14161A;}
.back-to-top:hover svg path{stroke:#fff;}
.back-to-top svg{width:18px; height:18px; transition:transform .2s cubic-bezier(.34,1.56,.64,1);}
.back-to-top:hover svg{transform:translateY(-2px);}
@media(max-width:700px){.back-to-top{bottom:20px; right:20px; width:42px; height:42px;}}

/* compensate for sticky nav so anchor jumps aren't hidden underneath it */
#support, #security, #cloud, #about{scroll-margin-top:140px;}

/* ---------- contact modal ---------- */
.modal-overlay{
  position:fixed; inset:0; background:rgba(15,17,20,0.55);
  backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px);
  display:flex; align-items:center; justify-content:center; padding:24px;
  opacity:0; visibility:hidden; pointer-events:none;
  transition:opacity .4s cubic-bezier(.16,1,.3,1), visibility .4s, backdrop-filter .4s ease;
  z-index:200;
}
@media(max-width:600px){
  .modal-overlay{padding:12px;}
  .modal-box{padding:28px 24px !important; max-height:94vh !important; max-height:94dvh !important;}
}
.modal-overlay.open{opacity:1; visibility:visible; pointer-events:auto;}
.modal-box{
  background:var(--paper); border-radius:24px;
  box-shadow:0 40px 100px rgba(20,22,26,0.4), 0 0 0 1px rgba(20,22,26,0.06);
  width:100%; max-width:460px; padding:44px; position:relative; max-height:90vh; max-height:90dvh; overflow-y:auto;
  transform:translateY(28px) scale(.94); opacity:0;
  transition:transform .5s cubic-bezier(.16,1,.3,1), opacity .35s ease;
}
.modal-overlay.open .modal-box{transform:translateY(0) scale(1); opacity:1;}
.modal-overlay.closing{opacity:0;}
html[data-theme="dark"] .modal-box{background:#22252B; border:1px solid var(--line); box-shadow:0 40px 100px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.04);}
.modal-overlay.closing .modal-box{transform:translateY(14px) scale(.97); opacity:0; transition:transform .25s cubic-bezier(.4,0,1,1), opacity .2s ease;}

.modal-close{
  position:absolute; top:20px; right:20px; width:38px; height:38px; border:none; background:var(--off);
  border-radius:50%; cursor:pointer; font-size:20px; color:var(--grey); line-height:1;
  display:flex; align-items:center; justify-content:center;
  transition:transform .3s cubic-bezier(.34,1.56,.64,1), background .15s ease, color .15s ease;
}
.modal-close:hover{background:#14161A; color:#fff; transform:rotate(90deg);}
.modal-close:active{transform:rotate(90deg) scale(.85); transition-duration:.05s;}

.modal-box h3{font-family:'Space Grotesk'; font-size:26px; margin-bottom:8px; color:var(--red);}
.modal-box .modal-sub{color:var(--grey); font-size:14px; margin-bottom:28px; line-height:1.5;}
.modal-call{
  display:flex; align-items:center; justify-content:center; gap:9px;
  padding:13px 18px; margin-bottom:24px; border-radius:999px; border:none;
  background:var(--off); color:var(--ink); text-decoration:none;
  font-family:'Space Grotesk', sans-serif; font-weight:600; font-size:13.5px; text-transform:none; letter-spacing:0.02em;
  transition:transform .2s cubic-bezier(.34,1.56,.64,1), background .18s ease, color .18s ease, box-shadow .2s ease;
}
.modal-call svg{flex:none; transition:transform .3s cubic-bezier(.34,1.56,.64,1);}
.modal-call:hover{background:var(--red); color:#fff; transform:translateY(-2px); box-shadow:0 10px 22px rgba(0,0,0,0.18);}
.modal-call:hover svg{transform:rotate(-10deg) scale(1.15);}
.modal-call:active{background:var(--red-dark); transform:translateY(0) scale(.96); transition-duration:.05s;}


.modal-field{margin-bottom:18px; opacity:0; transform:translateY(12px); transition:opacity .45s ease, transform .45s cubic-bezier(.16,1,.3,1); position:relative;}
.field-check{position:absolute; right:14px; top:38px; opacity:0; transform:scale(.5); transition:opacity .2s cubic-bezier(.34,1.56,.64,1), transform .2s cubic-bezier(.34,1.56,.64,1); pointer-events:none;}
.field-check-textarea{top:38px;}
.modal-field.field-valid .field-check{opacity:1; transform:scale(1);}
.modal-field.field-valid input, .modal-field.field-valid textarea{border-color:#1A8A4A;}
.modal-overlay.open .modal-field{opacity:1; transform:translateY(0);}
.modal-field:nth-of-type(1){transition-delay:.08s;}
.modal-field:nth-of-type(2){transition-delay:.13s;}
.modal-field:nth-of-type(3){transition-delay:.18s;}
.modal-field:nth-of-type(4){transition-delay:.23s;}
.modal-field:nth-of-type(5){transition-delay:.28s;}
.modal-field label{display:block; font-size:11.5px; font-weight:600; margin-bottom:7px; font-family:'Space Grotesk'; text-transform:uppercase; letter-spacing:0.05em; color:var(--grey);}
.modal-field input, .modal-field textarea{
  width:100%; font-family:'Inter'; font-size:14.5px; padding:12px 14px;
  border:1.5px solid var(--line); border-radius:12px; background:var(--off); color:var(--ink);
  transition:border-color .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.modal-field input::placeholder, .modal-field textarea::placeholder{color:var(--grey-light);}
.modal-field input:focus, .modal-field textarea:focus{
  outline:none; border-color:var(--red); background:var(--paper);
  box-shadow:0 0 0 4px rgba(227,30,36,0.10);
}
.modal-field textarea{resize:vertical; min-height:100px;}

.modal-submit{
  width:100%; background:var(--red); color:#fff; border:none; padding:15px;
  border-radius:12px; font-family:'Space Grotesk'; font-weight:600; font-size:14px;
  text-transform:uppercase; letter-spacing:0.03em; cursor:pointer; margin-top:6px;
  box-shadow:0 10px 28px rgba(227,30,36,0.28);
  transition:transform .18s cubic-bezier(.34,1.56,.64,1), box-shadow .2s ease, background .15s ease;
}
.modal-submit:hover{background:var(--red-dark); transform:translateY(-2px); box-shadow:0 14px 32px rgba(227,30,36,0.36);}
.modal-submit:active{transform:translateY(0) scale(.97); transition-duration:.05s;}
.modal-submit:disabled{opacity:.7; cursor:not-allowed; transform:none;}

.modal-note{font-size:12px; color:var(--grey-light); margin-top:16px; text-align:center;}
.modal-status{font-size:13px; margin-top:12px; text-align:center; font-weight:600; min-height:0; transition:opacity .3s ease;}
.modal-status.success{display:flex; flex-direction:column; align-items:center; gap:8px;}
@keyframes successPop{
  0%{transform:scale(0) rotate(-30deg); opacity:0;}
  60%{transform:scale(1.15) rotate(6deg); opacity:1;}
  100%{transform:scale(1) rotate(0deg); opacity:1;}
}
.success-icon{
  display:flex; align-items:center; justify-content:center;
  width:38px; height:38px; border-radius:50%; background:#1A8A4A;
  animation:successPop .5s cubic-bezier(.34,1.56,.64,1) forwards;
}
@media(prefers-reduced-motion:reduce){.success-icon{animation:none;}}
.modal-status.success{color:#1A8A4A;}
.modal-status.error{color:var(--red);}

@media(prefers-reduced-motion:reduce){
  .modal-overlay, .modal-box, .modal-field, .modal-close, .modal-submit{transition:none !important;}
}

/* ---------- partners ---------- */
.partners{padding:80px 0; border-bottom:2px solid var(--ink);}
.partner-grid{display:flex; flex-wrap:wrap; gap:14px; margin-top:48px;}
.partner-badge{
  display:flex; align-items:center; padding:16px 26px; background:var(--paper); border:1px solid var(--line);
  border-radius:999px; box-shadow:0 8px 20px rgba(20,22,26,0.05); transition:transform .2s cubic-bezier(.34,1.56,.64,1), box-shadow .2s ease, border-color .15s ease;
}
.partner-badge span{font-family:'Space Grotesk'; font-weight:600; font-size:15px; text-transform:none; letter-spacing:0.01em; color:var(--ink);}
.partner-badge:hover{border-color:var(--red); box-shadow:0 12px 28px rgba(227,30,36,0.12); background:var(--paper); transform:translateY(-3px);}
.partner-badge:active{transform:translateY(-1px) scale(.97); transition-duration:.05s;}
.partner-badge:hover span{color:var(--red);}

/* ---------- find us / route diagram ---------- */
.findus{padding:100px 0; border-bottom:2px solid var(--ink); background:var(--paper);}
.findus-map{margin-top:56px;}
.findus-map svg{width:100%; height:auto; display:block;}
.route-node-label{font-family:'Space Grotesk', sans-serif; font-size:14px; font-weight:600; fill:var(--ink); text-transform:uppercase; letter-spacing:0.02em;}
.route-node-sub{font-family:'JetBrains Mono', monospace; font-size:10.5px; fill:var(--grey);}
.route-hq-label{font-family:'Space Grotesk', sans-serif; font-size:15px; font-weight:700; fill:#FFFFFF;}
.route-hq-sub{font-family:'JetBrains Mono', monospace; font-size:10.5px; fill:#FFD8D9;}
.route-walk{font-family:'JetBrains Mono', monospace; font-size:11.5px; fill:var(--grey); text-transform:uppercase; letter-spacing:0.04em;}
.findus-cards{display:grid; grid-template-columns:1fr 1fr; border-top:2px solid var(--ink); margin-top:56px;}
@media(max-width:700px){.findus-cards{grid-template-columns:1fr;}}
.findus-card{padding:26px 0; border-right:2px solid var(--ink);}
.findus-card:last-child{border-right:none; padding-left:36px;}
@media(max-width:700px){.findus-card{border-right:none; border-bottom:2px solid var(--ink); padding-left:0;} .findus-card:last-child{border-bottom:none; padding-left:0; padding-top:26px;}}
.findus-card .num{font-family:'Space Grotesk'; font-size:22px; font-weight:600; display:block; margin-bottom:6px;}
.findus-card .lbl{font-size:14px; color:var(--grey); max-width:320px;}

/* ---- Areas we cover (homepage) ---- */
.areas{padding:70px 0; border-top:2px solid var(--ink);}
.areas h2{font-family:'Space Grotesk',sans-serif; font-weight:700; font-size:clamp(26px,3.4vw,38px); letter-spacing:-0.015em; color:var(--ink); margin:0 0 18px;}
.areas-lead{font-size:clamp(16px,1.7vw,19px); line-height:1.6; color:var(--grey); max-width:720px; margin:0 0 26px;}
.areas-lead strong{color:var(--ink); font-weight:600;}
.areas-links{display:flex; flex-wrap:wrap; gap:12px; margin:0 0 22px;}
.areas-links a{font-family:'Space Grotesk',sans-serif; font-weight:600; font-size:14px; color:var(--ink); border:1.5px solid var(--ink); padding:11px 18px; transition:background .15s ease, color .15s ease, border-color .15s ease;}
.areas-links a:hover{background:var(--red); border-color:var(--red); color:#fff;}
.areas-note{font-family:'JetBrains Mono',monospace; font-size:13px; color:var(--grey-light); letter-spacing:0.02em; margin:0;}
