/* AXE Contracting Group — "The Drawing Set"
   Vellum (light) / Blueprint (dark). Tokens first; everything reads from them. */

:root {
  --paper: #f3efe6;
  --paper-2: #e9e3d5;
  --paper-3: #ded6c4;
  --ink: #14212d;
  --ink-2: #33424f;
  --muted: #5a6772;
  --line: rgba(20, 33, 45, 0.2);
  --line-2: rgba(20, 33, 45, 0.42);
  --grid: rgba(28, 78, 134, 0.075);
  --blue: #1c4e86;
  --accent: #ff5a1f;
  --accent-ink: #ad3609;
  --on-accent: #14212d;
  --draw: #1c4e86;
  --shadow: #14212d;
  --north: #1c4e86;
  --east: #ff5a1f;
  --south: #14212d;
  --mid: #6b7d3a;

  --f-disp: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --f-body: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --gut: clamp(16px, 4vw, 40px);
  --tb-w: 290px;
  --hdr-h: 68px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0f2e52;
    --paper-2: #13365f;
    --paper-3: #1a426f;
    --ink: #eaf2fb;
    --ink-2: #c9d8e8;
    --muted: #a3b9d0;
    --line: rgba(234, 242, 251, 0.22);
    --line-2: rgba(234, 242, 251, 0.5);
    --grid: rgba(234, 242, 251, 0.06);
    --blue: #9cc8ff;
    --accent: #ff7a45;
    --accent-ink: #ffa07a;
    --on-accent: #10233a;
    --draw: #eaf2fb;
    --shadow: #06182c;
    --north: #9cc8ff;
    --east: #ff7a45;
    --south: #eaf2fb;
    --mid: #c4d98a;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0f2e52;
  --paper-2: #13365f;
  --paper-3: #1a426f;
  --ink: #eaf2fb;
  --ink-2: #c9d8e8;
  --muted: #a3b9d0;
  --line: rgba(234, 242, 251, 0.22);
  --line-2: rgba(234, 242, 251, 0.5);
  --grid: rgba(234, 242, 251, 0.06);
  --blue: #9cc8ff;
  --accent: #ff7a45;
  --accent-ink: #ffa07a;
  --on-accent: #10233a;
  --draw: #eaf2fb;
  --shadow: #06182c;
  --north: #9cc8ff;
  --east: #ff7a45;
  --south: #eaf2fb;
  --mid: #c4d98a;
  color-scheme: dark;
}

/* ---------------------------------------------------------------- base */
*,
*::before,
*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--hdr-h) + 16px); }
body {
  margin: 0;
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 24px 24px;
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--f-body);
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
a { color: inherit; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--accent-ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--f-disp); font-weight: 800; line-height: 0.95; letter-spacing: 0.005em; text-transform: uppercase; margin: 0; text-wrap: balance; }
p { margin: 0 0 1em; }
.mono { font-family: var(--f-mono); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; }
.i { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: square; stroke-linejoin: miter; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--accent); color: var(--on-accent); padding: 10px 14px; font-weight: 700; }
.skip:focus { left: 8px; }
.kicker { font-family: var(--f-mono); font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-ink); margin: 0 0 0.5rem; font-weight: 500; }

/* ---------------------------------------------------------------- buttons */
.btn {
  --bg: var(--accent);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  min-height: 46px; padding: 0.6em 1.15em;
  background: var(--bg); color: var(--on-accent);
  border: 2px solid var(--ink); border-radius: 0;
  box-shadow: 4px 4px 0 var(--shadow);
  font: 700 0.95rem/1.1 var(--f-body); letter-spacing: 0.01em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn:hover { color: var(--on-accent); transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--shadow); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--shadow); }
.btn--ghost { --bg: var(--paper); color: var(--ink); }
.btn--ghost:hover { color: var(--ink); background: var(--paper-2); }
.btn--lg { min-height: 54px; padding: 0.75em 1.4em; font-size: 1.02rem; }
.btn--block { width: 100%; }
.btns { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 1.6rem; }
.iconbtn { display: inline-grid; place-items: center; width: 44px; height: 44px; background: transparent; border: 2px solid var(--line-2); color: var(--ink); cursor: pointer; border-radius: 0; }
.iconbtn:hover { border-color: var(--ink); }

