:root {
  /* Brand blues – tweak if you want */
  --blue-deep: #02223c;
  --blue-main: #005a96;
  --blue-soft: #0f80c4;
  --blue-light: #8fd1ff;
  --blue-muted: #d8e7f5;

  --bg-dark: #020715;
  --bg-darker: #01030b;
  --bg-light: #f4f7fc;

  --text-main: #0f172a;
  --text-muted: #4b5563;
  --text-on-dark: #f9fafb;

  --card-dark: #050816;
  --card-dark-soft: #071021;
}

html {
  background-color: #020715;
  scrollbar-gutter: stable;
}

/* Swup page transition */
.transition-fade {
  transition: opacity 0.35s ease;
}
html.is-animating .transition-fade {
  opacity: 0;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at top, #0c2038 0, #020715 45%, #000 100%);
  color: var(--text-main);
  overflow-x: hidden;
}
body.no-scroll {
  overflow: hidden;
}
img {
  max-width: 100%;
  display: block;
}

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

/* Layout */

.page {
  position: relative;
  z-index: 1;
}

.section {
  padding: 72px 20px;
}

.section--light {
  background: var(--bg-light);
}

.section--dark {
  background: radial-gradient(circle at top, #07162a 0, #020715 60%, #000 100%);
  color: var(--text-on-dark);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
}

/* Header / Nav – liquid glass */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;

  /* liquid glass look */
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, 0.18);
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);

  transition:
    background 0.2s ease-out,
    border-color 0.2s ease-out,
    box-shadow 0.2s ease-out;
}

.site-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 6px 24px;        /* slightly thinner bar */
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-img {
  height: 110px;            /* a bit smaller than 140px */
  width: auto;
}

.nav-links {
  display: flex;
  gap: 18px;
  font-size: 0.86rem;
  color: #475569;
}

/* link underline animation stays the same */
.nav-links a {
  position: relative;
  padding-bottom: 3px;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(to right, var(--blue-soft), var(--blue-light));
  transition: width 0.18s ease-out;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a.active {
  color: var(--blue-main);
  font-weight: 600;
}

.nav-links a.active::after {
  width: 100%;
}

/* pure white variant when at very top */
.site-header.nav-top {
  background: rgba(255, 255, 255, 1); /* solid white */
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid rgba(230, 230, 230, 1);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}


/* Hero */

.hero {
  background: linear-gradient(
    135deg,
    var(--bg-light) 0,
    #e7f1ff 30%,
    #021123 100%
  );
  color: var(--text-main);
  padding: 88px 20px 80px;
}

.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero-kicker {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue-main);
  margin-bottom: 10px;
}

.hero-title {
  font-size: clamp(2.1rem, 3.1vw, 2.8rem);
  line-height: 1.15;
  color: #13597B;
}

.hero-title span {
  background: linear-gradient(to right, var(--blue-main), var(--blue-light));
  -webkit-background-clip: text;
  color: transparent;
}

.hero-subtitle {
  margin-top: 12px;
  font-size: 0.98rem;
  color: var(--text-muted);
  max-width: 540px;
  line-height: 1.7;
}

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

.btn-primary,
.btn-ghost {
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 0.86rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  touch-action: manipulation;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease,
    border-color 0.16s ease, color 0.16s ease;
}

.btn-primary {
  background: linear-gradient(to right, var(--blue-main), var(--blue-soft));
  color: white;
  box-shadow: 0 10px 26px rgba(15, 118, 178, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(15, 118, 178, 0.5);
}

.btn-ghost {
  border-color: rgba(148, 163, 184, 0.6);
  color: #0f172a;
  background: rgba(255, 255, 255, 0.75);
}

.btn-ghost:hover {
  background: white;
  transform: translateY(-1px);
}

.hero-meta {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.8rem;
  color: #64748b;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.4);
}

.hero-highlight {
  color: var(--blue-main);
  font-weight: 600;
}

.hero-right-card {
  position: relative;
  background: radial-gradient(circle at top, #123456 0, #020715 70%);
  border-radius: 28px;
  padding: 20px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow:
    0 20px 55px rgba(15, 23, 42, 0.75),
    0 0 60px rgba(56, 189, 248, 0.35);
  color: #e5e7eb;
  overflow: hidden;
  animation: heroFloat 12s ease-in-out infinite;
  will-change: transform;
}

/* soft moving glow */
.hero-right-card::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(
    circle at 0% 0%,
    rgba(129, 230, 217, 0.18),
    transparent 55%
  );
  mix-blend-mode: screen;
  opacity: 0;
  animation: heroGlow 10s ease-in-out infinite;
}

.hero-right-heading {
  font-size: 0.82rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue-light);
  margin-bottom: 8px;

  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #22c55e;
  position: relative;
}

