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

:root {
  --bg-dark: #050816;
  --bg-light: #0b1020;
  --accent: #3fb7ff;
  --accent-soft: rgba(63, 183, 255, 0.1);
  --text-main: #f5f7fb;
  --text-muted: #a5adc4;
  --border-subtle: rgba(255, 255, 255, 0.06);
  --shadow-soft: 0 18px 35px rgba(0, 0, 0, 0.45);
  --radius-lg: 18px;
  --radius-pill: 999px;
  --transition-fast: 0.18s ease-out;
  --max-width: 1120px;
}

html,
body {
  height: 100%;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #111936 0, #050816 55%);
  color: var(--text-main);
  line-height: 1.6;
}

.page-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: linear-gradient(
      to bottom,
      rgba(5, 8, 22, 0.9),
      rgba(5, 8, 22, 0.82),
      transparent
    );
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 20px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: conic-gradient(
    from 200deg,
    #3fb7ff,
    #6fffd3,
    #3f6bff,
    #3fb7ff
  );
  padding: 2px;
  box-shadow: 0 0 0 1px rgba(63, 183, 255, 0.65),
    0 12px 28px rgba(0, 0, 0, 0.7);
}

.brand-mark-inner {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  background: radial-gradient(circle at 30% 0, #1b243f, #050816);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: #e9f5ff;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-weight: 600;
  letter-spacing: 0.03em;
  font-size: 15px;
}

.brand-subtitle {
  font-size: 12px;
  color: var(--text-muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav a {
  text-decoration: none;
  font-size: 12.5px;
  color: var(--text-muted);
  padding: 6px 10px;
  border-radius: 999px;
  transition: color var(--transition-fast), background var(--transition-fast),
    transform var(--transition-fast);
}

.nav a:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-1px);
}

.nav a.nav-cta {
  color: #050816;
  background: linear-gradient(135deg, #3fb7ff, #6fffd3);
  font-weight: 600;
  padding: 7px 14px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.7);
}

.nav-toggle {
  display: none;
}

.main {
  flex: 1;
}

.page-wrapper {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 28px 20px 40px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  margin-top: 12px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(14, 24, 52, 0.9);
  border: 1px solid rgba(120, 187, 255, 0.35);
  color: var(--text-muted);
}

.hero-kicker span {
  font-size: 10px;
  padding: 3px 6px;
  border-radius: 999px;
  background: rgba(63, 183, 255, 0.16);
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-title {
  font-size: clamp(30px, 3.1vw, 38px);
  line-height: 1.1;
  margin: 16px 0 10px;
}

.hero-highlight {
  background: linear-gradient(120deg, #3fb7ff, #6fffd3);
  -webkit-background-clip: text;
  color: transparent;
}

.hero-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 520px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.btn {
  border: none;
  border-radius: var(--radius-pill);
  padding: 9px 18px;
  font-size: 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast),
    background var(--transition-fast), color var(--transition-fast);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #3fb7ff, #6fffd3);
  color: #050816;
  font-weight: 600;
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 45px rgba(0, 0, 0, 0.8);
}

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(5, 8, 22, 0.85);
  color: var(--text-main);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 18px;
  font-size: 12px;
  color: var(--text-muted);
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-meta-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #50e0b8;
  box-shadow: 0 0 0 4px rgba(80, 224, 184, 0.16);
}

.hero-panel {
  border-radius: 22px;
  background: radial-gradient(circle at top left, #273055, #050816);
  border: 1px solid rgba(108, 171, 255, 0.3);
  padding: 16px 16px 18px;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.hero-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.hero-chip {
  padding: 4px 8px;
  border-radius: var(--radius-pill);
  background: rgba(6, 21, 46, 0.9);
  border: 1px solid rgba(120, 187, 255, 0.3);
}

.hero-orbit {
  position: relative;
  border-radius: 999px;
  border: 1px dashed rgba(114, 179, 255, 0.45);
  padding: 16px 14px;
  display: grid;
  gap: 10px;
}

.hero-orbit-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.hero-orbit-tag {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(10, 23, 58, 0.9);
  border: 1px solid rgba(117, 193, 255, 0.35);
  color: var(--text-muted);
}

.hero-orbit-core {
  font-size: 11px;
  padding: 9px 10px;
  border-radius: var(--radius-pill);
  background: radial-gradient(circle at top, #3fb7ff, #3f6bff);
  color: #050816;
  font-weight: 600;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}

.hero-panel-footer {
  margin-top: 12px;
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.hero-signal {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.hero-signal-bars {
  display: inline-flex;
  gap: 3px;
}

.hero-signal-bars span {
  width: 2px;
  border-radius: 999px;
  background: rgba(120, 187, 255, 0.45);
}

.hero-signal-bars span:nth-child(1) {
  height: 7px;
}
.hero-signal-bars span:nth-child(2) {
  height: 10px;
}
.hero-signal-bars span:nth-child(3) {
  height: 13px;
  background: #6fffd3;
}

/* Generic sections */

.section {
  margin-top: 38px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 16px;
}

.section-kicker {
  font-size: 11px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-title {
  font-size: 20px;
}

.section-lead {
  font-size: 13px;
  color: var(--text-muted);
  max-width: 460px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}

.card {
  padding: 16px 15px;
  border-radius: var(--radius-lg);
  background: rgba(7, 12, 35, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.55);
}

.card-accent {
  border-color: rgba(111, 255, 211, 0.35);
}

.card-title {
  font-size: 15px;
  margin-bottom: 6px;
}

.card-body {
  font-size: 13px;
  color: var(--text-muted);
}

.card-tags {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  font-size: 10px;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.list {
  font-size: 13px;
  color: var(--text-muted);
  display: grid;
  gap: 6px;
  margin-top: 6px;
  padding-left: 16px;
}

.list li {
  margin-left: 4px;
}

/* Page titles */

.page-compact-title {
  font-size: 22px;
  margin-bottom: 6px;
}

.page-intro {
  font-size: 13px;
  color: var(--text-muted);
  max-width: 620px;
}

.page-two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 26px;
  margin-top: 26px;
}

.page-block {
  margin-top: 22px;
}

.page-block h2 {
  font-size: 16px;
  margin-bottom: 4px;
}

.page-block p {
  font-size: 13px;
  color: var(--text-muted);
}

.page-block ul {
  font-size: 13px;
  color: var(--text-muted);
  padding-left: 18px;
  display: grid;
  gap: 5px;
  margin-top: 4px;
}

/* Contact */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.9fr);
  gap: 24px;
  margin-top: 24px;
}

.contact-card {
  padding: 18px 16px;
  border-radius: var(--radius-lg);
  background: rgba(7, 12, 35, 0.98);
  border: 1px solid rgba(111, 255, 211, 0.35);
  box-shadow: var(--shadow-soft);
}

.contact-card h2 {
  font-size: 16px;
  margin-bottom: 8px;
}

.contact-card p {
  font-size: 13px;
  color: var(--text-muted);
}

.contact-fields {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.field {
  display: grid;
  gap: 4px;
}

.field label {
  font-size: 12px;
  color: var(--text-muted);
}

.field input,
.field select,
.field textarea {
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(3, 7, 28, 0.96);
  color: var(--text-main);
  font-size: 13px;
  padding: 8px 9px;
  outline: none;
}

.field textarea {
  min-height: 100px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(63, 183, 255, 0.8);
  box-shadow: 0 0 0 1px rgba(63, 183, 255, 0.7);
}

.contact-aside {
  padding: 16px 15px;
  border-radius: var(--radius-lg);
  background: rgba(6, 16, 45, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 13px;
  color: var(--text-muted);
  display: grid;
  gap: 10px;
}

/* Footer */

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: 12px;
  background: radial-gradient(circle at bottom, #111936, #050816);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 20px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  font-size: 11px;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--text-main);
}

/* Responsive */

@media (max-width: 880px) {
  .hero,
  .page-two-col,
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    margin-top: 22px;
  }

  .hero-panel {
    order: -1;
  }
}

@media (max-width: 720px) {
  .header-inner {
    padding-inline: 16px;
  }

  .nav {
    position: fixed;
    inset: 54px 0 auto 0;
    background: rgba(5, 8, 22, 0.98);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 10px 16px 12px;
    display: none;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 6px;
  }

  .nav.show {
    display: flex;
  }

  .nav-toggle {
    display: inline-flex;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(5, 8, 22, 0.9);
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }

  .nav-toggle span {
    width: 15px;
    height: 1.6px;
    border-radius: 999px;
    background: #e9f5ff;
    position: relative;
  }

  .nav-toggle span::before,
  .nav-toggle span::after {
    content: "";
    position: absolute;
    left: 0;
    width: 15px;
    height: 1.6px;
    border-radius: 999px;
    background: #e9f5ff;
  }

  .nav-toggle span::before {
    top: -4px;
  }

  .nav-toggle span::after {
    top: 4px;
  }

  body.nav-open {
    overflow: hidden;
  }

  .page-wrapper {
    padding-inline: 16px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 26px;
  }

  .hero-subtitle {
    font-size: 13px;
  }

  .card {
    padding: 14px 13px;
  }
}


/* --- Overrides for Grid Outlook branding & header image --- */

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  padding: 0;
  background: transparent;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-mark img {
  max-width: 100%;
  max-height: 100%;
  display: block;
}

.hero {
  position: relative;
  padding: 26px 24px;
  border-radius: 22px;
  background-image: url('header-grid-na.png');
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(5, 15, 35, 0.4), rgba(5, 8, 22, 0.94));
  pointer-events: none;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero-panel {
  background: rgba(5, 10, 28, 0.9);
  border-color: rgba(108, 171, 255, 0.4);
}


/* --- Grid Outlook full logo header override --- */

.brand-full {
  display: flex;
  align-items: center;
  gap: 0;
}

.brand-logo-full {
  height: 44px;
  width: auto;
  display: block;
}

@media (max-width: 480px) {
  .brand-logo-full {
    height: 36px;
  }
}


/* --- TwinGrid additions --- */
.nav a.active {
  color: var(--text-main);
  background: rgba(63, 183, 255, 0.12);
  border: 1px solid rgba(63, 183, 255, 0.22);
}

.twingrid-logo-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255,255,255,0.98), rgba(236,248,255,0.96));
  border: 1px solid rgba(111, 255, 211, 0.35);
  box-shadow: var(--shadow-soft);
}

.twingrid-logo-panel img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 14px;
}

.twingrid-mini-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  border-radius: 16px;
  background: rgba(255,255,255,0.98);
  border: 1px solid rgba(111, 255, 211, 0.28);
  margin-bottom: 14px;
}

.twingrid-mini-logo img {
  height: 88px;
  width: auto;
  display: block;
}

.feature-band {
  border-radius: 24px;
  padding: 22px;
  background: radial-gradient(circle at top left, rgba(63, 183, 255, 0.18), rgba(7, 12, 35, 0.98));
  border: 1px solid rgba(111, 255, 211, 0.22);
  box-shadow: var(--shadow-soft);
}

.step-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 14px;
  counter-reset: steps;
}

