/* Copyright 2026 Devi Interactive. All Rights Reserved. */

:root {
  --bg: #0A0A0C;
  --bg-alt: #0E0F11;
  --panel: #151619;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #F3F1ED;
  --soft: rgba(243, 241, 237, 0.72);
  --muted: #868C93;
  --accent: #D96B27;
  --radius: 4px;
  --wrap: 1360px;
  --head: 84px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scrollbar-width: none;
  scroll-padding-top: var(--head);
}

html::-webkit-scrollbar { display: none; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 300;
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* Soft fade when a page opens and when a link leaves it */
.js body { animation: page-in 0.6s ease both; }
.js body.leaving { animation: none; opacity: 0; transition: opacity 0.24s ease; }

@keyframes page-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Fine film grain over the whole page */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.9 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.022em;
}

h1 { font-size: clamp(36px, 4.4vw, 58px); }
h3 { font-size: 21px; letter-spacing: -0.012em; }

p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }
img, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }

.wrap {
  width: min(var(--wrap), 100% - 80px);
  margin-inline: auto;
}

.muted { color: var(--muted); }
.soft { color: var(--soft); }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--soft);
  margin-bottom: 22px;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--accent);
}

.sec-title { font-size: clamp(28px, 3vw, 42px); }

.lead {
  font-size: 18.5px;
  font-weight: 300;
  color: var(--soft);
  max-width: 560px;
  margin-top: 22px;
}

.statement {
  font-size: clamp(22px, 2vw, 29px);
  font-weight: 300;
  line-height: 1.36;
  letter-spacing: -0.012em;
}

.arr {
  width: 16px;
  height: 16px;
  flex: none;
}

/* Text link with a line that redraws on hover */

.more {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 7px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.more::before,
.more::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--line-strong);
}

.more::after {
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease);
}

.more:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.more .arr { transition: transform 0.45s var(--ease); }
.more:hover .arr { transform: translateX(5px); }

/* Round arrow button. The arrow leaves to the right and comes back from the left. */

.go {
  width: 46px;
  height: 46px;
  flex: none;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  transition: background 0.5s var(--ease), border-color 0.5s var(--ease);
}

a:hover > .go .arr,
a:hover .tile-info .go .arr,
a:hover .pcard-text .go .arr,
a:hover .next-text .go .arr { animation: go 0.5s var(--ease); }

@keyframes go {
  0% { transform: translateX(0); }
  45% { transform: translateX(180%); }
  46% { transform: translateX(-180%); }
  100% { transform: translateX(0); }
}

.tag {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1;
  padding: 7px 10px;
  border-radius: 2px;
}

.label {
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Buttons: a light panel slides up on hover */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 18px 26px;
  overflow: hidden;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1;
  border: 1px solid transparent;
  border-radius: 2px;
  background: none;
  cursor: pointer;
  transition: color 0.45s var(--ease), border-color 0.45s var(--ease);
}

.btn::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: var(--text);
  transform: translateY(102%);
  transition: transform 0.45s var(--ease);
}

.btn > * {
  position: relative;
  transition: transform 0.45s var(--ease);
}

.btn:hover { color: var(--bg); }
.btn:hover::before { transform: none; }
.btn:hover .arr { transform: translateX(4px); }

.btn-primary { background: var(--accent); color: #fff; }
.btn-line { border-color: rgba(255, 255, 255, 0.36); }
.btn-line:hover { border-color: var(--text); }

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 40px;
}

/* Header */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: transform 0.5s var(--ease), background 0.4s, border-color 0.4s;
}

.site-header.solid {
  background: rgba(10, 10, 12, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
}

/* Slides away on the way down, back on the way up */
.site-header.away { transform: translateY(-101%); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--head);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: "Anton", var(--font);
  font-size: 21px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
}

.logo img {
  width: 28px;
  height: 28px;
  transition: transform 0.9s var(--ease);
}

.logo:hover img { transform: rotate(90deg); }
.logo b { font-weight: 400; color: var(--accent); }

