/* DeltaWave — site layer on top of hud.css (kit v3). */

@font-face {
  font-family: "DW Wavecut";
  src: url("../fonts/dw-wavecut.woff2") format("woff2"), url("../fonts/dw-wavecut.otf") format("opentype");
  font-display: swap;
}

:root {
  --dw-font-wave: "DW Wavecut", "Anton", sans-serif;
  --gutter: clamp(20px, 5.6vw, 72px);
  --header-h: 64px;
  color-scheme: dark;
}

*,
*::before,
*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  background: var(--dw-black);
  color: var(--dw-white);
  font-family: var(--dw-font-mono);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--dw-coral); color: #fff; }
:focus-visible { outline: 1px solid var(--dw-coral); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Wavecut type (logo-like highlights) ---------- */
.wave {
  font-family: var(--dw-font-wave);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 0.95;
}
.wave.outline { color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, 0.55); }
.wave .c, .hl-c { color: var(--dw-coral); }
.kicker {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--dw-font-mono); font-size: 11px; letter-spacing: 3px; text-transform: uppercase; color: var(--dw-gray);
  margin: 0 0 18px;
}
.kicker::before { content: ""; width: 8px; height: 8px; background: var(--dw-coral); }
.kicker b { color: var(--dw-coral); font-weight: 500; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  display: flex; align-items: center; gap: 24px; padding: 0 var(--gutter);
  background: linear-gradient(rgba(8, 8, 8, 0.86), rgba(8, 8, 8, 0.6));
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent; transition: border-color 0.3s;
}
.site-header.scrolled { border-bottom-color: var(--dw-line); }
.site-header .logo img { height: 18px; width: auto; }
.site-nav { display: flex; gap: 4px; margin-left: auto; }
.site-nav a {
  position: relative; padding: 8px 12px; font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  text-decoration: none; color: var(--dw-gray); transition: color 0.2s;
}
.site-nav a:hover, .site-nav a.active { color: var(--dw-white); }
.site-nav a.active::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; background: var(--dw-coral); }
.site-nav a .n { color: var(--dw-coral); margin-right: 6px; }
.header-cta { padding: 10px 16px !important; font-size: 11px !important; }
.live-chip { font-size: 10px !important; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--dw-line); width: 42px; height: 38px; color: #fff; cursor: pointer; }
.nav-toggle span { display: block; width: 18px; height: 2px; margin: 4px auto; background: currentColor; transition: transform 0.25s, opacity 0.25s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Bands ---------- */
.dw-band { min-height: auto; isolation: isolate; }
.band-pad { padding: clamp(96px, 11vw, 150px) var(--gutter); }
.band-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(36px, 5vw, 64px); }
.band-head .dw-mono { max-width: 420px; margin: 0; }
.h2 {
  font-family: var(--dw-font-display); text-transform: uppercase; font-weight: 400; margin: 0;
  font-size: clamp(48px, 7vw, 96px); line-height: 0.86; letter-spacing: -0.02em;
}
.h2 .wave { font-size: 0.78em; letter-spacing: 0.02em; display: inline-block; }
.dw-underline-coral { width: 64px; margin-top: 24px; }
.dw-hud-label { font-size: 10px; top: 10px; }
.dw-hud-label.left { left: 40px; }
.dw-hud-label.right { right: 40px; }
.dw-hud-frame { inset: 20px; }
.dw-hud-frame .c { width: 26px; height: 26px; }
.dw-bright-grid { inset: 32px; }
.dw-chip { font-size: 10px; }
.dw-mono { font-size: 12px; }
.dw-index { font-size: 13px; }

/* ---------- Ticker ---------- */
.dw-ticker .track { animation-duration: 38s; }
.dw-ticker .track span { padding-right: 24px; }
.top-ticker { position: fixed; top: var(--header-h); left: 0; right: 0; z-index: 49; }

