/* ==========================================================================
   Imperial Linemarking — style.css
   Palette: bitumen / concrete / imperial green / gold / chalk
   Type: Saira Condensed (display) · IBM Plex Sans (body) · IBM Plex Mono (data)
   ========================================================================== */

:root {
  --bitumen: #16191c;
  --bitumen-2: #212730;
  --concrete: #eceeeb;
  --concrete-2: #dfe2dd;
  --imperial: #0d5c3d;
  --imperial-dk: #07351f;
  --gold: #c8961a;
  --gold-hi: #f2c300;
  --chalk: #ffffff;
  --slate: #59605e;

  --shell: min(1180px, 100% - 2.5rem);
  --r: 4px;

  --f-display: "Saira Condensed", "Arial Narrow", "Helvetica Neue Condensed", sans-serif;
  --f-body: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--concrete);
  color: var(--bitumen);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }

a { color: var(--imperial); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--imperial-dk); }

:focus-visible {
  outline: 3px solid var(--gold-hi);
  outline-offset: 3px;
  border-radius: 2px;
}

.shell { width: var(--shell); margin-inline: auto; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--gold-hi); color: var(--bitumen);
  padding: .75rem 1.25rem; font-weight: 600;
}
.skip:focus { left: 0; }

/* --- Type ---------------------------------------------------------------- */

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  margin: 0 0 .6em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.9rem, 8.2vw, 5.6rem); }
h2 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.6rem); letter-spacing: 0.005em; }
h4 { font-size: 1.1rem; }

p { margin: 0 0 1.15em; max-width: 68ch; }

.lede { font-size: clamp(1.1rem, 2vw, 1.28rem); line-height: 1.55; color: #333a38; }

.eyebrow {
  font-family: var(--f-mono);
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--imperial);
  margin: 0 0 1.1rem;
  display: flex;
  align-items: center;
  gap: .8rem;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 5px;
  background: var(--gold);
  flex: none;
}
.on-dark .eyebrow { color: var(--gold-hi); }
.on-dark .eyebrow::before { background: var(--gold-hi); }