.nav {
  display: flex;
  align-items: center;
  gap: 44px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.nav a:not(.nav-cta) {
  position: relative;
  padding: 8px 0;
  color: var(--soft);
  transition: color 0.3s;
}

.nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease);
}

.nav a:hover,
.nav a.active { color: var(--text); }

.nav a:not(.nav-cta):hover::after,
.nav a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-cta {
  position: relative;
  overflow: hidden;
  padding: 15px 22px;
  line-height: 1;
  color: #fff;
  background: var(--accent);
  border-radius: 2px;
  transition: color 0.45s var(--ease);
}

.nav-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--text);
  transform: translateY(102%);
  transition: transform 0.45s var(--ease);
}

.nav-cta span { position: relative; }
.nav-cta:hover { color: var(--bg); }
.nav-cta:hover::before { transform: none; }

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: none;
  border: 0;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 1px;
  margin: 7px 0;
  background: var(--text);
  transition: transform 0.5s var(--ease);
}

.menu-open .nav-toggle span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-open .nav-toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* Home hero */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

/* The picture settles from a slight zoom when the page opens */
.js .hero-media { animation: settle 2s var(--ease) both; }

@keyframes settle {
  from { transform: scale(1.14); }
  to { transform: none; }
}

.hero-pic {
  position: absolute;
  inset: 0;
  background: var(--panel) url("../assets/video/reel-poster.webp") center / cover no-repeat;
  will-change: transform;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.6s ease;
}

.hero-video.ready { opacity: 1; }

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 10, 12, 0.84) 0%, rgba(10, 10, 12, 0.5) 38%, rgba(10, 10, 12, 0) 72%),
    linear-gradient(180deg, rgba(10, 10, 12, 0.62) 0%, rgba(10, 10, 12, 0) 26%, rgba(10, 10, 12, 0) 48%, rgba(10, 10, 12, 0.96) 100%);
}

.hero-body {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  padding: calc(var(--head) + 70px) 0 72px;
}

.hero h1 { max-width: 780px; }
.hero .eyebrow { color: var(--text); }
.hero .reveal { --base: 0.2s; }

.scroll-cue {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--soft);
}

.scroll-cue span { writing-mode: vertical-rl; }

.scroll-cue i {
  position: relative;
  width: 1px;
  height: 64px;
  overflow: hidden;
  background: var(--line-strong);
}

.scroll-cue i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--text);
  animation: cue 2.4s var(--ease) infinite;
}

@keyframes cue {
  0% { transform: translateY(-100%); }
  55%, 100% { transform: translateY(100%); }
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-strong);
}

.hero-facts li { padding: 28px 28px 36px 0; }

.hero-facts li + li {
  padding-left: 32px;
  border-left: 1px solid var(--line);
}

.hero-facts strong {
  display: block;
  font-size: 36px;
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.hero-facts span {
  display: block;
  margin-top: 10px;
  font-size: 14px;
  color: var(--soft);
}

/* Sections */

.section { padding: 150px 0; }
.section-alt { background: var(--bg-alt); }
.section-tight { padding: 0 0 150px; }
.section-alt + .section-tight { padding-top: 150px; }

.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 64px;
}

/* A top line that draws in from the left */

.rule {
  position: relative;
  border: 0;
}

.rule::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: var(--line-strong);
  transform-origin: left;
  transition: transform 1.1s var(--ease);
  transition-delay: inherit;
}

.js .rule:not(.in)::before { transform: scaleX(0); }

/* Services list with a picture that follows the hovered row */

.svc {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: 88px;
  align-items: start;
}

.svc-row {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 36px 0;
}

.svc-row > div { transition: transform 0.5s var(--ease); }

.svc-num {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--muted);
  align-self: start;
  padding-top: 10px;
  transition: color 0.4s;
}

.svc-row h3 {
  font-size: 30px;
  letter-spacing: -0.02em;
  color: var(--soft);
  transition: color 0.4s;
}

.svc-row p {
  margin-top: 10px;
  font-size: 16px;
  color: var(--muted);
  max-width: 470px;
}

