@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --ink: #202829;
  --dark: #1b2223;
  --dark-2: #13191a;
  --accent: #f47816;
  --accent-light: #fff1e6;
  --paper: #f7f7f4;
  --line: #e3e7e4;
  --muted: #596568;
  --max: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: #fff; font: 400 16px/1.72 'Manrope', Arial, sans-serif; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.container { width: min(calc(100% - 56px), var(--max)); margin-inline: auto; }

/* Shared navigation */
.topbar { background: var(--dark-2); color: #cbd2d0; font-size: 12px; }
.topbar-inner { min-height: 37px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.topbar-items { display: flex; gap: 27px; flex-wrap: wrap; }
.topbar b { color: var(--accent); margin-right: 7px; font-size: 10px; }
.topbar-inner > span { color: #a8b2af; white-space: nowrap; }
.site-header { position: relative; z-index: 20; height: 92px; background: var(--dark); color: #fff; border-bottom: 1px solid rgba(255,255,255,.08); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; flex: none; line-height: 1; }
.brand img { width: 205px; height: auto; object-fit: contain; }
.site-nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 29px); }
.site-nav a { position: relative; padding: 12px 0; color: #e5e9e8; font-size: 12px; font-weight: 800; letter-spacing: .065em; white-space: nowrap; transition: color .2s ease; }
.site-nav a::after { content: ''; position: absolute; bottom: 4px; left: 0; width: 0; height: 2px; background: var(--accent); transition: width .2s ease; }
.site-nav a:hover, .site-nav a.active { color: #fff; }
.site-nav a:hover::after, .site-nav a.active::after { width: 100%; }
.menu-toggle { display: none; padding: 10px; border: 1px solid rgba(255,255,255,.25); border-radius: 8px; background: transparent; cursor: pointer; }
.menu-toggle span { display: block; width: 24px; height: 2px; margin: 5px 0; background: #fff; }

/* Home hero */
.hero { position: relative; height: clamp(510px, 42vw, 570px); overflow: hidden; background: var(--dark); }
.slide { position: absolute; inset: 0; visibility: hidden; opacity: 0; background-position: center; background-size: cover; transition: opacity .55s ease, visibility .55s ease; }
.slide:nth-child(2) { background-position: center; }
.slide:nth-child(3) { background-position: center; }
.slide.active { visibility: visible; opacity: 1; }
.slide::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14,20,22,.96) 0%, rgba(14,20,22,.84) 34%, rgba(14,20,22,.3) 72%, rgba(14,20,22,.12)); }
.slide-content { position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; height: 100%; padding-bottom: 40px; color: #fff; }
.vertical-note { display: none; }
.eyebrow, .section-head small, .page-hero small, .cta small { color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.slide h1 { max-width: 760px; margin: 17px 0 22px; font-size: clamp(42px, 4.8vw, 65px); font-weight: 800; line-height: 1.12; letter-spacing: -.045em; }
.slide h1 em { display: block; color: #ff9d4b; font-style: normal; }
.slide p { max-width: 550px; margin: 0 0 31px; color: #e0e5e3; font-size: 17px; line-height: 1.72; }
.btn { display: inline-flex; align-items: center; gap: 17px; font-size: 15px; font-weight: 800; line-height: 1.2; }
.btn-circle { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--accent); color: var(--dark-2); font-size: 22px; transition: transform .2s ease, background .2s ease; }
.btn:hover .btn-circle { transform: translateX(4px); background: #fff; }
.slider-dots { position: absolute; z-index: 6; bottom: 36px; left: 50%; display: flex; gap: 10px; transform: translateX(-50%); }
.slider-dot { width: 11px; height: 11px; padding: 0; border: 2px solid #fff; border-radius: 50%; background: transparent; cursor: pointer; }
.slider-dot.active { width: 30px; border-color: var(--accent); border-radius: 20px; background: var(--accent); }
.hero-controls { position: absolute; right: max(28px, calc((100vw - var(--max)) / 2)); bottom: 53px; z-index: 7; display: flex; gap: 10px; }
.hero-arrow { display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 1px solid rgba(255,255,255,.65); border-radius: 50%; background: rgba(19,25,26,.55); color: #fff; font-size: 24px; line-height: 1; cursor: pointer; transition: background .2s ease, border-color .2s ease, color .2s ease; }
.hero-arrow:hover { border-color: var(--accent); background: var(--accent); color: var(--dark-2); }

/* Home sections */
.quick-services { position: relative; z-index: 4; margin-top: -28px; }
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 15px 38px rgba(20,29,29,.12); }
.quick-grid a { display: flex; align-items: center; gap: 14px; min-height: 78px; padding: 16px 20px; border-right: 1px solid var(--line); transition: background .2s ease; }
.quick-grid a:last-child { border-right: 0; }
.quick-grid a:hover { background: var(--accent-light); }
.quick-grid span { color: var(--accent); font-size: 23px; font-weight: 800; }
.quick-grid strong { font-size: 14px; font-weight: 800; line-height: 1.35; }
.section { padding: 60px 0; }
.section-head { max-width: 700px; margin: 0 auto 28px; text-align: center; }
.section-head.left { margin: 0 0 26px; text-align: left; }
.section-head h2, .page-hero h1 { margin: 8px 0 10px; font-size: clamp(32px, 3.7vw, 48px); font-weight: 800; line-height: 1.17; letter-spacing: -.04em; }
.section-head p { margin: 0; color: var(--muted); font-size: 17px; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(38px, 5vw, 64px); }
.about-photo { position: relative; height: 430px; border-radius: 12px; background: url('assets/images/real-exterior-cameras.webp') center/cover; }
.about-photo::after { content: '2010'; position: absolute; right: -22px; bottom: 30px; padding: 17px 25px; border-radius: 8px; background: var(--accent); color: var(--dark-2); font-size: 31px; font-weight: 800; letter-spacing: -.04em; }
.about-copy h3 { margin: 8px 0 14px; font-size: clamp(30px, 3.1vw, 42px); font-weight: 800; line-height: 1.21; letter-spacing: -.045em; }
.about-copy > p { margin: 0 0 16px; color: var(--muted); font-size: 16px; }
.check-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; margin: 0 0 20px; padding: 0; list-style: none; }
.check-list li { font-size: 14px; font-weight: 700; }
.check-list li::before { content: '✓'; margin-right: 9px; color: var(--accent); font-weight: 800; }
.services { background: var(--paper); }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service-card { display: flex; flex-direction: column; min-height: 225px; padding: 24px; border: 1px solid var(--line); border-radius: 10px; background: #fff; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.service-card:hover { transform: translateY(-4px); border-color: #f6b47e; box-shadow: 0 12px 28px rgba(20,29,29,.07); }
.service-card .icon { color: var(--accent); font-size: 27px; font-weight: 800; line-height: 1; }
.service-card h3 { margin: 16px 0 8px; font-size: 20px; font-weight: 800; line-height: 1.35; letter-spacing: -.025em; }
.service-card p { margin: 0 0 18px; color: var(--muted); font-size: 15px; line-height: 1.65; }
.service-card a { margin-top: auto; color: #a64c0a; font-size: 12px; font-weight: 800; letter-spacing: .07em; }
.service-card a:hover { color: var(--dark); }
.home-projects { background: #fff; }
.home-projects-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.home-projects-head .section-head { margin-bottom: 22px; }
.project-controls { display: flex; align-items: center; gap: 10px; margin-bottom: 24px; }
.project-counter { margin-right: 8px; color: var(--muted); font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.project-counter strong { color: #a64c0a; font-size: 20px; }
.project-arrow { display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid #cbd2cf; border-radius: 50%; background: #fff; color: var(--dark); font-size: 23px; line-height: 1; cursor: pointer; transition: color .2s ease, background .2s ease, border-color .2s ease; }
.project-arrow:hover:not(:disabled) { border-color: var(--accent); background: var(--accent); color: #fff; }
.project-arrow:disabled { opacity: .35; cursor: default; }
.project-viewport { overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: x mandatory; scrollbar-width: none; }
.project-viewport::-webkit-scrollbar { display: none; }
.project-track { display: grid; grid-auto-columns: calc((100% - 40px) / 3); grid-auto-flow: column; gap: 20px; }
.project-card { overflow: hidden; margin: 0; border: 1px solid var(--line); border-radius: 11px; background: var(--paper); scroll-snap-align: start; }
.project-card img { width: 100%; height: 220px; object-fit: cover; }
.project-card figcaption { display: grid; gap: 4px; padding: 14px 18px 16px; }
.project-card figcaption span { color: #a64c0a; font-size: 11px; font-weight: 800; letter-spacing: .12em; }
.project-card figcaption strong { font-size: 17px; line-height: 1.35; }
.project-all { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; color: #a64c0a; font-size: 14px; font-weight: 800; }
.project-all:hover { color: var(--dark); }
.process { background: var(--dark); color: #fff; }
.process .section-head h2 { color: #fff; }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step { padding-top: 14px; border-top: 2px solid #566163; }
.step span { color: var(--accent); font-size: 30px; font-weight: 800; }
.step h3 { margin: 10px 0 6px; font-size: 19px; font-weight: 800; line-height: 1.35; }
.step p { margin: 0; color: #c0c9c7; font-size: 15px; }
.cta { padding: 36px 0; background: var(--accent); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 36px; }
.cta small { color: #432106; }
.cta h2 { max-width: 740px; margin: 7px 0 0; font-size: clamp(26px, 2.9vw, 36px); font-weight: 800; line-height: 1.27; letter-spacing: -.035em; }
.cta a { flex: none; padding: 15px 23px; border-radius: 7px; background: var(--dark); color: #fff; font-size: 15px; font-weight: 800; }
.cta a:hover { background: var(--dark-2); }

/* Interior pages */
.page-hero { display: grid; place-items: center; min-height: 210px; padding: 36px 24px; background: linear-gradient(rgba(19,25,26,.84),rgba(19,25,26,.84)), url('assets/images/slider-monitoring.png') center/cover; color: #fff; text-align: center; }
.page-hero h1 { margin-bottom: 0; color: #fff; }
.content-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 38px; }
.content-grid h2 { margin: 0 0 18px; font-size: 30px; font-weight: 800; line-height: 1.25; letter-spacing: -.03em; }
.content-grid p { color: var(--muted); }
.side-box { padding: 25px; border-radius: 10px; background: var(--paper); }
.side-box h3 { margin-top: 0; font-size: 20px; font-weight: 800; }
.side-box a { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); font-weight: 700; }
.side-box a:hover { color: #aa510f; }
.reference-grid, .gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ref-card { padding: 22px; border: 1px solid var(--line); border-radius: 10px; }
.ref-card h3 { margin-top: 0; font-size: 20px; font-weight: 800; line-height: 1.35; }
.ref-card p { color: var(--muted); }
.reference-projects { background: var(--paper); }
.reference-photo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.reference-photo { position: relative; overflow: hidden; margin: 0; aspect-ratio: 4 / 3; border-radius: 12px; background: var(--dark); }
.reference-photo::after { content: ''; position: absolute; inset: 40% 0 0; background: linear-gradient(transparent, rgba(12,19,20,.88)); pointer-events: none; }
.reference-photo img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.reference-photo:hover img { transform: scale(1.04); }
.reference-photo figcaption { position: absolute; right: 0; bottom: 0; left: 0; z-index: 1; display: grid; gap: 4px; padding: 16px 18px; color: #fff; }
.reference-photo figcaption span { color: #ffad64; font-size: 11px; font-weight: 800; letter-spacing: .12em; }
.reference-photo figcaption strong { font-size: 18px; line-height: 1.35; }
.gallery-grid figure { overflow: hidden; margin: 0; border-radius: 10px; background: var(--dark); }
.gallery-grid img { width: 100%; height: 215px; object-fit: cover; }
.gallery-grid figcaption { padding: 12px 16px; color: #fff; font-size: 14px; font-weight: 700; }
.gallery-grid--projects .gallery-card--wide { grid-column: span 2; }
.gallery-grid--projects .gallery-card--wide img { height: 320px; }
.gallery-grid--projects .gallery-card--portrait img { object-position: center 38%; }
.gallery-visuals { background: var(--paper); }
.gallery-grid--visuals img { height: 220px; }
.program-list { border-top: 1px solid var(--line); }
.program-row { display: grid; grid-template-columns: 50px 1fr auto; gap: 20px; padding: 18px 12px; border-bottom: 1px solid var(--line); }
.program-row span { color: var(--accent); font-weight: 800; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
.contact-card { padding: 30px; border-radius: 12px; background: var(--dark); color: #fff; }
.contact-line { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.17); }
.contact-line:first-child { padding-top: 0; }
.contact-line small { display: block; color: #ff9d4b; font-size: 11px; font-weight: 800; letter-spacing: .1em; }
.contact-line a { font-size: 18px; }
.contact-line a:hover { color: #ff9d4b; }
.notice { margin-top: 20px; color: #b4c0bd; font-size: 12px; }

/* Footer and accessibility */
.site-footer { padding: 48px 0 20px; background: var(--dark-2); color: #b8c2bf; }
.footer-grid { display: grid; grid-template-columns: 1.4fr .8fr 1.1fr; gap: 38px; }
.footer-brand { margin-bottom: 18px; }
.footer-brand img { width: 238px; }
.footer-grid p { max-width: 350px; margin: 0; font-size: 14px; }
.footer-grid h3 { margin: 5px 0 18px; color: #fff; font-size: 16px; font-weight: 800; }
.footer-grid a:not(.brand) { display: block; width: fit-content; padding: 4px 0; font-size: 14px; }
.footer-grid a:not(.brand):hover { color: #ff9d4b; }
.footer-grid span { display: block; font-size: 14px; }
.copyright { margin-top: 30px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.15); color: #9ba9a5; font-size: 12px; }
.skip-link { position: absolute; top: -60px; left: 8px; z-index: 100; padding: 8px; background: var(--accent); color: var(--dark); font-weight: 800; }
.skip-link:focus { top: 5px; }
:where(a, button):focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }

@media (max-width: 1050px) {
  .topbar-inner > span { display: none; }
  .site-header { height: 84px; }
  .brand img { width: 180px; }
  .site-nav { gap: 15px; }
  .site-nav a { font-size: 11px; }
  .footer-brand img { width: 230px; }
}

@media (max-width: 850px) {
  .container { width: min(calc(100% - 40px), var(--max)); }
  .topbar-items span:nth-child(n+2) { display: none; }
  .site-header { height: 78px; }
  .brand img { width: 185px; }
  .site-nav { position: absolute; top: 78px; right: 0; left: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 16px 24px 22px; background: var(--dark-2); box-shadow: 0 20px 30px rgba(0,0,0,.22); }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,.1); font-size: 13px; }
  .site-nav a::after { display: none; }
  .site-nav a.active { color: #ff9d4b; }
  .menu-toggle { display: block; }
  .hero { height: 540px; }
  .slide { background-position: 65% center; }
  .slide::after { background: linear-gradient(90deg, rgba(14,20,22,.95), rgba(14,20,22,.58)); }
  .slide h1 { max-width: 650px; font-size: clamp(40px, 6vw, 56px); }
  .quick-grid, .service-grid, .process-grid, .reference-grid, .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .reference-photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-track { grid-auto-columns: calc((100% - 20px) / 2); }
  .quick-grid a:nth-child(2) { border-right: 0; }
  .quick-grid a:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .about-grid, .content-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-photo { height: 380px; }
  .footer-grid { grid-template-columns: 1.2fr 1fr; gap: 32px; }
  .footer-grid > div:last-child { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .container { width: min(calc(100% - 32px), var(--max)); }
  .topbar-inner { justify-content: center; }
  .site-header { height: 72px; }
  .brand img { width: 172px; }
  .site-nav { top: 72px; }
  .hero { height: 520px; }
  .slide { background-position: 68% center; }
  .slide::after { background: rgba(14,20,22,.8); }
  .slide-content { padding-bottom: 38px; }
  .slide h1 { max-width: 100%; margin: 14px 0 18px; font-size: clamp(34px, 8.5vw, 44px); line-height: 1.14; overflow-wrap: anywhere; }
  .slide p { max-width: 100%; margin-bottom: 24px; font-size: 15px; }
  .slider-dots { bottom: 23px; }
  .hero-controls { right: 16px; bottom: 18px; gap: 7px; }
  .hero-arrow { width: 40px; height: 40px; font-size: 21px; }
  .quick-services { margin-top: 0; }
  .quick-grid { grid-template-columns: 1fr 1fr; border-radius: 0 0 10px 10px; box-shadow: none; }
  .quick-grid a { min-height: 70px; padding: 12px; }
  .quick-grid a:nth-child(2) { border-right: 0; }
  .quick-grid span { font-size: 19px; }
  .quick-grid strong { font-size: 12px; }
  .section { padding: 46px 0; }
  .section-head { margin-bottom: 24px; }
  .section-head h2, .page-hero h1 { font-size: 32px; }
  .section-head p { font-size: 15px; }
  .home-projects-head { display: block; }
  .home-projects-head .section-head { margin-bottom: 10px; }
  .project-controls { justify-content: flex-end; margin-bottom: 12px; }
  .project-arrow { width: 39px; height: 39px; font-size: 20px; }
  .project-track { grid-auto-columns: min(86%, 330px); gap: 14px; }
  .project-card img { height: 205px; }
  .about-grid { gap: 26px; }
  .about-photo { height: 270px; }
  .about-photo::after { right: 0; bottom: 16px; font-size: 25px; }
  .about-copy h3 { font-size: 30px; }
  .check-list { grid-template-columns: 1fr; }
  .service-grid, .process-grid, .reference-grid, .gallery-grid { grid-template-columns: 1fr; }
  .reference-photo-grid { grid-template-columns: 1fr; }
  .gallery-grid--projects .gallery-card--wide { grid-column: auto; }
  .gallery-grid--projects .gallery-card--wide img { height: 235px; }
  .service-card { min-height: 0; }
  .process-grid { gap: 24px; }
  .cta-inner { display: block; }
  .cta a { display: inline-block; margin-top: 16px; }
  .page-hero { min-height: 170px; }
  .contact-card { padding: 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-grid > div:last-child { grid-column: auto; }
  .footer-brand img { width: 218px; }
  .program-row { grid-template-columns: 35px 1fr; }
  .program-row small { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .slide, .service-card, .btn-circle, .site-nav a, .site-nav a::after, .project-arrow, .hero-arrow, .reference-photo img { transition: none; }
}
