/* Look E, Product: like a software company's blog. Geist, tight tracking, hairlines, soft grey surfaces,
   topic pills. Reading column 38rem, bar and footer 64rem. Sizes and colours: tokens.css. */

:root {
  --pad: 1.25rem;
  --wide: 64rem;
}

@media (min-width: 48rem) {
  :root {
    --pad: 2rem;
  }
}

body {
  letter-spacing: var(--tr-body);
}

h1,
h2,
h3 {
  font-family: var(--font-head);
  text-wrap: balance;
}

p,
li {
  text-wrap: pretty;
}

a {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-color: var(--rule);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
  transition: text-decoration-color 150ms ease-out, color 150ms ease-out, background-color 120ms ease-out;
}

a:hover {
  text-decoration-color: currentColor;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Sticky bar with hairline */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  -webkit-backdrop-filter: saturate(1.5) blur(12px);
  backdrop-filter: saturate(1.5) blur(12px);
  border-bottom: 1px solid var(--rule);
}

.topbar-in {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0.8rem 6rem 0.8rem var(--pad);
}

@media (min-width: 76rem) {
  .topbar-in {
    padding-right: var(--pad);
  }
}

.topbar .name {
  white-space: nowrap;
  font-weight: 600;
  letter-spacing: -0.015em;
  text-decoration: none;
}

.topbar nav {
  display: flex;
  gap: var(--space-1);
  margin-left: auto;
}

@media (max-width: 47.99rem) {
  .topbar nav {
    margin-left: 0;
  }
}

.topbar nav a {
  padding: 0.3rem 0.7rem;
  border-radius: 8px;
  color: var(--muted);
  font-size: var(--fs-small);
  text-decoration: none;
}

.topbar nav a:hover {
  background: var(--surface);
  color: var(--ink);
}

.topbar nav a[aria-current="page"] {
  color: var(--ink);
}

.wrap {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* Home */
.hero,
.filters,
.groups,
.work {
  max-width: var(--measure);
  margin-left: auto;
  margin-right: auto;
}

.hero {
  padding: var(--space-7) 0 var(--space-6);
}

@media (min-width: 48rem) {
  .hero {
    padding: 6.5rem 0 var(--space-7);
  }
}

.intro {
  margin: 0;
  font-size: var(--fs-display);
  line-height: var(--lh-display);
  font-weight: var(--fw-display);
  letter-spacing: var(--tr-display);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-7);
}

.filters[hidden] {
  display: none;
}

.pill {
  display: inline-block;
  margin: 0;
  padding: 0.35rem 0.85rem;
  font: inherit;
  font-size: var(--fs-small);
  line-height: 1.4;
  letter-spacing: 0;
  color: var(--muted);
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 150ms ease-out, color 150ms ease-out, border-color 150ms ease-out;
}

.pill:hover {
  color: var(--ink);
  background: var(--surface);
}

.pill[aria-pressed="true"] {
  color: var(--bg);
  background: var(--ink);
  border-color: var(--ink);
}

.groups.is-fading {
  animation: e-fade 150ms ease-out;
}

@keyframes e-fade {
  from {
    opacity: 0.2;
  }
  to {
    opacity: 1;
  }
}

.topic {
  margin: 0 0 var(--space-7);
}

.topic h2,
.work h2,
.more h2 {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  margin: 0 0 var(--space-3);
  font-size: var(--fs-body);
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.count {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  font-weight: 400;
}

.rows {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--rule);
}

.rows li {
  border-bottom: 1px solid var(--rule);
  padding: 0.3rem 0;
}

.row {
  display: block;
  margin: 0 -0.75rem;
  padding: 0.75rem 0.75rem 0.8rem;
  border-radius: 10px;
  text-decoration: none;
}

.row:hover,
.row:focus-visible {
  background: var(--surface);
}

.row-title {
  display: block;
  font-size: var(--fs-h3);
  line-height: var(--lh-h3);
  font-weight: 600;
  letter-spacing: var(--tr-h3);
}

.row-dek {
  display: block;
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: var(--fs-small);
  line-height: var(--lh-small);
  letter-spacing: 0;
}

.work {
  padding: var(--space-6) 0 0;
  border-top: 1px solid var(--rule);
}

.work-body p {
  margin: 0 0 var(--space-4);
  color: var(--muted);
}

.button {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  background: var(--ink);
  color: var(--bg);
  font-size: var(--fs-small);
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 0;
}

.button:hover {
  background: color-mix(in srgb, var(--ink) 85%, var(--bg));
  color: var(--bg);
}

/* Article */
.post-head,
.prose,
.footnotes,
.more {
  max-width: var(--measure);
  margin-left: auto;
  margin-right: auto;
}

.post-head {
  padding: var(--space-7) 0 var(--space-6);
  border-bottom: 1px solid var(--rule);
  margin-bottom: var(--space-6);
}

@media (min-width: 48rem) {
  .post-head {
    padding-top: 5rem;
  }
}

.tag {
  margin-bottom: var(--space-5);
}

.post-head h1 {
  margin: 0 0 var(--space-4);
  font-size: var(--fs-h1);
  line-height: var(--lh-h1);
  font-weight: var(--fw-h1);
  letter-spacing: var(--tr-h1);
}

.lead {
  margin: 0 0 var(--space-5);
  color: var(--muted);
  font-size: var(--fs-lead);
  line-height: var(--lh-lead);
  letter-spacing: var(--tr-lead);
}

.byline {
  display: flex;
  gap: var(--space-4);
  margin: 0;
  color: var(--muted);
  font-size: var(--fs-small);
  letter-spacing: 0;
}

