:root {
  --ink: #0a1622;
  --navy: #0b1f33;
  --blue: #176ea5;
  --orange: #f28a2c;
  --paper: #f5f2eb;
  --muted: #59636d;
  --line: #d2ccc0;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Inter", Arial, sans-serif;
  --shadow: 0 24px 60px rgba(9, 23, 35, .16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 86px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.6; }
body.menu-open { overflow: hidden; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; }
.sr-only, .skip-link { 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:focus { width: auto; height: auto; clip: auto; margin: 0; top: 1rem; left: 1rem; z-index: 100; padding: .8rem 1rem; background: white; color: var(--ink); font-weight: 800; }

.site-header { min-height: 86px; padding: .8rem clamp(1.1rem, 4vw, 4rem); display: flex; align-items: center; justify-content: space-between; gap: 2rem; background: rgba(245, 242, 235, .96); border-bottom: 1px solid rgba(10, 22, 34, .08); position: sticky; top: 0; z-index: 20; backdrop-filter: blur(12px); }
.brand { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; line-height: 1; flex: 0 0 auto; }
.brand-mark { display: grid; place-items: center; width: 44px; height: 44px; background: var(--orange); color: var(--ink); font: 800 1.15rem var(--display); clip-path: polygon(8% 0,100% 0,100% 78%,82% 100%,0 100%,0 18%); }
.brand-copy strong { display: block; font: 800 1.35rem var(--display); letter-spacing: .04em; }
.brand-copy small { display: block; margin-top: .25rem; font-size: .64rem; letter-spacing: .19em; }
.site-nav { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2rem); }
.site-nav a { text-decoration: none; font-size: .88rem; font-weight: 700; }
.site-nav a:not(.nav-call):hover, .site-nav a:not(.nav-call):focus-visible { color: var(--blue); }
.nav-call { padding: .78rem 1rem; background: var(--ink); color: white; }
.nav-call:hover, .nav-call:focus-visible { background: var(--blue); }
.menu-button { display: none; width: 44px; height: 44px; padding: 11px 9px; border: 0; background: var(--ink); cursor: pointer; }
.menu-button span:not(.sr-only) { display: block; height: 2px; margin: 5px 0; background: white; transition: transform .2s ease, opacity .2s ease; }
.menu-button[aria-expanded="true"] span:nth-child(2) { transform: translateY(7px) rotate(45deg); }
.menu-button[aria-expanded="true"] span:nth-child(3) { opacity: 0; }
.menu-button[aria-expanded="true"] span:nth-child(4) { transform: translateY(-7px) rotate(-45deg); }

.hero { min-height: calc(100svh - 86px); position: relative; color: white; display: grid; align-items: center; overflow: hidden; background: var(--navy); }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5, 17, 29, .98) 0%, rgba(5, 17, 29, .83) 45%, rgba(5, 17, 29, .18) 80%), linear-gradient(0deg, rgba(5, 17, 29, .72), transparent 38%); }
.hero-content { position: relative; z-index: 1; width: min(760px, 88%); margin-left: clamp(1.25rem, 8vw, 8rem); padding: 5rem 0 10rem; }
.eyebrow { margin: 0 0 1rem; color: #8ed4f6; font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .2em; }
.eyebrow.dark { color: var(--blue); }
h1, h2, h3 { margin-top: 0; font-family: var(--display); line-height: .96; }
h1 { max-width: 800px; margin-bottom: 1.5rem; font-size: clamp(4rem, 8vw, 7.5rem); letter-spacing: -.02em; text-transform: uppercase; text-wrap: balance; }
h2 { margin-bottom: 0; font-size: clamp(3rem, 5.4vw, 5.25rem); text-transform: uppercase; letter-spacing: -.01em; text-wrap: balance; }
.lead { max-width: 640px; color: #e6edf2; font-size: clamp(1rem, 1.5vw, 1.2rem); line-height: 1.75; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 50px; padding: .9rem 1.25rem; border: 1px solid transparent; text-decoration: none; text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; font-weight: 800; cursor: pointer; }
.button-primary { background: var(--orange); color: var(--ink); }
.button-primary:hover, .button-primary:focus-visible { background: #ffa04f; }
.button-secondary { border-color: rgba(255,255,255,.55); color: white; background: rgba(0,0,0,.12); }
.button-secondary:hover, .button-secondary:focus-visible { background: white; color: var(--ink); }
.trust-strip { position: absolute; z-index: 2; right: 0; bottom: 0; width: min(860px, 76%); display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; padding: 1.35rem 2rem; background: var(--paper); color: var(--ink); }
.trust-strip span { font-size: .76rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.trust-strip b { color: var(--orange); margin-right: .35rem; }

.section-shell { width: min(1440px, 100%); margin: 0 auto; padding: clamp(4.5rem, 8vw, 8rem) clamp(1.25rem, 7vw, 7rem); }
.work-section { background: var(--paper); }
.section-heading, .projects-intro { display: grid; grid-template-columns: 1.3fr .7fr; align-items: end; gap: clamp(2rem, 7vw, 7rem); }
.section-heading > p, .projects-intro > p { margin: 0 0 .45rem; color: var(--muted); font-size: 1.02rem; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 3.5rem; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.service-grid article { min-height: 250px; padding: 1.75rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.28); }
.service-grid article:hover { background: white; }
.service-grid article > img { display: block; width: 100%; height: 170px; margin-bottom: 1.35rem; object-fit: cover; background: #d8d4cb; }
.service-grid span { color: var(--orange); font-size: .75rem; font-weight: 800; }
.service-grid h3 { margin: 1rem 0 .8rem; font-size: 2rem; text-transform: uppercase; }
.service-grid p { margin: 0; color: var(--muted); font-size: .9rem; }

.projects { margin-top: clamp(5rem, 9vw, 9rem); padding-top: clamp(4rem, 7vw, 7rem); border-top: 1px solid var(--line); scroll-margin-top: 86px; }
.project-tabs { display: flex; gap: .7rem; margin: 2.75rem 0 2rem; padding-bottom: .85rem; overflow-x: auto; scrollbar-width: thin; }
.project-tab { flex: 0 0 auto; min-width: 220px; padding: .9rem 1rem; border: 1px solid #b8b1a5; background: transparent; color: var(--ink); text-align: left; font-weight: 800; cursor: pointer; }
.project-tab span { display: block; color: var(--muted); font-size: .68rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; }
.project-tab:hover, .project-tab:focus-visible { border-color: var(--blue); }
.project-tab.is-active { border-color: var(--navy); background: var(--navy); color: white; }
.project-tab.is-active span { color: #aac4d5; }
.project-panel[hidden] { display: none; }
.project-copy { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 6vw, 6rem); align-items: end; margin-bottom: 2rem; }
.project-copy span { color: var(--blue); font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; }
.project-copy h3 { max-width: 760px; margin: .45rem 0 0; font-size: clamp(2.2rem, 4vw, 3.65rem); text-transform: uppercase; }
.project-copy > p { margin: 0; color: var(--muted); }

.estimate-section { background: var(--navy); color: white; }
.estimate-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(3rem, 8vw, 8rem); align-items: start; }
.estimate-copy { position: sticky; top: 120px; }
.estimate-copy > p:not(.eyebrow) { max-width: 620px; color: #bed0dd; }
.contact-cards { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; margin: 2rem 0; }
.contact-cards a { padding: 1rem; border: 1px solid #41586a; text-decoration: none; }
.contact-cards a:hover, .contact-cards a:focus-visible { border-color: var(--orange); background: rgba(255,255,255,.05); }
.contact-cards span { display: block; color: #8ed4f6; font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; }
.contact-cards strong { display: block; margin-top: .25rem; font-size: .95rem; }
.estimate-notes { margin: 2rem 0 0; padding: 0; list-style: none; color: #bed0dd; font-size: .9rem; }
.estimate-notes li { padding: .7rem 0; border-top: 1px solid #344c5e; }
.estimate-notes li::before { content: "✓"; margin-right: .65rem; color: var(--orange); font-weight: 800; }
.estimate-form { padding: clamp(1.5rem, 4vw, 3rem); background: var(--paper); color: var(--ink); box-shadow: var(--shadow); }
.form-heading { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.form-heading span { font: 800 1.65rem var(--display); text-transform: uppercase; }
.form-heading p { margin: .3rem 0 0; color: var(--muted); font-size: .72rem; }
.estimate-form label { display: block; margin-bottom: 1rem; font-size: .78rem; font-weight: 800; }
.estimate-form input, .estimate-form select, .estimate-form textarea { width: 100%; margin-top: .4rem; padding: .82rem .85rem; border: 1px solid #bcb5a9; border-radius: 0; background: white; color: var(--ink); font-weight: 500; outline: none; }
.estimate-form textarea { resize: vertical; min-height: 120px; }
.estimate-form input:focus, .estimate-form select:focus, .estimate-form textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(23,110,165,.15); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-submit { width: 100%; margin-top: .2rem; border: 0; }
.form-help { margin: .8rem 0 0; color: var(--muted); font-size: .72rem; line-height: 1.5; }
.form-status { min-height: 1.4em; margin: .5rem 0 0; color: var(--blue); font-size: .76rem; font-weight: 700; }

footer { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 2rem clamp(1.25rem, 4vw, 4rem); background: #06121c; color: #c6d0d7; font-size: .76rem; }
.footer-brand { color: white; }
.mobile-estimate { display: none; }

@media (max-width: 960px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .estimate-layout { grid-template-columns: 1fr; }
  .estimate-copy { position: static; }
}

@media (max-width: 780px) {
  html { scroll-padding-top: 74px; }
  body { padding-bottom: 54px; }
  .site-header { min-height: 74px; padding: .65rem 1rem; }
  .brand-mark { width: 40px; height: 40px; }
  .brand-copy strong { font-size: 1.08rem; }
  .brand-copy small { font-size: .55rem; }
  .menu-button { display: block; }
  .site-nav { position: fixed; inset: 74px 0 auto; display: grid; gap: 0; padding: .5rem 1rem 1.25rem; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 24px 45px rgba(9,23,35,.18); transform: translateY(-130%); visibility: hidden; transition: transform .22s ease, visibility .22s; }
  .site-nav.is-open { transform: translateY(0); visibility: visible; }
  .site-nav a { padding: .95rem .3rem; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .site-nav .nav-call { margin-top: .8rem; padding: .9rem; border: 0; text-align: center; }
  .hero { min-height: calc(100svh - 74px); }
  .hero-shade { background: linear-gradient(90deg, rgba(5,17,29,.96), rgba(5,17,29,.68)), linear-gradient(0deg, rgba(5,17,29,.85), transparent 42%); }
  .hero-content { width: auto; margin: 0; padding: 4rem 1.25rem 12rem; }
  h1 { font-size: clamp(3.8rem, 17vw, 5.5rem); }
  .trust-strip { width: 100%; grid-template-columns: 1fr; gap: .3rem; padding: 1rem 1.25rem; }
  .section-heading, .projects-intro, .project-copy { grid-template-columns: 1fr; align-items: start; gap: 1rem; }
  .section-heading > p, .projects-intro > p { max-width: 620px; }
  .projects { scroll-margin-top: 74px; }
  footer { flex-direction: column; text-align: center; }
  .mobile-estimate { position: fixed; z-index: 18; right: 0; bottom: 0; left: 0; display: block; padding: .9rem 1rem; background: var(--orange); color: var(--ink); text-align: center; text-decoration: none; text-transform: uppercase; letter-spacing: .08em; font-size: .76rem; font-weight: 800; box-shadow: 0 -8px 24px rgba(9,23,35,.16); }
}

@media (max-width: 560px) {
  .section-shell { padding: 4.5rem 1.15rem; }
  h2 { font-size: 3.1rem; }
  .hero-actions { display: grid; }
  .button { width: 100%; }
  .service-grid { grid-template-columns: 1fr; }
  .service-grid article { min-height: 210px; padding: 1.4rem; }
  .service-grid article > img { height: 190px; }
  .project-tabs { margin-right: -1.15rem; }
  .field-row, .contact-cards { grid-template-columns: 1fr; gap: 0; }
  .estimate-form { padding: 1.25rem; }
  .form-heading { display: block; }
}

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