:root {
  color-scheme: dark;
  --bg: #050505;
  --fg: #f5f2ea;
  --muted: #9b9890;
  --line: rgba(245, 242, 234, 0.18);
  --accent: #ff3b1f;
  --panel: #10100f;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: Inter, Arial, sans-serif;
  letter-spacing: 0;
  --scroll-progress: 0%;
}

body.preload-active {
  overflow: hidden;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 80;
  opacity: 0.12;
  mix-blend-mode: screen;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 3px 3px;
}

.grain::after {
  content: "";
  position: fixed;
  top: 0;
  right: clamp(12px, 1.6vw, 22px);
  width: 1px;
  height: var(--scroll-progress);
  max-height: 100vh;
  background: linear-gradient(180deg, rgba(255, 59, 31, 0.95), rgba(245, 242, 234, 0.22));
  box-shadow: 0 0 18px rgba(255, 59, 31, 0.34);
  opacity: 0;
  transition: opacity 360ms ease;
}

body.site-entered .grain::after {
  opacity: 1;
}

.scroll-cockpit {
  position: fixed;
  right: clamp(26px, 3vw, 48px);
  bottom: clamp(22px, 3vw, 42px);
  z-index: 48;
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 12px;
  color: rgba(245, 242, 234, 0.82);
  font-family: Archivo, Arial, sans-serif;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  mix-blend-mode: difference;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 520ms ease, transform 520ms ease;
}

body.site-entered .scroll-cockpit {
  opacity: 1;
  transform: translateY(0);
}

.scroll-cockpit::before {
  content: "";
  width: clamp(52px, 7vw, 96px);
  height: 1px;
  background: rgba(245, 242, 234, 0.5);
  transform-origin: right center;
  transform: scaleX(calc(var(--scroll-ratio, 0) * 1));
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.18);
}

.scroll-section {
  min-width: 54px;
}

.scroll-percent {
  color: var(--accent);
}

.preloader {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.035), transparent 34%),
    #030303;
  transition: opacity 700ms ease, visibility 700ms ease, transform 900ms ease;
}

.preloader-grid {
  position: absolute;
  inset: -2px;
  opacity: 0.84;
  background-image:
    linear-gradient(rgba(245, 242, 234, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 242, 234, 0.12) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at center, black 0%, black 24%, rgba(0, 0, 0, 0.72) 44%, transparent 78%);
  animation: gridPulse 2400ms ease-in-out infinite alternate;
}

.preloader-grid::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent),
    linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  opacity: 0.34;
}

.preloader-core {
  position: relative;
  z-index: 1;
  width: min(420px, calc(100vw - 40px));
  display: grid;
  gap: 18px;
  justify-items: stretch;
  color: var(--fg);
}

.preloader-logo {
  width: min(220px, 58vw);
  height: auto;
  justify-self: center;
  object-fit: contain;
  filter: drop-shadow(0 0 22px rgba(255, 255, 255, 0.16));
}

.load-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: rgba(245, 242, 234, 0.68);
  font-family: Archivo, Arial, sans-serif;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.load-track {
  height: 2px;
  overflow: hidden;
  background: rgba(245, 242, 234, 0.18);
}

.load-bar {
  display: block;
  width: 0%;
  height: 100%;
  background: #fff;
  box-shadow: 0 0 22px rgba(255, 255, 255, 0.88);
  transition: width 180ms ease-out;
}

.enter-button {
  justify-self: center;
  min-width: 124px;
  margin-top: 14px;
  padding: 13px 20px 12px;
  border: 1px solid rgba(245, 242, 234, 0.78);
  border-radius: 0;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  background: rgba(245, 242, 234, 0.04);
  color: var(--fg);
  cursor: pointer;
  font-family: Archivo, Arial, sans-serif;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  transition: opacity 420ms ease, transform 420ms ease, background 220ms ease, color 220ms ease;
}

