/* ==========================================================================
   Thomas Koshy — site styles
   Mobile-first. Brand language shared with BeyondBell:
   Sora display, Inter body, Caveat accents, amber + black + cream.
   ========================================================================== */

:root {
  --amber: #FF8A00;
  --amber-hover: #FFA033;
  --amber-text: #A34F00;   /* amber that passes contrast on light backgrounds */
  --hand: #C75F00;
  --ink: #111111;
  --black: #1A1A1A;
  --warm: #FFFDF8;
  --mist: #F4F4F4;
  --cream: #FFF0DC;
  --grey: #6B6B6B;
  --border: #E7E2DA;
  --line: #D9D2C7;
  --body: #3D3A36;

  --font-display: 'Sora', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --font-hand: 'Caveat', 'Bradley Hand', cursive;

  --header-h: 64px;
  --gutter: 20px;
  --section-y: 64px;
  --radius-lg: 28px;
  --radius-md: 20px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

@media (min-width: 768px) {
  :root { --gutter: 40px; --section-y: 96px; }
}
@media (min-width: 1024px) {
  :root { --header-h: 84px; --section-y: 112px; }
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--warm);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

body.menu-open { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }
picture { display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, figure, blockquote, ul, ol { margin: 0; }
ul[role="list"], ol { list-style: none; padding: 0; }
button { font: inherit; color: inherit; }

:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 6px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--warm); padding: 12px 18px; border-radius: 999px;
}
.skip-link:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: calc(1200px + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section { padding: var(--section-y) 0; position: relative; }
.section--mist { background: var(--mist); }
.section--ink { background: var(--ink); color: var(--warm); }

.br-desktop { display: none; }
@media (min-width: 768px) { .br-desktop { display: inline; } }

.amber { color: var(--amber); }

/* ---------- Type ---------- */

.display {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(34px, 5.2vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  text-transform: none;
}
.caps { text-transform: uppercase; }
.display--xl { font-size: clamp(40px, 6.6vw, 88px); line-height: 0.98; letter-spacing: -0.04em; }

.lede { font-size: clamp(16px, 1.6vw, 19px); line-height: 1.55; color: var(--grey); }
.muted { color: var(--grey); font-size: 15px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--cream); color: var(--amber-text);
  border-radius: 999px; padding: 8px 15px; margin-bottom: 18px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
}
.eyebrow--on-mist { background: var(--warm); }
.eyebrow--dark { background: #231F1A; color: var(--amber); }
.eyebrow--on-amber { background: var(--ink); color: var(--amber); }
@media (min-width: 768px) { .eyebrow { font-size: 12px; padding: 9px 16px; margin-bottom: 22px; } }

.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); display: inline-block; flex-shrink: 0; }

.hand { font-family: var(--font-hand); font-weight: 600; }

.text-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 16px;
}
.text-link .icon { color: var(--amber); transition: transform .25s var(--ease); }
.text-link:hover .icon { transform: translateX(4px); }

.rule { border: 0; height: 1px; background: var(--border); margin: 0; }

/* ---------- Buttons & chips ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 26px;
  border-radius: 999px; border: 1.5px solid transparent;
  font-size: 16px; font-weight: 600; line-height: 1; white-space: nowrap;
  cursor: pointer;
  transition: transform .25s var(--ease), background-color .25s, color .25s, border-color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 14px; }
.btn--dark { background: var(--ink); color: var(--warm); }
.btn--dark:hover { background: #2A2A2A; }
.btn--amber { background: var(--amber); color: var(--ink); }
.btn--amber:hover { background: var(--amber-hover); }
.btn--line { border-color: var(--line); color: var(--body); }
.btn--line:hover { border-color: var(--ink); color: var(--ink); }
.btn--line-light { border-color: #3A3631; color: var(--warm); }
.btn--line-light:hover { border-color: var(--amber); color: var(--amber); }

[data-pending] { cursor: default; }

.btn-row { display: flex; flex-direction: column; gap: 10px; }
@media (min-width: 560px) { .btn-row { flex-direction: row; flex-wrap: wrap; gap: 12px; } }

.chip {
  display: inline-flex; align-items: center; gap: 8px;
  border-radius: 999px; padding: 10px 16px; font-size: 14px; font-weight: 600;
  background: var(--warm);
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip--dark { background: transparent; border: 1px solid #3A3631; color: #E9E4DC; font-weight: 500; }
.chip--dark strong { font-family: var(--font-display); color: var(--amber); }

/* ---------- Decorative shapes ---------- */

