@import url('https://fonts.googleapis.com/css2?family=Big+Shoulders+Display:wght@700;900&family=Inter:wght@400;500;600&display=swap');

:root {
  --charcoal: #1c1c1c;
  --charcoal-soft: #262626;
  --red: #cd1301;
  --orange: #ff3600;
  --orange-light: #f96501;
  --gold: #d09d05;
  --white: #ffffff;
  --off-white: #f7f5f2;
  --ink: #111111;

  --font-display: 'Big Shoulders Display', sans-serif;
  --font-body: 'Inter', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--off-white);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img, svg { display: block; max-width: 100%; }

input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.wrap {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--charcoal);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
}

.logo svg { width: 26px; height: 22px; }

.logo span {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 20px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.main-nav a {
  color: var(--white);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  opacity: 0.85;
  transition: opacity 0.15s ease;
}

.main-nav a:hover { opacity: 1; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 0.15s ease, background 0.15s ease;
  border: none;
  cursor: pointer;
}

.btn:hover { transform: translateY(-2px); }

.btn-white {
  background: var(--white);
  color: var(--ink);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.35);
}

.btn-outline:hover { border-color: var(--white); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background:
    repeating-radial-gradient(circle at 68% 42%, rgba(255,255,255,0.07) 0px, rgba(255,255,255,0.07) 1px, transparent 2px, transparent 26px),
    radial-gradient(circle at 68% 42%, var(--orange-light) 0%, var(--orange) 32%, var(--red) 68%, #7a0d00 100%);
  color: var(--white);
  padding: 110px 0 90px;
}

.hero-eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 28px;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(52px, 9vw, 128px);
  line-height: 0.94;
  letter-spacing: -0.01em;
  max-width: 920px;
}

.hero-sub {
  margin-top: 28px;
  font-size: 19px;
  line-height: 1.5;
  max-width: 480px;
  opacity: 0.92;
}

.hero-cta {
  display: flex;
  gap: 16px;
  margin-top: 40px;
}

/* ---------- About-basels strip (below the fold, home) ---------- */

.intro {
  background: var(--white);
  padding: 100px 0;
}

.intro h2 {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.02;
}

.intro-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  align-items: start;
}

.intro-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 32px;
}

.intro-col h4 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(17,17,17,0.45);
  margin-bottom: 14px;
}

.intro-col p {
  font-size: 15px;
  line-height: 1.6;
  color: #3a3a3a;
  text-wrap: pretty;
}

.intro .link-arrow {
  display: inline-block;
  font-weight: 600;
  font-size: 15px;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}

/* ---------- Projects ---------- */

.projects {
  background: var(--charcoal);
  color: var(--white);
  padding: 100px 0 110px;
}

.projects-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}

.projects-head h2 {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1;
}

.projects-head p {
  font-size: 15px;
  color: rgba(255,255,255,0.6);
  max-width: 320px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--charcoal);
  border-top: 1px solid rgba(255,255,255,0.1);
  border-left: 1px solid rgba(255,255,255,0.1);
}

.project-card {
  border-right: 1px solid rgba(255,255,255,0.1);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

@media (max-width: 1080px) {
  .project-grid { grid-template-columns: repeat(3, 1fr); }
}

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

.project-card {
  background: var(--charcoal);
  padding: 32px 26px;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: background 0.2s ease;
}

.project-card:hover { background: var(--charcoal-soft); }

.project-num {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--accent, var(--orange));
  letter-spacing: 0.05em;
}

.project-type {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-top: 14px;
}

.project-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 26px;
  text-transform: uppercase;
  line-height: 1.05;
  margin-top: 8px;
}

.project-line {
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255,255,255,0.65);
  margin-top: 14px;
}

.project-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent, var(--orange));
}

.project-status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent, var(--orange));
}

