/*
 * DESIGN REMINDER — Precision Copper
 * Warm-white public navigation uses the retained transparent grey-and-copper COR mark, without a backing panel or top rule.
 * Typography: Barlow Condensed (display) + DM Sans (body), with one shared hero scale across homepage and public subpages.
 */
:root {
  --ink: #101010;
  --ink-soft: #1a1a1a;
  --ink-raised: #252525;
  --paper: #f4f1eb;
  --paper-bright: #fdfcf9;
  --mineral: #d6d2ca;
  --muted: #aaa79f;
  --line: rgba(244, 241, 235, .18);
  --line-dark: rgba(16, 16, 16, .14);
  --copper: #d87543;
  --copper-light: #f0a56f;
  --danger: #b53d32;
  --shadow: 0 20px 60px rgba(0, 0, 0, .18);
  --site-width: min(1220px, calc(100vw - 48px));
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --display-hero-size: clamp(3.3rem, 7vw, 7.05rem);
  --display-lead-size: clamp(1.08rem, 1.7vw, 1.32rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: "DM Sans", Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--copper-light); outline-offset: 3px; }
.site-shell { width: var(--site-width); margin-inline: auto; }
.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; left: 1rem; top: -4rem; z-index: 90; padding: .8rem 1rem; background: var(--copper); color: var(--ink); font-weight: 700; transition: top .18s var(--ease-out); }
.skip-link:focus { top: 1rem; }

