/* ==========================================================================
   Proxeum · Marketing Site
   Design system per docs/ProxeumBrand kl.md
   Blue-led · structured · high-contrast · controlled accent usage
   ========================================================================== */

:root {
  /* Brand palette */
  --brand-blue: #103E9E;
  --navy: #0A1F44;
  --action-blue: #2F6BFE;
  --sky-blue: #4DA3FF;
  --teal: #0FA3B1;
  --purple: #8B5CFF;
  --midnight: #070C1A;
  --off-white: #F8FAFF;
  --surface-blue: #CFE6FF;
  --surface-lavender: #E9E2FF;

  /* Derived neutrals (cool-toned) */
  --ink: #0d1b36;
  --body: #3a4a6b;
  --body-on-dark: #a8b6d4;
  --hairline: #dde6f7;
  --hairline-dark: rgba(120, 150, 220, 0.16);
  --card-shadow: 0 1px 2px rgba(10, 31, 68, 0.04), 0 12px 32px -16px rgba(10, 31, 68, 0.14);

  /* Signature accent · used sparingly (hero keyword, small markers) */
  --grad-accent: linear-gradient(96deg, var(--action-blue) 10%, var(--purple) 90%);

  /* Type */
  --font-display: "Rajdhani", sans-serif;
  --font-body: "Lato", sans-serif;

  /* Rhythm */
  --container: 1140px;
  --section-pad: clamp(4.5rem, 9vw, 7.5rem);
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--body);
  background: var(--off-white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--action-blue);
  text-decoration: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  color: var(--ink);
  letter-spacing: -0.005em;
}

h1 { font-size: clamp(2.75rem, 6.4vw, 4.75rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3rem); line-height: 1.12; }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.6rem); }

p { max-width: 62ch; }

::selection {
  background: var(--action-blue);
  color: #fff;
}

.container {
  width: min(var(--container), 100% - 3rem);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--brand-blue);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 200;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* --------------------------------------------------------------------------
   Signature marks
   -------------------------------------------------------------------------- */

