/* Dize — landing page */

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 300;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--radius);
}

.skip:focus {
  top: 12px;
}

.progress {
  position: fixed;
  inset: 0 0 auto;
  height: 2px;
  z-index: 60;
}

.progress span {
  display: block;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
}

/* ---------- nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px clamp(16px, 4vw, 48px);
  transition: background 0.3s, box-shadow 0.3s, padding 0.3s;
}

.nav.is-scrolled {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 1px 0 var(--divider);
  padding-block: 10px;
}

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

.brand__mark {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 22px;
}

.brand__mark i {
  display: block;
  width: 5px;
  border-radius: 1px;
  background: var(--accent);
  transition: height 0.4s var(--ease);
}

.brand__mark i:nth-child(1) {
  height: 22px;
}

.brand__mark i:nth-child(2) {
  height: 16px;
  background: var(--gold);
  transform: rotate(-8deg) translateX(1px);
  transform-origin: bottom;
}

.brand__mark i:nth-child(3) {
  height: 19px;
  background: var(--ink);
}

.brand:hover .brand__mark i:nth-child(2) {
  transform: rotate(0);
}

.brand__word {
  font: italic 600 26px/1 var(--serif);
  letter-spacing: -0.03em;
}

.brand__beta {
  font: 500 10px/1 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 3px 7px;
}

.nav__links {
  display: flex;
  gap: 4px;
  margin-left: auto;
}

.nav__links a {
  padding: 8px 12px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 14px;
  color: var(--ink-2);
  transition: color 0.2s, background 0.2s;
}

.nav__links a:hover,
.nav__links a.is-current {
  color: var(--ink);
  background: var(--surface);
}

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

.lang {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 999px;
}

.lang button {
  border: 0;
  background: transparent;
  padding: 5px 9px;
  border-radius: 999px;
  font: 500 12px/1 var(--mono);
  color: var(--ink-3);
  cursor: pointer;
}

.lang button[aria-pressed='true'] {
  background: var(--ink);
  color: var(--bg);
}

@media (max-width: 960px) {
  .nav__links {
    display: none;
  }
  .nav__tools {
    margin-left: auto;
  }
}

@media (max-width: 520px) {
  .nav__cta {
    display: none;
  }
  .brand__beta {
    display: none;
  }
}

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

.hero {
  position: relative;
  min-height: min(calc(100svh - 70px), 920px);
  display: grid;
  align-items: center;
  padding: clamp(24px, 5vw, 64px) clamp(16px, 4vw, 48px) clamp(120px, 14vw, 200px);
  overflow: hidden;
  isolation: isolate;
}

.hero__shelf {
  position: absolute;
  inset: auto 0 0;
  height: 26%;
  z-index: -1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  opacity: 0.4;
  mask-image: linear-gradient(to top, #000 10%, transparent 95%);
  -webkit-mask-image: linear-gradient(to top, #000 10%, transparent 95%);
  pointer-events: none;
}

.spine {
  flex: 0 0 auto;
  border-radius: 2px 2px 0 0;
  background: var(--spine, var(--accent));
  box-shadow: inset -3px 0 0 rgba(0, 0, 0, 0.18), inset 2px 0 0 rgba(255, 255, 255, 0.08);
  transform-origin: bottom;
  transform: translateY(calc(var(--lift, 0) * -1px)) rotate(var(--tilt, 0deg));
  transition: transform 0.6s var(--ease);
  animation: spine-in 1.2s var(--ease) both;
  animation-delay: var(--d, 0s);
  position: relative;
}

.spine::after {
  content: '';
  position: absolute;
  left: 18%;
  right: 18%;
  top: 14%;
  height: 2px;
  background: rgba(255, 255, 255, 0.35);
  box-shadow: 0 6px 0 rgba(255, 255, 255, 0.2);
}

@keyframes spine-in {
  from {
    transform: translateY(110%);
  }
}

.hero__inner {
  width: min(1200px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: clamp(32px, 6vw, 80px);
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px 6px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 70%, transparent);
}

.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 0 var(--success);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 10px transparent;
  }
  100% {
    box-shadow: 0 0 0 0 transparent;
  }
}

.hero__title {
  margin-top: 22px;
  font-size: clamp(48px, 8.4vw, 112px);
  line-height: 0.95;
  font-weight: 500;
  letter-spacing: -0.045em;
}

.hero__title span,
.hero__title em {
  display: block;
}

.hero__accent {
  font-style: italic;
  color: var(--accent);
  background: linear-gradient(100deg, var(--accent) 20%, var(--gold) 60%, var(--accent) 90%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: sheen 8s ease-in-out infinite;
  padding-right: 0.1em;
}

@keyframes sheen {
  50% {
    background-position: 100% 0;
  }
}

.hero__lead {
  margin-top: 26px;
  max-width: 34em;
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--ink-2);
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero__verse {
  margin-top: 40px;
  min-height: 3.2em;
  max-width: 30em;
  font: italic 400 17px/1.6 var(--serif);
  color: var(--ink-3);
}

.hero__verse cite {
  display: block;
  margin-top: 2px;
  font: 500 11px/1.4 var(--mono);
  font-style: normal;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.caret {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  margin-left: 2px;
  vertical-align: -0.2em;
  background: var(--gold);
  animation: blink 1s steps(1) infinite;
}

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

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 24px;
  width: 26px;
  height: 42px;
  border: 1.5px solid var(--ink-3);
  border-radius: 14px;
  transform: translateX(-50%);
}

.hero__scroll span {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 3px;
  height: 8px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: var(--ink-2);
  animation: scroll 1.8s var(--ease) infinite;
}

@keyframes scroll {
  60% {
    transform: translateY(12px);
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

/* ---------- phone mockup ---------- */

