/* =========================================================
   Dan Mutia — Liquid edition
   Loads after styles.css. Turns the neon theme into liquid glass
   floating over the scroll-scrubbed orb video.
   ========================================================= */

:root {
  --el-rgb: 255, 96, 40;                         /* live element colour, set by liquid.js */
  --el: rgb(var(--el-rgb));
  --accent: var(--el);

  --lg-radius: 28px;
  --lg-fill: linear-gradient(155deg, rgba(255,255,255,.13) 0%, rgba(255,255,255,.05) 45%, rgba(255,255,255,.08) 100%);
  --lg-blur: blur(14px) saturate(165%);
  --lg-edge: rgba(255,255,255,.22);
  --lg-shadow:
    inset 0 1px 0 rgba(255,255,255,.55),         /* top specular rim */
    inset 1px 0 0 rgba(255,255,255,.22),
    inset 0 -1px 0 rgba(255,255,255,.08),
    inset 0 0 22px rgba(255,255,255,.05),
    0 24px 60px -24px rgba(0,0,0,.65);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
}

body.theme-liquid { background: #050507; }
body.theme-liquid main { position: relative; z-index: 2; }

/* ---------------- Orb stage ---------------- */
.orb-stage { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; background:
  radial-gradient(60% 60% at 38% 45%, rgba(var(--el-rgb), .35), transparent 70%), #050507; }
.orb-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1s ease; will-change: transform, filter; }
.orb-ready .orb-canvas { opacity: 1; }
.orb-veil { position: absolute; inset: 0; background:
  radial-gradient(120% 90% at 40% 40%, transparent 30%, rgba(3,3,6,.75) 100%),
  rgba(3,3,6,1); opacity: .18; }
.orb-grain { position: absolute; inset: -50%; display: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }

/* ---------------- Liquid glass surface ---------------- */
/* in-flow surfaces need a containing block for the highlight layers; positioned ones (header, hero cards) keep theirs */
body.theme-liquid :is(.metric, .card, .step, .quote, .acc-item, .panel-card, .footer-cta, .orb-intro-card, .btn-ghost, .btn-menu) { position: relative; }
body.theme-liquid :is(.lg, .site-header, .metric, .card, .step, .quote, .acc-item, .panel-card, .footer-cta, .btn-ghost, .btn-menu) {
  background: var(--lg-fill);
  -webkit-backdrop-filter: var(--lg-blur);
  backdrop-filter: var(--lg-blur);
  border: 1px solid var(--lg-edge);
  border-radius: var(--lg-radius);
  box-shadow: var(--lg-shadow);
  isolation: isolate;
}
/* moving specular highlight that follows the pointer */
body.theme-liquid :is(.lg, .site-header, .metric, .card, .step, .quote, .acc-item, .panel-card, .footer-cta)::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1;
  background:
    radial-gradient(420px circle at var(--mx, 22%) var(--my, -10%), rgba(255,255,255,.16), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,.10), transparent 32%);
  opacity: .9; transition: opacity .4s;
}
/* element-tinted glow along the bottom edge */
body.theme-liquid :is(.lg, .metric, .card, .step, .quote, .panel-card, .footer-cta)::before {
  content: ""; position: absolute; left: 12%; right: 12%; bottom: -1px; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(var(--el-rgb), .9), transparent);
  box-shadow: 0 0 18px 2px rgba(var(--el-rgb), .45);
  opacity: .55; transition: opacity .5s;
}
/* Chromium: real refraction on the big hero surfaces */
.lg-refract body.theme-liquid :is(.orb-ch, .orb-intro-card) {
  -webkit-backdrop-filter: url(#lgRefract) blur(16px) saturate(180%) brightness(1.08);
  backdrop-filter: url(#lgRefract) blur(16px) saturate(180%) brightness(1.08);
}

/* springy hover, like pressing on glass */
body.theme-liquid :is(.metric, .card, .step, .quote) {
  transition: transform .7s var(--spring), border-color .4s, box-shadow .4s, background .4s;
}
body.theme-neon.theme-liquid :is(.metric, .card, .step, .quote):hover {
  transform: translateY(-6px) scale(1.012);
  border-color: rgba(255,255,255,.34);
  /* keep the glass base colour on hover so text contrast never drops */
  box-shadow: var(--lg-shadow), 0 30px 70px -28px rgba(var(--el-rgb), .55);
}
body.theme-liquid :is(.metric, .card, .step, .quote):hover::before { opacity: 1; }
body.theme-liquid :is(.metric, .card, .step, .quote):active { transform: scale(.985); transition-duration: .2s; }

/* ---------------- Header: floating glass pill ---------------- */
body.theme-liquid .site-header {
  top: 14px; left: 50%; right: auto; width: min(1180px, calc(100% - 28px));
  transform: translateX(-50%);
  padding: 10px 12px 10px 22px; border-radius: 999px;
  transition: transform .6s var(--ease-soft), background .4s;
}
body.theme-liquid .site-header.hidden { transform: translate(-50%, -150%); }
body.theme-liquid .site-header.scrolled { background: var(--lg-fill); background-color: rgba(8, 9, 16, .46); }
body.theme-liquid .btn-pill { border-radius: 999px; transition: transform .6s var(--spring), box-shadow .4s, background-position .6s var(--ease-soft); }
body.theme-liquid .btn-pill:active { transform: scale(.94); }
body.theme-neon.theme-liquid .btn-talk {
  background: linear-gradient(135deg, rgba(var(--el-rgb), .62), rgba(var(--el-rgb), .4)), #0d0d14;
  color: #fff; border: 1px solid rgba(255,255,255,.35);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6), inset 0 -8px 16px rgba(0,0,0,.18), 0 10px 30px -8px rgba(var(--el-rgb), .7);
}
body.theme-neon.theme-liquid .btn-talk:hover { box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 14px 40px -6px rgba(var(--el-rgb), .9); }
body.theme-liquid .btn-ghost, body.theme-liquid .btn-menu { color: #fff; }

/* overlay menu: one big frosted sheet */
body.theme-liquid .overlay-menu {
  background: rgba(8,8,14,.38);
  -webkit-backdrop-filter: blur(34px) saturate(170%); backdrop-filter: blur(34px) saturate(170%);
}

/* ---------------- Hero: pinned orb story ---------------- */
.orb-scroll { position: relative; height: 560vh; }
.orb-pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.orb-shade { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, transparent 22%, transparent 55%, rgba(0,0,0,.55) 100%); }

.orb-intro { position: absolute; left: var(--pad-x); right: var(--pad-x); bottom: clamp(28px, 7vh, 80px);
  display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; will-change: transform, opacity; }
.orb-intro .hero-title { margin: 0; text-shadow: 0 6px 40px rgba(0,0,0,.45); max-width: 11ch; }
.orb-intro-card { width: min(380px, 34vw); padding: 26px 26px 24px; display: flex; flex-direction: column; gap: 18px; }
.orb-intro-card .hero-est { justify-content: flex-start; }
.orb-intro-card .hero-mission { margin: 0; color: rgba(255,255,255,.85); }
.orb-intro-card .btn-talk { align-self: flex-start; }

.orb-chapters { position: absolute; inset: 0; pointer-events: none; }
.orb-ch {
  position: absolute; right: var(--pad-x); top: 50%; margin-top: -170px;
  width: min(460px, 38vw); padding: clamp(26px, 2.6vw, 38px);
  opacity: 0; visibility: hidden; will-change: transform, opacity;
  --lg-radius: 34px;
}
.ch-idx { font-family: var(--font-mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.7); }
.ch-idx b { color: var(--el); font-weight: 700; }
.ch-title { margin: 16px 0 14px; font-size: clamp(32px, 3.4vw, 56px); line-height: 1; letter-spacing: -.035em; font-weight: 500; color: #fff; }
.ch-copy { margin: 0 0 22px; color: rgba(255,255,255,.82); font-size: clamp(15px, 1.1vw, 17px); line-height: 1.55; }
.ch-tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ch-tags li { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  padding: 7px 12px; border-radius: 999px; color: #fff;
  background: rgba(var(--el-rgb), .18); border: 1px solid rgba(var(--el-rgb), .45);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25); }

.orb-rail { position: absolute; left: clamp(14px, 2vw, 30px); top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 4px; padding: 8px; border-radius: 999px; }
.orb-rail button { all: unset; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 9px; border-radius: 999px; position: relative; }
.orb-rail i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.35); transition: transform .5s var(--spring), background .4s, box-shadow .4s; }
.orb-rail span { position: absolute; left: 100%; margin-left: 10px; white-space: nowrap; font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #fff; opacity: 0; transform: translateX(-6px); transition: opacity .3s, transform .4s var(--spring); pointer-events: none; }
.orb-rail button:hover span, .orb-rail button:focus-visible span, .orb-rail button.on span { opacity: 1; transform: none; }
.orb-rail button.on i { background: var(--el); transform: scale(1.5); box-shadow: 0 0 14px 2px rgba(var(--el-rgb), .8); }
.orb-rail button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.orb-meter { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 14px; padding: 10px 18px; border-radius: 999px; }
.orb-meter-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #fff; white-space: nowrap; min-width: 18ch; }
.orb-meter-bar { width: 110px; height: 3px; border-radius: 3px; background: rgba(255,255,255,.2); overflow: hidden; }
.orb-meter-bar span { display: block; height: 100%; background: var(--el); transform-origin: left; transform: scaleX(0); box-shadow: 0 0 10px rgba(var(--el-rgb), .9); }
/* the intro holds the bottom of the screen at the start, so the meter steps aside until the story begins */
.orb-scroll .orb-meter { transition: opacity .4s; }

/* ---------------- Sections over the blurred stage ---------------- */
body.theme-liquid .kicker,
body.theme-liquid .panel-cat,
body.theme-liquid .step-num,
body.theme-liquid .acc-item.open .acc-icon,
body.theme-liquid .values-track .v-dot { color: var(--el); transition: color .6s; }

body.theme-liquid .metric-num { color: #fff; text-shadow: 0 0 30px rgba(var(--el-rgb), .45); }
/* secondary text on glass: the backdrop can be bright, so keep it light and lift it with a soft shadow */
body.theme-liquid :is(.metric-label, .card p, .step p, .card-num, .q-role, .panel-desc, .section-intro, .acc-panel p, .footer-copy, .stars) {
  color: rgba(255,255,255,.78); text-shadow: 0 1px 12px rgba(0,0,0,.35);
}

/* values band becomes a glass ribbon */
body.theme-liquid .values { position: relative; z-index: 1;
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.02));
  -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%);
  border-top: 1px solid rgba(255,255,255,.18); border-bottom: 1px solid rgba(255,255,255,.08); }

