:root {
  --ink: #07101d;
  --white: #ffffff;
  --muted: rgba(255, 255, 255, 0.72);
  --blue: #1767d8;
  --orange: #ff6d1b;
  --dark-text: #182235;
  --paper: #f3f5f5;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--dark-text); background: var(--paper); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.site-header {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 50%;
  width: min(1240px, calc(100% - 48px));
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  transform: translateX(-50%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.brand {
  position: relative;
  isolation: isolate;
  width: 182px;
  flex: 0 0 auto;
  margin: 6px 0;
  overflow: visible;
  border: 1px solid rgba(255, 255, 255, 0.96);
  border-radius: 11px;
  padding: 8px 12px;
  background: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.98), inset 0 -2px 0 rgba(8, 16, 29, 0.1), 0 2px 0 rgba(7, 16, 29, 0.28), 0 12px 24px rgba(7, 16, 29, 0.3);
  transform: translateY(-1px);
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.brand::before {
  position: absolute;
  z-index: -1;
  right: -5px;
  bottom: -6px;
  left: 5px;
  height: 10px;
  border-radius: 0 0 9px 9px;
  background: linear-gradient(180deg, #c7d0da, #7d8998);
  box-shadow: 0 8px 14px rgba(7, 16, 29, 0.22);
  content: "";
}
.brand::after {
  position: absolute;
  inset: 2px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 9px;
  content: "";
  pointer-events: none;
}
.brand:hover { transform: translateY(-3px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.98), inset 0 -2px 0 rgba(8, 16, 29, 0.1), 0 4px 0 rgba(7, 16, 29, 0.28), 0 16px 28px rgba(7, 16, 29, 0.34); }
.brand img { width: 100%; height: auto; }

.home-page .site-header { justify-content: flex-end; }
.home-brand { display: block; width: 220px; margin: 0 0 32px; }

.site-nav { display: flex; align-items: center; gap: 25px; }
.site-nav a {
  position: relative;
  padding: 12px 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  white-space: nowrap;
  text-transform: uppercase;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.45);
}
.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 3px;
  left: 0;
  height: 2px;
  background: var(--orange);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}
.site-nav a:hover,
.site-nav a.is-active { color: var(--white); }
.site-nav a:hover::after,
.site-nav a.is-active::after { transform: scaleX(1); }

.home-page { min-height: 100svh; overflow-x: hidden; overflow-y: auto; background: var(--ink); }
.home-main {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 118px max(24px, calc((100% - 1240px) / 2)) 82px;
  color: var(--white);
  background-image: url("goeventz-main-canvas.png");
  background-position: center top;
  background-size: cover;
  background-repeat: no-repeat;
}

.home-content { width: min(1180px, 100%); margin: 0 auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; clip-path: inset(50%); }
.events-section { width: 100%; }
.events-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 12px; }
.events-heading .eyebrow { margin: 0; }
.events-count { margin: 0; color: rgba(255, 255, 255, 0.64); font-size: 9px; font-weight: 900; letter-spacing: 0.14em; text-transform: uppercase; }
.events-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; perspective: 1200px; }
.event-card { overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.24); border-radius: 8px; background: rgba(7, 16, 29, 0.82); box-shadow: 0 16px 30px rgba(0, 0, 0, 0.2); backdrop-filter: blur(5px); transform: translateZ(0); transform-style: preserve-3d; transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease; }
.event-card:hover, .event-card:focus-within { border-color: rgba(255, 255, 255, 0.52); box-shadow: 0 26px 46px rgba(0, 0, 0, 0.38), 0 0 0 1px rgba(255, 109, 27, 0.2); transform: translateY(-10px) rotateX(2deg) rotateY(-1deg) scale(1.02); }
.event-thumbnail { position: relative; aspect-ratio: 16 / 8.4; overflow: hidden; background: #111923; }
.event-thumbnail::after { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7, 16, 29, 0.04), rgba(7, 16, 29, 0.72)); content: ""; pointer-events: none; }
.event-thumbnail img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.86) contrast(1.04); transition: transform 420ms ease, filter 220ms ease; }
.event-card:hover .event-thumbnail img, .event-card:focus-within .event-thumbnail img { filter: saturate(1) contrast(1.06); transform: scale(1.07); }
.event-badge, .closed-ribbon { position: absolute; z-index: 2; top: 10px; left: 10px; padding: 5px 7px; color: var(--white); background: var(--orange); font-size: 8px; font-weight: 900; letter-spacing: 0.13em; }
.closed-ribbon { top: 50%; left: 50%; border: 1px solid rgba(255, 255, 255, 0.8); background: var(--orange); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3); transform: translate(-50%, -50%) rotate(-8deg); font-size: 16px; letter-spacing: 0.18em; }
.event-card.is-closed .event-thumbnail::before { position: absolute; z-index: 2; top: 50%; left: -10%; width: 120%; height: 2px; background: var(--orange); box-shadow: 0 0 0 1px rgba(255, 109, 27, 0.24); content: ""; transform: rotate(-8deg); }
.event-card-content { padding: 13px 14px 15px; }
.event-card h2 { min-height: 42px; margin: 0; color: var(--white); font-size: 16px; font-weight: 850; line-height: 1.12; letter-spacing: -0.03em; }
.event-date { margin: 11px 0 15px; color: rgba(255, 255, 255, 0.62); font-size: 9px; font-weight: 900; letter-spacing: 0.1em; }
.event-card-link { display: inline-flex; color: var(--white); font-size: 9px; font-weight: 900; letter-spacing: 0.1em; opacity: 0; pointer-events: none; text-transform: uppercase; transform: translateY(6px); transition: opacity 180ms ease, transform 180ms ease, color 180ms ease; }
.event-card:hover .event-card-link, .event-card:focus-within .event-card-link { opacity: 1; pointer-events: auto; transform: translateY(0); }
.event-card-link span { margin-left: 6px; color: var(--orange); font-size: 15px; }
.event-card-link:hover { color: var(--orange); }