/* Gradient keyword · the one deliberate gradient moment per page */
.grad {
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Double-chevron glyph, echoing the logomark */
.chev::before {
  content: "\00BB";
  font-family: var(--font-display);
  font-weight: 700;
  margin-right: 0.55rem;
  color: var(--action-blue);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  color: var(--action-blue);
  margin-bottom: 1.1rem;
}

.eyebrow::before {
  content: "\00BB";
  font-weight: 700;
  font-size: 1.15em;
  background: var(--grad-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-dark .eyebrow { color: var(--sky-blue); }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.9rem 1.9rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
  will-change: transform;
}

.btn .arrow {
  transition: transform 0.18s ease;
  font-weight: 700;
}

.btn:hover .arrow { transform: translateX(3px); }

.btn-primary {
  background: var(--action-blue);
  color: #fff;
  box-shadow: 0 10px 28px -10px rgba(47, 107, 254, 0.55);
}

.btn-primary:hover {
  background: #2559dd;
  transform: translateY(-1px);
  box-shadow: 0 14px 34px -10px rgba(47, 107, 254, 0.65);
}

.btn-ghost {
  color: #dbe6ff;
  border-color: rgba(160, 185, 240, 0.35);
  background: rgba(255, 255, 255, 0.02);
}

.btn-ghost:hover {
  border-color: rgba(160, 185, 240, 0.7);
  background: rgba(255, 255, 255, 0.05);
}

.btn-ghost-light {
  color: var(--brand-blue);
  border-color: #c3d4f5;
}

.btn-ghost-light:hover {
  border-color: var(--action-blue);
  background: #fff;
}

.btn:focus-visible,
a:focus-visible {
  outline: 2px solid var(--action-blue);
  outline-offset: 3px;
  border-radius: 4px;
}
.btn:focus-visible { border-radius: 999px; }

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */

.site-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

.site-nav.scrolled {
  background: rgba(7, 12, 26, 0.86);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--hairline-dark);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.nav-logo img { height: 30px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.4rem;
  list-style: none;
}

.nav-links a:not(.btn) {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  color: #c7d3ee;
  position: relative;
  padding: 0.3rem 0;
  transition: color 0.18s ease;
}

.nav-links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: var(--grad-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}

.nav-links a:not(.btn):hover,
.nav-links a:not(.btn)[aria-current="page"] {
  color: #fff;
}

.nav-links a:not(.btn):hover::after,
.nav-links a:not(.btn)[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-links .btn { padding: 0.62rem 1.5rem; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #e6edfc;
  margin: 5px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  background: var(--midnight);
  color: #fff;
  overflow: hidden;
  padding-top: clamp(9rem, 16vw, 12.5rem);
  padding-bottom: clamp(4.5rem, 8vw, 7rem);
}

/* Engineering-grid backdrop + a single controlled glow */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(77, 163, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(77, 163, 255, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 0%, black 35%, transparent 78%);
  mask-image: radial-gradient(ellipse 90% 80% at 50% 0%, black 35%, transparent 78%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  top: -30%;
  right: -12%;
  width: 55vw;
  height: 55vw;
  max-width: 780px;
  max-height: 780px;
  background: radial-gradient(circle, rgba(47, 107, 254, 0.16) 0%, rgba(139, 92, 255, 0.07) 45%, transparent 70%);
  pointer-events: none;
}

/* Faint dashboard rendering behind the hero content */
.hero-bg {
  position: absolute;
  inset: 0;
  opacity: 0.13;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, black 55%, transparent 96%);
  mask-image: linear-gradient(180deg, black 55%, transparent 96%);
}

.hero-bg svg {
  width: 100%;
  height: 100%;
  display: block;
}

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

.hero h1 {
  color: #fff;
  max-width: 13ch;
  margin-bottom: 1.6rem;
}

.hero .lede {
  font-size: 1.2rem;
  line-height: 1.7;
  color: var(--body-on-dark);
  max-width: 54ch;
  margin-bottom: 2.4rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

/* Sub-page hero (shorter) */
.hero-sub { padding-bottom: clamp(3.5rem, 6vw, 5rem); }
.hero-sub h1 { max-width: 17ch; }

/* Staggered entrance */
.hero [data-stagger] {
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.7s cubic-bezier(0.2, 0.65, 0.25, 1) forwards;
}
.hero [data-stagger="1"] { animation-delay: 0.05s; }
.hero [data-stagger="2"] { animation-delay: 0.16s; }
.hero [data-stagger="3"] { animation-delay: 0.27s; }
.hero [data-stagger="4"] { animation-delay: 0.38s; }
.hero [data-stagger="5"] { animation-delay: 0.52s; }

@keyframes rise {
  to { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   Hero execution panel (pure-CSS product abstraction)
   -------------------------------------------------------------------------- */

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}

.exec-panel {
  background: linear-gradient(180deg, rgba(16, 34, 74, 0.75), rgba(10, 31, 68, 0.45));
  border: 1px solid var(--hairline-dark);
  border-radius: 16px;
  padding: 1.4rem;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.6);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.exec-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0 0.4rem 1.1rem;
  border-bottom: 1px solid var(--hairline-dark);
  margin-bottom: 0.6rem;
}

.exec-panel-head .title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: #e8eeff;
  letter-spacing: 0.03em;
}

.exec-panel-head .meta {
  font-size: 0.78rem;
  color: #7d90bd;
}

.exec-row {
  display: grid;
  grid-template-columns: 10px 1fr 92px 64px;
  align-items: center;
  gap: 0.9rem;
  padding: 0.78rem 0.4rem;
  border-bottom: 1px solid rgba(120, 150, 220, 0.08);
}

.exec-row:last-child { border-bottom: 0; }

.exec-row .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.dot-blue { background: var(--sky-blue); box-shadow: 0 0 8px rgba(77, 163, 255, 0.8); }
.dot-teal { background: var(--teal); box-shadow: 0 0 8px rgba(15, 163, 177, 0.8); }
.dot-purple { background: var(--purple); box-shadow: 0 0 8px rgba(139, 92, 255, 0.8); }

.exec-row .name {
  font-size: 0.88rem;
  color: #c9d5f0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.exec-row .bar {
  height: 5px;
  border-radius: 99px;
  background: rgba(120, 150, 220, 0.15);
  overflow: hidden;
}

.exec-row .bar i {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--action-blue), var(--sky-blue));
  transform-origin: left;
  animation: fill 1.1s 0.6s cubic-bezier(0.25, 0.7, 0.3, 1) both;
}

.exec-row .bar i.teal { background: var(--teal); }

@keyframes fill {
  from { transform: scaleX(0); }
}

.exec-row .val {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  color: #e8eeff;
  text-align: right;
  letter-spacing: 0.04em;
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.section { padding-block: var(--section-pad); }

.section-dark {
  background: var(--navy);
  color: var(--body-on-dark);
}

.section-dark h2,
.section-dark h3 { color: #fff; }

.section-lavender { background: var(--surface-lavender); }

.section-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head p { font-size: 1.15rem; margin-top: 1.1rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head.center p { margin-inline: auto; }

/* Numbered section index, engineered look */
.sec-num {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  color: #8fa4cf;
  display: block;
  margin-bottom: 0.5rem;
}

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}

.card-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 2rem 1.8rem;
  box-shadow: var(--card-shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.card h3 { margin-bottom: 0.7rem; }
.card p { font-size: 0.99rem; }

.card:hover {
  transform: translateY(-4px);
  border-color: #c8d8f6;
  box-shadow: 0 2px 4px rgba(10, 31, 68, 0.04), 0 24px 48px -20px rgba(16, 62, 158, 0.22);
}

.card .glyph {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--action-blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 11px;
  background: #eaf2ff;
  margin-bottom: 1.3rem;
}

/* Dark variant cards (used on navy bands) */
.section-dark .card {
  background: rgba(255, 255, 255, 0.035);
  border-color: var(--hairline-dark);
  box-shadow: none;
}

.section-dark .card h3 { color: #fff; }
.section-dark .card p { color: var(--body-on-dark); }

.section-dark .card:hover {
  border-color: rgba(120, 150, 220, 0.4);
  box-shadow: 0 24px 48px -24px rgba(0, 0, 0, 0.5);
}

.section-dark .card .glyph {
  background: rgba(47, 107, 254, 0.14);
  color: var(--sky-blue);
}

/* Card as a link */
a.card {
  display: block;
  color: inherit;
}

a.card .card-more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.4rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--action-blue);
}

.section-dark a.card .card-more { color: var(--sky-blue); }

a.card .card-more .arrow { transition: transform 0.18s ease; }
a.card:hover .card-more .arrow { transform: translateX(3px); }

/* --------------------------------------------------------------------------
   Comparison · Project Management vs Execution Management
   -------------------------------------------------------------------------- */

.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--hairline);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.compare-col { background: #fff; padding: 2.4rem 2.2rem; }

.compare-col.highlight {
  background: var(--navy);
  position: relative;
}

.compare-col.highlight::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--grad-accent);
}

.compare-col h3 {
  font-size: 1.25rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--hairline);
  margin-bottom: 0.4rem;
}