/* work stack: transparent sticky panels, glass cards */
body.theme-liquid .panel { background: transparent; }
body.theme-liquid .panel-card { padding: clamp(18px, 2vw, 30px); --lg-radius: 36px; }
body.theme-liquid .panel-media { border-radius: 22px; border-color: rgba(255,255,255,.18); }
body.theme-liquid .panel-media img { filter: none; }

/* tools as glass chips */
body.theme-liquid .tools-row { gap: 12px; }
body.theme-liquid .tools-row span { padding: 12px 22px; border-radius: 999px; font-size: clamp(15px, 1.3vw, 20px); opacity: 1; color: rgba(255,255,255,.85);
  background: var(--lg-fill); border: 1px solid var(--lg-edge); box-shadow: var(--lg-shadow);
  -webkit-backdrop-filter: var(--lg-blur); backdrop-filter: var(--lg-blur);
  transition: transform .6s var(--spring), color .3s; }
body.theme-liquid .tools-row span:hover { transform: translateY(-4px) scale(1.04); color: #fff; }

/* testimonials + FAQ */
body.theme-liquid .quotes { background: transparent; border: none; gap: 16px; }
body.theme-liquid .accordion { display: grid; gap: 12px; }
body.theme-liquid .acc-item { border-bottom: 1px solid var(--lg-edge); padding: 0 clamp(18px, 2vw, 30px); --lg-radius: 22px; }

/* footer CTA as one large glass slab */
body.theme-liquid .footer-cta { padding: clamp(36px, 5vw, 80px); --lg-radius: 40px; }
body.theme-liquid .footer-em { color: var(--el); transition: color .6s; }

/* ---------------- Responsive ---------------- */
@media (max-width: 900px) {
  .orb-intro { flex-direction: column; align-items: flex-start; gap: 18px; }
  .orb-intro-card { width: 100%; }
  .orb-ch { left: 16px; right: 16px; width: auto; top: auto; bottom: 74px; margin-top: 0; }
  .orb-rail { top: auto; bottom: 18px; left: 16px; transform: none; flex-direction: row; }
  .orb-rail span { display: none; }
  .orb-meter { left: auto; right: 16px; transform: none; padding: 10px 14px; }
  .orb-meter-label { min-width: 0; }
  .orb-meter-bar { width: 56px; }
  body.theme-liquid .site-header { width: calc(100% - 20px); top: 10px; padding-left: 16px; }
}
@media (max-width: 560px) {
  .orb-meter-label { display: none; }
  .ch-title { font-size: 30px; }
}

/* ---------------- Reduced motion: no scrub, chapters as plain stacked cards ---------------- */
@media (prefers-reduced-motion: reduce) {
  .orb-scroll { height: auto; }
  .orb-pin { position: relative; height: auto; overflow: visible; padding: 120px var(--pad-x) 60px; display: grid; gap: 20px; }
  .orb-intro, .orb-chapters, .orb-ch { position: static; opacity: 1 !important; visibility: visible !important; transform: none !important; }
  .orb-chapters { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); pointer-events: auto; }
  .orb-ch { width: auto; margin: 0; }
  .orb-rail, .orb-meter { display: none; }
  .orb-veil { opacity: .55 !important; }
}

