/* Traxa Mobility — brand tokens. See brand/traxa-brand-guidelines.html */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/fonts/inter-latin-opsz.woff2") format("woff2");
}
@font-face {
  font-family: "DM Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/dm-mono-latin-400.woff2") format("woff2");
}

:root {
  --bg: #fff;
  --ink: #080a12;
  --blue: #000f9f;
  --blue-2: #0a1cc4;
  --ice: #bbddff;
  --muted: #4a5368;
  --on-blue: #cdd4f7;
  --paper: #efefec;
  --line: rgb(8 10 18 / 0.14);
  --line-on-blue: rgb(255 255 255 / 0.22);
  --line-on-paper: rgb(0 15 159 / 0.18);

  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "DM Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --r: 20px;
  --gap: 16px;
  --pad: clamp(20px, 3.4vw, 48px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.55 var(--sans);
  font-optical-sizing: auto;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img,
svg {
  display: block;
  max-width: 100%;
}
img {
  height: auto;
}
h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}
ul,
ol {
  padding: 0;
  list-style: none;
}
a {
  color: inherit;
}
:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
  border-radius: 6px;
}
.tile :focus-visible {
  outline-color: #fff;
}
.tile-ice :focus-visible {
  outline-color: var(--blue);
}

.wrap {
  width: 100%;
  max-width: 1360px;
  margin-inline: auto;
  padding-inline: var(--pad);
}
.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 50;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
}
.skip-link:focus {
  top: 16px;
}
.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Type */
h1,
h2 {
  font-weight: 400;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.5rem, 6.2vw, 5.5rem);
  line-height: 1.02;
}
h2 {
  font-size: clamp(1.875rem, 3.4vw, 3rem);
  line-height: 1.08;
}
h3 {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 550;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color 0.25s var(--ease),
    color 0.25s var(--ease),
    border-color 0.25s var(--ease);
}
.btn-solid {
  background: var(--ink);
  color: #fff;
}
.btn-solid:hover {
  background: var(--blue);
}
.btn-line {
  border-color: rgb(8 10 18 / 0.32);
}
.btn-line:hover {
  border-color: var(--ink);
  background: rgb(8 10 18 / 0.05);
}
.btn-navy {
  background: var(--blue);
  color: #fff;
}
.btn-navy:hover {
  background: var(--ink);
}
.btn-navy-line {
  border-color: rgb(0 15 159 / 0.45);
  color: var(--blue);
}
.btn-navy-line:hover {
  border-color: var(--blue);
  background: rgb(0 15 159 / 0.08);
}
.btn-sm {
  min-height: 42px;
  padding: 0 18px;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 96px;
}
.brand img {
  width: auto;
  height: 44px;
}
.nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 36px);
}
.nav a:not(.btn) {
  padding: 8px 0;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.nav a:not(.btn):hover {
  color: var(--ink);
}

/* Hero */
.hero {
  padding-top: clamp(32px, 6vw, 88px);
}
.hero-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(28px, 4vw, 48px);
  margin-bottom: clamp(40px, 5vw, 72px);
}
.hero h1 .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.1em;
  margin-bottom: -0.1em;
}
.hero h1 .line > span {
  display: block;
  animation: rise 1.1s var(--ease) both;
}
.hero h1 .line:nth-child(2) > span {
  animation-delay: 0.09s;
}
@keyframes rise {
  from {
    transform: translateY(105%);
  }
}
.hero-side {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 28px 64px;
}
.hero-side p {
  max-width: 46ch;
  color: var(--muted);
  font-size: clamp(1.125rem, 1.5vw, 1.3125rem);
  line-height: 1.45;
  letter-spacing: -0.015em;
}
.hero-photo {
  overflow: hidden;
  border-radius: var(--r);
  background: #e6e8ee;
  aspect-ratio: 25 / 12;
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 45% 50%;
  animation: settle 1.8s var(--ease) both;
}
@keyframes settle {
  from {
    transform: scale(1.06);
  }
}

