@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Condensed:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap");

:root {
  --bg: #f7f7f4;
  --paper: #ffffff;
  --ink: #0b0c0d;
  --muted: #626466;
  --hairline: #171819;
  --line: rgba(11, 12, 13, 0.18);
  --soft-line: rgba(11, 12, 13, 0.08);
  --ore: #ee4f14;
  --max: 1260px;
  --gutter: clamp(20px, 4vw, 48px);
  --ease: cubic-bezier(.2, .75, .2, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Manrope, Arial, Helvetica, sans-serif;
  line-height: 1.45;
  text-rendering: geometricPrecision;
}

body.modal-open {
  overflow: hidden;
}

img,
video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.site-header {
  align-items: flex-start;
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  max-width: var(--max);
  padding: clamp(26px, 4vw, 54px) var(--gutter) 0;
  position: relative;
  z-index: 10;
}

.brand {
  align-items: baseline;
  color: var(--ore);
  display: inline-flex;
  font-family: "IBM Plex Sans Condensed", Arial Narrow, Arial, sans-serif;
  gap: 9px;
  letter-spacing: 0;
  white-space: nowrap;
}

.brand__ore {
  font-size: clamp(42px, 6vw, 80px);
  font-weight: 700;
  line-height: .82;
}

.brand__studio {
  font-size: clamp(20px, 2.4vw, 35px);
  font-weight: 600;
  line-height: 1;
}

.site-nav {
  align-items: center;
  display: flex;
  gap: clamp(14px, 2vw, 34px);
  font-size: 13px;
  letter-spacing: .02em;
  padding-top: 2px;
}

.site-nav a {
  color: var(--muted);
  transition: color 180ms var(--ease);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--ink);
}

.site-nav__contact {
  border: 1px solid var(--hairline);
  color: var(--ink) !important;
  display: inline-flex;
  font-weight: 700;
  line-height: 1;
  padding: 11px 16px 12px;
  transition: background 180ms var(--ease), border-color 180ms var(--ease), color 180ms var(--ease);
}

.site-nav__contact:hover,
.site-nav__contact:focus-visible {
  background: var(--ore);
  border-color: var(--ore);
  color: #fff !important;
}

.hero {
  margin: clamp(8px, 1.4vw, 20px) auto 0;
  max-width: var(--max);
  min-height: 280px;
  overflow: hidden;
  padding: 0 var(--gutter) clamp(18px, 2vw, 28px);
  position: relative;
}

.hero__blueprint {
  bottom: -42px;
  height: min(58vw, 610px);
  max-width: none;
  opacity: .58;
  pointer-events: none;
  position: absolute;
  right: max(-130px, -8vw);
  width: min(78vw, 980px);
  z-index: 0;
}

.hero__copy {
  max-width: 960px;
  position: relative;
  z-index: 1;
}

.hero h1 {
  color: var(--ink);
  font-family: "IBM Plex Sans Condensed", Arial Narrow, Arial, sans-serif;
  font-size: clamp(36px, 4.5vw, 64px);
  font-weight: 700;
  letter-spacing: 0;
  line-height: .92;
  margin: 0;
  max-width: 980px;
}

.hero p {
  color: var(--ink);
  font-size: clamp(16px, 1.45vw, 21px);
  line-height: 1.52;
  margin: clamp(18px, 2.2vw, 28px) 0 0;
  max-width: 660px;
}

.hero__claim {
  font-family: "IBM Plex Sans Condensed", Arial Narrow, Arial, sans-serif;
  font-size: clamp(30px, 3.8vw, 58px);
  font-weight: 700;
  line-height: .96;
  margin-top: clamp(8px, 1vw, 14px);
  max-width: 760px;
}