/* =========================================================
   INNER PAGE COMPONENTS AS GLASS
   ========================================================= */
body.theme-liquid :is(.exp, .edu-item, .toolgroup, .site-card, .heart-card, .page-hero-media) {
  position: relative;
  background: var(--lg-fill);
  -webkit-backdrop-filter: var(--lg-blur); backdrop-filter: var(--lg-blur);
  border: 1px solid var(--lg-edge);
  border-radius: var(--lg-radius);
  box-shadow: var(--lg-shadow);
  isolation: isolate;
}
body.theme-liquid :is(.exp, .edu-item, .toolgroup, .site-card, .heart-card, .page-hero-media)::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1;
  background: radial-gradient(420px circle at var(--mx, 22%) var(--my, -10%), rgba(255,255,255,.16), transparent 55%),
              linear-gradient(180deg, rgba(255,255,255,.10), transparent 32%);
}
body.theme-liquid .page-hero-media { padding: 10px; }
body.theme-liquid .page-hero-media img { border-radius: calc(var(--lg-radius) - 10px); }
body.theme-liquid .exp { padding: clamp(24px, 3vw, 44px); margin-bottom: 16px; }
body.theme-liquid .experience .exp:last-child { border-bottom: 1px solid var(--lg-edge); }
body.theme-liquid .comp-list { border-top: none; gap: 10px; }
body.theme-liquid .comp-list li { border: 1px solid var(--lg-edge); border-radius: 18px; padding: 16px 20px;
  background: var(--lg-fill); -webkit-backdrop-filter: var(--lg-blur); backdrop-filter: var(--lg-blur); box-shadow: var(--lg-shadow); }
