/* ════════════════════════════════════════
   Ritence - Global stylesheet
   Design tokens, reset, base typography.

   Brand: "Slate Navy" - a white/blue identity (gold fully retired). The brand
   colour is a deep slate-navy lifted from the dark indigo field of the Ritence
   logo; the logo mark, accents, fills and borders all derive from it. Display
   face is Cormorant Garamond (echoing the Palatino-style wordmark); body text
   is DM Sans, shared with the sibling projects.

   Standard theme: white surfaces + slate-navy (#1e3a5f) accents. This is the
   single site theme - the dev day/night/theme toggle was removed. Brand tints
   use rgba(var(--brand-rgb), α). A logo-background-navy alternative (#111a2b)
   is recorded in the project notes for future reference.

   Fonts are loaded via <link rel="preconnect"> + parallel-fetched stylesheet
   in basepage/head.html (and the dev preview's index.html), NOT a CSS @import,
   to avoid the render-blocking serial waterfall.
════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* ── Type families (shared) ── */
  --serif: 'Cormorant Garamond', 'Palatino Linotype', 'Book Antiqua', Georgia, serif;
  --sans:  'DM Sans', system-ui, -apple-system, sans-serif;
  --mono:  'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace; /* code / version tags (tech-stack) */

  /* ── Layout (shared) ── */
  --header-h: 76px;
  --maxw: 1200px;

  /* ── Brand: Slate Navy - the website's standard accent ── */
  --brand:        #1e3a5f;  /* slate-navy - accents, fills, borders */
  --brand-bright: #2c5c8f;  /* highlight / hover */
  --brand-deep:   #14283f;  /* gradient end / shadow */
  --brand-grad:   linear-gradient(135deg, #1e3a5f 0%, #2c5c8f 55%, #14283f 100%);
  --brand-rgb:    30, 58, 95;            /* for rgba() brand tints */
  --halo:         rgba(30, 58, 95, 0.14);
  --on-brand:     #ffffff;  /* text / icon sitting on a solid brand fill */
  --accent:       #1e4e79;  /* links / labels, a touch brighter than --brand */

  --bg:        #ffffff;   /* page base */
  --bg-2:      #f2f5f9;   /* cool off-white gradient tail */
  --surface:   #ffffff;   /* lifted panels / cards */
  --surface-2: #f4f7fb;   /* card hover / nested surface */
  --surface-grad-end: #eef3f8;             /* card/panel gradient tail */
  --panel-soft: rgba(30, 58, 95, 0.05);    /* translucent banded fill */
  --card-shadow: 0 18px 40px rgba(16, 33, 53, 0.12);

  --hairline:        rgba(30, 58, 95, 0.16);
  --hairline-strong: rgba(30, 58, 95, 0.34);
  --hairline-cool:   rgba(20, 30, 45, 0.10);

  --cream:  #0e1b2a;  /* display headings / wordmark - deep navy-ink */
  --text:   #2a3340;  /* primary body copy (AA on white) */
  --muted:  #5c6675;  /* secondary copy / labels */

  --body-bg:
    radial-gradient(ellipse 90% 60% at 50% -10%, #fbfdff 0%, transparent 60%),
    linear-gradient(165deg, #ffffff 0%, #f2f5f9 100%);
  --header-bg:          rgba(255, 255, 255, 0.72);
  --header-bg-scrolled: rgba(255, 255, 255, 0.92);
  --header-bg-mobile:   rgba(255, 255, 255, 0.98);
  --footer-bg:
    radial-gradient(ellipse 60% 120% at 50% 0%, rgba(30, 58, 95, 0.06) 0%, transparent 60%),
    #f4f7fb;
  --hero-halo: rgba(30, 58, 95, 0.14);
}

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--sans);
}

/* Smooth in-page anchor scrolling, offset so the sticky header (--header-h)
   never covers the target section's heading when jumping to /#products etc. */
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  background: var(--body-bg);
  background-attachment: fixed;
  color: var(--text);
  transition: color 0.3s ease;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.6;
}

/* <main> hosts the stack of homepage sections and fills the space between
   header and footer. Layout-neutral - each section owns its own padding /
   max-width / alignment. */
main { flex: 1; }

/* Shared inner-width wrapper used by every section. */
.r-container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: clamp(1.25rem, 5vw, 4rem);
  padding-right: clamp(1.25rem, 5vw, 4rem);
}

/* ── Display headings ── */
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--cream);
  line-height: 1.12;
  letter-spacing: 0.01em;
}

/* Brand convention: the key word of a major heading is rendered in the brand
   blue (the wordmark accent). Wrap it in <em> - no italic, brand text-fill. */
h1 em, h2 em, h3 em {
  font-style: normal;
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--brand);
}

a { color: var(--accent); }

/* ── Reusable brand button ── */
.r-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.85rem 1.6rem;
  border-radius: 2px;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.2s ease, border-color 0.2s ease;
}
.r-btn-primary {
  background: var(--brand-grad);
  color: var(--on-brand);
  box-shadow: 0 0 0 1px rgba(var(--brand-rgb), 0.2), 0 8px 24px rgba(var(--brand-rgb), 0.14);
}
.r-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(var(--brand-rgb), 0.45), 0 12px 30px rgba(var(--brand-rgb), 0.28);
}
.r-btn-ghost {
  background: transparent;
  color: var(--cream);
  border-color: var(--hairline-strong);
}
.r-btn-ghost:hover {
  border-color: var(--brand);
  color: var(--accent);
  background: rgba(var(--brand-rgb), 0.06);
}

/* ── Eyebrow / section label ── */
.r-eyebrow {
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.r-eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--accent);
  opacity: 0.6;
}
/* Centered modifier - drops the leading rule, centers the label (used by the
   centered Values / What-We-Do variations). */
.r-eyebrow.center { justify-content: center; }
.r-eyebrow.center::before { display: none; }

/* UX baseline - global keyboard-focus indicator (only on keyboard focus). */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Visually-hidden utility for screen-reader-only content. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Skip-to-main-content link. Hidden offscreen; snaps in on keyboard focus. */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 9999;
  padding: 0.6rem 1rem;
  background: var(--brand);
  color: var(--on-brand);
  text-decoration: none;
  font-family: var(--sans);
  font-size: 0.95rem;
  border-radius: 0 0 4px 0;
}
.skip-link:focus { left: 0; }

/* ── Reduced motion (UX-03) ──
   Neutralise the scroll-reveal animation for motion-sensitive users. The
   per-component `.reveal` base states (opacity/transform) and the JS `.in-view`
   toggle are all overridden so content shows immediately, with no fade/slide. */
@media (prefers-reduced-motion: reduce) {
  .js .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ════════════════════════════════════════
   Ritence - Header V1
   Sticky top bar: logo (gold mark + wordmark), primary nav, CTA, mobile drawer.
   Depends on design tokens in src/styles/main.css.
════════════════════════════════════════ */

#site-header {
  position: sticky;
  top: 0;
  z-index: 300;
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hairline);
  transition: background 0.3s ease, border-color 0.3s ease;
}
/* Solidify on scroll (toggled by header.js). */
#site-header.scrolled {
  background: var(--header-bg-scrolled);
  border-bottom-color: var(--hairline-strong);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: var(--header-h);
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 4rem);
}

/* ── Logo (orbital mark + wordmark) ── */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  flex-shrink: 0;
}
/* Ritence wordmark - typographic, theme-coloured (navy ink on the white page). */
.logo-wordmark {
  font-family: var(--serif);
  font-size: 2.05rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--cream);
  line-height: 1;
  white-space: nowrap;
  padding-left: 0.13em; /* optical balance for the tracked caps */
}

/* ── Primary nav ── */
.header-nav { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2.4rem); }
.nav-inner { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2.4rem); }
.nav-inner a {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  padding: 0.35rem 0;
  transition: color 0.2s ease;
}
.nav-inner a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1.5px;
  background: var(--brand-grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav-inner a:hover,
.nav-inner a[aria-current="page"] { color: var(--cream); }
.nav-inner a:hover::after,
.nav-inner a[aria-current="page"]::after { transform: scaleX(1); }

/* ── Right actions ── */
.header-actions { display: flex; align-items: center; gap: 1rem; }
.header-actions .r-btn { padding: 0.6rem 1.15rem; }

/* ── Hamburger (mobile) ── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid var(--hairline);
  border-radius: 3px;
  cursor: pointer;
  padding: 0 9px;
  flex-shrink: 0;
}
.hamburger span {
  display: block;
  height: 1.5px;
  width: 100%;
  background: var(--cream);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ════════════════════════════════════════
   MOBILE
════════════════════════════════════════ */
@media (max-width: 820px) {
  .hamburger { display: flex; }

  .logo-wordmark { font-size: 1.6rem; }

  .header-nav {
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--header-bg-mobile);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--hairline-strong);
    padding: 0 clamp(1.25rem, 5vw, 4rem);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
  }
  .header-nav.mob-open {
    max-height: 420px;
    padding-top: 0.75rem;
    padding-bottom: 1.5rem;
  }
  .nav-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    width: 100%;
  }
  .nav-inner a {
    width: 100%;
    padding: 0.85rem 0;
    font-size: 0.95rem;
    border-bottom: 1px solid var(--hairline);
  }
  .nav-inner a::after { display: none; }
  .header-nav .r-btn { margin-top: 1.1rem; width: 100%; justify-content: center; }
}