.showreel,
.work,
.services,
.studio-note,
.site-footer {
  margin: 0 auto;
  max-width: var(--max);
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.video-frame {
  background: #111;
  border: 1px solid var(--hairline);
  position: relative;
}

.video-frame__video {
  aspect-ratio: 16 / 9;
  background: #0b0c0d;
  height: auto;
  object-fit: cover;
  width: 100%;
}

.video-frame__play {
  align-items: center;
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  cursor: pointer;
  display: flex;
  height: 76px;
  justify-content: center;
  left: 50%;
  padding: 0;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  transition: opacity 180ms var(--ease), transform 180ms var(--ease);
  width: 76px;
  z-index: 2;
}

.video-frame__play span {
  border-bottom: 15px solid transparent;
  border-left: 25px solid var(--ore);
  border-top: 15px solid transparent;
  display: block;
  margin-left: 6px;
}

.video-frame__play:hover,
.video-frame__play:focus-visible {
  transform: translate(-50%, -50%) scale(1.06);
}

.video-frame.is-playing .video-frame__play {
  opacity: 0;
  pointer-events: none;
}

.showreel {
  padding-bottom: 72px;
}

.section-heading {
  align-items: end;
  border-bottom: 1px solid var(--hairline);
  display: grid;
  gap: 24px;
  grid-template-columns: auto minmax(0, 1fr);
  margin-bottom: 24px;
  padding-bottom: 14px;
}

.section-heading h2 {
  font-family: "IBM Plex Sans Condensed", Arial Narrow, Arial, sans-serif;
  font-size: clamp(38px, 5vw, 66px);
  font-weight: 700;
  line-height: .95;
  margin: 0;
}

.section-heading p {
  color: var(--muted);
  font-size: clamp(13px, 1.1vw, 15px);
  margin: 0 0 4px;
  text-align: right;
  white-space: nowrap;
}

.section-heading--compact {
  align-items: start;
  margin-bottom: 0;
}

.section-heading--compact p {
  max-width: 520px;
}

.work {
  padding-bottom: clamp(76px, 11vw, 132px);
}

.work-grid {
  display: grid;
  gap: 22px 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: visible;
}

.work-card {
  background: var(--bg);
  border: 1px solid transparent;
  color: var(--ink);
  cursor: pointer;
  min-width: 0;
  position: relative;
  transform-origin: center;
  transition:
    border-color 220ms var(--ease),
    box-shadow 220ms var(--ease),
    transform 220ms var(--ease);
  z-index: 1;
}

.work-card:focus-visible {
  outline: 2px solid var(--ore);
  outline-offset: 4px;
}

.work-card.is-hidden {
  display: none;
}

.work-card__media {
  aspect-ratio: 16 / 10;
  background: #ddd;
  overflow: hidden;
}

.work-card__media img {
  height: 100%;
  object-fit: cover;
  transition: transform 520ms var(--ease), filter 220ms var(--ease);
  width: 100%;
}

.work-card__meta {
  align-items: end;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 16px;
  justify-content: space-between;
  min-height: 66px;
  padding: 10px 7px 10px;
}

.work-card__meta h3 {
  font-family: "IBM Plex Sans Condensed", Arial Narrow, Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 6px;
}

.work-card__meta p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
  margin: 0;
}

.work-card__meta span {
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
  transition: color 180ms var(--ease), transform 180ms var(--ease);
}

@media (hover: hover) and (pointer: fine) {
  .work-card:hover,
  .work-card:focus-within {
    background: #fff;
    border-color: rgba(11, 12, 13, .24);
    box-shadow: 0 20px 46px rgba(11, 12, 13, .16);
    transform: translate3d(0, -8px, 0) scale(1.018);
    z-index: 4;
  }

  .work-card:hover img,
  .work-card:focus-within img {
    filter: saturate(1.06) contrast(1.03);
    transform: scale(1.055);
  }

  .work-card:hover .work-card__meta span,
  .work-card:focus-within .work-card__meta span {
    color: var(--ore);
    transform: translateX(4px);
  }
}

.project-modal {
  align-items: center;
  display: flex;
  inset: 0;
  justify-content: center;
  opacity: 0;
  padding: clamp(16px, 4vw, 48px);
  pointer-events: none;
  position: fixed;
  transition: opacity 220ms var(--ease), visibility 220ms var(--ease);
  visibility: hidden;
  z-index: 100;
}