.hero-status-dot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #22c55e;
  animation: statusPulse 2.4s ease-out infinite;
}

.hero-right-title {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.hero-right-text {
  font-size: 0.86rem;
  color: #cbd5f5;
  line-height: 1.7;
}

.hero-right-tags {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.75rem;
}

.hero-tag {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(15, 23, 42, 0.7);
  transition:
    transform 0.16s ease,
    background 0.16s ease,
    border-color 0.16s ease;
}

.hero-tag:hover {
  transform: translateY(-2px);
  background: rgba(15, 23, 42, 0.95);
  border-color: rgba(148, 196, 248, 0.9);
}

/* Section headings & cards */

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

.section-kicker {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue-main);
  margin-bottom: 4px;
}

.section-title {
  font-size: 1.6rem;
  color: #13597B;
}

.section-subtitle {
  font-size: 0.88rem;
  color: var(--text-muted);
  max-width: 420px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.work-card {
  position: relative;
  background: white;
  border-radius: 20px;
  padding: 16px 16px 14px;
  overflow: hidden;
  box-shadow:
    0 12px 30px rgba(15, 23, 42, 0.08),
    0 0 0 1px rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(148, 163, 184, 0.35);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.work-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: conic-gradient(
    from 210deg,
    var(--blue-light),
    var(--blue-soft),
    transparent,
    transparent,
    var(--blue-light)
  );
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.work-card-inner {
  position: relative;
  z-index: 1;
}

.work-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 18px 40px rgba(15, 23, 42, 0.18),
    0 0 26px rgba(37, 99, 235, 0.12),
    inset 3px 0 0 var(--blue-main);
  border-color: transparent;
}

.work-card:hover::before {
  opacity: 0.18;
}

.work-label {
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 2px;
}

.work-title {
  font-size: 1rem;
  font-weight: 600;
  color: #13597B;
}

.work-desc {
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-top: 4px;
  line-height: 1.6;
}
.work-desc a {
  color: #13597B;
  font-weight: 600;
  text-decoration: underline;
}

.work-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  font-size: 0.78rem;
  color: #6b7280;
}

.work-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--blue-main);
  font-weight: 500;
}

/* Streams / approach */

.streams-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 30px;
  align-items: center;
}

.stream-box {
  background: var(--card-dark-soft);
  border-radius: 24px;
  padding: 20px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.8),
    0 0 50px rgba(56, 189, 248, 0.25);
}

.stream-title {
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.stream-sub {
  font-size: 0.9rem;
  color: #cbd5f5;
  margin-bottom: 14px;
}

.stream-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  font-size: 0.84rem;
  color: #e5e7eb;
}

.stream-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-top: 6px;
  background: radial-gradient(circle, var(--blue-light), var(--blue-soft));
  flex-shrink: 0;
}

.stream-right {
  color: #e5e7eb;
  font-size: 0.86rem;
  line-height: 1.8;
}

