@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600&display=swap');

:root {
  --bg: #e5e8ef;
  --bg-soft: #f3f5fb;
  --text: #232631;
  --muted: rgba(35, 38, 49, 0.6);
  --line: rgba(35, 38, 49, 0.12);
  --shadow-dark: rgba(162, 168, 190, 0.55);
  --shadow-light: rgba(255, 255, 255, 0.95);
}

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

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: 'Sora', sans-serif;
  overflow: hidden;
}

#bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
}

.glow {
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  opacity: 0.35;
  z-index: 1;
}

.glow-top {
  top: -120px;
  right: -140px;
  background: radial-gradient(circle, #ffffff 0%, transparent 70%);
}

.glow-bottom {
  bottom: -140px;
  left: -140px;
  background: radial-gradient(circle, #cfe0ff 0%, transparent 70%);
}

.noise {
  position: fixed;
  inset: 0;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="140" height="140" viewBox="0 0 140 140"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency="0.85" numOctaves="2"/></filter><rect width="140" height="140" filter="url(%23n)" opacity="0.05"/></svg>');
  pointer-events: none;
  z-index: 1;
  opacity: 0.5;
}

.page {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  padding: 0 8vw;
  display: grid;
  align-content: start;
  height: 100vh;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
}

.nav {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 3;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: rgba(229, 232, 239, 0.75);
  padding: 10px 12px;
  border-radius: 14px;
  box-shadow: 10px 10px 20px var(--shadow-dark),
    -10px -10px 20px var(--shadow-light);
  backdrop-filter: blur(8px);
  width: min(92vw, 720px);
  justify-content: center;
  flex-wrap: wrap;
}

.nav a {
  text-decoration: none;
  color: var(--muted);
  padding: 6px 10px;
  border-radius: 8px;
}

.nav a.is-active {
  color: var(--text);
  background: var(--bg);
  box-shadow: inset 6px 6px 12px var(--shadow-dark),
    inset -6px -6px 12px var(--shadow-light);
}

.logo-text {
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: none;
  color: var(--text);
  text-align: center;
  max-width: 100%;
  overflow-wrap: anywhere;
  text-shadow: 0 10px 20px rgba(150, 158, 182, 0.35);
  position: relative;
  z-index: 1;
}

.logo-text.small {
  font-size: 1.8rem;
  letter-spacing: 0.26em;
  color: var(--muted);
  text-shadow: none;
}

.bottom-logo {
  position: absolute;
  top: 24px;
  left: 0;
  right: 0;
  transform: none;
  text-align: center;
  width: 100%;
}

.section {
  min-height: 100vh;
  display: grid;
  place-items: center;
  grid-template-rows: auto 1fr;
  align-content: center;
  scroll-snap-align: start;
  padding: 0 2vw;
  gap: 18px;
  padding-top: 28px;
}

.reveal-item {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 2s cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 2s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: opacity, transform;
}

.section.is-visible .reveal-item {
  opacity: 1;
  transform: translateY(0);
}

.panel {
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
  gap: 10px;
  padding: 28px 32px;
  border-radius: 26px;
  background: var(--bg);
  box-shadow: 14px 14px 28px var(--shadow-dark), -14px -14px 28px var(--shadow-light);
  max-width: 560px;
  width: 100%;
  overflow: hidden;
}

.top-section {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  grid-template-rows: none;
  align-content: center;
  padding-top: 0;
  gap: 20px;
}

.top-section .logo-text {
  z-index: 1;
}


.hero-cluster {
  display: grid;
  gap: 28px;
  justify-items: center;
  text-align: center;
}

.hero-cluster .bottom-logo {
  position: static;
  width: auto;
}

.socials {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: center;
  z-index: 1;
}

.social-link {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--bg);
  box-shadow: 16px 16px 30px var(--shadow-dark),
    -16px -16px 30px var(--shadow-light);
  display: grid;
  place-items: center;
  transition: box-shadow 0.4s ease, transform 0.4s ease;
}

.social-link svg {
  width: 34px;
  height: 34px;
}

.social-link:hover {
  box-shadow: inset 8px 8px 16px var(--shadow-dark),
    inset -8px -8px 16px var(--shadow-light);
}

.social-link svg { fill: #2a2f3d; }

@media (max-width: 720px) {
  .socials {
    gap: 12px;
  }
}


.panel.wide {
  max-width: 1400px;
}

.works-panel {
  justify-items: stretch;
  text-align: left;
  overflow: visible;
}

.art-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(200px, 1fr);
  gap: 20px;
  margin-top: 0;
  overflow: visible;
  padding: 24px 20px;
  scroll-snap-type: x mandatory;
  background: transparent;
  scroll-padding: 24px 20px;
}

.art-scroll {
  overflow-x: auto;
  overflow-y: visible;
  padding: 12px 0;
}

.art-card {
  background: var(--bg);
  border-radius: 18px;
  padding: 8px;
  box-shadow: 8px 8px 16px var(--shadow-dark),
    -8px -8px 16px var(--shadow-light);
  position: relative;
  transition: box-shadow 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
  scroll-snap-align: start;
}

.art-card::before {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0));
  pointer-events: none;
  opacity: 0.5;
}