/* Sections */
.section {
  padding-block: clamp(72px, 9vw, 136px);
}
.section + .section {
  padding-top: 0;
}
.section-head {
  max-width: 760px;
  margin-bottom: clamp(36px, 4.4vw, 60px);
}
.section-head p {
  max-width: 58ch;
  margin-top: 20px;
  color: var(--muted);
  font-size: clamp(1.0625rem, 1.3vw, 1.1875rem);
}

.statement {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 24px 64px;
  align-items: end;
}
.statement h2 {
  font-size: clamp(2rem, 4.6vw, 4rem);
  line-height: 1.04;
}
.statement p {
  max-width: 50ch;
  padding-left: 24px;
  border-left: 1px solid var(--line);
  color: var(--muted);
}

/* Tiles */
.tile {
  position: relative;
  overflow: hidden;
  border-radius: var(--r);
  background: var(--blue);
  color: #fff;
}
.tile-pad {
  padding: clamp(24px, 2.6vw, 36px);
}
.tile h3 + p,
.tile h3 + ul {
  margin-top: 12px;
}
.tile p {
  color: var(--on-blue);
  max-width: 52ch;
}
.tile-ice {
  background: var(--ice);
  color: var(--blue);
}
.tile-ice p {
  color: #101c8c;
}

/* Platform bento */
.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap);
}
.b-live {
  grid-column: span 8;
  display: grid;
  grid-template-rows: auto 1fr;
}
.b-modes {
  grid-column: span 4;
}
.b-zones {
  grid-column: span 5;
  display: grid;
  grid-template-rows: auto 1fr;
}
.b-measure {
  grid-column: span 7;
}
.b-indep,
.b-open,
.b-photo {
  grid-column: span 4;
}
.b-photo {
  min-height: 300px;
}
.b-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 70%;
}

.figure {
  align-self: end;
  padding: 0 clamp(24px, 2.6vw, 36px) clamp(24px, 2.6vw, 36px);
}
.figure svg {
  width: 100%;
  height: auto;
  border-radius: 12px;
  background: var(--ink);
}
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 16px;
  color: var(--on-blue);
  font: 400 0.8125rem/1.3 var(--mono);
  letter-spacing: 0;
}
.legend li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.key {
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ice);
}
.key-line {
  width: 18px;
  height: 2px;
  border-radius: 0;
  background: #fff;
}
.key-zone {
  width: 14px;
  border-radius: 3px;
  background: none;
  border: 1px dashed var(--on-blue);
}
.key-out {
  background: none;
  border: 1.5px solid #fff;
}

.net-route {
  fill: none;
  stroke: rgb(255 255 255 / 0.3);
  stroke-width: 1.5;
}
.net-stop {
  fill: var(--ink);
  stroke: rgb(255 255 255 / 0.55);
  stroke-width: 1.5;
}
.net-zone {
  fill: rgb(187 221 255 / 0.07);
  stroke: rgb(179 190 210 / 0.6);
  stroke-width: 1;
  stroke-dasharray: 4 4;
}
.net-bike {
  fill: var(--ice);
}
.net-out {
  fill: none;
  stroke: #fff;
  stroke-width: 1.5;
}
.net-veh {
  fill: #fff;
}
.net-still {
  display: none;
}
.net-kerb {
  stroke: rgb(255 255 255 / 0.22);
  stroke-width: 1;
}

.mode-list {
  display: grid;
  margin-top: 20px;
}
.mode-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 0;
  border-top: 1px solid var(--line-on-blue);
}
.mode-list .icon {
  color: var(--ice);
}
.measure-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 32px;
  margin-top: 24px;
}
.measure-list li {
  padding: 13px 0;
  border-top: 1px solid var(--line-on-blue);
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}
.chips li {
  padding: 7px 12px;
  border: 1px solid var(--line-on-blue);
  border-radius: 8px;
  font: 400 0.8125rem/1.3 var(--mono);
  letter-spacing: 0;
}