.compare-col.highlight h3 {
  color: #fff;
  border-bottom-color: var(--hairline-dark);
}

.compare-col ul { list-style: none; }

.compare-col li {
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 1rem;
  display: flex;
  gap: 0.7rem;
  align-items: baseline;
}

.compare-col li:last-child { border-bottom: 0; }

.compare-col.highlight li {
  border-bottom-color: var(--hairline-dark);
  color: #d7e0f5;
}

.compare-col li::before {
  content: "\00B7";
  font-weight: 700;
  color: #9db0d6;
  flex: 0 0 auto;
}

.compare-col.highlight li::before {
  content: "\00BB";
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--sky-blue);
}

/* --------------------------------------------------------------------------
   Variance analysis · animated scatter comparison
   Timeline (starts when the .reveal wrapper becomes .visible):
     0.1–1.1s  left dots pop in (chaos)
     1.4–2.4s  right dots pop in (order)
     2.6–3.7s  baseline draws through
   -------------------------------------------------------------------------- */

.variance-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6rem;
}

.variance-card {
  border-radius: 18px;
  padding: 2.4rem 2.2rem 2rem;
  text-align: center;
}

.variance-card.light {
  background: #fff;
  border: 1px solid var(--hairline);
  box-shadow: var(--card-shadow);
}

.variance-card.dark {
  background: var(--navy);
  border: 1px solid var(--hairline-dark);
}

.variance-card h3 {
  font-size: 1.45rem;
  margin-bottom: 1.6rem;
}

.variance-card .brand-row {
  display: flex;
  justify-content: center;
  margin-bottom: 1.6rem;
}

.variance-card .brand-row img { height: 30px; width: auto; }

.variance-card svg {
  width: 100%;
  height: auto;
  display: block;
}

.variance-card .axis-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: #93a5c9;
  margin: 1rem 0 0.8rem;
}

.variance-card.dark .axis-label { color: #6f82ad; }

.variance-caption {
  font-size: 1.05rem;
  color: var(--body);
  max-width: none;
}

.variance-card.dark .variance-caption { color: #d7e0f5; }

/* Dots: hidden until the stage plays, then pop in per-dot via --d delay.
   The .play class is added when the stage scrolls into view and re-added by
   the replay button, so the whole sequence can run again on demand. */
.variance-stage .dot {
  opacity: 0;
  transform: scale(0);
  transform-box: fill-box;
  transform-origin: center;
}

.variance-stage.play .dot {
  animation: dot-pop 0.4s cubic-bezier(0.3, 1.4, 0.4, 1) forwards;
  animation-delay: var(--d, 0s);
}

@keyframes dot-pop {
  to { opacity: 1; transform: scale(1); }
}

/* Chaos line: a red zigzag chasing the scattered dots on the manual side */
.variance-stage .chaos-line {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  filter: drop-shadow(0 0 5px rgba(255, 59, 59, 0.55));
}

.variance-stage.play .chaos-line {
  animation: line-draw 1.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  animation-delay: 1.15s;
}

/* Baseline: a green laser cutting through the ordered dots once they've landed */
.variance-stage .fit-line {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  filter: drop-shadow(0 0 4px rgba(34, 197, 94, 0.9)) drop-shadow(0 0 12px rgba(34, 197, 94, 0.45));
}

.variance-stage.play .fit-line {
  animation: line-draw 1.15s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  animation-delay: 2.6s;
}

@keyframes line-draw {
  to { stroke-dashoffset: 0; }
}

/* In-chart annotations fade in with their panel */
.variance-stage .plot-note { opacity: 0; }

.variance-stage.play .plot-note {
  animation: note-fade 0.6s ease forwards;
  animation-delay: var(--d, 0s);
}

@keyframes note-fade {
  to { opacity: 1; }
}

/* Replay control */
.replay-row {
  text-align: center;
  margin-top: 1.8rem;
}

.btn-replay {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--brand-blue);
  background: #fff;
  border: 1px solid #c3d4f5;
  border-radius: 999px;
  padding: 0.55rem 1.25rem;
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.btn-replay:hover {
  border-color: var(--action-blue);
  box-shadow: 0 6px 18px -8px rgba(47, 107, 254, 0.4);
}

.btn-replay:focus-visible {
  outline: 2px solid var(--action-blue);
  outline-offset: 3px;
}

.btn-replay .replay-icon {
  font-size: 1.05rem;
  line-height: 1;
  transition: transform 0.35s ease;
}

.btn-replay:hover .replay-icon { transform: rotate(180deg); }

@media (prefers-reduced-motion: reduce) {
  .variance-stage .dot,
  .variance-stage .plot-note {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .variance-stage .fit-line,
  .variance-stage .chaos-line {
    animation: none;
    stroke-dashoffset: 0;
    filter: none;
  }
}

@media (max-width: 780px) {
  .variance-grid { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   Method steps
   -------------------------------------------------------------------------- */

.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-block: 1px solid var(--hairline);
}

.step {
  counter-increment: step;
  padding: 2.4rem 1.8rem 2.6rem;
  border-left: 1px solid var(--hairline);
  position: relative;
}

.step:first-child { border-left: 0; }

.step::before {
  content: "0" counter(step);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.16em;
  color: var(--action-blue);
  display: block;
  margin-bottom: 1.2rem;
}

.step h3 { font-size: 1.3rem; margin-bottom: 0.6rem; }
.step p { font-size: 0.97rem; }

/* --------------------------------------------------------------------------
   Feature rows (alternating, for sub-pages)
   -------------------------------------------------------------------------- */

.feature-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
  padding-block: clamp(2.6rem, 5vw, 4rem);
}

.feature-row + .feature-row { border-top: 1px solid var(--hairline); }

.feature-row.flip .feature-copy { order: 2; }

.feature-copy h3 {
  font-size: clamp(1.55rem, 2.6vw, 2rem);
  margin-bottom: 0.9rem;
}

.feature-copy p + p { margin-top: 0.9rem; }

.feature-copy ul {
  list-style: none;
  margin-top: 1.3rem;
}

.feature-copy li {
  padding: 0.5rem 0;
  display: flex;
  gap: 0.65rem;
  align-items: baseline;
  font-size: 1rem;
}

.feature-copy li::before {
  content: "\00BB";
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--action-blue);
  flex: 0 0 auto;
}

/* Visual slab that carries each feature's abstraction */
.feature-visual {
  background: linear-gradient(160deg, #0d2352, var(--navy) 65%);
  border: 1px solid var(--hairline-dark);
  border-radius: 16px;
  padding: 2rem;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.feature-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(77, 163, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(77, 163, 255, 0.06) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 85%);
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 85%);
}

.feature-visual > * { position: relative; }

/* Mini mocks used inside feature visuals */
.mock-card {
  background: rgba(10, 25, 58, 0.85);
  border: 1px solid var(--hairline-dark);
  border-radius: 12px;
  padding: 1.3rem 1.5rem;
  width: min(360px, 100%);
  box-shadow: 0 24px 48px -20px rgba(0, 0, 0, 0.55);
}

.mock-card .mock-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: #7d90bd;
  margin-bottom: 0.55rem;
}

.mock-card .mock-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.12rem;
  color: #eef3ff;
  margin-bottom: 0.9rem;
  line-height: 1.3;
}

