/* ==========================================================================
   RWN MAN — dark AI command-center aesthetic
   Base: near-black. Primary accent: red. Secondary: neon blue / teal.
   ========================================================================== */

:root {
  --bg: #050507;
  --bg-elevated: #0a0a0f;
  --charcoal: #101016;
  --surface: rgba(255, 255, 255, 0.025);
  --border: rgba(255, 255, 255, 0.09);
  --border-soft: rgba(255, 255, 255, 0.055);

  --text: #eceef2;
  --text-dim: #9a9fac;
  --text-faint: #5c6070;

  --red: #e53b47;
  --red-glow: rgba(229, 59, 71, 0.32);
  --blue: #4fc9ff;
  --teal: #2de2c8;
  --blue-glow: rgba(79, 201, 255, 0.18);

  --font-mono: "IBM Plex Mono", "SF Mono", "Roboto Mono", "Consolas", monospace;
  --font-display: "Space Grotesk", "IBM Plex Mono", sans-serif;

  --header-h: 76px;
  --radius: 16px;
  --container: 1200px;
}

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

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

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

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.12;
}

a { color: inherit; text-decoration: none; }
::selection { background: var(--red); color: #fff; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 15px 30px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
  white-space: nowrap;
}

.btn-primary {
  background: transparent;
  color: var(--text);
  border-color: rgba(79, 201, 255, 0.55);
  box-shadow: 0 0 20px rgba(79, 201, 255, 0.1);
}
.btn-primary:hover {
  transform: translateY(-2px);
  border-color: var(--blue);
  background: rgba(79, 201, 255, 0.08);
  box-shadow: 0 0 32px rgba(79, 201, 255, 0.22);
}

.btn-white {
  background: #f4f5f7;
  color: #0a0a0f;
  border-color: rgba(255, 255, 255, 0.2);
}
.btn-white:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 28px rgba(255, 255, 255, 0.16);
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(6, 6, 9, 0.55);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid var(--border-soft);
  transition: background 0.3s ease;
}
.site-header.scrolled { background: rgba(6, 6, 9, 0.82); }

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.14em;
}
.logo-mark { width: 34px; height: 34px; color: var(--text); display: block; }
.logo-mark svg { width: 100%; height: 100%; }

.header-nav {
  display: flex;
  gap: 36px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.header-nav a {
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: color 0.2s ease;
  position: relative;
}
.header-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 1px;
  background: var(--red);
  transition: width 0.25s ease;
}
.header-nav a:hover { color: var(--text); }
.header-nav a:hover::after { width: 100%; }
.header-nav a.nav-active { color: var(--text); }
.header-nav a.nav-active::after { width: 100%; }

.header-right { display: flex; align-items: center; gap: 22px; }

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  letter-spacing: 0.08em;
}
.lang-btn {
  background: none;
  border: none;
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  cursor: pointer;
  padding: 4px 2px;
  transition: color 0.2s ease;
}
.lang-btn:hover { color: var(--text-dim); }
.lang-btn.active { color: var(--text); text-shadow: 0 0 14px var(--blue-glow); }
.lang-divider { color: var(--text-faint); }

.header-cta { padding: 11px 22px; font-size: 12px; }

/* Mobile menu */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.menu-toggle span {
  display: block;
  width: 24px; height: 1.5px;
  background: var(--text);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child  { transform: translateY(-3.5px) rotate(-45deg); }

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px 32px 28px;
  border-top: 1px solid var(--border-soft);
}
.mobile-menu.open { display: flex; }
.mobile-menu a:not(.btn) {
  padding: 12px 0;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border-soft);
}
.mobile-menu .btn { margin-top: 18px; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 60px) 0 100px;
  overflow: hidden;
}

.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.028) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, black 30%, transparent 75%);
}
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.5;
}
.hero-glow-red  { width: 520px; height: 520px; background: rgba(229, 59, 71, 0.14); top: -160px; right: -120px; }
.hero-glow-blue { width: 460px; height: 460px; background: rgba(79, 201, 255, 0.08); bottom: -180px; left: -140px; }

