/* Rubisoft site styles. Tokens: tokens.css. */

*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: light; -webkit-text-size-adjust: 100%; scroll-padding-top: 5.5rem; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font: 400 var(--text-base) / 1.65 var(--font-sans);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--link); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:where(:visited) { color: var(--link-visited); }
a:where(:hover) { color: var(--link-hover); text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { color: var(--heading); margin: 0; font-weight: 700; text-wrap: balance; }
h1 { font-size: var(--text-display); line-height: 1.03; letter-spacing: -0.035em; }
h2 { font-size: var(--text-h2); line-height: 1.08; letter-spacing: -0.028em; }
h3 { font-size: var(--text-h3); line-height: 1.25; letter-spacing: -0.012em; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: var(--space-4); top: -4rem; z-index: 1000;
  background: var(--rs-white); color: var(--rs-forest); padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm); font-weight: 600;
}
.skip-link:focus { top: var(--space-3); }

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.theme-dark { background: var(--canvas); color: var(--text); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 48px; padding: 0 var(--space-5);
  border-radius: var(--radius-md); border: 1px solid transparent;
  font: 600 1rem/1 var(--font-sans); letter-spacing: -0.005em;
  text-decoration: none; cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--action); color: var(--on-action); }
.btn-primary:where(:hover, :active) { background: var(--action-hover); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--heading); border-color: currentColor; }
.btn-ghost:hover { background: var(--surface-tint); text-decoration: none; }
.btn:disabled { color: var(--disabled-text); background: var(--disabled-bg); border-color: var(--border); cursor: not-allowed; transform: none; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgb(14 47 41 / 0.94);
  -webkit-backdrop-filter: saturate(140%) blur(12px); backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid rgb(213 230 223 / 0.12);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-5); min-height: 72px; }
.brand-link { display: inline-flex; align-items: center; border-radius: var(--radius-sm); }
.brand-link img { height: 34px; width: auto; }
.site-nav ul { list-style: none; display: flex; align-items: center; gap: var(--space-1); }
.site-nav a:not(.btn) {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--space-3);
  color: var(--rs-on-dark); text-decoration: none; font-weight: 500; font-size: 0.9375rem; border-radius: var(--radius-sm);
}
.site-nav a:not(.btn):hover { background: rgb(235 243 240 / 0.08); }
.site-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--rs-ruby); border-radius: 0; }
.site-nav .btn { min-height: 44px; margin-left: var(--space-3); padding: 0 var(--space-4); font-size: 0.9375rem; }
.nav-toggle {
  display: none; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 44px; min-width: 44px; padding: 0 var(--space-3);
  background: transparent; color: var(--rs-on-dark); border: 1px solid rgb(235 243 240 / 0.28);
  border-radius: var(--radius-sm); font: 600 0.9375rem/1 var(--font-sans); cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; }
.site-header :focus-visible { outline-color: var(--rs-gold); }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .site-nav { position: absolute; inset: 72px 0 auto 0; background: var(--rs-pine); border-bottom: 1px solid rgb(213 230 223 / 0.14); }
  .js .site-nav[data-open="false"] { display: none; }
  .site-nav ul { flex-direction: column; align-items: stretch; padding: var(--space-3) var(--gutter) var(--space-5); gap: 0; }
  .site-nav a:not(.btn) { display: flex; min-height: 52px; font-size: 1.0625rem; border-bottom: 1px solid rgb(213 230 223 / 0.1); border-radius: 0; }
  .site-nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--rs-ruby); padding-left: var(--space-4); }
  .site-nav .btn { width: 100%; margin: var(--space-4) 0 0; min-height: 52px; }
}

/* Sections */
.section { padding: var(--space-section) 0; }
.section-head { display: grid; gap: var(--space-4); max-width: 46rem; margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem); }
.section-head p { font-size: var(--text-lead); color: var(--text-muted); line-height: 1.55; }
.kicker {
  font: 500 var(--text-xs)/1.2 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-muted);
}
.lead { font-size: var(--text-lead); line-height: 1.55; color: var(--text-muted); }