.byline span:first-child {
  color: var(--ink);
  font-weight: 500;
}

.prose p,
.prose ol {
  margin: 0 0 1.1em;
}

.prose a {
  color: var(--accent);
  text-decoration-color: color-mix(in srgb, var(--accent) 35%, transparent);
}

.prose a:hover {
  text-decoration-color: var(--accent);
}

.prose h2 {
  position: relative;
  margin: var(--space-7) 0 var(--space-3);
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
  font-weight: var(--fw-h2);
  letter-spacing: var(--tr-h2);
  scroll-margin-top: 5rem;
}

.prose h3 {
  margin: var(--space-6) 0 var(--space-2);
  font-size: var(--fs-h3);
  line-height: var(--lh-h3);
  font-weight: var(--fw-h3);
  letter-spacing: var(--tr-h3);
}

/* Heading link mark (look.js adds it) */
.h-anchor {
  margin-left: 0.4em;
  color: var(--muted);
  font-weight: 400;
  text-decoration: none;
  opacity: 0;
  transition: opacity 150ms ease-out, color 150ms ease-out;
}

.prose h2:hover .h-anchor,
.h-anchor:focus-visible {
  opacity: 1;
}

.h-anchor:hover {
  color: var(--accent);
}

.prose ol {
  padding-left: 1.4em;
}

.prose li {
  margin: 0 0 0.45em;
  padding-left: 0.2em;
}

.prose li::marker {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.9em;
}

.pull {
  margin: var(--space-7) 0;
  padding: 0 0 0 var(--space-5);
  border-left: 2px solid var(--accent);
}

.pull p {
  margin: 0;
  font-size: var(--fs-quote);
  line-height: var(--lh-quote);
  font-weight: var(--fw-quote);
  letter-spacing: var(--tr-quote);
}

pre.code {
  margin: var(--space-5) 0;
  padding: var(--space-4) var(--space-5);
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 12px;
  letter-spacing: 0;
}

.fig {
  margin: var(--space-6) 0;
}

.fig .fp-bg {
  rx: 10px;
}

.fig figcaption {
  margin-top: var(--space-3);
  color: var(--muted);
  font-size: var(--fs-small);
  line-height: var(--lh-small);
  letter-spacing: 0;
}

.fn-ref {
  font-size: 0.72em;
  line-height: 0;
  vertical-align: super;
}

.fn-ref a {
  padding: 0 0.15em;
  color: var(--accent);
  text-decoration: none;
}

.footnotes {
  margin-top: var(--space-7);
  padding-top: var(--space-4);
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: var(--fs-small);
  line-height: var(--lh-small);
  letter-spacing: 0;
}

.footnotes h2 {
  margin: 0 0 var(--space-2);
  color: var(--ink);
  font-size: var(--fs-small);
  font-weight: 600;
}

.footnotes ol {
  margin: 0;
  padding-left: 1.25em;
}

.footnotes a {
  color: var(--muted);
}

.more {
  margin-top: var(--space-8);
}

/* Footer */
.foot {
  margin-top: var(--space-8);
  border-top: 1px solid var(--rule);
}

.foot-in {
  max-width: var(--wide);
  margin: 0 auto;
  padding: var(--space-6) var(--pad) var(--space-7);
}

.contact {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
  margin: 0 0 var(--space-2);
  font-size: var(--fs-small);
}

.place,
.preview {
  margin: 0 0 var(--space-2);
  color: var(--muted);
  font-size: var(--fs-small);
  line-height: var(--lh-small);
  letter-spacing: 0;
}

.preview {
  margin-top: var(--space-5);
}

.theme-toggle {
  top: 0.7rem;
  right: 1rem;
  border-radius: 8px;
  font-size: var(--fs-small);
  letter-spacing: 0;
}

.nf {
  margin: var(--space-4) 0 var(--space-8);
}

.home > .wrap .intro + .nf {
  margin-top: var(--space-4);
}

/* Style guide */
.guide {
  max-width: 44rem;
  margin: 0 auto;
  padding-top: var(--space-7);
}

.g-head h1 {
  margin: 0 0 var(--space-4);
  font-size: var(--fs-h1);
  line-height: var(--lh-h1);
  font-weight: var(--fw-h1);
  letter-spacing: var(--tr-h1);
}

.g-head p {
  margin: 0 0 var(--space-3);
}

.g-head .lead {
  margin-bottom: var(--space-3);
}

.guide h2 {
  margin: 0 0 var(--space-4);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--rule);
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
  font-weight: var(--fw-h2);
  letter-spacing: var(--tr-h2);
}

.guide h3 {
  font-size: var(--fs-h3);
  letter-spacing: var(--tr-h3);
}

.g-sec > p {
  margin: 0 0 1em;
}

.g-chip {
  border-radius: 8px;
}

/* ---------------------------------------------------------------- round 3: landing, writing, summit */

/* Landing: runs the full 64rem so the content lines up with the bar */
.landing .hero {
  max-width: 46rem;
  margin-left: 0;
  padding-bottom: var(--space-7);
}

.hero-sub {
  max-width: 38rem;
  margin: var(--space-4) 0 0;
  color: var(--muted);
  font-size: var(--fs-lead);
  line-height: var(--lh-lead);
  letter-spacing: var(--tr-lead);
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin: var(--space-6) 0 0;
}

.button-quiet {
  display: inline-block;
  padding: 0.5rem 1rem;
  border: 1px solid var(--rule);
  border-radius: 8px;
  color: var(--ink);
  font-size: var(--fs-small);
  font-weight: 500;
  letter-spacing: 0;
  text-decoration: none;
}