body.theme-neon.theme-liquid .chips span { background: var(--lg-fill); border-color: var(--lg-edge); box-shadow: var(--lg-shadow);
  -webkit-backdrop-filter: var(--lg-blur); backdrop-filter: var(--lg-blur); }
body.theme-neon.theme-liquid .chips span:hover { border-color: rgba(var(--el-rgb), .8); background: rgba(var(--el-rgb), .2); box-shadow: 0 10px 26px rgba(var(--el-rgb), .35); }
body.theme-liquid .cf-media { border-color: rgba(255,255,255,.22); box-shadow: var(--lg-shadow); }
body.theme-liquid .cf-item.is-active .cf-media { border-color: rgba(var(--el-rgb), .6); box-shadow: var(--lg-shadow), 0 40px 100px -30px rgba(var(--el-rgb), .6); }
body.theme-liquid .page-hero-title em, body.theme-liquid .section-title em { background: none; -webkit-text-fill-color: currentColor; color: var(--el); }
body.theme-liquid :is(.exp, .edu-item, .toolgroup, .site-card) :is(p, li) { color: rgba(255,255,255,.9); }

/* =========================================================
   ELEMENT FEELS — every section owns one element (set by liquid.js as data-el)
   ========================================================= */
:is(section, footer)[data-el]:not(.orb-scroll) { position: relative; }
/* re-declare here so var(--el)/var(--accent) resolve to the section's own element, not the page-level one */
[data-el] { --el: rgb(var(--el-rgb)); --accent: var(--el); }


