/* =========================================================
   THE FEATURE — page styles (red theme)
   ========================================================= */
.caps { text-transform: uppercase; letter-spacing: .06em; }

/* ---------- hero (desaturated like the reference) ---------- */
.feature-hero .bg img { object-position: 60% 55%; filter: brightness(.78) saturate(.95); }

/* ---------- timeline ---------- */
.timeline-section { padding-bottom: 50px; }
.timeline {
  --progress: 0;            /* 0 → 1, set by JS */
  position: relative; list-style: none;
  display: grid; grid-template-columns: repeat(10, 1fr);
  margin-top: 46px;
}
/* base rail + filled rail */
.timeline::before, .timeline::after {
  content: ""; position: absolute; top: 15px; height: 2px;
  left: 5%; right: 5%;                       /* centre of first → centre of last node */
}
.timeline::before { background: rgba(255,255,255,.14); }
.timeline::after {
  background: linear-gradient(90deg, var(--accent-deep), var(--accent));
  box-shadow: 0 0 12px rgba(var(--accent-rgb), .6);
  transform-origin: left; transform: scaleX(var(--progress));
  transition: transform 2.4s cubic-bezier(.25,.8,.25,1);
}
.timeline li { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; }
.node {
  width: 32px; height: 32px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.3); background: var(--bg);
  display: grid; place-items: center;
  transition: border-color .4s, background .4s, box-shadow .4s, transform .4s;
}
.step { font-size: 15px; line-height: 1.2; color: var(--ink-dim); max-width: 11ch; transition: color .4s; }
.state { font-family: var(--sans); font-size: 9px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); min-height: 1em; opacity: 0; transition: opacity .4s; }

/* states become visible when JS adds .lit (in sequence) */
.timeline li.lit .state { opacity: 1; }
.timeline li.lit .step { color: var(--ink); }
.timeline li[data-status="done"].lit .node { border-color: var(--accent); background: var(--accent); transform: scale(1.04); }
.timeline li[data-status="done"].lit .node::after {
  content: ""; width: 9px; height: 5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: translateY(-2px) rotate(-45deg);
}
.timeline li[data-status="current"].lit .node { border-color: var(--accent); box-shadow: 0 0 0 6px rgba(var(--accent-rgb), .18), 0 0 22px rgba(var(--accent-rgb), .7); animation: pulse 2s ease-in-out infinite; }
.timeline li[data-status="current"].lit .node::after { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); }
.timeline li[data-status="half"].lit .node { border-color: rgba(255,255,255,.75); background: linear-gradient(90deg, rgba(255,255,255,.75) 50%, var(--bg) 50%); }
.timeline li[data-status="half"] .state, .timeline li[data-status="todo"] .state { color: var(--ink-dim); }
@keyframes pulse { 50% { box-shadow: 0 0 0 10px rgba(var(--accent-rgb), .06), 0 0 30px rgba(var(--accent-rgb), .9); } }

/* ---------- map ---------- */
.map-section { padding-top: 30px; }
.map-box {
  position: relative; display: grid; grid-template-columns: minmax(280px, 380px) 1fr; gap: 24px;
  border: 1px solid rgba(var(--accent-rgb), .45); background: radial-gradient(ellipse at 70% 50%, #120708 0%, #07080c 70%);
  padding: clamp(22px, 3vw, 40px); overflow: hidden;
}
.map-text { position: relative; z-index: 2; align-self: center; }
.big-count { margin-top: 26px; font-family: var(--display); color: var(--accent); line-height: 1; }
.big-count strong { font-weight: 400; font-size: clamp(44px, 5vw, 64px); text-shadow: 0 0 24px rgba(var(--accent-rgb), .45); }
.big-count sup { font-size: 24px; margin-left: 2px; }
.count-label { font-family: var(--sans); font-size: 10px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-dim); margin: 6px 0 28px; }