/* Hero */
.hero { position: relative; overflow: hidden; padding: clamp(3rem, 2rem + 4vw, 6rem) 0 clamp(3.5rem, 2rem + 5vw, 7rem); isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60rem 36rem at 78% 42%, rgb(30 91 79 / 0.55), transparent 70%),
    radial-gradient(40rem 30rem at 10% 110%, rgb(22 70 61 / 0.9), transparent 70%);
}
.hero-grid { display: grid; gap: clamp(2rem, 1rem + 4vw, 4rem); align-items: center; }
.hero-copy { display: grid; gap: var(--space-5); max-width: 38rem; }
.hero h1 { color: var(--rs-on-dark); }
.hero h1 .accent { color: transparent; background: linear-gradient(100deg, #FFD3CA, var(--accent-text)); -webkit-background-clip: text; background-clip: text; }
.hero .lead { color: var(--rs-on-dark-muted); max-width: 34rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-2); }
.hero .btn-ghost { color: var(--rs-on-dark); border-color: rgb(235 243 240 / 0.4); }
.hero .btn-ghost:hover { background: rgb(235 243 240 / 0.08); }
.hero-facts { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); margin-top: var(--space-3); padding: 0; list-style: none; color: var(--rs-on-dark-muted); font-size: var(--text-sm); }
.hero-facts li { display: inline-flex; align-items: center; gap: var(--space-2); }
.hero-facts li::before { content: ""; width: 7px; height: 9px; background: var(--rs-gold); clip-path: polygon(50% 0, 100% 62%, 76% 100%, 24% 100%, 0 62%); }
.hero-art { position: relative; margin: 0; container-type: inline-size; }
.hero-art .motion-toggle svg { width: 14px; height: 14px; }
.hero-art figcaption { margin-top: var(--space-2); font: 400 var(--text-xs)/1.4 var(--font-mono); color: var(--rs-on-dark-muted); text-align: right; letter-spacing: 0.02em; }
.motion-toggle {
  position: absolute; right: 0; top: 0; z-index: 2;
  display: inline-flex; align-items: center; gap: var(--space-2); min-height: 36px; padding: 0 var(--space-3);
  border: 1px solid rgb(235 243 240 / 0.24); border-radius: 999px; background: rgb(14 47 41 / 0.7);
  color: var(--rs-on-dark-muted); font: 500 var(--text-xs)/1 var(--font-mono); letter-spacing: 0.04em; cursor: pointer;
}
.motion-toggle:hover { color: var(--rs-on-dark); border-color: rgb(235 243 240 / 0.5); }
.motion-toggle svg { width: 14px; height: 14px; }
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); }
}

