/* ============================================================
   DDUDU — cinematic dark-tech landing
   Accent: #E50914 (the only accent color, per brand)
   ============================================================ */

:root {
  --bg: #0a0a0a;
  --bg-alt: #0e0e0e;
  --panel: #121212;
  --panel-2: #161616;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f2f0ec;
  --text-dim: #a8a49e;
  --text-faint: #6d6a66;
  --red: #e50914;
  --red-soft: rgba(229, 9, 20, 0.14);
  --red-glow: rgba(229, 9, 20, 0.35);
  --font-display: "Archivo", sans-serif;
  --font-body: "Instrument Sans", sans-serif;
  --font-mono: "JetBrains Mono", monospace;
  --nav-h: 68px;
  --radius: 14px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

img, video { max-width: 100%; display: block; }
a { color: inherit; }

.mono {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}
.accent { color: var(--red); }
.num { font-variant-numeric: tabular-nums; }

.container {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}
.container-narrow { width: min(860px, calc(100% - 48px)); }

/* ---------- film grain ---------- */
.grain {
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 8s steps(10) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -2%); }
  80% { transform: translate(3%, 3%); }
}

/* ---------- scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease var(--d, 0s), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1) var(--d, 0s);
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .grain, .rec-dot, .orb, .orb-2, .scanline { animation: none !important; }
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(10, 10, 10, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}
.nav.scrolled { border-bottom-color: var(--line); }

.nav-inner {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand-logo { height: 30px; width: auto; }
.brand-word {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 115%;
  font-size: 1.35rem;
  letter-spacing: 0.01em;
  align-items: center;
  gap: 8px;
}
.brand-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 12px var(--red-glow);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  text-decoration: none;
  font-size: 0.92rem;
  color: var(--text-dim);
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--text); }

.nav-cta {
  color: #fff !important;
  background: var(--red);
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 600;
  box-shadow: 0 0 18px rgba(229, 9, 20, 0.25);
  transition: box-shadow 0.25s ease, transform 0.15s ease;
}
.nav-cta:hover { box-shadow: 0 0 28px var(--red-glow); transform: translateY(-1px); }

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav-burger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 820px) {
  .nav-burger { display: flex; }
  .nav-links {
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #0a0a0a;
    border-bottom: 1px solid var(--line);
    padding: 12px 24px 24px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 4px; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
  .nav-links a:last-child { border-bottom: 0; margin-top: 14px; text-align: center; }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 30px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.25s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn-primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 0 24px rgba(229, 9, 20, 0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 36px var(--red-glow); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}
.btn-ghost:hover { border-color: var(--text-dim); transform: translateY(-2px); }
.btn-block { width: 100%; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 48px) 0 72px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 45% at 75% 30%, rgba(229, 9, 20, 0.13), transparent 65%),
    radial-gradient(ellipse 50% 40% at 15% 85%, rgba(229, 9, 20, 0.06), transparent 60%),
    linear-gradient(180deg, #0c0c0c 0%, var(--bg) 55%);
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 0%, transparent 75%);
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  color: var(--text-dim);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  margin-bottom: 28px;
}

.rec-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 10px var(--red-glow);
  animation: blink 1.4s steps(2, start) infinite;
}
@keyframes blink { 50% { opacity: 0.25; } }

.hero h1 {
  font-family: var(--font-display);
  font-weight: 850;
  font-stretch: 118%;
  font-size: clamp(2.5rem, 5.4vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.hero h1 em {
  font-style: normal;
  color: var(--red);
  text-shadow: 0 0 40px var(--red-glow);
}

.hero-sub {
  margin-top: 24px;
  max-width: 52ch;
  font-size: 1.13rem;
  color: var(--text-dim);
}
.hero-sub strong { color: var(--text); }

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 36px;
  margin-top: 44px;
  list-style: none;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
.hero-proof li {
  font-size: 0.9rem;
  color: var(--text-faint);
}
.hero-proof strong {
  display: block;
  font-family: var(--font-display);
  font-stretch: 110%;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
}

@media (max-width: 980px) {
  .hero { min-height: 0; }
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-monitor { max-width: 520px; }
}
@media (max-width: 560px) {
  .hero h1 { font-size: clamp(2.1rem, 9.5vw, 2.5rem); text-wrap: initial; }
  .hero h1 br { display: none; }
}

/* --- hero monitor --- */
.monitor {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #0d0d0d;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 60px rgba(229, 9, 20, 0.07);
}
.corner {
  position: absolute;
  width: 18px; height: 18px;
  border-color: var(--red);
  border-style: solid;
  border-width: 0;
}
.corner.tl { top: 8px; left: 8px; border-top-width: 2px; border-left-width: 2px; }
.corner.tr { top: 8px; right: 8px; border-top-width: 2px; border-right-width: 2px; }
.corner.bl { bottom: 8px; left: 8px; border-bottom-width: 2px; border-left-width: 2px; }
.corner.br { bottom: 8px; right: 8px; border-bottom-width: 2px; border-right-width: 2px; }

