/* joshuagarity.com: warm light ground that deepens to stone as you scroll,
   pill navigation, rounded cinematic frames, a single red for the premiere. */
:root {
  color-scheme: light;
  --stone: #eeebe4;
  --bg: #fbfaf7;
  --paper: #f8f6f1;
  --card: #ffffff;
  --ink: #1b1815;
  --muted: #6e665c;
  --line: #d8d2c6;
  --signal: #1f3dff;
  --film: #ff2e3b;
  --hero: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --display: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --wrap: 82rem;
  --r: 28px;
  --scope: 1920 / 720; /* 2.66:1 anamorphic frame */
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.0625rem/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 6px; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -.025em; line-height: 1.02; margin: 0; text-wrap: balance; }
p, figure, ol, ul, dl, dd { margin: 0; }
ol, ul { padding: 0; list-style: none; }
.light { font-weight: 300; }
em.s { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: 0; }
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -100px; z-index: 20; background: var(--ink); color: var(--paper); padding: .6rem 1rem; border-radius: 999px; font-size: .85rem; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
@media (min-width: 700px) { .wrap { padding-left: max(28px, env(safe-area-inset-left, 0px)); padding-right: max(28px, env(safe-area-inset-right, 0px)); } }

/* pills & tags */
.pill { display: inline-flex; align-items: center; gap: .45rem; font: 600 .85rem/1.2 var(--body); text-decoration: none; padding: .75rem 1.25rem; border-radius: 999px; background: var(--paper); color: var(--ink); white-space: nowrap; transition: transform .2s, background .2s; }
.pill:hover { transform: translateY(-2px); }
.pill.go { background: var(--signal); color: #fff; }
.pill.dark { background: var(--ink); color: var(--paper); }
.pill.outline { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px currentColor; }
.reel .pill.outline { color: #fff; }
.reel .pill.outline:hover { background: rgba(255,255,255,.12); }
.cap-actions { flex: none; justify-content: flex-end; }
.tag { display: inline-block; font-size: .72rem; font-weight: 600; letter-spacing: .02em; padding: .3rem .7rem; border-radius: 999px; background: var(--stone); color: var(--ink); }
.kicker { font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.row, .center-row { display: flex; flex-wrap: wrap; gap: .6rem; }
.center-row { justify-content: center; margin-top: clamp(2rem, 4vw, 3rem); }

/* header */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--bg); }
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 6; background: var(--bg); }
.site-header .wrap { display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding-block: .9rem; }
.mark { font-family: var(--display); font-weight: 800; font-size: 1.1rem; letter-spacing: -.03em; text-decoration: none; background: var(--paper); padding: .6rem 1.05rem; border-radius: 999px; white-space: nowrap; }
.menu { display: flex; gap: .15rem; background: var(--paper); padding: .3rem; border-radius: 999px; }
.menu a { font-size: .86rem; font-weight: 500; text-decoration: none; padding: .5rem .95rem; border-radius: 999px; white-space: nowrap; }
.menu a:hover { background: var(--stone); }
.menu a[aria-current="page"] { background: var(--ink); color: var(--paper); }

/* hero */
.hero { padding-block: clamp(2.5rem, 6vw, 5rem) 0; text-align: center; }
.hero h1 { font-family: var(--hero); font-weight: 500; font-size: clamp(3rem, 8.5vw, 7.25rem); line-height: 1; letter-spacing: -.045em; max-width: 13ch; margin: 0 auto; }
.hero h1 .light { display: block; font-weight: 300; color: var(--muted); }
.hero .kicker + h1 { margin-top: 1rem; }
.hero .intro { margin: 1.25rem auto 0; max-width: 36rem; color: var(--muted); font-size: 1.2rem; }
.hero .intro a { color: var(--ink); }
.hero-links { margin-top: 1.25rem; display: flex; justify-content: center; }

