@font-face {
  font-family: "Moonie Eyes";
  src: url("../fonts/MoonieEyesRegular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --brand-blue: #4162a7;
  --brand-pink: #dd6d9f;
  --brand-yellow: #f1ea38;
  --brand-orange: #f89b26;
  --brand-red: #ef4b40;
  --myspace-blue: #003399;
  --myspace-light-blue: #6699cc;
  --myspace-border: #336699;
  --ink: #111111;
  --paper: #ffffff;
  --soft-paper: #f6f6f6;
  --notmilk-black: #111111;
  --notmilk-gray: #9c9c9c;
  --focus: #f1ea38;
  color-scheme: light;
  font-family: "Gill Sans", "Gill Sans MT", Arial, sans-serif;
}

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

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: #111111;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.18)),
    url("../images/graffiti-background.jpg");
  background-position: center top;
  background-size: cover;
  background-attachment: fixed;
  background-repeat: no-repeat;
  color: var(--ink);
  font-family: "Gill Sans", "Gill Sans MT", Arial, sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

body.case-study {
  background: var(--notmilk-black);
  color: var(--paper);
  color-scheme: dark;
}

body.move-mates-page {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: #b5dee6;
  color: var(--ink);
}

a,
button,
.hit-target {
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(241, 234, 56, 0.35);
}

a {
  color: #003399;
  text-decoration: underline;
  text-underline-offset: 2px;
}

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

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

.skip-link {
  position: fixed;
  top: max(8px, env(safe-area-inset-top));
  left: max(8px, env(safe-area-inset-left));
  z-index: 1000;
  transform: translateY(-160%);
  padding: 10px 14px;
  background: var(--brand-yellow);
  color: var(--ink);
  border: 2px solid var(--ink);
}

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

.page-shell {
  width: min(100%, 1080px);
  margin: 0 auto;
  background: transparent;
  min-height: 100vh;
  border-left: 1px solid #111111;
  border-right: 1px solid #111111;
}

.myspace-top {
  background: var(--myspace-blue);
  color: var(--paper);
}

.myspace-bar {
  display: flex;
  justify-content: flex-end;
  min-height: 22px;
  padding: 3px 10px;
  font-size: 13px;
}

.myspace-hero {
  display: grid;
  grid-template-columns: minmax(170px, 1fr) minmax(260px, 420px);
  gap: 18px;
  align-items: center;
  padding: 12px 20px 10px;
}

.myspace-logo {
  display: inline-grid;
  grid-template-columns: 43px auto;
  gap: 8px;
  align-items: center;
  color: var(--paper);
  text-decoration: none;
}

.friend-icon {
  position: relative;
  width: 43px;
  height: 36px;
}

.friend-icon::before,
.friend-icon::after,
.friend-icon span {
  content: "";
  position: absolute;
  bottom: 0;
  width: 17px;
  height: 19px;
  background: var(--paper);
  border-radius: 3px 3px 1px 1px;
}

.friend-icon::before {
  left: 0;
}

.friend-icon span {
  left: 13px;
  height: 25px;
}

.friend-icon::after {
  right: 0;
}

.brand-word {
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(28px, 5vw, 45px);
  font-weight: 700;
  letter-spacing: -2px;
  line-height: 0.86;
}

.tagline {
  display: block;
  font-size: 15px;
  letter-spacing: 0;
}

.chrome-search {
  display: flex;
  justify-content: end;
  gap: 8px;
}

.chrome-search label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.chrome-search input {
  width: min(100%, 260px);
  min-height: 31px;
  border: 1px solid #666666;
  border-radius: 7px;
  background: var(--paper);
  font-size: 16px;
}

.chrome-search button {
  min-width: 82px;
  min-height: 31px;
  border: 1px solid #333333;
  border-radius: 18px;
  background: linear-gradient(#f2f2f2, #9ea8bb);
  color: #111111;
  font-weight: 700;
}

.myspace-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
  min-height: 36px;
  padding: 0 12px;
  background: var(--myspace-light-blue);
  border-top: 1px solid #84b0d7;
}

.chrome-link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  color: var(--paper);
  font-size: 14px;
  border-right: 1px solid rgba(255, 255, 255, 0.6);
  cursor: default;
}

.profile-layout {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 18px;
  padding: 16px;
  background: #f8d7ec;
}

.profile-name {
  margin: 0 0 8px;
  color: var(--brand-blue);
  font-family: "Moonie Eyes", "Gill Sans", sans-serif;
  font-size: clamp(50px, 8vw, 78px);
  line-height: 0.82;
}

.left-column,
.main-column {
  min-width: 0;
}

.profile-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  align-items: start;
}

