/* ============================================================
   WII EVENT — Website Wireframe (mid-fi, on-brand)
   Custom layer on top of the Wii Event Design System tokens.
   Owns: layout shell, dynamic-artifact placeholder zones,
   animated background system, wireframe annotations.
   ============================================================ */

:root {
  /* Tweakable accent — defaults to Voltage. Overridden by the Tweaks panel. */
  --wf-accent: var(--voltage-500);
  --wf-accent-600: var(--voltage-600);
  --wf-accent-soft: rgba(84, 102, 255, 0.16);
  --wf-accent-glow: rgba(84, 102, 255, 0.45);

  /* Animation intensity multiplier (0.4 calm .. 1.6 energetic). */
  --wf-speed: 1;
  --wf-motion: 1;        /* opacity multiplier for moving artifacts */

  --wf-marker-rgb: 84, 102, 255;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; background: var(--ink-900); }
body { font-family: var(--font-body); color: var(--text-body); overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; }
::selection { background: var(--wf-accent); color: #fff; }

/* ---- Layout primitives ------------------------------------ */
.wf-section { position: relative; padding: var(--section-pad-y) var(--section-pad-x); overflow: hidden; }
.wf-wrap { max-width: var(--content-max); margin: 0 auto; position: relative; z-index: 2; }
.wf-narrow { max-width: var(--content-narrow); margin: 0 auto; }

.wf-light { background: var(--neutral-100); }
.wf-light-alt { background: var(--neutral-050); }
.wf-dark { background: var(--ink-900); }
.wf-dark-700 { background: var(--ink-800); }

/* Section eyebrow row used as a wireframe index label */
.wf-index {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--text-muted);
}
.wf-index .num {
  color: var(--wf-accent); font-weight: 700;
}
.wf-index .bar { width: 26px; height: 1px; background: currentColor; opacity: 0.5; }

.wf-eyebrow {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--text-muted);
}

/* Diamond-separated service lists — brand motif */
.wf-diamonds { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 12px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }
.wf-diamonds .d { color: var(--wf-accent); }

.wf-grid { display: grid; gap: 24px; }
.wf-stack { display: flex; flex-direction: column; }

/* ---- Buttons (lightweight, where DS Button not used) ------- */
.wf-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 26px; border-radius: var(--radius-pill);
  font-weight: 700; font-size: 15px; letter-spacing: 0.01em; cursor: pointer;
  border: 1px solid transparent; white-space: nowrap;
  transition: transform var(--dur-base) var(--ease-out), background var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.wf-btn:hover { transform: translateY(-3px); }