/* ════════════════════════════════════════
   Ritence - Footer V1
   Brand block + link columns + legal row.
   Self-contained DARK band (independent of the page theme) so the gold
   ritence.svg lockup sits on matching dark ground.
════════════════════════════════════════ */

#site-footer {
  /* Self-contained DARK NAVY band that anchors the page, independent of the
     light page theme. Theme tokens are re-scoped here so every rule below
     adapts at once: light ink, cream wordmark, soft-blue social hovers. */
  --text:            #cdd6e3;   /* light body text on dark navy */
  --muted:           #93a1b5;   /* dim links / secondary copy */
  --cream:           #eef2f8;   /* wordmark + link hover (near-white) */
  --accent:          #aebccf;   /* section labels */
  --brand:           #5b8fc7;   /* soft blue - social-icon hover border */
  --brand-rgb:       91, 143, 199;
  --hairline:        rgba(180, 200, 224, 0.14);
  --hairline-strong: rgba(180, 200, 224, 0.26);

  background:
    radial-gradient(ellipse 70% 120% at 50% 0%, rgba(91, 143, 199, 0.10) 0%, transparent 55%),
    linear-gradient(180deg, #14283f 0%, #0b1626 100%);
  color: var(--text);
  border-top: 1px solid var(--hairline);
  margin-top: 4rem;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1fr;
  gap: 3rem;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 5rem) clamp(1.25rem, 5vw, 4rem) 2.5rem;
}

/* ── Brand block ── */
.footer-brand .logo { margin-bottom: 1.1rem; }
.footer-brand .logo-wordmark {
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--cream);
  line-height: 1;
}
.footer-brand-desc {
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--muted);
  max-width: 300px;
}
.footer-socials { display: flex; gap: 0.6rem; margin-top: 1.6rem; }
.social-icon {
  width: 36px; height: 36px;
  border: 1px solid var(--hairline);
  border-radius: 3px;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted);
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.social-icon:hover {
  border-color: var(--brand);
  color: var(--accent);
  background: rgba(var(--brand-rgb), 0.06);
}
.social-icon svg { width: 16px; height: 16px; }

/* ── Link columns ── */
.footer-col h4 {
  font-family: var(--sans);
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.2rem;
  font-weight: 600;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.7rem; }
.footer-col ul li a {
  font-size: 0.9rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-col ul li a:hover { color: var(--cream); }

/* ── Legal row ── */
.footer-bottom {
  border-top: 1px solid var(--hairline);
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem clamp(1.25rem, 5vw, 4rem);
  flex-wrap: wrap;
}
.footer-bottom p { font-size: 0.78rem; color: var(--muted); opacity: 0.8; }
.footer-bottom-links { display: flex; gap: 1.6rem; flex-wrap: wrap; }
.footer-bottom-links a {
  font-size: 0.78rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-bottom-links a:hover { color: var(--cream); }

@media (max-width: 900px) {
  .footer-main { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-brand-desc { max-width: 100%; }
}
@media (max-width: 560px) {
  .footer-main { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
}

/* ════════════════════════════════════════
   Ritence - Hero V1
   Full-bleed cosmic hero: orbital mark backdrop, headline, subtext, CTAs.
════════════════════════════════════════ */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(5rem, 12vh, 9rem) 0 clamp(4rem, 9vh, 7rem);
}

/* Orbital glow backdrop, echoing the logo's halo + dashed orbit rings. */
.hero-backdrop {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.hero-backdrop::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -8%;
  width: 540px;
  height: 540px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--hero-halo) 0%, transparent 62%);
  filter: blur(6px);
}
.hero-orbit {
  position: absolute;
  top: 50%;
  right: 4%;
  transform: translateY(-50%);
  width: clamp(260px, 34vw, 420px);
  height: auto;
  /* Same mark geometry, themed navy on the light page; faint shadow for subtle depth. */
  filter: drop-shadow(0 14px 36px rgba(30, 58, 95, 0.12));
}

.hero .r-container { position: relative; z-index: 1; }

.hero-inner { max-width: 760px; }

.hero-eyebrow { margin-bottom: 1.6rem; }

.hero h1 {
  font-size: clamp(2.6rem, 6.5vw, 4.8rem);
  font-weight: 500;
  line-height: 1.05;
  margin-bottom: 1.6rem;
}

.hero-sub {
  font-size: clamp(1.05rem, 1.9vw, 1.3rem);
  line-height: 1.65;
  color: var(--muted);
  max-width: 56ch;
  margin-bottom: 2.4rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* Trust strip under the CTAs */
.hero-meta {
  margin-top: 3.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.5rem, 4vw, 3rem);
  padding-top: 2rem;
  border-top: 1px solid var(--hairline);
}
.hero-stat .num {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 600;
  color: var(--cream);
  line-height: 1;
}
.hero-stat .label {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (max-width: 820px) {
  /* Tuck the dark orb toward the edge and soften it so it never fights the
     stacked hero text for contrast on small screens. */
  .hero-orbit { right: -22%; opacity: 0.45; }
}

/* ════════════════════════════════════════
   Ritence - Hero V2 ("Navy Split")
   Full-bleed brand gradient + grid texture, left content + CTAs.
════════════════════════════════════════ */

.hero-navy {
  position: relative; overflow: hidden;
  background: var(--brand-grad); color: var(--on-brand);
  padding: clamp(4.5rem, 11vw, 7.5rem) 0;
}
.hero-navy-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(ellipse 55% 75% at 82% 22%, rgba(255, 255, 255, 0.12) 0%, transparent 70%),
    radial-gradient(ellipse 45% 65% at 12% 88%, rgba(255, 255, 255, 0.05) 0%, transparent 60%),
    repeating-linear-gradient(0deg,  rgba(255, 255, 255, 0.025) 0px, rgba(255, 255, 255, 0.025) 1px, transparent 1px, transparent 46px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.025) 0px, rgba(255, 255, 255, 0.025) 1px, transparent 1px, transparent 46px);
}
.hero-navy .r-container { position: relative; z-index: 1; }
.hero-navy-inner { max-width: 720px; }
.hero-navy-eyebrow {
  font-size: 0.7rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72); font-weight: 600; margin-bottom: 1.3rem;
  display: inline-flex; align-items: center; gap: 0.6rem;
}
.hero-navy-eyebrow::before { content: ''; width: 28px; height: 1px; background: rgba(255, 255, 255, 0.5); }
.hero-navy h1 {
  font-family: var(--serif); font-size: clamp(2.6rem, 6.4vw, 4.6rem); font-weight: 500;
  line-height: 1.08; color: var(--on-brand); margin-bottom: 1.5rem; letter-spacing: -0.01em;
}
.hero-navy h1 em { font-style: normal; background: none; -webkit-text-fill-color: #9cc4ea; color: #9cc4ea; }
.hero-navy-sub { font-size: clamp(1.05rem, 1.9vw, 1.25rem); line-height: 1.7; color: rgba(255, 255, 255, 0.8); max-width: 54ch; margin-bottom: 2.4rem; }
.hero-navy-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* On-navy button overrides for contrast */
.hero-navy .r-btn-primary { background: #ffffff; color: var(--brand); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22); }
.hero-navy .r-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.32); }
.hero-navy .r-btn-ghost { color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.hero-navy .r-btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.1); color: #fff; }

/* ════════════════════════════════════════
   Ritence - Hero V3 ("Centered Spotlight")
   Navy, centered, orbital brand mark glowing behind the text.
════════════════════════════════════════ */

.hero-center {
  position: relative; overflow: hidden;
  background: var(--brand-grad); color: var(--on-brand);
  padding: clamp(5rem, 13vw, 9rem) 0; text-align: center;
}
.hero-center-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(ellipse 60% 80% at 50% 30%, rgba(255, 255, 255, 0.10) 0%, transparent 65%),
    repeating-linear-gradient(0deg,  rgba(255, 255, 255, 0.02) 0px, rgba(255, 255, 255, 0.02) 1px, transparent 1px, transparent 48px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.02) 0px, rgba(255, 255, 255, 0.02) 1px, transparent 1px, transparent 48px);
}
.hero-center-orbit {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: clamp(360px, 50vw, 620px); height: auto; opacity: 0.5; pointer-events: none;
}
.hero-center .r-container { position: relative; z-index: 1; }
.hero-center-inner { max-width: 680px; margin: 0 auto; }
.hero-center-eyebrow {
  font-size: 0.7rem; letter-spacing: 0.26em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.74); font-weight: 600; margin-bottom: 1.4rem;
}
.hero-center h1 {
  font-family: var(--serif); font-size: clamp(2.8rem, 7vw, 5rem); font-weight: 500;
  line-height: 1.06; color: var(--on-brand); margin-bottom: 1.5rem; letter-spacing: -0.01em;
}
.hero-center h1 em { font-style: normal; background: none; -webkit-text-fill-color: #9cc4ea; color: #9cc4ea; }
.hero-center-sub { font-size: clamp(1.05rem, 1.9vw, 1.25rem); line-height: 1.7; color: rgba(255, 255, 255, 0.82); max-width: 52ch; margin: 0 auto 2.4rem; }
.hero-center-actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

.hero-center .r-btn-primary { background: #ffffff; color: var(--brand); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22); }
.hero-center .r-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.32); }
.hero-center .r-btn-ghost { color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.hero-center .r-btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.1); color: #fff; }

