/* Caraways holding page — layout + motion only; colour/type come from css/tokens.css */

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  color: var(--fg-1);
  background:
    radial-gradient(circle at 1px 1px, rgba(17,69,152,.10) 1px, transparent 1.6px) 0 0 / 26px 26px,
    var(--gradient-hero-ambient);
  overflow-x: hidden;
  position: relative;
}
img, svg { max-width: 100%; }

/* ─── Background art ─────────────────────────────────────────────────── */
.bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.ring { position: absolute; border-radius: 50%; }
.ring-red  { width: 78vmin; height: 78vmin; left: -30vmin; top: -28vmin; border: 12vmin solid rgba(233,42,62,.07); animation: drift 18s ease-in-out infinite alternate; }
.ring-blue { width: 100vmin; height: 100vmin; right: -40vmin; bottom: -48vmin; border: 14vmin solid rgba(17,69,152,.07); animation: drift 22s ease-in-out infinite alternate-reverse; }
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; }
.blob-red  { width: 40vmin; height: 40vmin; right: 12vw; top: -10vmin; background: rgba(233,42,62,.18); animation: float 14s ease-in-out infinite; }
.blob-blue { width: 50vmin; height: 50vmin; left: 30vw; bottom: -20vmin; background: rgba(17,69,152,.18); animation: float 17s ease-in-out infinite reverse; }
.slash { position: absolute; width: 140vmax; height: 6px; left: -20vmax; transform: rotate(-24deg); opacity: .18; }
.slash-1 { top: 62%; background: linear-gradient(90deg, transparent, var(--brand-blue) 30%, var(--brand-blue) 70%, transparent); }
.slash-2 { top: 66%; height: 3px; background: linear-gradient(90deg, transparent, var(--brand-red) 30%, var(--brand-red) 70%, transparent); }
@keyframes drift { from { transform: translate(0,0) rotate(0); } to { transform: translate(4vmin, 3vmin) rotate(12deg); } }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-4vmin); } }

/* ─── Nav ────────────────────────────────────────────────────────────── */
.nav {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 22px clamp(20px, 5vw, 64px);
}
.brand img { display: block; height: 42px; width: auto; }
.nav-link {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px 8px 16px; border-radius: var(--radius-pill);
  background: rgba(255,255,255,.75); border: 1px solid var(--neutral-200);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: var(--shadow-sm); text-decoration: none;
  transition: transform var(--dur-fast) var(--ease-default), box-shadow var(--dur-fast);
}
.nav-link:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.nav-link-label { font-family: var(--font-heading); font-weight: var(--fw-bold); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .12em; color: var(--fg-3); }
.nav-link img { height: 22px; width: auto; display: block; }

/* ─── Hero ───────────────────────────────────────────────────────────── */
.hero {
  position: relative; z-index: 1;
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
  padding: 24px clamp(20px, 5vw, 64px) 40px;
  max-width: 1320px; width: 100%; margin: 0 auto;
}

.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: var(--radius-pill);
  background: var(--accent-50); color: var(--accent-700);
  font-family: var(--font-heading); font-weight: var(--fw-bold);
  font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .14em;
  margin-bottom: 26px;
}
.chip-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand-red); animation: pulse 1.8s infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(233,42,62,.45); } 60% { box-shadow: 0 0 0 7px rgba(233,42,62,0); } }