.step-card {
  position: relative;
  padding: 16px 15px 16px 52px;
  border-radius: var(--radius-lg);
  background: rgba(7, 12, 35, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.06);
  min-height: 126px;
}

.step-card::before {
  counter-increment: steps;
  content: counter(steps);
  position: absolute;
  top: 16px;
  left: 15px;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #3fb7ff, #6fffd3);
  color: #050816;
  font-size: 12px;
  font-weight: 700;
}

.step-card h3,
.architecture-node h3 {
  font-size: 14px;
  margin-bottom: 5px;
}

.step-card p,
.architecture-node p,
.article-content p,
.article-content li {
  font-size: 13px;
  color: var(--text-muted);
}

.architecture-map {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.architecture-node {
  padding: 15px;
  border-radius: var(--radius-lg);
  background: rgba(6, 16, 45, 0.98);
  border: 1px solid rgba(63, 183, 255, 0.16);
}

.icon-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.logo-callout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 22px;
  align-items: center;
}

.compact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.compact-links a {
  text-decoration: none;
  color: var(--text-main);
  font-size: 12px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}

.compact-links a:hover {
  background: rgba(63, 183, 255, 0.12);
}

.article-content {
  max-width: 820px;
  display: grid;
  gap: 18px;
}

.article-content h2 {
  font-size: 18px;
  margin-bottom: 4px;
}

