:root {
  --bg: #101111;
  --ink: #f4f2ef;
  --muted: #bab7b0;
  --dim: #75736e;
  --line: rgba(244, 242, 239, 0.16);
  --accent: #d7e6dd;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: "Inter", Arial, Helvetica, sans-serif;
  --favorit: "ABCFavorit", "Inter", Arial, Helvetica, sans-serif;
}

@font-face {
  font-family: "ABCFavorit";
  src: url("../fonts/ABCFavorit-Bold-Trial.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
}

a,
button {
  color: inherit;
}

button {
  font: inherit;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  opacity: 0.18;
  mix-blend-mode: overlay;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 3px 3px;
}

.site-shell,
main,
.page {
  min-height: 100vh;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: clamp(18px, 2vw, 28px);
  pointer-events: none;
}

.brand-mark,
.menu-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  min-height: 34px;
  pointer-events: auto;
  text-decoration: none;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand-mark svg,
.menu-logo svg {
  width: 26px;
  height: 26px;
  fill: var(--ink);
}

.brand-mark span,
.menu-logo span {
  display: inline-block;
}

.menu-toggle,
.menu-close {
  border: 0;
  padding: 0;
  background: transparent;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0;
  line-height: 1;
  cursor: pointer;
  pointer-events: auto;
}

.page {
  position: fixed;
  inset: 0;
  display: grid;
  opacity: 0;
  visibility: hidden;
  transform: translateY(18px);
  transition:
    opacity 420ms ease,
    transform 520ms ease,
    visibility 420ms ease;
}

.page.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.page-home {
  overflow: hidden;
  place-items: center;
  padding: clamp(24px, 5vw, 78px);
  background:
    radial-gradient(circle at 50% 15%, rgba(215, 230, 221, 0.14), transparent 26rem),
    #0b0d0d;
}

.hero-visual {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-visual img {
  position: absolute;
  inset: -18% -4% 0;
  width: 108%;
  height: 128%;
  object-fit: cover;
  object-position: 50% 20%;
  filter: contrast(1.03) saturate(1.04);
  transform: scale(1.08);
}

.hero-visual::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: -20%;
  right: 0;
  left: 0;
  height: 120%;
  background:
    linear-gradient(90deg, rgba(8, 10, 10, 0.42), rgba(8, 10, 10, 0.02) 42%, rgba(8, 10, 10, 0.24)),
    linear-gradient(180deg, rgba(8, 10, 10, 0.04), rgba(8, 10, 10, 0.42));
  pointer-events: none;
}

.scanline {
  display: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: max-content max-content;
  column-gap: 0.08em;
  align-items: baseline;
  justify-items: start;
  margin: calc(18vh + clamp(48px, 7vh, 82px)) 0 0;
  max-width: 92vw;
}

.hero-title {
  grid-column: 1 / -1;
  display: contents;
  margin: 0;
}

.hero-title span {
  font-family: var(--favorit);
  font-size: clamp(4.8rem, 14.4vw, 13.8rem);
  font-weight: 700;
  line-height: 0.78;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
}

.hero-title span:first-child {
  transform: translateY(0.025em);
}

.corner-copy,
.section-kicker,
.eyebrow,
.project-number,
.featured,
.project-filters {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0;
}

.corner-copy {
  position: absolute;
  z-index: 3;
  bottom: clamp(26px, 6vw, 82px);
  margin: 0;
}

.corner-left {
  left: clamp(24px, 9vw, 180px);
}

.corner-right {
  right: clamp(24px, 10vw, 190px);
}

.hero-role {
  position: relative;
  z-index: 3;
  grid-column: 1;
  margin: 14px 0 0 0.99em;
  bottom: auto;
  left: auto;
}

.hero-location {
  position: relative;
  z-index: 3;
  grid-column: 2;
  justify-self: end;
  margin: 14px 5% 0 0;
  bottom: auto;
  left: auto;
}

.page-projects {
  overflow: hidden;
  padding: 0;
  background:
    radial-gradient(circle at 50% 35%, rgba(244, 242, 239, 0.08), transparent 32rem),
    #111212;
  cursor: auto;
}

.stream-showcase {
  position: relative;
  min-height: 100dvh;
  height: 100dvh;
  overflow: hidden;
  color: var(--ink);
}

.stream-hero {
  position: relative;
  z-index: 12;
  display: grid;
  justify-items: center;
  padding: clamp(68px, 11dvh, 104px) 18px 0;
  text-align: center;
  pointer-events: none;
}

.stream-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 28px;
  border: 1px solid rgba(244, 242, 239, 0.14);
  border-radius: 999px;
  padding: 0 12px;
  background: rgba(16, 17, 17, 0.42);
  color: rgba(244, 242, 239, 0.68);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
}

