/*
 * Sipmate home page (index.html only) — the "night edition" (D-083).
 * A fashion-editorial page: the type is the picture. Four colours and no
 * others (night, paper, Spritz, lilac), square corners, hairlines, three
 * faces (Archivo condensed caps, Instrument Serif italic, Geist Mono labels).
 * The palette is fixed: the page looks the same in light and dark mode, the
 * way a printed poster does. Motion is added by home.js through classes; with
 * no JS or with reduced motion every word and picture is simply there.
 */

@font-face {
  font-family: 'Archivo';
  src: url('fonts/Archivo-Var.woff2') format('woff2');
  font-weight: 400 900;
  font-stretch: 62% 100%;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Instrument Serif';
  src: url('fonts/InstrumentSerif-Italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Geist Mono';
  src: url('fonts/GeistMono-Var.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

.landing {
  --night: #0b0a0f;
  --night-2: #16141c;
  --paper: #f4eee4;
  --spritz: #ff5a1f;
  --spritz-text: #ba3504; /* orange that passes AA on paper */
  --lilac: #7355f0;
  --ink: #16111a;
  --cream: #fff7f0;
  --hair-dark: rgba(255, 247, 240, 0.2);
  --hair-light: rgba(22, 17, 26, 0.85);

  --f-display: 'Archivo', 'Arial Narrow', var(--font-system);
  --f-serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --f-mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --gut: clamp(16px, 3.2vw, 48px);
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);

  color-scheme: dark;
  background: var(--night);
  color: var(--cream);
  font-family: var(--f-display);
  font-stretch: 100%;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.5;
}

/* Film grain over everything: an SVG noise tile, no request. */
.landing::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.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='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.landing ::selection {
  background: var(--spritz);
  color: var(--ink);
}

.landing a {
  color: inherit;
}

.landing :focus-visible {
  outline: 2px solid var(--spritz);
  outline-offset: 3px;
}

.mono {
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
  line-height: 1.4;
}

/* Display caps, the page's voice. */
.hero-title,
.acts-title,
.act-num,
.act-title,
.zero-row,
.rules-title,
.rule-title,
.rules-close-line,
.get-title,
.colophon-word,
.btn,
.mast-word {
  font-family: var(--f-display);
  font-stretch: 62%;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.landing em {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  text-transform: none;
  letter-spacing: -0.01em;
}

/* ---------------------------------------------------------------- ticker */

.ticker {
  position: relative;
  z-index: 60;
  display: flex;
  align-items: center;
  height: 38px;
  background: var(--spritz);
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
}

/* A fixed label, so the line reads as examples of what people say. */
.ticker-label {
  flex: none;
  align-self: stretch;
  display: flex;
  align-items: center;
  padding: 0 14px 0 var(--gut);
  background: var(--ink);
  color: var(--cream);
  font-family: var(--f-display);
  font-stretch: 75%;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ticker-run {
  display: flex;
  overflow: hidden;
  min-width: 0;
}

/* People's own words: the serif italic, sentence case. */
.ticker-track {
  display: flex;
  flex: none;
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 19px;
  line-height: 1;
  animation: slide 60s linear infinite;
}

.ticker-track span {
  padding: 0 22px;
}

@keyframes slide {
  to {
    transform: translateX(-100%);
  }
}

/* ------------------------------------------------------------------ mast */

.mast {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 12px var(--gut);
  transition:
    background-color 0.3s ease,
    backdrop-filter 0.3s ease;
}

.mast.is-stuck {
  background: rgba(11, 10, 15, 0.82);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
}

/* Scroll progress: a Spritz hairline along the mast's bottom edge. */
.mast::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--spritz);
  transform: scaleX(var(--progress, 0));
  transform-origin: 0 50%;
}

.mast-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  justify-self: start;
}

.mast .brand-mark {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  background: var(--spritz);
  border-radius: 0;
}

.mast .brand-mark svg {
  width: 30px;
  height: 30px;
  display: block;
}

.mast-word {
  font-size: 24px;
  line-height: 1;
  font-stretch: 75%;
  letter-spacing: 0;
}