/* Hero artwork: stone and dial (left 420 of 640 units), rays overlay, HTML readouts (right 240 units) */
.art-stage { position: relative; aspect-ratio: 640 / 560; }
.hero-art .art-core { position: absolute; left: 0; top: 0; width: 65.625%; height: 100%; overflow: visible; }
.hero-art .art-rays { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.readouts { list-style: none; }
.readout {
  position: absolute; left: 62.5%; top: var(--y); width: 37.5%; transform: translateY(-50%);
  display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 2px 10px; align-items: center;
  padding: 10px 12px; background: rgb(22 70 61 / 0.94); border: 1px solid #2E6157; border-radius: var(--radius-md);
  box-shadow: 0 14px 30px -18px rgb(4 18 15 / 0.9);
  animation: chip-in 700ms var(--ease-out) both;
}
.readout:nth-child(2) { animation-delay: 120ms; }
.readout:nth-child(3) { animation-delay: 240ms; }
.readout:nth-child(4) { animation-delay: 360ms; }
.readout img { grid-row: span 2; width: 20px; height: 20px; border-radius: 5px; }
.readout-label { font-size: 0.75rem; line-height: 1.3; color: var(--rs-on-dark-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.readout-value { font-size: 1.125rem; font-weight: 600; line-height: 1.2; color: var(--rs-on-dark); }
.readout-note { grid-column: 2; font-size: 0.75rem; line-height: 1.3; color: #FFB4A9; }
/* Below 560px of artwork the readouts no longer fit beside the stone: stack them under it. */
@container (max-width: 559px) {
  .art-stage { aspect-ratio: auto; }
  .hero-art .art-core { position: relative; width: 100%; max-width: 380px; height: auto; aspect-ratio: 420 / 470; margin: 0 auto; }
  .hero-art .art-rays { display: none; }
  .readouts { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2); margin-top: var(--space-3); }
  .readout { position: static; width: auto; transform: none; }
  .readout-label { white-space: normal; }
}
.art-dial { transform-box: view-box; transform-origin: 205px 285px; animation: spin 120s linear infinite; }
.art-sweep { animation: sweep 7s var(--ease-out) infinite; }
.art-pulse { stroke-dasharray: 10 260; animation: pulse 3.2s linear infinite; }
.art-pulse:nth-of-type(6) { animation-delay: -0.8s; }
.art-pulse:nth-of-type(7) { animation-delay: -1.6s; }
.art-pulse:nth-of-type(8) { animation-delay: -2.4s; }
.art-beam { stroke-dasharray: 14 240; animation: pulse 2.6s linear infinite; }
.art-twinkle { animation: twinkle 4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.art-twinkle:nth-of-type(2) { animation-delay: -1.3s; }
.art-twinkle:nth-of-type(3) { animation-delay: -2.6s; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes sweep { 0% { transform: translateX(-60px); } 28%, 100% { transform: translateX(300px); } }
@keyframes pulse { from { stroke-dashoffset: 270; } to { stroke-dashoffset: 0; } }
@keyframes chip-in { from { opacity: 0; translate: -10px 0; } }
@keyframes twinkle { 0%, 100% { opacity: 0.15; transform: scale(0.6); } 50% { opacity: 1; transform: scale(1); } }
.motion-paused :is(.art-dial, .art-sweep, .art-pulse, .art-beam, .art-twinkle, .flow-dot),
.is-offscreen :is(.art-dial, .art-sweep, .art-pulse, .art-beam, .art-twinkle, .flow-dot) { animation-play-state: paused; }

/* Ventures */
.ventures-grid { display: grid; gap: var(--space-5); list-style: none; }
@media (min-width: 760px) { .ventures-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.venture {
  position: relative; display: grid; grid-template-rows: auto 1fr auto; gap: var(--space-5);
  padding: clamp(1.5rem, 1.1rem + 1.4vw, 2.25rem);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}
.venture::after {
  content: ""; position: absolute; left: clamp(1.5rem, 1.1rem + 1.4vw, 2.25rem); right: clamp(1.5rem, 1.1rem + 1.4vw, 2.25rem); top: -1px; height: 3px;
  background: linear-gradient(90deg, var(--rs-ruby), var(--rs-coral) 40%, transparent);
  border-radius: 0 0 3px 3px; transform: scaleX(0.18); transform-origin: left; transition: transform 420ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .venture:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); border-color: #C3D8D0; }
  .venture:hover::after { transform: scaleX(1); }
}
.venture-top { display: flex; align-items: center; gap: var(--space-4); }
.venture-top img { width: 56px; height: 56px; border-radius: 14px; flex: none; }
.venture-top h3 { font-size: 1.5rem; }
.venture-top p { color: var(--text-muted); font-size: var(--text-sm); }
.venture-body { display: grid; gap: var(--space-4); align-content: start; }
.venture-body > p { font-size: 1.125rem; line-height: 1.5; color: var(--text); }
.venture-points { list-style: none; display: grid; gap: var(--space-2); }
.venture-points li { position: relative; padding-left: 1.25rem; color: var(--text-muted); }
.venture-points li::before {
  content: ""; position: absolute; left: 0; top: 0.62em; width: 7px; height: 9px; background: var(--rs-emerald);
  clip-path: polygon(50% 0, 100% 62%, 76% 100%, 24% 100%, 0 62%);
}
.venture-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3); padding-top: var(--space-4); border-top: 1px solid var(--border); }
.tags { display: flex; flex-wrap: wrap; gap: var(--space-2); list-style: none; }
.tag {
  display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 0 10px;
  border-radius: 999px; background: var(--surface-tint); color: var(--heading);
  font: 500 0.75rem/1 var(--font-mono); letter-spacing: 0.03em;
}
.tag-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #1F8A5B; box-shadow: 0 0 0 3px rgb(31 138 91 / 0.18); }
.tag-soon { background: var(--surface); color: var(--heading); border: 1px solid var(--rs-gold); }
.venture-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 600; color: var(--heading); text-decoration: none; }
.venture-link:hover { text-decoration: underline; }
.venture-link svg { width: 16px; height: 16px; }
.venture-note { color: var(--text-muted); font-size: var(--text-sm); }

/* Platform stack */
.platform { position: relative; overflow: hidden; }
.platform::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgb(213 230 223 / 0.05) 1px, transparent 1px), linear-gradient(90deg, rgb(213 230 223 / 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 75%);
}
.platform .container { position: relative; }
.stack { display: grid; gap: 0; }
.stack-layer {
  display: grid; gap: var(--space-4); padding: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
}
.stack-layer header { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-2) var(--space-4); }
.stack-layer h3 { font-size: 1.125rem; }
.stack-layer header p { color: var(--text-muted); font-size: var(--text-sm); }
.layer-products { background: linear-gradient(180deg, #1B5045, var(--rs-slate)); border-color: #357163; }
.chip-row { display: flex; flex-wrap: wrap; gap: var(--space-2); list-style: none; }
.chip {
  display: inline-flex; align-items: center; gap: var(--space-2); min-height: 40px; padding: 0 14px;
  border-radius: var(--radius-md); background: rgb(14 47 41 / 0.6); border: 1px solid #2E6157;
  color: var(--rs-on-dark); font-size: 0.9375rem; font-weight: 500;
}
.chip img { width: 22px; height: 22px; border-radius: 6px; }
.chip .mono { color: var(--rs-on-dark-muted); font-size: 0.75rem; }
.flow { position: relative; height: 56px; display: grid; grid-template-columns: repeat(var(--lanes, 5), 1fr); }
.flow span { position: relative; justify-self: center; width: 2px; height: 100%; background: linear-gradient(#2E6157, #2E6157) center / 2px 100% no-repeat; overflow: hidden; }
.flow-dot { position: absolute; left: -2px; width: 6px; height: 14px; border-radius: 3px; background: linear-gradient(var(--rs-coral), var(--rs-ruby)); box-shadow: 0 0 10px rgb(235 76 66 / 0.7); animation: flow 2.4s linear infinite; }
.flow span:nth-child(2) .flow-dot { animation-delay: -0.5s; }
.flow span:nth-child(3) .flow-dot { animation-delay: -1.1s; }
.flow span:nth-child(4) .flow-dot { animation-delay: -1.7s; }
.flow span:nth-child(5) .flow-dot { animation-delay: -0.3s; }
@keyframes flow { from { transform: translateY(70px); } to { transform: translateY(-20px); } }

/* Services teaser and services page */
.pillars { display: grid; gap: var(--space-5); list-style: none; }
@media (min-width: 900px) { .pillars { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pillar { display: grid; gap: var(--space-4); align-content: start; padding-top: var(--space-5); border-top: 2px solid var(--rs-forest); }
.pillar h3 { display: flex; align-items: center; gap: var(--space-3); font-size: 1.375rem; }
.pillar h3 .gem { width: 14px; height: 18px; flex: none; }
.pillar > p { color: var(--text-muted); }
.service-list { list-style: none; display: grid; gap: var(--space-3); }
.service-list li { display: grid; gap: 2px; padding: var(--space-3) 0; border-bottom: 1px solid var(--border); }
.service-list strong { color: var(--heading); font-weight: 600; }
.service-list span { color: var(--text-muted); font-size: 0.9375rem; line-height: 1.5; }
.section-cta { margin-top: clamp(2.5rem, 2rem + 2vw, 3.5rem); display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4); }

.service-detail { display: grid; gap: var(--space-6); padding: clamp(2.5rem, 2rem + 2vw, 4rem) 0; border-top: 1px solid var(--border); }
.service-detail:first-of-type { border-top: 0; padding-top: 0; }
@media (min-width: 960px) { .service-detail { grid-template-columns: minmax(0, 0.8fr) minmax(0, 2fr); gap: var(--space-8); } .service-detail > header { position: sticky; top: 6.5rem; align-self: start; } }
.service-detail > header { display: grid; gap: var(--space-3); }
.service-detail > header p { color: var(--text-muted); }
.service-detail > header h2 { font-size: clamp(1.625rem, 1.3rem + 1.2vw, 2.25rem); }
.offer-grid { display: grid; gap: var(--space-4); list-style: none; }
@media (min-width: 680px) { .offer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.offer { display: grid; gap: var(--space-3); align-content: start; padding: var(--space-5); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.offer h3 { font-size: 1.1875rem; }
.offer p { color: var(--text-muted); font-size: 0.96875rem; line-height: 1.55; }
.offer .proof { padding-top: var(--space-3); border-top: 1px dashed var(--border); font-size: 0.875rem; color: var(--link); }
.offer .proof b { font-weight: 600; color: var(--heading); }
.models { display: grid; gap: var(--space-4); list-style: none; counter-reset: none; }
@media (min-width: 760px) { .models { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.model { padding: var(--space-5); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); display: grid; gap: var(--space-2); }
.model h3 { font-size: 1.1875rem; }
.model p { color: var(--text-muted); }
.steps { display: grid; gap: var(--space-4); list-style: none; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.steps li { display: grid; gap: var(--space-2); align-content: start; padding: var(--space-5) 0 0; border-top: 1px solid var(--border); }
.steps h3 { font-size: 1.125rem; }
.steps p { color: var(--text-muted); font-size: 0.96875rem; }

/* Principles */
.principles { display: grid; gap: var(--space-6) var(--space-7); list-style: none; }
@media (min-width: 760px) { .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.principle { display: grid; grid-template-columns: auto 1fr; gap: var(--space-2) var(--space-4); align-items: start; }
.principle svg { width: 40px; height: 40px; grid-row: span 2; }
.principle p { color: var(--text-muted); }

/* Contact band */
.contact-band { position: relative; overflow: hidden; }
.contact-band::after {
  content: ""; position: absolute; right: -6rem; bottom: -8rem; width: 28rem; height: 34rem; pointer-events: none;
  background: url("../brand/rubisoft-symbol-mono-light.svg") center / contain no-repeat; opacity: 0.05; transform: rotate(-12deg);
}
.contact-inner { position: relative; display: grid; gap: var(--space-6); align-items: end; }
@media (min-width: 900px) { .contact-inner { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); } }
.contact-inner h2 { color: var(--rs-on-dark); }
.contact-card { display: grid; gap: var(--space-4); padding: clamp(1.5rem, 1rem + 2vw, 2.25rem); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.contact-email { font: 600 clamp(1.25rem, 1rem + 1.2vw, 1.75rem)/1.2 var(--font-sans); letter-spacing: -0.015em; color: var(--rs-on-dark); word-break: break-word; }
.contact-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.copy-btn { background: transparent; color: var(--rs-on-dark); border-color: rgb(235 243 240 / 0.4); }
.copy-btn:hover { background: rgb(235 243 240 / 0.08); }
.copy-status { min-height: 1.4em; font-size: var(--text-sm); color: var(--rs-on-dark-muted); }
.appointment { display: inline-flex; align-items: center; gap: var(--space-2); font: 500 0.8125rem/1.3 var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--rs-gold); }
.appointment svg { width: 16px; height: 16px; }

/* Footer */
.site-footer { padding: var(--space-8) 0 var(--space-6); border-top: 1px solid rgb(213 230 223 / 0.12); }
.footer-grid { display: grid; gap: var(--space-6); }
@media (min-width: 900px) { .footer-grid { grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); } }
.footer-brand { display: grid; gap: var(--space-4); align-content: start; }
.footer-brand img { width: min(300px, 100%); height: auto; }
.footer-brand p { color: var(--text-muted); font-size: var(--text-sm); max-width: 26rem; }
.footer-col h2 { font: 500 var(--text-xs)/1.2 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); margin-bottom: var(--space-3); }
.footer-col ul { list-style: none; display: grid; gap: 2px; }
.footer-col a { display: inline-flex; align-items: center; min-height: 36px; color: var(--text); text-decoration: none; font-size: 0.9375rem; }
.footer-col a:hover { text-decoration: underline; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-3); margin-top: var(--space-7); padding-top: var(--space-5); border-top: 1px solid var(--border); color: var(--text-muted); font-size: var(--text-sm); }
.footer-legal .mono { font-size: 0.8125rem; }

/* Page hero (inner pages) */
.page-hero { padding: clamp(3rem, 2rem + 4vw, 5.5rem) 0 clamp(2.5rem, 2rem + 3vw, 4.5rem); position: relative; overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(50rem 26rem at 85% 0%, rgb(30 91 79 / 0.55), transparent 70%);
}
.page-hero .container { position: relative; display: grid; gap: var(--space-4); }
.page-hero h1 { color: var(--rs-on-dark); font-size: clamp(2.25rem, 1.6rem + 2.6vw, 3.75rem); max-width: 20ch; }
.page-hero .lead { color: var(--rs-on-dark-muted); max-width: 40rem; }
.breadcrumb { font: 500 var(--text-xs)/1.2 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--rs-on-dark-muted); }
.breadcrumb a { color: inherit; }

/* Legal and long-form pages */
.legal-layout { display: grid; gap: var(--space-6); padding-block: clamp(2rem, 1.5rem + 3vw, 4.5rem) var(--space-section); }
@media (min-width: 1040px) { .legal-layout { grid-template-columns: 16rem minmax(0, 1fr); gap: var(--space-8); } }
.legal-meta { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); color: var(--rs-on-dark-muted); font-size: var(--text-sm); }
.legal-meta .mono { font-size: 0.8125rem; }
.toc { align-self: start; }
@media (min-width: 1040px) { .toc { position: sticky; top: 6.5rem; } }
.toc summary { font: 500 var(--text-xs)/1.2 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); margin-bottom: var(--space-3); list-style: none; }
.toc summary::-webkit-details-marker { display: none; }
@media (max-width: 1039px) {
  .toc { border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); }
  .toc summary { display: flex; align-items: center; justify-content: space-between; min-height: 48px; margin: 0; padding: 0 var(--space-4); cursor: pointer; }
  .toc summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform var(--dur-fast) var(--ease-out); }
  .toc details[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
  .toc ol { margin: 0 var(--space-4) var(--space-4); }
}
@media (min-width: 1040px) { .toc summary { pointer-events: none; } }
.toc ol { list-style: none; display: grid; gap: 2px; border-left: 2px solid var(--border); }
.toc a { display: block; padding: 6px 0 6px var(--space-4); margin-left: -2px; border-left: 2px solid transparent; color: var(--text-muted); text-decoration: none; font-size: 0.9375rem; line-height: 1.4; }
.toc a:hover { color: var(--heading); border-left-color: var(--rs-line-strong); }
.prose { max-width: 70ch; }
.prose > * + * { margin-top: var(--space-4); }
.prose h2 { font-size: clamp(1.375rem, 1.2rem + 0.7vw, 1.75rem); letter-spacing: -0.018em; margin-top: var(--space-7); scroll-margin-top: 6rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.125rem; margin-top: var(--space-5); }
.prose ul, .prose ol { padding-left: 1.25rem; display: grid; gap: var(--space-2); }
.prose li::marker { color: var(--link); }
.prose strong { color: var(--heading); font-weight: 600; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.prose .table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); }
.prose th, .prose td { text-align: left; vertical-align: top; padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--border); }
.prose th { font-weight: 600; color: var(--heading); background: var(--surface-tint); }
.prose tr:last-child td { border-bottom: 0; }
.callout { padding: var(--space-4) var(--space-5); border-radius: var(--radius-md); background: var(--surface-tint); border-left: 3px solid var(--rs-emerald); }
.prose .callout > * + * { margin-top: var(--space-2); }
.legal-related { margin-top: var(--space-7); padding-top: var(--space-5); border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); font-size: 0.9375rem; }

