:root {
  --night: #140F2B;
  --night-deep: #0C0920;
  --dusk: #2A1850;
  --red: #B82029;
  --red-deep: #9A1A22;
  --ember: #FF5B3A;
  --sodium: #FFC266;
  --moon: #F4EDE4;
  --haze: #BDB4CF;
  --ink-soft: #4A4360;
  --line: rgba(244, 237, 228, 0.16);

  --font-display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --font-body: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(20px, 5vw, 64px);
  --section-y: clamp(96px, 13vw, 180px);
  --radius-sm: 8px;
  --radius-lg: 20px;
  --ease-out: cubic-bezier(0.16, 0.84, 0.3, 1);

  --stars:
    radial-gradient(1.5px 1.5px at 7% 12%, rgba(244, 237, 228, 0.9), transparent),
    radial-gradient(1px 1px at 18% 34%, rgba(244, 237, 228, 0.7), transparent),
    radial-gradient(1.5px 1.5px at 29% 8%, rgba(244, 237, 228, 0.8), transparent),
    radial-gradient(1px 1px at 41% 22%, rgba(244, 237, 228, 0.6), transparent),
    radial-gradient(2px 2px at 57% 10%, rgba(255, 194, 102, 0.8), transparent),
    radial-gradient(1px 1px at 66% 30%, rgba(244, 237, 228, 0.7), transparent),
    radial-gradient(1.5px 1.5px at 78% 16%, rgba(244, 237, 228, 0.9), transparent),
    radial-gradient(1px 1px at 88% 38%, rgba(244, 237, 228, 0.6), transparent),
    radial-gradient(1.5px 1.5px at 94% 6%, rgba(244, 237, 228, 0.8), transparent),
    radial-gradient(1px 1px at 12% 52%, rgba(244, 237, 228, 0.5), transparent),
    radial-gradient(1px 1px at 84% 56%, rgba(244, 237, 228, 0.5), transparent);

  --z-preview: 30;
  --z-menu: 45;
  --z-header: 50;
  --z-skip: 200;

  color-scheme: dark;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--night);
  color: var(--moon);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

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

img {
  height: auto;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--sodium);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: var(--gutter);
  z-index: var(--z-skip);
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--sodium);
  color: var(--night);
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