.button-quiet:hover {
  background: var(--surface);
}

.studio,
.featured {
  margin: 0 0 var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid var(--rule);
}

.studio h2,
.featured h2 {
  margin: 0 0 var(--space-2);
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
  font-weight: var(--fw-h2);
  letter-spacing: var(--tr-h2);
}

.studio-note {
  max-width: 38rem;
  margin: 0 0 var(--space-5);
  color: var(--muted);
  letter-spacing: 0;
}

.stills {
  gap: var(--space-5);
}

.still img {
  border: 1px solid var(--rule);
  border-radius: 12px;
  transition: border-color 150ms ease-out;
}

.still:hover img {
  border-color: var(--muted);
}

.still-name {
  margin-top: var(--space-3);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.featured .rows {
  max-width: 46rem;
  margin-top: var(--space-4);
}

.all {
  margin: var(--space-5) 0 0;
  font-size: var(--fs-small);
  letter-spacing: 0;
}

.all a {
  font-weight: 500;
}

/* Writing page head */
.page-head {
  max-width: var(--measure);
  margin: 0 auto;
  padding: var(--space-7) 0 var(--space-5);
}

@media (min-width: 48rem) {
  .page-head {
    padding-top: 5.5rem;
  }
}

.page-head .intro {
  font-size: var(--fs-h1);
  line-height: var(--lh-h1);
}

.page-sub {
  margin: var(--space-3) 0 0;
  color: var(--muted);
  font-size: var(--fs-lead);
  line-height: var(--lh-lead);
}

.empty {
  color: var(--muted);
}

/* Summit */
.summit {
  max-width: var(--measure);
  margin: 0 auto;
  padding: var(--space-7) 0 var(--space-6);
}

@media (min-width: 48rem) {
  .summit {
    padding-top: 5rem;
  }
}

.summit .intro {
  font-size: var(--fs-h1);
  line-height: var(--lh-h1);
}

.summit-sub {
  margin: var(--space-4) 0 var(--space-6);
  color: var(--muted);
  font-size: var(--fs-lead);
  line-height: var(--lh-lead);
}

.offer {
  margin: 0 0 var(--space-6);
  padding: var(--space-5);
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 14px;
}

.offer-line {
  margin: 0 0 var(--space-2);
  font-size: var(--fs-h3);
  line-height: var(--lh-h3);
  font-weight: 600;
  letter-spacing: var(--tr-h3);
}

.offer-note {
  margin: 0;
  color: var(--muted);
  font-size: var(--fs-small);
  letter-spacing: 0;
}

.field label {
  font-size: var(--fs-small);
  letter-spacing: 0;
}

.field input,
.field textarea {
  border-radius: 8px;
  letter-spacing: 0;
}

.form-actions .button {
  border: 0;
  padding: 0.6rem 1.25rem;
}

.sent {
  padding: var(--space-5);
  border: 1px solid var(--rule);
  border-radius: 14px;
}

.sent p {
  margin: 0 0 var(--space-2);
}

.theme-toggle.switch {
  border-radius: 999px;
}

@media (max-width: 47.99rem) {
  .topbar-in {
    flex-wrap: wrap;
    gap: var(--space-1) var(--space-4);
    padding-right: 4.5rem;
  }
  .topbar nav a {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
}

/* ---------------------------------------------------------------- round 4: landing around Sam's current focus */
.landing .hero {
  padding-bottom: var(--space-7);
}

.landing .hero-sub {
  max-width: 40rem;
}

.now {
  display: grid;
  gap: var(--space-7);
  padding: var(--space-7) 0 var(--space-8);
  border-top: 1px solid var(--rule);
}

@media (min-width: 60rem) {
  .now {
    grid-template-columns: minmax(0, 1fr) 19rem;
    gap: 4.5rem;
    align-items: start;
  }
}

.label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 var(--space-4);
  padding: 0.25rem 0.75rem 0.25rem 0.6rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  color: var(--muted);
  font-size: var(--fs-small);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0;
}

.label::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--accent);
}

.focus h2 {
  margin: 0 0 var(--space-5);
  font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.25rem);
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.focus-body {
  max-width: 36rem;
}

.focus-body p {
  margin: 0 0 0.85em;
}

.focus .stills {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
  max-width: 40rem;
  margin: var(--space-6) 0 var(--space-5);
}

.focus .still img {
  border: 1px solid var(--rule);
  border-radius: 12px;
}

.focus-link {
  margin: 0;
}

.focus-link .button {
  padding: 0.55rem 1.15rem;
}

.status {
  padding: var(--space-5);
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 14px;
}

.status .label {
  background: var(--bg);
}

.status-list {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--fs-small);
  line-height: var(--lh-small);
  letter-spacing: 0;
}

.status-list li {
  padding: var(--space-3) 0;
  border-top: 1px solid var(--rule);
}

.status-list li:first-child {
  border-top: 0;
  padding-top: 0;
}

.status-list li:last-child {
  padding-bottom: 0;
}

.status-list strong {
  font-weight: 600;
}

.landing .featured {
  margin-top: 0;
}

.landing .featured h2 {
  font-size: var(--fs-h2);
}

/* ---------------------------------------------------------------- round 5: notices, lamp, one calm page */
.notice-bar {
  padding: 0.5rem var(--pad);
  background: var(--surface);
  border-bottom: 1px solid var(--rule);
  color: var(--muted);
  font-size: var(--fs-small);
  line-height: 1.45;
  letter-spacing: 0;
  text-align: center;
}

