:root {
  --ink: #111923;
  --muted: #5d6874;
  --paper: #fbfcfd;
  --mist: #eef3f6;
  --line: #d7e0e6;
  --navy: #093557;
  --blue: #0b83bd;
  --orange: #f05a1a;
  --amber: #f4aa27;
  --steel: #374451;
  --green: #0c746a;
  --white: #ffffff;
  --shadow: 0 24px 60px rgba(14, 27, 39, .12);
  --rail: 116px;
  --radius: 8px;
  font-family: "Bahnschrift", "Aptos Display", "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(9, 53, 87, .035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(240, 90, 26, .025) 1px, transparent 1px),
    var(--paper);
  background-size: 64px 64px;
  letter-spacing: 0;
}

body.nav-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 100;
  transform: translateY(-140%);
  background: var(--ink);
  color: var(--white);
  padding: 10px 14px;
  border-radius: var(--radius);
}

.skip-link:focus {
  transform: translateY(0);
}

.layout {
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr);
  min-height: 100vh;
}

.rail {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-rows: auto 1fr auto;
  height: 100svh;
  padding: 18px 14px;
  border-right: 1px solid var(--line);
  background: rgba(251, 252, 253, .92);
  backdrop-filter: blur(18px);
}

.brand-mark {
  display: grid;
  gap: 10px;
  justify-items: center;
  color: var(--navy);
  font-weight: 800;
  font-size: 13px;
  line-height: 1;
}

.brand-mark img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  background: var(--white);
  border-radius: 50%;
  box-shadow: 0 10px 24px rgba(9, 53, 87, .12);
}

.menu-toggle {
  display: none;
}

.nav-list {
  align-self: center;
  display: grid;
  gap: 9px;
}

.nav-list a {
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 12px 7px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: var(--steel);
  font-weight: 700;
  font-size: 12px;
  line-height: 1.05;
  text-align: center;
}

.nav-list a span {
  font-family: "Cascadia Mono", Consolas, monospace;
  font-weight: 600;
  font-size: 10px;
  color: var(--orange);
}

.nav-list a:hover,
.nav-list a:focus-visible,
.nav-list a[aria-current="page"] {
  border-color: var(--line);
  background: var(--white);
  color: var(--navy);
  box-shadow: 0 10px 30px rgba(9, 53, 87, .08);
}

.rail-contact {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 42px;
  border-radius: 999px;
  color: var(--white);
  background: var(--orange);
  font-weight: 800;
  font-size: 13px;
}

.page {
  min-width: 0;
}

.hero {
  position: relative;
  min-height: 82svh;
  display: grid;
  align-items: end;
  padding: 36px;
  color: var(--white);
  overflow: hidden;
  background-image:
    linear-gradient(90deg, rgba(7, 18, 29, .86) 0%, rgba(7, 18, 29, .56) 42%, rgba(7, 18, 29, .08) 100%),
    url("hero-atelier.png");
  background-size: cover;
  background-position: center;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 9px;
  background: linear-gradient(90deg, var(--blue), var(--orange), var(--amber), var(--green));
}

.hero-inner {
  position: relative;
  max-width: 820px;
  z-index: 1;
}

.eyebrow,
.section-label,
.metric span,
.phase-num,
.micro-label {
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow {
  color: #ffd08a;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: 5.8rem;
  line-height: .9;
  letter-spacing: 0;
}

h2 {
  font-size: 3.2rem;
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  font-size: 1.35rem;
  line-height: 1.1;
  letter-spacing: 0;
}

p,
li {
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.62;
}

.hero p {
  max-width: 670px;
  color: rgba(255, 255, 255, .88);
  font-size: 1.2rem;
}

.hero-actions,
.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--white);
  font-weight: 800;
}

.button.light {
  border-color: rgba(255, 255, 255, .45);
  background: rgba(255, 255, 255, .12);
  color: var(--white);
}

.button.secondary {
  border-color: var(--line);
  background: var(--white);
  color: var(--ink);
}

.button.orange {
  border-color: var(--orange);
  background: var(--orange);
}