.monitor-top, .monitor-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-dim);
  position: relative;
  z-index: 2;
}
.rec { color: var(--text); display: inline-flex; align-items: center; gap: 7px; }

.monitor-scene {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 10px;
}
.orb {
  position: absolute;
  width: 55%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(229, 9, 20, 0.55), rgba(229, 9, 20, 0.08) 60%, transparent 72%);
  filter: blur(6px);
  top: 12%;
  left: 42%;
  animation: drift 9s ease-in-out infinite alternate;
}
.orb-2 {
  width: 40%;
  top: 45%;
  left: 8%;
  background: radial-gradient(circle at 60% 40%, rgba(229, 9, 20, 0.3), transparent 70%);
  animation-duration: 12s;
  animation-direction: alternate-reverse;
}
@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-8%, 10%) scale(1.12); }
}
.scanline {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, transparent 0 3px, rgba(0, 0, 0, 0.18) 3px 4px);
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 110px 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }

.section-head { margin-bottom: 56px; max-width: 720px; }
.section-tag {
  display: inline-block;
  color: var(--red);
  letter-spacing: 0.24em;
  margin-bottom: 18px;
}
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 830;
  font-stretch: 115%;
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  line-height: 1.06;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.section-sub {
  margin-top: 18px;
  color: var(--text-dim);
  font-size: 1.05rem;
  max-width: 58ch;
}
.section-sub a { color: var(--text); }

/* ============================================================
   PRICING
   ============================================================ */
.pricing-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 24px;
  align-items: start;
}

.tier-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.tier {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.tier:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.tier-featured {
  border-color: rgba(229, 9, 20, 0.45);
  background: linear-gradient(160deg, rgba(229, 9, 20, 0.07), var(--panel) 45%);
  box-shadow: 0 0 40px rgba(229, 9, 20, 0.08);
}
.tier-featured:hover { border-color: var(--red); }
.tier-addon { grid-column: 1 / -1; }

.tier-badge {
  position: absolute;
  top: -10px;
  right: 20px;
  background: var(--red);
  color: #fff;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
}
.tier h3 {
  font-family: var(--font-display);
  font-stretch: 112%;
  font-size: 1.25rem;
  font-weight: 750;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.addon-chip {
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  border: 1px solid var(--red);
  color: var(--red);
  border-radius: 999px;
  padding: 3px 9px;
}
.tier-rate { margin-top: 10px; }
.tier-rate .num {
  font-family: var(--font-display);
  font-stretch: 110%;
  font-size: 2.3rem;
  font-weight: 830;
}
.tier-rate .per { color: var(--text-faint); margin-left: 6px; font-size: 0.95rem; }
.tier-blurb { margin-top: 12px; color: var(--text-dim); font-size: 0.95rem; }
.tier-blurb strong { color: var(--text); }
.tier ul {
  margin-top: 16px;
  list-style: none;
  display: grid;
  gap: 8px;
}
.tier-addon ul { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.tier li {
  font-size: 0.9rem;
  color: var(--text-dim);
  padding-left: 20px;
  position: relative;
}
.tier li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 8px; height: 2px;
  background: var(--red);
}
.tier-example {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
  color: var(--text);
  font-size: 0.78rem;
}

/* --- calculator --- */
.calc {
  position: sticky;
  top: calc(var(--nav-h) + 20px);
  background: var(--panel-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.calc-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 26px;
}
.calc-head h3 {
  font-family: var(--font-display);
  font-stretch: 112%;
  font-size: 1.3rem;
  font-weight: 780;
}
.calc-tag { color: var(--red); font-size: 0.6rem; letter-spacing: 0.2em; }

.calc-row { margin-bottom: 24px; }
.calc-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
  font-size: 0.92rem;
  color: var(--text-dim);
}
.calc-duration { color: var(--text); font-size: 1rem; font-weight: 700; }

input[type="range"] {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--red) var(--fill, 20%), rgba(255, 255, 255, 0.14) var(--fill, 20%));
  outline: none;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid var(--red);
  box-shadow: 0 0 14px var(--red-glow);
  cursor: grab;
}
input[type="range"]::-moz-range-thumb {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid var(--red);
  box-shadow: 0 0 14px var(--red-glow);
  cursor: grab;
}
.calc-hint { margin-top: 8px; color: var(--text-faint); font-size: 0.62rem; }

