/* Layout: a dark brass-framed band for the brand, then quiet paper sections.
   Two views share one page: #home (the company) and #proposal (client document). */
:root {
  --paper: #f4f3ef;
  --surface: #ffffff;
  --ink: #1a1813;
  --muted: #5d5a51;
  --line: #dcd8cc;
  --brass: #94711f;
  --brass-soft: #efe6cf;

  /* the brand band stays dark in both themes, like the printed brochure */
  --band: #15130f;
  --band-2: #201d17;
  --band-fg: #f1ece0;
  --band-muted: #b5ad99;
  --gold: #d2a63f;

  --display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --body: "Public Sans", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --radius: 6px;
  --maxw: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #12110d;
    --surface: #1b1914;
    --ink: #ece7da;
    --muted: #a8a293;
    --line: #322e25;
    --brass: #d6ad4c;
    --brass-soft: #2a2416;
    --band: #0b0a08;
    --band-2: #191712;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #12110d;
  --surface: #1b1914;
  --ink: #ece7da;
  --muted: #a8a293;
  --line: #322e25;
  --brass: #d6ad4c;
  --brass-soft: #2a2416;
  --band: #0b0a08;
  --band-2: #191712;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 10;
  background: var(--band);
}

h1, h2, h3 {
  font-family: var(--display);
  line-height: 1.1;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

.eyebrow {
  font: 600 0.75rem/1 var(--display);
  font-stretch: 112%;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 5;
  background: var(--band);
  color: var(--band-fg);
  border-bottom: 1px solid #3a3326;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-logo { width: auto; height: 34px; flex: none; }

.brand-name {
  font: 700 0.95rem/1.05 var(--display);
  font-stretch: 115%;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand-name small {
  display: block;
  font: italic 400 0.72rem/1.3 var(--body);
  letter-spacing: 0;
  text-transform: none;
  color: var(--gold);
}

.site-nav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav a {
  font: 500 0.85rem/1 var(--body);
  text-decoration: none;
  color: var(--band-muted);
  padding: 9px 12px;
  border-radius: 999px;
  transition: color .15s, background-color .15s;
}

.site-nav a:hover { color: var(--band-fg); }

.site-nav a[aria-current="page"] {
  color: var(--band);
  background: var(--gold);
}

@media (max-width: 900px) {
  .site-nav .hide-sm { display: none; }
}

/* ---------- hero band ---------- */

.hero {
  background:
    radial-gradient(120% 90% at 85% 0%, #2b2519 0%, transparent 60%),
    var(--band);
  color: var(--band-fg);
}

.hero .wrap { padding-block: 56px 48px; }

.frame {
  position: relative;
  border: 1px solid #4a3f28;
  padding: clamp(24px, 5vw, 56px);
}

/* brass corner marks, a nod to the ornamental brochure border */
.frame::before,
.frame::after {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  border: 2px solid var(--gold);
}
.frame::before { top: -6px; left: -6px; border-right: 0; border-bottom: 0; }
.frame::after { bottom: -6px; right: -6px; border-left: 0; border-top: 0; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.2rem, 5.4vw, 4.1rem);
  font-weight: 850;
  font-stretch: 118%;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin-top: 14px;
}

.hero h1 em {
  font-style: normal;
  color: var(--gold);
}

.hero .lede {
  margin-top: 18px;
  font-size: 1.15rem;
  color: var(--band-muted);
  max-width: 46ch;
}

.pillars {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-top: 22px;
  padding: 0;
  list-style: none;
  font: 600 0.9rem/1.4 var(--display);
  font-stretch: 108%;
  color: var(--gold);
}

.pillars li + li::before {
  content: "·";
  margin-right: 18px;
  color: #6d6045;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 600 0.92rem/1 var(--body);
  padding: 13px 20px;
  border-radius: var(--radius);
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s, background-color .15s;
}

.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: #17140d; }
.btn-gold:hover { background: #e0b551; }
.btn-ghost { border-color: #5a4d31; color: var(--band-fg); }
.btn-ghost:hover { background: #241f16; }

.hero-mark {
  display: grid;
  justify-items: center;
  gap: 18px;
  text-align: center;
}

.hero-mark img { width: min(100%, 380px); }

.hero-mark p {
  font: 600 0.78rem/1.5 var(--display);
  font-stretch: 115%;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--band-muted);
}

.values {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 28px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  font: 500 0.82rem/1 var(--display);
  font-stretch: 112%;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--band-muted);
}

.values li:first-child { color: var(--gold); }

@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-mark { order: -1; justify-items: start; text-align: left; }
  .hero-mark img { width: 220px; }
}

/* ---------- sections ---------- */

.section { padding-block: 72px; }
.section + .section { border-top: 1px solid var(--line); }

.section-head {
  display: grid;
  gap: 12px;
  margin-bottom: 36px;
  max-width: 60ch;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  font-weight: 800;
  font-stretch: 110%;
}

.section-head p { color: var(--muted); font-size: 1.05rem; }

/* services */

.services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.service {
  --pad: 26px;
  display: grid;
  align-content: start;
  gap: 14px;
  padding: var(--pad);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.service-photo {
  width: calc(100% + 2 * var(--pad));
  max-width: none;
  margin: calc(-1 * var(--pad)) calc(-1 * var(--pad)) 0;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background: var(--brass-soft);
}

.service-photo + .service-icon {
  position: relative;
  margin-top: -37px;
  border: 3px solid var(--surface);
  box-sizing: content-box;
}

.service-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brass-soft);
  color: var(--brass);
}

.service-icon svg { width: 24px; height: 24px; }

.service h3 {
  font-size: 1.15rem;
  font-weight: 750;
  font-stretch: 108%;
}

.ticks {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.95rem;
}

.ticks li {
  display: flex;
  gap: 10px;
}

.ticks li::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  margin-top: 0.62em;
  background: var(--brass);
  transform: rotate(45deg);
}

.service-cta {
  background: var(--band);
  color: var(--band-fg);
  border-color: var(--band);
  align-content: space-between;
}

.service-cta h3 { color: var(--gold); }
.service-cta p { color: var(--band-muted); font-size: 0.95rem; }

@media (max-width: 900px) {
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .services { grid-template-columns: 1fr; }
}

/* intro statement */

.statement {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.statement h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.7rem);
  font-weight: 850;
  font-stretch: 116%;
  text-transform: uppercase;
}

