:root {
  --black: #071831;
  --navy: #071831;
  --navy-2: #0b1f3d;
  --navy-3: #12315d;
  --navy-glass: rgba(18, 49, 93, 0.62);
  --navy-glass-strong: rgba(11, 31, 61, 0.78);
  --hero-navy-gradient:
    radial-gradient(circle at 78% 42%, rgba(210, 154, 54, 0.18), transparent 32%),
    radial-gradient(circle at 16% 12%, rgba(68, 114, 181, 0.24), transparent 30%),
    linear-gradient(135deg, #12315d 0%, #071831 58%);
  --ink: #071831;
  --muted: #5f6872;
  --paper: #f5f2eb;
  --white: #ffffff;
  --gold: #d29a36;
  --gold-soft: #f1c56d;
  --line: rgba(12, 14, 18, 0.12);
  --shadow: 0 20px 48px rgba(15, 18, 22, 0.1);
  --shadow-lift: 0 28px 70px rgba(15, 18, 22, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Montserrat", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

button,
input,
textarea,
select {
  font-family: inherit;
}

a {
  color: inherit;
}

::selection {
  background: rgba(210, 154, 54, 0.32);
}

.shell {
  width: min(1360px, calc(100% - 40px));
  max-width: calc(100vw - 40px);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background:
    radial-gradient(circle at 18% 0%, rgba(210, 154, 54, 0.1), transparent 28%),
    linear-gradient(135deg, rgba(18, 49, 93, 0.98), rgba(7, 24, 49, 0.98) 62%);
  border-bottom: 1px solid rgba(210, 154, 54, 0.22);
  backdrop-filter: blur(16px);
}

.nav {
  min-height: 108px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
}

.brand img {
  width: min(236px, 48vw);
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.nav-links a {
  text-decoration: none;
}

.company-menu {
  position: relative;
}

.company-menu::after {
  content: "";
  position: absolute;
  left: -12px;
  right: -12px;
  top: 100%;
  height: 16px;
}

.company-menu button {
  border: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.company-menu button::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 8px;
  border-right: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: translateY(-3px) rotate(45deg);
}

.company-menu-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  width: 280px;
  padding: 10px;
  border: 1px solid rgba(210, 154, 54, 0.34);
  border-radius: 16px;
  background: rgba(7, 18, 36, 0.98);
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.34);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -6px);
  transition: opacity 220ms ease, transform 220ms ease;
}

.company-menu-panel a {
  display: block;
  padding: 9px 10px;
  border-radius: 10px;
  color: #fff;
  line-height: 1.25;
}

.company-menu-panel a:hover,
.company-menu-panel a:focus {
  background: rgba(210, 154, 54, 0.16);
}

.company-menu:hover .company-menu-panel,
.company-menu:focus-within .company-menu-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.nav-pill {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 15px;
  border: 1px solid rgba(210, 154, 54, 0.72);
  border-radius: 999px;
}

.nav-pill {
  animation: staff-pulse 1350ms ease-out 600ms 1 both;
}

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    var(--hero-navy-gradient),
    var(--navy);
}

.hero::before {
  content: "";
  position: absolute;
  right: max(-160px, -7vw);
  top: 52%;
  width: clamp(620px, 50vw, 920px);
  aspect-ratio: 1;
  background: url("assets/pbc-horse-emblem.png") center / contain no-repeat;
  opacity: 0.22;
  transform: translateY(-50%);
  pointer-events: none;
  animation: horse-drift 18s ease-in-out infinite alternate;
}

.hero .shell {
  position: relative;
  z-index: 1;
  min-height: min(690px, calc(100vh - 78px));
  display: block;
  align-items: center;
  padding: clamp(64px, 8vw, 104px) 0;
}

.hero .shell::before {
  content: none;
}

.hero .shell > * {
  position: relative;
  z-index: 1;
}

