/* =========================================================================
   Arjun Agarwal — portfolio
   Editorial design system. Plain CSS, no framework, no build step.

   1. Tokens
   2. Base and helpers
   3. Buttons
   4. Header and navigation
   5. Hero
   6. Section furniture
   7. Intro and capabilities
   8. Work: featured, grid, covers, filters
   9. Writing
  10. Films
  11. Beyond the newsroom
  12. Experience
  13. About
  14. Contact and footer
  15. Responsive
  16. Reduced motion and print
   ========================================================================= */

/* 1. TOKENS ------------------------------------------------------------ */
:root {
  --bg: #f7f4ef;
  --bg-alt: #f0ebe2;
  --paper: #fffdf9;
  --ink: #14120f;
  --ink-soft: #46413a;
  --ink-mute: #786f63;
  --line: #ded7cb;
  --line-strong: #c6bcac;
  --accent: #b04a30;
  --accent-deep: #8f3a24;
  --accent-tint: #f0e2db;

  --serif: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --shell: 1180px;
  --gutter: clamp(20px, 5vw, 56px);
  --header-h: 64px;
  --section-y: clamp(64px, 9vw, 128px);
}

/* 2. BASE -------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-feature-settings: "kern" 1;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.012em;
  line-height: 1.06;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a { color: inherit; }

ul, ol { margin: 0; padding: 0; list-style: none; }

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

/* Keeps the `hidden` attribute authoritative over layout display values. */
[hidden] { display: none !important; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 1px;
}

::selection {
  background: var(--accent);
  color: var(--bg);
}

.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

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

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--bg);
  font-size: 0.875rem;
  text-decoration: none;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 12px; }

