:root {
  --bg: #dfff37;
  --fg: #101010;
  --accent: #ff6b45;
  --soft: rgba(255, 255, 255, 0.48);
  --line: rgba(16, 16, 16, 0.18);
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  transition: background 800ms ease, color 800ms ease;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 20% 15%, rgba(255, 255, 255, 0.55), transparent 26rem),
    radial-gradient(circle at 80% 20%, color-mix(in srgb, var(--accent) 45%, transparent), transparent 22rem),
    linear-gradient(135deg, var(--bg), color-mix(in srgb, var(--bg) 72%, var(--accent)));
  transition: background 800ms ease;
}

#grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  opacity: 0.13;
  pointer-events: none;
  mix-blend-mode: multiply;
}

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: 1rem clamp(1rem, 3vw, 2.5rem);
  color: var(--fg);
  mix-blend-mode: difference;
  color: white;
  transition: opacity 240ms ease, visibility 240ms ease;
}

body[data-page="home"] .site-header {
  color: #111111;
  mix-blend-mode: normal;
}

body[data-page="home"].menu-open .site-header {
  color: #f5f1e8;
}

body.scrolled .site-header {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

body.menu-open .site-header {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-mark {
  font-family: "Arial Rounded MT Bold", "Avenir Next", var(--font);
  font-weight: 900;
  font-size: clamp(1.7rem, 4vw, 3.4rem);
  line-height: 0.8;
  text-transform: lowercase;
}

.nav-links {
  display: flex;
  gap: clamp(0.75rem, 2vw, 1.5rem);
  justify-content: center;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.book-button {
  display: inline-grid;
  place-items: center;
  width: 4.75rem;
  aspect-ratio: 1;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.menu-toggle {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 4.75rem;
  aspect-ratio: 1;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.menu-toggle span:not(.sr-only) {
  position: absolute;
  width: 1.55rem;
  height: 2px;
  background: currentColor;
  transition: transform 250ms ease, translate 250ms ease;
}

.menu-toggle span:first-child {
  translate: 0 -0.25rem;
}

.menu-toggle span:nth-child(2) {
  translate: 0 0.25rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-menu {
  position: fixed;
  inset: 0;
  z-index: 15;
  display: grid;
  grid-template-rows: 1fr;
  padding: clamp(6.5rem, 12vw, 9rem) clamp(1rem, 5vw, 4rem) clamp(1.5rem, 4vw, 3rem);
  background: #101010;
  color: #f5f1e8;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-1rem);
  transition: opacity 300ms ease, transform 300ms ease;
}

.site-menu nav {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.site-menu nav a {
  width: fit-content;
  font-size: clamp(3.4rem, 10vw, 9rem);
  line-height: 0.86;
  font-weight: 1000;
  text-transform: uppercase;
}

.site-menu nav a:hover {
  color: #dfff37;
}

body.menu-open {
  overflow: hidden;
}

body.menu-open .site-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

body.menu-open .menu-toggle span:first-child {
  translate: 0 0;
  transform: rotate(45deg);
}

body.menu-open .menu-toggle span:nth-child(2) {
  translate: 0 0;
  transform: rotate(-45deg);
}

.section-snap {
  min-height: 100vh;
  padding: clamp(6rem, 10vw, 9rem) clamp(1rem, 5vw, 4rem) clamp(3rem, 7vw, 5rem);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(18rem, 0.98fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
}

.eyebrow {
  margin: 0 0 1rem;
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 12ch;
  margin-bottom: 1.2rem;
  font-size: clamp(3.6rem, 8vw, 8.4rem);
  line-height: 0.82;
  letter-spacing: 0;
  text-transform: uppercase;
}

h2 {
  max-width: 10ch;
  font-size: clamp(3rem, 8vw, 8rem);
  line-height: 0.86;
  text-transform: uppercase;
}

.hero-lede,
.preview-copy p,
.manifesto p,
.service-detail p {
  max-width: 42rem;
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  line-height: 1.2;
  font-weight: 650;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.primary-link,
.ghost-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.35rem;
  padding: 0.95rem 1.25rem;
  border: 1px solid var(--fg);
  border-radius: 999px;
  font-weight: 900;
  text-transform: uppercase;
}

.primary-link {
  background: var(--fg);
  color: var(--bg);
}

.inverse {
  border-color: var(--fg);
  color: var(--fg);
}

.primary-link.inverse {
  background: var(--fg);
  color: var(--bg);
}

.hero-stage {
  position: relative;
  min-height: min(58vw, 44rem);
  display: grid;
  place-items: center;
}

.monki-disc {
  width: min(72vw, 29rem);
  aspect-ratio: 1;
  border: 1px solid var(--fg);
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-align: center;
  background: color-mix(in srgb, var(--soft), transparent 10%);
  box-shadow: inset 0 0 0 1.4rem color-mix(in srgb, var(--fg) 8%, transparent);
  animation: pulseDisc 8s ease-in-out infinite;
}

.monki-disc span {
  display: block;
  font-size: clamp(3.5rem, 9vw, 8.5rem);
  font-weight: 1000;
  line-height: 0.8;
}

.monki-disc small {
  display: block;
  margin-top: 1rem;
  font-size: 0.76rem;
  font-weight: 900;
}

.orbit-word {
  position: absolute;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--fg);
  border-radius: 999px;
  background: var(--bg);
  font-size: clamp(0.85rem, 1.5vw, 1.05rem);
  font-weight: 900;
  text-transform: uppercase;
}

.word-one {
  top: 10%;
  left: 6%;
  animation: drift 7s ease-in-out infinite;
}

.word-two {
  right: 2%;
  top: 34%;
  animation: drift 6s ease-in-out infinite reverse;
}

.word-three {
  bottom: 12%;
  left: 22%;
  animation: drift 8s ease-in-out infinite;
}

.ticker {
  min-height: 34vh;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.marquee {
  display: flex;
  width: max-content;
  font-size: clamp(3rem, 9vw, 9rem);
  line-height: 0.9;
  font-weight: 1000;
  text-transform: uppercase;
  animation: marquee 22s linear infinite;
}

.marquee span {
  padding-right: 2rem;
  white-space: nowrap;
}

.split-feature {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  align-items: start;
  gap: clamp(2rem, 6vw, 6rem);
}

.feature-grid,
.case-wall {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--fg);
  background: var(--fg);
}

.feature-grid article,
.case-wall article,
.service-tile {
  min-height: 22rem;
  padding: clamp(1rem, 2vw, 1.6rem);
  background: var(--bg);
  color: var(--fg);
}

.feature-grid span,
.service-detail span,
.case-wall span {
  display: block;
  margin-bottom: 2rem;
  font-size: 0.8rem;
  font-weight: 900;
}

.feature-grid h3 {
  font-size: clamp(2.1rem, 4vw, 4.2rem);
  line-height: 0.86;
  text-transform: uppercase;
}

.feature-grid p {
  font-size: 1.05rem;
  line-height: 1.25;
  font-weight: 700;
}

.services-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--fg);
  padding-left: 0;
  padding-right: 0;
}

.service-tile {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 250ms ease, background 250ms ease;
}

.service-tile:hover {
  transform: translateY(-0.75rem);
  background: white;
}

.service-tile span {
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.service-tile strong {
  display: block;
  font-size: clamp(2.2rem, 4.2vw, 5.2rem);
  line-height: 0.9;
  text-transform: uppercase;
}

.work-preview {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(18rem, 1.1fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  color: var(--fg);
}

.poster-stack {
  position: relative;
  min-height: 38rem;
}

.poster {
  position: absolute;
  width: min(72vw, 25rem);
  aspect-ratio: 0.72;
  display: grid;
  place-items: end start;
  padding: 1.1rem;
  border: 1px solid var(--fg);
  font-size: clamp(2.1rem, 5vw, 4.2rem);
  line-height: 0.85;
  font-weight: 1000;
  text-transform: uppercase;
}

.poster-a {
  left: 5%;
  top: 8%;
  background: #fff3a6;
  color: #111;
  transform: rotate(-8deg);
}

.poster-b {
  left: 28%;
  top: 17%;
  background: #f8b7cd;
  color: #111;
  transform: rotate(5deg);
}

.poster-c {
  left: 48%;
  top: 2%;
  background: #c8e7ff;
  color: #111;
  transform: rotate(12deg);
}

.inner-page .page-hero {
  display: flex;
  flex-direction: column;
  justify-content: end;
}

.inner-page h1 {
  max-width: 11ch;
}

.service-detail {
  display: grid;
  grid-template-columns: 0.25fr 0.75fr;
  align-items: end;
  gap: 2rem;
  border-top: 1px solid var(--fg);
}

.service-detail h2 {
  max-width: 9ch;
}

.case-wall {
  min-height: 100vh;
  align-items: stretch;
}

.case-wall article {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.case-wall strong {
  font-size: clamp(2.2rem, 4vw, 4.8rem);
  line-height: 0.88;
  text-transform: uppercase;
}

.manifesto {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: end;
}

.manifesto p {
  font-size: clamp(2rem, 4vw, 4.8rem);
  line-height: 0.95;
  text-transform: uppercase;
}

.contact-page,
.contact-panel {
  min-height: 100vh;
}

.contact-panel {
  display: flex;
  flex-direction: column;
  justify-content: end;
  color: var(--fg);
}

.contact-panel h1 {
  max-width: 10ch;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem clamp(1rem, 5vw, 4rem);
  border-top: 1px solid var(--line);
  font-weight: 800;
}

[data-theme="lime"] {
  --bg: #c9f4d2;
  --fg: #101010;
  --accent: #f8b7cd;
  --soft: rgba(255, 255, 255, 0.58);
}

[data-theme="cream"] {
  --bg: #fff7ea;
  --fg: #111111;
  --accent: #c8e7ff;
  --soft: rgba(255, 255, 255, 0.62);
}

[data-theme="white"] {
  --bg: #ffffff;
  --fg: #111111;
  --accent: #c8e7ff;
  --soft: rgba(255, 255, 255, 0.7);
}

[data-theme="yellow"] {
  --bg: #fff3a6;
  --fg: #101010;
  --accent: #c9f4d2;
  --soft: rgba(255, 255, 255, 0.55);
}

[data-theme="coral"] {
  --bg: #ffc8b8;
  --fg: #130c09;
  --accent: #c8e7ff;
  --soft: rgba(255, 255, 255, 0.5);
}

[data-theme="blue"] {
  --bg: #c8e7ff;
  --fg: #060b1c;
  --accent: #fff3a6;
  --soft: rgba(255, 255, 255, 0.52);
}

[data-theme="pink"] {
  --bg: #f8b7cd;
  --fg: #14020b;
  --accent: #c9f4d2;
  --soft: rgba(255, 255, 255, 0.58);
}

[data-theme="ink"] {
  --bg: #d8c2ff;
  --fg: #140e20;
  --accent: #f8b7cd;
  --soft: rgba(255, 255, 255, 0.5);
  color-scheme: light;
}

.palette-home .section-snap {
  position: relative;
  min-height: 100vh;
}

.minimal-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #ffffff;
}

.minimal-logo {
  max-width: none;
  margin: 0;
  font-family: "Arial Rounded MT Bold", "Avenir Next", var(--font);
  font-size: clamp(5.8rem, 23vw, 22rem);
  line-height: 0.8;
  letter-spacing: 0;
  text-transform: lowercase;
  color: #f5a7bf;
  animation: monkiColorCycle 8s steps(1, end) infinite;
}

.minimal-scroll {
  margin-top: 1.25rem;
  font-size: 0.84rem;
  font-weight: 1000;
  text-transform: uppercase;
  color: #111111;
}

.palette-hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  padding-bottom: 7rem;
}

.palette-title {
  max-width: none;
  margin: 0.5rem 0 1rem;
  font-size: clamp(4.7rem, 16vw, 15rem);
  line-height: 0.76;
  text-transform: lowercase;
  font-family: "Arial Rounded MT Bold", "Avenir Next", var(--font);
  letter-spacing: 0;
}

.palette-intro {
  justify-self: center;
  max-width: 39rem;
  margin: 0;
  font-size: clamp(1.05rem, 1.8vw, 1.55rem);
  line-height: 1.2;
  font-weight: 800;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 2rem;
  translate: -50% 0;
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.palette-statement {
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--fg);
  text-align: center;
}

.statement-kicker {
  align-self: center;
  max-width: 34rem;
  font-size: clamp(1.2rem, 2vw, 1.8rem);
  line-height: 1.15;
  font-weight: 850;
}

.palette-statement h2 {
  align-self: center;
  max-width: 12ch;
  margin: 0;
  font-size: clamp(4rem, 11vw, 13rem);
  line-height: 0.78;
}

.palette-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: clamp(2rem, 6vw, 5rem);
  font-weight: 1000;
  text-transform: uppercase;
}

.palette-section-head a {
  border-bottom: 1px solid currentColor;
}

.palette-services {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.palette-list {
  border-top: 1px solid var(--fg);
}

.palette-list a {
  display: grid;
  grid-template-columns: 4rem minmax(0, 0.85fr) minmax(16rem, 0.65fr);
  gap: clamp(1rem, 3vw, 2.5rem);
  align-items: center;
  padding: clamp(1.25rem, 3vw, 2.25rem) 0;
  border-bottom: 1px solid var(--fg);
}

.palette-list span,
.palette-list em {
  font-size: 0.9rem;
  font-style: normal;
  font-weight: 900;
  line-height: 1.2;
}

.palette-list strong {
  font-size: clamp(2.8rem, 7vw, 8rem);
  line-height: 0.82;
  text-transform: uppercase;
}

.palette-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  padding-left: 0;
  padding-right: 0;
  background: var(--fg);
}

.palette-duo a {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(6rem, 10vw, 9rem) clamp(1rem, 4vw, 3rem) clamp(2rem, 5vw, 4rem);
  background: var(--bg);
}

.palette-duo small {
  font-size: 0.8rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.palette-duo strong {
  max-width: 8ch;
  font-size: clamp(4rem, 9vw, 10rem);
  line-height: 0.78;
  text-transform: uppercase;
}

.palette-book {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.palette-book h2 {
  align-self: center;
  max-width: 10ch;
  margin-bottom: 2rem;
  font-size: clamp(4rem, 12vw, 14rem);
  line-height: 0.78;
}

.palette-book .hero-actions {
  justify-content: center;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

@keyframes drift {
  50% {
    transform: translate3d(1.2rem, -1.2rem, 0) rotate(4deg);
  }
}

@keyframes pulseDisc {
  50% {
    transform: scale(0.96);
  }
}

@keyframes monkiColorCycle {
  0% {
    color: #f6a9c8;
  }
  20% {
    color: #a8d8ff;
  }
  40% {
    color: #b9efc5;
  }
  60% {
    color: #fff08a;
  }
  80% {
    color: #d8c2ff;
  }
}

@media (max-width: 860px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    display: none;
  }

  .header-actions {
    gap: 0.45rem;
  }

  .book-button,
  .menu-toggle {
    width: 3.8rem;
    font-size: 0.68rem;
  }

  .hero,
  .split-feature,
  .work-preview,
  .service-detail,
  .manifesto {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: clamp(3.5rem, 18vw, 6.2rem);
  }

  h2 {
    font-size: clamp(3rem, 14vw, 5rem);
  }

  .section-snap {
    min-height: auto;
    padding-top: 7rem;
  }

  .hero {
    min-height: 100vh;
  }

  .feature-grid,
  .case-wall,
  .services-strip {
    grid-template-columns: 1fr;
  }

  .service-tile {
    min-height: 26rem;
  }

  .poster-stack {
    min-height: 32rem;
  }

  .poster {
    width: min(72vw, 20rem);
  }

  .poster-b {
    left: 14%;
  }

  .poster-c {
    left: 25%;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .palette-title {
    font-size: clamp(4.4rem, 19vw, 7.4rem);
  }

  .minimal-logo {
    font-size: clamp(5.2rem, 26vw, 8.6rem);
  }

  .palette-intro {
    font-size: 1rem;
    max-width: 28rem;
  }

  .palette-home .section-snap {
    min-height: 100svh;
  }

  .palette-statement h2,
  .palette-book h2 {
    font-size: clamp(3.4rem, 17vw, 6.2rem);
  }

  .palette-list a {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .palette-list strong {
    font-size: clamp(3.2rem, 17vw, 6rem);
  }

  .palette-duo {
    grid-template-columns: 1fr;
  }

  .palette-duo a {
    min-height: 50vh;
  }

  .palette-duo strong {
    font-size: clamp(3.4rem, 18vw, 6.2rem);
  }
}

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