/* The main site's styles. Sizes follow the Next.js site's breakpoints: 640, 768, 1024, 1280, 1536px. */

@font-face { font-family: toyotaType; src: url(/fonts/Toyota-Type-Light.woff2) format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: toyotaType; src: url(/fonts/Toyota-Type.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: toyotaType; src: url(/fonts/Toyota-Type-Book.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: toyotaType; src: url(/fonts/Toyota-Type-Semibold.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: toyotaType; src: url(/fonts/Toyota-Type-Bold.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: toyotaBook; src: url(/fonts/Toyota-Type-Book.woff2) format("woff2"); font-weight: 400 500; font-display: swap; }
@font-face { font-family: toyotaText; src: url(/fonts/ToyotaText-Regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: toyotaText; src: url(/fonts/ToyotaText-Italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: toyotaText; src: url(/fonts/ToyotaText-Bold.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: toyotaText; src: url(/fonts/ToyotaText-BoldItalic.woff2) format("woff2"); font-weight: 700; font-style: italic; font-display: swap; }
@font-face { font-family: toyotaDisplay; src: url(/fonts/ToyotaDisplay-Regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: toyotaDisplay; src: url(/fonts/ToyotaDisplay-Bold.woff2) format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --system: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  --font: toyotaType, var(--system);
  --font-book: toyotaBook, var(--system);
  --font-text: toyotaText, var(--system);
  --font-display: toyotaDisplay, var(--system);
  --container: 1520px;
  --ink: #09090b;
  --dark: #1e1e1e;
  --muted: #576675;
  --primary: #c10f10;
  --red: #ff2c2c;
  --btn-gradient: linear-gradient(90deg, #c00000, #990000);
  --card-gradient: linear-gradient(to right, #4b4b4b, #2f2f2f);
  --grey: #9c9c9c;
  --tri: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath transform='rotate(90 12 12)' fill='white' stroke='white' fill-opacity='.8' stroke-opacity='.8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M13.73 4a2 2 0 0 0-3.46 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z'/%3E%3C/svg%3E");
  --tri-grey: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath transform='rotate(90 12 12)' fill='%23d9d9d9' stroke='%23d9d9d9' fill-opacity='1' stroke-opacity='1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M13.73 4a2 2 0 0 0-3.46 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z'/%3E%3C/svg%3E");
  --tri-grey-back: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath transform='rotate(-90 12 12)' fill='%23d9d9d9' stroke='%23d9d9d9' fill-opacity='1' stroke-opacity='1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M13.73 4a2 2 0 0 0-3.46 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z'/%3E%3C/svg%3E");
  --nav-shadow: -4.5px 8.1px 14.04px 0 rgba(0, 0, 0, .2);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; border: 0 solid #e4e4e7; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { font-family: var(--font); font-synthesis: none; }
body { width: 100%; overflow-x: hidden; background: rgb(254, 255, 254); color: var(--ink); line-height: 1.5; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
img, svg, video, iframe, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: inherit; }
button, input, select, textarea { font: inherit; color: inherit; background: none; }
button { cursor: pointer; }
h1, h2, h3, h4, h5, h6 { font-size: inherit; font-weight: inherit; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.toyota-book { font-family: var(--font-book); }
.toyota-text { font-family: var(--font-text); }

main { display: flex; flex-direction: column; gap: 56px; width: 100%; max-width: 100%; }
main:focus { outline: none; }
ul { margin-inline-start: 8px; list-style: disc inside; }
ol { margin-inline-start: 8px; list-style: decimal inside; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; }
.pad { padding-inline: 24px; }
.paragraph { text-align: justify; font-size: 14px; line-height: 150%; font-weight: 300; }
.paragraph > * { text-align: justify; font-size: 14px; line-height: calc(1.25 / .875); font-weight: 300; }
@media (min-width: 768px) {
  main { gap: 80px; }
  .paragraph { font-size: 18px; }
  .paragraph > * { font-size: 18px; line-height: calc(1.75 / 1.125); }
}
@media (min-width: 1024px) {
  ul, ol { margin-inline-start: 20px; }
}
@media (min-width: 1568px) {
  .pad { padding-inline: 0; }
}
.flush-bottom { margin-bottom: -48px; }
@media (min-width: 768px) { .flush-bottom { margin-bottom: -112px; } }

/* Accessibility: a link past the menu, and what only screen readers get. */
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 1000; padding: 12px 20px; background: #fff; color: #000; transform: translateY(-200%); }
.skip-link:focus { transform: none; }

/* The page holds still behind an open dialog, keeping the scrollbar's room so nothing shifts. */
.is-locked body { overflow: hidden; padding-inline-end: var(--lock-gap, 0px); }
.is-locked .nav-sticky { padding-inline-end: var(--lock-gap, 0px); }

/* Between pages: the Toyota loader covers the screen. */
.page-loader { position: fixed; inset: 0; z-index: 9999999; background: #fff; color: var(--primary); }
.page-loader > div { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 32px; height: 100%; animation: pulse 2s cubic-bezier(.4, 0, .6, 1) infinite; }
.page-loader img { width: 150px; height: auto; filter: invert(1); }
.page-loader .spinner { width: 50px; height: 50px; }
.spinner { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 50% { opacity: .5; } }

/* ---------- The Toyota button (component): a red gradient block with a light that runs round its edge on hover. site.js adds the four edge lights and the spinner. ---------- */
.btn {
  position: relative; z-index: 10;
  display: inline-flex; flex-shrink: 0; align-items: center; justify-content: center; gap: 8px;
  height: 40px; min-height: 45px; min-width: 220px; padding: 0 24px;
  border: 1px solid transparent; color: #fff; background: none;
  font-size: 16px; font-weight: 400; line-height: 1.5; white-space: nowrap; text-align: center;
  box-shadow: 1px 3px 12.6px rgba(0, 0, 0, .61); cursor: pointer; transition: all .15s cubic-bezier(.4, 0, .2, 1);
}
.btn::before { content: ""; position: absolute; inset: -1px; z-index: -1; background: var(--btn-gradient); transition: opacity .3s cubic-bezier(.4, 0, .2, 1); pointer-events: none; }
.btn:disabled { pointer-events: none; opacity: .8; }
.btn:focus-visible { outline: 3px solid rgba(193, 15, 16, .5); outline-offset: 1px; }
.btn--outline { color: #000; border-color: #000; box-shadow: none; }
.btn--outline::before { opacity: 0; }
.btn--outline:hover, .btn--outline:active { border-color: transparent; color: #fff; box-shadow: 1px 3px 12.6px rgba(0, 0, 0, .61); }
.btn--outline:hover::before, .btn--outline:active::before { opacity: 1; }
@media (min-width: 768px) {
  .btn:not(.btn--squeeze) { min-height: 50px; min-width: 246px; font-size: 18px; }
  .btn--outline { border-color: var(--primary); }
  .btn--outline:hover, .btn--outline:active { border-color: transparent; }
}
/* Squeezed: keeps the phone size until 1024px. */
@media (min-width: 1024px) { .btn--squeeze { min-height: 50px; min-width: 246px; font-size: 18px; } }
.btn > span:not([class]) { transition: opacity 1s cubic-bezier(.4, 0, .2, 1); }
.btn.is-busy > span:not([class]) { opacity: 0; }
.btn-spin { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; pointer-events: none; }
.btn-spin svg { opacity: 0; translate: 0 -100%; transition: opacity 1s cubic-bezier(.4, 0, .2, 1), translate 1s cubic-bezier(.4, 0, .2, 1); }
.btn.is-busy .btn-spin svg { opacity: 1; translate: none; }
.btn-glow { position: absolute; inset: -1px; pointer-events: none; }
.btn-glow i { position: absolute; z-index: 10; border-radius: 32px; background: #fff; transform: translateZ(0); }
.btn-glow i:nth-child(odd) { height: 1.5px; box-shadow: 0 0 3px rgba(255, 255, 255, .9), 0 0 8px rgba(255, 255, 255, .7), 0 0 18px rgba(255, 255, 255, .5); }
.btn-glow i:nth-child(even) { width: 1.5px; box-shadow: 0 0 5px #fff, 0 0 12px rgba(255, 255, 255, .9), 0 0 24px rgba(255, 255, 255, .7); }
.btn-glow i:nth-child(1) { top: 0; }
.btn-glow i:nth-child(2) { right: 0; }
.btn-glow i:nth-child(3) { bottom: 0; }
.btn-glow i:nth-child(4) { left: 0; }
.btn:active .btn-glow i:nth-child(1) { animation: glow-top 2s linear infinite; }
.btn:active .btn-glow i:nth-child(2) { animation: glow-right 2s linear infinite; }
.btn:active .btn-glow i:nth-child(3) { animation: glow-bottom 2s linear infinite; }
.btn:active .btn-glow i:nth-child(4) { animation: glow-left 2s linear infinite; }
@media (min-width: 768px) {
  .btn:hover .btn-glow i:nth-child(1) { animation: glow-top 2s linear infinite; }
  .btn:hover .btn-glow i:nth-child(2) { animation: glow-right 2s linear infinite; }
  .btn:hover .btn-glow i:nth-child(3) { animation: glow-bottom 2s linear infinite; }
  .btn:hover .btn-glow i:nth-child(4) { animation: glow-left 2s linear infinite; }
}
@keyframes glow-top { 0% { left: 0; width: 0; } 20% { left: 0; width: 100%; } 40% { left: 100%; width: 0; } }
@keyframes glow-right { 20% { top: 0; height: 0; } 40% { top: 0; height: 100%; } 60% { top: 100%; height: 0; } }
@keyframes glow-bottom { 40% { left: 100%; width: 0; } 60% { left: 0; width: 100%; } 80% { left: 0; width: 0; } }
@keyframes glow-left { 60% { top: 100%; height: 0; } 80% { top: 0; height: 100%; } 100% { top: 0; height: 0; } }

/* A link with a red belt that grows under it. */
.nav-link { position: relative; display: inline-block; padding: 6px 8px; white-space: nowrap; transition: all .5s cubic-bezier(.4, 0, .2, 1); }
.belt { position: absolute; bottom: 0; left: 50%; width: 0; height: 1px; transform: translateX(-50%) scaleY(3); border-radius: 999px; background: var(--red); opacity: 0; transition: all .5s cubic-bezier(.4, 0, .2, 1); }
.nav-link:hover .belt, .nav-link:active .belt, .nav-link[aria-expanded="true"] .belt, .nav-link[aria-pressed="true"] .belt, .nav-link[aria-current] .belt { width: 100%; opacity: 1; }

/* ---------- Navigation (component) ---------- */
.nav { position: absolute; top: 0; left: 0; z-index: 50; width: 100%; overflow-x: clip; padding-top: 30px; color: #fff; }
.nav--dark { color: #000; }
.nav-sticky { position: fixed; inset: 0 0 auto; z-index: 600; padding-block: 8px; background: #fff; transform: translateY(-100%); transition: transform .25s ease-in-out; }
.nav-sticky.is-shown { transform: none; box-shadow: 0 1px 3px rgba(0, 0, 0, .1), 0 1px 2px -1px rgba(0, 0, 0, .1); }
.nav-bar { display: flex; align-items: center; justify-content: space-between; width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.nav-logo { position: relative; z-index: 20; }
.nav-logo svg { width: 44px; height: auto; }
.nav-center { display: flex; align-items: center; justify-content: center; width: 0; height: 0; }
.nav-strip { display: none; }
/* Menus: the panel hangs from the bar's lower edge and slides down out of it. */
.drop { display: flex; align-items: flex-start; width: fit-content; height: fit-content; }
.drop--end { justify-content: flex-end; }
.drop-panel { position: absolute; top: 100%; visibility: hidden; pointer-events: none; transition: visibility 0s .5s; }
.drop--models > .drop-panel { left: 0; display: flex; justify-content: center; width: 100%; }
.drop-clip { overflow: hidden; }
.drop-body { opacity: 0; transform: translate3d(0, -100%, 0); transition: opacity .5s cubic-bezier(.4, 0, .2, 1), transform .5s cubic-bezier(.4, 0, .2, 1); }
.drop.is-open > .drop-panel { visibility: visible; pointer-events: auto; transition: none; }
.drop.is-open > .drop-panel .drop-body { opacity: 1; transform: translateZ(0); }
.nav-strip > .drop > .nav-link { display: flex; align-items: center; }
.nav-caret { position: relative; top: 3px; flex-shrink: 0; margin-inline-start: 8px; transform: rotate(180deg); transition: transform .5s cubic-bezier(.4, 0, .2, 1); }
.drop.is-open .nav-caret { transform: none; }
.nav-list { display: flex; flex-direction: column; gap: 16px; width: 100%; padding: 16px 70px 20px 16px; background: var(--card-gradient); box-shadow: var(--nav-shadow); }
.nav-list .nav-link { display: flex; align-items: center; color: var(--grey); }
.nav-list .nav-link:hover, .nav-list .nav-link[aria-current] { color: #fff; }
.mega { display: flex; flex-direction: column; align-items: center; gap: 16px; width: 1050px; max-width: min(calc(100vw - 48px), 1050px); padding: 20px 48px 32px; background: var(--card-gradient); }
.mega-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; width: 100%; margin-bottom: 20px; }
.mega-tabs .nav-link { font-weight: 300; color: var(--grey); }
.mega-tabs .nav-link[aria-pressed="true"] { color: #fff; }
.mega-models { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; width: 100%; }
.mega-model { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; overflow: hidden; padding-bottom: 12px; color: var(--grey); font-weight: 300; line-height: calc(1.25 / .875); }
.mega-model:hover, .mega-model[aria-current] { color: #fff; }
.mega-model .belt { max-width: 70%; }
.mega-img { width: 200px; height: 80px; opacity: .53; transition: opacity .5s cubic-bezier(.4, 0, .2, 1); }
.mega-img img { width: 100%; height: 100%; object-fit: contain; object-position: bottom; }
.mega-model:hover .mega-img, .mega-model:focus .mega-img, .mega-model[aria-current] .mega-img { opacity: 1; }
.nav-lang { display: none; }
.nav-lang-btn { display: flex; align-items: center; gap: 6px; padding: 6px; }
.nav-lang-btn > span:last-child { font-size: 14px; font-weight: 300; text-transform: uppercase; }
.nav-globe { display: flex; flex-direction: column; gap: 5px; width: 20px; transform: translateY(1px); }
.nav-globe::after { content: ""; width: 19px; height: 1px; margin-inline: auto; background: currentColor; }
.nav-lang .langs { gap: 12px; padding: 11px 12px; background: var(--card-gradient); }
.langs { display: flex; }
.langs a { display: flex; align-items: center; gap: 5px; color: rgba(255, 255, 255, .6); text-transform: uppercase; transition: color .5s cubic-bezier(.4, 0, .2, 1); }
.langs a:hover { color: #fff; }
.langs a[aria-current] { border-bottom: 1px solid #e4e4e7; color: #fff; }
.langs span { font-size: 14px; font-weight: 300; }
.langs img { flex: none; width: 18px; height: 12px; object-fit: cover; }
.nav-toggle { position: relative; display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border: 1px solid #e4e4e7; color: #fff; }
.nav--dark .nav-toggle { border-color: #000; color: #000; }
.nav-burger > .drop-panel { padding-top: 10px; }
.nav-mobile { display: flex; flex-direction: column; gap: 8px; width: fit-content; padding: 18px 40px 26px 20px; background: var(--card-gradient); box-shadow: -5.1px 9.17px 15.9px 0 rgba(0, 0, 0, .2); color: var(--grey); font-size: 19px; }
.nav-tree { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; font-weight: 300; }
.nav-tree .nav-link { width: fit-content; padding: 0 0 2px; color: var(--grey); font-size: 19px; }
.nav-tree .tree-toggle[aria-expanded="true"], .nav-tree [aria-current] { color: #fff; font-weight: 400; }
.nav-tree .tree-toggle { padding: 0; transition: none; font-weight: 300; }
.nav-mobile .langs { gap: 16px; margin-top: 20px; }
.nav-mobile .langs a { gap: 4px; color: var(--grey); }
.nav-mobile .langs a:hover, .nav-mobile .langs a[aria-current] { color: #fff; }
.nav-mobile .langs a[aria-current] { border-bottom: 2px solid #fff; }
.nav-mobile .langs span { font-size: 16px; transform: translateY(-2px); }
.nav-mobile .langs img { width: 20px; height: 13.5px; }
.nav-mobile .langs a:not([aria-current]) img { filter: grayscale(1); }
/* A branch opens to its own height. */
.tree { display: flex; flex-direction: column; width: 100%; }
.tree-panel { display: grid; grid-template-rows: 0fr; width: 100%; visibility: hidden; transition: grid-template-rows .5s cubic-bezier(.4, 0, .2, 1), visibility 0s .5s; }
.tree.is-open > .tree-panel { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows .5s cubic-bezier(.4, 0, .2, 1); }
.tree-clip { min-height: 0; overflow: hidden; }
.tree-branch { position: relative; display: flex; flex-direction: column; gap: 8px; padding-top: 8px; }
.tree-branch::before { content: ""; position: absolute; top: 0; left: 6px; width: 1px; height: calc(100% - 19px); background: var(--grey); }
.tree-branch--deep { margin-left: 16px; }
.tree-row { position: relative; display: flex; align-items: center; height: 40px; margin-inline-start: 20px; }
.tree-row::before { content: ""; position: absolute; left: -14px; width: 8px; height: 1px; background: var(--grey); }
.tree-row .nav-link { font-size: 16px; }
@media (min-width: 1024px) { .nav-logo svg { width: 77px; } }
@media (min-width: 1280px) {
  .nav { padding-top: 60px; }
  .nav-burger { display: none; }
  .nav-lang { display: flex; }
  .nav-strip { display: flex; flex-shrink: 0; align-items: baseline; justify-content: center; gap: 20px; width: 100vw; max-width: calc(100dvw - 200px); max-height: 100vh; }
  .nav-strip .nav-link { font-size: 15px; }
  .nav-strip .mega .nav-link { font-size: 17px; }
  .nav-strip > .nav-link--lines { text-align: center; line-height: 120%; white-space: pre-line; }
  .nav-strip--long { gap: clamp(8px, .9vw, 16px); }
  .nav-strip--long .nav-link, .nav-strip--long .mega .nav-link { font-size: clamp(13px, 1vw, 17px); }
}
@media (min-width: 1568px) { .nav-bar { padding-inline: 0; } }
@media (min-width: 1600px) {
  .nav-strip { gap: 47px; }
  .nav-strip--long { gap: clamp(8px, .9vw, 16px); }
  .nav-strip .nav-link { font-size: 17px; }
}

/* ---------- Footer (component) ---------- */
.ftr { margin-top: 48px; }
.ftr .belt { background: #c62122; }
.ftr-rule { position: relative; height: 2px; margin-bottom: 16px; background: #b2b2b2; color: #b2b2b2; }
.ftr-rule svg { display: none; position: absolute; top: -3px; width: 8px; height: 8px; }
.ftr-rule-start { left: 0; transform: translateX(-.5px) rotate(90deg); }
.ftr-rule-end { right: 0; transform: translateX(.5px) rotate(-90deg); }
.ftr-main { display: flex; flex-direction: column; padding: 16px 24px; }
.ftr-logo { width: 100%; max-width: 25vw; }
.ftr-logo img { width: 100%; height: auto; object-fit: cover; }
.ftr-line { display: none; height: 1px; margin-top: 28px; background: #000; }
.ftr-mission { margin-top: 24px; }
.ftr-mission h2 { margin-bottom: 8px; font-size: 18px; font-weight: 600; color: #484848; }
.ftr-mission p { font-size: 14px; font-weight: 300; color: #515151; }
.ftr-columns { display: flex; gap: 40px; margin-top: 24px; font-weight: 300; color: #515151; }
.ftr-links { display: flex; flex-direction: column; gap: 12px; width: fit-content; }
.ftr-links h3, .ftr-contact h2, .ftr-follow h2 { font-size: 22px; font-weight: 600; color: #484848; }
.ftr-grid { display: flex; flex-direction: column; gap: 12px; }
.ftr-grid .nav-link--lines { white-space: pre-line; }
.ftr-grid .nav-link { padding: 6px 8px 4px 0; font-size: 16px; font-weight: 300; color: #515151; }
.ftr-contact { margin-top: 24px; }
.ftr-contact h2 { margin-bottom: 12px; }
.ftr-contacts { display: flex; flex-direction: column; gap: 12px; font-size: 16px; }
.ftr-contacts > div { display: flex; flex-direction: column; }
.ftr-contact h3 { color: #000; }
.ftr-contacts .nav-link, .ftr-contacts p { width: fit-content; padding: 0 0 4px; font-weight: 300; color: #515151; }
.ftr-follow { margin: 24px 0 8px; }
.ftr-follow h2 { margin-bottom: 24px; }
.btn.ftr-cta { display: none; max-width: 246px; margin-bottom: 70px; font-family: var(--font-book); font-size: 16px; }
.ftr-social { display: flex; gap: 16px; }
.ftr-social a { position: relative; display: flex; align-items: center; justify-content: center; width: 50px; aspect-ratio: 1; border: 1px solid #000; }
.ftr-social img { width: 70%; height: 70%; object-fit: cover; }
.ftr-social img:first-child { position: absolute; }
.ftr-social img:last-child, .ftr-social a:hover img:first-child { opacity: 0; }
.ftr-social a:hover img:last-child { opacity: 1; }
.ftr-bottom { padding: 16px; background: var(--dark); color: #a7a7a7; font-size: 14px; line-height: calc(1.25 / .875); }
.ftr-bottom-in { display: flex; flex-direction: column; gap: 28px; width: 100%; max-width: var(--container); margin-inline: auto; }
.ftr-legal { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; column-gap: 12px; }
.ftr-legal .nav-link { padding-inline: 0; font-weight: 300; }
.ftr-legal .nav-link:hover { color: rgba(255, 255, 255, .8); }
.ftr-legal .belt { background: rgba(255, 255, 255, .8); }
.ftr-bottom p { text-align: center; font-weight: 300; }
@media (min-width: 768px) { .ftr { margin-top: 112px; } }
@media (min-width: 1024px) { .ftr-contacts { padding-top: 4px; } }
@media (min-width: 1280px) {
  .ftr-rule { margin-bottom: 0; }
  .ftr-rule svg, .ftr-line { display: block; }
  .ftr-main { flex-direction: row; justify-content: space-between; gap: 24px; width: 100%; max-width: 1520px; margin-inline: auto; padding-block: 80px; }
  .ftr-about { max-width: 300px; }
  .ftr-logo { max-width: 85%; }
  .ftr-columns, .ftr-contact { margin-top: 0; }
  .ftr-follow { display: flex; flex-direction: column; margin: 0; }
  .btn.ftr-cta { display: flex; }
  .ftr-bottom-in { flex-direction: row; align-items: center; justify-content: space-between; gap: 0; }
  .ftr-legal .nav-link, .ftr-bottom p { font-size: 17px; }
}
@media (min-width: 1536px) {
  .ftr-mission h2 { font-size: 24px; }
  .ftr-mission p { font-size: 18px; }
  .ftr-columns { gap: 80px; }
  .ftr-grid .nav-link, .ftr-contacts { font-size: 18px; }
}
@media (min-width: 1568px) { .ftr-main { padding-inline: 0; } }

/* ---------- Dialogs (component; site.js, openDialog): a blurred dark overlay, and a panel that fades and zooms in and out. ---------- */
.dialog { position: fixed; inset: 0; z-index: 700; }
.dialog-overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, .7); backdrop-filter: blur(5px); animation: fade-in .15s ease; touch-action: none; }
.dialog-panel {
  position: absolute; top: 50%; left: 50%; max-width: 90vw; max-height: 90vh; translate: -50% -50%;
  overflow: hidden auto; overscroll-behavior: contain; touch-action: pan-y; outline: none;
  background: linear-gradient(to bottom, #4b4b4b, #2f2f2f); box-shadow: 0 8px 20px #000; animation: dialog-in .2s ease;
}
.dialog.is-closing .dialog-overlay { backdrop-filter: none; animation: fade-out .15s ease forwards; }
.dialog.is-closing .dialog-panel { animation: dialog-out .2s ease forwards; pointer-events: none; }
@keyframes fade-in { from { opacity: 0; } }
@keyframes fade-out { to { opacity: 0; } }
@keyframes dialog-in { from { opacity: 0; scale: .95; } }
@keyframes dialog-out { to { opacity: 0; scale: .95; } }
.form-dialog { width: 470px; }
.form-dialog-head { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; height: 190px; overflow: hidden; background: #000; }
.form-dialog-head::before { content: ""; position: absolute; top: 0; right: 0; z-index: 1; width: 50%; height: 8px; background: var(--primary); }
.form-dialog-bg { position: absolute; top: 50%; left: 50%; width: auto; min-width: 100%; height: auto; min-height: 100%; transform: translate(-50%, -50%); object-fit: cover; }
.form-dialog-icon { position: relative; width: 120px; height: auto; margin-bottom: -16px; transform: translateY(16px); }
.form-dialog-icon--plate { width: 48px; margin-bottom: 16px; transform: none; filter: drop-shadow(0 0 10px rgba(255, 255, 255, .55)) drop-shadow(0 0 26px rgba(255, 255, 255, .3)); }
.form-dialog-head h2 { position: relative; width: 100%; text-align: center; font-family: var(--font-book); font-size: 26px; color: #fff; }
.form-dialog-body { margin-top: 16px; padding: 0 20px 40px; }
.form-dialog-slot { min-height: 170px; }
.form-dialog-slot[data-size="consultation"] { height: 255px; }
.form-dialog-slot[data-size="service-booking"] { min-height: 340px; }
.form-dialog-foot { display: flex; justify-content: center; margin-top: 40px; }
.form-dialog-foot .btn { width: fit-content; margin-inline: auto; padding-inline: 40px; font-weight: 100; }
@media (min-width: 768px) { .form-dialog-body { padding: 0 42px 48.5px; } }
/* Closing by the overlay or Escape is the look; the keyboard gets a button too. */
.dialog-x { position: absolute; top: 14px; right: 10px; z-index: 2; display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; color: #fff; opacity: 0; }
.dialog-x:focus-visible { opacity: 1; }
.dialog-round { position: absolute; top: 12px; right: 8px; z-index: 10; display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; border: 3px solid #fff; border-radius: 50%; color: #fff; transition: all .15s cubic-bezier(.4, 0, .2, 1); }
.dialog-round:hover { background: #fff; color: #18181b; }
.dialog-round svg { width: 100%; height: 100%; }
@media (min-width: 768px) { .dialog-round { width: 32px; height: 32px; } }

@media (prefers-reduced-motion: reduce) {
  .btn-glow { display: none; }
  .dialog-overlay, .dialog-panel, .page-loader > div { animation-duration: .01ms !important; }
  .drop-body, .tree-panel, .nav-sticky { transition-duration: .01ms !important; }
}

/* ---------- Tickets forms: theme for the ADP web components ---------- */
.shift-form::part(general-inquiry-modal-form) {
  margin: 0px 0px;
  user-select: none;
  font-family: toyotaType, system-ui, sans-serif !important;
}

.shift-form,
.shift-form::part(form-dialog-modal) {
  font-family: toyotaType, system-ui, sans-serif !important;
}

.shift-form:not(.modal-form)::part(form-input-label) {
  display: none;
}

.shift-form::part(form-input-label) {
  font-weight: 300 !important;
  font-size: 16px !important;
}

@media (min-width: 767px) {
  .shift-form::part(form-vin-input-vin-vin) {
    display: none !important;
  }
}

::part(select-arrow),
::part(form-input-select-icon-container) {
  pointer-events: none !important;
}

.modal-form::part(custom-form-select-option),
.shift-form::part(custom-form-select-option),
.modal-form::part(custom-shift-select-option),
.shift-form::part(custom-shift-select-option) {
  padding-bottom: 0px !important;
  align-items: center;
}

.shift-form::part(phone-country-selection-select-icon-container) {
  display: none !important;
}

.shift-form::part(phone-input-country-selection) {
  width: 50px;
}

.shift-form::part(phone-country-selection-input-select) {
  padding-left: 8px !important;
  text-align: center !important;
  padding-right: 8px !important;
}

::part(phone-country-selection-input-select) {
  border-top-right-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}
::part(form-input-with-country) {
  border-top-left-radius: 0 !important;
  border-bottom-left-radius: 0 !important;
}

.modal-form::part(phone-country-selection-select-container) {
  height: min-content !important;
}

.shift-form:not(.modal-form)::part(vin-validator) {
  color: #c5cbd0;
  border-radius: 4px;
  background-color: white;
}

.shift-form:not(.modal-form)::part(vin-validator):hover {
  color: #9a9c9e;
}

.shift-form:not(.modal-form)::part(form-input)::placeholder,
.shift-form:not(.modal-form)::part(form-input-select)::placeholder,
.shift-form:not(.modal-form)::part(form-input-textarea)::placeholder {
  font-size: 14px;
  color: #576675;
}

.shift-form:not(.modal-form)::part(form-input),
.shift-form:not(.modal-form)::part(form-input-select) {
  border-radius: 5.55px;
  border-color: #c5cbd0;
}

.shift-form::part(phone-country-selection-input-select),
.shift-form::part(form-input-prefix) {
  font-size: 14px;
  color: black;
  font-weight: 300;
}

.shift-form::part(form-input),
.shift-form::part(form-input-select) {
  height: 47px !important;
  font-weight: 300 !important;
}

.shift-form:not(.modal-form)::part(form-input-textarea) {
  color: black;
  font-size: 14px;
  border-radius: 5.55px;
  height: 95px !important;
  border-color: #c5cbd0;
  font-weight: 300 !important;
}

.shift-form:not(.modal-form)::part(form-input-textarea)::placeholder {
  font-size: 14px;
  color: #576675;
  font-weight: 300 !important;
}

.shift-form::part(form-input)::placeholder,
.shift-form::part(form-input-select)::placeholder {
  font-weight: 300 !important;
}

.shift-form::part(form-error-message) {
  margin-top: -2px !important;
}

.shift-form::part(container) {
  margin-left: auto;
  margin-right: auto;
  max-width: 700px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.shift-form:not(.modal-form)::part(container) {
  gap: 20px;
}

.shift-form:not(.modal-form)::part(inputs_2_col_wrapper) {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

@media (min-width: 640px) {
  .shift-form:not(.modal-form)::part(inputs_2_col_wrapper) {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.modal-form::part(form-loader-icon) {
  stroke: #bdbdbd;
}

.modal-form::part(form-input-label) {
  color: #9d9d9d !important;
}

.modal-form::part(form-input),
.modal-form::part(form-input-select) {
  border-radius: 0px;
  color: #9d9d9d !important;
  background-color: #282828;
  border-color: #4b4b4b !important;
}

.modal-form::part(phone-country-selection-input-select),
.modal-form::part(form-input-prefix) {
  color: #9d9d9d !important;
  font-weight: 300;
  font-size: 16px;
}

.shift-form::part(form-select-container) {
  z-index: 14;
}

.shift-form::part(form-select-container-downwards) {
  margin-top: 15px !important;
}

.shift-form::part(form-select-option) {
  height: 40px;
  padding-bottom: 12px;
}

.shift-form::part(attachments-file-trigger) {
  border: none;
  color: #626b79;
  font-weight: 600 !important;
  background-color: #e8e9ea;
}

.shift-form::part(attachments-container) {
  max-width: 300px;
}

.modal-form::part(form-select-container) {
  z-index: 30;
  max-height: 175px;
  border-radius: 0px;
  margin-top: 13px !important;
  color: #9d9d9d !important;
  background-color: #282828;
  border-color: #4b4b4b !important;
  -webkit-overflow-scrolling: touch !important;
}

.modal-form::part(shift-select-container) {
  max-height: 175px;
  border-radius: 0px;
  color: #9d9d9d !important;
  background-color: #282828;
  border-color: #4b4b4b !important;
  -webkit-overflow-scrolling: touch !important;
}

@supports (-webkit-touch-callout: none) {
  .radix-dialog-content {
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
}

.modal-form::part(form-select-option),
.modal-form::part(shift-select-option) {
  color: #9d9d9d;
  font-size: 16px;
}

.modal-form::part(select-arrow) {
  fill: #9d9d9d !important;
}
.modal-form::part(form-select-option-selected),
.modal-form::part(shift-select-option-selected) {
  background-color: #141414 !important;
  color: #9d9d9d !important;
}

.modal-form::part(form-select-option):hover,
.modal-form::part(shift-select-option):hover {
  background-color: #141414;
}

.shift-form::part(dialog-wrapper) {
  font-weight: 300;
}

.modal-form::part(dialog-wrapper) {
  color: white;
  background-color: #3f3f3f;
}

.modal-form::part(form-select-spinner),
.modal-form::part(shift-select-spinner) {
  filter: invert(1) opacity(0.5);
}

.shift-form::part(dialog-close-button) {
  font-weight: 300;
  margin-top: 16px;
  margin-left: auto;
  line-height: 15rem;
  margin-right: auto;
}

.modal-form::part(form-input):-webkit-autofill,
.modal-form::part(form-input):-webkit-autofill:hover,
.modal-form::part(form-input):-webkit-autofill:focus,
.modal-form::part(form-input):-webkit-autofill:active,
.modal-form::part(form-input-select):-webkit-autofill,
.modal-form::part(form-input-select):-webkit-autofill:hover,
.modal-form::part(form-input-select):-webkit-autofill:focus,
.modal-form::part(form-input-select):-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 30px #282828 inset !important;
  -webkit-text-fill-color: #9d9d9d !important;
  background-clip: padding-box;
  border: 1px solid #4b4b4b;
}

.modal-form::part(form-input):-webkit-autofill,
.modal-form::part(form-input-select):-webkit-autofill {
  -webkit-text-fill-color: #9d9d9d !important;
}

.modal-form::part(form-input)::placeholder,
.modal-form::part(form-input-select)::placeholder {
  color: #7d7d7d;
}

.modal-form::part(form-select-container),
.modal-form::part(shift-select-container) {
  overflow-y: auto;
  scrollbar-width: thin; 
  scrollbar-color: #ffffff #2b2b2b; 
}

.modal-form::part(form-select-container)::-webkit-scrollbar,
.modal-form::part(shift-select-container)::-webkit-scrollbar {
  width: 6px;
}

.modal-form::part(form-select-container)::-webkit-scrollbar-track,
.modal-form::part(shift-select-container)::-webkit-scrollbar-track {
  background: #2b2b2b; 
  border-radius: 10px;
}

.modal-form::part(form-select-container)::-webkit-scrollbar-thumb,
.modal-form::part(shift-select-container)::-webkit-scrollbar-thumb {
  background-color: #ffffff; 
  border-radius: 999px;
  min-height: 40px;
}

.modal-form::part(form-select-container)::-webkit-scrollbar-thumb:hover,
.modal-form::part(shift-select-container)::-webkit-scrollbar-thumb:hover {
  background-color: #e5e5e5;
}

/* ---------- Sections ---------- */
.red { color: var(--primary); }
.heading { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 16px; }
.heading h2, .heading h1 { max-width: min(80vw, 95%); font-size: 26px; line-height: 150%; font-weight: 300; text-transform: uppercase; }
.heading::after { content: ""; flex-grow: 1; height: 39px; background: linear-gradient(to right, rgba(0, 0, 0, .15), transparent) no-repeat 0 50% / 100% 2px; }
.heading--centered::before { content: ""; flex-grow: 1; height: 39px; background: linear-gradient(to left, rgba(0, 0, 0, .15), transparent) no-repeat 0 50% / 100% 2px; }
.heading:has(+ .heading-desc) { margin-bottom: 0; }
.heading-desc { margin-block: 28px 16px; text-align: justify; }
@media (min-width: 768px) {
  .heading { gap: 16px; margin-bottom: 24px; }
  .heading-desc { margin-bottom: 24px; }
  .heading h2, .heading h1 { max-width: min(80vw, 95%); font-size: 40px; }
  .heading::after { height: 60px; margin-inline-start: -4px; background: var(--tri-grey) no-repeat 0 50% / 10px 10px, linear-gradient(to right, rgba(0, 0, 0, .15), transparent) no-repeat 4px 50% / calc(100% - 4px) 2px; }
  .heading--centered::before { height: 60px; margin-inline-end: -4px; background: var(--tri-grey-back) no-repeat 100% 50% / 10px 10px, linear-gradient(to left, rgba(0, 0, 0, .15), transparent) no-repeat 0 50% / calc(100% - 4px) 2px; }
}

/* A line that runs from a banner heading to the edge of the screen, with a small triangle at its start. */
.line-content { display: flex; align-items: flex-start; gap: 16px; }
.line-before { position: relative; display: none; flex-shrink: 0; width: 8px; height: 1px; background: rgba(255, 255, 255, .8); opacity: 0; }
.line-after { position: relative; flex: 1; flex-shrink: 0; height: 1px; background: linear-gradient(to right, rgba(255, 255, 255, .8), transparent); }
.line-after::before, .line-before::after { content: ""; position: absolute; top: -4.5px; width: 10px; height: 10px; background: var(--tri) no-repeat 50% / 10px 10px; }
.line-after::before { left: -4px; }
.line-before::after { right: -4px; transform: rotate(180deg); }
@media (min-width: 640px) {
  .line-before { display: block; }
  .line-after { background: rgba(255, 255, 255, .8); }
}
@media (min-width: 1568px) { .line-before { width: calc(((100% - var(--container)) / 2) - 16px); } }
@media (min-width: 1600px) { .line-before { opacity: 1; } }

/* Carousels (component; site.js, carousel): a view, and a track of slides that a mouse or a finger can drag. */
.carousel { overflow: hidden; touch-action: pan-y pinch-zoom; }
.carousel-track { display: flex; }
.carousel-track > * { flex: 0 0 100%; min-width: 0; }
.carousel img { -webkit-user-drag: none; user-select: none; }
.carousel.is-held { user-select: none; }
.dots { display: flex; align-items: center; justify-content: center; }
.dots[hidden] { display: none; }

/* Banner: the full-width picture at the top of a page. */
.banner { position: relative; width: 100%; aspect-ratio: .46; overflow: hidden; }
@media (min-width: 640px) { .banner { aspect-ratio: 16 / 9; max-height: calc(100vh - 50px); } }
@media (min-width: 1024px) { .banner { min-height: 640px; } }
.banner-social { display: none; }
@media (min-width: 1024px) {
  .banner-social { position: absolute; bottom: 20px; left: 50%; z-index: 10; transform: translateX(-50%); display: flex; justify-content: flex-end; gap: 8px; padding-inline: 24px; pointer-events: none; }
  .banner-social a { position: relative; display: flex; align-items: center; justify-content: center; width: 50px; height: 50px; border: 1px solid #fff; pointer-events: auto; }
  .banner-social img { width: 60%; height: 60%; object-fit: cover; }
  .banner-social img:first-child { position: absolute; }
  .banner-social img:last-child, .banner-social a:hover img:first-child { opacity: 0; }
  .banner-social a:hover img:last-child { opacity: 1; }
}
@media (min-width: 1280px) { .banner-social { gap: 12px; } }
@media (min-width: 1568px) { .banner-social { padding-inline: 0; } }

/* Fading banner ([data-hero]): pictures and texts cross-fade; the story bar moves them on. Text can be selected; a drag anywhere else swipes. */
.hero .carousel, .hero .carousel-track { position: absolute; inset: 0; height: 100%; cursor: grab; }
.hero .carousel.is-held { cursor: grabbing; }
.story { position: absolute; bottom: 32px; left: 50%; z-index: 10; display: flex; justify-content: center; gap: 4px; width: 100%; max-width: 80vw; height: 4px; transform: translateX(-50%); }
.story button { position: relative; flex: 1; height: 100%; }
.story button::before { content: ""; position: absolute; inset: -10px 0; }
.story button::after { content: ""; position: absolute; inset: 0; border-radius: 999px; background: rgba(123, 123, 123, .7); }
.story span { position: absolute; inset: 0 auto 0 0; z-index: 1; width: 0; border-radius: 999px; background: #fff; transition: none; }
.story .is-past span { width: 100%; }
.story .is-active span { width: 100%; transition: width var(--story, 5000ms) linear; }
.story-pause { position: absolute; bottom: 48px; left: 50%; z-index: 20; padding: 8px 16px; background: #fff; color: #000; font-size: 14px; opacity: 0; pointer-events: none; transform: translateX(-50%); }
.story-pause:focus-visible { opacity: 1; pointer-events: auto; }
@media (min-width: 640px) {
  .story { max-width: 500px; }
}
@media (min-width: 768px) { .story { gap: 8px; } }
@media (min-width: 1024px) {
  .story { bottom: 80px; }
  .story-pause { bottom: 96px; }
}

/* Image link cards. */

/* News: one lead story and a scrolling list on phones; pages that cross-fade from 768px. Each story opens in a dialog. */

/* Pager: previous, a dot per page, next. */

/* Story dialog: a news story opened in full. */
.story-dialog { display: flex; flex-direction: column; gap: 16px; width: 90vw; padding: 16px; color: #fff; }
.story-dialog h2 { font-size: 24px; line-height: calc(2 / 1.5); font-weight: 300; }
.story-dialog .dialog-round { top: 24px; right: 24px; box-shadow: 0 1px 3px rgba(0, 0, 0, .3), 0 1px 2px -1px rgba(0, 0, 0, .3); }
@media (min-width: 768px) { .story-dialog .dialog-round { top: 32px; right: 32px; } }
@media (min-width: 640px) { .story-dialog { width: 650px; } }
@media (min-width: 768px) { .story-dialog { width: 700px; padding: 24px; } .story-dialog h2 { font-size: 30px; } }
@media (min-width: 1024px) { .story-dialog { width: 800px; } }
@media (min-width: 1280px) { .story-dialog { width: 900px; } }

/* Option buttons that switch between forms. */
.options .btn--outline:not(:hover, :active) { border-color: #000; }

/* Panels that slide sideways past each other; the stack keeps the open one's height. */

/* Test drive and contact: photo with options, and the form card beside it. */

/* A Tickets form written into a page, with its submit button under it. */
.form-embed { display: flex; flex-direction: column; align-items: stretch; justify-content: center; gap: 32px; }
.form-slot { display: flex; flex-direction: column; justify-content: center; min-height: 440px; }
.form-slot.is-ready { min-height: 0; }
.form-embed [data-form-submit] { margin-inline: auto; font-weight: 300; }
@media (min-width: 640px) { .form-slot { min-height: 304px; } .form-slot.is-ready { min-height: 0; } }

/* Google reCAPTCHA (used by the Tickets forms) keeps its badge out of sight, as on the Next.js site. */
.grecaptcha-badge { opacity: 0 !important; }

@font-face { font-family: montserratThin; src: url(/fonts/Montserrat-Thin.woff2) format("woff2"); font-weight: 100; font-display: swap; }
@font-face { font-family: poiret; src: url(/fonts/PoiretOne.woff2) format("woff2"); font-weight: 400; font-display: swap; }
:root { --hev-gradient: linear-gradient(to right, #00427f, #0077e5); }
.hev-gradient { background: var(--hev-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hev-blue { color: #004280; }
.petrol-red { color: #f30000; text-shadow: 0 0 1px rgba(0, 0, 0, .3); }
.full-img { width: 100%; }

/* Banner texts: the mobile title over the picture, and the desktop line, title and actions. Shared by every page banner. */
.banner-img, .banner-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.banner-texts { position: absolute; inset: 0; z-index: 1; overflow: hidden; }
.banner-texts > :not(.banner-shade) { position: relative; }
.banner-mobile { padding-top: 40%; }
.banner-mobile .line-content { width: 100%; margin-top: 12px; padding-inline-start: 24px; }
.banner-mobile-title { max-width: 90%; transform: translateY(-20px); font-size: 36px; line-height: 36px; font-weight: 300; color: #fff; text-transform: uppercase; }
.banner-mobile-desc { width: 100%; margin: 4px auto 0; padding-inline: 24px; font-size: 14px; font-weight: 300; color: #fff; }
.banner-mobile-ctas { display: flex; justify-content: center; margin-top: 7%; }
.banner-mobile .btn, .banner-desktop .btn { font-weight: 300; }
.banner-mobile .btn { font-size: 16px; }
.banner-texts .btn--outline { color: #fff; }
.banner-texts .btn--outline:not(:hover, :active) { border-color: #fff; }
.banner-desktop { display: none; }
.banner-ctas { display: flex; }
.packed { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
@media (min-width: 640px) {
  .banner-mobile { display: none; }
  .banner-desktop { display: flex; flex-direction: column; width: 100%; height: 100%; }
}
@media (min-width: 1568px) { .packed { padding-inline: 0; } }

/* Swipe rows (component): <div class="carousel swipe" data-swipe="md"><div class="carousel-track ...">items</div></div> is the
   items' own layout from 768px ("lg": from 1024px) and below that an endless row, one item at a time, with dots under it. */
.swipe + .dots { gap: 12px; margin-top: 32px; }
.dots button { position: relative; width: 10px; height: 10px; border-radius: 50%; background: #8c8c8c; transition: background .3s cubic-bezier(.4, 0, .2, 1); }
.dots button::before { content: ""; position: absolute; inset: -7px -1px; }
.dots button[aria-current="true"] { background: var(--primary); }
@media (max-width: 767px) {
  .swipe[data-swipe="md"] { overflow-x: clip; overflow-y: visible; margin-inline: -24px; }
  .swipe[data-swipe="md"] > .carousel-track { display: flex; align-items: stretch; gap: 0; margin: 0; }
  .swipe[data-swipe="md"] > .carousel-track > * { flex: 0 0 calc(100% - 48px); margin: 0 24px; }
}
@media (max-width: 1023px) {
  .swipe[data-swipe="lg"] { overflow-x: clip; overflow-y: visible; margin-inline: -24px; }
  .swipe[data-swipe="lg"] > .carousel-track { display: flex; align-items: stretch; gap: 0; margin: 0; }
  .swipe[data-swipe="lg"] > .carousel-track > * { flex: 0 0 calc(100% - 48px); margin: 0 24px; }
}
@media (min-width: 768px) { .swipe[data-swipe="md"] { overflow: visible; touch-action: auto; } }
@media (min-width: 1024px) { .swipe[data-swipe="lg"] { overflow: visible; touch-action: auto; } }

/* Paged rows (component): a [data-paged] carousel stops at its ends; arrows and a dot per stop under it; cards out of view fade. */
.carousel[data-paged] { overflow: visible; }
.carousel[data-paged] > .carousel-track > * { transition: opacity .15s cubic-bezier(.4, 0, .2, 1); }
.carousel[data-paged] > .carousel-track > .is-out { opacity: 0; pointer-events: none; }

/* Banner shades: each page banner darkens its picture its own way. */
.banner-shade { position: absolute; inset: 0; pointer-events: none; }

/* National hero (line-led): description on the line, then the title and its actions. */

/* Album (component): photos in a dialog, moved on every seven seconds by the bar under them. */
.album { display: flex; flex-direction: column; gap: 16px; width: 90vw; max-width: 91.6667%; max-height: 91.6667%; padding: 16px; overflow: hidden; }
.album .carousel { flex-shrink: 0; width: 100%; aspect-ratio: 16 / 9; }
.album .carousel-track, .album .carousel-track > * { height: 100%; }
.album img { width: 100%; height: 100%; object-fit: contain; }
.album .dialog-round { top: 24px; right: 24px; border-width: 2px; box-shadow: 0 1px 3px rgba(0, 0, 0, .3), 0 1px 2px -1px rgba(0, 0, 0, .3); }
@media (min-width: 640px) { .album { width: 650px; } }
@media (min-width: 768px) { .album { padding: 24px; } .album .dialog-round { top: 32px; right: 32px; } }
@media (min-width: 1024px) { .album { width: 75vw; } }
@media (min-width: 1536px) { .album { width: 50vw; } }

/* ========== HEV page ========== */
/* Glossy banner (HEV): glass pill links over the picture, each with a blurred ghost of its text in the glass. */
@media (min-width: 640px) { .banner-shade--hev { background: rgba(0, 0, 0, .05); } }
.glossy-desc { max-width: 500px; transform: translateY(-10px); font-size: 14px; font-weight: 300; color: #fff; }
.glossy h1 { font-size: 32px; line-height: 28px; font-weight: 300; color: #fff; text-transform: uppercase; }
.pills { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pills--mobile { margin-top: 16px; padding-inline: 24px; }
.pills--desktop { margin-top: 2%; }
.pill { position: relative; overflow: hidden; padding: 8px 6px; border: 1px solid rgba(255, 255, 255, .3); border-radius: 8.4px; background: rgba(255, 255, 255, .1); box-shadow: 0 8px 30px rgba(0, 0, 0, .08), inset 0 1px 2px rgba(255, 255, 255, .08); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); }
.pill:focus-visible { outline-color: #fff; }
.pill-text, .pill-ghost { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; white-space: nowrap; }
.pill-text { position: relative; z-index: 2; }
.pill-ghost { position: absolute; left: 0; z-index: 1; overflow: hidden; scale: 1.01 1.3; filter: blur(2px); opacity: .3; user-select: none; }
.pill-icon { flex-shrink: 0; width: 12px; height: 12px; object-fit: contain; }
.pill span span { padding-bottom: 2px; font-size: 13px; color: rgba(255, 255, 255, .9); filter: drop-shadow(0 0 12px rgba(255, 255, 255, .8)); }
.glossy-wordmark { position: absolute; right: 0; bottom: 28px; left: 0; z-index: 10; display: none; pointer-events: none; }
.glossy-wordmark img { width: 280px; }
@media (min-width: 640px) {
  .glossy-desktop { margin-top: 110px; }
  .pills { display: flex; flex-wrap: wrap; gap: 12px; }
  .pill { padding: 10px 20px; }
  .pill-icon { width: 18px; height: 18px; }
  .pill span span { font-size: 14px; }
}
@media (min-width: 768px) { .pill { padding-inline: 14px; } .pill span span { font-size: 16px; } }
@media (min-width: 1024px) {
  .glossy-desktop { margin-top: 140px; }
  .glossy-desc { transform: translateY(-14px); font-size: 16px; }
  .glossy h1 { font-size: 47px; line-height: 52px; }
  .pills { gap: 16px; }
  .pills--desktop { margin-top: 3%; }
  .glossy-wordmark { display: block; }
}
@media (min-width: 1280px) { .glossy-desktop { margin-top: 222px; } .glossy-desc { max-width: 750px; font-size: 18px; } }
@media (min-width: 1536px) { .glossy h1 { margin-top: .5%; font-size: 64px; line-height: 68px; } .pills--desktop { margin-top: 2%; } }

/* Comparison (HEV): model tabs; a hybrid and a petrol card, side by side with their figures over the photo from 1024px,
   stacked with the figures under it below that. One model fades out downwards before the next fades in. */
.cmp-body { display: flex; flex-direction: column; margin-top: 16px; }
.cmp-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.cmp-tab { position: relative; display: flex; align-items: center; gap: 8px; width: 100%; height: 52px; padding: 0 6px; overflow: hidden; border: 1px solid #000; background: #fff; transition: color .15s cubic-bezier(.4, 0, .2, 1), background-color .15s cubic-bezier(.4, 0, .2, 1), border-color .15s cubic-bezier(.4, 0, .2, 1); }
.cmp-tab[aria-selected="true"] { border: 0 solid #e4e4e7; background: var(--hev-gradient); }
.cmp-tab-car { display: none; flex-shrink: 0; width: 90px; }
.cmp-tab-name { display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 4px; height: 100%; margin-inline: auto; padding-block: 8px; line-height: 1; }
.cmp-tab-name > img { width: 100%; min-height: 0; margin-inline: auto; object-fit: cover; }
.cmp-tab-hev { display: flex; height: 16px; margin-inline: auto; overflow: hidden; }
.cmp-tab-hev img { flex-shrink: 0; width: auto; height: 16px; }
.cmp-tab .on-dark, .cmp-tab[aria-selected="true"] .on-light { display: none; }
.cmp-tab[aria-selected="true"] .on-dark { display: block; }
.cmp-panels { margin-top: 24px; }
.cmp-panel { display: flex; flex-direction: column; gap: 16px; transition: opacity .25s ease-out, translate .25s ease-out; }
.cmp-panel.is-out { translate: 0 10px; opacity: 0; }
.cmp-card { display: grid; grid-template-columns: minmax(0, 1fr); }
.cmp-photo { position: relative; grid-area: 1 / 1; overflow: hidden; }
.cmp-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cmp-photo::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to right, rgba(0, 0, 0, .8), transparent) left / 60% 100% no-repeat, rgba(0, 0, 0, .2); }
.cmp-photo::after { content: ""; position: absolute; inset: 0 auto 0 0; z-index: 2; width: 5px; background: #1f5dbe; }
.cmp-card--petrol .cmp-photo::after { background: #c10e0f; }
.cmp-text { display: contents; }
.cmp-head { position: relative; z-index: 1; grid-area: 1 / 1; display: flex; flex-direction: column; padding: 4%; }
.cmp-badge { align-self: flex-start; width: auto; height: 16px; }
.cmp-title { display: flex; flex-direction: column-reverse; margin-top: calc(53px + 5%); color: #fff; }
.cmp-title > span:first-child { font-size: 40px; line-height: 1; font-weight: 600; letter-spacing: .025em; }
.cmp-sub { margin-bottom: -6px; font-size: 18px; font-weight: 300; letter-spacing: .15em; }
.cmp-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.cmp-stat { display: flex; flex-direction: column; justify-content: space-between; gap: 2px; width: 100%; padding: 10px 12px; border: 1px solid #fff; color: #fff; background: linear-gradient(to right, #4291da, #062848); background: linear-gradient(to right in oklab, #4291da, #062848); -webkit-backdrop-filter: blur(1px); backdrop-filter: blur(1px); }
.cmp-card--petrol .cmp-stat { background: linear-gradient(to right, #505150, #020202); background: linear-gradient(to right in oklab, #505150, #020202); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.cmp-stat-label { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; font-size: 12px; font-weight: 300; }
.cmp-stat-label img { width: auto; height: 20px; }
.cmp-stat-value { font-size: 28px; line-height: 1; font-weight: 600; }
.cmp-stat-value span { font-size: 13px; font-weight: 300; }
.cmp-stat-delta { display: inline-flex; align-items: center; gap: 4px; width: fit-content; margin-top: 8px; padding: 2px 6px; background: #143822; font-size: 12px; font-weight: 300; color: #48d87d; }
.cmp-stat-delta svg { margin-inline-end: 4px; }
.cmp-pill { grid-row: 3; margin-top: 8px; padding: 8px 12px; background: linear-gradient(to right, #4291da, #062848); background: linear-gradient(to right in oklab, #4291da, #062848); font-size: 13px; font-weight: 300; color: #fff; }
.cmp-vs { display: none; }
.btn.cmp-reserve { width: 100%; min-height: 44px; margin-top: 8px; font-size: 14px; font-weight: 300; }
.btn.cmp-book { display: none; min-width: 260px; min-height: 48px; margin: 32px auto 0; font-size: 16px; font-weight: 300; }
@media (min-width: 768px) {
  .cmp-tabs { display: flex; flex-wrap: wrap; gap: 32px; }
  .cmp-tab { width: 300px; height: 50px; padding-inline: 12px; }
  .cmp-tab-car { display: block; }
  .cmp-tab-name > img { width: 140px; }
}
@media (min-width: 1024px) {
  .cmp-panels { margin-top: 40px; }
  .cmp-panel { flex-direction: row; align-items: stretch; }
  .cmp-card { position: relative; display: block; flex: 1 1 0%; min-width: 0; min-height: 360px; overflow: hidden; }
  .cmp-photo { position: absolute; inset: 0; }
  .cmp-photo::after { width: 10px; }
  .cmp-text { position: relative; z-index: 1; display: flex; flex-direction: column; padding: 4%; }
  .cmp-head { padding: 0; }
  .cmp-badge { height: 24px; }
  .cmp-title { flex-direction: column; margin-top: 5%; }
  .cmp-title > span:first-child { font-size: 55px; }
  .cmp-sub { margin: -6px 0 0; font-size: 23px; }
  .cmp-pill { width: fit-content; height: 37px; margin-top: 16px; padding: 6px 20px; border: 1px solid #fff; background: linear-gradient(to right, rgba(66, 145, 218, .5), rgba(6, 40, 72, .5)); background: linear-gradient(to right in oklab, rgba(66, 145, 218, .5), rgba(6, 40, 72, .5)); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); font-size: 16px; }
  .cmp-stats { display: flex; gap: 12px; margin-top: 24px; }
  /* The petrol card keeps the room of the pill it has none of. */
  .cmp-card--petrol .cmp-stats { margin-top: 82px; }
  .cmp-stat { height: 120px; max-width: 250px; padding: 12px 16px; background: linear-gradient(to right, rgba(66, 145, 218, .3), rgba(6, 40, 72, .3)); background: linear-gradient(to right in oklab, rgba(66, 145, 218, .3), rgba(6, 40, 72, .3)); }
  .cmp-card--petrol .cmp-stat { background: linear-gradient(to right, rgba(0, 0, 0, .5), rgba(0, 0, 0, .3)); }
  .cmp-stat--plain { justify-content: flex-start; gap: 12px; }
  .cmp-stat--plain .cmp-stat-value { font-size: 32px; }
  .cmp-stat--plain .cmp-stat-value span { font-size: 15px; }
  .cmp-stat-label, .cmp-stat-delta { font-size: 14px; }
  .cmp-vs { display: flex; align-items: center; }
  .cmp-vs span { display: flex; flex-shrink: 0; align-items: center; justify-content: center; width: 56px; height: 56px; border: 2px solid #003fc7; border-radius: 50%; background: #fff; font-size: 30px; font-weight: 600; color: #000; }
  .btn.cmp-reserve { display: none; }
  .btn.cmp-book { display: inline-flex; }
}
@media (min-width: 1280px) { .cmp-stat-label { font-size: 16px; } }
@media (min-width: 1536px) {
  .cmp-body { display: grid; grid-template-columns: 1fr auto; align-items: start; }
  .cmp-panels { grid-area: 2 / 1 / 3 / 3; }
  .btn.cmp-book { grid-area: 1 / 2; min-height: 50px; margin: 16px 0 0; }
}
@media (prefers-reduced-motion: reduce) { .cmp-panel { transition: none; } }

.cmp-features { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; margin-top: 40px; }
.cmp-feature h3 { position: relative; display: flex; align-items: center; gap: 12px; font-size: 18px; font-weight: 500; letter-spacing: .025em; color: #1c244b; }
.cmp-feature h3::after { content: ""; position: absolute; bottom: 0; left: 0; width: 100%; height: 2px; background: #0063bf; }
.cmp-feature h3 img { position: relative; z-index: 1; flex-shrink: 0; width: 48px; height: 48px; object-fit: cover; }
.cmp-feature-text { margin-top: 16px; font-size: 14px; font-weight: 300; color: #172640; }
.cmp-feature-text ul { margin-inline-start: 4px; }
.cmp-feature-text li + li { margin-top: 4px; }
.cmp-feature-text li:first-child { font-weight: 600; }
@media (min-width: 1024px) {
  .cmp-features { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 56px; }
  .cmp-feature h3 { font-size: 22px; }
  .cmp-feature h3::after { width: 60%; }
  .cmp-feature h3 img { width: 56px; height: 56px; }
  .cmp-feature-text { margin-top: 24px; font-size: 16px; }
}

/* Numbered list beside a picture (HEV warranty). */
.numbered { display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; gap: 32px; }
.numbered-img img { width: 83%; margin-inline: auto; aspect-ratio: 2208 / 2307; object-fit: cover; }
.numbered .numbered-list { margin: 8px 0 0; list-style: none; }
.numbered-list li { display: flex; align-items: flex-start; gap: 16px; padding-block: 16px; border-bottom: 1px solid #d9d9d9; }
.numbered-list li:last-child { border-bottom: 0; }
.numbered-no { flex-shrink: 0; width: 76px; font-family: montserratThin, var(--font); font-size: 60px; line-height: 1; font-weight: 100; background: var(--hev-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.numbered-list h3 { font-size: 18px; letter-spacing: .025em; color: #000; text-transform: uppercase; }
.numbered-list p { margin-top: 4px; font-size: 14px; line-height: 1.625; font-weight: 300; color: #404040; }
@media (min-width: 768px) { .numbered { grid-template-columns: repeat(2, minmax(0, 1fr)); } .numbered .heading h2 { font-size: 42px; } }
@media (min-width: 1024px) {
  .numbered { gap: 48px; }
  .numbered .numbered-list { margin-top: 16px; }
  .numbered-list li { gap: 24px; padding-block: 20px; }
  .numbered-no { width: 96px; font-size: 78px; }
  .numbered-list h3 { font-size: 20px; }
}

/* Mosaic gallery header: a wide picture with two marks, a heading and a line. */
.mosaic-hero { position: relative; margin-top: 8px; isolation: isolate; }
.mosaic-hero-bg { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; }
.mosaic-hero-in { display: flex; flex-direction: column; align-items: center; justify-content: center; padding-block: 40px; text-align: center; }
.mosaic-hero-marks { display: flex; align-items: center; gap: 64px; }
.mosaic-hero-marks .mark-one { width: auto; height: 32px; }
.mosaic-hero-marks .mark-two { width: auto; height: 24px; }
.mosaic-hero h3 { margin-top: 24px; font-size: 16px; font-weight: 300; color: #fff; text-transform: uppercase; text-shadow: 1px 1px 10px #000; }
.mosaic-hero p { max-width: 80%; margin-top: 16px; font-size: 12px; font-weight: 300; color: rgba(255, 255, 255, .85); text-shadow: 1px 1px 10px #000; }
@media (min-width: 640px) { .mosaic-hero h3 { font-size: 24px; } .mosaic-hero p { font-size: 14px; } }
@media (min-width: 1024px) {
  .mosaic-hero { margin-top: 16px; }
  .mosaic-hero-in { padding-block: 48px; }
  .mosaic-hero-marks { gap: 80px; }
  .mosaic-hero-marks .mark-one { height: 48px; }
  .mosaic-hero-marks .mark-two { height: 32px; }
  .mosaic-hero h3 { margin-top: 32px; font-size: 34px; }
  .mosaic-hero p { max-width: 60%; margin-top: 24px; font-size: 16px; }
}
@media (min-width: 1280px) { .mosaic-hero h3 { font-size: 38px; } }

/* Hybrid technology: a diagram whose parts open their labels one at a time, and an accordion of the parts, below 1024px;
   from there a labelled diagram and the parts as cards. */
.tech { margin-top: 24px; }
.tech-diagram { display: none; width: 100%; aspect-ratio: 3013 / 1296; object-fit: cover; }
.tech-mobile { position: relative; margin-block: 24px; }
.tech-mobile-img { width: 100%; aspect-ratio: 440 / 249; object-fit: cover; }
.hotspot-line { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hotspot-line line { stroke: #0063bf; stroke-width: 3; vector-effect: non-scaling-stroke; scale: 0; transition: scale .5s ease-out; }
.hotspot-line:has(+ .hotspot[aria-pressed="true"]) line { scale: 1; }
.hotspot { position: absolute; display: flex; transition: all .5s cubic-bezier(.4, 0, .2, 1); }
.hotspot--left { flex-direction: row-reverse; }
.hotspot::after { content: ""; position: absolute; bottom: 0; left: 0; z-index: 3; width: 100%; height: 3px; background: #0063bf; opacity: 0; transition: opacity .5s cubic-bezier(.4, 0, .2, 1); }
.hotspot--top::after { top: 0; bottom: auto; }
.hotspot-icon { position: relative; z-index: 1; display: flex; flex-shrink: 0; height: 40px; overflow: hidden; }
.hotspot-icon img { flex-shrink: 0; max-width: none; width: auto; height: 40px; }
.hotspot-label { position: relative; z-index: 2; height: 40px; overflow: hidden; }
.hotspot-label > span { display: flex; align-items: center; justify-content: center; height: 40px; margin-inline-start: -350px; padding-inline: 16px; background: #fff; font-size: 14px; line-height: 1.2; white-space: nowrap; opacity: 0; transition: all .5s cubic-bezier(.4, 0, .2, 1); }
.hotspot[aria-pressed="true"] { z-index: 1; box-shadow: 2.73px 7.23px 20.72px 0 rgba(56, 56, 56, .17); }
.hotspot[aria-pressed="true"]::after { opacity: 1; }
.hotspot[aria-pressed="true"] .hotspot-label > span { margin-inline-start: 0; opacity: 1; }
.hotspot--engine { top: 15%; left: 8%; } .hotspot--engine[aria-pressed="true"] { left: 10%; }
.hotspot--tire { left: 10%; bottom: 7%; } .hotspot--tire[aria-pressed="true"] { left: 6%; }
.hotspot--battery { top: 8%; right: 10%; } .hotspot--battery[aria-pressed="true"] { right: 5%; }
.hotspot--inverter { top: 0; right: 45%; } .hotspot--inverter[aria-pressed="true"] { right: 30%; }
.hotspot--motor { right: 22%; bottom: 5%; } .hotspot--motor[aria-pressed="true"] { right: 17%; }
@media (min-width: 640px) {
  .hotspot-icon { width: 7vw; height: 7vw; }
  .hotspot-icon img { width: 100%; height: 100%; }
  .hotspot-label, .hotspot-label > span { height: 7vw; }
  .hotspot-label > span { padding-inline: 20px; }
}
@media (min-width: 768px) { .hotspot-label > span { font-size: 16px; } }
/* On phones an open label takes room: the icons it would cover step aside. */
@media (max-width: 639px) {
  .hotspot-label > span { padding-inline: 12px; font-size: 13px; }
  .tech-mobile:has(.hotspot--engine[aria-pressed="true"]) .hotspot--inverter { top: -20px; }
  .tech-mobile:has(.hotspot--tire[aria-pressed="true"]) .hotspot--motor { right: 8%; }
  .tech-mobile:has(.hotspot--motor[aria-pressed="true"]) .hotspot--tire { left: 3%; }
}
@media (max-width: 399px) {
  .hotspot--inverter[aria-pressed="true"] { top: -18px; }
  .tech-mobile:has(.hotspot--battery[aria-pressed="true"]) .hotspot--inverter { right: 54%; }
}
.parts { margin-top: 20px; }
.part { position: relative; margin-bottom: 8px; padding-inline: 20px; overflow: hidden; isolation: isolate; color: #fff; }
.part-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.part::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to bottom, rgba(0, 0, 0, .5), rgba(0, 0, 0, .8)); transition: opacity .5s cubic-bezier(.4, 0, .2, 1); }
.part::after { content: ""; position: absolute; inset: auto 0 0; z-index: -1; height: 75%; background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, .7)); opacity: 0; transition: opacity .5s cubic-bezier(.4, 0, .2, 1); }
.part.is-open::before { opacity: 0; }
.part.is-open::after { opacity: 1; }
.part h3 { display: flex; }
.part-toggle { display: flex; flex: 1; align-items: flex-start; justify-content: space-between; gap: 16px; padding-block: 18px; text-align: left; font-size: 18px; font-weight: 500; text-transform: uppercase; }
.part-toggle:focus-visible { outline-color: #fff; outline-offset: -6px; }
.part-title { letter-spacing: .025em; transition: all .5s cubic-bezier(.4, 0, .2, 1); }
.part.is-open .part-title { padding-top: 160px; }
.part-arrow { display: flex; flex-shrink: 0; align-items: center; justify-content: center; width: 32px; height: 32px; border: 1px solid #fff; }
.part-arrow svg { width: 24px; height: 24px; rotate: 90deg; transition: rotate .5s cubic-bezier(.4, 0, .2, 1); }
.part.is-open .part-arrow { border: 0; background: var(--hev-gradient); }
.part.is-open .part-arrow svg { rotate: 270deg; }
.part-panel { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows .5s ease-out, visibility 0s .5s; }
.part.is-open .part-panel { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows .5s ease-out; }
.part-panel > div { min-height: 0; overflow: hidden; }
.part-panel p { padding-bottom: 24px; font-size: 14px; line-height: 20px; font-weight: 300; }
.part-cards { display: none; }
.part-card { display: flex; flex-direction: column; overflow: hidden; background: #fff; box-shadow: .86px 15.56px 24.37px rgba(38, 38, 38, .17); }
.part-card > img { width: 100%; aspect-ratio: 280 / 170; object-fit: cover; }
.part-card-bar { width: 50%; height: 8.5px; margin-inline-start: auto; background: var(--hev-gradient); }
.part-card-text { padding: 8px 12px 12px; }
.part-card h3 { font-size: 16px; line-height: 1.25; font-weight: 600; }
.part-card p { font-size: 14px; font-weight: 300; }
@media (min-width: 1024px) {
  .tech { margin-top: 50px; }
  .tech-diagram { display: block; margin-top: 80px; }
  .tech-mobile, .parts { display: none; }
  .part-cards { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; margin-top: 32px; }
}
@media (prefers-reduced-motion: reduce) { .hotspot-line line, .hotspot, .hotspot::after, .hotspot-label > span, .part::before, .part::after, .part-title, .part-arrow svg, .part-panel, .part.is-open .part-panel { transition: none; } }

/* Stat cards (HEV history). */
.stat-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 24px; }
.stat-card { display: flex; background: #fff; box-shadow: .86px 15.56px 24.37px rgba(38, 38, 38, .12); }
.stat-card::before { content: ""; flex-shrink: 0; width: 4px; background: var(--hev-gradient); }
.stat-card > div { display: flex; flex-direction: column; gap: 4px; padding: 16px; }
.stat-card p { font-size: 12px; font-weight: 300; color: #000; }
.stat-card .stat-card-value { font-size: 28px; font-weight: 700; color: var(--ink); }
.history-map img { width: 100%; margin-top: 32px; aspect-ratio: 1568 / 6115; object-fit: cover; pointer-events: none; }
@media (min-width: 1024px) {
  .stat-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 40px; }
  .stat-card > div { padding: 20px 24px; }
  .stat-card p { font-size: 18px; }
  .stat-card .stat-card-value { font-size: 40px; }
  .history-map img { margin-top: 40px; aspect-ratio: 4641 / 3135; }
}

/* Inquiry form over a wide picture (HEV, dealer pages). */
.inquiry { padding-bottom: 24px; }
.inquiry-bg { position: relative; width: 100%; background: #000; }
.inquiry-img { display: none; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.inquiry-card { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; width: 100%; padding: 32px 24px 56px; background: #fff; box-shadow: 0 0 30px 0 rgba(13, 16, 45, .07), 0 23px 46px -11px rgba(13, 16, 45, .1); }
.inquiry-card .toyota-mark { width: 45px; height: 45px; }
.inquiry-card h2 { font-size: 30px; color: #1c244b; text-transform: uppercase; }
.inquiry-sub { margin-bottom: 16px; font-size: 16px; font-weight: 300; color: #172640; }
.inquiry-card .form-embed { width: 100%; gap: 37px; }
.inquiry-card .form-slot { justify-content: flex-start; height: 367px; min-height: 0; }
@media (min-width: 640px) { .inquiry-card .form-slot { height: 233px; } }
@media (min-width: 768px) { .inquiry-card { padding-inline: 32px; } }
@media (min-width: 1024px) {
  .inquiry { padding-bottom: 0; }
  .inquiry-bg { aspect-ratio: 1920 / 667; padding: 79px 0 92px; }
  .inquiry-img { display: block; }
  .inquiry-card { max-width: 666px; margin: 0 24px 0 auto; padding: 48px; }
  .inquiry-card .toyota-mark { display: none; }
}
@media (min-width: 1536px) { .inquiry-card { margin: 0 0 0 55%; } }

/* ========== About page ========== */
/* History timeline: an endless carousel of framed photos on a dashed line, one centred at a time; its story fades in below. */
.timeline-stage { position: relative; aspect-ratio: 1.77; width: 100%; margin-top: 40px; overflow-x: clip; }
.timeline-line { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.timeline-view, .timeline-view .carousel-track { position: relative; width: 100%; height: 100%; }
.timeline-view:focus-visible { outline-offset: -4px; }
.timeline-view .timeline-slide { display: flex; flex: 0 0 100%; align-items: center; justify-content: center; }
.timeline-photo { position: relative; width: 100%; }
.timeline-photo img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.timeline-photo::after { content: ""; position: absolute; inset: auto 0 0; height: 25%; background: linear-gradient(to top, rgba(0, 0, 0, .2), transparent); }
.timeline-nav { position: absolute; top: 100%; left: 0; z-index: 2; display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; margin-top: 16px; }
.timeline-dot { position: relative; width: 10px; height: 10px; border-radius: 999px; background: #8c8c8c; transition: background .3s cubic-bezier(.4, 0, .2, 1); }
.timeline-dot::before { content: ""; position: absolute; inset: -7px -6px; }
.timeline-dot[aria-current="true"] { background: var(--primary); }
.timeline-prev, .timeline-next { display: none; flex-shrink: 0; align-items: center; justify-content: center; width: 38px; height: 38px; border: 0 solid #fff; color: #fef2f2; transition: all .15s cubic-bezier(.4, 0, .2, 1); }
.timeline-prev { border-width: 1px; }
.timeline-next { background: var(--primary); }
@media (hover: hover) { .timeline-next:hover { background: rgba(193, 15, 16, .9); } }
.timeline-stories { display: grid; width: calc(100vw - 32px); margin: 16px 0 0 16px; }
.timeline-story { grid-area: 1 / 1; min-width: 0; opacity: 0; visibility: hidden; transition: opacity .3s cubic-bezier(.4, 0, .2, 1), visibility .3s; }
.timeline-story.is-active { opacity: 1; visibility: visible; }
.timeline-story-in { display: flex; flex-direction: column; }
.timeline-story h3 { display: flex; flex-shrink: 0; align-items: baseline; font-size: 90px; }
.timeline-story small { translate: 0 -6px; font-size: 20px; font-weight: 300; }
.timeline-story h4 { font-weight: 600; }
.timeline-story .paragraph { margin-top: 8px; }
@media (min-width: 768px) {
  .timeline-stage { aspect-ratio: 3.119; }
  .timeline-view .timeline-slide { flex-basis: 70vw; padding-inline: 6.5vw; }
  .timeline-nav { gap: 16px; height: 0; margin: 0; translate: 0 -40px; }
  .timeline-dot { width: 13px; height: 13px; background: #fff; }
  .timeline-prev, .timeline-next { display: flex; }
}
@media (min-width: 1024px) {
  .timeline-stage { aspect-ratio: 3.78; }
  .timeline-view .timeline-slide { flex-basis: 60vw; }
  .timeline-story-in { flex-direction: row; align-items: flex-start; gap: 45px; margin-inline: auto; }
  .timeline-story h3 { font-size: 132px; }
  .timeline-story small { font-size: 26px; }
  .timeline-story h4 { margin-top: 32px; font-size: 26px; }
  .timeline-story .paragraph { margin-top: 14px; }
}
@media (min-width: 1280px) { .timeline-story-in { width: 70vw; } }
@media (min-width: 1536px) { .timeline-story-in { padding-inline: 100px; } }
@media (prefers-reduced-motion: reduce) { .timeline-story { transition: none; } }

/* Events: two rows of photos running past each other without end, at 50px a second (about.js fills them); the mouse stops both. */
.events-rows { position: relative; width: 100%; overflow: hidden; }
.events-row { display: flex; overflow-x: hidden; }
.events-row:not(.events-row--reverse) { margin-bottom: 16px; }
.events-strip { display: flex; flex: 0 0 auto; align-items: center; animation: events-run var(--events-time, 30s) linear infinite; }
.events-row--reverse .events-strip { animation-direction: reverse; }
.events-rows:hover .events-strip, .events-rows:focus-within .events-strip, .events-rows.is-paused .events-strip { animation-play-state: paused; }
@keyframes events-run { to { transform: translateX(-100%); } }
.event-card { position: relative; flex-shrink: 0; width: 300px; height: 200px; margin-inline: 8px; transform-origin: bottom; transition: scale .5s cubic-bezier(.4, 0, .2, 1); }
.events-row--reverse .event-card { transform-origin: top; }
.event-card img { width: 100%; height: 100%; object-fit: cover; }
.event-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .7), transparent); }
.event-card figcaption { position: absolute; bottom: 12px; left: 12px; z-index: 1; color: #fff; }
.event-card strong, .event-card span { display: block; font-size: 15px; font-weight: 300; }
.event-card strong { font-weight: 700; }
@media (min-width: 768px) {
  .events-rows { margin-bottom: -20px; }
  .events-row { padding-top: 40px; }
  .events-row--reverse { padding: 0 0 40px; }
  .event-card strong { font-size: 18px; }
  .event-card span { font-size: 14px; }
}
@media (min-width: 768px) and (hover: hover) { .event-card:hover { scale: 1.05; } }
@media (prefers-reduced-motion: reduce) {
  .events-strip { animation: none; }
  .events-row { overflow-x: auto; }
  .events-row [aria-hidden] { display: none; }
  .event-card { transition: none; }
}

/* ========== Home page ========== */
/* Home banner: the pictures slide past behind one text; the story bar moves them on. A drag anywhere but on the text swipes. */
.home-hero .carousel, .home-hero .carousel-track { position: absolute; inset: 0; height: 100%; }
.home-hero-slide { position: relative; height: 100%; }
.home-hero-slide picture, .home-hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.home-hero-texts { position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; }
.home-hero-texts [data-selectable] { pointer-events: auto; cursor: text; }
.home-hero-shade { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0, 0, 0, .4), transparent) top / 100% 60% no-repeat; }
.home-hero-texts > :not(.home-hero-shade) { position: relative; }
.home-hero .line-content { width: 100%; margin-top: 40%; padding-inline-start: 24px; }
.home-hero-name { max-width: 75%; transform: translateY(-18px); font-size: 36px; line-height: 40px; font-weight: 600; color: #fff; }
.home-hero-desc { font-size: 14px; font-weight: 300; color: #fff; }
.home-hero-desc--line { display: none; max-width: 500px; transform: translateY(-8px); }
.home-hero-desc--under { margin-top: 28px; }
.home-hero h1 { display: none; margin-top: 2%; font-size: 36px; line-height: 32px; font-weight: 600; color: #fff; }
.home-hero-cta { display: flex; justify-content: center; margin-top: 12%; }
.home-hero-cta .btn { font-size: 16px; font-weight: 300; pointer-events: auto; }
.home-hero .story { z-index: 0; }
@media (min-width: 640px) {
  .home-hero-shade { background: linear-gradient(to right, rgba(0, 0, 0, .5), transparent) left / 40% 100% no-repeat; }
  .home-hero .line-content { margin-top: 110px; padding: 0; }
  .home-hero-name, .home-hero-desc--under { display: none; }
  .home-hero-desc--line, .home-hero h1 { display: block; }
  .home-hero-cta { justify-content: flex-start; margin-top: 3%; }
}
@media (min-width: 1024px) {
  .home-hero .line-content { margin-top: 140px; }
  .home-hero-desc--line { transform: translateY(-14px); font-size: 16px; }
  .home-hero h1 { margin-top: 3%; font-size: 48px; line-height: 52px; }
  .home-hero-cta { margin-top: 5%; }
}
@media (min-width: 1280px) {
  .home-hero .line-content { margin-top: 222px; }
  .home-hero-desc--line { max-width: 750px; font-size: 18px; }
}
@media (min-width: 1536px) { .home-hero h1 { margin-top: 5%; font-size: 85px; line-height: 88px; } }

/* Country cards: each card is one link to that country's site. */
.countries-head { display: grid; grid-template-columns: 1fr 111px; column-gap: 8px; align-items: start; }
.countries-head .heading { min-width: 0; }
.countries-head .heading h2 { max-width: 90%; }
.countries-flags { width: 111px; translate: 0 8px; }
.countries-text { grid-column: 1 / 3; }
.countries { display: flex; flex-direction: column; gap: 32px; width: 100%; margin-top: 28px; }
.country { width: 100%; max-width: 450px; margin-inline: auto; }
.country-link { display: block; }
.country-top { position: relative; }
.country-frame { width: 100%; height: 64px; object-fit: cover; }
.country-name { position: absolute; inset: 0; z-index: 10; display: flex; align-items: center; justify-content: center; color: #fff; }
.country-title { display: none; font-size: 30px; line-height: 1.2; }
.country .btn { border-color: #fff; color: #fff; }
.country-name .btn { position: absolute; top: 50%; left: 50%; translate: -50% -50%; font-size: 16px; font-weight: 300; }
.country .btn:hover, .country .btn:active { border-color: transparent; }
.country-photo { position: relative; margin-top: -2px; overflow: hidden; }
.country-img img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.country-photo::after { content: ""; position: absolute; inset: auto 0 0; height: 50%; background: linear-gradient(to top, rgba(0, 0, 0, .8), transparent); }
.country-photo::before { content: ""; position: absolute; top: 0; right: 0; z-index: 1; display: none; width: 50%; height: 6px; background: var(--primary); opacity: 0; transition: opacity .3s cubic-bezier(.4, 0, .2, 1); }
.country-info { position: absolute; bottom: 12px; left: 50%; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 12px; transform: translateX(-50%); }
.country-counts { display: flex; align-items: center; gap: 8px; }
.country-counts i { flex-shrink: 0; width: 1px; height: 32px; translate: 0 -2px; background: #fff; }
.country-count { display: flex; flex-direction: column; align-items: center; font-size: 14px; line-height: calc(1.25 / .875); font-weight: 300; color: #fff; }
.country-number { font-size: 30px; line-height: 1.2; }
.country .country-go { display: none; gap: 16px; font-size: 16px; }
.country-text::before { content: ""; display: block; height: 1px; margin: 8px 0 12px; background: #000; }
.country-rule { display: none; }
@media (min-width: 768px) {
  .countries-head { grid-template-columns: 1fr 240px; column-gap: 16px; padding-bottom: 24px; }
  .countries-head .heading { grid-column: 1 / 3; margin-bottom: 0; }
  .countries-flags { order: 1; width: 240px; margin-top: 28px; translate: 0 4px; }
  .countries-text { grid-column: auto; margin-top: 28px; }
  .country-photo::before { display: block; }
}
@media (min-width: 1024px) {
  .countries { flex-direction: row; justify-content: space-between; margin-top: 40px; }
  .country { max-width: max-content; }
  .country-title { display: block; padding-bottom: 6px; }
  .country-name .btn { display: none; }
  .country-img img { aspect-ratio: 5 / 6; filter: grayscale(1); transition: scale .5s cubic-bezier(.4, 0, .2, 1), filter .5s cubic-bezier(.4, 0, .2, 1); }
  .country-info { bottom: 20px; }
  .country-count { gap: 4px; font-size: 16px; line-height: 1.5; }
  .country-number { font-size: 34px; }
  .country-counts i { translate: 0 -12px; }
  .country .country-go { display: inline-flex; }
  .country-rule { position: relative; display: block; width: 4px; }
  .country-rule::before { content: ""; position: absolute; top: calc(50% - 150px); width: 1px; height: 300px; background: #000; }
}
@media (min-width: 1280px) { .country-count { font-size: 20px; } }
@media (min-width: 1536px) { .countries-head { column-gap: 32px; } .countries { gap: 44px; } }
@media (hover: hover) {
  .country:hover .country-img img { scale: 1.05; filter: none; }
  .country:hover .country-photo::before { opacity: 1; }
  .country:hover .country-go { border-color: transparent; box-shadow: 1px 3px 12.6px rgba(0, 0, 0, .61); }
  .country:hover .country-go::before { opacity: 1; }
}

/* Advantage cards: photo over title below 1024px; from there title, photo and text, the tall cards two rows high. */
.advs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 40px; }
.adv { position: relative; display: flex; flex-direction: column; overflow: hidden; background: #fff; box-shadow: .37px 6.74px 10.56px 0 rgba(56, 56, 56, .17); }
.adv::before { content: ""; position: absolute; top: 0; right: 0; z-index: 1; width: 50%; height: 4px; background: var(--primary); }
.adv h3 { order: 1; padding-bottom: 12px; text-align: center; font-size: 14px; font-weight: 300; }
.adv-icon { position: absolute; top: 16px; left: 16px; z-index: 1; width: 35px; height: 35px; translate: 0 4px; object-fit: cover; }
.adv-body { display: flex; flex: 1; align-items: center; justify-content: center; padding: 16px 8px 0; }
.adv-img { width: 90%; margin-bottom: -16px; }
.adv-photo { aspect-ratio: 1; overflow: hidden; }
.adv-photo img { width: 100%; height: 100%; object-fit: contain; }
.adv-text { display: none; }
@media (min-width: 768px) { .advs { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 24px; } }
@media (min-width: 1024px) {
  .advs { grid-template-rows: none; gap: 16px; }
  .adv { box-shadow: .93px 16.66px 26.09px 0 rgba(56, 56, 56, .17); }
  .adv::before { height: 7px; }
  .adv--tall { grid-row: span 2; }
  .adv:nth-child(4) { order: 1; }
  .adv:nth-child(5) { order: 2; }
  .adv h3 { order: 0; display: flex; flex-shrink: 0; align-items: center; gap: 16px; padding: 24px 0 0 32px; text-align: start; font-size: 20px; line-height: 1.4; }
  .adv-icon { position: static; width: 40px; min-width: 0; height: 40px; }
  .adv-body { flex-shrink: 0; }
  .adv-photo { transition: scale .3s cubic-bezier(.4, 0, .2, 1); }
  .adv-text { display: block; font-size: 17px; font-weight: 300; }
  .adv--tall .adv-body { flex-direction: column; align-items: stretch; justify-content: space-between; gap: 16px; padding-inline: 0; }
  .adv--tall .adv-img { display: contents; }
  .adv--tall .adv-photo { width: 95%; height: 95%; margin-inline: auto; aspect-ratio: 370 / 272; }
  .adv--tall .adv-text { flex-shrink: 0; padding: 0 32px 32px; }
  .adv--small .adv-body { flex-direction: row-reverse; justify-content: normal; min-width: min-content; padding: 16px 20px 20px 32px; }
  .adv--small .adv-img { display: flex; flex: 50%; align-self: flex-start; align-items: center; justify-content: center; height: 100%; margin: 0; }
  .adv--small .adv-photo { width: 100%; height: 100%; aspect-ratio: 163 / 127; }
  .adv--small .adv-text { flex: 50%; }
}
@media (min-width: 1280px) { .advs { gap: 30px 32px; } }
@media (min-width: 1536px) { .advs { column-gap: 42px; } .adv h3 { font-size: 28px; } }
@media (hover: hover) and (min-width: 1024px) { .adv:hover .adv-photo { scale: 1.05; } }

/* News feed: cards in an endless row that drifts by from 1024px and waits while pointed at; each opens its story. */
.feed { width: 100%; overflow-x: clip; }
.feed .carousel { overflow: visible; }
.feed .carousel-track > .feed-slide { flex-basis: auto; padding-inline-start: 8px; }
.feed-card { display: flex; flex-direction: column; justify-content: space-between; width: 250px; height: 100%; aspect-ratio: 250 / 282.5; overflow: hidden; background: var(--card-gradient); box-shadow: .93px 16.66px 26.09px 0 rgba(56, 56, 56, .3); transform-origin: top; transition: scale .5s cubic-bezier(.4, 0, .2, 1); user-select: none; }
.feed-photo { position: relative; flex-shrink: 0; }
.feed-img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.feed-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0, 0, 0, .7), transparent, rgba(0, 0, 0, .7)); }
.feed-photo h3, .feed-sub { position: absolute; z-index: 1; width: 100%; padding-inline: 12px; font-weight: 300; color: #fff; }
.feed-photo h3 { top: 0; padding-top: 8px; font-size: 12px; }
.feed-sub { bottom: 0; padding-bottom: 12px; font-size: 9px; }
.feed-body { display: flex; flex: 1; flex-direction: column; justify-content: space-between; padding-inline: 12px; color: rgba(255, 255, 255, .74); }
.feed-desc { display: none; font-size: 14px; line-height: calc(1.25 / .875); font-weight: 300; }
.feed-open { position: relative; display: flex; align-items: center; align-self: flex-end; gap: 4px; margin-block: 8px; translate: 0 -2px; font-size: 11px; color: #979797; transition: color .5s cubic-bezier(.4, 0, .2, 1); }
.feed-open::after { content: ""; position: absolute; inset: -5px -4px; }
.feed-open svg { translate: 0 2px; }
.feed-open:focus-visible { outline-color: #fff; }
.feed-dots { display: none; }
@media (hover: hover) { .feed-open:hover { color: #fff; } }
@media (min-width: 768px) {
  .feed .carousel-track > .feed-slide { padding-inline-start: 16px; }
  .feed-card { box-shadow: .93px 16.66px 26.09px 0 rgba(56, 56, 56, .5); }
  .feed-photo h3 { font-size: 22px; }
  .feed-sub { font-size: 19px; }
  .feed-open { font-size: 13px; }
}
@media (min-width: 1024px) {
  .feed-card { width: 300px; aspect-ratio: 300 / 427; }
  .feed-body { padding-block: 16px; }
  .feed-desc { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
  .feed-open { margin: 16px 0 0; translate: none; }
  .feed-dots { display: flex; align-items: center; justify-content: center; gap: 16px; width: 100%; margin-top: 56px; }
  .feed-dots span { width: 16px; height: 16px; border-radius: 50%; background: rgba(137, 137, 137, .33); transition: background .3s cubic-bezier(.4, 0, .2, 1); }
  .feed-dots .is-active { background: var(--primary); }
}
@media (hover: hover) and (min-width: 1024px) { .feed-slide:hover .feed-card { scale: 1.05; } }
@media (prefers-reduced-motion: reduce) { .country-img img, .adv-photo, .feed-card { transition: none; } }

/* A news story in full: its photo, and the stories before and after on either half of it, moved on by the story bar. */
.feed-dialog { display: flex; flex-direction: column; gap: 16px; width: 90vw; padding: 16px; overflow: hidden; color: #fff; }
.feed-dialog-img { position: relative; flex-shrink: 0; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; }
.feed-dialog-img .carousel, .feed-dialog-img .carousel-track, .feed-dialog-img .carousel-track > * { height: 100%; }
.feed-dialog-img img { width: 100%; height: 100%; object-fit: cover; }
.feed-dialog-img button { position: absolute; top: 0; z-index: 1; width: 50%; height: 100%; }
.feed-dialog-img button:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }
.feed-dialog-prev { left: 0; }
.feed-dialog-next { right: 0; }
.feed-dialog .dialog-round { top: 24px; right: 24px; box-shadow: 0 1px 3px rgba(0, 0, 0, .3), 0 1px 2px -1px rgba(0, 0, 0, .3); }
.feed-stories { display: grid; max-height: 350px; margin-top: 4px; overflow: auto; }
.feed-stories:focus-visible { outline-color: #fff; }
.feed-story { grid-area: 1 / 1; opacity: 0; transition: opacity .5s cubic-bezier(.4, 0, .2, 1); pointer-events: none; }
.feed-story.is-active { opacity: 1; pointer-events: auto; }
.feed-story h2 { font-size: 24px; line-height: calc(2 / 1.5); font-weight: 300; }
.feed-story > div { margin-top: 20px; font-weight: 300; }
@media (min-width: 640px) { .feed-dialog { width: 650px; } }
@media (min-width: 768px) {
  .feed-dialog { width: 700px; padding: 24px; }
  .feed-dialog .dialog-round { top: 32px; right: 32px; }
  .feed-story h2 { font-size: 30px; }
  .feed-story > div { font-size: 19px; }
}
@media (min-width: 1024px) { .feed-dialog { width: 800px; } }
@media (min-width: 1280px) { .feed-dialog { width: 900px; } }

/* The story bar inside a dialog. */
.dialog-bar { display: flex; justify-content: center; gap: 4px; width: 100%; max-width: 80%; height: 2px; margin: 2px auto; flex-shrink: 0; }
.dialog-bar button { position: relative; flex: 1; height: 100%; overflow: visible; border-radius: 999px; background: rgba(123, 123, 123, .7); }
.dialog-bar button::before { content: ""; position: absolute; inset: -11px 0; }
.dialog-bar button:focus-visible { outline-color: #fff; outline-offset: 6px; }
.dialog-bar span { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: inherit; background: #fff; }
.dialog-bar .is-past span, .dialog-bar .is-active span { width: 100%; }
.dialog-bar .is-active span { transition: width var(--story) linear; }
@media (min-width: 768px) { .dialog-bar { gap: 8px; max-width: 500px; margin-top: 8px; } }

/* ========== Models pages ========== */
/* Banner. */
.mdl-shade { background: linear-gradient(to bottom, rgba(0, 0, 0, .4), transparent) top / 100% 60% no-repeat; }
.mdl-new { font-family: poiret, var(--system); color: #fff; }
.banner-mobile > .mdl-new { position: absolute; transform: translateY(-100%); padding-inline-start: 24px; font-size: 36px; line-height: 150%; font-weight: 300; }
.mdl-hero .banner-mobile-title { font-weight: 600; }
.packed > .mdl-new { margin-bottom: -8px; font-size: 25px; }
.mdl-hero h1 { margin-bottom: 12px; font-size: 30px; line-height: 90%; font-weight: 700; color: #fff; text-transform: uppercase; }
.mdl-hero-desc { max-width: 500px; margin-bottom: 16px; font-size: 14px; font-weight: 300; color: #fff; }
.btn.mdl-hero-cta { width: 250px; font-size: 16px; }
@media (min-width: 640px) {
  .mdl-shade { background: linear-gradient(to bottom, rgba(0, 0, 0, .4), rgba(0, 0, 0, .1), rgba(0, 0, 0, .4)); }
  .mdl-hero-desktop { justify-content: flex-end; padding-bottom: 8%; }
}
@media (min-width: 1024px) { .mdl-hero-desc { margin-bottom: 40px; font-size: 16px; } }
@media (min-width: 1280px) {
  .packed > .mdl-new { margin-bottom: -16px; font-size: 51px; }
  .mdl-hero h1 { margin-bottom: 32px; font-size: 91px; }
  .mdl-hero-desc { font-size: 18px; }
}

/* The row of models: an endless carousel, with a dot per model under it. */
.mdl-row { position: relative; margin-block: 20px; overflow-x: clip; }
.mdl-row .carousel { position: relative; }
.mdl-row .carousel::before, .mdl-row .carousel::after { content: ""; position: absolute; top: 0; left: 0; z-index: 10; width: 96px; height: 100%; background: linear-gradient(to right, #fff, transparent); pointer-events: none; }
.mdl-row .carousel::after { right: 0; left: auto; transform: scaleX(-1); }
.mdl-row .carousel-track { align-items: flex-end; }
.carousel-track > .mdl-item { flex: none; padding: 8px; opacity: .75; transition: opacity .3s cubic-bezier(.4, 0, .2, 1); }
.mdl-item img { width: 150px; margin-inline: auto; transform-origin: bottom; transition: scale .3s cubic-bezier(.4, 0, .2, 1); }
.mdl-item span { display: block; margin-top: 8px; padding-inline: 4px; text-align: center; font-size: 20px; font-weight: 300; }
.carousel-track > .mdl-item.is-on { opacity: 1; cursor: default; }
.mdl-item.is-on img { scale: 1.05; }
.mdl-item.is-on span { font-family: var(--font-book); }
.mdl-item:focus-visible { outline-offset: -2px; }
.mdl-dots { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 8px 0 16px; }
.mdl-dots i { width: 10px; height: 10px; border-radius: 50%; background: #8c8c8c; transition: background .3s cubic-bezier(.4, 0, .2, 1); }
.mdl-dots i.is-on { background: var(--primary); }

/* The chosen model: its trims, the chosen trim's photos and figures. On phones the parts stack in their own order. */
.mdl-info { position: relative; display: flex; flex-direction: column; }
.mdl-top, .mdl-bottom, .mdl-side { display: contents; }
.mdl-name { font-size: 36px; font-weight: 300; text-transform: uppercase; }
.mdl-hev { position: absolute; top: 8px; right: 0; width: 100px; height: 34px; object-fit: cover; }
.mdl-trims { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 8px; margin-top: 16px; }
.mdl-trim { position: relative; z-index: 10; display: flex; align-items: center; justify-content: center; height: 40px; min-height: 45px; padding: 0 24px; border: 1px solid #000; color: #000; font-weight: 300; white-space: nowrap; transition: all .15s cubic-bezier(.4, 0, .2, 1); }
.mdl-trim::before { content: ""; position: absolute; inset: -1px; z-index: -1; background: var(--btn-gradient); opacity: 0; transition: opacity .3s cubic-bezier(.4, 0, .2, 1); pointer-events: none; }
.mdl-stage { margin-top: 20px; }
.mdl-photos { position: relative; aspect-ratio: 900 / 800; overflow: hidden; }
.mdl-photos .carousel { position: absolute; inset: 0; }
.mdl-photos .carousel-track { height: 100%; }
.mdl-photo img { width: 100%; height: 100%; object-fit: contain; }
.mdl-nav { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 4px 0 16px; }
.mdl-nav .mdl-dots { margin: 0; gap: 12px; }
.mdl-nav button { display: flex; flex-shrink: 0; align-items: center; justify-content: center; width: 35px; height: 35px; transition: all .3s cubic-bezier(.4, 0, .2, 1); }
.mdl-nav button[aria-disabled="true"] { box-shadow: 0 1px 2px rgba(0, 0, 0, .05); pointer-events: none; }
.mdl-prev { margin-right: 8px; border: 1px solid #000; color: #000; }
.mdl-next { margin-left: 8px; background: var(--primary); color: #fef2f2; }
.mdl-next:hover { background: rgba(193, 15, 16, .9); }
.mdl-prev[aria-disabled="true"] { border-color: rgba(0, 0, 0, .75); opacity: .75; }
.mdl-next[aria-disabled="true"] { border: 1px solid #e4e4e7; background: #fff; color: var(--ink); }
.mdl-specs { order: 1; display: flex; gap: 8px; margin-top: 36px; }
.mdl-specs > div { flex: 1; }
.mdl-specs dt { font-size: 14px; font-weight: 300; color: rgba(0, 0, 0, .5); }
.mdl-specs dd { font-size: 30px; font-weight: 300; color: var(--primary); }
.mdl-desc { order: 2; margin-top: 24px; }
.mdl-actions { order: 3; display: grid; justify-items: center; gap: 20px; margin-top: 40px; }
.mdl-actions .btn { border-color: var(--primary); }
.mdl-actions .btn:disabled { opacity: .2; }
.mdl-catalogue.is-loading { opacity: .8; pointer-events: none; font-variant-numeric: tabular-nums; }
.mdl-progress { position: absolute; inset: 0 auto 0 0; z-index: -1; background: rgba(193, 15, 16, .2); transition: width .2s cubic-bezier(.4, 0, .2, 1); }
.mdl-wait { position: absolute; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .7); color: var(--primary); animation: fade-in .2s ease .25s backwards; }
.mdl-wait .spinner { width: 40px; height: 40px; }
@media (max-width: 767px) {
  .mdl-info:has(.mdl-hev:not([hidden])) .mdl-name { padding-inline-end: 100px; }
  .mdl-trim[aria-pressed="true"] { border-color: transparent; color: #fff; box-shadow: 1px 3px 12.6px rgba(0, 0, 0, .61); }
  .mdl-trim[aria-pressed="true"]::before { opacity: 1; }
  .mdl-actions .btn { font-size: 14px; font-weight: 300; }
  .mdl-actions .btn:is(:hover, :active) { border-color: var(--primary); color: #000; box-shadow: none; }
  .mdl-actions .btn::before, .mdl-actions .btn-glow { display: none; }
}
@media (min-width: 768px) {
  .carousel-track > .mdl-item { padding-inline: 20px; }
  .mdl-dots { gap: 16px; margin: 16px 0 0; }
  .mdl-info { display: block; margin-top: 28px; }
  .mdl-top { position: relative; display: flex; align-items: stretch; gap: 20px; }
  .mdl-left { flex: 38%; padding-bottom: 40px; }
  .mdl-name { font-size: 40px; line-height: 40px; }
  .mdl-trims { display: flex; flex-direction: column; gap: 32px; min-height: 378px; margin-top: 40px; }
  .mdl-trim { min-height: 50px; border-color: rgba(0, 0, 0, .5); color: rgba(0, 0, 0, .5); font-size: 18px; transition: none; }
  .mdl-trim::before { display: none; }
  .mdl-trim span { font-size: 20px; }
  .mdl-trim:hover, .mdl-trim[aria-pressed="true"] { border-color: var(--primary); color: #000; font-family: var(--font-book); }
  .mdl-stage { display: flex; flex: 62%; flex-direction: column; min-height: 0; aspect-ratio: 900 / 400; margin-top: 0; }
  .mdl-photos { flex: 1; min-height: 0; aspect-ratio: auto; }
  .mdl-photo { padding-inline: 12px; }
  .mdl-nav { margin: 4px 0 0; }
  .mdl-nav button { position: absolute; top: 50%; margin: 0; }
  .mdl-stage { position: relative; }
  .mdl-prev { left: 0; border: 0; background: rgba(93, 93, 93, .1); }
  .mdl-next { right: 0; }
  .mdl-hev { top: 0; z-index: 20; width: 150px; height: 50px; }
  .mdl-bottom { display: flex; align-items: flex-start; gap: 20px; margin-top: 16px; }
  .mdl-desc { flex: 38%; order: 0; margin-top: 0; }
  .mdl-side { display: block; flex: 62%; }
  .mdl-specs { margin-top: 0; }
  .mdl-specs dd { font-size: 40px; }
  .mdl-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); justify-items: stretch; gap: 8px; margin-top: 8px; }
  .mdl-actions .btn { min-width: 0; }
  .mdl-actions .btn:is(:hover, :active) { border-color: transparent; }
}
@media (min-width: 1024px) {
  .mdl-trims { max-width: 85%; }
  .mdl-trim span { font-size: 26px; }
}
@media (min-width: 1280px) { .mdl-top, .mdl-bottom { gap: 80px; } }
@media (min-width: 1536px) {
  .mdl-name { font-size: 68px; line-height: 64px; }
  .mdl-trims { max-width: 78%; }
}

/* A card per country: its dealer centers, what it says about the model's prices, and its site. */
.mdl-cards { display: flex; flex-direction: column; gap: 24px; margin-bottom: 40px; }
.mdl-card { display: flex; flex-direction: column; justify-content: center; width: 100%; background: #fff; box-shadow: 1.36px 24.45px 38.3px 0 rgba(56, 56, 56, .17); }
.mdl-card-img { flex-shrink: 0; width: 100%; aspect-ratio: 464 / 189; margin-bottom: 6px; object-fit: cover; }
.mdl-card-body { position: relative; display: flex; flex: 1; flex-direction: column; justify-content: space-between; padding: 7px 16px 24px; }
.mdl-card-body::before { content: ""; position: absolute; top: 0; right: 0; width: 50%; height: 6px; background: var(--primary); }
.mdl-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mdl-card-head h3 { display: flex; align-items: center; gap: 14px; font-size: 26px; }
.mdl-card-head svg { flex-shrink: 0; width: 24px; height: 24px; transform: translateY(4px); }
.mdl-card-head img { flex-shrink: 0; width: 39px; }
.mdl-card-sub, .mdl-card-text { display: none; }
.mdl-card-cta { display: flex; justify-content: center; margin-top: 20px; overflow: hidden; }
.mdl-card-cta .btn { width: 100%; min-width: 0; max-width: 220px; padding: 0; border-color: var(--primary); font-size: 15px; font-weight: 300; }
.mdl-card-cta .btn > span:not([class]) { display: flex; align-items: center; gap: 8px; }
.mdl-card-cta .btn:is(:hover, :active) { border-color: transparent; }
.mdl-card-cta svg { width: 14px; height: 14px; }
.mdl-consult { display: flex; justify-content: center; margin-top: 48px; }
.mdl-consult .btn { font-size: 15px; font-weight: 300; }
@media (min-width: 768px) {
  .mdl-cards { flex-direction: row; gap: 12px; margin-bottom: 64px; }
  .mdl-card-body { padding-top: 16.5px; }
  .mdl-card-head h3 { gap: 8px; font-size: 20px; }
  .mdl-card-head svg { width: 18px; height: 18px; }
  .mdl-card-head img { width: 25px; }
  .mdl-card-sub { display: block; margin-top: 14px; font-size: 14px; font-weight: 300; color: #8f8f8f; }
  .mdl-card-text { display: block; margin: 13px 0 12px; font-size: 15px; white-space: pre-line; }
  .mdl-card-cta { margin-top: 32px; }
  .mdl-card-cta .btn.btn--outline { min-width: 0; max-width: 246px; font-size: 16px; }
  .mdl-consult { margin-top: 28px; }
  .mdl-consult .btn { font-size: 16px; }
}
@media (min-width: 1024px) {
  .mdl-card-head h3 { gap: 14px; font-size: 28px; }
  .mdl-card-head svg { width: 24px; height: 24px; }
  .mdl-card-head img { width: 39px; }
}
@media (min-width: 1280px) {
  .mdl-cards { gap: 64px; }
  .mdl-card { box-shadow: .93px 16.66px 26.09px 0 rgba(56, 56, 56, .17); }
  .mdl-card-body { padding-inline: 56px; padding-bottom: 28px; }
}

/* Interior: an accordion on phones, panels side by side from 1024px where the open one is the widest. */
.mdl-parts { margin: 20px 0 40px; }
.mdl-part { position: relative; margin-bottom: 8px; padding-inline: 20px; color: #fff; }
.mdl-part > * { position: relative; z-index: 1; }
.mdl-part > img { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; }
.mdl-part::before { content: ""; position: absolute; bottom: 0; left: 0; z-index: 1; width: 100%; height: 75%; background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, .4)); opacity: 0; transition: opacity .5s cubic-bezier(.4, 0, .2, 1); pointer-events: none; }
.mdl-part::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .3); transition: background .5s cubic-bezier(.4, 0, .2, 1); pointer-events: none; }
.mdl-part.is-open::before { opacity: 1; }
.mdl-part.is-open::after { background: transparent; }
.mdl-part-toggle { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; width: 100%; padding-block: 18px; text-align: start; font-size: 20px; font-weight: 500; }
.mdl-part-name { transition: all .5s cubic-bezier(.4, 0, .2, 1); }
.mdl-part-icon { display: flex; flex-shrink: 0; align-items: center; justify-content: center; width: 32px; height: 32px; border: 1px solid #fff; }
.mdl-part-icon svg { width: 24px; height: 24px; rotate: -90deg; transition: rotate .5s cubic-bezier(.4, 0, .2, 1); }
.mdl-part.is-open .mdl-part-icon { border: 0; background: #fff; color: #000; }
.mdl-part-panel { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows .5s ease-out, visibility 0s .5s; }
.mdl-part-panel > div { min-height: 0; overflow: hidden; }
.mdl-part.is-open .mdl-part-panel { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows .5s ease-out; }
.mdl-features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; margin: 0; padding-bottom: 24px; list-style: none; opacity: 0; transition: opacity .5s cubic-bezier(.4, 0, .2, 1); }
.mdl-part.is-open .mdl-features { opacity: 1; transition: none; }
.mdl-features li { display: flex; align-items: flex-start; gap: 8px; font-size: 10px; line-height: calc(1.25 / .875); font-weight: 300; }
.mdl-features svg { flex-shrink: 0; width: 24px; height: 24px; }
.mdl-features li:is(:nth-child(1), :nth-child(4)) svg { color: var(--primary); }
@media (max-width: 1023px) { .mdl-part.is-open .mdl-part-name { padding-top: 150px; } .mdl-part.is-open .mdl-part-icon svg { rotate: 90deg; } }
@media (min-width: 1024px) {
  .mdl-parts { display: flex; gap: 10px; height: 644px; margin-block: 48px; overflow: hidden; }
  .mdl-part { flex: 20%; margin: 0; padding: 0; overflow: hidden; transition: flex-basis .5s cubic-bezier(.4, 0, .2, 1); }
  .mdl-part.is-open { flex-basis: 80%; }
  .mdl-part > * { position: static; }
  .mdl-part::before { height: 60%; }
  .mdl-part.is-open::after { background: rgba(0, 0, 0, .05); }
  .mdl-part-toggle { position: absolute; inset: 0; z-index: 2; display: block; padding: 0; outline-offset: -4px; }
  .mdl-part-name { position: absolute; top: 55%; left: 0; width: fit-content; padding-inline: 5%; line-height: 1.4; font-weight: 600; text-transform: uppercase; }
  .mdl-part-icon { position: absolute; right: 24px; bottom: 24px; width: 30px; height: 30px; }
  .mdl-part-icon svg { rotate: none; }
  .mdl-part .mdl-part-panel { position: absolute; top: 64%; left: 0; z-index: 2; display: block; width: fit-content; padding-inline: 5%; visibility: visible; pointer-events: none; }
  .mdl-features { padding: 0; transition: opacity .1s cubic-bezier(.4, 0, .2, 1); }
  .mdl-part.is-open .mdl-features { transition: opacity .5s cubic-bezier(.4, 0, .2, 1) .5s; }
  .mdl-features li { font-size: 16px; line-height: 1.5; }
  .mdl-features svg { width: 34px; height: 34px; }
}
@media (min-width: 1536px) {
  .mdl-parts { margin-block: 64px; }
  .mdl-part-name { top: 59%; padding-inline: 6%; font-size: 32px; }
  .mdl-part .mdl-part-panel { top: 68%; padding-inline: 6%; }
  .mdl-features li { gap: 16px; font-size: 20px; }
  .mdl-features svg { width: 46px; height: 46px; }
}
@media (prefers-reduced-motion: reduce) {
  .mdl-item, .mdl-item img, .mdl-part, .mdl-part::before, .mdl-part::after, .mdl-part *, .mdl-part.is-open .mdl-part-panel, .mdl-part.is-open .mdl-features { transition: none; }
}

/* ========== Dealers and contacts pages ========== */
/* ========== Dealers page ========== */
/* Country map: three countries one under the other on phones; from 1024px they lie on one map and pointing at one colours it and opens its box. */
.lands-lead { display: flex; align-items: flex-start; gap: 16px; }
.lands-flags { display: none; }
.lands { display: flex; flex-direction: column; gap: 56px; margin-top: 32px; }
.lands-base, .land-area, .land-tail { display: none; }
.land-img { width: 80%; margin-inline: auto; aspect-ratio: 420 / 300; object-fit: contain; }
.land-info { display: flex; align-items: flex-end; justify-content: center; gap: 16px; margin-top: -20px; }
.land--tajikistan .land-info { margin-top: 0; }
.land-box { position: relative; flex: 1 1 60%; max-width: 250px; padding: 15px 16px 12px; background: #fff; box-shadow: .29px 5.23px 8.2px 0 rgba(56, 56, 56, .17); }
.land-box::before { content: ""; position: absolute; top: 0; right: 0; width: 50%; height: 4px; background: var(--primary); }
.land-name { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.land-name img { width: 21px; max-width: none; height: 14px; object-fit: cover; }
.land-figures { display: flex; gap: 8px; margin-top: 8px; }
.land-figures > div { position: relative; display: flex; flex: 1; flex-direction: column-reverse; text-align: center; font-weight: 300; }
.land-figures > div + div::before { content: ""; position: absolute; top: 50%; left: 0; width: 1px; height: 60%; background: #b7b7b7; transform: translate(-4px, -50%); }
.land-figures dt { font-size: 10px; color: rgba(0, 0, 0, .58); transform: translateY(20%); }
.land-figures dd { font-size: 20px; }
.btn.land-visit { display: none; }
.lands .land-more { flex: 1; width: 100%; min-width: auto; max-width: 246px; padding-inline: 16px; font-size: 15px; font-weight: 300; }
@media (min-width: 640px) {
  .lands { gap: 80px; margin-top: 64px; }
  .land-info { gap: 24px; }
}
@media (min-width: 768px) {
  .land-box { padding-top: 20.5px; }
  .lands .land-more { font-size: 18px; }
}
@media (min-width: 1024px) {
  .lands-flags { display: block; flex-shrink: 0; width: 240px; aspect-ratio: 240 / 86; object-fit: cover; }
  .lands { position: relative; display: block; }
  .land { display: contents; }
  .lands-base { display: block; width: 60%; margin-inline: auto; aspect-ratio: 937 / 559; object-fit: cover; }
  .land-area { position: absolute; top: 0; left: 20%; z-index: 1; display: block; width: 60%; height: 100%; pointer-events: none; }
  .land-area polygon { fill: transparent; stroke-width: 12; stroke-linejoin: round; cursor: pointer; outline: none; pointer-events: fill; }
  .land-area polygon:focus-visible { stroke: var(--primary); }
  .land-img { position: absolute; margin: 0; object-fit: cover; filter: saturate(0); opacity: .85; pointer-events: none; transition: filter .3s cubic-bezier(.4, 0, .2, 1), opacity .3s cubic-bezier(.4, 0, .2, 1); }
  .land.is-shown .land-img { filter: saturate(1); opacity: 1; }
  .land--uzbekistan .land-img { top: 0; left: 50%; width: 37.5%; aspect-ratio: 584 / 395; transform: translateX(-52%); }
  .land--tajikistan .land-img { right: 0; bottom: 16.5%; width: 17.61%; aspect-ratio: 274 / 199; transform: translateX(-113%); }
  .land--turkmenistan .land-img { bottom: 0; left: 7.5%; width: 36.438%; aspect-ratio: 568 / 370; transform: translateX(34%); }
  .land-info { position: absolute; z-index: 10; display: none; flex-direction: column; align-items: stretch; gap: 8px; margin: 0; }
  .land.is-shown .land-info { display: flex; }
  .land--uzbekistan .land-info { top: -8%; right: 12%; }
  .land--tajikistan .land-info { top: -16px; right: 17%; }
  .land--turkmenistan .land-info { top: -10%; left: 8%; gap: 0; }
  .land-box { flex: none; width: 350px; max-width: none; padding: 36.5px 28px 28px; box-shadow: .67px 12.08px 18.92px 0 rgba(56, 56, 56, .17); }
  .land-box::before { height: 5px; }
  .land-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .land-figures { gap: 16px; margin: 0; }
  .land-figures > div + div::before { top: 62%; width: 2px; background: #000; transform: translate(-8px, -50%); }
  .land-figures dt { margin-top: -8px; font-size: 18px; transform: none; }
  .land-figures dd { font-size: 36px; }
  .btn.land-visit { display: flex; width: fit-content; margin: 24px auto 0; }
  .land-visit svg { width: 14px; height: 14px; }
  .lands .land-more { display: none; }
  /* A red pin: a dot, and the line down to the country. */
  .land-tail { display: flex; flex-direction: column; align-items: center; width: fit-content; pointer-events: none; }
  .land-tail::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #f00; }
  .land-tail::after { content: ""; width: 2px; height: 20px; margin-top: -5px; background: #f00; }
  .land--uzbekistan .land-tail { margin-left: 2%; }
  .land--tajikistan .land-tail { margin-left: 70%; }
  .land--tajikistan .land-tail::after { height: 44px; }
  .land--turkmenistan .land-tail { width: auto; margin-top: 6%; }
  .land--turkmenistan .land-tail::after { width: 100px; height: 22px; border: solid #f00; border-width: 0 0 2px 2px; background: none; transform: translateX(calc(50% - 1px)); }
}
@media (min-width: 1280px) {
  .land--uzbekistan .land-info { right: 15%; }
  .land--tajikistan .land-info { top: 4%; }
  .land--turkmenistan .land-info { top: 8px; left: 5%; }
  .land--uzbekistan .land-tail::after { height: 50px; }
  .land--tajikistan .land-tail::after { height: 100px; }
  .land--turkmenistan .land-tail::after { width: 200px; }
}
@media (min-width: 1536px) {
  .land--uzbekistan .land-info { right: 20%; }
  .land--tajikistan .land-tail { margin-left: 60%; }
}
@media (prefers-reduced-motion: reduce) { .land-img { transition: none; } }

/* The dealers on a map, beside the list of one country's dealers. */
.dealers { display: flex; flex-direction: column; }
.dealers-lead { order: 1; margin-top: 32px; }
.dealers-find { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; margin-top: 16px; }
.dealers-side { padding-inline: 24px; }
.dealers-panel { position: relative; padding: 24px 0 56px; background: #fff; box-shadow: .58px 10.51px 16.46px 0 rgba(56, 56, 56, .17); }
.dealers-panel::before { content: ""; position: absolute; top: 0; right: 0; width: 50%; height: 5px; background: var(--primary); }
.dealers-panel h3 { text-align: center; font-size: 20px; font-weight: 600; text-transform: uppercase; }
.dealers-tabs { display: flex; margin-top: 20px; padding-inline: 6px; }
.dealers-tabs button { transition: background-color .25s cubic-bezier(.4, 0, .2, 1), color .25s cubic-bezier(.4, 0, .2, 1), border-color .25s cubic-bezier(.4, 0, .2, 1); flex: 1; height: 45px; border: 1px solid #000; font-size: 14px; font-weight: 300; color: #000; text-transform: capitalize; }
.dealers-tabs button[aria-selected="true"] { border-color: var(--primary); background: var(--primary); font-weight: 700; color: #fff; }
.dealers-lists { position: relative; margin: 20px 36px 0; overflow: hidden; border-top: 1px solid #a9a9a9; }
.dealers-list { position: absolute; inset: 0 0 auto; visibility: hidden; }
.dealers-list.is-shown { position: relative; visibility: visible; }
.dealers-list.is-instant .dealer-item .dealer-fold, .dealers-list.is-instant .dealer-item dl, .dealers-list.is-instant .dealer-item .dealer-name { transition: none; }
.dealer-item { border-bottom: 1px solid #a9a9a9; }
.dealer-item:last-child { border-bottom: 0; }
.dealer-toggle { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; height: 42px; overflow: hidden; text-align: left; font-size: 14px; font-weight: 500; }
.dealer-toggle:focus-visible { outline-offset: -2px; }
.dealer-name { flex-shrink: 0; color: rgba(0, 0, 0, .5); text-transform: uppercase; transition: color .5s cubic-bezier(.4, 0, .2, 1); }
.dealer-hours { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 1; overflow: hidden; font-size: 11px; color: rgba(0, 0, 0, .5); transition: color .5s cubic-bezier(.4, 0, .2, 1); }
.dealer-hours b { font-size: 14px; font-weight: 600; color: rgba(193, 15, 16, .7); transition: color .5s cubic-bezier(.4, 0, .2, 1); }
.dealer-item.is-open .dealer-toggle { cursor: default; }
.dealer-item.is-open .dealer-name, .dealer-item.is-open .dealer-hours { color: #000; }
.dealer-item.is-open .dealer-hours b { color: var(--primary); }
.dealer-fold { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows .5s ease-out, visibility 0s .5s; }
.is-shown .dealer-item.is-open .dealer-fold { visibility: visible; transition: grid-template-rows .5s ease-out; }
.dealer-item.is-open .dealer-fold { grid-template-rows: 1fr; }
.dealer-clip { min-height: 0; overflow: hidden; }
.dealer-clip dl { padding-bottom: 16px; font-size: 14px; line-height: calc(1.25 / .875); opacity: 0; transition: opacity .5s cubic-bezier(.4, 0, .2, 1); }
.dealer-item.is-open dl { opacity: 1; transition: none; }
.dealer-clip dl > div { display: flex; align-items: center; gap: 8px; min-height: 32px; padding-block: 8px; border-bottom: 1px solid rgba(0, 0, 0, .7); color: #4c4c4c; }
.dealer-clip dl > div:first-child { padding-top: 0; }
.dealer-clip dl > div:last-child { border-bottom: 0; }
.dealer-clip svg { flex-shrink: 0; width: 14px; height: 14px; }
.dealer-clip dd { font-size: 13px; color: rgba(0, 0, 0, .7); }
.dealers-panel .btn { display: flex; margin: 64px auto 0; font-size: 16px; font-weight: 300; }
@media (min-width: 768px) {
  .dealers-lead { order: 0; margin-top: 0; }
  .dealers-find { grid-template-columns: 48fr 52fr; margin-top: 48px; padding-inline: 24px; }
  .dealers-side { padding: 0; }
  .dealers-panel { height: 100%; padding-top: 8.5px; box-shadow: .93px 16.66px 26.09px rgba(56, 56, 56, .17); }
  .dealers-tabs button { height: 50px; border-color: var(--primary); }
}
@media (min-width: 1024px) {
  .dealers-find { grid-template-columns: 60fr 40fr; }
  .dealer-toggle { gap: 16px; }
}
@media (min-width: 1280px) {
  .dealers-find { gap: 60px; }
  .dealers-panel { padding: 50px 2.5vw 56px; }
  .dealers-panel::before { height: 7px; }
  .dealers-panel h3 { text-align: start; font-size: 32px; }
  .dealers-tabs { margin-top: 24px; padding: 0; }
  .dealers-tabs button { border: 0; font-size: 20px; color: rgba(0, 0, 0, .24); }
  .dealers-lists { margin: 32px 0 0; }
  .dealer-toggle { height: 66px; font-size: 22px; }
  .dealer-hours { font-size: 18px; }
  .dealer-hours b { font-size: 22px; }
  .dealer-clip dl { margin-top: -8px; }
  .dealer-clip dl > div { min-height: 44px; }
  .dealer-clip svg { width: 16px; height: 16px; }
  .dealer-clip dd { font-size: 16px; }
}
@media (min-width: 1568px) { .dealers-find { padding: 0; } }
@media (prefers-reduced-motion: reduce) { .dealer-fold, .is-shown .dealer-item.is-open .dealer-fold, .dealer-clip dl { transition: none; } }

/* Map (component): CARTO tiles, a pin for each dealer with its card above it, and zoom buttons. */
.dealers-map { position: relative; z-index: 0; aspect-ratio: 440 / 321; overflow: clip; background: #ddd; font-family: "Helvetica Neue", Arial, Helvetica, sans-serif; font-size: 12px; color: #333; cursor: grab; touch-action: none; -webkit-tap-highlight-color: transparent; }
.dealers-map.is-held { cursor: grabbing; user-select: none; }
.dealers-map.is-held .map-pin { cursor: grabbing; }
.dealers-map:focus-visible { outline-offset: -3px; }
@media (min-width: 768px) { .dealers-map { aspect-ratio: auto; box-shadow: .93px 16.66px 26.09px rgba(0, 0, 0, .14); } }
.map-level { position: absolute; top: 0; left: 0; transform-origin: 0 0; }
.map-level img { position: absolute; width: 256px; max-width: none; height: 256px; opacity: 0; transition: opacity .2s linear; user-select: none; -webkit-user-drag: none; }
.map-level .is-loaded { opacity: 1; }
.map-tiles { position: absolute; inset: 0; z-index: 0; }
.map-pin { position: absolute; top: -40px; left: -20px; width: 40px; height: 40px; }
.map-popup { position: absolute; bottom: calc(100% + 53px); left: 0; z-index: 100; padding: 1px; visibility: hidden; opacity: 0; font-size: 13px; line-height: 1.3; cursor: auto; pointer-events: none; transition: opacity .2s linear, visibility 0s .2s; }
.map-popup.is-open { visibility: visible; opacity: 1; transition: opacity .2s linear; }
.is-zooming .map-level, .is-zooming .map-pin, .is-zooming .map-popup.is-open { transition: transform .25s cubic-bezier(0, 0, .25, 1); }
.map-tip { position: absolute; top: 100%; left: 50%; width: 40px; height: 20px; margin: -1px 0 0 -20px; overflow: hidden; }
.map-tip::before { content: ""; position: absolute; top: -10px; left: 11.5px; width: 17px; height: 17px; background: #fff; box-shadow: 0 3px 14px rgba(0, 0, 0, .4); transform: rotate(45deg); }
.map-popup .branch-card { transform: scale(.75); transform-origin: bottom; pointer-events: auto; }
.map-zoom { position: absolute; top: 10px; left: 10px; z-index: 200; border: 2px solid rgba(0, 0, 0, .2); border-radius: 4px; background-clip: padding-box; cursor: auto; }
.map-zoom button { display: block; width: 30px; height: 30px; border-bottom: 1px solid #ccc; border-radius: 2px 2px 0 0; background: #fff; font: bold 22px/30px "Lucida Console", Monaco, monospace; color: #000; text-indent: 1px; }
.map-zoom button:last-child { border-bottom: 0; border-radius: 0 0 2px 2px; }
.map-zoom button:hover, .map-zoom button:focus { background: #f4f4f4; }
.map-zoom button:disabled { background: #f4f4f4; color: #bbb; cursor: default; }
.map-credit { position: absolute; right: 0; bottom: 0; z-index: 200; padding: 0 5px; background: rgba(255, 255, 255, .7); font-size: 10px; line-height: 1.4; cursor: auto; }
.map-credit a { position: relative; color: #0078a8; }
.map-credit a::after { content: ""; position: absolute; inset: -7px 0; }
.map-credit a:hover, .map-credit a:focus { text-decoration: underline; }

/* Dealer cards, with a filter by country. */
.branch-filter { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 10px; padding-top: 20px; }
.branch-filter button { position: relative; z-index: 0; height: 45px; border: 1px solid #000; font-size: 14px; font-weight: 300; color: #000; text-transform: capitalize; transition: all .15s cubic-bezier(.4, 0, .2, 1); }
.branch-filter button::before { content: ""; position: absolute; inset: -1px; z-index: -1; background: var(--btn-gradient); opacity: 0; transition: opacity .3s cubic-bezier(.4, 0, .2, 1); }
.branch-filter button[aria-pressed="true"] { border-color: transparent; font-weight: 400; color: #fff; box-shadow: 1px 3px 12.6px rgba(0, 0, 0, .61); }
.branch-filter button[aria-pressed="true"]::before { opacity: 1; }
.branch-cards { display: grid; gap: 14px; margin: 35px 0 0; padding-bottom: 40px; list-style: none; }
.branch-card { position: relative; display: flex; gap: 16px; height: 100%; padding: 23px 17px 15px 20px; background: #fff; box-shadow: -6px 7px 23.6px 0 rgba(56, 56, 56, .17); }
.branch-card::before { content: ""; position: absolute; top: 0; right: 0; width: 50%; height: 6px; background: var(--primary); }
.branch-photo { flex: 1 1 45%; order: 1; min-width: 0; object-fit: cover; }
.branch-body { display: flex; flex: 1 1 55%; flex-direction: column; justify-content: space-between; }
.branch-head { display: flex; flex-wrap: wrap; align-items: center; column-gap: 8px; }
.branch-head h3 { order: 1; width: 100%; margin-top: 8px; font-size: 16px; }
.branch-head img { width: 28px; height: 19px; object-fit: cover; }
.branch-head svg { width: 20px; height: 20px; }
.branch-city, .branch-text { display: none; }
.branch-card .btn { display: flex; width: 100%; min-width: auto; margin-top: 13px; border-color: var(--primary); font-size: 15px; }
.branch-card .btn:hover, .branch-card .btn:active { border-color: transparent; }
.branch-card .btn svg { display: none; width: 14px; height: 14px; }
@media (min-width: 640px) {
  .branch-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .branch-card { flex-direction: column; gap: 0; padding: 0; box-shadow: .93px 16.66px 26.09px 0 rgba(56, 56, 56, .17); }
  .branch-card::before { display: none; }
  .branch-photo { flex: none; order: 0; width: 100%; aspect-ratio: 464 / 190; }
  .branch-body { position: relative; flex: 1; padding: 23px 17px 15px 20px; border-top: 4px solid #fff; }
  .branch-body::before { content: ""; position: absolute; top: 0; right: 0; width: 50%; height: 6px; background: var(--primary); }
  .branch-head { flex-wrap: nowrap; align-items: flex-start; justify-content: space-between; column-gap: 16px; }
  .branch-head h3 { order: 0; width: auto; margin: 0; font-size: 28px; }
  .branch-head img { flex-shrink: 0; width: 39px; height: 25px; margin-top: 12px; }
  .branch-head svg { display: none; }
  .branch-city { display: flex; align-items: center; gap: 4px; margin-block: 8px; font-weight: 300; color: #8f8f8f; }
  .branch-city svg { width: 14px; height: 14px; }
  .branch-text { display: block; margin-top: 12px; font-size: 15px; font-weight: 300; }
  .branch-card .btn { width: 246px; max-width: 100%; margin: 36px auto 0; font-size: 16px; }
  .branch-card .btn svg { display: block; }
}
@media (min-width: 768px) {
  .branch-filter { grid-template-columns: repeat(4, minmax(0, 1fr)); padding-top: 32px; }
  .branch-filter button { height: 50px; border-color: var(--primary); }
  .branch-cards { gap: 28px; }
  .branch-body { padding-top: 28.5px; }
}
@media (min-width: 1024px) { .branch-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; } }
@media (min-width: 1280px) {
  .branch-cards { gap: 63px; }
  .branch-body { padding: 23.5px 37px 30px 45px; }
}
/* On the map the cards keep one padding and Leaflet's text sizes, which the Next.js site's had. */
.map-popup .branch-card { padding: 19px 16px 16px; }
.map-popup .branch-photo { align-self: center; }
.map-popup .btn { line-height: 1.3; }
@media (min-width: 640px) {
  .map-popup .branch-card { padding: 0; }
  .map-popup .branch-body { padding: 19px 16px 16px; }
  .map-popup .branch-text { margin-block: 19.5px; }
}
@media (min-width: 768px) { .map-popup .branch-body { padding-top: 24.5px; } }

/* ========== Contacts page ========== */
/* Contacts banner: a small title over a big bold TOYOTA. */
.contact-hero.banner h1 { margin-top: .5%; font-size: 23px; line-height: 28px; font-weight: 600; }
.contact-hero.banner h1 span { display: block; }
.contact-hero.banner h1 b { display: block; margin-top: .5%; font-size: 50px; line-height: 28px; font-weight: 700; }
@media (min-width: 1024px) {
  .contact-hero.banner h1 { font-size: 35px; line-height: 52px; }
  .contact-hero.banner h1 b { font-size: 60px; line-height: 52px; }
}
@media (min-width: 1536px) {
  .contact-hero .page-hero-desc { max-width: 28%; }
  .contact-hero.banner h1 { font-size: 47px; line-height: 68px; }
  .contact-hero.banner h1 b { font-size: 90px; line-height: 68px; }
}

/* The office: its photo beside its details. */
.office { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; gap: 14px; padding-block: 24px; }
.office-img { width: 100%; aspect-ratio: 390 / 233; object-fit: cover; box-shadow: .64px 9.94px 14.03px 0 rgba(0, 0, 0, .14); }
.office-card { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 16px; height: 100%; padding: 24px 16px 40px; background: #fff; box-shadow: .58px 10.51px 16.46px 0 rgba(56, 56, 56, .17); }
.office-card::before { content: ""; position: absolute; top: 0; right: 0; width: 50%; height: 5px; background: var(--primary); }
.office-card h3 { text-align: center; font-size: 24px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.office-place { display: flex; align-items: center; gap: 16px; padding-block: 16px; border-bottom: 1px solid #a9a9a9; font-weight: 300; color: #8f8f8f; }
.office-place svg { width: 14px; height: 14px; }
.office-place img { width: 31.35px; height: 20.57px; margin-inline-start: auto; object-fit: cover; }
.office-details > div { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding-block: 6px; border-bottom: 1px solid #a9a9a9; font-size: 15px; }
.office-details dt { color: rgba(0, 0, 0, .5); }
.office-details dd { text-align: right; line-height: 1.25; font-weight: 300; color: rgba(0, 0, 0, .8); }
.office-hours b { font-size: 18px; font-weight: 400; color: var(--primary); }
.office-card .btn { width: 100%; min-width: auto; max-width: 246px; margin: 40px auto 0; font-size: 16px; }
@media (min-width: 768px) {
  .office { grid-template-columns: .4fr .6fr; }
  .office-img { height: 100%; aspect-ratio: auto; }
}
@media (min-width: 1024px) {
  .office { gap: 60px; }
  .office-img { box-shadow: 1.45px 22.32px 31.51px 0 rgba(0, 0, 0, .14); }
  .office-card { padding: 50px; box-shadow: .85px 15.27px 23.92px 0 rgba(56, 56, 56, .17); }
  .office-card::before { height: 5.55px; }
  .office-card h3 { font-size: 28px; }
  .office-place { margin-top: 10px; padding-block: 10px; font-size: 18px; }
  .office-place svg { width: 20px; height: 20px; margin-top: 2px; }
  .office-place img { width: 42.3px; height: 27.76px; }
  .office-details > div { padding-block: 10px; font-size: 18px; }
  .office-hours b { font-size: 20px; }
}
@media (min-width: 1280px) { .office { grid-template-columns: .6fr .4fr; } }
@media (min-width: 1536px) { .office-card h3 { font-size: 31px; } }

/* Partnership and media contacts. */
.contact-cards { display: grid; gap: 30px; }
.contact-card { display: flex; flex-direction: column; gap: 8px; height: 100%; background: #fff; box-shadow: .78px 13.99px 21.91px 0 rgba(56, 56, 56, .17); }
.contact-card-img { flex-shrink: 0; width: 100%; aspect-ratio: 392 / 160; object-fit: cover; }
.contact-card-body { position: relative; flex: 1; padding: 25px; }
.contact-card-body::before { content: ""; position: absolute; top: 0; right: 0; width: 50%; height: 6px; background: var(--primary); }
.contact-card h3 { font-size: 26px; }
.contact-card-icons { display: flex; align-items: center; justify-content: space-between; margin-block: 28px; }
.contact-card-icons img { width: 60px; min-width: 0; height: 60px; object-fit: contain; }
.contact-card-icons i { width: 1px; height: 40px; background: rgba(0, 0, 0, .6); transform: translateX(-50%); }
@media (min-width: 768px) {
  .contact-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .contact-card .paragraph > * { font-size: 16px; }
}
@media (min-width: 1280px) {
  .contact-card { box-shadow: .93px 16.66px 26.09px 0 rgba(56, 56, 56, .17); }
  .contact-card-img { aspect-ratio: 464 / 190; }
  .contact-card-body { padding: 20px 52px 30px; }
  .contact-card-body::before { height: 7px; }
  .contact-card h3 { font-size: 28px; }
  .contact-card-icons { margin-block: 36px; }
  .contact-card-icons img { width: 65px; height: 65px; }
  .contact-card-icons i { height: 45px; }
}

/* Customer support: a red block with a quote and a form card. */
.contact-support { background: linear-gradient(to bottom right, #b90000, #5b0000); background-image: linear-gradient(to bottom right in oklab, #b90000, #5b0000); }
.contact-support .toyota-mark { color: #fff; }
.contact-support .gap { margin-top: 1lh; }
.contact-support-mark { display: none; }
.contact-support-copy { position: relative; display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 24px 0 40px; color: #fff; }
.contact-support-copy h2 { width: 90%; text-align: center; font-size: 26px; text-transform: uppercase; }
.contact-support-quote { display: contents; }
.contact-support-quote > img { position: absolute; top: 80px; left: 20px; width: 90px; opacity: .18; }
.contact-support-quote .paragraph { width: 90%; padding-inline-start: 48px; }
.contact-support-quote .paragraph > * { font-size: 14px; }
.contact-support-card { padding: 24px 24px 44px; background: #fff; box-shadow: 0 11.1px 22.21px rgba(13, 16, 45, .1); }
.contact-support-card h3 { text-align: center; font-size: 30px; color: #1c244b; text-transform: uppercase; }
.contact-support-sub { text-align: center; font-size: 16px; font-weight: 300; color: #172640; }
.contact-support-card .form-embed { gap: 28px; margin-top: 24px; }
.contact-support-card .form-slot { display: block; min-height: 440px; }
.contact-support .form-note { text-align: center; font-size: 14px; font-style: italic; }
.contact-support .form-note .red { color: #c10e0f; }
@media (min-width: 640px) { .contact-support-card .form-slot { min-height: 304px; } }
@media (min-width: 1024px) {
  .contact-support { position: relative; padding-block: 80px; }
  .contact-support-mark { position: absolute; top: 56px; left: 50%; display: block; transform: translateX(-50%); }
  .contact-support-mark .toyota-mark { width: 74px; height: 50px; }
  .contact-support-in { display: flex; align-items: stretch; gap: 32px; padding-inline: 24px; }
  .contact-support-copy { flex: 55%; justify-content: center; gap: 0; padding: 80px 0; }
  .contact-support-copy h2 { width: 100%; text-align: start; font-size: 30px; }
  .contact-support-quote { display: flex; align-items: flex-start; width: 100%; margin-top: 40px; }
  .contact-support-quote > img { position: static; flex-shrink: 0; width: 14vw; opacity: 1; transform: translateY(16px); }
  .contact-support-quote .paragraph { flex: 1; width: auto; padding: 0 40px 0 20px; }
  .contact-support-quote .paragraph > * { font-size: 18px; }
  .contact-support-side { display: flex; flex: 45%; align-items: center; justify-content: center; min-width: 560px; }
  .contact-support-card { width: 100%; max-width: 680px; padding: 40px 24px; border: 2px solid #f1f1f1; box-shadow: 0 11.1px 22.21px rgba(13, 16, 45, .1), 0 23.13px 46.27px rgba(13, 16, 45, .1); }
  .contact-support-card .form-embed { margin-top: 28px; padding-inline: 8px; }
}
@media (min-width: 1280px) { .contact-support-quote > img { margin-inline-start: -20px; } }
@media (min-width: 1536px) {
  .contact-support-in { gap: 40px; }
  .contact-support-copy h2 { font-size: 40px; }
  .contact-support-quote > img { margin-inline-start: -40px; }
  .contact-support-quote .paragraph { padding-inline-end: 8px; }
  .contact-support-quote .paragraph > * { font-size: 20px; }
}
@media (min-width: 1568px) { .contact-support-in { padding-inline: 0; } }

/* ========== History and local pages ========== */
/* ---------- Page hero (component): the subtitle on a line, the title and its action. History and dealers. ---------- */
.page-hero-shade { background: linear-gradient(to bottom, rgba(0, 0, 0, .4), transparent) top / 100% 60% no-repeat; }
.page-hero .banner-mobile-title { font-weight: 600; }
.page-hero-desc { max-width: 500px; translate: 0 -10px; font-size: 14px; font-weight: 300; color: #fff; }
.page-hero h1 { font-size: 30px; line-height: 28px; font-weight: 600; color: #fff; text-transform: uppercase; }
.page-hero-ctas { margin-top: 4%; }
.page-hero-ctas .btn { width: 250px; scale: .8; transform-origin: top left; }
.page-hero .page-hero-ctas .btn { font-size: 16px; }
@media (min-width: 640px) {
  .page-hero-shade { background: linear-gradient(to bottom, rgba(0, 0, 0, .5), transparent) top / 100% 40% no-repeat, rgba(0, 0, 0, .3); }
  .page-hero-desktop { margin-top: 110px; }
}
@media (min-width: 1024px) {
  .page-hero-desktop { margin-top: 140px; }
  .page-hero-desc { translate: 0 -14px; font-size: 16px; }
  .page-hero h1 { font-size: 45px; line-height: 52px; font-weight: 400; }
  .page-hero-ctas { margin-top: 5%; }
  .page-hero-ctas .btn { scale: none; }
  .page-hero .page-hero-ctas .btn { font-weight: 400; }
}
@media (min-width: 1280px) { .page-hero-desktop { margin-top: 222px; } .page-hero-desc { max-width: 750px; font-size: 18px; } }
@media (min-width: 1536px) {
  .page-hero h1 { margin-top: .5%; font-size: 62px; line-height: 68px; }
  .page-hero-ctas { margin-top: 4%; }
}

/* ---------- Photo banner with three links (component): the pointed-at one turns red and the others outlined. History, local and our life. ---------- */
.photo-cta { position: relative; isolation: isolate; aspect-ratio: 440 / 800; }
.photo-cta-img, .photo-cta-img img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.photo-cta-img { background: #e2e8f0; }
.photo-cta--belt::before { content: ""; position: absolute; top: 0; right: 0; width: 50%; height: 7px; background: var(--primary); }
.photo-cta--belt::after { content: ""; position: absolute; top: 0; left: 0; z-index: -1; width: 100%; height: 50%; background: linear-gradient(to bottom, rgba(0, 0, 0, .6), transparent); }
.photo-cta-body { padding-block: 60px 25vw; text-align: center; color: #fff; }
.photo-cta h2 { font-family: var(--font-book); font-size: 24px; text-transform: uppercase; }
.photo-cta b, .photo-cta strong { font-weight: 700; }
.photo-cta-desc { margin-top: 19px; font-size: 14px; line-height: calc(1.25 / .875); font-weight: 300; }
.photo-cta-links { display: flex; flex-direction: column; align-items: stretch; justify-content: center; gap: 18.5px; width: fit-content; margin: 20px auto 0; }
.photo-cta-links .btn:nth-child(odd):not(:hover, :focus-visible), .photo-cta-links:has(.btn:is(:hover, :focus-visible)) .btn:not(:hover, :focus-visible) { border-color: #fff; box-shadow: none; }
.photo-cta-links .btn:nth-child(odd):not(:hover, :focus-visible)::before, .photo-cta-links:has(.btn:is(:hover, :focus-visible)) .btn:not(:hover, :focus-visible)::before { opacity: 0; }
@media (min-width: 768px) {
  .photo-cta { aspect-ratio: 1920 / 960; }
  .photo-cta--belt::before { height: 9.25px; }
  .photo-cta-body { padding-top: 35px; }
  .photo-cta-desc { margin-top: 10px; font-size: 18px; line-height: calc(1.75 / 1.125); }
  .photo-cta-links { flex-direction: row; align-items: center; margin-top: 2vw; }
}
@media (min-width: 1024px) {
  .photo-cta h2 { font-size: 50px; }
  .photo-cta-desc { margin-top: 30px; font-size: 22px; }
}
@media (min-width: 1280px) {
  .photo-cta-body { padding-top: 80px; }
  .photo-cta-links { margin-top: 4vw; }
}

/* The Toyota mark on a line across the top edge of a section. */
.mark-line { position: absolute; top: 0; display: flex; align-items: center; gap: 16px; width: 100%; translate: 0 -50%; }
.mark-line img { width: 70px; }
.mark-line span { position: relative; flex: 1; height: 2px; background: #a3a3a3; }
.mark-line span::after { content: ""; position: absolute; top: 0; width: 16px; height: 16px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23a3a3a3' stroke='%23a3a3a3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M13.73 4a2 2 0 0 0-3.46 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z'/%3E%3C/svg%3E"); }
.mark-line-start::after { right: 0; translate: 2px calc(-50% + 1px); rotate: -90deg; }
.mark-line-end::after { left: 0; translate: -2px calc(-50% + 1px); rotate: 90deg; }
@media (min-width: 768px) { .mark-line img { width: 80px; } }

/* White card with a red belt on the right half of its top edge (component). */
.red-box { position: relative; padding-top: 3px; background: #fff; box-shadow: .42px 7.5px 11.74px rgba(38, 38, 38, .17); }
.red-box::before { content: ""; position: absolute; top: 0; right: 0; width: 50%; height: 3px; background: var(--primary); }
@media (min-width: 768px) {
  .red-box { padding-top: 8.5px; box-shadow: .86px 15.56px 24.37px rgba(38, 38, 38, .17); }
  .red-box::before { height: 8.5px; }
}

/* ---------- History page ---------- */
/* Eighteen dots don't fit a phone's width at full size: squeezed, they stay pills. */

/* Texts and photos side by side, every second pair the other way up. */
.alternate { display: flex; flex-direction: column; gap: 24px; padding-top: 4px; }
.alternate-item { display: flex; flex-direction: column; gap: 16px; }
.alternate-img { aspect-ratio: 393 / 197; overflow: hidden; }
.alternate-img img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 768px) {
  .alternate { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px 40px; }
  .alternate-item { justify-content: space-between; }
  .alternate-item:nth-child(odd) { flex-direction: column-reverse; }
  .alternate-img { aspect-ratio: 735 / 439; }
}
@media (min-width: 1280px) { .alternate { column-gap: 77px; } }

/* A car under an arch; the cities behind it slide by every five seconds. */
.horizons-stage { position: relative; aspect-ratio: 16 / 9; width: 100%; overflow: hidden; }
.horizons-arch { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; }
.horizons-view { pointer-events: none; user-select: none; }
.horizons-view, .horizons-view .carousel-track { height: 100%; }
.horizons-view img { height: 100%; object-fit: cover; }
.horizons-text { display: flex; flex-direction: column; margin-top: 30px; }
.horizons-text ul { margin: 0; list-style: none; }
.horizons-head { display: flex; justify-content: space-between; gap: 12px; }
.horizons-head h3 { font-family: var(--font-book); font-size: 18px; font-weight: 600; text-transform: uppercase; }
.horizons-flags { display: flex; flex-shrink: 0; gap: 7px; }
.horizons-flags img { width: 37px; height: 24.5px; object-fit: cover; }
.horizons-row { display: flex; gap: 20px; }
.horizons-row .paragraph { margin-top: 12px; }
.horizons-countries { display: none; }
.horizons-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; width: 100%; }
.horizons-text .horizons-stats { margin: 32px auto 0; }
.horizons-stats li > div { display: flex; align-items: center; gap: 12px; height: 100%; padding: 20px; font-size: 14px; font-weight: 300; }
.horizons-stats img { flex-shrink: 0; width: 45px; height: 45px; object-fit: contain; }
@media (min-width: 768px) {
  .horizons-stage { aspect-ratio: 20 / 9; }
  .horizons-text { margin-top: 40px; }
  .horizons-head h3 { font-size: 34px; }
  .horizons-flags img { width: 60px; height: 40px; }
  .horizons-stats li > div { gap: 40px; font-size: 24px; }
  .horizons-stats img { width: 80px; height: 80px; }
}
@media (min-width: 1024px) {
  .horizons-flags { display: none; }
  .horizons-countries { display: block; flex-shrink: 0; padding: 30.5px 25px 22px; font-weight: 300; text-align: center; }
  .horizons-countries ul { display: flex; gap: 30px; }
  .horizons-countries li { font-size: 9px; }
  .horizons-countries img { width: 85px; height: 56px; margin-bottom: 4px; object-fit: cover; }
  .horizons-countries p { margin-top: 8px; font-size: 24px; }
}
@media (min-width: 1280px) {
  .horizons-stats { display: flex; gap: 20px; }
  .horizons-text .horizons-stats { margin-top: 16px; }
  .horizons-stats li { flex: 1; }
  .horizons-stats li > div { padding-left: 28px; }
}

/* The director's words. */
.quote-band { position: relative; z-index: 10; background: #818181; }
.quote-band::before { content: ""; position: absolute; top: 0; right: 0; width: 50%; height: 6px; background: var(--primary); }
.quote-in { position: relative; display: flex; gap: 24px; padding: 48px 24px 40px; }
.quote-mark { flex: none; width: 85px; height: 80px; object-fit: contain; }
.quote-in blockquote { translate: 0 -12px; font-size: 16px; line-height: 1.25; font-weight: 300; color: #e2e2e2; }
.quote-lead { margin-inline-end: 12px; font-size: 32px; font-weight: 400; color: #e5e5e5; text-transform: uppercase; }
.quote-in figcaption { position: absolute; right: 32px; bottom: 8px; font-size: 12px; font-weight: 300; color: #fff; }
@media (min-width: 768px) {
  .quote-band::before { height: 7px; }
  .quote-in { padding: 80px 36px 56px; }
  .quote-mark { width: 159px; height: 150px; }
  .quote-in blockquote { max-width: 900px; translate: 0 -30px; font-size: 30px; }
  .quote-lead { font-size: 80px; }
  .quote-in figcaption { top: 16px; right: 40px; bottom: auto; font-size: 16px; }
}

/* A sheet of paper dragged off a picture (history.js sizes the sheet). */
.reveal { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; height: 35vw; max-height: 550px; overflow: hidden; background: #fff; user-select: none; }
.reveal-cover { position: absolute; top: 0; left: 0; z-index: 10; display: flex; align-items: center; justify-content: flex-end; width: 0; height: 100%; background: #fff; opacity: 0; }
.reveal-paper { position: relative; flex-shrink: 0; height: 88%; translate: 50% 0; cursor: grab; touch-action: none; }
.reveal-paper:active { cursor: grabbing; }
.reveal-paper img { width: auto; max-width: none; height: 100%; translate: 0 6%; pointer-events: none; }
.reveal-car { width: 80vw; translate: -3.8% 0; pointer-events: none; }
@media (min-width: 1024px) { .reveal-car { width: 1000px; } }
@media (min-width: 1536px) { .reveal-car { width: 1500px; } }

/* ---------- Local initiatives page ---------- */
/* A floating island under the title. */
.island { margin-top: 80px; }
.island-in { position: relative; aspect-ratio: 440 / 800; }
.island-pic { position: absolute; top: 40px; left: 0; width: 100%; height: 100%; }
.island-pic picture, .island-pic img { width: 100%; height: 100%; object-fit: cover; }
.island-text { position: absolute; inset: 0; z-index: 10; }
.island-title { display: none; }
.island-mobile-title { margin-top: 80px; font-size: 36px; font-weight: 300; color: var(--dark); text-transform: uppercase; }
.island-first { display: flex; align-items: center; gap: 16px; }
.island-first span { flex-shrink: 0; }
.island-first i { position: relative; flex: 1; height: 2px; background: linear-gradient(to left, transparent, #8b8a8b); }
.island-first i::after { content: ""; position: absolute; top: 50%; left: 0; width: 0; height: 0; border: solid transparent; border-width: 0 4px 8px; border-bottom-color: #8b8a8b; translate: 0 -50%; rotate: 90deg; }
.island-desc { margin: 12px auto 0; font-size: 16px; font-weight: 300; text-align: center; }
.island-text .btn { display: none; width: fit-content; margin: 56px auto 0; }
@media (min-width: 768px) {
  .island { margin-top: 144px; }
  .island-in { aspect-ratio: 1920 / 900; }
  .island-pic img { object-fit: contain; }
  .island-title { display: block; margin-top: -20px; font-size: 44px; line-height: 1.25; font-weight: 300; color: var(--dark); text-align: center; text-transform: uppercase; }
  .island-mobile-title { display: none; }
  .island-desc { font-size: 18px; }
}
@media (min-width: 769px) and (prefers-reduced-motion: no-preference) { .island-pic picture { animation: island-float 15s linear infinite; } }
@media (min-width: 1024px) {
  .island-title { margin-top: 4px; font-size: 35px; }
  .island-desc { max-width: 40%; margin-top: 24px; }
}
@media (min-width: 1280px) {
  .island-pic { left: 10%; width: 80%; }
  .island-text .btn { display: flex; }
}
@media (min-width: 1536px) { .island-title { margin-top: 8px; font-size: 56px; } }
@keyframes island-float {
  18% { transform: translate(6px, -12px); }
  36% { transform: translate(12px, 0); }
  54% { transform: translate(-6px, -6px); }
  72% { transform: translate(-12px, -12px); }
  90% { transform: translate(-6px, -6px); }
}

/* Initiatives: a row of cards that drifts by from 1024px (history.js), and only swipes below that. Each opens in a dialog. */
.initiatives { position: relative; display: flex; flex-direction: column; }
.initiatives-desc { order: 1; padding-inline: 24px; margin-top: 40px; font-size: 14px; line-height: calc(1.25 / .875); font-weight: 300; color: var(--dark); text-align: center; }
.initiatives-view { width: 100%; margin-top: 20px; overflow-x: clip; overflow-y: visible; user-select: none; }
.initiatives-view .initiative { flex: 0 0 auto; padding-inline: 10px; }
.initiative-card { position: relative; display: flex; flex-direction: column; width: 250px; height: 100%; box-shadow: .46px 8.28px 12.98px rgba(56, 56, 56, .17); transition: scale .3s cubic-bezier(.4, 0, .2, 1); }
.initiative-img { flex-shrink: 0; aspect-ratio: 16 / 9; overflow: hidden; }
.initiative-img img { width: 100%; height: 100%; object-fit: cover; }
.initiative-body { display: flex; flex: 1; flex-direction: column; margin-top: 4px; padding: 7px 12px 8px; }
.initiative-tag { margin-bottom: 8px; font-size: 8px; color: #a3a3a3; }
.initiative-card h3 { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 1; overflow: hidden; margin-bottom: 8px; font-size: 14px; font-weight: 300; color: #000; }
.initiative-text { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; margin-bottom: 16px; }
.initiative-open { position: relative; display: flex; align-items: center; align-self: flex-end; margin-top: auto; font-size: 11px; color: #979797; transition: color .3s cubic-bezier(.4, 0, .2, 1); }
.initiative-open::before { content: ""; position: absolute; inset: -5px; }
.initiative-open:is(:hover, :focus, :active) { color: #000; }
.initiative-open svg { translate: 0 2px; }
@media (max-width: 1023px) { .initiatives > .story-pause { display: none; } }
@media (hover: hover) { .initiative-card:hover { scale: 1.05; } }
@media (min-width: 640px) { .initiatives-desc { display: none; } }
@media (min-width: 768px) {
  .initiatives-desc { display: block; order: 0; width: calc((min(100%, var(--container)) - 48px) * .5); padding: 0; margin: 6px auto 0; font-size: 18px; line-height: calc(1.75 / 1.125); }
  .initiatives-view { margin-top: 40px; }
  .initiative-card { width: 400px; box-shadow: .93px 16.66px 26.09px rgba(56, 56, 56, .17); }
  .initiative-body { margin-top: 8px; padding: 12.5px 20px 20px; }
  .initiative-tag { margin-bottom: 12px; font-size: 14px; color: #000; }
  .initiative-card h3 { margin-bottom: 16px; font-size: 28px; }
  .initiative-open { align-self: flex-start; font-size: 12px; }
}
@media (min-width: 1024px) { .initiatives-view .initiative { padding-inline: 12px; } }
@media (min-width: 1280px) { .initiative-body { padding-inline: 28px; } }
@media (min-width: 1536px) { .initiatives-view .initiative { padding-inline: 20px; } }
@media (min-width: 1568px) { .initiatives-desc { width: calc(var(--container) * .5); } }
@media (prefers-reduced-motion: reduce) { .initiative-card { transition: none; } }
.initiative-full { display: flex; flex-direction: column; max-height: 80dvh; overflow: hidden; }
.initiative-full > img { flex-shrink: 0; width: 100%; aspect-ratio: 16 / 9; margin-bottom: 8px; object-fit: cover; }
.initiative-full > div { flex: 1; overflow-y: auto; padding-inline-end: 8px; }
.initiative-dialog { overflow: hidden; }
.initiative-dialog .dialog-round { border-width: 2px; }
.initiative-dialog h2 { font-size: 30px; line-height: 1.2; font-weight: 400; }
.initiative-dialog .initiative-tag { margin: 8px 0 40px; font-size: 16px; font-weight: 300; color: #fff; }
@media (min-width: 768px) { .initiative-full > img { margin-bottom: 16px; } }

/* Event photos: pointing at one darkens the others; each opens the photo dialog. */
.snap { position: relative; display: block; overflow: hidden; }
.snap img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.snap:focus-visible { z-index: 1; }
.snaps-strip { display: flex; gap: 8px; margin-top: 20px; }
.snaps-strip > div { display: flex; flex: 1 0 0; flex-direction: column; gap: 8px; min-width: 0; }
.snap--p34 { aspect-ratio: 3 / 4; width: 100%; }
.snap--p11 { aspect-ratio: 1; width: 100%; }
.snap--p169 { flex-shrink: 0; aspect-ratio: 16 / 9; width: 100%; }
.snap--fill { width: 100%; height: 100%; }
.snaps-about { display: flex; flex-direction: column; margin-top: 16px; }
.snaps-about .paragraph { color: var(--dark); }
.snaps-about .btn { margin: 28px auto 0; }
.snaps { display: none; }
@media (min-width: 1024px) {
  .snaps-phone { display: none; }
  .snaps { display: flex; flex-direction: column; gap: 12px; margin-top: 40px; padding-inline: 16px; }
  .snap::after { content: ""; position: absolute; inset: 0; transition: background-color .5s cubic-bezier(.4, 0, .2, 1); }
  .snaps:has(.snap:hover) .snap:not(:hover)::after { background: rgba(0, 0, 0, .4); }
  .snaps-top, .snaps-rest, .snaps-row, .snaps-lead { display: flex; gap: 12px; }
  .snaps-lead { flex-shrink: 0; align-items: flex-end; justify-content: flex-end; width: 60%; }
  .snaps-words { display: flex; justify-content: flex-end; padding: 3vw 2.5vw 0 0; }
  .snaps-words--first { align-items: flex-end; justify-content: flex-start; width: 100%; padding: 0 2vw 4.5vw; }
  .snaps-words .paragraph { max-width: 600px; }
  .snaps-words p { font-size: 16px; }
  .snaps-rest { align-items: flex-start; }
  .snaps-left, .snaps-mid, .snaps-pair { display: flex; flex-direction: column; gap: 12px; }
  .snaps-left { width: 35%; }
  .snaps-mid { width: 52%; }
  .snaps-hang { position: relative; width: 30%; }
  .snaps-pair { width: 35%; }
  .snaps-trio { width: 65%; }
  .snaps-trio .snaps-row { align-items: flex-start; }
  .snaps-trio .snap { flex: 1 0 0; }
  .snaps-more { display: flex; justify-content: flex-end; padding-top: 2vw; }
  .snaps-more .btn:not(.btn--squeeze) { translate: 1.5vw 0; font-size: 16px; }
  .snaps-right { width: 13%; }
  .snap--a { aspect-ratio: 179 / 263; width: 15%; }
  .snap--b { aspect-ratio: 364 / 174; width: 30%; }
  .snap--c { aspect-ratio: 380 / 319; width: 60%; }
  .snap--d { aspect-ratio: 225 / 319; width: 40%; }
  .snap--e { aspect-ratio: 363 / 175; width: 35%; }
  .snap--f { position: absolute; bottom: 0; aspect-ratio: 300 / 209; width: 100%; }
  .snap--g { aspect-ratio: 179 / 262; width: 50%; }
  .snap--h { aspect-ratio: 363 / 161; width: 98%; }
  .snap--i { aspect-ratio: 214 / 254; }
  .snap--j { aspect-ratio: 216 / 330; }
  .snap--k { aspect-ratio: 216 / 258; }
  .snap--l { aspect-ratio: 207 / 379; width: 100%; translate: 0 -2vw; }
}
/* Philosophy: a sentence beside a faint quotation mark, then four cards. */
.pillars-intro { position: relative; padding: 20px 0 0 32px; }
.pillars-mark { position: absolute; top: 0; left: 0; width: 180px; rotate: 180deg; opacity: .08; filter: invert(1); }
.pillars-mark img { width: 100%; }
.pillars { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 80px 0 0; list-style: none; }
.pillars > li > div { display: flex; flex-direction: column; justify-content: space-between; height: 100%; padding: 16px; font-weight: 300; }
.pillars h3 { font-size: 14px; }
.pillars ul { margin-top: 16px; list-style: disc outside; }
.pillars ul li { margin-bottom: 8px; font-size: 12px; }
@media (min-width: 768px) {
  .pillars-intro { display: flex; align-items: center; gap: 40px; }
  .pillars-mark { position: relative; opacity: .15; }
  .pillars { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .pillars > li > div { padding: 24px 24px 16px; }
  .pillars h3 { font-size: 20px; }
  .pillars ul { margin-top: 24px; }
  .pillars ul li { font-size: 14px; }
}
@media (min-width: 1024px) { .pillars h3 { font-size: 24px; } .pillars ul { list-style-position: inside; } }
@media (min-width: 1280px) { .pillars > li > div { padding: 28px 28px 16px; } .pillars h3 { font-size: 28px; } }

/* Results: the director's words and three square cards. */
.results { display: none; }
.results-desc--phone { margin-block: 20px 16px; }
.results-name { color: #464646; }
.results-role { font-weight: 300; color: #9e9e9e; }
.results-words { position: relative; margin-top: 20px; padding-bottom: 16px; font-weight: 300; color: #444; }
.results-words::after { content: ""; position: absolute; bottom: 0; left: 0; width: 100%; height: 2px; background: var(--primary); }
.results-phone { padding-block: 40px; }
.results-phone-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.results-phone-person { width: 50%; }
.results-phone .results-name { font-size: 18px; }
.results-phone .results-role { font-size: 12px; }
.results-phone .results-words { font-size: 10px; }
.results-phone-rest { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-top: 32px; }
.results-phone-rest .result:first-child { margin-inline-start: 1vw; }
.results-phone-rest .result:last-child { margin: 5vw 1vw 0 0; }
.result { position: relative; isolation: isolate; display: flex; flex-shrink: 0; flex-direction: column; justify-content: space-between; aspect-ratio: 1; width: 155px; min-height: 0; padding: 16px 0 16px 16px; border-right: 3.5px solid var(--primary); box-shadow: .48px 8.65px 13.56px rgba(56, 56, 56, .17); font-weight: 300; }
.result img { position: absolute; top: 8px; right: 8px; z-index: -1; width: 50px; height: 50px; object-fit: cover; opacity: .11; }
.result-title { max-width: calc(100% - 50px); margin-top: 36px; font-size: 16px; }
.result-sum { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; max-width: calc(100% - 12px); margin-top: 16px; padding-inline: 4px; font-size: 12px; }
.result-sum strong { font-size: 22px; font-weight: 300; color: var(--primary); }
@media (min-width: 640px) {
  .result { width: 200px; }
  .results-phone-rest { justify-content: center; gap: 80px; }
  .results-phone-rest .result:first-child { margin-inline-start: 30vw; }
  .results-phone-rest .result:last-child { margin-inline-end: 5vw; }
}
@media (min-width: 768px) {
  .results-desc--phone { display: none; }
  .result { width: 230px; border-right-width: 6.5px; box-shadow: .86px 15.56px 24.37px rgba(56, 56, 56, .17); }
  .result img { width: 60px; height: 60px; }
  .result-title { margin-top: 64px; font-size: 24px; }
  .result-sum { font-size: 18px; }
  .result-sum strong { font-size: 27px; }
}
@media (min-width: 1024px) {
  .results-phone { display: none; }
  .results { display: flex; gap: 16px; min-height: 450px; padding-block: 48px 32px; }
  .results-left { display: flex; flex-direction: column; justify-content: space-between; gap: 80px; width: 55%; height: 100%; }
  .results-person { position: relative; display: flex; align-items: flex-end; gap: 32px; padding-top: 2px; }
  .results-person::before { content: ""; position: absolute; top: 0; left: 0; width: 80%; height: 2px; background: var(--primary); }
  .results-person > img { min-width: 0; width: 180px; height: 180px; margin-top: 40px; object-fit: cover; }
  .results .results-name { font-size: 24px; }
  .results .results-role { font-size: 20px; }
  .results .results-words p { font-size: 15px; }
  .results .results-words::after { width: 130%; height: 2.5px; }
  .results-cards { display: grid; grid-template-columns: auto auto; align-content: center; justify-content: center; gap: 7vw 5vw; width: 45%; }
  .result { width: 200px; padding: 8px; }
  .result img { opacity: 1; }
  .result-title { max-width: calc(100% - 20px); }
  .results-cards .result:first-child { top: 4vw; grid-row: 1 / 3; align-self: center; }
  .results-cards .result:not(:first-child) { min-height: auto; }
  .results-cards .result:last-child { left: -2.5vw; }
}
@media (min-width: 1280px) {
  .result { width: 250px; padding: 16px; }
  .result-title { max-width: calc(100% - 50px); }
}
@media (min-width: 1536px) {
  .result { width: 280px; }
  .result img { width: 70px; height: 70px; }
  .result-title { font-size: 30px; }
  .result-sum { font-size: 21px; }
  .result-sum strong { font-size: 35px; }
}

/* ========== Our life and vacancies pages ========== */
/* A paragraph under a centred heading. */
.life-centered .heading h2 { text-align: center; }
.life-lead { margin: 20px auto 16px; }
.life-lead > * { text-align: center; }
.heading:has(+ .life-lead) { margin-bottom: 0; }
@media (min-width: 640px) { .life-lead { width: 70%; } }
@media (min-width: 768px) { .life-lead { width: 50%; margin-block: 30px 24px; } }

/* A white box with a red belt on its top right. */
.life-box { position: relative; padding-top: 3px; background: #fff; box-shadow: .42px 7.5px 11.74px rgba(38, 38, 38, .17); }
.life-box::before { content: ""; position: absolute; top: 0; right: 0; width: 50%; height: 3px; background: var(--primary); }
@media (min-width: 768px) {
  .life-box { padding-top: 8.5px; box-shadow: .86px 15.56px 24.37px rgba(38, 38, 38, .17); }
  .life-box::before { height: 8.5px; }
}

/* Album tiles: photos that open the album. Where they dim, pointing at one darkens the rest. */
.tile { position: relative; overflow: hidden; min-width: 0; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile::after { content: ""; position: absolute; inset: 0; transition: background-color .5s cubic-bezier(.4, 0, .2, 1); }
.tiles--dim:has(.tile:hover) .tile:not(:hover)::after { background: rgba(0, 0, 0, .4); }
.tile:focus-visible { outline: none; }
.tile:focus-visible::before { content: ""; position: absolute; inset: 0; z-index: 1; border: 4px solid var(--primary); box-shadow: inset 0 0 0 3px #fff; }
.mini-tiles { display: flex; gap: 8px; margin-top: 20px; }
.mini-tiles > div { display: flex; flex: 1 0 0%; flex-direction: column; gap: 8px; min-width: 0; }
.mini-tiles .tile { width: 100%; }
.mini-tiles > :first-child .tile:first-child { aspect-ratio: 3 / 4; }
.mini-tiles > :first-child .tile:last-child { aspect-ratio: 1; }
.mini-tiles > :nth-child(2) .tile, .mini-tiles > :last-child .tile:first-child { flex: 1; }
.mini-tiles > :last-child .tile:last-child { flex-shrink: 0; aspect-ratio: 16 / 9; }
@media (min-width: 1024px) { .mini-tiles { display: none; } }

/* The photo banners that close both pages (history.css) show focus in white. */
#join .btn:focus-visible, #view-vacancies .btn:focus-visible { outline-color: #fff; }

/* Links to the vacancies on LinkedIn (blue) and HeadHunter. */
.job-link--in::before { background: linear-gradient(to right, #009bc5, #004dc0); }
.job-link img { flex-shrink: 0; width: 23px; max-width: none; height: 23px; object-fit: cover; }
.view-links { display: flex; flex-direction: column-reverse; align-items: center; justify-content: center; gap: 18.5px; margin-top: 20px; }
@media (min-width: 768px) { .view-links { flex-direction: row; margin-top: 2vw; } }
@media (min-width: 1280px) { .view-links { margin-top: 4vw; } }

/* ---------- Our life ---------- */
/* Montage: columns of portraits drop in and bounce; the title slides down. */
.montage { position: relative; width: 100%; max-width: 100%; margin-top: 80px; overflow: hidden; }
.montage::before { content: ""; position: absolute; top: -10px; left: 0; z-index: 10; width: 100%; height: 150px; background: linear-gradient(to bottom, #fff, rgba(255, 255, 255, .2), transparent); pointer-events: none; }
.montage::after { content: ""; display: block; height: 2px; margin-top: 24px; background: linear-gradient(to right, rgba(0, 0, 0, .15), rgba(0, 0, 0, 0)); }
.montage-phone { position: relative; display: flex; gap: 10px; width: calc(100vw - 32px); max-width: var(--container); margin: 40px auto 0; }
.montage-cards { position: relative; display: flex; flex-direction: column; gap: 10px; transform-origin: bottom; animation: montage-drop 3s both; }
.montage-phone .montage-cards { flex: 1 0 0%; }
.montage-cards > * { width: 100%; aspect-ratio: 123 / 151; object-fit: cover; }
.montage-cards img { box-shadow: .68px 12.21px 19.14px 0 rgba(56, 56, 56, .17); }
.montage-cards > span { position: relative; display: block; aspect-ratio: 123 / 70; background: #d9d9d9; }
.montage-phone > :nth-child(2) > span { aspect-ratio: 123 / 110; }
.montage-cards > span::before { content: ""; position: absolute; top: -5px; left: 0; width: 100%; height: 75%; background: linear-gradient(to bottom, #fff, transparent); }
.montage-text { animation: montage-text 1s ease-out both; }
.montage h1 { margin-top: 28px; padding-inline: 24px; text-align: center; font-size: 36px; font-weight: 300; text-transform: uppercase; }
.montage .paragraph > * { margin-top: 24px; text-align: center; font-size: 16px; }
.montage-wide { display: none; }
/* framer-motion's bounce: each stretch between two touches is a parabola, which these curves draw exactly. */
@keyframes montage-drop {
  0% { transform: translateY(-90px); animation-timing-function: cubic-bezier(.3333, 0, .6667, .3333); }
  36.3636% { transform: none; animation-timing-function: cubic-bezier(.3333, .6667, .6667, 1); }
  54.5455% { transform: translateY(-22.5px); animation-timing-function: cubic-bezier(.3333, 0, .6667, .3333); }
  72.7273% { transform: none; animation-timing-function: cubic-bezier(.3333, .6667, .6667, 1); }
  81.8182% { transform: translateY(-5.625px); animation-timing-function: cubic-bezier(.3333, 0, .6667, .3333); }
  90.9091% { transform: none; animation-timing-function: cubic-bezier(.3333, .6667, .6667, 1); }
  95.4545% { transform: translateY(-1.40625px); animation-timing-function: cubic-bezier(.3333, 0, .6667, .3333); }
  100% { transform: none; }
}
@keyframes montage-text { from { transform: translateY(-90px); } }
@media (min-width: 768px) {
  .montage { margin-top: 88px; }
  .montage::before { top: -2px; }
  .montage::after { content: none; }
  .montage-phone { display: none; }
  .montage-text { position: absolute; top: 52%; left: 50%; z-index: 10; width: min(50%, 760px); translate: -50%; text-align: center; }
  .montage h1 { margin: 0; padding: 0; font-size: 4vw; font-weight: 400; color: var(--dark); }
  .montage .paragraph { margin-top: 20px; }
  .montage .paragraph > * { margin: 0; font-size: 1.86vw; color: var(--dark); }
  .montage-wide { position: relative; display: flex; gap: 14px; width: 100%; max-width: var(--container); aspect-ratio: 1634 / 775; margin-inline: auto; padding-inline: 16px; }
  .montage-col { display: flex; flex: 1; flex-direction: column; }
  .montage-wide .montage-cards { z-index: 10; flex: 1; gap: 15px; }
  .montage-wide .montage-cards > * { flex-shrink: 0; aspect-ratio: 168 / 206; }
  .montage-cards img { box-shadow: none; }
  .montage-wide .montage-cards > span { background: linear-gradient(to top, #d9d9d9 0%, #f0f0f0 48%, #fff 100%); }
  .montage-cards > span::before { content: none; }
  .montage-wide > :nth-child(1) span, .montage-wide > :nth-child(9) span { aspect-ratio: 168 / 156; }
  .montage-wide > :nth-child(2) span { aspect-ratio: 168 / 80; }
  .montage-wide > :nth-child(3) span { aspect-ratio: 168 / 136; }
  .montage-wide > :nth-child(4) span, .montage-wide > :nth-child(6) span, .montage-wide > :nth-child(8) span { aspect-ratio: 168 / 87; }
  .montage-wide > :nth-child(5) span { aspect-ratio: 168 / 137; }
  .montage-wide > :nth-child(7) span { aspect-ratio: 168 / 171; }
  .montage-dash { display: flex; flex: 1; justify-content: center; }
  .montage-dash i { width: 2px; height: 77.5%; border-radius: 50px; background: linear-gradient(to bottom, #000 0%, #f00 50%, #666 100%); -webkit-mask-image: repeating-linear-gradient(to bottom, #000 0 5px, transparent 5px 10px); mask-image: repeating-linear-gradient(to bottom, #000 0 5px, transparent 5px 10px); opacity: .4; }
  .montage-wide > :nth-child(2) i { height: 60%; margin-top: 16px; }
  .montage-wide > :nth-child(3) i { height: 75%; margin-top: 50px; opacity: .19; }
  .montage-wide > :nth-child(4) i { height: 70%; margin-top: 16px; opacity: .03; }
  .montage-wide > :nth-child(5) i { height: 75%; margin-top: 16px; opacity: .03; }
  .montage-wide > :nth-child(6) i { height: 66%; margin-top: 16px; opacity: .03; }
  .montage-wide > :nth-child(7) i { height: 90%; margin-top: 12px; opacity: .19; }
  .montage-wide > :nth-child(8) i { height: 90%; margin-top: 20px; }
  .montage-wide > :nth-child(9) i { height: 100%; margin-top: 16px; }
}
@media (min-width: 1280px) {
  .montage { margin-top: 144px; }
  .montage h1 { font-size: 56px; }
  .montage .paragraph > * { font-size: 26px; }
}
@media (min-width: 1536px) { .montage-wide { padding-inline: 0; } }
@media (prefers-reduced-motion: reduce) { .montage-cards, .montage-text { animation: none; } }

/* Values: a picture beside a heading, a line and three boxes; on phones the picture comes first and the line last. */
.life-values { display: flex; flex-direction: column; }
.life-values-text { display: flex; flex-direction: column; gap: 50px; order: 1; margin-top: 50px; text-align: center; }
.life-values h2 { font-size: 26px; font-weight: 300; text-transform: uppercase; }
.life-values .paragraph { order: 1; }
.life-values-list { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.life-values .life-box { display: flex; flex-direction: column; align-items: center; gap: 12px; width: 80%; padding: 24px; font-size: 16px; font-weight: 300; color: #000; }
.life-values .life-box img { width: auto; height: 54px; aspect-ratio: 74 / 42; object-fit: cover; }
.life-values-img { width: 85%; margin-inline: auto; }
.life-values-img img { width: 100%; aspect-ratio: 724.5 / 464.5; object-fit: cover; }
@media (min-width: 640px) { .life-values .life-box { width: 55%; } .life-values-img { width: 70%; } }
@media (min-width: 768px) {
  .life-values { flex-direction: row; gap: 24px; }
  .life-values-text { flex: 1; justify-content: space-between; gap: 16px; order: 0; margin: 0; text-align: start; }
  .life-values h2 { font-size: 20px; }
  .life-values .paragraph { order: 0; }
  .life-values-list { flex-direction: row; align-items: stretch; gap: 30px; }
  .life-values .life-box { max-width: 250px; padding: 24px 8px 8px; font-size: 18.5px; }
  .life-values .life-box img { height: 42px; }
  .life-values-img { flex-shrink: 0; width: 40%; }
}
@media (min-width: 1024px) { .life-values h2 { font-size: 33px; } }

/* Faces: tabs of people. The old tab's cards leave one after another, then the new tab's arrive (life.js). */
.face-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 30px; }
.face-tab { position: relative; z-index: 10; display: inline-flex; align-items: center; justify-content: center; height: 40px; min-width: 189px; padding: 0 2px; border: 1px solid #000; color: #000; font-size: 14px; white-space: nowrap; transition: all .15s cubic-bezier(.4, 0, .2, 1); }
.face-tab::before { content: ""; position: absolute; inset: -1px; z-index: -1; background: var(--btn-gradient); opacity: 0; transition: opacity .3s cubic-bezier(.4, 0, .2, 1); }
.face-tab[aria-selected="true"] { border-color: transparent; color: #fff; box-shadow: 1px 3px 12.6px rgba(0, 0, 0, .61); }
.face-tab[aria-selected="true"]::before { opacity: 1; }
.face-tab:focus-visible { outline: 3px solid rgba(193, 15, 16, .5); outline-offset: 1px; }
.faces { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 24px; }
.faces:focus-visible { outline-offset: 8px; }
.face { position: relative; z-index: 10; display: flex; flex-direction: column; overflow: hidden; background: #fff; box-shadow: 0 10px 15px -3px rgba(0, 0, 0, .1), 0 4px 6px -4px rgba(0, 0, 0, .1); }
.face-img { flex-shrink: 0; width: 100%; aspect-ratio: 348 / 198; object-fit: cover; background: linear-gradient(rgba(0, 0, 0, .05), rgba(0, 0, 0, .15)); }
.face-text { position: relative; display: flex; flex: 1; flex-direction: column; justify-content: space-between; margin-top: 5px; padding: 8px 0 8px 16px; background: #fff; }
.face-text::before { content: ""; position: absolute; top: 0; right: 0; width: 50%; height: 3px; background: var(--primary); }
.face-name { font-size: 13px; color: #464646; }
.face-desc { display: none; }
.face-role { margin-top: 5px; font-size: 8px; color: #9c9c9c; }
.faces-group { grid-column: 1 / -1; margin-block: 8px -8px; text-align: center; font-size: 18px; font-weight: 300; }
@media (min-width: 768px) {
  .face-tab { width: 250px; height: 50px; border-color: var(--primary); font-size: 16px; }
  .faces { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 42px; }
  .face-text { margin-top: 9px; padding: 16px 20px 20px; }
  .face-text::before { height: 8.5px; }
  .face-name { font-size: 24px; }
  .face-desc { display: block; margin-top: 12px; font-size: 12px; font-weight: 300; }
  .face-role { margin-top: 24px; font-size: 16px; }
  .faces-group { margin-block: 16px -16px; font-size: 22px; }
}
@media (min-width: 1024px) { .faces { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Every day: five photos hung in a curve across the page, each with its icon and name; two in a row on phones. */
.steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 16px; margin-top: 40px; padding-inline: 24px; }
.step { display: flex; flex-direction: column; }
.step-name { display: flex; align-items: flex-end; gap: 8px; }
.step-name img { width: 50px; height: auto; min-width: 0; aspect-ratio: 1; object-fit: cover; }
.step-name h3 { font-size: 14px; }
.step-img { width: 100%; margin-top: 12px; aspect-ratio: 16 / 9; object-fit: cover; box-shadow: -2.69px 4.92px 5.46px rgba(0, 0, 0, .25); }
.steps-lead { display: flex; align-items: flex-end; padding-bottom: 10%; }
.steps-lead .paragraph { color: var(--dark); }
.steps-lead .paragraph > * { text-align: center; font-size: 14px; }
@media (min-width: 640px) { .steps-lead { padding-bottom: 20%; } }
@media (min-width: 768px) {
  #how-we-work .heading { margin-bottom: 0; }
  .steps { display: flex; flex-wrap: wrap; gap: 0; margin: 0; padding: 0; }
  .steps-lead { order: -1; flex-basis: 100%; justify-content: center; margin-block: 30px 24px; padding: 0 24px; }
  .steps-lead .paragraph { width: 50%; color: inherit; }
  .steps-lead .paragraph > * { font-size: 18px; }
  .step { flex: 1 0 0%; flex-direction: column-reverse; align-items: center; justify-content: flex-end; margin-top: -2%; }
  .step:nth-child(1), .step:nth-child(5) { padding-top: 2.5%; }
  .step:nth-child(2), .step:nth-child(4) { padding-top: 5%; }
  .step:nth-child(3) { padding-top: 7.5%; }
  .step-img { position: relative; z-index: 10; margin: 0; box-shadow: -5.55px 10.18px 11.29px rgba(0, 0, 0, .25); }
  .step-name { flex-direction: column; align-items: center; gap: 4px; margin-top: 40px; }
  .step-name img { width: 5vw; }
  .step-name h3 { font-size: 17px; }
}
@media (min-width: 1024px) { .step-name h3 { font-size: 22px; } }
@media (min-width: 1536px) { .step-name img { width: 100px; } }
@media (min-width: 1568px) { .steps-lead { padding-inline: 0; } }

/* Scattered gallery: photos and notes strewn over grey squares; three columns of photos below 1024px. */
.scatter-wide { display: none; }
.scatter-text { display: flex; flex-direction: column; justify-content: center; margin-top: 16px; padding-inline: 24px; color: var(--dark); }
.scatter-text .btn { margin: 28px auto 0; }
@media (min-width: 1024px) {
  .scatter { position: relative; aspect-ratio: 1920 / 1228; width: 100%; margin-top: 40px; overflow: hidden; }
  .scatter-wide { display: block; }
  .scatter-wide > * { position: absolute; }
  .scatter-wide > i { width: 20.4339%; aspect-ratio: 392.33 / 284.99; background: #f2f2f2; }
  .scatter-wide > i:nth-of-type(1) { top: 3.23%; left: -.66%; width: 18.8917%; aspect-ratio: 362.72 / 223; }
  .scatter-wide > i:nth-of-type(2) { top: 3.2%; right: -7.75%; }
  .scatter-wide > i:nth-of-type(3) { right: -5.8%; bottom: 0; aspect-ratio: 392.33 / 297.02; }
  .scatter-wide > i:nth-of-type(4) { top: 30.68%; left: 24.88%; }
  .scatter-wide > i:nth-of-type(5) { right: -5.8%; bottom: 38.35%; }
  .scatter-wide > i:nth-of-type(6) { right: 27.25%; bottom: 10.3%; aspect-ratio: 392.33 / 234.1; }
  .scatter-wide > i:nth-of-type(7) { bottom: 25.75%; left: -3.7%; }
  .scatter-wide > i:nth-of-type(8) { top: 0; right: 20.6%; }
  .scatter-wide > .tile, .scatter-note { box-shadow: .93px 16.66px 26.09px rgba(38, 38, 38, .17); }
  .scatter-wide > .tile { z-index: 10; }
  .scatter-wide > .tile:nth-of-type(1) { top: 11.6%; right: -2.8%; z-index: 0; width: 20.4339%; aspect-ratio: 360.87 / 234.1; }
  .scatter-wide > .tile:nth-of-type(2) { top: 30.7%; right: 34.62%; width: 14.3615%; aspect-ratio: 275.74 / 475.6; }
  .scatter-wide > .tile:nth-of-type(3) { top: 0; right: 35.7%; width: 14.5063%; aspect-ratio: 278.52 / 262.79; }
  .scatter-wide > .tile:nth-of-type(4) { top: -.45%; right: 19%; width: 14.5063%; aspect-ratio: 275.74 / 446; }
  .scatter-wide > .tile:nth-of-type(5) { top: 10.2%; left: 30.7%; width: 17.3495%; aspect-ratio: 333.11 / 475.6; }
  .scatter-wide > .tile:nth-of-type(6) { bottom: 22.8%; left: 33.3%; width: 14.3615%; aspect-ratio: 275.74 / 266.49; }
  .scatter-wide > .tile:nth-of-type(7) { top: 33.2%; left: 0; width: 20.8854%; aspect-ratio: 401 / 258; }
  .scatter-wide > .tile:nth-of-type(8) { bottom: 22.4%; left: 8.2%; width: 20.8677%; aspect-ratio: 400.66 / 266.49; }
  .scatter-note { z-index: 20; width: 100%; max-width: 14.25%; padding: .8% 1% 1.2% 1.8%; background: linear-gradient(to bottom, rgba(0, 0, 0, .5), rgba(102, 102, 102, .5)); background-image: linear-gradient(to bottom in oklab, rgba(0, 0, 0, .5), rgba(102, 102, 102, .5)); font-size: 16px; font-weight: 500; color: #fff; }
  .scatter-note:nth-of-type(1) { top: 27%; left: 11.5%; }
  .scatter-note:nth-of-type(2) { top: 40.8%; left: 27.6%; }
  .scatter-note:nth-of-type(3) { top: 65.6%; left: 43.75%; }
  .scatter-note:nth-of-type(4) { top: 13.5%; left: 46.4%; }
  .scatter-note:nth-of-type(5) { top: 28%; left: 59%; max-width: 21.2%; }
  .scatter-text { position: absolute; top: 57.5%; left: 68.5%; z-index: 30; justify-content: flex-start; width: 23.5%; margin: 0; padding: 0; }
  .scatter-text .paragraph > * { text-align: start; font-size: 16px; line-height: 1.5; font-weight: 500; }
  .scatter-text .btn { align-self: flex-start; max-width: 246px; margin: 48px 0 0; font-family: var(--font-book); font-size: 16px; }
}

/* Cards: a picture, a title and, from 768px, a line. */
.life-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.life-card { display: flex; flex-direction: column; text-align: center; }
.life-card-top { display: flex; flex-shrink: 0; flex-direction: column; align-items: center; padding-top: 24px; }
.life-card-top img { width: auto; height: 50px; object-fit: contain; }
.life-card h3 { margin-top: 8px; padding-inline: 4px; font-size: 12px; }
.life-card-desc { display: flex; flex: 1; align-items: center; justify-content: space-between; padding: 0 8px 16px; }
.life-card-desc .paragraph { display: none; }
@media (min-width: 640px) {
  .life-card-top img { height: 60px; }
  .life-card h3 { font-size: 20px; }
}
@media (min-width: 768px) {
  .life-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 40px; }
  .life-card-top img { height: 70px; }
  .life-card h3 { font-size: 28px; }
  .life-card-desc { margin-top: 20px; }
  .life-card-desc .paragraph { display: block; }
  .life-card-desc .paragraph > * { text-align: center; font-size: 14px; }
}

/* Colleagues: three quotes (two on phones); one at a time gives its place to the next (life.js). */
.voices-section { overflow: hidden; }
.voices { position: relative; display: flex; flex-direction: column; gap: 40px; padding-top: 8px; }
.voices-nav { display: none; }
.voice-slot { position: relative; z-index: 0; display: flex; flex-direction: column; justify-content: flex-end; height: 220px; }
.voice-slot:nth-of-type(4) { display: none; }
.voice-quote { position: absolute; right: 0; bottom: 16px; z-index: -1; width: auto; max-width: none; height: calc(100% - 16px); object-fit: contain; filter: invert(1); opacity: .04; transform: rotate(180deg); }
.voice-slot:nth-of-type(3) .voice-quote { right: auto; bottom: 0; left: 0; transform: none; }
.voice { display: flex; align-items: flex-end; gap: 32px; margin-top: 12px; }
.voice-img { position: relative; z-index: 20; flex-shrink: 0; width: 30%; aspect-ratio: 1; object-fit: cover; }
.voice-text { display: flex; flex-direction: column; }
.voice-text::after { content: ""; width: 98%; height: 2px; margin-top: 8px; background: #ff2a2a; }
.voice-name { font-size: 16px; color: #464646; }
.voice-role { margin-top: 4px; font-size: 12px; font-weight: 300; color: #9e9e9e; }
.voice-words { margin-top: 8px; font-size: 10px; font-weight: 300; color: var(--dark); }
@media (max-width: 767px) {
  .voice-slot:nth-of-type(3) .voice { flex-direction: row-reverse; }
  .voice-slot:nth-of-type(3) .voice-text { align-items: flex-end; text-align: right; }
}
@media (min-width: 640px) {
  .voice { gap: 45px; }
  .voice-img { width: 20%; }
  .voice-name { font-size: 26px; }
  .voice-role { font-size: 18px; }
  .voice-words { font-size: 14px; }
}
@media (min-width: 768px) {
  .voices { display: inline-block; width: 100%; height: 700px; padding: 0; }
  .voices-nav { position: absolute; bottom: 40px; left: 16px; display: flex; gap: 40px; }
  .voices-nav button { display: flex; align-items: center; justify-content: center; width: 35px; height: 35px; background: #c72123; color: #fff; }
  .voices-nav svg { width: 20px; height: 20px; }
  .voice-slot { position: absolute; width: 500px; }
  .voice-slot:nth-of-type(2) { top: 0; right: 10%; }
  .voice-slot:nth-of-type(3) { top: 50%; left: 40px; width: 600px; transform: translateY(-50%); }
  .voice-slot:nth-of-type(4) { right: 4px; bottom: 4px; display: flex; }
  .voice-quote { right: auto; bottom: 24px; left: 224px; width: 276px; height: 125%; }
  .voice-slot:nth-of-type(3) .voice-quote { bottom: 50%; left: -40px; width: auto; }
  .voice-slot:nth-of-type(4) .voice-quote { bottom: 25%; left: 70px; width: auto; transform: rotateX(180deg); }
  .voice { max-width: 600px; }
  .voice-img { width: 177px; }
  .voice-words { margin-top: 20px; }
}
@media (min-width: 1280px) { .voice-slot:nth-of-type(2) { top: 10%; } }

/* ---------- Vacancies ---------- */
/* Plain hero: a picture, and the title, a line and a link under it. */
.plain-hero { margin-top: 80px; }
.plain-hero-img img { width: 100%; aspect-ratio: 440 / 332; object-fit: cover; }
.plain-hero-in { display: flex; flex-direction: column; align-items: center; }
.plain-hero h1 { margin-top: 16px; text-align: center; font-size: 30px; line-height: 1.25; font-weight: 300; color: var(--dark); text-transform: uppercase; }
.plain-hero-desc { margin-top: 12px; text-align: center; font-size: 16px; font-weight: 300; }
.plain-hero .btn { margin-top: 56px; font-weight: 300; }
@media (max-width: 767px) { .plain-hero .btn, .job-link { font-size: 15px; } }
@media (min-width: 768px) {
  .plain-hero { margin-top: 144px; }
  .plain-hero-img img { aspect-ratio: 1920 / 655; }
  .plain-hero h1 { font-size: 44px; }
  .plain-hero-desc { max-width: 80%; font-size: 18px; }
}
@media (min-width: 1024px) {
  .plain-hero h1 { font-size: 35px; }
  .plain-hero-desc { margin-top: 24px; }
}
@media (min-width: 1536px) { .plain-hero h1 { font-size: 56px; } }

/* Philosophy: a title and, from 1024px, a line over a picture; below that the line stands under it. */
.philosophy { margin-bottom: -48px; }
.philosophy-in { display: grid; grid-template-columns: minmax(0, 1fr); margin-top: 40px; }
.philosophy-img { grid-area: 1 / 1; }
.philosophy-img img { width: 100%; aspect-ratio: 440 / 419; object-fit: cover; }
.philosophy-sub { grid-area: 1 / 1; z-index: 1; align-self: start; margin-top: 16px; padding-inline: 24px; text-align: center; font-size: 24px; font-weight: 300; color: #fff; text-transform: uppercase; }
.philosophy-desc { padding: 20px 24px 0; text-align: justify; font-size: 14px; font-weight: 300; }
@media (min-width: 768px) {
  .philosophy { margin-bottom: -80px; }
  .philosophy-in { margin-top: 24px; }
  .philosophy-img img { aspect-ratio: 1920 / 889; }
  .philosophy-desc { width: 100%; max-width: var(--container); margin-inline: auto; font-size: 18px; }
}
@media (min-width: 1024px) {
  .philosophy-in { grid-template-rows: auto auto 1fr; justify-items: center; }
  .philosophy-img { grid-row: 1 / -1; width: 100%; }
  .philosophy-sub { width: calc((100% - 48px) * .8); margin-top: 56px; padding: 0; font-size: 30px; }
  .philosophy-desc { grid-area: 2 / 1; z-index: 1; width: calc((100% - 48px) * .7); max-width: none; margin: 56px 0 0; padding: 0; text-align: center; color: #fff; }
}
@media (min-width: 1536px) {
  .philosophy-sub { font-size: 46px; }
  .philosophy-desc { width: calc((100% - 48px) * .55); margin-top: 80px; font-size: 24px; }
}
@media (min-width: 1568px) {
  .philosophy-sub { width: 80%; }
  .philosophy-desc { width: 55%; }
}

/* Kaizen: a heading and text beside a square picture. */
.kaizen { display: flex; flex-direction: column; gap: 20px; }
.kaizen-img { flex-shrink: 0; width: 100%; aspect-ratio: 1; overflow: hidden; }
.kaizen-img img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.kaizen-text { display: flex; flex: 1; flex-direction: column; justify-content: center; gap: 40px; }
.kaizen h2 { font-size: 26px; font-weight: 300; }
@media (min-width: 768px) {
  .kaizen { flex-direction: row-reverse; gap: 80px; }
  .kaizen-img { width: 45%; }
  .kaizen-text { gap: 64px; }
  .kaizen h2 { font-size: 45px; }
}
@media (min-width: 1024px) { .kaizen h2 { font-size: 56px; } }

/* Working here: boxes with an icon that stands on their top edge from 768px. */
.work-cards { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 40px; }
.work-card { flex: 1 1 100%; max-width: 480px; box-shadow: .57px 10.28px 16.11px rgba(56, 56, 56, .17); }
.work-card::before { width: 43%; height: 4px; }
.work-card > div { display: flex; align-items: center; gap: 20px; padding: 28px; font-size: 18px; font-weight: 300; }
.work-card img { position: relative; flex-shrink: 0; width: 60px; aspect-ratio: 1; object-fit: cover; box-shadow: -3.67px 3.06px 5.63px rgba(0, 0, 0, .25); }
@media (min-width: 640px) { .work-card { flex-basis: 45%; } }
@media (min-width: 768px) {
  .work-cards { gap: 56px; margin-top: 80px; }
  .work-card { box-shadow: .72px 13.03px 20.41px rgba(56, 56, 56, .17); }
  .work-card::before { width: 50%; height: 6px; }
  .work-card > div { flex-direction: column; padding-top: 0; text-align: center; font-size: 26px; }
  .work-card img { width: 77px; margin-top: -24px; box-shadow: -4.78px 3.98px 7.32px rgba(0, 0, 0, .25); }
}
@media (min-width: 1024px) { .work-card { flex-basis: 30%; } }

/* Application: a red block with a quote, the form in a white card, and the links to both vacancy pages. */
.apply { background: linear-gradient(to bottom right, #b90000, #5b0000); background-image: linear-gradient(to bottom right in oklab, #b90000, #5b0000); }
.apply-intro { position: relative; display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 24px 0 40px; color: #fff; }
.apply-intro h2 { width: 90%; text-align: center; font-size: 26px; text-transform: uppercase; }
.apply-quote { display: contents; }
.apply-quote img { position: absolute; top: 80px; left: 20px; width: 90px; opacity: .18; }
.apply-quote .paragraph { width: 90%; padding-inline-start: 48px; }
.apply-quote .paragraph > * { font-size: 14px; }
.apply-card { padding: 24px 24px 44px; background: #fff; box-shadow: 0 11.1px 22.21px rgba(13, 16, 45, .1); text-align: center; }
.apply-card h3 { font-size: 30px; color: #1c244b; text-transform: uppercase; }
.apply-sub { margin-bottom: 24px; font-size: 16px; font-weight: 300; color: #172640; }
.apply .form-embed { gap: 37px; text-align: start; }
.apply .form-slot { justify-content: flex-start; min-height: 502px; }
.apply-pages { padding-block: 32px; }
.apply-or { display: flex; align-items: center; gap: 20px; font-size: 18px; font-weight: 300; color: #fff; }
.apply-or::before, .apply-or::after { content: ""; flex: 1; height: 1px; background: currentColor; }
.apply-links { display: flex; align-items: center; justify-content: center; gap: 40px; margin-top: 16px; }
@media (max-width: 1023px) {
  .apply-links .btn { width: 52px; height: 52px; min-width: 0; min-height: 0; padding: 0; border: 0; box-shadow: 7.01px 10.52px 21.04px rgba(0, 0, 0, .25); }
  .apply-links .btn::before { inset: 0; }
  .apply-links .btn-glow { display: none; }
  .apply-links .job-link-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
@media (min-width: 640px) { .apply .form-slot { min-height: 368px; } }
@media (min-width: 1024px) {
  .apply { display: flex; align-items: stretch; background: none; }
  .apply-intro { flex: 50%; justify-content: center; gap: 0; padding: 80px 0; background: linear-gradient(to bottom right, #b90000, #5b0000); background-image: linear-gradient(to bottom right in oklab, #b90000, #5b0000); }
  .apply-intro h2 { width: calc((100% - 5vw) * .98); margin-inline-start: 5vw; transform: translateX(-24px); font-size: 30px; }
  .apply-quote { display: flex; align-items: flex-start; margin-top: 40px; padding-inline-start: 5vw; }
  .apply-quote img { position: static; width: 10vw; min-width: 0; opacity: 1; transform: translateY(16px); }
  .apply-quote .paragraph { width: 98%; max-width: 450px; padding: 0 40px 0 20px; }
  .apply-quote .paragraph > * { font-size: 20px; }
  .apply-side { flex: 50%; min-width: 670px; padding: 24px 16px 24px 80px; }
  .apply-card, .apply-pages { max-width: 680px; }
  .apply-card { padding: 40px 32px; border: 1px solid #f1f1f1; box-shadow: 0 11.1px 22.21px rgba(13, 16, 45, .1), 0 23.13px 46.27px rgba(13, 16, 45, .1); }
  .apply-sub { margin-bottom: 28px; }
  .apply-pages { padding: 32px 0 0; }
  .apply-or { max-width: 80%; margin-inline: auto; color: #6c6c6c; }
  .apply-or::before, .apply-or::after { background: #c0c0c0; }
  .apply-links { flex-wrap: wrap; gap: 8px 24px; width: fit-content; margin-inline: auto; }
}
@media (min-width: 1280px) {
  .apply-intro h2 { width: calc((100% - 10vw) * .98); margin-inline-start: 10vw; }
  .apply-quote { padding-inline-start: 10vw; }
}
@media (min-width: 1536px) {
  .apply-intro h2 { font-size: 40px; }
  .apply-quote .paragraph { padding-inline-end: 8px; }
  .apply-quote .paragraph > * { font-size: 24px; }
}

/* Training: the text and a button over a mosaic of photos; below 1024px under three columns of photos. */
.training { display: flex; flex-direction: column; }
.training .mini-tiles { margin-top: 4px; }
@media (min-width: 768px) { .training .mini-tiles { margin-top: 0; } }
.training-intro { order: 1; display: flex; flex-direction: column; justify-content: center; margin-top: 16px; color: var(--dark); }
.training-intro .btn { margin: 28px auto 0; }
.training-wide { display: none; }
@media (min-width: 1024px) {
  .training-intro { order: 0; flex-direction: row; align-items: center; justify-content: space-between; gap: 64px; margin-block: 0 64px; color: inherit; }
  .training-intro .btn { margin: 0; font-weight: 300; line-height: calc(1.75 / 1.125); }
  .training-wide { display: block; }
  .training-grid { display: grid; grid-template-rows: repeat(3, minmax(0, 1fr)); grid-template-columns: 28% 1fr 28%; gap: 8px; width: 100%; aspect-ratio: 1520 / 806; overflow: hidden; }
  .training-grid > :nth-child(1) { grid-area: 1 / 1 / span 2; }
  .training-grid > :nth-child(2) { grid-area: 3 / 1; }
  .training-grid > :nth-child(3) { grid-area: 1 / 2; }
  .training-grid > :nth-child(4) { grid-area: 2 / 2; }
  .training-grid > :nth-child(5) { grid-area: 3 / 2; }
  .training-grid > :nth-child(6) { grid-area: 1 / 3; }
  .training-grid > :nth-child(7) { grid-area: 2 / 3 / span 2; }
  .training-grid > div { display: flex; gap: 8px; min-width: 0; }
  .training-grid > div .tile { height: 100%; }
  .training-grid > :nth-child(3) .tile:first-child { flex: 1 0 33%; }
  .training-grid > :nth-child(3) .tile:last-child { flex: 1; }
  .training-grid > :nth-child(4) .tile:first-child, .training-grid > :nth-child(5) .tile:last-child { width: 100%; }
  .training-grid > :nth-child(4) .tile:last-child, .training-grid > :nth-child(5) .tile:first-child { aspect-ratio: 416 / 264; }
}

/* ========== HEV gallery, SARII and text pages ========== */
/* ========== HEV page: photos ========== */
/* Photos: a mosaic that dims the rest while one is pointed at; each opens in the gallery. Phones show the first five and a button. */
.mosaic-photos { display: flex; flex-wrap: wrap; justify-content: center; }
.mosaic-tile { position: relative; height: 20dvh; overflow: hidden; }
.mosaic-tile img { width: 100%; height: 100%; object-fit: cover; }
.mosaic-tile::after { content: ""; position: absolute; inset: 0; transition: background .5s cubic-bezier(.4, 0, .2, 1); }
.mosaic-photos:has(.mosaic-tile:hover) .mosaic-tile:not(:hover)::after { background: rgba(0, 0, 0, .4); }
.mosaic-tile:focus-visible { z-index: 1; outline: 3px solid #fff; outline-offset: -5px; }
.mosaic-tile:nth-child(1) { width: 39.9%; }
.mosaic-tile:nth-child(2) { width: 60.1%; }
.mosaic-tile:nth-child(3) { width: 25.6%; }
.mosaic-tile:nth-child(4) { width: 39.9%; }
.mosaic-tile:nth-child(5) { width: 34.5%; }
.mosaic-tile:nth-child(n + 6) { display: none; }
.btn.mosaic-more { min-height: 44px; margin-top: 24px; border-color: #0077e5; font-size: 14px; }
.btn.mosaic-more:hover, .btn.mosaic-more:active { border-color: transparent; }
.btn.mosaic-more::before { background: var(--hev-gradient); }
@media (min-width: 1024px) {
  .mosaic-photos { display: grid; grid-template: repeat(2, 50%) / 16.83% 13.5321% 7.4479% 13.47965% 17.99035% 16.83% 13.89%; height: 50svh; margin-bottom: 32px; }
  .mosaic-tile:nth-child(n) { display: block; width: auto; height: 100%; min-height: 0; }
  .mosaic-tile:nth-child(1) { grid-area: 1 / 1 / 3 / 2; }
  .mosaic-tile:nth-child(2) { grid-area: 1 / 2 / 2 / 4; }
  .mosaic-tile:nth-child(3) { grid-area: 1 / 4 / 2 / 6; }
  .mosaic-tile:nth-child(4) { grid-area: 2 / 2 / 3 / 3; }
  .mosaic-tile:nth-child(5) { grid-area: 2 / 3 / 3 / 5; }
  .mosaic-tile:nth-child(6) { grid-area: 2 / 5 / 3 / 6; }
  .mosaic-tile:nth-child(7) { grid-area: 1 / 6 / 3 / 7; }
  .mosaic-tile:nth-child(8) { grid-area: 1 / 7 / 2 / 8; }
  .mosaic-tile:nth-child(9) { grid-area: 2 / 7 / 3 / 8; }
  .btn.mosaic-more { display: none; }
}

/* ========== SARII page ========== */
/* Vehicle check (SSC lookup): a heading, a picture beside the form, and the answer in a dialog. */
.lookup { display: flow-root; margin-top: 128px; }
.lookup > h1 { margin-top: -20px; text-align: center; font-size: 30px; line-height: 1.25; font-weight: 300; color: #1e1e1e; text-transform: uppercase; }
.lookup-lead { margin-top: 12px; }
.lookup-lead > * { text-align: center; font-size: 16px; }
.lookup .ssc { margin-top: 44px; }
.ssc { display: flex; flex-direction: column; gap: 44px; max-width: 1400px; margin-inline: auto; }
.ssc-img img { width: 100%; max-width: 600px; aspect-ratio: 518 / 335; margin-inline: auto; object-fit: cover; }
.ssc-card { display: flex; flex-direction: column; align-items: center; width: 100%; max-width: 520px; margin-inline: auto; padding: 40px 24px; box-shadow: 0 11.1px 22.21px 0 rgba(13, 16, 45, .1), 0 23.13px 46.27px -11.1px rgba(13, 16, 45, .1); }
.ssc-in { width: 100%; max-width: 400px; margin-inline: auto; }
.ssc-card h2 { text-align: center; font-size: 25px; color: #1d254b; text-transform: uppercase; }
.ssc-sub { margin-top: 8px; text-align: center; color: #162740; }
.ssc-form { min-height: 190px; margin-block: 28px; }
.ssc-note { text-align: center; font-style: italic; color: #172640; }
.ssc-note sup { position: relative; top: -.5em; vertical-align: baseline; font-size: 75%; line-height: 0; color: #c10e0f; }
.ssc-card .btn { display: flex; width: fit-content; margin: 22px auto 0; }
.ssc-head { align-items: stretch; justify-content: flex-start; height: auto; padding: 24px 4px 36px; text-align: center; color: #fff; }
.ssc-head > :not(.form-dialog-bg, .dialog-x) { position: relative; }
.ssc-icon { width: 120px; margin: 0 auto -16px; aspect-ratio: 140 / 143; object-fit: cover; }
.ssc-head h2 { font-family: var(--font); font-size: 24px; line-height: 1.25; font-weight: 600; }
.ssc-desc { margin-top: 4px; font-size: 18px; font-weight: 300; }
.ssc-desc.is-small { font-size: 14px; }
.ssc-green { color: #3fb44c; }
.ssc-orange { color: #eda109; }
.ssc-red { color: #c10e0f; }
.ssc-recaptcha { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 20px; padding-inline: 16px; font-size: 13px; font-weight: 300; color: rgba(255, 255, 255, .8); }
.ssc-recaptcha-box { display: flex; justify-content: center; }
.ssc-status { display: flex; align-items: center; gap: 8px; }
.ssc-status:empty { position: absolute; }
.ssc-status svg { width: 16px; height: 16px; flex-shrink: 0; }
.ssc-badges { display: flex; flex-direction: column; gap: 8px; margin: 16px 0 0; padding: 0 16px 16px; list-style: none; }
.ssc-badges:empty { display: none; }
.ssc-badge { display: flex; align-items: center; gap: 12px; padding: 8px; border: 2px solid #658a3a; border-radius: 10.4px; background: #e9f2db; color: #276e00; }
.ssc-badge svg { translate: 0 1px; }
.ssc-badge--orange { border-color: #cb7301; background: #fee9cd; color: #7a3500; }
.ssc-badge--red { border-color: #fde7e7; background: #fde7e7; color: #be0000; }
@media (min-width: 768px) {
  .lookup { margin-top: 144px; }
  .lookup > h1 { font-size: 44px; }
  .lookup-lead > * { font-size: 18px; }
  .ssc-card { padding: 32px 56px; }
  .ssc-card h2 { font-size: 30px; }
  .ssc-head { padding: 40px 4px 48px; }
  .ssc-icon { width: 140px; margin-bottom: -24px; }
  .ssc-head h2 { font-size: 33px; }
  .ssc-desc { font-size: 20px; }
  .ssc-desc.is-small { font-size: 16px; }
  .ssc-recaptcha { font-size: 14px; }
  .ssc-badges { gap: 16px; padding: 0 24px 24px; }
  .ssc-badge { font-size: 18px; }
}
@media (min-width: 1024px) {
  .lookup > h1 { margin-top: 4px; font-size: 35px; }
  .lookup-lead { margin-top: 24px; }
  .lookup .ssc { margin-top: 48px; }
  .ssc { flex-direction: row; align-items: stretch; gap: 64px; }
  .ssc-img { position: relative; flex: 1; }
  .ssc-img img { position: absolute; top: 0; left: 0; height: 100%; max-width: max-content; aspect-ratio: auto; object-fit: contain; }
  .ssc-card { flex: 1; }
}
@media (min-width: 1536px) {
  .lookup > h1 { margin-top: 8px; font-size: 56px; }
}

/* ========== Text pages ========== */
/* Text pages: a big heading and lead, then titled sections (legal information). */
.article-head { margin-top: 120px; }
.article-head h1 { margin-top: -20px; font-size: 30px; line-height: 1.25; font-weight: 300; color: #1e1e1e; text-transform: uppercase; }
.article-lead { margin-top: 12px; font-weight: 300; }
.article-lead > * { font-size: 16px; }
.article .heading { margin-bottom: 0; }
.article .heading h2 { max-width: min(80vw, 95%); }
.article-body { font-weight: 300; }
.article-body .gap { margin-top: 24px; }
.article-body p { text-align: justify; }
.article-body a { color: #193cb8; }
@media (hover: hover) { .article-body a:hover { text-decoration: underline; } }
@media (min-width: 768px) {
  .article-head { margin-top: 144px; }
  .article-head h1 { font-size: 44px; }
  .article-lead > * { font-size: 18px; }
  .article .heading { margin-bottom: 8px; }
}
@media (min-width: 1024px) { .article-head h1 { margin-top: 4px; font-size: 35px; } .article-lead { margin-top: 24px; } }
@media (min-width: 1536px) { .article-head h1 { margin-top: 8px; font-size: 56px; } }

/* 404 and "under development". */
.not-found { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 100vh; margin-bottom: -64px; padding: 40px; text-align: center; }
.not-found-img { width: 100%; max-width: 865px; aspect-ratio: 865 / 358; object-fit: cover; }
.not-found h1 { margin-top: 14px; font-size: 16px; }
.not-found .btn { margin-top: 30px; }
@media (min-width: 768px) { .not-found { margin-bottom: -144px; } .not-found h1 { margin-top: 28px; font-size: 26px; } .not-found .btn { margin-top: 60px; } }
.soon { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 40px; height: 100vh; padding-inline: 24px; }
.soon h1 { text-align: center; font-size: 26px; font-weight: 300; color: #1e1e1e; text-transform: uppercase; }
.soon-img { width: 100%; max-width: 674px; aspect-ratio: 674 / 432; object-fit: cover; }
@media (min-width: 768px) { .soon h1 { font-size: 35px; } }
@media (min-width: 1280px) { .soon h1 { font-size: 56px; } }
@media (min-width: 1568px) { .soon { padding-inline: 0; } }
