:root {
  --ink: #171325;
  --muted: #675f74;
  --paper: #fff8f2;
  --white: #ffffff;
  --plum: #3b2348;
  --violet: #7252c7;
  --lavender: #f6a0b3;
  --wine: #e80a55;
  --rose: #ff5b4d;
  --gold: #ff9f1a;
  --orange: #ff7a00;
  --line: rgba(232, 10, 85, 0.16);
  --shadow: 0 26px 70px rgba(28, 17, 48, 0.18);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 159, 26, 0.16), transparent 32%),
    radial-gradient(circle at 82% 18%, rgba(232, 10, 85, 0.14), transparent 30%),
    linear-gradient(180deg, rgba(255, 248, 242, 0), rgba(255, 248, 242, 1));
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 7vw;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo {
  display: block;
  width: 54px;
  height: 54px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 8px 20px rgba(232, 10, 85, 0.18);
}

.brand-subtitle {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.7rem;
  color: var(--plum);
  font-weight: 700;
}

.main-nav a {
  padding: 0.55rem 0;
}

.main-nav a:hover {
  color: var(--wine);
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.78rem 1.25rem;
  border-radius: 999px;
  font-weight: 800;
  border: 1px solid transparent;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.nav-cta,
.button.primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--wine), var(--violet));
  box-shadow: 0 14px 32px rgba(107, 90, 200, 0.28);
}

.button.secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.12);
}

.button.download {
  color: var(--plum);
  background: var(--white);
  border-color: var(--line);
}

.button.event-button {
  color: var(--plum);
  background: var(--white);
  border-color: rgba(255, 255, 255, 0.6);
}

.button:hover,
.nav-cta:hover {
  transform: translateY(-2px);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 6px auto;
  background: var(--plum);
}

.hero,
.membership-hero {
  position: relative;
  min-height: 720px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--white);
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(23, 19, 37, 0.88), rgba(232, 10, 85, 0.58) 46%, rgba(255, 122, 0, 0.28)),
    url("assets/hero-ajt-afterwork.png") center / cover no-repeat;
  transform: scale(1.02);
  will-change: transform;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(780px, 86vw);
  margin-left: 7vw;
  padding: 6rem 0;
}

.kicker {
  margin: 0 0 1rem;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(2.35rem, 5vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(1.75rem, 3vw, 3.1rem);
  line-height: 1.08;
}

h3 {
  margin: 0 0 0.7rem;
  font-size: 1.25rem;
}

.hero-copy {
  max-width: 640px;
  margin: 1.5rem 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.hero-event {
  position: absolute;
  right: 7vw;
  bottom: 5rem;
  z-index: 2;
  display: grid;
  gap: 0.25rem;
  width: min(320px, 34vw);
  padding: 1.35rem;
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  box-shadow: 0 22px 60px rgba(23, 19, 37, 0.28);
  backdrop-filter: blur(18px);
}

.hero-event .event-eyebrow {
  margin: 0;
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-event strong {
  font-size: 1.35rem;
}

.hero-event span {
  color: rgba(255, 255, 255, 0.82);
}

.hero-event a {
  width: fit-content;
  margin-top: 0.5rem;
  color: var(--white);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.intro-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.intro-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-height: 140px;
  justify-content: center;
  padding: 2rem 7vw;
  background: var(--white);
  color: var(--muted);
}

.intro-number {
  color: var(--plum);
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  font-weight: 900;
}

.section {
  padding: 6.5rem 7vw;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 2.2rem;
}

.members-summary {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.section-heading .kicker,
.contact-panel .kicker,
.membership-box .kicker {
  color: var(--wine);
}

.news-grid,
.details-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.news-card,
.detail {
  min-height: 250px;
  padding: 2rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 40px rgba(28, 17, 48, 0.08);
}

.interactive-card,
.member-card,
.intro-item,
.objective-list p {
  transition: transform 260ms var(--ease-out), box-shadow 260ms var(--ease-out), border-color 260ms var(--ease-out);
}

.interactive-card:hover,
.member-card:hover,
.intro-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 54px rgba(28, 17, 48, 0.14);
  border-color: rgba(232, 10, 85, 0.28);
}

.card-label {
  margin: 0 0 2.5rem;
  color: var(--rose);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.news-card p,
.detail p,
.members-list,
.objective-list p,
.split p,
.contact-panel p,
.membership-box p {
  color: var(--muted);
}

.accent-section {
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(59, 35, 72, 0.92), rgba(232, 10, 85, 0.82)),
    url("assets/ajt-presentation-cover.jpg") center / cover no-repeat;
}

.values-section {
  background: #fff3e3;
}

.objective-list {
  display: grid;
  gap: 1rem;
}

.objective-list p {
  margin: 0;
  padding: 1.1rem 1.2rem;
  background: rgba(255, 255, 255, 0.72);
  border-left: 4px solid var(--wine);
}

.accent-section .kicker {
  color: var(--gold);
}

.accent-section p {
  color: rgba(255, 255, 255, 0.82);
}

.event-highlight {
  display: grid;
  gap: 1rem;
}

.event-highlight p {
  margin: 0;
}

.event-highlight .button {
  justify-self: start;
  margin-top: 0.4rem;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(3, minmax(78px, 1fr));
  gap: 0.7rem;
  max-width: 430px;
  margin-top: 1.8rem;
}

.countdown div {
  padding: 1rem;
  color: var(--white);
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  backdrop-filter: blur(12px);
}

.countdown strong,
.countdown span {
  display: block;
}

.countdown strong {
  font-size: clamp(1.55rem, 3vw, 2.3rem);
  line-height: 1;
}

.countdown span {
  margin-top: 0.25rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 3rem;
  align-items: start;
}

.contact-section {
  padding: 6.5rem 7vw;
  background: #fff0e6;
}

.members-section {
  background: var(--white);
}

.territory-section {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 243, 227, 0.82));
}

.meeting-section {
  background: var(--white);
}

.timeline {
  display: grid;
  gap: 0.8rem;
  max-width: 820px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: meeting;
}

.timeline li {
  counter-increment: meeting;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 1rem;
  align-items: center;
  min-height: 64px;
  padding: 1rem 1.2rem;
  background: #fff3e3;
  border: 1px solid rgba(255, 122, 0, 0.22);
  border-radius: 8px;
  color: var(--muted);
  font-weight: 700;
}

.timeline li::before {
  content: counter(meeting, decimal-leading-zero);
  color: var(--wine);
  font-weight: 900;
}

.members-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.members-list span {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0.65rem 1rem;
  color: var(--plum);
  background: #fff3e3;
  border: 1px solid rgba(255, 122, 0, 0.22);
  border-radius: 999px;
  font-weight: 800;
}

.territory-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.5rem;
}

