/*
 * Rooftop BIM shared experience layer.
 * This stylesheet is intentionally loaded only by modern-layout.pug and the
 * public landing page. The Project Viewer continues to use layout.pug.
 */

.rt-modern-site {
  --rt-ink: #102019;
  --rt-ink-soft: #34463c;
  --rt-muted: #66756c;
  --rt-line: rgba(20, 55, 39, 0.13);
  --rt-line-strong: rgba(20, 55, 39, 0.22);
  --rt-surface: #f3f7f4;
  --rt-surface-raised: #ffffff;
  --rt-surface-tint: #eaf2ed;
  --rt-forest: #071a12;
  --rt-forest-soft: #0d291c;
  --rt-green: #24b978;
  --rt-green-bright: #3bd994;
  --rt-green-dark: #17744d;
  --rt-blue: #3a7ca5;
  --rt-gold: #d4a749;
  --rt-danger: #b42318;
  --rt-radius-sm: 10px;
  --rt-radius: 16px;
  --rt-radius-lg: 24px;
  --rt-shadow-sm: 0 8px 24px rgba(7, 26, 18, 0.07);
  --rt-shadow: 0 20px 56px rgba(7, 26, 18, 0.11);
  --rt-shadow-lg: 0 34px 90px rgba(7, 26, 18, 0.18);
  --rt-ease: cubic-bezier(.2, .75, .25, 1);
  min-height: 100vh;
  margin: 0;
  color: var(--rt-ink);
  background:
    radial-gradient(circle at 4% 4%, rgba(36, 185, 120, 0.08), transparent 24rem),
    linear-gradient(180deg, #f8faf8 0%, var(--rt-surface) 100%);
  font-family: "Aptos", "Inter", "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.rt-modern-site *,
.rt-modern-site *::before,
.rt-modern-site *::after {
  box-sizing: border-box;
}

.rt-modern-site ::selection {
  color: #fff;
  background: var(--rt-green-dark);
}

.rt-modern-site a {
  text-underline-offset: 3px;
}

.rt-modern-site button,
.rt-modern-site input,
.rt-modern-site select,
.rt-modern-site textarea {
  font: inherit;
}

.rt-modern-site :focus-visible {
  outline: 3px solid rgba(36, 185, 120, 0.45);
  outline-offset: 3px;
}

.rt-modern-site img {
  max-width: 100%;
}

.rt-modern-site::-webkit-scrollbar,
.rt-modern-site *::-webkit-scrollbar {
  width: 11px;
  height: 11px;
}

.rt-modern-site::-webkit-scrollbar-thumb,
.rt-modern-site *::-webkit-scrollbar-thumb {
  border: 3px solid transparent;
  border-radius: 999px;
  background: rgba(23, 116, 77, 0.48);
  background-clip: padding-box;
}

.rt-page-root {
  min-height: 100vh;
}

.rt-skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 10000;
  padding: 10px 14px;
  border-radius: var(--rt-radius-sm);
  color: #fff;
  background: var(--rt-forest);
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.rt-skip-link:focus {
  color: #fff;
  transform: translateY(0);
}

.rt-scroll-progress {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 9999;
  width: var(--rt-scroll-progress, 0%);
  height: 3px;
  background: linear-gradient(90deg, var(--rt-green), var(--rt-green-bright), var(--rt-gold));
  box-shadow: 0 0 18px rgba(59, 217, 148, 0.5);
  pointer-events: none;
}

.rt-pointer-glow {
  position: fixed;
  z-index: 0;
  width: 360px;
  height: 360px;
  margin: -180px 0 0 -180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(36, 185, 120, 0.08), transparent 68%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease;
}

.rt-has-pointer .rt-pointer-glow {
  opacity: 1;
}

/* Shared controls */
.rt-modern-site .btn,
.rt-modern-site button:not(.btn-close):not(.rt-gallery-dot):not(.nav-button) {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  font-weight: 720;
  letter-spacing: -0.01em;
  transition:
    color 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 220ms var(--rt-ease),
    transform 220ms var(--rt-ease);
}

.rt-modern-site .btn:hover,
.rt-modern-site button:not(.btn-close):not(.rt-gallery-dot):not(.nav-button):hover {
  transform: translateY(-2px);
}

.rt-modern-site .btn-green,
.rt-modern-site .btn-primary,
.rt-modern-site .nav-button.active {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(135deg, #1e6f4c 0%, #125338 100%);
  box-shadow: 0 12px 28px rgba(23, 116, 77, 0.2);
}

.rt-modern-site .btn-green:hover,
.rt-modern-site .btn-primary:hover {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(135deg, #277d58 0%, #0d492f 100%);
  box-shadow: 0 16px 34px rgba(23, 116, 77, 0.28);
}

.rt-modern-site .btn-soft,
.rt-modern-site .btn-light,
.rt-modern-site .btn-outline-secondary {
  border: 1px solid var(--rt-line-strong);
  color: var(--rt-ink);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 6px 18px rgba(7, 26, 18, 0.04);
}

.rt-modern-site .btn-soft:hover,
.rt-modern-site .btn-light:hover,
.rt-modern-site .btn-outline-secondary:hover {
  color: var(--rt-green-dark);
  border-color: rgba(36, 185, 120, 0.36);
  background: #fff;
}

.rt-modern-site .form-control,
.rt-modern-site .form-select,
.rt-modern-site input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.rt-modern-site select,
.rt-modern-site textarea {
  min-height: 48px;
  border: 1px solid var(--rt-line-strong);
  border-radius: 12px;
  color: var(--rt-ink);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.rt-modern-site textarea {
  min-height: 120px;
  resize: vertical;
}

.rt-modern-site .form-control:focus,
.rt-modern-site .form-select:focus,
.rt-modern-site input:focus,
.rt-modern-site select:focus,
.rt-modern-site textarea:focus {
  color: var(--rt-ink);
  border-color: var(--rt-green);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(36, 185, 120, 0.12);
  outline: 0;
}

.rt-modern-site .form-label,
.rt-modern-site label {
  color: var(--rt-ink-soft);
  font-weight: 700;
}

.rt-modern-site .modal-content {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--rt-radius-lg);
  color: var(--rt-ink);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--rt-shadow-lg);
}

.rt-modern-site .modal-header,
.rt-modern-site .modal-footer {
  border-color: var(--rt-line);
  padding: 20px 22px;
}

.rt-modern-site .modal-body {
  padding: 22px;
}

.rt-modern-site .table {
  margin: 0;
  color: var(--rt-ink);
  vertical-align: middle;
}

.rt-modern-site .table > :not(caption) > * > * {
  padding: 14px 16px;
  border-bottom-color: var(--rt-line);
  background: transparent;
}

.rt-modern-site .table thead th {
  color: var(--rt-muted);
  background: #f5f8f6;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  white-space: nowrap;
}

.rt-modern-site .table tbody tr {
  transition: background 160ms ease;
}

.rt-modern-site .table tbody tr:hover {
  background: rgba(36, 185, 120, 0.045);
}

.rt-modern-site .table-striped > tbody > tr:nth-of-type(odd) > * {
  --bs-table-accent-bg: rgba(20, 55, 39, 0.018);
  color: var(--rt-ink);
}

.rt-ripple {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.48);
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0);
  animation: rtRipple 650ms ease-out forwards;
}

@keyframes rtRipple {
  to {
    opacity: 0;
    transform: translate(-50%, -50%) scale(28);
  }
}

/* Public landing page */
.rt-modern-site .site-shell {
  position: relative;
  overflow: clip;
}

.rt-modern-site .container {
  width: min(1200px, calc(100% - 44px));
}

.rt-modern-site .site-header {
  position: fixed;
  inset: 14px auto auto 50%;
  z-index: 100;
  width: min(1200px, calc(100% - 28px));
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background: rgba(7, 26, 18, 0.72);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(22px) saturate(135%);
  transform: translateX(-50%);
  transition: background 240ms ease, box-shadow 240ms ease, transform 240ms var(--rt-ease);
}

.rt-modern-site .site-header.is-scrolled {
  background: rgba(7, 26, 18, 0.92);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);
}

