/* =========================================================
   Crewland · design tokens
   Three colors only: red, black, cream.
   ========================================================= */
:root {
  --bg:         #0b0a09;   /* black */
  --bg-2:       #141210;
  --card:       #1a1715;
  --line:       rgba(241, 233, 220, 0.10);
  --line-2:     rgba(241, 233, 220, 0.18);

  --cream:      #f1e9dc;   /* off-white */
  --text:       #f1e9dc;
  --text-soft:  #b8afa3;
  --text-faint: #7d756c;

  --red:        #ff4a2b;   /* Crewland red */
  --red-hi:     #ff6a4f;

  /* type matches the logo: round, bold, friendly */
  --font-logo:  "Fredoka", "Nunito", system-ui, sans-serif;
  --font-head:  "Fredoka", "Nunito", system-ui, sans-serif;     /* headings */
  --font-display: var(--font-head);
  --font-serif: "Shrikhand", "Fredoka", system-ui, sans-serif;  /* the colored accent words */
  --font-body:  "Nunito", system-ui, -apple-system, sans-serif;
  --font-mono:  "Fredoka", "Nunito", system-ui, sans-serif;     /* small labels */
  --font-mark:  "Permanent Marker", "Comic Sans MS", cursive;

  --radius:     6px;
  --container:  1180px;
  --ease:       cubic-bezier(.2, .7, .2, 1); font-weight: 700; }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* film grain, so it feels printed rather than digital */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 100; pointer-events: none; opacity: .09;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
a { color: inherit; text-decoration: none; }
h1, h2, h3 {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: -.01em;
}
p { margin: 0; }
em {
  font-family: var(--font-serif);
  font-style: normal; font-weight: 400;
  text-transform: none;
  letter-spacing: -.01em;
  color: var(--red);
}
::selection { background: var(--red); color: var(--bg); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* catalog-style labels, like a record sleeve */
.label {
  font-family: var(--font-mono);
  font-size: 13px; letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 18px; font-weight: 600; }
/* marker notes: used sparingly */
.marker {
  font-family: var(--font-mark);
  font-size: 19px;
  color: var(--cream);
  transform: rotate(-3deg);
  display: inline-block;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 17px 30px;
  border: 2px solid var(--cream); border-radius: var(--radius);
  background: var(--red); color: var(--bg);
  font: 700 15px/1 var(--font-body);
  text-transform: uppercase; letter-spacing: .08em;
  cursor: pointer;
  box-shadow: 5px 5px 0 var(--cream);
  transition: transform .12s var(--ease), box-shadow .12s var(--ease);
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--cream); }
.btn:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--cream); }
.btn:focus-visible { outline: 3px solid var(--cream); outline-offset: 5px; }
.btn:disabled { opacity: .7; cursor: default; transform: none; }
.btn--small { padding: 10px 16px; font-size: 12px; box-shadow: 3px 3px 0 var(--cream); }
.btn--small:hover { box-shadow: 4px 4px 0 var(--cream); }
.btn--full { width: 100%; }

/* ---------- nav ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
.nav.is-scrolled { background: var(--nav-bg, rgba(11, 10, 9, .9)); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom-color: var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.logo {
  /* the Crewland wordmark: coaster + sparkle in brand colors, lettering follows the theme's text color */
  display: inline-block; position: relative; flex: none;
  width: 150px; aspect-ratio: 1391 / 476;
  font-size: 0; color: transparent; overflow: hidden;
  transition: transform .4s var(--ease);
}
.logo::before, .logo::after { content: ""; position: absolute; inset: 0; }
.logo::before { background: url(logo-color.svg) center / contain no-repeat; }
.logo::after { background: var(--cream); -webkit-mask: url(logo-ink.svg) center / contain no-repeat; mask: url(logo-ink.svg) center / contain no-repeat; }
.logo__star { display: none; }
.logo:hover { transform: rotate(-2deg) scale(1.03); }
.nav__links { display: flex; gap: 30px; }
.nav__links a { font-family: var(--font-mono); font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-soft); transition: color .2s; font-weight: 600; }
.nav__links a:hover { color: var(--red); }