.container {
  width: 100%;
  max-width: 1320px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 52px;
  padding: 0.8rem 1.6rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn--primary {
  background: var(--red);
  color: #fff;
}

.btn--primary:hover {
  background: var(--red-deep);
}

.btn--ghost {
  border-color: currentColor;
  background: transparent;
}

.btn--ghost:hover {
  border-color: var(--moon);
  background: var(--moon);
  color: var(--night);
}

.btn--light {
  background: var(--moon);
  color: var(--night);
}

.btn--light:hover {
  background: #fff;
}

.btn--small {
  min-height: 44px;
  padding: 0.5rem 1.1rem;
  font-size: 0.9375rem;
}

/* Header */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: var(--z-header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 16px var(--gutter);
  transition: background-color 0.6s ease;
}

.site-header.is-scrolled {
  background: var(--header-bg, rgba(20, 15, 43, 0.86));
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

body.menu-open .site-header {
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.brand {
  display: inline-flex;
  padding: 8px 0;
  border-radius: 4px;
}

.brand img {
  width: auto;
  height: 30px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 44px;
  padding: 0.5rem 1rem 0.5rem 1.15rem;
  border: 0;
  border-radius: 999px;
  background: var(--moon);
  color: var(--night);
  font-weight: 700;
  cursor: pointer;
  touch-action: manipulation;
}

.menu-toggle__icon {
  position: relative;
  width: 18px;
  height: 12px;
}

.menu-toggle__icon::before,
.menu-toggle__icon::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.3s var(--ease-out), top 0.3s var(--ease-out);
}

.menu-toggle__icon::before {
  top: 2px;
}

.menu-toggle__icon::after {
  top: 8px;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__icon::before {
  top: 5px;
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__icon::after {
  top: 5px;
  transform: rotate(-45deg);
}

@media (max-width: 560px) {
  .header-cta {
    display: none;
  }
}

/* Menu overlay */

.menu {
  position: fixed;
  inset: 0;
  z-index: var(--z-menu);
  display: grid;
  align-content: center;
  gap: 2.5rem;
  padding: 110px var(--gutter) 40px;
  overflow-y: auto;
  background:
    radial-gradient(120% 70% at 85% 115%, rgba(255, 91, 58, 0.45), transparent 60%),
    radial-gradient(90% 70% at 5% -10%, var(--dusk), transparent 70%),
    var(--night-deep);
  opacity: 0;
  transition: opacity 0.35s var(--ease-out);
}

.menu[hidden] {
  display: none;
}

.menu.is-open {
  opacity: 1;
}

.menu__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.menu__link {
  display: inline-block;
  color: var(--moon);
  font-family: var(--font-display);
  font-size: clamp(3.25rem, 10vw, 8rem);
  font-weight: 800;
  line-height: 0.96;
  text-decoration: none;
  transition: color 0.2s ease;
}

.menu__link:hover,
.menu__link:focus-visible {
  color: var(--sodium);
}

.menu__aside {
  display: grid;
  gap: 0.35rem;
  color: var(--haze);
}

.menu__aside p {
  margin: 0;
}

.menu__aside a {
  color: var(--moon);
  font-size: 1.125rem;
  text-underline-offset: 3px;
}

@media (min-width: 900px) {
  .menu {
    grid-template-columns: 1.6fr 1fr;
    align-items: end;
  }
}

/* Hero with background video */

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: end;
  min-height: 100vh;
  min-height: 100svh;
  padding: 120px 0 clamp(56px, 9vh, 104px);
  overflow: hidden;
  background: var(--night-deep);
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(90% 70% at 0% 100%, rgba(184, 32, 41, 0.55), transparent 65%),
    linear-gradient(180deg, rgba(12, 9, 32, 0.78) 0%, rgba(12, 9, 32, 0.3) 32%, rgba(12, 9, 32, 0.58) 60%, rgba(12, 9, 32, 0.94) 100%);
}

.hero__content {
  display: grid;
  justify-items: start;
  gap: clamp(1.25rem, 2vw, 1.75rem);
}

.hero__title {
  margin: 0;
  color: var(--sodium);
  font-family: var(--font-display);
  font-size: clamp(4.5rem, min(14vw, 17vh), 13.5rem);
  font-weight: 900;
  line-height: 0.82;
  letter-spacing: -0.02em;
  text-shadow: 0 6px 40px rgba(12, 9, 32, 0.6);
}

.hero__title .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.05em;
}

.hero__title .line > span {
  display: block;
}

.hero__lede {
  max-width: 36rem;
  margin: 0;
  font-size: clamp(1.0625rem, 1.5vw, 1.3125rem);
  line-height: 1.55;
  text-shadow: 0 2px 16px rgba(12, 9, 32, 0.9);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero__toggle {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(56px, 9vh, 104px);
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1.5px solid rgba(244, 237, 228, 0.55);
  border-radius: 50%;
  background: rgba(12, 9, 32, 0.6);
  color: var(--moon);
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.hero__toggle:hover {
  background: var(--moon);
  color: var(--night);
}

.hero__toggle[hidden] {
  display: none;
}

.hero__toggle svg {
  width: 18px;
  height: 18px;
}

.hero__toggle .icon-play,
.hero__toggle.is-paused .icon-pause {
  display: none;
}

.hero__toggle.is-paused .icon-play {
  display: block;
}

@media (max-width: 640px) {
  .hero__toggle {
    top: 88px;
    bottom: auto;
  }
}

.js .hero__video {
  opacity: 0;
}

.js .hero__title .line > span {
  transform: translateY(120%);
}

.js .hero__lede,
.js .hero__actions {
  opacity: 0;
  transform: translateY(12px);
}

.hero.is-ready .hero__video {
  opacity: 1;
  transition: opacity 1.2s ease;
}

.hero.is-ready .hero__title .line > span {
  transform: none;
  transition: transform 1s var(--ease-out) 0.2s;
}

.hero.is-ready .hero__title .line:nth-child(2) > span {
  transition-delay: 0.32s;
}

.hero.is-ready .hero__title .line:nth-child(3) > span {
  transition-delay: 0.44s;
}

.hero.is-ready .hero__lede,
.hero.is-ready .hero__actions {
  opacity: 1;
  transform: none;
  transition: opacity 0.8s ease 0.8s, transform 0.8s var(--ease-out) 0.8s;
}

.hero.is-ready .hero__actions {
  transition-delay: 0.92s;
}

/* Shared section scaffolding */

.section {
  position: relative;
  padding-block: var(--section-y);
}

.section-head {
  display: grid;
  gap: clamp(1rem, 2vw, 1.5rem);
  max-width: 60rem;
  margin-bottom: clamp(56px, 7vw, 104px);
}

.section-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 10vw, 9.5rem);
  font-weight: 800;
  line-height: 0.86;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.section-intro {
  max-width: 36rem;
  margin: 0;
  color: var(--haze);
  font-size: clamp(1.125rem, 1.5vw, 1.375rem);
  line-height: 1.5;
}

/* About */

.about {
  background: var(--moon);
  color: var(--night);
}

.about ::selection {
  background: var(--red);
  color: #fff;
}

.about__grid {
  display: grid;
  gap: clamp(40px, 6vw, 96px);
}

.about__title {
  color: var(--red);
  font-size: clamp(3.25rem, 7.5vw, 7.25rem);
}

.about__body p {
  max-width: 36rem;
  margin: 0 0 1.1em;
  color: var(--ink-soft);
  font-size: clamp(1.0625rem, 1.3vw, 1.1875rem);
}

.about__body .about__lead {
  color: var(--night);
  font-size: clamp(1.3125rem, 2vw, 1.75rem);
  line-height: 1.4;
}

.about__media {
  margin: 0;
}

.about__media video {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-lg);
  background: var(--night);
}

.about__media figcaption {
  margin-top: 0.75rem;
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

@media (min-width: 960px) {
  .about__grid {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: start;
  }
}

/* What we do: the focused service column widens and the section takes on its colour */

.services {
  position: relative;
  background-color: var(--svc-bg, var(--night));
  transition: background-color 0.7s ease;
}

.services__sticky {
  position: relative;
  display: flex;
  flex-direction: column;
  padding-block: var(--section-y);
}

.services__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 3rem;
  margin-bottom: clamp(32px, 5vw, 64px);
}

.services__title {
  margin: 0;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(3.75rem, 11vw, 9.5rem);
  font-weight: 900;
  line-height: 0.84;
  letter-spacing: -0.02em;
}

.services__intro {
  max-width: 26rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.0625rem, 1.4vw, 1.3125rem);
  line-height: 1.5;
}

.services__viewport {
  position: relative;
  border-block: 1px solid rgba(255, 255, 255, 0.2);
}

.services__track {
  --col-w: clamp(250px, 21vw, 330px);
  --col-w-open: clamp(420px, 42vw, 620px);
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
}

.svc {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 1.8vh, 18px);
  padding: clamp(28px, 3.5vh, 44px) clamp(22px, 2.2vw, 36px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
}

.svc__name {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.75rem, min(4vw, 6.5vh), 4.5rem);
  font-weight: 800;
  line-height: 0.88;
  letter-spacing: -0.01em;
  text-wrap: balance;
  transition: opacity 0.5s ease;
}

