/* Nollie site. Palette follows the app's own ink colours (NollieInk). */

:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --bg2: #f5f5f7;
  --text: #1d1d1f;
  --text2: #6e6e73;
  --line: #d2d2d7;
  --hairline: #e8e8ed;
  --link: #0066cc;
  --focus: #0071e3;

  /* chat demo, same names and values as the app */
  --screen: #ffffff;
  --ink: #161618;
  --on-ink: #ffffff;
  --bubble: #f0f0f2;
  --card: #f6f6f8;
  --card-text: #3a3a3c;
  --code: #ecedf0;
  --code-text: #55555a;
  --note: #636368;
  --text2-hero: #56565b;

  /* glass */
  --sticker: #16171a;
  --glint: #f7f7f5;
  --tongue: #ff7391;

  --glass: rgba(255, 255, 255, 0.55);
  --glass-edge: rgba(0, 0, 0, 0.09);
  --glass-shine: rgba(255, 255, 255, 0.9);
  --glass-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);

  --aurora-a: rgba(122, 140, 255, 0.28);
  --aurora-b: rgba(255, 168, 128, 0.26);
  --aurora-c: rgba(120, 220, 200, 0.2);

  --phone-shadow: 0 40px 80px rgba(0, 0, 0, 0.18), 0 8px 24px rgba(0, 0, 0, 0.1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", system-ui, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --bg2: #1c1c1e;
    --text: #f5f5f7;
    --text2: #a1a1a6;
    --line: #3a3a3e;
    --hairline: #2c2c2f;
    --link: #2997ff;
    --focus: #64b5ff;

    --screen: #1c1c1e;
    --ink: #f5f5f7;
    --on-ink: #161618;
    --bubble: #2c2c2f;
    --card: #262629;
    --card-text: #d1d1d6;
    --code: #333337;
    --code-text: #c7c7cc;
    --note: #a1a1a6;
    --text2-hero: #a1a1a6;

    --glass: rgba(255, 255, 255, 0.1);
    --glass-edge: rgba(255, 255, 255, 0.16);
    --glass-shine: rgba(255, 255, 255, 0.18);
    --glass-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);

    --aurora-a: rgba(110, 120, 255, 0.3);
    --aurora-b: rgba(255, 140, 110, 0.18);
    --aurora-c: rgba(80, 200, 190, 0.16);

    --phone-shadow: 0 40px 90px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.04);
  }
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.5;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  width: 100%;
  max-width: 68rem;
  margin: 0 auto;
  --gutter: 1.5rem;
  padding: 0 var(--gutter);
}

.narrow {
  max-width: 40rem;
}

a {
  color: var(--link);
  text-underline-offset: 0.2em;
  overflow-wrap: anywhere;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

.pill:focus-visible {
  border-radius: 999px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--text);
  color: var(--bg);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  z-index: 20;
}

.skip:focus {
  top: 1rem;
}

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

h1, h2, h3, p {
  margin: 0;
}

