:root {
  --night: #121819;
  --night-raised: #1b2425;
  --paper: #f5f4f0;
  --panel: #fcfbf8;
  --text: #222a2a;
  --secondary: #505958;
  --line: #d1d2c9;
  --copper: #8c4727;
  --copper-light: #efa16d;
  --site-font: "Helvetica Neue", "Avenir Next", Helvetica, Arial, sans-serif;
  --site-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --page-gutter: clamp(20px, 5.3vw, 90px);
  color-scheme: light;
  font-family: var(--site-font);
  color: var(--text);
  background: var(--night);
  font-size: 16px;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
a { color: inherit; }
button, input, select, textarea, summary { font: inherit; }
button, summary { cursor: pointer; }
:focus-visible { outline: 2px solid #aa5b35; outline-offset: 4px; }
button:disabled { cursor: default; }
.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: 12; transform: translateY(-150%); background: var(--paper); color: var(--night); padding: 12px 17px; }
.skip-link:focus { transform: translateY(0); }
.shell { max-width: 1460px; margin-inline: auto; padding-inline: var(--page-gutter); }
.site-button { display: inline-flex; min-height: 43px; width: fit-content; align-items: center; justify-content: center; border: 1px solid #a9aaa0; border-radius: 4px; padding: 8px 15px; color: var(--text); background: transparent; text-decoration: none; font-size: .92rem; line-height: 1.2; font-weight: 700; }
.site-button:hover { color: var(--copper); border-color: var(--copper); }
.site-button.primary { background: #7b3e23; border-color: #7b3e23; color: #fff7f0; }
.site-button.primary:hover { background: #5b2d19; border-color: #5b2d19; }
.site-button:disabled { opacity: .65; }
.site-button.small { font-size: .84rem; min-height: 38px; padding: 7px 10px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.under-link { background: none; border: 0; padding: 0; color: #783b22; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; font-weight: 700; width: fit-content; text-align: left; }
.under-link:hover { color: #482613; }

.site-header { display: flex; align-items: center; justify-content: space-between; gap: clamp(12px, 2.6vw, 40px); color: #f4f0e9; }
.site-header:not(.masthead) { padding: 15px var(--page-gutter); min-height: 78px; background: var(--night); border-bottom: 1px solid #313a38; position: relative; z-index: 5; }
.site-brand { display: inline-flex; width: fit-content; flex: none; align-items: center; gap: 11px; color: #f0ece6; font-size: .85rem; font-weight: 790; letter-spacing: .12em; line-height: 1.15; text-transform: uppercase; text-decoration: none; pointer-events: auto; }
.site-brand img { display: block; object-fit: contain; }
.site-header-actions { display: flex; min-width: 0; gap: clamp(9px, 1.8vw, 25px); align-items: center; }
.site-nav { display: flex; align-items: center; gap: clamp(12px, 1.8vw, 27px); pointer-events: auto; }
.site-nav a, .mobile-nav a:not(.site-button) { color: #f3efe9; font-weight: 650; text-decoration: none; font-size: .88rem; white-space: nowrap; }
.site-nav a:hover, .site-nav a[aria-current="page"], .mobile-nav a[aria-current="page"] { color: #ffbb91; }
.nav-estimate { border-color: #d79b75a0; color: #ffe3d2; min-height: 38px; white-space: nowrap; pointer-events: auto; }
.nav-estimate:hover, .nav-estimate[aria-current="page"] { color: #23170f; border-color: var(--copper-light); background: var(--copper-light); }
.mobile-nav { display: none; position: relative; pointer-events: auto; }
.mobile-nav summary { list-style: none; display: flex; align-items: center; min-height: 39px; padding: 7px 9px; border: 1px solid #7c6c60; border-radius: 4px; color: #fff1e6; font-weight: 680; font-size: .86rem; }
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav[open] summary { color: #ffbd95; }
.mobile-nav nav { display: grid; position: absolute; z-index: 7; top: calc(100% + 7px); right: 0; width: min(250px, calc(100vw - 35px)); padding: 8px; background: #151d1e; border: 1px solid #a18a79; border-radius: 4px; box-shadow: 0 16px 34px #0008; }
.mobile-nav nav a { display: flex; align-items: center; min-height: 38px; padding: 6px 10px; width: 100%; }
.mobile-nav nav a:hover { background: #253030; }
.masthead.site-header { z-index: 5; }
.masthead .site-header-actions { text-shadow: 0 2px 10px #000; }
.masthead .chapter-menu { pointer-events: auto; }
.masthead .edition { pointer-events: none; }
.masthead .nav-estimate { background: #141919bd; }
.masthead .nav-estimate:hover { background: var(--copper-light); text-shadow: none; }
.tour-frame { color: #f4f1ea; color-scheme: dark; }
.tour-frame .scene-veil { background: linear-gradient(90deg, #101418fa 0%, #101418ed 14%, #101418ba 31%, #10141854 49%, transparent 66%), linear-gradient(0deg, #0a0d0df7 0%, #0a0d0d80 12%, transparent 28%), linear-gradient(180deg, #0b0e0ec2, transparent 21%); }
.tour-frame #overview .lede { width: min(100%, 360px); }
.tour-frame #overview .hero-tagline { max-width: 24em; margin-bottom: clamp(11px, 2.2svh, 19px); color: #ede8e0; font-weight: 560; line-height: 1.38; text-wrap: pretty; }
.tour-frame[data-chapter="0"] .hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 7px 9px; }
.tour-secondary { color: #fae8db; background: #141b1bd4; border-color: #e2b496a0; }
.tour-secondary:hover { color: #fff5eb; border-color: var(--copper-light); }
.tour-frame .hero-actions > * { min-height: 45px; padding-inline: 13px; }
.hero-contact { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 4px; color: #f4eee7; font-size: .89rem; font-weight: 650; text-decoration: none; }
.hero-contact span { color: #ffc3a0; white-space: nowrap; text-decoration: underline; text-underline-offset: 3px; }
.hero-contact:hover span { color: #fff1e6; }
.chapter-actions { display: flex; flex-wrap: wrap; gap: 7px 13px; margin-top: 14px; }
.chapter-link { display: inline-flex; align-items: center; min-height: 35px; color: #f9d6bf; text-decoration: underline; text-underline-offset: 4px; font-size: .86rem; font-weight: 690; }
.chapter-link:hover { color: #fff1df; }
.chapter-link:first-child { border: 1px solid #d5a17b7d; border-radius: 3px; background: #1c1a18bf; padding: 4px 10px; text-decoration: none; }

.page-intro { background: var(--night); color: #f5f0e9; padding-block: clamp(48px, 7.5vw, 112px) clamp(43px, 6vw, 86px); }
.page-intro h1 { max-width: 16ch; margin: 0; font-size: clamp(3.05rem, 7.7vw, 7.1rem); line-height: .9; letter-spacing: -.075em; font-weight: 690; }
.intro-copy { max-width: 600px; margin: 20px 0 0; color: #d4d9d4; font-size: clamp(1.00rem, 1.8vw, 1.4rem); line-height: 1.57; text-wrap: pretty; }
.section { padding-block: clamp(42px, 6.4vw, 96px); background: var(--paper); color: var(--text); color-scheme: light; }
.section h2, .closing h2 { max-width: none; font-size: clamp(2.3rem, 4.45vw, 4.5rem); line-height: .99; letter-spacing: -.06em; font-weight: 690; margin: 0; }
.section h3 { margin: 0; letter-spacing: -.026em; font-size: clamp(1.14rem, 2vw, 1.6rem); line-height: 1.12; }
.section p, .closing p { line-height: 1.55; }
.section-label { display: flex; gap: 8px; align-items: center; width: fit-content; margin: 0 0 12px; color: var(--copper); font: 680 .77rem/1.3 var(--site-mono); letter-spacing: .08em; text-transform: uppercase; }
.section-label::before { content: ""; display: block; width: 14px; height: 1px; background: currentColor; }
.page-intro .section-label, .capabilities-band .section-label { color: #f0a57a; }
.section-split, .section-heading { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(21px, 5.8vw, 88px); }
.section-heading { grid-template-columns: minmax(0, 1fr) auto; align-items: end; margin-bottom: 27px; }
.section-split > div > .site-button { margin-top: 23px; }
.section-split > div > p:not(.section-label) { max-width: 46ch; color: var(--secondary); }
.water-section { background: #e2e8e3; border-top: 1px solid #b8c2b9; }
.water-list article, .capability-list article { padding: 16px 0 20px; border-top: 1px solid #adb6af; }
.water-list article p, .capability-list article p { max-width: 57ch; margin: 8px 0 13px; color: var(--secondary); }
.water-list article + article { margin-top: 5px; }
.sector-strip { background: #edf0eb; padding-block: clamp(30px, 4.7vw, 63px); }
.sector-strip h2 { font-size: clamp(2.05rem, 4vw, 3.7rem); }
.sector-strip p { margin: 0 0 8px; }
.featured { background: #f7f6f2; }
.case-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.case-card { display: flex; flex-direction: column; align-items: start; gap: 12px; padding: clamp(17px, 3vw, 33px); background: var(--panel); border-top: 3px solid #bb815d; }
.case-card:hover { background: #fffdf9; }
.case-card .case-meta { display: flex; flex-wrap: wrap; gap: 3px 13px; margin: 0; color: #69452f; font-size: .84rem; font-weight: 650; }
.case-card h3 { font-size: clamp(1.58rem, 2.8vw, 2.85rem); }
.case-card h3 a { color: inherit; text-decoration: none; }
.case-card h3 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.case-card > p:not(.case-meta) { margin: 0 0 9px; color: var(--secondary); }
.case-card .under-link { margin-top: auto; }
.service-matrix { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 21px; }
.service-matrix article { border-top: 1px solid var(--line); padding: 13px 0; }
.service-matrix article p { color: var(--secondary); margin: 6px 0 0; }
.system-directory { background: #f7f6f3; }
.system-links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; border: 1px solid var(--line); background: var(--line); }
.system-links button { height: 100%; width: 100%; min-height: 51px; border: 0; padding: 9px 12px; text-align: left; font-weight: 670; background: var(--panel); color: var(--text); }
.system-links button:hover { color: #74351c; background: #f0e3d7; }
.capabilities-band { background: var(--night-raised); color: #f5f1eb; }
.capabilities-band article { border-color: #56645c; }
.capabilities-band article p { color: #d5dbd7; }

.closing { padding: clamp(36px, 5.6vw, 72px) 0; background: #ead7c6; color: #261f1a; color-scheme: light; }
.closing-layout { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(250px,.7fr); align-items: center; gap: clamp(15px,4vw,55px); }
.closing p { margin: 12px 0 0; color: #523f32; }
.closing .actions { justify-content: flex-end; }
.closing .site-button:not(.primary) { border-color: #a18570; }
.site-footer { padding: 28px 0 30px; background: var(--night); color: #e8e4dd; }
.footer-layout { display: grid; grid-template-columns: 1fr 1.1fr 1fr; gap: 16px 20px; }
.footer-layout p { margin: 9px 0 0; color: #bac4bf; font-size: .89rem; }
.footer-layout nav, .footer-contact { display: flex; flex-wrap: wrap; align-content: start; gap: 9px 16px; padding-top: 8px; }
.footer-layout a { text-decoration: none; }
.footer-layout a:hover { color: #ffc4a2; }
.footer-contact { flex-direction: column; overflow-wrap: anywhere; }

.project-directory { background: var(--paper); }
.filter-grid { display: grid; grid-template-columns: minmax(0,1.25fr) repeat(2,minmax(0,1fr)) auto; gap: 9px 12px; align-items: end; }
.filter-grid > label, .site-form label:not(.choice) { display: grid; gap: 7px; color: var(--text); font-size: .91rem; font-weight: 680; }
.filter-grid select, .filter-grid input, .site-form input:not([type=checkbox]), .site-form select, .site-form textarea { min-width: 0; background: #fffefa; color: var(--text); border: 1px solid #a1a79e; border-radius: 4px; min-height: 44px; padding: 8px 11px; font-size: 1rem; font-weight: 480; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 52%, #5a605b 53%), linear-gradient(135deg, #5a605b 50%, transparent 51%) !important; background-position: calc(100% - 16px) 52%, calc(100% - 11px) 52% !important; background-size: 5px 5px !important; background-repeat: no-repeat !important; padding-inline-end: 26px !important; }
.result-count { margin: 15px 0 12px; color: #47524d; font-weight: 690; font-size: .92rem; }
.directory-labels, .directory-row { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,.62fr) minmax(0,1.55fr); gap: 14px 24px; }
.directory-labels { color: #40504a; background: #e9ece4; border-block: 1px solid #bdc7bb; padding: 10px 13px; font-size: .85rem; font-weight: 740; }
.directory-list { list-style: none; margin: 0; padding: 0; }
.directory-row { border-bottom: 1px solid var(--line); padding: 13px; align-items: start; overflow-wrap: anywhere; }
.directory-row h3 { margin: 0 0 4px; font-size: 1.01rem; }
.directory-row h3 a { text-decoration: underline; text-underline-offset: 3px; }
.directory-row h3 a:hover { color: var(--copper); }
.directory-row p { color: #414b48; margin: 0; line-height: 1.47; }
.row-sector { color: #565e57; font-size: .83rem; }
.empty-state { padding: 15px 0; color: #505c54; }
.case-content { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(225px,.65fr); gap: clamp(18px,6vw,80px); align-items: start; }
.case-content h2 { font-size: clamp(1.9rem, 3.1vw, 3.4rem); }
.case-content p { max-width: 68ch; margin: 11px 0 28px; color: var(--secondary); }
.case-records { list-style: none; padding: 0; margin: 20px 0; }
.case-records li { margin: 0; padding: 12px 0; border-top: 1px solid var(--line); }
.case-records p { margin: 6px 0 0; }
.detail-card { background: #e5eae4; padding: 19px 20px; border: 1px solid #c5cec2; }
.detail-card ul { display: grid; gap: 9px; margin: 12px 0 22px; padding-left: 19px; }
.detail-card li a { text-decoration: underline; text-underline-offset: 3px; }

.estimate-layout, .contact-layout, .career-layout { display: grid; align-items: start; grid-template-columns: minmax(205px,.61fr) minmax(0,1.39fr); gap: clamp(20px,6vw,87px); }
.career-layout { display: block; }
.site-form { padding: clamp(16px, 3.25vw, 39px); border: 1px solid var(--line); background: var(--panel); }
.site-form h2 { font-size: clamp(1.85rem, 3.4vw, 3.3rem); margin-bottom: 20px; }
.site-form h3 { margin: 0 0 13px; }
.site-form > label, .site-form [data-estimate-step] > label { margin-block: 15px; }
.site-form label span:not(.choice > span, .upload-label) { color: #5b665b; font-size: .8rem; font-weight: 530; width: fit-content; }
.site-form input:not([type=checkbox]), .site-form select, .site-form textarea { width: 100%; }
.site-form textarea { resize: vertical; }
.site-form input[type=file] { padding: 7px; }
.site-form .actions { margin-top: 18px; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 13px 14px; margin-top: 14px; }
.form-hint { color: #4f5d53; font-size: .89rem; margin: 15px 0 14px; }
.form-result { margin: 13px 0; padding: 10px 13px; border-left: 3px solid #a95d39; background: #f5e6d8; color: #462c20; font-weight: 650; }
.form-result[data-state="success"] { border-color: #4b6a50; background: #e3eee2; color: #2f5037; }
.step-list { display: grid; gap: 1px; margin: 0 0 16px; padding: 0; list-style: none; counter-reset: estimate-step; }
.step-list li { counter-increment: estimate-step; }
.step-list button { width: 100%; text-align: left; display: flex; align-items: center; gap: 8px; padding: 10px 0; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: #3d4945; font-weight: 700; }
.step-list button::before { content: counter(estimate-step); display: grid; place-items: center; width: 25px; height: 25px; flex: none; border: 1px solid #acb0a5; border-radius: 50%; font: 650 .78rem var(--site-mono); }
.step-list button[aria-current="step"] { color: #7b3e23; }
.step-list button[aria-current="step"]::before { background: #7b3e23; border-color: #7b3e23; color: #fff; }
.step-list button:disabled { opacity: .54; }
.choices { margin: 17px 0; padding: 0; border: 0; min-width: 0; }
.choices legend { margin-bottom: 9px; padding: 0; font-weight: 750; }
.option-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.choice { display: flex; align-items: center; gap: 8px; padding: 7px 9px; min-height: 44px; background: #f6f6f1; border: 1px solid #d0d4c9; border-radius: 4px; color: #26322d; font-size: .93rem; font-weight: 590; line-height: 1.35; cursor: pointer; }
.choice:has(input:checked) { background: #f6e7dc; border-color: #b88569; color: #612d17; }
.choice input { accent-color: #854326; flex: none; margin: 0; width: 17px; height: 17px; }
.choice.consent { margin-block: 14px; }
.estimate-brief { padding: 16px 18px; background: #e8eee6; border: 1px solid #cbd5c9; margin-bottom: 17px; }
.estimate-brief dl { display: grid; grid-template-columns: minmax(100px,.45fr) minmax(0,1.55fr); gap: 7px 13px; margin: 10px 0 14px; }
.estimate-brief dt { font-weight: 710; }
.estimate-brief dd { margin: 0; overflow-wrap: anywhere; }
.contact-details h2 { margin-bottom: 14px; }
.contact-details > a { display: block; width: fit-content; color: #763c21; overflow-wrap: anywhere; margin-bottom: 8px; text-decoration: underline; text-underline-offset: 3px; }
.office-list { margin-top: 26px; }
.office-list > div { border-top: 1px solid var(--line); padding: 12px 0; }
.office-list p { margin: 5px 0 0; color: var(--secondary); }
.career-openings { display: grid; grid-template-columns: minmax(240px,.7fr) minmax(0,1.3fr); gap: clamp(26px,5vw,78px); }
.career-openings:has(#contractor-opportunities[hidden]) { grid-template-columns: 1fr; }
.career-openings h2 { font-size: clamp(2rem,3.6vw,3.4rem); }
.job-list { display: grid; gap: 8px; margin-top: 19px; }
.job-card { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px solid var(--line); padding: 16px 0; }
.job-card > div { flex: 1 1 245px; }
#contractor-list .job-card { align-items: flex-start; background: #e6ebe5; border: 1px solid #c5cec2; border-top: 3px solid #bb815d; padding: clamp(17px,2vw,25px); }
.job-card p, .role-description p { margin: 7px 0 0; color: var(--secondary); }
.application { display: grid; grid-template-columns: minmax(0,.65fr) minmax(0,1.35fr); gap: clamp(18px,5vw,70px); border-top: 1px solid var(--line); padding-top: 22px; margin-top: 36px; }
.role-description ul { line-height: 1.5; padding-left: 19px; }
#crew-fields { border: 0; margin: 22px 0 0; padding: 0; min-width: 0; }
#crew-fields legend { padding: 0; font-weight: 750; }
#crew-fields .field-grid { margin-top: 9px; }

@media (max-width: 995px) {
  .site-header .desktop-estimate, .site-header .site-nav { display: none; }
  .site-header .mobile-nav { display: block; }
}
@media (max-width: 760px) {
  .site-header:not(.masthead) { min-height: 64px; padding-block: 10px; }
  .site-header .site-brand { font-size: .73rem; gap: 7px; letter-spacing: .09em; }
  .site-header .site-brand img { width: 36px; height: 36px; }
  .masthead .edition { display: none; }
  .masthead .chapter-menu { font-size: .8rem; }
  .section-split, .section-heading, .closing-layout, .case-content, .estimate-layout, .contact-layout, .career-openings, .application { grid-template-columns: 1fr; }
  .closing .actions { justify-content: flex-start; }
  .case-grid { grid-template-columns: 1fr; }
  .case-card { border-top-width: 2px; }
  .filter-grid { grid-template-columns: 1fr 1fr; }
  .filter-grid label:first-child { grid-column: 1 / -1; }
  .directory-labels { display: none; }
  .directory-row { grid-template-columns: 1fr; gap: 4px; padding-inline: 0; }
  .directory-row:first-child { border-top: 1px solid var(--line); }
  .footer-layout { grid-template-columns: 1fr 1fr; }
  .footer-contact { grid-column: 1 / -1; }
}
@media (max-width: 760px) and (orientation: portrait), (max-width: 540px) {
  .tour-frame .scene-veil { background: linear-gradient(0deg, #090e15 0%, #090e15f5 18%, #090e15e0 33%, #090e1545 55%, transparent 72%), linear-gradient(180deg, #090d1392, transparent 20%); }
  .tour-frame .hero-actions > * { min-height: 41px; padding-inline: 10px; font-size: .81rem; }
  .chapter-actions { margin-top: 8px; }
  .chapter-link { min-height: 30px; font-size: .82rem; }
}
@media (max-width: 530px) {
  .service-matrix, .field-grid, .option-grid { grid-template-columns: 1fr; }
  .section { padding-block: 36px; }
  .step-list { margin-bottom: 11px; }
  .step-list button { min-height: 39px; padding-block: 6px; }
  .estimate-brief dl { grid-template-columns: minmax(86px,.6fr) minmax(0,1.4fr); }
}
@media (max-height: 470px) and (orientation: landscape) {
  .tour-frame #overview .hero-tagline { margin-bottom: 7px; line-height: 1.2; }
  .tour-frame .hero-actions > * { min-height: 36px; padding-block: 5px; font-size: .83rem; }
  .hero-contact { min-height: 36px; margin-top: 1px; }
}
