/* ================================================================
   MAARGIN — Unified Stylesheet
   Editorial-scientific design system.
   Used across: index.html, blog.html, careers.html
   ================================================================ */

/* ===== Design Tokens ===== */
:root {
  /* Color */
  --bg-0: #07090c;
  --bg-1: #0b0f14;
  --bg-2: #10161d;
  --bg-3: #182029;
  --line: rgba(255, 255, 255, 0.06);
  --line-2: rgba(255, 255, 255, 0.12);
  --ink-0: #f4f1ea;
  --ink-1: #d4cfc3;
  --ink-2: #8b8679;
  --ink-3: #55524a;
  --teal: #008CAB;
  --teal-deep: #00708a;
  --amber: #f5b971;
  --amber-deep: #b4621c;
  --violet: #7c6ff0;
  --grad-arc: linear-gradient(100deg, #5eead4 0%, #f5b971 55%, #7c6ff0 100%);

  /* Type */
  --font-display: 'Fraunces', 'Times New Roman', serif;
  --font-body: 'Manrope', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Spacing (8pt base) */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;
  --s-10: 128px;
  --s-11: 160px;

  /* Layout */
  --max: 1360px;
  --radius-sm: 6px;
  --radius: 14px;
  --radius-lg: 22px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ===== Base ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  background: var(--bg-0);
  color: var(--ink-1);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

/* Global atmosphere — teal/amber ambient light + noise grain */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background:
    radial-gradient(ellipse at 50% -10%, rgba(94, 234, 212, 0.08), transparent 50%),
    radial-gradient(ellipse at 90% 100%, rgba(245, 185, 113, 0.05), transparent 45%);
}

/* Body variant: page-specific atmosphere override */
body.careers-page::before {
  background:
    radial-gradient(ellipse at 50% -10%, rgba(245, 185, 113, 0.08), transparent 50%),
    radial-gradient(ellipse at 90% 100%, rgba(94, 234, 212, 0.05), transparent 45%);
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* ===== Typography ===== */
h1,
h2,
h3,
h4,
h5 {
  font-family: var(--font-display);
  font-weight: 300;
  color: var(--ink-0);
  letter-spacing: -0.02em;
  line-height: 1.05;
  font-variation-settings: "opsz" 144;
}

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

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.eyebrow.amber {
  color: var(--amber);
}

.eyebrow::before {
  content: '';
  width: 24px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--s-7);
  position: relative;
  z-index: 3;
}

/* ================================================================
   NAVIGATION (shared across all pages)
   ================================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: var(--s-5) 0;
  transition: all 0.4s var(--ease);
}

.nav.scrolled {
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  background: rgba(7, 9, 12, 0.7);
  border-bottom: 1px solid var(--line);
  padding: var(--s-4) 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--s-7);
}

.logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.logo img {
  height: 60px;
  width: auto;
  display: block;
  transition: opacity 0.3s var(--ease);
}

.logo:hover img {
  opacity: 0.8;
}

.nav.scrolled .logo img {
  height: 60px;
}

.nav-links {
  display: flex;
  gap: var(--s-7);
  list-style: none;
  font-size: 14px;
  color: var(--ink-1);
}

.nav-links a {
  position: relative;
  padding: 4px 0;
  transition: color 0.3s var(--ease);
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: var(--teal);
  transition: width 0.4s var(--ease);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--ink-0);
}

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

/* Careers page uses amber underline */
body.careers-page .nav-links a::after {
  background: var(--amber);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 13px;
  color: var(--ink-0);
  font-weight: 500;
  transition: all 0.3s var(--ease);
  background: rgba(255, 255, 255, 0.02);
}

.nav-cta:hover {
  background: var(--ink-0);
  color: var(--bg-0);
  border-color: var(--ink-0);
}

.nav-cta svg {
  transition: transform 0.3s var(--ease);
}

.nav-cta:hover svg {
  transform: translate(2px, -2px);
}

.hamburger {
  display: none;
  width: 36px;
  height: 36px;
  background: transparent;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  cursor: pointer;
  position: relative;
}

.hamburger span {
  position: absolute;
  left: 9px;
  width: 16px;
  height: 1px;
  background: var(--ink-0);
  transition: all 0.3s var(--ease);
}

.hamburger span:nth-child(1) {
  top: 13px;
}

.hamburger span:nth-child(2) {
  top: 18px;
  width: 12px;
}

.hamburger span:nth-child(3) {
  top: 23px;
  width: 16px;
}

.hamburger.open span:nth-child(1) {
  top: 18px;
  transform: rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  top: 18px;
  transform: rotate(-45deg);
  width: 16px;
}

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--bg-0);
  z-index: 99;
  padding: 90px var(--s-7) var(--s-5);
  transform: translateX(100%);
  transition: transform 0.5s var(--ease);
  flex-direction: column;
  gap: var(--s-2);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-menu.open {
  transform: translateX(0);
}

.mobile-menu a {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  color: var(--ink-0);
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-menu a::after {
  content: '→';
  font-family: var(--font-display);
  color: var(--ink-3);
  font-size: 20px;
  transition: all 0.3s var(--ease);
}

.mobile-menu a:hover::after,
.mobile-menu a.active::after {
  color: var(--teal);
  transform: translateX(4px);
}

body.careers-page .mobile-menu a:hover::after,
body.careers-page .mobile-menu a.active::after {
  color: var(--amber);
}

.mobile-menu a.external::after {
  content: '↗';
  color: var(--teal);
}

body.careers-page .mobile-menu a.external::after {
  color: var(--amber);
}

/* ================================================================
   BUTTONS (shared)
   ================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: all 0.4s var(--ease);
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
  font-family: var(--font-body);
}

.btn-primary {
  background: var(--ink-0);
  color: var(--bg-0);
}

.btn-primary:hover {
  background: var(--teal);
  transform: translateY(-2px);
  box-shadow: 0 20px 40px -20px rgba(94, 234, 212, 0.4);
}

body.careers-page .btn-primary:hover {
  background: var(--amber);
  box-shadow: 0 20px 40px -20px rgba(245, 185, 113, 0.4);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--line-2);
  color: var(--ink-0);
  backdrop-filter: blur(10px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--ink-1);
}

.btn svg {
  transition: transform 0.3s var(--ease);
}

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

/* ================================================================
   SECTION HEAD (shared)
   ================================================================ */
section {
  position: relative;
  z-index: 3;
}

.section-head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--s-8);
  margin-bottom: var(--s-9);
  align-items: start;
}

.section-head .eyebrow {
  padding-top: 12px;
}

.section-head h2 {
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 300;
  letter-spacing: -0.025em;
}

.section-head h2 em,
.section-head h2 .word.em,
.why-lead h2 .word.em {
  font-style: italic;
  color: var(--teal);
}

.section-head h2 .word,
.why-lead h2 .word {
  display: inline-block;
}

/* ================================================================
   HERO (index.html)
   ================================================================ */
.hero {
  position: relative;
  padding: 180px 0 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: var(--s-7);
}

.hero>.container {
  width: 100%;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

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

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 1300px;
}

.hero-meta {
  display: flex;
  gap: var(--s-5);
  margin-bottom: var(--s-6);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-2);
  flex-wrap: wrap;
}

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

.hero-meta .dot {
  width: 6px;
  height: 6px;
  background: var(--teal);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--teal);
  animation: pulse 2.4s var(--ease) infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(1.3);
  }
}

.hero h1 {
  font-size: clamp(48px, 8vw, 128px);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -0.035em;
  margin-bottom: var(--s-6);
}

.hero h1 .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(30px);
  animation: reveal 1s var(--ease) forwards;
}

.hero h1 .word.em {
  font-style: italic;
  font-weight: 300;
  color: var(--teal);
}

.hero h1 .word:nth-child(1) {
  animation-delay: 0.1s;
}

.hero h1 .word:nth-child(2) {
  animation-delay: 0.2s;
}

.hero h1 .word:nth-child(3) {
  animation-delay: 0.3s;
}

.hero h1 .word:nth-child(4) {
  animation-delay: 0.4s;
}

.hero h1 .word:nth-child(5) {
  animation-delay: 0.5s;
}