.svc__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.svc__tags li {
  padding: 0.18rem 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 6px;
  font-size: 0.8125rem;
  font-weight: 500;
}

.svc__tagline {
  margin: 0;
  font-size: clamp(1.25rem, min(1.7vw, 2.8vh), 1.625rem);
  font-weight: 600;
  line-height: 1.22;
  text-wrap: balance;
  transition: opacity 0.5s ease;
}

.svc__more {
  display: grid;
  grid-template-rows: 1fr;
}

.svc__desc {
  min-height: 0;
  margin: 0;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(0.9375rem, 1.1vw, 1.125rem);
  line-height: 1.5;
}

.svc__media {
  position: relative;
  aspect-ratio: 4 / 3;
  margin-top: auto;
  overflow: hidden;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.25);
  transition: opacity 0.5s ease;
}

.svc__media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 900px) {
  .services__viewport {
    overflow-x: auto;
  }

  .services__track {
    flex-direction: row;
    width: max-content;
    padding-inline: max(var(--gutter), calc((100vw - 1320px) / 2 + var(--gutter)));
  }

  .svc {
    flex: 0 0 var(--col-w);
    border-bottom: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    transition: flex-basis 0.7s var(--ease-out);
  }

  .svc:last-child {
    border-right: 1px solid rgba(255, 255, 255, 0.2);
  }

  .svc.is-open {
    flex-basis: var(--col-w-open);
  }

  .svc__more {
    grid-template-rows: 0fr;
    opacity: 0;
    transition: grid-template-rows 0.6s var(--ease-out), opacity 0.4s ease;
  }

  .svc.is-open .svc__more {
    grid-template-rows: 1fr;
    opacity: 1;
  }

  .svc:not(.is-open) .svc__name,
  .svc:not(.is-open) .svc__tagline {
    opacity: 0.7;
  }

  .svc:not(.is-open) .svc__media {
    opacity: 0.6;
  }
}

