/* hmsteadman.com: shared styles for the home page and /resume.
   Hand-written CSS (no build step). Policy pages use legal.css. */

/* ===================== PALETTE ===================== */
:root {
  --color-bg:     #0d0d0d;
  --color-panel:  #131313;
  --color-text:   #f0ede8;
  --color-accent: #c9a84c;
  --color-accent-hi: #e2c468;

  --rule:    rgba(240, 237, 232, 0.14);
  --muted:   rgba(240, 237, 232, 0.62);
  --whisper: rgba(240, 237, 232, 0.50);

  --shell: 1400px;
  --gutter: max(8vw, calc((100% - var(--shell)) / 2));
  --nav-h: 4rem;
}

/* ===================== RESET & BASE ===================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

h1, h2, h3 { text-wrap: balance; }
p, li, dd { text-wrap: pretty; }
.nowrap { white-space: nowrap; }

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

.skip-link {
  position: fixed; left: 1rem; top: -100px; z-index: 1000;
  padding: .75rem 1.25rem; background: #fff; color: #0A0A0A;
  font-family: 'Inter', sans-serif; font-size: .875rem; font-weight: 500;
}
.skip-link:focus { top: 1rem; outline: 2px solid var(--color-accent); outline-offset: 2px; }
#main:focus { outline: none; }

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

/* ===================== NAV ===================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  min-height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0 var(--gutter);
  /* Dark from the start: it doubles as the hero's top letterbox bar, so nothing flashes through
     in the first 40px of scroll before .is-solid adds the blur and rule. */
  background-color: var(--color-bg);
  transition: background-color .4s ease, border-color .4s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-solid,
.nav--solid {
  background-color: rgba(13, 13, 13, 0.94);
  border-bottom-color: var(--rule);
}
@supports (backdrop-filter: blur(8px)) {
  .nav.is-solid, .nav--solid { background-color: rgba(13, 13, 13, 0.82); backdrop-filter: blur(8px); }
}
.nav__brand {
  font-family: 'Courier New', Courier, monospace; font-weight: 700;
  font-size: 0.85rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--color-accent);
  white-space: nowrap;
}
.nav__links { list-style: none; display: flex; flex-wrap: wrap; gap: 0.25rem 1.75rem; }
.nav__links a {
  display: inline-block; padding: 0.5rem 0;
  font-size: 0.7rem; font-weight: 400; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--color-text);
  border-bottom: 1px solid transparent;
  transition: color .3s ease, border-color .3s ease;
}
.nav__links a:hover { color: var(--color-accent); border-bottom-color: var(--color-accent); }
.nav__links a[aria-current="page"] { color: var(--color-accent); }

/* ===================== HERO ===================== */
.hero {
  position: relative;
  height: 100vh; height: 100svh;
  min-height: 34rem;
  width: 100%;
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0; z-index: 0;
  background-color: #1a1a1a;
  background-image: url('/assets/img/home/hero-victorian.jpg');
  background-size: cover; background-position: center;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 2;
  /* Dark on the left where the text sits, opening up on the right so the photo shows */
  background:
    linear-gradient(to right, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.66) 45%, rgba(0,0,0,0.32) 100%),
    linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0) 40%, rgba(0,0,0,0.6));
}
@media (max-width: 820px) {
  /* Text spans the full width on narrow screens, so darken evenly */
  .hero::before { background: linear-gradient(to bottom, rgba(0,0,0,0.55), rgba(0,0,0,0.68) 50%, rgba(0,0,0,0.88)); }
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  opacity: 0.10; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}
/* Letterbox bars. Never thinner than the fixed nav, so the nav always sits inside the top bar. */
.hero { --bar: max(5.4vh, var(--nav-h)); }
.hero__bar { position: absolute; left: 0; right: 0; height: var(--bar); background: var(--color-bg); z-index: 4; }
.hero__bar--top    { top: 0; }
.hero__bar--bottom { bottom: 0; }

