:root {
  --color-black: #050505;
  --color-ink: #111111;
  --color-gray-700: #3d3d3d;
  --color-gray-500: #696969;
  --color-gray-300: #a3a3a3;
  --color-line: #d7d7d2;
  --color-soft: #f3f3ef;
  --color-paper: #fbfbf8;
  --color-white: #ffffff;
  --color-red: #e00012;
  --container: 1240px;
  --reading: 760px;
  --axis: 18px;
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  --display-home: clamp(3rem, 7vw, 6.4rem);
  --display-page: clamp(2.4rem, 5.6vw, 4.8rem);
  --heading-2: clamp(2rem, 4.1vw, 3.45rem);
  --heading-3: clamp(1.35rem, 2.2vw, 2rem);
  --body-lg: clamp(1.125rem, 1.6vw, 1.35rem);
  --body: clamp(1rem, 1.2vw, 1.125rem);
  --space-section: clamp(4.5rem, 8vw, 7rem);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
  background: var(--color-paper);
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-sans);
  line-height: 1.62;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
  touch-action: none;
}

body::before {
  position: fixed;
  z-index: 120;
  top: 0;
  bottom: 0;
  left: var(--axis);
  width: 2px;
  background: var(--color-red);
  content: "";
  pointer-events: none;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

button,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

p,
li {
  margin: 0;
  color: var(--color-ink);
  font-size: var(--body);
  line-height: 1.62;
  overflow-wrap: normal;
  text-wrap: pretty;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--color-ink);
  font-weight: 860;
  letter-spacing: -0.045em;
  line-height: 0.98;
  overflow-wrap: normal;
  text-wrap: balance;
}

strong {
  font-weight: 800;
}

:focus-visible {
  outline: 3px solid var(--color-red);
  outline-offset: 4px;
}

.hero-grid > *,
.section > .wrap > *,
.footer-grid > *,
.hero-copy,
.black-panel,
.section-head,
.footer-col,
.card,
.case-card,
.reading,
.grid,
.case-grid,
.result-list,
.cta .wrap > *,
.panel-row > * {
  min-width: 0;
}

.skip-link {
  position: fixed;
  z-index: 200;
  top: 8px;
  left: 48px;
  padding: 12px 16px;
  transform: translateY(-160%);
  background: var(--color-black);
  color: var(--color-white);
}

.skip-link:focus {
  transform: none;
}

.axis-caption {
  position: fixed;
  z-index: 121;
  bottom: 22px;
  left: 20px;
  color: var(--color-red);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  pointer-events: none;
  text-transform: uppercase;
  transform: rotate(180deg);
  writing-mode: vertical-rl;
}

.wrap {
  width: min(calc(100% - 24px), var(--container));
  margin: 0 auto;
  padding-left: 22px;
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid var(--color-line);
  background: rgb(251 251 248 / 94%);
  backdrop-filter: blur(16px);
}

body.menu-open .site-header {
  backdrop-filter: none;
}

.header-inner {
  display: flex;
  width: min(calc(100% - 24px), var(--container));
  min-height: 68px;
  margin: 0 auto;
  padding-left: 22px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
  color: var(--color-ink);
  font-size: 24px;
  font-weight: 860;
  letter-spacing: -0.05em;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  background: var(--color-red);
}

.menu-button {
  display: inline-flex;
  min-width: 92px;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--color-black);
  align-items: center;
  justify-content: center;
  background: var(--color-paper);
  color: var(--color-ink);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nav {
  position: fixed;
  z-index: 1000;
  top: var(--header-height, 68px);
  right: 0;
  left: 0;
  display: none;
  height: calc(100dvh - var(--header-height, 68px));
  max-height: calc(100dvh - var(--header-height, 68px));
  padding: 24px 28px calc(40px + env(safe-area-inset-bottom)) 40px;
  overflow-y: auto;
  background: var(--color-paper);
  overscroll-behavior: contain;
}

.nav[data-open] {
  display: grid;
  align-content: start;
}

.nav-link {
  display: flex;
  min-height: 56px;
  border-bottom: 1px solid var(--color-line);
  align-items: center;
  color: var(--color-ink);
  font-size: 18px;
  font-weight: 760;
  text-decoration: none;
}

