/* Η σελίδα «Οι χορηγοί μας». Τα χρώματα και οι γραμματοσειρές έρχονται από το styles.css */

/* ---------- Πράξη 1: ο τοίχος από κομμάτια ---------- */
.sp-hero { position: relative; background: #000; }
.js .sp-hero { height: 320vh; }

.sp-stage {
  position: relative;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: radial-gradient(55% 42% at 50% 74%, rgb(217 179 108 / .14), transparent 70%), #000;
}
.js .sp-stage { position: sticky; top: 0; }

.sp-hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.sp-hero__canvas.is-ready { animation: stage-in 1s ease backwards; }

.sp-hero__fallback { display: none; }
.no-3d .sp-hero__canvas { display: none; }
.no-3d .sp-hero__fallback {
  display: block;
  position: absolute;
  left: 50%;
  bottom: 14%;
  width: clamp(90px, 12vw, 150px);
  transform: translateX(-50%);
  filter: drop-shadow(0 20px 40px rgb(217 179 108 / .3));
}

.sp-hero__text {
  position: absolute;
  z-index: 2;
  inset: clamp(104px, 15vh, 160px) var(--rail-space) auto;
  display: grid;
  justify-items: center;
  gap: clamp(12px, 2vh, 20px);
  text-align: center;
  will-change: opacity, transform;
}

.sp-hero__cue {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 22px;
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgb(0 0 0 / .55);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transform: translateX(-50%);
  color: #d1d1d6;
  font-size: .875rem;
  text-decoration: none;
  white-space: nowrap;
}
.sp-hero__cue:hover { color: var(--text); }
.sp-hero__cue svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; animation: cue-bob 2s ease-in-out infinite; }

/* ---------- Πράξη 2: ο δρόμος των χορηγών ---------- */
.road { --card-w: clamp(250px, 24vw, 330px); --node-gap: 40px; position: relative; }

.road__stage { position: relative; overflow-x: auto; padding: clamp(80px, 12vh, 120px) 0 60px; }
.js .road__stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 0;
}

.road__track {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: clamp(48px, 7vw, 120px);
  width: max-content;
  padding: 0 clamp(18vw, 30vw, 40vw) 0 max(var(--rail-space), 6vw);
  will-change: transform;
}

.road__intro {
  flex: none;
  width: clamp(290px, 36vw, 520px);
  display: grid;
  gap: 16px;
  padding-top: clamp(10px, 4vh, 40px);
}
.road__intro h2 { font-size: clamp(2.25rem, 4.6vw, 4.25rem); }
.road__hint { margin-top: 10px; color: var(--muted); font-size: .9375rem; font-weight: 500; }
.road__hint span { display: inline-block; color: var(--gold); animation: hint-nudge 1.6s ease-in-out infinite; }

.road__stops {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: clamp(36px, 5vw, 80px);
}

/* Η ευθεία γραμμή που ενώνει όλες τις στάσεις */
.road__stops::before {
  content: "";
  position: absolute;
  left: calc(var(--card-w) / -2 - 40px);
  right: calc(var(--card-w) / -2);
  top: calc(var(--card-w) * 4 / 3 + var(--node-gap) + 7px);
  height: 2px;
  background: linear-gradient(90deg, transparent, rgb(255 255 255 / .16) 8%, rgb(255 255 255 / .16) 92%, transparent);
}

.stop {
  position: relative;
  flex: none;
  width: var(--card-w);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--node-gap);
}

.stop .wall__sq {
  width: 100%;
  aspect-ratio: 3 / 4;
  opacity: .38;
  scale: .94;
  transition: opacity .6s ease, scale .6s cubic-bezier(.2, .7, .2, 1), box-shadow .6s;
}
.stop.is-active .wall__sq { opacity: 1; scale: 1; }

.stop__node {
  position: relative;
  z-index: 1;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #000;
  border: 2px solid rgb(255 255 255 / .28);
  transition: background-color .5s, border-color .5s, box-shadow .5s;
}
.stop.is-active .stop__node {
  background: var(--gold);
  border-color: #f3dca4;
  box-shadow: 0 0 0 6px rgb(217 179 108 / .18), 0 0 26px rgb(217 179 108 / .7);
}
.stop__label { position: absolute; bottom: -34px; color: var(--muted); font-size: .8125rem; font-weight: 500; white-space: nowrap; }

/* Μπάρα προόδου στο κάτω μέρος της οθόνης */
.road__progress { display: none; }
.js .road__progress {
  display: block;
  position: absolute;
  left: max(var(--rail-space), 6vw);
  right: var(--rail-space);
  bottom: clamp(22px, 5vh, 44px);
  height: 2px;
  border-radius: 2px;
  background: rgb(255 255 255 / .1);
  overflow: hidden;
}
.road__progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #a8792c, var(--gold), #f3dca4);
  transform-origin: left;
  transform: scaleX(0);
}

