@font-face {
  font-family: "Archivo";
  font-style: italic;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url("assets/fonts/archivo-latin-standard-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url("assets/fonts/archivo-latin-standard-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Martian Mono";
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/martian-mono-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Martian Mono";
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/martian-mono-latin-700-normal.woff2") format("woff2");
}

:root {
  --pink: #f50a6e;
  --ink: #15100f;
  --chalk: #f8f1ee;
  --mustard: #f4b519;
  --cobalt: #1a2db4;
  --maple: #d9b47d;
  /* The lean of the letters in the Candi logo, measured from the trace. */
  --slant: 23.7deg;
  --gutter: clamp(16px, 2.6vw, 40px);
  --sans: "Archivo", "Arial Narrow", sans-serif;
  --mono: "Martian Mono", ui-monospace, monospace;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(1.05rem, 0.98rem + 0.35vw, 1.3rem);
  line-height: 1.4;
  overflow-x: clip;
}

img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p, figure { margin: 0; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; box-shadow: 0 0 0 3px var(--chalk); }

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

.display {
  font-weight: 900;
  font-style: italic;
  font-stretch: 125%;
  line-height: 0.92;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

/* The logo is a mask over a chalk grit tile, so it reads as die-cut griptape. */
.logo {
  display: block;
  aspect-ratio: 6025 / 1205;
  background: var(--chalk) url("assets/grit-chalk.webp") 0 0 / 420px;
  -webkit-mask: url("assets/logo.svg") center / 100% 100% no-repeat;
  mask: url("assets/logo.svg") center / 100% 100% no-repeat;
}

/* Tags are parallelograms that lean at the same angle as the logo. */
.tag {
  position: relative;
  isolation: isolate;
  display: inline-block;
  padding: 0.62em 1.15em;
  border: 0;
  background: none;
  color: var(--chalk);
  font-family: var(--mono);
  font-size: clamp(0.62rem, 0.58rem + 0.2vw, 0.78rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}
.tag::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--ink);
  transform: skewX(calc(var(--slant) * -1));
  transition: background-color 0.15s, transform 0.15s;
}
.tag--chalk { color: var(--ink); }
.tag--chalk::before { background: var(--chalk); }
.tag--big {
  padding: 0.42em 0.8em;
  font-family: var(--sans);
  font-size: clamp(1.15rem, 0.9rem + 1.5vw, 2.3rem);
  font-weight: 900;
  font-style: italic;
  font-stretch: 112%;
  letter-spacing: -0.01em;
}
.tag--button { cursor: pointer; font-weight: 700; }
.tag--button:hover::before { background: var(--cobalt); transform: skewX(calc(var(--slant) * -1)) translateY(-2px); }

/* Hero: a photo under a griptape canvas, with the logo always on top. */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 520px;
  overflow: hidden;
  background: var(--pink);
  cursor: crosshair;
  touch-action: pan-y;
}
.hero__photo, .hero__grip {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero__photo { object-fit: cover; }
.hero__grip { background: url("assets/grit-pink.webp") 0 0 / 640px; }
.hero.is-live .hero__grip {
  background: none;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}
.hero.is-ripped .hero__grip {
  clip-path: polygon(100% 0, 100% 0, 100% 100%, 100% 100%);
  transition: clip-path 0.7s cubic-bezier(0.7, 0, 0.2, 1);
}
.hero__logo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(94vw, 460svh);
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 3px 0 rgb(21 16 15 / 0.28));
  pointer-events: none;
}
.hero__corner {
  position: absolute;
  top: var(--gutter);
  pointer-events: none;
}
.hero__corner--left { left: calc(var(--gutter) + 6px); }
.hero__corner--right { right: calc(var(--gutter) + 6px); }
.hero__foot {
  position: absolute;
  right: calc(var(--gutter) + 6px);
  bottom: calc(var(--gutter) + 1.6vw);
  left: calc(var(--gutter) + 6px);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 24px;
  pointer-events: none;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px 20px;
}
.hero__actions > a, .hero__actions > button { pointer-events: auto; }

@media (max-aspect-ratio: 4/5) {
  /* Tall screens get the logo the way the griptape sheet carries it: along the length. */
  .hero__logo {
    top: 45%;
    left: 24%;
    width: min(70svh, 150vw);
    transform: translate(-50%, -50%) rotate(-90deg);
  }
  .hero__foot { flex-direction: column; align-items: flex-end; }
  .hero__tagline { align-self: flex-start; }
}

