/* Kay2 Commercial: site styles. Tokens match site/style-tile.html. */
:root {
  --graphite-950: #0e1110; --graphite-900: #151a19; --graphite-800: #1f2524; --graphite-700: #2c3332;
  --steel: #8b918f; --steel-light: #c9ccca; --concrete: #e8e5df; --paper: #f4f2ee;
  --copper: #a9582b; --copper-light: #d98c58; --copper-deep: #6e3518; --blue-hour: #1d2a44;
  --ink: #151a19; --ink-soft: #4a5150;
  --display: "Barlow Semi Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 5vw, 72px);
  --measure: 70ch;
  --radius: 2px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.125rem/1.65 var(--body); }
img, video { max-width: 100%; display: block; }
a { color: var(--copper-deep); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--copper); }
:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.05; letter-spacing: 0; margin: 0; }
h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.55rem); line-height: 1.15; }
p { margin: 0 0 1em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--copper); color: #fff; padding: 10px 14px; }
.skip:focus { top: 12px; }
.eyebrow { font: 600 .82rem/1.2 var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--copper-light); margin: 0 0 14px; }
mark.flag { background: #ffe8a3; color: #4a3500; padding: 0 .25em; border-radius: var(--radius); font-size: .85em; font-weight: 600; }
.staging-bar { background: #ffe8a3; color: #4a3500; font: 600 .82rem/1.3 var(--body); text-align: center; padding: 6px 16px; }
.staging-bar mark.flag { background: #fff6d6; }

/* Buttons */
.cta-button { display: inline-block; font: 600 1rem/1 var(--body); text-decoration: none; padding: 15px 22px; border-radius: var(--radius); border: 0; cursor: pointer; background: var(--copper); color: #fff; }
.cta-button:hover { background: var(--copper-deep); color: #fff; }
.cta-button--small { padding: 11px 16px; font-size: .94rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 24px; padding: 12px var(--gutter);
  background: rgba(14, 17, 16, .94); backdrop-filter: blur(8px); color: var(--paper); }
.site-logo img { height: 48px; width: auto; }
.site-header nav { margin-left: auto; display: flex; align-items: center; gap: 28px; }
.site-header ul { list-style: none; display: flex; gap: 24px; margin: 0; padding: 0; }
.site-header nav a:not(.cta-button) { color: var(--paper); text-decoration: none; font: 500 1rem/1 var(--body); }
.site-header nav a:not(.cta-button):hover, .site-header nav a[aria-current="page"] { color: var(--copper-light); }
.nav-toggle { display: none; margin-left: auto; background: none; color: var(--paper); border: 1px solid rgba(201, 204, 202, .4);
  font: 600 .85rem/1 var(--display); letter-spacing: .12em; text-transform: uppercase; padding: 10px 14px; border-radius: var(--radius); }
@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .site-header nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--graphite-950); padding: 8px var(--gutter) 20px; border-top: 1px solid var(--graphite-700); }
  .site-header nav.open { display: flex; }
  .site-header ul { flex-direction: column; gap: 0; }
  .site-header nav a:not(.cta-button) { display: block; padding: 14px 0; border-bottom: 1px solid var(--graphite-800); font-size: 1.1rem; }
  .site-header nav .cta-button { margin-top: 16px; text-align: center; }
}

/* Homepage hero film */
.hero-film { position: relative; height: calc(100svh - 72px); min-height: 560px; max-height: 1000px; overflow: hidden; background: var(--graphite-950); color: var(--paper); }
.hero-film video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-film::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(14,17,16,.86) 0%, rgba(14,17,16,.5) 38%, rgba(14,17,16,0) 64%); }
.film-scene { position: absolute; z-index: 1; left: 0; top: 50%; transform: translateY(-50%); padding: 0 var(--gutter); max-width: 820px; }
.film-scene + .film-scene { display: none; }
.hero-film--live .film-scene { display: block; opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility 0s .7s; }
.hero-film--live .film-scene.is-active { opacity: 1; visibility: visible; transition: opacity .7s ease .15s; }
.film-scene h1, .film-scene h2 { font-size: clamp(2.2rem, 4.4vw, 4rem); line-height: 1; margin-bottom: 18px; max-width: 20ch; }
.film-scene p { max-width: 46ch; color: var(--steel-light); font-size: 1.15rem; }
.film-scene .cta-button { margin-top: 10px; }
.film-controls { position: absolute; z-index: 2; left: var(--gutter); right: var(--gutter); bottom: 28px; display: none; align-items: center; gap: 20px; }
.hero-film--live .film-controls { display: flex; }
.film-dots { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0; }
.film-dots button { width: 30px; height: 30px; padding: 0; border: 0; background: none; cursor: pointer; position: relative; }
.film-dots button::before { content: ""; position: absolute; left: 2px; right: 2px; top: 14px; height: 2px; background: rgba(244,242,238,.35); }
.film-dots button[aria-current="true"]::before { background: var(--copper-light); }
.film-toggle { font: 600 .8rem/1 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--paper); margin-left: auto;
  background: rgba(14,17,16,.5); border: 1px solid rgba(201,204,202,.35); padding: 10px 12px; border-radius: var(--radius); cursor: pointer; }
