@import url('https://fonts.googleapis.com/css2?family=Bowlby+One+SC&family=DM+Mono:wght@400;500&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --ink: #f8f3ff;
  --muted: #c7b8d7;
  --purple: #9d4edd;
  --violet: #5a189a;
  --deep: #100615;
  --panel: rgba(30, 12, 39, .78);
  --line: rgba(218, 181, 255, .22);
  --hot: #e3a7ff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% 20%, rgba(137, 62, 180, .35), transparent 35%),
    radial-gradient(circle at 80% 70%, rgba(76, 26, 110, .30), transparent 32%),
    linear-gradient(180deg, #08040b 0%, #160a1e 55%, #09040d 100%);
  font-family: "Space Grotesk", system-ui, sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .45;
  background-image:
    radial-gradient(#fff 0.8px, transparent 0.8px),
    radial-gradient(#d9a7ff 0.6px, transparent 0.6px);
  background-size: 67px 67px, 113px 113px;
  background-position: 7px 12px, 31px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 92%);
}

a { color: inherit; }
.wrap { width: min(1180px, calc(100% - 36px)); margin: 0 auto; }

/* HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--line);
  background: rgba(9, 4, 13, .84);
  backdrop-filter: blur(18px);
}

.nav {
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.wordmark {
  display: block;
  flex-shrink: 0;
  text-decoration: none;
}

.wordmark img {
  display: block;
  width: 300px;
  height: auto;
}

.wordmark span { color: var(--hot); }

.navlinks {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.navlinks a {
  padding: 8px 9px;
  border: 1px solid transparent;
  color: var(--muted);
  text-decoration: none;
  font-family: "DM Mono", monospace;
  font-size: 10px;
  letter-spacing: .08em;
}

.navlinks a:hover,
.navlinks a.active {
  color: #fff;
  border-color: var(--line);
  background: rgba(157, 78, 221, .12);
}

/* HERO */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 720px;
  height: min(850px, 90vh);
  display: flex;
  align-items: center;
}

.hero-background {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("treeHouseBazaarWallpaperRenderBG.png");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  transform: scale(1.015);
}

.hero-foreground {
  position: absolute;
  z-index: 1;
  width: min(760px, 58vw);
  left: -2vw;
  bottom: -5%;
  transform-origin: 50% 100%;
  will-change: transform;
  pointer-events: none;
}

.hero-foreground img {
  display: block;
  width: 200%;
  height: auto;
  user-select: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 0%, transparent 42%, rgba(16,6,21,.07) 55%, rgba(16,6,21,.36) 76%, rgba(16,6,21,.68) 100%),
    linear-gradient(180deg, transparent 65%, rgba(16,6,21,.28) 100%);
}

.hero-content {
  position: relative;
  z-index: 3;
  width: min(1180px, calc(100% - 72px));
  margin: 0 auto;
  padding-left: 50%;
  text-align: left;
}

.kicker {
  margin-bottom: 22px;
  color: var(--hot);
  font-family: "DM Mono", monospace;
  font-size: 11px;
  letter-spacing: .16em;
}

.hero h1,
.page-title {
  margin: 0;
  font-family: "Bowlby One SC", Impact, sans-serif;
  text-transform: uppercase;
  line-height: .84;
  letter-spacing: -.035em;
}

.hero h1 {
  max-width: 600px;
  font-size: clamp(64px, 8vw, 118px);
}

.hero h1 span {
  color: var(--hot);
  text-shadow: 0 0 35px rgba(227, 167, 255, .25);
}

.hero p {
  max-width: 560px;
  margin: 32px 0 0;
  color: #eee4f5;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.45;
}

.cta {
  display: inline-flex;
  margin-top: 28px;
  padding: 13px 18px;
  background: var(--ink);
  color: #16091d;
  text-decoration: none;
  font-family: "DM Mono", monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .08em;
  transform: skew(-5deg);
  box-shadow: 7px 7px 0 rgba(157, 78, 221, .55);
}

.cta:hover { transform: skew(-5deg) translate(-2px, -2px); }

/* MAIN */
.section { padding: 80px 0; }

.section-head {
  margin-bottom: 28px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 25px;
}

.section-head h2 {
  margin: 0;
  font-family: "Bowlby One SC", Impact, sans-serif;
  font-size: clamp(34px, 5vw, 58px);
  line-height: .9;
}