.project-card:nth-child(5n+1) { --accent: #ff3600; }
.project-card:nth-child(5n+2) { --accent: #f96501; }
.project-card:nth-child(5n+3) { --accent: #d09d05; }
.project-card:nth-child(5n+4) { --accent: #ff3600; }
.project-card:nth-child(5n+5) { --accent: #f96501; }

/* ---------- Closing CTA ---------- */

.cta-band {
  background: linear-gradient(120deg, var(--red), var(--orange) 55%, var(--gold));
  color: var(--white);
  padding: 90px 0;
  text-align: center;
}

.cta-band h2 {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1;
}

.cta-band p {
  margin-top: 18px;
  font-size: 16px;
  opacity: 0.92;
}

.cta-band .btn { margin-top: 32px; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--charcoal);
  color: rgba(255,255,255,0.7);
  padding: 56px 0 32px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-top .logo { color: var(--white); }

.footer-links {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-col h4 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 14px;
}

.footer-col a, .footer-col p {
  display: block;
  font-size: 14px;
  padding: 5px 0;
  color: rgba(255,255,255,0.75);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 24px;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- About page specific ---------- */

.page-hero {
  background: var(--charcoal);
  color: var(--white);
  padding: 90px 0 70px;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(44px, 8vw, 92px);
  line-height: 0.96;
  max-width: 800px;
}

.page-hero p {
  margin-top: 22px;
  font-size: 18px;
  max-width: 480px;
  color: rgba(255,255,255,0.75);
}

.about-features {
  background: var(--white);
  padding: 40px 0 60px;
}

.about-feature-row {
  display: grid;
  grid-template-columns: 64px 280px 1fr;
  gap: 32px;
  align-items: baseline;
  padding: 44px 0;
  border-top: 1px solid rgba(17,17,17,0.1);
}

.about-feature-row:last-child { border-bottom: 1px solid rgba(17,17,17,0.1); }

.about-feature-index {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: #999;
  letter-spacing: 0.04em;
}

.about-feature-title {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 28px;
  line-height: 1.1;
}

.about-feature-copy {
  font-size: 17px;
  line-height: 1.65;
  color: #3a3a3a;
  max-width: 560px;
}

@media (max-width: 760px) {
  .about-feature-row {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 32px 0;
  }
}

.teaser {
  background: var(--charcoal);
  color: var(--white);
  padding: 90px 0;
  text-align: center;
}

.teaser h2 {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(32px, 5vw, 52px);
}

.teaser p {
  margin-top: 14px;
  color: rgba(255,255,255,0.65);
  font-size: 16px;
}

.teaser .link-arrow {
  display: inline-block;
  margin-top: 26px;
  font-weight: 600;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}

.contact-band {
  background: var(--off-white);
  padding: 100px 0;
  text-align: center;
}

.contact-band h2 {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(34px, 5vw, 56px);
}

.contact-band .contact-links {
  margin-top: 26px;
  display: flex;
  justify-content: center;
  gap: 28px;
  font-size: 16px;
  font-weight: 600;
}

.contact-band .contact-links a { border-bottom: 1px solid currentColor; padding-bottom: 2px; }

/* ---------- Legal pages (Privacy / Cookie Policy) ---------- */

.legal-section {
  background: var(--white);
  padding: 90px 0 110px;
}

.legal-content { max-width: 720px; margin: 0 auto; }

.legal-updated {
  font-size: 13px;
  color: #767676;
  margin-bottom: 44px;
}

.legal-content h2 {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 22px;
  margin: 44px 0 14px;
}

.legal-content h2:first-of-type { margin-top: 0; }

.legal-content p,
.legal-content li {
  font-size: 16px;
  line-height: 1.75;
  color: #3a3a3a;
}

.legal-content p + p { margin-top: 14px; }

.legal-content ul {
  margin: 10px 0 10px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legal-content a { text-decoration: underline; }

.legal-content code {
  font-family: monospace;
  background: var(--off-white);
  padding: 2px 6px;
  font-size: 14px;
}

/* ---------- Contact page ---------- */

.contact-section {
  background: var(--charcoal);
  color: var(--white);
  padding: 130px 0 120px;
}

.contact-wrap {
  max-width: 640px;
  margin: 0 auto;
}

.contact-intro {
  text-align: center;
  margin-bottom: 56px;
}

.contact-intro h1 {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(40px, 7vw, 76px);
  line-height: 0.95;
  letter-spacing: -0.01em;
}

.contact-sub {
  margin-top: 22px;
  font-size: 17px;
  line-height: 1.6;
  color: rgba(255,255,255,0.65);
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-form input,
.contact-form textarea {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--white);
  padding: 18px 20px;
  border: 1px solid rgba(255,255,255,0.3);
  background: transparent;
  transition: border-color 0.2s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder { color: rgba(255,255,255,0.45); }

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

.contact-form textarea { resize: vertical; }

.contact-form .btn-white {
  align-self: center;
  margin-top: 10px;
  padding-left: 40px;
  padding-right: 40px;
}

.contact-success {
  text-align: center;
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
}

.contact-error {
  text-align: center;
  color: var(--orange-light);
  font-size: 14px;
  font-weight: 600;
}

@media (max-width: 600px) {
  .contact-section { padding: 100px 0 90px; }
}

/* ---------- Responsive ---------- */

@media (max-width: 680px) {
  .main-nav { display: none; }
  .intro-columns { grid-template-columns: 1fr; gap: 32px; }
  .intro-row { grid-template-columns: 1fr; gap: 32px; }
  .blocks .wrap { grid-template-columns: 1fr; gap: 44px; }
  .hero { padding: 80px 0 64px; }
  .hero-cta { flex-direction: column; align-items: flex-start; }
  .footer-top { flex-direction: column; }
}

@media (max-width: 900px) and (min-width: 681px) {
  .intro-columns { grid-template-columns: repeat(2, 1fr); }
  .intro-row { grid-template-columns: repeat(2, 1fr); }
}

/* ========================================================== */
/* ---------- Home redesign (Figma: basils / home) ---------- */
/* ========================================================== */

.wrap-wide {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 32px;
}

.btn-sm { padding: 10px 20px; font-size: 14px; }

.nav-caret { width: 12px; height: 12px; }

/* ---------- Hero ---------- */

.hero-home {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  padding: 32px 32px 56px;
  background: var(--orange) center/cover no-repeat url('assets/home/hero-poster.jpg');
}

.hero-home-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-home::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--red), var(--orange) 55%, var(--gold));
  mix-blend-mode: multiply;
  z-index: 1;
  pointer-events: none;
}

.hero-home-title-wrap {
  position: relative;
  z-index: 2;
}

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  height: 60px;
  display: flex;
  align-items: center;
  background: transparent;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.site-nav.scrolled {
  background: var(--white);
  box-shadow: 0 1px 0 rgba(0,0,0,0.08);
}

.hero-home-nav {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  flex-shrink: 0;
}

.hero-home-title-wrap {
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 40px 0 0;
}

.hero-home-nav-group {
  display: flex;
  align-items: center;
  gap: 28px;
}

.hero-home-nav-group a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--white);
  font-size: 15px;
  font-weight: 500;
  opacity: 0.92;
}

.hero-home-nav-group a:hover { opacity: 1; }

.hero-home-nav-group-right { gap: 20px; }

.hero-home-nav-group a.btn-white { color: var(--ink); }

/* ---------- Mobile burger + full-screen menu ---------- */

.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 26px;
  height: 20px;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  justify-self: start;
  color: var(--white);
  transition: color 0.25s ease;
}

.site-nav.scrolled .nav-burger { color: var(--ink); }

.nav-burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.site-nav.menu-open {
  background: var(--ink) !important;
  box-shadow: none;
}

.site-nav.menu-open .nav-burger,
.site-nav.menu-open .hero-home-logo,
.site-nav.menu-open .hero-home-nav-group a { color: var(--white); }

.site-nav.menu-open .hero-home-nav-group a.btn-white { color: var(--ink); }

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

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 998;
  background: var(--ink);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  clip-path: inset(100% 0 0 0);
  pointer-events: none;
  transition: clip-path 0.5s cubic-bezier(0.65, 0, 0.35, 1);
}

.mobile-menu.is-open { clip-path: inset(0 0 0 0); pointer-events: all; }

@media (prefers-reduced-motion: reduce) {
  .mobile-menu { transition: none; }
}

.mobile-menu-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.mobile-menu-links a {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(32px, 10vw, 56px);
  line-height: 1.5;
  color: var(--white);
}

@media (min-width: 681px) {
  .nav-burger, .mobile-menu { display: none !important; }
}

@media (max-width: 680px) {
  .nav-burger { display: flex; }
}

.hero-home-logo {
  display: inline-flex;
  align-items: center;
}

/* Logo: wordmark collapses into the wave icon on scroll */
.hero-home-logo {
  position: relative;
  width: 110px;
  height: 30px;
  justify-content: center;
  color: var(--white);
  transition: color 0.25s ease;
}

.hero-home-logo svg {
  position: absolute;
  top: 50%;
  left: 50%;
  overflow: visible;
  transform: translate(-50%, -50%);
}

.logo-word { width: 110px; height: 18px; }
.logo-icon { width: 36px; height: 30px; }

.logo-letter {
  fill: currentColor;
  transform-box: fill-box;
  transform-origin: center;
  /* returning: wait for the icon to un-draw, inner letters first */
  transition:
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1) calc(0.15s + (2 - var(--d)) * 0.05s),
    opacity 0.35s ease calc(0.15s + (2 - var(--d)) * 0.05s);
}