/* ---------- hero ---------- */
.hero { position: relative; padding: 150px 0 90px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; top: -260px; left: 50%;
  width: 1000px; height: 700px; transform: translateX(-20%);
  background: radial-gradient(ellipse at center, rgb(var(--red-rgb) / .16), transparent 65%);
  pointer-events: none;
}
.hero__grid { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.hero__title { font-size: clamp(60px, 8.6vw, 124px); line-height: .9; margin-bottom: 28px; }
.hero__title em { display: block; font-size: .84em; line-height: 1; margin-top: 6px; }
.hero__lede { max-width: 500px; font-size: 18px; color: var(--text-soft); margin-bottom: 38px; }
.hero__actions { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }

/* creator tiles: like photos taped to a studio wall */
.tiles { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 190px 190px 150px; gap: 16px; }
.tile {
  position: relative; overflow: hidden;
  border-radius: 4px;
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,.18), transparent 45%),
    linear-gradient(150deg, var(--g1), var(--g2));
  display: flex; align-items: flex-end;
  padding: 16px;
  transform: rotate(var(--r, 0deg));
  box-shadow: 0 20px 40px -20px rgba(0,0,0,.9);
  filter: contrast(1.05);
  transition: transform .3s var(--ease);
}
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.6), transparent 55%); }
.tile:hover { transform: rotate(0deg) scale(1.02); }
.tile--tall { grid-row: span 2; }
.tile--wide { grid-column: span 2; }
.tile__info { position: relative; z-index: 1; display: flex; flex-direction: column; line-height: 1.2; }
.tile__info b { font-family: var(--font-head); font-weight: 700; font-size: 24px; letter-spacing: -.01em; }
.tile__info small { font-family: var(--font-mono); font-size: 12px; color: rgba(241,233,220,.85); font-weight: 600; }
.tile__tag {
  position: absolute; top: 14px; left: 14px; z-index: 1;
  padding: 5px 9px;
  background: var(--cream); color: var(--bg);
  font-family: var(--font-mono); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  transform: rotate(-2deg);
}
.tile__tag--red { background: var(--red); }

