/* ==========================================================================
   Ilumenal — site styles
   Paper, ink, and one safety-orange accent. Layout borrows from
   construction drawings: sheet numbers, rules, title blocks.
   ========================================================================== */

/* Self-hosted fonts, latin subset (SIL Open Font License — licenses in /fonts) */
@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-latin-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/ibm-plex-mono-latin-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/ibm-plex-mono-latin-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Palette */
  --paper: #f3f0e9;
  --paper-2: #ebe7dd;
  --sheet: #f8f6f1;           /* drawing sheet behind the graph-paper grid */
  --sheet-fill: #fcfbf8;      /* objects drawn on the sheet */
  --ink: #16150f;
  --muted: #5e5a52;           /* 6.0:1 on paper */
  --rule: #cdc6b7;            /* hairlines */
  --orange: #ef5b1e;          /* fills, marks, rules — never small text on paper */
  --orange-text: #b93d0a;     /* orange that passes contrast on paper */
  --on-ink: #f3f0e9;
  --on-ink-muted: #a39e93;    /* 6.8:1 on ink */
  --on-ink-rule: rgba(243, 240, 233, 0.22);
  --grid-line: rgba(22, 21, 15, 0.035);    /* graph-paper grid */
  --grid-major: rgba(22, 21, 15, 0.07);
  --grid-track: rgba(22, 21, 15, 0.1);     /* schedule columns */
  --band: var(--ink);                       /* dark bands: trades, contact */
  --on-orange: var(--ink);                  /* text and marks on orange fills */

  /* Type */
  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  /* Layout */
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 68px;
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
::selection { background: var(--orange); color: var(--on-orange); }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}
.trades :focus-visible,
.contact :focus-visible { outline-color: var(--on-ink); }

h1, h2, h3 { text-wrap: balance; }

h1 {
  font-size: clamp(2.9rem, 11.5vw, 9.5rem);
  font-weight: 800;
  font-stretch: 72%;
  line-height: 0.9;
  letter-spacing: -0.02em;
}

h2 {
  max-width: 20ch;
  font-size: clamp(2.1rem, 4.6vw, 3.6rem);
  font-weight: 750;
  font-stretch: 80%;
  line-height: 1;
  letter-spacing: -0.015em;
}

h3 {
  font-size: 1.15rem;
  font-weight: 650;
  line-height: 1.3;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
}
.skip-link:focus { top: 12px; }

/* Visually hidden, still read by screen readers */
.vh {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Small uppercase technical labels */
.kicker, .sec-no, .pl-no, .pl-status, .div-no, .spec-no, .ts-k, .tb-k, .g-mark,
.g-head-label, .dim, .nav-toggle, .rfi-no, .rfi-k, .trades-label, .contact-alt-k,
.slip-head, .cell label, .form-status, .form-note, .stamp,
.nav-call-k {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ---------- Buttons & links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.75rem 1.15rem;
  border: 1.5px solid var(--ink);
  border-radius: 2px;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.1;
  white-space: nowrap;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.btn-lg { padding: 1rem 1.4rem; font-size: 1.05rem; }

.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--orange); border-color: var(--orange); color: var(--on-orange); }

.btn-line { background: transparent; color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--paper); }

.btn-paper { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.btn-paper:hover { background: var(--orange); border-color: var(--orange); color: var(--on-orange); }

.btn-line-dark { background: transparent; border-color: rgba(243, 240, 233, 0.5); color: var(--on-ink); }
.btn-line-dark:hover { border-color: var(--on-ink); background: rgba(243, 240, 233, 0.08); }

.arrow { display: inline-block; transition: transform 0.15s; }
.btn:hover .arrow, .link:hover .arrow { transform: translateX(3px); }

.link {
  display: inline-flex;
  gap: 0.5rem;
  padding-bottom: 3px;
  border-bottom: 2px solid var(--orange);
  font-weight: 600;
}

.link-inline {
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--orange);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

/* ---------- Logo ---------- */

.logo {
  display: inline-flex;
  align-items: baseline;
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.logo-i {
  display: inline-block;
  width: 0.31em;
  height: 0.8em;
  margin-right: 0.035em;
  overflow: visible;
}
.logo-i circle { fill: var(--orange); }
.logo-i rect { fill: currentColor; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1.5px solid var(--ink);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}

.site-nav { display: flex; align-items: center; gap: 36px; }
.site-nav ul { display: flex; gap: 28px; }
.site-nav ul a {
  padding: 4px 0;
  font-weight: 500;
  background: linear-gradient(var(--orange), var(--orange)) no-repeat 0 100% / 0 2px;
  transition: background-size 0.2s;
}
.site-nav ul a:hover { background-size: 100% 2px; }

.nav-toggle, .nav-no, .nav-call { display: none; }

/* The menu sheet appears once the progress line would cross it */
.nav-open .progress { display: none; }

/* Mobile: the menu is a full-screen sheet that unrolls from under the header.
   Tapping the sheet's empty area closes it, like a backdrop (script.js).
   Without JavaScript the header keeps just the proposal button, and the footer's sheet index
   does the navigating. */
@media (max-width: 860px) {
  html:not(.js) .site-nav ul { display: none; }

  .js .nav-toggle {
    display: inline-flex;
    align-items: center;
    padding: 10px 14px;
    border: 1.5px solid var(--ink);
    border-radius: 2px;
    background: transparent;
  }

  .js .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 18px var(--gutter) calc(24px + env(safe-area-inset-bottom));
    border-top: 1.5px solid var(--ink); /* sits over the header's own rule, so no seam */
    overflow-y: auto;
    overscroll-behavior: contain;
    background-color: var(--paper);
    background-image:
      linear-gradient(var(--grid-line) 1px, transparent 1px),
      linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
    background-size: 20px 20px;
    visibility: hidden;
    clip-path: inset(0 0 100% 0);
    transition: clip-path 0.34s cubic-bezier(0.3, 0.7, 0.2, 1), visibility 0s linear 0.34s;
  }
  .js .nav-open .site-nav {
    visibility: visible;
    clip-path: inset(0);
    transition: clip-path 0.34s cubic-bezier(0.3, 0.7, 0.2, 1), visibility 0s;
  }
  .js .site-nav::before {
    content: "Contents";
    padding-bottom: 10px;
    border-bottom: 1.5px solid var(--ink);
    font: 500 0.75rem var(--mono);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
  }
  .js .site-nav ul { flex-direction: column; gap: 0; margin-bottom: 28px; }
  .js .site-nav ul a {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--rule);
    background: none;
    font-size: 1.9rem;
    font-weight: 750;
    font-stretch: 80%;
    line-height: 1.1;
  }
  .js .site-nav .nav-no {
    display: inline-grid;
    place-items: center;
    flex: none;
    min-width: 46px;
    height: 34px;
    padding: 0 6px;
    border: 1.5px solid currentColor;
    font: 500 0.8rem var(--mono);
    letter-spacing: 0.02em;
  }
  .js .nav-call {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 20px;
    font-size: 1.35rem;
    font-weight: 700;
  }
  .nav-call-k { color: var(--muted); }
  .js .site-nav .btn { margin-top: auto; padding-block: 1rem; font-size: 1.05rem; }
  .js .site-nav .btn .nav-no { min-width: 0; height: 24px; font-size: 0.7rem; }
  /* body too: iOS Safari only stops touch scrolling when both are locked */
  .nav-locked, .nav-locked body { overflow: hidden; }
}