h1, h2, h3 {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

/* ---------- capsules ---------- */

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  border-radius: 999px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

.pill-ink {
  background: var(--ink);
  color: var(--on-ink);
}

.pill-glass {
  color: var(--text);
  background: var(--glass);
  border: 1px solid var(--glass-edge);
  box-shadow: inset 0 1px 0 var(--glass-shine), var(--glass-shadow);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .pill-glass {
    background: var(--bg2);
  }
}

.pill-xl {
  padding: 1rem 1.9rem;
  font-size: clamp(1.1rem, 4.4vw, 1.35rem);
}

.pill-md {
  padding: 0.85rem 1.5rem;
  font-size: 1.0625rem;
}

a.pill-md:hover,
button.pill-md:hover {
  filter: brightness(0.97);
}

button.pill {
  font-family: inherit;
  letter-spacing: inherit;
  cursor: pointer;
}

.pills .pill,
.pill-md {
  white-space: normal;
  text-align: center;
  max-width: 100%;
}

.card-pills .pill {
  white-space: nowrap;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  text-align: center;
  /* Safari fills the strip under the iPhone's status bar with the page's top colour, so the glow
     fades in from the top instead of starting at a hard edge. */
  padding: calc(clamp(5rem, 14vw, 9.5rem) + env(safe-area-inset-top, 0px)) 0 clamp(4rem, 10vw, 7rem);
  overflow: hidden;
  isolation: isolate;
}

.aurora {
  position: absolute;
  inset: -10% -10% 0;
  z-index: -1;
  background:
    radial-gradient(38% 46% at 26% 34%, var(--aurora-a), transparent 70%),
    radial-gradient(34% 44% at 76% 30%, var(--aurora-b), transparent 70%),
    radial-gradient(40% 40% at 52% 78%, var(--aurora-c), transparent 70%);
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent);
  mask-image: linear-gradient(to bottom, #000 55%, transparent);
}

.wordmark {
  font-size: clamp(5rem, 24vw, 12rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.hero-line {
  max-width: 34rem;
  margin: 1.75rem auto 0;
  font-size: clamp(1.4rem, 5.4vw, 2.1rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
  margin-top: 2.5rem;
}

.hero-note {
  margin-top: 1.5rem;
  color: var(--text2);
  font-size: 1.0625rem;
}

/* ---------- sections ---------- */

.section {
  padding: clamp(4rem, 10vw, 7.5rem) 0;
}

.section.alt {
  background: var(--bg2);
}

.eyebrow {
  color: var(--text2);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 0.6rem;
}

h2 {
  font-size: clamp(2.1rem, 7vw, 3.6rem);
  font-weight: 700;
  line-height: 1.07;
  letter-spacing: -0.035em;
}

.lead {
  max-width: 30rem;
  margin-top: 1rem;
  color: var(--text2);
  font-size: clamp(1.1rem, 3.6vw, 1.35rem);
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.center {
  text-align: center;
}

.center .lead {
  margin-left: auto;
  margin-right: auto;
}

/* ---------- phone and chat demo ---------- */

.demo-fig {
  margin: clamp(2.5rem, 6vw, 4rem) 0 0;
  text-align: center;
}

.phone-box {
  container-type: inline-size;
  width: min(100%, 20.5rem);
  margin: 0 auto;
}

.phone {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 19.5;
  padding: 2.9cqw;
  border-radius: 16cqw;
  background: #0b0b0c;
  box-shadow:
    0 0 0 0.9cqw #3b3b3f,
    0 0 0 1.1cqw rgba(255, 255, 255, 0.12),
    var(--phone-shadow);
}

.phone::before,
.phone::after {
  content: "";
  position: absolute;
  width: 1cqw;
  background: #3b3b3f;
  border-radius: 1cqw;
}

.phone::before {
  left: -1.9cqw;
  top: 24cqw;
  height: 9cqw;
}

.phone::after {
  right: -1.9cqw;
  top: 34cqw;
  height: 15cqw;
}

.island {
  position: absolute;
  z-index: 3;
  top: 5.2cqw;
  left: 50%;
  width: 27cqw;
  height: 7.8cqw;
  transform: translateX(-50%);
  background: #000;
  border-radius: 999px;
}

.screen {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: 13.2cqw;
  background: var(--screen);
  color: var(--text);
  font-size: 4.5cqw;
  line-height: 1.33;
  letter-spacing: -0.01em;
  text-align: left;
}

.status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.95em 2em 0;
  font-size: 0.85em;
  font-weight: 600;
  height: 2.8em;
}

.batt {
  width: 1.9em;
  height: 0.85em;
  border-radius: 0.3em;
  background: var(--text);
  opacity: 0.85;
}

.head {
  display: flex;
  justify-content: center;
  padding: 0.4em 0 0.5em;
}

.head-state {
  font-weight: 500;
  font-size: 0.85em;
  color: var(--note);
}

.head-state:empty {
  display: none;
}

.thread {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 0.85em 0.6em;
  overflow: hidden;
}

.item {
  padding-top: 0.5em;
  max-height: 30em;
}

.anim .item {
  transition: max-height 0.55s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.4s ease 0.08s,
    transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), padding-top 0.4s ease;
}

.anim .item:not(.in) {
  max-height: 0;
  padding-top: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(0.6em);
}

.anim.reset .item {
  transition: none;
}

.anim.fade .item {
  transition: opacity 0.6s ease;
  opacity: 0;
}

.note {
  text-align: center;
  font-size: 0.8em;
  color: var(--note);
  padding-bottom: 0.25em;
}

.row {
  display: flex;
}

.row.me {
  justify-content: flex-end;
}

.row.step {
  justify-content: flex-start;
}

.bubble {
  max-width: 84%;
  padding: 0.62em 0.95em;
  border-radius: 1.2em;
}

.bot .bubble {
  background: var(--bubble);
  border-bottom-left-radius: 0.4em;
}

.me .bubble {
  background: var(--ink);
  color: var(--on-ink);
  border-bottom-right-radius: 0.4em;
}

.dots {
  display: inline-flex;
  gap: 0.28em;
  align-items: center;
  height: 1.35em;
  padding: 0 0.15em;
}

.dots i {
  width: 0.45em;
  height: 0.45em;
  border-radius: 50%;
  background: var(--note);
  animation: dot 1s infinite ease-in-out;
}

.dots i:nth-child(2) {
  animation-delay: 0.15s;
}

.dots i:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes dot {
  0%, 60%, 100% {
    opacity: 0.35;
    transform: translateY(0);
  }
  30% {
    opacity: 1;
    transform: translateY(-0.2em);
  }
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.38em 0.9em 0.38em 0.75em;
  border-radius: 999px;
  background: var(--bubble);
  color: var(--card-text);
  font-size: 0.82em;
  font-weight: 500;
}

.chip svg {
  width: 1.15em;
  height: 1.15em;
  flex: none;
}

.card {
  margin-top: 0.15em;
  padding: 0.95em 0.95em 0.9em;
  border-radius: 1.5em;
  background: var(--card);
  color: var(--card-text);
}

.card-title {
  font-size: 0.85em;
  font-weight: 600;
  margin-bottom: 0.55em;
}

.cmd {
  margin: 0 0 0.8em;
  padding: 0.7em 0.85em;
  border-radius: 0.85em;
  background: var(--code);
  color: var(--code-text);
  font-family: var(--mono);
  font-size: 0.78em;
  line-height: 1.4;
  white-space: pre-wrap;
  word-break: break-all;
}

.card-pills {
  display: flex;
  gap: 0.55em;
}

.card-pills .pill {
  flex: 1;
  padding: 0.62em 0.5em;
  font-size: 0.88em;
  transition: transform 0.18s ease, opacity 0.4s ease, background 0.3s ease;
}

.card-pills .pill-glass {
  background: rgba(255, 255, 255, 0.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

@media (prefers-color-scheme: dark) {
  .card-pills .pill-glass {
    background: rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  }
}

.card-pills .pressed {
  transform: scale(0.94);
}

.card.allowed [data-allow]::before {
  content: "";
  width: 0.28em;
  height: 0.55em;
  margin-top: -0.15em;
  border: solid currentColor;
  border-width: 0 0.13em 0.13em 0;
  transform: rotate(45deg);
}

.card.allowed [data-deny] {
  opacity: 0.4;
}

.composer {
  display: flex;
  align-items: center;
  gap: 0.5em;
  margin: 0 0.8em 1.1em;
  padding: 0.4em 0.4em 0.4em 1.1em;
  border-radius: 999px;
  background: var(--bubble);
  min-height: 3em;
}

.field {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  font-size: 0.9em;
  color: var(--text);
}

.field:empty::before {
  content: "Message";
  color: var(--note);
}

.field.typing::after {
  content: "";
  display: inline-block;
  width: 0.1em;
  height: 1em;
  margin-left: 0.1em;
  vertical-align: -0.15em;
  background: var(--text);
  animation: caret 0.9s steps(1) infinite;
}

@keyframes caret {
  50% {
    opacity: 0;
  }
}

.send {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.2em;
  height: 2.2em;
  border-radius: 50%;
  background: var(--ink);
  color: var(--on-ink);
}

.send svg {
  width: 1.1em;
  height: 1.1em;
}

.demo-ctl {
  margin-top: 1.25rem;
}

.demo-fig figcaption {
  margin-top: 1.5rem;
  color: var(--text2);
  font-size: 0.9375rem;
}

/* ---------- bento ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
  list-style: none;
  margin: clamp(2.5rem, 6vw, 4rem) 0 0;
  padding: 0;
}

.cell {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 3rem;
  min-height: 15rem;
  padding: 1.75rem;
  border-radius: 1.75rem;
  background: var(--bg2);
}

.alt .cell {
  background: var(--bg);
}

.cell.wide {
  grid-column: span 3;
  min-height: 19rem;
}

.cell.full {
  grid-column: span 6;
  min-height: 13rem;
}

.cell svg {
  width: 2.75rem;
  height: 2.75rem;
  color: var(--text);
}

.cell h3 {
  font-size: clamp(1.35rem, 3.4vw, 1.65rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.cell p {
  margin-top: 0.55rem;
  color: var(--text2);
  font-size: 1.0625rem;
  line-height: 1.4;
  letter-spacing: -0.015em;
}

.cell.full h3 {
  font-size: clamp(1.6rem, 5vw, 2.4rem);
}

.cell.full p {
  max-width: 34rem;
}

.fine {
  margin-top: 1.5rem;
  text-align: center;
  color: var(--text2);
  font-size: 0.9375rem;
}

/* ---------- finish band ---------- */

.finish {
  text-align: center;
}

.finish h2 {
  font-size: clamp(1.8rem, 5.5vw, 2.6rem);
}

.finish .lead {
  margin: 0.75rem auto 0;
}

.finish .pills {
  margin-top: 1.75rem;
}

.req {
  margin-top: 1.5rem;
  color: var(--text2);
  font-size: 0.9375rem;
}

/* ---------- sub pages ---------- */

.site-header {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--hairline);
}

.site-header a {
  color: var(--text);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.page-title {
  margin-top: clamp(3rem, 8vw, 5rem);
  font-size: clamp(2.4rem, 9vw, 3.75rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.page main section {
  margin-top: 2.5rem;
}

.page h2 {
  font-size: 1.5rem;
  letter-spacing: -0.025em;
  margin-bottom: 0.75rem;
}

.page p + p {
  margin-top: 1rem;
}

.page ul {
  margin: 0;
  padding-left: 1.25rem;
}

.page li {
  margin-bottom: 0.4rem;
}

.page .muted {
  margin-top: 1rem;
  color: var(--text2);
}

.page main {
  padding-bottom: 2rem;
}

.page .cta {
  margin-top: 1.5rem;
}

.placeholder {
  padding: 1.25rem 1.5rem;
  border: 1px dashed var(--line);
  border-radius: 1.5rem;
  background: var(--bg2);
}

.placeholder p + p {
  margin-top: 0.5rem;
}

/* ---------- footer ---------- */

.site-footer {
  margin-top: clamp(3rem, 8vw, 5rem);
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--hairline);
  color: var(--text2);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.site-footer p + p,
.site-footer nav,
.site-footer nav + p {
  margin-top: 0.4rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.5rem;
}

.site-footer nav a {
  display: inline-block;
  padding: 0.55rem 0;
}

.site-footer a {
  color: var(--text2);
}

.site-footer a:hover {
  color: var(--text);
}

.home .site-footer {
  margin-top: 0;
  border-top: 0;
  background: var(--bg);
}

/* ---------- 404 ---------- */

.lost {
  text-align: center;
  padding: clamp(5rem, 16vw, 9rem) 0 2rem;
}

.lost .wordmark {
  font-size: clamp(3.5rem, 16vw, 7rem);
}

.lost .hero-line {
  margin-top: 1.25rem;
}

.lost .pills {
  margin-top: 2rem;
}

/* ---------- layout steps ---------- */

@media (max-width: 62rem) {
  .cell,
  .cell.wide {
    grid-column: span 3;
  }

  .cell.full,
  .cell:nth-child(5) {
    grid-column: span 6;
  }
}

@media (max-width: 40rem) {
  .grid {
    grid-template-columns: 1fr;
  }

  .cell,
  .cell.wide,
  .cell.full,
  .cell:nth-child(5) {
    grid-column: auto;
    min-height: 12rem;
    gap: 2.25rem;
  }

  .wrap {
    --gutter: 1.25rem;
    padding: 0 var(--gutter);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}


/* =====================  characters  ===================== */

.char {
  position: relative;
  isolation: isolate;
  display: block;
  user-select: none;
  -webkit-user-select: none;
}

.char .cw {
  position: relative;
  width: 100%;
  height: 100%;
  transform-origin: 50% 100%;
  animation: breathe 4.4s ease-in-out var(--bd, 0s) infinite;
}

.char .cb,
.char .ca,
.char .cf {
  display: block;
  width: 100%;
  height: auto;
  -webkit-user-drag: none;
}

.char .cf,
.char .ca {
  position: absolute;
  left: 0;
  top: 0;
  pointer-events: none;
}

.char.hop .cw {
  animation: hop 0.75s cubic-bezier(0.3, 0.7, 0.3, 1) 1;
}

@keyframes breathe {
  0%, 100% { transform: scale(1, 1); }
  50% { transform: scale(1.012, 1.022); }
}

@keyframes hop {
  0% { transform: scale(1.06, 0.92); }
  30% { transform: translateY(-9%) scale(0.96, 1.07); }
  60% { transform: translateY(0) scale(1.05, 0.94); }
  100% { transform: scale(1, 1); }
}

@keyframes bounce {
  0% { transform: scale(1, 1); }
  25% { transform: scale(1.07, 0.9); }
  55% { transform: translateY(-10%) scale(0.95, 1.08); }
  80% { transform: translateY(0) scale(1.04, 0.95); }
  100% { transform: scale(1, 1); }
}


/* ground shadow */
.stage-item .char::after,
.crew-art .char::after,
.peek .char::after,
.closing-char .char::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: -2.5%;
  height: 7%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.22), transparent);
}

.peek .char::after {
  display: none;
}

/* hero stage */

.stage {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(0.5rem, 3vw, 2.5rem);
  margin-top: clamp(2.5rem, 6vw, 4rem);
  padding: 0 0 0.5rem;
}

.stage-item {
  transform: translate3d(calc(var(--mx, 0) * var(--k, 8) * 1px), calc(var(--sy, 0) * var(--sk, -0.04) * 1px), 0);
  will-change: transform;
}

.stage-item .char {
  width: var(--sw);
}

.s-main {
  --sw: clamp(8rem, 26vw, 14rem);
  --k: 10;
  --sk: -0.07;
  position: relative;
  z-index: 2;
}

.s-left {
  --sw: clamp(4.5rem, 17vw, 10rem);
  --k: -6;
  --sk: -0.03;
  margin-right: clamp(-1.5rem, -1vw, 0rem);
}

.s-right {
  --sw: clamp(4rem, 15vw, 8.5rem);
  --k: 5;
  --sk: -0.05;
}

.aurora {
  transform: translate3d(calc(var(--mx, 0) * -14px), calc(var(--sy, 0) * 0.18px), 0);
  will-change: transform;
}

/* crew lineup */

.crew {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(0.75rem, 2vw, 1.5rem);
  align-items: end;
  list-style: none;
  margin: clamp(2.5rem, 6vw, 4rem) 0 0;
  padding: 0;
}

.crew-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  cursor: default;
}

.crew-art {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  height: 11.5rem;
  padding-bottom: 0.4rem;
}

.crew-art .char {
  width: min(var(--w), 100%);
}

.char[data-char="nollie"] { --w: 8.6rem; }
.char[data-char="skate"] { --w: 8.6rem; }
.char[data-char="surf"] { --w: 7.2rem; }
.char[data-char="spike"] { --w: 9rem; }
.char[data-char="night"] { --w: 7.4rem; }
.char[data-char="mix"] { --w: 7rem; }

.crew-name {
  margin-top: 0.9rem;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.crew-role {
  color: var(--text2);
  font-size: 0.9375rem;
  line-height: 1.35;
}

.crew-item:hover .char .cw {
  animation: bounce 0.6s cubic-bezier(0.3, 0.7, 0.3, 1) 1;
}

/* three steps */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  list-style: none;
  margin: clamp(2rem, 5vw, 3.5rem) 0 0;
  padding: 0;
}

.step .num {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  background: var(--ink);
  color: var(--on-ink);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1.1rem;
}

.step h3 {
  font-size: clamp(1.3rem, 3vw, 1.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.step p {
  margin-top: 0.55rem;
  color: var(--text2);
  line-height: 1.4;
}

/* bento: peeking characters */

.cell {
  position: relative;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s ease;
}

.cell:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.1);
}

@media (prefers-color-scheme: dark) {
  .cell:hover {
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
  }
}

.cell-text {
  position: relative;
  z-index: 1;
}

.cell svg {
  position: relative;
  z-index: 1;
}

.peek {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  transition: transform 0.55s cubic-bezier(0.2, 1.25, 0.35, 1);
}

.peek .char {
  width: 100%;
}

/* rising from the bottom edge, right side */
.rise-a { right: 9%; bottom: 0; width: 6.6rem; transform: translateY(115%); }
.rise-b { right: 7%; bottom: 0; width: 8.6rem; transform: translateY(115%) rotate(8deg); }
.rise-c { right: 6%; bottom: 0; width: 7.4rem; transform: translateY(115%) rotate(-5deg); }
.cell:hover .rise-a, .cell:focus-within .rise-a { transform: translateY(14%); }
.cell:hover .rise-b, .cell:focus-within .rise-b { transform: translateY(16%) rotate(8deg); }
.cell:hover .rise-c, .cell:focus-within .rise-c { transform: translateY(14%) rotate(-5deg); }

/* leaning in from the right edge, upper corner */
.side { right: 0; top: 18%; width: 5.6rem; transform: translateX(140%) rotate(-82deg); transform-origin: 50% 50%; }
.cell:hover .side, .cell:focus-within .side { transform: translateX(8%) rotate(-82deg); }

.lean { right: 6%; top: 0; width: 5.2rem; transform: translateY(-120%) rotate(168deg); }
.cell:hover .lean, .cell:focus-within .lean { transform: translateY(-14%) rotate(168deg); }

@media (hover: none), (prefers-reduced-motion: reduce) {
  .rise-a { transform: translateY(14%); }
  .rise-b { transform: translateY(16%) rotate(8deg); }
  .rise-c { transform: translateY(14%) rotate(-5deg); }
  .side { transform: translateX(8%) rotate(-82deg); }
  .lean { transform: translateY(-14%) rotate(168deg); }
  .cell:hover { transform: none; box-shadow: none; }
}

.cell.full .cell-text p,
.cell.wide .cell-text p {
  max-width: 28rem;
}

.cell .cell-text p {
  max-width: 100%;
}

/* closing */

.closing-char {
  width: 8.5rem;
  margin: 0 auto 1.25rem;
}

.closing-char .char {
  width: 100%;
}

/* =====================  delight  ===================== */

.js .rv {
  opacity: 0;
  translate: 0 22px;
  transition: opacity 0.9s ease var(--d, 0s), translate 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) var(--d, 0s);
}

/* cards keep their hover lift and shadow easing next to the reveal */
.js .cell.rv {
  transition: opacity 0.9s ease var(--d, 0s), translate 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) var(--d, 0s),
    transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s ease;
}

.js .rv.in {
  opacity: 1;
  translate: 0 0;
}

.mag {
  transition: translate 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), outline-color 0.2s ease, outline-offset 0.2s ease;
  translate: var(--tx, 0px) var(--ty, 0px);
}

a, button {
  outline: 3px solid transparent;
  outline-offset: 7px;
  transition: outline-color 0.2s ease, outline-offset 0.2s ease;
}

a:focus-visible, button:focus-visible {
  outline-color: var(--focus);
  outline-offset: 3px;
}

@media (max-width: 62rem) {
  .crew {
    grid-template-columns: repeat(3, 1fr);
    row-gap: 2.25rem;
  }
}

@media (max-width: 52rem) {
  .steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 40rem) {
  .crew-art {
    height: 9.5rem;
  }

  .char[data-char="nollie"] { --w: 6.2rem; }
  .char[data-char="skate"] { --w: 6.4rem; }
  .char[data-char="surf"] { --w: 5.6rem; }
  .char[data-char="spike"] { --w: 6.6rem; }
  .char[data-char="night"] { --w: 5.6rem; }
  .char[data-char="mix"] { --w: 5.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  .js .rv {
    opacity: 1;
    translate: 0 0;
  }

  .stage-item,
  .aurora,
  .mag {
    transform: none !important;
    translate: none !important;
  }
}

.lost-char {
  width: 6.5rem;
  margin: 0 auto 1rem;
}

.lost-char .char {
  width: 100%;
}

.wordmark .lockup {
  display: block;
  width: auto;
  height: clamp(4.4rem, 17vw, 8.5rem);
  margin: 0 auto;
  color: var(--text);
}

.hero-sub {
  max-width: 30rem;
  margin: 0.9rem auto 0;
  color: var(--text2-hero);
  font-size: clamp(1.05rem, 3.6vw, 1.25rem);
  line-height: 1.4;
  letter-spacing: -0.02em;
}


.hero .eyebrow {
  color: var(--text2-hero);
  margin-bottom: 1.1rem;
}

.cell.wide .cell-text,
.cell.full .cell-text {
  padding-right: clamp(0rem, 15vw, 9rem);
}

.closing {
  text-align: center;
}

.closing .lead {
  margin-left: auto;
  margin-right: auto;
}

.closing h2 {
  font-size: clamp(2rem, 6vw, 3.2rem);
}

@media (max-width: 40rem) {
  .cell.wide .cell-text,
  .cell.full .cell-text {
    padding-right: 0;
  }

  .cell .peek {
    top: 0.9rem;
    right: 0;
    bottom: auto;
    left: auto;
    width: 4.8rem;
    transform: translateX(14%) rotate(-82deg);
    transform-origin: 50% 50%;
  }

  .cell:hover .peek,
  .cell:focus-within .peek {
    transform: translateX(14%) rotate(-82deg);
  }
}

/* the chat header: Nollie on their own, centred, mood following the conversation */
.head {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.1em 0 0.35em;
}

.hchar {
  width: 3.7em;
}

.head-name {
  margin-top: 0.15em;
  font-size: 0.82em;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
}

.head-state {
  margin-left: 0.2em;
  font-weight: 500;
  color: var(--note);
}

.hchar::after {
  content: "";
  position: absolute;
  left: 14%;
  right: 14%;
  bottom: -3%;
  height: 7%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.2), transparent);
}

