/* =========================================================
   DASTONIA — visual identity
   Metalcore / progressive metal, Bern CH

   Token system
   ------------
   Color   bg #0A0B0E · surface #14161B · text #ECE9E4
           muted #8B8F98 · signal (hot) #FF4D3D · cold #36D6D1
           border #242830
   Type    Display: Unbounded (headlines, logo)
           Body: Inter (paragraphs, nav)
           Mono: Space Mono (eyebrow labels, captions, footer)
   Signature: the "fracture" — a jagged clip-path seam used as
   the section divider throughout, standing in for a waveform /
   break in the signal. Used once per transition, nowhere else.
   ========================================================= */

:root {
  --bg: #0A0B0E;
  --surface: #14161B;
  --text: #ECE9E4;
  --muted: #8B8F98;
  --signal: #FF4D3D;
  --cold: #36D6D1;
  --border: #242830;

  --font-display: "Unbounded", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "Space Mono", ui-monospace, monospace;
}

html {
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  /* faint grain so the near-black field isn't a flat void */
  background-image:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(255, 77, 61, 0.07), transparent),
    radial-gradient(ellipse 60% 50% at 100% 110%, rgba(54, 214, 209, 0.05), transparent);
  background-attachment: fixed;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

a {
  color: var(--cold);
}

/* =========================================================
   HEADER / NAV
   ========================================================= */

header {
  position: sticky;
  top: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 1.25rem;
  background: rgba(10, 11, 14, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

.logo-placeholder {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.3rem);
  color: var(--text);
}

/* Hamburger button */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav: dropdown */
nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #0D0E12;
  border-bottom: 1px solid var(--border);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

nav.open {
  max-height: 80vh;
  overflow-y: auto;
}

nav ul {
  display: flex;
  flex-direction: column;
  list-style: none;
  margin: 0;
  padding: 0.5rem 1.25rem 1rem;
}

nav li {
  border-bottom: 1px solid var(--border);
}

nav li:last-child {
  border-bottom: none;
}

nav a {
  display: block;
  padding: 0.85rem 0.1rem;
  text-decoration: none;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

nav a.active {
  color: var(--signal);
}

/* =========================================================
   SIGNATURE — the fracture divider
   A jagged seam between sections, standing in for a break
   in the signal. One recurring device, used consistently.
   ========================================================= */

.fracture {
  height: 14px;
  background: linear-gradient(90deg, var(--signal), var(--cold));
  clip-path: polygon(
    0% 100%, 4% 0%, 9% 100%, 14% 10%, 19% 100%, 24% 0%, 29% 100%,
    34% 5%, 39% 100%, 44% 0%, 49% 100%, 54% 15%, 59% 100%, 64% 0%,
    69% 100%, 74% 5%, 79% 100%, 84% 0%, 89% 100%, 94% 10%, 100% 100%, 100% 0%, 0% 0%
  );
  opacity: 0.9;
}

/* =========================================================
   SECTIONS
   ========================================================= */

section {
  min-height: 100vh;
  padding: 4rem 1.25rem;
  scroll-margin-top: 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#about,
#contact {
  background: var(--surface);
}

.eyebrow {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  color: var(--signal);
  margin: 0 0 0.75rem;
}

section h1 {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: clamp(2.5rem, 1.8rem + 6vw, 6rem);
  line-height: 0.95;
  margin: 0 0 0.5rem;
}

section h2 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  font-size: clamp(1.6rem, 1.3rem + 1.5vw, 2.4rem);
  margin: 0 0 1rem;
}

section p {
  max-width: 640px;
  color: var(--text);
}

/* Hero specifics */
.hero {
  text-align: left;
}

.hero-tagline {
  font-family: var(--font-mono);
  color: var(--muted);
  font-size: clamp(1rem, 0.9rem + 0.4vw, 1.2rem);
  margin: 0 0 2rem;
}

/* Glitch hover on the hero logotype only — the one place we
   spend the "boldness budget" on motion. */
.glitch {
  position: relative;
  display: inline-block;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  opacity: 0;
}

.glitch:hover::before {
  color: var(--signal);
  transform: translate(2px, 0);
  opacity: 0.7;
  animation: glitch-shift 0.3s steps(2, end) infinite;
}

.glitch:hover::after {
  color: var(--cold);
  transform: translate(-2px, 0);
  opacity: 0.7;
  animation: glitch-shift 0.35s steps(2, end) infinite reverse;
}

@keyframes glitch-shift {
  0% { transform: translate(2px, 0); }
  50% { transform: translate(-1px, 1px); }
  100% { transform: translate(2px, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .glitch:hover::before,
  .glitch:hover::after {
    animation: none;
    opacity: 0;
  }
}

.placeholder {
  border: 1px dashed var(--border);
  background: rgba(255, 255, 255, 0.02);
  padding: 2rem;
  text-align: center;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  margin: 1rem 0;
  max-width: 640px;
}

.hero-photo {
  aspect-ratio: 16 / 9;
  max-width: 720px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}

.gallery-grid .placeholder {
  aspect-ratio: 1 / 1;
}

#show-list {
  list-style: none;
  padding: 0;
  font-family: var(--font-mono);
}

#show-list li {
  margin-bottom: 0.75rem;
  border-left: 2px solid var(--signal);
  padding-left: 0.75rem;
}

#newsletter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  max-width: 420px;
}

#newsletter-form input {
  flex: 1 1 200px;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 2px;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
}

#newsletter-form input::placeholder {
  color: var(--muted);
}

#newsletter-form button {
  padding: 0.65rem 1.25rem;
  border: none;
  border-radius: 2px;
  background: var(--signal);
  color: #0A0B0E;
  font-family: var(--font-mono);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.15s ease;
}

#newsletter-form button:hover {
  background: var(--cold);
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  list-style: none;
  padding: 0;
  font-family: var(--font-mono);
}

#contact a {
  font-family: var(--font-mono);
  text-decoration: none;
  border-bottom: 1px solid var(--cold);
}

footer {
  padding: 2rem 1.25rem;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--muted);
  background: var(--bg);
}

/* Visible keyboard focus, kept consistent across all interactive elements */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--cold);
  outline-offset: 2px;
}

/* =========================================================
   BREAKPOINTS — mobile-first
   ========================================================= */

@media (min-width: 768px) {
  header {
    padding: 1.1rem 2.5rem;
  }

  .nav-toggle {
    display: none;
  }

  nav {
    position: static;
    max-height: none;
    overflow: visible;
    border-bottom: none;
    background: transparent;
    width: auto;
  }

  nav ul {
    flex-direction: row;
    gap: 2rem;
    padding: 0;
  }

  nav li {
    border-bottom: none;
  }

  nav a {
    padding: 0.25rem 0;
  }

  section {
    padding: 5rem 3rem;
  }
}

@media (min-width: 1100px) {
  section {
    padding: 6rem 5rem;
  }
}