/* ---------------------------------------------------------------- header */
.hdr { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 2px solid var(--ink); }
.hdr__in { display: flex; align-items: center; gap: 20px; height: var(--hdr-h); padding: 0 var(--gut); max-width: 1680px; margin: 0 auto; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo__mark { width: 40px; height: 40px; flex: none; }
.logo__word { font: 900 1.7rem/0.85 var(--f-disp); letter-spacing: 0.02em; display: flex; flex-direction: column; }
.logo__word small { font: 500 0.6rem/1.2 var(--f-mono); letter-spacing: 0.14em; text-transform: uppercase; margin-top: 3px; }
.nav { margin-left: auto; }
.nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav a { display: block; padding: 8px 12px; font: 600 0.93rem var(--f-body); text-decoration: none; border-bottom: 2px solid transparent; }
.nav a[aria-current="page"] { border-bottom-color: var(--accent); }
.nav a:hover { color: var(--ink); background: var(--paper-2); }
.nav__tel { display: none !important; }
.hdr__act { display: flex; align-items: center; gap: 10px; }
.hdr__act .btn { min-height: 44px; box-shadow: 3px 3px 0 var(--shadow); }
.menu { display: none; }

@media (max-width: 1180px) {
  .hdr__tel span { display: none; }
  .hdr__tel { padding: 0; width: 44px; }
}
@media (max-width: 980px) {
  .menu { display: inline-grid; }
  .hdr__tel { display: none; }
  .nav {
    position: fixed; inset: var(--hdr-h) 0 auto 0; background: var(--paper);
    border-bottom: 2px solid var(--ink); padding: 8px var(--gut) 20px;
    display: none; max-height: calc(100vh - var(--hdr-h)); overflow-y: auto;
  }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; }
  .nav a { padding: 14px 4px; font: 800 1.6rem/1 var(--f-disp); text-transform: uppercase; border-bottom: 1px solid var(--line); }
  .nav__tel { display: flex !important; gap: 8px; align-items: center; margin-top: 12px; font: 700 1.1rem var(--f-body) !important; }
}
@media (max-width: 520px) {
  .hdr__act .btn:not(.hdr__tel) { display: none; }
  .logo__word small { display: none; }
}

/* ---------------------------------------------------------------- sheet layout */
.sheet { display: grid; grid-template-columns: minmax(0, 1fr); max-width: 1680px; margin: 0 auto; }
.sheet__main { min-width: 0; padding: 0 var(--gut) 40px; position: relative; }
@media (min-width: 1200px) {
  .sheet { grid-template-columns: minmax(0, 1fr) var(--tb-w); }
  .sheet__main { border-right: 2px solid var(--ink); }
}
.ruler { display: grid; grid-template-columns: repeat(8, 1fr); border-bottom: 1px solid var(--line-2); margin: 0 calc(-1 * var(--gut)) 0; }
.ruler span { font: 500 0.66rem var(--f-mono); color: var(--muted); padding: 4px 8px; border-left: 1px solid var(--line); }
.ruler span:first-child { border-left: 0; }

