/* ============================================================
   DarwinIQ Website — Main Styles
   ============================================================ */

@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@100;400;600&display=swap");

/* ---- Reset & Base ---------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --diq-bg: #f4f1ec;
}

html {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Montserrat", ui-sans-serif, system-ui, sans-serif;
  overflow-x: hidden;
  background-color: var(--diq-bg);
  transition: background-color 1s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Theme classes toggled by IntersectionObserver.
   diq-theme-cosmos resets to cream (the default --diq-bg). */
body.diq-theme-cosmos     { --diq-bg: #f4f1ec; }
body.diq-theme-terracotta { --diq-bg: #c8593a; }
body.diq-theme-green      { --diq-bg: #2b3924; }

/* ============================================================
   SCATTER HERO (testing.html)
   ============================================================ */

.diq-scatter-hero {
  --cosmo-hero-paper: #f4f1ec;
  --cosmo-hero-ink: #1a1a1a;
  position: relative;
  min-height: 100dvh;
  overflow: hidden;
  background: var(--cosmo-hero-paper);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Soft radial vignette so the centered text stays legible */
.diq-scatter-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 55% 60% at center,
    var(--cosmo-hero-paper) 20%, transparent 75%);
  z-index: 5;
  pointer-events: none;
}

/* 3 narrow columns spread across the hero with open space between */
.diq-scatter-cols {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  z-index: 2;
  overflow: hidden;
}

.diq-scatter-col {
  overflow: hidden;
  flex-shrink: 0;
  contain: paint;
  transform: translateZ(0);
}

/* Column widths — left and right are slightly wider, center narrower */
.diq-scatter-col:nth-child(1) { width: 22vw; }
.diq-scatter-col:nth-child(2) { width: 18vw; }
.diq-scatter-col:nth-child(3) { width: 22vw; }

/* Inner strip — 2× tall so we can loop seamlessly.
   translate3d scrolls the images downward on the compositor for smoother motion. */
.diq-scatter-col-inner {
  display: flex;
  flex-direction: column;
  gap: clamp(100px, 28vh, 320px);
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  animation: diq-col-scroll linear infinite;
}

/* Stagger speed + start offset per column for the Madre Mezcal depth feel */
.diq-scatter-col:nth-child(1) .diq-scatter-col-inner {
  animation-duration: 48s;
  padding-top: 8vh;
}
.diq-scatter-col:nth-child(2) .diq-scatter-col-inner {
  animation-duration: 31s;
  animation-delay: -5s;
  padding-top: 38vh;
}
.diq-scatter-col:nth-child(3) .diq-scatter-col-inner {
  animation-duration: 40s;
  animation-delay: -10s;
  padding-top: 20vh;
}

@keyframes diq-col-scroll {
  from { transform: translate3d(0, -50%, 0); }
  to   { transform: translate3d(0, 0, 0); }
}

.diq-scatter-col-inner img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.diq-scatter-hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  pointer-events: none;
  padding: 1.5rem;
}

.diq-scatter-hero-content h1 {
  margin: 0;
  font-family: "Montserrat", ui-sans-serif, system-ui, sans-serif;
  font-weight: 600;
  font-size: clamp(52px, 9vw, 130px);
  line-height: 1.0;
  letter-spacing: -0.03em;
  color: var(--cosmo-hero-ink);
  text-wrap: balance;
}

.diq-scatter-hero-content .cosmo-hero-logo {
  margin: 0.75rem auto 0;
}

/* ============================================================
   SECTION 1 — COSMOS HERO
   (all cosmo-hero-* styles scoped to .cosmo-hero-root)
   ============================================================ */

.cosmo-hero-root {
  --cosmo-hero-paper: #f4f1ec;
  --cosmo-hero-ink: #1a1a1a;
  --cosmo-hero-ink-muted: #3d3d3d;
  box-sizing: border-box;
  color: var(--cosmo-hero-ink);
}

.cosmo-hero-root *,
.cosmo-hero-root *::before,
.cosmo-hero-root *::after {
  box-sizing: border-box;
}

.cosmo-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
  overflow: hidden;
  background: var(--cosmo-hero-paper);
}

.cosmo-hero-whirl-shell {
  pointer-events: none;
  position: absolute;
  left: -10%;
  width: 120%;
  height: 100vh;
  top: calc(50% - 50vh);
  mask: radial-gradient(45% 45%, transparent 0% 50.5%, var(--cosmo-hero-paper) 90%);
  -webkit-mask: radial-gradient(45% 45%, transparent 0% 50.5%, var(--cosmo-hero-paper) 90%);
  contain: layout style;
}

.cosmo-hero-whirl-shell-inner {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 2.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.cosmo-hero-whirl-shell-inner.cosmo-hero-is-ready {
  opacity: 1;
}

.cosmo-hero-whirl-vignette {
  pointer-events: none;
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  z-index: 2;
  height: 30%;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    color-mix(in srgb, var(--cosmo-hero-paper) 45%, transparent) 30%,
    color-mix(in srgb, var(--cosmo-hero-paper) 80%, transparent) 55%,
    var(--cosmo-hero-paper) 80%
  );
}