.mast-nav {
  display: flex;
  gap: 28px;
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mast-nav a,
.mast-cta {
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size 0.35s var(--ease-out);
  padding-bottom: 2px;
}

.mast-nav a:hover,
.mast-cta:hover {
  background-size: 100% 1px;
}

.mast-cta {
  justify-self: end;
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--spritz) !important;
}

@media (max-width: 760px) {
  .mast {
    grid-template-columns: 1fr auto;
  }
  .mast-nav {
    display: none;
  }
}

/* ---------------------------------------------------------------- buttons */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4em;
  height: 56px;
  padding: 0 28px;
  font-size: 20px;
  font-stretch: 75%;
  letter-spacing: 0.02em;
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
  transition:
    color 0.35s var(--ease-out),
    translate 0.25s var(--ease-out);
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  transform: scaleY(0);
  transform-origin: 50% 100%;
  transition: transform 0.45s var(--ease-out);
}

.btn:hover::before {
  transform: scaleY(1);
}

.btn--spritz {
  background: var(--spritz);
  color: var(--ink) !important;
}

.btn--spritz::before {
  background: var(--cream);
}

.btn--ghost {
  box-shadow: inset 0 0 0 1px var(--cream);
  color: var(--cream);
}

.btn--ghost::before {
  background: var(--cream);
}

.btn--ghost:hover {
  color: var(--ink) !important;
}

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

.hero {
  position: relative;
  min-height: calc(100svh - 92px); /* ticker + mast */
  padding: 0 var(--gut) 28px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
}

/* The looping bar behind the hero, under a night tint so the type reads.
   The wide clip plays on landscape screens, the tall one on portrait ones;
   the hidden one is display: none, so it never loads or plays. */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-bg video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(11, 10, 15, 0.78) 0%,
      rgba(11, 10, 15, 0.4) 60%,
      rgba(11, 10, 15, 0.15) 100%
    ),
    linear-gradient(
      180deg,
      rgba(11, 10, 15, 0.35) 0%,
      rgba(11, 10, 15, 0) 30%,
      rgba(11, 10, 15, 0) 70%,
      rgba(11, 10, 15, 0.9) 100%
    );
}

.hero-bg-tall {
  display: none;
}

@media (orientation: portrait) {
  .hero-bg-wide {
    display: none;
  }
  .hero-bg-tall {
    display: block;
  }
}

.hero-meta {
  position: relative;
  z-index: 2;
}

.hero-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-top: 1px solid var(--hair-dark);
  border-bottom: 1px solid var(--hair-dark);
  color: rgba(255, 247, 240, 0.72);
}

/* It sits in a ruled row that looks tappable, so it is a link (to the
   download section, like the mast's "Get the app"); underlined so it
   reads as one on touch screens too. */
.hero-meta-link {
  /* A taller tap target than the 12px line, without moving the row. */
  padding: 8px 0;
  margin: -8px 0;
  color: var(--cream);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  text-decoration-color: rgba(255, 247, 240, 0.45);
  transition:
    color 0.2s,
    text-decoration-color 0.2s;
}

.hero-meta-link:hover {
  color: var(--spritz);
  text-decoration-color: currentColor;
}

.hero-title {
  position: relative;
  z-index: 2;
  align-self: center;
  margin: clamp(24px, 4vh, 56px) 0;
  font-size: clamp(64px, min(11.2vw, 17.5vh), 300px);
  line-height: 0.82;
  pointer-events: none;
}

.hero-title .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.04em;
}

.hero-title .line-in {
  display: block;
}

.hero-title .line--accent {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  text-transform: none;
  letter-spacing: -0.03em;
  color: var(--spritz);
  font-size: 1.32em;
  line-height: 0.78;
  padding: 0.02em 0.06em 0.12em 0;
  margin-left: 0.32em;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-title .line-in {
    animation: rise 1.1s var(--ease-out) both;
  }
  .hero-title .line:nth-child(2) .line-in {
    animation-delay: 0.09s;
  }
  .hero-title .line:nth-child(3) .line-in {
    animation-delay: 0.2s;
  }
  .hero-figure {
    animation: fade-in 1.4s 0.35s var(--ease-out) both;
  }
}