.logo-icon path {
  fill: none;
  stroke: currentColor;
  stroke-width: 20.715;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 0.2s cubic-bezier(0.55, 0, 0.75, 0);
}

.site-nav.scrolled .hero-home-logo { color: var(--ink); }

.site-nav.scrolled .logo-letter {
  transform: translateX(calc(var(--dx) * 1px)) scale(0.15, 0.6);
  opacity: 0;
  /* collapsing: outer letters first */
  transition:
    transform 0.45s cubic-bezier(0.64, 0, 0.78, 0) calc(var(--d) * 0.05s),
    opacity 0.3s ease calc(0.1s + var(--d) * 0.05s);
}

.site-nav.scrolled .logo-icon path {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.35s cubic-bezier(0.33, 0, 0.2, 1) 0.32s;
}

@media (prefers-reduced-motion: reduce) {
  .logo-letter,
  .site-nav.scrolled .logo-letter { transform: none; transition: opacity 0.2s ease; }
  .logo-icon path,
  .site-nav.scrolled .logo-icon path { transition: none; }
}

/* ---------- Page transition loader (Barba + logo line animation) ---------- */

.page-transition {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: var(--white);
  /* Idle/default: hidden, top-anchored (a zero-height sliver pinned at the
     very top) — this is also the resting value a reveal animates back to.
     The cover/reveal animations themselves are driven entirely by the Web
     Animations API in page-transitions.js (overlay.animate(...), explicit
     keyframes each time), not a CSS `transition` reacting to this value
     changing — both phases need to sweep bottom-to-top independently,
     which means the cover phase has to *start* from a different hidden
     shape (bottom-anchored) than this idle one (top-anchored); doing that
     via transition:none + forced reflow + retarget reproducibly froze the
     animation on its first frame, hence Web Animations instead. */
  clip-path: inset(0 0 100% 0);
  pointer-events: none;
}

