:root {
  --bg: #05070a;
  --bg-soft: #0c1118;
  --surface: rgba(11, 16, 24, 0.88);
  --surface-strong: rgba(16, 21, 31, 0.96);
  --surface-glass: rgba(255, 255, 255, 0.04);
  --surface-elevated: rgba(13, 19, 29, 0.92);
  --border: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.18);
  --text: #f5f7fb;
  --muted: #a7b3c8;
  --muted-strong: #d8dfeb;
  --accent: #2e5bff;
  --accent-soft: rgba(46, 91, 255, 0.18);
  --platinum: #d8dee7;
  --shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Inter", sans-serif;
  background: linear-gradient(180deg, #05070a 0%, #071018 100%);
  position: relative;
}

body::before,
body::after {
  display: none;
}

main {
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
textarea,
select {
  font: inherit;
}

.container {
  width: min(calc(100% - 2rem), var(--container));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
  background: rgba(5, 7, 10, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-utility {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.utility-row,
.header-row,
.platform-band-row,
.section-heading,
.footer-grid,
.contact-layout,
.standards-layout,
.content-grid {
  display: grid;
  gap: 1.5rem;
}

.utility-row {
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 0.8rem 0;
}

.utility-copy,
.platform-band-row p,
.footer-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.utility-social,
.footer-links,
.footer-meta,
.contact-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.utility-social a,
.header-link,
.footer-links a {
  color: var(--muted-strong);
  font-size: 0.92rem;
}

.header-row {
  grid-template-columns: auto 1fr auto;
  align-items: center;
  padding: 1.1rem 0;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
}

.brand-mark {
  width: 2.85rem;
  height: 2.85rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(135deg, rgba(46, 91, 255, 0.22), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.02);
  color: var(--platinum);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-indent: 0.2em;
}

.brand-copy {
  display: grid;
}

.brand-copy strong,
.footer-title {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.brand-copy small {
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.site-nav a {
  color: var(--muted);
  font-size: 0.92rem;
}

.site-nav a:hover,
.utility-social a:hover,
.footer-links a:hover,
.header-link:hover,
.text-link:hover {
  color: var(--text);
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
}

.header-link {
  white-space: nowrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3.2rem;
  padding: 0.9rem 1.45rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: linear-gradient(135deg, #3d6cff, #2e5bff 58%, #1b3fbe);
  color: #ffffff;
  box-shadow: 0 16px 36px rgba(46, 91, 255, 0.28);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--text);
}

.button-compact {
  min-height: 2.8rem;
  padding-inline: 1.1rem;
}

.leadership-feed-shell {
  padding: 0 0 1rem;
}

.leadership-feed-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  gap: 1.2rem;
  align-items: start;
}

.leadership-feed-copy,
.x-feed-panel {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.025)),
    var(--surface);
  box-shadow: var(--shadow);
}

.leadership-feed-copy {
  padding: 1.35rem;
}

.x-feed-toggle-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.1rem;
}

.x-feed-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.9rem;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted-strong);
  cursor: pointer;
}

