/* ==========================================================================
   Food Memories — TEI '27 Studio Workshop
   Design System + Full Stylesheet
   ========================================================================== */

/* ---------- CSS Variables (from design.md) ---------- */
:root {
  /* Brand */
  --fm-terracotta: #B76549;
  --fm-terracotta-dark: #A94E37;
  --fm-olive: #777C56;
  --fm-olive-dark: #353B2E;
  --fm-gold: #D5A34D;

  /* Surfaces */
  --fm-cream: #F3EBDD;
  --fm-paper: #E5D7C1;
  --fm-white: #FAF7F0;
  --fm-clay: #D9B8A2;

  /* Typography */
  --fm-text: #35352F;
  --fm-muted: #8C8172;
  --fm-border: #D8C9B4;

  /* Shadows */
  --fm-shadow-card: 0 4px 12px rgba(53, 43, 32, 0.08), 0 1px 3px rgba(53, 43, 32, 0.05);
  --fm-shadow-hover: 0 12px 28px rgba(53, 43, 32, 0.14), 0 3px 8px rgba(53, 43, 32, 0.07);
  --fm-shadow-paper: 2px 4px 10px rgba(53, 43, 32, 0.12);

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;

  /* Fonts */
  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--fm-text);
  background-color: var(--fm-cream);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--fm-terracotta);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--fm-terracotta-dark);
}

/* ---------- Three.js Canvas ---------- */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ---------- Grain Overlay ---------- */
.grain-overlay {
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  z-index: 1;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.6;
}

/* ---------- Navigation ---------- */
#main-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-6);
  background: rgba(243, 235, 221, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--fm-border);
  transition: all 0.4s var(--ease-out);
}

#main-nav.scrolled {
  padding: var(--space-3) var(--space-6);
  background: rgba(243, 235, 221, 0.95);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  color: var(--fm-white);
  background: var(--fm-terracotta);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
}

.nav-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  color: var(--fm-text);
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: var(--space-5);
  align-items: center;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  color: var(--fm-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.3s ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--fm-terracotta);
  transition: width 0.3s var(--ease-out);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--fm-text);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-cta {
  background: var(--fm-terracotta) !important;
  color: var(--fm-white) !important;
  padding: var(--space-2) var(--space-5) !important;
  border-radius: 4px;
  font-weight: 500 !important;
}

.nav-cta:hover {
  background: var(--fm-terracotta-dark) !important;
}

.nav-cta::after {
  display: none !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--fm-text);
  transition: all 0.3s ease;
}

/* ---------- Sections ---------- */
.section {
  position: relative;
  z-index: 2;
  padding: var(--space-8) 0;
}

.section-alt {
  background: var(--fm-white);
}

.section-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-7);
}

.section-label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fm-terracotta);
  display: block;
  margin-bottom: var(--space-3);
}

.section-title {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--fm-text);
  max-width: 700px;
  margin: 0 auto;
}

.section-desc {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--fm-muted);
  margin-top: var(--space-3);
}

/* ---------- Hero Section ---------- */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px var(--space-6) var(--space-8);
  position: relative;
  overflow: hidden;
}

.hero-content {
  text-align: center;
  position: relative;
  z-index: 3;
}

.hero-badge {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fm-muted);
  border: 1px solid var(--fm-border);
  padding: var(--space-2) var(--space-5);
  border-radius: 100px;
  margin-bottom: var(--space-6);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s var(--ease-out) 0.2s forwards;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.0;
  margin-bottom: var(--space-5);
}

.title-line {
  display: block;
  font-size: clamp(60px, 12vw, 140px);
  opacity: 0;
  transform: translateY(40px);
  animation: fadeInUp 1s var(--ease-out) forwards;
}

.title-line[data-delay="0"] {
  animation-delay: 0.4s;
}

.title-line[data-delay="1"] {
  animation-delay: 0.6s;
}

.title-line.accent {
  color: var(--fm-terracotta);
  font-style: italic;
  font-weight: 400;
}

.hero-subtitle {
  font-family: var(--font-display);
  font-size: clamp(16px, 2.5vw, 22px);
  font-weight: 400;
  color: var(--fm-muted);
  line-height: 1.6;
  margin-bottom: var(--space-7);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s var(--ease-out) 0.9s forwards;
}

.hero-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-5);
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s var(--ease-out) 1.1s forwards;
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.meta-label {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fm-terracotta);
}

.meta-value {
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--fm-text);
}

.meta-divider {
  width: 1px;
  height: 32px;
  background: var(--fm-border);
}