.stream-right h4 {
  font-size: 0.98rem;
  margin-bottom: 8px;
  color: var(--blue-light);
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

/* About / contact */

.about-compact {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: center;
  font-size: 0.9rem;
  color: #111827;
}

.about-avatar {
  width: 120px;     /* bigger */
  height: 120px;    /* bigger */
  border-radius: 999px;
  overflow: hidden;
  border: 2px solid rgba(15, 118, 178, 0.3);
  background: #cbd5ff;
}

.about-compact p {
  color: var(--text-muted);
  line-height: 1.7;
}


/* NEW: icon row for email / LinkedIn */
.about-links {
  margin-top: 14px;
  display: flex;
  gap: 16px;
  align-items: center;
}

.about-links a svg {
  width: 22px;
  height: 22px;
  vertical-align: middle;   
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.about-links a:hover svg {
  transform: translateY(-2px);
  opacity: 0.75;
}

/* Footer */

.site-footer {
  background: var(--bg-darker);
  color: #9ca3af;
  padding: 18px 20px 26px;
  font-size: 0.78rem;
  border-top: 1px solid rgba(148, 163, 184, 0.35);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

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

.footer-links a {
  opacity: 0.88;
}

.footer-links a:hover {
  opacity: 1;
}

/* Contact form */

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 48px;
  align-items: start;
  max-width: 860px;
}

.contact-info h2 {
  font-size: 1.5rem;
  color: #13597B;
  margin-bottom: 10px;
}

.contact-info p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
}

.contact-detail {
  display: flex;
  flex-direction: row;
  gap: 16px;
  margin-top: 4px;
}

.contact-detail a {
  color: var(--blue-main);
  display: inline-flex;
  align-items: center;
  transition: opacity 0.15s ease;
}

.contact-detail a:hover {
  opacity: 0.65;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
}

.form-input,
.form-textarea {
  background: white;
  border: 1px solid rgba(148, 163, 184, 0.5);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.9rem;
  color: var(--text-main);
  font-family: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  width: 100%;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--blue-soft);
  box-shadow: 0 0 0 3px rgba(15, 128, 196, 0.12);
}

.form-textarea {
  resize: vertical;
  min-height: 130px;
  line-height: 1.6;
}

.form-submit {
  align-self: flex-start;
}

.form-success {
  display: none;
  background: #f0fdf4;
  border: 1px solid #86efac;
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 0.88rem;
  color: #15803d;
}

@media (max-width: 720px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

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

/* Starfield + intro door (landing page only) */

.stars {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 10% 20%, rgba(255,255,255,0.12) 0, transparent 40%),
    radial-gradient(circle at 80% 10%, rgba(125,211,252,0.16) 0, transparent 40%),
    radial-gradient(circle at 50% 90%, rgba(96,165,250,0.12) 0, transparent 40%);
  opacity: 0.7;
  mix-blend-mode: screen;
  z-index: 4;
}

.door-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: radial-gradient(circle at center, #020617 0, #000 80%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  overflow: hidden;
  transition: opacity 1.4s ease-out 0.2s;
}
/* Hidden before first paint when <head> script determines door should not show */
.no-door .door-overlay {
  display: none;
}

.door-overlay.open {
  opacity: 0;
  pointer-events: none;
}

.door-shell {
  text-align: center;
  color: #e5e7eb;
}

.door-copy-top {
  font-size: 0.82rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #9ca3c4;
  margin-bottom: 18px;
}

.door-frame {
  position: relative;
  width: min(700px, 90vw);
  height: 230px;
  margin: 0 auto;
  border-radius: 26px;
  box-shadow:
    0 0 70px rgba(15, 23, 42, 0.9),
    0 0 80px rgba(56, 189, 248, 0.4);
}

