:root {
  --black: #0a0a0a;
  --white: #fafafa;
  --gray: #606060;
  --text-soft: #222;
  --light: #e8e8e8;
  --font: "Akkurat", "Montserrat", "Helvetica Neue", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--white);
  color: var(--black);
  cursor: none;
  font-family: var(--font);
  font-weight: 200;
  text-rendering: geometricPrecision;
}

* {
  cursor: none !important;
}

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

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

.cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  pointer-events: none;
  background: #ffd400;
  box-shadow: 0 0 18px rgba(255, 212, 0, 0.28);
  opacity: 0;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.cursor-ring {
  display: none;
}

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px 48px;
  border-bottom: 1px solid var(--light);
  background: rgba(250, 250, 250, 0.94);
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  color: var(--black);
  font-size: 13px;
  font-weight: 200;
  letter-spacing: 0.4em;
  line-height: 1;
  text-transform: uppercase;
}

.nav-mark {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
}

.nav-links a {
  color: var(--black);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  transition: opacity 0.3s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  opacity: 0.35;
}

.page {
  min-height: 100vh;
  padding-top: 98px;
}

.splash-page {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 120px 48px 72px;
  overflow: hidden;
  border-bottom: 1px solid var(--light);
  background: var(--white);
  text-align: center;
}

.splash-page::before {
  position: absolute;
  inset: 8vh 4vw;
  background-image: url("../brand/gameros-pattern-02.webp");
  background-position: center;
  background-repeat: no-repeat;
  background-size: min(1200px, 96vw) auto;
  content: "";
  opacity: 0.045;
}

.splash-inner {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 32px;
  translate: clamp(-72px, -3vw, -32px) 0;
  width: min(88vw, 960px);
}

.splash-logo {
  width: clamp(82px, 10vw, 132px);
  height: clamp(82px, 10vw, 132px);
  object-fit: contain;
  opacity: 0;
  animation: fadeUp 1s ease 0.25s forwards;
}

.splash-title {
  color: var(--black);
  font-size: clamp(44px, 8vw, 116px);
  font-weight: 100;
  letter-spacing: 0.22em;
  line-height: 1;
  width: max-content;
  padding-left: 0;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  animation: fadeUp 1s ease 0.45s forwards;
}

.splash-subtitle {
  color: var(--gray);
  font-size: clamp(9px, 1vw, 11px);
  font-weight: 300;
  letter-spacing: 0.5em;
  line-height: 1.8;
  text-transform: uppercase;
  opacity: 0;
  animation: fadeUp 1s ease 0.65s forwards;
}

.splash-enter {
  position: absolute;
  right: 48px;
  bottom: 64px;
  color: var(--gray);
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  opacity: 0;
  animation: fadeUp 1s ease 0.9s forwards;
}

.hero-eyebrow,
.hero-sub,
.hero-scroll,
.section-label,
.project-kicker,
.project-facts,
.image-slot span,
.footer p {
  color: var(--gray);
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.5em;
  text-transform: uppercase;
}

.hero-eyebrow {
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp 1s ease 0.5s forwards;
}

.hero-title {
  margin-bottom: 32px;
  color: var(--black);
  font-size: clamp(42px, 5vw, 72px);
  font-weight: 100;
  letter-spacing: 0.2em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  animation: fadeUp 1s ease 0.7s forwards;
}

.hero-sub {
  opacity: 0;
  animation: fadeUp 1s ease 0.9s forwards;
}

.hero-scroll {
  position: absolute;
  right: 48px;
  bottom: 64px;
  display: flex;
  align-items: center;
  gap: 16px;
  writing-mode: vertical-rl;
  opacity: 0;
  animation: fadeUp 1s ease 1.2s forwards;
}

.hero-scroll::after {
  display: block;
  width: 1px;
  height: 60px;
  background: var(--light);
  content: "";
}

