/* css styles */
/* ==========================================================
   OIST NEUROSCIENCE SYMPOSIUM 2026
   ========================================================== */


/* ==========================================================
   1. DESIGN VARIABLES
   ========================================================== */

:root {
  --ons-red: #9b1616;
  --ons-light-red: #e79998;
  --ons-blue: #175a83;
  --ons-dark: #20252b;
  --ons-tree-blue: #a1c8de;
  --ons-lilas: #9978b3;
  --ons-rose: #b95077;

  --ons-light-blue: #dceef7;
  --ons-lilac: #ddd4ec;
  --ons-pink: #32070f;

  --stat-blue: #9fd1eb;
  --stat-purple: #c990bd;
  --stat-yellow: #ead083;
  --stat-red: #e9a09a;
  --stat-green: #a9cdb2;
  --stat-pink: #efb8c8;
  --stat-teal: #a0d3d1;
  --stat-gray: #d9d9d9;

  --content-width: 1200px;
}


/* ==========================================================
   2. GLOBAL
   ========================================================== */

html {
  scroll-behavior: smooth;
}

body {
  color: var(--ons-dark);
}


/* ==========================================================
   3. NAVBAR
   ========================================================== */

.navbar {
  background: white;
  border-bottom: none;
}

.navbar-title {
  font-weight: 700;
}


/* ==========================================================
   4. HERO
   ========================================================== */

.hero {
  width: 100vw;

  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);

  min-height: calc(100vh - 60px);

  display: flex;
  align-items: center;

  padding: 6rem 6vw;

  background:
    linear-gradient(
      115deg,
      #d9edf7 0%,
      #dceaf4 10%,
      #e4d7e8 20%,
      #efd2da 70%,
      #d8eaf5 100%
    );
}


.hero-inner {
  width: min(1400px, 100%);

  margin: auto;

  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    minmax(180px, 260px);

  gap: clamp(3rem, 7vw, 7rem);

  align-items: end;
}


/* ---------- Hero title ---------- */

.hero-title {
  margin: 0;

  color: var(--ons-red);

  font-family:
    "Arial Narrow",
    "Helvetica Neue",
    Arial,
    sans-serif;

  font-size: clamp(3.5rem, 7vw, 7.5rem);

  font-weight: 900;

  line-height: 0.82;

  letter-spacing: 0.07em;

  text-transform: uppercase;
}

.hero-title span {
  display: block;
}

.hero-main {
  min-width: 0;
}

.hero-title .symposium-title {
  color: var(--ons-tree-blue);
}


/* ---------- Hero tagline ---------- */

.hero-tagline {
  margin-top: 2rem;
  margin-bottom: 0;

  color: var(--ons-tree-blue);

  font-size: clamp(1.25rem, 2vw, 2rem);

  font-weight: 700;

  letter-spacing: 0.04em;
}


/* ---------- Hero description ---------- */

.hero-description {
  max-width: 720px;

  margin-top: 1.5rem;

  color: var(--ons-dark);

  font-size: 1.1rem;

  line-height: 1.7;
}


/* ---------- Hero actions ---------- */

.hero-actions {
  display: flex;

  align-items: center;

  flex-wrap: wrap;

  gap: 1.5rem;

  margin-top: 2.5rem;
}


.register-button {
  display: inline-block;

  padding: 0.9rem 1.5rem;

  background: var(--ons-red);

  color: white !important;

  border: 2px solid var(--ons-red);

  text-decoration: none;

  font-weight: 700;

  letter-spacing: 0.05em;

  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}


.register-button:hover {
  background: transparent;

  color: var(--ons-red) !important;

  transform: translateY(-2px);
}


.secondary-button {
  color: var(--ons-dark) !important;

  text-decoration: none;

  font-size: 0.9rem;

  font-weight: 700;

  letter-spacing: 0.05em;
}


/* ---------- Hero date ---------- */

.hero-event {
  padding-left: 2rem;

  border-left: 2px solid rgba(32, 37, 43, 0.25);
}


.event-logo {
  margin: 0 0 1.5rem;
}

.event-logo img {
  display: block;
  width: 180px;
  max-width: 100%;
  height: auto;
}


.event-label {
  margin: 0 0 0.75rem 0;

  color: var(--ons-dark);

  font-size: 0.85rem;

  font-weight: 700;

  letter-spacing: 0.12em;
}


.event-date {
  margin: 0;

  color: var(--ons-red);

  font-size: clamp(3rem, 5vw, 5.5rem);

  font-weight: 900;

  line-height: 0.85;
}