.seg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.seg-btn {
  display: flex;
  flex-direction: column;
  gap: 3px;
  align-items: center;
  padding: 12px 8px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text-dim);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.seg-btn .mono { font-size: 0.66rem; color: var(--text-faint); }
.seg-btn.is-active {
  border-color: var(--red);
  color: var(--text);
  background: var(--red-soft);
}
.seg-btn.is-active .mono { color: var(--red); }

.check {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.check:has(input:checked) { border-color: var(--red); background: var(--red-soft); }
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check-box {
  flex: none;
  width: 20px; height: 20px;
  border: 1.5px solid var(--line-strong);
  border-radius: 5px;
  position: relative;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.check input:checked + .check-box { background: var(--red); border-color: var(--red); }
.check input:checked + .check-box::after {
  content: "";
  position: absolute;
  left: 6px; top: 2px;
  width: 5px; height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.check-text { flex: 1; font-size: 0.92rem; font-weight: 600; }
.check-text em { display: block; font-style: normal; font-weight: 400; font-size: 0.8rem; color: var(--text-faint); }
.check-price { color: var(--text); font-size: 0.8rem; }

.calc-total { border-top: 1px solid var(--line); padding-top: 20px; }
.calc-breakdown { color: var(--text-faint); font-size: 0.72rem; margin-bottom: 8px; }
.calc-sum {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 18px;
}
.calc-sum-label { color: var(--text-dim); font-size: 0.62rem; letter-spacing: 0.2em; }
.calc-sum .num {
  font-family: var(--font-display);
  font-stretch: 110%;
  font-size: 2.4rem;
  font-weight: 830;
  color: var(--text);
  text-shadow: 0 0 30px rgba(229, 9, 20, 0.25);
}
.calc-note { margin-top: 12px; font-size: 0.8rem; color: var(--text-faint); text-align: center; }
.calc-note em { color: var(--text-dim); font-style: normal; font-weight: 600; }

@media (max-width: 980px) {
  .pricing-grid { grid-template-columns: 1fr; }
  .calc { position: static; }
}
@media (max-width: 640px) {
  .tier-cards { grid-template-columns: 1fr; }
}

/* ============================================================
   WHY
   ============================================================ */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.why-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.why-card:hover { border-color: rgba(229, 9, 20, 0.4); transform: translateY(-4px); }
.why-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border: 1px solid var(--red);
  border-radius: 8px;
  color: var(--red);
  font-size: 0.85rem;
  margin-bottom: 18px;
}
.why-card h3 {
  font-family: var(--font-display);
  font-stretch: 110%;
  font-size: 1.1rem;
  font-weight: 750;
  margin-bottom: 10px;
}
.why-card p { font-size: 0.92rem; color: var(--text-dim); }

@media (max-width: 980px) { .why-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .why-grid { grid-template-columns: 1fr; } }

/* ============================================================
   TIMELINE
   ============================================================ */
.timeline {
  list-style: none;
  max-width: 760px;
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 27px;
  top: 10px; bottom: 10px;
  width: 1px;
  background: var(--line);
}
.step {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 22px 0;
}
.step-num {
  flex: none;
  width: 54px; height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--text-dim);
  font-size: 0.8rem;
  position: relative;
  z-index: 1;
}
.step-body { flex: 1; padding-top: 6px; }
.step-body h3 {
  font-family: var(--font-display);
  font-stretch: 110%;
  font-size: 1.15rem;
  font-weight: 750;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.step-flag {
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  background: var(--red);
  color: #fff;
  padding: 3px 9px;
  border-radius: 999px;
}
.step-body p { margin-top: 6px; color: var(--text-dim); font-size: 0.95rem; max-width: 52ch; }
.step-cost {
  flex: none;
  padding-top: 12px;
  color: var(--text-faint);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
}
.step-cost.free { color: var(--red); }

.timeline-divider {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 26px 0;
}
.timeline-divider::before,
.timeline-divider::after {
  content: "";
  flex: 1;
  border-top: 1px dashed rgba(229, 9, 20, 0.55);
}
.timeline-divider .mono {
  color: var(--red);
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  white-space: nowrap;
  background: var(--bg);
  padding: 6px 4px;
}

@media (max-width: 560px) {
  .timeline::before { left: 21px; }
  .step { gap: 16px; }
  .step-num { width: 42px; height: 42px; font-size: 0.7rem; }
  .step-cost { display: none; }
  .timeline-divider .mono { white-space: normal; text-align: center; }
}

/* ============================================================
   WORK / PORTFOLIO
   ============================================================ */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.work-tile {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.work-tile:hover {
  border-color: rgba(229, 9, 20, 0.5);
  transform: translateY(-4px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5), 0 0 30px rgba(229, 9, 20, 0.1);
}
.work-tile:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

.work-thumb {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, opacity 0.3s ease;
}
.work-tile:hover .work-thumb { transform: scale(1.04); }

.work-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.25), transparent 35%, transparent 60%, rgba(0, 0, 0, 0.65));
}
.work-meta {
  display: flex;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.75);
}
.work-title {
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
}
.work-play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 62px; height: 62px;
  border-radius: 50%;
  background: rgba(229, 9, 20, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 30px var(--red-glow);
  transition: transform 0.2s ease;
}
.work-tile:hover .work-play { transform: translate(-50%, -50%) scale(1.1); }
.work-play::after {
  content: "";
  width: 0; height: 0;
  border-left: 16px solid #fff;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  margin-left: 4px;
}

