/*
* Garo Art Landing Page Styles
* Inspired by Garo's geometric, surrealist artwork
*/

:root {
  --primary: #1a1a1a;
  --secondary: #f9f2e8;
  --accent: #a67c52;
  --dark-accent: #654321;
  --light-accent: #d4b68f;
  --text: #333333;
  --text-light: #f9f2e8;
  --shadow: rgba(0, 0, 0, 0.2);
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Work Sans', sans-serif;
  background-color: var(--secondary);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Background Elements */
.noise-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAMAAAAp4XiDAAAAUVBMVEWFhYWDg4N3d3dtbW17e3t1dXWBgYGHh4d5eXlzc3OLi4ubm5uVlZWPj4+FhYWHh4d5eXlzc3OLi4ubm5uVlZWPj4+FhYWHh4d5eXlzc3OLi4t2mQBCAAAADXRSTlMoS0xMTyQpJyUjHCsrGXgDQQAAAC1JREFUSMdjYBgFo2AUjIJRMAoshCi0xtDAqLHpj4EZdQmjQUnPyoKCUTAKCAEAGw0MMfpbZZIAAAAASUVORK5CYII=');
  opacity: 0.03;
  pointer-events: none;
  z-index: 999;
}

.checkerboard-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(45deg, var(--light-accent) 25%, transparent 25%),
    linear-gradient(-45deg, var(--light-accent) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, var(--light-accent) 75%),
    linear-gradient(-45deg, transparent 75%, var(--light-accent) 75%);
  background-size: 20px 20px;
  background-position:
    0 0,
    0 10px,
    10px -10px,
    -10px 0px;
  opacity: 0.05;
  pointer-events: none;
  z-index: -1;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: 4.5rem;
  margin-bottom: 1.5rem;
  letter-spacing: 0.2rem;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
}

h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 50%;
  height: 2px;
  background-color: var(--accent);
}

h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1.5rem;
}

a {
  color: var(--dark-accent);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--accent);
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  background-color: rgba(249, 242, 232, 0.95);
  box-shadow: 0 2px 10px var(--shadow);
  backdrop-filter: blur(5px);
}

.logo-container {
  display: flex;
  align-items: center;
  padding: 1rem;
}

.header-logo {
  width: 32px;
  height: 32px;
  transition: transform 0.3s ease;
}

.header-logo:hover {
  transform: scale(1.1);
}

nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 2.5rem;
}

nav ul li a {
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05rem;
  position: relative;
}

nav ul li a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent);
  transition: var(--transition);
}

nav ul li a:hover::after {
  width: 100%;
}

.ecosystem-link a {
  font-size: 0.9rem;
  opacity: 0.7;
  transition: var(--transition);
}

.ecosystem-link a:hover {
  opacity: 1;
}

/* Hero Section */
#hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background-color: var(--primary);
  color: var(--text-light);
}

.hero-content {
  text-align: center;
  z-index: 1;
  padding: 0 1rem;
}

.tagline {
  font-size: 1.5rem;
  letter-spacing: 0.1rem;
  margin-bottom: 2rem;
  font-family: 'Playfair Display', serif;
  font-style: italic;
}

.time-symbol {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto;
  margin-top: 3rem;
}

.rotating-circle {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  animation: spin 10s linear infinite;
}

.rotating-circle::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 5px;
  height: 5px;
  background-color: var(--accent);
  border-radius: 50%;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* About Section */
#about {
  padding: 8rem 0;
  background-color: var(--secondary);
  position: relative;
}

.about-content {
  display: flex;
  align-items: center;
  gap: 4rem;
}

.about-text {
  flex: 2;
}

