:root {
  --paper: #f3ead6;
  --paper-deep: #eadfc4;
  --ink: #26314f;
  --ink-soft: #5d6688;
  --blue: #4d6fb0;
  --blue-deep: #384f85;
  --sand: #dc9e4c;
  --line: #cdbfa0;

  --display: 'Silkscreen', 'IBM Plex Mono', monospace;
  --body: 'IBM Plex Sans', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;

  --step: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-padding-top: 66px;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  line-height: 1.6;
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

a {
  color: inherit;
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  margin: 0 0 18px;
  line-height: 1.35;
}

h1 {
  font-size: clamp(1.7rem, 4vw, 2.6rem);
}

h2 {
  font-size: clamp(1.3rem, 2.6vw, 1.9rem);
}

h3 {
  font-size: 0.95rem;
  margin-bottom: 10px;
}

p {
  margin: 0 0 16px;
  color: var(--ink);
}

.eyebrow {
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  margin-bottom: 12px;
}

.section-lead {
  max-width: 600px;
  color: var(--ink-soft);
}

.pixel-corner {
  clip-path: polygon(
    0 var(--step), var(--step) var(--step), var(--step) 0,
    calc(100% - var(--step)) 0, calc(100% - var(--step)) var(--step), 100% var(--step),
    100% calc(100% - var(--step)), calc(100% - var(--step)) calc(100% - var(--step)), calc(100% - var(--step)) 100%,
    var(--step) 100%, var(--step) calc(100% - var(--step)), 0 calc(100% - var(--step))
  );
}

.nav-toggle {
  display: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--paper);
  border-bottom: 2px solid var(--ink);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--display);
  font-size: 16px;
  text-decoration: none;
  color: var(--ink);
}

.wordmark.small {
  font-size: 14px;
  margin: 0 0 8px;
}

.brand-mark {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.brand-mark-frame {
  fill: var(--ink);
}

.brand-mark-bg {
  fill: var(--paper);
}

.brand-mark-node {
  fill: var(--ink);
}

.brand-mark-accent {
  fill: var(--blue) !important;
}

.brand-mark-small {
  width: 16px;
  height: 16px;
}

.site-nav {
  display: flex;
  gap: 8px;
  font-family: var(--mono);
  font-size: 13px;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  padding: 8px 10px;
  transition: color 0.15s ease, background 0.15s ease;
}

.site-nav a:hover {
  color: var(--ink);
  background: var(--paper-deep);
}

.site-nav a.active {
  color: var(--ink);
  background: var(--paper-deep);
  box-shadow: inset 0 -2px 0 var(--blue-deep);
}

a:focus-visible,
.nav-burger:focus-visible {
  outline: 2px solid var(--blue-deep);
  outline-offset: 2px;
}

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.nav-burger span {
  width: 22px;
  height: 2px;
  background: var(--ink);
}

@media (max-width: 720px) {
  .nav-burger {
    display: flex;
  }
  .site-nav {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--paper);
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    border-bottom: 2px solid var(--ink);
    transition: max-height 0.2s ease;
  }
  .site-nav a {
    padding: 14px 24px;
    border-top: 1px solid var(--line);
  }
  .nav-toggle:checked ~ .site-header .site-nav {
    max-height: 280px;
  }
}