h1 {
  font-size: clamp(52px, 7.6vw, 104px);
  letter-spacing: -0.03em;
  line-height: .98;
  margin: 0 0 22px;
  animation: rise .8s var(--ease-default) both;
}
.accent {
  background: linear-gradient(90deg, var(--brand-red) 0%, var(--brand-red) 35%, var(--brand-blue) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead {
  font-size: clamp(17px, 1.5vw, 22px);
  color: var(--fg-2);
  margin: 0 0 34px;
  max-width: 440px;
  animation: rise .8s .1s var(--ease-default) both;
}
.actions { display: flex; flex-wrap: wrap; gap: 12px; animation: rise .8s .2s var(--ease-default) both; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 30px; border-radius: var(--radius-pill);
  font-family: var(--font-heading); font-weight: var(--fw-bold); font-size: 16px;
  text-decoration: none;
  transition: transform var(--dur-fast) var(--ease-default), background var(--dur-fast), box-shadow var(--dur-fast);
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform var(--dur-fast) var(--ease-default); }
.btn:hover svg { transform: translateX(3px); }
.btn-red { background: var(--brand-red); color: #fff; box-shadow: var(--shadow-red); }
.btn-red:hover { background: var(--accent-600); color: #fff; transform: translateY(-2px); box-shadow: 0 16px 32px rgba(233,42,62,.28); }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ─── Illustration ───────────────────────────────────────────────────── */
.art { position: relative; min-height: 380px; animation: rise .9s .15s var(--ease-default) both; }
.scene {
  position: relative; aspect-ratio: 5 / 4; width: 100%;
  border-radius: var(--radius-2xl);
  background: linear-gradient(180deg, #0a2962 0%, #114598 55%, #0f3d88 100%);
  box-shadow: var(--shadow-2xl), inset 0 0 0 1px rgba(255,255,255,.06);
  overflow: hidden;
  transform: rotate(-2deg);
}
.scene::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 1px 1px, rgba(255,255,255,.08) 1px, transparent 1.5px) 0 0 / 22px 22px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 70%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 70%);
}
.sun {
  position: absolute; right: 12%; top: 12%; width: 22%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, #ff6b7a, var(--brand-red) 70%);
  box-shadow: 0 0 60px rgba(233,42,62,.55), 0 0 140px rgba(233,42,62,.25);
  animation: glow 4s ease-in-out infinite;
}
@keyframes glow { 0%,100% { transform: scale(1); } 50% { transform: scale(1.04); } }
.skyline {
  position: absolute; left: 0; right: 0; bottom: 34%; height: 30%;
  display: flex; align-items: flex-end; gap: 2.5%; padding: 0 4%;
}
.skyline i {
  flex: 1; display: block; background: rgba(6,26,66,.85);
  border-radius: 3px 3px 0 0;
  background-image: repeating-linear-gradient(0deg, transparent 0 7px, rgba(255,255,255,.08) 7px 9px);
}
.skyline i:nth-child(1)  { height: 42%; }
.skyline i:nth-child(2)  { height: 70%; }
.skyline i:nth-child(3)  { height: 55%; }
.skyline i:nth-child(4)  { height: 88%; }
.skyline i:nth-child(5)  { height: 48%; }
.skyline i:nth-child(6)  { height: 100%; }
.skyline i:nth-child(7)  { height: 62%; }
.skyline i:nth-child(8)  { height: 78%; }
.skyline i:nth-child(9)  { height: 40%; }
.skyline i:nth-child(10) { height: 92%; }
.skyline i:nth-child(11) { height: 58%; }
.skyline i:nth-child(12) { height: 72%; }
.road {
  position: absolute; left: 0; right: 0; bottom: 0; height: 34%;
  background: linear-gradient(180deg, #1a1d24 0%, #0f1117 100%);
}
.road::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: rgba(255,255,255,.18);
}
.road-line {
  position: absolute; left: 0; right: 0; top: 52%; height: 5px;
  background: repeating-linear-gradient(90deg, #f3d35a 0 60px, transparent 60px 110px);
  animation: dash .55s linear infinite;
}
@keyframes dash { from { background-position: 0 0; } to { background-position: -110px 0; } }
.car {
  position: absolute; left: 12%; bottom: 14%; width: 62%;
  filter: drop-shadow(0 18px 24px rgba(0,0,0,.35));
  animation: bob 1.2s ease-in-out infinite;
}
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
.wheel { animation: spin .6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.speed {
  position: absolute; height: 3px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.7));
  animation: zip 1.1s linear infinite;
}
.s1 { bottom: 38%; left: -10%; width: 22%; animation-delay: 0s; }
.s2 { bottom: 44%; left: -10%; width: 14%; animation-delay: .35s; }
.s3 { bottom: 32%; left: -10%; width: 18%; animation-delay: .7s; }
@keyframes zip { from { transform: translateX(0); opacity: 0; } 20% { opacity: 1; } to { transform: translateX(110%); opacity: 0; } }

/* floating brand badges */
.badge {
  position: absolute; display: grid; place-items: center;
  background: #fff; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl); border: 1px solid var(--neutral-200);
}
.badge img { display: block; }
.badge-a { width: 84px; height: 84px; left: -18px; top: 8%; transform: rotate(-8deg); animation: hover 5s ease-in-out infinite; }
.badge-a img { width: 52px; }
.badge-b { width: 72px; height: 72px; right: -14px; bottom: 10%; transform: rotate(7deg); animation: hover 6s 1s ease-in-out infinite; }
.badge-b img { width: 44px; }
@keyframes hover { 0%,100% { translate: 0 0; } 50% { translate: 0 -10px; } }

/* ─── Marquee ────────────────────────────────────────────────────────── */
.marquee {
  position: relative; z-index: 1;
  overflow: hidden; white-space: nowrap;
  border-top: 1px solid var(--neutral-200); border-bottom: 1px solid var(--neutral-200);
  background: rgba(255,255,255,.6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  padding: 14px 0;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track { display: inline-flex; animation: marquee 28s linear infinite; }
.marquee span {
  font-family: var(--font-heading); font-weight: var(--fw-black);
  font-size: clamp(22px, 3vw, 34px); letter-spacing: -0.02em; text-transform: uppercase;
  color: transparent; -webkit-text-stroke: 1.5px var(--brand-blue);
  padding-right: .6em;
}
.marquee span:nth-child(even) { -webkit-text-stroke-color: var(--brand-red); }
.marquee em { font-style: normal; -webkit-text-stroke: 0; color: var(--brand-red); padding: 0 .35em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ─── Footer ─────────────────────────────────────────────────────────── */
.foot {
  position: relative; z-index: 1;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
  padding: 18px 16px 22px;
  font-size: var(--fs-sm); color: var(--fg-3);
}
.foot a { color: var(--fg-2); font-weight: var(--fw-semibold); }
.foot a:hover { color: var(--brand-blue); }

/* ─── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 12px; gap: 40px; }
  .chip { margin-left: auto; margin-right: auto; }
  .lead { margin-left: auto; margin-right: auto; }
  .actions { justify-content: center; }
  .art { min-height: 0; max-width: 520px; width: 100%; margin: 0 auto; }
  .scene { transform: none; }
  .badge-a { left: -6px; } .badge-b { right: -6px; }
}
@media (max-width: 520px) {
  .nav { padding: 16px; }
  .brand img { height: 34px; }
  .nav-link-label { display: none; }
  .badge { display: none; }
  h1 { font-size: clamp(44px, 14vw, 60px); }
}
@media (prefers-reduced-motion: reduce) {
  .chip-dot, .ring, .blob, .sun, .road-line, .car, .wheel, .speed, .badge, .marquee-track, h1, .lead, .actions, .art { animation: none; }
}
