/* ==========================================================
   Alpha Tropics
   Five colours, all taken from the fruit. Everything on the page
   (sections, product cards, the citrus mark) uses only these.
   ========================================================== */
:root {
  --plum:   #2A0F2C;   /* mangosteen rind: ink and dark sections */
  --lychee: #FCE9E6;   /* lychee flesh: light sections and text on dark */
  --mango:  #FFB31F;   /* ripe mango: main accent */
  --dragon: #F23A84;   /* dragonfruit: second accent (4.75:1 with plum text) */
  --leaf:   #0E5A45;   /* banana leaf: deep green */

  --bg: #2A0F2C;
  --fg: #FCE9E6;
  --accent: #FFB31F;

  --display: "Anybody", "Arial Narrow", sans-serif;
  --text: "Familjen Grotesk", system-ui, sans-serif;

  --gutter: clamp(16px, 4vw, 56px);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
/* "only light" stops Chrome/Samsung Internet forced dark mode from repainting the palette */
:root { color-scheme: only light; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
/* iOS Safari can still drag a page sideways despite body overflow-x:hidden; clip doesn't create a scroll box */
main, footer { overflow-x: clip; }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
::selection { background: var(--dragon); color: var(--plum); }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
  border-radius: 4px;
}
/* Sections receive focus after a menu jump (for keyboard and screen-reader users); no ring on the whole section */
[tabindex="-1"]:focus { outline: none; }

.skip {
  position: fixed; left: 1rem; top: -4rem; z-index: 200;
  background: var(--mango); color: var(--plum);
  padding: .75rem 1rem; border-radius: 999px; font-weight: 600;
  transition: top .3s var(--ease-out);
}
.skip:focus { top: 1rem; }

/* ---------- Display type ----------
   The signature motion of the site is the variable width of Anybody: headings
   stretch into place as they scroll in (--hw / --hg are driven from main.js). */
.h2 {
  font-family: var(--display);
  font-weight: 800;
  font-variation-settings: "wdth" var(--hw, 80), "wght" var(--hg, 800);
  font-size: clamp(3rem, 10vw, 9.5rem);
  line-height: .88;
  letter-spacing: -.02em;
}

/* SplitText masks */
.split-mask { overflow: hidden; overflow: clip; display: inline-block; vertical-align: top; padding-bottom: .06em; margin-bottom: -.06em; }

/* ---------- Citrus mark (drawn in JS): a grapefruit slice in the palette ---------- */
.citrus { display: block; overflow: visible; fill: none; }
.citrus .rind { fill: var(--mango); }
.citrus .pith { fill: var(--lychee); }
.citrus .seg  { fill: var(--dragon); stroke: var(--dragon); stroke-width: 4; stroke-linejoin: round; }
.citrus .core { fill: var(--lychee); }

/* ---------- Grain ---------- */
.grain {
  position: fixed; inset: 0; z-index: 150; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
/* On phones the grain is invisible anyway, and a full-screen overlay costs scroll smoothness */
@media (hover: none), (max-width: 899px) { .grain { display: none; } }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  /* stays clear of the iPhone notch / status bar when the page runs edge to edge */
  padding: calc(.6rem + env(safe-area-inset-top, 0px)) var(--gutter) .6rem;
  color: var(--fg);
  transition: transform .6s var(--ease-out);
}
.nav.is-hidden { transform: translateY(-110%); }
.nav::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--bg); opacity: 0; transition: opacity .4s;
}
.nav.is-solid::before { opacity: .92; }
/* Company logo: round emblem, about the footprint of the old mark + name; the nav keeps its height */
.nav__logo { display: flex; align-items: center; min-height: 44px; border-radius: 50%; }
.nav__logo img { display: block; width: 64px; height: 64px; }
@media (max-width: 700px) { .nav__logo img { width: 52px; height: 52px; } }
.nav__links { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2.2rem); font-weight: 500; }
.nav__links a { min-height: 44px; display: inline-flex; align-items: center; }
.nav__cta {
  padding: 0 1.2rem; border-radius: 999px;
  background: var(--fg); color: var(--bg);
}
.nav__burger {
  display: none; align-items: center; gap: .6rem;
  background: none; border: 0; color: inherit; font: 600 1rem var(--text);
  min-height: 44px; padding: 0 .25rem; cursor: pointer; position: relative; z-index: 2;
}
.nav__burger-lines { width: 26px; height: 12px; position: relative; }
.nav__burger-lines i { position: absolute; left: 0; right: 0; height: 2px; background: currentColor; transition: transform .5s var(--ease-out), top .5s var(--ease-out); }
.nav__burger-lines i:first-child { top: 0; }
.nav__burger-lines i:last-child { top: 10px; }
.menu-open .nav__burger-lines i:first-child { top: 5px; transform: rotate(45deg); }
.menu-open .nav__burger-lines i:last-child { top: 5px; transform: rotate(-45deg); }
.menu-open .nav { color: var(--plum); }
body.menu-open, body.lightbox-open { overflow: hidden; }
.menu-open .nav::before { opacity: 0; }