.x-feed-toggle span {
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.x-feed-toggle.is-active {
  border-color: rgba(46, 91, 255, 0.5);
  background: rgba(46, 91, 255, 0.16);
  color: var(--text);
}

.x-feed-stage {
  position: relative;
  min-height: 390px;
}

.x-feed-panel {
  display: none;
  padding: 1rem;
}

.x-feed-panel.is-active {
  display: block;
}

.x-feed-cardhead {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
}

.x-feed-cardhead h3 {
  font-size: 1.5rem;
}

.x-feed-embed {
  min-height: 320px;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.x-feed-loading,
.x-feed-embed > a {
  display: block;
  margin: 0;
  padding: 1rem 1.1rem;
  color: var(--muted);
  line-height: 1.7;
}

.x-feed-embed > a {
  min-height: 320px;
}

.hero-shell,
.section-shell,
.subpage-shell {
  padding: 4.25rem 0;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 1.75rem;
  align-items: center;
}

.eyebrow,
.section-kicker,
.panel-label {
  margin: 0 0 1rem;
  color: #8fb0ff;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Playfair Display", serif;
  letter-spacing: -0.03em;
  line-height: 1.04;
}

.hero-copy h1,
.subpage-hero h1,
.content-card h1,
.simple-panel h1 {
  font-size: clamp(3rem, 5vw, 5.5rem);
  max-width: 12ch;
}

.hero-copy h1 {
  margin-bottom: 1.4rem;
}

.section-heading h2,
.standards-copy h2,
.contact-card h2 {
  font-size: clamp(2.1rem, 3vw, 3.35rem);
  max-width: 14ch;
}

.hero-text,
.hero-support,
.section-copy,
.service-card p,
.proof-card p,
.paper-card p,
.content-card p,
.simple-panel p,
.contact-note {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.hero-support {
  max-width: 60ch;
  margin-top: 0.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.5rem;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.5rem 0 0;
}

.hero-metrics div,
.proof-card,
.service-card,
.paper-card,
.content-card,
.simple-panel,
.contact-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.025)),
    var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.hero-metrics div {
  padding: 1.15rem 1.2rem;
  border-radius: var(--radius-md);
}

.hero-metrics dt {
  color: var(--platinum);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.45rem;
}

.hero-metrics dd {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.6;
}

.hero-visual {
  min-height: 100%;
}

.architectural-frame {
  position: relative;
  min-height: 0;
  padding: 0;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
}

.frame-ornament {
  display: none;
}

.frame-ornament-top {
  top: 3rem;
  right: 1rem;
}

.frame-ornament-bottom {
  bottom: 4rem;
  left: 1rem;
}

.crest-card {
  position: relative;
  z-index: 1;
  margin: 0;
  width: 100%;
  padding: 1.35rem;
  border-radius: 28px;
  background: rgba(9, 13, 20, 0.72);
  border: 0;
  backdrop-filter: blur(10px);
}

.crest-card img {
  width: 100%;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.crest-card p:last-child {
  margin-top: 1rem;
  color: var(--muted);
  line-height: 1.7;
}

.floating-badge {
  display: none;
}

.floating-badge-primary {
  top: 7rem;
  right: 2rem;
}

.floating-badge-secondary {
  left: 2rem;
  bottom: 6rem;
}

.platform-band {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
}

.platform-band-row {
  grid-template-columns: 300px 1fr;
  align-items: center;
  padding: 1.2rem 0;
}

.platform-ticker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.platform-ticker span,
.footer-stat {
  display: inline-flex;
  align-items: center;
  min-height: 2.45rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.025);
  color: var(--platinum);
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-stat {
  gap: 0.7rem;
  justify-content: space-between;
  width: 100%;
  white-space: nowrap;
}

.footer-stat strong {
  color: var(--text);
  font-size: 0.88rem;
  letter-spacing: 0.04em;
}

.section-shell {
  position: relative;
}

.section-shell-contrast {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0)),
    rgba(255, 255, 255, 0.015);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.section-shell-final {
  padding-bottom: 7rem;
}

.section-heading {
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.8fr);
  align-items: end;
  margin-bottom: 1.5rem;
}

.service-grid,
.paper-grid,
.proof-grid,
.process-steps,
.detail-stack {
  display: grid;
  gap: 1rem;
}

.service-grid,
.paper-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-card,
.paper-card,
.content-card,
.contact-card,
.simple-panel {
  border-radius: var(--radius-lg);
  padding: 1.6rem;
}

.service-card h3,
.paper-card h3,
.content-card h3,
.process-steps h3 {
  font-size: 1.55rem;
  margin-bottom: 0.9rem;
}

.service-card p,
.paper-card p {
  font-size: 0.98rem;
}

.standards-layout {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: start;
}

