/* BKI · mobile UX refresh · 2026-11-06
   Append after the existing styles and gallery-ui.css.
   Original emblem, existing copy and image assets remain the source of truth.
   Gallery behaviour/layout belongs to gallery-ui.css; this file supplies skin only. */

:root {
  --paper: #fff;
  --ink: #202423;
  --orange: #f3df00;
  --rust: #535c58;
  --muted: #57615d;
  --line: #dce1dd;
  --wash: #f2f4f1;
  --light-line: #4b5550;
  --sans: Arial, Helvetica, system-ui, sans-serif;
  --gutter: clamp(20px, 3.2vw, 52px);
  --ux-radius: 8px;
  --ux-card-pad: 24px;
  --ux-shadow: 0 8px 28px rgb(22 31 25 / .055);
}

body { background: var(--paper); line-height: 1.6; }
html { scroll-padding-top: 28px; }
.container { width: min(1280px, calc(100% - var(--gutter) * 2)); }
h1, h2, h3 { font-weight: 600; }
p, li, dd, figcaption { overflow-wrap: break-word; }
::selection { background: var(--orange); color: var(--ink); }
section[id] { scroll-margin-top: 28px; }
.eyebrow { font-size: 11px; letter-spacing: .075em; }
.eyebrow .status-dot { flex-basis: 8px; }
.section { padding-block: 80px; }
.section-top { margin-bottom: 24px; }
.section-top .eyebrow::before,
.expertise-intro > .eyebrow::before,
.contact-copy > .eyebrow::before,
.inner-hero > .eyebrow::before {
  content: "";
  flex: 0 0 22px;
  height: 3px;
  background: var(--orange);
}
.section-heading { gap: 36px; margin-bottom: 32px; }
.section-heading h2, .bureau-copy h2 {
  font-size: clamp(34px, 3.6vw, 50px);
  line-height: 1.1;
  letter-spacing: -.045em;
}
.section-intro { flex-basis: 360px; font-size: 15px; line-height: 1.7; }
.section-aside { font-size: 10px; }

