/* Ruta: three routes, one destination. All movement ends after entry/selection. */
:root {
  --welcome-paper: #f4f4ef;
  --welcome-ink: #192721;
}

.site-header {
  background: rgba(244, 244, 239, 0.96);
  border-color: #233a2618;
  backdrop-filter: none;
}

.site-header > .wrap,
.welcome-wrap {
  width: min(1440px, calc(100% - 96px));
  margin-inline: auto;
}

.nav-links { gap: 30px; }
.nav-links a { font-size: 0.83rem; font-weight: 500; color: var(--welcome-ink); }
.nav-cta { min-height: 40px; padding: 8px 18px; border: 1px solid #233a2640; border-radius: 999px; font-size: 0.8rem; font-weight: 500; color: var(--welcome-ink); }
.nav-cta span { margin-left: 16px; font-size: 1.2rem; }
.nav-cta:hover { background: var(--welcome-ink); color: white; }

.welcome {
  --route-color: #bc541f;
  --route-bright: #ef853b;
  position: relative;
  overflow: hidden;
  background: var(--welcome-paper);
  color: var(--welcome-ink);
  border-bottom: 1px solid #233a2618;
}

.welcome[data-route="sea"] { --route-color: #126698; --route-bright: #1685ba; }
.welcome[data-route="air"] { --route-color: #c0353b; --route-bright: #d94348; }
.welcome-wrap { position: relative; }
.welcome-kicker { display: flex; justify-content: space-between; align-items: center; padding: 30px 0 0; }
.welcome-kicker p { display: flex; align-items: center; gap: 11px; font-size: 0.66rem; letter-spacing: 0.13em; font-weight: 600; text-transform: uppercase; }
.welcome-motto { color: #687169; font-size: 0.73rem; }
.brand-strokes { display: flex; gap: 3px; transform: skewX(-22deg); }
.brand-strokes i { width: 4px; height: 15px; background: #d94348; }
.brand-strokes i:nth-child(2) { background: #ef853b; }
.brand-strokes i:nth-child(3) { background: #1685ba; }

.welcome-layout { display: grid; grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.16fr); align-items: center; min-height: clamp(410px, calc(100svh - 290px), 640px); }
.welcome-copy { position: relative; z-index: 2; padding: 28px 0 32px; }
.welcome h1 { font-size: clamp(3.8rem, 6.6vw, 6.7rem); font-weight: 600; letter-spacing: -0.07em; line-height: 0.99; text-wrap: nowrap; }
.welcome h1 span { color: #788279; }
.welcome-lead { margin-top: 22px; max-width: 340px; font-size: 0.92rem; line-height: 1.65; color: #566159; }
.welcome-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 24px; }
.delivery-cta { display: inline-flex; align-items: center; gap: 30px; background: var(--welcome-ink); color: #fff; padding: 13px 15px 13px 22px; border-radius: 999px; font-size: 0.8rem; font-weight: 500; transition: background 180ms ease; cursor: pointer; }
.delivery-cta > span { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid #ffffff40; border-radius: 50%; font-size: 1.1rem; transition: transform 180ms ease; }
.delivery-cta:hover { background: #30493a; }
.delivery-cta:hover > span { transform: rotate(45deg); }
.welcome-process { font-size: 0.76rem; font-weight: 500; padding: 12px 0; cursor: pointer; }
.welcome-process span { display: inline-block; padding-left: 9px; transition: transform 180ms ease; }
.welcome-process:hover span { transform: translateX(4px); }
.welcome-assurance { display: flex; align-items: center; gap: 8px; margin-top: 16px; color: #6c756c; font-size: 0.67rem; }

.route-stage { position: relative; align-self: stretch; min-width: 0; min-height: 410px; margin-left: 4%; isolation: isolate; }
.route-stage-grid { position: absolute; inset: 18% -15% 8% 4%; background-image: radial-gradient(#74806e40 0.65px, transparent 0.65px); background-size: 19px 19px; mask-image: radial-gradient(ellipse, black 25%, transparent 70%); }
.route-stage-index { position: absolute; top: 36px; right: 4px; display: flex; gap: 6px; font: 0.65rem "SFMono-Regular", Consolas, monospace; letter-spacing: 0.06em; }
.route-stage-index span:first-child { color: var(--route-color); }
.route-stage-index span:last-child { color: #8a9187; }
.route-word { position: absolute; top: 12px; left: 10%; font-family: var(--font-heading); font-size: clamp(5rem, 10vw, 9.5rem); font-weight: 600; letter-spacing: -0.065em; line-height: 1; color: #dce0d5; white-space: nowrap; user-select: none; }
.route-word-dot { color: var(--route-bright); transition: color 350ms ease; }
.route-ribbons { position: absolute; width: 120%; height: 100%; max-width: none; top: 0; left: -4%; overflow: visible; }
.route-orbit { stroke-width: 2; opacity: 0.4; transition: stroke-width 500ms ease, opacity 500ms ease; }
.route-orbit--air { stroke: #d94348; }
.route-orbit--land { stroke: #ef853b; }
.route-orbit--sea { stroke: #1685ba; }
.welcome[data-route="air"] .route-orbit--air,
.welcome[data-route="land"] .route-orbit--land,
.welcome[data-route="sea"] .route-orbit--sea { stroke-width: 12; opacity: 1; }
.route-guideline { stroke: #324b3020; stroke-width: 1; stroke-dasharray: 3 7; }
.route-destination-ring { stroke: var(--route-color); stroke-width: 1; opacity: 0.3; }
.route-destination { fill: var(--route-color); }
.route-vehicles { position: absolute; inset: 0; pointer-events: none; }
.route-vehicle { position: absolute; width: 108%; max-width: none; left: -4%; bottom: 108px; height: auto; opacity: 0; transform: translate3d(45px, 12px, 0) rotate(-2deg) scale(0.94); filter: drop-shadow(0 22px 16px #18271b24); transition: opacity 350ms ease, transform 700ms cubic-bezier(0.22, 1, 0.36, 1); }
.route-vehicle.is-active { opacity: 1; transform: translate3d(0, 0, 0) rotate(-2deg) scale(1); }
.route-vehicle--land { width: 104%; left: -2%; bottom: 96px; }
.route-vehicle--sea { bottom: 111px; }
.route-vehicle--air { width: 115%; left: -8%; bottom: 102px; transform: translate3d(80px, 30px, 0) rotate(-7deg) scale(0.94); }
.route-vehicle--air.is-active { transform: translate3d(0, 0, 0) rotate(-7deg) scale(1); }
.route-origin { position: absolute; left: 2%; bottom: 76px; display: flex; align-items: center; gap: 8px; font-size: 0.61rem; color: #7a8277; }
.route-origin > span { display: grid; place-items: center; width: 20px; height: 20px; border: 1px solid #7a827766; border-radius: 50%; font-size: 0.59rem; }
.route-arrival { position: absolute; right: 0; bottom: 88px; display: flex; align-items: center; gap: 11px; padding: 12px 16px 12px 12px; background: #fffffff5; box-shadow: 0 8px 30px #22351e0a; border: 1px solid #203f1610; border-radius: 8px; font-size: 0.73rem; line-height: 1.35; }
.route-arrival > span { display: grid; place-items: center; width: 29px; height: 29px; background: var(--welcome-ink); color: #fff; border-radius: 50%; font-size: 0.7rem; }
.route-arrival small { display: block; color: #7a8277; font-size: 0.58rem; margin-top: 3px; }
.route-arrival > svg { margin-left: 6px; color: var(--route-color); }
.route-caption { position: absolute; bottom: 19px; left: 14%; right: 0; padding: 3px 0 3px 12px; background: var(--welcome-paper); border-left: 2px solid var(--route-color); }
.route-caption > span { display: block; color: var(--route-color); font-size: 0.62rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.09em; }
.route-caption p { margin-top: 3px; color: #697366; font-size: 0.7rem; max-width: 380px; }

.route-selector { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid #233a2626; border-bottom: 1px solid #233a2626; }
.route-choice { --choice-bg: transparent; position: relative; border: 0; border-radius: 0; background: var(--choice-bg); padding: 14px 24px 16px; color: var(--choice-color); text-align: left; cursor: pointer; transition: background 220ms ease; }
.route-choice + .route-choice { border-left: 1px solid #233a2626; }
.route-choice--sea { --choice-color: #126698; --choice-tint: #e6eef0; }
.route-choice--land { --choice-color: #a94b18; --choice-tint: #f0e9dd; }
.route-choice--air { --choice-color: #bc343c; --choice-tint: #f0e5df; }
.route-choice[aria-pressed="true"],
.route-choice:hover { --choice-bg: var(--choice-tint); }
.route-choice::before { content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 3px; background: var(--choice-color); transform: scaleX(0); transform-origin: left; transition: transform 350ms ease; }
.route-choice[aria-pressed="true"]::before { transform: scaleX(1); }
.route-choice-number { display: block; font: 0.59rem "SFMono-Regular", Consolas, monospace; letter-spacing: 0.12em; }
.route-choice-title { display: flex; align-items: center; gap: 13px; margin: 7px 0 6px; font-family: var(--font-heading); font-size: clamp(1.4rem, 2.3vw, 2rem); font-weight: 500; letter-spacing: -0.035em; }
.route-choice-title > svg { width: 30px; height: 30px; flex-shrink: 0; }
.route-choice-arrow { margin-left: auto; font-size: 1.25rem; opacity: 0.5; transition: transform 220ms ease, opacity 220ms ease; }
.route-choice[aria-pressed="true"] .route-choice-arrow { opacity: 1; transform: rotate(45deg); }
.route-choice-note { display: block; font-size: 0.65rem; line-height: 1.45; color: #687166; }
.route-choice:focus-visible { outline: 2px solid var(--choice-color); outline-offset: -5px; }
.welcome-bottom { display: flex; justify-content: space-between; align-items: center; padding: 13px 0 15px; font-size: 0.64rem; color: #70786b; }
.welcome-bottom p { letter-spacing: 0.01em; }
.welcome-bottom p span { color: var(--brand-orange); }
.welcome-bottom a { display: flex; align-items: center; gap: 25px; cursor: pointer; }
.welcome-bottom a > span { font-size: 1.15rem; color: var(--welcome-ink); }

@media (min-width: 1700px) {
  .welcome-layout { min-height: 640px; }
}

@media (max-width: 1100px) {
  .site-header > .wrap, .welcome-wrap { width: calc(100% - 56px); }
  .welcome h1 { font-size: clamp(3.6rem, 6.5vw, 5rem); }
  .welcome-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); }
  .welcome-actions { gap: 9px 18px; }
  .welcome-copy { padding-block: 28px; }
  .route-stage { margin-left: 0; }
  .route-choice { padding-inline: 18px; }
  .route-choice-note { max-width: 24ch; }
}

@media (max-width: 900px) {
  .site-header > .wrap, .welcome-wrap { width: calc(100% - 40px); }
  .welcome-kicker { padding-top: 25px; }
  .welcome-kicker p { font-size: 0.59rem; letter-spacing: 0.1em; }
  .welcome-motto { display: none; }
  .welcome-layout { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .welcome-copy { padding: 29px 0 0; }
  .welcome h1 { font-size: clamp(3.1rem, 10.8vw, 5.5rem); }
  .welcome-lead { font-size: 0.83rem; margin-top: 21px; max-width: 350px; line-height: 1.7; }
  .welcome-actions { margin-top: 22px; gap: 15px; }
  .delivery-cta { font-size: 0.73rem; padding: 10px 12px 10px 17px; gap: 20px; }
  .welcome-process { font-size: 0.67rem; }
  .welcome-assurance { margin-top: 16px; font-size: 0.63rem; }
  .route-stage { height: clamp(315px, 75vw, 450px); min-height: 0; margin: 2px 0 0; }
  .route-word { font-size: clamp(5.8rem, 21vw, 9rem); top: 29px; left: 14%; }
  .route-stage-index { top: 26px; font-size: 0.58rem; }
  .route-ribbons { left: -2%; width: 113%; }
  .route-vehicle--land { width: 110%; left: -5%; bottom: 88px; }
  .route-vehicle--sea { width: 107%; left: -3%; bottom: 94px; }
  .route-vehicle--air { width: 103%; left: -2%; bottom: 100px; }
  .route-arrival { right: 0; bottom: 59px; padding: 8px 10px; gap: 8px; font-size: 0.64rem; }
  .route-arrival > span { width: 24px; height: 24px; }
  .route-arrival small { font-size: 0.53rem; }
  .route-origin { bottom: 83px; left: 3%; font-size: 0.57rem; }
  .route-caption { left: 3%; bottom: 12px; }
  .route-caption > span { font-size: 0.56rem; }
  .route-caption p { font-size: 0.59rem; max-width: 300px; }
  .route-choice { padding: 13px 10px 14px; }
  .route-choice-title { font-size: clamp(0.85rem, 3.9vw, 1.6rem); gap: 6px; margin: 9px 0 0; white-space: nowrap; }
  .route-choice-title > svg { width: 20px; height: 20px; }
  .route-choice-arrow, .route-choice-note { display: none; }
  .route-choice-number { font-size: 0.5rem; }
  .welcome-bottom { font-size: 0.56rem; padding-block: 15px; }
  .welcome-bottom a { gap: 10px; }
}

@media (max-width: 440px) {
  .welcome-kicker { padding-top: 21px; }
  .welcome-copy { padding-top: 25px; }
  .welcome-actions { gap: 8px; }
  .route-stage { height: 300px; }
}

@media (prefers-reduced-motion: no-preference) {
  .welcome-copy { animation: welcome-enter 850ms 100ms both cubic-bezier(0.22, 1, 0.36, 1); }
  .route-orbit { animation: route-draw 1400ms 100ms both cubic-bezier(0.22, 1, 0.36, 1); }
  .route-vehicles { animation: transport-enter 1100ms 200ms both cubic-bezier(0.22, 1, 0.36, 1); }
  .route-arrival { animation: welcome-enter 700ms 700ms both ease; }
  .route-selector { animation: welcome-enter 700ms 250ms both ease; }
}

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

@keyframes welcome-enter { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes transport-enter { from { opacity: 0; transform: translateX(55px); } to { opacity: 1; transform: translateX(0); } }
@keyframes route-draw { from { stroke-dasharray: 1; stroke-dashoffset: 1; } to { stroke-dasharray: 1; stroke-dashoffset: 0; } }
