:root {
  --black: #080808;
  --charcoal: #111111;
  --soft-black: #171717;
  --white: #f5f3ed;
  --muted: #a5a39d;
  --line: rgba(245, 243, 237, 0.18);
  --accent: #d5ff40;
  --header-height: 88px;
  --page-gutter: clamp(1.25rem, 4vw, 4.5rem);
  --display: "Oswald", "Arial Narrow", sans-serif;
  --body: "DM Sans", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  background: var(--black);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--white);
  background: var(--black);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;

  -webkit-user-select: none;
  user-select: none;
}

body.nav-open {
  overflow: hidden;
}

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

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.8rem 1rem;
  color: var(--black);
  background: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

#main-content {
  scroll-margin-top: var(--header-height);
}

button {
  color: inherit;
  font: inherit;
}

::selection {
  color: var(--black);
  background: var(--accent);
}

/* Header */
.site-header {
  position: relative;
  z-index: 50;
  width: 100%;
  background: rgba(8, 8, 8, 0.96);
}

.site-header--overlay {
  position: fixed;
  inset: 0 0 auto;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent);
}

.site-nav {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: var(--header-height);
  padding-inline: var(--page-gutter);
}

.site-name {
  grid-column: 2;
  max-width: min(54vw, 38rem);
  overflow: hidden;
  font-size: clamp(0.68rem, 1.1vw, 0.88rem);
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.25;
  text-align: center;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
  transition: opacity 180ms ease;
}

.site-name:hover {
  opacity: 0.65;
}

.nav-link {
  position: relative;
  width: max-content;
  padding-block: 0.6rem;
  color: rgba(245, 243, 237, 0.72);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: color 180ms ease;
}

.nav-link::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 220ms ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--white);
}

.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-link--left {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
}

.nav-link--right {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
}

.menu-toggle,
.mobile-menu {
  display: none;
}

/* Homepage hero */
.home-page {
  overflow: hidden;
}

.hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  overflow: hidden;
  place-items: center;
  isolation: isolate;
}

.hero-media,
.hero-shade,
.hero-grain,
.hero-poster,
.youtube-background,
.youtube-background iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media {
  z-index: -4;
  overflow: hidden;
  background: #151515;
  filter: blur(2px);
  transform: scale(1.015);
}

.hero-poster {
    background-image: url("../images/background.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.youtube-background {
  opacity: 0;
  transition: opacity 900ms ease;
}

.youtube-background.is-ready {
  opacity: 1;
}

.youtube-background iframe {
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: 177.77777778vh;
  height: 56.25vw;
  border: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(1.03);
}

.hero-shade {
  z-index: -3;
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.32), transparent 23%, transparent 62%, rgba(0, 0, 0, 0.74)),
    radial-gradient(circle at center, transparent 10%, rgba(0, 0, 0, 0.42) 100%);
}

.hero-grain {
  z-index: -2;
  opacity: 0.11;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.45'/%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-content {
  width: min(92vw, 78rem);
  padding: calc(var(--header-height) + 2rem) var(--page-gutter) 8rem;
  text-align: center;
}

.hero-eyebrow,
.section-label {
  margin: 0 0 1.2rem;
  color: rgba(245, 243, 237, 0.72);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(3.6rem, 9.4vw, 9.5rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 0.86;
  text-transform: uppercase;
  text-wrap: balance;
  text-shadow: 0 4px 38px rgba(0, 0, 0, 0.35);
}

.hero h1 span {
  color: transparent;
  -webkit-text-stroke: 1px rgba(245, 243, 237, 0.78);
}

.hero-intro {
  max-width: 40rem;
  margin: 1.7rem auto 0;
  color: rgba(245, 243, 237, 0.82);
  font-size: clamp(0.88rem, 1.2vw, 1rem);
  line-height: 1.7;
}

.hero-cta {
  position: absolute;
  bottom: clamp(2.5rem, 6vh, 4.5rem);
  left: 50%;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-width: min(17rem, calc(100vw - 2.5rem));
  padding: 1.05rem 1.2rem 1.05rem 1.5rem;
  color: var(--black);
  background: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transform: translateX(-50%);
  transition: color 220ms ease, background 220ms ease, transform 220ms ease;
}

.hero-cta span {
  flex: 1;
}

.hero-cta svg {
  width: 1.2rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
  transition: transform 220ms ease;
}

.hero-cta:hover {
  color: var(--black);
  background: var(--accent);
  transform: translateX(-50%) translateY(-3px);
}

.hero-cta:hover svg {
  transform: translateX(4px);
}

/* Projects page */
.projects-page {
    position: relative;
    min-height: 100vh;
    background: transparent;
    isolation: isolate;
}

.projects-page::before {
    position: fixed;
    inset: -10px;
    z-index: -2;
    content: "";

    background-image: url("../images/background.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    filter: blur(2px);
    transform: scale(1.02);
}

.projects-page::after {
    position: fixed;
    inset: 0;
    z-index: -1;
    content: "";

    background: rgba(8, 8, 8, 0.68);
    pointer-events: none;
}

.projects-main {
  padding: clamp(4rem, 8vw, 8rem) var(--page-gutter) clamp(5rem, 10vw, 10rem);
}

.projects-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 31rem);
  gap: 2rem 4rem;
  align-items: end;
  max-width: 100rem;
  margin: 0 auto clamp(3.5rem, 7vw, 7rem);
}