/* Text roll hover */
.roll { position: relative; overflow: hidden; }
.roll span { display: inline-block; transition: transform .55s var(--ease-out); }
.roll::after {
  content: attr(data-text); position: absolute; left: 0; right: 0; top: 50%;
  text-align: center; transform: translateY(120%); transition: transform .55s var(--ease-out);
  margin-top: -.775em; line-height: 1.55;
}
.nav__cta.roll::after { left: 1.2rem; right: 1.2rem; }
.roll:focus-visible span { transform: translateY(-140%); }
.roll:focus-visible::after { transform: translateY(0); }
/* Hover effects only on real pointers: on iOS a tap would otherwise leave them stuck */
@media (hover: hover) {
  .roll:hover span { transform: translateY(-140%); }
  .roll:hover::after { transform: translateY(0); }
}

/* Fullscreen menu */
.menu {
  position: fixed; inset: 0; z-index: 90;
  background: var(--mango); color: var(--plum);
  display: flex; flex-direction: column; justify-content: center; gap: 2.5rem;
  padding: 6rem var(--gutter) 2rem;
  clip-path: circle(0% at calc(100% - 3rem) 2rem);
  visibility: hidden;
  overflow-y: auto; overscroll-behavior: contain;
}
.menu__links { display: flex; flex-direction: column; }
.menu__links a {
  font-family: var(--display); font-weight: 800; font-variation-settings: "wdth" 70;
  font-size: clamp(2.8rem, 13vw, 6rem); line-height: 1; padding: .1em 0;
}
.menu__mail { font-weight: 600; font-size: 1.1rem; text-decoration: underline; text-underline-offset: 4px; }

@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__burger { display: inline-flex; }
}

/* ---------- Photo frames ---------- */
.media { position: relative; overflow: hidden; isolation: isolate; background: rgba(252, 233, 230, .08); }
/* No permanent will-change on photos: GSAP promotes layers only while they move, which keeps
   iPhone memory low (too many large layers makes Safari reload the tab) */
