/* The home page (/) and /about. Phone first; /home-desktop.css lays the page out from 1024px.
   The house style of the proposal page and the client hub: the /bd-tokens.css colors, fonts and
   radius scale, soft elevation, cards with real photographs, plain headings, generous space.
   Each section is its own band: Reading on paper, Shows dark, Work with us on paper, Partners light. */
@import url('/bd-tokens.css');
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --paper: var(--bd-paper);
  --card: var(--bd-card);
  --ink: var(--bd-ink);
  --ink-soft: var(--bd-ink-soft);
  --muted: var(--bd-muted);
  --hair: var(--bd-hair);
  --red: var(--bd-accent);
  --serif: var(--bd-font-display);
  --sans: var(--bd-font-text);
  --r-1: var(--bd-r-1);
  --r-2: var(--bd-r-2);
  --r-3: var(--bd-r-3);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --lift: var(--bd-shadow);
  --lift-hi: var(--bd-shadow-hi);
  --gutter: var(--site-gutter);
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: clip;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: var(--r-1); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }

/* ── BANDS: each section is a category of its own ── */
.band { padding: 44px 0 52px; scroll-margin-top: 100px; }
.band.dark { background: #141413; color: #f4f3ef; }
.band.light { background: #fff; }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 22px; }
.sec-head h2 { font-family: var(--serif); font-weight: 700; font-size: 38px; line-height: 1.1; letter-spacing: 0; }
.sec-more { font-size: 15px; font-weight: 600; color: var(--red); white-space: nowrap; }
.sec-more:hover { text-decoration: underline; }

/* ── CARDS ── */
.card {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--card); border-radius: var(--r-3); box-shadow: var(--lift);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.pic { position: relative; display: block; margin: 0; overflow: hidden; background: #d9d6ce; }
.pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card .pic { aspect-ratio: 3 / 2; }
.credit {
  position: absolute; right: 8px; bottom: 8px; max-width: calc(100% - 16px);
  padding: 2px 6px; border-radius: 4px; background: rgba(20, 20, 19, .42);
  font-size: 11px; line-height: 1.3; color: rgba(255, 255, 255, .94);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.card-body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 22px; }
.tag, .date { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--red); }
.story-title, .item-title { font-family: var(--serif); font-weight: 700; letter-spacing: 0; transition: color .15s; }
.story-title { font-size: 28px; line-height: 1.08; }
.story-desc { font-size: 17px; line-height: 1.45; color: var(--ink-soft); }
.by { font-size: 14px; color: var(--muted); margin-top: 2px; }
.item-title { font-size: 21px; line-height: 1.18; }

.lead .story-title { font-weight: 900; font-size: 38px; line-height: 1.02; letter-spacing: -.02em; }
.lead .story-desc { font-size: 19px; }
.lead .pic { aspect-ratio: 4 / 3; }
.lead .pic img { object-position: 52% 50%; }

.reading-top { display: grid; gap: 20px; }

.latest-head { font-family: var(--serif); font-weight: 700; font-size: 26px; letter-spacing: 0; margin: 40px 0 16px; }
/* On a phone the latest four are compact rows: photo left, headline right. */
.latest { display: grid; gap: 14px; }
.item { flex-direction: row; align-items: stretch; }
.item .pic { flex: none; width: 112px; aspect-ratio: auto; min-height: 112px; }
.item .credit { display: none; }
.item .card-body { padding: 14px 16px; gap: 6px; justify-content: center; }
.item .item-title { font-size: 18px; }
.item .date { font-size: 12px; }
.item .by { font-size: 13px; }

@media (hover: hover) {
  .card:hover, .ep:hover .pic, .notice:hover { transform: translateY(-3px); box-shadow: var(--lift-hi); }
  .card:hover .pic img, .ep:hover .pic img, .ep:hover .ep-clip, .notice:hover .pic img { transform: scale(1.03); }
  .card:hover .story-title, .card:hover .item-title { color: var(--red); }
}
.card:active, .ep:active .pic, .notice:active { transform: scale(.985); transition-duration: .1s; }

/* ── SHOWS ── */
/* "Shows" is the section heading; each series is a row of its own under a thin rule: its title and line, then its episodes. */
.series { border-top: 1px solid rgba(244, 243, 239, .2); padding-top: 22px; margin-top: 30px; }
.show { margin-bottom: 20px; }
.show-title { font-family: var(--serif); font-weight: 700; font-size: 28px; line-height: 1.1; letter-spacing: 0; }
.show-desc { font-size: 17px; line-height: 1.4; color: #c9c7c0; margin-top: 6px; max-width: 34ch; }
.episodes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 14px; }
.ep { display: flex; flex-direction: column; gap: 4px; }
.ep .pic { aspect-ratio: 9 / 16; border-radius: var(--r-2); margin-bottom: 8px; background: #2a2926; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.ep .pic img { object-position: 50% 50%; }
/* The reel's clip sits over the cover, hidden until it is playing (/ep-preview.js). A small play mark says it is video. */
.ep-clip { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .35s var(--ease), transform .6s var(--ease); pointer-events: none; }
.ep-clip.on { opacity: 1; }
.ep .pic:has(.ep-clip)::before, .ep .pic:has(.ep-clip)::after { content: ''; position: absolute; transition: opacity .35s var(--ease); }
.ep .pic:has(.ep-clip)::before { left: 8px; bottom: 8px; width: 28px; height: 28px; border-radius: 50%; background: rgba(10,10,10,.55); }
.ep .pic:has(.ep-clip)::after { left: 18px; bottom: 15px; border-left: 11px solid #fff; border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.ep .pic:has(.ep-clip.on)::before, .ep .pic:has(.ep-clip.on)::after { opacity: 0; }
/* The 4 Sectors: an episode slot not filled yet is a slim, quiet "Coming soon" tile, not a link and not reel-sized.
   Real episodes keep the full reel card. With no episodes yet, the four tiles sit close together: two short rows
   on a phone, one row from 480px up. */
.soon { align-self: start; }
.soon-tile { display: flex; align-items: center; height: 40px; padding: 0 14px; border-radius: var(--r-2); border: 1px solid rgba(244, 243, 239, .1); background: rgba(244, 243, 239, .03); }
.soon-name { font-size: 13px; font-weight: 600; line-height: 1.2; color: #8f8d86; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sectors .episodes:not(:has(.ep)) { gap: 8px; }
.sectors .episodes:not(:has(.ep)) .soon-tile { justify-content: center; padding: 0 8px; }
@media (min-width: 480px) { .sectors .episodes:not(:has(.ep)) { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .sectors .episodes:not(:has(.ep)) { gap: 12px; } .soon-tile { height: 48px; } .soon-name { font-size: 14px; } }
.ep-num { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #ff6b5e; }
.ep-name { font-family: var(--serif); font-weight: 700; font-size: 20px; line-height: 1.15; }
.ep-go { font-size: 14px; color: #c9c7c0; margin-top: 2px; }
.ep:hover .ep-go { color: #fff; }

/* ── WORK WITH US: one feature card ── */
.notice {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--card); border-radius: var(--r-3); box-shadow: var(--lift);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.notice .pic { aspect-ratio: 4 / 3; }
.notice-body { display: flex; flex-direction: column; padding: 24px 22px 24px; }
.notice-title { font-family: var(--serif); font-weight: 700; font-size: 34px; line-height: 1.1; letter-spacing: 0; text-wrap: balance; }
.notice-line { font-size: 19px; line-height: 1.4; color: var(--ink-soft); margin-top: 12px; }
.notice-proof { font-size: 15px; font-weight: 600; color: var(--ink); margin-top: 10px; }
.notice-go {
  display: inline-flex; align-items: center; justify-content: center; align-self: flex-start;
  min-height: 50px; padding: 0 22px; border-radius: var(--r-2);
  background: var(--red); color: #fff; font-size: 16px; font-weight: 700;
  transition: filter .15s, transform .15s;
}
.notice-go { margin-top: 22px; }
.notice:hover .notice-go { filter: brightness(.92); }

/* ── PARTNERS: logos in their own colors. Brands without a logo for a light background (The Render Pros,
   ICON, Bathhouse) are set as type (.lt-type). ── */
.partners-lede { font-size: 19px; line-height: 1.45; color: var(--ink-soft); max-width: 46ch; margin-bottom: 28px; }
.press-strip { display: grid; gap: 26px; }
.press-label { display: block; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.press-logos { display: flex; align-items: center; flex-wrap: wrap; gap: 18px 36px; }
.press-logos img { height: 26px; width: auto; }
.press-logos img[alt="Emlid"] { height: 17px; }
.press-logos img[alt="Ytech"] { height: 22px; }
.lt-type { font-weight: 600; font-size: 14px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink); white-space: nowrap; }
.partner-cta { display: flex; flex-direction: column; gap: 16px; margin-top: 34px; padding: 24px 22px; border-radius: var(--r-3); background: var(--paper); }
.cta-title { font-family: var(--serif); font-weight: 700; font-size: 28px; line-height: 1.1; letter-spacing: 0; }
.cta-links { display: flex; flex-wrap: wrap; gap: 10px; }

/* The prompts (Join and Work with us) are in /bd-site.css: every reading page has them. */

/* ── ABOUT ── */
.about { display: grid; gap: 26px; padding: 36px 0 56px; }
.about .pic { border-radius: var(--r-3); box-shadow: var(--lift); aspect-ratio: 1200 / 817; }
.about-kicker { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--red); display: block; margin-bottom: 10px; }
.about-lede { font-family: var(--serif); font-weight: 700; font-size: 30px; line-height: 1.1; letter-spacing: 0; margin-bottom: 18px; text-wrap: balance; }
.about-text { font-size: 18px; line-height: 1.6; color: var(--ink-soft); margin-bottom: 20px; max-width: 58ch; }
.about-sig { display: block; font-family: var(--serif); font-weight: 700; font-size: 20px; }
.about-title { display: block; font-size: 15px; color: var(--muted); margin-top: 2px; }
.about-more { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px; }

/* ── TABLET ≥768 ── */
@media (min-width: 768px) {
  .band { padding: 64px 0 72px; }
  .sec-head h2 { font-size: 48px; }
  .reading-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .lead { grid-column: 1 / -1; }
  .lead .pic { aspect-ratio: 16 / 9; }
  .latest { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .item { flex-direction: column; }
  .item .pic { width: auto; min-height: 0; aspect-ratio: 3 / 2; }
  .item .credit { display: block; }
  .item .card-body { padding: 16px 18px 20px; justify-content: flex-start; }
  .item .item-title { font-size: 21px; }
  .series { margin-top: 36px; padding-top: 26px; }
  .show { display: flex; align-items: baseline; gap: 20px; }
  .show-title { font-size: 32px; }
  .show-desc { font-size: 18px; margin: 0; max-width: none; }
  .episodes { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .notice { flex-direction: row; }
  .notice .pic { flex: 0 0 48%; aspect-ratio: auto; min-height: 340px; }
  .notice-body { justify-content: center; padding: 36px 36px; }
  .notice-title { font-size: 44px; }
  .press-strip { grid-template-columns: 1fr 1fr; gap: 40px; }
  .partner-cta { flex-direction: row; align-items: center; justify-content: space-between; padding: 28px 32px; }
  .about { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 48px; align-items: center; padding: 56px 0 80px; }
  .about-lede { font-size: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .notice, .pic img, .ep .pic, .ep-clip { transition: none; }
}
