/* Coppervein: slate ink, aged copper, warm paper. H5 hard split. */

:root {
  --ink: #1A1F24;
  --ink-soft: #252B32;
  --copper: #B8733B;
  --copper-deep: #8C5427;
  --copper-soft: #D4A06A;
  --paper: #F3ECE0;
  --paper-deep: #E7DDD0;
  --muted: #6B6560;
  --stroke: rgba(26, 31, 36, 0.08);
  --elev: 0 20px 40px rgba(0, 0, 0, 0.06);
  --elev-dark: 0 18px 40px rgba(0, 0, 0, 0.28);
  --font-display: "Barlow", system-ui, sans-serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
  --wrap: min(1120px, calc(100% - 2rem));
  --radius: 16px;
  --pill: 999px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

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

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0;
  overflow: visible;
  padding-bottom: 0.04em;
}
p { margin: 0; }
.wrap { width: var(--wrap); margin-inline: auto; }

.skip {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 80;
  background: var(--ink);
  color: var(--paper);
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  font-weight: 600;
  transform: translateY(-220%);
}
.skip:focus-visible { transform: none; outline: 2px solid var(--copper); outline-offset: 2px; }

.demo-notice {
  position: relative;
  z-index: 60;
  background: var(--ink);
  color: rgba(243, 236, 224, 0.88);
  font-size: 13px;
  text-align: center;
  padding: 9px 16px;
  line-height: 1.45;
}
.demo-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 7px;
  margin-right: 8px;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  white-space: nowrap;
  vertical-align: 1px;
}
.demo-notice a {
  color: var(--copper-soft);
  font-weight: 600;
  margin-left: 0.35em;
  white-space: nowrap;
}
.demo-notice a:hover { text-decoration: underline; }

.status-bar {
  background: var(--ink-soft);
  color: rgba(243, 236, 224, 0.78);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-bottom: 1px solid rgba(184, 115, 59, 0.35);
}
.status-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: center;
  min-height: 2.4rem;
  padding: 0.45rem 0;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--pill);
  background: rgba(184, 115, 59, 0.18);
  color: var(--copper-soft);
  border: 1px solid rgba(184, 115, 59, 0.35);
}
.status-pill i {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #6FCF97;
  box-shadow: 0 0 0 3px rgba(111, 207, 151, 0.25);
}

.eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper);
}
.section-head {
  max-width: 34rem;
  margin-bottom: 1.25rem;
}
.section-head h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  margin-bottom: 0.35rem;
}
.section-head.light .eyebrow { color: var(--copper-soft); }
.section-head.light h2 { color: var(--paper); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.78rem 1.2rem;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.btn-copper {
  background: var(--copper);
  color: #fff8f0;
  box-shadow: 0 12px 28px rgba(184, 115, 59, 0.3);
}
.btn-copper:hover {
  background: var(--copper-deep);
  box-shadow: 0 16px 32px rgba(140, 84, 39, 0.34);
}
.btn-ghost {
  background: transparent;
  border-color: rgba(243, 236, 224, 0.35);
  color: var(--paper);
}
.btn-ghost:hover {
  background: rgba(243, 236, 224, 0.08);
  border-color: rgba(243, 236, 224, 0.5);
}
.btn-ghost-dark {
  background: #fff;
  border-color: var(--stroke);
  color: var(--ink);
  box-shadow: var(--elev);
}
.btn-lift:hover { transform: translateY(-2px); }
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.2rem;
}

/* Nav N2 */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(243, 236, 224, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--stroke);
}
.nav-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 3.75rem;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-right: auto;
}
.nav-logo span { color: var(--copper); font-weight: 700; }
.nav-links { display: flex; gap: 1.05rem; }
.nav-links a {
  font-size: 0.9rem;
  font-weight: 650;
  color: var(--muted);
}
.nav-links a:hover { color: var(--ink); }
.nav-cta { padding: 0.5rem 0.95rem; font-size: 0.82rem; }
.nav-drawer {
  display: none;
  flex-direction: column;
  gap: 0.8rem;
  padding: 0.35rem var(--wrap) 1.1rem;
  width: min(1120px, 100%);
  margin-inline: auto;
}
.nav-drawer a { font-weight: 650; color: var(--ink); }
.nav-drawer-phone { color: var(--copper) !important; }
.nav-drawer-cta { align-self: flex-start; }
details.nav-menu[open] + .nav-drawer { display: flex; }
.nav .nav-toggle-bars span { background: var(--ink); }
@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .status-hide-sm { display: none; }
}

