/* ─────────────────────────────────────────────────────
   Lundy Digital
   Blueprint blue + steel tones, work-site orange accent.
   IBM Plex Mono for headings/labels, IBM Plex Sans for body.

   Layout: a fixed "title block" sidebar (identity, nav,
   contact) beside a scrolling column of numbered "sheets" —
   modeled on a blueprint drawing's title block + sheet set,
   not a stacked hero/cards/footer template.
───────────────────────────────────────────────────── */

:root {
  --blueprint:        #0B2947;
  --blueprint-deep:    #071B30;
  --blueprint-light:   #14385E;
  --steel:            #4B5C6B;
  --steel-light:      #8FA0AD;
  --paper:            #F6F4EF;
  --paper-alt:        #EFEBE1;
  --ink:              #16232E;
  --ink-soft:         #3D4B56;
  --orange:           #E85D0C;
  --orange-dark:      #C24C08;
  --line:             rgba(11, 41, 71, 0.16);
  --line-on-dark:     rgba(255, 255, 255, 0.18);

  --font-head: "IBM Plex Mono", ui-monospace, "SF Mono", Consolas, monospace;
  --font-body: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --tb-width: 19rem;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.18;
  margin: 0 0 0.75rem;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h2 { font-size: clamp(1.3rem, 2.4vw, 1.6rem); }
h3 { font-size: clamp(1.05rem, 1.8vw, 1.2rem); }

p { margin: 0 0 1rem; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--orange);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 100;
  font-family: var(--font-head);
  font-size: 0.85rem;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ── Buttons ─────────────────────────────────────── */

.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  padding: 0.8rem 1.4rem;
  border-radius: 0;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-dark); }

.btn-ghost {
  background: transparent;
  border-color: var(--blueprint);
  color: var(--blueprint);
}
.btn-ghost:hover { background: var(--blueprint); color: #fff; }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

/* ── Layout ──────────────────────────────────────── */

.layout {
  display: grid;
  grid-template-columns: var(--tb-width) 1fr;
  min-height: 100vh;
}

/* ── Title block (sidebar) ──────────────────────── */

.titleblock {
  background: var(--blueprint-deep);
  color: #fff;
  border-right: 1px solid var(--line-on-dark);
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.tb-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 2rem 1.75rem;
}

.tb-logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
}

.logo-mark {
  width: 1.75rem;
  height: auto;
  flex-shrink: 0;
}

.accent { color: var(--steel-light); font-weight: 500; }

.tb-tagline {
  margin-top: 1.1rem;
  font-size: 0.95rem;
  color: #DCE3E8;
  max-width: 18rem;
}

.tb-location {
  font-family: var(--font-head);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--steel-light);
  line-height: 1.6;
  padding-top: 1rem;
  border-top: 1px dashed var(--line-on-dark);
}

.tb-nav {
  display: flex;
  flex-direction: column;
  margin-top: 2.25rem;
  border-top: 1px solid var(--line-on-dark);
}

.tb-nav a {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line-on-dark);
  text-decoration: none;
  color: #B9C3CB;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.15s ease, padding-left 0.15s ease;
}

.tb-num {
  font-family: var(--font-head);
  font-size: 0.75rem;
  color: var(--steel-light);
}

.tb-nav a:hover { color: #fff; }

.tb-nav a.is-active {
  color: #fff;
  padding-left: 0.4rem;
  border-bottom-color: var(--orange);
}
.tb-nav a.is-active .tb-num { color: var(--orange); }

.tb-contact {
  margin-top: auto;
  padding-top: 1.75rem;
}

.tb-contact-label {
  font-family: var(--font-head);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--steel-light);
  margin-bottom: 0.6rem;
}

.tb-email {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: -0.01em;
  color: #fff;
  text-decoration: none;
  border: 1.5px solid var(--orange);
  padding: 0.6rem 0.7rem;
  word-break: break-all;
}
.tb-email:hover { background: var(--orange); }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 0.55rem;
  background: transparent;
  border: 1.5px solid var(--orange);
  color: #fff;
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.65rem 0.9rem;
  margin-top: 1rem;
  transition: background-color 0.15s ease;
}
.nav-toggle:hover,
.nav-toggle[aria-expanded="true"] { background: var(--orange); }

.toggle-frame {
  position: relative;
  width: 0.85rem;
  height: 0.85rem;
  flex-shrink: 0;
}
.toggle-frame .corner {
  position: absolute;
  width: 0.4rem;
  height: 0.4rem;
  border: 1.5px solid #fff;
  transition: transform 0.15s ease;
}
.toggle-frame .corner.tl { top: 0; left: 0; border-right: none; border-bottom: none; }
.toggle-frame .corner.tr { top: 0; right: 0; border-left: none; border-bottom: none; }
.toggle-frame .corner.bl { bottom: 0; left: 0; border-right: none; border-top: none; }
.toggle-frame .corner.br { bottom: 0; right: 0; border-left: none; border-top: none; }

.nav-toggle[aria-expanded="true"] .tl { transform: translate(-2px, -2px); }
.nav-toggle[aria-expanded="true"] .tr { transform: translate(2px, -2px); }
.nav-toggle[aria-expanded="true"] .bl { transform: translate(-2px, 2px); }
.nav-toggle[aria-expanded="true"] .br { transform: translate(2px, 2px); }

