/* bengarvin.com — one stylesheet. Simple on purpose: the photographs do the work. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font-body); font-size: var(--fs-2); line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-color: var(--yellow); text-decoration-thickness: 2px; text-underline-offset: .2em; }
a:hover { color: var(--yellow-text); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.15; margin: 0 0 var(--s-4); font-variation-settings: 'opsz' 72, 'SOFT' 50; }
h1 { font-size: var(--fs-5); }
h2 { font-size: var(--fs-4); }
h3 { font-size: var(--fs-3); }
p { margin: 0 0 var(--s-4); }
.wrap { width: min(100% - var(--gutter) * 2, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--s-4); top: var(--s-4); background: var(--ink); color: #fff; padding: var(--s-2) var(--s-4); z-index: 99; }
.eyebrow { font-size: var(--fs-0); letter-spacing: .16em; text-transform: uppercase; color: var(--mute); font-weight: 600; margin-bottom: var(--s-3); }
.lede { font-size: var(--fs-3); line-height: 1.45; color: var(--ink-2); max-width: 46ch; }
.more { font-weight: 600; text-decoration: none; white-space: nowrap; }
.more:hover { text-decoration: underline; }
.mt-0 { margin-top: 0; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .5em; font: inherit; font-size: var(--fs-1); font-weight: 600; padding: .7em 1.3em; border-radius: var(--r-pill); border: 1.5px solid var(--ink); background: transparent; color: var(--ink); text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.btn:hover { background: var(--ink); color: #fff; }
.btn-primary { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.btn-primary:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.btn-ghost { border-color: var(--line); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-5); }

/* Header */
.site-header { padding-block: var(--s-5); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--s-5); }
.wordmark { white-space: nowrap; font-family: var(--font-display); font-style: italic; font-size: 1.6rem; text-decoration: none; line-height: 1; font-variation-settings: 'opsz' 72, 'SOFT' 100; }
.wordmark:hover { color: var(--ink); }
.nav { display: flex; align-items: center; gap: var(--s-6); }
.nav a { text-decoration: none; font-weight: 600; font-size: var(--fs-1); }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; text-underline-offset: .35em; }
.nav .btn { padding: .55em 1.1em; white-space: nowrap; }
@media (max-width: 560px) {
  .nav { gap: var(--s-3); font-size: .95rem; }
  .site-header .wrap { gap: var(--s-3); }
  .nav .btn { padding: .45em .9em; }
  .wordmark { font-size: 1.35rem; }
}

/* Sections */
.section { padding-block: var(--s-8); }
.section--band { background: var(--paper-2); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: var(--s-5); margin-bottom: var(--s-6); }
.section-head h2 { margin: 0; }
.page-head { padding-block: var(--s-7) var(--s-6); }
.page-head h1 { margin-bottom: var(--s-3); }

/* ---------- HOME: the one big window ---------- */
.intro { padding-block: var(--s-6) var(--s-6); }
.intro h1 { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.4rem); max-width: 30ch; margin: 0; }
.intro h1 em { font-style: italic; }

