/* ============================================================
   TW Projects — V3 bridge for subpages
   Retints the lpage design system to match the V3 main page:
   Hanken Grotesk · night-navy background with brand-blue glows ·
   ambient triangle particles · V3 card + button optics.
   Load LAST, after all lpage stylesheets.
   ============================================================ */

:root {
  --bg-base: #0a101d;
  --bg-elevated: #14224a;
  --bg-overlay: #16264d;
  --line: rgba(191, 224, 255, 0.14);
  --line-2: rgba(191, 224, 255, 0.26);
  --glass: rgba(17, 28, 58, 0.72);
  --glass-2: rgba(15, 24, 50, 0.88);
  --serif: "Hanken Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --sans: "Hanken Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "Hanken Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --text-halo: 0 1px 2px rgba(0, 0, 0, 0.85), 0 2px 18px rgba(0, 0, 0, 0.7);
}

/* ---------- background: V3 night navy + brand-blue glows ---------- */
body.lpage { background: var(--bg-base); font-weight: 300; }
body.lpage::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 95% 70% at 50% 0%, rgba(64, 114, 198, 0.30), transparent 62%),
    radial-gradient(ellipse 70% 55% at 94% 42%, rgba(48, 92, 170, 0.22), transparent 66%),
    radial-gradient(ellipse 82% 60% at 2% 92%, rgba(42, 84, 156, 0.24), transparent 64%),
    linear-gradient(180deg, #0e1526, #0a101d 45%, #0c1322);
}
/* retire the scroll-video machinery wherever it still exists in markup */
.bg-poster, #bg, .bg-canvas, .bg-aurora, .bg-grain, .bg-scrim, .atmo, #scene3d {
  display: none !important;
}
/* ambient triangle canvas (injected by ambient.js) sits above the gradient */
#ambient-tris { position: fixed; inset: 0; z-index: 0; pointer-events: none; }

/* ---------- typography: Dala voice (w400 headlines, no serif accents) ---------- */
h1, h2, h3, h4 { font-weight: 400; letter-spacing: -0.03em; }
.serif, em, h1 em, h2 em, h3 em,
.approach-num, .phase-num,
.case-stat-val, .case-quote p,
.logo-stat-num, .logo-stat-phrase,
.ref-stat-num, .ref-stat-phrase,
.loop-center-num, .footer-tag, .ghost-word {
  font-family: var(--sans) !important; font-style: normal !important;
}
.serif, h1 em, h2 em, h3 em { color: var(--accent-bright); }
/* Hanken runs wider than the old serif — keep stat tiles from overflowing */
.case-stat-val { font-size: clamp(1rem, 1.4vw, 1.28rem); overflow-wrap: break-word; }
.case-stat { overflow: hidden; }
body.lpage p { font-weight: 300; }
strong { font-weight: 400; }

/* ---------- V3 card optics for lpage surfaces ---------- */
.faq-item, .approach-row, .case-quote, .assump, .next-block,
.contact-form, .check-band, .lcta {
  border-color: var(--line);
}

/* glass panels become V3 cards: opaque gradient, crisp border, grid overlay,
   optional animated SVG motif layer (svg.card-art as first child) */
.glass {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, #1e3c69, #14224a 55%, #0d1326);
  -webkit-backdrop-filter: none; backdrop-filter: none;
  border: 1px solid rgba(191, 224, 255, 0.14); border-radius: 24px;
}
.glass::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    linear-gradient(rgba(191,224,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(191,224,255,0.05) 1px, transparent 1px),
    linear-gradient(180deg, transparent 52%, rgba(10,14,26,0.5));
  background-size: 44px 44px, 44px 44px, cover;
}
.glass > * { position: relative; z-index: 3; }
.glass > .card-art {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 1; pointer-events: none; opacity: 0.55;
}