.cosmo-hero-whirl-canvas-wrap {
  pointer-events: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: max(2000px, 120vw);
  height: max(2000px, 120vw);
  aspect-ratio: 1;
}

.cosmo-hero-whirl-canvas-wrap canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.cosmo-hero-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  padding: 1.5rem;
  text-align: center;
  max-width: min(42rem, calc(100vw - 2rem));
}

.cosmo-hero-content h1 {
  margin: 0;
  font-family: "Montserrat", ui-sans-serif, system-ui, sans-serif;
  font-weight: 600;
  font-size: 65px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--cosmo-hero-ink);
  text-wrap: balance;
}

.cosmo-hero-content .cosmo-hero-accent {
  color: var(--cosmo-hero-ink);
  font-weight: 600;
}

.cosmo-hero-logo {
  display: block;
  width: clamp(80px, 10vw, 140px);
  height: auto;
  margin-top: 0.5rem;
}

/* ---- Hero top bar ---------------------------------------- */

.cosmo-hero-topbar {
  position: fixed;
  top: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.cosmo-hero-logo-pill {
  display: inline-flex;
  align-items: center;
  background: #ffffff;
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  text-decoration: none;
  box-shadow: 0 1px 4px rgba(0,0,0,0.12);
  pointer-events: auto;
}

.cosmo-hero-logo-pill img {
  display: block;
  height: clamp(18px, 2vw, 26px);
  width: auto;
}

/* Nav button + dropdown */

.cosmo-hero-nav {
  position: relative;
  pointer-events: auto;
}

.cosmo-hero-nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(36px, 3.5vw, 48px);
  height: clamp(36px, 3.5vw, 48px);
  border-radius: 50%;
  border: none;
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.12);
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cosmo-hero-nav-btn[aria-expanded="true"] {
  transform: rotate(45deg);
}

.cosmo-hero-nav-btn-icon {
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 300;
  line-height: 1;
  color: #1a1a1a;
  user-select: none;
}

.cosmo-hero-nav-menu {
  position: absolute;
  top: calc(100% + 0.6rem);
  right: 0;
  list-style: none;
  margin: 0;
  padding: 0.4rem 0;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.14);
  min-width: 180px;
  /* Hidden state */
  opacity: 0;
  transform: translateY(-6px) scale(0.97);
  pointer-events: none;
  transition:
    opacity 0.22s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: top right;
}

.cosmo-hero-nav-menu.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.cosmo-hero-nav-menu li a {
  display: block;
  padding: 0.65rem 1.1rem;
  font-family: "Montserrat", ui-sans-serif, system-ui, sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #1a1a1a;
  text-decoration: none;
  text-align: left;
  transition: background 0.15s;
}

.cosmo-hero-nav-menu li a:hover {
  background: rgba(0,0,0,0.05);
}

.cosmo-hero-nav-divider {
  height: 1px;
  background: rgba(0,0,0,0.08);
  margin: 0.35rem 0;
}

.cosmo-hero-nav-label {
  padding: 0.45rem 1.1rem 0.2rem;
  font-family: "Montserrat", ui-sans-serif, system-ui, sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.4);
  text-align: left;
}

.cosmo-hero-nav-scheme-btn {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  padding: 0.65rem 1.1rem;
  font-family: "Montserrat", ui-sans-serif, system-ui, sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #1a1a1a;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s;
}

.cosmo-hero-nav-scheme-btn:hover {
  background: rgba(0,0,0,0.05);
}