.ambient-network {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.particle,
.particle-link {
  position: absolute;
  display: block;
  opacity: 0;
  pointer-events: none;
}

.particle {
  width: 4px;
  aspect-ratio: 1;
  border-radius: 999px;
  background: var(--gold-soft);
  box-shadow: 0 0 18px rgba(241, 197, 109, 0.58);
  animation: gold-particle 10s ease-in-out infinite;
}

.particle-one {
  left: 77%;
  top: 38%;
}

.particle-two {
  left: 83%;
  top: 45%;
  animation-delay: 1.8s;
}

.particle-three {
  left: 75%;
  top: 55%;
  width: 3px;
  animation-delay: 3.6s;
}

.particle-four {
  left: 16%;
  top: 18%;
  width: 3px;
  animation-delay: 0.9s;
}

.particle-five {
  left: 23%;
  top: 25%;
  width: 4px;
  animation-delay: 2s;
}

.particle-link {
  --link-angle: 36deg;
  left: 77.2%;
  top: 39.2%;
  width: clamp(68px, 7vw, 104px);
  height: 1px;
  background: linear-gradient(90deg, rgba(241, 197, 109, 0), rgba(241, 197, 109, 0.34), rgba(241, 197, 109, 0));
  transform: rotate(var(--link-angle));
  transform-origin: left center;
  animation: gold-link 10s ease-in-out infinite 1.2s;
}

.particle-link-left {
  --link-angle: 44deg;
  left: 16.3%;
  top: 19%;
  width: clamp(54px, 5vw, 82px);
  opacity: 0;
  animation-delay: 1.1s;
}

.logo-marquee {
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(210, 154, 54, 0.2);
  border-bottom: 1px solid rgba(210, 154, 54, 0.16);
  background:
    linear-gradient(90deg, #071831, #12315d 48%, #071831),
    var(--navy);
}

.logo-track {
  display: flex;
  width: max-content;
  animation: logo-belt 38s linear infinite;
}

.logo-run {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 9px;
}

.logo-run span {
  width: 210px;
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: var(--marquee-bg, rgba(255, 255, 255, 0.06));
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
  overflow: hidden;
}

.logo-run span:hover {
  transform: scale(1.04);
  border-color: rgba(210, 154, 54, 0.46);
  background: rgba(210, 154, 54, 0.1);
}

.logo-run img {
  max-width: var(--marquee-logo-width, 82%);
  max-height: var(--marquee-logo-height, 78%);
  object-fit: contain;
}

.logo-tile.brand-cavalry {
  --marquee-bg: linear-gradient(135deg, #1d4693 0%, #153f86 55%, #102f64 100%);
  --marquee-logo-width: 88%;
  --marquee-logo-height: 78%;
}

.logo-tile.brand-complex {
  --marquee-bg: #f7f0e8;
  --marquee-logo-width: 86%;
  --marquee-logo-height: 76%;
}

.logo-tile.brand-tlcc {
  --marquee-bg: linear-gradient(135deg, #071821 0%, #0b222d 100%);
  --marquee-logo-width: 74%;
  --marquee-logo-height: 74%;
}

.logo-tile.brand-tillyco {
  --marquee-bg: linear-gradient(135deg, #1f6a7a 0%, #273239 100%);
  --marquee-logo-width: 82%;
  --marquee-logo-height: 78%;
}

.logo-tile.brand-eleo {
  --marquee-bg: linear-gradient(135deg, #e44e79 0%, #ef7b4f 58%, #f29a3f 100%);
  --marquee-logo-width: 92%;
  --marquee-logo-height: 82%;
  padding: 0;
}

.logo-tile.brand-eleo img {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
}

.logo-tile.brand-toto {
  --marquee-bg: #302d76;
  --marquee-logo-width: 88%;
  --marquee-logo-height: 78%;
}

.logo-tile.brand-qolcoe {
  --marquee-bg: linear-gradient(135deg, #0c5e62 0%, #17989b 100%);
  --marquee-logo-width: 84%;
  --marquee-logo-height: 76%;
}

.logo-tile.brand-hometown,
.logo-tile.brand-homes {
  --marquee-bg: radial-gradient(circle at 50% 34%, rgba(255, 255, 255, 0.72), transparent 42%), #fff8ee;
  --marquee-logo-width: 48%;
  --marquee-logo-height: 92%;
}

.logo-tile.brand-homes {
  --marquee-logo-width: 44%;
}

@keyframes logo-belt {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--gold-soft);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
  overflow-wrap: break-word;
}

h1 {
  max-width: 1080px;
  margin-bottom: 24px;
  font-size: clamp(52px, 6.6vw, 96px);
  line-height: 1.02;
}

h1 span {
  display: block;
}

.hero h1 {
  max-width: 1160px;
  font-size: clamp(44px, 5.35vw, 76px);
  line-height: 1.07;
}

.hero h1 span + span {
  margin-top: 0.04em;
}

.hero-copy {
  max-width: 820px;
  margin-bottom: 30px;
  color: #e4e8eb;
  font-size: clamp(17px, 1.8vw, 22px);
}

.hero-actions,
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.quality-strip {
  width: min(920px, 100%);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: clamp(28px, 4vw, 46px);
  padding: 12px;
  border: 1px solid rgba(241, 197, 109, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.quality-strip span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid rgba(241, 197, 109, 0.14);
  border-radius: 999px;
  background: rgba(8, 22, 44, 0.5);
  color: #f7f2e8;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
}

.quality-strip span::before {
  content: "";
  width: 7px;
  aspect-ratio: 1;
  border-radius: 999px;
  background: var(--gold-soft);
  box-shadow: 0 0 18px rgba(241, 197, 109, 0.42);
}

.button {
  position: relative;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  background: transparent;
  color: var(--navy);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
  transition: transform 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.button::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(210, 154, 54, 0.1), rgba(241, 197, 109, 0.24), rgba(210, 154, 54, 0.1));
  transform: translateX(-105%);
  transition: transform 260ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(210, 154, 54, 0.24);
}

.button:hover::before,
.button:focus-visible::before {
  transform: translateX(0);
}

.button.secondary {
  background: transparent;
  color: inherit;
}

.hero .button,
.company-hero .button,
.dark-band .button,
.moment-card .button,
.story-card .button,
.footer .button {
  color: #fff;
}

.hero-panel {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
    rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.hero-panel strong {
  display: block;
  margin-bottom: 10px;
  color: var(--gold-soft);
  font-size: 38px;
  line-height: 1;
}

.hero-panel p {
  margin-bottom: 0;
  color: #edf1f4;
  font-weight: 700;
}

.section {
  position: relative;
  overflow: hidden;
  padding: clamp(54px, 7vw, 88px) 0;
}

.section > .shell,
.page-intro > .shell {
  position: relative;
  z-index: 1;
}

.section::before {
  content: none;
  position: absolute;
  left: 50%;
  top: 0;
  width: min(1360px, calc(100% - 40px));
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(210, 154, 54, 0.5), transparent);
  transform: translateX(-50%);
  pointer-events: none;
}

.section.has-watermark::after,
.page-intro.has-watermark::after {
  content: none;
}

.section.has-watermark .shell::after,
.page-intro.has-watermark .shell::after {
  content: none;
}

.js-enabled .reveal-item {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 650ms ease, transform 650ms ease;
  transition-delay: var(--reveal-delay, 0ms);
}

.js-enabled .reveal-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.anchor-alias {
  position: absolute;
  top: 0;
}

.page-intro {
  position: relative;
  overflow: hidden;
  padding: clamp(44px, 5.5vw, 72px) 0 clamp(22px, 3vw, 36px);
  background: var(--paper);
}

.page-intro h1 {
  max-width: 1120px;
  color: var(--ink);
  font-size: clamp(40px, 5.2vw, 76px);
  line-height: 1.08;
}

.page-intro p:not(.eyebrow) {
  max-width: 1040px;
  margin-bottom: 0;
  color: #20262d;
  font-size: clamp(17px, 1.8vw, 22px);
  line-height: 1.56;
}

.story-page .founder-intro {
  margin-top: 0;
}

.story-page .page-intro {
  padding-bottom: clamp(8px, 1.5vw, 16px);
}

.story-page .page-intro + .section {
  padding-top: clamp(10px, 2vw, 20px);
}

.story-page .page-intro + .section > .shell:first-child {
  margin-bottom: clamp(26px, 3vw, 42px);
}

.page-intro + .section {
  padding-top: clamp(22px, 3vw, 36px);
}

.jobs-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.56fr) minmax(300px, 0.44fr);
  gap: 22px;
}

.job-list {
  display: grid;
  gap: 14px;
}

.job-list.full {
  gap: 18px;
}

.job-card {
  position: relative;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.job-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 240ms ease;
}

.job-card:hover {
  transform: translateY(-5px);
  border-color: rgba(210, 154, 54, 0.36);
  box-shadow: var(--shadow-lift);
}

.job-card:hover::before {
  transform: scaleX(1);
}

.job-card h3 {
  margin-bottom: 8px;
  font-size: 23px;
}

.job-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.vacancy-card {
  display: grid;
  grid-template-columns: minmax(280px, 0.34fr) minmax(0, 0.46fr) minmax(150px, auto);
  gap: 24px;
  align-items: center;
  padding: 32px;
}

.vacancy-card h3 {
  font-size: clamp(24px, 2.5vw, 34px);
  line-height: 1.08;
}

.vacancy-card .button {
  min-width: 142px;
  min-height: 48px;
}

.job-brand {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.job-location {
  font-weight: 700;
}

.vacancy-card ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.vacancy-card li + li {
  margin-top: 6px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(7, 24, 49, 0.76);
}

.modal-backdrop[hidden] {
  display: none;
}

.application-modal {
  position: relative;
  width: min(620px, 100%);
  max-height: min(860px, calc(100vh - 40px));
  overflow: auto;
  padding: 30px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.36);
}

.application-modal h2 {
  margin-bottom: 18px;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.05;
}

.application-modal form {
  display: grid;
  gap: 10px;
}

.application-modal label {
  font-weight: 700;
}

.application-modal input,
.application-modal textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font: inherit;
}

.application-modal textarea {
  resize: vertical;
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.referral-panel {
  position: sticky;
  top: 118px;
  align-self: start;
  padding: 28px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 82% 12%, rgba(210, 154, 54, 0.3), transparent 30%),
    var(--navy);
  color: #fff;
  box-shadow: var(--shadow);
}

.referral-panel p {
  color: #dce2e7;
}

.referral-panel a {
  color: var(--gold-soft);
  font-weight: 700;
}

.home-updates .update-card a {
  display: inline-block;
  margin-top: 14px;
  color: #0b5685;
  font-weight: 700;
}

.join-page .cavalry-feature-band + .section {
  padding-top: clamp(42px, 5vw, 70px);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.68fr) minmax(300px, 0.32fr);
  gap: 34px;
  align-items: end;
  margin-bottom: 34px;
}

.section-head.compact {
  margin-bottom: 24px;
}

.section-head h2,
.story-copy h2 {
  margin-bottom: 0;
  font-size: clamp(32px, 4.5vw, 56px);
  line-height: 1.05;
}

.section-head p {
  margin-bottom: 0;
  color: var(--muted);
}

.section-head > p,
.page-intro > .shell > p:not(.eyebrow),
.portal-strip p:not(.eyebrow) {
  display: none;
}

.story-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 4vw, 44px);
  align-items: start;
  min-width: 0;
}

