/* Sibley Motors: blueprint sheet. Navy paper, white linework, two-weight grid. */
:root {
  --paper: #0d2647;
  --paper-deep: #091c36;
  --ink: #f3f7fc;
  --ink-soft: rgba(243, 247, 252, 0.78);
  --ink-faint: rgba(243, 247, 252, 0.55);
  --dim: #9cc8f2;
  --grid-fine: rgba(156, 200, 242, 0.08);
  --grid-bold: rgba(156, 200, 242, 0.16);
  --rule: rgba(156, 200, 242, 0.35);
  --field: rgba(9, 28, 54, 0.75);
  --ok: #9be3b8;
  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --max: 1120px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font: 17px/1.6 var(--sans);
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, 0.05), transparent 60%),
    linear-gradient(var(--grid-bold) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-bold) 1px, transparent 1px),
    linear-gradient(var(--grid-fine) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-fine) 1px, transparent 1px);
  background-size: 100% 100%, 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ink); text-underline-offset: 3px; text-decoration-color: var(--rule); }
a:hover { text-decoration-color: var(--ink); }
:focus-visible { outline: 2px solid var(--dim); outline-offset: 3px; }

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

/* Header */
.top { border-bottom: 1px solid var(--rule); background: rgba(9, 28, 54, 0.6); backdrop-filter: blur(6px); position: sticky; top: 0; z-index: 10; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand svg { width: 30px; height: 30px; flex: none; }
.brand span { font: 600 15px/1 var(--mono); letter-spacing: 0.28em; }
.top nav { display: flex; gap: 22px; font: 500 13px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; }
.top nav a { text-decoration: none; color: var(--ink-soft); padding: 8px 0; }
.top nav a:hover, .top nav a[aria-current] { color: var(--ink); }

/* Type */
.eyebrow, .label { font: 500 12px/1.4 var(--mono); letter-spacing: 0.22em; text-transform: uppercase; color: var(--dim); }
h1, h2, h3 { font-weight: 600; line-height: 1.12; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(40px, 7vw, 76px); letter-spacing: -0.02em; }
h2 { font-size: clamp(26px, 3.4vw, 36px); display: flex; align-items: baseline; gap: 14px; }
h2 .num { font: 500 14px/1 var(--mono); color: var(--dim); letter-spacing: 0.1em; border: 1px solid var(--rule); padding: 6px 8px; }
h3 { font-size: 19px; }
p { margin: 0; }
.lede { font-size: clamp(18px, 2vw, 21px); color: var(--ink-soft); max-width: 40em; }

/* Buttons */
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 600 14px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase;
  padding: 15px 22px; border: 1px solid var(--ink); background: var(--ink); color: var(--paper-deep);
  text-decoration: none; cursor: pointer; transition: background .15s, color .15s;
}
.btn:hover { background: transparent; color: var(--ink); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--rule); }
.btn.ghost:hover { border-color: var(--ink); }

/* Hero */
.hero { padding: 64px 0 40px; }
.hero .intro { display: grid; gap: 22px; margin-bottom: 48px; }