.premiere { display: inline-flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: .6rem 1rem; margin-top: clamp(1.75rem, 4vw, 2.5rem); font-size: 1rem; font-weight: 500; text-decoration: none; background: #fff; color: var(--ink); padding: .45rem .45rem .45rem 1.3rem; border-radius: 999px; box-shadow: 0 10px 30px -18px color-mix(in srgb, var(--film) 55%, transparent); transition: transform .2s, box-shadow .2s; }
a.premiere:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -16px color-mix(in srgb, var(--film) 65%, transparent); }
p.premiere { padding-right: 1.3rem; }
.dot { display: inline-block; width: .7rem; height: .7rem; border-radius: 50%; background: var(--film); animation: pulse 2s ease-out infinite; flex: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--film) 60%, transparent); } 100% { box-shadow: 0 0 0 12px transparent; } }
.pm-txt .dot { vertical-align: middle; margin: -3px .7rem 0 0; }
.pm-txt b { color: var(--film); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: .85rem; margin-right: .5rem; }
.pm-go { background: var(--film); color: #fff; font-weight: 600; font-size: .9rem; padding: .6rem 1.1rem; border-radius: 999px; }
.pm-prog { color: var(--muted); font-size: .95rem; }

/* cinematic frame */
.reel { position: relative; margin-top: clamp(2rem, 5vw, 3.5rem); border-radius: var(--r); overflow: hidden; background: var(--ink); text-align: left; }
.reel img { width: 100%; aspect-ratio: var(--scope); object-fit: cover; }
.reel::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: repeating-linear-gradient(90deg, transparent 0 calc(12.5% - 1px), rgba(255,255,255,.12) calc(12.5% - 1px) 12.5%); }
.reel .cap { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; align-items: end; gap: 1rem; padding: clamp(.9rem, 2.5vw, 1.75rem); color: #fff; }
.byline { display: grid; gap: .35rem; }
.byline em { font-family: var(--serif); font-size: clamp(1.1rem, 2vw, 1.6rem); line-height: 1.15; }
.byline small { font-size: clamp(.66rem, 1.1vw, .78rem); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.85); }