.hero__inner {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: calc(var(--bar) + 8.6vh); z-index: 5;
  max-width: 920px;
}
.js .hero__inner { opacity: 0; animation: rise 1.6s cubic-bezier(.2,.7,.2,1) 0.2s forwards; }

.hero__overline { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.hero__overline::before { content: ""; display: block; width: 3rem; height: 1px; background: var(--color-accent); }
.hero__overline span {
  font-size: 0.66rem; font-weight: 500; letter-spacing: 0.42em; text-transform: uppercase;
  color: #d6b65a; text-shadow: 0 1px 12px rgba(0, 0, 0, 0.85);
}
.hero__name {
  font-family: 'Cormorant Garamond', serif; font-weight: 300;
  font-size: clamp(2.5rem, 8vw, 6.25rem); line-height: 0.95;
  letter-spacing: 0.14em; text-transform: uppercase;
}
.hero__name .mid { color: var(--color-accent); font-style: italic; font-weight: 400; }
.hero__tagline {
  margin-top: 1.6rem;
  font-family: 'Cormorant Garamond', serif; font-style: italic; font-weight: 400;
  font-size: clamp(1.25rem, 2vw, 1.6rem); line-height: 1.3;
  color: var(--color-text);
}
.hero__roles {
  margin-top: 0.9rem;
  font-size: clamp(0.68rem, 0.9vw, 0.8rem); letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--muted);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem 1.25rem; margin-top: 2.25rem; }

@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-flex; align-items: center; gap: 0.7rem;
  padding: 0.9rem 1.5rem;
  font-size: 0.7rem; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase;
  border: 1px solid var(--color-accent);
  transition: background-color .3s ease, color .3s ease, border-color .3s ease;
}
.btn--solid { background: var(--color-accent); color: #0d0d0d; }
.btn--solid:hover { background: var(--color-accent-hi); border-color: var(--color-accent-hi); }
.btn--ghost { color: var(--color-text); border-color: rgba(240, 237, 232, 0.45); }
.btn--ghost:hover { border-color: var(--color-accent); color: var(--color-accent); }
.btn svg { flex: none; }

.text-link {
  color: var(--color-accent);
  border-bottom: 1px solid rgba(201, 168, 76, 0.4);
  transition: border-color .3s ease, color .3s ease;
}
.text-link:hover { color: var(--color-accent-hi); border-bottom-color: var(--color-accent-hi); }

/* ===================== SECTIONS (credit-roll grid) ===================== */
main { border-top: 1px solid var(--rule); }

.reel {
  display: grid; grid-template-columns: minmax(9rem, 1fr) 3.4fr; gap: 4rem;
  padding: 8rem var(--gutter);
  border-bottom: 1px solid var(--rule);
}
.reel--panel { background-color: var(--color-panel); }
.js .reel { opacity: 0; transform: translateY(20px); transition: opacity 1.2s ease, transform 1.2s ease; }
.js .reel.is-visible { opacity: 1; transform: none; }

.reel__head { display: flex; flex-direction: column; gap: 0.6rem; }
.reel__num {
  font-family: 'Courier New', Courier, monospace; font-weight: 700; font-size: 0.95rem;
  color: var(--color-accent); letter-spacing: 0.18em;
}
.reel__label {
  font-family: 'Courier New', Courier, monospace; font-size: 0.7rem; font-weight: 400;
  letter-spacing: 0.32em; text-transform: uppercase; color: var(--muted);
}
.reel__body { min-width: 0; }

.lead {
  max-width: 44rem;
  font-family: 'Cormorant Garamond', serif; font-weight: 300; font-style: italic;
  font-size: clamp(1.25rem, 1.9vw, 1.6rem); line-height: 1.55;
  color: var(--color-text);
}
.prose { max-width: 44rem; font-size: 1rem; color: rgba(240, 237, 232, 0.82); }
.prose p + p, .lead + .prose { margin-top: 1.4rem; }

.sub {
  display: flex; align-items: center; gap: 1rem;
  margin: 4rem 0 1.75rem;
  font-size: 0.7rem; font-weight: 500; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--color-accent);
}
.sub::after { content: ""; flex: 1; height: 1px; background: var(--rule); }
.reel__body > .sub:first-child { margin-top: 0; }