.hero-inner {
  position: relative;
  z-index: 1;
  /* hug the left edge of the screen instead of the centered content column */
  max-width: none;
  margin: 0;
  padding: 0 clamp(32px, 4vw, 64px);
}

.hero-copy { max-width: 620px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-dim);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 18px;
  margin-bottom: 34px;
  background: var(--surface);
}

.pulse-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 10px var(--red);
  animation: pulse 2.2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.45; transform: scale(0.8); }
}

.hero h1 {
  font-size: clamp(38px, 4.6vw, 62px);
  margin-bottom: 26px;
}

.hero-sub {
  font-size: 16px;
  color: var(--text-dim);
  max-width: 480px;
  margin-bottom: 42px;
}

/* Hero visual — scroll-scrubbed helmet animation.
   .hero-pin is tall; the hero sticks to the top of it while the user's
   scroll through the extra height drives the animation playhead. */
.hero-pin { height: 280vh; }
.hero-pin .hero {
  position: sticky;
  top: 0;
  height: 100vh;
  min-height: 0;
}

/* Full-bleed footage layer behind the hero copy */
.scrub-stage {
  position: absolute;
  inset: 0;
  z-index: 0;
}

#scrubCanvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* Scrim: keeps the left copy readable and blends the hero into the page */
.scrub-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 5, 7, 0.94) 0%, rgba(5, 5, 7, 0.62) 38%, rgba(5, 5, 7, 0) 70%),
    linear-gradient(180deg, rgba(5, 5, 7, 0.5) 0%, rgba(5, 5, 7, 0) 22%, rgba(5, 5, 7, 0) 78%, #050507 100%);
}

/* Below the stacking breakpoint the hero unpins; the animation plays
   once on view instead (see script.js) */
@media (max-width: 1080px) {
  .hero-pin { height: auto; }
  .hero-pin .hero { position: static; height: auto; min-height: 100vh; }
}

/* ---------- Sections (shared) ---------- */

.section { padding: 130px 0; position: relative; }

.section-head {
  display: flex;
  align-items: baseline;
  gap: 22px;
  margin-bottom: 26px;
}
.section-head h2 { font-size: clamp(28px, 3.2vw, 44px); }
.section-index {
  font-size: 12px;
  color: var(--red);
  letter-spacing: 0.2em;
}
.section-head-center { justify-content: center; text-align: center; }

.section-sub {
  color: var(--text-dim);
  max-width: 620px;
  margin-bottom: 56px;
  font-size: 15px;
}
.section-sub-center { margin-left: auto; margin-right: auto; text-align: center; }

/* Scroll-reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ---------- About ---------- */

.about { background: linear-gradient(180deg, var(--bg), var(--charcoal) 50%, var(--bg)); }

.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 72px;
  align-items: start;
  margin-top: 40px;
}

.portrait-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(165deg, rgba(255,255,255,0.045), rgba(255,255,255,0.01) 55%), var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 0 70px rgba(79, 201, 255, 0.05), 0 20px 60px rgba(0,0,0,0.5);
}
.portrait-placeholder { width: 55%; color: var(--text-faint); }
.portrait-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.portrait-tag {
  position: absolute;
  bottom: 18px; left: 18px;
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--text-faint);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 7px 12px;
  background: rgba(5, 5, 7, 0.6);
  backdrop-filter: blur(8px);
}

.about-copy p { color: var(--text-dim); margin-bottom: 22px; }

/* Standalone page top section (clears the fixed header) */
.page-top { padding-top: calc(var(--header-h) + 90px); min-height: calc(100vh - 160px); }

.about-cta { margin-top: 40px; }

.proof-points {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 28px;
  margin-top: 38px;
}
.proof-points li {
  position: relative;
  padding: 14px 16px 14px 34px;
  font-size: 13px;
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
}
.proof-points li::before {
  content: "▸";
  position: absolute;
  left: 14px;
  color: var(--red);
}