.cosmo-hero-nav-scheme-swatch {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.cosmo-hero-nav-scheme-swatch[data-swatch="hyper-orange"] {
  background: #ef5b3e;
}

.cosmo-hero-nav-scheme-swatch[data-swatch="orange"] {
  background: #c8593a;
}

.cosmo-hero-nav-scheme-swatch[data-swatch="gradient"] {
  background-image: 
    url('data:image/svg+xml;utf8,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)" opacity="0.3"/%3E%3C/svg%3E'),
    linear-gradient(45deg, #f4cbf8, #095c7f, #799794, #f9fbfa, #f4cbf8);
  background-size: 150px, 400% 400%;
  animation: gradientAnimation 6s ease infinite;
}

@keyframes blueGradientAnimation {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.cosmo-hero-nav-scheme-swatch[data-swatch="blue"] {
  background: linear-gradient(-45deg, #2358a8, #165471, #2358a8);
  background-size: 200% 200%;
  animation: blueGradientAnimation 6s ease infinite;
}

.cosmo-hero-nav-scheme-swatch[data-swatch="green"] {
  background: #2b3924;
}

.cosmo-hero-nav-scheme-swatch[data-swatch="orange-green"] {
  background: linear-gradient(135deg, #c8593a 50%, #2b3924 50%);
}

.cosmo-hero-nav-scheme-check {
  margin-left: auto;
  font-size: 12px;
  color: #1a1a1a;
  opacity: 0;
  transition: opacity 0.15s;
}

html[data-scheme="gradient"] .cosmo-hero-nav-scheme-btn[data-scheme="gradient"] .cosmo-hero-nav-scheme-check,
html[data-scheme="hyper-orange"] .cosmo-hero-nav-scheme-btn[data-scheme="hyper-orange"] .cosmo-hero-nav-scheme-check,
html[data-scheme="blue"]         .cosmo-hero-nav-scheme-btn[data-scheme="blue"]         .cosmo-hero-nav-scheme-check,
html[data-scheme="green"]        .cosmo-hero-nav-scheme-btn[data-scheme="green"]        .cosmo-hero-nav-scheme-check,
html[data-scheme="orange-green"] .cosmo-hero-nav-scheme-btn[data-scheme="orange-green"] .cosmo-hero-nav-scheme-check {
  opacity: 1;
}

.cosmo-hero-footer-fade {
  pointer-events: none;
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 308px;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    color-mix(in srgb, var(--cosmo-hero-paper) 60%, transparent) 35%,
    color-mix(in srgb, var(--cosmo-hero-paper) 90%, transparent) 60%,
    var(--cosmo-hero-paper) 84%
  );
}

/* ============================================================
   SECTION 2 — BRAND STATEMENT (terracotta)
   ============================================================ */

.diq-panel {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100vh;
  overflow: hidden;
}

/* Desktop: allow illustrative SVGs to bleed past panel edges when synced to copy height */
@media (min-width: 769px) {
  .diq-panel-1,
  .diq-panel-2,
  .diq-panel-3,
  .diq-panel-4,
  .diq-panel-5,
  .diq-panel-6 {
    overflow: visible;
  }
}

.diq-panel-1 {
  background: transparent;
}

/* Left column = SVG (first child), right column = copy — match panel-2 inner pattern */
.diq-panel-1-inner {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 100vh;
}

.diq-panel-1-content {
  position: relative;
  z-index: 2;
  /* Same inset as Survival panel (panel 6): text starts after SVG + 4vw gap */
  padding: 8vw 8vw 8vw 49vw;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.diq-panel-1-content p {
  margin: 0;
  font-family: "Montserrat", ui-sans-serif, system-ui, sans-serif;
  font-weight: 600;
  font-size: clamp(28px, 4.2vw, 62px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: #f4f1ec;
}

.diq-panel-1-svg {
  pointer-events: none;
  position: absolute;
  top: 50%;
  left: -7vw;
  right: auto;
  transform: translateY(-50%);
  /* Same footprint as panel 6 left SVG (52−7=45vw; padding-left 49vw → 4vw gap) */
  width: 52vw;
  height: auto;
  z-index: 1;
}

/* ============================================================
   SECTION 3 — STATS PANEL (dark green)
   ============================================================ */

.diq-panel-2 {
  background: transparent;
}

/* SVG is absolutely positioned so it can be large and overflow freely */
.diq-panel-2-inner {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 100vh;
}

.diq-panel-2-svg {
  pointer-events: none;
  position: absolute;
  top: 50%;
  left: -6vw;
  transform: translateY(-38%);
  width: 50vw; /* visible: 50-6=44vw; ends at 44vw */
  height: auto;
}

.diq-panel-2-content {
  padding: 8vw 8vw 8vw 48vw; /* starts at 48vw → 4vw gap after SVG */
  width: 100%;
  max-width: none;
}

.diq-panel-2-content h2 {
  margin: 0 0 1.25rem 0;
  font-family: "Montserrat", ui-sans-serif, system-ui, sans-serif;
  font-weight: 600;
  font-size: clamp(30px, 4.2vw, 54px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: #f4f1ec;
}

.diq-panel-2-content p {
  margin: 0;
  font-family: "Montserrat", ui-sans-serif, system-ui, sans-serif;
  font-weight: 400;
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.82);
}

/* ============================================================
   LOGO SLIDER
   ============================================================ */

.diq-logo-strip {
  overflow: hidden;
  padding: 35px 0 100px;
  /* Edge fade masks */
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 8%,
    black 92%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 8%,
    black 92%,
    transparent 100%
  );
}

@media (max-width: 768px) {
  .diq-logo-strip {
    padding: 24px 0 56px;
  }
  .diq-logo-reel img {
    height: 55px;
  }
}

.diq-logo-track {
  display: flex;
  width: max-content;
  animation: diq-scroll 75s linear infinite;
}

.diq-logo-track:hover {
  animation-play-state: paused;
}

.diq-logo-reel {
  display: flex;
  align-items: center;
  gap: 72px;
  padding-right: 72px;
  flex-shrink: 0;
}

.diq-logo-reel img {
  display: block;
  height: 85px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.75;
  flex-shrink: 0;
}

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

/* ============================================================
   NEW PANELS (3-6)
   ============================================================ */

.diq-panel-3, .diq-panel-5 {
  background: transparent;
}

.diq-panel-3-content {
  position: relative;
  z-index: 2;
  padding: 8vw 6vw;
  max-width: 52vw; /* SVG visible start: 100-50+6=56vw → 4vw gap */
}

.diq-panel-5-content {
  position: relative;
  z-index: 2;
  padding: 8vw 6vw;
  max-width: 51vw; /* SVG visible start: 100-42-3=55vw → 4vw gap */
  display: flex;
  flex-direction: column;
}

/* CREATIVE ANALYTICS eyebrow: Helvetica → Arial → generic sans */
.diq-panel-5-content .diq-panel-5-kicker {
  margin: 0 0 40px;
  padding: 0;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f4f1ec;
}

.diq-panel-3-content h2 {
  margin: 0;
  font-family: "Montserrat", ui-sans-serif, system-ui, sans-serif;
  font-weight: 600;
  font-size: clamp(30px, 4.2vw, 54px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: #f4f1ec;
}

.diq-panel-5-content h2 {
  margin: 0 0 3rem;
  font-family: "Montserrat", ui-sans-serif, system-ui, sans-serif;
  font-weight: 600;
  font-size: clamp(36px, 6.5vw, 88px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #f4f1ec;
}

.diq-panel-5-content .diq-learn-more {
  align-self: flex-start;
  font-size: clamp(14px, 1.2vw, 17px);
  font-weight: 400;
}

.diq-panel-5-content .diq-plus-icon {
  height: 1.6em;
}

/* ============================================================
   RINGS ANIMATION
   ============================================================ */

@keyframes diq-ring-unfurl-1 {
  0%        { opacity: 0; }
  8%        { opacity: 1; }
  68%       { opacity: 1; }
  82%, 100% { opacity: 0; }
}

@keyframes diq-ring-unfurl-2 {
  0%, 18%   { opacity: 0; }
  28%       { opacity: 1; }
  68%       { opacity: 1; }
  82%, 100% { opacity: 0; }
}

@keyframes diq-ring-unfurl-3 {
  0%, 36%   { opacity: 0; }
  48%       { opacity: 1; }
  68%       { opacity: 1; }
  82%, 100% { opacity: 0; }
}

.diq-rings-icon {
  animation: none;
}

.diq-rings-icon .diq-ring-1 {
  animation: diq-ring-unfurl-1 2.4s cubic-bezier(0.25, 0, 0.1, 1) infinite;
}
.diq-rings-icon .diq-ring-2 {
  animation: diq-ring-unfurl-2 2.4s cubic-bezier(0.25, 0, 0.1, 1) infinite;
}
.diq-rings-icon .diq-ring-3 {
  animation: diq-ring-unfurl-3 2.4s cubic-bezier(0.25, 0, 0.1, 1) infinite;
}

.diq-panel-3-svg, .diq-panel-5-svg {
  pointer-events: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  height: auto;
  z-index: 1;
}

.diq-panel-3-svg {
  right: -6vw;
  width: 50vw; /* visible: 50-6=44vw; starts at 56vw */
  transform: translateY(-50%) rotate(180deg);
}

.diq-panel-5-svg {
  right: 3vw;
  width: 42vw; /* visible: 42vw; starts at 55vw */
  height: auto;
  max-height: none;
}

.diq-panel-4, .diq-panel-6 {
  background: transparent;
}

.diq-panel-4-inner, .diq-panel-6-inner {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 100vh;
}

.diq-panel-4-svg, .diq-panel-6-svg {
  pointer-events: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  height: auto;
}

.diq-panel-4-svg {
  left: -5vw;
  width: 46vw; /* visible: 46-5=41vw; ends at 41vw */
}

.diq-panel-6-svg {
  left: -7vw;
  width: 52vw; /* visible: 52-7=45vw; ends at 45vw */
}

.diq-panel-4-content {
  padding: 8vw 8vw 8vw 45vw; /* starts at 45vw → 4vw gap after panel-4 SVG */
  width: 100%;
  max-width: none;
}

.diq-panel-6-content {
  padding: 8vw 8vw 8vw 49vw; /* starts at 49vw → 4vw gap after panel-6 SVG */
  width: 100%;
  max-width: none;
  display: flex;
  flex-direction: column;
}

.diq-panel-4-content h2 {
  margin: 0 0 1.25rem 0;
  font-family: "Montserrat", ui-sans-serif, system-ui, sans-serif;
  font-weight: 600;
  font-size: clamp(30px, 4.2vw, 54px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: #f4f1ec;
}

/* Match Panel 5 (“Unlock new dimensions”) headline scale */
.diq-panel-6-content h2 {
  margin: 0 0 1.25rem 0;
  font-family: "Montserrat", ui-sans-serif, system-ui, sans-serif;
  font-weight: 600;
  font-size: clamp(36px, 6.5vw, 88px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #f4f1ec;
}

.diq-panel-6-content p {
  margin: 0;
  font-family: "Montserrat", ui-sans-serif, system-ui, sans-serif;
  font-weight: 400;
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.82);
}

/* Match Panel 5 Learn More spacing: headline uses margin-bottom 3rem above CTA */
.diq-panel-6-content .diq-learn-more {
  align-self: flex-start;
  margin-top: 3rem;
  font-size: clamp(14px, 1.2vw, 17px);
  font-weight: 400;
}

.diq-panel-6-content .diq-plus-icon {
  height: 1.6em;
}

.diq-learn-more {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: "Montserrat", ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(15px, 1.4vw, 18px);
  font-weight: 400;
  color: #f4f1ec;
  text-decoration: none;
  opacity: 0.85;
  transition: opacity 0.2s;
}

.diq-learn-more:hover {
  opacity: 1;
}

.diq-learn-more:hover .diq-plus-icon {
  transform: rotate(360deg);
}

.diq-plus-icon {
  width: auto;
  height: 1.1em;
  transition: transform 0.4s ease;
}

/* ============================================================
   TESTING PAGE — STEP LABEL, BODY COPY, STEP LIST, SYMBIOSIS
   ============================================================ */

.diq-step-label {
  display: block;
  margin-bottom: 0.75rem;
  font-family: "Montserrat", ui-sans-serif, system-ui, sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #f4f1ec;
  opacity: 0.55;
}

/* Body paragraphs inside step/benefit panels */
.diq-panel-3-content p,
.diq-panel-4-content p {
  margin: 0.75rem 0 0;
  font-family: "Montserrat", ui-sans-serif, system-ui, sans-serif;
  font-weight: 400;
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.82);
}

.diq-panel-3-content p strong,
.diq-panel-4-content p strong {
  color: #f4f1ec;
  font-weight: 600;
}

/* Hurdle list in Step 02 */
.diq-step-list {
  margin: 0.5rem 0 0;
  padding-left: 1.2em;
  font-family: "Montserrat", ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.82);
  list-style: disc;
}

/* Human + AI Symbiosis grid */
.diq-symbiosis-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2vw;
  margin-top: 3rem;
}

.diq-symbiosis-col {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.diq-symbiosis-label {
  font-family: "Montserrat", ui-sans-serif, system-ui, sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #f4f1ec;
  opacity: 0.55;
}

.diq-symbiosis-value {
  font-family: "Montserrat", ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(14px, 1.3vw, 17px);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.4;
}

@media (max-width: 768px) {
  .diq-symbiosis-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
  }
}

/* ============================================================
   IMAGE GRIDS
   ============================================================ */

.diq-image-grid-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  padding: 10vh 0;
}

.diq-grid-rotator {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(20vw, 1fr));
  gap: 1.5vw;
  width: 150vw; /* Wider than screen to cover corners when rotated */
  transform: rotate(-15deg) scale(1.2);
  transform-origin: center center;
}

.diq-grid-item {
  aspect-ratio: 4 / 3;
}

.diq-grid-item.placeholder-c1 { background-color: rgba(255, 255, 255, 0.15); }
.diq-grid-item.placeholder-c2 { background-color: rgba(255, 255, 255, 0.05); }
.diq-grid-item.placeholder-c3 { background-color: rgba(0, 0, 0, 0.15); }

/* Mosaic strip = one viewport tall; 45° bleed. Desktop 5×4 (20 tiles); mobile trims to 3×3 */
/* Slow diagonal drift around center — avoids pinning mass NW so TR/BR corners stay covered */
@keyframes diq-monopo-drift {
  0% {
    transform: translate(-50%, -50%) translate3d(-7vmin, -7vmin, 0);
  }
  100% {
    transform: translate(-50%, -50%) translate3d(7vmin, 7vmin, 0);
  }
}

@keyframes diq-monopo-drift-mobile {
  0% {
    transform: translate(-50%, -50%) translate3d(-9vmin, -9vmin, 0);
  }
  100% {
    transform: translate(-50%, -50%) translate3d(9vmin, 9vmin, 0);
  }
}

.diq-image-grid-section.diq-monopo-grid-section {
  --monopo-band-h: 100dvh;
  --monopo-gap: clamp(14px, calc(8px + 1vw), 30px);
  position: relative;
  /* Show body background (theme + user scheme incl. gradients) */
  background: transparent;
  padding: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  min-height: 100vh;
  min-height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
}

.diq-monopo-grid-viewport {
  position: relative;
  flex: 1 1 auto;
  width: 100%;
  min-width: 100%;
  max-width: none;
  height: 100vh;
  height: 100dvh;
  min-height: 100vh;
  min-height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
  box-sizing: border-box;
  overflow: hidden;
  display: block;
  background: transparent;
}

/* Film-grain read similar to monopo.vn photography treatment */
.diq-monopo-grid-viewport::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0.14;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='256' height='256'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Stage oversized vs viewport so 45° lattice reaches every corner after clip */
.diq-monopo-grid-stage {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 0;
  --monopo-cover: max(100vw, 100dvh, var(--monopo-band-h));
  width: calc(var(--monopo-cover) * 2.48);
  height: calc(var(--monopo-cover) * 2.48);
  display: grid;
  place-items: center;
  animation: diq-monopo-drift 48s ease-in-out infinite alternate;
}

/* 5×4 lattice rotated 45° CW (~20 tiles desktop); mobile trims to 3×3 */
.diq-monopo-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-auto-rows: minmax(0, auto);
  gap: var(--monopo-gap);
  width: min(168vw, max(calc(100dvh * 2.72), 96vw));
  max-width: min(168vw, 2600px);
  margin: 0;
  padding: var(--monopo-gap);
  box-sizing: border-box;
  background: transparent;
  transform: rotate(45deg) scale(1.28);
  transform-origin: center center;
}

.diq-monopo-grid-cell {
  position: relative;
  min-height: 0;
  width: 100%;
  aspect-ratio: 108 / 91;
  overflow: hidden;
  background: transparent;
  border-radius: 0;
}

.diq-monopo-grid-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  border-radius: 0;
  filter: contrast(1.05) saturate(1.04);
}

@media (prefers-reduced-motion: reduce) {
  .diq-monopo-grid-stage {
    animation: none !important;
    transform: translate(-50%, -50%);
  }

  @media (max-width: 768px) {
    .diq-monopo-grid-section .diq-monopo-grid-stage {
      transform: translate(-50%, -50%);
    }
  }
}

/* ============================================================
   GIANT FOOTER
   ============================================================ */

.diq-footer {
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  padding: calc(5vw + 125px) 0 0 0;
  background: transparent;
  position: relative;
}

/* Matches pilot-form-copy column: pilot-form-section padding 6vw, two-column grid gap 6vw */
.diq-footer-copy-wrap {
  width: 100%;
  padding: 0 6vw;
  box-sizing: border-box;
}

.diq-footer-copy {
  max-width: calc((100% - 6vw) / 2);
  margin-bottom: clamp(2rem, 5vw, 4rem);
  color: #ffffff;
}

.diq-footer-copy h2 {
  margin: 0;
  font-family: "Montserrat", ui-sans-serif, system-ui, sans-serif;
  font-weight: 100;
  font-size: clamp(calc(2.75rem - 10px), calc(4.5vw - 10px), calc(3.75rem - 10px));
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.diq-footer-copy h2 a.diq-footer-nav-link {
  color: inherit;
  text-decoration: none;
  opacity: 1;
  transition: opacity 0.2s ease;
}

.diq-footer-copy h2 a.diq-footer-nav-link:hover {
  opacity: 0.55;
}

.diq-footer-copy h2 a.diq-footer-nav-link:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

@media (max-width: 768px) {
  .diq-footer-copy {
    max-width: none;
  }
}

.diq-footer-text {
  font-family: "Montserrat", ui-sans-serif, system-ui, sans-serif;
  font-size: 28vw;
  font-weight: 600;
  line-height: 0.8;
  letter-spacing: -0.05em;
  color: #f4f1ec;
  text-align: center;
  margin-left: -2vw;
}

.diq-footer-logo {
  width: 100%;
  max-width: none;
  height: auto;
  display: block;
  margin: 0;
  opacity: 0.1;
}

.diq-footer-copyright {
  position: absolute;
  bottom: 35px;
  right: 75px;
  display: flex;
  gap: 2rem;
  font-family: "Helvetica", Arial, sans-serif;
  font-size: clamp(10px, 0.8vw, 12px);
  font-weight: 500;
  text-transform: uppercase;
  color: #ffffff;
  z-index: 10;
}

.diq-footer-copyright a {
  color: #ffffff;
  text-decoration: none;
  transition: opacity 0.2s;
}

.diq-footer-copyright a:hover {
  opacity: 0.7;
}

@media (max-width: 768px) {
  .diq-footer-copyright {
    position: absolute;
    flex-direction: row;
    justify-content: center;
    gap: 1rem;
    padding: 0;
    width: 100%;
    text-align: center;
    bottom: 25px;
    right: 0;
    left: 0;
    font-size: 9px;
    background: transparent;
  }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* ============================================================
   COLOR SCHEME: HYPER ORANGE
   ============================================================ */

/* Panel backgrounds */
html[data-scheme="hyper-orange"] body.diq-theme-terracotta { --diq-bg: #ef5b3e; }
html[data-scheme="hyper-orange"] body.diq-theme-green      { --diq-bg: #a34221; }

/* ============================================================
   COLOR SCHEME: GRADIENT
   ============================================================ */

@keyframes gradientAnimation {
  0% { background-position: 0% 50%; }
  25% { background-position: 50% 100%; }
  50% { background-position: 100% 50%; }
  75% { background-position: 50% 0%; }
  100% { background-position: 0% 50%; }
}

html[data-scheme="gradient"] body.diq-theme-terracotta,
html[data-scheme="gradient"] body.diq-theme-green {
  background-image: 
    url('data:image/svg+xml;utf8,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)" opacity="0.3"/%3E%3C/svg%3E'),
    linear-gradient(45deg, #f4cbf8, #095c7f, #799794, #f9fbfa, #f4cbf8);
  background-size: 150px, 400% 400%;
  animation: gradientAnimation 12s ease infinite;
}

/* ============================================================
   COLOR SCHEME: BLUE
   Overrides terracotta/green backgrounds and all inline SVG fills.
   ============================================================ */

/* Panel backgrounds */
html[data-scheme="blue"] body.diq-theme-terracotta {
  --diq-bg: #2358a8;
  background-image: linear-gradient(-45deg, #2358a8, #165471, #2358a8);
  background-size: 200% 200%;
  animation: blueGradientAnimation 15s ease infinite;
}
html[data-scheme="blue"] body.diq-theme-green {
  --diq-bg: #0f1f38;
  background-image: linear-gradient(-45deg, #0f1f38, #165471, #0f1f38);
  background-size: 200% 200%;
  animation: blueGradientAnimation 15s ease infinite;
}

/* Remap purple-family SVG fills (#6f6ca3, #8f88bc, #575784) → blues */
html[data-scheme="blue"] [fill="#6f6ca3"] { fill: #4a80c4; }
html[data-scheme="blue"] [fill="#8f88bc"] { fill: #84b3e8; }
html[data-scheme="blue"] [fill="#575784"] { fill: #2c5899; }

/* Remap green-family SVG fills (#94ab6d, #a3ba85, #c6dba7) → sky blues */
html[data-scheme="blue"] [fill="#94ab6d"] { fill: #4d9abf; }
html[data-scheme="blue"] [fill="#a3ba85"] { fill: #79bcd9; }
html[data-scheme="blue"] [fill="#c6dba7"] { fill: #aadcf0; }

/* ============================================================
   COLOR SCHEME: GREEN
   All panels go dark forest green; SVGs use sage/olive palette.
   ============================================================ */

/* Panel backgrounds */
html[data-scheme="green"] body.diq-theme-terracotta { --diq-bg: #2b3924; }
html[data-scheme="green"] body.diq-theme-green      { --diq-bg: #1e2a18; }

/* Remap purple-family SVG fills → sage/olive greens */
html[data-scheme="green"] [fill="#6f6ca3"] { fill: #7a9e5e; }
html[data-scheme="green"] [fill="#8f88bc"] { fill: #a3ba85; }
html[data-scheme="green"] [fill="#575784"] { fill: #526b3a; }

/* Green-family SVG fills stay close to their natural values */
html[data-scheme="green"] [fill="#94ab6d"] { fill: #94ab6d; }
html[data-scheme="green"] [fill="#a3ba85"] { fill: #a3ba85; }
html[data-scheme="green"] [fill="#c6dba7"] { fill: #c6dba7; }

/* ============================================================
   COLOR SCHEME: ORANGE / GREEN (alternating)
   Panels with data-theme-alt="diq-theme-green" receive the
   .diq-panel-alt-theme class via JS when this scheme is active.
   Their SVG fills are remapped to the sage/olive green palette.
   Orange panels keep the default fills — no overrides needed.
   ============================================================ */
html[data-scheme="orange-green"] .diq-panel-alt-theme [fill="#6f6ca3"] { fill: #7a9e5e; }
html[data-scheme="orange-green"] .diq-panel-alt-theme [fill="#8f88bc"] { fill: #a3ba85; }
html[data-scheme="orange-green"] .diq-panel-alt-theme [fill="#575784"] { fill: #526b3a; }
html[data-scheme="orange-green"] .diq-panel-alt-theme [fill="#94ab6d"] { fill: #94ab6d; }
html[data-scheme="orange-green"] .diq-panel-alt-theme [fill="#a3ba85"] { fill: #a3ba85; }
html[data-scheme="orange-green"] .diq-panel-alt-theme [fill="#c6dba7"] { fill: #c6dba7; }

@media (max-width: 768px) {
  .cosmo-hero-content h1 {
    font-size: calc(9vw + 20px);
  }

  .diq-panel {
    margin-bottom: 50px;
    min-height: 100vh;
    align-items: stretch;
  }

  /* Mobile: full-height hero / scatter for breathing room */
  .cosmo-hero,
  .diq-scatter-hero {
    min-height: 100dvh;
  }

  /* Let illustrative SVGs extend past the panel/viewport on small screens */
  .diq-panel-1,
  .diq-panel-2,
  .diq-panel-3,
  .diq-panel-4,
  .diq-panel-5,
  .diq-panel-6 {
    overflow: visible;
  }

  /*
   * Match .diq-panel-5 (Unlock): left-aligned copy over the art.
   * Content z-index 2; SVG absolute right, vertically centered, z-index 1 (desktop-equivalent stack).
   */
  .diq-panel-1-inner,
  .diq-panel-2-inner,
  .diq-panel-4-inner,
  .diq-panel-6-inner {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    min-height: 100vh;
    padding: 0 6vw;
    box-sizing: border-box;
  }

  .diq-panel.diq-panel-3,
  .diq-panel.diq-panel-5 {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    padding: 0 6vw;
    box-sizing: border-box;
  }

  .diq-panel-1-content,
  .diq-panel-2-content,
  .diq-panel-3-content,
  .diq-panel-4-content,
  .diq-panel-5-content,
  .diq-panel-6-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: min(34rem, 100%);
    padding: clamp(2rem, 8vw, 3rem) 0;
    box-sizing: border-box;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: none;
    min-width: 0;
  }

  /* Same lateral rhythm as desktop .diq-panel-5-content (horizontal gutter from parent 6vw) */
  .diq-panel-5-content .diq-learn-more {
    align-self: flex-start;
  }

  .diq-panel-6-content .diq-learn-more {
    align-self: flex-start;
  }

  /* Decorative SVGs: right bleed like Unlock; vertically centered */
  .diq-panel-1-svg,
  .diq-panel-2-svg,
  .diq-panel-4-svg,
  .diq-panel-5-svg,
  .diq-panel-6-svg {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: auto;
    right: -10vw;
    margin: 0;
    pointer-events: none;
    width: auto;
    max-width: none;
    opacity: 0.75;
    transform: translateY(-50%);
  }

  .diq-panel-3-svg {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: auto;
    right: -10vw;
    margin: 0;
    pointer-events: none;
    width: auto;
    max-width: none;
    opacity: 0.75;
    transform: translateY(-50%) rotate(180deg);
  }

  .diq-panel-1-svg,
  .diq-panel-6-svg {
    height: clamp(255px, calc(64vh - 25px), 555px);
  }

  .diq-panel-2-svg {
    height: clamp(275px, calc(68vh - 25px), 575px);
  }

  .diq-panel-3-svg {
    height: clamp(255px, calc(64vh - 25px), 555px);
  }

  .diq-panel-4-svg {
    height: clamp(235px, calc(60vh - 25px), 515px);
  }

  .diq-panel-5-svg {
    height: clamp(315px, calc(78vh - 25px), 655px);
  }

  .diq-footer {
    padding-top: clamp(3.5rem, calc(6vw + 96px), calc(5vw + 140px));
  }

  .diq-image-grid-section:not(.diq-monopo-grid-section) {
    min-height: 85vh;
    padding-block: clamp(3rem, 14vw, 6rem);
  }

  .diq-grid-rotator {
    grid-template-columns: repeat(auto-fit, minmax(30vw, 1fr));
    width: 180vw;
  }

  .diq-monopo-grid-section {
    --monopo-band-h: 100dvh;
    --monopo-gap: clamp(12px, calc(6px + 2.5vw), 24px);
    height: 100vh;
    height: 100dvh;
    min-height: 100vh;
    min-height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
  }

  .diq-monopo-grid-section .diq-monopo-grid-viewport {
    min-width: 100%;
    max-width: none;
    height: 100vh;
    height: 100dvh;
    min-height: 100vh;
    min-height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
  }

  /* 20 cells (5×4); hide cols 4–5 for rows 1–3 + row 4 → top-left 3×3 */
  .diq-monopo-grid-section .diq-monopo-grid-cell:nth-child(5n - 1),
  .diq-monopo-grid-section .diq-monopo-grid-cell:nth-child(5n) {
    display: none;
  }

  .diq-monopo-grid-section .diq-monopo-grid-cell:nth-child(n + 16) {
    display: none;
  }

  .diq-monopo-grid-section .diq-monopo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    transform: rotate(45deg) scale(1.74);
    transform-origin: center center;
    width: min(142vw, max(calc(100dvh * 2.35), 94vw));
    max-width: none;
  }

  .diq-monopo-grid-section .diq-monopo-grid-stage {
    --monopo-cover: max(100vw, 100dvh, var(--monopo-band-h));
    width: calc(var(--monopo-cover) * 2.52);
    height: calc(var(--monopo-cover) * 2.52);
    animation: diq-monopo-drift-mobile 52s ease-in-out infinite alternate;
  }

  .diq-footer-text {
    font-size: 26vw;
  }
}

/* ----------------------------------------------------------
   HEADING FADE-IN ON SCROLL
   ---------------------------------------------------------- */
.diq-fade-in-heading {
  opacity: 0;
  transition: opacity 2s ease-in-out;
  will-change: opacity;
}

.diq-fade-in-heading.is-visible {
  opacity: 1;
}

@media (max-width: 768px) {
  .cosmo-hero-logo-pill img {
    height: clamp(22.5px, 2.5vw, 32.5px);
  }
  .cosmo-hero-nav-btn {
    width: clamp(45px, 4.4vw, 60px);
    height: clamp(45px, 4.4vw, 60px);
  }
  .cosmo-hero-nav-btn-icon {
    font-size: clamp(22.5px, 2.5vw, 30px);
  }

  /* Make the 3D interactive canvas untouchable on mobile for intuitive scrolling */
  #analyticsScatterCanvas {
    pointer-events: none !important;
  }
}