.story-page .story-grid {
  padding-top: clamp(24px, 3vw, 40px);
}

.story-copy {
  min-width: 0;
  font-size: 16px;
}

.story-copy h2 {
  max-width: 980px;
}

.story-lede {
  max-width: 880px;
  color: #20262d;
  font-size: 20px;
  line-height: 1.55;
}

.story-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 28px;
}

.story-columns div,
.story-callout {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.58);
}

.story-columns h3 {
  margin-bottom: 10px;
  font-size: 20px;
}

.story-copy p {
  max-width: 100%;
  margin-bottom: 18px;
  color: #303740;
}

.story-callout {
  margin-top: 22px;
  border-left: 5px solid var(--gold);
}

.story-callout p:last-child {
  margin-bottom: 0;
}

.journey-block {
  margin-top: clamp(42px, 6vw, 72px);
}

.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 32px;
  height: 2px;
  background: linear-gradient(90deg, rgba(210, 154, 54, 0), var(--gold), rgba(210, 154, 54, 0));
}

.timeline-item {
  position: relative;
  min-width: 0;
  padding: 64px 18px 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 42px rgba(15, 18, 22, 0.08);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.timeline-item:hover {
  transform: translateY(-6px);
  border-color: rgba(210, 154, 54, 0.4);
  box-shadow: var(--shadow-lift);
}

.timeline-item::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 18px;
  width: 20px;
  aspect-ratio: 1;
  border: 4px solid #fff;
  border-radius: 999px;
  background: var(--gold);
  box-shadow: 0 0 0 1px rgba(210, 154, 54, 0.42);
}

