/* Trip Light RGB effects, shared by the start page and the order form.
   Everything that moves animates only transform/opacity (no blur filters),
   so it stays smooth on phones. Off with prefers-reduced-motion. */

:root {
  --fx-rgb: conic-gradient(from 0deg, #ff3b5c, #ff9f3b, #f5f23b, #3bff7a, #3bf0ff, #3b7bff, #a93bff, #ff3bd7, #ff3b5c);
  --fx-line: linear-gradient(90deg, #ff3b5c, #ff9f3b, #f5f23b, #3bff7a, #3bf0ff, #3b7bff, #a93bff, #ff3bd7, #ff3b5c);
  --fx-a1: rgba(168, 85, 247, .30);
  --fx-a2: rgba(56, 189, 248, .26);
  --fx-a3: rgba(74, 222, 128, .22);
}

/* drifting coloured light behind everything */
.fx-aurora { position: fixed; inset: 0; z-index: -2; pointer-events: none; overflow: hidden; }
.fx-aurora i {
  position: absolute; width: 70vmax; height: 70vmax; border-radius: 50%;
  will-change: transform; transition: background 1.2s ease;
}
.fx-aurora i:nth-child(1) { left: -25vmax; top: -20vmax; background: radial-gradient(circle, var(--fx-a1), transparent 62%); animation: fx-drift1 26s ease-in-out infinite alternate; }
.fx-aurora i:nth-child(2) { right: -30vmax; top: 20vh; background: radial-gradient(circle, var(--fx-a2), transparent 62%); animation: fx-drift2 32s ease-in-out infinite alternate; }
.fx-aurora i:nth-child(3) { left: 10vw; bottom: -40vmax; background: radial-gradient(circle, var(--fx-a3), transparent 62%); animation: fx-drift3 29s ease-in-out infinite alternate; }
@keyframes fx-drift1 { to { transform: translate(28vw, 30vh) scale(1.15); } }
@keyframes fx-drift2 { to { transform: translate(-32vw, 25vh) scale(.9); } }
@keyframes fx-drift3 { to { transform: translate(30vw, -35vh) scale(1.1); } }

/* rainbow scroll progress along the top */
.fx-progress {
  position: fixed; left: 0; top: 0; z-index: 100; height: 3px; width: 100%;
  background: var(--fx-line); transform-origin: 0 50%; transform: scaleX(0);
  box-shadow: 0 0 12px rgba(255, 255, 255, .35); pointer-events: none;
}

/* spinning RGB border (a span the script adds to cards) */
.fx-ring {
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none; overflow: hidden; z-index: 2;
  padding: 1.5px;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .35s ease;
}
.fx-ring::before {
  content: ''; position: absolute; left: 50%; top: 50%; width: var(--fx-d, 600px); height: var(--fx-d, 600px);
  margin: calc(var(--fx-d, 600px) / -2) 0 0 calc(var(--fx-d, 600px) / -2);
  background: var(--fx-rgb); animation: fx-spin 5s linear infinite; will-change: transform;
}
.fx-ring.always { opacity: .95; }
.fx-hover:hover > .fx-ring, .fx-hover:focus-within > .fx-ring { opacity: 1; }
@keyframes fx-spin { to { transform: rotate(1turn); } }

/* soft light that follows the pointer over a card */
.fx-spot {
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 1;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .07), transparent 60%);
  opacity: 0; transition: opacity .3s ease; mix-blend-mode: screen;
}
.fx-hover:hover > .fx-spot { opacity: 1; }

/* hover glow under photos */
.gallery .shot.fx-hover:hover, .app-shots .screen.fx-hover:hover { box-shadow: 0 18px 50px -18px rgba(168, 85, 247, .7), 0 10px 40px -20px rgba(56, 189, 248, .7); }

/* rainbow bar under headings */
.fx-under::after {
  content: ''; display: block; width: 72px; height: 4px; border-radius: 4px; margin-top: 14px;
  background: var(--fx-line); background-size: 200% 100%; animation: fx-slide 4s linear infinite;
}
@keyframes fx-slide { to { background-position: 200% 0; } }

/* primary buttons light up in RGB on hover */
.btn.primary, .btn-submit:not([disabled]), .nav-cta { position: relative; isolation: isolate; }
.btn.primary::after, .btn-submit:not([disabled])::after, .nav-cta::after {
  content: ''; position: absolute; inset: -2px; border-radius: inherit; z-index: -1;
  background: var(--fx-line); background-size: 200% 100%; animation: fx-slide 2.5s linear infinite;
  opacity: 0; transition: opacity .3s ease;
}
.btn.primary:hover::after, .btn-submit:not([disabled]):hover::after, .nav-cta:hover::after { opacity: 1; }

/* animated rainbow line on the footer */
footer, .foot { position: relative; border-top-color: transparent !important; }
footer::before, .foot::before {
  content: ''; position: absolute; left: 0; right: 0; top: -1px; height: 1px;
  background: var(--fx-line); background-size: 200% 100%; animation: fx-slide 8s linear infinite; opacity: .7;
}