.active-event {
  width: min(540px, 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.45);
  padding-top: 18px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.38);
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 15px;
  color: var(--orange);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}
.eyebrow span { width: 26px; height: 2px; background: var(--orange); }
.active-event h1 {
  max-width: 540px;
  margin: 0;
  font-size: clamp(28px, 3.5vw, 46px);
  font-weight: 850;
  line-height: 0.98;
  letter-spacing: -0.055em;
}
.event-summary { margin: 16px 0 22px; color: var(--muted); font-size: 13px; font-weight: 700; }
.event-link { color: var(--white); font-size: 11px; font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase; }
.event-link span { margin-left: 9px; color: var(--orange); font-size: 18px; }
.event-link:hover { color: var(--orange); }

.home-footer {
  position: fixed;
  right: max(24px, calc((100% - 1240px) / 2));
  bottom: 27px;
  left: max(24px, calc((100% - 1240px) / 2));
  z-index: 4;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.inner-page { min-height: 100svh; background: var(--paper); }
.history-page { min-height: 100svh; background: #0b0d0d; }
.history-page .site-header { justify-content: flex-end; }
.history-main { min-height: 100svh; padding: 118px max(24px, calc((100% - 1180px) / 2)) 0; }
.history-content { width: min(1180px, 100%); margin: 0 auto; }
.history-brand { display: block; width: 220px; margin: 0 0 28px; }
.history-poster { width: 100%; height: auto; }
.contact-page { min-height: 100svh; color: var(--white); background: #0b0d0d url("goeventz-main-canvas.png") center top / cover no-repeat; }
.contact-page .site-header { justify-content: flex-end; }
.contact-main { min-height: 100svh; display: flex; align-items: flex-start; padding: 118px max(24px, calc((100% - 1180px) / 2)) 94px; }
.contact-content-wrap { width: min(620px, 100%); }
.contact-brand { display: block; width: 220px; margin: 0 0 28px; }
.contact-page .contact-content { width: 100%; margin: 0; padding: 0; }
.contact-page .contact-content h2 { color: var(--white); font-size: clamp(34px, 5vw, 54px); }
.contact-page .contact-content p:not(.eyebrow) { color: rgba(255, 255, 255, 0.72); }
.contact-page .contact-email { color: var(--white); }
.contact-page .page-footer { position: fixed; right: max(24px, calc((100% - 1180px) / 2)); bottom: 24px; left: max(24px, calc((100% - 1180px) / 2)); width: auto; margin: 0; border-top-color: rgba(255, 255, 255, 0.2); padding-top: 18px; color: rgba(255, 255, 255, 0.62); }
.page-hero {
  min-height: 315px;
  display: flex;
  align-items: end;
  padding: 130px max(24px, calc((100% - 1240px) / 2)) 46px;
  color: var(--white);
  background-image: url("goeventz-main-canvas.png");
  background-position: center top;
  background-size: cover;
  background-repeat: no-repeat;
}
.page-hero .site-header { position: absolute; }
.page-hero h1 { margin: 0; font-size: clamp(42px, 6vw, 78px); line-height: 0.9; letter-spacing: -0.065em; }
.page-hero p:not(.eyebrow) { max-width: 480px; margin: 15px 0 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.page-content { width: min(1120px, calc(100% - 48px)); margin: 0 auto; padding: 58px 0 92px; }
.page-content h2 { margin: 0; color: var(--dark-text); font-size: clamp(28px, 4vw, 45px); line-height: 0.96; letter-spacing: -0.05em; }
.history-frame { overflow: hidden; border-radius: 6px; background: var(--ink); box-shadow: 0 20px 60px rgba(7, 16, 29, 0.18); }
.history-frame img { width: 100%; height: auto; }
.contact-content { width: min(760px, calc(100% - 48px)); margin: 0 auto; padding: 90px 0 130px; }
.contact-content h2 { margin: 0; font-size: clamp(34px, 5vw, 60px); line-height: 0.92; letter-spacing: -0.06em; }
.contact-content p { max-width: 520px; margin: 24px 0 0; color: #6a7689; font-size: 16px; line-height: 1.7; }
.contact-email { display: inline-block; margin-top: 30px; border-bottom: 2px solid var(--orange); padding-bottom: 7px; color: var(--dark-text); font-size: 20px; font-weight: 850; }
.contact-email:hover { color: var(--orange); }
.event-detail .event-status { margin: 0 0 15px; color: var(--orange); font-size: 10px; font-weight: 900; letter-spacing: 0.16em; }
.event-detail .event-meta { margin-top: 18px; color: var(--dark-text); font-size: 13px; font-weight: 850; }
.page-footer { display: flex; justify-content: space-between; gap: 20px; width: min(1120px, calc(100% - 48px)); margin: 0 auto; border-top: 1px solid rgba(7, 16, 29, 0.12); padding: 22px 0 28px; color: #748095; font-size: 9px; font-weight: 900; letter-spacing: 0.14em; text-transform: uppercase; }

@media (max-width: 700px) {
  .site-header { width: calc(100% - 28px); min-height: 74px; gap: 15px; }
  .brand { width: 132px; padding: 6px 8px; }
  .home-brand { width: 166px; margin-bottom: 26px; }
  .site-nav { gap: 14px; }
  .site-nav a { font-size: 8px; letter-spacing: 0.06em; }
  .home-main { min-height: auto; padding: 104px 20px 38px; }
  .events-heading { align-items: flex-start; flex-direction: column; gap: 7px; }
  .events-grid { grid-template-columns: 1fr; gap: 12px; }
  .event-thumbnail { aspect-ratio: 16 / 7.5; }
  .event-card h2 { min-height: 0; }
  .event-card-link { opacity: 1; pointer-events: auto; transform: none; }
  .home-footer { position: static; margin: 0 20px 24px; }
  .page-content, .contact-content, .page-footer { width: calc(100% - 28px); }
  .contact-main { padding: 104px 20px 92px; }
  .contact-brand { width: 166px; margin-bottom: 24px; }
  .history-main { padding: 104px 20px 0; }
  .history-brand { width: 166px; margin-bottom: 24px; }
  .contact-page .page-footer { right: 20px; bottom: 20px; left: 20px; width: auto; }
  .page-hero { padding-right: 20px; padding-left: 20px; }
}

@media (max-width: 440px) {
  .site-nav { gap: 9px; }
  .site-nav a { font-size: 7px; }
  .brand { width: 112px; padding: 5px 7px; }
  .home-brand { width: 146px; }
  .home-footer span:last-child { display: none; }
}