/* --- Buttons ------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--f-display);
  font-size: 1.12rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: .82rem 1.6rem;
  border: 2px solid transparent;
  border-radius: var(--r);
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s var(--ease), background-color .2s var(--ease), color .2s var(--ease);
}
.btn:active { transform: translateY(1px); }

.btn--gold { background: var(--gold-hi); color: var(--bitumen); }
.btn--gold:hover { background: #ffd51f; color: var(--bitumen); }

.btn--green { background: var(--imperial); color: var(--chalk); }
.btn--green:hover { background: var(--imperial-dk); color: var(--chalk); }

.btn--ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn--ghost:hover { background: rgba(255,255,255,.1); color: inherit; }

.on-light .btn--ghost:hover { background: rgba(0,0,0,.06); }

.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; }

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

.masthead {
  position: sticky; top: 0; z-index: 50;
  background: rgba(236,238,235,.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--concrete-2);
}

.masthead__in {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  padding: .7rem 0;
}

.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand:hover { color: inherit; }
.brand__mark { width: 42px; height: 42px; flex: none; }
.brand__type { display: flex; flex-direction: column; line-height: 1; }
.brand__name {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 1.42rem;
  letter-spacing: .01em;
  text-transform: uppercase;
  color: var(--imperial);
}
.brand__sub {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 3px;
}

.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a {
  font-family: var(--f-display);
  font-size: 1.06rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--bitumen);
  text-decoration: none;
  padding: .35rem 0;
  border-bottom: 3px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--imperial); border-bottom-color: var(--gold); }
.nav .btn { font-size: 1.02rem; padding: .6rem 1.1rem; }
.nav .btn:hover { border-bottom-color: transparent; }

.burger {
  display: none;
  background: var(--bitumen); border: 0; border-radius: var(--r);
  padding: .6rem .7rem; cursor: pointer;
}
.burger span { display: block; width: 22px; height: 2px; background: var(--chalk); margin: 4px 0; transition: .2s var(--ease); }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
  .burger { display: block; }
  .nav {
    position: absolute; inset: 100% 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bitumen);
    padding: .5rem 1.25rem 1.25rem;
    display: none;
  }
  .nav[data-open="true"] { display: flex; }
  .nav a { color: var(--concrete); padding: .9rem 0; border-bottom: 1px solid rgba(255,255,255,.12); }
  .nav a:hover, .nav a[aria-current="page"] { color: var(--gold-hi); border-bottom-color: rgba(255,255,255,.12); }
  .nav .btn { margin-top: 1rem; color: var(--bitumen); }
}

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

.hero {
  position: relative;
  background: var(--bitumen);
  color: var(--concrete);
  overflow: hidden;
  isolation: isolate;
}
.hero__art { position: absolute; inset: 0; z-index: -1; opacity: .85; }
.hero__art svg { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(75deg, rgba(22,25,28,.96) 18%, rgba(22,25,28,.72) 52%, rgba(22,25,28,.35) 100%);
}
.hero__in { padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(3rem, 6vw, 4.5rem); }
.hero h1 { color: var(--chalk); margin-bottom: .35em; }
.hero h1 em { font-style: normal; color: var(--gold-hi); }
.hero .lede { color: #c9cfcc; max-width: 46ch; }
.hero .btn-row { margin-top: 2rem; }

.hero__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  background: rgba(255,255,255,.14);
  border-top: 1px solid rgba(255,255,255,.14);
}
.hero__stats div { background: var(--bitumen); padding: 1.1rem 0 1.2rem; }
.hero__stats dt {
  font-family: var(--f-mono); font-size: .68rem; letter-spacing: .16em;
  text-transform: uppercase; color: #8e9995; margin-bottom: .3rem;
}
.hero__stats dd {
  margin: 0; font-family: var(--f-display); font-weight: 700;
  font-size: 1.24rem; text-transform: uppercase; color: var(--chalk); line-height: 1.1;
}

/* Signature: the line being laid */
.laid-line {
  stroke-dasharray: 800;
  stroke-dashoffset: 800;
  animation: lay 2.4s .25s var(--ease) forwards;
}
@keyframes lay { to { stroke-dashoffset: 0; } }

@supports not (-webkit-text-stroke: 2px #000) {
  .step__no { color: var(--gold); }
}

/* --- Sections ------------------------------------------------------------ */