.mock-card .mock-line {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.85rem;
  color: #a8b6d4;
  padding: 0.5rem 0;
  border-top: 1px solid rgba(120, 150, 220, 0.1);
}

.mock-card .mock-line strong {
  color: #dbe6ff;
  font-weight: 600;
}

.chip {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 0.24rem 0.7rem;
  border-radius: 99px;
}

.chip-blue { background: rgba(47, 107, 254, 0.18); color: var(--sky-blue); }
.chip-teal { background: rgba(15, 163, 177, 0.16); color: #3fc4d0; }
.chip-purple { background: rgba(139, 92, 255, 0.16); color: #b49aff; }

/* --------------------------------------------------------------------------
   Manifesto · full-bleed typographic statement
   -------------------------------------------------------------------------- */

.manifesto {
  background: var(--midnight);
  text-align: center;
  padding-block: clamp(5.5rem, 11vw, 9rem);
  position: relative;
  overflow: hidden;
}

.manifesto::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(80vw, 1000px);
  height: min(80vw, 1000px);
  background: radial-gradient(circle, rgba(47, 107, 254, 0.1) 0%, transparent 62%);
  pointer-events: none;
}

.manifesto .container { position: relative; }

.manifesto .manifesto-intro {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  line-height: 1.4;
  color: #8fa4cf;
  max-width: 34ch;
  margin: 0 auto clamp(2.5rem, 5vw, 4rem);
}

.manifesto h2 {
  font-size: clamp(3rem, 9.5vw, 7rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.01em;
  color: #fff;
}

.manifesto h2 span { display: block; }

.manifesto .word-blue { color: var(--action-blue); }
.manifesto .word-teal { color: var(--teal); }

/* --------------------------------------------------------------------------
   Stat band
   -------------------------------------------------------------------------- */

.stat-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
  text-align: center;
}

.stat {
  padding: 2.2rem 1rem;
  border: 1px solid var(--hairline-dark);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
}

.stat .num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 4.4vw, 3.4rem);
  line-height: 1;
  color: #fff;
  display: block;
  margin-bottom: 0.5rem;
}

.stat .num .accent { color: var(--sky-blue); }

.stat .label { font-size: 0.98rem; color: var(--body-on-dark); }

/* --------------------------------------------------------------------------
   CTA band
   -------------------------------------------------------------------------- */

.cta-band {
  background: var(--midnight);
  position: relative;
  overflow: hidden;
  text-align: center;
  padding-block: clamp(4.5rem, 9vw, 7rem);
}

.cta-band::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -55%;
  transform: translateX(-50%);
  width: 900px;
  height: 500px;
  background: radial-gradient(ellipse, rgba(47, 107, 254, 0.22) 0%, rgba(139, 92, 255, 0.08) 50%, transparent 72%);
  pointer-events: none;
}

