/* RINGBUS theme v2 — currently loaded only on index.html.
   Tokens and components are ready to become the global stylesheet. */

:root {
  --rb-red: #c4161c;
  --rb-red-dark: #9a1116;
  --rb-red-deep: #6e0c10;
  --rb-red-soft: #f7eaea;
  --rb-ink: #14171c;
  --rb-ink-soft: #3a4049;
  --rb-muted: #6a727c;
  --rb-line: #e6e8ec;
  --rb-line-strong: #d5d8de;
  --rb-paper: #ffffff;
  --rb-canvas: #f3f4f6;
  --rb-canvas-2: #eceef2;
  --rb-nav: #111318;
  --rb-overlay: rgba(10, 12, 16, 0.58);
  --rb-radius: 16px;
  --rb-radius-sm: 10px;
  --rb-shadow: 0 18px 50px rgba(16, 18, 24, 0.1);
  --rb-shadow-sm: 0 8px 24px rgba(16, 18, 24, 0.06);
  --rb-font: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
  --rb-display: "Manrope", "Source Sans 3", "Segoe UI", sans-serif;
  --rb-wrap: 1180px;
  --rb-header: 76px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body.theme-v2 {
  margin: 0;
  background: var(--rb-canvas);
  color: var(--rb-ink);
  font: 17px/1.65 var(--rb-font);
  letter-spacing: 0.01em;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  border: 0;
  vertical-align: middle;
}

a {
  color: var(--rb-red);
  text-decoration: none;
}

a:hover { text-decoration: none; color: var(--rb-red-dark); }

:focus-visible {
  outline: 2px solid var(--rb-red);
  outline-offset: 3px;
}

h1, h2, h3, h4 {
  font-family: var(--rb-display);
  font-weight: 700;
  color: var(--rb-ink);
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin: 0 0 0.6em;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
  z-index: 200;
  background: var(--rb-red);
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
}

.skip-link:focus { left: 12px; }

.wrap {
  width: min(calc(100% - 48px), var(--rb-wrap));
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid rgba(20, 23, 28, 0.08);
}

.header-bar {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: var(--rb-header);
}

.logo {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

.logo img {
  display: block;
  height: 52px;
  width: auto;
  max-width: none;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.search-box {
  display: flex;
  align-items: center;
  background: var(--rb-canvas);
  border: 1px solid var(--rb-line);
  border-radius: 999px;
  overflow: hidden;
  height: 40px;
}

.search-box input[type="search"] {
  width: 168px;
  height: 100%;
  border: 0;
  background: transparent;
  padding: 0 14px;
  font: 15px/1 var(--rb-font);
  color: var(--rb-ink);
  outline: none;
}

.search-box input::placeholder { color: var(--rb-muted); }

.search-box button {
  height: 100%;
  border: 0;
  background: transparent;
  color: var(--rb-ink-soft);
  padding: 0 14px 0 4px;
  cursor: pointer;
  font: 600 13px/1 var(--rb-display);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.search-box:focus-within {
  border-color: var(--rb-red);
  background: #fff;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  font: 650 14px/1 var(--rb-display);
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none !important;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--rb-red);
  color: #fff !important;
}

.btn-primary:hover { background: var(--rb-red-dark); color: #fff !important; }

.btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  background: #fff;
  color: var(--rb-ink) !important;
}

.btn-line {
  background: #fff;
  color: var(--rb-ink) !important;
  border-color: var(--rb-line-strong);
}

.btn-line:hover { border-color: var(--rb-ink); }

/* Nav */
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  margin-left: auto;
  border: 1px solid var(--rb-line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  padding: 0;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--rb-ink);
  border-radius: 2px;
}

.topnav {
  flex: 1 1 auto;
}

.topnav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 2px;
}

.topnav > ul > li { position: relative; }

.topnav a {
  display: block;
  color: var(--rb-ink-soft) !important;
  padding: 10px 13px;
  font: 650 14px/1 var(--rb-display);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none !important;
  border-radius: 8px;
}

.topnav a:hover,
.topnav a.active,
.topnav li:hover > a {
  color: var(--rb-red) !important;
  background: transparent;
}

.topnav .sub {
  display: none;
  position: absolute;
  left: 0;
  top: calc(100% - 2px);
  min-width: 260px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--rb-line);
  border-radius: 14px;
  box-shadow: var(--rb-shadow);
  z-index: 40;
}

