/* billgraham.io — base stylesheet
   Typography-first, no framework. Fixed light theme: white background, black text. */

:root {
  --font-serif: Charter, "Bitstream Charter", "Sitka Text", Cambria, "Iowan Old Style", Georgia, serif;
  --font-display: "Playfair Display", Georgia, "Iowan Old Style", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "DM Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --bg: #ffffff;
  --bg2: #f7f5f2;
  --text: #111111;
  --text-secondary: #2b2b2b;
  --border: #e5e5e5;
  --accent-contrast: #ffffff;

  --content-width: 38rem;
  --wide-width: 64rem;
  --gutter: 1.25rem;
  --nav-height: 4.5rem;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 100%;
}

body {
  margin: 0;
  padding-top: var(--nav-height);
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 1.125rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@media (prefers-reduced-motion: no-preference) {
  a, .btn {
    transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
  }
}

/* Layout */

.site-footer,
main {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.site-footer {
  max-width: var(--wide-width);
}

main.main-wide {
  max-width: var(--wide-width);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  padding: 1.1rem clamp(1.25rem, 4vw, 3rem);
  background: rgba(250, 250, 252, 0.92);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
  font-family: var(--font-sans);
}

.site-title {
  font-size: 1.3656rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.site-title a {
  text-decoration: none;
  color: var(--text);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 1px;
}

.logo__word {
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.logo__tld {
  font-family: var(--font-mono);
  font-weight: 400;
}

.logo__bar {
  width: 3px;
  height: 0.85em;
  margin-left: 5px;
  border-radius: 1px;
  background: var(--text);
}

.site-nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.site-nav a {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-secondary);
}

.site-nav a:hover {
  color: var(--text);
  text-decoration: underline;
}

main {
  padding-top: 1rem;
  padding-bottom: 4rem;
}

main.flush-bottom {
  padding-bottom: 0;
}

main.tight-bottom {
  padding-top: 3rem;
  padding-bottom: 1rem;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding-top: 1.75rem;
  padding-bottom: 2.5rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.footer-signup {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  background: var(--bg2);
}

.footer-signup__label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  margin-bottom: 0.6rem;
}

.footer-signup-form {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.footer-signup-form input[type="email"] {
  flex: 1 1 12rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
}

.footer-signup-form input[type="email"]::placeholder {
  color: var(--text-secondary);
}

.footer-signup-form button {
  padding: 0.55rem 1.1rem;
  border: 1px solid var(--text);
  border-radius: 5px;
  background: var(--text);
  color: var(--accent-contrast);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
}

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

.footer-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1rem;
}

.footer-legal a {
  color: var(--text-secondary);
  text-decoration: none;
}

.footer-legal a:hover {
  color: var(--text);
  text-decoration: underline;
}

.footer-icons {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-icon-link {
  display: inline-flex;
  color: var(--text-secondary);
}

.footer-icon-link:hover {
  opacity: 0.6;
}

.footer-icon-link svg {
  width: 25px;
  height: 25px;
}

/* Typography */

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.25;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

h1 {
  font-size: 1.875rem;
}

h2 {
  font-size: 1.4rem;
}

h3 {
  font-size: 1.15rem;
}

p {
  margin: 0 0 1.25rem;
}

strong, b {
  font-weight: 600;
  color: var(--text);
}

a {
  color: var(--text);
}

a:hover {
  text-decoration-thickness: 2px;
}

ul, ol {
  padding-left: 1.4rem;
  margin: 0 0 1.25rem;
}

blockquote {
  margin: 1.5rem 0;
  padding-left: 1rem;
  border-left: 3px solid var(--border);
  color: var(--text-secondary);
  font-style: italic;
}

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}

code, pre, kbd, samp {
  font-family: var(--font-mono);
  font-size: 0.875em;
}

code {
  background: var(--bg2);
  padding: 0.15em 0.35em;
  border-radius: 4px;
}

pre {
  background: var(--bg2);
  padding: 1rem;
  border-radius: 6px;
  overflow-x: auto;
}

pre code {
  background: none;
  padding: 0;
}

img, iframe {
  max-width: 100%;
}

/* Hero */

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  margin-top: calc(-1 * var(--nav-height));
}

.hero-image {
  position: relative;
  overflow: hidden;
  background-image: url('/assets/img/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: grayscale(100%) brightness(1.05);
  min-height: 100vh;
}

.hero-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, transparent 40%, var(--bg) 100%);
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--nav-height) + 3rem) 3rem 3rem;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
}

