/* MEMEKIT home */
.hero { display: flex; flex-direction: column; align-items: center; text-align: center; padding: clamp(72px, 9vw, 150px) var(--side) clamp(80px, 8vw, 128px); }
.hero .badge { margin-bottom: 26px; }
.hero .display { max-width: 14ch; }
.hero .lede { max-width: 38em; margin: 26px auto 0; }
.cta { display: flex; gap: 12px; margin-top: 36px; flex-wrap: wrap; justify-content: center; }

/* black reel panel: drifting columns of drawn backgrounds */
.reel { position: relative; margin: 0 8px; height: clamp(520px, 62vw, 960px); background: var(--night); border-radius: var(--r-panel); overflow: hidden; }
.reel-cols { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding: 0 clamp(12px, 12vw, 260px); }
.reel-col:nth-child(n+5) { display: none; }
@media (min-width: 1800px) { .reel-cols { grid-template-columns: repeat(6, minmax(0, 1fr)); padding: 0 clamp(12px, 6vw, 200px); } .reel-col:nth-child(n+5) { display: flex; } }
.reel-line .wd { white-space: nowrap; display: inline-block; }
.reel-col { display: flex; flex-direction: column; gap: 12px; will-change: transform; }
.tile { position: relative; border-radius: var(--r-card); overflow: hidden; background: #111; aspect-ratio: var(--ar, 4 / 5); cursor: pointer; }
.tile canvas { width: 100%; height: 100%; }
.tile-chip { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #fff; font-size: 14px; transform: translateY(16px); opacity: 0; transition: transform .45s var(--ease), opacity .35s; }
.tile-chip span { background: rgba(11,11,12,.72); backdrop-filter: blur(8px); padding: 6px 12px; border-radius: 999px; }
.tile:hover .tile-chip, .tile:focus-visible .tile-chip { transform: none; opacity: 1; }
.reel-line { position: absolute; left: 0; right: 0; bottom: clamp(28px, 6vw, 90px); margin: 0; text-align: center; font-size: clamp(36px, 5.4vw, 104px); font-weight: 500; letter-spacing: -.055em; line-height: 1; color: #fff; pointer-events: none; padding: 0 var(--side); text-shadow: 0 2px 30px rgba(0,0,0,.35); }
.reel-line .ch { opacity: .28; transition: opacity .25s; }
.reel-line .ch.on { opacity: 1; }
.reel::after { content: ""; position: absolute; inset: auto 0 0 0; height: 45%; background: linear-gradient(to top, rgba(7,7,7,.75), transparent); pointer-events: none; }
.reel-line { z-index: 2; }

/* how it works */
.how { padding: clamp(110px, 12vw, 200px) var(--side) 40px; }
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 64px; }
.how-card .h3 { margin-top: 28px; }
.how-card p { margin: 12px 0 0; max-width: 28em; }
.how-stage { background: var(--soft); border-radius: var(--r-card); aspect-ratio: 443 / 340; display: grid; place-items: center; padding: 24px; overflow: hidden; }
.mini-cap { width: min(100%, 340px); background: #fff; border-radius: 14px; padding: 10px; box-shadow: 0 1px 0 var(--line), 0 18px 40px -18px rgba(0,0,0,.25); }
.mini-cap-img canvas { width: 100%; height: auto; border-radius: 8px; }
.mini-cap-row { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.chip { font-size: 13px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); background: #fff; }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.mini-sizes { list-style: none; margin: 0; padding: 8px 18px; width: min(100%, 360px); background: #fff; border-radius: 14px; box-shadow: 0 1px 0 var(--line), 0 18px 40px -18px rgba(0,0,0,.25); }
.mini-sizes li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--soft); font-size: 15px; }
.mini-sizes li:last-child { border: 0; }
.mini-sizes b { font-weight: 500; font-variant-numeric: tabular-nums; }
.mini-ai { width: min(100%, 360px); }
.mini-ai-in { background: #fff; border-radius: 16px; padding: 18px 18px 64px; font-size: 15px; display: flex; gap: 10px; box-shadow: 0 1px 0 var(--line), 0 18px 40px -18px rgba(0,0,0,.25); position: relative; }
.mini-ai-in::after { content: "↑"; position: absolute; right: 14px; bottom: 14px; width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; }
.mini-ai-in .plus { font-size: 18px; line-height: 1.2; }
#typed::after { content: ""; display: inline-block; width: 1px; height: 1.1em; background: var(--ink); vertical-align: -3px; margin-left: 2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.mini-ai-note { font-size: 13px; color: var(--grey); text-align: center; margin: 14px 0 0; }

/* hub */
.hub { padding: clamp(120px, 12vw, 200px) var(--side) 80px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.hub .badge { margin-bottom: 26px; }
.hub .h2 { max-width: 18ch; }
.scrub .w { color: #b9b9b4; transition: color .3s; }
.scrub .w.on { color: var(--ink); }
.scrub.dark .w { color: #5c5c58; }
.scrub.dark .w.on { color: #fff; }
.hub-lede { max-width: 34em; margin: 26px auto 0; }
.hub-map { position: relative; width: min(100%, 1000px); height: 300px; margin-top: 70px; }
.hub-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.hl { fill: none; stroke: #d4d4cf; stroke-width: 1.2; vector-effect: non-scaling-stroke; stroke-dasharray: 900; stroke-dashoffset: 900; transition: stroke-dashoffset 1.6s var(--ease); }
.hub-map.is-in .hl { stroke-dashoffset: 0; }
.hub-in { list-style: none; margin: 0; padding: 0; position: absolute; left: 0; top: 0; bottom: 0; width: 15%; display: flex; flex-direction: column; justify-content: space-between; }
.hub-in li { display: flex; align-items: center; gap: 10px; font-size: 15px; white-space: nowrap; transform: translateX(-30%); height: 56px; }
.hub-dot { width: 56px; height: 56px; flex: none; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); }
.hub-core { position: absolute; left: 50%; top: 50%; width: 300px; height: 300px; transform: translate(-50%, -50%); border-radius: 50%; background: var(--soft); display: grid; place-items: center; }
.hub-ring { width: 196px; height: 196px; border-radius: 50%; background: #fff; display: grid; place-items: center; }
.hub-ring img { width: 172px; height: 172px; border-radius: 50%; object-fit: cover; }
.hub-runner { position: absolute; top: 50%; left: 57%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 6px rgba(11,11,12,.12); offset-path: none; animation: run 2.6s var(--ease) infinite; }
@keyframes run { 0% { left: 57%; opacity: 0; } 15% { opacity: 1; } 80% { opacity: 1; } 100% { left: 84%; opacity: 0; } }
.hub-out { position: absolute; right: 0; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.hub-out span { background: var(--ink); color: #fff; padding: 9px 16px; border-radius: 999px; font-size: 15px; white-space: nowrap; }

/* kept on this device */
.mine { background: var(--night); color: #f2f2ee; padding: clamp(90px, 9vw, 150px) var(--side) clamp(90px, 9vw, 150px); margin-top: 120px; }
.mine-head { display: grid; grid-template-columns: 1fr minmax(0, 400px); gap: 40px; align-items: start; }
.mine-head .h2 { max-width: 9ch; }
.mine-side p { margin: 0 0 22px; color: #c9c9c4; font-size: 18px; }
.pill.ghost-dark { background: transparent; color: #fff; border-color: #333; }
.pill.ghost-dark:hover { background: #1a1a1a; }
.mine-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 64px; }
.mine-card { position: relative; border-radius: var(--r-card); overflow: hidden; background: #151515; aspect-ratio: 1; }
.mine-card img { width: 100%; height: 100%; object-fit: contain; background: #151515; }
.mine-card .tile-chip { opacity: 1; transform: none; }
.mine-empty { grid-column: 1 / -1; border: 1px dashed #2c2c2b; border-radius: var(--r-card); padding: 56px 24px; text-align: center; color: #b8b8b3; }
.mine-empty strong { display: block; color: #fff; font-weight: 500; font-size: 22px; letter-spacing: -.02em; margin-bottom: 6px; }

/* why */
.why { padding: clamp(110px, 11vw, 180px) 0 0; }
.why .h2 { padding: 0 var(--side); }
.why-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 56px; border-top: 1px dashed var(--line); }
.why-col { padding: 48px var(--side) 120px; border-right: 1px dashed var(--line); }
.why-col:last-child { border-right: 0; }
.why-col p { max-width: 24em; margin: 12px 0 0; }
.why-fig { display: block; font-size: clamp(54px, 5.6vw, 108px); font-weight: 500; letter-spacing: -.055em; line-height: 1; margin-bottom: 72px; padding-bottom: 18px; border-bottom: 6px solid var(--violet); width: max-content; max-width: 100%; white-space: nowrap; }
.why-fig.c2 { border-color: var(--lime); }
.why-fig.c3 { border-color: var(--yellow); }

/* closing */
.close { position: relative; background: var(--night); color: #fff; overflow: hidden; padding: clamp(120px, 12vw, 190px) var(--side); text-align: center; }
.close-bg { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .5; }
.close-in { position: relative; display: flex; flex-direction: column; align-items: center; gap: 34px; }
.close-mark { width: 120px; height: 120px; border-radius: 28px; box-shadow: 0 0 80px rgba(255,210,63,.28); animation: glow 4s ease-in-out infinite; }
@keyframes glow { 50% { box-shadow: 0 0 120px rgba(255,210,63,.45); } }
.close .h2 { max-width: 20ch; }

@media (max-width: 1000px) {
  .how-grid, .mine-grid { grid-template-columns: 1fr 1fr; }
  .how-grid > :last-child { grid-column: 1 / -1; }
  .why-grid { grid-template-columns: 1fr; }
  .why-col { border-right: 0; border-bottom: 1px dashed var(--line); padding-bottom: 56px; }
  .why-fig { margin-bottom: 32px; }
  .mine-head { grid-template-columns: 1fr; }
  .reel-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 0 12px; }
  .reel-col:nth-child(4) { display: none; }
}
@media (max-width: 700px) {
  .how-grid, .mine-grid { grid-template-columns: 1fr; }
  .hub-map { height: auto; display: flex; flex-direction: column; align-items: center; gap: 24px; margin-top: 48px; }
  .hub-lines, .hub-runner { display: none; }
  .hub-in { position: static; width: auto; flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 12px; }
  .hub-in li { transform: none; height: auto; }
  .hub-dot { width: 28px; height: 28px; }
  .hub-core { position: relative; left: auto; top: auto; transform: none; width: 220px; height: 220px; }
  .hub-ring { width: 150px; height: 150px; }
  .hub-ring img { width: 130px; height: 130px; }
  .hub-out { position: static; transform: none; flex-direction: row; }
  .reel { height: 560px; }
  .reel-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reel-col:nth-child(3) { display: none; }
}

@media (prefers-reduced-motion: reduce) { .tile-chip, .rise, .mask > * { transition: none !important; } * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; } }
