/* ============================================================
   E.F.G. — scrollytelling project site (burkinow-inspired)
   Pure black, cinematic, story-driven.
   ============================================================ */

:root {
  --black: #0b0b0c;
  --white: #f4f2ee;
  --gray: #8a8a8a;
  --line: rgba(244, 242, 238, 0.12);
  --cream: #ece4d6;

  --font: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --pad: clamp(1.25rem, 4vw, 3.5rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--black);
  color: var(--white);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.26em;
  color: var(--gray);
  margin-bottom: 1.2rem;
}

.btn-pill {
  display: inline-block;
  background: var(--white);
  color: var(--black);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.8rem 1.7rem;
  border-radius: 100px;
  transition: transform 0.3s var(--ease), opacity 0.3s;
}
.btn-pill:hover { transform: scale(1.04); opacity: 0.92; }

/* ============================================================
   Ticker + header
   ============================================================ */
.ticker {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.55rem var(--pad);
  font-size: 0.82rem;
  color: var(--gray);
  background: rgba(11, 11, 12, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: color 0.3s;
}
.ticker:hover { color: var(--white); }
.ticker strong { color: var(--white); font-weight: 500; }
.ticker__thumb {
  width: 1.5rem;
  height: 1.1rem;
  border-radius: 4px;
  background: linear-gradient(135deg, #6b5d49, #2e2a24);
}
.ticker__arrow { margin-left: auto; font-size: 1.1rem; }

.header {
  position: fixed;
  top: 2.35rem;
  left: 0; right: 0;
  z-index: 55;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem var(--pad);
  transition: transform 0.45s var(--ease);
}
.header.is-hidden { transform: translateY(-130%); }
.header__logo img { height: 1.35rem; width: auto; }
.header__right { display: flex; align-items: center; gap: 1.6rem; }
.header__lang {
  background: none;
  border: 0;
  color: var(--gray);
  font-family: inherit;
  font-size: 0.95rem;
  cursor: pointer;
  transition: color 0.3s;
}
.header__lang:hover { color: var(--white); }
.header__cta {
  background: var(--white);
  color: var(--black);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.65rem 1.5rem;
  border-radius: 100px;
  transition: transform 0.3s var(--ease);
}
.header__cta:hover { transform: scale(1.05); }

/* ============================================================
   Side nav
   ============================================================ */
.sidenav {
  position: fixed;
  left: var(--pad);
  bottom: var(--pad);
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.sidenav a {
  font-size: 0.8rem;
  color: var(--gray);
  letter-spacing: 0.04em;
  transition: color 0.3s, padding-left 0.3s var(--ease);
  border-left: 1px solid transparent;
  padding-left: 0.6rem;
}
.sidenav a.is-active {
  color: var(--white);
  border-color: var(--white);
}
.sidenav a:hover { color: var(--white); }

/* ============================================================
   Story (scrollytelling)
   ============================================================ */
.story { position: relative; }
.story__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}

.story__bgs { position: absolute; inset: 0; }
.story-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 1.2s var(--ease), transform 6s linear;
}
.story-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(11, 11, 12, 0.72);
}
.story-bg.is-active { opacity: 1; transform: scale(1); }

.story-step {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 var(--pad);
  opacity: 0;
  transform: translateY(1.6rem);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  pointer-events: none;
}
.story-step.is-active { opacity: 1; transform: none; }

.story-step h1, .story-step h2 {
  font-size: clamp(1.7rem, 4.2vw, 3.1rem);
  font-weight: 600;
  line-height: 1.25;
  max-width: 26ch;
}
.story-step p {
  margin-top: 0.6rem;
  font-size: clamp(1.1rem, 2.4vw, 1.7rem);
  color: var(--gray);
  font-weight: 400;
}

.story__hint {
  position: absolute;
  bottom: 2.2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--gray);
  transition: opacity 0.5s;
}
.story__chevron {
  width: 0.8rem;
  height: 0.8rem;
  border-left: 1.5px solid var(--gray);
  border-top: 1.5px solid var(--gray);
  transform: rotate(45deg);
  animation: bob 2s var(--ease) infinite;
}
@keyframes bob {
  0%, 100% { transform: rotate(45deg) translate(0, 0); }
  50% { transform: rotate(45deg) translate(-0.25rem, -0.25rem); }
}

/* ============================================================
   Timeline
   ============================================================ */
