/* roydendsouza.com r5 - 12 Nov 2026.
   Frame: a light typographic journalism archive (hhopp's clean look).
   Identity carried from the 2019 site: Material blue-grey + #ff3d00, Roboto, with the C Viewfinder mark in place of the old RD cube.
   Display and longform: self-hosted Newsreader (SIL OFL). */

@font-face{font-family:Roboto;font-weight:400;font-style:normal;font-display:swap;src:url(../assets/fonts/roboto-latin-400-normal.woff2) format("woff2")}
@font-face{font-family:Roboto;font-weight:500;font-style:normal;font-display:swap;src:url(../assets/fonts/roboto-latin-500-normal.woff2) format("woff2")}
@font-face{font-family:Roboto;font-weight:700;font-style:normal;font-display:swap;src:url(../assets/fonts/roboto-latin-700-normal.woff2) format("woff2")}
@font-face{font-family:Roboto;font-weight:900;font-style:normal;font-display:swap;src:url(../assets/fonts/roboto-latin-900-normal.woff2) format("woff2")}
@font-face{font-family:Newsreader;font-weight:400;font-style:normal;font-display:swap;src:url(../assets/fonts/newsreader-latin-400-normal.woff2) format("woff2")}
@font-face{font-family:Newsreader;font-weight:400;font-style:italic;font-display:swap;src:url(../assets/fonts/newsreader-latin-400-italic.woff2) format("woff2")}
@font-face{font-family:Newsreader;font-weight:500;font-style:normal;font-display:swap;src:url(../assets/fonts/newsreader-latin-500-normal.woff2) format("woff2")}
@font-face{font-family:Newsreader;font-weight:600;font-style:normal;font-display:swap;src:url(../assets/fonts/newsreader-latin-600-normal.woff2) format("woff2")}
@font-face{font-family:Newsreader;font-weight:700;font-style:normal;font-display:swap;src:url(../assets/fonts/newsreader-latin-700-normal.woff2) format("woff2")}
@font-face{font-family:Newsreader;font-weight:800;font-style:normal;font-display:swap;src:url(../assets/fonts/newsreader-latin-800-normal.woff2) format("woff2")}