.hero-scroll-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-7);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fm-muted);
  opacity: 0;
  animation: fadeInUp 0.8s var(--ease-out) 1.4s forwards;
  transition: color 0.3s ease;
}

.hero-scroll-cta:hover {
  color: var(--fm-terracotta);
}

.hero-scroll-cta svg {
  animation: bounceDown 2s infinite;
}

/* Floating cards in hero */
.hero-floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.floating-card {
  position: absolute;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--fm-shadow-paper);
  opacity: 0;
  animation: fadeInFloat 1.2s var(--ease-out) forwards;
  transition: transform 0.6s var(--ease-out);
}

.floating-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-1 {
  width: 260px;
  height: 315px;
  top: 15%;
  left: 5%;
  transform: rotate(-6deg);
  animation-delay: 1.2s;
}

.card-2 {
  width: 235px;
  height: 235px;
  bottom: 20%;
  right: 6%;
  transform: rotate(4deg);
  animation-delay: 1.4s;
}

.card-3 {
  width: 205px;
  height: 260px;
  top: 20%;
  right: 10%;
  transform: rotate(8deg);
  animation-delay: 1.6s;
}

/* ---------- About Section ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-7);
  align-items: center;
  margin-bottom: var(--space-8);
}

.about-text .lead-text {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--fm-text);
  margin-bottom: var(--space-5);
}

.about-text p {
  margin-bottom: var(--space-4);
  color: var(--fm-muted);
  line-height: 1.7;
}

.about-visual {
  display: flex;
  justify-content: center;
}

.paper-stack {
  position: relative;
  width: 340px;
  height: 420px;
}

.paper-card {
  position: absolute;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--fm-shadow-paper);
  transition: transform 0.6s var(--ease-out);
}

.paper-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.paper-back {
  width: 300px;
  height: 380px;
  top: 0;
  left: 0;
  transform: rotate(-3deg);
}

.paper-front {
  width: 300px;
  height: 380px;
  top: 30px;
  left: 40px;
  transform: rotate(3deg);
}

.paper-stack:hover .paper-back {
  transform: rotate(-6deg) translateX(-10px);
}

.paper-stack:hover .paper-front {
  transform: rotate(5deg) translateX(10px);
}

/* Themes */
.themes-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
}

.theme-card {
  background: var(--fm-white);
  border: 1px solid var(--fm-border);
  border-radius: 8px;
  padding: var(--space-6) var(--space-5);
  text-align: center;
  transition: all 0.4s var(--ease-out);
}

.theme-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--fm-shadow-hover);
  border-color: var(--fm-terracotta);
}

.theme-icon {
  color: var(--fm-terracotta);
  margin-bottom: var(--space-4);
}

.theme-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  margin-bottom: var(--space-3);
}

.theme-card p {
  font-size: 14px;
  color: var(--fm-muted);
  line-height: 1.6;
}

/* ---------- Activities Section ---------- */
.activities-timeline {
  max-width: 760px;
  margin: 0 auto;
}

.module-block {
  margin-bottom: var(--space-7);
}

.module-label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fm-terracotta);
  margin-bottom: var(--space-2);
}

.module-title {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 400;
  margin-bottom: var(--space-5);
  color: var(--fm-text);
}

.activity-card {
  display: flex;
  gap: var(--space-5);
  background: var(--fm-cream);
  border: 1px solid var(--fm-border);
  border-radius: 8px;
  padding: var(--space-6);
  margin-bottom: var(--space-4);
  transition: all 0.4s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.activity-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--fm-terracotta);
  transform: scaleY(0);
  transition: transform 0.4s var(--ease-out);
  transform-origin: top;
}

.activity-card:hover {
  box-shadow: var(--fm-shadow-hover);
  transform: translateY(-2px);
}

.activity-card:hover::before {
  transform: scaleY(1);
}

.activity-number {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 300;
  color: var(--fm-clay);
  line-height: 1;
  min-width: 60px;
}

.activity-content h4 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  margin-bottom: var(--space-3);
}

.activity-content p {
  font-size: 15px;
  color: var(--fm-muted);
  line-height: 1.7;
  margin-bottom: var(--space-4);
}

.activity-prompt {
  background: var(--fm-paper);
  border-radius: 4px;
  padding: var(--space-4);
  margin-bottom: var(--space-3);
}

.prompt-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fm-terracotta);
  display: block;
  margin-bottom: var(--space-2);
}

.activity-prompt em {
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--fm-text);
  font-style: italic;
}

