:root{
  --heading-font:"Montserrat",sans-serif;
  --body-font:"Inter",sans-serif;
  --black:#050505;
  --black-2:#08090b;
  --black-3:#0d0f12;
  --black-4:#111317;
  --orange:#ff5a00;
  --orange-2:#ff6a00;
  --orange-dark:#e64a00;
  --white:#fff;
  --gray:#b8b8b8;
  --gray-2:#a5a5a5;
  --gray-3:#777;
  --light:#f8f8f8;
  --line:#e8e8e8;
  --container:min(1180px, calc(100% - 40px));
}

*{box-sizing:border-box}

html{scroll-behavior:smooth}

body.agency-home{
  margin:0;
  background:var(--black);
  color:var(--white);
  font-family:var(--body-font);
}

body.agency-home[data-theme="light"]{
  background:#fff;
  color:#111317;
}

body.agency-home[data-theme="dark"]{
  background:#050505;
  color:#fff;
}

.agency-home a{
  color:inherit;
  text-decoration:none;
}

.agency-header{
  position:sticky;
  top:0;
  z-index:100;
  min-height:75px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  padding:0 8%;
  background:rgba(5,5,5,.98);
  border-bottom:1px solid rgba(255,255,255,.08);
  transform:translateZ(0);
}

.agency-brand{
  display:flex;
  align-items:center;
  gap:7px;
  min-width:210px;
}

.agency-logo{
  width:78px;
  height:37px;
  object-fit:contain;
  display:block;
  filter:drop-shadow(0 15px 30px rgba(255,90,0,.15));
}

.agency-brand-line{
  width:1px;
  height:36px;
  background:rgba(255,255,255,.76);
}

.agency-brand-name{
  display:flex;
  flex-direction:column;
  justify-content:center;
  color:var(--white);
  font-family:var(--heading-font);
  font-size:11px;
  font-weight:800;
  line-height:1.1;
  text-transform:uppercase;
  letter-spacing:.3px;
}

.agency-brand-name span:nth-child(2){
  color:inherit;
}

.agency-brand-name span{
  display:block;
  color:var(--white);
  animation:agencyColorDrop 3.6s ease-in-out infinite;
}

.agency-brand-name span:nth-child(1){
  animation-delay:0s;
}

.agency-brand-name span:nth-child(2){
  animation-delay:1.2s;
}

.agency-brand-name span:nth-child(3){
  animation-delay:2.4s;
}

@keyframes agencyColorDrop{
  0%,18%{color:var(--white);text-shadow:none}
  24%,46%{color:var(--orange);text-shadow:0 0 12px rgba(255,90,0,.32)}
  54%,100%{color:var(--white);text-shadow:none}
}

.agency-nav{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:21px;
  flex:1;
}

.agency-nav a{
  position:relative;
  display:inline-flex;
  min-height:75px;
  align-items:center;
  color:var(--white);
  font-family:var(--heading-font);
  font-size:10px;
  font-weight:600;
  letter-spacing:.3px;
  text-transform:uppercase;
  transition:color .3s ease;
}

.agency-nav a:after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:19px;
  width:0;
  height:2px;
  margin:auto;
  background:var(--orange);
  transition:width .3s ease;
}

.agency-nav a:hover,
.agency-nav a.is-active{
  color:var(--orange);
}

.agency-nav a.is-active:after{
  width:30px;
}

.agency-nav a:hover:after{
  width:100%;
}

.agency-consultation{
  width:178px;
  display:inline-flex;
  min-height:34px;
  align-items:center;
  justify-content:center;
  gap:6px;
  padding:8px 13px;
  border-radius:6px;
  background:var(--orange);
  color:var(--white);
  font-family:var(--heading-font);
  font-size:9px;
  font-weight:700;
  line-height:1.15;
  text-align:center;
  text-transform:uppercase;
  transition:all .3s ease;
}

.agency-header-actions{
  display:flex;
  align-items:center;
  gap:7px;
  margin-left:auto;
  transform:translateX(54px);
}

.agency-language-flags{
  width:112px;
  flex:0 0 112px;
  min-height:38px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:4px;
  padding:3px;
  border:1px solid rgba(255,255,255,.14);
  border-radius:6px;
  background:#0d0f12;
}