/* title block */
.tb { display: none; }
@media (min-width: 1200px) {
  .tb {
    display: flex; flex-direction: column; position: sticky; top: calc(var(--hdr-h) + 0px);
    align-self: start; height: calc(100vh - var(--hdr-h)); overflow-y: auto;
    border-left: 0; background: var(--paper); font-size: 0.86rem;
  }
}
.tb__brand { display: flex; align-items: center; gap: 12px; padding: 18px; border-bottom: 2px solid var(--ink); }
.tb__brand .logo__mark { width: 46px; height: 46px; }
.tb__brand b { display: block; font: 900 2rem/0.85 var(--f-disp); }
.tb__brand span { font: 500 0.62rem var(--f-mono); letter-spacing: 0.14em; text-transform: uppercase; }
.tb__row { display: flex; flex-direction: column; gap: 2px; padding: 10px 18px; border-bottom: 1px solid var(--line-2); }
.tb__row span { font: 500 0.62rem var(--f-mono); letter-spacing: 0.14em; color: var(--muted); }
.tb__row b { font-weight: 600; line-height: 1.3; }
.tb__grid { display: grid; grid-template-columns: 1fr 1fr; }
.tb__grid .tb__row + .tb__row { border-left: 1px solid var(--line-2); }
.tb__sheet { font: 900 1.9rem/1 var(--f-disp) !important; color: var(--accent-ink); }
.tb__cta { padding: 18px; border-bottom: 2px solid var(--ink); display: flex; flex-direction: column; gap: 4px; background: var(--paper-2); }
.tb__label { font: 500 0.62rem var(--f-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.tb__phone { font: 900 2.05rem/1 var(--f-disp); text-decoration: none; letter-spacing: 0.01em; }
.tb__hours { font-size: 0.8rem; color: var(--ink-2); margin-bottom: 12px; }
.tb__ins { border-bottom: 0; }

/* crumbs */
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 14px 0 0; margin: 0; font: 500 0.72rem var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line-2); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* page head */
.ph { padding: clamp(28px, 6vw, 72px) 0 clamp(24px, 4vw, 48px); border-bottom: 2px solid var(--ink); position: relative; }
.ph__sheet { display: flex; flex-wrap: wrap; gap: 0; margin: 0 0 18px; font: 500 0.72rem var(--f-mono); letter-spacing: 0.12em; }
.ph__sheet span { border: 1.5px solid var(--ink); padding: 4px 9px; }
.ph__sheet span:first-child { background: var(--ink); color: var(--paper); }
.ph__sheet span + span { border-left: 0; }
.ph h1 { font-size: clamp(2.6rem, 7.2vw, 5.6rem); max-width: 16ch; }
.lede { font-size: clamp(1.08rem, 1.7vw, 1.3rem); line-height: 1.55; max-width: 60ch; color: var(--ink-2); margin: 1.1rem 0 0; }
.byline { margin-top: 1rem; color: var(--muted); }

/* ---------------------------------------------------------------- hero (home) */
.hero { display: grid; gap: clamp(24px, 4vw, 48px); padding: clamp(28px, 5vw, 64px) 0 clamp(32px, 5vw, 56px); border-bottom: 2px solid var(--ink); align-items: center; }
@media (min-width: 1000px) { .hero { grid-template-columns: 0.95fr 1.05fr; } }
.hero h1 { font-size: clamp(3rem, 8.4vw, 6.6rem); }
@media (min-width: 1000px) { .hero h1 { font-size: clamp(3.4rem, 5.2vw, 5.6rem); } }
.hero h1 em { font-style: normal; color: var(--accent-ink); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 0.08em; text-underline-offset: 0.1em; text-decoration-skip-ink: none; }
.ticks { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: 8px; font-size: 0.95rem; }
.ticks li { display: flex; align-items: center; gap: 10px; }
.ticks .i { color: var(--accent-ink); }

.build { margin: 0; }
.build__stage { position: relative; border: 2px solid var(--ink); box-shadow: 8px 8px 0 var(--shadow); aspect-ratio: 800 / 520; overflow: hidden; background: #0f2e52; user-select: none; touch-action: pan-y; }
.build__svg { display: block; width: 100%; height: 100%; }
.build__plan { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--pos)); color: #eaf2fb; }
.build__plan .bp-bg { fill: #0f2e52; }
.build__plan .bp-grid { stroke: rgba(234, 242, 251, 0.08); stroke-width: 1; }
.build__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 0; pointer-events: none; }
.build__handle::before { content: ""; position: absolute; top: 0; bottom: 0; left: -1.5px; width: 3px; background: var(--accent); }
.build__handle i { position: absolute; top: 50%; left: 0; width: 46px; height: 46px; transform: translate(-50%, -50%); background: var(--accent); border: 2px solid #14212d; display: grid; place-items: center; }
.build__handle i::before { content: "◂ ▸"; font: 700 0.9rem var(--f-mono); color: #14212d; letter-spacing: -0.05em; }
.build__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.build__range:focus-visible + * , .build__stage:focus-within { outline: 3px solid var(--accent); outline-offset: 4px; }
.build__tag { position: absolute; top: 12px; font: 700 0.7rem var(--f-mono); letter-spacing: 0.14em; padding: 4px 8px; pointer-events: none; }
.build__tag--l { left: 12px; background: #f3efe6; color: #14212d; border: 1.5px solid #14212d; }
.build__tag--r { right: 12px; background: #0f2e52; color: #eaf2fb; border: 1.5px solid #eaf2fb; }
.build figcaption { margin-top: 14px; color: var(--muted); }

.strip { display: grid; grid-template-columns: repeat(2, 1fr); list-style: none; margin: 0; padding: 0; border-bottom: 2px solid var(--ink); }
@media (min-width: 760px) { .strip { grid-template-columns: repeat(4, 1fr); } }
.strip li { padding: 18px 16px 16px; border-right: 1px solid var(--line-2); display: flex; align-items: baseline; gap: 10px; }
.strip li:nth-child(2n) { border-right: 0; }
@media (min-width: 760px) { .strip li:nth-child(2n) { border-right: 1px solid var(--line-2); } .strip li:last-child { border-right: 0; } }
@media (max-width: 759px) { .strip li:nth-child(-n + 2) { border-bottom: 1px solid var(--line-2); } }
.strip b { font: 900 2.6rem/1 var(--f-disp); color: var(--accent-ink); }
.strip span { font: 500 0.72rem/1.3 var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; }

/* ---------------------------------------------------------------- sections */
.sec { padding: clamp(40px, 6vw, 80px) 0 0; }
.sec__head { display: flex; gap: 18px; align-items: flex-start; margin-bottom: clamp(20px, 3vw, 36px); }
.sec__head h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
.sec__intro { margin: 0.8rem 0 0; color: var(--ink-2); max-width: 62ch; }
.bub { flex: none; width: 58px; height: 58px; border: 2px solid var(--ink); border-radius: 50%; display: grid; grid-template-rows: 1fr 1fr; place-items: center; position: relative; background: var(--paper); margin-top: 2px; }
.bub::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1.5px solid var(--ink); }
.bub b { font: 700 0.95rem/1 var(--f-mono); align-self: end; padding-bottom: 3px; }
.bub i { font: 500 0.56rem/1 var(--f-mono); font-style: normal; align-self: start; padding-top: 4px; letter-spacing: 0.04em; }
.more { margin-top: 28px; }

/* prose */
.prose { max-width: 68ch; }
.prose--wide { max-width: 78ch; }
.prose--cols p { margin-bottom: 1.1em; }
@media (min-width: 1100px) { .prose--cols { max-width: none; columns: 2; column-gap: 48px; } .prose--cols p { break-inside: avoid; } }
.prose strong { font-weight: 700; }
.prose h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin: 2.2rem 0 0.9rem; }
.prose h3 { font-size: 1.45rem; margin: 1.6rem 0 0.6rem; }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 1.2em; }
.prose li { margin-bottom: 0.4em; }
.prose li::marker { color: var(--accent-ink); }

.split { display: grid; gap: 32px; align-items: start; }
@media (min-width: 1000px) { .split { grid-template-columns: 1fr 1fr; gap: 48px; } }

/* drawings */
.detail { margin: 0; border: 2px solid var(--ink); background: var(--paper); padding: 10px; position: relative; }
.detail::before, .detail::after { content: ""; position: absolute; width: 14px; height: 14px; border: 2px solid var(--accent); }
.detail::before { top: -8px; left: -8px; border-right: 0; border-bottom: 0; }
.detail::after { bottom: -8px; right: -8px; border-left: 0; border-top: 0; }
.drawing { display: block; width: 100%; height: auto; color: var(--draw); }
.drawing .ln, .drawing .lt { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: square; }
.drawing .lt { stroke-width: 0.8; opacity: 0.75; }
.drawing .dsh { fill: none; stroke: currentColor; stroke-width: 1.4; stroke-dasharray: 6 5; }
.drawing .acc { stroke: var(--accent); opacity: 1; }
.drawing .af { fill: var(--accent); stroke: none; }
.drawing .ko { fill: var(--paper); stroke: none; }
.drawing .tx { fill: currentColor; font: 500 9px var(--f-mono); letter-spacing: 0.06em; }
.drawing .tx--b { font-weight: 700; font-size: 10px; }
.drawing .tx--s { font-size: 7.5px; opacity: 0.8; }
.drawing .tx--sign { font: 900 15px var(--f-disp); letter-spacing: 0.12em; fill: var(--accent); }
.drawing .acc-t { fill: var(--accent-ink); }
.js .drawing .ln, .js .drawing .lt { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.8s cubic-bezier(0.6, 0.05, 0.3, 1); }
.js .drawing .dsh, .js .drawing .tx, .js .drawing .af, .js .drawing circle.af { opacity: 0; transition: opacity 0.8s ease 0.9s; }
.js .drawing.is-drawn .ln, .js .drawing.is-drawn .lt { stroke-dashoffset: 0; }
.js .drawing.is-drawn .dsh, .js .drawing.is-drawn .tx, .js .drawing.is-drawn .af { opacity: 1; }

/* spec checklist */
.spec__h { font-size: 1.5rem; margin: 40px 0 16px; }
.spec { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1.5px solid var(--ink); }
@media (min-width: 760px) { .spec { grid-template-columns: 1fr 1fr; } .spec li:nth-child(odd) { border-right: 1px solid var(--line-2); padding-right: 16px; } .spec li:nth-child(even) { padding-left: 16px; } }
.spec li { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.spec .i { color: var(--accent-ink); margin-top: 4px; }

/* ---------------------------------------------------------------- sheet index */
.idx__wrap { display: grid; gap: 32px; }
.idx__h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; font-size: 1.6rem; padding-bottom: 10px; border-bottom: 2px solid var(--ink); }
.idx__h small { font: 400 0.92rem/1.3 var(--f-body); text-transform: none; color: var(--muted); letter-spacing: 0; }
.idx { list-style: none; margin: 0; padding: 0; }
.idx__row { display: grid; grid-template-columns: 74px 1fr 32px; gap: 4px 16px; align-items: center; padding: 16px 8px; border-bottom: 1px solid var(--line-2); text-decoration: none; position: relative; transition: background 0.15s ease; }
.idx__row:hover { background: var(--paper-2); color: var(--ink); }
.idx__no { font: 700 0.85rem var(--f-mono); color: var(--accent-ink); grid-row: span 2; align-self: start; padding-top: 4px; }
.idx__t { font: 800 clamp(1.35rem, 2.6vw, 1.85rem)/1 var(--f-disp); text-transform: uppercase; }
.idx__d { color: var(--ink-2); font-size: 0.95rem; line-height: 1.45; grid-column: 2; }
.idx__go { grid-row: 1 / span 2; grid-column: 3; justify-self: end; transition: transform 0.15s ease; }
.idx__row:hover .idx__go { transform: translateX(4px); color: var(--accent-ink); }
@media (min-width: 1100px) {
  .idx__row { grid-template-columns: 74px minmax(240px, 0.8fr) 1.2fr 32px; }
  .idx__no { grid-row: auto; padding-top: 0; align-self: center; }
  .idx__d { grid-column: 3; }
  .idx__go { grid-row: auto; grid-column: 4; }
}

/* general notes */
.notes { list-style: none; counter-reset: n; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1.5px solid var(--ink); }
@media (min-width: 860px) { .notes { grid-template-columns: 1fr 1fr; } .notes li:nth-child(odd) { border-right: 1px solid var(--line-2); } }
.notes li { counter-increment: n; padding: 20px 20px 18px 56px; border-bottom: 1px solid var(--line-2); position: relative; }
.notes li::before { content: counter(n); position: absolute; left: 8px; top: 18px; width: 30px; height: 30px; display: grid; place-items: center; border: 1.5px solid var(--ink); font: 700 0.8rem var(--f-mono); }
.notes b { display: block; font: 800 1.35rem/1.05 var(--f-disp); text-transform: uppercase; margin-bottom: 6px; }
.notes p { margin: 0; color: var(--ink-2); font-size: 0.98rem; }

/* gantt */
.gantt { border: 2px solid var(--ink); background: var(--paper); }
.gantt__cols { display: grid; grid-template-columns: minmax(0, 1fr); border-bottom: 1.5px solid var(--ink); }
.gantt__cols > div { display: grid; grid-template-columns: repeat(10, 1fr); }
.gantt__cols span { font: 500 0.66rem var(--f-mono); padding: 6px; color: var(--muted); border-left: 1px solid var(--line); }
.gantt__cols > span { display: none; }
.gantt ol { list-style: none; margin: 0; padding: 0; }
.gantt__row { display: grid; grid-template-columns: minmax(0, 1fr); border-bottom: 1px solid var(--line-2); }
.gantt__row:last-child { border-bottom: 0; }
.gantt__label { padding: 14px 16px 6px; }
.gantt__label .mono { color: var(--accent-ink); margin-right: 8px; }
.gantt__label b { font: 800 1.3rem/1 var(--f-disp); text-transform: uppercase; }
.gantt__label p { margin: 6px 0 0; font-size: 0.92rem; color: var(--ink-2); }
.gantt__track { display: grid; grid-template-columns: repeat(10, 1fr); padding: 6px 0 16px; background-image: linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 10% 100%; }
.gantt__bar { height: 18px; background: repeating-linear-gradient(-45deg, var(--accent), var(--accent) 6px, color-mix(in srgb, var(--accent) 75%, var(--paper)) 6px, color-mix(in srgb, var(--accent) 75%, var(--paper)) 12px); border: 1.5px solid var(--ink); transform-origin: left; }
.js .gantt__bar { transform: scaleX(0); transition: transform 0.9s cubic-bezier(0.6, 0.05, 0.3, 1); }
.js .gantt.is-drawn .gantt__bar { transform: scaleX(1); }
.js .gantt.is-drawn .gantt__row:nth-child(2) .gantt__bar { transition-delay: 0.15s; }
.js .gantt.is-drawn .gantt__row:nth-child(3) .gantt__bar { transition-delay: 0.3s; }
.js .gantt.is-drawn .gantt__row:nth-child(4) .gantt__bar { transition-delay: 0.45s; }
.js .gantt.is-drawn .gantt__row:nth-child(5) .gantt__bar { transition-delay: 0.6s; }
.gantt__note { padding: 10px 16px; margin: 0; border-top: 1.5px solid var(--ink); color: var(--muted); text-transform: none; letter-spacing: 0.02em; }
@media (min-width: 860px) {
  .gantt__cols, .gantt__row { grid-template-columns: 320px minmax(0, 1fr); }
  .gantt__cols > span { display: block; border-left: 0; }
  .gantt__label { padding: 14px 16px; border-right: 1.5px solid var(--ink); }
  .gantt__track { padding: 0; align-items: center; }
  .gantt__bar { height: 24px; }
}

/* ---------------------------------------------------------------- sign-off slips */
.sos { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); align-items: start; }
.so { margin: 0; position: relative; background: var(--paper-2); border: 1.5px solid var(--ink); padding: 34px 20px 20px; overflow: hidden; }
.so::before { content: ""; position: absolute; inset: 6px; border: 1px dashed var(--line-2); pointer-events: none; }
.so__hole { position: absolute; top: 10px; left: 50%; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; border: 1.5px solid var(--ink); background: var(--paper); }
.so__meta { display: flex; flex-direction: column; gap: 2px; padding: 0 118px 10px 0; margin-bottom: 12px; border-bottom: 1px solid var(--line-2); }
.so__meta span, .so__by { font: 500 0.62rem var(--f-mono); letter-spacing: 0.14em; color: var(--muted); }
.so__meta b { font: 700 0.82rem var(--f-mono); letter-spacing: 0.04em; text-transform: uppercase; }
.so blockquote { margin: 0; }
.so blockquote p { font-size: 0.98rem; line-height: 1.6; margin: 0; }
.so blockquote p::before { content: "“"; font: 900 2.4rem/0 var(--f-disp); color: var(--accent-ink); vertical-align: -0.38em; margin-right: 4px; }
.so figcaption { margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--line-2); }
.so cite { font: 800 1.15rem var(--f-disp); font-style: normal; text-transform: uppercase; }
.so__src { font-size: 0.8rem; color: var(--muted); }
.so__link { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font: 600 0.82rem var(--f-body); position: relative; z-index: 1; }
.stamp {
  position: absolute; right: 12px; top: 40px; transform: rotate(var(--r, -6deg));
  font: 900 1.25rem/1 var(--f-disp); letter-spacing: 0.14em; color: var(--accent);
  border: 3px double var(--accent); padding: 5px 10px 3px; opacity: 0.85; mix-blend-mode: multiply; pointer-events: none;
}
:root[data-theme="dark"] .stamp { mix-blend-mode: normal; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .stamp { mix-blend-mode: normal; } }