.statement .body {
  display: grid;
  gap: 16px;
  color: var(--muted);
  font-size: 1.08rem;
}

.statement .body strong {
  font: 700 1rem/1.3 var(--display);
  font-stretch: 112%;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brass);
}

@media (max-width: 760px) {
  .statement { grid-template-columns: 1fr; gap: 20px; }
}

/* why us */

.reasons {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px 40px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.reasons li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 14px;
}

.reasons svg {
  width: 28px;
  height: 28px;
  color: var(--brass);
}

.reasons h3 {
  font-size: 1rem;
  font-weight: 750;
  font-stretch: 110%;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 4px;
}

.reasons p { color: var(--muted); font-size: 0.95rem; }

@media (max-width: 900px) {
  .reasons { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .reasons { grid-template-columns: 1fr; }
}

/* compliance */

.compliance {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.compliance > div {
  padding: 28px;
  display: grid;
  align-content: start;
  gap: 14px;
}

.compliance > div + div { border-left: 1px solid var(--line); }

.compliance h3 {
  font-size: 1.5rem;
  font-weight: 850;
  font-stretch: 115%;
}

.compliance .kind {
  font: 500 0.8rem/1.3 var(--mono);
  color: var(--muted);
}

@media (max-width: 760px) {
  .compliance { grid-template-columns: 1fr; }
  .compliance > div + div { border-left: 0; border-top: 1px solid var(--line); }
}

/* who we work with */

.welcome {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: 48px;
}

.welcome h3 {
  font: 600 0.75rem/1 var(--display);
  font-stretch: 112%;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.chips li {
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.9rem;
}

.chips.strong li {
  border-color: transparent;
  background: var(--brass-soft);
  color: var(--ink);
  font-weight: 500;
}

@media (max-width: 760px) {
  .welcome { grid-template-columns: 1fr; gap: 32px; }
}

/* featured proposal */

.featured {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  transition: border-color .15s;
}

.featured:hover { border-color: var(--brass); }

.featured img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 3 / 2;
}

.featured .text {
  padding: clamp(24px, 4vw, 40px);
  display: grid;
  align-content: center;
  gap: 14px;
}

.featured h3 {
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  font-weight: 800;
  font-stretch: 110%;
}

.featured p { color: var(--muted); }

.featured .go {
  font-weight: 600;
  color: var(--brass);
}

@media (max-width: 760px) {
  .featured { grid-template-columns: 1fr; }
}

/* ---------- contact / footer ---------- */

.contact {
  background: var(--band);
  color: var(--band-fg);
}

.contact .wrap { padding-block: 64px 40px; }

.contact h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  font-weight: 850;
  font-stretch: 116%;
  text-transform: uppercase;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  margin-top: 36px;
}

.contact-item {
  display: grid;
  gap: 8px;
  align-content: start;
  min-width: 0;
}

.contact-item .label {
  font: 600 0.72rem/1 var(--display);
  font-stretch: 112%;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.contact-item .value {
  font: 600 1.25rem/1.35 var(--display);
  font-stretch: 105%;
  overflow-wrap: anywhere;
  user-select: all;
}

.contact-item p { color: var(--band-muted); }

.copy {
  justify-self: start;
  font: 500 0.8rem/1 var(--body);
  color: var(--band-muted);
  background: none;
  border: 1px solid #4a4130;
  border-radius: 999px;
  padding: 7px 12px;
  cursor: pointer;
}

.copy:hover { color: var(--band-fg); border-color: var(--gold); }

.footnote {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid #2e2920;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  font-size: 0.85rem;
  color: var(--band-muted);
}

@media (max-width: 760px) {
  .contact-grid { grid-template-columns: 1fr; gap: 26px; }
}

/* ---------- proposal view ---------- */

.doc-head {
  background: var(--band);
  color: var(--band-fg);
}

.doc-head .wrap { padding-block: 48px 40px; }

.back {
  display: inline-flex;
  gap: 6px;
  font-size: 0.88rem;
  color: var(--band-muted);
  text-decoration: none;
  margin-bottom: 28px;
}

.back:hover { color: var(--band-fg); }

.doc-head h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 850;
  font-stretch: 116%;
  text-transform: uppercase;
  margin-top: 14px;
  max-width: 20ch;
}

.doc-head .sub {
  margin-top: 12px;
  font-size: 1.15rem;
  color: var(--band-muted);
}

.doc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 32px;
  margin: 28px 0 0;
  padding-top: 22px;
  border-top: 1px solid #2e2920;
}

