/* Chris W. Hill — shared styles for the five hand-edited HTML pages. */
:root {
  color-scheme: dark;
  --background: #101016;
  --surface: #19191f;
  --text: #f1f0ed;
  --muted: #b3b1bd;
  --accent: #c6b6f4;
  --line: #393741;
}
* { box-sizing: border-box; }
html { background: var(--background); }
body { margin: 0; color: var(--text); font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 16px; line-height: 1.5; }
a { color: inherit; text-underline-offset: .22em; }
a:hover { color: var(--accent); }
button { font: inherit; cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
img { display: block; max-width: 100%; height: auto; }
picture { display: block; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { line-height: 1.12; font-weight: 500; }
ul { margin: 0; padding: 0; }
.shell { width: min(100% - 96px, 1320px); margin-inline: auto; }
.skip-link { position: absolute; left: 24px; top: -100px; z-index: 10; padding: 12px 20px; background: var(--accent); color: var(--background); }
.skip-link:focus { top: 12px; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 112px; border-bottom: 1px solid var(--line); }
.wordmark { display: inline-flex; flex-direction: column; text-decoration: none; font-size: 25px; font-weight: 650; letter-spacing: -.045em; line-height: 1.1; }
.wordmark-small { margin-top: 5px; font-size: 10px; text-transform: uppercase; letter-spacing: .2em; font-weight: 500; }
.site-nav ul { display: flex; align-items: center; gap: 30px; list-style: none; }
.site-nav a { display: block; padding: 13px 0; text-decoration: none; font-size: 14px; color: var(--muted); }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); }
.site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 8px; }
.menu-toggle { display: none; min-height: 44px; padding: 8px 12px; color: var(--text); border: 1px solid var(--line); background: transparent; border-radius: 2px; }
.menu-toggle span { margin-left: 8px; }
.eyebrow { color: var(--accent); font-size: 12px; font-weight: 500; letter-spacing: .13em; text-transform: uppercase; }
.home-intro { padding: 64px 0 57px; }
.home-intro { display: grid; grid-template-columns: 1.2fr 1fr; column-gap: 32px; align-items: end; }
.home-intro .eyebrow { grid-column: 1 / -1; margin-bottom: 19px; }
.home-intro h1 { font-size: clamp(44px, 6.3vw, 86px); letter-spacing: -.065em; line-height: 1.03; }
.title-period { color: var(--accent); }
.intro-statement { justify-self: end; font-size: clamp(17px, 1.9vw, 25px); line-height: 1.45; letter-spacing: -.02em; padding-bottom: 3px; }
.intro-statement span { color: var(--muted); }
.section-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; margin-bottom: 20px; }
.section-heading h2 { font-size: 17px; letter-spacing: -.015em; }
.section-heading p { font-size: 12px; color: var(--muted); }
.poster-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
.poster a { display: block; text-decoration: none; }
.poster picture { background: #09090d; aspect-ratio: 2 / 3; }
.poster img { width: 100%; height: 100%; object-fit: contain; }
.poster figcaption { margin-top: 12px; color: var(--muted); font-size: 12px; line-height: 1.4; }
.poster a:hover img, .media-link:hover img { opacity: .88; }
.explore-nav { margin-top: 43px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.explore-nav a { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 0; border-top: 1px solid var(--line); text-decoration: none; font-size: 18px; }
.explore-nav a > span:last-child { color: var(--accent); }
.page-intro { padding: 48px 0 39px; }
.page-intro .eyebrow { margin-bottom: 18px; }
.page-intro h1 { font-size: clamp(42px, 5.2vw, 68px); letter-spacing: -.055em; }
.work-section + .work-section { margin-top: 50px; }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 26px; }
.project { min-width: 0; scroll-margin-top: 24px; }
.media-link { position: relative; display: block; background: #08080c; text-decoration: none; isolation: isolate; }
.media-link picture { aspect-ratio: 16 / 9; }
.media-link img { width: 100%; height: 100%; object-fit: contain; }
.play-mark { position: absolute; left: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 4px; min-height: 36px; padding: 5px 11px 5px 6px; border: 1px solid #68656f; border-radius: 2px; background: #101016; color: var(--text); font-size: 12px; }
.play-mark svg { width: 22px; height: 22px; }
.media-link:hover .play-mark { background: var(--accent); color: var(--background); border-color: var(--accent); }
.duration { position: absolute; right: 12px; bottom: 16px; padding: 3px 6px; background: #101016; color: var(--text); font-size: 11px; font-variant-numeric: tabular-nums; }
.project-caption { padding-top: 17px; }
.project-caption h3, .project-caption h2 { font-size: 19px; line-height: 1.3; letter-spacing: -.015em; }
.project-detail { margin-top: 5px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.detail-divider { margin-inline: 5px; color: var(--muted); }
.services-intro { max-width: 810px; }
.services-lead { font-size: clamp(20px, 2.4vw, 29px); letter-spacing: -.02em; line-height: 1.5; }
.services-intro p + p { margin-top: 27px; color: var(--muted); }
.services-work { margin-top: 28px; max-width: 1000px; }
.project-wide .media-link picture { aspect-ratio: 3 / 1; }
.related-link { margin-top: 30px; color: var(--muted); }
.related-link a { color: var(--text); }
.contact-layout { display: grid; grid-template-columns: 1.35fr 1fr; gap: 64px; align-items: center; }
.contact-photo { background: var(--surface); }
.contact-photo img { width: 100%; height: auto; }
.contact-details .eyebrow { margin-bottom: 13px; }
.contact-details h2 { font-size: clamp(27px, 3vw, 38px); letter-spacing: -.035em; margin-bottom: 13px; }
.contact-details dl { margin: 33px 0 0; }
.contact-details dt { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.contact-details dd { margin: 0 0 25px; overflow-wrap: anywhere; }
.contact-details dd a { display: inline-block; min-height: 44px; padding-block: 8px; font-size: clamp(17px, 1.9vw, 24px); }
.site-footer { display: flex; justify-content: space-between; align-items: baseline; gap: 25px; border-top: 1px solid var(--line); margin-top: 72px; padding: 27px 0 32px; color: var(--muted); font-size: 12px; }
.site-footer > p { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-links { display: flex; gap: 26px; }
.site-footer a { display: inline-block; min-height: 44px; padding-block: 12px; text-decoration: none; }
.video-dialog { width: min(1100px, calc(100% - 40px)); max-height: calc(100dvh - 40px); padding: 0; border: 1px solid var(--line); border-radius: 3px; color: var(--text); background: var(--background); overflow: auto; }
.video-dialog::backdrop { background: rgb(0 0 0 / 88%); }
.dialog-header { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 15px 20px; }
.dialog-header h2 { font-size: 18px; line-height: 1.4; }
.dialog-close { flex-shrink: 0; min-height: 44px; padding: 8px 13px; color: var(--text); border: 1px solid var(--line); background: transparent; }
.video-stage { width: 100%; min-width: 0; aspect-ratio: 16 / 9; min-height: 200px; background: #000; }
.video-stage iframe { display: block; width: 100%; max-width: 100%; height: 100%; min-height: 200px; border: 0; }
.dialog-footer { padding: 10px 20px 14px; font-size: 13px; }
.provider-link { display: inline-block; padding: 10px 0; min-height: 44px; }
.video-open { overflow: hidden; }
@media (min-width: 1600px) { .home-intro { padding-top: 76px; } }
@media (max-width: 999px) {
  .shell { width: calc(100% - 64px); }
  .site-nav ul { gap: 21px; }
  .home-intro { grid-template-columns: 1fr; }
  .intro-statement { justify-self: start; margin-top: 25px; font-size: 21px; }
  .home-intro { padding: 46px 0 36px; }
  .poster-grid { gap: 14px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .poster figcaption { margin-bottom: 10px; }
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
  .contact-layout { gap: 32px; grid-template-columns: 1.2fr 1fr; }
}
@media (max-width: 680px) {
  .shell { width: calc(100% - 40px); }
  .site-header { min-height: 89px; padding-block: 20px; flex-wrap: wrap; gap: 17px; }
  .wordmark { font-size: 23px; }
  .wordmark-small { font-size: 9px; }
  .site-nav { width: 100%; }
  .site-nav ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 18px; }
  .site-nav a { padding: 12px; min-height: 46px; background: var(--surface); }
  .navigation-ready .menu-toggle { display: inline-block; }
  .navigation-ready .site-nav { display: none; }
  .navigation-ready .site-nav.is-open { display: block; }
  .home-intro { padding: 34px 0 33px; }
  .home-intro .eyebrow { margin-bottom: 14px; }
  .home-intro h1 { font-size: clamp(44px, 10.5vw, 64px); }
  .intro-statement { font-size: 17px; margin-top: 20px; }
  .section-heading { margin-bottom: 16px; }
  .section-heading p { font-size: 11px; }
  .poster-grid { gap: 17px 12px; }
  .poster figcaption { font-size: 11px; margin-top: 9px; margin-bottom: 0; }
  .explore-nav { margin-top: 30px; gap: 0; grid-template-columns: 1fr; }
  .explore-nav a { padding: 17px 0; font-size: 17px; }
  .page-intro { padding: 32px 0; }
  .page-intro .eyebrow { margin-bottom: 14px; font-size: 11px; }
  .page-intro h1 { font-size: 45px; }
  .contact-layout { grid-template-columns: 1fr; gap: 30px; }
  .contact-details dl { margin-top: 23px; }
  .contact-details dd a { font-size: 21px; }
  .services-intro p + p { margin-top: 22px; }
  .services-work { margin-top: 22px; }
  .project-wide .media-link picture { aspect-ratio: 16 / 9; }
  .site-footer { margin-top: 49px; padding-top: 22px; gap: 13px; align-items: start; }
  .site-footer > p { flex-direction: column; gap: 5px; padding-top: 11px; }
  .footer-links { gap: 17px; }
  .video-dialog { width: calc(100% - 24px); max-height: calc(100dvh - 24px); }
  .dialog-header { padding: 10px 12px; gap: 12px; }
  .dialog-header h2 { font-size: 15px; }
  .dialog-close { padding-inline: 10px; font-size: 13px; }
  .dialog-footer { padding-inline: 12px; }
}
@media (max-width: 639px) {
  .project-grid { grid-template-columns: 1fr; gap: 31px; }
  .project-caption { padding-top: 13px; }
  .project-caption h3, .project-caption h2 { font-size: 21px; }
  .work-section + .work-section { margin-top: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