.svc-row .go { opacity: 0.45; transition: opacity 0.4s, background 0.5s var(--ease), border-color 0.5s var(--ease); }

.svc-row.on h3,
.svc-row:hover h3 { color: var(--text); }

.svc-row.on > div { transform: translateX(10px); }
.svc-row.on .svc-num { color: var(--accent); }

.svc-row.on .go {
  opacity: 1;
  background: var(--accent);
  border-color: var(--accent);
}

.svc-preview {
  position: sticky;
  top: calc(var(--head) + 24px);
  aspect-ratio: 1 / 1.06;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
}

/* Each new picture wipes in from the bottom over the last one */
.svc-preview img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  clip-path: inset(100% 0 0 0);
}

.svc-preview img.on {
  clip-path: inset(0 0 0 0);
  transition: clip-path 0.75s var(--ease);
}

/* Project tiles */

.mosaic {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

.tile {
  position: relative;
  display: block;
  min-height: 380px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
  isolation: isolate;
}

.tile.w7 { grid-column: span 7; }
.tile.w5 { grid-column: span 5; }
.tile.w4 { grid-column: span 4; }
.tile.tall { min-height: 540px; }

.tile img,
.tile video,
.pcard-media img,
.pcard-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tile img,
.pcard-media img {
  filter: brightness(0.9);
  transition: transform 1.3s var(--ease), filter 0.6s ease;
}

.tile video,
.pcard-media video {
  opacity: 0;
  transition: opacity 0.7s ease;
}

.playing video { opacity: 1; }

.tile:hover img,
.pcard:hover .pcard-media img {
  transform: scale(1.05);
  filter: brightness(1);
}

.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
  background: linear-gradient(180deg, rgba(10, 10, 12, 0.3) 0%, rgba(10, 10, 12, 0) 30%, rgba(10, 10, 12, 0) 46%, rgba(10, 10, 12, 0.9) 100%);
}

.tile .tag,
.pcard-media .tag {
  position: absolute;
  top: 22px;
  left: 22px;
  z-index: 2;
}

.tile-info {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 30px 32px;
}

.tile-info > div { transition: transform 0.6s var(--ease); }
.tile:hover .tile-info > div { transform: translateY(-6px); }

.tile h3 { font-size: 25px; letter-spacing: -0.018em; }

.tile p {
  margin-top: 6px;
  font-size: 14.5px;
  color: var(--soft);
}

.tile:hover .go,
.pcard:hover .go,
.next:hover .go {
  background: var(--accent);
  border-color: var(--accent);
}

/* Engines and stores */

.strip { border-bottom: 1px solid var(--line); }

.strip-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 48px;
  padding: 40px 0;
  font-size: 18px;
  font-weight: 400;
  color: var(--soft);
}

.strip-label {
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.strip-label:not(:first-child) { margin-left: auto; }

/* Studio block on the home page */

.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 110px;
  align-items: center;
}

.about-text .muted { margin-top: 26px; max-width: 500px; }
.about-text .more { margin-top: 44px; }

.about-media {
  position: relative;
  padding: 0 0 84px 84px;
}

.about-big,
.about-small {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
}

.about-big { aspect-ratio: 4 / 3; }

.about-small {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 44%;
  aspect-ratio: 4 / 3;
  border: 8px solid var(--bg);
  will-change: transform;
}

.about-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Contact banner */

.cta-wrap { padding: 0 0 150px; }
.section-alt + .cta-wrap { padding-top: 150px; }

.cta {
  position: relative;
  min-height: 460px;
  display: flex;
  align-items: center;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
  isolation: isolate;
}

.cta > img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
  background: linear-gradient(90deg, rgba(10, 10, 12, 0.95) 0%, rgba(10, 10, 12, 0.74) 42%, rgba(10, 10, 12, 0.1) 100%);
}

.cta-text {
  padding: 72px;
  max-width: 640px;
}

.cta-text h2 { font-size: clamp(28px, 3vw, 42px); }

.cta-text p:not(.eyebrow) {
  margin-top: 16px;
  color: var(--soft);
}