@keyframes rise {
  from {
    transform: translateY(105%) skewY(4deg);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
}

/* The photo + phone collage sits on the right, under the type's last lines;
   the phone is in front of the type, the photo behind it. */
.hero-figure {
  position: absolute;
  z-index: 1;
  right: var(--gut);
  top: 96px;
  bottom: 150px;
  width: min(30vw, 480px);
  margin: 0;
}

.phone {
  position: relative;
  aspect-ratio: 600 / 1236;
  padding: 2.4%;
  background: #050407;
  border-radius: 13% / 6.3%;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 40px 80px -20px rgba(0, 0, 0, 0.6);
}

.phone video,
.phone img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 11.2% / 5.4%;
  background: #15131b;
}

.hero-phone {
  position: absolute;
  z-index: 3;
  left: 44%;
  bottom: -4%;
  height: 84%;
  rotate: -6deg;
}

.hero-stamp {
  position: absolute;
  z-index: 4;
  right: -14px;
  top: -18px;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--lilac);
  color: var(--cream);
  font-family: var(--f-display);
  font-stretch: 62%;
  font-weight: 850;
  font-size: 22px;
  line-height: 0.86;
  text-transform: uppercase;
  rotate: 12deg;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-stamp {
    animation: wobble 6s ease-in-out infinite;
  }
}

@keyframes wobble {
  50% {
    rotate: -4deg;
    scale: 1.06;
  }
}

.hero-foot {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) auto minmax(0, 1fr);
  align-items: end;
  gap: 24px 40px;
  padding-top: 20px;
  border-top: 1px solid var(--hair-dark);
}

.hero-lede {
  margin: 0;
  max-width: 44ch;
  font-size: 18px;
  line-height: 1.45;
  color: rgba(255, 247, 240, 0.86);
}

.hero-cta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-when {
  margin: 0;
  justify-self: end;
  display: grid;
  justify-items: end;
  gap: 8px;
}

.hero-when-label {
  color: rgba(255, 247, 240, 0.72);
}

.hero-when-words {
  font-family: var(--f-display);
  font-stretch: 62%;
  font-weight: 850;
  font-size: clamp(26px, 2.2vw, 38px);
  line-height: 0.9;
  text-transform: uppercase;
  color: var(--spritz);
  white-space: nowrap;
}

@media (max-width: 1000px) {
  .hero-figure {
    width: 38vw;
  }
  .hero-foot {
    grid-template-columns: 1fr auto;
  }
  .hero-when {
    grid-column: 1 / -1;
    justify-self: start;
    justify-items: start;
  }
}

/* Phones, and tablets held upright: the collage drops below the type. */
@media (max-width: 720px), (orientation: portrait) and (max-width: 1100px) {
  .hero {
    min-height: 0;
    padding-bottom: 24px;
  }
  .hero-title {
    font-size: min(17.4vw, 160px);
    margin: 28px 0 20px;
  }
  .hero-title .line--accent {
    margin-left: 0;
    font-size: 1.36em;
  }
  .hero-figure {
    position: relative;
    inset: auto;
    width: 100%;
    height: 118vw;
    max-height: 640px;
    margin: 0 0 28px;
  }
  .hero-phone {
    left: 50%;
    translate: -50% 0;
    bottom: 4%;
    height: 88%;
  }
  .hero-stamp {
    right: 10px;
    top: auto;
    bottom: 18px;
    width: 96px;
    height: 96px;
    font-size: 19px;
  }
}

@media (max-width: 720px) {
  .hero-when-words {
    white-space: normal;
  }
  .hero-foot {
    grid-template-columns: 1fr;
  }
  .hero-cta .btn {
    flex: 1 1 auto;
  }
}

/* ------------------------------------------------------------- manifesto */