.window { position: relative; background: var(--screen); }
.sheet { display: grid; grid-template-columns: repeat(9, 1fr); gap: 3px; background: var(--paper); }
.sheet img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }
.sheet-play { position: absolute; inset: 0; display: grid; place-items: center; background: transparent; border: 0; cursor: pointer; padding: 0; }
.sheet-play span { display: inline-flex; align-items: center; gap: .6em; background: rgba(255,255,255,.94); color: var(--ink); font: inherit; font-weight: 700; font-size: var(--fs-2); padding: .9em 1.6em; border-radius: var(--r-pill); box-shadow: 0 8px 30px rgba(0,0,0,.25); transition: transform .2s, background .2s; }
.sheet-play svg { width: 1.1em; height: 1.1em; }
.sheet-play:hover span, .sheet-play:focus-visible span { background: var(--yellow); transform: scale(1.04); }
.screen { display: none; position: relative; width: 100%; max-height: 72vh; aspect-ratio: 16 / 9; margin-inline: auto; }
.screen video, .screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: var(--screen); }
.screen .slide-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: var(--s-6) var(--s-5) var(--s-4); color: #fff; font-size: var(--fs-1); background: linear-gradient(transparent, rgba(0,0,0,.7)); pointer-events: none; }
.screen .slide-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); cursor: pointer; display: grid; place-items: center; }
.screen .slide-nav.prev { left: var(--s-4); } .screen .slide-nav.next { right: var(--s-4); }
.screen .slide-nav svg { width: 22px; height: 22px; }
.window.is-playing { background: var(--screen); }
.window.is-playing .sheet, .window.is-playing .sheet-play { display: none; }
.window.is-playing .screen { display: block; }
.close-screen { position: absolute; top: var(--s-4); right: var(--s-4); z-index: 3; display: none; align-items: center; gap: .4em; background: rgba(255,255,255,.92); color: var(--ink); border: 0; border-radius: var(--r-pill); padding: .5em 1em; font: inherit; font-size: var(--fs-0); font-weight: 700; cursor: pointer; }
.window.is-playing .close-screen { display: inline-flex; }

.picker { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-3); padding: var(--s-5) var(--gutter) 0; }
.picker button { display: inline-flex; align-items: center; gap: .55em; font: inherit; font-weight: 600; font-size: var(--fs-1); padding: .75em 1.4em; border-radius: var(--r-pill); border: 1.5px solid var(--ink); background: #fff; color: var(--ink); cursor: pointer; transition: background .15s, border-color .15s; }
.picker button svg { width: .95em; height: .95em; }
.picker button:hover { background: var(--paper-2); }
.picker button[aria-pressed="true"] { background: var(--yellow); border-color: var(--yellow); }
.picker-hint { text-align: center; color: var(--mute); font-size: var(--fs-0); margin: var(--s-3) 0 0; }

@media (max-width: 760px) {
  .sheet { grid-template-columns: repeat(3, 1fr); }
  .sheet img { aspect-ratio: 1; }
  .picker { gap: var(--s-2); }
  .picker button { padding: .55em 1em; }
}

/* Names line */
.names { text-align: center; color: var(--ink-2); font-size: var(--fs-1); line-height: 1.9; max-width: 70ch; margin-inline: auto; }
.names b { display: block; font-size: var(--fs-0); letter-spacing: .16em; text-transform: uppercase; color: var(--mute); margin-bottom: var(--s-2); }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-7) var(--s-5); }
.cards.four { grid-template-columns: repeat(4, 1fr); gap: var(--s-5); }
.card { display: block; text-decoration: none; color: inherit; }
.card .ph { aspect-ratio: 3 / 2; overflow: hidden; background: var(--paper-2); }
.card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .ph img { transform: scale(1.03); }
.card .kicker { display: block; font-size: var(--fs-0); letter-spacing: .08em; text-transform: uppercase; color: var(--mute); font-weight: 600; margin: var(--s-3) 0 var(--s-1); }
.card h3 { font-size: var(--fs-2); font-family: var(--font-body); font-weight: 600; line-height: 1.35; margin: 0; }
.card:hover h3 { color: var(--yellow-text); }
.card p { font-size: var(--fs-1); color: var(--ink-2); margin: var(--s-2) 0 0; }
.card[hidden] { display: none; }
@media (max-width: 960px) { .cards.four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .cards { grid-template-columns: 1fr; } .cards.four { grid-template-columns: 1fr 1fr; gap: var(--s-5) var(--s-3); } .cards.four .card h3 { font-size: var(--fs-1); } }

/* Tiny Window block */
.tw { display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--s-7); align-items: center; }
.tw img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.tw p { color: var(--ink-2); }
@media (max-width: 860px) { .tw { grid-template-columns: 1fr; gap: var(--s-5); } }

/* Closing contact line */
.hello { text-align: center; }
.hello h2 { margin-bottom: var(--s-3); }
.hello p { color: var(--ink-2); margin-bottom: var(--s-5); }
.hello .btn-row { justify-content: center; }