/* section titles pick up their element's light */
[data-el] :is(.section-title, .page-hero-title, .snap-title, .testi-head, .footer-title, .stack-head) { text-shadow: 0 0 50px rgba(var(--el-rgb), .28); }

/* ---- FIRE: warm glass, ember edge, things rise like heat ---- */
[data-el="fire"] {
  --lg-fill: linear-gradient(155deg, rgba(255,150,90,.16) 0%, rgba(255,255,255,.04) 45%, rgba(255,90,40,.10) 100%);
  --lg-edge: rgba(255,200,160,.26);
}
[data-el="fire"] :is(.lg, .metric, .card, .step, .quote, .panel-card, .footer-cta)::before { height: 2px; opacity: .85; box-shadow: 0 0 26px 4px rgba(var(--el-rgb), .55); }
[data-el="fire"] :is(.reveal, .reveal-lines):not(.in) { transform: translateY(44px) scale(.98); }
[data-el="fire"] :is(.reveal, .reveal-lines) { transition: opacity .8s var(--ease-soft), transform .8s cubic-bezier(.2, .9, .25, 1.15); }

/* ---- WATER: cool, wet, extra-clear glass; things wash in from the side ---- */
[data-el="water"] {
  --lg-fill: linear-gradient(155deg, rgba(160,205,255,.13) 0%, rgba(255,255,255,.03) 50%, rgba(70,150,255,.08) 100%);
  --lg-blur: blur(18px) saturate(180%);
  --lg-edge: rgba(190,225,255,.3);
  --lg-shadow: inset 0 1px 0 rgba(220,240,255,.7), inset 1px 0 0 rgba(200,230,255,.3), inset 0 -10px 24px rgba(120,180,255,.08), 0 24px 60px -24px rgba(0,10,30,.7);
}
[data-el="water"] :is(.reveal, .reveal-lines):not(.in) { transform: translateX(-46px); filter: blur(10px); }
[data-el="water"] :is(.reveal, .reveal-lines) { transition: opacity 1s var(--ease-soft), transform 1.1s var(--ease-soft), filter 1s var(--ease-soft); }

/* ---- EARTH: dense sandstone frost with grain; things drop in and settle ---- */
[data-el="earth"] {
  --lg-fill: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 .92  0 0 0 0 .8  0 0 0 .07 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"),
             linear-gradient(155deg, rgba(235,205,150,.2) 0%, rgba(255,255,255,.06) 50%, rgba(120,200,120,.08) 100%);
  --lg-blur: blur(16px) saturate(140%);
  --lg-edge: rgba(240,220,180,.26);
  --lg-radius: 20px;
}
[data-el="earth"] :is(.reveal, .reveal-lines):not(.in) { transform: translateY(-34px); }
[data-el="earth"] :is(.reveal, .reveal-lines) { transition: opacity .7s ease, transform 1s cubic-bezier(.34, 1.56, .64, 1); }

/* ---- AIR: luminous, iridescent rim that slowly turns; things materialise ---- */
@property --lg-ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
[data-el="air"] {
  --lg-fill: linear-gradient(155deg, rgba(210,170,255,.16) 0%, rgba(255,255,255,.04) 45%, rgba(140,110,255,.12) 100%);
  --lg-edge: rgba(225,200,255,.24);
  --lg-radius: 32px;
}
[data-el="air"] :is(.lg, .metric, .card, .step, .quote, .panel-card, .footer-cta, .exp, .edu-item, .toolgroup, .site-card, .acc-item)::before {
  content: ""; position: absolute; inset: 0; height: auto; border-radius: inherit; padding: 1.2px; pointer-events: none;
  background: conic-gradient(from var(--lg-ang), rgba(182,110,255,.9), rgba(120,200,255,.7), rgba(255,140,220,.8), rgba(182,110,255,.9));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  box-shadow: none; opacity: .55; animation: lgTurn 9s linear infinite paused;
}
@keyframes lgTurn { to { --lg-ang: 360deg; } }
/* the rim only turns while you hover, so a page full of cards isn't repainting all the time */
[data-el="air"] :is(.lg, .metric, .card, .step, .quote, .panel-card, .footer-cta, .exp, .edu-item, .toolgroup, .site-card, .acc-item):hover::before { animation-play-state: running; }
[data-el="air"] :is(.reveal, .reveal-lines):not(.in) { transform: scale(.94); filter: blur(8px) brightness(1.6); }
[data-el="air"] :is(.reveal, .reveal-lines) { transition: opacity 1.1s var(--ease-soft), transform 1.2s var(--ease-soft), filter 1.1s var(--ease-soft); }


