:root {
  --black: #050505;
  --white: #fff;
  --grey: #707070;
  --max: 1240px;
  --side: clamp(24px, 4.3vw, 52px);
  --ease: cubic-bezier(.25, .46, .45, .94);
}

* { box-sizing: border-box; }

html {
  background: var(--white);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--white);
  color: var(--black);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img { display: block; max-width: 100%; }
button { font: inherit; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 12px 16px;
  background: var(--black);
  color: var(--white);
  transform: translateY(-150%);
}

.skip-link:focus { transform: none; }

.nav {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px var(--side);
  border-bottom: 1px solid var(--black);
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(10px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  color: inherit;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: -.02em;
  text-decoration: none;
}

.mark {
  position: relative;
  width: 23px;
  height: 23px;
  overflow: hidden;
  flex: 0 0 auto;
  background: var(--black);
}

.mark::before {
  position: absolute;
  top: 3.5px;
  right: -6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--white);
  content: "";
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.nav-links a {
  min-height: 44px;
  display: grid;
  place-items: center;
  text-decoration: none;
  transition: opacity 180ms ease;
}

.nav-links a:hover { opacity: .5; }

.wrap {
  width: min(100%, var(--max));
  margin-inline: auto;
  padding-inline: var(--side);
}

.hero {
  min-height: calc(100svh - 68px);
  padding-block: clamp(76px, 12vw, 175px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(60px, 8vw, 110px);
  align-items: center;
}

.hero > * { min-width: 0; }

.hero-copy h1 {
  margin: 0 0 28px;
  font-size: clamp(52px, 6vw, 82px);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -.057em;
  text-wrap: balance;
}

.hero-copy > p:not(.hero-note) {
  max-width: 530px;
  margin: 0;
  font-size: clamp(18px, 1.8vw, 23px);
  line-height: 1.55;
}

.hero-note {
  margin: 55px 0 0;
  color: var(--grey);
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.module {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid var(--black);
  background: var(--black);
}

.module-slide {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: scale(.985);
  transition: opacity 550ms var(--ease), transform 800ms var(--ease);
  pointer-events: none;
}

.module-slide.active {
  z-index: 1;
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.module-slide:focus-visible {
  outline: 3px solid var(--white);
  outline-offset: -7px;
}

.module-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.module-slide--popasite { background: #edf7ff; }
.module-slide--popasite img,
.module-slide--taktyo img { width: 88%; height: 78%; object-fit: cover; border: 1px solid var(--black); }
.module-slide--minimal { background: var(--white); }
.module-slide--minimal img { width: 88%; height: 88%; object-fit: cover; border: 1px solid var(--black); }
.module-slide--squish { background: #6d35ff; }
.module-slide--squish img { width: 62%; height: 82%; object-fit: contain; }
.module-slide--taktyo { background: #eef0ef; }
.module-slide--mcp { background: #050505; }
.module-slide--mcp img { width: 92%; height: 92%; object-fit: cover; }
.module-slide--rooster { background: #ffdedf; }
.module-slide--rooster img { width: 88%; height: 88%; object-fit: cover; border: 1px solid var(--black); }
.module-slide--beachy { background: #bfe7e5; }
.module-slide--beachy img { width: 90%; height: 86%; object-fit: cover; border: 1px solid var(--black); }
.module-slide--drunk { background: #f13625; color: var(--white); text-decoration: none; }
.module-slide--drunk span {
  font-size: clamp(56px, 7vw, 100px);
  font-weight: 750;
  line-height: .77;
  letter-spacing: -.075em;
  text-align: center;
}

.module-progress {
  position: absolute;
  z-index: 5;
  right: 0;
  bottom: 41px;
  left: 0;
  height: 2px;
  background: rgba(0,0,0,.16);
}

.module-progress i {
  display: block;
  width: 12.5%;
  height: 100%;
  background: var(--black);
  transform-origin: left;
  transition: transform 450ms var(--ease);
}

.module-info {
  position: absolute;
  z-index: 5;
  right: 0;
  bottom: 0;
  left: 0;
  min-height: 41px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 11px 76px 11px 15px;
  border-top: 1px solid var(--black);
  background: var(--white);
  font-size: 10px;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.module-controls {
  position: absolute;
  z-index: 6;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: 36px 36px;
}

.module-controls button {
  width: 36px;
  height: 41px;
  padding: 0;
  border: 0;
  border-left: 1px solid var(--black);
  background: var(--white);
  color: var(--black);
  cursor: pointer;
}

.module-controls button:hover,
.module-controls button:focus-visible { background: var(--black); color: var(--white); }

.manifesto {
  padding: 50px var(--side);
  border-block: 1px solid var(--black);
  text-align: center;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.45;
}

.manifesto p { margin: 0; }
.manifesto span { color: var(--grey); }

.releases { padding-block: clamp(90px, 13vw, 180px); }

.release-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: clamp(56px, 8vw, 100px);
}

.release-head h2 {
  margin: 0;
  font-size: clamp(41px, 4vw, 58px);
  font-weight: 300;
  letter-spacing: -.045em;
}

.release-head p {
  max-width: 440px;
  margin: 8px 0 0;
  justify-self: end;
  font-size: 15px;
  line-height: 1.55;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(55px, 7vw, 95px) clamp(28px, 5vw, 64px);
}

.card { min-width: 0; }
.card > a { display: block; color: inherit; text-decoration: none; }

.visual {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid var(--black);
  background: #f4f4f4;
}

.visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 650ms var(--ease), filter 450ms var(--ease);
}

.card:hover .visual img { transform: scale(1.018); filter: saturate(1.08); }

.visual--popasite { display: grid; place-items: center; padding: 7%; background: #edf7ff; }
.visual--popasite img { border: 1px solid var(--black); }
.visual--minimal { display: grid; place-items: center; padding: 6%; background: var(--white); }
.visual--minimal img { border: 1px solid var(--black); }
.visual--squish { display: grid; place-items: center; background: #6d35ff; }
.visual--squish img { width: 62%; height: 84%; object-fit: contain; }
.visual--taktyo { display: grid; place-items: center; padding: 7%; background: #eef0ef; }
.visual--taktyo img { border: 1px solid var(--black); }
.visual--mcp { display: grid; place-items: center; padding: 4%; background: var(--black); }
.visual--rooster { display: grid; place-items: center; padding: 6%; background: #ffdedf; }
.visual--rooster img { border: 1px solid var(--black); }
.visual--beachy { display: grid; place-items: center; padding: 5%; background: #bfe7e5; }
.visual--beachy img { border: 1px solid var(--black); }
.visual--drunk {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 34px;
  background: #f13625;
  color: var(--white);
}

.visual--drunk > span {
  font-size: clamp(66px, 8vw, 116px);
  font-weight: 750;
  line-height: .77;
  letter-spacing: -.075em;
  text-align: center;
}

.visual--drunk small { font-size: 10px; letter-spacing: .2em; }

.meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  padding-top: 15px;
}

.meta h3 {
  margin: 0 0 6px;
  font-size: 23px;
  font-weight: 300;
  letter-spacing: -.035em;
}

.meta p {
  max-width: 440px;
  margin: 0;
  color: #5d5d5d;
  font-size: 13px;
  line-height: 1.45;
}

.code {
  text-align: right;
  font-size: 10px;
  line-height: 1.45;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.arrow {
  display: inline-block;
  margin-top: 8px;
  font-size: 15px;
  transition: transform 180ms ease;
}

.card:hover .arrow { transform: translate(2px, -2px); }

.principle {
  padding-block: clamp(90px, 14vw, 185px);
  border-top: 1px solid var(--black);
}

.principle h2 {
  max-width: 1000px;
  margin: 0;
  font-size: clamp(54px, 8.6vw, 124px);
  font-weight: 300;
  line-height: .93;
  letter-spacing: -.075em;
}

.principle p {
  max-width: 430px;
  margin: 42px 0 0;
  font-size: 17px;
  line-height: 1.55;
}

.footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  padding: 48px var(--side);
  background: var(--black);
  color: var(--white);
}

.brand--inverse .mark { background: var(--white); }
.brand--inverse .mark::before { background: var(--black); }

.footer p {
  margin: 0;
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.footer p:nth-child(2) { text-align: center; }
.footer p:last-child { text-align: right; }

.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}

.js .reveal.shown { opacity: 1; transform: none; }

@media (max-width: 760px) {
  .nav { padding-block: 16px; }
  .nav-links a:not(:last-child) { display: none; }
  .hero { min-height: auto; grid-template-columns: minmax(0, 1fr); padding-block: 80px; }
  .hero-copy h1 { font-size: clamp(46px, 13.2vw, 64px); text-wrap: pretty; }
  .hero-note { margin-top: 32px; }
  .module { width: 100%; margin-top: 5px; }
  .module-info { gap: 8px; padding-right: 76px; padding-left: 10px; font-size: 9px; }
  .release-head { grid-template-columns: 1fr; }
  .release-head p { justify-self: start; }
  .grid { grid-template-columns: minmax(0, 1fr); }
  .footer { grid-template-columns: 1fr 1fr; gap: 42px; }
  .footer p:nth-child(2) { display: none; }
  .footer p:last-child { text-align: right; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before { transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