.stream-eyebrow span:last-child {
  color: var(--ink);
  letter-spacing: 0;
  text-transform: none;
}

.stream-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--ink);
  box-shadow: 0 0 0 5px rgba(244, 242, 239, 0.08);
}

.stream-divider {
  color: rgba(244, 242, 239, 0.24);
}

.stream-title {
  display: grid;
  margin: 14px 0 0;
  font-family: var(--favorit);
  font-size: clamp(4.6rem, 10.8vw, 10.2rem);
  font-weight: 700;
  line-height: 0.78;
  letter-spacing: 0;
  text-transform: none;
}

.fan-stage {
  position: absolute;
  inset: 0;
  z-index: 8;
  cursor: grab;
  touch-action: pan-y;
}

.fan-stage.is-dragging {
  cursor: grabbing;
}

.fan-origin {
  position: absolute;
  left: 50%;
  top: 59%;
  width: 0;
  height: 0;
}

.fan-card {
  position: absolute;
  width: min(35vw, 380px);
  height: min(47vw, 520px);
  min-width: 250px;
  min-height: 360px;
  margin-left: calc(min(35vw, 380px) / -2);
  margin-top: calc(min(47vw, 520px) / -2);
  transform-origin: 50% 230%;
  will-change: transform, opacity, filter;
}

.fan-card__inner {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: minmax(0, 1.28fr) auto;
  overflow: hidden;
  border: 1px solid rgba(244, 242, 239, 0.14);
  border-radius: 16px;
  background: #191a1a;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.32);
}

.fan-card__media,
.project-modal__media {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(244, 242, 239, 0.14), rgba(244, 242, 239, 0.02)),
    repeating-linear-gradient(90deg, rgba(244, 242, 239, 0.07) 0 1px, transparent 1px 18px),
    #101111;
}

.fan-card__cover,
.project-modal__slot img,
.project-modal__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fan-card__cover {
  transform: scale(1.02);
  transition: transform 420ms ease, opacity 320ms ease;
}

.fan-card[data-slug="samsung"] .fan-card__cover {
  object-position: 50% 18%;
}

.fan-card.is-center .fan-card__cover {
  transform: scale(1);
}

.fan-card__slots,
.project-modal__slots {
  display: flex;
  height: 100%;
  transform: translateX(calc(var(--slide, 0) * -100%));
  transition: transform 360ms ease;
}

.fan-card__slot,
.project-modal__slot {
  position: relative;
  flex: 0 0 100%;
  display: grid;
  place-items: center;
  color: rgba(244, 242, 239, 0.42);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.project-modal__nav {
  position: absolute;
  inset: auto auto 18px 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 2;
}

.project-modal__nav button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(244, 242, 239, 0.18);
  border-radius: 999px;
  background: rgba(16, 17, 17, 0.72);
  color: var(--ink);
  cursor: pointer;
}

.fan-card__copy {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 8px;
  padding: 18px;
  background: linear-gradient(180deg, rgba(16, 17, 17, 0.18), rgba(16, 17, 17, 0.94));
}

.fan-card__copy h3 {
  margin: 0;
  font-size: clamp(1.04rem, 1.68vw, 1.88rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: 0;
  text-transform: uppercase;
  overflow-wrap: normal;
  word-break: normal;
}

.fan-card__copy p {
  margin: 0;
}

.fan-card__meta,
.project-modal__label,
.project-modal__result {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(244, 242, 239, 0.58);
}

.project-modal__result {
  text-transform: none;
}

.project-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 240ms ease;
}

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

.project-modal__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(16, 17, 17, 0.82);
  backdrop-filter: blur(12px);
}

.project-modal__panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(300px, 0.95fr) minmax(320px, 0.8fr);
  width: min(1180px, calc(100vw - 32px));
  max-height: 92dvh;
  overflow: auto;
  border: 1px solid rgba(244, 242, 239, 0.14);
  border-radius: 18px;
  background: #111212;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.58);
}

.project-modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 4;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-family: var(--mono);
  font-size: 11px;
}

.project-modal__media {
  min-height: min(72dvh, 720px);
}

.project-modal__content {
  display: grid;
  align-content: center;
  gap: 18px;
  padding: clamp(28px, 4vw, 54px);
}

.project-modal__content h3 {
  margin: 0;
  font-size: clamp(1.5rem, 3.4vw, 3.5rem);
  font-weight: 900;
  line-height: 0.86;
  letter-spacing: 0;
  text-transform: uppercase;
}

.project-modal__content p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(0.8rem, 1.2vw, 1.02rem);
  line-height: 1.45;
}