.topnav li:hover > .sub,
.topnav li:focus-within > .sub { display: block; }

.topnav .sub a {
  color: var(--rb-ink) !important;
  font-size: 15px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  padding: 9px 12px;
  border-radius: 8px;
}

.topnav .sub a:hover {
  background: var(--rb-red-soft);
  color: var(--rb-red-dark) !important;
}

.nav-cta { display: none; }

/* Search overlay */
.search-results {
  display: none;
  background: #fff;
  border: 1px solid var(--rb-line);
  border-radius: var(--rb-radius);
  padding: 22px 24px;
  margin: 18px auto 0;
  width: min(calc(100% - 48px), var(--rb-wrap));
  box-shadow: var(--rb-shadow);
}

.search-results.open { display: block; }

.search-results h3 {
  margin: 0 0 10px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--rb-muted);
}

.search-results .ref-list {
  display: grid;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.search-results .ref-list a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--rb-canvas);
  color: var(--rb-ink);
}

.search-results .ref-list a:hover { background: var(--rb-red-soft); color: var(--rb-red-dark); }

/* Hero */
.hero {
  position: relative;
  isolation: isolate;
  min-height: min(78vh, 720px);
  background: #0c0e12;
  color: #fff;
  overflow: hidden;
}

.slider {
  position: absolute;
  inset: 0;
  background: #0c0e12;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s ease;
  display: block !important;
  pointer-events: none;
}

.slide.active {
  opacity: 1;
  z-index: 1;
  pointer-events: auto;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.04);
}

.slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 10, 14, 0.68) 0%, rgba(8, 10, 14, 0.34) 48%, rgba(8, 10, 14, 0.08) 100%),
    linear-gradient(180deg, rgba(8, 10, 14, 0.12) 0%, rgba(8, 10, 14, 0.02) 45%, rgba(8, 10, 14, 0.42) 100%);
  pointer-events: none;
}

.slide-caption {
  position: absolute;
  left: max(24px, calc((100% - var(--rb-wrap)) / 2));
  right: 24px;
  bottom: 88px;
  z-index: 2;
  max-width: 720px;
  color: #fff;
}

.slide-caption h1,
.slide-caption .slide-title {
  color: #fff;
  font-family: var(--rb-display);
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin: 0 0 14px;
  max-width: 16ch;
  text-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  color: #f0d0d0;
  font: 650 12px/1 var(--rb-display);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.kicker::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--rb-red);
}

