:root {
  --bg: #fff;
  --fg: #111;
  --muted: rgba(17, 17, 17, 0.62);
  --line: rgba(17, 17, 17, 0.17);
  --orbit: rgba(221, 51, 51, 0.35);
  --orbitB: rgba(221, 51, 51, 0.9);
  --accent: #dd3333;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --fontsizeBase: 0.8em;
  --fontsizeLarge: 1em;
  --fontsizeExtraLarge: 1.25em;
  --previewLabelBackground: var(--muted);
  --previewLabelColor: var(--bg);
  --topbarHeight: 78px;
}

:root.darkMode {
  --bg: #000;
  --fg: #f3f3f0;
  --muted: rgba(243, 243, 240, 0.62);
  --line: rgba(243, 243, 240, 0.17);
  --orbit: rgba(221, 51, 51, 0.35);
  --orbitB: rgba(221, 51, 51, 0.9);
}

* {
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: 'Space Grotesk', system-ui, sans-serif;
  overflow-x: hidden;
}

html, body, a, button, input, label {
  cursor: none !important;
}

a, button {
  color: inherit;
  font: inherit;
}

a {
  text-decoration: none;
  transition: color 0.25s ease;
}

a:hover {
  color: var(--fg);
}

strong {
  color: var(--fg);
  font-weight: 500;
}

button {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: none;
}

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

/* =========================================================
   DARK MODE
   ========================================================= */

.toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  color: var(--muted);
  margin: 0 2em 0 auto;
}

.toggle input {
  display: none;
}

.switch {
  width: 44px;
  height: 24px;
  background: #ccc;
  border-radius: 24px;
  position: relative;
  transition: 0.2s;
}

.switch::before {
  content: '';
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  top: 3px;
  left: 3px;
  transition: 0.2s;
}

input:checked + .switch {
  background: var(--accent);
}

input:checked + .switch::before {
  transform: translateX(20px);
}

/* =========================================================
   STAGE
   ========================================================= */

.stage {
  position: relative;
  width: 100%;
  min-height: 100vh;
  padding: 28px 34px 24px;
  isolation: isolate;
  overflow-x: hidden;

  display: flex;
  flex-direction: column;
}

.stage::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
}

/* =========================================================
   NOISE
   ========================================================= */

body:after {
  animation: noise 0.16s steps(1) infinite;
  background-image: url('img/mjk_media-noise3.webp');
  background-size: contain;
  background-repeat: repeat;
  bottom: 0;
  content: '';
  height: 100vh;
  left: 0;
  margin: 0 !important;
  opacity: 0.75;
  overflow: hidden;
  position: fixed;
  pointer-events: none !important;
  padding: 0 !important;
  right: 0;
  top: 0;
  width: 100vw;
  will-change: transform;
  z-index: 1000;
}

@keyframes noise {
  0% {transform: scaleX(1) scaleY(1);}
  25% {transform: scaleX(-1) scaleY(1);}
  50% {transform: scaleX(-1) scaleY(-1);}
  75% {transform: scaleX(1) scaleY(-1);}
}

:not(.darkMode) body:after {
  opacity: 1;
}

/* =========================================================
   CURSOR
   ========================================================= */

.cursor {
  position: fixed;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 25px rgba(221, 51, 51, 0.5);
  pointer-events: none;
  z-index: 50;
  transform: translate(-50%, -50%);
  transition:
    width 0.22s var(--ease),
    height 0.22s var(--ease),
    background 0.22s ease;
}
.darkMode .cursor {
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.5) !important;
}

.cursor.is-hovering {
  width: 18px;
  height: 18px;
}

.noCursor .cursor {
  display: none;
}

/* =========================================================
   TOPBAR / FOOTER
   ========================================================= */

.topbar, .footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 20;

  letter-spacing: 0.04em;
  font-size: var(--fontsizeBase);
  line-height: 1.2;
  text-transform: uppercase;
}

.footer {
  width: 100%;
  color: var(--muted);
}

.brand {
  font-size: var(--fontsizeExtraLarge) !important;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.brand-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 18px rgba(221, 51, 51, 0.55);
}

.top-meta {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
}