.symbolic-element {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.spiral-container {
  position: relative;
  width: 200px;
  height: 200px;
}

.spiral {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: conic-gradient(
    from 0deg,
    rgba(166, 124, 82, 0) 0%,
    rgba(166, 124, 82, 0.1) 25%,
    rgba(166, 124, 82, 0.2) 50%,
    rgba(166, 124, 82, 0.5) 75%,
    rgba(166, 124, 82, 0.8) 100%
  );
  border-radius: 50%;
  animation: spin 20s linear infinite reverse;
}

.spiral::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 80%;
  background-color: var(--secondary);
  border-radius: 50%;
}

/* Refined symbolic element: Seed of Life */
.about-symbol {
  position: relative;
  width: 220px;
  height: 220px;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.15));
}

.seed-of-life {
  width: 100%;
  height: 100%;
}

.seed-of-life .petal,
.seed-of-life .outline {
  fill: none;
  stroke: #a67c52; /* solid to avoid external gradient quirks */
  stroke-width: 2;
  opacity: 0.95;
  /* visible by default (no JS required) */
  stroke-dasharray: none;
  stroke-dashoffset: 0;
}

/* Subtle draw-in animation when section enters viewport */

.seed-of-life.draw .petal {
  animation: draw 1.6s ease forwards;
}

.seed-of-life.draw .outline {
  animation: draw 1.8s 0.2s ease forwards;
}

/* Auto-trigger when section becomes visible via IntersectionObserver */
#about.visible .seed-of-life .petal {
  stroke-dasharray: 330;
  stroke-dashoffset: 330;
  animation: draw 1.6s ease forwards;
}

#about.visible .seed-of-life .outline {
  stroke-dasharray: 575;
  stroke-dashoffset: 575;
  animation: draw 1.8s 0.2s ease forwards;
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .seed-of-life .petal,
  .seed-of-life .outline {
    stroke-dashoffset: 0;
  }
  .seed-of-life.draw .petal,
  .seed-of-life.draw .outline {
    animation: none;
  }
}

/* Gallery Section */
#gallery {
  padding: 8rem 0;
  background-color: var(--primary);
  color: var(--text-light);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.gallery-item {
  position: relative;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: var(--transition);
  aspect-ratio: 1 / 1;
}

.gallery-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.img-container {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition);
}

.gallery-item:hover .overlay {
  opacity: 1;
  transform: translateY(0);
}

.overlay h3 {
  color: var(--text-light);
  margin-bottom: 0.3rem;
}

.overlay p {
  color: var(--light-accent);
  font-size: 0.9rem;
  margin: 0;
}

.artwork-detail {
  text-align: center;
  padding: 2rem 0;
}

#artwork-description {
  margin-top: 1rem;
  font-style: italic;
  max-width: 600px;
  margin: 1rem auto 0;
}

/* Philosophy Section */
#philosophy {
  padding: 8rem 0;
  background-color: var(--secondary);
}

.philosophy-content {
  display: flex;
  gap: 2rem;
}

.philosophy-column {
  flex: 1;
}

.philosophy-item {
  margin-bottom: 3rem;
  padding: 2rem;
  border-radius: 5px;
  background-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 5px 15px var(--shadow);
  transition: var(--transition);
}

.philosophy-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px var(--shadow);
}

/* Ecosystem Section */
#ecosystem {
  padding: 8rem 0;
  background-color: var(--primary);
  color: var(--text-light);
  text-align: center;
}

.ecosystem-description {
  max-width: 800px;
  margin: 0 auto 4rem;
}

.ecosystem-description a {
  color: var(--light-accent);
}

.ecosystem-description a:hover {
  text-decoration: underline;
}

.ecosystem-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  height: 300px;
}

.eco-circle {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: rgba(166, 124, 82, 0.18);
  border: 2px solid rgba(166, 124, 82, 0.35);
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.15);
  color: var(--text-light);
  text-align: center;
  transition: var(--transition);
}

.eco-circle:hover {
  background-color: rgba(166, 124, 82, 0.4);
}

.otongo-net {
  width: 250px;
  height: 250px;
  z-index: 1;
}