.services.is-pinned .services__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  padding-block: clamp(92px, 11vh, 120px) clamp(20px, 3.5vh, 40px);
}

.services.is-pinned .services__head {
  margin-bottom: clamp(18px, 3vh, 36px);
}

.services.is-pinned .services__title {
  font-size: clamp(3.5rem, min(8vw, 11vh), 8.5rem);
}

.services.is-pinned .services__viewport {
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.services.is-pinned .services__track {
  height: 100%;
  will-change: transform;
}

.services.is-pinned .svc__media {
  flex: 1 1 auto;
  min-height: 90px;
  aspect-ratio: auto;
}

@media (max-height: 760px) {
  .services.is-pinned .svc__more {
    display: none;
  }
}

/* Selected work: sticky Bangkok night scene, projects scroll up over it */

.work {
  position: relative;
  background: var(--night-deep);
}

.work__stage {
  --p: 0;
  --rise: 1;
  --fade: 0;
  --sun-r: min(32vmin, 300px);
  --horizon: clamp(90px, 16vh, 170px);
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background:
    var(--stars),
    linear-gradient(180deg, var(--night) 0%, var(--night) 24%, var(--dusk) 66%, #5B1D45 100%);
}

.js .work__stage {
  --rise: 0;
}

.stage__sky {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.stage__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(90% 55% at 50% 100%, rgba(255, 91, 58, 0.5), transparent 70%);
  opacity: var(--rise);
}

.stage__rays {
  position: absolute;
  left: 50%;
  bottom: var(--horizon);
  width: 240vmax;
  aspect-ratio: 1;
  translate: -50% 50%;
  rotate: calc(var(--p) * 40deg);
  background: repeating-conic-gradient(from 0deg, rgba(255, 194, 102, 0.2) 0deg 1.1deg, transparent 1.1deg 6.5deg);
  -webkit-mask-image: radial-gradient(circle, #000 10%, transparent 46%);
  mask-image: radial-gradient(circle, #000 10%, transparent 46%);
  opacity: var(--rise);
}

.stage__sun {
  position: absolute;
  left: 50%;
  bottom: var(--horizon);
  width: calc(var(--sun-r) * 2);
  aspect-ratio: 1;
  translate: -50% calc(50% + (1 - var(--rise)) * 62%);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 30%, #FF8452 0%, var(--ember) 28%, var(--red) 66%, #6E1030 100%);
  box-shadow: 0 0 140px 40px rgba(255, 91, 58, 0.32);
}

.stage__skyline {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(var(--horizon) - 1px);
  width: 100%;
  height: clamp(90px, 16vh, 180px);
  color: var(--night-deep);
}

.stage__river {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--horizon);
  background: var(--night-deep);
}

.stage__river::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: min(70vmin, 640px);
  height: 100%;
  translate: -50% 0;
  background: repeating-linear-gradient(180deg, rgba(255, 91, 58, 0.8) 0 3px, transparent 3px 11px);
  -webkit-mask-image: radial-gradient(55% 100% at 50% 0%, #000 25%, transparent 78%);
  mask-image: radial-gradient(55% 100% at 50% 0%, #000 25%, transparent 78%);
  opacity: calc(0.25 + var(--rise) * 0.75);
}

.stage__head {
  display: grid;
  justify-items: center;
  gap: clamp(1rem, 2vw, 1.5rem);
  padding-top: clamp(110px, 17vh, 180px);
  text-align: center;
  opacity: calc(1 - var(--fade));
  translate: 0 calc(var(--fade) * -60px);
}

.stage__title {
  margin: 0;
  color: var(--sodium);
  font-family: var(--font-display);
  font-size: clamp(5rem, min(17vw, 21vh), 15rem);
  font-weight: 900;
  line-height: 0.82;
  letter-spacing: -0.02em;
  text-shadow: 0 6px 48px rgba(12, 9, 32, 0.55);
}

.stage__intro {
  max-width: 32rem;
  margin: 0;
  font-size: clamp(1.125rem, 1.7vw, 1.4375rem);
  line-height: 1.45;
  text-shadow: 0 2px 18px rgba(12, 9, 32, 0.85);
}

.work__content {
  position: relative;
  z-index: 1;
  margin-top: -100vh;
  margin-top: -100svh;
  padding-top: 82vh;
  padding-bottom: 30vh;
}

.glass {
  border: 1px solid rgba(244, 237, 228, 0.14);
  background: rgba(12, 9, 32, 0.8);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.featured {
  display: grid;
  gap: clamp(24px, 3vw, 36px);
}

.case {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 0;
  padding: clamp(10px, 1vw, 14px);
  border-radius: 26px;
}

.case figcaption {
  padding: 0 clamp(10px, 1.2vw, 18px) clamp(12px, 1.4vw, 20px);
}

.case__media {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: 18px;
  background: var(--night-deep);
}

.case__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.08);
}

.case__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(155deg, var(--sodium) 0%, var(--ember) 38%, var(--red) 62%, var(--dusk) 100%);
  mix-blend-mode: color;
}

.case__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 3.2vw, 3rem);
  font-weight: 800;
  line-height: 0.95;
}

