
  :root{
    --forest-950:#0e2419;
    --forest-900:#123423;
    --forest-800:#17452e;
    --forest-700:#1f5c3c;
    --forest-600:#2c7a4f;
    --forest-500:#3f9863;
    --forest-400:#66b384;
    --mist-100:#eef5f0;
    --mist-50:#f7faf8;
    --river-500:#4f8fa3;
    --river-300:#a9cdd8;
    --paper:#ffffff;
    --ink:#132018;
    --ink-soft:#41564a;
    --line:#dbe8e0;
    --gold:#c9a15a;
    --shadow: 0 10px 30px -12px rgba(14,36,25,0.25);
    --radius: 14px;
  }
  *{box-sizing:border-box; margin:0; padding:0;}
  html{scroll-behavior:smooth;}
  body{
    font-family:'Vazirmatn', Tahoma, sans-serif;
    background:var(--mist-50);
    color:var(--ink);
    line-height:1.9;
    overflow-x:hidden;
  }
  a{color:inherit; text-decoration:none;}
  img{max-width:100%; display:block;}
  ul{list-style:none;}

  /* ===== Texture / signature stream ===== */
  .stream-divider{
    width:100%; height:64px; display:block;
  }
  .stream-divider path{ fill:var(--mist-50); }
  .stream-divider.flip path{ fill:var(--forest-950); }

  /* ===== Header ===== */
  header{
    position:sticky; top:0; z-index:100;
    background:rgba(255,255,255,0.92);
    backdrop-filter:blur(10px);
    border-bottom:1px solid var(--line);
  }
  .nav-wrap{
    max-width:1180px; margin:0 auto;
    display:flex; align-items:center; justify-content:space-between;
    padding:14px 24px;
  }
  .brand{display:flex; align-items:center; gap:12px;}
  .brand img{width:62px; height:62px; border-radius:50%; box-shadow:0 2px 8px rgba(0,0,0,0.15);}
  .brand-text{display:flex; flex-direction:column; line-height:1.3;}
  .brand-text b{font-size:16px; font-weight:800; color:var(--forest-900);}
  .brand-text span{font-size:11px; color:var(--ink-soft); letter-spacing:.3px;}
  nav ul{display:flex; gap:6px;}
  nav a{
    padding:10px 18px; border-radius:999px; font-size:14.5px; font-weight:600;
    color:var(--forest-900); transition:.25s;
  }
  nav a:hover{background:var(--mist-100);}
  nav a.active{background:var(--forest-700); color:#fff;}
  .nav-cta{
    background:var(--forest-700); color:#fff; padding:10px 20px; border-radius:999px;
    font-size:14px; font-weight:700; white-space:nowrap;
  }
  .nav-cta:hover{background:var(--forest-800);}
  .burger{display:none; font-size:22px; background:none; border:none; color:var(--forest-900); cursor:pointer;}

  section.page{display:block; animation:fade .5s ease;}
  @keyframes fade{ from{opacity:0; transform:translateY(8px);} to{opacity:1; transform:translateY(0);} }

  .container{max-width:1180px; margin:0 auto; padding:0 24px;}
  .eyebrow{
    display:inline-flex; align-items:center; gap:8px;
    font-size:16px; font-weight:700; letter-spacing:.2px; color:var(--forest-600);
    background:var(--mist-100); padding:7px 16px; border-radius:999px; margin-bottom:18px;
  }
  .eyebrow::before{content:''; width:7px; height:7px; border-radius:50%; background:var(--forest-500);}

  h1,h2,h3{color:var(--forest-950); font-weight:800;}
  h1{font-size:clamp(32px,5vw,54px); line-height:1.25;}
  h2{font-size:clamp(26px,3.4vw,38px); line-height:1.3;}
  h3{font-size:19px;}
  p{color:var(--ink-soft); font-size:16px;}

  /* ===== HERO ===== */
  .hero{
    position:relative;
    background:linear-gradient(160deg, var(--forest-950) 0%, var(--forest-800) 55%, var(--forest-700) 100%);
    color:#fff; overflow:hidden;
    padding:90px 0 40px;
  }
  .hero::before{
    content:''; position:absolute; inset:0;
    background-image:
      radial-gradient(circle at 85% 20%, rgba(102,179,132,0.35), transparent 45%),
      radial-gradient(circle at 10% 80%, rgba(79,143,163,0.25), transparent 40%);
  }
  .hero-inner{position:relative; display:grid; grid-template-columns:1.15fr .85fr; gap:50px; align-items:center;}
  .hero p.lead{color:#dfeee5; font-size:18px; max-width:520px; margin-top:18px;}
  .hero h1 span{color:var(--forest-400);}

  .page-hero-inner{position:relative; display:grid; grid-template-columns:1.15fr .85fr; gap:40px; align-items:center;}
  .page-hero-visual{position:relative; display:flex; align-items:center; justify-content:center; min-height:290px;}
  .page-hero-visual .ring{width:270px; height:270px;}
  .page-hero-visual .ring img{width:190px; height:190px;}
  @media(max-width:920px){.page-hero-inner{grid-template-columns:1fr;}.page-hero-visual{order:-1; min-height:230px; margin-bottom:4px;}.page-hero-visual .ring{width:220px;height:220px;}.page-hero-visual .ring img{width:155px;height:155px;}.page-hero-visual .ring::before{inset:-20px}.page-hero-visual .ring::after{inset:-40px;}}

  .hero-badges{display:flex; flex-wrap:wrap; gap:10px; margin-top:30px;}
  .badge-pill{
    display:flex; align-items:center; gap:8px;
    background:rgba(255,255,255,0.08); border:1px solid rgba(255,255,255,0.18);
    padding:9px 16px; border-radius:999px; font-size:13px; font-weight:600; color:#eef5f0;
  }
  .badge-pill b{color:var(--forest-400); font-weight:800;}
  .hero-ctas{display:flex; gap:14px; margin-top:34px;}
  .btn-primary{
    background:var(--forest-400); color:var(--forest-950); font-weight:800; padding:15px 30px;
    border-radius:10px; font-size:15px; transition:.25s; display:inline-block;
  }
  .btn-primary:hover{background:#fff; transform:translateY(-2px);}
  .btn-ghost{
    border:1.5px solid rgba(255,255,255,0.4); color:#fff; font-weight:700; padding:14px 28px;
    border-radius:10px; font-size:15px; transition:.25s; display:inline-block;
  }
  .btn-ghost:hover{background:rgba(255,255,255,0.1); border-color:#fff;}

  .hero-visual{
    position:relative; display:flex; align-items:center; justify-content:center;
  }
  .ring{
    width:380px; height:380px; border-radius:50%;
    background:radial-gradient(circle at 30% 30%, rgba(255,255,255,0.12), transparent 60%);
    border:1px solid rgba(255,255,255,0.18);
    display:flex; align-items:center; justify-content:center;
    position:relative;
  }
  .ring::before, .ring::after{
    content:''; position:absolute; border-radius:50%; border:1px dashed rgba(255,255,255,0.18);
  }
  .ring::before{ inset:-28px; }
  .ring::after{ inset:-56px; border-style:dotted; }
  .ring img{width:270px; height:270px; border-radius:50%; box-shadow:0 20px 50px rgba(0,0,0,0.35); border:5px solid rgba(255,255,255,0.9);}

  /* ===== Sections generic ===== */
  .section{padding:76px 0;}
  .section.tinted{background:var(--mist-100);}
  .section-head{max-width:680px; margin-bottom:48px;}
  .section-head.center{margin-left:auto; margin-right:auto; text-align:center;}

  /* ===== Pillars (home) ===== */
  .pillars{display:grid; grid-template-columns:repeat(3,1fr); gap:26px;}
  .pillar-card{
    background:#fff; border:1px solid var(--line); border-radius:var(--radius);
    padding:30px 26px; transition:.3s; position:relative; overflow:hidden;
  }
  .pillar-card:hover{ transform:translateY(-6px); box-shadow:var(--shadow); border-color:var(--forest-400); }
  .pillar-num{
    font-size:13px; font-weight:800; color:var(--forest-500); letter-spacing:1px; margin-bottom:14px; display:block;
  }
  .pillar-icon{
    width:50px; height:50px; border-radius:12px; background:var(--mist-100);
    display:flex; align-items:center; justify-content:center; margin-bottom:18px; font-size:22px;
  }
  .pillar-card h3{margin-bottom:10px;}
  .pillar-card p{font-size:14.5px;}
  .pillar-link{display:inline-block; margin-top:14px; font-size:13.5px; font-weight:700; color:var(--forest-700);}

  /* ===== Why us ===== */
  .why-grid{display:grid; grid-template-columns:repeat(4,1fr); gap:22px;}
  .why-item{padding:22px; border-radius:12px; background:#fff; border:1px solid var(--line);}
  .why-item .n{font-size:26px; font-weight:900; color:var(--forest-400); margin-bottom:10px;}
  .why-item h4{font-size:15.5px; color:var(--forest-950); margin-bottom:6px; font-weight:700;}
  .why-item p{font-size:13.5px;}

  /* ===== CTA band ===== */
  .cta-band{
    background:linear-gradient(120deg, var(--forest-800), var(--forest-600));
    border-radius:20px; padding:52px 46px; color:#fff;
    display:flex; align-items:center; justify-content:space-between; gap:30px; flex-wrap:wrap;
  }
  .cta-band h2{color:#fff; font-size:26px;}
  .cta-band p{color:#dcefe3; margin-top:6px;}

  /* ===== Services page ===== */
  .service-block{
    display:grid; grid-template-columns:280px 1fr; gap:40px;
    padding:44px 0; border-bottom:1px solid var(--line);
  }
  .service-block:last-child{border-bottom:none;}
  .service-side{position:sticky; top:110px; align-self:start;}
  .service-side .tag{
    display:inline-block; background:var(--forest-700); color:#fff; font-size:12px; font-weight:700;
    padding:5px 12px; border-radius:999px; margin-bottom:14px;
  }
  .service-side h3{font-size:22px; margin-bottom:10px;}
  .service-side p{font-size:14px;}
  .chip-list{display:flex; flex-wrap:wrap; gap:8px;}
  .chip{
    background:var(--mist-100); border:1px solid var(--line); color:var(--forest-900);
    font-size:13px; padding:7px 13px; border-radius:8px; font-weight:600;
  }
  .subgroup-title{font-size:13px; font-weight:800; color:var(--forest-600); margin:18px 0 10px; letter-spacing:.3px;}
  .subgroup-title:first-child{margin-top:0;}

  /* larger home-page section title */
  #home .section-head.center .eyebrow{font-size:clamp(21px,2.2vw,27px); line-height:1.5;}

  /* mission cards */
  .mission-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:18px; margin-top:24px;}
  .mission-item{display:flex; align-items:flex-start; gap:14px; background:#fff; border:1px solid var(--line); border-radius:14px; padding:20px; box-shadow:0 8px 24px rgba(18,64,43,.05); min-height:100%;}
  .mission-icon{width:44px; height:44px; flex:0 0 44px; display:grid; place-items:center; border-radius:12px; background:var(--mist-100); color:var(--forest-700); font-size:23px;}
  .mission-item p{margin:0; font-size:14px; line-height:2; color:var(--forest-900); font-weight:600;}
  @media(max-width:1000px){.mission-grid{grid-template-columns:repeat(2,1fr);}}
  @media(max-width:800px){.mission-grid{grid-template-columns:1fr;}}

  /* mission section: full-width, evenly distributed cards */
  .mission-wrap{display:block !important;}
  .mission-wrap > div{width:100%; text-align:center;}
  .mission-wrap > div > .eyebrow{display:flex; width:max-content; margin-left:auto; margin-right:auto; justify-content:center;}
  .mission-wrap .mission-grid{text-align:right;}
  .mission-grid{grid-template-columns:repeat(4,minmax(0,1fr)); gap:18px; width:100%;}
  @media(max-width:1100px){.mission-grid{grid-template-columns:repeat(2,minmax(0,1fr));}}
  @media(max-width:700px){.mission-grid{grid-template-columns:1fr;}}

  /* clients marquee */
  .clients-wrap{overflow:hidden; -webkit-mask-image:linear-gradient(90deg,transparent,black 6%,black 94%,transparent); mask-image:linear-gradient(90deg,transparent,black 6%,black 94%,transparent); margin-top:16px; direction:ltr;}
  .clients-track{display:flex; flex-direction:row; width:max-content; will-change:transform; animation:clientsMarquee 48s linear infinite;}
  .clients-group{display:flex; flex-direction:row; gap:14px; flex-shrink:0; padding-right:14px;}
  @keyframes clientsMarquee{from{transform:translate3d(0,0,0);}to{transform:translate3d(-33.3333333333%,0,0);}}
  .clients-track span{background:#fff; border:1px solid var(--line); padding:10px 18px; border-radius:999px; font-size:13.5px; font-weight:600; color:var(--forest-900); white-space:nowrap; flex-shrink:0; direction:rtl; box-shadow:0 3px 10px rgba(14,36,25,.04);}

  /* ===== About page ===== */
  .about-hero{
    display:grid; grid-template-columns:1fr 1fr; gap:50px; align-items:center;
  }
  .nowrap-ellipsis{white-space:nowrap;}
  .about-hero .quote{
    border-right:4px solid var(--forest-500); padding-right:22px; margin-top:24px; font-size:15.5px; color:var(--forest-900); font-weight:600;
  }
  .timeline{position:relative; padding-right:26px;}
  .timeline::before{content:''; position:absolute; right:6px; top:6px; bottom:6px; width:2px; background:var(--line);}
  .t-item{position:relative; padding-bottom:34px;}
  .t-item::before{content:''; position:absolute; right:-26px; top:4px; width:16px; height:16px; border-radius:50%; background:var(--forest-500); border:4px solid var(--mist-50);}
  .t-item h4{font-size:15.5px; color:var(--forest-950); margin-bottom:4px;}
  .t-item p{font-size:14px;}

  .cert-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:20px; margin-top:16px;}
  .cert-card{background:#fff; border:1px solid var(--line); border-radius:12px; padding:24px; text-align:center;}
  .cert-card .ic{font-size:26px; margin-bottom:12px;}
  .cert-card h4{font-size:14.5px; margin-bottom:6px;}
  .cert-card p{font-size:12.5px;}

  .office-grid{display:grid; grid-template-columns:1fr 1fr; gap:24px;}
  .office-card{background:#fff; border:1px solid var(--line); border-radius:var(--radius); padding:28px;}
  .office-card .tag2{
    display:inline-block; font-size:11.5px; font-weight:800; color:var(--forest-600); background:var(--mist-100);
    padding:4px 12px; border-radius:999px; margin-bottom:14px;
  }
  .office-card h3{margin-bottom:14px;}
  .office-line{display:flex; gap:10px; margin-bottom:10px; font-size:14px; color:var(--ink-soft);}
  .office-line b{color:var(--forest-950); min-width:52px; font-weight:700;}

  /* ===== Contact page ===== */
  .contact-grid{display:grid; grid-template-columns:1fr 1.15fr; gap:44px;}
  .contact-card{background:#fff; border:1px solid var(--line); border-radius:var(--radius); padding:26px; margin-bottom:18px;}
  .contact-card h4{font-size:14px; color:var(--forest-600); font-weight:800; margin-bottom:12px; letter-spacing:.3px;}
  .contact-row{display:flex; gap:12px; margin-bottom:10px; font-size:14.5px;}
  .contact-row .ic{width:22px; text-align:center;}
  .form-box{background:#fff; border:1px solid var(--line); border-radius:var(--radius); padding:34px;}
  .form-grid{display:grid; grid-template-columns:1fr 1fr; gap:16px;}
  .form-grid .full{grid-column:1/-1;}
  label{font-size:13.5px; font-weight:700; color:var(--forest-950); margin-bottom:6px; display:block;}
  input, textarea{
    width:100%; border:1px solid var(--line); border-radius:9px; padding:12px 14px; font-family:inherit;
    font-size:14px; background:var(--mist-50); color:var(--ink); transition:.2s;
  }
  input:focus, textarea:focus{outline:none; border-color:var(--forest-500); background:#fff;}
  textarea{resize:vertical; min-height:110px;}
  .map-box{
    border-radius:var(--radius); overflow:hidden; border:1px solid var(--line); margin-top:20px; height:230px;
  }
  .map-box iframe{width:100%; height:100%; border:0; filter:saturate(0.9);}

  /* ===== Footer ===== */
  footer{background:var(--forest-950); color:#cfe3d6; padding:56px 0 22px; margin-top:40px;}
  .footer-grid{display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:36px; padding-bottom:36px; border-bottom:1px solid rgba(255,255,255,0.1);}
  .footer-brand{display:flex; align-items:center; gap:12px; margin-bottom:14px;}
  .footer-brand img{width:42px; height:42px; border-radius:50%;}
  .footer-brand b{color:#fff; font-size:15.5px;}
  footer p{color:#a9c2b1; font-size:13.5px;}
  footer h5{color:#fff; font-size:14px; margin-bottom:16px; font-weight:700;}
  footer ul li{margin-bottom:10px;}
  
  footer ul li a{color:#a9c2b1; font-size:13.5px; transition:.2s;}
  footer ul li a:hover{color:var(--forest-400);}
  .footer-bottom{display:flex; justify-content:space-between; align-items:center; padding-top:22px; font-size:12.5px; color:#7f9a89; flex-wrap:wrap; gap:10px;}

  @media (max-width:920px){
    .hero-inner{grid-template-columns:1fr;}
    .hero-visual{order:-1; margin-bottom:10px;}
    .pillars{grid-template-columns:1fr;}
    .why-grid{grid-template-columns:repeat(2,1fr);}
    .service-block{grid-template-columns:1fr; gap:18px;}
    .service-side{position:static;}
    .about-hero{grid-template-columns:1fr;}
    .cert-grid{grid-template-columns:1fr;}
    .office-grid{grid-template-columns:1fr;}
    .contact-grid{grid-template-columns:1fr;}
    .form-grid{grid-template-columns:1fr;}
    .footer-grid{grid-template-columns:1fr 1fr;}
    nav ul{display:none;}
    .burger{display:block;}
    .nav-cta{display:none;}
  }
  @media (max-width:520px){
    .footer-grid{grid-template-columns:1fr;}
    .cta-band{flex-direction:column; align-items:flex-start;}
  }

  /* Final polish */
  a[href^="tel:"], a[href^="mailto:"]{text-decoration:none;}
  a[href^="tel:"]:hover, a[href^="mailto:"]:hover{text-decoration:underline;}
  .mission-item{height:100%;}
  .footer-grid > div{min-width:0;}

/* Real multi-page site additions */
.site-alert{max-width:1180px;margin:14px auto 0;padding:0 24px;}
.alert-success,.alert-error{padding:12px 16px;border-radius:12px;font-size:14px;}
.alert-success{background:#e9f7ee;color:#175b36;border:1px solid #bfe2cc;}
.alert-error{background:#fff0f0;color:#8a2323;border:1px solid #f0c3c3;}
.footer-contact a{display:block;margin:0 0 5px;}

.hp-field{position:absolute!important;left:-10000px!important;width:1px!important;height:1px!important;opacity:0!important;}
@media(max-width:900px){
  .nav-wrap{padding-left:16px;padding-right:16px;}
  .brand img{width:54px;height:54px;}
  .brand-text b{font-size:15px;}
  .brand-text span{font-size:10px;}
}
@media(max-width:900px){nav ul.mobile-open{display:flex!important;flex-direction:column;position:absolute;top:74px;right:16px;left:16px;background:#fff;padding:12px;border-radius:14px;box-shadow:0 10px 30px rgba(0,0,0,.15);z-index:200;}nav ul{display:none}.burger{display:block}}

/* ===== FINAL TYPOGRAPHY / SECTION LABEL OVERRIDES ===== */
.eyebrow{
  font-size:18px !important;
  line-height:1.45 !important;
  padding:9px 18px !important;
  gap:9px !important;
}
.eyebrow::before{
  width:8px !important; height:8px !important; flex:0 0 8px !important;
}
/* Center all section eyebrow labels, including the mission label. */
.section-head.center .eyebrow,
.mission-wrap .eyebrow{
  display:flex !important;
  width:max-content !important;
  margin-left:auto !important;
  margin-right:auto !important;
  justify-content:center !important;
  text-align:center !important;
}
.mission-wrap{width:100% !important; display:block !important; text-align:center !important;}
.mission-wrap > div{width:100% !important; text-align:center !important;}
.mission-grid{width:100% !important; text-align:right !important;}

/* ===== Modern motion polish ===== */
@keyframes floatSoft{0%,100%{transform:translateY(0)}50%{transform:translateY(-7px)}}
@keyframes heroGlow{0%,100%{opacity:.65;transform:scale(1)}50%{opacity:.9;transform:scale(1.04)}}
.hero-visual .ring{animation:floatSoft 5s ease-in-out infinite;}
.hero::before{animation:heroGlow 8s ease-in-out infinite;}
.pillar-card,.why-item,.mission-item,.cert-card,.office-card,.service-block,.contact-card,.form-box,.cta-band{transition:transform .35s ease, box-shadow .35s ease, border-color .35s ease;}
.pillar-card:hover,.why-item:hover,.mission-item:hover,.cert-card:hover,.office-card:hover,.contact-card:hover,.form-box:hover{transform:translateY(-7px);box-shadow:0 18px 38px -18px rgba(14,36,25,.30);border-color:rgba(63,152,99,.45);}
.pillar-icon{transition:transform .35s ease;}
.pillar-card:hover .pillar-icon{transform:scale(1.12) rotate(-3deg);}
.reveal-item{opacity:1;transform:none;}
html.reveal-enabled .reveal-item{opacity:0;transform:translateY(22px) scale(.985);}
html.reveal-enabled .reveal-item.is-visible{opacity:1;transform:translateY(0) scale(1);transition:opacity .65s ease var(--reveal-delay),transform .65s cubic-bezier(.2,.75,.25,1) var(--reveal-delay);}
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;scroll-behavior:auto!important;transition-duration:.01ms!important;}
  html.reveal-enabled .reveal-item{opacity:1!important;transform:none!important;}
}


/* ===== Final architecture pages ===== */
.page-hero-compact{padding:70px 0 50px;}
.lab-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;}
.lab-card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:30px;position:relative;overflow:hidden;box-shadow:0 8px 28px rgba(14,36,25,.05);transition:.35s;}
.lab-card:hover{transform:translateY(-7px);box-shadow:0 18px 40px -18px rgba(14,36,25,.3);border-color:rgba(63,152,99,.45);}
.lab-icon{width:58px;height:58px;border-radius:16px;background:var(--mist-100);display:grid;place-items:center;font-size:27px;margin-bottom:18px;}
.lab-kicker{display:inline-block;color:var(--forest-600);font-size:12px;font-weight:800;background:var(--mist-100);padding:5px 11px;border-radius:999px;margin-bottom:10px;}
.lab-card h3{font-size:23px;margin-bottom:10px;}
.lab-card p{font-size:14.5px;margin-bottom:18px;}
.capability-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;}
.capability{background:#fff;border:1px solid var(--line);border-radius:15px;padding:23px;transition:.3s;}
.capability:hover{transform:translateY(-5px);box-shadow:var(--shadow);}
.capability>span{font-size:27px;display:block;margin-bottom:10px;}
.capability h3{font-size:16px;margin-bottom:6px;}
.capability p{font-size:13.5px;}
.notice-box{margin-top:24px;padding:16px 18px;border:1px solid #d7e7dc;border-radius:13px;background:#f8fcf9;color:var(--ink-soft);font-size:13.5px;}
.project-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;}
.project-card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:26px;position:relative;min-height:220px;transition:.35s;}
.project-card:hover{transform:translateY(-6px);box-shadow:var(--shadow);border-color:rgba(63,152,99,.45);}
.project-card>span{position:absolute;left:20px;top:18px;font-size:12px;font-weight:900;color:var(--forest-400);letter-spacing:1px;}
.project-card>div{font-size:27px;width:52px;height:52px;border-radius:14px;background:var(--mist-100);display:grid;place-items:center;margin-bottom:15px;}
.project-card h3{font-size:18px;margin-bottom:8px;}
.project-card p{font-size:13.7px;}
@media(max-width:950px){.capability-grid{grid-template-columns:repeat(2,1fr)}.project-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:700px){.lab-grid,.capability-grid,.project-grid{grid-template-columns:1fr}.page-hero-compact{padding:58px 0 40px}.lab-card,.project-card{padding:22px}}

.process-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin-top:24px}.process-item{background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.14);border-radius:16px;padding:18px}.process-item>b{display:inline-flex;width:34px;height:34px;align-items:center;justify-content:center;border-radius:50%;background:rgba(102,179,132,.18);color:var(--forest-400);font-size:13px}.process-item h3{font-size:16px;margin:12px 0 8px}.process-item p{font-size:13px;line-height:1.9;color:#dfeee5}@media(max-width:900px){.process-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:600px){.process-grid{grid-template-columns:1fr}}


/* Laboratory page motion enhancement v5 */
.laboratory-page .hero > *,
.laboratory-page .section-title,
.laboratory-page .service-card,
.laboratory-page .lab-card,
.laboratory-page .feature-card,
.laboratory-page .process-card,
.laboratory-page .mission-card {
  animation: labFadeUp .7s ease both;
}
.laboratory-page .hero > *:nth-child(2) { animation-delay:.08s; }
.laboratory-page .hero > *:nth-child(3) { animation-delay:.16s; }
.laboratory-page .service-card:nth-child(2n),
.laboratory-page .lab-card:nth-child(2n),
.laboratory-page .feature-card:nth-child(2n),
.laboratory-page .process-card:nth-child(2n) { animation-delay:.08s; }
.laboratory-page .service-card:hover,
.laboratory-page .lab-card:hover,
.laboratory-page .feature-card:hover,
.laboratory-page .process-card:hover,
.laboratory-page .mission-card:hover {
  transform: translateY(-6px);
  transition: transform .25s ease, box-shadow .25s ease;
}
@keyframes labFadeUp {
  from { opacity:0; transform:translateY(18px); }
  to { opacity:1; transform:translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .laboratory-page .hero > *,
  .laboratory-page .section-title,
  .laboratory-page .service-card,
  .laboratory-page .lab-card,
  .laboratory-page .feature-card,
  .laboratory-page .process-card,
  .laboratory-page .mission-card {
    animation:none;
    transition:none;
  }
}


/* Consistent header PSM logo sizing v5 */
.site-header .brand-logo,
header .brand-logo,
.site-header .logo img,
header .logo img,
.site-header img.logo,
header img.logo {
  width: clamp(110px, 13vw, 155px);
  max-width: 155px;
  height: auto;
  max-height: 64px;
  object-fit: contain;
}
@media (max-width: 768px) {
  .site-header .brand-logo,
  header .brand-logo,
  .site-header .logo img,
  header .logo img,
  .site-header img.logo,
  header img.logo {
    width: 112px;
    max-height: 52px;
  }
}

/* FINAL V6 FIXES */
header .logo img, header .brand-logo, header .site-logo,
.site-header .logo img, .site-header .brand-logo, .site-header .site-logo {
  width: 132px !important;
  max-width: 132px !important;
  height: auto !important;
  max-height: 58px !important;
  object-fit: contain !important;
}
@media (max-width: 768px) {
  header .logo img, header .brand-logo, header .site-logo,
  .site-header .logo img, .site-header .brand-logo, .site-header .site-logo {
    width: 108px !important;
    max-width: 108px !important;
    max-height: 48px !important;
  }
}
.laboratory-page main > * {
  opacity: 0;
  transform: translateY(22px);
  animation: labEnter .65s ease forwards;
}
.laboratory-page main > *:nth-child(2){animation-delay:.08s}
.laboratory-page main > *:nth-child(3){animation-delay:.16s}
.laboratory-page main > *:nth-child(4){animation-delay:.24s}
@keyframes labEnter { to {opacity:1;transform:translateY(0)} }
@media (prefers-reduced-motion: reduce) {
 .laboratory-page main > * {opacity:1;transform:none;animation:none}
}

/* V7 exact header logo sizing */
header .brand > img { width: 118px !important; max-width: 118px !important; height: auto !important; max-height: 54px !important; object-fit: contain !important; }
@media (max-width:768px){ header .brand > img { width: 96px !important; max-width:96px !important; max-height:46px !important; } }

/* V7 laboratory scroll reveal: sections/cards fade in when entering viewport */
.laboratory-page .lab-reveal { opacity: 0; transform: translateY(28px); }
.laboratory-page .lab-reveal.is-visible { opacity: 1; transform: translateY(0); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.75,.25,1); }
@media (prefers-reduced-motion: reduce){ .laboratory-page .lab-reveal { opacity:1 !important; transform:none !important; transition:none !important; } }



/* V8: reliable scroll-reveal for Laboratory page */
#laboratory .lab-reveal{
  opacity:0;
  transform:translateY(30px);
  transition:opacity .7s ease var(--lab-delay,0ms), transform .7s cubic-bezier(.2,.75,.25,1) var(--lab-delay,0ms);
}
#laboratory .lab-reveal.is-visible{
  opacity:1 !important;
  transform:translateY(0) !important;
}
#laboratory .lab-card,
#laboratory .capability,
#laboratory .process-item{
  will-change:opacity,transform;
}
#laboratory .lab-card:hover,
#laboratory .capability:hover,
#laboratory .process-item:hover{
  transform:translateY(-5px);
  transition:transform .25s ease, box-shadow .25s ease;
}

/* V8: keep Contact page's two-column layout intact */
#contact .contact-grid{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);
  gap:44px;
  align-items:start;
}
#contact .contact-grid > div{
  min-width:0;
}
@media(max-width:920px){
  #contact .contact-grid{grid-template-columns:1fr;}
}

/* V9 contact layout fix */
#contact .contact-grid{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;width:100%!important;max-width:100%!important;gap:32px!important;align-items:start!important}
#contact .contact-grid>*{position:static!important;float:none!important;width:auto!important;min-width:0!important;max-width:none!important;margin-left:0!important;margin-right:0!important}
#contact .contact-grid:before,#contact .contact-grid:after{display:none!important}
@media(max-width:900px){#contact .contact-grid{grid-template-columns:1fr!important}}
#laboratory .process-item .step-number,#laboratory .process-item .process-number,#laboratory .process-card .step-number,#laboratory .process-card .process-number{display:none!important}

/* MOBILE FINAL FIX — header logo aspect ratio + horizontal overflow */
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

header,
.nav-wrap,
.brand,
.container,
section.page {
  min-width: 0;
  max-width: 100%;
}

header .brand {
  min-width: 0;
  flex: 0 1 auto;
}

/* The source logo is portrait (226x251); forcing equal width/height prevents the stretched oval on mobile. */
header .brand > img {
  width: 62px !important;
  height: 62px !important;
  max-width: 62px !important;
  max-height: 62px !important;
  flex: 0 0 62px !important;
  object-fit: contain !important;
  border-radius: 50% !important;
}

@media (max-width: 768px) {
  .nav-wrap {
    width: 100%;
    padding-left: 14px;
    padding-right: 14px;
    gap: 10px;
  }

  header .brand > img {
    width: 56px !important;
    height: 56px !important;
    max-width: 56px !important;
    max-height: 56px !important;
    flex-basis: 56px !important;
  }

  .brand-text {
    min-width: 0;
  }

  /* Prevent long RTL text from creating a wider-than-screen header. */
  .brand-text b,
  .brand-text span {
    max-width: 150px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Keep About/Contact and every mobile page locked to the viewport width. */
  #about,
  #contact,
  #about .hero,
  #contact .hero,
  #about .container,
  #contact .container,
  #about .hero-inner,
  #contact .contact-grid {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  #about .hero-inner,
  #about .about-hero,
  #contact .contact-grid {
    overflow-x: clip;
  }

  #about .hero-inner > *,
  #about .about-hero > *,
  #contact .contact-grid > * {
    min-width: 0 !important;
    max-width: 100% !important;
  }
}


/* About page mobile hero: match the other inner-page headers */
@media (max-width: 920px){
  #about .about-page-hero-inner{
    grid-template-columns:1fr !important;
    gap:18px !important;
    text-align:center !important;
    width:100% !important;
    max-width:100% !important;
  }
  #about .about-page-hero-visual{
    order:-1 !important;
    min-height:230px !important;
    margin-bottom:0 !important;
    width:100% !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
  }
  #about .about-page-hero-visual .ring{
    width:220px !important;
    height:220px !important;
  }
  #about .about-page-hero-visual .ring img{
    width:155px !important;
    height:155px !important;
    object-fit:contain !important;
  }
  #about .about-hero-copy{
    width:100% !important;
    max-width:760px !important;
    margin:0 auto !important;
    min-width:0 !important;
  }
  #about .about-hero-copy h1,
  #about .about-hero-copy p.lead{
    text-align:center !important;
    margin-left:auto !important;
    margin-right:auto !important;
  }
  #about .about-hero-copy p.lead{
    max-width:760px !important;
  }
}

/* About hero: keep only the badge and title right-aligned. */
@media (max-width: 920px){
  #about .about-hero-copy .eyebrow{
    display:block !important;
    width:max-content !important;
    margin-left:0 !important;
    margin-right:0 !important;
    text-align:right !important;
  }
  #about .about-hero-copy h1{
    text-align:right !important;
  }
}
