/* ============================================================
   rthnkr. — shared stylesheet
   Palette: ink #0c0c0c · bone #f4f1ea · hairline rgba(244,241,234,.18)
   Type: Archivo Black (display) · Archivo (body) · Space Mono (labels)
   ============================================================ */

/* ---------- Fonts (self-hosted) ---------- */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url("fonts/archivo-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url("fonts/archivo-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Archivo Black';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/archivo-black-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Archivo Black';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/archivo-black-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Space Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/space-mono-latin.woff2") format('woff2');
}
@font-face {
  font-family: 'Space Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/space-mono-700-latin.woff2") format('woff2');
}

/* ---------- Tokens & base ---------- */
:root {
  --ink: #0c0c0c;
  --bone: #f4f1ea;
  --line: rgba(244, 241, 234, 0.18);
  --line-inv: rgba(12, 12, 12, 0.16);
  --dim: rgba(244, 241, 234, 0.62);
  --dim-strong: rgba(244, 241, 234, 0.78);
  --pad-x: clamp(20px, 4vw, 56px);
  --mono: 'Space Mono', ui-monospace, monospace;
  --sans: 'Archivo', -apple-system, sans-serif;
  --display: 'Archivo Black', 'Archivo', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--bone);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

::selection { background: var(--bone); color: var(--ink); }

a { color: inherit; transition: opacity .15s ease, background .15s ease, color .15s ease; }
a:hover { opacity: .75; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--bone);
  outline-offset: 3px;
  opacity: 1;
}

img { max-width: 100%; }

/* ---------- Type utilities ---------- */
.label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.label--dim { color: var(--dim); }

.display {
  font-family: var(--display);
  letter-spacing: -0.05em;
  line-height: 0.86;
  text-transform: lowercase;
  overflow-wrap: break-word;
}

/* ---------- Header ---------- */
.site-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 20px var(--pad-x);
  border-bottom: 1px solid var(--line);
}
.site-header .est { justify-self: start; }
.site-header .logo-link { display: block; justify-self: center; }
.site-header .logo-link img { height: 48px; width: auto; display: block; }
.site-header nav {
  display: flex;
  gap: clamp(16px, 2.5vw, 36px);
  justify-self: end;
}
.site-header nav a { text-decoration: none; }
.site-header nav a[aria-current="page"] {
  border-bottom: 2px solid var(--bone);
  padding-bottom: 2px;
}

/* ---------- Marquee ---------- */
.ticker {
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}
.ticker__track {
  display: flex;
  white-space: nowrap;
  width: max-content;
  animation: rthnkr-marquee 28s linear infinite;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--dim);
}
.ticker__track span { padding-right: 48px; }
@keyframes rthnkr-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker__track { animation: none; } }

/* ---------- Hero ---------- */
.hero {
  padding: clamp(48px, 8vh, 104px) var(--pad-x);
  border-bottom: 1px solid var(--line);
}
.hero__eyebrow { margin-bottom: clamp(20px, 3vh, 36px); letter-spacing: 0.28em; }
.hero h1 { font-size: clamp(56px, 15.5vw, 248px); }
.hero--sub h1 { font-size: clamp(48px, 12.5vw, 200px); }
.hero--contact h1 { font-size: clamp(48px, 13.5vw, 220px); }
.hero__deck {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: clamp(24px, 4vw, 64px);
  margin-top: clamp(36px, 6vh, 64px);
  align-items: start;
}
.hero__lede {
  font-size: clamp(17px, 1.7vw, 22px);
  font-weight: 600;
  line-height: 1.4;
  max-width: 44ch;
}
.hero__lede--home { max-width: 38ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid var(--bone);
  padding: 16px 30px;
  background: transparent;
  color: var(--bone);
  cursor: pointer;
  text-align: center;
}
.btn:hover { background: var(--bone); color: var(--ink); opacity: 1; }
.btn--solid { background: var(--bone); color: var(--ink); }
.btn--solid:hover { background: transparent; color: var(--bone); }
.hero__deck .btn { justify-self: end; }