.rt-modern-site .site-header .container {
  width: 100%;
  padding: 0 18px;
}

.rt-modern-site .nav {
  min-height: 64px;
}

.rt-modern-site .brand {
  gap: 11px;
  color: inherit;
  font-weight: 820;
  letter-spacing: -0.025em;
}

.rt-modern-site .brand img,
.rt-modern-site .brand-link img,
.rt-modern-site .panel-logo {
  border-radius: 11px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.rt-modern-site .nav-links {
  gap: 6px;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
}

.rt-modern-site .nav-links a {
  position: relative;
  padding: 8px 10px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 680;
  transform: none;
}

.rt-modern-site .nav-links a:hover,
.rt-modern-site .nav-links a.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  transform: none;
}

.rt-modern-site .nav-links a.is-active::after {
  content: "";
  position: absolute;
  inset: auto 10px 4px;
  height: 2px;
  border-radius: 999px;
  background: var(--rt-green-bright);
}

.rt-modern-site .nav-actions .btn {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  font-size: 13px;
}

.rt-modern-site .nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.rt-modern-site .nav-toggle-lines,
.rt-modern-site .nav-toggle-lines::before,
.rt-modern-site .nav-toggle-lines::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 99px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.rt-modern-site .nav-toggle-lines {
  position: relative;
  margin: 0 auto;
}

.rt-modern-site .nav-toggle-lines::before,
.rt-modern-site .nav-toggle-lines::after {
  content: "";
  position: absolute;
  left: 0;
}

.rt-modern-site .nav-toggle-lines::before { top: -6px; }
.rt-modern-site .nav-toggle-lines::after { top: 6px; }

.rt-modern-site .nav-toggle[aria-expanded="true"] .nav-toggle-lines { background: transparent; }
.rt-modern-site .nav-toggle[aria-expanded="true"] .nav-toggle-lines::before { top: 0; transform: rotate(45deg); }
.rt-modern-site .nav-toggle[aria-expanded="true"] .nav-toggle-lines::after { top: 0; transform: rotate(-45deg); }