.article-content ul {
  padding-left: 20px;
  display: grid;
  gap: 6px;
}

.checklist {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.check-item {
  padding: 12px 13px;
  border-radius: 14px;
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.07);
  font-size: 13px;
  color: var(--text-muted);
}

.check-item strong { color: var(--text-main); }

@media (max-width: 880px) {
  .logo-callout { grid-template-columns: minmax(0, 1fr); }
  .twingrid-mini-logo img { height: 72px; }
}


/* --- TwinGrid main business redesign additions --- */
.nav-item { position: relative; display: flex; align-items: center; }
.nav-dropdown .nav-parent::after { content: "▾"; font-size: 9px; margin-left: 5px; opacity: 0.75; }
.nav-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 232px;
  padding: 8px;
  display: none;
  flex-direction: column;
  gap: 4px;
  border-radius: 16px;
  background: rgba(5, 8, 22, 0.98);
  border: 1px solid rgba(63, 183, 255, 0.18);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
  z-index: 50;
}
.nav-menu a:hover { transform: none; }
.nav-dropdown:hover .nav-menu,
.nav-dropdown:focus-within .nav-menu { display: flex; }
.nav-menu a { border-radius: 12px; padding: 8px 10px; font-size: 12px; width: 100%; }
.hero-twingrid-main::before { background: radial-gradient(circle at top left, rgba(0, 100, 145, 0.30), rgba(5, 8, 22, 0.94)); }
.hero-logo img { max-height: 360px; object-fit: contain; }
.slim-hero { grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.75fr); }
.business-stack .card-grid.three-focus,
.three-focus { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.focus-card { min-height: 235px; }
.focus-number {
  width: 34px; height: 34px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(63, 183, 255, 0.12);
  border: 1px solid rgba(63, 183, 255, 0.22);
  color: var(--accent); font-weight: 700; font-size: 12px; margin-bottom: 12px;
}
.compact-steps { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.service-list { display: grid; gap: 12px; }
.service-row {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(220px, 0.75fr);
  gap: 16px;
  padding: 16px;
  border-radius: var(--radius-lg);
  background: rgba(7, 12, 35, 0.96);
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 14px 32px rgba(0,0,0,0.48);
}
.service-row h3 { font-size: 15px; margin-bottom: 5px; }
.service-row p, .service-row aside { font-size: 13px; color: var(--text-muted); }
.service-row aside {
  border-left: 1px solid rgba(63, 183, 255, 0.16);
  padding-left: 14px;
  align-self: stretch;
}
.workshop-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.workshop-card {
  padding: 16px;
  border-radius: var(--radius-lg);
  background: rgba(6, 16, 45, 0.98);
  border: 1px solid rgba(63, 183, 255, 0.16);
  box-shadow: 0 14px 32px rgba(0,0,0,0.48);
}
.workshop-num { color: var(--accent); font-size: 11px; letter-spacing: 0.16em; margin-bottom: 6px; }
.workshop-card h3 { font-size: 15px; margin-bottom: 8px; }
.workshop-card p { font-size: 12.5px; color: var(--text-muted); margin-top: 5px; }
.workshop-card strong { color: var(--text-main); }
@media (max-width: 880px) {
  .slim-hero, .three-focus, .business-stack .card-grid.three-focus { grid-template-columns: minmax(0, 1fr); }
  .service-row { grid-template-columns: minmax(0, 1fr); }
  .service-row aside { border-left: 0; border-top: 1px solid rgba(63, 183, 255, 0.16); padding-left: 0; padding-top: 10px; }
}
@media (max-width: 720px) {
  .nav { align-items: flex-start; }
  .nav-item { display: block; width: 100%; }
  .nav-dropdown .nav-parent { display: inline-flex; }
  .nav-menu { position: static; display: flex; min-width: 100%; box-shadow: none; border-radius: 12px; margin-top: 4px; background: rgba(255,255,255,0.03); }
}


/* --- TwinGrid series introduction section --- */
.series-intro {
  border-radius: 30px;
  padding: 24px;
  background: linear-gradient(135deg, rgba(63, 183, 255, 0.10), rgba(111, 255, 211, 0.05));
  border: 1px solid rgba(63, 183, 255, 0.16);
  box-shadow: 0 24px 60px rgba(0,0,0,0.42);
}
.series-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}
.series-card {
  overflow: hidden;
  border-radius: 24px;
  background: rgba(7, 12, 35, 0.96);
  border: 1px solid rgba(255,255,255,0.07);
  box-shadow: 0 18px 42px rgba(0,0,0,0.42);
}
.series-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-bottom: 1px solid rgba(63, 183, 255, 0.12);
}
.series-card-content {
  padding: 18px;
}
.series-label {
  color: var(--accent);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.series-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
}
.series-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-muted);
}
.series-intro-text {
  max-width: 900px;
}
@media (max-width: 880px) {
  .series-grid { grid-template-columns: minmax(0, 1fr); }
  .series-intro { padding: 18px; }
}