/* "try a colour" for the hero photo */
.fx-picker { margin-top: 26px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.fx-picker > span { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #9aa3b5; margin-right: 4px; }
.fx-picker button {
  width: 30px; height: 30px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .25); cursor: pointer; padding: 0;
  background: var(--c); box-shadow: 0 0 14px -2px var(--c); transition: transform .15s, border-color .2s;
}
.fx-picker button:hover { transform: scale(1.15); }
.fx-picker button[aria-pressed="true"] { border-color: #fff; transform: scale(1.12); }
.fx-picker button.rgb { background: var(--fx-rgb); box-shadow: 0 0 14px -2px #e879f9; }
.fx-picker button:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.hero-bg img { transition: filter .8s ease; }

@media (prefers-reduced-motion: reduce) {
  .fx-aurora i, .fx-ring::before, .fx-under::after, footer::before, .foot::before,
  .btn.primary::after, .btn-submit::after, .nav-cta::after { animation: none !important; }
}

/* let the hero photo fade into the glowing background instead of a hard edge */
.hero-bg { -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent 100%); mask-image: linear-gradient(to bottom, #000 62%, transparent 100%); }
.hero-bg::after { background: linear-gradient(90deg, rgba(13, 15, 23, .92) 0%, rgba(13, 15, 23, .55) 45%, rgba(13, 15, 23, .1) 75%) !important; }
@media (max-width: 640px) {
  .hero-bg::after { background: linear-gradient(0deg, rgba(13, 15, 23, .85) 10%, rgba(13, 15, 23, .55) 55%, rgba(13, 15, 23, .2)) !important; }
}

/* ---- live lamp demo (fx/tldemo.js) ---- */
.try-link { display: inline-flex; align-items: center; gap: 9px; margin-top: 18px; font-weight: 700; text-decoration: none; color: var(--text, #eef1f7); }
.try-link:hover { color: #fff; }
.try-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--fx-rgb); box-shadow: 0 0 12px rgba(232, 121, 249, .8); animation: fx-spin 3s linear infinite; }
.tl-demo { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 28px; align-items: stretch; }
.tl-stage {
  position: relative; min-height: 460px; border-radius: 22px; overflow: hidden;
  background: radial-gradient(ellipse at 50% 100%, #1b1f2e, #0b0d14 70%); border: 1px solid #252a3a;
  display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px 16px 18px;
}
.tl-glow {
  position: absolute; left: 50%; bottom: 8%; width: 110%; height: 75%; transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(ellipse at 50% 70%, var(--tl-c, transparent), transparent 62%); opacity: .55; transition: background .25s linear;
}
.tl-lamp { position: relative; width: min(100%, 230px); aspect-ratio: 254 / 474; }
.tl-lamp svg { width: 100%; height: 100%; display: block; }
.tl-now { position: relative; margin-top: 14px; font-weight: 700; letter-spacing: .02em; min-height: 1.4em; }
.tl-fallback { display: none; position: relative; color: #9aa3b5; text-align: center; max-width: 26ch; }
.tl-nowasm .tl-fallback { display: block; }
.tl-nowasm .tl-lamp, .tl-nowasm .tl-panel { display: none; }
.tl-loading .tl-lamp::after {
  content: ''; position: absolute; left: 50%; top: 40%; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, .15); border-top-color: #38bdf8; animation: fx-spin .9s linear infinite;
}
.tl-panel { background: #151824; border: 1px solid #252a3a; border-radius: 22px; padding: 24px; }
.tl-panel h3 { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #38bdf8; margin: 0 0 12px; }
.tl-panel h3 + .tl-controls { margin-top: 0; }
.tl-presets { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.tl-chip {
  border: 1px solid #2f3547; background: #1c2030; color: #eef1f7; font: inherit; font-size: .9rem; font-weight: 600;
  padding: 8px 14px; border-radius: 999px; cursor: pointer; transition: border-color .2s, background .2s, transform .15s;
}
.tl-chip:hover { border-color: #e879f9; transform: translateY(-1px); }
.tl-chip[aria-pressed="true"] { border-color: #38bdf8; background: linear-gradient(135deg, rgba(56, 189, 248, .25), rgba(168, 85, 247, .2)); }
.tl-chip:focus-visible, .tl-controls select:focus-visible, .tl-controls input:focus-visible { outline: 3px solid #38bdf8; outline-offset: 2px; }
.tl-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.tl-controls label { display: flex; flex-direction: column; gap: 6px; font-size: .85rem; font-weight: 600; color: #b4bccb; }
.tl-controls select {
  font: inherit; font-size: .95rem; color: #eef1f7; background: #0f121b; border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 10px; padding: 9px 10px;
}
.tl-controls input[type="color"] { width: 100%; height: 40px; border: 1px solid rgba(255, 255, 255, .24); border-radius: 10px; background: #0f121b; padding: 3px; cursor: pointer; }
.tl-controls input[type="range"] { accent-color: #38bdf8; width: 100%; }
.tl-note { margin-top: 18px; font-size: .85rem; color: #9aa3b5; }
@media (max-width: 860px) {
  .tl-demo { grid-template-columns: 1fr; }
  .tl-stage { min-height: 380px; }
  .tl-lamp { width: min(60%, 200px); }
}
@media (max-width: 480px) { .tl-controls { grid-template-columns: 1fr; } }
.section-head .eyebrow { color: #38bdf8; margin: 0 0 10px; font-size: .8rem; }

/* ---- camping band ---- */
.camp { position: relative; isolation: isolate; margin-top: 90px; min-height: 640px; overflow: hidden; display: flex; align-items: center; scroll-margin-top: 60px; }
.camp-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 70%; z-index: -2; }
.camp::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, var(--bg, #0d0f17) 0%, rgba(13, 15, 23, .25) 18%, rgba(13, 15, 23, .2) 60%, var(--bg, #0d0f17) 100%),
              linear-gradient(90deg, rgba(13, 15, 23, .82) 0%, rgba(13, 15, 23, .35) 55%, rgba(13, 15, 23, 0) 80%);
}
.camp-inner { max-width: 1120px; width: 100%; margin: 0 auto; padding: 90px 24px; }
.camp-text { max-width: 34rem; }
.camp-text .eyebrow { color: #fbbf24; margin: 0 0 12px; font-size: .8rem; }
.camp-text p:not(.eyebrow) { margin-top: 14px; color: #d3d9e4; font-size: 1.08rem; }
.camp-points { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 44px; }
.camp-point { background: rgba(13, 15, 23, .62); border: 1px solid rgba(255, 255, 255, .1); border-radius: 16px; padding: 18px; }
.camp-point h3 { font-size: 1rem; }
.camp-point p { margin-top: 6px; color: #b4bccb; font-size: .9rem; }
@media (max-width: 900px) { .camp-points { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) {
  .camp { min-height: 0; margin-top: 60px; }
  .camp-inner { padding: 70px 16px 60px; }
  .camp::before { background: linear-gradient(180deg, var(--bg, #0d0f17) 0%, rgba(13, 15, 23, .55) 20%, rgba(13, 15, 23, .7) 70%, var(--bg, #0d0f17) 100%); }
  .camp-points { grid-template-columns: 1fr; }
}
/* camping v2: tent visible on the right, soft fades instead of hard edges */
.camp { min-height: 720px; }
.camp-bg { object-position: 50% 100%; -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 16%, #000 84%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0%, #000 16%, #000 84%, transparent 100%); }
.camp::before { background: linear-gradient(90deg, rgba(13, 15, 23, .8) 0%, rgba(13, 15, 23, .45) 38%, rgba(13, 15, 23, 0) 58%); }
.camp-text, .camp-points { max-width: 560px; }
.camp-points { grid-template-columns: 1fr 1fr; margin-top: 32px; }
@media (max-width: 900px) {
  .camp { min-height: 0; }
  .camp-bg { object-position: 62% 100%; }
  .camp-inner { padding-bottom: 300px; }
  .camp::before { background: linear-gradient(180deg, rgba(13, 15, 23, .55) 0%, rgba(13, 15, 23, .55) 55%, rgba(13, 15, 23, 0) 80%); }
  .camp-text, .camp-points { max-width: none; }
}
@media (max-width: 560px) { .camp-points { grid-template-columns: 1fr; } .camp-inner { padding-bottom: 220px; } }
.camp::before { -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 16%, #000 84%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0%, #000 16%, #000 84%, transparent 100%); }

/* ---- 3D lamp (fx/tl3d.js) ---- */
.tl-3d .tl-stage { min-height: 520px; padding: 0; }
.tl-3d .tl-lamp { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; cursor: grab; }
.tl-3d .tl-lamp:active { cursor: grabbing; }
.tl-3d .tl-lamp canvas { display: block; }
.tl-3d .tl-now { position: absolute; left: 0; right: 0; bottom: 14px; text-align: center; pointer-events: none; margin: 0; }
.tl-3d .tl-glow { bottom: 0; height: 60%; opacity: .35; }
.tl-shade { display: none; }
.tl-3d .tl-shade { display: flex; position: absolute; top: 14px; left: 14px; z-index: 2; gap: 6px; background: rgba(13, 15, 23, .6); border: 1px solid #2f3547; border-radius: 999px; padding: 4px; }
.tl-shade button { border: 0; background: none; color: #b4bccb; font: inherit; font-size: .85rem; font-weight: 700; padding: 6px 14px; border-radius: 999px; cursor: pointer; }
.tl-shade button[aria-pressed="true"] { background: #38bdf8; color: #0d0f17; }
.tl-shade button:focus-visible { outline: 3px solid #38bdf8; outline-offset: 2px; }
.tl-hint { display: none; }
.tl-3d .tl-hint { display: block; position: absolute; top: 18px; right: 16px; margin: 0; font-size: .8rem; color: #7d8699; pointer-events: none; }
@media (max-width: 860px) { .tl-3d .tl-stage { min-height: 440px; } }
