:root {
  --bg-black: #F7F5F1;
  --bg-ink: #F0EDE7;
  --bg-surface: #ECEAE4;
  --bg-ivory: #F7F5F1;
  --bg-paper: #EDE9E1;
  --text-ivory: #1A1814;
  --text-dark: #1A1814;
  --text-muted: #6B6560;
  --text-soft: #9B9389;
  --accent: #B8944A;
  --border-dark: rgba(26, 24, 20, 0.08);
  --border-light: rgba(26, 24, 20, 0.05);
  --shadow: 0 8px 32px rgba(26, 24, 20, 0.08), 0 2px 8px rgba(26, 24, 20, 0.05);
  --display: "Plus Jakarta Sans", "Helvetica Neue", Arial, sans-serif;
  --body: "DM Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --max: 1200px;
  --header-h: 76px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg-black);
  color: var(--text-dark);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: 0.01em;
}

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

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

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  background: transparent;
  backdrop-filter: blur(0px);
  transition: background 300ms ease, border-color 300ms ease, backdrop-filter 300ms ease;
}

.site-header.is-scrolled,
.site-header.solid,
.site-header.over-light {
  background: rgba(247, 245, 241, 0.94);
  border-color: rgba(26, 24, 20, 0.08);
  backdrop-filter: blur(16px);
}

.site-header.is-scrolled .nav-links,
.site-header.solid .nav-links,
.site-header.over-light .nav-links,
.site-header.is-scrolled .nav-utility,
.site-header.solid .nav-utility,
.site-header.over-light .nav-utility {
  color: #1A1814;
}

.site-header.is-scrolled .brand img,
.site-header.solid .brand img,
.site-header.over-light .brand img {
  filter: brightness(0);
}

.nav {
  width: min(var(--max), calc(100% - 40px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  width: 142px;
  flex: 0 0 auto;
}

.brand img {
  width: 100%;
  height: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  color: #F7F5F1;
  font-size: 14px;
}

.nav-item {
  position: relative;
  padding: 27px 0;
}

.nav-item > a,
.nav-item > button {
  color: inherit;
  background: transparent;
  border: 0;
  padding: 6px 12px;
  border-radius: 100px;
  cursor: pointer;
  transition: background 160ms ease;
}

.nav-utility a:hover {
  color: #1A1814;
}

.nav-item:hover > a,
.nav-item:focus-within > a,
.nav-item > a:hover,
.nav-item > button:hover {
  background: rgba(247, 245, 241, 0.14);
}

.site-header.solid .nav-item:hover > a,
.site-header.solid .nav-item > a:hover,
.site-header.is-scrolled .nav-item:hover > a,
.site-header.is-scrolled .nav-item > a:hover,
.site-header.over-light .nav-item:hover > a,
.site-header.over-light .nav-item > a:hover {
  background: rgba(26, 24, 20, 0.07);
}

.dropdown {
  position: absolute;
  top: calc(100% - 10px);
  left: 50%;
  width: 320px;
  padding: 10px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 10px);
  border: 1px solid rgba(247, 245, 241, 0.1);
  border-radius: 16px;
  background: rgba(26, 24, 20, 0.86);
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.3);
  transition: opacity 180ms ease, transform 180ms ease;
}

.nav-item:hover .dropdown,
.nav-item:focus-within .dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.dropdown-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}

.dropdown a {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  color: rgba(247, 245, 241, 0.6);
  font-size: 14px;
  transition: background 140ms ease, color 140ms ease;
}

.dropdown a:hover {
  background: rgba(247, 245, 241, 0.08);
  color: rgba(247, 245, 241, 0.95);
}

.dropdown a strong {
  display: block;
  margin-bottom: 2px;
  color: rgba(247, 245, 241, 0.9);
  font-weight: 500;
}

.dropdown a:hover strong {
  color: #F7F5F1;
}

.dropdown-note {
  margin-top: 8px;
  padding: 10px 14px;
  border-top: 1px solid rgba(247, 245, 241, 0.08);
  color: rgba(247, 245, 241, 0.45);
  font-size: 13px;
  line-height: 1.5;
}

.nav-utility {
  display: flex;
  align-items: center;
  gap: 18px;
  color: #F7F5F1;
  font-size: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 18px;
  border: 1px solid #1A1814;
  border-radius: 999px;
  background: transparent;
  color: #1A1814;
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.04em;
  line-height: 1.2;
  transition: background 200ms ease, color 200ms ease, border-color 200ms ease;
}

.btn:hover {
  background: #1A1814;
  color: #F7F5F1;
}

/* Btn on dark sections and hero — flip to light */
.section.dark .btn,
.hero-content .btn,
.cta-band .btn {
  border-color: rgba(247, 245, 241, 0.65);
  color: #F7F5F1;
}

.section.dark .btn:hover,
.hero-content .btn:hover,
.cta-band .btn:hover {
  background: rgba(247, 245, 241, 0.12);
  border-color: rgba(247, 245, 241, 0.9);
  color: #F7F5F1;
}

/* Nav btn — light over dark hero, flips to dark when scrolled */
.nav-utility .btn {
  border-color: rgba(247, 245, 241, 0.65);
  color: #F7F5F1;
}

.nav-utility .btn:hover {
  background: rgba(247, 245, 241, 0.12);
  color: #F7F5F1;
}

.site-header.is-scrolled .nav-utility .btn,
.site-header.solid .nav-utility .btn,
.site-header.over-light .nav-utility .btn {
  border-color: #1A1814;
  color: #1A1814;
}

.site-header.is-scrolled .nav-utility .btn:hover,
.site-header.solid .nav-utility .btn:hover,
.site-header.over-light .nav-utility .btn:hover {
  background: #1A1814;
  color: #F7F5F1;
}

/* Legacy .btn.dark — keep for compatibility, resolves same as default */
.btn.dark {
  border-color: #1A1814;
  color: #1A1814;
}

.btn.dark:hover {
  background: #1A1814;
  color: #F7F5F1;
}

.text-link {
  display: inline-flex;
  color: var(--text-dark);
  font-weight: 400;
  letter-spacing: 0.04em;
}

.dark .text-link,
.hero-content .text-link {
  color: rgba(247, 245, 241, 0.75);
}

.dark .text-link:hover,
.hero-content .text-link:hover {
  color: #F7F5F1;
}

.text-link::before {
  content: "\2198";
  margin-right: 6px;
}

.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(245, 240, 232, 0.2);
  background: transparent;
  color: var(--text-ivory);
}

.mobile-toggle span {
  display: block;
  width: 18px;
  height: 1px;
  margin: 5px auto;
  background: currentColor;
}

.mobile-panel {
  display: none;
  position: fixed;
  inset: var(--header-h) 0 auto;
  z-index: 45;
  max-height: calc(100vh - var(--header-h));
  overflow: auto;
  padding: 24px;
  background: rgba(11, 11, 11, 0.98);
  border-bottom: 1px solid var(--border-dark);
}