.series-image-link { display: block; line-height: 0; }
.series-image-link img { cursor: zoom-in; }
.series-card .compact-links { margin-top: 10px; }


/* --- UTLF menu and page additions --- */
.nav-menu { min-width: 258px; }
.utlf-domain-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.utlf-domain-card { padding: 18px; border-radius: var(--radius-lg); background: rgba(7, 12, 35, 0.96); border: 1px solid rgba(63,183,255,0.14); box-shadow: 0 14px 32px rgba(0,0,0,0.46); }
.utlf-domain-card h3 { font-size: 15px; margin-bottom: 8px; }
.utlf-domain-card p, .utlf-domain-card li { font-size: 13px; color: var(--text-muted); }
.utlf-step { display: grid; grid-template-columns: 90px minmax(0,1fr); gap: 16px; padding: 16px; border-radius: 18px; border: 1px solid rgba(63,183,255,0.14); background: rgba(255,255,255,0.035); margin-bottom: 12px; }
.utlf-step-number { color: var(--accent); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.utlf-step h3 { font-size: 16px; margin-bottom: 5px; }
.utlf-step p { font-size: 13px; color: var(--text-muted); }
.utlf-service-list { display: grid; gap: 14px; }
.utlf-service { padding: 18px; border-radius: 18px; background: rgba(6,16,45,0.98); border: 1px solid rgba(63,183,255,0.16); }
.utlf-service h3 { font-size: 16px; margin-bottom: 7px; }
.utlf-service p, .utlf-service li { font-size: 13px; color: var(--text-muted); }
.utlf-link-card { text-decoration: none; color: inherit; display: block; }
.utlf-link-card:hover { border-color: rgba(111,255,211,0.38); transform: translateY(-2px); transition: transform var(--transition-fast), border-color var(--transition-fast); }
@media (max-width: 720px) { .utlf-step { grid-template-columns: minmax(0,1fr); } }


/* Framework hero images: UTLF / UTEF */
.hero-image-panel {
  border-radius: 22px;
  background: rgba(5, 8, 22, 0.78);
  border: 1px solid rgba(108, 171, 255, 0.28);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  position: relative;
}
.hero-image-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(63, 183, 255, 0.12), transparent 48%, rgba(111, 255, 211, 0.10));
}
.hero-image-panel a {
  display: block;
  line-height: 0;
}
.hero-image-panel img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  display: block;
}
@media (max-width: 880px) {
  .hero-image-panel { order: -1; }
  .hero-image-panel img { min-height: 220px; }
}