.project-modal.is-open {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.project-modal__backdrop {
  background: rgba(247, 247, 244, .92);
  border: 0;
  cursor: zoom-out;
  inset: 0;
  padding: 0;
  position: absolute;
}

.project-modal__panel {
  background: var(--bg);
  border: 1px solid var(--hairline);
  box-shadow: 0 34px 90px rgba(11, 12, 13, .24);
  max-height: calc(100vh - 32px);
  max-width: 1180px;
  overflow: auto;
  position: relative;
  transform: translateY(18px) scale(.98);
  transition: transform 220ms var(--ease);
  width: min(100%, 1180px);
  z-index: 1;
}

.project-modal.is-open .project-modal__panel {
  transform: translateY(0) scale(1);
}

.project-modal__header {
  align-items: center;
  border-bottom: 1px solid var(--hairline);
  color: var(--ore);
  display: flex;
  font-size: 13px;
  font-weight: 700;
  justify-content: space-between;
  min-height: 52px;
  padding: 14px 16px;
}

.project-modal__close {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
  cursor: pointer;
  font-size: 13px;
  min-height: 32px;
  padding: 6px 12px;
  transition: background 180ms var(--ease), color 180ms var(--ease);
}

.project-modal__close:hover,
.project-modal__close:focus-visible {
  background: var(--ink);
  color: #fff;
}

.project-modal__video {
  aspect-ratio: 16 / 9;
  background: #0b0c0d;
  height: auto;
  object-fit: contain;
  width: 100%;
}

.project-modal__caption {
  align-items: end;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  padding: 18px 16px 20px;
}

.project-modal__caption h2 {
  font-family: "IBM Plex Sans Condensed", Arial Narrow, Arial, sans-serif;
  font-size: clamp(24px, 3vw, 44px);
  font-weight: 700;
  line-height: 1;
  margin: 0;
}

.project-modal__caption p {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 3px;
  text-align: right;
}

.services {
  padding-bottom: clamp(74px, 10vw, 124px);
}

.service-list {
  border-bottom: 1px solid var(--hairline);
}

.service-row {
  align-items: start;
  border-top: 1px solid var(--hairline);
  display: grid;
  gap: 24px;
  grid-template-columns: 70px minmax(180px, .78fr) minmax(280px, 1.22fr);
  padding: 24px 0;
}

.service-row span {
  color: var(--ore);
  font-size: 13px;
  font-weight: 700;
}

.service-row h3 {
  font-family: "IBM Plex Sans Condensed", Arial Narrow, Arial, sans-serif;
  font-size: clamp(22px, 2.4vw, 34px);
  font-weight: 700;
  line-height: 1.05;
  margin: 0;
}

.service-row p {
  color: var(--muted);
  font-size: clamp(15px, 1.25vw, 18px);
  line-height: 1.45;
  margin: 0;
}

.studio-note {
  border-top: 1px solid var(--hairline);
  display: grid;
  gap: 34px;
  grid-template-columns: 1fr 1fr;
  padding-bottom: clamp(72px, 10vw, 120px);
  padding-top: clamp(42px, 7vw, 86px);
}

.studio-note h2 {
  font-family: "IBM Plex Sans Condensed", Arial Narrow, Arial, sans-serif;
  font-size: clamp(36px, 5vw, 72px);
  font-weight: 700;
  line-height: .98;
  margin: 0;
}

.studio-note p {
  color: var(--muted);
  font-size: clamp(17px, 1.45vw, 22px);
  line-height: 1.52;
  margin: 0;
}

.site-footer {
  align-items: end;
  border-top: 1px solid var(--hairline);
  display: flex;
  gap: 32px;
  justify-content: space-between;
  padding-bottom: 42px;
  padding-top: 32px;
}

.footer-label {
  color: var(--ore);
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 10px;
}

.site-footer a {
  font-family: "IBM Plex Sans Condensed", Arial Narrow, Arial, sans-serif;
  font-size: clamp(30px, 5vw, 72px);
  font-weight: 700;
  line-height: .95;
}

.site-footer p {
  color: var(--muted);
  margin: 0;
  max-width: 310px;
  text-align: right;
}

@media (max-width: 1100px) {
  .work-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
    gap: 22px;
  }

  .site-nav {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .hero {
    margin-top: 10px;
    padding-top: 0;
  }

  .hero__blueprint {
    bottom: 20px;
    height: 54vw;
    opacity: .42;
    right: -220px;
    width: 880px;
  }

  .section-heading,
  .studio-note {
    grid-template-columns: 1fr;
  }

  .section-heading p {
    text-align: left;
    white-space: normal;
  }

  .work-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-row {
    grid-template-columns: 48px 1fr;
  }

  .service-row p {
    grid-column: 2;
  }
}

@media (max-width: 620px) {
  .site-header {
    display: block;
  }

  .site-nav {
    justify-content: flex-start;
    margin-top: 20px;
  }

  .site-nav__contact {
    padding: 10px 14px 11px;
  }

  .hero {
    margin-top: 10px;
    min-height: auto;
    padding-bottom: 28px;
    padding-top: 0;
  }

  .hero h1 {
    font-size: clamp(34px, 9vw, 52px);
  }

  .project-modal__caption,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .video-frame__play {
    height: 60px;
    width: 60px;
  }

  .video-frame__play span {
    border-bottom-width: 12px;
    border-left-width: 20px;
    border-top-width: 12px;
  }

  .showreel {
    padding-bottom: 54px;
  }

  .project-modal {
    padding: 10px;
  }

  .project-modal__panel {
    max-height: calc(100vh - 20px);
  }

  .project-modal__caption p {
    text-align: left;
  }

  .work-grid {
    grid-template-columns: 1fr;
  }

  .work-card__meta {
    min-height: 72px;
  }

  .service-row {
    gap: 14px;
    grid-template-columns: 1fr;
  }

  .service-row p {
    grid-column: auto;
  }

  .site-footer p {
    text-align: left;
  }
}

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