/* ═══════════════════════════════════════════
   REVoTED — Shared Stylesheet
   revoted.css
═══════════════════════════════════════════ */

/* ── TOKENS ── */
:root {
  --bg:         #0c0c0b;
  --surface:    #141412;
  --surface2:   #1c1c19;
  --text:       #e2ddd5;
  --muted:      #9a9690;
  --accent:     #c4a46b;
  --accent-dim: rgba(196,164,107,0.12);
  --border:     rgba(196,164,107,0.11);
  --border-s:   rgba(196,164,107,0.28);
  --nav-h:      64px;
  --ease:       cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out:   cubic-bezier(0, 0, 0.2, 1);
  --max-w:      1160px;
  --pad-x:      clamp(1.4rem, 6vw, 6rem);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Karla', sans-serif;
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }

/* ── NAV ── */
#nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  padding: 0 var(--pad-x);
  background: rgba(12,12,11,0.90);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: none;
}

.nav-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  opacity: 1;
  transition: opacity 0.2s;
}
.nav-logo:hover { opacity: 0.8; }
.nav-logo img {
  height: 34px;
  width: auto;
  display: block;
}

.nav-sep {
  width: 1px;
  height: 18px;
  background: var(--border-s);
  margin: 0 clamp(1rem, 2vw, 2rem);
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 2vw, 2rem);
  list-style: none;
}
.nav-links a {
  font-size: 0.84rem;
  font-weight: 400;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  position: relative;
  padding-bottom: 2px;
  white-space: nowrap;
  transition: color 0.2s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width 0s;
}
/* Hover: colour brightens only, no underline */
.nav-links a:hover { color: var(--text); }

/* Active: amber underline + bright colour */
.nav-links a.active { color: var(--text); }
/* No underline on active — colour highlight only */
/* Mobile active */
.nav-mobile a.active {
  color: var(--text);
  border-left: 2px solid var(--accent);
  padding-left: 0.6rem;
}

/* Dropdown submenu */
.nav-links li {
  position: relative;
  align-self: stretch;   /* stretch li to full nav height */
  display: flex;
  align-items: center;
}
.nav-links li .submenu {
  position: absolute;
  top: 100%;             /* = nav bottom, since li fills full nav height */
  left: 50%;
  transform: translateX(-50%);
  padding-top: calc(0.8rem + 1px); /* 1px border clearance + half link height */
  min-width: 190px;
  list-style: none;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s var(--ease);
  z-index: 200;
}
/* Show on hover — li height = full nav, so hover zone extends to nav bottom */
.nav-links li.has-sub:hover .submenu {
  opacity: 1;
  pointer-events: all;
}
/* The visible panel box */
.nav-links li .submenu-panel {
  background: transparent;
  border: 1px solid rgba(196,164,107,0.30);
  padding: 0.15rem 0;
  position: relative;
}
.nav-links li .submenu a {
  display: block;
  padding: 0.3rem 0.9rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s, padding-left 0.2s;
}
.nav-links li .submenu a::after { display: none !important; }
.nav-links li .submenu a:hover { color: var(--text); padding-left: 1.5rem; background: none; }
.nav-links li .submenu a.active { color: var(--text); }
.nav-links li.has-sub > a::after { display: none; }
.nav-links li.has-sub > a .chevron {
  display: inline-block;
  width: 5px; height: 5px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  margin-left: 5px;
  vertical-align: middle;
  opacity: 0.6;
}

/* Burger */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  margin-left: auto;
  padding: 6px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-burger span {
  display: block;
  width: 22px; height: 1px;
  background: var(--text);
  transition: all 0.3s var(--ease);
  transform-origin: center;
}
.nav-burger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile drawer */
.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: rgba(12,12,11,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 99;
  padding: 0.4rem var(--pad-x) 1.5rem;
  flex-direction: column;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
}
.nav-mobile.open { opacity: 1; transform: translateY(0); pointer-events: all; }
.nav-mobile a {
  display: block;
  padding: 0.8rem 0;
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  transition: color 0.2s, padding-left 0.2s;
}
.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile a:hover { color: var(--accent); padding-left: 0.4rem; }
.nav-mobile a.active { color: var(--text); }

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem var(--pad-x);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.footer-logo {
  display: flex;
  align-items: center;
  opacity: 0.45;
}
.footer-logo img {
  height: 20px;
  width: auto;
  display: block;
}
.footer-nav {
  display: flex;
  gap: 1.6rem;
  flex-wrap: wrap;
}
.footer-nav a {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
}
.footer-nav a:hover { color: var(--accent); }
.footer-copy {
  font-size: 0.67rem;
  color: var(--muted);
}
.footer-funding {
  width: 100%;
  font-size: 0.67rem;
  color: var(--muted);
  padding-top: 0.6rem;
  border-top: 1px solid var(--border);
  margin-top: 0.4rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: nowrap;
}

