/* Tu i Tamo Band — palette and motifs taken from the badge logo:
   tomato red, teal, cream paper and the checkerboard ring. */

:root {
  --red: #c8331f;
  --red-bright: #e2452f;
  --teal: #3f9e9a;
  --teal-soft: #cfe8e5;
  --cream: #f4e8d2;
  --paper: #fbf6ec;
  --ink: #1d1916;
  --ink-soft: #3a332d;
  --muted: #6b6157;
  --line: rgba(29, 25, 22, 0.12);

  --font: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 18px;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1180px;
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-optical-sizing: auto;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.02; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
}
.skip:focus { top: 12px; }

/* ── Checkerboard motif ───────────────────────────────────── */
.checker {
  --sq: 14px;
  height: calc(var(--sq) * 2);
  background:
    repeating-conic-gradient(var(--ink) 0 25%, var(--cream) 0 50%)
    0 0 / calc(var(--sq) * 2) calc(var(--sq) * 2);
}

/* ── Header ───────────────────────────────────────────────── */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  color: #fff;
  transition: background-color .3s ease, color .3s ease, box-shadow .3s ease;
}
.header.is-solid {
  background: rgba(251, 246, 236, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
}
.header .wrap {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  text-decoration: none;
  letter-spacing: -0.01em;
  margin-right: auto;
}
.brand img { width: 40px; height: 40px; }
.brand span { white-space: nowrap; }
@media (max-width: 440px) {
  .header .wrap { gap: 12px; }
  .brand span { display: none; }
}

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  text-decoration: none;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  transition: background-color .2s;
}
.nav a:hover { background: rgba(127, 127, 127, 0.16); }

.langs {
  display: flex;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  border: 1.5px solid currentColor;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .04em;
}
.langs a {
  text-decoration: none;
  padding: 4px 9px;
  border-radius: 999px;
  opacity: .75;
}
.langs a:hover { opacity: 1; }
.langs a[aria-current="true"] {
  background: currentColor;
  opacity: 1;
}
.langs a[aria-current="true"] span { color: var(--ink); }
.header.is-solid .langs a[aria-current="true"] span { color: var(--paper); }

.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.menu-btn svg { width: 26px; height: 26px; margin: auto; }

@media (max-width: 760px) {
  .menu-btn { display: grid; }
  .nav {
    position: absolute;
    top: var(--header-h);
    left: 12px;
    right: 12px;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    background: var(--paper);
    color: var(--ink);
    border-radius: var(--radius);
    box-shadow: 0 20px 50px rgba(0,0,0,.2);
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity .2s, transform .2s;
  }
  .nav a { padding: 14px 16px; font-size: 1.15rem; }
  .header.is-open .nav { opacity: 1; transform: none; pointer-events: auto; }
  .header.is-open { background: var(--paper); color: var(--ink); }
  .header.is-open .langs a[aria-current="true"] span { color: var(--paper); }
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  color: #fff;
  overflow: hidden;
  background: var(--ink);
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 35%;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(20,16,13,.55) 0%, rgba(20,16,13,0) 22%),
    linear-gradient(0deg, rgba(20,16,13,.92) 0%, rgba(20,16,13,.55) 32%, rgba(20,16,13,0) 62%);
}
.hero .wrap {
  position: relative;
  z-index: 2;
  padding-top: calc(var(--header-h) + 40px);
  padding-bottom: clamp(48px, 9vh, 96px);
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
}
.kicker::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: .25; } }

.hero h1 {
  font-size: clamp(3.2rem, 13vw, 9.5rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: .88;
  margin: 18px 0 18px;
  text-wrap: balance;
}
.hero h1 em {
  font-style: normal;
  color: var(--red-bright);
}
.hero-tagline {
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  max-width: 30ch;
  opacity: .92;
}
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.02rem;
  text-decoration: none;
  transition: transform .15s ease, background-color .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 10px 30px rgba(200,51,31,.35); }
.btn-primary:hover { background: var(--red-bright); }
.btn-ghost { color: #fff; border: 2px solid rgba(255,255,255,.7); }
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }

.badge {
  position: absolute;
  z-index: 2;
  right: var(--gutter);
  top: calc(var(--header-h) + 24px);
  width: clamp(110px, 17vw, 210px);
  filter: drop-shadow(0 14px 30px rgba(0,0,0,.45));
  animation: wobble 7s ease-in-out infinite;
}
@keyframes wobble {
  0%, 100% { transform: rotate(-8deg); }
  50% { transform: rotate(6deg) translateY(-6px); }
}
@media (max-width: 560px) {
  .badge { width: 96px; top: calc(var(--header-h) + 12px); }
}