/* Brand page */
.logo-grid { display: grid; gap: var(--space-4); list-style: none; }
@media (min-width: 760px) { .logo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.logo-tile { display: grid; grid-template-rows: 1fr auto; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); }
.logo-tile .stage { display: grid; place-items: center; min-height: 200px; padding: var(--space-6); }
.logo-tile .stage img { max-height: 96px; width: auto; height: auto; }
.logo-tile .stage.dark { background: var(--rs-pine); }
.logo-tile .stage.tint { background: var(--rs-sage); }
.logo-tile footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3); padding: var(--space-3) var(--space-4); border-top: 1px solid var(--border); }
.logo-tile footer span { font-weight: 600; color: var(--heading); font-size: 0.9375rem; }
.downloads { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.downloads a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border-radius: var(--radius-sm); background: var(--surface-tint); color: var(--heading); font: 500 0.8125rem/1 var(--font-mono); text-decoration: none; }
.downloads a:hover { background: var(--surface-tint); color: var(--link-hover); text-decoration: underline; }
.swatches { display: grid; gap: var(--space-3); list-style: none; grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr)); }
.swatch { border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--border); background: var(--surface); }
.swatch .chipcolor { height: 84px; }
.swatch div:last-child { padding: var(--space-3) var(--space-4); display: grid; gap: 2px; }
.swatch b { color: var(--heading); font-weight: 600; }
.swatch span { color: var(--text-muted); font-size: var(--text-sm); }
.ratio-bar { display: flex; height: 18px; border-radius: 999px; overflow: hidden; border: 1px solid var(--border); }
.ratio-bar span:nth-child(1) { flex: 60; background: var(--rs-alabaster); }
.ratio-bar span:nth-child(2) { flex: 30; background: var(--rs-forest); }
.ratio-bar span:nth-child(3) { flex: 10; background: var(--rs-ruby); }
.type-specimen { display: grid; gap: var(--space-5); padding: var(--space-6); border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.type-specimen .display { font-size: clamp(2rem, 1.5rem + 2vw, 3.25rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; color: var(--heading); }
.type-specimen .figures { font-family: var(--font-mono); font-size: 1.5rem; color: var(--heading); font-variant-numeric: tabular-nums; }
.dont-list { display: grid; gap: var(--space-3); list-style: none; }
@media (min-width: 760px) { .dont-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.dont-list li { padding: var(--space-4) var(--space-5); border-radius: var(--radius-md); background: var(--surface); border: 1px solid var(--border); }

/* Both specimens use the same roles as the site. Line style carries the series meaning. */
.role-examples { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: var(--space-4); margin-block: var(--space-5); }
.role-example { display: grid; gap: var(--space-3); padding: var(--space-5); background: var(--surface); color: var(--text); border: 1px solid var(--control-border); border-radius: var(--radius-lg); }
.role-example h3 { font-size: var(--text-h3); }
.role-error { color: var(--status-error); background: var(--status-error-bg); padding: var(--space-2) var(--space-3); border-radius: var(--radius-sm); }
.role-legend { display: flex; flex-wrap: wrap; gap: var(--space-4); list-style: none; }
.role-legend li { display: inline-flex; align-items: center; gap: var(--space-2); }
.role-legend svg { width: 2rem; height: 0.75rem; }
.role-line { stroke: var(--chart-1); stroke-width: 3; }
.role-target { stroke: var(--chart-2); stroke-dasharray: var(--chart-target-dash); }

/* 404 */
.not-found { min-height: 60vh; display: grid; align-content: center; justify-items: start; gap: var(--space-5); padding-block: var(--space-section); }

/* Reveal on scroll: site.js hides only items still below the fold, then animates each one in once */
.pre-reveal { opacity: 0; transform: translateY(18px); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .pre-reveal { opacity: 1; transform: none; }
  .art-sweep, .art-pulse, .art-beam, .flow-dot, .motion-toggle { display: none; }
  .art-twinkle { opacity: 0.8; }
}

@media print {
  .site-header, .site-footer, .toc, .motion-toggle, .skip-link { display: none !important; }
  .pre-reveal { opacity: 1 !important; transform: none !important; }
  body { background: #fff; color: #000; }
  .page-hero { background: #fff !important; color: #000; padding: 0 0 1rem; }
  .page-hero h1, .page-hero .lead, .legal-meta { color: #000 !important; }
  .page-hero::before { display: none; }
}

/* Question-and-answer lists on policy pages */
.prose .faq { display: grid; gap: var(--space-2); }
.prose .faq dt { font-weight: 600; color: var(--heading); margin-top: var(--space-3); }
.prose .faq dt:first-child { margin-top: 0; }
.prose .faq dd { margin: 0; }