:root{
  --paper:#f3f1ed;
  --paper-2:#fffcf8;
  --ink:#263238;
  --ink-2:#546e7a;
  --ink-3:#78909c;
  --accent:#ff3d00;
  --nav:#263238;
  --on-dark:#f4f1ec;
  --muted-dark:#b0bec5;
  --link:#0b57d0;
  --link-on-dark:#8ec8ff;
  --rule:rgba(38,50,56,.14);
  --film:#1c2428;
  --nav-h:64px;
  --measure:38rem;
  --max:1180px;
  --rail:220px;
  --serif:Newsreader,"Iowan Old Style","Palatino Linotype",Palatino,Georgia,serif;
  --sans:Roboto,system-ui,-apple-system,"Segoe UI",Arial,sans-serif;
  --radius:6px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:calc(var(--nav-h) + 12px)}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation:none!important;transition:none!important}
}
body{
  margin:0;
  font-family:var(--sans);
  font-size:17px;
  line-height:1.6;
  color:var(--ink);
  background:var(--paper);
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
img,video,iframe{max-width:100%;height:auto;display:block}
iframe{width:100%;height:100%;border:0}
button,input,select{font:inherit}
a{color:var(--accent);text-decoration:none}
a:hover{text-decoration:underline;text-underline-offset:3px}
a:focus-visible,button:focus-visible,input:focus-visible,summary:focus-visible{
  outline:3px solid var(--accent);outline-offset:3px;border-radius:4px
}
.wrap{width:min(var(--max), calc(100% - 40px));margin:0 auto}
@media (min-width:700px){.wrap{width:min(var(--max), calc(100% - 80px))}}

.skip{position:absolute;left:-999px;top:8px;background:var(--accent);color:#fff;padding:10px 14px;border-radius:6px;z-index:200}
.skip:focus{left:8px}

/* ---------- Header / identity ---------- */
.site-head{
  position:sticky;top:0;z-index:80;
  background:var(--nav);color:var(--on-dark);
  height:var(--nav-h);
  box-shadow:0 1px 0 rgba(0,0,0,.25);
}
.site-head .head-inner{
  height:100%;
  width:min(var(--max), calc(100% - 32px));
  margin:0 auto;
  display:flex;align-items:center;justify-content:space-between;gap:16px;
}
.brand{
  display:flex;align-items:center;gap:10px;
  color:var(--on-dark);font-weight:900;font-size:16px;letter-spacing:.02em;
  min-height:44px;flex:0 0 auto;
}
.brand img{width:auto;height:36px;flex:0 0 auto}
.brand model-viewer{width:36px;height:36px;flex:0 0 auto}
.brand:hover{text-decoration:none}
.menu-btn{
  display:none;background:none;border:0;color:var(--on-dark);
  font-weight:700;font-size:15px;letter-spacing:.06em;text-transform:uppercase;
  min-height:44px;min-width:44px;padding:8px 12px;cursor:pointer;
}
.site-head nav ul{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:0;justify-content:flex-end}
.site-head nav a{
  display:flex;align-items:center;justify-content:flex-start;
  color:var(--on-dark);font-weight:500;font-size:13px;letter-spacing:.04em;
  text-transform:uppercase;padding:0 10px;min-height:44px;min-width:44px;white-space:nowrap;
}
.site-head nav a:hover{color:var(--accent);text-decoration:none}
@media (max-width:1099px){
  .menu-btn{display:flex;align-items:center;justify-content:center}
  .site-head nav{
    display:none;position:absolute;top:var(--nav-h);left:0;right:0;
    background:var(--nav);padding:8px 16px 20px;
    box-shadow:0 12px 24px rgba(0,0,0,.28);
  }
  .site-head nav.open{display:block}
  .site-head nav ul{flex-direction:column;align-items:stretch}
  .site-head nav a{font-size:16px;letter-spacing:.06em;padding:12px 8px;min-height:44px}
}

/* Left rail on large screens, after the hhopp / Burk Uzzle idea.
   The opening still stays full-bleed; the rail applies to the work below. */
@media (min-width:1100px){
  body.has-rail{padding-left:var(--rail)}
  body.has-rail .site-head{
    position:fixed;left:0;top:0;bottom:0;width:var(--rail);height:auto;
    box-shadow:1px 0 0 rgba(0,0,0,.2);
  }
  body.has-rail .site-head .head-inner{
    width:100%;height:100%;margin:0;padding:28px 22px 32px;
    flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:36px;
  }
  body.has-rail .brand{font-size:15px;flex-wrap:wrap;align-items:center;line-height:1.25;max-width:100%}
  body.has-rail .brand img{width:auto;height:42px}
  body.has-rail .brand model-viewer{width:42px;height:42px}
  body.has-rail .site-head nav{width:100%}
  body.has-rail .site-head nav ul{flex-direction:column;align-items:flex-start;width:100%;gap:0}
  body.has-rail .site-head nav a{padding:8px 0;min-height:44px;font-size:13px;width:100%}
  body.has-rail .opening{width:calc(100vw - var(--rail));margin-left:0}
  body.has-rail .menu-btn{display:none}
}

/* ---------- A24 opening ---------- */
.opening{
  position:relative;
  min-height:calc(100svh - var(--nav-h));
  background:#2a2a2a;
  color:#fff;
  display:flex;
  align-items:flex-end;
  overflow:hidden;
}
.opening .still{
  position:absolute;inset:0;
}
.opening .still img{
  width:100%;height:100%;object-fit:cover;object-position:28% 18%;
}
.opening-copy{
  position:relative;z-index:1;width:100%;
  padding:72px 24px 40px;
  background:linear-gradient(180deg, rgba(20,24,28,0) 0%, rgba(20,24,28,.72) 46%, rgba(20,24,28,.9) 100%);
}
.opening h1{
  font-family:var(--serif);
  font-weight:700;
  font-size:clamp(44px, 13vw, 92px);
  line-height:.95;
  letter-spacing:-.03em;
  margin:0 0 12px;
  color:#fff;
}
.opening .role{
  margin:0 0 28px;
  font-family:var(--sans);
  font-weight:500;
  font-size:clamp(15px, 2.6vw, 18px);
  letter-spacing:.08em;
  text-transform:uppercase;
  color:rgba(255,255,255,.86);
}
.opening .text-link{
  display:inline-flex;align-items:center;min-height:44px;
  color:#fff;font-weight:700;font-size:16px;letter-spacing:.04em;
  text-transform:uppercase;border-bottom:2px solid var(--accent);padding:0 0 4px;
}
.opening .text-link:hover{color:var(--accent);text-decoration:none}
/* Desktop opening: the still is confined to a left pane so the type never
   sits on the head. The right pane is the portrait's clear grey (#909097),
   with a minimum gap from the still. Role and the text link use #111 so
   they meet WCAG AA (4.5:1) on that grey. Below 1100px this block does not apply. */
@media (min-width:1100px){
  body.has-rail .opening{
    min-height:100svh;
    display:grid;
    grid-template-columns:minmax(0,1.15fr) minmax(300px,0.85fr);
    align-items:stretch;
    justify-content:stretch;
    background:#909097;
  }
  body.has-rail .opening .still{
    position:relative;
    inset:auto;
    overflow:hidden;
    min-height:100%;
  }
  body.has-rail .opening .still img{
    width:100%;
    height:100%;
    object-fit:cover;
    object-position:22% 38%;
  }
  body.has-rail .opening-copy{
    background:#909097;
    width:auto;
    max-width:none;
    padding:10vh 6vw 8vh 56px;
    text-shadow:none;
    display:flex;
    flex-direction:column;
    justify-content:flex-start;
    align-items:flex-start;
    box-sizing:border-box;
  }
  body.has-rail .opening h1{color:#111;font-size:clamp(52px, 5.2vw, 88px)}
  body.has-rail .opening .role{color:#111;letter-spacing:.06em;max-width:none}
  body.has-rail .opening .text-link{color:#111;border-bottom-color:var(--accent)}
  body.has-rail .opening .text-link:hover{color:var(--accent)}
}

/* ---------- Shared section chrome ---------- */
.section{padding:72px 0}
.section-head{margin:0 0 36px;max-width:42rem}
.kicker{
  margin:0 0 10px;
  font-weight:700;font-size:12px;letter-spacing:.16em;text-transform:uppercase;
  color:var(--accent);
}
.section h2, .display{
  font-family:var(--serif);
  font-weight:700;
  letter-spacing:-.03em;
  line-height:1.05;
  margin:0 0 12px;
  color:var(--ink);
  font-size:clamp(36px, 6vw, 80px);
}
.section-head p, .dek{
  margin:0;
  font-family:var(--serif);
  font-size:clamp(18px, 2vw, 22px);
  line-height:1.45;
  color:var(--ink-2);
}
.text-link{
  display:inline-flex;align-items:center;min-height:44px;
  color:var(--ink);font-weight:700;font-size:15px;letter-spacing:.04em;
  text-transform:uppercase;border-bottom:2px solid var(--accent);padding:0 0 2px;
}
.text-link:hover{color:var(--accent);text-decoration:none}

/* ---------- Outlaw Ocean lead ---------- */
.lead{padding:80px 0 40px}
.lead .meta{
  margin:18px 0 8px;
  font-size:14px;letter-spacing:.04em;text-transform:uppercase;color:var(--ink-2);font-weight:500;
}
.lead .counts{
  margin:28px 0 0;
  font-family:var(--serif);
  font-size:clamp(18px, 2.2vw, 24px);
  color:var(--ink);
  max-width:28ch;
  line-height:1.35;
}
.lead .actions{margin-top:20px}

/* ---------- Forensic Architecture investigation cards ---------- */
.inv-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:20px;
}
@media (min-width:640px){.inv-grid{grid-template-columns:repeat(2,1fr);gap:24px}}
@media (min-width:1100px){.inv-grid{grid-template-columns:repeat(3,1fr)}}
.inv-card{
  background:var(--paper-2);
  border:1px solid var(--rule);
  display:flex;flex-direction:column;
  min-height:100%;
}
.inv-card a.cover{
  color:inherit;display:flex;flex-direction:column;flex:1;min-height:100%;
}
.inv-card a.cover:hover{text-decoration:none}
.inv-card .still{
  aspect-ratio:16/9;background:var(--nav);overflow:hidden;
}
.inv-card .still img{width:100%;height:100%;object-fit:cover}
.inv-card .still.typo{
  display:flex;align-items:flex-end;padding:20px;
  background:linear-gradient(160deg,#263238,#37474f);
  color:#fff;font-family:var(--serif);font-size:22px;line-height:1.2;
}
.inv-card .body{padding:16px 18px 20px;display:flex;flex-direction:column;gap:8px;flex:1}
.inv-card h3{
  font-family:var(--serif);font-weight:600;font-size:22px;line-height:1.2;
  margin:0;letter-spacing:-.01em;color:var(--ink);
}
.inv-card a.cover:hover h3{color:var(--accent)}
.inv-card .table{
  margin:0;padding:0;list-style:none;
  font-size:13px;color:var(--ink-2);line-height:1.55;
}
.inv-card .table li{display:grid;grid-template-columns:88px 1fr;gap:8px}
.inv-card .table span{color:var(--ink-3);text-transform:uppercase;letter-spacing:.06em;font-size:11px;font-weight:700;padding-top:2px}
.inv-card .card-dek{margin:4px 0 0;font-size:15px;color:var(--ink);line-height:1.45}

/* ---------- Tasteful placeholder slots ---------- */
.slot{
  margin:8px 0 0;
  padding:28px 0;
  border-top:1px solid var(--rule);
  border-bottom:1px solid var(--rule);
}
.slot-inner{max-width:40rem}
.slot-label{
  margin:0 0 6px;
  font-weight:700;font-size:11px;letter-spacing:.16em;text-transform:uppercase;color:var(--ink-3);
}
.slot p{margin:0;color:var(--ink-2);font-family:var(--serif);font-size:18px;line-height:1.4}
.film .slot{border-color:rgba(255,255,255,.12);margin-top:36px}
.film .slot-label{color:var(--muted-dark)}
.film .slot p{color:var(--muted-dark)}

/* ---------- Rijksmuseum / Magnum collection ---------- */
.collection{padding-top:56px}
.collection h2{font-size:clamp(48px, 10vw, 112px);margin-bottom:8px}
.tools{margin:28px 0 24px}
.search-row{display:flex;gap:12px;flex-wrap:wrap;align-items:center}
@media (max-width:620px){
  .search-row{flex-direction:column;align-items:stretch}
  .search,.filter-toggle{width:100%;flex:0 0 auto}
  .search{height:44px;min-height:44px;max-height:44px}
}
.search{
  flex:1 1 240px;
  min-height:44px;
  border:1px solid var(--ink);
  background:var(--paper-2);
  color:var(--ink);
  padding:0 14px;
  border-radius:0;
  width:100%;
}
.search::placeholder{color:var(--ink-3)}
.filter-toggle{
  min-height:44px;min-width:44px;padding:0 16px;
  border:1px solid var(--ink);background:transparent;color:var(--ink);
  font-weight:700;font-size:13px;letter-spacing:.08em;text-transform:uppercase;cursor:pointer;
}
.filter-toggle[aria-expanded="true"], .filter-toggle:hover{background:var(--ink);color:var(--paper);text-decoration:none}
.filter-panel{display:none;padding:16px 0 8px}
.filter-panel.open{display:block}
.fg{margin:0 0 14px}
.fg-label{
  display:block;margin:0 0 8px;
  font-size:11px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--ink-3);
}
.fg-row{display:flex;flex-wrap:wrap;gap:8px}
.fg button{
  min-height:44px;min-width:44px;padding:0 14px;
  border:1px solid var(--rule);background:var(--paper-2);color:var(--ink);
  font-size:14px;cursor:pointer;
}
.fg button[aria-pressed="true"]{background:var(--ink);color:var(--paper);border-color:var(--ink)}
.fg button:hover{border-color:var(--ink)}
.grid-count{margin:0 0 20px;font-size:14px;color:var(--ink-2)}
.work-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:28px 18px;
}
@media (min-width:620px){.work-grid{grid-template-columns:repeat(2,1fr)}}
@media (min-width:980px){.work-grid{grid-template-columns:repeat(3,1fr)}}
@media (min-width:1400px){.work-grid{grid-template-columns:repeat(4,1fr)}}
.work-card a.cover{color:inherit;display:block}
.work-card a.cover:hover{text-decoration:none}
.work-card .still{
  aspect-ratio:16/9;background:#263238;overflow:hidden;margin:0 0 10px;
}
.work-card .still img{width:100%;height:100%;object-fit:cover}
.work-card .still.typo{
  display:flex;flex-direction:column;justify-content:flex-end;gap:8px;
  padding:16px 16px 14px;background:linear-gradient(165deg,#263238 0%,#455a64 100%);
  color:#fff;border-left:4px solid var(--accent);
}
.work-card .still.typo span{font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:var(--accent);font-weight:700}
.work-card .still.typo strong{font-family:var(--serif);font-weight:600;font-size:18px;line-height:1.25}
.work-card .format{
  margin:0 0 4px;
  font-size:11px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--accent);
}
.work-card h3{
  font-family:var(--serif);font-weight:600;font-size:20px;line-height:1.25;
  margin:0 0 6px;letter-spacing:-.01em;color:var(--ink);
}
.work-card a.cover:hover h3{color:var(--accent)}
.work-card .by{margin:0;font-size:13px;color:var(--ink-2)}
.work-card .credit{display:block;margin:4px 0 0;font-size:11px;color:var(--ink-3)}
.work-card .hl-also{display:inline-block;margin-top:6px;font-size:13px;font-weight:700;color:var(--link)}
.grid-empty{grid-column:1/-1;color:var(--ink-2);font-family:var(--serif);font-size:20px}

/* ---------- Field of Vision film band ---------- */
.film{background:var(--film);color:var(--on-dark);padding:72px 0 80px}
.film h2,.film .kicker + h2{color:#fff}
.film .section-head p{color:var(--muted-dark)}
.film .kicker{color:var(--accent)}
.reel-wrap{position:relative;display:grid;grid-template-columns:44px 1fr 44px;gap:8px;align-items:center}
.reel-nav{
  width:44px;height:44px;border:1px solid rgba(255,255,255,.3);
  background:transparent;color:#fff;font-size:26px;line-height:1;cursor:pointer;
}
.reel-nav:hover{background:#fff;color:var(--film)}
.reel{
  display:flex;gap:16px;overflow-x:auto;scroll-snap-type:x mandatory;
  scrollbar-width:thin;padding:4px 0 12px;-webkit-overflow-scrolling:touch;
}
.reel-card{
  flex:0 0 min(80vw, 420px);scroll-snap-align:start;background:#10161a;
  display:flex;flex-direction:column;
}
.reel-card .yt{display:block;position:relative;aspect-ratio:16/9;background:#000;width:100%;padding:0;border:0;cursor:pointer;color:inherit}
.reel-card a.cover{display:flex;flex-direction:column;position:relative;background:#10161a;color:inherit}
.reel-card .yt img, .reel-card a.cover img{width:100%;aspect-ratio:16/9;height:auto;object-fit:cover;background:#000}
.reel-card .yt::after{
  content:"";position:absolute;left:50%;top:50%;width:56px;height:56px;
  margin:-28px 0 0 -28px;border-radius:50%;
  background:var(--accent) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'><path d='M8 5v14l11-7z'/></svg>") center/18px 18px no-repeat;
  box-shadow:0 4px 16px rgba(0,0,0,.35);
}
.reel-card .yt:hover::after{transform:scale(1.06)}
.reel-card .yt iframe{position:absolute;inset:0;width:100%;height:100%}
.reel-card .yt.playing::after{display:none}
.reel-card .body, .reel-card a.cover .body{padding:14px 16px 18px}
.reel-card .format{color:var(--accent);margin:0 0 4px;font-size:11px;letter-spacing:.14em;text-transform:uppercase;font-weight:700}
.reel-card strong, .reel-card h3{
  display:block;font-family:var(--serif);font-weight:600;font-size:20px;line-height:1.25;color:#fff;margin:0 0 4px;
}
.reel-card span, .reel-card .by{color:var(--muted-dark);font-size:13px}
.reel-card a.cover{color:inherit}
.reel-card a.cover:hover{text-decoration:none}
.reel-card a.cover:hover h3,.reel-card a.cover:hover strong{color:var(--accent)}
.reel-card .credit{color:var(--muted-dark);font-size:11px;padding:6px 16px 0}
.reel-card .hl-also{color:var(--link-on-dark);font-size:13px;font-weight:700}

/* click-to-load used in OTH and 360 too */
.yt{position:relative;display:block;width:100%;padding:0;border:0;background:#000;cursor:pointer;aspect-ratio:16/9}
.yt img{width:100%;height:100%;object-fit:cover}
.yt::after{
  content:"";position:absolute;left:50%;top:50%;width:56px;height:56px;
  margin:-28px 0 0 -28px;border-radius:50%;
  background:var(--accent) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'><path d='M8 5v14l11-7z'/></svg>") center/18px 18px no-repeat;
}
.yt.playing::after{display:none}
.yt iframe{position:absolute;inset:0;width:100%;height:100%}

/* 360 row */
.cards-360{display:grid;grid-template-columns:1fr;gap:20px;margin-top:28px}
@media (min-width:640px){.cards-360{grid-template-columns:repeat(2,1fr)}}
@media (min-width:1100px){.cards-360{grid-template-columns:repeat(3,1fr)}}
.card-360{background:#10161a}
.card-360 .body{padding:12px 14px 16px}
.card-360 strong{display:block;font-family:var(--serif);color:#fff;font-size:18px;margin:0 0 2px}
.card-360 span{color:var(--muted-dark);font-size:13px}
.hl-archive{display:inline-block;margin-top:6px;font-size:12px;font-weight:500;color:var(--ink-2)}
.hl-archive:hover{color:var(--ink)}
.work-card .hl-archive{display:block}
.reel-card .hl-archive{color:var(--muted-dark)}
.card-360 .hl-archive{display:block;margin-top:8px;color:var(--muted-dark)}
.tl .hls .hl-archive{margin-top:0;font-size:13px}

/* ---------- This American Life OTH archive ---------- */
.oth-sec{padding:72px 0}
.oth-tools{margin:0 0 24px}
.oth-grid{display:grid;grid-template-columns:1fr;gap:28px 20px}
@media (min-width:720px){.oth-grid{grid-template-columns:repeat(2,1fr)}}
@media (min-width:1100px){.oth-grid{grid-template-columns:repeat(3,1fr)}}
.ep-card{background:var(--paper-2);border:1px solid var(--rule);display:flex;flex-direction:column}
.ep-card .body{padding:14px 16px 18px}
.ep-card h3{font-family:var(--serif);font-size:22px;line-height:1.25;margin:0 0 6px;font-weight:600;color:var(--ink)}
.ep-card .guest{margin:0 0 6px;font-size:13px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--accent)}
.ep-card .dek{font-family:var(--sans);font-size:15px;color:var(--ink);margin:0 0 6px}
.ep-card .by{margin:0;font-size:13px;color:var(--ink-2)}

/* ---------- Burk Uzzle career chapters ---------- */
.career{padding:72px 0 40px;border-top:1px solid var(--rule)}
.chapter-nav{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 28px}
.chapter-nav button{
  min-height:44px;min-width:44px;padding:0 14px;
  border:1px solid var(--rule);background:transparent;color:var(--ink);
  font-size:14px;cursor:pointer;
}
.chapter-nav button[aria-pressed="true"]{background:var(--ink);color:var(--paper);border-color:var(--ink)}
.chapter{
  display:none;
  background:var(--paper-2);
  border:1px solid var(--rule);
  padding:24px 24px 28px;
  margin:0 0 32px;
}
.chapter.open{display:block}
.chapter .when{margin:0 0 6px;font-size:12px;letter-spacing:.12em;text-transform:uppercase;font-weight:700;color:var(--accent)}
.chapter h3{font-family:var(--serif);font-size:clamp(26px,4vw,36px);margin:0 0 8px;letter-spacing:-.02em}
.chapter .org{margin:0 0 12px;color:var(--ink-2);font-size:15px}
.chapter p{margin:0;max-width:62ch}
.record{margin:0 0 40px}
.record h3{font-family:var(--serif);font-size:28px;margin:0 0 16px}
.record ol{list-style:none;margin:0;padding:0;border-top:1px solid var(--rule)}
.record li{
  display:grid;grid-template-columns:1fr;gap:2px;
  padding:12px 0;border-bottom:1px solid var(--rule);
}
@media (min-width:700px){
  .record li{grid-template-columns:120px 1fr;gap:16px;align-items:baseline}
}
.record .r-when{font-size:13px;color:var(--ink-2);font-weight:700}
.record strong{font-weight:700}
.record span{display:block;color:var(--ink-2);font-size:14px}

.bio{max-width:var(--measure);margin:0 0 48px}
.bio h3{font-family:var(--serif);font-size:28px;margin:0 0 16px}
.bio p{margin:0 0 1em;font-family:var(--serif);font-size:19px;line-height:1.55}
.bio blockquote{
  margin:1em 0;padding:0 0 0 18px;border-left:3px solid var(--accent);
  font-family:var(--serif);font-style:italic;font-size:20px;color:var(--ink);
}
.skills-block h3{font-family:var(--serif);font-size:28px;margin:0 0 16px}
.skill-card{margin:0 0 22px}
.skill-card h4{margin:0 0 8px;font-size:13px;letter-spacing:.1em;text-transform:uppercase;color:var(--ink-2)}
.skill-card h4 small{display:block;color:var(--accent);margin-bottom:2px;letter-spacing:.14em}
.chips{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:8px}
.chips li{
  border:1px solid var(--rule);background:var(--paper-2);
  padding:8px 12px;min-height:40px;display:flex;align-items:center;font-size:14px;
}

/* Apps / 360 in career */
.projects-row{display:grid;grid-template-columns:1fr;gap:20px;margin:0 0 36px}
@media (min-width:700px){.projects-row{grid-template-columns:repeat(3,1fr)}}
.proj-card{color:inherit;background:var(--paper-2);border:1px solid var(--rule);display:block}
.proj-card:hover{text-decoration:none}
.proj-card img{width:100%;aspect-ratio:16/9;object-fit:cover}
.proj-card .body{padding:12px 14px 16px}
.proj-card strong{display:block;font-family:var(--serif);font-size:18px;margin:0 0 2px}
.proj-card span{color:var(--ink-2);font-size:13px}
.proj-card:hover strong{color:var(--accent)}

/* Full career timeline, secondary */
.tl-wrap{margin-top:24px}
.tl-wrap summary{
  cursor:pointer;min-height:44px;display:flex;align-items:center;
  font-weight:700;letter-spacing:.04em;text-transform:uppercase;font-size:14px;
}
.tl{list-style:none;margin:16px 0 0;padding:0;border-top:1px solid var(--rule)}
.tl > li{display:grid;grid-template-columns:1fr;gap:6px;padding:18px 0;border-bottom:1px solid var(--rule)}
@media (min-width:720px){
  .tl > li{grid-template-columns:160px 1fr;gap:24px}
}
.tl .when{font-size:13px;color:var(--ink-2);font-weight:700}
.tl h3{font-family:var(--serif);font-size:22px;margin:0 0 4px;font-weight:600}
.tl .org{margin:0 0 8px;color:var(--ink-2);font-size:14px}
.tl p{margin:0 0 8px}
.tl .hls{margin:8px 0 0}
.tl .hls summary{text-transform:none;letter-spacing:0;font-size:14px;color:var(--link);min-height:44px}
.tl .hls ul{margin:8px 0 0;padding:0;list-style:none}
.tl .hls li{margin:0 0 8px;padding:0}
.tl-note{font-size:14px;color:var(--ink-2);margin:16px 0 0}

/* ---------- Connect footer ---------- */
.connect{background:var(--nav);color:var(--on-dark);padding:64px 0 40px}
.connect h2{color:#fff;font-family:var(--serif);font-size:clamp(36px,6vw,64px);margin:0 0 8px}
.connect .sub{color:var(--muted-dark);margin:0 0 28px;font-family:var(--serif);font-size:20px}
.connect .links{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:8px 4px}
.connect .links a{
  display:flex;align-items:center;gap:10px;color:#fff;
  min-height:44px;padding:0 12px;font-weight:500;
}
.connect .links a:hover{color:var(--accent);text-decoration:none}
.connect svg{width:18px;height:18px;fill:currentColor;flex:0 0 auto}
.foot{
  display:flex;flex-wrap:wrap;justify-content:space-between;gap:12px;
  margin-top:36px;padding-top:20px;border-top:1px solid rgba(255,255,255,.12);
  color:var(--muted-dark);font-size:14px;align-items:center;
}
.foot img{width:auto;height:22px;display:inline-block;vertical-align:middle;margin-right:8px}
.foot a{color:#fff;text-decoration:underline;text-underline-offset:2px;display:inline-flex;align-items:center;min-height:44px}

/* ---------- Deep Dive (Ciechanowski pace) ---------- */
.dive-page{background:var(--paper)}
.dive-bar{
  position:sticky;top:0;z-index:40;
  background:var(--nav);color:var(--on-dark);height:var(--nav-h);
  display:flex;align-items:center;
}
.dive-bar .head-inner{width:min(42rem, calc(100% - 40px));margin:0 auto;display:flex;align-items:center;justify-content:space-between;gap:16px;height:100%}
.dive-bar a{color:var(--on-dark);min-height:44px;display:inline-flex;align-items:center}
.dive-bar a:hover{color:var(--accent);text-decoration:none}
.dive{
  width:min(42rem, calc(100% - 40px));
  margin:0 auto;
  padding:48px 0 80px;
}
.dive header.lede-block{margin:0 0 36px}
.dive .kicker{margin-bottom:14px}
.dive h1{
  font-family:var(--serif);font-weight:700;
  font-size:clamp(36px, 7vw, 64px);
  letter-spacing:-.03em;line-height:1.05;margin:0 0 16px;
}
.dive .lede{font-family:var(--serif);font-size:clamp(20px, 2.4vw, 24px);line-height:1.4;color:var(--ink);margin:0 0 16px}
.dive .meta{margin:0;font-size:14px;letter-spacing:.04em;text-transform:uppercase;color:var(--ink-2);font-weight:500}
.dive .figure{margin:0 0 36px}
.dive .figure img{width:100%;height:auto;background:var(--nav)}
.dive .figure figcaption{margin-top:8px;font-size:13px;color:var(--ink-2)}
.dive .body p{font-family:var(--serif);font-size:20px;line-height:1.6;margin:0 0 1.15em}
.dive .body h2{font-family:var(--serif);font-size:28px;margin:2em 0 .6em;letter-spacing:-.02em}
.dive .sources{margin-top:3em;padding-top:1.5em;border-top:1px solid var(--rule)}
.dive .sources h2{margin-top:0}
.dive .sources ol{margin:0;padding:0 0 0 1.2em}
.dive .sources li{margin:0 0 .6em;font-size:16px}
.dive .sources a{color:var(--link);font-weight:500}
.dive .related{margin-top:2.5em}
.dive .related a{color:var(--ink)}

/* Phone tap comfort */
@media (max-width:820px){
  .section{padding:56px 0}
  .lead{padding:56px 0 24px}
  .chips li{min-height:44px}
}

/* Utility: hide overflow from 100vw mistakes */
img{max-width:100%}

/* ---------- Over The Horizon mark ---------- */
.oth-mark{
  display:inline-flex;flex:0 0 auto;line-height:0;
  border-radius:4px;overflow:hidden;background:#000;
  text-decoration:none;
}
.oth-mark img{
  display:block;width:var(--oth-s,40px);height:var(--oth-s,40px);
  max-width:none;border:0;
}
.oth-mark-32{--oth-s:32px}
.oth-mark-40{--oth-s:40px}
.oth-mark-48{--oth-s:48px}
.oth-mark:hover{opacity:.88}
.role-oth{
  display:inline-flex;align-items:center;gap:10px;
}
.oth-head{
  display:flex;align-items:flex-start;gap:16px;
  max-width:48rem;
}
.oth-head > div{min-width:0}
.oth-watch{margin:-12px 0 28px}
.foot-oth{
  display:inline-flex;align-items:center;gap:10px;
  color:#fff;text-decoration:none;min-height:44px;
}
.foot-oth:hover{color:var(--accent);text-decoration:none}
.foot-oth .oth-mark, .foot-oth picture, .foot-oth img{flex:0 0 auto}
.foot-oth{gap:14px;font-size:1.0625rem}
.foot-oth img{width:48px;height:48px;border-radius:6px;display:block}
@media (max-width:420px){.foot-oth{gap:12px}.foot-oth img{width:42px;height:42px}}
.chapter-title,.tl-title{
  display:inline-flex;align-items:center;gap:12px;flex-wrap:wrap;
}
@media (max-width:420px){
  .oth-head{gap:12px}
}

/* OTH mark inline with the section heading, scales with the h2 */
.oth-h{display:flex;align-items:center;gap:.22em;flex-wrap:nowrap}
.oth-h > span{min-width:0}
.oth-mark-em{border-radius:.08em}
.oth-mark-em img{width:.92em;height:.92em}
/* OTH mark in the Connect links */
.oth-mark-link{border-radius:4px}
.oth-mark-link img{width:28px;height:28px}

/* Phones: OTH logo as a badge on its own line above the heading */
@media (max-width:600px){
  .oth-h{display:block}
  .oth-h > .oth-mark-em{display:flex;width:68px;margin:10px 0 16px;border-radius:10px}
  .oth-h > .oth-mark-em img{width:68px;height:68px}
}

/* Launch: hide media-pending slots. Remove this rule (and the hidden
   attributes on #field-photos, #showreel, #lanka-films) to re-enable. */
.slot-pending,[data-slot].slot-pending,section.slot-pending{display:none!important}

/* Option 3 as is. To try Option 3 + B wordmark later: copy
   _logo/b-wordmark-mark.svg to assets/img/brand-wordmark.svg, add
   <img class="brand-wordmark" src="assets/img/brand-wordmark.svg" alt="" width="273" height="36">
   inside .brand, and put class "brand-3b" on <body>. */
.brand .brand-name{white-space:nowrap}
body.brand-3b .brand .brand-name{display:none}
body.brand-3b .brand .brand-wordmark{display:block;width:auto;height:36px;flex:0 0 auto}
body.brand-3b .brand .brand-wordmark{width:min(273px, calc(100vw - 208px));height:auto;max-height:36px}
@media (min-width:1100px){
  body.has-rail.brand-3b .brand{flex-direction:column;flex-wrap:nowrap;align-items:flex-start;gap:8px}
  body.has-rail.brand-3b .brand .brand-wordmark{width:100%;height:auto;max-width:100%;max-height:none}
}
.brand .brand-wordmark{display:none}
