@import url("https://fonts.googleapis.com/css2?family=League+Spartan:wght@900&display=swap");

/* =========================================================
   Rolo Robotics — Foundations
   Colors & Type tokens. Import this on every Rolo surface.
   ========================================================= */

/* vietnamese */
/* latin-ext */
/* latin */
/* Neue Montreal — the brand sans. Local OTF, no CDN. */
@font-face { font-family: "Neue Montreal"; src: url("fonts/NeueMontreal-Light.otf") format("opentype");        font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Neue Montreal"; src: url("fonts/NeueMontreal-LightItalic.otf") format("opentype");  font-weight: 300; font-style: italic; font-display: swap; }
@font-face { font-family: "Neue Montreal"; src: url("fonts/NeueMontreal-Regular.otf") format("opentype");      font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Neue Montreal"; src: url("fonts/NeueMontreal-Italic.otf") format("opentype");       font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Neue Montreal"; src: url("fonts/NeueMontreal-Medium.otf") format("opentype");       font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Neue Montreal"; src: url("fonts/NeueMontreal-MediumItalic.otf") format("opentype"); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: "Neue Montreal"; src: url("fonts/NeueMontreal-Bold.otf") format("opentype");         font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Neue Montreal"; src: url("fonts/NeueMontreal-BoldItalic.otf") format("opentype");   font-weight: 700; font-style: italic; font-display: swap; }

:root {
  /* ---------- Brand palette (the only four that appear on every surface) ---------- */
  --rr-black:         #000000;   /* brand black — see Brand Colors card                */
  --rr-white:         #FFFFFF;   /* brand white — page canvas, dominant background     */
  --rr-grey:          #F0F0F0;   /* brand grey  — neutral wells, secondary cards       */
  --rr-gold:          #C49A3C;   /* brand gold  — CTAs, highlight words, stat numbers  */

  /* ---------- Working surfaces (derived) ---------- */
  --rr-bg:            var(--rr-white);   /* page background — default */
  --rr-surface:       var(--rr-grey);    /* neutral surface — cards on light */
  --rr-ink:           #111110;            /* near-black for type — softer than pure 000 */
  --rr-muted:         #6B6860;            /* secondary text, captions */
  --rr-line:          #E6E4DE;            /* hairline borders on light */
  --rr-line-dark:     #2A2926;            /* hairline borders on ink   */

  /* ---------- Optional editorial cream (NOT in brand palette) ----------
     Reserved for warmer print/deck contexts only — never on the marketing site. */
  --rr-cream:         #FAF5E9;

  --rr-gold-dark:     #ECC766;            /* hover / pressed gold — brightens noticeably */
  --rr-gold-tint:     #EFD58A;            /* rich warm tint — on grey, on hover wells    */
  --rr-gold-ink:      #9E7A2A;            /* deeper gold — for type on gold backgrounds  */

  /* ---------- Module accents (strips / labels only, never fills) ---------- */
  --rr-microfry:      #FF3131;
  --rr-micropot:      #FFD21F;
  --rr-microgreen:    #56AB2F;
  --rr-microbev:      #38B6FF;

  /* ---------- Semantic ---------- */
  --rr-fg:            var(--rr-ink);
  --rr-fg-muted:      var(--rr-muted);
  --rr-fg-inverse:    #FAF5E9;     /* text on ink */
  --rr-fg-on-gold:    #111110;
  --rr-accent:        var(--rr-gold);
  --rr-accent-hover:  var(--rr-gold-dark);
  --rr-focus-ring:    color-mix(in oklab, var(--rr-gold) 60%, transparent);

  /* ---------- Type families ---------- */
  --rr-font-sans:     "Neue Montreal", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --rr-font-module:   "League Spartan", "Neue Montreal", sans-serif; /* ONLY for module names: MicroFRY, MicroPOT, etc */
  --rr-font-mono:     ui-monospace, "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace;

  /* ---------- Type scale ---------- */
  /* Desktop-first; let consumers scale down with clamp() at section level */
  --rr-text-display:  clamp(56px, 7vw, 104px);
  --rr-text-h1:       clamp(40px, 4.6vw, 72px);
  --rr-text-h2:       clamp(32px, 3.4vw, 52px);
  --rr-text-h3:       28px;
  --rr-text-h4:       22px;
  --rr-text-lead:     20px;
  --rr-text-body:     17px;
  --rr-text-small:    15px;
  --rr-text-caption:  13px;
  --rr-text-eyebrow:  12px;

  /* ---------- Tracking ---------- */
  --rr-track-tight:   -0.02em;
  --rr-track-normal:  0;
  --rr-track-wide:    0.06em;
  --rr-track-eyebrow: 0.18em;

  /* ---------- Weight ---------- */
  --rr-w-light: 300;
  --rr-w-regular: 400;
  --rr-w-medium: 500;
  --rr-w-semi: 600;
  --rr-w-bold: 700;
  --rr-w-extra: 800;
  --rr-w-black: 900;

  /* ---------- Leading ---------- */
  --rr-lh-display: 0.96;
  --rr-lh-tight:   1.05;
  --rr-lh-snug:    1.18;
  --rr-lh-body:    1.55;
  --rr-lh-loose:   1.7;

  /* ---------- Spacing scale (8pt-ish, editorial roomy) ---------- */
  --rr-s-1:  4px;
  --rr-s-2:  8px;
  --rr-s-3:  12px;
  --rr-s-4:  16px;
  --rr-s-5:  24px;
  --rr-s-6:  32px;
  --rr-s-7:  48px;
  --rr-s-8:  64px;
  --rr-s-9:  96px;
  --rr-s-10: 128px;
  --rr-s-11: 192px;

  /* ---------- Radii ---------- */
  --rr-r-xs: 4px;
  --rr-r-sm: 8px;
  --rr-r-md: 12px;
  --rr-r-lg: 20px;
  --rr-r-xl: 28px;
  --rr-r-pill: 999px;

  /* ---------- Hairline / borders ---------- */
  --rr-border:        1px solid var(--rr-line);
  --rr-border-strong: 1px solid #D9D5CB;
  --rr-border-gold:   1px solid var(--rr-gold);
  --rr-border-dark:   1px solid var(--rr-line-dark);

  /* ---------- Subtle elevation (warm gold tint — brand's lightest gold shade) ---------- */
  --rr-shadow-0: none;
  --rr-shadow-1: 0 1px 0 rgba(196,154,60,0.06), 0 1px 2px rgba(196,154,60,0.10);
  --rr-shadow-2: 0 6px 18px -8px rgba(196,154,60,0.32), 0 2px 4px -2px rgba(17,17,16,0.05);
  --rr-shadow-3: 0 22px 44px -20px rgba(196,154,60,0.42), 0 6px 12px -6px rgba(17,17,16,0.07);

  /* ---------- Motion ---------- */
  --rr-ease:        cubic-bezier(.2,.7,.2,1);
  --rr-ease-out:    cubic-bezier(.16,.84,.32,1);
  --rr-dur-fast:    140ms;
  --rr-dur-base:    220ms;
  --rr-dur-slow:    420ms;

  /* ---------- Layout ---------- */
  --rr-max:           1240px;  /* editorial column max */
  --rr-max-narrow:    760px;
  --rr-gutter:        clamp(20px, 4vw, 56px);

  color-scheme: light;
}

/* ---------- Dark contexts (Modules, Rolo OS sections, footer) ---------- */
.rr-dark, .rr-on-ink {
  --rr-bg:        var(--rr-ink);
  --rr-surface:   #1A1A18;
  --rr-fg:        #FAF5E9;
  --rr-fg-muted:  #9A958A;
  --rr-line:      var(--rr-line-dark);
  color: var(--rr-fg);
  background: var(--rr-bg);
  color-scheme: dark;
}

/* =========================================================
   Base element styles — drop into any page
   ========================================================= */

html, body {
  background: var(--rr-bg);
  color: var(--rr-fg);
  font-family: var(--rr-font-sans);
  font-size: var(--rr-text-body);
  line-height: var(--rr-lh-body);
  font-weight: var(--rr-w-regular);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "ss02", "cv11";
}

/* ---------- Headings ---------- */
.rr-display, .rr-h1, .rr-h2, .rr-h3, .rr-h4 {
  font-family: var(--rr-font-sans);
  color: var(--rr-fg);
  letter-spacing: var(--rr-track-tight);
  text-wrap: balance;
  margin: 0;
}
/* Note: Neue Montreal is available at 300/400/500/700 only. Map heavier display weights to 700.
   Use weight 700 wherever this CSS specifies 800 or 900 in the body. */
.rr-display { font-size: var(--rr-text-display); font-weight: 700; line-height: var(--rr-lh-display); letter-spacing: -0.035em; }
.rr-h1      { font-size: var(--rr-text-h1);      font-weight: var(--rr-w-bold);  line-height: var(--rr-lh-tight); }
.rr-h2      { font-size: var(--rr-text-h2);      font-weight: var(--rr-w-bold);  line-height: var(--rr-lh-tight); }
.rr-h3      { font-size: var(--rr-text-h3);      font-weight: var(--rr-w-semi);  line-height: var(--rr-lh-snug); }
.rr-h4      { font-size: var(--rr-text-h4);      font-weight: var(--rr-w-semi);  line-height: var(--rr-lh-snug); letter-spacing: -0.01em; }

/* ---------- Module name (special: League Spartan 900 only) ----------
   Use .rr-module on the wrapper, then split the wordmark:
   <span class="rr-module"><span>Micro</span><span style="color: var(--rr-microfry)">FRY</span></span>
   On an accent-color FILL, omit the inline color — the whole word is white (or ink on yellow). */
.rr-module {
  font-family: var(--rr-font-module);
  font-weight: 900;
  letter-spacing: 0.005em;
  text-transform: none;
}

/* ---------- Body & utility text ---------- */
.rr-lead    { font-size: var(--rr-text-lead);  line-height: 1.45; color: var(--rr-fg); text-wrap: pretty; }
.rr-body    { font-size: var(--rr-text-body);  line-height: var(--rr-lh-body); }
.rr-small   { font-size: var(--rr-text-small); line-height: 1.5; color: var(--rr-fg-muted); }
.rr-caption { font-size: var(--rr-text-caption); line-height: 1.45; color: var(--rr-fg-muted); }

/* ---------- Eyebrow / section label ---------- */
.rr-eyebrow {
  font-size: var(--rr-text-eyebrow);
  font-weight: var(--rr-w-semi);
  letter-spacing: var(--rr-track-eyebrow);
  text-transform: uppercase;
  color: var(--rr-gold);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.rr-eyebrow::before {
  content: "";
  width: 22px; height: 1px; background: currentColor; opacity: .7;
}

/* ---------- Stat / display number ----------
   The brochure uses two stat treatments:
   • Inside a stat column, the number is BLACK (or white on ink) — gold lives on the left rule + label.
   • Inside spec-sheet rows, the number is gold for emphasis (200 meals / hour, 4 live modules).
   Default below is the column treatment; add .rr-stat--gold for the spec-row treatment. */
.rr-stat {
  font-family: var(--rr-font-sans);
  font-weight: var(--rr-w-bold);
  font-size: clamp(48px, 6vw, 88px);
  color: var(--rr-ink);
  letter-spacing: -0.035em;
  line-height: 1;
}
.rr-stat--gold { color: var(--rr-gold); }

/* ---------- Links ---------- */
.rr-link {
  color: var(--rr-fg);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  text-decoration-color: var(--rr-gold);
  transition: color var(--rr-dur-fast) var(--rr-ease);
}
.rr-link:hover { color: var(--rr-gold-dark); }

/* ---------- Code ---------- */
.rr-code {
  font-family: var(--rr-font-mono);
  font-size: 0.92em;
  background: var(--rr-surface);
  padding: 2px 6px;
  border-radius: var(--rr-r-xs);
  border: var(--rr-border);
}

/* ---------- Manifesto line ---------- *
   The Rolo signature: short sentences stacked, period after each, last line in gold.
   <p class="rr-manifesto">Robotics. Software. Food preparation. <em>Working as one.</em></p> */
.rr-manifesto {
  font-family: var(--rr-font-sans);
  font-weight: var(--rr-w-bold);
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  color: var(--rr-ink);
  margin: 0;
  text-transform: uppercase;
  font-style: normal;
}
.rr-manifesto em { color: var(--rr-gold); font-style: normal; }
.rr-on-ink .rr-manifesto { color: var(--rr-fg-inverse); }

/* ---------- Highlight word (gold word inside a black headline) ---------- */
.rr-hi { color: var(--rr-gold); }


/* ---------- Focus ---------- */
:where(button, a, input, select, textarea):focus-visible {
  outline: 2px solid var(--rr-focus-ring);
  outline-offset: 2px;
  border-radius: 2px;
}

::selection { background: var(--rr-gold-tint); color: var(--rr-ink); }


/* =========================================================
   Rolo Marketing — Wireframes (mid-fi grayscale)
   Real Neue Montreal, real spacing, no photography.
   Grayscale base with brand gold + module accents only
   where they are load-bearing for the design intent.
   ========================================================= */

:root {
  --wf-paper: #F4F2EE;      /* page background — warm wireframe paper */
  --wf-paper-2: #ECEAE4;    /* alt strip */
  --wf-card: #FFFFFF;       /* variant card */
  --wf-ink: #111110;
  --wf-line: #D9D5CB;       /* hairline */
  --wf-line-2: #C7C2B5;
  --wf-grey: #E5E2D8;       /* placeholder fill */
  --wf-grey-2: #CFCBBE;
  --wf-muted: #8B8779;
  --wf-stamp: #7A7669;
  --wf-anno: #B0862E;       /* annotation gold (deeper than CTA gold) */
  --wf-rule: rgba(17,17,16,0.06);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--wf-paper);
  color: var(--wf-ink);
  font-family: var(--rr-font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "ss02";
}

/* ---------- Page chrome ---------- */
.wf-stamp {
  position: fixed; left: 24px; bottom: 24px; z-index: 30;
  font-family: var(--rr-font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--wf-stamp);
  background: var(--wf-paper);
  border: 1px dashed var(--wf-line-2);
  padding: 8px 12px;
  border-radius: 4px;
  pointer-events: none;
}

.wf-title-strip {
  border-bottom: 1px solid var(--wf-line);
  background: var(--wf-paper);
  padding: 56px clamp(28px, 5vw, 72px) 36px;
}
.wf-title-strip .meta {
  font-family: var(--rr-font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--wf-muted);
}
.wf-title-strip h1 {
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 16px 0 0;
  max-width: 22ch;
}
.wf-title-strip .lede {
  font-size: 16px;
  color: var(--wf-muted);
  margin: 18px 0 0;
  max-width: 60ch;
  line-height: 1.55;
}

.wf-toc {
  display: flex; flex-wrap: wrap; gap: 8px 10px;
  margin: 28px 0 0;
}
.wf-toc a {
  font-family: var(--rr-font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--wf-ink);
  text-decoration: none;
  padding: 6px 10px;
  border: 1px solid var(--wf-line);
  border-radius: 999px;
  background: #FCFBF8;
  transition: all .2s;
}
.wf-toc a:hover { border-color: var(--wf-anno); color: var(--wf-anno); }

/* ---------- Section stack ---------- */
.wf-section {
  padding: 72px clamp(28px, 5vw, 72px) 96px;
  border-bottom: 1px solid var(--wf-line);
  position: relative;
}
.wf-section + .wf-section { padding-top: 64px; }

.wf-section-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: 24px;
  margin-bottom: 36px;
  padding-bottom: 18px;
  border-bottom: 1px dashed var(--wf-line-2);
}
.wf-section-num {
  font-family: var(--rr-font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--wf-muted);
  text-transform: uppercase;
}
.wf-section-title {
  font-size: clamp(28px, 3.2vw, 42px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1;
  margin: 0;
}
.wf-section-count {
  font-family: var(--rr-font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--wf-muted);
  text-transform: uppercase;
}

.wf-section-note {
  font-family: var(--rr-font-mono);
  font-size: 11px;
  color: var(--wf-stamp);
  line-height: 1.6;
  max-width: 72ch;
  margin: 0 0 28px;
  padding: 12px 14px;
  background: rgba(176,134,46,0.06);
  border-left: 2px solid var(--wf-anno);
}

/* ---------- Variant block ---------- */
.wf-variant {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 28px;
  margin-bottom: 36px;
  align-items: stretch;
}
.wf-variant:last-child { margin-bottom: 0; }

.wf-variant-meta {
  position: sticky; top: 24px; align-self: start;
  padding-right: 12px;
}
.wf-variant-tag {
  font-family: var(--rr-font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--wf-anno);
  text-transform: uppercase;
  margin-bottom: 8px;
  display: block;
}
.wf-variant-letter {
  font-family: var(--rr-font-sans);
  font-size: 64px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--wf-ink);
  display: block;
}
.wf-variant-title {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 8px 0 6px;
  color: var(--wf-ink);
}
.wf-variant-desc {
  font-size: 12px;
  font-family: var(--rr-font-mono);
  color: var(--wf-muted);
  line-height: 1.55;
  max-width: 28ch;
}
.wf-variant-list {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  font-family: var(--rr-font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--wf-stamp);
  line-height: 1.7;
  text-transform: uppercase;
}
.wf-variant-list li::before { content: "— "; color: var(--wf-anno); }

/* The actual variant canvas */
.wf-canvas {
  background: var(--wf-card);
  border: 1px solid var(--wf-line);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(17,17,16,0.02);
}
.wf-canvas.dark { background: #111110; color: #F2EFE9; border-color: #2A2926; }
.wf-canvas .corner {
  position: absolute; top: 10px; right: 12px;
  font-family: var(--rr-font-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--wf-muted);
  text-transform: uppercase;
}
.wf-canvas.dark .corner { color: #6F6B5F; }

/* ---------- Grid overlay (tweak) ---------- */
.wf-canvas.show-grid::after {
  content: "";
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(
      to right,
      transparent 0,
      transparent calc((100% - 11 * 12px) / 12),
      rgba(176,134,46,0.10) calc((100% - 11 * 12px) / 12),
      rgba(176,134,46,0.10) calc(((100% - 11 * 12px) / 12) + 12px)
    );
  pointer-events: none;
}

/* ---------- Photo / placeholder boxes ---------- */
.wf-photo {
  background:
    repeating-linear-gradient(135deg, transparent 0 14px, rgba(17,17,16,0.04) 14px 15px),
    var(--wf-grey);
  border: 1px solid var(--wf-line-2);
  border-radius: 4px;
  display: flex; align-items: flex-end; justify-content: flex-start;
  padding: 10px 12px;
  font-family: var(--rr-font-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--wf-stamp);
  text-transform: uppercase;
  position: relative;
}
.wf-photo.dark {
  background:
    repeating-linear-gradient(135deg, transparent 0 14px, rgba(255,255,255,0.02) 14px 15px),
    #1A1A18;
  border-color: #2A2926;
  color: #6F6B5F;
}
.wf-photo.video {
  background:
    radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%),
    repeating-linear-gradient(135deg, transparent 0 22px, rgba(255,255,255,0.04) 22px 23px),
    #1A1A18;
  color: #6F6B5F;
  border-color: #2A2926;
}
.wf-photo.video::before {
  content: "";
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 56px; height: 56px;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 999px;
  background:
    radial-gradient(circle, transparent 24%, rgba(255,255,255,0.04) 25%);
}
.wf-photo.video::after {
  content: "";
  position: absolute; left: 50%; top: 50%;
  transform: translate(-40%, -50%);
  width: 0; height: 0;
  border-left: 14px solid rgba(255,255,255,0.5);
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
}
.wf-photo.tall { aspect-ratio: 3 / 4; }
.wf-photo.square { aspect-ratio: 1; }
.wf-photo.wide { aspect-ratio: 16 / 9; }
.wf-photo.portrait { aspect-ratio: 9 / 16; }

/* Real photo inside a wf-photo slot — kills the placeholder hatch and label color */
.wf-photo.has-img { background: #000; padding: 0; }
.wf-photo.has-img > img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
}

/* ---------- Annotation ---------- */
.wf-anno {
  position: absolute;
  font-family: var(--rr-font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--wf-anno);
  text-transform: uppercase;
  background: var(--wf-card);
  padding: 2px 7px;
  border: 1px solid currentColor;
  border-radius: 2px;
  pointer-events: none;
  white-space: nowrap;
  z-index: 5;
}
.wf-canvas.dark .wf-anno { background: #111110; }
body.hide-anno .wf-anno { display: none; }
body.hide-anno .wf-section-note { display: none; }

/* Tweaks-driven utilities */
body.compact .wf-section { padding: 48px clamp(28px, 5vw, 72px) 60px; }
body.compact .wf-variant { margin-bottom: 24px; }
body.compact .wf-canvas .frame { min-height: 320px !important; }

body.hide-letters .wf-variant-letter { display: none; }

/* ---------- Floating pill nav (real, sticky) ---------- */
.wf-floatnav {
  position: fixed;
  top: 18px; left: 50%; transform: translateX(-50%);
  z-index: 40;
  background: rgba(244, 242, 238, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--wf-line);
  border-radius: 999px;
  padding: 8px 8px 8px 18px;
  display: flex; align-items: center; gap: 28px;
  box-shadow: 0 4px 12px -8px rgba(17,17,16,0.18);
  transition: box-shadow .25s, background .25s, border-color .25s;
}
.wf-floatnav.scrolled {
  background: rgba(244, 242, 238, 0.96);
  box-shadow: 0 10px 30px -16px rgba(17,17,16,0.22);
}
/* In Preview Flow mode: switch to a dark pill so the white logo + nav read against any section */
.wf-floatnav.in-flow {
  background: rgba(17, 17, 16, 0.82);
  border-color: rgba(255,255,255,0.10);
  box-shadow: 0 10px 30px -16px rgba(0,0,0,0.45);
}
.wf-floatnav.in-flow.scrolled {
  background: rgba(17, 17, 16, 0.94);
}
.wf-floatnav .brand {
  display: flex; align-items: center; gap: 8px;
  text-decoration: none;
  color: inherit;
}
.wf-floatnav .brand .logo {
  height: 26px;
  width: auto;
  display: block;
  /* The trimmed PNG is a horizontal lockup; constrain width on small viewports */
  max-width: 180px;
}
.wf-floatnav .brand .logo-white { display: none; }
.wf-floatnav.in-flow .brand .logo-black { display: none; }
.wf-floatnav.in-flow .brand .logo-white { display: block; }
.wf-floatnav .links { display: flex; gap: 22px; }
.wf-floatnav .links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--wf-ink);
  text-decoration: none;
  letter-spacing: -0.005em;
}
.wf-floatnav.in-flow .links a { color: #FAF5E9; }
.wf-floatnav .cta {
  font-size: 12px;
  font-weight: 600;
  padding: 9px 16px;
  background: var(--wf-ink);
  color: #FFF;
  border-radius: 999px;
  text-decoration: none;
  letter-spacing: -0.005em;
}
.wf-floatnav.in-flow .cta {
  background: var(--rr-gold);
  color: #FFF;
}
@media (max-width: 760px) {
  .wf-floatnav .links { display: none; }
}

/* ---------- Frame helper ---------- */
.frame {
  position: relative;
  min-height: 520px;
  padding: 40px clamp(28px, 4vw, 56px);
  overflow: hidden;
}
.frame.tight { min-height: 380px; padding: 32px clamp(24px, 4vw, 48px); }
.frame.wide { min-height: 620px; }

/* ---------- Reusable bits used inside variants ---------- */
.wf-eyebrow {
  font-family: var(--rr-font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--wf-anno);
  display: inline-flex; align-items: center; gap: 10px;
}
.wf-eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; }
.wf-canvas.dark .wf-eyebrow { color: #E0BD63; }

.wf-h1 {
  font-size: clamp(36px, 4vw, 60px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.98;
  margin: 14px 0 0;
  text-wrap: balance;
}
.wf-h2 {
  font-size: clamp(28px, 3.2vw, 44px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1;
  margin: 12px 0 0;
}
.wf-lede {
  font-size: 15px;
  color: var(--wf-muted);
  line-height: 1.55;
  max-width: 52ch;
  margin: 18px 0 0;
}
.wf-canvas.dark .wf-lede { color: #9A958A; }

.wf-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--wf-ink);
  background: var(--wf-ink);
  color: #FFF;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.005em;
  text-decoration: none;
}
.wf-btn.gold {
  background: var(--rr-gold);
  border-color: var(--rr-gold);
  color: #FFF;
}
.wf-btn.outline {
  background: transparent;
  color: var(--wf-ink);
}
.wf-btn.outline.gold {
  border-color: var(--rr-gold);
  color: var(--rr-gold);
}
.wf-canvas.dark .wf-btn.outline { color: #FAF5E9; border-color: #FAF5E9; }
.wf-canvas.dark .wf-btn { color: #111110; background: #FAF5E9; border-color: #FAF5E9; }
.wf-canvas.dark .wf-btn.gold { background: var(--rr-gold); border-color: var(--rr-gold); color: #FFF; }

.wf-stat-num { font-size: 36px; font-weight: 700; letter-spacing: -0.035em; line-height: 1; color: var(--rr-gold); }
.wf-stat-lbl { font-size: 11px; font-family: var(--rr-font-mono); letter-spacing: 0.08em; color: var(--wf-muted); text-transform: uppercase; margin-top: 6px; }

/* Module name display */
.wf-module-name {
  font-family: var(--rr-font-module);
  font-weight: 900;
  font-size: clamp(80px, 16vw, 220px);
  letter-spacing: 0.005em;
  line-height: 0.85;
  text-transform: none;
  color: #FFFFFF;
}

/* ===========================================================
   IntersectionObserver-driven cinematic 4-modules canvas
   =========================================================== */
.wf-cinema {
  position: relative;
  height: 640px;
  background: #111110;
  overflow: hidden;
  isolation: isolate;
}
.wf-cinema-bleed {
  position: absolute; inset: 0;
  background: #111110;
  transition: background 800ms cubic-bezier(.16,.84,.32,1);
}
/* Brand-faithful radial fill: the exact brand hex dominates ~50% of the canvas
   from the top-left, then deepens into darker tints of the SAME hue (not muddy
   brown/olive) so the wordmark and bowls stay readable without polluting the
   brand color. End color is a 70%-darkened shade of the brand hex itself. */
.wf-cinema-bleed.fry    { background: radial-gradient(140% 130% at 18% 22%, #FF3131 0%, #FF3131 35%, #4D0F0F 100%); }
.wf-cinema-bleed.pot    { background: radial-gradient(140% 130% at 18% 22%, #FFD21F 0%, #FFD21F 35%, #5C4906 100%); }
.wf-cinema-bleed.green  { background: radial-gradient(140% 130% at 18% 22%, #56AB2F 0%, #56AB2F 35%, #19340D 100%); }
.wf-cinema-bleed.bev    { background: radial-gradient(140% 130% at 18% 22%, #38B6FF 0%, #38B6FF 35%, #0B3756 100%); }
/* Subtle darkening at the far edge keeps cinematic vignette without dulling the brand */
.wf-cinema-bleed::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(120% 100% at 85% 90%, rgba(0,0,0,0.35) 0%, transparent 60%);
  pointer-events: none;
}

.wf-cinema-stage {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 32px 40px;
  z-index: 2;
  color: #FFFFFF;
  pointer-events: none;
}
.wf-cinema-meta {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--rr-font-mono); font-size: 11px;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(255,255,255,0.66);
}
.wf-cinema-mid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 28px;
  align-items: center;
  flex: 1;
  min-height: 0;
  padding: 12px 0;
}
.wf-cinema-mid > * { min-width: 0; }
.wf-cinema-name {
  font-family: var(--rr-font-module);
  font-weight: 900;
  /* Sized so "MicroGREEN" (longest wordmark) stays on one line at every realistic frame width */
  font-size: clamp(40px, 7vw, 104px);
  line-height: 0.84;
  letter-spacing: 0.005em;
  margin: 0;
  /* Tight line-height (0.84) makes cap ascenders extend above the line box.
     Combined with overflow:hidden below, this would clip the top of tall caps
     (G in GREEN, M in MicroFRY, etc.). 0.1em top/bottom padding gives the
     ascenders + descenders room. */
  padding: 0.1em 0;
  text-align: left;
  transform: translateX(-12px);
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
  transition: opacity 600ms cubic-bezier(.16,.84,.32,1), transform 800ms cubic-bezier(.16,.84,.32,1);
}
.wf-cinema-name .prefix { color: #FFFFFF; }
/* Brand rule: on any accent fill (including yellow), the WHOLE wordmark is white.
   The bleed surface IS the accent — so the suffix is white too, not the accent color. */
.wf-cinema-name .suffix { color: #FFFFFF; }
.wf-cinema-bowls {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px 16px;
  align-items: start;
}
.wf-cinema-bowls-cell {
  opacity: 0;
  transform: translateY(10px) scale(0.92);
  animation: bowlIn 520ms cubic-bezier(.16,.84,.32,1) forwards;
}
@keyframes bowlIn {
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.wf-cinema-foot {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 56px;
  align-items: end;
}
.wf-cinema-foot .speed {
  font-family: var(--rr-font-sans);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #FFFFFF;
}
.wf-cinema-foot .speed .n { font-size: 48px; line-height: 1; }
.wf-cinema-foot .speed .l { font-size: 11px; font-family: var(--rr-font-mono); letter-spacing: 0.2em; text-transform: uppercase; opacity: 0.7; display: block; margin-top: 8px; }
.wf-cinema-foot .caps {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px;
  font-size: 13px; color: rgba(255,255,255,0.82); line-height: 1.4;
}
.wf-cinema-foot .caps span::before { content: "— "; opacity: 0.5; }

.wf-cinema-rail {
  position: absolute; right: 24px; top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 10px; z-index: 3;
}
.wf-cinema-rail .dot {
  width: 8px; height: 8px; border-radius: 999px;
  background: rgba(255,255,255,0.25);
  transition: background 300ms, transform 300ms;
}
.wf-cinema-rail .dot.active { background: #FFFFFF; transform: scale(1.6); }

.wf-cinema-progress {
  position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: rgba(255,255,255,0.10);
  z-index: 3;
}
.wf-cinema-progress .bar {
  height: 100%; width: 0%;
  background: rgba(255,255,255,0.95);
  transition: width 220ms linear;
}

/* Scroll indicator */
.wf-scroll-ind {
  position: absolute; bottom: 18px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  color: rgba(255,255,255,0.55);
  font-family: var(--rr-font-mono); font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
}
.wf-scroll-ind .arrow {
  width: 1px; height: 28px; background: currentColor; opacity: 0.6;
  animation: scrollArrow 1.8s ease-in-out infinite;
}
@keyframes scrollArrow {
  0%, 100% { transform: translateY(0); opacity: 0.2; }
  50% { transform: translateY(6px); opacity: 0.8; }
}

/* Animated diagonal lines background (hero video stand-in) */
.wf-noise-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 80% at 50% 50%, transparent 0%, rgba(0,0,0,0.4) 100%),
    repeating-linear-gradient(115deg, transparent 0 18px, rgba(255,255,255,0.045) 18px 19px),
    repeating-linear-gradient(65deg, transparent 0 28px, rgba(255,255,255,0.025) 28px 29px),
    linear-gradient(160deg, #18171A 0%, #0B0B0C 100%);
  animation: noiseDrift 18s linear infinite;
}
@keyframes noiseDrift {
  0% { background-position: 0 0, 0 0, 0 0, 0 0; }
  100% { background-position: 0 0, 80px -40px, -80px 40px, 0 0; }
}

/* Tabular stat group */
.wf-stats-row {
  display: flex; gap: 36px;
  border-top: 1px solid var(--wf-line);
  padding-top: 22px;
}
.wf-stats-row .it {
  display: flex; flex-direction: column;
}

/* Small chip */
.wf-chip {
  display: inline-flex;
  padding: 8px 14px;
  border: 1px solid var(--wf-line);
  border-radius: 999px;
  font-size: 13px;
  background: #FFF;
  color: var(--wf-ink);
}
.wf-canvas.dark .wf-chip { background: #1A1A18; border-color: #2A2926; color: #FAF5E9; }
.wf-chip.gold-outline { border-color: var(--rr-gold); color: var(--rr-gold); }

.wf-row-stats {
  display: flex; flex-wrap: wrap; gap: 4px 22px;
  align-items: baseline;
  font-family: var(--rr-font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--wf-muted);
  text-transform: uppercase;
}
.wf-row-stats b {
  color: var(--rr-gold);
  font-family: var(--rr-font-sans);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.01em;
  text-transform: none;
}

/* Logo placeholder hex */
.wf-mark {
  width: 28px; height: 32px;
  background: var(--wf-ink);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.wf-canvas.dark .wf-mark { background: #FAF5E9; }

/* Small icon stub */
.wf-icon {
  width: 22px; height: 22px; border: 1.5px solid currentColor; border-radius: 4px;
  position: relative; flex: none;
}
.wf-icon::after {
  content: ""; position: absolute; inset: 4px;
  border: 1px solid currentColor; opacity: 0.5;
  border-radius: 2px;
}

/* Fade-up reveal */
.wf-reveal { opacity: 0; transform: translateY(12px); transition: opacity 600ms, transform 600ms; transition-timing-function: cubic-bezier(.16,.84,.32,1); }
.wf-reveal.visible { opacity: 1; transform: translateY(0); }

/* OS Orbit ring */
.wf-orbit {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  max-width: 280px;
  margin: 0 auto;
}
.wf-orbit .ring {
  position: absolute; inset: 0;
  border: 1px solid var(--rr-gold);
  border-radius: 999px;
  opacity: 0.6;
}
.wf-orbit .ring.r2 { inset: 14%; opacity: 0.35; border-style: dashed; }
.wf-orbit .ring.r3 { inset: 28%; opacity: 0.2; }
.wf-orbit .core {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 38%; height: 38%; border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #E5BA60 0%, #C49A3C 60%, #8A6A23 100%);
  box-shadow: 0 0 36px rgba(196,154,60,0.4);
}
.wf-orbit .sat {
  position: absolute; width: 8px; height: 8px; border-radius: 999px;
  background: var(--rr-gold);
}
.wf-orbit .sat.a { left: 50%; top: 4%; transform: translateX(-50%); }
.wf-orbit .sat.b { right: 6%; top: 50%; transform: translateY(-50%); }
.wf-orbit .sat.c { left: 50%; bottom: 4%; transform: translateX(-50%); background: rgba(196,154,60,0.4); }
.wf-orbit .sat.d { left: 6%; top: 50%; transform: translateY(-50%); background: rgba(196,154,60,0.4); }
.wf-orbit.spin .ring.r2 { animation: spin 22s linear infinite; }
.wf-orbit.spin .ring { animation: spin 38s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Misc */
.flex { display: flex; }
.col { flex-direction: column; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-5 { gap: 24px; }
.gap-6 { gap: 32px; }
.gap-7 { gap: 48px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mt-5 { margin-top: 24px; }
.mt-6 { margin-top: 32px; }
.mt-7 { margin-top: 48px; }
.grow { flex: 1; }
.between { justify-content: space-between; }
.items-center { align-items: center; }
.items-end { align-items: flex-end; }
.items-start { align-items: flex-start; }
.text-muted { color: var(--wf-muted); }
.wf-canvas.dark .text-muted { color: #9A958A; }
.mono { font-family: var(--rr-font-mono); }

/* Hero frames: full viewport in flow mode, tall but bounded in lab mode */
.wf-hero-frame {
  min-height: 580px;
  position: relative;
}
body.mode-flow .wf-canvas--flow .wf-hero-frame {
  min-height: 100vh;
  height: 100vh;
}

/* Small responsive */
@media (max-width: 880px) {
  .wf-variant { grid-template-columns: 1fr; }
  .wf-variant-meta { position: static; padding-right: 0; }
  .wf-variant-letter { font-size: 40px; }
}

/* ============================================================
   Founder photography
   ============================================================ */

/* Variant A — tall 2-up stack inside the portrait column */
.wf-founder-tall {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 14px;
  aspect-ratio: 4 / 5;
  min-height: 380px;
}
.wf-founder-tall img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  border-radius: 6px;
  display: block;
}

/* Variant B — side-by-side founder cards with named caption strip */
.wf-founder-card {
  margin: 0;
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 6px;
  overflow: hidden;
  background: #F0F0F0;
}
.wf-founder-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  display: block;
}
/* Per-founder framing — center heads + align eyelines across the pair */
.wf-founder-card img[alt^="Ravi"],
.wf-founder-tall img[alt^="Ravi"] {
  object-position: 38% 30%;
}
.wf-founder-card img[alt^="Tushar"],
.wf-founder-tall img[alt^="Tushar"] {
  object-position: center 68%;
}
.wf-founder-card figcaption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  background: var(--rr-gold);
  color: #FFFFFF;
  padding: 6px 10px;
  border-radius: 3px;
  font-family: var(--rr-font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1;
}

/* Variant C — small composite thumbnail (two overlapped portraits) */
.wf-founder-thumb {
  width: 120px;
  height: 96px;
  flex: none;
  display: flex;
  align-items: center;
  position: relative;
}
.wf-founder-thumb img {
  width: 72px;
  height: 96px;
  border-radius: 6px;
  object-fit: cover;
  object-position: center 18%;
  border: 2px solid var(--wf-paper);
}
.wf-founder-thumb img:nth-child(2) {
  margin-left: -28px;
}

/* ============================================================
   Food bowls (circle-cropped, brand brochure style)
   ============================================================ */
.wf-bowl-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.wf-bowl {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 999px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 35% 28%, #F4F1E8 0%, #D8D3C4 55%, #A8A192 100%);
  box-shadow:
    inset 0 -10px 22px rgba(0,0,0,0.10),
    inset 0 4px 14px rgba(255,255,255,0.20);
}
.wf-bowl .wf-bowl-rim {
  position: absolute; inset: 0;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.06);
  pointer-events: none;
}
.wf-bowl .wf-bowl-food {
  position: absolute; inset: 14%;
  border-radius: 999px;
  background:
    radial-gradient(circle at 40% 35%, rgba(255,255,255,0.18) 0%, transparent 60%),
    repeating-radial-gradient(circle at 50% 50%, rgba(0,0,0,0.05) 0 3px, transparent 3px 8px),
    radial-gradient(circle at 50% 50%, #C9C2B0 0%, #968F7E 100%);
  box-shadow: inset 0 6px 14px rgba(0,0,0,0.18);
}
.wf-bowl.on-color {
  background:
    radial-gradient(circle at 35% 28%, #FFFFFF 0%, #F2EFE7 50%, #D8D3C4 100%);
  box-shadow:
    inset 0 -12px 26px rgba(0,0,0,0.18),
    inset 0 4px 14px rgba(255,255,255,0.32),
    0 8px 22px -10px rgba(0,0,0,0.45);
}
/* Real-photo bowls: when an image is provided, the photo IS the bowl —
   the supplied stills are already shot top-down in a wooden bowl on white, so we
   crop them to the circle and drop the placeholder rim/food shading. */
.wf-bowl.has-photo {
  background: transparent;
  box-shadow: 0 10px 26px -12px rgba(0,0,0,0.55);
}
.wf-bowl.has-photo .wf-bowl-rim { display: none; }
.wf-bowl-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 999px;
  object-fit: cover;
  display: block;
}
.wf-bowl-label {
  font-family: var(--rr-font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.72);
  text-align: center;
  line-height: 1.3;
  text-wrap: balance;
}
.wf-bowl-label.on-color { color: rgba(255,255,255,0.92); }

/* Horizontal row of bowls (Variant B panels) */
.wf-bowl-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: 360px;
}

/* 2×2 bowl grid (Variant A right side · Variant C left side) */
.wf-bowl-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 18px;
  max-width: 380px;
}

/* Reduce bowl label color when sitting on a light background (catalog band) */
.wf-cat-band .wf-bowl-label { color: rgba(255,255,255,0.65); }



.wf-pick-btn {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #FFF;
  border: 1px solid var(--wf-line);
  border-radius: 999px;
  font-family: var(--rr-font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--wf-ink);
  cursor: pointer;
  transition: all .2s var(--rr-ease);
}
.wf-pick-btn .dot {
  width: 9px; height: 9px; border-radius: 999px;
  border: 1.5px solid var(--wf-line-2);
  background: transparent;
  transition: all .2s;
}
.wf-pick-btn:hover { border-color: var(--wf-anno); color: var(--wf-anno); }
.wf-pick-btn.on { border-color: var(--rr-gold); background: var(--rr-gold); color: #FFF; }
.wf-pick-btn.on .dot { background: #FFF; border-color: #FFF; }

.wf-variant.picked .wf-canvas {
  box-shadow: 0 0 0 2px var(--rr-gold), 0 14px 30px -20px rgba(196,154,60,0.4);
  border-color: var(--rr-gold);
}
.wf-variant.picked .wf-variant-letter { color: var(--rr-gold); }
.wf-variant.picked .wf-variant-tag { color: var(--rr-gold); }

.wf-section-picked {
  display: inline-block;
  padding: 4px 10px;
  background: var(--rr-gold);
  color: #FFF;
  border-radius: 999px;
  font-family: var(--rr-font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
}

/* ---------- Flow bar (top-right docked) ---------- */
.wf-flowbar {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  font-family: var(--rr-font-sans);
}
.wf-flowbar-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: var(--wf-ink);
  color: #FAF5E9;
  border: 1px solid var(--wf-ink);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.005em;
  cursor: pointer;
  box-shadow: 0 8px 22px -12px rgba(17,17,16,0.4);
  transition: all .2s;
}
.wf-flowbar-toggle:hover { background: #1F1E1B; }
.wf-flowbar-toggle:disabled { opacity: 0.5; cursor: not-allowed; }
.wf-flowbar-toggle .dot {
  width: 8px; height: 8px; border-radius: 999px;
  background: var(--rr-gold);
  box-shadow: 0 0 12px var(--rr-gold);
}
.wf-flowbar-toggle .ct {
  font-family: var(--rr-font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  padding: 3px 7px;
  background: rgba(255,255,255,0.12);
  border-radius: 999px;
  margin-left: 4px;
}
.wf-flowbar.in-flow .wf-flowbar-toggle { background: var(--rr-gold); border-color: var(--rr-gold); color: #FFF; }
.wf-flowbar.in-flow .wf-flowbar-toggle:hover { background: #B0862E; }
.wf-flowbar.in-flow .wf-flowbar-toggle .dot { background: #FFF; box-shadow: 0 0 12px rgba(255,255,255,0.6); }

.wf-flowbar-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  background: rgba(244,242,238,0.92);
  backdrop-filter: blur(10px);
  border: 1px solid var(--wf-line);
  border-radius: 999px;
  font-family: var(--rr-font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--wf-ink);
  cursor: pointer;
}
.wf-flowbar.in-flow .wf-flowbar-trigger {
  background: rgba(17,17,16,0.92);
  color: #FAF5E9;
  border-color: #2A2926;
}

.wf-flowbar-panel {
  width: 320px;
  background: #FFF;
  border: 1px solid var(--wf-line);
  border-radius: 10px;
  padding: 14px 14px 10px;
  box-shadow: 0 18px 40px -20px rgba(17,17,16,0.28);
  max-height: 70vh;
  overflow-y: auto;
}
.wf-flowbar.in-flow .wf-flowbar-panel {
  background: #1A1A18; border-color: #2A2926; color: #FAF5E9;
}
.wf-flowbar-panel-head {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--rr-font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--wf-muted);
  padding-bottom: 10px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--wf-line);
  gap: 8px;
}
.wf-flowbar.in-flow .wf-flowbar-panel-head { border-bottom-color: #2A2926; color: #9A958A; }
.wf-flowbar-panel-head .flex { flex-wrap: wrap; justify-content: flex-end; gap: 4px; }

.wf-pill {
  font-family: var(--rr-font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 8px;
  background: var(--wf-paper);
  border: 1px solid var(--wf-line);
  border-radius: 999px;
  color: var(--wf-ink);
  cursor: pointer;
}
.wf-pill:hover { border-color: var(--wf-anno); color: var(--wf-anno); }
.wf-pill.danger:hover { border-color: #C44; color: #C44; }
.wf-flowbar.in-flow .wf-pill { background: #14140F; border-color: #2A2926; color: #FAF5E9; }

.wf-flowbar-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}
.wf-flowbar-list li {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--wf-rule);
  font-size: 13px;
}
.wf-flowbar.in-flow .wf-flowbar-list li { border-bottom-color: rgba(255,255,255,0.06); }
.wf-flowbar-list .num {
  font-family: var(--rr-font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--wf-muted);
}
.wf-flowbar-list .ttl { color: inherit; }
.wf-flowbar-list .opts { display: flex; gap: 4px; }
.wf-flowbar-list .opt {
  width: 26px; height: 26px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--wf-line);
  border-radius: 6px;
  background: #FFF;
  font-family: var(--rr-font-sans);
  font-weight: 700;
  font-size: 11px;
  color: var(--wf-ink);
  cursor: pointer;
  transition: all .15s;
}
.wf-flowbar.in-flow .wf-flowbar-list .opt { background: #111110; border-color: #2A2926; color: #FAF5E9; }
.wf-flowbar-list .opt:hover { border-color: var(--wf-anno); color: var(--wf-anno); }
.wf-flowbar-list .opt.on { background: var(--rr-gold); border-color: var(--rr-gold); color: #FFF; }

/* ============================================================
   Flow mode — page chrome becomes the actual marketing site
   ============================================================ */

body.mode-flow {
  background: #FFFFFF;
}
body.mode-flow .wf-stamp,
body.mode-flow .wf-section-head,
body.mode-flow .wf-section-note,
body.mode-flow .wf-variant-meta { display: none !important; }

body.mode-flow .wf-section {
  padding: 0 !important;
  border-bottom: none !important;
}
body.mode-flow .wf-flow-block { padding: 0; margin: 0; }

body.mode-flow .wf-canvas--flow {
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}
/* Dark sections MUST keep their dark surface in flow mode —
   otherwise white-on-white text disappears (Why Now, Modules, OS, etc.) */
body.mode-flow .wf-canvas--flow.dark {
  background: #111110;
  color: #FAF5E9;
}
body.mode-flow .wf-canvas--flow .corner,
body.mode-flow .wf-canvas--flow .wf-anno { display: none !important; }

/* Sensible section heights in flow mode:
   - Hero claims the full viewport (handled via .wf-hero-frame above)
   - Modules cinematic claims the full viewport
   - Everything else sizes naturally with comfortable padding
   This avoids huge empty whitespace below short sections (Rolo OS, Press, etc.). */
body.mode-flow .wf-canvas--flow .frame {
  min-height: 0;
  padding: 96px clamp(28px, 5vw, 72px);
}
body.mode-flow .wf-canvas--flow .frame.tight { min-height: 0; padding: 80px clamp(28px, 5vw, 72px); }
body.mode-flow .wf-canvas--flow .frame.wide  { min-height: 0; padding: 96px clamp(28px, 5vw, 72px); }

/* Cinematic 4-modules: in flow mode let it own the viewport */
body.mode-flow .wf-cinema { height: 100vh; min-height: 600px; }

/* Eyebrows feel bigger in flow mode — each section reads as a hero in its own right */
body.mode-flow .wf-eyebrow {
  font-size: 13px;
  letter-spacing: 0.24em;
}
body.mode-flow .wf-eyebrow::before { width: 32px; }

/* Bowls/photo placeholders look the same — left as wireframe still */

/* ==========================================================
   Compliance pills (Variant C — gold checkmark)
   Used in the Platform section's ComplianceStrip.
   ========================================================== */
.wf-compliance-pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 18px 10px 14px;
  border-radius: 999px;
  font-size: 13px; font-weight: 500;
  color: var(--wf-ink);
  background: #FFF8EB;
  border: 1px solid rgba(196, 154, 60, 0.32);
  letter-spacing: -0.005em;
}
/* "Compliance" eyebrow always takes its own row so the 5 pills wrap on the
   line below — same behavior on desktop and mobile. */
.wf-compliance-strip > .wf-eyebrow { flex: 0 0 100% !important; margin-bottom: 4px; }
.wf-compliance-pill .check {
  width: 16px; height: 16px;
  border-radius: 999px;
  background: var(--rr-gold);
  color: #FFF;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700; line-height: 1;
  flex: none;
}

/* ==========================================================
   Partners banner — dark marquee (between Press and Why Now)
   Single-row infinite scroll; logos in white chips so mixed
   backgrounds (transparent / white / red) read consistently.
   ========================================================== */
.wf-partners {
  background: #0B0B0C;
  border-top: 1px solid #2A2926;
  border-bottom: 1px solid #2A2926;
  padding: 44px 0;
  overflow: hidden;
  position: relative;
}
.wf-partners-eyebrow {
  font-family: var(--rr-font-mono); font-size: 11px; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase; color: #9A958A;
  text-align: center; margin-bottom: 32px;
}
.wf-partners-eyebrow::before, .wf-partners-eyebrow::after {
  content: ""; display: inline-block; width: 24px; height: 1px;
  background: currentColor; vertical-align: middle; margin: 0 14px;
}
.wf-partners-track {
  display: flex; gap: 28px; width: max-content;
  animation: wfPartnersMarquee 38s linear infinite;
}
.wf-partners:hover .wf-partners-track { animation-play-state: paused; }
@keyframes wfPartnersMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.wf-partners-chip {
  flex: none;
  height: 92px; width: 200px;
  display: flex; align-items: center; justify-content: center;
  background: #FFF;
  border: 1px solid #2A2926;
  border-radius: 12px;
  padding: 18px 24px;
  transition: box-shadow 220ms, transform 220ms;
}
.wf-partners-chip:hover { box-shadow: 0 8px 24px -12px rgba(0,0,0,0.5); transform: translateY(-2px); }
.wf-partners-chip img { max-height: 100%; max-width: 100%; width: auto; height: auto; object-fit: contain; display: block; }
.wf-partners::before, .wf-partners::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 80px; z-index: 2; pointer-events: none;
}
.wf-partners::before { left: 0; background: linear-gradient(90deg, #0B0B0C, transparent); }
.wf-partners::after  { right: 0; background: linear-gradient(-90deg, #0B0B0C, transparent); }
@media (max-width: 720px) {
  .wf-partners { padding: 32px 0; }
  .wf-partners-track { gap: 16px; }
  .wf-partners-chip { height: 72px; width: 150px; padding: 12px 16px; border-radius: 10px; }
  .wf-partners::before, .wf-partners::after { width: 48px; }
}

/* ==========================================================
   MOBILE RESPONSIVE LAYER (added for production)
   Uses [style*="grid-template-columns"] to override inline grids
   across all variants without editing JSX files. !important is
   required because inline styles otherwise win specificity.
   Desktop layout is unaffected — all rules sit inside @media.
   ========================================================== */

.wf-video-grid { grid-template-columns: repeat(3, 1fr); }

/* Fix D: portrait cards have aspect-ratio 9/16 but no explicit width;
   inside a flex column wrapper that's a CSS grid cell, this collapses to
   2x4px. Explicit width:100% lets aspect-ratio compute height properly.
   Applies on all viewports — desktop unchanged (cell is already 100% of grid col). */
.wf-video-grid .wf-photo.portrait { width: 100%; }

@media (max-width: 720px) {
  [style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  .wf-video-grid { grid-template-columns: repeat(2, 1fr) !important; }

  .frame, .frame.tight, .frame.wide {
    /* Top padding includes 60px nav clearance so headlines aren't covered
       by the floating nav pill (Fix B). Hero overrides this below since it
       centers content vertically anyway. */
    padding: 80px 18px 32px !important;
    min-height: auto !important;
  }
  .frame.wide { min-height: 70vh !important; }
  .wf-hero-frame { min-height: 88vh !important; padding: 0 !important; }

  .wf-variant { grid-template-columns: 1fr !important; gap: 16px; }
  .wf-variant-meta { position: static; padding-right: 0; }
  .wf-variant-letter { font-size: 40px; }

  .wf-btn { width: 100%; justify-content: center; }
  .wf-photo.portrait { max-width: 100%; margin-inline: auto; }

  body, html { overflow-x: hidden; }

  /* Fix A: floating nav 'Book a Demo' CTA was wrapping to 3 lines because
     the pill was being shrunk by flex layout. Force single line + a touch
     less padding on mobile so it stays compact. */
  .wf-floatnav { padding: 6px 6px 6px 14px; gap: 12px; }
  .wf-floatnav .cta {
    white-space: nowrap;
    flex-shrink: 0;
    padding: 8px 14px;
    font-size: 11px;
  }
  .wf-floatnav .brand .logo { height: 22px; }

  /* Fix E: CTA section (variant C) — stack the two buttons vertically on
     mobile so they don't wrap inside their narrow inline-flex parent. */
  .wf-cta-actions { flex-direction: column !important; gap: 12px !important; width: 100%; align-items: stretch !important; }
  .wf-cta-actions .wf-btn { width: 100%; }

  /* Fix 1: Compliance strip — break "Compliance" eyebrow to its own line
     so the 5 bullets all start fresh on the next row. !important needed
     because the JSX has inline `flex: none` (basis: auto) which wins specificity. */
  .wf-compliance-strip > .wf-eyebrow { flex: 0 0 100% !important; }

  /* Fix 3: "Built for" environment strip — same pattern as Compliance. */
  .wf-env-strip > .wf-eyebrow { flex: 0 0 100% !important; }
  /* Hide the inter-item vertical dividers on mobile (they look stranded
     when the eyebrow takes its own row). */
  .wf-env-strip > span[style*="width:1px"] { display: none; }

  /* Fix 4: Press attribution — drop "· TechNode Global, 2025" to its
     own line on mobile so the citation doesn't crowd the byline. */
  .wf-press-cite { display: block; margin-top: 4px; }

  /* Fix 6: Why Now insight cards — on mobile the 3 cards stack to a
     column. Drop the per-card inline left-border + 24px indent so labels
     (LABOUR / COST / TECH) align flush-left vertically. Add a top border
     instead so the cards still have visual separation. */
  .wf-insights-row > div {
    padding-left: 0 !important;
    border-left: none !important;
    border-top: 1px solid #2A2926;
    padding-top: 24px !important;
  }
  .wf-insights-row > div:first-child { border-top: none; padding-top: 0 !important; }

  /* Fix 2: Rolo OS capability cards — tighter padding + no minHeight on
     mobile so all 4 fit closer to one screen instead of 4 separate scrolls. */
  .wf-os-cap { padding: 16px !important; min-height: 0 !important; gap: 6px !important; }
  .wf-os-cap > div:nth-of-type(1) { font-size: 17px !important; }
  .wf-os-cap > div:nth-of-type(2) { font-size: 13px !important; line-height: 1.45 !important; }
  .wf-os-caps { gap: 10px !important; }

  /* Fix C: Modules cinema — full vertical rebuild for mobile.
     Stack meta → wordmark → bowls → foot in a tall scroll-able container.
     Take the stage out of absolute positioning so the cinema grows with content. */
  .wf-cinema {
    height: auto !important;
    min-height: 80vh;
  }
  .wf-cinema-stage {
    position: relative !important;
    inset: auto !important;
    padding: 80px 22px 32px !important;
    gap: 28px;
  }
  .wf-cinema-meta {
    flex-wrap: wrap;
    gap: 8px;
    font-size: 10px;
  }
  .wf-cinema-mid {
    grid-template-columns: 1fr !important;
    gap: 24px;
    padding: 0;
    align-items: start;
  }
  .wf-cinema-name {
    /* Smaller scale on mobile so "MicroGREEN" fits without bleeding right */
    font-size: clamp(44px, 13vw, 64px) !important;
    transform: none !important;
    white-space: nowrap;
  }
  .wf-cinema-bowls {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important;
  }
  .wf-cinema-foot {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
    align-items: start;
  }
  .wf-cinema-foot .speed .n { font-size: 40px; }
  .wf-cinema-foot .caps { grid-template-columns: 1fr 1fr !important; gap: 6px 16px; }
  /* Hide rail dots indicator on mobile — saves clutter, auto-cycle is still on */
  .wf-cinema-rail { display: none; }
}

@media (max-width: 420px) {
  .wf-video-grid { grid-template-columns: 1fr !important; }
}

@media (max-width: 480px) {
  .frame, .frame.tight, .frame.wide { padding: 72px 14px 28px !important; }
  .wf-hero-frame { padding: 0 !important; }
  .wf-h1 { font-size: 36px !important; line-height: 1.04 !important; }
  .wf-h2 { font-size: 28px !important; }
  .wf-eyebrow { font-size: 10px; letter-spacing: 0.18em; }
  .wf-cinema-stage { padding: 72px 16px 28px !important; }
  .wf-cinema-name { font-size: clamp(40px, 14vw, 56px) !important; }
}