.doc-meta div { display: grid; gap: 4px; }

.doc-meta dt {
  font: 600 0.7rem/1 var(--display);
  font-stretch: 112%;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.doc-meta dd { margin: 0; font-weight: 500; }

.figures {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 0;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.figures div {
  padding: 22px 20px;
  display: grid;
  gap: 6px;
}

.figures div + div { border-left: 1px solid var(--line); }

.figures dt {
  font-size: 0.82rem;
  color: var(--muted);
}

.figures dd {
  margin: 0;
  font: 800 1.6rem/1 var(--display);
  font-stretch: 108%;
  font-variant-numeric: tabular-nums;
}

.figures dd span {
  font: 500 0.85rem/1 var(--mono);
  color: var(--muted);
  margin-left: 3px;
}

@media (max-width: 860px) {
  .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .figures div + div { border-left: 0; }
  .figures div { border-top: 1px solid var(--line); }
  .figures div:nth-child(even) { border-left: 1px solid var(--line); }
  .figures div:last-child { grid-column: 1 / -1; border-left: 0; }
}

.doc {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 56px;
  padding-block: 56px 80px;
}

.toc {
  position: sticky;
  top: calc(env(safe-area-inset-top, 0px) + 92px);
  align-self: start;
  display: grid;
  gap: 2px;
  font-size: 0.9rem;
}

.toc a {
  display: grid;
  grid-template-columns: 22px 1fr;
  padding: 7px 0;
  color: var(--muted);
  text-decoration: none;
}

.toc a:hover { color: var(--ink); }

.toc a span {
  font: 500 0.82rem/1.6 var(--mono);
  color: var(--brass);
}

.doc-body {
  display: grid;
  gap: 64px;
  min-width: 0;
}

.doc-section {
  display: grid;
  gap: 18px;
  scroll-margin-top: 90px;
}

.doc-section h2 {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-size: clamp(1.35rem, 2.6vw, 1.75rem);
  font-weight: 800;
  font-stretch: 108%;
}

.doc-section h2 .num {
  font: 500 0.95rem/1 var(--mono);
  color: var(--brass);
}

.doc-section > p {
  color: var(--muted);
  max-width: 68ch;
}

.axes {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.axes li {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  display: grid;
  gap: 6px;
}

.axes b {
  font: 500 0.78rem/1 var(--mono);
  color: var(--brass);
}

.axes span { font-weight: 600; line-height: 1.35; }
.axes small { color: var(--muted); font-size: 0.85rem; }

@media (max-width: 760px) {
  .axes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

figure { margin: 0; }

.figure {
  display: grid;
  gap: 10px;
}

.figure button {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--band);
  cursor: zoom-in;
}

.figure button img { width: 100%; }

.figure figcaption {
  font-size: 0.88rem;
  color: var(--muted);
}

.site-photo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.callout {
  display: grid;
  gap: 10px;
  padding: 20px 22px;
  background: var(--brass-soft);
  border-radius: var(--radius);
}

.callout h3 {
  font: 700 0.95rem/1.3 var(--display);
  font-stretch: 110%;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.callout p { color: var(--ink); font-size: 0.95rem; }

@media (max-width: 760px) {
  .site-photo { grid-template-columns: 1fr; }
}

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.spec {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 0.93rem;
}

.spec th,
.spec td {
  text-align: left;
  vertical-align: top;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
}

.spec tr:last-child th,
.spec tr:last-child td { border-bottom: 0; }

.spec thead th {
  font: 600 0.72rem/1 var(--display);
  font-stretch: 112%;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--paper);
}

.spec tbody th {
  width: 30%;
  font-weight: 600;
}

.spec code {
  font: 500 0.86em/1 var(--mono);
  color: var(--brass);
}

.fab {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 24px;
}

.fab .ticks { color: var(--ink); }

.finish {
  display: grid;
  gap: 12px;
  align-content: start;
}

.swatch {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.swatch i {
  height: 40px;
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, .12);
}

.swatch b { display: block; font-family: var(--mono); font-weight: 500; font-size: 0.85rem; }
.swatch small { color: var(--muted); }

.standards {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.standards span {
  font: 500 0.82rem/1 var(--mono);
  padding: 8px 11px;
  border-radius: 4px;
  border: 1px solid var(--line);
  background: var(--surface);
}

@media (max-width: 760px) {
  .fab { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .doc { grid-template-columns: 1fr; gap: 0; }
  .toc { display: none; }
}

/* lightbox for the drawings */

.lightbox {
  width: min(96vw, 1600px);
  max-width: none;
  max-height: 92vh;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: var(--band);
  overflow: auto;
}

.lightbox::backdrop { background: rgba(8, 7, 5, .82); }

.lightbox img { width: 100%; }

.lightbox form {
  position: sticky;
  top: 0;
  display: flex;
  justify-content: flex-end;
  padding: 10px;
  background: var(--band);
}

.lightbox button {
  font: 500 0.85rem/1 var(--body);
  color: var(--band-fg);
  background: var(--band-2);
  border: 1px solid #4a4130;
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
}

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

.contact-item a.value { text-decoration: none; }
.contact-item a.value:hover { color: var(--gold); }

/* ---------- responsive refinements ---------- */

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

.label-short { display: none; }

.lightbox { max-height: 92dvh; }

.lightbox .hint {
  margin-right: auto;
  align-self: center;
  font-size: 0.82rem;
  color: var(--band-muted);
}

@media (min-width: 761px) {
  .lightbox .hint { display: none; }
}

/* Large monitors: a little more room and slightly larger type */
@media (min-width: 1600px) {
  :root { --maxw: 1240px; }
  html { font-size: 106.25%; }
}

/* Phones and small tablets: keep the sticky header to one slim row */
@media (max-width: 720px) {
  .site-header .wrap { padding-block: 8px; gap: 12px; }
  .brand { gap: 8px; min-width: 0; }
  .brand-logo { height: 28px; }
  .brand-name { font-size: 0.8rem; letter-spacing: 0.02em; }
  .brand-name small { font-size: 0.68rem; }
  .site-nav { flex-wrap: nowrap; flex: none; }
  .site-nav a { padding: 10px 12px; white-space: nowrap; }
  .label-long { display: none; }
  .label-short { display: inline; }
}

@media (max-width: 400px) {
  .site-nav .hide-xs { display: none; }
}

@media (max-width: 560px) {
  .hero .wrap { padding-block: 32px; }
  .hero h1 { font-size: clamp(1.9rem, 9.5vw, 2.4rem); font-stretch: 110%; }
  .hero .lede { font-size: 1.05rem; }

  .pillars { flex-direction: column; gap: 6px; }
  .pillars li + li::before { content: none; }

  .actions .btn { flex: 1 1 auto; justify-content: center; }
  .values { justify-content: flex-start; gap: 8px 18px; }

  .section { padding-block: 52px; }
  .section-head { margin-bottom: 26px; }
  .service { --pad: 22px; }

  .doc-head h1 { font-size: clamp(1.7rem, 8.5vw, 2.2rem); font-stretch: 108%; }
  .doc { padding-block: 40px 56px; }
  .doc-body { gap: 48px; }
  .figures dd { font-size: 1.4rem; }
}

/* Spec table: stack each row as a label and value instead of scrolling sideways */
@media (max-width: 600px) {
  .table-scroll { overflow: visible; }
  .spec { min-width: 0; }

  .spec thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  .spec tr {
    display: block;
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
  }

  .spec tbody tr:last-child { border-bottom: 0; }

  .spec th,
  .spec td,
  .spec tbody th {
    display: block;
    width: auto;
    padding: 0;
    border: 0;
  }

  .spec tbody th {
    margin-bottom: 4px;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--brass);
  }
}

/* Drawings are detailed: on phones show them large and let people pan around */
@media (max-width: 760px) {
  .lightbox {
    width: 100vw;
    max-height: 100dvh;
    border-radius: 0;
  }

  .lightbox img {
    width: 1100px;
    max-width: none;
  }

  .lightbox form {
    left: 0;
    width: 100vw;
    gap: 12px;
  }
}

/* Touch screens: comfortable tap targets (about 44px) */
@media (pointer: coarse) {
  .site-nav a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  .btn { min-height: 48px; }
  .copy { padding: 12px 16px; }
  .contact-item a.value { padding-block: 6px; }
  .toc a { padding-block: 11px; }
  .lightbox button { padding: 12px 18px; }
}

/* Keep the email on one line where it fits; if not, it breaks before the @ */
#email {
  font-size: clamp(1rem, 4.4vw, 1.25rem);
  overflow-wrap: normal;
}

@media (min-width: 761px) and (max-width: 1100px) {
  #email { font-size: 1.05rem; }
}

/* Compliance heading with photo */
.split-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  margin-bottom: 36px;
}

.split-head .section-head { margin-bottom: 0; }

.split-photo {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius);
}

@media (max-width: 760px) {
  .split-head { grid-template-columns: 1fr; gap: 24px; }
}