/* --- Smaller framework hero images: keep UTLF/UTEF visuals visible without dominating the hero --- */
.framework-hero {
  grid-template-columns: minmax(0, 1.28fr) minmax(280px, 440px) !important;
  align-items: center;
  gap: 28px;
}
.framework-hero .hero-image-panel {
  width: 100%;
  max-width: 440px;
  justify-self: end;
  order: 0;
  border-radius: 22px;
  background: rgba(5, 8, 22, 0.88);
}
.framework-hero .hero-image-panel img {
  width: 100%;
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: 16 / 9;
  object-fit: contain !important;
  object-position: center center;
  display: block;
}
.framework-hero .hero-content {
  max-width: 720px;
}
.framework-hero .hero-subtitle {
  max-width: 720px;
}
@media (max-width: 980px) {
  .framework-hero {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  .framework-hero .hero-image-panel {
    max-width: 620px;
    justify-self: start;
    order: -1;
  }
}
@media (max-width: 640px) {
  .framework-hero .hero-image-panel {
    max-width: 100%;
  }
}

/* --- Homepage service carousel --- */
.service-carousel-section {
  border-radius: 30px;
  padding: 24px;
  background: linear-gradient(135deg, rgba(63, 183, 255, 0.11), rgba(111, 255, 211, 0.055));
  border: 1px solid rgba(63, 183, 255, 0.17);
  box-shadow: 0 24px 60px rgba(0,0,0,0.42);
}
.service-carousel {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: rgba(5, 8, 22, 0.82);
  border: 1px solid rgba(255,255,255,0.08);
  min-height: 360px;
}
.service-carousel-track {
  position: relative;
}
.service-slide {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.05fr);
  align-items: center;
  gap: 24px;
  padding: 26px;
  opacity: 0;
  pointer-events: none;
  transform: translateX(18px);
  transition: opacity 0.36s ease, transform 0.36s ease;
  position: absolute;
  inset: 0;
}
.service-slide.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
  position: relative;
}
.service-slide-kicker {
  color: var(--accent);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.service-slide h3 {
  font-size: clamp(30px, 5vw, 56px);
  line-height: 0.95;
  margin-bottom: 16px;
}
.service-slide p {
  color: var(--text-muted);
  font-size: 15px;
  max-width: 560px;
  margin-bottom: 18px;
}
.service-slide-image {
  display: block;
  border-radius: 22px;
  overflow: hidden;
  background: rgba(2, 8, 22, 0.78);
  border: 1px solid rgba(63, 183, 255, 0.22);
  box-shadow: 0 18px 46px rgba(0,0,0,0.44);
  text-decoration: none;
}
.service-slide-image img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: rgba(5, 8, 22, 0.94);
}
.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(111, 255, 211, 0.28);
  background: rgba(5, 8, 22, 0.72);
  color: var(--text-main);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}