.site-footer a {
  display: inline-block;
  padding: 0.6rem 0;
}

@media (forced-colors: active) {
  a, button {
    outline: none;
  }

  a:focus-visible, button:focus-visible {
    outline: 3px solid Highlight;
    outline-offset: 3px;
  }
}

/* with no script the characters are not drawn, so drop their empty boxes */
html:not(.js) .stage,
html:not(.js) .crew-art,
html:not(.js) .peek,
html:not(.js) .closing-char,
html:not(.js) .hchar {
  display: none;
}

/* =====================  v3: hero and new sections  ===================== */

.brand {
  margin: 0 0 1.4rem;
}

.brand .lockup {
  display: block;
  width: auto;
  height: clamp(2.6rem, 9vw, 3.8rem);
  margin: 0 auto;
  color: var(--text);
}

.hero-title {
  font-size: clamp(3.4rem, 13.5vw, 7.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.hero-line {
  max-width: 38rem;
  text-wrap: balance;
  margin: 1.5rem auto 0;
  font-size: clamp(1.15rem, 4.2vw, 1.55rem);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--text);
}

.trio,
.boxes,
.scenes {
  display: grid;
  gap: 1rem;
  list-style: none;
  margin: clamp(2.5rem, 6vw, 4rem) 0 0;
  padding: 0;
}

.trio,
.boxes {
  grid-template-columns: repeat(3, 1fr);
}

.card {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 1.75rem;
  border-radius: 1.75rem;
  background: var(--bg2);
}

.card svg {
  width: 2.4rem;
  height: 2.4rem;
  margin-bottom: 1.2rem;
  color: var(--text);
}

.card h3,
.col h3,
.scene h3,
.mixbox h3 {
  font-size: clamp(1.3rem, 3vw, 1.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.card p,
.col p,
.scene p {
  color: var(--text2);
  line-height: 1.42;
}

.mixbox {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  margin-top: 1rem;
  padding: 1.75rem 2rem;
  border-radius: 1.75rem;
  background: var(--ink);
  color: var(--on-ink);
}

.mixbox p {
  margin-top: 0.5rem;
  max-width: 34rem;
  line-height: 1.42;
  opacity: 0.82;
}

.mix-art {
  flex: none;
  width: 6.5rem;
}

.mix-art .char {
  width: 100%;
}

.sbox {
  position: relative;
  padding: 1.5rem 1.5rem 1.6rem;
  border: 1px solid var(--hairline);
  border-radius: 1.75rem;
  background: var(--bg);
  text-align: center;
}

.sbox > svg {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  width: 1.5rem;
  height: 1.5rem;
  color: var(--text2);
}

.sbox-art {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 9rem;
  padding-bottom: 0.3rem;
}

.sbox-art .char {
  width: calc(var(--w) * 0.9);
}

.sbox-name {
  margin-top: 1rem;
  font-size: 1.0625rem;
  font-weight: 600;
}

.sbox-note {
  color: var(--text2);
  font-size: 0.9375rem;
}

.cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 5vw, 4rem);
  margin-top: clamp(2.5rem, 6vw, 3.5rem);
}

.col p {
  margin-top: 0.7rem;
  font-size: 1.0625rem;
}

.scenes {
  grid-template-columns: 1fr 1fr;
}

.scene {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  padding: 1.5rem 1.75rem;
  border-radius: 1.75rem;
  background: var(--bg2);
}

.scene:last-child {
  grid-column: 1 / -1;
}

.scene-art {
  display: flex;
  flex: none;
  align-items: flex-end;
  justify-content: center;
  width: 6rem;
}

.scene-art .char {
  width: calc(var(--w) * 0.62);
}

.scene p {
  margin-top: 0.4rem;
}

.sbox-art .char::after,
.scene-art .char::after,
.mix-art .char::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: -2.5%;
  height: 7%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.2), transparent);
}

