:root {
  --color-bg: #0a0a0a;
  --color-fg: #f5f0eb;
  --color-accent: #d4c5b5;
  --color-muted: #9a9a9a;
  --max-width: 1100px;
  --font-base: "Inter", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-base);
  background: var(--color-bg);
  color: var(--color-fg);
  line-height: 1.6;
}

/* Fixed background: fills the full screen, stays put while content scrolls/snaps over it */
.bg-logo {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  transition: filter 0.3s ease-out;
}

/* Slowly crossfading pastel cosmos scenes -- the "moving" background */
.bg-scenes {
  position: absolute;
  inset: 0;
}

.scene {
  position: absolute;
  inset: -10%;
  opacity: 0;
  animation: scene-crossfade 36s ease-in-out infinite;
}

.scene-1 {
  background: radial-gradient(circle at 28% 24%, #2d4a48 0%, transparent 58%),
    radial-gradient(circle at 74% 78%, #1c3230 0%, transparent 55%);
  animation-delay: 0s;
}

.scene-2 {
  background: radial-gradient(circle at 72% 30%, #5c3a4a 0%, transparent 58%),
    radial-gradient(circle at 22% 76%, #3a2430 0%, transparent 55%);
  animation-delay: 9s;
}

.scene-3 {
  background: radial-gradient(circle at 26% 72%, #2d4a48 0%, transparent 58%),
    radial-gradient(circle at 76% 26%, #1c3230 0%, transparent 55%);
  animation-delay: 18s;
}

.scene-4 {
  background: radial-gradient(circle at 62% 62%, #5a4430 0%, transparent 58%),
    radial-gradient(circle at 24% 22%, #3c2c1e 0%, transparent 55%);
  animation-delay: 27s;
}

@keyframes scene-crossfade {
  0%,
  100% {
    opacity: 0;
  }
  4% {
    opacity: 1;
  }
  25% {
    opacity: 1;
  }
  30% {
    opacity: 0;
  }
}

/* Vignette: fades the whole backdrop to black evenly on all four sides */
.bg-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 28%, rgba(10, 10, 10, 0.78) 70%, #0a0a0a 100%);
}

.logo-glow {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: logo-breathe 10s ease-in-out infinite;
}

@keyframes logo-breathe {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.035);
  }
}

@media (prefers-reduced-motion: reduce) {
  .logo-glow,
  .scene {
    animation: none;
  }
  .scene-1 {
    opacity: 1;
  }
}

.logo-mark {
  position: relative;
  width: 22%;
  flex-shrink: 0;
}

.logo-mark img {
  display: block;
  width: 100%;
  height: auto;
  opacity: 0.38;
}

/* Glossy diagonal sheen, masked to the antler shape, slowly sweeping across it.
   The sweep animates `transform` on a child (GPU-composited) instead of
   `background-position` on itself, which would force a repaint every frame. */
.logo-sheen {
  position: absolute;
  inset: 0;
  overflow: hidden;
  -webkit-mask-image: url("../assets/logo.png");
  mask-image: url("../assets/logo.png");
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  mix-blend-mode: screen;
  opacity: 0.55;
}

.logo-sheen::before {
  content: "";
  position: absolute;
  inset: -50%;
  background: linear-gradient(
    120deg,
    transparent 15%,
    rgba(255, 255, 255, 0.7) 42%,
    rgba(255, 255, 255, 0.15) 52%,
    transparent 75%
  );
  animation: sheen-sweep 9s ease-in-out infinite;
  will-change: transform;
}

@keyframes sheen-sweep {
  0%,
  100% {
    transform: translate(-15%, -10%);
  }
  50% {
    transform: translate(15%, 10%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .logo-sheen::before {
    animation: none;
  }
}

.page {
  position: relative;
  z-index: 1;
}

/* Header and hero sit above the logo with no background, so it shows through */
.site-header,
.hero {
  background: transparent;
}

/* Panels stay transparent so the fixed logo shows through at every scroll position */
.panel {
  background: transparent;
}

/* Homepage: 3 full-screen views you snap-scroll between */
.snap-container {
  position: relative;
  z-index: 1;
  height: 100vh;
  height: 100svh;
  overflow-y: auto;
  scroll-snap-type: y proximity;
}

.view {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  scroll-snap-align: start;
}

.view-hero {
  justify-content: flex-start;
}

.view-hero .site-header {
  flex-shrink: 0;
}

.view-hero .hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding-bottom: 4rem;
}

.view-work,
.view-contact {
  justify-content: center;
}

/* Flex items with auto-margin centering would otherwise shrink to content width */
.view > .container {
  width: 100%;
}

.scroll-cue {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--color-muted);
  opacity: 0.6;
  animation: scroll-cue-bob 2.2s ease-in-out infinite;
}

.scroll-cue svg {
  width: 20px;
  height: 20px;
  display: block;
}

@keyframes scroll-cue-bob {
  0%,
  100% {
    transform: translate(-50%, 0);
  }
  50% {
    transform: translate(-50%, 6px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-cue {
    animation: none;
  }
}

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

a:hover {
  text-decoration: underline;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header / nav */
.site-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  padding: 1.5rem;
  border-bottom: 1px solid #222;
}

.back-arrow {
  position: absolute;
  left: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  color: var(--color-fg);
  cursor: pointer;
  transition: color 0.15s ease, transform 0.15s ease;
}

.back-arrow svg {
  width: 22px;
  height: 22px;
}

.back-arrow:hover {
  color: var(--color-accent);
  transform: translateY(-50%) translateX(-3px);
}

.site-header .logo img {
  height: 32px;
  width: auto;
  display: block;
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: var(--color-fg);
  font-weight: 300;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: color 0.15s ease;
}

.site-nav a:hover {
  color: var(--color-accent);
  text-decoration: none;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.site-nav li.lang-switch {
  border-left: 1px solid #2a2a2a;
  padding-left: 2rem;
}

.site-nav li.lang-switch a {
  color: var(--color-muted);
}

.site-nav li.lang-switch a:hover {
  color: var(--color-accent);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-fg);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero */
.hero {
  padding: 0 1.5rem;
  text-align: center;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 200;
  letter-spacing: 0.15em;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.hero p {
  color: var(--color-muted);
  font-weight: 300;
  font-size: 1.1rem;
}

/* Sections */
section {
  padding: 4rem 0;
}

section h2 {
  font-size: 1.75rem;
  font-weight: 200;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
}

/* Showcase: horizontally scrolling rows of thumbnails */
.showcase {
  display: flex;
  flex-direction: column;
  gap: 4.5rem;
  width: 100%;
}

.showcase-lowered {
  margin-top: 5rem;
}

.showcase-label {
  display: inline-block;
  margin: 0 0 0.6rem;
  font-size: 1.5rem;
  font-weight: 200;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  color: var(--color-fg);
  cursor: pointer;
  transition: transform 0.2s ease, color 0.2s ease;
}

a.showcase-label:hover {
  transform: scale(1.18);
  color: var(--color-accent);
  text-decoration: none;
}

.showcase-row {
  text-align: center;
}

.showcase-track {
  display: flex;
  justify-content: safe center;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.showcase-track::-webkit-scrollbar {
  display: none;
}

.thumb {
  position: relative;
  flex: 0 0 auto;
  width: 240px;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(26, 26, 26, 0.5);
  scroll-snap-align: start;
  transition: transform 0.2s ease, opacity 0.7s ease-in-out;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

.thumb:hover {
  transform: translateY(-3px);
}

.thumb-static {
  cursor: default;
}

.thumb-static:hover {
  transform: none;
}

.lesson-booking {
  max-width: 480px;
}

.page-contact-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #222;
  text-align: center;
}

.page-contact-footer .social-links.icons {
  justify-content: center;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.78;
  transition: transform 0.3s ease, opacity 0.2s ease;
}

.thumb-face-top {
  object-position: center 15%;
}

.thumb:hover img {
  opacity: 0.95;
}

.thumb:hover img {
  transform: scale(1.06);
}

.thumb-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0.6rem 0.75rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.1) 60%, transparent 100%);
}

.thumb-title {
  color: var(--color-fg);
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.25;
}

.thumb-sub {
  color: var(--color-muted);
  font-size: 0.72rem;
}

.thumb-play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 36px;
  height: 36px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(10, 10, 10, 0.55);
  color: var(--color-fg);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.85;
  transition: opacity 0.2s ease, background 0.2s ease;
  pointer-events: none;
}

.thumb-play svg {
  width: 14px;
  height: 14px;
  margin-left: 2px;
}

.thumb:hover .thumb-play {
  opacity: 1;
  background: var(--color-accent);
  color: var(--color-bg);
}

.thumb-tile {
  background: linear-gradient(135deg, rgba(44, 36, 68, 0.72) 0%, rgba(26, 21, 48, 0.72) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.thumb-tile .thumb-icon {
  width: 30px;
  height: 30px;
  color: var(--color-accent);
}

.thumb-tile .thumb-icon svg {
  width: 100%;
  height: 100%;
}

.thumb-tile .thumb-title {
  font-size: 0.85rem;
}

.thumb-tile:hover {
  background: linear-gradient(135deg, rgba(53, 42, 82, 0.8) 0%, rgba(34, 28, 58, 0.8) 100%);
}

.thumb-logo {
  background: #f5f0eb;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem;
}

.thumb-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Info modal, triggered by [data-modal-text] thumbs */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.75);
}

.modal-overlay[hidden] {
  display: none;
}

.modal-box {
  position: relative;
  max-width: 420px;
  width: 100%;
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  padding: 2.25rem 1.75rem 1.75rem;
  text-align: center;
}

.modal-text {
  margin: 0;
  color: var(--color-fg);
  font-size: 1rem;
  line-height: 1.6;
}

.modal-close {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-fg);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, color 0.15s ease;
}

.modal-close:hover {
  background: var(--color-accent);
  color: var(--color-bg);
}

/* Team */
#kontakt .container,
#contact .container {
  text-align: center;
}

.contact-grid {
  display: flex;
  gap: 3rem;
  align-items: flex-start;
  justify-content: center;
  flex-wrap: wrap;
}

.team-member {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  justify-content: center;
  flex-wrap: wrap;
  text-align: left;
}

/* Contact form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  max-width: 320px;
  text-align: left;
}

.contact-form input,
.contact-form textarea {
  font-family: var(--font-base);
  font-size: 0.95rem;
  color: var(--color-fg);
  background: rgba(26, 26, 26, 0.55);
  border: 1px solid #2a2a2a;
  border-radius: 6px;
  padding: 0.65rem 0.85rem;
  resize: none;
  transition: border-color 0.15s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--color-muted);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}

.contact-form .cta {
  align-self: flex-start;
  border: none;
  cursor: pointer;
  font-family: var(--font-base);
}

.contact-form .form-status {
  margin: 0;
  min-height: 1.2em;
  font-size: 0.85rem;
  color: var(--color-muted);
}

.contact-form .form-status.success {
  color: #8fc9a0;
}

.contact-form .form-status.error {
  color: #d99a9a;
}

.team-member .avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(51, 51, 51, 0.5);
  flex-shrink: 0;
  overflow: hidden;
}

.team-member .avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.78;
}

.cta {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.75rem 1.5rem;
  background: var(--color-accent);
  color: var(--color-bg);
  border-radius: 6px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.9rem;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.cta:hover {
  text-decoration: none;
  opacity: 0.9;
  transform: translateY(-2px);
}

/* Performance calendar (Esinemised) */
.event-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.event {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  background: #1a1a1a;
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  transition: transform 0.2s ease, background 0.2s ease;
}

.event:hover {
  transform: translateY(-3px);
  background: #202020;
}

.event-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 64px;
  flex-shrink: 0;
  color: var(--color-accent);
}

.event-date .day {
  font-size: 1.5rem;
  font-weight: bold;
  line-height: 1;
}

.event-date .month {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-muted);
}

.event-info h3 {
  margin: 0 0 0.25rem;
}

.event-info p {
  margin: 0;
  color: var(--color-muted);
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

.social-links.icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #1a1a1a;
  color: var(--color-fg);
  transition: color 0.15s, background 0.15s;
}

.social-links.icons a:hover {
  color: var(--color-bg);
  background: var(--color-accent);
  text-decoration: none;
}

.social-links.icons svg {
  width: 18px;
  height: 18px;
}

/* Responsive */
@media (max-width: 720px) {
  .nav-toggle {
    display: block;
  }

  .site-header:has(.nav-toggle) .site-nav {
    display: none;
    width: 100%;
  }

  .site-header:has(.nav-toggle) .site-nav.open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem 0;
  }

  .site-header {
    flex-wrap: wrap;
  }

  .site-nav li.lang-switch {
    border-left: none;
    padding-left: 0;
  }

  .logo-glow {
    align-items: flex-start;
    padding-top: 38vh;
  }

  .logo-mark {
    width: 55%;
  }

  .view-hero .hero {
    padding-bottom: 2.5rem;
  }

  .hero h1 {
    font-size: 1.75rem;
    letter-spacing: 0.08em;
  }

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

  section {
    padding: 2.5rem 0;
  }

  section h2 {
    letter-spacing: 0.06em;
    margin-bottom: 1rem;
  }

  .showcase {
    gap: 2.75rem;
  }

  .showcase-label-sub {
    font-size: 1.1rem;
  }

  .lesson-booking p {
    white-space: nowrap;
  }

  .thumb {
    width: 150px;
  }

  .thumb-title {
    font-size: 0.78rem;
  }

  .thumb-sub {
    font-size: 0.68rem;
  }

  .contact-grid {
    gap: 1.5rem;
  }

  .contact-form {
    max-width: 100%;
    gap: 0.5rem;
  }

  .contact-form textarea {
    min-height: 3.6rem;
  }

  .event {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
}