/* ---------- Logo strip ---------- */

.logo-strip {
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  background: var(--bg-elevated);
  padding: 26px 0;
  overflow: hidden;
}

.logo-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}

.logo-track {
  display: flex;
  align-items: center;
  gap: clamp(56px, 8vw, 120px);
  width: max-content;
  /* -50% -> 0 plays the duplicated track moving left-to-right */
  animation: logoSlide 30s linear infinite;
}
.logo-marquee:hover .logo-track { animation-play-state: paused; }

@keyframes logoSlide {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}

.logo-item {
  display: flex;
  color: #878c98;
  opacity: 0.7;
  flex-shrink: 0;
}
.logo-item svg { height: 26px; width: auto; display: block; }
.logo-item img { height: 30px; width: auto; display: block; }

@media (prefers-reduced-motion: reduce) {
  .logo-track { animation: none; }
}

/* ---------- Reviews ---------- */

.reviews { overflow: hidden; }

.marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}

.marquee-track {
  display: flex;
  gap: 28px;
  width: max-content;
  padding: 10px 0 20px;
  animation: marquee 46s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.review-card {
  width: 420px;
  flex-shrink: 0;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: linear-gradient(165deg, rgba(255,255,255,0.035), rgba(255,255,255,0.008) 60%), var(--bg-elevated);
  padding: 34px 34px 30px;
  position: relative;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.review-card:hover {
  border-color: rgba(229, 59, 71, 0.3);
  box-shadow: 0 0 44px rgba(229, 59, 71, 0.07);
}

.quote-mark {
  display: block;
  font-family: var(--font-display);
  font-size: 64px;
  line-height: 0.6;
  color: var(--red);
  text-shadow: 0 0 30px var(--red-glow);
  margin-bottom: 22px;
}

.review-card blockquote {
  font-size: 14.5px;
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 24px;
}

.review-card figcaption {
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  padding-top: 16px;
  border-top: 1px solid var(--border-soft);
}

/* ---------- Solutions ---------- */

.solutions { background: linear-gradient(180deg, var(--bg), var(--charcoal) 55%, var(--bg)); }

.solutions .section-head { margin-bottom: 64px; max-width: 760px; }

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.solution-card {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  /* translucent tint over an opaque base so the circuit trace can't show through */
  background: linear-gradient(0deg, var(--surface), var(--surface)), var(--bg-elevated);
  padding: 34px 30px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.solution-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(79, 201, 255, 0.5), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.solution-card:hover {
  transform: translateY(-4px);
  border-color: var(--border);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45), 0 0 40px rgba(79, 201, 255, 0.05);
}
.solution-card:hover::before { opacity: 1; }

.card-num {
  display: block;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--red);
  margin-bottom: 22px;
}
.solution-card h3 { font-size: 19px; margin-bottom: 14px; }
.solution-card p { font-size: 13.5px; color: var(--text-dim); }

/* ---------- Contact ---------- */

.contact { overflow: hidden; }

.contact-glow {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 720px; height: 420px;
  background: radial-gradient(ellipse at center, rgba(229, 59, 71, 0.09), transparent 70%);
  filter: blur(50px);
  pointer-events: none;
}

.contact-inner { position: relative; }
.contact .section-sub { margin-bottom: 64px; }

.contact-form {
  max-width: 720px;
  margin: 0 auto;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: linear-gradient(170deg, rgba(255,255,255,0.03), rgba(255,255,255,0.006) 55%), var(--bg-elevated);
  padding: 48px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}

.form-field { display: flex; flex-direction: column; gap: 10px; }

.form-field label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.form-field input,
.form-field textarea {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  padding: 15px 16px;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  resize: vertical;
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--text-faint); }
.form-field input:focus,
.form-field textarea:focus {
  border-color: rgba(79, 201, 255, 0.45);
  box-shadow: 0 0 0 3px rgba(79, 201, 255, 0.08);
}