.media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Hero ---------- */
.hero { position: relative; height: 100vh; height: 100svh; }
.hero__stage { position: relative; height: 100%; overflow: hidden; }
.hero__media {
  position: absolute; inset: 0;
  /* fallback only; an inline script fits the arch under the title before first paint */
  clip-path: inset(40% 33% 4% 33% round 30vw 30vw 28px 28px);
}
/* Start of the scroll zoom (set per photo on .hero__media), so nothing jumps when the animation takes over */
.hero__media img { transform-origin: var(--hero-origin, 50% 50%); }
.js .hero__media img { transform: scale(var(--hero-zoom, 1.25)); }.hero__title {
  position: absolute; left: 0; right: 0; top: clamp(4.5rem, 12vh, 7rem);
  font-family: var(--display); font-weight: 850; text-align: center;
  --wdth: 112; --wght: 850;
  /* capped by height too, so wide laptops and phones in landscape keep the title above the photo */
  font-size: clamp(4.2rem, 17.5vw, 21rem);
  font-size: clamp(4.2rem, min(17.5vw, 22vh), 21rem);
  line-height: .8; letter-spacing: -.03em;
  pointer-events: auto;
  z-index: 2;
}
/* With JS the title waits for its font (max ~1.2 s) and then its letters rise in; failsafe shows it anyway */
.js .hero__title { visibility: hidden; animation: titleFailsafe 0s 2.5s forwards; }
@keyframes titleFailsafe { to { visibility: visible; } }
.hero__title .char { font-variation-settings: "wdth" var(--cw, var(--wdth)), "wght" var(--cg, var(--wght)); }
@media (hover: hover) and (pointer: fine) {
  .hero__title .char { transition: font-variation-settings .5s var(--ease-out); }
}
.hero__line { display: block; font-variation-settings: "wdth" var(--wdth), "wght" var(--wght); }
.hero__line--2 { color: var(--mango); }
.hero__citrus {
  position: absolute; z-index: 1;
  width: clamp(110px, 16vw, 260px);
  right: 8vw; top: 48%;
}
.hero__lede {
  position: absolute; left: var(--gutter); bottom: var(--gutter); z-index: 3;
  max-width: 22ch; font-size: clamp(1.05rem, 1.5vw, 1.35rem); line-height: 1.35; font-weight: 500;
}
.hero__cue {
  position: absolute; right: var(--gutter); bottom: var(--gutter); z-index: 3;
  display: flex; align-items: center; gap: .8rem; font-size: .9rem; font-weight: 500;
}
.hero__cue i { width: 1px; height: 48px; background: currentColor; transform-origin: top; animation: cue 1.8s var(--ease-out) infinite; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

@media (min-width: 701px) and (max-width: 999px) {
  .hero__lede { max-width: 16ch; } /* tablets: keep the intro text clear of the arch */
}
@media (max-width: 700px) {
  .hero__media { clip-path: inset(42% 14% 18% 14% round 40vw 40vw 24px 24px); }
  .hero__citrus { right: -6vw; top: 34%; }
  .hero__lede { bottom: calc(var(--gutter) + 2.5rem); }
  .hero__cue { left: var(--gutter); right: auto; bottom: var(--gutter); }
  .hero__cue i { height: 28px; }
}

/* ---------- Marquee ---------- */
.marquee {
  position: relative; z-index: 2; overflow: hidden;
  padding: clamp(1.5rem, 4vw, 3rem) 0;
  font-family: var(--display); font-weight: 700;
  font-variation-settings: "wdth" 120;
  font-size: clamp(2.2rem, 6vw, 5.5rem); line-height: 1.1;
}
.marquee__row { display: flex; align-items: center; width: max-content; white-space: nowrap; will-change: transform; }
.marquee__row span { padding: 0 .35em; }
.marquee__row b { width: .45em; height: .45em; border-radius: 50%; background: var(--mango); flex: none; }
.marquee__row--alt { color: transparent; -webkit-text-stroke: 1.5px var(--fg); }
.marquee__row--alt b { background: var(--dragon); }

/* ---------- Statement ---------- */
.statement {
  position: relative; min-height: 120vh;
  display: grid; align-items: center;
  padding: 18vh var(--gutter);
}
.statement__text {
  position: relative; z-index: 1;
  font-family: var(--display); font-weight: 650; font-variation-settings: "wdth" 88;
  font-size: clamp(2rem, 5.4vw, 5rem); line-height: 1.04; letter-spacing: -.015em;
  max-width: 17ch;
}
/* Words not yet "filled" by scrolling stay at 50%: 3.27:1, readable as large text (WCAG AA) */
.statement__text .word { opacity: .5; }
.statement__fruit { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.blob { position: absolute; border-radius: 50%; overflow: hidden; }
.blob img { width: 100%; height: 100%; object-fit: cover; }
.blob--1 img { object-position: 45% 55%; } /* keeps the truck's cab centred in the circle */
.blob--1 { width: 34vw; height: 34vw; right: -6vw; top: 12%; background: var(--dragon); box-shadow: 0 0 0 clamp(6px, 1vw, 14px) var(--dragon); }
.blob--2 { width: 16vw; height: 16vw; right: 22vw; top: 58%; background: var(--mango); box-shadow: 0 0 0 clamp(5px, .8vw, 10px) var(--mango); }
.blob--3 { width: 9vw; height: 9vw; right: 8vw; bottom: 8%; background: var(--leaf); box-shadow: 0 0 0 clamp(4px, .6vw, 8px) var(--leaf); }
@media (max-width: 700px) {
  .blob--1 { width: 48vw; height: 48vw; right: -14vw; top: 3%; }
  .blob--2 { width: 30vw; height: 30vw; right: auto; left: 8vw; top: auto; bottom: 4%; }
  .blob--3 { width: 18vw; height: 18vw; right: 10vw; bottom: 7%; }
}

/* ---------- Fleet ---------- */
.fleet { position: relative; overflow: hidden; padding: clamp(5rem, 12vh, 8rem) 0 clamp(4rem, 10vh, 6rem); }
.fleet__band {
  display: flex; align-items: center; gap: .4em; width: max-content; white-space: nowrap;
  font-family: var(--display); font-weight: 900; font-variation-settings: "wdth" 150;
  font-size: clamp(4rem, 14vw, 13rem); line-height: .9; letter-spacing: -.02em;
  color: transparent; -webkit-text-stroke: 2px var(--plum);
  margin-bottom: clamp(3rem, 8vh, 5rem);
}
.fleet__band b { flex: none; width: .28em; height: .28em; border-radius: 50%; background: var(--plum); }
.fleet__body { display: grid; grid-template-columns: 1fr minmax(0, 32ch); align-items: end; gap: 2rem; padding: 0 var(--gutter); margin-bottom: clamp(2.5rem, 6vh, 4rem); }
.fleet__text { font-size: 1.1rem; font-weight: 500; }

/* Three trade lanes: import, export, wholesale (parallel, so not numbered).
   The rule above each one draws across as it scrolls in (--rule from main.js); at rest it is full. */
.fleet__lanes {
  list-style: none; margin: 0 0 clamp(1rem, 4vh, 2.5rem); padding: 0 var(--gutter);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.25rem, 3vw, 3rem);
}
.lane { position: relative; padding-top: 1rem; }
.lane::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--plum); transform-origin: left; transform: scaleX(var(--rule, 1));
}
.lane__title {
  font-family: var(--display); font-weight: 800; font-variation-settings: "wdth" 90;
  font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1; margin-bottom: .5rem;
}
.lane p { max-width: 34ch; font-weight: 500; }