.agency-language-flags button{
  box-sizing:border-box;
  width:32px;
  height:32px;
  inline-size:32px;
  block-size:32px;
  flex:0 0 32px;
  display:grid;
  place-items:center;
  padding:0;
  border:1px solid transparent;
  border-radius:6px;
  background:transparent;
  cursor:pointer;
  line-height:0;
  appearance:none;
  -webkit-appearance:none;
  overflow:hidden;
  transition:background .2s ease,border-color .2s ease,box-shadow .2s ease;
}

.agency-language-flags img{
  width:22px;
  height:16px;
  inline-size:22px;
  block-size:16px;
  margin:auto;
  display:block;
  place-self:center;
  border-radius:2px;
  object-fit:cover;
  object-position:center;
  pointer-events:none;
  box-shadow:0 0 0 1px rgba(255,255,255,.18);
}

.agency-language-flags button:hover,
.agency-language-flags button.is-active{
  border-color:rgba(255,90,0,.68);
  background:rgba(255,90,0,.1);
  box-shadow:inset 0 0 0 1px rgba(255,90,0,.12);
}

.agency-theme-toggle{
  min-height:38px;
  display:flex;
  align-items:center;
  gap:3px;
  padding:3px;
  border:1px solid rgba(255,255,255,.14);
  border-radius:6px;
  background:#0d0f12;
}

.agency-theme-toggle button{
  width:32px;
  height:32px;
  display:grid;
  place-items:center;
  padding:0;
  border:1px solid transparent;
  border-radius:5px;
  background:transparent;
  color:rgba(255,255,255,.68);
  cursor:pointer;
}

