@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-400.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-600.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Sora";
  src: url("../fonts/sora-500.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Sora";
  src: url("../fonts/sora-600.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --black: #0a0a0a;
  --near-black: #151515;
  --stone: #f7f4ee;
  --sand: #c9c1b6;
  --muted: #aaa69f;
  --line: rgba(247, 244, 238, 0.2);
}

* { box-sizing: border-box; }

html {
  background: var(--near-black);
  scroll-padding-top: 100px;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--near-black);
  color: var(--stone);
  font-family: "Inter", Arial, sans-serif;
}

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

.skip {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  background: var(--stone);
  color: var(--black);
  transform: translateY(-150%);
}

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

.gallery-header {
  position: fixed;
  z-index: 100;
  inset: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 96px;
  padding: 18px max(32px, calc((100vw - 1380px) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(10, 10, 10, 0.94);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.gallery-brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
}

.gallery-brand img {
  width: 60px;
  height: auto;
  filter: invert(1);
}

.gallery-brand-type {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-family: "Sora", sans-serif;
  white-space: nowrap;
}

.gallery-brand-type strong {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.27em;
}

.gallery-brand-type small {
  font-size: 0.4rem;
  font-weight: 500;
  letter-spacing: 0.19em;
}

.gallery-header nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 42px);
  font-family: "Sora", sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.gallery-header nav a:hover,
.gallery-header nav a[aria-current="page"] { color: var(--sand); }

.eyebrow,
.study-number {
  color: var(--sand);
  font-family: "Sora", sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.gallery-overview {
  width: min(1380px, calc(100% - 64px));
  margin: 0 auto;
  padding: clamp(170px, 15vw, 220px) 0 100px;
}

.overview-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: clamp(50px, 9vw, 140px);
  align-items: end;
  margin-bottom: clamp(58px, 7vw, 94px);
}

.overview-intro h1 {
  margin: 24px 0 0;
  font-family: "Sora", sans-serif;
  font-size: clamp(3.2rem, 7vw, 7rem);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.065em;
}

.overview-intro h1 em {
  color: var(--sand);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

.overview-intro > p {
  max-width: 510px;
  margin: 0 0 8px;
  color: #c9c5be;
  font-size: 1.08rem;
  line-height: 1.75;
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(26px, 4vw, 56px);
}

.gallery-tile {
  display: block;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.gallery-tile-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  margin-bottom: 24px;
  border: 1px solid rgba(247, 244, 238, 0.12);
  background: #111;
}

.gallery-tile-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease, filter 500ms ease;
}

.gallery-tile:hover img,
.gallery-tile:focus-visible img {
  transform: scale(1.018);
  filter: brightness(1.06);
}

.tile-live {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 10px 12px;
  border: 1px solid rgba(247, 244, 238, 0.32);
  background: rgba(10, 10, 10, 0.72);
  font-family: "Sora", sans-serif;
  font-size: 0.63rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.gallery-tile-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
}

.gallery-tile h2 {
  margin: 9px 0 0;
  font-family: "Sora", sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 500;
  letter-spacing: -0.045em;
}

.tile-arrow { font-size: 1.7rem; }

.gallery-tile > p {
  max-width: 540px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.7;
}

.study-main {
  min-height: 100svh;
  padding-top: 96px;
}

.study-shell {
  display: grid;
  grid-template-columns: minmax(270px, 0.34fr) minmax(0, 1fr);
  min-height: calc(100svh - 96px);
}

.study-copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 44px;
  padding: clamp(46px, 6vw, 86px) clamp(32px, 5vw, 76px);
  border-right: 1px solid var(--line);
  background: var(--near-black);
}

