/* ============================================================
   THE T1D PLAYBOOK
   Warm paper, near-black ink, editorial cards, mono labels
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Space+Mono:wght@400;700&display=swap');

:root {
  --bg: #F1EFE7;
  --bg-2: #E9E6DB;
  --paper: #F8F6EF;
  --ink: #15140F;
  --ink-2: #57544B;
  --ink-3: #928E81;
  --line: #D8D4C6;
  --line-2: #C8C3B2;
  --dark: #17160F;
  --dark-2: #211F16;
  --tan: #CBC4AE;
  --olive: #7C7B58;
  --cream: #FBFAF4;
  --on-dark: #EFEDE2;
  --radius: 22px;
  --radius-sm: 14px;
  --font: "Inter", "Helvetica Neue", Arial, sans-serif;
  --grotesk: "Inter", "Helvetica Neue", Arial, sans-serif;
  --mono: "Space Mono", "SFMono-Regular", Menlo, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font); background: var(--bg); color: var(--ink);
  line-height: 1.6; -webkit-font-smoothing: antialiased; min-height: 100vh;
  overflow-x: hidden;
}
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
a, button { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--ink); outline-offset: 4px;
}
.skip-link {
  position: fixed; left: 16px; top: 12px; z-index: 100;
  background: var(--dark); color: var(--on-dark); padding: 10px 14px;
  font-family: var(--mono); font-size: 12px; text-decoration: none;
  transform: translateY(-160%); transition: transform .18s ease;
}
.skip-link:focus { transform: translateY(0); }

/* ---------- mono label ---------- */
.label {
  font-family: var(--mono); font-size: 11px; font-weight: 400;
  letter-spacing: 1.5px; text-transform: uppercase; color: var(--ink-2);
}

/* ---------- announcement bar ---------- */
.topbar {
  background: var(--dark); color: var(--on-dark); text-align: center;
  font-family: var(--mono); font-size: 11px; letter-spacing: 1.2px;
  text-transform: uppercase; padding: 9px 16px;
}

/* ---------- nav ---------- */
header { position: sticky; top: 0; z-index: 50; background: rgba(241,239,231,0.9); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding-top: 16px; padding-bottom: 16px; }
.nav-left { display: flex; gap: 26px; }
.nav-left a, .nav-right a { font-family: var(--mono); font-size: 12px; letter-spacing: 0.5px; text-transform: uppercase; color: var(--ink-2); text-decoration: none; }
.nav-left a:hover, .nav-right a:hover { color: var(--ink); }
.nav-left a.active, .nav-right a.active { color: var(--ink); }
.brand { font-family: var(--grotesk); font-weight: 700; font-size: 19px; letter-spacing: -0.5px; color: var(--ink); text-decoration: none; text-align: center; white-space: nowrap; }
.nav-right { display: flex; justify-content: flex-end; gap: 22px; align-items: center; }
.mobile-only { display: none; }

/* ---------- buttons ---------- */
.btn-pill {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono);
  font-size: 12px; letter-spacing: 0.5px; text-transform: uppercase; text-decoration: none;
  background: var(--dark); color: var(--on-dark); padding: 12px 22px; border-radius: 999px;
  border: 1px solid var(--dark); transition: all .18s;
}
.btn-pill:hover { background: transparent; color: var(--ink); }
.btn-pill.ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-pill.ghost:hover { background: var(--dark); color: var(--on-dark); border-color: var(--dark); }
.btn-pill.on-dark { background: var(--on-dark); color: var(--ink); border-color: var(--on-dark); }
.btn-pill.on-dark:hover { background: transparent; color: var(--on-dark); }

