/* Palette and type taken from korolev.uk */
:root {
  --bg-page: #eeedec;
  --ink: #1e1e1e;
  --red: #f6042e;
  --pink: #ff6eff;
  --green: #32d583;
  --blue: #002bba;
  --white: #fff;
  --media: #f7f7f7;
  --muted: rgba(0, 0, 0, 0.4);

  --font-sans: "Inter", system-ui, sans-serif;
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-display: "Archivo Narrow", "Arial Narrow", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;

  --ease-back: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  scrollbar-width: none;
  overflow-x: hidden;
}
html::-webkit-scrollbar {
  display: none;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-page);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.locked {
  overflow: hidden;
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

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

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

/* ---------- Header ---------- */

.site-header > * {
  position: fixed;
  z-index: 900;
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.site-header.is-in > * {
  opacity: 1;
  transform: none;
}
.site-header.is-hidden > * {
  opacity: 0;
  transform: translateY(-20px);
  pointer-events: none;
}

.brand {
  top: 12px;
  left: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Cutout head that "turns" in steps on hover, like the template's 3-frame logo. */
.brand-avatar {
  width: 47px;
  height: 64px;
  object-fit: contain;
  object-position: bottom;
  user-select: none;
  transform-origin: 50% 60%;
  /* Fade the neck/shoulders out so the cutout reads as a floating head. */
  -webkit-mask-image: linear-gradient(to bottom, #000 68%, transparent 96%);
  mask-image: linear-gradient(to bottom, #000 68%, transparent 96%);
}
.brand-avatar[data-frame="2"] {
  transform: perspective(120px) rotateY(38deg) scaleX(0.9);
}
.brand-avatar[data-frame="3"] {
  transform: scaleX(-1);
}

.brand-name {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 13px;
  letter-spacing: -0.11px;
  text-transform: uppercase;
  text-align: left;
  white-space: nowrap;
  color: var(--ink);
}

.clock {
  left: 50%;
  top: 28px;
  translate: -50% 0;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 7px 8px;
  border-radius: 6px;
  background: #000;
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 18px;
  letter-spacing: -0.12px;
  text-transform: uppercase;
  white-space: nowrap;
}
.clock-dot {
  width: 12px;
  height: 12px;
  display: grid;
  place-items: center;
}
.clock-dot::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--green);
}

.contact {
  top: 19px;
  right: 12px;
  width: 120px;
  height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 3rem;
  background: #000;
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 18px;
  letter-spacing: -0.12px;
  text-transform: uppercase;
  transition: all 0.3s ease-out !important;
}
@media (hover: hover) {
  .contact:hover {
    background: var(--pink);
    height: 120px;
    top: -16px;
    border-radius: 999px;
  }
}

/* ---------- Page ---------- */

.page {
  position: relative;
  z-index: 10;
  background: var(--bg-page);
  padding: 0 8px 8px;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  z-index: 0;
  width: 100%;
  height: 95svh;
  min-height: 560px;
  border-radius: 24px;
  overflow: hidden;
}

.hero-copy-wrap {
  position: absolute;
  inset-inline: 0;
  top: 14svh;
  z-index: 2;
  display: flex;
  justify-content: center;
  padding: 0 48px;
  text-align: center;
}

.hero-copy {
  position: relative;
  width: 100%;
  max-width: 960px;
}

.hero-star {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 418px;
  height: 415px;
  translate: -50% -50%;
  pointer-events: none;
  z-index: 0;
}
.hero-star img {
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: scale(0) rotate(-180deg);
}
.is-loaded .hero-star img {
  animation: star-in 1s 0.1s cubic-bezier(0.34, 1.3, 0.64, 1) forwards, star-spin 60s 1.1s linear infinite;
}
@keyframes star-in {
  to {
    opacity: 1;
    transform: scale(1) rotate(0);
  }
}
@keyframes star-spin {
  from {
    transform: rotate(0);
  }
  to {
    transform: rotate(360deg);
  }
}

.hero-lines {
  position: relative;
  z-index: 1;
  font-weight: inherit;
  color: var(--red);
  text-transform: uppercase;
}

.line {
  display: block;
  white-space: nowrap;
}
.line--display {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: min(80px, 7.8vw, 8svh);
  line-height: 0.88;
  letter-spacing: -0.03em;
}
.line--serif {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: min(84px, 8.4vw, 8.4svh);
  line-height: 0.72;
  letter-spacing: -0.042em;
}
.line--gap {
  margin-top: 12px;
}

/* ---------- Light switch (goes to the DJ side) ---------- */

.lights {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  padding: 6px 12px 6px 6px;
  border-radius: 10px;
  color: var(--red);
  opacity: 0;
  transition: background 0.2s;
}
.is-loaded .lights {
  animation: word-in 0.55s var(--ease-back) forwards;
  animation-delay: 1.1s;
}
.lights:hover {
  background: rgba(255, 255, 255, 0.6);
}
.lights-label {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 18px;
  letter-spacing: -0.12px;
  text-transform: uppercase;
}

/* Wall plate + rocker. Shared with the DJ page (dj.css overrides colors). */
.switch {
  --plate: #fff;
  --rocker: #f4f3f2;
  --screw: #d6d4d2;
  position: relative;
  width: 24px;
  height: 36px;
  border-radius: 6px;
  background: var(--plate);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06), 0 4px 12px -4px rgba(16, 24, 40, 0.3), inset 0 0 0 1px rgba(0, 0, 0, 0.05);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.switch::before,
.switch::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 3px;
  height: 3px;
  margin-left: -1.5px;
  border-radius: 50%;
  background: var(--screw);
}
.switch::before {
  top: 3px;
}
.switch::after {
  bottom: 3px;
}
.switch-rocker {
  width: 10px;
  height: 18px;
  border-radius: 3px;
  background: linear-gradient(to bottom, #fff 0 50%, var(--rocker) 50%);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08), 0 2px 3px -1px rgba(0, 0, 0, 0.25);
  transform: perspective(40px) rotateX(18deg);
  transition: transform 0.15s cubic-bezier(0.3, 1.6, 0.6, 1);
}
.lights:hover .switch-rocker {
  transform: perspective(40px) rotateX(8deg);
}
.is-flipped .switch-rocker,
.lights.is-flipped:hover .switch-rocker {
  transform: perspective(40px) rotateX(-18deg);
  background: linear-gradient(to bottom, var(--rocker) 0 50%, #fff 50%);
}

/* Circle that spreads from the switch before changing pages. */
.lights-wipe {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: var(--wipe, #0a0a0a);
  clip-path: circle(0 at var(--cx, 50%) var(--cy, 50%));
  transition: clip-path 0.75s cubic-bezier(0.7, 0, 0.3, 1);
  pointer-events: none;
}
.lights-wipe.is-on {
  clip-path: circle(150vmax at var(--cx, 50%) var(--cy, 50%));
}

.word {
  display: inline-block;
  opacity: 0;
  will-change: transform;
}
.is-loaded .word {
  animation: word-in 0.55s var(--ease-back) forwards;
  animation-delay: var(--d, 0s);
}
@keyframes word-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.6);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Fan of cards */

.fan {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 420px;
  transform: translateY(18%);
  z-index: 1;
}

.fan-card {
  position: absolute;
  width: 291px;
  height: 373px;
  bottom: calc(var(--drop) * -1vw);
  left: calc(50% + var(--x) * 1vw);
  transform: translateX(-50%) rotate(calc(var(--r) * 1deg));
  transform-origin: bottom center;
  z-index: var(--z);
  display: block;
  padding: 0;
  border-radius: 28px;
}

.fan-card-inner {
  width: 100%;
  height: 100%;
  border-radius: 28px;
  overflow: hidden;
  transform-origin: bottom center;
  opacity: 0;
  transform: scale(0.85);
  transition: transform 0.5s var(--ease-back), opacity 0.6s var(--ease-back);
  box-shadow: 0 16px 60px -24px rgba(16, 24, 40, 0.35);
}
.is-loaded .fan-card-inner {
  opacity: 1;
  transform: scale(1);
  transition-delay: var(--delay);
}
.fan-settled .fan-card-inner {
  transition-delay: 0s;
}
.is-loaded .fan-card:hover .fan-card-inner,
.is-loaded .fan-card:focus-visible .fan-card-inner {
  transform: translateY(-18px) rotate(calc(var(--r) * -0.55deg)) scale(1.04);
  transition-delay: 0s;
  transition-duration: 0.4s;
}

/* Card thumbnail art (shared by fan and modal) */

.thumb {
  container-type: inline-size;
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 8cqw 8cqw 7cqw;
  text-align: left;
  text-transform: uppercase;
  overflow: hidden;
}

.thumb-label {
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}
.thumb-label .d {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13cqw;
  line-height: 0.85;
  letter-spacing: -0.03em;
}
.thumb-label .s {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 15cqw;
  line-height: 0.8;
  letter-spacing: -0.04em;
}

.thumb-foot {
  position: relative;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: 3.9cqw;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.thumb-big {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 34cqw;
  line-height: 0.8;
  letter-spacing: -0.04em;
}

.thumb--who {
  background: var(--ink);
  color: var(--white);
}
.thumb--who .thumb-mono {
  font-family: var(--font-serif);
  font-size: 52cqw;
  line-height: 0.75;
  letter-spacing: -0.06em;
  color: var(--red);
}

.thumb--field {
  background: var(--green);
  color: #000;
}

.thumb--cold {
  background: var(--red);
  color: var(--white);
}

.thumb--code {
  background: var(--white);
  color: #000;
}
.code-art {
  display: flex;
  flex-direction: column;
  gap: 2.4cqw;
  font-family: var(--font-mono);
  font-size: 5.6cqw;
  line-height: 1.2;
  text-transform: none;
}
.code-art span {
  align-self: flex-start;
  padding: 1.6cqw 3cqw;
  border-radius: 2cqw;
  background: #000;
  color: var(--white);
  white-space: nowrap;
}
.code-art span:nth-child(2) {
  margin-left: 6cqw;
}
.code-art span:nth-child(3) {
  margin-left: 12cqw;
}
.code-art span:last-child {
  background: var(--pink);
  color: #000;
}
.code-art b {
  font-weight: inherit;
  color: var(--red);
}
.code-art span:last-child b {
  color: #000;
}

.thumb--off {
  background: var(--pink);
  color: #000;
}
.vinyl {
  position: absolute;
  width: 92cqw;
  height: 92cqw;
  right: -26cqw;
  top: 34%;
}
.fan-card:hover .vinyl,
.modal-thumb .vinyl {
  animation: star-spin 3s linear infinite;
}

/* ---------- Case study cards ---------- */

.studies {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 8px;
  position: relative;
  z-index: 2;
}

.study-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.study {
  background: var(--white);
  border-radius: 24px;
  overflow: clip;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  padding: 4px;
  text-align: left;
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.study.is-in {
  opacity: 1;
  transform: none;
}
.study.is-in.is-settled {
  transition: transform 250ms;
}
@media (hover: hover) {
  .study.is-in.is-settled:hover {
    transform: scale(0.98);
  }
}

.study-head {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 24px;
  text-transform: uppercase;
}
.study-bold {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 38px;
  line-height: 32px;
  letter-spacing: -0.95px;
  color: #000;
}
.study-serif {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 40px;
  line-height: 30px;
  letter-spacing: -1.4px;
  color: #000;
  max-width: 480px;
}

.study-media {
  position: relative;
  background: var(--media);
  border-radius: 20px;
  height: 577px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Video cover */
.video-cover {
  position: absolute;
  inset: 0;
  background: #000;
}
.video-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s;
}
.study:hover .video-cover img {
  transform: scale(1.04);
  opacity: 1;
}
.play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 88px;
  height: 88px;
  translate: -50% -50%;
  border-radius: 50%;
  background: var(--white);
  display: grid;
  place-items: center;
  transition: background 0.3s, scale 0.3s var(--ease-back);
}
.play::before {
  content: "";
  margin-left: 6px;
  border-style: solid;
  border-width: 14px 0 14px 22px;
  border-color: transparent transparent transparent #000;
}
.study:hover .play {
  background: var(--pink);
  scale: 1.1;
}
.video-caption {
  position: absolute;
  left: 16px;
  bottom: 16px;
  right: 16px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 6px;
  background: #000;
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 18px;
  letter-spacing: -0.12px;
  text-transform: uppercase;
}
.chip--light {
  background: var(--white);
  color: #000;
}

/* Stat panel */
.stat {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 40px 32px;
  color: var(--accent, #000);
}
.stat-kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 18px;
  text-transform: uppercase;
  color: #000;
}
.stat-num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(96px, 13vw, 200px);
  line-height: 0.82;
  letter-spacing: -0.04em;
}
.stat-cap {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 34px;
  line-height: 30px;
  letter-spacing: -1px;
  text-transform: uppercase;
  color: #000;
  max-width: 460px;
}

.partners {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.partner {
  display: flex;
  flex-direction: column;
  text-transform: uppercase;
}
.partner .d {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(44px, 5vw, 76px);
  line-height: 0.88;
  letter-spacing: -0.03em;
  color: var(--accent);
}
.partner .s {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(48px, 5.4vw, 84px);
  line-height: 0.78;
  letter-spacing: -0.04em;
  color: #000;
}
.partner-amp {
  font-family: var(--font-serif);
  font-size: 48px;
  line-height: 1;
  color: var(--muted);
}

/* ---------- Footer ---------- */

.footer-spacer {
  height: 8px;
  position: relative;
  z-index: 0;
}

.footer-wrap {
  position: sticky;
  bottom: 0;
  z-index: 0;
  padding: 0 8px 8px;
}

.footer {
  border-radius: 24px;
  background: #000;
  color: var(--white);
  height: 75svh;
  min-height: 460px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 55px;
  text-transform: uppercase;
  transform-origin: center bottom;
}

.footer-title {
  position: relative;
  width: 408px;
  height: 186px;
  white-space: nowrap;
}
.footer-display {
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 120px;
  line-height: 100px;
  letter-spacing: -5.4px;
}
.footer-serif {
  position: absolute;
  left: 50%;
  translate: -50% 0;
  top: 86px;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 130px;
  line-height: 100px;
  letter-spacing: -7px;
  padding-left: 120px;
}

.footer-body {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}
.footer-note {
  display: flex;
  flex-direction: column;
  line-height: 30px;
}
.footer-note-display {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 38px;
  letter-spacing: -1.52px;
  white-space: nowrap;
}
.footer-note-serif {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 40px;
  letter-spacing: -1.6px;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 24px;
  line-height: 20px;
  letter-spacing: -0.96px;
}

[data-split] .sw,
.footer-links .bounce-link {
  display: inline-block;
}
.footer.can-animate [data-split] .sw,
.footer.can-animate .footer-links .bounce-link {
  opacity: 0;
  transform: scale(0);
}
.footer.is-in [data-split] .sw,
.footer.is-in .footer-links .bounce-link {
  animation: pop 1.5s cubic-bezier(0.68, -0.6, 0.32, 1.6) forwards;
  animation-delay: var(--d, 0s);
}
@keyframes pop {
  from {
    opacity: 0;
    transform: scale(0);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.bounce-link .ch {
  display: inline-block;
  transition: transform 0.35s var(--ease-back), color 0.2s;
  transition-delay: calc(var(--i) * 25ms);
}
.bounce-link:hover .ch {
  transform: translateY(-5px);
  color: var(--pink);
}

/* ---------- Buttons ---------- */

.icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.04);
  display: inline-grid;
  place-items: center;
  font-size: 22px;
  line-height: 1;
  transition: background 0.2s, transform 0.3s var(--ease-back);
}
.icon-btn:hover {
  background: rgba(0, 0, 0, 0.1);
}
.icon-btn.modal-close:hover,
.icon-btn.case-close:hover {
  transform: rotate(90deg);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  border-radius: 3rem;
  background: #000;
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 18px;
  letter-spacing: -0.12px;
  text-transform: uppercase;
  transition: background 0.3s, color 0.3s;
}
.pill:hover {
  background: var(--pink);
  color: #000;
}

/* ---------- Hero card modal ---------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 16px;
}
.modal[hidden] {
  display: none;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(238, 237, 236, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  animation: fade 0.3s ease-out;
}
.modal-panel {
  position: relative;
  width: 100%;
  max-width: 848px;
  max-height: calc(100svh - 32px);
  overflow-y: auto;
  background: var(--white);
  border-radius: 32px;
  padding: 8px;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 32px;
  box-shadow: 0 16px 96px -20px rgba(16, 24, 40, 0.24);
  animation: modal-in 0.5s var(--ease-back);
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  background: var(--white);
  box-shadow: 0 4px 16px -6px rgba(16, 24, 40, 0.3);
}
.modal-close:hover {
  background: var(--bg-page);
}
/* The modal already shows the title beside the image. */
.modal-thumb .thumb-label {
  visibility: hidden;
}
.modal-thumb {
  height: 386px;
  border-radius: 24px;
  overflow: hidden;
}
.modal-text {
  display: flex;
  flex-direction: column;
  padding: 32px 32px 24px 0;
}
.modal-title {
  display: flex;
  flex-direction: column;
  text-transform: uppercase;
  font-weight: inherit;
  margin-bottom: 20px;
  padding-right: 48px;
}
.modal-title .d {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 38px;
  line-height: 32px;
  letter-spacing: -0.95px;
}
.modal-title .s {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 42px;
  line-height: 32px;
  letter-spacing: -1.4px;
}
.modal-desc {
  font-size: 17px;
  line-height: 28px;
  letter-spacing: -0.34px;
  color: var(--ink);
  flex: 1;
}
.modal-desc p + p {
  margin-top: 14px;
}
.modal-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}
.modal-count {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  min-width: 36px;
  text-align: center;
}

@keyframes fade {
  from {
    opacity: 0;
  }
}
@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.94);
  }
}

/* ---------- Case study page ---------- */

.case {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(238, 237, 236, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 8px;
  animation: fade 0.3s ease-out;
}
.case[hidden] {
  display: none;
}
.case-panel {
  position: relative;
  height: 100%;
  background: var(--white);
  border-radius: 24px;
  overflow-y: auto;
  scrollbar-width: none;
  animation: case-in 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.case-panel::-webkit-scrollbar {
  display: none;
}
@keyframes case-in {
  from {
    transform: translateY(60px);
    opacity: 0;
  }
}
.case-close {
  position: sticky;
  top: 16px;
  float: right;
  margin: 16px 16px 0 0;
  z-index: 2;
  background: var(--bg-page);
  box-shadow: 0 4px 16px -6px rgba(16, 24, 40, 0.3);
}

.case-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 72px 24px 64px;
}

.case-title {
  display: flex;
  flex-direction: column;
  text-transform: uppercase;
  font-weight: inherit;
  text-align: center;
  color: var(--accent, var(--red));
}
.case-title .d {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 96px;
  line-height: 0.86;
  letter-spacing: -0.03em;
}
.case-title .s {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 88px;
  line-height: 0.78;
  letter-spacing: -0.045em;
  margin-top: 8px;
}

.case-meta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 32px 0 48px;
}

.case-media {
  border-radius: 20px;
  background: var(--media);
  overflow: hidden;
  margin-bottom: 56px;
}
.case-media .stat,
.case-media .partners-wrap {
  min-height: 460px;
}
.embed {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}
.embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.case-body {
  max-width: 660px;
  margin: 0 auto;
  font-size: 17px;
  line-height: 28px;
  letter-spacing: -0.34px;
}
.case-body p + p {
  margin-top: 16px;
}
.case-body h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 30px;
  line-height: 28px;
  letter-spacing: -0.8px;
  text-transform: uppercase;
  margin: 44px 0 16px;
}
.case-body ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.case-body li {
  position: relative;
  padding-left: 28px;
}
.case-body li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--accent, var(--red));
  rotate: 45deg;
}
.stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pub {
  border-radius: 20px;
  background: var(--media);
  padding: 24px;
}
.pub-title {
  font-family: var(--font-serif);
  font-size: 28px;
  line-height: 28px;
  letter-spacing: -0.6px;
}
.pub-meta {
  margin-top: 12px;
  font-size: 15px;
  line-height: 22px;
  color: rgba(0, 0, 0, 0.6);
}
.case-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 40px;
}