.btn-submit { margin-top: 6px; align-self: flex-start; }
.btn-submit[disabled] { opacity: 0.55; cursor: wait; transform: none; }

.form-status {
  font-size: 13px;
  padding: 14px 18px;
  border-radius: 10px;
  border: 1px solid;
}
.form-status-success { color: var(--teal); border-color: rgba(45, 226, 200, 0.3); background: rgba(45, 226, 200, 0.05); }
.form-status-error   { color: var(--red);  border-color: rgba(229, 59, 71, 0.35); background: rgba(229, 59, 71, 0.06); }

/* ---------- Circuit trace ---------- */

body { position: relative; }

.circuit-layer {
  position: absolute;
  left: 0;
  width: 100%;
  z-index: 1;
  pointer-events: none;
}
.circuit-layer svg { display: block; width: 100%; height: 100%; }

.circuit-wire { stroke: rgba(79, 201, 255, 0.13); }
.circuit-lit {
  stroke: rgba(79, 201, 255, 0.5);
  filter: drop-shadow(0 0 5px rgba(79, 201, 255, 0.55));
}

.circuit-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 130px;
  height: 130px;
  margin: -65px 0 0 -65px;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.circuit-glow.active { opacity: 1; }
/* pulse lives on a pseudo-element so it can't fight the JS-positioned transform */
.circuit-glow::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79, 201, 255, 0.4), rgba(79, 201, 255, 0.1) 45%, transparent 70%);
  animation: glowPulse 2.4s ease-in-out infinite;
}
.circuit-glow::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 7px;
  height: 7px;
  margin: -3.5px 0 0 -3.5px;
  border-radius: 50%;
  background: #d3efff;
  box-shadow: 0 0 14px #7fd8ff, 0 0 30px rgba(79, 201, 255, 0.8);
}
@keyframes glowPulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.28); }
}

/* content sits above the trace */
.section .container, .marquee, .logo-marquee { position: relative; z-index: 2; }

/* submit button = end of the circuit */
.submit-wrap {
  position: relative;
  display: inline-flex;
  margin-top: 6px;
  align-self: flex-start;
}
.submit-wrap .btn-submit { margin-top: 0; align-self: auto; }

.submit-ring {
  position: absolute;
  inset: -12px;
  width: calc(100% + 24px);
  height: calc(100% + 24px);
  pointer-events: none;
  overflow: visible;
}
.submit-ring rect {
  fill: none;
  stroke: var(--red);
  stroke-width: 1.5;
  opacity: 0;
}
body.circuit-done .submit-ring rect {
  opacity: 1;
  animation: ringDraw 0.9s ease-out forwards;
  filter: drop-shadow(0 0 7px rgba(229, 59, 71, 0.8));
}
@keyframes ringDraw {
  from { stroke-dashoffset: var(--ringlen); }
  to   { stroke-dashoffset: 0; }
}
body.circuit-done .btn-submit {
  border-color: var(--red);
  box-shadow: 0 0 38px rgba(229, 59, 71, 0.35);
}
.btn-submit { transition: border-color 0.3s ease, box-shadow 0.5s ease, transform 0.25s ease, background 0.25s ease; }

@media (max-width: 720px) {
  .submit-wrap { align-self: stretch; }
  .submit-wrap .btn-submit { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .circuit-glow::before { animation: none; }
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border-soft);
  padding: 42px 0;
  background: var(--bg-elevated);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-brand { font-size: 12px; color: var(--text-faint); letter-spacing: 0.04em; }

.footer-social { display: flex; gap: 26px; }
.footer-social a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  transition: color 0.25s ease;
}
.footer-social a:hover { color: var(--text); }

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .header-nav { display: none; }
  .hero { flex-direction: column; justify-content: center; align-items: stretch; padding-bottom: 60px; }
}