/* =========================================================
   READABILITY
   The video behind the page can be bright (desert, flashes), so every text surface gets a floor:
   glass panels sit on a dark base, grey text is lifted, and free-standing text gets a soft dark halo.
   liquid.js also darkens the veil automatically when a scene is bright.
   ========================================================= */
body.theme-liquid {
  --text: #ececf2;
  --muted: #c6c6d0;          /* was #8a8a90: too faint on glass */
  --panel-gray: #e2e2e8;
}
html body.theme-liquid :is(.lg, .site-header, .metric, .card, .step, .quote, .acc-item, .panel-card, .footer-cta,
  .exp, .edu-item, .toolgroup, .site-card, .heart-card, .page-hero-media, .orb-intro-card, .orb-ch,
  .comp-list li, .tools-row span, .orb-rail, .orb-meter) {
  background-color: rgba(8, 9, 16, .46);
}
html body.theme-liquid [data-el="earth"] :is(.lg, .metric, .card, .step, .quote, .acc-item, .panel-card, .footer-cta, .exp, .edu-item, .toolgroup, .site-card, .comp-list li) {
  background-color: rgba(16, 12, 6, .6);     /* the desert is the brightest scene */
}
html body.theme-neon.theme-liquid .chips span { background-color: rgba(8, 9, 16, .46); }

/* free-standing text over the video: a soft dark halo that reads as depth, not as an outline */
body.theme-liquid :is(.hero-title, .section-title, .page-hero-title, .page-hero-tag, .snap-title, .testi-head,
  .footer-title, .stack-head, .about-lede, .section-intro, .kicker, .footer-kicker, .footer-copy, .clients span,
  .values-sub, .tools-kicker, .work-note, .vlink, .footer-col a, .footer-col h4, .footer-brand p, .footer-bottom) {
  text-shadow: 0 1px 2px rgba(0,0,0,.55), 0 2px 24px rgba(0,0,0,.55);
}
/* accent-coloured small labels: brighten them toward white so thin type stays legible on any element */
body.theme-liquid :is(.kicker, .panel-cat, .step-num, .tg-num) {
  color: color-mix(in srgb, rgb(var(--el-rgb)) 40%, white);
}
body.theme-liquid .ch-idx b { color: color-mix(in srgb, rgb(var(--el-rgb)) 40%, white); }
body.theme-liquid .panel-stats span { color: rgba(255,255,255,.9); }
body.theme-liquid :is(.step-num, .tg-num) { color: color-mix(in srgb, rgb(var(--el-rgb)) 28%, white); }
body.theme-liquid .res-value { color: color-mix(in srgb, rgb(var(--el-rgb)) 45%, white); }
body.theme-liquid .footer-em, body.theme-liquid :is(.page-hero-title, .section-title) em {
  color: color-mix(in srgb, rgb(var(--el-rgb)) 70%, white);
}
/* Text that sits straight on the video (no glass): a soft, local dark pool behind just that block.
   The background keeps its original brightness everywhere else. */
