/* ishin landing page. Plain CSS, no build step. */

:root {
  --blue: #2236ff;
  --blue-deep: #1626d6;
  --lav: #9aa4ff;
  --yellow: #ffd43b;
  --yellow-deep: #e9b800;
  --paper: #f4f4f2;
  --card: #ffffff;
  --ink: #111111;
  --ink-soft: #55554f;
  --grey: #cfcfcb;
  --pink: #ff3d8b;
  --mint: #a6ebcf;
  --red: #ff3b5c;

  --display: "Archivo", "Arial Black", system-ui, sans-serif;
  --body: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --kanji: "Dela Gothic One", "Hiragino Sans", "Yu Gothic", sans-serif;

  --gutter: clamp(16px, 3vw, 40px);
  --radius: 22px;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.45;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
}

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

::selection {
  background: var(--yellow);
  color: var(--ink);
}

/* ---------- Type ---------- */

.display {
  font-family: var(--display);
  font-weight: 900;
  font-stretch: 125%;
  text-transform: uppercase;
  line-height: 0.86;
  letter-spacing: -0.015em;
  margin: 0;
}

.paren {
  color: var(--grey);
  white-space: nowrap;
}

.on-blue .paren {
  color: var(--lav);
}

.kanji {
  font-family: var(--kanji);
  font-weight: 400;
  font-stretch: normal;
}

/* ---------- Selection handles (the Figma-style corners) ---------- */

.sel {
  position: relative;
  --h: var(--blue);
  --hb: var(--blue);
}

.sel::after {
  content: "";
  position: absolute;
  inset: -5px;
  pointer-events: none;
  background:
    linear-gradient(var(--h), var(--h)) 1px 1px / 7px 7px no-repeat,
    linear-gradient(var(--h), var(--h)) calc(100% - 1px) 1px / 7px 7px no-repeat,
    linear-gradient(var(--h), var(--h)) 1px calc(100% - 1px) / 7px 7px no-repeat,
    linear-gradient(var(--h), var(--h)) calc(100% - 1px) calc(100% - 1px) / 7px
      7px no-repeat,
    linear-gradient(var(--hb), var(--hb)) 0 0 / 9px 9px no-repeat,
    linear-gradient(var(--hb), var(--hb)) 100% 0 / 9px 9px no-repeat,
    linear-gradient(var(--hb), var(--hb)) 0 100% / 9px 9px no-repeat,
    linear-gradient(var(--hb), var(--hb)) 100% 100% / 9px 9px no-repeat;
}

.sel.framed {
  outline: 1.5px solid var(--hb);
  outline-offset: 0;
}

.sel-yellow {
  --h: var(--yellow);
  --hb: #8a6d00;
}

.sel-white {
  --h: #fff;
  --hb: #fff;
}

.sel-ink {
  --h: #fff;
  --hb: var(--ink);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  font-family: var(--body);
  font-weight: 650;
  font-size: 15px;
  line-height: 1;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    background-color 0.18s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0) scale(0.98);
}

.btn:focus-visible,
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--pink);
  outline-offset: 4px;
}

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

.btn-blue {
  background: var(--blue);
  color: #fff;
}

.btn-ink {
  background: var(--ink);
  color: #fff;
}

.btn small {
  font-weight: 500;
  opacity: 0.7;
}

/* ---------- Top bar ---------- */

.topbar {
  position: fixed;
  top: 16px;
  left: var(--gutter);
  right: var(--gutter);
  z-index: 60;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}

.topbar > * {
  pointer-events: auto;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 900;
  font-stretch: 125%;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: #fff;
  transition: color 0.25s ease;
}

.logo svg {
  width: 30px;
  height: 30px;
}

.logo svg {
  color: var(--yellow);
  transition: color 0.25s ease;
}

body:not([data-header="dark"]) .logo {
  color: var(--ink);
}

body:not([data-header="dark"]) .logo svg {
  color: var(--blue);
}

/* Over the yellow section the yellow button would vanish: switch it to ink */
body[data-header="yellow"] .topbar .btn-yellow {
  background: var(--ink);
  color: #fff;
}