.timeline-item span {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.timeline-item h3 {
  margin-bottom: 8px;
  font-size: 19px;
  line-height: 1.16;
}

.timeline-item p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

.vision-values {
  background:
    radial-gradient(circle at 82% 10%, rgba(210, 154, 54, 0.18), transparent 26%),
    #fff;
}

.principle-grid {
  counter-reset: principle;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.principle-card {
  position: relative;
  min-height: 260px;
  padding: clamp(24px, 4vw, 36px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(245, 242, 235, 0.92)),
    #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
  counter-increment: principle;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.principle-card::after {
  content: none;
}

.principle-card::before {
  content: "0" counter(principle);
  position: absolute;
  right: 26px;
  top: 24px;
  color: rgba(210, 154, 54, 0.22);
  font-size: clamp(54px, 7vw, 92px);
  font-weight: 700;
  line-height: 0.8;
}

.principle-card:hover {
  transform: translateY(-6px);
  border-color: rgba(210, 154, 54, 0.38);
  box-shadow: var(--shadow-lift);
}

.principle-card > * {
  position: relative;
  z-index: 1;
}

.principle-card span {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.principle-card h3 {
  margin-bottom: 12px;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.05;
}

.principle-card p {
  max-width: 640px;
  margin-bottom: 0;
  color: var(--muted);
}

.central-functions {
  border-top: 1px solid rgba(210, 154, 54, 0.68);
  background:
    var(--hero-navy-gradient),
    var(--navy);
  color: #fff;
  padding-top: clamp(78px, 8vw, 112px);
}

.central-functions .section-head p {
  color: #dce2e7;
}

.function-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.function-card {
  position: relative;
  min-height: 250px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background:
    radial-gradient(circle at 84% 18%, rgba(210, 154, 54, 0.1), transparent 34%),
    linear-gradient(135deg, rgba(18, 49, 93, 0.78), rgba(7, 24, 49, 0.78));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  overflow: hidden;
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.function-card:nth-child(2),
.function-card:nth-child(5) {
  margin-top: 0;
}

.function-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: linear-gradient(120deg, transparent 0%, rgba(241, 197, 109, 0.18) 34%, transparent 68%);
  transform: translateX(-120%);
  animation: gold-sheen 7s ease-in-out infinite;
  pointer-events: none;
}

.function-card::after {
  content: none;
}

.function-card:hover {
  transform: translateY(-8px);
  border-color: rgba(241, 197, 109, 0.42);
  box-shadow: 0 24px 60px rgba(3, 10, 22, 0.36), 0 0 0 1px rgba(210, 154, 54, 0.12);
}

.function-card > * {
  position: relative;
  z-index: 1;
}

.function-card span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: var(--gold-soft);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.function-card span::before {
  content: "";
  width: 10px;
  aspect-ratio: 1;
  border-radius: 999px;
  background: var(--gold);
  box-shadow: 0 0 0 6px rgba(210, 154, 54, 0.12);
}

.function-card h3 {
  margin-bottom: 12px;
  font-size: 22px;
  line-height: 1.12;
}

.function-card p {
  margin-bottom: 0;
  color: #dce2e7;
  font-size: 14px;
}

.group-updates {
  background:
    radial-gradient(circle at 86% 12%, rgba(210, 154, 54, 0.16), transparent 28%),
    var(--paper);
}

.updates-layout {
  display: grid;
  grid-template-columns: minmax(380px, 0.42fr) minmax(0, 0.58fr);
  gap: 20px;
  align-items: stretch;
}

.moment-card {
  position: relative;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(26px, 4vw, 38px);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(7, 24, 49, 0.1), rgba(7, 24, 49, 0.88)),
    radial-gradient(circle at 76% 16%, rgba(210, 154, 54, 0.32), transparent 30%),
    var(--hero-navy-gradient),
    var(--navy);
  color: #fff;
  text-decoration: none;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.moment-card::before {
  content: none;
}

.moment-card > * {
  position: relative;
  z-index: 1;
}

.moment-card h3 {
  max-width: 520px;
  margin-bottom: 14px;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.04;
}

.moment-card p:not(.eyebrow) {
  color: #e6ebef;
}

.moment-card span {
  margin-top: 16px;
  color: var(--gold-soft);
  font-weight: 700;
}

.updates-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.updates-grid.single {
  grid-template-columns: 1fr;
}

.update-card {
  min-height: 200px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
}

.update-card.feature-update {
  grid-column: 1 / -1;
  min-height: 260px;
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(240px, 0.3fr);
  gap: 24px;
  align-items: end;
  padding: clamp(28px, 4vw, 42px);
}

.update-card.feature-update h3 {
  max-width: 860px;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.04;
}

.update-card.feature-update.company-story-card {
  display: flex;
  min-height: 520px;
  flex-direction: column;
  align-items: stretch;
}

.company-story-card > div:first-child {
  max-width: 900px;
}

.company-story-window {
  min-height: 300px;
  margin-top: clamp(20px, 3vw, 32px);
}

.company-story-window .moment-story-slide {
  grid-template-columns: minmax(260px, 0.38fr) minmax(0, 0.62fr);
  grid-template-rows: 1fr;
  background: var(--hero-navy-gradient);
}

.company-story-window .moment-story-slide img {
  align-self: stretch;
  min-height: 100%;
  padding: 0;
  object-fit: contain;
  background: rgba(8, 34, 63, 0.18);
}

.company-story-window .moment-story-slide div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(24px, 4vw, 46px);
  background:
    radial-gradient(circle at 100% 0%, rgba(210, 154, 54, 0.16), transparent 32%),
    rgba(9, 28, 51, 0.72);
}

.company-story-window .moment-story-slide div > * {
  margin-left: auto;
  margin-right: auto;
  width: min(100%, 720px);
}

.company-story-window .moment-story-slide p:not(.moment-story-kicker) {
  max-width: 720px;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.45;
}

.story-placeholder-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.story-placeholder-card {
  position: relative;
  min-height: 300px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(245, 242, 235, 0.94)),
    #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.story-placeholder-card::after {
  content: none;
}

.story-placeholder-card span {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.story-placeholder-card h3 {
  margin-bottom: 12px;
  font-size: 24px;
  line-height: 1.12;
}

.story-placeholder-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.update-card span {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.update-card h3 {
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 1.12;
}

.update-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

.moment-story-card {
  position: relative;
  display: flex;
  min-height: 360px;
  flex-direction: column;
}

.linked-story-card {
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.linked-story-card:hover {
  transform: translateY(-4px);
  border-color: rgba(210, 154, 54, 0.48);
  box-shadow: 0 24px 54px rgba(8, 34, 63, 0.16);
}

.story-card-link {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: 18px;
  cursor: pointer;
}

.moment-story-window {
  position: relative;
  flex: 1;
  min-height: 224px;
  margin-top: 8px;
  overflow: hidden;
  border-radius: 16px;
  background: var(--hero-navy-gradient);
}

.moment-story-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  opacity: 0;
  transform: translateX(18px) scale(0.985);
  transition: opacity 560ms ease, transform 560ms ease;
  pointer-events: none;
}

.moment-story-slide.is-active {
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: auto;
}

.moment-story-slide img {
  width: 100%;
  height: 100%;
  min-height: 132px;
  object-fit: cover;
  object-position: center;
}

.moment-story-slide div {
  padding: 16px 18px 18px;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(9, 28, 51, 0), rgba(9, 28, 51, 0.82) 22%),
    rgba(9, 28, 51, 0.92);
}

.moment-story-slide p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
  line-height: 1.45;
}

.moment-story-slide .moment-story-kicker {
  margin-bottom: 6px;
  color: var(--gold-light);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.moment-story-dots {
  position: relative;
  z-index: 3;
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.moment-story-dots button {
  width: 34px;
  height: 4px;
  border: 0;
  border-radius: 999px;
  background: rgba(8, 34, 63, 0.18);
  cursor: pointer;
  transition: background 220ms ease, width 220ms ease;
}

.moment-story-dots button.is-active {
  width: 52px;
  background: var(--gold);
}

.moment-story-card:not(.company-story-card) .moment-story-window {
  min-height: 260px;
}

.moment-story-card:not(.company-story-card) .moment-story-slide {
  grid-template-rows: minmax(0, 1fr) auto;
}

.moment-story-card:not(.company-story-card) .moment-story-slide img {
  object-fit: contain;
  background: #071831;
}

.moments-public .page-intro {
  padding-bottom: clamp(58px, 8vw, 104px);
}

.moments-public .page-intro > .shell > p:not(.eyebrow) {
  display: block;
}

.public-moments-grid {
  display: grid;
  gap: 26px;
}

.public-moment-card {
  display: grid;
  grid-template-columns: minmax(300px, 0.46fr) minmax(0, 0.54fr);
  gap: clamp(22px, 3vw, 36px);
  align-items: stretch;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow);
}

.public-moment-media {
  display: grid;
  gap: 12px;
  align-self: stretch;
}

.public-moment-media img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  max-height: 430px;
  border-radius: 16px;
  object-fit: contain;
  background: #071831;
}

.public-moment-media.image-count-2,
.public-moment-media.image-count-3 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-height: 280px;
  max-height: 430px;
}

.public-moment-media.image-count-2 img,
.public-moment-media.image-count-3 img {
  min-height: 0;
  max-height: none;
}

.public-moment-media.image-count-3 {
  grid-template-rows: repeat(2, minmax(0, 1fr));
}

.public-moment-media.image-count-3 img:first-child {
  grid-row: 1 / span 2;
}

.public-moment-copy {
  align-self: center;
}

.public-moment-copy .eyebrow {
  margin-bottom: 14px;
}

.public-moment-copy h2 {
  margin-bottom: 18px;
  color: var(--navy);
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.02;
}

.public-moment-copy p {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.public-moment-copy p:last-child {
  margin-bottom: 0;
}

.story-card {
  position: sticky;
  top: 104px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    radial-gradient(circle at 86% 0%, rgba(210, 154, 54, 0.24), transparent 28%),
    var(--hero-navy-gradient),
    var(--navy);
  color: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.founder-card {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 30px;
  align-items: center;
  min-height: 260px;
}

.founder-intro {
  position: relative;
  margin-bottom: clamp(34px, 4vw, 56px);
  padding: clamp(34px, 5vw, 58px);
  grid-template-columns: minmax(120px, 170px) minmax(0, 1fr);
  border-color: rgba(210, 154, 54, 0.28);
}

.founder-intro::after {
  content: none;
}

.founder-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: url("assets/pbc-horse-emblem.png") right -82px center / 310px no-repeat;
  opacity: 0.16;
  pointer-events: none;
}

.founder-card > * {
  position: relative;
  z-index: 1;
}

.founder-orb {
  width: 100%;
  max-width: 132px;
  aspect-ratio: 1;
  border: 1px dashed rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.2), transparent 18%),
    radial-gradient(circle at 52% 48%, rgba(241, 197, 109, 0.2), transparent 44%),
    rgba(255, 255, 255, 0.08);
}