.hero-eyebrow::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  flex-shrink: 0;
  background: var(--text);
}

.hero-content h1 {
  font-size: clamp(2.75rem, 5vw, 4.25rem);
  line-height: 1.05;
  margin: 0 0 1.5rem;
}

.hero-subtitle {
  max-width: 36rem;
  margin-bottom: 2rem;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.cert-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
}

.cert-badge {
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--border);
  background: var(--bg2);
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* The bio paragraph lives inside .hero-content on desktop (see .hero-bio
   below) so the page ends right after the hero instead of a mostly-empty
   standalone section - main.tight-bottom and .divider (both homepage-only)
   are hidden here and restored on mobile, where .hero-content becomes the
   translucent-scrim element and can't safely take on more content. */
main.tight-bottom,
.divider {
  display: none;
}

@media (max-width: 800px) {
  main.tight-bottom,
  .divider {
    display: block;
  }

  .hero-bio {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .hero-image {
    position: absolute;
    inset: 0;
    z-index: 0;
  }

  .hero-image::after {
    background: linear-gradient(to bottom, transparent 40%, var(--bg) 100%);
  }

  .hero-content {
    position: relative;
    z-index: 1;
    /* A solid --bg fill here (as everywhere else on the site) would be
       fully opaque and this box stretches to the full hero height on the
       single-column mobile grid, so it would completely hide the photo
       behind it rather than just backing the text - this is the one
       deliberate exception to the no-translucency rule, scoped to this
       element only. See the mobile hero note in CLAUDE.md. */
    background: rgba(255, 255, 255, 0.85);
    padding: calc(var(--nav-height) + 2rem) 1.5rem 2rem;
  }
}

/* Homepage */

.intro {
  max-width: var(--content-width);
  font-size: 1.0625rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

.publication-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr));
  gap: 2rem 1.75rem;
}

.publication-item__thumb {
  display: block;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  overflow: hidden;
  background: var(--border);
  margin-bottom: 0.85rem;
}

.publication-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* The DEMARC logo fallback thumbnail is a square lockup, not a 16:9 photo -
   cover-cropping it zooms in past the wordmark/tagline. Show it uncropped
   instead, letterboxed on a background matching the artwork's own. */
.publication-item__thumb--placeholder {
  background: #f0ede8;
}

.publication-item__thumb--placeholder img {
  object-fit: contain;
}

.publication-item__title {
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  font-weight: 600;
  margin: 0 0 0.3rem;
}

.publication-item__title a {
  text-decoration: none;
  color: var(--text);
}

.publication-item__title a:hover {
  text-decoration: underline;
}

.publication-item__date {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  color: var(--text-secondary);
  display: block;
  margin-bottom: 0.5rem;
}

.publication-item__excerpt {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin: 0;
}

/* /media/'s articles carousel - a row of 3 cards, paged with Prev/Next when
   there are more than 3 articles. Full archive lives at /media/articles/. */

.notes-carousel__page {
  display: none;
}

.notes-carousel__page.is-active {
  display: block;
}

.notes-carousel__nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.notes-carousel__nav button {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.6rem 1.1rem;
  border-radius: 5px;
  cursor: pointer;
  border: 1px solid var(--text);
  background: var(--bg2);
  color: var(--text);
}

.notes-carousel__nav button[data-carousel-next] {
  background: var(--text);
  color: var(--accent-contrast);
}

.notes-carousel__nav button:disabled {
  opacity: 0.35;
  cursor: default;
}

.notes-carousel__dots {
  display: flex;
  gap: 0.5rem;
  margin-left: auto;
}

.notes-carousel__dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--text-secondary);
  background: transparent;
  cursor: pointer;
}

.notes-carousel__dots button[aria-current="true"] {
  background: var(--text);
  border-color: var(--text);
}

.notes-carousel__more {
  margin-top: 1.5rem;
}

.notes-carousel__more a {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text);
}

.notes-carousel__more a:hover {
  text-decoration: underline;
}

/* Publication page */

.pub-header {
  margin-bottom: 1.5rem;
}

