/*
 * videos.outermind.ai. Brand system v2: the tokens are the marketing site's (public-site/src/app/globals.css).
 * Bone canvas, ink type, squared corners. Amber is punctuation: the kicker dot, the current chapter, the focus ring.
 */
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/site/fonts/sora-latin.woff2') format('woff2');
}

:root {
  --ink-950: #0f131d;
  --ink-900: #1b2030;
  --ink-700: #2f3750;
  --ink-400: #6f7b9c;
  --ink-300: #9aa4be;
  --amber-700: #96591b;
  --amber-500: #e8a24c;
  --amber-300: #f6cd97;
  --bone-paper: #fdfcf9;
  --bone-100: #f7f4ee;
  --bone-200: #efeae0;
  --bone-300: #e3dcce;
  --grey-900: #292722;
  --grey-700: #57534b;
  --grey-500: #837d72;
  --r-control: 4px;
  --r-card: 6px;
  --r-panel: 8px;
  --shadow-card: 0 1px 3px rgba(27, 32, 48, 0.05);
  --shadow-float: 0 12px 40px rgba(27, 32, 48, 0.1);
  --ease-ui: cubic-bezier(0.2, 0.6, 0.2, 1);
  --gutter: clamp(20px, 5vw, 72px);
  --content-max: 1240px;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; background: var(--bone-100); }

body {
  font-family: 'Sora', -apple-system, 'Segoe UI', sans-serif;
  color: var(--ink-900);
  font-size: 16px;
  line-height: 1.58;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; outline: none; }

a { color: var(--amber-700); text-decoration: none; }
a:hover { color: var(--ink-900); }
::selection { background: var(--amber-300); }

:where(a, button, video, [tabindex]):focus-visible {
  outline: 2px solid var(--amber-500);
  outline-offset: 2px;
  border-radius: var(--r-control);
}

.skip { position: absolute; left: -9999px; top: 0; z-index: 10; background: var(--ink-900); color: var(--bone-100); padding: 10px 16px; }
.skip:focus { left: 8px; top: 8px; color: var(--bone-100); }

.shell { max-width: var(--content-max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* ------------------------------------------------------------ header --- */

.top { background: var(--bone-100); border-bottom: 1px solid var(--bone-300); }
.top-in { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 14px; color: var(--ink-900); }
.brand img { display: block; height: 29px; width: auto; }
.brand-tag {
  font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--grey-500);
  padding-left: 14px; border-left: 1px solid var(--bone-300); line-height: 22px;
}
.navitem { font-size: 14px; font-weight: 500; color: var(--grey-900); padding: 9px 13px; border-radius: var(--r-control); transition: background 160ms var(--ease-ui); }
.navitem:hover { background: var(--bone-200); color: var(--grey-900); }

/* ------------------------------------------------------- typography --- */

.kicker { display: flex; align-items: center; gap: 10px; }
.kicker-dot { width: 7px; height: 7px; background: var(--amber-500); flex: none; }
.kicker-text { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; white-space: nowrap; color: var(--grey-700); }
h1 { margin: 18px 0 0; font-size: clamp(34px, 5.2vw, 60px); line-height: 1.04; letter-spacing: -0.042em; font-weight: 700; }
.lede { margin: 18px 0 0; max-width: 620px; font-size: clamp(15.5px, 1.4vw, 18px); line-height: 1.62; color: var(--grey-700); }
.eyebrow { font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--grey-500); }

/* ------------------------------------------------------------- list --- */

.hero { padding-top: clamp(44px, 7vw, 84px); padding-bottom: clamp(28px, 4vw, 44px); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.chip {
  font-family: inherit; font-size: 13.5px; font-weight: 500; padding: 9px 16px; border-radius: var(--r-control); cursor: pointer;
  background: transparent; color: var(--grey-700); border: 1px solid var(--bone-300);
  transition: background 160ms var(--ease-ui), color 160ms var(--ease-ui), border-color 160ms var(--ease-ui);
}
.chip:hover { border-color: var(--grey-500); }
.chip[aria-pressed='true'] { background: var(--ink-900); color: var(--bone-100); border-color: var(--ink-900); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: clamp(18px, 2.4vw, 28px); padding-bottom: clamp(56px, 8vw, 96px); }
.grid.few { grid-template-columns: repeat(auto-fill, minmax(300px, 420px)); }

.card {
  display: flex; flex-direction: column; background: var(--bone-paper); border: 1px solid var(--bone-300); border-radius: var(--r-card);
  overflow: hidden; color: var(--ink-900); box-shadow: var(--shadow-card);
  transition: box-shadow 160ms var(--ease-ui), border-color 160ms var(--ease-ui), transform 160ms var(--ease-ui);
}
.card:hover { color: var(--ink-900); border-color: var(--grey-500); box-shadow: var(--shadow-float); transform: translateY(-2px); }
.poster { position: relative; aspect-ratio: 16 / 9; background: var(--ink-900); }
.poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.badge {
  position: absolute; right: 10px; bottom: 10px; padding: 3px 8px; border-radius: var(--r-control);
  background: rgba(15, 19, 29, 0.86); color: var(--bone-100); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums;
}
.play {
  position: absolute; left: 14px; bottom: 12px; width: 40px; height: 40px; border-radius: var(--r-control);
  background: var(--bone-100); display: flex; align-items: center; justify-content: center;
}
.play::before { content: ''; margin-left: 3px; border-style: solid; border-width: 7px 0 7px 12px; border-color: transparent transparent transparent var(--ink-900); }
.card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; }
.card-title { margin: 0; font-size: 19px; line-height: 1.25; letter-spacing: -0.02em; font-weight: 600; }
.card-sum { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--grey-700); }