.page-transition.is-active { pointer-events: all; }

.page-transition .logo {
  --w: min(140px, 40vw);
  position: relative;
  width: var(--w);
  height: calc(var(--w) * 1.667);
}

.page-transition .logo-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  overflow: visible;
  transform: translate(-50%, -50%);
  height: 100%;
  width: auto;
  aspect-ratio: 263 / 221;
}

.page-transition .logo-icon path { stroke-dashoffset: 1; }

.page-transition.is-active .logo-icon path {
  animation: basils-line-loop 1.4s ease-in-out infinite;
}

@keyframes basils-line-loop {
  0% { stroke-dashoffset: 1; }
  45%, 55% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .page-transition.is-active .logo-icon path { animation: none; stroke-dashoffset: 0; }
}

.site-nav.scrolled .hero-home-nav-group a {
  color: var(--ink);
}

.site-nav.scrolled .hero-home-nav-group a.btn-white {
  background: var(--ink);
  color: var(--white);
}

.site-nav.scrolled .nav-caret {
  filter: invert(1);
}

.hero-home-title {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  text-align: center;
  color: var(--white);
  font-size: clamp(48px, 10vw, 150px);
  line-height: 0.9;
  letter-spacing: -0.01em;
}

/* ---------- Upcoming events (dark) ---------- */

.events {
  background: #121212;
  color: var(--white);
  padding: 100px 0 110px;
}

.events-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.events h2 {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(34px, 6vw, 64px);
  line-height: 1;
  max-width: 620px;
}

.events-nav {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.events-nav[hidden] { display: none; }

.events-arrow {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.06);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.events-arrow:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.6); }

.events-arrow.swiper-button-disabled { opacity: 0.3; cursor: default; }
.events-arrow.swiper-button-disabled:hover { background: transparent; border-color: rgba(255,255,255,0.3); }

.events-swiper { overflow: visible; }

.events-swiper .swiper-slide { height: auto; }

.events { overflow-x: hidden; }

.event-card {
  border: 1px solid rgba(255,255,255,0.2);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.event-card-featured { border-color: var(--white); }

.event-card-media {
  position: relative;
  aspect-ratio: 4 / 3.6;
  overflow: hidden;
}

.event-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-tag {
  position: absolute;
  top: 20px;
  left: 20px;
  background: var(--orange);
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 60px;
}

.event-card-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  flex: 1;
}

.event-card-body h3 {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 30px;
  line-height: 1.05;
  letter-spacing: 0.01em;
}

.event-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 15px;
  margin-top: auto;
}

.event-card-meta span:last-child {
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

@media (max-width: 680px) {
  .events-arrow { width: 44px; height: 44px; }
  .event-card-body { padding: 22px; gap: 18px; }
  .event-card-body h3 { font-size: 24px; }
}

/* ---------- Under the Basils Umbrella ---------- */

.umbrella {
  background: var(--white);
  padding: 110px 0 120px;
}

.umbrella h2 {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1;
}

.umbrella-grid { display: grid; gap: 40px; }

.umbrella-grid-a {
  grid-template-columns: repeat(8, 1fr);
  grid-template-rows: auto auto;
  margin-bottom: 40px;
}

.umbrella-head {
  grid-column: 1 / span 2;
  grid-row: 1;
  align-self: start;
}

.umbrella-grid-a .umbrella-card-podcast { grid-column: 3 / span 2; grid-row: 2; align-self: end; }
.umbrella-grid-a .umbrella-card-jazz { grid-column: 5 / span 4; grid-row: 1 / span 2; align-self: end; }

.umbrella-grid-b { grid-template-columns: 2fr 1fr 1fr; }

.umbrella-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.umbrella-card-media {
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.umbrella-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.umbrella-card-media-fill {
  position: relative;
  background: linear-gradient(135deg, var(--red), var(--orange) 55%, var(--gold));
}

.umbrella-card-media-fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(205, 19, 1, 0.82), rgba(255, 54, 0, 0.72) 55%, rgba(208, 157, 5, 0.6));
}

