/* Homepage */

.hero { position: relative; color: #fff; background: radial-gradient(1200px 700px at 78% -10%, #2f6cc0 0%, transparent 60%), linear-gradient(170deg, var(--blue-deep), var(--navy) 60%, var(--ink)); overflow: hidden; isolation: isolate; }
.hero__in { padding-block: clamp(46px, 7vw, 92px) clamp(30px, 4vw, 48px); text-align: center; display: grid; justify-items: center; }
.hero__eyebrow { color: var(--sun); margin-bottom: 20px; }
.hero h1 { font-size: clamp(42px, 8vw, 118px); line-height: .98; }
.hero h1 em { font-style: normal; color: var(--sun); }
.hero__lede { max-width: 58ch; margin-top: 22px; font-size: clamp(17px, 1.5vw, 20px); color: rgba(255, 255, 255, .84); }
.hero__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 28px; }
.hero__sweep { position: absolute; left: 0; right: 0; bottom: -1px; z-index: 2; }

/* Moving reel of live inventory */
.reel { overflow: hidden; padding: 18px 0 clamp(70px, 9vw, 130px); -webkit-mask: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.reel__track { display: flex; gap: 16px; width: max-content; animation: reel 90s linear infinite; }
.reel:hover .reel__track { animation-play-state: paused; }
@keyframes reel { to { transform: translateX(-50%); } }
.reel figure { flex: none; width: clamp(220px, 23vw, 340px); margin: 0; aspect-ratio: 4 / 3; padding: 7px 7px 34px; position: relative; border-radius: 9px; background: var(--paper); box-shadow: var(--shadow-lg); }
.reel figure:nth-child(odd) { transform: rotate(-1.6deg); }
.reel figure:nth-child(even) { transform: rotate(1.4deg) translateY(10px); }
.reel img { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; background: var(--cream-2); }
.reel figcaption { position: absolute; left: 11px; right: 11px; bottom: 8px; color: var(--navy); font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.sechead { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 24px; }
.sechead .eyebrow { color: var(--blue); margin-bottom: 10px; }
.sechead h2 { font-size: clamp(32px, 4.4vw, 60px); color: var(--navy); }

/* Latest arrivals */
.arrivals { padding-block: clamp(30px, 4vw, 54px) clamp(50px, 6vw, 90px); }
.arrivals__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 14px; aspect-ratio: 2.1 / 1; }
.arr { position: relative; display: block; overflow: hidden; border-radius: var(--radius); background: var(--cream-2); color: #fff; text-decoration: none; box-shadow: var(--shadow-sm); }
.arr:first-child { grid-row: span 2; }
.arr img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease), opacity .5s; }
.arr:hover img { transform: scale(1.05); }
.arr::after { content: ''; position: absolute; inset: 40% 0 0; background: linear-gradient(transparent, rgba(5, 31, 71, .86)); }
.arr span { position: absolute; left: 16px; right: 16px; bottom: 13px; z-index: 1; display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.arr i { font: 800 clamp(16px, 1.5vw, 22px)/1.1 var(--font-display); font-style: normal; }
.arr b { flex: none; color: var(--sun); font: 800 clamp(16px, 1.5vw, 22px)/1.1 var(--font-display); }

/* Who we are: full-width video band */
.more { position: relative; display: flex; align-items: center; min-height: 560px; overflow: hidden; background: var(--navy) center / cover; color: #fff; isolation: isolate; }
.more__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.more::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(5, 31, 71, .92) 8%, rgba(5, 31, 71, .55) 52%, rgba(5, 31, 71, .12)); }
.more__in { display: grid; justify-items: start; gap: 14px; padding-block: 56px; }
.more .eyebrow { color: var(--sun); }
.more h2 { max-width: 14ch; font-size: clamp(36px, 5vw, 72px); }
.more__in > p:not(.eyebrow) { max-width: 52ch; font-size: clamp(17px, 1.4vw, 20px); color: rgba(255, 255, 255, .88); }
.more__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }

/* Services bento */
.services { padding-block: clamp(46px, 6vw, 84px); background: var(--paper); }
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.tile { display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; min-height: 240px; padding: 24px; border-radius: 22px; text-decoration: none; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.tile:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.tile h3 { font-size: clamp(24px, 2.4vw, 34px); }
.tile--a { grid-column: span 3; background: var(--blue); color: #fff; }
.tile--b { grid-column: span 3; background: var(--sun); color: var(--ink); }
.tile--c { grid-column: span 2; background: var(--coral); color: var(--ink); }
.tile--d { grid-column: span 2; background: var(--plum); color: #fff; }
.tile--e { grid-column: span 3; background: var(--leaf); color: var(--ink); }
.tile--g { grid-column: span 2; background: var(--tangerine); color: var(--ink); }
.tile--f { grid-column: span 3; background: var(--navy); color: #fff; }

/* Tile photos fade into the tile colour, so the text always sits on solid colour */
.tile { position: relative; overflow: hidden; isolation: isolate; min-height: 460px; }
.tile--a { --tile: var(--blue); }
.tile--b { --tile: var(--sun); }
.tile--c { --tile: var(--coral); }
.tile--d { --tile: var(--plum); }
.tile--e { --tile: var(--leaf); }
.tile--f { --tile: var(--navy); }
.tile--g { --tile: var(--tangerine); }
.tile__img { position: absolute; inset: 0 0 auto; z-index: -2; width: 100%; height: 60%; object-fit: cover; transition: transform .9s var(--ease), opacity .5s; }
.tile:hover .tile__img { transform: scale(1.05); }
.tile::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, var(--tile) 50%, transparent 68%); }
.tile__cta { display: inline-flex; align-items: center; gap: 7px; margin-top: 2px; font-weight: 700; }
.tile__cta svg { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.tile:hover .tile__cta svg { transform: translateX(4px); }

/* Journey: illustrated scene pinned to the scroll on desktop, a plain list on phones */
.journey { --journey-mode: scene; position: relative; height: 620vh; background: var(--ink); color: #fff; }
.journey__pin { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; overflow: hidden; padding-top: calc(var(--header-h) + 34px); }
.journey__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; padding-bottom: 12px; }
.journey__head .eyebrow { color: var(--sun); margin-bottom: 10px; }
.journey__head h2 { max-width: 12ch; font-size: clamp(34px, 4.6vw, 66px); }
.hud { --c: var(--blue); --t: #fff; flex: 0 1 430px; min-height: 142px; padding: 16px 20px; border-radius: 20px; background: var(--c); color: var(--t); transition: background .35s, color .35s; }
.hud.pop { animation: hudpop .4s var(--ease); }
@keyframes hudpop { from { transform: translateY(8px) scale(.98); } }
.hud__n { font: 500 13px var(--font-mono); letter-spacing: .06em; text-transform: uppercase; opacity: .85; }
.hud h3 { margin: 4px 0; font-size: clamp(26px, 2.6vw, 36px); }
.scene { position: relative; flex: 1; min-height: 0; overflow: hidden; -webkit-mask: linear-gradient(transparent, #000 9%); mask: linear-gradient(transparent, #000 9%); }
.world { position: absolute; left: 0; top: 0; height: 100%; width: auto; max-width: none; will-change: transform; }
.pin__head { transition: transform .3s var(--ease); }
.pin:not(.is-on) .pin__head { transform: translate(0, -160px) scale(.72); }
.pin.is-on .pin__head { transform: translate(0, -160px) scale(1.1); }
.bob { animation: bob 3.2s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(5px); } }
.wave { animation: drift 5s linear infinite; }
.wave--b { animation-duration: 7s; animation-direction: reverse; }
@keyframes drift { to { transform: translateX(80px); } }
#vanWrap, #cargoVan { transition: opacity .3s; }
.journey__railwrap { position: relative; padding-block: 12px 14px; }
.journey__line { position: absolute; left: var(--gutter); right: var(--gutter); top: 33px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .18); }
.journey__line i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--sky), var(--plum), var(--crimson), var(--tangerine), var(--sun), var(--leaf)); }
.journey__rail { position: relative; display: flex; justify-content: space-between; margin: 0; padding: 0; list-style: none; }
.journey__rail button { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: rgba(255, 255, 255, .7); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .28); transition: transform .25s var(--ease), background .25s, color .25s; }
.journey__rail button svg { width: 22px; height: 22px; }
.journey__rail button:hover { transform: scale(1.1); }
.journey__rail button.is-done { background: var(--c); color: var(--t); box-shadow: none; opacity: .8; }
.journey__rail button.is-on { background: var(--c); color: var(--t); box-shadow: 0 0 0 3px #fff; transform: scale(1.18); }
.journey__track { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); margin: 0; padding: 0; list-style: none; }
.journey__track .journey__icon { display: none; }