@keyframes reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-sub {
  font-size: clamp(17px, 1.4vw, 20px);
  color: var(--ink-1);
  max-width: 620px;
  line-height: 1.55;
  margin-bottom: var(--s-7);
  opacity: 0;
  animation: reveal 1s var(--ease) 0.7s forwards;
}

.hero-cta {
  display: flex;
  gap: var(--s-4);
  flex-wrap: wrap;
  opacity: 0;
  animation: reveal 1s var(--ease) 0.9s forwards;
}

.orbits {
  position: absolute;
  right: -10%;
  top: 50%;
  transform: translateY(-50%);
  width: 900px;
  height: 900px;
  z-index: 1;
  opacity: 0.7;
}

.orbits svg {
  width: 100%;
  height: 100%;
  animation: spin 120s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.orbits .inner {
  animation: spin 80s linear infinite reverse;
}

.hero-stats {
  position: relative;
  z-index: 3;
  width: 100%;
}

.stats-row {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--s-7);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-5);
  padding-top: var(--s-5);
  border-top: 1px solid var(--line);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.stat-value {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 300;
  color: var(--ink-0);
  letter-spacing: -0.02em;
}

.stat-value .unit {
  font-size: 14px;
  color: var(--ink-2);
  margin-left: 4px;
  font-family: var(--font-body);
}

/* ================================================================
   WHAT WE DO (index.html)
   ================================================================ */
.what {
  padding: var(--s-7) 0 var(--s-10);
  border-top: 1px solid var(--line);
}

.what-intro {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--s-9);
  margin-bottom: var(--s-9);
  align-items: end;
}

/* Two-card block under the What We Do header */
.what-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-5);
  max-width: 1100px;
  margin: 0 auto;
}

.what-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--s-7);
  background: linear-gradient(180deg, rgba(10, 16, 22, 0.5) 0%, rgba(5, 8, 12, 0.4) 100%);
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  transition: all 0.4s var(--ease);
}

.what-card:hover {
  border-color: rgba(94, 234, 212, 0.3);
  transform: translateY(-2px);
}

.what-card-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal);
}

.what-card h3 {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--ink-0);
}

.what-card h3 em {
  font-style: italic;
  color: var(--teal);
  font-weight: 300;
}

.what-card p {
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--ink-1);
}

@media (max-width: 820px) {
  .what-cards {
    grid-template-columns: 1fr;
  }
}

.what-intro p {
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-1);
  max-width: 640px;
}

.what-intro p+p {
  margin-top: var(--s-4);
}

.what-diagram {
  padding: var(--s-7) 0;
  margin: var(--s-8) 0;
  border-top: 1px dashed var(--line-2);
  border-bottom: 1px dashed var(--line-2);
  position: relative;
}

.layers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-5);
}

.layer {
  padding: var(--s-5);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  position: relative;
  backdrop-filter: blur(20px);
  transition: all 0.4s var(--ease);
}

.layer:hover {
  border-color: var(--line-2);
  transform: translateY(-4px);
  background: linear-gradient(180deg, rgba(94, 234, 212, 0.04), rgba(255, 255, 255, 0.01));
}

.layer-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-2);
  letter-spacing: 0.18em;
  margin-bottom: var(--s-6);
}

.layer-icon {
  width: 40px;
  height: 40px;
  margin-bottom: var(--s-4);
  color: var(--teal);
}

.layer h4 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  margin-bottom: var(--s-3);
  color: var(--ink-0);
}

.layer p {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.55;
}

/* ================================================================
   SOLUTIONS (index.html)
   ================================================================ */
.solutions {
  padding: var(--s-10) 0;
  border-top: 1px solid var(--line);
  position: relative;
}

.solution-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-5);
}

.solution {
  position: relative;
  padding: var(--s-7);
  min-height: 420px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.005) 100%);
  overflow: hidden;
  transition: all 0.5s var(--ease);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}

.solution::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 50%), rgba(94, 234, 212, 0.08), transparent 40%);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
  pointer-events: none;
}

.solution:hover::before {
  opacity: 1;
}

.solution:hover {
  border-color: var(--line-2);
  transform: translateY(-4px);
}

.solution-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.solution-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-2);
  letter-spacing: 0.2em;
}

.solution-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--teal);
  padding: 4px 10px;
  border: 1px solid var(--teal-deep);
  border-radius: 999px;
  background: rgba(94, 234, 212, 0.06);
}

.solution-icon {
  width: 80px;
  height: 80px;
  margin: var(--s-6) 0;
}

.solution h3 {
  font-size: 38px;
  font-weight: 300;
  margin-bottom: var(--s-3);
  font-style: italic;
}

.solution p {
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.6;
  max-width: 420px;
  margin-bottom: var(--s-5);
}

.solution-feats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-bottom: var(--s-5);
}

.solution-feats span {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-1);
  padding: 6px 12px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
}

.solution-more {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--ink-0);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
}

.solution-more::after {
  content: '→';
  transition: transform 0.3s var(--ease);
}

.solution:hover .solution-more::after {
  transform: translateX(4px);
}

.solution.variant-a .solution-icon {
  color: var(--teal);
}

.solution.variant-b .solution-icon {
  color: var(--amber);
}

.solution.variant-b .solution-tag {
  color: var(--amber);
  border-color: var(--amber-deep);
  background: rgba(245, 185, 113, 0.06);
}

.solution.variant-c .solution-icon {
  color: #a5b4fc;
}

.solution.variant-c .solution-tag {
  color: #a5b4fc;
  border-color: #4338ca;
  background: rgba(165, 180, 252, 0.06);
}

.solution.variant-d .solution-icon {
  color: var(--violet);
}

.solution.variant-d .solution-tag {
  color: var(--violet);
  border-color: #4c3ea1;
  background: rgba(124, 111, 240, 0.06);
}

/* ================================================================
   HOW IT WORKS (index.html)
   ================================================================ */
.how {
  padding: var(--s-10) 0;
  border-top: 1px solid var(--line);
}

.steps {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--s-9);
  align-items: start;
}

.step-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.step {
  padding: var(--s-6) 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: var(--s-5);
  align-items: start;
  cursor: pointer;
  transition: all 0.4s var(--ease);
}

.step:last-child {
  border-bottom: 1px solid var(--line);
}

.step:hover {
  padding-left: var(--s-3);
}

.step-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--teal);
  letter-spacing: 0.18em;
}

.step-content h4 {
  font-size: 26px;
  font-weight: 400;
  margin-bottom: var(--s-2);
  color: var(--ink-0);
  font-family: var(--font-display);
}

.step-content p {
  color: var(--ink-2);
  font-size: 15px;
  max-width: 520px;
  line-height: 1.6;
}

.step-arrow {
  color: var(--ink-3);
  font-size: 20px;
  transition: all 0.3s var(--ease);
  font-family: var(--font-display);
  align-self: center;
}

.step:hover .step-arrow {
  color: var(--teal);
  transform: translateX(6px);
}

.how-visual {
  position: sticky;
  top: 140px;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(ellipse at center, rgba(94, 234, 212, 0.04) 0%, transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0));
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(20px);
}

.how-visual svg {
  width: 100%;
  height: 100%;
}

/* ================================================================
   TECHNOLOGY (index.html)
   ================================================================ */
.tech {
  padding: var(--s-10) 0;
  border-top: 1px solid var(--line);
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--s-5);
  margin-bottom: var(--s-7);
}

.tech-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--s-6);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.005));
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
  transition: all 0.4s var(--ease);
}

.tech-card:hover {
  border-color: var(--line-2);
  transform: translateY(-3px);
}

.tech-card.lg {
  grid-column: span 7;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.tech-card.md {
  grid-column: span 5;
  min-height: 340px;
}

.tech-card.sm {
  grid-column: span 4;
}

.tech-card.w6 {
  grid-column: span 6;
}

.tech-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--ink-2);
  text-transform: uppercase;
  margin-bottom: var(--s-4);
}

.tech-card h4 {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 300;
  letter-spacing: -0.02em;
  margin-bottom: var(--s-3);
  line-height: 1.1;
}

