:root {
  --atlas-paper: #f1ece2;
  --atlas-paper-deep: #e5ded1;
  --atlas-ink: #121820;
  --atlas-muted: #62666b;
  --atlas-blue: #315ae8;
  --atlas-red: #d4472f;
  --atlas-line: rgba(18, 24, 32, .18);
}

body[data-current-page="home"] {
  background: var(--atlas-paper);
}

body[data-current-page="home"] #nav {
  border-bottom: 1px solid rgba(18, 24, 32, .12);
  background: rgba(241, 236, 226, .91);
  box-shadow: none;
  backdrop-filter: blur(18px);
}

body[data-current-page="home"] #nav .nav-link { color: #565b60; }
body[data-current-page="home"] #nav .nav-link:hover,
body[data-current-page="home"] #nav .nav-link.active { color: var(--atlas-ink); }
body[data-current-page="home"] #nav .nav-link.active::after { background: var(--atlas-blue); }
body[data-current-page="home"] #nav .nav-search { border-color: rgba(18,24,32,.14); background: rgba(255,255,255,.58); }
body[data-current-page="home"] #nav .nav-search-input { color: var(--atlas-ink); }
body[data-current-page="home"] #nav .nav-search-input::placeholder { color: #8b8c88; }
body[data-current-page="home"] #nav .btn-ghost { border-color: var(--atlas-line); color: var(--atlas-ink); }
body[data-current-page="home"] #nav .menu-toggle { color: var(--atlas-ink); }
body[data-current-page="home"] .nav-brand-copy strong { color: var(--atlas-ink); }
body[data-current-page="home"] .nav-brand-copy small { color: #77766f; }

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-brand-copy {
  display: grid;
  line-height: 1;
}

.nav-brand-copy strong {
  color: #f4f1e9;
  font-size: 15px;
  letter-spacing: .08em;
}

.nav-brand-copy small {
  margin-top: 5px;
  color: #777e83;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 7px;
  letter-spacing: .2em;
}

.atlas-home {
  position: relative;
  z-index: 3;
  overflow: hidden;
  color: var(--atlas-ink);
  background:
    linear-gradient(90deg, transparent calc(50% - .5px), rgba(18,24,32,.035) 50%, transparent calc(50% + .5px)),
    var(--atlas-paper);
}

.atlas-home + .hero-section { display: none !important; }

.atlas-hero,
.atlas-routes,
.atlas-selection,
.atlas-tools,
.atlas-closing {
  width: min(1480px, 100%);
  margin: 0 auto;
  padding-inline: clamp(24px, 5vw, 82px);
}

.atlas-hero {
  padding-top: calc(var(--nav-h) + 42px);
}

.atlas-masthead {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
  padding-block: 14px;
  border-top: 1px solid var(--atlas-ink);
  border-bottom: 1px solid var(--atlas-line);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
  letter-spacing: .18em;
}

.atlas-masthead strong { font-size: 11px; }
.atlas-masthead span:nth-child(2) { color: var(--atlas-muted); }
.atlas-masthead span:last-child { justify-self: end; }

.atlas-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(430px, .95fr);
  gap: clamp(48px, 7vw, 116px);
  align-items: center;
  min-height: 760px;
  padding-block: clamp(52px, 7vw, 102px);
}

.atlas-eyebrow {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 0 0 25px;
  color: #5f6366;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
}

.atlas-eyebrow i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--atlas-red);
}

.atlas-hero-copy h1 {
  margin: 0;
  font-family: "STSong", "SimSun", "Songti SC", serif;
  font-size: clamp(66px, 7.4vw, 116px);
  font-weight: 900;
  line-height: .93;
  letter-spacing: -.075em;
}

.atlas-hero-copy h1 em {
  display: inline-block;
  margin-top: 13px;
  color: var(--atlas-blue);
  font-style: normal;
}

.atlas-lead {
  max-width: 610px;
  margin-top: 36px;
  color: #50555a;
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.9;
}

.atlas-search {
  max-width: 660px;
  margin-top: 42px;
}

.atlas-search > label {
  display: block;
  margin-bottom: 10px;
  color: #73746f;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.atlas-search > div {
  display: grid;
  grid-template-columns: 1fr auto;
  border-bottom: 2px solid var(--atlas-ink);
}