/* ════════════════════════════════════════
   Ritence - Hero V4 ("Editorial Split Card")
   Light text column beside a navy brand panel with the mark + brand chips.
════════════════════════════════════════ */

.hero-split { position: relative; padding: clamp(4rem, 9vh, 7rem) 0; }
.hero-split .r-container { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero-split-eyebrow { margin-bottom: 1.5rem; }
.hero-split h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 500; line-height: 1.08; margin-bottom: 1.4rem; }
.hero-split-sub { font-size: clamp(1rem, 1.7vw, 1.18rem); line-height: 1.7; color: var(--muted); max-width: 48ch; margin-bottom: 2.2rem; }
.hero-split-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* Brand panel (right) - navy card with orbital mark + brand chips */
.hero-panel {
  position: relative; overflow: hidden;
  background: var(--brand-grad); color: var(--on-brand);
  border-radius: 6px; padding: clamp(2rem, 4vw, 3rem);
  box-shadow: var(--card-shadow); min-height: 360px;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.hero-panel-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(ellipse 60% 70% at 75% 20%, rgba(255, 255, 255, 0.12) 0%, transparent 65%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.025) 0px, rgba(255, 255, 255, 0.025) 1px, transparent 1px, transparent 42px);
}
.hero-panel-orbit { position: absolute; top: -8%; right: -10%; width: 300px; height: auto; opacity: 0.55; pointer-events: none; }
.hero-panel-content { position: relative; z-index: 1; }
.hero-panel-kicker { font-size: 0.68rem; letter-spacing: 0.24em; text-transform: uppercase; color: rgba(255, 255, 255, 0.7); margin-bottom: 0.9rem; }
.hero-panel-title { font-family: var(--serif); font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 600; line-height: 1.2; margin-bottom: 1.2rem; color: #fff; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.hero-chip {
  font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.04em;
  color: #eaf1f9; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 0.4rem 0.8rem; border-radius: 999px; text-decoration: none; transition: background 0.2s ease, border-color 0.2s ease;
}
.hero-chip:hover { background: rgba(255, 255, 255, 0.18); border-color: rgba(255, 255, 255, 0.4); }

@media (max-width: 880px) {
  .hero-split .r-container { grid-template-columns: 1fr; }
  .hero-panel { min-height: 300px; }
}

/* ════════════════════════════════════════
   Ritence - What We Do V1
   Two-column: narrative copy + a bordered "principles" panel.
════════════════════════════════════════ */

.about { padding: clamp(4rem, 9vh, 7rem) 0; }

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.about-copy .r-eyebrow { margin-bottom: 1.4rem; }
.about-copy h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1.4rem;
}
.about-copy p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 1.1rem;
}
.about-copy p strong { color: var(--text); font-weight: 600; }

/* Principles panel */
.about-panel {
  background: linear-gradient(160deg, var(--surface) 0%, var(--surface-grad-end) 100%);
  border: 1px solid var(--hairline);
  border-radius: 6px;
  padding: clamp(1.75rem, 3vw, 2.5rem);
  position: relative;
  overflow: hidden;
}
.about-panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--brand-grad);
}
.about-panel h3 {
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 1.5rem;
}
.about-principles { list-style: none; }
.about-principles li {
  display: flex;
  gap: 0.9rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--hairline);
}
.about-principles li:last-child { border-bottom: none; }
.about-principles .dot {
  flex-shrink: 0;
  width: 8px; height: 8px;
  margin-top: 0.5rem;
  border-radius: 50%;
  background: var(--brand-grad);
  box-shadow: 0 0 8px rgba(var(--brand-rgb), 0.5);
}
.about-principles .ptitle {
  display: block;
  color: var(--cream);
  font-weight: 500;
  font-size: 0.98rem;
  margin-bottom: 0.15rem;
}
.about-principles .pdesc {
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.55;
}

@media (max-width: 820px) {
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* ════════════════════════════════════════
   Ritence - What We Do V2
   Centered intro + three numbered "how we work" step cards.
════════════════════════════════════════ */

.wwd { padding: clamp(3.5rem, 8vh, 6rem) 0; }

.wwd-center { text-align: center; max-width: 680px; margin: 0 auto 3rem; }
.wwd-center .r-eyebrow { margin-bottom: 1.2rem; justify-content: center; }
.wwd-center h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1rem; }
.wwd-center p { color: var(--muted); font-size: 1.05rem; line-height: 1.7; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.2rem, 2.5vw, 1.8rem);
}
.step {
  background: linear-gradient(160deg, var(--surface) 0%, var(--surface-grad-end) 100%);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 2rem;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.step:hover { transform: translateY(-4px); border-color: var(--hairline-strong); box-shadow: var(--card-shadow); }
.step .num {
  font-family: var(--serif);
  font-size: 2.2rem;
  font-weight: 600;
  background: var(--brand-grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--brand);
  line-height: 1;
  margin-bottom: 0.9rem;
}
.step h4 { font-family: var(--serif); font-size: 1.35rem; color: var(--cream); margin-bottom: 0.4rem; }
.step p { font-size: 0.92rem; line-height: 1.6; color: var(--muted); }

@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

/* ════════════════════════════════════════
   Ritence - What We Do V3
   Short intro beside a three-stage "Design / Build / Run" flow.
════════════════════════════════════════ */

.wwd { padding: clamp(3.5rem, 8vh, 6rem) 0; }

.wwd-v3 .wwd-intro {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: end;
  margin-bottom: 2.8rem;
}
.wwd-v3 .wwd-intro .r-eyebrow { margin-bottom: 1.2rem; }
.wwd-v3 .wwd-intro h2 { font-size: clamp(2rem, 4vw, 3rem); }
.wwd-v3 .wwd-intro p { color: var(--muted); font-size: 1.02rem; line-height: 1.75; }

.flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.2rem, 2.5vw, 1.8rem);
  position: relative;
}
.flow-item {
  position: relative;
  padding: 1.9rem;
  border: 1px solid var(--hairline);
  border-radius: 10px;
  background: var(--panel-soft);
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}
.flow-item:hover { transform: translateY(-4px); border-color: var(--hairline-strong); background: var(--surface); }
.flow-icon {
  width: 46px; height: 46px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(var(--brand-rgb), 0.1);
  border: 1px solid var(--hairline-strong);
  color: var(--accent);
  margin-bottom: 1.1rem;
}
.flow-icon svg { width: 22px; height: 22px; }
.flow-kicker { font-size: 0.64rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); font-weight: 700; margin-bottom: 0.4rem; }
.flow-item h3 { font-family: var(--serif); font-size: 1.4rem; color: var(--cream); margin-bottom: 0.45rem; }
.flow-item p { font-size: 0.9rem; line-height: 1.6; color: var(--muted); }

@media (max-width: 820px) {
  .wwd-v3 .wwd-intro { grid-template-columns: 1fr; gap: 1.5rem; }
  .flow { grid-template-columns: 1fr; }
}

/* ════════════════════════════════════════
   Ritence - Values V1
   Icon grid of company values, on a banded surface
   (migrated from the former Features V1).
════════════════════════════════════════ */

.values {
  padding: clamp(4rem, 9vh, 7rem) 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  background:
    radial-gradient(ellipse 50% 80% at 50% 0%, rgba(var(--brand-rgb), 0.04) 0%, transparent 55%);
}

.values .values-head { text-align: center; max-width: 640px; margin: 0 auto 3.5rem; }
.values .values-head .r-eyebrow { margin-bottom: 1.2rem; }
.values .values-head h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1rem; }
.values .values-head p { color: var(--muted); font-size: 1.05rem; line-height: 1.7; }

.vgrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.feature {
  padding: 1.9rem;
  border: 1px solid var(--hairline);
  border-radius: 6px;
  background: var(--panel-soft);
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s ease;
}
.feature:hover {
  border-color: var(--hairline-strong);
  background: var(--surface);
  transform: translateY(-3px);
}
.feature-icon {
  width: 48px; height: 48px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.3rem;
  background: rgba(var(--brand-rgb), 0.1);
  border: 1px solid var(--hairline-strong);
  color: var(--accent);
}
.feature-icon svg { width: 22px; height: 22px; }
.feature h3 {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--cream);
  margin-bottom: 0.55rem;
}
.feature p {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--muted);
}

/* Scroll-reveal: opacity/translate flip when .in-view is added by utils/reveal.js.
   Falls back to fully visible if JS doesn't run (the base state is visible).
   Shared site-wide helper - bundled here as the successor to features.css. */
.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.in-view { opacity: 1; transform: none; }

/* ════════════════════════════════════════
   Ritence - Values V2
   Four larger numbered 2x2 cards with serif numerals + a brand edge.
   Own .values-v2 root so it coexists with Values V1 / V3 in one bundle.
════════════════════════════════════════ */

.values-v2 { padding: clamp(3.5rem, 8vh, 6rem) 0; }

.values-v2 .values-head { text-align: center; max-width: 640px; margin: 0 auto 3.2rem; }
.values-v2 .values-head .r-eyebrow { margin-bottom: 1.2rem; }
.values-v2 .values-head h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1rem; }
.values-v2 .values-head p { color: var(--muted); font-size: 1.05rem; line-height: 1.7; }