.hero__device {
  position: relative;
  justify-self: center;
  perspective: 1400px;
}

.phone {
  position: relative;
  width: min(310px, 72vw);
  aspect-ratio: 9 / 19;
  border-radius: 46px;
  padding: 12px;
  background: linear-gradient(145deg, #2b2620, #0f0d0b);
  box-shadow:
    0 0 0 2px #3a332b,
    0 40px 80px -20px rgba(26, 22, 16, 0.45),
    0 18px 30px -10px rgba(26, 22, 16, 0.3);
  transform: rotateY(var(--ry, -14deg)) rotateX(var(--rx, 6deg));
  transform-style: preserve-3d;
  transition: transform 0.6s var(--ease);
  animation: float 7s ease-in-out infinite;
}

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

.phone__notch {
  position: absolute;
  top: 22px;
  left: 50%;
  width: 90px;
  height: 24px;
  margin-left: -45px;
  border-radius: 20px;
  background: #0f0d0b;
  z-index: 3;
}

.phone__screen {
  position: relative;
  height: 100%;
  border-radius: 36px;
  overflow: hidden;
  background: #faf7f2;
  color: #1a1610;
}

.phone__dots {
  position: absolute;
  bottom: 22px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
  z-index: 3;
}

.phone__dots i {
  width: 6px;
  height: 6px;
  border-radius: 3px;
  background: rgba(26, 22, 16, 0.2);
  transition: width 0.4s var(--ease), background 0.4s;
}

.phone__dots i.is-active {
  width: 18px;
  background: #2a4a3c;
}

.screen {
  position: absolute;
  inset: 0;
  padding: 58px 18px 40px;
  opacity: 0;
  transform: translateX(24px) scale(0.98);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.screen.is-active {
  opacity: 1;
  transform: none;
}

.screen.is-leaving {
  opacity: 0;
  transform: translateX(-24px) scale(0.98);
}

.screen__over {
  font: 500 9px/1 var(--mono);
  letter-spacing: 0.16em;
  color: #9e9289;
}

.screen__title {
  margin-top: 6px;
  font: 600 25px/1.1 var(--serif);
  letter-spacing: -0.02em;
}

.screen__title--sm {
  font-size: 17px;
  margin-bottom: 14px;
}

.screen__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 16px 0;
  padding: 12px 6px;
  border-radius: 8px;
  background: #f2ede4;
  text-align: center;
}

.screen__stats b {
  display: block;
  font: 600 21px/1 var(--serif);
}

.screen__stats span {
  font-size: 9px;
  color: #9e9289;
}

.screen__card {
  display: flex;
  gap: 12px;
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(26, 22, 16, 0.06);
}

.mini-cover {
  flex: 0 0 46px;
  height: 68px;
  border-radius: 2px 3px 3px 2px;
  background: var(--c);
  color: #faf7f2;
  font: 600 7px/1.1 var(--serif);
  padding: 6px 5px;
  box-shadow: inset 3px 0 0 rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.screen__card-body {
  flex: 1;
  min-width: 0;
}

.screen__book {
  font: 600 13px/1.2 var(--serif);
}

.screen__author {
  font-size: 10px;
  color: #655a50;
  margin-top: 2px;
}

.screen__meta {
  margin-top: 4px;
  font: 400 9px/1 var(--mono);
  color: #9e9289;
}

.bar {
  height: 4px;
  margin-top: 10px;
  border-radius: 2px;
  background: #e8e2d8;
  overflow: hidden;
}

.bar span {
  display: block;
  height: 100%;
  width: var(--p);
  background: #2a4a3c;
  border-radius: 2px;
}

.is-active .bar span {
  animation: grow 1.4s var(--ease) both 0.3s;
}

@keyframes grow {
  from {
    width: 0;
  }
}

.screen--scan {
  padding: 0;
  background: #1a1610;
}

.scan-view {
  position: absolute;
  inset: 0 0 38%;
  display: grid;
  place-items: center;
}

.scan-view__barcode {
  width: 58%;
  height: 26%;
  background: repeating-linear-gradient(
    90deg,
    #f0ebe3 0 2px,
    transparent 2px 4px,
    #f0ebe3 4px 7px,
    transparent 7px 9px,
    #f0ebe3 9px 10px,
    transparent 10px 13px
  );
  opacity: 0.85;
  border-radius: 2px;
}

.scan-view__laser {
  position: absolute;
  left: 18%;
  right: 18%;
  top: 30%;
  height: 2px;
  background: #e9c46a;
  box-shadow: 0 0 14px #e9c46a;
  animation: laser 1.6s ease-in-out infinite alternate;
}

@keyframes laser {
  to {
    top: 66%;
  }
}

.scan-view__corner {
  position: absolute;
  width: 28px;
  height: 28px;
  border-color: #faf7f2;
  border-style: solid;
  border-width: 0;
}

.scan-view__corner.tl {
  top: 24%;
  left: 14%;
  border-top-width: 3px;
  border-left-width: 3px;
}

.scan-view__corner.tr {
  top: 24%;
  right: 14%;
  border-top-width: 3px;
  border-right-width: 3px;
}

.scan-view__corner.bl {
  bottom: 24%;
  left: 14%;
  border-bottom-width: 3px;
  border-left-width: 3px;
}

.scan-view__corner.br {
  bottom: 24%;
  right: 14%;
  border-bottom-width: 3px;
  border-right-width: 3px;
}

.scan-sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 22px 20px 48px;
  border-radius: 22px 22px 0 0;
  background: #faf7f2;
  transform: translateY(100%);
}

.screen--scan.is-active .scan-sheet {
  animation: sheet 0.7s var(--ease) 1.4s both;
}

@keyframes sheet {
  to {
    transform: none;
  }
}

.scan-sheet .screen__book {
  margin-top: 8px;
  font-size: 16px;
}

.pill {
  display: inline-block;
  margin-top: 14px;
  padding: 7px 12px;
  border-radius: 999px;
  background: #2a4a3c;
  color: #faf7f2;
  font-size: 11px;
}

.post {
  display: grid;
  gap: 4px;
  margin-bottom: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fff;
  border-left: 3px solid var(--k);
  font-size: 11px;
  line-height: 1.4;
  box-shadow: 0 2px 10px rgba(26, 22, 16, 0.06);
  opacity: 0;
  transform: translateY(10px);
}

.post b {
  font: 500 8px/1 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--k);
}