.mobile-panel.is-open {
  display: block;
}

.mobile-group {
  padding: 16px 0;
  border-bottom: 1px solid var(--border-dark);
}

.mobile-group span {
  display: block;
  margin-bottom: 10px;
  color: var(--text-muted);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.mobile-group a {
  display: block;
  padding: 7px 0;
  color: var(--text-ivory);
}

.section {
  padding: 160px 0;
}

.section.tight {
  padding: 96px 0;
}

.section.dark {
  background: #1A1814;
  color: #F7F5F1;
}

.section.light {
  background: var(--bg-ivory);
  color: var(--text-dark);
}

.section.paper {
  background: var(--bg-paper);
  color: var(--text-dark);
}

.values-section h2 {
  margin-bottom: 56px;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(247, 245, 241, 0.12);
}

.value-item {
  padding: 40px 48px 40px 0;
  border-right: 1px solid rgba(247, 245, 241, 0.12);
}

.value-item:last-child {
  border-right: none;
  padding-right: 0;
  padding-left: 48px;
}

.value-item:not(:first-child):not(:last-child) {
  padding-left: 48px;
}

.value-item h3 {
  font-size: 15px;
  font-weight: 500;
  color: #F7F5F1;
  margin-bottom: 14px;
  letter-spacing: 0.01em;
}

.value-item p {
  font-size: 14px;
  line-height: 1.65;
  color: rgba(247, 245, 241, 0.55);
}

@media (max-width: 680px) {
  .values-grid {
    grid-template-columns: 1fr;
  }
  .value-item,
  .value-item:not(:first-child):not(:last-child),
  .value-item:last-child {
    padding: 32px 0;
    border-right: none;
    border-bottom: 1px solid rgba(247, 245, 241, 0.12);
  }
  .value-item:last-child {
    border-bottom: none;
  }
}

.container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.narrow {
  max-width: 760px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 20px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.18em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
.display {
  font-family: var(--display);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.01em;
}

h1 {
  max-width: 860px;
  margin-bottom: clamp(28px, 3vw, 48px);
  font-size: clamp(2.4rem, 4.5vw, 4.2rem);
}

h2 {
  max-width: 760px;
  margin-bottom: clamp(36px, 4vw, 60px);
  font-size: clamp(1.75rem, 2.8vw, 2.75rem);
}

h3 {
  margin-bottom: 18px;
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.2;
}

.lead {
  max-width: 680px;
  margin-bottom: clamp(44px, 5vw, 72px);
  color: var(--text-soft);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 300;
  line-height: 1.65;
}

.light .lead,
.paper .lead,
.light p,
.paper p {
  color: #3d3d3a;
}

.muted {
  color: var(--text-soft);
}

.light .muted,
.paper .muted {
  color: var(--text-muted);
}

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #1A1814;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after,
.media-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(0, 0, 0, 0.74) 0%, rgba(0, 0, 0, 0.42) 44%, rgba(0, 0, 0, 0.16) 68%, rgba(0, 0, 0, 0.5) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(var(--max), calc(100% - 40px));
  padding-top: var(--header-h);
  color: #F7F5F1;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.home-hero .hero-content {
  max-width: 760px;
  margin: 0 auto;
  padding-top: clamp(260px, 46vh, 460px);
  text-align: center;
}

.home-hero h1 {
  max-width: none;
  margin-right: auto;
  margin-left: auto;
  margin-bottom: 32px;
  font-size: clamp(2.4rem, 4.2vw, 3.8rem);
  white-space: nowrap;
}

.home-hero .hero-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  max-width: none;
  margin: 0 auto;
}

.home-hero .hero-bottom .lead {
  flex-shrink: 0;
  max-width: none;
  margin: 0;
  font-size: 0.9rem;
  color: var(--accent);
}

.home-hero .hero-actions {
  flex-shrink: 0;
  flex-direction: row;
  gap: 10px;
}


.btn-gold {
  background: rgba(184, 148, 74, 0.5);
  border-color: rgba(184, 148, 74, 0.5);
  color: #1A1814;
}

.btn-gold:hover {
  background: rgba(184, 148, 74, 0.75);
  border-color: rgba(184, 148, 74, 0.75);
  color: #1A1814;
}

.home-hero .text-link {
  font-size: 12px;
}

.scroll-note {
  position: absolute;
  left: max(20px, calc((100vw - var(--max)) / 2));
  bottom: 32px;
  z-index: 2;
  color: var(--text-soft);
  font-family: var(--mono);
  font-size: 12px;
}

.proof-strip {
  overflow: hidden;
  padding: 34px 0 30px;
  background: var(--bg-ivory);
}

.proof-inner {
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
}

.proof-track {
  display: flex;
  align-items: center;
  width: max-content;
  gap: clamp(42px, 5vw, 76px);
  padding: 0;
  animation: marquee 34s linear infinite;
}

.proof-logo {
  width: 112px;
  height: 28px;
  object-fit: contain;
  object-position: center;
  flex-shrink: 0;
  background: transparent;
  mix-blend-mode: normal;
  filter: grayscale(1) contrast(1.08) opacity(0.54);
  transition: filter 300ms ease, opacity 300ms ease;
}

.proof-logo:hover {
  filter: grayscale(0.1) contrast(1.04) opacity(0.78);
}

.proof-name {
  flex-shrink: 0;
  white-space: nowrap;
  color: rgba(26, 24, 20, 0.42);
  line-height: 1;
  transition: color 300ms ease;
  cursor: default;
}

.proof-name:hover {
  color: rgba(26, 24, 20, 0.7);
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.82fr);
  gap: 64px;
  align-items: center;
}

.media-frame {
  position: relative;
  overflow: hidden;
  min-height: 460px;
  background: var(--bg-surface);
  border: 1px solid var(--border-dark);
}

.light .media-frame,
.paper .media-frame {
  border-color: var(--border-light);
}

.media-frame img,
.media-frame video {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.28));
  pointer-events: none;
}

.framework {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 48px;
  align-items: stretch;
}

.tab-list {
  display: grid;
  gap: 8px;
  align-content: start;
}

.tab-button {
  width: 100%;
  min-height: 54px;
  padding: 13px 16px;
  border: 1px solid var(--border-dark);
  background: transparent;
  color: var(--text-soft);
  font-weight: 300;
  text-align: left;
  cursor: pointer;
  transition: border-color 180ms ease, color 180ms ease, background 180ms ease;
}

.tab-button:hover,
.tab-button.is-active {
  border-color: rgba(26, 24, 20, 0.34);
  color: #1A1814;
  background: rgba(255, 255, 255, 0.58);
}

.tab-panel {
  display: none;
  min-height: 440px;
}

.tab-panel.is-active {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 28px;
  align-items: stretch;
}