img.founder-headshot {
  display: block;
  border: 2px solid rgba(241, 197, 109, 0.44);
  object-fit: cover;
  object-position: center 34%;
  background:
    var(--hero-navy-gradient),
    var(--navy);
  box-shadow:
    0 0 0 8px rgba(255, 255, 255, 0.055),
    0 22px 50px rgba(0, 0, 0, 0.28);
}

.story-card img {
  width: 180px;
  max-width: 70%;
  display: block;
  margin-bottom: 24px;
}

.story-card h3 {
  margin-bottom: 10px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.12;
}

.founder-role {
  margin-bottom: 14px;
  color: var(--gold-soft);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.founder-card a {
  display: inline-block;
  margin-bottom: 18px;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.story-card p {
  margin-bottom: 0;
  color: #dce2e7;
}

.company-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.company-card {
  position: relative;
  min-width: 0;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform 180ms ease, box-shadow 180ms ease;
  overflow: hidden;
}

.company-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms ease;
}

.company-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 58px rgba(15, 18, 22, 0.14);
}

.company-card:hover::before {
  transform: scaleX(1);
}

.logo-panel {
  height: 148px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  padding: 22px;
  border-radius: 16px;
  background: var(--logo-bg, #f5efe5);
  overflow: hidden;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.company-card:hover .logo-panel,
.detail-panel:hover .logo-panel {
  transform: scale(1.015);
}

.logo-panel img {
  width: auto;
  height: auto;
  max-width: var(--logo-max-width, 72%);
  max-height: var(--logo-max-height, 72%);
  object-fit: contain;
}

.logo-panel.warm {
  background:
    radial-gradient(circle at 50% 34%, rgba(255, 255, 255, 0.72), transparent 42%),
    #fff8ee;
}

.logo-panel.eleo-panel {
  padding: 0;
  background: linear-gradient(135deg, #e44e79 0%, #ef7b4f 58%, #f29a3f 100%);
}

.logo-panel.eleo-panel img {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
}

.company-card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 8px 10px;
  font-size: 23px;
  line-height: 1.12;
}

.company-card h3::before {
  content: "";
  flex: 0 0 auto;
  width: 10px;
  aspect-ratio: 1;
  border-radius: 999px;
  background: var(--gold);
  box-shadow: 0 0 0 6px rgba(210, 154, 54, 0.12);
}

.company-card p {
  margin: 0 8px 12px;
  color: var(--muted);
  font-size: 14px;
}

.company-card span {
  margin: auto 8px 4px;
  color: #0b5685;
  font-size: 13px;
  font-weight: 700;
}

.dark-band {
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(210, 154, 54, 0.68);
  background:
    var(--hero-navy-gradient),
    var(--navy);
  color: #fff;
}

.portal-strip {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) auto;
  gap: 24px;
  align-items: center;
}

.portal-strip p {
  max-width: 720px;
  margin-bottom: 0;
  color: #dce2e7;
}

.cavalry-feature-band {
  position: relative;
  overflow: hidden;
  padding: clamp(42px, 5vw, 64px) 0;
  border-top: 1px solid rgba(210, 154, 54, 0.68);
  background:
    var(--hero-navy-gradient),
    var(--navy);
  color: #fff;
}

.company-hero,
.central-functions {
  position: relative;
  overflow: hidden;
}

.cavalry-feature-band::after {
  content: "";
  position: absolute;
  right: clamp(90px, 14vw, 240px);
  top: 34%;
  width: clamp(64px, 8vw, 110px);
  height: 1px;
  background:
    linear-gradient(90deg, rgba(241, 197, 109, 0), rgba(241, 197, 109, 0.34), rgba(241, 197, 109, 0));
  opacity: 0;
  transform: rotate(34deg) scaleX(0.2);
  transform-origin: left center;
  animation: dark-hero-link 10s ease-in-out infinite 1.4s;
  pointer-events: none;
}

.cavalry-feature-band::before,
.company-hero::before,
.dark-band::before,
.central-functions::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 72% 31%, rgba(241, 197, 109, 0.72) 0 2px, transparent 3px),
    radial-gradient(circle at 80% 42%, rgba(241, 197, 109, 0.48) 0 2px, transparent 3px),
    radial-gradient(circle at 68% 52%, rgba(241, 197, 109, 0.4) 0 1.5px, transparent 3px);
  opacity: 0;
  animation: dark-hero-particles 10s ease-in-out infinite;
  pointer-events: none;
}

