@import url("assets/tokens.css");

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--coal);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
body:has(dialog[open]) { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
[hidden] { display: none !important; }
.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; top: 12px; left: 12px; z-index: 200; transform: translateY(-200%); visibility: hidden; background: var(--paper); padding: 10px 14px; font-weight: 600; }
.skip-link:focus { visibility: visible; }
.skip-link:focus { transform: none; }
.shell { width: min(calc(100% - (var(--gutter) * 2)), var(--max)); margin-inline: auto; }
.section { padding-block: clamp(78px, 7vw, 106px); }
.eyebrow { margin: 0 0 15px; font-family: var(--mono); font-size: 11px; font-weight: 500; line-height: 1.3; letter-spacing: .095em; text-transform: uppercase; }
.eyebrow-light { color: #b8b8ae; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--display); line-height: .92; text-transform: uppercase; }
h1 { margin-bottom: 28px; font-size: clamp(64px, 7.1vw, 102px); font-weight: 800; letter-spacing: -.035em; }
h1 em { color: var(--green-dark); font-style: normal; }
h2 { margin-bottom: 0; font-size: clamp(50px, 5.3vw, 72px); font-weight: 750; letter-spacing: -.028em; }
h3 { font-size: clamp(30px, 3vw, 42px); letter-spacing: -.02em; }
.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 20px;
  border: 1px solid var(--green-dark);
  border-radius: 2px;
  background: var(--green-dark);
  color: white;
  padding: 12px 20px;
  font-family: var(--display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .045em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  transition: background var(--ease), border-color var(--ease), transform var(--ease);
}
.button:hover { background: var(--coal); border-color: var(--coal); transform: translateY(-1px); }
.button-small { min-height: 44px; padding: 10px 17px; font-size: 14px; }
.text-link { display: inline-flex; min-height: 44px; align-items: center; gap: 10px; font-family: var(--display); font-size: 17px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; text-underline-offset: 5px; }
.text-link:hover { color: var(--green-dark); }

/* Header */
.contact-panel h3 { font-size: clamp(38px, 4vw, 54px); margin-bottom: 24px; }
.contact-panel > p:not(.eyebrow) { color: var(--muted); }
.contact-actions { display: grid; justify-items: start; gap: 16px; margin: 28px 0 36px; }
.contact-preparation { padding-top: 24px; border-top: 1px solid var(--rule); }
.contact-preparation ul { padding-left: 20px; color: var(--muted); }
.contact-preparation li { padding-bottom: 10px; }
.contact-note { font-size: 14px; margin: 22px 0 0; }
.site-header { position: relative; z-index: 50; }
.utility-bar { height: 28px; background: var(--coal); color: #d9d8d0; font-family: var(--mono); font-size: 9px; letter-spacing: .11em; text-transform: uppercase; }
.utility-inner { display: grid; height: 100%; grid-template-columns: 1fr auto 1fr; align-items: center; }
.utility-inner > :last-child { text-align: right; }
.parent-site-link { display: inline-flex; min-height: 28px; align-items: center; justify-content: end; gap: 7px; text-decoration: underline; text-underline-offset: 3px; }
.preview-flag { display: inline-flex; align-items: center; gap: 8px; color: #a7a79f; }
.preview-flag i { width: 5px; height: 5px; border-radius: 50%; background: var(--green); }
.primary-nav { height: 96px; border-bottom: 1px solid var(--rule); background: rgba(239, 237, 230, .98); }
.nav-inner { display: flex; height: 100%; align-items: center; justify-content: space-between; }
.wordmark { display: inline-flex; flex-shrink: 0; align-items: center; text-decoration: none; }
.wordmark .residential-logo { width: 184px; height: auto; }
.wordmark-gwo { font-family: var(--display); font-size: 33px; font-weight: 900; line-height: 1; letter-spacing: -.04em; }
.wordmark-rule { width: 1px; height: 28px; background: var(--coal); transform: rotate(14deg); }
.wordmark-division { max-width: 64px; font-family: var(--mono); font-size: 9px; line-height: 1.25; letter-spacing: .06em; }
.nav-menu { display: flex; align-items: center; gap: 34px; }
.nav-menu > a:not(.button) { position: relative; min-height: 44px; display: inline-flex; align-items: center; font-family: var(--display); font-size: 14px; font-weight: 700; letter-spacing: .055em; text-decoration: none; text-transform: uppercase; }
.nav-menu > a:not(.button)::after { content: ""; position: absolute; right: 0; bottom: 7px; left: 0; height: 1px; background: var(--green); transform: scaleX(0); transform-origin: left; transition: transform var(--ease); }
.nav-menu > a:not(.button):hover::after { transform: scaleX(1); }
.nav-phone { margin-left: 14px; }
.menu-toggle { display: none; min-width: 70px; min-height: 44px; border: 0; background: transparent; font-family: var(--display); font-weight: 700; text-transform: uppercase; }

/* Hero */
.hero { position: relative; min-height: clamp(590px, 72vh, 760px); overflow: hidden; color: white; }
.hero-aerial { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 48%; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(16,16,12,.9) 0%, rgba(16,16,12,.68) 41%, rgba(16,16,12,.16) 76%), linear-gradient(0deg, rgba(16,16,12,.5), transparent 45%); }
.hero-inner { position: relative; z-index: 1; display: flex; min-height: inherit; align-items: center; justify-content: space-between; gap: 60px; padding-block: 76px 58px; }
.hero-copy { max-width: 675px; }
.hero h1 { color: white; }
.hero h1 em { color: #8bd6a4; }
.hero .eyebrow { color: #e4e2da; }
.hero-lede { max-width: 570px; margin-bottom: 25px; color: #eeede8; font-size: clamp(17px, 1.3vw, 19px); line-height: 1.55; }
.hero-actions { display: flex; align-items: center; gap: 26px; }
.hero .text-link { color: white; }
.quiet-action { min-height: 44px; margin-top: 13px; border: 0; background: transparent; padding: 0; color: #b8e4c7; font-family: var(--body); font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.hero-photo-note { align-self: flex-end; max-width: 250px; margin: 0; color: #e5e4de; font-family: var(--mono); font-size: 9px; line-height: 1.55; letter-spacing: .055em; text-align: right; text-transform: uppercase; }
.hero-photo-note span { display: block; color: white; }
.comparison { --position: 48%; margin: 0; }
.comparison-stage { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--coal); isolation: isolate; }
.comparison-stage > img, .comparison-before-wrap, .comparison-before { width: 100%; height: 100%; object-fit: cover; }
.comparison-stage > img { position: absolute; inset: 0; }
.comparison-before-wrap { position: absolute; inset: 0; z-index: 2; clip-path: inset(0 calc(100% - var(--position)) 0 0); }
.comparison-before { position: absolute; inset: 0; }
.comparison-divider { position: absolute; top: 0; bottom: 0; left: var(--position); z-index: 4; width: 2px; background: var(--green); pointer-events: none; transform: translateX(-1px); }
.comparison-divider span { position: absolute; top: 50%; left: 50%; display: grid; width: 46px; height: 46px; place-items: center; border: 2px solid var(--cream); border-radius: 50%; background: var(--green-dark); color: white; font-family: var(--mono); font-size: 13px; transform: translate(-50%, -50%); }
.comparison-range { position: absolute; inset: 0; z-index: 5; width: 100%; height: 100%; margin: 0; cursor: ew-resize; opacity: 0; }
.image-label { position: absolute; top: 16px; z-index: 3; border: 1px solid rgba(255,255,255,.42); background: rgba(24,24,19,.78); color: white; padding: 6px 9px; font-family: var(--mono); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }
.label-before { left: 16px; }
.label-after { right: 16px; }
.comparison figcaption { display: flex; min-height: 64px; justify-content: space-between; align-items: center; gap: 20px; background: var(--paper); padding: 12px 16px; font-family: var(--mono); font-size: 10px; line-height: 1.5; letter-spacing: .04em; text-transform: uppercase; }
.comparison figcaption span:first-child { display: grid; }
.comparison figcaption b { font-weight: 500; }
.caption-note { color: var(--muted); }
.proof-strip { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--coal); border-bottom: 1px solid var(--rule); }
.proof-strip > span { display: grid; min-height: 74px; align-content: center; border-right: 1px solid var(--rule); padding: 12px 24px; color: var(--muted); font-family: var(--mono); font-size: 10px; line-height: 1.55; text-transform: uppercase; }
.proof-strip > span:first-child { padding-left: 0; }
.proof-strip > span:last-child { border-right: 0; }
.proof-strip b { color: var(--coal); font-weight: 500; letter-spacing: .05em; }

/* Public-sector experience */
.institutional-proof { position: relative; margin-top: 30px; overflow: hidden; background: var(--coal); color: white; }
.institutional-proof::before { content: ""; position: absolute; inset: 0; opacity: .18; background-image: linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px); background-size: 56px 56px; mask-image: linear-gradient(to right, black, transparent 66%); pointer-events: none; }
.institutional-layout { position: relative; display: grid; grid-template-columns: minmax(290px, .8fr) minmax(0, 1.2fr); gap: clamp(48px, 7vw, 94px); align-items: end; padding-block: clamp(62px, 6vw, 82px); }
.institutional-copy h2 { max-width: 540px; font-size: clamp(48px, 4.7vw, 66px); }
.institutional-copy h2 em { color: #7bd59d; font-style: normal; }
.institutional-copy > p:last-child { max-width: 520px; margin: 27px 0 0; color: #c1c0b8; font-size: 17px; line-height: 1.58; }
.institutional-clients { min-width: 0; grid-column: 1 / -1; }
.client-grid-label { margin: 0 0 12px; color: #b8b8ae; font-family: var(--mono); font-size: 9px; letter-spacing: .09em; text-transform: uppercase; }
.client-grid { display: grid; border-top: 1px solid #44443d; border-bottom: 1px solid #44443d; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.client-card { display: flex; min-width: 0; min-height: 112px; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 18px 10px 14px; color: white; text-align: center; }
.client-card img { width: auto; height: auto; max-width: 138px; max-height: 60px; object-fit: contain; filter: grayscale(1) brightness(0) invert(1); opacity: .72; }
.client-card:nth-child(1) img,
.client-card:nth-child(4) img,
.client-card:nth-child(5) img { filter: grayscale(1) brightness(1.18); opacity: .9; }
.client-card img.client-logo-wide { max-width: 150px; max-height: 58px; }
.client-card img.client-logo-seal { max-width: 62px; max-height: 62px; }
.client-card span { max-width: 180px; color: #aaa9a1; font-family: var(--mono); font-size: 8px; line-height: 1.35; letter-spacing: .035em; text-transform: uppercase; }
.client-disclaimer { max-width: 640px; margin: 13px 0 0; color: #8f8f86; font-family: var(--mono); font-size: 8px; line-height: 1.5; letter-spacing: .035em; text-transform: uppercase; }

/* Shared sections */
.section-heading { margin-bottom: 48px; }
.heading-split { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(260px, .65fr); gap: 64px; align-items: end; }
.heading-split > p { max-width: 420px; margin: 0 0 6px auto; color: var(--muted); font-size: 17px; line-height: 1.58; }
.journey-layout { display: grid; grid-template-columns: minmax(300px, 36fr) minmax(0, 64fr); grid-template-rows: auto 1fr; column-gap: clamp(42px, 5vw, 66px); }
.journey-intro { grid-column: 1; grid-row: 1; align-self: stretch; background: var(--sage); padding: 36px 36px 24px; }
.journey-intro h2 { max-width: 520px; font-size: clamp(54px, 5vw, 64px); }
.journey-intro > p:not(.eyebrow,.callout-line) { max-width: 470px; color: var(--muted); font-size: 17px; line-height: 1.58; }
.journey-diptych { display: grid; grid-column: 1; grid-row: 2; grid-template-columns: 1fr 1fr; gap: 8px; align-content: start; background: var(--sage); padding: 0 36px 36px; }
.journey-diptych figure { position: relative; margin: 0; overflow: hidden; }
.journey-diptych img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.journey-diptych figcaption { position: absolute; bottom: 8px; left: 8px; background: rgba(16,44,34,.9); color: white; padding: 5px 7px; font-family: var(--mono); font-size: 8px; letter-spacing: .07em; text-transform: uppercase; }
.journey-diptych > p { grid-column: 1 / -1; margin: 5px 0 0; color: #59645a; font-family: var(--mono); font-size: 8px; line-height: 1.55; text-transform: uppercase; }
.journey-routes { grid-column: 2; grid-row: 1 / 3; border-top: 1px solid var(--coal); }
.journey-route { position: relative; border-bottom: 1px solid var(--coal); padding: 32px 0 38px; transition: padding var(--ease); }
.journey-route:nth-child(2) { margin-left: 24px; }
.journey-route.is-selected::before { content: ""; position: absolute; top: -1px; left: 0; width: 72px; height: 4px; background: var(--green); }
.route-kicker { display: flex; justify-content: space-between; color: #55544d; font-family: var(--mono); font-size: 10px; letter-spacing: .075em; text-transform: uppercase; }
.route-kicker i { font-style: normal; }
.journey-route h3 { max-width: 650px; margin: 26px 0 18px; font-size: clamp(40px, 3.6vw, 48px); }
.journey-route > p:not(.legal-note) { max-width: 590px; margin-bottom: 0; color: var(--muted); }
.legal-note { margin: 24px 0 0; font-family: var(--mono); font-size: 10px; text-transform: uppercase; }
.route-action { display: inline-flex; min-height: 44px; align-items: center; gap: 15px; margin-top: 20px; border: 0; border-bottom: 1px solid var(--coal); background: transparent; padding: 0; font-family: var(--display); font-size: 17px; font-weight: 700; text-transform: uppercase; cursor: pointer; }
.route-action:hover { color: var(--green-dark); border-color: var(--green-dark); }
.callout-line { margin: 20px 0 0; font-size: 14px; }
.callout-line span { margin-right: 10px; color: var(--green); font-size: 9px; }
.callout-line a { font-weight: 600; text-underline-offset: 4px; }

/* Work gallery */
.work-section { background: var(--paper); }
.project-grid { display: grid; grid-template-columns: 3fr 2fr; grid-template-rows: repeat(2, minmax(250px, 1fr)); gap: 18px; }
.project-feature { grid-row: 1 / 3; }
.project-card, .project-open { min-width: 0; min-height: 0; }
.project-open { display: grid; width: 100%; height: 100%; border: 0; background: transparent; padding: 0; text-align: left; cursor: pointer; grid-template-rows: 1fr auto; }
.project-image { overflow: hidden; background: var(--sand); }
.project-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms ease; }
.project-open:hover .project-image img { transform: scale(1.015); }
.project-meta { display: flex; min-height: 72px; justify-content: space-between; align-items: center; gap: 18px; border-bottom: 1px solid var(--coal); padding: 11px 4px 11px 0; font-family: var(--mono); font-size: 9px; line-height: 1.55; letter-spacing: .04em; text-transform: uppercase; }
.project-meta > span { display: grid; }
.project-meta b { font-weight: 500; }
.project-meta i { font-style: normal; white-space: nowrap; }
.project-field-note { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(28px, 5vw, 70px); margin-top: 36px; padding: 30px 0 0; border-top: 1px solid var(--rule); }
.project-field-note h3 { max-width: 350px; margin-bottom: 0; font-size: clamp(30px, 3vw, 40px); }
.project-field-note p:not(.eyebrow) { max-width: 680px; margin-bottom: 14px; color: var(--muted); font-size: 16px; }
.project-field-note .field-note-detail { margin-bottom: 0; font-size: 14px; }
.field-note-detail b { color: var(--coal); }

/* Services */
.services { overflow: hidden; background: var(--forest); color: white; }
.services .heading-split > p { color: #cdd7cf; }
.services .eyebrow { color: #9bb9a6; }
.service-field-guide { display: grid; grid-template-columns: minmax(0, 46fr) minmax(0, 54fr); gap: clamp(42px, 6vw, 82px); align-items: start; }
.roof-anatomy { position: relative; margin: 0; overflow: hidden; background: #0b2119; }
.roof-anatomy > img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; filter: saturate(.75) contrast(1.04); }
.roof-anatomy::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8,28,20,.42), transparent 46%); pointer-events: none; }
.roof-anatomy figcaption { position: absolute; right: 18px; bottom: 15px; left: 18px; z-index: 3; display: flex; justify-content: space-between; gap: 18px; color: #dce6df; font-family: var(--mono); font-size: 8px; letter-spacing: .06em; text-transform: uppercase; }
.roof-anatomy figcaption span { color: white; }
.anatomy-marker { position: absolute; z-index: 4; display: flex; align-items: center; gap: 8px; color: white; font-family: var(--mono); font-size: 8px; letter-spacing: .06em; text-transform: uppercase; }
.anatomy-marker b { display: grid; width: 29px; height: 29px; place-items: center; border-radius: 50%; background: var(--green-dark); font-size: 8px; }
.anatomy-marker i { background: rgba(16,44,34,.9); padding: 5px 7px; font-style: normal; }
.marker-field { top: 51%; left: 31%; }
.marker-ridge { top: 23%; left: 51%; }
.marker-edge { right: 8%; bottom: 20%; }
.service-grid { display: block; border-top: 1px solid rgba(255,255,255,.42); }
.service-grid article, .service-grid article + article { display: grid; min-height: 0; grid-template-columns: 42px minmax(0, 1fr); gap: 8px 18px; align-items: start; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.18); padding: 24px 0 26px; }
.service-num { padding-top: 7px; color: #91d7aa; font-family: var(--mono); font-size: 10px; }
.service-grid h3 { margin: 0; font-size: clamp(34px, 3vw, 40px); }
.service-grid p { grid-column: 2; max-width: 620px; margin: 0; color: #cdd7cf; font-size: 16px; }
.scope-guide { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(28px, 5vw, 70px); margin-top: 50px; padding-top: 36px; border-top: 1px solid rgba(255,255,255,.25); }
.scope-intro h3 { margin-bottom: 20px; font-size: clamp(34px, 3.4vw, 44px); }
.scope-intro > p:last-child { max-width: 420px; margin: 0; color: #cdd7cf; font-size: 16px; }
.scope-options { margin: 0; }
.scope-options > div { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 24px; padding: 17px 0; border-bottom: 1px solid rgba(255,255,255,.18); }
.scope-options > div:first-child { padding-top: 0; }
.scope-options dt { color: #91d7aa; font-family: var(--display); font-weight: 700; font-size: 27px; line-height: 1.15; text-transform: uppercase; }
.scope-options dd { margin: 0; color: #cdd7cf; font-size: 16px; }
.roofline-band { display: grid; margin-top: 56px; grid-template-columns: 42fr 58fr; background: var(--forest-mid); }
.roofline-band > img { width: 100%; height: 100%; min-height: 330px; object-fit: cover; }
.roofline-band > div { display: flex; flex-direction: column; justify-content: center; padding: clamp(32px, 4vw, 54px); }
.roofline-band h3 { margin: 12px 0 22px; font-size: clamp(46px, 4.6vw, 64px); }
.roofline-band p:not(.eyebrow) { max-width: 520px; color: #cdd7cf; }
.inline-links { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 20px; }
.inline-links button { min-height: 44px; border: 0; border-bottom: 1px solid currentColor; background: transparent; padding: 0; font-family: var(--display); font-weight: 700; text-transform: uppercase; cursor: pointer; }
.inline-links button:hover { color: #91d7aa; }

/* Process */
.process-section { --muted: #5f6058; border-top: 1px solid rgba(24,24,19,.15); background: var(--sage); }
.process-section > .shell { display: block; }
.process-section .section-heading { position: static; display: flex; margin: 0 0 54px; flex-direction: row; align-items: end; justify-content: space-between; gap: 46px; }
.process-section .section-heading > div:first-child { max-width: 710px; }
.process-section .section-heading h2 { font-size: clamp(48px, 5vw, 68px); }
.process-tabs { display: inline-flex; width: max-content; align-items: center; justify-self: end; border: 1px solid var(--coal); }
.process-tabs button { min-height: 48px; border: 0; background: transparent; padding: 10px 20px; font-family: var(--display); font-weight: 700; white-space: nowrap; text-transform: uppercase; cursor: pointer; }
.process-tabs button[aria-selected="true"] { background: var(--coal); color: white; }
.process-panel { border-top: 1px solid rgba(24,24,19,.48); padding-top: 22px; }
.process-list { position: relative; display: grid; margin: 0; padding: 0; grid-template-columns: repeat(4, minmax(0, 1fr)); list-style: none; }
.process-list::before { content: ""; position: absolute; top: 29px; right: 9%; left: 6%; height: 2px; background: var(--green-dark); }
.process-list li { position: relative; z-index: 1; min-width: 0; min-height: 0; padding: 0 28px 0 0; }
.step-title { display: block; min-height: 112px; }
.step-title span { display: block; width: max-content; height: auto; border: 0; border-radius: 0; background: var(--sage); padding: 0 14px 12px 0; color: var(--green-dark); font-family: var(--mono); font-size: 31px; line-height: 1; }
.process-list h3 { max-width: 230px; margin: 12px 0 0; font-size: 30px; line-height: .95; }
.process-list p { max-width: 250px; margin: 0; padding-top: 12px; color: var(--muted); font-size: 15px; line-height: 1.48; }
.storm-disclaimer { display: grid; max-width: 760px; margin: 18px 0 0 auto; grid-template-columns: auto 1fr; gap: 18px; align-items: start; border-top: 1px solid var(--sand); padding-top: 14px; }
.storm-disclaimer > span { color: var(--green-dark); font-family: var(--mono); font-size: 9px; font-weight: 500; letter-spacing: .07em; white-space: nowrap; text-transform: uppercase; }
.storm-disclaimer p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.storm-disclaimer b { color: var(--coal); font-weight: 600; }

/* Record */
.record-section { position: relative; overflow: hidden; background: var(--coal); color: white; }
.blueprint-grid { position: absolute; inset: 0; opacity: .16; background-image: linear-gradient(rgba(255,255,255,.09) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.09) 1px, transparent 1px); background-size: 56px 56px; mask-image: linear-gradient(to right, black, transparent 72%); }
.record-layout { position: relative; display: grid; min-height: 770px; grid-template-columns: .95fr .75fr; gap: clamp(70px, 11vw, 160px); align-items: center; padding-block: 94px; }
.record-copy h2 { max-width: 660px; font-size: clamp(58px, 6.4vw, 86px); }
.record-copy > p:not(.eyebrow) { max-width: 620px; margin: 26px 0 42px; color: #c1c0b8; font-size: 18px; }
.record-copy img { width: 176px; height: 118px; object-fit: cover; }
.photo-caption { display: block; margin-top: 10px; color: #999990; font-family: var(--mono); font-size: 9px; text-transform: uppercase; }
.project-record { position: relative; background: var(--paper); color: var(--coal); padding: 24px clamp(26px, 4vw, 48px) 30px; transform: rotate(1deg); }
.project-record::after { content: ""; position: absolute; right: 18px; bottom: 17px; width: 22px; height: 22px; border-right: 1px solid var(--green); border-bottom: 1px solid var(--green); }
.paper-header { display: flex; justify-content: space-between; border-bottom: 1px solid var(--sand); padding-bottom: 14px; font-family: var(--mono); font-size: 8px; letter-spacing: .06em; text-transform: uppercase; }
.project-record h3 { margin: 40px 0 28px; font-size: clamp(48px, 5vw, 68px); }
.project-record ul { margin: 0; padding: 0; list-style: none; }
.project-record li { display: grid; min-height: 70px; grid-template-columns: 28px 1fr 24px; gap: 10px; align-items: center; border-top: 1px solid var(--sand); }
.project-record li > span, .project-record li small { font-family: var(--mono); font-size: 8px; text-transform: uppercase; }
.project-record li div { display: grid; }
.project-record li b { font-family: var(--display); font-size: 20px; text-transform: uppercase; }
.project-record li small { color: var(--muted); }
.project-record li i { display: grid; width: 22px; height: 22px; place-items: center; border-radius: 50%; background: var(--green-pale); color: var(--green-dark); font-size: 11px; font-style: normal; }
.paper-note { margin: 24px 0 0; color: var(--muted); font-family: var(--mono); font-size: 8px; text-transform: uppercase; }

/* Estimate */
.estimate-section { display: grid; grid-template-columns: .78fr 1.22fr; gap: clamp(60px, 9vw, 130px); align-items: start; }
.estimate-intro { position: sticky; top: 120px; }
.estimate-intro h2 { font-size: clamp(58px, 6vw, 78px); }
.estimate-intro > p:not(.eyebrow,.office-note) { max-width: 455px; margin: 28px 0; color: var(--muted); }
.estimate-phone { display: grid; width: fit-content; margin-top: 40px; font-family: var(--display); font-size: 34px; font-weight: 700; line-height: 1; text-decoration: none; }
.estimate-phone span { margin-bottom: 10px; color: var(--green-dark); font-family: var(--mono); font-size: 9px; font-weight: 400; letter-spacing: .08em; text-transform: uppercase; }
.office-note { margin-top: 14px; color: var(--muted); font-family: var(--mono); font-size: 9px; text-transform: uppercase; }
.estimate-form { border-top: 4px solid var(--green); background: var(--paper); padding: clamp(28px, 4vw, 48px); }
.form-topline { display: flex; justify-content: space-between; align-items: start; gap: 20px; }
.form-topline > span { border: 1px solid var(--sand); padding: 5px 8px; color: var(--muted); font-family: var(--mono); font-size: 8px; letter-spacing: .05em; text-transform: uppercase; }
.intent-switch { display: grid; margin: 10px 0 34px; padding: 0; grid-template-columns: 1fr 1fr; border: 1px solid var(--coal); }
.intent-switch label { cursor: pointer; }
.intent-switch input { position: absolute; opacity: 0; }
.intent-switch span { display: grid; min-height: 50px; place-items: center; font-family: var(--display); font-size: 16px; font-weight: 700; text-transform: uppercase; }
.intent-switch input:checked + span { background: var(--coal); color: white; }
.intent-switch input:focus-visible + span { outline: 3px solid var(--green); outline-offset: -4px; }
.form-grid, .storm-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 23px 20px; }
.storm-fields { margin: 23px 0 0; border-top: 1px solid var(--sand); padding-top: 23px; }
.estimate-form label:not(.intent-switch label) { display: grid; gap: 8px; }
.estimate-form label > span { font-family: var(--mono); font-size: 9px; letter-spacing: .06em; text-transform: uppercase; }
.estimate-form input[type="text"], .estimate-form input[type="date"], .estimate-form select, .estimate-form textarea { width: 100%; min-height: 50px; border: 0; border-bottom: 1px solid var(--coal); border-radius: 0; background: transparent; padding: 11px 2px; color: var(--coal); outline: 0; }
.estimate-form textarea { min-height: 94px; resize: vertical; }
.estimate-form input:focus, .estimate-form select:focus, .estimate-form textarea:focus { border-bottom-color: var(--green); box-shadow: 0 2px 0 var(--green); }
.estimate-form .is-invalid { border-bottom-color: #a32920; }
.full-field { margin-top: 23px; }
.submit-button { width: 100%; margin-top: 30px; }
.form-feedback { margin-top: 18px; border-left: 3px solid var(--green); background: var(--green-pale); padding: 16px 18px; }
.form-feedback b { font-family: var(--display); font-size: 22px; text-transform: uppercase; }
.form-feedback p { margin: 3px 0 0; font-size: 14px; }

/* FAQ / close */
.faq-section { display: grid; grid-template-columns: .65fr 1.35fr; gap: 80px; padding-bottom: 100px; }
.faq-heading h2 { font-size: 55px; }
.faq-list { border-top: 1px solid var(--coal); }
.faq-item { border-bottom: 1px solid var(--coal); }
.faq-item h3 { margin: 0; }
.faq-item button { display: grid; width: 100%; min-height: 84px; grid-template-columns: 1fr 44px; align-items: center; gap: 20px; border: 0; background: transparent; padding: 12px 0; text-align: left; cursor: pointer; }
.faq-item button span { font-family: var(--display); font-size: 23px; font-weight: 600; line-height: 1.05; text-transform: uppercase; }
.faq-item button i { font-family: var(--mono); font-size: 24px; font-style: normal; text-align: center; transition: transform var(--ease); }
.faq-item button[aria-expanded="true"] i { transform: rotate(45deg); }
.faq-answer p { max-width: 670px; margin: -2px 60px 25px 0; color: var(--muted); }
.closing-strip { background: var(--green-dark); color: white; }
.closing-inner { display: flex; min-height: 275px; align-items: center; justify-content: space-between; gap: 50px; }
.closing-inner h2 { font-size: clamp(52px, 6vw, 78px); }
.button-cream { border-color: var(--cream); background: var(--cream); color: var(--coal); }
.button-cream:hover { border-color: var(--coal); background: var(--coal); color: white; }

/* Footer */
.site-footer { background: var(--coal); color: #d4d3ca; padding: 58px 0 22px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr .65fr; gap: 48px; }
.footer-grid > div:not(.footer-brand) { display: flex; flex-direction: column; align-items: flex-start; font-size: 14px; }
.footer-grid a { min-height: 28px; text-decoration: none; }
.footer-grid a:hover { color: white; text-decoration: underline; }
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.footer-brand img { width: 240px; height: auto; object-fit: contain; }
.footer-brand div { display: grid; }
.footer-brand b { color: white; font-family: var(--display); font-size: 22px; text-transform: uppercase; }
.footer-brand span { color: #999990; font-family: var(--mono); font-size: 8px; text-transform: uppercase; }
.footer-credential { display: grid; min-height: 96px; margin-top: 42px; grid-template-columns: .7fr 1.7fr auto; gap: 32px; align-items: center; border-top: 1px solid #3d3d36; border-bottom: 1px solid #3d3d36; }
.footer-credential .eyebrow { margin: 0; }
.footer-credential p { display: grid; margin: 0; font-size: 13px; }
.footer-credential b { color: white; font-weight: 600; }
.footer-credential span { color: #999990; font-family: var(--mono); font-size: 9px; text-transform: uppercase; }
.footer-credential a { display: inline-flex; min-height: 44px; align-items: center; color: #a9daba; font-size: 12px; text-underline-offset: 4px; }
.footer-bottom { display: flex; justify-content: space-between; border-top: 1px solid #3d3d36; margin-top: 42px; padding-top: 18px; color: #85857d; font-family: var(--mono); font-size: 8px; text-transform: uppercase; }
.mobile-actions { display: none; }

/* Photographic field studies: imagery belongs to the page, not a card grid. */
.institutional-layout { column-gap: 60px; row-gap: 40px; }
.institutional-copy { position: relative; z-index: 2; }
.trust-roof-study { position: relative; align-self: stretch; min-height: 390px; margin: -35px -40px -10px -10px; }
.trust-roof-study img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; object-position: 55% 45%; filter: grayscale(1); opacity: .78; mask-image: linear-gradient(90deg, transparent, black 23%, black 85%, transparent), linear-gradient(0deg, transparent, black 22%, black 80%, transparent); mask-composite: intersect; }
.trust-roof-study figcaption { position: absolute; right: 20px; bottom: 15px; display: grid; text-align: right; }
.trust-roof-study figcaption span { color: #c0c4b9; font: 9px var(--mono); text-transform: uppercase; letter-spacing: .1em; }
.trust-roof-study figcaption b { font: 700 clamp(30px, 4vw, 54px)/1 var(--display); text-transform: uppercase; color: #c0e2cb; }
.journey-intro { background: transparent; padding: 0 18px 18px 0; }
.journey-intro h2 { margin-bottom: 20px; }
.condition-study { grid-column: 1; grid-row: 2; position: relative; margin: 0; align-self: end; padding: 12px 0 0; }
.condition-crop { width: 90%; aspect-ratio: 1.23; clip-path: polygon(0 0, 83% 0, 100% 18%, 100% 100%, 0 100%); overflow: hidden; }
.condition-crop img { width: 100%; height: 100%; object-fit: cover; object-position: 47% center; transform: scale(1.48); }
.condition-study figcaption { position: relative; display: grid; margin: -32px 0 0 26%; background: var(--cream); padding: 18px 0 0 20px; }
.condition-study figcaption b { font: 700 33px/1 var(--display); text-transform: uppercase; }
.condition-study figcaption > span:last-child { margin-top: 9px; color: var(--muted); font: 9px/1.6 var(--mono); text-transform: uppercase; }
.detail-line { position: absolute; bottom: 50px; right: calc(100% - 8px); width: 70px; height: 80px; border-left: 1px solid var(--green-dark); border-bottom: 1px solid var(--green-dark); }
.detail-line::before { content: ''; position: absolute; top: -4px; left: -4px; width: 7px; height: 7px; background: var(--green-dark); border-radius: 50%; }
.service-field-guide { align-items: center; }
.roof-anatomy { overflow: visible; background: transparent; min-height: 480px; display: flex; align-items: center; }
.roof-anatomy .roof-drawing { position: absolute; width: 120%; max-width: none; height: 115%; left: -10%; top: -8%; color: #98bf91; opacity: .55; }
.roof-anatomy > img { position: relative; z-index: 1; width: 119%; max-width: none; margin-left: -11%; aspect-ratio: auto; object-fit: contain; filter: drop-shadow(0 25px 16px rgba(0,0,0,.22)); transform: rotate(-7deg); }
.roof-anatomy::after { display: none; }
.roof-anatomy figcaption { bottom: -18px; left: 0; right: 0; border-top: 1px solid #658071; padding-top: 12px; }
.marker-field { top: 52%; left: 17%; }
.marker-ridge { top: 20%; left: 49%; }
.marker-edge { bottom: 19%; right: 0; }
.roofline-band { margin-top: 95px; background: transparent; align-items: center; gap: 50px; }
.roofline-band > img { height: 380px; min-height: 0; clip-path: polygon(0 15%, 100% 0, 100% 85%, 0 100%); object-position: center; }
.roofline-band > div { padding: 16px 0; }
.record-layout { gap: 70px; align-items: center; }
.closeout-study { position: relative; display: flex; align-items: end; gap: 24px; margin: 0; }
.record-copy .closeout-study img { width: 53%; height: 290px; object-fit: cover; object-position: 50% 45%; clip-path: polygon(0 0, 100% 0, 100% 86%, 82% 100%, 0 100%); }
.closeout-study figcaption { padding-bottom: 12px; }
.closeout-study b { display: block; color: #bedcc7; font: 700 35px/.98 var(--display); text-transform: uppercase; }
.closeout-study span { display: block; margin-top: 14px; color: #a5aaa0; font: 8px/1.7 var(--mono); text-transform: uppercase; }
.estimate-intro { position: static; }
.estimate-roof-study { position: relative; display: grid; grid-template-columns: 1fr 1.2fr; align-items: start; margin-top: 36px; gap: 10px; }
.estimate-roof-study figure { position: relative; margin: 0; }
.estimate-roof-study figure:first-child { margin-top: 32px; }
.estimate-roof-study img { width: 100%; height: 160px; object-fit: cover; }
.estimate-roof-study figure:first-child img { filter: grayscale(1); }
.estimate-roof-study figcaption { position: absolute; bottom: 8px; left: 8px; padding: 4px 6px; background: var(--coal); color: white; font: 8px var(--mono); text-transform: uppercase; }
.estimate-roof-study > p { grid-column: 1 / -1; font: 600 18px/1.3 var(--body); }
.estimate-roof-study > p span { display: block; margin-top: 8px; color: var(--muted); font: 8px var(--mono); text-transform: uppercase; }

/* Dialog */
.project-dialog { width: min(1100px, calc(100% - 40px)); max-height: min(780px, calc(100vh - 40px)); border: 0; background: var(--paper); padding: 0; color: var(--coal); }
.project-dialog::backdrop { background: rgba(10,10,8,.78); backdrop-filter: blur(2px); }
.dialog-close { position: absolute; top: 14px; right: 14px; z-index: 5; min-width: 76px; min-height: 42px; border: 1px solid var(--coal); background: var(--paper); font-family: var(--mono); font-size: 9px; text-transform: uppercase; cursor: pointer; }
.dialog-layout { display: grid; grid-template-columns: 1.35fr .65fr; }
.dialog-media { min-width: 0; background: var(--coal); }
.dialog-media .comparison-stage { height: min(70vh, 680px); aspect-ratio: auto; }
.dialog-copy { align-self: center; padding: 66px 42px 48px; }
.dialog-copy h2 { margin: 20px 0 25px; font-size: clamp(44px, 5vw, 68px); }
.dialog-copy > p:not(.eyebrow,.dialog-note) { color: var(--muted); }
.dialog-note { margin-top: 35px; padding-top: 15px; border-top: 1px solid var(--sand); font-family: var(--mono); font-size: 8px; text-transform: uppercase; }

@media (max-width: 980px) {
  .nav-menu { gap: 18px; }
  .nav-phone { display: none !important; }
  .hero-inner { padding-block: 62px 48px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 7px; }
  .institutional-layout { grid-template-columns: 1fr; gap: 38px; }
  .institutional-copy h2 { max-width: 690px; }
  .client-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .journey-layout { grid-template-columns: 1fr; grid-template-rows: auto; gap: 30px; }
  .journey-intro { grid-column: 1; grid-row: auto; order: 1; }
  .journey-routes { grid-column: 1; grid-row: auto; order: 2; }
  .journey-diptych { grid-column: 1; grid-row: auto; order: 3; }
  .project-grid { grid-template-rows: repeat(2, minmax(210px, 1fr)); }
  .service-field-guide { grid-template-columns: 1fr; gap: 34px; }
  .roof-anatomy > img { aspect-ratio: 16 / 9; }
  .process-section .section-heading { align-items: flex-start; flex-direction: column; gap: 26px; }
  .process-tabs { justify-self: start; }
  .process-list { grid-template-columns: 1fr; gap: 0; }
  .process-list::before { top: 9px; right: auto; bottom: 28px; left: 18px; width: 2px; height: auto; }
  .process-list li { padding: 0 0 30px 62px; }
  .step-title { min-height: 0; }
  .step-title span { position: absolute; top: 0; left: 0; padding: 0 9px 7px 0; font-size: 23px; }
  .process-list h3 { max-width: none; margin-top: 0; }
  .process-list p { max-width: 620px; padding-top: 9px; }
  .record-layout { gap: 55px; }
  .estimate-section { gap: 50px; }
}

@media (max-width: 760px) {
  .project-field-note, .scope-guide { grid-template-columns: 1fr; gap: 24px; }
  .project-field-note { margin-top: 28px; padding-top: 26px; }
  .scope-guide { margin-top: 32px; padding-top: 28px; }
  .scope-options > div { grid-template-columns: 76px minmax(0, 1fr); gap: 18px; }
  html { scroll-padding-top: 72px; }
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .shell { width: calc(100% - 40px); }
  .section { padding-block: 56px; }
  .utility-bar { height: 26px; }
  .utility-inner { grid-template-columns: 1fr auto; }
  .utility-inner > :last-child { display: none; }
  .preview-flag { font-size: 8px; }
  .primary-nav { height: 80px; }
  .wordmark .residential-logo { width: 156px; }
  .wordmark { gap: 9px; }
  .wordmark-gwo { font-size: 29px; }
  .wordmark-rule { height: 24px; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: flex-end; gap: 10px; cursor: pointer; }
  .menu-icon { position: relative; width: 18px; height: 12px; border-top: 1px solid; border-bottom: 1px solid; }
  .menu-icon::after { content: ""; position: absolute; top: 5px; right: 0; width: 12px; border-top: 1px solid; }
  .nav-menu { position: absolute; top: 106px; right: 0; left: 0; display: none; border-bottom: 1px solid var(--coal); background: var(--paper); padding: 18px 20px 23px; flex-direction: column; align-items: stretch; gap: 1px; box-shadow: 0 10px 22px rgba(24,24,19,.12); }
  .nav-menu.is-open { display: flex; }
  .nav-menu > a:not(.button) { border-bottom: 1px solid var(--sand); font-size: 17px; }
  .nav-menu .nav-phone { display: inline-flex !important; margin: 10px 0; border-bottom: 0 !important; }
  .hero { display: flex; min-height: 0; flex-direction: column; background: var(--coal); }
  .hero-aerial { position: relative; order: 2; height: 310px; object-position: 52% center; }
  .hero-shade { display: none; }
  .hero-inner { position: relative; order: 1; display: block; min-height: 0; padding-block: 48px 38px; }
  .hero-copy { max-width: 100%; }
  .hero-photo-note { display: none; }
  h1 { margin-bottom: 16px; font-size: clamp(60px, 17vw, 70px); }
  h2 { font-size: clamp(44px, 12vw, 52px); }
  .hero-lede { font-size: 17px; }
  .hero-actions { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
  .quiet-action { margin-top: 5px; }
  .comparison figcaption { min-height: 62px; }
  .proof-strip { width: 100%; grid-template-columns: 1fr; }
  .proof-strip > span, .proof-strip > span:first-child { min-height: 54px; border-right: 0; border-bottom: 1px solid var(--rule); padding: 9px 20px; }
  .proof-strip > span:last-child { border-bottom: 0; }
  .institutional-proof { margin-top: 0; }
  .institutional-layout { gap: 30px; padding-block: 52px; }
  .institutional-copy h2 { font-size: 45px; }
  .institutional-copy > p:last-child { margin-top: 20px; font-size: 16px; }
  .client-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .client-card { min-height: 116px; padding: 15px 10px 12px; }
  .client-card img { max-width: 124px; max-height: 57px; }
  .client-card img.client-logo-wide { max-width: 132px; max-height: 52px; }
  .client-card img.client-logo-seal { max-width: 54px; max-height: 54px; }
  .client-card span { font-size: 8px; }
  .client-disclaimer { font-size: 9px; line-height: 1.6; }
  .heading-split { grid-template-columns: 1fr; gap: 23px; }
  .section-heading { margin-bottom: 28px; }
  .heading-split > p { margin: 0; }
  .journey-layout { gap: 26px; }
  .journey-intro { padding: 28px 24px 26px; }
  .journey-intro h2 { font-size: 48px; }
  .journey-diptych { padding: 22px 24px 24px; }
  .journey-route { padding: 24px 0 27px; }
  .journey-route:nth-child(2) { margin-left: 0; }
  .journey-route h3 { margin: 18px 0 14px; font-size: 38px; }
  .legal-note { margin-top: 14px; }
  .route-action { margin-top: 16px; }
  .project-grid { display: flex; flex-direction: column; }
  .project-card { height: auto; }
  .project-image { aspect-ratio: 16 / 10; }
  .project-card:not(.project-feature) .project-image { aspect-ratio: 16 / 9; }
  .project-meta { min-height: 68px; }
  .services .section-heading { margin-bottom: 34px; }
  .roof-anatomy > img { aspect-ratio: 4 / 3; }
  .anatomy-marker i { display: none; }
  .marker-field { top: 52%; left: 30%; }
  .marker-ridge { top: 25%; left: 52%; }
  .marker-edge { right: 7%; bottom: 21%; }
  .service-grid article, .service-grid article + article { grid-template-columns: 38px minmax(0, 1fr); gap: 8px 16px; padding: 21px 0; }
  .service-grid h3 { font-size: 31px; }
  .service-grid p { grid-column: 2; font-size: 15px; }
  .roofline-band { grid-template-columns: 1fr; margin-top: 34px; }
  .roofline-band > img { min-height: 0; aspect-ratio: 16 / 10; }
  .roofline-band > div { padding: 28px 25px 32px; }
  .roofline-band h3 { margin: 8px 0 14px; font-size: 44px; }
  .inline-links { margin-top: 10px; gap: 14px 20px; }
  .process-tabs { display: grid; width: 100%; grid-template-columns: 1fr 1fr; }
  .process-section .section-heading { margin-bottom: 38px; }
  .process-list li, .process-list li + li { padding: 0 0 28px 54px; }
  .process-list::before { left: 14px; }
  .step-title span { font-size: 20px; }
  .process-list h3 { font-size: 28px; }
  .process-list p { font-size: 14px; }
  .storm-disclaimer { margin-top: 16px; grid-template-columns: 1fr; gap: 5px; }
  .record-layout { min-height: 0; grid-template-columns: 1fr; gap: 40px; padding-block: 62px; }
  .record-copy > p:not(.eyebrow) { margin-bottom: 30px; }
  .project-record { margin-inline: 3px; padding-top: 20px; transform: rotate(.4deg); }
  .project-record h3 { margin: 28px 0 20px; font-size: 48px; }
  .project-record li { min-height: 62px; }
  .estimate-section { grid-template-columns: 1fr; gap: 50px; }
  .estimate-intro { position: static; }
  .form-grid, .storm-fields { grid-template-columns: 1fr; }
  .estimate-form { margin-inline: -8px; padding: 28px 22px 32px; }
  .form-topline { flex-direction: column; gap: 3px; }
  .intent-switch span { padding-inline: 8px; text-align: center; }
  .faq-section { grid-template-columns: 1fr; gap: 34px; padding-bottom: 80px; }
  .faq-heading h2 { font-size: 48px; }
  .faq-item button { min-height: 82px; }
  .closing-inner { min-height: 270px; flex-direction: column; align-items: flex-start; justify-content: center; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 42px 28px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-credential { min-height: 0; margin-top: 36px; grid-template-columns: 1fr; gap: 8px; padding-block: 24px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .mobile-actions { position: fixed; right: 0; bottom: 0; left: 0; z-index: 80; display: grid; height: calc(58px + env(safe-area-inset-bottom)); grid-template-columns: 1fr 1fr; background: var(--coal); padding-bottom: env(safe-area-inset-bottom); }
  .mobile-actions a { display: grid; place-items: center; border-right: 1px solid #48483f; color: white; font-family: var(--display); font-weight: 700; text-decoration: none; text-transform: uppercase; }
  .mobile-actions a:last-child { border-right: 0; background: var(--green-dark); }
  .project-dialog { width: calc(100% - 20px); max-height: calc(100vh - 20px); }
  .dialog-layout { grid-template-columns: 1fr; }
  .dialog-media .comparison-stage { height: auto; aspect-ratio: 4 / 3; }
  .dialog-copy { padding: 34px 25px 36px; }
  .dialog-copy h2 { font-size: 45px; }
  .dialog-close { top: 9px; right: 9px; }
}

/* Manual roof-study carousel */
.roof-carousel { display: grid; min-height: 0; align-content: start; }
.roof-carousel-viewport { width: 100%; overflow-x: auto; overflow-y: hidden; overscroll-behavior-inline: contain; scroll-snap-type: x mandatory; scrollbar-width: none; outline-offset: 5px; }
.roof-carousel-viewport::-webkit-scrollbar { display: none; }
.roof-carousel-track { display: flex; width: 200%; }
.roof-slide { position: relative; width: 50%; height: 430px; flex: 0 0 50%; overflow: hidden; scroll-snap-align: start; scroll-snap-stop: always; }
.roof-slide .roof-drawing { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; color: #88aa83; opacity: .38; pointer-events: none; }
.roof-slide-image { position: absolute; z-index: 1; max-width: none; object-fit: contain; filter: drop-shadow(0 20px 15px rgba(0,0,0,.24)); }
.roof-slide-residential .roof-slide-image { top: 28px; left: -7%; width: 116%; height: 330px; transform: rotate(-6deg); }
.roof-slide-flat .roof-slide-image { top: -113px; left: -4%; width: 108%; height: 575px; filter: drop-shadow(0 -2px 0 #88aa83) drop-shadow(0 20px 15px rgba(0,0,0,.24)); }
.roof-slide .anatomy-marker { z-index: 3; }
.roof-slide-residential .marker-field { top: 48%; left: 18%; }
.roof-slide-residential .marker-ridge { top: 25%; left: 49%; }
.roof-slide-residential .marker-edge { right: 5%; bottom: 26%; }
.roof-slide-flat .marker-field { top: 60%; left: 18%; }
.roof-slide-flat .marker-ridge { top: 39%; left: 22%; }
.roof-slide-flat .marker-edge { top: 22%; right: auto; bottom: auto; left: 7%; }
.roof-slide-caption { position: absolute; right: 0; bottom: 0; left: 0; z-index: 4; display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid #658071; background: var(--forest); padding: 12px 0; color: #dce6df; font: 8px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.roof-slide-caption span { color: white; }
.roof-slide-caption small { font: inherit; }
.roof-anatomy .roof-carousel-controls { position: static; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; border-top: 0; padding: 12px 0 0; color: white; }
.roof-carousel-controls button { display: inline-flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; gap: 8px; border: 1px solid #658071; background: transparent; color: white; padding: 0 12px; font: 9px var(--mono); text-transform: uppercase; cursor: pointer; }
.roof-carousel-controls button:hover, .roof-carousel-controls button:focus-visible { border-color: #91d7aa; color: #91d7aa; }
.roof-carousel-status { display: grid; justify-items: center; gap: 3px; font-family: var(--mono); text-transform: uppercase; }
.roof-carousel-status b { color: #91d7aa; font-size: 10px; }
.roof-carousel-status i { color: #cdd7cf; font-size: 8px; font-style: normal; letter-spacing: .045em; }

@media (max-width: 760px) {
  .roof-slide { height: 330px; }
  .roof-slide-residential .roof-slide-image { top: 18px; left: -5%; width: 110%; height: 245px; }
  .roof-slide-flat .roof-slide-image { top: -82px; left: -3%; width: 106%; height: 425px; }
  .roof-slide .anatomy-marker i { display: block; padding: 4px 5px; font-size: 7px; }
  .roof-slide-residential .marker-field { top: 46%; left: 13%; }
  .roof-slide-residential .marker-ridge { top: 24%; left: 47%; }
  .roof-slide-residential .marker-edge { right: 3%; bottom: 27%; }
  .roof-slide-flat .marker-field { top: 59%; left: 13%; }
  .roof-slide-flat .marker-ridge { top: 39%; left: 18%; }
  .roof-slide-flat .marker-edge { top: 23%; left: 4%; }
  .roof-slide-caption { display: grid; gap: 2px; padding-block: 9px; font-size: 7px; }
  .roof-carousel-controls button span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .roof-carousel-controls button { padding: 0; }
}

.project-photo-pair { display: grid; gap: 16px; padding: 20px; }
.project-photo-pair figure { margin: 0; }
.project-photo-pair img { width: 100%; height: clamp(170px, 29vh, 285px); object-fit: contain; }
.project-photo-pair figcaption { color: #d5d8cd; margin-top: 6px; font: 9px/1.5 var(--mono); text-transform: uppercase; }
@media (max-width: 980px) {
  .trust-roof-study { min-height: 290px; margin: -24px 0 0; }
  .trust-roof-study img { object-position: center 42%; }
  .condition-study { grid-column: 1; grid-row: auto; order: 2; width: min(100%, 450px); margin-bottom: 20px; }
  .journey-routes { order: 3; }
  .roof-anatomy { width: min(100%, 600px); min-height: 420px; margin-inline: auto; }
  .roof-anatomy > img { aspect-ratio: auto; }
  .roofline-band { gap: 28px; }
}
@media (max-width: 760px) {
  .trust-roof-study { min-height: 230px; margin: -15px 0 0; }
  .utility-inner .preview-flag { display: none; }
  .utility-inner > .parent-site-link { display: inline-flex; min-height: 44px; }
  .utility-bar { height: 44px; }
  .nav-menu { top: 100%; }
  .trust-roof-study figcaption { right: 0; bottom: 0; }
  .journey-intro { padding: 0; }
  .condition-study { width: 100%; max-width: 350px; padding-top: 0; }
  .condition-crop { aspect-ratio: 1.5; }
  .condition-study figcaption { margin-left: 28%; }
  .roof-anatomy { min-height: 320px; margin-bottom: 20px; }
  .roof-anatomy > img { width: 108%; margin-left: -4%; aspect-ratio: auto; }
  .roof-anatomy .roof-drawing { width: 108%; left: -4%; }
  .roof-anatomy figcaption { bottom: -7px; font-size: 7px; }
  .marker-field { top: 52%; left: 19%; }
  .marker-ridge { top: 22%; left: 50%; }
  .marker-edge { right: 7%; bottom: 18%; }
  .roofline-band { margin-top: 38px; gap: 24px; }
  .roofline-band > img { height: 280px; aspect-ratio: auto; }
  .roofline-band > div { padding: 0; }
  .record-copy .closeout-study img { height: 230px; }
  .closeout-study { gap: 16px; }
  .closeout-study b { font-size: 28px; }
  .estimate-roof-study { margin-top: 28px; }
  .estimate-roof-study img { height: 150px; }
  .project-photo-pair { padding: 60px 15px 18px; }
  .project-photo-pair img { height: auto; aspect-ratio: 16 / 9; }
}

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

/* Documentary photo integrations */
.project-feature-visual { position: relative; display: grid; min-height: 0; overflow: hidden; grid-template-rows: minmax(0, 1fr) auto; background: var(--coal); }
.project-documentary { z-index: 2; display: grid; width: 100%; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2px; border-top: 3px solid var(--paper); background: var(--paper); }
.project-documentary > span { position: relative; min-width: 0; background: var(--coal); }
.project-documentary img { display: block; width: 100%; height: 112px; aspect-ratio: 4 / 3; object-fit: cover; }
.project-documentary i { position: absolute; right: 0; bottom: 0; left: 0; background: rgba(24,24,19,.86); color: white; padding: 6px; font: normal 10px/1.2 var(--mono); letter-spacing: .035em; text-transform: uppercase; }
.service-field-guide { grid-template-columns: minmax(0, 45fr) minmax(0, 55fr); }
.process-documentary { display: grid; grid-template-columns: minmax(0, 42fr) minmax(0, 58fr); gap: clamp(38px, 5vw, 70px); align-items: stretch; }
.process-photo { position: relative; min-width: 0; min-height: 0; aspect-ratio: 4 / 3; margin: 0; overflow: hidden; align-self: start; background: #aab7aa; }
.process-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 52% center; }
.process-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(14,35,27,.72), transparent 45%); pointer-events: none; }
.process-photo figcaption { position: absolute; right: 24px; bottom: 22px; left: 24px; z-index: 2; display: grid; color: white; }
.process-photo figcaption b { font: 700 36px/.95 var(--display); text-transform: uppercase; }
.process-photo figcaption span { margin-top: 9px; font: 8px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.process-panels { min-width: 0; }
.process-documentary .process-list { display: grid; grid-template-columns: 1fr; gap: 0; }
.process-documentary .process-list::before { top: 10px; right: auto; bottom: 28px; left: 17px; width: 2px; height: auto; }
.process-documentary .process-list li { padding: 0 0 28px 58px; }
.process-documentary .step-title { min-height: 0; }
.process-documentary .step-title span { position: absolute; top: 0; left: 0; padding: 0 9px 7px 0; font-size: 23px; }
.process-documentary .process-list h3 { max-width: none; margin-top: 0; }
.process-documentary .process-list p { max-width: 620px; padding-top: 9px; }
.record-copy .closeout-study img { width: 240px; height: 320px; }
.project-photo-pair:has(figure:nth-child(3)) { grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; max-height: min(70vh, 680px); overflow-y: auto; }
.project-photo-pair:has(figure:nth-child(3)) figure:last-child { grid-column: 1 / -1; }

@media (max-width: 980px) {
  .service-field-guide { grid-template-columns: 1fr; }
  .process-documentary { grid-template-columns: minmax(0, 42fr) minmax(0, 58fr); gap: 30px; }
  .process-photo { min-height: 0; }
}

@media (max-width: 760px) {
  .project-documentary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .project-documentary img { height: 88px; }
  .project-documentary i { font-size: 9px; }
  .process-documentary { grid-template-columns: 1fr; }
  .process-photo { min-height: 0; aspect-ratio: 4 / 3; }
  .process-panels { order: 2; }
  .record-copy .closeout-study img { width: min(48%, 220px); height: 260px; }
  .project-photo-pair:has(figure:nth-child(3)) { grid-template-columns: 1fr; max-height: none; }
  .project-photo-pair:has(figure:nth-child(3)) figure:last-child { grid-column: auto; }
  .roof-anatomy .anatomy-marker i { display: block; padding: 4px 5px; font-size: 7px; }
}