.atlas-search input {
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 15px 4px;
  color: var(--atlas-ink);
  background: transparent;
  font-size: 18px;
}

.atlas-search input::placeholder { color: #999890; }

.atlas-search button {
  border: 0;
  padding: 0 6px 0 24px;
  color: var(--atlas-ink);
  background: transparent;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.atlas-search button span { margin-left: 18px; color: var(--atlas-red); }

.atlas-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 20px;
  align-items: center;
  margin-top: 16px;
  color: #777872;
  font-size: 11px;
}

.atlas-quick span { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 8px; letter-spacing: .12em; }
.atlas-quick button { border: 0; padding: 0; color: #4c5053; background: transparent; cursor: pointer; }
.atlas-quick button:hover { color: var(--atlas-blue); }

.atlas-focus {
  position: relative;
  border: 1px solid var(--atlas-ink);
  background: #eee8dd;
  box-shadow: 17px 17px 0 var(--atlas-blue);
  transform: rotate(1deg);
}

.atlas-focus-number {
  padding: 14px 17px;
  border-bottom: 1px solid var(--atlas-line);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
  letter-spacing: .18em;
}

.atlas-focus-media {
  position: relative;
  aspect-ratio: 1.62;
  overflow: hidden;
  background: var(--atlas-paper-deep) url('/assets/icons/atlas-coupe.svg') center / cover no-repeat;
}

.atlas-focus-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(.15) saturate(.82);
}

.atlas-focus-stamp {
  position: absolute;
  top: 19px;
  right: 19px;
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border: 1px solid var(--atlas-ink);
  border-radius: 50%;
  color: var(--atlas-paper);
  background: var(--atlas-red);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 7px;
  line-height: 1.5;
  text-align: center;
  transform: rotate(9deg);
}

.atlas-focus-heading {
  display: grid;
  gap: 5px;
  padding: 24px 22px 18px;
  border-top: 1px solid var(--atlas-line);
}

.atlas-focus-heading small { color: var(--atlas-red); font-size: 9px; font-weight: 900; letter-spacing: .14em; }
.atlas-focus-heading strong { overflow: hidden; font-family: Georgia, "Times New Roman", serif; font-size: clamp(38px, 4vw, 62px); line-height: 1; letter-spacing: -.045em; text-overflow: ellipsis; white-space: nowrap; }

.atlas-focus-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--atlas-line);
}