.utility-bar { background: var(--ink); color: var(--paper); font-size: .77rem; letter-spacing: .06em; text-transform: uppercase; }
.utility-inner { min-height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.utility-inner a { color: var(--copper-light); font-weight: 700; }
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(253, 252, 249, .98); border-bottom: 1px solid rgba(16, 16, 16, .14); backdrop-filter: blur(12px); }
.header-inner { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: block; width: 190px; flex: 0 0 auto; padding: 0; background: transparent; box-shadow: none; }
.brand img { display: block; width: 100%; height: auto; object-fit: contain; }
.site-nav { display: flex; align-items: center; justify-content: flex-end; gap: .25rem; }
.nav-link { position: relative; padding: .8rem .78rem; color: #292622; font-size: .83rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.nav-link::after { content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .48rem; height: 2px; background: var(--copper); transform: scaleX(0); transform-origin: left; transition: transform .18s var(--ease-out); }
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); }
.menu-toggle { display: none; border: 0; background: transparent; padding: .7rem; }
.menu-toggle span:not(.sr-only) { display: block; width: 24px; height: 2px; margin: 5px 0; background: var(--ink); }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .8rem 1.1rem; border: 1px solid var(--copper); background: var(--copper); color: var(--ink); font-size: .8rem; font-weight: 800; letter-spacing: .08em; line-height: 1; text-transform: uppercase; transition: transform .16s var(--ease-out), background .16s var(--ease-out), color .16s var(--ease-out), border-color .16s var(--ease-out); }
.button:hover { background: var(--copper-light); border-color: var(--copper-light); transform: translateY(-2px); }
.button:active { transform: scale(.97); }
.button-small { min-height: 39px; padding: .65rem .8rem; font-size: .72rem; }
.button-outline { background: transparent; color: var(--paper); border-color: rgba(244, 241, 235, .6); }
.button-outline:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.button-dark { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.button-dark:hover { background: var(--ink-raised); border-color: var(--ink-raised); color: var(--paper); }
.button-outline-dark { background: transparent; border-color: rgba(16, 16, 16, .42); color: var(--ink); }
.button-outline-dark:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.button-row { display: flex; flex-wrap: wrap; gap: .75rem; }

.eyebrow { display: flex; align-items: center; gap: .65rem; margin: 0 0 1rem; color: var(--copper); font-size: .75rem; font-weight: 800; letter-spacing: .14em; line-height: 1.2; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 30px; height: 2px; background: currentColor; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: "Barlow Condensed", Arial, sans-serif; font-weight: 700; letter-spacing: -.015em; line-height: .98; }
h1 { max-width: 11ch; margin-bottom: 1.4rem; font-size: var(--display-hero-size); text-transform: uppercase; }
h2 { margin-bottom: 1.1rem; font-size: clamp(2.5rem, 5vw, 4.5rem); text-transform: uppercase; }
h3 { margin-bottom: .7rem; font-size: clamp(1.65rem, 2.5vw, 2.25rem); text-transform: uppercase; }
.lead { max-width: 56ch; font-size: var(--display-lead-size); line-height: 1.6; }
.hero h1, .page-hero h1 { font-size: var(--display-hero-size); }
.hero .lead, .page-hero .lead { font-size: var(--display-lead-size); }
.section { padding: clamp(4.5rem, 9vw, 8.5rem) 0; }
.section-dark { background: var(--ink); color: var(--paper); }
.section-mineral { background: #dedad2; }
.section-header { max-width: 680px; margin-bottom: clamp(2.3rem, 5vw, 4.2rem); }
.section-header .eyebrow { color: var(--copper); }

.hero { position: relative; overflow: hidden; min-height: min(745px, calc(100vh - 118px)); isolation: isolate; background: var(--ink); color: var(--paper); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: linear-gradient(90deg, rgba(16,16,16,.98) 0%, rgba(16,16,16,.9) 36%, rgba(16,16,16,.58) 63%, rgba(16,16,16,.12) 100%), url("../images/hero-electrical.png") center/cover no-repeat; }
.hero::after { content: ""; position: absolute; z-index: -1; left: 0; bottom: 0; width: min(56vw, 730px); height: 42%; opacity: .8; background: repeating-linear-gradient(90deg, transparent 0 15px, rgba(216,117,67,.75) 15px 17px, transparent 17px 48px); clip-path: polygon(0 0, 100% 80%, 100% 100%, 0 100%); }
.hero-grid { min-height: inherit; display: grid; align-items: center; grid-template-columns: minmax(0, 640px) 1fr; padding: 5.8rem 0; }
.hero-content { position: relative; }
.hero h1 { margin-bottom: 1.3rem; }
.hero .lead { margin-bottom: 2rem; color: #e2ded8; }
.hero-detail { position: absolute; right: 0; bottom: 2.5rem; width: min(300px, 30%); display: grid; gap: .45rem; padding-left: 1rem; border-left: 2px solid var(--copper); color: #d7d2ca; font-size: .78rem; }
.hero-detail strong { color: var(--paper); font-size: .9rem; text-transform: uppercase; letter-spacing: .08em; }

.stats-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--ink-soft); color: var(--paper); }
.stats-inner { display: grid; grid-template-columns: repeat(3, 1fr); }
.stat { padding: 1.65rem 1.25rem; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; margin-bottom: .25rem; color: var(--copper-light); font-family: "Barlow Condensed"; font-size: 1.8rem; letter-spacing: .03em; text-transform: uppercase; }
.stat span { display: block; max-width: 19ch; font-size: .82rem; color: #d8d4ce; }

.split-intro { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 8vw, 9rem); align-items: start; }
.split-intro .intro-copy { padding-top: .6rem; }
.split-intro .intro-copy p { max-width: 56ch; font-size: 1.03rem; }
.rule-list { margin: 2rem 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line-dark); }
.rule-list li { display: grid; grid-template-columns: 50px 1fr; gap: 1rem; align-items: baseline; padding: 1rem 0; border-bottom: 1px solid var(--line-dark); }
.rule-list strong { color: var(--copper); font-family: "Barlow Condensed"; font-size: 1.3rem; letter-spacing: .06em; }

.service-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.service-card { position: relative; min-height: 275px; grid-column: span 4; padding: 2rem; background: var(--ink-soft); overflow: hidden; transition: background .2s var(--ease-out); }
.service-card:nth-child(4), .service-card:nth-child(5) { grid-column: span 6; }
.service-card::after { content: ""; position: absolute; right: -35px; bottom: -50px; width: 170px; height: 170px; border: 1px solid rgba(216,117,67,.38); border-radius: 50%; transition: transform .35s var(--ease-out); }
.service-card:hover { background: var(--ink-raised); }
.service-card:hover::after { transform: scale(1.13); }
.service-number { color: var(--copper); font-family: "Barlow Condensed"; font-size: 1.3rem; font-weight: 700; letter-spacing: .08em; }
.service-card h3 { position: relative; z-index: 1; margin: 2.5rem 0 .8rem; color: var(--paper); }
.service-card p { position: relative; z-index: 1; max-width: 34ch; color: #d5d0c8; font-size: .94rem; }
.text-link { display: inline-flex; align-items: center; gap: .5rem; margin-top: 1rem; color: var(--copper-light); font-size: .78rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.text-link::after { content: "→"; transition: transform .18s var(--ease-out); }
.text-link:hover::after { transform: translateX(4px); }

.image-split { display: grid; grid-template-columns: 1.2fr .8fr; min-height: 580px; background: var(--ink); color: var(--paper); }
.image-split-media { min-height: 460px; background: url("../images/renovation-project.png") center/cover; }
.image-split-content { display: flex; flex-direction: column; justify-content: center; padding: clamp(3rem, 7vw, 7rem); }
.image-split-content p { max-width: 43ch; color: #d7d1ca; }

.projects-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.5rem; }
.project-card { grid-column: span 4; background: var(--paper-bright); border: 1px solid var(--line-dark); }
.project-image { position: relative; aspect-ratio: 4/3; overflow: hidden; background: #c8c3b9; }
.project-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s var(--ease-out); }
.project-card:hover .project-image img { transform: scale(1.04); }
.project-card-content { padding: 1.5rem; }
.project-card-content h2, .project-card-content h3 { margin-bottom: .35rem; }
.project-meta { color: #6a665f; font-size: .75rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.project-gallery-trigger { position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0; background: transparent; color: var(--paper); cursor: zoom-in; text-align: left; }
.project-gallery-trigger::after { position: absolute; inset: 0; content: ""; background: linear-gradient(180deg, rgba(16,16,16,0) 48%, rgba(16,16,16,.72) 100%); opacity: .72; transition: opacity .22s var(--ease-out); }
.project-gallery-trigger:hover::after, .project-gallery-trigger:focus-visible::after { opacity: 1; }
.project-gallery-trigger:focus-visible { outline: 3px solid var(--copper-light); outline-offset: -3px; }
.project-gallery-trigger-label { position: absolute; z-index: 1; right: 1rem; bottom: .9rem; color: var(--paper); font-size: .72rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.project-gallery-count { position: absolute; z-index: 2; top: .8rem; right: .8rem; padding: .35rem .52rem; background: rgba(16,16,16,.82); color: var(--paper); font-size: .67rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.gallery-text-trigger { margin-top: 1.2rem; padding: 0; border: 0; background: transparent; cursor: pointer; font-family: inherit; }
.project-gallery-dialog { width: min(1180px, calc(100vw - 2rem)); max-width: none; max-height: calc(100dvh - 2rem); margin: auto; padding: 0; border: 0; background: #151515; color: var(--paper); box-shadow: 0 28px 75px rgba(0,0,0,.45); }
.project-gallery-dialog::backdrop { background: rgba(12,11,10,.78); backdrop-filter: blur(7px); }
.project-gallery-dialog-shell { display: grid; gap: 1rem; padding: clamp(1rem, 2.4vw, 1.75rem); }
.project-gallery-dialog-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.project-gallery-dialog-header .eyebrow { margin-bottom: .25rem; }
.project-gallery-dialog-header h2 { margin: 0; color: var(--paper); font-size: clamp(2rem, 4.5vw, 4rem); }
.project-gallery-close, .project-gallery-nav { display: inline-grid; place-items: center; flex: 0 0 auto; border: 1px solid #746c63; background: transparent; color: var(--paper); cursor: pointer; transition: border-color .18s var(--ease-out), background .18s var(--ease-out), color .18s var(--ease-out), transform .16s var(--ease-out); }
.project-gallery-close { width: 42px; height: 42px; font-size: 1.65rem; line-height: 1; }
.project-gallery-nav { width: 45px; height: 45px; font-size: 1.3rem; }
.project-gallery-close:hover, .project-gallery-nav:hover, .project-gallery-close:focus-visible, .project-gallery-nav:focus-visible { border-color: var(--copper-light); background: var(--copper); color: var(--ink); outline: 0; }
.project-gallery-close:active, .project-gallery-nav:active { transform: scale(.97); }
.project-gallery-stage { display: grid; gap: .7rem; margin: 0; }
.project-gallery-stage > img { display: block; width: 100%; height: min(62vh, 680px); object-fit: contain; background: #0d0d0d; }
.project-gallery-stage figcaption { display: flex; justify-content: space-between; gap: 1rem; color: #ddd7cf; font-size: .83rem; }
.project-gallery-stage figcaption span:last-child { flex: 0 0 auto; color: var(--copper-light); font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.project-gallery-controls { display: flex; justify-content: flex-end; gap: .5rem; }
.project-gallery-thumbnails { display: flex; gap: .65rem; overflow-x: auto; padding-bottom: .2rem; }
.project-gallery-thumbnail { flex: 0 0 88px; aspect-ratio: 4/3; padding: 0; border: 2px solid transparent; background: #272522; cursor: pointer; opacity: .62; transition: border-color .18s var(--ease-out), opacity .18s var(--ease-out), transform .18s var(--ease-out); }
.project-gallery-thumbnail img { display: block; width: 100%; height: 100%; object-fit: cover; }
.project-gallery-thumbnail:hover, .project-gallery-thumbnail:focus-visible, .project-gallery-thumbnail[aria-current="true"] { border-color: var(--copper-light); opacity: 1; outline: 0; }
.project-gallery-thumbnail:active { transform: scale(.97); }
.empty-projects { grid-column: 1/-1; padding: 3rem; border: 1px dashed #9e998f; background: rgba(255,255,255,.32); }
.empty-projects h3 { margin-bottom: .6rem; }
.empty-projects p { max-width: 54ch; margin-bottom: 0; }

.callout { position: relative; overflow: hidden; background: var(--copper); color: var(--ink); }
.callout::after { content: "COR"; position: absolute; right: -.07em; bottom: -.36em; color: rgba(16,16,16,.12); font-family: "Barlow Condensed"; font-size: clamp(11rem, 30vw, 29rem); font-weight: 700; letter-spacing: -.09em; line-height: 1; pointer-events: none; }
.callout-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 2rem; padding: clamp(3rem, 7vw, 6rem) 0; }
.callout h2 { max-width: 14ch; margin: 0; }
.callout .button { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.callout .button:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }

/* Secondary-page rule: all content remains visible above the fold; the homepage uses .hero and is intentionally untouched. */
.page-hero { position: relative; isolation: isolate; overflow: hidden; padding: clamp(2.7rem, 4.8vw, 4.7rem) 0 clamp(2.35rem, 4.1vw, 3.5rem); background: var(--ink); color: var(--paper); }
.page-hero::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; z-index: -1; width: min(49vw, 740px); opacity: .78; pointer-events: none; background-image: repeating-linear-gradient(to bottom, transparent 0 48px, rgba(216,117,67,.78) 48px 50px, transparent 50px 64px), repeating-linear-gradient(to right, transparent 0 110px, rgba(216,117,67,.56) 110px 112px, transparent 112px 136px); -webkit-mask-image: linear-gradient(to right, transparent 0, #000 27%, #000 100%); mask-image: linear-gradient(to right, transparent 0, #000 27%, #000 100%); }
.page-hero .site-shell { position: relative; z-index: 1; }
.page-hero h1 { max-width: 10.8ch; margin-bottom: 1rem; font-size: clamp(3.25rem, 5.6vw, 5.5rem); line-height: .94; }
.page-hero .lead { max-width: 57ch; margin-bottom: 0; color: #d8d3cb; font-size: clamp(1rem, 1.35vw, 1.2rem); line-height: 1.5; }
.page-content { max-width: 800px; }
.page-content p { font-size: 1.04rem; }
.page-content p + p { margin-top: 1.2rem; }
.content-photo { margin: 2.4rem 0 0; }
.content-photo img { width: 100%; max-height: 560px; object-fit: cover; object-position: center; }
.content-photo figcaption { margin-top: .65rem; color: #6a665f; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }

.services-list { border-top: 1px solid var(--line-dark); }
.service-row { display: grid; grid-template-columns: 92px minmax(220px, .85fr) minmax(0, 1.4fr) auto; gap: 1.5rem; align-items: start; padding: 2rem 0; border-bottom: 1px solid var(--line-dark); }
.service-row-index { color: var(--copper); font-family: "Barlow Condensed"; font-size: 1.65rem; font-weight: 700; letter-spacing: .06em; }
.service-row h3 { margin: 0; }
.service-row p { margin: 0; }
.service-row .service-detail { color: #5d5953; }

.faq-list { border-top: 1px solid var(--line-dark); }
.faq-item { border-bottom: 1px solid var(--line-dark); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.25rem 0; font-family: "Barlow Condensed"; font-size: clamp(1.45rem, 2.2vw, 2rem); font-weight: 700; line-height: 1.05; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; flex: 0 0 auto; color: var(--copper); font-family: "DM Sans"; font-size: 1.5rem; font-weight: 400; }
.faq-item[open] summary::after { content: "−"; }
.faq-answer { max-width: 67ch; padding: 0 0 1.4rem; color: #514e49; }
.faq-submit-layout { display: grid; grid-template-columns: .72fr 1.28fr; gap: clamp(2.5rem, 7vw, 7rem); align-items: start; }
.faq-submit-intro { max-width: 40ch; padding-top: .7rem; }
.faq-submit-intro h2 { max-width: 10ch; }
.faq-submit-note { padding-top: 1rem; border-top: 1px solid var(--line-dark); color: #5d5953; font-size: .9rem; }

.contact-layout { display: grid; grid-template-columns: .72fr 1.28fr; gap: clamp(2.5rem, 7vw, 7rem); align-items: start; }
.contact-detail { padding: 2rem; background: var(--ink); color: var(--paper); }
.contact-detail h2 { margin-bottom: 1.8rem; font-size: 2.4rem; }
.contact-detail dl { margin: 0; }
.contact-detail dl div { padding: 1rem 0; border-top: 1px solid var(--line); }
.contact-detail dt { margin-bottom: .2rem; color: var(--copper-light); font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.contact-detail dd { margin: 0; }
.contact-detail a:hover { color: var(--copper-light); }
.form-panel { padding: clamp(1.75rem, 4vw, 3.25rem); border: 1px solid var(--line-dark); background: var(--paper-bright); }
.form-panel h2 { font-size: 2.5rem; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: grid; gap: .45rem; margin-bottom: 1rem; }
.field label, .consent-copy { color: #45413d; font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.field input, .field textarea, .field select, .admin-form input, .admin-form textarea, .admin-form select { width: 100%; border: 1px solid #aba69c; border-radius: 0; background: #fff; color: var(--ink); padding: .76rem .8rem; line-height: 1.4; }
.field textarea, .admin-form textarea { min-height: 148px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus, .admin-form input:focus, .admin-form textarea:focus, .admin-form select:focus { border-color: var(--copper); outline: 2px solid rgba(216,117,67,.28); outline-offset: 0; }
.field-hint { margin: 0; color: #6f6a62; font-size: .78rem; line-height: 1.45; }
.consent { display: flex; gap: .65rem; align-items: flex-start; margin: .5rem 0 1.4rem; }
.consent input { width: 17px; height: 17px; margin-top: .2rem; accent-color: var(--copper); }
.consent-copy { font-weight: 500; line-height: 1.45; text-transform: none; letter-spacing: 0; }
.form-alert { margin: 0 0 1.25rem; padding: 1rem; border-left: 4px solid var(--danger); background: #f5e3df; color: #61221b; font-size: .9rem; }
.form-alert ul { margin: .5rem 0 0; padding-left: 1.2rem; }
.form-success { margin: 0 0 1.25rem; padding: 1rem; border-left: 4px solid #428650; background: #e0f0e3; color: #24542c; }

.site-footer { background: var(--ink); color: var(--paper); }
.footer-main { display: grid; grid-template-columns: 1.2fr .8fr .6fr; gap: 3rem; padding: 4rem 0 3rem; }
.footer-logo { width: 220px; margin-bottom: 1.5rem; }
.footer-about { max-width: 40ch; color: #cac5bd; }
.footer-heading { margin-bottom: 1rem; color: var(--copper-light); font-size: .75rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.footer-links { display: grid; gap: .55rem; }
.footer-links a { color: #ddd8d0; }
.footer-links a:hover { color: var(--copper-light); }
.footer-base { display: flex; justify-content: space-between; gap: 1rem; padding: 1.1rem 0; border-top: 1px solid var(--line); color: #aaa59d; font-size: .75rem; }

/* Admin — deliberately utilitarian, clear and high-contrast. */
.admin-body { min-height: 100vh; background: #e7e3dc; color: var(--ink); }
.admin-shell { display: grid; grid-template-columns: 258px 1fr; min-height: 100vh; }
.admin-sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; background: var(--ink); color: var(--paper); }
.admin-brand { display: block; padding: 1.5rem; border-bottom: 1px solid var(--line); }
.admin-brand img { width: 182px; height: auto; object-fit: contain; }
.admin-nav { display: grid; gap: .2rem; padding: 1rem .8rem; }
.admin-nav a { padding: .7rem .8rem; color: #d0cbc3; font-size: .82rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.admin-nav a:hover, .admin-nav a.is-active { background: var(--ink-raised); color: var(--paper); box-shadow: inset 3px 0 0 var(--copper); }
.admin-signout { margin-top: auto; padding: 1.5rem; border-top: 1px solid var(--line); color: var(--copper-light); font-size: .8rem; font-weight: 700; }
.admin-main { min-width: 0; padding: clamp(1.5rem, 4vw, 4rem); }
.admin-topline { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 2.5rem; }
.admin-topline h1 { max-width: none; margin-bottom: .45rem; font-size: clamp(2.8rem, 5vw, 4.3rem); }
.admin-topline p { margin: 0; color: #5c5750; }
.admin-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.3rem; }
.admin-card { grid-column: span 4; padding: 1.5rem; border: 1px solid #c7c1b6; background: #f9f7f3; }
.admin-card-wide { grid-column: span 8; }
.admin-card h2 { margin-bottom: .55rem; font-size: 2rem; }
.admin-card p { margin-bottom: 1rem; color: #5f5b54; }
.admin-stat { display: block; margin: 1rem 0; color: var(--copper); font-family: "Barlow Condensed"; font-size: 3.5rem; font-weight: 700; line-height: 1; }
.admin-table-wrap { overflow-x: auto; border: 1px solid #c7c1b6; background: #f9f7f3; }
.admin-table { width: 100%; border-collapse: collapse; font-size: .87rem; }
.admin-table th, .admin-table td { padding: .85rem 1rem; border-bottom: 1px solid #dad5cc; text-align: left; vertical-align: top; }
.admin-table th { background: #eeeae3; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table .actions { white-space: nowrap; }
.admin-table .actions a, .admin-table .actions button { color: #7a3c20; font-size: .78rem; font-weight: 800; text-decoration: underline; }
.admin-table .actions button { padding: 0; border: 0; background: transparent; }
.admin-form { display: grid; gap: 1rem; max-width: 860px; padding: clamp(1.5rem, 4vw, 3rem); border: 1px solid #c7c1b6; background: #f9f7f3; }
.admin-form label { display: grid; gap: .42rem; color: #36332f; font-size: .76rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.admin-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.admin-form .checkbox-row { display: flex; align-items: center; gap: .6rem; font-size: .85rem; text-transform: none; letter-spacing: 0; }
.admin-form .checkbox-row input { width: 17px; height: 17px; }
.project-gallery-admin { max-width: 1100px; margin-top: 1.5rem; padding: clamp(1.35rem, 3vw, 2.25rem); border: 1px solid #c7c1b6; background: #f1eee8; }
.project-gallery-admin-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1.25rem; margin-bottom: 1.4rem; }
.project-gallery-admin-header .eyebrow { margin-bottom: .35rem; }
.project-gallery-admin-header h2 { margin-bottom: .35rem; font-size: clamp(2rem, 3.4vw, 3rem); }
.project-gallery-admin-header p:not(.eyebrow) { max-width: 62ch; margin: 0; color: #625d56; }
.gallery-image-count { flex: 0 0 auto; min-width: 66px; padding: .45rem .65rem; border: 1px solid #aa5e38; color: #7a3c20; font-size: .72rem; font-weight: 800; letter-spacing: .06em; line-height: 1.15; text-align: center; text-transform: uppercase; }
.project-image-admin-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 1rem; }
.project-image-admin-card { display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 1rem; padding: .85rem; border: 1px solid #d3cdc3; background: #faf8f4; }
.project-image-admin-preview { display: block; aspect-ratio: 1 / 1; overflow: hidden; background: #302d29; }
.project-image-admin-preview img { width: 100%; height: 100%; object-fit: cover; transition: transform .22s var(--ease-out); }
.project-image-admin-preview:hover img, .project-image-admin-preview:focus-visible img { transform: scale(1.045); }
.project-image-admin-fields { display: grid; align-content: start; gap: .7rem; }
.project-image-admin-index { margin: 0; color: #7a3c20; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.project-image-admin-fields label { display: grid; gap: .35rem; color: #36332f; font-size: .7rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.project-image-admin-fields input[type="text"], .project-image-admin-fields input[type="number"] { width: 100%; border: 1px solid #aba69c; border-radius: 0; background: #fff; color: var(--ink); padding: .62rem .68rem; line-height: 1.35; }
.project-image-admin-fields input:focus { border-color: var(--copper); outline: 2px solid rgba(216,117,67,.28); outline-offset: 0; }
.project-image-remove { display: flex !important; align-items: center; gap: .5rem; color: #8c3328 !important; font-size: .72rem !important; letter-spacing: .03em !important; text-transform: none !important; }
.project-image-remove input { width: 17px; height: 17px; margin: 0; accent-color: #8c3328; }
.enquiry-photos { display: grid; gap: .35rem; }
.admin-muted { color: #77716a; }
.project-gallery-empty { margin: 0; padding: 1rem; border-left: 3px solid var(--copper); background: #fbf7f0; color: #5f5b54; }
.admin-submission-list { display: grid; gap: 1.35rem; }
.admin-submission-card { padding: clamp(1.3rem, 3vw, 2.35rem); border: 1px solid #c7c1b6; background: #f9f7f3; }
.admin-submission-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1.25rem; }
.admin-submission-head h2 { max-width: 32ch; margin-bottom: .55rem; font-size: clamp(2rem, 3.2vw, 3.2rem); }
.admin-submission-meta { margin: 0 0 .55rem; color: #69635b; font-size: .79rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.admin-status { display: inline-flex; flex: 0 0 auto; align-items: center; min-height: 29px; padding: .35rem .55rem; border: 1px solid currentColor; font-size: .7rem; font-weight: 800; letter-spacing: .06em; line-height: 1; text-transform: uppercase; }
.admin-status.is-pending { color: #8b4b20; background: #f7e3d1; }
.admin-status.is-draft { color: #5f5723; background: #efecce; }
.admin-status.is-published { color: #24542c; background: #e0f0e3; }
.admin-status.is-archived { color: #66615a; background: #e8e4dd; }
.admin-submission-form { max-width: none; margin-top: 1.35rem; padding: 0; border: 0; background: transparent; }
.admin-submission-form textarea { min-height: 172px; }
.admin-submission-actions { align-items: center; }
.admin-delete-button { margin-left: auto; padding: .45rem 0; border: 0; background: transparent; color: var(--danger); font-size: .78rem; font-weight: 800; text-decoration: underline; }
.admin-empty-state { max-width: 650px; padding: clamp(1.5rem, 4vw, 3rem); border: 1px solid #c7c1b6; background: #f9f7f3; }
.admin-empty-state h2 { margin-bottom: .65rem; font-size: 2.3rem; }
.admin-empty-state p { margin-bottom: 0; color: #5f5b54; }
.admin-login { min-height: 100vh; display: grid; place-items: center; padding: 1.5rem; background: linear-gradient(135deg, #101010, #252525); }
.admin-login-card { width: min(100%, 470px); padding: 2.3rem; background: var(--paper); box-shadow: var(--shadow); }
.admin-login-card img { width: 242px; height: auto; margin-bottom: 2.1rem; object-fit: contain; }
.admin-login-card h1 { margin-bottom: .8rem; font-size: 3.5rem; }
.admin-login-card > p { color: #625d56; }
.admin-login-card .admin-form { max-width: none; padding: 0; border: 0; background: transparent; }
.admin-help { margin-top: 1.1rem; color: #69645c; font-size: .8rem; }
.install-page { min-height: 100vh; display: grid; place-items: center; padding: 1.5rem; background: var(--ink); }
.install-card { width: min(100%, 630px); padding: clamp(2rem, 5vw, 4rem); background: var(--paper); }
.install-logo { width: 220px; margin-bottom: 2rem; }
.install-card h1 { font-size: clamp(3rem, 7vw, 5rem); }
.install-note { color: #746f67; font-size: .83rem; }

@media (max-width: 920px) {
  .header-inner { min-height: 72px; }
  .brand { width: 174px; padding: .28rem .36rem; }
  .menu-toggle { display: block; }
  .site-nav { position: absolute; top: calc(100% + 1px); left: 0; right: 0; display: grid; gap: 0; padding: 1rem 1.5rem 1.5rem; background: var(--paper-bright); border-bottom: 1px solid var(--line-dark); box-shadow: 0 15px 30px rgba(0,0,0,.16); opacity: 0; pointer-events: none; transform: translateY(-8px); transition: opacity .2s var(--ease-out), transform .2s var(--ease-out); }
  .site-nav.is-open { opacity: 1; pointer-events: auto; transform: translateY(0); }
  .nav-link { padding: .9rem 0; }
  .nav-link::after { left: 0; right: auto; width: 35px; bottom: .4rem; }
  .site-nav .button { margin-top: .5rem; }
  .hero { min-height: 670px; }
  .hero::before { background-position: 63% center; }
  .hero-grid { align-items: start; padding-top: 6rem; }
  .hero-detail { right: auto; left: 0; bottom: 2rem; width: min(350px, 80%); }
  .service-card { grid-column: span 6; }
  .service-card:nth-child(4), .service-card:nth-child(5) { grid-column: span 6; }
  .project-card { grid-column: span 6; }
  .project-card:last-child:nth-child(odd) { grid-column: span 12; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-main > :first-child { grid-column: 1/-1; }
  .admin-shell { grid-template-columns: 208px 1fr; }
  .admin-card { grid-column: span 6; }
  .admin-card-wide { grid-column: span 12; }
}

@media (max-width: 680px) {
  :root { --site-width: min(100% - 32px, 1220px); }
  .utility-inner { min-height: 36px; justify-content: center; font-size: .66rem; }
  .utility-inner span { display: none; }
  .hero { min-height: 650px; }
  .hero::before { background: linear-gradient(90deg, rgba(16,16,16,.98), rgba(16,16,16,.77)), url("../images/hero-electrical.png") 62% center/cover no-repeat; }
  .hero-grid { padding-top: 5rem; }
  .page-hero { padding: 2.35rem 0 2.1rem; }
  .page-hero::after { width: 72vw; opacity: .58; background-image: repeating-linear-gradient(to bottom, transparent 0 39px, rgba(216,117,67,.72) 39px 41px, transparent 41px 54px), repeating-linear-gradient(to right, transparent 0 78px, rgba(216,117,67,.5) 78px 80px, transparent 80px 96px); -webkit-mask-image: linear-gradient(to right, transparent 0, #000 24%, #000 100%); mask-image: linear-gradient(to right, transparent 0, #000 24%, #000 100%); }
  .page-hero h1 { max-width: 10.7ch; margin-bottom: .9rem; font-size: clamp(3rem, 12.4vw, 4.25rem); line-height: .95; }
  .page-hero .lead { max-width: 43ch; font-size: 1rem; line-height: 1.48; }
  h1 { font-size: clamp(3.15rem, 15vw, 4.7rem); }
  .stats-inner { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: 0; }
  .split-intro, .image-split, .contact-layout, .faq-submit-layout { grid-template-columns: 1fr; }
  .image-split { min-height: 0; }
  .image-split-media { min-height: 330px; }
  .service-card, .service-card:nth-child(4), .service-card:nth-child(5), .project-card, .project-card:last-child:nth-child(odd) { grid-column: 1/-1; }
  .projects-grid { gap: 1rem; }
  .project-gallery-dialog { width: 100vw; max-height: 100dvh; }
  .project-gallery-dialog-shell { min-height: 100dvh; padding: 1rem; }
  .project-gallery-dialog-header { gap: .75rem; }
  .project-gallery-stage > img { height: min(58vh, 520px); }
  .project-gallery-stage figcaption { display: grid; gap: .25rem; }
  .project-gallery-thumbnails { gap: .5rem; }
  .project-gallery-thumbnail { flex-basis: 72px; }
  .callout-inner { grid-template-columns: 1fr; align-items: start; }
  .callout .button { justify-self: start; }
  .service-row { grid-template-columns: 48px 1fr; gap: .4rem 1rem; }
  .service-row .service-detail, .service-row .service-row-action { grid-column: 2; }
  .field-grid { grid-template-columns: 1fr; gap: 0; }
  .footer-main { grid-template-columns: 1fr; gap: 2rem; }
  .footer-main > :first-child { grid-column: auto; }
  .footer-base { display: block; }
  .footer-base span { display: block; margin-bottom: .3rem; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-sidebar { position: static; height: auto; }
  .admin-brand { padding: 1.1rem 1.3rem; }
  .admin-nav { grid-template-columns: repeat(2, 1fr); padding: .8rem; }
  .admin-signout { margin-top: 0; padding: 1rem 1.3rem; }
  .admin-main { padding: 1.4rem 1rem 2.5rem; }
  .admin-topline { display: block; margin-bottom: 1.6rem; }
  .admin-topline .button { margin-top: .9rem; }
  .admin-card, .admin-card-wide { grid-column: 1/-1; }
  .admin-form .form-row { grid-template-columns: 1fr; }
  .project-gallery-admin-header { display: block; }
  .gallery-image-count { display: inline-block; margin-top: .85rem; }
  .project-image-admin-list { grid-template-columns: 1fr; }
  .admin-submission-head { display: block; }
  .admin-status { margin-top: .65rem; }
  .admin-delete-button { margin-left: 0; }
}

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

/* DESIGN REMINDER — Front-page COR branding stays architectural: a larger mark occupies the right hero column, never the navigation header. */
.hero-grid { position: relative; z-index: 1; }
.hero-content { position: relative; z-index: 1; }
.hero-brand-mark { grid-column: 2; align-self: center; justify-self: end; width: min(44vw, 610px); margin: 0 clamp(.25rem, 2vw, 2rem) 0 1.25rem; opacity: .97; pointer-events: none; transform: translateY(-1.7rem); }
.hero-brand-mark img { width: 100%; filter: drop-shadow(0 16px 34px rgba(0, 0, 0, .34)); }
.hero-detail { gap: .72rem; }
.emergency-cta { display: inline-flex; width: fit-content; align-items: center; min-height: 34px; margin-top: .25rem; padding: .48rem .62rem; border: 1px solid rgba(240, 165, 111, .75); color: var(--copper-light); font-size: .7rem; font-weight: 800; letter-spacing: .075em; line-height: 1; text-transform: uppercase; transition: background .16s var(--ease-out), color .16s var(--ease-out), transform .16s var(--ease-out); }
.emergency-cta:hover { background: var(--copper-light); color: var(--ink); transform: translateY(-1px); }

/* The intro uses the supplied traced layers and runs only once per browser session on the home page. */
.brand-intro { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 2rem; background: #000; color: #fff; transition: opacity .36s var(--ease-out), visibility .36s step-end; }
.brand-intro.is-complete { visibility: hidden; opacity: 0; pointer-events: none; }
.brand-intro-stage { position: relative; width: min(88vw, 980px); aspect-ratio: 4200 / 1484; }
.brand-layer { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; clip-path: inset(0 100% 0 0); }
.brand-layer-shell { opacity: 1; clip-path: none; }
/* Accelerated public loading sequence: the same traced layers arrive in order, with a short final recognition beat. */
.brand-intro:not(.is-complete) .brand-layer-1 { animation: cor-layer-reveal .45s .05s var(--ease-out) forwards; }
.brand-intro:not(.is-complete) .brand-layer-2 { animation: cor-layer-reveal .56s .56s var(--ease-out) forwards; }
.brand-intro:not(.is-complete) .brand-layer-3 { animation: cor-layer-reveal .45s 1.16s var(--ease-out) forwards; }
.brand-intro:not(.is-complete) .brand-layer-4 { animation: cor-layer-reveal .4s 1.66s var(--ease-out) forwards; }
.brand-intro:not(.is-complete) .brand-layer-middle { animation: cor-layer-reveal .12s 2.10s linear forwards; }
.brand-intro:not(.is-complete) .brand-layer-lower { animation: cor-layer-reveal .14s 2.28s linear forwards; }
.brand-intro:not(.is-complete) .brand-layer-5 { animation: cor-layer-reveal .46s 2.46s var(--ease-out) forwards; }
.brand-intro:not(.is-complete) .brand-layer-top { animation: cor-layer-reveal .12s 2.94s linear forwards; }
.brand-intro:not(.is-complete) .brand-layer-descriptor { animation: cor-descriptor-reveal .28s 3.12s var(--ease-out) forwards; }
@keyframes cor-layer-reveal { to { opacity: 1; clip-path: inset(0 0 0 0); } }
@keyframes cor-descriptor-reveal { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 820px) {
  .hero-brand-mark { order: -1; align-self: flex-end; width: min(350px, 82vw); margin: 0 0 2rem auto; opacity: .94; transform: none; }
  .hero-grid { display: flex; flex-direction: column; align-items: stretch; padding-top: 3.6rem; }
  .hero-content { width: 100%; }
  .hero-detail { position: relative; right: auto; bottom: auto; width: 100%; margin-top: 2.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  .brand-intro { display: none; }
  .hero-brand-mark img, .emergency-cta { transition: none; }
}

/* DESIGN REMINDER — Mobile homepage: one calm reading path from proposition to contact route; do not alter desktop or secondary-page heroes. */
@media (max-width: 680px) {
  .home-page .hero { min-height: 0; }
  .home-page .hero::before { background-position: 66% center; }
  .home-page .hero::after { display: none; }
  .home-page .hero-grid { min-height: 0; padding: 3rem 0 2rem; }
  .home-page .hero-content { max-width: none; }
  .home-page .hero .eyebrow { margin-bottom: .7rem; font-size: .66rem; }
  .home-page .hero h1 { max-width: 13.3ch; margin-bottom: 1rem; font-size: clamp(2.95rem, 12.2vw, 3.7rem); line-height: .93; }
  .home-page .hero .lead { max-width: 31ch; margin-bottom: 1.35rem; font-size: clamp(1rem, 4.35vw, 1.12rem); line-height: 1.47; }
  .home-page .button-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .65rem; }
  .home-page .button-row .button { min-width: 0; padding: .8rem .45rem; font-size: .7rem; letter-spacing: .065em; }
  .home-page .hero-detail { width: 100%; margin-top: 1.35rem; padding: .85rem 0 0 .85rem; border-left-width: 2px; gap: .3rem; }
  .home-page .hero-detail strong { font-size: .78rem; }
  .home-page .hero-detail span { max-width: 35ch; font-size: .78rem; line-height: 1.45; }
  .home-page .emergency-cta { min-height: 0; margin-top: .2rem; padding: .32rem 0; border: 0; color: var(--copper-light); font-size: .72rem; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .28em; }
}

/* Mobile hierarchy refinement: the navigation mark is sufficient branding, so reserve the hero for the service proposition and contact routes. */
@media (max-width: 680px) {
  .home-page .hero-brand-mark { display: none; }
  .home-page .hero-grid { padding-top: 2.45rem; }
}

/* DESIGN REMINDER — Mobile navigation should read as a compact control panel: confident, useful, and visibly COR rather than a tall list on a blank sheet. */
@media (max-width: 920px) {
  .header-inner { position: relative; min-height: 68px; }
  .brand { width: 164px; padding: .2rem 0; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: flex-end; gap: .58rem; min-height: 42px; padding: .45rem 0 .45rem .7rem; color: var(--ink); font-family: "DM Sans", sans-serif; }
  .menu-toggle .menu-toggle-label { display: block; width: auto; height: auto; margin: 0; background: transparent; color: inherit; font-size: .68rem; font-weight: 800; letter-spacing: .11em; line-height: 1; text-transform: uppercase; }
  .menu-toggle .menu-toggle-icon { position: relative; display: inline-flex; width: 25px; height: 16px; margin: 0; background: transparent; }
  .menu-toggle .menu-toggle-icon span { position: absolute; right: 0; display: block; width: 25px; height: 2px; margin: 0; background: var(--ink); transition: transform .18s var(--ease-out), top .18s var(--ease-out), background .18s var(--ease-out); }
  .menu-toggle .menu-toggle-icon span:first-child { top: 2px; }
  .menu-toggle .menu-toggle-icon span:last-child { top: 12px; }
  .menu-toggle.is-open .menu-toggle-icon span:first-child { top: 7px; transform: rotate(45deg); }
  .menu-toggle.is-open .menu-toggle-icon span:last-child { top: 7px; transform: rotate(-45deg); }

  .site-nav { z-index: 45; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "kicker kicker" "links quote" "contact contact"; column-gap: 1.15rem; row-gap: .9rem; padding: 1.05rem 1.5rem .9rem; border-top: 3px solid var(--copper); border-bottom: 1px solid var(--line-dark); background: linear-gradient(135deg, rgba(253,252,249,.99), rgba(242,237,229,.99)); box-shadow: 0 18px 32px rgba(0,0,0,.18); }
  .site-nav-kicker { grid-area: kicker; margin: 0; padding-bottom: .72rem; border-bottom: 1px solid rgba(16,16,16,.15); color: var(--copper-dark); font-size: .65rem; font-weight: 800; letter-spacing: .13em; line-height: 1; text-transform: uppercase; }
  .site-nav-links { grid-area: links; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 .85rem; }
  .site-nav .nav-link { min-width: 0; padding: .52rem 0; color: var(--ink); font-size: .72rem; letter-spacing: .08em; line-height: 1.15; }
  .site-nav .nav-link::after { left: 0; bottom: .2rem; width: 25px; }
  .site-nav .button { grid-area: quote; align-self: center; min-width: 148px; min-height: 42px; margin: 0; padding: .72rem .88rem; font-size: .68rem; }
  .site-nav-contact { grid-area: contact; display: flex; align-items: baseline; gap: .5rem; margin: 0; padding-top: .78rem; border-top: 1px solid rgba(16,16,16,.15); color: #5f5b54; font-size: .68rem; line-height: 1.25; }
  .site-nav-contact span { color: #6e685f; font-weight: 600; }
  .site-nav-contact a { color: var(--copper-dark); font-weight: 800; letter-spacing: .045em; }
}

@media (max-width: 680px) {
  .header-inner { min-height: 64px; }
  .brand { width: 152px; }
  .site-nav { grid-template-columns: 1fr; grid-template-areas: "kicker" "links" "quote" "contact"; row-gap: .82rem; padding: 1rem 1.1rem .9rem; }
  .site-nav-links { gap: 0 .7rem; }
  .site-nav .nav-link { padding: .48rem 0; font-size: .7rem; }
  .site-nav .button { width: 100%; min-width: 0; min-height: 43px; }
  .site-nav-contact { justify-content: space-between; padding-top: .7rem; }
}

/* Desktop containment: mobile-panel detail stays out of the inline primary navigation. */
@media (min-width: 921px) {
  .site-nav-kicker,
  .site-nav-contact { display: none; }
  .site-nav-links { display: flex; align-items: center; gap: .25rem; }
}

/* Mobile navigation correction: icon-only control and a single vertical reading path. */
@media (max-width: 920px) {
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    min-height: 48px;
    padding: 0;
    gap: 0;
  }
  .menu-toggle .menu-toggle-icon {
    position: relative;
    display: inline-flex;
    width: 25px;
    height: 16px;
    margin: 0;
    background: transparent;
  }
  .menu-toggle .menu-toggle-icon span {
    position: absolute;
    right: 0;
    display: block;
    width: 25px;
    height: 2px;
    margin: 0;
    background: var(--ink);
    transition: transform .18s var(--ease-out), top .18s var(--ease-out);
  }
  .menu-toggle .menu-toggle-icon span:first-child { top: 2px; }
  .menu-toggle .menu-toggle-icon span:last-child { top: 12px; }
  .menu-toggle.is-open .menu-toggle-icon span:first-child { top: 7px; transform: rotate(45deg); }
  .menu-toggle.is-open .menu-toggle-icon span:last-child { top: 7px; transform: rotate(-45deg); }

  .site-nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem 1.5rem 1.25rem;
  }
  .site-nav-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .site-nav .nav-link {
    display: block;
    padding: .88rem 0;
    border-bottom: 1px solid rgba(16,16,16,.14);
    font-size: .76rem;
    line-height: 1.1;
  }
  .site-nav .nav-link::after { bottom: .34rem; }
  .site-nav .button {
    width: 100%;
    min-width: 0;
    min-height: 46px;
    margin: 1rem 0 0;
  }
  .site-nav-contact {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .28rem;
    margin: .9rem 0 0;
    padding-top: .9rem;
    font-size: .72rem;
  }
}

@media (max-width: 680px) {
  .site-nav { padding: .9rem 1.1rem 1.15rem; }
  .site-nav .nav-link { padding: .8rem 0; }
}