.art-otongo {
  width: 180px;
  height: 180px;
  z-index: 2;
  background-color: rgba(166, 124, 82, 0.3);
}

.garo-art {
  width: 120px;
  height: 120px;
  z-index: 3;
  background-color: rgba(166, 124, 82, 0.4);
}

/* Readable labels for ecosystem circles */
.eco-label {
  position: absolute;
  background: rgba(249, 242, 232, 0.95); /* var(--text-light) with opacity */
  color: var(--primary);
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(166, 124, 82, 0.4);
  z-index: 5;
}

.eco-label:hover {
  background: #fff;
}

/* Positions so labels don't overlap while keeping concentric idea */
.otongo-net .eco-label {
  top: 0;
  left: 50%;
  transform: translate(-50%, -120%);
}

.otongo-net .eco-label::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  width: 2px;
  height: 12px;
  background: rgba(166, 124, 82, 0.7);
  transform: translateX(-50%);
}

.art-otongo .eco-label {
  top: 50%;
  left: 100%;
  transform: translate(12px, -50%);
}

.art-otongo .eco-label::after {
  content: '';
  position: absolute;
  top: 50%;
  left: -12px;
  width: 12px;
  height: 2px;
  background: rgba(166, 124, 82, 0.7);
  transform: translateY(-50%);
}

.garo-art .eco-label {
  bottom: 0;
  left: 50%;
  transform: translate(-50%, 120%);
}

.garo-art .eco-label::after {
  content: '';
  position: absolute;
  top: -12px;
  left: 50%;
  width: 2px;
  height: 12px;
  background: rgba(166, 124, 82, 0.7);
  transform: translateX(-50%);
}

/* Contact Section */
#contact {
  padding: 8rem 0;
  background-color: var(--secondary);
  text-align: center;
}

.contact-intro {
  max-width: 600px;
  margin: 0 auto 3rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 400px;
  margin: 0 auto;
}

.contact-method {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.contact-label {
  font-weight: 600;
}

/* Footer */
footer {
  background-color: var(--primary);
  color: var(--text-light);
  padding: 3rem 0;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  color: var(--light-accent);
}

.footer-legal {
  display: flex;
  gap: 2rem;
  margin-top: 1rem;
}

.footer-legal a {
  color: var(--light-accent);
  font-size: 0.9rem;
  opacity: 0.8;
  transition: var(--transition);
}

.footer-legal a:hover {
  opacity: 1;
  text-decoration: underline;
}

.footer-copyright {
  margin-top: 1rem;
  font-size: 0.9rem;
  opacity: 0.7;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 200;
  overflow: auto;
}

.modal-content {
  position: relative;
  background-color: var(--secondary);
  margin: 5% auto;
  width: 90%;
  max-width: 1000px;
  max-height: 90vh;
  border-radius: 5px;
  box-shadow: 0 5px 15px var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 2.2rem;
  color: var(--text);
  cursor: pointer;
  z-index: 10;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 6px;
  width: 44px;
  height: 44px;
  line-height: 40px;
  text-align: center;
}

.modal-image-container {
  width: 100%;
  max-height: 70vh;
  overflow-y: auto;
  overflow-x: hidden;
}

#modal-image {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.85);
  color: var(--text);
  border: none;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
}

.modal-prev {
  left: 12px;
}
.modal-next {
  right: 12px;
}

.modal-nav:focus,
.close-modal:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.modal-info {
  padding: 2rem;
}

/* Modal actions */
.modal-actions {
  margin-top: 1.25rem;
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.modal-back {
  appearance: none;
  -webkit-appearance: none;
  border: none;
  border-radius: 6px;
  padding: 0.6rem 1rem;
  background: var(--accent);
  color: var(--text-light);
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
  transition: var(--transition);
}

.modal-back::before {
  content: '\2190'; /* left arrow */
  display: inline-block;
  margin-right: 0.5rem;
  line-height: 1;
}

.modal-back:hover {
  background: var(--dark-accent);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28);
}