.event-date span {
  display: block;
}


.event-place {
  margin-top: 1.5rem;

  color: var(--ons-dark);

  font-size: 0.95rem;

  line-height: 1.5;
}


/* ==========================================================
   5. ONS 2025 AT A GLANCE
   ========================================================== */

.glance-section {
  width: 100vw;

  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);

  padding: 7rem 6vw;

  background: white;
}


.glance-inner {
  width: min(var(--content-width), 100%);

  margin: auto;
}


/* ---------- Section heading ---------- */

.section-eyebrow {
  margin-bottom: 0.6rem;

  color: var(--ons-red);

  font-size: 0.75rem;

  font-weight: 800;

  letter-spacing: 0.16em;
}


.glance-section h2 {
  margin: 0;

  color: var(--ons-tree-blue);

  font-family:
    "Arial Narrow",
    "Helvetica Neue",
    Arial,
    sans-serif;

  font-size: clamp(2.5rem, 5vw, 4.5rem);

  font-weight: 900;

  letter-spacing: 0.04em;
}


.glance-intro {
  max-width: 800px;

  margin-top: 1.5rem;

  color: var(--ons-dark);

  font-size: 1.15rem;

  line-height: 1.7;
}


/* ==========================================================
   6. STATISTICS
   ========================================================== */

.stats-grid {
  display: grid;

  grid-template-columns:
    repeat(4, minmax(0, 1fr));

  gap: 1.2rem;

  margin-top: 3.5rem;
  margin-bottom: 4rem;
}


.stat-card {
  min-height: 140px;

  display: flex;

  flex-direction: column;

  align-items: center;
  justify-content: center;

  padding: 1.5rem;

  text-align: center;

  border: 2px solid var(--ons-dark);

  border-radius: 18px;

  box-shadow: 4px 4px 0 var(--ons-dark);
}


.stat-number {
  display: block;

  font-size: 2.8rem;

  font-weight: 800;

  line-height: 1;
}


.stat-label {
  display: block;

  margin-top: 0.6rem;

  font-size: 0.75rem;

  font-weight: 700;

  letter-spacing: 0.06em;
}


.stat-blue {
  background: var(--stat-blue);
}

.stat-purple {
  background: var(--stat-purple);
}

.stat-yellow {
  background: var(--stat-yellow);
}

.stat-red {
  background: var(--stat-red);
}

.stat-teal {
  background: var(--stat-teal);
}

    
/* ---------- Text before photos ---------- */

.glance-text {
  max-width: 700px;

  margin-bottom: 2.5rem;

  font-size: 1.1rem;

  line-height: 1.7;
}


/* ==========================================================
   7. PHOTOS
   ========================================================== */

.photo-grid {
  display: grid;

  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  gap: clamp(1rem, 2vw, 1.75rem);

  align-items: start;

  margin-top: 3rem;
  margin-bottom: 5rem;
}


.photo-grid img {
  display: block;

  width: 100%;
  height: auto;

  border-radius: 4px;
}


/* ==========================================================
   2025 RESEARCH THEMES
   ========================================================== */

.themes-section {
  margin: 6rem auto;
  text-align: center;
}


.word-cloud {
  max-width: 850px;
  margin: 2.5rem auto 0;

  display: flex;
  flex-wrap: wrap;

  align-items: center;
  justify-content: center;

  gap: 0.3rem 1.5rem;

  line-height: 1;
}


.word {
  display: inline-block;
  font-weight: 700;
  white-space: nowrap;
}


/* Colors */

.word.red {
  color: var(--ons-red);
}

.word.blue {
  color: var(--ons-tree-blue);
}


/* Word importance */

.word-small {
  font-size: clamp(1rem, 1.5vw, 1.4rem);
}

.word-medium {
  font-size: clamp(1.4rem, 2.2vw, 2rem);
}

.word-large {
  font-size: clamp(1.8rem, 3vw, 3rem);
}

.word-xlarge {
  font-size: clamp(2.4rem, 4.5vw, 4.5rem);
}

.word-xxlarge {
  font-size: clamp(3rem, 6vw, 6rem);
}


/* ==========================================================
   FLOATING 2025 RESEARCH THEMES
   ========================================================== */

.themes-section {
  margin: 6rem auto;
  text-align: center;
}


.floating-themes {
  position: relative;

  width: 100%;
  max-width: 900px;
  height: 500px;

  margin: 2.5rem auto 0;

  overflow: hidden;
}