/* ══════════════════════════════════════════
   FULLBLEED PAGES — challenge.html, approach.html
   Swap .fb-bg background-image when ready
══════════════════════════════════════════ */
.fullbleed-page {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-h);
}

.fb-bg {
  position: absolute;
  inset: 0;
  background: #0d0d0b;
  background-image: url("Question.png");
  background-size: cover;
  background-position: center;
}
.fb-bg::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 65% 85% at 8% 58%,  rgba(196,164,107,0.06) 0%, transparent 55%),
    radial-gradient(ellipse 45% 55% at 88% 18%, rgba(196,164,107,0.035) 0%, transparent 50%),
    linear-gradient(to right, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.18) 55%, rgba(0,0,0,0.05) 100%);
}
.fb-bg::after {
  content: '';
  position: absolute; inset: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px;
}

.fb-inner {
  position: relative;
  z-index: 1;
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(3rem, 7vw, 6rem) var(--pad-x) clamp(3.5rem, 8vw, 6rem);
  max-width: min(var(--max-w), 90vw);
}


.fb-heading {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.8rem, 7vw, 5.8rem);
  font-weight: 300;
  line-height: 1.07;
  color: var(--text);
  margin-bottom: 2rem;
}
.fb-line { display: block; overflow: hidden; }
.fb-line-inner {
  display: block;
  opacity: 0;
  transform: translateY(110%);
  transition: opacity 0.72s var(--ease-out),
              transform 0.72s var(--ease-out);
}

.fb-rule {
  width: 0;
  height: 1px;
  background: var(--accent);
  margin-bottom: 1.8rem;
  transition: width 0.65s 0.28s var(--ease-out);
}

.fb-body {
  font-size: clamp(0.88rem, 1.35vw, 1.02rem);
  color: rgba(226,221,213,0.70);
  max-width: 540px;
  line-height: 1.88;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.65s 0.5s var(--ease-out),
              transform 0.65s 0.5s var(--ease-out);
}
.fb-body p + p { margin-top: 1rem; }

/* Entered state (triggered by JS on load) */
.entered .entered .fb-line-inner { opacity: 1; transform: none; }
.entered .fb-rule { width: 48px; }
.entered .fb-body { opacity: 1; transform: none; }
.entered .fb-line:nth-child(1) .fb-line-inner { transition-delay: 0.16s; }
.entered .fb-line:nth-child(2) .fb-line-inner { transition-delay: 0.27s; }
.entered .fb-line:nth-child(3) .fb-line-inner { transition-delay: 0.38s; }

/* ══════════════════════════════════════════
   STANDARD PAGES — workshop, seminar, blog, about
══════════════════════════════════════════ */
.std-page {
  padding-top: calc(var(--nav-h) + clamp(3rem, 7vw, 5.5rem));
  padding-bottom: clamp(4rem, 10vw, 8rem);
}
.std-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.pg-header {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}
.pg-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 300;
  line-height: 1.1;
  color: var(--text);
}
.pg-intro {
  margin-top: 1.1rem;
  font-size: 0.94rem;
  color: var(--muted);
  max-width: 580px;
  line-height: 1.75;
}

