/* ============================================================
   Data and Learning Where it Matters — project page
   ============================================================ */

:root {
  --ink:        #15202e;
  --ink-soft:   #4a5a6e;
  --ink-faint:  #8696a8;
  --bg:         #ffffff;
  --bg-warm:    #faf7f3;
  --bg-warm-2:  #f4efe8;
  --accent:     #e8743b;   /* orange — from the method figure */
  --accent-d:   #cc5f2b;
  --accent-2:   #2f6fb3;   /* blue — from the method figure */
  --peach:      #fbe6d8;
  --peach-line: #f3d3bf;
  --line:       #e8e2da;
  --shadow:     0 18px 50px -22px rgba(20, 34, 50, .28);
  --shadow-sm:  0 8px 24px -14px rgba(20, 34, 50, .25);
  --radius:     18px;
  --maxw:       1120px;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }

a { color: var(--accent-d); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 56px;
  background:
    radial-gradient(1100px 520px at 50% -8%, var(--peach) 0%, rgba(251,230,216,0) 62%),
    linear-gradient(180deg, var(--bg-warm) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(20,34,50,.045) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(900px 460px at 50% 0%, #000 0%, transparent 70%);
          mask-image: radial-gradient(900px 460px at 50% 0%, #000 0%, transparent 70%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; text-align: center; }

.venue-pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: var(--accent-d);
  background: #fff;
  border: 1px solid var(--peach-line);
  padding: 6px 14px; border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.venue-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

h1.title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.2rem, 5.2vw, 4.0rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 26px auto 10px;
  max-width: 26ch;
  color: var(--ink);
  text-wrap: balance;
}
h1.title .accent {
  background: linear-gradient(180deg, transparent 62%, var(--peach) 62%);
  padding: 0 .08em;
}

.authors {
  font-size: 1.02rem; color: var(--ink-soft); margin: 4px 0 2px;
  font-weight: 500;
}
.author-note { font-size: .92rem; color: var(--ink-faint); margin: 0 0 26px; }

/* tagline — the "catchy text at the top" */
.tagline {
  font-family: var(--serif);
  font-size: clamp(1.18rem, 2.3vw, 1.55rem);
  line-height: 1.5;
  color: var(--ink);
  max-width: 760px;
  margin: 0 auto 6px;
  font-weight: 420;
}
.tagline .hl { color: var(--accent-d); font-weight: 600; }
.tagline .hl2 { color: var(--accent-2); font-weight: 600; font-style: normal; }

.lead-out {
  max-width: 56ch; margin: 18px auto 30px; color: var(--ink-soft); font-size: 1.04rem;
}
.lead-out strong { color: var(--ink); }

/* buttons */
.btn-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 8px; }
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 11px 20px; border-radius: 999px;
  font-weight: 600; font-size: .98rem;
  border: 1px solid var(--ink);
  background: var(--ink); color: #fff;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn.alt { background: #fff; color: var(--ink); border-color: var(--line); }
.btn.alt:hover { border-color: var(--ink-faint); }
.btn.soon { background: var(--bg-warm-2); color: var(--ink-soft); border-color: var(--line); cursor: default; }
.btn.soon:hover { transform: none; box-shadow: none; }
.btn svg { width: 17px; height: 17px; }
.btn .badge { font-size: .7rem; font-weight: 700; letter-spacing: .03em; background: var(--peach); color: var(--accent-d); padding: 2px 7px; border-radius: 999px; }

.sped {
  display: inline-flex; align-items: center; gap: 7px;
  margin-top: 26px; font-size: .85rem; color: var(--ink-faint);
}
.sped svg { width: 15px; height: 15px; opacity: .7; }

/* ---------- SECTIONS ---------- */
section { padding: 72px 0; }
section.tight { padding: 40px 0 30px; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 40px; }
.eyebrow {
  font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent-d); margin: 0 0 12px;
}
h2.sec-title {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 14px; color: var(--ink);
}
.section-head p { color: var(--ink-soft); font-size: 1.06rem; margin: 0; }

.alt-bg { background: linear-gradient(180deg, var(--bg-warm) 0%, var(--bg-warm-2) 100%); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---------- MONEY VIDEO ---------- */
.money { padding-top: 8px; }
.money-frame {
  position: relative; max-width: 1000px; margin: 0 auto;
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid var(--line);
  background: #000;
}
.money-frame video { display: block; width: 100%; height: auto; }
.money-cap {
  text-align: center; margin: 22px auto 0; max-width: 720px;
}
.money-cap .tag {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent-d); background: var(--peach); padding: 4px 12px; border-radius: 999px; margin-bottom: 12px;
}
.money-cap h3 { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; margin: 0 0 6px; }
.money-cap p { color: var(--ink-soft); margin: 0; }

/* ---------- ABSTRACT ---------- */
.abstract-card { max-width: 800px; margin: 0 auto; }
.abstract-card p { color: var(--ink-soft); font-size: 1.08rem; }
.abstract-card p .em { color: var(--ink); font-weight: 600; }

/* ---------- STATS ---------- */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
  max-width: 920px; margin: 40px auto 0;
}
.stat {
  text-align: center; padding: 26px 14px; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.stat .num { font-family: var(--serif); font-size: clamp(1.9rem, 4vw, 2.7rem); font-weight: 600; color: var(--accent-d); line-height: 1; }
.stat .num.blue { color: var(--accent-2); }
.stat .lab { font-size: .9rem; color: var(--ink-soft); margin-top: 8px; }

/* ---------- VIDEO GRID ---------- */
.vgrid { display: grid; gap: 26px; }
.vgrid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.vgrid.cols-3 { grid-template-columns: repeat(3, 1fr); }

.vcard {
  border-radius: var(--radius); overflow: hidden;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.vcard:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.vcard .vid-wrap { position: relative; background: #0c0c0c; line-height: 0; }
.vcard video { display: block; width: 100%; height: auto; }
.vcard .vmeta { padding: 16px 18px 18px; }
.vcard .vmeta .k {
  display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  color: var(--accent-2); margin-bottom: 5px;
}
.vcard .vmeta .k.ood { color: var(--accent-d); }
.vcard .vmeta h4 { margin: 0 0 3px; font-size: 1.06rem; font-weight: 650; }
.vcard .vmeta p { margin: 0; font-size: .92rem; color: var(--ink-soft); line-height: 1.5; }

/* ---------- METHOD ---------- */
.method-fig {
  max-width: 1060px; margin: 0 auto;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow);
  transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s ease;
}
.method-fig:hover {
  transform: translateY(-6px) scale(1.012);
  box-shadow: 0 30px 70px -28px rgba(20, 34, 50, .42);
}
.method-fig img { width: 100%; height: auto; display: block; border-radius: 8px; }
.method-fig figcaption { margin-top: 16px; text-align: center; color: var(--ink-soft); font-size: .96rem; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 1000px; margin: 40px auto 0; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px; box-shadow: var(--shadow-sm); position: relative; }
.step .n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--peach); color: var(--accent-d); font-weight: 700; font-family: var(--serif); font-size: 1.1rem;
  margin-bottom: 14px;
}
.step h4 { margin: 0 0 4px; font-size: 1.12rem; font-weight: 650; }
.step .sub { color: var(--accent-2); font-size: .85rem; font-weight: 600; margin: 0 0 10px; }
.step ul { margin: 0; padding-left: 18px; color: var(--ink-soft); font-size: .94rem; }
.step ul li { margin: 4px 0; }
.step .time { position: absolute; top: 22px; right: 22px; font-size: .78rem; font-weight: 700; color: var(--ink-faint); background: var(--bg-warm-2); padding: 3px 10px; border-radius: 999px; }

/* ---------- FOOTER ---------- */
footer {
  background: var(--ink); color: #c8d2dd; padding: 48px 0 40px; text-align: center;
}
footer .ftitle { font-family: var(--serif); color: #fff; font-size: 1.3rem; margin: 0 auto 10px; max-width: none; }
footer p { margin: 6px auto; max-width: 640px; font-size: .92rem; color: #93a3b3; }
footer .anon { color: #fff; font-weight: 600; }
footer a { color: #f0a883; }

/* ---------- reveal-on-scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .vgrid.cols-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  section { padding: 54px 0; }
  .hero { padding: 64px 0 44px; }
  .vgrid.cols-2, .vgrid.cols-3 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .btn { padding: 10px 16px; font-size: .92rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