.panel-copy {
  padding: 28px;
  border: 1px solid var(--border-dark);
  background: var(--bg-surface);
}

.panel-copy p {
  color: var(--text-soft);
}

.tech-visual {
  position: relative;
  overflow: hidden;
  min-height: 440px;
  border: 1px solid var(--border-dark);
  background:
    radial-gradient(circle at 65% 35%, rgba(201, 169, 110, 0.22), transparent 32%),
    linear-gradient(135deg, #111, #050505);
}

.tech-visual img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  opacity: 0.78;
  mix-blend-mode: screen;
}

.framework-stack-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 28% 16%, rgba(255, 255, 255, 0.72), transparent 56%),
    radial-gradient(ellipse at 82% 82%, rgba(201, 169, 110, 0.18), transparent 54%),
    var(--bg-ivory);
  color: var(--text-dark);
}

.framework-stack-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.48), transparent 38%),
    radial-gradient(circle at 84% 22%, rgba(11, 11, 11, 0.04), transparent 28%);
  pointer-events: none;
}

.framework-stack-heading {
  position: relative;
  max-width: 850px;
  margin-bottom: 36px;
}

.framework-stack-heading h2 {
  margin-top: 20px;
  max-width: 820px;
  color: rgba(28, 26, 20, 0.86);
}


.framework-stack {
  position: relative;
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.framework-stack-nav {
  display: grid;
  gap: 26px;
  padding-top: 10px;
}

.framework-stack-nav button {
  min-height: 0;
  padding: 0 0 0 20px;
  border: 0;
  border-left: 2px solid transparent;
  background: transparent;
  color: rgba(26, 24, 20, 0.38);
  font: inherit;
  font-size: clamp(1.05rem, 1.5vw, 1.32rem);
  font-weight: 300;
  text-align: left;
  cursor: pointer;
  transition: border-color 220ms ease, color 220ms ease, transform 220ms ease, font-weight 220ms ease;
}

.framework-stack-nav button:hover,
.framework-stack-nav button:focus-visible {
  border-left-color: rgba(26, 24, 20, 0.25);
  color: rgba(26, 24, 20, 0.65);
}

.framework-stack-nav button.is-active {
  border-left-color: #1A1814;
  color: #1A1814;
  font-weight: 500;
  transform: translateX(5px);
}

.framework-stack-stage {
  position: relative;
  min-height: 470px;
  padding-right: 54px;
}

.framework-card-stack {
  position: relative;
  min-height: 470px;
  perspective: 1200px;
}

.framework-layer-card {
  position: absolute;
  inset: 0;
  min-height: 380px;
  border-radius: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.92);
  border-left: 1px solid rgba(255, 255, 255, 0.75);
  border-right: 1px solid rgba(180, 174, 164, 0.55);
  border-bottom: 1px solid rgba(160, 154, 142, 0.6);
  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.72) 0%,
      rgba(255, 255, 255, 0.28) 30%,
      rgba(220, 216, 208, 0.18) 60%,
      rgba(200, 195, 185, 0.38) 100%
    );
  box-shadow:
    0 2px 0 rgba(255, 255, 255, 0.9),
    0 8px 28px rgba(140, 130, 110, 0.22),
    0 24px 60px rgba(100, 90, 70, 0.18),
    0 1px 0 rgba(255, 255, 255, 0.6) inset,
    inset 0 0 40px rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px) saturate(1.3);
  -webkit-backdrop-filter: blur(12px) saturate(1.3);
  overflow: hidden;
  transition: transform 520ms cubic-bezier(0.4, 0, 0.2, 1), opacity 360ms ease, filter 220ms ease, box-shadow 220ms ease;
  will-change: transform, opacity;
}

.framework-layer-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.5;
  pointer-events: none;
}

.framework-layer-card.is-active {
  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.88) 0%,
      rgba(255, 255, 255, 0.45) 28%,
      rgba(230, 225, 215, 0.22) 58%,
      rgba(210, 204, 192, 0.42) 100%
    );
  box-shadow:
    0 2px 0 rgba(255, 255, 255, 0.95),
    0 12px 40px rgba(120, 110, 90, 0.28),
    0 32px 80px rgba(80, 72, 55, 0.2),
    0 1px 0 rgba(255, 255, 255, 0.8) inset,
    inset 0 0 60px rgba(255, 255, 255, 0.18);
}

.framework-card-inner {
  position: relative;
  z-index: 1;
  min-height: 380px;
  padding: clamp(28px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.framework-card-label {
  margin-bottom: 14px;
  color: var(--text-muted);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.framework-layer-card h3 {
  max-width: 520px;
  margin-bottom: 18px;
  color: #1c1a14;
  font-size: clamp(1.5rem, 2.8vw, 2.6rem);
  line-height: 1.08;
}

.framework-layer-card p:not(.framework-card-label) {
  max-width: 500px;
  color: rgba(40, 34, 24, 0.66);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.72;
}

.framework-card-link {
  width: fit-content;
  margin-top: 28px;
  color: #1A1814;
  font-weight: 500;
  transition: gap 180ms ease, color 180ms ease;
}

.framework-card-link:hover {
  color: #a8874d;
}

.framework-card-link::after {
  content: "→";
  margin-left: 10px;
}

.framework-card-pip {
  position: absolute;
  right: clamp(28px, 4vw, 48px);
  top: clamp(28px, 4vw, 48px);
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(26, 24, 20, 0.18);
  border-radius: 50%;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.72) inset;
  background: rgba(255, 255, 255, 0.42);
  color: rgba(26, 24, 20, 0.68);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.framework-card-engrave {
  position: absolute;
  right: clamp(28px, 4vw, 48px);
  bottom: 28px;
  color: rgba(60, 50, 35, 0.2);
  font-family: var(--display);
  font-size: 0.86rem;
  letter-spacing: 0.06em;
  pointer-events: none;
  transform: rotate(-2deg);
  white-space: nowrap;
}

.framework-stack-controls {
  position: absolute;
  right: 0;
  top: 50%;
  display: grid;
  gap: 10px;
  transform: translateY(-50%);
}

.framework-stack-controls button {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.36);
  color: #6b5e45;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: border-color 180ms ease, color 180ms ease, background 180ms ease;
}

.framework-stack-controls button:hover:not(:disabled),
.framework-stack-controls button:focus-visible:not(:disabled) {
  border-color: rgba(107, 94, 69, 0.38);
  background: rgba(255, 255, 255, 0.68);
  color: var(--text-dark);
}

.framework-stack-controls button:disabled {
  opacity: 0.28;
  cursor: default;
}

.layer-lines {
  position: absolute;
  inset: 18%;
  display: grid;
  gap: 10px;
}

.layer-lines span {
  display: block;
  border: 1px solid rgba(26, 24, 20, 0.12);
  background: rgba(245, 240, 232, 0.04);
  box-shadow: none;
  transform: skewX(-8deg);
}

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

.card,
.metric,
.trust-badge {
  border: 0;
  background: transparent;
}

.post-card,
.case-card {
  border: 1px solid var(--border-light);
  background: #fff;
}

.dark .card,
.dark .metric,
.dark .trust-badge,
.dark .post-card,
.dark .case-card {
  border-color: var(--border-dark);
  background: var(--bg-surface);
  color: var(--text-dark);
}

.card {
  overflow: hidden;
  transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.card:hover {
  box-shadow: none;
  transform: translateY(-2px);
}

.dark .card:hover {
  box-shadow: none;
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-4px);
}

.card-media {
  height: 210px;
  overflow: hidden;
  background: #111;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.card:hover .card-media img {
  transform: scale(1.04);
}

.card-body {
  padding: 24px;
}

.starting-point-grid {
  align-items: start;
  gap: clamp(28px, 4vw, 44px);
}

.starting-point-card {
  overflow: visible;
}

.starting-point-card .card-media {
  height: auto;
  aspect-ratio: 1 / 1.28;
  margin-bottom: 24px;
  background: #E9E8E4;
}

.starting-point-card .card-media img {
  object-fit: cover;
  object-position: center;
  transform: none;
}

.starting-point-card:hover .card-media img {
  transform: none;
}

.starting-point-card .card-body {
  padding: 0;
}

.starting-point-card .eyebrow {
  margin-bottom: 14px;
  color: rgba(26, 24, 20, 0.52);
}

.starting-point-card h3 {
  max-width: 360px;
  margin-bottom: 18px;
  font-family: var(--body);
  font-size: clamp(1.35rem, 1.9vw, 1.9rem);
  font-weight: 400;
  line-height: 1.18;
}

.starting-point-card p {
  max-width: 360px;
  color: var(--text-muted);
  line-height: 1.6;
}

.solution-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 1fr);
  gap: 28px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x proximity;
  align-items: start;
}