.back-link {
  display: inline-flex;
  gap: 10px;
  color: var(--sand);
  font-family: "Sora", sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.study-copy h1 {
  margin: 20px 0 24px;
  font-family: "Sora", sans-serif;
  font-size: clamp(2.6rem, 5vw, 5.2rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.06em;
}

.study-copy p {
  max-width: 420px;
  margin: 0;
  color: #c9c5be;
  font-size: 1rem;
  line-height: 1.75;
}

.study-instructions {
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.study-instructions strong {
  display: block;
  margin-bottom: 10px;
  color: var(--stone);
  font-family: "Sora", sans-serif;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.study-instructions p { color: var(--muted); font-size: 0.9rem; }

.study-next {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--sand);
  font-family: "Sora", sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.study-viewer {
  min-width: 0;
  min-height: calc(100svh - 96px);
  background: #111;
}

.study-viewer iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: calc(100svh - 96px);
  border: 0;
}

.gallery-footer {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  width: min(1380px, calc(100% - 64px));
  margin: 0 auto;
  padding: 32px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
}

:is(a, button):focus-visible {
  outline: 2px solid var(--sand);
  outline-offset: 6px;
}

@media (max-width: 900px) {
  .overview-intro { grid-template-columns: 1fr; gap: 28px; }
  .overview-grid { grid-template-columns: 1fr; gap: 56px; }
  .study-shell { grid-template-columns: 1fr; }
  .study-copy { border-right: 0; border-bottom: 1px solid var(--line); }
  .study-viewer, .study-viewer iframe { min-height: 68svh; height: 68svh; }
}

@media (max-width: 640px) {
  html { scroll-padding-top: 88px; }
  .gallery-header { min-height: 88px; padding: 16px 20px; }
  .gallery-brand { gap: 9px; }
  .gallery-brand img { width: 50px; }
  .gallery-brand-type { gap: 5px; }
  .gallery-brand-type strong { font-size: 0.68rem; letter-spacing: 0.2em; }
  .gallery-brand-type small { font-size: 0.33rem; letter-spacing: 0.12em; }
  .gallery-header nav { gap: 14px; font-size: 0.64rem; }
  .gallery-header nav a:first-child { display: none; }
  .gallery-overview { width: min(100% - 40px, 1380px); padding-top: 148px; }
  .overview-intro h1 { font-size: clamp(3.1rem, 15vw, 4.8rem); }
  .gallery-footer { width: min(100% - 40px, 1380px); flex-direction: column; }
  .study-main { padding-top: 88px; }
  .study-copy { padding: 42px 20px; }
  .study-copy h1 { font-size: clamp(2.7rem, 14vw, 4rem); }
  .study-viewer, .study-viewer iframe { min-height: 64svh; height: 64svh; }
}

.gallery-story { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 80px); margin-top: 80px; padding-top: 44px; border-top: 1px solid var(--line); }
.gallery-story h2 { margin: 18px 0 0; max-width: 540px; font: 500 clamp(2rem, 4vw, 3.8rem)/1.12 Sora, sans-serif; letter-spacing: -.05em; }
.gallery-story h2 em { color: var(--sand); font-family: Georgia, serif; font-weight: 400; }
.gallery-story p { margin: 0 0 24px; color: #c9c5be; font-size: 1rem; line-height: 1.75; }
.story-link { display: inline-flex; gap: 20px; padding: 12px 0; border-bottom: 1px solid var(--sand); color: var(--stone); font-size: .9rem; }
.gallery-tile img[src="posters/studio-tools.jpg"] { transform: rotate(180deg); }
.gallery-tile:hover img[src="posters/studio-tools.jpg"], .gallery-tile:focus-visible img[src="posters/studio-tools.jpg"] { transform: rotate(180deg) scale(1.018); }
@media (min-width: 901px) { .study-shell { height: calc(100svh - 96px); grid-template-rows: minmax(0, 1fr); } .study-copy { min-height: 0; overflow-y: auto; } .study-viewer, .study-viewer iframe { min-height: 0; height: 100%; } }
@media (max-width: 900px) { .gallery-story { grid-template-columns: 1fr; margin-top: 60px; } }
@media (max-width: 380px) { body { min-width: 0; } .gallery-header { padding-inline: 14px; gap: 18px; } .gallery-brand-type small { display: none; } .gallery-header nav { gap: 10px; letter-spacing: .05em; } .gallery-header nav a:last-child { display: none; } .gallery-brand-type strong { letter-spacing: .08em; } }
