:root {
  --ink: #16130f;
  --ink-2: #3a352e;
  --muted: #6b645a;
  --paper: #ffffff;
  --paper-2: #f6f3ee;
  --line: #e4ded4;
  --fox: #f07a3e;        /* logo orange: backgrounds / accents only */
  --fox-ink: #b4471a;    /* orange for text on white (AA) */
  --fox-soft: #fdeee5;
  --radius: 4px;
  --wrap: 1160px;
  --display: "Archivo", system-ui, sans-serif;
  --body: "IBM Plex Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--fox-ink); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--fox); outline-offset: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

.mono { font-family: var(--mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; }
.nowrap { white-space: nowrap; }

h1, h2, h3 { font-family: var(--display); font-stretch: 112%; line-height: 1.08; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 850; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.3rem; font-weight: 750; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--display); font-weight: 700; font-stretch: 105%;
  font-size: 1rem; text-decoration: none; line-height: 1;
  padding: 15px 22px; border-radius: var(--radius); border: 2px solid transparent;
  transition: background-color .15s, color .15s, border-color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--fox); color: var(--ink); border-color: var(--fox); }
.btn-primary:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-block { width: 100%; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(22,19,15,.04);
}
.header-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 0 16px; padding-top: 10px; }
.brand { display: flex; align-items: center; min-height: 48px; }
.brand img { height: 42px; width: auto; }
.nav { order: 3; width: 100%; display: flex; gap: 4px; margin: 8px -12px 0; }
.nav a {
  color: var(--ink); text-decoration: none; font-weight: 500; font-size: .98rem;
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--fox-ink); }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.btn-call { margin-left: auto; background: var(--fox); color: var(--ink); padding: 0 16px; min-height: 44px; }
.btn-call:hover { background: var(--ink); color: #fff; }
.call-long { display: none; }
@media (min-width: 520px) { .call-long { display: inline; } .call-short { display: none; } }
@media (min-width: 860px) {
  .header-inner { flex-wrap: nowrap; height: 76px; padding-top: 0; }
  .brand img { height: 48px; }
  .nav { order: 0; width: auto; margin: 0 0 0 auto; gap: 8px; }
  .btn-call { margin-left: 12px; }
}
html { scroll-padding-top: 124px; }
@media (min-width: 860px) { html { scroll-padding-top: 92px; } }
section[id] { scroll-margin-top: 124px; }
@media (min-width: 860px) { section[id] { scroll-margin-top: 92px; } }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 56px 0 64px; background: var(--paper); }
.hero-grid { position: relative; display: grid; gap: 40px; }
.eyebrow { font-family: var(--mono); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--fox-ink); margin: 0 0 18px; }
.lede { font-size: 1.15rem; color: var(--ink-2); max-width: 36em; margin: 0 0 28px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
@media (min-width: 960px) {
  .hero { padding: 72px 0 96px; }
  .hero-grid { grid-template-columns: 1.45fr 1fr; align-items: center; gap: 64px; }
}

/* Title block (drafting-sheet motif) */
.title-block {
  background: var(--paper); border: 2px solid var(--ink); font-size: .98rem;
  box-shadow: 8px 8px 0 var(--fox);
}
.tb-row { display: grid; gap: 2px; padding: 12px 16px; border-bottom: 1px solid var(--ink); }
.tb-row:last-child { border-bottom: 0; }
.tb-row .mono { color: var(--muted); font-size: .68rem; }
.tb-row a { color: var(--ink); font-weight: 500; text-decoration: none; }
.tb-row a:hover { color: var(--fox-ink); text-decoration: underline; }
.tb-head { background: var(--ink); color: #fff; }
.tb-head .mono { color: #c9c1b4; }
.tb-head strong { font-family: var(--display); font-stretch: 110%; font-size: 1.15rem; }
.tb-split { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--ink); }
.tb-split .tb-row { border-bottom: 0; }
.tb-split .tb-row + .tb-row { border-left: 1px solid var(--ink); }
.tb-codes { color: var(--ink) !important; font-size: .78rem !important; }

/* Sections */
.section { padding: 72px 0; }
.section-alt { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 640px; margin-bottom: 40px; }
.kicker { color: var(--fox-ink); margin: 0 0 12px; }
.section-sub { color: var(--ink-2); margin: 0; }
@media (min-width: 960px) { .section { padding: 104px 0; } }

/* Services */
.services { display: grid; gap: 20px; }
@media (min-width: 760px) { .services { grid-template-columns: 1fr 1fr; } .svc-wide { grid-column: span 2; } }
@media (min-width: 1040px) {
  .services { grid-template-columns: repeat(6, 1fr); }
  .svc { grid-column: span 2; }
  .svc-wide { grid-column: span 3; }
  .services > .svc:first-child, .services > .svc:nth-child(2) { grid-column: span 3; }
  .services > .svc:last-child { grid-column: span 6; }
}
.svc {
  position: relative; background: var(--paper); border: 1px solid var(--line);
  border-top: 4px solid var(--ink); padding: 24px 24px 22px;
  transition: border-color .2s, box-shadow .2s;
}
.svc:hover { border-top-color: var(--fox); box-shadow: 0 10px 30px -18px rgba(22,19,15,.35); }
.svc-code {
  display: inline-block; background: var(--ink); color: #fff;
  padding: 3px 8px; margin-bottom: 14px; font-size: .7rem;
}
.svc h3 { margin-bottom: .3em; }
.svc-desc { color: var(--muted); margin: 0 0 16px; font-size: .98rem; }
.svc ul { list-style: none; margin: 0; padding: 0; }
.svc li { position: relative; padding: 9px 0 9px 22px; border-top: 1px dashed var(--line); }
.svc li::before {
  content: ""; position: absolute; left: 2px; top: 1.05em;
  width: 9px; height: 9px; border: 2px solid var(--fox); transform: rotate(45deg);
}
@media (min-width: 640px) { .svc ul.cols { columns: 2; column-gap: 32px; } .svc ul.cols li { break-inside: avoid; } }
.note { color: var(--muted); font-size: .92em; }
.svc-footnote { margin: 14px 0 0; font-size: .9rem; color: var(--muted); font-style: italic; }

/* Two column */
.two-col { display: grid; gap: 48px; }
@media (min-width: 860px) { .two-col { grid-template-columns: 1fr 1fr; gap: 64px; } }

/* Placeholders: visible on purpose until Clark supplies content */
.missing {
  font-family: var(--mono); font-size: .85rem; line-height: 1.5;
  background: #fff8d6; color: #5a4a00; border: 2px dashed #c9a400;
  padding: 10px 14px; border-radius: var(--radius);
}

/* About */
.about { display: grid; gap: 40px; align-items: center; }
.about-lead { font-size: 1.2rem; }
.about-mark { margin: 0; max-width: 380px; justify-self: center; }
@media (min-width: 860px) { .about { grid-template-columns: 1.3fr 1fr; gap: 72px; } }

/* Contact */
.section-dark { background: var(--ink); color: #f3efe8; }
.section-dark .kicker { color: var(--fox); }
.section-dark .section-sub { color: #c9c1b4; }
.section-dark a { color: #fff; }
.section-dark a:hover { color: var(--fox); }
.contact { display: grid; gap: 48px; }
@media (min-width: 960px) { .contact { grid-template-columns: 1fr 1fr; gap: 72px; } }
.contact-list { margin: 28px 0; display: grid; gap: 0; }
.contact-list > div { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 14px 0; border-top: 1px solid #3a352e; }
.contact-list dt { color: #a99f90; padding-top: 4px; }
.contact-list dd { margin: 0; font-size: 1.1rem; }
.map { border: 1px solid #3a352e; aspect-ratio: 16 / 10; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; filter: grayscale(.4); }

.inquiry {
  background: var(--paper); color: var(--ink); padding: 28px 22px;
  border-radius: var(--radius); box-shadow: 8px 8px 0 var(--fox); align-self: start;
}
@media (min-width: 720px) { .inquiry { padding: 36px 34px; } }
.inquiry h3 { font-size: 1.5rem; }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field-row { display: grid; gap: 0 16px; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }
label { font-weight: 600; font-size: .92rem; }
.opt { font-weight: 400; color: var(--muted); }
input, select, textarea {
  font: inherit; color: var(--ink); background: #fff;
  border: 1.5px solid #b9b1a5; border-radius: var(--radius);
  padding: 12px 12px; width: 100%; min-height: 48px;
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--fox-soft), 0 0 0 5px var(--fox); }
.hp { position: absolute; left: -9999px; }
.form-status { margin: 12px 0 0; min-height: 1.5em; font-weight: 500; }
.form-status.ok { color: #1f6b33; }
.form-status.err { color: #a12a14; }
.section-dark .inquiry a, .form-status a { color: var(--fox-ink); font-weight: 600; }
.section-dark .inquiry a:hover { color: var(--ink); }

/* Footer */
.site-footer { padding: 48px 0 40px; border-top: 1px solid var(--line); background: var(--paper); }
.footer-inner { display: grid; gap: 24px; align-items: center; }
.footer-logo { width: 240px; }
.footer-text p { margin: 0 0 8px; }
.footer-text a { color: var(--ink); }
.small { font-size: .85rem; color: var(--muted); }
@media (min-width: 760px) { .footer-inner { grid-template-columns: auto 1fr; gap: 48px; } .footer-text { justify-self: end; text-align: right; } }

/* Clients + area */
.client-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.client-list li {
  font-family: var(--display); font-stretch: 110%; font-weight: 700; font-size: 1.25rem;
  padding: 14px 0 14px 28px; border-top: 1px solid var(--line); position: relative;
}
.client-list li:last-child { border-bottom: 1px solid var(--line); }
.client-list li::before {
  content: ""; position: absolute; left: 2px; top: 50%; margin-top: -6px;
  width: 11px; height: 11px; border: 2.5px solid var(--fox); transform: rotate(45deg);
}
.area-lead { font-family: var(--display); font-stretch: 110%; font-weight: 800; font-size: 1.6rem; margin: 0 0 8px; }

/* Hero: plan sheet. The hero is a drafted plan sheet: grid paper, border, ticks, north arrow. */
.topo { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.topo .c { stroke: #8a6a52; stroke-width: 1; opacity: .35; }
.topo .ix { stroke: var(--fox-ink); stroke-width: 1.7; opacity: .7; }

.v-sheet { padding: 16px; background: #efe9df; }
.sheet {
  position: relative; overflow: hidden;
  border: 2px solid var(--ink); outline: 1px solid var(--ink); outline-offset: 5px;
  background-color: #fbf8f2;
  background-image:
    linear-gradient(rgba(22,19,15,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22,19,15,.06) 1px, transparent 1px);
  background-size: 32px 32px;
  padding: 64px 0 72px;
}
.sheet .hero-grid { z-index: 1; }
.sheet .hero-copy { background: rgba(251,248,242,.82); padding: 8px 0; }
.tick { position: absolute; width: 22px; height: 22px; border-color: var(--fox); border-style: solid; border-width: 0; }
.tick.tl { top: 10px; left: 10px; border-top-width: 3px; border-left-width: 3px; }
.tick.tr { top: 10px; right: 10px; border-top-width: 3px; border-right-width: 3px; }
.tick.bl { bottom: 10px; left: 10px; border-bottom-width: 3px; border-left-width: 3px; }
.tick.br { bottom: 10px; right: 10px; border-bottom-width: 3px; border-right-width: 3px; }
.sheet-no { position: absolute; top: 16px; left: 44px; margin: 0; color: var(--muted); z-index: 1; }
.north { position: absolute; top: 18px; right: 40px; width: 34px; color: var(--ink); z-index: 1; }
.scalebar { position: absolute; left: 44px; bottom: 18px; display: flex; align-items: center; z-index: 1; }
.scalebar span { width: 36px; height: 8px; border: 1.5px solid var(--ink); }
.scalebar span:nth-child(odd) { background: var(--ink); }
.scalebar em { font-style: normal; margin-left: 12px; color: var(--muted); font-size: .65rem; }
.v-sheet .title-block { box-shadow: none; outline: 1px solid var(--ink); outline-offset: 4px; }
@media (min-width: 960px) {
  .v-sheet { padding: 24px; }
  .sheet { padding: 112px 0 120px; }
}

.section-dark { position: relative; overflow: hidden; }
.section-dark > .wrap { position: relative; z-index: 1; }
.topo-contact .c { stroke: #f3efe8; opacity: .07; }
.topo-contact .ix { stroke: var(--fox); opacity: .3; }
@media (max-width: 600px) {
  .sheet-firm { display: none; }
  .sheet-no { left: 40px; top: 15px; }
  .north { top: 14px; right: 36px; width: 24px; }
  .eyebrow { font-size: .72rem; letter-spacing: .05em; }
  .scalebar em { display: none; }
}

/* ---------- Multi-page additions (rebrief v2) ---------- */
.svc-link { color: var(--ink); text-decoration: none; }
.svc-link:hover { color: var(--fox-ink); text-decoration: underline; text-underline-offset: 4px; }
.svc { display: flex; flex-direction: column; }
.svc ul { flex: 1; }
.svc-more {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-top: 10px;
  font-family: var(--display); font-weight: 700; font-stretch: 105%; text-decoration: none; color: var(--fox-ink);
}
.svc-more:hover { color: var(--ink); }
.text-link { font-family: var(--display); font-weight: 700; font-stretch: 105%; text-decoration: none; display: inline-flex; min-height: 44px; align-items: center; }

/* Inner-page sheet header */
.v-sheet-sm .sheet { padding: 64px 0 56px; }
@media (min-width: 960px) { .v-sheet-sm .sheet { padding: 84px 0 76px; } }
.page-head { position: relative; z-index: 1; }
.page-head > * { position: relative; }
.page-head h1 { max-width: 18em; }
.page-head .lede { background: rgba(251,248,242,.85); }
.page-head .svc-code { margin-bottom: 12px; }
.crumbs ol { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; font-size: .72rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin: 0 10px; color: var(--muted); }
.crumbs a { color: var(--fox-ink); }

/* Service page */
.svc-page { display: grid; gap: 48px; }
@media (min-width: 960px) { .svc-page { grid-template-columns: 1.6fr 1fr; gap: 64px; align-items: start; } }
.items { display: grid; gap: 0; margin-top: 8px; }
.item { position: relative; padding: 18px 0 18px 28px; border-top: 1px dashed var(--line); }
.item:last-child { border-bottom: 1px dashed var(--line); }
.item::before {
  content: ""; position: absolute; left: 2px; top: 1.6em;
  width: 10px; height: 10px; border: 2px solid var(--fox); transform: rotate(45deg);
}
.item h3 { font-size: 1.15rem; margin-bottom: .35em; }
.item p { margin: 0; color: var(--ink-2); }
.callout {
  margin: 24px 0 0; padding: 14px 18px; border-left: 4px solid var(--fox);
  background: var(--fox-soft); font-weight: 500;
}
.svc-side { display: grid; gap: 20px; }
@media (min-width: 960px) { .svc-side { position: sticky; top: 100px; } }
.side-card { border: 1px solid var(--line); border-top: 4px solid var(--ink); padding: 22px; background: var(--paper); }
.side-card h2 { font-size: 1.2rem; }
.side-card p { margin: 0 0 14px; }
.side-card p:last-child { margin-bottom: 0; }

/* About page */
.facts { margin: 24px 0 32px; }
.facts > div { display: grid; grid-template-columns: 130px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.facts > div:last-child { border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); padding-top: 3px; }
.facts dd { margin: 0; }
.link-list { margin-bottom: 28px; }
.link-list a { color: var(--ink); text-decoration: none; }
.link-list a:hover { color: var(--fox-ink); text-decoration: underline; }

/* Footer columns */
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; gap: 48px; } }
.footer-firm p { margin: 12px 0 0; }
.footer-firm a, .footer-col a { color: var(--ink); }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li a { display: inline-flex; align-items: center; min-height: 40px; text-decoration: none; }
.footer-col li a:hover { color: var(--fox-ink); text-decoration: underline; }
.footer-copy { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); }
.svc h2 { font-size: 1.3rem; font-weight: 750; margin-bottom: .3em; }
.svc-link { display: inline-block; padding: 11px 0; margin: -11px 0; }

/* review strip */
.review { margin: 0 0 8px; max-width: 760px; border-left: 4px solid var(--fox); padding: 4px 0 4px 22px; }
.review-stars { margin: 0 0 8px; color: var(--fox-ink); letter-spacing: 2px; font-size: 1.1rem; }
.review blockquote { margin: 0; }
.review blockquote p { margin: 0; font-family: var(--display); font-weight: 600; font-stretch: 105%; font-size: clamp(1.25rem, 2.4vw, 1.6rem); line-height: 1.35; color: var(--ink); }
.review figcaption { margin-top: 12px; color: var(--muted); font-size: .95rem; }
.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; }
.review-links { display: flex; flex-wrap: wrap; gap: 4px 28px; }