.umbrella-card-coming-soon {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 28px;
  line-height: 1.1;
  color: var(--white);
}

.umbrella-grid-b .umbrella-card-robinson {
  align-self: start;
}

.umbrella-card h3 {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 30px;
  line-height: 1;
}

.umbrella-card p {
  font-size: 15px;
  line-height: 1.5;
  color: #3a3a3a;
  min-height: 67.5px;
  text-wrap: pretty;
}

@media (max-width: 900px) {
  .umbrella-grid-a, .umbrella-grid-b { grid-template-columns: 1fr 1fr; }
  .umbrella-head, .umbrella-grid-a .umbrella-card-podcast, .umbrella-grid-a .umbrella-card-jazz {
    grid-column: auto;
    grid-row: auto;
  }
  .umbrella-head { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .umbrella-grid-a, .umbrella-grid-b { grid-template-columns: 1fr; }
  .umbrella-card-coming-soon { font-size: 22px; }
}

/* ---------- Let's make some noise CTA + footer (shared video) ---------- */

.noise-footer-wrap {
  position: relative;
  overflow: hidden;
  background: var(--orange) center/cover no-repeat url('assets/home/footer-poster.jpg');
  color: var(--white);
  display: flex;
  flex-direction: column;
  padding: 24px;
}

.noise-footer-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.noise-footer-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #ee4601;
  mix-blend-mode: overlay;
  z-index: 1;
  pointer-events: none;
}

.noise-footer-wrap .noise-cta,
.noise-footer-wrap .site-footer-v2 {
  position: relative;
  z-index: 2;
}

.noise-cta {
  padding: 110px 0;
  text-align: center;
}

.noise-cta h2 {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(40px, 7vw, 92px);
  line-height: 1;
}

.noise-sub {
  margin-top: 18px;
  font-size: 16px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.92;
}

.noise-cta .btn { margin-top: 32px; }

/* ---------- Footer v2 ---------- */

.site-footer-v2 {
  background: #f1f1ef;
  color: var(--ink);
  padding: 56px 0 32px;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
}

.footer-v2-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 48px;
  padding-bottom: 48px;
}

.footer-newsletter {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1 1 360px;
  max-width: 460px;
}

.newsletter-form {
  display: flex;
  height: 48px;
  border: 1px solid var(--ink);
}

.newsletter-form input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  padding: 0 16px;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--ink);
}

.newsletter-form input::placeholder { color: rgba(17,17,17,0.6); }

.newsletter-form button {
  width: 94px;
  border: none;
  background: var(--ink);
  color: #f1f1ef;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.newsletter-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--ink);
  cursor: pointer;
}

.newsletter-consent input { width: 16px; height: 16px; margin-top: 2px; flex-shrink: 0; }

.newsletter-success {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
}

.newsletter-error {
  font-size: 12px;
  font-weight: 600;
  color: #c21807;
}

.footer-v2-columns {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  flex: 2 1 480px;
  justify-content: flex-end;
}

.footer-v2-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 150px;
}

.footer-v2-col h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
}

.footer-v2-col a {
  display: block;
  font-size: 15px;
  color: var(--ink);
  opacity: 0.85;
}

.footer-v2-col a:hover { opacity: 1; }

.footer-wave {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 24px;
}

.footer-v2-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(34,34,34,0.18);
  font-size: 12px;
  color: rgba(17,17,17,0.6);
  flex-wrap: wrap;
}

.footer-v2-brand img { width: 36px; height: auto; display: block; }

/* ---------- Home responsive ---------- */

@media (max-width: 680px) {
  .hero-home-nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
  .hero-home-nav-group { display: none; }
  .hero-home-nav-group-right {
    display: flex;
    justify-self: end;
  }
  .hero-home-nav-group-right a:not(.btn-white) { display: none; }
  .hero-home-nav-group-right .btn-sm { padding: 7px 14px; font-size: 12px; }
  .hero-home-logo { justify-self: center; }
  .hero-home-title-wrap { align-items: center; padding: 0; }
  .footer-v2-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    flex: none;
    width: 100%;
  }
  .footer-v2-bottom { flex-direction: column; align-items: flex-start; }
  .noise-footer-wrap { padding: 12px; }
  .noise-footer-wrap .wrap { padding: 0 20px; }
}

/* ========================================================== */
/* ---------- Event template page ---------- */
/* ========================================================== */

.event-kicker {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(40px, 6vw, 80px);
  line-height: 0.95;
}

/* ---------- Event hero ---------- */

.event-hero {
  background: #121212;
  color: var(--white);
  padding: 140px 0 120px;
}

