:root {
  --navy: #082f49;
  --navy-deep: #041f31;
  --blue: #0d6fb8;
  --blue-bright: #1686d9;
  --sky: #eaf5fb;
  --paper: #f7f8f5;
  --white: #ffffff;
  --ink: #102a3a;
  --muted: #5c6f7a;
  --line: #d9e2e6;
  --lime: #b6d85c;
  --shadow: 0 24px 70px rgba(8, 47, 73, 0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
.wrap { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.skip { position: fixed; left: 16px; top: -80px; z-index: 100; padding: 10px 16px; background: var(--white); color: var(--navy); font-weight: 800; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 4px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(8, 47, 73, 0.09);
  background: rgba(247, 248, 245, 0.92);
  backdrop-filter: blur(14px);
}
.header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); }
.brand img { width: 48px; height: 48px; flex-shrink: 0; object-fit: contain; }
.brand span { display: grid; line-height: 1.05; }
.brand strong { font-size: 1.05rem; letter-spacing: 0.02em; }
.brand small { margin-top: 4px; color: var(--muted); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; }
nav { display: flex; align-items: center; gap: 28px; }
nav a { position: relative; color: var(--ink); font-size: 0.9rem; font-weight: 750; text-decoration: none; }
nav a:not(.nav-cta)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -5px; height: 2px; background: var(--blue); transition: right 180ms ease; }
nav a:not(.nav-cta):hover::after { right: 0; }
.nav-cta { padding: 10px 18px; border-radius: 4px; background: var(--navy); color: var(--white); }