.blob { position: absolute; border-radius: 50%; pointer-events: none; }
.blob--sun { width: 120px; height: 120px; left: -24px; top: -24px; background: var(--amber); }
.blob--ring { width: 110px; height: 110px; right: -34px; bottom: 90px; border: 2px dashed var(--amber); display: none; }
.blob--cream { width: 84px; height: 84px; right: -18px; top: -18px; background: var(--cream); z-index: -1; }
.blob--connect { width: 200px; height: 200px; right: -70px; top: -70px; background: var(--cream); }
@media (min-width: 1024px) {
  .blob--sun { width: 200px; height: 200px; left: -56px; top: 40px; }
  .blob--ring { display: block; }
  .blob--connect { width: 260px; height: 260px; right: -80px; top: -80px; }
}

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 253, 248, 0.9);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  padding-top: env(safe-area-inset-top, 0px);
  transition: box-shadow .3s;
}
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--border); }
/* backdrop-filter would trap the fixed mobile menu inside the header */
.menu-open .site-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--warm); }
.site-header__inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-display); font-weight: 800; font-size: 15px; letter-spacing: 0.06em;
}
.brand .dot { width: 9px; height: 9px; }
.brand--light { color: var(--warm); font-size: 20px; }
@media (min-width: 1024px) { .brand { font-size: 17px; } .brand .dot { width: 10px; height: 10px; } }

.menu-toggle {
  width: 44px; height: 44px; border-radius: 50%; border: 0;
  background: var(--ink); color: var(--warm); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  position: relative; z-index: 2;
}
.menu-toggle__open, .menu-toggle__close { display: inline-flex; }
.menu-toggle .menu-toggle__close,
.menu-open .menu-toggle .menu-toggle__open { display: none; }
.menu-open .menu-toggle .menu-toggle__close { display: inline-flex; }

.site-header__cta { display: none; }

/* Mobile nav: full-screen dark sheet */
.site-nav {
  position: fixed; inset: calc(var(--header-h) + env(safe-area-inset-top, 0px)) 0 0 0;
  background: var(--ink);
  padding: 32px var(--gutter) calc(32px + env(safe-area-inset-bottom, 0px));
  display: flex; flex-direction: column; gap: 4px;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s .3s;
  overflow-y: auto;
}
.menu-open .site-nav { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.site-nav a:not(.btn) {
  font-family: var(--font-display); font-weight: 800; font-size: 38px; letter-spacing: -0.03em;
  color: var(--warm); padding: 8px 0;
}
.site-nav a:not(.btn):hover { color: var(--amber); }
.site-nav__cta { margin-top: 28px; }

@media (min-width: 1024px) {
  .menu-toggle, .site-nav__cta { display: none; }
  .site-header__cta { display: inline-flex; min-height: 46px; padding: 0 24px; font-size: 15px; }
  .site-nav {
    position: static; inset: auto; background: none; padding: 0;
    flex-direction: row; gap: 40px;
    opacity: 1; visibility: visible; transform: none; overflow: visible;
  }
  .site-nav a:not(.btn) {
    font-family: var(--font-body); font-weight: 500; font-size: 15px; letter-spacing: 0;
    color: var(--body); padding: 6px 0;
  }
  .site-nav a:not(.btn):hover { color: var(--amber-text); }
}

/* ---------- 01 Hero ---------- */

.hero { padding: 28px 0 var(--section-y); }
.hero__grid { display: grid; gap: 40px; }
.hero__copy { display: flex; flex-direction: column; align-items: flex-start; }
.hero__title {
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(34px, 9.4vw, 72px); line-height: 1.02; letter-spacing: -0.035em;
  margin-bottom: 26px;
}
.scribble { position: relative; display: inline-block; }
.scribble svg { position: absolute; left: 0; bottom: -0.2em; width: 100%; height: 0.26em; overflow: visible; }
.scribble path { fill: none; stroke: var(--amber); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 420; stroke-dashoffset: 0; }
.hero__lede { font-size: clamp(16px, 1.7vw, 20px); color: var(--grey); margin-bottom: 30px; }
.hero__copy .btn-row { width: 100%; }

.hero__photo { position: relative; }
.hero__img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-lg); background: var(--black); position: relative; }
.hero__img { position: relative; z-index: 1; }
.chip--float {
  position: absolute; left: 16px; bottom: 16px; z-index: 2;
  box-shadow: 0 14px 30px -12px rgba(17, 17, 17, 0.3);
}