/* H5 hard 50/50 split */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: min(82vh, 680px);
  background: var(--ink);
  color: var(--paper);
}
.hero-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem clamp(1.25rem, 4vw, 3.5rem);
  background:
    linear-gradient(145deg, rgba(184, 115, 59, 0.16), transparent 45%),
    var(--ink);
}
.hero .eyebrow { color: var(--copper-soft); }
.hero h1 {
  font-size: clamp(2.3rem, 4.6vw, 3.5rem);
  margin-bottom: 0.7rem;
  max-width: 14ch;
}
.hero .lead {
  max-width: 38ch;
  color: rgba(243, 236, 224, 0.72);
  font-size: 1.05rem;
}
.hero-photo {
  margin: 0;
  min-height: 100%;
  background: var(--ink-soft);
  border-left: 3px solid var(--copper);
}
.hero-photo img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  object-position: center 30%;
  filter: contrast(1.05) saturate(0.92);
}

/* Job masonry C4 */
.jobs {
  padding: 3rem 0 2.85rem;
  background: var(--paper-deep);
}
.job-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.1rem;
}
.job-filter {
  appearance: none;
  border: 1px solid var(--stroke);
  background: #fff;
  color: var(--muted);
  padding: 0.5rem 0.95rem;
  border-radius: var(--pill);
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--elev);
}
.job-filter.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.job-masonry {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}
.job-card {
  padding: 1.2rem 1.15rem 1.25rem;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--stroke);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.job-card.span-2 { grid-column: span 2; }
.job-card.is-dim {
  opacity: 0.28;
  transform: scale(0.99);
  pointer-events: none;
}
.job-tag {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 0.4rem;
}
.job-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.35rem;
}
.job-card p { color: var(--muted); font-size: 0.95rem; }
.job-meta {
  margin-top: 0.85rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink);
}

/* Run slider on dark */
.run {
  padding: 3rem 0;
  background:
    radial-gradient(ellipse 40% 50% at 100% 0%, rgba(184, 115, 59, 0.18), transparent 55%),
    var(--ink);
  color: var(--paper);
}
.run-board {
  max-width: 40rem;
  padding: 1.35rem 1.25rem;
  border-radius: var(--radius);
  background: var(--ink-soft);
  border: 1px solid rgba(243, 236, 224, 0.08);
  box-shadow: var(--elev-dark);
}
.run-slider-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--copper-soft);
  margin-bottom: 0.65rem;
}
.run-range {
  width: 100%;
  accent-color: var(--copper);
  margin-bottom: 0.45rem;
}
.run-stops {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: rgba(243, 236, 224, 0.45);
  margin-bottom: 1.1rem;
}
.run-panel {
  padding-top: 0.85rem;
  border-top: 1px solid rgba(243, 236, 224, 0.1);
}
.run-kicker {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper-soft);
  margin-bottom: 0.3rem;
}
.run-panel h3 {
  font-size: 1.4rem;
  margin-bottom: 0.4rem;
}
.run-panel p {
  color: rgba(243, 236, 224, 0.7);
  max-width: 42ch;
}

/* Tickets */
.tickets {
  padding: 3rem 0;
  background: var(--paper);
}
.ticket-stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}
.ticket {
  padding: 1.3rem 1.2rem;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--stroke);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
  border-top: 3px solid var(--copper);
}
.ticket-id {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--copper);
  margin-bottom: 0.55rem;
}
.ticket blockquote {
  margin: 0 0 0.85rem;
  font-size: 1.05rem;
  color: var(--ink);
}
.ticket-meta {
  font-size: 0.8rem;
  font-weight: 650;
  color: var(--muted);
}