.tech-card h4 em {
  color: var(--teal);
  font-style: italic;
}

.tech-card.md h4 {
  font-size: 24px;
}

.tech-card.sm h4 {
  font-size: 20px;
}

.tech-card p {
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.6;
}

.standards {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: var(--s-5);
}

.standards span {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 5px 10px;
  border: 1px solid var(--line-2);
  border-radius: 4px;
  color: var(--ink-1);
  letter-spacing: 0.1em;
  background: rgba(255, 255, 255, 0.02);
}

.constellation-viz {
  height: 180px;
  margin-top: var(--s-5);
  position: relative;
}

.constellation-viz svg {
  width: 100%;
  height: 100%;
}

/* ================================================================
   WHY MAARGIN (index.html)
   ================================================================ */
.why {
  padding: var(--s-10) 0;
  border-top: 1px solid var(--line);
  position: relative;
}

.why-lead {
  max-width: 780px;
  margin: 0 auto var(--s-9);
  text-align: center;
}

.why-lead h2 {
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1.05;
  margin-bottom: var(--s-4);
}

.why-lead h2 em {
  color: var(--teal);
  font-style: italic;
}

.differentiators {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.diff {
  padding: var(--s-7) var(--s-6);
  border-right: 1px solid var(--line);
  position: relative;
}

.diff:last-child {
  border-right: none;
}

.diff-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 64px;
  color: var(--teal);
  font-weight: 300;
  line-height: 1;
  margin-bottom: var(--s-5);
  opacity: 0.9;
}

.diff h4 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 400;
  margin-bottom: var(--s-3);
  line-height: 1.15;
}

.diff p {
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.6;
}

/* ================================================================
   ABOUT (index.html)
   ================================================================ */
.about {
  padding: var(--s-10) 0;
  border-top: 1px solid var(--line);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: var(--s-9);
  align-items: start;
}

.about-lead {
  position: sticky;
  top: 140px;
}

.about-lead h2 {
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1.1;
  margin-bottom: var(--s-5);
}

.about-lead h2 em {
  color: var(--amber);
  font-style: italic;
}

.about-lead .eyebrow {
  margin-bottom: var(--s-5);
}

.pillars {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.pillar {
  padding: var(--s-6) 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: var(--s-5);
}

.pillar:last-child {
  border-bottom: 1px solid var(--line);
}

.pillar-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--ink-2);
  text-transform: uppercase;
  padding-top: 6px;
}

.pillar h4 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 300;
  margin-bottom: var(--s-3);
  color: var(--ink-0);
  letter-spacing: -0.01em;
}

.pillar p {
  color: var(--ink-1);
  font-size: 16px;
  line-height: 1.65;
}

/* ================================================================
   TEAM (index.html)
   ================================================================ */
.team {
  padding: var(--s-10) 0;
  border-top: 1px solid var(--line);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
}

.person {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--s-6);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.005));
  backdrop-filter: blur(20px);
  transition: all 0.5s var(--ease);
  overflow: hidden;
}

.person::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--teal), transparent);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}

.person:hover {
  border-color: var(--line-2);
  transform: translateY(-4px);
  background: linear-gradient(180deg, rgba(94, 234, 212, 0.04), rgba(255, 255, 255, 0.01));
}

.person:hover::before {
  opacity: 1;
}

.person-portrait {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(94, 234, 212, 0.12) 0%, rgba(245, 185, 113, 0.08) 50%, rgba(124, 111, 240, 0.06) 100%);
  border: 1px solid var(--line-2);
  margin-bottom: var(--s-5);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.person-portrait::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.08), transparent 40%),
    radial-gradient(circle at 70% 80%, rgba(0, 0, 0, 0.2), transparent 50%);
}

.person-monogram {
  font-family: var(--font-display);
  font-size: 72px;
  font-weight: 300;
  font-style: italic;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: -0.04em;
  position: relative;
  z-index: 2;
}

.person-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--s-4);
}

.person-role {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal);
}

.person-social {
  display: flex;
  gap: 8px;
}

.person-social a {
  width: 26px;
  height: 26px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-2);
  transition: all 0.3s var(--ease);
}

.person-social a:hover {
  color: var(--ink-0);
  border-color: var(--ink-1);
  transform: translateY(-2px);
}

.person-social svg {
  width: 11px;
  height: 11px;
}

.person-name {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  color: var(--ink-0);
  letter-spacing: -0.015em;
  line-height: 1.1;
  margin-bottom: var(--s-3);
}

.person-name em {
  font-style: italic;
  font-weight: 300;
}

.person-title {
  font-size: 14px;
  color: var(--ink-1);
  margin-bottom: var(--s-4);
  line-height: 1.5;
}

.person-bio {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.6;
  padding-top: var(--s-4);
  border-top: 1px solid var(--line);
}

.person-creds {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: var(--s-4);
}

.person-creds span {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 3px 8px;
  border: 1px solid var(--line-2);
  border-radius: 4px;
  color: var(--ink-1);
  letter-spacing: 0.1em;
  background: rgba(255, 255, 255, 0.02);
}

/* ================================================================
   ADVISORS (index.html)
   ================================================================ */
.advisors {
  padding: var(--s-10) 0;
  border-top: 1px solid var(--line);
  position: relative;
}

.advisor-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
}

.advisor {
  padding: var(--s-6) var(--s-5);
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: var(--s-5);
  align-items: center;
  transition: all 0.4s var(--ease);
  cursor: pointer;
}

.advisor:nth-child(2n) {
  border-right: none;
}

.advisor:hover {
  background: rgba(94, 234, 212, 0.02);
  padding-left: var(--s-6);
}

.advisor-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(94, 234, 212, 0.2), rgba(124, 111, 240, 0.15));
  border: 1px solid var(--line-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  color: var(--ink-0);
  font-weight: 300;
  overflow: hidden;
}

.person-portrait img,
.advisor-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 2;
  border-radius: inherit;
}

.advisor-info h5 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 400;
  color: var(--ink-0);
  margin-bottom: 4px;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.advisor-info p {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.5;
}

.advisor-info p em {
  color: var(--ink-1);
  font-style: normal;
}

.advisor-arrow {
  color: var(--ink-3);
  font-family: var(--font-display);
  font-size: 18px;
  transition: all 0.3s var(--ease);
}

.advisor:hover .advisor-arrow {
  color: var(--teal);
  transform: translateX(4px);
}

/* ================================================================
   SUPPORTED BY (index.html)
   ================================================================ */
.supported {
  padding: var(--s-10) 0;
  border-top: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.supported-head {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--s-8);
  margin-bottom: var(--s-8);
  align-items: end;
}

.supported-head h2 {
  font-size: clamp(36px, 4.5vw, 64px);
  font-weight: 300;
  letter-spacing: -0.025em;
  line-height: 1.05;
}

.supported-head h2 em {
  font-style: italic;
  color: var(--amber);
}

.supported-head p {
  font-size: 17px;
  color: var(--ink-1);
  max-width: 560px;
  line-height: 1.55;
}

.logo-wall {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.015), rgba(255, 255, 255, 0.002));
  backdrop-filter: blur(20px);
}

.support-logo {
  padding: var(--s-7) var(--s-5);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--s-4);
  min-height: 160px;
  transition: all 0.4s var(--ease);
  text-align: center;
  cursor: pointer;
}

.support-logo:nth-child(4n) {
  border-right: none;
}

.support-logo:nth-last-child(-n+4) {
  border-bottom: none;
}

.support-logo:hover {
  background: rgba(94, 234, 212, 0.025);
}

.support-logo:hover .support-mark {
  color: var(--ink-0);
  transform: scale(1.05);
}

.support-logo-img {
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--s-3);
}

.support-logo-img img {
  max-height: 100%;
  max-width: 140px;
  width: auto;
  object-fit: contain;
  transition: transform 0.4s var(--ease);
}

.support-logo:hover .support-logo-img img {
  transform: scale(1.05);
}

.support-mark {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  color: var(--ink-1);
  letter-spacing: -0.01em;
  text-align: center;
  transition: all 0.4s var(--ease);
  line-height: 1;
}

.support-mark em {
  font-style: italic;
  font-weight: 300;
}