/* Approach */
.banner {
  overflow: hidden;
  border-radius: var(--r);
  background: #e6e8ee;
  aspect-ratio: 3 / 1;
}
.banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  margin-top: clamp(28px, 3.4vw, 44px);
}
.steps li {
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.steps h3 {
  font-size: clamp(1.375rem, 1.9vw, 1.75rem);
  font-weight: 400;
  letter-spacing: -0.03em;
}
.steps p {
  margin-top: 10px;
  color: var(--muted);
}

.js [data-reveal] img {
  clip-path: inset(0 0 100% 0);
  transform: scale(1.1);
  transition:
    clip-path 1.3s var(--ease),
    transform 1.6s var(--ease);
}
.js [data-reveal].in img {
  clip-path: inset(0);
  transform: none;
}

/* Who it's for: paper panel */
.paper {
  padding: clamp(28px, 4.4vw, 64px);
  border-radius: var(--r);
  background: var(--paper);
  color: var(--blue);
}
.paper-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: clamp(36px, 5vw, 72px);
}
.paper-head h2 {
  max-width: 16ch;
}
.paper-head img {
  flex: none;
  width: clamp(44px, 5vw, 72px);
  height: auto;
}
.who > div {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 8px 48px;
  padding-block: clamp(22px, 2.6vw, 32px);
  border-top: 1px solid var(--line-on-paper);
}
.who > div:last-child {
  padding-bottom: 0;
}
.who dt {
  font-size: clamp(1.25rem, 1.8vw, 1.625rem);
  letter-spacing: -0.025em;
  line-height: 1.2;
}
.who dd {
  max-width: 58ch;
  color: #1b2670;
}

/* Contact */
.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 32px 64px;
  padding: clamp(28px, 4.4vw, 64px);
  border-radius: var(--r);
  background: var(--ice);
  color: var(--blue);
}
.cta h2 {
  max-width: 16ch;
}
.cta p {
  max-width: 44ch;
  margin-top: 16px;
  color: #101c8c;
}

/* Footer */
.footer {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 3fr) minmax(0, 3fr);
  gap: 32px 48px;
  padding-block: 0 56px;
  color: var(--muted);
  font-size: 1rem;
}
.footer img {
  width: auto;
  height: 44px;
}
.footer ul {
  display: grid;
  gap: 6px;
  align-content: start;
}
.footer a {
  text-decoration: none;
}
.footer a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.footer .legal {
  grid-column: 1 / -1;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 1040px) {
  .b-live,
  .b-modes,
  .b-zones,
  .b-measure {
    grid-column: span 12;
  }
  .b-indep,
  .b-open {
    grid-column: span 6;
  }
  .b-photo {
    grid-column: span 12;
    min-height: 0;
    aspect-ratio: 5 / 2;
  }
  .b-modes .mode-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 32px;
  }
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 860px) {
  .nav a:not(.btn) {
    display: none;
  }
  .statement,
  .who > div {
    grid-template-columns: 1fr;
  }
  .statement p {
    padding-left: 0;
    border-left: 0;
  }
  .hero-photo,
  .banner {
    aspect-ratio: 16 / 10;
  }
  .footer {
    grid-template-columns: 1fr 1fr;
  }
  .footer > img {
    grid-column: 1 / -1;
  }
}
@media (max-width: 600px) {
  :root {
    --gap: 12px;
  }
  .site-header {
    height: 76px;
  }
  .brand img,
  .footer img {
    height: 36px;
  }
  .b-indep,
  .b-open {
    grid-column: span 12;
  }
  .b-photo {
    aspect-ratio: 4 / 3;
  }
  .steps,
  .measure-list,
  .b-modes .mode-list,
  .footer {
    grid-template-columns: 1fr;
  }
  .steps {
    gap: 24px;
  }
  .actions,
  .actions .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .net-move {
    display: none;
  }
  .net-still {
    display: inline;
  }
}
