/* ============================================================
   Cleveroption — Home v2 (fluid / Apple-style study)
   Reuses site.css tokens. Motion: transform + opacity only.
   ============================================================ */

:root {
  --v2-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --v2-soft: #f5f8fb;
  --v2-line: #ccd5dd;
  --v2-mid: #4d647a;
  --v2-faint: #7f94a7;
}

/* ── Hero ──────────────────────────────────────────────── */
.v2-hero {
  position: relative; height: 100svh; min-height: 640px; margin-top: -96px;
  display: flex; align-items: flex-end; justify-content: center;
  overflow: hidden; background: var(--navy);
}
.v2-hero-bg {
  position: absolute; inset: 0;
  background: url(images/hero-luxor.jpg) center / cover no-repeat;
  transform: scale(1.08); transform-origin: 50% 40%;
  will-change: transform;
}
.v2-hero-shade { position: absolute; inset: 0; background: rgba(0, 29, 53, 0.42); }
.v2-hero-inner {
  position: relative; width: 100%; max-width: 1040px;
  padding: 0 24px clamp(72px, 12vh, 128px); text-align: center; color: #fff;
  will-change: transform, opacity;
}
.v2-overline {
  font-family: var(--ui); font-size: 12px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; margin: 0 0 24px;
  color: rgba(255,255,255,0.72);
}
.v2-hero h1 {
  font-size: clamp(44px, 9vw, 104px); font-weight: 600;
  line-height: 1.02; letter-spacing: -0.035em; margin: 0 0 28px;
}
.v2-hero h1 span { display: block; }
.v2-hero h1 span:last-child { color: rgba(255,255,255,0.62); }
.v2-lede {
  font-size: clamp(17px, 2vw, 21px); line-height: 1.5; font-weight: 400;
  max-width: 600px; margin: 0 auto 40px; color: rgba(255,255,255,0.82);
  letter-spacing: -0.005em;
}
.v2-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.v2-scroll {
  position: absolute; left: 50%; bottom: 28px; width: 1px; height: 36px;
  background: rgba(255,255,255,0.5); transform-origin: top; margin-left: -0.5px;
  animation: v2-scroll 2.4s var(--v2-ease) infinite;
}
@keyframes v2-scroll {
  0% { transform: scaleY(0); opacity: 0; } 30% { opacity: 1; }
  70% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; }
}

/* Buttons: instant press feedback, square brand style */
.btn { transition: opacity .2s ease, background .2s ease, transform 120ms ease-out; }
.btn:active { transform: scale(0.97); opacity: 1; }
.v2-hero .btn { padding: 15px 34px; }

/* ── Section scaffolding ───────────────────────────────── */
.v2-sec { padding: clamp(80px, 12vw, 160px) 24px; }
.v2-wrap { max-width: var(--maxw); margin: 0 auto; }
.v2-head { margin-bottom: clamp(40px, 6vw, 72px); }
.v2-head .v2-overline { color: var(--v2-faint); margin-bottom: 16px; }
.v2-title {
  font-size: clamp(34px, 5.6vw, 68px); font-weight: 600; color: var(--navy);
  line-height: 1.05; letter-spacing: -0.03em; margin: 0; max-width: 14ch;
}
.v2-title.wide { max-width: 20ch; }
.v2-sub {
  font-size: clamp(17px, 1.8vw, 21px); line-height: 1.5; color: var(--v2-mid);
  max-width: 520px; margin: 20px 0 0; letter-spacing: -0.005em;
}
.v2-dark { background: var(--navy); color: #fff; }
.v2-dark .v2-title { color: #fff; }
.v2-dark .v2-sub { color: rgba(255,255,255,0.7); }
.v2-dark .v2-head .v2-overline { color: rgba(255,255,255,0.55); }

/* Reveal — springy settle, transform + opacity only */
.v2-rev { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--v2-ease), transform .9s var(--v2-ease); transition-delay: calc(var(--i, 0) * 80ms); }
.v2-rev.in { opacity: 1; transform: none; }

/* ── Stats ─────────────────────────────────────────────── */
.v2-stats { padding: clamp(56px, 8vw, 104px) 24px; background: #fff; }
.v2-stat-row {
  max-width: var(--maxw); margin: 0 auto; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 40px 32px;
}
.v2-stat { border-top: 1px solid var(--v2-line); padding-top: 20px; }
.v2-stat .n {
  font-size: clamp(38px, 4.6vw, 60px); font-weight: 600; letter-spacing: -0.04em;
  line-height: 1; white-space: nowrap; color: var(--navy); font-variant-numeric: tabular-nums;
}
.v2-stat .t { margin-top: 14px; font-size: 14px; line-height: 1.45; color: var(--v2-mid); font-family: var(--ui); letter-spacing: 0.005em; }

/* ── Draggable rail ────────────────────────────────────── */
.v2-rail { position: relative; overflow: hidden; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; outline: none; }
.v2-rail.dragging { cursor: grabbing; }
.v2-rail:focus-visible { box-shadow: 0 0 0 2px var(--navy); }
.v2-track { display: flex; gap: 20px; will-change: transform; padding: 0 max(24px, calc((100vw - var(--maxw)) / 2 + 24px)); }
.v2-card {
  flex: 0 0 auto; width: clamp(272px, 30vw, 380px); text-decoration: none; color: var(--navy);
  background: var(--v2-soft); border-radius: 2px; overflow: hidden; display: block;
  transform: translateZ(0); transition: transform 140ms ease-out;
  -webkit-user-drag: none;
}
.v2-card:active { transform: scale(0.985); }
.v2-card .ph { aspect-ratio: 4 / 5; overflow: hidden; background: var(--v2-line); }
.v2-card .ph img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; transition: transform 1.1s var(--v2-ease); }
.v2-card:hover .ph img { transform: scale(1.04); }
.v2-card .bd { padding: 22px 24px 28px; }
.v2-card .st { font-family: var(--ui); font-size: 11px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--v2-faint); margin: 0 0 10px; }
.v2-card h3 { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 8px; }
.v2-card .lc { font-size: 14px; color: var(--v2-mid); margin: 0; line-height: 1.45; }