.territory-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0.55rem 0.85rem;
  color: var(--plum);
  background: var(--white);
  border: 1px solid rgba(232, 10, 85, 0.16);
  border-radius: 999px;
  font-weight: 800;
}

.member-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 1.4rem;
}

.filter-button {
  min-height: 42px;
  padding: 0.65rem 1rem;
  border: 1px solid rgba(232, 10, 85, 0.18);
  border-radius: 999px;
  color: var(--plum);
  background: var(--white);
  font-weight: 900;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.filter-button:hover,
.filter-button.is-active {
  color: var(--white);
  background: linear-gradient(135deg, var(--wine), var(--orange));
  border-color: transparent;
  transform: translateY(-2px);
}

.member-search {
  display: grid;
  gap: 0.45rem;
  max-width: 620px;
  margin-bottom: 0.9rem;
  color: var(--plum);
  font-weight: 900;
}

.member-search input {
  width: 100%;
  min-height: 52px;
  padding: 0.8rem 1rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  box-shadow: 0 12px 32px rgba(28, 17, 48, 0.06);
}

.member-search input:focus {
  outline: 3px solid rgba(232, 10, 85, 0.18);
  border-color: rgba(232, 10, 85, 0.42);
}

.member-count {
  min-height: 1.4rem;
  margin: 0 0 1.2rem;
  color: var(--muted);
  font-weight: 800;
}

.member-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 1rem;
}

.member-card {
  min-width: 0;
  min-height: 210px;
  padding: 1.6rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 243, 227, 0.84));
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 40px rgba(28, 17, 48, 0.08);
}

.member-card[hidden] {
  display: none;
}