.state { padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(72px, 10vw, 120px); }
.state .panel { border: 1px solid var(--bone-300); border-radius: var(--r-panel); background: var(--bone-paper); padding: 34px 30px; max-width: 620px; }
.state .panel h2 { margin: 0; font-size: 22px; letter-spacing: -0.02em; }
.state .panel p { margin: 10px 0 0; color: var(--grey-700); }

/* ------------------------------------------------------------ watch --- */

.stage { background: var(--ink-950); }
.stage-in { max-width: 1180px; margin: 0 auto; padding: clamp(0px, 2.4vw, 32px) clamp(0px, 3vw, 40px); }
.stage video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: var(--r-card); }
@media (max-width: 760px) { .stage video { border-radius: 0; } }

.detail { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(28px, 4vw, 64px); padding-top: clamp(28px, 4vw, 44px); padding-bottom: clamp(48px, 7vw, 84px); }
@media (max-width: 900px) { .detail { grid-template-columns: 1fr; } }
.back { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--grey-700); }
.back:hover { color: var(--ink-900); }
.detail h1 { font-size: clamp(28px, 3.6vw, 44px); letter-spacing: -0.038em; line-height: 1.1; margin-top: 16px; }
.meta { margin: 14px 0 0; font-size: 14px; color: var(--grey-500); font-variant-numeric: tabular-nums; }
.detail .lede { max-width: 640px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.btn {
  font-family: inherit; font-size: 14.5px; font-weight: 600; border-radius: var(--r-control); cursor: pointer; display: inline-flex; align-items: center;
  background: transparent; color: var(--ink-900); border: 1.5px solid var(--ink-900); padding: 11px 20px;
  transition: background 160ms var(--ease-ui);
}
.btn:hover { background: rgba(27, 32, 48, 0.06); color: var(--ink-900); }
.btn:active { transform: translateY(1px); }

.chapters { border: 1px solid var(--bone-300); border-radius: var(--r-panel); background: var(--bone-paper); padding: 20px 10px 12px; align-self: start; }
.chapters .eyebrow { padding: 0 12px 10px; display: block; }
.chapters ol { list-style: none; margin: 0; padding: 0; }
.chapter {
  width: 100%; display: flex; align-items: center; gap: 12px; padding: 9px 12px; border: 0; background: none; cursor: pointer; text-align: left;
  font-family: inherit; font-size: 14.5px; color: var(--ink-900); border-radius: var(--r-control); transition: background 160ms var(--ease-ui);
}
.chapter:hover { background: var(--bone-200); }
.chapter .mark { width: 6px; height: 6px; flex: none; background: transparent; }
.chapter .at { width: 38px; flex: none; color: var(--grey-500); font-size: 13px; font-variant-numeric: tabular-nums; }
.chapter[aria-current='true'] { font-weight: 600; }
.chapter[aria-current='true'] .mark { background: var(--amber-500); }

.more { border-top: 1px solid var(--bone-300); padding-top: clamp(32px, 5vw, 56px); }
.more h2 { margin: 0 0 22px; font-size: clamp(22px, 2.6vw, 30px); letter-spacing: -0.03em; }

/* ----------------------------------------------------------- footer --- */

.foot { border-top: 1px solid var(--bone-300); background: var(--bone-paper); }
.foot-in { display: flex; flex-wrap: wrap; gap: 8px 28px; padding-top: 22px; padding-bottom: 22px; font-size: 13px; color: var(--grey-500); }
.foot-in a { margin-left: auto; color: var(--grey-700); }
.foot-in a:hover { color: var(--ink-900); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