/* ---------------------------------------------------------------- SIR line diagram */
.sir { border: 2px solid var(--ink); background: var(--paper); padding: 18px clamp(14px, 2vw, 24px) 20px; }
.sir__title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font: 800 1.35rem var(--f-disp); text-transform: uppercase; margin: 0 0 12px; }
.sir__title .mono { color: var(--muted); font-weight: 500; text-transform: none; }
.sir__bul { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--blue); color: var(--paper); font: 700 0.8rem var(--f-mono); }
.sir__line { list-style: none; margin: 0; padding: 0; }
.sir__stop a { display: flex; align-items: center; gap: 14px; text-decoration: none; position: relative; }
.sir__stop i { width: 16px; height: 16px; border-radius: 50%; background: var(--paper); border: 3.5px solid var(--seg); flex: none; position: relative; z-index: 1; transition: transform 0.15s ease; }
.sir__stop a:hover i, .sir__stop a:focus-visible i { transform: scale(1.35); background: var(--seg); }
.sir__stop span { font: 600 0.95rem var(--f-body); }
.sir__stop[data-shore="north-shore"], .sir__sep[data-shore="north-shore"] { --seg: var(--north); }
.sir__stop[data-shore="east-shore"], .sir__sep[data-shore="east-shore"] { --seg: var(--east); }
.sir__stop[data-shore="south-shore"], .sir__sep[data-shore="south-shore"] { --seg: var(--south); }
.sir[data-active]:not([data-active=""]) .sir__stop:not(.is-on) { opacity: 0.4; }
.sir__stop.is-on i { background: var(--seg); }
.sir__brs { display: none; }
.sir__xs { display: grid; gap: 10px; margin-top: 18px; }
@media (min-width: 760px) { .sir__xs { grid-template-columns: 1fr 1fr; } }
.sir__x { display: flex; flex-direction: column; gap: 3px; padding: 10px 14px; border: 1.5px dashed var(--line-2); text-decoration: none; font-size: 0.92rem; color: var(--ink-2); }
.sir__x:hover { border-color: var(--ink); color: var(--ink); }
.sir__xl { font: 700 0.72rem var(--f-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); }
.sir[data-active]:not([data-active=""]) .sir__x:not(.is-on) { opacity: 0.45; }
.sir__x.is-on { border-style: solid; border-color: var(--mid); }