.atlas-focus-metrics > div { min-width: 0; padding: 17px; border-right: 1px solid var(--atlas-line); }
.atlas-focus-metrics > div:last-child { border-right: 0; }
.atlas-focus-metrics span { display: block; color: #777873; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 7px; letter-spacing: .08em; }
.atlas-focus-metrics strong { display: inline-block; margin-top: 7px; font-size: 23px; }
.atlas-focus-metrics small { margin-left: 4px; color: #6c6f72; font-size: 8px; }

.atlas-focus-button {
  display: flex;
  justify-content: space-between;
  width: 100%;
  border: 0;
  border-top: 1px solid var(--atlas-ink);
  padding: 17px 20px;
  color: #fff;
  background: var(--atlas-ink);
  font-weight: 800;
  cursor: pointer;
}

.atlas-focus-button:hover { background: var(--atlas-blue); }

.atlas-stat-strip {
  display: grid;
  grid-template-columns: 1.05fr repeat(4, 1fr);
  margin-bottom: 15px;
  border-top: 1px solid var(--atlas-ink);
  border-bottom: 1px solid var(--atlas-ink);
}

.atlas-stat-strip > p,
.atlas-stat-strip > div {
  min-height: 105px;
  margin: 0;
  padding: 21px;
  border-right: 1px solid var(--atlas-line);
}

.atlas-stat-strip > p {
  color: #787872;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 8px;
  line-height: 1.65;
  letter-spacing: .15em;
}

.atlas-stat-strip > div:last-child { border-right: 0; }
.atlas-stat-strip span { display: block; font-family: Georgia, "Times New Roman", serif; font-size: clamp(24px, 2.3vw, 37px); font-weight: 800; }
.atlas-stat-strip small { display: block; margin-top: 7px; color: #777873; font-size: 10px; }

.atlas-routes,
.atlas-selection,
.atlas-tools {
  padding-top: clamp(100px, 11vw, 165px);
}

.atlas-section-title > span {
  display: block;
  margin-bottom: 22px;
  color: var(--atlas-red);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .16em;
}

.atlas-section-title h2 {
  max-width: 820px;
  margin: 0;
  font-family: "STSong", "SimSun", "Songti SC", serif;
  font-size: clamp(40px, 5.2vw, 76px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -.055em;
}

.atlas-route-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 57px;
  border-top: 1px solid var(--atlas-ink);
  border-left: 1px solid var(--atlas-ink);
}

.atlas-route {
  min-height: 300px;
  display: flex;
  flex-direction: column;
  border: 0;
  border-right: 1px solid var(--atlas-ink);
  border-bottom: 1px solid var(--atlas-ink);
  padding: clamp(25px, 3vw, 43px);
  color: var(--atlas-ink);
  text-align: left;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease;
}

.atlas-route:hover { z-index: 2; transform: translate(-7px, -7px); box-shadow: 7px 7px 0 var(--atlas-ink); }
.atlas-route > span { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 8px; letter-spacing: .14em; }
.atlas-route strong { max-width: 470px; margin-top: auto; font-family: "STSong", "SimSun", serif; font-size: clamp(30px, 3.6vw, 54px); line-height: 1.05; }
.atlas-route small { margin-top: 24px; font-size: 12px; font-weight: 800; }
.atlas-route-blue { color: #fff; background: var(--atlas-blue); }
.atlas-route-red { color: #fff; background: var(--atlas-red); }
.atlas-route-ink { color: #fff; background: var(--atlas-ink); }
.atlas-route-paper { background: #ddd5c8; }

.atlas-section-title-row {
  display: flex;
  justify-content: space-between;
  gap: 50px;
  align-items: flex-end;
}

.atlas-section-title-row > p {
  margin: 0 0 8px;
  color: #777873;
  font-size: 10px;
  line-height: 1.7;
}

.atlas-section-title-row > p i {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: #28a66f;
}

.atlas-car-list {
  margin-top: 56px;
  border-top: 1px solid var(--atlas-ink);
}

.atlas-car-list .home-car-card {
  display: grid;
  grid-template-columns: minmax(190px, .65fr) minmax(0, 1.65fr);
  border-bottom: 1px solid var(--atlas-ink);
  color: var(--atlas-ink);
  background: transparent;
  cursor: pointer;
  transition: background .25s ease;
}

.atlas-car-list .home-car-card:hover { background: rgba(255,255,255,.45); }

.atlas-car-list .home-car-image {
  position: relative;
  min-height: 230px;
  overflow: hidden;
  border-right: 1px solid var(--atlas-line);
  background: #e1d9cc url('/assets/icons/atlas-coupe.svg') center / cover no-repeat;
}

.atlas-car-list .home-car-image img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.12) saturate(.8); transition: transform .6s ease; }
.atlas-car-list .home-car-card:hover img { transform: scale(1.035); }
.atlas-car-list .home-car-image > span { position: absolute; top: 15px; left: 16px; padding: 5px 7px; color: #fff; background: var(--atlas-blue); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 8px; }
.atlas-car-list .home-car-image > small { position: absolute; right: 14px; bottom: 12px; padding: 5px 8px; color: #fff; background: var(--atlas-ink); font-size: 9px; }

.atlas-car-list .home-car-copy {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(230px, .85fr);
  grid-template-rows: auto 1fr;
  gap: 0 30px;
  padding: clamp(24px, 3vw, 43px);
}

.atlas-car-list .home-car-copy > p { grid-column: 1; margin: 0; color: var(--atlas-red); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 9px; font-weight: 800; letter-spacing: .08em; }
.atlas-car-list .home-car-copy h3 { grid-column: 1; align-self: end; margin: 7px 0 0; overflow: hidden; font-family: Georgia, "Times New Roman", serif; font-size: clamp(30px, 3vw, 48px); line-height: 1; letter-spacing: -.045em; text-overflow: ellipsis; white-space: nowrap; }
.atlas-car-list .home-car-copy > div { grid-column: 2; grid-row: 1 / 3; display: grid; grid-template-columns: repeat(3, 1fr); align-content: center; }
.atlas-car-list .home-car-copy > div span { padding: 12px; border-left: 1px solid var(--atlas-line); color: #777873; font-size: 8px; }
.atlas-car-list .home-car-copy > div b { display: block; margin-bottom: 4px; color: var(--atlas-ink); font-family: Georgia, "Times New Roman", serif; font-size: 19px; }
.atlas-car-list .home-car-copy footer { grid-column: 1 / 3; display: flex; justify-content: space-between; gap: 20px; margin-top: 23px; padding-top: 15px; border-top: 1px solid var(--atlas-line); }
.atlas-car-list .home-car-copy footer strong { font-size: 13px; }
.atlas-car-list .home-car-copy footer span { color: #686b6d; font-size: 11px; }

.atlas-car-skeleton {
  min-height: 230px;
  border-bottom: 1px solid var(--atlas-ink);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.62), transparent) 0 0 / 200% 100%;
  animation: atlas-loading 1.3s linear infinite;
}

@keyframes atlas-loading { to { background-position: -200% 0; } }

.atlas-view-all {
  display: flex;
  justify-content: space-between;
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--atlas-ink);
  padding: 21px 5px;
  color: var(--atlas-ink);
  background: transparent;
  font-weight: 900;
  cursor: pointer;
}

.atlas-view-all:hover { color: var(--atlas-blue); }

.atlas-tools {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(50px, 8vw, 130px);
  align-items: start;
}

.atlas-tool-list { border-top: 1px solid var(--atlas-ink); }
.atlas-tool-list button {
  width: 100%;
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 18px;
  align-items: center;
  border: 0;
  border-bottom: 1px solid var(--atlas-ink);
  padding: 28px 2px;
  color: var(--atlas-ink);
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.atlas-tool-list button:hover { color: var(--atlas-blue); }
.atlas-tool-list b { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 9px; }
.atlas-tool-list span { display: grid; gap: 6px; }
.atlas-tool-list strong { font-family: "STSong", "SimSun", serif; font-size: 26px; }
.atlas-tool-list small { color: #747571; font-size: 10px; }
.atlas-tool-list i { font-size: 18px; font-style: normal; }

.atlas-closing {
  position: relative;
  overflow: hidden;
  margin-top: clamp(110px, 13vw, 190px);
  padding-top: clamp(55px, 8vw, 100px);
  padding-bottom: clamp(75px, 10vw, 140px);
  color: #fff;
  background: var(--atlas-blue);
}

.atlas-closing::before {
  content: "";
  position: absolute;
  right: -9vw;
  width: 47vw;
  aspect-ratio: 1;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 50%;
  transform: translateY(-27%);
}

.atlas-closing > span { position: relative; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 9px; letter-spacing: .17em; }
.atlas-closing blockquote { position: relative; max-width: 1000px; margin: 30px 0 0; font-family: "STSong", "SimSun", serif; font-size: clamp(38px, 6vw, 86px); font-weight: 900; line-height: 1.08; letter-spacing: -.055em; }
.atlas-closing button { position: relative; border: 1px solid #fff; margin-top: 45px; padding: 16px 20px; color: #fff; background: transparent; font-weight: 800; cursor: pointer; }
.atlas-closing button:hover { color: var(--atlas-blue); background: #fff; }
.atlas-closing button span { margin-left: 24px; }

.home-load-error { padding: 40px 0; color: #6b6d6d; }

.site-footer {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(160px, .7fr) minmax(200px, .6fr) minmax(320px, 1.4fr);
  gap: 30px;
  align-items: start;
  padding: 34px clamp(24px, 5vw, 84px);
  border-top: 1px solid rgba(255,255,255,.1);
  color: #d9dddf;
  background: #090d0e;
}

.site-footer-brand { display: grid; gap: 7px; }
.site-footer-brand strong { color: #f2efe7; font-size: 20px; letter-spacing: .08em; }
.site-footer-brand span,
.site-footer small { color: #697176; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 8px; letter-spacing: .13em; }
.site-footer-links { display: flex; flex-wrap: wrap; gap: 14px 22px; }
.site-footer-links a { color: #a9afb3; font-size: 12px; text-decoration: none; }
.site-footer-links a:hover { color: #fff; }
.site-footer p { margin: 0; color: #787f84; font-size: 11px; line-height: 1.85; }
.site-footer small { grid-column: 1 / -1; }

@media (max-width: 1080px) {
  .atlas-hero-grid { grid-template-columns: 1fr; min-height: auto; }
  .atlas-hero-copy { max-width: 850px; }
  .atlas-focus { width: min(760px, 94%); margin-left: auto; }
  .atlas-tools { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  body[data-current-page="home"] #nav .nav-brand-copy { display: none; }
  body[data-current-page="home"] #nav .nav-links { background: rgba(241,236,226,.98); }
  body[data-current-page="home"] .bottom-nav { border-top-color: rgba(18,24,32,.12); background: rgba(241,236,226,.94); }
  body[data-current-page="home"] .bottom-nav .bn-item { color: #74746f; }
  body[data-current-page="home"] .bottom-nav .bn-item.active { color: var(--atlas-blue); }

  .atlas-hero,
  .atlas-routes,
  .atlas-selection,
  .atlas-tools,
  .atlas-closing { padding-inline: 18px; }

  .atlas-hero { padding-top: calc(var(--nav-h) + 24px); }
  .atlas-masthead { grid-template-columns: 1fr auto; }
  .atlas-masthead span:nth-child(2) { display: none; }
  .atlas-hero-grid { gap: 58px; padding-block: 45px 64px; }
  .atlas-hero-copy h1 { font-size: clamp(55px, 17vw, 74px); line-height: .96; }
  .atlas-lead { margin-top: 27px; font-size: 14px; line-height: 1.8; }
  .atlas-search { margin-top: 32px; }
  .atlas-search input { font-size: 16px; }
  .atlas-search button { padding-left: 12px; font-size: 11px; }
  .atlas-search button span { margin-left: 7px; }

  .atlas-focus { width: calc(100% - 11px); margin: 0; box-shadow: 10px 10px 0 var(--atlas-blue); transform: rotate(.5deg); }
  .atlas-focus-heading { padding: 18px; }
  .atlas-focus-heading strong { font-size: 35px; }
  .atlas-focus-metrics > div { padding: 13px 9px; }
  .atlas-focus-metrics strong { font-size: 18px; }

  .atlas-stat-strip { grid-template-columns: repeat(2, 1fr); }
  .atlas-stat-strip > p { display: none; }
  .atlas-stat-strip > div:nth-child(2) { border-right: 0; }
  .atlas-stat-strip > div { min-height: 92px; padding: 17px; border-bottom: 1px solid var(--atlas-line); }

  .atlas-routes,
  .atlas-selection,
  .atlas-tools { padding-top: 95px; }
  .atlas-section-title h2 { font-size: 40px; }
  .atlas-route-grid { grid-template-columns: 1fr; margin-top: 39px; }
  .atlas-route { min-height: 225px; }
  .atlas-route:hover { transform: none; box-shadow: none; }

  .atlas-section-title-row { align-items: flex-start; flex-direction: column; gap: 22px; }
  .atlas-car-list { margin-top: 36px; }
  .atlas-car-list .home-car-card { grid-template-columns: 1fr; }
  .atlas-car-list .home-car-image { min-height: 205px; border-right: 0; border-bottom: 1px solid var(--atlas-line); }
  .atlas-car-list .home-car-copy { grid-template-columns: 1fr; gap: 0; padding: 22px 17px; }
  .atlas-car-list .home-car-copy > p,
  .atlas-car-list .home-car-copy h3,
  .atlas-car-list .home-car-copy > div,
  .atlas-car-list .home-car-copy footer { grid-column: 1; grid-row: auto; }
  .atlas-car-list .home-car-copy h3 { margin-top: 7px; font-size: 33px; }
  .atlas-car-list .home-car-copy > div { margin-top: 22px; }
  .atlas-car-list .home-car-copy > div span:first-child { border-left: 0; padding-left: 0; }
  .atlas-car-list .home-car-copy footer { margin-top: 20px; }

  .atlas-tool-list { margin-top: 38px; }
  .atlas-tool-list button { grid-template-columns: 31px 1fr auto; padding: 23px 0; }
  .atlas-tool-list strong { font-size: 23px; }
  .atlas-closing { margin-top: 100px; padding-top: 62px; padding-bottom: 95px; }
  .atlas-closing blockquote { font-size: 42px; }

  .site-footer { grid-template-columns: 1fr; gap: 20px; padding: 30px 22px 100px; }
  .site-footer small { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .atlas-home *, .atlas-home *::before, .atlas-home *::after { animation: none !important; transition: none !important; }
}