/* ---------- Οι κάρτες (χορηγός, χρυσή θέση, κενή θέση) ---------- */
.wall__sq {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  padding: clamp(20px, 2.2vw, 28px);
  border-radius: 26px;
  background: #151517;
  color: var(--text);
  text-decoration: none;
  overflow: hidden;
}
.wall__sq--light { background: #1d1d20; }

.wall__sq--empty { border: 1px dashed rgb(255 255 255 / .1); }
.wall__sq--empty::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 35%, rgb(255 255 255 / .05) 50%, transparent 65%) 0 0 / 250% 100%;
  animation: sheen 3.6s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * 180ms);
}
.wall__sq--empty svg {
  position: absolute;
  left: 50%;
  top: 44%;
  width: 30%;
  height: auto;
  aspect-ratio: 40 / 48;
  transform: translate(-50%, -50%);
  fill: none;
  stroke: rgb(255 255 255 / .12);
  stroke-width: 1;
}
.wall__empty-label { position: relative; margin-top: auto; color: rgb(255 255 255 / .32); font-size: .875rem; font-weight: 500; }

.wall__sq--sponsor { border: 1px solid rgb(255 255 255 / .08); }
.wall__logo { position: relative; flex: 1; display: grid; place-items: center; min-height: 0; }
/* Το λογότυπο χωράει πάντα στον χώρο του, όσο ψηλό ή φαρδύ κι αν είναι */
.wall__logo img { position: absolute; inset: 0; width: 100%; height: 100%; padding: 4% 11%; object-fit: contain; }
.wall__monogram {
  display: grid;
  place-items: center;
  width: clamp(68px, 7vw, 96px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(140deg, #f3dca4, #c9973f);
  color: #1a1305;
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  font-weight: 700;
  letter-spacing: -.02em;
  box-shadow: 0 10px 30px rgb(217 179 108 / .25);
}
.wall__name { font-size: clamp(1.1rem, 1.6vw, 1.375rem); font-weight: 600; line-height: 1.2; letter-spacing: -.02em; }
.wall__note { margin-top: 4px; color: var(--muted); font-size: .9375rem; line-height: 1.35; }
.wall__go {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgb(255 255 255 / .08);
}
.wall__go svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.wall__sq--join {
  background: linear-gradient(140deg, #f3dca4, #c9973f 70%, #a8792c);
  color: #1a1305;
  box-shadow: 0 18px 50px rgb(217 179 108 / .25);
}
.wall__join-rook { width: clamp(36px, 3.8vw, 52px); height: auto; aspect-ratio: 40 / 48; fill: #1a1305; }
.wall__join-title { font-size: clamp(1.4rem, 2.2vw, 1.9rem); font-weight: 700; line-height: 1.08; letter-spacing: -.03em; }
.wall__join-link { margin-top: 8px; font-size: .9375rem; font-weight: 600; }

/* Κλίση και λάμψη που ακολουθούν το ποντίκι */
[data-tilt] {
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .5s cubic-bezier(.2, .7, .2, 1), opacity .6s ease, scale .6s cubic-bezier(.2, .7, .2, 1);
}
[data-tilt].is-tilting { transition-duration: .12s, .6s, .6s; }
[data-tilt]::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgb(255 255 255 / .16), transparent 60%);
  opacity: 0;
  transition: opacity .3s;
}
[data-tilt]:hover::after { opacity: 1; }
a.wall__sq:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }

/* ---------- Ταινία με τα ονόματα ---------- */
.ticker {
  padding: 26px 0;
  overflow: hidden;
  border-block: 1px solid var(--hairline);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.ticker__track { display: flex; width: max-content; animation: ticker 38s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__item {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  margin-right: 28px;
  color: #d1d1d6;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -.03em;
  white-space: nowrap;
}
.ticker__item svg { width: .7em; height: .84em; fill: var(--gold); }

/* ---------- Κάλεσμα ---------- */
.sp-cta { position: relative; }
.sp-cta::before {
  content: "";
  position: absolute;
  inset: 20% 10% 0;
  z-index: -1;
  background: radial-gradient(50% 50% at 50% 50%, rgb(217 179 108 / .1), transparent 70%);
  pointer-events: none;
}

@keyframes cue-bob { 50% { transform: translateY(5px); } }
@keyframes hint-nudge { 50% { transform: translateX(6px); } }
@keyframes sheen { from { background-position: 120% 0; } to { background-position: -120% 0; } }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Μικρότερες οθόνες ---------- */
@media (max-width: 700px) {
  .road { --card-w: min(68vw, 280px); --node-gap: 30px; }
  .road__intro { width: min(78vw, 340px); }
  .road__intro h2 { font-size: 2.25rem; }
  .wall__sq { border-radius: 22px; }
}

@media (max-width: 600px) {
  .sp-hero__text { left: 16px; }
  .sp-hero__cue { font-size: .8125rem; }
  .road__progress { left: 16px; }
}