.hero { position: relative; overflow: hidden; padding: 78px 0 88px; background: var(--navy); }
.hero::before { content: ""; position: absolute; width: 680px; height: 680px; right: -210px; top: -350px; border-radius: 50%; background: rgba(22, 134, 217, 0.18); }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(440px, 1.08fr); align-items: center; gap: clamp(52px, 7vw, 92px); }
.hero-logo { width: 112px; height: 112px; margin-bottom: 30px; object-fit: contain; filter: drop-shadow(0 16px 18px rgba(0, 0, 0, 0.22)); }
.hero .eyebrow { color: #8ed0f7; }
.hero h1 { color: var(--white); }
.eyebrow { margin: 0 0 20px; color: var(--blue); font-size: 0.75rem; font-weight: 850; letter-spacing: 0.15em; text-transform: uppercase; }
h1, h2, h3, p { text-wrap: pretty; }
h1, h2, h3 { font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-weight: 800; color: var(--navy-deep); }
h1 { max-width: 650px; margin: 0; font-size: clamp(3rem, 5.4vw, 5rem); line-height: 0.98; letter-spacing: -0.05em; }
.hero-lead { max-width: 610px; margin: 28px 0 0; color: #c8dbe6; font-size: clamp(1.05rem, 1.7vw, 1.25rem); line-height: 1.7; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; margin-top: 34px; }
.button { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; padding: 13px 22px; border: 1px solid transparent; border-radius: 3px; font-weight: 800; text-decoration: none; transition: transform 180ms ease, background 180ms ease, color 180ms ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--blue-bright); color: var(--white); }
.button-primary:hover { background: #2b98dc; }
.text-link { display: inline-flex; align-items: center; gap: 10px; color: var(--navy); font-weight: 800; text-decoration: none; }
.text-link span { color: var(--blue); font-size: 1.3em; transition: transform 180ms ease; }
.text-link:hover span { transform: translateX(4px); }
.hero .text-link { color: var(--white); }
.hero .text-link span { color: #8ed0f7; }
.hero-services { display: flex; flex-wrap: wrap; gap: 12px 28px; margin: 44px 0 0; padding: 23px 0 0; border-top: 1px solid rgba(255, 255, 255, 0.2); list-style: none; color: var(--white); font-size: 0.86rem; font-weight: 750; }
.hero-services li { position: relative; padding-left: 13px; }
.hero-services li::before { content: ""; position: absolute; left: 0; top: 0.73em; width: 4px; height: 4px; border-radius: 50%; background: var(--blue-bright); }
.hero-photo { overflow: hidden; border: 8px solid var(--white); border-radius: 8px; background: var(--sky); box-shadow: 0 28px 80px rgba(0, 0, 0, 0.3); }
.hero-photo img { width: 100%; height: auto; }

.confidence { border-bottom: 1px solid var(--line); background: var(--white); color: var(--navy); }
.confidence-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.confidence p { margin: 0; padding: 28px 32px; border-left: 1px solid var(--line); }
.confidence p:last-child { border-right: 1px solid var(--line); }
.confidence strong, .confidence span { display: block; }
.confidence strong { font-size: 1.02rem; }
.confidence span { margin-top: 2px; color: var(--muted); font-size: 0.8rem; }

.section { padding: clamp(88px, 10vw, 140px) 0; }
.section-heading { display: grid; grid-template-columns: 1fr 0.65fr; align-items: end; gap: 64px; margin-bottom: 70px; }
.section-heading .eyebrow { margin-bottom: 14px; }
h2 { margin: 0; font-size: clamp(2.5rem, 5vw, 4.6rem); line-height: 1.05; letter-spacing: -0.035em; }
.section-heading > p { margin: 0 0 5px; color: var(--muted); font-size: 1.05rem; }

.work { background: var(--white); }
.case-study { display: grid; grid-template-columns: 0.58fr 1.42fr; gap: clamp(36px, 7vw, 92px); align-items: center; padding: 64px 0; border-top: 1px solid var(--line); }
.case-study.reverse { grid-template-columns: 1.42fr 0.58fr; }
.case-study.reverse .case-copy { order: 2; }
.case-study.reverse .comparison { order: 1; }
.case-number { margin: 0 0 16px; color: var(--blue); font-size: 0.72rem; font-weight: 850; letter-spacing: 0.13em; text-transform: uppercase; }
.case-copy h3 { margin: 0; font-size: clamp(2rem, 3.2vw, 3.3rem); line-height: 1.05; letter-spacing: -0.03em; }
.case-copy > p:last-child { margin: 22px 0 0; color: var(--muted); }
.comparison { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.comparison figure, .work-grid figure, .work-stack figure { position: relative; margin: 0; }
.image-frame { overflow: hidden; background: #d9e5e9; }
.image-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1); }
figure:hover .image-frame img { transform: scale(1.025); }
.image-frame.portrait { aspect-ratio: 0.76; }
.image-frame.portrait img { object-position: 50% 70%; }
.image-frame.portrait.gutter img { object-position: left 46%; transform: scale(1.12); transform-origin: left center; }
.comparison figcaption { position: absolute; left: 12px; top: 12px; padding: 7px 11px; background: rgba(4, 31, 49, 0.9); color: var(--white); font-size: 0.66rem; font-weight: 850; letter-spacing: 0.13em; text-transform: uppercase; }
.work-grid { display: grid; grid-template-columns: 1.18fr 0.82fr; gap: 18px; margin-top: 56px; }
.roof-pair { display: grid; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 18px; }
.image-frame.roof { height: 310px; }
.image-frame.roof-before img { object-position: center top; }
.image-frame.roof-after img { object-position: center bottom; }
.work-stack { display: grid; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 18px; }
.work-stack figure { display: grid; grid-template-columns: 1fr; }
.image-frame.detail { height: 310px; }
.image-frame.detail img { object-position: center; }
.work-grid figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 16px 2px 0; color: var(--navy); }
.work-grid figcaption span { font-size: 1.05rem; font-weight: 800; }
.work-grid figcaption small { color: var(--muted); }

.services { background: var(--navy); color: var(--white); }
.services-layout { display: grid; grid-template-columns: 0.82fr 1.18fr; align-items: start; gap: clamp(60px, 10vw, 130px); }
.services .eyebrow { color: #68b9ed; }
.services h2 { color: var(--white); }
.services-intro { position: sticky; top: 128px; }
.services-intro > p:not(.eyebrow) { max-width: 470px; margin: 28px 0; color: #b9cedb; font-size: 1.05rem; }
.services .text-link { color: var(--white); }
.services .text-link span { color: #68b9ed; }
.service-list { margin: 0; padding: 0; border-top: 1px solid rgba(255, 255, 255, 0.18); list-style: none; counter-reset: service; }
.service-list li { display: grid; grid-template-columns: 48px minmax(170px, 1fr) minmax(180px, 0.9fr); align-items: baseline; gap: 18px; padding: 25px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.18); }
.service-list span { color: #68b9ed; font-size: 0.67rem; font-weight: 850; letter-spacing: 0.12em; }
.service-list strong { font-size: 1.12rem; }
.service-list small { color: #a9c0ce; font-size: 0.83rem; }

.about { background: var(--sky); }
.about-grid { display: grid; grid-template-columns: minmax(360px, 0.9fr) minmax(0, 1.1fr); align-items: center; gap: clamp(60px, 10vw, 128px); }
.about-image { position: relative; padding: 28px 0 0 28px; }
.about-image::before { content: ""; position: absolute; inset: 0 28px 28px 0; border: 2px solid var(--blue); }
.about-image img { position: relative; width: 100%; height: 650px; object-fit: cover; object-position: center 52%; box-shadow: var(--shadow); }
.about-copy > p:not(.eyebrow) { max-width: 600px; margin: 26px 0 34px; color: var(--muted); font-size: 1.05rem; }
.process { margin: 0; padding: 0; list-style: none; }
.process li { display: grid; grid-template-columns: 42px 1fr; gap: 18px; padding: 22px 0; border-top: 1px solid #bfd3dd; }
.process li:last-child { border-bottom: 1px solid #bfd3dd; }
.process li > span { display: flex; width: 32px; height: 32px; align-items: center; justify-content: center; border: 1px solid var(--blue); border-radius: 50%; color: var(--blue); font-size: 0.76rem; font-weight: 850; }
.process strong { display: block; color: var(--navy); font-size: 1.05rem; }
.process p { margin: 3px 0 0; color: var(--muted); font-size: 0.9rem; }

.contact { background: var(--blue); color: var(--white); }
.contact-inner { display: grid; grid-template-columns: 1.2fr 0.8fr; align-items: center; gap: clamp(48px, 9vw, 120px); }
.contact .eyebrow { color: #d9effd; }
.contact h2 { color: var(--white); }
.contact-inner > div:first-child > p:last-child { max-width: 660px; margin: 24px 0 0; color: #d9effd; font-size: 1.05rem; }
.contact-actions { display: grid; gap: 12px; }
.button-light { background: var(--white); color: var(--navy); }
.button-outline { border-color: rgba(255, 255, 255, 0.72); color: var(--white); }
.button-outline:hover { background: var(--white); color: var(--navy); }
.contact-actions p { margin: 8px 0 0; color: #d9effd; font-size: 0.76rem; line-height: 1.5; }

.site-footer { padding: 30px 0; background: var(--navy-deep); color: #a8becb; }
.footer-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 30px; font-size: 0.75rem; }
.footer-inner > p:last-child { justify-self: end; }
.footer-brand { color: var(--white); }
.footer-brand img { width: 42px; height: 42px; }
.footer-brand small { color: #93afbe; }

.reveal { opacity: 1; transform: none; }

@media (max-width: 980px) {
  nav { gap: 16px; }
  nav a:not(.nav-cta) { display: none; }
  .hero-grid { grid-template-columns: 1fr 0.9fr; gap: 52px; }
  .section-heading, .services-layout, .about-grid, .contact-inner { grid-template-columns: 1fr; }
  .section-heading { gap: 24px; }
  .services-intro { position: static; }
  .about-image { max-width: 650px; }
  .contact-actions { max-width: 480px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-inner > p:nth-child(2) { display: none; }
}

@media (max-width: 760px) {
  .wrap { width: min(100% - 32px, 1180px); }
  .header-inner { min-height: 70px; }
  .brand small { font-size: 0.63rem; }
  .nav-cta { padding: 9px 13px; font-size: 0.78rem; }
  .hero { padding: 52px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; }
  h1 { font-size: clamp(3.1rem, 15vw, 4.75rem); }
  .confidence-grid { grid-template-columns: 1fr; padding: 12px 0; }
  .confidence p, .confidence p:last-child { padding: 18px 6px; border: 0; border-bottom: 1px solid var(--line); }
  .confidence p:last-child { border-bottom: 0; }
  .section { padding: 84px 0; }
  .case-study, .case-study.reverse { grid-template-columns: 1fr; gap: 32px; padding: 52px 0; }
  .case-study.reverse .case-copy, .case-study.reverse .comparison { order: initial; }
  .comparison { gap: 8px; }
  .comparison figcaption { left: 7px; top: 7px; }
  .work-grid { grid-template-columns: 1fr; }
  .image-frame.roof { height: 280px; }
  .work-stack { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto; }
  .image-frame.detail { height: 240px; }
  .work-grid figcaption { display: grid; gap: 0; }
  .service-list li { grid-template-columns: 34px 1fr; gap: 12px; }
  .service-list small { grid-column: 2; }
  .about-grid { gap: 58px; }
  .about-image { padding: 18px 0 0 18px; }
  .about-image img { height: 540px; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-inner > p:last-child { justify-self: start; margin: 0; }
}

@media (max-width: 480px) {
  .brand img { width: 42px; height: 42px; }
  .brand strong { font-size: 0.92rem; }
  .nav-cta { padding: 8px 10px; }
  .hero-services { gap: 9px 18px; }
  .work-stack { grid-template-columns: 1fr; }
  .image-frame.detail { height: 280px; }
  .about-image img { height: 480px; }
}

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