/* ---------- Hero ---------- */

.hero { padding: clamp(40px, 6vw, 72px) 0 clamp(64px, 9vw, 112px); }

.kicker { color: var(--muted); }
.hero h1 { margin-top: 18px; }
.dot { color: var(--orange); }

/* Dimension line with architectural tick marks */
.dim {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: clamp(22px, 3vw, 36px) 0;
  color: var(--muted);
}
.dim i { position: relative; flex: 1; height: 1px; background: var(--ink); }
.dim i::before, .dim i::after {
  content: "";
  position: absolute;
  background: var(--ink);
}
.dim i:first-child::before { left: 0; top: -9px; width: 1px; height: 19px; }
.dim i:first-child::after { left: 0; top: -6px; width: 1.5px; height: 13px; transform: rotate(45deg); }
.dim i:last-child::before { right: 0; top: -9px; width: 1px; height: 19px; }
.dim i:last-child::after { right: 0; top: -6px; width: 1.5px; height: 13px; transform: rotate(45deg); }

.hero-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px 48px;
  align-items: end;
}
.hero-sub { max-width: 34rem; font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.5; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

@media (max-width: 900px) {
  .hero-row { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .hero-actions .btn { flex: 1 1 100%; }
}

/* Detail drawing */
.detail {
  margin-top: clamp(40px, 6vw, 72px);
  border: 1.5px solid var(--ink);
  background: var(--paper);
}
.detail-sheet {
  position: relative;
  padding: clamp(12px, 2.5vw, 32px);
  background: var(--sheet);
}
/* Graph-paper grid on its own layer, so it can fade in before the plot */
.detail-sheet::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-major) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-major) 1px, transparent 1px),
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 100px 100px, 100px 100px, 20px 20px, 20px 20px;
}
.dw { position: relative; width: 100%; height: auto; }