/* ---------- WORK ---------- */
.filters { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-bottom: var(--s-6); }
.filters button { font: inherit; font-size: var(--fs-1); font-weight: 600; padding: .5em 1.1em; border-radius: var(--r-pill); border: 1.5px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; }
.filters button:hover { border-color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.show-more { display: flex; justify-content: center; margin-top: var(--s-7); }
.show-more[hidden] { display: none; }
.empty { color: var(--mute); }

/* ---------- ABOUT ---------- */
.about-top { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s-8); align-items: start; padding-block: var(--s-6) var(--s-8); }
.about-top .portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.about-top .portrait figcaption { font-size: var(--fs-0); color: var(--mute); margin-top: var(--s-2); }
.prose { max-width: var(--measure); }
.prose h2 { margin-top: var(--s-7); }
.prose h3 { margin-top: var(--s-6); font-size: var(--fs-3); }
.prose > :first-child { margin-top: 0; }
.prose a { font-weight: 600; }
.lists { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-7); }
.lists h3 { font-family: var(--font-body); font-size: var(--fs-0); letter-spacing: .16em; text-transform: uppercase; color: var(--mute); font-weight: 600; }
.lists ul { list-style: none; margin: 0; padding: 0; }
.lists li { padding: .45em 0; border-bottom: 1px solid var(--line); font-size: var(--fs-1); }
.lists li span { display: block; color: var(--mute); font-size: var(--fs-0); }
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5); margin-top: var(--s-6); }
.team img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.team figure { margin: 0; }
.team figcaption { margin-top: var(--s-3); font-size: var(--fs-1); color: var(--ink-2); }
.team figcaption b { display: block; color: var(--ink); }
@media (max-width: 860px) {
  .about-top { grid-template-columns: 1fr; gap: var(--s-6); }
  .lists { grid-template-columns: 1fr; gap: var(--s-6); }
}
@media (max-width: 540px) { .team { grid-template-columns: 1fr 1fr; } }

/* ---------- WORK WITH BEN ---------- */
.contact-simple { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-8); align-items: center; padding-block: var(--s-6) var(--s-9); }
.contact-simple img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: 38% 50%; }
.contact-simple .lines { list-style: none; padding: 0; margin: var(--s-6) 0 0; font-size: var(--fs-3); font-family: var(--font-display); }
.contact-simple .lines li { padding: var(--s-3) 0; border-top: 1px solid var(--line); }
.contact-simple .lines li:last-child { border-bottom: 1px solid var(--line); }
.contact-simple .lines small { display: block; font-family: var(--font-body); font-size: var(--fs-0); letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.contact-simple .lines a { text-decoration: none; }
.contact-simple .note { color: var(--ink-2); font-size: var(--fs-1); margin-top: var(--s-6); }
@media (max-width: 860px) { .contact-simple { grid-template-columns: 1fr; gap: var(--s-6); } }

/* ---------- PROJECT PAGES ---------- */
.project-head { padding-block: var(--s-6) var(--s-5); }
.back { display: inline-block; font-size: var(--fs-1); font-weight: 600; text-decoration: none; color: var(--ink-2); margin-bottom: var(--s-5); }
.project-head .kicker { display: flex; flex-wrap: wrap; gap: .4em 1.2em; font-size: var(--fs-0); letter-spacing: .08em; text-transform: uppercase; color: var(--mute); font-weight: 600; margin-bottom: var(--s-4); }
.project-head h1 { max-width: 24ch; }
.project-hero { margin: 0 0 var(--s-7); }
.project-hero .ph img, .project-hero > img { width: 100%; }
figcaption { font-size: var(--fs-1); color: var(--ink-2); margin-top: var(--s-3); }
.project-body { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: var(--s-8); align-items: start; padding-bottom: var(--s-8); }
.project-meta { position: sticky; top: var(--s-5); font-size: var(--fs-1); border-top: 1px solid var(--ink); padding-top: var(--s-4); }
.project-meta dl { margin: 0; display: grid; gap: var(--s-1); }
.project-meta dt { font-size: var(--fs-0); letter-spacing: .12em; text-transform: uppercase; color: var(--mute); font-weight: 600; margin-top: var(--s-3); }
.project-meta dt:first-child { margin-top: 0; }
.project-meta dd { margin: 0; color: var(--ink-2); }
.project-meta .btn { margin-top: var(--s-5); }
@media (max-width: 860px) { .project-body { grid-template-columns: 1fr; gap: var(--s-6); } .project-meta { position: static; } }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5); margin: var(--s-6) 0; }
.gallery figure { margin: 0; }
.gallery figure.wide { grid-column: 1 / -1; }
.gallery .ph img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.gallery figure.wide .ph img { aspect-ratio: 16 / 9; }
@media (max-width: 600px) { .gallery { grid-template-columns: 1fr; } }
.embed { position: relative; aspect-ratio: 16 / 9; background: var(--screen); overflow: hidden; }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.embed-link { position: absolute; inset: 0; display: grid; place-items: center; text-decoration: none; color: var(--ink); }
.embed-link img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.embed-link .pill { position: relative; z-index: 2; display: inline-flex; gap: .5em; align-items: center; background: rgba(255,255,255,.94); padding: .8em 1.4em; border-radius: var(--r-pill); font-weight: 700; box-shadow: 0 8px 30px rgba(0,0,0,.25); }
.embed-link:hover .pill { background: var(--yellow); }
figure { margin: 0; }
.prose figure { margin: var(--s-6) 0; }
.related { border-top: 1px solid var(--line); padding-block: var(--s-8); }