.wf-btn:active { transform: scale(0.97); }
.wf-btn--accent { background: var(--wf-accent); color: #fff; box-shadow: 0 8px 30px var(--wf-accent-glow); }
.wf-btn--accent:hover { background: var(--wf-accent-600); }
.wf-btn--ink { background: var(--ink-900); color: var(--neutral-100); }
.wf-btn--white { background: #fff; color: var(--ink-900); }
.wf-btn--ghost-light { background: rgba(255,255,255,0.08); color: #fff; border-color: rgba(255,255,255,0.22); backdrop-filter: blur(8px); }
.wf-btn--ghost-light:hover { background: rgba(255,255,255,0.16); }
.wf-btn--outline-dark { background: transparent; color: var(--ink-900); border-color: var(--ink-900); }

/* ============================================================
   DYNAMIC ARTIFACT / VIDEO PLACEHOLDER ZONES
   Every replaceable media area uses .wf-zone. Markers can be
   toggled off via the Tweaks panel (body[data-markers="off"]).
   ============================================================ */
.wf-zone {
  position: relative; overflow: hidden; border-radius: var(--radius-xl);
  background: var(--ink-800);
  isolation: isolate;
}
.wf-zone--flat { border-radius: 0; }

/* Dashed marker outline + corner tag — the "this is a placeholder" affordance */
.wf-zone::after {
  content: "";
  position: absolute; inset: 7px; z-index: 6; pointer-events: none;
  border: 1.5px dashed rgba(var(--wf-marker-rgb), 0.55);
  border-radius: calc(var(--radius-xl) - 7px);
  transition: opacity var(--dur-base) var(--ease-out);
}
.wf-zone--flat::after { border-radius: 4px; }
body[data-markers="off"] .wf-zone::after { opacity: 0; }

.wf-zone-tag {
  position: absolute; top: 14px; left: 14px; z-index: 7;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 10px; border-radius: var(--radius-pill);
  background: rgba(11,11,13,0.62); backdrop-filter: blur(8px);
  border: 1px solid rgba(var(--wf-marker-rgb), 0.5);
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em;
  text-transform: uppercase; color: #fff;
  transition: opacity var(--dur-base) var(--ease-out);
}
.wf-zone-tag .dot { width: 6px; height: 6px; border-radius: 999px; background: var(--wf-accent); box-shadow: 0 0 8px var(--wf-accent); animation: wf-pulse calc(1.6s / var(--wf-speed)) ease-in-out infinite; }
.wf-zone-tag .diamond { color: var(--wf-accent); }
body[data-markers="off"] .wf-zone-tag { opacity: 0; }

/* Centred play / loop affordance for video zones */
.wf-zone-play {
  position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 12px; pointer-events: none;
  color: rgba(255,255,255,0.92);
}
.wf-zone-play .ring {
  width: 64px; height: 64px; border-radius: 999px;
  display: grid; place-items: center;
  background: rgba(255,255,255,0.10); backdrop-filter: blur(6px);
  border: 1.5px solid rgba(255,255,255,0.5);
  box-shadow: 0 0 0 0 var(--wf-accent-glow);
  animation: wf-ring calc(2.4s / var(--wf-speed)) ease-out infinite;
}
.wf-zone-play .ring svg { width: 22px; height: 22px; margin-left: 3px; }
.wf-zone-play .cap {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.14em;
  text-transform: uppercase; color: rgba(255,255,255,0.66);
}
body[data-markers="off"] .wf-zone-play .cap { opacity: 0; }

/* Loop / runtime chip bottom-right */
.wf-zone-meta {
  position: absolute; right: 14px; bottom: 14px; z-index: 7;
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em;
  text-transform: uppercase; color: rgba(255,255,255,0.7);
  padding: 4px 9px; border-radius: var(--radius-pill);
  background: rgba(11,11,13,0.5); backdrop-filter: blur(6px);
  transition: opacity var(--dur-base) var(--ease-out);
}
body[data-markers="off"] .wf-zone-meta { opacity: 0; }

@keyframes wf-pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.25; } }
@keyframes wf-ring {
  0% { box-shadow: 0 0 0 0 var(--wf-accent-glow); }
  70% { box-shadow: 0 0 0 18px rgba(84,102,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(84,102,255,0); }
}

/* ============================================================
   ANIMATED BACKGROUND ENGINE (CSS-only stand-ins for video)
   variants: beams | mesh | shapes | led | footage
   All layers sit behind content; opacity scales with --wf-motion.
   ============================================================ */
.wf-art { position: absolute; inset: 0; z-index: 0; pointer-events: none; }

/* MESH / AURORA — drifting radial blobs */
.wf-art--mesh::before, .wf-art--mesh::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(60px);
  opacity: calc(0.6 * var(--wf-motion));
}
.wf-art--mesh::before {
  width: 55%; height: 70%; left: -10%; top: -20%;
  background: radial-gradient(circle, var(--wf-accent) 0%, transparent 65%);
  animation: wf-drift-a calc(18s / var(--wf-speed)) var(--ease-in-out) infinite alternate;
}
.wf-art--mesh::after {
  width: 60%; height: 75%; right: -15%; bottom: -25%;
  background: radial-gradient(circle, var(--pulse-500) 0%, transparent 65%);
  animation: wf-drift-b calc(22s / var(--wf-speed)) var(--ease-in-out) infinite alternate;
}
@keyframes wf-drift-a { 0% { transform: translate(0,0) scale(1); } 100% { transform: translate(28%, 22%) scale(1.25); } }
@keyframes wf-drift-b { 0% { transform: translate(0,0) scale(1.1); } 100% { transform: translate(-24%, -18%) scale(1); } }

/* BEAMS — sweeping stage-light shafts */
.wf-art--beams { background:
  radial-gradient(120% 90% at 50% -10%, var(--wf-accent-soft) 0%, transparent 55%); }
.wf-art--beams .beam {
  position: absolute; top: -30%; left: var(--x, 50%); width: 14%; height: 160%;
  background: linear-gradient(180deg, rgba(255,255,255,0.0) 0%, var(--beam-c, rgba(124,138,255,0.5)) 45%, rgba(255,255,255,0) 100%);
  filter: blur(14px); transform-origin: top center;
  opacity: calc(0.55 * var(--wf-motion));
  animation: wf-sweep calc(9s / var(--wf-speed)) var(--ease-in-out) infinite alternate;
}
@keyframes wf-sweep { 0% { transform: rotate(-14deg) scaleY(0.9); opacity: calc(0.2 * var(--wf-motion)); } 50% { opacity: calc(0.7 * var(--wf-motion)); } 100% { transform: rotate(14deg) scaleY(1.1); opacity: calc(0.3 * var(--wf-motion)); } }

/* SHAPES — floating geometry */
.wf-art--shapes .shape {
  position: absolute; opacity: calc(0.5 * var(--wf-motion));
  border: 1.5px solid rgba(255,255,255,0.16);
  animation: wf-float calc(14s / var(--wf-speed)) var(--ease-in-out) infinite alternate;
}
.wf-art--shapes .shape.fill { background: var(--wf-accent-soft); border-color: transparent; }
@keyframes wf-float { 0% { transform: translateY(0) rotate(0deg); } 100% { transform: translateY(-32px) rotate(40deg); } }

/* LED — pixel grid shimmer */
.wf-art--led {
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 26px 26px;
}
.wf-art--led::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 50% at 50% 50%, var(--wf-accent-soft), transparent 70%);
  opacity: calc(0.9 * var(--wf-motion));
  animation: wf-led calc(6s / var(--wf-speed)) ease-in-out infinite;
}
@keyframes wf-led { 0%,100% { opacity: calc(0.35 * var(--wf-motion)); transform: scale(1); } 50% { opacity: calc(0.9 * var(--wf-motion)); transform: scale(1.15); } }