.company-hero::after,
.dark-band::after,
.central-functions::after {
  content: "";
  position: absolute;
  right: clamp(90px, 14vw, 240px);
  top: 34%;
  width: clamp(64px, 8vw, 110px);
  height: 1px;
  background:
    linear-gradient(90deg, rgba(241, 197, 109, 0), rgba(241, 197, 109, 0.3), rgba(241, 197, 109, 0));
  opacity: 0;
  transform: rotate(34deg) scaleX(0.2);
  transform-origin: left center;
  animation: dark-hero-link 10s ease-in-out infinite 1.4s;
  pointer-events: none;
}

.company-hero::before {
  background:
    radial-gradient(circle at 47% 30%, rgba(241, 197, 109, 0.7) 0 2px, transparent 3px),
    radial-gradient(circle at 52% 41%, rgba(241, 197, 109, 0.46) 0 2px, transparent 3px),
    radial-gradient(circle at 48% 52%, rgba(241, 197, 109, 0.38) 0 1.5px, transparent 3px);
}

.company-hero::after {
  left: 47.4%;
  right: auto;
  top: 31%;
  width: clamp(58px, 6vw, 92px);
  transform: rotate(38deg) scaleX(0.2);
  animation-name: company-hero-link;
}

.feature-band-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.62fr) minmax(280px, 0.38fr);
  gap: clamp(28px, 5vw, 74px);
  align-items: center;
}

.feature-band-content h2 {
  max-width: 760px;
  margin-bottom: 14px;
  font-size: clamp(34px, 5vw, 68px);
  line-height: 1.02;
}

.feature-band-content p {
  max-width: 680px;
  margin-bottom: 0;
  color: #dce2e7;
}

.feature-points {
  display: grid;
  gap: 12px;
}

.feature-points span {
  display: block;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-left: 4px solid var(--gold);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-weight: 700;
}

.company-hero {
  padding: clamp(44px, 5vw, 66px) 0;
  border-top: 1px solid rgba(210, 154, 54, 0.68);
  color: #fff;
  background:
    var(--hero-navy-gradient),
    var(--navy);
}