.pub-meta {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.pub-media {
  margin: 1.75rem 0;
}

.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  overflow: hidden;
  background: var(--bg2);
}

.video-caption {
  margin: 0.6rem 0 0;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-style: italic;
  color: var(--text-secondary);
  text-align: center;
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.pub-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0 2rem;
  font-family: var(--font-sans);
}

.btn {
  display: inline-block;
  padding: 0.6rem 1.1rem;
  border-radius: 5px;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--text);
}

.btn-primary {
  background: var(--text);
  color: var(--accent-contrast);
}

.btn-secondary {
  background: var(--bg2);
  color: var(--text);
}

.pub-body {
  margin-top: 2rem;
}

.pub-featured-image {
  margin: 0 0 1.25rem;
}

.pub-featured-image img {
  display: block;
}

.pub-featured-image figcaption {
  margin-top: 0.6rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-style: italic;
  color: var(--text-secondary);
  text-align: center;
}

/* Packet stepper (diagram + paired step text, e.g. "Life of a Packet") */

.packet-stepper {
  margin: 2rem 0;
}

/* pub-body is capped at --content-width (38rem) - these diagrams are dense
   and need real room, so above the mobile breakpoint this breaks out to
   --wide-width the same way main.main-wide pages do, re-centering on the
   viewport rather than the narrow article column. Below 800px it stays in
   normal flow at the article's own width, same as any other inline image. */
@media (min-width: 801px) {
  .packet-stepper {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 2rem;
    align-items: start;
    width: 100vw;
    max-width: var(--wide-width);
    padding: 0 var(--gutter);
    position: relative;
    left: 50%;
    transform: translateX(-50%);
  }
}

.packet-stepper__frame {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
  background: var(--bg);
}

@media (min-width: 801px) {
  .packet-stepper__frame {
    position: sticky;
    top: 1.5rem;
  }
}

.packet-stepper__frame .packet-stepper__step {
  display: none;
  aspect-ratio: 2.1 / 1;
}

.packet-stepper__frame .packet-stepper__step.is-active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.packet-stepper__frame img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  object-fit: contain;
}

.packet-stepper__panel .packet-stepper__step {
  display: none;
}

.packet-stepper__panel .packet-stepper__step.is-active {
  display: block;
}

.packet-stepper__eyebrow {
  margin-bottom: 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.packet-stepper__eyebrow strong {
  color: var(--text);
}

/* Only the last block in a step loses its bottom margin (so it doesn't
   push the Prev/Next buttons down) - a step with two paragraphs keeps
   normal spacing between them. */
.packet-stepper__step > ul:last-child,
.packet-stepper__step > p:last-child {
  margin-bottom: 0;
}

.packet-stepper__nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.packet-stepper__nav button {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.6rem 1.1rem;
  border-radius: 5px;
  cursor: pointer;
  border: 1px solid var(--text);
  background: var(--bg2);
  color: var(--text);
}

.packet-stepper__nav button[data-stepper-next] {
  background: var(--text);
  color: var(--accent-contrast);
}

.packet-stepper__nav button:disabled {
  opacity: 0.35;
  cursor: default;
}

.packet-stepper__dots {
  display: flex;
  gap: 0.5rem;
  margin-left: auto;
}

.packet-stepper__dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--text-secondary);
  background: transparent;
  cursor: pointer;
}

.packet-stepper__dots button[aria-current="true"] {
  background: var(--text);
  border-color: var(--text);
}

/* Lightbox */

.pub-body img {
  cursor: zoom-in;
}

.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}

.lightbox-overlay.active {
  display: flex;
}