.contact-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 0.75em 1.5em;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: transparent;
  color: var(--accent);
  font-size: var(--fontsizeLarge);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.contact-button:hover {
  background: var(--accent);
  color: var(--bg);
}

.contact-button:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 5px;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.status-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 1.6s ease-in-out infinite;
}

.time {
  font-variant-numeric: tabular-nums;
}

/* =========================================================
   HERO
   ========================================================= */

.hero {
  position: relative;
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 1.15fr 0.75fr 1fr;
  align-items: center;
  gap: 3vw;
  padding-top: 2vh;
  padding-bottom: 10vh;
  isolation: isolate;
}

.imprint-main {
  flex: 1;
  min-height: 0;
  padding-top: 6vh;
  padding-bottom: 10vh;
  display: flex;
  align-items: center;
}

.hero {
  padding-top: 6vh;
  padding-bottom: 10vh;
}

/* =========================================================
   HERO FADE
   ========================================================= */

.hero-left, .orbit {
  transition:
    opacity 0.55s var(--ease),
    visibility 0.55s var(--ease),
    transform 0.7s var(--ease);
}

.hero.is-copy-active > .hero-left, .hero.is-copy-active > .orbit {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(0.985);
}

/* =========================================================
   HERO LEFT
   ========================================================= */

.hero-left {
  position: relative;
  z-index: 4;
}

.eyebrow, .intro {
  font-size: var(--fontsizeLarge);
  font-weight: 200;
  line-height: 1.45;
  letter-spacing: 0.03em;
  text-wrap: balance;
}

.eyebrow {
  margin: 0 0 30px;
  color: var(--muted);
  text-transform: uppercase;
}

.hero-title {
  margin: 0;
  font-size: clamp(100px, 10vw, 170px);
  line-height: 0.82;
  letter-spacing: -0.025em;
  font-weight: 600;
  text-transform: uppercase;
}

.title-line, .mobile-title-line {
  display: block;
  will-change: transform;
  transition: transform 0.7s var(--ease);
}

.title-offset {
  margin-left: clamp(22px, 4vw, 74px);
}

.hero-dot {
  color: var(--accent);
}

.mobile-title-line {
  display: none;
}

.hero:hover .desktop-title-line:nth-child(1), .hero:hover .desktop-title-line:nth-child(3) {
  transform: translateX(7px);
}

.hero:hover .desktop-title-line:nth-child(2) {
  transform: translateX(-5px);
}

/* =========================================================
   HERO RIGHT
   ========================================================= */

.hero-right {
  position: relative;
  z-index: 10;

  align-self: end;
  padding-bottom: 0;
}

.intro {
  margin: 0 0 36px;
  color: var(--muted);
  max-width: 360px;
}

.services {
  border-top: 1px solid var(--line);
  width: min(100%, 460px);
}

.service {
  width: 100%;
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 12px;
  align-items: center;
  text-align: left;
  padding: 16px 0 17px;
  border-bottom: 1px solid var(--line);
  transition: padding 0.45s var(--ease), color 0.35s ease;
}

.service-index {
  color: var(--muted);
  font-size: var(--fontsizeBase);
}

.service-name {
  font-size: var(--fontsizeBase);
  line-height: 1.25;
  letter-spacing: 0.04em;
  font-weight: 500;
  text-transform: uppercase;
}

.service:hover, .service.is-active {
  padding-left: 10px;
  color: var(--accent);
}

.service:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 8px;
}

/* =========================================================
   SERVICE COPY
   ========================================================= */

.service-copy {
  position: absolute;
  inset: 0;
  right: 34%;
  z-index: 8;
  display: flex;
  align-items: center;
  padding: 2vh 3vw 10vh 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.5s var(--ease), visibility 0.5s var(--ease);
}

.hero.is-copy-active .service-copy {
  opacity: 1;
  visibility: visible;
}

.service-copy-panel {
  display: none;
  width: 100%;
  max-width: 1000px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s var(--ease), transform 0.65s var(--ease);
}

.service-copy-panel.is-active {
  display: block;
}

.hero.is-copy-active .service-copy-panel.is-active {
  opacity: 1;
  transform: translateY(0);
}