.support-caption {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.supported-note {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-top: var(--s-6);
  text-align: center;
  padding-top: var(--s-5);
  border-top: 1px dashed var(--line);
}

/* ================================================================
   TEASERS — Blogs & Careers entry points (index.html)
   ================================================================ */
.teasers {
  padding: var(--s-10) 0;
  border-top: 1px solid var(--line);
}

.teaser-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-5);
}

.teaser {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.005));
  backdrop-filter: blur(20px);
  overflow: hidden;
  transition: all 0.5s var(--ease);
  cursor: pointer;
  position: relative;
}

.teaser::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--teal), transparent);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
  z-index: 2;
}

.teaser-careers::before {
  background: linear-gradient(90deg, transparent, var(--amber), transparent);
}

.teaser:hover {
  border-color: var(--line-2);
  transform: translateY(-4px);
  background: linear-gradient(180deg, rgba(94, 234, 212, 0.04), rgba(255, 255, 255, 0.01));
}

.teaser-careers:hover {
  background: linear-gradient(180deg, rgba(245, 185, 113, 0.04), rgba(255, 255, 255, 0.01));
}

.teaser:hover::before {
  opacity: 1;
}

.teaser-art {
  height: 280px;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.teaser-art svg {
  width: 100%;
  height: 100%;
  transition: transform 0.8s var(--ease);
}

.teaser:hover .teaser-art svg {
  transform: scale(1.03);
}

.teaser-body {
  padding: var(--s-6) var(--s-7) var(--s-7);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  flex: 1;
}

.teaser-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.teaser-label {
  color: var(--teal);
  padding: 5px 10px;
  border: 1px solid var(--teal-deep);
  border-radius: 999px;
  background: rgba(94, 234, 212, 0.06);
}

.teaser-label.amber {
  color: var(--amber);
  border-color: var(--amber-deep);
  background: rgba(245, 185, 113, 0.06);
}

.teaser-count {
  color: var(--ink-2);
}

.teaser-title {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 400;
  color: var(--ink-0);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-top: var(--s-2);
}

.teaser-title em {
  font-style: italic;
  font-weight: 300;
}

.teaser-text {
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.6;
  margin-bottom: var(--s-4);
}

.teaser-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal);
  margin-top: auto;
  padding-top: var(--s-4);
  border-top: 1px solid var(--line);
  transition: gap 0.3s var(--ease);
}

.teaser-cta.amber {
  color: var(--amber);
}

.teaser:hover .teaser-cta {
  gap: 14px;
}

/* ================================================================
   CONTACT (index.html)
   ================================================================ */
.contact {
  padding: var(--s-10) 0 var(--s-9);
  border-top: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.contact::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 1200px;
  height: 600px;
  background: radial-gradient(ellipse at center, rgba(94, 234, 212, 0.12) 0%, transparent 60%);
  pointer-events: none;
}

.contact-inner {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.contact h2 {
  font-size: clamp(56px, 8vw, 132px);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -0.035em;
  margin-bottom: var(--s-6);
}

.contact h2 em {
  font-style: italic;
  color: var(--teal);
}

.contact p {
  font-size: 19px;
  color: var(--ink-1);
  margin-bottom: var(--s-7);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-4);
  max-width: 720px;
  margin: 0 auto var(--s-7);
  text-align: left;
}

.contact-form .full {
  grid-column: span 2;
}

.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: var(--s-3);
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink-0);
  font-family: var(--font-body);
  font-size: 15px;
  transition: all 0.3s var(--ease);
  backdrop-filter: blur(10px);
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--teal);
  background: rgba(94, 234, 212, 0.04);
  box-shadow: 0 0 0 4px rgba(94, 234, 212, 0.08);
}

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

.contact-direct {
  display: flex;
  gap: var(--s-7);
  justify-content: center;
  margin-top: var(--s-7);
  padding-top: var(--s-7);
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}

.direct {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.direct-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.direct-value {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--ink-0);
  font-weight: 400;
}

/* ================================================================
   PAGE HERO (blog.html, careers.html)
   ================================================================ */
.page-hero {
  padding: 180px 0 var(--s-8);
  position: relative;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
}

.page-hero-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: var(--s-8);
  align-items: end;
  position: relative;
  z-index: 2;
}

.page-hero h1 {
  font-size: clamp(56px, 8vw, 120px);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -0.035em;
  margin-top: var(--s-5);
}

.page-hero h1 em {
  font-style: italic;
  color: var(--teal);
}

body.careers-page .page-hero h1 em {
  color: var(--amber);
}

.page-hero p {
  font-size: 17px;
  color: var(--ink-1);
  line-height: 1.55;
  max-width: 420px;
  padding-bottom: var(--s-4);
}

/* ================================================================
   BLOG PAGE
   ================================================================ */
.filters {
  padding: var(--s-7) 0 var(--s-5);
  border-bottom: 1px solid var(--line);
}

.filter-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--s-5);
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 8px 16px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--ink-1);
  cursor: pointer;
  transition: all 0.3s var(--ease);
  background: rgba(255, 255, 255, 0.02);
}

.chip:hover {
  color: var(--ink-0);
  border-color: var(--ink-2);
}

.chip.active {
  background: var(--ink-0);
  color: var(--bg-0);
  border-color: var(--ink-0);
}

.filter-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.filter-meta .num {
  color: var(--teal);
}

.featured-post {
  padding: var(--s-8) 0;
  border-bottom: 1px solid var(--line);
}

.featured-link {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--s-8);
  align-items: stretch;
  cursor: pointer;
  transition: all 0.5s var(--ease);
  border-radius: var(--radius-lg);
  padding: var(--s-5);
  margin: calc(var(--s-5) * -1);
}

.featured-link:hover {
  background: rgba(94, 234, 212, 0.02);
}

.featured-art {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 16 / 11;
  position: relative;
}

.featured-art svg {
  width: 100%;
  height: 100%;
  transition: transform 0.8s var(--ease);
}

.featured-link:hover .featured-art svg {
  transform: scale(1.04);
}

.featured-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--s-5);
}

.featured-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
}

.featured-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--amber);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--amber);
}

.featured-meta {
  display: flex;
  gap: var(--s-4);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.featured-meta .category {
  color: var(--teal);
}

.featured-meta .sep {
  color: var(--ink-3);
}

.featured-content h2 {
  font-size: clamp(32px, 3.5vw, 52px);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.featured-content h2 em {
  font-style: italic;
  color: var(--ink-1);
  font-weight: 300;
}

.featured-content p {
  font-size: 16px;
  color: var(--ink-2);
  line-height: 1.65;
  max-width: 520px;
}

.featured-author {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: var(--s-5);
  border-top: 1px solid var(--line);
  margin-top: var(--s-3);
}

.author-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(94, 234, 212, 0.25), rgba(124, 111, 240, 0.18));
  border: 1px solid var(--line-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 16px;
  color: var(--ink-0);
}

.author-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.author-name-text {
  font-size: 14px;
  color: var(--ink-1);
  font-weight: 500;
}

.read-time-text {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-2);
  letter-spacing: 0.12em;
}

.articles {
  padding: var(--s-9) 0 var(--s-10);
}

.articles-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: var(--s-5);
  border-bottom: 1px solid var(--line);
  margin-bottom: var(--s-7);
}

.articles-head h3 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -0.015em;
}

.articles-head h3 em {
  font-style: italic;
  color: var(--teal);
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
}

.article-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.005));
  backdrop-filter: blur(20px);
  overflow: hidden;
  transition: all 0.5s var(--ease);
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.article-card:hover {
  border-color: var(--line-2);
  transform: translateY(-4px);
  background: linear-gradient(180deg, rgba(94, 234, 212, 0.03), rgba(255, 255, 255, 0.01));
}

.article-cover {
  aspect-ratio: 4 / 3;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  background: var(--bg-2);
  position: relative;
}

.article-cover svg {
  width: 100%;
  height: 100%;
  transition: transform 0.6s var(--ease);
}

.article-card:hover .article-cover svg {
  transform: scale(1.05);
}

.article-body {
  padding: var(--s-5) var(--s-6) var(--s-6);
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: var(--s-3);
}