.topbar .btn {
  padding: 11px 16px;
  font-size: 13px;
}

/* ---------- Section dots ---------- */

.dots {
  position: fixed;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 55;
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dots a {
  display: block;
  width: 6px;
  height: 6px;
  background: rgb(255 255 255 / 0.45);
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

body:not([data-header="dark"]) .dots a {
  background: rgb(17 17 17 / 0.22);
}

.dots a[aria-current="true"] {
  background: #fff;
  transform: scale(1.5);
}

body:not([data-header="dark"]) .dots a[aria-current="true"] {
  background: var(--blue);
}

/* ---------- Cursor tags (multiplayer-cursor labels) ---------- */

.cursor-tag {
  position: absolute;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.1;
  pointer-events: none;
  animation: drift 6s ease-in-out infinite;
}

.cursor-tag .icons {
  display: flex;
  align-items: flex-end;
  gap: 2px;
}

.cursor-tag .icons svg:first-child {
  width: 18px;
  height: 18px;
  transform: rotate(-12deg);
}

.cursor-tag .icons svg:last-child {
  width: 30px;
  height: 30px;
}

.cursor-tag em {
  font-style: normal;
  padding: 2px 5px;
  margin-left: 14px;
  white-space: nowrap;
}

.cursor-tag.pink em {
  color: var(--pink);
}

.cursor-tag.on-yellow em {
  background: var(--yellow);
  color: var(--ink);
}

.cursor-tag.on-mint em {
  background: var(--mint);
  color: var(--ink);
}

@keyframes drift {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(8px, -6px);
  }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  min-height: max(100svh, 640px);
  background: var(--blue);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}

.hero h1 {
  font-size: clamp(54px, 11.6vw, 210px);
  /* A blue stroke behind the letters keeps them readable where they cross Den */
  -webkit-text-stroke: 0.09em var(--blue);
  paint-order: stroke fill;
}

.hero .l1 {
  position: absolute;
  top: clamp(84px, 13vh, 150px);
  left: var(--gutter);
  z-index: 2;
}

.hero .l2 {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(96px, 14vh, 150px);
  text-align: right;
  z-index: 2;
}

.hero .arrow {
  color: var(--lav);
  width: clamp(36px, 5vw, 76px);
  height: clamp(41px, 5.75vw, 87px);
  display: inline-block;
  vertical-align: middle;
}

main {
  overflow-x: clip;
}

.hero .arrow-down {
  position: absolute;
  left: var(--gutter);
  top: calc(clamp(84px, 13vh, 150px) + clamp(54px, 11.6vw, 210px) * 0.98);
  margin-top: 12px;
}

.hero-mascot {
  position: absolute;
  left: 50%;
  bottom: 0;
  z-index: 1;
  height: min(78svh, 900px, 96vw);
  transform: translateX(-56%);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.hero-mascot img {
  height: 100%;
  width: auto;
  max-width: none;
  transform-origin: 50% 100%;
  transition: transform 0.25s cubic-bezier(0.3, 1.6, 0.5, 1);
}

.hero-mascot:hover img {
  transform: scaleY(1.03);
}

.hero-mascot.squish img {
  animation: squish 0.5s cubic-bezier(0.3, 1.6, 0.5, 1);
}

@keyframes squish {
  0% {
    transform: scale(1, 1);
  }
  35% {
    transform: scale(1.08, 0.9);
  }
  70% {
    transform: scale(0.97, 1.05);
  }
  100% {
    transform: scale(1, 1);
  }
}

.hero-bubble {
  position: absolute;
  z-index: 3;
  left: calc(50% + min(10vw, 120px));
  top: clamp(200px, 34vh, 330px);
  padding: 14px 20px;
  background: #fff;
  color: var(--ink);
  border-radius: 22px 22px 22px 4px;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(18px, 2vw, 26px);
  white-space: nowrap;
  box-shadow: 0 10px 30px rgb(0 0 40 / 0.18);
  transform-origin: 0 100%;
}

.hero-bubble.pop {
  animation: pop 0.35s cubic-bezier(0.3, 1.6, 0.5, 1);
}

@keyframes pop {
  from {
    transform: scale(0.6) rotate(-6deg);
    opacity: 0;
  }
}

.hero-bubble .lang {
  display: block;
  font-family: var(--body);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 4px;
}

.hero .cursor-tag {
  left: calc(50% - min(27vw, 380px));
  top: clamp(250px, 36vh, 400px);
  z-index: 3;
  color: #fff;
}

.hero .cursor-tag em {
  color: #fff;
}

.hero-sub {
  position: absolute;
  left: var(--gutter);
  bottom: 28px;
  z-index: 2;
  max-width: 330px;
  margin: 0;
  font-size: 15px;
  color: rgb(255 255 255 / 0.85);
}

.hero-sub strong {
  color: #fff;
}

/* ---------- Manifesto ---------- */

.manifesto {
  position: relative;
  padding: clamp(110px, 16vh, 180px) var(--gutter) 0;
}

.manifesto h2 {
  position: relative;
  font-size: clamp(30px, 9.6vw, 170px);
  text-align: right;
}

.manifesto h2 .paren {
  position: absolute;
  left: 0;
  bottom: 0.08em;
  font-size: 0.62em;
}

.manifesto-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--gutter);
  align-items: start;
  margin-top: clamp(40px, 7vh, 80px);
  position: relative;
}