/* ===================== FILM (click-to-play Vimeo) ===================== */
.film { position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.film iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.film__play { position: absolute; inset: 0; width: 100%; display: block; }
.film__play img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s ease, opacity .6s ease; opacity: 0.86; }
.film__play::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6), rgba(0,0,0,0) 55%);
}
.film__icon {
  position: absolute; left: 50%; top: 50%; z-index: 1;
  width: 4.5rem; height: 4.5rem; margin: -2.25rem 0 0 -2.25rem;
  display: grid; place-items: center;
  border: 1px solid var(--color-accent); border-radius: 50%;
  background: rgba(13, 13, 13, 0.55); color: var(--color-accent);
  transition: background-color .3s ease, color .3s ease, transform .3s ease;
}
.film__icon svg { margin-left: 4px; }
.film__meta {
  position: absolute; left: 1rem; bottom: 0.9rem; z-index: 1;
  padding: 0.3rem 0.55rem;
  font-family: 'Courier New', Courier, monospace; font-size: 0.7rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--color-text);
  background: rgba(13, 13, 13, 0.72);
}
.film__play:hover img { transform: scale(1.03); opacity: 1; }
.film__play:hover .film__icon,
.film__play:focus-visible .film__icon { background: var(--color-accent); color: #0d0d0d; transform: scale(1.06); }
.film__play:focus-visible { outline-offset: -4px; }

.reel-note { margin-top: 1.25rem; font-size: 0.85rem; color: var(--muted); }

/* Featured films, two up */
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3rem 2.5rem; }
.feature__title {
  margin-top: 1.4rem;
  font-family: 'Cormorant Garamond', serif; font-style: italic; font-weight: 400;
  font-size: clamp(1.5rem, 2.2vw, 1.9rem); line-height: 1.2;
}
.feature__credit {
  margin-top: 0.5rem;
  font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--color-accent);
}
.feature__desc { margin-top: 0.85rem; font-size: 0.95rem; color: rgba(240, 237, 232, 0.78); }

/* Website tiles: deliberately smaller than the films. Image beside text, whole card clickable
   through the title link's stretched ::after (one tab stop, one announcement). */