/* vertical (mobile) */
@media (max-width: 899px) {
  .sir__line { position: relative; padding-left: 4px; }
  .sir__stop a { padding: 6px 0; }
  .sir__stop a::before { content: ""; position: absolute; left: 6px; top: 0; bottom: 0; width: 4px; background: var(--seg); }
  .sir__stop:first-of-type a::before { top: 50%; }
  .sir__line li:last-child a::before { bottom: 50%; }
  .sir__sep { font: 700 0.68rem var(--f-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); padding: 12px 0 4px 32px; position: relative; }
  .sir__sep::before { content: ""; position: absolute; left: 10px; margin-left: -4px; top: 0; bottom: 0; width: 4px; background: var(--seg); }
  .sir__sep:first-child::before { display: none; }
}
/* horizontal (desktop) */
@media (min-width: 900px) {
  .sir__line { display: grid; grid-template-columns: repeat(21, 1fr); height: 170px; align-items: end; }
  .sir__sep { display: none; }
  .sir__stop { position: relative; height: 100%; }
  .sir__stop a { position: absolute; left: 0; right: 0; bottom: 0; height: 100%; display: block; }
  .sir__stop a::before { content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 5px; background: var(--seg); }
  .sir__stop i { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); }
  .sir__stop a:hover i, .sir__stop a:focus-visible i { transform: translateX(-50%) scale(1.35); }
  .sir__stop span { position: absolute; left: 50%; bottom: 26px; transform-origin: 0 100%; transform: rotate(-58deg); white-space: nowrap; font-size: 0.8rem; }
  .sir__brs { display: grid; margin-top: 12px; gap: 0; }
  .sir__br { border-top: 2px solid var(--ink); margin: 0 4px; padding-top: 6px; text-align: center; font: 700 0.72rem var(--f-mono); letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none; position: relative; }
  .sir__br::before, .sir__br::after { content: ""; position: absolute; top: -8px; height: 8px; border-left: 2px solid var(--ink); }
  .sir__br::before { left: 0; }
  .sir__br::after { right: 0; }
  .sir[data-active]:not([data-active=""]) .sir__br:not(.is-on) { opacity: 0.4; }
}
@media (min-width: 900px) and (max-width: 1299px) { .sir__stop span { font-size: 0.72rem; } }