/* ── WORKSHOP CARDS ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(275px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.card {
  background: var(--surface);
  padding: 2rem 1.75rem;
  position: relative;
  transition: background 0.22s;
}
.card:hover { background: var(--surface2); }
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.card:hover::before { transform: scaleX(1); }
.card-meta {
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.95rem;
}
.card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.3;
  color: var(--text);
  margin-bottom: 0.75rem;
}
.card-body {
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.72;
}
.card-tag {
  display: inline-block;
  margin-top: 1.2rem;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--border-s);
  padding: 0.28rem 0.65rem;
}
.card-ghost {
  background: transparent !important;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  opacity: 0.45;
}
.card-ghost::before { display: none !important; }

/* ── SEMINAR TIMELINE ── */
.timeline {
  position: relative;
  padding-left: 1.8rem;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 0; top: 8px; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--accent) 0%, rgba(196,164,107,0.06) 100%);
}
.tl-item {
  position: relative;
  padding-bottom: 2.8rem;
  opacity: 0;
  transform: translateX(-10px);
}
.tl-item.visible {
  animation: tlSlide 0.55s var(--ease-out) forwards;
}
@keyframes tlSlide {
  to { opacity: 1; transform: none; }
}
.tl-dot {
  position: absolute;
  left: -1.8rem; top: 6px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateX(-3px);
  box-shadow: 0 0 0 3px var(--bg);
}
.tl-meta {
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.tl-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.28rem;
  font-weight: 400;
  color: var(--text);
  line-height: 1.25;
  margin-bottom: 0.35rem;
}
.tl-speaker {
  font-size: 0.86rem;
  font-style: italic;
  color: rgba(226,221,213,0.82);
  letter-spacing: 0.04em;
  margin-bottom: 0.55rem;
}
.tl-desc {
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.72;
  max-width: 540px;
}

/* ── BLOG ── */
.blog-list { display: flex; flex-direction: column; }
.blog-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: start;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: padding-left 0.22s var(--ease);
}
.blog-row:first-child { border-top: 1px solid var(--border); }
.blog-row:hover { padding-left: 0.5rem; }
.blog-row:hover .blog-title { color: var(--accent); }
.blog-cat {
  font-size: 0.64rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.45rem;
}
.blog-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 0.4rem;
  transition: color 0.2s;
}
.blog-excerpt {
  font-size: 0.83rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 580px;
}
.blog-arrow {
  display: block;
  margin-top: 0.6rem;
  color: var(--accent);
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
}
.blog-row:hover .blog-arrow { opacity: 1; transform: translateX(4px); }
.blog-aside {
  text-align: right;
  flex-shrink: 0;
  padding-top: 0.2rem;
}
.blog-date {
  font-size: 0.67rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

/* ── ABOUT ── */
.about-lead {
  font-size: clamp(0.94rem, 1.45vw, 1.06rem);
  color: rgba(226,221,213,0.76);
  line-height: 1.9;
  max-width: 640px;
}
.about-lead p + p { margin-top: 1.1rem; }
.section-label {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.4rem;
  margin-top: 3.5rem;
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
  gap: 2.2rem 2rem;
}
.person { display: flex; flex-direction: column; gap: 0.6rem; }
.person-photo {
  width: 100%;
  aspect-ratio: 4/5;
  background: var(--surface2);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.person-photo::before {
  content: 'Photo';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.35;
}
.person-bar {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.person:hover .person-bar { transform: scaleX(1); }
.person-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.2;
}
.person-role {
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.person-affil { font-size: 0.78rem; color: var(--muted); }

.funding-strip {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.funding-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.2rem;
}
.flogo {
  height: 44px;
  padding: 0 1.2rem;
  min-width: 110px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── RESPONSIVE ── */
@media (max-width: 820px) {
  .nav-links, .nav-sep { display: none; }
  .nav-burger { display: flex; }
  .nav-mobile { display: flex; }
  .blog-row { grid-template-columns: 1fr; }
  .blog-aside { display: none; }
  footer { flex-direction: column; align-items: flex-start; }
}

/* ── Sponsor sidebar (vertical logos, fixed right edge) ── */
.sponsor-sidebar {
  position: absolute;
  right: 1.5rem;
  top: calc(var(--nav-h) + 0.8rem);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1.1rem;
  z-index: 50;
  opacity: 1;
  pointer-events: none;
}
.sponsor-sidebar-label {
  font-size: 0.63rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(245,241,235,0.35);
  font-weight: 500;
  line-height: 1.7;
  text-align: right;
}
.sponsor-sidebar img {
  width: 6.05vw;
  height: auto;
  display: block;
  opacity: 0.85;
}
