/*
 * PreVU Labs · v1.4 · site.css
 * v1.4 = v1.3 base + Redox-inspired motion (curtains · parallax · marquee drop-in · spotlight-open)
 *      + side-by-side wide-screen layout fixes + blog styles + inline-page relative-path fix.
 * All keep-list from v1.3 · font stack (Inter + Space Grotesk) · shooting-stars · aurora hero · bento grid · bronze accent.
 * Motion respects prefers-reduced-motion.
 */

:root {
  /* Palette (dark base) */
  --bg-0: #05070E;
  --bg-1: #0A0D18;
  --bg-2: #10152A;
  --bg-3: #171D3A;
  --bg-4: #202749;
  --line: rgba(255,255,255,0.08);
  --line-2: rgba(255,255,255,0.14);
  --line-3: rgba(255,255,255,0.22);

  /* Text */
  --fg-0: #F5F7FF;
  --fg-1: #C8CEEA;
  --fg-2: #8890B8;
  --fg-3: #5E6591;

  /* Brand */
  --brand-orange: #EA5A2D;
  --brand-orange-hi: #FF6E3E;
  --brand-orange-lo: #C74616;
  --brand-orange-glow: rgba(234,90,45,0.35);

  --brand-indigo: #3548D8;
  --brand-indigo-hi: #5B6DFF;
  --brand-indigo-lo: #2233B0;
  --brand-indigo-glow: rgba(53,72,216,0.35);

  --brand-bronze: #B8935A;
  --brand-bronze-hi: #D4A96A;
  --brand-bronze-lo: #8F7043;
  --brand-bronze-glow: rgba(184,147,90,0.30);

  --brand-emerald: #4FB588;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 200ms;
  --dur-med: 400ms;
  --dur-slow: 800ms;

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;

  --maxw: 1200px;
  --maxw-narrow: 860px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg-1);
  color: var(--fg-0);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-feature-settings: 'cv11' 1, 'ss01' 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
::selection { background: var(--brand-orange); color: #fff; }

.display, h1, h2, h3, .h1, .h2, .h3 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  letter-spacing: -0.02em;
  font-weight: 700;
  line-height: 1.08;
}
h1, .h1 { font-size: clamp(2.4rem, 5vw, 4.4rem); }
h2, .h2 { font-size: clamp(1.8rem, 3.4vw, 3rem); margin-bottom: 0.4em; }
h3, .h3 { font-size: clamp(1.2rem, 1.8vw, 1.6rem); margin-bottom: 0.3em; }
p { color: var(--fg-1); }

.mono { font-family: 'JetBrains Mono', 'SF Mono', ui-monospace, Menlo, Consolas, monospace; font-feature-settings: 'tnum' 1; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.wrap-narrow { width: 100%; max-width: var(--maxw-narrow); margin: 0 auto; padding: 0 24px; }
section { padding: 96px 0; position: relative; }
@media (max-width: 640px) { section { padding: 64px 0; } }

.skip {
  position: absolute; top: -60px; left: 12px; z-index: 100;
  padding: 10px 16px; background: var(--brand-orange); color: #fff;
  border-radius: 8px; font-weight: 600; font-size: 14px;
  transition: top 200ms ease;
}
.skip:focus { top: 12px; }

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  padding: 14px 0;
  background: rgba(5, 7, 14, 0.65);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid var(--line);
  transition: background 200ms ease;
  color: var(--fg-0);
}
.nav-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.nav-logo { display: inline-flex; align-items: center; gap: 10px; }
.nav-logo img { height: 40px; width: auto; display: block; }
.nav-links { display: flex; gap: 28px; font-size: 14px; color: var(--fg-1); font-weight: 500; align-items: center; }
.nav-links a { opacity: 0.85; transition: opacity 200ms ease, color 200ms ease; padding: 4px 0; }
.nav-links a:hover, .nav-links a.active { opacity: 1; color: var(--brand-orange-hi); }
.nav-cta {
  background: var(--brand-orange); color: #fff; padding: 10px 18px;
  border-radius: 999px; font-size: 14px; font-weight: 600;
  transition: transform 200ms ease, background 200ms ease, box-shadow 200ms ease;
  white-space: nowrap;
  display: inline-flex; align-items: center; gap: 6px;
  box-shadow: 0 6px 24px -8px var(--brand-orange-glow);
}
.nav-cta:hover, .nav-cta:focus-visible { background: var(--brand-orange-hi); transform: translateY(-1px); box-shadow: 0 10px 32px -8px var(--brand-orange-glow); }

.nav-burger { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; background: transparent; border: 0; cursor: pointer; color: var(--fg-0); }
.nav-mobile {
  display: none; position: fixed; top: 62px; left: 0; right: 0;
  background: rgba(10, 13, 24, 0.98); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  padding: 24px; flex-direction: column; gap: 16px; z-index: 39;
}
.nav-mobile.open { display: flex; }
.nav-mobile a { color: var(--fg-0); font-size: 18px; padding: 8px 0; }
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-burger { display: inline-flex; }
}

/* Aurora hero · Aceternity-shape */
.aurora-wrap {
  position: relative; overflow: hidden;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(53,72,216,0.35), transparent 55%),
              radial-gradient(ellipse 60% 40% at 100% 40%, rgba(234,90,45,0.25), transparent 60%),
              radial-gradient(ellipse 60% 50% at 0% 60%, rgba(184,147,90,0.22), transparent 60%),
              linear-gradient(180deg, var(--bg-1) 0%, var(--bg-0) 100%);
}
.aurora-grid::before {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 40%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 40%, transparent 80%);
  pointer-events: none;
}
.sparkles { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.sparkle {
  position: absolute; width: 2px; height: 2px; background: var(--fg-0);
  border-radius: 50%; opacity: 0.6;
  animation: sparkle 4s var(--ease-io) infinite;
}
@keyframes sparkle { 0%, 100% { opacity: 0.2; transform: scale(0.6); } 50% { opacity: 1; transform: scale(1.4); } }

.meteor {
  position: absolute; top: -50px; width: 1px; height: 60px;
  background: linear-gradient(180deg, rgba(234,90,45,0.9), transparent);
  transform: rotate(215deg); pointer-events: none;
  animation: meteor 6s linear infinite;
}
@keyframes meteor {
  0% { transform: translate(0, 0) rotate(215deg); opacity: 0; }
  10% { opacity: 1; }
  100% { transform: translate(-500px, 500px) rotate(215deg); opacity: 0; }
}

.hero { position: relative; padding: 160px 0 96px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border: 1px solid var(--line-2); border-radius: 999px;
  font-size: 13px; color: var(--fg-1); font-weight: 500;
  background: rgba(255,255,255,0.02);
  backdrop-filter: blur(8px);
}
.hero-eyebrow-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand-emerald); box-shadow: 0 0 8px var(--brand-emerald); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }

.hero-title {
  margin-top: 20px; margin-bottom: 20px;
  background: linear-gradient(180deg, var(--fg-0) 0%, rgba(200,206,234,0.65) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-sub { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--fg-1); max-width: 640px; margin-bottom: 32px; line-height: 1.55; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px;
  font-size: 15px; font-weight: 600; cursor: pointer;
  border: 0; transition: transform 200ms ease, background 200ms ease, box-shadow 200ms ease, color 200ms ease;
  min-height: 44px;
}
.btn-primary { background: var(--brand-orange); color: #fff; box-shadow: 0 8px 24px -8px var(--brand-orange-glow); }
.btn-primary:hover { background: var(--brand-orange-hi); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--fg-0); border: 1px solid var(--line-2); }
.btn-outline:hover { background: rgba(255,255,255,0.06); border-color: var(--line-3); transform: translateY(-1px); }
.btn-indigo { background: var(--brand-indigo); color: #fff; box-shadow: 0 8px 24px -8px var(--brand-indigo-glow); }
.btn-indigo:hover { background: var(--brand-indigo-hi); transform: translateY(-1px); }
.btn-bronze { background: var(--brand-bronze); color: var(--bg-0); box-shadow: 0 8px 24px -8px var(--brand-bronze-glow); }
.btn-bronze:hover { background: var(--brand-bronze-hi); transform: translateY(-1px); }

.card {
  background: linear-gradient(180deg, var(--bg-3), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  position: relative;
  transition: transform 300ms var(--ease-out), border-color 300ms ease, background 300ms ease;
  overflow: hidden;
}
.card:hover { transform: translateY(-2px); border-color: var(--line-2); }
.card-title { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.25rem; margin: 8px 0; letter-spacing: -0.01em; }
.card-desc { color: var(--fg-1); font-size: 0.94rem; line-height: 1.55; }
.card-tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }
.tag-soslabs { background: rgba(53,72,216,0.18); color: #A8B4FF; border: 1px solid rgba(91,109,255,0.30); }
.tag-studio { background: rgba(234,90,45,0.18); color: #FFB088; border: 1px solid rgba(234,90,45,0.30); }
.tag-open { background: rgba(79,181,136,0.18); color: #7CE0AF; border: 1px solid rgba(79,181,136,0.30); }
.tag-consult { background: rgba(184,147,90,0.18); color: #E6C48A; border: 1px solid rgba(184,147,90,0.30); }

.pcard {
  background: linear-gradient(180deg, var(--bg-3), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px;
  position: relative;
  transition: transform 300ms var(--ease-out), border-color 300ms ease;
  overflow: hidden;
  display: flex; flex-direction: column; gap: 12px; min-height: 220px;
  color: var(--fg-0);
}
.pcard::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 0%), rgba(234,90,45,0.15), transparent 40%);
  opacity: 0; transition: opacity 300ms ease; pointer-events: none;
}
.pcard:hover { transform: translateY(-2px); border-color: var(--line-2); }
.pcard:hover::before { opacity: 1; }
.pcard-arrow { position: absolute; top: 24px; right: 24px; opacity: 0.4; transition: opacity 200ms ease, transform 200ms ease; }
.pcard:hover .pcard-arrow { opacity: 1; transform: translate(2px, -2px); }
.pcard-head { display: flex; align-items: center; gap: 12px; }
.pcard-icon {
  width: 40px; height: 40px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Space Grotesk', sans-serif; font-weight: 800; font-size: 20px;
  color: #fff;
}
.icon-soslabs { background: linear-gradient(135deg, var(--brand-indigo), var(--brand-indigo-lo)); box-shadow: 0 4px 12px -2px var(--brand-indigo-glow); }
.icon-studio { background: linear-gradient(135deg, var(--brand-orange), var(--brand-orange-lo)); box-shadow: 0 4px 12px -2px var(--brand-orange-glow); }
.icon-open { background: linear-gradient(135deg, var(--brand-emerald), #2E8E68); }
.icon-consult { background: linear-gradient(135deg, var(--brand-bronze), var(--brand-bronze-lo)); box-shadow: 0 4px 12px -2px var(--brand-bronze-glow); }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.bento { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: minmax(200px, auto); gap: 16px; }
.bento-lg { grid-column: span 2; grid-row: span 2; }
.bento-md { grid-column: span 1; grid-row: span 2; }
.bento-sm { grid-column: span 1; grid-row: span 1; }
@media (max-width: 900px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento-lg { grid-column: span 2; grid-row: span 1; }
  .bento-md { grid-column: span 1; grid-row: span 1; }
}
@media (max-width: 640px) {
  .bento { grid-template-columns: 1fr; }
  .bento-lg { grid-column: span 1; }
}

.sec-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; text-transform: uppercase; letter-spacing: 0.10em; color: var(--brand-orange); font-weight: 600; margin-bottom: 14px; }
.sec-eyebrow.indigo { color: #8DA0FF; }
.sec-eyebrow.bronze { color: #E6C48A; }
.sec-eyebrow.emerald { color: #7CE0AF; }
.sec-title { margin-bottom: 12px; }
.sec-lede { color: var(--fg-1); max-width: 620px; margin-bottom: 40px; font-size: 1.05rem; }

.sec-alt { background: var(--bg-2); }
.sec-dark { background: var(--bg-0); }

.marquee {
  display: flex; overflow: hidden; user-select: none; gap: 48px;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track { display: flex; gap: 48px; animation: marquee 40s linear infinite; flex-shrink: 0; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.mq-item {
  display: inline-flex; align-items: center; height: 60px;
  padding: 0 28px; font-family: 'Space Grotesk', sans-serif; font-weight: 700;
  font-size: 22px; letter-spacing: -0.01em; color: var(--fg-2);
  border: 1px solid var(--line); border-radius: 12px;
  background: rgba(255,255,255,0.02);
  white-space: nowrap;
  transition: color 200ms ease, border-color 200ms ease;
}
.mq-item:hover { color: var(--fg-0); border-color: var(--line-2); }

.feature { display: flex; gap: 20px; align-items: flex-start; padding: 20px 0; border-bottom: 1px solid var(--line); }
.feature:last-child { border-bottom: 0; }
.feature-num { flex: 0 0 auto; font-family: 'JetBrains Mono', monospace; color: var(--brand-orange); font-size: 13px; padding-top: 4px; min-width: 40px; }
.feature-body h3 { margin: 0 0 6px; }
.feature-body p { margin: 0; }

.consultancy-hero { background:
  radial-gradient(ellipse 80% 60% at 50% 0%, rgba(184,147,90,0.28), transparent 55%),
  radial-gradient(ellipse 60% 40% at 100% 40%, rgba(53,72,216,0.16), transparent 60%),
  linear-gradient(180deg, var(--bg-1) 0%, var(--bg-0) 100%);
}

.partnership {
  border: 1px solid rgba(184,147,90,0.35);
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, rgba(184,147,90,0.08), rgba(184,147,90,0.02));
  padding: 32px;
  position: relative;
  overflow: hidden;
}
.partnership::before {
  content: ''; position: absolute; top: -50%; right: -20%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(184,147,90,0.20), transparent 60%);
  pointer-events: none;
}
.partnership-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border: 1px solid rgba(184,147,90,0.45);
  border-radius: 999px; font-size: 12px; color: #E6C48A;
  text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600;
  background: rgba(184,147,90,0.10);
}

footer.site {
  background: var(--bg-0); border-top: 1px solid var(--line);
  padding: 72px 0 36px; color: var(--fg-2);
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 48px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-col h3 { font-family: 'Space Grotesk', sans-serif; color: var(--fg-0); font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; margin: 0 0 16px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--fg-1); font-size: 14px; transition: color 200ms ease; }
.footer-col a:hover { color: var(--brand-orange-hi); }
.footer-logo img { height: 32px; width: auto; margin-bottom: 14px; }
.footer-legal { display: flex; justify-content: space-between; padding-top: 24px; border-top: 1px solid var(--line); flex-wrap: wrap; gap: 12px; font-size: 13px; color: var(--fg-2); }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  transition: border-color 200ms ease, color 200ms ease, background 200ms ease;
}
.footer-social a:hover { border-color: var(--brand-orange-hi); color: var(--brand-orange-hi); background: rgba(234,90,45,0.08); }

.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.max-narrow { max-width: 720px; }
.mt-2 { margin-top: 8px; } .mt-4 { margin-top: 16px; } .mt-6 { margin-top: 24px; } .mt-8 { margin-top: 32px; } .mt-12 { margin-top: 48px; }
.mb-2 { margin-bottom: 8px; } .mb-4 { margin-bottom: 16px; } .mb-6 { margin-bottom: 24px; } .mb-8 { margin-bottom: 32px; }
.flex { display: flex; }
.gap-2 { gap: 8px; } .gap-4 { gap: 16px; } .gap-6 { gap: 24px; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.hidden-mob { display: initial; }
@media (max-width: 640px) { .hidden-mob { display: none; } }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); }
.reveal.in { opacity: 1; transform: translateY(0); }

.form-row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.form-row label { font-size: 13px; color: var(--fg-1); font-weight: 500; }
.form-row input, .form-row textarea, .form-row select {
  background: var(--bg-3); border: 1px solid var(--line-2); border-radius: 10px;
  padding: 12px 14px; color: var(--fg-0); font-family: inherit; font-size: 15px;
  transition: border-color 200ms ease, background 200ms ease;
}
.form-row input:focus, .form-row textarea:focus, .form-row select:focus { outline: 2px solid var(--brand-orange); outline-offset: 2px; border-color: var(--brand-orange); }
.form-row textarea { min-height: 120px; resize: vertical; }
.consent-row { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--fg-1); margin: 8px 0 18px; }

.pd-hero { padding-top: 140px; padding-bottom: 60px; }
.pd-title { margin: 12px 0 16px; }
.pd-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.pd-actions { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.pd-pillars { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 32px; }
@media (max-width: 640px) { .pd-pillars { grid-template-columns: 1fr; } }
.pillar { background: var(--bg-3); border: 1px solid var(--line); padding: 20px; border-radius: 14px; }
.pillar h4 { margin: 0 0 6px; font-family: 'Space Grotesk', sans-serif; font-size: 1rem; }
.pillar p { margin: 0; font-size: 0.95rem; color: var(--fg-1); }

.callout {
  background: linear-gradient(135deg, rgba(53,72,216,0.10), rgba(53,72,216,0.02));
  border: 1px solid rgba(91,109,255,0.30);
  border-radius: 16px; padding: 24px; margin: 32px 0;
}

.legal-body { max-width: 760px; margin: 120px auto 80px; padding: 0 24px; }
.legal-body h1 { margin-bottom: 24px; }
.legal-body h2 { margin-top: 32px; }
.legal-body p, .legal-body li { color: var(--fg-1); }
.legal-body ul { padding-left: 20px; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* =====================================================================
   v1.4 additions · Pav Loom transcripts 2026-08-09
   Grouped by intent · every rule commented for maintainability.
   ===================================================================== */

/* ------------ Theatre curtain (Redox-inspired · Pav loved) ------------
   Two vertical panels sit on top of everything at page load, then slide
   out to left/right — like curtains opening on a stage. Uses CSS transitions
   triggered by JS adding .curtain--open.
*/
.curtain {
  position: fixed; inset: 0; z-index: 9999; pointer-events: none;
  display: flex;
}
.curtain::before, .curtain::after {
  content: ''; flex: 1; height: 100%;
  background: var(--bg-0);
  transition: transform 1.1s cubic-bezier(0.7, 0, 0.2, 1);
  will-change: transform;
}
.curtain::before { transform-origin: left; }
.curtain::after { transform-origin: right; }
.curtain--open::before { transform: translateX(-100%); }
.curtain--open::after  { transform: translateX(100%); }

/* Small centred logo pulse while curtain is up · gives brand identity to the load moment */
.curtain-logo {
  position: fixed; inset: 0; z-index: 10000; pointer-events: none;
  display: flex; align-items: center; justify-content: center;
  animation: curtain-logo-fade 1.1s cubic-bezier(0.7, 0, 0.2, 1) forwards;
}
.curtain-logo img { height: 56px; opacity: 0.95; filter: brightness(0) invert(1) drop-shadow(0 0 24px rgba(234,90,45,0.55)); }
@keyframes curtain-logo-fade { 0% { opacity: 0; } 30% { opacity: 1; } 90% { opacity: 0; } 100% { opacity: 0; } }

/* ------------ Parallax layer ------------
   Elements marked with [data-parallax] get transform: translate3d applied via JS.
   These CSS defaults keep them positioned correctly regardless of that.
*/
[data-parallax] { will-change: transform; }
.parallax-bg {
  position: absolute; inset: -10% -5%; z-index: 0;
  pointer-events: none;
  opacity: 0.5;
}
.parallax-bg svg { width: 100%; height: 100%; }

/* ------------ Rocket-scroll (Pav "rocket travels inversely to scroll" example) ------------
   A small rocket illustration parked in a scroll gutter that moves as you scroll.
   Uses data-parallax negative speed so it drifts up while page scrolls down.
*/
.rocket-gutter {
  position: absolute; right: 6%; top: 20%; width: 44px; z-index: 2;
  pointer-events: none;
}
@media (max-width: 900px) { .rocket-gutter { display: none; } }
.rocket-gutter svg { width: 100%; height: auto; opacity: 0.85; filter: drop-shadow(0 6px 20px rgba(234,90,45,0.35)); }

/* ------------ Split-word parallax heading ------------
   Each word slides up with a stagger on first paint · used on "Let's talk"
   spotlight sections. Redox-inspired.
*/
.split-word { display: inline; }
.split-word-item {
  display: inline-block; opacity: 0; transform: translateY(30px);
  animation: split-in 800ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes split-in { to { opacity: 1; transform: translateY(0); } }

/* ------------ Drop-in animation (client-logo strip · Redux-inspired) ------------ */
.drop-in-item {
  opacity: 0; transform: translateY(-20px);
}
.drop-in-go { animation: drop-in 600ms cubic-bezier(0.16, 1, 0.3, 1) forwards; }
@keyframes drop-in { to { opacity: 1; transform: translateY(0); } }

/* ------------ Bento upgrade · show 4 more products so no visible gap ------------
   v1.3 showed 4. Pav complaint: "there's this gap here". v1.4 shows 8 cards
   in the bento with the mini-cards row · plus "See all 13" button below.
*/
.bento-mini-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  margin-top: 16px;
}
@media (max-width: 900px) { .bento-mini-row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .bento-mini-row { grid-template-columns: 1fr; } }
.mini-pcard {
  background: linear-gradient(180deg, var(--bg-3), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 16px;
  transition: transform 300ms var(--ease-out), border-color 300ms ease;
  color: var(--fg-0);
  display: flex; flex-direction: column; gap: 6px;
  min-height: 120px;
}
.mini-pcard:hover { transform: translateY(-2px); border-color: var(--line-2); }
.mini-pcard h4 { font-family: 'Space Grotesk', sans-serif; font-size: 0.95rem; margin: 0; }
.mini-pcard p { font-size: 0.82rem; color: var(--fg-2); margin: 0; line-height: 1.4; }
.mini-pcard-icon {
  width: 26px; height: 26px; border-radius: 8px; font-size: 12px; font-weight: 800;
  color: #fff; display: inline-flex; align-items: center; justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
}

/* ------------ Side-by-side wide layout ------------
   Pav complaint · "sections take up a lot of space on a wide screen · they could just
   live next to each other" · this pair layout stacks only under 900px.
*/
.pair {
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start;
}
@media (max-width: 900px) { .pair { grid-template-columns: 1fr; } }

/* ------------ How-implementation-runs (ported from v1.2 · Pav "very powerful section") ------------ */
.swim {
  background: linear-gradient(135deg, rgba(53,72,216,0.06), rgba(53,72,216,0.02));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  margin-top: 16px;
}
.swim h3 { margin: 0 0 20px; font-size: 1.05rem; }
.swim-grid {
  display: grid; grid-template-columns: 130px repeat(4, 1fr); gap: 8px 12px;
  align-items: center;
}
.swim-hdr {
  font-size: 11px; font-weight: 700; color: var(--fg-2);
  letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 0;
}
.swim-lane {
  font-size: 13px; font-weight: 600; color: var(--fg-0); padding: 8px 0;
}
.swim-bar {
  min-height: 28px; height: auto; border-radius: 6px; padding: 4px 12px; font-size: 12px;
  color: #fff; display: inline-flex; align-items: center;
  font-weight: 600;
}
.swim-bar.scope { background: linear-gradient(90deg, #4FB588, #7FE0A0); color: #0B0B0C; }
.swim-bar.build { background: linear-gradient(90deg, var(--brand-orange), var(--brand-orange-hi)); }
.swim-bar.qa    { background: linear-gradient(90deg, var(--brand-indigo), var(--brand-indigo-hi)); }
.swim-bar.ship  { background: linear-gradient(90deg, var(--brand-bronze), var(--brand-bronze-hi)); color: #0B0B0C; }
@media (max-width: 700px) {
  .swim-grid { grid-template-columns: 1fr; }
  .swim-hdr:not(:first-child) { display: none; }
  .swim-hdr:first-child { display: none; }
  .swim-lane { padding-top: 12px; border-top: 1px solid var(--line); }
}

/* ------------ Case-study cards (ported from v1.2 · "ship first · case study second") ------------ */
.case {
  background: linear-gradient(180deg, var(--bg-3), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px;
  transition: transform 300ms var(--ease-out), border-color 300ms ease;
}
.case:hover { transform: translateY(-2px); border-color: var(--line-2); }
.case-tag {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px;
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600;
  background: rgba(234,90,45,0.14); color: #FFB088; border: 1px solid rgba(234,90,45,0.25);
  margin-bottom: 10px;
}
.case h3 { margin: 4px 0 8px; font-size: 1.1rem; }
.case p { font-size: 0.94rem; color: var(--fg-1); margin: 0 0 10px; }
.case-meta { font-size: 12px; color: var(--fg-2); }

/* ------------ Spotlight open section ("Let's Work" style · Redux-inspired) ------------
   Full-width dark section with big word-split heading that animates on load.
   Radial vignette pulses outward to give the "spotlight opens" feel.
*/
.spotlight {
  position: relative; overflow: hidden;
  background: radial-gradient(ellipse 40% 60% at 50% 30%, rgba(234,90,45,0.25), transparent 60%),
              linear-gradient(180deg, var(--bg-0), var(--bg-1));
  padding: 120px 0;
}
.spotlight::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle 0px at 50% 40%, rgba(234,90,45,0.35), transparent 40%);
  animation: spotlight-open 1.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  pointer-events: none;
}
@keyframes spotlight-open {
  0% { background: radial-gradient(circle 0px at 50% 40%, rgba(234,90,45,0.55), transparent 40%); }
  100% { background: radial-gradient(circle 800px at 50% 40%, rgba(234,90,45,0.15), transparent 70%); }
}
.spotlight .wrap-narrow { position: relative; z-index: 2; text-align: center; }
.spotlight h2 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.05; margin: 0 0 24px;
}

/* ------------ Talk-to-us fit-its-own-box fix (Pav complaint) ------------
   Was overflowing the wrap-narrow box. Adds a card container with padding.
*/
.talk-callout {
  background: linear-gradient(135deg, rgba(234,90,45,0.10), rgba(234,90,45,0.02));
  border: 1px solid rgba(234,90,45,0.30);
  border-radius: var(--r-lg);
  padding: 40px 32px;
  text-align: center;
  max-width: 720px; margin: 0 auto;
}
.talk-callout h2 { margin: 0 0 12px; }
.talk-callout p { margin: 0 auto 24px; max-width: 560px; }

/* ------------ Value prop banner (top of page · new v1.4) ------------ */
.hero-actions .btn { min-width: 180px; justify-content: center; }

/* ------------ Blog styles (new v1.4) ------------ */
.blog-hero { padding: 140px 0 60px; }
.blog-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 32px;
}
@media (max-width: 900px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .blog-grid { grid-template-columns: 1fr; } }
.post-card {
  background: linear-gradient(180deg, var(--bg-3), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px;
  transition: transform 300ms var(--ease-out), border-color 300ms ease;
  color: var(--fg-0);
  display: flex; flex-direction: column; gap: 10px;
  min-height: 260px;
}
.post-card:hover { transform: translateY(-2px); border-color: var(--line-2); }
.post-card .post-date { font-size: 12px; color: var(--fg-2); }
.post-card h3 { font-size: 1.1rem; margin: 0; }
.post-card p { color: var(--fg-1); font-size: 0.94rem; margin: 0; }
.post-body {
  max-width: 720px; margin: 100px auto 80px; padding: 0 24px;
}
.post-body h1 { margin: 12px 0 20px; }
.post-body h2 { margin: 32px 0 12px; }
.post-body h3 { margin: 24px 0 8px; }
.post-body p, .post-body li { color: var(--fg-1); font-size: 1.02rem; line-height: 1.72; }
.post-body ul, .post-body ol { padding-left: 22px; }
.post-body blockquote {
  border-left: 3px solid var(--brand-orange);
  padding: 4px 0 4px 18px;
  margin: 20px 0;
  color: var(--fg-0);
  font-style: italic;
}
.post-meta {
  display: flex; gap: 12px; flex-wrap: wrap;
  font-size: 13px; color: var(--fg-3);
  padding-bottom: 16px; border-bottom: 1px solid var(--line);
}
.post-tag {
  display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px;
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600;
  background: rgba(53,72,216,0.14); color: #A8B4FF; border: 1px solid rgba(91,109,255,0.25);
}

/* ------------ Clients marquee drop-in (Redux-inspired grid variant) ------------ */
.client-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px;
  margin-top: 24px;
}
@media (max-width: 900px) { .client-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .client-grid { grid-template-columns: repeat(2, 1fr); } }
.client-chip {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 16px 12px;
  font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 15px;
  color: var(--fg-1);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,0.02);
  transition: color 200ms ease, border-color 200ms ease, transform 200ms ease;
  text-align: center; min-height: 60px;
}
.client-chip:hover { color: var(--fg-0); border-color: var(--line-2); transform: translateY(-2px); }

/* ------------ Footer capability chips row (v1.4.2 · stack-credibility signal) ------------ */
.footer-caps {
  display: flex; flex-direction: column; gap: 10px;
  padding: 20px 0; margin-top: 8px;
  border-top: 1px solid var(--line);
}
.footer-caps-label {
  font-family: 'Space Grotesk', sans-serif; font-size: 11px;
  letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--fg-2);
}
.footer-caps-chips {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.footer-cap-chip {
  display: inline-flex; align-items: center;
  padding: 6px 10px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px; letter-spacing: 0.02em;
  color: var(--fg-1);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,0.02);
  transition: color 200ms ease, border-color 200ms ease, background 200ms ease;
}
.footer-cap-chip:hover { color: var(--fg-0); border-color: var(--line-2); background: rgba(184,147,90,0.06); }

/* ------------ Stack-card block (v1.4.2 · consultancy stack we deploy) ------------ */
.stack-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  margin-top: 24px;
}
@media (max-width: 900px) { .stack-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .stack-grid { grid-template-columns: 1fr; } }
.stack-card {
  background: var(--bg-3); border: 1px solid var(--line);
  padding: 16px; border-radius: 12px;
  display: flex; flex-direction: column; gap: 8px;
}
.stack-card h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase;
  margin: 0; color: var(--fg-0);
}
.stack-card-items {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.stack-item {
  display: inline-flex; align-items: center;
  padding: 4px 8px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11.5px; letter-spacing: 0.01em;
  color: var(--fg-1);
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255,255,255,0.02);
}

/* ------------ Inline stack line (v1.4.2 · product card + story stack signals) ------------ */
.stack-line {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin-top: 14px; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 10px;
  background: rgba(255,255,255,0.02);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px; color: var(--fg-2);
}
.stack-line-label {
  color: var(--fg-3); letter-spacing: 0.06em; text-transform: uppercase; font-size: 10px;
  padding-right: 6px; border-right: 1px solid var(--line);
}
.stack-line-items { color: var(--fg-1); }

/* ------------ Ensure legacy overrides don't break v1.4 flows ------------ */
.icon-persona { display: none !important; } /* Pav complaint · "you can see my icon sometimes · shouldn't be there" */

/* =====================================================================
   v1.5 additions · Pav Loom transcripts 2026-08-10
   Address all 23 feedback items with commented, targeted CSS.
   Grouped · nav dropdowns · parallax breaks · glass-morphism · CTAs ·
   contrast folds · products accordion · cursor polygons · footer expand.
   ===================================================================== */

/* ---- Favicon + logo path: reset via new asset filenames ---- */

/* ---- v1.5.1 · Taller CTA buttons + orange-slide hover (Redox pattern) ----
   Pav: "taller buttons · hover-effect where orange moves up/down"
   Uses a pseudo-element that translates on hover to give the "orange slide" feel. */
.btn { padding: 16px 26px; min-height: 52px; font-size: 15px; position: relative; overflow: hidden; z-index: 1; }
.btn-primary::before, .btn-bronze::before, .btn-indigo::before {
  content: ''; position: absolute; inset: 0; background: currentColor; opacity: 0;
  transform: translateY(100%); transition: transform 320ms var(--ease-out), opacity 320ms ease;
  z-index: -1;
}
.btn-primary::before { background: linear-gradient(180deg, var(--brand-orange-hi), var(--brand-orange-lo)); }
.btn-primary:hover::before { transform: translateY(0); opacity: 1; }
.btn-outline { padding: 15px 25px; }
.btn-outline::before {
  content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, var(--brand-orange), var(--brand-orange-lo));
  transform: translateY(100%); transition: transform 320ms var(--ease-out); z-index: -1;
}
.btn-outline:hover::before { transform: translateY(0); }
.btn-outline:hover { border-color: var(--brand-orange); color: #fff; }

/* ---- v1.5.2 · Nav dropdowns (Services + Products) ----
   Pav: "products dropdown lists all products · services dropdown lists all services"
   Pure-CSS + JS hover/focus dropdowns with glass-morphism panel. */
.nav-links { position: relative; }
.has-dd { position: relative; }
.dd-toggle {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  background: transparent; border: 0; color: inherit; font: inherit; padding: 4px 0;
}
.dd-caret { width: 10px; height: 10px; transition: transform 220ms ease; }
.has-dd.open .dd-caret { transform: rotate(180deg); }
.dd-panel {
  position: absolute; top: calc(100% + 14px); left: 50%; transform: translate(-50%, -8px);
  min-width: 320px; max-width: 460px;
  background: rgba(10, 13, 24, 0.92); backdrop-filter: saturate(180%) blur(24px); -webkit-backdrop-filter: saturate(180%) blur(24px);
  border: 1px solid var(--line-2); border-radius: var(--r-lg);
  box-shadow: 0 20px 60px -20px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.03) inset;
  padding: 16px; z-index: 60; pointer-events: none;
  opacity: 0; visibility: hidden;
  transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out), visibility 220ms;
}
.has-dd.open .dd-panel, .has-dd:hover .dd-panel, .has-dd:focus-within .dd-panel {
  opacity: 1; visibility: visible; transform: translate(-50%, 0); pointer-events: auto;
}
.dd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; }
.dd-grid.single { grid-template-columns: 1fr; }
.dd-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px;
  color: var(--fg-0); font-size: 14px; font-weight: 500; text-decoration: none;
  transition: background 180ms ease, transform 180ms ease;
}
.dd-item:hover { background: rgba(255,255,255,0.06); transform: translateX(2px); color: var(--brand-orange-hi); }
.dd-item .dd-dot {
  width: 8px; height: 8px; border-radius: 3px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--brand-orange), var(--brand-orange-lo));
}
.dd-item .dd-dot.indigo { background: linear-gradient(135deg, var(--brand-indigo), var(--brand-indigo-lo)); }
.dd-item .dd-dot.emerald { background: linear-gradient(135deg, var(--brand-emerald), #2E8E68); }
.dd-item .dd-dot.bronze { background: linear-gradient(135deg, var(--brand-bronze), var(--brand-bronze-lo)); }
.dd-item .dd-meta { color: var(--fg-3); font-size: 11px; font-weight: 400; margin-left: auto; }
.dd-header {
  padding: 6px 12px 10px; margin-bottom: 6px;
  border-bottom: 1px solid var(--line);
  font-size: 11px; letter-spacing: 0.10em; text-transform: uppercase; color: var(--fg-3); font-weight: 700;
}
@media (max-width: 900px) {
  .dd-panel { display: none; }
}

/* Mobile nav: nested lists for dropdown content in the mobile menu drawer */
.nav-mobile .nm-group { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 8px; }
.nav-mobile .nm-group-title { font-family: 'Space Grotesk', sans-serif; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-3); margin-bottom: 6px; }
.nav-mobile .nm-group a { font-size: 15px; padding: 6px 0; color: var(--fg-1); }

/* ---- v1.5.3 · Section-fold contrast alternation ----
   Pav: "everything's all bluey-purple · no contrast between folds · Redox had white AND dark"
   .sec-light gives a strongly-lit near-white fold; .sec-dark stays deep-black.
   Alternating creates the visual rhythm Pav asked for. */
.sec-light {
  background: linear-gradient(180deg, #F5F7FF 0%, #E7EAFB 100%);
  color: #0A0D18;
}
.sec-light h1, .sec-light h2, .sec-light h3, .sec-light h4 { color: #0A0D18; -webkit-text-fill-color: initial; background: none; }
.sec-light p { color: #3B4270; }
.sec-light .sec-eyebrow { color: var(--brand-orange-lo); }
.sec-light .sec-lede { color: #3B4270; }
.sec-light .card, .sec-light .pcard, .sec-light .mini-pcard, .sec-light .case, .sec-light .post-card {
  background: #FFFFFF; border: 1px solid rgba(10,13,24,0.08); color: #0A0D18;
  box-shadow: 0 8px 32px -8px rgba(53,72,216,0.10);
}
.sec-light .card-desc, .sec-light .post-card p, .sec-light .mini-pcard p { color: #3B4270; }
.sec-light .btn-outline { color: #0A0D18; border-color: rgba(10,13,24,0.12); }
.sec-light .btn-outline:hover { color: #fff; }
.sec-light .stack-line { background: rgba(10,13,24,0.03); border-color: rgba(10,13,24,0.08); color: #4B5280; }
.sec-light .footer-caps-label { color: #6B7194; }
.sec-light .client-chip { background: #FFFFFF; border: 1px solid rgba(10,13,24,0.08); color: #3B4270; box-shadow: 0 4px 16px -8px rgba(0,0,0,0.10); }
.sec-light .client-chip:hover { color: #0A0D18; border-color: rgba(10,13,24,0.16); }

/* ---- v1.5.4 · Image-only parallax break-fold (Redox pattern) ----
   Pav: "parallax image-only breaks · sections with just an image no content · we haven't used"
   A minimal-height fold whose background image stays fixed while content scrolls past. */
.parallax-break {
  height: 340px;
  background-size: cover; background-position: center; background-attachment: fixed;
  background-repeat: no-repeat;
  position: relative;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.parallax-break::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(5,7,14,0.55), rgba(5,7,14,0.75));
}
.parallax-break .pb-inner {
  position: relative; z-index: 2; height: 100%; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 0 24px;
}
.parallax-break .pb-inner h2 {
  color: #fff; font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.6rem); margin: 0; max-width: 780px;
  background: linear-gradient(180deg, #fff, rgba(255,255,255,0.55));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
/* iOS/Safari fallback: fixed attachment is broken on mobile → static image */
@media (max-width: 900px) { .parallax-break { background-attachment: scroll; height: 260px; } }

/* Pre-baked parallax-break backgrounds (SVG data URIs, brand-tinted) */
.pb-indigo { background-image:
  radial-gradient(ellipse 60% 50% at 30% 40%, rgba(91,109,255,0.45), transparent 60%),
  radial-gradient(ellipse 60% 40% at 80% 70%, rgba(234,90,45,0.32), transparent 60%),
  linear-gradient(135deg, #0A0D18, #171D3A); }
.pb-bronze { background-image:
  radial-gradient(ellipse 60% 50% at 70% 30%, rgba(212,169,106,0.45), transparent 60%),
  radial-gradient(ellipse 60% 40% at 20% 70%, rgba(53,72,216,0.28), transparent 60%),
  linear-gradient(135deg, #10152A, #0A0D18); }
.pb-orange { background-image:
  radial-gradient(ellipse 60% 50% at 50% 40%, rgba(234,90,45,0.42), transparent 60%),
  linear-gradient(135deg, #171D3A, #0A0D18); }

/* ---- v1.5.5 · Polygon cursor-follow layer (pre.vu / AI Overlords pattern) ----
   Pav: "polygon plugin from pre.vu homepage · brings brand consistency"
   A fixed pointer-events:none SVG canvas at the top of the page; site.js moves polygons
   with easing towards the cursor. Only enabled on non-touch, non-reduced-motion. */
.polygon-canvas {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; overflow: hidden;
  opacity: 0.85;
}
.polygon-canvas svg { position: absolute; will-change: transform; filter: drop-shadow(0 4px 24px rgba(53,72,216,0.15)); }
.polygon-canvas .poly-1 { top: 12%; left: 8%; }
.polygon-canvas .poly-2 { top: 24%; right: 12%; }
.polygon-canvas .poly-3 { top: 62%; left: 14%; }
.polygon-canvas .poly-4 { top: 76%; right: 8%; }
.polygon-canvas .poly-5 { top: 46%; left: 46%; }
.polygon-canvas .poly-6 { top: 88%; left: 40%; }
@media (hover: none), (max-width: 900px) { .polygon-canvas { display: none; } }
@media (prefers-reduced-motion: reduce) { .polygon-canvas { display: none; } }
main, footer, nav, .curtain, .curtain-logo, .pv-voice-launcher, .pv-voice-panel { position: relative; z-index: 5; }
nav.nav { z-index: 40; }

/* ---- v1.5.6 · Circle-fills-out "Let's work" spotlight expansion ----
   Pav: "Let's work section had circle-fills-out and text-fills-out magic"
   Extends spotlight fold with an outward-growing circle + slide-in text. */
.letswork {
  position: relative; overflow: hidden;
  background: radial-gradient(ellipse 80% 60% at 50% 50%, rgba(234,90,45,0.10), transparent 60%),
              linear-gradient(180deg, var(--bg-0) 0%, var(--bg-1) 100%);
  padding: 120px 0; text-align: center;
}
.letswork .lw-circle {
  position: absolute; left: 50%; top: 50%; width: 120px; height: 120px;
  border-radius: 50%; transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(234,90,45,0.28), rgba(234,90,45,0.10) 40%, transparent 70%);
  transition: transform 1.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 1.4s ease;
  pointer-events: none;
}
.letswork.in .lw-circle { transform: translate(-50%, -50%) scale(14); opacity: 0.45; }
.letswork .lw-inner { position: relative; z-index: 2; max-width: 780px; margin: 0 auto; padding: 0 24px; }
.letswork h2 {
  font-family: 'Space Grotesk', sans-serif; font-weight: 700; letter-spacing: -0.03em;
  font-size: clamp(2.6rem, 6vw, 5rem); margin: 0 0 18px;
  /* WCAG-safe fallback colour · applied first so if -webkit-text-fill-color/background-clip fails the words stay visible against the dark spotlight background */
  color: #ffffff;
  background: linear-gradient(180deg, #fff, rgba(255,255,255,0.85));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
/* Faber 15-08-26 · Pav Loom flagged "Let's work together" rendering as invisible until highlighted.
   Root cause · .lw-word started at opacity:0 waiting for IntersectionObserver's .in class · if the
   observer missed (scroll speed, tab-switch, mobile Safari fold, reduced-motion timing), words stayed
   at opacity:0 and the gradient text-fill made only the browser-selection highlight visible.
   Fix · flip default to opacity:1 · animation now runs as a one-shot enhancement when .in fires · if
   the observer never runs, content stays visible + WCAG-AA-compliant against the dark bg. */
.letswork .lw-word {
  display: inline-block; opacity: 1; transform: none;
  transition: opacity 900ms var(--ease-out), transform 900ms var(--ease-out);
  padding-right: 12px;
}
/* Only apply the slide-in setup when JS hasn't marked the section as in-view yet AND
   the browser supports IntersectionObserver reliably (feature-detected via .letswork:not(.in)) */
@supports (transform: translateY(60px)) {
  .letswork:not(.in) .lw-word[data-lw-anim="ready"] { opacity: 0; transform: translateY(60px); }
}
.letswork.in .lw-word { opacity: 1; transform: translateY(0); }
.letswork .lw-word:nth-child(1) { transition-delay: 100ms; }
.letswork .lw-word:nth-child(2) { transition-delay: 200ms; }
.letswork .lw-word:nth-child(3) { transition-delay: 300ms; }
.letswork .lw-word:nth-child(4) { transition-delay: 400ms; }
.letswork .lw-word:nth-child(5) { transition-delay: 500ms; }
.letswork .lw-cta { display: inline-flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; justify-content: center; }

/* ---- v1.5.7 · Tablet-drop cascade (Redox "people we've worked with") ----
   Pav: "tablet-drop animation from Redox · reuse the plugin if extractable or recreate"
   IntersectionObserver adds .tablet-in with staggered delays → cards drop-cascade. */
.tablet-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px;
  margin-top: 32px; perspective: 1200px;
}
@media (max-width: 900px) { .tablet-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .tablet-grid { grid-template-columns: repeat(2, 1fr); } }
.tablet {
  aspect-ratio: 4 / 5; padding: 20px; border-radius: 14px;
  background: linear-gradient(180deg, var(--bg-3), var(--bg-2));
  border: 1px solid var(--line);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  transform: translateY(-80px) rotateX(-25deg) scale(0.9); opacity: 0;
  transition: transform 900ms cubic-bezier(0.34, 1.56, 0.64, 1), opacity 700ms ease;
  will-change: transform, opacity;
}
.tablet.in { transform: translateY(0) rotateX(0deg) scale(1); opacity: 1; }
.tablet-name {
  font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 15px;
  color: var(--fg-0); margin-bottom: 6px;
}
.tablet-role { font-size: 11px; letter-spacing: 0.05em; color: var(--fg-3); text-transform: uppercase; }

/* ---- v1.5.8 · Products accordion (Pav "current products page is a mess") ----
   Family sections collapse into scrollable accordion panels with icon+desc for each product.
   Cleaner information density than the current three-row grid. */
.pacc {
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  overflow: hidden; margin-bottom: 16px;
  background: linear-gradient(180deg, var(--bg-3), var(--bg-2));
}
.pacc-head {
  display: flex; align-items: center; gap: 16px;
  padding: 22px 24px; cursor: pointer; user-select: none;
  transition: background 200ms ease;
}
.pacc-head:hover { background: rgba(255,255,255,0.04); }
.pacc-head-title { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.4rem; margin: 0; flex: 1; }
.pacc-head-badge {
  padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.pacc-head-badge.soslabs { background: rgba(53,72,216,0.18); color: #A8B4FF; border: 1px solid rgba(91,109,255,0.30); }
.pacc-head-badge.studio { background: rgba(234,90,45,0.18); color: #FFB088; border: 1px solid rgba(234,90,45,0.30); }
.pacc-head-badge.open { background: rgba(79,181,136,0.18); color: #7CE0AF; border: 1px solid rgba(79,181,136,0.30); }
.pacc-caret {
  width: 20px; height: 20px; transition: transform 300ms ease;
  color: var(--fg-2);
}
.pacc.open .pacc-caret { transform: rotate(180deg); color: var(--brand-orange-hi); }
.pacc-body {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows 400ms var(--ease-out);
}
.pacc.open .pacc-body { grid-template-rows: 1fr; }
.pacc-body-inner {
  overflow: hidden; padding: 0 24px;
}
.pacc.open .pacc-body-inner { padding: 8px 24px 28px; }
.pacc-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
@media (max-width: 900px) { .pacc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .pacc-grid { grid-template-columns: 1fr; } }
.pacc-card {
  display: flex; gap: 14px; padding: 16px;
  border-radius: 12px; border: 1px solid var(--line);
  background: rgba(255,255,255,0.02);
  text-decoration: none; color: var(--fg-0);
  transition: transform 300ms var(--ease-out), border-color 300ms ease, background 300ms ease;
}
.pacc-card:hover { transform: translateY(-2px); border-color: var(--line-2); background: rgba(255,255,255,0.05); }
.pacc-card .pi {
  width: 40px; height: 40px; flex-shrink: 0; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: 'Space Grotesk', sans-serif; font-weight: 800; font-size: 16px; color: #fff;
}
.pacc-card h4 { margin: 0 0 4px; font-family: 'Space Grotesk', sans-serif; font-size: 1rem; }
.pacc-card p { margin: 0; font-size: 13px; color: var(--fg-2); line-height: 1.4; }
.pacc-card .pw {
  display: block; margin-top: 6px; font-size: 11px; color: var(--fg-3);
}

/* ---- v1.5.9 · Product-inner glass hero (CALEL-style + gradient + depth) ----
   Pav: "product inner pages · bland dark bluey-purple · no glass · no depth · CALEL header was good"
   Apply .pd-hero-v15 for glass-morphic hero with layered gradient + inner-glow. */
.pd-hero-v15 {
  position: relative; overflow: hidden;
  padding: 160px 0 80px;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(53,72,216,0.35), transparent 55%),
              radial-gradient(ellipse 60% 40% at 100% 40%, rgba(234,90,45,0.20), transparent 60%),
              radial-gradient(ellipse 60% 50% at 0% 60%, rgba(184,147,90,0.18), transparent 60%),
              linear-gradient(180deg, var(--bg-1) 0%, var(--bg-0) 100%);
}
.pd-hero-v15::before {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 30%, transparent 80%);
  pointer-events: none;
}
.glass-card {
  background: rgba(255,255,255,0.04);
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--r-lg);
  box-shadow: 0 20px 60px -20px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.02) inset;
  padding: 32px;
}
.glass-card.tight { padding: 20px; }

/* ---- v1.5.10 · Talk page tab redesign · centered, bigger, no overlap ----
   Pav: "text on 'Talk to us' tab not centered · overlap · make it bigger"
   Faber 15-08-26 · Pav Loom re-flagged "too narrow" · bumped horizontal padding 36px→44px
   and top/bottom 14px→18px so the pill has visible breathing room around the "Talk to us →" label. */
.nav-cta { padding: 18px 44px; font-size: 15px; min-height: 52px; display: inline-flex; align-items: center; justify-content: center; letter-spacing: 0.01em; }
.nav-cta span { display: inline-block; margin-left: 6px; }

/* ---- v1.5.11 · Swim-lane box padding (Pav: "text overlaps · boxes need to be longer + padded") ---- */
.swim-grid { grid-template-columns: 150px repeat(4, 1fr); gap: 12px 16px; }
.swim-bar { min-width: 100%; min-height: 34px; height: auto; padding: 6px 12px; line-height: 1.25; text-align: center; justify-content: center; }
.swim-lane { padding: 10px 0; }

/* ---- v1.5.12 · Footer expansion (all products + services column · Redox-style) ---- */
.footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-col ul { gap: 8px; }
.footer-col ul li a { font-size: 13.5px; }

/* ---- v1.5.13 · Nav "Home" label styling (Pav: "Home link explicit") ---- */
.nav-home { display: inline-flex; align-items: center; gap: 4px; }

/* ---- v1.5.14 · Section fold border (contrast reinforcer) ---- */
.sec-border-top { border-top: 1px solid var(--line); }

/* ---- v1.6.0 · Anonymised case studies light-mode card styling ---- */
.case-light {
  background: linear-gradient(180deg, #F5F7FF 0%, #E7EAFB 100%) !important;
  border: 1px solid rgba(10,13,24,0.08) !important;
  color: #0A0D18 !important;
  box-shadow: 0 8px 32px -8px rgba(53,72,216,0.12) !important;
}
.case-light h3, .case-light .case-tag { color: #0A0D18 !important; }
.case-light p { color: #3B4270 !important; }
.case-light .case-meta { color: #5E6591 !important; }

/* ---- v1.6.1 · Let's Work contrast fallback ---- */
.letswork h2 {
  color: #fff;
}