.notice-label {
  display: inline-block;
  margin-right: 0.4rem;
  padding: 0.05rem 0.55rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--bg);
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 600;
}

@media (max-width: 47.99rem) {
  .notice-bar {
    text-align: left;
  }
}

.topbar-in {
  padding-right: var(--pad);
}

@media (max-width: 47.99rem) {
  .topbar-in {
    flex-wrap: nowrap;
    padding-right: var(--pad);
  }
  .topbar nav {
    margin-left: auto;
  }
}

.lamp {
  align-self: flex-start;
  margin: -0.8rem 0 -0.8rem var(--space-2);
}

/* Hero: the one big thing, then quiet lines */
.landing .hero {
  max-width: 44rem;
  padding: 5rem 0 var(--space-7);
}

@media (max-width: 47.99rem) {
  .landing .hero {
    padding-top: var(--space-6);
  }
}

.landing .hero-sub {
  max-width: 36rem;
  margin: var(--space-4) 0 var(--space-4);
}

.meta-row {
  margin: 0 0 var(--space-5);
  color: var(--muted);
  font-size: var(--fs-small);
  letter-spacing: 0;
}

.meta-label {
  color: var(--ink);
  font-weight: 600;
}

.meta-sep {
  margin: 0 0.3rem;
}

.now-note {
  max-width: 36rem;
  border: 1px solid var(--rule);
  border-radius: 12px;
  font-size: var(--fs-small);
  line-height: var(--lh-small);
  letter-spacing: 0;
}

.now-note summary {
  padding: 0.7rem 1rem;
  border-radius: 12px;
  transition: background-color 120ms ease-out;
}

.now-note summary:hover {
  background: var(--surface);
}

.now-note summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.now-line {
  color: var(--ink);
}

.now-note .why {
  color: var(--muted);
  margin-left: 0.25rem;
}

.why-body {
  padding: 0.2rem 1rem 0.9rem;
  color: var(--ink);
}

/* Blocks: small label, then content; hairline between */
.block {
  margin: 0;
  padding: var(--space-6) 0 var(--space-7);
  border-top: 1px solid var(--rule);
}

.block > h2.block-label {
  display: block;
  margin: 0 0 var(--space-4);
  padding: 0;
  border: 0;
  color: var(--muted);
  font-size: var(--fs-small);
  line-height: var(--lh-small);
  font-weight: 500;
  letter-spacing: 0;
  font-stretch: 100%;
}

.cards {
  max-width: 46rem;
  gap: var(--space-5);
}

.card-frame {
  background: color-mix(in srgb, var(--accent) 7%, var(--bg));
  border: 1px solid var(--rule);
  border-radius: 14px;
  transition: border-color 150ms ease-out;
}

.card-frame img {
  border-radius: 6px;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.06), 0 8px 24px -10px rgb(0 0 0 / 0.25);
}

.card:hover .card-frame {
  border-color: var(--muted);
}

.card-name {
  font-weight: 600;
  letter-spacing: -0.01em;
}

.block .rows {
  max-width: 46rem;
  margin-top: 0;
}

.block .all {
  margin-top: var(--space-4);
}

@media (max-width: 47.99rem) {
  .notice-bar {
    font-size: 0.8125rem;
  }
}

/* ---------------------------------------------------------------- /ai-summit-vancouver/ */
.choice {
  background: color-mix(in srgb, var(--accent) 7%, var(--bg));
  border: 1px solid var(--rule);
  border-radius: 14px;
}

.choice:hover {
  border-color: var(--muted);
}

.choice.is-picked {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.choice-title {
  font-size: var(--fs-h3);
  letter-spacing: var(--tr-h3);
}

.cal-fallback {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 14px;
  font-size: var(--fs-small);
}

.cal-embed {
  border: 1px solid var(--rule);
  border-radius: 14px;
  overflow: hidden;
}

.booking,
.note {
  scroll-margin-top: 4.5rem;  /* clear the sticky bar */
}

/* ---------------------------------------------------------------- round 6: header fits "Video Samples"; summit welcome */
@media (max-width: 47.99rem) {
  .topbar-in {
    flex-wrap: wrap;
    row-gap: 0.1rem;
  }
  .topbar .name {
    order: 1;
  }
  .lamp {
    order: 2;
    margin-left: auto;
  }
  .topbar nav {
    order: 3;
    flex-basis: 100%;
    margin-left: -0.5rem;
  }
}

.summit {
  padding-top: var(--space-6);
}

@media (min-width: 48rem) {
  .summit {
    padding-top: 4.5rem;
  }
}

.summit-label {
  display: inline-block;
  margin-bottom: var(--space-3);
  padding: 0.15rem 0.7rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 500;
  letter-spacing: 0;
}

.summit-h1 {
  font-size: clamp(1.9rem, 1.4rem + 2vw, 2.6rem);
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -0.035em;
}

.summit .summit-sub {
  margin: var(--space-3) 0 var(--space-5);
}

.summit-art {
  margin-top: 0.25rem;
  color: var(--ink);
}

.pick {
  border-radius: 14px;
}

.pick-art {
  border-radius: 10px;
}

.pick-title {
  letter-spacing: -0.01em;
}

.note > summary {
  letter-spacing: 0;
}

/* the summit label reads as a quiet line, not a pill, so it wraps cleanly on phones */
.summit-label {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--muted);
  font-weight: 500;
}

.summit-label::before {
  content: "";
  flex: none;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--accent);
  transform: translateY(-0.05em);
}

/* ---------------------------------------------------------------- round 7 (Sam picked E) */