.case--lead .case__title {
  font-size: clamp(2.75rem, 5.5vw, 5rem);
}

.case__meta {
  margin: 0.45rem 0 0;
  color: var(--sodium);
  font-size: 0.9375rem;
  font-weight: 600;
}

.case__desc {
  max-width: 34rem;
  margin: 0.6rem 0 0;
  color: var(--haze);
}

@media (min-width: 760px) {
  .featured {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .case--lead {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1000px) {
  .featured {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  .case {
    grid-column: span 6;
  }

  .case--lead {
    grid-column: span 7;
    grid-row: span 2;
  }

  .case--side {
    grid-column: span 5;
  }

  .case--lead .case__media {
    flex: 1;
    aspect-ratio: auto;
    min-height: 460px;
  }
}

.index {
  margin-top: clamp(72px, 14vh, 160px);
  padding: clamp(28px, 4vw, 56px);
  border-radius: 26px;
}

.index__title {
  margin: 0 0 1.5rem;
  color: var(--haze);
  font-size: 1.125rem;
  font-weight: 600;
}

.index__list {
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--moon);
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.08;
  text-wrap: pretty;
}

.index__item {
  display: inline;
  transition: color 0.2s ease;
}

.index__item:not(:last-child)::after {
  content: "/";
  display: inline;
  margin-inline: 0.28em 0.32em;
  color: var(--ember);
  font-weight: 300;
}

.index__item[data-img]:hover {
  color: var(--sodium);
}

.index-preview {
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--z-preview);
  width: 300px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 14px;
  opacity: 0;
  pointer-events: none;
  transform: translate3d(-9999px, 0, 0);
  box-shadow: 0 24px 60px rgba(12, 9, 32, 0.6);
  transition: opacity 0.2s ease;
}

.index-preview.is-visible {
  opacity: 1;
}

.index-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (hover: none), (pointer: coarse) {
  .index-preview {
    display: none;
  }
}

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

  .js .hero__video,
  .js .hero__title .line > span,
  .js .hero__lede,
  .js .hero__actions {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .svc,
  .svc__more {
    transition: none !important;
  }

  .js .work__stage {
    --rise: 1;
  }

  .work__stage {
    position: relative;
  }

  .work__content {
    margin-top: 0;
    padding-top: clamp(56px, 7vw, 96px);
    padding-bottom: var(--section-y);
  }

  .menu,
  .menu-toggle__icon::before,
  .menu-toggle__icon::after {
    transition: none;
  }
}

/* Clients */

.clients {
  background: var(--night-deep);
}

.clients__title {
  margin: 0 0 clamp(40px, 5vw, 72px);
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 800;
  line-height: 0.9;
}

.clients__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: clamp(28px, 3vw, 44px) clamp(20px, 3vw, 48px);
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.clients__grid li {
  display: grid;
  place-items: center;
}

.clients__grid img {
  width: 100%;
  max-width: 116px;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  opacity: 0.85;
  filter: brightness(0) invert(1);
}

/* Careers */

.careers {
  overflow: hidden;
  background: var(--red);
  color: #fff;
}

.careers ::selection {
  background: var(--night);
  color: #fff;
}

.careers__layout {
  display: grid;
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}

.careers .section-head {
  margin-bottom: 0;
}

.careers .section-intro {
  color: #fff;
}

.careers__art {
  margin: 0;
}

.careers__art svg {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 60px rgba(60, 8, 14, 0.35);
}

@media (min-width: 900px) {
  .careers__layout {
    grid-template-columns: 1.05fr 0.95fr;
  }
}

/* Contact */

.contact {
  background: var(--night);
}

.contact__layout {
  display: grid;
  gap: clamp(48px, 6vw, 96px);
}

.contact__details {
  display: grid;
  gap: 1.5rem;
  margin: clamp(32px, 4vw, 48px) 0 0;
}

.detail {
  margin: 0;
}

.detail__label {
  display: block;
  margin-bottom: 0.15rem;
  color: var(--haze);
  font-size: 0.9375rem;
}

.detail__value {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: rgba(244, 237, 228, 0.35);
  text-underline-offset: 5px;
}

.detail__value:hover {
  color: var(--sodium);
  text-decoration-color: currentColor;
}

.social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0.4rem 0 0;
  padding: 0;
  list-style: none;
}