.enter-button.is-ready {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.enter-button:hover {
  background: var(--fg);
  color: var(--bg);
}

body.site-entered .preloader {
  visibility: hidden;
  opacity: 0;
  transform: scale(1.04);
  pointer-events: none;
}

body.skip-intro .preloader {
  display: none;
}

body:not(.site-entered) .site-header,
body:not(.site-entered) main,
body:not(.site-entered) .site-footer {
  transform: scale(1.018);
}

body.site-entered .site-header {
  animation: headerIn 840ms ease both;
}

body.site-entered .hero-media img {
  animation: heroSettle 1400ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

body.site-entered .hero-content {
  animation: contentIn 980ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px clamp(18px, 3vw, 44px);
  color: var(--fg);
  mix-blend-mode: difference;
}

.brand {
  display: block;
  width: clamp(122px, 11vw, 172px);
  line-height: 0;
}

.brand img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: clamp(16px, 3vw, 34px);
  font-family: Archivo, Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.nav-links a {
  border-bottom: 1px solid transparent;
}

.nav-links a:hover {
  border-color: currentColor;
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
}

.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
  margin: 0;
}

.hero-media img {
  filter: saturate(0.92) contrast(1.08);
  transform: translate3d(0, var(--hero-shift, 0px), 0) scale(1.04);
  will-change: transform;
}

.hero-shade {
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.08) 42%, rgba(0, 0, 0, 0.86)),
    linear-gradient(90deg, rgba(0, 0, 0, 0.7), transparent 55%);
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 120px clamp(18px, 3vw, 44px) 42px;
}

.eyebrow,
.section-kicker {
  margin: 0;
  color: var(--muted);
  font-family: Archivo, Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 12ch;
  margin: 18px 0 24px;
  font-family: Archivo, Impact, sans-serif;
  font-size: clamp(66px, 13vw, 212px);
  font-weight: 900;
  line-height: 0.78;
  text-transform: uppercase;
}

.hero-bottom {
  display: grid;
  grid-template-columns: minmax(220px, 520px) auto;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.hero-bottom p,
.intro-copy p,
.contact-copy p,
.service-list p {
  margin: 0;
  color: rgba(245, 242, 234, 0.72);
  font-size: 15px;
  line-height: 1.62;
}

.text-link {
  justify-self: end;
  color: var(--fg);
  font-family: Archivo, Arial, sans-serif;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  border-bottom: 1px solid currentColor;
}

.section-pad {
  padding: clamp(76px, 10vw, 150px) clamp(18px, 3vw, 44px);
}

.intro,
.services,
.contact {
  position: relative;
  display: grid;
  grid-template-columns: minmax(260px, 0.95fr) minmax(280px, 1.05fr);
  gap: clamp(28px, 7vw, 110px);
  border-bottom: 1px solid var(--line);
}

section {
  scroll-margin-top: 72px;
}

.intro {
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(5, 5, 5, 0.82), rgba(5, 5, 5, 0.68)),
    url("F1academy/SH011977.jpg") center calc(50% + var(--intro-shift, 0px)) / cover;
}

.intro::before,
.services::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image:
    linear-gradient(rgba(245, 242, 234, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 242, 234, 0.04) 1px, transparent 1px);
  background-size: 120px 120px;
  mask-image: linear-gradient(90deg, black, transparent 70%);
}

.intro::after,
.services::after {
  content: "";
  position: absolute;
  inset: auto clamp(18px, 3vw, 44px) 0;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 59, 31, 0.82), transparent);
  opacity: 0;
  transform: scaleX(0.28);
  transition: opacity 900ms ease, transform 1200ms cubic-bezier(0.16, 1, 0.3, 1);
}

.intro.is-visible::after,
.services.is-visible::after {
  opacity: 1;
  transform: scaleX(1);
}

.intro.stage-active,
.services.stage-active,
.contact.stage-active {
  box-shadow: inset 0 1px 0 rgba(255, 59, 31, 0.18);
}

.intro h2,
.services h2,
.contact h2,
.strip-heading h2,
.work-panel h2 {
  margin: 12px 0 0;
  font-family: Archivo, Impact, sans-serif;
  font-size: clamp(36px, 6vw, 96px);
  font-weight: 900;
  line-height: 0.92;
  text-transform: uppercase;
}