.vgrid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.2rem, 2.5vw, 1.8rem); }
.vcard {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.4rem;
  align-items: start;
  padding: 2.2rem;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  background: linear-gradient(160deg, var(--surface) 0%, var(--surface-grad-end) 100%);
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.vcard::before { content: ''; position: absolute; top: 0; left: 0; bottom: 0; width: 3px; background: var(--brand-grad); }
.vcard:hover { transform: translateY(-4px); border-color: var(--hairline-strong); box-shadow: var(--card-shadow); }
.vcard .vnum { font-family: var(--serif); font-size: 2.6rem; font-weight: 600; line-height: 1; color: rgba(var(--brand-rgb), 0.28); }
.vcard h3 { font-family: var(--serif); font-size: 1.5rem; color: var(--cream); margin-bottom: 0.4rem; display: flex; align-items: center; gap: 0.6rem; }
.vcard h3 svg { width: 20px; height: 20px; color: var(--accent); }
.vcard p { font-size: 0.95rem; line-height: 1.7; color: var(--muted); }

@media (max-width: 760px) { .vgrid2 { grid-template-columns: 1fr; } }

/* ════════════════════════════════════════
   Ritence - Values V3
   Values as quiet editorial list rows (index / name / description).
   Own .values-v3 root so it coexists with Values V1 / V2 in one bundle.
════════════════════════════════════════ */

.values-v3 { padding: clamp(3.5rem, 8vh, 6rem) 0; }

.values-v3 .values-head { max-width: 640px; margin: 0 0 3.2rem; }
.values-v3 .values-head .r-eyebrow { margin-bottom: 1.2rem; }
.values-v3 .values-head h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1rem; }

.vlist { border-top: 1px solid var(--hairline); }
.vrow {
  display: grid;
  grid-template-columns: auto 1fr 2fr;
  gap: clamp(1.2rem, 4vw, 3rem);
  align-items: baseline;
  padding: 1.8rem 0;
  border-bottom: 1px solid var(--hairline);
  transition: padding-left 0.3s ease;
}
.vrow:hover { padding-left: 0.6rem; }
.vrow .vindex { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; color: rgba(var(--brand-rgb), 0.4); min-width: 2.4ch; }
.vrow .vname { font-family: var(--serif); font-size: 1.7rem; color: var(--cream); display: flex; align-items: center; gap: 0.7rem; }
.vrow .vname svg { width: 22px; height: 22px; color: var(--accent); }
.vrow .vtext { font-size: 1rem; line-height: 1.7; color: var(--muted); }

@media (max-width: 760px) {
  .vrow { grid-template-columns: auto 1fr; gap: 1rem 1.4rem; }
  .vrow .vtext { grid-column: 1 / -1; }
}

/* ════════════════════════════════════════
   Ritence - Brands V1 (live deck + coming-soon)
   Themed, tilted brand cards in a "Live now" deck plus an "On the horizon"
   coming-soon card of the same size. Own .brands-deck root so it coexists with
   the migrated grid design (Brands V2, .brands) in one bundle.
════════════════════════════════════════ */

.brands-deck { padding: clamp(3.5rem, 8vh, 6rem) 0; }
.brands-deck .brands-head { margin-bottom: 2.4rem; }
.brands-deck .brands-head .r-eyebrow { margin-bottom: 1rem; }
.brands-deck .brands-head h2 { font-size: clamp(2rem, 4vw, 3rem); max-width: 20ch; }
.brands-deck .brands-head p { color: var(--muted); max-width: 48ch; font-size: 1rem; line-height: 1.7; margin-top: 0.8rem; }

.brands-deck .row-label {
  font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted);
  margin: 2.4rem 0 1.3rem; display: flex; align-items: center; gap: 0.8rem;
}
.brands-deck .row-label::after { content: ''; flex: 1; height: 1px; background: var(--hairline); }

/* Centered flex so 1, 2 or 3 cards keep the SAME fixed size (the old 3-col
   track) and sit centered; >3 wrap to a centered next row. Both rows share the
   identical track so a coming-soon card matches a live card exactly. */
.brands-deck { --deck-gap: clamp(1.4rem, 3vw, 2.2rem); }
.brands-deck .deck,
.brands-deck .soon-row { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--deck-gap); align-items: stretch; }

.brands-deck .card {
  /* -1px gives sub-pixel rounding headroom so 3 cards always pack per row
     (they sum to exactly 100% otherwise and can wrap); justify-content:center
     absorbs the tiny slack. */
  flex: 0 0 calc((100% - 2 * var(--deck-gap)) / 3 - 1px);
  max-width: calc((100% - 2 * var(--deck-gap)) / 3 - 1px);
  min-height: 330px; border-radius: 14px; padding: 2.2rem; position: relative; overflow: hidden;
  transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.45s, border-color 0.3s, background 0.3s;
}
@media (max-width: 980px) {
  .brands-deck .card { flex-basis: calc((100% - var(--deck-gap)) / 2 - 1px); max-width: calc((100% - var(--deck-gap)) / 2 - 1px); }
}
@media (max-width: 640px) {
  .brands-deck .card { flex-basis: 100%; max-width: 100%; }
}

/* ── live brand card (themed, clickable) ── */
.bc { display: flex; flex-direction: column; justify-content: space-between; text-decoration: none; background: var(--bg); color: var(--ink); box-shadow: 0 18px 44px rgba(16, 33, 53, 0.20); }
/* Stretched-link overlay makes the whole card clickable without wrapping block
   content in an <a> (which Sling's HTL parser would auto-close). */
.bc-cover { position: absolute; inset: 0; z-index: 2; border-radius: inherit; }
.bc::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 80% 0%, rgba(255, 255, 255, 0.16), transparent 60%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 44px);
}
.bc-mono { position: relative; width: 48px; height: 48px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-weight: 700; font-size: 1.05rem; letter-spacing: 0.06em; color: var(--ink); background: var(--chip); border: 1px solid var(--chipbd); }
.bc-top { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.bc-live { font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink); opacity: 0.85; display: inline-flex; align-items: center; gap: 0.45rem; font-weight: 600; font-family: var(--sans); }
.bc-live::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--accent2); box-shadow: 0 0 8px var(--accent2); animation: livePulse 2.4s ease-in-out infinite; }
@keyframes livePulse { 0%, 100% { opacity: 0.5; } 50% { opacity: 1; } }
.bc-body { position: relative; margin-top: 1.6rem; }
.bc-wordmark { font-family: var(--serif); font-weight: 600; font-size: clamp(1.8rem, 3vw, 2.35rem); line-height: 1.05; color: var(--ink); margin-bottom: 0.5rem; }
.bc-tag { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--soft); font-weight: 600; font-family: var(--sans); }
.bc-desc { margin-top: 1rem; font-size: 0.9rem; line-height: 1.6; color: var(--soft); max-width: 34ch; font-family: var(--sans); }
.bc-visit { position: relative; margin-top: 1.6rem; display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--sans); font-size: 0.76rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); }
.bc-visit svg { width: 15px; height: 15px; transition: transform 0.3s; }
.bc:hover .bc-visit svg { transform: translate(4px, -4px); }

/* Brand palettes - lifted from each brand's own design tokens.
   TMM stays a placeholder until that brand is real. */
/* TOR (The Online Reader): charcoal-black + warm gold (variables.css :root,
   --bg #0a0a0a / --accent #d4b57a / --text #f0ece2). */