.projects-intro .section-label {
  grid-column: 1 / -1;
  margin: 0;
}

.projects-intro h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(5rem, 12vw, 12rem);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.75;
  text-transform: uppercase;
}

.projects-summary {
  margin: 0;
  color: var(--muted);
  font-size: clamp(0.95rem, 1.3vw, 1.12rem);
  line-height: 1.7;
}

.project-collage {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: clamp(9rem, 12vw, 13rem);
  gap: clamp(0.75rem, 1.4vw, 1.5rem);
  max-width: 100rem;
  margin: 0 auto;
}

.project-card {
  position: relative;
  min-height: 22rem;
  overflow: hidden;
  background: var(--soft-black);
  cursor: default;
  isolation: isolate;
  outline: none;
}

.project-card--feature {
  grid-column: 1 / span 8;
  grid-row: span 3;
}

.project-card--tall {
  grid-column: 9 / -1;
  grid-row: span 4;
}

.project-card--wide {
  grid-column: 1 / span 5;
  grid-row: span 2;
}

.project-card--small {
  grid-column: 6 / span 3;
  grid-row: span 2;
}

.project-art,
.project-tint {
  position: absolute;
  inset: 0;
}

.project-art {
  z-index: -3;
  overflow: hidden;
  transition: transform 700ms cubic-bezier(0.2, 0.7, 0, 1), filter 500ms ease;
}

.project-tint {
  z-index: -2;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.06) 68%);
  transition: background 400ms ease;
}

.project-card:hover .project-art,
.project-card:focus-visible .project-art {
  filter: saturate(1.12) contrast(1.04);
  transform: scale(1.035);
}

.project-card:hover .project-tint,
.project-card:focus-visible .project-tint {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.02) 72%);
}

.project-card:focus-visible {
  box-shadow: inset 0 0 0 2px var(--accent);
}