.post--arg {
  --k: #1a1610;
}

.post--ev {
  --k: #2a4a3c;
  margin-left: 14px;
}

.post--counter {
  --k: #9b2e2e;
  margin-left: 28px;
}

.screen--symposium.is-active .post {
  animation: post-in 0.6s var(--ease) both;
}

.screen--symposium.is-active .post:nth-of-type(2) {
  animation-delay: 0.5s;
}

.screen--symposium.is-active .post:nth-of-type(3) {
  animation-delay: 1s;
}

@keyframes post-in {
  to {
    opacity: 1;
    transform: none;
  }
}

.float-card {
  position: absolute;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--elevated);
  box-shadow: var(--shadow-lg);
  font-size: 13px;
  animation: float 6s ease-in-out infinite;
  border: 1px solid var(--divider);
}

.float-card--streak {
  left: -18%;
  top: 22%;
  display: flex;
  align-items: center;
  gap: 10px;
  animation-delay: -2s;
}

.float-card__icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--gold) 18%, transparent);
  color: var(--gold);
}

.float-card--streak b {
  font: 600 18px/1 var(--serif);
}

.float-card--quote {
  right: -16%;
  bottom: 16%;
  max-width: 220px;
  animation-delay: -4s;
}

.float-card--quote p {
  font: italic 500 15px/1.35 var(--serif);
}