.sub-note { margin: -0.75rem 0 1.75rem; max-width: 44rem; font-size: 0.9rem; color: var(--muted); }
.sites { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 2.5rem; }
.site {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr); gap: 1.25rem; align-items: start;
}
.site__shot { aspect-ratio: 16 / 10; overflow: hidden; background: #000; border: 1px solid var(--rule); }
.site__shot img { width: 100%; height: 100%; object-fit: cover; object-position: top left; opacity: 0.86; transition: transform 1.2s ease, opacity .6s ease; }
.site__title {
  font-family: 'Cormorant Garamond', serif; font-style: italic; font-weight: 400;
  font-size: 1.3rem; line-height: 1.2;
}
.site__title a::after { content: ""; position: absolute; inset: 0; }
.site .feature__credit { margin-top: 0.4rem; }
.site__desc { margin-top: 0.6rem; font-size: 0.875rem; color: rgba(240, 237, 232, 0.78); }
.site__url { overflow-wrap: anywhere; margin-top: 0.6rem; font-size: 0.75rem; letter-spacing: 0.06em; color: var(--color-accent); }
.site__arrow { display: inline-block; transition: transform .3s ease; }
.site:hover .site__shot img { transform: scale(1.03); opacity: 1; }
.site:hover .site__title a { color: var(--color-accent); }
.site:hover .site__arrow { transform: translate(2px, -2px); }
/* Keyboard focus rings the whole card (falls back to the link's own ring without :has) */
@supports selector(:has(*)) {
  .site:has(.site__title a:focus-visible) { outline: 2px solid var(--color-accent); outline-offset: 6px; }
  .site__title a:focus-visible { outline: none; }
}

/* Frames: stills grid */
.frames { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem 1rem; }
.frame img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; background: #000; }
.frame figcaption { margin-top: 0.45rem; font-size: 0.75rem; color: var(--muted); }
.frame cite { font-style: italic; }

/* ===================== CREDITS (dotted leaders) ===================== */
.credits { list-style: none; display: flex; flex-direction: column; gap: 1.35rem; max-width: 60rem; }
.credits li { display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; gap: 1rem; }
.credit__title { font-family: 'Cormorant Garamond', serif; font-style: italic; font-weight: 400; font-size: 1.3rem; line-height: 1.25; }
.credit__note { display: block; margin-top: 0.15rem; font-family: 'Inter', sans-serif; font-style: normal; font-size: 0.8rem; font-weight: 300; color: var(--muted); }
.credit__leader { border-bottom: 1px dotted var(--rule); transform: translateY(-5px); min-width: 1.5rem; }
.credit__role { text-align: right; font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; }
.credit__year { display: block; margin-top: 0.25rem; font-size: 0.66rem; font-weight: 400; letter-spacing: 0.18em; font-variant-numeric: tabular-nums; color: var(--color-accent); }
.credit__year { white-space: nowrap; }
.credit__watch { white-space: nowrap; }
/* An honour, not a client: a small gold tag beside the title so it stands apart from the note line */
.credit__badge {
  display: inline-block; vertical-align: 0.3em; margin-left: 0.5rem;
  padding: 0.22rem 0.55rem 0.2rem;
  border: 1px solid rgba(201, 168, 76, 0.6); border-radius: 2px;
  font-family: 'Inter', sans-serif; font-style: normal; font-weight: 500;
  font-size: 0.58rem; line-height: 1.2; letter-spacing: 0.2em; text-transform: uppercase; white-space: nowrap;
  color: var(--color-accent);
}

/* Camera work for hire: deliberately plainer than the credit roll so it doesn't read as formal credits */
.also { list-style: none; display: flex; flex-direction: column; gap: 0.9rem; max-width: 60rem; }
.also li { font-size: 0.92rem; color: rgba(240, 237, 232, 0.78); padding-left: 1.1rem; position: relative; }
.also li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 0.45rem; height: 1px; background: var(--color-accent); }
.also b { font-weight: 500; color: var(--color-text); }
.also a { white-space: nowrap; } /* keep each linked title whole */
.also__meta { display: inline-block; margin-left: 0.5rem; font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--color-accent); }

/* ===================== ABOUT ===================== */
/* About: headshot beside the bio; Then / Now pair below (equal heights: 16:9 next to 2:3) */
.about-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(12rem, 17rem); gap: 2.5rem; align-items: start; }
.about-intro .portrait { order: 2; margin: 0; }
.portrait img { width: 100%; height: auto; display: block; border: 1px solid var(--rule); }
.then-now { display: grid; grid-template-columns: minmax(0, 2.667fr) minmax(0, 1fr); gap: 1rem; margin-top: 3rem; max-width: 60rem; }
.then-now figure { margin: 0; }
.then-now img { width: 100%; height: auto; display: block; }
.then-now figcaption { margin-top: 0.5rem; font-size: 0.8rem; color: rgba(240, 237, 232, 0.78); }
.then-now__tag { margin-right: 0.4rem; font-size: 0.62rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--color-accent); }
.then-now__credit { display: block; margin-top: 0.2rem; font-size: 0.7rem; color: var(--muted); }