@media (max-width: 767px) {
  .hero-film { height: calc(100svh - 64px); }
  .hero-film::after { background: linear-gradient(0deg, rgba(14,17,16,.94) 0%, rgba(14,17,16,.62) 48%, rgba(14,17,16,0) 75%); }
  .film-scene { top: auto; bottom: 84px; transform: none; }
  .film-scene p { font-size: 1.05rem; }
  .film-controls { bottom: 20px; }
}

/* Homepage sections */
.home-section { padding: clamp(56px, 8vw, 112px) var(--gutter); }
.home-section-body { max-width: 1200px; margin: 0 auto; }
.home-section-body > h2 { max-width: 22ch; margin-bottom: 22px; }
.home-section-body > p, .home-section-body > ul, .home-section-body > ol { max-width: var(--measure); }
.home-section-body > h3 { margin: 32px 0 10px; }

/* Cards */
.sector-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; margin: 32px 0 8px; max-width: none !important; }
.sector-card { display: flex; flex-direction: column; gap: 8px; padding: 22px; background: #fff; border: 1px solid #ddd8cf; border-radius: var(--radius);
  text-decoration: none; color: var(--ink); transition: border-color .2s, transform .2s; }
.sector-card:hover { border-color: var(--copper); transform: translateY(-2px); color: var(--ink); }
.sector-name { font: 700 1.3rem/1.1 var(--display); }
.sector-blurb { color: var(--ink-soft); font-size: 1rem; line-height: 1.45; }
.sector-icon { display: block; width: 44px; height: 44px; background: var(--copper); -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }
.sector-index { columns: 3 220px; gap: 32px; padding: 0; list-style: none; margin: 20px 0; }
.sector-index li { break-inside: avoid; padding: 7px 0; border-bottom: 1px solid #ddd8cf; }
.sector-index span { color: var(--ink-soft); }
.sector-index-note { color: var(--ink-soft); font-size: 1rem; }
.areas { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; margin: 18px 0; max-width: none !important; }
.areas li { border: 1px solid #cfc9be; padding: 8px 12px; border-radius: var(--radius); font-weight: 500; }
.process-steps { counter-reset: step; list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 14px; max-width: none !important; }
.process-steps li { counter-increment: step; background: #fff; border: 1px solid #ddd8cf; padding: 22px; border-radius: var(--radius); }
.process-steps li::before { content: counter(step, decimal-leading-zero); display: block; font: 700 1rem var(--display); color: var(--copper); letter-spacing: .1em; margin-bottom: 8px; }
.process-steps h3 { font-size: 1.25rem; margin-bottom: 6px; }
.process-steps p { margin: 0; }

/* Inner page hero */
.page-hero { position: relative; background: var(--graphite-950); color: var(--paper); padding: clamp(40px, 6vw, 80px) var(--gutter) clamp(36px, 5vw, 64px); overflow: hidden; }
.page-hero--img { min-height: min(68vh, 640px); display: flex; align-items: flex-end; }
.page-hero-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero--img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14,17,16,.9) 0%, rgba(14,17,16,.62) 45%, rgba(14,17,16,.15) 80%); }
.page-hero-inner { position: relative; z-index: 1; max-width: 1200px; width: 100%; margin: 0 auto; }
.page-hero h1 { max-width: 18ch; margin-bottom: 18px; }
.page-lede { max-width: 58ch; font-size: 1.2rem; color: var(--steel-light); }
@media (max-width: 767px) { .page-hero--img::after { background: linear-gradient(0deg, rgba(14,17,16,.94) 0%, rgba(14,17,16,.7) 60%, rgba(14,17,16,.35) 100%); } }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 22px; font-size: .92rem; }
.crumbs li + li::before { content: "/"; color: var(--steel); margin-right: 6px; }
.crumbs a { color: var(--steel-light); text-decoration: none; }
.crumbs a[aria-current="page"] { color: var(--copper-light); }