.activity-duration {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fm-olive);
  background: rgba(119, 124, 86, 0.1);
  padding: var(--space-1) var(--space-3);
  border-radius: 100px;
}

/* Materials */
.materials-section {
  margin-top: var(--space-7);
  padding-top: var(--space-7);
  border-top: 1px solid var(--fm-border);
}

.materials-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  text-align: center;
  margin-bottom: var(--space-6);
}

.materials-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
}

.material-item {
  background: var(--fm-cream);
  border: 1px solid var(--fm-border);
  border-radius: 8px;
  padding: var(--space-5);
  text-align: center;
  transition: all 0.3s ease;
}

.material-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--fm-shadow-card);
}

.material-emoji {
  font-size: 32px;
  display: block;
  margin-bottom: var(--space-3);
}

.material-name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
  display: block;
  margin-bottom: var(--space-2);
}

.material-desc {
  font-size: 13px;
  color: var(--fm-muted);
}

/* Interactive Sensory Playground */
.sensory-playground {
  margin-top: var(--space-7);
  background: var(--fm-cream);
  border: 1px solid var(--fm-border);
  border-radius: 10px;
  padding: var(--space-6);
  text-align: center;
  box-shadow: var(--fm-shadow-card);
}

.playground-header h4 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  margin-bottom: var(--space-2);
}

.playground-header p {
  font-size: 15px;
  color: var(--fm-muted);
  max-width: 560px;
  margin: 0 auto var(--space-5);
}

.sense-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}

.sense-tab {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: var(--space-2) var(--space-4);
  border-radius: 100px;
  border: 1px solid var(--fm-border);
  background: var(--fm-white);
  color: var(--fm-muted);
  cursor: pointer;
  transition: all 0.25s ease;
}

.sense-tab:hover {
  border-color: var(--fm-terracotta);
  color: var(--fm-text);
}

.sense-tab.active {
  background: var(--fm-terracotta);
  border-color: var(--fm-terracotta);
  color: var(--fm-white);
}

.sensory-card-stage {
  perspective: 1000px;
  max-width: 520px;
  margin: 0 auto;
}

.sensory-card {
  background: var(--fm-white);
  border: 1px solid var(--fm-border);
  border-radius: 8px;
  padding: var(--space-6) var(--space-5);
  box-shadow: var(--fm-shadow-paper);
  cursor: pointer;
  transition: transform 0.45s var(--ease-out), box-shadow 0.3s ease, border-color 0.3s ease;
  user-select: none;
}

.sensory-card:hover {
  transform: translateY(-4px) rotate(-0.5deg);
  box-shadow: var(--fm-shadow-hover);
  border-color: var(--fm-terracotta);
}

.sensory-card.flipping {
  transform: rotateY(12deg) scale(0.97);
  opacity: 0.7;
}

.sensory-card-category {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fm-olive);
  display: block;
  margin-bottom: var(--space-2);
}

.sensory-card-word {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  color: var(--fm-terracotta);
  margin-bottom: var(--space-3);
}

.sensory-card-prompt {
  font-family: var(--font-display);
  font-size: 18px;
  font-style: italic;
  color: var(--fm-text);
  line-height: 1.5;
  margin-bottom: var(--space-4);
}

.sensory-card-hint {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fm-muted);
}

/* ---------- Schedule Section ---------- */
.schedule-table {
  max-width: 860px;
  margin: 0 auto;
}

.schedule-row {
  display: grid;
  grid-template-columns: 160px 220px 1fr;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--fm-border);
  align-items: center;
  transition: all 0.3s ease;
}

.schedule-row:hover:not(.schedule-header-row) {
  background: rgba(183, 101, 73, 0.04);
}

.schedule-header-row {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fm-muted);
  border-bottom: 2px solid var(--fm-border);
}

.schedule-time {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--fm-text);
}

.schedule-activity {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
}

.schedule-desc {
  font-size: 14px;
  color: var(--fm-muted);
}

.schedule-row[data-type="break"] {
  background: repeating-linear-gradient(-45deg,
      transparent,
      transparent 10px,
      rgba(217, 184, 162, 0.08) 10px,
      rgba(217, 184, 162, 0.08) 20px);
}

.schedule-row[data-type="break"] .schedule-time {
  color: var(--fm-muted);
}

/* ---------- Goals Section ---------- */
.goals-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}

.goal-card {
  background: var(--fm-cream);
  border: 1px solid var(--fm-border);
  border-radius: 8px;
  padding: var(--space-6);
  transition: all 0.4s var(--ease-out);
  position: relative;
}

.goal-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--fm-shadow-hover);
}