.manifesto-body p {
  margin: 0;
  max-width: 380px;
  justify-self: end;
  text-align: right;
  font-size: clamp(17px, 1.5vw, 21px);
  color: var(--ink-soft);
}

.manifesto-shin {
  justify-self: start;
  width: min(30vw, 330px);
  margin-left: 6vw;
}

.manifesto .cursor-tag {
  left: 47%;
  top: 6px;
}

/* ---------- Words panel (LIS / ÉCRIS / PARLE) ---------- */

.words {
  position: relative;
  height: 280vh;
}

.words-sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.words-panel {
  --p: 0;
  position: relative;
  width: calc(42% + 58% * var(--p));
  height: calc(46% + 50% * var(--p));
  max-width: calc(100vw - 2 * var(--gutter));
  background: var(--blue);
  color: #fff;
  display: grid;
  place-items: center;
}

.words-panel .word {
  grid-area: 1 / 1;
  font-size: clamp(56px, 13vw, 240px);
  opacity: 0;
  transform: translateY(18%);
  transition:
    opacity 0.35s ease,
    transform 0.45s cubic-bezier(0.2, 1.2, 0.4, 1);
}

.words-panel .word.on {
  opacity: 1;
  transform: none;
}

.words-panel .hint {
  position: absolute;
  left: 22px;
  bottom: 18px;
  font-size: 13px;
  color: rgb(255 255 255 / 0.75);
}

.words-panel .count {
  position: absolute;
  right: 22px;
  bottom: 18px;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  color: rgb(255 255 255 / 0.75);
}

/* ---------- Features ---------- */

.features {
  position: relative;
  background: var(--blue);
  color: #fff;
  padding: clamp(90px, 14vh, 160px) var(--gutter) clamp(80px, 12vh, 140px);
}

.features-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr);
  gap: var(--gutter);
  position: relative;
}

.features-intro > p {
  margin: 0;
  font-size: 16px;
  color: rgb(255 255 255 / 0.8);
}

.features-intro h2 {
  font-size: clamp(26px, 3.6vw, 60px);
  line-height: 0.95;
}

.features-intro .cursor-tag {
  left: 4%;
  top: 64px;
}

.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
  margin-top: clamp(90px, 16vh, 170px);
}

.feature:nth-of-type(even) .feature-copy {
  order: 2;
}

.feature .num {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1.5px solid rgb(255 255 255 / 0.6);
  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 18px;
}

.feature h3 {
  font-size: clamp(40px, 6.4vw, 112px);
}

.feature p {
  margin: 22px 0 0;
  max-width: 470px;
  font-size: clamp(16px, 1.3vw, 19px);
  color: rgb(255 255 255 / 0.86);
}