.door-panel {
  position: absolute;
  width: 50%;
  height: 100%;
  background: radial-gradient(circle at 0 0, #123457 0, #020617 60%);
  border: 1px solid rgba(148, 163, 184, 0.8);
  transition: transform 2s cubic-bezier(0.2, 0.85, 0.18, 1.08);
}

.door-panel.left {
  left: 0;
  border-radius: 26px 0 0 26px;
}

.door-panel.right {
  right: 0;
  border-radius: 0 26px 26px 0;
}

.door-overlay.open .door-panel.left {
  transform: translateX(-120%);
}

.door-overlay.open .door-panel.right {
  transform: translateX(120%);
}

.door-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.door-title {
  font-size: 1.2rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.door-subtitle {
  font-size: 0.9rem;
  color: #cbd5f5;
  max-width: 420px;
  margin-bottom: 16px;
}

.door-btn {
  padding: 9px 26px;
  border-radius: 999px;
  border: 1px solid rgba(56,189,248,0.9);
  background: linear-gradient(to right, var(--blue-soft), var(--blue-light));
  color: #0b1120;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.84rem;
  cursor: pointer;
  pointer-events: auto;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.door-btn span {
  font-size: 1rem;
}

.door-btn:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 18px rgba(56,189,248,0.7),
    0 0 32px rgba(37,99,235,0.7);
}

.door-copy-bottom {
  margin-top: 18px;
  font-size: 0.78rem;
  color: #9ca3c4;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
@keyframes heroFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

@keyframes heroGlow {
  0%, 100% {
    opacity: 0;
    transform: translate3d(-8%, -8%, 0);
  }
  40% {
    opacity: 1;
    transform: translate3d(8%, 6%, 0);
  }
  70% {
    opacity: 0.35;
    transform: translate3d(4%, 10%, 0);
  }
}

@keyframes statusPulse {
  0%   { transform: scale(1);   opacity: 0.7; }
  70%  { transform: scale(2.8); opacity: 0; }
  100% { transform: scale(2.8); opacity: 0; }
}


/* Responsive */

@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 86px;
  }

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

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

/* Hamburger button — hidden on desktop */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
}

.nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.nav-burger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-burger.open span:nth-child(2) {
  opacity: 0;
}
.nav-burger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 720px) {
  .site-header-inner {
    flex-wrap: wrap;
    align-items: center;
  }

  .nav-burger {
    display: flex;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 0;
    padding: 4px 0 12px;
  }

  .nav-links.nav-open {
    display: flex;
  }

  .nav-links a {
    padding: 10px 2px;
    font-size: 0.92rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.15);
  }

  .nav-links a:last-child {
    border-bottom: none;
  }

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

  .section {
    padding: 56px 16px;
  }

  .section-title-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .section-subtitle {
    max-width: 100%;
  }

  .stream-list {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-bottom: 48px;
  }

  .door-subtitle {
    max-width: 90%;
    padding: 0 12px;
  }

  .ledger-section {
    padding-left: 16px;
    padding-right: 16px;
  }
}

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

  .hero-right-card {
    margin-top: 16px;
  }

  .about-compact {
    grid-template-columns: 1fr;
  }
}

/* Scroll reveal — gated on .js class added by inline <head> script.
   Without JS (or before JS runs), elements stay visible (no flash). */