.proof-grid-wide {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.process-steps {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 2rem;
}

.process-steps article {
  padding: 1.2rem;
  border-radius: var(--radius-md);
  background: var(--surface-glass);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.process-steps span {
  display: inline-flex;
  margin-bottom: 0.8rem;
  color: #8fb0ff;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.process-steps p {
  margin-top: 0.5rem;
  color: var(--muted);
  line-height: 1.7;
}

.proof-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.proof-card {
  border-radius: var(--radius-md);
  padding: 1.4rem;
}

.text-link {
  display: inline-flex;
  margin-top: 1rem;
  color: #8fb0ff;
  font-weight: 600;
}

.contact-layout {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: stretch;
}

.contact-card-primary {
  background:
    linear-gradient(135deg, rgba(46, 91, 255, 0.18), rgba(255, 255, 255, 0.02)),
    var(--surface-strong);
}

.contact-list {
  flex-direction: column;
  gap: 0.8rem;
  margin-top: 1rem;
}

.contact-list a {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted-strong);
}

.contact-list strong {
  color: var(--text);
  font-weight: 600;
}

.subpage-hero,
.simple-panel {
  text-align: left;
}

.content-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.content-grid-tight {
  grid-template-columns: 1.2fr 0.8fr;
}

.content-card-primary {
  grid-column: span 2;
  background:
    linear-gradient(135deg, rgba(46, 91, 255, 0.16), rgba(255, 255, 255, 0.02)),
    var(--surface-strong);
}

.detail-stack {
  margin-top: 1rem;
}

.detail-stack article {
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.detail-stack article:first-child {
  padding-top: 0;
  border-top: 0;
}

.detail-stack p {
  margin-top: 0.5rem;
}

.footer-grid {
  grid-template-columns: minmax(0, 1fr) minmax(220px, 300px) minmax(240px, 320px);
  align-items: start;
  padding: 2rem 0 3rem;
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(4, 6, 9, 0.88);
}

.footer-copy {
  margin: 0.85rem 0;
  max-width: 42rem;
  color: var(--muted);
  line-height: 1.8;
}

.footer-links,
.footer-meta {
  align-items: flex-start;
  align-content: flex-start;
}

.footer-meta {
  display: grid;
  gap: 0.75rem;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 500ms ease, transform 500ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .button {
    transition: none;
  }
}

@media (max-width: 1080px) {
  .header-row,
  .leadership-feed-layout,
  .platform-band-row,
  .section-heading,
  .standards-layout,
  .contact-layout,
  .content-grid,
  .content-grid-tight,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .header-row {
    justify-items: start;
  }

  .hero-layout,
  .service-grid,
  .paper-grid,
  .proof-grid,
  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .content-card-primary {
    grid-column: auto;
  }

  .process-steps {
    grid-template-columns: 1fr;
  }

  .architectural-frame {
    min-height: 540px;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(calc(100% - 1.2rem), var(--container));
  }

  .utility-row {
    grid-template-columns: 1fr;
  }

  .site-nav,
  .header-actions,
  .utility-social,
  .x-feed-toggle-row {
    gap: 0.65rem;
  }

  .hero-shell,
  .section-shell,
  .subpage-shell {
    padding: 3.5rem 0;
  }

  .hero-copy h1,
  .subpage-hero h1,
  .content-card h1,
  .simple-panel h1 {
    max-width: none;
    font-size: clamp(2.4rem, 10vw, 3.7rem);
  }

  .section-heading h2,
  .standards-copy h2,
  .contact-card h2 {
    max-width: none;
  }

  .x-feed-cardhead {
    flex-direction: column;
    align-items: flex-start;
  }

  .architectural-frame {
    min-height: 0;
    padding: 0;
  }

  .crest-card {
    padding: 1rem;
  }

  .floating-badge {
    position: static;
    margin-top: 0.85rem;
    width: fit-content;
  }

  .contact-list a {
    flex-direction: column;
    align-items: flex-start;
  }
}
