@font-face { font-family: 'Barlow Condensed'; font-weight: 700; font-display: swap; src: url('fonts/BarlowCondensed-Bold.ttf') format('truetype'); }
@font-face { font-family: 'Barlow Condensed'; font-weight: 800; font-display: swap; src: url('fonts/BarlowCondensed-ExtraBold.ttf') format('truetype'); }
:root {
  --paper: #191918;
  --ink: #f3eee4;
  --surface: #212120;
  --line: #494843;
  --text-soft: #c4c0b6;
  --text-faint: #aaa79e;
  --accent: #d2b080;
  --page-alt: #242423;
  --display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --body: 'DM Sans', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  --gutter: clamp(20px, 3.55vw, 100px);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 18px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.55 var(--body); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul, ol { margin: 0; }
h1, h2, h3, .ftitle { font-family: var(--display); font-weight: 700; line-height: 1.02; letter-spacing: .002em; text-transform: uppercase; }
h2 { font-size: clamp(44px, 5.1vw, 82px); }
h3, .ftitle { font-size: clamp(28px, 2.7vw, 44px); }
em { color: var(--accent); font-style: normal; font-weight: inherit; }
a { color: inherit; text-underline-offset: .23em; }
img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; }
button, summary, select { cursor: pointer; }
a, button, input, select, textarea, summary { touch-action: manipulation; }
:focus-visible { outline: 3px solid #da642d; outline-offset: 4px; }
.wrap { width: min(100%, 1640px); padding-inline: var(--gutter); margin-inline: auto; }
.band { padding-block: clamp(62px, 7.5vw, 115px); }
.label { display: block; font: 600 11px/1.4 var(--mono); letter-spacing: .13em; text-transform: uppercase; }
.skip { position: absolute; top: -120px; left: 12px; z-index: 9; padding: 12px; background: var(--surface); }
.skip:focus { top: 8px; }
.masthead { position: relative; z-index: 3; background: #1c1c1b; }
.mast-row, #navlinks, .brand, .foot-row, footer nav { display: flex; align-items: center; }
.mast-row { min-height: clamp(70px, 9.4svh, 100px); justify-content: space-between; gap: 30px; }
.brand { font: 600 clamp(18px, 1.63vw, 28px)/1 var(--body); letter-spacing: .27em; white-space: nowrap; text-transform: uppercase; text-decoration: none; }
#navlinks { gap: clamp(25px, 4.4vw, 80px); }
#navlinks a, .menu-toggle { font: 700 clamp(18px, 1.65vw, 28px)/1 var(--display); letter-spacing: .095em; text-transform: uppercase; text-decoration: none; }
#navlinks a:hover, footer nav a:hover { color: var(--accent); }
.menu-toggle { display: none; background: transparent; color: var(--ink); border: 1px solid var(--line); padding: 8px 13px; }
/* Keep text and permit details independent of the map image at every size. */
.hero { position: relative; isolation: isolate; display: flex; align-items: center; min-height: clamp(510px, 73svh, 840px); background: #191918; }
.hero-copy { position: relative; z-index: 1; width: fit-content; padding: 36px 0 12vh var(--gutter); pointer-events: none; }
.hero h1 { font-size: clamp(52px, min(5.42vw, 8.4vh), 101px); font-weight: 800; letter-spacing: -.022em; line-height: .94; }
.hero h1 span { display: block; }
.hero h1 em { color: var(--accent); }
.hero .hero-cta { margin-top: clamp(30px, 5.5vh, 60px); font-size: clamp(23px, 2.28vw, 38px); padding: .47em 1em .53em; gap: .85em; letter-spacing: .012em; pointer-events: auto; }
.hero-cta span { font: 500 1.2em/1 var(--body); }
.permit-map { position: absolute; inset: 0 0 0 30%; margin: 0; overflow: hidden; --zoom: 1; }
.permit-map::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, #191918, transparent 23%), linear-gradient(0deg, rgb(18 18 18 / 65%), transparent 20%); }
.map-sheet, .map-photo, .leader { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-sheet { transform-origin: 60% 43%; transform: scale(var(--zoom)); transition: transform .3s ease; }
.map-photo { object-fit: cover; filter: saturate(.72) brightness(.9); }
.parcel { position: absolute; left: 60%; top: 43%; width: clamp(22px, 3vw, 58px); aspect-ratio: 3/4; transform: translate(-50%,-50%) rotate(18deg); background: rgb(208 169 110 / 45%); border: 1.5px solid #f0bc75; }
.parcel::after { content: ''; position: absolute; inset: 50% auto auto 50%; width: 9px; height: 9px; border-radius: 50%; background: #fff5dc; transform: translate(-50%,-50%); }
.leader { left: 60%; top: 32%; width: 7%; height: 11%; overflow: visible; pointer-events: none; stroke-width: 1.5; }
.permit-card { position: absolute; z-index: 1; left: 67%; top: 11%; width: 29%; max-width: 400px; border: 1px solid #bcb6a8; border-radius: 5px; overflow: hidden; background: #191a19; box-shadow: 0 7px 20px #0006; }
.permit-photo { min-height: clamp(92px, 7.8vw, 145px); padding: clamp(12px, 1.3vw, 24px); background: linear-gradient(125deg, #111e, #1114 57%, transparent), url('../images/marden-project.jpg') center / cover; }
.permit-photo small, .permit-map figcaption small, .permit-card dt { display: block; text-transform: uppercase; font: 500 clamp(10px,.8vw,14px)/1.3 var(--body); letter-spacing: .1em; }
.permit-photo h2 { margin: 3px 0 0; font-size: clamp(20px, 1.55vw, 30px); letter-spacing: .015em; }
.permit-card dl { padding: 3px 5% 7px; margin: 0; border-top: 1px solid var(--line); }
.permit-card dl > div { display: grid; grid-template-columns: 38% 1fr; align-items: center; padding: .28em .35em; font-size: clamp(12px,.95vw,17px); }
.permit-card dl > div + div { border-top: 1px solid var(--line); }
.permit-card dd { margin: 0; }
.permit-card dd span { padding: 1px 12px; border-radius: 12px; text-transform: uppercase; font-size: .8em; color: #181714; background: #c4a67d; }
.permit-map figcaption { position: absolute; z-index: 1; left: 9%; bottom: 6%; border-left: 2px solid var(--accent); padding-left: 15px; text-shadow: 0 1px 6px #000; }
.permit-map figcaption a { display: block; color: inherit; text-decoration: none; }
.permit-map figcaption a:hover strong { color: var(--accent); }
.permit-map figcaption strong { display: block; text-transform: uppercase; letter-spacing: .07em; font: 700 clamp(24px, 2.1vw, 40px)/1.15 var(--display); }
.map-controls:not([hidden]) { position: absolute; z-index: 2; bottom: 5%; right: 2.5%; display: grid; justify-items: end; gap: 10px; }
.map-controls button { display: grid; place-items: center; border-radius: 4px; width: 36px; height: 36px; border: 1px solid #aba99d; background: #161615ee; color: var(--ink); font-size: 23px; line-height: 1; }
.map-controls .zoom button:first-child { border-radius: 4px 4px 0 0; }
.map-controls .zoom button:last-child { border-top: 0; border-radius: 0 0 4px 4px; }
.map-controls button:disabled { color: #aaa79c; }
.map-controls button:enabled:hover { background: #4b4131; }
.map-controls output { padding: 0 4px 2px; min-width: 51px; border-bottom: 1px solid currentColor; text-align: right; font: 12px/1.3 var(--mono); }
.btn, .inline-link { display: inline-flex; align-items: center; justify-content: center; gap: 16px; }
.btn { min-height: 46px; padding: 12px 20px; background: var(--accent); color: #1a1916; border-radius: 4px; border: 1px solid transparent; font: 700 20px/1.15 var(--display); text-transform: uppercase; text-decoration: none; }
.btn:hover { background: #e5c698; }
.inline-link { padding-block: 5px; font-weight: 600; font-size: 15px; text-underline-offset: 5px; }
.service-index { background: #222221; border-block: 1px solid var(--line); }
.service-index .wrap { display: grid; grid-template-columns: .9fr 1.2fr 1.04fr 1.05fr; padding-block: clamp(22px, 3.8vh, 45px); }
.service-index a { min-height: clamp(55px, 8.2vh, 90px); display: flex; align-items: center; justify-content: center; gap: clamp(12px, 1.65vw, 29px); padding: 4px 12px; text-decoration: none; color: var(--ink); text-transform: uppercase; border-right: 1px solid #605e58; }
.service-index a:first-child { justify-content: flex-start; }
.service-index a:last-child { border: 0; }
.service-index svg { color: #e8d9bc; width: clamp(34px, 3.6vw, 64px); height: auto; flex: none; }
.service-index b { font: 700 clamp(19px, 1.85vw, 32px)/1.1 var(--display); letter-spacing: .055em; }
.service-index a:hover b { color: var(--accent); }
.section-head { display: flex; justify-content: space-between; gap: 24px; }
.section-head { align-items: end; margin-bottom: 34px; }
.section-head > p { max-width: 30ch; color: var(--text-soft); font-size: 15px; }
.split, .audit-grid { display: grid; grid-template-columns: minmax(0, .83fr) minmax(0, 1.17fr); gap: clamp(36px, 8vw, 150px); }
.ruled, .contact, footer { border-top: 1px solid var(--line); }
.section-intro > p:not(.label) { max-width: 34ch; margin-top: 22px; color: var(--text-soft); }
.section-intro .inline-link { margin-top: 24px; }
.offer { display: grid; grid-template-columns: 1fr auto; gap: 9px 16px; padding: 24px 0; border-top: 1px solid var(--line); }
.offer:last-child { border-bottom: 1px solid var(--line); }
.offer h3 { font-size: clamp(26px, 2.5vw, 38px); }
.offer strong { color: var(--accent); font: 500 14px/1.4 var(--mono); padding-top: 5px; }
.offer p { grid-column: 1/-1; color: var(--text-soft); max-width: 58ch; font-size: 16px; }
.problem { background: var(--page-alt); }
.problem h2 { max-width: 24ch; }
.problem-copy { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 32px; color: var(--text-soft); max-width: 80ch; }
.mcp-studio { background: var(--paper); color: var(--ink); }
.mcp-studio em, .mcp-studio .label { color: #efc69d; }
.mcp-studio .section-intro > p:not(.label), .deliverables span, .process li { color: #d4d4c9; }
.mcp-studio .label { margin-bottom: 20px; }
.mcp-studio h3 { font-size: clamp(25px, 2.3vw, 33px); }
.deliverables, .process ol, .checks-list { list-style: none; padding: 0; }
.deliverables { margin: 0; }
.deliverables b, .process b { display: block; color: var(--ink); font: 700 26px/1.1 var(--display); text-transform: uppercase; margin-bottom: 6px; }
.deliverables li { padding: 15px 0; border-top: 1px solid #53574f; }
.deliverables span, .process li { font-size: 15px; }
.process { background: var(--page-alt); }
.process ol { margin-top: 23px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.process li { border-top: 1px solid #777c70; padding: 16px 0 0; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; list-style: none; font-weight: 550; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--accent); font: 24px/1 var(--body); }
.faq details[open] summary::after { content: '−'; }
.faq p { max-width: 60ch; padding-bottom: 20px; color: var(--text-soft); }
.contact { background: #242423; }
.card-form { min-width: 0; padding: clamp(22px, 3vw, 48px); background: var(--surface); border: 1px solid var(--line); }
.fsub { margin: 12px 0 24px; color: var(--text-soft); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 5px; margin-bottom: 18px; }
.field label { font-size: 14px; font-weight: 550; }
.field input, .field textarea, .field select { width: 100%; background: var(--surface); color: var(--ink); border: 1px solid #68665f; min-height: 46px; border-radius: 0; padding: 9px 12px; font-size: 16px; }
.field textarea { min-height: 105px; resize: vertical; }
.card-form .btn { width: 100%; }
.card-form .btn svg { width: 18px; height: 18px; }
.fine { text-align: center; margin-top: 12px; color: var(--text-faint); font-size: 13px; }
#formErr, .ferr2, .form-done, .prog { display: none; }
#formErr, .ferr2 { color: var(--accent); margin-top: 12px; }
.form-done.show, .prog.show { display: block; }
.form-done h3, .prog h3 { margin: 10px 0; }
.foot-row { justify-content: space-between; gap: 30px; flex-wrap: wrap; padding-block: 35px; }
footer nav { gap: 14px 24px; flex-wrap: wrap; }
footer nav a, footer small { font-size: 13px; color: var(--text-soft); text-decoration: none; }
.page-hero h1 { margin-block: 18px 22px; font-size: clamp(50px, 6.9vw, 106px); }
.page-hero em { color: var(--accent); }
.page-hero .label { color: var(--accent); }
.page-hero .lead { font-size: clamp(17px, 1.4vw, 21px); color: var(--text-soft); max-width: 53ch; }
.legal .wrap { max-width: 960px; }
.legal h2, .lane h2 { font-size: clamp(28px, 3vw, 42px); margin-block: 28px 12px; }
.legal h2:first-child, .lane h2:first-child { margin-top: 0; }
.legal p, .legal li, .lane p, .lane li, .gate p { color: var(--text-soft); }
.legal ul, .lane ul { padding-left: 20px; }
.legal li, .lane li { margin-bottom: 8px; }
.lanes { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(24px, 4vw, 72px); }
.lane { border-top: 1px solid var(--line); padding-top: 24px; }
.lane ul { margin-top: 16px; }
.gate { text-align: center; max-width: 900px; }
.gate h2 { margin-bottom: 14px; }
.checks-list { margin-top: 26px; }
.checks-list li { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--line); }
.checks-list svg { width: 17px; height: 17px; margin-top: 5px; color: var(--accent); flex: none; }
.prog { text-align: center; }
.spin { width: 35px; height: 35px; margin: 12px auto; border: 2px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 900px) {
  .split, .audit-grid { grid-template-columns: 1fr; }
  .process ol { grid-template-columns: repeat(2, 1fr); }
  .hero { min-height: 500px; }
  .hero h1 { font-size: clamp(48px, 5.8vw, 60px); }
  .permit-card { left: auto; right: 4%; width: 35%; }
  .permit-card dl > div { grid-template-columns: 32% 1fr; font-size: 11px; }
}
@media (max-width: 700px) {
  .mast-row { min-height: 64px; flex-wrap: wrap; gap: 0; }
  .brand { font-size: 17px; }
  #navlinks { width: 100%; flex-wrap: wrap; gap: 10px; padding-block: 12px; }
  .has-menu .menu-toggle { display: block; min-height: 40px; }
  .has-menu #navlinks { display: none; }
  .has-menu #navlinks.open { display: grid; gap: 0; }
  #navlinks a { padding: 12px 0; }
  .hero { display: block; min-height: 0; }
  .hero-copy { padding: 28px var(--gutter) 30px; }
  .hero h1 { font-size: clamp(42px, 10.6vw, 64px); }
  .hero .hero-cta { margin-top: 21px; font-size: 23px; }
  .permit-map { position: relative; inset: auto; height: clamp(270px, 68vw, 355px); }
  .permit-map::after { background: linear-gradient(180deg, #191918, transparent 17%), linear-gradient(0deg, #161614bb, transparent 28%); }
  .map-sheet { transform-origin: 33% 48%; }
  .parcel { left: 33%; top: 48%; width: 24px; }
  .leader { left: 33%; top: 33%; width: 22%; height: 15%; }
  .permit-card { top: 11%; right: var(--gutter); width: 47%; }
  .permit-photo { min-height: 65px; padding: 9px 12px; }
  .permit-photo h2 { font-size: 19px; }
  .permit-card dt { font-size: 9px; }
  .permit-card dl > div { font-size: 11px; padding: 3px 0; }
  .permit-map figcaption { left: var(--gutter); bottom: 7%; }
  .map-controls:not([hidden]) { bottom: 6%; right: var(--gutter); display: flex; align-items: center; gap: 8px; }
  .map-controls .zoom { display: flex; }
  .map-controls .zoom button { border-radius: 4px; border: 1px solid #aba99d; }
  .map-controls output { display: none; }
  .service-index .wrap { grid-template-columns: 1fr 1fr; padding-block: 7px; }
  .service-index a { justify-content: flex-start; gap: 9px; min-height: 57px; padding-inline: 10px; }
  .service-index a:nth-child(odd) { padding-left: 0; }
  .service-index a:nth-child(even) { border-right: 0; }
  .service-index a:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .service-index svg { width: 26px; }
  .service-index b { font-size: clamp(15px, 3.9vw, 20px); letter-spacing: .035em; }
  .section-head { display: block; margin-bottom: 23px; }
  .section-head > p { margin-top: 13px; max-width: 36ch; }
  .lanes, .field-row, .problem-copy { grid-template-columns: 1fr; }
  .field-row { gap: 0; }
  .foot-row { align-items: flex-start; flex-direction: column; gap: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.cookie-wrap { padding-bottom: 24px; font-size: 14px; color: var(--text-soft); }
#cookie-settings summary { width: fit-content; text-decoration: underline; text-underline-offset: .2em; }
#cookie-settings p { max-width: 65ch; margin-block: 12px; }
.cookie-controls:not([hidden]) { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.cookie-controls button { padding: 7px 12px; background: var(--surface); color: var(--ink); border: 1px solid var(--text-faint); border-radius: 3px; }
.cookie-controls button[aria-pressed=true] { border-color: var(--accent); color: var(--accent); }
