:root {
    --teal: #0F5C56;
    --teal-dim: #0c4a45;
    --sand: #E8E2D6;
    --ink: #14181A;
    --bg: #F7F6F2;
    --surface: #FFFFFF;
    --line: #DDD9CD;
    --muted: #5B6260;
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  :root[data-theme="dark"] {
    --teal: #3EA89E;
    --teal-dim: #2f8a81;
    --sand: #2A2620;
    --ink: #EDEEEC;
    --bg: #101413;
    --surface: #1B211F;
    --line: #2A302E;
    --muted: #9AA3A0;
  }
  html { scroll-padding-top: calc(112px + env(safe-area-inset-top, 0px)); scroll-behavior: smooth; }
  * { box-sizing: border-box; }
  body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: 'IBM Plex Sans Arabic', 'IBM Plex Sans', sans-serif;
    transition: background .25s ease, color .25s ease;
    min-height: 100%;
  }
  html[lang="en"] body { font-family: 'IBM Plex Sans', 'IBM Plex Sans Arabic', sans-serif; }

  header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding-top: env(safe-area-inset-top, 0px);
  }
  .nav-wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 22px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
  }
  .logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    white-space: nowrap;
  }
  .logo-img { height: 54px; width: auto; display: block; }
  .logo-img.dark-only { display: none; }
  :root[data-theme="dark"] .logo-img.light-only { display: none; }
  :root[data-theme="dark"] .logo-img.dark-only { display: block; }
  nav.links {
    display: flex;
    gap: 28px;
    list-style: none;
    margin: 0; padding: 0;
  }
  nav.links a {
    position: relative;
    color: var(--ink);
    text-decoration: none;
    font-size: .95rem;
    font-weight: 500;
    padding: 6px 2px;
    transition: color .2s ease;
  }
  nav.links a::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 2px;
    background: var(--teal);
    transform: scaleX(0);
    transition: transform .25s ease;
  }
  nav.links a:hover { color: var(--teal); }
  nav.links a:hover::after { transform: scaleX(1); }
  @media (prefers-reduced-motion: reduce) {
    nav.links a::after { transition: none; }
  }

  .controls { display: flex; align-items: center; gap: 10px; }
  .ctrl-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--bg);
    border: 1px solid var(--line);
    color: var(--ink);
    border-radius: 999px;
    padding: 7px 14px;
    font-size: .85rem;
    font-family: inherit;
    font-weight: 500;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease;
  }
  .ctrl-btn:hover { border-color: var(--teal); }
  .ctrl-btn:focus-visible, a:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }

  .burger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
  }
  .burger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--ink);
    margin: 5px 0;
  }

  main { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

  .hero {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 40px;
    align-items: stretch;
    padding: 72px 0 88px;
  }
  .hero h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.25;
    margin: 0 0 18px;
    font-weight: 700;
  }
  @keyframes enterFromRight {
    from { opacity: 0; transform: translateX(28px); }
    to { opacity: 1; transform: translateX(0); }
  }
  @keyframes enterFromLeft {
    from { opacity: 0; transform: translateX(-28px); }
    to { opacity: 1; transform: translateX(0); }
  }
  .hero > div:first-child { animation: enterFromRight .75s cubic-bezier(.22,.61,.36,1) both; }
  .hero > .hero-stats { animation: enterFromLeft .75s .12s cubic-bezier(.22,.61,.36,1) both; }
  .hero p {
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.8;
    max-width: 54ch;
    margin: 0 0 28px;
  }
  .cta {
    position: relative;
    display: inline-block;
    overflow: hidden;
    background: var(--teal);
    color: #fff;
    text-decoration: none;
    padding: 13px 26px;
    border-radius: 8px;
    font-weight: 600;
    font-size: .95rem;
    transition: background .2s ease;
  }
  .cta::after {
    content: "";
    position: absolute;
    top: 0; left: -60%;
    width: 40%; height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,.35), transparent);
    transform: skewX(-20deg);
    transition: left .55s ease;
  }
  .cta:hover::after { left: 130%; }
  @media (prefers-reduced-motion: reduce) {
    .cta::after { display: none; }
  }
  .cta:hover { background: var(--teal-dim); }

  .hero-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, auto);
    align-content: start;
    align-self: start;
    gap: 18px;
    max-width: 380px;
  }
  .hero-stats .stat:nth-child(1) { grid-column: 2; grid-row: 1; }
  .hero-stats .stat:nth-child(2) { grid-column: 1; grid-row: 2; }
  .hero-stats .stat:nth-child(3) { grid-column: 2; grid-row: 3; }

  @keyframes statCascade {
    from { opacity: 0; transform: translateY(16px) scale(.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
  }
  .hero-stats .stat {
    animation: statCascade .65s cubic-bezier(.22,.61,.36,1) both;
  }
  .hero-stats .stat:nth-child(1) { animation-delay: .05s; }
  .hero-stats .stat:nth-child(2) { animation-delay: .22s; }
  .hero-stats .stat:nth-child(3) { animation-delay: .39s; }
  @media (prefers-reduced-motion: reduce) {
    .hero-stats .stat { animation: none; }
  }
  .hero-stats .stat {
    aspect-ratio: 1 / 1;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 12px;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  }
  .hero-stats .stat .stat-top {
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .hero-stats .stat:hover { box-shadow: 0 8px 20px rgba(0,0,0,.06); }
  .hero-stats .stat:nth-child(1), .hero-stats .stat:nth-child(3) {
    background: var(--teal);
    border-color: var(--teal);
  }
  .hero-stats .stat:nth-child(1):hover, .hero-stats .stat:nth-child(3):hover {
    background: var(--teal-dim);
    border-color: var(--teal-dim);
  }
  .hero-stats .stat:nth-child(1) .icon, .hero-stats .stat:nth-child(3) .icon {
    background: rgba(255,255,255,.18);
  }
  .hero-stats .stat:nth-child(1) .icon-svg, .hero-stats .stat:nth-child(3) .icon-svg {
    stroke: #fff;
  }
  .hero-stats .stat:nth-child(1) b, .hero-stats .stat:nth-child(3) b { color: #fff; }
  .hero-stats .stat:nth-child(1) span, .hero-stats .stat:nth-child(3) span { color: rgba(255,255,255,.85); }
  .hero-stats .stat .icon {
    width: 38px; height: 38px;
    border-radius: 9px;
    background: var(--sand);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
  }
  .hero-stats .stat b { display: block; font-size: 1.9rem; font-weight: 700; color: var(--teal); line-height: 1; }
  .hero-stats .stat span { color: var(--muted); font-size: .8rem; line-height: 1.3; }

  @media (max-width: 760px) {
    .hero-stats { max-width: 320px; margin-inline-start: auto; margin-inline-end: auto; }
  }

  .icon-svg {
    width: 20px;
    height: 20px;
    stroke: var(--teal);
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  .service-detail .icon-svg { width: 22px; height: 22px; }

  .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .6s ease, transform .6s ease;
  }
  .reveal.visible { opacity: 1; transform: none; }
  @media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
  }

  .why-card, .service-card, .project-card {
    transition: transform .2s ease, box-shadow .2s ease;
  }
  .why-card:hover, .service-card:hover, .project-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,.06);
  }

  /* Staggered entrance: cards fade/rise in one after another once their section reveals */
  .why-card, .service-card, .project-card, .partner-tile {
    opacity: 0;
    transform: translateY(18px) scale(.96);
    transition: opacity .5s ease, transform .5s ease, box-shadow .2s ease;
  }
  .reveal.visible .why-card,
  .reveal.visible .service-card,
  .reveal.visible .project-card,
  .reveal.visible .partner-tile {
    opacity: 1;
    transform: none;
  }
  .reveal.visible .why-card:hover,
  .reveal.visible .service-card:hover,
  .reveal.visible .project-card:hover {
    transform: translateY(-3px);
  }
  .why-grid .why-card:nth-child(1), .services-grid .service-card:nth-child(1), .project-grid .project-card:nth-child(1), .partner-grid .partner-tile:nth-child(1) { transition-delay: .03s; }
  .why-grid .why-card:nth-child(2), .services-grid .service-card:nth-child(2), .project-grid .project-card:nth-child(2), .partner-grid .partner-tile:nth-child(2) { transition-delay: .1s; }
  .why-grid .why-card:nth-child(3), .services-grid .service-card:nth-child(3), .project-grid .project-card:nth-child(3), .partner-grid .partner-tile:nth-child(3) { transition-delay: .17s; }
  .why-grid .why-card:nth-child(4), .services-grid .service-card:nth-child(4), .project-grid .project-card:nth-child(4), .partner-grid .partner-tile:nth-child(4) { transition-delay: .24s; }
  .why-grid .why-card:nth-child(5), .partner-grid .partner-tile:nth-child(5) { transition-delay: .31s; }
  .why-grid .why-card:nth-child(6), .partner-grid .partner-tile:nth-child(6) { transition-delay: .38s; }
  .partner-grid .partner-tile:nth-child(7) { transition-delay: .45s; }
  .partner-grid .partner-tile:nth-child(8) { transition-delay: .52s; }
  .services-detail-list .service-detail {
    opacity: 0;
    transform: translateY(22px) scale(.98);
    transition: opacity .65s ease, transform .65s cubic-bezier(.22,.61,.36,1);
  }
  .services-detail-list.visible .service-detail { opacity: 1; transform: none; }
  .services-detail-list.visible .service-detail:nth-child(2) { transition-delay: .12s; }
  .services-detail-list.visible .service-detail:nth-child(3) { transition-delay: .24s; }
  .services-detail-list.visible .service-detail:nth-child(4) { transition-delay: .36s; }
  @media (prefers-reduced-motion: reduce) {
    .why-card, .service-card, .project-card, .partner-tile {
      opacity: 1; transform: none; transition: none; transition-delay: 0s;
    }
    .hero > div:first-child, .hero > .hero-stats { animation: none; }
    .services-detail-list .service-detail { opacity: 1; transform: none; transition: none; }
  }

  .eyebrow { color: var(--teal); font-weight: 600; font-size: .9rem; margin: 0 0 8px; }
  section.about, section.why { padding: 64px 0; border-top: 1px solid var(--line); }
  section.about h2, section.why h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 0 0 16px; }

  .about {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 44px;
    align-items: center;
  }
  .about-media {
    aspect-ratio: 4/3;
    border-radius: 14px;
    overflow: hidden;
  }
  .about-media svg { width: 100%; height: 100%; display: block; transition: transform .45s ease; }
  .about-media:hover svg { transform: scale(1.04); }
  @media (prefers-reduced-motion: reduce) {
    .about-media svg { transition: none; }
    .about-media:hover svg { transform: none; }
  }
  .about-copy p { color: var(--muted); line-height: 1.85; max-width: 56ch; margin: 0 0 20px; }
  .text-link { color: var(--teal); font-weight: 600; text-decoration: none; }
  .text-link:hover { text-decoration: underline; }

  .why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 28px;
  }
  .why-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 22px;
  }
  .why-card .icon {
    width: 40px; height: 40px;
    border-radius: 10px;
    background: var(--sand);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 14px;
    color: var(--teal);
    font-size: 1.1rem;
  }
  .why-card h3 { font-size: 1rem; margin: 0 0 8px; }
  .why-card p { color: var(--muted); font-size: .9rem; line-height: 1.7; margin: 0; }

  @media (max-width: 760px) {
    .about { grid-template-columns: 1fr; }
    .why-grid { grid-template-columns: 1fr; }
  }

  .section-sub { color: var(--muted); margin: 0 0 8px; max-width: 60ch; }
  .services-grid + .text-link { display: inline-block; margin-top: 22px; }
  section.services { padding: 64px 0; border-top: 1px solid var(--line); }
  section.services h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 0 0 10px; }

  .services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-top: 30px;
  }
  .service-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 26px;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .service-card .icon {
    width: 40px; height: 40px;
    border-radius: 10px;
    background: var(--sand);
    display: flex; align-items: center; justify-content: center;
    color: var(--teal);
    font-size: 1.1rem;
  }
  .service-card h3 { margin: 0; font-size: 1.15rem; }
  .service-card p { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.75; }

  @media (max-width: 760px) {
    .services-grid { grid-template-columns: 1fr; }
  }

  section.portfolio, section.partners, section.faq { padding: 64px 0; border-top: 1px solid var(--line); }
  section.faq h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 0 0 28px; }
  .faq-list { display: flex; flex-direction: column; gap: 18px; max-width: 760px; }
  .faq-item {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 22px 26px;
  }
  .faq-item h3 { font-size: 1rem; margin: 0 0 8px; }
  .faq-item p { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.7; }
  section.portfolio h2, section.cta-banner h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 0 0 10px; }

  .client-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-top: 28px;
  }
  .client-row .project-card {
    min-height: 325px;
    padding: 26px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 14px;
    border-radius: 14px;
  }
  .client-row .project-tag { align-self: flex-start; margin: 0; }
  .client-row .project-card h3 { font-size: 1.25rem; line-height: 1.45; }
  .client-row .project-card p { font-size: .95rem; }
  .project-media {
    width: 100%;
    height: 148px;
    min-height: 148px;
    flex: 0 0 148px;
    padding: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
  }
  .project-media img { display: block; max-width: 100%; max-height: 100px; object-fit: contain; }
  .project-media.project-photo {
    padding: 0;
    overflow: hidden;
  }
  .project-media.project-photo img { width: 100%; height: 100%; max-height: none; object-fit: cover; }
  @media (max-width: 900px) {
    .client-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  }
  @media (max-width: 520px) {
    .client-row { grid-template-columns: 1fr; }
    .client-row .project-card { min-height: 270px; }
  }

  .cta-banner {
    margin: 0 0 0;
    background: var(--teal);
    color: #fff;
    border-radius: 16px;
    padding: 44px 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
  }
  .cta-banner h2 { color: #fff; }
  .cta-banner p { margin: 0; color: rgba(255,255,255,.85); max-width: 46ch; }
  .cta-light { background: #fff; color: var(--teal); }
  .cta-light:hover { background: var(--sand); }

  .partner-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 28px;
  }
  .partner-grid.is-marquee {
    display: block;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
  }
  .partner-track {
    display: flex;
    width: max-content;
    animation: partnerMarquee 36s linear infinite;
  }
  .partner-group {
    display: flex;
    gap: 16px;
    padding-inline-end: 16px;
  }
  .partner-group[aria-hidden="true"] { pointer-events: none; }
  .partner-grid.is-marquee:hover .partner-track,
  .partner-grid.is-marquee:focus-within .partner-track { animation-play-state: paused; }
  .partner-grid.is-marquee .partner-tile {
    flex: 0 0 210px;
    min-height: 110px;
  }
  @keyframes partnerMarquee {
    to { transform: translateX(-50%); }
  }
  .partner-tile {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 26px 20px;
    text-align: center;
    font-size: .9rem;
    color: var(--muted);
    font-weight: 500;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    justify-content: center;
    min-height: 110px;
    filter: grayscale(1);
    transition: opacity .5s ease, transform .5s ease, box-shadow .2s ease, filter .2s ease, color .2s ease;
  }
  .partner-tile:hover { filter: grayscale(0); opacity: 1; color: var(--teal); }
  .partner-tile img { max-height: 58px; max-width: 100%; object-fit: contain; display: block; }
  .partner-tile .partner-name { line-height: 1.35; }
  .logo-fallback-text { font-size: .9rem; color: inherit; }

  @media (max-width: 760px) {
    .partner-grid:not(.is-marquee) { grid-template-columns: repeat(2, 1fr); }
    .partner-grid.is-marquee .partner-tile { flex-basis: 170px; }
    .cta-banner { flex-direction: column; align-items: flex-start; }
  }
  @media (prefers-reduced-motion: reduce) {
    .partner-track { animation: none; }
    .partner-grid.is-marquee { overflow-x: auto; mask-image: none; }
  }

  footer {
    background: var(--surface);
    border-top: 1px solid var(--line);
    margin-top: 20px;
    padding: 56px 20px 24px;
  }
  .footer-grid {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 32px;
  }
  .footer-logo { margin-bottom: 4px; }
  .footer-logo .logo-img { height: 58px; }
  .footer-brand p { color: var(--muted); font-size: .9rem; line-height: 1.7; max-width: 32ch; margin: 10px 0 16px; }
  .socials { display: flex; gap: 10px; }
  .socials a {
    width: 32px; height: 32px;
    border-radius: 50%;
    border: 1px solid var(--line);
    display: flex; align-items: center; justify-content: center;
    color: var(--muted);
    text-decoration: none;
    font-size: .75rem;
  }
  .socials a:hover { border-color: var(--teal); color: var(--teal); }
  footer h4 { font-size: .95rem; margin: 0 0 14px; }
  footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
  footer ul li, footer ul a {
    color: var(--muted);
    font-size: .88rem;
    text-decoration: none;
  }
  footer ul a:hover { color: var(--teal); }
  .contact-list li { display: flex; align-items: center; gap: 10px; min-width: 0; }
  .contact-list li > a { display: inline-flex; align-items: center; gap: 10px; min-width: 0; color: inherit; text-decoration: none; }
  .contact-list li > a:hover { color: var(--teal); }
  .contact-list .contact-address { align-items: flex-start; }
  .contact-icon { width: 18px; height: 18px; flex: 0 0 18px; }
  .footer-bottom {
    max-width: 1180px;
    margin: 40px auto 0;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: .82rem;
    text-align: center;
  }
  @media (max-width: 760px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
  }
  @media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr; }
  }

  .page-hero { padding: 56px 0 20px; }
  .page-hero h1 { animation: enterFromRight .7s cubic-bezier(.22,.61,.36,1) both; }
  .page-hero p { animation: enterFromRight .7s .12s cubic-bezier(.22,.61,.36,1) both; }
  .page-hero h1 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin: 0 0 14px; }
  .page-hero p { color: var(--muted); max-width: 62ch; line-height: 1.8; margin: 0; }

  .services-detail-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding: 40px 0;
    border-top: 1px solid var(--line);
  }
  .service-detail {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 36px;
    align-items: center;
  }
  .service-detail.reverse { grid-template-columns: 1.1fr .9fr; }
  .service-detail.reverse .service-media { order: 2; }
  .service-detail.reverse .service-copy { order: 1; }
  .service-media {
    aspect-ratio: 4/3;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--line);
  }
  .service-media svg { width: 100%; height: 100%; display: block; transition: transform .45s ease; }
  .service-media:hover svg { transform: scale(1.04); }
  @media (prefers-reduced-motion: reduce) {
    .service-media svg { transition: none; }
    .service-media:hover svg { transform: none; }
  }
  .service-copy .icon {
    width: 44px; height: 44px;
    border-radius: 10px;
    background: var(--sand);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 16px;
  }
  .service-copy h3 { margin: 0 0 10px; font-size: 1.15rem; }
  .service-copy p { margin: 0; color: var(--muted); line-height: 1.8; font-size: .95rem; max-width: 46ch; }

  .project-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
    margin-top: 28px;
  }
  .project-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 22px;
  }
  .project-card .icon {
    width: 40px; height: 40px;
    border-radius: 10px;
    background: var(--sand);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 14px;
  }
  .project-tag {
    display: inline-block;
    font-size: .78rem;
    font-weight: 600;
    color: var(--teal);
    background: var(--sand);
    padding: 4px 10px;
    border-radius: 999px;
    margin-bottom: 12px;
  }
  .project-card h3 { margin: 0 0 8px; font-size: 1.05rem; }
  .project-card p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.7; }

  @media (max-width: 760px) {
    .service-detail, .service-detail.reverse { grid-template-columns: 1fr; }
    .service-detail.reverse .service-media, .service-detail.reverse .service-copy { order: initial; }
    .project-grid { grid-template-columns: 1fr; }
  }

  .contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    padding: 40px 0 64px;
  }
  .contact-form {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 6px;
  }
  .contact-form label { font-size: .88rem; font-weight: 500; margin: 12px 0 4px; }
  .contact-form label:first-child { margin-top: 0; }
  .contact-form input, .contact-form textarea {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 11px 14px;
    font-family: inherit;
    font-size: .92rem;
    color: var(--ink);
    resize: vertical;
  }
  .contact-form input:focus, .contact-form textarea:focus {
    outline: 2px solid var(--teal);
    outline-offset: 1px;
    border-color: var(--teal);
  }
  .contact-form button { margin-top: 16px; border: none; cursor: pointer; align-self: flex-start; }
  .form-note { color: var(--muted); font-size: .82rem; margin: 10px 0 0; }

  .contact-info-card {
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-width: 0;
  }
  .contact-info-card .contact-list {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 22px 24px;
    list-style: none;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: var(--muted);
    font-size: .92rem;
    min-width: 0;
  }
  .map-wrap {
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    flex: 1;
    min-height: 260px;
    min-width: 0;
  }
  .map-wrap iframe { width: 100%; height: 100%; min-height: 260px; border: 0; display: block; }

  @media (max-width: 760px) {
    .contact-layout { grid-template-columns: minmax(0, 1fr); }
    .contact-layout > * { min-width: 0; }
    .contact-info-card .contact-list, .map-wrap { width: 100%; }
  }
  @media (prefers-reduced-motion: reduce) {
    .page-hero h1, .page-hero p { animation: none; }
  }

  section[data-placeholder] {
    padding: 60px 0;
    color: var(--muted);
    border-top: 1px dashed var(--line);
  }

  @media (max-width: 760px) {
    nav.links, .controls .ctrl-btn span.label { display: none; }
    nav.links.open {
      display: flex;
      flex-direction: column;
      position: absolute;
      top: 100%;
      inset-inline: 0;
      padding: 16px 20px;
      background: var(--surface);
      border-bottom: 1px solid var(--line);
    }
    .burger { display: block; }
    .hero { grid-template-columns: 1fr; padding: 44px 0 56px; }
  }
  @media (max-width: 360px) {
    .nav-wrap { gap: 8px; padding-inline: 12px; }
    .controls { gap: 6px; }
    .ctrl-btn { padding-inline: 8px; }
    .burger { padding: 4px; }
    .hero > * { min-width: 0; }
    .hero-stats {
      width: 100%;
      max-width: 100%;
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .hero-stats .stat { min-width: 0; padding: 14px; }
    .hero-stats .stat span { overflow-wrap: anywhere; }
  }

  /* ---- Site assistant chat widget ---- */
  .chat-fab {
    position: fixed;
    bottom: 22px;
    inset-inline-end: 22px;
    width: 56px; height: 56px;
    border-radius: 50%;
    background: var(--teal);
    border: none;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 10px 24px rgba(0,0,0,.18);
    z-index: 80;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  .chat-fab .icon-svg { width: 26px; height: 26px; stroke: #fff; }

  .chat-panel {
    position: fixed;
    bottom: 90px;
    inset-inline-end: 22px;
    width: min(340px, calc(100vw - 32px));
    max-height: min(480px, calc(100vh - 140px));
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(0,0,0,.16);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 80;
  }
  .chat-panel.open { display: flex; }

  .chat-header {
    background: var(--teal);
    color: #fff;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }
  .chat-header strong { display: block; font-size: .95rem; }
  .chat-header span { display: block; font-size: .78rem; opacity: .85; margin-top: 2px; }
  .chat-close {
    background: none; border: none; color: #fff;
    font-size: 1.4rem; line-height: 1; cursor: pointer;
    padding: 0 4px;
  }

  .chat-quick {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
  }
  .chat-chip {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 6px 12px;
    font-size: .78rem;
    font-family: inherit;
    color: var(--ink);
    cursor: pointer;
  }
  .chat-chip:hover { border-color: var(--teal); color: var(--teal); }

  .chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .chat-msg { display: flex; flex-direction: column; max-width: 85%; }
  .chat-msg.user { align-self: flex-end; align-items: flex-end; }
  .chat-msg.bot { align-self: flex-start; align-items: flex-start; }
  .chat-bubble {
    padding: 10px 14px;
    border-radius: 14px;
    font-size: .88rem;
    line-height: 1.6;
    white-space: pre-line;
  }
  .chat-msg.user .chat-bubble { background: var(--teal); color: #fff; border-end-end-radius: 4px; }
  .chat-msg.bot .chat-bubble { background: var(--bg); color: var(--ink); border-end-start-radius: 4px; }
  .chat-cta {
    margin-top: 6px;
    font-size: .8rem;
    font-weight: 600;
    color: var(--teal);
    text-decoration: none;
  }
  .chat-cta:hover { text-decoration: underline; }

  .chat-input-row {
    display: flex;
    gap: 8px;
    padding: 12px;
    border-top: 1px solid var(--line);
  }
  .chat-input {
    flex: 1;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 10px 16px;
    font-family: inherit;
    font-size: .88rem;
    color: var(--ink);
  }
  .chat-input:focus { outline: 2px solid var(--teal); outline-offset: 1px; }
  .chat-send {
    background: var(--teal);
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 10px 18px;
    font-family: inherit;
    font-size: .85rem;
    font-weight: 600;
    cursor: pointer;
  }

  @media (max-width: 480px) {
    .chat-panel { bottom: 82px; inset-inline-end: 16px; }
    .chat-fab { inset-inline-end: 16px; }
  }
