/* =========================================================
   CWG Innovation — Design System
   Theme: "Intelligent Fire" — red + purple on deep space
   ========================================================= */

:root {
  /* Brand palette — drawn from the CWG logo (royal purple + true red) */
  --red: #e8112d;
  --red-deep: #c10020;
  --ember: #ff6b35;
  --purple: #7b2ff0;
  --purple-deep: #4d12a6;
  --magenta: #c026d3;
  --brand-purple: #4d12a6;
  --brand-red: #d6001c;

  /* Surfaces */
  --bg: #0b0510;
  --bg-2: #120a1d;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --stroke: rgba(255, 255, 255, 0.09);
  --stroke-strong: rgba(255, 255, 255, 0.16);

  /* Text */
  --text: #f4eefb;
  --muted: #b3a6c4;
  --faint: #8a7da0;

  /* Signature gradients */
  --fire: linear-gradient(120deg, var(--red) 0%, var(--ember) 38%, var(--magenta) 70%, var(--purple) 100%);
  --fire-soft: linear-gradient(120deg, rgba(255,45,85,0.9), rgba(168,85,247,0.9));

  --radius: 18px;
  --radius-sm: 12px;
  --maxw: 1160px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .brand__text { font-family: "Sora", "Inter", sans-serif; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { width: min(var(--maxw), 92vw); margin-inline: auto; }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Ambient background ---------- */
#ember-canvas {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
}

.aurora {
  position: fixed; inset: -20% -10% auto -10%; height: 90vh; z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(50% 55% at 18% 12%, rgba(255, 45, 85, 0.28), transparent 70%),
    radial-gradient(55% 60% at 82% 8%, rgba(168, 85, 247, 0.26), transparent 70%),
    radial-gradient(45% 50% at 55% 30%, rgba(255, 107, 53, 0.14), transparent 70%);
  filter: blur(8px);
  animation: drift 18s ease-in-out infinite alternate;
}
@keyframes drift {
  from { transform: translate3d(-2%, -1%, 0) scale(1); }
  to   { transform: translate3d(3%, 2%, 0) scale(1.08); }
}

main, .nav, .footer { position: relative; z-index: 1; }

/* ---------- Buttons ---------- */
.btn {
  --pad: 0.85rem 1.5rem;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: var(--pad);
  font: 600 0.95rem/1 "Sora", sans-serif;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s;
  white-space: nowrap;
}
.btn--primary {
  background: var(--fire);
  color: #fff;
  background-size: 160% 160%;
  box-shadow: 0 10px 30px -10px rgba(255, 45, 85, 0.6), 0 4px 14px -6px rgba(168, 85, 247, 0.5);
}
.btn--primary:hover {
  transform: translateY(-2px);
  background-position: 100% 0;
  box-shadow: 0 16px 40px -10px rgba(255, 45, 85, 0.7), 0 6px 20px -6px rgba(168, 85, 247, 0.6);
}
.btn--ghost {
  background: var(--surface);
  border-color: var(--stroke-strong);
  color: var(--text);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover { transform: translateY(-2px); border-color: var(--red); background: var(--surface-2); }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background 0.35s, border-color 0.35s, backdrop-filter 0.35s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(11, 5, 16, 0.72);
  backdrop-filter: blur(16px) saturate(140%);
}
.nav__inner {
  width: min(var(--maxw), 92vw); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.brand { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 700; }
.brand__mark { display: grid; place-items: center; filter: drop-shadow(0 0 10px rgba(255, 75, 110, 0.5)); }
.brand__text { font-size: 1.18rem; letter-spacing: -0.01em; }
.brand__accent {
  background: var(--fire); -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-left: 2px;
}
/* Logo: brightened + soft glow so the deep-purple mark reads on the dark header */
.brand__logo {
  height: 32px; width: auto; display: block;
  filter: brightness(1.5) saturate(1.1)
          drop-shadow(0 0 0.5px rgba(255,255,255,0.35))
          drop-shadow(0 2px 9px rgba(123,47,240,0.6));
}
.brand__suffix { font: 600 1.12rem "Sora", sans-serif; letter-spacing: -0.01em; color: var(--text); }
.footer .brand__logo { height: 26px; }
.footer .brand__suffix { font-size: 1.02rem; }
/* Card icons use a solid brand stroke (overrides the inline gradient ref) */
.card__icon svg { stroke: var(--red); }
.nav__links { display: flex; align-items: center; gap: 2rem; }
.nav__links a { color: var(--muted); font: 500 0.94rem "Inter"; transition: color 0.2s; }
.nav__links a:not(.btn):hover { color: var(--text); }
.nav__cta { color: var(--text) !important; padding: 0.6rem 1.2rem; }

.nav__toggle {
  display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px;
}
.nav__toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: 0.3s; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh; display: flex; flex-direction: column; justify-content: center;
  padding: 120px 0 80px;
  position: relative;
}
.hero__grid {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 3rem; align-items: center;
}
.eyebrow {
  display: inline-block;
  font: 600 0.78rem/1 "Sora"; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--red);
  padding: 0.5rem 0.9rem; border-radius: 999px;
  border: 1px solid var(--stroke-strong);
  background: var(--surface);
  margin-bottom: 1.4rem;
}
.hero__title {
  font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1.04; font-weight: 800;
  letter-spacing: -0.03em; margin-bottom: 1.4rem;
}
.flame-text {
  display: block;
  background: var(--fire); background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: flameShift 6s ease-in-out infinite;
}
@keyframes flameShift { 0%,100% { background-position: 0% center; } 50% { background-position: 100% center; } }

