:root {
  --paper: #f4efe7;
  --paper-soft: #ebe2d5;
  --ink: #211a16;
  --muted: #71665c;
  --line: #d6cabb;
  --rust: #9a4f2d;
  --clay: #c7774f;
  --moss: #516342;
  --charcoal: #171310;
  --white: #fffaf1;
  --shadow: rgba(48, 33, 22, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(90deg, transparent 0, transparent 96%, rgba(154, 79, 45, 0.08) 100%),
    radial-gradient(circle at 12% 20%, rgba(154, 79, 45, 0.07), transparent 28%),
    radial-gradient(circle at 82% 62%, rgba(81, 99, 66, 0.08), transparent 30%);
  background-size: 72px 100%, 100% 100%, 100% 100%;
  animation: bodyTrace 18s linear infinite;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 10px clamp(18px, 5vw, 64px);
  background: rgba(244, 239, 231, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: 210px;
  height: 76px;
  min-width: 180px;
  overflow: visible;
  background: transparent;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 760;
}

.brand-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.footer-logo {
  filter: brightness(0) invert(1);
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  background: var(--charcoal);
  color: var(--paper);
  font-size: 0.74rem;
  letter-spacing: 0;
  text-transform: lowercase;
}

.nav-links,
.site-footer nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
  color: var(--muted);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.94rem;
}

.nav-links a,
.site-footer a,
.section-heading a {
  border-bottom: 1px solid transparent;
  transition: color 160ms ease, border-color 160ms ease;
}

.nav-links a:hover,
.site-footer a:hover,
.section-heading a:hover {
  color: var(--rust);
  border-color: currentColor;
}

.header-cta,
.btn {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  padding: 0 18px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 760;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

.btn.dark,
.header-cta:hover {
  background: var(--charcoal);
  color: var(--paper);
}

.btn.quiet {
  border-color: var(--line);
  background: var(--white);
}

.btn:hover {
  transform: translateY(-2px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  min-height: calc(100svh - 97px);
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding: clamp(44px, 6vw, 84px) clamp(18px, 5vw, 68px);
}

.hero-copy h1,
.page-hero h1 {
  max-width: 820px;
  margin: 0 0 24px;
  max-width: 610px;
  font-size: clamp(3.1rem, 5.15vw, 5.8rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.hero-copy p,
.page-hero p,
.essay p,
.contact-section p,
.post-card p,
.example-list p,
.rung-grid p,
.product-showcase p,
.architecture-grid p,
.market-grid p,
.program-timeline p,
.scorecard span,
.site-footer p,
.openings p {
  color: var(--muted);
  line-height: 1.65;
}

.hero-copy > p:not(.kicker) {
  max-width: 680px;
  font-size: clamp(1.08rem, 1.45vw, 1.28rem);
}

.hero-copy > p.hero-ambition {
  max-width: 640px;
  margin-top: 10px;
  padding-left: 16px;
  border-left: 2px solid var(--rust);
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: min(680px, 100%);
  margin: 34px 0 0;
  border: 1px solid var(--line);
  background: var(--line);
}

.hero-proof div {
  min-height: 94px;
  padding: 18px;
  background: rgba(255, 250, 241, 0.72);
}

.hero-proof dt {
  margin-bottom: 10px;
  color: var(--rust);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.72rem;
  font-weight: 820;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-proof dd {
  margin: 0;
  color: var(--ink);
  line-height: 1.35;
}
}

.hero-lab {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  border-left: 1px solid var(--line);
  isolation: isolate;
  background:
    linear-gradient(120deg, rgba(154, 79, 45, 0.08), transparent 42%),
    radial-gradient(circle at 70% 32%, rgba(81, 99, 66, 0.12), transparent 34%),
    var(--paper-soft);
}

#ladderCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.lab-note {
  position: absolute;
  right: clamp(18px, 4vw, 46px);
  bottom: clamp(18px, 4vw, 46px);
  width: min(340px, calc(100% - 36px));
  padding: 22px;
  border: 1px solid var(--ink);
  background: rgba(255, 250, 241, 0.84);
  box-shadow: 0 22px 44px var(--shadow);
}

.lab-note span,
.kicker,
.rung-grid span,
.post-type,
.openings span {
  color: var(--rust);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.74rem;
  font-weight: 820;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lab-note strong {
  display: block;
  margin: 10px 0;
  font-size: 1.55rem;
}

.statement {
  padding: clamp(54px, 8vw, 110px) clamp(18px, 8vw, 140px);
  border-bottom: 1px solid var(--line);
}

.statement p {
  max-width: 1180px;
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 6rem);
  line-height: 0.98;
}

.section {
  position: relative;
  overflow: hidden;
  padding: clamp(64px, 8vw, 112px) clamp(18px, 6vw, 78px);
  border-bottom: 1px solid var(--line);
}

.section::before {
  position: absolute;
  top: 0;
  left: -30%;
  width: 30%;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, var(--rust), transparent);
  opacity: 0.35;
  animation: scanLine 6s ease-in-out infinite;
}

.two-column,
.contact-section,
.admin-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: clamp(34px, 6vw, 90px);
  align-items: start;
}

.vision-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(34px, 6vw, 90px);
  align-items: start;
  background: var(--paper-soft);
}

.vision-copy > p:last-child,
.challenge-copy p {
  color: var(--muted);
  line-height: 1.7;
  font-size: 1.08rem;
}

.vision-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.vision-points article {
  min-height: 250px;
  padding: 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 250, 241, 0.52);
}