.eyebrow {
  margin: 0 0 18px;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.lede {
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 62ch;
}

/* 3. BUTTONS ----------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 22px;
  border: 1px solid var(--ink);
  border-radius: 2px;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  background: transparent;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.btn-solid {
  background: var(--ink);
  color: var(--bg);
}
.btn-solid:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.btn-outline {
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-small {
  min-height: 40px;
  padding: 8px 16px;
  font-size: 0.875rem;
}

/* 4. HEADER ------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
}

.wordmark {
  display: flex;
  align-items: baseline;
  gap: 10px;
  text-decoration: none;
}
.wordmark-name {
  font-family: var(--serif);
  font-size: 1.375rem;
  letter-spacing: -0.01em;
}
.wordmark-role {
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.wordmark:hover .wordmark-name { color: var(--accent); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 26px;
}
.nav-list a {
  position: relative;
  font-size: 0.9375rem;
  text-decoration: none;
  color: var(--ink-soft);
  padding-block: 6px;
  transition: color 0.18s ease;
}
.nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--accent);
  transition: right 0.22s ease;
}
.nav-list a:hover { color: var(--ink); }
.nav-list a:hover::after { right: 0; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 8px 12px 8px 10px;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  min-height: 42px;
}
.nav-toggle-label {
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nav-toggle-bars {
  position: relative;
  width: 18px;
  height: 10px;
}
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.2s ease, top 0.2s ease;
}
.nav-toggle-bars::before { top: 0; }
.nav-toggle-bars::after { top: 8px; }
.nav-open .nav-toggle-bars::before { top: 4px; transform: rotate(45deg); }
.nav-open .nav-toggle-bars::after { top: 4px; transform: rotate(-45deg); }

/* 5. HERO -------------------------------------------------------------- */
.hero {
  padding-top: clamp(40px, 7vw, 84px);
  padding-bottom: clamp(32px, 5vw, 56px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}

.hero-name {
  font-size: clamp(2.875rem, 8vw, 5.75rem);
  line-height: 0.92;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero-tagline {
  font-family: var(--serif);
  font-size: clamp(1.375rem, 2.6vw, 1.875rem);
  line-height: 1.25;
  color: var(--accent);
  max-width: 22ch;
  margin-bottom: 22px;
}

.hero-intro {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  color: var(--ink-soft);
  max-width: 56ch;
  margin-bottom: 18px;
}

.hero-location {
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  color: var(--ink-mute);
  margin-bottom: 30px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--ink-mute);
}
.hero-links a {
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 2px;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.hero-links a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.hero-portrait {
  position: relative;
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 10px;
  justify-self: end;
  width: 100%;
  max-width: 360px;
}
.hero-portrait::before {
  content: "";
  position: absolute;
  inset: 12px -12px -12px 12px;
  border: 1px solid var(--accent);
  opacity: 0.45;
  pointer-events: none;
}
.hero-portrait img {
  position: relative;
  width: 100%;
  height: auto;
}

.credibility-band {
  margin-top: clamp(40px, 6vw, 72px);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line);
}

.logo-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(16px, 3vw, 32px);
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.logo-strip-label {
  margin: 0;
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.logo-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.logo-row img {
  width: 50px;
  height: 50px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: #fff;
  object-fit: contain;
  opacity: 0.9;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}
.logo-row img:hover {
  opacity: 1;
  border-color: var(--line-strong);
}

/* 6. SECTION FURNITURE -------------------------------------------------- */
.section {
  padding-block: var(--section-y);
  border-top: 1px solid var(--line);
}

.section-head { margin-bottom: clamp(32px, 4vw, 52px); }

.section-head-split {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px clamp(24px, 5vw, 64px);
}
.platform-strip {
  width: clamp(143px, 18vw, 210px);
  height: auto;
  opacity: 0.88;
}

.section-title {
  font-size: clamp(2.125rem, 5vw, 3.75rem);
  /* Long enough for the widest title to stay on one line until the viewport
     itself forces a break. */
  max-width: 36ch;
  text-wrap: pretty;
}

.section-standfirst {
  margin-top: 20px;
  max-width: 60ch;
  color: var(--ink-soft);
  font-size: 1.0625rem;
}

/* 7. INTRO / APPROACH ---------------------------------------------------- */
.capabilities {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3.5vw, 44px);
  margin-top: clamp(40px, 5vw, 64px);
}
.capability {
  border-top: 1px solid var(--ink);
  padding-top: 20px;
}
.capability h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}
.capability p {
  color: var(--ink-soft);
  font-size: 0.9688rem;
  margin: 0;
}

/* 8. WORK --------------------------------------------------------------- */
.archive-title {
  font-size: 0.75rem;
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.featured-heading {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 0;
}

.featured-list {
  display: grid;
  gap: 0;
}

.featured {
  display: grid;
  grid-template-columns: minmax(0, 230px) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 48px);
  padding-block: clamp(28px, 4vw, 44px);
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.featured-media { width: 100%; }

.featured-title {
  font-size: clamp(1.625rem, 3vw, 2.25rem);
  margin-bottom: 14px;
  max-width: 20ch;
}

.featured-desc {
  color: var(--ink-soft);
  max-width: 58ch;
  margin-bottom: 18px;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.card-org { color: var(--accent); }
.card-meta-sep { color: var(--line-strong); }

.metric {
  display: inline-block;
  margin-bottom: 16px;
  padding: 4px 10px;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 2px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
.tag {
  padding: 4px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  color: var(--ink-soft);
  background: var(--paper);
}

.card-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 0.875rem;
}
.card-links-label {
  color: var(--ink-mute);
  letter-spacing: 0.02em;
}
.card-links-sep { color: var(--line-strong); }
.card-link {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid var(--accent);
  padding: 2px 0;
  transition: color 0.18s ease, background-color 0.18s ease;
}
.card-link:hover {
  color: var(--accent);
}

/* Archive grid */
.work-archive { margin-top: clamp(48px, 6vw, 76px); }

.archive-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(24px, 3vw, 36px);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.filter {
  padding: 7px 14px;
  min-height: 38px;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  font-size: 0.8125rem;
  color: var(--ink-soft);
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.filter:hover {
  border-color: var(--ink);
  color: var(--ink);
}
.filter.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(232px, 1fr));
  gap: clamp(24px, 3vw, 36px);
}

.card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
}

/* Keep the platform links on a shared baseline across a row of cards. */
.card-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
}
.card-body .card-links { margin-top: auto; }

.card-title {
  font-size: 1.3125rem;
  margin-bottom: 6px;
}
/* Only the archive card's standalone role line. Inside .card-meta the role is
   a span that should keep the meta row's own size and spacing. */
p.card-role {
  font-size: 0.8125rem;
  color: var(--ink-mute);
  margin-bottom: 14px;
}
.card-metric { color: var(--ink); }