.hero__lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--muted); max-width: 34rem; margin-bottom: 2rem; }
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.6rem; }

.hero__trust { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; }
.trust__item { display: flex; flex-direction: column; }
.trust__item strong { font: 700 1.35rem "Sora"; letter-spacing: -0.02em; }
.trust__item span { font-size: 0.82rem; color: var(--faint); }
.trust__divider { width: 1px; height: 34px; background: var(--stroke); }

/* Hero orb */
.hero__visual { display: grid; place-items: center; }
.orb { position: relative; width: min(420px, 80vw); aspect-ratio: 1; display: grid; place-items: center; }
.orb__core {
  width: 46%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffd6a0, var(--ember) 30%, var(--red) 55%, var(--purple-deep) 100%);
  box-shadow: 0 0 70px 6px rgba(255, 75, 110, 0.55), 0 0 140px 30px rgba(168, 85, 247, 0.35);
  animation: pulse 4s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.06); } }
.orb__ring {
  position: absolute; inset: 0; margin: auto; border-radius: 50%;
  border: 1px solid var(--stroke-strong);
}
.orb__ring--1 { width: 70%; aspect-ratio: 1; border-color: rgba(255, 45, 85, 0.4); animation: spin 14s linear infinite; }
.orb__ring--2 { width: 88%; aspect-ratio: 1; border-color: rgba(168, 85, 247, 0.35); animation: spin 22s linear infinite reverse; }
.orb__ring--3 { width: 100%; aspect-ratio: 1; border-style: dashed; border-color: rgba(255,255,255,0.1); animation: spin 40s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.orb__spark { position: absolute; width: 12px; aspect-ratio: 1; border-radius: 50%; box-shadow: 0 0 14px 2px currentColor; }
.orb__spark--a { color: var(--red); top: 8%; left: 50%; animation: orbit 14s linear infinite; }
.orb__spark--b { color: var(--purple); top: 50%; left: 4%; animation: orbit 22s linear infinite reverse; }
.orb__spark--c { color: var(--ember); bottom: 6%; left: 50%; animation: orbit 30s linear infinite; }
@keyframes orbit { to { transform: rotate(360deg) translateY(2px); } }

/* Scroll cue */
.scroll-cue {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  width: 26px; height: 42px; border: 2px solid var(--stroke-strong); border-radius: 14px;
  display: grid; justify-items: center; padding-top: 7px;
}
.scroll-cue span { width: 4px; height: 8px; border-radius: 4px; background: var(--red); animation: cue 1.6s ease-in-out infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(-3px); } 50% { opacity: 1; } 100% { opacity: 0; transform: translateY(10px); } }

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden; border-block: 1px solid var(--stroke);
  background: linear-gradient(90deg, rgba(255,45,85,0.05), rgba(168,85,247,0.05));
  padding: 1rem 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track { display: flex; gap: 1.6rem; align-items: center; width: max-content; animation: scroll 26s linear infinite; }