.timeline { position: relative; }
.timeline__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 var(--pad);
}
.timeline__eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.26em;
  color: var(--gray);
}
.timeline__year {
  font-size: clamp(5.5rem, 22vw, 15rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.03em;
  margin: 1rem 0;
  font-variant-numeric: tabular-nums;
}
.timeline__caption {
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: var(--gray);
  max-width: 40ch;
  min-height: 3.2em;
  transition: opacity 0.4s;
}
.timeline__dots { display: flex; gap: 0.6rem; margin-top: 2.5rem; }
.timeline__dots span {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: rgba(244, 242, 238, 0.25);
  transition: background 0.3s, transform 0.3s;
}
.timeline__dots span.is-active { background: var(--white); transform: scale(1.4); }

/* ============================================================
   Project
   ============================================================ */
.project {
  max-width: 62rem;
  margin: 0 auto;
  padding: clamp(6rem, 14vh, 10rem) var(--pad);
  text-align: center;
}
.project__title {
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.project__lede {
  margin: 1.6rem auto 0;
  max-width: 52ch;
  color: var(--gray);
  font-size: 1.05rem;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 1rem;
  margin-top: clamp(3.5rem, 8vh, 5.5rem);
  text-align: left;
}
.features li {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.8rem 1.6rem;
  transition: border-color 0.4s, transform 0.4s var(--ease);
}
.features li:hover { border-color: rgba(244, 242, 238, 0.35); transform: translateY(-4px); }
.features h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 0.5rem; }
.features p { font-size: 0.88rem; color: var(--gray); line-height: 1.55; }

.project__impact {
  margin-top: clamp(3.5rem, 8vh, 5.5rem);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: clamp(2rem, 5vw, 3.5rem);
  background: linear-gradient(160deg, rgba(236, 228, 214, 0.05), transparent 55%);
}
.project__impact h3 { font-size: 1.4rem; font-weight: 600; margin-bottom: 0.8rem; }
.project__impact p { color: var(--gray); max-width: 58ch; margin: 0 auto; }

/* ============================================================
   Moments
   ============================================================ */
.moments {
  max-width: 62rem;
  margin: 0 auto;
  padding: 0 var(--pad) clamp(5rem, 12vh, 8rem);
  display: grid;
  gap: 1rem;
}
.moment {
  border-top: 1px solid var(--line);
  padding: 2.4rem 0.5rem 2.2rem;
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: 1rem;
  align-items: start;
}
.moment__num { color: var(--gray); font-size: 0.85rem; padding-top: 0.35rem; }
.moment h3 { font-size: 1.35rem; font-weight: 600; margin-bottom: 0.6rem; }
.moment p { color: var(--gray); max-width: 58ch; }

/* ============================================================
   Credits
   ============================================================ */
.credits {
  max-width: 62rem;
  margin: 0 auto;
  padding: 0 var(--pad) clamp(5rem, 12vh, 8rem);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 3rem;
}
.credits li { padding: 0.45rem 0; color: var(--white); font-weight: 500; }
.credits__docs a {
  color: var(--gray);
  font-weight: 400;
  border-bottom: 1px solid transparent;
  transition: color 0.3s, border-color 0.3s;
}
.credits__docs a:hover { color: var(--white); border-color: var(--white); }

/* ============================================================
   Register
   ============================================================ */
.register {
  text-align: center;
  padding: clamp(6rem, 14vh, 10rem) var(--pad);
  border-top: 1px solid var(--line);
}
.register h2 {
  font-size: clamp(1.9rem, 5vw, 3.4rem);
  font-weight: 600;
  line-height: 1.2;
}
.register__form {
  margin: 2.5rem auto 0;
  display: flex;
  max-width: 26rem;
  border: 1px solid rgba(244, 242, 238, 0.25);
  border-radius: 100px;
  padding: 0.35rem;
  transition: border-color 0.3s;
}
.register__form:focus-within { border-color: var(--white); }
.register__form input {
  flex: 1;
  min-width: 0;
  background: none;
  border: 0;
  outline: 0;
  color: var(--white);
  font-family: inherit;
  font-size: 0.98rem;
  padding: 0.6rem 1.2rem;
}
.register__form input::placeholder { color: var(--gray); }
.register__form button {
  background: var(--white);
  color: var(--black);
  border: 0;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.7rem 1.6rem;
  border-radius: 100px;
  cursor: pointer;
  transition: transform 0.3s var(--ease);
}
.register__form button:hover { transform: scale(1.04); }
.register__note {
  margin-top: 1.4rem;
  color: var(--gray);
  font-size: 0.85rem;
  max-width: 44ch;
  margin-left: auto;
  margin-right: auto;
}
.register__form.is-done { border-color: rgba(140, 200, 140, 0.6); }

/* ============================================================
   Footer
   ============================================================ */
.footer {
  text-align: center;
  padding: clamp(5rem, 12vh, 8rem) var(--pad) 3rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}
.footer__thanks {
  font-size: clamp(1.4rem, 3.4vw, 2.2rem);
  font-weight: 600;
  line-height: 1.3;
}
.footer__logo { width: min(20rem, 60vw); opacity: 0.9; margin-top: 1.5rem; }
.footer__legal { color: var(--gray); font-size: 0.78rem; letter-spacing: 0.04em; }

/* ============================================================
   Reveal
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(1.6rem);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .story-bg { transition: opacity 0.3s; transform: none; }
  .story__chevron { animation: none; }
}

@media (max-width: 640px) {
  .sidenav { display: none; }
  .moment { grid-template-columns: 1fr; gap: 0.3rem; }
  .register__form { flex-direction: column; border-radius: 22px; gap: 0.4rem; }
  .register__form button { padding: 0.8rem; }
}