.filter-status {
  margin-top: 24px;
  font-size: 0.8125rem;
  color: var(--ink-mute);
}

/* Covers: 9:16 because the work is social-first vertical video */
.cover {
  position: relative;
  aspect-ratio: 9 / 16;
  /* Keeps a tall social-video shape without letting wide columns run away. */
  max-height: 420px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-alt);
}
.cover-photo { border-color: var(--line-strong); }
.cover-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Designed stand-in artwork, used until a real still is added to
   assets/thumbnails/. It should still read as a piece of video cover art. */
.cover-fallback { color: var(--ink); }
.cover-fallback[data-variant="1"] { background: #e5dbcb; }
.cover-fallback[data-variant="2"] { background: #dde1da; }
.cover-fallback[data-variant="3"] { background: #ecd9d0; }
.cover-fallback[data-variant="4"] { background: #e2ddd2; }

.cover-pattern {
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(45deg, rgba(20, 18, 15, 0.055) 0 1px, transparent 1px 9px);
  pointer-events: none;
}

.cover-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 16px;
}

.cover-category {
  margin: 0;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--accent);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.cover-play {
  position: relative;
  flex: 1 1 auto;
  display: block;
}
.cover-play::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 54px;
  height: 54px;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(20, 18, 15, 0.28);
  border-radius: 50%;
}
.cover-play::after {
  content: "";
  position: absolute;
  top: 50%;
  left: calc(50% + 2px);
  transform: translate(-50%, -50%);
  border-left: 15px solid rgba(20, 18, 15, 0.34);
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
}

.cover-caption {
  background: linear-gradient(180deg, rgba(255, 253, 249, 0) 0%, rgba(255, 253, 249, 0.82) 38%);
  margin: 0 -16px -16px;
  padding: 26px 16px 16px;
}
.cover-title {
  font-family: var(--serif);
  font-size: clamp(1.1875rem, 2vw, 1.5rem);
  line-height: 1.12;
  margin: 0 0 8px;
  text-wrap: balance;
}
.cover-org {
  margin: 0;
  font-size: 0.6563rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.cover-index {
  position: absolute;
  top: 14px;
  right: 16px;
  z-index: 1;
  font-family: var(--serif);
  font-size: 1.0625rem;
  color: var(--ink-mute);
}

.cover-hint {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  margin-top: 38px;
  text-align: center;
  font-size: 0.625rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  transition: color 0.2s ease;
}
.cover:hover .cover-hint { color: var(--accent); }
/* On a real still the play mark is affordance enough, and the label would sit
   on top of the burnt-in caption. */
.cover-photo .cover-hint { display: none; }

/* The whole cover is the play control */
.cover-action {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.cover-action:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -4px;
}
.cover:hover .cover-play::before {
  border-color: var(--accent);
  background: rgba(255, 253, 249, 0.72);
}
.cover:hover .cover-play::after {
  border-left-color: var(--accent);
}
.cover-photo .cover-play::before {
  background: rgba(255, 253, 249, 0.86);
  border-color: rgba(255, 253, 249, 0.9);
}
.cover-photo .cover-play::after {
  border-left-color: var(--ink);
}

/* Click-to-load player */
body.player-open { overflow: hidden; }

.player {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(8px, 2vw, 24px);
}
.player-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 18, 15, 0.74);
}
/* Sized from the viewport height so the reel fills as much of the screen as the
   9:16 embed allows, rather than sitting in a small box. */
.player-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(calc((100vh - 200px) / 1.5), 620px, 100%);
  max-height: 100%;
  background: var(--bg);
  border: 1px solid var(--ink);
}
.player-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 12px 16px 11px;
  border-bottom: 1px solid var(--line);
}
.player-heading {
  flex: 1 1 auto;
  min-width: 0;
}
.player-eyebrow {
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.player-title {
  margin-top: 3px;
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.2;
  font-weight: 400;
}
.player-close {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  margin: -2px -4px 0 0;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--ink-soft);
  background: transparent;
  border: 1px solid var(--line);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.player-close:hover {
  color: var(--accent);
  border-color: var(--accent);
}
.player-frame {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  background: #fff;
}
.player-frame iframe {
  display: block;
  width: 100%;
  height: calc(100vh - 150px);
  min-height: 420px;
  border: 0;
}
.player-note {
  padding: 9px 16px 10px;
  border-top: 1px solid var(--line);
  font-size: 0.8125rem;
}
.player-out { color: var(--accent); }

/* noscript fallback list */
.noscript-work { margin-top: 40px; }
.noscript-list li {
  padding-block: 24px;
  border-top: 1px solid var(--line);
}
.noscript-list h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}
.noscript-meta {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 10px;
}
.noscript-list a { color: var(--accent); }