/* ---------- Hero ---------- */
#hero { min-height: 100svh; display: flex; align-items: center; }
#hero .dw-content { width: 100%; padding: calc(var(--header-h) + 72px) var(--gutter) 140px; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.hero-wordmark { font-size: clamp(14px, 1.5vw, 19px); letter-spacing: 0.32em; margin: 0 0 22px; color: #fff; }
.hero-wordmark span { color: var(--dw-gray); }
.hero-h1 { font-size: clamp(64px, 10.4vw, 152px) !important; line-height: 0.82 !important; letter-spacing: -0.02em !important; }
.hero-h1 .line { display: block; overflow: hidden; }
.hero-h1 .line > span { display: inline-block; transform: translateY(105%); animation: rise 0.9s cubic-bezier(0.2, 0.8, 0.1, 1) forwards; }
.hero-h1 .line:nth-child(2) > span { animation-delay: 0.12s; }
@keyframes rise { to { transform: none; } }
.hero-sub { max-width: 460px; margin: 22px 0 26px; font-size: 13px; color: #b4b4b4; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.dw-btn { transition: background 0.2s, color 0.2s, outline-color 0.2s; gap: 10px; }
.dw-btn-ghost:hover { background: #fff; color: #000; }
.dw-btn .arr { transition: transform 0.2s; }
.dw-btn:hover .arr { transform: translateX(4px); }

.stack-panel { position: relative; }
.stack-panel .dw-panel-row { cursor: default; transition: background 0.25s; }
.stack-panel .dw-panel-row .label { transition: color 0.25s; color: #9a9a9a; }
.stack-panel .dw-panel-row svg { width: 18px; height: 18px; margin-left: auto; color: var(--dw-gray); }
.stack-panel .dw-panel-row.on { background: rgba(168, 34, 35, 0.14); }
.stack-panel .dw-panel-row.on .label { color: #fff; }
.stack-panel .dw-panel-row.on svg { color: var(--dw-coral); }
.stack-panel .scan { position: absolute; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--dw-coral), transparent); opacity: 0.8; animation: scan 3.6s linear infinite; pointer-events: none; }
@keyframes scan { from { top: 0; } to { top: 100%; } }
.panel-foot { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-top: 1px solid var(--dw-line); font-size: 10px; letter-spacing: 2px; color: var(--dw-gray); }
.panel-foot b { color: var(--dw-coral); font-weight: 500; }

.hero-telemetry { position: absolute; z-index: 8; left: var(--gutter); right: var(--gutter); bottom: 96px; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; pointer-events: none; }
.hero-telemetry .dw-wave { width: 220px; height: 40px; }
.telemetry-txt { font-size: 11px; letter-spacing: 2px; color: var(--dw-gray); text-transform: uppercase; }
.telemetry-txt b { color: var(--dw-coral); font-weight: 500; }
.scroll-cue { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 10px; letter-spacing: 3px; color: var(--dw-gray); }
.scroll-cue i { width: 1px; height: 36px; background: linear-gradient(var(--dw-coral), transparent); animation: cue 1.6s ease-in-out infinite; }
@keyframes cue { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* radar */
.dw-radar { position: absolute; z-index: 5; border-radius: 50%; border: 1px solid var(--dw-line); pointer-events: none; overflow: hidden;
  background: repeating-radial-gradient(circle, transparent 0 22%, rgba(57, 57, 57, 0.6) 22% calc(22% + 1px)); }
.dw-radar::before { content: ""; position: absolute; inset: 0; background: conic-gradient(from 0deg, rgba(168, 34, 35, 0.55), transparent 22%); animation: dw-spin 4s linear infinite; }
.dw-radar::after { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: var(--dw-line); box-shadow: 0 0 0 0 transparent; }
.dw-radar .blip { position: absolute; width: 5px; height: 5px; background: var(--dw-coral); animation: dw-blink 2s step-end infinite; }

/* coordinates scattered */
.coord { position: absolute; z-index: 3; font-size: 10px; letter-spacing: 1px; color: rgba(168, 34, 35, 0.9); pointer-events: none; }
.coord::before { content: ""; display: inline-block; width: 6px; height: 6px; border: 1px solid currentColor; margin-right: 6px; vertical-align: 1px; }
.coord.w { color: rgba(133, 133, 133, 0.9); }

/* ---------- Mega marquee ---------- */
.mega { position: relative; border-top: 1px solid var(--dw-line); border-bottom: 1px solid var(--dw-line); overflow: hidden; padding: 22px 0; background: var(--dw-black); }
.mega .track { display: flex; width: max-content; animation: dw-marquee 36s linear infinite; }
.mega .track span { display: flex; align-items: center; gap: 0.5em; padding-right: 0.5em; font-size: clamp(44px, 7vw, 104px); white-space: nowrap; }
.mega .track span i { width: 0.22em; height: 0.22em; background: var(--dw-coral); display: inline-block; }
.mega.rev .track { animation-direction: reverse; animation-duration: 44s; }
.mega:hover .track { animation-play-state: paused; }

/* ---------- Manifesto ---------- */
#manifesto .dw-content { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr); gap: clamp(32px, 6vw, 96px); align-items: end; }
.mani-h { font-size: clamp(64px, 11vw, 168px); line-height: 0.94 !important; }
.mani-h .row { display: block; }
.mani-h .row:nth-child(2) { padding-left: 0.5em; }
.mani-h .row:nth-child(3) { padding-left: 1em; color: transparent; -webkit-text-stroke: 1.5px #fff; }
.mani-side p.kicker { font-family: var(--dw-font-mono); font-weight: 400; font-size: 11px; letter-spacing: 3px; margin-bottom: 22px; }
.mani-side p:not(.kicker) { font-family: var(--dw-font-condensed); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; font-size: clamp(18px, 1.7vw, 24px); line-height: 1.25; margin: 0 0 18px; }
.pillars { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--dw-line); border: 1px solid var(--dw-line); margin-top: 28px; }
.pillars div { background: var(--dw-black); padding: 18px 16px; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; display: flex; align-items: center; gap: 10px; }
.pillars div .dw-index { font-size: 11px; }

/* ---------- Services ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--dw-line); border: 1px solid var(--dw-line); }
.svc {
  position: relative; background: rgba(8, 8, 8, 0.72); padding: 26px 24px 24px; min-height: 340px; display: flex; flex-direction: column;
  overflow: hidden; transition: background 0.3s; isolation: isolate;
}
.svc::before { content: ""; position: absolute; inset: 0; background: var(--img, none) center / cover no-repeat; opacity: 0; transition: opacity 0.5s, transform 0.8s; transform: scale(1.06); z-index: -1; }
.svc.has-img::before { opacity: 0.22; }
.svc:hover::before { opacity: 0.4; transform: none; }
.svc:hover { background: rgba(8, 8, 8, 0.5); }
.svc-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 42px; }
.svc-top svg { width: 30px; height: 30px; color: #fff; transition: color 0.3s, transform 0.3s; }
.svc:hover .svc-top svg { color: var(--dw-coral); transform: rotate(-8deg) scale(1.08); }
.svc h3 { margin: 0 0 14px; font-size: clamp(24px, 2.1vw, 30px); }
.svc p { margin: 0 0 22px; font-size: 12px; line-height: 1.7; color: #a3a3a3; letter-spacing: 0.5px; }
.svc .tags { margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px; }
.svc .tags span { font-size: 9.5px; letter-spacing: 2px; padding: 5px 8px; border: 1px solid var(--dw-line); color: var(--dw-gray); }
.svc .br { position: absolute; width: 18px; height: 18px; border: 0 solid var(--dw-coral); opacity: 0; transition: opacity 0.25s, transform 0.25s; }
.svc .br.tl { top: 10px; left: 10px; border-top-width: 2px; border-left-width: 2px; transform: translate(6px, 6px); }
.svc .br.brr { bottom: 10px; right: 10px; border-bottom-width: 2px; border-right-width: 2px; transform: translate(-6px, -6px); }
.svc:hover .br { opacity: 1; transform: none; }
.svc .num-bg { position: absolute; right: -8px; bottom: -22px; font-size: 150px; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, 0.07); pointer-events: none; z-index: -1; }

/* ---------- Method ---------- */
.method { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--dw-line); }
.method .progress { position: absolute; top: -1px; left: 0; height: 2px; width: 0; background: var(--dw-coral); transition: width 1.6s cubic-bezier(0.2, 0.8, 0.1, 1); }
.method.in .progress { width: 100%; }
.step { position: relative; padding: 34px 28px 10px 0; }
.step::before { content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; background: var(--dw-black); border: 1px solid var(--dw-gray); }
.method.in .step::before { background: var(--dw-coral); border-color: var(--dw-coral); transition: background 0.3s calc(var(--i) * 0.35s); }
.step .big { font-size: clamp(56px, 6vw, 88px); color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, 0.35); display: block; margin-bottom: 18px; }
.step h3 { margin: 0 0 12px; font-size: 22px; }
.step p { margin: 0; font-size: 12px; line-height: 1.7; color: #a3a3a3; }

/* ---------- Traffic (still) ---------- */
#trafego .dw-content { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 0.9fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.traffic-h { font-size: clamp(80px, 13vw, 200px) !important; line-height: 0.84 !important; margin-top: 0.42em !important; }
.traffic-h .sq { display: inline-block; width: 0.12em; height: 0.12em; background: var(--dw-coral); margin-left: 0.04em; }
.traffic-sub { font-size: clamp(14px, 1.3vw, 17px); letter-spacing: 3px; line-height: 1.6; margin: 26px 0; text-transform: uppercase; }
.dw-panel-row .ico { width: 20px; height: 20px; color: var(--dw-coral); }
.dw-panel-row .sq { margin-left: auto; width: 9px; height: 9px; border: 1px solid var(--dw-gray); }
.dw-panel-row:hover .sq { background: var(--dw-coral); border-color: var(--dw-coral); }
.dw-panel-head .mod { margin-left: auto; color: var(--dw-coral); font-size: 10px; letter-spacing: 2px; }
.icon-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 32px; }
.icon-chips span { display: inline-flex; align-items: center; gap: 8px; padding: 9px 12px; border: 1px solid var(--dw-line); font-size: 10.5px; letter-spacing: 2px; text-transform: uppercase; background: rgba(8, 8, 8, 0.6); }
.icon-chips svg { width: 16px; height: 16px; color: var(--dw-coral); }
.cta-line { font-family: var(--dw-font-condensed); font-weight: 600; font-size: clamp(20px, 2vw, 28px); letter-spacing: 2px; text-transform: uppercase; margin: 0 0 18px; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.cta-note { font-size: 10.5px; letter-spacing: 2px; color: var(--dw-gray); display: flex; align-items: center; gap: 8px; }
.cta-note::before { content: ""; width: 7px; height: 7px; background: var(--dw-coral); }

/* ---------- Case ---------- */
.case-section .dw-content { padding: clamp(96px, 11vw, 150px) var(--gutter) 150px; }

/* ---------- Contact ---------- */
#contato .dw-content { display: block; }
#contato .dw-content > div:first-child { margin-bottom: clamp(36px, 5vw, 56px); }
.contact-h { font-size: clamp(56px, 8.6vw, 128px) !important; }
.form { border: 1px solid var(--dw-line); background: rgba(8, 8, 8, 0.62); }
.form .fields { padding: 20px 18px 22px; display: grid; gap: 14px; }
.field label { display: block; font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--dw-gray); margin-bottom: 7px; }
.field label .dw-index { font-size: 10px; margin-right: 8px; }
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid var(--dw-line); background: rgba(0, 0, 0, 0.55); color: #fff; border-radius: 0;
  font: 13px var(--dw-font-mono); letter-spacing: 0.5px; padding: 12px 12px; outline: none; transition: border-color 0.2s;
}
.field textarea { min-height: 92px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--dw-coral); }
.opts { display: flex; flex-wrap: wrap; gap: 6px; }
.opts label { margin: 0; cursor: pointer; }
.opts input { position: absolute; opacity: 0; pointer-events: none; }
.opts span { display: inline-block; padding: 8px 10px; border: 1px solid var(--dw-line); font-size: 10px; letter-spacing: 2px; color: var(--dw-gray); transition: all 0.2s; }
.opts input:checked + span { border-color: var(--dw-coral); color: #fff; background: rgba(168, 34, 35, 0.2); }
.opts input:focus-visible + span { outline: 1px solid var(--dw-coral); }
.form .dw-btn { width: 100%; justify-content: space-between; }
.form-note { font-size: 10px; letter-spacing: 1.5px; color: var(--dw-gray); margin: 0; }

/* ---------- Footer ---------- */
.site-footer { position: relative; border-top: 1px solid var(--dw-line); padding: 56px var(--gutter) 28px; overflow: hidden; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; margin-bottom: 56px; }
.foot-grid img { height: 22px; width: auto; margin-bottom: 18px; }
.foot-grid h4 { margin: 0 0 14px; font-size: 10px; letter-spacing: 3px; color: var(--dw-coral); font-weight: 500; }
.foot-grid a, .foot-grid p { display: block; font-size: 11.5px; letter-spacing: 1px; color: #a3a3a3; text-decoration: none; margin: 0 0 9px; text-transform: uppercase; }
.foot-grid a:hover { color: #fff; }
.foot-giant { font-size: clamp(64px, 15vw, 230px); line-height: 0.8; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, 0.16); white-space: nowrap; margin: 0 0 24px; letter-spacing: 0.02em; user-select: none; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 10px; letter-spacing: 2px; color: var(--dw-gray); border-top: 1px solid var(--dw-line); padding-top: 18px; text-transform: uppercase; }

/* ---------- Float WhatsApp ---------- */
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 60; display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: #fff; color: #000; text-decoration: none; font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; transform: translateY(140%); transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.1, 1); }
.wa-float.show { transform: none; }
.wa-float svg { width: 18px; height: 18px; }
.wa-float:hover { outline: 1px solid var(--dw-coral); }

/* ---------- Cursor HUD (desktop) ---------- */
.hud-cursor { position: fixed; z-index: 100; pointer-events: none; left: 0; top: 0; mix-blend-mode: difference; opacity: 0; transition: opacity 0.3s; }
.hud-cursor.on { opacity: 1; }
.hud-cursor .ring { position: absolute; width: 34px; height: 34px; margin: -17px 0 0 -17px; border: 1px solid #fff; transition: width 0.2s, height 0.2s, margin 0.2s; }
.hud-cursor .ring::before, .hud-cursor .ring::after { content: ""; position: absolute; background: #fff; }
.hud-cursor .ring::before { left: 50%; top: -8px; bottom: -8px; width: 1px; }
.hud-cursor .ring::after { top: 50%; left: -8px; right: -8px; height: 1px; }
.hud-cursor.hover .ring { width: 54px; height: 54px; margin: -27px 0 0 -27px; }
.hud-cursor .xy { position: absolute; left: 24px; top: 18px; font-size: 9.5px; letter-spacing: 1px; color: #fff; white-space: nowrap; }

/* ---------- Reveal ---------- */
.rv { opacity: 0; transform: translateY(26px); transition: opacity 0.8s, transform 0.9s cubic-bezier(0.2, 0.8, 0.1, 1); transition-delay: calc(var(--d, 0) * 90ms); }
.rv.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .method { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  :root { --header-h: 58px; }
  .site-nav { position: fixed; top: var(--header-h); left: 0; right: 0; flex-direction: column; gap: 0; padding: 12px var(--gutter) 24px; background: rgba(8, 8, 8, 0.97); border-bottom: 1px solid var(--dw-line); transform: translateY(-120%); transition: transform 0.35s; }
  .nav-open .site-nav { transform: none; }
  .site-nav a { padding: 16px 0; border-bottom: 1px solid var(--dw-line); font-size: 13px; }
  .nav-toggle { display: block; }
  .site-header .live-chip, .site-header .header-cta { display: none; }
  #hero .dw-content, #manifesto .dw-content, #trafego .dw-content { grid-template-columns: 1fr; }
  .hero-telemetry .dw-wave, .scroll-cue { display: none; }
  .hide-m { display: none !important; }
  .dw-hud-label { display: none; }
  .dw-bright-grid { grid-template-columns: repeat(6, 1fr) !important; }
}
@media (max-width: 620px) {
  .svc-grid, .method, .foot-grid { grid-template-columns: 1fr; }
  .svc { min-height: 0; }
  .pillars { grid-template-columns: 1fr 1fr; }
  .mani-h .row:nth-child(2), .mani-h .row:nth-child(3) { padding-left: 0; }
  .hero-telemetry { bottom: 76px; }
}
@media (hover: none), (pointer: coarse) { .hud-cursor { display: none; } }
@media (prefers-reduced-motion: reduce) and (max-width: 0px) {
  .mega .track, .dw-radar::before, .stack-panel .scan, .scroll-cue i { animation: none !important; }
  .rv { opacity: 1; transform: none; transition: none; }
  .hero-h1 .line > span { transform: none; animation: none; }
}

/* hero bracket label sits under the bracket so it never meets the wordmark */
.dw-focus.lbl-bottom .dw-focus-label { left: auto; right: 0; }

/* ================= QUIZ ================= */
.quiz { display: grid; grid-template-columns: 240px minmax(0, 1fr); border: 1px solid var(--dw-line); background: rgba(8, 8, 8, 0.7); min-height: 560px; position: relative; }
.quiz::before, .quiz::after { content: ""; position: absolute; width: 22px; height: 22px; border: 0 solid var(--dw-coral); pointer-events: none; }
.quiz::before { top: -1px; left: -1px; border-top-width: 2px; border-left-width: 2px; }
.quiz::after { bottom: -1px; right: -1px; border-bottom-width: 2px; border-right-width: 2px; }
.quiz-rail { border-right: 1px solid var(--dw-line); padding: 24px 20px; display: flex; flex-direction: column; gap: 22px; }
.quiz-rail-title { margin: 0; font-size: 10px; letter-spacing: 3px; color: var(--dw-gray); text-transform: uppercase; }
.quiz-rail-title b { color: var(--dw-coral); font-weight: 500; }
.quiz-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.quiz-steps li { display: flex; align-items: center; gap: 10px; padding: 9px 0; font-size: 10.5px; letter-spacing: 2px; text-transform: uppercase; color: #5d5d5d; transition: color 0.3s; }
.quiz-steps li i { width: 9px; height: 9px; border: 1px solid currentColor; flex-shrink: 0; transition: background 0.3s, border-color 0.3s; }
.quiz-steps li.done { color: var(--dw-gray); }
.quiz-steps li.done i { background: var(--dw-gray); }
.quiz-steps li.cur { color: #fff; }
.quiz-steps li.cur i { background: var(--dw-coral); border-color: var(--dw-coral); box-shadow: 0 0 0 4px rgba(168, 34, 35, 0.25); }
.quiz-radar { margin-top: auto; width: 120px; height: 120px; border-radius: 50%; border: 1px solid var(--dw-line); position: relative; overflow: hidden;
  background: repeating-radial-gradient(circle, transparent 0 24%, rgba(57, 57, 57, 0.7) 24% calc(24% + 1px)); }
.quiz-radar::before { content: ""; position: absolute; inset: 0; background: conic-gradient(rgba(168, 34, 35, 0.6), transparent 25%); animation: dw-spin 3s linear infinite; }
.quiz-radar i { position: absolute; width: 6px; height: 6px; background: var(--dw-coral); left: calc(50% - 3px); top: calc(50% - 3px); transition: left 0.6s, top 0.6s; }
.quiz-status { margin: 0; font-size: 10px; letter-spacing: 2px; color: var(--dw-gray); }
.quiz-status b { color: var(--dw-coral); font-weight: 500; }

.quiz-stage { position: relative; display: flex; flex-direction: column; overflow: hidden; }
.quiz-bar { height: 3px; background: var(--dw-line); }
.quiz-bar span { display: block; height: 100%; width: 0; background: var(--dw-coral); transition: width 0.6s cubic-bezier(0.2, 0.8, 0.1, 1); }
.quiz-screen { flex: 1; padding: clamp(24px, 3.4vw, 44px); display: flex; flex-direction: column; }
.q-enter { animation: qIn 0.55s cubic-bezier(0.2, 0.8, 0.1, 1) both; }
.q-leave { animation: qOut 0.32s ease-in both; }
@keyframes qIn { from { opacity: 0; transform: translateX(40px); clip-path: inset(0 0 0 30%); } to { opacity: 1; transform: none; clip-path: inset(0 0 0 0); } }
@keyframes qOut { to { opacity: 0; transform: translateX(-40px); clip-path: inset(0 30% 0 0); } }
.q-leave.back { animation-name: qOutBack; }
@keyframes qOutBack { to { opacity: 0; transform: translateX(40px); } }

.q-meta { display: flex; justify-content: space-between; align-items: center; font-size: 10.5px; letter-spacing: 2px; color: var(--dw-gray); text-transform: uppercase; margin-bottom: 18px; }
.q-meta b { color: var(--dw-coral); font-weight: 500; }
.q-title { margin: 0 0 10px; font-family: var(--dw-font-display); font-weight: 400; text-transform: uppercase; font-size: clamp(34px, 4.2vw, 60px); line-height: 0.92; letter-spacing: -0.01em; }
.q-title .wave { font-size: 0.74em; color: var(--dw-coral); letter-spacing: 0.02em; }
.q-hint { margin: 0 0 26px; font-size: 12px; color: #a3a3a3; letter-spacing: 0.5px; }
.q-opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.q-opt {
  --x: 50%; --y: 50%;
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; text-align: left; cursor: pointer;
  padding: 18px 16px 16px; min-height: 124px; background: rgba(0, 0, 0, 0.5); color: #fff; border: 1px solid var(--dw-line); border-radius: 0;
  font: inherit; overflow: hidden; opacity: 0; transform: translateY(14px);
  animation: optIn 0.5s cubic-bezier(0.2, 0.8, 0.1, 1) forwards; animation-delay: calc(var(--k) * 55ms + 120ms);
  transition: border-color 0.2s, background 0.2s;
}
@keyframes optIn { to { opacity: 1; transform: none; } }
.q-opt::before { content: ""; position: absolute; inset: 0; background: radial-gradient(220px circle at var(--x) var(--y), rgba(168, 34, 35, 0.28), transparent 60%); opacity: 0; transition: opacity 0.25s; pointer-events: none; }
.q-opt:hover::before, .q-opt:focus-visible::before { opacity: 1; }
.q-opt:hover { border-color: #5a5a5a; }
.q-opt .k { position: absolute; top: 12px; right: 12px; font-size: 10px; letter-spacing: 1px; color: #5d5d5d; border: 1px solid var(--dw-line); padding: 2px 6px; }
.q-opt svg { width: 26px; height: 26px; color: #d0d0d0; transition: color 0.2s, transform 0.3s; }
.q-opt .t { font-family: var(--dw-font-condensed); font-weight: 600; font-size: 17px; letter-spacing: 1px; text-transform: uppercase; line-height: 1.15; }
.q-opt .s { font-size: 10.5px; color: var(--dw-gray); letter-spacing: 0.5px; line-height: 1.5; margin-top: -6px; }
.q-opt .lock { position: absolute; inset: 6px; pointer-events: none; opacity: 0; }
.q-opt .lock::before, .q-opt .lock::after { content: ""; position: absolute; width: 14px; height: 14px; border: 0 solid var(--dw-coral); }
.q-opt .lock::before { top: 0; left: 0; border-top-width: 2px; border-left-width: 2px; }
.q-opt .lock::after { bottom: 0; right: 0; border-bottom-width: 2px; border-right-width: 2px; }
.q-opt[aria-pressed="true"] { border-color: var(--dw-coral); background: rgba(168, 34, 35, 0.16); }
.q-opt[aria-pressed="true"] svg { color: var(--dw-coral); transform: scale(1.12) rotate(-6deg); }
.q-opt[aria-pressed="true"] .lock { opacity: 1; animation: lockIn 0.35s cubic-bezier(0.2, 0.8, 0.1, 1); }
.q-opt[aria-pressed="true"] .k { color: #fff; border-color: var(--dw-coral); background: var(--dw-coral); }
@keyframes lockIn { from { inset: -10px; opacity: 0; } to { inset: 6px; opacity: 1; } }
.q-opt.flash { animation: flash 0.45s ease-out forwards; opacity: 1; transform: none; }
@keyframes flash { 0% { box-shadow: 0 0 0 0 rgba(168, 34, 35, 0.8); } 100% { box-shadow: 0 0 0 14px rgba(168, 34, 35, 0); } }

.q-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 28px; }
.q-back { background: none; border: 0; color: var(--dw-gray); font: 11px var(--dw-font-mono); letter-spacing: 2px; text-transform: uppercase; cursor: pointer; padding: 10px 0; }
.q-back:hover { color: #fff; }
.q-back.hide { visibility: hidden; }
.q-next[disabled] { opacity: 0.3; pointer-events: none; }
.q-counter { font-size: 10.5px; letter-spacing: 2px; color: var(--dw-gray); }
.q-counter b { color: #fff; }

.q-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 18px; max-width: 760px; }
.q-fields .full { grid-column: 1 / -1; }
.q-field label { display: block; font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--dw-gray); margin-bottom: 8px; }
.q-field input, .q-field textarea {
  width: 100%; border: 0; border-bottom: 1px solid var(--dw-line); background: transparent; color: #fff; border-radius: 0;
  font: 400 clamp(20px, 2vw, 26px) var(--dw-font-condensed); letter-spacing: 1px; padding: 8px 0 10px; outline: none; transition: border-color 0.2s;
}
.q-field textarea { font: 13px/1.6 var(--dw-font-mono); min-height: 70px; resize: vertical; letter-spacing: 0.3px; }
.q-field input:focus, .q-field textarea:focus { border-bottom-color: var(--dw-coral); }
.q-field input::placeholder, .q-field textarea::placeholder { color: #4a4a4a; }
.q-field.err input { border-bottom-color: var(--dw-coral); animation: shake 0.35s; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }

.q-scan { font-size: 13px; line-height: 2; color: #cfcfcf; margin: 0; min-height: 190px; white-space: pre-wrap; font-family: var(--dw-font-mono); }
.q-scan .k { color: var(--dw-coral); }
.q-scan .g { color: var(--dw-gray); }
.q-result { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 0.8fr); gap: 28px; align-items: start; }
.q-stack { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 24px; }
.q-stack span { display: inline-flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid var(--dw-coral); background: rgba(168, 34, 35, 0.14); font-size: 11px; letter-spacing: 2px; text-transform: uppercase; opacity: 0; animation: optIn 0.45s forwards; animation-delay: calc(var(--k) * 120ms + 150ms); }
.q-stack svg { width: 16px; height: 16px; color: var(--dw-coral); }
.q-summary { border: 1px solid var(--dw-line); }
.q-summary div { display: flex; gap: 14px; padding: 12px 14px; border-bottom: 1px solid var(--dw-line); font-size: 11px; letter-spacing: 1px; text-transform: uppercase; }
.q-summary div:last-child { border-bottom: 0; }
.q-summary span:first-child { color: var(--dw-coral); min-width: 22px; }
.q-summary span:last-child { color: #d6d6d6; }
.q-done-note { font-size: 10.5px; letter-spacing: 1.5px; color: var(--dw-gray); margin: 14px 0 0; }

@media (max-width: 900px) {
  .quiz { grid-template-columns: 1fr; min-height: 0; }
  .quiz-rail { border-right: 0; border-bottom: 1px solid var(--dw-line); flex-direction: row; align-items: center; padding: 14px 16px; gap: 14px; }
  .quiz-rail-title, .quiz-radar { display: none; }
  .quiz-steps { display: flex; gap: 6px; flex: 1; }
  .quiz-steps li { padding: 0; font-size: 0; gap: 0; }
  .quiz-steps li i { width: 22px; height: 4px; }
  .q-opts { grid-template-columns: 1fr 1fr; }
  .q-opt { min-height: 108px; padding: 14px 12px; }
  .q-opt .t { font-size: 15px; }
  .q-opt .s, .q-opt .k { display: none; }
  .q-fields, .q-result { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) and (max-width: 0px) {
  .q-enter, .q-leave, .q-opt, .q-stack span { animation: none !important; opacity: 1; transform: none; }
}

/* ================= Logo wherever DeltaWave is named ================= */
img.lg { display: inline-block; height: 0.78em; width: auto; max-width: none; vertical-align: -0.04em; }
.hero-wordmark img { max-width: none; }
.dw-ticker img.lg { height: 9px; vertical-align: 0; filter: brightness(0.95); }
.mega img.lg { height: 0.6em; vertical-align: 0.04em; }
.hero-wordmark { display: flex; align-items: center; gap: 0.6em; }
.hero-wordmark img { height: clamp(16px, 1.7vw, 24px); width: auto; }
.foot-giant { display: block; width: 100%; height: auto; opacity: 0.1; margin: 0 0 24px; filter: grayscale(1); user-select: none; }

/* ================= Quiz modal ================= */
.qm { position: fixed; inset: 0; z-index: 110; display: grid; place-items: center; padding: 16px; visibility: hidden; }
.qm.open { visibility: visible; }
.qm-backdrop { position: absolute; inset: 0; background: rgba(4, 4, 4, 0.82); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity 0.35s; }
.qm.open .qm-backdrop { opacity: 1; }
.qm-panel { position: relative; width: min(1180px, 100%); max-height: calc(100svh - 32px); overflow: auto; transform-origin: center; opacity: 0; transform: translateY(24px) scale(0.98); transition: opacity 0.4s, transform 0.5s cubic-bezier(0.2, 0.8, 0.1, 1); }
.qm.open .qm-panel { opacity: 1; transform: none; }
.qm-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border: 1px solid var(--dw-line); border-bottom: 0; background: rgba(8, 8, 8, 0.95); }
.qm-head .brand { display: flex; align-items: center; gap: 12px; font-size: 10px; letter-spacing: 2px; color: var(--dw-gray); text-transform: uppercase; }
.qm-head .brand img { height: 14px; width: auto; }
.qm-later { display: inline-flex; align-items: center; gap: 10px; background: none; border: 1px solid var(--dw-line); color: #cfcfcf; padding: 9px 12px; font: 10.5px var(--dw-font-mono); letter-spacing: 2px; text-transform: uppercase; cursor: pointer; transition: border-color 0.2s, color 0.2s; }
.qm-later:hover { border-color: #25d366; color: #fff; }
.qm-later svg { width: 14px; height: 14px; color: #25d366; }
.qm .quiz { background: rgba(8, 8, 8, 0.96); }
.qm-note { margin: 0; padding: 10px 16px; border: 1px solid var(--dw-line); border-top: 0; background: rgba(8, 8, 8, 0.95); font-size: 10px; letter-spacing: 1.5px; color: var(--dw-gray); }
.qm-note b { color: var(--dw-coral); font-weight: 500; }

/* launcher in the contact section */
.quiz-launch { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 24px; width: 100%; padding: 28px; border: 1px solid var(--dw-line); background: rgba(8, 8, 8, 0.7); color: #fff; cursor: pointer; text-align: left; font: inherit; position: relative; transition: border-color 0.25s, background 0.25s; }
.quiz-launch:hover { border-color: var(--dw-coral); background: rgba(168, 34, 35, 0.1); }
.quiz-launch .ql-ico { width: 64px; height: 64px; border: 1px solid var(--dw-line); display: grid; place-items: center; }
.quiz-launch .ql-ico svg { width: 30px; height: 30px; color: var(--dw-coral); }
.quiz-launch .ql-t { font-family: var(--dw-font-wave); font-size: clamp(22px, 2.6vw, 36px); text-transform: uppercase; letter-spacing: 0.03em; display: block; margin-bottom: 6px; }
.quiz-launch .ql-s { font-size: 11.5px; color: var(--dw-gray); letter-spacing: 1px; }
.quiz-launch .ql-s b { color: #fff; font-weight: 500; }
.quiz-launch.done .ql-ico svg { color: #25d366; }

/* ================= WhatsApp float: always on, sonar ================= */
.wa-float { transform: none !important; z-index: 120; overflow: visible; }
.wa-float .sonar { position: absolute; inset: 0; border: 1.5px solid #25d366; pointer-events: none; opacity: 0; animation: sonar 2.4s cubic-bezier(0.1, 0.6, 0.3, 1) infinite; }
.wa-float .sonar:nth-child(2) { animation-delay: 0.8s; }
.wa-float .sonar:nth-child(3) { animation-delay: 1.6s; }
@keyframes sonar { 0% { opacity: 0.85; transform: scale(1, 1); } 100% { opacity: 0; transform: scale(1.45, 2.1); } }
.wa-float svg { color: #128c47; }
.wa-float .badge { position: absolute; top: -8px; right: -8px; min-width: 20px; height: 20px; padding: 0 5px; display: none; place-items: center; background: var(--dw-coral); color: #fff; font-size: 10px; font-weight: 700; letter-spacing: 0; }
.wa-float.pending .badge { display: grid; animation: pop 0.4s cubic-bezier(0.2, 1.6, 0.4, 1); }
@keyframes pop { from { transform: scale(0); } }
.wa-float.gulp { animation: gulp 0.6s cubic-bezier(0.2, 1.5, 0.4, 1); }
@keyframes gulp { 0% { transform: scale(1); } 35% { transform: scale(1.28, 0.82); } 60% { transform: scale(0.9, 1.12); } 100% { transform: scale(1); } }
.qm.open ~ .wa-float .sonar { animation-duration: 1.2s; }
@media (prefers-reduced-motion: reduce) and (max-width: 0px) { .wa-float .sonar { animation: none; } }

/* ================= Editorial imagery ================= */
/* section background image: masked, parallax */
.sec-bg { position: absolute; inset: -8% 0; z-index: 0; pointer-events: none; background: var(--bg) center / cover no-repeat; opacity: var(--o, 0.5); will-change: transform; }
.sec-bg.right { left: 35%; -webkit-mask-image: linear-gradient(90deg, transparent, #000 45%); mask-image: linear-gradient(90deg, transparent, #000 45%); }
.sec-bg.left { right: 35%; -webkit-mask-image: linear-gradient(270deg, transparent, #000 45%); mask-image: linear-gradient(270deg, transparent, #000 45%); }
.sec-bg.top { bottom: 30%; -webkit-mask-image: linear-gradient(#000 40%, transparent); mask-image: linear-gradient(#000 40%, transparent); }
.sec-bg.full { -webkit-mask-image: radial-gradient(ellipse at 60% 50%, #000 30%, transparent 85%); mask-image: radial-gradient(ellipse at 60% 50%, #000 30%, transparent 85%); }
.sec-bg.kb { animation: kenburns 26s ease-in-out infinite alternate; }
@keyframes kenburns { from { background-size: 108% auto; background-position: 40% 50%; } to { background-size: 120% auto; background-position: 62% 46%; } }

/* film grain + scanlines overlay */
.fx { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.fx::before { content: ""; position: absolute; inset: -10%; opacity: 0.16; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 0.9s steps(4) infinite; }
.fx::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(transparent 0 2px, rgba(0, 0, 0, 0.28) 2px 3px); opacity: 0.55; }
@keyframes grain { 25% { transform: translate(-3%, 2%); } 50% { transform: translate(2%, -3%); } 75% { transform: translate(-1%, -2%); } }

/* full-bleed editorial banner */
.ed-banner { position: relative; isolation: isolate; overflow: hidden; height: clamp(380px, 52vw, 680px); border-top: 1px solid var(--dw-line); border-bottom: 1px solid var(--dw-line); display: flex; align-items: center; background: #000; }
.ed-banner .img, .ed-banner .gl { position: absolute; inset: -10% 0; background: var(--bg) center / cover no-repeat; z-index: 0; will-change: transform; }
.ed-banner .img { animation: kenburns 30s ease-in-out infinite alternate; }
.ed-banner .shade { position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(8, 8, 8, 0.92) 0%, rgba(8, 8, 8, 0.55) 45%, rgba(8, 8, 8, 0.1) 75%), linear-gradient(transparent 60%, rgba(8, 8, 8, 0.85)); }
.ed-banner.center .shade { background: radial-gradient(ellipse at center, rgba(8, 8, 8, 0.25), rgba(8, 8, 8, 0.85) 75%); }
/* glitch slices: same image, offset bands that flash every few seconds */
.ed-banner .gl { z-index: 1; opacity: 0; mix-blend-mode: screen; animation: glitch 7s steps(1) infinite; }
.ed-banner .gl.b { filter: hue-rotate(160deg) saturate(2); animation-delay: 0.08s; }
@keyframes glitch {
  0%, 91%, 100% { opacity: 0; clip-path: inset(0 0 100% 0); transform: none; }
  92% { opacity: 0.75; clip-path: inset(18% 0 64% 0); transform: translateX(-14px); }
  93% { opacity: 0.75; clip-path: inset(52% 0 30% 0); transform: translateX(18px); }
  94% { opacity: 0.6; clip-path: inset(70% 0 12% 0); transform: translateX(-8px); }
  95% { opacity: 0.75; clip-path: inset(34% 0 50% 0); transform: translateX(10px); }
}
.ed-banner .sweep { position: absolute; left: 0; right: 0; height: 2px; z-index: 3; background: linear-gradient(90deg, transparent, var(--dw-coral) 30%, #fff 50%, var(--dw-coral) 70%, transparent); opacity: 0.7; animation: sweep 6s cubic-bezier(0.6, 0, 0.4, 1) infinite; }
@keyframes sweep { 0% { top: -2%; } 60%, 100% { top: 102%; } }
.ed-banner .dw-hud-frame { z-index: 4; }
.ed-banner .ed-content { position: relative; z-index: 5; padding: 0 var(--gutter); max-width: 900px; }
.ed-banner.center .ed-content { margin: 0 auto; text-align: center; max-width: 1100px; }
.ed-banner .ed-h { font-family: var(--dw-font-display); text-transform: uppercase; font-weight: 400; margin: 0; font-size: clamp(48px, 7.4vw, 112px); line-height: 0.86; letter-spacing: -0.015em; }
.ed-banner .ed-h .wave { display: block; font-size: 0.66em; color: var(--dw-coral); letter-spacing: 0.02em; margin-top: 0.14em; }
.ed-banner .ed-logo { width: min(820px, 86vw); height: auto; max-width: none; margin: 0 auto 26px; filter: drop-shadow(0 0 40px rgba(168, 34, 35, 0.45)); }
.ed-banner .ed-tag { font-size: clamp(11px, 1.2vw, 14px); letter-spacing: 0.5em; color: #d0d0d0; text-transform: uppercase; }
.ed-banner .ed-tag b { color: var(--dw-coral); font-weight: 500; }
.ed-banner .dw-chip-row { margin: 24px 0 26px; }
.ed-banner.center .dw-chip-row { justify-content: center; }
.ed-meta { position: absolute; z-index: 5; right: var(--gutter); bottom: 34px; font-size: 10px; letter-spacing: 2px; color: var(--dw-gray); text-transform: uppercase; text-align: right; line-height: 1.8; }
.ed-meta b { color: var(--dw-coral); font-weight: 500; }

/* framed photo (case / contact) */
.dw-photo { position: relative; margin: 0; border: 1px solid var(--dw-line); overflow: hidden; background: #000; }
.dw-photo img { width: 100%; height: 100%; max-width: none; object-fit: cover; display: block; transition: transform 1.2s cubic-bezier(0.2, 0.8, 0.1, 1); }
.dw-photo:hover img { transform: scale(1.05); }
.dw-photo .fx { z-index: 2; }
.dw-photo figcaption { position: absolute; z-index: 3; left: 12px; bottom: 10px; font-size: 9.5px; letter-spacing: 2px; color: #cfcfcf; text-transform: uppercase; display: flex; align-items: center; gap: 8px; }
.dw-photo figcaption::before { content: ""; width: 6px; height: 6px; background: var(--dw-coral); animation: dw-blink 1.2s step-end infinite; }
.dw-photo .c4 { position: absolute; z-index: 3; width: 18px; height: 18px; border: 0 solid #fff; }
.dw-photo .c4.a { top: 8px; left: 8px; border-top-width: 2px; border-left-width: 2px; border-color: var(--dw-coral); }
.dw-photo .c4.b { top: 8px; right: 8px; border-top-width: 2px; border-right-width: 2px; }
.dw-photo .c4.c { bottom: 8px; right: 8px; border-bottom-width: 2px; border-right-width: 2px; border-color: var(--dw-coral); }
.case-media { display: grid; gap: 16px; flex: 0 1 360px; width: 100%; max-width: 380px; }
.case-media .dw-photo { aspect-ratio: 16 / 10; }
.contact-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 0.55fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.contact-top .dw-photo { aspect-ratio: 3 / 4; max-height: 560px; }
.qm .quiz { background: linear-gradient(rgba(8, 8, 8, 0.9), rgba(8, 8, 8, 0.94)), url("../img/banners/metal.webp") center / cover; }
.site-footer > .sec-bg { --o: 0.32; }
.site-footer > *:not(.sec-bg):not(.fx) { position: relative; z-index: 2; }
@media (max-width: 900px) {
  .contact-top { grid-template-columns: 1fr; }
  .contact-top .dw-photo { max-height: 380px; aspect-ratio: 4 / 3; }
  .sec-bg.right, .sec-bg.left { left: 0; right: 0; -webkit-mask-image: linear-gradient(transparent, #000 60%); mask-image: linear-gradient(transparent, #000 60%); --o: 0.3; }
  .ed-banner .shade { background: linear-gradient(rgba(8, 8, 8, 0.55), rgba(8, 8, 8, 0.9)); }
}
@media (prefers-reduced-motion: reduce) and (max-width: 0px) { .sec-bg.kb, .ed-banner .img, .ed-banner .gl, .ed-banner .sweep, .fx::before { animation: none !important; } }

/* ================= RENDER BUDGET =================
   Everything below animates transform/opacity only (or the independent
   translate/scale/rotate properties), so the compositor runs it without repainting. */

/* off-screen blocks: skip rendering work and freeze their animations */
/* (content-visibility removed: its 900px placeholders made sections jump while scrolling) */
.off *, .off *::before, .off *::after { animation-play-state: paused !important; }

/* Ken Burns without repainting (was background-size) */
@keyframes kenburns { from { scale: 1.06; translate: -1.5% 0; } to { scale: 1.16; translate: 2% -1.5%; } }
.sec-bg.kb, .ed-banner .img { background-size: cover; }

/* sweep / scan lines: move a full-size layer instead of animating top */
.ed-banner .sweep { top: 0; bottom: 0; height: auto; background: linear-gradient(90deg, transparent, var(--dw-coral) 30%, #fff 50%, var(--dw-coral) 70%, transparent) top / 100% 2px no-repeat; animation: sweep2 6s cubic-bezier(0.6, 0, 0.4, 1) infinite; }
@keyframes sweep2 { 0% { transform: translateY(-2%); } 60%, 100% { transform: translateY(100%); } }
.stack-panel .scan { top: 0; bottom: 0; height: auto; background: linear-gradient(90deg, transparent, var(--dw-coral), transparent) top / 100% 1px no-repeat; animation: scan2 3.6s linear infinite; }
@keyframes scan2 { from { transform: translateY(0); } to { transform: translateY(100%); } }

/* waveforms: bars scale instead of changing height (no layout) */
.dw-wave i { height: 100%; transform: scaleY(var(--h, 0.5)); transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.1, 1); }

/* grain layer on its own compositor layer */
.fx::before { will-change: transform; }

/* ================= ALIVE ================= */
@media (max-width: 620px) { .ed-banner .ed-tag { letter-spacing: 0.22em; font-size: 10px; } }
.dw-particles { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 3; pointer-events: none; mix-blend-mode: screen; opacity: 0.75; }

.bob { animation: bob var(--bt, 5s) ease-in-out var(--bd, 0s) infinite; }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 calc(var(--ba, 4px) * -1); } }
.breathe { animation: breathe 3.2s ease-in-out var(--bd2, 0s) infinite; }
@keyframes breathe { 0%, 100% { scale: 1; } 50% { scale: 1.12; } }
.flicker { animation: flicker 9s steps(1) var(--fd, 0s) infinite; }
@keyframes flicker { 0%, 100% { opacity: 1; } 96% { opacity: 0.25; } 97% { opacity: 1; } 98% { opacity: 0.4; } }

/* coral underlines breathe */
.dw-underline-coral { transform-origin: left; animation: line 4.5s ease-in-out infinite; }
@keyframes line { 0%, 100% { transform: scaleX(1); } 50% { transform: scaleX(1.7); } }

/* HUD corners pulse */
.dw-hud-frame .c.tl, .dw-hud-frame .c.br, .dw-focus .fc.tl, .dw-focus .fc.br { animation: corner 3s ease-in-out infinite; }
.dw-hud-frame .c.br, .dw-focus .fc.br { animation-delay: -1.5s; }
@keyframes corner { 0%, 100% { opacity: 1; scale: 1; } 50% { opacity: 0.45; scale: 1.25; } }

/* buttons: pulse ring + magnet */
.dw-btn { position: relative; }
.dw-btn-primary::after { content: ""; position: absolute; inset: -1px; border: 1px solid var(--dw-coral); pointer-events: none; opacity: 0; animation: ring 2.8s cubic-bezier(0.1, 0.6, 0.3, 1) infinite; }
@keyframes ring { 0% { opacity: 0.9; transform: scale(1); } 70%, 100% { opacity: 0; transform: scale(1.14, 1.5); } }
.magnet { translate: var(--mx, 0px) var(--my, 0px); transition: translate 0.25s cubic-bezier(0.2, 0.8, 0.1, 1), background 0.2s, color 0.2s; }

/* 3D tilt (after reveal) */
.tilt { transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.1, 1), opacity 0.8s; }
.tilt.in, .tilt:not(.rv) { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }

/* section headings get a slow glow sweep across the coral highlight */
.wave.hl-c, .ed-h .wave, .q-title .wave { background: linear-gradient(100deg, var(--dw-coral) 40%, #ff6b6c 50%, var(--dw-coral) 60%) 0 0 / 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 5s linear infinite; }
@keyframes shine { from { background-position: 100% 0; } to { background-position: -200% 0; } }

/* orbit dots trail */
.dw-orbit .dot { box-shadow: 0 0 0 0 rgba(168, 34, 35, 0.6); animation: dw-blink 1.6s step-end infinite; }

@media (prefers-reduced-motion: reduce) and (max-width: 0px) {
  .bob, .breathe, .flicker, .dw-underline-coral, .dw-btn-primary::after, .wave.hl-c, .ed-h .wave, .q-title .wave, .dw-hud-frame .c, .dw-focus .fc { animation: none !important; }
  .dw-particles { display: none; }
}

/* ================= LOUDER MOTION ================= */
/* letters ride a wave (translate only → compositor) */
.ch { display: inline-block; animation: chw 3s ease-in-out calc(var(--i, 0) * -0.11s) infinite; }
@keyframes chw { 0%, 100% { translate: 0 0; } 50% { translate: 0 -0.07em; } }
h1:hover .ch, h2:hover .ch, h3:hover .ch { animation-duration: 0.9s; }

/* RGB split glitch burst on headings */
.glitch { animation: tglitch 0.5s steps(1) 1 !important; }
@keyframes tglitch {
  0% { text-shadow: 4px 0 #a82223, -4px 0 #20d6ff; translate: 3px 0; filter: none; }
  20% { text-shadow: -6px 0 #a82223, 6px 0 #20d6ff; translate: -4px 1px; clip-path: inset(8% 0 46% 0); }
  40% { text-shadow: 3px 0 #a82223, -3px 0 #20d6ff; translate: 2px -2px; clip-path: inset(52% 0 6% 0); }
  60% { text-shadow: -2px 0 #a82223, 2px 0 #20d6ff; translate: -1px 0; clip-path: inset(24% 0 30% 0); }
  80% { text-shadow: 1px 0 #a82223, -1px 0 #20d6ff; translate: 0; clip-path: none; }
  100% { text-shadow: none; translate: 0; clip-path: none; }
}
img.glitch { animation: iglitch 0.5s steps(1) 1 !important; }
@keyframes iglitch { 0% { translate: 5px 0; filter: drop-shadow(-5px 0 #20d6ff) drop-shadow(5px 0 #a82223); } 30% { translate: -6px 2px; clip-path: inset(0 0 55% 0); } 60% { translate: 3px -1px; clip-path: inset(45% 0 0 0); } 100% { translate: 0; clip-path: none; filter: none; } }

/* buttons: breathe in size, light sweep across, bigger ring */
.dw-btn-primary, .dw-btn-ghost { animation: btnb 2.4s ease-in-out infinite; }
.dw-btn-ghost { animation-delay: -1.2s; }
@keyframes btnb { 0%, 100% { scale: 1; } 50% { scale: 1.045; } }
.dw-btn::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(110deg, transparent 35%, rgba(168, 34, 35, 0.45) 50%, transparent 65%) 0 0 / 250% 100% no-repeat; mix-blend-mode: multiply; animation: btnshine 2.8s ease-in-out infinite; }
.dw-btn-ghost::before { mix-blend-mode: screen; background-image: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, 0.35) 50%, transparent 65%); }
@keyframes btnshine { 0% { background-position: 130% 0; } 60%, 100% { background-position: -130% 0; } }
@keyframes ring { 0% { opacity: 1; transform: scale(1); } 70%, 100% { opacity: 0; transform: scale(1.22, 1.9); } }
.dw-btn-primary::after { border-width: 2px; animation-duration: 2.4s; }
.wa-float { animation: btnb 1.8s ease-in-out infinite; }

/* kicker square spins, nav numbers blink, header logo shimmer */
.kicker::before { animation: spinsq 4s linear infinite; }
@keyframes spinsq { to { rotate: 360deg; } }
.site-nav a .n { display: inline-block; animation: flicker 6s steps(1) infinite; }
.site-nav a:nth-child(2) .n { animation-delay: -1.5s; } .site-nav a:nth-child(3) .n { animation-delay: -3s; } .site-nav a:nth-child(4) .n { animation-delay: -4.5s; }

/* panels: rows shimmer in sequence */
.dw-panel-row { position: relative; }
.dw-panel-row::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, transparent, rgba(168, 34, 35, 0.22), transparent); transform: translateX(-100%); animation: rowscan 5s ease-in-out infinite; }
.dw-panel-row:nth-child(3)::after { animation-delay: 0.25s; } .dw-panel-row:nth-child(4)::after { animation-delay: 0.5s; } .dw-panel-row:nth-child(5)::after { animation-delay: 0.75s; } .dw-panel-row:nth-child(6)::after { animation-delay: 1s; } .dw-panel-row:nth-child(7)::after { animation-delay: 1.25s; }
@keyframes rowscan { 0% { transform: translateX(-100%); } 40%, 100% { transform: translateX(100%); } }

/* service cards: corner brackets idle-pulse even without hover */
.svc .br { opacity: 0.55; animation: corner 2.6s ease-in-out infinite; }

/* phones: a near-opaque header instead of a live blur (the blur repaints every scrolled frame) */
@media (pointer: coarse) {
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(8, 8, 8, 0.94); }
  .qm-backdrop { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(4, 4, 4, 0.92); }
}

/* ================= CALM MODE (opt-in from the footer) ================= */
html.calm *, html.calm *::before, html.calm *::after { animation: none !important; transition: none !important; }
html.calm .dw-particles, html.calm .dw-video-bg { display: none !important; }
html.calm .rv { opacity: 1 !important; transform: none !important; }
html.calm .hero-h1 .line > span { transform: none !important; }
.calm-toggle { background: none; border: 0; padding: 0; color: var(--dw-gray); font: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; }
.calm-toggle:hover { color: #fff; }

/* hero offer line */
.hero-offer { display: flex; align-items: center; gap: 10px; margin: 18px 0 0; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: #cfcfcf; }
.hero-offer .dot { width: 8px; height: 8px; background: #25d366; box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6); animation: offerPulse 1.8s ease-out infinite; }
@keyframes offerPulse { 0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6); } 100% { box-shadow: 0 0 0 10px rgba(37, 211, 102, 0); } }