.lightbox-overlay img {
  max-width: 90vw;
  max-height: 90vh;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

/* Page title (About, Read, Listen) */

.page-title {
  margin-top: 1rem;
}

/* /media/articles/ is the only .page-title page on main.main-wide (no
   sidebar/hero above it competing for space), so it reads tighter under the
   nav than Contact/Privacy/Terms - nudge it down a bit more without
   touching the shared rule those pages rely on. */
main.main-wide > .page-title {
  margin-top: 2rem;
}

/* Contact page */

main.contact-main {
  padding-top: 2rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  max-width: 30rem;
  margin: 1.5rem 0;
}

.contact-form[hidden] {
  display: none;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  padding: 0.6rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form__checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.contact-status {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
}

.contact-status--success {
  color: var(--text);
}

.contact-status--error {
  color: var(--text);
  font-weight: 600;
}

/* Sections (shared: About page) */

.section-wrap {
  max-width: var(--wide-width);
  margin: 0 auto;
  padding: 4rem var(--gutter);
}

.section-wrap--tight {
  padding-top: 2rem;
}

.section-wrap--tight-bottom {
  padding-bottom: 1rem;
}

/* #articles follows #podcast directly on /media/ - tighten its top padding
   further without touching .section-wrap--tight's shared use on #podcast
   (which still needs its full top padding under the hero). */
#articles.section-wrap--tight {
  padding-top: 1rem;
}

.divider {
  max-width: var(--wide-width);
  margin: 0 auto;
  border-top: 1px solid var(--border);
}

.section-label {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
}

.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* About page */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.about-lead {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.4rem;
  line-height: 1.5;
  margin-bottom: 1.75rem;
}

.pivot-callout {
  padding: 1.25rem 1.5rem;
  border-left: 2px solid var(--text);
  background: var(--bg2);
}

.pivot-callout p {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-style: italic;
  font-size: 1rem;
  line-height: 1.8;
}

.about-body p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.9;
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.expertise-cell {
  display: block;
  padding: 1.75rem 1.5rem;
  background: var(--bg2);
  color: inherit;
  text-decoration: none;
  transition: background 0.15s ease;
}

.expertise-cell:hover {
  background: var(--bg);
}

.expertise-icon {
  margin-bottom: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--text);
}

.expertise-title {
  margin-bottom: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
}

.expertise-desc {
  font-size: 0.8125rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.cert-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg2);
  overflow: hidden;
}

.cert-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.6rem 1.25rem;
}

.cert-item + .cert-item {
  border-top: 1px solid var(--border);
}

.cert-name {
  font-size: 0.9375rem;
  font-weight: 600;
}

.cert-track {
  font-weight: 400;
}

.cert-year {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
  white-space: nowrap;
}

.timeline {
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0.5rem;
  bottom: 2rem;
  left: 0;
  width: 1px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  padding-left: 2.25rem;
  padding-bottom: 2.5rem;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: '';
  position: absolute;
  top: 0.45rem;
  left: -3px;
  width: 7px;
  height: 7px;
  background: var(--text);
}

.timeline-company {
  margin-bottom: 0.3rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
}

.timeline-role {
  margin-bottom: 0.2rem;
  font-size: 1rem;
  font-weight: 600;
}

.timeline-period {
  margin-bottom: 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.timeline-desc {
  max-width: 38rem;
  font-size: 0.875rem;
  line-height: 1.75;
  color: var(--text-secondary);
}

@media (max-width: 800px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .expertise-grid {
    grid-template-columns: 1fr;
  }
}

/* The DEMARC (podcast branding, Listen page) */

.demarc-lockup {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 1rem 0 1.5rem;
}

.demarc-lockup__icon {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
}

.demarc-wordmark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 28px;
  color: var(--text);
}

.demarc-tagline {
  margin-top: 5px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #3a6f85;
}

.demarc-player {
  max-width: 40rem;
  margin-bottom: 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.demarc-player iframe {
  display: block;
  width: 100%;
  border: 0;
}

.podcast-links {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.podcast-links a {
  display: inline-flex;
  color: var(--text);
}

.podcast-links a:hover {
  opacity: 0.6;
}

.podcast-links svg {
  width: 32px;
  height: 32px;
}


/* Watch page (Listen) */

.watch-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr));
  gap: 2rem 1.75rem;
}

.watch-item__thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  overflow: hidden;
  background: var(--border);
  margin-bottom: 0.85rem;
}

.watch-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.watch-item__thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  margin: auto;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23111111' d='M8 5v14l11-7z'/%3E%3C/svg%3E") center / 1.1rem no-repeat;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.watch-item__title {
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  font-weight: 600;
  margin: 0 0 0.3rem;
}

.watch-item__title a {
  text-decoration: none;
  color: var(--text);
}

.watch-item__title a:hover {
  text-decoration: underline;
}

.watch-item__date {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  color: var(--text-secondary);
  display: block;
}