/* "Latest happening" bar: same container and padding as the header, so it lines up with "Sam Talks Growth" */
.notice-bar {
  padding: 0.5rem 0;
  text-align: left;
}

.notice-bar p {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* "Current experiment": a quiet live dot inside the badge */
.now-note .notice-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.now-note .notice-label::before {
  content: "";
  flex: none;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 45%, transparent);
  animation: live-dot 2.6s ease-out infinite;
}

@keyframes live-dot {
  0% {
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 45%, transparent);
  }
  70% {
    box-shadow: 0 0 0 0.35rem color-mix(in srgb, var(--accent) 0%, transparent);
  }
  100% {
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 0%, transparent);
  }
}

/* Landing Writing: topic chips under the label */
.feat-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: 0 0 var(--space-4);
}

.feat-filters[hidden] {
  display: none;
}

.feat-list li[hidden] {
  display: none;
}

.cal-nojs {
  margin: 0 0 var(--space-5);
}

/* ---------------------------------------------------------------- round 8: two items in the Latest happening bar */
.notice-sep {
  margin: 0 0.55rem;
  color: var(--muted);
}

.notice-bar a.notice-item {
  color: var(--ink);
  text-decoration-line: underline;
  text-decoration-color: var(--rule);
  text-underline-offset: 0.2em;
}

.notice-bar a.notice-item:hover {
  text-decoration-color: currentColor;
}

/* Phones: the label, then each item on its own line, no separator */
@media (max-width: 47.99rem) {
  .notice-bar p {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    column-gap: 0.5rem;
    row-gap: 0.15rem;
  }
  .notice-sep {
    display: none;
  }
}

.now-note {
  max-width: 42rem;
}

/* ---------------------------------------------------------------- topic badges after post titles (Sam 01:07)
   Soft tints, one colour per topic; text on tint is 5.8:1 or better in both themes. Same pill and dot as the
   Current experiment badge, but static. */
:root {
  --t-growth-bg: #E2F3E8;
  --t-growth-fg: #1A6A3C;
  --t-trends-bg: #FCEFD9;
  --t-trends-fg: #8A4A06;
  --t-ai-bg: #ECE8FD;
  --t-ai-fg: #4F35C2;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --t-growth-bg: #16301F;
    --t-growth-fg: #8FDDB0;
    --t-trends-bg: #36280F;
    --t-trends-fg: #F3C07A;
    --t-ai-bg: #272049;
    --t-ai-fg: #BCB0FF;
  }
}

:root[data-theme="dark"] {
  --t-growth-bg: #16301F;
  --t-growth-fg: #8FDDB0;
  --t-trends-bg: #36280F;
  --t-trends-fg: #F3C07A;
  --t-ai-bg: #272049;
  --t-ai-fg: #BCB0FF;
}

.topic-badge {
  --badge-bg: var(--surface);
  --badge-fg: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: 0.5rem;
  padding: 0.05rem 0.55rem 0.05rem 0.45rem;
  border-radius: 999px;
  background: var(--badge-bg);
  color: var(--badge-fg);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0;
  white-space: nowrap;
  vertical-align: 0.15em;
  text-decoration: none;
}

.topic-badge::before {
  content: "";
  flex: none;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: currentColor;
}

.topic-badge.t-growth {
  --badge-bg: var(--t-growth-bg);
  --badge-fg: var(--t-growth-fg);
}

.topic-badge.t-trends {
  --badge-bg: var(--t-trends-bg);
  --badge-fg: var(--t-trends-fg);
}

.topic-badge.t-ai {
  --badge-bg: var(--t-ai-bg);
  --badge-fg: var(--t-ai-fg);
}

/* On a post page the topic label at the top is the same badge, as a link to that topic on /writing/ */
.post-head > a.topic-badge {
  margin: 0 0 var(--space-5);
  font-size: var(--fs-small);
  padding: 0.15rem 0.7rem 0.15rem 0.55rem;
}

.post-head > a.topic-badge:hover {
  box-shadow: inset 0 0 0 1px currentColor;
}

.post-head > a.topic-badge:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Summit page: the quick way to connect, in LinkedIn blue but the site's own shape and type */
.summit-linkedin { margin: 0.9rem 0 1.1rem; }
.button-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.6rem 1.1rem 0.6rem 0.9rem;
  border-radius: 8px;
  background: #0A66C2;
  color: #fff;
  font-size: var(--fs-small);
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 1px 2px rgb(10 102 194 / 0.25);
  transition: background-color 0.15s ease, transform 0.15s ease;
}
.button-linkedin svg { width: 1.2em; height: 1.2em; flex: none; }
.button-linkedin:hover { background: #004182; color: #fff; }
.button-linkedin:active { transform: translateY(1px); }
.button-linkedin:focus-visible { outline: 2px solid #0A66C2; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .button-linkedin { transition: none; } }

/* Nav: Connect goes to the summit page, a quiet outlined pill so it's easy to find on a small phone (Sam 2026-11-02) */
.topbar nav a.nav-connect {
  color: var(--ink);
  font-weight: 500;
  box-shadow: inset 0 0 0 1px var(--rule);
}
.topbar nav a.nav-connect:hover,
.topbar nav a.nav-connect[aria-current="page"] {
  background: var(--surface);
}

/* ---------------------------------------------------------------- round 9: /work/, the Video Samples page (Sam 2026-11-02)
   Better videos first, a sector per sample in the jump bar, a one-liner, the problem and the solution. Previews loop
   like a GIF; a click opens the lightbox player (looks/work.js). One markup, three layouts: .layout-a rows,
   .layout-b cards, .layout-c problem first. */
.work-head {
  max-width: none;
  margin: 0;
  padding-bottom: var(--space-5);
}

.work-head .page-sub {
  max-width: 40rem;
}

.work-head mark {
  padding: 0 0.2em;
  border-radius: 4px;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  color: var(--ink);
  white-space: nowrap;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.jump {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-5);
}

.jump .pill {
  font-weight: 500;
}

/* Phones: one row that scrolls sideways, so ten sectors don't push the videos down a screen */
@media (max-width: 47.99rem) {
  .jump {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin: var(--space-4) calc(-1 * var(--pad)) 0;
    padding: 0 var(--pad) 0.25rem;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 2.5rem), transparent);
    mask-image: linear-gradient(to right, #000 calc(100% - 2.5rem), transparent);
  }
  .jump::-webkit-scrollbar {
    display: none;
  }
  .jump .pill {
    flex: none;
  }
}

.samples-list {
  padding-bottom: var(--space-6);
}

.sample {
  scroll-margin-top: 4.5rem;  /* clear the sticky bar when a landing card links here */
}

.s-head h2 {
  margin: 0;
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
  font-weight: var(--fw-h2);
  letter-spacing: var(--tr-h2);
}

.s-sector {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 var(--space-2);
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0;
}

.s-sector::before {
  content: "";
  flex: none;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--accent);
}