/* ---------- Index list (What we build) ---------- */
.index-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 28px 0 18px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.index-head strong { font-weight: 700; }
.index-head span:last-child { color: var(--dim); }

.index-list { border-top: 1px solid var(--line); }
.index-row {
  text-decoration: none;
  display: grid;
  grid-template-columns: 56px minmax(0, 2fr) minmax(0, 3fr) 24px;
  gap: 20px;
  align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.index-row:hover { background: var(--bone); color: var(--ink); opacity: 1; }
.index-row:hover .index-row__num,
.index-row:hover .index-row__desc { color: rgba(12, 12, 12, 0.6); }
.index-row__num { font-family: var(--mono); font-size: 11px; color: var(--dim); }
.index-row__name { font-weight: 700; font-size: 17px; }
.index-row__desc { font-size: 13.5px; color: var(--dim); }

/* ---------- Stats strip ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
}
.stats > div {
  padding: 26px var(--pad-x) 30px;
  border-right: 1px solid var(--line);
}
.stats > div:last-child { border-right: none; }
.stats .label { display: block; margin-bottom: 8px; }
.stats strong { font-weight: 700; font-size: 15px; }

/* ---------- Method phases ---------- */
.phase {
  display: grid;
  grid-template-columns: clamp(120px, 16vw, 240px) minmax(0, 1fr) minmax(0, 2fr);
  gap: clamp(20px, 3vw, 48px);
  padding: clamp(32px, 5vh, 56px) var(--pad-x);
  border-bottom: 1px solid var(--line);
}
.phase__num {
  font-family: var(--display);
  font-size: clamp(40px, 5vw, 72px);
  letter-spacing: -0.04em;
  line-height: 1;
}
.phase h2 {
  font-family: var(--display);
  letter-spacing: -0.04em;
  font-size: clamp(24px, 2.6vw, 36px);
  line-height: 1;
  text-transform: lowercase;
}
.phase .label { display: block; margin-bottom: 12px; }
.phase p { font-size: 15px; line-height: 1.65; color: var(--dim-strong); max-width: 56ch; }
.phase--inverted {
  background: var(--bone);
  color: var(--ink);
  border-bottom: 1px solid var(--line-inv);
}
.phase--inverted .label { color: rgba(12, 12, 12, 0.55); }
.phase--inverted p { color: rgba(12, 12, 12, 0.72); }
.phase--inverted strong { color: var(--ink); }

/* ---------- Two-up profiles / founders ---------- */
.two-up {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.two-up > div { padding: clamp(28px, 4vw, 52px) clamp(20px, 3vw, 44px); }
.two-up > div:first-child { border-right: 1px solid var(--line); padding-left: 0; }
.two-up > div:last-child { padding-right: 0; }
.two-up h3 {
  font-family: var(--display);
  letter-spacing: -0.04em;
  font-size: clamp(26px, 2.8vw, 38px);
  line-height: 1;
  margin-bottom: 16px;
  text-transform: lowercase;
}
.two-up .label { display: block; margin-bottom: 18px; }
.two-up p { font-size: 14.5px; line-height: 1.65; color: var(--dim-strong); }
.two-up p strong { color: var(--bone); }

.founders {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--line);
}
.founders > article {
  padding: clamp(32px, 5vh, 64px) var(--pad-x);
}
.founders > article:first-child { border-right: 1px solid var(--line); }
.founders .label { display: block; margin-bottom: 24px; }
.founders h2 {
  font-family: var(--display);
  letter-spacing: -0.045em;
  font-size: clamp(32px, 3.6vw, 52px);
  line-height: 0.95;
  margin-bottom: 8px;
  text-transform: lowercase;
}
.founders .role { margin-bottom: 24px; color: var(--dim); }
.founders p { font-size: 14.5px; line-height: 1.65; color: var(--dim-strong); max-width: 52ch; }
.founders p + p { margin-top: 14px; }
.founders p strong { color: var(--bone); }
.founders .links { margin-top: 22px; display: flex; gap: 22px; }
.founders .links a { text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 2px; }

/* ---------- Generic sections ---------- */
.section-x { padding-left: var(--pad-x); padding-right: var(--pad-x); }
.strip-note {
  padding: clamp(32px, 5vh, 56px) var(--pad-x);
  border-bottom: 1px solid var(--line);
}
.strip-note p {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--dim);
  line-height: 1.9;
}
.strip-note a { color: var(--bone); }