.section-head p {
  max-width: 460px;
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

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

.card {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(67, 22, 87, .88), rgba(17, 7, 23, .9)),
    radial-gradient(circle at 85% 20%, rgba(227, 167, 255, .18), transparent 30%);
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.card::before {
  content: attr(data-index);
  position: absolute;
  top: 12px;
  right: 14px;
  color: rgba(255, 255, 255, .35);
  font-family: "DM Mono", monospace;
  font-size: 10px;
}

.card::after {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: rgba(157, 78, 221, .22);
  filter: blur(10px);
}

.card:hover {
  transform: translateY(-5px) rotate(-.5deg);
  border-color: rgba(227, 167, 255, .7);
  box-shadow: 0 16px 45px rgba(0, 0, 0, .35);
}

.card h3 {
  margin: 0 0 7px;
  font-family: "Bowlby One SC", Impact, sans-serif;
  font-size: 25px;
  line-height: .9;
}

.card p {
  max-width: 330px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.manifesto {
  margin-top: 70px;
  padding: 45px 0;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.manifesto h2 {
  margin: 0;
  font-family: "Bowlby One SC", Impact, sans-serif;
  font-size: 34px;
  line-height: .9;
}

.manifesto p {
  margin: 0;
  color: #ded2e8;
  font-size: 19px;
  line-height: 1.55;
}

/* CATEGORY PAGES */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: 100px 0 65px;
}

.page-hero::before {
  content: "";
  position: absolute;
  top: -200px;
  right: -180px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(157, 78, 221, .35), transparent 67%);
}

.page-title {
  max-width: 1000px;
  font-size: clamp(62px, 11vw, 132px);
}

.page-deck {
  max-width: 720px;
  margin-top: 26px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.5;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.work {
  position: relative;
  min-height: 260px;
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.work .tag {
  color: var(--hot);
  font: 10px "DM Mono", monospace;
  letter-spacing: .12em;
}

.work h3 {
  margin: 34px 0 10px;
  font-family: "Bowlby One SC", Impact, sans-serif;
  font-size: 31px;
  line-height: .9;
}

.work p {
  max-width: 560px;
  color: var(--muted);
  line-height: 1.5;
}

.work .placeholder {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(255, 255, 255, .25);
  color: rgba(255, 255, 255, .35);
  font: 10px "DM Mono", monospace;
}

/* FOOTER */
footer {
  padding: 55px 0 75px;
  color: var(--muted);
  font: 11px "DM Mono", monospace;
  letter-spacing: .04em;
}

footer .footer-line {
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
}

/* TABLET */
@media (max-width: 1100px) {
  .hero-foreground {
    width: 61vw;
    left: -2vw;
    bottom: -1%;
  }

  .hero-content { padding-left: 48%; }
  .hero h1 { font-size: clamp(60px, 8.5vw, 100px); }
}

/* MOBILE */
@media (max-width: 850px) {
  .nav {
    padding: 15px 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .navlinks { justify-content: flex-start; }

  .hero {
    min-height: 720px;
    height: 92vh;
    align-items: flex-end;
  }

  .hero-background { background-position: center center; }

  .hero-foreground {
    width: 82vw;
    left: 3vw;
    bottom: 34%;
    transform-origin: 50% 70%;
  }

  .hero-content {
    width: calc(100% - 40px);
    margin: 0 auto 38px;
    padding: 0;
  }

  .hero h1 {
    max-width: 600px;
    font-size: clamp(56px, 14vw, 88px);
  }

  .hero p {
    max-width: 480px;
    margin-top: 20px;
    font-size: 16px;
  }

  .hero::after {
    background: linear-gradient(180deg, transparent 0%, transparent 22%, rgba(16,6,21,.05) 36%, rgba(16,6,21,.48) 58%, rgba(16,6,21,.95) 86%, var(--deep) 100%);
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

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

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

/* SMALL MOBILE */
@media (max-width: 550px) {
  .wrap { width: min(100% - 28px, 1180px); }

  .hero {
    min-height: 680px;
    height: 92svh;
  }

  .hero-foreground {
    width: 108vw;
    left: -4vw;
    bottom: 35%;
  }

  .hero-content {
    width: calc(100% - 30px);
    margin-bottom: 28px;
  }

  .hero h1 { font-size: clamp(52px, 15.5vw, 76px); }
  .kicker { font-size: 9px; }

  .hero p {
    max-width: 420px;
    font-size: 15px;
    line-height: 1.4;
  }

  .cta { margin-top: 22px; }
  .section { padding: 62px 0; }
  .section-head h2 { font-size: 42px; }
  .manifesto h2 { font-size: 30px; }
  .manifesto p { font-size: 17px; }
  footer .footer-line { flex-direction: column; }
}

/* ACCESSIBILITY */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-foreground { transform: none !important; }
  .card,
  .cta { transition: none; }
}

@media (max-width: 550px) {
  .wordmark img {
    width: 145px;
  }
}
.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 9px;

  border: 1px solid var(--line);
  background: rgba(157, 78, 221, .08);
  color: var(--ink);

  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;

  background: currentColor;

  transition:
    transform .2s ease,
    opacity .2s ease;
}

@media (max-width: 850px) {

  .nav {
    min-height: 58px;
    padding: 6px 0;

    flex-direction: row;
    align-items: center;
  }

  .wordmark img {
    width: 145px;
  }

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  .navlinks {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;

    display: none;
    flex-direction: column;
    align-items: stretch;

    padding: 12px 18px 18px;

    background: rgba(9, 4, 13, .97);
    border-bottom: 1px solid var(--line);

    backdrop-filter: blur(18px);
  }

  .navlinks.open {
    display: flex;
  }

  .navlinks a {
    width: 100%;
    padding: 13px 10px;

    font-size: 12px;

    border-bottom: 1px solid rgba(218, 181, 255, .12);
  }

  .menu-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-toggle.open span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}