.bc-tor { --bg: linear-gradient(158deg, #1a160f 0%, #0a0a0a 100%); --ink: #f0ece2; --soft: #b6ad99; --chip: rgba(212, 181, 122, 0.16); --chipbd: rgba(212, 181, 122, 0.42); --accent2: #d4b57a; }
/* TSI (The Sunset Ink): dark sunset gradient ending in TSI's real rust-red
   accent (main.css --accent #c0392b), warm paper text (--paper #f5f0e8). */
.bc-tsi { --bg: linear-gradient(155deg, #3a201a 0%, #7a2b22 55%, #c0392b 100%); --ink: #f5f0e8; --soft: #e8c9b0; --chip: rgba(245, 240, 232, 0.14); --chipbd: rgba(245, 240, 232, 0.34); --accent2: #e9a23c; }
.bc-tmm { --bg: linear-gradient(158deg, #2b2150 0%, #48397f 100%); --ink: #efeaff; --soft: #bcb0e6; --chip: rgba(255, 255, 255, 0.13); --chipbd: rgba(255, 255, 255, 0.28); --accent2: #b9a7ff; }

/* ── coming-soon card (Ritence theme, dashed, animated) - SAME dimensions via .card ── */
.soon { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; background: rgba(255, 255, 255, 0.5); border: 2px dashed var(--hairline-strong); }
.soon:hover { border-color: var(--brand); background: rgba(var(--brand-rgb), 0.04); }
.soon-plus { width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 2px dashed var(--hairline-strong); color: var(--brand); margin-bottom: 1.1rem; animation: plusPulse 3s ease-in-out infinite; }
.soon-plus svg { width: 28px; height: 28px; }
.soon:hover .soon-plus { border-color: var(--brand); border-style: solid; }
@keyframes plusPulse { 0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(var(--brand-rgb), 0.18); } 50% { transform: scale(1.06); box-shadow: 0 0 0 10px rgba(var(--brand-rgb), 0); } }
.soon-text {
  font-family: var(--serif); font-weight: 600; font-size: 1.65rem; letter-spacing: 0.02em;
  background: linear-gradient(90deg, var(--muted) 0%, var(--brand-bright) 50%, var(--muted) 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
  animation: soonShimmer 3.4s linear infinite;
}
@keyframes soonShimmer { to { background-position: -220% 0; } }
.soon-sub { margin-top: 0.5rem; font-size: 0.82rem; color: var(--muted); font-family: var(--sans); max-width: 26ch; }
@media (prefers-reduced-motion: reduce) {
  .soon-plus, .soon-text, .bc-live::before { animation: none; }
  .soon-text { background: none; -webkit-text-fill-color: var(--brand-bright); color: var(--brand-bright); }
}

/* alternating tilt on every card (live + soon), straighten + lift on hover */
.brands-deck .tilt .card { transform: rotate(-3deg); }
.brands-deck .tilt .card:nth-child(even) { transform: rotate(3deg); }
.brands-deck .tilt .card:hover { transform: rotate(0) translateY(-10px) scale(1.02); box-shadow: 0 28px 60px rgba(16, 33, 53, 0.30); z-index: 2; }

/* ════════════════════════════════════════
   Ritence - Brands V2
   Card grid showcasing the Ritence portfolio (TOR, TSI, ...).
   The original Brands design, migrated under cards/ (was V3).
   .brands-head is scoped under .brands so it doesn't bleed into the
   deck variation's (.brands-deck) header.
════════════════════════════════════════ */

.brands { padding: clamp(4rem, 9vh, 7rem) 0; }

.brands .brands-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}
.brands .brands-head .r-eyebrow { margin-bottom: 1.2rem; }
.brands .brands-head h2 { font-size: clamp(2rem, 4vw, 3rem); max-width: 18ch; }
.brands .brands-head p { color: var(--muted); max-width: 40ch; font-size: 1rem; line-height: 1.7; }

.brands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.brand-card {
  position: relative;
  display: flex;
  flex-direction: column;
  /* Fixed min-height so a lone card in the last row (e.g. a single coming-soon
     card) matches the height of the cards in a full row above it. */
  min-height: 330px;
  background: linear-gradient(165deg, var(--surface) 0%, var(--surface-grad-end) 100%);
  border: 1px solid var(--hairline);
  border-radius: 6px;
  padding: 2rem;
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.brand-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 50% at 80% 0%, rgba(var(--brand-rgb), 0.12) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.brand-card:hover {
  transform: translateY(-4px);
  border-color: var(--hairline-strong);
  box-shadow: var(--card-shadow);
}
.brand-card:hover::after { opacity: 1; }

/* Stretched-link overlay makes the whole card clickable without wrapping block
   content in an <a> (which Sling's HTL parser would auto-close). */
.brand-cover { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }

.brand-badge {
  width: 46px; height: 46px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  color: var(--on-brand);
  background: var(--brand-grad);
  margin-bottom: 1.5rem;
}
.brand-card h3 {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--cream);
  margin-bottom: 0.3rem;
}
.brand-card .brand-tag {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.9rem;
}
.brand-card p {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--muted);
  flex: 1;
  margin-bottom: 1.4rem;
}
.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.brand-link svg { width: 15px; height: 15px; transition: transform 0.25s ease; }
.brand-card:hover .brand-link svg { transform: translateX(4px); }

/* "More coming" placeholder card */
.brand-card.is-soon {
  background: transparent;
  border-style: dashed;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.brand-card.is-soon:hover { transform: none; box-shadow: none; }
.brand-card.is-soon p { flex: none; margin: 0; }

/* ════════════════════════════════════════
   Ritence - Products V1
   Equal-height product card grid: icon + status pill, name/tag/description,
   and the associated-brand chip(s) pinned to the bottom of each card.
════════════════════════════════════════ */

.products { padding: clamp(3.5rem, 8vh, 6rem) 0; }

.prod-head { margin-bottom: 2.8rem; }
.prod-head .r-eyebrow { margin-bottom: 1rem; }
.prod-head h2 { font-size: clamp(2rem, 4vw, 3rem); max-width: 20ch; }
.prod-head p { color: var(--muted); max-width: 52ch; font-size: 1rem; line-height: 1.7; margin-top: 0.8rem; }

/* one clean grid - one card per product, equal heights, no empty slots */
.pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.4rem, 2.6vw, 2rem); align-items: stretch; }
@media (max-width: 940px) { .pgrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .pgrid { grid-template-columns: 1fr; } }

/* ── product card ── */
.pc {
  position: relative; display: flex; flex-direction: column; height: 100%; min-height: 340px;
  background: linear-gradient(165deg, var(--surface) 0%, var(--surface-grad-end) 100%);
  border: 1px solid var(--hairline); border-radius: 14px; padding: 2rem; overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.pc::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 70% 50% at 80% 0%, rgba(var(--brand-rgb), 0.10) 0%, transparent 60%);
  opacity: 0; transition: opacity 0.3s;
}
.pc:hover { transform: translateY(-5px); border-color: var(--hairline-strong); box-shadow: var(--card-shadow); }
.pc:hover::after { opacity: 1; }

/* Stretched-link overlay makes the whole live card clickable (like the brands
   deck). It links to the product's primary brand URL (derived in ProductsModel).
   In-progress placeholder cards have no overlay, so they stay non-clickable. */
.pc-cover { position: absolute; inset: 0; z-index: 2; border-radius: inherit; }

.pc-top { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.pc-icon { width: 52px; height: 52px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--brand-grad); color: #fff; flex: none; }
.pc-icon svg { width: 26px; height: 26px; }

/* status pills */
.pc-status {
  font-size: 0.6rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 700;
  display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.34rem 0.7rem; border-radius: 999px; border: 1px solid;
}
.pc-status .dot { width: 7px; height: 7px; border-radius: 50%; }
.pc-status.is-live { color: #1f7a52; border-color: rgba(31, 122, 82, 0.3); background: rgba(31, 122, 82, 0.08); }
.pc-status.is-live .dot { background: #2fae7a; box-shadow: 0 0 8px #2fae7a; animation: prodPulse 2.4s ease-in-out infinite; }
.pc-status.is-soon { color: var(--brand-bright); border-color: rgba(var(--brand-rgb), 0.3); background: rgba(var(--brand-rgb), 0.06); }
.pc-status.is-soon .dot { background: var(--brand-bright); animation: prodPulse 2.4s ease-in-out infinite; }
@keyframes prodPulse { 0%, 100% { opacity: 0.4; } 50% { opacity: 1; } }

.pc-name { position: relative; font-family: var(--serif); font-weight: 600; font-size: 1.65rem; color: var(--cream); margin-bottom: 0.3rem; }
.pc-tag { position: relative; font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin-bottom: 0.9rem; }
.pc-desc { position: relative; font-size: 0.92rem; line-height: 1.6; color: var(--muted); }

/* associated-brand info section - pinned to the bottom of every card */
.pc-assoc { position: relative; margin-top: auto; padding-top: 1.3rem; border-top: 1px solid var(--hairline); }
.pc-assoc-label { font-size: 0.6rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: 0.75rem; display: block; }
.bchips { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.bchip {
  display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.34rem 0.7rem 0.34rem 0.36rem; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--hairline); font-family: var(--sans); font-size: 0.76rem; font-weight: 600;
  color: var(--text); text-decoration: none; transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.bchip:hover { border-color: var(--hairline-strong); background: #fff; transform: translateY(-1px); }
.bchip .sw { width: 22px; height: 22px; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 0.56rem; font-weight: 700; color: #fff; flex: none; }
/* Brand swatches - match each brand's real palette (and the brands deck cards).
   TMM stays a placeholder until that brand is real. */
.sw-tor { background: linear-gradient(158deg, #1a160f, #0a0a0a); }            /* TOR: charcoal + gold */
.sw-tsi { background: linear-gradient(155deg, #3a201a, #7a2b22 55%, #c0392b); } /* TSI: sunset rust-red */
.sw-tmm { background: linear-gradient(158deg, #2b2150, #48397f); }

/* in-progress placeholder card - no product details, just a "+" + message.
   Keeps the .pc footprint (min-height) so it matches the live cards. */
.pc.pc-soon {
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.7rem;
  border-style: dashed;
  border-color: var(--hairline-strong);
  background: rgba(255, 255, 255, 0.55);
}
.pc.pc-soon::after { display: none; }
.pc-soon-plus {
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 2px dashed var(--hairline-strong); color: var(--brand);
}
.pc-soon-plus svg { width: 26px; height: 26px; }
.pc-soon-text { font-family: var(--serif); font-weight: 600; font-size: 1.45rem; color: var(--brand-bright); }
.pc-soon-sub { font-size: 0.85rem; color: var(--muted); max-width: 22ch; }
@media (prefers-reduced-motion: reduce) { .pc-status .dot { animation: none; } }

/* ════════════════════════════════════════
   Ritence - Tech Stack V1 ("Architecture request-flow")
   The request path from the edge down to the data layer, hop by hop.
   The shared .tech / .tech-head section header is repeated per version so each
   tech-stack variation is self-contained in the bundle.
════════════════════════════════════════ */

.tech { padding: clamp(3.5rem, 8vh, 6rem) 0; }
.tech-head { max-width: 680px; margin: 0 auto 3rem; text-align: center; }
.tech-head.left { text-align: left; margin-left: 0; }
.tech-head .r-eyebrow { margin-bottom: 1.1rem; }
.tech-head h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 0.9rem; }
.tech-head p { color: var(--muted); font-size: 1.02rem; line-height: 1.7; }

.arch { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; align-items: stretch; }
.arch-node {
  position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 1.2rem; align-items: center;
  background: linear-gradient(160deg, var(--surface) 0%, var(--surface-grad-end) 100%); border: 1px solid var(--hairline);
  border-radius: 12px; padding: 1.25rem 1.5rem; transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.arch-node:hover { transform: translateY(-3px); border-color: var(--hairline-strong); box-shadow: var(--card-shadow); }
.arch-ico { width: 46px; height: 46px; border-radius: 11px; display: flex; align-items: center; justify-content: center; background: var(--brand-grad); color: #fff; flex: none; }
.arch-ico svg { width: 23px; height: 23px; }
.arch-layer { font-size: 0.58rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); font-weight: 700; margin-bottom: 0.2rem; }
.arch-name { font-family: var(--serif); font-size: 1.25rem; color: var(--cream); line-height: 1.2; }
.arch-note { font-size: 0.84rem; color: var(--muted); margin-top: 0.15rem; }
.arch-note code { font-family: var(--mono); font-size: 0.92em; }
.arch-tag { font-family: var(--mono); font-size: 0.68rem; color: var(--brand-bright); background: rgba(var(--brand-rgb), 0.08); border: 1px solid var(--hairline); padding: 0.3rem 0.55rem; border-radius: 6px; white-space: nowrap; }
.arch-link { display: flex; justify-content: center; padding: 0.45rem 0; }
.arch-link svg { width: 20px; height: 20px; color: var(--hairline-strong); }

@media (max-width: 600px) { .arch-node { grid-template-columns: auto 1fr; } .arch-tag { display: none; } }

/* ════════════════════════════════════════
   Ritence - Tech Stack V2 ("Stack by category")
   Every technology grouped by layer, with versions.
════════════════════════════════════════ */

.tech { padding: clamp(3.5rem, 8vh, 6rem) 0; }
.tech-head { max-width: 680px; margin: 0 auto 3rem; text-align: center; }
.tech-head.left { text-align: left; margin-left: 0; }
.tech-head .r-eyebrow { margin-bottom: 1.1rem; }
.tech-head h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 0.9rem; }
.tech-head p { color: var(--muted); font-size: 1.02rem; line-height: 1.7; }

.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.cat {
  background: linear-gradient(160deg, var(--surface) 0%, var(--surface-grad-end) 100%); border: 1px solid var(--hairline);
  border-radius: 12px; padding: 1.8rem; position: relative; overflow: hidden; transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.cat::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--brand-grad); }
.cat:hover { transform: translateY(-4px); border-color: var(--hairline-strong); box-shadow: var(--card-shadow); }
.cat-top { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 1.2rem; }
.cat-ico { width: 40px; height: 40px; border-radius: 9px; display: flex; align-items: center; justify-content: center; background: rgba(var(--brand-rgb), 0.1); border: 1px solid var(--hairline-strong); color: var(--accent); flex: none; }
.cat-ico svg { width: 20px; height: 20px; }
.cat h4 { font-family: var(--serif); font-size: 1.3rem; color: var(--cream); }
.pills { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pill {
  display: inline-flex; align-items: baseline; gap: 0.4rem; font-family: var(--sans); font-size: 0.78rem; font-weight: 600; color: var(--text);
  background: var(--surface-2); border: 1px solid var(--hairline); padding: 0.36rem 0.65rem; border-radius: 7px; transition: border-color 0.2s, background 0.2s;
}
.pill:hover { border-color: var(--hairline-strong); background: #fff; }
.pill .v { font-family: var(--mono); font-size: 0.68rem; font-weight: 500; color: var(--muted); }

/* ════════════════════════════════════════
   Ritence - Tech Stack V3 ("API integrations")
   External services wired in, with a clear integrated vs planned status.
════════════════════════════════════════ */

.tech { padding: clamp(3.5rem, 8vh, 6rem) 0; }
.tech-head { max-width: 680px; margin: 0 auto 3rem; text-align: center; }
.tech-head.left { text-align: left; margin-left: 0; }
.tech-head .r-eyebrow { margin-bottom: 1.1rem; }
.tech-head h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 0.9rem; }
.tech-head p { color: var(--muted); font-size: 1.02rem; line-height: 1.7; }

/* status pill (shared with other tech-stack variations) */
.status { font-size: 0.58rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700; display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.32rem 0.65rem; border-radius: 999px; border: 1px solid; white-space: nowrap; }
.status .dot { width: 6px; height: 6px; border-radius: 50%; }
.status.live { color: #1f7a52; border-color: rgba(31, 122, 82, 0.3); background: rgba(31, 122, 82, 0.08); }
.status.live .dot { background: #2fae7a; box-shadow: 0 0 8px #2fae7a; animation: techPulse 2.4s ease-in-out infinite; }
.status.plan { color: var(--brand-bright); border-color: rgba(var(--brand-rgb), 0.3); background: rgba(var(--brand-rgb), 0.06); }
.status.plan .dot { background: var(--brand-bright); }
@keyframes techPulse { 0%, 100% { opacity: 0.4; } 50% { opacity: 1; } }

.int-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.int {
  position: relative; display: flex; flex-direction: column; background: linear-gradient(160deg, var(--surface) 0%, var(--surface-grad-end) 100%);
  border: 1px solid var(--hairline); border-radius: 12px; padding: 1.8rem; min-height: 210px; transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.int:hover { transform: translateY(-4px); border-color: var(--hairline-strong); box-shadow: var(--card-shadow); }
.int-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.1rem; }
.int-ico { width: 46px; height: 46px; border-radius: 11px; display: flex; align-items: center; justify-content: center; background: var(--brand-grad); color: #fff; flex: none; }
.int-ico svg { width: 23px; height: 23px; }
.int h4 { font-family: var(--serif); font-size: 1.4rem; color: var(--cream); margin-bottom: 0.15rem; }
.int .role { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.04em; color: var(--accent); margin-bottom: 0.7rem; }
.int p { font-size: 0.9rem; line-height: 1.6; color: var(--muted); }
.int p code { font-family: var(--mono); font-size: 0.92em; }

@media (prefers-reduced-motion: reduce) { .status .dot { animation: none; } }

/* ════════════════════════════════════════
   Ritence - Tech Stack V4 ("Integration list rows")
   Scannable single-line entries: icon, service, what it does, status.
════════════════════════════════════════ */

.tech { padding: clamp(3.5rem, 8vh, 6rem) 0; }
.tech-head { max-width: 680px; margin: 0 auto 3rem; text-align: center; }
.tech-head.left { text-align: left; margin-left: 0; }
.tech-head .r-eyebrow { margin-bottom: 1.1rem; }
.tech-head h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 0.9rem; }
.tech-head p { color: var(--muted); font-size: 1.02rem; line-height: 1.7; }

/* status pill + icon helpers (shared with other tech-stack variations) */
.status { font-size: 0.58rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700; display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.32rem 0.65rem; border-radius: 999px; border: 1px solid; white-space: nowrap; }
.status .dot { width: 6px; height: 6px; border-radius: 50%; }
.status.live { color: #1f7a52; border-color: rgba(31, 122, 82, 0.3); background: rgba(31, 122, 82, 0.08); }
.status.live .dot { background: #2fae7a; box-shadow: 0 0 8px #2fae7a; animation: techPulse 2.4s ease-in-out infinite; }
.status.plan { color: var(--brand-bright); border-color: rgba(var(--brand-rgb), 0.3); background: rgba(var(--brand-rgb), 0.06); }
.status.plan .dot { background: var(--brand-bright); }
@keyframes techPulse { 0%, 100% { opacity: 0.4; } 50% { opacity: 1; } }
.ico-grad { background: var(--brand-grad); color: #fff; }
.ico-soft { background: rgba(var(--brand-rgb), 0.1); border: 1px solid var(--hairline-strong); color: var(--accent); }

.irlist { border-top: 1px solid var(--hairline); }
.ir {
  display: grid; grid-template-columns: auto 1.4fr 2fr auto; gap: clamp(1rem, 2.5vw, 1.8rem); align-items: center;
  padding: 1.4rem 0.2rem; border-bottom: 1px solid var(--hairline); transition: padding-left 0.25s, background 0.25s;
}
.ir:hover { padding-left: 0.8rem; background: rgba(var(--brand-rgb), 0.03); }
.ir-ico { width: 46px; height: 46px; border-radius: 11px; display: flex; align-items: center; justify-content: center; flex: none; }
.ir-ico svg { width: 23px; height: 23px; }
.ir-name { font-family: var(--serif); font-size: 1.3rem; color: var(--cream); line-height: 1.15; }
.ir-role { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.04em; color: var(--accent); margin-top: 0.2rem; }
.ir-desc { font-size: 0.9rem; line-height: 1.55; color: var(--muted); }

@media (max-width: 820px) {
  .ir { grid-template-columns: auto 1fr auto; gap: 1rem 0.9rem; }
  .ir-desc { grid-column: 1 / -1; grid-row: 2; }
}
@media (prefers-reduced-motion: reduce) { .status .dot { animation: none; } }

/* ════════════════════════════════════════
   Ritence - Tech Stack V5 ("Status columns / kanban")
   Integrations grouped by Integrated vs Planned, like a board.
════════════════════════════════════════ */

.tech { padding: clamp(3.5rem, 8vh, 6rem) 0; }
.tech-head { max-width: 680px; margin: 0 auto 3rem; text-align: center; }
.tech-head.left { text-align: left; margin-left: 0; }
.tech-head .r-eyebrow { margin-bottom: 1.1rem; }
.tech-head h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 0.9rem; }
.tech-head p { color: var(--muted); font-size: 1.02rem; line-height: 1.7; }

.ico-grad { background: var(--brand-grad); color: #fff; }
.ico-soft { background: rgba(var(--brand-rgb), 0.1); border: 1px solid var(--hairline-strong); color: var(--accent); }

.cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.4rem, 3vw, 2rem); align-items: start; }
.col { background: linear-gradient(160deg, var(--surface) 0%, var(--surface-grad-end) 100%); border: 1px solid var(--hairline); border-radius: 14px; padding: 1.6rem; }
.col-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.2rem; padding-bottom: 1rem; border-bottom: 1px solid var(--hairline); }
.col-head .h { font-family: var(--sans); font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 700; color: var(--cream); }
.col-count { font-family: var(--mono); font-size: 0.74rem; color: var(--muted); }
.tile { display: flex; align-items: center; gap: 0.9rem; padding: 0.9rem; border: 1px solid var(--hairline); border-radius: 10px; background: var(--surface-2); margin-bottom: 0.7rem; transition: transform 0.25s, border-color 0.25s; }
.tile:last-child { margin-bottom: 0; }
.tile:hover { transform: translateX(3px); border-color: var(--hairline-strong); }
.tile-ico { width: 38px; height: 38px; border-radius: 9px; display: flex; align-items: center; justify-content: center; flex: none; }
.tile-ico svg { width: 19px; height: 19px; }
.tile .t-name { font-weight: 600; font-size: 0.96rem; color: var(--cream); }
.tile .t-role { font-family: var(--mono); font-size: 0.66rem; color: var(--muted); margin-top: 0.1rem; }

@media (max-width: 760px) { .cols { grid-template-columns: 1fr; } }

/* ════════════════════════════════════════
   Ritence - Tech Stack V6 ("Connections hub / radial")
   The Ritence core at center, integrations orbiting on spokes.
════════════════════════════════════════ */

.tech { padding: clamp(3.5rem, 8vh, 6rem) 0; }
.tech-head { max-width: 680px; margin: 0 auto 3rem; text-align: center; }
.tech-head.left { text-align: left; margin-left: 0; }
.tech-head .r-eyebrow { margin-bottom: 1.1rem; }
.tech-head h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 0.9rem; }
.tech-head p { color: var(--muted); font-size: 1.02rem; line-height: 1.7; }

.hub-wrap { max-width: 900px; margin: 0 auto; }
.hub-wrap svg { width: 100%; height: auto; display: block; }
.hub-core { fill: url(#hubGrad); }
.hub-line { stroke: var(--hairline-strong); stroke-width: 1.4; }
.hub-line.dash { stroke-dasharray: 4 5; }
.hub-node { fill: #fff; stroke: #2fae7a; stroke-width: 2; }
.hub-node.plan { stroke: var(--brand-bright); stroke-dasharray: 4 4; }
.hub-mono { font-family: var(--serif); font-weight: 700; fill: var(--brand); font-size: 13px; text-anchor: middle; }
.hub-label { font-family: var(--sans); font-weight: 600; fill: var(--cream); font-size: 13px; text-anchor: middle; }
.hub-sub { font-family: var(--mono); fill: var(--muted); font-size: 10px; text-anchor: middle; }
.hub-core-t { font-family: var(--serif); font-weight: 700; fill: #fff; font-size: 18px; letter-spacing: 2px; text-anchor: middle; }
.hub-core-s { font-family: var(--sans); fill: rgba(255, 255, 255, 0.75); font-size: 10px; letter-spacing: 2px; text-anchor: middle; text-transform: uppercase; }
.hub-legend { display: flex; justify-content: center; gap: 1.6rem; margin-top: 1.5rem; flex-wrap: wrap; }
.hub-legend span { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.78rem; color: var(--muted); }
.hub-legend i { width: 12px; height: 12px; border-radius: 50%; border: 2px solid #2fae7a; }
.hub-legend i.plan { border-color: var(--brand-bright); border-style: dashed; }

/* ════════════════════════════════════════
   Ritence - Tech Stack V7 ("Dense badge wall")
   The whole stack + integrations in one dense, dot-coded view.
════════════════════════════════════════ */

.tech { padding: clamp(3.5rem, 8vh, 6rem) 0; }
.tech-head { max-width: 680px; margin: 0 auto 3rem; text-align: center; }
.tech-head.left { text-align: left; margin-left: 0; }
.tech-head .r-eyebrow { margin-bottom: 1.1rem; }
.tech-head h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 0.9rem; }
.tech-head p { color: var(--muted); font-size: 1.02rem; line-height: 1.7; }

.wall-group { margin-bottom: 1.8rem; }
.wall-group:last-child { margin-bottom: 0; }
.wall-cat { font-size: 0.64rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); font-weight: 700; margin-bottom: 0.9rem; display: flex; align-items: center; gap: 0.7rem; }
.wall-cat::after { content: ''; flex: 1; height: 1px; background: var(--hairline); }
.wall { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.badge {
  display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--sans); font-size: 0.82rem; font-weight: 600; color: var(--text);
  background: var(--surface); border: 1px solid var(--hairline); padding: 0.5rem 0.8rem; border-radius: 8px; transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.badge:hover { border-color: var(--hairline-strong); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(16, 33, 53, 0.08); }
.badge .bdot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.badge .bdot.use { background: #2fae7a; box-shadow: 0 0 7px #2fae7a; }
.badge .bdot.plan { background: var(--brand-bright); }
.badge .bv { font-family: var(--mono); font-size: 0.68rem; font-weight: 500; color: var(--muted); }
.wall-legend { display: flex; gap: 1.6rem; margin-top: 2rem; flex-wrap: wrap; }
.wall-legend span { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.76rem; color: var(--muted); }
.wall-legend i { width: 9px; height: 9px; border-radius: 50%; }
.wall-legend i.use { background: #2fae7a; }
.wall-legend i.plan { background: var(--brand-bright); }

/* ════════════════════════════════════════
   Ritence - Banner V1 (themed hero, left-aligned)

   Full-bleed slate-navy hero with a subtle radial-glow + faint grid overlay,
   left-aligned content (mirrors the TSI banner), eyebrow + serif title (key
   word in a light accent) + description. Theme background uses the brand
   gradient from src/styles/main.css. The centered variant lives in v2.

   Lives as one of many sibling components inside a page container, so it owns
   its own vertical padding. Tokens come from src/styles/main.css.
════════════════════════════════════════ */

.banner {
  position: relative;
  overflow: hidden;
  background: var(--brand-grad);
  color: var(--on-brand);
  padding: clamp(3.5rem, 9vw, 6.5rem) clamp(1.25rem, 8vw, 8rem);
  display: flex;
  align-items: flex-end;
  min-height: 280px;
  text-align: left;
}

/* Theme texture: two soft radial highlights + a faint white grid, all on the
   navy gradient. Pure decoration, hidden from assistive tech via aria-hidden. */
.banner-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(ellipse 55% 75% at 80% 25%, rgba(255, 255, 255, 0.10) 0%, transparent 70%),
    radial-gradient(ellipse 45% 65% at 15% 85%, rgba(255, 255, 255, 0.05) 0%, transparent 60%),
    repeating-linear-gradient(0deg,  rgba(255, 255, 255, 0.025) 0px, rgba(255, 255, 255, 0.025) 1px, transparent 1px, transparent 46px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.025) 0px, rgba(255, 255, 255, 0.025) 1px, transparent 1px, transparent 46px);
}

.banner-inner {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0;
}

.banner-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 500;
  margin: 0 0 1.1rem;
}

.banner-title {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--on-brand);
  margin: 0 0 1.1rem;
}

/* Override the global `h1 em` rule: it gradient-clips the navy brand colour
   into the text, which is invisible on this navy background. Use a light
   slate-blue accent fill instead - same "key word stands out" intent. */
.banner-title em {
  font-style: normal;
  background: none;
  -webkit-text-fill-color: #9cc4ea;
  color: #9cc4ea;
}

.banner-desc {
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.7;
  max-width: 520px;
  margin: 0;
}

/* ════════════════════════════════════════
   Ritence - Banner V2 (themed hero, centered)

   Full-bleed slate-navy hero with a subtle radial-glow + faint grid overlay,
   centred content, eyebrow + serif title (key word in a light accent) +
   description. This is the original v1 centered design preserved as v2; v1 now
   carries a left-aligned layout. Own .banner-v2-* namespace so both coexist.
   Tokens come from src/styles/main.css.
════════════════════════════════════════ */

.banner-v2 {
  position: relative;
  overflow: hidden;
  background: var(--brand-grad);
  color: var(--on-brand);
  padding: clamp(3.5rem, 9vw, 6.5rem) clamp(1.25rem, 6vw, 3rem);
  text-align: center;
}

/* Theme texture: two soft radial highlights + a faint white grid, all on the
   navy gradient. Pure decoration, hidden from assistive tech via aria-hidden. */
.banner-v2-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(ellipse 55% 75% at 80% 25%, rgba(255, 255, 255, 0.10) 0%, transparent 70%),
    radial-gradient(ellipse 45% 65% at 15% 85%, rgba(255, 255, 255, 0.05) 0%, transparent 60%),
    repeating-linear-gradient(0deg,  rgba(255, 255, 255, 0.025) 0px, rgba(255, 255, 255, 0.025) 1px, transparent 1px, transparent 46px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.025) 0px, rgba(255, 255, 255, 0.025) 1px, transparent 1px, transparent 46px);
}

.banner-v2-inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
}

.banner-v2-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 500;
  margin: 0 0 1.1rem;
}

.banner-v2-title {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--on-brand);
  margin: 0 0 1.1rem;
}

/* Override the global `h1 em` rule: it gradient-clips the navy brand colour
   into the text, which is invisible on this navy background. Use a light
   slate-blue accent fill instead - same "key word stands out" intent. */
.banner-v2-title em {
  font-style: normal;
  background: none;
  -webkit-text-fill-color: #9cc4ea;
  color: #9cc4ea;
}

.banner-v2-desc {
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.7;
  max-width: 520px;
  margin: 0 auto;
}

/* ════════════════════════════════════════
   Ritence - Static prose pages
   Shared styles for everything under
   apps/ritence/components/content/ritence/*
   (privacy-policy, cookie-policy, terms-and-conditions).
   Tokens come from src/styles/main.css.
════════════════════════════════════════ */

/* ── Prose body wrapper ── */
.prose-body {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.25rem, 5vw, 2rem);
  font-family: var(--sans);
  line-height: 1.75;
  color: var(--text);
}

.prose-body p { margin: 0 0 1rem; }
.prose-body p:last-child { margin-bottom: 0; }
.prose-body strong { font-weight: 600; color: var(--text); }

.prose-body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.prose-body a:hover { text-decoration-thickness: 2px; }

.prose-body ul,
.prose-body ol { padding-left: 1.5rem; margin: 0 0 1rem; }
.prose-body li { margin-bottom: 0.45rem; }

.prose-body code {
  font-family: 'SFMono-Regular', Menlo, Consolas, monospace;
  font-size: 0.88em;
  padding: 0.1em 0.35em;
  background: var(--panel-soft);
  border-radius: 3px;
}

/* ── Page header (eyebrow + title + last-updated) ── */
.prose-head { margin-bottom: 2.5rem; }
.prose-head .r-eyebrow { margin-bottom: 1rem; }
.prose-head h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.1;
  color: var(--cream);
  margin: 0 0 1rem;
}

/* ── "Last updated" line ── */
.prose-meta {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--hairline);
}

/* ── Lead paragraph (sits above the first section) ── */
.prose-lead {
  font-size: clamp(1rem, 1.8vw, 1.1rem);
  line-height: 1.75;
  color: var(--text);
  margin: 0 0 2rem;
}

/* ── Section headings inside prose ── */
.prose-section { margin-top: 2.5rem; }
.prose-section h2 {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.4vw, 1.55rem);
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 0.75rem;
  color: var(--cream);
}
.prose-section h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 1.25rem 0 0.4rem;
  color: var(--text);
}

/* ── Highlight callout box ── */
.prose-highlight {
  background: var(--panel-soft);
  border-left: 3px solid var(--brand);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text);
  border-radius: 0 5px 5px 0;
}

/* ── Team cards (about-us body) ── */
.team-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.85rem;
  margin-top: 0.5rem;
}

.team-card {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  text-decoration: none;
  color: var(--text);
  background: var(--surface);
  transition: border-color 0.15s, background 0.15s;
}
.team-card:hover {
  border-color: var(--brand);
  background: var(--panel-soft);
  text-decoration: none;
}

.team-avatar {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  background: var(--panel-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.04em;
}

.team-meta { display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; flex: 1; }
.team-name { font-size: 0.95rem; font-weight: 600; color: var(--text); }
.team-role { font-size: 0.78rem; color: var(--muted); }
.team-linkedin {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: var(--muted);
}
.team-card:hover .team-linkedin { color: var(--brand); }

/* ── Cookie / data tables ── */
.prose-table-wrap { overflow-x: auto; margin: 0 0 1.5rem; }
.prose-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  border: 1px solid var(--hairline);
  background: var(--surface);
}
.prose-table th,
.prose-table td {
  text-align: left;
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid var(--hairline);
  vertical-align: top;
}
.prose-table th {
  font-weight: 600;
  background: var(--panel-soft);
  white-space: nowrap;
  color: var(--text);
}
.prose-table tr:last-child td { border-bottom: none; }

/* ════════════════════════════════════════
   Ritence - Contact Us V1
   Two-column: contact-info aside + enquiry form card. Slate-navy on white,
   shares the --brand / --hairline / --surface tokens from styles/main.css.
════════════════════════════════════════ */

.contact { padding: clamp(4rem, 9vh, 7rem) 0; }

.contact-head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.contact-head .r-eyebrow { margin-bottom: 1.2rem; }
.contact-head h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1.1rem;
}
.contact-lead {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--muted);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

/* ── Aside: response card + reach-us ── */
.contact-aside { display: flex; flex-direction: column; gap: 1.5rem; }

.cf-response {
  display: flex;
  gap: 0.9rem;
  padding: 1.25rem 1.4rem;
  background: linear-gradient(160deg, var(--surface) 0%, var(--surface-grad-end) 100%);
  border: 1px solid var(--hairline);
  border-radius: 6px;
}
.cf-response-dot {
  flex: none;
  width: 0.6rem; height: 0.6rem;
  margin-top: 0.45rem;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 4px rgba(var(--brand-rgb), 0.14);
}
.cf-response-title { display: block; font-weight: 600; color: var(--text); margin-bottom: 0.3rem; }
.cf-response-p { font-size: 0.92rem; line-height: 1.65; color: var(--muted); margin: 0; }

.cf-info {
  padding: 1.25rem 1.4rem;
  border: 1px solid var(--hairline);
  border-radius: 6px;
}
.cf-info-title {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.9rem;
}
.cf-info-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.75rem; }
.cf-info-list li { display: flex; flex-direction: column; gap: 0.15rem; }
.cf-info-label { font-size: 0.8rem; color: var(--muted); }
.cf-info-link { color: var(--accent); text-decoration: none; font-weight: 500; }
.cf-info-link:hover { text-decoration: underline; }

/* ── Form card ── */
.cf-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 8px;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  box-shadow: var(--card-shadow);
}

.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }

.cf-field { display: flex; flex-direction: column; margin-bottom: 1.1rem; }
.cf-label { font-size: 0.85rem; font-weight: 500; color: var(--text); margin-bottom: 0.4rem; }
.cf-req { color: var(--brand); }

.cf-input,
.cf-select,
.cf-textarea {
  width: 100%;
  font: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--hairline-strong);
  border-radius: 5px;
  padding: 0.7rem 0.85rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.cf-textarea { resize: vertical; min-height: 8rem; }
.cf-input:focus,
.cf-select:focus,
.cf-textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(var(--brand-rgb), 0.14);
}

.cf-hint { font-size: 0.78rem; color: var(--muted); margin-top: 0.35rem; }

.cf-error {
  display: none;
  font-size: 0.8rem;
  color: #b3261e;
  margin-top: 0.35rem;
}
.cf-field.is-invalid .cf-error,
.cf-consent.is-invalid + .cf-error--consent { display: block; }
.cf-field.is-invalid .cf-input,
.cf-field.is-invalid .cf-select,
.cf-field.is-invalid .cf-textarea {
  border-color: #b3261e;
  box-shadow: 0 0 0 3px rgba(179, 38, 30, 0.12);
}

/* Honeypot - visually removed, kept in the a11y/layout tree off-screen. */
.cf-honeypot {
  position: absolute !important;
  left: -9999px;
  width: 1px; height: 1px;
  opacity: 0;
  pointer-events: none;
}