/* ---------- QUIET PAGES (search landing, press kit) ---------- */
.landing-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-7); align-items: center; padding-block: var(--s-6) var(--s-8); }
.landing-hero .ph img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (max-width: 860px) { .landing-hero { grid-template-columns: 1fr; gap: var(--s-5); } }
.two-col { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: var(--s-8); }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; gap: var(--s-6); } }
.checklist { list-style: none; padding: 0; margin: var(--s-4) 0; display: grid; gap: var(--s-3); font-size: var(--fs-1); }
.checklist li { padding-left: 1.6em; position: relative; }
.checklist li::before { content: ''; position: absolute; left: 0; top: .45em; width: 1em; height: .5em; border-left: 2.5px solid var(--yellow); border-bottom: 2.5px solid var(--yellow); transform: rotate(-45deg); }
.credits { padding-block: var(--s-5); border-block: 1px solid var(--line); }
.credits .wrap { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); align-items: baseline; font-size: var(--fs-1); color: var(--ink-2); }
.credits .lab { font-size: var(--fs-0); letter-spacing: .16em; text-transform: uppercase; color: var(--mute); font-weight: 600; }
.credits ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); }
.good { border-top: 1px solid var(--line); max-width: 860px; }
.good details { border-bottom: 1px solid var(--line); }
.good summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); padding: var(--s-4) 0; font-weight: 600; }
.good summary::-webkit-details-marker { display: none; }
.good summary::after { content: '+'; font-size: 1.5em; font-weight: 300; line-height: 1; transition: transform .2s; }
.good details[open] summary::after { transform: rotate(45deg); }
.good details > div { padding: 0 0 var(--s-5); color: var(--ink-2); max-width: var(--measure); }
.cta-band { background: var(--paper-2); padding-block: var(--s-8); }
.cta-band .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--s-5); }
.cta-band p { color: var(--ink-2); margin: 0; }
.cta-band h2 { margin-bottom: var(--s-2); }
.kit { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5); }
.kit .ph img { width: 100%; aspect-ratio: 1; object-fit: cover; }
@media (max-width: 700px) { .kit { grid-template-columns: 1fr 1fr; } }
.bio-box { background: var(--paper-2); padding: var(--s-5); margin-bottom: var(--s-5); }
.bio-box h3 { font-family: var(--font-body); font-size: var(--fs-0); letter-spacing: .16em; text-transform: uppercase; color: var(--mute); font-weight: 600; display: flex; justify-content: space-between; }
.bio-box button { font: inherit; font-size: var(--fs-0); font-weight: 700; border: 1.5px solid var(--line); background: #fff; border-radius: var(--r-pill); padding: .3em .8em; cursor: pointer; }
.bio-box button:hover { background: var(--yellow); border-color: var(--yellow); }
.bio-box p:last-child { margin: 0; }
.swatches { display: flex; flex-wrap: wrap; gap: var(--s-3); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: var(--s-7) var(--s-6); font-size: var(--fs-1); color: var(--ink-2); }
.site-footer .top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-6); }
.site-footer .wordmark { color: var(--ink); display: inline-block; margin-bottom: var(--s-3); }
.site-footer address { font-style: normal; line-height: 1.8; }
.site-footer address a { text-decoration: none; }
.site-footer ul { list-style: none; margin: 0; padding: 0; line-height: 2; }
.site-footer ul a { text-decoration: none; }
.site-footer ul a:hover { text-decoration: underline; }
.site-footer .cols { display: flex; flex-wrap: wrap; gap: var(--s-8); }
.site-footer .quiet { margin-top: var(--s-7); padding-top: var(--s-4); border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-3); font-size: var(--fs-0); color: var(--mute); }
.site-footer .quiet a { text-decoration: none; }
.site-footer .quiet a:hover { text-decoration: underline; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
.small { font-size: var(--fs-1); }
.swatches > div { padding: var(--s-4) var(--s-5); font-size: var(--fs-0); font-weight: 600; border: 1px solid var(--line); min-width: 140px; }
.team-photo { margin-top: var(--s-6); max-width: 900px; }
.team-photo img { width: 100%; }
.team-photo b { color: var(--ink); font-weight: 600; }

/* Frames in the homepage strip: each opens the reel at its moment */
.sheet .frame { position: relative; display: block; padding: 0; border: 0; background: #000; cursor: pointer; overflow: hidden; }
.sheet .frame img { transition: transform .5s ease, opacity .3s; }
.sheet .frame:hover img, .sheet .frame:focus-visible img { transform: scale(1.05); opacity: .85; }
.frame-play { position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--ink); display: grid; place-items: center; opacity: 0; transform: scale(.85); transition: opacity .2s, transform .2s; }
.frame-play svg { width: 18px; height: 18px; margin-left: 2px; }
.sheet .frame:hover .frame-play, .sheet .frame:focus-visible .frame-play { opacity: 1; transform: scale(1); }
@media (hover: none) { .frame-play { opacity: .9; transform: scale(.75); } }
.picker button.is-main { background: var(--yellow); border-color: var(--yellow); font-size: var(--fs-2); padding: .8em 1.7em; }
.picker button.is-main:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.picker button.is-link { border-color: transparent; background: transparent; text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 2px; text-underline-offset: .3em; }
.picker button.is-link:hover { background: transparent; color: var(--yellow-text); }
.picker button.is-link[aria-pressed="true"] { background: transparent; color: var(--ink); text-decoration-thickness: 3px; }
.picker { align-items: center; }

/* Favorite marker on Work cards */
.card .ph { position: relative; }
.fav { position: absolute; top: var(--s-3); left: var(--s-3); background: var(--yellow); color: var(--ink); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: .3em .7em; border-radius: var(--r-pill); }

/* Quiet pages: drone reel + stills */
.reel-block { aspect-ratio: 16 / 9; background: var(--screen); }
.reel-block video { width: 100%; height: 100%; object-fit: contain; }
.reel-note { color: var(--mute); font-size: var(--fs-0); margin-top: var(--s-2); }
.stills-grid { columns: 3 280px; column-gap: var(--s-4); }
.stills-grid figure { break-inside: avoid; margin: 0 0 var(--s-5); }
.stills-grid img { width: 100%; }
.stills-grid figcaption { font-size: var(--fs-0); }