.solution-card {
  min-height: 330px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  border: 1px solid rgba(247, 245, 241, 0.16);
  background:
    linear-gradient(
      180deg,
      rgba(58, 45, 32, 0.12) 0%,
      rgba(34, 27, 22, 0.66) 54%,
      rgba(18, 15, 12, 0.96) 100%
    ),
    var(--image);
  background-size: cover;
  background-position: center;
  box-shadow: 0 14px 34px rgba(26, 24, 20, 0.18);
  scroll-snap-align: start;
  cursor: pointer;
  transition: min-height 420ms ease, border-color 220ms ease, background 420ms ease, box-shadow 220ms ease;
}

.solution-card h3 {
  color: #F7F5F1;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.48);
}

.solution-card-body > p {
  color: rgba(245, 240, 232, 0.72);
}

.solution-card.is-active {
  min-height: 500px;
  border-color: rgba(255, 255, 255, 0.72);
  background:
    linear-gradient(
      to top,
      rgba(18, 15, 12, 0.96) 28%,
      rgba(47, 36, 26, 0.66) 58%,
      rgba(110, 86, 60, 0.12) 100%
    ),
    var(--image);
  background-size: cover;
  background-position: center;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.24),
    0 0 34px rgba(255, 255, 255, 0.28),
    0 26px 70px rgba(26, 24, 20, 0.34);
}

.solution-card-detail {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 420ms ease, opacity 280ms ease 100ms;
}

.solution-card.is-active .solution-card-detail {
  max-height: 200px;
  opacity: 1;
}

.solution-card-detail p {
  margin-top: 10px;
  color: rgba(245, 240, 232, 0.65);
  font-size: 0.88rem;
  line-height: 1.6;
}

.solution-card-link {
  display: inline-block;
  margin-top: 14px;
  color: #F7F5F1;
  font-size: 14px;
  font-weight: 500;
}

.solution-card-link::after {
  content: " →";
}

.solution-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 32px;
}

.solution-dot {
  width: 28px;
  height: 3px;
  padding: 0;
  border: 0;
  border-radius: 2px;
  background: rgba(26, 24, 20, 0.18);
  cursor: pointer;
  transition: background 250ms ease, width 250ms ease;
}

.solution-dot.is-active {
  background: #1A1814;
  width: 40px;
}

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

.metric {
  padding: 34px;
}

.metric-value {
  display: block;
  margin-bottom: 10px;
  color: #1A1814;
  font-family: var(--display);
  font-size: clamp(3rem, 7vw, 5.8rem);
  line-height: 0.95;
}

.quote-block {
  margin-top: 54px;
  padding-top: 34px;
  border-top: 1px solid var(--border-light);
  font-family: var(--display);
  font-size: clamp(1.8rem, 4vw, 3.5rem);
  line-height: 1.16;
}

.dark .quote-block {
  border-color: var(--border-dark);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.trust-badge {
  min-height: 180px;
  padding: 22px;
}

.badge-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  border: 1px solid var(--border-dark);
  color: var(--text-muted);
  font-family: var(--mono);
  font-size: 12px;
}

.cta-band {
  background: var(--bg-ivory);
  color: var(--text-dark);
  text-align: center;
}

.section.dark.cta-band {
  background: var(--bg-ivory);
  color: var(--text-dark);
}

.cta-band h2,
.cta-band .lead {
  margin-left: auto;
  margin-right: auto;
  color: inherit;
}

.cta-band .hero-actions {
  justify-content: center;
}

.section.light.cta-band .btn,
.section.paper.cta-band .btn,
.section.dark.cta-band .btn {
  border-color: #1A1814;
  color: #1A1814;
}

.section.light.cta-band .btn:hover,
.section.paper.cta-band .btn:hover,
.section.dark.cta-band .btn:hover {
  background: #1A1814;
  color: #F7F5F1;
}

.section.dark.cta-band .text-link {
  color: rgba(26, 24, 20, 0.68);
}

.section.dark.cta-band .text-link span {
  text-decoration: underline;
  text-underline-offset: 0.28em;
}

.section.dark.cta-band .text-link:hover {
  color: #1A1814;
}

.media-hero {
  position: relative;
  min-height: 68vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: calc(var(--header-h) + 120px) 0 90px;
  background: #1A1814;
}

.media-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-hero .container {
  position: relative;
  z-index: 2;
  color: #F7F5F1;
}

.feature-list {
  display: grid;
  gap: 18px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  padding-top: 18px;
  border-top: 1px solid var(--border-light);
  color: inherit;
}

.dark .feature-list li {
  border-top-color: var(--border-dark);
}

.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.post-card,
.case-card {
  padding: 28px;
  transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.post-card:hover,
.case-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.dark .post-card:hover,
.dark .case-card:hover {
  box-shadow: none;
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-4px);
}

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