.event-hero-grid {
  display: flex;
  gap: 60px;
  align-items: flex-start;
}

.event-hero-media {
  flex: 1 1 46%;
  aspect-ratio: 765 / 792;
  overflow: hidden;
}

.event-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-hero-info {
  flex: 1 1 54%;
  display: flex;
  flex-direction: column;
  gap: 36px;
  min-width: 0;
}

.event-hero-info h1 {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1;
}

.event-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
}

.event-meta-cell {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.event-meta-cell .label {
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}

.event-meta-cell .value {
  font-size: 22px;
  font-weight: 500;
}

.event-desc {
  font-size: 18px;
  line-height: 1.55;
  color: rgba(255,255,255,0.88);
  max-width: 640px;
  text-wrap: pretty;
}

.event-tickets {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.event-tickets-label {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}

.ticket-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ticket-row {
  border: 1px solid rgba(255,255,255,0.2);
  padding: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.ticket-info h4 {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 22px;
  line-height: 1;
  margin-bottom: 12px;
}

.ticket-info p {
  font-size: 16px;
  color: rgba(255,255,255,0.75);
}

.ticket-qty {
  display: flex;
  align-items: center;
  gap: 20px;
}

.qty-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.3);
  background: transparent;
  color: var(--white);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.qty-btn:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.6); }

.qty-value { font-size: 20px; min-width: 16px; text-align: center; }

.event-checkout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.event-total {
  display: flex;
  gap: 24px;
  font-size: 16px;
}

.event-total span:first-child { color: rgba(255,255,255,0.6); }

/* ---------- The night ---------- */

.event-night {
  background: var(--white);
  padding: 110px 0;
}

.event-night-grid {
  display: flex;
  justify-content: space-between;
  gap: 60px;
  flex-wrap: wrap;
}

.event-night-cols {
  display: flex;
  gap: 90px;
  flex-wrap: wrap;
}

.event-col-label {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 16px;
}

.order-row {
  display: flex;
  gap: 28px;
  align-items: baseline;
  border-bottom: 1px solid rgba(0,0,0,0.1);
  padding: 16px 0;
  font-size: 17px;
}

.order-row .time { font-weight: 700; width: 56px; flex-shrink: 0; }

.event-getting-there { max-width: 420px; }

.venue-row {
  font-size: 17px;
  line-height: 1.5;
  padding: 16px 0;
  border-bottom: 1px solid rgba(0,0,0,0.1);
}

.venue-note {
  font-size: 16px;
  line-height: 1.5;
  color: #3a3a3a;
  padding: 16px 0;
  text-wrap: pretty;
}

/* ---------- On stage ---------- */

.event-stage {
  background: #f1f1ef;
  padding: 110px 0;
}

.event-stage-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.event-stage-head p {
  font-size: 17px;
  line-height: 1.5;
  max-width: 440px;
  color: #3a3a3a;
}

.event-artists {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.artist-card { display: flex; flex-direction: column; gap: 16px; }

.artist-media {
  aspect-ratio: 1 / 1.1;
  overflow: hidden;
  background: #ddd;
}

.artist-media img { width: 100%; height: 100%; object-fit: cover; }

.artist-card h4 {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 22px;
  line-height: 1;
}

.artist-card p { font-size: 16px; color: #666; }

/* ---------- From past nights ---------- */

.event-gallery {
  background: var(--white);
  padding: 110px 0;
}

.event-gallery-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.event-gallery-head p {
  font-size: 18px;
  margin-top: 10px;
}

.gallery-grid {
  column-count: 3;
  column-gap: 16px;
}

.gallery-grid img {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 16px;
  break-inside: avoid;
  cursor: zoom-in;
  transition: opacity 0.2s ease;
}

.gallery-grid img:hover { opacity: 0.85; }

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(10,10,10,0.92);
  padding: 32px;
}

.lightbox.is-open { display: flex; }

.lightbox-img {
  max-width: min(1200px, 90vw);
  max-height: 86vh;
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.06);
  color: var(--white);
  font-size: 20px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.6); }

.lightbox-close { top: 24px; right: 24px; }
.lightbox-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 24px; top: 50%; transform: translateY(-50%); }

@media (max-width: 1080px) {
  .event-hero-grid { flex-direction: column; }
  .event-hero-media { width: 100%; aspect-ratio: 16/11; }
  .event-artists { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { column-count: 2; }
}

@media (max-width: 680px) {
  .event-hero { padding: 110px 0 80px; }
  .event-night, .event-stage, .event-gallery { padding: 70px 0; }
  .event-artists { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { column-count: 1; }
  .event-meta-row { gap: 28px; }
  .lightbox-prev { left: 12px; }
  .lightbox-next { right: 12px; }
  .lightbox-close { top: 12px; right: 12px; }
}

/* ---------- Event back link + all-events grid ---------- */

.event-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.75);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 40px;
  transition: color 0.2s ease;
}