.company-hero .shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.52fr) minmax(360px, 0.48fr);
  gap: clamp(46px, 6vw, 92px);
  align-items: center;
}

.company-hero h1 {
  max-width: 780px;
  margin-bottom: 26px;
  font-size: clamp(36px, 4.1vw, 58px);
  line-height: 1.14;
}

.company-hero .hero-copy {
  max-width: 700px;
  margin-bottom: 30px;
  line-height: 1.62;
}

.company-hero + .section {
  padding-top: clamp(36px, 4vw, 54px);
}

@media (min-width: 681px) {
  .story-page .page-intro + .section {
    margin-top: clamp(-92px, -7vw, -64px);
  }
}

.detail-panel {
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.06);
}

.detail-panel .logo-panel {
  height: clamp(220px, 22vw, 280px);
  padding: 12px;
  margin-bottom: 0;
}

.detail-panel .logo-panel img {
  transform: scale(1.06);
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.62fr) minmax(280px, 0.38fr);
  gap: clamp(28px, 4vw, 48px);
  align-items: start;
}

.glance-strip {
  position: relative;
  overflow: hidden;
  padding: clamp(18px, 2.5vw, 28px) 0;
  border-top: 1px solid rgba(210, 154, 54, 0.68);
  background:
    var(--hero-navy-gradient),
    var(--navy);
  color: #fff;
}

.glance-strip::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: min(1360px, calc(100% - 40px));
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(241, 197, 109, 0.7), transparent);
  transform: translateX(-50%);
}

.glance-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.glance-item {
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background:
    radial-gradient(circle at 88% 18%, rgba(210, 154, 54, 0.1), transparent 34%),
    linear-gradient(135deg, rgba(18, 49, 93, 0.82), rgba(7, 24, 49, 0.82));
}

.glance-item span {
  display: block;
  margin-bottom: 8px;
  color: var(--gold-soft);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.glance-item strong {
  display: block;
  color: #fff;
  font-size: 15px;
  line-height: 1.3;
}

.info-box {
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.info-box h2,
.info-box h3 {
  margin-bottom: 18px;
}

.info-box p,
.info-box li {
  color: var(--muted);
  line-height: 1.68;
}

.info-box ul {
  margin: 0;
  padding-left: 20px;
}

.leadership-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.leadership-card h3 {
  margin-bottom: 0;
}

.leader-profile {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.headshot-placeholder {
  width: 82px;
  aspect-ratio: 1;
  border: 1px dashed rgba(210, 154, 54, 0.65);
  border-radius: 999px;
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.84), transparent 18%),
    radial-gradient(circle at 58% 54%, rgba(210, 154, 54, 0.28), transparent 48%),
    #ece7dc;
}

.leader-headshot {
  width: 82px;
  aspect-ratio: 1;
  display: block;
  border: 2px solid rgba(210, 154, 54, 0.54);
  border-radius: 999px;
  object-fit: cover;
  object-position: center 34%;
  background: #ece7dc;
  box-shadow:
    0 0 0 5px rgba(210, 154, 54, 0.08),
    0 12px 28px rgba(16, 18, 20, 0.12);
}

.leader-name {
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
}

.leader-role {
  margin-bottom: 4px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
}

.leader-message {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.62;
}

.leader-stack {
  display: grid;
  gap: 22px;
}

.login-shell {
  min-height: calc(100vh - 78px);
  display: grid;
  place-items: center;
  padding: 48px 0;
}

.login-card {
  width: min(460px, 100%);
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow);
}

.login-card h1 {
  font-size: clamp(44px, 6vw, 68px);
  line-height: 0.96;
}

.login-card input {
  width: 100%;
  height: 46px;
  margin: 12px 0;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font: inherit;
}

.portal-content {
  display: none;
}

.portal-content.is-open {
  display: block;
}

.portal-dashboard {
  display: grid;
  grid-template-columns: minmax(0, 0.6fr) minmax(280px, 0.4fr);
  gap: 22px;
  align-items: stretch;
  margin-top: 24px;
}

.portal-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
}

.portal-card h2,
.portal-card h3 {
  margin-bottom: 12px;
}

.portal-card p {
  color: var(--muted);
}

.contact-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.contact-list a {
  color: #0b5685;
  font-weight: 700;
  word-break: break-word;
}

.contact-actions {
  margin: 14px 0 16px;
}

.error {
  min-height: 22px;
  margin-bottom: 0;
  color: #b32828;
  font-size: 13px;
  font-weight: 700;
}

.footer {
  padding: 28px 0 36px;
  border-top: 1px solid rgba(210, 154, 54, 0.68);
  background:
    var(--hero-navy-gradient),
    var(--navy);
  color: #dce2e7;
}

.footer .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer img {
  width: 170px;
}

.footer p {
  margin-bottom: 0;
  color: #bfc6cd;
  font-size: 13px;
  text-align: right;
}

@keyframes horse-drift {
  from {
    transform: translateY(-50%) scale(1);
  }

  to {
    transform: translateY(-48%) scale(1.045);
  }
}

@keyframes ambient-drift {
  from {
    transform: translate3d(0, 0, 0);
    opacity: 0.46;
  }

  to {
    transform: translate3d(14px, -10px, 0);
    opacity: 0.72;
  }
}

@keyframes gold-particle {
  0%,
  24%,
  100% {
    opacity: 0;
    transform: translate3d(0, 0, 0) scale(0.78);
  }

  38%,
  58% {
    opacity: 0.58;
    transform: translate3d(4px, -5px, 0) scale(1);
  }

  72% {
    opacity: 0.18;
    transform: translate3d(7px, -8px, 0) scale(0.9);
  }
}