.float-card--quote span {
  display: block;
  margin-top: 8px;
  font: 500 9px/1 var(--mono);
  letter-spacing: 0.12em;
  color: var(--gold);
}

@media (max-width: 960px) {
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .hero__device {
    margin-top: 16px;
  }
  .float-card--streak {
    left: -6%;
  }
  .float-card--quote {
    right: -6%;
  }
}

@media (max-width: 520px) {
  .float-card {
    display: none;
  }
}

/* ---------- marquee ---------- */

.marquee {
  overflow: hidden;
  border-block: 1px solid var(--divider);
  background: var(--surface);
  padding: 18px 0;
}

.marquee__track {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: marquee 50s linear infinite;
  font: italic 500 22px/1 var(--serif);
  color: var(--ink-2);
  white-space: nowrap;
}

.marquee__track span::after {
  content: '✦';
  margin-left: 48px;
  font-style: normal;
  font-size: 14px;
  color: var(--gold);
  vertical-align: middle;
}

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

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

.section {
  position: relative;
  padding: clamp(72px, 10vw, 140px) clamp(16px, 4vw, 48px);
}

.section > * {
  width: min(1200px, 100%);
  margin-inline: auto;
}

.section--tinted {
  background: var(--surface);
}

.section--ink {
  --ink: #f0ebe3;
  --ink-2: #b9ab9b;
  --ink-3: #847769;
  --surface: #1e1b17;
  --elevated: #252220;
  --divider: #2e2b27;
  --border: #3a352f;
  background: #121009;
  color: var(--ink);
}

.section__head {
  margin-bottom: clamp(36px, 5vw, 64px);
}

.section__head > * {
  max-width: 760px;
}

.section__head h2,
.split__copy h2 {
  margin-top: 14px;
  font-size: clamp(34px, 5vw, 60px);
  font-weight: 500;
}

.section__lead {
  margin-top: 18px;
  font-size: 18px;
  color: var(--ink-2);
  max-width: 38em;
}

.fine {
  margin-top: 14px;
  font-size: 13px;
  color: var(--ink-3);
}

.link-btn {
  border: 0;
  background: none;
  padding: 4px 0;
  color: var(--ink-2);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  font-size: 14px;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

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

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}

.split--reverse .split__copy {
  order: 2;
}

@media (max-width: 900px) {
  .split {
    grid-template-columns: 1fr;
  }
  .split--reverse .split__copy {
    order: 0;
  }
}

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

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

.tile {
  position: relative;
  grid-column: span 4;
  min-height: 260px;
  padding: 26px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--divider);
  overflow: hidden;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.3s;
  display: flex;
  flex-direction: column;
}

.tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border);
}

.tile::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--gold) 12%, transparent), transparent 40%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.tile:hover::before {
  opacity: 1;
}

.tile--wide {
  grid-column: span 8;
}

.tile--tall {
  grid-row: span 2;
}

.tile--accent {
  background: var(--accent);
  color: var(--on-accent);
  border-color: transparent;
}

.tile--accent .tile__body {
  color: color-mix(in srgb, var(--on-accent) 80%, transparent);
}

.tile__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--bg);
  color: var(--accent);
  margin-bottom: auto;
}

.tile--accent .tile__icon {
  background: rgba(255, 255, 255, 0.12);
  color: var(--on-accent);
}

.tile__title {
  margin-top: 28px;
  font: 600 24px/1.15 var(--serif);
}

.tile__body {
  margin-top: 10px;
  color: var(--ink-2);
  font-size: 15px;
}

.tile__art {
  position: absolute;
  right: -10px;
  bottom: -10px;
  opacity: 0.9;
  pointer-events: none;
}

@media (max-width: 960px) {
  .tile,
  .tile--wide {
    grid-column: span 6;
  }
}