.cta-band .container { position: relative; }

.cta-band h2 {
  color: #fff;
  max-width: 22ch;
  margin-inline: auto;
  margin-bottom: 1.2rem;
}

.cta-band p {
  color: var(--body-on-dark);
  max-width: 50ch;
  margin: 0 auto 2.4rem;
  font-size: 1.13rem;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--midnight);
  border-top: 1px solid var(--hairline-dark);
  color: var(--body-on-dark);
  padding: 4rem 0 2.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3.2rem;
}

.footer-brand img { height: 28px; width: auto; margin-bottom: 1.1rem; }

.footer-brand p { font-size: 0.95rem; max-width: 34ch; }

.footer-col h4 {
  font-size: 1.02rem;
  color: #e6edfc;
  letter-spacing: 0.05em;
  margin-bottom: 1.1rem;
}

.footer-col ul { list-style: none; }

.footer-col li { margin-bottom: 0.65rem; }

.footer-col a {
  color: var(--body-on-dark);
  font-size: 0.97rem;
  transition: color 0.15s ease;
}

.footer-col a:hover { color: #fff; }

.footer-base {
  border-top: 1px solid var(--hairline-dark);
  padding-top: 1.8rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.88rem;
  color: #6f82ad;
}

/* --------------------------------------------------------------------------
   Forms (request access)
   -------------------------------------------------------------------------- */

.access-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(3rem, 6vw, 5.5rem);
  align-items: start;
}

.form-card {
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: 2.6rem;
  box-shadow: var(--card-shadow);
}

.form-field { margin-bottom: 1.4rem; }

.form-field label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink);
  margin-bottom: 0.45rem;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--off-white);
  border: 1px solid #ccd9f2;
  border-radius: 10px;
  padding: 0.78rem 1rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

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

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--action-blue);
  box-shadow: 0 0 0 3px rgba(47, 107, 254, 0.15);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.form-note {
  font-size: 0.88rem;
  color: #7387ae;
  margin-top: 1.1rem;
}

.access-points { list-style: none; margin-top: 2rem; }

.access-points li {
  display: flex;
  gap: 0.8rem;
  align-items: baseline;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 1.02rem;
}

.access-points li::before {
  content: "\00BB";
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--action-blue);
}

/* --------------------------------------------------------------------------
   Story teaser · home-page invitation into "Why We Built Proxeum"
   -------------------------------------------------------------------------- */

.story-teaser {
  background: var(--surface-lavender);
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
  position: relative;
  overflow: hidden;
}

.story-teaser::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--grad-accent);
}

/* Oversized chevron watermark, echoing the logomark */
.story-teaser::after {
  content: "\00BB";
  position: absolute;
  right: -1.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(12rem, 22vw, 20rem);
  line-height: 1;
  color: rgba(16, 62, 158, 0.06);
  pointer-events: none;
}

.story-teaser .container {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.story-teaser h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.35rem);
  max-width: 24ch;
  margin-bottom: 1rem;
}

.story-teaser p {
  font-size: 1.05rem;
  max-width: 54ch;
  color: var(--body);
}

/* --------------------------------------------------------------------------
   Story page · "Why We Built Proxeum"
   Long-form, chapter-based narrative. Scoped to opt-in classes so no other
   page is affected.
   -------------------------------------------------------------------------- */

/* Reading progress bar */
.read-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 150;
  background: var(--grad-accent);
  transform: scaleX(0);
  transform-origin: left;
  will-change: transform;
}

/* Hero with founder portrait */
.story-hero .hero-grid {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
}

.story-hero .hero h1,
.story-hero h1 { max-width: 15ch; }

.portrait-frame {
  position: relative;
  border-radius: 22px;
  padding: 10px;
  background: linear-gradient(150deg, rgba(47, 107, 254, 0.38), rgba(139, 92, 255, 0.18) 48%, rgba(255, 255, 255, 0.04));
  border: 1px solid var(--hairline-dark);
  box-shadow: 0 44px 90px -42px rgba(0, 0, 0, 0.75);
}

.portrait-frame::before {
  content: "";
  position: absolute;
  inset: -18%;
  background: radial-gradient(circle, rgba(47, 107, 254, 0.22) 0%, transparent 66%);
  pointer-events: none;
  z-index: -1;
}

.portrait-frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 14px;
}

.portrait-caption {
  margin-top: 1.35rem;
  padding-left: 1.1rem;
  border-left: 2px solid var(--action-blue);
}

.portrait-caption .name {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  letter-spacing: 0.02em;
  color: #fff;
  line-height: 1.2;
}

.portrait-caption .role {
  display: block;
  font-size: 0.92rem;
  color: var(--body-on-dark);
  margin-top: 0.2rem;
}

/* Chapter layout · sticky heading beside the narrative column */
.chapter-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.42fr) minmax(0, 0.58fr);
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: start;
}

.chapter-aside { position: sticky; top: 108px; }

.chapter-aside h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }

.chapter-rule {
  display: flex;
  gap: 6px;
  margin-top: 1.5rem;
}

.chapter-rule::before,
.chapter-rule::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--action-blue);
}

.chapter-rule::after {
  opacity: 0.45;
}

.prose p {
  font-size: 1.14rem;
  line-height: 1.78;
  max-width: 58ch;
}