body.theme-liquid :is(.section-head, .about-side, .about-lede, .snapshot-head, .tools-kicker, .testi-head, .page-hero-text, .work-note, .cf-head, .cf-cap, .footer-grid, .footer-bottom, .story-body, .page-hero-proof, .proof, .stack-cat) {
  position: relative; isolation: isolate;
}
body.theme-liquid :is(.section-head, .about-side, .about-lede, .snapshot-head, .tools-kicker, .testi-head, .page-hero-text, .work-note, .cf-head, .cf-cap, .footer-grid, .footer-bottom, .story-body, .page-hero-proof, .proof, .stack-cat)::before {
  content: ""; position: absolute; z-index: -1; inset: -40px -70px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(4, 4, 8, .6), rgba(4, 4, 8, .42) 60%, transparent);
  filter: blur(14px);
}
body.theme-liquid .page-hero:not(.has-media)::before {
  content: ""; position: absolute; z-index: 0; left: 0; top: 10%; width: min(1200px, 90vw); height: 90%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(4, 4, 8, .55), rgba(4, 4, 8, .35) 60%, transparent);
  filter: blur(14px);
}
body.theme-liquid .page-hero:not(.has-media) > * { position: relative; z-index: 1; }

/* hero headline: a soft dark pool behind it (the rotating word clips its own text-shadow) */
.orb-intro::before { content: ""; position: absolute; z-index: -1; pointer-events: none;
  left: calc(-1 * var(--pad-x)); bottom: calc(-1 * clamp(28px, 7vh, 80px)); width: min(1100px, 80vw); height: 135%;
  background: radial-gradient(70% 70% at 25% 70%, rgba(4, 4, 8, .62), rgba(4, 4, 8, .3) 55%, transparent 78%); }
.orb-intro { isolation: isolate; }
.ch-idx { color: rgba(255,255,255,.92); }
.ch-copy, .orb-intro-card .hero-mission { color: rgba(255,255,255,.93); }
html body.theme-liquid :is(.orb-meter, .orb-rail) { background-color: rgba(8, 9, 16, .6); }
/* body copy that sits straight on the video (no glass) */
body.theme-liquid :is(.section-intro, .about-side p, .footer-copy, .page-hero-tag, .work-note, .values-sub) { color: rgba(255,255,255,.92); }
body.theme-liquid :is(.metric-label, .card p, .step p, .card-num, .q-role, .panel-desc, .acc-panel p, .stars) { color: rgba(255,255,255,.88); }
/* Work page case studies: each case becomes a glass slab instead of loose text on the video */
body.theme-liquid .case {
  position: relative; isolation: isolate; margin: 0 0 18px; padding: clamp(28px, 4vw, 60px);
  border: 1px solid var(--lg-edge); border-radius: var(--lg-radius);
  background: var(--lg-fill); background-color: rgba(8, 9, 16, .5);
  -webkit-backdrop-filter: var(--lg-blur); backdrop-filter: var(--lg-blur); box-shadow: var(--lg-shadow);
}
html body.theme-liquid [data-el="earth"] .case { background-color: rgba(16, 12, 6, .56); }
body.theme-liquid :is(.case-index, .case-url) { color: color-mix(in srgb, rgb(var(--el-rgb)) 48%, white); }
body.theme-liquid :is(.case-cols p, .res-label) { color: rgba(255,255,255,.9); }
body.theme-liquid .page-hero-title em { color: color-mix(in srgb, rgb(var(--el-rgb)) 50%, white); text-shadow: 0 2px 30px rgba(0,0,0,.6); }
/* chapter tags were tinted glass; give them the same dark floor */
.ch-tags li { background: linear-gradient(rgba(var(--el-rgb), .22), rgba(var(--el-rgb), .22)), rgba(8, 9, 16, .5); }

@media (prefers-reduced-motion: reduce) {
  [data-el] :is(.reveal, .reveal-lines) { transform: none !important; filter: none !important; }
  [data-el="air"] *::before { animation: none !important; }
}

/* small grey labels in the footer and carousel captions */
body.theme-liquid :is(.footer-col h4, .cf-cap span) { color: rgba(255,255,255,.9); }
body.theme-liquid .tg-num { color: color-mix(in srgb, rgb(var(--el-rgb)) 18%, white); }
body.theme-liquid :is(.exp-co, .exp-years, .proof-text, .story-body p) { color: rgba(255,255,255,.92); }
body.theme-liquid :is(.stack-cat, .comp-list li span) { color: rgba(255,255,255,.94); }
body.theme-liquid .footer-em { color: color-mix(in srgb, rgb(var(--el-rgb)) 45%, white); }
body.theme-liquid :is(.nav a, .brand-word) { color: rgba(255,255,255,.95); }