/* Compact masthead. Keep the 980px menu breakpoint used by app.js. */
.site-header { border-bottom: 1px solid var(--line); background: #fff; }
.site-header .header-inner { min-height: 88px; gap: 24px; }
.site-header .brand--emblem { width: clamp(230px, 23vw, 304px); max-width: none; }
.brand-emblem-frame { background: #fff; }
.site-header .main-nav { gap: clamp(14px, 2vw, 28px); }
.main-nav a { position: relative; font-size: 14px; font-weight: 500; }
.main-nav a[aria-current="page"] { box-shadow: inset 0 -3px var(--orange); }
.site-header .header-contact {
  min-height: 44px;
  gap: 16px;
  padding: 10px 15px;
  border: 1px solid var(--orange);
  border-radius: 4px;
  background: var(--orange);
  color: var(--ink);
  font-size: 13px;
  line-height: 1.3;
}
.menu-toggle { border-color: #bcc4be; border-radius: 4px; background: #fff; }
.skip-link { border-radius: 4px; }

/* First screen: restrained type, a real image and a connected project caption. */
.hero { padding-top: 28px; }
.hero-top { gap: 16px; }
.hero-location { font-size: 10px; }
.hero-heading { grid-template-columns: minmax(0, 1fr) 360px; align-items: center; gap: 40px; margin: 28px 0 32px; }
.hero h1 {
  font-size: clamp(58px, 6.7vw, 92px);
  line-height: 1.02;
  letter-spacing: -.065em;
  font-weight: 600;
}
.hero h1 span { background: linear-gradient(transparent 88%, var(--orange) 88%, var(--orange) 96%, transparent 96%); }
.hero-intro { min-width: 0; padding-bottom: 3px; }
.hero-intro p { margin-bottom: 20px; color: #414b46; font-size: 15px; line-height: 1.7; }
.hero-intro .text-link { min-height: 48px; padding: 12px 16px; gap: 24px; border-radius: 4px; font-size: 14px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; }
.hero-actions .button { justify-content: space-between; min-height: 48px; }
/* Explicitly defeat brand-theme's yellow treatment of every hero text-link. */
.hero-intro .hero-actions .text-link {
  width: fit-content;
  min-height: 44px;
  margin: 0;
  padding: 8px 0;
  gap: 14px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  text-decoration: underline;
  text-decoration-color: #a5afa8;
  text-underline-offset: 5px;
}
.hero-visual {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, .42fr);
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--ux-radius);
  background: var(--wash);
  color: var(--ink);
  box-shadow: var(--ux-shadow);
}
.hero-image {
  grid-column: 1;
  width: 100%;
  max-width: none;
  height: 100%;
  min-height: 300px;
  max-height: 420px;
  margin: 0;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center;
  background: var(--wash);
}
.hero-overlay { display: none; }
.hero-image-label {
  inset: 20px auto auto 20px;
  max-width: calc(100% - 40px);
  padding: 8px 11px;
  border-radius: 3px;
  background: var(--ink);
  color: #fff;
  font-size: 10px;
  line-height: 1.5;
}
.hero-caption {
  position: relative;
  inset: auto;
  grid-column: 2;
  width: auto;
  min-width: 0;
  padding: 32px;
  justify-content: center;
  align-items: start;
  gap: 28px;
  background: #fff;
  border-top: 4px solid var(--orange);
}
.hero-caption .mono { margin-bottom: 14px; color: var(--muted); font-size: 11px; }
.hero-caption h2 { font-size: clamp(25px, 2.5vw, 34px); line-height: 1.14; letter-spacing: -.04em; }
.hero-caption .circle-link {
  width: 48px;
  height: 48px;
  flex-basis: 48px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--ink);
  color: var(--orange);
  font-size: 26px;
}
.hero-bottom { min-height: 56px; gap: 16px; font-size: 10px; }
.hero > .seo-context { max-width: 860px; margin: 20px 0 0; font-size: 14px; line-height: 1.7; }

/* Portfolio: light paper cards tie each image to its own title and description. */
.projects-section { margin-top: 40px; background: var(--wash); border-block: 1px solid var(--line); }
.project-tools { min-width: 0; gap: 16px; padding-block: 14px; border-top-color: #cbd3cd; }
.filters { min-width: 0; gap: 6px; }
.filter { flex: 0 0 auto; min-height: 44px; padding: 10px 15px; border: 1px solid #cbd3cd; border-radius: 4px; background: #fff; font-size: 13px; }
.filter.active, .filter[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: #fff; box-shadow: inset 0 -3px var(--orange); }
.filter sup { align-self: center; margin-left: 2px; color: inherit; font-size: 10px; }
.project-search { min-width: 220px; max-width: 290px; padding: 0 12px; border: 1px solid #b5beb7; border-radius: 4px; background: #fff; }
.project-search input { min-height: 44px; font-size: 16px; }
.project-search:focus-within { border-color: var(--ink); box-shadow: 0 0 0 2px var(--orange); }
.results-status { margin: 16px 0 22px; font-size: 11px; letter-spacing: .03em; }
.project-grid { align-items: stretch; gap: 28px; }
.project-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--ux-radius);
  background: #fff;
  box-shadow: var(--ux-shadow);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.project-card .project-open { flex: 1 1 auto; min-width: 0; height: auto; padding-bottom: var(--ux-card-pad); border-radius: var(--ux-radius); text-align: left; }
.project-card .project-media { aspect-ratio: 16 / 10; border-radius: 7px 7px 0 0; background-color: #e9eeea; border-bottom: 1px solid var(--line); }
.project-media img { object-position: center; }
.project-badge { inset: 14px auto auto 14px; max-width: calc(100% - 28px); padding: 7px 9px; border: 1px solid rgb(32 36 35 / .12); border-radius: 3px; background: #fff; color: var(--ink); font-size: 10px; letter-spacing: .03em; }
.project-arrow { inset: auto 14px 14px auto; border-radius: 50%; border: 1px solid #fff; background: #fff; color: var(--ink); }
.project-card-meta { grid-template-columns: 1fr; gap: 8px; margin: 0; padding: 21px var(--ux-card-pad) 0; }
.project-card-meta .mono { width: fit-content; color: var(--muted); font-size: 11px; letter-spacing: .055em; }
.project-card-meta h3, .inner-projects .project-open h3 { font-size: clamp(23px, 2.15vw, 29px); line-height: 1.2; letter-spacing: -.035em; }
.project-card .project-open > p { max-width: none; margin: 10px var(--ux-card-pad) 0; color: var(--muted); font-size: 15px; line-height: 1.65; }
.project-card > .project-detail-link { display: flex; align-items: center; min-height: 48px; margin: 0 var(--ux-card-pad); padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 0; font-size: 12px; font-weight: 600; line-height: 1.5; }
.is-drawing .project-media { background-color: #f1f4f0; background-size: 24px 24px; }
.is-drawing .project-media img { padding: 44px 18px 24px; object-fit: contain; mix-blend-mode: multiply; }
/* The enhancer moves .project-media (also .card-gallery) before .project-open.
   No assumptions about interactive wrappers or the controls' layout. */
.project-card > .project-media, .project-card > .card-gallery { flex: 0 0 auto; }
.project-card > .project-open { width: 100%; }
.project-card .card-gallery-controls { border-color: var(--line); background: #fff; color: var(--ink); }
.project-card .card-gallery-arrow { border-color: #b5beb7; background: #fff; color: var(--ink); }
.project-card .card-gallery-dot { color: #7a857e; }
.project-card .card-gallery-dot[aria-pressed="true"],
.project-card .card-gallery-dot[aria-current="true"],
.project-card .card-gallery-dot.is-active { color: var(--ink); }
.project-card .card-gallery-status { color: var(--muted); }
.more-projects > button { margin-top: 32px; min-height: 48px; }
.empty-state { margin-top: 20px; padding: 44px 24px; border: 1px dashed #a9b5ab; border-radius: var(--ux-radius); background: #fff; }
.empty-state h3 { font-size: clamp(24px, 3vw, 34px); line-height: 1.2; }
.empty-state p { max-width: 45ch; margin: 12px auto 24px; }
.portfolio-foot { gap: 20px; margin-top: 32px; padding-top: 20px; }
.portfolio-foot p { font-size: 13px; }

/* Services, bureau, process: clearly separate chapters with useful rhythm. */
.expertise-section { position: relative; background: var(--ink); color: #fff; border-bottom: 4px solid var(--orange); }
.expertise-layout { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 64px; }
.expertise-intro h2 { margin: 24px 0; font-size: clamp(34px, 3.4vw, 46px); letter-spacing: -.04em; }
.expertise-intro > p:not(.eyebrow), .service-description, .service-number { color: #d1d8d3; }
.expertise-intro .text-link { color: #fff; }
.services-list { border-color: #566159; }
.services-list details { padding-inline: 14px; border-color: #566159; }
.services-list details[open] { background: #2b322e; }
.services-list summary { min-height: 80px; padding-block: 20px; }
.services-list h3 { font-size: clamp(22px, 2vw, 27px); line-height: 1.22; }
.service-description { padding-right: 16px; padding-bottom: 24px; }
.service-description p { margin-bottom: 18px; font-size: 15px; line-height: 1.7; }
.bureau-layout { gap: 52px; align-items: start; }
.bureau-copy h2 { margin-bottom: 24px; }
.bureau-copy > p + p { margin-top: 16px; }
.bureau-copy .bureau-lead { font-size: 18px; line-height: 1.65; }
.bureau-facts { gap: 24px; margin-top: 28px; padding-top: 22px; }
.bureau-facts .mono { font-size: 10px; line-height: 1.65; }
.bureau-figure { min-height: 400px; padding: 24px; border-color: var(--line); border-radius: var(--ux-radius); background-color: var(--wash); }
.bureau-figure figcaption, .blueprint-label { font-size: 11px; }
.seo-services { padding-top: 26px; }
.service-links { gap: 0 28px; }
.service-links a { min-height: 56px; gap: 16px; padding-block: 15px; font-size: 15px; line-height: 1.5; }
.service-links a::after { flex: 0 0 auto; color: var(--ink); }
.recognition { gap: 24px 36px; margin-top: 36px; margin-bottom: 64px; padding-top: 24px; }
.recognition h3 { font-size: 25px; line-height: 1.25; }
.recognition p:not(.mono) { font-size: 15px; line-height: 1.7; }
.process-section { padding-top: 0; }
.process-section .container { padding-top: 36px; border-top: 1px solid var(--line); }
.process-section h2 { font-size: clamp(32px, 3.6vw, 48px); }
.process-grid { gap: 20px; }
.process-grid article { min-width: 0; padding: 24px; border: 1px solid var(--line); border-top: 3px solid var(--orange); border-radius: 0 0 var(--ux-radius) var(--ux-radius); background: var(--wash); }
.process-grid article > .mono { color: var(--muted); font-size: 12px; }
.process-grid h3 { margin: 24px 0 12px; font-size: 23px; line-height: 1.2; }
.process-grid p { max-width: none; font-size: 14px; line-height: 1.7; }
.estimate-note {
  display: grid;
  grid-template-columns: minmax(200px, .8fr) minmax(0, 1.8fr);
  align-items: start;
  gap: 32px;
  margin-top: 24px;
  padding: 26px 28px;
  border-left: 4px solid var(--orange);
  border-radius: 0 var(--ux-radius) var(--ux-radius) 0;
  background: var(--ink);
  color: #fff;
}
.estimate-note h3 { margin: 0; font-size: 23px; line-height: 1.25; letter-spacing: -.025em; }
.estimate-note p { max-width: 70ch; color: #d1d8d3; font-size: 15px; line-height: 1.75; }

/* Interior pages: shorter introductions, readable paragraphs, explicit links. */
.breadcrumbs { padding-top: 18px; font-size: 12px; line-height: 1.5; }
.breadcrumbs ol { align-items: center; gap: 4px 12px; }
.breadcrumbs a { display: inline-flex; align-items: center; min-height: 44px; text-decoration-color: #a5afa8; }
.inner-hero { position: relative; padding-block: 30px 40px; border-bottom: 1px solid var(--line); }
.inner-hero::after { position: absolute; left: 0; bottom: -2px; width: 64px; height: 4px; background: var(--orange); content: ""; }
.inner-hero .eyebrow { margin-bottom: 18px; color: var(--muted); }
.inner-hero h1 { max-width: 1050px; font-size: clamp(38px, 4.6vw, 64px); line-height: 1.08; letter-spacing: -.045em; overflow-wrap: break-word; hyphens: auto; }
.inner-lead { max-width: 760px; margin: 22px 0 24px; font-size: clamp(17px, 1.6vw, 21px); line-height: 1.65; }
.editorial-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(32px, 5vw, 72px); padding-block: 48px 64px; }
.editorial-copy { min-width: 0; }
.editorial-copy > section { margin-bottom: 36px; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.editorial-copy > section:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
.editorial-copy h2 { max-width: 34ch; margin-bottom: 18px; font-size: clamp(26px, 2.6vw, 35px); line-height: 1.2; letter-spacing: -.035em; overflow-wrap: break-word; }
.editorial-copy h3 { margin: 24px 0 12px; font-size: 22px; line-height: 1.3; letter-spacing: -.02em; }
.editorial-copy p { max-width: 68ch; color: #47534b; font-size: 16px; line-height: 1.75; }
.editorial-copy p + p, .case-study section > p + p { margin-top: 14px; }
.editorial-copy ul, .editorial-copy ol { padding-left: 22px; color: #47534b; font-size: 16px; line-height: 1.7; }
.editorial-copy li { margin-bottom: 12px; padding-left: 3px; }
.editorial-copy li::marker { color: #68756b; }
.editorial-copy strong { color: var(--ink); }
.editorial-copy :is(p, li) a:not(.button):not(.text-link) { color: var(--ink); text-decoration: underline; text-decoration-color: #a2afa5; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.editorial-copy .button { margin-top: 20px; }
.service-aside { min-width: 0; padding: 24px; border: 1px solid var(--line); border-top: 4px solid var(--orange); border-radius: 0 0 var(--ux-radius) var(--ux-radius); background: var(--wash); }
.service-aside h2 { font-size: 24px; line-height: 1.2; letter-spacing: -.03em; }
.service-aside .service-links a { font-size: 14px; line-height: 1.5; }
.service-aside p { color: var(--muted); font-size: 14px; line-height: 1.7; }
.service-aside .text-link { max-width: 100%; font-size: 14px; gap: 12px; }
.inner-projects { padding-block: 48px; }
.inner-projects > h2 { font-size: clamp(29px, 3vw, 40px); line-height: 1.15; margin-bottom: 28px; }
.inner-card-list { padding-block: 40px 64px; }
.service-summary-grid { gap: 24px; }
.service-summary { display: flex; flex-direction: column; align-items: start; min-width: 0; padding: 28px; border: 1px solid var(--line); border-top: 4px solid var(--orange); border-radius: 0 0 var(--ux-radius) var(--ux-radius); background: var(--wash); }
.service-summary h2 { margin: 16px 0; font-size: clamp(25px, 2.5vw, 31px); line-height: 1.2; letter-spacing: -.035em; }
.service-summary p { font-size: 15px; line-height: 1.7; }
.service-summary .text-link { margin-top: auto; }
.faq-row { margin-top: 12px; padding: 0 18px; border: 1px solid var(--line); border-radius: 6px; background: var(--wash); }
.faq-row summary { min-height: 56px; padding-block: 16px; font-size: 18px; line-height: 1.5; font-weight: 600; }
.faq-row summary::marker { color: var(--muted); font-size: .8em; }
.faq-row[open] { border-color: #a5b0a8; background: #fff; }
.faq-row p { padding: 0 0 20px; font-size: 15px; line-height: 1.75; }
.project-facts { padding: 0 20px; border: 1px solid var(--line); border-radius: var(--ux-radius); background: var(--wash); }
.project-facts > div { gap: 20px; padding-block: 16px; font-size: 15px; }
.project-facts > div:last-child { border-bottom: 0; }
.project-facts dd { color: var(--ink); font-weight: 500; }
.project-gallery { gap: 28px; }
.project-gallery figure { border-radius: var(--ux-radius); background: #fff; box-shadow: var(--ux-shadow); }
.project-gallery figure > a { display: block; border-radius: 7px 7px 0 0; }
.project-gallery img { border-radius: 7px 7px 0 0; background: var(--wash); }
.project-gallery figcaption { border-top: 1px solid var(--line); padding: 18px 20px; font-size: 14px; line-height: 1.65; }
.case-nav { gap: 6px 20px; margin-bottom: 32px; padding: 10px 0; border-top-width: 3px; }
.case-nav a { font-size: 13px; text-decoration-color: #a2afa5; }
.case-stage-links { gap: 0 24px; }
.case-stage-links a { min-height: 48px; font-size: 14px; text-decoration: underline; text-decoration-color: #a2afa5; }
.case-study .project-gallery figure > a { padding: 18px; background: var(--wash); }
.case-study .project-gallery figcaption { padding: 20px; font-size: 15px; line-height: 1.7; }
.case-study .project-gallery figcaption strong { font-size: 21px; font-weight: 600; }
.case-material-type { font-size: 11px; color: var(--muted); }
.source-note { margin-top: 24px; font-size: 12px !important; line-height: 1.7; }

/* Inquiry and footer: visible controls, the same visual system. */
.button { max-width: 100%; min-height: 48px; padding: 13px 20px; border-radius: 4px; font-size: 15px; line-height: 1.5; }
.button > span { flex-shrink: 0; }
.button-orange, .inner-hero .button, .contact-strip .button { background: var(--orange); color: var(--ink); }
.button-dark { background: var(--ink); color: #fff; }
.text-link { line-height: 1.5; }
.contact-section { border-top: 4px solid var(--orange); background: var(--wash); }
.contact-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.contact-copy { min-width: 0; }
.contact-copy h2 { margin: 24px 0; font-size: clamp(34px, 3.7vw, 49px); line-height: 1.12; letter-spacing: -.045em; }
.contact-copy em { text-decoration-thickness: 4px; text-underline-offset: 5px; }
.contact-copy > p:not(.eyebrow) { font-size: 15px; line-height: 1.7; }
.contact-email { align-items: center; min-height: 44px; gap: 12px; margin-top: 26px; font-size: clamp(24px, 2.6vw, 34px); }
.contact-phone { font-size: 20px; }
.contact-copy address { margin-top: 20px; font-size: 15px; line-height: 1.7; }
.contact-prompt {
  position: relative;
  min-width: 0;
  padding: 36px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--ink);
  border-radius: 0 0 var(--ux-radius) var(--ux-radius);
  background: #fff;
  box-shadow: var(--ux-shadow);
}
.contact-prompt > .eyebrow { margin-bottom: 24px; color: var(--muted); }
.contact-prompt h3 { max-width: 15ch; margin: 0 0 18px; font-size: clamp(30px, 3vw, 40px); line-height: 1.12; letter-spacing: -.045em; }
.contact-prompt > p:not(.eyebrow) { max-width: 48ch; color: var(--muted); font-size: 15px; line-height: 1.75; }
.contact-prompt > .button { display: flex; width: fit-content; margin-top: 26px; }
.contact-prompt > a:not(.button) { display: flex; align-items: center; width: fit-content; min-height: 44px; max-width: 100%; margin-top: 12px; border-bottom: 0; color: var(--ink); font-size: 14px; text-decoration: underline; text-decoration-color: #a5afa8; }
.brief-form { min-width: 0; padding: 28px; border: 1px solid var(--line); border-radius: var(--ux-radius); background: #fff; box-shadow: var(--ux-shadow); }
.brief-form h3 { margin-bottom: 24px; font-size: 26px; line-height: 1.25; }
.brief-form label { margin-bottom: 20px; font-family: var(--sans); font-size: 13px; font-weight: 600; line-height: 1.5; }
.brief-form :is(input, select, textarea) { min-height: 48px; margin-top: 8px; padding: 11px 12px; border: 1px solid #a8b3aa; border-radius: 4px; background: #fff; font-size: 16px; font-weight: 400; }
.brief-form select { padding-right: 28px; }
.brief-form textarea { min-height: 112px; }
.brief-form :is(input, select, textarea):focus { border-color: var(--ink); box-shadow: 0 0 0 2px var(--orange); }
.brief-form :is(input, textarea):user-invalid { border: 2px solid #963d28; }
.brief-form [readonly] { background: var(--wash); }
.brief-form :is(input[type="checkbox"], input[type="radio"]) { display: inline-block; width: 20px; height: 20px; min-height: 20px; margin-right: 8px; accent-color: var(--ink); vertical-align: middle; }
.form-note { max-width: none; font-size: 12px; line-height: 1.65; }
.letter-result { padding-top: 20px; border-color: var(--line); }
.contact-strip { padding-block: 40px; border-top: 4px solid var(--orange); background: var(--ink); color: #fff; }
.contact-strip-inner { gap: 24px; }
.contact-strip h2 { font-size: 30px; line-height: 1.2; }
.contact-strip p { color: #d1d8d3; font-size: 15px; line-height: 1.65; }
.site-footer { background: var(--ink); color: #fff; }
.footer-top { gap: 24px; padding-block: 36px; }
.site-footer .brand--emblem { width: 240px; max-width: 100%; }
.footer-top > p, .footer-bottom { color: #d1d8d3; }
.footer-bottom { font-size: 11px; line-height: 1.7; }
.seo-footer-nav { gap: 4px 24px; padding-block: 14px; font-size: 13px; }
.seo-footer-nav a { display: inline-flex; align-items: center; min-height: 44px; }

/* Native project dialog remains controlled by [open], never forced visible. */
.project-dialog { border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.dialog-close { border-radius: 4px; }
.dialog-copy h2 { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.15; }
.dialog-copy .eyebrow { font-size: 11px; }
#dialog-description { color: #47534b; font-size: 15px; line-height: 1.75; }
#dialog-image { border: 1px solid var(--line); border-radius: 5px; background: var(--wash); }
.gallery-controls button { border-color: #b5beb7; border-radius: 4px; }
.gallery-thumb { border-radius: 4px; }
.gallery-thumb.is-active, .gallery-thumb[aria-pressed="true"] { border-color: var(--ink); box-shadow: 0 0 0 2px var(--orange); }
#dialog-source { display: inline-flex; align-items: center; min-height: 44px; }

/* Two-tone focus rings remain visible on white, graphite, yellow and photos. */
:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--ink);
}
.expertise-section :focus-visible, .site-footer :focus-visible, .contact-strip :focus-visible {
  outline-color: var(--orange);
  box-shadow: 0 0 0 3px var(--ink), 0 0 0 6px var(--orange);
}
.project-card:focus-within { border-color: #87978a; box-shadow: 0 0 0 2px #dce5dd; }
.project-card .project-open:focus-visible { outline-offset: -4px; box-shadow: inset 0 0 0 7px #fff; }
.filter:focus-visible { outline-offset: -4px; outline-color: var(--ink); box-shadow: inset 0 0 0 7px #fff; }
.filter[aria-pressed="true"]:focus-visible { outline-color: var(--orange); box-shadow: inset 0 0 0 7px var(--ink); }
:where(button, input, select, textarea):disabled { opacity: .6; }

@media (hover: hover) {
  .site-header .header-contact:hover, .hero-intro .text-link:hover,
  .button-orange:hover, .inner-hero .button:hover, .contact-strip .button:hover {
    background: #dfcc00; color: var(--ink);
  }
  .button-dark:hover, .dialog-close:hover { background: #3d4841; color: #fff; }
  .main-nav a:hover { color: var(--ink); box-shadow: inset 0 -3px var(--orange); }
  .hero-intro .hero-actions .text-link:hover { background: transparent; color: var(--ink); text-decoration-color: var(--ink); }
  .text-link:hover, .contact-email:hover, .contact-phone:hover,
  .service-links a:hover, .project-detail-link:hover, .breadcrumbs a:hover { color: #414e44; text-decoration: underline; }
  .service-links a:hover::after { transform: translate(2px, -2px); }
  .project-card:hover { border-color: #aab7ad; box-shadow: 0 12px 32px rgb(22 31 25 / .09); }
  .project-open:hover h3 { color: var(--ink); text-decoration: underline; text-decoration-color: #c9ba08; text-underline-offset: 5px; text-decoration-thickness: 2px; }
  .project-open:hover .project-media img, .is-drawing .project-open:hover .project-media img { transform: none; }
  .project-open:hover .project-arrow, .hero-caption .circle-link:hover { transform: none; background: var(--orange); color: var(--ink); border-color: var(--ink); }
  .filter:not(.active):not([aria-pressed="true"]):hover { border-color: #8c9a90; background: #e7ece7; }
  .faq-row summary:hover { color: #414e44; }
  .expertise-section .text-link:hover, .site-footer a:hover, .contact-strip a:hover { color: var(--orange); }
  .contact-strip .button:hover { color: var(--ink); }
  .editorial-copy :is(p, li) a:not(.button):not(.text-link):hover { text-decoration-color: var(--ink); text-decoration-thickness: 2px; }
}

@media (min-width: 981px) and (max-width: 1199px) {
  .site-header .header-inner { min-height: 84px; gap: 20px; }
  .site-header .brand--emblem { width: 250px; }
  .site-header .main-nav { gap: 18px; }
  .hero-heading { grid-template-columns: minmax(0, 1fr) 280px; gap: 28px; }
  .hero h1 { font-size: clamp(58px, 6.5vw, 78px); }
  .hero-caption { padding: 24px; }
  .process-grid article { padding: 20px; }
  .process-grid h3 { font-size: 21px; }
}

@media (max-width: 980px) {
  .site-header .header-inner { min-height: 80px; gap: 18px; }
  .site-header .brand--emblem { width: 270px; }
  .site-header .main-nav { padding: 12px var(--gutter) 20px; max-height: calc(100dvh - 81px); background: #fff; }
  .site-header .main-nav.is-open { gap: 0; }
  .site-header .main-nav a { min-height: 52px; font-size: 20px; }
  .site-header .header-contact { margin-left: auto; }
  .hero-heading { grid-template-columns: 1fr; gap: 24px; }
  .hero h1 { font-size: clamp(50px, 8vw, 72px); }
  .hero-intro { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
  .hero-intro p { margin-bottom: 0; font-size: 15px; }
  .hero-visual { grid-template-columns: minmax(0, 1fr) minmax(210px, .55fr); }
  .hero-image { min-height: 280px; max-height: 350px; }
  .hero-caption { flex-direction: column; align-items: start; padding: 24px; }
  .section { padding-block: 60px; }
  .section-heading { gap: 28px; }
  .section-intro { flex-basis: 300px; }
  .expertise-layout, .bureau-layout { grid-template-columns: 1fr; gap: 32px; }
  .expertise-intro h2 { max-width: 18ch; font-size: 40px; }
  .expertise-intro > p:not(.eyebrow) { max-width: 64ch; }
  .bureau-copy h2 { font-size: 40px; }
  .bureau-figure { min-height: 340px; }
  .bureau-figure img { max-height: 300px; }
  .process-section { padding-top: 0; }
  .process-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .contact-layout { gap: 28px; }
  .contact-copy h2 { font-size: 36px; }
  .brief-form { padding: 22px; }
  .editorial-layout { grid-template-columns: 1fr; gap: 36px; }
  .service-aside .service-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  /* Scroll belongs to the filter strip, never to the document. Leaving the
     right edge open exposes the next filter; native scrollbar remains visible. */
  .project-tools { display: block; padding-block: 12px 14px; }
  .project-tools .filters {
    display: flex;
    flex-wrap: nowrap;
    width: calc(100% + var(--gutter));
    max-width: calc(100% + var(--gutter));
    gap: 8px;
    margin: 0;
    padding: 4px var(--gutter) 12px 0;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scroll-padding-inline: 4px var(--gutter);
    scrollbar-width: thin;
    scrollbar-color: #839187 #e5eae5;
    -webkit-overflow-scrolling: touch;
    background: linear-gradient(to left, var(--wash), rgb(242 244 241 / 0)) right top / 18px calc(100% - 8px) no-repeat;
  }
  .filters::-webkit-scrollbar { height: 4px; }
  .filters::-webkit-scrollbar-track { background: #e5eae5; }
  .filters::-webkit-scrollbar-thumb { background: #839187; border-radius: 4px; }
  .filter { scroll-snap-align: start; white-space: nowrap; }
  .project-search { width: 100%; max-width: none; min-width: 0; margin-top: 14px; }
}

@media (max-width: 640px) {
  :root { --gutter: 20px; --ux-card-pad: 18px; }
  .site-header .header-inner { min-height: 72px; gap: 8px; padding-block: 10px; }
  .site-header .brand--emblem { width: min(248px, calc(100% - 104px)); min-height: 44px; max-width: none; }
  .site-header .header-contact {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    min-height: 44px;
    margin: 0 0 0 auto;
    padding: 0;
    border: 1px solid var(--orange);
    border-radius: 4px;
    background: var(--orange);
    font-size: 0;
    gap: 0;
  }
  .site-header .header-contact span { display: none; }
  /* Envelope is purely decorative; the original text still names the link
     for assistive technology. No generated marketing copy or altered emblem. */
  .site-header .header-contact::before {
    content: "";
    width: 22px;
    height: 16px;
    flex: 0 0 22px;
    border: 1.5px solid currentColor;
    border-radius: 2px;
    background: linear-gradient(32deg, transparent 43%, currentColor 46%, currentColor 56%, transparent 59%) left top / 50% 8px no-repeat,
      linear-gradient(-32deg, transparent 43%, currentColor 46%, currentColor 56%, transparent 59%) right top / 50% 8px no-repeat;
  }
  .site-header .menu-toggle { margin-left: 0; }
  .site-header .main-nav { max-height: calc(100dvh - 73px); }
  .hero { padding-top: 20px; }
  .hero-top { flex-wrap: wrap; gap: 6px 12px; }
  .hero .eyebrow { font-size: 10px; letter-spacing: .025em; }
  .hero-location { font-size: 10px; text-align: left; }
  .hero-heading { gap: 20px; margin: 22px 0 24px; }
  .hero h1 { font-size: clamp(38px, 9.5vw, 55px); line-height: 1.05; letter-spacing: -.055em; }
  .hero-intro { display: block; padding: 0; }
  .hero-intro p { max-width: 42ch; font-size: 15px; line-height: 1.65; }
  .hero-intro p br { display: initial; }
  .hero-intro .text-link { margin-top: 16px; min-height: 48px; }
  .hero-actions { margin-top: 18px; gap: 6px 18px; }
  .hero-intro .hero-actions .text-link { min-height: 44px; margin: 0; }
  .hero-visual { display: block; }
  .hero-image { min-height: 0; max-height: none; height: auto; aspect-ratio: 16 / 10; }
  .hero-image-label { inset: 12px auto auto 12px; max-width: calc(100% - 24px); padding: 6px 8px; font-size: 9px; }
  .hero-caption { flex-direction: row; align-items: center; justify-content: space-between; gap: 14px; padding: 17px 18px; border-top-width: 3px; }
  .hero-caption .mono { margin-bottom: 7px; font-size: 10px; letter-spacing: .02em; }
  .hero-caption h2 { font-size: 24px; line-height: 1.17; }
  .hero-caption .circle-link { flex-basis: 44px; width: 44px; height: 44px; font-size: 25px; }
  .hero-bottom { min-height: 56px; font-size: 9px; }
  .hero-bottom > span { max-width: 170px; }
  .hero > .seo-context { margin-top: 16px; font-size: 13px; line-height: 1.7; }
  .section { padding-block: 44px; }
  .section-top { gap: 16px; margin-bottom: 20px; }
  .section-aside { max-width: 150px; font-size: 9px; }
  .section-heading { display: block; margin-bottom: 24px; }
  .section-heading h2, .bureau-copy h2 { font-size: clamp(30px, 7.8vw, 39px); line-height: 1.14; letter-spacing: -.04em; }
  .section-intro { max-width: 44ch; margin-top: 16px; font-size: 14px; line-height: 1.7; }
  .projects-section { margin-top: 28px; }
  .filter { padding-inline: 14px; font-size: 13px; }
  .results-status { margin: 14px 0 18px; font-size: 10px; }
  .project-grid { grid-template-columns: 1fr; gap: 24px; }
  .project-card-meta { padding-top: 17px; gap: 7px; }
  .project-card-meta h3, .inner-projects .project-open h3 { font-size: 24px; line-height: 1.22; }
  .project-card .project-open > p { margin-top: 9px; font-size: 14px; line-height: 1.7; }
  .project-badge { inset: 12px auto auto 12px; max-width: calc(100% - 24px); font-size: 9px; }
  .project-arrow { right: 12px; bottom: 12px; }
  .is-drawing .project-media img { padding: 40px 12px 20px; }
  .more-projects > button { width: 100%; margin-top: 24px; }
  .portfolio-foot { gap: 12px; margin-top: 24px; }
  .empty-state { padding: 32px 18px; }
  .expertise-layout, .bureau-layout { gap: 28px; }
  .expertise-intro h2 { margin: 20px 0; font-size: clamp(31px, 7.7vw, 39px); }
  .expertise-intro > p:not(.eyebrow) { font-size: 15px; }
  .expertise-intro .text-link { margin-top: 20px; }
  .services-list details { padding-inline: 8px; }
  .services-list summary { grid-template-columns: 22px minmax(0, 1fr) 20px; gap: 10px; min-height: 76px; padding-block: 18px; }
  .services-list h3 { font-size: 21px; line-height: 1.25; }
  .service-number { font-size: 11px; }
  .service-description { padding: 0 0 22px 32px; }
  .service-description p { font-size: 14px; }
  .bureau-copy .bureau-lead { font-size: 17px; }
  .bureau-copy > p { font-size: 15px; line-height: 1.75; }
  .bureau-facts { gap: 18px; margin-top: 24px; }
  .bureau-facts strong, .bureau-facts > div:first-child strong { font-size: 28px; }
  .bureau-facts .mono { font-size: 10px; letter-spacing: .01em; }
  .bureau-figure { min-height: 280px; gap: 20px; padding: 18px; }
  .blueprint-label, .bureau-figure figcaption { font-size: 10px; }
  .seo-services { margin-top: 22px; padding-top: 22px; }
  .seo-services h3 { font-size: 22px; line-height: 1.3; }
  .service-links a { font-size: 14px; }
  .recognition { gap: 16px; margin-top: 28px; margin-bottom: 44px; }
  .recognition h3 { font-size: 24px; }
  .recognition p:not(.mono) { font-size: 14px; }
  .process-section { padding-top: 0; }
  .process-section .container { padding-top: 28px; }
  .process-grid { grid-template-columns: 1fr; gap: 14px; }
  .process-grid article { padding: 20px; }
  .process-grid h3 { margin: 14px 0 9px; font-size: 23px; }
  .process-grid p { font-size: 14px; }
  .estimate-note { grid-template-columns: 1fr; gap: 14px; margin-top: 18px; padding: 24px 20px; }
  .estimate-note h3 { font-size: 23px; }
  .estimate-note p { font-size: 14px; line-height: 1.75; }
  .breadcrumbs { padding-top: 10px; font-size: 11px; }
  .breadcrumbs ol { gap: 0 8px; }
  .breadcrumbs li + li::before { margin-right: 8px; }
  .inner-hero { padding-block: 22px 28px; }
  .inner-hero .eyebrow { margin-bottom: 15px; font-size: 10px; }
  .inner-hero h1 { font-size: clamp(30px, 8vw, 40px); line-height: 1.13; letter-spacing: -.04em; }
  .inner-lead { margin: 18px 0 22px; font-size: 17px; line-height: 1.65; }
  .editorial-layout { gap: 28px; padding-block: 32px 40px; }
  .editorial-copy > section { margin-bottom: 28px; padding-bottom: 26px; }
  .editorial-copy h2 { margin-bottom: 16px; font-size: 27px; line-height: 1.22; letter-spacing: -.035em; }
  .editorial-copy p, .editorial-copy ul, .editorial-copy ol { font-size: 16px; line-height: 1.75; }
  .editorial-copy p + p, .case-study section > p + p { margin-top: 14px; }
  .editorial-copy .button { width: 100%; font-size: 14px; }
  .service-aside { padding: 22px 20px; }
  .service-aside .service-links { grid-template-columns: 1fr; }
  .inner-projects { padding-block: 36px; }
  .inner-projects > h2 { margin-bottom: 24px; font-size: 29px; }
  .inner-card-list { padding-block: 28px 40px; }
  .service-summary-grid { grid-template-columns: 1fr; gap: 18px; }
  .service-summary { padding: 22px 20px; }
  .service-summary h2 { font-size: 27px; }
  .faq-row { padding-inline: 16px; }
  .faq-row summary { font-size: 17px; }
  .faq-row p { font-size: 15px; }
  .project-facts { padding-inline: 16px; margin-bottom: 28px; }
  .project-facts > div { grid-template-columns: 1fr; gap: 5px; }
  .project-gallery { gap: 22px; margin-top: 24px; }
  .project-gallery figcaption { padding: 16px; }
  .case-nav { gap: 4px 18px; margin-bottom: 24px; }
  .case-stage-links { grid-template-columns: 1fr; }
  .case-study .project-gallery figure > a { padding: 12px; }
  .case-study .project-gallery figcaption { padding: 16px; font-size: 14px; }
  .case-study .project-gallery figcaption strong { font-size: 20px; }
  .contact-layout { grid-template-columns: 1fr; gap: 28px; }
  .contact-copy h2 { margin: 20px 0; font-size: clamp(32px, 8vw, 41px); }
  .contact-email { margin-top: 22px; font-size: clamp(24px, 6.6vw, 30px); }
  .contact-phone { font-size: 20px; }
  .contact-prompt { padding: 26px 22px; }
  .contact-prompt > .eyebrow { margin-bottom: 20px; font-size: 10px; }
  .contact-prompt h3 { font-size: 32px; }
  .contact-prompt > .button { width: 100%; margin-top: 22px; }
  .brief-form { padding: 22px 18px; }
  .brief-form h3 { font-size: 25px; }
  .brief-form label { margin-bottom: 18px; }
  .contact-strip { padding-block: 32px; }
  .contact-strip h2 { font-size: 27px; }
  .contact-strip p { font-size: 14px; }
  .contact-strip .button { width: 100%; }
  .footer-top { gap: 22px; padding-block: 28px; }
  .footer-top > p { font-size: 13px; }
  .footer-top .text-link { margin-left: 0; }
  .footer-bottom { gap: 8px; padding-block: 18px; font-size: 10px; }
  .project-dialog { width: calc(100% - 20px); max-height: calc(100dvh - 20px); padding: 0 16px 24px; }
  .dialog-close { top: 8px; margin-right: 0; }
  .dialog-copy h2 { font-size: 30px; }
}

@media (max-width: 359px) {
  :root { --gutter: 16px; --ux-card-pad: 16px; }
  .hero h1 { font-size: 37px; }
  .hero-caption { padding: 16px; gap: 10px; }
  .hero-caption h2 { font-size: 21px; }
  .hero-caption .mono { font-size: 9px; }
  .hero-bottom { font-size: 8px; gap: 10px; }
  .hero-bottom > span { max-width: 145px; }
  .section-aside { max-width: 115px; }
  .project-card-meta h3, .inner-projects .project-open h3 { font-size: 23px; }
  .project-card > .project-detail-link { font-size: 11px; }
  .bureau-facts { grid-template-columns: 1fr; gap: 18px; }
  .bureau-facts > div + div { border-top: 1px solid var(--line); padding-top: 18px; }
  .inner-hero h1 { font-size: 30px; }
  .editorial-copy h2 { font-size: 25px; }
  .contact-email { font-size: 24px; }
  .button { gap: 14px; padding-inline: 16px; font-size: 14px; }
  .brief-form { padding-inline: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .service-links a:hover::after, .circle-link:hover, .project-open:hover .project-media img { transform: none; }
  .project-tools .filters { scroll-snap-type: none; }
}

@media (forced-colors: active) {
  .project-card, .service-summary, .brief-form, .faq-row, .service-aside, .project-search,
  .button, .filter, .header-contact, .menu-toggle { border: 1px solid CanvasText; }
  .filter[aria-pressed="true"], .gallery-thumb[aria-pressed="true"] { outline: 3px solid Highlight; outline-offset: -4px; }
  .hero-caption, .hero-image-label, .project-badge { background: Canvas; color: CanvasText; }
  :where(a, button, input, select, textarea, summary):focus-visible { outline: 3px solid Highlight; box-shadow: none; }
}
