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

@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@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;
}

/* 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.
   translateY(-50% → 0) scrolls the images downward. */
.diq-scatter-col-inner {
  display: flex;
  flex-direction: column;
  gap: 3vw;
  will-change: transform;
  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: 22s;
}
.diq-scatter-col:nth-child(2) .diq-scatter-col-inner {
  animation-duration: 14s;
  animation-delay: -5s;
}
.diq-scatter-col:nth-child(3) .diq-scatter-col-inner {
  animation-duration: 18s;
  animation-delay: -10s;
}

@keyframes diq-col-scroll {
  from { transform: translateY(-50%); }
  to   { transform: translateY(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;
  z-index: 0;
  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: absolute;
  top: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.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);
}

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

/* Nav button + dropdown */

.cosmo-hero-nav {
  position: relative;
}

.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;
  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);
}

.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="orange"] {
  background: #c8593a;
}

.cosmo-hero-nav-scheme-swatch[data-swatch="blue"] {
  background: #2358a8;
}

.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="orange"]       .cosmo-hero-nav-scheme-btn[data-scheme="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;
}

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

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

.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%;
  right: -4vw;
  transform: translateY(-50%);
  width: 44vw; /* visible: 44-4=40vw; starts at 60vw */
  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: 100px 0;
  /* 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%
  );
}

.diq-logo-track {
  display: flex;
  width: max-content;
  animation: diq-scroll 32s 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;
}

.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-end;
  margin-right: 5%;
  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;
}

.diq-panel-4-content h2, .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(30px, 4.2vw, 54px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  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);
}

.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-plus-icon {
  width: auto;
  height: 1.1em;
}

/* ============================================================
   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); }

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

.diq-footer {
  width: 100%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 5vw 0 2vw 0;
  background: transparent;
}

.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;
}

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

/* ============================================================
   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; }
html[data-scheme="blue"] body.diq-theme-green      { --diq-bg: #0f1f38; }

/* 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: 9vw;
  }

  /* On mobile, text gets ~20% more width; SVGs shrink accordingly.
     The 4vw gap between SVG and text is preserved throughout. */

  /* Panel 1 — right SVG: text 56→67vw, SVG 44→33vw */
  .diq-panel-1-content { max-width: 67vw; }
  .diq-panel-1-svg     { width: 33vw; }

  /* Panel 2 — left SVG: text 44→53vw, padding-left 48→39vw, SVG 50→41vw */
  .diq-panel-2-svg     { width: 41vw; }
  .diq-panel-2-content { padding: 8vw 8vw 8vw 39vw; }

  /* Panel 3 — right SVG: text 52→62vw, SVG 50→40vw */
  .diq-panel-3-content { max-width: 62vw; }
  .diq-panel-3-svg     { width: 40vw; }

  /* Panel 4 — left SVG: text 47→56vw, padding-left 45→36vw, SVG 46→37vw */
  .diq-panel-4-svg     { width: 37vw; }
  .diq-panel-4-content { padding: 8vw 8vw 8vw 36vw; }

  /* Panel 5 — right SVG: text 51→61vw, SVG 42→32vw */
  .diq-panel-5-content { max-width: 61vw; }
  .diq-panel-5-svg     { width: 32vw; }

  /* Panel 6 — left SVG: text 43→52vw, padding-left 49→40vw, SVG 52→43vw */
  .diq-panel-6-svg     { width: 43vw; }
  .diq-panel-6-content { padding: 8vw 8vw 8vw 40vw; }

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

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