/* ---------- hero ---------- */
.hero { padding: 64px 0 26px; }
.hero-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; border-top: 1px solid var(--line); padding-top: 18px; margin-bottom: 30px; }
.hero-top > .label:first-child { white-space: nowrap; }
.hero-meta { text-align: right; display: flex; flex-direction: column; gap: 6px; }
.h1 {
  font-family: var(--grotesk); font-weight: 500; color: var(--ink);
  font-size: 74px; line-height: 1.0; letter-spacing: 0;
}
.h1 .mut { color: var(--ink-3); }
.hero-sub { max-width: 480px; margin-top: 26px; font-size: 17px; color: var(--ink-2); }
.hero-actions { margin-top: 30px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero-format { margin-top: 18px; color: var(--ink-3); }
.hero-img { margin-top: 44px; width: 100%; aspect-ratio: 2/1; border-radius: var(--radius); background-size: cover; background-position: center; }

/* ---------- section frame ---------- */
section { padding: 56px 0; }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; border-top: 1px solid var(--line); padding-top: 20px; margin-bottom: 30px; }
.sec-head h2 { font-family: var(--grotesk); font-weight: 500; font-size: 36px; letter-spacing: 0; line-height: 1.05; color: var(--ink); }
.sec-head h2 .mut { color: var(--ink-3); }
.sec-head .sup { font-family: var(--mono); font-size: 12px; color: var(--ink-3); }

/* ---------- bento ---------- */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; }
.b-card { min-width: 0; border-radius: var(--radius); padding: 26px; background: var(--cream); border: 1px solid var(--line); display: flex; flex-direction: column; min-height: 210px; grid-column: span 4; transition: transform .2s ease, border-color .2s ease; }
a.b-card { text-decoration: none; color: inherit; }
a.b-card:hover { transform: translateY(-3px); }
a.b-card:not(.img):hover { border-color: var(--ink); }
a.b-card:not(.img) h3 { display: inline-block; }
a.b-card:not(.img):hover h3 { text-decoration: underline; text-underline-offset: 3px; }
.b-card.dark { background: var(--dark); border-color: var(--dark); color: var(--on-dark); }
.b-card.tan { background: var(--tan); border-color: var(--tan); }
.b-card.paper { background: var(--paper); border-color: var(--line-2); }
.b-card.span6 { grid-column: span 6; }
.b-card.span8 { grid-column: span 8; }
.b-card.span12 { grid-column: span 12; }
.b-card .num { font-family: var(--mono); font-size: 12px; color: var(--ink-3); margin-bottom: auto; }
.b-card.dark .num { color: #9A968A; }
.b-card h3 { font-family: var(--grotesk); font-weight: 500; font-size: 22px; letter-spacing: 0; margin: 22px 0 8px; color: inherit; overflow-wrap: anywhere; }
.b-card p { font-size: 14.5px; color: var(--ink-2); }
.b-card.dark p { color: #B6B2A4; }
.b-card .chip { align-self: flex-start; margin-bottom: 4px; font-family: var(--mono); font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--ink-2); background: rgba(0,0,0,0.05); padding: 5px 11px; border-radius: 999px; }
.b-card.dark .chip { color: var(--on-dark); background: rgba(255,255,255,0.1); }
.b-card.img { padding: 0; overflow: hidden; border: none; position: relative; }
.b-card.img .bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.b-card.img .cap { position: relative; z-index: 2; margin-top: auto; padding: 24px; color: var(--on-dark); }
.b-card.img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(15,14,9,0.72), rgba(15,14,9,0) 60%); z-index: 1; }

/* ---------- feature / founder ---------- */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; border-top: 1px solid var(--line); padding-top: 40px; }
.feature.flip .feat-media { order: 2; }
.feat-media { aspect-ratio: 4/5; border-radius: var(--radius); background-size: cover; background-position: center; }
.feat-body h2 { font-family: var(--grotesk); font-weight: 500; font-size: 40px; letter-spacing: 0; line-height: 1.05; margin: 16px 0 18px; color: var(--ink); }
.feat-body p { font-size: 16px; color: var(--ink-2); margin-bottom: 16px; }
.spec-row { display: flex; gap: 0; border-top: 1px solid var(--line); margin-top: 22px; }
.spec-row .spec { flex: 1; padding: 16px 0; border-right: 1px solid var(--line); }
.spec-row .spec:last-child { border-right: none; padding-left: 0; }
.spec .k { font-family: var(--mono); font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--ink-3); }
.spec .v { font-family: var(--grotesk); font-size: 24px; font-weight: 500; color: var(--ink); margin-top: 4px; }