/* Drawing sheet with registration corners and a title block */
.sheet { position: relative; margin: 0; border: 1px solid var(--rule); background: rgba(9, 28, 54, 0.35); padding: 28px 20px 0; }
.sheet::before, .sheet::after,
.sheet > .corners::before, .sheet > .corners::after {
  content: ""; position: absolute; width: 18px; height: 18px; border: 0 solid var(--ink);
}
.sheet::before { top: -1px; left: -1px; border-top-width: 2px; border-left-width: 2px; }
.sheet::after { top: -1px; right: -1px; border-top-width: 2px; border-right-width: 2px; }
.sheet > .corners::before { bottom: -1px; left: -1px; border-bottom-width: 2px; border-left-width: 2px; }
.sheet > .corners::after { bottom: -1px; right: -1px; border-bottom-width: 2px; border-right-width: 2px; }
.sheet svg { display: block; width: 100%; height: auto; }
.titleblock {
  display: grid; grid-template-columns: repeat(2, 1fr); margin: 20px -20px 0;
  border-top: 1px solid var(--rule); font: 500 11px/1.3 var(--mono); letter-spacing: 0.12em; text-transform: uppercase;
}
.titleblock div { padding: 10px 14px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.titleblock div:nth-child(2n) { border-right: 0; }
.titleblock b { display: block; font-weight: 600; font-size: 13px; color: var(--ink); margin-top: 3px; letter-spacing: 0.08em; }
.titleblock span { color: var(--dim); }
@media (min-width: 720px) {
  .sheet { padding: 36px 36px 0; }
  .titleblock { grid-template-columns: 2fr 2fr 1fr 1fr 1fr; margin: 28px -36px 0; }
  .titleblock div { border-bottom: 0; }
  .titleblock div:nth-child(2n) { border-right: 1px solid var(--rule); }
  .titleblock div:last-child { border-right: 0; }
}

/* Three views at one scale: columns sized by each SVG's viewBox width so they share a ground line. */
.views { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; align-items: end; }
.views .side { grid-column: 1 / -1; }
.vlabel { margin-top: 10px; text-align: center; font: 500 11px/1 var(--mono); letter-spacing: 0.2em; text-transform: uppercase; color: var(--dim); }
@media (min-width: 900px) {
  .views { grid-template-columns: 1040fr 340fr 340fr; gap: 0 28px; }
  .views .side { grid-column: auto; }
}

/* Drawing strokes */
.obj { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.obj .thin { stroke-width: 0.9; opacity: 0.6; }
.hid { fill: none; stroke: var(--ink); stroke-width: 1; stroke-dasharray: 9 6; opacity: 0.5; }
.obj .fill { fill: rgba(243, 247, 252, 0.06); }
.ctr { fill: none; stroke: var(--dim); stroke-width: 1; stroke-dasharray: 14 4 3 4; opacity: 0.8; }
.dimn { fill: none; stroke: var(--dim); stroke-width: 1; }
.ext { fill: none; stroke: var(--dim); stroke-width: 1; opacity: 0.55; }
.dimt { fill: var(--dim); font: 500 15px var(--mono); letter-spacing: 0.08em; }
.ground { stroke: var(--ink); stroke-width: 1.5; }
.brandtext { fill: none; stroke: var(--ink); stroke-width: 1; font: 600 30px var(--mono); letter-spacing: 10px; opacity: 0.75; }

/* Sections */
section { padding: 72px 0; }
section + section { border-top: 1px dashed var(--rule); }
.section-head { display: grid; gap: 14px; margin-bottom: 36px; }

.cards { display: grid; gap: 16px; }
@media (min-width: 820px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { border: 1px solid var(--rule); padding: 24px; background: rgba(9, 28, 54, 0.45); display: grid; gap: 12px; align-content: start; }
.card .label { display: flex; justify-content: space-between; }
.card p { color: var(--ink-soft); font-size: 16px; }

/* Contact */
.contact { position: relative; overflow: hidden; }
.contact .art { position: absolute; right: -80px; bottom: 30px; width: 760px; max-width: none; opacity: 0.12; pointer-events: none; }
.contact-grid { position: relative; display: grid; gap: 40px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1.4fr 1fr; gap: 64px; } }
.aside { display: grid; gap: 22px; align-content: start; }
.aside .item { border-left: 2px solid var(--rule); padding-left: 16px; display: grid; gap: 4px; }
.aside .item p { color: var(--ink-soft); }

/* Forms */
form { display: grid; gap: 18px; }
.row { display: grid; gap: 18px; }
@media (min-width: 640px) { .row.two { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 8px; }
.field label { font: 500 12px/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim); }
.field .opt { color: var(--ink-faint); letter-spacing: 0.06em; text-transform: none; }
input[type=text], input[type=email], input[type=tel], textarea {
  width: 100%; font: 16px/1.4 var(--sans); color: var(--ink);
  background: var(--field); border: 1px solid var(--rule); border-radius: 0; padding: 13px 14px;
}
input:focus, textarea:focus { outline: none; border-color: var(--ink); }
textarea { min-height: 140px; resize: vertical; }
.consent { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; border: 1px dashed var(--rule); padding: 14px 16px; }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: #f3f7fc; }
.consent label { font-size: 14px; line-height: 1.55; color: var(--ink-soft); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fine { font-size: 13px; color: var(--ink-faint); }

/* Legal / text pages */
.page { padding: 56px 0 80px; }
.doc { max-width: 760px; display: grid; gap: 18px; }
.doc h1 { font-size: clamp(34px, 5vw, 52px); margin-bottom: 4px; }
.doc h2 { font-size: 22px; margin-top: 18px; }
.doc p, .doc li { color: var(--ink-soft); }
.doc ul { margin: 0; padding-left: 22px; display: grid; gap: 6px; }
.doc .callout { border: 1px solid var(--rule); background: rgba(9, 28, 54, 0.45); padding: 18px 20px; display: grid; gap: 8px; }
.doc .callout p { color: var(--ink); }

/* Footer */
footer { border-top: 1px solid var(--rule); padding: 28px 0 40px; font: 500 12px/1.6 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; }
footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
footer a { color: var(--ink-soft); text-decoration: none; }
footer a:hover { color: var(--ink); }