.article-meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.article-cat {
  color: var(--teal);
}

.article-date {
  color: var(--ink-2);
}

.article-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  color: var(--ink-0);
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin-top: var(--s-2);
}

.article-title em {
  font-style: italic;
  color: var(--ink-1);
  font-weight: 300;
}

.article-excerpt {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--s-4);
  margin-top: auto;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--ink-2);
  text-transform: uppercase;
}

.article-foot .author {
  color: var(--ink-1);
}

.newsletter {
  padding: var(--s-8) 0 var(--s-9);
  border-top: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.newsletter-inner {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

.newsletter h3 {
  font-size: clamp(36px, 4.5vw, 56px);
  font-weight: 300;
  letter-spacing: -0.025em;
  margin-top: var(--s-4);
  margin-bottom: var(--s-4);
}

.newsletter h3 em {
  font-style: italic;
  color: var(--teal);
}

.newsletter p {
  font-size: 16px;
  color: var(--ink-1);
  margin-bottom: var(--s-6);
}

.newsletter-form {
  display: flex;
  max-width: 480px;
  margin: 0 auto;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  transition: border-color 0.3s var(--ease);
}

.newsletter-form:focus-within {
  border-color: var(--teal);
}

.newsletter-form input {
  flex: 1;
  padding: 16px 24px;
  background: transparent;
  border: none;
  color: var(--ink-0);
  font-family: var(--font-body);
  font-size: 15px;
}

.newsletter-form input:focus {
  outline: none;
}

.newsletter-form button {
  padding: 16px 28px;
  background: var(--ink-0);
  color: var(--bg-0);
  border: none;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.3s var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.newsletter-form button:hover {
  background: var(--teal);
}

/* ================================================================
   CAREERS PAGE
   ================================================================ */
.snapshot {
  padding: var(--s-5) 0;
  border-bottom: 1px solid var(--line);
}

.snap-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-5);
}

.snap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.snap-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.snap-value {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 300;
  color: var(--ink-0);
  letter-spacing: -0.02em;
}

.snap-value .unit {
  font-size: 13px;
  color: var(--ink-2);
  margin-left: 4px;
  font-family: var(--font-body);
}

.philosophy {
  padding: var(--s-9) 0;
}

.phil-intro {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--s-8);
  margin-bottom: var(--s-8);
}

.phil-intro h2 {
  font-size: clamp(36px, 4.5vw, 60px);
  font-weight: 300;
  letter-spacing: -0.025em;
  line-height: 1.05;
}

.phil-intro h2 em {
  font-style: italic;
  color: var(--teal);
}

.phil-intro p {
  font-size: 17px;
  color: var(--ink-1);
  line-height: 1.65;
  max-width: 580px;
}

.phil-intro p+p {
  margin-top: var(--s-4);
}

.values {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.value {
  padding: var(--s-6) var(--s-5);
  border-right: 1px solid var(--line);
}

.value:last-child {
  border-right: none;
}

.value-num {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--ink-2);
  margin-bottom: var(--s-4);
}

.value h5 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 400;
  color: var(--ink-0);
  margin-bottom: var(--s-2);
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.value p {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.55;
}

.benefits {
  padding: var(--s-9) 0;
  border-top: 1px solid var(--line);
}

.benefits-head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--s-8);
  margin-bottom: var(--s-7);
  align-items: end;
}

.benefits-head h2 {
  font-size: clamp(36px, 4.5vw, 60px);
  font-weight: 300;
  letter-spacing: -0.025em;
  line-height: 1.05;
}

.benefits-head h2 em {
  font-style: italic;
  color: var(--amber);
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
}

.benefit {
  padding: var(--s-6);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.005));
  backdrop-filter: blur(20px);
  transition: all 0.4s var(--ease);
}

.benefit:hover {
  border-color: var(--line-2);
  transform: translateY(-3px);
  background: linear-gradient(180deg, rgba(245, 185, 113, 0.03), rgba(255, 255, 255, 0.01));
}

.benefit-icon {
  width: 32px;
  height: 32px;
  margin-bottom: var(--s-4);
  color: var(--amber);
}

.benefit h5 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 400;
  color: var(--ink-0);
  margin-bottom: var(--s-3);
  letter-spacing: -0.01em;
}

.benefit p {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.6;
}

.roles {
  padding: var(--s-9) 0;
  border-top: 1px solid var(--line);
}

.roles-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: var(--s-6);
  padding-bottom: var(--s-4);
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
  gap: var(--s-4);
}

.roles-head h2 {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 300;
  letter-spacing: -0.025em;
}

.roles-head h2 em {
  font-style: italic;
  color: var(--teal);
}

.roles-count {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--ink-2);
  text-transform: uppercase;
}

.roles-count .num {
  color: var(--teal);
}

.dept-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: var(--s-5);
}

.dept {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 8px 16px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--ink-1);
  cursor: pointer;
  transition: all 0.3s var(--ease);
  background: rgba(255, 255, 255, 0.02);
}

.dept:hover {
  color: var(--ink-0);
  border-color: var(--ink-2);
}

.dept.active {
  background: var(--ink-0);
  color: var(--bg-0);
  border-color: var(--ink-0);
}

.job-list {
  display: flex;
  flex-direction: column;
}

.job {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1fr auto;
  gap: var(--s-5);
  align-items: center;
  padding: var(--s-6) 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: all 0.4s var(--ease);
  position: relative;
}

.job::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--teal);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.4s var(--ease);
}

.job:hover {
  padding-left: var(--s-5);
}

.job:hover::before {
  transform: scaleY(1);
}

.job-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
  color: var(--ink-0);
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.job-title em {
  font-style: italic;
  font-weight: 300;
  color: var(--ink-1);
}

.job-attr {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--ink-1);
  text-transform: uppercase;
}

.job-attr .attr-label {
  display: block;
  color: var(--ink-3);
  margin-bottom: 3px;
  font-size: 9px;
  letter-spacing: 0.22em;
}

.job-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-1);
  font-family: var(--font-display);
  font-size: 16px;
  transition: all 0.3s var(--ease);
}

.job:hover .job-arrow {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--bg-0);
  transform: rotate(-45deg);
}

.process {
  padding: var(--s-9) 0;
  border-top: 1px solid var(--line);
}

.process-head {
  margin-bottom: var(--s-7);
}

.process-head h2 {
  font-size: clamp(36px, 4.5vw, 60px);
  font-weight: 300;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin-top: var(--s-4);
}

.process-head h2 em {
  font-style: italic;
  color: var(--teal);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}

.pstep {
  padding: var(--s-6) var(--s-5) var(--s-6) 0;
  border-right: 1px dashed var(--line-2);
  position: relative;
}

.pstep:last-child {
  border-right: none;
}

.pstep-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 42px;
  color: var(--teal);
  font-weight: 300;
  line-height: 1;
  margin-bottom: var(--s-4);
  opacity: 0.9;
}

.pstep h5 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  color: var(--ink-0);
  margin-bottom: var(--s-3);
  letter-spacing: -0.01em;
}

.pstep p {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.6;
}

.pstep-time {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--amber);
  text-transform: uppercase;
  margin-top: var(--s-3);
  display: inline-block;
  padding: 4px 10px;
  border: 1px solid var(--amber-deep);
  border-radius: 4px;
  background: rgba(245, 185, 113, 0.06);
}