.prose p + p { margin-top: 1.2rem; }

.prose .lead {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  line-height: 1.4;
  color: var(--ink);
  margin-bottom: 1.6rem;
}

.section-dark .prose .lead { color: #fff; }

.prose strong { font-weight: 600; color: var(--ink); }
.section-dark .prose strong { color: #e8eeff; }

/* Folder listing · the spreadsheet-versions illustration */
.file-stack {
  margin: 2rem 0 2.2rem;
  max-width: 34rem;
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  box-shadow: var(--card-shadow);
  overflow: hidden;
}

.file-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.2rem;
  padding: 0.72rem 1.15rem;
  border-bottom: 1px solid var(--hairline);
}

.file-row .fname {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  min-width: 0;
}

/* Small sheet glyph so the rows read as a folder listing */
.file-row .fname::before {
  content: "";
  flex: 0 0 auto;
  width: 9px;
  height: 12px;
  border: 1px solid #9db0d6;
  border-radius: 1px;
  background: linear-gradient(#e8f0ff 0 100%);
  transform: translateY(1px);
}

.file-row .fmeta {
  flex: 0 0 auto;
  font-size: 0.78rem;
  color: #8fa4cf;
  white-space: nowrap;
}

.file-row.is-last { background: #f4f7ff; }
.file-row.is-last .fname { color: var(--brand-blue); }

.file-stack figcaption {
  padding: 0.95rem 1.15rem 1.05rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--body);
  background: #fbfcff;
}

/* Variance pairs · the same organization, two different outcomes */
.variance-pairs {
  list-style: none;
  margin: 2rem 0 2.2rem;
  border-top: 1px solid var(--hairline);
}

.variance-pairs li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.4rem;
  align-items: baseline;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 1rem;
}

.variance-pairs .a {
  font-weight: 600;
  color: var(--ink);
}

.variance-pairs .b {
  color: var(--body);
  position: relative;
  padding-left: 1.3rem;
}

/* Divider glyph marking the split between the two outcomes */
.variance-pairs .b::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15em;
  bottom: 0.05em;
  width: 2px;
  background: var(--hairline);
}

.section-dark .variance-pairs,
.section-dark .variance-pairs li { border-color: var(--hairline-dark); }
.section-dark .variance-pairs .a { color: #fff; }
.section-dark .variance-pairs .b { color: var(--body-on-dark); }
.section-dark .variance-pairs .b::before { background: var(--hairline-dark); }

/* Archival photograph · museum plate treatment */
.archival {
  margin: clamp(3rem, 6vw, 4.5rem) auto 0;
  max-width: 34rem;
  text-align: center;
}

.archival-plate {
  background: #fff;
  padding: clamp(1.1rem, 2.6vw, 1.9rem);
  border: 1px solid var(--hairline);
  border-radius: 3px;
  box-shadow: 0 2px 4px rgba(10, 31, 68, 0.05), 0 46px 80px -40px rgba(10, 31, 68, 0.45);
}

.archival-plate img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid rgba(10, 31, 68, 0.12);
}

.archival figcaption { margin-top: 1.7rem; }

.archival .plate-meta {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--action-blue);
  margin-bottom: 0.9rem;
}

.archival .plate-note {
  display: block;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--body);
  max-width: 48ch;
  margin-inline: auto;
}

.section-dark .archival .plate-note { color: var(--body-on-dark); }

/* Full-bleed pull quote */
.quote-band {
  background: var(--midnight);
  text-align: center;
  padding-block: clamp(4.5rem, 9.5vw, 8rem);
  position: relative;
  overflow: hidden;
}

.quote-band::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(78vw, 950px);
  height: min(78vw, 950px);
  background: radial-gradient(circle, rgba(47, 107, 254, 0.12) 0%, transparent 62%);
  pointer-events: none;
}

.quote-band .container { position: relative; }

.quote-band .quote-intro {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.2rem, 2.3vw, 1.65rem);
  line-height: 1.4;
  color: #8fa4cf;
  max-width: 34ch;
  margin: 0 auto clamp(2rem, 4vw, 3rem);
}

.quote-band blockquote {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 5.2vw, 3.5rem);
  line-height: 1.16;
  letter-spacing: -0.01em;
  color: #fff;
  max-width: 21ch;
  margin-inline: auto;
}

.quote-band .quote-after {
  font-size: clamp(1.05rem, 1.9vw, 1.3rem);
  line-height: 1.6;
  color: var(--body-on-dark);
  max-width: 40ch;
  margin: 1.6rem auto 0;
}

.quote-band cite {
  display: block;
  font-style: normal;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: #7d90bd;
  margin-top: 2rem;
}

/* Philosophy · numbered beliefs */
.beliefs { list-style: none; }

.belief {
  display: grid;
  grid-template-columns: 58px minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 1.6rem;
  align-items: start;
  padding: 1.9rem 0;
  border-top: 1px solid rgba(16, 62, 158, 0.13);
}

.belief:last-child { border-bottom: 1px solid rgba(16, 62, 158, 0.13); }

.belief .n {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.16em;
  color: var(--action-blue);
  padding-top: 0.35rem;
}

.belief h3 { font-size: clamp(1.2rem, 2.1vw, 1.5rem); }
.belief p { font-size: 1.02rem; max-width: none; }

/* The Four S's */
.s-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.4rem;
}