/* 9. WRITING ------------------------------------------------------------ */
.writing-list {
  display: grid;
  gap: clamp(20px, 3vw, 28px);
}

.writing-card {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: clamp(20px, 4vw, 48px);
  padding: clamp(24px, 3.5vw, 40px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 2px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.writing-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.writing-index {
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--accent);
  border-top: 2px solid var(--accent);
  padding-top: 12px;
}

.writing-label {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 12px;
}
.writing-title {
  font-size: clamp(1.5rem, 3vw, 2.125rem);
  margin-bottom: 14px;
  max-width: 24ch;
}
.writing-desc {
  color: var(--ink-soft);
  max-width: 58ch;
  margin-bottom: 22px;
}

/* 10. FILMS ------------------------------------------------------------- */
.film-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(24px, 3vw, 40px);
}
.film-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  overflow: hidden;
}
.film-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.film-play {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: var(--bg-alt);
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
}
.film-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.film-has-thumb .film-placeholder { display: none; }
.film-placeholder {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px;
  text-align: left;
}
.film-placeholder-label {
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.film-placeholder-title {
  font-family: var(--serif);
  font-size: 1.375rem;
}
.film-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 62px;
  height: 62px;
  transform: translate(-50%, -50%);
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--bg);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.film-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  border-left: 14px solid var(--ink);
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
}
.film-play:hover .film-icon {
  background: var(--accent);
  border-color: var(--accent);
}
.film-play:hover .film-icon::after { border-left-color: var(--bg); }

.film-body { padding-top: 18px; }
.film-title {
  font-size: 1.5rem;
  margin-bottom: 10px;
}
.film-desc {
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

/* 11. BEYOND THE NEWSROOM ----------------------------------------------- */
.beyond-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.beyond-figure {
  margin: 0;
  border: 1px solid var(--line);
  padding: 10px;
  background: var(--paper);
  position: sticky;
  top: calc(var(--header-h) + 32px);
}
.beyond-figure img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.beyond-figure img + img { margin-top: 10px; }
.beyond-figure img.beyond-figure-wide { aspect-ratio: 16 / 9; }

.theme-list {
  margin: clamp(28px, 4vw, 40px) 0 0;
  display: grid;
  gap: 24px;
}
.theme {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.theme dt {
  font-family: var(--serif);
  font-size: 1.3125rem;
  margin-bottom: 6px;
}
.theme dd {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9688rem;
}

/* 12. EXPERIENCE --------------------------------------------------------- */
.timeline { display: grid; }

.role {
  display: grid;
  grid-template-columns: 56px max-content minmax(0, 1fr);
  gap: clamp(18px, 3vw, 36px);
  padding-block: clamp(26px, 3.5vw, 40px);
  border-top: 1px solid var(--line);
}
.role:last-child { border-bottom: 1px solid var(--line); }

.role-mark {
  display: block;
  width: 56px;
  height: 56px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: #fff;
  overflow: hidden;
}
.role-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.role-dates {
  margin: 0;
  white-space: nowrap;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
  padding-top: 6px;
}

.role-org {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  margin-bottom: 4px;
}
.role-title {
  font-size: 0.9375rem;
  color: var(--accent);
  margin-bottom: 14px;
}
.role-place { color: var(--ink-mute); }

.role-points {
  display: grid;
  gap: 10px;
  max-width: 62ch;
}
.role-points li {
  position: relative;
  padding-left: 20px;
  color: var(--ink-soft);
  font-size: 0.9688rem;
}
.role-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.66em;
  width: 8px;
  height: 1px;
  background: var(--accent);
}

/* 13. ABOUT --------------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}
.about-main p + p {
  margin-top: 1em;
  color: var(--ink-soft);
}

.about-side {
  border-top: 1px solid var(--ink);
  padding-top: 22px;
}
.side-heading {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 16px;
}
.skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 36px;
}
.skill-list li {
  padding: 6px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  font-size: 0.8125rem;
  background: var(--paper);
}
.fact-list {
  display: grid;
  gap: 18px;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}
.fact-list strong {
  font-weight: 500;
  color: var(--ink);
}

/* 14. CONTACT AND FOOTER --------------------------------------------------- */
.section-contact {
  background: var(--ink);
  color: var(--bg);
  border-top: 0;
}
.section-contact .eyebrow { color: #a89e91; }

.contact-inner { max-width: 820px; }
.contact-title {
  font-size: clamp(2.5rem, 6.5vw, 4.5rem);
  line-height: 1;
  margin-bottom: 24px;
}
.contact-copy {
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  color: #cfc7bb;
  max-width: 52ch;
  margin-bottom: 36px;
}
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.section-contact .btn-solid {
  background: var(--bg);
  border-color: var(--bg);
  color: var(--ink);
}
.section-contact .btn-solid:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}
.section-contact .btn-outline {
  border-color: #4b453d;
  color: var(--bg);
}
.section-contact .btn-outline:hover {
  border-color: var(--bg);
  color: var(--bg);
}
.section-contact :focus-visible { outline-color: var(--bg); }

.site-footer {
  padding-block: 40px;
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
.footer-name {
  font-family: var(--serif);
  font-size: 1.375rem;
  margin-bottom: 2px;
}
.footer-role,
.footer-place {
  margin: 0;
  font-size: 0.875rem;
  color: var(--ink-mute);
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-links a {
  font-size: 0.9375rem;
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 3px;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.footer-links a:hover {
  color: var(--accent);
  border-color: var(--accent);
}
.footer-legal {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--ink-mute);
}

/* 15. RESPONSIVE ------------------------------------------------------------ */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); }
  .featured { grid-template-columns: minmax(0, 200px) minmax(0, 1fr); }
  .role { gap: 20px; }
}