.nav-cta {
  display: inline-flex;
  min-height: 54px;
  margin-top: 24px;
  padding: 0 18px;
  border: 1px solid var(--color-black);
  align-items: center;
  justify-content: center;
  background: var(--color-black);
  color: var(--color-white);
  font-weight: 800;
  text-decoration: none;
}

main {
  position: relative;
  z-index: 1;
}

.hero {
  padding: clamp(4.5rem, 9vw, 8rem) 0 clamp(3rem, 6vw, 5rem);
  border-bottom: 1px solid var(--color-line);
}

.hero-grid {
  display: grid;
  gap: 34px;
}

.hero-copy {
  max-width: 1040px;
}

.eyebrow,
.kicker,
.tag {
  color: var(--color-red);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.09em;
  line-height: 1.3;
  text-transform: uppercase;
}

.eyebrow {
  margin: 0 0 24px;
}

h1 {
  max-width: 980px;
  margin-bottom: 28px;
  font-size: var(--display-home);
}

.lead {
  max-width: 850px;
  margin-bottom: 24px;
  color: var(--color-ink);
  font-size: var(--body-lg);
  letter-spacing: -0.025em;
  line-height: 1.28;
}

.sublead,
.microcopy {
  max-width: 760px;
  color: var(--color-gray-700);
  font-size: 16px;
  line-height: 1.6;
}

.microcopy {
  margin-top: 24px;
  font-family: var(--font-mono);
  font-size: 12px;
}

.actions,
.contact-actions {
  display: flex;
  max-width: 760px;
  margin-top: 28px;
  flex-direction: column;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 54px;
  padding: 13px 18px;
  border: 1px solid var(--color-black);
  align-items: center;
  justify-content: center;
  background: var(--color-black);
  color: var(--color-white);
  cursor: pointer;
  font-size: 14px;
  font-weight: 780;
  text-align: center;
  text-decoration: none;
}

.button.secondary {
  background: var(--color-white);
  color: var(--color-black);
}

.button:hover,
.button:focus-visible,
.nav-cta:hover,
.nav-cta:focus-visible {
  border-color: var(--color-red);
  background: var(--color-red);
  color: var(--color-white);
}

.contrast-panel {
  padding: clamp(2.5rem, 5vw, 4.5rem) 0;
  border-bottom: 1px solid var(--color-line);
}

.black-panel {
  position: relative;
  display: flex;
  min-height: 380px;
  padding: clamp(1.75rem, 4vw, 3rem);
  overflow: hidden;
  flex-direction: column;
  justify-content: space-between;
  background: var(--color-black);
  color: var(--color-white);
}

.black-panel::after {
  position: absolute;
  top: 0;
  right: 0;
  width: 8px;
  height: 100%;
  background: var(--color-red);
  content: "";
}

.black-panel .kicker {
  color: #bdbdbd;
}

.black-panel h2 {
  max-width: 760px;
  margin-top: 34px;
  color: var(--color-white);
  font-size: clamp(2.05rem, 4.2vw, 3.35rem);
  letter-spacing: -0.045em;
  line-height: 1;
}

.black-panel p {
  max-width: 760px;
  margin-top: 22px;
  color: #e1e1e1;
}

.panel-rows {
  display: grid;
  margin-top: 34px;
  border-top: 1px solid #3b3b3b;
}

.panel-row {
  display: flex;
  padding: 14px 0;
  border-bottom: 1px solid #3b3b3b;
  justify-content: space-between;
  gap: 18px;
}

.panel-row span {
  color: #aaa;
}

.panel-row b {
  color: var(--color-white);
  letter-spacing: -0.03em;
}

.section {
  padding: var(--space-section) 0;
  border-bottom: 1px solid var(--color-line);
}

.section > .wrap {
  display: grid;
  gap: 34px;
}

.section-heading {
  max-width: 980px;
}

.section h2,
.cta h2,
.legal-document h1 {
  max-width: 900px;
  font-size: var(--heading-2);
}

.section-intro {
  max-width: 760px;
  margin-top: 22px;
  color: var(--color-gray-700);
  font-size: var(--body-lg);
  letter-spacing: -0.015em;
  line-height: 1.4;
}

.reading {
  max-width: var(--reading);
}

.grid,
.case-grid,
.result-list,
.directions-grid {
  display: grid;
  border: 1px solid var(--color-line);
  background: var(--color-white);
}

.card,
.case-card,
.result-list article {
  min-width: 0;
  padding: 26px;
  border-bottom: 1px solid var(--color-line);
}