.tag {
  display: inline-block;
  margin-left: 10px;
  padding: 6px 10px;
  font-family: var(--body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  vertical-align: top;
  background: var(--yellow);
  color: var(--ink);
}

.tag.mint {
  background: var(--mint);
}

.keys {
  display: inline-flex;
  gap: 5px;
  vertical-align: middle;
}

kbd {
  display: inline-block;
  min-width: 28px;
  padding: 5px 8px 6px;
  font-family: var(--body);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  color: var(--ink);
  background: #fff;
  border-radius: 7px;
  box-shadow: 0 3px 0 rgb(0 0 0 / 0.35);
}

.feature-stage {
  position: relative;
  background: var(--paper);
  color: var(--ink);
  min-height: 420px;
  padding: 26px;
  display: grid;
  align-content: end;
}

.feature-stage .art {
  position: absolute;
  width: min(48%, 270px);
  right: 14px;
  top: 14px;
}

.feature-stage .art.left {
  right: auto;
  left: 14px;
}

/* Fake app window used by the demos */
.win {
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: 14px;
  box-shadow:
    0 1px 0 rgb(0 0 0 / 0.04),
    0 18px 40px rgb(10 10 60 / 0.14);
  overflow: hidden;
  max-width: 440px;
}

.win-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  border-bottom: 1px solid #ececea;
  font-size: 12px;
  color: #8a8a85;
}

.win-bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e2e2de;
}

.win-bar span {
  margin-left: 8px;
}

.msg {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  padding: 12px 14px;
}

.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
}

.msg b {
  font-size: 13px;
}

.msg b small {
  font-weight: 500;
  color: #9a9a95;
  margin-left: 6px;
}

.msg p {
  margin: 2px 0 0;
  font-size: 15px;
  color: var(--ink);
  max-width: none;
}

.msg mark {
  background: #cfd5ff;
  color: inherit;
  padding: 1px 2px;
}

.popup {
  position: relative;
  z-index: 2;
  margin: -6px 0 0 54px;
  max-width: 330px;
  padding: 14px 16px 16px;
  background: var(--ink);
  color: #fff;
  border-radius: 14px;
  box-shadow: 0 18px 40px rgb(0 0 0 / 0.25);
}

.popup .meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--yellow);
}

.popup .meta svg {
  width: 20px;
  height: 20px;
}

.popup p {
  margin: 8px 0 0;
  font-size: 16px;
  color: #fff;
  min-height: 1.45em;
}

.caret::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 2px;
  vertical-align: -0.15em;
  background: currentColor;
  animation: blink 1s steps(1) infinite;
}

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

.composer {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 12px 12px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #f1f1ee;
  font-size: 15px;
  min-height: 48px;
}

.composer .text {
  flex: 1;
  min-width: 0;
}

.composer .text.jp {
  color: var(--blue);
  font-weight: 600;
}

.composer .keys {
  transition:
    transform 0.15s ease,
    opacity 0.2s ease;
  opacity: 0.35;
}

.composer .keys.hit {
  opacity: 1;
  transform: translateY(2px);
}

.composer .keys kbd {
  font-size: 11px;
  min-width: 0;
  padding: 4px 6px;
  box-shadow: 0 2px 0 rgb(0 0 0 / 0.3);
  border: 1px solid #ddd;
}

.wave {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 46px;
  padding: 0 14px;
}

.wave i {
  flex: 1;
  height: 30%;
  border-radius: 3px;
  background: var(--blue);
  animation: wave 1.1s ease-in-out infinite;
}

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

.wave i:nth-child(3n + 1) {
  animation-delay: -0.65s;
}

.wave i:nth-child(4n) {
  animation-delay: -0.9s;
  background: var(--yellow-deep);
}

@keyframes wave {
  0%,
  100% {
    height: 18%;
  }
  50% {
    height: 92%;
  }
}

.said {
  padding: 4px 14px 14px;
  font-size: 15px;
}

.said span {
  display: block;
  color: #9a9a95;
  font-size: 13px;
}

.said strong {
  display: block;
  margin-top: 6px;
  color: var(--blue);
}

.contacts {
  margin: 0;
  padding: 6px 0;
  list-style: none;
}