.field {
  display: grid;
  gap: 8px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  color: var(--text-soft);
  font-size: 13px;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 48px;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid rgba(26, 24, 20, 0.15);
  border-radius: 0;
  background: transparent;
  color: var(--text-dark);
  outline: none;
}

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

.field input:focus,
.field textarea:focus,
.field select:focus,
.login-form input:focus,
.contact-fields input:focus {
  border-bottom-color: rgba(26, 24, 20, 0.42);
  outline: none;
}

.site-footer {
  padding: 88px 0 40px;
  background: #FFFFFF;
  color: var(--text-muted);
  border-top: 1px solid rgba(26, 24, 20, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(4, 1fr);
  gap: 32px;
}

.footer-brand img {
  width: 148px;
  margin-bottom: 18px;
  filter: brightness(0);
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.65;
}

.footer-col h4 {
  margin: 0 0 14px;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.footer-col a {
  display: block;
  padding: 5px 0;
  color: var(--text-muted);
  font-size: 14px;
  transition: color 200ms ease;
}

.footer-col a:hover {
  color: var(--text-dark);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 58px;
  padding-top: 24px;
  border-top: 1px solid rgba(26, 24, 20, 0.08);
  color: var(--text-soft);
  font-size: 13px;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 400ms ease-out, transform 400ms ease-out;
}

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

@media (max-width: 980px) {
  .nav-links,
  .nav-utility {
    display: none;
  }

  .mobile-toggle {
    display: block;
  }

  .section {
    padding: 88px 0;
  }

  .split,
  .framework,
  .framework-stack,
  .tab-panel.is-active,
  .two-col,
  .featured-post-grid,
  .blog-card-grid,
  .article-shell {
    grid-template-columns: 1fr;
  }

  .card-grid,
  .metrics-grid,
  .trust-grid {
    grid-template-columns: 1fr;
  }

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

  .blog-index-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .proof-inner {
    width: 100%;
  }

  .proof-track {
    flex-wrap: nowrap;
    gap: 40px;
  }

  .article-meta-panel {
    position: static;
  }

  .framework {
    gap: 24px;
  }

  .framework-stack-stage {
    padding-right: 0;
  }

  .framework-stack-controls {
    position: static;
    display: flex;
    justify-content: flex-end;
    margin-top: 16px;
    transform: none;
  }
}

@media (max-width: 640px) {
  .nav {
    width: calc(100% - 28px);
  }

  .brand {
    width: 124px;
  }

  h1 {
    font-size: clamp(3rem, 16vw, 4.3rem);
  }

  .hero {
    min-height: 92vh;
  }

  .home-hero .hero-content {
    padding-top: clamp(210px, 42vh, 340px);
  }

  .hero-actions,
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .media-frame,
  .tech-visual,
  .tab-panel {
    min-height: 320px;
  }

  .framework-stack-nav {
    grid-template-columns: 1fr 1fr;
  }

  .framework-stack-nav button {
    min-height: 42px;
    padding: 0 0 0 14px;
    font-size: 1rem;
  }

  .framework-stack-nav button.is-active {
    transform: none;
  }

  .framework-stack-stage,
  .framework-card-stack {
    min-height: 430px;
  }

  .framework-layer-card,
  .framework-card-inner {
    min-height: 350px;
  }

  .framework-card-pip {
    width: 36px;
    height: 36px;
  }

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

  .featured-post,
  .blog-card,
  .article-shell {
    padding: 24px;
  }

  .article-body h2 {
    font-size: clamp(2.2rem, 12vw, 3.45rem);
  }
}

.assessment-page {
  background: var(--bg-black);
  color: var(--text-ivory);
}

.assessment-hero {
  position: relative;
  min-height: 58vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: calc(var(--header-h) + 90px) 0 72px;
  background: var(--bg-black);
}

.assessment-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.62;
}

.assessment-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.78));
}

.assessment-hero-inner {
  position: relative;
  z-index: 2;
  color: #F7F5F1;
}

.assessment-section {
  padding: 88px 0 120px;
  background: var(--bg-black);
}

.assessment-shell {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(280px, 0.7fr) minmax(0, 1fr);
  gap: 28px;
  align-items: stretch;
}

.assessment-side,
.assessment-card {
  border: 1px solid var(--border-light);
  background: #fff;
}

.assessment-side {
  min-height: 600px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
}

.assessment-logo {
  width: 142px;
}

.assessment-logo img {
  width: 100%;
  filter: brightness(0);
}

.assessment-side h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.assessment-side p {
  color: var(--text-soft);
}

.assessment-progress {
  display: grid;
  gap: 12px;
}

.assessment-progress-top {
  display: flex;
  justify-content: space-between;
  color: var(--text-soft);
  font-family: var(--mono);
  font-size: 12px;
}

.progress-track {
  width: 100%;
  height: 2px;
  background: var(--border-dark);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: #1A1814;
  transition: width 400ms ease;
}

.assessment-card {
  min-height: 600px;
  padding: clamp(30px, 5vw, 58px);
  display: grid;
  align-items: center;
}

.step {
  display: none;
}

.step.active {
  display: block;
  animation: assessmentFade 320ms ease-out both;
}

@keyframes assessmentFade {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.intro-tag,
.step-eyebrow,
.results-label {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.intro-title,
.step-question {
  margin-bottom: 16px;
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: 0;
}

.intro-title span {
  color: inherit;
}

.intro-sub,
.step-sub {
  max-width: 660px;
  margin-bottom: 32px;
  color: var(--text-soft);
  font-size: 1.05rem;
  line-height: 1.7;
}

.intro-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 34px;
}

.intro-meta-item {
  padding-top: 16px;
  border-top: 1px solid var(--border-dark);
}

.intro-meta-num {
  display: block;
  color: var(--text-muted);
  font-family: var(--display);
  font-size: 2.4rem;
  line-height: 1;
}

.intro-meta-label {
  display: block;
  margin-top: 8px;
  color: var(--text-soft);
  font-size: 13px;
}

.options-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 34px;
}

.options-grid.single {
  grid-template-columns: 1fr;
}

.opt {
  position: relative;
  min-height: 112px;
  padding: 20px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  background: #fff;
  color: var(--text-dark);
  text-align: left;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.opt::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  background: #1A1814;
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 180ms ease;
}

.opt:hover,
.opt.selected {
  border-color: #1A1814;
  background: rgba(26, 24, 20, 0.04);
  transform: translateY(-2px);
}

.opt.selected::before {
  transform: scaleY(1);
}

.opt-label {
  display: block;
  margin-bottom: 6px;
  color: var(--text-dark);
  font-weight: 500;
  line-height: 1.35;
}

.opt-sub {
  display: block;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.5;
}

.assessment-nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.assessment-back,
.restart-btn,
.skip-link {
  border: 0;
  background: transparent;
  color: var(--text-soft);
  cursor: pointer;
}