.final-cta {
  padding: var(--s-9) 0 var(--s-10);
  border-top: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.final-cta::before {
  content: '';
  position: absolute;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 1200px;
  height: 500px;
  background: radial-gradient(ellipse at center, rgba(245, 185, 113, 0.12) 0%, transparent 60%);
  pointer-events: none;
}

.cta-inner {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.cta-inner h2 {
  font-size: clamp(44px, 6vw, 88px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.035em;
  margin-bottom: var(--s-5);
}

.cta-inner h2 em {
  font-style: italic;
  color: var(--amber);
}

.cta-inner p {
  font-size: 17px;
  color: var(--ink-1);
  margin-bottom: var(--s-6);
}

.cta-row {
  display: inline-flex;
  gap: var(--s-4);
  flex-wrap: wrap;
  justify-content: center;
}

/* ================================================================
   FOOTER (shared)
   ================================================================ */
footer {
  padding: var(--s-8) 0 var(--s-6);
  border-top: 1px solid var(--line);
  position: relative;
  z-index: 3;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: var(--s-6);
  margin-bottom: var(--s-7);
}

.foot-brand p {
  font-size: 14px;
  color: var(--ink-2);
  margin-top: var(--s-4);
  max-width: 320px;
  line-height: 1.6;
}

.foot-col h5 {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: var(--s-4);
  font-weight: 500;
}

.foot-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.foot-col a {
  font-size: 14px;
  color: var(--ink-1);
  transition: color 0.2s;
}

.foot-col a:hover {
  color: var(--teal);
}

.foot-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--s-5);
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-2);
  letter-spacing: 0.1em;
  flex-wrap: wrap;
  gap: var(--s-3);
}

/* ================================================================
   REVEAL
   ================================================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 1s var(--ease);
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ================================================================
   RESPONSIVE — LAPTOP
   ================================================================ */
@media (max-width: 1280px) {
  .container {
    padding: 0 var(--s-6);
  }

  .nav-inner {
    padding: 0 var(--s-6);
  }

  .orbits {
    right: -20%;
    width: 700px;
    height: 700px;
  }
}

/* ================================================================
   RESPONSIVE — TABLET
   ================================================================ */
@media (max-width: 1024px) {
  .nav-links {
    display: none;
  }

  .nav-cta {
    display: none;
  }

  .hamburger {
    display: inline-block;
  }

  .section-head {
    grid-template-columns: 1fr;
    gap: var(--s-5);
  }

  .hero {
    padding: 140px 0 var(--s-8);
    min-height: auto;
  }

  .stats-row {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--s-5);
  }

  .orbits {
    opacity: 0.35;
  }

  .what-intro {
    grid-template-columns: 1fr;
    gap: var(--s-5);
  }

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

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

  .steps {
    grid-template-columns: 1fr;
    gap: var(--s-7);
  }

  .how-visual {
    position: static;
    max-width: 500px;
    margin: 0 auto;
  }

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

  .tech-card.lg,
  .tech-card.md,
  .tech-card.sm,
  .tech-card.w6 {
    grid-column: span 1;
    min-height: auto;
  }

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

  .diff {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .diff:last-child {
    border-bottom: none;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: var(--s-7);
  }

  .about-lead {
    position: static;
  }

  .pillar {
    grid-template-columns: 1fr;
    gap: var(--s-2);
  }

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

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

  .advisor {
    border-right: none;
  }

  .supported-head {
    grid-template-columns: 1fr;
    gap: var(--s-5);
  }

  .logo-wall {
    grid-template-columns: repeat(2, 1fr);
  }

  .support-logo:nth-child(4n) {
    border-right: 1px solid var(--line);
  }

  .support-logo:nth-child(2n) {
    border-right: none;
  }

  .support-logo:nth-last-child(-n+4) {
    border-bottom: 1px solid var(--line);
  }

  .support-logo:nth-last-child(-n+2) {
    border-bottom: none;
  }

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

  .teaser-art {
    height: 220px;
  }

  /* Blog page */
  .page-hero-inner {
    grid-template-columns: 1fr;
    gap: var(--s-5);
  }

  .page-hero {
    padding: 140px 0 var(--s-7);
  }

  .featured-link {
    grid-template-columns: 1fr;
    gap: var(--s-5);
  }

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

  .filter-row {
    flex-direction: column;
    align-items: flex-start;
  }

  /* Careers page */
  .snap-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .phil-intro {
    grid-template-columns: 1fr;
    gap: var(--s-5);
  }

  .benefits-head {
    grid-template-columns: 1fr;
    gap: var(--s-4);
  }

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

  .value:nth-child(2n) {
    border-right: none;
  }

  .value:nth-child(-n+2) {
    border-bottom: 1px solid var(--line);
  }

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

  .job {
    grid-template-columns: 1.8fr 1fr 1fr auto;
    gap: var(--s-4);
  }

  .job-attr.hide-tab {
    display: none;
  }

  .process-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .pstep:nth-child(2n) {
    border-right: none;
  }

  .pstep:nth-child(-n+2) {
    border-bottom: 1px dashed var(--line-2);
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: var(--s-6);
  }
}

/* ================================================================
   RESPONSIVE — MOBILE
   ================================================================ */
@media (max-width: 768px) {
  :root {
    --s-7: 32px;
    --s-8: 48px;
    --s-9: 64px;
    --s-10: 80px;
    --s-11: 96px;
  }

  .container {
    padding: 0 20px;
  }

  .nav-inner {
    padding: 0 20px;
  }

  .nav {
    padding: var(--s-4) 0;
  }

  .mobile-menu {
    display: flex;
    padding: 90px 24px 24px;
  }

  .hero {
    padding: 120px 0 var(--s-7);
  }

  .hero h1 {
    font-size: clamp(42px, 11vw, 64px);
  }

  .hero-sub {
    font-size: 16px;
  }

  .hero-meta {
    gap: var(--s-3);
    font-size: 10px;
  }

  .orbits {
    display: none;
  }

  .hero-stats {
    margin-top: var(--s-5);
  }

  .stats-row {
    grid-template-columns: repeat(2, 1fr);
    padding: var(--s-4) 20px 0;
  }

  .stat-value {
    font-size: 22px;
  }

  .section-head h2,
  .why-lead h2 {
    font-size: 38px;
  }

  .contact h2 {
    font-size: clamp(44px, 12vw, 72px);
  }

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

  .solution {
    padding: var(--s-5);
    min-height: auto;
  }

  .solution h3 {
    font-size: 30px;
  }

  .solution-icon {
    width: 60px;
    height: 60px;
  }

  .step {
    grid-template-columns: 40px 1fr;
  }

  .step-arrow {
    display: none;
  }

  .step-content h4 {
    font-size: 22px;
  }

  .tech-card {
    padding: var(--s-5);
  }

  .tech-card h4 {
    font-size: 24px;
  }

  .diff {
    padding: var(--s-5) var(--s-4);
  }

  .diff-num {
    font-size: 48px;
  }

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

  .person {
    padding: var(--s-5);
  }

  .person-name {
    font-size: 24px;
  }

  .person-monogram {
    font-size: 56px;
  }

  .advisor {
    grid-template-columns: 48px 1fr;
    padding: var(--s-5) 0;
  }

  .advisor-avatar {
    width: 44px;
    height: 44px;
    font-size: 18px;
  }

  .advisor-arrow {
    display: none;
  }

  .logo-wall {
    grid-template-columns: 1fr 1fr;
  }

  .support-logo {
    min-height: 120px;
    padding: var(--s-5) var(--s-3);
  }

  .support-mark {
    font-size: 20px;
  }

  .teaser-art {
    height: 180px;
  }

  .teaser-body {
    padding: var(--s-5);
  }

  .teaser-title {
    font-size: 26px;
  }

  /* Blog page */
  .article-grid {
    grid-template-columns: 1fr;
  }

  .articles-head {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--s-3);
  }

  .newsletter-form {
    flex-direction: column;
    border-radius: 16px;
  }

  .newsletter-form input {
    text-align: center;
  }

  .chip {
    font-size: 10px;
    padding: 7px 14px;
  }

  /* Careers page */
  .snap-row {
    grid-template-columns: 1fr 1fr;
  }

  .snap-value {
    font-size: 19px;
  }

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

  .value {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .value:last-child {
    border-bottom: none;
  }

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

  .roles-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .job {
    grid-template-columns: 1fr auto;
    gap: var(--s-3);
    padding: var(--s-5) 0;
  }

  .job-title {
    font-size: 20px;
    grid-column: 1 / -1;
  }

  .job-attr.hide-mobile {
    display: none;
  }

  .job-attr {
    font-size: 10px;
  }

  .job-arrow {
    width: 38px;
    height: 38px;
  }

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

  .pstep {
    border-right: none;
    border-bottom: 1px dashed var(--line-2);
    padding: var(--s-5) 0;
  }

  .pstep:last-child {
    border-bottom: none;
  }

  .cta-row {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .cta-row .btn {
    justify-content: center;
  }

  /* Contact form */
  .contact-form {
    grid-template-columns: 1fr;
  }

  .contact-form .full {
    grid-column: span 1;
  }

  .contact-direct {
    flex-direction: column;
    gap: var(--s-5);
  }

  /* Hero CTA */
  .btn {
    padding: 14px 22px;
    font-size: 13px;
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .hero-cta .btn {
    justify-content: center;
  }

  /* Footer */
  .footer-inner {
    grid-template-columns: 1fr;
    gap: var(--s-5);
  }

  .foot-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ================================================================
   ACCESSIBILITY — Reduced Motion
   ================================================================ */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  .orbits svg {
    animation: none !important;
  }
}

/* ================================================================
   WHITE PAPERS (white-papers.html, overview.html, whitepaper.html)
   ================================================================ */
.papers-index {
  padding: 200px 0 var(--s-10);
  border-top: 1px solid var(--line);
}

.papers-head {
  max-width: 820px;
  margin: 0 auto var(--s-9);
  text-align: center;
}

.papers-head .eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: var(--s-4);
}

.papers-head h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 300;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin-bottom: var(--s-5);
}