.section {
  padding: 78px 7vw;
}

.section.compact {
  padding-top: 48px;
  padding-bottom: 48px;
}

.section.blueprint {
  background: var(--mist);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section.dark {
  background: #101923;
  color: var(--white);
}

.section.dark p,
.section.dark li {
  color: rgba(255, 255, 255, .72);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  color: var(--orange);
}

.section-label::before {
  content: "";
  width: 36px;
  height: 2px;
  background: currentColor;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, .95fr);
  gap: 42px;
  align-items: start;
}

.lead {
  max-width: 780px;
  color: #33404c;
  font-size: 1.22rem;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.metric {
  min-height: 148px;
  padding: 20px;
  background: var(--white);
}

.metric strong {
  display: block;
  margin: 8px 0;
  color: var(--navy);
  font-size: 2rem;
  line-height: 1;
}

.metric span {
  color: var(--orange);
}

.metric p {
  margin: 0;
  font-size: .95rem;
}

.route-board {
  display: grid;
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.route-row {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 18px;
  background: var(--white);
}

.route-row strong {
  font-family: "Cascadia Mono", Consolas, monospace;
  color: var(--orange);
}

.route-row span:last-child {
  color: var(--muted);
  font-weight: 700;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.service-card,
.proof-card,
.contact-card,
.site-map-card {
  position: relative;
  min-height: 248px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 14px 34px rgba(17, 25, 35, .06);
}

.service-card::before,
.proof-card::before {
  content: "";
  position: absolute;
  left: 24px;
  top: 0;
  width: 62px;
  height: 5px;
  background: var(--accent, var(--blue));
}

.service-card h3,
.proof-card h3,
.contact-card h3,
.site-map-card h3 {
  margin-top: 32px;
}

.service-card ul,
.proof-card ul,
.check-list {
  margin: 18px 0 0;
  padding-left: 18px;
}

.service-card li,
.proof-card li,
.check-list li {
  margin-bottom: 8px;
}

.split-band {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 42px;
  align-items: center;
}

.image-slab {
  min-height: 420px;
  border-radius: var(--radius);
  background:
    linear-gradient(0deg, rgba(9, 53, 87, .22), rgba(9, 53, 87, .05)),
    url("hero-atelier.png");
  background-size: cover;
  background-position: 68% 50%;
  box-shadow: var(--shadow);
}

.phase-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .14);
}

.phase {
  min-height: 280px;
  padding: 22px;
  background: rgba(255, 255, 255, .045);
}

.phase-num {
  color: #ffb44a;
}

.phase h3 {
  margin-top: 48px;
  color: var(--white);
}

.page-hero {
  padding: 68px 7vw 54px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(9, 53, 87, .08), transparent 56%),
    var(--paper);
}

.page-hero .crumb {
  margin-bottom: 22px;
  color: var(--orange);
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.page-hero h1 {
  max-width: 940px;
  margin-bottom: 18px;
  color: var(--navy);
  font-size: 4.6rem;
  line-height: .96;
}

.page-hero p {
  max-width: 780px;
  color: #32404c;
  font-size: 1.18rem;
}

.trade-list {
  display: grid;
  gap: 26px;
}

.trade-item {
  display: grid;
  grid-template-columns: minmax(220px, .45fr) minmax(0, 1fr);
  gap: 34px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.trade-item:last-child {
  border-bottom: 0;
}

.trade-item h2 {
  font-size: 2.45rem;
  line-height: 1.03;
}

.trade-kicker {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 12px;
  padding: 6px 9px;
  border-left: 4px solid var(--accent, var(--blue));
  background: var(--mist);
  color: var(--navy);
  font-family: "Cascadia Mono", Consolas, monospace;
  font-weight: 600;
  font-size: 12px;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--steel);
  font-size: .92rem;
  font-weight: 700;
}

.proof-grid,
.contact-grid,
.site-map-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.proof-card {
  min-height: 300px;
}

.notice {
  padding: 22px;
  border-left: 5px solid var(--orange);
  background: #fff7ef;
  color: #693112;
}

.notice p {
  margin-bottom: 0;
  color: #693112;
}

.contact-grid {
  align-items: start;
  grid-template-columns: minmax(280px, .7fr) minmax(0, 1.3fr);
}

.contact-card {
  min-height: auto;
}

.contact-list {
  display: grid;
  gap: 18px;
}

.contact-line {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.contact-line:last-child {
  border-bottom: 0;
}

.contact-line span {
  display: block;
  margin-bottom: 5px;
  color: var(--orange);
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.contact-line strong,
.contact-line a {
  color: var(--navy);
  font-size: 1.05rem;
}

.contact-form {
  display: grid;
  gap: 16px;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field {
  display: grid;
  gap: 8px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  color: var(--steel);
  font-weight: 800;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  padding: 13px 14px;
}

.field textarea {
  min-height: 180px;
  resize: vertical;
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--green);
  font-weight: 700;
}

.site-map-card {
  min-height: 220px;
}

.site-map-card a {
  color: var(--navy);
  font-weight: 800;
}

.site-footer {
  padding: 34px 7vw;
  border-top: 1px solid var(--line);
  background: var(--white);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--navy);
  font-weight: 900;
}

.footer-brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 50%;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--muted);
  font-weight: 700;
}

