/* ============================================================
   Twain — twain.cc
   paper · ink · coral — Wise-inspired, Twain-branded
   ============================================================ */

@font-face {
  font-family: "Jost";
  src: url("./assets/fonts/Jost-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Jost";
  src: url("./assets/fonts/Jost-Medium.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Jost";
  src: url("./assets/fonts/Jost-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Jost";
  src: url("./assets/fonts/Jost-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("./assets/fonts/Fraunces-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("./assets/fonts/Fraunces-Medium.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("./assets/fonts/Fraunces-SemiBold.ttf") format("truetype");
  font-weight: 650;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("./assets/fonts/Fraunces-SemiBoldItalic.ttf") format("truetype");
  font-weight: 650;
  font-style: italic;
  font-display: swap;
}

/* ---------- tokens ---------- */

:root {
  --paper: #f1ecdf;
  --paper-soft: #fffcf5;
  --paper-deep: #e7dfcd;
  --ink: #1a1813;
  --ink-2: #2a2620;
  --ink-soft: #6e6a60;
  --coral: #e2563e;
  --coral-deep: #b73e29;
  --coral-soft: #f7e2d8;
  --rose: #c74a6a;
  --rose-soft: #f6dde4;
  --mint: #dceede;
  --sky: #dcecf6;
  --sun: #f6ecca;

  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --body: "Jost", "Avenir Next", system-ui, sans-serif;

  --r-lg: 32px;
  --r-md: 24px;
  --r-pill: 999px;

  --shadow-lg: 0 32px 80px rgba(26, 24, 19, 0.18);
  --shadow-md: 0 18px 48px rgba(26, 24, 19, 0.12);
  --shadow-sm: 0 8px 24px rgba(26, 24, 19, 0.08);

  --max: 1240px;
  --gutter: clamp(20px, 4vw, 48px);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ---------- base ---------- */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

body.is-nav-open {
  overflow: hidden;
}

::selection {
  background: var(--coral);
  color: var(--paper-soft);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

img {
  max-width: 100%;
  display: block;
}

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

h1,
h2 {
  font-family: var(--display);
  font-weight: 650;
  line-height: 0.96;
  letter-spacing: -0.015em;
}

h1 {
  font-size: clamp(3rem, 6vw, 5.4rem);
}

h2 {
  font-size: clamp(2.6rem, 5.6vw, 5.2rem);
}

h2 em,
h1 em {
  color: var(--coral);
  font-style: italic;
}

.section-pad {
  width: min(100% - var(--gutter) * 2, var(--max));
  margin-inline: auto;
}

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

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 56px;
  padding: 14px 28px;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 1.02rem;
  line-height: 1.1;
  white-space: nowrap;
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s ease,
    background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  will-change: transform;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.btn:active {
  transform: translateY(-1px) scale(0.98);
}

.btn-ink {
  background: var(--ink);
  color: var(--paper-soft);
}

.btn-ink:hover {
  background: var(--coral);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid rgba(26, 24, 19, 0.35);
}

.btn-outline:hover {
  border-color: var(--ink);
  background: var(--paper-soft);
}

.btn-paper {
  background: var(--paper-soft);
  color: var(--ink);
}

.btn-paper:hover {
  background: var(--paper);
}

.btn-ghost {
  background: transparent;
  color: var(--paper-soft);
  border: 1.5px solid rgba(255, 252, 245, 0.4);
}

.btn-ghost:hover {
  border-color: var(--paper-soft);
  background: rgba(255, 252, 245, 0.08);
}

.btn-sm {
  min-height: 44px;
  padding: 10px 20px;
  font-size: 0.95rem;
}

.btn-store {
  justify-content: flex-start;
  text-align: left;
  padding: 12px 26px 12px 22px;
}

.btn-store svg {
  width: 26px;
  height: 26px;
  flex: none;
}

.btn-store small {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.65;
}

.btn-store strong {
  display: block;
  font-size: 1.12rem;
  font-weight: 700;
}

/* ---------- chip ---------- */

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1.5px solid rgba(183, 62, 41, 0.35);
  border-radius: var(--r-pill);
  background: rgba(247, 226, 216, 0.55);
  color: var(--coral-deep);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.chip svg {
  width: 12px;
  height: 12px;
  animation: spin-slow 9s linear infinite;
}

.chip-light {
  border-color: rgba(255, 252, 245, 0.4);
  background: rgba(255, 252, 245, 0.12);
  color: var(--paper-soft);
}

@keyframes spin-slow {
  to {
    transform: rotate(360deg);
  }
}

/* ---------- header ---------- */

.site-header {
  position: fixed;
  top: 16px;
  left: 50%;
  z-index: 50;
  width: min(100% - 24px, var(--max));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 12px 10px 18px;
  border: 1px solid rgba(26, 24, 19, 0.08);
  border-radius: var(--r-pill);
  background: rgba(241, 236, 223, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transform: translateX(-50%);
  transition: background 0.35s ease, box-shadow 0.35s ease, top 0.35s ease;
}

.site-header.is-scrolled {
  top: 10px;
  background: rgba(255, 252, 245, 0.85);
  box-shadow: var(--shadow-sm);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 650;
  font-size: 1.45rem;
  letter-spacing: -0.01em;
}

.brand-mark {
  width: 30px;
  height: 27px;
  color: var(--ink);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.97rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.nav-links a {
  padding: 10px 16px;
  border-radius: var(--r-pill);
  transition: color 0.25s ease, background 0.25s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--ink);
  background: rgba(226, 86, 62, 0.12);
}

.header-end {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: 50%;
  background: rgba(26, 24, 19, 0.06);
}

.nav-toggle span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.3s var(--ease-out), opacity 0.3s ease;
}

body.is-nav-open .nav-toggle span:first-child {
  transform: translateY(4px) rotate(45deg);
}

body.is-nav-open .nav-toggle span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

/* ---------- mobile menu ---------- */

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 40px;
  padding: 100px var(--gutter) 48px;
  background: var(--paper);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

body.is-nav-open .mobile-menu {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-menu nav a {
  font-family: var(--display);
  font-weight: 650;
  font-size: clamp(2.4rem, 9vw, 3.4rem);
  line-height: 1.15;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s var(--ease-out), color 0.25s ease;
}

.mobile-menu nav a:hover {
  color: var(--coral);
}

body.is-nav-open .mobile-menu nav a {
  opacity: 1;
  transform: translateY(0);
}

body.is-nav-open .mobile-menu nav a:nth-child(2) { transition-delay: 0.05s; }
body.is-nav-open .mobile-menu nav a:nth-child(3) { transition-delay: 0.1s; }
body.is-nav-open .mobile-menu nav a:nth-child(4) { transition-delay: 0.15s; }
body.is-nav-open .mobile-menu nav a:nth-child(5) { transition-delay: 0.2s; }

.mobile-menu .menu-cta {
  color: var(--coral);
}

.mobile-menu p {
  color: var(--ink-soft);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.hero {
  position: relative;
  overflow: clip;
  background:
    radial-gradient(1100px 520px at 86% -8%, rgba(226, 86, 62, 0.12), transparent 65%),
    radial-gradient(800px 500px at -10% 110%, rgba(199, 74, 106, 0.08), transparent 60%),
    var(--paper);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.85fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
  min-height: 100svh;
  padding-top: 130px;
  padding-bottom: 60px;
}

.hero-copy {
  max-width: 640px;
}

.hero-copy .chip {
  margin-bottom: 26px;
}

.hero-flair {
  position: relative;
  display: inline-block;
}

.hero-flair em {
  color: var(--coral);
  font-style: italic;
}

.flair-underline {
  position: absolute;
  left: 0;
  bottom: -0.18em;
  width: 100%;
  height: auto;
  overflow: visible;
}

.flair-underline path {
  fill: none;
  stroke: var(--coral);
  stroke-width: 7;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

.is-loaded .flair-underline path {
  animation: draw-line 1s var(--ease-out) 0.7s forwards;
}

@keyframes draw-line {
  to {
    stroke-dashoffset: 0;
  }
}

.hero-text {
  max-width: 480px;
  margin: 28px 0 36px;
  color: var(--ink-soft);
  font-size: clamp(1.1rem, 1.7vw, 1.3rem);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-note {
  margin-top: 22px;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

/* hero stage */

.hero-stage {
  position: relative;
  display: grid;
  place-items: center;
  padding-bottom: 70px;
}

.hero-blob {
  position: absolute;
  inset: 6% -4% 10%;
  z-index: 0;
  border-radius: 46% 54% 58% 42% / 52% 44% 56% 48%;
  background: linear-gradient(150deg, rgba(226, 86, 62, 0.16), rgba(199, 74, 106, 0.1) 55%, rgba(246, 236, 202, 0.5));
  animation: blob-drift 14s ease-in-out infinite alternate;
}

@keyframes blob-drift {
  from {
    border-radius: 46% 54% 58% 42% / 52% 44% 56% 48%;
    transform: rotate(-2deg) scale(1);
  }
  to {
    border-radius: 54% 46% 44% 56% / 46% 56% 44% 54%;
    transform: rotate(3deg) scale(1.04);
  }
}

/* device frame */

.device {
  position: relative;
  z-index: 2;
  width: min(78vw, 330px);
  padding: 11px;
  border-radius: 54px;
  background: var(--ink);
  box-shadow: var(--shadow-lg), inset 0 0 0 2px rgba(255, 252, 245, 0.08);
  transform-style: preserve-3d;
  transition: transform 0.5s var(--ease-out);
  animation: device-float 7s ease-in-out infinite;
}

@keyframes device-float {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -12px;
  }
}

.device-screen {
  position: relative;
  overflow: hidden;
  aspect-ratio: 436 / 960;
  border-radius: 44px;
  background: var(--paper-soft);
}

.device-island {
  position: absolute;
  top: 12px;
  left: 50%;
  width: 86px;
  height: 24px;
  border-radius: var(--r-pill);
  background: var(--ink);
  transform: translateX(-50%);
}

.screen {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.55s ease, transform 0.7s var(--ease-out);
}

.screen.is-active {
  opacity: 1;
  transform: scale(1);
}

/* floating 3d objects */

.float-wrap {
  position: absolute;
  z-index: 3;
  pointer-events: none;
  will-change: transform;
}

.float-wrap img {
  filter: drop-shadow(0 14px 22px rgba(26, 24, 19, 0.22));
  animation: bob 5.5s ease-in-out infinite;
}

@keyframes bob {
  0%,
  100% {
    transform: translateY(0) rotate(var(--rot, 0deg));
  }
  50% {
    transform: translateY(-12px) rotate(var(--rot, 0deg));
  }
}

.float-heart {
  top: 4%;
  right: 0;
}

.float-heart img {
  --rot: 12deg;
  width: clamp(76px, 9vw, 120px);
  height: auto;
}

.float-letter {
  bottom: 16%;
  left: -3%;
}

.float-letter img {
  --rot: -10deg;
  width: clamp(86px, 10vw, 132px);
  height: auto;
  animation-delay: -2.2s;
}

.float-sparkle {
  top: 12%;
  left: 4%;
}

.float-sparkle img {
  --rot: 0deg;
  width: clamp(56px, 6vw, 88px);
  height: auto;
  animation-delay: -3.8s;
}

/* shot picker */

.shot-picker {
  position: absolute;
  bottom: 0;
  z-index: 4;
  display: flex;
  gap: 4px;
  max-width: calc(100vw - 40px);
  padding: 6px;
  border: 1px solid rgba(26, 24, 19, 0.1);
  border-radius: var(--r-pill);
  background: rgba(255, 252, 245, 0.85);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow-x: auto;
  scrollbar-width: none;
}

.shot-picker::-webkit-scrollbar {
  display: none;
}

.shot-picker button {
  flex: none;
  min-height: 38px;
  padding: 0 16px;
  border-radius: var(--r-pill);
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 600;
  transition: color 0.25s ease, background 0.25s ease;
}

.shot-picker button:hover {
  color: var(--ink);
}

.shot-picker button.is-active {
  color: var(--paper-soft);
  background: var(--ink);
}

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

.ticker {
  overflow: hidden;
  contain: paint;
  padding-block: clamp(28px, 4vw, 44px);
  background: var(--ink);
  color: var(--paper);
}

.ticker-track {
  display: flex;
  align-items: center;
  gap: clamp(28px, 4vw, 56px);
  width: max-content;
  animation: marquee 36s linear infinite;
}

.ticker span {
  font-family: var(--display);
  font-weight: 650;
  font-size: clamp(1.8rem, 3.6vw, 3.2rem);
  line-height: 1;
  white-space: nowrap;
}

.ticker em {
  color: var(--coral);
  font-style: italic;
}

.ticker i {
  color: var(--coral);
  font-style: normal;
  font-size: clamp(1.1rem, 2vw, 1.6rem);
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- stats ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
  padding-block: clamp(72px, 9vw, 130px);
}

.stat {
  position: relative;
  padding-top: 22px;
  border-top: 2px solid rgba(26, 24, 19, 0.85);
}

.stat strong {
  display: block;
  font-family: var(--display);
  font-weight: 650;
  font-size: clamp(3.6rem, 6.5vw, 6rem);
  line-height: 1;
}

.stat:nth-child(odd) strong {
  color: var(--coral);
}

.stat span {
  display: block;
  margin-top: 10px;
  max-width: 220px;
  color: var(--ink-soft);
  font-size: 1.02rem;
  font-weight: 500;
}

/* ---------- block headings ---------- */

.block-heading {
  margin-bottom: clamp(40px, 6vw, 72px);
}

.block-heading .chip {
  margin-bottom: 22px;
}

.block-heading h2 {
  max-width: 900px;
}

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

.features {
  padding-block: clamp(40px, 6vw, 80px) clamp(90px, 11vw, 150px);
}

.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
}

.bento-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  min-height: 300px;
  padding: clamp(24px, 2.6vw, 36px);
  border-radius: var(--r-lg);
  background: var(--paper-soft);
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s ease;
}

.bento-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}

.bento-card h3 {
  font-family: var(--display);
  font-weight: 650;
  font-size: clamp(1.5rem, 2.4vw, 2.2rem);
  line-height: 1.04;
  letter-spacing: -0.01em;
}

.card-tag {
  color: var(--coral-deep);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.card-text {
  color: var(--ink-soft);
  font-size: 1.02rem;
  max-width: 420px;
}

.card-3d {
  width: clamp(72px, 7vw, 96px);
  height: auto;
  margin-bottom: auto;
  filter: drop-shadow(0 12px 18px rgba(26, 24, 19, 0.18));
  transition: transform 0.5s var(--ease-spring);
}

.bento-card:hover .card-3d {
  transform: translateY(-8px) rotate(-6deg) scale(1.06);
}

/* big ink card */

.card-ink {
  grid-column: span 7;
  grid-row: span 2;
  flex-direction: row;
  align-items: stretch;
  justify-content: space-between;
  gap: 24px;
  min-height: 560px;
  background: linear-gradient(155deg, var(--ink) 30%, #34251f);
  color: var(--paper-soft);
}

.card-ink .card-tag {
  color: var(--coral);
}

.card-ink .card-text {
  color: rgba(255, 252, 245, 0.66);
}

.bento-copy {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 12px;
  max-width: 46%;
  padding-bottom: 6px;
}

.bento-shot {
  align-self: flex-end;
  width: 46%;
  max-width: 250px;
  margin-bottom: calc(clamp(24px, 2.6vw, 36px) * -1);
  border-radius: 28px 28px 0 0;
  padding: 8px 8px 0;
  background: rgba(255, 252, 245, 0.12);
  transition: transform 0.5s var(--ease-out);
}

.bento-shot img {
  border-radius: 22px 22px 0 0;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.3);
}

.card-ink:hover .bento-shot {
  transform: translateY(-12px);
}

/* tinted cards */

.card-sun {
  grid-column: span 5;
  background: var(--sun);
}

.card-rose {
  grid-column: span 5;
  background: var(--rose-soft);
}

.card-mint {
  grid-column: span 4;
  background: var(--mint);
}

.card-sky {
  grid-column: span 4;
  background: var(--sky);
}

.card-soft {
  grid-column: span 4;
  background: var(--coral-soft);
}

/* ---------- story / polaroids ---------- */

.story {
  background: var(--ink);
  color: var(--paper-soft);
  overflow: clip;
}

.story-inner {
  position: relative;
  padding-block: clamp(90px, 11vw, 150px);
}

.story .block-heading h2 {
  font-size: clamp(3rem, 6.8vw, 6.4rem);
}

.story-sub {
  max-width: 520px;
  margin-top: 26px;
  color: rgba(255, 252, 245, 0.66);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.6;
}

.polaroids {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 36px);
  margin-top: clamp(48px, 6vw, 80px);
}

.polaroid {
  position: relative;
  margin: 0;
  padding: 14px 14px 20px;
  border-radius: 18px;
  background: var(--paper-soft);
  box-shadow: var(--shadow-md);
  transform: rotate(var(--tilt, -2.5deg));
  transition: transform 0.5s var(--ease-spring), box-shadow 0.5s ease;
}

.polaroid:nth-child(2) {
  --tilt: 1.8deg;
  margin-top: clamp(16px, 3vw, 44px);
}

.polaroid:nth-child(3) {
  --tilt: -1.6deg;
}

.polaroid:hover {
  transform: rotate(0deg) translateY(-10px) scale(1.02);
  box-shadow: var(--shadow-lg);
  z-index: 2;
}

.polaroid img {
  aspect-ratio: 4 / 4.6;
  width: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.polaroid figcaption {
  margin-top: 14px;
  color: var(--ink);
  font-family: var(--display);
  font-style: italic;
  font-weight: 650;
  font-size: clamp(1.15rem, 1.8vw, 1.5rem);
  text-align: center;
}

.tape {
  position: absolute;
  top: -14px;
  left: 50%;
  width: 110px;
  height: 30px;
  border-radius: 3px;
  background:
    repeating-linear-gradient(-45deg, rgba(255, 252, 245, 0.35) 0 6px, rgba(26, 24, 19, 0.05) 6px 12px),
    rgba(226, 86, 62, 0.55);
  transform: translateX(-50%) rotate(-3deg);
}

.polaroid:nth-child(2) .tape {
  background:
    repeating-linear-gradient(-45deg, rgba(255, 252, 245, 0.35) 0 6px, rgba(26, 24, 19, 0.05) 6px 12px),
    rgba(220, 236, 246, 0.85);
  transform: translateX(-50%) rotate(2deg);
}

.polaroid:nth-child(3) .tape {
  background:
    repeating-linear-gradient(-45deg, rgba(255, 252, 245, 0.35) 0 6px, rgba(26, 24, 19, 0.05) 6px 12px),
    rgba(246, 236, 202, 0.9);
}

.story-hearts {
  top: clamp(60px, 8vw, 120px);
  right: 4%;
}

.story-hearts img {
  --rot: 8deg;
  width: clamp(70px, 8vw, 110px);
  height: auto;
}

/* ---------- wallpaper spotlight ---------- */

.wallpaper {
  background: linear-gradient(165deg, var(--coral) 20%, #d24a51 70%, var(--rose));
  color: var(--paper-soft);
  overflow: clip;
}

.wallpaper-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  align-items: center;
  gap: clamp(40px, 6vw, 80px);
  padding-block: clamp(90px, 11vw, 150px);
}

.wallpaper-copy .chip {
  margin-bottom: 26px;
}

.wallpaper-copy h2 {
  font-size: clamp(3rem, 6vw, 5.6rem);
}

.wallpaper-copy p:not(.chip) {
  max-width: 460px;
  margin: 26px 0 36px;
  color: rgba(255, 252, 245, 0.85);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.6;
}

.wallpaper-stage {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(14px, 2vw, 26px);
  padding-block: 30px;
}

.mini-device {
  width: min(38vw, 200px);
  padding: 8px;
  border-radius: 40px;
  background: var(--ink);
  box-shadow: 0 36px 80px rgba(26, 24, 19, 0.35);
  transition: transform 0.55s var(--ease-spring);
}

.tilt-left {
  transform: rotate(-5deg) translateY(10px);
}

.tilt-right {
  transform: rotate(4deg) translateY(-8px);
}

.wallpaper-stage:hover .tilt-left {
  transform: rotate(-2deg) translateY(4px);
}

.wallpaper-stage:hover .tilt-right {
  transform: rotate(1.5deg) translateY(-2px);
}

.mini-screen {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  aspect-ratio: 344 / 744;
}

.mini-screen img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lock-clock {
  position: absolute;
  inset: 26px 0 auto;
  display: grid;
  justify-items: center;
  gap: 2px;
  color: rgba(255, 252, 245, 0.95);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
}

.lock-clock small {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.lock-clock strong {
  font-family: var(--display);
  font-weight: 650;
  font-size: 2.6rem;
  line-height: 1;
}

.wp-sun {
  top: -9%;
  right: -1%;
}

.wp-sun img {
  --rot: 0deg;
  width: clamp(74px, 8vw, 110px);
  height: auto;
}

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

.steps {
  padding-block: clamp(90px, 11vw, 150px) clamp(60px, 8vw, 100px);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.step {
  position: relative;
  min-height: 270px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  padding: clamp(24px, 2.6vw, 34px);
  border-radius: var(--r-lg);
  background: var(--paper-soft);
  border: 1px solid rgba(26, 24, 19, 0.07);
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s ease;
}

.step:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}

.step-num {
  margin-bottom: auto;
  font-family: var(--display);
  font-weight: 650;
  font-size: clamp(2.6rem, 4vw, 3.6rem);
  line-height: 1;
  color: var(--coral);
}

.step h3 {
  font-family: var(--display);
  font-weight: 650;
  font-size: clamp(1.4rem, 2vw, 1.8rem);
}

.step p {
  color: var(--ink-soft);
  max-width: 300px;
}

/* ---------- download ---------- */

.download {
  padding-bottom: clamp(40px, 6vw, 80px);
}

.download-card {
  position: relative;
  overflow: hidden;
  display: grid;
  justify-items: center;
  gap: 18px;
  padding: clamp(56px, 9vw, 110px) clamp(24px, 6vw, 80px);
  border-radius: clamp(28px, 4vw, 48px);
  background:
    radial-gradient(900px 400px at 50% -20%, rgba(226, 86, 62, 0.25), transparent 70%),
    linear-gradient(160deg, var(--ink), #2e2019 75%);
  color: var(--paper-soft);
  text-align: center;
}

.download-card h2 {
  max-width: 720px;
  font-size: clamp(2.8rem, 5.6vw, 5rem);
}

.download-card > p {
  color: rgba(255, 252, 245, 0.7);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
}

.download-card .hero-actions {
  justify-content: center;
  margin-top: 14px;
}

.download-icon {
  width: clamp(84px, 9vw, 112px);
  height: auto;
  border-radius: 26%;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.4);
  transform: rotate(-6deg);
  transition: transform 0.5s var(--ease-spring);
}

.download-card:hover .download-icon {
  transform: rotate(0deg) scale(1.05);
}

.download-note {
  margin-top: 10px;
  font-family: var(--display);
  font-style: italic;
  font-weight: 650;
  font-size: 1.2rem;
  color: var(--coral);
}

.dl-heart {
  top: 14%;
  left: 8%;
}

.dl-heart img {
  --rot: -12deg;
  width: clamp(60px, 7vw, 96px);
  height: auto;
}

.dl-sparkle {
  bottom: 16%;
  right: 9%;
}

.dl-sparkle img {
  --rot: 8deg;
  width: clamp(52px, 6vw, 80px);
  height: auto;
  animation-delay: -2.6s;
}

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

.site-footer {
  position: relative;
  overflow: clip;
  padding-top: clamp(40px, 6vw, 70px);
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(32px, 5vw, 80px);
  padding-bottom: clamp(36px, 5vw, 60px);
}

.footer-brand .brand-mark {
  width: 44px;
  height: 40px;
}

.footer-brand p {
  margin-top: 14px;
  color: var(--ink-soft);
  font-family: var(--display);
  font-style: italic;
  font-size: 1.15rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(32px, 5vw, 72px);
}

.footer-links h4 {
  margin: 0 0 14px;
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-links a {
  display: block;
  padding-block: 5px;
  font-weight: 600;
  transition: color 0.25s ease;
}

.footer-links a:hover {
  color: var(--coral);
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-block: 22px;
  border-top: 1px solid rgba(26, 24, 19, 0.12);
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 500;
}

.footer-meta .heart {
  color: var(--coral);
}

.footer-wordmark {
  margin-bottom: -0.26em;
  font-family: var(--display);
  font-weight: 650;
  font-size: clamp(7rem, 24.5vw, 24rem);
  line-height: 0.78;
  letter-spacing: -0.02em;
  text-align: center;
  color: var(--coral);
  user-select: none;
}

/* ---------- legal pages ---------- */

.legal-hero {
  padding-top: 150px;
  padding-bottom: clamp(36px, 5vw, 56px);
}

.legal-hero .chip {
  margin-bottom: 24px;
}

.legal-hero h1 {
  font-size: clamp(2.8rem, 6vw, 4.6rem);
}

.legal-date {
  margin-top: 18px;
  color: var(--ink-soft);
  font-weight: 500;
}

.legal-body {
  max-width: 780px;
  padding-bottom: clamp(80px, 10vw, 130px);
}

.legal-body section {
  padding: 28px 0;
  border-top: 1px solid rgba(26, 24, 19, 0.12);
}

.legal-body h2 {
  margin-bottom: 14px;
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  line-height: 1.15;
}

.legal-body p,
.legal-body li {
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.65;
}

.legal-body p + p,
.legal-body ul {
  margin-top: 12px;
}

.legal-body ul {
  margin-bottom: 0;
  padding-left: 22px;
  display: grid;
  gap: 8px;
}

.legal-body li::marker {
  color: var(--coral);
}

.legal-body strong {
  color: var(--ink);
  font-weight: 600;
}

.legal-body a {
  color: var(--coral-deep);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(226, 86, 62, 0.4);
  text-underline-offset: 3px;
  transition: color 0.25s ease;
}

.legal-body a:hover {
  color: var(--coral);
}

@media (max-width: 920px) {
  .legal-nav.nav-links {
    display: flex;
  }

  .legal-nav.nav-links a {
    padding: 10px 10px;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .legal-nav.nav-links {
    display: none;
  }
}

/* ---------- reveal ---------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.8s ease, transform 0.8s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- custom cursor ---------- */

.cursor,
.cursor-dot {
  display: none;
}

@media (pointer: fine) {
  .cursor,
  .cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    display: block;
    pointer-events: none;
    border-radius: 50%;
    z-index: 200;
  }

  .cursor {
    width: 36px;
    height: 36px;
    border: 1.5px solid rgba(226, 86, 62, 0.7);
    transition: width 0.25s ease, height 0.25s ease, background 0.25s ease,
      opacity 0.25s ease;
    mix-blend-mode: multiply;
  }

  .cursor-dot {
    width: 6px;
    height: 6px;
    background: var(--coral);
  }

  body.is-hovering .cursor {
    width: 60px;
    height: 60px;
    background: rgba(226, 86, 62, 0.12);
  }
}

/* ---------- responsive ---------- */

@media (max-width: 1080px) {
  .card-ink {
    grid-column: span 12;
    min-height: 480px;
  }

  .card-sun,
  .card-rose {
    grid-column: span 6;
  }

  .card-mint,
  .card-sky,
  .card-soft {
    grid-column: span 4;
  }
}

@media (max-width: 920px) {
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 120px;
    gap: 56px;
  }

  .hero-copy {
    max-width: 580px;
  }

  .hero-stage {
    padding-bottom: 76px;
  }

  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .card-mint,
  .card-sky,
  .card-soft {
    grid-column: span 12;
  }

  .card-sun,
  .card-rose {
    grid-column: span 6;
  }

  .polaroids {
    grid-template-columns: 1fr;
    max-width: 460px;
    margin-inline: auto;
  }

  .polaroid:nth-child(2) {
    margin-top: 0;
  }

  .wallpaper-inner {
    grid-template-columns: 1fr;
  }

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

  .footer-top {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .card-ink {
    flex-direction: column;
    min-height: 540px;
    gap: 6px;
  }

  .bento-copy {
    max-width: 100%;
    order: 2;
  }

  .bento-shot {
    order: 1;
    align-self: center;
    width: 62%;
    max-width: 210px;
    margin-bottom: 0;
    margin-top: calc(clamp(24px, 2.6vw, 36px) * -1);
    border-radius: 0 0 28px 28px;
    padding: 0 8px 8px;
  }

  .bento-shot img {
    border-radius: 0 0 22px 22px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
  }

  .card-sun,
  .card-rose {
    grid-column: span 12;
  }

  .bento-card {
    min-height: 240px;
  }

  .stats {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .stat span {
    max-width: none;
  }

  .btn-store {
    width: min(100%, 320px);
  }

  .hero-actions {
    width: 100%;
  }

  .float-heart {
    right: -2%;
  }

  .mini-device {
    width: min(40vw, 170px);
  }

  .lock-clock strong {
    font-size: 2rem;
  }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .flair-underline path {
    stroke-dashoffset: 0;
  }

  .ticker-track {
    animation: none;
    width: 100%;
    flex-wrap: wrap;
  }
}