@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-portrait { max-width: 380px; }
  .solutions-grid { grid-template-columns: 1fr; }
  .section { padding: 90px 0; }
}

@media (max-width: 720px) {
  .header-cta { display: none; }
  .menu-toggle { display: flex; }
  .container, .header-inner { padding-left: 22px; padding-right: 22px; }

  .hero h1 { font-size: clamp(32px, 9vw, 42px); }

  .cc-body { grid-template-columns: 1fr; }
  .cc-panel-side { flex-direction: row; }

  .proof-points { grid-template-columns: 1fr; }
  .review-card { width: 320px; padding: 28px 26px 24px; }

  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 30px 22px; }
  .btn-submit { align-self: stretch; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ==========================================================================
   Personal-brand sections: videos, builds, socials, newsletter
   ========================================================================== */

/* ---------- Videos ---------- */

.videos { background: linear-gradient(180deg, var(--bg), var(--charcoal) 55%, var(--bg)); }

.videos-layout { display: flex; flex-direction: column; gap: 22px; }

.video-featured {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  max-height: 560px;
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.video-featured:hover {
  border-color: rgba(229, 59, 71, 0.4);
  box-shadow: 0 0 54px rgba(229, 59, 71, 0.12);
}
.video-featured img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.video-featured iframe {
  width: 100%; height: 100%;
  border: 0;
  display: block;
}
.video-play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 84px; height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: #fff;
  padding-left: 6px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(5, 5, 7, 0.55);
  backdrop-filter: blur(6px);
  box-shadow: 0 0 44px rgba(229, 59, 71, 0.35);
  transition: transform 0.25s ease, background 0.25s ease;
}
.video-featured:hover .video-play { transform: translate(-50%, -50%) scale(1.08); background: rgba(229, 59, 71, 0.75); }

.video-meta {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 90px 28px 24px;
  background: linear-gradient(180deg, transparent, rgba(5, 5, 7, 0.92));
}
.video-badge {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
  border: 1px solid rgba(229, 59, 71, 0.4);
  border-radius: 999px;
  padding: 5px 12px;
  background: rgba(5, 5, 7, 0.6);
}
.video-featured .video-title {
  font-family: var(--font-display);
  font-size: clamp(17px, 2.2vw, 24px);
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
  max-width: 780px;
}

.videos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.video-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: linear-gradient(0deg, var(--surface), var(--surface)), var(--bg-elevated);
  padding: 14px 14px 18px;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.video-card:hover {
  transform: translateY(-4px);
  border-color: var(--border);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45), 0 0 40px rgba(79, 201, 255, 0.05);
}
.video-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}
.video-card .video-title {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.video-card .video-date {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.videos-fallback { color: var(--text-dim); }
.videos-cta { margin-top: 40px; }

/* ---------- Builds ---------- */

.builds-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.build-card {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: linear-gradient(0deg, var(--surface), var(--surface)), var(--bg-elevated);
  overflow: hidden;
  position: relative;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.build-card:hover {
  transform: translateY(-4px);
  border-color: var(--border);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45), 0 0 40px rgba(45, 226, 200, 0.05);
}

.build-media { aspect-ratio: 16 / 9; background: #000; }
.build-media iframe, .build-media video, .build-media img {
  width: 100%; height: 100%;
  border: 0;
  object-fit: cover;
  display: block;
}

.build-body { padding: 30px; }
.build-date {
  display: block;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 16px;
}
.build-card h3 { font-size: 19px; margin-bottom: 12px; }
.build-card p { font-size: 13.5px; color: var(--text-dim); }

.build-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.build-tag {
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  padding: 5px 12px;
  background: var(--surface);
}
.build-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
}
.build-link:hover { text-shadow: 0 0 14px var(--blue-glow); }

/* ---------- Socials ---------- */

.socials { background: linear-gradient(180deg, var(--bg), var(--charcoal) 55%, var(--bg)); }

.socials-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.social-card {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: linear-gradient(0deg, var(--surface), var(--surface)), var(--bg-elevated);
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.social-card:hover {
  border-color: var(--border);
  box-shadow: 0 0 44px rgba(79, 201, 255, 0.06);
}

.social-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}
.social-icon {
  width: 52px; height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
}
.social-card h3 { font-size: 19px; }
.social-handle { font-size: 12px; color: var(--text-faint); letter-spacing: 0.06em; }
.social-desc { font-size: 13.5px; color: var(--text-dim); margin-bottom: 24px; }
.social-btn { margin-top: auto; }

.social-embeds { width: 100%; display: flex; flex-direction: column; gap: 16px; }
.social-embeds:not(:empty) { margin-top: 26px; }
.social-embeds iframe { width: 100%; border: 0; border-radius: 10px; background: #fff; }
.social-embeds .instagram-media { margin: 0 auto !important; }

/* ---------- Newsletter (band + page) ---------- */

.newsletter-band {
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  background:
    radial-gradient(ellipse 60% 120% at 80% 50%, rgba(229, 59, 71, 0.07), transparent 70%),
    var(--bg-elevated);
  padding: 74px 0;
  position: relative;
  z-index: 2;
}
.newsletter-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
}
.newsletter-copy h2 { font-size: clamp(24px, 2.6vw, 34px); margin-bottom: 12px; }
.newsletter-copy p { color: var(--text-dim); font-size: 14px; max-width: 460px; }

.newsletter-action { flex: 1; min-width: 320px; max-width: 480px; }

.newsletter-form { display: flex; gap: 12px; }
.newsletter-form input {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  padding: 15px 16px;
  outline: none;
  min-width: 0;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.newsletter-form input::placeholder { color: var(--text-faint); }
.newsletter-form input:focus {
  border-color: rgba(79, 201, 255, 0.45);
  box-shadow: 0 0 0 3px rgba(79, 201, 255, 0.08);
}
.newsletter-action .form-status { margin-top: 14px; }

/* Standalone newsletter page */
.newsletter-page { text-align: center; }
.newsletter-glow {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 720px; height: 420px;
  background: radial-gradient(ellipse at center, rgba(229, 59, 71, 0.09), transparent 70%);
  filter: blur(50px);
  pointer-events: none;
}
.newsletter-page-inner { position: relative; max-width: 720px; }
.newsletter-page .section-sub { margin-bottom: 44px; }

.news-points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 440px;
  margin: 0 auto 48px;
  text-align: left;
}
.news-points li {
  position: relative;
  padding: 14px 16px 14px 34px;
  font-size: 13px;
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  background: var(--surface);
}
.news-points li::before {
  content: "▸";
  position: absolute;
  left: 14px;
  color: var(--red);
}
.newsletter-form-page { max-width: 480px; margin: 0 auto; }
.newsletter-page .form-status { max-width: 480px; margin: 14px auto 0; }

/* ---------- Select (contact form) ---------- */

.form-field select {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  padding: 15px 16px;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' stroke='%239a9fac' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  cursor: pointer;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.form-field select:focus {
  border-color: rgba(79, 201, 255, 0.45);
  box-shadow: 0 0 0 3px rgba(79, 201, 255, 0.08);
}
.form-field select:invalid { color: var(--text-faint); }
.form-field select option { background: var(--bg-elevated); color: var(--text); }

/* ---------- Responsive: new sections ---------- */

@media (max-width: 1080px) {
  .videos-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .builds-grid, .socials-grid { grid-template-columns: 1fr; }
  .newsletter-inner { flex-direction: column; align-items: stretch; }
  .newsletter-action { max-width: none; }
}

@media (max-width: 720px) {
  .videos-grid { grid-template-columns: 1fr; }
  .video-meta { padding: 70px 18px 18px; }
  .video-play { width: 64px; height: 64px; font-size: 20px; }
  .newsletter-form { flex-direction: column; }
  .newsletter-form .btn { width: 100%; }
}