.profile-photo {
  width: 100%;
  aspect-ratio: 1 / 1.1;
  object-fit: cover;
  object-position: 50% 18%;
  border: 1px solid var(--ink);
}

.profile-quote {
  margin: 0;
  font-size: 15px;
}

.stats {
  margin-top: 12px;
  font-size: 14px;
  text-transform: uppercase;
}

.online {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
  color: #128c22;
}

.online::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--brand-orange);
  box-shadow: 0 8px 0 var(--brand-orange);
}

.module {
  margin-top: 14px;
  border: 1px solid var(--myspace-border);
  background: var(--paper);
}

.module-heading {
  margin: 0;
  padding: 4px 8px;
  background: var(--myspace-light-blue);
  color: var(--paper);
  font-size: 16px;
}

.brand-heading {
  background: var(--brand-pink);
  color: var(--ink);
}

.module-body {
  padding: 8px;
  font-size: 15px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 8px;
}

.contact-action {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: 6px;
  padding: 6px;
  border: 1px solid transparent;
  font-size: 14px;
}

.contact-action:hover,
.contact-action:focus-visible {
  background: #eaf3ff;
  border-color: var(--myspace-border);
}

.tiny-icon {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  color: var(--brand-red);
  font-size: 18px;
}

.url-box {
  background: var(--paper);
  border: 1px solid var(--myspace-border);
  padding: 6px;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.player {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 8px;
  background: #202020;
  color: var(--paper);
  border: 1px solid var(--ink);
}

.play-button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(#f6f6f6, #999999);
  color: #111111;
}

.eq {
  display: flex;
  align-items: end;
  gap: 3px;
  height: 34px;
}

.eq span {
  width: 5px;
  background: var(--brand-yellow);
}

.eq span:nth-child(1) { height: 12px; }
.eq span:nth-child(2) { height: 23px; background: var(--brand-orange); }
.eq span:nth-child(3) { height: 31px; background: var(--brand-red); }
.eq span:nth-child(4) { height: 17px; background: #78d66c; }

.details-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.details-table th,
.details-table td {
  padding: 6px;
  border: 1px solid var(--paper);
  text-align: left;
}

.details-table th {
  width: 36%;
  background: #b9d7f1;
  color: var(--myspace-blue);
}

.details-table td {
  background: #e8f3fd;
}

.network-box {
  display: grid;
  place-items: center;
  min-height: 112px;
  margin-top: 44px;
  border: 2px solid var(--ink);
  background: var(--brand-pink);
  text-align: center;
}

.network-box h1 {
  margin: 0;
  padding: 12px;
  color: var(--brand-blue);
  font-size: clamp(26px, 4vw, 44px);
  font-family: "Moonie Eyes", "Gill Sans", sans-serif;
  line-height: 0.9;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.work-tile {
  border: 1px solid var(--myspace-border);
  background: var(--soft-paper);
}

.work-tile a {
  display: block;
  min-height: 44px;
  color: var(--myspace-blue);
}

.work-tile img {
  width: 100%;
  aspect-ratio: 1 / 0.82;
  object-fit: cover;
  border-bottom: 1px solid var(--myspace-border);
  background: var(--paper);
}

.work-tile:first-child img {
  object-fit: contain;
  padding: 10px;
}

.work-title {
  display: block;
  padding: 9px;
  text-align: center;
  font-size: 15px;
}

.comment-list {
  display: grid;
  gap: 8px;
}

.comment {
  padding: 8px;
  background: #f8d7ec;
  border: 1px solid var(--brand-pink);
}

.case-nav {
  width: min(100%, 1080px);
  margin: 0 auto;
  padding: 14px max(16px, env(safe-area-inset-right)) 14px max(16px, env(safe-area-inset-left));
  background: var(--myspace-blue);
  color: var(--paper);
}

.case-nav a {
  color: var(--paper);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.move-mates-back-link {
  position: fixed;
  top: max(16px, env(safe-area-inset-top));
  left: max(16px, env(safe-area-inset-left));
  z-index: 20;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  border: 2px solid var(--ink);
  text-decoration: none;
}

.move-mates-back-link:hover,
.move-mates-back-link:focus-visible {
  background: var(--brand-yellow);
}

.move-mates-animation {
  position: fixed;
  inset: 0;
  overflow: hidden;
}

.move-mates-page #scene {
  position: absolute;
  width: 1920px;
  height: 1080px;
  transform-origin: top left;
}

.move-mates-page #layer-bg {
  position: absolute;
  left: -49px;
  top: -29px;
  width: 1987px;
  height: 959px;
  pointer-events: none;
}

.move-mates-page #students {
  position: absolute;
  top: 519px;
  left: 304px;
  width: 303px;
  height: 194px;
  pointer-events: none;
}

.move-mates-page #students img {
  width: 100%;
  height: 100%;
}