.carousel-control:hover {
  background: rgba(63, 183, 255, 0.18);
  border-color: rgba(111, 255, 211, 0.58);
}
.carousel-prev { left: 14px; }
.carousel-next { right: 14px; }
.service-carousel-dots {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 8px;
}
.service-carousel-dots button {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 0;
  background: rgba(255,255,255,0.28);
  cursor: pointer;
}
.service-carousel-dots button.active {
  width: 28px;
  background: linear-gradient(135deg, #3fb7ff, #6fffd3);
}
@media (max-width: 900px) {
  .service-slide {
    grid-template-columns: minmax(0, 1fr);
    padding: 22px;
    padding-bottom: 52px;
  }
  .service-carousel { min-height: 0; }
  .service-slide-image { order: -1; }
  .carousel-control { top: auto; bottom: 8px; transform: none; }
  .carousel-prev { left: 18px; }
  .carousel-next { right: 18px; }
}
@media (max-width: 640px) {
  .service-carousel-section { padding: 18px; }
  .service-slide { padding: 18px; padding-bottom: 54px; }
  .service-slide h3 { font-size: 34px; }
}

/* --- Compact homepage service carousel image sizing --- */
.service-carousel-section {
  padding: 20px 22px;
}
.service-carousel {
  min-height: 0 !important;
}
.service-slide {
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 390px) !important;
  gap: 22px !important;
  padding: 22px 64px 42px !important;
  align-items: center !important;
}
.service-slide h3 {
  font-size: clamp(28px, 3.2vw, 42px) !important;
  line-height: 1.02;
  margin-bottom: 10px;
}
.service-slide p {
  font-size: 14px !important;
  line-height: 1.58;
  margin-bottom: 12px;
}
.service-slide-image {
  width: 100% !important;
  max-width: 390px !important;
  justify-self: end !important;
  border-radius: 18px;
}
.service-slide-image img {
  width: 100% !important;
  height: 220px !important;
  max-height: 220px !important;
  min-height: 0 !important;
  aspect-ratio: auto !important;
  object-fit: contain !important;
  object-position: center center !important;
  background: rgba(5, 8, 22, 0.96);
}
.service-carousel-dots {
  bottom: 9px !important;
}
.carousel-control {
  width: 34px;
  height: 34px;
  font-size: 24px;
}

/* Keep framework page images modest inside the hero */
.framework-hero {
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 360px) !important;
}
.framework-hero .hero-image-panel {
  max-width: 360px !important;
}