@media (max-width: 620px) {
  .tile,
  .tile--wide {
    grid-column: span 12;
  }
  .tile--tall {
    grid-row: auto;
  }
}

/* ---------- scanner ---------- */

.scan-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.isbn-form {
  display: flex;
  gap: 8px;
  flex: 1;
  min-width: 240px;
}

.scan-samples {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  color: var(--ink-3);
}

.scan-samples button {
  border: 1px dashed var(--border);
  background: transparent;
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 13px;
  cursor: pointer;
  color: var(--ink-2);
}

.scan-samples button:hover {
  border-style: solid;
  color: var(--ink);
}

.scan-stage {
  display: grid;
  gap: 16px;
}

.scan-camera {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #000;
}

.scan-camera video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scan-camera__frame {
  position: absolute;
  inset: 25% 12%;
  border: 2px solid rgba(250, 247, 242, 0.9);
  border-radius: 12px;
  box-shadow: 0 0 0 999px rgba(0, 0, 0, 0.35);
}

.scan-camera__frame span {
  position: absolute;
  left: 6%;
  right: 6%;
  top: 0;
  height: 2px;
  background: #e9c46a;
  box-shadow: 0 0 16px #e9c46a;
  animation: laser-frame 1.4s ease-in-out infinite alternate;
}

@keyframes laser-frame {
  to {
    top: 100%;
  }
}

.scan-camera__close {
  position: absolute;
  right: 12px;
  top: 12px;
  --btn-bg: rgba(0, 0, 0, 0.55);
  --btn-fg: #fff;
}

.scan-result {
  min-height: 210px;
  border-radius: var(--radius-lg);
  background: var(--elevated);
  border: 1px solid var(--divider);
  padding: 22px;
  display: grid;
  align-items: center;
  box-shadow: var(--shadow);
}

.scan-result__empty {
  display: grid;
  justify-items: center;
  gap: 14px;
  text-align: center;
  color: var(--ink-3);
}

.barcode-art {
  width: 140px;
  height: 56px;
  background: repeating-linear-gradient(90deg, var(--ink-3) 0 2px, transparent 2px 5px, var(--ink-3) 5px 6px, transparent 6px 9px, var(--ink-3) 9px 12px, transparent 12px 14px);
  opacity: 0.4;
}

.found {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 20px;
  align-items: start;
  animation: toast-in 0.5s var(--ease);
}

.found .cover {
  width: 96px;
  font-size: 13px;
}

.found__title {
  font: 600 22px/1.2 var(--serif);
}

.found__author {
  color: var(--ink-2);
  margin-top: 4px;
}

.found__meta {
  margin-top: 10px;
  font: 400 12px/1.6 var(--mono);
  color: var(--ink-3);
}

.found__actions {
  margin-top: 16px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.skeleton {
  border-radius: 6px;
  background: linear-gradient(90deg, var(--muted), var(--surface), var(--muted));
  background-size: 200% 100%;
  animation: shimmer 1.2s infinite;
}

@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}

.my-shelf {
  padding: 16px 18px 0;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--divider);
}

.my-shelf__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.my-shelf__row {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  min-height: 120px;
  padding-top: 12px;
  border-bottom: 10px solid color-mix(in srgb, var(--gold) 55%, var(--ink));
  overflow-x: auto;
}

.my-shelf__row .spine {
  width: 28px;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  transform-origin: center;
  flex-shrink: 0;
  color: #faf7f2;
  font: 600 11px/1 var(--serif);
  padding: 8px 0;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  animation: drop 0.6s var(--ease) both;
}

@keyframes drop {
  from {
    transform: rotate(180deg) translateY(60px);
    opacity: 0;
  }
}

.my-shelf__empty {
  align-self: center;
  margin: 0 auto;
  font-size: 13px;
  color: var(--ink-3);
}

/* ---------- quote card ---------- */

.card-form {
  display: grid;
  gap: 16px;
  margin-top: 30px;
}

.card-form__row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 90px;
  gap: 12px;
}

@media (max-width: 520px) {
  .card-form__row {
    grid-template-columns: 1fr 1fr;
  }
  .field--page {
    grid-column: span 2;
  }
}

.counter {
  justify-self: end;
  font-size: 12px;
  color: var(--ink-3);
}

.swatches {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.swatch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 6px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  font-size: 13px;
}