/* FOOTAGE — blurred real event photo standing in for live video */
.wf-art--footage img {
  position: absolute; inset: -8%; width: 116%; height: 116%; object-fit: cover;
  filter: blur(3px) saturate(1.15) brightness(0.62);
  transform: scale(1.05);
  animation: wf-kenburns calc(26s / var(--wf-speed)) var(--ease-in-out) infinite alternate;
}
.wf-art--footage::after { content: ""; position: absolute; inset: 0; background: var(--grad-ink-fade); }
@keyframes wf-kenburns { 0% { transform: scale(1.05) translate(0,0); } 100% { transform: scale(1.16) translate(-2%, -2%); } }

/* Moving spotlight that follows nothing in particular — ambient */
.wf-spot { position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(40% 50% at var(--mx, 50%) var(--my, 30%), var(--wf-accent-soft), transparent 60%);
  opacity: calc(0.8 * var(--wf-motion)); transition: background 0.2s linear; }

/* Film-grain overlay */
.wf-grain { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: calc(0.06 * var(--wf-motion));
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay; }

/* ============================================================
   CINEMATIC MEDIA (hi-fi real imagery, video-swap-ready)
   ============================================================ */
.cine { position: relative; overflow: hidden; background: var(--ink-800); isolation: isolate; }
.cine-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease-out), filter var(--dur-slow) var(--ease-out); will-change: transform; z-index: 0; }
.cine.kb .cine-img { animation: wf-hero-kb calc(42s / var(--wf-speed)) var(--ease-in-out) infinite alternate; }
.cine.hoverable .cine-img { filter: saturate(1.04) brightness(0.92); }
.cine.hoverable:hover .cine-img { transform: scale(1.07); filter: saturate(1.12) brightness(1); }
.cine-fade { position: absolute; inset: 0; z-index: 1; background: var(--grad-ink-fade); }
.cine-fade.strong { background: linear-gradient(0deg, rgba(11,11,13,0.96) 0%, rgba(11,11,13,0.45) 38%, rgba(11,11,13,0.08) 70%); }
.cine-fade.side { background: linear-gradient(80deg, rgba(11,11,13,0.85) 0%, rgba(11,11,13,0.25) 55%, transparent 100%); }
.cine-tint { position: absolute; inset: 0; z-index: 1; background: radial-gradient(70% 60% at 82% 8%, var(--wf-accent-soft), transparent 58%); mix-blend-mode: screen; opacity: calc(0.85 * var(--wf-motion)); }
.cine-reel { position: absolute; top: 13px; left: 13px; z-index: 6; display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px; border-radius: var(--radius-pill); background: rgba(11,11,13,0.5); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,0.16); font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.82); transition: opacity var(--dur-base) var(--ease-out); }
.cine-reel .rec { width: 6px; height: 6px; border-radius: 999px; background: var(--pulse-500); box-shadow: 0 0 8px var(--pulse-500); animation: wf-pulse calc(1.6s / var(--wf-speed)) ease-in-out infinite; }
body[data-markers="off"] .cine-reel { opacity: 0; }
.cine-content { position: absolute; inset: 0; z-index: 3; }
@media (prefers-reduced-motion: reduce) { .cine.kb .cine-img { animation: none; } }

/* Light-streak section divider */
.wf-streak { position: relative; height: 1px; background: linear-gradient(90deg, transparent, rgba(var(--wf-marker-rgb),0.5), transparent); }

