/* ────────────────────────────────────────────────
   how it works — horizontal carousel
   ──────────────────────────────────────────────── */

.how{
  padding: 110px 0 130px;
  position: relative;
}

.how header{
  margin-bottom: 48px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.how header h2{
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--h2);
  line-height: 1;
  letter-spacing: -0.045em;
  color: var(--ink);
  max-width: 720px;
}
.how header h2 em{
  font-style: normal;
  color: var(--ink-dim);
  font-weight: 400;
}

.how-header-row{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.how-header-row p{
  font-size: var(--body);
  line-height: 1.55;
  color: var(--ink-dim);
  max-width: 540px;
  letter-spacing: -0.005em;
  flex: 1;
  min-width: 280px;
}

/* arrows */
.how-arrows{
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.how-arrow{
  width: 46px; height: 46px;
  border: 1px solid var(--line-2);
  background: transparent;
  border-radius: 50%;
  color: var(--ink-dim);
  cursor: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .3s var(--ease-out);
}
.how-arrow svg{ width: 16px; height: 16px; transition: transform .3s; }
.how-arrow:hover:not(:disabled){
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.how-arrow:hover:not(:disabled).prev svg{ transform: translateX(-2px); }
.how-arrow:hover:not(:disabled).next svg{ transform: translateX(2px); }
.how-arrow:disabled{ opacity: 0.25; }

/* ────────── carousel ────────── */
.how-carousel-wrap{ position: relative; }
.how-carousel{
  display: flex;
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 32px;
  scroll-padding-right: 32px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0 32px 4px;
  margin: 0 -32px;
  cursor: grab;
}
.how-carousel:active{ cursor: grabbing; }
.how-carousel::-webkit-scrollbar{ display: none; }

.how-card{
  flex-shrink: 0;
  /* 3.5 cards visible — formula accounts for scroll-padding (64) + 3 gaps (48) */
  width: calc((min(100vw, 1320px) - 112px) / 3.5);
  height: 600px;
  scroll-snap-align: start;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: border-color .3s;
  user-select: none;
}
.how-card:hover{ border-color: var(--line-2); }

/* card text */
.how-card-text{ margin-bottom: 28px; }
.how-card-step{
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--ink-mute);
}
.how-card-step .num{ color: var(--ink); }
.how-card h3{
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--h3);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-top: 14px;
}
.how-card p{
  margin-top: 12px;
  font-size: var(--small);
  line-height: 1.55;
  color: var(--ink-dim);
  letter-spacing: -0.005em;
}

/* card mockup */
.how-card-mockup{
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin: 0 -32px -32px;
  padding: 20px;
  background: radial-gradient(ellipse 70% 60% at 50% 100%, rgba(255,255,255,0.04), transparent 70%);
}

/* progress bar */
.how-progress{
  margin-top: 28px;
  height: 1px;
  background: var(--line-2);
  border-radius: 1px;
  position: relative;
  overflow: hidden;
}
.how-progress-fill{
  position: absolute;
  top: 0; left: 0; bottom: 0;
  background: var(--ink);
  width: 20%;
  border-radius: 1px;
  transition: width .25s ease-out;
}

.how-drag-hint{
  margin-top: 12px;
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--ink-mute);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  opacity: 0.6;
}

/* ════════════ MOCKUPS ════════════ */

/* image mockup (Card 01 — uses prepared phone screenshot) */
.how-img-mockup{
  width: 220px;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.6);
  background: #08070a;
  display: block;
  line-height: 0;
}
.how-img-mockup img{
  width: 100%;
  height: auto;
  display: block;
}

/* full-bleed image mockup (Cards 02 & 04 — image already has its own internal spacing) */
.how-card-mockup--filled{
  padding: 0;
  align-items: flex-end;
  justify-content: stretch;
  background: none;
}
.how-card-mockup--filled > img{
  width: 100%;
  height: auto;
  display: block;
  margin-top: auto;
}