.project-modal__thumbs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.project-modal__thumb {
  aspect-ratio: 1;
  border: 1px solid rgba(244, 242, 239, 0.14);
  border-radius: 8px;
  overflow: hidden;
  padding: 0;
  background: rgba(244, 242, 239, 0.04);
  color: rgba(244, 242, 239, 0.48);
  cursor: pointer;
  font-family: var(--mono);
  font-size: 10px;
}

.project-modal__thumb img {
  opacity: 0.62;
  transition: opacity 200ms ease, transform 240ms ease;
}

.project-modal__thumb.is-active {
  border-color: rgba(244, 242, 239, 0.64);
  color: var(--ink);
}

.project-modal__thumb.is-active img {
  opacity: 1;
  transform: scale(1.04);
}

.page-about {
  overflow-y: auto;
  padding: min(16vh, 150px) clamp(18px, 5vw, 78px) 50px;
  background:
    linear-gradient(90deg, rgba(16, 17, 17, 0.9) 0 34%, transparent 34%),
    radial-gradient(circle at 22% 44%, rgba(215, 230, 221, 0.13), transparent 28rem),
    #121313;
}

.about-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(180px, 0.55fr) minmax(320px, 1fr);
  gap: clamp(30px, 8vw, 130px);
  align-items: start;
}

.about-visual {
  position: absolute;
  inset: 0 auto 0 0;
  width: min(42vw, 650px);
  opacity: 0.62;
  pointer-events: none;
}

.about-frame {
  position: absolute;
  left: clamp(18px, 4vw, 70px);
  bottom: 8vh;
  width: min(31vw, 430px);
  aspect-ratio: 0.8;
  overflow: hidden;
  border: 1px solid rgba(244, 242, 239, 0.08);
  filter: grayscale(0.9) contrast(1.1) saturate(0.7);
  clip-path: inset(0);
}

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

.about-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 10, 10, 0.55), rgba(8, 10, 10, 0.1) 44%, rgba(8, 10, 10, 0.75));
  pointer-events: none;
}

.about-mobile-image {
  display: none;
}

.about-copy {
  grid-column: 2;
  max-width: 880px;
}

.eyebrow,
.project-number {
  margin: 0;
  color: var(--muted);
}

.about-copy h2 {
  margin: 18px 0 44px;
  font-size: clamp(2.8rem, 7.2vw, 8.2rem);
  font-weight: 900;
  line-height: 0.88;
  letter-spacing: 0;
}

.about-copy p:not(.eyebrow) {
  max-width: 780px;
  color: var(--ink);
  font-size: clamp(0.84rem, 1.54vw, 1.5rem);
  font-weight: 400;
  line-height: 1.35;
}

.experience-list {
  display: grid;
  margin-top: clamp(42px, 7dvh, 86px);
  border-top: 1px solid rgba(244, 242, 239, 0.18);
}

.experience-row {
  display: grid;
  grid-template-columns: minmax(150px, 0.38fr) minmax(260px, 1fr);
  gap: clamp(24px, 6vw, 96px);
  align-items: baseline;
  min-height: clamp(70px, 9dvh, 96px);
  border-bottom: 1px solid rgba(244, 242, 239, 0.18);
}

.experience-row span:first-child {
  color: var(--ink);
  font-size: clamp(0.84rem, 1.54vw, 1.5rem);
  line-height: 1.35;
  white-space: nowrap;
}

.experience-row span:last-child {
  color: var(--ink);
  font-size: clamp(0.84rem, 1.54vw, 1.5rem);
  line-height: 1.35;
}

.menu-panel {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(420px, 0.9fr);
  background: #101111;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition:
    opacity 280ms ease,
    transform 420ms ease,
    visibility 280ms ease;
}

.menu-panel.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.menu-art {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  background: #101111;
}

.menu-art img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 100vh;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05) saturate(0.68);
}

.menu-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 10, 10, 0.2), rgba(8, 10, 10, 0.78));
  pointer-events: none;
}

.menu-content {
  position: relative;
  min-height: 100vh;
  padding: clamp(22px, 5vw, 68px);
  display: grid;
  align-content: center;
  gap: clamp(82px, 12vh, 136px);
}

.menu-close {
  position: absolute;
  top: clamp(18px, 2vw, 28px);
  right: clamp(18px, 2vw, 28px);
}

.menu-logo {
  justify-self: start;
}

.main-nav,
.social-nav {
  display: grid;
}

.main-nav {
  gap: clamp(18px, 2.4vh, 28px);
}

.main-nav a {
  position: relative;
  display: inline-grid;
  overflow: hidden;
  width: max-content;
  padding-block: 0.08em;
  text-decoration: none;
  font-size: clamp(2.4rem, 4.2vw, 5.2rem);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 220ms ease;
}

.main-nav a::after {
  content: attr(data-label);
  position: absolute;
  inset: 0 auto auto 0;
  transform: translateY(112%);
  transform-origin: 50% 50%;
  color: #faa950;
  transition: transform 340ms cubic-bezier(0.22, 1, 0.36, 1);
}