.manifesto {
  background: var(--paper);
  color: var(--ink);
  padding: clamp(72px, 11vw, 168px) var(--gut);
  display: grid;
  grid-template-columns: minmax(0, 1fr) min(26vw, 360px);
  gap: 48px clamp(32px, 5vw, 96px);
  align-items: center;
}

.manifesto-label {
  margin: 0 0 24px;
  color: var(--spritz-text);
}

.manifesto-text {
  margin: 0;
  font-family: var(--f-display);
  font-stretch: 62%;
  font-weight: 850;
  text-transform: uppercase;
  font-size: clamp(52px, 8.4vw, 150px);
  line-height: 0.86;
  letter-spacing: -0.01em;
}

.m-line {
  display: block;
}

.manifesto-text em {
  color: var(--spritz-text);
  font-size: 1.14em;
  line-height: 0.8;
}

/* home.js adds .will-reveal, then .is-in once the section is on screen. */
.will-reveal .m-line {
  opacity: 0;
  transform: translateY(0.4em);
  transition:
    opacity 0.7s var(--ease-out),
    transform 0.9s var(--ease-out);
}

.will-reveal .m-line:nth-child(2) {
  transition-delay: 0.12s;
}

.will-reveal .m-line:nth-child(3) {
  transition-delay: 0.24s;
}

.will-reveal .m-line:nth-child(4) {
  transition-delay: 0.36s;
}

.will-reveal.is-in .m-line {
  opacity: 1;
  transform: none;
}

.manifesto-photo {
  margin: 0;
}

/* Photos stay in their own warm colour, a touch richer; never crushed to
   black (an early duotone read as a horror film, owner 2026-10-07). */
.duo {
  overflow: hidden;
  background: var(--spritz);
}

.duo img {
  display: block;
  width: 100%;
  height: auto;
  filter: saturate(1.1) contrast(1.05);
}

.manifesto-photo .duo {
  aspect-ratio: 4 / 5;
  rotate: 3deg;
}

.manifesto-photo .duo img {
  height: 100%;
  object-fit: cover;
  object-position: 44% 50%;
}

.manifesto-photo figcaption {
  margin-top: 14px;
  color: rgba(22, 17, 26, 0.72);
  font-size: 11px;
}

@media (max-width: 900px) {
  .manifesto {
    grid-template-columns: 1fr;
  }
  .manifesto-photo {
    width: min(70%, 320px);
    justify-self: end;
  }
}

/* ------------------------------------------------------------------ acts */

.acts {
  position: relative;
  background: var(--night);
}

.acts-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  padding: clamp(56px, 8vw, 120px) var(--gut) 20px;
  border-bottom: 1px solid var(--hair-dark);
}

.acts-title {
  margin: 0;
  font-size: clamp(44px, 7vw, 120px);
  line-height: 0.86;
}

.acts-title-sub {
  display: block;
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  text-transform: none;
  font-size: 0.42em;
  letter-spacing: -0.01em;
  line-height: 1.1;
  color: var(--spritz);
}

.acts-progress {
  margin: 0;
  color: rgba(255, 247, 240, 0.72);
  white-space: nowrap;
}

.acts-track {
  list-style: none;
  margin: 0;
  padding: 0;
}

.act {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: end;
  padding: clamp(28px, 4vw, 56px) var(--gut);
  min-height: 86vh;
  overflow: hidden;
}

.act--night {
  background: var(--night-2);
  color: var(--cream);
}
.act--spritz {
  background: var(--spritz);
  color: var(--ink);
}
.act--lilac {
  background: var(--lilac);
  color: var(--cream);
}
.act--paper {
  background: var(--paper);
  color: var(--ink);
}

.act-copy {
  position: static;
  max-width: 560px;
}

.act-copy > :not(.act-num) {
  position: relative;
  z-index: 2;
}

/* The act's numeral, outlined, top left of the panel. `color` is
   transparent, so the stroke colour is set explicitly per act. */
.act-num {
  position: absolute;
  z-index: 0;
  top: clamp(12px, 2vw, 28px);
  left: calc(var(--gut) - 0.04em);
  font-size: clamp(180px, 34vh, 420px);
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 2px var(--num, currentColor);
  pointer-events: none;
}