@media (min-width: 1280px) {
  .section {
    padding-left: 8vw;
    padding-right: 8vw;
  }

  .page-hero {
    padding-left: 8vw;
    padding-right: 8vw;
  }
}

@media (max-width: 1180px) {
  .service-grid,
  .metrics,
  .phase-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .phase {
    min-height: 230px;
  }

  .proof-grid,
  .site-map-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .layout {
    display: block;
  }

  .rail {
    position: sticky;
    grid-template-columns: auto auto;
    grid-template-rows: auto;
    align-items: center;
    height: auto;
    min-height: 74px;
    padding: 10px 16px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .brand-mark {
    justify-items: start;
    grid-template-columns: auto auto;
    align-items: center;
  }

  .brand-mark img {
    width: 52px;
    height: 52px;
  }

  .menu-toggle {
    display: inline-flex;
    justify-self: end;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 0 13px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    color: var(--navy);
    font-weight: 800;
  }

  .menu-toggle span,
  .menu-toggle span::before,
  .menu-toggle span::after {
    display: block;
    width: 17px;
    height: 2px;
    background: currentColor;
  }

  .menu-toggle span {
    position: relative;
  }

  .menu-toggle span::before,
  .menu-toggle span::after {
    content: "";
    position: absolute;
    left: 0;
  }

  .menu-toggle span::before {
    top: -6px;
  }

  .menu-toggle span::after {
    top: 6px;
  }

  .nav-list {
    position: fixed;
    inset: 74px 0 auto 0;
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    padding: 1px;
    background: var(--line);
    border-bottom: 1px solid var(--line);
  }

  .nav-open .nav-list {
    display: grid;
  }

  .nav-list a {
    border-radius: 0;
    background: var(--white);
    min-height: 76px;
  }

  .rail-contact {
    display: none;
  }

  .hero {
    min-height: 80svh;
    padding: 26px;
    background-position: 62% 50%;
  }

  h1 {
    font-size: 4rem;
  }

  h2,
  .page-hero h1 {
    font-size: 3rem;
  }

  .intro-grid,
  .split-band,
  .trade-item,
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .section,
  .page-hero {
    padding-left: 22px;
    padding-right: 22px;
  }

  .hero {
    min-height: 78svh;
    padding: 22px;
  }

  h1 {
    font-size: 3.1rem;
  }

  h2,
  .page-hero h1 {
    font-size: 2.25rem;
  }

  .hero p,
  .lead,
  .page-hero p {
    font-size: 1.04rem;
  }

  .metrics,
  .service-grid,
  .phase-grid,
  .proof-grid,
  .site-map-grid,
  .field-grid {
    grid-template-columns: 1fr;
  }

  .route-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .service-card,
  .proof-card,
  .contact-card,
  .site-map-card {
    min-height: auto;
    padding: 20px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}