.s-card {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--hairline-dark);
  border-radius: 16px;
  padding: 2.1rem 1.7rem 2.3rem;
}

/* Accent rule draws across the top as the card reveals */
.s-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: var(--grad-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.8s cubic-bezier(0.2, 0.65, 0.25, 1) 0.15s;
}

.s-card.visible::before { transform: none; }

.s-index {
  position: absolute;
  top: 1.5rem;
  right: 1.6rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  color: #5c6f9c;
}

.s-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: rgba(47, 107, 254, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.s-icon svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: var(--sky-blue);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.s-card h3 { font-size: 1.55rem; margin-bottom: 0.5rem; }
.s-card p { font-size: 0.99rem; }

/* What each S takes out of the system */
.s-card .s-reducer {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sky-blue);
  margin-bottom: 1rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--hairline-dark);
}

.s-summary {
  max-width: 56ch;
  margin: clamp(2.5rem, 5vw, 3.5rem) auto 0;
  text-align: center;
  font-size: 1.12rem;
  line-height: 1.7;
}

.s-summary strong { color: #fff; font-weight: 600; }

/* Standardization · the expanded note under the Four S's */
.standard-note {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
  margin-top: clamp(3rem, 6vw, 4.5rem);
  padding-top: clamp(2.5rem, 5vw, 3.5rem);
  border-top: 1px solid var(--hairline-dark);
}

.standard-note h3 {
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  line-height: 1.2;
}

.standard-note p { font-size: 1.03rem; line-height: 1.75; max-width: 62ch; }
.standard-note p + p { margin-top: 1rem; }
.standard-note strong { color: #e8eeff; font-weight: 600; }

/* Proximity · the name section */
.proximity-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.proximity-visual {
  color: var(--ink);
  --prox-accent: var(--action-blue);
  --prox-teal: var(--teal);
}

.section-dark .proximity-visual {
  color: #e8eeff;
  --prox-accent: var(--sky-blue);
  --prox-teal: #3fc4d0;
}

.proximity-visual svg { width: 100%; height: auto; display: block; }

.prox-links { stroke: var(--prox-accent); }
.prox-dot { fill: var(--prox-accent); }
.prox-dot.accent { fill: var(--prox-teal); }

.prox-line { stroke-dasharray: 1; stroke-dashoffset: 1; }

.reveal.visible .prox-line {
  animation: line-draw 1.1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  animation-delay: var(--d, 0s);
}

.prox-node { opacity: 0; }

.reveal.visible .prox-node {
  animation: note-fade 0.65s ease forwards;
  animation-delay: var(--d, 0s);
}

.prox-ring {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}

.reveal.visible .prox-ring {
  animation: ring-in 0.9s cubic-bezier(0.2, 0.7, 0.3, 1) forwards;
  animation-delay: var(--d, 0s);
}

@keyframes ring-in {
  from { opacity: 0; transform: scale(0.82); }
  to { opacity: 1; transform: none; }
}

.proximity-list { list-style: none; margin-top: 1.8rem; }

.proximity-list li {
  display: flex;
  gap: 0.8rem;
  align-items: baseline;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 1.05rem;
  color: var(--ink);
  font-weight: 600;
}

.proximity-list li::before {
  content: "\00BB";
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--action-blue);
}

.section-dark .proximity-list li {
  color: #e8eeff;
  border-bottom-color: var(--hairline-dark);
}

.section-dark .proximity-list li::before { color: var(--sky-blue); }

/* Closing statement · the mission, stated plainly */
.closing-statement {
  max-width: 46rem;
  margin: clamp(3rem, 6vw, 4.5rem) auto 0;
  padding-top: clamp(2.5rem, 5vw, 3.5rem);
  border-top: 1px solid var(--hairline);
  text-align: center;
}

.closing-statement p {
  font-size: clamp(1.1rem, 2vw, 1.28rem);
  line-height: 1.65;
  color: var(--body);
  max-width: none;
}

.closing-statement .mission {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.5rem, 3.2vw, 2.15rem);
  line-height: 1.25;
  color: var(--brand-blue);
  margin-top: 1.6rem;
}

/* Closing lines · the staccato ending */
.closing-lines {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  text-align: center;
}

.closing-lines span {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.18;
  color: var(--ink);
}

.closing-lines span:nth-child(1) { font-size: clamp(1.6rem, 3.4vw, 2.35rem); color: #7387ae; }
.closing-lines span:nth-child(2) { font-size: clamp(1.9rem, 4.2vw, 2.9rem); color: var(--brand-blue); }
.closing-lines span:nth-child(3) { font-size: clamp(2.2rem, 5.2vw, 3.6rem); color: var(--ink); }

/* Founder note · the closing letter */
.note-section { padding-top: 0; }

.founder-note {
  max-width: 40rem;
  margin-inline: auto;
  background: #fff;
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--action-blue);
  border-radius: 4px;
  padding: clamp(2.2rem, 5vw, 3.4rem);
  box-shadow: 0 2px 4px rgba(10, 31, 68, 0.04), 0 34px 64px -34px rgba(16, 62, 158, 0.28);
}

.founder-note .note-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--action-blue);
  margin-bottom: 1.8rem;
}

.founder-note p:not(.note-label) {
  font-size: 1.09rem;
  line-height: 1.85;
  color: var(--body);
  max-width: none;
}