/* ---------------------------------------------------------------- cards, chips, lists */
.chips { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1.5px solid var(--ink); text-decoration: none; font-weight: 600; font-size: 0.92rem; background: var(--paper); }
.chips a:hover, .chips a[aria-current] { background: var(--ink); color: var(--paper); }
.chips .mono { font-size: 0.66rem; opacity: 0.8; }

.gcards, .guide-cards, .svcs, .rel, .plog, .hoods { list-style: none; margin: 0; padding: 0; }
.gcards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); margin-top: 24px; }
.gcard { display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 18px; border: 1.5px solid var(--ink); background: var(--paper); text-decoration: none; transition: transform 0.12s ease, box-shadow 0.12s ease; }
.gcard:hover { color: var(--ink); transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--shadow); }
.gcard .mono { color: var(--accent-ink); }
.gcard b { font: 800 1.45rem/1 var(--f-disp); text-transform: uppercase; }
.gcard > span:last-child { color: var(--ink-2); font-size: 0.93rem; line-height: 1.5; }

.guide-cards { display: grid; gap: 18px; }
@media (min-width: 900px) { .guide-cards { grid-template-columns: 1fr 1fr; } }
.guide-card { display: flex; flex-direction: column; gap: 10px; height: 100%; padding: 22px; border: 2px solid var(--ink); text-decoration: none; background: var(--paper); }
.guide-card:hover { color: var(--ink); background: var(--paper-2); }
.guide-card .mono { color: var(--accent-ink); }
.guide-card b { font: 800 1.8rem/1 var(--f-disp); text-transform: uppercase; }
.guide-card p { margin: 0; color: var(--ink-2); }
.guide-card__go { margin-top: auto; display: inline-flex; gap: 8px; align-items: center; font-weight: 700; }