.vision-points span {
  display: inline-block;
  margin-bottom: 38px;
  color: var(--rust);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.vision-points p,
.challenge-note {
  color: var(--muted);
  line-height: 1.65;
}

.challenge-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(34px, 6vw, 90px);
  align-items: start;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 250, 241, 0.55);
}

.challenge-copy {
  max-width: 680px;
}

.challenge-note {
  padding-left: 18px;
  border-left: 2px solid var(--moss);
  font-size: 0.96rem;
}

.section-heading {
  margin-bottom: 36px;
}

.section-heading.inline {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

h2 {
  max-width: 980px;
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 5.6rem);
  line-height: 0.95;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 12px;
  font-size: clamp(1.3rem, 2vw, 1.8rem);
  line-height: 1.1;
}

.rung-grid,
.thesis-grid,
.post-grid,
.example-list,
.openings,
.market-grid,
.architecture-grid,
.program-timeline,
.product-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  isolation: isolate;
}

.rung-grid article,
.thesis-grid article,
.post-card,
.example-list article,
.openings article,
.market-grid article,
.architecture-grid article,
.program-timeline article,
.product-list article {
  min-height: 285px;
  padding: 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 250, 241, 0.45);
}

.rung-grid span {
  display: inline-block;
  margin-bottom: 72px;
}

.example-list,
.openings,
.thesis-grid,
.post-grid.archive {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}


.investor-brief {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 1fr);
  gap: clamp(28px, 6vw, 88px);
  align-items: start;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(115deg, rgba(170, 78, 40, 0.12), transparent 45%),
    rgba(255, 250, 241, 0.5);
}

.investor-brief ul {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.investor-brief li {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.thesis-grid span {
  display: inline-block;
  margin-bottom: 56px;
  color: var(--rust);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.product-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
  border: 1px solid var(--line);
  background: var(--white);
}

.featured-product {
  min-height: 520px;
  padding: clamp(28px, 4vw, 56px);
  border-right: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(154, 79, 45, 0.09), transparent 48%),
    var(--white);
}

.featured-product h3 {
  max-width: 680px;
  margin-top: 18px;
  font-size: clamp(2.4rem, 4.8vw, 5.8rem);
  line-height: 0.92;
}

.featured-product ul {
  display: grid;
  gap: 12px;
  margin: 34px 0 0;
  padding-left: 22px;
  color: var(--muted);
  line-height: 1.55;
}

.product-list {
  grid-template-columns: 1fr;
  border-top: 0;
  border-left: 0;
}

.product-list article {
  min-height: auto;
  border-right: 0;
  background: transparent;
}

.product-list span,
.program-timeline span {
  display: inline-block;
  margin-bottom: 34px;
  color: var(--rust);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.74rem;
  font-weight: 820;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

.market-grid article {
  min-height: 330px;
}

.program-timeline article {
  min-height: 250px;
}

.program-section {
  background: var(--paper-soft);
}

.section,
.statement,
.featured-product,
.product-list article,
.architecture-grid article,
.market-grid article,
.program-timeline article,
.post-card {
  transform: translateY(22px);
  opacity: 0;
  transition: transform 720ms ease, opacity 720ms ease;
}

.section.is-visible,
.statement.is-visible,
.featured-product.is-visible,
.product-list article.is-visible,
.architecture-grid article.is-visible,
.market-grid article.is-visible,
.program-timeline article.is-visible,
.post-card.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.product-list article,
.architecture-grid article,
.market-grid article,
.program-timeline article,
.post-card {
  transition-delay: 80ms;
}

.product-list article:hover,
.architecture-grid article:hover,
.market-grid article:hover,
.program-timeline article:hover,
.post-card:hover {
  background: rgba(255, 250, 241, 0.78);
}

.scorecard {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.scorecard div {
  display: grid;
  gap: 8px;
  padding: 24px;
  background: var(--paper);
}

.scorecard strong {
  font-size: 1.15rem;
}

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

.post-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.post-card time {
  color: var(--muted);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.84rem;
}

.video-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  background: var(--charcoal);
}

.video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.contact-form,
.admin-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: 0 22px 52px var(--shadow);
}

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

.leads-access-form {
  max-width: 560px;
  margin-bottom: 28px;
}

.lead-list {
  display: grid;
  gap: 14px;
}

.lead-card {
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: 0 12px 30px var(--shadow);
}

.lead-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
}

