/* Homepage only. The other pages keep style.css. */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root { --ink:#0F1B2E; --ink-2:#16263D; --line:#2B3D58; --bone:#F4EFE6; --bone-2:#FBF8F2; --rule:#D8D0BF; --red:#C0392B; --body-ink:#3D4A5F; --mute-ink:#4A5568; --mute-bone:#B9C2D0; --text-bone:#E4DFD3; --lead-bone:#CFC9BC; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; font-size: 16px; -webkit-font-smoothing: antialiased; }
body { background: var(--ink); color: var(--bone); font-family: 'Manrope', system-ui, sans-serif; line-height: 1.5; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2 { font-weight: 800; letter-spacing: -0.015em; line-height: 1.12; }
p { margin: 0; }

.page { position: relative; }
.thread { position: absolute; left: 39px; top: 0; bottom: 0; width: 2px; background: var(--red); z-index: 2; }
.js .thread { display: none; }
.weave { position: absolute; left: 0; top: 0; z-index: 4; pointer-events: none; overflow: visible; }

/* Header */
.top { position: fixed; top: 0; left: 0; right: 0; z-index: 6; background: var(--ink); border-bottom: 1px solid var(--line); }
.top-in { max-width: 1120px; margin: 0 auto; padding: 12px 32px; display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; }
.logo { font-weight: 500; font-size: 20px; letter-spacing: -0.025em; line-height: 1; color: var(--bone); }
.logo .r { color: var(--red); }
.top-right { display: flex; align-items: center; gap: 8px 24px; }
.top-links { display: flex; align-items: center; gap: 8px 24px; }
.top-links a { font-size: 14px; color: var(--bone); }
.top-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 24px; background: var(--red); color: #fff; font-weight: 700; font-size: 15px; border-radius: 4px; }
.btn:hover { background: #A93226; }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: 14px; }
.btn:focus-visible, a:focus-visible { outline: 2px solid var(--bone); outline-offset: 3px; }
.on-bone a:focus-visible { outline-color: var(--ink); }
.spacer { height: 72px; }

/* Rail */
.rail { position: fixed; right: 12px; top: 50%; transform: translateY(-50%); z-index: 5; display: flex; flex-direction: column; align-items: center; }
.rail a { width: 44px; height: 36px; display: flex; align-items: center; justify-content: center; }
.rail span { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--red); background: transparent; }
.rail a.is-on span { background: var(--red); }
.rail a:focus-visible { outline: 2px solid var(--red); outline-offset: -4px; }

/* Sections */
section { position: relative; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 96px 32px; }
.on-ink { background: var(--ink); color: var(--bone); }
.on-bone { background: var(--bone); color: var(--ink); }
h2 { font-size: 36px; }
.lede { font-size: 18px; line-height: 1.55; color: var(--body-ink); max-width: 720px; }
.on-ink .lede { color: var(--lead-bone); }
.link { font-weight: 600; color: var(--ink); border-bottom: 1px solid rgba(15,27,46,.35); padding-bottom: 2px; }
.link:hover { border-color: var(--red); }
.on-ink .link { color: var(--bone); border-color: rgba(244,239,230,.4); }

/* Hero */
.hero .wrap { padding: 56px 32px 112px; }
.hero-grid { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.hero-copy { flex: 1 1 460px; min-width: 0; }
.hero h1 { font-size: 60px; line-height: 1.05; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 24px; }
.hero .lede { color: var(--lead-bone); font-size: 20px; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; }
.hero-actions .alt { font-weight: 600; }
.hero-actions .alt:hover { text-decoration: underline; text-underline-offset: 4px; }
.hero-photo { flex: 1 1 360px; min-width: 0; max-width: 460px; margin-left: auto; }
.hero-photo img { width: 100%; height: 520px; object-fit: cover; object-position: 50% 62%; border: 1px solid var(--line); }

/* Problem */
.problem h2 { max-width: 1056px; margin-bottom: 16px; }
.problem .lede { margin-bottom: 48px; }
.cards3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; }
.card { border: 1px solid var(--rule); background: var(--bone-2); padding: 28px; }
.card small { display: block; font-size: 13px; color: var(--mute-ink); margin-bottom: 12px; }
.card p { font-size: 18px; font-weight: 700; line-height: 1.35; }

/* Fit */
.fit h2 { margin-bottom: 48px; max-width: 720px; }
.cards2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 24px; }
.panel { border: 1px solid var(--line); background: var(--ink-2); padding: 32px; }
.panel h3 { font-size: 18px; font-weight: 800; margin-bottom: 16px; }
.panel ul { padding-left: 20px; font-size: 16px; line-height: 1.9; color: var(--text-bone); }
.panel .note { margin-top: 20px; font-size: 14px; line-height: 1.6; color: var(--mute-bone); }

/* How */
.how h2 { margin-bottom: 48px; max-width: 720px; }
.how .cards2 { margin-bottom: 32px; }
.mode { border: 1px solid var(--rule); background: var(--bone-2); padding: 32px; display: flex; flex-direction: column; gap: 12px; }
.mode h3 { font-size: 22px; font-weight: 800; }
.mode p { font-size: 16px; line-height: 1.55; color: var(--body-ink); }
.mode .shape { font-size: 14px; color: var(--mute-ink); }

/* Proof */
.proof h2 { margin-bottom: 48px; max-width: 720px; }
.quotes { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; margin-bottom: 24px; }
.quotes figure { margin: 0; border: 1px solid var(--line); background: var(--ink-2); padding: 28px; display: flex; flex-direction: column; gap: 20px; min-height: 240px; }
.quotes blockquote { margin: 0; font-size: 17px; line-height: 1.55; color: var(--text-bone); }
.quotes figcaption { margin-top: auto; font-size: 14px; font-weight: 700; color: var(--bone); }
.proof-row { display: flex; flex-wrap: wrap; gap: 24px; align-items: stretch; margin-top: 24px; }
.proof-row .more { flex: 2 1 480px; border: 1px solid var(--line); background: var(--ink-2); padding: 28px; display: flex; align-items: center; font-size: 16px; }
.proof-row .more a { font-weight: 700; color: var(--bone); }
.proof-row .more a:hover { text-decoration: underline; text-underline-offset: 4px; }
.proof-row .creds { flex: 1 1 280px; border: 1px solid var(--line); background: var(--ink-2); padding: 28px; font-size: 14px; line-height: 1.7; color: var(--text-bone); }
.proof-row .creds strong { color: var(--bone); }
.names { margin-top: 48px; padding-top: 40px; border-top: 1px solid var(--line); }
.names .cap { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #9FB0C8; margin-bottom: 28px; }
.names ul { list-style: none; display: flex; flex-wrap: wrap; align-items: center; row-gap: 24px; }
.names li { padding: 0 40px; border-left: 1px solid var(--line); }
.names li:first-child { padding-left: 0; border-left: 0; }
.names b { display: block; font-size: 20px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--bone); }
.names span { display: block; margin-top: 6px; font-size: 13px; color: var(--mute-bone); }

/* About */
.about-grid { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.about-photo { flex: 1 1 300px; min-width: 0; max-width: 420px; }
.about-photo img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; }
.about-copy { flex: 2 1 460px; min-width: 0; }
.about h2 { margin-bottom: 16px; }
.about .lede { margin-bottom: 24px; }

/* Contact */
.contact h2 { margin-bottom: 16px; }
.contact .lede { margin-bottom: 24px; }
.contact .mail { font-size: 18px; color: var(--bone); border-bottom: 1px solid rgba(244,239,230,.4); padding-bottom: 2px; }
.contact .mail:hover { border-color: var(--red); }
.contact .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; margin-top: 8px; }