/* ============================================================
   HI-FI HERO
   ============================================================ */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; padding: 132px clamp(20px,5vw,80px) 40px; overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: 0; overflow: hidden; background: #000; }
.hero-media img, .hero-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-media .kb { transform-origin: 60% 40%; animation: wf-hero-kb calc(34s / var(--wf-speed)) var(--ease-in-out) infinite alternate; will-change: transform; }
@keyframes wf-hero-kb { 0% { transform: scale(1.04); } 100% { transform: scale(1.16) translate(-2%, -1.5%); } }

/* legibility + cinematic light grading */
.hero-grade { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hero-grade.g-side { background: linear-gradient(95deg, rgba(11,11,13,0.94) 0%, rgba(11,11,13,0.66) 38%, rgba(11,11,13,0.18) 70%, rgba(11,11,13,0.46) 100%); }
.hero-grade.g-base { background: linear-gradient(0deg, rgba(11,11,13,0.98) 2%, rgba(11,11,13,0.55) 26%, rgba(11,11,13,0) 52%); }
.hero-grade.g-spot { background: var(--grad-spotlight); opacity: calc(0.9 * var(--wf-motion)); mix-blend-mode: screen; }
.hero-grade.g-tint { background: radial-gradient(80% 60% at 85% 25%, var(--wf-accent-soft), transparent 60%); mix-blend-mode: screen; opacity: calc(0.9 * var(--wf-motion)); }

/* refined "live reel" affordance (swap for real video) */
.hero-reel { position: absolute; top: 104px; left: clamp(20px,5vw,80px); z-index: 6; display: inline-flex; align-items: center; gap: 9px; padding: 7px 13px; border-radius: var(--radius-pill); background: rgba(11,11,13,0.5); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.16); font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.86); transition: opacity var(--dur-base) var(--ease-out); }
.hero-reel .rec { width: 8px; height: 8px; border-radius: 999px; background: var(--pulse-500); box-shadow: 0 0 10px var(--pulse-500); animation: wf-pulse calc(1.5s / var(--wf-speed)) ease-in-out infinite; }
.hero-reel .tc { color: rgba(255,255,255,0.5); }
body[data-markers="off"] .hero-reel { opacity: 0; }

/* vertical side label */
.hero-vrail { position: absolute; right: clamp(16px,3vw,40px); top: 50%; transform: translateY(-50%) rotate(180deg); writing-mode: vertical-rl; z-index: 4; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: rgba(255,255,255,0.42); display: flex; align-items: center; gap: 16px; }
.hero-vrail::after { content: ""; height: 60px; width: 1px; background: linear-gradient(rgba(255,255,255,0.4), transparent); }