.onset { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1.4rem 2.5rem; max-width: 60rem; }
.onset div { border-top: 1px solid var(--rule); padding-top: 1rem; }
.onset dt { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 1.3rem; font-weight: 400; color: var(--color-accent); }
.onset dd { margin-top: 0.25rem; font-size: 0.92rem; color: rgba(240, 237, 232, 0.8); }

.hire {
  max-width: 60rem; padding: 2rem 2.25rem;
  border: 1px solid var(--rule); border-left: 2px solid var(--color-accent);
  background: rgba(240, 237, 232, 0.02);
}
.hire p { font-size: 0.98rem; color: rgba(240, 237, 232, 0.85); }
.hire p + p { margin-top: 0.9rem; }
.hire .hire__quiet { color: var(--muted); font-size: 0.9rem; }

.actions { display: flex; flex-wrap: wrap; gap: 1rem 1.25rem; margin-top: 2.5rem; }

/* ===================== CONTACT ===================== */
.contact__email {
  display: inline-block; margin-top: 2rem;
  font-family: 'Cinzel', 'Cormorant Garamond', serif; font-weight: 500;
  font-size: clamp(1.15rem, 3.4vw, 2.6rem); line-height: 1.2; letter-spacing: 0.04em;
  color: var(--color-accent);
  overflow-wrap: anywhere;
  transition: color .3s ease;
}
.contact__email .arrow { display: inline-block; margin-left: 0.4rem; transition: transform .3s ease; }
.contact__email:hover { color: var(--color-accent-hi); }
.contact__email:hover .arrow { transform: translateX(6px); }
.contact__more { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; font-size: 0.9rem; color: var(--muted); }

/* ===================== CLOSING ===================== */
.closing { text-align: center; padding: 11rem var(--gutter); border-bottom: 1px solid var(--rule); }
.js .closing { opacity: 0; transform: translateY(20px); transition: opacity 1.4s ease, transform 1.4s ease; }
.js .closing.is-visible { opacity: 1; transform: none; }
.closing__rule { width: 1px; height: 4rem; background: var(--color-accent); margin: 0 auto 3rem; opacity: 0.7; }
.closing__question {
  font-family: 'Cormorant Garamond', serif; font-style: italic; font-weight: 300;
  font-size: clamp(1.58rem, 3.5vw, 2.8rem); line-height: 1.3;
}
.closing__fin { margin-top: 4rem; font-size: 0.62rem; letter-spacing: 0.5em; text-transform: uppercase; color: var(--color-accent); opacity: 0.85; }

/* ===================== FOOTER ===================== */
footer { padding: 5rem var(--gutter) 3rem; display: flex; flex-direction: column; align-items: center; gap: 1.6rem; }
footer p, footer a {
  font-family: 'Courier New', Courier, monospace; font-size: 0.68rem; font-weight: 300;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); text-align: center;
}
.footer__linkedin { display: inline-flex; align-items: center; justify-content: center; transition: color .4s ease, transform .4s ease; }
.footer__linkedin:hover { color: var(--color-accent); transform: translateY(-2px); }
.footer__linkedin svg { display: block; }
.footer__studios, .footer__copy, .footer__legal, .footer__credit { color: var(--whisper); font-size: 0.6rem; letter-spacing: 0.32em; }
.footer__legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.25rem 0; }
.footer__studios a, .footer__legal a, .footer__credit a { color: inherit; font-size: inherit; letter-spacing: inherit; transition: color .4s ease; }
.footer__studios a:hover, .footer__legal a:hover, .footer__credit a:hover { color: var(--color-accent); }
.footer__legal span { margin: 0 0.5rem; opacity: 0.6; }
.mobile-break { display: none; }