/* Ticker */
.ticker-clip {
  position: relative;
  z-index: 2;
  overflow-x: clip;
}
.ticker {
  width: 106%;
  margin: -1.1rem 0 0 -3%;
  overflow: hidden;
  background: var(--ink);
  color: var(--chalk);
  transform: rotate(-1.4deg);
}
.ticker__track {
  display: flex;
  width: max-content;
  animation: ticker 34s linear infinite;
}
.ticker span {
  padding: 0.5em 0;
  font-size: clamp(1.1rem, 0.8rem + 1.7vw, 2.4rem);
  font-weight: 900;
  font-style: italic;
  font-stretch: 125%;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  white-space: nowrap;
}
.ticker i { padding: 0 0.35em; color: var(--pink); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* Intro */
.intro {
  padding: clamp(5rem, 11vw, 11rem) var(--gutter) clamp(3.5rem, 7vw, 7rem);
  background: var(--chalk);
}
.intro .display {
  max-width: 12em;
  color: var(--pink);
  font-size: clamp(3rem, 11.6vw, 12.5rem);
}
.intro__text {
  max-width: 30em;
  margin: clamp(1.5rem, 3vw, 3rem) 0 0 auto;
  font-size: clamp(1.1rem, 1rem + 0.6vw, 1.55rem);
}

/* Flavors */
.flavor {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 3.4fr) minmax(0, 3.6fr);
  grid-template-areas:
    "name name name"
    "visual copy facts";
  gap: clamp(1.5rem, 3vw, 3rem);
  padding: clamp(1.5rem, 3vw, 3rem) var(--gutter) clamp(3rem, 6vw, 6rem);
  overflow: clip;
}
.flavor--deck { background: var(--mustard); }
.flavor--grip { background: var(--cobalt); color: var(--chalk); }
.flavor__name {
  grid-area: name;
  font-size: clamp(3.3rem, 15.6vw, 17rem);
  font-weight: 900;
  font-style: italic;
  font-stretch: 125%;
  line-height: 0.86;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  white-space: nowrap;
}
.flavor--grip .flavor__name { font-size: clamp(3.3rem, 13.2vw, 15rem); color: var(--pink); }
.flavor__visual {
  grid-area: visual;
  position: relative;
  display: flex;
  justify-content: center;
  min-height: clamp(420px, 44vw, 700px);
}
.flavor__copy {
  grid-area: copy;
  align-self: end;
  padding-bottom: clamp(0rem, 2vw, 2rem);
}
.kicker {
  margin-bottom: 1em;
  font-family: var(--mono);
  font-size: clamp(0.66rem, 0.6rem + 0.2vw, 0.8rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.flavor__text {
  font-size: clamp(1.25rem, 1rem + 1.1vw, 2rem);
  font-weight: 700;
  font-stretch: 88%;
  line-height: 1.12;
}

/* Decks */
.fan {
  position: relative;
  width: 100%;
  height: 100%;
  --deck-w: clamp(92px, 11.2vw, 180px);
}
.deck {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: var(--deck-w);
  aspect-ratio: 1 / 3.9;
  margin-left: calc(var(--deck-w) / -2);
  border-radius: 50% / 12.8%;
  box-shadow: 0 0 0 clamp(2px, 0.35vw, 5px) var(--maple), 10px 16px 0 rgb(21 16 15 / 0.2);
  transform-origin: 50% 100%;
  container-type: size;
  transition: transform 0.9s cubic-bezier(0.2, 1.4, 0.3, 1);
}
/* Eight truck bolts: the detail that turns a rounded bar into a skateboard. */
.deck::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  --bolt: radial-gradient(circle, #0a0707 0 42%, transparent 46%);
  background:
    var(--bolt) 38% 16.5%, var(--bolt) 62% 16.5%, var(--bolt) 38% 21.5%, var(--bolt) 62% 21.5%,
    var(--bolt) 38% 78.5%, var(--bolt) 62% 78.5%, var(--bolt) 38% 83.5%, var(--bolt) 62% 83.5%;
  background-repeat: no-repeat;
  background-size: 6% 1.54%;
}
.deck--ink { background: var(--ink); }
.deck--ink::before { --bolt: radial-gradient(circle, #4b4340 0 42%, transparent 46%); }
.deck--ink:first-child { transform: rotate(-22deg); }
.deck--ink:last-child { transform: rotate(22deg); }
.deck--grip { z-index: 1; background: var(--pink) url("assets/grit-pink.webp") 0 0 / 420px; }
.deck--grip .logo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 76cqh;
  transform: translate(-50%, -50%) rotate(-90deg);
}
.js .fan:not(.in-view) .deck { transform: rotate(0); }
.fan:hover .deck--ink:first-child { transform: rotate(-30deg); }
.fan:hover .deck--ink:last-child { transform: rotate(30deg); }

/* Griptape sheet */
.sheet {
  --sheet-w: clamp(104px, 11.6vw, 186px);
  position: absolute;
  bottom: -14%;
  left: 50%;
  width: var(--sheet-w);
  margin-left: calc(var(--sheet-w) / -2);
  box-shadow: 10px 16px 0 rgb(21 16 15 / 0.32);
  transform: rotate(14deg);
  transform-origin: 50% 100%;
}

/* Nutrition labels */
.facts {
  grid-area: facts;
  align-self: end;
  justify-self: end;
  position: relative;
  width: 100%;
  max-width: 400px;
  padding: 0.6em 0.75em 0.75em;
  border: 2px solid var(--ink);
  background: #fff;
  color: var(--ink);
  font-size: clamp(0.92rem, 0.86rem + 0.25vw, 1.08rem);
  line-height: 1.2;
  rotate: 1.4deg;
}
.flavor--grip .facts { rotate: -1.4deg; }
.facts__title {
  padding-bottom: 0.05em;
  border-bottom: 1px solid var(--ink);
  font-size: 3.05em;
  font-weight: 900;
  font-stretch: 86%;
  line-height: 1;
  letter-spacing: -0.015em;
  white-space: nowrap;
}
.facts__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1em;
  padding: 0.28em 0;
  border-top: 1px solid var(--ink);
}
.facts__row span:first-child { font-weight: 500; }
.facts__row--plain { border-top: 0; padding: 0.14em 0; }
.facts__row--plain:first-of-type { padding-top: 0.32em; }
.facts__row b { font-weight: 800; }
.facts__amount {
  margin-top: 0.3em;
  padding-top: 0.3em;
  border-top: 0.62em solid var(--ink);
  font-size: 0.82em;
  font-weight: 800;
}
.facts__row--big {
  align-items: center;
  padding: 0;
  border-top: 0;
  font-size: 1.75em;
}
.facts__row--big span:first-child { font-weight: 900; }
.facts__row--big b { font-weight: 900; }
.facts__head {
  padding: 0.3em 0 0.25em;
  border-top: 0.32em solid var(--ink);
  font-size: 0.78em;
  font-weight: 800;
  text-align: right;
}
.facts__row--last { padding-bottom: 0.5em; border-bottom: 0.62em solid var(--ink); }
.facts__note { padding-top: 0.5em; font-size: 0.82em; line-height: 1.25; }

.redact {
  position: relative;
  display: inline-block;
  width: var(--w, 4em);
  height: 1.25em;
  overflow: hidden;
  background: var(--ink);
  color: var(--chalk);
  font-family: var(--mono);
  font-size: 0.72em;
  line-height: 1.25;
  text-align: center;
  text-transform: uppercase;
  transform: translateY(0.12em);
}
.facts__row--big .redact { font-size: 0.42em; width: calc(var(--w) * 1.6); }
.facts__row .redact span {
  display: block;
  font-weight: 700;
  opacity: 0;
  transition: opacity 0.12s;
}
.redact:hover { background: var(--pink); }
.facts__row .redact:hover span { opacity: 1; }

/* Taste testing */
.tasting {
  padding: clamp(4rem, 9vw, 9rem) var(--gutter) clamp(5rem, 10vw, 10rem);
  background: var(--ink);
  color: var(--chalk);
}
.tasting__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.5em 2em;
  margin-bottom: clamp(2rem, 5vw, 5rem);
}
.tasting .display { color: var(--pink); font-size: clamp(2.9rem, 11.2vw, 12rem); }
.tasting__text { font-family: var(--mono); font-size: clamp(0.7rem, 0.62rem + 0.3vw, 0.9rem); text-transform: uppercase; }
.frames {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(0.75rem, 1.6vw, 1.5rem);
}
.frame { position: relative; margin: 0; }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame .tag { position: absolute; left: 1.1em; bottom: 1em; color: var(--ink); }
.frame .tag::before { background: var(--chalk); }
.frame--handplant { grid-row: 1; grid-column: 1 / span 8; aspect-ratio: 3 / 2; z-index: 1; }
.frame--boardslide { grid-row: 1; grid-column: 8 / span 5; align-self: end; aspect-ratio: 4 / 3; margin-bottom: -18%; z-index: 2; box-shadow: 0 0 0 clamp(6px, 1vw, 14px) var(--ink); }
.frame--kickflip { grid-row: 2; grid-column: 1 / span 5; align-self: start; aspect-ratio: 1 / 1; margin-top: 8%; z-index: 2; }
.frame--kickflip img { object-position: 56% 50%; }
.frame--warehouse { grid-row: 2; grid-column: 6 / span 7; aspect-ratio: 3 / 2; margin-top: 16%; }

.js .frame {
  clip-path: polygon(0 0, 28% 0, 0 100%, 0 100%);
  transition: clip-path 0.95s cubic-bezier(0.7, 0, 0.15, 1);
}
.js .frame.in-view { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
.js .frame--boardslide.in-view { clip-path: polygon(-5% -5%, 105% -5%, 105% 105%, -5% 105%); }

/* Signup */
.signup {
  position: relative;
  display: grid;
  align-items: center;
  justify-items: end;
  min-height: min(92vh, 70vw);
  padding: clamp(2rem, 5vw, 5rem) var(--gutter);
  overflow: clip;
  background: #e8a14a;
}
.signup__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 30% 40%;
}
.signup__panel {
  position: relative;
  width: min(100%, 560px);
  padding: clamp(1.5rem, 3vw, 2.6rem);
  background: var(--pink) url("assets/grit-pink.webp") 0 0 / 420px;
  box-shadow: 12px 16px 0 rgb(21 16 15 / 0.42);
  rotate: -1.6deg;
}
.signup__title {
  font-size: clamp(2.5rem, 1.6rem + 4.2vw, 5rem);
  font-weight: 900;
  font-style: italic;
  font-stretch: 118%;
  line-height: 0.92;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.signup__text {
  margin: 0.8em 0 1.2em;
  font-weight: 650;
}
.signup__form { display: flex; flex-wrap: wrap; gap: 0.75rem 1.1rem; }
.signup__form input[type="email"] {
  flex: 1 1 13rem;
  min-width: 0;
  padding: 0.75em 0.9em;
  border: 2px solid var(--ink);
  border-radius: 0;
  background: var(--chalk);
  color: var(--ink);
  font: inherit;
  font-weight: 600;
}
.signup__form input::placeholder { color: #6b5f5b; }
.signup__trap { position: absolute; left: -9999px; }
.tag--submit { margin-inline: 0.5rem; font-size: clamp(0.72rem, 0.68rem + 0.2vw, 0.86rem); padding: 1.15em 1.5em; }
.signup__status:empty { display: none; }
.signup__status { margin-top: 0.9em; font-weight: 800; }
.signup__small { margin-top: 1em; font-size: 0.78em; font-weight: 600; }

/* Footer */
.footer {
  overflow: hidden;
  background: var(--ink);
  color: var(--chalk);
}
.footer__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5em 2em;
  padding: clamp(1.5rem, 3vw, 3rem) var(--gutter);
  font-family: var(--mono);
  font-size: clamp(0.66rem, 0.6rem + 0.2vw, 0.8rem);
  text-transform: uppercase;
}
.footer__logo {
  width: 100%;
  margin-bottom: -2.4vw;
  background: var(--pink) url("assets/grit-pink.webp") 0 0 / 420px;
}

/* Scroll reveal */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.55s ease, transform 0.75s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.js .reveal.in-view { opacity: 1; transform: none; }

/* Medium screens: the label drops under the copy. */
@media (max-width: 1050px) {
  .flavor {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
      "name name"
      "visual copy"
      "visual facts";
  }
  .flavor__copy { align-self: start; padding-top: 1rem; }
  .facts { justify-self: start; }
  .sheet { bottom: 4%; transform-origin: 50% 50%; }
  .signup { min-height: 0; padding-top: 52vw; justify-items: center; background: var(--ink); }
  .signup__photo { height: 66vw; bottom: auto; object-position: 34% 30%; }
}

@media (max-width: 680px) {
  .flavor {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "name"
      "visual"
      "copy"
      "facts";
  }
  .flavor__visual { min-height: 410px; }
  .fan { --deck-w: 92px; }
  .sheet { --sheet-w: 92px; bottom: 0; transform-origin: 50% 50%; }
  .facts { justify-self: center; }
  .intro__text { margin-left: 0; }
  .hero__hint { display: none; }
  .frame--handplant, .frame--boardslide, .frame--kickflip, .frame--warehouse {
    grid-row: auto;
    grid-column: 1 / -1;
    margin: 0;
    box-shadow: none;
    aspect-ratio: 3 / 2;
  }
  .frame--boardslide { margin-left: 12%; }
  .frame--warehouse { margin-right: 12%; }
  .signup { padding-top: 58vw; }
  .signup__photo { height: 72vw; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker__track { animation: none; }
  .js .reveal, .js .frame { opacity: 1; transform: none; clip-path: none; transition: none; }
  .deck, .hero.is-ripped .hero__grip { transition: none; }
}