.rt-modern-site .hero {
  min-height: 96svh;
  padding: 128px 0 72px;
  background: var(--rt-forest);
}

.rt-modern-site .hero::before {
  background: url("/assets/images/image-17.webp") 50% 45% / cover no-repeat;
  animation: rtHeroZoom 22s ease-in-out infinite alternate;
}

.rt-modern-site .hero::after {
  background:
    radial-gradient(circle at 77% 24%, rgba(59, 217, 148, 0.19), transparent 30%),
    linear-gradient(90deg, rgba(3, 16, 10, 0.95) 0%, rgba(4, 21, 14, 0.8) 49%, rgba(5, 25, 17, 0.46) 100%),
    linear-gradient(180deg, rgba(4, 16, 11, 0.08) 0%, rgba(3, 17, 11, 0.9) 100%);
}

@keyframes rtHeroZoom {
  from { transform: scale(1.02); }
  to { transform: scale(1.085); }
}

.rt-modern-site .hero .container {
  position: relative;
}

.rt-modern-site .hero .container::before {
  content: "";
  position: absolute;
  inset: -50px -120px auto auto;
  width: 480px;
  height: 480px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  box-shadow:
    0 0 0 70px rgba(255, 255, 255, 0.018),
    0 0 0 140px rgba(255, 255, 255, 0.014);
  pointer-events: none;
}

.rt-modern-site .hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.72fr);
  gap: clamp(34px, 6vw, 84px);
  align-items: center;
}

.rt-modern-site .hero-content {
  max-width: 780px;
  padding: 0;
}

.rt-modern-site .eyebrow,
.rt-modern-site .kicker,
.rt-modern-site .rt-page-kicker,
.rt-modern-site .rt-auth-kicker {
  letter-spacing: 0.13em;
  font-weight: 820;
}

.rt-modern-site .eyebrow::before {
  width: 38px;
  height: 2px;
  background: linear-gradient(90deg, var(--rt-green-bright), var(--rt-gold));
}

.rt-modern-site .hero h1 {
  max-width: 760px;
  font-size: clamp(52px, 7.8vw, 94px);
  line-height: 0.92;
  letter-spacing: -0.065em;
  text-wrap: balance;
}

.rt-modern-site .hero h1 .hero-accent {
  display: block;
  color: var(--rt-green-bright);
}

.rt-modern-site .hero-copy {
  max-width: 680px;
  margin: 26px 0 34px;
  color: rgba(255, 255, 255, 0.74);
  font-size: clamp(17px, 1.7vw, 20px);
  line-height: 1.7;
}

.rt-modern-site .hero-actions .btn {
  min-height: 50px;
  padding: 0 20px;
  border-radius: 13px;
}

.rt-modern-site .hero-metrics {
  width: 100%;
  margin-top: 44px;
  border-color: rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.075);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.rt-modern-site .metric {
  position: relative;
  padding: 18px 20px;
  background: rgba(4, 20, 13, 0.38);
}

.rt-modern-site .metric strong {
  color: #fff;
  font-size: 22px;
  letter-spacing: -0.035em;
}

.rt-modern-site .hero-insight {
  position: relative;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 24px;
  padding: 14px;
  background: rgba(8, 31, 21, 0.66);
  box-shadow: 0 38px 90px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(20px) saturate(135%);
}

.rt-modern-site .hero-insight::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(145deg, rgba(59, 217, 148, 0.22), transparent 44%, rgba(212, 167, 73, 0.12));
}

.rt-modern-site .insight-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 10px 14px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 12px;
  font-weight: 760;
}

.rt-modern-site .insight-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.rt-modern-site .insight-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rt-green-bright);
  box-shadow: 0 0 0 5px rgba(59, 217, 148, 0.12), 0 0 14px rgba(59, 217, 148, 0.8);
  animation: rtPulse 2s ease-in-out infinite;
}

@keyframes rtPulse {
  50% { box-shadow: 0 0 0 9px rgba(59, 217, 148, 0), 0 0 18px rgba(59, 217, 148, 0.5); }
}

.rt-modern-site .blueprint-window {
  position: relative;
  min-height: 310px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 17px;
  background:
    linear-gradient(rgba(59, 217, 148, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 217, 148, 0.055) 1px, transparent 1px),
    radial-gradient(circle at 70% 30%, rgba(58, 124, 165, 0.24), transparent 36%),
    #071b13;
  background-size: 22px 22px, 22px 22px, auto, auto;
}

.rt-modern-site .blueprint-shape {
  position: absolute;
  border: 1px solid rgba(126, 231, 180, 0.44);
  background: rgba(59, 217, 148, 0.035);
}

.rt-modern-site .blueprint-shape.one {
  inset: 52px 48px 64px 62px;
  transform: skewY(-6deg);
}

.rt-modern-site .blueprint-shape.two {
  inset: 91px 84px 96px 98px;
  border-color: rgba(103, 176, 219, 0.55);
  transform: skewY(-6deg);
}