/* ===================== RESUME PAGE ===================== */
.page-head { padding: calc(var(--nav-h) + 5rem) var(--gutter) 4rem; border-bottom: 1px solid var(--rule); }
.page-head__eyebrow { font-size: 0.68rem; font-weight: 500; letter-spacing: 0.36em; text-transform: uppercase; color: var(--color-accent); }
.page-head h1 {
  margin-top: 1.25rem;
  font-family: 'Cormorant Garamond', serif; font-weight: 300;
  font-size: clamp(2.3rem, 6vw, 4.5rem); line-height: 1; letter-spacing: 0.1em; text-transform: uppercase;
}
.page-head h1 .mid { color: var(--color-accent); font-style: italic; font-weight: 400; }
.page-head__tag { margin-top: 1.25rem; font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: clamp(1.2rem, 1.8vw, 1.5rem); }
.page-head__lede { margin-top: 0.6rem; max-width: 40rem; font-size: 0.98rem; color: rgba(240, 237, 232, 0.8); }
.page-head__meta { margin-top: 0.75rem; font-size: 0.9rem; color: var(--muted); }
.page-head__meta a { color: var(--color-text); border-bottom: 1px solid var(--rule); }
.page-head__meta a:hover { color: var(--color-accent); border-bottom-color: var(--color-accent); }

.resume { display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr); gap: 5rem; padding: 5rem var(--gutter) 7rem; }
.resume h2 { margin-bottom: 1.75rem; }
.resume h2.sub { margin-top: 0; }
.resume section + section { margin-top: 3.75rem; }
.summary { font-family: 'Cormorant Garamond', serif; font-style: italic; font-weight: 300; font-size: clamp(1.2rem, 1.7vw, 1.45rem); line-height: 1.55; }

.job + .job { margin-top: 2.5rem; }
.job__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0.25rem 1rem; }
.job h3 { font-size: 1.05rem; font-weight: 500; }
.job__dates { font-size: 0.78rem; font-weight: 400; letter-spacing: 0.08em; font-variant-numeric: tabular-nums; color: var(--color-accent); white-space: nowrap; }
.job__org { margin-top: 0.15rem; font-size: 0.92rem; color: var(--muted); }
.job ul { list-style: none; margin-top: 0.9rem; display: flex; flex-direction: column; gap: 0.5rem; }
.job li { position: relative; padding-left: 1.25rem; font-size: 0.95rem; color: rgba(240, 237, 232, 0.85); }
.job li::before { content: "–"; position: absolute; left: 0; color: var(--color-accent); }
/* "What I Bring": the employer-facing strengths, same voice as the home page's On Set list */
.strengths { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.6rem 2.5rem; }
.strengths div { border-top: 1px solid var(--rule); padding-top: 1rem; }
.strengths dt { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 1.3rem; font-weight: 400; color: var(--color-accent); }
.strengths dd { margin-top: 0.35rem; font-size: 0.95rem; color: rgba(240, 237, 232, 0.85); }
.past { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--rule); font-size: 0.88rem; color: var(--muted); }
.past strong { font-weight: 500; color: var(--color-text); }

.side-list { list-style: none; display: flex; flex-direction: column; gap: 0.9rem; }
.side-list li { font-size: 0.95rem; line-height: 1.45; }
.side-list .quiet { display: block; font-size: 0.85rem; color: var(--muted); }
.skills { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem 1.25rem; font-size: 0.92rem; }

.downloads { display: flex; flex-direction: column; gap: 0.9rem; }
.downloads .btn { justify-content: space-between; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1100px) {
  .resume { grid-template-columns: 1fr; gap: 3.75rem; }
  .sites { grid-template-columns: 1fr; gap: 2rem; max-width: 44rem; }
  .frames { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .frames .frame:first-child { grid-column: 1 / -1; }
  .site { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr); }
}