/* ---------- Words ---------- */

.theme {
  position: absolute;

  font-weight: 700;

  white-space: nowrap;

  line-height: 1;

  animation: float-theme 7s ease-in-out infinite alternate;
}


/* ---------- Positions ---------- */

.theme-1 {
  left: 8%;
  top: 12%;

  color: var(--ons-light-red);
  font-size: clamp(2rem, 4vw, 4rem);

  animation-delay: -1s;
}


.theme-2 {
  right: 12%;
  top: 10%;

  color: var(--ons-rose);
  font-size: clamp(1.3rem, 2.5vw, 2.5rem);

  animation-delay: -4s;
}


.theme-3 {
  left: 25%;
  top: 30%;

  color: var(--ons-tree-blue);
  font-size: clamp(2.2rem, 4.5vw, 4.5rem);

  animation-delay: -2s;
}


.theme-4 {
  right: 8%;
  top: 35%;

  color: var(--ons-light-red);
  font-size: clamp(1.6rem, 3vw, 3rem);

  animation-delay: -5s;
}


.theme-5 {
  left: 4%;
  top: 53%;

  color: var(--ons-blue);
  font-size: clamp(1.7rem, 3vw, 3rem);

  animation-delay: -3s;
}


.theme-6 {
  left: 38%;
  top: 50%;

  color: var(--ons-red);
  font-size: clamp(2.5rem, 5vw, 5rem);

  animation-delay: -6s;
}


.theme-7 {
  right: 5%;
  top: 64%;

  color: var(--ons-lilas);
  font-size: clamp(2rem, 4vw, 4rem);

  animation-delay: -1.5s;
}


.theme-8 {
  left: 15%;
  top: 76%;

  color: var(--ons-rose);
  font-size: clamp(1.8rem, 3.5vw, 3.5rem);

  animation-delay: -4.5s;
}


.theme-9 {
  right: 18%;
  top: 85%;

  color: var(--ons-tree-blue);
  font-size: clamp(1.3rem, 2.5vw, 2.5rem);

  animation-delay: -2.5s;
}


.theme-10 {
  left: 3%;
  top: 2%;

  color: var(--ons-blue);
  font-size: clamp(0.9rem, 1.5vw, 1.4rem);

  animation-delay: -5.5s;
}


/* ---------- Floating animation ---------- */

@keyframes float-theme {

  0% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(8px, -10px);
  }

  100% {
    transform: translate(-6px, 8px);
  }

}

@keyframes float-a {
  0%   { transform: translate(0, 0); }
  50%  { transform: translate(10px, -8px); }
  100% { transform: translate(-5px, 6px); }
}

@keyframes float-b {
  0%   { transform: translate(0, 0); }
  50%  { transform: translate(-8px, 7px); }
  100% { transform: translate(6px, -10px); }
}

@keyframes float-c {
  0%   { transform: translate(0, 0); }
  50%  { transform: translate(5px, 10px); }
  100% { transform: translate(-9px, -4px); }
}


.theme-1,
.theme-4,
.theme-7,
.theme-10 {
  animation-name: float-a;
}

.theme-2,
.theme-5,
.theme-8 {
  animation-name: float-b;
}

.theme-3,
.theme-6,
.theme-9 {
  animation-name: float-c;
}

/* ==========================================================
   8. PARTICIPANT BREAKDOWN
   ========================================================== */

.participant-breakdown {
  width: 100%;

  margin-top: 2rem;
  margin-bottom: 3rem;

  text-align: center;
}


.breakdown-title {
  margin-bottom: 2.5rem;

  color: var(--ons-dark);

  font-size: 0.8rem;

  font-weight: 800;

  letter-spacing: 0.15em;
}


.percentage-grid {
  display: grid;

  grid-template-columns:
    repeat(6, minmax(0, 1fr));

  gap: clamp(0.8rem, 2vw, 1.5rem);

  align-items: start;
}


.percentage-item {
  width: 100%;

  aspect-ratio: 1 / 1;

  display: flex;

  flex-direction: column;

  align-items: center;
  justify-content: center;

  padding: 1rem;

  border-radius: 50%;

  text-align: center;
}


.percentage-number {
  display: block;

  font-size: clamp(1.25rem, 2vw, 2rem);

  font-weight: 800;

  line-height: 1;
}