.card:last-child,
.case-card:last-child,
.result-list article:last-child {
  border-bottom: 0;
}

.tag {
  display: inline-flex;
  margin-bottom: 24px;
}

.card h3,
.case-card h3,
.result-list h3 {
  margin-bottom: 16px;
  font-size: clamp(1.18rem, 1.55vw, 1.58rem);
  line-height: 1.12;
}

.card p + p,
.case-card p + p {
  margin-top: 16px;
}

.numbered-card-grid .card {
  min-height: 0;
  padding: 20px;
}

.numbered-card-grid .tag {
  margin-bottom: 12px;
}

.directions-grid {
  grid-template-columns: 1fr;
}

.directions-grid .route-card {
  min-height: 100%;
  border-right: 0;
}

.route-card {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.route-card .text-link {
  margin-top: auto;
  padding-top: 30px;
}

.text-link {
  align-self: flex-start;
  color: var(--color-ink);
  font-weight: 800;
  text-decoration-color: var(--color-red);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.text-link:hover,
.contact-email:hover {
  color: var(--color-red);
}

.approach-layout,
.result-layout {
  align-items: start;
}

.steps-list {
  display: grid;
  margin: 0;
  padding-left: 1.2em;
  gap: 18px;
}

.steps-list li::marker,
.reading li::marker {
  color: var(--color-red);
}

.steps-list p {
  margin-top: 6px;
  color: var(--color-gray-700);
}

.case-card {
  display: grid;
  gap: 0;
}

.trust-section {
  background: var(--color-soft);
}

.result-list article {
  display: grid;
  gap: 8px;
}

.result-list p {
  color: var(--color-gray-700);
}

.cta {
  padding: var(--space-section) 0;
  background: var(--color-black);
  color: var(--color-white);
}

.cta .wrap {
  display: grid;
  gap: 24px;
}

.cta h1,
.cta h2,
.cta p {
  color: var(--color-white);
}

.cta h1 {
  font-size: var(--heading-2);
}

.cta p {
  max-width: 760px;
  color: #e1e1e1;
  font-size: var(--body-lg);
}

.cta .button {
  border-color: var(--color-white);
  background: var(--color-white);
  color: var(--color-black);
}

.cta .button.secondary {
  background: transparent;
  color: var(--color-white);
}

.contact-email {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  color: var(--color-white);
  font-weight: 800;
  overflow-wrap: anywhere;
  text-decoration-color: var(--color-red);
}

.site-footer {
  padding: 40px 0 54px;
  border-top: 1px solid #343434;
  background: var(--color-black);
  color: #aaa;
}

.footer-grid {
  display: grid;
  gap: 30px;
}

.site-footer .brand {
  color: var(--color-white);
}

.site-footer p {
  max-width: 440px;
  margin-top: 14px;
  color: #aaa;
  font-size: 14px;
}

.footer-col {
  display: grid;
  align-content: start;
  gap: 10px;
}

.footer-col strong {
  color: var(--color-white);
  font-size: 13px;
  text-transform: uppercase;
}

.footer-col a {
  color: #aaa;
  font-size: 14px;
  text-decoration: none;
}

.footer-col a:hover,
.footer-cookie:hover,
.footer-cookie:focus-visible {
  color: var(--color-white);
}

.footer-cookie {
  display: inline;
  padding: 0;
  border: 0;
  background: transparent;
  color: #aaa;
  cursor: pointer;
  font-size: 14px;
  text-align: left;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.analytics-consent {
  position: fixed;
  z-index: 1200;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  left: 12px;
  display: grid;
  max-width: 680px;
  padding: 18px;
  border: 1px solid var(--color-line);
  gap: 14px;
  background: var(--color-paper);
  box-shadow: 0 20px 60px rgb(0 0 0 / 16%);
}

.analytics-consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.analytics-consent button,
.analytics-consent a {
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--color-black);
  background: var(--color-white);
  color: var(--color-black);
  cursor: pointer;
  font-size: 14px;
  font-weight: 760;
  text-decoration: none;
}

.analytics-consent button:hover,
.analytics-consent a:hover {
  border-color: var(--color-red);
  color: var(--color-red);
}

.legal-page {
  padding: clamp(3.25rem, 7vw, 6rem) 0;
  border-bottom: 1px solid var(--color-line);
}

.legal-document {
  max-width: 78ch;
}

.legal-document h1 {
  margin: 0 0 34px;
  line-height: 1.04;
}

.legal-document h2 {
  margin: 46px 0 16px;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  line-height: 1.12;
}

.legal-document p + p,
.legal-document ul + p,
.legal-document p + ul {
  margin-top: 14px;
}

.legal-document ul {
  display: grid;
  margin: 0 0 18px;
  padding-left: 1.2em;
  gap: 8px;
}

.error-page {
  min-height: 100dvh;
  display: grid;
  align-items: center;
}

@media (min-width: 620px) {
  .actions,
  .contact-actions {
    flex-direction: row;
    align-items: center;
  }

  .button {
    width: auto;
  }

  .analytics-consent {
    right: 24px;
    bottom: calc(24px + env(safe-area-inset-bottom));
    left: auto;
  }
}

@media (min-width: 600px) {
  .directions-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .directions-grid .route-card {
    border-right: 1px solid var(--color-line);
  }

  .directions-grid .route-card:nth-child(2n) {
    border-right: 0;
  }
}

@media (min-width: 760px) {
  .grid-count-3,
  .case-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-count-5 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .result-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .card,
  .case-card,
  .result-list article {
    border-right: 1px solid var(--color-line);
  }

  .card:nth-child(2n),
  .case-card:nth-child(2n),
  .result-list article:nth-child(2n) {
    border-right: 0;
  }
}

@media (min-width: 900px) {
  .directions-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .directions-grid .route-card,
  .directions-grid .route-card:nth-child(2n) {
    border-right: 1px solid var(--color-line);
  }

  .directions-grid .route-card:nth-child(3n) {
    border-right: 0;
  }
}

@media (min-width: 1040px) {
  .menu-button {
    display: none;
  }

  .nav {
    position: static;
    display: flex;
    height: auto;
    max-height: none;
    padding: 0;
    overflow: visible;
    align-items: center;
    gap: 18px;
    background: transparent;
  }

  .nav-link {
    min-height: auto;
    border-bottom: 0;
    font-size: 14px;
  }

  .nav-cta {
    min-height: 44px;
    margin-top: 0;
  }

  .hero {
    padding-top: clamp(5rem, 9vw, 8rem);
  }

  .section > .wrap,
  .approach-layout,
  .result-layout {
    grid-template-columns: minmax(260px, 0.62fr) minmax(0, 1fr);
    gap: clamp(3rem, 7vw, 6.5rem);
  }

  .section-head {
    position: sticky;
    top: 92px;
  }

  #directions > .wrap {
    grid-template-columns: 1fr;
  }

  #directions .section-heading {
    position: static;
  }

  .grid-count-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .grid-count-5 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .direction-grid .card:nth-child(2n),
  .numbered-card-grid .card:nth-child(2n),
  .case-card:nth-child(2n) {
    border-right: 1px solid var(--color-line);
  }

  .directions-grid .route-card,
  .directions-grid .route-card:nth-child(2n) {
    border-right: 1px solid var(--color-line);
  }

  .directions-grid .route-card:nth-child(3n) {
    border-right: 0;
  }

  .grid-count-3 .card:nth-child(3n),
  .grid-count-5 .card:nth-child(3n) {
    border-right: 0;
  }

  .case-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .case-card:nth-child(3n) {
    border-right: 0;
  }

  .result-list {
    grid-template-columns: 1fr;
  }

  .result-list article {
    border-right: 0;
  }

  .footer-grid {
    grid-template-columns: minmax(260px, 1fr) 180px 180px;
    gap: clamp(2rem, 5vw, 5rem);
  }
}

@media (min-width: 1280px) {
  .directions-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .directions-grid .route-card,
  .directions-grid .route-card:nth-child(2n),
  .directions-grid .route-card:nth-child(3n) {
    border-right: 1px solid var(--color-line);
  }

  .directions-grid .route-card:nth-child(5n) {
    border-right: 0;
  }
}

@media (max-width: 520px) {
  :root {
    --axis: 10px;
  }

  body::before {
    width: 1px;
  }

  .axis-caption {
    display: none;
  }

  .wrap,
  .header-inner {
    width: min(calc(100% - 16px), var(--container));
    padding-left: 16px;
  }

  .brand {
    font-size: 18px;
  }

  .brand span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .black-panel {
    min-height: 0;
  }

  .panel-row {
    display: grid;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }
}