@media (max-width: 820px) {
  .about-intro { grid-template-columns: minmax(0, 1fr) minmax(9rem, 13rem); gap: 1.75rem; }
  :root { --gutter: 7vw; }
  .reel { grid-template-columns: 1fr; gap: 2.25rem; padding: 5.5rem var(--gutter); }
  .features { grid-template-columns: 1fr; }
  .hero { --bar: max(4.2vh, var(--nav-h)); }
  .hero__bg { background-position: 10% center; }
  .hero__inner { bottom: calc(var(--bar) + 6.8vh); }
  .hero__name { font-size: clamp(2.3rem, 12.5vw, 3.6rem); letter-spacing: 0.06em; }
  .hero__overline { margin-bottom: 1rem; }
  .hero__overline::before { width: 2rem; }
  .hero__overline span { font-size: 0.6rem; letter-spacing: 0.32em; }
  .hero__roles { letter-spacing: 0.18em; }
  .credits li { grid-template-columns: 1fr; gap: 0.3rem; }
  .credit__leader { display: none; }
  .credit__role { text-align: left; }
  .credit__year { display: inline; margin: 0 0 0 0.6rem; }
  .closing { padding: 8rem var(--gutter); }
  .closing__rule { height: 3rem; margin-bottom: 2rem; }
  .hire { padding: 1.5rem 1.4rem; }
  .mobile-break { display: inline; }
  .page-head { padding-top: calc(var(--nav-h) + 3.5rem); }
}

@media (max-width: 600px) {
  :root { --nav-h: 5.25rem; }
  .nav { flex-direction: column; align-items: flex-start; justify-content: center; gap: 0.1rem; padding-top: 0.6rem; padding-bottom: 0.4rem; }
  .nav__links { gap: 0 1.15rem; }
  .nav__links a { font-size: 0.66rem; letter-spacing: 0.16em; padding: 0.35rem 0; }
  .hero__bar--bottom { height: 4.2vh; } /* two-row nav makes the top bar tall; keep the bottom one slim */
  .hero__inner { bottom: 9vh; }
  .hero__actions .btn { padding: 0.8rem 1.1rem; }
  .prose, .feature__desc, .job li, .hire p { font-size: 0.94rem; }
  .skills { grid-template-columns: 1fr; }
  .strengths { grid-template-columns: 1fr; gap: 1.25rem; }
  .also__meta { display: block; margin: 0.3rem 0 0; }
  .site { grid-template-columns: 7.5rem minmax(0, 1fr); gap: 1rem; }
  .about-intro { grid-template-columns: 1fr; gap: 1.75rem; }
  .about-intro .portrait { order: 0; max-width: 15rem; }
  .then-now { grid-template-columns: 1fr; gap: 1.75rem; }
  .then-now figure + figure { max-width: 62%; }
}

@media (max-width: 479px) {
  /* too narrow for side-by-side: shot above text, still smaller than the films */
  .site { grid-template-columns: 1fr; gap: 0.9rem; }
  .site__shot { width: 72%; }
  .credit__badge { display: table; margin: 0.4rem 0 0.15rem; }
  .credit__role { white-space: nowrap; }
  .credit__year { display: block; margin: 0.25rem 0 0; }
}

@media (max-width: 359px) {
  .nav__links { gap: 0 0.8rem; }
  .nav__links a { letter-spacing: 0.1em; }
}

/* ===================== REDUCED MOTION ===================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important; scroll-behavior: auto !important;
  }
  .js .hero__inner, .js .reel, .js .closing { opacity: 1; transform: none; }
}

/* ===================== PRINT (the /resume page) ===================== */
@media print {
  :root { --color-text: #111; --muted: #555; --rule: #ccc; --color-accent: #6b5410; }
  body { background: #fff; color: #111; }
  .nav, .skip-link, footer, .downloads, .no-print { display: none !important; }
  .page-head { padding: 0 0 1.2rem; }
  .resume { padding: 1.5rem 0 0; gap: 2rem; grid-template-columns: 1fr; }
  .job li, .prose, .hire p, .side-list li, .strengths dd, .page-head__lede { color: #111; }
  a { color: #111; }
}