.assessment-back:hover,
.restart-btn:hover,
.skip-link:hover {
  color: #1A1814;
}

.assessment-primary,
.assessment-next,
.calendly-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 24px;
  border: 1px solid #1A1814;
  border-radius: 999px;
  background: transparent;
  color: #1A1814;
  cursor: pointer;
  font-weight: 500;
  transition: background 180ms ease, color 180ms ease, opacity 180ms ease;
}

.assessment-primary:hover,
.assessment-next.ready:hover,
.assessment-next.always-ready:hover,
.calendly-btn:hover {
  background: #1A1814;
  color: #F5F3EF;
}

.assessment-next {
  opacity: 0.28;
  pointer-events: none;
}

.assessment-next.ready,
.assessment-next.always-ready {
  opacity: 1;
  pointer-events: auto;
}

.contact-fields {
  display: grid;
  gap: 12px;
  margin-bottom: 32px;
}

.contact-fields input {
  width: 100%;
  min-height: 52px;
  padding: 13px 0;
  border: 0;
  border-bottom: 1px solid rgba(26, 24, 20, 0.15);
  border-radius: 0;
  background: transparent;
  color: var(--text-dark);
  outline: none;
}

.contact-fields input:focus {
  border-bottom-color: rgba(26, 24, 20, 0.42);
}

.contact-fields input::placeholder {
  color: var(--text-soft);
}

.skip-row {
  margin-top: 18px;
  text-align: center;
}

.results-intro {
  margin-bottom: 28px;
  padding: 22px 24px;
  border: 1px solid var(--border-dark);
  background: rgba(26, 24, 20, 0.04);
  color: var(--text-soft);
  line-height: 1.7;
}

.rec-card {
  display: flex;
  gap: 18px;
  padding: 20px 0;
  border-top: 1px solid var(--border-dark);
}

.rec-number {
  min-width: 44px;
  color: var(--text-soft);
  font-family: var(--display);
  font-size: 2rem;
  line-height: 1;
}

.rec-name {
  margin-bottom: 6px;
  color: var(--text-ivory);
  font-weight: 500;
}

.rec-why {
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.6;
}

.rec-tag {
  display: inline-block;
  margin-top: 10px;
  padding: 3px 9px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-soft);
  font-size: 11px;
}

.divider {
  height: 1px;
  margin: 28px 0;
  background: var(--border-dark);
}

.calendly-btn {
  width: 100%;
}

.restart-btn {
  width: 100%;
  margin-top: 16px;
}

.loading-state {
  padding: 70px 0;
  text-align: center;
}

.loading-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin: 0 4px;
  border-radius: 50%;
  background: #1A1814;
  animation: loadingDot 1.2s ease-in-out infinite;
}

.loading-dot:nth-child(2) {
  animation-delay: 0.18s;
}

.loading-dot:nth-child(3) {
  animation-delay: 0.36s;
}

@keyframes loadingDot {
  0%,
  100% {
    opacity: 0.18;
    transform: scale(0.7);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}

.loading-text {
  margin-top: 18px;
  color: var(--text-soft);
}

.login-page {
  min-height: 100vh;
  overflow: hidden;
  background: #e9e7e2;
  color: var(--text-dark);
}

.login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(420px, 1fr) minmax(420px, 1fr);
  gap: 8px;
  padding: 10px;
  background: #e9e7e2;
}

.login-panel,
.login-visual {
  min-height: calc(100vh - 20px);
  overflow: hidden;
  border: 1px solid rgba(22, 21, 19, 0.08);
  background: #f7f6f2;
}

.login-panel {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: clamp(26px, 4vw, 44px);
}

.login-region {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: rgba(22, 21, 19, 0.62);
  font-weight: 500;
}

.login-region button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: transparent;
  color: rgba(22, 21, 19, 0.72);
  cursor: pointer;
}

.login-region button::after {
  content: "";
  width: 9px;
  height: 9px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  opacity: 0.55;
}

.login-form-wrap {
  width: min(100%, 520px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.login-logo {
  width: 240px;
  margin: 0 auto 72px;
  filter: invert(1);
}

.login-logo img {
  width: 100%;
}

.login-form {
  display: grid;
  gap: 20px;
}

.login-form .field {
  gap: 8px;
}

.login-form label {
  color: rgba(22, 21, 19, 0.82);
  font-weight: 500;
}

.login-form input {
  min-height: 50px;
  border: 0;
  border-bottom: 1px solid rgba(26, 24, 20, 0.15);
  border-radius: 0;
  background: transparent;
  color: var(--text-dark);
}

.login-form input::placeholder {
  color: rgba(22, 21, 19, 0.36);
}

.login-submit {
  min-height: 52px;
  border: 0;
  border-radius: 999px;
  background: #050505;
  color: #fff;
  cursor: pointer;
  font-weight: 500;
  transition: opacity 180ms ease, transform 180ms ease;
}

.login-submit:hover {
  opacity: 0.86;
  transform: translateY(-1px);
}

.login-policy {
  margin: 46px 0 0;
  color: rgba(22, 21, 19, 0.42);
  font-size: 15px;
  line-height: 1.55;
}

.login-policy a {
  color: rgba(22, 21, 19, 0.76);
  font-weight: 500;
}

.login-help {
  display: grid;
  justify-items: center;
  gap: 8px;
  color: rgba(22, 21, 19, 0.58);
  font-weight: 500;
  font-size: 13px;
}

.login-help span {
  color: #050505;
  font-size: 36px;
  line-height: 1;
}

.login-visual {
  position: relative;
  background: var(--bg-black);
}

.login-visual img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
}

@media (max-width: 900px) {
  .login-page {
    overflow: auto;
  }

  .login-shell {
    grid-template-columns: 1fr;
  }

  .login-panel {
    min-height: 100vh;
  }

  .login-visual {
    display: none;
  }
}

@media (max-width: 520px) {
  .login-shell {
    padding: 0;
  }

  .login-panel {
    min-height: 100vh;
    border: 0;
    padding: 24px;
  }

  .login-logo {
    width: 190px;
    margin-bottom: 52px;
  }
}

@media (max-width: 980px) {
  .assessment-shell {
    grid-template-columns: 1fr;
  }

  .assessment-side {
    min-height: auto;
  }
}

@media (max-width: 640px) {
  .assessment-hero {
    min-height: 72vh;
  }

  .assessment-section {
    padding: 44px 0 72px;
  }

  .assessment-shell {
    width: calc(100% - 28px);
  }

  .assessment-side,
  .assessment-card {
    padding: 24px;
  }

  .intro-meta,
  .options-grid {
    grid-template-columns: 1fr;
  }

  .assessment-nav-row {
    align-items: stretch;
    flex-direction: column;
  }

  .assessment-back,
  .assessment-next {
    width: 100%;
  }
}

/* ─── Global heading em ──────────────────────────────────────────────── */
h1 em,
h2 em {
  font-style: normal;
}

/* ─── Page intro (non-hero pages — accounts for fixed header) ───────────────── */
.page-intro {
  padding-top: calc(var(--header-h) + 80px);
  padding-bottom: 56px;
}

.page-intro .container {
  max-width: 980px;
}

.page-intro h1 {
  max-width: 880px;
  margin-bottom: 22px;
}

.page-intro .lead {
  max-width: 760px;
}

/* ─── Blog article archive ─────────────────────────────────────────────────── */
.blog-page {
  background: var(--bg-black);
  color: var(--text-ivory);
}

.blog-hero::after {
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.46), rgba(0, 0, 0, 0.78));
}