/* mini phone */
.how-mp{
  width: 200px;
  height: 360px;
  background: #08070a;
  border: 1px solid var(--line-2);
  border-radius: 28px;
  padding: 8px;
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
}
.how-mp::before{
  content: '';
  position: absolute;
  top: 9px; left: 50%;
  transform: translateX(-50%);
  width: 64px; height: 16px;
  background: #000;
  border-radius: 100px;
  z-index: 5;
}
.how-mp-screen{
  width: 100%; height: 100%;
  background: #0d0c0b;
  border-radius: 22px;
  padding: 36px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.how-mp-head{ display: flex; justify-content: space-between; }
.how-mp-head .x{ color: var(--ink-mute); font-size: 12px; }
.how-mp-head .lbl{
  font-family: 'Geist Mono', monospace;
  font-size: 7px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-mute);
}
.how-mp-title{
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1;
}
.how-mp-cover{
  width: 100%;
  aspect-ratio: 1.7;
  border-radius: 5px;
  overflow: hidden;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  position: relative;
}
.how-mp-cover img{
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.78) brightness(0.78);
}
.how-mp-cover::after{
  content: '+ cover';
  position: absolute;
  bottom: 4px; right: 5px;
  font-family: 'Geist Mono', monospace;
  font-size: 6px;
  color: white;
  background: rgba(0, 0, 0, 0.65);
  padding: 2px 5px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.how-mp-field{
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 8px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line);
  border-radius: 5px;
}
.how-mp-field label{
  color: var(--ink-mute);
  font-family: 'Geist Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 7px;
}
.how-mp-field span{
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 9.5px;
  letter-spacing: -0.01em;
}
.how-mp-button{
  margin-top: auto;
  background: var(--ink);
  color: var(--bg);
  border: none;
  border-radius: 100px;
  padding: 7px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 9px;
  cursor: none;
}

/* QR card */
.how-qr-card{
  width: 220px;
  background: linear-gradient(180deg, #f6f0e2 0%, #ece5d2 100%);
  border-radius: 12px;
  padding: 18px;
  transform: rotate(-3deg);
  box-shadow:
    0 30px 60px -15px rgba(0, 0, 0, 0.6),
    0 6px 20px -4px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  position: relative;
}
.how-qr-card::before{
  content: '';
  position: absolute;
  top: 6px; left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 4px;
  background: rgba(180, 160, 120, 0.4);
  border-radius: 2px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}
.how-qr-top{
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Geist Mono', monospace;
  font-size: 9px;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  margin-top: 8px;
  margin-bottom: 12px;
}
.how-qr-top .infinity-mini{ width: 16px; height: 8px; }
.how-qr-code{
  width: 100%;
  aspect-ratio: 1;
  background: white;
  border-radius: 4px;
  padding: 8px;
}
.how-qr-bottom{ margin-top: 10px; text-align: center; }
.how-qr-event{
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  color: #1a1817;
  letter-spacing: -0.025em;
  line-height: 1;
}
.how-qr-cta{
  font-family: 'Geist Mono', monospace;
  font-size: 7.5px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: #6a655c;
  margin-top: 6px;
}

/* live grid (compact) */
.how-live-card{
  width: 100%;
  background: var(--bg-3);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.how-live-head{
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.how-live-head-l{
  display: flex;
  align-items: center;
  gap: 8px;
}
.how-live-avatar{
  width: 24px; height: 24px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-3);
  border: 1px solid var(--line-2);
}
.how-live-avatar img{ width: 100%; height: 100%; object-fit: cover; }
.how-live-title{
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12px;
  color: var(--ink);
  letter-spacing: -0.025em;
  line-height: 1;
}
.how-live-sub{
  font-family: 'Geist Mono', monospace;
  font-size: 7px;
  color: var(--ink-mute);
  margin-top: 3px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}
.how-live-pill{
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--rec);
  border: 1px solid rgba(255, 92, 0, 0.35);
  background: rgba(255, 92, 0, 0.08);
  padding: 4px 8px;
  border-radius: 100px;
  font-family: 'Geist Mono', monospace;
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}
.how-live-pill::before{
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--rec);
  box-shadow: 0 0 6px var(--rec);
  animation: pulse 1.6s ease-in-out infinite;
}
.how-live-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3px;
}
.how-live-tile{
  aspect-ratio: 1;
  border-radius: 3px;
  overflow: hidden;
  background: var(--bg-3);
  position: relative;
}
.how-live-tile img{
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.85) brightness(0.92);
}
.how-live-tile.fresh::after{
  content: '';
  position: absolute;
  inset: 0;
  border: 1.5px solid var(--rec);
  border-radius: 3px;
  animation: ringFade 1.6s ease-out forwards;
}
.how-live-foot{
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Geist Mono', monospace;
  font-size: 8px;
  color: var(--ink-mute);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.how-live-foot strong{ color: var(--ink); font-weight: 500; }

/* timeline player */
.how-player-card{
  width: 100%;
  background: var(--bg-3);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.how-player-frame{
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 16/9;
  position: relative;
  background: var(--bg-3);
}
.how-player-frame img{
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.92) brightness(0.85);
}
.how-player-overlay{
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse at center, transparent 30%, rgba(0,0,0,0.5)),
    linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.6));
}
.how-play-btn{
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(245, 244, 242, 0.96);
  border: none;
  color: var(--bg);
  cursor: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}