.s-line {
  margin: var(--space-1) 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.5;
  letter-spacing: 0;
}

/* The preview: a still, then the muted loop on top once it plays; the badge says it's a video and how long */
.s-media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--surface);
  color: #fff;
  text-decoration: none;
  isolation: isolate;
}

.s-poster,
.s-loop {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease-out, opacity 200ms ease-out;
}

.s-loop {
  opacity: 0;
}

.s-loop.is-on {
  opacity: 1;
}

/* A big, see-through play button in the middle (the lightbox player's is the same size), what the clip is
   bottom left, and how many videos there are top right (Sam 21:07) */
.s-play {
  --size: 4.5rem;
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: var(--size);
  height: var(--size);
  margin: calc(var(--size) / -2) 0 0 calc(var(--size) / -2);
  border-radius: 50%;
  background: rgb(14 14 17 / 0.45);
  box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / 0.35);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: background-color 150ms ease-out, transform 150ms ease-out;
}

.s-play svg {  /* the player's icon at the player's size and nudge, so the two buttons look the same */
  position: relative;
  left: 0.1rem;
  width: 1.6rem;
  height: 1.6rem;
  fill: #fff;
}

.s-label {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgb(14 14 17 / 0.72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0;
}

.s-label {
  top: 0.75rem;
  left: 0.75rem;
}

.s-label-dur {
  font-weight: 400;
  opacity: 0.8;
  font-variant-numeric: tabular-nums;
}

.s-media:hover .s-poster,
.s-media:hover .s-loop {
  transform: scale(1.015);
}

.s-media:hover .s-play,
.s-media:focus-visible .s-play {
  background: rgb(14 14 17 / 0.65);
  transform: scale(1.06);
}

.s-media:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 12px;
}

/* The other videos: smaller cards stacked over the main one's lower right corner, tilted a little like a pile of
   widgets (Sam 21:40). Pointing at one straightens it, lifts it to the top and plays its loop; they settle into place
   when the sample scrolls in. */
.s-videos {
  position: relative;
}

.s-videos.has-stack {
  padding-bottom: 3.25rem;  /* the cards hang this far below the main video */
}

.s-strip {
  margin: 0;
  padding: 0;
  list-style: none;
}

.s-strip > li {
  --w: 38%;
  --step: 30%;
  position: absolute;
  right: calc(3% + (var(--n) - 1 - var(--i)) * var(--step));  /* first card on the left, so they read in order */
  bottom: 0;
  z-index: calc(10 + var(--i));
  width: var(--w);
}

.s-strip.is-many > li {
  --w: 33%;
  --step: 29%;
}

.s-strip > li:hover,
.s-strip > li:focus-within {
  z-index: 20;
}

.s-thumb {
  --rot: 3deg;
  display: block;
  padding: 0.3rem 0.3rem 0.45rem;
  border: 1px solid var(--rule);
  border-radius: 14px;
  background: var(--bg);
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.06), 0 14px 30px -14px rgb(0 0 0 / 0.4);
  transform: rotate(var(--rot));
  transition: transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 260ms ease-out, opacity 260ms ease-out;
}

.s-strip > li:nth-child(2) .s-thumb {
  --rot: -2.5deg;
}

.s-strip > li:nth-child(3) .s-thumb {
  --rot: 2deg;
}

.s-thumb:hover,
.s-thumb:focus-visible {
  transform: translateY(-6px) rotate(0deg) scale(1.04);
  box-shadow: 0 2px 4px rgb(0 0 0 / 0.08), 0 22px 40px -14px rgb(0 0 0 / 0.45);
}

.s-thumb:active {
  transform: translateY(-3px) rotate(0deg) scale(1.01);
  transition-duration: 90ms;
}

.s-thumb:focus-visible {
  outline-offset: 3px;
  border-radius: 14px;
}

/* Settling in: JS sets .is-pre until the sample is on screen, then each card drops into place a beat after the last */
.s-strip.is-pre .s-thumb {
  opacity: 0;
  transform: translateY(14px) rotate(0deg);
}

.s-strip.is-entering .s-thumb {
  transition-delay: calc(120ms + var(--i) * 80ms);
}