.fleet__road {
  height: 6px;
  background: repeating-linear-gradient(90deg, var(--plum) 0 48px, transparent 48px 84px);
  background-size: 84px 6px;
}

/* Truck stack, pinned while each truck drives off */
.garage {
  position: relative; height: 100vh; height: 100svh;
  display: flex; flex-direction: column; justify-content: center; gap: 1.25rem;
  padding: 5rem var(--gutter) 2rem;
}
.garage > * { width: min(100%, calc(60vh * 1.5), 1180px); margin-inline: auto; }
.garage__stage { position: relative; aspect-ratio: 3 / 2; cursor: pointer; }
.truck {
  position: absolute; inset: 0; margin: 0;
  border-radius: clamp(20px, 3vw, 40px); overflow: hidden;
  background: var(--plum); transform-origin: 50% 0%;
}
.truck img { width: 100%; height: 100%; object-fit: cover; }
/* Trucks further back are darkened with this layer's opacity (cheap on the GPU) instead of a filter */
.truck__shade { position: absolute; inset: 0; background: var(--plum); opacity: 0; pointer-events: none; }
/* Fixed grid (one row on wide screens, two on phones) so a longer truck name never changes the
   row's height and never shifts the stack (layout shift) */
.garage__meta { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .75rem 1rem; }
@media (max-width: 560px) { .garage__meta { grid-template-columns: 1fr; } }
.garage__name {
  overflow: hidden;
  font-family: var(--display); font-weight: 800; font-variation-settings: "wdth" 80;
  font-size: clamp(1.35rem, 3vw, 2.4rem); line-height: 1.15;
}
.garage__name span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.garage__ctrl { display: flex; align-items: center; gap: 1rem; }
.garage__count { font-family: var(--display); font-weight: 700; font-size: 1.1rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.garage__next {
  min-height: 44px; padding: 0 1.2rem; border: 0; border-radius: 999px;
  background: var(--plum); color: var(--lychee); font: 600 1rem var(--text); cursor: pointer;
  transition: transform .4s var(--ease-out);
}
@media (hover: hover) { .garage__next:hover { transform: translateX(4px); } }

@media (max-width: 760px) {
  .fleet__body { grid-template-columns: 1fr; }
  .fleet__lanes { grid-template-columns: 1fr; }
  .garage__stage { aspect-ratio: 1 / 1; }
}
/* Short screens (phones in landscape): keep the truck stack inside the viewport */
@media (max-height: 560px) {
  .garage { padding: 3.5rem var(--gutter) 1rem; gap: .6rem; }
  .garage > * { width: min(100%, calc(52vh * 1.5)); }
}

/* ---------- Range: desktop row / phone swipe ---------- */
/* No overflow:hidden/clip here: on a pinned section Chrome reports the pin as a full-screen layout
   shift (measured CLS 2.0). The wide card row is clipped by main { overflow-x: clip } instead. */
.range { position: relative; padding-top: clamp(5rem, 12vh, 8rem); }
.range__head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
  padding: 0 var(--gutter) clamp(2rem, 5vh, 3.5rem);
}
.range__hint { max-width: 28ch; font-size: 1.05rem; }
.hint-touch { display: none; }
.range__track {
  display: flex; gap: clamp(1rem, 2vw, 1.75rem);
  padding: 0 var(--gutter) clamp(3rem, 8vh, 5rem);
  width: max-content;
}
.panel {
  flex: none; width: min(80vw, 500px);
  height: min(76vh, 700px);
  background: var(--pbg); color: var(--pfg);
  border-radius: 36px;
  padding: clamp(1.1rem, 2vw, 1.75rem);
  display: grid; grid-template-rows: auto 1fr auto; gap: 1rem;
  overflow: hidden;
}
.panel__name {
  font-family: var(--display); font-weight: 850; font-variation-settings: "wdth" 66;
  font-size: clamp(2.6rem, 5vw, 4.6rem); line-height: .86; letter-spacing: -.02em;
}
.panel__media {
  position: relative; overflow: hidden; isolation: isolate; min-height: 0;
  border-radius: 999px 999px 22px 22px;
  background: rgba(42, 15, 44, .15);
}
.panel__slides { position: absolute; top: 0; bottom: 0; left: -8%; right: -8%; }
.panel__slides img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  visibility: hidden;
}
.panel__slides img.is-active { visibility: visible; z-index: 2; }
.panel__slides img.is-prev { visibility: visible; z-index: 1; }
.panel__cap {
  position: absolute; left: .75rem; bottom: .75rem; z-index: 3;
  overflow: hidden; max-width: calc(100% - 1.5rem);
  background: var(--pfg); color: var(--pbg);
  border-radius: 999px; padding: .4rem .9rem;
  font-size: .85rem; font-weight: 600; line-height: 1.2;
}
.panel__cap span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.panel__foot { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: .75rem 1rem; }
.panel__text { flex: 1 1 200px; max-width: 32ch; font-weight: 500; font-size: 1rem; line-height: 1.4; }
.panel__thumbs { display: flex; gap: .4rem; flex: none; }
.thumb {
  width: 46px; height: 46px; padding: 3px; border-radius: 50%;
  border: 2px solid transparent; background: none; color: inherit; cursor: pointer;
  transition: border-color .3s, transform .4s var(--ease-out);
}
.thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.thumb[aria-pressed="true"] { border-color: var(--pfg); }
@media (hover: hover) { .thumb:hover { transform: translateY(-3px); } }
.thumb:focus-visible { outline-color: var(--pfg); }
.range__progress { display: none; }

