:root {
  --blue: #0877f9;
  --blue-deep: #0758bb;
  --navy: #061f36;
  --navy-soft: #0a2d49;
  --ink: #07182f;
  --muted: #5e6d7f;
  --line: #dce6f0;
  --cloud: #f4f9ff;
  --white: #ffffff;
  --shadow: 0 16px 45px rgba(6, 31, 54, 0.12);
  --radius: 33px;
  --shell: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.shell { width: min(calc(100% - 48px), var(--shell)); margin-inline: auto; }
.section { padding: 68px 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 1000; top: 12px; left: 12px; padding: 10px 14px; background: white; border-radius: 8px; transform: translateY(-150%); }
.skip-link:focus { transform: none; }

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid rgba(6,31,54,.08);
  backdrop-filter: blur(14px);
}
.header-inner { min-height: 88px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 34px; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 238px; }
.brand-mark { position: relative; color: var(--navy); font-size: 40px; font-weight: 950; font-style: italic; line-height: .85; letter-spacing: -6px; }
.brand-mark::after { content: ""; position: absolute; left: 3px; right: 7px; bottom: -8px; height: 5px; background: linear-gradient(90deg, #7fc7ff, var(--blue-deep)); transform: skewX(-28deg); }
.brush { display: inline-block; margin-left: 7px; color: var(--blue); font-size: 20px; transform: rotate(-58deg); letter-spacing: 0; }
.brand-copy { display: grid; gap: 2px; padding-left: 2px; }
.brand-copy strong { text-transform: uppercase; font-size: 13px; letter-spacing: .02em; }
.brand-copy small { color: #31435a; font-size: 11px; white-space: nowrap; }
.main-nav { display: flex; justify-content: center; align-items: center; gap: clamp(20px, 2.3vw, 38px); font-size: 14px; font-weight: 700; }
.main-nav a { position: relative; padding: 33px 0 30px; }
.main-nav a::after { content: ""; position: absolute; left: 50%; right: 50%; bottom: 23px; height: 3px; background: var(--blue); border-radius: 3px; transition: left .2s ease, right .2s ease; }
.main-nav a:hover::after, .main-nav a.active::after { left: 0; right: 0; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; padding: 0 27px; color: white; background: var(--blue); border: 0; border-radius: 33px; font-weight: 800; cursor: pointer; box-shadow: 0 10px 25px rgba(8,119,249,.18); transition: transform .2s ease, background .2s ease, box-shadow .2s ease; }
.button:hover { transform: translateY(-2px); background: var(--blue-deep); box-shadow: 0 14px 30px rgba(8,119,249,.3); }
.header-cta { min-height: 48px; padding-inline: 24px; font-size: 14px; white-space: nowrap; }
.menu-toggle { display: none; width: 48px; height: 48px; padding: 13px; border: 0; border-radius: 33px; background: var(--cloud); }
.menu-toggle > span:not(.sr-only) { display: block; height: 2px; margin: 4px 0; background: var(--navy); border-radius: 3px; }

.hero { position: relative; isolation: isolate; min-height: 560px; display: flex; align-items: center; color: white; background: var(--navy) url("hero-house.jpg") center 55% / cover no-repeat; overflow: hidden; }
.hero::before { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, rgba(2,21,39,.96) 0%, rgba(3,31,55,.86) 37%, rgba(3,35,60,.32) 68%, rgba(3,35,60,.06) 100%); }
.hero-inner { padding: 62px 0; }
.hero-copy { width: min(720px, 62%); }
.eyebrow { margin: 0 0 9px; color: var(--blue); font-size: 12px; font-weight: 900; letter-spacing: .22em; text-transform: uppercase; }
.eyebrow-light { color: #8dceff; }
.hero h1 { margin: 0; max-width: 720px; font-size: clamp(44px, 5vw, 69px); line-height: 1.04; letter-spacing: -.045em; text-shadow: 0 2px 28px rgba(0,0,0,.22); }
.hero h1 span { color: #58adff; }
.hero-lead { max-width: 680px; margin: 20px 0 28px; font-size: clamp(18px, 2vw, 23px); line-height: 1.45; color: rgba(255,255,255,.92); }
.trust-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; max-width: 760px; padding: 22px 0 26px; border-top: 1px solid rgba(255,255,255,.2); }
.trust-item { display: grid; grid-template-columns: 30px 1fr; align-items: start; gap: 9px; min-width: 0; min-height: 48px; }
.trust-icon { display: block; width: auto; height: auto; color: #5ab1ff; border: 0; border-radius: 0; font-size: 25px; font-weight: 800; line-height: 1; }
.trust-item strong { font-size: 13px; line-height: 1.25; }
.hero-button { min-width: 242px; }
.section-heading { display: grid; grid-template-columns: 1fr .9fr; align-items: end; gap: 70px; margin-bottom: 32px; }
.section-heading h2, .projects h2, .about-copy h2, .contact-panel h2 { margin: 0; font-size: clamp(32px, 3vw, 44px); line-height: 1.1; letter-spacing: -.035em; }
.section-heading > p { margin: 0 0 2px; color: #32455d; font-size: 17px; }
.service-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: stretch; gap: 20px; }
.service-card { display: grid; grid-template-rows: 190px 1fr; min-width: 0; height: 100%; overflow: hidden; background: white; border: 0; border-radius: var(--radius); box-shadow: 0 8px 26px rgba(6,31,54,.09); transition: transform .25s ease, box-shadow .25s ease; }
.service-card:hover { transform: translateY(-7px); box-shadow: var(--shadow); }
.service-card > img { width: 100%; height: 190px; object-fit: cover; }
.service-card:nth-child(2) > img { object-position: center 58%; }
.service-body { display: grid; grid-template-rows: 32px minmax(50px, auto) 1fr; align-content: start; gap: 8px; padding: 22px 20px 24px; }
.service-icon { position: static; display: block; width: auto; height: auto; color: var(--blue); background: transparent; border: 0; border-radius: 0; box-shadow: none; font-size: 28px; font-weight: 800; line-height: 1; }
.service-card h3 { min-height: 0; margin: 0; font-size: 20px; line-height: 1.25; letter-spacing: -.02em; }
.service-card p { margin: 0; color: var(--muted); font-size: 14px; }

.projects { position: relative; isolation: isolate; overflow: hidden; padding: 56px 0; color: white; background: var(--navy); }
.projects::before { content: ""; position: absolute; z-index: -1; inset: 0; opacity: .16; background: url("hero.jpg") center 62% / cover no-repeat; filter: saturate(.4); }
.projects::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, rgba(4,28,49,.96), rgba(4,28,49,.7)); }
.projects-layout { display: grid; grid-template-columns: 315px 1fr auto; gap: 34px; align-items: center; }
.projects-copy p:not(.eyebrow) { margin: 14px 0 22px; color: rgba(255,255,255,.78); }
.projects-copy .button { min-height: 45px; padding-inline: 20px; font-size: 13px; }
.project-gallery { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(215px, 1fr); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.project-gallery::-webkit-scrollbar { display: none; }
.project-card { position: relative; min-width: 0; height: 250px; margin: 0; overflow: hidden; border: 0; border-radius: 33px; scroll-snap-align: start; }
.project-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.project-card:hover img { transform: scale(1.035); }
.project-card figcaption { position: absolute; left: 14px; bottom: 12px; padding: 8px 14px; border-radius: 33px; background: rgba(2,21,39,.88); font-size: 12px; font-weight: 800; }
.gallery-controls { display: flex; gap: 9px; }
.gallery-controls button { display: grid; place-items: center; width: 39px; height: 39px; padding: 0; color: white; border: 0; border-radius: 0; background: transparent; cursor: pointer; font-size: 22px; transition: color .2s, transform .2s; }
.gallery-controls button:hover { color: #69baff; transform: translateX(2px); }

.about-contact { padding-bottom: 68px; }
.about-contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; }
.about-card { display: grid; grid-template-columns: 210px 1fr; gap: 24px; min-height: 430px; padding: 24px; background: #f6f9fc; border-radius: 33px; }
.about-image { width: 100%; height: 100%; min-height: 382px; object-fit: cover; object-position: 45% center; border-radius: 24px; }
.about-copy { padding: 6px 0; }
.about-copy h2, .contact-panel h2 { font-size: 26px; }
.about-copy > p:not(.eyebrow), .contact-panel > p:not(.eyebrow) { color: var(--muted); font-size: 14px; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 30px; }
.values div { display: grid; gap: 8px; }
.values span { display: block; width: auto; height: auto; color: var(--blue); border: 0; border-radius: 0; font-size: 25px; font-weight: 900; line-height: 1; }
.values strong { font-size: 12px; line-height: 1.35; }
.contact-panel { min-height: 430px; padding: 30px; background: linear-gradient(145deg, #eaf5ff, #f8fbff 68%); border: 0; border-radius: 33px; box-shadow: none; }
.contact-panel form { display: grid; gap: 10px; margin-top: 17px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.contact-panel label { display: grid; gap: 6px; }
.contact-panel label span { font-size: 12px; font-weight: 800; }
.contact-panel input, .contact-panel textarea { width: 100%; padding: 12px 13px; color: var(--ink); background: white; border: 0; border-radius: 14px; outline: none; transition: box-shadow .2s; }
.contact-panel input:focus, .contact-panel textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(8,119,249,.12); }
.contact-panel textarea { resize: vertical; min-height: 92px; }
.submit-button { width: 100%; min-height: 46px; border-radius: 33px; }
.form-note { min-height: 1.3em; margin: 0; color: var(--blue-deep); font-size: 12px; font-weight: 700; }
.contact-details { display: flex; flex-wrap: wrap; gap: 12px 22px; margin-top: 12px; font-size: 11px; font-weight: 750; }
.contact-details a:hover { color: var(--blue); }

.site-footer { color: white; background: linear-gradient(110deg, #04192d, #062d4e); }
.footer-inner { min-height: 128px; display: grid; grid-template-columns: 1.15fr 1fr .9fr; align-items: center; gap: 34px; }
.brand-footer .brand-mark { color: white; }
.brand-footer .brand-copy small { color: #bbcad7; }
.site-footer nav { display: flex; justify-content: center; gap: 22px; font-size: 12px; }
.site-footer nav a:hover { color: #69baff; }
.footer-legal { display: grid; justify-items: end; gap: 3px; text-align: right; font-size: 11px; color: #c7d4df; }
.footer-legal strong { color: white; }
.footer-legal small { margin-top: 8px; color: #839bad; }
.mobile-call { display: none; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 1050px) {
  .header-inner { grid-template-columns: auto 1fr auto; gap: 18px; }
  .brand { min-width: 210px; }
  .brand-copy { display: none; }
  .main-nav { gap: 18px; font-size: 13px; }
  .header-cta { padding-inline: 17px; }
  .hero-copy { width: 72%; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); max-width: 520px; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .service-card { grid-template-rows: 225px 1fr; }
  .service-card > img { height: 225px; }
  .projects-layout { grid-template-columns: 270px 1fr; }
  .gallery-controls { grid-column: 2; justify-content: flex-end; }
  .about-contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  html { scroll-padding-top: 76px; }
  body { padding-bottom: 74px; }
  .shell { width: min(calc(100% - 32px), var(--shell)); }
  .section { padding: 62px 0; }
  .header-inner { min-height: 76px; grid-template-columns: 1fr auto; }
  .brand { min-width: auto; }
  .brand-mark { font-size: 34px; }
  .menu-toggle { display: block; }
  .header-cta { display: none; }
  .main-nav { position: absolute; top: calc(100% + 1px); left: 16px; right: 16px; display: grid; justify-content: stretch; gap: 0; padding: 10px; background: white; border: 0; border-radius: 33px; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .2s, transform .2s, visibility .2s; }
  .main-nav.open { opacity: 1; visibility: visible; transform: none; }
  .main-nav a { padding: 12px 14px; border-radius: 33px; }
  .main-nav a:hover, .main-nav a.active { color: var(--blue); background: var(--cloud); }
  .main-nav a::after { display: none; }

  .hero { min-height: 680px; align-items: end; background-position: 52% center; }
  .hero::before { background: linear-gradient(180deg, rgba(2,21,39,.2) 0%, rgba(2,21,39,.52) 34%, rgba(2,21,39,.97) 78%, rgba(2,21,39,1) 100%); }
  .hero-inner { padding: 220px 0 54px; }
  .hero-copy { width: 100%; }
  .hero h1 { font-size: clamp(39px, 11vw, 54px); }
  .hero-lead { margin-top: 16px; font-size: 17px; }
  .trust-grid { grid-template-columns: 1fr 1fr; gap: 14px 10px; padding: 18px 0 24px; }
  .trust-item { grid-template-columns: 24px 1fr; gap: 8px; min-height: 42px; }
  .trust-icon { width: auto; height: auto; border-radius: 0; font-size: 20px; }
  .trust-item strong { font-size: 11px; }
  .hero-button { width: 100%; }
  .section-heading { grid-template-columns: 1fr; gap: 16px; }
  .section-heading > p { font-size: 15px; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { display: grid; grid-template-columns: 132px 1fr; grid-template-rows: 1fr; }
  .service-card > img { width: 132px; height: 100%; min-height: 195px; }
  .service-body { grid-template-rows: 26px auto 1fr; padding: 22px 18px 20px; }
  .service-icon { position: static; width: auto; height: auto; margin: 0; border: 0; box-shadow: none; font-size: 23px; }
  .service-card h3 { min-height: 0; font-size: 18px; }
  .service-card p { font-size: 13px; }

  .projects { padding: 58px 0; }
  .projects-layout { grid-template-columns: 1fr; gap: 26px; }
  .project-gallery { width: calc(100vw - 32px); grid-auto-columns: 82%; }
  .project-card { height: 270px; }
  .gallery-controls { grid-column: auto; justify-content: flex-start; }

  .about-contact { padding-bottom: 70px; }
  .about-card { grid-template-columns: 1fr; min-height: 0; padding: 20px; border-radius: 33px; }
  .about-image { height: 330px; min-height: 0; }
  .values { gap: 8px; }
  .values strong { font-size: 11px; }
  .contact-panel { min-height: 0; padding: 24px 20px; border-radius: 33px; }
  .form-row { grid-template-columns: 1fr; }
  .contact-details { display: grid; }

  .footer-inner { padding: 45px 0; grid-template-columns: 1fr; justify-items: start; }
  .site-footer nav { justify-content: flex-start; flex-wrap: wrap; }
  .footer-legal { justify-items: start; text-align: left; }
  .mobile-call { position: fixed; z-index: 90; left: 14px; right: 14px; bottom: 12px; display: flex; align-items: center; justify-content: center; min-height: 52px; color: white; background: var(--blue); border: 0; border-radius: 33px; box-shadow: 0 12px 30px rgba(4,31,56,.3); font-weight: 850; }
}

@media (max-width: 440px) {
  .service-card { grid-template-columns: 112px 1fr; }
  .service-card > img { width: 112px; }
  .service-body { padding-inline: 15px; }
  .service-card p { font-size: 12px; }
  .values { grid-template-columns: 1fr; }
  .values div { grid-template-columns: 42px 1fr; align-items: center; }
  .values strong br { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