.home-actions {
  display: flex;
  gap: 28px;
  margin-top: 48px;
  opacity: 0;
  animation: fadeUp 1s ease 1.05s forwards;
}

.text-link {
  padding-bottom: 6px;
  border-bottom: 1px solid currentColor;
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  transition: opacity 0.3s ease;
}

.text-link:hover {
  opacity: 0.35;
}

.content-section {
  padding: 120px 48px;
  background: var(--white);
}

.work-section {
  position: relative;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 80px;
}

.section-label {
  white-space: nowrap;
}

.section-line {
  flex: 1;
  height: 1px;
  background: var(--light);
}

.work-intro {
  max-width: 620px;
  margin: -36px 0 58px;
  color: rgba(10, 10, 10, 0.58);
  font-size: 15px;
  font-style: italic;
  font-weight: 100;
  letter-spacing: 0.02em;
  line-height: 1.85;
}

.project-list {
  position: relative;
  z-index: 2;
  display: grid;
  border-top: 1px solid var(--light);
}

.project-item {
  position: relative;
  display: grid;
  grid-template-columns: 60px 1fr 220px 90px;
  align-items: center;
  overflow: hidden;
  padding: 28px 0;
  border-bottom: 1px solid var(--light);
  color: var(--black);
  transition: padding-left 0.45s cubic-bezier(0.76, 0, 0.24, 1), border-color 0.45s ease;
}

.project-item::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(10, 10, 10, 0.025);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.76, 0, 0.24, 1), background-position 0.8s ease;
}

.project-item.hover-sage::before {
  background: rgba(166, 184, 159, 0.08);
}

.project-item.hover-stone::before {
  background: rgba(188, 170, 148, 0.08);
}

.project-item.hover-peach::before {
  background: rgba(244, 188, 158, 0.08);
}

.project-item.hover-terracotta::before {
  background: rgba(176, 104, 77, 0.07);
}

.project-item.hover-gold::before {
  background: rgba(218, 184, 102, 0.08);
}

.project-item.hover-bluegray::before {
  background: rgba(145, 163, 174, 0.08);
}

.project-item.art-hover::before {
  background:
    radial-gradient(ellipse at 12% 20%, rgba(126, 255, 220, 0.08), transparent 34%),
    radial-gradient(ellipse at 28% 80%, rgba(255, 158, 222, 0.08), transparent 36%),
    radial-gradient(ellipse at 52% 42%, rgba(194, 178, 255, 0.1), transparent 38%),
    radial-gradient(ellipse at 78% 22%, rgba(255, 245, 155, 0.07), transparent 34%),
    radial-gradient(ellipse at 92% 75%, rgba(118, 226, 255, 0.08), transparent 38%),
    linear-gradient(118deg,
      rgba(255, 255, 255, 0.98) 0%,
      rgba(248, 226, 255, 0.14) 28%,
      rgba(222, 246, 255, 0.12) 54%,
      rgba(255, 233, 248, 0.14) 78%,
      rgba(255, 255, 255, 0.98) 100%);
  background-blend-mode: screen, screen, screen, screen, screen, normal;
  background-size: 210% 210%, 180% 180%, 220% 220%, 190% 190%, 200% 200%, 260% 100%;
  filter: saturate(0.92) contrast(1);
  box-shadow: inset 0 0 28px rgba(255, 255, 255, 0.24), inset 0 0 18px rgba(194, 178, 255, 0.06);
}

.project-item:hover::before {
  background-position: 100% 0;
  transform: scaleX(1);
}

.project-item:hover,
.project-item:focus-visible {
  border-color: rgba(10, 10, 10, 0.18);
  padding-left: 14px;
}

.proj-num,
.proj-name,
.proj-type,
.proj-year {
  position: relative;
  z-index: 1;
  transition: color 0.3s ease;
}

.proj-num,
.proj-year {
  color: var(--gray);
  font-size: 11px;
  font-weight: 200;
  letter-spacing: 0.2em;
}