.goal-number {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 300;
  color: var(--fm-clay);
  display: block;
  margin-bottom: var(--space-3);
}

.goal-card p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--fm-muted);
}

.goal-card strong {
  color: var(--fm-text);
  font-weight: 500;
}

/* ---------- Organisers Section ---------- */
.organisers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}

.organiser-card {
  background: var(--fm-white);
  border: 1px solid var(--fm-border);
  border-radius: 8px;
  padding: var(--space-6);
  text-align: center;
  transition: all 0.4s var(--ease-out);
}

.organiser-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--fm-shadow-hover);
}

.organiser-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--fm-olive);
  color: var(--fm-white);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-4);
}

.organiser-card:nth-child(2) .organiser-avatar {
  background: var(--fm-terracotta);
}

.organiser-card:nth-child(3) .organiser-avatar {
  background: var(--fm-olive-dark);
}

.organiser-card:nth-child(4) .organiser-avatar {
  background: var(--fm-gold);
}

.organiser-card:nth-child(5) .organiser-avatar {
  background: var(--fm-terracotta-dark);
}

.organiser-card:nth-child(6) .organiser-avatar {
  background: var(--fm-olive);
}

.organiser-card h4 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  margin-bottom: var(--space-2);
}

.organiser-affiliation {
  font-size: 13px;
  color: var(--fm-muted);
  line-height: 1.5;
  margin-bottom: var(--space-3);
}

.organiser-email {
  font-size: 12px;
  color: var(--fm-terracotta);
  word-break: break-all;
}

/* ---------- CTA / Participate Section ---------- */
.section-cta {
  background: var(--fm-olive-dark);
  color: var(--fm-cream);
}

.cta-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.section-cta .section-label {
  color: var(--fm-gold);
}

.cta-title {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 400;
  line-height: 1.15;
  color: var(--fm-cream);
  margin-bottom: var(--space-5);
}

.cta-text {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(243, 235, 221, 0.75);
  margin-bottom: var(--space-7);
}

.cta-details {
  text-align: left;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: var(--space-5) var(--space-6);
  margin-bottom: var(--space-7);
}

.cta-detail {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-3) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cta-detail:last-child {
  border-bottom: none;
}

.cta-detail-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fm-gold);
  min-width: 100px;
  padding-top: 2px;
}

.cta-detail-value {
  font-size: 15px;
  color: rgba(243, 235, 221, 0.9);
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  background: var(--fm-terracotta);
  color: var(--fm-white);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: var(--space-4) var(--space-6);
  border-radius: 5px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.cta-button:hover {
  background: var(--fm-terracotta-dark);
  color: var(--fm-white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(183, 101, 73, 0.3);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
}

.cta-button-secondary {
  background: transparent;
  border: 1px solid rgba(243, 235, 221, 0.35);
  color: var(--fm-cream);
}

.cta-button-secondary:hover {
  background: rgba(243, 235, 221, 0.12);
  border-color: var(--fm-cream);
  box-shadow: none;
}

.cta-button-ghost {
  background: rgba(213, 163, 77, 0.14);
  border: 1px solid rgba(213, 163, 77, 0.4);
  color: var(--fm-gold);
}

.cta-button-ghost:hover {
  background: rgba(213, 163, 77, 0.25);
  color: var(--fm-cream);
  box-shadow: none;
}

.copy-feedback {
  margin-top: var(--space-3);
  font-size: 13px;
  color: var(--fm-gold);
  min-height: 20px;
}

/* ---------- Footer ---------- */
#footer {
  position: relative;
  z-index: 2;
  background: var(--fm-text);
  color: rgba(243, 235, 221, 0.6);
  padding: var(--space-7) 0 var(--space-5);
}

.footer-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-7);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  color: var(--fm-cream);
  display: block;
  margin-bottom: var(--space-3);
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.6;
}

.footer-links-group h5 {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(243, 235, 221, 0.4);
  margin-bottom: var(--space-4);
}

.footer-links-group ul {
  list-style: none;
}

.footer-links-group li {
  margin-bottom: var(--space-3);
}

.footer-links-group a {
  font-size: 14px;
  color: rgba(243, 235, 221, 0.6);
  transition: color 0.3s ease;
}

.footer-links-group a:hover {
  color: var(--fm-cream);
}

.footer-bottom {
  padding-top: var(--space-5);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--space-5);
}

.footer-funding p {
  font-size: 12px;
  line-height: 1.6;
  max-width: 600px;
}

.footer-copyright {
  font-size: 12px;
  white-space: nowrap;
}