.project-number {
  position: absolute;
  top: 1.35rem;
  right: 1.45rem;
  z-index: 2;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.project-copy {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  padding: clamp(1.3rem, 2.5vw, 2.25rem);
}

.project-copy p,
.project-status {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: clamp(0.6rem, 0.8vw, 0.72rem);
  font-weight: 600;
  letter-spacing: 0.13em;
  line-height: 1.5;
  text-transform: uppercase;
}

.project-copy h2 {
  margin: 0.5rem 0 1.1rem;
  font-family: var(--display);
  font-size: clamp(2.2rem, 4.4vw, 5.5rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 0.95;
  text-transform: uppercase;
}

.project-card--tall .project-copy h2,
.project-card--small .project-copy h2 {
  font-size: clamp(2.15rem, 3vw, 4rem);
}

.project-status {
  display: inline-block;
  padding-top: 0.7rem;
  border-top: 1px solid rgba(255, 255, 255, 0.42);
  color: rgba(255, 255, 255, 0.88);
}

/* Temporary artwork: replace with project images when ready. */
.project-card--veiled .project-art {
  background:
    radial-gradient(circle at 75% 20%, rgba(194, 207, 214, 0.33), transparent 25%),
    linear-gradient(145deg, #637176, #202b30 45%, #0c1113 100%);
}

.mountain {
  position: absolute;
  bottom: -5%;
  left: -10%;
  width: 120%;
  height: 82%;
  background: #111719;
  clip-path: polygon(0 100%, 12% 67%, 25% 77%, 43% 16%, 51% 51%, 62% 33%, 78% 73%, 91% 50%, 100% 100%);
}

.mountain--back {
  bottom: 10%;
  left: 25%;
  width: 90%;
  height: 67%;
  background: rgba(52, 66, 70, 0.7);
  filter: blur(2px);
}

.mountain--front {
  background: #101416;
}

.project-mist {
  position: absolute;
  inset: 15% -15% auto;
  height: 35%;
  background: linear-gradient(90deg, transparent, rgba(211, 218, 219, 0.35), transparent);
  filter: blur(35px);
  transform: rotate(-5deg);
}

.project-card--tycoon .project-art {
  background: linear-gradient(165deg, #ecb560 0%, #d86c47 38%, #442c47 100%);
}

.tycoon-sun {
  position: absolute;
  top: 10%;
  right: -22%;
  width: 75%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(255, 236, 166, 0.5);
  filter: blur(1px);
}

.tycoon-building {
  position: absolute;
  bottom: -6%;
  background: #2c2532;
  box-shadow: inset 0 16px rgba(255, 255, 255, 0.04);
}

.tycoon-building::after {
  position: absolute;
  inset: 12% 16%;
  background: repeating-linear-gradient(to bottom, rgba(255, 203, 114, 0.72) 0 5%, transparent 5% 13%);
  content: "";
}

.tycoon-building--one {
  left: -8%;
  width: 42%;
  height: 54%;
  transform: skewY(-4deg);
}

.tycoon-building--two {
  left: 27%;
  width: 40%;
  height: 72%;
}

.tycoon-building--three {
  right: -14%;
  width: 52%;
  height: 44%;
  transform: skewY(6deg);
}

.project-card--systems .project-art {
  background: linear-gradient(135deg, #25302f, #131a19 60%, #090b0b);
}

.systems-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(35vw, 25rem);
  aspect-ratio: 1;
  border: 1px solid rgba(213, 255, 64, 0.45);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.systems-ring--two {
  width: min(20vw, 14rem);
  border-color: rgba(255, 255, 255, 0.32);
}

.systems-cross {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 55%;
  height: 1px;
  background: rgba(255, 255, 255, 0.24);
  box-shadow: 0 0 30px rgba(213, 255, 64, 0.25);
  transform: translate(-50%, -50%) rotate(-28deg);
}

.project-card--jams .project-art {
  background: linear-gradient(145deg, #684d79, #29243e 58%, #151520);
}

.jam-block {
  position: absolute;
  width: 42%;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.06);
  transform: rotate(28deg);
}

.jam-block--one {
  top: -11%;
  right: -5%;
}

.jam-block--two {
  top: 18%;
  left: 4%;
  background: rgba(213, 255, 64, 0.11);
}

.jam-block--three {
  right: 18%;
  bottom: 0;
  width: 30%;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
  padding: 2rem var(--page-gutter);
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-footer p {
  margin: 0;
}

.site-footer p:nth-child(2) {
  text-align: center;
}

.site-footer p:last-child {
  text-align: right;
}

.js .project-card {
  opacity: 0;
  transform: translateY(2rem);
  transition: opacity 650ms ease, transform 650ms cubic-bezier(0.2, 0.7, 0, 1);
}

.js .project-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 850px) {
  :root {
    --header-height: 74px;
  }

  .nav-link {
    display: none;
  }

  .site-nav {
    grid-template-columns: 1fr auto;
  }

  .site-name {
    grid-column: 1;
    justify-self: start;
    max-width: calc(100vw - 6rem);
    text-align: left;
  }

  .menu-toggle {
    position: relative;
    z-index: 61;
    grid-column: 2;
    display: block;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
  }

  .menu-toggle span {
    position: absolute;
    right: 0;
    left: 0;
    width: 1.5rem;
    height: 1px;
    margin: auto;
    background: var(--white);
    transition: top 220ms ease, transform 220ms ease;
  }

  .menu-toggle span:first-child {
    top: 1.15rem;
  }

  .menu-toggle span:last-child {
    top: 1.62rem;
  }

  .menu-toggle[aria-expanded="true"] span:first-child {
    top: 1.38rem;
    transform: rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:last-child {
    top: 1.38rem;
    transform: rotate(-45deg);
  }

  .mobile-menu {
    position: fixed;
    z-index: 60;
    inset: 0;
    display: flex;
    visibility: hidden;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: var(--header-height) 1.5rem 1.5rem;
    background: rgba(8, 8, 8, 0.98);
    opacity: 0;
    transition: visibility 300ms, opacity 300ms ease;
  }

  .mobile-menu.is-open {
    visibility: visible;
    opacity: 1;
  }

  .mobile-menu a {
    font-family: var(--display);
    font-size: clamp(3.6rem, 15vw, 6rem);
    line-height: 1;
    text-transform: uppercase;
  }

  .mobile-menu a[aria-current="page"] {
    color: var(--accent);
  }

  .hero-content {
    padding-bottom: 8.5rem;
  }

  .hero-intro {
    max-width: 27rem;
  }

  .projects-intro {
    grid-template-columns: 1fr;
  }

  .projects-intro .section-label {
    grid-column: 1;
  }

  .project-collage {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: auto;
  }

  .project-card--feature,
  .project-card--tall,
  .project-card--wide,
  .project-card--small {
    grid-column: auto;
    grid-row: auto;
  }

  .project-card--feature,
  .project-card--wide {
    grid-column: 1 / -1;
    min-height: 31rem;
  }

  .project-card--tall,
  .project-card--small {
    min-height: 29rem;
  }

  .site-footer {
    grid-template-columns: 1fr auto;
  }

  .site-footer p:nth-child(2) {
    display: block;
    grid-column: 1 / -1;
    grid-row: 2;
    text-align: left;
  }
}

@media (max-width: 560px) {
  .site-name {
    font-size: 0.58rem;
    letter-spacing: 0.1em;
  }

  .hero h1 {
    font-size: clamp(3.1rem, 17vw, 5.4rem);
    line-height: 0.9;
  }

  .hero-intro {
    display: none;
  }

  .projects-main {
    padding-top: 3.5rem;
  }

  .projects-intro h1 {
    font-size: clamp(4.6rem, 26vw, 7rem);
  }

  .project-collage {
    grid-template-columns: 1fr;
  }

  .project-card--feature,
  .project-card--tall,
  .project-card--wide,
  .project-card--small {
    grid-column: 1;
    min-height: 27rem;
  }

  .project-copy h2,
  .project-card--tall .project-copy h2,
  .project-card--small .project-copy h2 {
    font-size: clamp(2.6rem, 14vw, 4rem);
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .youtube-background iframe {
    display: none;
  }

  .case-study-hero-video {
    display: none;
  }
}

/* Featured Projects
--------------------------------------------- */

.featured-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 2rem;
    max-width: 100rem;
    margin: 0 auto 2rem;
}

.featured-heading .section-label {
    margin: 0;
}

.featured-heading h1 {
    margin: 0;
    font-family: var(--display);
    font-size: clamp(2.8rem, 6vw, 6rem);
    font-weight: 500;
    letter-spacing: -0.04em;
    line-height: 0.9;
    text-transform: uppercase;
}


/* Featured project images */

.featured-card .project-art {
    background-color: #161616;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.featured-card--veiled .project-art {
    background-image:
        radial-gradient(circle at 72% 24%, rgba(206, 220, 226, 0.3), transparent 23%),
        linear-gradient(145deg, #5a686e, #1d292e 48%, #090d0f);
}

.featured-card--mega .project-art {
    background-image:
        radial-gradient(circle at 68% 22%, rgba(255, 205, 105, 0.32), transparent 24%),
        linear-gradient(145deg, #c97b50, #583249 52%, #161421);
}

.featured-card--primitive .project-art {
    background-image: url("../images/primitive-shapez-01.jpg");
}

.featured-card--pantophobia .project-art {
    background-image: url("../images/Pantophobia.jpg");
}

.featured-card--butter .project-art {
    background-image: url("../images/butter-thief.png");
}


/* Desktop collage layout */

.featured-card--veiled {
    grid-column: 1 / span 8;
    grid-row: 1 / span 3;
}

.featured-card--mega {
    grid-column: 9 / -1;
    grid-row: 1 / span 3;
}

.featured-card--primitive {
    grid-column: 1 / span 5;
    grid-row: 4 / span 2;
}

.featured-card--pantophobia {
    grid-column: 6 / span 4;
    grid-row: 4 / span 2;
}

.featured-card--butter {
    grid-column: 10 / -1;
    grid-row: 4 / span 2;
}

.featured-card--mega .project-copy h2,
.featured-card--primitive .project-copy h2,
.featured-card--pantophobia .project-copy h2,
.featured-card--butter .project-copy h2 {
    font-size: clamp(2rem, 3vw, 4rem);
}


/* Tablet layout */

@media (max-width: 850px) {
    .featured-heading {
        align-items: start;
        flex-direction: column;
    }

    .featured-card--veiled,
    .featured-card--mega,
    .featured-card--primitive,
    .featured-card--pantophobia,
    .featured-card--butter {
        grid-column: auto;
        grid-row: auto;
        min-height: 29rem;
    }

    .featured-card--veiled {
        grid-column: 1 / -1;
        min-height: 32rem;
    }
}


/* Mobile layout */

@media (max-width: 560px) {
    .featured-card--veiled,
    .featured-card--mega,
    .featured-card--primitive,
    .featured-card--pantophobia,
    .featured-card--butter {
        grid-column: 1 / -1;
        min-height: 27rem;
    }
}

.project-video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.featured-card .project-art {
    filter:
        grayscale(25%)
        saturate(60%)
        brightness(0.8)
        blur(1px);
}

.featured-card:hover .project-art,
.featured-card:focus-visible .project-art {
    filter:
        grayscale(0%)
        saturate(110%)
        brightness(1)
        blur(0);
}

/* More Projects
--------------------------------------------- */

.more-projects {
    max-width: 100rem;
    margin: clamp(6rem, 12vw, 12rem) auto 0;
}

.more-projects-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 3rem;
    margin-bottom: 2rem;
}

.more-projects-heading .section-label {
    margin-bottom: 1rem;
}

.more-projects-heading h2 {
    margin: 0;
    font-family: var(--display);
    font-size: clamp(3.5rem, 7vw, 7rem);
    font-weight: 500;
    letter-spacing: -0.045em;
    line-height: 0.85;
    text-transform: uppercase;
}


/* Filters */

.project-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.5rem;
}

.project-filter {
    padding: 0.75rem 1rem;
    border: 1px solid rgba(245, 243, 237, 0.25);
    color: rgba(245, 243, 237, 0.7);
    background: rgba(8, 8, 8, 0.35);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    transition:
        color 180ms ease,
        background 180ms ease,
        border-color 180ms ease;
}

.project-filter:hover {
    color: var(--white);
    border-color: rgba(245, 243, 237, 0.7);
}

.project-filter.is-active {
    color: var(--black);
    background: var(--accent);
    border-color: var(--accent);
}


/* Project grid */

.more-project-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(0.75rem, 1.4vw, 1.5rem);
}

.more-project-card {
    min-height: clamp(18rem, 26vw, 25rem);
}

.more-project-art {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.more-project-art img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.more-project-copy h3 {
    margin: 0.5rem 0 1rem;
    font-family: var(--display);
    font-size: clamp(1.8rem, 2.5vw, 3.2rem);
    font-weight: 500;
    letter-spacing: -0.035em;
    line-height: 0.95;
    overflow-wrap: anywhere;
    text-transform: uppercase;
}


/* Fallback colours while images are missing */

.more-project-art[data-variant="1"] {
    background: linear-gradient(145deg, #45585e, #152025);
}

.more-project-art[data-variant="2"] {
    background: linear-gradient(145deg, #72516d, #231b2c);
}

.more-project-art[data-variant="3"] {
    background: linear-gradient(145deg, #856b41, #292317);
}

.more-project-art[data-variant="4"] {
    background: linear-gradient(145deg, #4d5f43, #182016);
}

.more-project-art[data-variant="5"] {
    background: linear-gradient(145deg, #534e75, #191927);
}


/* Grid responsiveness */

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

@media (max-width: 850px) {
    .more-projects-heading {
        align-items: start;
        flex-direction: column;
    }

    .project-filters {
        justify-content: flex-start;
    }

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

@media (max-width: 560px) {
    .more-project-grid {
        grid-template-columns: 1fr;
    }

    .more-project-card {
        min-height: 26rem;
    }
}

.project-monogram {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;

    color: rgba(255, 255, 255, 0.16);
    font-family: var(--display);
    font-size: clamp(5rem, 9vw, 10rem);
    font-weight: 600;
    letter-spacing: -0.06em;
    line-height: 1;

    pointer-events: none;
}

.more-project-art img {
    position: relative;
    z-index: 1;
}


/* Early Concepts
--------------------------------------------- */

.early-concepts {
    max-width: 100rem;
    margin: clamp(6rem, 12vw, 12rem) auto 0;
    padding-top: clamp(4rem, 7vw, 7rem);

    border-top: 1px solid var(--line);
}

.early-concepts-heading {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(18rem, 0.8fr);
    align-items: end;
    gap: clamp(2rem, 6vw, 7rem);

    margin-bottom: 2rem;
}

.early-concepts-heading .section-label {
    margin-bottom: 1rem;
}

.early-concepts-heading h2 {
    margin: 0;

    font-family: var(--display);
    font-size: clamp(3.5rem, 7vw, 7rem);
    font-weight: 500;
    letter-spacing: -0.045em;
    line-height: 0.85;
    text-transform: uppercase;
}

.early-concepts-heading > p {
    max-width: 32rem;
    margin: 0;

    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.8;
}

.early-concept-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(0.75rem, 1.4vw, 1.5rem);
}

.early-concept-card {
    display: grid;
    grid-template-columns: minmax(10rem, 0.72fr) minmax(0, 1.28fr);
    min-height: 21rem;
    overflow: hidden;

    background: rgba(17, 17, 17, 0.92);
    border: 1px solid var(--line);
}

.early-concept-art {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 100%;
    overflow: hidden;

    background:
        radial-gradient(circle at 70% 25%, rgba(213, 255, 64, 0.16), transparent 26%),
        linear-gradient(145deg, #343b3b, #121717);
}

.early-concept-card--retro .early-concept-art {
    background:
        linear-gradient(135deg, transparent 48%, rgba(255, 96, 186, 0.2) 48% 52%, transparent 52%),
        linear-gradient(45deg, #2a365e, #5c2d65 52%, #d56b62);
}

.early-concept-art > span {
    position: relative;
    z-index: 1;

    color: rgba(255, 255, 255, 0.28);
    font-family: var(--display);
    font-size: clamp(4.5rem, 8vw, 8rem);
    font-weight: 600;
    letter-spacing: -0.06em;
    line-height: 1;
}

.early-concept-art img {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;
    filter: grayscale(0.45) saturate(0.72) brightness(0.68);

    transition:
        filter 400ms ease,
        transform 600ms cubic-bezier(0.2, 0.7, 0, 1);
}

.early-concept-card:hover .early-concept-art img {
    filter: grayscale(0) saturate(1) brightness(0.82);
    transform: scale(1.025);
}

.early-concept-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: clamp(1.5rem, 3vw, 2.75rem);
}

.early-concept-copy > p:first-child {
    margin: 0;

    color: var(--muted);
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.early-concept-copy h3 {
    margin: 0.7rem 0 1rem;

    font-family: var(--display);
    font-size: clamp(2.1rem, 4vw, 4rem);
    font-weight: 500;
    letter-spacing: -0.04em;
    line-height: 0.92;
    text-transform: uppercase;
}

.early-concept-status {
    padding: 0.45rem 0.6rem;

    border: 1px solid rgba(245, 243, 237, 0.25);

    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.early-concept-description {
    max-width: 27rem;
    margin: 1.5rem 0 0 !important;

    color: var(--muted);
    font-size: 0.84rem;
    line-height: 1.65;
}


@media (max-width: 850px) {

    .early-concepts-heading,
    .early-concept-grid {
        grid-template-columns: 1fr;
    }

    .early-concepts-heading {
        align-items: start;
    }

    .early-concept-card {
        grid-template-columns: minmax(11rem, 0.65fr) minmax(0, 1.35fr);
    }

}


@media (max-width: 560px) {

    .early-concept-card {
        grid-template-columns: 1fr;
    }

    .early-concept-art {
        min-height: 14rem;
    }

}