.hero-lead {
  margin: 0 0 28px;
  font-size: 18px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
  max-width: 46ch;
  text-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.dots {
  position: absolute;
  left: max(24px, calc((100% - var(--rb-wrap)) / 2));
  bottom: 28px;
  z-index: 4;
  display: flex;
  gap: 8px;
}

.dots button {
  width: 34px;
  height: 4px;
  border: 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  padding: 0;
}

.dots button.on { background: var(--rb-red); }

/* Stats */
.stats {
  background: var(--rb-ink);
  color: #fff;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 1fr);
  gap: 0;
}

.stat {
  padding: 28px 22px;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.stat:first-child { border-left: 0; padding-left: 0; }

.stat-brand {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 12px;
  min-height: 100%;
  padding: 22px 28px 22px 0;
}

.stat-brand img {
  display: block;
  height: 52px;
  width: auto;
  object-fit: contain;
  object-position: left center;
  background: #fff;
  border-radius: 999px;
  padding: 10px 20px 10px 16px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.stat b {
  display: block;
  font-family: var(--rb-display);
  font-size: 28px;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 6px;
}

.stat span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
}

/* Sections */
.section {
  padding: 88px 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 36px;
}

.section-head h2 {
  font-size: clamp(28px, 3.2vw, 40px);
  margin: 0;
}

.section-head p {
  margin: 8px 0 0;
  color: var(--rb-muted);
  max-width: 52ch;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--rb-red);
  font: 700 12px/1 var(--rb-display);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.panel {
  background: var(--rb-paper);
}

.muted { color: var(--rb-muted); }

.split {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 48px;
  align-items: start;
}

.split p { margin: 0 0 16px; }

.prose h2 { font-size: 36px; margin-bottom: 18px; }

/* News */
.news-card {
  background: var(--rb-paper);
  border: 1px solid var(--rb-line);
  border-radius: var(--rb-radius);
  padding: 22px;
  box-shadow: var(--rb-shadow-sm);
}

.news-card h3 {
  margin: 0 0 14px;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rb-muted);
}

.news-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.news-card li + li { border-top: 1px solid var(--rb-line); }

.news-card a {
  display: block;
  padding: 14px 0;
  color: var(--rb-ink);
  font-weight: 650;
  font-family: var(--rb-display);
}

.news-card a:hover { color: var(--rb-red); }

.news-card small {
  display: block;
  margin-top: 4px;
  color: var(--rb-muted);
  font-weight: 400;
  font-size: 13px;
}

/* Cards */
.cards-4,
.cards-3,
.cards-2 {
  display: grid;
  gap: 18px;
}

.cards-4 { grid-template-columns: repeat(4, 1fr); }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-2 { grid-template-columns: 1.15fr 0.85fr; }

.card {
  background: #fff;
  border: 1px solid var(--rb-line);
  border-radius: var(--rb-radius);
  padding: 24px;
  box-shadow: var(--rb-shadow-sm);
}

.card h3 {
  font-size: 22px;
  margin: 0 0 10px;
}

.card p {
  margin: 0;
  color: var(--rb-ink-soft);
  font-size: 15.5px;
}

a.card {
  display: flex;
  flex-direction: column;
  color: var(--rb-ink) !important;
  text-decoration: none !important;
  transition: border-color .2s ease, transform .2s ease;
}

a.card:hover {
  border-color: var(--rb-red);
  transform: translateY(-2px);
  color: var(--rb-ink) !important;
}

a.card .card-link {
  margin-top: auto;
  padding-top: 16px;
  color: var(--rb-red);
  font: 700 14px/1 var(--rb-display);
}

.content a.card p { margin: 0; }

.feature-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-bottom: 16px;
  border-radius: 10px;
  background: var(--rb-red-soft);
  color: var(--rb-red);
  font: 750 13px/1 var(--rb-display);
}

/* System block */
.system-visual {
  background: linear-gradient(180deg, #f7f8fa 0%, #eef0f3 100%);
  border: 1px solid var(--rb-line);
  border-radius: 22px;
  padding: 18px;
  min-height: 100%;
  display: flex;
  align-items: center;
}

.system-visual img {
  width: 100%;
  height: auto;
  display: block;
}

.protocol-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--rb-canvas);
  border: 1px solid var(--rb-line);
  color: var(--rb-ink-soft);
  font: 650 12px/1 var(--rb-display);
  letter-spacing: 0.04em;
}

/* Project mosaic */
.project-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-template-rows: 220px 220px;
  gap: 14px;
}

.project-grid a {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  display: block;
  color: #fff !important;
}

.project-grid a:first-child {
  grid-row: 1 / span 2;
}

.project-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.03);
  transition: transform .5s ease;
}

.project-grid a:hover img { transform: scale(1.08); }

.project-grid span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 18px 18px 16px;
  background: linear-gradient(180deg, transparent, rgba(10, 12, 16, 0.78));
  font: 700 16px/1.2 var(--rb-display);
}

/* Link tiles */
.tile-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.tile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 72px;
  padding: 16px 18px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--rb-line);
  color: var(--rb-ink) !important;
  font: 650 16px/1.3 var(--rb-display);
}

.tile:hover {
  border-color: var(--rb-red);
  color: var(--rb-red-dark) !important;
}

.tile i {
  font-style: normal;
  color: var(--rb-red);
  font-weight: 700;
}

/* CTA band */
.cta-band {
  background:
    radial-gradient(circle at 80% 20%, rgba(196, 22, 28, 0.22), transparent 42%),
    var(--rb-ink);
  color: #fff;
}