.lead-heading time,
.lead-card > p {
  color: var(--muted);
}

.lead-message {
  white-space: pre-wrap;
  color: var(--ink) !important;
}

.admin-form h2 {
  font-size: clamp(1.8rem, 3vw, 3.4rem);
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.88rem;
  font-weight: 760;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fffdf8;
  color: var(--ink);
  padding: 13px 14px;
  outline: none;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--rust);
  box-shadow: 0 0 0 3px rgba(154, 79, 45, 0.11);
}

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

.form-status {
  min-height: 24px;
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.field-hint {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 400;
  line-height: 1.45;
}

.admin-link {
  width: max-content;
  color: var(--rust);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 760;
  border-bottom: 1px solid currentColor;
}

.site-footer {
  display: grid;
  grid-template-columns: 1.2fr auto auto;
  gap: 28px;
  align-items: center;
  padding: 42px clamp(18px, 5vw, 64px);
  background: var(--charcoal);
  color: var(--paper);
}

.site-footer p,
.site-footer nav {
  color: #d8cab8;
}

.site-footer .brand-mark {
  background: var(--paper);
  color: var(--charcoal);
}

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

.site-footer.compact .brand {
  width: 112px;
  height: 72px;
  min-width: 100px;
}

.page {
  min-height: 70svh;
}

.page-hero {
  padding: clamp(72px, 10vw, 128px) clamp(18px, 6vw, 78px);
  border-bottom: 1px solid var(--line);
  background: var(--paper-soft);
}

.page-hero h1 {
  font-size: clamp(3.2rem, 6.4vw, 7rem);
}

.page-hero p {
  max-width: 780px;
  font-size: 1.2rem;
}

code {
  padding: 2px 6px;
  background: rgba(33, 26, 22, 0.08);
}

@keyframes bodyTrace {
  from {
    background-position: 0 0, 0 0, 0 0;
  }
  to {
    background-position: 72px 0, 0 0, 0 0;
  }
}

@keyframes scanLine {
  0%,
  35% {
    transform: translateX(0);
  }
  80%,
  100% {
    transform: translateX(460%);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }

  .section,
  .statement,
  .featured-product,
  .product-list article,
  .architecture-grid article,
  .market-grid article,
  .program-timeline article,
  .post-card {
    transform: none;
    opacity: 1;
  }
}

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

  .hero,
  .two-column,
  .vision-section,
  .challenge-section,
  .contact-section,
  .admin-layout,
  .investor-brief,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .hero-lab {
    min-height: 460px;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .rung-grid,
  .vision-points,
  .post-grid,
  .example-list,
  .openings,
  .thesis-grid,
  .market-grid,
  .architecture-grid,
  .program-timeline,
  .post-grid.archive {
    grid-template-columns: 1fr 1fr;
  }


  .product-showcase {
    grid-template-columns: 1fr;
  }

  .featured-product {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

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

@media (max-width: 620px) {
  .site-header {
    padding: 14px 16px;
  }

  .hero {
    position: relative;
    min-height: calc(100svh - 67px);
    overflow: hidden;
  }

  .hero-copy {
    position: relative;
    z-index: 2;
    min-height: calc(100svh - 67px);
    background: rgba(244, 239, 231, 0.68);
  }

  .hero-lab {
    position: absolute;
    inset: 0;
    z-index: 1;
    min-height: 100%;
    border: 0;
    opacity: 0.42;
  }

  .lab-note {
    display: none;
  }

  .brand span:last-child {
    max-width: 120px;
  }

  .brand {
    width: 138px;
    height: 52px;
    min-width: 118px;
  }

  .brand-logo {
    height: 100%;
  }

  .header-cta {
    min-height: 38px;
    padding: 0 12px;
  }

  .hero-copy h1,
  .page-hero h1 {
    font-size: clamp(2.85rem, 13.5vw, 3.85rem);
    line-height: 0.94;
  }

  .statement p {
    font-size: 2.2rem;
  }

  .rung-grid,
  .vision-points,
  .post-grid,
  .example-list,
  .openings,
  .thesis-grid,
  .market-grid,
  .architecture-grid,
  .program-timeline,
  .post-grid.archive,
  .contact-form {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .btn,
  .hero-proof {
    width: 100%;
  }

  .hero-proof {
    grid-template-columns: 1fr;
  }

  .section-heading.inline {
    display: grid;
    align-items: start;
  }
}