.proj-name {
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 100;
  letter-spacing: 0.08em;
  line-height: 1.1;
  text-transform: uppercase;
}

.proj-type {
  color: var(--gray);
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.proj-year {
  text-align: right;
}

.project-item:hover .proj-num,
.project-item:hover .proj-name,
.project-item:hover .proj-type,
.project-item:hover .proj-year {
  color: var(--black);
}

.project-item:hover .proj-type,
.project-item:hover .proj-year,
.project-item:hover .proj-num {
  opacity: 0.62;
}

.work-preview {
  position: fixed;
  top: 50%;
  right: clamp(28px, 6vw, 96px);
  z-index: 1;
  width: min(30vw, 430px);
  height: min(42vw, 560px);
  pointer-events: none;
  transform: translateY(-45%);
}

.work-preview img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  filter: grayscale(0.12) contrast(0.96);
  transform: translateY(12px) scale(0.985);
  transition: opacity 0.45s ease, transform 0.55s cubic-bezier(0.76, 0, 0.24, 1), filter 0.45s ease;
}

.work-preview img.is-active {
  opacity: 0.72;
  filter: grayscale(0) contrast(0.98);
  transform: translateY(0) scale(1);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(360px, 1fr);
  gap: clamp(44px, 5vw, 84px);
  align-items: start;
  max-width: 1180px;
  margin: 0 auto;
}

.about-studio-name,
.contact-title,
.project-title {
  color: var(--black);
  font-weight: 100;
  letter-spacing: 0.15em;
  line-height: 1;
  text-transform: uppercase;
}

.about-studio-name {
  margin-bottom: 48px;
  font-size: clamp(42px, 6vw, 80px);
  letter-spacing: 0.2em;
  white-space: nowrap;
}

.about-lockup {
  max-width: 1180px;
  margin: 96px auto 0;
  padding-top: 48px;
  border-top: 1px solid var(--light);
  text-align: center;
}

.about-lockup .about-studio-name {
  margin-bottom: 24px;
  font-size: clamp(32px, 4vw, 58px);
}

.about-tagline {
  margin-bottom: 48px;
  color: var(--gray);
  font-size: 10px;
  font-weight: 200;
  letter-spacing: 0.5em;
  text-transform: uppercase;
}

.about-lockup .about-tagline {
  margin-bottom: 0;
}

.about-divider {
  width: 40px;
  height: 1px;
  margin-bottom: 48px;
  background: var(--light);
}

.about-bio,
.project-description {
  color: var(--text-soft);
  font-size: 15px;
  font-weight: 200;
  letter-spacing: 0.02em;
  line-height: 1.9;
}

.about-bio {
  margin-bottom: 64px;
}

.about-bio strong {
  color: var(--black);
  font-weight: 300;
}

.portrait-slot {
  max-width: 390px;
  aspect-ratio: 4 / 5;
  margin-bottom: 56px;
}

.credentials {
  border-top: 1px solid var(--light);
  padding-top: 40px;
}

.cred-label {
  margin-bottom: 24px;
  color: var(--gray);
  font-size: 9px;
  font-weight: 300;
  letter-spacing: 0.5em;
  text-transform: uppercase;
}

.cred-item {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 0;
  border-bottom: 1px solid var(--light);
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.08em;
}

.cred-item span {
  color: var(--gray);
}

.contact-page {
  position: relative;
  display: flex;
  min-height: calc(100vh - 98px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 120px 48px;
  overflow: hidden;
  text-align: center;
}

.contact-page::before {
  position: absolute;
  inset: 12%;
  background-image: url("../brand/gameros-pattern-02.webp");
  background-position: center;
  background-repeat: no-repeat;
  background-size: min(980px, 110vw) auto;
  content: "";
  opacity: 0.055;
}

.contact-page > * {
  position: relative;
  z-index: 1;
}

.contact-title {
  margin-bottom: 48px;
  font-size: clamp(42px, 5vw, 64px);
  line-height: 1.1;
}

.contact-email {
  display: inline-block;
  margin-bottom: 28px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--black);
  color: var(--black);
  font-size: 14px;
  font-weight: 200;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  transition: opacity 0.3s ease;
}

