/* ==========================================================================
   PANPALS · STYLES
   Renkler ve ölçüler en üstteki :root içinde. Tek font: Roboto.
   ========================================================================== */

:root {
  --wine: #481D24;
  --wine-soft: #5e2d35;
  --wine-08: rgba(72, 29, 36, .07);
  --wine-15: rgba(72, 29, 36, .14);
  --grey: #d9d9d9;
  --paper: #f6f3ef;     /* sayfa zemini, kırık beyaz */
  --soft: #eee8e1;      /* yumuşak yüzey */
  --soft-2: #e5ddd3;
  --white: #fffdfa;
  --ink: #2b1215;
  --muted: #7a6a6c;
  --faint: #c9bdb6;

  --font: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 36px);
  --section: clamp(56px, 8vw, 112px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --lift: 0 1px 2px rgba(43, 18, 21, .05), 0 18px 40px -22px rgba(43, 18, 21, .35);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.55; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--wine); color: var(--paper); }
:focus-visible { outline: 2px solid var(--wine); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h1, h2, h3, h4 { margin: 0; color: var(--wine); font-weight: 500; letter-spacing: -0.025em; line-height: 1.08; }
h1 { font-size: clamp(34px, 5vw, 60px); letter-spacing: -0.035em; }
h2 { font-size: clamp(26px, 3.3vw, 40px); }
h3 { font-size: clamp(17px, 1.6vw, 20px); letter-spacing: -0.01em; line-height: 1.25; }
p { margin: 0 0 .9em; }
.label { display: block; font-size: 13px; font-weight: 500; color: var(--muted); margin-bottom: 12px; }
.lead { font-size: clamp(16px, 1.4vw, 18px); line-height: 1.55; color: var(--ink); max-width: 34em; }
.muted { color: var(--muted); }
section { padding: var(--section) 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: clamp(24px, 3.5vw, 40px); flex-wrap: wrap; }
.section-head p { max-width: 28em; margin: 0; color: var(--muted); }
.center { text-align: center; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 18px; border-radius: 999px; border: 0; background: var(--wine); color: var(--paper); font-weight: 500; font-size: 14.5px; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .2s var(--ease), transform .15s var(--ease); }
.btn:hover { background: var(--wine-soft); }
.btn:active { transform: scale(.98); }
.btn--soft { background: var(--soft); color: var(--wine); }
.btn--soft:hover { background: var(--soft-2); }
.btn--small { min-height: 34px; padding: 0 14px; font-size: 13.5px; }
.btn svg { width: 16px; height: 16px; }
.link { color: var(--wine); font-weight: 500; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.link svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.link:hover svg { transform: translateX(3px); }
/* App Store badge in PanPals wine */
.appstore { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px 0 12px; border-radius: 12px; background: var(--wine); color: #fff; text-decoration: none; transition: transform .15s var(--ease), background .2s; }
.appstore:hover { background: var(--wine-soft); transform: translateY(-1px); }
.appstore svg { width: 22px; height: 22px; fill: #fff; }
.appstore span { display: flex; flex-direction: column; line-height: 1.05; }
.appstore small { font-size: 10px; opacity: .9; }
.appstore b { font-size: 17px; font-weight: 500; letter-spacing: -0.01em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.site-header .wrap { display: flex; align-items: center; height: 64px; gap: 14px; }
.brand { display: flex; align-items: center; gap: 3px; text-decoration: none; flex-shrink: 0; }
.brand img.logo { width: 21px; height: auto; margin-top: 2px; }
.brand img.wordmark { height: 19px; width: auto; }
.header-cta { margin-right: auto; }
.nav { display: flex; align-items: center; }
.nav a { text-decoration: none; padding: 6px 10px; border-radius: 999px; font-size: 14.5px; color: var(--ink); }
.nav a:hover { background: var(--wine-08); }
.nav a[aria-current="page"] { color: var(--wine); font-weight: 500; }

/* Mode switch: small, icons only, tooltip on hover */
.mode-switch { position: relative; flex-shrink: 0; width: 52px; height: 28px; border-radius: 999px; border: 0; background: var(--soft-2); cursor: pointer; padding: 0; transition: background .25s var(--ease); }
.mode-switch .knob { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--white); color: var(--wine); display: grid; place-items: center; box-shadow: 0 1px 3px rgba(43, 18, 21, .25); transition: transform .3s var(--ease), background .25s, color .25s; }
.mode-switch .knob svg { width: 14px; height: 14px; }
.mode-switch .ic-game { display: none; }
html[data-mode="game"] .mode-switch { background: var(--wine); }
html[data-mode="game"] .mode-switch .knob { transform: translateX(24px); }
html[data-mode="game"] .mode-switch .ic-game { display: block; }
html[data-mode="game"] .mode-switch .ic-pro { display: none; }
.mode-switch::after { content: attr(data-tip); position: absolute; top: calc(100% + 8px); right: 0; background: var(--ink); color: var(--paper); font-size: 12.5px; font-weight: 500; padding: 5px 10px; border-radius: 8px; white-space: nowrap; opacity: 0; transform: translateY(-4px); pointer-events: none; transition: .18s var(--ease); }
.mode-switch:hover::after, .mode-switch:focus-visible::after { opacity: 1; transform: none; }

.menu-btn { display: none; width: 40px; height: 40px; border: 0; background: transparent; cursor: pointer; border-radius: 50%; color: var(--wine); }
.menu-btn svg { width: 22px; height: 22px; }
.mobile-menu { position: fixed; inset: 64px 0 0 0; z-index: 49; background: var(--paper); padding: 16px var(--gutter) 32px; display: flex; flex-direction: column; gap: 2px; opacity: 0; pointer-events: none; transform: translateY(-6px); transition: opacity .2s, transform .2s var(--ease); overflow-y: auto; }
.mobile-menu.is-open { opacity: 1; pointer-events: auto; transform: none; }
.mobile-menu a:not(.btn):not(.appstore) { font-size: 26px; font-weight: 500; color: var(--wine); text-decoration: none; padding: 6px 0; letter-spacing: -0.02em; }
.mobile-menu .cta-row { margin-top: 20px; }
@media (max-width: 860px) {
  .nav, .header-cta { display: none; }
  .menu-btn { display: inline-grid; place-items: center; }
  .site-header .wrap > .brand { margin-right: auto; }
}

/* ---------- HOME: hero ---------- */
.hero { padding: clamp(36px, 6vw, 80px) 0 0; text-align: center; position: relative; }
.hero-chip { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 999px; background: var(--white); box-shadow: var(--lift); font-size: 13px; color: var(--muted); text-decoration: none; margin-bottom: 26px; }
.hero-chip img { width: 24px; height: 24px; border-radius: 7px; }
.hero-chip b { color: var(--wine); font-weight: 500; }
.hero h1 .nw { white-space: nowrap; }
.hero h1 { font-size: clamp(34px, 8.4vw, 104px); line-height: .98; letter-spacing: -0.05em; max-width: 11.5em; margin: 0 auto 22px; }
.pill-img { display: inline-block; height: .78em; width: 1.5em; border-radius: 999px; overflow: hidden; vertical-align: -0.06em; margin: 0 .04em; transform: rotate(var(--r, -4deg)); box-shadow: var(--lift); }
.pill-img img { width: 100%; height: 100%; object-fit: cover; }
.hero .lead { margin: 0 auto 28px; color: var(--muted); max-width: 33em; }
.hero .cta-row { justify-content: center; }

/* stage: phone + floating widgets + drawings */
.stage { position: relative; max-width: 1100px; margin: clamp(36px, 5vw, 60px) auto 0; height: clamp(600px, 62vw, 680px); display: flex; justify-content: center; }
.stage .phone { position: relative; z-index: 3; }
.float { position: absolute; z-index: 4; will-change: transform; }
.widget { background: var(--white); border-radius: 20px; box-shadow: var(--lift); padding: 14px 16px; text-align: left; font-size: 13.5px; color: var(--ink); }
.widget small { color: var(--muted); font-size: 12px; display: block; }
.widget b { color: var(--wine); font-weight: 500; }
.w-notif { display: flex; gap: 10px; align-items: center; width: 270px; }
.w-notif img { width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0; }
.w-streak { width: 220px; }
.w-streak .n { font-size: 34px; font-weight: 500; color: var(--wine); letter-spacing: -0.03em; line-height: 1; }
.dots { display: flex; gap: 5px; margin-top: 10px; }
.dots i { width: 20px; height: 20px; border-radius: 50%; background: var(--soft); }
.dots i.on { background: var(--wine); }
.w-fame { width: 250px; }
.w-row { display: flex; align-items: center; gap: 8px; padding: 5px 0; }
.w-row .av { display: block; width: 24px; height: 24px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.w-row span { flex: 1; }
.w-row em { font-style: normal; color: var(--wine); font-weight: 500; font-size: 12.5px; }
.drawing { position: absolute; z-index: 1; pointer-events: none; opacity: .9; will-change: transform; }
@media (max-width: 900px) {
  .stage { height: auto; flex-direction: column; align-items: center; gap: 14px; }
  .stage .float { position: relative; left: auto !important; right: auto !important; top: auto !important; bottom: auto !important; transform: none !important; }
  .stage .float.hide-m, .stage .drawing { display: none; }
}

/* ---------- HOME: scroll-reveal statement ---------- */
.reveal-text { font-size: clamp(20px, 2.6vw, 34px); line-height: 1.24; letter-spacing: -0.03em; font-weight: 500; max-width: 26em; margin: 0 auto; text-align: center; }
.reveal-text .w { color: var(--faint); transition: color .35s var(--ease); }
.reveal-text .w.on { color: var(--wine); }
.reveal-text .pill-img { height: .74em; }
.reveal-note { text-align: center; color: var(--muted); margin-top: 26px; font-size: 15px; }

/* ---------- HOME: three pillars with live mini widgets ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 28px); }
.pillar .tile { background: var(--soft); border-radius: 26px; height: 300px; display: flex; align-items: center; justify-content: center; padding: 20px; margin-bottom: 18px; position: relative; overflow: hidden; }
.pillar h3 { font-size: clamp(19px, 1.9vw, 23px); margin-bottom: 6px; }
.pillar p { color: var(--muted); margin: 0; }
.pillar .k { color: var(--wine); font-weight: 500; font-size: 13px; display: block; margin-bottom: 6px; }
.mini-post { width: 200px; background: var(--white); border-radius: 16px; overflow: hidden; box-shadow: var(--lift); font-size: 12px; transform: rotate(-3deg); }
.mini-post .top { display: flex; align-items: center; gap: 6px; padding: 8px 10px; color: var(--wine); }
.mini-post .top img { width: 20px; height: 20px; border-radius: 50%; }
.mini-post > img { width: 100%; aspect-ratio: 1.1; object-fit: cover; }
.mini-post .bot { padding: 8px 10px 10px; }
.mini-post .bot b { display: block; font-weight: 600; color: var(--ink); margin-top: 2px; }
.mini-like { border: 0; background: none; padding: 0; cursor: pointer; display: inline-flex; gap: 4px; align-items: center; color: var(--ink); font-size: 12px; }
.mini-like svg { width: 15px; height: 15px; color: var(--wine); transition: transform .2s; }
.mini-like.on svg { fill: var(--wine); transform: scale(1.15); }
.mini-chart { width: 240px; background: var(--white); border-radius: 16px; padding: 14px; box-shadow: var(--lift); }
.mini-chart .bars { display: flex; align-items: flex-end; gap: 8px; height: 120px; margin: 10px 0 6px; }
.mini-chart .bars span { flex: 1; background: var(--soft-2); border-radius: 6px 6px 3px 3px; height: 0; transition: height .9s var(--ease); }
.mini-chart .bars span.on { background: var(--wine); }
.mini-chart .days { display: flex; gap: 8px; font-size: 10.5px; color: var(--muted); }
.mini-chart .days span { flex: 1; text-align: center; }
.mini-board { width: 240px; background: var(--white); border-radius: 16px; padding: 12px 14px; box-shadow: var(--lift); font-size: 12.5px; transform: rotate(2deg); }
.mini-board .t { font-weight: 500; color: var(--wine); margin-bottom: 4px; }
@media (max-width: 860px) { .pillars { grid-template-columns: 1fr; } .pillar .tile { height: 260px; } }

/* ---------- HOME: magazine promo ---------- */
.promo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.promo .cover { position: relative; aspect-ratio: 1 / 1.41; max-width: 270px; justify-self: center; width: 100%; }
.promo .cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 4px; box-shadow: 0 40px 60px -30px rgba(43, 18, 21, .55); transition: transform .5s var(--ease); }
.promo .cover img:first-child { transform: rotate(-7deg) translateX(-12%); }
.promo .cover img:last-child { transform: rotate(4deg) translateX(8%); }
.promo .cover:hover img:first-child { transform: rotate(-10deg) translateX(-18%); }
.promo .cover:hover img:last-child { transform: rotate(6deg) translateX(14%); }
.promo h2 { font-size: clamp(32px, 4.4vw, 56px); letter-spacing: -0.04em; margin-bottom: 14px; }
.promo p { color: var(--muted); max-width: 26em; }
@media (max-width: 760px) { .promo { grid-template-columns: 1fr; } .promo .cover { max-width: 260px; } }

/* ---------- HOME: thesis quote ---------- */
.big-quote { text-align: center; max-width: 900px; margin: 0 auto; }
.big-quote p { font-size: clamp(24px, 3.2vw, 40px); font-weight: 300; letter-spacing: -0.03em; line-height: 1.2; color: var(--ink); margin-bottom: 20px; }
.big-quote p b { font-weight: 500; color: var(--wine); }

/* ---------- Faces ---------- */
.faces { display: flex; flex-wrap: wrap; gap: 10px 6px; }
.faces.center { justify-content: center; }
.face { display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; width: 100px; text-align: center; }
.face .ph { width: 76px; height: 76px; border-radius: 50%; overflow: hidden; background: var(--soft); transition: transform .25s var(--ease); }
.face:hover .ph { transform: translateY(-4px) rotate(-4deg); }
.face b { font-size: 14px; font-weight: 500; color: var(--ink); }
.face small { font-size: 12px; color: var(--muted); margin-top: -4px; }
.ph { position: relative; }
.ph img { width: 100%; height: 100%; object-fit: cover; position: relative; }
.ph .initials { position: absolute; inset: 0; display: grid; place-items: center; background: var(--wine); color: var(--paper); font-weight: 500; font-size: 1.4em; }

/* ---------- Download ---------- */
.join { text-align: center; }
.join h2 { font-size: clamp(36px, 6vw, 76px); letter-spacing: -0.05em; margin-bottom: 14px; }
.join p.lead { margin: 0 auto 26px; color: var(--muted); }
.join .cta-row { justify-content: center; }
.join .form { max-width: 440px; margin: 18px auto 0; }
.form { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.form-row { display: flex; gap: 8px; flex-wrap: wrap; }
.field { flex: 1; min-width: 190px; min-height: 42px; padding: 10px 16px; border-radius: 999px; border: 0; background: var(--white); outline: none; box-shadow: inset 0 0 0 1px var(--wine-15); transition: box-shadow .2s; }
textarea.field, select.field { border-radius: 14px; }
textarea.field { min-height: 120px; resize: vertical; }
.field:focus { box-shadow: inset 0 0 0 1.5px var(--wine); }
.form-note { font-size: 13px; color: var(--muted); }
.form-msg { font-size: 14px; color: var(--wine); font-weight: 500; min-height: 1.3em; margin: 0; }
label.lbl { font-size: 13.5px; font-weight: 500; color: var(--wine); display: flex; flex-direction: column; gap: 6px; text-align: left; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 600px) { .two-col { grid-template-columns: 1fr; } }

/* ---------- Inner pages ---------- */
.page-head { padding: clamp(36px, 6vw, 80px) 0 clamp(24px, 4vw, 44px); }
.page-head h1 { margin-bottom: 14px; }
.page-head .lead { color: var(--muted); }
.page-body { padding-top: 0; }
.prose { max-width: 680px; font-size: 17px; line-height: 1.7; }
.prose h2 { font-size: clamp(21px, 2.4vw, 26px); margin: 1.7em 0 .5em; }
.prose h3 { font-size: 18px; margin: 1.5em 0 .4em; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin-bottom: .35em; }
.prose strong { color: var(--wine); font-weight: 500; }
.prose a { color: var(--wine); }
.prose img { border-radius: 14px; margin: 1.4em 0; height: auto; }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 20px; box-shadow: inset 3px 0 0 var(--wine); color: var(--wine); font-size: 1.1em; }
.prose figure { margin: 1.4em 0; }
.prose figcaption { font-size: 13.5px; color: var(--muted); margin-top: 6px; }
.prose .captioned-image-container, .prose .image-link { display: block; }

/* ---------- ABOUT (story + team, Co-Star inspired) ---------- */
.about-hero { text-align: center; padding: clamp(40px, 7vw, 96px) 0 clamp(20px, 3vw, 36px); }
.about-hero h1 { font-size: clamp(44px, 8vw, 104px); letter-spacing: -0.05em; line-height: .95; }
.about-hero p { font-size: clamp(18px, 2vw, 24px); color: var(--muted); margin-top: 14px; font-weight: 300; }
.story-cols { columns: 2 320px; column-gap: clamp(28px, 5vw, 64px); font-size: 17px; line-height: 1.7; max-width: 980px; margin: 0 auto; }
.story-cols p { break-inside: avoid; }
.story-cols strong { color: var(--wine); font-weight: 500; }
.story-cols .sign { color: var(--wine); font-weight: 500; }
.pull { font-size: clamp(26px, 3.6vw, 46px); font-weight: 300; letter-spacing: -0.035em; line-height: 1.15; color: var(--wine); text-align: center; max-width: 16em; margin: 0 auto; }

.founder-card { position: relative; max-width: 860px; margin: 0 auto; background: var(--white); padding: clamp(22px, 4vw, 40px); display: grid; grid-template-columns: 220px 1fr; gap: clamp(20px, 4vw, 40px); align-items: center; box-shadow: var(--lift);
  clip-path: polygon(0.4% 1.2%, 30% 0, 62% 0.8%, 99.4% 0, 100% 40%, 99.3% 98.8%, 70% 100%, 34% 99.2%, 0 100%, 0.6% 60%); }
.founder-card .trio { position: relative; height: 200px; }
.founder-card .trio .ph { position: absolute; width: 112px; height: 112px; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 4px var(--white); }
.founder-card .trio .ph:nth-child(1) { left: 0; top: 0; }
.founder-card .trio .ph:nth-child(2) { left: 96px; top: 24px; }
.founder-card .trio .ph:nth-child(3) { left: 40px; top: 90px; }
.founder-card blockquote { margin: 0 0 14px; font-size: clamp(18px, 2vw, 22px); line-height: 1.4; color: var(--ink); font-weight: 300; }
.founder-card .who { font-size: 13px; color: var(--muted); }
.founder-card .who b { color: var(--wine); font-weight: 500; }
@media (max-width: 640px) { .founder-card { grid-template-columns: 1fr; } .founder-card .trio { height: 170px; width: 210px; margin: 0 auto; } }

.index-title { text-align: center; margin-bottom: 8px; }
.index-sub { text-align: center; color: var(--muted); font-size: 13px; margin-bottom: 26px; }
.team-index { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; max-width: 900px; margin: 0 auto; }
.team-index a { display: block; padding: 12px 14px; border-radius: 12px; background: var(--white); text-decoration: none; transition: background .2s, transform .2s var(--ease); }
.team-index a:hover { background: var(--soft); transform: translateY(-2px); }
.team-index b { display: block; font-weight: 500; color: var(--wine); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; font-size: 15px; }
.team-index small { font-size: 12px; color: var(--muted); }
.team-index a.you b { text-decoration: none; }
@media (max-width: 760px) { .team-index { grid-template-columns: 1fr 1fr; } }

.crew { position: relative; max-width: 1080px; margin: 0 auto; padding: 20px 0 40px; }
.member { position: relative; z-index: 2; width: min(500px, 100%); background: var(--white); border-radius: 6px; padding: 22px 24px; box-shadow: var(--lift); margin-bottom: clamp(60px, 9vw, 120px); scroll-margin-top: 90px; }
.member:nth-of-type(odd) { margin-left: auto; }
.member .top { display: flex; gap: 16px; align-items: center; margin-bottom: 14px; }
.member .ph { width: 76px; height: 76px; border-radius: 50%; overflow: hidden; flex-shrink: 0; background: var(--soft); }
.member .role { font-size: 12px; color: var(--muted); }
.member h3 { font-size: 24px; letter-spacing: -0.025em; margin: 1px 0 4px; }
.member .signs { display: flex; gap: 10px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink); }
.member .signs span { display: inline-flex; align-items: center; gap: 4px; }
.member .signs svg { width: 13px; height: 13px; color: var(--wine); }
.member p { margin: 0; font-size: 15px; color: var(--ink); line-height: 1.6; }
.member .handle { font-size: 13px; color: var(--wine); font-weight: 500; margin-top: 10px; display: inline-block; }
.crew .drawing { position: absolute; z-index: 1; opacity: .95; }


/* ---------- Thesis ---------- */
.thesis-meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 28px; }
.thesis-meta div { background: var(--soft); border-radius: 14px; padding: 12px 14px; }
.thesis-meta small { display: block; font-size: 12.5px; color: var(--muted); }
.thesis-meta b { font-weight: 500; color: var(--wine); }
@media (max-width: 760px) { .thesis-meta { grid-template-columns: 1fr 1fr; } }
.thesis-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 28px); margin-bottom: 40px; }
.thesis-points h3 { margin-bottom: 6px; }
.thesis-points p { color: var(--muted); margin: 0; }
@media (max-width: 760px) { .thesis-points { grid-template-columns: 1fr; } }
.reader { border-radius: 22px; overflow: hidden; background: var(--soft); }
.reader-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; flex-wrap: wrap; }
.reader-bar b { color: var(--wine); font-weight: 500; }
.reader object { display: block; width: 100%; height: min(86vh, 1050px); border: 0; background: var(--soft-2); }
.reader-fallback { padding: clamp(28px, 5vw, 64px); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.reader-fallback img { width: 34px; opacity: .8; }

/* ---------- Careers / contact ---------- */
.empty-state { background: var(--soft); border-radius: 24px; padding: clamp(28px, 5vw, 56px); text-align: center; margin-bottom: 20px; }
.empty-state h2 { margin-bottom: 8px; }
.empty-state p { color: var(--muted); max-width: 30em; margin: 0 auto; }
.card { background: var(--soft); border-radius: 22px; padding: clamp(22px, 3vw, 36px); display: flex; flex-direction: column; gap: 10px; text-decoration: none; }
.card h3 { font-size: clamp(19px, 2vw, 24px); }
.card p { color: var(--muted); margin: 0; }
.form-card { max-width: 680px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(20px, 4vw, 52px); align-items: start; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { display: flex; flex-direction: column; gap: 4px; }
.contact-list a { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-radius: 14px; text-decoration: none; font-size: 16px; color: var(--wine); font-weight: 500; }
.contact-list a:hover { background: var(--soft); }
.contact-list a small { color: var(--muted); font-weight: 400; font-size: 13.5px; }

/* ---------- News: newspaper feed ---------- */
.masthead { text-align: center; padding: clamp(32px, 5vw, 64px) 0 clamp(20px, 3vw, 32px); }
.masthead .dateline { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.masthead h1 { font-size: clamp(40px, 7.5vw, 92px); letter-spacing: -0.045em; font-weight: 700; line-height: .95; }
.masthead .sub { margin: 14px auto 0; color: var(--muted); max-width: 34em; }
.follow { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; margin-top: 20px; font-size: 14px; }
.follow a { text-decoration: none; color: var(--ink); display: inline-flex; gap: 6px; align-items: center; }
.follow a b { color: var(--wine); font-weight: 500; }
.follow a span { color: var(--muted); }
.follow a:hover b { text-decoration: underline; text-underline-offset: 3px; }
.tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 2px; margin: 8px 0 clamp(24px, 4vw, 40px); }
.tab { border: 0; background: transparent; border-radius: 999px; padding: 6px 12px; cursor: pointer; font-size: 14px; color: var(--muted); }
.tab:hover { color: var(--wine); }
.tab[aria-pressed="true"] { background: var(--soft); color: var(--wine); font-weight: 500; }
.stories { display: flex; flex-direction: column; gap: 4px; }
.story { display: grid; grid-template-columns: 150px 1fr 200px; gap: clamp(16px, 3vw, 36px); align-items: center; padding: 16px 18px; margin: 0 -18px; border-radius: 20px; text-decoration: none; color: inherit; transition: background .2s var(--ease); cursor: pointer; border: 0; background: transparent; text-align: left; width: calc(100% + 36px); }
.story:hover { background: var(--soft); }
.story-meta { font-size: 13px; color: var(--muted); display: flex; flex-direction: column; gap: 2px; }
.story-meta b { color: var(--wine); font-weight: 500; font-size: 13.5px; }
.story h3 { font-size: clamp(18px, 2vw, 24px); letter-spacing: -0.02em; line-height: 1.2; margin-bottom: 6px; }
.story p { color: var(--muted); margin: 0; max-width: 38em; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.story .go { margin-top: 8px; font-size: 13.5px; color: var(--wine); font-weight: 500; display: inline-flex; gap: 4px; align-items: center; }
.story .go svg { width: 14px; height: 14px; }
.story-img { aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; background: var(--soft-2); position: relative; }
.story-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.story:hover .story-img img { transform: scale(1.03); }
.story-img.empty { display: grid; place-items: center; background: var(--wine); }
.story-img.empty img { width: 22%; height: auto; filter: brightness(0) invert(.95); object-fit: contain; }
.play { position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; transform: translate(-50%, -50%); border-radius: 50%; background: rgba(255, 253, 250, .9); display: grid; place-items: center; color: var(--wine); }
.play svg { width: 18px; height: 18px; margin-left: 3px; }
.story.lead-story { grid-template-columns: 1.25fr 1fr; padding: 0; margin: 0 0 clamp(20px, 3vw, 36px); width: 100%; }
.story.lead-story:hover { background: transparent; }
.story.lead-story .story-img { aspect-ratio: 16 / 10; border-radius: 22px; }
.story.lead-story h3 { font-size: clamp(26px, 3.4vw, 42px); line-height: 1.06; letter-spacing: -0.03em; }
.story.lead-story p { -webkit-line-clamp: 4; line-clamp: 4; }
.story.lead-story .story-meta { flex-direction: row; gap: 10px; margin-bottom: 10px; }
/* Home: smaller images */
.home-news .story { grid-template-columns: 1fr 120px; grid-template-rows: auto auto; row-gap: 4px; }
.home-news .story-meta { flex-direction: row; gap: 10px; grid-column: 1; align-self: end; }
.home-news .story > div:nth-child(2) { grid-column: 1; align-self: start; }
.home-news .story-img { grid-column: 2; grid-row: 1 / span 2; aspect-ratio: 1; border-radius: 14px; }
@media (max-width: 820px) {
  .story, .story.lead-story { grid-template-columns: 1fr; gap: 12px; }
  .story .story-img { order: -1; }
  .story-meta { flex-direction: row; gap: 10px; }
  .home-news .story { grid-template-columns: 1fr 84px; }
  .home-news .story .story-img { order: 0; }
}

/* News preview (opens on the site first) */
.preview { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; background: rgba(43, 18, 21, .45); backdrop-filter: blur(4px); opacity: 0; pointer-events: none; transition: opacity .25s var(--ease); }
.preview.open { opacity: 1; pointer-events: auto; }
.preview-card { width: min(860px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: var(--white); border-radius: 26px; display: grid; grid-template-columns: 1.1fr 1fr; transform: translateY(14px) scale(.98); transition: transform .3s var(--ease); }
.preview.open .preview-card { transform: none; }
.preview-media { position: relative; background: var(--soft-2); min-height: 320px; }
.preview-media img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.preview-body { padding: clamp(20px, 3vw, 32px); display: flex; flex-direction: column; gap: 10px; }
.preview-body .meta { font-size: 13px; color: var(--muted); }
.preview-body .meta b { color: var(--wine); font-weight: 500; }
.preview-body h3 { font-size: 24px; }
.preview-body .cap { white-space: pre-line; color: var(--ink); font-size: 15px; line-height: 1.6; flex: 1; }
.preview-close { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255, 253, 250, .92); cursor: pointer; display: grid; place-items: center; color: var(--wine); z-index: 2; }
.preview-close svg { width: 18px; height: 18px; }
@media (max-width: 720px) { .preview-card { grid-template-columns: 1fr; } .preview-media { min-height: 0; aspect-ratio: 1; } }

/* ---------- Article reader ---------- */
.article-head { max-width: 760px; margin: 0 auto; padding: clamp(32px, 5vw, 64px) var(--gutter) 24px; }
.article-head h1 { font-size: clamp(30px, 4.4vw, 52px); margin: 6px 0 14px; }
.article-head .meta { color: var(--muted); font-size: 14px; display: flex; gap: 12px; flex-wrap: wrap; }
.article-hero { max-width: 960px; margin: 0 auto 32px; padding: 0 var(--gutter); }
.article-hero img { border-radius: 22px; width: 100%; max-height: 560px; object-fit: cover; }
.article-body { max-width: 680px; margin: 0 auto; padding: 0 var(--gutter) var(--section); }
.article-foot { margin-top: 40px; background: var(--soft); border-radius: 20px; padding: 22px; display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.back-link { font-size: 14px; color: var(--muted); text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.back-link:hover { color: var(--wine); }
.back-link svg { width: 16px; height: 16px; transform: rotate(180deg); }

/* ---------- Magazine flipbook ---------- */
.magazine { padding: clamp(10px, 2vw, 20px) 0; }
.book-stage { position: relative; display: flex; justify-content: center; align-items: center; perspective: 2600px; min-height: 260px; user-select: none; -webkit-user-select: none; }
.book { position: relative; display: flex; box-shadow: 0 40px 70px -36px rgba(43, 18, 21, .55); border-radius: 3px; }
.book .page { width: var(--pw); height: var(--ph); background-color: var(--white); background-repeat: no-repeat; position: relative; cursor: pointer; }
.book .page.left { border-radius: 3px 0 0 3px; }
.book .page.right { border-radius: 0 3px 3px 0; }
.book .page.left::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to left, rgba(0,0,0,.12), transparent 7%); pointer-events: none; }
.book .page.right::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to right, rgba(0,0,0,.12), transparent 7%); pointer-events: none; }
.book .page.blank { background: transparent; box-shadow: none; cursor: default; }
.leaf { will-change: transform; position: absolute; top: 0; width: var(--pw); height: var(--ph); transform-style: preserve-3d; transition: transform .8s cubic-bezier(.645, .045, .355, 1), opacity .5s; z-index: 3; }
.leaf.from-right { left: 50%; transform-origin: left center; }
.leaf.from-left { right: 50%; transform-origin: right center; }
.book-single .leaf.from-right { left: 0; }
.leaf .face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; background-color: var(--white); background-repeat: no-repeat; }
.leaf .back { transform: rotateY(180deg); }
.book-controls { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 22px; font-size: 14px; color: var(--muted); }
.round-btn { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--soft); color: var(--wine); cursor: pointer; display: grid; place-items: center; }
.round-btn:hover { background: var(--soft-2); }
.round-btn:disabled { opacity: .35; cursor: default; }
.round-btn svg { width: 18px; height: 18px; }
.book-empty { text-align: center; color: var(--muted); padding: 40px 16px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--wine); color: var(--paper); padding: clamp(44px, 6vw, 72px) 0 24px; }
.site-footer a { text-decoration: none; color: var(--paper); opacity: .85; }
.site-footer a:hover { opacity: 1; }
.footer-top { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 28px; padding-bottom: 40px; }
.footer-brand img.wordmark { height: 24px; width: auto; filter: brightness(0) invert(.96); margin-bottom: 12px; }
.footer-brand p { color: var(--grey); max-width: 22em; font-size: 14.5px; }
.footer-col h4 { color: var(--grey); font-size: 13px; font-weight: 400; margin-bottom: 12px; opacity: .8; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14.5px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--grey); opacity: .8; }
.socials { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.socials a { width: 36px; height: 36px; border-radius: 50%; background: rgba(246, 243, 239, .1); display: grid; place-items: center; opacity: 1; }
.socials a:hover { background: var(--paper); color: var(--wine); }
.socials svg { width: 16px; height: 16px; }
@media (max-width: 920px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

.table-chip { display: none; }
html[data-mode="game"] .table-chip { display: inline-flex; position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 40; box-shadow: 0 10px 30px -12px rgba(43, 18, 21, .5); }

.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .reveal-text .w { color: var(--wine); }
}
main, .site-footer { overflow-x: clip; }
.preview-media .story-img.empty img { position: static; width: 22%; height: auto; }

/* Mini widgets, animated */
.mini-post .top span { color: var(--wine); margin-left: -2px; }
.mp-photo { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.mp-photo img { width: 100%; height: 100%; object-fit: cover; }
.mp-heart { position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; color: var(--wine); transform: translate(-50%, -50%) scale(0); filter: drop-shadow(0 3px 8px rgba(0,0,0,.25)); }
.mp-heart.go { animation: aPop .8s ease-out forwards; }
@keyframes aPop { 0% { transform: translate(-50%,-50%) scale(0); opacity: 0; } 25% { transform: translate(-50%,-50%) scale(1.12); opacity: 1; } 45% { transform: translate(-50%,-50%) scale(.96); } 75% { opacity: 1; } 100% { transform: translate(-50%,-50%) scale(1); opacity: 0; } }
.mp-comment { display: flex; gap: 6px; align-items: center; margin-top: 6px; font-size: 11px; opacity: 0; transform: translateY(6px); transition: .4s var(--ease); }
.mp-comment.on { opacity: 1; transform: none; }
.mp-comment img { width: 18px; height: 18px; border-radius: 50%; object-fit: cover; }
.mp-comment b { display: inline; font-weight: 600; margin: 0; }
.mb-list { position: relative; height: 128px; }
.mb-row { position: absolute; left: 0; right: 0; height: 30px; display: flex; align-items: center; gap: 8px; font-size: 12.5px; transition: transform .7s var(--ease), background .3s; border-radius: 8px; padding: 0 6px; }
.mb-row i { width: 18px; height: 18px; border-radius: 50%; background: var(--soft); color: var(--wine); font-style: normal; font-size: 10px; font-weight: 600; display: grid; place-items: center; flex-shrink: 0; }
.mb-row span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mb-row em { font-style: normal; color: var(--wine); font-weight: 500; font-size: 12px; }
.mb-row.you { background: var(--wine-08); }
.mb-row.you span { color: var(--wine); font-weight: 500; }
.mb-row.bump em { animation: bump .4s var(--ease); }
@keyframes bump { 50% { transform: scale(1.35); } }

.member h3 .on { font-size: 14px; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.member .real { font-size: 13px; color: var(--muted); margin: -2px 0 4px; }

.thesis-pages { max-height: 86vh; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; align-items: center; gap: 14px; background: var(--soft-2); user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.thesis-pages .tp { width: min(760px, 100%); background: #fff; box-shadow: 0 10px 30px -18px rgba(43,18,21,.4); }
.thesis-pages img { width: 100%; height: auto; pointer-events: none; }

/* "It's playable" note next to the phone */
.try-me { pointer-events: none; position: absolute; z-index: 5; left: calc(50% + 190px); bottom: 50px; width: 210px; text-align: left; color: var(--wine); display: flex; flex-direction: column; gap: 4px; }
.try-me b { font-size: 22px; font-weight: 500; letter-spacing: -0.02em; }
.try-me > span:not(.try-badge) { font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.try-badge { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; background: var(--wine); color: var(--paper); font-size: 12.5px; font-weight: 500; padding: 5px 11px 5px 8px; border-radius: 999px; margin-bottom: 4px; animation: wiggle 2.8s ease-in-out infinite; }
.try-badge svg { width: 16px; height: 16px; }
.try-arrow { position: absolute; left: -78px; top: 70px; width: 70px; color: var(--wine); opacity: .75; }
.try-arrow-down { display: none; }
@keyframes wiggle { 0%, 70%, 100% { transform: rotate(0); } 76% { transform: rotate(-6deg); } 84% { transform: rotate(5deg); } 92% { transform: rotate(-3deg); } }
@media (max-width: 900px) {
  .try-me { position: relative; left: auto; bottom: auto; width: auto; max-width: 300px; text-align: center; align-items: center; order: 1; margin-top: 10px; }
  .stage .phone { order: 2; }
  .try-badge { align-self: center; }
  .try-arrow { display: none; }
  .try-arrow-down { display: block; width: 26px; color: var(--wine); opacity: .75; margin-top: 4px; }
}

.story-intro { max-width: 780px; margin: 0 auto clamp(28px, 4vw, 48px); text-align: center; font-size: clamp(18px, 1.8vw, 22px); line-height: 1.55; font-weight: 300; color: var(--ink); }
.story-intro strong { color: var(--wine); font-weight: 500; }
.thesis-quote { margin: 0 auto 40px; max-width: 860px; text-align: center; }
.thesis-quote blockquote { margin: 0 0 12px; font-size: clamp(20px, 2.6vw, 32px); font-weight: 300; letter-spacing: -0.025em; line-height: 1.3; color: var(--wine); }
.thesis-quote figcaption { font-size: 14px; color: var(--muted); }


/* Preview v2: whole image visible, text scrolls on its own */
.preview-card { position: relative; height: min(640px, calc(100vh - 32px)); overflow: hidden; grid-template-columns: 1fr 1fr; }
.preview-media { min-height: 0; height: 100%; background: var(--soft-2); }
.preview-media img { object-fit: contain; }
.preview-body { overflow-y: auto; min-height: 0; }
.preview-body .cap { flex: none; }
.preview-body .cta-row { position: sticky; bottom: -1px; background: linear-gradient(transparent, var(--white) 30%); padding: 18px 0 2px; margin-top: auto; }
.preview-close { z-index: 3; }
@media (max-width: 720px) {
  .preview-card { height: calc(100vh - 32px); grid-template-columns: 1fr; grid-template-rows: 42% 1fr; }
  .preview-media { aspect-ratio: auto; }
}
.tr-float { margin-left: 4px; }

/* Magazine: nicer page turn */
.leaf .face { box-shadow: 0 0 24px rgba(0,0,0,.12); overflow: hidden; }
.leaf .face::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; }
.leaf.from-right .face::after { background: linear-gradient(to right, rgba(0,0,0,.28), rgba(0,0,0,.04) 35%, rgba(255,255,255,.12) 70%, rgba(0,0,0,.1)); }
.leaf.from-right .face.back::after, .leaf.from-left .face::after { background: linear-gradient(to left, rgba(0,0,0,.28), rgba(0,0,0,.04) 35%, rgba(255,255,255,.12) 70%, rgba(0,0,0,.1)); }
.leaf.from-left .face.back::after { background: linear-gradient(to right, rgba(0,0,0,.28), rgba(0,0,0,.04) 35%, rgba(255,255,255,.12) 70%, rgba(0,0,0,.1)); }
.leaf.turning .face::after { animation: pageShade .8s cubic-bezier(.645, .045, .355, 1) forwards; }
@keyframes pageShade { 0% { opacity: 0; } 50% { opacity: 1; } 100% { opacity: 0; } }
.cast { position: absolute; top: 0; bottom: 0; width: 50%; z-index: 2; pointer-events: none; animation: castShade .8s cubic-bezier(.645, .045, .355, 1) forwards; }
.cast.on-right { left: 50%; background: linear-gradient(to right, rgba(0,0,0,.35), transparent 70%); transform-origin: left; }
.cast.on-left { left: 0; background: linear-gradient(to left, rgba(0,0,0,.35), transparent 70%); transform-origin: right; }
.cast.single { left: 0; width: 100%; }
@keyframes castShade { 0% { opacity: 0; transform: scaleX(1); } 45% { opacity: 1; } 100% { opacity: 0; transform: scaleX(.1); } }
/* corner curl hint on hover */
.book .page.right:not(.blank)::before, .book .page.left:not(.blank)::before { content: ""; position: absolute; bottom: 0; width: 0; height: 0; z-index: 2; transition: width .25s var(--ease), height .25s var(--ease); pointer-events: none; }
.book .page.right::before { right: 0; background: linear-gradient(315deg, var(--paper) 45%, rgba(0,0,0,.18) 50%, #fff 56%, #eee 100%); border-top-left-radius: 6px; }
.book .page.left::before { left: 0; background: linear-gradient(45deg, var(--paper) 45%, rgba(0,0,0,.18) 50%, #fff 56%, #eee 100%); border-top-right-radius: 6px; }
.book .page:not(.blank):hover::before { width: 46px; height: 46px; }

.mag-jump { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; padding: 8px 16px; border-radius: 999px; background: var(--wine); color: var(--paper); text-decoration: none; font-size: 14px; font-weight: 500; }
.mag-jump svg { width: 15px; height: 15px; animation: bob 1.6s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(3px); } }
#magazine { scroll-margin-top: 70px; }
.preview-body { padding-bottom: 0; }
.preview-body .cta-row { bottom: 0; background: var(--white); padding: 14px 0 22px; box-shadow: 0 -16px 16px -4px var(--white); }
@media (max-width: 720px) { .preview-body .cta-row { flex-wrap: nowrap; } .preview-body .cta-row .btn { min-height: 38px; padding: 0 14px; font-size: 13.5px; } }

/* Chevron links (no shaft, no pill) */
.link.chev { gap: 2px; }
.link.chev svg { width: 18px; height: 18px; }
.link.chev:hover svg { transform: translateX(3px); }

/* Thesis byline + handwritten note */
.thesis-byline { font-size: 15px; color: var(--muted); line-height: 1.6; margin: 0 0 28px; }
.thesis-byline b { color: var(--wine); font-weight: 500; font-size: 17px; }
.reader-wrap { position: relative; padding-top: 10px; }
.hand-note { position: absolute; z-index: 3; right: -6px; top: -64px; width: 290px; transform: rotate(3deg); font-family: "Caveat", cursive; color: var(--wine); font-size: 22px; line-height: 1.1; display: flex; flex-direction: column; gap: 4px; text-align: right; pointer-events: none; }
.hand-note b { font-weight: 600; font-size: 1.15em; }
.hand-note svg { width: 70px; align-self: flex-start; margin-top: 2px; transform: rotate(-12deg); }
.thesis-quote { margin-bottom: 110px; }
@media (max-width: 760px) {
  .hand-note { position: relative; top: auto; right: auto; width: auto; transform: rotate(-1.5deg); margin: 0 0 6px; text-align: left; font-size: 20px; }
  .hand-note svg { width: 46px; align-self: flex-end; transform: scaleX(-1) rotate(-20deg); }
  .thesis-quote { margin-bottom: 28px; }
}

/* Mobile fixes */
@media (max-width: 640px) {
  .founder-card .trio { height: 150px; width: 170px; }
  .founder-card .trio .ph { width: 84px; height: 84px; }
  .founder-card .trio .ph:nth-child(2) { left: 74px; top: 16px; }
  .founder-card .trio .ph:nth-child(3) { left: 32px; top: 64px; }
  .faces { justify-content: center; }
  .pillar .tile { height: 340px; align-items: flex-start; padding-top: 26px; }
  .mini-post { width: 190px; }
  .mp-photo { aspect-ratio: 4 / 3; }
  /* bigger header on phones */
  .site-header .wrap { height: 72px; }
  .brand img.wordmark { height: 26px; }
  .brand img.logo { width: 28px; }
  .mobile-menu { inset: 72px 0 0 0; }
  .hero h1 { font-size: 46px; line-height: 1.02; }
  .hero h1 .nw { white-space: normal; }
}

/* Flipbook (StPageFlip) */
.flip-stage { max-width: 1000px; margin: 0 auto; filter: drop-shadow(0 30px 40px rgba(43, 18, 21, .25)); }
.flip-page { background: #fff; overflow: hidden; }
.flip-page img { position: absolute; top: 0; height: 100%; width: 200%; max-width: none; left: 0; pointer-events: none; user-select: none; }
.flip-page[data-pos="right"] img { left: -100%; }
.flip-page[data-pos="center"] img { width: 100%; object-fit: cover; }
.hand-note { top: -112px; }
.thesis-quote { margin-bottom: 140px; }
@media (max-width: 640px) { .hero h1 .pill-img:last-child { display: none; } }
@media (max-width: 760px) { .hand-note { top: auto; } .thesis-quote { margin-bottom: 28px; } }
#reader-count { display: none; }
/* Thesis order + sizes */
.thesis-quote { margin: 0 auto 36px !important; max-width: 720px; }
.thesis-quote blockquote { font-size: clamp(17px, 1.9vw, 22px); }
.thesis-byline { text-align: center; font-size: 15px; margin-bottom: 30px; }
.thesis-byline b { display: inline-block; font-size: clamp(24px, 3vw, 36px); line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 6px; }
.thesis-through { margin-bottom: 70px; }
.hand-note { right: 34px; top: -150px; width: 270px; }
@media (max-width: 1100px) { .thesis-through { max-width: 560px; } }
@media (max-width: 760px) { .hand-note { right: auto; top: auto; width: auto; } .thesis-through { margin-bottom: 20px; } }
/* Magazine fits the screen together with its arrows */
.flip-stage { max-width: min(860px, calc((100vh - 240px) * 1.41)); }
#magazine .book-controls { margin-top: 14px; }
/* Relate mini post: fit inside its tile with breathing room */
#mini-post { width: 172px; font-size: 11px; }
#mini-post .top { padding: 6px 9px; }
#mini-post .mp-photo { aspect-ratio: 4 / 3; }
#mini-post .bot { padding: 6px 9px 8px; }
#mini-post .mp-comment { margin-top: 4px; }
.pillar .tile:has(#mini-post) { align-items: center; padding: 18px; }
@media (max-width: 640px) { .pillar .tile:has(#mini-post) { align-items: center; padding-top: 18px; } }
#mini-post { width: 164px; }
#mini-post .mp-photo { aspect-ratio: 16 / 11; }
@media (min-width: 861px) { .pillar .tile { height: 320px; } }
#mini-post .top { white-space: nowrap; overflow: hidden; } #mini-post .top span { overflow: hidden; text-overflow: ellipsis; } #mini-post { width: 176px; }
.thesis-byline { text-align: left; }
.thesis-quote-end { margin: 56px auto 0 !important; }

/* Team on phones: zig-zag cards with drawings between */
.m-draw { display: none; }
@media (max-width: 760px) {
  .crew .drawing { display: none; }
  .member { width: 86%; margin: 0 0 0 0; }
  .crew .member:nth-of-type(even) { margin-left: auto; }
  .crew .member:nth-of-type(odd) { margin-left: 0; }
  .m-draw { display: block; height: 78px; width: auto; max-width: 140px; object-fit: contain; margin: 10px 0; transform: rotate(var(--rot)); opacity: .9; }
  .m-draw.r { margin-left: auto; margin-right: 8%; }
  .m-draw.l { margin-left: 8%; }
}
/* Phone: pillar tiles size to their widget, all centred */
@media (max-width: 640px) {
  .pillar .tile, .pillar .tile:has(#mini-post) { height: auto; min-height: 0; align-items: center; padding: 28px 18px; }
}
.mb-row:nth-child(2) { transform: translateY(32px); }
.mb-row:nth-child(3) { transform: translateY(64px); }
.mb-row:nth-child(4) { transform: translateY(96px); }