.member-card span {
  display: inline-flex;
  margin-bottom: 2.2rem;
  color: var(--wine);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.member-card p {
  color: var(--muted);
}

.member-contact {
  display: grid;
  gap: 0.45rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(232, 10, 85, 0.14);
  min-width: 0;
}

.member-contact a {
  display: block;
  max-width: 100%;
  color: var(--plum);
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.3;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}

.member-contact a:hover {
  color: var(--wine);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: center;
  padding: 3rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.8rem;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem 7vw;
  color: var(--muted);
  background: var(--white);
  border-top: 1px solid var(--line);
}

.site-footer span:first-child {
  color: var(--plum);
  font-weight: 900;
}

.site-footer a {
  color: var(--wine);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.modal-open {
  overflow: hidden;
}

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

.event-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.event-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(23, 19, 37, 0.72);
  backdrop-filter: blur(8px);
}

.event-modal-card {
  position: relative;
  width: min(560px, 100%);
  padding: 2.6rem;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.97), rgba(255, 243, 227, 0.97)),
    url("assets/logo-ajt.png") right -90px top -90px / 240px 240px no-repeat;
  border: 1px solid rgba(255, 122, 0, 0.22);
  border-radius: 8px;
  box-shadow: 0 30px 90px rgba(23, 19, 37, 0.34);
  animation: modalIn 420ms var(--ease-out) both;
}

.event-modal-card h2 {
  max-width: 420px;
  color: var(--plum);
}

.event-modal-card p:not(.kicker) {
  max-width: 460px;
  color: var(--muted);
}

.event-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--plum);
  background: var(--white);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.event-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.6rem;
}

.button.modal-secondary {
  color: var(--plum);
  background: transparent;
  border-color: rgba(77, 36, 102, 0.22);
  cursor: pointer;
}

[data-animate] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 650ms var(--ease-out), transform 650ms var(--ease-out);
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  [data-animate] {
    opacity: 1;
    transform: none;
  }
}

.membership-hero {
  justify-content: center;
  min-height: 650px;
}

.membership-hero .hero-media {
  background:
    linear-gradient(rgba(23, 19, 37, 0.48), rgba(232, 10, 85, 0.62)),
    url("assets/hero-ajt-afterwork.png") center / cover no-repeat;
}

.membership-box {
  position: relative;
  z-index: 1;
  width: min(620px, 86vw);
  margin-top: 2rem;
  padding: 4rem 3rem;
  text-align: center;
  color: var(--ink);
  background: var(--white);
  border-radius: 0;
  box-shadow: var(--shadow);
}

.membership-box h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
}

.membership-box .price {
  margin: 2rem 0 0;
  color: var(--ink);
  font-size: 1.15rem;
  font-weight: 700;
}

.price-note {
  margin: 0.4rem 0 0;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 700;
}

.membership-box .button {
  margin-top: 1.8rem;
  min-width: 180px;
}

.details-section {
  background: var(--paper);
}

.detail-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 2rem;
  color: var(--white);
  background: var(--plum);
  border-radius: 999px;
  font-weight: 900;
}

@media (max-width: 880px) {
  .site-header {
    padding: 0 1.2rem;
  }

  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 72px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem 1.2rem 1.4rem;
    background: var(--white);
    border-bottom: 1px solid var(--line);
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    padding: 0.9rem 0;
  }

  .nav-cta {
    margin-top: 0.5rem;
  }

  .hero,
  .membership-hero {
    min-height: calc(100vh - 72px);
  }

  .hero {
    align-items: stretch;
    flex-direction: column;
    justify-content: center;
  }

  .hero-content {
    width: auto;
    margin: 0;
    padding: 5rem 1.2rem 4rem;
  }

  .intro-band,
  .news-grid,
  .details-grid,
  .member-grid,
  .split,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .intro-item {
    min-height: 110px;
    padding: 1.5rem 1.2rem;
  }

  .section,
  .contact-section {
    padding: 4.5rem 1.2rem;
  }

  .news-card,
  .detail,
  .contact-panel {
    padding: 1.5rem;
  }

  .contact-actions {
    justify-content: stretch;
  }

  .contact-actions .button {
    width: 100%;
  }

  .event-highlight .button {
    width: 100%;
  }

  .hero-event {
    position: relative;
    right: auto;
    bottom: auto;
    width: auto;
    margin: -3.5rem 1.2rem 2rem;
  }

  .countdown {
    grid-template-columns: repeat(3, 1fr);
  }

  .event-modal-card {
    padding: 2rem 1.25rem 1.5rem;
    background-position: right -110px top -100px;
  }

  .event-modal-actions .button {
    width: 100%;
  }

  .membership-box {
    width: calc(100vw - 2.4rem);
    padding: 3rem 1.5rem;
  }

  .site-footer {
    flex-direction: column;
    padding: 1.5rem 1.2rem;
  }
}

@media (max-width: 520px) {
  .brand-logo {
    width: 48px;
    height: 48px;
  }

  .brand-subtitle {
    display: none;
  }

  .hero-actions .button {
    width: 100%;
  }
}