.blog-featured .section-heading {
  max-width: 860px;
  margin-bottom: 40px;
}

.featured-post-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 24px;
}

.featured-post,
.blog-card {
  display: flex;
  flex-direction: column;
  min-height: 260px;
  padding: 28px;
  border: 1px solid var(--border-light);
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-dark);
  transition: border-color 220ms ease, transform 220ms ease, background 220ms ease;
}

.featured-post:first-child {
  min-height: 340px;
  padding: clamp(30px, 4vw, 48px);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(235, 228, 216, 0.82)),
    radial-gradient(circle at 14% 10%, rgba(201, 169, 110, 0.22), transparent 30%);
}

.featured-post:hover,
.blog-card:hover {
  border-color: rgba(26, 24, 20, 0.25);
  transform: translateY(-4px);
}

.blog-card-meta {
  display: block;
  margin-bottom: 18px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #7c6a46;
}

.featured-post h3,
.blog-card h3 {
  margin: 0 0 18px;
  font-family: var(--display);
  font-size: clamp(1.55rem, 2.2vw, 2.45rem);
  line-height: 1.05;
  font-weight: 400;
}

.blog-card h3 {
  font-size: clamp(1.3rem, 1.8vw, 1.75rem);
}

.featured-post p,
.blog-card p {
  margin: 0;
  color: var(--text-muted);
}