.intro-copy {
  display: grid;
  align-content: end;
  gap: 18px;
}

.studio-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 18px;
  border: 1px solid var(--line);
  background: rgba(245, 242, 234, 0.12);
}

.studio-metrics div {
  min-height: 128px;
  display: grid;
  align-content: space-between;
  padding: 18px;
  background: rgba(5, 5, 5, 0.58);
}

.studio-metrics strong {
  font-family: Archivo, Impact, sans-serif;
  font-size: clamp(32px, 4.3vw, 62px);
  line-height: 0.9;
}

.studio-metrics span {
  color: rgba(245, 242, 234, 0.58);
  font-family: Archivo, Arial, sans-serif;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.slogan-mark {
  width: min(520px, 100%);
  height: auto;
  margin-top: 28px;
  object-fit: contain;
  opacity: 0.86;
}

.featured-work {
  display: grid;
}

.work-panel {
  min-height: 92svh;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}

.work-panel figure {
  position: relative;
  min-height: 0;
  margin: 0;
  overflow: hidden;
}

.work-panel figure img {
  transform: translate3d(0, var(--media-shift, 0px), 0) scale(1.055);
  will-change: transform;
}

.work-panel figure::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(245, 242, 234, 0.08);
  pointer-events: none;
}

.work-panel.reverse {
  grid-template-columns: 0.85fr 1.15fr;
}

.work-panel.reverse figure {
  order: 2;
}

.work-copy {
  align-self: end;
  padding: clamp(24px, 5vw, 70px);
  border-top: 1px solid rgba(245, 242, 234, 0.12);
}