.burst-layer {
  position: fixed;
  inset: 0;
  z-index: 30;
  pointer-events: none;
  overflow: hidden;
}

.burst-particle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--size);
  height: var(--size);
  object-fit: contain;
  transform: translate(-50%, -50%) scale(0.2);
  opacity: 0;
  animation: moveMatesBurst var(--duration) cubic-bezier(0.18, 0.9, 0.22, 1) var(--delay) both;
  will-change: transform, opacity;
}

@keyframes moveMatesBurst {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.2) rotate(0deg);
  }

  12% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1) rotate(calc(var(--spin) * 0.15));
  }

  74% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) scale(0.82) rotate(var(--spin));
  }
}

.case-page {
  width: min(100%, 1120px);
  margin: 0 auto;
  padding: clamp(28px, 6vw, 72px) max(16px, env(safe-area-inset-right)) 72px max(16px, env(safe-area-inset-left));
}

.case-title {
  margin: 0 0 28px;
  color: var(--paper);
  font-family: "Moonie Eyes", "Gill Sans", sans-serif;
  font-size: clamp(68px, 13vw, 150px);
  line-height: 0.78;
  text-align: center;
}

.profile-name,
.network-box h1,
.case-title {
  font-weight: 400;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

.case-card {
  margin-bottom: 28px;
  border: 1px solid #333333;
  background: #1a1a1a;
}

.case-card h2 {
  margin: 0;
  padding: 10px 12px;
  color: var(--ink);
  background: var(--brand-yellow);
}

.case-card p {
  margin: 0;
  padding: 14px;
  color: #dddddd;
  font-size: 18px;
}

.case-cover {
  width: 100%;
  max-height: 720px;
  object-fit: contain;
  background: #050505;
}

.notmilk-intro {
  min-height: calc(100vh - 72px);
  display: block;
  text-align: center;
}

.notmilk-kicker {
  display: flex;
  min-height: calc(100vh - 170px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0;
  font-family: "Bebas Neue", Impact, "Arial Narrow", sans-serif;
  font-size: clamp(48px, 9vw, 132px);
  font-weight: 700;
  line-height: 1.08;
}

.notmilk-headline-main,
.notmilk-headline-cow {
  display: block;
}

.notmilk-headline-cow {
  margin-top: clamp(36px, 7vh, 96px);
  color: #5f0909;
}

.notmilk-copy {
  width: min(100%, 940px);
  margin-top: clamp(120px, 18vh, 220px);
  margin-right: auto;
  margin-left: auto;
  color: var(--notmilk-gray);
  font-size: clamp(21px, 3vw, 38px);
  line-height: 1.45;
}

.notmilk-copy strong {
  color: var(--paper);
}

.case-section-title {
  margin: 70px 0 28px;
  text-align: center;
  color: var(--paper);
  font-size: clamp(34px, 5vw, 64px);
}

.case-study .case-image {
  width: 90%;
  margin: 0 auto;
  border: 1px solid #888888;
  background: #000000;
}

.closer-cta,
.back-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  min-height: 76px;
  padding: 18px 36px;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  font-size: clamp(22px, 3vw, 34px);
}

.center-action {
  text-align: center;
  margin: 80px 0 56px;
}

.storyline {
  margin: 72px auto 28px;
  color: var(--notmilk-gray);
  text-align: center;
  font-size: clamp(24px, 4vw, 42px);
}

.poster-stack {
  display: grid;
  gap: 58px;
}

.poster-stack img {
  width: 50%;
  max-width: 1160px;
  margin: 0 auto;
  border: 1px solid #333333;
}

.extra-touch {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 360px);
  gap: 42px;
  align-items: center;
  margin-top: 86px;
}

.extra-touch h2 {
  margin: 0 0 36px;
  color: var(--paper);
  font-size: clamp(34px, 5vw, 60px);
}

.extra-touch p {
  margin: 0;
  color: var(--notmilk-gray);
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.45;
}

.lucas {
  width: 90%;
  margin: 0 auto;
  background: var(--paper);
}

@media (max-width: 850px) {
  .myspace-hero,
  .profile-layout,
  .profile-intro,
  .extra-touch {
    grid-template-columns: 1fr;
  }

  .chrome-search {
    justify-content: start;
  }

  .network-box {
    margin-top: 14px;
  }

  .work-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .profile-layout {
    padding: 10px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .myspace-hero {
    padding: 10px;
  }

  .chrome-link {
    padding: 0 7px;
    font-size: 13px;
  }
}

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

  .burst-layer {
    display: none;
  }
}