.js .reveal,
.js .reveal-left,
.js .reveal-right {
  opacity: 0;
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.js .reveal       { transform: translateY(40px); }
.js .reveal-left  { transform: translateX(-36px); }
.js .reveal-right { transform: translateX(36px); }

.js .reveal.visible,
.js .reveal-left.visible,
.js .reveal-right.visible {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.18s; }
.reveal-delay-3 { transition-delay: 0.28s; }
.reveal-delay-4 { transition-delay: 0.38s; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal, .js .reveal-left, .js .reveal-right {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ===== ABOUT — LEDGER TIMELINE ===== */

.ledger-section { padding: 0 20px 80px; }

.ledger-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 72px;
}

.ledger-col-label {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #13597B;
  padding-bottom: 9px;
  margin-bottom: 36px;
  position: relative;
}
.ledger-col-label::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  height: 2px;
  width: 0;
  background: #13597B;
  transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.ledger-col-label.is-visible::after { width: 100%; }

.ledger-entry {
  position: relative;
  padding: 0 0 32px 16px;
  margin-bottom: 32px;
  border-bottom: 1px solid rgba(19, 89, 123, 0.09);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.ledger-entry:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.ledger-entry:hover {
  transform: translateX(4px);
}

.ledger-entry::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, #13597B 0%, rgba(19, 89, 123, 0) 100%);
  opacity: 0;
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.15s,
              opacity 0.3s ease 0.15s;
}
.ledger-entry.is-visible::before {
  opacity: 0.5;
  transform: scaleY(1);
}
.ledger-entry:hover::before {
  opacity: 1;
  width: 3px;
}

.ledger-ghost {
  position: absolute;
  right: 4px; top: -14px;
  font-size: 6rem;
  font-weight: 900;
  line-height: 1;
  color: rgba(19, 89, 123, 0.05);
  letter-spacing: -0.04em;
  user-select: none;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.7s ease 0.2s, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.2s;
}
.ledger-entry.is-visible .ledger-ghost {
  opacity: 1;
  transform: translateY(0);
}

.ledger-inner { position: relative; z-index: 1; }

.ledger-date-range,
.ledger-name,
.ledger-role,
.ledger-location,
.ledger-desc {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.ledger-entry.is-visible .ledger-date-range { opacity: 1; transform: none; transition-delay: 0.1s; }
.ledger-entry.is-visible .ledger-name      { opacity: 1; transform: none; transition-delay: 0.18s; }
.ledger-entry.is-visible .ledger-role      { opacity: 1; transform: none; transition-delay: 0.24s; }
.ledger-entry.is-visible .ledger-location  { opacity: 1; transform: none; transition-delay: 0.30s; }
.ledger-entry.is-visible .ledger-desc      { opacity: 1; transform: none; transition-delay: 0.36s; }

.ledger-date-range {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #005a96;
  margin-bottom: 5px;
}
.ledger-name {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--blue-main);
  line-height: 1.25;
  margin-bottom: 3px;
}
.ledger-role {
  font-size: 0.8rem;
  color: #4a5a6a;
  line-height: 1.45;
  margin-bottom: 3px;
}
.ledger-location {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.68rem;
  color: #9aaabb;
  margin-bottom: 7px;
}
.ledger-desc {
  font-size: 0.78rem;
  color: #5a6a7a;
  line-height: 1.65;
}

@media (max-width: 700px) {
  .ledger-grid { grid-template-columns: 1fr; gap: 52px; }
}

/* ===== BLOG — EDITORIAL FEED (blog2.html) ===== */

.blog-featured {
  position: relative;
  background: radial-gradient(circle at top left, #0e2a45 0, #020715 70%);
  border-radius: 22px;
  padding: 38px 42px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.45),
    0 0 60px rgba(56, 189, 248, 0.12);
  color: var(--text-on-dark);
  overflow: hidden;
}

.blog-featured::after {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.08), transparent 65%);
  pointer-events: none;
}

.blog-featured-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue-light);
  margin-bottom: 16px;
}

.blog-featured-eyebrow .eyebrow-line {
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--blue-light);
  flex-shrink: 0;
}

.blog-featured-title {
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  font-weight: 700;
  color: #f0f9ff;
  line-height: 1.22;
  max-width: 620px;
  margin-bottom: 14px;
}

.blog-featured-excerpt {
  font-size: 0.9rem;
  color: #cbd5f5;
  line-height: 1.75;
  max-width: 580px;
  margin-bottom: 24px;
}

.blog-featured-foot {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.blog-featured-meta {
  font-size: 0.78rem;
  color: #64748b;
}

.blog-featured-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #e5e7eb;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.16s ease, transform 0.16s ease, border-color 0.16s ease;
}

.blog-featured-btn:hover {
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateY(-1px);
}

.blog-sep {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 36px 0 0;
}

.blog-sep-label {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #9ca3af;
  white-space: nowrap;
}

.blog-sep-line {
  flex: 1;
  height: 1px;
  background: rgba(148, 163, 184, 0.22);
}

.blog-feed-item {
  display: grid;
  grid-template-columns: 155px 1fr;
  gap: 28px;
  padding: 28px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
  align-items: start;
  cursor: default;
}

.blog-feed-item:last-child {
  border-bottom: none;
}

.blog-feed-left {
  padding-top: 4px;
}

.blog-feed-date {
  font-size: 0.79rem;
  color: #9ca3af;
  margin-bottom: 7px;
}

.blog-feed-tag {
  display: inline-flex;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  background: rgba(0, 90, 150, 0.08);
  color: var(--blue-main);
}

.blog-feed-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #13597B;
  line-height: 1.3;
  margin-bottom: 8px;
  transition: color 0.15s ease;
}

.blog-feed-item:hover .blog-feed-title {
  color: var(--blue-main);
}

.blog-feed-excerpt {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.68;
  max-width: 580px;
}

.blog-feed-read {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 12px;
  font-size: 0.79rem;
  font-weight: 500;
  color: var(--blue-main);
  transition: gap 0.15s ease;
}

