@font-face {
  font-family: "Google Sans Flex";
  src: url("assets/google-sans-flex-variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --background: #101010;
  --text: #f1f1ee;
  --muted: #a4a8a5;
  --line: #373a38;
  --accent: #ff5b2e;
  --gutter: 44px;
  font-family: "Google Sans Flex", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--text); background: var(--background); }
body[data-page="home"], body[data-page="about"] { height: 100svh; overflow: hidden; }
body.no-scroll { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
img { max-width: 100%; }
[hidden] { display: none !important; }
::selection { color: #fff; background: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }

.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;
}
.skip-link { position: fixed; z-index: 100; top: -100px; left: 18px; padding: 12px 16px; color: #fff; background: var(--accent); }
.skip-link:focus { top: 18px; }

.site-header {
  z-index: 10;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  padding: 32px var(--gutter);
}
.site-header--overlay { position: absolute; top: 0; left: 0; }
.site-header--solid { position: relative; background: var(--background); }
.site-brand { white-space: nowrap; font-size: 30px; font-weight: 760; line-height: 1; }
.site-nav { display: flex; align-items: flex-start; gap: 8px; }
.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 29px;
  padding: 7px 10px 6px;
  font-size: 13px;
  font-weight: 790;
  line-height: 1;
  transition: background-color .2s ease;
}
.nav-link:hover, .nav-link.is-current { color: #fff; background: var(--accent); }

.hero, .about-page { position: relative; height: 100svh; overflow: hidden; isolation: isolate; background: #161a1a; }
.hero-images, .hero-image, .hero-shade, .about-background, .about-page-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-images { z-index: 0; }
.hero-image {
  object-fit: cover;
  opacity: 0;
  filter: grayscale(1);
  transform: scale(1.045);
  transition: opacity .65s ease, transform 8s ease, filter .55s ease;
}
.hero-image.is-active { opacity: 1; transform: scale(1); }
.hero-image--missing { background: #242c2b; }
.hero.is-color .hero-image.is-active { filter: grayscale(0); }
.hero-shade {
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(5, 8, 8, .62) 0%, rgba(5, 8, 8, .18) 40%, transparent 76%),
    linear-gradient(0deg, rgba(5, 8, 8, .48) 0%, transparent 25%, rgba(5, 8, 8, .17) 100%);
}
.hero-artwork-link { position: absolute; z-index: 2; inset: 0; display: block; cursor: pointer; }
.hero-content { position: absolute; z-index: 3; inset: 0; pointer-events: none; }
.hero-content > * { pointer-events: auto; }
.work-index { position: absolute; top: 153px; left: var(--gutter); width: min(440px, 47%); max-height: calc(100svh - 190px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.work-list { margin: 0; padding: 0; list-style: none; }
.work-link {
  display: flex;
  align-items: center;
  gap: 13px;
  width: fit-content;
  max-width: 100%;
  min-height: 34px;
  font-size: 19px;
  font-weight: 790;
  line-height: 1.12;
  text-shadow: 0 1px 12px rgba(0,0,0,.35);
  transition: color .18s ease, transform .18s ease;
}
.work-link:hover { transform: translateX(4px); }
.work-link.is-active { color: var(--accent); }
.work-link-number { flex: none; width: 17px; color: #c9cdcb; font-size: 10px; font-weight: 700; }
.work-link.is-active .work-link-number { color: var(--accent); }
.work-link-name { overflow-wrap: anywhere; }
.work-link-dot { flex: none; width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: 0; }
.work-link.is-active .work-link-dot { opacity: 1; }
.page-state { margin: 0; color: #d7dad8; font-size: 15px; line-height: 1.5; }
.state-retry { padding: 0 0 2px; border: 0; border-bottom: 1px solid currentColor; color: #fff; background: transparent; font-weight: 700; cursor: pointer; }
.state-retry:hover { color: var(--accent); }

.hero-footer {
  position: absolute;
  z-index: 4;
  right: var(--gutter);
  bottom: 26px;
  left: var(--gutter);
  display: flex;
  justify-content: center;
  font-size: 10px;
  font-weight: 740;
  pointer-events: none;
}
.hero-copyright { color: #d4d9d7; }
.icon-button {
  display: grid;
  place-items: center;
  width: 37px;
  height: 37px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.75);
  border-radius: 0;
  color: #fff;
  background: transparent;
  font-size: 19px;
  line-height: 1;
  cursor: pointer;
  transition: color .2s, background-color .2s, border-color .2s;
}
.icon-button:hover { background: var(--accent); border-color: var(--accent); }

.work-page { background: var(--background); }
.work-intro { padding: 42px var(--gutter) 62px; }
.work-intro > .page-state { margin-top: 64px; }
.back-link { display: inline-flex; align-items: center; gap: 11px; font-size: 11px; font-weight: 760; }
.back-link span { font-size: 18px; line-height: .5; }
.back-link:hover { color: var(--accent); }
.work-intro-copy { max-width: 610px; margin-top: 64px; }
.work-overline { margin: 0 0 16px; color: var(--accent); font-size: 11px; font-weight: 790; }
.work-intro h1 { margin: 0; font-size: 58px; font-weight: 700; line-height: 1.03; overflow-wrap: anywhere; }
.work-type { margin: 13px 0 0; color: var(--muted); font-size: 14px; font-weight: 620; }
.work-description, .work-note { max-width: 590px; color: #c5c9c7; font-size: 16px; line-height: 1.72; white-space: pre-line; }
.work-description { margin: 32px 0 0; }
.work-note { margin: 12px 0 0; }
.work-main-image { margin: 0; }
.work-video-frame { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; background: #080a0a; }
.image-open { position: relative; display: block; width: 100%; padding: 0; border: 0; background: #222; text-align: left; cursor: zoom-in; }
.image-open img { display: block; width: 100%; height: auto; }
.image-open-hint { position: absolute; right: var(--gutter); bottom: 28px; display: inline-flex; align-items: center; gap: 18px; padding: 9px 11px; color: #fff; background: rgba(11,12,12,.65); font-size: 10px; font-weight: 770; }
.image-open-hint span { font-size: 17px; line-height: .6; }
.site-footer { display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; gap: 20px; min-height: 116px; padding: 30px var(--gutter); background: var(--background); font-size: 11px; font-weight: 760; }
.site-footer > :nth-child(2) { justify-self: center; color: var(--muted); }
.site-footer > :last-child { justify-self: end; }
.site-footer a:hover { color: var(--accent); }

.lightbox { position: fixed; z-index: 50; inset: 0; display: none; align-items: center; justify-content: center; overflow: auto; padding: 70px 30px; background: rgba(3,4,4,.97); }
.lightbox.is-open { display: flex; }
.lightbox img { display: block; max-width: 100%; max-height: calc(100dvh - 140px); object-fit: contain; }
.lightbox-close { position: fixed; z-index: 2; top: 22px; right: 26px; font-size: 28px; }
.lightbox-label { position: fixed; bottom: 26px; left: 30px; font-size: 11px; font-weight: 750; }

.about-background { z-index: 0; object-fit: cover; filter: grayscale(1); transition: filter .55s ease; }
.about-page:hover .about-background, .about-page:focus-within .about-background { filter: grayscale(0); }
.about-page-shade { z-index: 1; pointer-events: none; background: linear-gradient(90deg, rgba(5,8,8,.82), rgba(5,8,8,.12) 85%), linear-gradient(0deg, rgba(5,8,8,.55), transparent 60%); }
.about-page-content { position: absolute; z-index: 2; bottom: 105px; left: var(--gutter); max-width: 650px; }
.about-page-kicker { margin: 0 0 24px; color: var(--accent); font-size: 11px; font-weight: 780; }
.about-page h1 { margin: 0 0 26px; font-size: 68px; font-weight: 700; line-height: 1.05; }
.about-page-copy { max-width: 590px; margin: 0 0 36px; font-size: 20px; line-height: 1.75; white-space: pre-line; }
.about-page-link { display: inline-flex; align-items: center; gap: 18px; padding-bottom: 5px; border-bottom: 1px solid currentColor; font-size: 11px; font-weight: 790; }
.about-page-link span { font-size: 18px; line-height: .6; }
.about-page-link:hover { color: var(--accent); }
.about-page-copyright { position: absolute; z-index: 2; right: var(--gutter); bottom: 26px; color: #d4d9d7; font-size: 10px; font-weight: 740; }

@media (max-width: 900px) {
  :root { --gutter: 28px; }
  .work-index { width: 54%; }
  .work-link { font-size: 17px; }
  .work-intro h1 { font-size: 48px; }
  .about-page h1 { font-size: 56px; }
}

@media (max-width: 700px) {
  :root { --gutter: 20px; }
  .site-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    padding-top: 20px;
    padding-bottom: 20px;
  }
  .site-brand { font-size: 21px; }
  .site-nav { justify-self: end; gap: 2px; }
  .nav-link { min-height: 26px; padding: 7px; font-size: 11px; }
  .work-index { top: 116px; width: calc(100% - 40px); }
  .work-link { min-height: 32px; gap: 9px; font-size: 16px; }
  .work-link-number { width: 14px; font-size: 9px; }
  .work-link-dot { width: 4px; height: 4px; }
  .hero-shade { background: linear-gradient(90deg, rgba(4,7,7,.72), rgba(4,7,7,.1)), linear-gradient(0deg, rgba(3,5,5,.52), transparent 45%, rgba(3,5,5,.17)); }
  .hero-footer { bottom: 18px; }
  .hero-copyright { font-size: 9px; }
  .icon-button { width: 32px; height: 32px; font-size: 17px; }
  .work-intro { padding-top: 20px; padding-bottom: 40px; }
  .work-intro-copy { margin-top: 54px; }
  .work-intro h1 { font-size: 39px; }
  .work-type { font-size: 13px; }
  .work-description, .work-note { font-size: 15px; line-height: 1.65; }
  .work-description { margin-top: 25px; }
  .image-open-hint { right: 10px; bottom: 10px; padding: 7px; font-size: 9px; }
  .site-footer { grid-template-columns: 1fr auto; min-height: 110px; font-size: 10px; }
  .site-footer > :nth-child(2) { grid-column: 1 / -1; grid-row: 2; justify-self: start; }
  .site-footer > :last-child { grid-column: 2; grid-row: 1; }
  .lightbox { justify-content: flex-start; padding: 70px 15px; }
  .lightbox img { max-width: none; max-height: none; height: min(70dvh, 550px); width: auto; }
  .about-page-content { right: var(--gutter); bottom: 85px; }
  .about-page h1 { font-size: 44px; }
  .about-page-copy { font-size: 16px; line-height: 1.7; }
  .about-page-copyright { right: auto; left: var(--gutter); bottom: 24px; }
}

@media (max-width: 390px) {
  .work-link { font-size: 14px; }
  .site-brand { font-size: 19px; }
  .about-page h1 { font-size: 39px; }
}

@media (max-height: 620px) {
  .work-index { top: 96px; }
  .work-index { max-height: calc(100svh - 125px); }
  .work-link { min-height: 27px; font-size: 15px; }
  .hero-footer { bottom: 14px; }
  .about-page-content { bottom: 56px; }
  .about-page h1 { margin-bottom: 15px; font-size: 42px; }
  .about-page-kicker { margin-bottom: 12px; }
  .about-page-copy { margin-bottom: 18px; font-size: 15px; line-height: 1.5; }
}

@media (max-height: 430px) {
  body[data-page="home"], body[data-page="about"] { height: auto; overflow: auto; }
  .hero { height: auto; min-height: 360px; }
  .about-page { display: flex; align-items: flex-end; height: auto; min-height: 360px; }
  .about-page-content { position: relative; right: auto; bottom: auto; left: auto; margin: 85px var(--gutter) 65px; }
  .work-index { top: 73px; }
  .work-index { max-height: 260px; }
  .work-link { min-height: 24px; font-size: 13px; }
  .hero-footer { bottom: 9px; }
  .about-page h1 { font-size: 36px; }
  .about-page-copy { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