/* Phones and small tablets: cards you swipe sideways (one screen tall instead of eight) */
@media (max-width: 899px) {
  .hint-desk { display: none; }
  .hint-touch { display: inline; }
  .range__track {
    width: auto; overflow-x: auto; overflow-y: hidden;
    scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
    overscroll-behavior-x: contain; scrollbar-width: none;
    padding: 0 var(--gutter) 1.25rem;
  }
  .range__track::-webkit-scrollbar { display: none; }
  .panel { width: min(84vw, 420px); height: auto; scroll-snap-align: start; }
  .panel__media { height: 96vw; height: min(96vw, 58vh, 480px); }
  .range__progress {
    display: block; margin: 0 var(--gutter) clamp(3rem, 8vh, 5rem);
    height: 3px; border-radius: 3px; overflow: hidden; background: rgba(252, 233, 230, .2);
  }
  .range__progress i { display: block; height: 100%; background: var(--mango); transform-origin: left; transform: scaleX(.1); }
}

/* ---------- Route ---------- */
.route { position: relative; padding: clamp(6rem, 16vh, 11rem) var(--gutter); }
.route__line { position: relative; height: 3px; margin: clamp(3rem, 8vh, 5rem) 0 2.5rem; background: rgba(252, 233, 230, .18); border-radius: 3px; }
.route__line i { position: absolute; inset: 0; background: var(--mango); transform-origin: left; transform: scaleX(0); border-radius: 3px; }
.route__steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.25rem, 3vw, 3rem); }
.step { position: relative; }
.step__num {
  display: block; font-family: var(--display); font-weight: 900; font-variation-settings: "wdth" 55;
  font-size: clamp(3.5rem, 7vw, 6.5rem); line-height: .9; color: var(--mango);
  margin-bottom: 1rem; font-variant-numeric: tabular-nums;
}
.step__title { font-family: var(--display); font-weight: 750; font-variation-settings: "wdth" 100; font-size: 1.6rem; margin-bottom: .5rem; }
.step p { max-width: 30ch; opacity: .85; }
@media (max-width: 860px) {
  .route__line { display: none; }
  .route__steps { grid-template-columns: 1fr; gap: 3rem; margin-top: 3rem; padding-left: 1.5rem; border-left: 3px solid rgba(252,233,230,.18); }
}