.contact-email:hover {
  opacity: 0.35;
}

.contact-location {
  margin-bottom: 46px;
  color: var(--gray);
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.42em;
  text-transform: uppercase;
}

.contact-links {
  display: flex;
  gap: 40px;
}

.contact-links a {
  color: var(--gray);
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.contact-links a:hover {
  color: var(--black);
}

.project-hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: calc(100vh - 98px);
  margin-top: 98px;
  overflow: hidden;
  padding: clamp(130px, 14vw, 210px) clamp(48px, 7vw, 118px) clamp(72px, 8vw, 118px);
  border-bottom: 1px solid var(--light);
  background: var(--black);
  isolation: isolate;
}

.project-hero::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.2) 48%, rgba(0, 0, 0, 0.5)),
    linear-gradient(0deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.08) 58%);
  content: "";
  pointer-events: none;
}

.project-title {
  margin: 18px 0 30px;
  font-size: clamp(32px, 3.7vw, 54px);
}

.project-description {
  max-width: 560px;
}

.project-facts {
  display: grid;
  gap: 12px;
  margin-top: 38px;
  letter-spacing: 0.28em;
}

.project-hero > .fade-in:not(.project-cover) {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(170px, 260px);
  grid-template-areas:
    "kicker facts"
    "title facts"
    "description facts"
    "actions facts";
  column-gap: clamp(44px, 7vw, 120px);
  align-items: end;
  width: min(100%, 1180px);
  color: var(--white);
}

.project-hero .project-kicker {
  grid-area: kicker;
  color: rgba(250, 250, 250, 0.74);
}

.project-hero .project-title {
  grid-area: title;
  max-width: 880px;
  color: var(--white);
  text-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
}

.project-hero .project-description {
  grid-area: description;
  max-width: 640px;
  color: rgba(250, 250, 250, 0.82);
}

.project-hero .project-facts {
  grid-area: facts;
  align-self: end;
  margin-top: 0;
  padding-left: 28px;
  border-left: 1px solid rgba(250, 250, 250, 0.34);
  color: rgba(250, 250, 250, 0.76);
}

.project-hero .project-actions {
  grid-area: actions;
}

.project-hero .document-link {
  border-bottom-color: rgba(250, 250, 250, 0.82);
  color: var(--white);
}

.project-actions {
  margin-top: 42px;
}

.document-link {
  display: inline-block;
  border-bottom: 1px solid var(--black);
  color: var(--black);
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.38em;
  padding-bottom: 8px;
  text-transform: uppercase;
  transition: opacity 0.3s ease;
}

.document-link:hover {
  opacity: 0.35;
}

.project-cover {
  position: absolute;
  inset: 0;
  z-index: 0;
  min-height: 0;
  border: 0;
  background: var(--black);
}

.project-cover::after {
  display: none;
}

.project-cover[data-note]::before,
.project-cover[data-note]::after,
.project-cover[data-note]:hover::before,
.project-cover[data-note]:hover::after {
  display: none;
}

.project-cover img {
  filter: saturate(0.95) contrast(0.98);
}

.project-hero::after {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 2;
  width: 1px;
  height: 42px;
  background: rgba(250, 250, 250, 0.58);
  content: "";
  transform-origin: top;
  animation: scrollLine 1.8s ease-in-out infinite;
}

.gallery {
  display: grid;
  gap: 48px;
  max-width: 1680px;
  margin: 0 auto;
  padding: 84px clamp(64px, 7vw, 132px) 140px;
}

.compact-gallery {
  max-width: 1040px;
  margin: 0 auto;
}