.rt-modern-site .blueprint-shape.three {
  top: 38px;
  right: 48px;
  width: 72px;
  height: 190px;
  border-color: rgba(212, 167, 73, 0.42);
  transform: skewY(-6deg);
}

.rt-modern-site .blueprint-line {
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  background: linear-gradient(transparent, var(--rt-green-bright), transparent);
  box-shadow: 0 0 22px rgba(59, 217, 148, 0.72);
  animation: rtScan 4.4s var(--rt-ease) infinite;
}

@keyframes rtScan {
  0%, 8% { left: 6%; opacity: 0; }
  16% { opacity: 1; }
  78% { opacity: 1; }
  90%, 100% { left: 94%; opacity: 0; }
}

.rt-modern-site .blueprint-label {
  position: absolute;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(59, 217, 148, 0.34);
  border-radius: 8px;
  color: #c8f8df;
  background: rgba(7, 26, 18, 0.86);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
  font-size: 11px;
  font-weight: 760;
}

.rt-modern-site .blueprint-label.top { top: 28px; left: 24px; }
.rt-modern-site .blueprint-label.bottom { right: 24px; bottom: 22px; }

.rt-modern-site .insight-footer {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding-top: 10px;
}

.rt-modern-site .insight-stat {
  padding: 11px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.52);
  background: rgba(255, 255, 255, 0.045);
  font-size: 10px;
  text-transform: uppercase;
}

.rt-modern-site .insight-stat strong {
  display: block;
  margin-bottom: 4px;
  color: #fff;
  font-size: 15px;
  letter-spacing: -0.02em;
  text-transform: none;
}

.rt-modern-site .section {
  position: relative;
  padding: clamp(78px, 9vw, 118px) 0;
}

.rt-modern-site .section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(20, 55, 39, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 55, 39, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, transparent, #000 16%, #000 84%, transparent);
}

.rt-modern-site .section-head {
  margin-bottom: 46px;
}

.rt-modern-site .section h2,
.rt-modern-site .contact h2 {
  font-size: clamp(34px, 4.6vw, 58px);
  line-height: 1.03;
  letter-spacing: -0.05em;
  text-wrap: balance;
}

.rt-modern-site .section-lead,
.rt-modern-site .rt-lead {
  color: var(--rt-muted);
  font-size: 16px;
  line-height: 1.75;
}

.rt-modern-site .service-grid {
  gap: 20px;
}

.rt-modern-site .service-card,
.rt-modern-site .work-card,
.rt-modern-site .rt-feature-card,
.rt-modern-site .rt-callout,
.rt-modern-site .contact-panel,
.rt-modern-site .project-card,
.rt-modern-site .card,
.rt-modern-site .panel,
.rt-modern-site .reset-panel,
.rt-modern-site .login-panel {
  border: 1px solid var(--rt-line);
  border-radius: var(--rt-radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--rt-shadow-sm);
}

.rt-modern-site .service-card {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  padding: 30px;
  transform: perspective(900px) rotateX(var(--rt-rotate-x, 0deg)) rotateY(var(--rt-rotate-y, 0deg)) translateY(var(--rt-lift, 0));
  transform-style: preserve-3d;
}

.rt-modern-site .service-card::after {
  content: "↗";
  position: absolute;
  right: 24px;
  bottom: 22px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--rt-line);
  border-radius: 50%;
  color: var(--rt-green-dark);
  background: var(--rt-surface-tint);
  font-size: 18px;
  transition: color 180ms ease, background 180ms ease, transform 220ms var(--rt-ease);
}

.rt-modern-site .service-card:hover {
  --rt-lift: -8px;
  border-color: rgba(36, 185, 120, 0.38);
  box-shadow: var(--rt-shadow);
}

.rt-modern-site .service-card:hover::after {
  color: #fff;
  background: var(--rt-green-dark);
  transform: rotate(45deg);
}