.percentage-label {
  display: block;

  margin-top: 0.6rem;

  font-size: clamp(0.55rem, 0.75vw, 0.7rem);

  font-weight: 700;

  line-height: 1.25;

  letter-spacing: 0.03em;
}


.percent-blue {
  background: var(--stat-blue);
}

.percent-purple {
  background: var(--stat-purple);
}

.percent-yellow {
  background: var(--stat-yellow);
}

.percent-red {
  background: var(--stat-red);
}

.percent-green {
  background: var(--stat-green);
}

.percent-pink {
  background: var(--stat-pink);
}

.percent-teal {
  background: var(--stat-teal);
}

.percent-gray {
  background: var(--stat-gray);
}


/* ==========================================================
   9. RESPONSIVE — TABLET
   ========================================================== */

@media (max-width: 900px) {

  /* Hero */

  .hero {
    min-height: auto;

    padding: 5rem 5vw;
  }


  .hero-inner {
    grid-template-columns: 1fr;

    gap: 3.5rem;

    align-items: start;
  }


  .hero-title {
    font-size: clamp(1rem, 7.5vw, 4.2rem);

    line-height: 0.88;

    overflow-wrap: anywhere;
  }


  .hero-event {
    padding-left: 0;
    padding-top: 2rem;

    border-left: none;

    border-top:
      2px solid rgba(32, 37, 43, 0.25);
  }


  /* Participant breakdown */

  .percentage-grid {
    grid-template-columns:
      repeat(3, minmax(0, 1fr));

    max-width: 650px;

    margin-left: auto;
    margin-right: auto;
  }

}


/* ==========================================================
   9. JOIN US — ONS 2026
   ========================================================== */

.join-section {
  width: 100vw;

  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);

  padding: 7rem 6vw;

  background:
    linear-gradient(
      115deg,
      #d9edf7 0%,
      #dceaf4 10%,
      #e4d7e8 20%,
      #efd2da 70%,
      #d8eaf5 100%
    );
}


.join-inner {
  width: min(var(--content-width), 100%);
  margin: auto;

  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.5fr);

  gap: clamp(4rem, 7vw, 7rem);

  align-items: start;
}


/* ---------- Main content ---------- */

.join-eyebrow {
  margin: 0 0 1rem 0;

  color: var(--ons-tree-blue);

  font-size: 0.8rem;

  font-weight: 800;

  letter-spacing: 0.15em;
}


.join-section h2 {
  margin: 0;

  color: var(--ons-red);

  font-family:
    "Arial Narrow",
    "Helvetica Neue",
    Arial,
    sans-serif;

  font-size: clamp(3.5rem, 7vw, 6.5rem);

  font-weight: 900;

  line-height: 0.85;

  letter-spacing: 0.04em;
}


.join-section h2 .join-title-event {
  color: var(--ons-tree-blue);
}


.join-intro {
  max-width: 650px;

  margin-top: 2rem;

  color: var(--ons-dark);

  font-size: 1.1rem;

  line-height: 1.7;
}


/* ---------- Activities ---------- */

.join-activities {
  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 0;

  max-width: 650px;

  margin-top: 3rem;

  border-top: 1px solid rgba(32, 37, 43, 0.25);
}


.join-activity {
  display: flex;

  align-items: center;

  gap: 1rem;

  padding: 1.25rem 0;

  border-bottom:
    1px solid rgba(32, 37, 43, 0.25);
}


.join-activity:nth-child(odd) {
  padding-right: 2rem;
}


.join-activity:nth-child(even) {
  padding-left: 2rem;
}


.activity-number {
  color: var(--ons-red);

  font-size: 0.75rem;

  font-weight: 800;
}


.activity-name {
  color: var(--ons-dark);

  font-size: 0.9rem;

  font-weight: 800;

  letter-spacing: 0.06em;
}


/* ---------- Registration side ---------- */

.join-register {
  padding-left: 3rem;

  border-left: 2px solid rgba(32, 37, 43, 0.25);
}

.join-question {
  margin: 0 0 2rem 0;

  color: var(--ons-tree-blue);

  font-size: 1.25rem;

  font-weight: 700;

  line-height: 1.3;
}


.join-date {
  margin: 0 0 2.5rem 0;

  color: var(--ons-red);

  font-size: clamp(3.5rem, 6vw, 5.5rem);

  font-weight: 900;

  line-height: 0.82;
}


.join-date span {
  display: block;
}


/* ---------- Registration options ---------- */

.registration-label {
  margin: 0 0 1rem 0;

  color: var(--ons-dark);

  font-size: 0.7rem;
  font-weight: 800;

  letter-spacing: 0.12em;
}