.compact-gallery .gallery-row {
  gap: 42px;
  justify-content: center;
}

.compact-gallery .image-slot {
  min-height: 300px;
}

.compact-gallery .image-slot.tall {
  min-height: 440px;
}

.compact-gallery .image-slot.wide {
  min-height: 48vh;
}

.compact-gallery .image-slot.art-crop {
  width: min(100%, 360px);
  justify-self: center;
}

.compact-gallery .gallery-row.single .image-slot.art-crop {
  width: min(100%, 390px);
}

.project-gallery .image-slot,
.project-gallery .image-slot.tall,
.project-gallery .image-slot.wide {
  aspect-ratio: 4 / 5;
  min-height: 0;
  width: min(100%, 390px);
  justify-self: center;
}

.project-gallery .gallery-row.single .image-slot {
  aspect-ratio: 16 / 9;
  width: min(100%, 822px);
}

.project-gallery .gallery-row.feature-row,
.process-gallery .gallery-row.feature-row {
  grid-template-columns: 1fr;
}

.project-gallery .gallery-row.feature-row .image-slot,
.process-gallery .gallery-row.feature-row .image-slot {
  aspect-ratio: 16 / 9;
  width: min(100%, 1040px);
}

.process-section {
  display: grid;
  gap: 112px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 96px clamp(64px, 7vw, 132px) 150px;
}

.process-project {
  display: grid;
  gap: 42px;
  padding-top: 56px;
  border-top: 1px solid var(--light);
}

.process-project h2 {
  margin: 14px 0 24px;
  color: var(--black);
  font-size: clamp(28px, 3.4vw, 48px);
  font-weight: 100;
  letter-spacing: 0.08em;
  line-height: 1.15;
  text-transform: uppercase;
}

.process-project p:not(.project-kicker) {
  max-width: 620px;
  color: var(--text-soft);
  font-size: 15px;
  font-weight: 300;
  letter-spacing: 0.03em;
  line-height: 1.9;
}

.process-project .image-slot {
  aspect-ratio: 4 / 5;
  min-height: 0;
}

.process-project .image-slot.wide {
  aspect-ratio: 16 / 9;
}

.process-project .gallery-row.single .image-slot {
  aspect-ratio: 16 / 9;
}

.process-gallery .gallery-heading {
  margin-top: 72px;
}

.process-gallery .gallery-heading:first-child {
  margin-top: 0;
}

.process-gallery .image-slot.wide {
  aspect-ratio: 16 / 9;
  width: min(100%, 499px);
}

.process-gallery .gallery-row.single .image-slot.wide {
  width: min(100%, 822px);
}

.process-gallery .gallery-row.single .image-slot.art-crop {
  aspect-ratio: 4 / 5;
  width: min(100%, 390px);
}

.process-gallery .gallery-row.feature-row .image-slot.wide {
  width: min(100%, 1040px);
}

.process-copy {
  display: grid;
  gap: 22px;
  justify-items: start;
  max-width: 620px;
  margin-bottom: 24px;
}

.process-copy h2 {
  color: var(--black);
  font-size: clamp(28px, 3.4vw, 48px);
  font-weight: 100;
  letter-spacing: 0.08em;
  line-height: 1.15;
  text-transform: uppercase;
}

.process-copy p {
  color: var(--text-soft);
  font-size: 15px;
  font-weight: 300;
  letter-spacing: 0.03em;
  line-height: 1.9;
}

.thesis-maps .image-slot,
.thesis-maps .image-slot.wide {
  aspect-ratio: 16 / 9;
}

.essay-section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px clamp(64px, 7vw, 132px) 150px;
}

.essay-header {
  display: grid;
  gap: 24px;
  margin-bottom: 54px;
  padding-top: 72px;
  border-top: 1px solid var(--light);
}