.service-copy-eyebrow {
  margin: 0 0 34px;
  color: var(--muted);
  font-size: var(--fontsizeLarge);
  font-weight: 200;
  line-height: 1.45;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.service-copy-text {
  margin: 0;
  max-width: 900px;
  font-size: clamp(2.5em, 4.1vw, 66px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  font-weight: 300;
  text-wrap: pretty;
}

/* =========================================================
   CLOSE BUTTON
   ========================================================= */

.service-copy-close {
  position: absolute;
  left: 0;
  top: 2em;
  width: clamp(38px, 3vw, 52px);
  height: clamp(38px, 3vw, 52px);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: var(--muted);
  opacity: 0;
  transform: scale(0.86);
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.5s var(--ease), color 0.25s ease;
}

.hero.is-copy-locked .service-copy-close {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.service-copy-close span {
  display: block;
  font-size: clamp(28px, 2.5vw, 40px);
  line-height: 0.7;
  font-weight: 200;
  transform: translateY(-1px);
}

.service-copy-close:hover {
  color: var(--accent);
}

.service-copy-close:focus-visible {
  outline: 0;
  color: var(--accent);
}

/* =========================================================
   ORBIT
   ========================================================= */

.orbit {
  width: min(28vw, 400px);
  aspect-ratio: 1;
  position: relative;
  justify-self: center;
  align-self: center;
  opacity: 0.95;
  transition: transform 0.65s var(--ease), opacity 0.55s var(--ease), visibility 0.55s var(--ease);
}

.orbit::before {
  content: '';
  position: absolute;
  inset: 31%;
  border: 1px solid var(--orbit);
  border-radius: 50%;
}

.orbit-ring {
  position: absolute;
  inset: 7%;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.orbit-ring-a {
  animation: spin 24s linear infinite;
}

.orbit-ring-b {
  inset: 17%;
  border-style: dashed;
  border-color: var(--orbitB);
  animation: spin-reverse 15s linear infinite;
}

.orbit-ring-a::after, .orbit-ring-b::after {
  content: '';
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 22px rgba(221, 51, 51, 0.72);
}

.orbit-ring-a::after {
  top: 0;
  left: 50%;
  transform: translateY(-50%);
}

.orbit-ring-b::after {
  bottom: 0;
  right: 50%;
  transform: translateY(50%);
}

.orbit-core {
  position: absolute;
  inset: 43%;
  border-radius: 50%;
  background: var(--accent);
  filter: blur(0.2px);
  box-shadow: 0 0 60px rgba(221, 51, 51, 1), 0 0 120px rgba(221, 51, 51, 0.11);
  animation: breathe 3.5s ease-in-out infinite;
}

/* =========================================================
   PREVIEW
   ========================================================= */

.preview-stage {
  position: fixed;
  inset: 0;
  z-index: 12;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.preview-stage.is-visible {
  opacity: 1;
  visibility: visible;
}

.preview-card {
  position: absolute;
  margin: 0;
  --preview-size: clamp(145px, 16vw, 225px);
  overflow: hidden;
  background: #111;
  border: 1px solid rgba(243, 243, 240, 0.16);
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.9) rotate(0deg);
  transition: opacity 0.18s ease, transform 0.55s var(--ease);
}
.preview-card:not(.is-landscape):not(.is-portrait):not(.is-square) {
  width: var(--preview-size);
  height: auto;
}

.preview-stage.is-visible .preview-card {
  opacity: 0.9;
}

.preview-stage.is-visible .preview-card-a, .preview-stage.is-visible .preview-card-b {
  transform: translate(-50%, -50%) scale(1) rotate(var(--preview-rotation, 0deg));
}

.preview-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.86) contrast(1.04);
}

/* =========================================================
   PREVIEW POSITIONS
   ========================================================= */

.preview-stage[data-preview='filmmusic'] .preview-card-a {
  left: 65%;
  top: 25%;
  --preview-rotation: -6deg;
}
.preview-stage[data-preview='filmmusic'] .preview-card-b {
  left: 77%;
  top: 42%;
  --preview-rotation: 4deg;
}
.preview-stage[data-preview='web'] .preview-card-a {
  left: 72%;
  top: 35%;
  --preview-rotation: -4deg;
}
.preview-stage[data-preview='web'] .preview-card-b {
  left: 87%;
  top: 29%;
  --preview-rotation: 6deg;
}
.preview-stage[data-preview='misc'] .preview-card-a {
  left: 58%;
  top: 30%;
  --preview-rotation: 5deg;
}
.preview-stage[data-preview='misc'] .preview-card-b {
  left: 71%;
  top: 47%; /*67%;*/
  --preview-rotation: -4deg;
}

/* =========================================================
   ANIMATIONS
   ========================================================= */

@keyframes spin {
  to {transform: rotate(360deg);}
}

@keyframes spin-reverse {
  to {transform: rotate(-360deg);}
}

@keyframes breathe {
  0%, 100% {transform: scale(0.82); opacity: 0.75;}
  50% {transform: scale(1.1); opacity: 1;}
}

@keyframes pulse {
  0%, 100% {opacity: 0.45; transform: scale(0.8);}
  50% {opacity: 1; transform: scale(1.15);}
}

/* =========================================================
   TABLET
   ========================================================= */

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

  .stage {
    padding-inline: 24px;
  }

  .hero {
    grid-template-columns: 1fr 0.65fr;
    gap: 18px;
  }

  .orbit {
    position: absolute;
    right: -70px;
    top: 18%;
    width: 44vw;
    opacity: 0.72;
  }

  .hero-right {
    grid-column: 1 / -1;
    align-self: end;
    padding-bottom: 0;
  }

  .services {
    width: min(100%, 560px);
  }

  .service-copy {
    right: 0;
    padding: 2vh 70px 10vh 0;
  }

  .service-copy-text {
    font-size: clamp(2.5em, 4.5vw, 54px);
  }
  .service-copy-close {
    left: auto !important;
    right: 0 !important;
  }
  .preview-stage.is-visible {
    mix-blend-mode: hard-light;
  }
  .preview-stage[data-preview='filmmusic'] .preview-card-a, .preview-stage[data-preview='misc'] .preview-card-a, .preview-stage[data-preview='web'] .preview-card-a {
    left: 43%;
    top: 50%;
  }
  .preview-stage[data-preview='filmmusic'] .preview-card-b, .preview-stage[data-preview='misc'] .preview-card-b, .preview-stage[data-preview='web'] .preview-card-b {
    left: 57%;
    top: 58%;
  }
}

/* =========================================================
   TABLET SNAP — 681–981px
   ========================================================= */

@media (min-width: 681px) and (max-width: 981px) {
  .hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: space-between;
    gap: 0;
    padding-top: 4vh;
    padding-bottom: 1em;
  }

  .hero-left {
    width: 100%;
  }

  .desktop-title-line {
    display: none;
  }

  .mobile-title-line {
    display: block;
  }

  .hero-title {
    font-size: clamp(80px, 12vw, 150px);
  }

  .orbit {
    right: -70px;
    top: 32%;
    width: min(40vw, 400px);
  }

  .hero-right {
    width: 100%;
    align-self: flex-end;
    margin-bottom: 1em;
  }

  .services {
    width: min(100%, 560px);
  }

  .service-copy {
    right: 0;
    height: calc(100% - 18rem);
    align-items: flex-start;
    padding: 2em 70px 2em 0;
  }

  .service-copy-close {
    top: 2em;
    left: 0;
    transform: scale(0.86);
  }

  .hero.is-copy-locked .service-copy-close {
    transform: scale(1);
  }

  .service-copy-text {
    font-size: clamp(2.5em, 4.5vw, 54px);
  }
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 680px) {
  .hideMobile {
	display: none !important;
  }
  .stage {
    padding: 20px 18px 18px;
  }

  .hero {
    display: block;
    position: relative;
    min-height: calc(100svh - var(--topbarHeight));
    height: calc(100svh - var(--topbarHeight));
    padding: 7vh 0 4vh;
  }

  .hero-left {
    width: 100%;
  }

  .eyebrow {
    margin-bottom: 22px;
  }

  .hero-title {
    font-size: clamp(64px, 17vw, 110px);
  }

  .desktop-title-line {
    display: none;
  }

  .mobile-title-line {
    display: block;
  }

  .hero:hover .mobile-title-line {
    transform: none;
  }

  .orbit {
    width: 58vw;
    position: absolute;
    right: -13vw;
    top: 25vh;
    opacity: 0.34;
    transform: scale(1.5) !important;
  }

  .hero-right {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 2em;
    width: 100%;
    margin: 0;
    padding: 0;
  }

  .intro {
    margin-bottom: 22px;
  }

  .services {
    width: 100%;
  }

  .service {
    padding: var(--fontsizeBase) 0;
  }

  .service-name {
    font-size: var(--fontsizeBase);
  }

  .service-copy {
    position: absolute;
    inset: 0;
    padding: 8vh 0 4vh;
    display: block;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-left: 0;
    padding-right: 8px;
  }

  .service-copy-panel {
    width: 100%;
    transform: translateY(12px);
  }

  .service-copy-eyebrow {
    margin: 0 0 clamp(24px, 7vw, 38px);
    font-size: var(--fontsizeBase);
    line-height: 1.4;
  }

  .service-copy-text {
    max-width: none;
    font-size: clamp(2.5em, 7vw, 36px);
    line-height: 1.08;
    letter-spacing: -0.02em;
  }

  .service-copy-close {
    position: absolute;
    top: 2vh;
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    z-index: 5;
  }

  .service-copy-close span {
    font-size: 34px;
  }

  .preview-stage[data-preview='filmmusic'] .preview-card-a, .preview-stage[data-preview='misc'] .preview-card-a, .preview-stage[data-preview='web'] .preview-card-a {
    left: 43%;
    top: 65%;
  }
  .preview-stage[data-preview='filmmusic'] .preview-card-b, .preview-stage[data-preview='misc'] .preview-card-b, .preview-stage[data-preview='web'] .preview-card-b {
    left: 57%;
    top: 70%;
  }
  .stage:has(.preview-stage.is-visible) .intro {
	opacity: 0;  
  }

}