.marquee__track span { font: 600 1.1rem "Sora"; color: var(--muted); letter-spacing: -0.01em; }
.marquee__track .dot { color: var(--red); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: clamp(5rem, 10vw, 8rem) 0; }
.section--alt { background: linear-gradient(180deg, transparent, rgba(18, 10, 29, 0.6) 30%, transparent); }
.section__head { max-width: 42rem; margin: 0 auto 3.4rem; text-align: center; }
.section__head h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); line-height: 1.1; letter-spacing: -0.025em; margin-bottom: 1rem; }
.section__head p { color: var(--muted); font-size: 1.08rem; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.card {
  position: relative; padding: 2.2rem 1.9rem; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--stroke);
  overflow: hidden; transition: transform 0.4s var(--ease), border-color 0.4s, background 0.4s;
}
.card::before {
  content: ""; position: absolute; inset: 0; padding: 1px; border-radius: inherit;
  background: var(--fire); opacity: 0; transition: opacity 0.4s;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.card:hover { transform: translateY(-6px); background: var(--surface-2); }
.card:hover::before { opacity: 1; }
.card__icon {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
  font-size: 1.5rem; margin-bottom: 1.3rem;
  background: linear-gradient(135deg, rgba(255,45,85,0.16), rgba(168,85,247,0.16));
  border: 1px solid var(--stroke-strong);
}
.card h3 { font-size: 1.3rem; margin-bottom: 0.6rem; letter-spacing: -0.01em; }
.card p { color: var(--muted); }

/* Split / capabilities */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3.4rem; align-items: center; }
.split__copy h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); letter-spacing: -0.025em; margin: 0.8rem 0 1rem; line-height: 1.12; }
.lead { color: var(--muted); font-size: 1.1rem; margin-bottom: 1.6rem; }
.ticks { list-style: none; display: grid; gap: 0.9rem; margin-bottom: 2rem; }
.ticks li { position: relative; padding-left: 2rem; color: var(--text); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 0.35em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--fire);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 6L9 17l-5-5' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 6L9 17l-5-5' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat;
}