.agency-theme-toggle svg{
  width:17px;
  height:17px;
  display:block;
  stroke:currentColor;
  stroke-width:2;
  fill:none;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.agency-theme-toggle button:hover,
.agency-theme-toggle button.is-active{
  border-color:rgba(255,90,0,.62);
  background:rgba(255,90,0,.12);
  color:#fff;
}

.agency-consultation:hover{
  background:var(--orange-dark);
  transform:translateY(-2px);
  box-shadow:0 8px 20px rgba(255,90,0,.25);
}

.agency-menu-toggle{
  display:none;
  width:42px;
  height:42px;
  border:1px solid rgba(255,255,255,.18);
  border-radius:6px;
  background:transparent;
  color:#fff;
}

.agency-menu-toggle span{
  display:block;
  width:20px;
  height:2px;
  margin:5px auto;
  background:currentColor;
}

.agency-hero{
  position:relative;
  min-height:560px;
  overflow:hidden;
  background:
    linear-gradient(90deg,rgba(0,0,0,.78) 0%,rgba(0,0,0,.5) 38%,rgba(0,0,0,.12) 100%),
    url("../images/hero-digital-agency-baa-real-screens.png") center/cover no-repeat,
    var(--black);
}

.agency-hero-inner{
  position:relative;
  z-index:2;
  width:var(--container);
  min-height:560px;
  display:grid;
  grid-template-columns:minmax(300px,520px) minmax(0,1fr);
  gap:40px;
  align-items:center;
  margin:0 auto;
  padding:64px 0 76px;
}

.agency-kicker{
  display:flex;
  align-items:center;
  gap:10px;
  color:var(--orange);
  font-family:var(--heading-font);
  font-size:13px;
  font-weight:600;
  letter-spacing:.5px;
  text-transform:uppercase;
}

.agency-kicker:before{
  content:"";
  width:28px;
  height:2px;
  background:var(--orange);
}

.agency-hero-title{
  margin:16px 0 14px;
  color:var(--white);
  font-family:var(--heading-font);
  font-size:clamp(38px,4vw,44px);
  font-weight:800;
  line-height:1.15;
  text-transform:uppercase;
}

.agency-hero-title span{
  color:var(--orange);
}

.agency-hero-copy{
  max-width:430px;
  margin:0;
  color:#e7e7e7;
  font-size:14px;
  font-weight:400;
  line-height:1.5;
}

.agency-actions{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:25px;
}

.agency-btn{
  min-height:43px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  border-radius:5px;
  padding:12px 18px;
  font-family:var(--heading-font);
  font-size:11px;
  font-weight:700;
  text-transform:uppercase;
  transition:all .3s ease;
}

.agency-btn-primary{
  border:0;
  background:var(--orange);
  color:var(--white);
}

.agency-btn-secondary{
  border:1px solid var(--orange);
  background:transparent;
  color:var(--white);
}

.agency-btn:hover{
  transform:translateY(-2px);
  box-shadow:0 8px 20px rgba(255,90,0,.25);
}

.agency-hero-logo-wrap{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:25px;
  overflow:visible;
}

.agency-hero-logo{
  width:520px;
  max-width:100%;
  height:auto;
  margin-left:0;
  margin-right:0;
  filter:drop-shadow(0 15px 30px rgba(255,90,0,.15));
}

.agency-hero-divider{
  width:1px;
  height:160px;
  background:rgba(255,255,255,.86);
}

.agency-hero-identity{
  position:relative;
  min-height:230px;
  display:flex;
  align-items:center;
}

.agency-company-stack{
  position:relative;
  z-index:2;
  display:flex;
  flex-direction:column;
  color:var(--white);
  font-family:var(--heading-font);
  font-size:29px;
  font-weight:800;
  line-height:1.35;
  text-transform:uppercase;
}

.agency-company-stack span:nth-child(2){
  color:var(--orange);
}

.agency-world-map{
  position:absolute;
  inset:0 -20px 0 auto;
  width:100%;
  opacity:.08;
  filter:grayscale(1);
  background-image:radial-gradient(circle, rgba(255,255,255,.58) 1.2px, transparent 1.3px);
  background-size:14px 14px;
  mask-image:
    radial-gradient(ellipse at 28% 42%, #000 0 19%, transparent 20%),
    radial-gradient(ellipse at 49% 40%, #000 0 15%, transparent 16%),
    radial-gradient(ellipse at 70% 52%, #000 0 22%, transparent 23%),
    radial-gradient(ellipse at 58% 70%, #000 0 9%, transparent 10%);
  -webkit-mask-image:
    radial-gradient(ellipse at 28% 42%, #000 0 19%, transparent 20%),
    radial-gradient(ellipse at 49% 40%, #000 0 15%, transparent 16%),
    radial-gradient(ellipse at 70% 52%, #000 0 22%, transparent 23%),
    radial-gradient(ellipse at 58% 70%, #000 0 9%, transparent 10%);
  mask-composite:add;
  -webkit-mask-composite:source-over;
}

.agency-world-map:after{
  content:"";
  position:absolute;
  right:42px;
  bottom:42px;
  width:90px;
  height:50px;
  background-image:radial-gradient(circle, rgba(255,90,0,.95) 1.5px, transparent 1.6px);
  background-size:12px 12px;
}

.agency-waves{
  position:absolute;
  z-index:1;
  left:0;
  right:0;
  bottom:-8px;
  width:100%;
  height:112px;
  opacity:.45;
  pointer-events:none;
}

.agency-waves path{
  fill:none;
  stroke:var(--orange);
  stroke-width:1;
  opacity:.25;
  filter:drop-shadow(0 0 8px rgba(255,90,0,.45));
}

.agency-section-light{
  background:#f8f8f8;
  color:#151515;
  padding:35px 0 25px;
}

.agency-section-light,
.agency-section-dark,
.agency-stats,
.agency-footer{
  content-visibility:auto;
  contain-intrinsic-size:1px 620px;
}

.agency-services-showcase{
  position:relative;
  overflow:hidden;
  padding:70px 0 76px;
  background:
    linear-gradient(180deg,#ffffff 0%,#f5f7fb 100%),
    #f8f8f8;
}

.agency-services-showcase:before{
  content:"";
  position:absolute;
  inset:-30% -10%;
  background:
    linear-gradient(115deg,transparent 0 28%,rgba(255,90,0,.1) 33%,transparent 39%),
    linear-gradient(115deg,transparent 0 48%,rgba(4,166,200,.09) 54%,transparent 60%),
    linear-gradient(115deg,transparent 0 68%,rgba(32,183,121,.08) 73%,transparent 78%);
  background-size:120% 100%;
  animation:agencyServicesFlow 13s ease-in-out infinite alternate;
  opacity:.9;
  will-change:transform;
  pointer-events:none;
}

.agency-services-showcase:after{
  content:"";
  position:absolute;
  left:-20%;
  right:-20%;
  bottom:auto;
  top:0;
  height:100%;
  background:
    repeating-linear-gradient(115deg,transparent 0 84px,rgba(15,23,42,.035) 85px,transparent 86px);
  animation:agencyServicesTrace 18s linear infinite;
  will-change:transform;
  mask-image:linear-gradient(180deg,transparent,rgba(0,0,0,.42) 18%,rgba(0,0,0,.18) 68%,transparent);
  -webkit-mask-image:linear-gradient(180deg,transparent,rgba(0,0,0,.42) 18%,rgba(0,0,0,.18) 68%,transparent);
  pointer-events:none;
}

@keyframes agencyServicesFlow{
  from{transform:translate3d(-5%,0,0)}
  to{transform:translate3d(5%,0,0)}
}

@keyframes agencyServicesTrace{
  from{transform:translate3d(-4%,0,0)}
  to{transform:translate3d(4%,0,0)}
}

.agency-section-dark{
  background:linear-gradient(135deg,#0b0d10,#15181d);
  color:#fff;
  padding:48px 0;
}

.agency-section-inner{
  position:relative;
  z-index:1;
  width:var(--container);
  margin:0 auto;
}

.agency-section-head{
  max-width:650px;
  margin:0 auto 24px;
  text-align:center;
}

.agency-section-kicker{
  width:max-content;
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin:0 auto 10px;
  padding:6px 10px;
  border:1px solid rgba(255,90,0,.18);
  border-radius:999px;
  background:rgba(255,90,0,.07);
  color:var(--orange);
  font-family:var(--heading-font);
  font-size:10px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.4px;
}

.agency-section-kicker:before{
  content:"";
  width:6px;
  height:6px;
  border-radius:50%;
  background:var(--orange);
  box-shadow:0 0 14px rgba(255,90,0,.58);
}

.agency-section-title{
  margin:0 0 10px;
  font-family:var(--heading-font);
  font-size:30px;
  font-weight:700;
  line-height:1.15;
}

.agency-section-text{
  margin:0;
  color:#696969;
  font-size:12px;
  font-weight:400;
  line-height:1.6;
}

.agency-section-dark .agency-section-text{
  color:#b7b7b7;
}

.agency-projects-head .agency-section-kicker{
  margin-left:0;
}

.agency-services-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
  counter-reset:agency-service;
}

.agency-service-card{
  position:relative;
  min-height:245px;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  overflow:hidden;
  padding:22px;
  border:1px solid rgba(15,23,42,.09);
  border-radius:8px;
  background:
    linear-gradient(180deg,rgba(255,255,255,.98),rgba(255,255,255,.9)),
    #fff;
  text-align:left;
  counter-increment:agency-service;
  box-shadow:0 1px 2px rgba(15,23,42,.05),0 14px 36px rgba(15,23,42,.055);
  transition:transform .22s ease,border-color .22s ease,box-shadow .22s ease;
}

.agency-service-card:before{
  content:"";
  position:absolute;
  inset:0 0 auto;
  height:3px;
  background:linear-gradient(90deg,var(--orange),#04a6c8,#20b779);
  opacity:.86;
}

.agency-service-card:after{
  content:"0" counter(agency-service);
  position:absolute;
  right:22px;
  top:22px;
  color:rgba(15,23,42,.08);
  font-family:var(--heading-font);
  font-size:54px;
  font-weight:800;
  line-height:.8;
  letter-spacing:0;
  pointer-events:none;
}

.agency-service-card:hover{
  transform:translateY(-6px);
  border-color:rgba(255,90,0,.28);
  box-shadow:0 20px 48px rgba(15,23,42,.11),0 0 0 1px rgba(255,90,0,.04);
}

.agency-service-chip{
  position:relative;
  z-index:1;
  min-height:26px;
  display:inline-flex;
  align-items:center;
  margin-bottom:42px;
  padding:0 10px;
  border:1px solid rgba(15,23,42,.08);
  border-radius:999px;
  background:#f6f8fb;
  color:#3d4756;
  font-size:10px;
  font-weight:800;
  letter-spacing:.35px;
  text-transform:uppercase;
}

.agency-icon{
  position:relative;
  z-index:1;
  width:58px;
  height:58px;
  display:grid;
  place-items:center;
  margin:0 0 18px;
  border:1px solid rgba(15,23,42,.08);
  border-radius:16px;
  background:
    radial-gradient(circle at 28% 18%,rgba(255,90,0,.14),transparent 34%),
    linear-gradient(145deg,#ffffff,#f4f7fb);
  box-shadow:0 12px 30px rgba(15,23,42,.075),inset 0 1px 0 rgba(255,255,255,.95);
  transition:transform .22s ease,border-color .22s ease,box-shadow .22s ease,background .22s ease;
}

.agency-icon:before{
  content:"";
  position:absolute;
  inset:-1px;
  border-radius:inherit;
  padding:1px;
  background:linear-gradient(135deg,rgba(255,90,0,.64),rgba(4,166,200,.5),rgba(32,183,121,.38));
  mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);
  -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);
  mask-composite:exclude;
  -webkit-mask-composite:xor;
  pointer-events:none;
}

.agency-icon svg{
  position:relative;
  z-index:1;
  width:32px;
  height:32px;
  stroke:#111827;
  stroke-width:1.75;
  fill:none;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.agency-icon svg path,
.agency-icon svg circle,
.agency-icon svg rect{
  vector-effect:non-scaling-stroke;
}

.agency-icon .icon-accent{
  stroke:var(--orange);
}

.agency-service-card:hover .agency-icon{
  transform:translateY(-2px);
  border-color:rgba(255,90,0,.34);
  background:
    radial-gradient(circle at 28% 18%,rgba(255,90,0,.2),transparent 36%),
    linear-gradient(145deg,#ffffff,#eef4f8);
  box-shadow:0 18px 42px rgba(15,23,42,.11),0 0 0 4px rgba(255,90,0,.06),inset 0 1px 0 rgba(255,255,255,.95);
}

.agency-service-card h3{
  position:relative;
  z-index:1;
  margin:0 0 10px;
  color:#151515;
  font-family:var(--heading-font);
  font-size:19px;
  font-weight:700;
  line-height:1.25;
}

.agency-service-card p{
  position:relative;
  z-index:1;
  margin:0;
  color:#5d6675;
  font-size:14px;
  line-height:1.65;
}

.agency-projects-head{
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:20px;
  margin-bottom:20px;
}

.agency-projects-head .agency-section-head{
  margin:0;
  text-align:left;
}

.agency-projects-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
}

.agency-project-card{
  position:relative;
  min-height:150px;
  display:grid;
  place-items:center;
  overflow:hidden;
  padding:18px;
  border:1px solid rgba(255,255,255,.1);
  border-radius:8px;
  background:linear-gradient(180deg,#fff,#f5f7fb);
  color:#111;
  text-align:center;
  font-size:clamp(20px,2vw,28px);
  font-weight:800;
  letter-spacing:-.02em;
  box-shadow:0 18px 42px rgba(0,0,0,.16);
}

.agency-project-card:before{
  content:none;
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.35);
}

.agency-project-card img{
  width:100%;
  max-width:230px;
  height:122px;
  display:block;
  object-fit:contain;
  object-position:center center;
  filter:saturate(1.03) contrast(1.02);
}

.agency-small-btn{
  min-height:35px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:8px 16px;
  border-radius:5px;
  background:var(--orange);
  color:#fff;
  font-family:var(--heading-font);
  font-size:10px;
  font-weight:700;
  text-transform:uppercase;
  transition:all .3s ease;
}

.agency-small-btn:hover{
  background:var(--orange-dark);
  transform:translateY(-2px);
  box-shadow:0 8px 20px rgba(255,90,0,.25);
}

.agency-footer{
  background:#101216;
  color:#fff;
  position:relative;
  margin-top:34px;
  padding:56px 0 0;
  border-top:1px solid rgba(255,90,0,.22);
}

.agency-footer:before{
  content:"";
  position:absolute;
  left:calc((100% - min(1180px, calc(100% - 40px)))/2);
  right:calc((100% - min(1180px, calc(100% - 40px)))/2);
  top:-18px;
  height:1px;
  background:linear-gradient(90deg,transparent,rgba(255,90,0,.65),rgba(4,166,200,.38),transparent);
  pointer-events:none;
}

.agency-footer-inner{
  width:var(--container);
  display:grid;
  grid-template-columns:1.5fr 1fr .7fr;
  gap:28px;
  margin:0 auto;
  padding-bottom:34px;
}

.agency-footer-logo{
  width:110px;
  height:auto;
  margin-bottom:14px;
}

.agency-footer p{
  max-width:330px;
  margin:0;
  color:#b7b7b7;
  font-size:12px;
  line-height:1.7;
}

.agency-footer-cta{
  max-width:330px;
  margin-top:22px;
  padding-top:18px;
  border-top:1px solid rgba(255,255,255,.1);
}

.agency-footer-cta h3{
  margin:0 0 8px;
  color:#fff;
  font-family:var(--heading-font);
  font-size:20px;
  font-weight:800;
  line-height:1.18;
  text-transform:none;
  letter-spacing:0;
}

.agency-footer-cta p{
  margin:0 0 14px;
  color:#b7b7b7;
}

.agency-footer h3{
  margin:0 0 14px;
  color:#fff;
  font-family:var(--heading-font);
  font-size:11px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.4px;
}

.agency-footer .agency-footer-cta h3{
  margin:0 0 8px;
  font-size:20px;
  font-weight:800;
  line-height:1.18;
  text-transform:none;
  letter-spacing:0;
}

.agency-footer-links{
  display:grid;
  gap:9px;
}

.agency-footer-links a,
.agency-footer-links > span,
.agency-contact-line{
  color:#b7b7b7;
  font-size:12px;
  line-height:1.4;
  transition:color .3s ease;
}

.agency-footer-links > span{
  display:block;
  cursor:default;
}

.agency-footer-links a:hover{
  color:var(--orange);
}

.agency-contact-line{
  display:flex;
  gap:8px;
  align-items:flex-start;
}

.agency-contact-line svg,
.agency-socials svg{
  flex:0 0 auto;
  width:15px;
  height:15px;
  stroke:currentColor;
  fill:none;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.agency-socials{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.agency-socials a{
  width:34px;
  height:34px;
  display:grid;
  place-items:center;
  border:1px solid rgba(255,255,255,.14);
  border-radius:4px;
  color:#fff;
  transition:all .3s ease;
}

.agency-socials a:hover{
  border-color:var(--orange);
  background:var(--orange);
  transform:translateY(-2px);
}

.agency-copyright{
  border-top:1px solid rgba(255,255,255,.08);
  padding:14px 20px;
  color:#7f7f7f;
  font-size:9px;
  text-align:center;
}

@media(max-width:1180px){
  .agency-header{
    padding:0 28px;
  }
  .agency-nav{
    gap:16px;
  }
  .agency-services-grid,
  .agency-projects-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .agency-footer-inner{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
}

@media(max-width:980px){
  .agency-menu-toggle{
    display:block;
  }
  .agency-header{
    flex-wrap:wrap;
    padding:0 20px;
  }
  .agency-nav,
  .agency-header-actions{
    display:none;
  }
  .agency-header.is-open .agency-nav{
    order:5;
    width:100%;
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:0 14px;
    padding:8px 0 16px;
  }
  .agency-header.is-open .agency-nav a{
    min-height:42px;
  }
  .agency-header.is-open .agency-header-actions{
    order:6;
    width:100%;
    display:flex;
    flex-wrap:wrap;
    justify-content:flex-start;
    gap:8px;
    margin-left:0;
    padding:0 0 16px;
    transform:none;
  }
  .agency-hero-inner{
    grid-template-columns:1fr;
    text-align:left;
  }
  .agency-hero-logo-wrap{
    justify-content:flex-start;
  }
  .agency-hero-logo{
    width:520px;
    max-width:100%;
    margin-left:0;
    margin-right:0;
  }
  .agency-hero-identity{
    min-height:150px;
  }
  .agency-stats-inner{
    grid-template-columns:1fr;
  }
  .agency-proof-line{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .agency-proof-line span:nth-child(2){
    border-right:0;
  }
  .agency-proof-line span:nth-child(-n+2){
    border-bottom:1px solid var(--line);
  }
  .agency-stats-cta{
    padding-left:0;
    border-left:0;
    border-top:1px solid var(--line);
    padding-top:22px;
  }
  .agency-services-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media(max-width:720px){
  :root{
    --container:calc(100% - 32px);
  }
  .agency-brand{
    min-width:0;
  }
  .agency-logo{
    width:66px;
    height:32px;
  }
  .agency-brand-line{
    height:32px;
  }
  .agency-brand-name{
    font-size:10px;
  }
  .agency-hero-title{
    font-size:36px;
  }
  .agency-hero-logo-wrap{
    gap:16px;
  }
  .agency-hero-logo{
    width:360px;
  }
  .agency-hero-divider{
    height:110px;
  }
  .agency-company-stack{
    font-size:24px;
  }
  .agency-services-grid,
  .agency-projects-grid,
  .agency-footer-inner{
    grid-template-columns:1fr;
  }
  .agency-proof-line{
    grid-template-columns:1fr;
  }
  .agency-proof-line span,
  .agency-proof-line span:nth-child(2){
    border-right:0;
  }
  .agency-proof-line span:nth-child(-n+3){
    border-bottom:1px solid var(--line);
  }
  .agency-projects-head{
    display:block;
  }
  .agency-projects-head .agency-btn{
    margin-top:16px;
  }
}

/* Theme modes */
body.agency-home[data-theme="light"] .agency-header{
  background:rgba(255,255,255,.98);
  border-bottom-color:rgba(15,23,42,.1);
}

body.agency-home[data-theme="light"] .agency-brand-name,
body.agency-home[data-theme="light"] .agency-nav a{
  color:#111317;
}

body.agency-home[data-theme="light"] .agency-brand-line{
  background:rgba(15,23,42,.3);
}

body.agency-home[data-theme="light"] .agency-language-flags,
body.agency-home[data-theme="light"] .agency-theme-toggle{
  border-color:rgba(15,23,42,.12);
  background:#f4f6f9;
}

body.agency-home[data-theme="light"] .agency-theme-toggle button{
  color:#4b5563;
}

body.agency-home[data-theme="light"] .agency-theme-toggle button:hover,
body.agency-home[data-theme="light"] .agency-theme-toggle button.is-active{
  color:#111317;
}

body.agency-home[data-theme="light"] .agency-menu-toggle{
  border-color:rgba(15,23,42,.18);
  color:#111317;
}

body.agency-home[data-theme="light"] .agency-hero{
  background:
    linear-gradient(90deg,rgba(255,255,255,.94) 0%,rgba(255,255,255,.78) 42%,rgba(255,255,255,.42) 100%),
    url("../images/hero-digital-agency-baa-real-screens.png") center/cover no-repeat,
    #fff;
}

body.agency-home[data-theme="light"] .agency-hero-title{
  color:#111317;
}

body.agency-home[data-theme="light"] .agency-hero-copy{
  color:#4b5563;
}

body.agency-home[data-theme="light"] .agency-waves{
  opacity:.24;
}

body.agency-home[data-theme="light"] .agency-services-showcase,
body.agency-home[data-theme="light"] .agency-section-dark,
body.agency-home[data-theme="light"] .agency-footer{
  background:#fff;
  color:#111317;
}

body.agency-home[data-theme="light"] .agency-section-dark{
  border-top:1px solid rgba(15,23,42,.08);
  border-bottom:1px solid rgba(15,23,42,.08);
}

body.agency-home[data-theme="light"] .agency-section-dark .agency-section-title,
body.agency-home[data-theme="light"] .agency-footer h3,
body.agency-home[data-theme="light"] .agency-footer .agency-footer-cta h3{
  color:#111317;
}

body.agency-home[data-theme="light"] .agency-footer{
  border-top-color:rgba(15,23,42,.1);
}

body.agency-home[data-theme="light"] .agency-footer p,
body.agency-home[data-theme="light"] .agency-footer-links a,
body.agency-home[data-theme="light"] .agency-footer-links > span,
body.agency-home[data-theme="light"] .agency-contact-line,
body.agency-home[data-theme="light"] .agency-footer-cta p{
  color:#4b5563;
}

body.agency-home[data-theme="light"] .agency-footer-cta{
  border-top-color:rgba(15,23,42,.12);
}

body.agency-home[data-theme="light"] .agency-socials a{
  border-color:rgba(15,23,42,.14);
  color:#111317;
}

body.agency-home[data-theme="light"] .agency-copyright{
  border-top-color:rgba(15,23,42,.1);
  color:#6b7280;
}

body.agency-home[data-theme="dark"] .agency-services-showcase,
body.agency-home[data-theme="dark"] .agency-section-light{
  background:#090b0f;
  color:#fff;
}

body.agency-home[data-theme="dark"] .agency-services-showcase:before{
  opacity:.38;
}

body.agency-home[data-theme="dark"] .agency-section-title,
body.agency-home[data-theme="dark"] .agency-service-card h3{
  color:#fff;
}

body.agency-home[data-theme="dark"] .agency-section-text,
body.agency-home[data-theme="dark"] .agency-service-card p{
  color:rgba(255,255,255,.68);
}

body.agency-home[data-theme="dark"] .agency-service-card{
  border-color:rgba(255,255,255,.1);
  background:linear-gradient(180deg,rgba(255,255,255,.08),rgba(255,255,255,.035));
  box-shadow:0 18px 42px rgba(0,0,0,.22);
}

body.agency-home[data-theme="dark"] .agency-service-card:after{
  color:rgba(255,255,255,.07);
}

body.agency-home[data-theme="dark"] .agency-service-chip{
  border-color:rgba(255,255,255,.12);
  background:rgba(255,255,255,.07);
  color:rgba(255,255,255,.74);
}

body.agency-home[data-theme="dark"] .agency-project-card{
  background:linear-gradient(180deg,#fff,#f5f7fb);
}

/* Portfolio page — uses only the home page visual system */
.agency-portfolio-page main{
  background:var(--black);
}

.agency-portfolio-hero{
  min-height:560px;
  display:grid;
  align-items:center;
  padding:100px 20px;
  background:
    radial-gradient(circle at 80% 40%,rgba(255,90,0,.22),transparent 28%),
    linear-gradient(135deg,#050505 0%,#0d0f12 72%,#17100c 100%);
}

.agency-portfolio-hero-inner{
  width:var(--container);
  margin:auto;
}

.agency-portfolio-hero h1{
  max-width:850px;
  margin:10px 0 22px;
  font-family:var(--heading-font);
  font-size:clamp(52px,8vw,96px);
  font-weight:800;
  line-height:.96;
  letter-spacing:-.055em;
}

.agency-portfolio-hero p{
  max-width:650px;
  margin:0 0 30px;
  color:var(--gray);
  font-size:17px;
  line-height:1.7;
}

.agency-portfolio-showcase{
  padding:92px 0 110px;
  background:var(--light);
  color:#111317;
}

.agency-portfolio-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
}

.agency-portfolio-item{
  overflow:hidden;
  margin:0;
  border:1px solid var(--line);
  border-radius:8px;
  background:#fff;
  box-shadow:0 18px 44px rgba(15,23,42,.07);
}

.agency-portfolio-media{
  min-height:245px;
  display:grid;
  place-items:center;
  padding:30px;
  background:linear-gradient(180deg,#fff,#f5f7fb);
}

.agency-portfolio-media img{
  width:100%;
  max-width:250px;
  height:160px;
  display:block;
  object-fit:contain;
}

.agency-portfolio-item h3{
  margin:0;
  padding:22px 24px;
  border-top:1px solid var(--line);
  font-family:var(--heading-font);
  font-size:17px;
  font-weight:750;
}

.agency-portfolio-cta{
  width:var(--container);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:32px;
  margin:auto;
  padding:80px 0;
}

.agency-portfolio-cta h2{
  margin:8px 0 10px;
  font-family:var(--heading-font);
  font-size:clamp(30px,4vw,48px);
}

.agency-portfolio-cta p{
  margin:0;
  color:var(--gray);
}

@media(max-width:980px){
  .agency-portfolio-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}

@media(max-width:680px){
  .agency-portfolio-hero{min-height:480px;padding:72px 20px}
  .agency-portfolio-grid{grid-template-columns:1fr}
  .agency-portfolio-cta{display:block}
  .agency-portfolio-cta .agency-btn{margin-top:24px}
}