.rt-modern-site .service-icon {
  width: 58px;
  height: 58px;
  border: 1px solid rgba(36, 185, 120, 0.2);
  border-radius: 16px;
  color: var(--rt-green-dark);
  background: linear-gradient(145deg, #effaf4, #dff1e7);
  box-shadow: inset 0 1px 0 #fff;
}

.rt-modern-site .service-card h3,
.rt-modern-site .work-card h3 {
  letter-spacing: -0.035em;
}

.rt-modern-site .showcase {
  gap: 24px;
}

.rt-modern-site .showcase-media,
.rt-modern-site .rt-device,
.rt-modern-site .rt-compliance-image,
.rt-modern-site .rt-gallery-card {
  border-radius: var(--rt-radius-lg);
  box-shadow: var(--rt-shadow);
}

.rt-modern-site .showcase-media {
  min-height: 520px;
}

.rt-modern-site .showcase-media img {
  filter: saturate(0.9) contrast(1.03);
}

.rt-modern-site .work-card {
  min-height: 142px;
  padding: 20px;
  border-radius: var(--rt-radius);
  transition: transform 220ms var(--rt-ease), border-color 180ms ease, box-shadow 220ms ease;
}

.rt-modern-site .work-card:hover {
  border-color: rgba(36, 185, 120, 0.32);
  box-shadow: var(--rt-shadow);
  transform: translateX(6px);
}

.rt-modern-site .work-card img {
  border-radius: 13px;
}

.rt-modern-site .rt-overview {
  background:
    radial-gradient(circle at 85% 20%, rgba(36, 185, 120, 0.09), transparent 30rem),
    linear-gradient(180deg, #fff, #f1f7f3);
}

.rt-modern-site .rt-callout,
.rt-modern-site .rt-feature-card {
  border-radius: 16px;
}

.rt-modern-site .rt-callout {
  padding: 18px 20px 18px 54px;
  transition: transform 200ms var(--rt-ease), border-color 180ms ease, box-shadow 200ms ease;
}

.rt-modern-site .rt-callout:hover {
  border-color: rgba(36, 185, 120, 0.38);
  box-shadow: var(--rt-shadow-sm);
  transform: translateX(5px);
}

.rt-modern-site .rt-callout::before {
  top: 18px;
  left: 18px;
  background: linear-gradient(135deg, #1e6f4c, #125338);
}

.rt-modern-site .rt-feature-card {
  position: relative;
  overflow: hidden;
  min-height: 208px;
  padding: 24px;
  transition: transform 220ms var(--rt-ease), box-shadow 220ms ease;
}

.rt-modern-site .rt-feature-card::after {
  content: "";
  position: absolute;
  inset: auto -28px -44px auto;
  width: 110px;
  height: 110px;
  border: 18px solid rgba(36, 185, 120, 0.06);
  border-radius: 50%;
}

.rt-modern-site .rt-feature-card:hover {
  box-shadow: var(--rt-shadow);
  transform: translateY(-5px);
}

.rt-modern-site .rt-settlement {
  background:
    radial-gradient(circle at 76% 18%, rgba(59, 217, 148, 0.12), transparent 34rem),
    linear-gradient(145deg, #06170f, #0d2a1c 60%, #071a12);
}

.rt-modern-site .rt-settlement .rt-callout,
.rt-modern-site .rt-proof {
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.065);
  backdrop-filter: blur(16px);
}

.rt-modern-site .rt-gallery-dot {
  border-radius: 999px;
  transition: width 220ms var(--rt-ease), background 180ms ease, box-shadow 180ms ease;
}

.rt-modern-site .rt-gallery-dot.is-active {
  background: var(--rt-green-bright);
  box-shadow: 0 0 16px rgba(59, 217, 148, 0.48);
}

.rt-modern-site .rt-gallery-pause {
  min-height: 30px;
  margin-left: auto;
  padding: 0 11px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.74);
  background: rgba(255, 255, 255, 0.06);
  font-size: 12px;
  font-weight: 720;
}

.rt-modern-site .rt-gallery-pause:hover,
.rt-modern-site .rt-gallery-pause[aria-pressed="true"] {
  color: #fff;
  border-color: rgba(59, 217, 148, 0.42);
  background: rgba(36, 185, 120, 0.18);
}

.rt-modern-site .model-section {
  background:
    radial-gradient(circle at 50% 16%, rgba(36, 185, 120, 0.12), transparent 34rem),
    #06170f;
}

.rt-modern-site .model-stage {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(rgba(59, 217, 148, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 217, 148, 0.04) 1px, transparent 1px),
    #06170f;
  background-size: 42px 42px, 42px 42px, auto;
}

.rt-modern-site .model-chip,
.rt-modern-site .model-toolbar,
.rt-modern-site .model-sidebar {
  border-radius: 15px;
  background: rgba(6, 23, 15, 0.74);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
}

.rt-modern-site .model-toolbar button {
  border-radius: 9px;
}

.rt-modern-site .model-toolbar button:hover,
.rt-modern-site .model-toolbar button.is-active {
  background: linear-gradient(135deg, var(--rt-green), var(--rt-green-dark));
}

.rt-modern-site .logos {
  gap: 12px;
}

.rt-modern-site .logo-tile {
  border-color: var(--rt-line);
  border-radius: 14px;
  filter: grayscale(1);
  transition: filter 220ms ease, transform 220ms var(--rt-ease), box-shadow 220ms ease;
}

.rt-modern-site .logo-tile:hover {
  filter: grayscale(0);
  box-shadow: var(--rt-shadow-sm);
  transform: translateY(-4px);
}

.rt-modern-site .contact {
  background:
    radial-gradient(circle at 10% 20%, rgba(59, 217, 148, 0.12), transparent 28rem),
    linear-gradient(145deg, #06170f, #102e20);
}

.rt-modern-site .contact-panel {
  padding: 28px;
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.965);
  box-shadow: var(--rt-shadow-lg);
}

.rt-modern-site .contact-row {
  border-color: rgba(255, 255, 255, 0.13);
}

.rt-modern-site .site-footer {
  background: #04100b;
}

/* Shared portal shells */
.rt-modern-site .admin-shell,
.rt-modern-site .account-shell,
.rt-modern-site .project-shell {
  position: relative;
  isolation: isolate;
}

.rt-modern-site .admin-shell::before,
.rt-modern-site .account-shell::before,
.rt-modern-site .project-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 78% 8%, rgba(36, 185, 120, 0.1), transparent 28rem),
    linear-gradient(rgba(20, 55, 39, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 55, 39, 0.025) 1px, transparent 1px);
  background-size: auto, 42px 42px, 42px 42px;
}