/* ── Sections ─────────────────────────────────────────────── */
.section { padding-block: clamp(72px, 11vw, 140px); }

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 14px;
}
.section-title {
  font-size: clamp(2.4rem, 6.5vw, 4.6rem);
  font-weight: 800;
  letter-spacing: -0.035em;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
}
.about-lead {
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  line-height: 1.35;
  font-weight: 600;
  margin: 22px 0 18px;
  text-wrap: pretty;
}
.about-body p + p { margin-top: 14px; }
.about-body { color: var(--ink-soft); max-width: 58ch; }


.photo-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 3px solid var(--ink);
  box-shadow: 12px 12px 0 var(--red);
  transform: rotate(1.5deg);
}
.photo-frame img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin-top: clamp(56px, 8vw, 96px);
  border-top: 2px solid var(--ink);
}
.stat { padding: 22px 8px 0 0; }
.stat + .stat { padding-left: 22px; border-left: 1px solid var(--line); }
.stat b {
  display: block;
  font-size: clamp(2.6rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1;
  color: var(--red);
  letter-spacing: -0.04em;
}
.stat span { color: var(--muted); font-weight: 500; }

@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
  .photo-frame { transform: none; box-shadow: 8px 8px 0 var(--red); margin-right: 8px; }
}
@media (max-width: 520px) {
  .stats { grid-template-columns: 1fr; }
  .stat, .stat + .stat { padding: 16px 0; border-left: 0; border-bottom: 1px solid var(--line); display: flex; align-items: baseline; gap: 14px; }
  .stat b { font-size: 2.4rem; min-width: 1.4ch; }
}

/* Live gallery */
.live { margin-top: clamp(56px, 8vw, 96px); }
.live-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 22px;
}
.gallery {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(8px, 1.4vw, 16px);
}
@media (min-width: 900px) { .gallery { grid-template-columns: repeat(4, 1fr); } }
.gallery a {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  background: var(--ink);
  cursor: zoom-in;
}
.gallery img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform .5s ease, opacity .3s;
}
.gallery a:hover img { transform: scale(1.05); opacity: .9; }

/* Only collapse when JS can expand it again */
.js .gallery.is-collapsed .extra { display: none; }
.gallery-more { display: none; }
.js .gallery-more {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 24px auto 0;
  min-height: 50px;
  padding: 0 24px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background-color .2s, color .2s;
}
.js .gallery-more:hover { background: var(--ink); color: var(--paper); }
.gallery-more span { opacity: .6; font-weight: 600; }
.js .gallery-more[hidden] { display: none; }

.lightbox {
  padding: 0;
  border: 0;
  background: transparent;
  max-width: min(94vw, 1600px);
  max-height: 92vh;
  overflow: visible;
}
.lightbox::backdrop { background: rgba(15, 12, 10, .9); }
.lightbox img {
  display: block;
  max-width: 100%;
  max-height: 92vh;
  width: auto;
  height: auto;
  border-radius: 10px;
}
.lightbox-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}
@media (max-width: 560px) { .lightbox-close { top: -52px; right: 0; } }

/* Band */
.band { background: var(--cream); }
.band-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: clamp(36px, 5vw, 56px);
}
.band-head p { color: var(--ink-soft); font-size: 1.15rem; max-width: 32ch; }

.members {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(12px, 2.4vw, 28px);
}
@media (min-width: 900px) { .members { grid-template-columns: repeat(4, 1fr); } }
.member {
  position: relative;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .25s cubic-bezier(.2,.8,.3,1.2), box-shadow .25s;
}
.member:hover { transform: translateY(-4px) rotate(-1deg); box-shadow: 8px 8px 0 var(--ink); }
.member:nth-child(even):hover { transform: translateY(-4px) rotate(1deg); }
.member-photo { overflow: hidden; background: #e9e6e2; aspect-ratio: 4 / 5; }
.member-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 12%;
  transition: transform .5s ease;
}
.member:hover .member-photo img { transform: scale(1.05); }
.member-info { padding: 14px 16px 16px; border-top: 2px solid var(--ink); }
.member h3 { font-size: 1.2rem; font-weight: 800; letter-spacing: -0.015em; }
.member .nick { color: var(--muted); font-weight: 500; font-size: .95rem; }
.member .role {
  display: inline-block;
  margin-top: 8px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--red);
}

