/* ============================================================
   Cipherverse — sections.css · homepage sections
   hero · ticker · selected work rows · index · services · why · FAQ
   ============================================================ */

/* ── Hero ──────────────────────────────────────────────── */
.hero { padding-top: calc(var(--bar-h) + var(--s-6)); padding-bottom: var(--s-6); }
.hero-label { display: inline-flex; align-items: center; gap: 0.625rem; margin-bottom: var(--s-4); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(var(--lime-rgb), 0.15); }
.hero-title {
  font-family: var(--display); font-weight: 600; font-size: var(--t-hero);
  line-height: 0.92; letter-spacing: -0.045em;
}
/* Each line is a mask; the inner span rises into it on load (effects.css). */
.hero-line { display: block; overflow: hidden; padding-bottom: 0.12em; margin-bottom: -0.12em; }
.hero-line > span { display: inline-block; }
/* The small live screen set inside the second line. */
.hero-pill {
  position: relative; display: inline-block; width: 2.3em; height: 0.74em; margin-left: 0.1em;
  border-radius: var(--r-pill); overflow: hidden; vertical-align: 0;
  background: var(--surface-2); outline: 1px solid var(--line-2); outline-offset: -1px;
}
.hero-pill img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top;
  opacity: 0; transform: scale(1.06); transition: opacity 0.9s ease, transform 1.6s var(--ease);
}
.hero-pill img.is-on { opacity: 1; transform: none; }
.hero-foot {
  display: grid; grid-template-columns: minmax(0, 34rem) auto; align-items: end; justify-content: space-between;
  gap: var(--s-3); margin-top: var(--s-5); padding-top: var(--s-3); border-top: 1px solid var(--line);
}
.hero-sub { font-size: var(--t-md); line-height: 1.5; color: var(--grey); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ── Ticker ────────────────────────────────────────────── */
.ticker { border-block: 1px solid var(--line); overflow: hidden; padding-block: 1.125rem; }
.ticker-track { display: flex; width: max-content; animation: ticker 60s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-list { display: flex; flex: none; }
.ticker-list li {
  display: inline-flex; align-items: center; gap: 2.25rem; padding-right: 2.25rem;
  font-family: var(--display); font-weight: 500; font-size: clamp(1.25rem, 1rem + 1vw, 2rem); letter-spacing: -0.01em; white-space: nowrap;
}
.ticker-list li::after { content: ''; width: 10px; height: 10px; border-radius: 50%; border: 1px solid var(--lime); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ── Selected work: one full frame, then a pair ────────── */
.frames { display: grid; gap: var(--s-4) var(--s-3); margin-bottom: var(--s-5); }
.frames--two { grid-template-columns: 1fr 1fr; }
.frames--two .frame:last-child { margin-top: var(--s-6); }   /* staggered pair */
.frame--full .frame-screen { aspect-ratio: 16 / 8.4; }
.frame--full .frame-name { font-size: var(--t-h3); }

/* ── Index: every project as a numbered list ───────────── */
.index { border-top: 1px solid var(--line); }
.index-link {
  display: grid; grid-template-columns: 4rem minmax(0, 2.2fr) 1fr 1fr 4rem 2rem; align-items: center; gap: var(--s-2);
  min-height: 76px; padding-block: 0.75rem; border-bottom: 1px solid var(--line);
  transition: color var(--fast) ease, padding var(--slow) var(--ease);
}
.index-n, .index-year { color: var(--grey); }
.index-thumb { display: none; }
.index-name { font-family: var(--display); font-weight: 500; font-size: clamp(1.25rem, 0.9rem + 1.2vw, 2.125rem); letter-spacing: -0.015em; line-height: 1.1; }
.index-sector, .index-place { color: var(--grey); font-size: var(--t-sm); }
.index-go { justify-self: end; color: var(--grey); transition: transform var(--fast) var(--ease), color var(--fast) ease; }
.index-link:hover { padding-left: 1rem; }
.index-link:hover .index-name { color: var(--lime); }
.index-link:hover .index-go { color: var(--lime); transform: translate(3px, -3px); }
.index:hover .index-link:not(:hover) { color: rgba(245, 247, 250, 0.45); }

/* The cursor preview for index rows (effects.js moves it). */
.cursor-peek {
  position: fixed; left: 0; top: 0; z-index: 150; width: 320px; aspect-ratio: 16 / 10;
  border-radius: var(--r-md); overflow: hidden; pointer-events: none;
  border: 1px solid var(--line-2); background: var(--surface-2);
  opacity: 0; transform: translate3d(-50%, -50%, 0) scale(0.85);
  transition: opacity 0.25s ease, transform 0.35s var(--ease);
}
.cursor-peek.is-on { opacity: 1; transform: translate3d(-50%, -50%, 0) scale(1); }
.cursor-peek img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* ── Services 01–04 ────────────────────────────────────── */
.services { border-top: 1px solid var(--line); }
.service { border-bottom: 1px solid var(--line); }
.service-link {
  display: grid; grid-template-columns: 4rem minmax(0, 1.3fr) minmax(0, 1fr) 3rem; align-items: center; gap: var(--s-3);
  padding-block: var(--s-4);
}
.service-n { color: var(--grey); align-self: start; padding-top: 0.9em; }
.service-title {
  font-family: var(--display); font-weight: 600; font-size: clamp(2.25rem, 1rem + 4.2vw, 5.5rem);
  line-height: 0.95; letter-spacing: -0.035em; transition: color var(--fast) ease, transform var(--slow) var(--ease);
}
.service--lead .service-title { font-size: clamp(2.75rem, 1rem + 6vw, 7.5rem); }
.service-note { color: var(--grey); max-width: 38ch; }
.service-go {
  justify-self: end; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid var(--line-2); transition: background-color var(--fast) ease, color var(--fast) ease, border-color var(--fast) ease;
}
.service-link:hover .service-title { color: var(--lime); transform: translateX(0.5rem); }
.service-link:hover .service-go { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.service-incl { display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0 0 var(--s-4) calc(4rem + var(--s-3)); }
.service-incl li {
  padding: 0.5rem 0.875rem; border: 1px solid var(--line); border-radius: var(--r-pill);
  font-size: var(--t-sm); color: var(--grey);
}

/* ── Process band (shared .steps) ──────────────────────── */
.bone .sec-head--row { margin-bottom: var(--s-5); }

/* ── Why + FAQ: heading left, content right ────────────── */
.why, .faq-wrap { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); gap: var(--s-4); align-items: start; }
.why .sec-head, .faq-wrap .sec-head { position: sticky; top: calc(var(--bar-h) + var(--s-3)); margin-bottom: 0; }