/* ---------- Scroll-reveal (JS-driven) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Animations ---------- */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInFloat {
  to {
    opacity: 0.75;
  }
}

@keyframes bounceDown {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(6px);
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr;
  }

  .themes-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .goals-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .organisers-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .materials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .schedule-row {
    grid-template-columns: 130px 180px 1fr;
  }

  .floating-card {
    display: none;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(243, 235, 221, 0.98);
    flex-direction: column;
    padding: var(--space-5);
    gap: var(--space-4);
    border-bottom: 1px solid var(--fm-border);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .section {
    padding: var(--space-7) 0;
  }

  .section-title {
    font-size: 32px;
  }

  .section-container {
    padding: 0 var(--space-4);
  }

  .hero-title .title-line {
    font-size: clamp(48px, 14vw, 80px);
  }

  .hero-meta {
    flex-direction: column;
    gap: var(--space-4);
  }

  .meta-divider {
    display: none;
  }

  .themes-row,
  .goals-grid,
  .organisers-grid,
  .materials-grid {
    grid-template-columns: 1fr;
  }

  .schedule-row {
    grid-template-columns: 1fr;
    gap: var(--space-2);
  }

  .schedule-header-row {
    display: none;
  }

  .schedule-activity {
    font-size: 16px;
  }

  .activity-card {
    flex-direction: column;
  }

  .activity-number {
    font-size: 36px;
  }

  .paper-stack {
    width: 260px;
    height: 340px;
  }

  .paper-back,
  .paper-front {
    width: 240px;
    height: 300px;
  }

  .cta-title {
    font-size: 36px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}


/* ---------- Updates: Navbar RELISH Logo, Hero Call Title, Organiser Photos, Participation & Institutional Logos ---------- */
.nav-relish-logo {
  display: inline-flex;
  align-items: center;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-relish-logo:hover {
  transform: translateY(-1px);
  opacity: 0.92;
}

.hero-call-title {
  font-family: var(--font-display);
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fm-terracotta);
  margin-bottom: var(--space-3);
  opacity: 0;
  transform: translateY(16px);
  animation: fadeInUp 0.8s var(--ease-out) 0.1s forwards;
}

.hero-badge {
  font-size: 13px;
  padding: 10px 26px;
}

/* Organiser photo avatars */
.organiser-avatar {
  width: 76px;
  height: 76px;
  overflow: hidden;
  border: 2px solid var(--fm-border);
}

.organiser-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Who can join / What will you take away */
.participation-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5);
  margin-top: var(--space-7);
}

.participation-info-card {
  background: var(--fm-cream);
  border: 1px solid var(--fm-border);
  border-radius: 8px;
  padding: var(--space-6);
  box-shadow: var(--fm-shadow-card);
}

.participation-info-card h3 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 500;
  color: var(--fm-terracotta);
  margin-bottom: var(--space-3);
}

.participation-info-card p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--fm-text);
}

/* How to apply block */
.how-to-apply {
  text-align: left;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(213, 163, 77, 0.25);
  border-radius: 8px;
  padding: var(--space-5) var(--space-6);
  margin-bottom: var(--space-6);
}

.how-to-apply h3 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 500;
  color: var(--fm-gold);
  margin-bottom: var(--space-3);
}

.how-to-apply p {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(243, 235, 221, 0.88);
}

.how-to-apply a {
  color: var(--fm-gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.how-to-apply a:hover {
  color: var(--fm-cream);
}

/* Footer institutional logos */
.footer-institutions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-7);
  padding: var(--space-6) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.institution-logo {
  color: rgba(243, 235, 221, 0.72);
  display: inline-flex;
  align-items: center;
  transition: color 0.25s ease, transform 0.25s ease;
}

.institution-logo:hover {
  color: var(--fm-cream);
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .participation-info-grid {
    grid-template-columns: 1fr;
  }

  .footer-institutions {
    gap: var(--space-5);
  }
}

.nav-relish-logo img {
  height: 32px;
  width: auto;
  display: block;
}

.institution-logo img {
  height: 44px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  display: block;
}

/* Lighter footer background for logo visibility */
#footer {
  background: var(--fm-paper);
  color: var(--fm-muted);
  border-top: 1px solid var(--fm-border);
}

.footer-top,
.footer-institutions {
  border-bottom-color: var(--fm-border);
}

.footer-logo {
  color: var(--fm-text);
}

.footer-links-group h5 {
  color: var(--fm-terracotta);
}

.footer-links-group a {
  color: var(--fm-muted);
}

.footer-links-group a:hover {
  color: var(--fm-text);
}