.blog-feed-item:hover .blog-feed-read {
  gap: 9px;
}

@media (max-width: 720px) {
  .blog-featured {
    padding: 24px 20px;
  }

  .blog-feed-item {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 22px 0;
  }

  .blog-feed-left {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 0;
  }
}

/* ===== BLOG POST LAYOUT ===== */

.post-article {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 20px 80px;
}

.post-breadcrumb {
  margin-bottom: 36px;
}

.post-breadcrumb a {
  font-size: 0.84rem;
  color: var(--blue-main);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.15s ease;
}

.post-breadcrumb a:hover { gap: 10px; }

.post-header {
  max-width: 720px;
  margin-bottom: 52px;
}

.post-kicker {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue-main);
  margin-bottom: 14px;
}

.post-title {
  font-size: clamp(1.65rem, 3.5vw, 2.4rem);
  font-weight: 700;
  color: #13597B;
  line-height: 1.2;
  margin-bottom: 16px;
}

.post-subtitle {
  font-size: 1.02rem;
  color: var(--text-muted);
  margin-bottom: 22px;
  line-height: 1.65;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.79rem;
  color: #9ca3af;
  flex-wrap: wrap;
}

.post-meta-sep { opacity: 0.35; }

.post-body {
  max-width: 720px;
}

.post-lead {
  font-size: 1.01rem;
  line-height: 1.8;
  color: var(--text-main);
  margin-bottom: 32px;
}

.post-body p {
  font-size: 0.96rem;
  line-height: 1.8;
  color: var(--text-main);
  margin-bottom: 20px;
}

.post-section {
  margin-top: 52px;
}

.post-section-label {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-main);
  margin-bottom: 8px;
}

.post-section-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #13597B;
  margin-bottom: 18px;
  line-height: 1.3;
}

.post-sub-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #13597B;
  margin-top: 36px;
  margin-bottom: 14px;
}

.post-pull {
  border-left: 3px solid var(--blue-main);
  padding: 12px 20px;
  margin: 28px 0;
  background: var(--bg-light);
  border-radius: 0 8px 8px 0;
}

.post-pull p {
  font-size: 0.97rem;
  font-weight: 600;
  color: #13597B;
  margin: 0;
  line-height: 1.55;
}

.post-chart-wrap {
  max-width: 900px;
  margin: 40px 0;
}

.post-chart-wrap img {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  display: block;
}

.post-chart-wrap canvas {
  display: block;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.15);
  background: white;
  padding: 20px;
  width: 100% !important;
  box-sizing: border-box;
}

.post-chart-caption {
  font-size: 0.71rem;
  font-style: italic;
  color: #9ca3af;
  margin-top: 9px;
  line-height: 1.5;
}

sup.cite {
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--blue-main);
  vertical-align: super;
  line-height: 0;
  margin-left: 1px;
}

.post-draft-notice {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.74rem;
  color: #92400e;
  background: #fef3c7;
  border: 1px solid #fde68a;
  border-radius: 6px;
  padding: 6px 12px;
  margin-bottom: 36px;
}

.post-draft-notice::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d97706;
  flex-shrink: 0;
}

/* Chart reveal: shorter lift than default 40px */
.js .post-chart-wrap.reveal {
  transform: translateY(18px);
}

.post-sources {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
}

.post-sources-title {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.post-sources p {
  font-size: 0.79rem;
  color: #9ca3af;
  line-height: 1.7;
  margin-bottom: 4px;
  font-style: italic;
}

.post-sources a {
  color: #9ca3af;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.post-sources a:hover {
  color: var(--blue-main);
}

sup.cite a {
  color: inherit;
  text-decoration: none;
}

sup.cite a:hover {
  color: var(--blue-main);
}

.post-back-bottom {
  margin-top: 52px;
  padding-top: 24px;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
}

.post-back-bottom a {
  font-size: 0.84rem;
  color: var(--blue-main);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.15s ease;
}

.post-back-bottom a:hover { gap: 10px; }

@media (max-width: 720px) {
  .post-article { padding: 28px 16px 60px; }
  .post-chart-wrap { margin: 28px 0; }
}