/* ---------- prose (story) ---------- */
.prose { max-width: 680px; }
.prose p { font-size: 18px; color: var(--ink-2); margin-bottom: 22px; line-height: 1.72; }
.prose p strong { color: var(--ink); font-weight: 600; }
.prose .punch { font-family: var(--grotesk); color: var(--ink); font-weight: 500; font-size: 22px; letter-spacing: 0; }
.prose a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.bigquote { font-family: var(--grotesk); font-weight: 500; font-size: 38px; letter-spacing: 0; line-height: 1.18; color: var(--ink); max-width: 880px; }
.bigquote .who { display: block; margin-top: 22px; font-family: var(--mono); font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--ink-3); }

/* ---------- list ---------- */
.lined-list { list-style: none; border-top: 1px solid var(--line); }
.lined-list li { padding: 18px 0; border-bottom: 1px solid var(--line); display: flex; gap: 18px; align-items: baseline; }
.lined-list li .n { font-family: var(--mono); font-size: 12px; color: var(--ink-3); min-width: 28px; }
.lined-list li .t { font-size: 16.5px; color: var(--ink-2); }
.lined-list li .t strong { color: var(--ink); font-weight: 600; }

/* ---------- big CTA ---------- */
.cta-band { border-radius: var(--radius); background: var(--dark); color: var(--on-dark); padding: 70px 40px; text-align: center; margin: 30px 0; }
.cta-band h2 { font-family: var(--grotesk); font-weight: 500; font-size: 42px; letter-spacing: 0; line-height: 1.06; margin-bottom: 16px; }
.cta-band h2 .mut { color: #8C887B; }
.cta-band p { color: #B6B2A4; margin-bottom: 28px; }
.cta-band .hero-actions { justify-content: center; }

/* ---------- page hero (inner) ---------- */
.page-hero { padding: 56px 0 30px; border-bottom: 1px solid var(--line); }
.page-hero .h1 { font-size: 64px; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); padding: 46px 0 56px; margin-top: 20px; }
.foot-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; margin-bottom: 34px; }
.foot-brand { font-family: var(--grotesk); font-weight: 700; font-size: 20px; letter-spacing: -0.5px; color: var(--ink); }
.foot-links { display: flex; flex-wrap: wrap; gap: 18px; }
.foot-links a { font-family: var(--mono); font-size: 12px; letter-spacing: 0.5px; text-transform: uppercase; color: var(--ink-2); text-decoration: none; }
.foot-links a:hover { color: var(--ink); }
.disclaimer { font-size: 13px; color: var(--ink-3); max-width: 760px; line-height: 1.7; border-top: 1px solid var(--line); padding-top: 22px; }
.disclaimer strong { color: var(--ink-2); }