@media (max-width: 900px) {
  .beyond-grid { grid-template-columns: minmax(0, 1fr); }
  .beyond-figure { position: static; max-width: 640px; }
  .about-grid { grid-template-columns: minmax(0, 1fr); }
  .capabilities { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .capability { padding-top: 16px; }
}

@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }

  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 28px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
  }
  .nav-open .site-nav { display: flex; }
  .nav-open { overflow: hidden; }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .nav-list li { border-bottom: 1px solid var(--line); }
  .nav-list a {
    display: block;
    padding: 16px 0;
    font-family: var(--serif);
    font-size: 1.5rem;
    color: var(--ink);
  }
  .nav-list a::after { display: none; }
  .nav-resume {
    margin-top: 20px;
    align-self: flex-start;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }
  .hero-portrait {
    order: -1;
    justify-self: start;
    max-width: 220px;
  }
  .hero-portrait::before { inset: 10px -10px -10px 10px; }

  .featured {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .featured-media { max-width: 260px; }

  .writing-card { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .writing-index {
    width: 140px;
  }

  .role {
    grid-template-columns: 48px minmax(0, 1fr);
    grid-template-areas:
      "mark dates"
      "body body";
    gap: 14px 16px;
  }
  .role-mark { grid-area: mark; width: 48px; height: 48px; }
  .role-dates { grid-area: dates; align-self: center; padding-top: 0; }
  .role-body { grid-area: body; }

  .archive-head { align-items: flex-start; }
}

@media (max-width: 560px) {
  body { font-size: 1.0625rem; }

  .project-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }
  .card .cover { max-width: 260px; }

  .hero-actions .btn { flex: 1 1 auto; }

  .card-links { gap: 10px; }
  .card-link { padding: 6px 0; }

  .filters { width: 100%; }
  .filter { flex: 1 1 auto; }

  .footer-grid { align-items: flex-start; }
}

/* 16. REDUCED MOTION AND PRINT ------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .writing-card:hover { transform: none; }
}

@media print {
  .site-header,
  .filters,
  .section-contact .contact-actions { display: none; }
  body { background: #fff; color: #000; }
  .section { border-color: #ccc; }
}
