/* Abhinav Pahade — portfolio
   Fonts are swappable: change --sans / --serif and the <link> in build.js */
/* Type: Undeka for titles, headers and labels; Erode for body copy only. Files in assets/fonts/. */
@font-face { font-family: "Undeka"; src: url("assets/fonts/undeka-light-webfont.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Undeka"; src: url("assets/fonts/undeka-regular-webfont.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Undeka"; src: url("assets/fonts/undeka-italic-webfont.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Undeka"; src: url("assets/fonts/undeka-bold-webfont.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Erode"; src: url("assets/fonts/Erode-Light.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Erode"; src: url("assets/fonts/Erode-LightItalic.woff2") format("woff2"); font-weight: 300; font-style: italic; font-display: swap; }
@font-face { font-family: "Erode"; src: url("assets/fonts/Erode-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Erode"; src: url("assets/fonts/Erode-Italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
:root {
  --sans: "Undeka", "Helvetica Neue", Arial, sans-serif;
  --serif: "Erode", Georgia, "Times New Roman", serif;
  --bg: #f4f4f2;
  --fg: #111;
  --muted: #8a8a86;
  --card: #dcdcda;
  --line: #d6d6d3;
  --accent: #111;
  --gutter: clamp(16px, 2vw, 28px);

  /* Type scale. Undeka carries everything except body copy; Erode is body copy only.
     UI steps are fixed px (they must stay legible at any width); display steps scale. */
  --ui-xs: 13px;    /* footer legal, media placeholders, card tag */
  --ui-sm: 14px;    /* captions, ownership line, credits, links, small links, nav pill */
  --ui-md: 15px;    /* meta values, card titles, info lists, footer columns */
  --ui-lg: 16px;    /* labels: section labels, meta keys, nav */
  --ui-xl: 20px;    /* hero project descriptor */
  --body-sm: clamp(18px, 1.5vw, 22px);   /* project intro */
  --body-md: clamp(20px, 1.7vw, 24px);   /* project section copy */
  --body-lg: clamp(20px, 1.75vw, 25px);  /* home bio, info page */
  --d-bio: clamp(24px, 2.2vw, 32px);     /* bio lead and sub */
  --d-sec: clamp(26px, 2.8vw, 36px);     /* section headings */
  --d-caps: clamp(28px, 2.8vw, 38px);    /* capabilities list */
  --d-page: clamp(32px, 4.6vw, 64px);    /* work / photography / info page titles */
  --d-insight: clamp(24px, 2.5vw, 40px); /* the insight statement */
  --d-role: clamp(20px, 1.9vw, 28px);    /* the role statement */
  --ease: cubic-bezier(.2,.7,.2,1);
  --reveal: 900ms;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: var(--ui-md);
  line-height: 1.4;
  padding-inline: var(--gutter);
  -webkit-font-smoothing: antialiased;
  transition: opacity 320ms var(--ease);
}
body.leaving { opacity: 0; }
a { color: inherit; text-decoration: none; }
a:hover { opacity: .7; }
img, video { max-width: 100%; display: block; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
.serif { font-family: var(--serif); font-weight: 400; }
.muted { color: var(--muted); }
.small { font-size: var(--ui-sm); letter-spacing: .01em; }
.u { text-decoration: underline; text-underline-offset: .15em; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; justify-content: space-between; align-items: baseline;
  padding-block: 18px 14px;
  background: none;
}
/* the band is its own layer so it can drop in from above with a hard bottom edge */
.nav::before {
  content: ""; position: absolute; z-index: -1;
  left: calc(-1 * var(--gutter)); right: calc(-1 * var(--gutter)); top: 0; bottom: 0;
  background: var(--bg);
  transition: transform 520ms cubic-bezier(.3, .08, .2, 1);
}
/* on the landing the hero owns the screen, so the band waits above it until scrolled */
body.home .nav::before { transform: translateY(-101%); }
body.home.nav-band .nav::before { transform: none; }
.nav { font-size: var(--ui-lg); }
.nav .brand { font-family: var(--serif); font-size: var(--ui-lg); }
.nav .links a { margin-left: .35em; }
.nav .links a + a::before { content: ", "; margin-left: -.35em; opacity: .6; }
.nav .links a.on { text-decoration: underline; text-underline-offset: .18em; }

/* ---------- reveal ---------- */
.r { opacity: 0; transform: translateY(14px); transition: opacity var(--reveal) var(--ease), transform var(--reveal) var(--ease); transition-delay: var(--d, 0ms); }
.r.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .r { opacity: 1; transform: none; transition: none; }
  body { transition: none; }
}

/* ---------- home hero ---------- */
/* The hero owns the whole first screen: nav + hero = 100svh. The fill covers exactly that, edge to edge. */
.hero {
  position: relative;
  height: calc(100svh - var(--navh, 56px));
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-block: 0 4vh;
  transition: color 700ms cubic-bezier(.4, 0, .3, 1);
}
.hero-fill {
  position: absolute; left: calc(-1 * var(--gutter)); right: calc(-1 * var(--gutter)); top: calc(-1 * var(--navh, 56px)); bottom: 0;
  z-index: 0; pointer-events: none; overflow: hidden;
  border-radius: 0 0 10px 10px;
  opacity: 0; transition: opacity 500ms var(--ease);
}
/* the fill arrives like light reaching across a room: a soft-edged pool of image opens
   from the lead thumbnail. Wide feather, no visible edge, over before it is read. */
@property --reveal { syntax: "<percentage>"; inherits: false; initial-value: 0%; }
.hero-fill.show { opacity: 1; }
.hero-fill {
  --reveal: -50%;
  -webkit-mask-image: radial-gradient(circle at var(--bx, 24%) var(--by, 76%), #000 0%, #000 var(--reveal), transparent calc(var(--reveal) + 65%));
  mask-image: radial-gradient(circle at var(--bx, 24%) var(--by, 76%), #000 0%, #000 var(--reveal), transparent calc(var(--reveal) + 65%));
}
.hero-fill.show {
  --reveal: 130%;
  transition: opacity 200ms linear,
              --reveal 850ms cubic-bezier(.25, .6, .25, 1);
}
.hero-fill .layer { position: absolute; inset: 0; opacity: 0; transition: opacity 700ms var(--ease); }
.hero-fill .layer.on { opacity: 1; }
.hero-fill img, .hero-fill video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; max-width: none; }
.hero-fill::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.16); }
.hero > :not(.hero-fill) { position: relative; z-index: 1; }
.hero.filled { color: #fff; }
body.hero-filled .nav { color: #fff; }
.nav { transition: color 700ms cubic-bezier(.4, 0, .3, 1); }
body.hero-filled .nav .pill { border-color: rgba(255,255,255,.6); background: rgba(255,255,255,.18); }
body.nav-band .nav { color: var(--fg); }
body.nav-band .nav .pill { border-color: var(--line); background: var(--card); }
/* the text block and the thumbnails share one width: the width of the line */
/* the block is as wide as the longest line of type; the thumbnails take that same width.
   width:0 + min-width:100% keeps the thumbnails' own image widths out of that calculation. */
.hero-block { display: flex; flex-direction: column; align-items: flex-start; align-self: flex-start; width: fit-content; max-width: 100%; gap: 1.6svh; }
/* sized against the screen height, per the wireframe: three lines ≈ 17% of the hero, block sits bottom-left */
.hero-line {
  font-size: clamp(22px, 5.4svh, 56px);
  line-height: 1.02; letter-spacing: -.025em;
  font-weight: 400; margin: 0; white-space: nowrap;
}
.hero-line .ph { white-space: nowrap; }
.hero .hero-desc { position: absolute; right: 0; bottom: 4vh; z-index: 2; font-size: var(--ui-xl); opacity: 0; transition: opacity 400ms var(--ease); }
.hero.filled .hero-desc { opacity: 1; }

/* thumbnails: three across, filling the line's width */
.thumbs { display: flex; gap: 6px; width: 0; min-width: 100%; }
.thumb { position: relative; display: block; flex: 1 1 0; min-width: 0; width: 0; aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; background: var(--card); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,0); transition: background 450ms var(--ease); pointer-events: none; }
.thumb.on::after { background: rgba(0,0,0,.6); }
.thumb .t { position: absolute; z-index: 2; left: 8px; right: 8px; bottom: 6px; font-size: var(--ui-md); color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.4); }
.thumb:hover { opacity: 1; }

/* word-by-word timeline reveal */
.ph .w { display: inline-block; opacity: 0; transform: translateY(.2em); transition: opacity 380ms var(--ease), transform 380ms var(--ease); transition-delay: var(--d, 0ms); white-space: pre; }
.ph .w.in { opacity: 1; transform: none; }
.tl { opacity: 0; transform: translateY(10px); transition: opacity 600ms var(--ease), transform 600ms var(--ease); transition-delay: var(--d, 0ms); }
.tl.in { opacity: 1; transform: none; }
.nav .pill { display: inline-block; margin-left: .8em; padding: 2px 9px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); font-size: var(--ui-sm); }
.nav .pill::before { content: none !important; }
@media (prefers-reduced-motion: reduce) { .ph .w, .tl { opacity: 1; transform: none; transition: none; } }

/* ---------- cards ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.card {
  position: relative; display: block; overflow: hidden;
  background: var(--card); border-radius: 8px;
  aspect-ratio: 4 / 3;
  transition: transform 500ms var(--ease), background 400ms;
}
.card:hover { opacity: 1; transform: translateY(-2px); }
.card .media { position: absolute; inset: 0; transition: transform 900ms var(--ease); }
.card .media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.45), rgba(0,0,0,0) 45%); }
.card .media img, .card .media video { width: 100%; height: 100%; object-fit: cover; }
.card:hover .media { transform: scale(1.03); }
.card.has-media .cap { color: #fff; }
.card .cap { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 1; }

.card .t { font-size: var(--ui-md); font-weight: 400; }
.card .s { font-size: var(--ui-xs); opacity: .75; margin-top: 2px; }
.card.soon { pointer-events: none; }
.card.soon .cap::after { content: "Case study in progress"; display: block; font-size: var(--ui-xs); opacity: .6; margin-top: 4px; }

/* More Work: one 3-column grid, every tile 4:3. Five projects = three across, then two. */
.work-sec { padding-block: 20px 36px; scroll-margin-top: var(--navh, 56px); }
.bento { grid-template-columns: repeat(3, 1fr); }
.bento .card { aspect-ratio: 4 / 3; height: auto; }
.view-more { display: inline-block; margin-top: 14px; font-size: var(--ui-sm); }

/* ---------- home bio ---------- */
.bio { display: grid; grid-template-columns: 1fr 2fr; gap: 24px; padding-block: 100px 90px; }
.bio-lead, .bio-sub { font-size: var(--d-bio); line-height: 1.15; letter-spacing: -.01em; }
.bio-sub { color: var(--muted); margin-bottom: 26px; }
.bio .serif { font-size: var(--body-lg); line-height: 1.4; max-width: 34em; }
.bio .cta { margin-top: 18px; font-size: var(--ui-sm); }

/* ---------- capabilities ---------- */
.caps { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px; align-items: start; padding-block: 60px 80px; }
.caps .k { font-size: var(--ui-lg); color: var(--muted); }
.caps-img { position: relative; aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; background: var(--card); }
.caps-media { position: absolute; inset: 0; opacity: 0; transition: opacity 500ms var(--ease); }
.caps-media.on { opacity: 1; }
.caps-media img, .caps-media .phold { width: 100%; height: 100%; object-fit: cover; }
.caps-list { list-style: none; margin: 0; padding: 0; font-size: var(--d-caps); line-height: 1.2; letter-spacing: -.02em; color: var(--muted); }
.caps-list li { cursor: default; transition: color 300ms; }
.caps-list li.on { color: var(--fg); }

.sec-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 18px; }
.sec-head h2 { font-size: var(--d-sec); font-weight: 400; letter-spacing: -.02em; margin: 0; }
.sec-head a { font-size: var(--ui-sm); }
.sec { padding-block: 24px 60px; }

/* ---------- footer ---------- */
.foot {
  border-top: 1px solid var(--line);
  margin-top: 40px; padding-block: 22px 26px;
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px;
  font-size: var(--ui-md);
}
.foot .brand { font-family: var(--serif); font-size: var(--ui-lg); }
.foot .col a { display: block; }
.foot .bottom { grid-column: 1 / -1; display: flex; justify-content: space-between; margin-top: 56px; color: var(--muted); font-size: var(--ui-xs); }
.foot .bottom a { margin-left: .5em; }

/* ---------- work index ---------- */
.page-title { font-size: var(--d-page); font-weight: 400; letter-spacing: -.02em; line-height: 1.05; margin: 32px 0 60px; max-width: 18ch; }
.page-title .muted { font-weight: 400; }

/* ---------- project page ---------- */
body.project { --bg: var(--p-bg); --fg: var(--p-fg); --muted: var(--p-muted); --accent: var(--p-accent); --card: rgba(255,255,255,.08); --line: rgba(255,255,255,.14); color-scheme: dark; }
/* hero: title and thesis left, meta right, full-width banner below (wireframe 2026-09-13) */
.phero { padding-bottom: 2vh; }
/* the title block owns two thirds of the first screen; the banner starts in the last third and runs past it */
.phead { min-height: calc((100svh - var(--navh, 56px)) * 0.66); padding-block: 6vh 4vh; }
/* the inner row is sized by the title column, so the meta panel spans exactly that height */
.phead-inner { display: grid; grid-template-columns: minmax(0, 1fr) clamp(220px, 19vw, 290px); gap: clamp(24px, 4vw, 64px); align-items: start; }
.ptitle, .phead .tagline { font-size: clamp(38px, 6.2vw, 112px); font-weight: 400; letter-spacing: -.03em; line-height: 1; margin: 0; }
.ptitle sup { font-size: .2em; vertical-align: super; margin-left: .3em; letter-spacing: 0; color: var(--muted); }
.phead .tagline { color: var(--muted); }
.phead .intro { margin-top: 4vh; max-width: 56ch; font-size: var(--body-sm); line-height: 1.4; }
.pmeta { display: flex; flex-direction: column; justify-content: flex-start; gap: clamp(20px, 2.6vh, 34px); font-size: var(--ui-md); line-height: 1.35; padding-top: .55em; }
.pmeta .k { display: block; color: var(--muted); font-size: var(--ui-lg); margin-bottom: 6px; }
.award-logo { width: clamp(144px, 13.5vw, 198px); height: auto; margin-bottom: 10px; }
.pbanner { border-radius: 10px; overflow: hidden; }
.pbanner img, .pbanner video { width: 100%; object-fit: cover; }
.recog { margin-top: 26px; }
.recog .label { margin-bottom: 10px; }

.psec { display: grid; grid-template-columns: 1fr 3fr; gap: 28px; padding-block: 120px; border-top: 1px solid var(--line); }
.psec:first-of-type { border-top: 0; }
.psec .side { position: sticky; top: 64px; align-self: start; }
.psec .label, .band .label { color: var(--muted); font-size: var(--ui-lg); margin-bottom: 16px; }
.psec .txt { font-family: var(--serif); font-size: var(--body-md); line-height: 1.4; }
.psec .txt p { margin-bottom: 1.1em; }
/* Two blocks break the two-column grid and run full width: the insight (the strongest claim,
   in the project's accent at display size) and the role line (what was his, at reading size). */
.band { border-top: 1px solid var(--line); padding-block: clamp(44px, 8vh, 104px); }
.band .statement { margin: 0; }
.insight-band .statement { font-family: var(--sans); font-size: var(--d-insight); line-height: 1.14;
  letter-spacing: -.02em; color: var(--accent); max-width: 46ch; }
.role-band { padding-block: clamp(36px, 6vh, 80px); }
.role-band .statement { font-family: var(--serif); font-size: var(--d-role); line-height: 1.35; max-width: 54ch; }

.psec .cap { margin-top: 22px; font-size: var(--ui-sm); color: var(--muted); line-height: 1.5; max-width: 40em; }
.psec .todo { margin-top: 12px; font-size: var(--ui-sm); color: var(--accent); }
.media-stack { display: grid; gap: 10px; grid-template-columns: repeat(6, 1fr); }
.media-stack > * { grid-column: span var(--sp, 6); border-radius: 8px; overflow: hidden; }
/* a tile with --ar holds that box and the media fills it */
.media-stack > [style*="--ar"] { aspect-ratio: var(--ar); }
.media-stack > [style*="--ar"] > img, .media-stack > [style*="--ar"] > video { width: 100%; height: 100%; object-fit: cover; display: block; }
/* columns are weighted by their own aspect, so every tile keeps its true crop and the
   bottom edge still lines up: the widths fall out of the ratios rather than a fixed grid */
.bento-stack { grid-column: 2; display: flex; gap: 10px; align-items: stretch; margin-top: 10px; }
.bcol { flex: var(--fg, 1) 1 0; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.bcol.grid2 { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; align-content: stretch; }
/* the ratio sets the intrinsic size, then the row fills the block height so the rectangle closes */
.bcol.grid2 .btile { height: 100%; }
.btile { position: relative; border-radius: 8px; overflow: hidden; aspect-ratio: var(--ar); min-width: 0; min-height: 0; }
.btile.fill { aspect-ratio: auto; flex: 1 1 auto; min-height: 0; }
.btile > img, .btile > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.media-stack.n2 > * { --sp: 6; }
.media-stack.n3 > * { --sp: 2; }
.media-stack.n4 > :first-child { --sp: 6; }
.media-stack.n4 > :not(:first-child) { --sp: 2; }

/* copyright mark, bottom-left of an image */
.mfig { position: relative; margin: 0; display: block; }
.mfig > img, .mfig > video { display: block; width: 100%; }
.mcredit { position: absolute; left: 12px; bottom: 10px; font-size: var(--ui-xs); line-height: 1; color: #fff; opacity: .82; text-shadow: 0 1px 4px rgba(0,0,0,.6); letter-spacing: .01em; }

/* album artwork inset in a colour box, with the track beneath it */
.album { background: var(--album-bg, var(--card)); color: #fff; width: 100%; display: grid; place-items: center; padding: clamp(48px, 9vh, 120px) 24px; }
.album-in { width: min(360px, 100%); display: flex; flex-direction: column; gap: 20px; }
.album-art { width: 100%; display: block; aspect-ratio: 1/1; object-fit: cover; border-radius: 3px; }
.pinfo { margin-bottom: 14px; }
.ptrackname { font-size: var(--ui-md); color: #fff; line-height: 1.25; }
.partist { font-size: var(--ui-xs); color: rgba(255,255,255,.58); margin-top: 3px; }
.prow { display: flex; align-items: center; gap: 12px; }
.pbtn { width: 34px; height: 34px; flex: none; padding: 0; border-radius: 50%; border: 1px solid rgba(255,255,255,.55); background: transparent; color: #fff; display: grid; place-items: center; cursor: pointer; transition: border-color .2s, background .2s; }
.pbtn:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.pico { width: 0; height: 0; border-left: 9px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; margin-left: 3px; }
.player.playing .pico { width: 9px; height: 12px; border: 0; border-left: 3px solid currentColor; border-right: 3px solid currentColor; margin-left: 0; }
.ptrack { flex: 1 1 auto; height: 2px; background: rgba(255,255,255,.25); position: relative; cursor: pointer; }
.ptrack::before { content: ""; position: absolute; inset: -9px 0; }
.pbar { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: #fff; }
.ptime { flex: none; font-size: var(--ui-xs); color: rgba(255,255,255,.62); font-variant-numeric: tabular-nums; }

/* framed live prototype */
.embed { position: relative; width: 100%; background: var(--card); overflow: hidden; }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.embed-open { position: absolute; right: 14px; bottom: 14px; z-index: 2; font-size: var(--ui-xs); line-height: 1; padding: 8px 13px; border-radius: 999px; border: 1px solid rgba(255,255,255,.42); background: rgba(0,0,0,.5); backdrop-filter: blur(6px); color: #fff; text-decoration: none; opacity: .62; transition: opacity .2s, border-color .2s; }
.embed:hover .embed-open, .embed-open:focus-visible { opacity: 1; border-color: #fff; }

/* video with play/pause and mute */
.vwrap { position: relative; display: block; }
.vwrap > video { display: block; width: 100%; height: 100%; object-fit: cover; }
.vctl { position: absolute; left: 14px; bottom: 14px; display: flex; gap: 8px; opacity: .55; transition: opacity .25s; }
.vwrap:hover .vctl, .vctl:focus-within { opacity: 1; }
.vbtn { width: 38px; height: 38px; padding: 0; border-radius: 50%; border: 1px solid rgba(255,255,255,.5); background: rgba(0,0,0,.35); backdrop-filter: blur(6px); color: #fff; display: grid; place-items: center; cursor: pointer; transition: border-color .2s, background .2s; }
.vbtn:hover { border-color: #fff; background: rgba(0,0,0,.55); }
.vwrap.playing .vb-play .pico { width: 9px; height: 12px; border: 0; border-left: 3px solid currentColor; border-right: 3px solid currentColor; margin-left: 0; }
.vwrap .mico { display: none; }
.vwrap.muted .mico.off { display: block; }
.vwrap:not(.muted) .mico.on { display: block; }
.phold { background: var(--card); width: 100%; display: grid; place-items: end start; padding: 12px; font-size: var(--ui-xs); color: var(--muted); }
.phold.tall { min-height: 100%; }
.audio { background: var(--card); padding: 24px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.audio audio { width: 100%; }

.pfoot { display: grid; grid-template-columns: 1fr 3fr; gap: 28px; padding-block: 40px 60px; border-top: 1px solid var(--line); font-size: var(--ui-sm); }
.pfoot .k { color: var(--muted); font-size: var(--ui-lg); margin-bottom: 10px; }
.pfoot ul { list-style: none; padding: 0; margin: 0; }
.pfoot li { margin-bottom: 2px; }

/* ---------- info ---------- */
.info { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding-block: 24px 80px; }
.info .serif { font-size: var(--body-lg); line-height: 1.4; max-width: 34em; }
.info .serif p { margin-bottom: 1.2em; }
.info .k { color: var(--muted); font-size: var(--ui-lg); margin-bottom: 10px; }
.info ul { list-style: none; padding: 0; margin: 0 0 28px; font-size: var(--ui-md); }
.info li { margin-bottom: 4px; }
.info li::before { content: "→ "; color: var(--muted); }
.info .portrait { border-radius: 8px; overflow: hidden; aspect-ratio: 4/5; margin-bottom: 28px; }

/* ---------- photography ---------- */
.photos { columns: 3; column-gap: 10px; }
.photos > * { break-inside: avoid; margin-bottom: 10px; border-radius: 8px; overflow: hidden; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .hero-line { white-space: normal; font-size: clamp(28px, 7vw, 44px); }
  .hero-block { display: flex; align-self: stretch; }
  .bio, .phead, .psec, .pfoot, .info, .caps { grid-template-columns: 1fr; }
  .pmeta { flex-direction: row; flex-wrap: wrap; gap: 18px 32px; }
  .psec .side { position: static; }
  .psec > .bento-stack { grid-column: auto; }
  .media-stack > * { --sp: 3 !important; }
  .bento-stack { flex-direction: column; }
  .btile.fill { aspect-ratio: var(--ar); flex: 0 0 auto; }
  .bcol.grid2 .btile { height: auto; }
  .media-stack.n4 > :first-child, .media-stack.n2 > * { --sp: 6 !important; }
  .photos { columns: 2; }
  .foot { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .grid { grid-template-columns: 1fr; }
  .hero-line { max-width: none; }
  .media-stack > * { --sp: 6 !important; }
  .photos { columns: 1; }
  .foot { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-fill, .hero-fill.show { -webkit-mask-image: none; mask-image: none; transition: opacity 300ms linear; }
}