/* service card rail */
.hero-rail { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.hero-scard { position: relative; padding: 20px; display: flex; flex-direction: column; gap: 14px; cursor: pointer; border-radius: var(--radius-xl); overflow: hidden; background: rgba(20,20,25,0.42); border: 1px solid rgba(255,255,255,0.12); backdrop-filter: blur(18px); transition: transform var(--dur-base) var(--ease-out), background var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out); }
.hero-scard:hover { transform: translateY(-5px); background: rgba(28,28,34,0.62); border-color: rgba(var(--wf-marker-rgb),0.5); }
.hero-scard .num { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; color: rgba(255,255,255,0.4); }
.hero-scard .ico { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; color: #fff; background: linear-gradient(140deg, var(--wf-accent-soft), rgba(255,255,255,0.04)); border: 1px solid rgba(255,255,255,0.16); transition: background var(--dur-base) var(--ease-out); }
.hero-scard:hover .ico { background: var(--grad-stage); border-color: transparent; }
.hero-scard .arr { width: 32px; height: 32px; border-radius: 999px; display: grid; place-items: center; color: #fff; background: rgba(255,255,255,0.08); transition: background var(--dur-base) var(--ease-out); }
.hero-scard:hover .arr { background: var(--wf-accent); }

/* trust strip */
.hero-trust { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.hero-trust .stat { display: flex; align-items: baseline; gap: 8px; }
.hero-trust .stat b { font-family: var(--font-display); font-weight: 900; font-size: 22px; color: #fff; }
.hero-trust .stat span { font-size: 13px; color: rgba(255,255,255,0.6); }
.hero-trust .sep { color: var(--wf-accent); }

@media (max-width: 1080px) { .hero-vrail { display: none; } }
@media (max-width: 860px) {
  .hero-rail { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .hero-rail { grid-template-columns: 1fr 1fr; }
  .hero-scard { padding: 15px; gap: 10px; }
  .hero-scard .desc { display: none; }
}
@media (prefers-reduced-motion: reduce) { .hero-media .kb { animation: none; } }

/* ---- Wii Agent chat animations ---------------------------- */
@keyframes wf-typing { 0%,60%,100% { transform: translateY(0); opacity: 0.5; } 30% { transform: translateY(-5px); opacity: 1; } }
@keyframes wf-bubble-in { 0% { opacity: 0; transform: translateY(12px) scale(0.97); } 100% { opacity: 1; transform: none; } }
@keyframes wf-card-slide { 0% { opacity: 0; transform: translateX(16px); } 100% { opacity: 1; transform: none; } }
@keyframes wf-glow { 0%,100% { opacity: 0.35; } 50% { opacity: 0.6; } }
@media (max-width: 900px) {
  .wf-agent-grid { grid-template-columns: 1fr !important; }
}
@media (prefers-reduced-motion: reduce) {
  .wf-zone-tag .dot, [style*="wf-glow"], [style*="wf-typing"] { animation: none !important; }
}

/* ---- Cards / surfaces ------------------------------------- */
.wf-card { background: var(--surface-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-xl); box-shadow: var(--shadow-sm); }
.wf-card-dark { background: var(--ink-600); border: 1px solid var(--border-on-dark); border-radius: var(--radius-xl); }
.wf-glass { background: rgba(28,28,34,0.55); border: 1px solid rgba(255,255,255,0.10); backdrop-filter: blur(16px); border-radius: var(--radius-xl); }

/* Float-in on scroll */
.wf-reveal { opacity: 0; transform: translateY(26px); transition: opacity var(--dur-reveal) var(--ease-out), transform var(--dur-reveal) var(--ease-out); }
.wf-reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .wf-reveal { opacity: 1; transform: none; transition: none; }
  .wf-art *, .wf-art::before, .wf-art::after, .wf-zone-play .ring, .wf-zone-tag .dot { animation: none !important; }
}

/* ---- Headings helper ------------------------------------- */
.wf-title { font-family: var(--font-display); font-weight: 900; text-transform: uppercase; letter-spacing: -0.02em; line-height: 0.96; color: var(--text-strong); margin: 0; }
.wf-kicker { color: var(--wf-accent); }
.wf-sub { font-size: var(--fs-lead); line-height: 1.5; color: var(--text-muted); margin: 0; max-width: 56ch; text-wrap: pretty; }
.wf-dark .wf-sub, .wf-dark-700 .wf-sub { color: var(--text-on-dark-muted); }
.wf-dark .wf-title, .wf-dark-700 .wf-title { color: #fff; }
.wf-dark .wf-eyebrow, .wf-dark-700 .wf-eyebrow, .wf-dark .wf-index, .wf-dark-700 .wf-index { color: var(--text-on-dark-muted); }

/* ---- Responsive ------------------------------------------ */
.wf-cols-2 { grid-template-columns: repeat(2, 1fr); }
.wf-cols-3 { grid-template-columns: repeat(3, 1fr); }
.wf-cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1024px) {
  .wf-cols-3, .wf-cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .wf-cols-2, .wf-cols-3, .wf-cols-4 { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .wf-3d-grid { grid-template-columns: 1fr !important; }
  .wf-events-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .wf-event-cell { grid-column: span 1 !important; }
  .wf-how-line { display: none; }
  .wf-how-line + .wf-grid, .wf-section .wf-grid[style*="repeat(5"] { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 560px) {
  .wf-events-grid { grid-template-columns: 1fr !important; }
}

/* Hide desktop nav links on small screens, show burger */
@media (max-width: 1080px) {
  .wf-nav-links { display: none !important; }
  .wf-nav-burger { display: inline-flex !important; }
}
@media (max-width: 900px) {
  .wf-supplier-grid, .wf-footer-grid { grid-template-columns: 1fr 1fr !important; }
  .wf-config-grid { grid-template-columns: 1fr !important; }
  .wf-footer-grid > div:first-child { grid-column: 1 / -1; }
  .wf-featured-grid { grid-template-columns: repeat(2, 1fr) !important; grid-auto-rows: 200px !important; }
  .wf-feat.big, .wf-feat.wide { grid-column: span 2 !important; }
  .wf-feat.big { grid-row: span 1 !important; }
}
@media (max-width: 560px) {
  .wf-supplier-grid { grid-template-columns: 1fr !important; }
  .wf-featured-grid { grid-template-columns: 1fr !important; }
  .wf-feat.big, .wf-feat.wide { grid-column: span 1 !important; }
}