.modal-back:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22);
}

.modal-back:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

#modal-title {
  margin-bottom: 0.5rem;
}

#modal-year {
  color: var(--accent);
  margin-bottom: 1.5rem;
  font-style: italic;
}

#modal-description {
  line-height: 1.8;
}

/* Media Queries */
@media (max-width: 1024px) {
  h1 {
    font-size: 3.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  .about-content {
    flex-direction: column;
    gap: 2rem;
  }

  .symbolic-element {
    order: -1;
  }

  .philosophy-content {
    flex-direction: column;
  }

  .about-symbol {
    width: 200px;
    height: 200px;
  }
}

@media (max-width: 768px) {
  header {
    flex-direction: column;
    padding: 1rem;
  }

  nav {
    margin-top: 1rem;
  }

  nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }

  nav ul li {
    margin: 0.5rem 1rem;
  }

  .ecosystem-link {
    margin-top: 1rem;
  }

  h1 {
    font-size: 3rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }

  #about,
  #gallery,
  #philosophy,
  #ecosystem,
  #contact {
    padding: 5rem 0;
  }

  .about-symbol {
    width: 170px;
    height: 170px;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  .tagline {
    font-size: 1.2rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .ecosystem-visual {
    height: 250px;
  }

  .otongo-net {
    width: 200px;
    height: 200px;
  }

  .art-otongo {
    width: 150px;
    height: 150px;
  }

  .garo-art {
    width: 100px;
    height: 100px;
  }

  .eco-label {
    font-size: 0.85rem;
    padding: 0.3rem 0.5rem;
  }

  .art-otongo .eco-label {
    left: 50%;
    top: 100%;
    transform: translate(-50%, 12px); /* stack below on very small screens */
  }

  .art-otongo .eco-label::after {
    top: -12px;
    left: 50%;
    width: 2px;
    height: 12px;
    transform: translateX(-50%);
  }
}

.footer-logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

/* Floating animation used for ecosystem circles */
@keyframes float {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-10px);
  }
}

.footer-logo {
  width: 128px;
  height: 128px;
  transition: transform 0.3s ease;
}

/* ===== COOKIE CONSENT BANNER ===== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: white;
  box-shadow: 0 -2px 10px var(--shadow);
  z-index: 9999;
  padding: 1.5rem;
  transform: translateY(100%);
  transition: var(--transition);
}

.cookie-banner.visible {
  transform: translateY(0);
}

.cookie-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  gap: 2rem;
}

.cookie-text h3 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
  font-family: 'Playfair Display', serif;
  color: var(--primary);
}

.cookie-text p {
  font-size: 0.9rem;
  color: var(--text);
}

.cookie-buttons {
  display: flex;
  gap: 1rem;
  flex-shrink: 0;
}

.cookie-buttons .btn {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-family: 'Work Sans', sans-serif;
  font-weight: 600;
  transition: var(--transition);
}

.cookie-buttons .btn-primary {
  background-color: var(--accent);
  color: var(--text-light);
}

.cookie-buttons .btn-primary:hover {
  background-color: var(--dark-accent);
}

.cookie-buttons .btn-secondary {
  background-color: transparent;
  color: var(--text);
  border: 1px solid var(--text);
}

.cookie-buttons .btn-secondary:hover {
  background-color: var(--primary);
  color: var(--text-light);
  border-color: var(--primary);
}

@media (max-width: 768px) {
  .cookie-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .cookie-buttons {
    width: 100%;
    justify-content: space-between;
    margin-top: 1rem;
  }
}

/* Cookie banner: compact mobile layout */
@media (max-width: 480px) {
  .cookie-banner {
    padding: 0.75rem 0.75rem calc(0.75rem + env(safe-area-inset-bottom));
    border-top: 3px solid var(--primary);
    box-shadow: 0 -8px 20px var(--shadow);
    max-height: 50vh; /* prevent covering too much of the screen */
    overflow: auto; /* allow internal scroll if text wraps a lot */
  }

  .cookie-content {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .cookie-text h3 {
    font-size: 1rem;
    margin: 0;
  }

  .cookie-text p {
    font-size: 0.85rem;
    line-height: 1.35;
    margin: 0;
  }

  .cookie-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    width: 100%;
    justify-content: unset;
    margin-top: 0;
    position: sticky; /* keep actions visible if banner needs to scroll */
    bottom: 0;
    background: linear-gradient(
      to top,
      #fff,
      rgba(255, 255, 255, 0.95) 70%,
      rgba(255, 255, 255, 0)
    );
    padding-top: 0.5rem;
  }

  .cookie-buttons .btn {
    width: 100%;
    min-height: 44px; /* tap target */
    padding: 0.75rem 0.9rem;
    font-size: 1rem;
    border-radius: 6px;
  }
}