.contacts li {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  font-size: 14px;
}

.contacts li + li {
  border-top: 1px solid #f0f0ec;
}

.contacts .who small {
  display: block;
  color: #9a9a95;
  font-size: 12px;
}

.chip {
  padding: 4px 8px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 650;
  background: #eef0ff;
  color: var(--blue);
  white-space: nowrap;
}

/* ---------- Marquee ---------- */

.marquee {
  background: var(--yellow);
  color: var(--ink);
  padding: 20px 0;
  overflow: hidden;
  transform: rotate(-2deg);
  margin: -26px -10px 0;
  position: relative;
  z-index: 2;
  border-block: 2px solid var(--ink);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 32s linear infinite;
}

.marquee span {
  font-size: clamp(22px, 2.6vw, 38px);
  padding-right: 0.6em;
  white-space: nowrap;
}

.marquee span::after {
  content: " ✦";
  color: var(--blue);
}

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

/* ---------- Heart / mascots ---------- */

.heart {
  padding: clamp(120px, 18vh, 200px) var(--gutter) clamp(80px, 12vh, 140px);
}

.heart-head {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: var(--gutter);
  align-items: end;
}

.heart-head .heart-kanji {
  max-width: none;
  white-space: nowrap;
  font-size: clamp(56px, 11.5vw, 220px);
  line-height: 0.9;
  margin: 0;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.heart-head h2 {
  font-size: clamp(34px, 5vw, 86px);
}

.heart-head p {
  margin: 18px 0 0;
  max-width: 460px;
  font-size: clamp(16px, 1.3vw, 19px);
  color: var(--ink-soft);
}

.heart-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 40px);
  margin-top: clamp(50px, 8vh, 90px);
}

.heart-card {
  background: var(--card);
  padding: 18px;
  display: grid;
  gap: 14px;
}

.heart-card figcaption {
  font-size: 14px;
  color: var(--ink-soft);
}

.heart-card figcaption strong {
  color: var(--ink);
}

.meet {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.meet div {
  padding: 16px;
  border-radius: 16px;
}

.meet .shin {
  background: var(--blue);
  color: #fff;
}

.meet .den {
  background: var(--yellow);
}

.meet h3 {
  margin: 0;
  font-size: 30px;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.meet h3 .kanji {
  font-size: 26px;
}

.meet p {
  margin: 8px 0 0;
  font-size: 14px;
}

/* ---------- Privacy ---------- */

.privacy {
  background: var(--yellow);
  padding: clamp(90px, 14vh, 150px) var(--gutter);
}

.privacy h2 {
  font-size: clamp(42px, 8.4vw, 150px);
}

.privacy-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: clamp(40px, 7vh, 70px);
}

.privacy-cards article {
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  padding: 26px;
  min-height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.privacy-cards .ico {
  width: 46px;
  height: 46px;
  color: var(--yellow);
}

.privacy-cards h3 {
  margin: 30px 0 8px;
  font-size: 22px;
  font-weight: 750;
}

.privacy-cards p {
  margin: 0;
  color: rgb(255 255 255 / 0.75);
  font-size: 15px;
}

/* ---------- FAQ ---------- */

.faq {
  padding: clamp(110px, 16vh, 180px) var(--gutter) clamp(80px, 12vh, 140px);
}

.faq h2 {
  font-size: clamp(46px, 9.4vw, 170px);
}

.faq h2 .chev {
  color: var(--grey);
}

.bento {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: clamp(40px, 7vh, 70px);
  position: relative;
}

.bento > * {
  border-radius: var(--radius);
  padding: 22px 22px 26px;
  min-height: 200px;
}

.bento h3 {
  margin: 0 0 10px;
  font-size: clamp(19px, 1.6vw, 24px);
  font-weight: 700;
  line-height: 1.12;
}

.bento p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.45;
}

.bento .wide {
  grid-column: span 2;
}

.c-blue {
  background: var(--blue);
  color: #fff;
}

.c-yellow {
  background: var(--yellow);
}

.c-ink {
  background: var(--ink);
  color: #fff;
}

.c-mint {
  background: var(--mint);
}

.c-white {
  background: #fff;
}

.eyes-card {
  position: relative;
  display: grid;
  place-items: center;
}

.eyes-card::after {
  content: "";
  position: absolute;
  bottom: -14px;
  right: 34px;
  border: 16px solid transparent;
  border-top-color: inherit;
  border-top-color: var(--tail);
  border-bottom: 0;
}

.eyes-card.c-blue {
  --tail: var(--blue);
}

.eyes-card.c-yellow {
  --tail: var(--yellow);
}

.eyes {
  display: flex;
  gap: 8px;
}

.eye {
  width: clamp(54px, 5.6vw, 84px);
  aspect-ratio: 1.25;
  background: #fff;
  border-radius: 50%;
  position: relative;
  overflow: hidden;
}

.eye i {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 34%;
  aspect-ratio: 1;
  margin: -17% 0 0 -13.6%;
  border-radius: 50%;
  background: var(--ink);
  transform: translate(var(--ex, 0px), var(--ey, 0px));
  transition: transform 0.08s linear;
}

.eye.lid::before {
  content: "";
  position: absolute;
  inset: 0 0 50%;
  background: var(--lidc, var(--yellow));
  z-index: 1;
  border-bottom: 3px solid var(--ink);
}

.eye.lid i {
  top: 70%;
}

.faq .cursor-tag {
  left: 7%;
  top: 136px;
}

/* ---------- Final CTA sticker grid ---------- */

.cta {
  background: var(--blue);
  position: relative;
  overflow: hidden;
  --cell: rgb(255 255 255 / 0.28);
}

.cta-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-auto-rows: clamp(170px, 19vw, 260px);
  border-top: 1px solid var(--cell);
  border-left: 1px solid var(--cell);
}