.cta-band h2 { color: #fff; font-size: 34px; margin: 0 0 10px; }

.cta-band p { margin: 0 0 22px; color: rgba(255, 255, 255, 0.74); max-width: 46ch; }

/* Footer */
.site-footer {
  background: var(--rb-red);
  color: #fff;
  padding: 56px 0 28px;
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

.site-footer h3 {
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 14px;
}

.site-footer a { color: #fff; }

.site-footer a:hover { color: #fff; opacity: 0.85; }

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li + li { margin-top: 8px; }

.footer-brand img {
  height: 48px;
  width: auto;
  margin-bottom: 14px;
  background: #fff;
  padding: 8px 12px;
  border-radius: 8px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 18px;
}

.footer-nav { display: flex; gap: 18px; }

#top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: #fff;
  color: var(--rb-red);
  cursor: pointer;
  font-size: 18px;
  display: none;
  z-index: 50;
  box-shadow: var(--rb-shadow-sm);
}

#top.show { display: block; }

.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 90;
  width: min(var(--rb-wrap), calc(100% - 32px));
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 4px 18px;
  align-items: center;
  padding: 18px 18px 18px 16px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px) saturate(1.2);
  border: 1px solid var(--rb-line);
  border-radius: var(--rb-radius);
  box-shadow: var(--rb-shadow);
  transform: translateX(-50%);
  animation: cookie-in 0.45s ease;
  overflow: hidden;
}

.cookie-banner::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: var(--rb-red);
}

.cookie-banner-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--rb-red-soft);
  color: var(--rb-red);
  flex-shrink: 0;
}

.cookie-banner-icon svg {
  width: 22px;
  height: 22px;
}

.cookie-banner-copy { min-width: 0; }

.cookie-banner-kicker {
  margin: 0 0 4px;
  color: var(--rb-red);
  font: 700 11px/1 var(--rb-display);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.cookie-banner-title {
  margin: 0 0 4px;
  color: var(--rb-ink);
  font: 700 16px/1.25 var(--rb-display);
  letter-spacing: -0.02em;
}

.cookie-banner-text {
  margin: 0;
  color: var(--rb-ink-soft);
  font-size: 14px;
  line-height: 1.45;
}

.cookie-banner-text a {
  color: var(--rb-red);
  font-weight: 650;
}

.cookie-banner-text a:hover { color: var(--rb-red-dark); }

.cookie-banner-actions { display: flex; align-items: center; }

.cookie-banner-ok {
  min-height: 42px;
  padding: 0 20px;
  white-space: nowrap;
}

body.cookie-banner-open #top.show { bottom: 118px; }

@keyframes cookie-in {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

@media (max-width: 860px) {
  .cookie-banner {
    width: calc(100% - 24px);
    bottom: 12px;
    grid-template-columns: auto minmax(0, 1fr);
    padding: 16px;
  }
  .cookie-banner-actions {
    grid-column: 1 / -1;
  }
  .cookie-banner-ok { width: 100%; }
  body.cookie-banner-open #top.show { bottom: 196px; }
}

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 24px;
  cursor: zoom-out;
}

.lightbox.open { display: flex; }

.lightbox img {
  max-width: 96vw;
  max-height: 92vh;
  object-fit: contain;
}

/* Inner pages */
.main {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  padding: 36px 0 72px;
  align-items: start;
}

.main:has(article + aside) {
  grid-template-columns: minmax(0, 1fr) 280px;
}

.main > aside:first-of-type { display: none; }

.content {
  background: #fff;
  border: 1px solid var(--rb-line);
  border-radius: var(--rb-radius);
  padding: 32px 36px 44px;
  box-shadow: var(--rb-shadow-sm);
  min-height: 420px;
}

.content p,
.content td,
.content li,
.content span,
.content font {
  font-family: inherit !important;
}

.content span[style*="font-size"],
.content p[style*="font-size"],
.content td[style*="font-size"],
.content font {
  font-size: 1em !important;
}

.content p { margin: 0 0 14px; color: var(--rb-ink-soft); }
.content img { border-radius: 12px; }
.content table { border-collapse: collapse; }
.content td { vertical-align: middle; padding: 8px 12px 8px 0; }

.content h1.title {
  font-size: clamp(28px, 3.2vw, 40px);
  color: var(--rb-ink);
  border: 0;
  padding: 0;
  margin: 0 0 8px;
}

.content h1.title::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  margin: 14px 0 22px;
  background: var(--rb-red);
  border-radius: 2px;
}