.cta-line {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--dim);
  padding: 24px 0;
  line-height: 1.9;
}
.cta-line a { color: var(--bone); }

/* ---------- Contact ---------- */
.contact-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(56px, 9vh, 110px) var(--pad-x) clamp(40px, 6vh, 72px);
}
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: clamp(32px, 5vw, 80px);
  margin-top: clamp(36px, 6vh, 64px);
  align-items: start;
}
.contact-form { display: grid; gap: 18px; }
.contact-form label { display: grid; gap: 8px; }
.contact-form input,
.contact-form textarea {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--bone);
  font-family: var(--sans);
  font-size: 15px;
  padding: 14px 16px;
  border-radius: 0;
  width: 100%;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: rgba(244, 241, 234, 0.35); }
.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--bone); outline: none; }
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-alt {
  margin-top: 26px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dim);
  line-height: 2;
}
.contact-alt a { color: var(--bone); text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 2px; }

.watermark {
  overflow: hidden;
  padding: 0 var(--pad-x);
}
.watermark img {
  display: block;
  width: 100%;
  max-width: 1100px;
  opacity: 0.14;
  margin-bottom: -2%;
}

/* ---------- Footer ---------- */
.site-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 24px var(--pad-x);
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dim);
}
.site-footer a { text-decoration: none; color: var(--bone); }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--bone);
  color: var(--ink);
  padding: 10px 18px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  z-index: 100;
}
.skip-link:focus { left: 0; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats > div { border-right: none; border-bottom: 1px solid var(--line); }
  .stats > div:nth-child(odd) { border-right: 1px solid var(--line); }
  .stats > div:nth-child(n+3) { border-bottom: none; }

  .phase { grid-template-columns: clamp(64px, 10vw, 120px) minmax(0, 1fr); }
  .phase p { grid-column: 2; }

  .founders { grid-template-columns: 1fr; }
  .founders > article:first-child { border-right: none; border-bottom: 1px solid var(--line); }

  .two-up { grid-template-columns: 1fr; }
  .two-up > div:first-child { border-right: none; border-bottom: 1px solid var(--line); padding-left: 0; padding-right: 0; }
  .two-up > div:last-child { padding-left: 0; padding-right: 0; }

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

@media (max-width: 720px) {
  .site-header {
    grid-template-columns: auto 1fr;
    grid-template-areas: "logo nav" "est est";
    row-gap: 10px;
  }
  .site-header .logo-link { grid-area: logo; justify-self: start; }
  .site-header nav { grid-area: nav; flex-wrap: wrap; row-gap: 8px; }
  .site-header .est { grid-area: est; display: none; }

  .hero h1 { font-size: clamp(52px, 16vw, 96px); }
  .hero--sub h1, .hero--contact h1 { font-size: clamp(44px, 14vw, 84px); }

  .hero__deck { grid-template-columns: 1fr; }
  .hero__deck .btn { justify-self: start; }

  .index-row { grid-template-columns: 40px minmax(0, 1fr) 20px; row-gap: 4px; }
  .index-row__desc { grid-column: 2; }
  .index-row > span[aria-hidden] { grid-row: 1; grid-column: 3; }

  .phase { grid-template-columns: 1fr; gap: 14px; }
  .phase p { grid-column: 1; }
}