@media (min-width: 560px) { .hero__copy .btn-row { width: auto; } }
@media (min-width: 1024px) {
  .hero { padding: 40px 0 100px; }
  .hero__grid { grid-template-columns: minmax(0, 1fr) 500px; gap: 64px; align-items: center; }
  .hero__img img { aspect-ratio: auto; height: 660px; border-radius: 32px; }
  .chip--float { left: -28px; bottom: 44px; padding: 12px 18px; }
}

/* Page-load sequence (the one orchestrated moment) */
@keyframes rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes photo-in { from { opacity: 0; transform: scale(1.02); } to { opacity: 1; transform: none; } }
@keyframes draw { from { stroke-dashoffset: 420; } to { stroke-dashoffset: 0; } }
@keyframes drift { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(8px, -10px); } }
.load-1 { animation: rise .9s var(--ease) both; }
.load-2 { animation: rise .9s .1s var(--ease) both; }
.load-3 { animation: rise .9s .22s var(--ease) both; }
.load-4 { animation: rise .9s .34s var(--ease) both; }
.load-photo { animation: photo-in 1.3s .15s ease both; }
.load-2 .scribble path { animation: draw 1.1s .8s var(--ease) both; }
.drift { animation: drift 9s ease-in-out infinite; }

/* Scroll reveal for headlines only; JS adds .is-visible */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- 02 About ---------- */