.papers-head h1 em {
  color: var(--teal);
  font-style: italic;
}

.papers-head p {
  font-size: 17px;
  color: var(--ink-1);
  line-height: 1.6;
  max-width: 640px;
  margin: 0 auto;
}

.papers-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-6);
}

.paper-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--s-7);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: var(--s-5);
  background: linear-gradient(180deg, rgba(10, 16, 22, 0.6) 0%, rgba(5, 8, 12, 0.6) 100%);
  transition: all 0.4s var(--ease);
}

.paper-card:hover {
  border-color: rgba(94, 234, 212, 0.35);
  background: linear-gradient(180deg, rgba(10, 30, 36, 0.55) 0%, rgba(5, 8, 12, 0.6) 100%);
  transform: translateY(-2px);
}

.paper-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.paper-card-label {
  color: var(--teal);
}

.paper-card-art {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  position: relative;
}

.paper-card-art svg {
  display: block;
  width: 100%;
  height: 100%;
}

.paper-card h2 {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.12;
}

.paper-card h2 em {
  font-style: italic;
  color: var(--teal);
  font-weight: 300;
}

.paper-card-sub {
  font-size: 15px;
  color: var(--ink-1);
  line-height: 1.6;
}

.paper-card-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-4);
  padding-top: var(--s-5);
  border-top: 1px solid var(--line);
}

.paper-card-stats .pc-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.paper-card-stats .pc-stat-value {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 400;
  color: var(--ink-0);
  letter-spacing: -0.01em;
}

.paper-card-stats .pc-stat-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.paper-card-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  margin-top: auto;
}

.paper-card:hover .paper-card-cta {
  gap: 12px;
}

/* ----- PAPER READER (overview.html, whitepaper.html) ----- */
.paper-hero {
  padding: 200px 0 var(--s-7);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.paper-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 300px at 85% 30%, rgba(94, 234, 212, 0.10), transparent 70%),
    radial-gradient(500px 300px at 15% 80%, rgba(124, 111, 240, 0.06), transparent 70%);
  pointer-events: none;
}

.paper-hero-inner {
  max-width: 860px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  padding: 0 var(--s-7);
}

.paper-breadcrumb {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: var(--s-5);
}

.paper-breadcrumb a {
  color: var(--ink-2);
  text-decoration: none;
  transition: color 0.3s var(--ease);
}

.paper-breadcrumb a:hover {
  color: var(--teal);
}

.paper-breadcrumb .sep {
  margin: 0 10px;
  color: var(--ink-3);
}

.paper-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal);
  padding: 6px 12px;
  border: 1px solid rgba(94, 234, 212, 0.25);
  border-radius: 3px;
  margin-bottom: var(--s-5);
}

.paper-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5.2vw, 64px);
  font-weight: 300;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin-bottom: var(--s-5);
}

.paper-hero h1 em {
  color: var(--teal);
  font-style: italic;
  font-weight: 300;
}

.paper-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-6);
  padding: var(--s-5) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: var(--s-6) 0 var(--s-6);
}

.paper-meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.paper-meta-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.paper-meta-value {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink-0);
}

.paper-actions {
  display: flex;
  gap: var(--s-4);
  flex-wrap: wrap;
  margin-top: var(--s-5);
}

.paper-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-0);
  text-decoration: none;
  transition: all 0.3s var(--ease);
}

.paper-btn:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.paper-btn.primary {
  background: var(--teal);
  border-color: var(--teal);
  color: #041018;
}

.paper-btn.primary:hover {
  background: #76f3dc;
  border-color: #76f3dc;
  color: #041018;
}

.paper-hero-art {
  max-width: 1040px;
  margin: var(--s-7) auto 0;
  padding: 0 var(--s-7);
  position: relative;
  z-index: 1;
}

.paper-hero-art-inner {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-1);
  aspect-ratio: 16 / 7;
  position: relative;
}

.paper-hero-art-inner svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* Callout stats bar under hero */
.paper-stat-bar {
  max-width: 1040px;
  margin: 0 auto;
  padding: var(--s-6) var(--s-7);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-5);
  border-bottom: 1px solid var(--line);
}

.paper-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.paper-stat-value {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 300;
  color: var(--ink-0);
  letter-spacing: -0.02em;
}

.paper-stat-value em {
  font-style: italic;
  color: var(--teal);
}

.paper-stat-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-2);
}

/* Article body */
.paper-body {
  max-width: 780px;
  margin: 0 auto;
  padding: var(--s-9) var(--s-7) var(--s-10);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink-1);
}

.paper-body > section {
  margin-bottom: var(--s-8);
}

.paper-body .section-num {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: var(--s-3);
}

.paper-body h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 300;
  color: var(--ink-0);
  letter-spacing: -0.02em;
  margin-bottom: var(--s-5);
  line-height: 1.15;
}

.paper-body h2 em {
  color: var(--teal);
  font-style: italic;
}

.paper-body h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  color: var(--ink-0);
  letter-spacing: -0.015em;
  margin: var(--s-6) 0 var(--s-4);
}

.paper-body h4 {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-0);
  letter-spacing: 0.02em;
  margin-bottom: var(--s-2);
}

.paper-body p {
  margin-bottom: var(--s-4);
  color: var(--ink-1);
}

.paper-body p strong {
  color: var(--ink-0);
  font-weight: 500;
}

.paper-body ul {
  list-style: none;
  padding: 0;
  margin: var(--s-4) 0;
}

.paper-body ul li {
  position: relative;
  padding-left: var(--s-5);
  margin-bottom: var(--s-3);
  color: var(--ink-1);
}

.paper-body ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 14px;
  height: 1px;
  background: var(--teal);
}

/* Pull-quote */
.paper-quote {
  border-left: 2px solid var(--teal);
  padding: var(--s-4) var(--s-5);
  margin: var(--s-6) 0;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 300;
  font-style: italic;
  color: var(--ink-0);
  letter-spacing: -0.01em;
  line-height: 1.35;
  background: rgba(94, 234, 212, 0.04);
}

/* Tables */
.paper-table {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin: var(--s-5) 0;
}

.paper-table table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-body);
  font-size: 14px;
}

.paper-table th {
  text-align: left;
  padding: var(--s-4) var(--s-5);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-2);
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--line);
}

.paper-table td {
  padding: var(--s-4) var(--s-5);
  color: var(--ink-1);
  border-bottom: 1px solid var(--line);
}

.paper-table tr:last-child td {
  border-bottom: none;
}

.paper-table tr.total td {
  color: var(--ink-0);
  font-weight: 500;
  background: rgba(94, 234, 212, 0.03);
}

/* Callout/box */
.paper-callout {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--s-5) var(--s-6);
  margin: var(--s-5) 0;
  background: rgba(255, 255, 255, 0.02);
}

.paper-callout-title {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: var(--s-3);
}

/* Stat tiles (in body) */
.paper-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-4);
  margin: var(--s-5) 0;
}