.cell {
  position: relative;
  border-right: 1px solid var(--cell);
  border-bottom: 1px solid var(--cell);
  display: grid;
  place-items: center;
  padding: 14px;
}

.cell::before {
  content: "";
  position: absolute;
  left: -5px;
  top: -5px;
  width: 9px;
  height: 9px;
  background: #fff;
  z-index: 1;
}

.cell img {
  width: min(78%, 190px);
  filter: drop-shadow(0 6px 10px rgb(0 0 30 / 0.25));
  transition: transform 0.3s cubic-bezier(0.3, 1.6, 0.5, 1);
}

.cell:hover img,
.cell:hover .hanko,
.cell:hover .big-key {
  transform: rotate(-8deg) scale(1.08);
}

.cta-card {
  grid-column: 2 / span 3;
  background: var(--yellow);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 26px;
  gap: 18px;
}

.cta-card h2 {
  font-size: clamp(40px, 6.4vw, 112px);
}

.cta-card .row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.cta-card p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-soft);
}

.hanko {
  width: min(66%, 156px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: clamp(24px, 2.7vw, 40px);
  border: 6px solid #fff;
  box-shadow: 0 6px 18px rgb(0 0 0 / 0.2);
  transform: rotate(-10deg);
  transition: transform 0.3s cubic-bezier(0.3, 1.6, 0.5, 1);
}

.hanko span {
  writing-mode: vertical-rl;
  height: 2.1em;
  line-height: 1.05;
}

.text-sticker {
  display: inline-block;
  padding: 12px 18px 14px;
  border-radius: 999px;
  background: var(--bg, var(--pink));
  color: var(--fg, #fff);
  border: 6px solid #fff;
  box-shadow: 0 6px 18px rgb(0 0 0 / 0.2);
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(18px, 2vw, 28px);
  white-space: nowrap;
  transform: rotate(var(--r, 0deg));
  transition: transform 0.3s cubic-bezier(0.3, 1.6, 0.5, 1);
}

.cell:hover .text-sticker {
  transform: rotate(0deg) scale(1.08);
}

.big-key {
  display: inline-flex;
  gap: 6px;
  transition: transform 0.3s cubic-bezier(0.3, 1.6, 0.5, 1);
  transform: rotate(6deg);
}

.big-key kbd {
  font-size: clamp(16px, 1.8vw, 24px);
  padding: 10px 12px 12px;
  border-radius: 10px;
  box-shadow: 0 5px 0 var(--yellow-deep);
  border: 4px solid #fff;
  background: var(--yellow);
}

/* ---------- Footer ---------- */

.footer {
  padding: clamp(150px, 24vw, 330px) var(--gutter) 24px;
  position: relative;
}

.footer-peek {
  position: absolute;
  left: 50%;
  transform: translateX(-38%);
  width: min(62vw, 820px);
  bottom: calc(100% - clamp(150px, 24vw, 330px) - 4px);
  pointer-events: none;
}

.footer-card {
  position: relative;
  z-index: 1;
  background: var(--blue);
  color: #fff;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
}

.footer-card > div {
  padding: clamp(22px, 3vw, 40px);
}

.footer-card > div + div {
  border-left: 1px solid rgb(255 255 255 / 0.3);
}

.footer-card h2 {
  font-size: clamp(40px, 6.2vw, 110px);
}

.footer-card h2 .kanji {
  display: inline-block;
  font-size: 0.42em;
  vertical-align: 0.5em;
  padding: 0.12em 0.25em;
  border: 2px solid #fff;
  letter-spacing: 0;
}

.footer-card .lead {
  margin: 18px 0 30px;
  font-size: 14px;
  color: rgb(255 255 255 / 0.8);
}

.footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 20px;
  font-size: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-meta {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 40px;
  font-size: 13px;
  color: rgb(255 255 255 / 0.75);
}

.footer-meta a {
  color: #fff;
}

/* ---------- Reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.7s ease,
    transform 0.8s cubic-bezier(0.2, 0.9, 0.3, 1);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .manifesto-body,
  .features-intro,
  .feature,
  .heart-head,
  .heart-grid,
  .footer-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .feature:nth-of-type(even) .feature-copy {
    order: 0;
  }

  .manifesto-body p {
    justify-self: start;
    text-align: left;
  }

  .manifesto-shin {
    margin: 0 auto;
    width: min(70vw, 300px);
  }

  .manifesto .cursor-tag,
  .features-intro .cursor-tag,
  .faq .cursor-tag {
    display: none;
  }

  .footer-card > div + div {
    border-left: 0;
    border-top: 1px solid rgb(255 255 255 / 0.3);
  }

  .privacy-cards {
    grid-template-columns: minmax(0, 1fr);
  }

  .privacy-cards article {
    min-height: 0;
  }

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

  .cta-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 170px;
  }

  .cta-card {
    grid-column: 1 / -1;
    grid-row: 2;
    min-height: 360px;
  }
}

@media (max-width: 640px) {
  .hero h1 {
    position: relative;
    z-index: 2;
    padding: 96px var(--gutter) 0;
    font-size: 12.6vw;
  }

  .hero .l1,
  .hero .l2 {
    position: static;
    display: block;
    text-align: left;
  }

  .hero .l2 {
    margin-top: 0.12em;
  }

  .hero .l2 .arrow {
    width: 0.62em;
    height: 0.72em;
  }

  .hero .arrow-down {
    display: none;
  }

  .hero-mascot {
    width: min(78vw, 360px);
    transform: translateX(-50%);
    bottom: 0;
  }

  .hero-bubble {
    left: auto;
    right: var(--gutter);
    top: auto;
    bottom: min(64vw, 330px);
  }

  .hero .cursor-tag {
    display: none;
  }

  .hero-sub {
    display: none;
  }

  .manifesto h2 .paren {
    position: static;
    display: block;
    margin: 0 0 0.12em;
    text-align: right;
  }

  .feature-stage {
    min-height: 380px;
    padding: 16px;
  }

  .feature-stage .art {
    width: 46%;
  }

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

  .bento .wide {
    grid-column: auto;
  }

  .bento > * {
    min-height: 0;
  }

  .eyes-card {
    min-height: 150px;
  }

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

  .footer-peek {
    width: 92vw;
    transform: translateX(-50%);
  }

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

  .dots {
    display: none;
  }
}

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

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}