.about__grid { display: grid; gap: 36px; }
.about__photo { position: relative; isolation: isolate; }
.rounded-img img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 24px; }
.about__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.about__copy .eyebrow { margin-bottom: 0; }
.about__copy .rule { width: 100%; }
.stack-lines { display: flex; flex-direction: column; gap: 4px; font-family: var(--font-display); font-weight: 600; font-size: clamp(17px, 1.6vw, 21px); line-height: 1.4; color: var(--body); }
.question { font-family: var(--font-display); font-weight: 700; font-size: clamp(21px, 2.1vw, 28px); line-height: 1.3; letter-spacing: -0.02em; margin-top: -8px; }
.question mark { background: linear-gradient(transparent 62%, #FFD9A8 62%); color: inherit; }

@media (min-width: 1024px) {
  .about__grid { grid-template-columns: 540px minmax(0, 1fr); gap: 110px; align-items: center; }
  .rounded-img img { aspect-ratio: 27 / 28; border-radius: 32px; }
  .about__copy { gap: 26px; }
}

/* ---------- 03 Journey ---------- */

.journey .display { margin-bottom: 44px; }
.timeline { position: relative; display: grid; gap: 20px; padding-left: 30px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 18px; width: 2px; background: #DDD6CB; }
.timeline__step { position: relative; display: flex; flex-direction: column; gap: 3px; }
.timeline__dot {
  position: absolute; left: -30px; top: 3px; width: 16px; height: 16px;
  border-radius: 50%; border: 2px solid var(--ink); background: var(--warm);
}
.is-current .timeline__dot { background: var(--amber); }
.timeline__num { display: none; font-family: var(--font-display); font-size: 12px; font-weight: 700; color: #8A8580; }
.timeline__stage { font-family: var(--font-display); font-weight: 800; font-size: 15px; text-transform: uppercase; letter-spacing: 0.01em; }
.timeline__line { font-size: 14px; color: var(--grey); }

@media (min-width: 1024px) {
  .journey .display { margin-bottom: 72px; }
  .timeline { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; padding-left: 0; }
  .timeline::before { left: 8px; right: 60px; top: 8px; bottom: auto; height: 2px; width: auto; }
  .timeline__step { gap: 14px; padding-right: 20px; }
  .timeline__dot { position: relative; left: 0; top: 0; width: 18px; height: 18px; }
  .is-current .timeline__dot { width: 22px; height: 22px; margin-top: -2px; }
  .timeline__num { display: block; }
  .timeline__stage { font-size: 18px; line-height: 1.2; }
}

/* ---------- 04 Ideas ---------- */

.section-head { display: flex; flex-direction: column; gap: 20px; margin-bottom: 32px; }
.section-head .display + .lede { margin-top: 16px; }
.hand--hint { display: none; font-size: 26px; color: var(--amber-text); }
@media (min-width: 1024px) {
  .section-head { flex-direction: row; justify-content: space-between; align-items: flex-end; margin-bottom: 52px; }
  .hand--hint { display: block; padding-bottom: 8px; }
}

.idea-grid {
  display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
  margin: 0 calc(var(--gutter) * -1); padding: 4px var(--gutter) 8px;
  scrollbar-width: none;
}
.idea-grid::-webkit-scrollbar { display: none; }
.idea {
  flex: 0 0 270px; scroll-snap-align: start;
  height: 300px; padding: 24px; border-radius: 24px;
  display: flex; flex-direction: column; justify-content: space-between;
  transition: transform .35s var(--ease);
}
.idea--ink { background: var(--ink); color: var(--warm); --sub: #BDB6AC; --ring: #4A4540; }
.idea--amber { background: var(--amber); color: var(--ink); --sub: #2A1A08; --ring: rgba(17, 17, 17, .35); }
.idea--cream { background: var(--cream); color: var(--ink); --sub: #5E4A33; --ring: #E3CDAE; }
.idea--mist { background: var(--mist); color: var(--ink); --sub: #5E5A55; --ring: var(--line); }
.idea__top { display: flex; justify-content: space-between; align-items: center; }
.idea__num { font-family: var(--font-display); font-weight: 700; font-size: 14px; }
.idea__arrow {
  width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--ring);
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform .35s var(--ease);
}
.idea__body { display: flex; flex-direction: column; gap: 12px; }
.idea__line { font-size: 14px; line-height: 1.45; color: var(--sub); }
.idea__title { font-family: var(--font-display); font-weight: 800; font-size: 28px; line-height: 1.02; letter-spacing: -0.03em; text-transform: uppercase; }

@media (min-width: 1024px) {
  .idea-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; overflow: visible; margin: 0; padding: 0; }
  .idea { height: 380px; padding: 28px; border-radius: var(--radius-lg); }
  .idea__title { font-size: 32px; }
  .idea__line { font-size: 15px; opacity: 0; transform: translateY(8px); transition: opacity .35s, transform .35s var(--ease); }
  .idea:hover, .idea:focus-visible { transform: translateY(-6px); }
  .idea:hover .idea__line, .idea:focus-visible .idea__line { opacity: 1; transform: none; }
  .idea:hover .idea__arrow { transform: rotate(-45deg); }
}
@media (hover: none) { .idea__line { opacity: 1 !important; transform: none !important; } }

/* ---------- 05 Book ---------- */

.book { overflow: hidden; }
.book__grid { display: grid; gap: 40px; }
.book__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.book__copy .eyebrow { margin-bottom: 0; }
.book__sub { font-size: clamp(17px, 1.9vw, 22px); line-height: 1.45; color: #BDB6AC; max-width: 26ch; }
.book__copy .btn-row { width: 100%; padding-top: 6px; }
.book__cover { position: relative; display: flex; justify-content: center; order: -1; }
.glow { position: absolute; top: 50%; left: 50%; width: 280px; height: 280px; margin: -140px 0 0 -140px; border-radius: 50%; background: var(--amber); opacity: .22; filter: blur(50px); }
.book__img { position: relative; width: 230px; }
.book__img img { width: 100%; border-radius: 4px 12px 12px 4px; box-shadow: 0 34px 70px -20px rgba(0, 0, 0, .7); }

@media (min-width: 560px) { .book__copy .btn-row { width: auto; } }
@media (min-width: 1024px) {
  .book__grid { grid-template-columns: minmax(0, 1fr) 440px; gap: 100px; align-items: center; }
  .book__copy { gap: 28px; }
  .book__cover { order: 0; }
  .glow { width: 440px; height: 440px; margin: -220px 0 0 -220px; filter: blur(60px); }
  .book__img { width: 400px; transition: transform .4s var(--ease); }
  .book__img:hover { transform: translateY(-6px) rotate(-1deg); }
  .book__img img { border-radius: 6px 14px 14px 6px; }
}

/* ---------- 06 BeyondBell ---------- */

.bb { background: linear-gradient(180deg, var(--amber) 0 62%, var(--ink) 62% 100%); }
.bb__head { display: grid; gap: 20px; margin-bottom: 36px; }
.bb__title { font-family: var(--font-display); font-weight: 800; font-size: clamp(60px, 10vw, 132px); line-height: .9; letter-spacing: -0.05em; color: var(--ink); }
.bb__intro { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.bb__statement { font-family: var(--font-display); font-weight: 700; font-size: clamp(26px, 3vw, 40px); line-height: 1.08; letter-spacing: -0.03em; }
.bb__copy { font-size: clamp(16px, 1.5vw, 18px); line-height: 1.5; color: #2A1A08; }

.browser { background: var(--warm); border-radius: 24px; overflow: hidden; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .55); }
.browser__bar { height: 40px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 7px; padding: 0 18px; }
.browser__bar i { width: 9px; height: 9px; border-radius: 50%; background: #FF5F57; }
.browser__bar i:nth-child(2) { background: #FEBC2E; }
.browser__bar i:nth-child(3) { background: #28C840; }
.browser__bar span { margin-left: 12px; font-size: 12px; color: var(--grey); }
.tool-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 14px; }
.tool { border: 1px solid #EFE7DA; border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.tool__icon { width: 34px; height: 34px; border-radius: 10px; background: var(--cream); display: inline-flex; align-items: center; justify-content: center; }
.tool--accent .tool__icon { background: var(--amber); }
.tool__lines { display: none; }
.tool__name { font-family: var(--font-display); font-weight: 800; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; line-height: 1.25; }
.tool__meta { display: none; font-size: 13px; color: var(--grey); }

@media (min-width: 1024px) {
  .bb { background: linear-gradient(180deg, var(--amber) 0 56%, var(--ink) 56% 100%); }
  .bb__head { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 64px; align-items: end; margin-bottom: 56px; }
  .bb__title { font-size: min(7.4vw, 104px); }
  .bb__intro { padding-bottom: 8px; gap: 18px; }
  .browser { border-radius: var(--radius-lg); }
  .browser__bar { height: 44px; }
  .tool-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; padding: 24px; }
  .tool { border-radius: var(--radius-md); padding: 20px; min-height: 250px; gap: 0; }
  .tool__lines { display: block; flex-grow: 1; margin: 16px 0; border-radius: 12px; background: repeating-linear-gradient(0deg, transparent 0 14px, #EFE7DA 14px 16px); opacity: .8; }
  .tool__icon { width: 40px; height: 40px; border-radius: 12px; }
  .tool__name { font-size: 12px; letter-spacing: 0.08em; }
  .tool__meta { display: block; margin-top: 4px; }
}

/* ---------- 07 Toolkit ---------- */

.filters {
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
  margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter);
}
.filters::-webkit-scrollbar { display: none; }
.filter {
  flex-shrink: 0; min-height: 44px; padding: 0 18px; border-radius: 999px;
  border: 1.5px solid var(--line); background: transparent; color: var(--body);
  font-size: 14px; font-weight: 600; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.filter:hover { border-color: var(--ink); }
.filter[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--warm); }
@media (min-width: 1024px) { .filters { margin: 0; padding: 0; overflow: visible; } }

.shelf {
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  margin: 0 calc(var(--gutter) * -1); padding: 8px var(--gutter) 20px;
  scrollbar-width: none;
}
.shelf::-webkit-scrollbar { display: none; }
.resource { flex: 0 0 210px; scroll-snap-align: start; display: flex; flex-direction: column; gap: 14px; }
.resource[hidden] { display: none; }
.resource__title { font-family: var(--font-display); font-weight: 700; font-size: 15px; line-height: 1.3; flex-grow: 1; }
.resource .btn { align-self: flex-start; }
.empty-note { color: var(--grey); padding: 20px 0; }

.cover {
  position: relative; overflow: hidden; height: 280px; padding: 20px;
  display: flex; flex-direction: column; justify-content: space-between;
  border-radius: 5px 16px 16px 5px;
  box-shadow: 0 20px 36px -20px rgba(17, 17, 17, .45), inset 6px 0 0 rgba(0, 0, 0, .12);
  transition: transform .35s var(--ease);
}
.resource:hover .cover { transform: translateY(-6px) rotate(-1deg); }
.cover > span:not(.cover__art) { position: relative; }
.cover__kind { font-size: 10px; font-weight: 600; letter-spacing: 0.18em; }
.cover__title { font-family: var(--font-display); font-weight: 800; font-size: 23px; line-height: 1; letter-spacing: -0.02em; text-transform: uppercase; }
.cover__foot { font-size: 10px; letter-spacing: 0.14em; display: flex; justify-content: space-between; }
.cover__art { position: absolute; }

.cover--sun { background: var(--ink); color: var(--warm); }
.cover--sun .cover__art { right: -50px; top: -50px; width: 160px; height: 160px; border-radius: 50%; background: var(--amber); }
.cover--lines { background: var(--amber); color: var(--ink); }
.cover--lines .cover__art { inset: 0; background: repeating-linear-gradient(0deg, transparent 0 22px, rgba(17, 17, 17, .12) 22px 24px); }
.cover--clock { background: var(--cream); color: var(--ink); }
.cover--clock .cover__art { right: 18px; top: 18px; width: 90px; height: 90px; border-radius: 50%; border: 10px solid var(--amber); border-right-color: transparent; transform: rotate(-30deg); }
.cover--strike { background: var(--mist); color: var(--ink); }
.cover--strike .cover__art { left: -10px; right: -10px; top: 58%; height: 13px; background: var(--amber); transform: rotate(-8deg); }
.cover--ring { background: var(--black); color: var(--amber); }
.cover--ring .cover__art { right: -30px; bottom: 40px; width: 140px; height: 140px; border-radius: 50%; border: 2px dashed var(--amber); }

@media (min-width: 1024px) {
  .shelf { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; overflow: visible; margin: 0; padding: 0; }
  .cover { height: 300px; padding: 22px; border-radius: 6px 18px 18px 6px; }
  .cover__title { font-size: 24px; }
}

/* ---------- 08 Videos ---------- */

.videos__grid { display: grid; gap: 28px; }
.videos__head { display: flex; flex-direction: column; align-items: flex-start; }
.videos__head .display { margin-bottom: 24px; }
.soft { color: #8A8580; }
.reels {
  display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
  margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 8px; scrollbar-width: none;
}
.reels::-webkit-scrollbar { display: none; }
.reel { flex: 0 0 236px; scroll-snap-align: start; }
.reel__card {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  width: 100%; aspect-ratio: 9 / 16; padding: 20px; overflow: hidden;
  border: 0; border-radius: 24px; background: var(--black); color: var(--warm);
  text-align: left; cursor: pointer;
  transition: transform .35s var(--ease);
}
.reel__card:hover { transform: translateY(-6px); }
.reel__img, .reel__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reel__img img { transition: transform .8s var(--ease); }
.reel__card:hover .reel__img img { transform: scale(1.04); }
.reel__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.08) 0%, rgba(0,0,0,.1) 45%, rgba(0,0,0,.78) 100%); }
.reel__play {
  position: absolute; top: 50%; left: 50%; width: 60px; height: 60px; margin: -30px 0 0 -30px;
  border-radius: 50%; background: var(--amber); color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  transition: transform .3s var(--ease);
}
.reel__card:hover .reel__play { transform: scale(1.08); }
.reel__title { position: relative; font-family: var(--font-display); font-weight: 700; font-size: 18px; line-height: 1.15; letter-spacing: -0.02em; }

@media (min-width: 1024px) {
  .videos__grid { grid-template-columns: 380px minmax(0, 1fr); gap: 80px; align-items: center; }
  .reels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; overflow: visible; margin: 0; padding: 0; }
  .reel:nth-child(2) { margin-top: -28px; }
  .reel__card { border-radius: 26px; padding: 24px; }
  .reel__title { font-size: 20px; }
}

.reel-dialog {
  border: 0; padding: 0; background: transparent; width: min(420px, 92vw); max-height: 92vh; overflow: visible;
}
.reel-dialog::backdrop { background: rgba(17, 17, 17, .85); }
.reel-dialog__frame iframe { width: 100%; height: min(760px, 86vh); border: 0; border-radius: 20px; background: var(--warm); }
.reel-dialog__close {
  position: absolute; top: -52px; right: 0; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: var(--warm); color: var(--ink); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}

/* ---------- 09 Thinking ---------- */

.thinking { padding: calc(var(--section-y) + 8px) 0; }
.thinking__quote { display: flex; flex-direction: column; gap: 22px; margin-bottom: 26px; }
.thinking__big { font-family: var(--font-display); font-weight: 700; font-size: clamp(30px, 4.6vw, 60px); line-height: 1.12; letter-spacing: -0.035em; }
.thinking__small { font-family: var(--font-display); font-size: clamp(18px, 2vw, 26px); line-height: 1.38; color: #A8A29A; }
.hand--sign { font-size: clamp(26px, 2.2vw, 30px); color: var(--amber); }
@media (min-width: 1024px) { .thinking__quote { gap: 30px; margin-bottom: 30px; } }

/* ---------- 10 Connect ---------- */

.connect { overflow: hidden; }
.connect__grid { position: relative; display: grid; gap: 28px; }
.hand--answer { font-size: clamp(38px, 3.4vw, 46px); line-height: 1; color: var(--hand); transform: rotate(-2deg); transform-origin: left; margin-top: 12px; }
.connect__links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.connect__links .btn { padding: 0 12px; }
@media (min-width: 1024px) {
  .connect__grid { grid-template-columns: minmax(0, 1fr) 420px; gap: 80px; align-items: end; }
  .connect__links { gap: 12px; }
}

/* ---------- Footer ---------- */

.site-footer { background: var(--ink); color: var(--warm); padding: 48px 0 calc(28px + env(safe-area-inset-bottom, 0px)); }
.site-footer__top { display: flex; flex-direction: column; gap: 28px; padding-bottom: 28px; }
.site-footer__tagline { margin-top: 8px; font-size: 14px; color: #A8A29A; }
.site-footer__nav { display: flex; flex-wrap: wrap; gap: 12px 24px; font-size: 15px; }
.site-footer__nav a { color: #E9E4DC; }
.site-footer__nav a:hover { color: var(--amber); }
.site-footer__bottom { font-size: 13px; color: #A8A29A; }
.site-footer__bottom > span { display: block; border-top: 1px solid #2A2A2A; padding-top: 18px; }
@media (min-width: 1024px) {
  .site-footer { padding-top: 72px; }
  .site-footer__top { flex-direction: row; justify-content: space-between; align-items: flex-start; padding-bottom: 44px; }
  .site-footer__nav { gap: 32px; }
}

/* ---------- Book page ---------- */

.book-page-hero { position: relative; min-height: 520px; display: flex; align-items: flex-end; color: var(--warm); overflow: hidden; background: var(--ink); }
.book-page-hero__bg, .book-page-hero__bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.book-page-hero__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(17,17,17,.35) 0%, rgba(17,17,17,.92) 100%); }
.book-page-hero__inner { position: relative; padding-top: 120px; padding-bottom: 64px; }
.book-page-hero .book__sub { margin-top: 18px; color: #E0D9CF; }

.book-detail__grid { display: grid; gap: 40px; }
.book-detail__cover .book__img { width: min(300px, 70vw); margin: 0 auto; }
.book-detail__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.book-detail__copy p { max-width: 60ch; color: var(--body); }
.book-detail__copy .lede { color: var(--grey); }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; width: 100%; border-top: 1px solid var(--ink); padding-top: 18px; }
.facts li { display: flex; flex-direction: column; gap: 4px; }
.facts strong { font-family: var(--font-display); font-weight: 800; font-size: clamp(30px, 4vw, 44px); line-height: 1; }
.facts span { font-size: 13px; color: var(--grey); }
.pillars .display { margin-bottom: 36px; }
.pillar-grid { display: grid; gap: 12px; }
.pillar { background: var(--warm); border-radius: var(--radius-md); padding: 28px; display: flex; flex-direction: column; gap: 8px; }
.pillar strong { font-family: var(--font-display); font-weight: 800; font-size: 24px; letter-spacing: -0.02em; }
.pillar span { color: var(--grey); }
@media (min-width: 1024px) {
  .book-page-hero { min-height: 640px; }
  .book-page-hero__inner { padding-bottom: 96px; }
  .book-detail__grid { grid-template-columns: 380px minmax(0, 1fr); gap: 110px; align-items: center; }
  .book-detail__cover .book__img { width: 380px; }
  .pillar-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .pillar { padding: 36px; border-radius: var(--radius-lg); }
}

.author__grid { display: grid; gap: 32px; }
.author__photo .rounded-img img { aspect-ratio: 898 / 510; border-radius: 24px; }
.author__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.author__copy .eyebrow { margin-bottom: 0; }
@media (min-width: 1024px) {
  .author__grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 80px; align-items: center; }
  .author__photo .rounded-img img { border-radius: var(--radius-lg); }
}

/* ---------- Notices (404, missing download) ---------- */

.notice { min-height: 60vh; display: flex; align-items: center; }
.notice__inner { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.notice__inner .eyebrow { margin-bottom: 0; }

/* ---------- Placeholder images ---------- */

.is-placeholder img { background: var(--black); }

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