.case-next {
  display: block;
  width: 100%;
  margin-top: 72px;
  padding: 32px 24px;
  border-radius: 20px;
  background: var(--bg-page);
  text-align: center;
  text-transform: uppercase;
  transition: background 0.3s;
}
.case-next:hover {
  background: var(--pink);
}
.case-next small {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  margin-bottom: 8px;
}
.case-next span {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 44px;
  line-height: 40px;
  letter-spacing: -1px;
}

/* ---------- Mobile ---------- */

@media (max-width: 767px) {
  .clock {
    top: auto;
    bottom: 8px;
  }
  .contact {
    top: 12px;
    width: 110px;
    height: 44px;
  }

  .hero {
    min-height: 600px;
  }
  .hero-copy-wrap {
    top: 24svh;
    padding: 0 9px;
  }
  .hero-star {
    width: 280px;
    height: 278px;
  }
  .line--display {
    font-size: min(40px, 9.2vw);
    line-height: 0.9;
    letter-spacing: -0.03em;
  }
  .line--serif {
    font-size: min(46px, 9.6vw);
    line-height: 0.78;
    letter-spacing: -0.045em;
  }
  .line--gap {
    margin-top: 6px;
  }

  .fan {
    height: 220px;
    transform: translateY(35%);
  }
  .fan-card {
    width: 180px;
    height: 230px;
    border-radius: 16px;
  }
  .fan-card-inner {
    border-radius: 16px;
  }

  .study-row {
    grid-template-columns: 1fr;
  }
  .study-head {
    padding: 16px;
  }
  .study-bold {
    font-size: 26px;
    line-height: 24px;
    letter-spacing: -0.6px;
  }
  .study-serif {
    font-size: 28px;
    line-height: 22px;
    letter-spacing: -0.8px;
  }
  .study-media {
    height: 280px;
    border-radius: 16px;
  }
  .stat {
    padding: 24px 16px;
  }
  .stat-num {
    font-size: 88px;
  }
  .stat-cap {
    font-size: 24px;
    line-height: 22px;
  }
  .partner .d {
    font-size: 36px;
  }
  .partner .s {
    font-size: 40px;
  }
  .partners {
    gap: 10px;
  }
  .partner-amp {
    font-size: 30px;
  }
  .play {
    width: 64px;
    height: 64px;
  }

  .footer {
    gap: 32px;
  }
  .footer-title {
    width: 240px;
    height: 110px;
  }
  .footer-display {
    font-size: 72px;
    line-height: 60px;
    letter-spacing: -3.2px;
  }
  .footer-serif {
    font-size: min(72px, 18vw);
    line-height: 60px;
    letter-spacing: -3.5px;
    top: 50px;
    padding-left: 48px;
  }
  .footer-body {
    padding: 0 24px;
  }
  .footer-note {
    line-height: 24px;
  }
  .footer-note-display {
    font-size: 28px;
    letter-spacing: -1.12px;
  }
  .footer-note-serif {
    font-size: 30px;
    letter-spacing: -1.2px;
  }
  .footer-links {
    font-size: 20px;
  }

  .modal {
    padding: 8px;
    align-items: end;
  }
  .modal-panel {
    grid-template-columns: 1fr;
    gap: 0;
    border-radius: 24px;
  }
  .modal-thumb {
    height: 220px;
    border-radius: 18px;
  }
  .modal-thumb .thumb {
    padding: 20px;
  }
  .modal-thumb .thumb-label {
    display: none;
  }
  .modal-thumb .thumb-mono,
  .modal-thumb .thumb-big {
    font-size: 110px;
  }
  .modal-thumb .thumb--code {
    background: var(--media);
  }
  .modal-thumb .code-art {
    font-size: 14px;
  }
  .modal-text {
    padding: 20px 16px 12px;
  }
  .modal-title {
    padding-right: 0;
  }
  .modal-title .d {
    font-size: 30px;
    line-height: 26px;
  }
  .modal-title .s {
    font-size: 34px;
    line-height: 26px;
  }
  .modal-desc {
    font-size: 15px;
    line-height: 24px;
  }

  .case-inner {
    padding: 64px 16px 40px;
  }
  .case-title .d {
    font-size: min(48px, 11vw);
  }
  .case-title .s {
    font-size: min(44px, 10vw);
  }
  .case-media .stat,
  .case-media .partners-wrap {
    min-height: 320px;
  }
  .case-body {
    font-size: 15px;
    line-height: 24px;
  }
  .case-next span {
    font-size: 30px;
    line-height: 28px;
  }
}

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