.act--night {
  --num: var(--spritz);
}
.act--spritz {
  --num: var(--ink);
}
.act--lilac {
  --num: var(--cream);
}
.act--paper {
  --num: var(--spritz-text);
}

.act-title {
  margin: 0 0 16px;
  font-size: clamp(44px, 5.6vw, 96px);
  line-height: 0.86;
}

.act-copy p {
  margin: 0;
  max-width: 32ch;
  font-size: 18px;
  line-height: 1.45;
}

.act-phone {
  z-index: 2;
  height: min(68vh, 640px);
  rotate: -3deg;
}

.act:nth-child(even) .act-phone {
  rotate: 3deg;
}

@media (max-width: 720px) {
  .act {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-top: 150px;
  }
  .act-num {
    font-size: 180px;
  }
  .act-phone {
    height: auto;
    width: min(64vw, 300px);
    justify-self: center;
  }
}

/* Wide screens with motion: a horizontal lookbook driven by vertical scroll.
   home.js adds .acts--pinned and sets the section's height; the track is
   moved with a transform. */
.acts--pinned .acts-pin {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.acts--pinned .acts-head {
  padding-top: 72px;
  padding-bottom: 14px;
  flex: none;
}

.acts--pinned .acts-title {
  font-size: clamp(36px, 4.4vw, 76px);
}

.acts--pinned .acts-track {
  flex: 1;
  display: flex;
  width: max-content;
  will-change: transform;
}

.acts--pinned .act {
  width: min(80vw, 1180px);
  min-height: 0;
  height: 100%;
  align-items: center;
}

.acts--pinned .act-copy {
  align-self: end;
}

.acts--pinned .act-phone {
  height: min(64vh, 620px);
  margin-right: clamp(24px, 4vw, 72px);
}

/* --------------------------------------------------------------- friends */

.friends {
  background: var(--lilac);
  color: var(--cream);
  padding: clamp(72px, 10vw, 152px) var(--gut);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 56px clamp(32px, 6vw, 112px);
  align-items: center;
}

.friends-label {
  margin: 0 0 24px;
}

.friends-title {
  margin: 0;
  font-family: var(--f-display);
  font-stretch: 62%;
  font-weight: 850;
  text-transform: uppercase;
  font-size: clamp(44px, 6.2vw, 112px);
  line-height: 0.88;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.friends-title em {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  font-stretch: normal;
  text-transform: none;
  font-size: 1.08em;
  line-height: 0.8;
  white-space: nowrap;
}

.friends-text {
  margin: 32px 0 0;
  max-width: 40ch;
  font-size: clamp(18px, 1.4vw, 21px);
  line-height: 1.5;
}

.friends-note {
  margin: 24px 0 0;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.friends-chat {
  margin: 0;
  justify-self: center;
  width: min(100%, 400px);
}

.chat {
  background: var(--night);
  padding: 22px 18px 26px;
  display: grid;
  gap: 10px;
  rotate: 2deg;
  box-shadow: 18px 18px 0 rgba(11, 10, 15, 0.35);
  font-size: 16px;
  line-height: 1.35;
}

.chat-head {
  margin: 0 0 6px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--hair-dark);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
}

/* The thread that went nowhere: dimmed a little, and only the months are
   struck out, so the messages stay readable. */
.chat-old {
  display: grid;
  gap: 10px;
  opacity: 0.82;
}

.chat-old .bubble i {
  text-decoration: line-through;
  text-decoration-color: var(--spritz);
  text-decoration-thickness: 2px;
}

.chat-day {
  margin: 6px 0 2px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  color: var(--spritz);
}

.bubble {
  margin: 0;
  justify-self: start;
  max-width: 85%;
  padding: 9px 13px 10px;
  background: var(--night-2);
  border: 1px solid var(--hair-dark);
}

.bubble b {
  display: block;
  font-family: var(--f-mono);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #b9a8ff;
}

.bubble i {
  margin-left: 8px;
  font-family: var(--f-mono);
  font-style: normal;
  font-size: 11px;
  color: rgba(255, 247, 240, 0.78);
}

.bubble--me {
  justify-self: end;
  background: var(--spritz);
  border-color: var(--spritz);
  color: var(--ink);
}

.chat-link {
  display: grid;
  gap: 2px;
  margin-top: 9px;
  padding: 9px 11px;
  background: rgba(11, 10, 15, 0.14);
  border-left: 3px solid var(--ink);
}

.chat-link-title {
  font-weight: 700;
}

.chat-link-desc {
  font-size: 14px;
}

.chat-link-host {
  font-size: 11px;
  letter-spacing: 0.04em;
}

.friends-chat figcaption {
  margin-top: 28px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
}

@media (max-width: 900px) {
  .friends {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ------------------------------------------------------------------ zero */

.zero {
  position: relative;
  background: var(--night);
  padding: clamp(64px, 10vw, 140px) 0;
  overflow: hidden;
}

.zero-band {
  display: grid;
  gap: 0;
}

.zero-row {
  display: flex;
  white-space: nowrap;
  font-size: clamp(88px, 17vw, 300px);
  line-height: 0.86;
}

.zero-row span {
  flex: none;
  padding-right: 0.25em;
}

.zero-row:first-child {
  color: var(--spritz);
}

.zero-row--outline {
  color: transparent;
  -webkit-text-stroke: 2px var(--cream);
}

@media (prefers-reduced-motion: no-preference) {
  .zero-row span {
    animation: slide 38s linear infinite;
  }
  .zero-row--outline span {
    animation-direction: reverse;
    animation-duration: 46s;
  }
}

.zero-copy {
  padding: clamp(40px, 6vw, 80px) var(--gut) 0;
  text-align: center;
}

.zero-title {
  margin: 0;
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(48px, 8vw, 150px);
  line-height: 0.95;
  letter-spacing: -0.02em;
}

.zero-cycle {
  display: inline-block;
  color: var(--spritz);
}

.zero-cycle.is-out {
  animation: cycle-out 0.32s ease-in both;
}

.zero-cycle.is-in {
  animation: cycle-in 0.5s var(--ease-out) both;
}

@keyframes cycle-out {
  to {
    opacity: 0;
    transform: translateY(-0.3em) rotate(-4deg);
  }
}

@keyframes cycle-in {
  from {
    opacity: 0;
    transform: translateY(0.35em) rotate(4deg);
  }
}

.zero-sub {
  margin: 20px 0 0;
  font-family: var(--f-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 247, 240, 0.72);
}

/* ----------------------------------------------------------------- rules */

.rules {
  background: var(--paper);
  color: var(--ink);
  padding: clamp(64px, 9vw, 140px) var(--gut) clamp(48px, 6vw, 96px);
}

.rules-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 16px;
  margin-bottom: clamp(28px, 4vw, 56px);
}

.rules-title {
  margin: 0;
  font-size: clamp(64px, 13.5vw, 250px);
  line-height: 0.8;
}

.rules-note {
  margin: 0.4em 0 0;
  color: var(--spritz-text);
}

.rules-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-bottom: 1px solid var(--hair-light);
}

.rule {
  position: relative;
  display: grid;
  grid-template-columns: 64px minmax(0, 1.4fr) minmax(0, 1fr);
  align-items: baseline;
  gap: 8px 24px;
  padding: 18px 0 16px;
  border-top: 1px solid var(--hair-light);
  isolation: isolate;
}

.rule::before {
  content: '';
  position: absolute;
  inset: 0 calc(-1 * var(--gut));
  z-index: -1;
  background: var(--spritz);
  transform: scaleY(0);
  transform-origin: 50% 100%;
  transition: transform 0.45s var(--ease-out);
}

.rule-title {
  margin: 0;
  font-size: clamp(34px, 5vw, 84px);
  line-height: 0.9;
  transition: translate 0.45s var(--ease-out);
}

.rule-text {
  margin: 0;
  font-size: 17px;
  line-height: 1.45;
  max-width: 36ch;
}

@media (hover: hover) and (pointer: fine) {
  .rule:hover::before {
    transform: scaleY(1);
  }
  .rule:hover .rule-title {
    translate: 16px 0;
  }
}

@media (max-width: 720px) {
  .rule {
    grid-template-columns: 40px minmax(0, 1fr);
  }
  .rule-text {
    grid-column: 2;
  }
}

.rules-close {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-top: clamp(56px, 8vw, 120px);
}

.rules-close-line {
  margin: 0;
  font-size: clamp(48px, 8.4vw, 150px);
  line-height: 0.86;
  max-width: 14ch;
}

.rules-close-line em {
  color: var(--spritz-text);
  font-size: 1.12em;
}

.rules-close-link {
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 3px;
}

.rules-close-link:hover {
  color: var(--spritz-text);
}

.rules :focus-visible {
  outline-color: var(--ink);
}

/* ------------------------------------------------------------------- get */

.get {
  background: var(--spritz);
  color: var(--ink);
  padding: clamp(40px, 6vw, 80px) var(--gut) clamp(40px, 5vw, 72px);
  overflow: hidden;
}

/* Last call, fine pointers: drinks trail the cursor (home.js). */
.get {
  position: relative;
}

.get > :not(.trail-chip) {
  position: relative;
  z-index: 1;
}

.trail-chip {
  position: absolute;
  z-index: 0;
  left: 0;
  top: 0;
  padding: 6px 10px;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--f-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
  animation: chip 1.1s var(--ease-out) forwards;
}

.trail-chip:nth-child(3n) {
  background: var(--cream);
  color: var(--ink);
}

.trail-chip:nth-child(3n + 1) {
  background: var(--lilac);
}

@keyframes chip {
  0% {
    opacity: 0;
    scale: 0.4;
  }
  15% {
    opacity: 1;
    scale: 1;
  }
  70% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    scale: 0.9;
  }
}

.get-label {
  margin: 0;
}

.get-title {
  margin: 0.08em 0 0.12em -0.03em;
  font-size: clamp(64px, 18vw, 400px);
  line-height: 0.8;
  white-space: nowrap;
}

.get-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  border-top: 1px solid var(--hair-light);
  padding-top: 20px;
}