.rt-modern-site .admin-sidebar {
  width: 264px;
  padding: 24px 18px;
  color: #fff;
  background:
    radial-gradient(circle at 20% 2%, rgba(59, 217, 148, 0.12), transparent 18rem),
    linear-gradient(180deg, #071a12 0%, #0b2418 100%);
  box-shadow: 14px 0 50px rgba(7, 26, 18, 0.08);
}

.rt-modern-site .admin-sidebar .brand {
  min-height: 52px;
  padding: 0 8px 22px;
}

.rt-modern-site .nav-label {
  letter-spacing: 0.13em;
}

.rt-modern-site .nav-button {
  min-height: 46px;
  border-radius: 12px;
  padding: 0 13px;
}

.rt-modern-site .nav-button:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.rt-modern-site .nav-button.active {
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.16);
}

.rt-modern-site .admin-main {
  background: transparent;
}

.rt-modern-site .topbar,
.rt-modern-site .account-topbar,
.rt-modern-site .project-topbar {
  min-height: 76px;
  border-bottom: 1px solid var(--rt-line);
  background: rgba(248, 250, 248, 0.82);
  box-shadow: 0 10px 28px rgba(7, 26, 18, 0.035);
  backdrop-filter: blur(22px) saturate(135%);
}

.rt-modern-site .account-topbar,
.rt-modern-site .project-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
}

.rt-modern-site .admin-content,
.rt-modern-site .account-main,
.rt-modern-site .project-main {
  padding-top: 38px;
}

.rt-modern-site .page-head h1,
.rt-modern-site .page-head h2,
.rt-modern-site .topbar-title {
  letter-spacing: -0.04em;
}

.rt-modern-site .page-head h1,
.rt-modern-site .page-head h2 {
  font-size: clamp(30px, 3vw, 42px);
}

.rt-modern-site .card,
.rt-modern-site .panel,
.rt-modern-site .project-card {
  overflow: hidden;
  border-radius: var(--rt-radius);
  box-shadow: var(--rt-shadow-sm);
  transition: border-color 180ms ease, box-shadow 220ms ease, transform 220ms var(--rt-ease);
}

.rt-modern-site .stat-card:hover,
.rt-modern-site .setting-card:hover,
.rt-modern-site .help-card:hover,
.rt-modern-site .project-card:hover {
  border-color: rgba(36, 185, 120, 0.28);
  box-shadow: var(--rt-shadow);
  transform: translateY(-4px);
}

.rt-modern-site .stat-card {
  position: relative;
  min-height: 138px;
  padding: 22px;
}

.rt-modern-site .stat-card::after {
  content: "";
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rt-green);
  box-shadow: 0 0 0 6px rgba(36, 185, 120, 0.1);
}

.rt-modern-site .stat-label {
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.rt-modern-site .stat-value {
  letter-spacing: -0.05em;
}

.rt-modern-site .panel-head,
.rt-modern-site .panel-header {
  border-bottom-color: var(--rt-line);
  background: linear-gradient(180deg, rgba(248, 250, 248, 0.82), rgba(255, 255, 255, 0));
}

.rt-modern-site .badge-soft,
.rt-modern-site .status-pill,
.rt-modern-site .rt-status-pill {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  width: max-content;
  padding: 4px 10px;
  border: 1px solid rgba(20, 55, 39, 0.08);
  border-radius: 999px;
  color: #52635a;
  background: #edf3ef;
  font-size: 12px;
  font-weight: 760;
}

.rt-modern-site .badge-soft.green,
.rt-modern-site .status-pill.active,
.rt-modern-site .rt-status-pill.is-success {
  color: var(--rt-green-dark);
  background: #dcf6e8;
}

.rt-modern-site .project-grid {
  gap: 22px;
}

.rt-modern-site .project-card {
  transform: perspective(900px) rotateX(var(--rt-rotate-x, 0deg)) rotateY(var(--rt-rotate-y, 0deg)) translateY(var(--rt-lift, 0));
  transform-style: preserve-3d;
}

.rt-modern-site .project-card:hover {
  --rt-lift: -6px;
}

.rt-modern-site .project-card-main {
  padding: 20px;
}

.rt-modern-site .project-cover {
  overflow: hidden;
  border-radius: 14px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.rt-modern-site .stat-pill {
  border-radius: 11px;
  background: #f2f7f3;
}

/* Reusable standalone admin pages */
.rt-page-shell {
  width: min(1240px, calc(100% - 44px));
  margin: 0 auto;
  padding: 38px 0 64px;
}

.rt-page-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 82% 7%, rgba(36, 185, 120, 0.1), transparent 28rem),
    linear-gradient(rgba(20, 55, 39, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 55, 39, 0.025) 1px, transparent 1px);
  background-size: auto, 42px 42px, 42px 42px;
}