.cta-text .btn { margin-top: 36px; }

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  padding-top: 84px;
  font-size: 15px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 76px;
}

.footer-brand p {
  margin-top: 20px;
  max-width: 300px;
  color: var(--muted);
}

.footer-mail {
  position: relative;
  display: inline-block;
  margin-top: 26px;
  padding-bottom: 5px;
  font-size: 22px;
  letter-spacing: -0.01em;
}

.footer-mail::before,
.footer-mail::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--line-strong);
}

.footer-mail::after {
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease);
}

.footer-mail:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.footer-grid h4 {
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
}

.footer-grid h4 ~ a {
  display: block;
  width: fit-content;
  padding: 5px 0;
  color: var(--soft);
  transition: color 0.3s, transform 0.5s var(--ease);
}

.footer-grid h4 ~ a:hover {
  color: var(--text);
  transform: translateX(5px);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--muted);
}

/* Inner page heads */

.page-hero,
.proj-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 60vh;
  padding: calc(var(--head) + 90px) 0 72px;
  overflow: hidden;
  background: var(--panel);
  isolation: isolate;
}

.proj-hero { min-height: 88vh; }

.page-hero > img,
.proj-hero > img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
}

.page-hero::after,
.proj-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(10, 10, 12, 0.72) 0%, rgba(10, 10, 12, 0.2) 60%, rgba(10, 10, 12, 0) 100%),
    linear-gradient(180deg, rgba(10, 10, 12, 0.64) 0%, rgba(10, 10, 12, 0.1) 30%, rgba(10, 10, 12, 0.3) 60%, var(--bg) 100%);
}

.page-hero-text,
.proj-hero-text { position: relative; }

.page-hero .reveal,
.proj-hero .reveal,
.page-top .reveal { --base: 0.15s; }

.page-hero .eyebrow,
.proj-hero .crumbs { color: var(--text); }

.page-top { padding: calc(var(--head) + 100px) 0 72px; }

.crumbs {
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.crumbs a { border-bottom: 1px solid var(--line-strong); transition: border-color 0.3s; }
.crumbs a:hover { border-color: var(--accent); }
.crumbs i { margin: 0 12px; font-style: normal; color: var(--muted); }

/* Services page */

.sblock {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: center;
}

.sblock.flip .sblock-media { order: 2; }

.sblock-media {
  aspect-ratio: 4 / 3.4;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
}

.sblock-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sblock-text .svc-num { display: block; padding: 0; margin-bottom: 18px; color: var(--accent); }
.sblock-text .soft { margin-top: 24px; max-width: 540px; }
.sblock-text .label { margin: 44px 0 16px; }

.gets {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 36px;
}

.gets li {
  position: relative;
  padding: 12px 0 12px 22px;
  border-top: 1px solid var(--line);
  font-size: 15px;
  color: var(--soft);
}

.gets li::before,
.plain-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 24px;
  width: 9px;
  height: 1px;
  background: var(--accent);
}

.related {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.related a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 20px 8px 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 15px;
  transition: border-color 0.4s, background 0.4s;
}

.related a:hover { border-color: var(--line-strong); background: rgba(255, 255, 255, 0.03); }
.related .arr { transition: transform 0.45s var(--ease); }
.related a:hover .arr { transform: translateX(4px); }

.related img {
  width: 78px;
  height: 50px;
  object-fit: cover;
  border-radius: 2px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 44px;
}

.steps li { padding-top: 30px; }

.steps .svc-num { display: block; padding: 0; margin-bottom: 56px; color: var(--accent); }
.steps h3 { margin-bottom: 12px; }
.steps p { font-size: 15.5px; color: var(--muted); }

/* Projects page */

.filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 52px;
}

.filter button {
  padding: 13px 20px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1;
  color: var(--soft);
  cursor: pointer;
  transition: border-color 0.4s, color 0.4s, background 0.4s;
}

.filter button:hover { border-color: var(--line-strong); color: var(--text); }

.filter button.on {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
}