.get-sub {
  margin: 0;
  font-family: var(--f-serif);
  font-style: italic;
  font-size: clamp(28px, 3.2vw, 48px);
  line-height: 1.05;
  max-width: 20ch;
}

.get :focus-visible {
  outline-color: var(--ink);
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Official badge artwork, unchanged (Apple's and Google's rules): same
   height side by side, at least 40px tall. */
.store-badge-img {
  display: block;
  transition: translate 0.25s var(--ease-out);
}

.store-badge-img:hover {
  translate: 0 -3px;
}

.store-badge-img img {
  display: block;
  height: 48px;
  width: auto;
}

.store-badge {
  display: flex;
  flex-direction: column;
  min-width: 172px;
  padding: 10px 18px;
  background: var(--ink);
  color: var(--cream);
  text-decoration: none;
  cursor: default;
}

.store-badge-label {
  font-weight: 700;
}

.store-badge-note {
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  opacity: 0.7;
}

/* -------------------------------------------------------------- colophon */

.colophon {
  background: var(--night);
  color: rgba(255, 247, 240, 0.72);
  padding: 48px var(--gut) 0;
  overflow: hidden;
}

.colophon-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--hair-dark);
}

.colophon nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 8px 40px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.colophon nav a {
  text-decoration: none;
  color: var(--cream);
}

.colophon nav a:hover {
  color: var(--spritz);
}

.colophon-small {
  font-size: 13px;
  line-height: 1.5;
}

.colophon-small p {
  margin: 0 0 8px;
}

.colophon-small a {
  color: var(--cream);
}

.colophon-word {
  margin: 0 0 -0.16em;
  font-size: 29.6vw;
  line-height: 1;
  color: var(--spritz);
  text-align: center;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

@media (max-width: 720px) {
  .colophon-grid {
    grid-template-columns: 1fr;
  }
}