.essay-header h2 {
  max-width: 880px;
  color: var(--black);
  font-size: clamp(30px, 4vw, 58px);
  font-weight: 100;
  letter-spacing: 0.08em;
  line-height: 1.15;
  text-transform: uppercase;
}

.essay-header p:last-child,
.essay-meta {
  color: var(--gray);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.essay-body {
  max-width: 760px;
}

.essay-body h3 {
  margin: 64px 0 20px;
  color: var(--black);
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.34em;
  line-height: 1.7;
  text-transform: uppercase;
}

.essay-body p {
  margin-bottom: 22px;
  color: var(--text-soft);
  font-size: 16px;
  font-weight: 300;
  letter-spacing: 0.02em;
  line-height: 1.9;
}

.essay-body .essay-meta {
  margin-bottom: 52px;
  font-size: 10px;
  line-height: 1.7;
}

.essay-bio {
  margin-top: 42px;
  padding-top: 28px;
  border-top: 1px solid var(--light);
}

.gallery-heading {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 32px;
}

.gallery-heading:first-child {
  margin-top: 0;
}

.gallery-heading span {
  color: var(--gray);
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  white-space: nowrap;
}

.gallery-heading div {
  flex: 1;
  height: 1px;
  background: var(--light);
}

.video-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.36fr);
  gap: 48px;
  align-items: end;
}

.video-feature video {
  display: block;
  width: 100%;
  max-height: 78vh;
  background: var(--white);
  object-fit: contain;
}

.video-feature p {
  max-width: 340px;
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 0.04em;
  line-height: 1.8;
}

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

.gallery-row.single {
  grid-template-columns: 1fr;
}

.image-slot {
  position: relative;
  display: grid;
  min-height: 420px;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--light);
  background: #f2f2f2;
}

.project-hero .project-cover {
  position: absolute;
  inset: 0;
  z-index: 0;
  min-height: 0;
  border: 0;
  background: var(--black);
}

.image-slot.tall {
  min-height: 620px;
}

.image-slot.wide {
  min-height: 72vh;
}

.image-slot.art-crop {
  aspect-ratio: 4 / 5;
  min-height: 0;
}

.gallery-row.single .image-slot.art-crop {
  width: min(100%, 560px);
  justify-self: center;
}

.image-slot img {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.4s ease, scale 0.5s ease;
}

.image-slot.is-loaded img {
  cursor: none;
}

.image-slot.is-loaded img {
  opacity: 1;
}

.image-slot.is-loaded span {
  display: none;
}

