:root {
  color-scheme: dark;
  --background: #151716;
  --text: #f1f1eb;
  --muted: #a2a7a1;
  --line: #303430;
  --page-width: 1560px;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: var(--background);
  color: var(--text);
}
* { box-sizing: border-box; }
html { min-height: 100%; }
body { margin: 0; min-height: 100svh; display: flex; flex-direction: column; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
a, button { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible { outline: 2px solid #d8ddcf; outline-offset: 6px; }
[hidden] { display: none !important; }
.skip-link { position: fixed; left: 16px; top: -70px; padding: 12px 18px; background: var(--text); color: var(--background); z-index: 20; }
.skip-link:focus { top: 12px; }
.site-header, main, footer { width: calc(100% - 96px); max-width: var(--page-width); margin-inline: auto; }
.site-header { min-height: 122px; display: flex; align-items: center; justify-content: space-between; gap: 32px; border-bottom: 1px solid var(--line); }
.brand { font-size: 25px; font-weight: 600; letter-spacing: -.8px; line-height: 1.1; display: inline-flex; flex-direction: column; gap: 8px; }
.brand span { font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 400; color: var(--muted); }
.site-header nav { display: flex; gap: 32px; align-items: center; }
.site-header nav a { color: var(--muted); font-size: 13px; font-weight: 400; line-height: 24px; padding-block: 7px; border-bottom: 1px solid transparent; transition: color .15s; }
.site-header nav a:hover { color: var(--text); }
.site-header nav a[aria-current="page"] { color: var(--text); border-bottom-color: #c8d1bd; }
main { flex: 1; outline: none; }
.page h1 { margin: 0; font-size: 39px; line-height: 1.2; font-weight: 400; letter-spacing: -1.3px; }
.work-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; padding: 55px 0 34px; }
.work-heading p { margin: 13px 0 0; font-size: 13px; line-height: 1.7; font-weight: 300; color: var(--muted); }
.work-location { color: var(--muted); font-size: 11px; padding-bottom: 4px; }
.folder-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-bottom: 64px; }
.folder-card { display: grid; place-items: center; position: relative; isolation: isolate; overflow: hidden; min-width: 0; aspect-ratio: 4 / 5; background: #1e2526; }
.folder-card:first-child { grid-column: 1 / -1; aspect-ratio: 2.6; }
.folder-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; z-index: -2; }
.folder-card::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.12), rgba(0,0,0,.24) 45%, rgba(0,0,0,.64)); z-index: -1; }
.folder-card h2 { margin: 0; font-size: clamp(22px, 2.5vw, 32px); font-weight: 400; letter-spacing: -.6px; text-shadow: 0 2px 14px rgba(0,0,0,.6); }
.folder-card:first-child h2 { font-size: clamp(27px, 3.5vw, 44px); }
.folder-count { position: absolute; bottom: 25px; left: 25px; color: #eee; font-size: 11px; letter-spacing: .2px; }
.folder-arrow { position: absolute; right: 21px; bottom: 16px; display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid rgba(255,255,255,.45); border-radius: 50%; font-size: 18px; }
@media (hover: hover) { .folder-card:hover img { transform: scale(1.035); } }
.folder-card:focus-visible { outline-offset: 4px; }
.back-to-folders { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin-bottom: 12px; font-size: 12px; color: var(--muted); }
.back-to-folders:hover { color: var(--text); }
@media (max-width: 760px) {
  .folder-grid { gap: 16px; }
  .folder-count { left: 16px; bottom: 19px; font-size: 10px; }
  .folder-arrow { right: 14px; bottom: 12px; width: 30px; height: 30px; font-size: 16px; }
}
@media (max-width: 600px) {
  .folder-grid { grid-template-columns: 1fr; gap: 18px; margin-bottom: 40px; }
  .folder-card, .folder-card:first-child { grid-column: auto; aspect-ratio: 4 / 5; }
  .folder-card:first-child { aspect-ratio: 5 / 4; }
  .folder-card h2, .folder-card:first-child h2 { font-size: 28px; }
  .folder-count { left: 20px; bottom: 23px; font-size: 11px; }
  .folder-arrow { right: 20px; bottom: 16px; width: 36px; height: 36px; }
}
.photo-grid { --gallery-gap: 16px; display: flex; flex-direction: column; gap: var(--gallery-gap); margin-bottom: 48px; }
.photo-row { display: flex; gap: var(--gallery-gap); width: 100%; }
.photo-card { margin: 0; min-width: 0; height: 100%; flex-basis: 0; }
.photo-card button { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.photo-card img { display: block; width: 100%; height: 100%; object-fit: contain; }
.empty-gallery { min-height: 360px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 60px 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; font-weight: 300; }
.empty-gallery p { margin: 0; }
.empty-gallery button { background: none; color: var(--text); border: 1px solid #666; padding: 9px 16px; margin-top: 20px; }
.text-page { max-width: 620px; padding: 55px 0 100px; }
.page-copy { margin-top: 38px; color: var(--muted); font-size: 15px; line-height: 1.9; font-weight: 300; }
.page-copy p { margin: 0 0 22px; }
.page-copy .intro { color: var(--text); font-size: 23px; font-weight: 400; line-height: 1.4; margin-bottom: 24px; letter-spacing: -.4px; }
.email-link { display: inline-block; color: var(--text); padding-bottom: 3px; border-bottom: 1px solid #666; margin: 9px 0 29px; font-size: 17px; }
.page-copy .location { font-size: 12px; color: var(--muted); }
.inline-link { color: var(--text); border-bottom: 1px solid #666; padding-bottom: 4px; }
.inline-link span { margin-left: 10px; }
footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 26px 0; border-top: 1px solid var(--line); font-size: 10px; color: var(--muted); }
footer a { color: var(--text); font-size: 11px; }
footer a span { margin-left: 16px; }
footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.noscript-note { text-align: center; font-size: 13px; padding: 20px; color: var(--muted); }
dialog { background: var(--background); color: var(--text); border: 0; max-width: none; max-height: none; width: 100%; height: 100dvh; margin: 0; padding: 24px 4%; overflow: hidden; }
dialog[open] { display: flex; flex-direction: column; }
dialog::backdrop { background: var(--background); }
body.viewer-open { overflow: hidden; }
.viewer-top, .viewer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-shrink: 0; font-size: 12px; }
.viewer-top { padding-bottom: 20px; }
.viewer-original { margin-left: auto; color: var(--muted); display: inline-flex; align-items: center; gap: 7px; min-height: 44px; }
.viewer-original:hover { color: var(--text); text-decoration: underline; text-underline-offset: 4px; }
.viewer-bottom { padding-top: 20px; }
.viewer-top button, .viewer-bottom button { background: transparent; color: var(--text); border: 1px solid #555; padding: 11px 17px; font-size: 12px; }
.viewer-image-wrap { min-height: 0; flex: 1; display: grid; place-items: center; position: relative; }
.viewer-image-wrap img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.viewer-image-wrap p { position: absolute; text-align: center; padding: 20px; background: var(--background); }
.viewer-loading { position: absolute; right: 8px; bottom: 8px; z-index: 1; padding: 8px 10px; background: rgba(15,17,16,.85); color: var(--text); font-size: 11px; }
#retry-viewer { display: block; margin: 14px auto 0; min-height: 44px; padding: 8px 16px; border: 1px solid #666; color: var(--text); background: transparent; }
.viewer-bottom p { font-size: 11px; color: var(--muted); }
@media (max-width: 900px) {
  .site-header, main, footer { width: calc(100% - 56px); }
  .photo-grid { --gallery-gap: 12px; }
}
@media (max-width: 600px) {
  .site-header, main, footer { width: calc(100% - 40px); }
  .site-header { min-height: 100px; gap: 20px; }
  .brand { font-size: 21px; letter-spacing: -.7px; }
  .brand span { font-size: 8px; letter-spacing: 1.1px; }
  .site-header nav { gap: 19px; }
  .site-header nav a { font-size: 12px; min-height: 44px; display: inline-flex; align-items: center; }
  .page h1 { font-size: 32px; letter-spacing: -1px; }
  .work-heading { padding: 38px 0 26px; }
  .work-heading p { font-size: 12px; max-width: 255px; margin-top: 11px; }
  .work-location { display: none; }
  .photo-grid { --gallery-gap: 10px; margin-bottom: 32px; }
  .empty-gallery { min-height: 340px; font-size: 11px; }
  .text-page { padding: 38px 0 65px; }
  .page-copy { margin-top: 30px; font-size: 14px; }
  .page-copy .intro { font-size: 21px; }
  .email-link { font-size: 16px; }
  footer { font-size: 9px; gap: 16px; }
  footer a { font-size: 10px; }
  footer a span { margin-left: 7px; }
  dialog { padding: max(14px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(14px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); }
  .viewer-top, .viewer-bottom { gap: 10px; }
  .viewer-top button, .viewer-bottom button { min-height: 44px; padding: 10px 12px; font-size: 12px; }
}
@media (max-width: 350px) {
  .site-header nav { gap: 13px; }
  .brand { font-size: 19px; }
  .site-header nav a { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

.about-page { max-width: 1160px; }
.about-layout { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 76px); align-items: center; margin-top: 38px; }
.about-portrait { display: block; width: 100%; height: auto; }
.about-layout .page-copy { margin-top: 0; }
.about-layout .page-copy > p:last-child { margin-bottom: 0; }
@media (max-width: 760px) {
  .about-layout { grid-template-columns: 1fr; gap: 32px; margin-top: 30px; }
  .about-portrait { max-width: 420px; }
}

.contact-details { margin: 32px 0 0; }
.contact-details > div { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 24px; padding: 20px 0; border-top: 1px solid var(--line); }
.contact-details dt { font-size: 11px; color: var(--muted); padding-top: 3px; }
.contact-details dd { margin: 0; color: var(--text); font-size: 15px; }
.contact-details dd a { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.contact-details a:hover, .about-contact a:hover { text-decoration: underline; text-underline-offset: 4px; }
.contact-details dd a span { font-size: 13px; color: var(--muted); }
.about-contact { display: flex; flex-wrap: wrap; column-gap: 24px; row-gap: 10px; margin-top: 27px; border-top: 1px solid var(--line); padding-top: 20px; font-size: 12px; }
@media (max-width: 600px) {
  .contact-details > div { grid-template-columns: 62px minmax(0, 1fr); gap: 16px; padding: 18px 0; }
  .contact-details dd { font-size: 13px; overflow-wrap: anywhere; }
  .about-contact { column-gap: 20px; font-size: 11px; }
}

.work-filters { display: flex; flex-wrap: wrap; column-gap: 28px; row-gap: 5px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.work-filters button { padding: 10px 0 14px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--muted); font-size: 12px; line-height: 1.5; }
.work-filters button:hover { color: var(--text); }
.work-filters button[aria-pressed="true"] { color: var(--text); border-bottom-color: #c8d1bd; }
.work-page .empty-gallery { border-top: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 600px) {
  .work-filters { flex-wrap: nowrap; justify-content: space-between; column-gap: 12px; margin-bottom: 18px; }
  .work-filters button { font-size: 11px; min-height: 44px; padding-bottom: 12px; white-space: nowrap; }
}
@media (max-width: 350px) { .work-filters { column-gap: 9px; } }

/* The stadium image belongs only to the Work view. */
body { position: relative; isolation: isolate; }
body.work-background::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(7, 13, 22, .80) 0%, rgba(7, 13, 22, .62) 40%, rgba(7, 13, 22, .48) 72%, rgba(7, 13, 22, .80) 100%),
    url('assets/work-stadium-background.jpeg') center center / cover no-repeat;
}
body.work-background { --muted: #c5cbd0; --line: rgba(230, 237, 243, .24); --text: #f5f6f3; }
body.work-background .work-filters button[aria-pressed="true"] { border-bottom-color: #f0f2eb; }
body.work-background .empty-gallery { color: #e0e4e7; }