.svcs { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.svc { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 14px; border: 1.5px solid var(--ink); text-decoration: none; background: var(--paper); }
.svc:hover { color: var(--ink); background: var(--paper-2); }
.svc .mono { color: var(--accent-ink); }
.svc b { font: 800 1.3rem/1 var(--f-disp); text-transform: uppercase; }
.svc .drawing { margin-top: auto; border-top: 1px solid var(--line-2); padding-top: 8px; }

.rel { display: grid; border-top: 1.5px solid var(--ink); }
@media (min-width: 760px) { .rel { grid-template-columns: 1fr 1fr; } .rel li:nth-child(odd) { border-right: 1px solid var(--line-2); } }
.rel a { display: flex; align-items: center; gap: 12px; padding: 16px 8px; border-bottom: 1px solid var(--line-2); text-decoration: none; font: 800 1.3rem/1 var(--f-disp); text-transform: uppercase; }
.rel a:hover { background: var(--paper-2); color: var(--ink); }
.rel .mono { color: var(--accent-ink); font-family: var(--f-mono); }
.rel .i { margin-left: auto; }

.hoods { display: flex; flex-wrap: wrap; gap: 8px; }
.hoods li { padding: 6px 10px; border: 1px solid var(--line-2); font: 500 0.8rem var(--f-mono); letter-spacing: 0.04em; background: var(--paper); }

.plog { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.plog__card { display: flex; flex-direction: column; height: 100%; border: 1.5px solid var(--ink); background: var(--paper); text-decoration: none; }
.plog__card:hover { color: var(--ink); box-shadow: 5px 5px 0 var(--shadow); transform: translate(-2px, -2px); }
.plog__art { padding: 10px; border-bottom: 1.5px solid var(--ink); }
.plog__txt { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; }
.plog__txt .mono { color: var(--accent-ink); }
.plog__txt b { font: 800 1.45rem/1 var(--f-disp); text-transform: uppercase; }
.plog__by { font-size: 0.85rem; color: var(--muted); margin-top: auto; }

/* faq */
.faq { border-top: 1.5px solid var(--ink); max-width: 980px; }
.faq__i { border-bottom: 1px solid var(--line-2); }
.faq__i summary { list-style: none; display: flex; gap: 16px; align-items: center; justify-content: space-between; padding: 18px 4px; cursor: pointer; }
.faq__i summary::-webkit-details-marker { display: none; }
.faq__q { font: 700 1.08rem/1.35 var(--f-body); }
.faq__x { flex: none; width: 28px; height: 28px; border: 1.5px solid var(--ink); position: relative; }
.faq__x::before, .faq__x::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: var(--ink); transform: translate(-50%, -50%); }
.faq__x::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform 0.2s ease; }
.faq__i[open] .faq__x::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq__i[open] .faq__x { background: var(--accent); }
.faq__a { padding: 0 4px 18px; color: var(--ink-2); max-width: 72ch; }

/* article */
.article { padding-top: clamp(28px, 4vw, 48px); }
.answer { border: 2px solid var(--ink); border-left: 10px solid var(--accent); background: var(--paper-2); padding: 18px 22px; margin: 0 0 32px; max-width: 78ch; }
.answer__k { font: 700 0.7rem var(--f-mono); letter-spacing: 0.14em; color: var(--accent-ink); }
.answer p { margin: 8px 0 0; font-size: 1.08rem; line-height: 1.6; }
.prose--article { max-width: 72ch; }
.disclaimer { margin-top: 2.4rem; padding-top: 14px; border-top: 1px dashed var(--line-2); font-size: 0.88rem; color: var(--muted); }