.work-tile.is-placeholder .work-thumb { display: none; }
.work-tile.is-placeholder {
  background:
    repeating-linear-gradient(-45deg, transparent 0 14px, rgba(255, 255, 255, 0.02) 14px 28px),
    var(--panel);
  cursor: default;
}
.work-tile.is-placeholder .work-play { display: none; }

@media (max-width: 980px) { .work-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .work-grid { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------
   Video modal (lightbox)
   ------------------------------------------------------------ */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.video-modal[hidden] { display: none; }

.video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.28s ease;
}
.video-modal.is-open .video-modal-backdrop { opacity: 1; }

.video-modal-inner {
  position: relative;
  width: min(1000px, 100%);
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  transition: opacity 0.28s ease, transform 0.28s ease;
}
.video-modal.is-open .video-modal-inner {
  opacity: 1;
  transform: none;
}

.video-modal-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  background: #000;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 40px rgba(229, 9, 20, 0.12);
}
.video-modal-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  border: 0;
}

.video-modal-caption {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-top: 14px;
  color: var(--text-dim);
}
.video-modal-caption .mono { color: var(--red); font-size: 0.66rem; letter-spacing: 0.18em; }
.video-modal-title { color: var(--text); font-weight: 600; font-size: 0.95rem; }

.video-modal-close {
  position: absolute;
  top: -14px; right: -14px;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.video-modal-close:hover {
  border-color: var(--red);
  transform: rotate(90deg);
  box-shadow: 0 0 24px var(--red-glow);
}
.video-modal-close:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.video-modal-close::before,
.video-modal-close::after {
  content: "";
  position: absolute;
  width: 16px; height: 2px;
  background: currentColor;
  border-radius: 2px;
}
.video-modal-close::before { transform: rotate(45deg); }
.video-modal-close::after { transform: rotate(-45deg); }

@media (max-width: 620px) {
  .video-modal { padding: 16px; }
  .video-modal-close { top: -10px; right: -6px; }
}

@media (prefers-reduced-motion: reduce) {
  .video-modal-backdrop,
  .video-modal-inner { transition: none; }
  .video-modal-close:hover { transform: none; }
}

/* ============================================================
   TERMS ACCORDION
   ============================================================ */
.accordion { border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 22px 4px;
  cursor: pointer;
  font-family: var(--font-display);
  font-stretch: 110%;
  font-size: 1.08rem;
  font-weight: 700;
  transition: color 0.2s ease;
}
.acc-item summary::-webkit-details-marker { display: none; }
.acc-item summary:hover { color: var(--red); }
.acc-item summary:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 6px; }