.dw .ln { fill: none; stroke: var(--ink); stroke-width: 1.5; }
.dw .ln-thin { fill: none; stroke: var(--ink); stroke-width: 1; }
.dw .hair { stroke: var(--ink); stroke-opacity: 0.2; stroke-width: 1; }
.dw .sheet-fill { fill: var(--sheet-fill); }
.dw .paper-fill { fill: var(--paper); }
.dw .accent { fill: var(--orange); }
.dw .hatched { fill: url(#hatch); stroke: var(--ink); stroke-width: 1; }
.dw .hatch-line { stroke: var(--ink); stroke-width: 1.6; }
.dw .sig { fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dw .home-bar { stroke: var(--ink); stroke-width: 4; stroke-linecap: round; }

.dw text { fill: var(--ink); }
.dw .tx { font-family: var(--font); font-size: 15px; }
.dw .tm { font-family: var(--mono); letter-spacing: 0.04em; }
.dw .b { font-weight: 700; }
.dw .xxs { font-size: 9.5px; }
.dw .xs { font-size: 10.5px; }
.dw .sm { font-size: 13.5px; }
.dw .lg { font-size: 18px; }
.dw .xl { font-size: 24px; font-stretch: 85%; }
.dw .xxl { font-size: 27px; font-stretch: 85%; }
.dw .muted { fill: var(--muted); }
.dw .accent-tx { fill: var(--orange-text); }

.dw .tag circle { fill: var(--orange); stroke: var(--ink); stroke-width: 1.5; }
.dw .tag text { font-family: var(--font); font-size: 13px; font-weight: 700; text-anchor: middle; }
.dw .tag text, .dw text[data-approve] { fill: var(--on-orange); }
.dw .dot { fill: var(--orange); stroke: var(--ink); stroke-width: 1.5; opacity: 0; }

.dw .route { fill: none; stroke: none; }

/* Stacked drawing for narrow screens; its hatch pattern lives in its own <defs> */
.dw-mob { display: none; }
.dw-mob .hatched { fill: url(#hatch-m); }

.titlestrip {
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr) 110px;
  gap: 1.5px;
  background: var(--ink);
  border-top: 1.5px solid var(--ink);
}
.ts-cell { padding: 14px 18px; background: var(--paper); }
.ts-title, .ts-scale { display: flex; flex-direction: column; gap: 4px; }
.ts-k { color: var(--muted); }
.ts-v { font-weight: 650; line-height: 1.3; }
.ts-legend { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 28px; }
.ts-legend li { display: flex; gap: 10px; font-size: 0.92rem; line-height: 1.4; }
.ts-legend b { font-weight: 650; }

.key {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 22px;
  height: 22px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  background: var(--orange);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  color: var(--on-orange);
}

@media (max-width: 900px) {
  .titlestrip { grid-template-columns: 1fr 1fr; }
  .ts-legend { grid-column: 1 / -1; grid-row: 2; }
}

@media (max-width: 860px) {
  .dw-desk { display: none; }
  .dw-mob { display: block; max-width: 420px; margin-inline: auto; }
}
@media (max-width: 700px) {
  .detail-sheet { padding: 12px; }
  .ts-legend { grid-template-columns: 1fr; }
}

/* ---------- Trades band ---------- */

.trades {
  padding-block: clamp(36px, 5vw, 56px);
  background: var(--band);
  color: var(--on-ink);
}
.trades-label {
  margin-bottom: 14px;
  color: var(--on-ink-muted);
}
.trades-list {
  display: flex;
  flex-wrap: wrap;
  font-size: clamp(1.5rem, 3.4vw, 2.6rem);
  font-weight: 700;
  font-stretch: 75%;
  line-height: 1.15;
}
.trades-list li:not(:last-child)::after {
  content: "/";
  margin: 0 0.32em;
  font-weight: 400;
  color: var(--orange);
}

/* ---------- Section frame ---------- */

.section { padding-block: clamp(64px, 9vw, 112px); }
.section-alt { background: var(--paper-2); }

.sec-grid {
  position: relative;
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  column-gap: clamp(24px, 4vw, 56px);
  padding-top: 28px;
}
/* Heavy rule across the top of each section, aligned to the content */
.sec-grid::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--gutter);
  right: var(--gutter);
  height: 1.5px;
  background: currentColor;
}

.sec-no { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.sec-no > span:first-child {
  display: inline-grid;
  place-items: center;
  min-width: 46px;
  height: 46px;
  padding: 0 6px;
  border: 1.5px solid currentColor;
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.sec-no small { font-size: inherit; text-transform: none; }

.sec-intro { max-width: 40rem; margin-top: 18px; font-size: 1.12rem; color: var(--muted); }

@media (max-width: 860px) {
  .sec-grid { grid-template-columns: 1fr; row-gap: 22px; }
  .sec-no { flex-direction: row; align-items: center; gap: 12px; }
  .sec-no > span:first-child { min-width: 38px; height: 38px; font-size: 0.85rem; }
}

/* ---------- 01 Punch list ---------- */

.punch { margin-top: 40px; border-top: 1.5px solid var(--ink); }
.punch li {
  display: grid;
  grid-template-columns: 22px 60px minmax(0, 1fr) auto;
  column-gap: 18px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
}
.box {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 1.5px solid var(--ink);
}
.box svg { width: 14px; height: 14px; fill: none; stroke: var(--on-orange); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.pl-no { color: var(--muted); }
.pl-text { font-size: clamp(1.05rem, 1.6vw, 1.22rem); line-height: 1.35; }
.pl-status { min-width: 7ch; color: var(--orange-text); } /* fits "Closed", so the close-out can't shift anything */

.punch .closed { border-bottom: 1.5px solid var(--ink); }
.punch .closed .box { background: var(--orange); }
.punch .closed .pl-text strong { font-weight: 700; }
.punch .closed .pl-status { color: var(--ink); }

@media (max-width: 640px) {
  .punch li { grid-template-columns: 22px minmax(0, 1fr); row-gap: 6px; column-gap: 14px; align-items: start; }
  .box { grid-row: 1 / span 2; margin-top: 2px; }
  .pl-no { grid-column: 2; grid-row: 1; }
  .pl-status { grid-column: 2; grid-row: 1; justify-self: end; }
  .pl-text { grid-column: 2; grid-row: 2; }
}

/* ---------- 02 Scope of work ---------- */

.division { margin-top: 48px; padding-top: 22px; border-top: 1.5px solid var(--ink); }
.div-head {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 12px 24px;
  align-items: baseline;
}
.div-no { color: var(--muted); }
.division h3 {
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  font-weight: 750;
  font-stretch: 78%;
  line-height: 1;
}
.div-desc { color: var(--muted); }

.spec {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 40px;
  margin-top: 26px;
  border-top: 1px solid var(--rule);
}
.spec li { border-bottom: 1px solid var(--rule); }
.spec-item {
  display: flex;
  align-items: baseline;
  gap: 16px;
  width: 100%;
  padding: 13px 0;
  border: 0;
  background: none;
  text-align: left;
}
/* Open/closed mark, drawn with two rules like the RFIs */
.js .spec-item::after {
  content: "";
  flex: none;
  align-self: center;
  width: 11px;
  height: 11px;
  margin-left: auto;
  background:
    linear-gradient(var(--muted), var(--muted)) center / 100% 1.5px no-repeat,
    linear-gradient(var(--muted), var(--muted)) center / 1.5px 100% no-repeat;
}
.spec-item[aria-expanded="true"]::after { background-size: 100% 1.5px, 1.5px 0; }
.spec-no { flex: none; min-width: 2.6rem; margin-left: -4px; padding: 1px 4px; color: var(--muted); transition: background-color 0.2s, color 0.2s; }
/* Hover or open: an orange underline draws under the name and the number fills in */
.spec-t {
  background: linear-gradient(var(--orange), var(--orange)) no-repeat 0 100% / 0 2px;
  transition: background-size 0.25s;
}
.spec-item:hover .spec-t, .spec-item[aria-expanded="true"] .spec-t { background-size: 100% 2px; }
.spec-item:hover .spec-no, .spec-item[aria-expanded="true"] .spec-no { background: var(--orange); color: var(--on-orange); }
.spec-desc { padding: 0 24px 14px calc(2.6rem + 12px); font-size: 0.95rem; line-height: 1.5; color: var(--muted); }
.js .spec-item[aria-expanded="false"] + .spec-desc { display: none; }

.sec-cta { margin-top: 40px; }

@media (max-width: 860px) {
  .div-head { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .spec { grid-template-columns: 1fr; }
}

/* ---------- 03 Schedule (Gantt) ---------- */

.gantt { margin-top: 44px; border-top: 1.5px solid var(--ink); }

.g-head, .g-row {
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  column-gap: 36px;
}
.g-head { padding: 12px 0; border-bottom: 1px solid var(--ink); }
.g-head-label { color: var(--muted); }

.g-scale, .g-track {
  display: grid;
  grid-template-columns: repeat(24, minmax(0, 1fr));
}
.g-mark { padding-left: 8px; border-left: 1px solid var(--ink); color: var(--muted); white-space: nowrap; }
.g-mark-start { grid-column: 1 / span 6; }
.g-mark-proposal { grid-column: 8 / span 8; }
.g-mark-golive { grid-column: 18 / span 7; }

.g-row { padding: 20px 0; border-bottom: 1px solid var(--rule); align-items: center; }
.g-phase p { margin-top: 4px; font-size: 0.95rem; line-height: 1.5; color: var(--muted); }

.g-track {
  align-items: center;
  min-height: 44px;
  background-image: linear-gradient(to right, var(--grid-track) 1px, transparent 1px);
  background-size: calc(100% / 12) 100%;
  border-right: 1px solid var(--grid-track);
}

.bar {
  grid-row: 1;
  height: 22px;
  background: var(--ink);
  transform-origin: left center;
}
.bar-1 { grid-column: 1 / 4; }
.bar-2 { grid-column: 4 / 8; }
.bar-3 { grid-column: 8 / 16; }
.bar-4 { grid-column: 16 / 18; }
.bar-5 { grid-column: 18 / 25; }

.bar-ongoing {
  position: relative;
  border: 1.5px solid var(--ink);
  border-right: 0;
  background: repeating-linear-gradient(-45deg, var(--ink) 0 1.5px, transparent 1.5px 7px);
}
.bar-ongoing::after {
  content: "";
  position: absolute;
  right: -1px;
  top: 50%;
  border: 6px solid transparent;
  border-left: 9px solid var(--ink);
  transform: translate(100%, -50%);
}

.ms {
  grid-row: 1;
  justify-self: start;
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--ink);
  background: var(--orange);
  transform: translateX(-50%) rotate(45deg);
  z-index: 1;
}
.ms-2 { grid-column: 8; }
.ms-4 { grid-column: 18; }

/* Typical duration, written next to each bar */
.g-dur {
  grid-row: 1;
  align-self: center;
  padding-left: 10px;
  font: 500 0.72rem/1 var(--mono);
  letter-spacing: 0.04em;
  color: var(--muted);
  white-space: nowrap;
}
.g-dur-1 { grid-column: 4 / span 6; }
.g-dur-2 { grid-column: 8 / span 7; padding-left: 18px; }
.g-dur-3 { grid-column: 16 / span 7; }
.g-dur-4 { grid-column: 18 / span 7; padding-left: 18px; }
.g-dur-5 { grid-column: 10 / 18; justify-self: end; padding: 0 12px 0 0; }

/* Bars draw in once when the schedule scrolls into view; each duration label
   appears as its bar finishes, and milestones pop in after their bar. */
.motion .gantt .bar { transform: scaleX(0); transition: transform 0.7s cubic-bezier(0.3, 0.7, 0.2, 1); }
.motion .gantt .ms, .motion .gantt .g-dur { opacity: 0; }
.motion .gantt .g-dur { transition: opacity 0.3s; }
.motion .gantt.is-drawn .bar { transform: scaleX(1); }
.motion .gantt.is-drawn .g-dur { opacity: 1; }
.motion .gantt.is-drawn .ms { opacity: 1; animation: ms-pop 0.4s cubic-bezier(0.3, 0.7, 0.2, 1.5) both; }
.motion .gantt .bar-2 { transition-delay: 0.35s; }
.motion .gantt .bar-3 { transition-delay: 0.7s; }
.motion .gantt .bar-4 { transition-delay: 1.05s; }
.motion .gantt .bar-5 { transition-delay: 1.4s; }
.motion .gantt .g-dur-1 { transition-delay: 0.7s; }
.motion .gantt .g-dur-2, .motion .gantt .ms-2 { transition-delay: 1.05s; animation-delay: 1.05s; }
.motion .gantt .g-dur-3 { transition-delay: 1.4s; }
.motion .gantt .g-dur-4, .motion .gantt .ms-4 { transition-delay: 1.75s; animation-delay: 1.75s; }
.motion .gantt .g-dur-5 { transition-delay: 2.1s; }
@keyframes ms-pop {
  from { opacity: 0; transform: translateX(-50%) rotate(45deg) scale(0); }
  70% { opacity: 1; transform: translateX(-50%) rotate(45deg) scale(1.3); }
}

/* "Today": a vertical line that tracks scrolling across the chart (desktop) */
.gantt { position: relative; }
.g-today { display: none; }
.motion .g-today {
  display: block;
  position: absolute;
  top: 0;
  bottom: -24px;
  left: 336px;
  right: 0;
  overflow: hidden;
  pointer-events: none;
}
.g-today i { position: absolute; inset: 0; border-left: 1.5px solid var(--orange); }
.g-today i::after {
  content: "Today";
  position: absolute;
  bottom: 2px;
  left: 6px;
  font: 500 0.68rem var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--orange-text);
}
@supports (animation-timeline: view()) {
  .gantt { view-timeline: --gantt block; }
  .g-today i { animation: today linear both; animation-timeline: --gantt; animation-range: cover 30% cover 70%; }
}
@keyframes today { to { transform: translateX(99.5%); } }

/* Just above the 860px breakpoint the sheet-number column still takes its share, so the
   phase column gives the bars and their duration labels more room */
@media (min-width: 861px) and (max-width: 1024px) {
  .g-head, .g-row { grid-template-columns: minmax(0, 220px) minmax(0, 1fr); column-gap: 28px; }
}

@media (max-width: 760px) {
  .motion .g-today { display: none; }
  .g-head, .g-row { grid-template-columns: 1fr; row-gap: 12px; }
  .g-head-label { display: none; }
  /* The scale rides under the header while the rows scroll past, so every bar stays readable against it */
  .g-head { position: sticky; top: var(--header-h); z-index: 2; background: var(--paper); }
  .g-dur { font-size: 0.68rem; }
}

/* ---------- 04 General notes ---------- */

.notes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 48px;
  margin-top: 40px;
  border-top: 1.5px solid var(--ink);
  counter-reset: note;
}
.notes > li {
  display: grid;
  grid-template-columns: 2.4rem minmax(0, 1fr);
  padding: 22px 0;
  border-bottom: 1px solid var(--rule);
  counter-increment: note;
}
.notes > li > * { grid-column: 2; }
.notes > li::before {
  content: counter(note) ".";
  grid-row: 1 / span 2;
  font-family: var(--mono);
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--muted);
}
.notes p { margin-top: 6px; color: var(--muted); }

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

main > section:focus { outline: none; }

/* ---------- 05 RFIs ---------- */

.rfis { margin-top: 40px; border-top: 1.5px solid var(--ink); }
.rfi { border-bottom: 1px solid var(--rule); }
.rfi summary {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr) 16px;
  gap: 6px 16px;
  align-items: baseline;
  padding: 22px 0;
  cursor: pointer;
  list-style: none;
}
.rfi summary::-webkit-details-marker { display: none; }
.rfi-q { font-size: 1.12rem; font-weight: 650; line-height: 1.3; }
/* Plus / minus drawn with two rules */
.rfi summary::after {
  content: "";
  align-self: center;
  width: 16px;
  height: 16px;
  background:
    linear-gradient(var(--ink), var(--ink)) center / 100% 1.5px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 1.5px 100% no-repeat;
}
.rfi[open] summary::after { background-size: 100% 1.5px, 1.5px 0; }
.rfi summary:hover .rfi-q { text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.rfi-a { padding: 0 32px 26px calc(5.5rem + 16px); }
.rfi-a p { max-width: 44rem; color: var(--muted); }
.rfi-a p + p { margin-top: 10px; }
.rfi-a .rfi-k { margin-bottom: 6px; color: var(--orange-text); }

@media (max-width: 640px) {
  .rfi summary { grid-template-columns: minmax(0, 1fr) 16px; }
  .rfi-no { grid-column: 1 / -1; }
  .rfi-a { padding: 0 0 24px; }
}

/* ---------- 06 Contact ---------- */

.contact {
  padding-block: clamp(64px, 9vw, 112px);
  background: var(--band);
  color: var(--on-ink);
}
.contact .sec-intro { color: var(--on-ink-muted); }

.contact-row {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 40px 56px;
  align-items: start;
  margin-top: 44px;
}

.contact-aside { display: flex; flex-direction: column; gap: 24px; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.contact-alt { font-size: 1.05rem; }
.contact-alt-k {
  display: block;
  margin-bottom: 2px;
  color: var(--on-ink-muted);
}
.contact-alt > a:not(.link) { font-weight: 600; }
.contact-email {
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  font-weight: 750;
  font-stretch: 78%;
  line-height: 1.1;
  text-decoration: underline;
  text-decoration-color: var(--orange);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.16em;
  overflow-wrap: anywhere;
}
.contact-email:hover { color: var(--orange); }

/* Copy needs JavaScript, so the button only shows once script.js runs */
.copy-btn { display: none; }
.js .copy-btn { display: inline-flex; }

/* Inquiry form, drawn as a transmittal slip. Hidden without JavaScript. */
.slip {
  display: none;
  border-top: 6px solid var(--orange);
  background: var(--paper);
  color: var(--ink);
}
.js .slip { display: block; }
.slip :focus-visible { outline-color: var(--ink); }

.rfi-form { padding: 18px 20px 20px; }
.slip-head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 12px; color: var(--muted); }

.cells {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1px;
  border: 1px solid var(--ink);
  background: var(--ink);
}
.cell { position: relative; display: flex; flex-direction: column; padding: 8px 12px 6px; background: var(--paper); }
.cell.wide { grid-column: 1 / -1; }
.cell label { color: var(--muted); }
.cell label i { font-style: normal; text-transform: none; letter-spacing: 0; opacity: 0.8; }
.cell input, .cell select, .cell textarea {
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 4px 0 3px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: 500 1rem/1.45 var(--mono);
}
.cell :is(input, select, textarea):focus { outline: none; }
.cell:focus-within { background: var(--sheet-fill); }
.cell textarea { min-height: 6.2em; resize: vertical; }
.cell ::placeholder { color: var(--muted); opacity: 1; }
.cell select {
  appearance: none;
  padding-right: 22px;
  background:
    linear-gradient(45deg, transparent 50%, var(--ink) 50%) right 6px center / 6px 6px no-repeat,
    linear-gradient(-45deg, transparent 50%, var(--ink) 50%) right 0 center / 6px 6px no-repeat;
  cursor: pointer;
}
.cell.is-invalid label, .cell .err { color: var(--orange-text); }
.cell .err { font: 500 0.75rem/1.4 var(--mono); }

/* Focus: orange dimension brackets with 45° ticks, instead of an outline.
   --orange-text keeps them above 3:1 on paper; the cell also lightens. */
.cell::after, .slip .btn::after {
  content: "";
  position: absolute;
  inset: -9px;
  z-index: 1;
  opacity: 0;
  pointer-events: none;
  --c: var(--orange-text);
  background:
    linear-gradient(var(--c), var(--c)) 4px 4px / 2px calc(100% - 8px),
    linear-gradient(var(--c), var(--c)) calc(100% - 4px) 4px / 2px calc(100% - 8px),
    linear-gradient(var(--c), var(--c)) 4px 4px / 10px 2px,
    linear-gradient(var(--c), var(--c)) calc(100% - 4px) 4px / 10px 2px,
    linear-gradient(var(--c), var(--c)) 4px calc(100% - 4px) / 10px 2px,
    linear-gradient(var(--c), var(--c)) calc(100% - 4px) calc(100% - 4px) / 10px 2px,
    linear-gradient(45deg, transparent 42%, var(--c) 42% 58%, transparent 58%) 0 0 / 12px 12px,
    linear-gradient(45deg, transparent 42%, var(--c) 42% 58%, transparent 58%) 100% 100% / 12px 12px;
  background-repeat: no-repeat;
}
.cell:focus-within::after, .slip .btn:focus-visible::after { opacity: 1; }
.slip .btn { position: relative; }
.slip .btn:focus-visible { outline: none; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Turnstile's widget is 65px tall; reserve it so nothing shifts when it loads */
.ts-slot { min-height: 65px; margin-top: 16px; }

.slip-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 16px; }
.slip-foot .btn[aria-busy="true"] { opacity: 0.7; cursor: progress; }
.form-status { color: var(--orange-text); }
.form-fallback { margin-top: 16px; padding: 16px; border: 1.5px dashed var(--orange-text); }
.form-fallback p { margin-bottom: 12px; }
.form-note { margin-top: 14px; color: var(--muted); text-transform: none; letter-spacing: 0; }
.form-note a { text-decoration: underline; text-underline-offset: 2px; }

/* Booking: Google's booking page, loaded into a paper slip on click (script.js).
   The link stays hidden until a booking address is pasted into its href. */
.booking:has(.booking-link[href=""]) { display: none; }
.booking-panel {
  margin-top: 40px;
  padding: 18px 20px 16px;
  border-top: 6px solid var(--orange);
  background: var(--paper);
  color: var(--ink);
}
.booking-panel:focus { outline: none; }
.booking-panel .slip-head { align-items: center; }
.booking-close {
  padding: 6px 10px;
  border: 1.5px solid var(--ink);
  border-radius: 2px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  text-transform: inherit;
  letter-spacing: inherit;
}
.booking-close:hover { background: var(--ink); color: var(--paper); }
.booking-frame { border: 1px solid var(--ink); background: #fff; }
.booking-frame iframe { display: block; width: 100%; height: 680px; border: 0; }
.booking-note { margin-top: 12px; font-size: 0.9rem; color: var(--muted); }
.booking-note a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.received-book { margin-top: 18px; }

/* Success: a received stamp */
.received { padding: 34px 22px 30px; }
.received:focus { outline: none; }
.stamp {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 22px 12px;
  border: 2.5px solid var(--orange-text);
  outline: 1px solid var(--orange-text);
  outline-offset: 3px;
  color: var(--orange-text);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  transform: rotate(-3deg);
}
.stamp-no { font-size: 2rem; letter-spacing: 0.04em; line-height: 1.15; }
.received-note { max-width: 30rem; margin-top: 22px; }
.js .received:not([hidden]) .stamp { animation: stamp-land 0.38s cubic-bezier(0.3, 0.7, 0.2, 1.2) both; }
@keyframes stamp-land {
  from { opacity: 0; transform: rotate(-3deg) scale(1.35); }
  70% { opacity: 1; transform: rotate(-3deg) scale(0.97); }
  to { transform: rotate(-3deg) scale(1); }
}

@media (max-width: 960px) {
  .contact-row { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .rfi-form { padding: 16px 14px 18px; }
  .booking-panel { padding: 16px 14px 14px; }
  .booking-frame iframe { height: 760px; }
  .cells { grid-template-columns: 1fr; }
  .contact-actions .btn, .slip-foot .btn { flex: 1 1 100%; }
}

/* ---------- Footer: title block ---------- */

.site-footer { padding: 40px 0 32px; }

.tblock {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.2fr) minmax(0, 1.4fr) minmax(0, 0.7fr) minmax(0, 0.7fr) minmax(0, 0.8fr);
  gap: 1.5px;
  border: 1.5px solid var(--ink);
  background: var(--ink);
}
.tb-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  padding: 14px 18px;
  background: var(--paper);
}
.tb-brand { grid-row: span 2; justify-content: space-between; gap: 16px; }
.tb-brand p { max-width: 20rem; color: var(--muted); font-size: 0.95rem; line-height: 1.45; }
.tb-k { color: var(--muted); }
.tb-v { font-weight: 600; overflow-wrap: anywhere; }
.tb-nav { grid-column: 2 / 6; gap: 8px; }
.tb-nav ol { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.tb-nav a { font-weight: 500; }
.tb-nav a span { margin-right: 7px; font: 500 0.75rem var(--mono); color: var(--muted); }
a.tb-v:hover, .tb-nav a:hover, .tb-copy a:hover { text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; }
.tb-copy { display: flex; flex-direction: column; justify-content: space-between; font-size: 0.85rem; color: var(--muted); }
.tb-copy a { padding-block: 4px; color: var(--ink); font-weight: 500; }
.tb-links { display: flex; flex-wrap: wrap; gap: 0 14px; }

@media (max-width: 900px) {
  .tblock { grid-template-columns: 1fr 1fr; }
  .tb-brand { grid-column: 1 / -1; grid-row: auto; }
  .tb-project, .tb-contact, .tb-print, .tb-nav, .tb-copy { grid-column: 1 / -1; }
  .tb-copy { flex-direction: row; }
}

/* ---------- Single-sheet pages (privacy) ---------- */

.doc { padding-block: clamp(48px, 7vw, 88px); }
.doc h1 { font-size: clamp(2.6rem, 7vw, 5rem); }
.doc .sec-intro { margin-top: 22px; }
.doc .notes { grid-template-columns: 1fr; max-width: 46rem; }
.doc .notes h2 { max-width: none; font-size: 1.15rem; font-weight: 650; font-stretch: 100%; line-height: 1.3; letter-spacing: 0; }
.doc .notes p, .doc .notes ul { margin-top: 6px; color: var(--muted); }
.doc .notes ul { padding-left: 1.1em; list-style: square; }
.doc .notes ul li + li { margin-top: 6px; }
.doc .notes a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.doc .notes code { font: 500 0.9em var(--mono); color: var(--ink); }

/* ---------- 404 ---------- */

.notfound {
  display: grid;
  align-content: center;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  padding-block: 64px;
}
.notfound h1 { margin-top: 18px; font-size: clamp(2.9rem, 9vw, 7.5rem); }
.notfound p:not(.kicker) { max-width: 30rem; margin: 0 0 32px; font-size: 1.15rem; color: var(--muted); }

/* ---------- Motion: drafting, not decoration ----------
   Every "before" state hangs off html.motion, which the inline script in <head> sets only
   when reduced motion isn't requested (and drops if script.js never runs). script.js sets
   --d (delay), --t (duration), --fd (fill delay) and --len (stroke length) per element. */

/* Hero: plotted on load */
.motion .detail:not(.go) .dw, .motion .detail:not(.go) .detail-sheet::before { opacity: 0; }
.detail.go .detail-sheet::before { animation: fade 0.3s both; }
.dw.plot .l-outline > *, .dw.plot .l-rules > * {
  stroke-dasharray: var(--len);
  animation: draw var(--t, 0.5s) var(--d, 0s) cubic-bezier(0.45, 0, 0.2, 1) both, fill-in 0.01s var(--fd, 0s) both;
}
.dw.plot .l-fills > *, .dw.plot .l-text > *, .dw.plot .l-dim > * { animation: fade 0.01s var(--d, 0s) both; }
.dw.plot [data-bar] { animation: grow 0.6s var(--d, 0s) cubic-bezier(0.3, 0.7, 0.2, 1) both; }
.dw.plot .tag { animation: stamp 0.3s var(--d, 0s) ease-out both; }
.dw.plot [data-dim-line] { animation: extend 0.35s var(--d, 0s) cubic-bezier(0.3, 0.7, 0.2, 1) both; }
.dw.plot [data-system] { animation: type 0.35s var(--d, 0s) steps(22) both; }
/* The change order starts unsigned; the loop signs it */
.dw.plot [data-sig] { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); animation: none; }
.dw.plot [data-sent] { opacity: 0; animation: none; }
.dw .tag, .dw [data-approve], .dw [data-dim-line], .dw [data-open-cos] { transform-box: fill-box; transform-origin: center; }
.dw-desk [data-dim-line] { --sx: 0; }
.dw-mob [data-dim-line] { --sy: 0; }

@keyframes draw { from { stroke-dashoffset: var(--len); } }
@keyframes fill-in { from { fill-opacity: 0; } }
@keyframes fade { from { opacity: 0; } }
@keyframes grow { from { width: 0; } }
@keyframes stamp {
  from { opacity: 0; transform: scale(0.6); }
  65% { opacity: 1; transform: scale(1.08); }
}
@keyframes extend { from { transform: scale(var(--sx, 1), var(--sy, 1)); } }
@keyframes type { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }

/* Section entrances: the top rule draws, the sheet number counts up, the label types */
.motion .sec-grid::before { transform: scaleX(0); transform-origin: left; }
.motion .sec-grid.in::before { transform: none; transition: transform 0.4s cubic-bezier(0.3, 0.7, 0.2, 1); }
.motion .sec-grid .sec-label { clip-path: inset(0 100% 0 0); }
.motion .sec-grid.in .sec-label { animation: type 0.3s 0.1s steps(var(--n, 12)) both; }

/* Punch list close-out: PL-07 checks, then 01–06 are struck through one by one */
.pl-text > span {
  background: linear-gradient(var(--orange), var(--orange)) no-repeat 0 58% / 0 2px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.motion .punch .closed .box { background: none; transition: background-color 0.2s; }
.motion .punch .closed .box path { stroke-dasharray: 16; stroke-dashoffset: 16; transition: stroke-dashoffset 0.3s 0.15s; }
.motion .punch.is-done .closed .box { background: var(--orange); }
.motion .punch.is-done .closed .box path { stroke-dashoffset: 0; }
.motion .punch.is-done .pl-text > span { background-size: 100% 2px; transition: background-size 0.35s var(--d) cubic-bezier(0.3, 0.7, 0.2, 1); }
.pl-status.is-closed { color: var(--ink); }

/* Scroll progress under the header, drawn as a dimension line with 45° ticks */
.progress { display: none; }
.motion .progress {
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 11px;
  overflow: hidden;
  pointer-events: none;
}
.progress i { position: absolute; left: 0; right: 0; top: 5px; height: 1px; background: var(--orange); transform: translateX(-100%); }
.progress::before, .progress i::after {
  content: "";
  position: absolute;
  top: 0;
  width: 1.5px;
  height: 11px;
  background: var(--orange);
  transform: rotate(45deg);
}
.progress::before { left: 4px; }
.progress i::after { right: 4px; top: -5px; }
@supports (animation-timeline: scroll()) {
  .progress i { animation: progress linear both; animation-timeline: scroll(root); }
}
@keyframes progress { to { transform: none; } }

/* Scroll-spy: the nav marks the sheet you're on */
.site-nav ul a[aria-current] { background-size: 100% 2px; }
.site-nav a[aria-current] .nav-no { border-color: var(--orange); background: var(--orange); color: var(--on-orange); }

/* ---------- Blueprint print (title-block toggle) ----------
   A cyanotype: deep blue paper, near-white linework, orange marks kept. */
.print-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  visibility: hidden; /* needs script.js */
}
.ilm .print-btn { visibility: visible; }
.print-btn::before { content: ""; flex: none; width: 12px; height: 12px; border: 1.5px solid currentColor; }
.print-btn[aria-pressed="true"]::before { border-color: var(--orange); background: var(--orange); }
.print-btn:hover { text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; }

[data-theme="blueprint"] {
  color-scheme: dark;
  --paper: #0e3866;
  --paper-2: #0b3160;
  --sheet: #103e70;
  --sheet-fill: #134477;
  --ink: #eaf1fa;
  --muted: #a9bfdc;
  --rule: rgba(234, 241, 250, 0.26);
  --orange-text: #ff9b70;
  --on-orange: #0a2a50;
  --band: #082a52;
  --on-ink: #eaf1fa;
  --on-ink-muted: #a9bfdc;
  --on-ink-rule: rgba(234, 241, 250, 0.22);
  --grid-line: rgba(234, 241, 250, 0.06);
  --grid-major: rgba(234, 241, 250, 0.12);
  --grid-track: rgba(234, 241, 250, 0.14);
}
[data-theme="blueprint"] .btn-paper { border-color: var(--ink); }

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .gantt .bar { transform: none; transition: none; }
  .gantt .ms, .gantt .g-dur { opacity: 1; transition: none; animation: none; }
  .spec-no, .spec-t { transition: none; }
  .progress, .g-today { display: none; }
  .btn, .arrow, .js .site-nav, .site-nav ul a { transition: none; }
  .js .nav-open .site-nav { transition: none; }
  .js .received:not([hidden]) .stamp { animation: none; }
}

/* ---------- Print ----------
   Prints as a plain paper set: every spec and RFI opened (script.js opens the RFIs before
   printing), no menus, buttons, form, or booking calendar. */

@media print {
  :root, [data-theme="blueprint"] {
    color-scheme: light;
    --paper: #fff;
    --paper-2: #fff;
    --sheet: #fff;
    --sheet-fill: #fff;
    --ink: #16150f;
    --muted: #5e5a52;
    --rule: #cdc6b7;
    --orange-text: #b93d0a;
    --on-orange: #16150f;
    --band: #fff;
    --on-ink: #16150f;
    --on-ink-muted: #5e5a52;
    --on-ink-rule: #cdc6b7;
    --grid-line: transparent;
    --grid-major: transparent;
  }
  .site-header { position: static; }
  .site-nav, .nav-toggle, .progress, .g-today, .skip-link, .hero-actions, .sec-cta, .slip,
  .contact-actions, .booking, .booking-panel, .tb-print { display: none !important; }
  .js .spec-item[aria-expanded="false"] + .spec-desc { display: block; }
  .js .spec-item::after { display: none; }
  .section, .contact, .trades { padding-block: 28px; }
  .hero { padding-block: 24px; }
  .detail, .notes > li, .g-row, .rfi, .punch li, .tblock { break-inside: avoid; }
  h2, h3, .div-head { break-after: avoid; }
}