.image-slot[data-note]::before {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  height: 120px;
  border-top: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(250, 250, 250, 0.9);
  content: "";
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.image-slot[data-note]::after {
  position: absolute;
  right: 28px;
  bottom: 26px;
  left: 28px;
  z-index: 3;
  color: var(--black);
  content: attr(data-kind) "\A" attr(data-note);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.16em;
  line-height: 1.7;
  opacity: 0;
  pointer-events: none;
  text-transform: uppercase;
  transform: translateY(18px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  white-space: pre-line;
}

.image-slot[data-note]:hover::before,
.image-slot[data-note]:hover::after {
  opacity: 1;
  transform: translateY(0);
}

.image-slot.is-loaded[data-note]:hover img {
  scale: 1.015;
}

.project-hero .project-cover[data-note]::before,
.project-hero .project-cover[data-note]::after,
.project-hero .project-cover[data-note]:hover::before,
.project-hero .project-cover[data-note]:hover::after {
  display: none;
  content: "";
}

.project-hero .project-cover.is-loaded[data-note]:hover img {
  scale: 1;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: clamp(28px, 5vw, 72px);
  background: rgba(250, 250, 250, 0.96);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox img {
  width: auto;
  max-width: 92vw;
  height: auto;
  max-height: 86vh;
  cursor: none;
  object-fit: contain;
}

.lightbox-hint {
  position: fixed;
  right: 36px;
  bottom: 30px;
  color: rgba(10, 10, 10, 0.48);
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.38em;
  text-transform: uppercase;
}

.lightbox-close {
  position: fixed;
  top: 32px;
  right: 36px;
  border: 0;
  background: transparent;
  color: var(--black);
  cursor: none;
  font-family: var(--font);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.4em;
  text-transform: uppercase;
}

body.lightbox-open {
  overflow: hidden;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px 48px;
  border-top: 1px solid var(--light);
  background: var(--white);
}

.project-footer {
  align-items: end;
  padding-top: 42px;
  padding-bottom: 42px;
}

.next-project {
  display: grid;
  gap: 10px;
}

.next-project span {
  color: var(--gray);
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.38em;
  text-transform: uppercase;
}

.next-project strong {
  color: var(--black);
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 100;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
  transition: opacity 0.3s ease;
}

.next-project:hover strong {
  opacity: 0.45;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

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

@keyframes scrollLine {
  0%, 100% {
    opacity: 0.35;
    transform: scaleY(0.45);
  }

  50% {
    opacity: 0.85;
    transform: scaleY(1);
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 1500px) {
  .project-title {
    font-size: 54px;
  }

  .project-description {
    font-size: 14px;
  }
}

@media (max-width: 900px) {
  .site-nav {
    flex-direction: column;
    gap: 24px;
    padding: 28px 24px;
  }

  .nav-links {
    gap: 22px;
  }

  .nav-links a {
    letter-spacing: 0.22em;
  }

  .splash-page,
  .content-section,
  .contact-page,
  .project-hero,
  .gallery {
    padding-right: 24px;
    padding-left: 24px;
  }

  .page,
  .project-page {
    padding-top: 142px;
  }

  .project-page {
    padding-top: 0;
  }

  .splash-page {
    min-height: 100vh;
    padding-top: 168px;
  }

  .splash-inner {
    gap: 28px;
    translate: 0 0;
  }

  .splash-title {
    width: 100%;
    max-width: 100%;
    font-size: clamp(34px, 10vw, 54px);
    letter-spacing: 0.14em;
    padding-left: 0;
    white-space: normal;
  }

  .splash-enter {
    right: 24px;
    bottom: 40px;
  }

  .project-item {
    grid-template-columns: 42px 1fr;
    gap: 8px 18px;
  }

  .project-item:hover,
  .project-item:focus-visible {
    padding-left: 0;
  }

  .work-preview {
    display: none;
  }

  .proj-type,
  .proj-year {
    grid-column: 2;
    text-align: left;
  }

  .gallery-row,
  .video-feature {
    grid-template-columns: 1fr;
  }

  .project-hero {
    min-height: calc(100vh - 142px);
    margin-top: 142px;
    padding-top: 108px;
    padding-bottom: 84px;
  }

  .project-hero > .fade-in:not(.project-cover) {
    grid-template-columns: 1fr;
    grid-template-areas:
      "kicker"
      "title"
      "description"
      "facts"
      "actions";
    gap: 0;
  }

  .project-hero .project-title {
    margin-bottom: 24px;
  }

  .project-hero .project-facts {
    margin-top: 34px;
    padding-top: 22px;
    padding-left: 0;
    border-top: 1px solid rgba(250, 250, 250, 0.34);
    border-left: 0;
  }

  .project-gallery .gallery-row.feature-row,
  .process-gallery .gallery-row.feature-row {
    grid-template-columns: 1fr;
  }

  .about-grid {
    grid-template-columns: minmax(220px, 0.82fr) minmax(0, 1fr);
    gap: 32px;
    max-width: 980px;
  }

  .portrait-slot {
    max-width: 320px;
    margin-bottom: 36px;
  }

  .about-studio-name {
    font-size: clamp(30px, 5vw, 46px);
    white-space: normal;
  }
}

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

@media (pointer: coarse) {
  * {
    cursor: auto !important;
  }

  .cursor,
  .cursor-ring {
    display: none;
  }
}