/* ---------- Depot: photos are buttons that open the lightbox ---------- */
.depot { padding: clamp(6rem, 16vh, 11rem) var(--gutter); }
.depot__head { display: grid; grid-template-columns: 1fr minmax(0, 30ch); align-items: end; gap: 2rem; margin-bottom: clamp(3rem, 8vh, 5rem); }
.depot__text { font-size: 1.1rem; }
.depot__grid {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(.75rem, 1.6vw, 1.5rem);
  grid-auto-rows: clamp(140px, 16vw, 260px);
}
.depot__item { display: block; width: 100%; height: 100%; padding: 0; border: 0; font: inherit; color: inherit; cursor: zoom-in; }
.depot__item--a { grid-column: 1 / 8; grid-row: span 3; border-radius: 26vw 26vw 28px 28px; }
.depot__item--b { grid-column: 8 / 13; grid-row: span 2; border-radius: 28px; }
.depot__item--c { grid-column: 8 / 13; grid-row: span 2; border-radius: 50%; }
.depot__item--d { grid-column: 1 / 5; grid-row: span 2; border-radius: 28px; }
.depot__item--e { grid-column: 5 / 8; grid-row: span 1; border-radius: 999px; }
@media (max-width: 760px) {
  .depot__head { grid-template-columns: 1fr; }
  .depot__grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 42vw; }
  .depot__item--a { grid-column: 1 / 3; grid-row: span 2; border-radius: 46vw 46vw 24px 24px; }
  .depot__item--b, .depot__item--c, .depot__item--d { grid-column: span 1; grid-row: span 1; }
  .depot__item--c { border-radius: 50%; }
  .depot__item--e { grid-column: 1 / 3; grid-row: span 1; border-radius: 999px; }
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; overflow: hidden;
  background: rgba(42, 15, 44, .94); color: var(--lychee);
}
.lightbox::backdrop { background: transparent; }
.lightbox[open] { display: grid; place-items: center; }
.lightbox__img {
  width: auto; height: auto; max-width: min(92vw, 1100px); max-height: 82vh; max-height: 82svh;
  border-radius: 24px; object-fit: contain;
}
.lightbox__close {
  position: absolute; top: calc(1rem + env(safe-area-inset-top, 0px)); right: var(--gutter);
  min-height: 44px; padding: 0 1.2rem; border: 0; border-radius: 999px;
  background: var(--lychee); color: var(--plum); font: 600 1rem var(--text); cursor: pointer;
}