/* Article layout */
.page-body { max-width: 1200px; margin: 0 auto; padding: clamp(40px, 6vw, 80px) var(--gutter); display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(32px, 5vw, 72px); }
.page-body--wide { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 960px) { .page-body { grid-template-columns: minmax(0, 1fr); } .page-toc { display: none; } }
.page-copy { max-width: var(--measure); }
.page-copy h2 { margin: 2.2em 0 .6em; }
.page-copy > h2:first-child { margin-top: 0; }
.page-copy h3 { margin: 1.6em 0 .5em; }
.page-copy ul, .page-copy ol { padding-left: 1.2em; margin: 0 0 1.2em; }
.page-copy li { margin-bottom: .45em; }
.page-copy blockquote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--copper); font-size: 1.2rem; color: var(--ink); }
.page-copy blockquote p { margin: 0; }
.page-toc { align-self: start; position: sticky; top: 96px; }
.toc-heading { font: 600 .82rem/1 var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 12px; }
.page-toc ol { list-style: none; padding: 0; margin: 0; border-left: 1px solid #d5cfc5; }
.page-toc li a { display: block; padding: 6px 0 6px 14px; color: var(--ink-soft); text-decoration: none; font-size: .98rem; line-height: 1.35; }
.page-toc li a:hover { color: var(--copper-deep); }

/* Tables */
.cost-table { overflow-x: auto; margin: 1.4em 0; max-width: none !important; }
table { border-collapse: collapse; width: 100%; font-size: 1rem; background: #fff; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid #e2ddd4; vertical-align: top; }
thead th { font: 700 .9rem/1.2 var(--display); letter-spacing: .08em; text-transform: uppercase; background: var(--graphite-900); color: var(--paper); }
tbody th { font-weight: 600; }

/* FAQ */
.page-faq { margin-top: 2.4em; }
.page-faq h2 { margin-bottom: .6em; }
.page-faq details { border-top: 1px solid #d5cfc5; }
.page-faq details:last-child { border-bottom: 1px solid #d5cfc5; }
.page-faq summary { cursor: pointer; list-style: none; padding: 18px 36px 18px 0; position: relative; font: 700 1.25rem/1.25 var(--display); }
.page-faq summary::-webkit-details-marker { display: none; }
.page-faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font: 500 1.6rem/1 var(--body); color: var(--copper); }
.page-faq details[open] summary::after { content: "–"; }
.page-faq details p, .page-faq details ul { max-width: var(--measure); }

/* Closing CTA and project form */
.closing-cta { background: var(--graphite-950); color: var(--paper); padding: clamp(56px, 8vw, 104px) var(--gutter);
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); }
.closing-cta > * { max-width: 1200px; }
.closing-cta--compact { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: center; }
.closing-cta-copy h2 { max-width: 16ch; margin-bottom: 16px; }
.closing-cta-copy p { color: var(--steel-light); max-width: 46ch; }
.closing-cta-phone { margin-top: 14px; font-size: 1rem; color: var(--steel-light); }
.closing-cta-phone a { color: var(--copper-light); }
@media (max-width: 900px) { .closing-cta, .closing-cta--compact { grid-template-columns: minmax(0, 1fr); } }
.project-form { display: grid; gap: 16px; }
.page-contact .project-form { background: #fff; padding: clamp(20px, 4vw, 36px); border: 1px solid #ddd8cf; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .field-row { grid-template-columns: 1fr; } }
.project-form label { display: grid; gap: 6px; font-size: .95rem; font-weight: 500; }
.project-form input, .project-form select, .project-form textarea { font: 400 1rem/1.4 var(--body); padding: 12px 13px; border-radius: var(--radius);
  border: 1px solid #b9b3a9; background: #fff; color: var(--ink); width: 100%; }
.closing-cta .project-form input, .closing-cta .project-form select, .closing-cta .project-form textarea { border-color: var(--graphite-700); background: var(--graphite-900); color: var(--paper); }
.project-form input[type="file"] { padding: 9px; }
.project-form button { justify-self: start; }
.honeypot { position: absolute; left: -9999px; }
.form-status { margin: 0; font-weight: 600; min-height: 1.4em; }
.form-status.ok { color: #3d8a5a; }
.form-status.err { color: #c4432f; }
.closing-cta .form-status.ok { color: #8fd3a8; }
.closing-cta .form-status.err { color: #f0937f; }
.form-note { font-size: .9rem; color: var(--steel); margin: 0; }

/* Footer */
.site-footer { background: var(--graphite-900); color: var(--steel-light); padding: clamp(48px, 6vw, 80px) var(--gutter) 28px; font-size: 1rem; }
.footer-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer img { height: 56px; width: auto; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer a { color: var(--paper); text-decoration: none; }
.site-footer a:hover { color: var(--copper-light); }
.footer-heading { font: 600 .82rem/1 var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--steel); margin-bottom: 14px; }
.footer-legal { max-width: 1200px; margin: 40px auto 0; padding-top: 20px; border-top: 1px solid var(--graphite-700); font-size: .9rem; color: var(--steel); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }

/* Photos: sector cards and in-article figures */
.sector-card--photo { padding: 0; overflow: hidden; }
.sector-photo { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .4s ease; }
.sector-card--photo:hover .sector-photo { transform: scale(1.04); }
.sector-body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 22px; }
.sector-card--photo .sector-icon { width: 32px; height: 32px; }
.page-photo { margin: 2em 0; }
.page-photo img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); background: var(--concrete); }
.page-photo figcaption { font-size: .92rem; color: var(--ink-soft); margin-top: 10px; line-height: 1.45; }
.build-photo-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 28px 0 0; max-width: none !important; }
.build-photo-strip img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
@media (max-width: 760px) { .build-photo-strip { grid-template-columns: 1fr 1fr; } }

/* Sector grid: two feature cards, standard cards, and a closing index card */
.sector-card--feature { grid-column: span 2; padding: 0; overflow: hidden; display: grid; grid-template-columns: 1.15fr 1fr; }
.sector-card--feature .sector-photo { height: 100%; aspect-ratio: auto; }
.sector-card--feature .sector-name { font-size: 1.7rem; }
.sector-card:not(.sector-card--feature):not(.sector-card--index) { padding: 0; overflow: hidden; }
.sector-fact { font: 600 .95rem/1.4 var(--display); letter-spacing: .02em; color: var(--copper-deep); margin-top: auto; padding-top: 6px; }
.sector-card--index { grid-column: 1 / -1; padding: 28px 32px; background: var(--graphite-950); color: var(--paper); border-color: var(--graphite-950); justify-content: center; }
.sector-card--index:hover { color: var(--paper); }
.sector-card--index .sector-blurb { color: var(--steel-light); max-width: 60ch; }
@media (max-width: 760px) { .sector-card--feature { grid-column: auto; grid-template-columns: 1fr; } .sector-card--feature .sector-photo { aspect-ratio: 16 / 9; } }

/* Homepage section layouts */
.home-section--plain { background: var(--paper); }
.home-section--split { background: var(--paper); }
.home-section--split .home-section-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 56px; align-items: start; }
.home-section--split .home-section-body > h2 { grid-column: 1 / -1; }
.home-section--split .page-photo { grid-column: 2; grid-row: 2 / span 3; margin: 0; }
.home-section--split .home-section-body > p { grid-column: 1; }
@media (max-width: 860px) { .home-section--split .home-section-body { grid-template-columns: 1fr; } .home-section--split .page-photo, .home-section--split .home-section-body > p { grid-column: auto; grid-row: auto; } }
.home-section--grid { background: var(--concrete); }
.home-section--steps { background: var(--paper); }
.home-section--statement { background: var(--graphite-950); color: var(--paper); }
.home-section--statement .home-section-body > p:first-of-type { font: 600 clamp(1.4rem, 2.4vw, 1.9rem)/1.3 var(--display); max-width: 34ch; }
.home-section--statement .home-section-body > p { color: var(--steel-light); }
.home-section--statement a { color: var(--copper-light); }
.home-section--table { background: var(--concrete); }
.home-section--table .home-section-body { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 0 56px; }
.home-section--table .home-section-body > * { grid-column: 1; }
.home-section--table .cost-table { grid-column: 2; grid-row: 1 / span 4; margin: 0; }
@media (max-width: 860px) { .home-section--table .home-section-body { grid-template-columns: 1fr; } .home-section--table .cost-table { grid-column: auto; grid-row: auto; margin: 1.2em 0; } }
.home-section--areas { background: var(--paper); }
.home-faq { background: var(--paper); padding: clamp(56px, 8vw, 112px) var(--gutter); border-top: 1px solid #ddd8cf; }
.home-faq .page-faq { margin: 0 auto; max-width: 860px; }