.s-thumb-img {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 9px;
  background: var(--surface);
}

.s-thumb-img img,
.s-hover-loop {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.s-hover-loop {
  opacity: 0;
  transition: opacity 150ms ease-out;
}

.s-hover-loop.is-on {
  opacity: 1;
}

.s-thumb-play {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  margin: -1.125rem 0 0 -1.125rem;
  border-radius: 50%;
  background: rgb(14 14 17 / 0.45);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.35);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  transition: transform 150ms ease-out, background-color 150ms ease-out;
}

.s-thumb-play svg {
  position: relative;
  left: 0.05rem;
  width: 0.8rem;
  height: 0.8rem;
  fill: #fff;
}

.s-thumb:hover .s-thumb-play {
  background: rgb(14 14 17 / 0.65);
  transform: scale(1.08);
}

.s-thumb-text {
  display: grid;
  padding: 0.35rem 0.3rem 0;
}

.s-thumb-title {
  overflow: hidden;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.s-thumb-dur {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.35;
  letter-spacing: 0;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 47.99rem) {
  .s-videos.has-stack {
    padding-bottom: 2.75rem;
  }
  .s-strip > li {
    --w: 40%;
  }
  .s-strip.is-many > li {
    --w: 34%;
    --step: 30%;
  }
  .s-thumb-play {
    width: 1.9rem;
    height: 1.9rem;
    margin: -0.95rem 0 0 -0.95rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .s-thumb,
  .s-thumb-play {
    transition: none;
  }
}

/* Problem and solution: a small label with a dot (amber, green), then one plain sentence */
.s-ps {
  display: grid;
  gap: var(--space-3);
  margin: 0;
}

.s-ps > div {
  display: grid;
  gap: 0.15rem;
}

.s-ps dt {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.s-ps dt::before {
  content: "";
  flex: none;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--t-trends-fg);
}

.s-solution dt::before {
  background: var(--t-growth-fg);
}

.s-ps dd {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.5;
  letter-spacing: 0;
}

.s-head { grid-area: head; }
.s-videos { grid-area: media; }
.s-ps { grid-area: ps; }

/* ---- Layout A: rows. Phones: name, video, problem, solution. Desktop: the video left, the words right. */
.layout-a .sample {
  display: grid;
  grid-template-areas: "head" "media" "ps";
  gap: var(--space-4);
  padding: var(--space-6) 0;
  border-top: 1px solid var(--rule);
}

@media (min-width: 52rem) {
  .layout-a .sample {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    grid-template-rows: auto 1fr;
    grid-template-areas: "media head" "media ps";
    column-gap: 2.75rem;
    row-gap: var(--space-4);
    align-items: start;
    padding: var(--space-7) 0;
  }
}

/* ---- Layout B: cards. Phones: one card per screen. Desktop: two across. */
.layout-b {
  display: grid;
  gap: var(--space-5);
  padding-top: var(--space-3);
}

@media (min-width: 48rem) {
  .layout-b {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-6) var(--space-5);
  }
}

.layout-b .sample {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: 16px;
  background: var(--bg);
}

.layout-b .s-videos {
  order: -1;
}

.layout-b .s-media {
  border: 0;
  border-bottom: 1px solid var(--rule);
  border-radius: 0;
}

.layout-b .s-strip > li {
  bottom: 0.75rem;
}

.layout-b .s-media:focus-visible {
  outline-offset: -3px;
}

.layout-b .s-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "name sector" "line line";
  align-items: center;
  column-gap: var(--space-3);
  padding: 1.1rem 1.25rem 0;
}

.layout-b .s-head h2 {
  grid-area: name;
  font-size: var(--fs-h3);
  line-height: var(--lh-h3);
}

.layout-b .s-sector {
  grid-area: sector;
  margin: 0;
  padding: 0.1rem 0.6rem 0.1rem 0.5rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-size: 0.75rem;
}

.layout-b .s-line {
  grid-area: line;
  font-size: var(--fs-small);
}

.layout-b .s-ps {
  gap: var(--space-2);
  margin: var(--space-4) 1.25rem 0;
  padding-top: var(--space-4);
  border-top: 1px solid var(--rule);
}

.layout-b .s-ps > div {
  grid-template-columns: 5.25rem minmax(0, 1fr);
  align-items: baseline;
  gap: var(--space-2);
}

.layout-b .s-ps dt {
  justify-self: start;
  padding: 0.05rem 0.5rem 0.05rem 0.4rem;
  border-radius: 999px;
  background: var(--t-trends-bg);
  color: var(--t-trends-fg);
  font-size: 0.6875rem;
}

.layout-b .s-solution dt {
  background: var(--t-growth-bg);
  color: var(--t-growth-fg);
}

.layout-b .s-ps dt::before {
  background: currentColor;
}

.layout-b .s-ps dd {
  font-size: var(--fs-small);
}

.layout-b .sample > :last-child {
  margin-bottom: 1.25rem;
}

@media (max-width: 47.99rem) {
  .layout-b .s-head,
  .layout-b .s-ps {
    margin-left: 1rem;
    margin-right: 1rem;
    padding-left: 0;
    padding-right: 0;
  }
  .layout-b .s-head {
    padding-top: 0.9rem;
  }
  .layout-b .s-ps > div {  /* the label above the sentence, so the sentence gets the card's full width */
    grid-template-columns: minmax(0, 1fr);
    gap: 0.3rem;
  }
}

/* ---- Layout C: problem first. The problem is the headline; the solution and the video follow. */
.layout-c .sample {
  display: grid;
  grid-template-areas: "head" "problem" "media" "solution";
  gap: var(--space-4);
  padding: var(--space-6) 0;
  border-top: 1px solid var(--rule);
}