.acc-icon {
  flex: none;
  position: relative;
  width: 16px; height: 16px;
}
.acc-icon::before, .acc-icon::after {
  content: "";
  position: absolute;
  background: var(--red);
  transition: transform 0.25s ease;
}
.acc-icon::before { left: 0; top: 7px; width: 16px; height: 2px; }
.acc-icon::after { left: 7px; top: 0; width: 2px; height: 16px; }
.acc-item[open] .acc-icon::after { transform: scaleY(0); }

.acc-body { padding: 0 4px 24px; max-width: 68ch; }
.acc-body p { color: var(--text-dim); font-size: 0.97rem; margin-bottom: 12px; }
.acc-body p:last-child { margin-bottom: 0; }
.acc-body strong { color: var(--text); }
.acc-body em { color: var(--text-faint); }

/* ============================================================
   CONTACT
   ============================================================ */
.section-contact {
  position: relative;
  background:
    radial-gradient(ellipse 55% 50% at 50% 110%, rgba(229, 9, 20, 0.12), transparent 70%),
    var(--bg);
}
.mail-link {
  color: var(--red);
  font-weight: 600;
  text-decoration-color: rgba(229, 9, 20, 0.4);
  text-underline-offset: 3px;
}

.contact-form {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 8px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 13px 15px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.98rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-faint); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.18);
}
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23a8a49e' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
}
.form-note {
  margin-top: 14px;
  text-align: center;
  color: var(--text-faint);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
}
.form-note[data-state="success"] { color: #25d366; }
.form-note[data-state="error"] { color: var(--red); }

/* Contact alternative: WhatsApp */
.contact-alt {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.contact-or {
  color: var(--text-faint);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
}
.contact-alt-btns {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.btn-calendly,
.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.btn-calendly:hover {
  border-color: var(--red);
  color: var(--red);
}
.btn-whatsapp:hover {
  border-color: #25d366;
  color: #25d366;
}
.btn-calendly svg,
.btn-whatsapp svg { flex: none; }

@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .contact-form { padding: 24px 20px; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--line);
  padding: 48px 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  flex-wrap: wrap;
}
.footer-tag { margin-top: 12px; color: var(--text-faint); font-size: 0.9rem; max-width: 40ch; }
.footer-meta { text-align: right; }
.footer-meta .mail-link { display: inline-block; margin-bottom: 10px; font-size: 0.95rem; }
.footer-meta .mono { color: var(--text-faint); font-size: 0.62rem; }

@media (max-width: 560px) {
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-meta { text-align: left; }
}
