@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/barlow-condensed-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  --navy: #15366b;
  --deep: #0c1f40;
  --blue: #1f4e9a;
  --red: #c8102e;
  --red-dark: #a50d25;
  --rule: #d5dae2;
  --ink: #1c2433;
  --grey: #494949;
  --soft: #f5f6f8;
  --text: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font: 'Barlow Condensed', ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 21px; line-height: 1.5; letter-spacing: .02em; color: var(--ink); background: #fff; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-weight: 400; text-transform: uppercase; margin: 0; }
p { margin: 0; font-family: var(--text); font-size: 18px; line-height: 1.6; letter-spacing: 0; max-width: 66ch; color: var(--grey); }
section { padding: 96px 0; scroll-margin-top: 80px; }
section.soft { background: var(--soft); }
li[id] { scroll-margin-top: 96px; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
h2 { font-size: clamp(46px, 5.5vw, 76px); line-height: 1; color: var(--navy); }
.steps li, .mvv-item, .pairs li { position: relative; border-top: 0; }
.steps li::before, .mvv-item::before, .pairs li::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--navy); transform-origin: left; }
.pairs li::before { height: 2px; }
.lead { font-size: 21px; max-width: 760px; margin-top: 16px; }

/* focus */
a:focus-visible, button:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 5px var(--navy); }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 60; background: #fff; color: var(--navy); padding: 12px 16px; text-transform: uppercase; text-decoration: none; }
.skip-link:focus { left: 16px; }