/* Motto */
.motto { position: relative; padding-bottom: clamp(60px, 8vw, 110px); text-align: center; background: var(--cream); }
.motto .wrap { display: grid; justify-items: center; gap: 16px; padding-top: clamp(30px, 5vw, 60px); }
.motto .eyebrow { color: var(--blue); }
.motto blockquote { margin: 0; max-width: 16ch; font: 800 clamp(40px, 7vw, 100px)/1 var(--font-display); letter-spacing: -.03em; color: var(--navy); text-wrap: balance; }
.motto__sub { max-width: 52ch; color: var(--muted); font-size: 18px; }

/* Instagram strip */
.ig { padding-bottom: clamp(50px, 6vw, 84px); background: var(--cream); }
.ig__strip { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.ig__tile { position: relative; display: block; aspect-ratio: 1; overflow: hidden; border-radius: 16px; background: var(--cream-2); }
.ig__tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.ig__tile span { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(7, 47, 104, .55); color: #fff; opacity: 0; transition: opacity .25s; }
.ig__tile svg { width: 34px; height: 34px; }
.ig__tile:hover img { transform: scale(1.06); }
.ig__tile:hover span, .ig__tile:focus-visible span { opacity: 1; }
.sechead .btn svg { width: 20px; height: 20px; }

@media (max-width: 860px) {
  .ig__strip { display: flex; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  .ig__strip::-webkit-scrollbar { display: none; }
  .ig__tile { flex: 0 0 62%; scroll-snap-align: center; }
  .arrivals__grid { grid-template-columns: 1fr 1fr; grid-template-rows: none; aspect-ratio: auto; }
  .arr { aspect-ratio: 4 / 3; }
  .arr:first-child { grid-column: 1 / -1; grid-row: auto; }
  .tile, .tile--a, .tile--b, .tile--c, .tile--d, .tile--e, .tile--f, .tile--g { grid-column: 1 / -1; min-height: 380px; justify-content: flex-end; }
  .more { min-height: 460px; }
  .journey { --journey-mode: list; height: auto; padding-block: 56px; }
  .journey__pin { position: static; height: auto; overflow: visible; padding-top: 0; }
  .journey__top { display: block; padding-bottom: 20px; }
  .hud, .scene, .journey__railwrap { display: none; }
  .journey__track { position: static; width: auto; height: auto; overflow: visible; clip-path: none; display: grid; gap: 10px; padding-inline: var(--gutter); }
  .journey__track li { display: grid; grid-template-columns: 52px 1fr; column-gap: 14px; align-items: center; padding: 14px 16px; border-radius: 18px; background: var(--c); color: var(--t, #fff); }
  .journey__track .journey__icon { display: grid; place-items: center; grid-row: span 3; width: 52px; height: 52px; border-radius: 50%; background: rgba(255, 255, 255, .22); }
  .journey__track .journey__icon svg { width: 28px; height: 28px; }
  .journey__track b { font: 500 13px var(--font-mono); opacity: .85; }
  .journey__track h3 { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .reel__track { animation: none; }
  .journey { --journey-mode: list; height: auto; padding-block: 56px; }
  .journey__pin { position: static; height: auto; overflow: visible; padding-top: 0; }
  .journey__top { display: block; padding-bottom: 20px; }
  .hud, .scene, .journey__railwrap { display: none; }
  .journey__track { position: static; width: auto; height: auto; overflow: visible; clip-path: none; display: grid; gap: 10px; padding-inline: var(--gutter); }
  .journey__track li { display: grid; grid-template-columns: 52px 1fr; column-gap: 14px; align-items: center; padding: 14px 16px; border-radius: 18px; background: var(--c); color: var(--t, #fff); }
  .journey__track .journey__icon { display: grid; place-items: center; grid-row: span 3; width: 52px; height: 52px; border-radius: 50%; background: rgba(255, 255, 255, .22); }
  .journey__track .journey__icon svg { width: 28px; height: 28px; }
  .journey__track b { font: 500 13px var(--font-mono); opacity: .85; }
  .journey__track h3 { font-size: 24px; }
}