.blog-card-link {
  margin-top: auto;
  padding-top: 28px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.blog-index-section {
  color: var(--text-dark);
}

.blog-index-header {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: end;
  margin-bottom: 32px;
}

.blog-index-header p {
  max-width: 520px;
  margin: 0;
  color: var(--text-muted);
}

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

.article-collection {
  padding-top: 96px;
}

.article-collection-heading {
  margin-bottom: 36px;
}

.blog-article {
  scroll-margin-top: calc(var(--header-h) + 28px);
}

.blog-article + .blog-article {
  margin-top: 28px;
}

.article-shell {
  display: grid;
  grid-template-columns: minmax(220px, 0.45fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  padding: clamp(28px, 5vw, 64px);
  border: 1px solid var(--border-dark);
  background:
    linear-gradient(135deg, rgba(26, 26, 26, 0.98), rgba(13, 13, 13, 0.98)),
    radial-gradient(circle at 100% 0%, rgba(201, 169, 110, 0.1), transparent 28%);
}

.article-meta-panel {
  position: sticky;
  top: calc(var(--header-h) + 28px);
  align-self: start;
  display: grid;
  gap: 12px;
  color: var(--text-soft);
}

.article-meta-panel p {
  margin: 0;
  font-size: 0.95rem;
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.article-tags span {
  border: 1px solid var(--border-dark);
  padding: 6px 9px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.article-body {
  max-width: 780px;
}

.article-kicker {
  margin-bottom: 14px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.article-body h2 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(1.4rem, 2vw, 1.8rem);
}

.article-deck {
  margin: 0 0 34px;
  color: var(--text-soft);
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
}

.article-content {
  display: grid;
  gap: 18px;
}

.article-content p {
  margin: 0;
  color: rgba(245, 240, 232, 0.88);
  font-size: clamp(1.02rem, 1.2vw, 1.13rem);
  line-height: 1.82;
}

.article-callout-line,
.article-list-line {
  padding-left: 18px;
  border-left: 1px solid var(--border-dark);
}

.article-source-note {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--border-dark);
}

.article-source-note span,
.article-back {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.article-source-note p {
  margin: 8px 0 0;
  color: var(--text-soft);
}

.article-back {
  display: inline-flex;
  margin-top: 26px;
}

/* ─── Contact page ───────────────────────────────────────────────────────────── */
.contact-body {
  padding-top: clamp(72px, 9vw, 116px);
  padding-bottom: clamp(92px, 11vw, 148px);
  background: var(--bg-ivory);
}

.contact-cols {
  display: grid;
  grid-template-columns: minmax(230px, 0.44fr) minmax(0, 0.56fr);
  gap: clamp(42px, 7vw, 108px);
  align-items: first baseline;
}

.contact-col-label {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(26, 24, 20, 0.46);
  margin: 0 0 28px;
}

.contact-info {
  position: sticky;
  top: calc(var(--header-h) + 40px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 34px;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.contact-info .contact-col-label {
  display: block;
  margin: 0;
}

.contact-detail {
  display: grid;
  gap: 12px;
  width: 100%;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--border-light);
}

.contact-directory-link,
.contact-email {
  width: fit-content;
  color: var(--text-dark);
  font-family: var(--display);
  font-size: clamp(1.18rem, 1.55vw, 1.55rem);
  font-weight: 300;
  line-height: 1.28;
  text-decoration: none;
}

.contact-directory-link {
  color: var(--text-dark);
  border-bottom: 1px solid rgba(26, 24, 20, 0.36);
  padding-bottom: 3px;
}

.contact-directory-link::after {
  content: " →";
}

.contact-directory-link:hover,
.contact-email:hover {
  color: #1A1814;
  border-bottom-color: rgba(26, 24, 20, 0.4);
}

.contact-form-col {
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.contact-sub {
  max-width: 390px;
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin: 0;
}

.contact-form .form-grid {
  gap: 30px clamp(24px, 4vw, 42px);
}

.contact-form .field textarea {
  min-height: 180px;
}

.contact-form .field .btn {
  width: auto;
  justify-self: start;
  min-width: 170px;
}

.contact-form .field input:focus,
.contact-form .field textarea:focus,
.contact-form .field select:focus {
  border-bottom-color: rgba(26, 24, 20, 0.42);
  outline: none;
}

.contact-form .form-success {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-primary, #161513);
  padding: 24px 0;
}

.contact-form .form-error {
  font-size: 13px;
  color: #8b2e2e;
  margin-top: 12px;
  grid-column: 1 / -1;
}

@media (max-width: 980px) {
  .contact-cols {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .contact-info {
    position: static;
    min-height: 0;
  }
}

/* ─── Engagements dropdown single-column override ────────────────────────── */
.dropdown-grid.col-1 {
  grid-template-columns: 1fr;
  gap: 2px;
}

/* ─── Two-column dropdown layout (Engagements) ───────────────────────────── */
.dropdown-wide {
  width: 500px;
}

.dropdown-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.dropdown-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 4px 0;
}

.dropdown-col:first-child {
  padding-right: 6px;
  border-right: 1px solid rgba(247, 245, 241, 0.1);
}

.dropdown-col:last-child {
  padding-left: 6px;
}

.dropdown-col-header {
  padding: 6px 14px 4px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(247, 245, 241, 0.32);
}

/* ─── Journey steps (framework.html) ────────────────────────────────────── */
.journey-intro {
  margin-bottom: 64px;
}

.journey-intro .eyebrow {
  display: block;
  margin-bottom: 16px;
}

.journey-intro h2 {
  margin-bottom: 20px;
}

.journey-intro .lead {
  color: var(--text-muted);
  max-width: 58ch;
  margin: 0;
}

.journey-table {
  border-top: 1px solid var(--border-light);
}

.journey-row {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 0 56px;
  padding: 52px 0;
  border-bottom: 1px solid var(--border-light);
  align-items: start;
}

.journey-row-category {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 18px;
}

.journey-row-main h3 {
  font-size: clamp(18px, 1.6vw, 24px);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin-bottom: 14px;
  color: var(--text-dark);
}

.journey-row-main p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-muted);
  max-width: 48ch;
  margin: 0;
}

.journey-row-deliverables ol {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: deliverable;
}

.journey-row-deliverables ol li {
  counter-increment: deliverable;
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-size: 13px;
  color: var(--text-dark);
  padding: 11px 0;
  border-bottom: 1px solid var(--border-light);
}

.journey-row-deliverables ol li:last-child {
  border-bottom: none;
}

.journey-row-deliverables ol li::before {
  content: counter(deliverable, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-soft);
  flex-shrink: 0;
}

.journey-optional {
  font-size: 0.85em;
  font-family: var(--body);
  color: var(--text-soft);
  letter-spacing: 0;
  text-transform: none;
}

@media (max-width: 720px) {
  .journey-row {
    grid-template-columns: 1fr;
  }
  .journey-row-deliverables {
    margin-top: 28px;
  }
}

@media (max-width: 600px) {
  .journey-row {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 36px 0;
  }
  .journey-row-index {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
  }
  .journey-row-deliverables {
    grid-column: 1;
    margin-top: 24px;
  }
}

@media (max-width: 640px) {
  .journey-step {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }

  .service-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

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

/* ─── Service rows (engagements.html) ───────────────────────────────────── */
.service-list {
  display: grid;
}

.service-row {
  display: grid;
  grid-template-columns: minmax(220px, 0.42fr) minmax(0, 0.58fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: baseline;
  padding: clamp(40px, 6vw, 72px) 0;
}

.service-row-heading {
  display: grid;
  gap: 0.65rem;
}

.service-row h3 {
  max-width: 360px;
  margin-bottom: 0;
  font-size: clamp(1.45rem, 2.2vw, 2.15rem);
  font-weight: 300;
}

.service-row > p {
  max-width: 680px;
  margin: 0;
  color: var(--text-muted);
  font-size: clamp(1rem, 1.2vw, 1.12rem);
  font-weight: 300;
  line-height: 1.75;
}

.service-num {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: rgba(26, 24, 20, 0.48);
}

.service-badge {
  display: inline-block;
  margin-top: 1rem;
  padding: 3px 10px;
  border: 1px solid var(--border-dark);
  color: var(--text-muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
}

/* ─── Engagement sub-page intro & enriched service rows ─────────────────── */

.service-page-intro {
  margin-top: 56px;
  padding-bottom: 64px;
  border-bottom: 1px solid var(--border-light);
  max-width: 640px;
}

.service-page-intro .eyebrow {
  display: block;
  margin-bottom: 16px;
}

.service-page-intro h2 {
  margin-bottom: 20px;
}

.service-intro-body {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-muted);
  font-weight: 300;
  margin: 0;
}

.service-row-body {
  display: flex;
  flex-direction: column;
}

.service-row-body > p:not(.service-deliverable) {
  max-width: 680px;
  margin: 0 0 28px;
  color: var(--text-muted);
  font-size: clamp(1rem, 1.2vw, 1.12rem);
  font-weight: 300;
  line-height: 1.75;
}

.service-includes {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  border-top: 1px solid var(--border-light);
}

.service-includes li {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-size: 13px;
  color: var(--text-dark);
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
}

.service-includes li::before {
  content: "—";
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-soft);
  flex-shrink: 0;
}

.service-deliverable {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: rgba(26, 24, 20, 0.48);
  margin: 28px 0 0;
}


/* ─── Bucket header (engagements.html) ───────────────────────────────────── */
.bucket-header {
  margin-bottom: 2.5rem;
  max-width: 840px;
}

.bucket-tag {
  margin: 0.25rem 0 1rem;
  font-size: 1rem;
}

.dark .bucket-tag {
  color: var(--text-soft);
}

.light .bucket-tag,
.paper .bucket-tag {
  color: var(--text-muted);
}

/* ─── Engagement category cards (engagements directory) ─────────────────── */
.engagement-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.engagement-card {
  display: flex;
  flex-direction: column;
  padding: clamp(32px, 4vw, 52px);
  border: 1px solid var(--border-light);
  text-decoration: none;
  color: inherit;
  transition: background 200ms ease, border-color 200ms ease;
}

.engagement-card:hover {
  background: rgba(26, 24, 20, 0.03);
  border-color: rgba(26, 24, 20, 0.25);
}

.engagement-card h3 {
  margin: 1rem 0 1rem;
  font-size: clamp(1.3rem, 2vw, 1.75rem);
}

.engagement-card p {
  flex: 1;
  margin: 0;
  font-size: clamp(0.95rem, 1.1vw, 1.05rem);
  color: var(--text-muted);
  line-height: 1.7;
  font-weight: 300;
}

.engagement-card-cta {
  display: block;
  margin-top: 2rem;
  font-size: 14px;
  font-weight: 500;
  color: #1A1814;
}

/* ─── Case study cards (case-studies.html) ───────────────────────────────── */
.case-sector {
  display: block;
  margin-bottom: 0.75rem;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.case-result {
  display: block;
  margin-top: 1.25rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-light);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.dark .case-result {
  border-top-color: var(--border-dark);
  color: var(--text-soft);
}

@media (max-width: 980px) {
  .featured-post-grid,
  .blog-card-grid,
  .article-shell {
    grid-template-columns: 1fr;
  }

  .blog-index-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .article-meta-panel {
    position: static;
  }
}

@media (max-width: 640px) {
  .featured-post,
  .blog-card,
  .article-shell {
    padding: 24px;
  }

  .article-body h2 {
    font-size: clamp(2.2rem, 12vw, 3.45rem);
  }
}