/* E2 split photo + form */
.dispatch {
  background: var(--paper-deep);
  border-top: 1px solid var(--stroke);
}
.dispatch-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: min(70vh, 620px);
}
.dispatch-photo {
  margin: 0;
  position: relative;
  background: var(--ink);
  min-height: 320px;
}
.dispatch-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.04) saturate(0.9) brightness(0.85);
}
.dispatch-photo figcaption {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  margin: 0;
  padding: 0.4rem 0.75rem;
  border-radius: var(--pill);
  background: rgba(26, 31, 36, 0.8);
  border: 1px solid rgba(243, 236, 224, 0.2);
  color: var(--paper);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.dispatch-panel {
  padding: 2.5rem clamp(1.25rem, 4vw, 2.75rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.dispatch-panel h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin-bottom: 0.45rem;
}
.dispatch-panel > p {
  color: var(--muted);
  margin-bottom: 1.1rem;
  max-width: 36ch;
}

.dispatch-form {
  padding: 1.2rem 1.1rem 1.25rem;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--stroke);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
  display: grid;
  gap: 0.45rem;
}
.dispatch-progress {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 0.55rem;
}
.dot {
  width: 1.75rem;
  height: 4px;
  border-radius: var(--pill);
  background: rgba(26, 31, 36, 0.12);
}
.dot.is-active { background: var(--copper); }
.panel {
  margin: 0;
  padding: 0;
  border: none;
  display: none;
  gap: 0.4rem;
}
.panel.is-active { display: grid; }
.panel legend {
  padding: 0;
  margin-bottom: 0.55rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
}
.chip {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.68rem 0.85rem;
  border-radius: var(--pill);
  border: 1px solid var(--stroke);
  background: var(--paper);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: var(--elev);
}
.chip:has(input:checked) {
  border-color: rgba(184, 115, 59, 0.45);
  background: rgba(184, 115, 59, 0.1);
}
.chip input { accent-color: var(--copper); }
.nav-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.45rem;
}
.dispatch-phone {
  margin-top: 1rem;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
}
.dispatch-phone a { color: var(--copper); }

.foot {
  padding: 1.35rem 0 1.75rem;
  background: var(--ink);
  color: rgba(243, 236, 224, 0.65);
}
.foot-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: start;
}
.foot-brand {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--paper);
  margin: 0 0 0.35rem;
}
.foot-note { margin: 0; font-size: 0.78rem; max-width: 46ch; }
.foot a {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--copper-soft);
}

@media (prefers-reduced-motion: reduce) {
  .btn-lift:hover,
  .job-card.is-dim { transform: none; }
}

@media (max-width: 900px) {
  .hero,
  .dispatch-grid,
  .ticket-stack,
  .foot-row {
    grid-template-columns: 1fr;
  }
  .hero-photo { border-left: 0; border-top: 3px solid var(--copper); }
  .hero-photo img { min-height: 260px; }
  .job-masonry { grid-template-columns: 1fr 1fr; }
  .job-card.span-2 { grid-column: span 2; }
  .btn-row { flex-direction: column; align-items: stretch; }
  .btn-row .btn { width: 100%; }
}

@media (max-width: 560px) {
  .job-masonry { grid-template-columns: 1fr; }
  .job-card.span-2 { grid-column: span 1; }
}


/* --- Accessibility baseline (Web Interface Guidelines) --- */
.skip-link {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 1000;
  padding: 10px 14px;
  background: #111;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  border-radius: 6px;
  transform: translateY(-200%);
}
.skip-link:focus { outline: none; }
.skip-link:focus-visible {
  transform: translateY(0);
  outline: 2px solid currentColor;
  outline-offset: 2px;
}
a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}
[id] {
  scroll-margin-top: calc(5.5rem + env(safe-area-inset-top, 0px));
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Safe-area gutters on sticky chrome; contain scroll chaining in drawers/overlays */
.nav, .nav-min, .masthead, .bar {
  padding-left: max(0px, env(safe-area-inset-left, 0px));
  padding-right: max(0px, env(safe-area-inset-right, 0px));
}
.nav-drawer {
  overscroll-behavior: contain;
}

/* --- Web Interface Guidelines extras --- */
a, button, summary, input, select, textarea, label, [role="button"], [role="tab"] {
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0.08);
}
h1, h2, h3 { text-wrap: pretty; }