.crew {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 22px;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--paper);
}
.crew svg { width: 44px; height: 44px; flex: none; color: var(--teal); }
.crew small {
  display: block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--teal);
}
.crew strong { font-size: 1.2rem; }
.crew .crew-role { opacity: .7; margin-left: 6px; }
.crew .crew-role::before { content: "· "; }
/* 10 members + crew: crew fills the last two cells on desktop, a full row on mobile */
@media (min-width: 900px) { .crew { grid-column: span 2; } }
@media (max-width: 899px) { .crew { grid-column: 1 / -1; } }
@media (max-width: 560px) {
  .member-info { padding: 10px 12px 12px; }
  .member h3 { font-size: 1rem; }
  .member .role { font-size: .68rem; letter-spacing: .05em; }
}

/* Contact */
.contact {
  position: relative;
  color: #fff;
  background: var(--ink);
  overflow: hidden;
  isolation: isolate;
}
.contact-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .45;
  z-index: -1;
}
.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(29,25,22,.4), rgba(29,25,22,.85));
}
.contact .eyebrow { color: var(--teal-soft); }
.contact-intro { font-size: clamp(1.15rem, 2.2vw, 1.4rem); margin-top: 16px; max-width: 34ch; opacity: .9; }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: clamp(36px, 5vw, 56px);
}
.contact-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: clamp(20px, 3vw, 30px);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
  min-width: 0;
}
.contact-card:hover { transform: translateY(-3px); box-shadow: 8px 8px 0 var(--red); }
.contact-card .icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  flex: none;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
}
.contact-card .icon svg { width: 26px; height: 26px; }
.contact-card small {
  display: block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-card strong {
  display: block;
  font-size: clamp(1.1rem, 2.4vw, 1.5rem);
  font-weight: 800;
  letter-spacing: -0.015em;
  overflow-wrap: anywhere;
}

.socials { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.socials span { font-weight: 700; margin-right: 6px; }
.social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,.6);
  text-decoration: none;
  font-weight: 600;
  transition: background-color .2s, border-color .2s;
}
.social:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.social svg { width: 20px; height: 20px; }

@media (max-width: 700px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* Footer */
.footer { background: var(--ink); color: rgba(251,246,236,.75); }
.footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 28px;
  font-size: .95rem;
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { width: 36px; height: 36px; }
.footer nav { display: flex; gap: 16px; }
.footer nav a { text-decoration: none; }
.footer nav a:hover, .footer nav a[aria-current="true"] { color: #fff; text-decoration: underline; text-underline-offset: 4px; }

/* 404 */
.notfound {
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: var(--gutter);
}
.notfound img { width: 160px; margin: 0 auto 24px; animation: wobble 7s ease-in-out infinite; }
.notfound h1 { font-size: clamp(2.4rem, 8vw, 4.5rem); font-weight: 800; }
.notfound p { color: var(--muted); margin: 12px 0 28px; font-size: 1.15rem; }
.notfound .langs-row { margin-top: 28px; display: flex; justify-content: center; gap: 16px; color: var(--muted); }

/* Link page (QR code on the T-shirts) */
.link-page { background: var(--ink); }
.link-wrap {
  max-width: 520px;
  min-height: 100svh;
  margin: 0 auto;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  position: relative;
}
.link-photo { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--ink); }
.link-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.link-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(251,246,236,1) 0%, rgba(251,246,236,0) 30%);
}
.link-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 92px;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,.4));
  animation: wobble 7s ease-in-out infinite;
}
.link-body { padding: 0 20px 32px; margin-top: -12px; position: relative; flex: 1; }
.link-body h1 {
  font-size: clamp(2.6rem, 12vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: .92;
  margin: 14px 0 10px;
}
.link-body h1 em { font-style: normal; color: var(--red); }
.link-tagline { font-size: 1.15rem; font-weight: 600; }
.link-intro { color: var(--muted); margin-top: 6px; }
.link-list { display: grid; gap: 10px; margin-top: 24px; }
.link-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 58px;
  padding: 0 20px;
  border: 2px solid var(--ink);
  border-radius: 16px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  transition: transform .15s, box-shadow .15s;
}
.link-btn:hover { transform: translateY(-2px); box-shadow: 5px 5px 0 var(--ink); }
.link-btn svg { width: 22px; height: 22px; flex: none; color: var(--red); }
.link-btn.primary { background: var(--red); border-color: var(--red); color: #fff; }
.link-btn.primary svg { color: #fff; }
.link-btn.primary:hover { box-shadow: 5px 5px 0 var(--ink); }
.link-langs { display: flex; justify-content: center; gap: 6px; margin-top: 28px; }
.link-langs button {
  min-width: 48px;
  min-height: 40px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 700;
  font-size: .85rem;
  cursor: pointer;
}
.link-langs button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* Reveal on scroll (only when JS is running) */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