/* THR feature */
.thr { margin-top: 1.25rem; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; scroll-margin-top: 90px; }
.thr-side { background: linear-gradient(180deg, rgba(10,10,12,.55), rgba(10,10,12,.25) 45%, rgba(10,10,12,.7)), url("/img/film/the-space-between/still-04-800.webp") 50% 30% / cover no-repeat, var(--ink); min-height: 16rem; color: var(--paper); padding: clamp(1.5rem, 4vw, 2.75rem); display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; }
.thr-mast { width: 100%; max-width: 18rem; filter: brightness(0) invert(1); }
.thr-kick { font-size: .95rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #d9ccb6; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.18); }
.thr-main { padding: clamp(1.5rem, 4vw, 2.75rem); display: grid; gap: 1rem; align-content: center; min-width: 0; }
.thr-main h2 { font-family: var(--hero); font-weight: 700; font-size: clamp(1.6rem, 3.2vw, 2.5rem); line-height: 1.08; letter-spacing: -.02em; }
.thr-main p { color: var(--muted); max-width: 38rem; }
.thr-date { font-size: .85rem; }
.thr .pill:not(.go) { background: var(--stone); }

/* marquee */
.marquee { overflow: hidden; margin-top: 2.5rem; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.track { display: flex; gap: .75rem; width: max-content; animation: slide 45s linear infinite; }
.track span { font-family: var(--display); font-weight: 500; font-size: 1.05rem; letter-spacing: -.01em; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 1.1rem 1.6rem; white-space: nowrap; }
.track span b { font-weight: 800; }
@keyframes slide { to { transform: translateX(-50%); } }

/* sections */
main > section { padding-block: clamp(4.5rem, 10vw, 8rem); }
main > .hero + section, main > .wrap + section { padding-top: clamp(3.5rem, 8vw, 6rem); }
.head { text-align: center; display: grid; justify-items: center; gap: 1rem; margin-bottom: clamp(2.25rem, 5vw, 3.75rem); }
.head h2 { font-size: clamp(2.5rem, 6.5vw, 5rem); }
.head p { color: var(--muted); max-width: 36rem; }
.head.left { text-align: left; justify-items: start; margin-bottom: 1.5rem; }
.head.left h2 { font-family: var(--hero); font-weight: 500; font-size: clamp(2rem, 4vw, 3rem); }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(1.5rem, 3.5vw, 2.5rem); }

/* about */
.about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.portrait { border-radius: var(--r); overflow: hidden; aspect-ratio: 1; background: var(--stone); }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.about .txt { display: grid; gap: 1.1rem; min-width: 0; max-width: 40rem; }
.about h1, .about h2 { font-family: var(--hero); font-weight: 500; font-size: clamp(2.5rem, 5.5vw, 4.5rem); letter-spacing: -.04em; }
.about h1 .light, .about h2 .light { color: var(--muted); }
.about h1 .light { display: block; }
.about .txt p { color: var(--muted); }
.about .txt p.big, .logline .big { font-family: var(--hero); font-weight: 400; font-size: clamp(1.25rem, 2vw, 1.6rem); line-height: 1.45; letter-spacing: -.012em; color: var(--ink); }
.about .txt p em { color: var(--ink); }
.about-page { padding-top: clamp(2.5rem, 6vw, 5rem); align-items: start; }
.about-page .portrait { position: sticky; top: 96px; }
.facts { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .5rem; }
.facts span { background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: .5rem 1rem; font-size: .9rem; color: var(--ink); }
.facts b { font-family: var(--display); font-weight: 800; margin-right: .4rem; }
.timeline { padding-block: .5rem; }
.timeline li { display: grid; grid-template-columns: 5rem minmax(0, 1fr); gap: 1rem; padding: 1.1rem 0; border-top: 1px solid var(--line); }
.timeline li:first-child { border-top: 0; }
.tl-year { font-family: var(--display); font-weight: 800; }

/* ventures */
.ventures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.venture { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 10px; display: grid; align-content: start; text-decoration: none; transition: transform .25s; scroll-margin-top: 96px; }
.venture:hover { transform: translateY(-4px); }
.venture .top { position: relative; border-radius: calc(var(--r) - 8px); overflow: hidden; aspect-ratio: 4 / 3; background: var(--ink); display: grid; place-items: center; }
.venture .top img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.venture .top img.bg.full { opacity: 1; }
.venture .top img.logo { position: relative; width: 70%; height: auto; }
.venture .txt { padding: 1.25rem 1rem 1rem; display: grid; gap: .5rem; }
.venture h3 { font-size: 1.5rem; }
.venture .txt p { color: var(--muted); font-size: .95rem; }
.venture .role { font-family: var(--serif); font-style: italic; font-size: 1.1rem; }
.venture .go, .shelf .go { font-size: .8rem; font-weight: 600; color: var(--signal); }

/* games shelf */
.shelf { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem 1rem; }
.shelf .game { text-decoration: none; color: inherit; min-width: 0; }
.shelf a.game img { transition: transform .25s; }
.shelf a.game:hover img { transform: translateY(-4px); }
.shelf figure { display: grid; gap: .6rem; }
.shelf img { border-radius: 18px; aspect-ratio: 512 / 318; object-fit: cover; width: 100%; }
.shelf figcaption { font-size: .9rem; color: var(--muted); }
.shelf figcaption b { display: block; color: var(--ink); font-weight: 600; font-size: 1rem; }

/* contact */
.contact { background: var(--ink); color: var(--paper); border-radius: calc(var(--r) + 8px); padding: clamp(3rem, 8vw, 6rem) clamp(1.25rem, 5vw, 4rem); text-align: center; display: grid; justify-items: center; gap: 1.25rem; }
.contact h1, .contact h2 { font-size: clamp(3rem, 9vw, 7rem); }
.contact h1 em.s, .contact h2 em.s { color: var(--film); }
.contact p { color: #b5ada2; max-width: 34rem; }
.contact .contact-email { font-family: var(--hero); font-size: clamp(1.4rem, 3.4vw, 2.4rem); letter-spacing: -.02em; color: var(--paper); }
.contact .contact-email a { text-decoration: none; border-bottom: 1px solid rgba(248,246,241,.35); }
.contact .contact-email a:hover { border-color: var(--paper); }
.contact .row { justify-content: center; margin-top: .5rem; }
.contact .pill { background: #2c2824; color: var(--paper); }
.contact .pill.go { background: var(--signal); color: #fff; }
.contact-page { padding-top: clamp(1.5rem, 4vw, 3rem); }

/* film index */
.film-entry .reel { margin-top: 0; }
.entry-meta { display: flex; justify-content: space-between; align-items: center; gap: 1.25rem 2rem; flex-wrap: wrap; margin-top: 1.5rem; }
.entry-meta h2 { font-family: var(--hero); font-weight: 500; font-size: clamp(2rem, 4.5vw, 3.5rem); letter-spacing: -.04em; }
.entry-meta h2 a { text-decoration: none; }
.entry-meta .premiere { margin-top: 0; }
.dev { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
.dev h3 { margin-top: .8rem; font-size: 1.6rem; }

/* film page */
.logline { text-align: center; }
.logline .big { max-width: 46rem; margin: 0 auto; }
.logline .facts { justify-content: center; margin-top: 2rem; }
.teaser { position: relative; aspect-ratio: 16 / 9; background: var(--ink); border-radius: var(--r); overflow: hidden; }
.teaser-poster { position: absolute; inset: 0; display: grid; place-items: center; }
.teaser-poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: .8; transition: opacity .3s; }
.teaser-poster:hover img { opacity: .65; }
.teaser-play { position: relative; z-index: 1; font-size: .95rem; padding: .9rem 1.5rem; }
.teaser iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.fest-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1rem; }
.fest { display: grid; gap: .8rem; align-content: start; }
.fest h3 { font-family: var(--hero); font-weight: 600; font-size: clamp(1.5rem, 2.6vw, 2.1rem); letter-spacing: -.02em; }
.fest-honour { display: flex; align-items: center; gap: .6rem; color: var(--film); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: .85rem; }
.thr-mini img { width: 220px; }
.thr-mini p:not(.row) { font-family: var(--hero); font-weight: 600; font-size: 1.25rem; line-height: 1.25; letter-spacing: -.01em; }
.two-panels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.two-panels .panel { display: grid; gap: 1rem; align-content: start; }
.two-panels .panel p { color: var(--muted); }
.two-panels .panel p.serif { font-family: var(--hero); font-size: 1.15rem; line-height: 1.55; letter-spacing: -.005em; color: var(--ink); }
.two-panels .panel em { color: var(--ink); }
.tag + p, .panel .tag { justify-self: start; }
.stills { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.still { border-radius: 20px; overflow: hidden; background: var(--ink); }
.still:first-child { grid-column: 1 / -1; border-radius: var(--r); }
.still:last-child:nth-child(even) { grid-column: 1 / -1; }
.panel .pill:not(.go):not(.dark) { background: var(--stone); }
.still img { width: 100%; aspect-ratio: var(--scope); object-fit: cover; }
.credits-grid { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.poster img { border-radius: 20px; width: 100%; }
.credits div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .25rem 1rem; padding: 1rem 0; border-top: 1px solid var(--line); }
.credits div:first-child { border-top: 0; padding-top: 0; }
.credits div:last-child { padding-bottom: 0; }
.credits dt { color: var(--muted); font-size: .95rem; }
.credits dd { font-weight: 600; }

/* press */
.press-list { display: grid; gap: .6rem; }
.press-list a { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 5fr) minmax(0, 2.4fr); gap: .4rem 1.5rem; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 1.15rem 1.4rem; text-decoration: none; transition: transform .2s, background .2s; }
.press-list a:hover { transform: translateY(-2px); background: var(--card); }
.pl-pub { font-family: var(--display); font-weight: 800; font-size: .95rem; letter-spacing: -.01em; }
.pl-head { font-family: var(--hero); font-weight: 500; font-size: clamp(1.02rem, 1.4vw, 1.2rem); line-height: 1.3; letter-spacing: -.01em; }
.pl-meta { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: .4rem .6rem; font-size: .85rem; color: var(--muted); }
.pl-film { font-family: var(--serif); font-style: italic; font-size: 1rem; color: var(--ink); }
.press-year { padding-block: clamp(2rem, 5vw, 3.5rem) !important; }

footer .wrap { display: flex; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; padding-block: 2rem 2.5rem; font-size: .85rem; color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; }
footer a { text-decoration: none; }
footer a:hover { color: var(--ink); }

/* responsive */
@media (max-width: 960px) {
  .site-header .wrap { flex-wrap: wrap; row-gap: .6rem; }
  .menu { order: 3; width: 100%; overflow-x: auto; scrollbar-width: none; justify-content: space-between; }
  .menu::-webkit-scrollbar { display: none; }
  .menu a { padding: .55rem .8rem; }
  .ventures { grid-template-columns: 1fr 1fr; }
  .press-list a { grid-template-columns: minmax(0, 1fr); }
  .pl-meta { justify-content: flex-start; }
}
@media (max-width: 700px) {
  .thr { grid-template-columns: 1fr; }
  .premiere { border-radius: 24px; padding: 1rem; }
  p.premiere { padding: 1rem; }
  .reel .cap { position: static; background: var(--ink); flex-direction: column; align-items: flex-start; }
  .reel::before { bottom: auto; aspect-ratio: var(--scope); }
  .about, .ventures, .two-panels, .credits-grid { grid-template-columns: 1fr; }
  .about-page .portrait { position: static; }
  .portrait { max-width: 24rem; }
  .poster { max-width: 260px; }
  .stills { grid-template-columns: 1fr; }
  .still, .still:first-child { border-radius: 16px; }
  .shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem .75rem; }
  .credits div { grid-template-columns: 1fr; }
  .menu a { font-size: .82rem; padding: .5rem .65rem; }
  .mark { font-size: 1rem; }
  .hello { padding: .65rem 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .dot { box-shadow: 0 0 0 4px color-mix(in srgb, var(--film) 30%, transparent); }
  .track { flex-wrap: wrap; width: auto; justify-content: center; }
  .track [aria-hidden] { display: none; }
  .marquee { mask-image: none; -webkit-mask-image: none; }
}

/* Two-word headlines: bold sans + serif italic, one line (matches "Let's make something.") */
.hero h1.duo { font-family: var(--display); font-weight: 700; letter-spacing: -.03em; max-width: none; }
.hero h1.duo em.s { font-weight: 400; }