.rt-page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.rt-page-kicker {
  margin: 0 0 7px;
  color: var(--rt-green-dark);
  font-size: 12px;
  text-transform: uppercase;
}

.rt-page-title {
  margin: 0;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 820;
  line-height: 1.03;
  letter-spacing: -0.05em;
}

.rt-page-summary {
  max-width: 680px;
  margin: 10px 0 0;
  color: var(--rt-muted);
  font-size: 16px;
}

.rt-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.rt-page-head > .rt-toolbar {
  justify-content: flex-end;
  margin-bottom: 0;
}

.rt-panel {
  overflow: hidden;
  border: 1px solid var(--rt-line);
  border-radius: var(--rt-radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--rt-shadow-sm);
}

.rt-panel-head {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 17px 20px;
  border-bottom: 1px solid var(--rt-line);
  background: linear-gradient(180deg, #f8faf8, rgba(255, 255, 255, 0.4));
}

.rt-panel-title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.rt-panel-copy,
.rt-modal-note,
.rt-empty-hint {
  color: var(--rt-muted);
}

.rt-table-wrap {
  overflow-x: auto;
}

.rt-empty-hint {
  padding: 28px;
  text-align: center;
}

.rt-modal-note {
  margin: 0 0 18px;
  font-size: 14px;
}

/* Authentication and state pages */
.rt-auth-shell {
  position: relative;
  width: min(1120px, calc(100% - 40px));
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 440px);
  gap: clamp(36px, 7vw, 88px);
  align-items: center;
  padding: 56px 0;
}

.rt-auth-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 76% 18%, rgba(59, 217, 148, 0.17), transparent 32rem),
    linear-gradient(90deg, rgba(4, 17, 11, 0.95), rgba(6, 27, 18, 0.72)),
    url("/assets/images/image-17.webp") center / cover no-repeat;
}

.rt-auth-shell::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(90deg, #000, transparent 72%);
}

.rt-auth-copy {
  color: #fff;
}

.rt-auth-brand,
.rt-auth-copy .brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 46px;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

.rt-auth-brand img {
  width: 38px;
  height: 38px;
  border-radius: 11px;
}

.rt-auth-kicker {
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  text-transform: uppercase;
}

.rt-auth-title {
  max-width: 680px;
  margin: 0;
  color: #fff;
  font-size: clamp(44px, 6vw, 72px);
  font-weight: 820;
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.rt-auth-summary {
  max-width: 580px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 17px;
  line-height: 1.75;
}

.rt-auth-panel,
.rt-modern-site .login-panel,
.rt-modern-site .reset-panel {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--rt-radius-lg);
  padding: 30px;
  color: var(--rt-ink);
  background: rgba(255, 255, 255, 0.955);
  box-shadow: var(--rt-shadow-lg);
  backdrop-filter: blur(22px) saturate(125%);
}

.rt-auth-panel h1,
.rt-auth-panel h2,
.rt-modern-site .login-panel h2,
.rt-modern-site .reset-panel h1 {
  margin: 0 0 9px;
  color: var(--rt-ink);
  font-weight: 820;
  letter-spacing: -0.04em;
}

.rt-auth-note {
  margin: 18px 0 0;
  padding: 14px;
  border: 1px solid var(--rt-line);
  border-radius: 12px;
  color: var(--rt-muted);
  background: var(--rt-surface-tint);
  font-size: 13px;
}

.rt-password-wrap {
  position: relative;
}

.rt-password-wrap .form-control,
.rt-password-wrap input {
  padding-right: 68px !important;
}

.rt-modern-site .rt-password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  min-height: 34px !important;
  padding: 0 9px;
  border: 0;
  border-radius: 8px;
  color: var(--rt-green-dark);
  background: transparent;
  font-size: 12px;
  font-weight: 800;
  transform: translateY(-50%);
}

.rt-modern-site .rt-password-toggle:hover {
  color: var(--rt-green-dark);
  background: var(--rt-surface-tint);
  transform: translateY(-50%);
}