/* ── Content column ──────────────────────────────── */

.content {
  min-width: 0;
}

.sheet {
  max-width: 42rem;
  padding: 4rem 3rem;
  border-bottom: 1px solid var(--line);
}

.sheet-num {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  color: var(--steel);
  margin-bottom: 0.9rem;
}

.lede { font-size: 1.05rem; color: var(--ink-soft); max-width: 36rem; }

/* ── Services ────────────────────────────────────── */

.eyebrow {
  font-family: var(--font-head);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--orange-dark);
  margin-bottom: 0.4rem;
}

.service-flagship {
  padding: 1.75rem 1.75rem 1.75rem 1.5rem;
  border-left: 4px solid var(--orange);
  background: var(--paper-alt);
  margin-bottom: 2.25rem;
}

.service-secondary {
  padding-left: 1.5rem;
  border-left: 4px solid var(--steel-light);
}

.note {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px dashed var(--line);
  color: var(--steel);
  font-size: 0.9rem;
}

/* ── Spec list (label:value rows, not icon cards) ─── */

.spec-list {
  margin: 1.25rem 0 0;
  display: grid;
  gap: 0.6rem;
}
.spec-list > div {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px dotted var(--line);
}
.spec-list dt {
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--steel);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.spec-list dd { margin: 0; }

/* ── Proof ───────────────────────────────────────── */

.stamp-card {
  position: relative;
  border: 1.5px solid var(--line);
  padding: 1.75rem;
}

.stamp {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--orange);
  border: 2px solid var(--orange);
  padding: 0.25rem 0.5rem;
  transform: rotate(6deg);
}

.proof-link {
  display: inline-block;
  margin-top: 0.5rem;
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--blueprint);
  text-decoration: none;
  font-size: 0.95rem;
}
.proof-link:hover { color: var(--orange-dark); }

/* ── Process — revision table ────────────────────── */

.rev-table-wrap { overflow-x: auto; }

.rev-table {
  border-collapse: collapse;
  width: 100%;
  min-width: 30rem;
  font-size: 0.95rem;
}

.rev-table th,
.rev-table td {
  text-align: left;
  padding: 0.85rem 1rem 0.85rem 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.rev-table th {
  font-family: var(--font-head);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--steel);
  font-weight: 600;
}

.rev-table td:first-child,
.rev-table td:nth-child(2) {
  font-family: var(--font-head);
  white-space: nowrap;
}
.rev-table td:first-child { color: var(--orange-dark); font-weight: 600; }

/* ── Contact ─────────────────────────────────────── */

.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2.5rem;
  margin-top: 1.75rem;
  align-items: start;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  border: 1.5px solid var(--line);
  padding: 1.5rem;
}

.contact-form label {
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--steel);
  margin-top: 0.75rem;
}

.contact-form input,
.contact-form textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.6rem 0.7rem;
  border: 1.5px solid var(--line);
  border-radius: 0;
  background: #fff;
  color: var(--ink);
  resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--orange);
}

.contact-form button { margin-top: 1.25rem; align-self: flex-start; }

.hp-field { position: absolute; left: -9999px; }

.contact-direct { padding-top: 0.25rem; }

.contact-email {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--blueprint);
  text-decoration: none;
  white-space: nowrap;
  margin-bottom: 1rem;
}
.contact-email:hover { color: var(--orange-dark); }

.contact-area { color: var(--steel); font-size: 0.9rem; margin: 0; }

/* ── Footer (bottom margin of the sheet set) ──────── */

.sheet-footer {
  max-width: 42rem;
  padding: 2.5rem 3rem 4rem;
  color: var(--steel);
  font-size: 0.85rem;
}
.sheet-footer a { text-decoration: none; color: var(--steel); }
.sheet-footer a:hover { color: var(--orange-dark); }
.sheet-footer p { margin: 0 0 0.4rem; }
.footer-copy { color: var(--steel-light); margin-top: 0.75rem; }

/* ─────────────────────────────────────────────────────
   Responsive — mobile-first, tested down to 360px.
   Sidebar stops being fixed/full-height and stacks above
   the content column; nav collapses behind a toggle.
───────────────────────────────────────────────────── */

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

  .titleblock {
    position: static;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--line-on-dark);
  }

  .tb-inner { padding: 1.5rem 1.25rem; }

  .tb-tagline { max-width: none; }

  .nav-toggle { display: flex; }

  .tb-nav {
    max-height: 0;
    overflow: hidden;
    margin-top: 1rem;
    transition: max-height 0.2s ease;
  }
  .tb-nav.is-open { max-height: 24rem; }

  .tb-contact { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px dashed var(--line-on-dark); }

  .sheet, .sheet-footer { max-width: none; padding: 2.75rem 1.25rem; }

  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .contact-direct { border-top: 1px solid var(--line); padding-top: 1.5rem; }
}

@media (max-width: 420px) {
  .sheet, .sheet-footer { padding: 2.25rem 1rem; }
  .service-flagship { padding: 1.25rem 1.25rem 1.25rem 1rem; }
  .spec-list > div { grid-template-columns: 1fr; gap: 0.15rem; }
  .contact-form, .stamp-card { padding: 1.25rem; }
}
