/* Small visual corrections layered on top of the core design system. */
.site-header {
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 1px 0 rgba(20, 28, 36, .08);
}

.site-nav a { color: var(--ink); }
.nav-cta { border-color: rgba(20, 28, 36, .3); }
.menu-toggle { color: var(--ink); }
.menu-toggle i { background: var(--ink); }

.friction-card {
  min-height: 330px;
  overflow: hidden;
}

.friction-icon {
  width: 100%;
  height: 102px;
  display: flex;
  align-items: center;
  font-size: 5.5rem;
  font-weight: 700;
  letter-spacing: -.12em;
  margin: 1.8rem 0 1.25rem;
  color: var(--orange);
}

.friction-card:nth-child(1) .friction-icon { text-shadow: 22px 0 0 rgba(255, 90, 0, .2); }
.friction-card:nth-child(2) .friction-icon { transform: rotate(-8deg); transform-origin: left center; }
.friction-card:nth-child(3) .friction-icon { font-size: 7.2rem; line-height: .7; }

.dogfood-mark img {
  display: block;
  width: min(100%, 330px);
  height: auto;
}

@media (max-width: 640px) {
  .site-nav { background: var(--white); border-top-color: #e0e3e5; }
  .friction-card { min-height: 0; }
  .dogfood-mark img { width: min(100%, 290px); }
}

/* Manifesto editorial layout */
.manifesto-hero { min-height: 510px; padding: 12rem 0 6rem; position: relative; overflow: hidden; }
.manifesto-hero:before { content: ""; position: absolute; width: 42vw; height: 42vw; right: -10vw; top: 7rem; border: 1px solid rgba(255,90,0,.28); border-radius: 50%; }
.manifesto-hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 5rem; align-items: end; position: relative; z-index: 1; }
.manifesto-hero h1 { max-width: 760px; margin-bottom: 0; }
.manifesto-hero h1 em { display: block; }
.manifesto-hero-subtitle { margin: 1rem 0 0; color: var(--orange); font: 600 clamp(1.5rem, 3vw, 2.5rem)/1.1 var(--display); letter-spacing: -.04em; }
.manifesto-lead { max-width: 380px; margin: 0 0 .75rem; color: #fff; font: 500 1.25rem/1.45 var(--body); border-left: 2px solid var(--orange); padding-left: 1.5rem; }
.manifesto-hero-line { position: absolute; left: 0; right: 8%; bottom: 2.5rem; height: 2px; background: var(--orange); box-shadow: 0 0 20px rgba(255,90,0,.45); }
.manifesto-hero-line:after { content: ""; position: absolute; right: 0; top: -5px; border-left: 12px solid var(--orange); border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.manifesto-shell { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 6rem; padding-top: 6rem; padding-bottom: 7rem; }
.manifesto-index { align-self: start; position: sticky; top: 2rem; }
.manifesto-index .eyebrow { margin-bottom: 1rem; }
.manifesto-index nav { border-left: 1px solid var(--line); }
.manifesto-index a { display: flex; gap: .75rem; padding: .55rem 0 .55rem 1rem; color: #8b949b; font: 500 .68rem/1.3 var(--mono); letter-spacing: .03em; transition: color .2s, border-color .2s; border-left: 2px solid transparent; margin-left: -1px; }
.manifesto-index a span { color: var(--ink); font-family: var(--body); font-size: .77rem; }
.manifesto-index a:hover, .manifesto-index a:focus-visible { color: var(--orange); border-left-color: var(--orange); }
.manifesto-index a:hover span, .manifesto-index a:focus-visible span { color: var(--ink); }
.manifesto-section { padding: 0 0 7rem; margin: 0 0 7rem; border-bottom: 1px solid var(--line); scroll-margin-top: 2rem; }
.manifesto-section:last-child { border-bottom: 0; margin-bottom: 0; }
.section-number { color: var(--orange); font: 500 .68rem var(--mono); letter-spacing: .1em; margin: 0 0 1.2rem; }
.manifesto-section h2 { font-size: clamp(2.6rem, 5vw, 5rem); margin-bottom: 2.8rem; }
.manifesto-copy { max-width: 690px; }
.manifesto-copy p { color: #4f5b64; margin-bottom: 1.35rem; }
.manifesto-copy p:last-child { margin-bottom: 0; }
.manifesto-callout { color: var(--ink) !important; font-size: clamp(1.2rem, 2vw, 1.6rem); font-weight: 600; line-height: 1.35; border-left: 3px solid var(--orange); padding-left: 1.25rem; margin: 2.4rem 0 !important; }
.role-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 2.5rem; }
.role-card { padding: 2rem; min-height: 290px; }
.role-card .eyebrow { margin-bottom: 1.8rem; }
.role-human { background: #f0f2f3; border-top: 2px solid var(--orange); }
.role-machine { background: var(--ink); color: #fff; border-top: 2px solid var(--orange); }
.role-card ul, .manifesto-copy ul { padding: 0; margin: 0; list-style: none; }
.role-card li { margin: .75rem 0; font-size: .95rem; }
.role-card li:before { content: "→"; color: var(--orange); margin-right: .75rem; }
.principle-close { border-top: 1px solid var(--line); padding-top: 2rem; }
.axiom-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.5rem; border-top: 1px solid var(--line); }
.axiom-grid p { margin: 0; padding: 1.35rem 0; border-bottom: 1px solid var(--line); color: #4f5b64; }
.axiom-grid .axiom-emphasis { color: var(--ink); font-size: 1.25rem; font-weight: 600; }
.manifesto-dark-section { background: var(--ink); color: #fff; padding: 4rem clamp(1.5rem, 5vw, 5rem) 4.5rem; margin-left: clamp(-5rem, -5vw, -1.5rem); margin-right: clamp(-5rem, -5vw, -1.5rem); border-bottom: 0; }
.manifesto-dark-section h2 { color: #fff; }
.manifesto-dark-section .manifesto-copy p { color: #b6c0c5; }
.manifesto-dark-section .manifesto-callout { color: #fff !important; }
.manifesto-quote { color: var(--orange) !important; font: 500 clamp(1.7rem, 3vw, 2.8rem)/1.2 var(--display); letter-spacing: -.04em; margin: 2rem 0 !important; }
.manifesto-dark-section li { color: #fff; margin: .55rem 0; }
.manifesto-dark-section li:before { content: "—"; color: var(--orange); margin-right: .7rem; }
.software-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: .75rem; margin: 3rem 0; }
.software-grid p { min-height: 145px; margin: 0; padding: 1.1rem; background: var(--ink); color: #fff; font-size: .88rem; line-height: 1.4; border-top: 2px solid var(--orange); }
.software-close { border-top: 1px solid var(--line); padding-top: 2rem; }
.hypothesis-flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 3rem 0; position: relative; }
.hypothesis-flow:before { content: ""; position: absolute; top: 1.55rem; left: 2rem; right: 2rem; height: 1px; background: var(--orange); }
.hypothesis-flow > div { position: relative; padding: 0 1rem 1rem; }
.hypothesis-flow span { display: flex; align-items: center; justify-content: center; width: 3.2rem; height: 3.2rem; margin-bottom: 1.4rem; background: var(--orange); color: #fff; border-radius: 50%; font: 500 .7rem var(--mono); }
.hypothesis-flow p { color: #4f5b64; font-size: .9rem; }
.hypothesis-close { border-top: 1px solid var(--line); padding-top: 2rem; }
.criterion-intro { margin-bottom: 2rem; }
.criterion-list { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem 2rem; padding: 2rem 0; margin: 0; list-style: none; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.criterion-list li { color: #4f5b64; font-size: .95rem; }
.criterion-list li:before { content: "✓"; color: var(--orange); margin-right: .75rem; font-weight: 700; }
.criterion-outro { color: var(--ink); font-size: 1.2rem; font-weight: 600; margin: 2rem 0 0; }
.mission-section { margin-bottom: 0; }
.invocation-section { border: 0; padding-bottom: 0; }
.invocation-lines { border-left: 3px solid var(--orange); padding-left: clamp(1.5rem, 4vw, 3.5rem); }
.invocation-lines p { margin: 0 0 .45rem; color: var(--ink); font: 600 clamp(1.5rem, 3vw, 2.7rem)/1.15 var(--display); letter-spacing: -.045em; }
.invocation-lines p:last-child { margin-bottom: 0; }
@media (max-width: 900px) {
  .manifesto-shell { grid-template-columns: 1fr; gap: 2rem; padding-top: 4rem; }
  .manifesto-index { position: static; }
  .manifesto-index nav { display: grid; grid-template-columns: repeat(3, 1fr); border-left: 0; border-top: 1px solid var(--line); }
  .manifesto-index a { border-left: 0; border-top: 2px solid transparent; padding: .8rem .4rem; margin: 0; flex-direction: column; gap: .2rem; }
  .manifesto-index a:hover, .manifesto-index a:focus-visible { border-top-color: var(--orange); }
  .software-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .manifesto-hero { min-height: 570px; padding: 9rem 0 5rem; }
  .manifesto-hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .manifesto-lead { font-size: 1.05rem; }
  .manifesto-shell { padding-top: 3.5rem; padding-bottom: 5rem; }
  .manifesto-index nav { grid-template-columns: 1fr 1fr; }
  .manifesto-section { padding-bottom: 4.5rem; margin-bottom: 4.5rem; }
  .manifesto-section h2 { margin-bottom: 2rem; }
  .role-grid, .axiom-grid, .hypothesis-flow, .criterion-list { grid-template-columns: 1fr; }
  .role-card { min-height: 0; }
  .software-grid { grid-template-columns: 1fr 1fr; }
  .software-grid p { min-height: 0; }
  .hypothesis-flow:before { display: none; }
  .hypothesis-flow > div { padding: 0; border-bottom: 1px solid var(--line); padding-bottom: 1.2rem; }
  .manifesto-dark-section { padding: 2.5rem 1.25rem 3rem; margin-left: -1.25rem; margin-right: -1.25rem; }
  .invocation-lines p { font-size: 1.7rem; }
}

/* Manifesto page */
.manifesto-page {
  background: var(--paper);
}

.manifesto-header {
  position: relative;
  background: var(--white);
}

.manifesto-main {
  padding: 8rem 0 7rem;
}

.manifesto-intro {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 5rem;
  align-items: end;
  padding-bottom: 4rem;
  border-bottom: 1px solid var(--line);
}

.manifesto-intro h1 {
  margin-bottom: 0;
  color: var(--ink);
}

.manifesto-intro h1 span { color: var(--orange); }

.manifesto-intro-note {
  max-width: 390px;
  color: #69747c;
  font-size: 1rem;
}

.manifesto-content {
  margin-top: 4rem;
  padding: clamp(2rem, 5vw, 5rem);
  background: var(--white);
  border-top: 3px solid var(--orange);
  box-shadow: 0 14px 45px rgba(20, 28, 36, .06);
  overflow-x: auto;
}

.manifesto-text {
  margin: 0;
  color: var(--ink);
  font: 400 clamp(.95rem, 1.35vw, 1.08rem)/1.85 var(--body);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.manifesto-back {
  display: inline-flex;
  margin-top: 2.5rem;
}

@media (max-width: 900px) {
  .manifesto-intro { grid-template-columns: 1fr; gap: 1.5rem; }
}

@media (max-width: 640px) {
  .manifesto-main { padding: 5.5rem 0; }
  .manifesto-content { margin-top: 2.5rem; padding: 1.5rem; }
  .manifesto-text { font-size: .92rem; line-height: 1.75; }
}