.rt-form-status,
.rt-form-message {
  min-height: 22px;
  margin: 13px 0 0;
  padding: 0;
  color: var(--rt-muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}

.rt-form-status:empty,
.rt-form-message:empty {
  min-height: 0;
  margin-top: 0;
}

.rt-form-status.is-error,
.rt-form-status.is-success {
  min-height: 42px;
  padding: 11px 13px;
  border: 1px solid;
  border-radius: 11px;
}

.rt-form-status.is-error {
  color: #8f251d;
  border-color: #f0c4bf;
  background: #fff1ef;
}

.rt-form-status.is-success {
  color: #17613f;
  border-color: #bfe4cf;
  background: #eaf8f0;
}

.rt-modern-site button.is-loading {
  cursor: wait;
  opacity: 0.78;
}

/* Existing login/reset markup receives the same treatment. */
.rt-modern-site .login-shell {
  position: relative;
  width: min(1120px, calc(100% - 40px));
  gap: clamp(36px, 7vw, 88px);
}

.rt-modern-site .login-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.17;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(90deg, #000, transparent 72%);
}

.rt-modern-site .login-panel {
  border-radius: var(--rt-radius-lg);
}

.rt-modern-site .reset-shell {
  width: min(460px, calc(100% - 32px));
}

.rt-modern-site .reset-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 50% 14%, rgba(36, 185, 120, 0.12), transparent 28rem),
    linear-gradient(rgba(20, 55, 39, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 55, 39, 0.03) 1px, transparent 1px),
    #f2f7f4;
  background-size: auto, 42px 42px, 42px 42px, auto;
}

/* Motion and interaction helpers */
.rt-motion-ready [data-rt-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 620ms var(--rt-ease), transform 620ms var(--rt-ease);
}

.rt-motion-ready [data-rt-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.rt-modern-site [data-rt-tilt] {
  will-change: transform;
}

@media (max-width: 1120px) {
  .rt-modern-site .nav-links {
    gap: 2px;
  }

  .rt-modern-site .nav-links a {
    padding-inline: 7px;
  }

  .rt-modern-site .hero-layout {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.66fr);
    gap: 38px;
  }

  .rt-modern-site .hero h1 {
    font-size: clamp(50px, 7vw, 78px);
  }
}

@media (max-width: 980px) {
  .rt-modern-site .site-header {
    top: 10px;
  }

  .rt-modern-site .nav-toggle {
    display: block;
    order: 3;
    margin-left: 8px;
  }

  .rt-modern-site .nav-actions {
    order: 2;
    margin-left: auto;
  }

  .rt-modern-site .nav-links {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    display: grid;
    gap: 4px;
    padding: 12px;
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(7, 26, 18, 0.97);
    box-shadow: var(--rt-shadow-lg);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px) scale(0.98);
    transform-origin: top;
    transition: opacity 180ms ease, transform 220ms var(--rt-ease);
  }

  .rt-modern-site .nav-links.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }

  .rt-modern-site .nav-links a {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 0 12px;
  }

  .rt-modern-site .hero-layout,
  .rt-auth-shell {
    grid-template-columns: 1fr;
  }

  .rt-modern-site .hero {
    min-height: auto;
    padding-top: 136px;
  }

  .rt-modern-site .hero-insight {
    width: min(620px, 100%);
  }

  .rt-auth-copy {
    max-width: 720px;
  }

  .rt-auth-brand,
  .rt-auth-copy .brand-link {
    margin-bottom: 28px;
  }

  .rt-modern-site .admin-sidebar {
    width: auto;
  }
}

@media (max-width: 720px) {
  .rt-modern-site .container {
    width: min(100% - 28px, 1200px);
  }

  .rt-modern-site .site-header {
    width: calc(100% - 20px);
    top: 10px;
  }

  .rt-modern-site .site-header .container {
    padding-inline: 12px;
  }

  .rt-modern-site .nav-actions .btn-ghost {
    display: none;
  }

  .rt-modern-site .nav-actions .btn-primary {
    min-height: 40px;
    padding-inline: 12px;
  }

  .rt-modern-site .hero {
    padding-bottom: 58px;
  }

  .rt-modern-site .hero h1 {
    font-size: clamp(48px, 17vw, 70px);
  }

  .rt-modern-site .hero-metrics,
  .rt-modern-site .insight-footer {
    grid-template-columns: 1fr;
  }

  .rt-modern-site .metric,
  .rt-modern-site .insight-stat {
    min-height: 66px;
  }

  .rt-modern-site .blueprint-window {
    min-height: 260px;
  }

  .rt-modern-site .section-head,
  .rt-page-head,
  .rt-toolbar {
    display: block;
  }

  .rt-modern-site .section-lead,
  .rt-page-head > :last-child,
  .rt-toolbar > :last-child {
    margin-top: 14px;
  }

  .rt-page-shell {
    width: min(100% - 28px, 1240px);
    padding-top: 26px;
  }

  .rt-modern-site .contact-panel,
  .rt-auth-panel,
  .rt-modern-site .login-panel,
  .rt-modern-site .reset-panel {
    padding: 22px;
    border-radius: 18px;
  }

  .rt-auth-shell,
  .rt-modern-site .login-shell {
    width: min(100% - 28px, 1120px);
    gap: 30px;
    padding: 34px 0;
  }

  .rt-auth-title {
    font-size: clamp(40px, 13vw, 58px);
  }

  .rt-modern-site .project-card-main {
    padding: 16px;
  }

  .rt-modern-site .project-cover {
    min-height: 160px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rt-modern-site *,
  .rt-modern-site *::before,
  .rt-modern-site *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .rt-pointer-glow {
    display: none;
  }

  .rt-motion-ready [data-rt-reveal] {
    opacity: 1;
    transform: none;
  }
}