/* Footer: mobile adjustments */
@media (max-width: 480px) {
  footer {
    padding: 0.25rem 0 calc(0.25rem + env(safe-area-inset-bottom));
    line-height: 1.1;
    text-align: center;
  }
  .footer-content {
    gap: 0.2rem;
  }
  footer .footer-logo {
    display: none; /* save vertical space on very small screens */
  }
  .footer-content > * {
    margin: 0;
  }
  .footer-links,
  .footer-legal {
    gap: 0.15rem;
    flex-wrap: wrap;
    justify-content: center;
  }
  /* Hide external site links on very small screens to save vertical space */
  .footer-links {
    display: none;
  }
  .footer-links a {
    font-size: 0.78rem;
    line-height: 1.05;
    display: inline;
  }
  .footer-legal {
    margin-top: 0;
  }
  .footer-legal a {
    font-size: 0.66rem;
    line-height: 1.05;
    display: inline;
  }
  /* bullets between links to save vertical space */
  .footer-links a + a::before,
  .footer-legal a + a::before {
    content: '·';
    margin: 0 0.35rem;
    color: var(--light-accent);
    opacity: 0.85;
  }
  .footer-copyright {
    margin-top: 0.1rem;
    font-size: 0.66rem;
  }
}

/* Header: compact mobile layout */
@media (max-width: 480px) {
  header {
    padding: 0.35rem 0.75rem;
    flex-direction: row; /* override tablet column */
    gap: 0.5rem;
    align-items: center;
  }
  .logo-container {
    padding: 0; /* remove inner padding */
  }
  .header-logo {
    width: 24px;
    height: 24px;
  }
  nav {
    margin-top: 0; /* override tablet spacing */
    flex: 1;
  }
  nav ul {
    flex-wrap: nowrap; /* keep in one slim row */
    justify-content: flex-start;
    gap: 0.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  nav ul li {
    margin: 0; /* override desktop/tablet margins */
  }
  nav ul li a {
    font-size: 0.85rem;
    letter-spacing: 0.02rem; /* reduce wide uppercase spacing */
    line-height: 1.1;
    padding: 0.2rem 0;
  }
  .ecosystem-link {
    display: none;
  }
  header.scrolled {
    padding: 0.3rem 0.75rem; /* keep compact when scrolled */
  }
}

/* ===== JS-ENABLED ANIMATIONS ===== */
/* Only apply initial hidden states when JS is active */
.js-animations section {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.js-animations section.visible {
  opacity: 1;
  transform: translateY(0);
}

.js-animations h2 {
  opacity: 0;
  transform: translateX(-20px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.js-animations h2.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Header compact style when scrolled */
header.scrolled {
  padding: 1rem 2rem;
  background-color: rgba(249, 242, 232, 0.98);
}

/* Time symbol pulse animation */
.rotating-circle.pulse {
  animation: pulse 1s ease;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}