.content h2 {
  font-size: 20px;
  margin: 28px 0 10px;
  color: var(--rb-ink);
}

.content code {
  font-size: 0.92em;
  background: var(--rb-canvas);
  border: 1px solid var(--rb-line);
  border-radius: 6px;
  padding: 1px 6px;
}

.breadcrumb {
  color: var(--rb-muted);
  margin-bottom: 10px;
  font-size: 13px;
  letter-spacing: 0.04em;
}

.breadcrumb a { color: var(--rb-muted); }
.breadcrumb a:hover { color: var(--rb-red); }

.mod {
  background: #fff;
  border: 1px solid var(--rb-line);
  border-radius: var(--rb-radius);
  margin-bottom: 16px;
  box-shadow: var(--rb-shadow-sm);
  overflow: hidden;
}

.mod h3 {
  background: transparent;
  color: var(--rb-muted);
  margin: 0;
  padding: 16px 18px 8px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.mod ul { list-style: none; margin: 0; padding: 4px 8px 12px; }

.mod li a {
  display: block;
  padding: 8px 10px;
  color: var(--rb-ink);
  border-radius: 8px;
  border-bottom: 0;
  font-size: 15px;
}

.mod li a:hover,
.mod li a.active {
  color: var(--rb-red-dark);
  background: var(--rb-red-soft);
  text-decoration: none;
}

.ref-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.ref-list a {
  display: block;
  padding: 0;
  background: #fff;
  color: var(--rb-ink);
  border: 1px solid var(--rb-line);
  border-left: 1px solid var(--rb-line);
  border-radius: 14px;
  overflow: hidden;
}

.ref-list a:hover {
  background: #fff;
  border-color: var(--rb-red);
  text-decoration: none;
  color: var(--rb-red-dark);
}

.ref-card {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 150px auto;
  gap: 0;
  align-items: stretch;
  min-height: 0;
  padding: 0 !important;
}

.ref-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
  background: #ddd;
}

.ref-card span {
  padding: 14px 16px;
  font-family: var(--rb-display);
  font-weight: 700;
}

.ref-card.no-photo {
  grid-template-columns: 1fr;
  grid-template-rows: auto;
  padding: 16px !important;
}

.ref-photos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
  margin: 0 0 22px;
}

.ref-photos a {
  display: block;
  background: #f4f4f4;
  border: 0;
  border-radius: 14px;
  overflow: hidden;
}

.ref-photos img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.gallery-index h2 {
  margin: 28px 0 10px;
  font-size: 18px;
}

.gallery-index h2 a { color: var(--rb-ink); }
.gallery-index h2 a:hover { color: var(--rb-red); }

.dl-list { width: 100%; border-collapse: collapse; margin-top: 8px; }

.dl-list th {
  text-align: left;
  background: var(--rb-ink);
  color: #fff;
  padding: 12px 14px;
  font-family: var(--rb-display);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dl-list td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--rb-line);
}

.dl-list a { font-weight: 650; }

.form {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  max-width: 520px;
  width: 100%;
}

.form label {
  display: block;
  margin: 0 0 14px;
  font-weight: 700;
  font-family: var(--rb-display);
  font-size: 14px;
}

.form input,
.form textarea {
  width: 100%;
  max-width: none;
  margin-top: 6px;
  border: 1px solid var(--rb-line-strong);
  border-radius: 12px;
  padding: 12px 14px;
  font: 400 16px/1.4 var(--rb-font);
  background: #fff;
  display: block;
}

.form input:focus,
.form textarea:focus {
  outline: 2px solid var(--rb-red);
  outline-offset: 1px;
  border-color: var(--rb-red);
}

.form textarea { min-height: 140px; resize: vertical; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 14px;
}

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 500;
  font-family: var(--rb-font);
  font-size: 14px;
  line-height: 1.45;
  color: var(--rb-ink-soft);
}

.form-consent input[type="checkbox"] {
  width: auto;
  margin: 3px 0 0;
  flex-shrink: 0;
}

.form-recaptcha {
  margin: 2px 0 12px;
}

.form-recaptcha:empty {
  display: none;
}