/* =========================================================
   VERY SMALL PHONES
   ========================================================= */

@media (max-width: 400px) {
  .hero {
    padding-top: 5vh;
  }

  .service-copy {
    padding-top: 7vh;
  }

  .service-copy-text {
    font-size: 23px;
    line-height: 1.08;
  }

  .service-copy-eyebrow {
    margin-bottom: 22px;
  }
}

/* =========================================================
   LANDSCAPE PHONES
   ========================================================= */

@media (max-width: 680px) and (orientation: landscape) {
  .hero {
    min-height: 620px;
    height: auto;

    padding-top: 40px;
    padding-bottom: 30px;
  }

  .hero-right {
    position: relative;
    margin-top: 80px;
  }

  .service-copy {
    position: absolute;
    padding-top: 55px;
  }

  .service-copy-text {
    max-width: 85%;
    font-size: 25px;
  }	
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */

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

/* =========================================================
   CONTACT & IMPRINT
   ========================================================= */

.secondary-page-title {
  margin: 0;
  font-size: clamp(64px, 10vw, 150px);
  line-height: 0.84;
  letter-spacing: -0.025em;
  font-weight: 600;
  text-transform: uppercase;
  text-wrap: balance;
}

/* =========================================================
   CONTACT
   ========================================================= */

.hugeText {
  font-size: clamp(1.5em, 3vw, 5em);
  font-weight: 200;
  color: var(--muted);
  margin: 0.5em 0;
}

/* =========================================================
   IMPRINT
   ========================================================= */

.imprint-inner {
  width: min(920px, 100%);
}

.imprint-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px 60px;
  width: fit-content;
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.imprint-block {
  margin: 0;
  font-size: var(--fontsizeLarge);
  font-weight: 200;
  line-height: 1.55;
  color: var(--muted);
}

@media (max-width: 680px) {
  .secondary-page-title {
    margin-bottom: 34px;
    font-size: clamp(58px, 18vw, 104px);
  }

  .imprint-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    width: 100%;
  }
}