.filter sup {
  font-size: 10px;
  margin-left: 4px;
  opacity: 0.6;
}

.pgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px 28px;
  transition: opacity 0.35s ease, transform 0.6s var(--ease);
}

/* The grid dips out while the filter swaps the cards */
.pgrid.swap {
  opacity: 0;
  transform: translateY(16px);
}

.pcard.hide { display: none; }

.pcard-media {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
}

.pcard-text {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 20px;
  align-items: center;
  padding-top: 24px;
}

.pcard-text h3 { font-size: 25px; letter-spacing: -0.018em; }
.pcard-text .go { grid-row: span 2; }
.pcard-text p { color: var(--muted); font-size: 15.5px; }

/* Project page */

.facts {
  display: grid;
  grid-template-columns: repeat(5, auto);
  justify-content: space-between;
  gap: 24px 40px;
  padding: 36px 0 40px;
  border-bottom: 1px solid var(--line);
}

.facts span {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.facts strong {
  font-size: 17.5px;
  font-weight: 400;
}

.proj-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 110px;
  align-items: start;
}

.proj-body .soft { margin-top: 24px; max-width: 540px; }

.plain-list li {
  position: relative;
  padding: 16px 0 16px 24px;
  border-top: 1px solid var(--line);
  color: var(--soft);
}

.plain-list li:last-child { border-bottom: 1px solid var(--line); }
.plain-list li::before { top: 30px; }

.proj-video {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
}

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

.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.gallery.cols3 { grid-template-columns: repeat(3, 1fr); }

.shot {
  position: relative;
  display: block;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
  aspect-ratio: 16 / 9;
  cursor: zoom-in;
}

.shot.wide {
  grid-column: 1 / -1;
  aspect-ratio: 21 / 9;
}

.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.3s var(--ease);
}

.shot:hover img { transform: scale(1.04); }

.shot span {
  position: absolute;
  left: 16px;
  bottom: 16px;
  padding: 8px 12px;
  background: rgba(10, 10, 12, 0.8);
  border-radius: 2px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s, transform 0.6s var(--ease);
}

.shot:hover span,
.shot:focus-visible span {
  opacity: 1;
  transform: none;
}

.tech {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 80px;
  align-items: start;
}

.tech dl > div {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 20px;
  padding: 17px 0;
  border-top: 1px solid var(--line);
}

.tech dl > div:last-child { border-bottom: 1px solid var(--line); }
.tech dt { color: var(--muted); }

.next {
  position: relative;
  display: block;
  padding: 130px 0;
  overflow: hidden;
  background: var(--panel);
  isolation: isolate;
}

.next > img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
}

.next::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(10, 10, 12, 0.7);
  transition: background 0.8s ease;
}

.next:hover::after { background: rgba(10, 10, 12, 0.46); }

.next-text {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 0 24px;
}

.next-text .eyebrow { grid-column: 1 / -1; color: var(--text); }
.next-text h2 { font-size: clamp(32px, 3.8vw, 52px); }
.next-text .go { width: 60px; height: 60px; }

/* Lightbox */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6, 6, 8, 0.97);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0s 0.5s;
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s ease;
}

.lightbox img {
  max-width: min(92vw, 1920px);
  max-height: 82vh;
  border-radius: 2px;
  opacity: 0;
  transform: scale(0.965);
  transition: opacity 0.35s ease, transform 0.6s var(--ease);
}

.lightbox img.shown {
  opacity: 1;
  transform: none;
}

.lightbox button {
  position: absolute;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
}

.lightbox button:hover { background: var(--accent); border-color: var(--accent); }
.lightbox .lb-close { top: 26px; right: 26px; }
.lightbox .lb-prev { left: 26px; top: 50%; margin-top: -26px; }
.lightbox .lb-prev .arr { transform: rotate(180deg); }
.lightbox .lb-next { right: 26px; top: 50%; margin-top: -26px; }

.lb-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 30px;
  text-align: center;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--soft);
}

/* Studio page */

.intro {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 110px;
  align-items: start;
}