/* ---------------------------------------------------------------- estimate */
.nap { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); margin: 1.8rem 0 0; border: 1.5px solid var(--ink); max-width: 980px; }
.nap div { padding: 12px 16px; border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); margin: -1px -1px 0 0; }
.nap dt { font: 500 0.62rem var(--f-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.nap dd { margin: 4px 0 0; font-weight: 600; overflow-wrap: anywhere; }
.sb { display: grid; gap: 18px; border: 2px solid var(--ink); padding: clamp(16px, 2.5vw, 26px); background: var(--paper); }
.sb fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.sb legend { font: 700 0.72rem var(--f-mono); letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 10px; padding: 0; }
.chips-sel { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 44px; padding: 8px 14px; border: 1.5px solid var(--ink); background: var(--paper); color: var(--ink); font: 600 0.9rem var(--f-body); cursor: pointer; border-radius: 0; }
.chip:hover { background: var(--paper-2); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); box-shadow: 3px 3px 0 var(--accent); }
.form { border: 2px solid var(--ink); padding: clamp(16px, 2.5vw, 26px); background: var(--paper); max-width: 980px; }
.form__grid { display: grid; gap: 16px; }
@media (min-width: 700px) { .form__grid { grid-template-columns: 1fr 1fr; } .form__wide { grid-column: 1 / -1; } }
.form label { display: flex; flex-direction: column; gap: 6px; font: 700 0.72rem var(--f-mono); letter-spacing: 0.12em; text-transform: uppercase; }
.form input, .form select, .form textarea {
  font: 400 1rem/1.4 var(--f-body); color: var(--ink); background: var(--paper);
  border: 1.5px solid var(--ink); border-radius: 0; padding: 12px; min-height: 48px; width: 100%;
  text-transform: none; letter-spacing: 0;
}
.form textarea { resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 3px solid var(--accent); outline-offset: 0; }
.form [aria-invalid="true"] { border-color: var(--accent-ink); border-width: 2.5px; }
.form .btn { margin-top: 18px; }
.form__status { margin: 14px 0 0; font-weight: 600; min-height: 1.2em; }
.form__fine { font-size: 0.82rem; color: var(--muted); margin: 14px 0 0; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

/* ---------------------------------------------------------------- cta band + footer */
.cta-band { border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); background: var(--ink); color: var(--paper); }
.cta-band__in { max-width: 1680px; margin: 0 auto; padding: clamp(40px, 7vw, 88px) var(--gut); }
.cta-band .kicker { color: var(--accent); }
.cta-band h2 { font-size: clamp(2.6rem, 8vw, 6rem); max-width: 14ch; }
.cta-band p { max-width: 56ch; margin-top: 14px; opacity: 0.85; }
.cta-band__act { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.cta-band .btn { --shadow: var(--accent); box-shadow: 4px 4px 0 var(--paper); border-color: var(--paper); }
.cta-band .btn--ghost { --bg: transparent; color: var(--paper); }
.cta-band .btn--ghost:hover { color: var(--ink); background: var(--paper); }

.ftr { padding: 48px 0 calc(24px + 64px); }
@media (min-width: 981px) { .ftr { padding-bottom: 24px; } }
.ftr__in { max-width: 1680px; margin: 0 auto; padding: 0 var(--gut); display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); }
.ftr__brand { grid-column: 1 / -1; }
@media (min-width: 1100px) { .ftr__in { grid-template-columns: 1.6fr repeat(5, 1fr); } .ftr__brand { grid-column: auto; } }
.ftr h3 { font-size: 1.15rem; padding-bottom: 8px; margin-bottom: 10px; border-bottom: 1.5px solid var(--ink); }
.ftr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.ftr ul a { text-decoration: none; font-size: 0.93rem; display: inline-block; padding: 4px 0; }
.ftr ul a:hover { text-decoration: underline; }
.ftr__brand p { margin: 14px 0; color: var(--ink-2); max-width: 40ch; }
.ftr address { font-style: normal; line-height: 1.8; }
.ftr__g { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.ftr__base { max-width: 1680px; margin: 40px auto 0; padding: 16px var(--gut) 0; border-top: 1.5px solid var(--ink); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: 0.85rem; color: var(--muted); }
.ftr__base p { margin: 0; }

.mbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: 1fr 1.4fr; border-top: 2px solid var(--ink); background: var(--paper); padding-bottom: env(safe-area-inset-bottom); }
.mbar a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px; font-weight: 700; text-decoration: none; }
.mbar__go { background: var(--accent); color: var(--on-accent) !important; border-left: 2px solid var(--ink); }
@media (min-width: 981px) { .mbar { display: none; } }

/* ---------------------------------------------------------------- motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .js .drawing .ln, .js .drawing .lt { stroke-dashoffset: 0; }
  .js .drawing .dsh, .js .drawing .tx, .js .drawing .af { opacity: 1; }
  .js .gantt__bar { transform: none; }
}

@media print {
  .hdr, .mbar, .cta-band, .tb { display: none !important; }
  body { background: #fff; }
}