.main-nav a span {
  display: inline-block;
  transition: transform 340ms cubic-bezier(0.22, 1, 0.36, 1);
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: #faa950;
}

.main-nav a:hover span,
.main-nav a:focus-visible span {
  transform: translateY(-112%);
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
  transform: translateY(0);
}

.social-nav {
  justify-items: start;
}

.social-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  text-decoration: none;
  transition: transform 220ms ease, opacity 220ms ease;
}

.social-nav svg {
  width: 22px;
  height: 22px;
  fill: var(--ink);
  transition: fill 220ms ease;
}

.social-nav a:hover,
.social-nav a:focus-visible {
  transform: translateY(-2px);
}

.social-nav a:hover svg,
.social-nav a:focus-visible svg {
  fill: #faa950;
}

@media (max-width: 980px) {
  body {
    overflow: auto;
  }

  .page {
    position: absolute;
    min-height: 100svh;
  }

  .hero-copy {
    margin-top: calc(18vh + clamp(48px, 7vh, 82px));
  }

  .hero-title span {
    font-size: clamp(4.8rem, 18vw, 9.6rem);
  }

  .hero-role {
    margin: 14px 0 0 0.99em;
  }

  .corner-right {
    right: auto;
    left: clamp(24px, 9vw, 180px);
    bottom: 86px;
  }

  .page-projects {
    padding: 0;
  }

  .stream-hero {
    padding-top: 82px;
  }

  .stream-title {
    font-size: clamp(2.72rem, 12vw, 5.28rem);
  }

  .fan-origin {
    top: 61%;
  }

  .fan-card {
    width: min(72vw, 320px);
    height: min(92vw, 430px);
    min-width: 220px;
    min-height: 320px;
    margin-left: calc(min(72vw, 320px) / -2);
    margin-top: calc(min(92vw, 430px) / -2);
    transform-origin: 50% 190%;
  }

  .fan-card__copy h3 {
    font-size: clamp(1.06rem, 5.6vw, 1.9rem);
  }

  .project-modal__panel {
    grid-template-columns: 1fr;
    width: calc(100vw - 24px);
  }

  .project-modal__media {
    min-height: 42dvh;
  }

  .project-modal__nav {
    bottom: 12px;
  }

  .experience-row {
    grid-template-columns: 1fr;
    gap: 10px;
    align-items: start;
    padding: 22px 0;
  }

  .project-card {
    grid-template-columns: 1fr;
    align-content: start;
  }

  .project-grid {
    min-height: 760px;
  }

  .project-image {
    min-height: 310px;
  }

  .about-layout {
    grid-template-columns: 1fr;
  }

  .about-copy {
    grid-column: 1;
  }

  .about-visual {
    display: none;
  }

  .about-mobile-image {
    display: block;
    width: min(68vw, 320px);
    aspect-ratio: 0.8;
    margin: 24px 0 28px;
    overflow: hidden;
    border: 1px solid rgba(244, 242, 239, 0.08);
    filter: grayscale(0.9) contrast(1.1) saturate(0.7);
  }

  .about-mobile-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .menu-panel {
    grid-template-columns: 1fr;
  }

  .menu-art {
    position: absolute;
    inset: 0;
    opacity: 0.42;
  }
}

@media (max-width: 620px) {
  .site-header {
    padding: 18px;
  }

  .brand-mark,
  .menu-logo {
    min-width: 34px;
    min-height: 34px;
  }

  .page-home {
    place-items: center;
    padding: 0 18px;
  }

  .hero-copy {
    margin-top: 18vh;
  }

  .hero-role {
    transform: translateX(-7vw);
  }

  .hero-title span {
    font-size: clamp(4.2rem, 18vw, 6rem);
  }

  .corner-copy {
    font-size: 11px;
    left: 18px;
  }

  .corner-left {
    bottom: 24px;
  }

  .corner-right {
    bottom: 74px;
  }

  .hero-role {
    margin: 10px 0 0 0.99em;
  }

  .hero-location {
    margin: 10px 5% 0 0;
  }

  .project-filters {
    display: grid;
  }

  .project-grid {
    min-height: 760px;
  }

  .project-copy h2,
  .about-copy h2 {
    font-size: clamp(2.8rem, 16vw, 5rem);
  }

  .project-image {
    min-height: 250px;
    box-shadow: 18px -18px 0 rgba(255, 255, 255, 0.04);
  }

  .page-about {
    padding-top: 112px;
  }

  .about-copy p:not(.eyebrow) {
    font-size: 1.18rem;
    line-height: 1.32;
  }

  .menu-content {
    padding: 78px 28px 34px;
    gap: 82px;
  }

}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}