/* ---------- Contact ---------- */
.contact {
  position: relative; overflow: hidden;
  min-height: 100vh; padding: clamp(7rem, 18vh, 12rem) var(--gutter) clamp(4rem, 10vh, 6rem);
  display: flex; flex-direction: column; justify-content: center; gap: clamp(2rem, 6vh, 4rem);
}
.contact__title {
  position: relative; z-index: 1;
  font-family: var(--display); font-weight: 900;
  font-variation-settings: "wdth" var(--hw, 60), "wght" var(--hg, 900);
  font-size: clamp(4rem, 16vw, 15rem); line-height: .82; letter-spacing: -.03em;
}
.contact__mail {
  position: relative; z-index: 1; align-self: flex-start;
  font-family: var(--display); font-weight: 600; font-variation-settings: "wdth" 100;
  font-size: clamp(1.5rem, 5vw, 4.5rem); line-height: 1.1;
  padding: .25em 0; border-bottom: 3px solid currentColor;
  max-width: 100%; overflow-wrap: anywhere;
  transition: font-variation-settings .6s var(--ease-out);
}
.contact__mail:focus-visible { font-variation-settings: "wdth" 118; }
@media (hover: hover) { .contact__mail:hover { font-variation-settings: "wdth" 118; } }
.contact__meta { position: relative; z-index: 1; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1.5rem; font-weight: 500; }
.contact__meta a { font-weight: 700; font-size: 1.15rem; min-height: 44px; display: inline-flex; align-items: center; }
.contact__citrus { position: absolute; right: -10vw; top: -10vw; width: clamp(240px, 42vw, 640px); opacity: .9; }

/* ---------- Footer ---------- */
.footer { padding: 3rem var(--gutter) 1.5rem; overflow: hidden; background: var(--plum); color: var(--lychee); }
.footer__word {
  font-family: var(--display); font-weight: 900; font-variation-settings: "wdth" var(--hw, 118);
  font-size: clamp(2rem, 9.6vw, 14rem); line-height: .85; letter-spacing: -.04em; white-space: nowrap;
  color: var(--mango);
}
.footer__row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-top: 1.5rem; font-size: .95rem; }
.footer__row a { min-height: 44px; display: inline-flex; align-items: center; }

/* ---------- No motion: user setting, or the animation scripts failed to load ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .statement__text .word { opacity: 1; }
  .route__line i { transform: none; }
  .garage { height: auto; }
  .garage__stage { aspect-ratio: auto; display: grid; gap: 1rem; cursor: default; }
  .truck { position: relative; aspect-ratio: 3 / 2; }
  .garage__meta { display: none; }
}
.no-motion .garage { height: auto; }
.no-motion .garage__stage { aspect-ratio: auto; display: grid; gap: 1rem; cursor: default; }
.no-motion .truck { position: relative; aspect-ratio: 3 / 2; }
.no-motion .garage__meta { display: none; }