/* ticker */
.ticker { overflow: hidden; padding: 16px 0; transform: rotate(-1.5deg); margin: 10px -30px 0; background: var(--red); border-top: 2px solid var(--bg); border-bottom: 2px solid var(--bg); }
.ticker__track { display: flex; gap: 34px; width: max-content; animation: scroll 40s linear infinite; }
.ticker__track span { font-family: var(--font-head); font-size: 30px; line-height: 1; color: var(--bg); white-space: nowrap; display: inline-flex; align-items: center; gap: 34px; font-weight: 700; }
.ticker__track span::after { content: "✦"; font-family: var(--font-body); font-size: 18px; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { padding: 130px 0; position: relative; }
.section--panel { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section__head { margin-bottom: 60px; max-width: 820px; }
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section__title { font-size: clamp(44px, 6vw, 84px); line-height: .95; }
.section__title em { font-size: .92em; }

/* the deal */
.deal { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 2px solid var(--cream); }
.deal__item { padding: 30px 30px 34px 0; border-right: 1px solid var(--line-2); }
.deal__item + .deal__item { padding-left: 30px; }
.deal__item:last-child { border-right: 0; }
.deal__num { display: block; font-family: var(--font-mono); font-size: 13px; font-weight: 700; color: var(--red); margin-bottom: 26px; }
.deal__item h3 { font-size: 36px; line-height: 1; margin-bottom: 14px; }
.deal__item p { color: var(--text-soft); }

/* project peek */
.peek { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.peek__copy > p:not(.label) { color: var(--text-soft); margin: 24px 0 26px; max-width: 470px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; font-weight: 500; }
.ticks li::before { content: "✦"; position: absolute; left: 0; top: 0; color: var(--red); }
.project { position: relative; background: var(--card); border: 1px solid var(--line-2); border-radius: var(--radius); max-width: 450px; width: 100%; justify-self: center; box-shadow: 12px 12px 0 var(--red); transform: rotate(1.5deg); }
.project__cover {
  position: relative; height: 200px;
  background:
    radial-gradient(circle at 25% 35%, rgba(241, 233, 220, .35), transparent 35%),
    linear-gradient(150deg, var(--red), var(--red-deep));
}
.project__type { position: absolute; left: 14px; top: 14px; padding: 5px 9px; background: var(--cream); color: var(--bg); font-family: var(--font-mono); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.project__play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 56px; height: 56px; border-radius: 50%; background: var(--cream); color: var(--bg); display: grid; place-items: center; font-size: 18px; padding-left: 4px; }
.project__body { padding: 22px 24px 24px; }
.project__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.project__head h3 { font-size: 32px; line-height: 1; }
.verified { font-family: var(--font-mono); font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--red); border: 1px solid var(--red); padding: 4px 8px; white-space: nowrap; }
.project__meta { font-family: var(--font-mono); font-size: 12px; color: var(--text-faint); margin: 6px 0 18px; font-weight: 600; }
.project__crew { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 10px; }
.project__crew li { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; line-height: 1.2; }
.project__crew small { display: block; font-weight: 400; font-size: 12px; color: var(--text-faint); }
.face { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--c); color: var(--fc, var(--cream)); font-family: var(--font-head); font-size: 15px; font-weight: 700; }
.project__scribble { position: absolute; right: 0; bottom: -46px; }

/* tags (crafts) */
.tags { list-style: none; margin: 0 auto 90px; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 12px; max-width: 860px; }
.tags li {
  padding: 12px 20px;
  border: 2px solid var(--cream);
  background: var(--bg); color: var(--cream);
  font-family: var(--font-head); font-size: 24px; line-height: 1;
  transform: rotate(var(--r, 0deg));
  transition: transform .2s var(--ease), background .2s, color .2s;
  cursor: default; font-weight: 700; }
.tags li.tag--red { background: var(--red); border-color: var(--red); color: var(--bg); }
.tags li.tag--cream { background: var(--cream); color: var(--bg); }
.tags li:hover { transform: rotate(0deg) scale(1.06); }
.vibe { text-align: center; font-family: var(--font-head); font-size: clamp(34px, 4.6vw, 60px); line-height: 1; font-weight: 700; }
.vibe em { font-size: .9em; }

/* waitlist */
.join { padding-top: 40px; }
.join__inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
  padding: 64px;
  background: var(--bg-2);
  border: 2px solid var(--cream);
  box-shadow: 12px 12px 0 var(--red);
}
.join__copy > p:not(.label) { color: var(--text-soft); margin-top: 24px; max-width: 430px; }
.form { position: relative; display: grid; gap: 16px; }
.field { display: grid; gap: 7px; }
.field label { font-family: var(--font-mono); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--text-soft); }
.optional { font-weight: 400; color: var(--text-faint); }
.field input, .field select {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg);
  border: 1.5px solid var(--line-2);
  border-radius: 4px;
  color: var(--text);
  font: 400 16px var(--font-body);
  transition: border-color .2s, box-shadow .2s;
  appearance: none; -webkit-appearance: none;
}
.field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--text-soft) 50%), linear-gradient(135deg, var(--text-soft) 50%, transparent 50%);
  background-position: calc(100% - 22px) 52%, calc(100% - 17px) 52%;
  background-size: 5px 5px; background-repeat: no-repeat;
}
.field select:invalid { color: var(--text-faint); }
.field select option { color: var(--text); background: var(--card); }
.field input::placeholder { color: var(--text-faint); }
.field input:focus, .field select:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgb(var(--red-rgb) / .25); }
.field.has-error input, .field.has-error select { border-color: var(--red); }
.form .btn { margin-top: 8px; }
.form__error { color: var(--red-hi); font-size: 14px; }
.form__fine { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; color: var(--text-faint); text-align: center; font-weight: 600; }
.form__success {
  position: absolute; inset: -8px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: 24px;
  background: var(--bg-2);
  animation: pop .4s var(--ease);
}
.form__success[hidden] { display: none; }
.success-mark { width: 66px; height: 66px; display: grid; place-items: center; background: var(--red); color: var(--bg); font-size: 30px; margin-bottom: 18px; transform: rotate(-6deg); }
.form__success h3 { font-size: 52px; line-height: 1; margin-bottom: 10px; }
.form__success p { color: var(--text-soft); max-width: 300px; }
@keyframes pop { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }

/* footer */
.footer { border-top: 1px solid var(--line); padding: 40px 0 48px; margin-top: 90px; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer__tag { font-family: var(--font-mark); font-size: 18px; color: var(--text-soft); transform: rotate(-2deg); }
.footer__copy { font-family: var(--font-mono); font-size: 12px; color: var(--text-faint); font-weight: 600; }

/* ---------- scroll reveal ---------- */
.js .reveal { opacity: 0; translate: 0 18px; transition: opacity .7s var(--ease), translate .7s var(--ease); }
.js .reveal.is-visible { opacity: 1; translate: 0 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; translate: none; transition: none; }
  .ticker__track { animation: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero__grid, .peek, .join__inner { grid-template-columns: 1fr; gap: 52px; }
  .tiles { max-width: 520px; }
  .deal { grid-template-columns: 1fr; }
  .deal__item, .deal__item + .deal__item { padding: 26px 0 30px; border-right: 0; border-bottom: 1px solid var(--line-2); }
  .join__inner { padding: 44px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .nav__links { display: none; }
  .logo { width: 124px; }
  .hero { padding: 112px 0 60px; }
  .hero__lede { font-size: 17px; }
  .tiles { grid-template-rows: 150px 150px 120px; gap: 12px; }
  .tile__info b { font-size: 20px; }
  .tile__info small { font-size: 11px; }
  .ticker__track span { font-size: 24px; }
  .section { padding: 90px 0; }
  .section__head { margin-bottom: 40px; }
  .deal__item h3 { font-size: 30px; }
  .tags li { font-size: 20px; padding: 10px 16px; }
  .project { box-shadow: 8px 8px 0 var(--red); }
  .project__crew { grid-template-columns: 1fr; }
  .join__inner { padding: 30px 20px; box-shadow: 8px 8px 0 var(--red); }
  .footer__inner { flex-direction: column; align-items: flex-start; }
}

/* account links on the landing page */
.join__alt { margin-top: 18px; font-size: 15px; color: var(--text-soft); }
.join__alt a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.footer__links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer__links a { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; color: var(--text-soft); font-weight: 600; }
.footer__links a:hover { color: var(--red); }

/* ---------- app-like behaviour on phones ---------- */
html, body { overflow-x: clip; }
html { -webkit-tap-highlight-color: transparent; text-size-adjust: 100%; }
body { overscroll-behavior-x: none; }
img, video, iframe { max-width: 100%; }
/* iPhone zooms into any text box smaller than 16px and the page then slides around: keep them 16px */
@media (max-width: 820px) {
  input, select, textarea { font-size: 16px !important; }
}
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* join card (replaces the old waitlist form) */
.join__card { display: grid; gap: 12px; justify-items: center; text-align: center; padding: 34px 28px; border-radius: 24px; background: var(--card); border: 1px solid var(--line-2); }
.join__card h3 { font-family: var(--font-display, 'Anton', sans-serif); font-size: 40px; line-height: 1; font-weight: 700; }
.join__card > p:not(.form__fine) { color: var(--text-soft); margin-bottom: 6px; }
.join__card .btn--full { width: 100%; }
.join__ref { display: inline-block; margin: 0 0 10px; padding: 6px 12px; border-radius: 999px; background: color-mix(in srgb, var(--red) 16%, transparent); color: var(--red); font-weight: 700; font-size: 13px; }
.join__ref[hidden] { display: none; }

/* v7 homepage: warmer hero, featured creators, first five minutes */
.hero__actions { flex-wrap: wrap; }
.hero__trust { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 18px 0 0; padding: 0; font: 700 12px var(--font-mono, monospace); text-transform: uppercase; letter-spacing: .05em; color: var(--text-faint, #8a8178); }
.featured__row { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.fcard { display: grid; border-radius: 22px; overflow: hidden; background: var(--card, #161311); border: 1px solid var(--line-2, #2a2522); color: inherit; text-decoration: none; transition: transform .25s, border-color .25s; }
a.fcard:hover { transform: translateY(-4px) rotate(-.4deg); border-color: var(--red); }
.fcard__photo { aspect-ratio: 4 / 5; background: linear-gradient(160deg, var(--red), #2a0905) center/cover; display: grid; place-items: center; font: 700 64px var(--font-display, 'Anton', sans-serif); color: #fff; }
.fcard__body { display: grid; gap: 4px; padding: 14px 16px 18px; }
.fcard__body b { font: 700 26px/1 var(--font-display, 'Anton', sans-serif); }
.fcard__body small { font: 700 11px var(--font-mono, monospace); text-transform: uppercase; letter-spacing: .05em; color: var(--red); }
.fcard__body span { font-size: 14px; line-height: 1.45; color: var(--text-soft, #cfc6b8); }
.fcard__body em { font-style: normal; font-size: 13px; color: var(--text-faint, #8a8178); }
.fcard__body i { font-style: normal; font-weight: 700; font-size: 13px; color: var(--red); margin-top: 4px; }
.first__steps { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; padding: 0; margin: 0; counter-reset: s; }
.first__steps li { padding: 24px; border-radius: 22px; background: var(--card, #161311); border: 1px solid var(--line-2, #2a2522); display: grid; gap: 8px; align-content: start; }
.first__steps b { font: 700 24px/1.05 var(--font-display, 'Anton', sans-serif); }
.first__steps p { color: var(--text-soft, #cfc6b8); font-size: 15px; line-height: 1.5; margin: 0; }
.first__ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--red); color: #fff; font: 700 22px var(--font-body, sans-serif); }
.first__cta { text-align: center; margin-top: 28px; }