footer { background: var(--ink); color: var(--mute-bone); border-top: 1px solid var(--line); }
.foot { max-width: 1120px; margin: 0 auto; padding: 32px; display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; font-size: 13px; }
.foot nav { display: flex; gap: 20px; }
.foot a { color: var(--bone); }
.foot a:hover { text-decoration: underline; text-underline-offset: 4px; }

@media (max-width: 1200px) { .thread { left: 11px; } }
@media (max-width: 900px) {
  .rail { display: none; }
  .top-links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--ink); border-bottom: 1px solid var(--line); padding: 8px 20px 16px 48px; }
  .top.open .top-links { display: flex; }
  .top-links a { font-size: 16px; min-height: 44px; display: flex; align-items: center; }
  .top-links a.only-small { color: var(--red); font-weight: 700; }
  .menu-btn { display: inline-flex; }
  .cards3, .quotes { grid-template-columns: 1fr; }
  .cards2 { grid-template-columns: 1fr; }
  .hero h1 { font-size: 38px; }
  h2 { font-size: 26px; }
  .wrap { padding: 56px 20px 56px 48px; }
  .hero .wrap { padding: 32px 20px 64px 48px; }
  .top-in { padding: 10px 20px 10px 48px; }
  .lede { font-size: 16px; }
  .hero .lede { font-size: 17px; }
  .card p { font-size: 16px; }
  .quotes blockquote { font-size: 16px; }
  .panel ul, .mode p { font-size: 15px; }
  .names b { font-size: 16px; }
  .eyebrow { margin-bottom: 16px; }
  .problem .lede, .fit h2, .how h2, .proof h2 { margin-bottom: 28px; }
  .hero-photo { margin-left: 0; max-width: 100%; }
  .names li { padding: 0 24px; }
  .foot { padding: 24px 20px 24px 48px; }
  .hero-photo img { height: 340px; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 32px; }
  .names li { border-left: 0; padding: 0 24px 0 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Organic touches */
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--mute-ink); margin-bottom: 24px; }
.on-ink .eyebrow { color: #9FB0C8; }
.on-ink::before, .on-bone::before { content: ""; position: absolute; left: 0; right: 0; top: -47px; height: 48px; background-size: 100% 100%; background-repeat: no-repeat; pointer-events: none; }
.on-ink::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 48' preserveAspectRatio='none'%3E%3Cpath d='M0 48V30C220 -6 460 -4 720 26S1210 54 1440 18V48Z' fill='%230F1B2E'/%3E%3C/svg%3E"); }
.on-bone::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 48' preserveAspectRatio='none'%3E%3Cpath d='M0 48V20C240 56 500 52 760 24S1220 -6 1440 30V48Z' fill='%23F4EFE6'/%3E%3C/svg%3E"); }
.hero::before { display: none; }
.card, .panel, .mode, .quotes figure, .proof-row .more, .proof-row .creds { border-radius: 22px; }
.btn { border-radius: 999px; }
.hero-photo img { border: 0; border-radius: 240px 240px 36px 36px; }
.about-photo img { border-radius: 50%; }

/* Proof: bone cards on the ink section */
.quotes figure { background: var(--bone); border-color: var(--bone); }
.quotes blockquote { color: var(--ink); }
.quotes figcaption { color: var(--mute-ink); }
.proof-row .more { background: transparent; border-color: var(--line); }
.proof-row .creds { background: var(--bone); border-color: var(--bone); color: var(--body-ink); }
.proof-row .creds strong { color: var(--ink); }

/* Fit: bone panels too */
.panel { background: var(--bone); border-color: var(--bone); border-radius: 22px; }
.panel h3 { color: var(--ink); }
.panel ul { color: var(--ink); }
.panel .note { color: var(--mute-ink); }

/* Header menu in lower case, as on the inner pages */
.top-links a, .top .btn { text-transform: lowercase; }

/* Menu button, phones and tablets only */
.menu-btn { display: none; width: 44px; height: 44px; padding: 0; background: transparent; border: 0; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; color: var(--bone); }
.menu-btn span { display: block; width: 22px; height: 2px; background: var(--bone); border-radius: 2px; transition: transform .2s, opacity .2s; }
.top.open .menu-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.top.open .menu-btn span:nth-child(2) { opacity: 0; }
.top.open .menu-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.menu-btn:focus-visible { outline: 2px solid var(--bone); outline-offset: 2px; }
.only-small { display: none; }
@media (max-width: 900px) { .menu-btn { display: inline-flex; } .only-small { display: flex; } .top .btn-sm { display: none; } }
@media (prefers-reduced-motion: reduce) { .menu-btn span { transition: none; } }