@media (max-width: 900px) {
  .service-slide {
    grid-template-columns: minmax(0, 1fr) !important;
    padding: 18px 54px 48px !important;
  }
  .service-slide-image {
    max-width: 420px !important;
    justify-self: start !important;
    margin-top: 8px;
  }
  .service-slide-image img {
    height: 185px !important;
    max-height: 185px !important;
  }
}
@media (max-width: 640px) {
  .service-carousel-section {
    padding: 16px;
  }
  .service-slide {
    padding: 16px 44px 48px !important;
  }
  .service-slide h3 {
    font-size: 30px !important;
  }
  .service-slide-image img {
    height: 150px !important;
    max-height: 150px !important;
  }
  .framework-hero .hero-image-panel {
    max-width: 100% !important;
  }
}

/* --- MEDIUM OVERRIDE: Balanced UTLF/UTEF framework page hero images --- */
.framework-hero {
  display: grid !important;
  grid-template-columns: minmax(0, 1.28fr) minmax(360px, 500px) !important;
  align-items: center !important;
  gap: 28px !important;
}
.framework-hero .hero-content {
  min-width: 0 !important;
  max-width: 720px !important;
}
.framework-hero .hero-image-panel {
  width: min(500px, 40vw) !important;
  max-width: 500px !important;
  min-width: 360px !important;
  height: auto !important;
  max-height: none !important;
  aspect-ratio: 16 / 9 !important;
  justify-self: end !important;
  align-self: center !important;
  overflow: hidden !important;
  border-radius: 18px !important;
  padding: 0 !important;
  background: rgba(5, 8, 22, 0.96) !important;
  border: 1px solid rgba(108, 171, 255, 0.28) !important;
  box-shadow: 0 18px 44px rgba(0,0,0,0.46) !important;
}
.framework-hero .hero-image-panel a {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  line-height: 0 !important;
}
.framework-hero .hero-image-panel img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: 100% !important;
  max-height: none !important;
  aspect-ratio: 16 / 9 !important;
  object-fit: contain !important;
  object-position: center center !important;
  background: rgba(5, 8, 22, 0.96) !important;
}
@media (max-width: 1100px) {
  .framework-hero {
    grid-template-columns: minmax(0, 1.18fr) minmax(320px, 440px) !important;
  }
  .framework-hero .hero-image-panel {
    width: min(440px, 38vw) !important;
    max-width: 440px !important;
    min-width: 320px !important;
  }
}
@media (max-width: 900px) {
  .framework-hero {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  .framework-hero .hero-image-panel {
    justify-self: start !important;
    width: min(520px, 100%) !important;
    max-width: 520px !important;
    min-width: 0 !important;
    order: -1 !important;
  }
}
@media (max-width: 560px) {
  .framework-hero .hero-image-panel {
    width: 100% !important;
    max-width: 100% !important;
  }
}


/* --- Restored TwinGrid source visuals: compact, readable, non-dominating --- */
.visual-showcase {
  border: 1px solid rgba(63, 183, 255, 0.18);
  background: linear-gradient(145deg, rgba(9, 18, 43, 0.9), rgba(4, 8, 21, 0.72));
  border-radius: 22px;
  padding: 24px;
  box-shadow: 0 18px 34px rgba(0,0,0,0.28);
}
.source-visual-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}
.source-visual-card, .single-source-visual {
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  background: rgba(255,255,255,0.025);
  overflow: hidden;
}
.source-visual-card img, .single-source-visual img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  background: rgba(0,0,0,0.15);
}
.source-visual-card img {
  max-height: 340px;
}
.single-source-visual {
  max-width: 900px;
  margin: 0 auto;
}
.single-source-visual img {
  max-height: 520px;
}
.source-visual-caption {
  padding: 14px 16px 16px;
}
.source-visual-caption h3 {
  font-size: 18px;
  margin-bottom: 6px;
}
.source-visual-caption p {
  color: var(--text-muted);
  font-size: 14px;
}
@media (max-width: 780px) {
  .source-visual-grid { grid-template-columns: 1fr; }
  .visual-showcase { padding: 16px; }
  .source-visual-card img { max-height: none; }
  .single-source-visual img { max-height: none; }
}

/* TwinGrid submenu generated visuals */
.visual-card .series-image-link {
  display: block;
  margin-bottom: 16px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(108, 171, 255, 0.22);
  background: rgba(5, 8, 22, 0.9);
}
.visual-card .series-image-link img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}
.twingrid-submenu-visual img,
.framework-hero .hero-image-panel img {
  background: rgba(5, 8, 22, 0.96);
}