.event-back:hover { color: var(--white); }

.event-back svg { width: 16px; height: 16px; display: block; }

.event-grid-all {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

@media (max-width: 560px) {
  .event-grid-all { grid-template-columns: 1fr; }
}

/* ---------- Events: loading + empty states (homepage + /events) ---------- */

.events-loading {
  font-size: 15px;
  color: #767676;
  padding: 40px 0;
}

.events .events-loading { color: rgba(255,255,255,0.6); }

.event-grid-all .events-empty { grid-column: 1 / -1; }

.events-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  padding: 72px 24px;
  color: #3a3a3a;
}

.events-empty svg { color: var(--orange); }

.events-empty h3 {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 22px;
}

.events-empty p {
  font-size: 15px;
  color: #767676;
  max-width: 360px;
}

.events-empty-dark {
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.15);
}

.events-empty-dark p { color: rgba(255,255,255,0.6); }

/* ========================================================== */
/* ---------- Admin panel ---------- */
/* ========================================================== */

.admin-body [hidden] { display: none !important; }

.admin-body {
  background: var(--off-white);
  min-height: 100vh;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  border-bottom: 1px solid rgba(17,17,17,0.1);
  background: var(--white);
}

.admin-logo {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 18px;
  letter-spacing: 0.02em;
}

.admin-logo span { color: #767676; font-weight: 700; }

.admin-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 32px 120px;
}

.admin-auth h1,
.admin-panel-head h1 {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 32px;
}

.admin-auth { max-width: 360px; margin: 48px auto 0; }

.admin-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 28px;
}

.admin-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #555;
}

.admin-form input[type="text"],
.admin-form input[type="email"],
.admin-form input[type="password"],
.admin-form input[type="number"],
.admin-form input[type="date"],
.admin-form input[type="time"],
.admin-form textarea {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  padding: 10px 12px;
  border: 1px solid rgba(17,17,17,0.2);
  background: var(--white);
}

.admin-form textarea { resize: vertical; }

.admin-form-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.admin-form-row-tight { grid-template-columns: 1fr 1fr; align-items: end; }

.admin-checkbox {
  flex-direction: row !important;
  align-items: center;
  gap: 8px !important;
}

.admin-checkbox input { width: 16px; height: 16px; }

.btn-ink {
  background: var(--ink);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: opacity 0.15s ease;
  align-self: flex-start;
}

.btn-ink:hover { opacity: 0.85; }

.btn-outline-dark {
  background: transparent;
  color: var(--ink);
  border: 1px solid rgba(17,17,17,0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.admin-error {
  color: #c21807;
  font-size: 13px;
  font-weight: 500;
}

.admin-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
}

.admin-events-head {
  display: grid;
  grid-template-columns: 28px minmax(160px, 1.4fr) 100px minmax(160px, 1.6fr) auto;
  align-items: center;
  gap: 16px;
  padding: 0 20px 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #767676;
}

.admin-bulk-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--ink);
  color: var(--white);
  padding: 12px 20px;
  margin-bottom: 8px;
  font-size: 14px;
}

.admin-bulk-actions { display: flex; gap: 20px; }
.admin-bulk-actions .btn-link { color: var(--white); }
.admin-bulk-actions .admin-danger { color: #ff9b8a; }

.admin-events-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: rgba(17,17,17,0.1);
  border: 1px solid rgba(17,17,17,0.1);
}

.admin-event-row {
  background: var(--white);
  padding: 14px 20px;
  display: grid;
  grid-template-columns: 28px minmax(160px, 1.4fr) 100px minmax(160px, 1.6fr) auto;
  align-items: center;
  gap: 16px;
}

.admin-event-row-main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
}

.admin-event-row-main strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-event-row-meta {
  font-size: 13px;
  color: #767676;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-badge {
  display: inline-block;
  background: var(--orange);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 60px;
}