/* Capability panel mock */
.panel {
  border-radius: var(--radius); border: 1px solid var(--stroke); overflow: hidden;
  background: linear-gradient(160deg, rgba(18,10,29,0.9), rgba(11,5,16,0.9));
  box-shadow: 0 30px 80px -30px rgba(168, 85, 247, 0.5), 0 0 0 1px rgba(255,255,255,0.02);
}
.panel__bar { display: flex; gap: 7px; padding: 14px 16px; border-bottom: 1px solid var(--stroke); }
.panel__bar span { width: 11px; height: 11px; border-radius: 50%; background: var(--stroke-strong); }
.panel__bar span:first-child { background: var(--red); }
.panel__bar span:nth-child(2) { background: var(--ember); }
.panel__bar span:nth-child(3) { background: var(--purple); }
.panel__body { padding: 1.6rem; display: grid; gap: 1rem; }
.pill { display: inline-block; width: max-content; font: 600 0.8rem "Sora"; padding: 0.35rem 0.8rem; border-radius: 999px; border: 1px solid var(--stroke-strong); color: var(--muted); }
.pill--hot { background: linear-gradient(135deg, rgba(255,45,85,0.22), rgba(168,85,247,0.22)); color: #fff; border-color: transparent; }
.meter { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 0.8rem; position: relative; }
.meter b { font: 500 0.85rem "Inter"; color: var(--muted); order: 2; }
.meter i { height: 8px; border-radius: 8px; background: var(--stroke); position: relative; order: 1; overflow: hidden; }
.meter i::after {
  content: ""; position: absolute; inset: 0; width: var(--w); border-radius: 8px;
  background: var(--fire); box-shadow: 0 0 14px rgba(255, 75, 110, 0.5);
  transform-origin: left; animation: grow 1.4s var(--ease) both;
}
@keyframes grow { from { transform: scaleX(0); } }
.panel__note { font-size: 0.85rem; color: var(--faint); margin-top: 0.4rem; }

/* ---------- Page header (inner pages) ---------- */
.pagehead { padding: 150px 0 40px; text-align: center; }
.pagehead .eyebrow { margin-bottom: 1.2rem; }
.pagehead__title { font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.06; letter-spacing: -0.03em; font-weight: 800; max-width: 18ch; margin: 0 auto 1.1rem; }
.pagehead__title .flame-text { display: inline; }
.pagehead__lead { color: var(--muted); font-size: clamp(1.02rem, 1.5vw, 1.18rem); max-width: 42rem; margin: 0 auto; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.step {
  position: relative; padding: 2.2rem 1.9rem; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--stroke);
  transition: transform 0.35s var(--ease), border-color 0.35s;
}
.step:hover { transform: translateY(-5px); border-color: var(--stroke-strong); }
.step__num {
  display: inline-block; font: 800 1rem "Sora"; letter-spacing: 0.04em; margin-bottom: 1rem;
  background: var(--fire); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.step h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.step p { color: var(--muted); }

/* Solutions */
.solutions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.solution {
  padding: 2rem; border-radius: var(--radius); border: 1px solid var(--stroke);
  background: var(--surface); transition: transform 0.35s var(--ease), border-color 0.35s;
  position: relative;
}
.solution::after {
  content: ""; position: absolute; left: 2rem; bottom: 1.4rem; width: 0; height: 2px;
  background: var(--fire); transition: width 0.4s var(--ease); border-radius: 2px;
}
.solution:hover { transform: translateY(-4px); border-color: var(--stroke-strong); }
.solution:hover::after { width: 48px; }
.solution h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.solution p { color: var(--muted); }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.stat {
  text-align: center; padding: 2.2rem 1rem; border-radius: var(--radius);
  border: 1px solid var(--stroke); background: var(--surface);
}
.stat__num {
  display: block; font: 800 clamp(2.2rem, 4vw, 3.2rem) "Sora"; letter-spacing: -0.03em;
  background: var(--fire); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat__label { color: var(--muted); font-size: 0.92rem; }

/* ---------- CTA ---------- */
.cta { padding: clamp(4rem, 8vw, 6rem) 0 clamp(6rem, 10vw, 8rem); }
.cta__inner {
  position: relative; text-align: center; padding: clamp(2.6rem, 6vw, 4.5rem) 2rem;
  border-radius: 28px; overflow: hidden;
  border: 1px solid var(--stroke-strong);
  background: linear-gradient(160deg, rgba(18,10,29,0.85), rgba(11,5,16,0.85));
}
.cta__glow {
  position: absolute; inset: auto -10% -60% -10%; height: 110%;
  background: radial-gradient(50% 60% at 50% 100%, rgba(255,45,85,0.45), transparent 60%),
              radial-gradient(60% 60% at 30% 100%, rgba(168,85,247,0.4), transparent 60%);
  filter: blur(20px);
}
.cta__inner > * { position: relative; z-index: 1; }
.cta__inner h2 { font-size: clamp(1.9rem, 4.5vw, 3rem); letter-spacing: -0.025em; margin-bottom: 1rem; }
.cta__inner > p { color: var(--muted); max-width: 36rem; margin: 0 auto 2rem; font-size: 1.08rem; }
.cta__form { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; max-width: 40rem; margin-inline: auto; }
.field { flex: 1 1 200px; }
.cta__form input {
  width: 100%; padding: 0.85rem 1.2rem; border-radius: 999px;
  background: rgba(0,0,0,0.3); border: 1px solid var(--stroke-strong); color: var(--text);
  font: 400 0.95rem "Inter"; transition: border-color 0.25s, box-shadow 0.25s;
}
.cta__form input::placeholder { color: var(--faint); }
.cta__form input:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(255,45,85,0.18); }
.cta__form .btn { flex: 0 0 auto; }
.cta__note { margin-top: 1rem; font-size: 0.92rem; color: var(--ember); min-height: 1.2em; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1.4fr 0.9fr; gap: 2.4rem; align-items: start; }
.contact__form {
  padding: 2.2rem; border-radius: var(--radius); border: 1px solid var(--stroke);
  background: var(--surface);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.field-block { display: grid; gap: 0.45rem; margin-bottom: 1.2rem; }
.field-block label { font: 500 0.85rem "Sora"; color: var(--muted); letter-spacing: 0.01em; }
.field-block input,
.field-block select,
.field-block textarea {
  width: 100%; padding: 0.8rem 1rem; border-radius: var(--radius-sm);
  background: rgba(0,0,0,0.28); border: 1px solid var(--stroke-strong); color: var(--text);
  font: 400 0.95rem "Inter"; transition: border-color 0.25s, box-shadow 0.25s; resize: vertical;
}
.field-block input::placeholder,
.field-block textarea::placeholder { color: var(--faint); }
.field-block select { appearance: none; cursor: pointer; }
.field-block input:focus,
.field-block select:focus,
.field-block textarea:focus {
  outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(255,45,85,0.18);
}
.contact__form .btn { margin-top: 0.4rem; }

.contact__aside { display: grid; gap: 1.2rem; }
.contact__card {
  padding: 1.6rem 1.7rem; border-radius: var(--radius);
  border: 1px solid var(--stroke); background: var(--surface);
}
.contact__card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.contact__card p { color: var(--muted); font-size: 0.95rem; }
.contact__link {
  display: inline-block; margin-top: 0.5rem; font: 600 1rem "Sora";
  background: var(--fire); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ticks--tight { margin-bottom: 0; gap: 0.6rem; }
.ticks--tight li { font-size: 0.94rem; color: var(--muted); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--stroke); padding: 4rem 0 2rem; background: rgba(11,5,16,0.6); }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2.4rem; padding-bottom: 3rem; }
.footer__brand p { color: var(--muted); margin-top: 1rem; max-width: 24rem; font-size: 0.95rem; }
.footer__col h4 { font-size: 0.95rem; margin-bottom: 1rem; }
.footer__col a { display: block; color: var(--muted); font-size: 0.92rem; padding: 0.3rem 0; transition: color 0.2s; }
.footer__col a:hover { color: var(--red); }
.footer__base {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem;
  padding-top: 2rem; border-top: 1px solid var(--stroke); color: var(--faint); font-size: 0.88rem;
}
.footer__legal a:hover { color: var(--text); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { order: -1; }
  .orb { width: min(300px, 70vw); }
  .split { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .solutions { grid-template-columns: 1fr 1fr; }
  .contact { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }

  .nav__links {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; gap: 0.4rem;
    background: rgba(11,5,16,0.96); backdrop-filter: blur(16px);
    padding: 1.5rem 6vw 2rem; border-bottom: 1px solid var(--stroke);
    transform: translateY(-130%); transition: transform 0.4s var(--ease); align-items: stretch;
  }
  .nav__links.is-open { transform: none; }
  .nav__links a { padding: 0.7rem 0; font-size: 1.05rem; }
  .nav__cta { text-align: center; margin-top: 0.5rem; }
  .nav__toggle { display: flex; }
}

@media (max-width: 560px) {
  .solutions { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .hero__trust { gap: 1rem; }
  .trust__divider { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  html { scroll-behavior: auto; }
}

/* =========================================================
   Additions: photos, team, careers, newsroom, contact details
   ========================================================= */

/* Narrow content column */
.container.narrow { width: min(880px, 92vw); }

/* Themed photo frame with red/purple duotone + graceful gradient fallback */
.media-photo {
  position: relative; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--stroke-strong);
  background: linear-gradient(150deg, var(--purple-deep), var(--red-deep));
  box-shadow: 0 30px 80px -30px rgba(123, 47, 240, 0.55), 0 0 0 1px rgba(255,255,255,0.02);
}
.media-photo img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: grayscale(0.35) saturate(1.05) contrast(1.03);
}
.media-photo::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(150deg, rgba(232,17,45,0.42), rgba(123,47,240,0.5));
  mix-blend-mode: overlay;
}
.media-photo::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: linear-gradient(180deg, transparent 55%, rgba(11,5,16,0.55));
}

/* Hero photo (replaces the orb) */
.hero__photo { width: min(440px, 82vw); aspect-ratio: 4 / 5; }
.hero__visual { display: grid; place-items: center; }

/* Generated artwork: keep its own colours, skip the duotone treatment */
.media-photo--art::after, .media-photo--art::before { display: none; }
.media-photo--art img { filter: none; }

/* Photographic hero: keep it realistic, just a gentle brand wash */
.media-photo--hero img { filter: saturate(1.06) contrast(1.04) brightness(0.98); }
.media-photo--hero::after {
  background: linear-gradient(160deg, rgba(232,17,45,0.18), rgba(123,47,240,0.26));
  mix-blend-mode: soft-light;
}

/* Fused hero: team photo in front, Marina Bay skyline behind, blended together */
.media-photo--fused { background-color: #0b0510; }
.media-photo--fused img {
  position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 66%;
  object-fit: cover; object-position: center 28%;
  filter: saturate(1.04) contrast(1.03);
  -webkit-mask-image: linear-gradient(to top, #000 58%, transparent);
          mask-image: linear-gradient(to top, #000 58%, transparent);
}
.media-photo--fused::after {
  background: linear-gradient(170deg, rgba(232,17,45,0.16) 30%, rgba(123,47,240,0.30));
  mix-blend-mode: soft-light;
}
.media-photo--fused::before {
  background: linear-gradient(180deg, transparent 40%, rgba(11,5,16,0.5));
}

/* Card call-to-action link */
.card__link {
  display: inline-block; margin-top: 1rem; font: 600 0.92rem "Sora";
  color: var(--red);
}
.card__link::after { content: " \2192"; transition: margin 0.25s var(--ease); }
.card:hover .card__link::after { margin-left: 4px; }

/* Team */
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.member {
  padding: 2rem 1.8rem; border-radius: var(--radius);
  border: 1px solid var(--stroke); background: var(--surface);
  transition: transform 0.35s var(--ease), border-color 0.35s;
}
.member:hover { transform: translateY(-5px); border-color: var(--stroke-strong); }
.member__avatar {
  width: 76px; height: 76px; border-radius: 50%; overflow: hidden;
  display: grid; place-items: center; margin-bottom: 1.1rem;
  background: linear-gradient(135deg, var(--purple-deep), var(--red));
  border: 1px solid var(--stroke-strong);
}
.member__avatar img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.3) saturate(1.05); }
.member h3 { font-size: 1.18rem; margin-bottom: 0.2rem; }
.member__role { display: block; font: 600 0.82rem "Sora"; color: var(--red); margin-bottom: 0.7rem; }
.member p { color: var(--muted); font-size: 0.95rem; }
.team__note { text-align: center; color: var(--faint); font-size: 0.9rem; margin-top: 2rem; }

/* Careers: open roles */
.roles { display: grid; gap: 1rem; }
.role {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
  padding: 1.4rem 1.8rem; border-radius: var(--radius);
  border: 1px solid var(--stroke); background: var(--surface);
  transition: border-color 0.3s, transform 0.3s var(--ease);
}
.role:hover { border-color: var(--stroke-strong); transform: translateY(-2px); }
.role__main h3 { font-size: 1.18rem; margin-bottom: 0.2rem; }
.role__meta { font-size: 0.88rem; color: var(--faint); }
.role .btn { flex: 0 0 auto; }

/* Newsroom: releases */
.releases { display: grid; gap: 1.2rem; }
.release {
  padding: 1.8rem 2rem; border-radius: var(--radius);
  border: 1px solid var(--stroke); background: var(--surface);
  transition: border-color 0.3s, transform 0.3s var(--ease), background 0.3s;
}
.release:hover { border-color: var(--stroke-strong); transform: translateY(-3px); background: var(--surface-2); }
.release__meta {
  display: flex; align-items: center; gap: 0.9rem; margin-bottom: 0.7rem;
  font-size: 0.78rem; color: var(--faint); text-transform: uppercase; letter-spacing: 0.1em;
}
.release__tag {
  color: #fff; padding: 0.25rem 0.7rem; border-radius: 999px; letter-spacing: 0.06em;
  background: linear-gradient(135deg, rgba(232,17,45,0.3), rgba(123,47,240,0.3));
  border: 1px solid var(--stroke-strong);
}
.release h3 { font-size: 1.3rem; line-height: 1.25; margin-bottom: 0.5rem; letter-spacing: -0.01em; }
.release p { color: var(--muted); margin-bottom: 0.8rem; }
.release__link { font: 600 0.92rem "Sora"; color: var(--red); }
.release__link::after { content: " \2192"; }

.media-contact {
  margin-top: 2.4rem; padding: 2rem; border-radius: var(--radius);
  border: 1px solid var(--stroke-strong);
  background: linear-gradient(160deg, rgba(18,10,29,0.7), rgba(11,5,16,0.7));
}
.media-contact h3 { font-size: 1.2rem; margin-bottom: 0.4rem; }
.media-contact p { color: var(--muted); margin-bottom: 0.6rem; }

/* Company details */
.footer__address {
  font-style: normal; color: var(--muted); font-size: 0.9rem; line-height: 1.7; margin-top: 1rem;
}
.footer__address a { color: var(--muted); }
.footer__address a:hover { color: var(--red); }
.contact__address { font-style: normal; color: var(--muted); font-size: 0.94rem; line-height: 1.6; }

/* Navigation: collapse to menu earlier now that there are more links */
.nav__links { gap: 1.5rem; }
.nav__links a:not(.btn) { font-size: 0.92rem; }
@media (max-width: 1040px) {
  .nav__toggle { display: flex; }
  .nav__links {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; gap: 0.4rem; align-items: stretch;
    background: rgba(11,5,16,0.97); backdrop-filter: blur(16px);
    padding: 1.5rem 6vw 2rem; border-bottom: 1px solid var(--stroke);
    transform: translateY(-130%); transition: transform 0.4s var(--ease);
  }
  .nav__links.is-open { transform: none; }
  .nav__links a { padding: 0.7rem 0; font-size: 1.05rem; }
  .nav__cta { text-align: center; margin-top: 0.5rem; }
}

@media (max-width: 900px) {
  .team { grid-template-columns: 1fr 1fr; }
  .hero__photo { width: min(360px, 78vw); }
}
@media (max-width: 560px) {
  .team { grid-template-columns: 1fr; }
  .role { justify-content: flex-start; }
}

/* =========================================================
   LIGHT CORPORATE THEME  (overrides the dark base above)
   Bright white background, red/purple kept as accents
   ========================================================= */
:root {
  --bg: #ffffff;
  --bg-2: #f5f2fb;
  --surface: #ffffff;
  --surface-2: #f5f1fc;
  --stroke: rgba(22, 14, 44, 0.10);
  --stroke-strong: rgba(22, 14, 44, 0.18);
  --text: #181226;
  --muted: #57506c;
  --faint: #8a8398;
}

/* drop the ember particles; keep a soft tint wash */
#ember-canvas { display: none; }
.aurora {
  background:
    radial-gradient(48% 52% at 14% 4%, rgba(232, 17, 45, 0.10), transparent 70%),
    radial-gradient(52% 56% at 88% 2%, rgba(123, 47, 240, 0.10), transparent 70%),
    radial-gradient(44% 48% at 56% 18%, rgba(255, 107, 53, 0.06), transparent 70%);
  filter: blur(12px);
}

/* nav */
.nav.is-scrolled {
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 8px 26px -18px rgba(22, 14, 44, 0.4);
}
.brand__logo { filter: none; }

/* alternating sections + surfaces */
.section--alt { background: linear-gradient(180deg, #ffffff, #f6f3fc 28%, #f6f3fc 72%, #ffffff); }
.card, .solution, .step, .stat, .member, .role, .release,
.contact__form, .contact__card, .media-contact, .cta__inner {
  box-shadow: 0 16px 36px -28px rgba(22, 14, 44, 0.55);
}

/* panels (mock UI) become light cards */
.panel {
  background: linear-gradient(160deg, #ffffff, #f3eefb);
  box-shadow: 0 26px 60px -38px rgba(123, 47, 240, 0.4);
}

/* CTA band -> light */
.cta__inner { background: linear-gradient(160deg, #ffffff, #f5f1fc); border-color: var(--stroke); }
.cta__glow {
  background: radial-gradient(50% 60% at 50% 100%, rgba(232,17,45,0.16), transparent 60%),
              radial-gradient(60% 60% at 30% 100%, rgba(123,47,240,0.16), transparent 60%);
}

/* footer -> light */
.footer { background: #f7f4fc; }

/* form fields -> white */
.field-block input, .field-block select, .field-block textarea { background: #ffffff; }
.cta__form input { background: #ffffff; }
.media-contact { background: linear-gradient(160deg, #ffffff, #f5f1fc); }

/* chips need solid fill to stay readable on light */
.pill--hot, .release__tag { background: var(--fire); color: #ffffff; border-color: transparent; }

/* mobile menu panel -> white */
@media (max-width: 1040px) { .nav__links { background: rgba(255, 255, 255, 0.98); } }
@media (max-width: 900px)  { .nav__links { background: rgba(255, 255, 255, 0.98); } }