.v2-rail-ctl { max-width: var(--maxw); margin: 28px auto 0; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.v2-pager { display: flex; gap: 8px; align-items: center; }
.v2-pager i { display: block; width: 6px; height: 6px; border-radius: 50%; background: var(--v2-line); transition: background .25s ease, transform .25s var(--v2-ease); }
.v2-pager i.on { background: var(--navy); transform: scale(1.35); }
.v2-arrows { display: flex; gap: 10px; }
.v2-arrow {
  width: 44px; height: 44px; border: 1px solid var(--v2-line); background: #fff; color: var(--navy);
  display: grid; place-items: center; cursor: pointer; border-radius: 0; padding: 0;
  transition: background .2s ease, color .2s ease, opacity .2s ease, transform 100ms ease-out;
}
.v2-arrow:active { transform: scale(0.94); background: var(--navy); color: #fff; }
.v2-arrow:disabled { opacity: 0.35; cursor: default; }
.v2-arrow:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
.v2-note { max-width: var(--maxw); margin: 20px auto 0; padding: 0 24px; font-size: 12px; color: var(--v2-faint); font-family: var(--ui); }

/* ── Pillars (dark) ────────────────────────────────────── */
.v2-pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1px; background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.14); }
.v2-pillar { background: var(--navy); padding: clamp(28px, 3.4vw, 48px); }
.v2-pillar .k { font-family: var(--ui); font-size: 12px; letter-spacing: 0.14em; color: rgba(255,255,255,0.5); margin-bottom: 56px; display: block; }
.v2-pillar h3 { font-size: clamp(22px, 2.2vw, 28px); font-weight: 600; letter-spacing: -0.02em; margin: 0 0 14px; color: #fff; }
.v2-pillar p { font-size: 15px; line-height: 1.6; color: rgba(255,255,255,0.7); margin: 0; }
.v2-more { display: inline-block; margin-top: 40px; color: #fff; font-size: 15px; font-weight: 600; text-decoration: none; padding-bottom: 3px; border-bottom: 1px solid rgba(255,255,255,0.4); transition: border-color .2s ease; }
.v2-more:hover { border-color: #fff; }

/* ── Completed rail ──────────────────────────── */
.v2-done { background: var(--v2-soft); }
.v2-done .v2-card { background: #fff; }

/* ── Closing ───────────────────────────────────────────── */
.v2-close { text-align: center; background: #fff; }
.v2-close .v2-title { margin: 0 auto; max-width: 16ch; }
.v2-close .v2-sub { margin: 24px auto 40px; }
.v2-close .btn-navy { padding: 16px 40px; }
.v2-close .btn-outline { padding: 16px 40px; margin-left: 10px; }
.v2-disc { max-width: 720px; margin: 56px auto 0; font-size: 12px; line-height: 1.6; color: var(--v2-faint); font-family: var(--ui); }

/* ── Accessibility: motion / transparency / contrast ───── */
@media (prefers-reduced-motion: reduce) {
  .v2-hero-bg { transform: none !important; }
  .v2-hero-inner { transform: none !important; }
  .v2-scroll { animation: none; opacity: 0.6; }
  .v2-rev { transform: none; transition: opacity .3s ease; }
  .v2-card .ph img, .v2-card:hover .ph img { transition: none; transform: none; }
}
@media (prefers-contrast: more) {
  .v2-hero-shade { background: rgba(0,29,53,0.62); }
  .v2-card { outline: 1px solid var(--navy); }
}
@media (max-width: 640px) {
  .v2-close .btn-outline { margin: 12px 0 0; }
  .v2-rail-ctl .v2-arrows { display: none; }
}