.btn {
  display: inline-block;
  padding: 12px 20px;
  font-size: 13px;
  text-decoration: none;
  font-family: var(--mono);
  font-weight: 500;
  border: 2px solid var(--ink);
  clip-path: polygon(
    0 6px, 6px 6px, 6px 0,
    calc(100% - 6px) 0, calc(100% - 6px) 6px, 100% 6px,
    100% calc(100% - 6px), calc(100% - 6px) calc(100% - 6px), calc(100% - 6px) 100%,
    6px 100%, 6px calc(100% - 6px), 0 calc(100% - 6px)
  );
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.btn:active {
  transform: translate(4px, 4px);
  box-shadow: 0 0 0 var(--ink);
}

.btn-primary {
  background: var(--blue-deep);
  color: var(--paper);
}

.btn-ghost {
  background: var(--paper);
  color: var(--ink);
}

.hero {
  padding: 72px 0 0;
}

.hero-sub {
  max-width: 540px;
  color: var(--ink-soft);
  font-size: 1.02rem;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 26px;
  flex-wrap: wrap;
}

.skyline {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 46px;
  margin-top: 56px;
  padding: 0 24px;
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
}

.skyline span {
  flex: 1;
  background: var(--blue);
}

.skyline span:nth-child(3n) {
  background: var(--sand);
}

.skyline span:nth-child(1) { height: 60%; }
.skyline span:nth-child(2) { height: 100%; }
.skyline span:nth-child(3) { height: 40%; }
.skyline span:nth-child(4) { height: 80%; }
.skyline span:nth-child(5) { height: 30%; }
.skyline span:nth-child(6) { height: 55%; }
.skyline span:nth-child(7) { height: 90%; }
.skyline span:nth-child(8) { height: 45%; }
.skyline span:nth-child(9) { height: 70%; }
.skyline span:nth-child(10) { height: 35%; }
.skyline span:nth-child(11) { height: 100%; }
.skyline span:nth-child(12) { height: 50%; }
.skyline span:nth-child(13) { height: 65%; }
.skyline span:nth-child(14) { height: 85%; }
.skyline span:nth-child(15) { height: 40%; }
.skyline span:nth-child(16) { height: 60%; }

.network {
  padding: 60px 0 90px;
  border-top: 2px solid var(--ink);
  margin-top: 56px;
}

.transit-map {
  margin-top: 40px;
}

.transit-map svg {
  width: 100%;
  height: auto;
  display: block;
}

.tm-line {
  stroke: var(--ink-soft);
  stroke-width: 3;
}

.tm-backbone {
  stroke: var(--sand);
  stroke-width: 3;
  stroke-dasharray: 8 6;
}

.tm-backbone-label {
  font-family: var(--mono);
  font-size: 12px;
  fill: var(--sand);
  letter-spacing: 0.04em;
}

.tm-stop rect {
  fill: var(--blue);
  stroke: var(--ink);
  stroke-width: 2;
}

.tm-name {
  font-family: var(--body);
  font-size: 17px;
  fill: var(--ink);
  font-weight: 600;
}

.tm-code {
  font-family: var(--mono);
  font-size: 11px;
  fill: var(--ink-soft);
  letter-spacing: 0.04em;
}

.tm-city {
  font-family: var(--display);
  font-size: 12px;
  fill: var(--ink-soft);
  letter-spacing: 0.06em;
}

.transit-map-mobile {
  display: none;
  margin-top: 32px;
}

@media (max-width: 640px) {
  .transit-map {
    display: none;
  }
  .transit-map-mobile {
    display: block;
  }
}

.tmm-group ul {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 3px solid var(--blue);
}

.tmm-group li {
  padding: 8px 0 8px 16px;
  font-size: 15px;
}

.tmm-city {
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  margin-bottom: 6px;
}

.tmm-code {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-soft);
  margin-right: 8px;
}

.tmm-backbone {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--sand);
  text-align: center;
  margin: 14px 0;
}

.locations {
  padding: 60px 0 90px;
  border-top: 2px solid var(--ink);
}

.location-grid {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.location-card {
  background: #fff;
  border: 2px solid var(--ink);
  padding: 26px;
}

.loc-icon {
  width: 34px;
  height: 34px;
  display: block;
  margin-bottom: 14px;
}

.loc-icon rect {
  fill: var(--ink);
}

.loc-icon-accent {
  fill: var(--blue) !important;
}

.loc-icon-stroke {
  fill: none !important;
  stroke: var(--ink);
  stroke-width: 1;
}

.loc-code {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--blue-deep);
  margin-bottom: 8px;
}

.location-card p:not(.loc-code) {
  color: var(--ink-soft);
  font-size: 14.5px;
  margin-bottom: 0;
}

.location-card-note {
  display: flex;
  align-items: center;
  background: var(--paper-deep);
}

@media (max-width: 860px) {
  .location-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.features {
  padding: 60px 0 100px;
  border-top: 2px solid var(--ink);
}

.feature-grid {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.feature {
  background: #fff;
  border: 2px solid var(--ink);
  padding: 24px;
}

.feature-wide {
  grid-column: span 2;
  display: flex;
  align-items: center;
  gap: 28px;
}

.feature-icon {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
}

.feature-icon rect {
  fill: var(--ink);
}

.feature-wide-text h3,
.feature-wide-text p {
  margin-bottom: 0;
}

.feature-wide-text h3 {
  margin-bottom: 8px;
}

.feature-tilt-a {
  transform: rotate(-0.6deg);
}

.feature-tilt-b {
  transform: rotate(0.6deg);
}

.feature-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-bottom: 14px;
}

.dot-blue {
  background: var(--blue);
}

.dot-sand {
  background: var(--sand);
}

.feature p {
  color: var(--ink-soft);
  font-size: 14.5px;
  margin-bottom: 0;
}

@media (max-width: 720px) {
  .feature-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .feature-wide {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .feature-tilt-a, .feature-tilt-b {
    transform: none;
  }
}

.contact {
  padding: 60px 0 100px;
  border-top: 2px solid var(--ink);
}

.contact-actions {
  display: flex;
  gap: 14px;
  margin-top: 26px;
  flex-wrap: wrap;
}

.site-footer {
  border-top: 2px solid var(--ink);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-note {
  color: var(--ink-soft);
  font-size: 14px;
  max-width: 320px;
}

.footer-meta {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink-soft);
  text-align: right;
}

.footer-meta p {
  margin: 0 0 6px;
  color: var(--ink-soft);
}