.how-play-btn svg{ width: 10px; height: 10px; margin-left: 2px; }
.how-player-meta{
  position: absolute;
  bottom: 8px; left: 10px;
  display: flex;
  gap: 8px;
  align-items: baseline;
}
.how-pm-time{
  font-family: 'Geist Mono', monospace;
  font-size: 8px;
  color: white;
  background: rgba(0, 0, 0, 0.55);
  padding: 2px 6px;
  border-radius: 3px;
  backdrop-filter: blur(4px);
}
.how-pm-label{
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 10px;
  color: white;
  letter-spacing: -0.015em;
}
.how-tl-track{
  height: 2px;
  background: var(--line-2);
  border-radius: 2px;
  position: relative;
  margin-bottom: 14px;
}
.how-tl-progress{
  height: 100%;
  background: var(--ink);
  border-radius: 2px;
  position: absolute;
  left: 0;
  width: 48%;
}
.how-tl-knob{
  width: 9px; height: 9px;
  background: var(--ink);
  border-radius: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  left: 48%;
  box-shadow: 0 0 0 3px rgba(245, 244, 242, 0.12);
}
.how-tc-row{ position: relative; height: 16px; }
.how-tc{
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}
.how-tc-tick{
  width: 1px; height: 5px;
  background: var(--line-2);
}
.how-tc-label{
  font-family: 'Geist Mono', monospace;
  font-size: 7px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-mute);
  white-space: nowrap;
}
.how-tc.active .how-tc-tick{ background: var(--ink); height: 7px; }
.how-tc.active .how-tc-label{ color: var(--ink); }

/* archive list (card 5) */
.how-archive-list{
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.how-arc-row{
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 11px;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 9px;
  transition: border-color .3s, transform .3s;
}
.how-arc-row:hover{ border-color: var(--line-2); }
.how-arc-thumb{
  width: 36px; height: 36px;
  border-radius: 5px;
  overflow: hidden;
  background: var(--bg-3);
  flex-shrink: 0;
}
.how-arc-thumb img{
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.85) brightness(0.92);
}
.how-arc-meta{ flex: 1; min-width: 0; }
.how-arc-name{
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 12px;
  color: var(--ink);
  letter-spacing: -0.015em;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.how-arc-date{
  font-family: 'Geist Mono', monospace;
  font-size: 8px;
  color: var(--ink-mute);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-top: 4px;
}
.how-arc-count{
  font-family: 'Geist Mono', monospace;
  font-size: 8.5px;
  color: var(--ink-mute);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  flex-shrink: 0;
}
.how-arc-add{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
  padding: 12px;
  background: var(--ink);
  color: var(--bg);
  border: none;
  border-radius: 100px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: -0.01em;
  cursor: none;
  transition: transform .3s;
}
.how-arc-add:hover{ transform: translateY(-1px); }
.how-arc-add .plus{ font-size: 14px; line-height: 1; }

/* responsive */
@media (max-width: 1100px){
  .how-card{ width: calc((100vw - 96px) / 2.5); }
}

@media (max-width: 820px){
  .how{ padding: 80px 0 100px; }
  .how-arrows{ display: none; }
  .how-carousel{
    padding: 0 20px 4px;
    margin: 0 -20px;
    scroll-padding-left: 20px;
    scroll-padding-right: 20px;
  }
  .how-card{
    width: calc(100vw - 100px);
    max-width: 380px;
    height: 560px;
    padding: 24px;
  }
  .how-card h3{ font-size: 24px; }
  .how-card-mockup{ margin: 0 -24px -24px; padding: 16px; }
  .how-mp{ width: 180px; height: 320px; }
  .how-qr-card{ width: 200px; padding: 16px; }
}