.layout-c .s-ps {
  display: contents;
}

.layout-c .s-problem {
  grid-area: problem;
}

.layout-c .s-solution {
  grid-area: solution;
}

.layout-c .s-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.15rem 0.6rem;
}

.layout-c .s-head h2 {
  font-size: var(--fs-h3);
  line-height: var(--lh-h3);
}

.layout-c .s-sector {
  order: 2;
  margin: 0;
}

.layout-c .s-line {
  order: 3;
  flex-basis: 100%;
  margin: 0.1rem 0 0;
  color: var(--ink);
  font-size: 1rem;
}

.layout-c .s-sector {
  padding: 0.05rem 0.6rem 0.05rem 0.5rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--ink);
  font-size: 0.75rem;
  transform: translateY(-0.1em);
}

.layout-c .s-problem dd {
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.018em;
  text-wrap: balance;
}

.layout-c .s-solution {
  padding-left: var(--space-4);
  border-left: 2px solid var(--t-growth-fg);
}

@media (min-width: 52rem) {
  .layout-c .sample {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    grid-template-rows: auto auto 1fr;
    grid-template-areas: "head media" "problem media" "solution media";
    column-gap: 3rem;
    row-gap: var(--space-4);
    align-items: start;
    padding: var(--space-7) 0;
  }
  .layout-c .s-videos {
    align-self: start;
  }
}

/* ---- The lightbox */
html.has-lightbox {
  overflow: hidden;
}

.lightbox {
  --plyr-color-main: #7c68f0;
  --plyr-font-family: inherit;
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  overflow: auto;
}

.lightbox[open] {
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox::backdrop {
  background: rgb(9 9 11 / 0.9);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.lb-inner {
  display: grid;
  gap: 0.75rem;
  width: min(100%, 72rem, calc((100dvh - 9rem) * 16 / 9 + 2rem));
  padding: 1rem;
}

.lightbox[open] .lb-inner {
  animation: lb-in 180ms ease-out;
}

@keyframes lb-in {
  from {
    opacity: 0;
    transform: scale(0.985);
  }
}

.lb-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.lb-title {
  margin: 0;
  color: rgb(255 255 255 / 0.7);
  font-size: var(--fs-small);
  letter-spacing: 0;
}

.lb-title strong {
  margin-right: 0.5rem;
  color: #fff;
  font-weight: 600;
}

.lb-close {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.12);
  color: #fff;
  cursor: pointer;
  transition: background-color 150ms ease-out;
}

.lb-close:hover {
  background: rgb(255 255 255 / 0.24);
}

.lb-close svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
}

.lb-stage {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  background: #000;
}

.lb-stage video,
.lb-stage .plyr {
  width: 100%;
  height: 100%;
}

.lb-clips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.lb-clips[hidden] {
  display: none;
}

.lb-tab {
  padding: 0.45rem 0.9rem;
  border: 0;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.1);
  color: rgb(255 255 255 / 0.85);
  font: inherit;
  font-size: 0.875rem;
  letter-spacing: 0;
  cursor: pointer;
}

.lb-tab:hover {
  background: rgb(255 255 255 / 0.18);
}

.lb-tab[aria-current="true"] {
  background: #fff;
  color: #111;
}

/* Phones: the video runs edge to edge, the bar and tabs keep the page padding */
@media (max-width: 47.99rem) {
  .lb-inner {
    width: 100%;
    padding: 0;
  }
  .lb-bar,
  .lb-clips {
    padding: 0 1rem;
  }
  .lb-stage {
    border-radius: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lightbox[open] .lb-inner {
    animation: none;
  }
  .s-poster,
  .s-loop,
  .s-play {
    transition: none;
  }
}

/* ---- The layout switcher on /work/a/, /b/ and /c/ (previews for Sam; noindex) */
.layout-switch {
  position: fixed;
  z-index: 30;
  left: 50%;
  bottom: max(1rem, env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  gap: 0.15rem;
  padding: 0.3rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-size: 0.8125rem;
  line-height: 1.3;
  letter-spacing: 0;
  white-space: nowrap;
  box-shadow: 0 10px 30px -10px rgb(0 0 0 / 0.45);
  transform: translateX(-50%);
}

.layout-switch > span {
  padding: 0 0.4rem 0 0.6rem;
  opacity: 0.65;
}

.layout-switch a {
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  color: inherit;
  text-decoration: none;
}

.layout-switch a[aria-current="page"] {
  background: var(--bg);
  color: var(--ink);
}

/* Plyr's big play button matches the previews' (Sam 21:07: "make the video player's play button the same size").
   Plyr's CSS loads after this file, so these selectors are one class stronger than its own. */
.lightbox .plyr.plyr--video .plyr__control--overlaid {
  padding: 1.45rem;  /* 1.6rem icon + 2 x 1.45rem = 4.5rem, the size of .s-play */
  background: rgb(14 14 17 / 0.45);
  box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / 0.35);
  opacity: 1;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: background-color 150ms ease-out, transform 150ms ease-out;
}

.lightbox .plyr.plyr--video .plyr__control--overlaid svg {
  left: 0.1rem;
  width: 1.6rem;
  height: 1.6rem;
}

.lightbox .plyr.plyr--video .plyr__control--overlaid:hover,
.lightbox .plyr.plyr--video .plyr__control--overlaid:focus-visible {
  background: rgb(14 14 17 / 0.65);
  transform: translate(-50%, -50%) scale(1.06);
}