.registration-options {
  display: flex;
  flex-direction: column;

  gap: 0.75rem;
}


.registration-deadline {
  margin: 1rem 0 0;
  color: var(--ons-dark);
  font-size: 1.2rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}


.registration-option {
  display: flex;

  align-items: center;
  justify-content: space-between;

  width: 100%;

  padding: 1rem 1.2rem;

  background: rgba(255, 255, 255, 0.5);

  border: 2px solid var(--ons-red);

  color: var(--ons-red) !important;

  text-decoration: none;

  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}


.registration-type {
  font-size: 0.8rem;

  font-weight: 800;

  letter-spacing: 0.05em;
}


.registration-arrow {
  margin-left: 1rem;

  font-size: 1.2rem;

  transition: transform 0.2s ease;
}


.registration-option:hover {
  background: var(--ons-red);

  color: white !important;

  transform: translateY(-2px);
}


.registration-option:hover .registration-arrow {
  transform: translateX(4px);
}


/* ==========================================================
   FOOTER
   ========================================================== */

.site-footer {
  width: 100%;

  padding: 1.2rem 2rem;

  background: white;

  border-top: 1px solid rgba(32, 37, 43, 0.15);

  box-sizing: border-box;
}


.footer-inner {
  width: 100%;
  max-width: 1200px;

  margin: 0 auto;

  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 2rem;

  font-size: 0.75rem;

  letter-spacing: 0.05em;
}


.footer-organizer {
  display: flex;
  align-items: center;
  gap: 0.7rem;

  min-width: 0;
}


.footer-organizer > span {
  color: var(--ons-dark);
}


.footer-organizer strong {
  color: var(--ons-red);

  font-weight: 800;

  letter-spacing: 0.08em;
}


.footer-contact {
  display: flex;
  align-items: center;

  gap: 0.6rem;

  min-width: 0;
}


.footer-contact > span {
  color: var(--ons-blue);

  font-weight: 800;

  letter-spacing: 0.1em;

  white-space: nowrap;
}


.footer-contact a {
  color: var(--ons-dark) !important;

  text-decoration: none;

  overflow-wrap: anywhere;
}


.footer-contact a:hover {
  color: var(--ons-blue) !important;

  text-decoration: underline;
}

/* ==========================================================
   10. RESPONSIVE — PHONE
   ========================================================== */

@media (max-width: 600px) {

  /* General spacing */

  .hero,
  .glance-section {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }


  .glance-section {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }


  /* Hero */

  .hero {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }


  .hero-title {
    font-size: clamp(1rem, 7.5vw, 4.2rem);

    letter-spacing: 0.035em;
  }


  .hero-tagline {
    font-size: 1.25rem;
  }


  .hero-description {
    font-size: 1rem;
  }


  /* Statistics */

  .stats-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));

    gap: 1rem;

    margin-top: 2.5rem;
  }


  .stat-card {
    min-height: 120px;

    padding: 1rem;
  }


  .stat-number {
    font-size: 2.2rem;
  }


  /* Photos */

  .photo-grid {
    grid-template-columns: 1fr;

    gap: 1.25rem;

    margin-top: 2rem;
    margin-bottom: 4rem;
  }


  /* Participant breakdown */

  .percentage-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));

    gap: 1rem;

    max-width: 420px;
  }


  .percentage-item {
    max-width: 180px;

    justify-self: center;
  }


  .percentage-number {
    font-size: 1.6rem;
  }


  .percentage-label {
    font-size: 0.65rem;
  }


    .join-section {
    padding: 5rem 1.25rem;
  }


  .join-section h2 {
    font-size: clamp(1.5rem, 10vw, 3.75rem);

    overflow-wrap: anywhere;
  }


  .join-activities {
    grid-template-columns: 1fr;
  }


  .join-activity:nth-child(odd),
  .join-activity:nth-child(even) {
    padding-left: 0;
    padding-right: 0;
  }


  .join-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 4rem;
  }

  .join-register {
    padding-left: 0;
    padding-top: 3rem;

    border-left: none;
    border-top: 2px solid rgba(32, 37, 43, 0.25);
  }

   /* Footer */

  .site-footer {
    padding: 1.5rem 1.25rem;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .footer-organizer,
  .footer-contact {
    flex-wrap: wrap;
  }

}

@media (prefers-reduced-motion: reduce) {

  .theme {
    animation: none;
  }

}
