@font-face {
  font-family: Geist;
  src: url("assets/geist.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("assets/ibm-plex-mono.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #f3f3f0;
  --muted: #aaa9a6;
  --line: #353535;
  --surface: #0c0c0c;
  --pad: clamp(16px, 2.6vw, 50px);
  --mono: "IBM Plex Mono", "Courier New", monospace;
  --sans: Geist, Arial, sans-serif;
  --media-height: clamp(130px, 15.5vw, 252px);
  --media-width: calc(var(--media-height) * 1.4);
  --portrait-height: calc(var(--media-height) * 1.36);
  --gallery-height: clamp(230px, 37vw, 455px);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: #000; color: var(--ink); font: .9375rem/1.5 var(--sans); text-transform: uppercase; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; text-transform: inherit; }
a:focus-visible, button:focus-visible { outline: 1px solid var(--ink); outline-offset: 5px; }
a:hover { text-decoration: underline; text-underline-offset: 4px; }
img, video { display: block; max-width: 100%; }
h1, h2, h3, p, figure { margin: 0; }
main:focus { outline: none; }
.shell { padding-inline: var(--pad); max-width: 1850px; margin-inline: auto; }
.visually-hidden, .skip-link:not(:focus) {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.skip-link:focus { position: fixed; z-index: 6; inset: 10px auto auto 10px; background: #000; padding: 12px; }

.masthead {
  display: flex; align-items: flex-start; justify-content: space-between;
  min-height: 65px; gap: 22px; padding-block: 17px 9px;
  font: .875rem/1.15 var(--mono);
}
.masthead-brand { display: inline-flex; align-items: center; gap: 9px; flex: 0 0 auto; padding: 4px 0; color: #fff; }
.masthead-brand img { width: 44px; height: auto; flex: 0 0 auto; object-fit: contain; filter: invert(1); }
.masthead-brand span { font: 780 .875rem/1 var(--sans); letter-spacing: -.05em; }
.masthead-brand:hover { text-decoration: none; }
.masthead nav { display: flex; gap: clamp(18px, 3.1vw, 48px); align-items: center; min-height: 35px; }
.masthead nav a { display: inline-flex; align-items: center; min-height: 36px; white-space: nowrap; }
.masthead nav [aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }

.archive-view { padding-top: clamp(42px, 8.4vw, 132px); }
.project-grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(22px, 4.4vw, 77px) clamp(10px, 1.9vw, 37px);
  align-items: center;
}
.card { display: block; grid-column: span 3; min-width: 0; position: relative; isolation: isolate; }
.card:hover { text-decoration: none; }
.mixed-grid .card { grid-column: span var(--span, 3); translate: 0 var(--lift, 0); }
.card-media { height: calc(var(--portrait-height) + 12px); display: grid; place-items: center; }
.card-background { background-size: min(95%, calc(var(--media-width) * 1.23)) auto; background-position: center; background-repeat: no-repeat; }
.card-media :is(img, video) { width: min(100%, var(--media-width)); height: var(--media-height); object-fit: contain; min-height: 0; }
.card-media :is(.trading-card, .card-pack, .racing-suit, .poster), .garment-card .card-media .cutout { width: auto; max-width: min(100%, var(--media-width)); }
.card-media :is(.trading-card, .card-pack, .racing-suit, .poster) { height: var(--portrait-height); }
.card-media .album { width: min(100%, calc(var(--media-height) * 1.08)); height: calc(var(--media-height) * 1.08); }
.card-media .scarf { height: auto; }
.card-media .sticker { width: min(100%, calc(var(--media-width) * .78)); }
.card-media .motion-cover { height: auto; aspect-ratio: 16 / 9; background: #000; }
.card-info {
  position: absolute; inset: auto 0 -19px; display: flex; justify-content: space-between;
  align-items: baseline; gap: 10px; min-width: 0; opacity: 0;
  color: var(--muted); font: .8125rem/1.25 var(--mono);
  transition: opacity 130ms ease;
}
.card:is(:hover, :focus-visible, .show-caption) .card-info { opacity: 1; }
.card-title { color: var(--ink); min-width: 0; overflow-wrap: anywhere; }
.card-client { flex: 0 1 auto; min-width: 0; max-width: 48%; overflow-wrap: anywhere; text-align: right; }
.artist-view .card-info { opacity: 1; position: static; padding-top: 6px; flex-wrap: wrap; justify-content: flex-start; }
.barrow-grid .card-media .poster { height: var(--media-height); max-width: 88%; }

.directory-view, .artist-view, .studio-view { padding-top: clamp(35px, 6.5vw, 110px); }
.directory-view h1, .artist-view h1, .studio-view h1, .project-heading h1 {
  font-size: clamp(1.75rem, 4.15vw, 4.35rem); font-weight: 650;
  letter-spacing: -.045em; line-height: 1.03; overflow-wrap: anywhere;
}
.directory-panels { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(35px, 12vw, 165px); margin-top: 42px; }
.directory-panel h2 { font: .875rem/1.4 var(--mono); color: var(--muted); margin-bottom: 12px; }
.directory-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.directory-list li { border-bottom: 1px solid var(--line); }
.directory-list a { display: flex; justify-content: space-between; align-items: center; gap: 18px; min-height: 66px; }
.directory-list a span { font-size: clamp(1rem, 1.8vw, 1.65rem); letter-spacing: -.035em; }
.directory-list a small { color: var(--muted); font: .8125rem/1 var(--mono); }
.artist-view .project-grid { margin-top: 36px; }

.project-view { padding-top: clamp(27px, 4.25vw, 69px); }
.index-link { display: inline-flex; align-items: center; min-height: 26px; font: .875rem/1.4 var(--mono); color: var(--muted); }
.project-heading { display: grid; grid-template-columns: 1fr minmax(150px, .26fr); align-items: end; gap: 26px; margin: 23px 0 0; }
.project-heading .project-client { color: var(--muted); font: .875rem/1.5 var(--mono); }
.project-title-wordmark { display: flex; align-items: center; gap: clamp(12px, 2.2vw, 33px); }
.project-title-wordmark .title-mark {
  width: min(100%, 440px); height: auto; max-height: 115px;
  min-width: 0; object-fit: contain; object-position: left center;
}
.project-title-wordmark .title-mark-white { filter: brightness(0) invert(1); }
.project-title-wordmark .title-mark-compact { max-width: min(88%, 400px); }
.title-accent { width: clamp(24px, 4vw, 53px); height: auto; flex: 0 0 auto; }
.project-summary {
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .85fr) minmax(0, .57fr);
  gap: clamp(18px, 4vw, 66px); margin-top: 22px; padding: 23px 0 36px; border-top: 1px solid var(--line);
}
.project-summary .description { max-width: 60ch; font-size: .9375rem; }
:is(.project-summary, .project-credits) dl { margin: 0; display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-content: start; gap: 6px 12px; font: .875rem/1.5 var(--mono); }
:is(.project-summary, .project-credits) dt { color: var(--muted); }
:is(.project-summary, .project-credits) dd { margin: 0; }
:is(.project-summary, .project-credits) :is(dt, dd) { overflow-wrap: anywhere; }
.project-credits-content { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 24px; align-items: start; }
.project-credits .gallery-frame img { height: auto; }
.project-sources { display: flex; flex-direction: column; gap: 8px; font: .875rem/1.5 var(--mono); }
.project-sources a { text-decoration: underline; text-underline-offset: 4px; }
.section-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 20px; border-block: 1px solid var(--line); padding: 8px 0; margin-bottom: 24px; }
.section-nav button {
  border: 0; padding: 0; min-height: 39px; cursor: pointer; background: transparent;
  font: .875rem/1.35 var(--mono);
}
.section-nav button:hover { text-decoration: underline; text-underline-offset: 4px; }
.project-section, .project-subsection { scroll-margin-top: 20px; }
:is(.project-section, .project-subsection):focus { outline: none; }
.project-section + .project-section { margin-top: 58px; padding-top: 26px; border-top: 1px solid var(--line); }
.project-section h2 { font: 620 clamp(1.22rem, 2.25vw, 2rem)/1.1 var(--sans); letter-spacing: -.04em; margin-bottom: 20px; }
.project-subsection { margin-block: 34px 24px; padding-top: 17px; border-top: 1px solid var(--line); }
.project-subsection h3 { margin-bottom: 12px; font: 580 clamp(1rem, 1.55vw, 1.3rem)/1.3 var(--sans); }
.section-description { max-width: 65ch; margin: -7px 0 23px; color: var(--muted); }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px 24px; align-items: start; }
.gallery figure { min-width: 0; }
.gallery figure.wide { grid-column: 1 / -1; }
.gallery-frame {
  display: grid; place-items: center; width: 100%; margin: 0; padding: 0;
  color: var(--ink); border: 0; background: #000; overflow: hidden;
}
button.gallery-frame { cursor: zoom-in; }
.gallery-frame img { width: min(100%, 740px); height: var(--gallery-height); object-fit: contain; }
.gallery-frame .image-cutout { width: min(88%, 740px); }
.gallery-frame :is(.image-pack, .image-trading-card, .image-racing-suit) { width: auto; height: calc(var(--gallery-height) * 1.12); }
.gallery-frame .image-wordmark-panorama { width: min(78%, 505px); height: auto; }
.gallery-frame .image-sticker { width: min(68%, 420px); height: auto; }
.gallery-frame .image-scarf { height: auto; }
.gallery-frame .image-racing-detail { width: min(100%, 1080px); height: auto; }
.gallery figcaption { position: relative; z-index: 1; padding: 7px 0 3px; color: var(--muted); font: .8125rem/1.4 var(--mono); }
.gallery-subtitle { margin: 38px 0 12px; font: 550 1.125rem/1.3 var(--sans); }
.patch-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.patch-gallery .gallery-frame img { width: 95%; height: clamp(170px, 22vw, 300px); }
.video-gallery { grid-template-columns: minmax(0, 1fr); gap: 24px; }
.celebration-video-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gallery + .video-gallery { margin-top: 30px; }
.video-figure { justify-self: center; width: min(100%, 740px); }
.video-figure video { width: 100%; height: var(--gallery-height); object-fit: contain; background: #000; }

.studio-view h1 { margin-bottom: 24px; font-size: clamp(1.55rem, 3.15vw, 3rem); }
.studio-copy { display: grid; grid-template-columns: minmax(0, 52ch) 1fr; gap: 22px 10vw; padding: 24px 0 48px; border-top: 1px solid var(--line); }
.studio-copy > p { font-size: .9375rem; }
.studio-copy div { font: .875rem/1.7 var(--mono); }
.studio-copy div a { display: block; overflow-wrap: anywhere; }
.studio-copy div p { color: var(--muted); margin-bottom: 5px; }
.footer {
  display: flex; justify-content: space-between; gap: 20px; align-items: center;
  padding-block: 26px; margin-top: clamp(58px, 10vw, 138px);
  color: var(--muted); font: .875rem/1.55 var(--mono);
}
.footer-contact { display: flex; gap: clamp(18px, 4vw, 46px); }

.lightbox { border: 1px solid var(--line); color: var(--ink); background: #000; width: min(92vw, 1240px); max-height: 94vh; padding: 12px 18px; }
.lightbox::backdrop { background: #000e; }
.lightbox-toolbar, .lightbox-navigation { display: flex; align-items: center; justify-content: space-between; gap: 8px; font: .875rem/1.4 var(--mono); }
.lightbox-toolbar { margin-bottom: 10px; }
.lightbox-navigation { margin-top: 10px; }
.lightbox button { min-height: 37px; border: 1px solid var(--line); padding: 4px 8px; background: transparent; cursor: pointer; }
.lightbox button:hover { border-color: var(--ink); }
.lightbox button:disabled { cursor: default; opacity: .4; }
.close-lightbox { min-width: 37px; font-size: 1.4rem; }
.lightbox-image img { width: 100%; max-height: 70vh; object-fit: contain; }

@media (max-width: 920px) {
  :root { --media-height: clamp(130px, 19.25vw, 178px); }
  .project-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mixed-grid .card, .project-grid .card { grid-column: auto; }
  .mixed-grid .card { translate: 0 calc(var(--lift, 0px) * .35); }
  .mixed-grid .card.feature-card { grid-column: span 2; }
  .project-summary { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
}
@media (max-width: 767px), (max-width: 1000px) and (max-height: 540px) and (orientation: landscape) {
  :root {
    --media-height: clamp(170px, 53vmin, 270px);
    --gallery-height: clamp(215px, 67vmin, 420px);
  }
  .archive-view { padding-top: 27px; }
  .project-grid { grid-template-columns: minmax(0, 1fr); gap: clamp(24px, 5vw, 40px); align-items: start; }
  .project-grid .card { grid-column: auto; }
  .mixed-grid .card { translate: none; }
  .mixed-grid .card.feature-card { grid-column: 1 / -1; }
  .card-background, .card-media:has(.scarf) { height: clamp(94px, 36vmin, 185px); }
  .card-media:has(.motion-cover) { height: calc(var(--media-width) * .5625 + 16px); }
  .directory-panels, .project-heading, .project-summary, .project-credits-content, .studio-copy, .gallery { grid-template-columns: minmax(0, 1fr); }
  .gallery { gap: 14px; }
}
@media (max-width: 590px) {
  .masthead { min-height: 61px; padding-top: 12px; gap: 10px; }
  .masthead-brand { gap: 6px; }
  .masthead-brand img { width: 31px; }
  .masthead-brand span { font-size: .74rem; }
  .masthead nav { gap: clamp(7px, 3vw, 16px); font-size: .75rem; }
  .card-client { display: none; }
  .project-heading { gap: 9px; }
  .project-title-wordmark .title-mark { max-height: 90px; }
  .directory-panels { margin-top: 30px; }
}
@media (max-width: 360px) {
  .masthead { flex-wrap: wrap; row-gap: 3px; }
  .masthead nav { width: 100%; justify-content: space-between; gap: 11px; font-size: .76rem; }
}
@media (hover: none) {
  .card-info { position: static; opacity: 1; display: block; padding-top: 4px; font-size: .75rem; }
  .card-client { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
