:root {
  --ink: #222;
  --paper: #fff;
  --panel: #232323;
  --muted: #8a8a8a;
  --ease: cubic-bezier(.65, 0, .35, 1);
  --gutter: clamp(20px, 4.45vw, 64px);
  --font: "Source Sans 3", "Myriad Pro", "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

/* ---------- Ring ---------- */
.ring {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.ring canvas { display: block; width: 100%; height: 100%; }

/* ---------- Arrow box ---------- */
.arrow-box {
  --size: 26px;
  position: relative;
  display: inline-block;
  flex: none;
  width: var(--size);
  height: var(--size);
  border: 1.5px solid var(--ink);
  background: var(--paper);
  overflow: hidden;
  transition: background-color .3s var(--ease);
}
.arrow-box::before,
.arrow-box::after {
  content: "";
  position: absolute;
  inset: 0;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6'%3E%3Cpath d='M5 12h13M13 6.5l5.5 5.5-5.5 5.5'/%3E%3C/svg%3E") center / 72% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6'%3E%3Cpath d='M5 12h13M13 6.5l5.5 5.5-5.5 5.5'/%3E%3C/svg%3E") center / 72% no-repeat;
  transition: transform .45s var(--ease);
}
.arrow-box::after { transform: translateX(-100%); }
.arrow-box--small { --size: 24px; }

a:hover .arrow-box,
a:focus-visible .arrow-box { background: var(--ink); color: var(--paper); }
a:hover .arrow-box::before,
a:focus-visible .arrow-box::before { transform: translateX(100%); }
a:hover .arrow-box::after,
a:focus-visible .arrow-box::after { transform: translateX(0); }

/* ---------- Corner buttons ---------- */
.corner {
  position: fixed;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: clamp(22px, 2.22vw, 32px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.005em;
  opacity: 0;
  animation: fadeIn .9s var(--ease) .6s forwards;
}
.corner .arrow-box { --size: 24px; }
.corner--top-right    { top: var(--gutter); right: var(--gutter); }
.corner--bottom-left  { bottom: var(--gutter); left: var(--gutter); }
.corner--bottom-right { bottom: var(--gutter); right: var(--gutter); flex-direction: column; }
.corner__label--vertical {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

/* ---------- Hero ---------- */
.hero {
  position: fixed;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  pointer-events: none;
  /* one size drives the whole title block: "WANDS & NEEDS" spans ~55% of the screen */
  --F: min(8vw, 13vh);
}
.hero__inner {
  position: relative;
  pointer-events: auto;
  opacity: 0;
  transform: translateY(20px);
  animation: rise 1.1s var(--ease) .2s forwards;
}
.hero__heading { position: relative; }
.hero__title {
  margin: 0;
  font-size: var(--F);
  font-weight: 600;
  line-height: .8;
  letter-spacing: -.02em;
  text-transform: uppercase;
  white-space: nowrap;
}
.hero__title span { display: block; }
.hero__title span:first-child { margin-left: -.04em; } /* optical alignment of the W */

/* credit sits in the free space to the right of "COLLECTION", top-aligned with its capitals */
.hero__credit {
  position: absolute;
  right: 0;
  top: calc(var(--F) * .835);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1;
}
.hero__credit-small {
  font-size: max(9px, calc(var(--F) * .085));
  letter-spacing: .02em;
}
.hero__credit-name {
  font-size: max(15px, calc(var(--F) * .2));
  font-weight: 700;
  letter-spacing: -.01em;
  margin-top: calc(var(--F) * .03);
}

.hero__footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-top: max(16px, calc(var(--F) * .21));
}
.hero__tagline {
  margin: 0;
  font-size: clamp(13px, 1.11vw, 16px);
  line-height: 1.2;
}
.hero__discover {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: clamp(16px, 1.4vw, 20px);
  font-weight: 600;
}
.hero__discover .arrow-box { --size: clamp(28px, 2.2vw, 32px); }

/* ---------- Top menu ---------- */
.menu {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 10;
  width: min(396px, calc(100vw - 2 * var(--gutter)));
  transform: translate(-50%, -100%);
  background: var(--panel);
  color: #fff;
  animation: menuIn .9s var(--ease) .1s forwards;
}
.menu__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
  padding: 0 24px;
}
.menu__brand { display: flex; align-items: center; gap: 10px; font-size: 18px; }
.menu__brand strong { font-weight: 600; }
.menu__divider { width: 1px; height: 22px; background: #fff; opacity: .85; }
.menu__toggle { display: flex; align-items: center; gap: 12px; font-size: 14px; height: 100%; }
.menu__icon { position: relative; width: 18px; height: 12px; }
.menu__icon i {
  position: absolute; left: 0; width: 100%; height: 1.5px; background: #fff;
  transition: transform .4s var(--ease), opacity .3s var(--ease), top .4s var(--ease);
}
.menu__icon i:nth-child(1) { top: 0; }
.menu__icon i:nth-child(2) { top: 5.25px; }
.menu__icon i:nth-child(3) { top: 10.5px; }
.menu.is-open .menu__icon i:nth-child(1) { top: 5.25px; transform: rotate(45deg); }
.menu.is-open .menu__icon i:nth-child(2) { opacity: 0; }
.menu.is-open .menu__icon i:nth-child(3) { top: 5.25px; transform: rotate(-45deg); }

.menu__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .6s var(--ease);
}
.menu.is-open .menu__panel { grid-template-rows: 1fr; }
.menu__list {
  min-height: 0;
  overflow: hidden;
  list-style: none;
  margin: 0;
  padding: 0 24px;
  border-top: 1px solid rgba(255, 255, 255, 0);
  transition: border-color .4s;
}
.menu.is-open .menu__list { border-top-color: rgba(255, 255, 255, .12); }
.menu__list li:first-child { padding-top: 18px; }
.menu__list li:last-child  { padding-bottom: 26px; }
.menu__list a {
  display: block;
  padding: 6px 0;
  font-size: 36px;
  font-weight: 600;
  line-height: 1.15;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .35s ease, transform .35s var(--ease), color .25s;
}
.menu.is-open .menu__list a { opacity: 1; transform: none; transition-duration: .55s, .55s, .25s; }
.menu.is-open .menu__list li:nth-child(1) a { transition-delay: .15s, .15s, 0s; }
.menu.is-open .menu__list li:nth-child(2) a { transition-delay: .21s, .21s, 0s; }
.menu.is-open .menu__list li:nth-child(3) a { transition-delay: .27s, .27s, 0s; }
.menu.is-open .menu__list li:nth-child(4) a { transition-delay: .33s, .33s, 0s; }
/* dim the other items while one is hovered, like the original */
.menu__list:hover a { color: var(--muted); }
.menu__list a:hover, .menu__list a:focus-visible { color: #fff; }

/* ---------- Animations ---------- */
@keyframes fadeIn { to { opacity: 1; } }
@keyframes rise   { to { opacity: 1; transform: none; } }
@keyframes menuIn { to { transform: translate(-50%, 0); } }

/* ---------- Small screens ---------- */
@media (max-width: 700px) {
  .hero { --F: 10.6vw; }
  .hero__credit { position: static; align-items: flex-start; margin-bottom: 12px; order: -1; }
  .hero__heading { display: flex; flex-direction: column; }
  .hero__footer { flex-direction: column; gap: 18px; }
  .menu__list a { font-size: 30px; }
  .corner { gap: 12px; }
  .corner--top-right { top: 92px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01s !important; transition-duration: .01s !important; }
}