.mix-art .char::after {
  display: none;
}

@media (max-width: 52rem) {
  .trio,
  .boxes,
  .scenes,
  .cols {
    grid-template-columns: 1fr;
  }

  .mixbox {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 40rem) {
  .scene {
    padding: 1.25rem;
    gap: 1rem;
  }

  .scene-art {
    width: 4.6rem;
  }
}

html:not(.js) .sbox-art,
html:not(.js) .scene-art,
html:not(.js) .mix-art {
  display: none;
}

@media (forced-colors: active) {
  .card, .scene, .mixbox, .cell, .sbox { border: 1px solid CanvasText; }
}
@media (max-width: 40rem) {
  .cell .peek { max-width: 4.6rem; }
  .cell.wide .cell-text, .cell.full .cell-text { padding-right: 5rem; }
}

/* the pairing card's QR code (a real one, it opens nollie.app) */

.qr {
  position: relative;
  z-index: 1;
  width: 5.25rem;
  height: 5.25rem;
  border-radius: 0.9rem;
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--hairline);
}

.cell .qr svg {
  display: block;
  width: 100%;
  height: 100%;
}

.qr-scan {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 18%;
  background: linear-gradient(to bottom, transparent, rgba(0, 113, 227, 0.32), transparent);
  opacity: 0;
  pointer-events: none;
}

.cell:hover .qr-scan,
.cell:focus-within .qr-scan {
  opacity: 1;
  animation: qr-scan 1.6s ease-in-out infinite;
}

@keyframes qr-scan {
  0% { transform: translateY(-100%); }
  50% { transform: translateY(560%); }
  100% { transform: translateY(-100%); }
}

@media (prefers-reduced-motion: reduce) {
  .cell:hover .qr-scan,
  .cell:focus-within .qr-scan {
    animation: none;
    opacity: 0;
  }
}

.req-specs {
  margin-top: 0.4rem;
  max-width: 30rem;
  margin-left: auto;
  margin-right: auto;
  font-size: 0.875rem;
  line-height: 1.45;
}

/* Landscape iPhones: keep text clear of the notch and the rounded corners. */
@supports (padding: max(0px)) {
  .wrap {
    padding-left: max(var(--gutter), env(safe-area-inset-left));
    padding-right: max(var(--gutter), env(safe-area-inset-right));
  }
}

.hero .aurora {
  -webkit-mask-image: linear-gradient(to bottom, transparent 9%, #000 30%);
  mask-image: linear-gradient(to bottom, transparent 9%, #000 30%);
}