.band { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.band--dark { background: var(--bitumen); color: var(--concrete); }
.band--dark h2, .band--dark h3 { color: var(--chalk); }
.band--dark p { color: #b9c1be; }
.band--green { background: var(--imperial); color: var(--chalk); }
.band--green h2 { color: var(--chalk); }
.band--green p { color: #cfe3d9; }
.band--tint { background: var(--concrete-2); }

.band__head { max-width: 60ch; margin-bottom: clamp(2rem, 4vw, 3rem); }

/* --- Services ------------------------------------------------------------ */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}
.card {
  background: var(--chalk);
  border: 1px solid var(--concrete-2);
  border-top: 5px solid var(--imperial);
  border-radius: var(--r);
  padding: 1.6rem 1.5rem 1.7rem;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-top-color .2s var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(22,25,28,.11); border-top-color: var(--gold); }
.card__ico { width: 52px; height: 52px; margin-bottom: 1.1rem; }
.card h3 { margin-bottom: .5rem; }
.card p { margin-bottom: 0; font-size: .98rem; color: #4a514f; }
.card ul { margin: .9rem 0 0; padding: 0; list-style: none; }
.card li {
  font-family: var(--f-mono); font-size: .8rem; color: #4a514f;
  padding-left: 1.1rem; position: relative; margin-bottom: .35rem;
}
.card li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 7px; height: 3px; background: var(--gold);
}

/* --- Process (stencilled bay numbers) ------------------------------------ */

.steps { display: grid; gap: 1px; background: rgba(255,255,255,.16); }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { background: var(--bitumen); padding: 1.8rem 1.4rem 2rem; }
.step__no {
  font-family: var(--f-display);
  font-size: 3.6rem; font-weight: 800; line-height: .8;
  color: transparent;
  -webkit-text-stroke: 2px var(--gold);
  margin-bottom: 1rem;
}
.step h3 { font-size: 1.22rem; margin-bottom: .45rem; }
.step p { font-size: .95rem; margin: 0; }

/* --- Spec list ----------------------------------------------------------- */

.spec { list-style: none; margin: 0; padding: 0; }
.spec li {
  display: grid; grid-template-columns: minmax(0, 15ch) 1fr;
  gap: 1.25rem;
  padding: .95rem 0;
  border-top: 1px solid rgba(255,255,255,.16);
  font-size: .98rem;
}
.spec li:last-child { border-bottom: 1px solid rgba(255,255,255,.16); }
.spec dt, .spec b {
  font-family: var(--f-mono); font-size: .74rem; letter-spacing: .13em;
  text-transform: uppercase; color: var(--gold-hi); font-weight: 500; padding-top: .2rem;
}
.band--dark .spec span { color: #b9c1be; }

/* --- Split --------------------------------------------------------------- */

.split { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: 1.05fr .95fr; } }
.split--mid { align-items: center; }

/* --- Areas --------------------------------------------------------------- */

.areas { display: flex; flex-wrap: wrap; gap: .6rem; margin: 0; padding: 0; list-style: none; }
.areas li a, .areas li span {
  display: block;
  font-family: var(--f-mono); font-size: .82rem; letter-spacing: .04em;
  padding: .5rem .9rem;
  border: 1px solid var(--concrete-2);
  background: var(--chalk);
  border-radius: var(--r);
  text-decoration: none; color: var(--bitumen);
}
.areas li a:hover { border-color: var(--imperial); color: var(--imperial); }
.band--dark .areas li a, .band--dark .areas li span {
  background: transparent; border-color: rgba(255,255,255,.22); color: var(--concrete);
}
.band--dark .areas li a:hover { border-color: var(--gold-hi); color: var(--gold-hi); }

/* --- FAQ ----------------------------------------------------------------- */

.faq { border-top: 2px solid var(--bitumen); max-width: 78ch; }
.faq details { border-bottom: 1px solid var(--concrete-2); }
.faq summary {
  cursor: pointer; list-style: none;
  font-family: var(--f-display); font-weight: 700; font-size: 1.22rem;
  text-transform: uppercase; letter-spacing: .01em;
  padding: 1.15rem 2.5rem 1.15rem 0;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: .4rem; top: 1.55rem;
  width: 14px; height: 3px; background: var(--imperial);
  transition: transform .2s var(--ease);
}
.faq summary::before {
  content: ""; position: absolute; right: .95rem; top: 1.05rem;
  width: 3px; height: 14px; background: var(--imperial);
  transition: transform .2s var(--ease), opacity .2s var(--ease);
}
.faq details[open] summary::before { opacity: 0; transform: rotate(90deg); }
.faq details p { padding-bottom: .6rem; font-size: 1rem; }

/* --- Form ---------------------------------------------------------------- */

.form { display: grid; gap: 1.05rem; }
.field { display: grid; gap: .4rem; }
.field label {
  font-family: var(--f-mono); font-size: .74rem; letter-spacing: .13em;
  text-transform: uppercase; font-weight: 500;
}
.field input, .field select, .field textarea {
  font-family: var(--f-body); font-size: 1rem;
  padding: .8rem .9rem;
  border: 1px solid #b9beba;
  border-radius: var(--r);
  background: var(--chalk);
  color: var(--bitumen);
  width: 100%;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--imperial); }
.field--half { display: grid; gap: 1.05rem; }
@media (min-width: 620px) { .field--half { grid-template-columns: 1fr 1fr; } }
.hp { position: absolute; left: -9999px; }
.form small { font-size: .85rem; color: var(--slate); }

.contact-card {
  background: var(--chalk);
  border: 1px solid var(--concrete-2);
  border-left: 5px solid var(--gold);
  border-radius: var(--r);
  padding: 1.6rem;
}
.contact-card dl { margin: 0; display: grid; gap: 1rem; }
.contact-card dt {
  font-family: var(--f-mono); font-size: .72rem; letter-spacing: .13em;
  text-transform: uppercase; color: var(--slate); margin-bottom: .15rem;
}
.contact-card dd { margin: 0; font-size: 1.05rem; font-weight: 500; }
.contact-card a { font-weight: 600; }

/* --- CTA band ------------------------------------------------------------ */

.cta { text-align: center; }
.cta h2 { margin-bottom: .35em; }
.cta p { margin-inline: auto; }
.cta .btn-row { justify-content: center; margin-top: 1.8rem; }

/* --- Footer -------------------------------------------------------------- */

.foot { background: var(--bitumen); color: #9aa4a0; padding: 3.5rem 0 2rem; font-size: .94rem; }
.foot a { color: var(--concrete); text-decoration: none; }
.foot a:hover { color: var(--gold-hi); text-decoration: underline; }
.foot__grid { display: grid; gap: 2.2rem; }
@media (min-width: 760px) { .foot__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.foot h4 {
  font-family: var(--f-mono); font-size: .72rem; letter-spacing: .16em;
  color: var(--gold-hi); font-weight: 500; margin-bottom: 1rem; text-transform: uppercase;
}
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin-bottom: .55rem; }
.foot .brand__name { color: var(--chalk); }
.foot__base {
  margin-top: 2.8rem; padding-top: 1.4rem;
  border-top: 1px solid rgba(255,255,255,.14);
  display: flex; flex-wrap: wrap; gap: .8rem 1.6rem; justify-content: space-between;
  font-family: var(--f-mono); font-size: .74rem; letter-spacing: .05em;
}

/* --- Work gallery -------------------------------------------------------- */

.work {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}
.work figure {
  margin: 0;
  background: var(--chalk);
  border: 1px solid var(--concrete-2);
  border-top: 5px solid var(--imperial);
  border-radius: var(--r);
  overflow: hidden;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-top-color .2s var(--ease);
}
.work figure:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(22,25,28,.11); border-top-color: var(--gold); }
.work a { display: block; }
.work img { width: 100%; height: 250px; object-fit: cover; background: var(--bitumen); }
.work figcaption { padding: 1rem 1.15rem 1.25rem; font-size: .95rem; color: #4a514f; }
.work figcaption b {
  display: block;
  font-family: var(--f-display);
  font-size: 1.12rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .01em;
  color: var(--bitumen);
  margin-bottom: .25rem;
}
.work__loc {
  display: block;
  font-family: var(--f-mono); font-size: .7rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--imperial);
  margin-bottom: .45rem;
}
.work--strip img { height: 220px; }
@media (min-width: 900px) { .work--strip { grid-template-columns: repeat(3, 1fr); } }

/* --- Utility ------------------------------------------------------------- */

.crumbs {
  font-family: var(--f-mono); font-size: .74rem; letter-spacing: .1em;
  text-transform: uppercase; padding: 1.1rem 0; color: var(--slate);
}
.crumbs a { color: var(--slate); }
.crumbs a:hover { color: var(--imperial); }

.page-head { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(2rem, 4vw, 3rem); }
.page-head h1 { font-size: clamp(2.4rem, 6.5vw, 4.4rem); margin-bottom: .3em; }

.rule { height: 5px; background: var(--gold); width: 64px; margin: 0 0 1.6rem; }

.prose h2 { margin-top: 2.4rem; }
.prose h3 { margin-top: 1.8rem; }
.prose ul { padding-left: 1.1rem; max-width: 68ch; }
.prose li { margin-bottom: .5rem; }

.tag {
  display: inline-block; font-family: var(--f-mono); font-size: .68rem;
  letter-spacing: .14em; text-transform: uppercase;
  background: var(--gold-hi); color: var(--bitumen);
  padding: .3rem .6rem; border-radius: 2px; font-weight: 500;
}

.reveal { opacity: 0; transform: translateY(18px); }
.reveal.is-in { opacity: 1; transform: none; transition: opacity .6s var(--ease), transform .6s var(--ease); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .laid-line { stroke-dashoffset: 0; }
  .reveal { opacity: 1; transform: none; }
}