.admin-badge-draft { background: #767676; }
.admin-badge-featured { margin-left: 6px; }

.admin-event-row-actions { display: flex; gap: 16px; flex-wrap: wrap; justify-self: end; }

@media (max-width: 760px) {
  .admin-events-head { display: none; }
  .admin-event-row {
    grid-template-columns: 24px 1fr;
    grid-template-areas:
      "check main"
      "check status"
      "check meta"
      "check actions";
  }
  .admin-event-row input[type="checkbox"] { grid-area: check; align-self: start; }
  .admin-event-row-main { grid-area: main; }
  .admin-event-row-status { grid-area: status; }
  .admin-event-row-meta { grid-area: meta; white-space: normal; }
  .admin-event-row-actions { grid-area: actions; justify-self: start; }
}

.btn-link {
  background: none;
  border: none;
  padding: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  text-decoration: underline;
}

.admin-danger { color: #c21807; }

.admin-loading { color: #767676; font-size: 14px; }

.admin-form-wrap {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid rgba(17,17,17,0.1);
}

.admin-form-wrap h2 {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 22px;
  margin-bottom: 8px;
}

.admin-form-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.admin-note {
  margin-top: 40px;
  font-size: 13px;
  color: #767676;
  max-width: 480px;
}

@media (max-width: 680px) {
  .admin-form-row,
  .admin-form-row-tight { grid-template-columns: 1fr; }
}

/* ---------- Admin: repeatable field groups ---------- */

.admin-repeater-section {
  margin-top: 8px;
  padding-top: 20px;
  border-top: 1px solid rgba(17,17,17,0.1);
}

.admin-repeater-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.admin-repeater-head h3 {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 15px;
  letter-spacing: 0.02em;
}

.admin-repeater {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-repeater-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.admin-repeater-row input {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink);
  padding: 8px 10px;
  border: 1px solid rgba(17,17,17,0.2);
  background: var(--white);
  min-width: 0;
}

.admin-repeater-remove {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(17,17,17,0.2);
  background: var(--white);
  color: #c21807;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}

.admin-repeater-remove:hover { background: rgba(194,24,7,0.08); }

/* ---------- Admin: schedule (date/time pickers) ---------- */

.admin-schedule-section {
  padding: 16px;
  border: 1px solid rgba(17,17,17,0.1);
  background: rgba(17,17,17,0.02);
}

.admin-schedule-head {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: #767676;
  margin-bottom: 12px;
}

.admin-schedule-section .admin-form-row { gap: 16px; }

/* ---------- Admin: image upload (hero + repeater) ---------- */

.admin-image-field { display: flex; flex-direction: column; gap: 10px; }

.admin-image-upload {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.admin-image-preview {
  width: 140px;
  height: 140px;
  flex-shrink: 0;
  overflow: hidden;
  border: 1px solid rgba(17,17,17,0.15);
  background: var(--white);
}

.admin-image-preview img { width: 100%; height: 100%; object-fit: cover; }

.admin-image-preview-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(17,17,17,0.04);
}

.admin-image-placeholder { font-size: 12px; color: #999; text-align: center; padding: 8px; }

.admin-image-upload-controls { display: flex; flex-direction: column; gap: 8px; }

.admin-upload-btn { cursor: pointer; }

.admin-upload-btn-small { font-size: 13px; }

.admin-upload-status { font-size: 13px; color: #767676; }

.admin-repeater-image-field {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.admin-repeater-image-thumb {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  overflow: hidden;
  border: 1px solid rgba(17,17,17,0.15);
  background: var(--white);
}

.admin-repeater-image-thumb img { width: 100%; height: 100%; object-fit: cover; }

.admin-repeater-image-thumb-empty { background: rgba(17,17,17,0.04); }

/* ---------- Admin: gallery multi-upload ---------- */

.admin-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 10px;
}

.admin-gallery-tile {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px solid rgba(17,17,17,0.15);
  background: var(--white);
}

.admin-gallery-tile img { width: 100%; height: 100%; object-fit: cover; }

.admin-gallery-tile-uploading img { opacity: 0.4; }

.admin-gallery-spinner {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 22px;
  height: 22px;
  border: 2px solid rgba(17,17,17,0.2);
  border-top-color: var(--ink);
  border-radius: 50%;
  animation: admin-spin 0.7s linear infinite;
}

@keyframes admin-spin { to { transform: rotate(360deg); } }

.admin-gallery-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: none;
  background: rgba(17,17,17,0.7);
  color: var(--white);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}

.admin-gallery-error {
  position: absolute;
  bottom: 4px;
  left: 4px;
  right: 4px;
  background: #c21807;
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  text-align: center;
  padding: 2px 4px;
}

/* ---------- Admin: form + live preview layout ---------- */

.admin-form-layout {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.admin-form-layout .admin-form { flex: 1; min-width: 0; }

.admin-preview-pane {
  width: 300px;
  flex-shrink: 0;
  position: sticky;
  top: 24px;
}

.admin-preview-pane h3 {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: #767676;
  margin-bottom: 12px;
}

.admin-preview-card-wrap {
  background: #121212;
  padding: 24px;
}

.admin-preview-card-wrap .event-card { pointer-events: none; }

.admin-preview-media-empty { background: linear-gradient(135deg, var(--red), var(--orange) 55%, var(--gold)); }

.admin-preview-note {
  margin-top: 12px;
  font-size: 12px;
  color: #999;
}

@media (max-width: 900px) {
  .admin-form-layout { flex-direction: column; }
  .admin-preview-pane { width: 100%; position: static; }
}