/* buttons */
.btn { display: inline-flex; align-items: center; min-height: 44px; background: var(--red); color: #fff; text-decoration: none; text-transform: uppercase; font: inherit; font-size: 21px; letter-spacing: .02em; padding: 16px 32px; border: 0; border-radius: 16px; cursor: pointer; }
.btn::after { content: " →"; white-space: pre; display: inline-block; }
.btn:hover { background: var(--red-dark); }

/* header */
.topbar { background: #fff; border-bottom: 1px solid var(--rule); }
.topbar-in { max-width: 1440px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 14px 24px; }
.brand { display: flex; align-items: center; gap: 20px; min-width: 0; text-decoration: none; }
.brand img { display: block; height: 88px; width: auto; flex: none; }
.brand-text { display: flex; flex-direction: column; gap: 2px; font-family: Arial, Helvetica, sans-serif; letter-spacing: 0; }
.brand-text strong { font-style: italic; font-weight: 700; font-size: 28px; line-height: 1.15; color: #b1252d; white-space: nowrap; }
.brand-text span { font-size: 24px; line-height: 1.2; color: #1f1f1f; white-space: nowrap; }
.brand:focus-visible { outline: 2px solid var(--navy); outline-offset: 4px; }
.topcontacts { list-style: none; display: flex; align-items: center; gap: 28px; margin: 0; padding: 0; }
.topcontacts a { display: flex; min-height: 44px; align-items: center; gap: 12px; color: var(--navy); text-decoration: none; }
.topcontacts a:focus-visible { outline: 2px solid var(--navy); outline-offset: 4px; }
.topcontacts strong { display: block; font-weight: 400; font-size: 21px; line-height: 1.15; white-space: nowrap; }
.topcontacts em { display: block; font-style: normal; font-size: 17px; line-height: 1.3; color: var(--grey); white-space: nowrap; }
.ico { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--red); }
.ico svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
header { position: sticky; top: 0; z-index: 40; height: 64px; background: var(--navy); }
.bar { height: 100%; max-width: 1440px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 24px; }
.top-links { display: flex; gap: 28px; }
.tools { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.lang { display: flex; overflow: hidden; border: 1.5px solid rgba(255, 255, 255, .7); border-radius: 16px; }
.lang-opt { min-width: 50px; min-height: 44px; padding: 0 12px; background: transparent; border: 0; color: #fff; font: inherit; font-size: 19px; letter-spacing: .04em; text-transform: uppercase; cursor: pointer; }
.lang-opt:hover { background: rgba(255, 255, 255, .14); }
.lang-opt[aria-pressed="true"] { background: #fff; color: var(--navy); cursor: default; }
.lang-opt:focus-visible { outline: 2px solid currentColor; outline-offset: -5px; }
.top-links a { color: #fff; text-decoration: none; text-transform: uppercase; font-size: 19px; padding: 10px 0; background: linear-gradient(#fff, #fff) 0 100% / 0 2px no-repeat; }
.top-links a:hover, .top-links a:focus-visible { background-size: 100% 2px; }
.nav-toggle { display: none; align-items: center; gap: 12px; min-height: 44px; padding: 8px 0; background: none; border: 0; border-radius: 16px; color: #fff; font: inherit; font-size: 19px; text-transform: uppercase; cursor: pointer; }
.nav-toggle-icon { position: relative; width: 20px; height: 14px; }
.nav-toggle-icon span { position: absolute; left: 0; width: 100%; height: 2px; background: #fff; }
.nav-toggle-icon span:first-child { top: 0; }
.nav-toggle-icon span:last-child { bottom: 0; }

/* phone menu */
.menu-overlay { position: fixed; inset: 0; z-index: 30; background: rgba(12, 31, 64, .55); visibility: hidden; opacity: 0; transition: opacity .25s, visibility 0s .25s; }
.menu-overlay.is-open { visibility: visible; opacity: 1; transition: opacity .25s, visibility 0s; }
.menu-panel { position: absolute; top: 0; right: 0; height: 100%; width: min(560px, 85vw); padding: 150px 48px 40px; display: flex; overflow-y: auto; background: var(--navy); transform: translateX(100%); transition: transform .35s ease; }
.menu-overlay.is-open .menu-panel { transform: none; }
.menu-list { list-style: none; margin: auto 0; padding: 0; } /* auto margins centre the links when there is room, and start below the header when there is not */
.menu-list a { display: block; padding: 6px 0; color: #fff; text-decoration: none; text-transform: uppercase; font-size: clamp(36px, 8vw, 56px); line-height: 1.1; }
.menu-list a:hover { color: #d4d4d4; }
@media (max-height: 520px) {
  .menu-panel { padding: 150px 48px 24px; }
  .menu-list a { font-size: 28px; padding: 3px 0; }
}

/* hero: a photograph, full width */
.hero { position: relative; display: flex; align-items: flex-end; min-height: min(88vh, 780px); padding: 0; overflow: hidden; color: #fff; }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(12, 31, 64, .94) 8%, rgba(12, 31, 64, .62) 60%, rgba(12, 31, 64, .4)); }
.hero-text { position: relative; z-index: 1; width: 100%; padding-top: 40px; padding-bottom: 112px; }
.eyebrow { display: block; font-size: 17px; text-transform: uppercase; color: #d4d4d4; margin-bottom: 16px; }
.hero h1 { font-size: clamp(48px, 7.5vw, 112px); line-height: .95; max-width: 900px; margin-bottom: 24px; }
.hero p { color: #fff; font-size: 21px; max-width: 680px; margin-bottom: 32px; }

/* ruled lists instead of cards */
.rows, .people { list-style: none; padding: 0; margin: 48px 0 0; }
.rows li { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 24px 0; border-top: 1px solid var(--rule); }
.rows li:last-child, .people li:last-child { border-bottom: 1px solid var(--rule); }
.rows h3, .people h3 { font-size: 38px; line-height: 1.1; color: var(--navy); }
.rows + .btn { margin-top: 32px; }
.people li { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding: 22px 0; border-top: 1px solid var(--rule); }
.people span { font-size: 19px; text-transform: uppercase; color: var(--grey); text-align: right; }

.steps { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.steps li { padding-top: 19px; }
.steps .num { display: block; font-size: 17px; color: var(--grey); }
.steps h3 { font-size: 36px; line-height: 1.1; color: var(--navy); margin: 4px 0 8px; }

.pairs { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; }
.pairs li { padding: 34px 0 32px; }
.pairs h3 { font-size: 50px; line-height: 1; color: var(--navy); margin-bottom: 12px; }


/* mission, vision, values */
.mvv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; margin-top: 48px; }
.mvv-item { padding-top: 23px; }
.mvv-item h3 { font-size: 52px; line-height: 1; color: var(--navy); margin-bottom: 16px; }
.mvv-item p { font-size: 20px; line-height: 1.55; color: var(--ink); }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.checks li { position: relative; padding-left: 38px; font-size: 27px; text-transform: uppercase; color: var(--navy); }
.checks li::before { content: ""; position: absolute; left: 8px; top: 5px; width: 9px; height: 17px; border: solid var(--red); border-width: 0 3px 3px 0; transform: rotate(45deg); }

/* the Diretor-Geral, then the rest of the team as a list */
.director { display: grid; grid-template-columns: minmax(260px, 400px) 1fr; gap: 56px; align-items: end; margin-top: 48px; }
.director img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.director h3 { font-size: clamp(46px, 5.5vw, 80px); line-height: 1; color: var(--navy); }
.director span { display: block; margin-top: 12px; font-size: 28px; text-transform: uppercase; color: var(--grey); }
.director + .people { margin-top: 56px; }

/* driver training photos */
.split .rows li { grid-template-columns: 1fr; gap: 6px; }
.split .rows + .btn { margin-top: 32px; }
/* three photos, uncropped: each grows in proportion to its own aspect ratio (1.2, 1.2, 1.915),
   so they share one height and their widths follow the originals */
.train-photos { display: flex; gap: 16px; margin-top: 64px; }
.train-photos img { min-width: 0; height: auto; flex: 1.2 1 0; }
.train-photos img:last-child { flex-grow: 1.915; }
.fleet-note { margin-top: 16px; font-size: 17px; }

/* the logo, large, in the hero and the footer */
.foot-logo { display: inline-block; background: #fff; padding: 12px 22px; }
.foot-logo img { display: block; height: 100px; width: auto; }

/* photographs in the sections: square corners, no frames */
.tiles { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tiles img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.split .pairs { grid-template-columns: 1fr; }
.split-photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; position: sticky; top: 96px; }
.band { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; margin-top: 56px; }

/* fleet photos: a plain grid, square corners */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery img:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }

/* contact */
.contact { background: var(--deep); color: #fff; }
.contact h2 { color: #fff; }
.contact .lead { color: #d4d4d4; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; margin-top: 48px; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 32px; }
.contact-list strong { display: block; font-size: 17px; font-weight: 400; text-transform: uppercase; color: #d4d4d4; margin-bottom: 8px; }
.contact-list span, .contact-list a { overflow-wrap: anywhere; font-size: clamp(21px, 6.6vw, 34px); text-transform: uppercase; color: #fff; text-decoration: none; line-height: 1.3; }
.contact-list a:hover { color: #d4d4d4; }
.form { display: flex; flex-direction: column; gap: 18px; background: #fff; padding: 32px; }
.form h3 { font-size: 34px; color: var(--navy); padding-bottom: 10px; border-bottom: 2px solid var(--navy); }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 17px; text-transform: uppercase; color: var(--navy); }
.req { color: var(--red); }
.pair-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field input, .field select, .field textarea { font: inherit; font-size: 21px; width: 100%; padding: 8px 2px; border: 0; border-bottom: 1.5px solid #8a94a3; border-radius: 0; background: transparent; color: var(--ink); }
.field textarea { resize: vertical; min-height: 120px; padding: 10px; border: 1.5px solid #8a94a3; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--navy); outline-offset: 2px; border-color: var(--navy); }
.form-note { font-size: 15px; color: var(--grey); }
.form .btn { width: 100%; justify-content: center; }
.form-actions { display: flex; gap: 12px; }
.form .form-actions .btn { flex: 1 1 0; width: auto; padding-left: 16px; padding-right: 16px; }
.form .btn-wa { background: transparent; color: var(--navy); box-shadow: inset 0 0 0 2px var(--navy); }
.form .btn-wa:hover { background: rgba(21, 54, 107, .08); }

footer { display: flex; flex-direction: column; align-items: center; gap: 18px; background: var(--deep); color: #d4d4d4; text-align: center; padding: 24px; font-size: 17px; text-transform: uppercase; border-top: 1px solid rgba(255, 255, 255, .12); }

@media (min-width: 721px) { .nav-toggle { display: none; } }
@media (max-width: 1380px) { .tc-place { display: none; } }
@media (max-width: 1160px) { .topcontacts li:nth-child(2) { display: none; } }
@media (max-width: 880px) { .brand img { height: 78px; } }
@media (min-width: 721px) and (max-width: 880px) {
  .topcontacts li:not(:first-child) { display: none; }
  .topcontacts a > span:last-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
@media (max-width: 720px) { .topcontacts { display: none; } }
@media (max-width: 1024px) {
  .split { grid-template-columns: 1fr; gap: 40px; }
  .mvv { grid-template-columns: 1fr; gap: 36px; }
  .director { grid-template-columns: minmax(220px, 340px) 1fr; gap: 32px; }
  .split-photo { position: static; aspect-ratio: 16 / 9; }
  .steps { grid-template-columns: 1fr 1fr; }
  .pairs { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 720px) {
  :root { --edge-h: 56px; }
  h2 { font-size: clamp(34px, 10vw, 46px); }
  section { padding: 64px 0; }
  .wrap { padding: 0 16px; }
  .topbar-in { padding: 10px 16px; }
  .brand { gap: 12px; }
  .brand img { height: 52px; }
  .brand-text strong { font-size: 17px; }
  .brand-text span { font-size: 15px; }
  .tools { width: 100%; justify-content: space-between; }
  .foot-logo img { height: 80px; }
  .bar { padding: 0 16px; }
  body { font-size: 20px; }
  .top-links { display: none; }
  .nav-toggle { display: flex; }
  .hero { min-height: min(78vh, 640px); }
  .hero-text { padding-bottom: 72px; }
  .rows li { grid-template-columns: 1fr; gap: 8px; }
  .people li { flex-direction: column; gap: 4px; }
  .people span { text-align: left; }
  .steps { grid-template-columns: 1fr 1fr; gap: 24px; }
  .gallery { grid-template-columns: 1fr 1fr; gap: 12px; }
  .tiles { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .director { grid-template-columns: 1fr; gap: 24px; }
  .director img { max-width: 360px; }
  .train-photos { flex-direction: column; }
  .train-photos img { flex: none; width: 100%; }
  .band { aspect-ratio: 4 / 3; }
  .pair-fields { grid-template-columns: 1fr; }
  .form { padding: 24px 18px; }
  .form-actions { flex-direction: column; }
}
@media (max-width: 560px) {
  .steps, .tiles { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 360px) {
  .brand { gap: 8px; }
  .brand img { height: 42px; }
  .brand-text strong { font-size: 14px; }
  .brand-text span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .menu-overlay, .menu-panel { transition: none; }
}
footer p { color: #d4d4d4; font-size: 15px; }
/* closing line, from the mockup's footer bar */
.closing { padding: 56px 0; background: var(--blue); }
.closing-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.closing h2 { color: #fff; font-size: clamp(34px, 4.4vw, 60px); }
.closing-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.closing .btn { background: #fff; color: var(--navy); }
.closing .btn-wa { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px #fff; }
.closing .btn-wa:hover { background: rgba(255, 255, 255, .16); }
.closing .btn:hover { background: #e6e9ef; }
.closing .btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; box-shadow: none; }

/* the truck comes from a flyer (468 px wide), so it is not stretched beyond its own size */
.flyer-truck { max-width: 468px; aspect-ratio: 468 / 503; justify-self: end; position: static; }

/* The swoosh from the logo as the edge between sections: the next section rises to the right in
   its curve, with the logo's three bands along it. */
:root {
  --edge-h: 96px;
  --bands-light: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 1440 96%22 preserveAspectRatio=%22none%22%3E%3Cpath d=%22M0 82 C 480 84 1000 62 1440 26%22 fill=%22none%22 stroke=%22%2315366b%22 stroke-width=%224%22 vector-effect=%22non-scaling-stroke%22/%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 1440 96%22 preserveAspectRatio=%22none%22%3E%3Cpath d=%22M0 74 C 480 76 1000 54 1440 18%22 fill=%22none%22 stroke=%22%23c8102e%22 stroke-width=%223%22 vector-effect=%22non-scaling-stroke%22/%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 1440 96%22 preserveAspectRatio=%22none%22%3E%3Cpath d=%22M0 66 C 480 68 1000 46 1440 10%22 fill=%22none%22 stroke=%22%23adadad%22 stroke-width=%223%22 vector-effect=%22non-scaling-stroke%22/%3E%3C/svg%3E");
  --bands-dark: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 1440 96%22 preserveAspectRatio=%22none%22%3E%3Cpath d=%22M0 82 C 480 84 1000 62 1440 26%22 fill=%22none%22 stroke=%22%23ffffff%22 stroke-width=%224%22 vector-effect=%22non-scaling-stroke%22/%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 1440 96%22 preserveAspectRatio=%22none%22%3E%3Cpath d=%22M0 74 C 480 76 1000 54 1440 18%22 fill=%22none%22 stroke=%22%23c8102e%22 stroke-width=%223%22 vector-effect=%22non-scaling-stroke%22/%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 1440 96%22 preserveAspectRatio=%22none%22%3E%3Cpath d=%22M0 66 C 480 68 1000 46 1440 10%22 fill=%22none%22 stroke=%22%23adadad%22 stroke-width=%223%22 vector-effect=%22non-scaling-stroke%22/%3E%3C/svg%3E");
}
#servicos { background: #fff; }
#servicos, .soft, .closing, .contact { position: relative; }
#servicos::before, .soft::before, .closing::before, .contact::before, #servicos::after, .soft::after, .closing::after, .contact::after { content: ""; position: absolute; left: 0; right: 0; top: calc(var(--edge-h) * -1); height: var(--edge-h); pointer-events: none; }
#servicos::before, .soft::before, .closing::before, .contact::before { background: inherit; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 1440 96%22 preserveAspectRatio=%22none%22%3E%3Cpath d=%22M0 90 C 480 92 1000 70 1440 34 L1440 96 L0 96 Z%22/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 1440 96%22 preserveAspectRatio=%22none%22%3E%3Cpath d=%22M0 90 C 480 92 1000 70 1440 34 L1440 96 L0 96 Z%22/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat; }
#servicos::after, .soft::after, .closing::after, .contact::after { background-image: var(--bands-light); background-size: 100% 100%; background-repeat: no-repeat; }
#servicos::after, .contact::after { background-image: var(--bands-dark); }

/* scroll-linked, never triggered: the finished state above is the default, and browsers without
   scroll timelines, or visitors who asked for less motion, simply get it. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .hero { view-timeline: --hero block; }
    .hero-photo { animation: push linear both; animation-timeline: --hero; animation-range: exit 0% exit 100%; }
    .hero-text { animation: hold linear both; animation-timeline: --hero; animation-range: exit 0% exit 100%; }
    #servicos, .soft, .closing, .contact { view-timeline: --edge block; --fan: 320px; }
    .closing { --fan: 100%; }
    #servicos::after, .soft::after, .closing::after, .contact::after { animation: fan linear both; animation-timeline: --edge; animation-range: entry 0% entry var(--fan); }
  }
}
@keyframes push { to { transform: scale(1.14); } }
@keyframes hold { to { transform: translateY(90px); } }
@keyframes fan { from { background-position: 0 8px, 0 16px, 0 24px; } }
@media (max-width: 720px) { :root { --edge-h: 56px; } }

/* Como trabalhamos: each step carries its own photograph. By default (phones, tablets, no scroll
   timelines, reduced motion) that is a plain row or column of four. */
.steps li { display: flex; flex-direction: column; gap: 16px; }
.steps li > img { order: -1; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.rail { display: none; }

/* On a large screen the four steps become one journey: the steps stack as you scroll, each sliding
   over the last, while a route line along the top moves on one stop. */
@media (min-width: 1025px) and (min-height: 640px) and (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .steps { display: block; margin-top: 24px; gap: 0; }
    .steps li {
      position: sticky; top: 64px; height: calc(100vh - 64px); max-height: 760px; padding: 24px 0 36px;
      display: grid; grid-template-columns: 5fr 6fr; grid-template-rows: auto 1fr; column-gap: 64px; align-items: center;
      background: var(--soft); view-timeline: --step block; overflow: clip;
    }
    .steps li::before { display: none; }
    .rail { display: flex; grid-column: 1 / -1; grid-row: 1; align-self: start; padding-top: 8px; }
    .step-text { grid-column: 1; grid-row: 2; }
    .steps li > img { grid-column: 2; grid-row: 2; order: 0; height: 100%; max-height: 520px; aspect-ratio: auto; }
    .steps .num { font-size: 112px; line-height: 1; color: var(--red); }
    .steps h3 { font-size: clamp(56px, 6vw, 88px); margin: 8px 0 16px; }
    .steps p { font-size: 22px; }

    .rail b { position: relative; flex: 1; display: flex; align-items: center; gap: 12px; font-weight: 400; font-size: 19px; text-transform: uppercase; color: #5b6472; }
    .rail b:last-child { flex: none; }
    .rail i { flex: none; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 2px #adadad; }
    .rail b::after { content: ""; flex: 1; height: 2px; margin: 0 16px 0 4px; background: #c9ceda; transform-origin: left; }
    .rail b:last-child::after { display: none; }
    .steps li:nth-child(1) .rail b:nth-child(-n+1) { color: var(--navy); }
    .steps li:nth-child(1) .rail b:nth-child(-n+1) i { background: var(--red); box-shadow: none; }
    .steps li:nth-child(2) .rail b:nth-child(-n+2) { color: var(--navy); }
    .steps li:nth-child(2) .rail b:nth-child(-n+2) i { background: var(--red); box-shadow: none; }
    .steps li:nth-child(2) .rail b:nth-child(-n+1)::after { background: var(--navy); }
    .steps li:nth-child(2) .rail b:nth-child(1)::after { animation: route linear both; animation-timeline: --step; animation-range: entry 30% entry 100%; }
    .steps li:nth-child(3) .rail b:nth-child(-n+3) { color: var(--navy); }
    .steps li:nth-child(3) .rail b:nth-child(-n+3) i { background: var(--red); box-shadow: none; }
    .steps li:nth-child(3) .rail b:nth-child(-n+2)::after { background: var(--navy); }
    .steps li:nth-child(3) .rail b:nth-child(2)::after { animation: route linear both; animation-timeline: --step; animation-range: entry 30% entry 100%; }
    .steps li:nth-child(4) .rail b:nth-child(-n+4) { color: var(--navy); }
    .steps li:nth-child(4) .rail b:nth-child(-n+4) i { background: var(--red); box-shadow: none; }
    .steps li:nth-child(4) .rail b:nth-child(-n+3)::after { background: var(--navy); }
    .steps li:nth-child(4) .rail b:nth-child(3)::after { animation: route linear both; animation-timeline: --step; animation-range: entry 30% entry 100%; }

    .steps li > img { animation: curtain linear both; animation-timeline: --step; animation-range: entry 10% entry 100%; }
  }
}
@keyframes curtain { from { clip-path: inset(14% 0 0 0); transform: scale(1.08); } }
@keyframes route { from { transform: scaleX(0); } }