.intro .soft { margin-top: 22px; max-width: 560px; }

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.stats li {
  padding: 34px 30px 36px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stats strong {
  display: block;
  font-size: 46px;
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
}

.stats span {
  display: block;
  margin-top: 10px;
  font-size: 14.5px;
  color: var(--muted);
}

.teamwrap {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  align-items: start;
}

.teamwrap .muted { margin-top: 18px; max-width: 300px; }

.team {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.portrait {
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(160deg, #1C1E22, var(--panel));
}

.portrait span {
  font-family: "Anton", var(--font);
  font-size: 40px;
  letter-spacing: 0.06em;
  color: rgba(243, 241, 237, 0.24);
}

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

/* One person: picture and text side by side */
.team.solo { grid-template-columns: 1fr; }

.team.solo .member {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
  align-items: end;
}

.team.solo .portrait { margin-bottom: 0; }
.team.solo .member h3 { font-size: 26px; }
.team.solo .member p:last-child { max-width: 420px; font-size: 15.5px; }

.member h3 { font-size: 19px; }

.member .role {
  margin: 8px 0 12px;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.member p { font-size: 14.5px; color: var(--muted); }

.values {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 44px;
}

.values > div { padding-top: 30px; }

.values h3 { margin-bottom: 14px; }
.values p { font-size: 15.5px; color: var(--muted); }

/* Contact page */

.contact {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 110px;
  align-items: start;
  padding-bottom: 72px;
}

.contact-list { margin-top: 56px; }

.contact-list li {
  display: grid;
  grid-template-columns: 120px 1fr;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.contact-list li:last-child { border-bottom: 1px solid var(--line); }

.contact-list span {
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  align-self: center;
}

.contact-list a { transition: color 0.3s; }
.contact-list a:hover { color: var(--accent); }

.form {
  display: grid;
  gap: 28px;
  padding: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-alt);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.form label {
  display: grid;
  gap: 4px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.form input,
.form select,
.form textarea {
  width: 100%;
  padding: 12px 0;
  font: inherit;
  font-size: 16.5px;
  font-weight: 300;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  transition: border-color 0.4s;
}

.form select option { background: var(--panel); }

.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: none;
  border-bottom-color: var(--accent);
}

.form textarea { resize: vertical; }
.form .btn { justify-self: start; margin-top: 4px; }
.form-note { font-size: 13.5px; color: var(--muted); margin-top: -10px; }

/* Entrances. Without script everything is simply visible. */

.js .reveal { transition-delay: calc(var(--base, 0s) + var(--d, 0s)); }

.js .reveal:not(.split):not(.r-img) {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition-property: opacity, transform;
  transition-duration: 0.8s, 0.95s;
  transition-timing-function: ease, var(--ease);
}

.js .reveal.in:not(.split):not(.r-img) {
  opacity: 1;
  transform: none;
}

/* Pictures open like a shutter and settle from a small zoom */

.js .r-img {
  clip-path: inset(0 0 100% 0);
  transition-property: clip-path;
  transition-duration: 1s;
  transition-timing-function: var(--ease);
}

.js .r-img.in { clip-path: inset(0 0 0 0); }

.js .r-img img:not([data-px]),
.js .r-img video { transition: transform 1.4s var(--ease), filter 0.6s ease, opacity 0.5s ease; }

.js .r-img:not(.in) img:not([data-px]),
.js .r-img:not(.in) video { transform: scale(1.2); }

.js .svc .svc-preview img.on { transition: clip-path 0.75s var(--ease), transform 1.4s var(--ease); }

/* Headings rise word by word from behind a mask */

.split .w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.16em;
  margin-bottom: -0.16em;
}

.split .w > span {
  display: inline-block;
  transition: transform 0.9s var(--ease);
  transition-delay: calc(var(--base, 0s) + var(--d, 0s) + var(--i) * 35ms);
}

.js .split:not(.in) .w > span { transform: translateY(112%); }
.js .split:not(.ready) { opacity: 0; }

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

/* Smaller screens */

@media (max-width: 1080px) {
  .svc, .about, .sblock, .proj-body, .intro, .contact { gap: 60px; }
  .values, .steps { grid-template-columns: 1fr 1fr; }
  .facts { grid-template-columns: repeat(3, auto); justify-content: start; gap: 24px 56px; }
}

@media (max-width: 900px) {
  .section { padding: 100px 0; }
  .section-tight { padding: 0 0 100px; }
  .section-alt + .section-tight, .section-alt + .cta-wrap { padding-top: 100px; }
  .cta-wrap { padding-bottom: 100px; }
  .svc, .about, .sblock, .proj-body, .intro, .contact, .tech, .teamwrap { grid-template-columns: 1fr; gap: 48px; }
  .svc-preview, .scroll-cue { display: none; }
  .svc-row.on > div { transform: none; }
  .sblock.flip .sblock-media { order: 0; }
  .tile.w7, .tile.w5, .tile.w4 { grid-column: span 12; }
  .tile, .tile.tall { min-height: 360px; }
  .hero-facts { grid-template-columns: 1fr 1fr; }
  .hero-facts li:nth-child(3) { padding-left: 0; border-left: 0; }
  .hero-facts li:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .pgrid { grid-template-columns: 1fr; gap: 52px; }
  .gallery.cols3 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .strip-label:not(:first-child) { margin-left: 0; flex-basis: 100%; }
  .about-media { padding: 0 0 52px 52px; }
}

@media (max-width: 640px) {
  :root { --head: 72px; }
  .wrap { width: min(var(--wrap), 100% - 40px); }
  .sec-head { flex-direction: column; align-items: flex-start; margin-bottom: 40px; }
  .hero-body { padding-bottom: 48px; }
  .hero-shade {
    background: linear-gradient(180deg, rgba(10, 10, 12, 0.72) 0%, rgba(10, 10, 12, 0.45) 40%, rgba(10, 10, 12, 0.96) 100%);
  }
  .hero-facts li { padding: 22px 16px 26px 0; }
  .hero-facts li + li { padding-left: 20px; }
  .hero-facts strong { font-size: 30px; }
  .svc-row { grid-template-columns: 36px 1fr auto; padding: 28px 0; }
  .svc-row h3 { font-size: 24px; }
  .gets, .values, .steps, .gallery, .gallery.cols3, .form-row, .team { grid-template-columns: 1fr; }
  .shot.wide { aspect-ratio: 16 / 9; }
  .team.solo .member { grid-template-columns: 1fr; gap: 20px; }
  .team.solo .portrait { max-width: 240px; }
  .facts { grid-template-columns: 1fr 1fr; gap: 24px; }
  .tech dl > div { grid-template-columns: 1fr; gap: 2px; }
  .cta-text { padding: 48px 28px; }
  .cta { min-height: 0; }
  .form { padding: 30px 22px; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; gap: 4px; }
  .proj-hero { min-height: 68vh; }
  .next { padding: 84px 0; }
  .lightbox .lb-prev, .lightbox .lb-next { top: auto; bottom: 72px; margin: 0; }
  .nav-toggle { display: block; }
  .nav {
    position: fixed;
    inset: var(--head) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 20px 24px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    transform: translateY(-130%);
    transition: transform 0.5s var(--ease);
  }
  .nav.open { transform: none; }
  .nav a:not(.nav-cta) { padding: 18px 0; border-bottom: 1px solid var(--line); }
  .nav a:not(.nav-cta)::after { display: none; }
  .nav a.active { color: var(--accent); }
  .nav .nav-cta { margin-top: 20px; padding: 18px; text-align: center; }
  .site-header.menu-open { background: var(--bg); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js body, .js .hero-media, .scroll-cue i::after { animation: none; }
  .js .reveal, .js .reveal:not(.split):not(.r-img), .js .r-img, .split .w > span {
    opacity: 1;
    transform: none !important;
    clip-path: none;
    transition: none;
  }
  .js .r-img:not(.in) img:not([data-px]), .js .r-img:not(.in) video { transform: none; }
  .js .split:not(.ready) { opacity: 1; }
}