.social__link {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1.5px solid rgba(244, 237, 228, 0.35);
  border-radius: 50%;
  color: var(--moon);
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.social__link:hover {
  border-color: var(--moon);
  background: var(--moon);
  color: var(--night);
}

.social__link svg {
  width: 22px;
  height: 22px;
}

.social--small {
  margin: 0;
}

.social--small .social__link {
  width: 44px;
  height: 44px;
}

.social--small .social__link svg {
  width: 18px;
  height: 18px;
}

.form {
  display: grid;
  gap: 1.25rem;
  padding: clamp(24px, 3.5vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(42, 24, 80, 0.95), rgba(42, 24, 80, 0.45));
}

.form__row {
  display: grid;
  gap: 1.25rem;
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field__label {
  font-size: 0.9375rem;
  font-weight: 600;
}

.field__req {
  color: var(--sodium);
}

.field__hint {
  margin: 0;
  color: var(--haze);
  font-size: 0.875rem;
}

.field__control {
  width: 100%;
  min-height: 52px;
  padding: 0.75rem 1rem;
  border: 1.5px solid rgba(244, 237, 228, 0.3);
  border-radius: 10px;
  background: rgba(12, 9, 32, 0.6);
  color: var(--moon);
  font-size: 1rem;
  transition: border-color 0.2s ease;
}

.field__control:hover {
  border-color: rgba(244, 237, 228, 0.55);
}

.field__control:focus-visible {
  border-color: var(--sodium);
  outline: 2px solid var(--sodium);
  outline-offset: 1px;
}

.field__control[aria-invalid="true"] {
  border-color: #FF8A70;
}

textarea.field__control {
  min-height: 150px;
  resize: vertical;
}

select.field__control option {
  background: var(--night);
  color: var(--moon);
}

.field__error {
  margin: 0;
  color: #FF9A84;
  font-size: 0.9375rem;
}

.field__error:empty {
  display: none;
}

.form__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.form__status {
  flex: 1 1 16rem;
  margin: 0;
  color: var(--haze);
  font-size: 0.9375rem;
}

@media (min-width: 640px) {
  .form__row {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 960px) {
  .contact__layout {
    grid-template-columns: 0.9fr 1.1fr;
  }
}

/* Footer */

.site-footer {
  padding: clamp(64px, 8vw, 112px) 0 32px;
  overflow: hidden;
  background: var(--night-deep);
}

.footer__mark {
  width: 100%;
  height: auto;
  margin-bottom: clamp(40px, 5vw, 72px);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
  color: var(--haze);
  font-size: 0.9375rem;
}

.footer__bottom p {
  margin: 0;
}

.footer__nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer__nav a {
  text-decoration: none;
}

.footer__nav a:hover {
  color: var(--moon);
  text-decoration: underline;
  text-underline-offset: 3px;
}