.swatch::before {
  content: '';
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--sw);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.swatch[aria-checked='true'] {
  border-color: var(--ink);
  background: var(--surface);
}

.swatch--parchment {
  --sw: #faf7f2;
}

.swatch--ink {
  --sw: #1a1610;
}

.swatch--forest {
  --sw: #2a4a3c;
}

.swatch--gold {
  --sw: #b5702a;
}

.card-form__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

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

.card-preview canvas {
  width: min(440px, 100%);
  height: auto;
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  transform: rotate(-2deg);
  transition: transform 0.6s var(--ease);
}

.card-preview:hover canvas {
  transform: rotate(0) scale(1.01);
}

/* ---------- symposium ---------- */

.sym {
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--divider);
  padding: clamp(18px, 3vw, 32px);
}

.sym__head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--divider);
}

.sym__book {
  font: 500 12px/1.4 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}

.sym__q {
  margin-top: 8px;
  font: 500 clamp(20px, 2.6vw, 28px)/1.2 var(--serif);
}

.sym__people {
  display: flex;
}

.sym__people span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-left: -8px;
  border-radius: 50%;
  border: 2px solid var(--surface);
  background: hsl(var(--h) 35% 38%);
  color: #fff;
  font-weight: 600;
  font-size: 13px;
}

.sym__thread {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: grid;
  gap: 12px;
}

.sym-post {
  --k: var(--ink);
  margin-left: calc(var(--depth, 0) * clamp(14px, 3vw, 36px));
  padding: 16px 18px;
  border-radius: 10px;
  background: var(--elevated);
  border-left: 3px solid var(--k);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.sym-post.is-in {
  opacity: 1;
  transform: none;
}

.sym-post__kind {
  font: 500 11px/1 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--k);
}

.sym-post__who {
  float: right;
  font-size: 12px;
  color: var(--ink-3);
}

.sym-post__text {
  margin-top: 8px;
}

.sym-post__page {
  margin-top: 6px;
  font: 400 12px/1 var(--mono);
  color: var(--ink-3);
}

.sym-post__react {
  display: flex;
  gap: 14px;
  margin-top: 12px;
}

.react {
  border: 0;
  background: none;
  padding: 4px 0;
  font-size: 13px;
  color: var(--ink-3);
  cursor: pointer;
  transition: color 0.2s, transform 0.2s;
}

.react:hover {
  color: var(--ink);
}

.react[aria-pressed='true'] {
  color: var(--k-react, var(--success));
  font-weight: 600;
}

.react--no[aria-pressed='true'] {
  --k-react: var(--crimson);
}

.react.bump {
  animation: bump 0.35s var(--ease);
}

@keyframes bump {
  50% {
    transform: scale(1.25);
  }
}

.sym__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--divider);
  font-size: 13px;
  color: var(--ink-2);
}

.sym__legend span::before {
  content: '';
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 8px;
  border-radius: 2px;
  background: var(--k);
}

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

.ticks {
  list-style: none;
  padding: 0;
  margin: 26px 0 0;
  display: grid;
  gap: 12px;
}

.ticks li {
  display: flex;
  gap: 12px;
  align-items: baseline;
}

.ticks li::before {
  content: '✓';
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--success) 18%, transparent);
  color: var(--success);
  font-size: 12px;
  font-weight: 700;
}

.stats-card {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--elevated);
  border: 1px solid var(--divider);
  box-shadow: var(--shadow-lg);
}

.stats-card__top {
  display: flex;
  gap: 24px;
  align-items: center;
}

.ring {
  position: relative;
  width: 120px;
  flex: 0 0 120px;
}

.ring svg {
  transform: rotate(-90deg);
}

.ring circle {
  fill: none;
  stroke-width: 10;
}

.ring__track {
  stroke: var(--muted);
}

.ring__value {
  stroke: var(--accent);
  stroke-linecap: round;
  stroke-dasharray: 327;
  stroke-dashoffset: 327;
  transition: stroke-dashoffset 1.8s var(--ease);
}

.is-in .ring__value {
  stroke-dashoffset: calc(327 * (1 - var(--p)));
}

.ring__label {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
}

.ring__label b {
  font: 600 32px/1 var(--serif);
}

.ring__label span {
  font: 400 12px/1.4 var(--mono);
  color: var(--ink-3);
}

.stats-card__big {
  margin-top: 6px;
  font: 600 38px/1 var(--serif);
}