.form-recaptcha-error {
  margin: -4px 0 12px;
  color: var(--rb-red-dark);
  font: 650 14px/1.4 var(--rb-font);
}

.form-recaptcha-note {
  margin: -2px 0 16px;
  color: var(--rb-ink-soft);
  font: 500 13px/1.45 var(--rb-font);
}

.form button {
  margin-top: 4px;
  align-self: flex-start;
  background: var(--rb-red);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 12px 22px;
  cursor: pointer;
  font: 650 14px/1 var(--rb-display);
  display: inline-flex;
  align-items: center;
}

.form button:hover { background: var(--rb-red-dark); }

.contact-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(0, 1.18fr);
  gap: 28px;
  align-items: start;
}

.contact-card {
  background: var(--rb-canvas);
  border: 1px solid var(--rb-line);
  border-radius: var(--rb-radius);
  padding: 26px 24px 24px;
}

.contact-card .eyebrow { margin-bottom: 10px; }

.contact-card h2 {
  font-size: 22px;
  margin: 0 0 10px;
}

.content .contact-address {
  margin: 0 0 22px;
  color: var(--rb-ink-soft);
  line-height: 1.55;
}

.contact-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.contact-links a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid var(--rb-line);
  border-radius: 12px;
  color: var(--rb-ink) !important;
  font: 650 15px/1.3 var(--rb-display);
}

.contact-links a:hover {
  border-color: var(--rb-red);
  color: var(--rb-red-dark) !important;
}

.contact-ico {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--rb-red-soft);
  color: var(--rb-red);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-ico svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.contact-form-wrap .eyebrow { margin-bottom: 8px; }

.contact-form-wrap > p { margin-bottom: 18px; }

.contact-layout .form { max-width: none; }

@media (max-width: 1120px) {
  .header-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    min-height: 64px;
    gap: 8px 12px;
  }
  .logo { min-width: 0; }
  .logo img { height: 42px; max-width: 100%; width: auto; }
  .header-tools {
    display: flex;
    grid-column: 1 / -1;
    margin-left: 0;
    width: 100%;
    padding-bottom: 10px;
  }
  .header-tools .btn { display: none; }
  .search-box { width: 100%; }
  .search-box input[type="search"] { width: 100%; flex: 1; }
  .nav-toggle { display: flex; }
  .topnav {
    display: none;
    grid-column: 1 / -1;
    padding-bottom: 12px;
  }
  .topnav.open { display: block; }
  .topnav ul { flex-direction: column; align-items: stretch; }
  .topnav .sub {
    position: static;
    display: block;
    box-shadow: none;
    border: 0;
    padding: 0 0 8px 8px;
    background: transparent;
  }
  .topnav .sub a { color: var(--rb-ink-soft) !important; text-transform: none; }
  .nav-cta { display: list-item; }
}

@media (max-width: 1080px) {
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat,
  .stat:first-child { border-left: 0; border-top: 1px solid rgba(255,255,255,.1); padding: 22px 12px; }
  .stat:nth-child(-n+2) { border-top: 0; }
  .split,
  .cards-2,
  .footer-grid,
  .main,
  .contact-layout { grid-template-columns: 1fr; }
  .project-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 240px 180px 180px;
  }
  .project-grid a:first-child { grid-column: 1 / -1; grid-row: auto; }
}

@media (max-width: 860px) {
  .wrap { width: min(calc(100% - 32px), var(--rb-wrap)); }
  .logo img { height: 38px; }
  .hero { min-height: 72vh; }
  .slide-caption {
    left: 16px;
    right: 16px;
    bottom: 72px;
  }
  .slide-caption h1,
  .slide-caption .slide-title { font-size: 34px; }
  .section { padding: 56px 0; }
  .section-head { align-items: start; }
  .tile-list,
  .cards-4,
  .cards-3 { grid-template-columns: 1fr; }
  .project-grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }
  .project-grid a { min-height: 200px; }
  .stat-brand { padding: 22px 12px; }
  .stat-brand img { width: auto; height: 48px; }
  .content { padding: 24px 20px 32px; }
  .main { padding: 24px 0 48px; }
  .contact-layout { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .slide,
  .project-grid img,
  .btn { transition: none; }
  .cookie-banner { animation: none; }
}