.founder-note p + p { margin-top: 1.1rem; }

.note-sign { margin-top: 2.4rem; }

.note-flourish {
  display: block;
  width: 150px;
  height: 28px;
  color: var(--action-blue);
  opacity: 0.5;
  margin-bottom: 0.5rem;
}

.note-name {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--ink);
  line-height: 1.2;
}

.note-role {
  display: block;
  font-size: 0.92rem;
  color: #7387ae;
  margin-top: 0.2rem;
}

/* Founder */
.founder-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2.5rem, 6vw, 4.5rem);
  align-items: start;
}

.founder-photo {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--hairline);
  box-shadow: 0 2px 4px rgba(10, 31, 68, 0.05), 0 30px 60px -28px rgba(16, 62, 158, 0.35);
}

.founder-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.founder-id { margin-top: 1.2rem; }

.founder-id .name {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.6rem, 2.6vw, 2rem);
  line-height: 1.1;
  color: var(--ink);
}

.founder-id .role {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--action-blue);
  margin-top: 0.5rem;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 2rem;
}

.tag {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--brand-blue);
  background: #eaf2ff;
  border: 1px solid #d5e4ff;
  padding: 0.36rem 0.9rem;
  border-radius: 999px;
}

.signature {
  margin-top: 2.2rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--hairline);
}

.signature .sig-name {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.45rem;
  color: var(--ink);
  line-height: 1.2;
}

.signature .sig-role {
  display: block;
  font-size: 0.95rem;
  color: var(--body);
  margin-top: 0.15rem;
}

/* --------------------------------------------------------------------------
   Scroll reveal
   -------------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.65s cubic-bezier(0.2, 0.65, 0.25, 1), transform 0.65s cubic-bezier(0.2, 0.65, 0.25, 1);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */

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

  .hero [data-stagger],
  .exec-row .bar i {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn, .card, .btn .arrow, a.card .card-more .arrow { transition: none; }

  /* Story page */
  .read-progress { display: none; }

  .s-card::before { transition: none; transform: none; }

  .reveal.visible .prox-node,
  .reveal.visible .prox-ring {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .reveal.visible .prox-line {
    animation: none;
    stroke-dashoffset: 0;
  }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-grid .exec-panel { max-width: 560px; }

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

  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step:nth-child(3) { border-left: 0; }
  .step:nth-child(n + 3) { border-top: 1px solid var(--hairline); }

  .footer-grid { grid-template-columns: 1fr 1fr; }

  .access-layout { grid-template-columns: 1fr; }

  /* Story page */
  .story-hero .hero-grid { grid-template-columns: 1fr; }
  .story-hero .portrait-frame { max-width: 400px; }

  .chapter-grid { grid-template-columns: 1fr; }
  .chapter-aside { position: static; }

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

  .proximity-grid,
  .founder-grid { grid-template-columns: 1fr; }

  .founder-photo { max-width: 380px; }

  .standard-note { grid-template-columns: 1fr; }

  .belief { grid-template-columns: 48px minmax(0, 1fr); gap: 1.2rem; }
  .belief h3 { grid-column: 2; margin-bottom: 0.4rem; }
  .belief p { grid-column: 2; }

  .story-teaser .container { grid-template-columns: 1fr; }
}

@media (max-width: 780px) {
  .nav-toggle { display: block; }

  .nav-links {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: rgba(7, 12, 26, 0.98);
    border-top: 1px solid var(--hairline-dark);
    padding: 1rem 1.5rem 1.6rem;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.22s ease, opacity 0.22s ease, visibility 0.22s;
  }

  .nav-links.open {
    transform: none;
    opacity: 1;
    visibility: visible;
  }

  .nav-links li { width: 100%; }

  .nav-links a:not(.btn) {
    display: block;
    padding: 0.9rem 0;
    font-size: 1.2rem;
  }

  .nav-links .btn { margin-top: 1rem; }

  .compare { grid-template-columns: 1fr; }

  .feature-row,
  .feature-row.flip { grid-template-columns: 1fr; }
  .feature-row.flip .feature-copy { order: 0; }

  .stat-band { grid-template-columns: 1fr; }

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

@media (max-width: 560px) {
  .card-grid,
  .card-grid.four,
  .card-grid.two { grid-template-columns: 1fr; }

  .steps { grid-template-columns: 1fr; }
  .step { border-left: 0; }
  .step:nth-child(n + 2) { border-top: 1px solid var(--hairline); }

  .footer-grid { grid-template-columns: 1fr; }

  .exec-row { grid-template-columns: 10px 1fr 64px; }
  .exec-row .val { display: none; }

  /* Story page */
  .s-grid { grid-template-columns: 1fr; }

  .belief { grid-template-columns: 1fr; gap: 0.5rem; }
  .belief .n { padding-top: 0; }
  .belief h3 { margin-bottom: 0.2rem; }

  .quote-band blockquote { max-width: none; }

  .variance-pairs li { grid-template-columns: 1fr; gap: 0.35rem; }
  .variance-pairs .b { padding-left: 1rem; }

  .file-row { flex-direction: column; gap: 0.25rem; }
  .file-row .fname { font-size: 0.84rem; overflow-wrap: anywhere; }
  .file-row .fmeta { padding-left: 1.2rem; }

  .founder-note { padding-inline: 1.5rem; }
}