.art-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 18px;
  box-shadow: inset 8px 8px 16px var(--shadow-dark),
    inset -8px -8px 16px var(--shadow-light);
  opacity: 0;
  transition: opacity 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
}

.art-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

.art-card:hover {
  box-shadow: 6px 6px 12px var(--shadow-dark),
    -6px -6px 12px var(--shadow-light);
}

.art-card:hover::after {
  opacity: 1;
}


.panel p {
  font-size: 0.9rem;
  letter-spacing: 0.18em;
  color: var(--muted);
  text-transform: uppercase;
}

.panel p.long {
  text-transform: none;
  letter-spacing: 0.06em;
  line-height: 1.9;
}

.panel p.label-line {
  text-transform: none;
  letter-spacing: 0.2em;
  font-size: 0.7rem;
  color: var(--muted);
  margin-bottom: 14px;
}

.panel p.contact-text {
  text-transform: none;
  letter-spacing: 0.06em;
  line-height: 1.8;
}

.section-title {
  justify-self: center;
  font-size: 0.8rem;
  letter-spacing: 0.4em;
  color: var(--muted);
  margin-top: 10px;
}


@media (max-width: 720px) {
  .page {
    padding: 72px 6vw 70px;
  }

  body {
    overflow: auto;
  }

  .nav {
    position: fixed;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 16px;
    display: flex;
    gap: 10px;
    justify-content: center;
    width: min(94vw, 520px);
    flex-wrap: wrap;
    background: rgba(229, 232, 239, 0.75);
    border-radius: 14px;
    box-shadow: 10px 10px 20px var(--shadow-dark),
      -10px -10px 20px var(--shadow-light);
    backdrop-filter: blur(8px);
  }

  .socials {
    gap: 16px;
  }

  .social-link {
    width: 68px;
    height: 68px;
  }

  .social-link svg {
    width: 28px;
    height: 28px;
  }

  .bottom-logo {
    top: 16px;
    bottom: auto;
  }

  .section {
    padding-top: 64px;
    gap: 16px;
  }

  .panel {
    padding: 22px 24px;
  }

  .panel.wide {
    max-width: 100%;
  }

  .art-grid {
    grid-auto-flow: row;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    overflow: visible;
  }

  .art-card {
    padding: 6px;
  }

  .art-card img {
    border-radius: 10px;
  }
}

.footer {
  position: fixed;
  right: 8vw;
  bottom: 24px;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  color: var(--muted);
  text-transform: none;
  z-index: 3;
}

@media (max-width: 720px) {
  .footer {
    position: fixed;
    bottom: 8px;
    left: 0;
    right: 0;
    padding: 0 6vw;
    text-align: right;
    z-index: 3;
    font-size: 0.65rem;
    letter-spacing: 0.12em;
  }
}
