/* Liquid Glass theme, after Apple's Human Interface Guidelines (iOS 26 / macOS 26).
   Loaded after site.css when CONFIG.design is "glass".

   Apple's rules, as applied here:
   - Liquid Glass is the functional layer only: the floating header, its menu and
     buttons. Content (cards, lists, case studies) uses solid grouped surfaces.
   - Glass is never stacked on glass. Items inside the header share its background.
   - Colour is used sparingly: the accent tints primary actions only.
   - Section labels use sentence case, never all caps.
   - Corners are concentric: inner radius = outer radius minus padding.
   - Reduce transparency, increase contrast and reduce motion are all honoured. */

:root {
  /* System-style palette: neutral greys, one blue accent */
  --paper: #f5f5f7;
  --paper-2: #ececf0;
  --card: #ffffff;
  --inset: #f5f5f7;
  --ink: #1d1d1f;
  --ink-2: #3a3a3c;
  --muted: #6e6e73;
  --line: #e3e3e8;
  --line-2: #c7c7cc;
  --accent: #0071e3;
  --accent-ink: #ffffff;
  --accent-soft: rgba(0, 113, 227, 0.1);
  --accent-text: #0066cc;
  --ok: #30b350;
  --warn: #f29100;
  --band-ink: #ffffff;
  --band-muted: rgba(255, 255, 255, 0.86);
  --grad-text: linear-gradient(100deg, #0071e3 5%, #0a8fd9 50%, #13a7b8 95%);
  --ambient-1: rgba(0, 113, 227, 0.2);
  --ambient-2: rgba(19, 167, 184, 0.17);
  --ambient-3: rgba(60, 80, 160, 0.08);

  /* Liquid Glass, regular variant */
  --lg-bg: rgba(255, 255, 255, 0.6);
  --lg-bg-strong: rgba(255, 255, 255, 0.76);
  --lg-solid: #ffffff;
  --lg-rim: rgba(255, 255, 255, 0.95);
  --lg-rim-2: rgba(255, 255, 255, 0.4);
  --lg-edge: rgba(0, 0, 0, 0.07);
  --lg-spot: rgba(255, 255, 255, 0.7);
  --lg-shadow: 0 1px 2px rgba(0, 0, 0, 0.05), 0 10px 30px -6px rgba(0, 0, 0, 0.12);
  --lg-filter: blur(16px) saturate(190%) brightness(1.06);

  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Segoe UI", Roboto, sans-serif;
  --serif: var(--sans);
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, monospace;
  --radius: 26px;
  --radius-sm: 18px;
  --shadow: 0 2px 6px rgba(0, 0, 0, 0.04), 0 18px 44px -18px rgba(0, 0, 0, 0.16);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #000000;
    --paper-2: #111113;
    --card: #1c1c1e;
    --inset: #2c2c2e;
    --ink: #f5f5f7;
    --ink-2: #e5e5ea;
    --muted: #a1a1a6;
    --line: #2c2c2e;
    --line-2: #48484a;
    --accent: #0a84ff;
    --accent-soft: rgba(10, 132, 255, 0.18);
    --accent-text: #2997ff;
    --ok: #30d158;
    --warn: #ff9f0a;
    --grad-text: linear-gradient(100deg, #2997ff 5%, #4fb8f5 50%, #5ad2e0 95%);
    --ambient-1: rgba(10, 132, 255, 0.32);
    --ambient-2: rgba(48, 176, 199, 0.22);
    --ambient-3: rgba(40, 55, 130, 0.35);
    --lg-bg: rgba(44, 44, 48, 0.55);
    --lg-bg-strong: rgba(34, 34, 38, 0.74);
    --lg-solid: #2c2c2e;
    --lg-rim: rgba(255, 255, 255, 0.28);
    --lg-rim-2: rgba(255, 255, 255, 0.08);
    --lg-edge: rgba(0, 0, 0, 0.5);
    --lg-spot: rgba(255, 255, 255, 0.16);
    --lg-shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 32px -8px rgba(0, 0, 0, 0.65);
    --lg-filter: blur(16px) saturate(170%) brightness(0.92);
    --shadow: 0 18px 44px -18px rgba(0, 0, 0, 0.8);
  }
}
:root[data-theme="dark"] {
  --paper: #000000;
  --paper-2: #111113;
  --card: #1c1c1e;
  --inset: #2c2c2e;
  --ink: #f5f5f7;
  --ink-2: #e5e5ea;
  --muted: #a1a1a6;
  --line: #2c2c2e;
  --line-2: #48484a;
  --accent: #0a84ff;
  --accent-soft: rgba(10, 132, 255, 0.18);
  --accent-text: #2997ff;
  --ok: #30d158;
  --warn: #ff9f0a;
  --grad-text: linear-gradient(100deg, #2997ff 5%, #4fb8f5 50%, #5ad2e0 95%);
  --ambient-1: rgba(10, 132, 255, 0.32);
  --ambient-2: rgba(48, 176, 199, 0.22);
  --ambient-3: rgba(40, 55, 130, 0.35);
  --lg-bg: rgba(44, 44, 48, 0.55);
  --lg-bg-strong: rgba(34, 34, 38, 0.74);
  --lg-solid: #2c2c2e;
  --lg-rim: rgba(255, 255, 255, 0.28);
  --lg-rim-2: rgba(255, 255, 255, 0.08);
  --lg-edge: rgba(0, 0, 0, 0.5);
  --lg-spot: rgba(255, 255, 255, 0.16);
  --lg-shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 32px -8px rgba(0, 0, 0, 0.65);
  --lg-filter: blur(16px) saturate(170%) brightness(0.92);
  --shadow: 0 18px 44px -18px rgba(0, 0, 0, 0.8);
}

/* ---- Base -------------------------------------------------------------------- */
body { background: var(--paper); font-size: 17px; line-height: 1.47; letter-spacing: -0.01em; }
h1, h2, h3 { font-weight: 700; letter-spacing: -0.028em; }
.hero h1, .cs-hero h1, .page-hero h1 { letter-spacing: -0.04em; }
.hero h1 { font-size: clamp(2.6rem, 5.6vw, 4.8rem); line-height: 1.03; }
em {
  font-family: inherit; font-style: normal; font-weight: inherit; letter-spacing: inherit;
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

/* Ambient colour at the top of every page: gives the floating header something to
   pick up at rest, then scrolls away so content stays in focus. */
.bg {
  position: absolute; top: 0; left: 0; right: 0; height: 1000px; z-index: -1; pointer-events: none;
  background:
    radial-gradient(circle 62vmax at 0% 0%, var(--ambient-1), transparent 62%),
    radial-gradient(circle 52vmax at 100% 4%, var(--ambient-2), transparent 62%),
    radial-gradient(circle 40vmax at 62% 42%, var(--ambient-3), transparent 70%);
  -webkit-mask-image: linear-gradient(#000 55%, transparent);
  mask-image: linear-gradient(#000 55%, transparent);
}
.hero::before { display: none; }

/* Sentence-case labels, San Francisco throughout */
.eyebrow {
  font: 600 15px/1.2 var(--sans); text-transform: none; letter-spacing: -0.01em; color: var(--accent-text);
}
.eyebrow::before { display: none; }
.eyebrow-invert { color: var(--band-muted); }
.board-head, .footer-h, .flow-label, .meta-grid dt, .facts dt, .crumbs, .tag,
.work-foot .mono, .charity-card .mono, .features .mono, .service .num, .board .metric,
.flow-node small, .figure-bar span, .steps li::before, .portrait .caption {
  font-family: var(--sans); text-transform: none; letter-spacing: -0.005em;
}
.board-head, .footer-h, .flow-label, .meta-grid dt, .facts dt { font-size: 13px; font-weight: 600; color: var(--muted); }
.features .mono, .service .num, .steps li::before { font-size: 13px; font-weight: 600; color: var(--accent-text); }
.charity-card .mono { color: var(--muted); font-size: 13px; font-weight: 500; }
.work-foot .mono { font-size: 13px; }
.board .metric { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---- Content layer: solid grouped surfaces (no glass) --------------------------- */
.board, .work-card, .charity-card, .contact-card, .steps li, .features > div, .figure-frame,
.callout, .flow-wrap, .stats > .stat, .services > .service, .meta-grid, .product, .quote, .next-case {
  background: var(--card);
  border: 0;
  border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}
.work-card, .charity-card { transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s ease; }
.work-card:hover, .charity-card:hover { transform: scale(1.012); box-shadow: var(--shadow); border-color: transparent; }

/* Elements inside a surface: tertiary fill, concentric corners */
.trace-row, .flow-node, .stack span, .tag, .figure-bar { background: var(--inset); border: 0; box-shadow: none; }
.trace-row { border-radius: 12px; }
.trace-row span:last-child { font-family: var(--sans); }
.flow-node { border-radius: 14px; }
.flow-node.human { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line-2); }
.trace-row.hl, .flow-node.hl { background: var(--accent-soft); }
.stack span { border-radius: 999px; padding: 8px 14px; font: 500 13px/1 var(--sans); }
.tag { height: 26px; border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--ink-2); }
.tag.tag-client { background: var(--accent-soft); color: var(--accent-text); }

.work-visual { background: var(--inset); border-bottom: 0; }
.work-card.wide .work-visual { border-right: 0; }
.work-visual img { border-radius: 0; }

/* "In production": an inset grouped list with disclosure chevrons */
.board { overflow: hidden; }
.board-head { border-bottom: 1px solid var(--line); }
.board li { border-bottom: 1px solid var(--line); }
.board .metric::after { content: "›"; margin-left: 10px; font-size: 18px; font-weight: 400; line-height: 0; color: var(--line-2); vertical-align: -1px; }
.board-foot { background: transparent; border-top: 0; }

.stats { border-top: 0; gap: 14px; }
.stats > .stat { padding: 24px 24px 22px; margin-top: 0; }
.services { border-top: 0; gap: 16px; }
.services > .service { padding: 30px; }
.products { border-top: 0; gap: 12px; }
.product { padding: 18px 22px; }
.product-icon { border: 0; border-radius: 13px; color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 4px 12px -4px rgba(0, 0, 0, 0.35); }
.product:nth-child(1) .product-icon { background: linear-gradient(150deg, #ff9f0a, #ff6a00); }
.product:nth-child(3) .product-icon { background: linear-gradient(150deg, #34c759, #1a9e6e); }
.product:nth-child(4) .product-icon { background: linear-gradient(150deg, #0a84ff, #0050b8); }
.product:nth-child(5) .product-icon { background: linear-gradient(150deg, #8e8e93, #3a3a3c); }
.meta-grid { border-top: 0; padding: 6px 24px 22px; }
.callout { border-left: 0; border-radius: var(--radius-sm); }
.features > div { border-radius: var(--radius-sm); }
.figure-bar { border-radius: 0; border-bottom: 1px solid var(--line); background: var(--card); }
.figure-bar i:nth-child(1) { background: #ff5f57; }
.figure-bar i:nth-child(2) { background: #febc2e; }
.figure-bar i:nth-child(3) { background: #28c840; }
.figure-frame { box-shadow: var(--shadow); }
.quote { padding: 32px; border-top: 0; }
.quote blockquote p { font: 600 clamp(1.35rem, 2.6vw, 1.9rem)/1.28 var(--sans); letter-spacing: -0.025em; max-width: 34ch; }
.quote figcaption::before { display: none; }
.section + .section, .cs-section { border-top: 0; }
.facts div { border-top-color: var(--line); }

.portrait { background: linear-gradient(155deg, #0a84ff, #0060c8 55%, #0a8fa8); border-radius: var(--radius); }
.portrait::after { right: -60px; bottom: -60px; width: 260px; height: 260px; border-radius: 50%; transform: none; opacity: 0.35; background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.1) 60%, transparent 72%); }
.portrait .initials { font: 700 clamp(4.5rem, 10vw, 7.5rem)/0.9 var(--sans); letter-spacing: -0.06em; }
.portrait .caption { color: rgba(255, 255, 255, 0.85); font-size: 13px; font-weight: 600; }

/* Full-width tiles, inset from the screen edge */
.next-case, .cta-inner {
  width: calc(100% - 2 * var(--gutter));
  max-width: calc(var(--maxw) - 2 * var(--gutter));
  margin-left: auto; margin-right: auto;
}
.next-case { padding: 30px clamp(22px, 4vw, 40px); margin-top: 24px; margin-bottom: 72px; }

.cta-band { background: transparent; color: var(--band-ink); padding: 24px 0 88px; }
.cta-inner {
  padding: clamp(30px, 6vw, 64px); border-radius: 32px;
  background: linear-gradient(135deg, #0060d0 0%, #0a7fd8 55%, #0a96aa 100%);
}
.cta-band h2 em { background: none; color: rgba(255, 255, 255, 0.72); -webkit-text-fill-color: currentColor; }

.site-footer { border-top: 1px solid var(--line); padding: 48px 0 32px; font-size: 13px; }
.site-footer ul a { color: var(--muted); }
.site-footer ul a:hover { color: var(--ink); }
.footer-brand p { font-size: 14px; }
.legal { border-top-color: var(--line); font-size: 12px; }

/* ---- Functional layer: Liquid Glass ------------------------------------------------ */
/* What makes it glass rather than a glossy button:
   1. It is see-through: a light tint over the content behind, which is softly blurred.
   2. The rim bends that content (lensing). site.js builds a displacement filter per
      element and sets --lg-url; Chromium applies it, other browsers keep the blur.
   3. A thin specular highlight runs along the edge, brightest where light hits top-left.
   4. It reacts: it swells when pressed and lights up under the pointer. */
:root {
  --lg-tint: rgba(255, 255, 255, 0.22);
  --lg-tint-bar: rgba(255, 255, 255, 0.24);
  --lg-tint-bar-scrolled: rgba(255, 255, 255, 0.34);
  --lg-tint-menu: rgba(250, 250, 252, 0.78);
  --lg-blur: blur(10px) saturate(180%) brightness(1.04);
  --lg-rim-hi: rgba(255, 255, 255, 0.95);
  --lg-rim-lo: rgba(255, 255, 255, 0.55);
  --lg-glow: rgba(255, 255, 255, 0.45);
  --lg-drop: 0 0 0 0.5px rgba(0, 0, 0, 0.08), 0 6px 18px -6px rgba(0, 0, 0, 0.16);
  --lg-prominent: rgba(0, 113, 227, 0.86);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --lg-tint: rgba(255, 255, 255, 0.08);
    --lg-tint-bar: rgba(30, 30, 34, 0.26);
    --lg-tint-bar-scrolled: rgba(30, 30, 34, 0.4);
    --lg-tint-menu: rgba(36, 36, 40, 0.78);
    --lg-blur: blur(10px) saturate(170%) brightness(0.9);
    --lg-rim-hi: rgba(255, 255, 255, 0.6);
    --lg-rim-lo: rgba(255, 255, 255, 0.22);
    --lg-glow: rgba(255, 255, 255, 0.2);
    --lg-drop: 0 0 0 0.5px rgba(0, 0, 0, 0.6), 0 8px 22px -6px rgba(0, 0, 0, 0.6);
    --lg-prominent: rgba(10, 132, 255, 0.84);
  }
}
:root[data-theme="dark"] {
  --lg-tint: rgba(255, 255, 255, 0.08);
  --lg-tint-bar: rgba(30, 30, 34, 0.26);
  --lg-tint-bar-scrolled: rgba(30, 30, 34, 0.4);
  --lg-tint-menu: rgba(36, 36, 40, 0.78);
  --lg-blur: blur(10px) saturate(170%) brightness(0.9);
  --lg-rim-hi: rgba(255, 255, 255, 0.6);
  --lg-rim-lo: rgba(255, 255, 255, 0.22);
  --lg-glow: rgba(255, 255, 255, 0.2);
  --lg-drop: 0 0 0 0.5px rgba(0, 0, 0, 0.6), 0 8px 22px -6px rgba(0, 0, 0, 0.6);
  --lg-prominent: rgba(10, 132, 255, 0.84);
}

/* The material. Regular variant for bars and menus, lighter tint for buttons. */
.header-row::before, .nav.open, .btn-ghost, .btn-primary, .btn-outline-light {
  -webkit-backdrop-filter: var(--lg-blur);
  backdrop-filter: var(--lg-blur);
  border: 0;
  box-shadow: var(--lg-drop);
}
.lg-lens .header-row::before, .lg-lens .nav.open, .lg-lens .btn-ghost, .lg-lens .btn-primary, .lg-lens .btn-outline-light {
  -webkit-backdrop-filter: var(--lg-url, var(--lg-blur));
  backdrop-filter: var(--lg-url, var(--lg-blur));
}
.header-row::before { background: var(--lg-tint-bar); }
.site-header.scrolled .header-row::before { background: var(--lg-tint-bar-scrolled); }
.nav.open { background: var(--lg-tint-menu); }
.btn-ghost { background: var(--lg-tint); color: var(--ink); }
.btn-primary, .btn-primary:hover { background: var(--lg-prominent); color: #fff; }
.btn-outline-light { background: rgba(255, 255, 255, 0.12); color: #fff; }

/* Specular rim: a 1px ring, bright top-left, a fainter echo bottom-right */
.btn { position: relative; }
.header-row::after, .nav.open::before, .btn-ghost::before, .btn-primary::before, .btn-outline-light::before {
  content: ""; position: absolute; pointer-events: none; border-radius: inherit; padding: 1px;
  background: linear-gradient(135deg, var(--lg-rim-hi) 0%, var(--lg-rim-lo) 14%, transparent 38%, transparent 62%, var(--lg-rim-lo) 86%, var(--lg-rim-hi) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.nav.open::before, .btn-ghost::before, .btn-primary::before, .btn-outline-light::before { inset: 0; }
.header-row::after { top: 0; bottom: 0; left: 6px; right: 14px; border-radius: 999px; z-index: -1; }
.btn-primary::before { opacity: 0.75; }

/* Light under the pointer, only while interacting */
.btn-ghost:hover, .btn-primary:hover, .btn-outline-light:hover {
  background-image: radial-gradient(120px circle at var(--mx, 50%) var(--my, 50%), var(--lg-glow), transparent 70%);
}

/* Floating header bar */
.site-header { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; border-bottom: 0; padding-top: 10px; }
.site-header.scrolled { border-bottom-color: transparent; }
.header-row { position: relative; z-index: 0; height: 58px; transition: height 0.35s cubic-bezier(0.2, 0.8, 0.2, 1); }
.header-row::before { content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: 6px; right: 14px; border-radius: 999px; }
.site-header.compact .header-row { height: 50px; }
/* Scroll edge effect: content fades into blur as it passes under the bar */
.site-header.scrolled::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 76px; z-index: -1; pointer-events: none;
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  -webkit-mask-image: linear-gradient(to bottom, #000 40%, transparent);
  mask-image: linear-gradient(to bottom, #000 40%, transparent);
}
/* Items in the bar share its glass: no glass of their own */
.nav a:not(.btn) { border-radius: 999px; font-weight: 500; color: var(--ink); }
.nav a:not(.btn):hover { background: rgba(127, 127, 135, 0.14); }
.nav a[aria-current="page"] { background: rgba(127, 127, 135, 0.2); }
.header-row .icon-btn { border: 0; border-radius: 50%; background: transparent; box-shadow: none; }
.header-row .icon-btn:hover { background: rgba(127, 127, 135, 0.16); }
.nav-cta { min-height: 38px; padding: 0 16px; font-size: 14px; }
@media (max-width: 920px) {
  .nav { position: absolute; top: calc(100% + 10px); left: 6px; right: 14px; border: 0; border-radius: 26px; padding: 8px; background: transparent; }
  .nav a:not(.btn) { padding: 13px 16px; }
}
@media (max-width: 480px) {
  .header-row { padding-left: 24px; padding-right: 20px; }
  .header-row::before, .header-row::after, .nav { left: 10px; right: 10px; }
}

/* Interaction: glass swells when pressed and settles with a spring */
.btn {
  border-radius: 999px; border: 0; font-weight: 600; letter-spacing: -0.01em;
  transition: transform 0.5s cubic-bezier(0.25, 1.5, 0.4, 1), background-color 0.2s ease, color 0.2s ease;
}
.btn:hover { transform: scale(1.03); }
.btn:active { transform: scale(1.07); transition-duration: 0.18s; }
/* On the coloured call-to-action tile: white prominent button and clear glass */
.btn-light { background: rgba(255, 255, 255, 0.94); color: #1d1d1f; box-shadow: 0 6px 18px -8px rgba(0, 0, 0, 0.35); }
.btn-light:hover { background: #fff; color: var(--accent-text); }

/* ---- Accessibility settings --------------------------------------------------------- */
@media (prefers-reduced-transparency: reduce) {
  .header-row::before, .nav.open, .btn-ghost, .btn-outline-light, .btn-primary {
    -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
  }
  .header-row::before, .nav.open, .btn-ghost { background-color: var(--lg-solid); }
  .btn-primary { background-color: var(--accent); }
  .btn-outline-light { background-color: rgba(0, 0, 0, 0.25); }
  .site-header.scrolled::before { display: none; }
}
@media (prefers-contrast: more) {
  :root { --muted: #48484d; --line: #b0b0b6; }
  .header-row::before, .nav.open, .btn-ghost {
    background-color: var(--lg-solid); -webkit-backdrop-filter: none; backdrop-filter: none;
    box-shadow: 0 0 0 1px var(--ink);
  }
  .board, .work-card, .charity-card, .contact-card, .steps li, .features > div, .stats > .stat,
  .services > .service, .meta-grid, .product, .quote, .next-case, .callout, .flow-wrap { box-shadow: 0 0 0 1px var(--line-2); }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .header-row::before, .nav.open, .btn-ghost { background-color: var(--lg-solid); }
  .btn-primary { background-color: var(--accent); }
}

/* Rows inside a grey card visual sit on white, like grouped list cells */
.trace { font-family: var(--sans); font-size: 13.5px; }
.trace-row { background: var(--card); }
.trace-row b { font-weight: 600; }
.trace-row.hl { background: color-mix(in srgb, var(--accent) 12%, var(--card)); }

/* The hero pillar is invisible: it only marks where scattered dots become ordered streams. */
.fv-lens { background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }

/* ---- Ember palette (red/orange). Applied by the "palette-ember" class on <html>. ---- */
:root.palette-ember {
  --accent: #d9480f; --accent-soft: rgba(217, 72, 15, 0.1); --accent-text: #c2410c;
  --grad-text: linear-gradient(100deg, #c2410c 5%, #e8590c 50%, #f08c00 95%);
  --ambient-1: rgba(232, 89, 12, 0.18); --ambient-2: rgba(245, 159, 11, 0.14); --ambient-3: rgba(190, 40, 30, 0.07);
  --lg-prominent: rgba(217, 72, 15, 0.88);
}
@media (prefers-color-scheme: dark) {
  :root.palette-ember:not([data-theme="light"]) {
    --accent: #f2541b; --accent-soft: rgba(242, 84, 27, 0.18); --accent-text: #ff8a50;
    --grad-text: linear-gradient(100deg, #ff6a3d 5%, #ff8f3a 50%, #ffb84d 95%);
    --ambient-1: rgba(242, 84, 27, 0.3); --ambient-2: rgba(245, 159, 11, 0.18); --ambient-3: rgba(140, 30, 20, 0.35);
    --lg-prominent: rgba(242, 84, 27, 0.86);
  }
}
:root.palette-ember[data-theme="dark"] {
  --accent: #f2541b; --accent-soft: rgba(242, 84, 27, 0.18); --accent-text: #ff8a50;
  --grad-text: linear-gradient(100deg, #ff6a3d 5%, #ff8f3a 50%, #ffb84d 95%);
  --ambient-1: rgba(242, 84, 27, 0.3); --ambient-2: rgba(245, 159, 11, 0.18); --ambient-3: rgba(140, 30, 20, 0.35);
  --lg-prominent: rgba(242, 84, 27, 0.86);
}
.palette-ember .hero-bg { --fv-apps: 217, 72, 15; --fv-ai: 232, 128, 12; --fv-auto: 196, 140, 10; }
@media (prefers-color-scheme: dark) { :root.palette-ember:not([data-theme="light"]) .hero-bg { --fv-apps: 255, 106, 61; --fv-ai: 255, 159, 60; --fv-auto: 255, 200, 90; } }
:root.palette-ember[data-theme="dark"] .hero-bg { --fv-apps: 255, 106, 61; --fv-ai: 255, 159, 60; --fv-auto: 255, 200, 90; }
.palette-ember .cta-inner { background: linear-gradient(135deg, #b8370b 0%, #e2550c 55%, #ef8a12 100%); }
.palette-ember .portrait { background: linear-gradient(155deg, #d9480f, #c2410c 55%, #ef8a12); }
.palette-ember .cover-mhd { --c1: #b8370b; --c2: #ef8a12; }
.palette-ember .cover-ff { --c1: #1d1d1f; --c2: #6b3a22; }
.palette-ember .cover-farms { --c1: #8a2f0c; --c2: #e2700c; }

/* Tighter vertical rhythm between sections */
.hero { padding-bottom: 24px; }
.section { padding: 56px 0; }
.section-head { margin-bottom: 36px; }
.cs-section { padding: 44px 0; }
.cs-hero { padding-bottom: 28px; }
.next-case { margin-bottom: 48px; }
.cta-band { padding-bottom: 64px; }
@media (max-width: 980px) {
  .hero { padding-bottom: 56px; }
}
@media (max-width: 860px) {
  .section { padding: 44px 0; }
  .cs-section { padding: 36px 0; }
}