/* ---------- motion ---------- */
.anim-ready .reveal { opacity: 0; transform: translateY(24px); }
.reveal { transition: opacity .8s cubic-bezier(.22,.61,.36,1), transform .8s cubic-bezier(.22,.61,.36,1); }
.reveal.in { opacity: 1; transform: none; }
.anim-ready .stagger > * { opacity: 0; transform: translateY(24px); transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1); }
.stagger.in > * { opacity: 1; transform: none; }
.stagger.in > *:nth-child(2){transition-delay:.07s} .stagger.in > *:nth-child(3){transition-delay:.14s}
.stagger.in > *:nth-child(4){transition-delay:.21s} .stagger.in > *:nth-child(5){transition-delay:.28s} .stagger.in > *:nth-child(6){transition-delay:.35s}
.hero .h1, .hero-sub, .hero-actions, .hero-format, .hero-top { opacity: 0; transform: translateY(20px); animation: up .9s cubic-bezier(.22,.61,.36,1) forwards; }
.hero-top { animation-delay: .05s } .hero .h1 { animation-delay: .15s } .hero-sub { animation-delay: .28s } .hero-actions { animation-delay: .38s } .hero-format { animation-delay: .46s }
.hero-img { opacity: 0; animation: fade 1.1s ease .5s forwards; }
@keyframes up { to { opacity: 1; transform: none; } }
@keyframes fade { to { opacity: 1; } }

@media (max-width: 860px) {
  .nav {
    grid-template-areas: "brand action" "links links";
    grid-template-columns: minmax(0, 1fr) auto;
    row-gap: 14px;
  }
  .brand { grid-area: brand; text-align: left; }
  .nav-left {
    grid-area: links; display: flex; gap: 22px; overflow-x: auto;
    padding: 12px 0 0; border-top: 1px solid var(--line);
    scrollbar-width: none;
  }
  .nav-left::-webkit-scrollbar { display: none; }
  .nav-right { grid-area: action; }
  .nav-right > a:not(.btn-pill) { display: none; }
  .mobile-only { display: inline; }
  .h1 { font-size: 54px; }
  .sec-head h2 { font-size: 32px; }
  .feat-body h2 { font-size: 34px; }
  .bigquote { font-size: 32px; }
  .cta-band h2 { font-size: 36px; }
  .page-hero .h1 { font-size: 52px; }
  .bento { grid-template-columns: repeat(6, 1fr); }
  .b-card, .b-card.span6, .b-card.span8, .b-card.span12 { grid-column: span 6; }
  .feature { grid-template-columns: 1fr; }
  .feature.flip .feat-media { order: 0; }
}
@media (max-width: 560px) {
  .wrap { padding-left: 18px; padding-right: 18px; }
  .topbar { font-size: 9px; letter-spacing: 0.8px; }
  .nav { padding: 12px 18px; }
  .brand { font-size: 16px; }
  .nav-right .btn-pill { padding: 10px 14px; font-size: 10px; }
  .nav-left { gap: 18px; }
  .nav-left a { font-size: 11px; }
  .hero, .page-hero { padding-top: 40px; }
  .hero-top { align-items: flex-start; margin-bottom: 24px; }
  .hero-meta { max-width: 150px; }
  .h1, .page-hero .h1 { font-size: 40px; line-height: 1.04; }
  .hero-sub { font-size: 16px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .btn-pill { justify-content: center; text-align: center; }
  .hero-img { margin-top: 30px; aspect-ratio: 4/3; }
  section { padding: 42px 0; }
  .sec-head { align-items: flex-start; flex-direction: column; gap: 12px; }
  .sec-head h2 { font-size: 28px; }
  .b-card { padding: 22px; min-height: 190px; }
  .b-card.img { min-height: 320px !important; }
  .feature { gap: 26px; padding-top: 28px; }
  .feat-media { aspect-ratio: 4/4.5; }
  .feat-body h2 { font-size: 30px; }
  .spec-row { flex-wrap: wrap; }
  .spec-row .spec { min-width: 33%; }
  .spec .v { font-size: 20px; }
  .prose p { font-size: 17px; }
  .bigquote { font-size: 27px; }
  .lined-list li { align-items: flex-start; }
  .cta-band { padding: 50px 22px; }
  .cta-band h2 { font-size: 30px; }
  .foot-grid { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  .anim-ready .reveal, .anim-ready .stagger > * { opacity:1!important; transform:none!important; }
  .hero .h1,.hero-sub,.hero-actions,.hero-format,.hero-top,.hero-img { animation: none; opacity: 1; transform: none; }
}