@keyframes gold-link {
  0%,
  34%,
  100% {
    opacity: 0;
    transform: rotate(var(--link-angle)) scaleX(0.18);
  }

  46%,
  56% {
    opacity: 0.34;
    transform: rotate(var(--link-angle)) scaleX(1);
  }
}

@keyframes dark-hero-particles {
  0%,
  24%,
  100% {
    opacity: 0;
    transform: translate3d(0, 0, 0);
  }

  40%,
  62% {
    opacity: 0.62;
    transform: translate3d(5px, -7px, 0);
  }

  78% {
    opacity: 0.16;
    transform: translate3d(8px, -10px, 0);
  }
}

@keyframes dark-hero-link {
  0%,
  34%,
  100% {
    opacity: 0;
    transform: rotate(34deg) scaleX(0.2);
  }

  46%,
  58% {
    opacity: 0.32;
    transform: rotate(34deg) scaleX(1);
  }
}

@keyframes company-hero-link {
  0%,
  34%,
  100% {
    opacity: 0;
    transform: rotate(38deg) scaleX(0.2);
  }

  46%,
  58% {
    opacity: 0.3;
    transform: rotate(38deg) scaleX(1);
  }
}

@keyframes gold-sheen {
  0%,
  46% {
    transform: translateX(-120%);
  }

  72%,
  100% {
    transform: translateX(120%);
  }
}

@keyframes staff-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(210, 154, 54, 0.44);
  }

  80% {
    box-shadow: 0 0 0 12px rgba(210, 154, 54, 0);
  }

  100% {
    box-shadow: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js-enabled .reveal-item {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 980px) {
  .hero .shell,
  .section-head,
  .story-grid,
  .story-columns,
  .timeline,
  .principle-grid,
  .function-grid,
  .updates-layout,
  .updates-grid,
  .jobs-grid,
  .portal-strip,
  .portal-dashboard,
  .feature-band-content,
  .glance-grid,
  .update-card.feature-update,
  .story-placeholder-grid,
  .company-hero .shell,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .company-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .story-card {
    position: static;
  }

  .function-card:nth-child(2),
  .function-card:nth-child(5) {
    margin-top: 0;
  }

  .timeline {
    gap: 14px;
  }

  .timeline::before {
    top: 0;
    bottom: 0;
    left: 29px;
    right: auto;
    width: 2px;
    height: auto;
    background: linear-gradient(180deg, rgba(210, 154, 54, 0), var(--gold), rgba(210, 154, 54, 0));
  }

  .timeline-item {
    padding: 22px 20px 22px 68px;
  }

  .timeline-item::before {
    top: 26px;
    left: 20px;
  }

  .company-story-window .moment-story-slide {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(160px, 0.45fr) auto;
  }

  .company-story-window .moment-story-slide img {
    min-height: 160px;
  }

  .public-moment-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .shell {
    width: auto;
    max-width: none;
    margin-left: 14px;
    margin-right: 14px;
  }

  .story-grid,
  .story-copy,
  .story-columns,
  .story-columns div,
  .story-callout,
  .journey-block,
  .timeline,
  .timeline-item,
  .principle-grid,
  .principle-card,
  .vacancy-card {
    width: 100%;
    max-width: 100%;
  }

  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 0;
  }

  .nav-links {
    width: 100%;
    flex-wrap: wrap;
    gap: 12px;
  }

  .company-menu {
    position: static;
  }

  .company-menu-panel {
    left: 14px;
    right: 14px;
    width: auto;
    transform: translateY(-6px);
  }

  .company-menu:hover .company-menu-panel,
  .company-menu:focus-within .company-menu-panel {
    transform: translateY(0);
  }

  .hero .shell {
    min-height: auto;
  }

  h1 {
    font-size: 31px;
    line-height: 1.05;
    overflow-wrap: anywhere;
  }

  .section-head h2,
  .story-copy h2,
  .company-hero h1 {
    font-size: 25px;
    line-height: 1.08;
    overflow-wrap: anywhere;
  }

  .story-lede {
    font-size: 16px;
  }

  .hero-copy {
    max-width: 100%;
    font-size: 16px;
  }

  .quality-strip {
    border-radius: 22px;
  }

  .quality-strip span {
    flex: 1 1 calc(50% - 10px);
    justify-content: center;
    text-align: center;
  }

  .update-card.feature-update.company-story-card {
    min-height: 540px;
    padding: 22px;
  }

  .company-story-window {
    min-height: 338px;
  }

  .company-story-window .moment-story-slide div {
    padding: 20px;
  }

  .company-story-window .moment-story-slide p:not(.moment-story-kicker) {
    font-size: 16px;
  }

  .moment-story-dots {
    flex-wrap: wrap;
  }

  .moment-story-dots button {
    width: 24px;
  }

  .moment-story-dots button.is-active {
    width: 38px;
  }

  .public-moments-grid {
    gap: 18px;
  }

  .public-moment-card {
    padding: 16px;
    border-radius: 18px;
  }

  .public-moment-media img {
    min-height: 220px;
    max-height: none;
  }

  .public-moment-media.image-count-2,
  .public-moment-media.image-count-3 {
    min-height: 0;
    max-height: none;
    aspect-ratio: 1.18 / 1;
  }

  .public-moment-media.image-count-2 img,
  .public-moment-media.image-count-3 img {
    min-height: 0;
  }

  .public-moment-copy h2 {
    font-size: 28px;
  }

  .public-moment-copy p {
    font-size: 15px;
  }

  .story-columns div,
  .story-callout,
  .timeline-item,
  .principle-card {
    padding-left: 20px;
    padding-right: 20px;
  }

  .vacancy-card {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .founder-card {
    grid-template-columns: 1fr;
  }

  .company-grid {
    grid-template-columns: 1fr;
  }

  .footer .shell {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer p {
    text-align: left;
  }
}