.stats-card__big small {
  font: 400 15px var(--sans);
  color: var(--ink-3);
}

.months {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 6px;
  align-items: end;
  height: 120px;
  margin-top: 28px;
}

.months div {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
  height: 100%;
  min-height: 0;
}

.months i {
  display: block;
  width: 100%;
  height: calc(var(--h) * 0.8);
  min-height: 4px;
  border-radius: 3px 3px 0 0;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 1s var(--ease);
  transition-delay: var(--d);
}

.months i.zero {
  background: var(--muted);
}

.is-in .months i {
  transform: none;
}

.months span {
  font: 400 9px/1 var(--mono);
  color: var(--ink-3);
}

.streak {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--divider);
  font-size: 13px;
  color: var(--ink-2);
}

.streak__dots {
  display: flex;
  gap: 5px;
}

.streak__dots i {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: var(--muted);
}

.streak__dots i.on {
  background: var(--gold);
}

/* ---------- access ---------- */

.section--access {
  background: radial-gradient(1200px 500px at 50% 0%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%);
}

.access {
  position: relative;
  max-width: 980px;
  padding: clamp(28px, 5vw, 64px);
  border-radius: 24px;
  background: var(--elevated);
  border: 1px solid var(--divider);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  isolation: isolate;
}

.access__glow {
  position: absolute;
  inset: -40% -20% auto auto;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--gold) 28%, transparent), transparent 65%);
  z-index: -1;
  animation: float 9s ease-in-out infinite;
}

.access h2 {
  margin-top: 14px;
  font-size: clamp(32px, 4.6vw, 54px);
  font-weight: 500;
}

.notice {
  margin-top: 18px;
  padding: 12px 16px;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--gold) 14%, transparent);
  color: var(--ink);
  font-size: 14px;
}

.code-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.code-input {
  flex: 1;
  min-width: 260px;
  display: flex;
  align-items: center;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.code-input:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 20%, transparent);
}

.code-input.shake {
  animation: shake 0.45s;
  border-color: var(--crimson);
}

@keyframes shake {
  20%,
  60% {
    transform: translateX(-6px);
  }
  40%,
  80% {
    transform: translateX(6px);
  }
}

.code-input__prefix {
  padding-left: 16px;
  font-size: 20px;
  color: var(--ink-3);
}

.code-input input {
  flex: 1;
  min-width: 0;
  height: 56px;
  border: 0;
  background: transparent;
  font-size: 22px;
  letter-spacing: 0.12em;
  padding: 0 14px 0 4px;
  text-transform: uppercase;
}

.code-input input:focus {
  outline: none;
}

.code-form .btn {
  min-height: 59px;
  padding-inline: 28px;
  font-size: 16px;
}

.code-error {
  min-height: 1.6em;
  margin-top: 10px;
  color: var(--crimson);
  font-size: 14px;
}

.access__open {
  animation: toast-in 0.6s var(--ease);
}

.access__hello {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.access__hello h2 {
  margin-top: 4px;
  font-size: clamp(28px, 3.6vw, 42px);
}

.access__hello .link-btn {
  margin-left: auto;
}

.unlock-badge {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--accent);
  color: var(--on-accent);
  animation: unlock 0.8s var(--ease);
}

@keyframes unlock {
  0% {
    transform: scale(0.6) rotate(-12deg);
  }
  60% {
    transform: scale(1.1) rotate(4deg);
  }
}

.access__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 16px;
  margin-top: 30px;
}

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

.dl-card,
.web-card {
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--divider);
  background: var(--bg);
}

.dl-card__head {
  display: flex;
  gap: 14px;
  align-items: center;
}

.app-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(145deg, #2a4a3c, #1a1610);
  color: #e9c46a;
  font: italic 600 30px/1 var(--serif);
  box-shadow: var(--shadow);
}

.dl-card__name {
  font: 600 20px/1.2 var(--serif);
}

.dl-card__meta {
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 4px;
}

.dl-card__notes {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: var(--surface);
  font-size: 14px;
  white-space: pre-line;
  color: var(--ink-2);
}

.dl-card__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.qr {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-top: 18px;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--surface);
  animation: toast-in 0.4s var(--ease);
}

.qr__code {
  flex: 0 0 132px;
  padding: 8px;
  border-radius: 8px;
  background: #fff;
}