.work-copy p {
  margin: 0;
  color: var(--accent);
  font-family: Archivo, Arial, sans-serif;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.work-copy span {
  display: block;
  max-width: 420px;
  margin-top: 18px;
  color: rgba(245, 242, 234, 0.6);
  font-size: 14px;
  line-height: 1.6;
}

.project-strip {
  padding: clamp(70px, 9vw, 130px) 0;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.strip-heading {
  padding: 0 clamp(18px, 3vw, 44px) 30px;
}

.strip-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(300px, 32vw);
  gap: 14px;
  overflow-x: auto;
  padding: 0 clamp(18px, 3vw, 44px) 18px;
  scrollbar-color: var(--accent) #222;
  scroll-snap-type: x proximity;
}

.strip-card {
  display: block;
  min-width: 0;
  outline-offset: 4px;
}

.strip-track figure {
  height: min(66vh, 610px);
  margin: 0;
  position: relative;
  background: #161616;
  scroll-snap-align: start;
  overflow: hidden;
}

.strip-track figure.portrait {
  grid-auto-columns: minmax(230px, 27vw);
}

.strip-track img {
  transition: transform 650ms cubic-bezier(0.16, 1, 0.3, 1), filter 650ms ease;
}

.strip-card:hover img {
  transform: scale(1.045);
  filter: brightness(0.78) contrast(1.08);
}

.strip-card:hover figcaption {
  background: rgba(255, 59, 31, 0.88);
}

.strip-track figcaption {
  position: absolute;
  left: 14px;
  bottom: 12px;
  padding: 8px 10px;
  background: rgba(5, 5, 5, 0.72);
  font-family: Archivo, Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  transition: background 220ms ease;
}

.service-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.service-list article {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
  transition: background 220ms ease, padding-left 220ms ease;
}

.service-list article:hover {
  padding-left: 14px;
  background: rgba(245, 242, 234, 0.035);
}

.service-list span {
  grid-row: 1 / span 2;
  color: var(--accent);
  font-family: Archivo, Arial, sans-serif;
  font-weight: 900;
}

.service-list h3 {
  grid-column: 2;
  margin: 0 0 8px;
  font-family: Archivo, Arial, sans-serif;
  font-size: clamp(22px, 2.6vw, 38px);
  text-transform: uppercase;
}

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

.delivery-strip {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 34px;
  border: 1px solid var(--line);
  background: rgba(245, 242, 234, 0.12);
}

.delivery-strip span {
  min-height: 78px;
  display: flex;
  align-items: center;
  padding: 16px 18px;
  background: rgba(5, 5, 5, 0.62);
  color: rgba(245, 242, 234, 0.72);
  font-family: Archivo, Arial, sans-serif;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.brand-showcase {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

.brand-slides {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.brand-slides img {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.08);
  animation: brandSlide 30s infinite;
  filter: saturate(0.92) contrast(1.06);
}

.brand-slides img:nth-child(2) {
  animation-delay: 6s;
}

.brand-slides img:nth-child(3) {
  animation-delay: 12s;
}

.brand-slides img:nth-child(4) {
  animation-delay: 18s;
}

.brand-slides img:nth-child(5) {
  animation-delay: 24s;
}

.brand-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(0, 0, 0, 0.5);
}

.brand-showcase-content {
  display: grid;
  gap: 22px;
  width: 100%;
  padding: 120px clamp(18px, 3vw, 44px) 56px;
}

.partner-kicker {
  color: rgba(245, 242, 234, 0.76);
}

.brand-logo-grid {
  align-self: end;
  display: grid;
  grid-template-columns: repeat(6, minmax(120px, 1fr));
  gap: 1px;
  border: 1px solid rgba(245, 242, 234, 0.2);
  background: rgba(245, 242, 234, 0.12);
}

.brand-logo-grid img {
  height: clamp(88px, 8vw, 126px);
  padding: clamp(20px, 2.4vw, 32px);
  object-fit: contain;
  background: rgba(5, 5, 5, 0.42);
  filter: drop-shadow(0 0 16px rgba(255, 255, 255, 0.08));
}

.brand-logo-grid .logo-boost {
  padding: clamp(12px, 1.7vw, 22px);
}

.brand-logo-grid .logo-tall {
  padding: clamp(8px, 1.35vw, 18px);
}

.brand-logo-grid .logo-square {
  padding: clamp(10px, 1.45vw, 18px);
}

.brand-logo-grid .logo-fe {
  padding: clamp(8px, 1.35vw, 16px);
}

.contact {
  background:
    linear-gradient(90deg, rgba(5, 5, 5, 0.06) 1px, transparent 1px),
    linear-gradient(rgba(5, 5, 5, 0.04) 1px, transparent 1px),
    #ece8df;
  background-size: 120px 120px;
  color: #050505;
}

.contact .section-kicker,
.contact-copy p {
  color: rgba(5, 5, 5, 0.62);
}

.contact-copy {
  align-self: end;
  padding-top: 22px;
  border-top: 1px solid rgba(5, 5, 5, 0.24);
}

.contact-label {
  margin-bottom: 12px;
  color: rgba(5, 5, 5, 0.82) !important;
  font-family: Archivo, Arial, sans-serif;
  font-size: 11px !important;
  font-weight: 900;
  line-height: 1.3 !important;
  text-transform: uppercase;
}

.contact-button {
  display: inline-flex;
  margin-top: 28px;
  padding: 15px 18px 14px;
  border: 1px solid #050505;
  color: #050505;
  font-family: Archivo, Arial, sans-serif;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.contact-button:hover {
  background: #050505;
  color: #ece8df;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 24px;
  padding: 22px clamp(18px, 3vw, 44px);
  color: var(--muted);
  font-family: Archivo, Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.motion-item,
.intro-title,
.intro-copy,
.studio-metrics div,
.work-copy,
.services > div:first-child,
.service-list article,
.delivery-strip span,
.brand-showcase-content,
.brand-logo-grid img,
.contact > div,
.contact-copy {
  opacity: 0;
  transform: translate3d(0, 34px, 0);
  transition:
    opacity 760ms ease,
    transform 980ms cubic-bezier(0.16, 1, 0.3, 1),
    filter 980ms ease;
  will-change: opacity, transform;
}

.studio-metrics div,
.delivery-strip span,
.brand-logo-grid img {
  transform: translate3d(0, 22px, 0);
  filter: brightness(0.72);
}

.is-visible .intro-title,
.is-visible .intro-copy,
.studio-metrics div.is-visible,
.work-copy.is-visible,
.services.is-visible > div:first-child,
.service-list article.is-visible,
.delivery-strip span.is-visible,
.brand-showcase-content.is-visible,
.brand-logo-grid img.is-visible,
.contact.is-visible > div,
.contact-copy.is-visible,
.motion-item.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  filter: brightness(1);
}

.studio-metrics div:nth-child(2),
.service-list article:nth-child(2),
.delivery-strip span:nth-child(2),
.brand-logo-grid img:nth-child(2) {
  transition-delay: 90ms;
}

.studio-metrics div:nth-child(3),
.service-list article:nth-child(3),
.delivery-strip span:nth-child(3),
.brand-logo-grid img:nth-child(3) {
  transition-delay: 180ms;
}

.delivery-strip span:nth-child(4),
.brand-logo-grid img:nth-child(4) {
  transition-delay: 270ms;
}

.brand-logo-grid img:nth-child(5) {
  transition-delay: 360ms;
}

.brand-logo-grid img:nth-child(6) {
  transition-delay: 450ms;
}

.work-panel.is-visible figure::after {
  border-color: rgba(255, 59, 31, 0.18);
}

.work-panel.is-visible .work-copy {
  border-top-color: rgba(255, 59, 31, 0.28);
}

.stage-active .section-kicker,
.work-panel.stage-active .work-copy p {
  color: rgba(255, 91, 59, 0.95);
}

.stage-active .brand-logo-grid {
  border-color: rgba(255, 59, 31, 0.28);
}

.project-page {
  overflow-x: hidden;
}

.project-header {
  mix-blend-mode: difference;
}

.project-hero {
  position: relative;
  min-height: 92svh;
  display: grid;
  align-items: end;
  overflow: hidden;
}

.project-hero-media,
.project-hero-shade {
  position: absolute;
  inset: 0;
  margin: 0;
}

.project-hero-media img {
  filter: saturate(0.9) contrast(1.08);
  object-position: center;
}

.project-hero-shade {
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.32), rgba(0, 0, 0, 0.12) 44%, rgba(0, 0, 0, 0.88)),
    linear-gradient(90deg, rgba(0, 0, 0, 0.74), transparent 62%);
}

.project-hero-content {
  position: relative;
  z-index: 2;
  padding: 120px clamp(18px, 3vw, 44px) 42px;
}

.project-title {
  max-width: 10ch;
  margin: 16px 0 28px;
  font-family: Archivo, Impact, sans-serif;
  font-size: clamp(58px, 12vw, 180px);
  font-weight: 900;
  line-height: 0.82;
  text-transform: uppercase;
}

.project-summary {
  display: grid;
  grid-template-columns: minmax(240px, 560px) auto;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.project-summary p {
  margin: 0;
  color: rgba(245, 242, 234, 0.72);
  font-size: 15px;
  line-height: 1.62;
}

.project-intro {
  display: grid;
  grid-template-columns: minmax(260px, 0.95fr) minmax(280px, 1.05fr);
  gap: clamp(28px, 7vw, 110px);
  border-bottom: 1px solid var(--line);
}

.project-intro h2,
.gallery-heading h2 {
  margin: 12px 0 0;
  font-family: Archivo, Impact, sans-serif;
  font-size: clamp(36px, 6vw, 96px);
  font-weight: 900;
  line-height: 0.92;
  text-transform: uppercase;
}

.project-gallery {
  padding: clamp(70px, 9vw, 128px) clamp(18px, 3vw, 44px);
}

.gallery-heading {
  display: grid;
  grid-template-columns: minmax(250px, 0.7fr) 1fr;
  align-items: end;
  gap: clamp(28px, 7vw, 90px);
  margin-bottom: 34px;
}

.gallery-masonry {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: minmax(250px, 31vw);
  gap: 12px;
}

.gallery-masonry figure {
  position: relative;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  background: #111;
}

.gallery-masonry figure.wide {
  grid-column: span 2;
}

.gallery-masonry figcaption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 7px 9px;
  background: rgba(5, 5, 5, 0.68);
  color: var(--fg);
  font-family: Archivo, Arial, sans-serif;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

@keyframes gridPulse {
  from {
    opacity: 0.48;
    transform: scale(1);
  }

  to {
    opacity: 0.9;
    transform: scale(1.035);
  }
}

@keyframes heroSettle {
  from {
    transform: scale(1.08);
    filter: saturate(0.78) contrast(1.16);
  }

  to {
    transform: scale(1);
    filter: saturate(0.92) contrast(1.08);
  }
}

@keyframes contentIn {
  from {
    opacity: 0;
    transform: translateY(34px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes headerIn {
  from {
    opacity: 0;
    transform: translateY(-14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes brandSlide {
  0% {
    opacity: 0;
    transform: scale(1.08);
  }

  7% {
    opacity: 1;
  }

  23% {
    opacity: 1;
  }

  33% {
    opacity: 0;
    transform: scale(1);
  }

  100% {
    opacity: 0;
    transform: scale(1.08);
  }
}

@media (max-width: 820px) {
  .site-header {
    align-items: start;
  }

  .nav-links {
    gap: 14px;
    font-size: 11px;
  }

  .hero h1 {
    font-size: clamp(58px, 18vw, 108px);
  }

  .hero-bottom,
  .intro,
  .services,
  .contact,
  .brand-showcase-content,
  .project-intro,
  .project-summary,
  .gallery-heading,
  .work-panel,
  .work-panel.reverse {
    grid-template-columns: 1fr;
  }

  .work-panel,
  .work-panel.reverse {
    min-height: auto;
  }

  .work-panel figure,
  .work-panel.reverse figure {
    order: 0;
    height: 68svh;
  }

  .studio-metrics,
  .delivery-strip {
    grid-template-columns: 1fr;
  }

  .text-link {
    justify-self: start;
  }

  .strip-track {
    grid-auto-columns: minmax(260px, 82vw);
  }

  .brand-showcase-content {
    padding-top: 96px;
  }

  .brand-logo-grid {
    grid-template-columns: repeat(3, minmax(96px, 1fr));
  }

  .gallery-masonry {
    grid-template-columns: 1fr;
    grid-auto-rows: 76vw;
  }

  .gallery-masonry figure.wide {
    grid-column: auto;
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .grain::after {
    right: 8px;
  }

  .scroll-cockpit {
    right: 18px;
    bottom: 18px;
  }

  .scroll-cockpit::before {
    width: 42px;
  }
}

@media (max-width: 520px) {
  .nav-links {
    display: none;
  }

  .brand {
    width: 118px;
  }

  .hero {
    min-height: 92svh;
  }

  .hero-content {
    min-height: 92svh;
  }

  .hero-media img {
    object-position: 62% center;
  }

  .preloader-grid {
    background-size: 30px 30px;
  }

  .eyebrow {
    max-width: 28ch;
    font-size: 10px;
    line-height: 1.25;
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(42px, 12.6vw, 58px);
    line-height: 0.88;
  }

  .project-title {
    max-width: 100%;
    font-size: clamp(44px, 13.6vw, 64px);
    line-height: 0.9;
  }

  .hero-bottom p,
  .project-summary p,
  .intro-copy p,
  .contact-copy p,
  .service-list p {
    font-size: 14px;
  }

  .service-list article {
    grid-template-columns: 42px 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }

  .motion-item,
  .intro-title,
  .intro-copy,
  .studio-metrics div,
  .work-copy,
  .services > div:first-child,
  .service-list article,
  .delivery-strip span,
  .brand-showcase-content,
  .brand-logo-grid img,
  .contact > div,
  .contact-copy {
    opacity: 1;
    transform: none;
    filter: none;
  }
}