/* --- card-art motifs (same system as the main page) --- */
@keyframes art-spin { to { transform: rotate(360deg); } }
.fan-s {
  fill: #5BA8FF; transform-box: fill-box; transform-origin: 6% 97%;
  animation: 13s ease-in-out infinite alternate;
}
.fan-s1 { opacity: 0.30; animation-name: art-fan1; }
.fan-s2 { opacity: 0.22; animation-name: art-fan2; }
.fan-s3 { opacity: 0.15; animation-name: art-fan3; }
.fan-s4 { opacity: 0.10; animation-name: art-fan4; }
@keyframes art-fan1 { from { transform: rotate(-9deg); }  to { transform: rotate(3deg); } }
@keyframes art-fan2 { from { transform: rotate(-2deg); }  to { transform: rotate(19deg); } }
@keyframes art-fan3 { from { transform: rotate(5deg); }   to { transform: rotate(37deg); } }
@keyframes art-fan4 { from { transform: rotate(12deg); }  to { transform: rotate(56deg); } }
.arcs-g { transform-box: fill-box; transform-origin: center; animation: art-spin 46s linear infinite; }
.arc  { fill: none; stroke: #5BA8FF; stroke-linecap: round; }
.arc1 { stroke-width: 46; stroke-dasharray: 340 175;  opacity: 0.34; }
.arc2 { stroke-width: 42; stroke-dasharray: 700 255;  opacity: 0.25; }
.arc3 { stroke-width: 40; stroke-dasharray: 1000 414; opacity: 0.18; }
.arc4 { stroke-width: 38; stroke-dasharray: 1400 485; opacity: 0.12; }
.dot   { fill: #5BA8FF; animation: 18s ease-in-out infinite alternate; }
.dot-a { opacity: 0.26; animation-name: art-drift-a; animation-duration: 21s; }
.dot-b { opacity: 0.20; animation-name: art-drift-b; animation-duration: 17s; }
.dot-c { opacity: 0.32; animation-name: art-drift-c; animation-duration: 14s; }
.dot-f { opacity: 0.20; animation-name: art-drift-d; animation-duration: 19s; }
@keyframes art-drift-a { to { transform: translate(-110px, 90px); } }
@keyframes art-drift-b { to { transform: translate(90px, -70px); } }
@keyframes art-drift-c { to { transform: translate(-70px, -100px); } }
@keyframes art-drift-d { to { transform: translate(100px, 60px); } }
.leaf-g  { transform-box: fill-box; transform-origin: 50% 100%; animation: art-sway 16s ease-in-out infinite alternate; }
.leaf-g2 { animation-duration: 12s; animation-direction: alternate-reverse; }
.lf  { fill: #5BA8FF; }
.lf1 { opacity: 0.13; } .lf2 { opacity: 0.27; } .lf3 { opacity: 0.20; } .lf4 { opacity: 0.11; }
@keyframes art-sway { from { transform: rotate(-11deg); } to { transform: rotate(12deg); } }
.wave   { fill: #5BA8FF; animation: 22s ease-in-out infinite alternate; }
.wave-1 { opacity: 0.24; animation-name: art-wave-a; }
.wave-2 { opacity: 0.13; animation-name: art-wave-b; animation-duration: 28s; }
@keyframes art-wave-a { from { transform: translate(-80px, 8px); }  to { transform: translate(70px, -18px); } }
@keyframes art-wave-b { from { transform: translate(60px, -6px); }  to { transform: translate(-70px, 14px); } }
.blob-spin    { transform-box: fill-box; transform-origin: center; animation: art-spin 74s linear infinite; }
.blob-breathe { transform-box: fill-box; transform-origin: center; animation: art-breathe 11s ease-in-out infinite alternate; }
.blob-p { fill: #5BA8FF; opacity: 0.22; }
@keyframes art-breathe { from { transform: scale(0.94); } to { transform: scale(1.14); } }
@media (prefers-reduced-motion: reduce) { .card-art * { animation: none !important; } }

/* Versprechen box (angebot): headline on top, points side by side —
   fills the card instead of squeezing the list into a narrow column */
.offer-guarantee { display: block; }
.offer-guarantee .og-points {
  margin-top: 30px; grid-template-columns: repeat(3, 1fr); gap: 28px;
}
@media (max-width: 900px) { .offer-guarantee .og-points { grid-template-columns: 1fr; } }

/* ---------- buttons: V3 pill ---------- */
.btn-primary, .btn.btn-primary {
  background: var(--accent); color: #04122e; border: none; border-radius: 100px;
}
.btn-primary:hover { background: var(--accent-bright); }

::selection { background: var(--accent); color: #fff; }