.map-wrap { position: relative; min-height: 380px; border: 1px solid var(--line-soft); background: #050608; }
.map { position: absolute; inset: 0; cursor: grab; touch-action: none; }
.map:active { cursor: grabbing; }
.map svg { width: 100%; height: 100%; display: block; }
.map .country { fill: #15171c; stroke: #2a2d34; stroke-width: .4; vector-effect: non-scaling-stroke; transition: fill .3s; }
.map .country:hover { fill: #23262d; }
.map .country.joined { fill: rgba(var(--accent-rgb), .55); stroke: rgba(var(--accent-rgb), .9); filter: url(#glow); }
.map .country.joined:hover { fill: var(--accent); }
.map .dot { fill: #ffd9d4; pointer-events: none; }
.map .ring { fill: none; stroke: var(--accent); stroke-width: 1; vector-effect: non-scaling-stroke; pointer-events: none; animation: ring 2.6s ease-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes ring { from { transform: scale(.3); opacity: .9; } to { transform: scale(2.4); opacity: 0; } }
.map-loading { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--sans); font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-dim); }

.map-controls { position: absolute; top: 12px; right: 12px; display: flex; flex-direction: column; gap: 6px; z-index: 2; }
.map-btn {
  width: 34px; height: 34px; display: grid; place-items: center; font-family: var(--sans); font-size: 18px; line-height: 1;
  border: 1px solid var(--line-soft); background: rgba(5,6,8,.85); color: var(--ink); transition: border-color .3s, color .3s;
}
.map-btn svg { width: 15px; height: 15px; fill: currentColor; }
.map-btn:hover { border-color: var(--accent); color: var(--accent); }
.map-tip {
  position: absolute; z-index: 3; pointer-events: none; transform: translate(-50%, calc(-100% - 12px));
  padding: 7px 11px; background: rgba(5,6,8,.95); border: 1px solid var(--line);
  font-family: var(--sans); font-size: 11px; letter-spacing: .06em; white-space: nowrap;
}
.map-tip b { color: var(--accent); font-weight: 600; }
.map-hint { position: absolute; left: 12px; top: 12px; z-index: 2; font-family: var(--sans); font-size: 9px; letter-spacing: .18em; text-transform: uppercase; color: #6b717b; pointer-events: none; }
.countries-tag {
  position: absolute; right: 12px; bottom: 12px; z-index: 2; text-align: center;
  padding: 10px 16px; border: 1px solid var(--line); background: rgba(5,6,8,.85);
  font-family: var(--sans); font-size: 9px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-dim);
}
.countries-tag strong { display: block; margin-top: 3px; color: var(--ink); font-weight: 600; }

/* ---------- FAQ ---------- */
.faq-contact { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.faq-contact span { font-family: var(--sans); font-size: 9.5px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-dim); }
.faq { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; align-items: start; }
.faq details { border-bottom: 1px solid var(--line-soft); }
.faq-col details:first-child { border-top: 1px solid var(--line-soft); }
.faq summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 18px 44px 18px 0; font-size: 18px; line-height: 1.35; transition: color .3s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover, .faq details[open] summary { color: var(--accent-hover); }
.q-num { color: var(--accent); margin-right: 10px; font-family: var(--display); font-size: 15px; }
.faq summary::before, .faq summary::after {
  content: ""; position: absolute; right: 10px; top: 50%; width: 14px; height: 1.5px; background: var(--accent);
  transition: transform .35s;
}
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0deg); }
.answer { padding: 0 44px 22px 28px; color: var(--ink-dim); }
.answer .text-link { margin-top: 12px; }
.faq details[open] .answer { animation: open .4s ease; }
@keyframes open { from { opacity: 0; transform: translateY(-6px); } }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .map-box { grid-template-columns: 1fr; }
  .map-wrap { min-height: 360px; }
}
@media (max-width: 860px) {
  /* vertical timeline */
  .timeline { grid-template-columns: 1fr; gap: 18px; margin-top: 34px; }
  .timeline::before, .timeline::after { left: 15px; right: auto; top: 16px; bottom: 16px; width: 2px; height: auto; }
  .timeline::after { transform-origin: top; transform: scaleY(var(--progress)); }
  .timeline li { flex-direction: row; text-align: left; gap: 16px; }
  .step { max-width: none; font-size: 17px; }
  .state { margin-left: auto; }
  .faq { grid-template-columns: 1fr; }
  .faq-col + .faq-col details:first-child { border-top: 0; }
  .faq-contact { align-items: flex-start; text-align: left; }
}
@media (max-width: 640px) {
  .map-wrap { min-height: 300px; }
  .map-hint { display: none; }
  .countries-tag { left: 12px; right: 12px; }
  .faq summary { font-size: 17px; }
  .answer { padding-left: 0; padding-right: 0; }
}