.qr__code svg,
.qr__code img {
  width: 100%;
  height: auto;
}

.install {
  margin-top: 18px;
  border-top: 1px solid var(--divider);
  padding-top: 14px;
}

.install summary {
  cursor: pointer;
  font-weight: 500;
}

.install ol {
  margin: 12px 0 0;
  padding-left: 20px;
  display: grid;
  gap: 8px;
  color: var(--ink-2);
  font-size: 14px;
}

.sha {
  word-break: break-all;
}

.web-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.web-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.web-card[aria-disabled='true'] {
  pointer-events: none;
  opacity: 0.45;
}

.web-card__screen {
  display: flex;
  gap: 6px;
  margin-bottom: 18px;
  padding: 12px;
  border-radius: 10px;
  background: var(--surface);
}

.web-card__screen span {
  height: 54px;
  flex: 1;
  border-radius: 6px;
  background: linear-gradient(160deg, var(--accent), color-mix(in srgb, var(--accent) 40%, var(--gold)));
  opacity: 0.85;
}

.web-card__screen span:nth-child(2) {
  flex: 1.6;
  background: var(--muted);
}

.web-card__title {
  font: 600 24px/1.2 var(--serif);
}

.web-card__go {
  position: absolute;
  right: 22px;
  bottom: 18px;
  font-size: 26px;
  transition: transform 0.3s var(--ease);
}

.web-card:hover .web-card__go {
  transform: translateX(6px);
}

/* ---------- timeline ---------- */

.timeline {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  border-top: 1px solid var(--divider);
}

@media (max-width: 1100px) {
  .timeline {
    grid-template-columns: repeat(3, 1fr);
    row-gap: 24px;
  }
}

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

.timeline li {
  position: relative;
  padding: 28px 22px 10px 0;
}

.timeline li::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 0;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--bg);
}

.timeline li.is-now::before {
  background: var(--gold);
  animation: pulse 2s infinite;
  box-shadow: 0 0 0 0 var(--gold);
}

.timeline__phase {
  font: 500 11px/1 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.timeline__title {
  margin-top: 10px;
  font: 600 20px/1.2 var(--serif);
}

.timeline__body {
  margin-top: 8px;
  font-size: 14px;
  color: var(--ink-2);
}

/* ---------- faq ---------- */

.faq {
  display: grid;
  gap: 10px;
}

.faq details {
  padding: 4px 22px;
  border-radius: var(--radius-lg);
  background: var(--bg);
  border: 1px solid var(--divider);
  transition: box-shadow 0.3s;
}

.faq details[open] {
  box-shadow: var(--shadow);
}

.faq summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 16px 0;
  cursor: pointer;
  font: 500 18px/1.3 var(--serif);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '+';
  font: 300 26px/1 var(--sans);
  color: var(--gold);
  transition: transform 0.3s var(--ease);
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details p {
  padding: 0 0 18px;
  color: var(--ink-2);
}

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

.footer {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-end;
  justify-content: space-between;
  padding: 48px clamp(16px, 4vw, 48px) 40px;
  border-top: 1px solid var(--divider);
}

.footer__brand .brand__word {
  font-size: 40px;
}

.footer__brand p {
  margin-top: 8px;
  max-width: 26em;
}

.footer__studio a {
  color: var(--ink);
}

/* Mini argument tree drawn inside the tall Symposium tile. */
.tile__tree {
  margin: 24px 0 8px;
  display: grid;
  gap: 8px;
}

.tile__tree span {
  display: block;
  height: 30px;
  border-radius: 6px;
  background: var(--bg);
  border-left: 3px solid var(--k);
  margin-left: calc(var(--d) * 18px);
  position: relative;
  overflow: hidden;
}

.tile__tree span::after {
  content: '';
  position: absolute;
  left: 10px;
  top: 12px;
  height: 6px;
  width: var(--w);
  border-radius: 3px;
  background: var(--muted);
}

.tile:hover .tile__tree span {
  animation: post-in 0.5s var(--ease) both;
}

.tile:hover .tile__tree span:nth-child(2) { animation-delay: 0.08s; }
.tile:hover .tile__tree span:nth-child(3) { animation-delay: 0.16s; }
.tile:hover .tile__tree span:nth-child(4) { animation-delay: 0.24s; }
.tile:hover .tile__tree span:nth-child(5) { animation-delay: 0.32s; }