.cf-consent { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.88rem; color: var(--muted); margin: 0.4rem 0 0.2rem; }
.cf-consent input { margin-top: 0.2rem; flex: none; }
.cf-consent a { color: var(--accent); }

.cf-submit {
  margin-top: 1.4rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
}
.cf-submit:disabled { opacity: 0.7; cursor: progress; }

.cf-spinner {
  display: none;
  width: 1rem; height: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: var(--on-brand);
  border-radius: 50%;
  animation: cf-spin 0.7s linear infinite;
}
.cf-submit.is-loading .cf-spinner { display: inline-block; }
@keyframes cf-spin { to { transform: rotate(360deg); } }

/* ── Toast ── */
.cf-toast {
  display: none;
  flex-direction: column;
  gap: 0.2rem;
  margin-top: 1.25rem;
  padding: 0.85rem 1.1rem;
  border-radius: 6px;
  border: 1px solid var(--hairline);
}
.cf-toast.is-visible { display: flex; }
.cf-toast.is-success { background: rgba(var(--brand-rgb), 0.06); border-color: rgba(var(--brand-rgb), 0.3); }
.cf-toast.is-error { background: rgba(179, 38, 30, 0.06); border-color: rgba(179, 38, 30, 0.3); }
.cf-toast-title { font-weight: 600; color: var(--text); }
.cf-toast-msg { font-size: 0.9rem; color: var(--muted); }

/* ── Responsive ── */
@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
  .cf-row { grid-template-columns: 1fr; gap: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .cf-spinner { animation: none; }
}