.paper-tile {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--s-5);
  background: rgba(255, 255, 255, 0.015);
}

.paper-tile-value {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 300;
  color: var(--ink-0);
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.paper-tile-value em {
  color: var(--teal);
  font-style: italic;
}

.paper-tile-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: var(--s-2);
}

.paper-tile-desc {
  font-size: 13px;
  color: var(--ink-1);
  line-height: 1.5;
}

/* Two-column grid */
.paper-twocol {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-5);
  margin: var(--s-5) 0;
}

.paper-twocol .paper-callout {
  margin: 0;
}

/* Figure with extracted image */
.paper-figure {
  margin: var(--s-5) 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-1);
}

.paper-figure img {
  display: block;
  width: 100%;
  height: auto;
}

.paper-figure figcaption {
  padding: var(--s-3) var(--s-5);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.015);
}

/* References */
.paper-refs {
  border-top: 1px solid var(--line);
  padding-top: var(--s-6);
}

.paper-refs ol {
  list-style: none;
  padding: 0;
  counter-reset: ref;
  font-size: 13px;
  color: var(--ink-1);
  column-count: 2;
  column-gap: var(--s-7);
  line-height: 1.55;
}

.paper-refs ol li {
  counter-increment: ref;
  padding-left: 28px;
  position: relative;
  margin-bottom: var(--s-3);
  break-inside: avoid;
}

.paper-refs ol li::before {
  content: '[' counter(ref) ']';
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--teal);
}

/* Coming Soon page */
.coming-soon {
  min-height: calc(100vh - 120px);
  display: flex;
  align-items: center;
  padding: 220px 0 var(--s-9);
  position: relative;
  overflow: hidden;
}

.coming-soon::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 400px at 70% 40%, rgba(245, 185, 113, 0.10), transparent 70%),
    radial-gradient(500px 300px at 30% 70%, rgba(94, 234, 212, 0.08), transparent 70%);
  pointer-events: none;
}

.coming-soon-inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 var(--s-7);
  text-align: center;
  position: relative;
  z-index: 1;
}

.coming-soon-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber);
  padding: 8px 16px;
  border: 1px solid rgba(245, 185, 113, 0.3);
  border-radius: 3px;
  margin-bottom: var(--s-6);
}

.coming-soon h1 {
  font-family: var(--font-display);
  font-size: clamp(48px, 7vw, 96px);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: var(--s-5);
}

.coming-soon h1 em {
  font-style: italic;
  color: var(--amber);
}

.coming-soon p {
  font-size: 18px;
  color: var(--ink-1);
  max-width: 620px;
  margin: 0 auto var(--s-7);
  line-height: 1.6;
}

.coming-soon-visual {
  margin: var(--s-8) auto;
  max-width: 520px;
}

.coming-soon-actions {
  display: inline-flex;
  gap: var(--s-4);
  flex-wrap: wrap;
  justify-content: center;
}

.coming-soon-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.3s var(--ease);
}

.coming-soon-btn.primary {
  background: var(--amber);
  color: #1c1406;
  border: 1px solid var(--amber);
}

.coming-soon-btn.primary:hover {
  background: #fdd09a;
  border-color: #fdd09a;
  transform: translateY(-1px);
}

.coming-soon-btn.ghost {
  color: var(--ink-0);
  border: 1px solid var(--line-2);
}

.coming-soon-btn.ghost:hover {
  border-color: var(--teal);
  color: var(--teal);
}

/* Responsive */
@media (max-width: 900px) {
  .papers-grid { grid-template-columns: 1fr; }
  .paper-stat-bar { grid-template-columns: repeat(2, 1fr); }
  .paper-tiles { grid-template-columns: 1fr; }
  .paper-twocol { grid-template-columns: 1fr; }
  .paper-refs ol { column-count: 1; }
  .paper-card-stats { grid-template-columns: repeat(2, 1fr); }
}

/* ----- Embedded PDF viewer ----- */
.pdf-viewer-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--s-7) var(--s-5) var(--s-10);
}

/* CTA banner above the PDF viewer */
.pdf-cta-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
  padding: var(--s-4) var(--s-5);
  margin-bottom: var(--s-4);
  border: 1px solid rgba(94, 234, 212, 0.25);
  border-radius: var(--radius);
  background: linear-gradient(90deg, rgba(94, 234, 212, 0.06) 0%, rgba(94, 234, 212, 0.02) 100%);
  flex-wrap: wrap;
}

.pdf-cta-banner-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pdf-cta-banner-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal);
}

.pdf-cta-banner-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 400;
  color: var(--ink-0);
  letter-spacing: -0.01em;
}

.pdf-cta-banner-actions {
  display: flex;
  gap: var(--s-3);
  flex-wrap: wrap;
}

.pdf-viewer-frame {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-1);
  position: relative;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.6);
  min-height: 800px;
}

.pdf-viewer-frame iframe,
.pdf-viewer-frame object,
.pdf-viewer-frame embed {
  display: block;
  width: 100%;
  height: 95vh;
  min-height: 800px;
  border: 0;
  background: #1b1b1f;
}

.pdf-viewer-fallback {
  padding: var(--s-8) var(--s-7);
  text-align: center;
  color: var(--ink-1);
  font-size: 15px;
  line-height: 1.6;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--s-4);
}

.pdf-viewer-fallback a {
  color: var(--teal);
  text-decoration: none;
}

.pdf-viewer-caption {
  margin-top: var(--s-4);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-2);
  text-align: center;
}

@media (max-width: 720px) {
  .pdf-cta-banner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ================================================================
   SUPPORTED-BY logo wall (5 items): 3 on top row, 2 on bottom row
   Both rows fill the full container width via a 6-column track grid.
   ================================================================ */
.logo-wall-3col {
  grid-template-columns: repeat(6, 1fr);
}

/* Default: top-row items (3) each span 2 of 6 columns -> 3 equal cards */
.logo-wall-3col .support-logo {
  grid-column: span 2;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* Reset any inherited 4-col rules */
.logo-wall-3col .support-logo:nth-child(4n) {
  border-right: 1px solid var(--line);
}
.logo-wall-3col .support-logo:nth-last-child(-n+4) {
  border-bottom: 1px solid var(--line);
}

/* Last item in top row: no right border */
.logo-wall-3col .support-logo:nth-child(3) {
  border-right: none;
}

/* Bottom-row items (4th & 5th): each spans 3 of 6 columns -> 2 equal cards */
.logo-wall-3col .support-logo:nth-child(4),
.logo-wall-3col .support-logo:nth-child(5) {
  grid-column: span 3;
  border-bottom: none;
}

/* Last item overall: no right border */
.logo-wall-3col .support-logo:last-child {
  border-right: none;
}

/* Tablet: 2 columns, 5 items -> 2 / 2 / 1 */
@media (max-width: 900px) {
  .logo-wall-3col {
    grid-template-columns: repeat(2, 1fr);
  }
  .logo-wall-3col .support-logo {
    grid-column: auto;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }
  .logo-wall-3col .support-logo:nth-child(3) {
    border-right: 1px solid var(--line);
  }
  .logo-wall-3col .support-logo:nth-child(4),
  .logo-wall-3col .support-logo:nth-child(5) {
    grid-column: auto;
    border-bottom: 1px solid var(--line);
  }
  .logo-wall-3col .support-logo:nth-child(2n) {
    border-right: none;
  }
  /* Last (5th) sits alone -> remove its bottom border */
  .logo-wall-3col .support-logo:last-child {
    border-right: none;
    border-bottom: none;
  }
}

/* Phone: 1 column, stacked */
@media (max-width: 560px) {
  .logo-wall-3col {
    grid-template-columns: 1fr;
  }
  .logo-wall-3col .support-logo {
    grid-column: auto;
    border-right: none;
    border-bottom: 1px solid var(--line);
  }
  .logo-wall-3col .support-logo:nth-child(4),
  .logo-wall-3col .support-logo:nth-child(5) {
    grid-column: auto;
  }
  .logo-wall-3col .support-logo:nth-child(2n) {
    border-right: none;
  }
  .logo-wall-3col .support-logo:last-child {
    border-bottom: none;
  }
}
