:root {
  --bg: #f5f5f1;
  --surface: #fff;
  --ink: #101116;
  --muted: #62656e;
  --line: #d6d7d2;
  --blue: #078dcc;
  --blue-dark: #293f96;
  --lime: #46b957;
  --orange: #e97b12;
  --green: #46b957;
  --radius: 30px;
  --shadow: 0 24px 60px rgba(12, 25, 52, .12);
  --display: "Google Sans Flex", "Google Sans", sans-serif;
  --body: "Google Sans Flex", "Google Sans", sans-serif;
  --card-bg: rgba(255, 255, 255, .94);
  --card-border: rgba(255, 255, 255, .5);
  --capsule-bg: #ffffff;
  --capsule-border: #e2e8f0;
  --capsule-text: #1e293b;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent !important;
}

button:focus,
a:focus,
.filter-col:focus,
.mobile-nav-toggle-capsule:focus {
  outline: none !important;
}

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  transition: background .3s, color .3s;
}

html.modal-open,
body.modal-open {
  overflow: hidden !important;
}

body.dark {
  --bg: #0b0d12;
  --surface: #14171e;
  --ink: #f6f6f2;
  --muted: #a6a9b1;
  --line: #30343d;
  --shadow: 0 24px 70px rgba(0, 0, 0, .35);
  --card-bg: rgba(20, 23, 30, .94);
  --card-border: rgba(255, 255, 255, .07);
  --capsule-bg: var(--surface);
  --capsule-border: var(--line);
  --capsule-text: var(--ink);
}

button,
input,
select {
  font: inherit
}

button,
a {
  color: inherit
}

a {
  text-decoration: none
}

button {
  cursor: pointer
}

/* Ensure bold tags always render bold regardless of parent font-weight */
b,
strong {
  font-weight: 700;
}

.skip-link {
  position: fixed;
  top: -60px;
  left: 20px;
  z-index: 99;
  background: var(--lime);
  color: #101116;
  padding: 12px 18px;
  border-radius: 10px
}

.skip-link:focus {
  top: 20px
}

.section-shell {
  width: min(1440px, calc(100% - 48px));
  margin-inline: auto
}

.site-header {
  position: sticky;
  top: 14px;
  z-index: 50;
  width: min(1360px, calc(100% - 40px));
  height: 76px;
  margin: 14px auto 0;
  padding: 10px 12px 10px 20px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  border: 1px solid var(--line);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 10px 35px rgba(0, 0, 0, .06);
  backdrop-filter: blur(18px)
}

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

.brand img {
  width: 220px;
  height: 48px;
  object-fit: contain;
  object-position: left
}

.desktop-nav {
  display: flex;
  gap: 32px;
  font-size: 14px;
  font-weight: 600
}

.header-actions {
  display: flex;
  gap: 8px;
  align-items: center
}

.button {
  border: 0;
  border-radius: 999px;
  padding: 15px 22px;
  display: inline-flex;
  gap: 18px;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  transition: transform .2s, box-shadow .2s
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, .15)
}

.button-dark {
  background: var(--ink);
  color: var(--bg)
}

.button-lime {
  background: var(--lime);
  color: #101116
}

.button-white {
  background: white;
  color: #101116
}

.button-outline {
  background: transparent;
  border: 1px solid var(--line)
}

.icon-button,
.menu-button {
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  font-size: 20px
}

.moon {
  display: none
}

.dark .sun {
  display: none
}

.dark .moon {
  display: inline
}

.menu-button {
  display: none
}

.mobile-nav {
  display: none
}

.eyebrow {
  font: 700 12px var(--display);
  letter-spacing: .14em;
  display: flex;
  align-items: center;
  gap: 9px
}

.eyebrow i {
  width: 8px;
  height: 8px;
  background: var(--orange);
  border-radius: 50%
}

.eyebrow.light {
  color: white
}

.hero {
  padding-top: 22px
}

.hero-grid {
  min-height: 680px;
  background: var(--blue);
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
  display: grid;
  grid-template-columns: 55% 45%;
  position: relative;
  color: white
}

.grid-backdrop {
  background-image: linear-gradient(rgba(255, 255, 255, .065) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .065) 1px, transparent 1px);
  background-size: 70px 70px;
  background-color: var(--blue)
}

.hero-copy {
  padding: 72px 0 65px 70px;
  z-index: 2
}

.hero h1 {
  font: 700 clamp(78px, 9vw, 145px)/.78 var(--display);
  letter-spacing: var(--display-letter-spacing, -.085em);
  margin: 45px 0 35px
}

.hero h1 span,
.highlight-text {
  color: var(--highlighter-color, var(--lime));
}

.capsule-word {
  display: inline-block;
  background: var(--capsule-active-bg, var(--blue));
  border: 1px solid var(--capsule-active-border, var(--blue));
  color: var(--capsule-active-text, #ffffff);
  border-radius: 999px;
  padding: 0.1em 0.5em 0.12em;
  font-size: 0.9em;
  line-height: 1;
}

.hero-copy>p {
  font-size: 18px;
  line-height: 1.55;
  max-width: 570px;
  color: #dfe7ff
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-top: 32px
}

.text-link {
  border: 0;
  background: transparent;
  font-weight: 700;
  display: inline-flex;
  gap: 10px;
  align-items: center;
  padding: 4px 0
}

.hero-stage {
  position: relative;
  perspective: 900px
}

.hero-float-wrap {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.hero-float-wrap * {
  pointer-events: auto;
}

.wrap-one {
  animation: floatCardOne 7s ease-in-out infinite;
}

.wrap-two {
  animation: floatCardTwo 8s ease-in-out infinite;
}

.wrap-stamp {
  animation: spinStamp 9s ease-in-out infinite;
}

@keyframes floatCardOne {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-16px);
  }
}


@keyframes floatCardTwo {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-22px);
  }
}


@keyframes spinStamp {
  0% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-8px) rotate(4deg);
  }

  100% {
    transform: translateY(0) rotate(0deg);
  }
}


@keyframes floatOrbOne {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(20px, -15px) scale(1.08);
  }
}

@keyframes floatOrbTwo {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(-25px, 15px) scale(0.92);
  }
}

.float-card {
  position: absolute;
  padding: 25px;
  border-radius: 28px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .28);
  display: flex;
  flex-direction: column;
  transform-style: preserve-3d;
  transition: transform .15s
}

/* --- Poster Card (3:4 ratio, folder-tab info) --- */
/* --- Poster Card (card-one): poster fills card, glass info panel overlays the bottom --- */
.card-one {
  width: 240px;
  height: 320px;
  top: 100px;
  left: 18px;
  padding: 0;
  overflow: hidden;
  background: var(--blue-dark);
  color: white;
  transform: rotate(-9deg) rotateY(-8deg);
  cursor: pointer;
  position: relative;
  border-radius: 28px
}

.card-one:hover {
  transform: rotate(-7deg) rotateY(-4deg) scale(1.04)
}

/* Poster fills entire card as background */
.card-one-poster {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--blue-dark), var(--blue));
  background-size: cover;
  background-position: center;
  z-index: 0
}

#card_one_poster_img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  pointer-events: none;
  transition: transform .4s cubic-bezier(.25, 1, .5, 1)
}

.card-one:hover #card_one_poster_img {
  transform: scale(1.06)
}

/* Glass info panel — smooth gradient fade from bottom of poster */
.card-one-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
  /* Tall gradient: fully transparent at top, opaque dark glass at bottom */
  background: linear-gradient(to bottom,
      transparent 0%,
      rgba(8, 10, 18, 0.45) 35%,
      rgba(8, 10, 18, 0.82) 100%);
  padding: 55px 16px 16px;
  /* extra top padding creates the fade-in space */
  color: white;
  /* No border-top — seamless fade */
}

/* No folder wedge tab */
.card-one-info::before {
  display: none
}

.card-one-info small {
  font: 700 9px/1 var(--display);
  letter-spacing: .13em;
  color: var(--lime);
  display: block;
  margin-bottom: 5px
}

.card-one-info strong {
  font: 700 18px/.95 var(--display);
  display: block;
  margin-bottom: 4px;
  color: white
}

.card-one-info span {
  font-size: 10px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
  display: block
}

/* ---- Event Detail Modal ---- */
.event-detail-modal {
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(720px, calc(100% - 30px));
  height: auto;
  /* Overrides browser-default fit-content height to prevent collapsing */
  aspect-ratio: 16 / 9;
  max-height: 85vh;
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 0;
  border-radius: 28px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.15);
  /* Translucent backside glass */
  backdrop-filter: blur(25px) saturate(180%);
  -webkit-backdrop-filter: blur(25px) saturate(180%);
  box-shadow: 0 35px 70px rgba(0, 0, 0, 0.2);
}

.event-detail-modal[open] {
  animation: edmFadeIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes edmFadeIn {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(24px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.event-detail-modal::backdrop {
  background: rgba(255, 255, 255, 0);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
}

.event-detail-modal[open]::backdrop {
  background: rgba(255, 255, 255, 0.65);
  /* Bright white frosted glass backside backdrop */
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  animation: edmBackdropFadeIn 0.4s ease forwards;
}

@keyframes edmBackdropFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* Staggered text-reveal animations inside modal when opened */
.event-detail-modal[open] .edm-eyebrow {
  animation: edmSlideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

.event-detail-modal[open] .edm-title {
  animation: edmSlideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.18s both;
}

.event-detail-modal[open] .edm-desc {
  animation: edmSlideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.26s both;
}

.event-detail-modal[open] .edm-meta {
  animation: edmSlideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.34s both;
}

.event-detail-modal[open] .edm-register {
  animation: edmSlideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.42s both;
}

@keyframes edmSlideUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.edm-backdrop {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
  opacity: 1;
}

.edm-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 68%;
  /* Bright white frosted glass overlay behind the text */
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  /* Mask to fade out both the background color AND the blur at the top */
  -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 1) 35%, rgba(0, 0, 0, 0) 100%);
  mask-image: linear-gradient(to top, rgba(0, 0, 0, 1) 35%, rgba(0, 0, 0, 0) 100%);
  z-index: 1;
  pointer-events: none;
}

.edm-close {
  position: absolute;
  right: 18px;
  top: 18px;
  z-index: 10;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(10, 15, 30, 0.6);
  color: white;
  border-radius: 50%;
  font-size: 24px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  cursor: pointer;
  transition: all 0.2s ease;
}

.edm-close:hover {
  background: rgba(10, 15, 30, 0.85);
  transform: scale(1.08);
}

.edm-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 52%;
  overflow: hidden;
  /* Prevent scrolling, make content fit perfectly */
  z-index: 2;
  padding: clamp(14px, 2.5vw, 22px) clamp(20px, 3.5vw, 32px);
  color: #0f172a;
  /* Dark slate text for high contrast on bright glass */
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  column-gap: 24px;
}

.edm-eyebrow {
  display: none !important;
  /* Remove featured event tag as requested */
}

.edm-title {
  grid-column: 1;
  grid-row: 1;
  font: 700 clamp(20px, 3.8vw, 30px)/1.05 var(--display);
  letter-spacing: -.02em;
  margin: 0 0 6px;
  color: #0f172a;
  /* Sharp dark slate title */
}

.edm-desc {
  grid-column: 1;
  grid-row: 2;
  font-size: 13px;
  color: #334155;
  /* Readable slate body text */
  line-height: 1.45;
  max-width: 100%;
  margin: 0 0 10px;
}

.edm-meta {
  grid-column: 1;
  grid-row: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 11.5px;
  color: #475569;
  /* Slate details */
  margin-bottom: 0;
}

.edm-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.edm-register {
  grid-column: 2;
  grid-row: 1 / span 3;
  align-self: end;
  margin-bottom: 0;
}

.card-two {
  width: 280px;
  height: 340px;
  top: 270px;
  right: 45px;
  background: var(--orange);
  color: #101116;
  transform: rotate(8deg) rotateY(6deg)
}

.card-two strong {
  font: 700 43px/.9 var(--display);
  margin: 20px 0 auto
}

.avatar {
  width: 64px;
  height: 64px;
  background: var(--lime);
  border: 3px solid #101116;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font: 700 16px var(--display)
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(.2px)
}

.orb-orange {
  width: 160px;
  height: 160px;
  background: var(--orange);
  top: 95px;
  right: 40px;
  animation: floatOrbOne 15s ease-in-out infinite;
}

.orb-lime {
  width: 110px;
  height: 110px;
  background: var(--lime);
  bottom: 55px;
  left: 15px;
  animation: floatOrbTwo 18s ease-in-out infinite;
}

.round-stamp {
  position: absolute;
  right: 15px;
  bottom: 32px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: var(--lime);
  color: #101116;
  display: grid;
  place-items: center;
  text-align: center;
  font: 700 12px/1.5 var(--display);
  padding: 22px;
  transform: rotate(-12deg);
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.scribble {
  position: absolute;
  width: 180px;
  right: 18px;
  top: 140px;
  fill: none;
  stroke: #101116;
  stroke-width: 7;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.hero-ticker,
.department-ticker {
  overflow: hidden;
  background: var(--lime);
  color: #ffffff;
  border-radius: 0 0 28px 28px;
  padding: 16px 0;
  font: 700 16px var(--display);
  white-space: nowrap
}

.hero-ticker div,
.department-ticker div {
  width: max-content;
  animation: ticker 24s linear infinite
}

.hero-ticker b {
  color: var(--blue);
  padding: 0 25px
}

.hero-ticker div a,
.department-ticker div a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s
}

.hero-ticker div a:hover,
.department-ticker div a:hover {
  opacity: 0.65
}

@keyframes ticker {
  to {
    transform: translateX(var(--ticker-shift, -50%))
  }
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 70px 0
}

.stats-strip div {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--line)
}

.stats-strip div:last-child {
  border: 0
}

.stats-strip strong {
  font: 700 48px var(--display)
}

.stats-strip span {
  max-width: 100px;
  color: var(--muted);
  font-size: 13px
}

.about,
.events,
.projects,
.team,
.news {
  padding: 100px 5%
}

.section-heading {
  margin-bottom: 55px
}

.section-heading h2 {
  font: 700 clamp(52px, 7vw, 102px)/.92 var(--display);
  letter-spacing: -.07em;
  margin: 25px 0 0
}

.section-heading.row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px
}

.section-heading.row>p {
  max-width: 420px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6
}

.pill-word {
  display: inline-block;
  background: var(--highlighter-bg, var(--lime));
  color: var(--highlighter-color, #101116);
  border-radius: var(--highlighter-radius, 999px);
  padding: var(--highlighter-padding, 0 .25em .08em)
}

.orange-pill {
  background: var(--orange)
}

.about-grid {
  display: grid;
  grid-template-columns: 320px 1fr !important;
  gap: 48px !important;
}

.large-copy {
  font-size: 24px;
  line-height: 1.5;
  margin: 0 0 35px
}

.departments {
  display: flex !important;
  flex-direction: row !important;
  gap: 16px !important;
  height: 380px !important;
  width: 100% !important;
  align-items: stretch !important;
  border-top: none !important;
}

.dept-card {
  flex-grow: 0 !important;
  flex-shrink: 0 !important;
  flex-basis: 80px !important;
  display: flex !important;
  flex-direction: column !important;
  padding: 24px !important;
  border-radius: 24px !important;
  background: color-mix(in srgb, var(--surface) 60%, transparent) !important;
  border: 1px solid var(--line) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  overflow: hidden !important;
  transition: flex-grow 0.6s cubic-bezier(0.25, 1, 0.3, 1), background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease !important;
  cursor: pointer !important;
  position: relative !important;
}

.dept-card.active {
  flex-grow: 1 !important;
  background: var(--surface) !important;
  box-shadow: var(--shadow) !important;
  border-color: var(--ink) !important;
}

.dept-header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  width: 100% !important;
}

.dept-num {
  position: absolute !important;
  top: 24px !important;
  left: 24px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  color: var(--muted) !important;
  font-family: var(--display) !important;
}

.dept-arrow {
  position: absolute !important;
  top: 24px !important;
  right: 24px !important;
  width: 32px !important;
  height: 32px !important;
  border: 1.5px solid var(--line) !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  color: var(--ink) !important;
  opacity: 0;
  transform: translate(-4px, 4px) scale(0.9);
  transition: opacity 0.3s ease, transform 0.3s ease, border-color 0.3s ease !important;
}

.dept-card.active .dept-arrow {
  opacity: 1 !important;
  transform: translate(0, 0) scale(1) !important;
  border-color: var(--ink) !important;
}

.dept-title-vertical-wrapper {
  position: absolute !important;
  top: 80px !important;
  bottom: 24px !important;
  left: 0 !important;
  right: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  pointer-events: none !important;
  opacity: 1 !important;
  transition: none !important;
}

.dept-title-vertical {
  transform: rotate(-90deg) !important;
  transform-origin: center !important;
  white-space: nowrap !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  color: var(--ink) !important;
  font-family: var(--display) !important;
}

/* ── The bottom text block — now shows beneath MG layer ── */
/* Always block — opacity/pointer-events control visibility so transitions work */
.dept-expanded-content {
  display: block !important;
  position: absolute !important;
  bottom: 30px !important;
  left: 20px !important;
  right: 20px !important;
  z-index: 5 !important;
  opacity: 0 !important;
  transform: translateY(6px) !important;
  pointer-events: none !important;
  transition: opacity 0.15s ease 0s, transform 0.15s ease 0s !important;
}

/* ════════════════════════════════════════════════════════
   DEPT MOTION GRAPHICS LAYER — fixed timing
   Sequence: card expands (0.6s) → MG fades in → SVG springs up → tagline → text
   ════════════════════════════════════════════════════════ */

/* ── The whole MG layer — hidden until expansion is done ── */
.dept-mg {
  position: absolute !important;
  inset: 0 !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  border-radius: inherit !important;
  visibility: hidden !important;
  /* Collapsing: hide instantly */
  transition: opacity 0.15s ease 0s, visibility 0.15s ease 0s !important;
}

.dept-card.active .dept-mg {
  opacity: 1 !important;
  visibility: visible !important;
  /* Expanding: fade in after card expands (0.6s delay) */
  transition: opacity 0.4s ease 0.6s, visibility 0.4s ease 0.6s !important;
}

/* Per-department accent color */
.dept-card[data-dept="ops"] {
  --da: #3b82f6;
  --da2: #6366f1;
}

.dept-card[data-dept="tech"] {
  --da: #10b981;
  --da2: #06d6a0;
}

.dept-card[data-dept="photo"] {
  --da: #f59e0b;
  --da2: #f97316;
}

.dept-card[data-dept="design"] {
  --da: #ec4899;
  --da2: #a855f7;
}

.dept-card[data-dept="mkt"] {
  --da: #ef4444;
  --da2: #f43f5e;
}

/* Gradient wash behind the graphics */
.dept-mg::before {
  content: '' !important;
  position: absolute !important;
  inset: 0 !important;
  background: radial-gradient(ellipse at 60% 40%, color-mix(in srgb, var(--da, #6366f1) 18%, transparent), transparent 70%),
    radial-gradient(ellipse at 20% 80%, color-mix(in srgb, var(--da2, #818cf8) 10%, transparent), transparent 60%) !important;
  z-index: 0 !important;
}

/* Canvas sits at the back */
.dept-canvas {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  opacity: 0.18 !important;
  z-index: 0 !important;
}

/* ── Floating glyphs ── */
.dept-mg-glyphs {
  position: absolute !important;
  inset: 0 !important;
  z-index: 1 !important;
}

.dmg-glyph {
  position: absolute !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  font-family: var(--display) !important;
  color: var(--da, #6366f1) !important;
  opacity: 0 !important;
  will-change: transform, opacity !important;
  animation: dGlyphFloat 4s ease-in-out infinite !important;
}

/* Staggered positions & delays per glyph */
.dmg-glyph.g1 {
  top: 15%;
  left: 12%;
  animation-delay: 0s;
  animation-duration: 4.2s !important;
  font-size: 16px !important;
}

.dmg-glyph.g2 {
  top: 25%;
  right: 14%;
  animation-delay: 0.7s;
  animation-duration: 3.8s !important;
  font-size: 12px !important;
}

.dmg-glyph.g3 {
  top: 55%;
  left: 8%;
  animation-delay: 1.2s;
  animation-duration: 5s !important;
  font-size: 9px !important;
}

.dmg-glyph.g4 {
  bottom: 30%;
  right: 10%;
  animation-delay: 0.4s;
  animation-duration: 4.6s !important;
  font-size: 14px !important;
}

.dmg-glyph.g5 {
  bottom: 45%;
  left: 18%;
  animation-delay: 1.8s;
  animation-duration: 3.6s !important;
  font-size: 10px !important;
}

@keyframes dGlyphFloat {
  0% {
    opacity: 0;
    transform: translateY(12px) rotate(-8deg) scale(0.8);
  }

  20% {
    opacity: 0.7;
  }

  50% {
    opacity: 0.5;
    transform: translateY(-10px) rotate(4deg) scale(1.1);
  }

  80% {
    opacity: 0.65;
  }

  100% {
    opacity: 0;
    transform: translateY(12px) rotate(-8deg) scale(0.8);
  }
}

/* ── Kinetic ticker at very bottom ── */
.dept-mg-ticker {
  display: none !important;
}

.dept-mg-ticker span {
  display: block !important;
  white-space: nowrap !important;
  font: 700 8px/26px var(--display) !important;
  letter-spacing: 0.15em !important;
  text-transform: uppercase !important;
  color: var(--da, #6366f1) !important;
  opacity: 0.5 !important;
  animation: dTickerScroll 20s linear infinite !important;
  will-change: transform !important;
}

@keyframes dTickerScroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* ── Central SVG art + tagline ── */
.dept-mg-center {
  position: absolute !important;
  /* top: clear of number badge; bottom: clear of content+ticker */
  inset: 52px 16px 85px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  z-index: 2 !important;
}

/* SVG art — springs in after expansion */
.dept-svg-art {
  width: 260px !important;
  height: 260px !important;
  color: var(--da, #6366f1) !important;
  flex-shrink: 0 !important;
  opacity: 0 !important;
  transform: scale(0.75) translateY(8px) !important;
  /* Collapsing: hide instantly */
  transition: opacity 0.15s ease 0s, transform 0.15s ease 0s !important;
}

.dept-card.active .dept-svg-art {
  opacity: 1 !important;
  transform: scale(1) translateY(0) !important;
  /* Expanding: fade in staggered (0.72s delay) */
  transition: opacity 0.4s ease 0.72s,
    transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) 0.72s !important;
}

/* SVG element animations */
.dsvg-spin {
  transform-origin: center !important;
  animation: dSvgStepRotate 12s cubic-bezier(0.77, 0, 0.175, 1) infinite !important;
}

.dsvg-spin-rev {
  transform-origin: center !important;
  animation: dSvgStepRotate 9s cubic-bezier(0.77, 0, 0.175, 1) infinite reverse !important;
}

.dsvg-pulse {
  transform-origin: center !important;
  animation: dSvgElasticPulse 2.8s cubic-bezier(0.44, 0.21, 0.12, 1.25) infinite !important;
}

.dsvg-dot {
  transform-origin: center !important;
  animation: dSvgRipple 2.2s cubic-bezier(0.19, 1, 0.22, 1) infinite !important;
}

.dsvg-draw {
  stroke-dasharray: 400 !important;
  stroke-dashoffset: 400 !important;
  animation: dSvgDraw 2s cubic-bezier(0.22, 1, 0.36, 1) 0.7s forwards,
    dSvgChartWave 3s ease-in-out infinite alternate 2.7s !important;
}

.dsvg-morph {
  transform-origin: center !important;
  animation: dSvgBlobMorph 4s ease-in-out infinite alternate !important;
}

/* ════════════════════════════════════════════════════════
   HIGH-END KINETIC ANIMATIONS FOR SHAPES
   ════════════════════════════════════════════════════════ */

/* Stepped clockwork/radar rotation */
@keyframes dSvgStepRotate {

  0%,
  8.33% {
    transform: rotate(0deg);
  }

  8.33%,
  16.66% {
    transform: rotate(30deg);
  }

  16.66%,
  25% {
    transform: rotate(60deg);
  }

  25%,
  33.33% {
    transform: rotate(90deg);
  }

  33.33%,
  41.66% {
    transform: rotate(120deg);
  }

  41.66%,
  50% {
    transform: rotate(150deg);
  }

  50%,
  58.33% {
    transform: rotate(180deg);
  }

  58.33%,
  66.66% {
    transform: rotate(210deg);
  }

  66.66%,
  75% {
    transform: rotate(240deg);
  }

  75%,
  83.33% {
    transform: rotate(270deg);
  }

  83.33%,
  91.66% {
    transform: rotate(300deg);
  }

  91.66%,
  100% {
    transform: rotate(330deg);
  }
}

/* Fluid elastic heartbeat pulse */
@keyframes dSvgElasticPulse {

  0%,
  100% {
    transform: scale(1);
    filter: drop-shadow(0 0 4px currentColor);
  }

  35% {
    transform: scale(1.16) rotate(6deg);
    filter: drop-shadow(0 0 16px currentColor);
  }

  45% {
    transform: scale(1.08) rotate(-4deg);
  }

  60% {
    transform: scale(1.12) rotate(2deg);
  }
}

/* Expanding ripple for points & radar dots */
@keyframes dSvgRipple {
  0% {
    transform: scale(0.6);
    opacity: 1;
  }

  100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

/* Draw line path animation */
@keyframes dSvgDraw {
  to {
    stroke-dashoffset: 0;
  }
}

/* Continuous wave drift for signal lines */
@keyframes dSvgChartWave {
  0% {
    transform: translateY(0) scaleY(1);
  }

  50% {
    transform: translateY(-6px) scaleY(0.92);
  }

  100% {
    transform: translateY(4px) scaleY(1.05);
  }
}

/* Liquid fluid organic morphing */
@keyframes dSvgBlobMorph {
  0% {
    transform: scale(1) rotate(0deg);
    rx: 4px;
    ry: 4px;
  }

  50% {
    transform: scale(1.08) rotate(45deg);
    rx: 24px;
    ry: 12px;
  }

  100% {
    transform: scale(0.96) rotate(90deg);
    rx: 14px;
    ry: 24px;
  }
}

/* ════════════════════════════════════════════════════════
   HACKER SHELL / TERMINAL SIMULATOR ANIMATIONS
   ════════════════════════════════════════════════════════ */

/* Set lines invisible initially */
.term-line-1,
.term-line-2,
.term-line-3,
.term-line-4,
.term-line-5,
.term-cursor {
  opacity: 0;
}

/* ════════════════════════════════════════════════════════
   OPERATIONS & LOGISTICS — DASHBOARD ACTIVITY FEED
   ════════════════════════════════════════════════════════ */

.ops-feed-1,
.ops-feed-2,
.ops-feed-3,
.ops-feed-4,
.ops-feed-5 {
  opacity: 0;
  transform: translateY(8px);
  will-change: transform, opacity !important;
}

/* Sequential log alerts typing/reveal on active card hover */
.dept-card.active .ops-feed-1 {
  animation: opsFeedSlideIn 7s ease infinite !important;
}

.dept-card.active .ops-feed-2 {
  animation: opsFeedSlideIn 7s ease 0.6s infinite !important;
}

.dept-card.active .ops-feed-3 {
  animation: opsFeedSlideIn 7s ease 1.2s infinite !important;
}

.dept-card.active .ops-feed-4 {
  animation: opsFeedSlideIn 7s ease 1.8s infinite !important;
}

.dept-card.active .ops-feed-5 {
  animation: opsFeedSlideIn 7s ease 2.4s infinite !important;
}

/* Slide in, hold, then drift out at end of loop */
@keyframes opsFeedSlideIn {
  0% {
    opacity: 0;
    transform: translateY(8px);
  }

  6%,
  90% {
    opacity: 1;
    transform: translateY(0);
  }

  98%,
  100% {
    opacity: 0;
    transform: translateY(-8px);
  }
}

/* Radar sonar wave and center active status dot animations */
.ops-sonar-ring {
  transform-origin: 16px 94px !important;
  animation: opsSonarPulse 2.4s cubic-bezier(0.16, 1, 0.3, 1) infinite !important;
}

.ops-status-dot-active {
  transform-origin: 16px 94px !important;
  animation: opsDotPulse 2.4s ease-in-out infinite !important;
}

@keyframes opsSonarPulse {
  0% {
    transform: scale(1);
    opacity: 1;
    stroke-width: 1.5;
  }

  100% {
    transform: scale(3.8);
    opacity: 0;
    stroke-width: 0.5;
  }
}

@keyframes opsDotPulse {

  0%,
  100% {
    transform: scale(1);
    filter: drop-shadow(0 0 2px #3b82f6);
  }

  50% {
    transform: scale(1.2);
    filter: drop-shadow(0 0 6px #3b82f6);
  }
}

/* ── PHOTOGRAPHY VIEWFINDER & SHUTTER FLASH SLIDESHOW ── */

.rec-dot {
  transform-origin: 20px 22px !important;
  animation: recBlink 1.2s step-end infinite !important;
}

@keyframes recBlink {
  50% {
    fill: transparent;
  }
}

/* Base state: hide all slides */
.photo-slide-1,
.photo-slide-2,
.photo-slide-3 {
  opacity: 0;
  will-change: opacity !important;
}

/* Active animations (9s loops, staggered across 3s slide segments) */
.dept-card.active .photo-slide-1 {
  animation: photoSlide1Cycle 9s ease infinite !important;
}

.dept-card.active .photo-slide-2 {
  animation: photoSlide2Cycle 9s ease infinite !important;
}

.dept-card.active .photo-slide-3 {
  animation: photoSlide3Cycle 9s ease infinite !important;
}

.dept-card.active .camera-flash {
  animation: cameraShutterFlash 9s ease infinite !important;
}

/* Slide 1 active: 0s - 3s (fades out at 3s) */
@keyframes photoSlide1Cycle {

  0%,
  30.5% {
    opacity: 1;
  }

  33.33%,
  97.22% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

/* Slide 2 active: 3s - 6s (fades in at 3s, out at 6s) */
@keyframes photoSlide2Cycle {

  0%,
  30.5%,
  67.22%,
  100% {
    opacity: 0;
  }

  33.33%,
  63.88% {
    opacity: 1;
  }
}

/* Slide 3 active: 6s - 9s (fades in at 6s, out at 9s) */
@keyframes photoSlide3Cycle {

  0%,
  63.88%,
  100% {
    opacity: 0;
  }

  67.22%,
  97.22% {
    opacity: 1;
  }
}

/* Bright shutter exposure flash at exactly 3.0s, 6.0s, and 9.0s swap points */
@keyframes cameraShutterFlash {

  0%,
  28.5%,
  33.88%,
  62.38%,
  67.77%,
  95.72%,
  100% {
    opacity: 0;
  }

  30.5%,
  64.38%,
  97.77% {
    opacity: 1;
  }
}





/* Loop timing: 6s total cycle, step-reveals simulating command typing */


/* Loop timing: 6s total cycle, step-reveals simulating command typing */
.dept-card.active .term-line-1 {
  animation: termLineFade 6s steps(1) infinite !important;
}

.dept-card.active .term-line-2 {
  animation: termLineFade 6s steps(1) 0.8s infinite !important;
}

.dept-card.active .term-line-3 {
  animation: termLineFade 6s steps(1) 1.6s infinite !important;
}

.dept-card.active .term-line-4 {
  animation: termLineFade 6s steps(1) 2.4s infinite !important;
}

.dept-card.active .term-line-5 {
  animation: termLineFade 6s steps(1) 3.2s infinite !important;
}

.dept-card.active .term-cursor {
  animation: termCursorBlink 0.8s step-end infinite,
    termCursorMove 6s steps(1) infinite !important;
}

@keyframes termLineFade {
  0% {
    opacity: 0;
  }

  10%,
  90% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

@keyframes termCursorBlink {
  50% {
    opacity: 0;
  }
}

/* Move the cursor dynamically to the end of each text line as it compiles & prints */
@keyframes termCursorMove {

  0%,
  13.33% {
    x: 118px;
    y: 24px;
    opacity: 1;
  }

  /* Prompt input line */
  13.33%,
  26.66% {
    x: 108px;
    y: 42px;
    opacity: 1;
  }

  /* gray line */
  26.66%,
  40% {
    x: 103px;
    y: 60px;
    opacity: 1;
  }

  /* amber line */
  40%,
  53.33% {
    x: 108px;
    y: 78px;
    opacity: 1;
  }

  /* success line */
  53.33%,
  90% {
    x: 142px;
    y: 96px;
    opacity: 1;
  }

  /* cyan online line */
  90%,
  100% {
    opacity: 0;
  }
}


/* ── Tagline — hidden to prevent overlapping ── */
.dept-mg-tagline {
  display: none !important;
}

/* ── Active card — accent glow border ── */
.dept-card.active {
  flex-grow: 1 !important;
  background: var(--surface) !important;
  box-shadow: none !important;
  border: 4px solid var(--da, #6366f1) !important;
}

/* ── Vertical title — delayed fade-in during collapse so it never warps ── */
.dept-title-vertical-wrapper {
  /* Collapsing: fade back in only after card is narrow (0.45s delay) */
  transition: opacity 0.25s ease 0.45s !important;
}

.dept-card.active .dept-title-vertical-wrapper {
  opacity: 0 !important;
  pointer-events: none !important;
  /* Expanding: hide instantly */
  transition: opacity 0s !important;
}

/* ── Bottom text block — transition-based (no animation re-flash on re-hover) ── */
.dept-card.active .dept-expanded-content {
  opacity: 1 !important;
  transform: translateY(0) !important;
  pointer-events: auto !important;
  /* Expanding: fade in staggered (0.9s delay) */
  transition: opacity 0.4s ease 0.9s,
    transform 0.4s cubic-bezier(0.25, 1, 0.5, 1) 0.9s !important;
}

.dept-title-horizontal {
  font: 700 14px/1.2 var(--display) !important;
  color: var(--ink) !important;
  margin: 0 0 4px !important;
  letter-spacing: -0.01em !important;
}

.dept-desc {
  font: 400 11px/1.5 var(--body) !important;
  color: var(--muted) !important;
  margin: 0 !important;
}



@media (max-width: 768px) {
  .departments {
    flex-direction: column !important;
    height: auto !important;
    gap: 12px !important;
  }

  .dept-card {
    flex: none !important;
    width: 100% !important;
    height: 70px !important;
    padding: 16px 20px !important;
    border-radius: 16px !important;
    position: relative !important;
    justify-content: flex-start !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: var(--surface) !important;
    transition: height 0.5s cubic-bezier(0.25, 1, 0.3, 1), background 0.3s, border-color 0.3s !important;
  }

  /* Make active card expand vertically */
  .dept-card.active {
    height: 490px !important;
  }

  .dept-card.active:first-child {
    height: 490px !important;
  }

  /* Prevent hover rules from locking the height of active cards */
  .departments:hover .dept-card {
    height: 70px !important;
  }

  .departments:hover .dept-card.active {
    height: 490px !important;
  }

  .departments .dept-card:hover {
    height: 70px !important;
    flex: none !important;
  }

  .departments .dept-card.active:hover {
    height: 490px !important;
    flex: none !important;
  }

  .dept-title-vertical-wrapper {
    display: flex !important;
    position: absolute !important;
    left: 20px !important;
    top: 16px !important;
    opacity: 1 !important;
    transform: none !important;
    align-items: center !important;
    justify-content: flex-start !important;
    margin-left: 36px !important;
    height: 38px !important;
    transition: opacity 0.25s ease !important;
  }

  .dept-card.active .dept-title-vertical-wrapper {
    opacity: 0 !important;
    pointer-events: none !important;
  }

  .dept-title-vertical {
    transform: none !important;
    writing-mode: horizontal-tb !important;
    font-size: 16px !important;
  }

  /* Expanded description panel */
  .dept-card.active .dept-expanded-content {
    display: block !important;
    opacity: 1 !important;
    transform: translateY(0) !important;
    position: absolute !important;
    bottom: 20px !important;
    left: 20px !important;
    right: 20px !important;
    pointer-events: auto !important;
    transition: opacity 0.4s ease 0.3s, transform 0.4s cubic-bezier(0.25, 1, 0.5, 1) 0.3s !important;
  }

  .dept-title-horizontal {
    font-size: 16px !important;
    margin-bottom: 6px !important;
  }

  .dept-desc {
    font-size: 12px !important;
    line-height: 1.4 !important;
  }

  /* Make sure the arrow rotates downward on active card */
  .dept-arrow {
    opacity: 1 !important;
    position: absolute !important;
    right: 20px !important;
    top: 24px !important;
    transform: none !important;
    transition: transform 0.3s ease, color 0.3s !important;
  }

  .dept-card.active .dept-arrow {
    transform: rotate(90deg) !important;
    color: var(--da, #3b82f6) !important;
  }

  /* Center the motion graphics center block vertically in the expanded card space */
  .dept-card.active .dept-mg-center {
    position: absolute !important;
    top: 50px !important;
    bottom: auto !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 280px !important;
    height: 260px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* Hide decorative text and background elements on mobile to prevent overlapping */
  .dept-mg-tagline,
  .dept-mg-ticker,
  .dept-mg-glyphs {
    display: none !important;
  }

  /* ── Remove Motion on Mobile viewports (<= 768px) ── */
  .dept-mg-ticker span,
  .ops-feed-1,
  .ops-feed-2,
  .ops-feed-3,
  .ops-feed-4,
  .ops-feed-5,
  .ops-sonar-ring,
  .ops-status-dot-active,
  .photo-slide-1,
  .photo-slide-2,
  .photo-slide-3,
  .camera-flash,
  .term-line-1,
  .term-line-2,
  .term-line-3,
  .term-line-4,
  .term-line-5,
  .term-cursor,
  .edit-slide-1,
  .edit-slide-2,
  .edit-pointer,
  .edit-anchor-active {
    animation: none !important;
  }

  /* Ensure static visibility for all slides/contents */
  .ops-feed-1,
  .ops-feed-2,
  .ops-feed-3,
  .ops-feed-4,
  .ops-feed-5 {
    opacity: 0.82 !important;
    transform: none !important;
  }

  .term-line-1,
  .term-line-2,
  .term-line-3,
  .term-line-4,
  .term-line-5 {
    opacity: 1 !important;
    transform: none !important;
  }

  .photo-slide-1 {
    opacity: 1 !important;
    transform: none !important;
  }

  .photo-slide-2,
  .photo-slide-3 {
    opacity: 0 !important;
  }

  .edit-slide-1 {
    opacity: 1 !important;
    transform: none !important;
  }

  .edit-slide-2 {
    opacity: 0 !important;
  }

  .edit-pointer {
    display: none !important;
  }

}

.motion-panel {
  height: 650px;
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  color: #fff;
  background: var(--blue);
  perspective: 1000px
}

.motion-panel video {
  width: 100%;
  height: 100%;
  object-fit: cover
}

.motion-overlay {
  position: absolute;
  inset: 0;
  background: rgba(2, 16, 59, .38)
}

.motion-content {
  position: absolute;
  z-index: 2;
  left: 7%;
  top: 50%;
  transform: translateY(-50%)
}

.motion-content h2 {
  font: 700 clamp(65px, 8vw, 120px)/.85 var(--display);
  letter-spacing: -.075em;
  margin: 30px 0
}

.motion-content h2 span {
  color: var(--lime)
}

.motion-content p {
  font-size: 18px;
  max-width: 420px
}

.compiler-window-container {
  position: absolute !important;
  right: 8% !important;
  top: 15% !important;
  width: 380px !important;
  height: 260px !important;
  z-index: 10 !important;
  pointer-events: auto !important;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s !important;
  border-radius: 10px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4) !important;
}

.compiler-window-container:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6) !important;
}

/* Compiler Action Transitions */
.ide-node-group circle {
  transition: stroke-width 0.3s, filter 0.3s !important;
}

.ide-node-group.active circle {
  stroke-width: 3px !important;
}

.node-idea.active circle {
  filter: drop-shadow(0 0 6px #38bdf8) !important;
}

.node-build.active circle {
  filter: drop-shadow(0 0 6px #f59e0b) !important;
}

.node-ship.active circle {
  filter: drop-shadow(0 0 6px #00df89) !important;
}

/* Deploy Button Hover */
.ide-deploy-btn rect {
  transition: fill 0.25s, opacity 0.25s !important;
}

.ide-deploy-btn:hover rect {
  fill: #00ff9d !important;
  filter: drop-shadow(0 0 6px rgba(0, 223, 137, 0.4)) !important;
}

.ide-deploy-btn.disabled {
  pointer-events: none !important;
  opacity: 0.6 !important;
}

/* Progress Fill Transitions */
.ide-progress-fill {
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Success Rocket Overlay scale */
.ide-success-overlay {
  transform: translate(235px, 65px) scale(0) !important;
  transform-origin: 0 0 !important;
  opacity: 0 !important;
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s !important;
}

.ide-success-overlay.show {
  transform: translate(235px, 65px) scale(1) !important;
  opacity: 1 !important;
}

/* Laser Travel Keyframes */
@keyframes ideLaser1 {
  0% {
    cx: 151px;
    opacity: 1;
  }

  100% {
    cx: 219px;
    opacity: 0;
  }
}

@keyframes ideLaser2 {
  0% {
    cx: 251px;
    opacity: 1;
  }

  100% {
    cx: 319px;
    opacity: 0;
  }
}

.ide-laser-1.run {
  animation: ideLaser1 0.6s linear forwards !important;
}

.ide-laser-2.run {
  animation: ideLaser2 0.6s linear forwards !important;
}




.event-feature {
  background: var(--blue);
  color: white;
  border-radius: var(--radius);
  padding: 55px;
  display: grid;
  grid-template-columns: 150px 1fr 32%;
  gap: 40px;
  min-height: 450px;
  overflow: hidden
}

.event-date {
  border-right: 1px solid rgba(255, 255, 255, .25)
}

.event-date strong {
  display: block;
  font: 700 105px/.85 var(--display);
  color: var(--lime)
}

.event-date span {
  font: 600 20px var(--display)
}

.tag {
  display: inline-flex;
  background: var(--lime);
  color: #101116;
  border-radius: 999px;
  padding: 7px 12px;
  font: 700 11px var(--display)
}

.tag.blue {
  background: var(--blue);
  color: white
}

.tag.orange {
  background: var(--orange)
}

.tag.green {
  background: var(--green);
  color: white
}

.event-info h3 {
  font: 700 clamp(40px, 5vw, 76px)/.9 var(--display);
  letter-spacing: -.05em;
  margin: 22px 0
}

.event-info p {
  max-width: 600px;
  line-height: 1.6;
  color: #dce4ff
}

.event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 13px;
  margin-top: 35px
}

.event-art {
  position: relative;
  background: var(--lime);
  border-radius: 28px;
  color: #101116;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  transform: rotate(4deg)
}

.event-art span {
  font: 700 70px var(--display)
}

.event-art b {
  position: absolute;
  right: 15px;
  top: 15px;
  border: 2px solid;
  border-radius: 50%;
  width: 80px;
  height: 80px;
  display: grid;
  place-items: center
}

.event-art i {
  position: absolute;
  left: 20px;
  bottom: 20px;
  width: 80px;
  height: 80px;
  background: var(--orange);
  border-radius: 50%
}

.mini-events {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 16px
}

.mini-events article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px;
  position: relative
}

.mini-events article>div {
  display: flex;
  justify-content: space-between;
  align-items: center
}

.mini-events small {
  font-weight: 700;
  color: var(--muted)
}

.mini-events h3 {
  font: 600 25px var(--display);
  margin: 28px 0 10px
}

.mini-events p {
  color: var(--muted);
  max-width: 80%;
  line-height: 1.45
}

.circle-button {
  position: absolute;
  right: 20px;
  bottom: 20px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--bg);
  font-size: 20px
}

.fdt {
  padding: 60px 0 100px
}

.fdt-shell {
  border-radius: var(--radius);
  padding: 80px 7%;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 10%;
  color: white
}

.fdt-copy h2 {
  font: 700 clamp(60px, 7vw, 105px)/.82 var(--display);
  letter-spacing: -.07em;
  margin: 35px 0
}

.fdt-copy h2 span {
  color: var(--lime)
}

.fdt-copy p {
  max-width: 580px;
  color: #dce4ff;
  line-height: 1.6;
  font-size: 18px
}

.fdt-path {
  display: flex;
  flex-direction: column;
  justify-content: center
}

.fdt-path div {
  background: white;
  color: #101116;
  border-radius: 18px;
  padding: 18px 22px;
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  transform: rotate(1deg)
}

.fdt-path div:nth-of-type(even) {
  transform: rotate(-1deg) translateX(18px);
  background: var(--lime)
}

.fdt-path b {
  grid-row: 1/3;
  font: 700 13px var(--display);
  color: var(--blue)
}

.fdt-path strong {
  font: 700 19px var(--display)
}

.fdt-path span {
  font-size: 13px;
  color: #62656e
}

.fdt-path i {
  text-align: center;
  height: 22px;
  font-style: normal
}

.resource-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px
}

.resource-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 44px;
  min-height: 320px
}

.resource-card>span {
  font: 700 12px var(--display);
  color: var(--blue)
}

.resource-card h3 {
  font: 600 42px/1 var(--display);
  margin: 35px 0 18px
}

.resource-card p {
  color: var(--muted);
  max-width: 480px;
  line-height: 1.55
}

.visual-card {
  background: var(--orange);
  color: #101116;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px
}

.paper {
  background: #fff;
  border: 2px solid #101116;
  box-shadow: 12px 12px 0 #101116;
  padding: 22px;
  transform: rotate(-5deg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font: 700 30px/1 var(--display)
}

.paper b {
  font-size: 13px
}

.visual-card h3 {
  align-self: end
}

.project-controls {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 30px
}

.search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 12px 18px;
  min-width: 360px
}

.search input {
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  width: 100%
}

.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap
}

.filters button {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 999px;
  padding: 12px 16px;
  font-weight: 600
}

.filters button.active {
  background: var(--ink);
  color: var(--bg)
}

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

.project-card {
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  transition: transform .3s
}

.project-card:hover {
  transform: translateY(-8px)
}

.project-visual {
  height: 320px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center
}

.project-card.cobalt .project-visual {
  background: var(--blue)
}

.project-card.lime .project-visual {
  background: var(--lime);
  color: #101116
}

.project-card.orange .project-visual {
  background: var(--orange);
  color: #101116
}

.project-visual svg {
  width: 80%;
  fill: none;
  stroke: var(--lime);
  stroke-width: 5;
  stroke-dasharray: 10 10
}

.project-visual>b {
  position: absolute;
  font: 700 56px var(--display);
  color: white
}

.route-dot {
  position: absolute;
  width: 40px;
  height: 40px;
  background: var(--orange);
  border: 5px solid white;
  border-radius: 50%;
  z-index: 2
}

.route-dot.a {
  left: 20%;
  bottom: 20%
}

.route-dot.b {
  right: 15%;
  top: 13%
}

.drop-art {
  flex-direction: column
}

.drop-art span {
  font-size: 90px
}

.drop-art b {
  position: static;
  color: #101116;
  font-size: 64px
}

.drop-art small {
  font-weight: 700
}

.people-art {
  gap: 8px
}

.people-art span {
  width: 88px;
  height: 110px;
  border: 2px solid #101116;
  border-radius: 50px 50px 15px 15px;
  background: white;
  display: grid;
  place-items: center;
  font: 700 16px var(--display);
  transform: rotate(-7deg)
}

.people-art span:nth-child(2) {
  background: var(--lime);
  transform: translateY(-30px)
}

.people-art span:nth-child(3) {
  background: var(--blue);
  color: white;
  transform: rotate(7deg)
}

.project-copy {
  padding: 26px
}

.project-copy>span,
.news-grid article>div>span,
.news-list article>span {
  font: 700 11px var(--display);
  letter-spacing: .08em;
  color: var(--muted)
}

.project-copy h3 {
  font: 600 30px var(--display);
  margin: 12px 0
}

.project-copy p {
  color: var(--muted);
  line-height: 1.5;
  min-height: 70px
}

.project-copy a,
.news-list a {
  font-weight: 700;
  font-size: 14px
}

.no-results {
  text-align: center;
  padding: 50px;
  color: var(--muted)
}

.leadership-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.05fr;
  gap: 16px
}

.leader {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 18px
}

.portrait {
  height: 330px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: var(--lime);
  overflow: hidden
}

.portrait-two {
  background: var(--orange)
}

.portrait span {
  font: 700 110px var(--display);
  color: #101116;
  transform: rotate(-8deg);
  border: 5px solid #101116;
  border-radius: 50%;
  width: 210px;
  height: 210px;
  display: grid;
  place-items: center
}

.leader>div+div {
  padding: 24px 8px 8px
}

.leader>div+div>span {
  font: 700 11px var(--display);
  color: var(--blue)
}

.leader h3 {
  font: 600 30px var(--display);
  margin: 10px 0
}

.leader p {
  color: var(--muted)
}

.board-card {
  background: var(--blue);
  color: white;
  padding: 35px
}

.board-card h3 {
  font-size: 45px;
  margin: 35px 0
}

.board-card ul {
  list-style: none;
  padding: 0;
  margin: 0
}

.board-card li {
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .25);
  display: flex;
  justify-content: space-between;
  font: 600 18px var(--display)
}

.department-ticker {
  margin-top: 16px;
  border-radius: 18px;
  background: var(--orange);
  padding: 22px 0;
  font-size: 22px
}

.news-grid {
  display: grid;
  grid-template-columns: 1.35fr .65fr;
  gap: 16px
}

.news-feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 35px;
  align-items: center
}

.news-art {
  height: 390px;
  background: var(--blue);
  color: white;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative
}

.news-art span {
  font: 700 95px/.8 var(--display);
  color: var(--lime)
}

.news-art b {
  position: absolute;
  bottom: 25px;
  background: var(--orange);
  color: #101116;
  border-radius: 999px;
  padding: 10px 14px
}

.news-feature h3 {
  font: 600 39px/1.05 var(--display);
  margin: 20px 0
}

.news-feature p {
  color: var(--muted);
  line-height: 1.6
}

.news-list {
  display: flex;
  flex-direction: column
}

.news-list article {
  padding: 25px;
  border-bottom: 1px solid var(--line);
  flex: 1
}

.news-list h3 {
  font: 600 23px var(--display);
  margin: 15px 0 25px
}

.cta {
  background: var(--blue);
  color: white;
  border-radius: var(--radius);
  min-height: 650px;
  margin-bottom: 30px;
  padding: 75px 7%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden
}

.cta h2 {
  font: 700 clamp(70px, 9vw, 135px)/.79 var(--display);
  letter-spacing: -.08em;
  margin: 35px 0
}

.cta h2 span {
  color: var(--lime)
}

.cta p {
  font-size: 18px;
  max-width: 460px;
  color: #dce4ff
}

.cta-art {
  position: relative;
  display: grid;
  place-items: center
}

.big-disc {
  position: relative;
  z-index: 4;
  width: 270px;
  height: 270px;
  background: var(--lime);
  border: 8px solid white;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #101116;
  font: 700 80px var(--display);
  transform: rotate(-8deg)
}

.ring {
  position: absolute;
  border: 3px solid white;
  border-radius: 50%;
  animation: pulse 3s ease-out infinite
}

.ring.one {
  width: 360px;
  height: 360px
}

.ring.two {
  width: 480px;
  height: 480px;
  animation-delay: 1s
}

.ring.three {
  width: 600px;
  height: 600px;
  animation-delay: 2s
}

@keyframes pulse {
  50% {
    transform: scale(1.08);
    opacity: .35
  }
}

.site-footer {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.3fr;
  gap: 50px;
  padding: 65px 5% 35px;
  border-top: 1px solid var(--line)
}

.site-footer img {
  width: 260px
}

.site-footer>div {
  display: flex;
  flex-direction: column;
  gap: 12px
}

.site-footer strong {
  font: 700 12px var(--display);
  letter-spacing: .1em
}

.site-footer p,
.site-footer a {
  color: var(--muted);
  line-height: 1.5;
  font-size: 14px
}

.site-footer small {
  grid-column: 1/-1;
  border-top: 1px solid var(--line);
  padding-top: 25px;
  color: var(--muted)
}

.registration-modal {
  width: min(600px, calc(100% - 30px));
  border: 0;
  border-radius: 28px;
  padding: 45px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow)
}

.registration-modal::backdrop {
  background: rgba(3, 7, 18, .75);
  backdrop-filter: blur(5px)
}

.registration-modal h2 {
  font: 700 55px/1 var(--display);
  letter-spacing: -.05em;
  margin: 24px 0 12px
}

.registration-modal>p {
  color: var(--muted)
}

.modal-close {
  position: absolute;
  right: 20px;
  top: 20px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  border-radius: 50%;
  font-size: 26px
}

.registration-modal form {
  display: grid;
  gap: 15px;
  margin-top: 30px
}

.registration-modal label {
  display: grid;
  gap: 7px;
  font-weight: 600;
  font-size: 13px
}

.registration-modal input,
.registration-modal select {
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px
}

.toast {
  position: fixed;
  z-index: 100;
  left: 50%;
  bottom: -80px;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--bg);
  border-radius: 999px;
  padding: 14px 22px;
  font-weight: 600;
  transition: .35s;
  box-shadow: var(--shadow)
}

.toast.show {
  bottom: 28px
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .8s ease, transform .8s cubic-bezier(0.25, 1, 0.5, 1)
}

.reveal.visible {
  opacity: 1;
  transform: none
}

@media(max-width:1050px) {
  .desktop-nav {
    display: none
  }

  .menu-button {
    display: block
  }

  .mobile-nav {
    position: absolute;
    top: 85px;
    left: 0;
    right: 0;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 18px;
    box-shadow: var(--shadow);
    flex-direction: column;
    gap: 4px
  }

  .mobile-nav.open {
    display: flex
  }

  .mobile-nav a {
    padding: 14px
  }

  .hero-grid {
    grid-template-columns: 1fr;
    min-height: 950px
  }

  .hero-stage {
    min-height: 400px
  }

  .hero-copy {
    padding: 60px 45px 20px
  }

  .card-one {
    left: 18%
  }

  .card-two {
    right: 15%
  }

  .stats-strip {
    grid-template-columns: 1fr 1fr;
    gap: 30px
  }

  .stats-strip div:nth-child(2) {
    border: 0
  }

  .about-grid,
  .fdt-shell,
  .cta {
    grid-template-columns: 1fr
  }

  .event-feature {
    grid-template-columns: 120px 1fr
  }

  .event-art {
    display: none
  }

  .project-grid,
  .leadership-grid {
    grid-template-columns: 1fr 1fr
  }

  .board-card {
    grid-column: 1/-1
  }

  .news-grid {
    grid-template-columns: 1fr
  }

  .site-footer {
    grid-template-columns: 2fr 1fr 1fr
  }

  .site-footer>div:nth-child(4) {
    grid-column: 1/-1
  }

  .cta-art {
    min-height: 520px
  }

  .compiler-window-container {
    right: 5% !important;
  }
}

@media(max-width:720px) {
  .section-shell {
    width: min(100% - 24px, 1440px)
  }

  .site-header {
    width: calc(100% - 24px);
    top: 14px;
    margin-top: 0;
    height: 64px;
    padding-left: 12px;
    border-radius: 20px 20px 0 0 !important;
  }

  .brand img {
    width: 135px;
    height: 38px
  }

  .header-actions .button {
    display: none
  }

  .icon-button,
  .menu-button {
    width: 40px;
    height: 40px
  }

  .hero {
    padding-top: 14px
  }

  .hero-grid {
    min-height: 810px
  }

  .hero-copy {
    padding: 42px 24px 0
  }

  .hero h1 {
    font-size: 66px;
    margin: 38px 0 28px
  }

  .hero-copy>p {
    font-size: 16px
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px
  }

  .hero-stage {
    min-height: 350px
  }

  .card-one {
    width: 168px;
    height: 224px;
    left: 8%;
    top: 60px
  }

  .card-two {
    width: 190px;
    height: 230px;
    right: 7%;
    top: 110px;
    padding: 17px
  }

  .card-two strong {
    font-size: 29px
  }

  .orb-orange {
    width: 100px;
    height: 100px
  }

  .orb-lime {
    width: 75px;
    height: 75px
  }

  .round-stamp {
    width: 95px;
    height: 95px;
    font-size: 8px;
    right: 10px;
    bottom: 12px
  }

  .scribble {
    display: none
  }

  .stats-strip {
    padding: 50px 8px
  }

  .stats-strip div {
    flex-direction: column;
    text-align: center
  }

  .stats-strip strong {
    font-size: 37px
  }

  .about,
  .events,
  .projects,
  .team,
  .news {
    padding: 70px 10px
  }

  .section-heading h2 {
    font-size: 51px
  }

  .section-heading.row {
    align-items: flex-start;
    flex-direction: column
  }

  .about-grid {
    display: block
  }

  .about-intro {
    margin-bottom: 60px
  }

  .large-copy {
    font-size: 20px
  }

  .motion-panel {
    height: auto !important;
    min-height: 580px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding: 60px 20px 40px !important;
    gap: 32px !important;
  }

  .motion-panel video {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    z-index: 1 !important;
  }

  .motion-overlay {
    position: absolute !important;
    inset: 0 !important;
    z-index: 1 !important;
  }

  .motion-content {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    transform: none !important;
    text-align: center !important;
    width: 100% !important;
    z-index: 2 !important;
  }

  .motion-content h2 {
    font-size: clamp(38px, 8vw, 54px) !important;
    line-height: 1.1 !important;
    margin: 16px 0 !important;
  }

  .motion-content p {
    margin: 0 auto !important;
    max-width: 480px !important;
    font-size: 15px !important;
    line-height: 1.5 !important;
  }

  .compiler-window-container {
    position: relative !important;
    width: min(100%, 360px) !important;
    height: 240px !important;
    left: auto !important;
    transform: none !important;
    top: auto !important;
    right: auto !important;
    margin: 0 auto !important;
    z-index: 2 !important;
  }


  .event-feature {
    grid-template-columns: 1fr;
    padding: 28px
  }

  .event-date {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .2);
    padding-bottom: 20px;
    display: flex;
    gap: 15px;
    align-items: end
  }

  .event-date strong {
    font-size: 75px
  }

  .event-info h3 {
    font-size: 42px
  }

  .event-meta {
    flex-direction: column
  }

  .mini-events,
  .resource-grid,
  .project-grid,
  .leadership-grid {
    grid-template-columns: 1fr
  }

  .fdt-shell {
    padding: 60px 25px
  }

  .fdt-copy h2 {
    font-size: 53px
  }

  .visual-card {
    grid-template-columns: 1fr
  }

  .paper {
    min-height: 230px
  }

  .project-controls {
    flex-direction: column
  }

  .search {
    min-width: 0
  }

  .filters {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 5px
  }

  .filters button {
    white-space: nowrap
  }

  .project-visual {
    height: 280px
  }

  .board-card {
    grid-column: auto
  }

  .news-feature {
    grid-template-columns: 1fr
  }

  .news-art {
    height: 300px
  }

  .cta {
    padding: 60px 25px;
    min-height: 900px
  }

  .cta h2 {
    font-size: 64px
  }

  .cta-art {
    min-height: 390px
  }

  .big-disc {
    width: 190px;
    height: 190px;
    font-size: 55px
  }

  .ring.one {
    width: 250px;
    height: 250px
  }

  .ring.two {
    width: 330px;
    height: 330px
  }

  .ring.three {
    width: 410px;
    height: 410px
  }

  .site-footer {
    grid-template-columns: 1fr 1fr;
    padding-inline: 10px
  }

  .footer-brand,
  .site-footer>div:nth-child(4) {
    grid-column: 1/-1
  }

  .registration-modal {
    padding: 35px 22px
  }

  .registration-modal h2 {
    font-size: 42px
  }
}

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

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

  .reveal {
    opacity: 1;
    transform: none
  }

  .motion-panel video {
    display: none
  }
}

/* Council board — horizontal editorial profiles */
.board-showcase {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 30px;
  overflow: hidden
}

.board-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 28px
}

.board-toolbar p {
  margin: 12px 0 0;
  color: var(--muted)
}

.board-arrows {
  display: flex;
  gap: 8px
}

.board-arrows button {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  font-size: 20px;
  transition: transform .2s, background .2s
}

.board-arrows button:hover {
  transform: scale(1.06);
  background: var(--blue)
}

.board-carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(285px, 32%);
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
  padding-bottom: 2px
}

.board-carousel::-webkit-scrollbar {
  display: none
}

.member-card {
  min-height: 420px;
  border-radius: 24px;
  overflow: hidden;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  color: #101116;
  position: relative
}

.member-green {
  background: var(--green)
}

.member-orange {
  background: var(--orange)
}

.member-blue {
  background: var(--blue);
  color: white
}

.member-white {
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--ink)
}

.member-copy {
  padding: 20px 20px 10px;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  flex: 1
}

.member-copy>div {
  display: flex;
  gap: 6px;
  flex-wrap: wrap
}

.member-copy>div span {
  padding: 6px 9px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font: 700 9px var(--display);
  letter-spacing: .05em
}

.member-copy h3 {
  font: 700 38px/.88 var(--display);
  letter-spacing: -.055em;
  margin: 14px 0 8px
}

.member-copy p {
  font-size: 12px;
  line-height: 1.45;
  max-width: 240px;
  margin: 0;
  opacity: .76
}

.member-portrait {
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  flex: 0 0 260px;
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  border-radius: 70px 70px 0 0
}

.member-blue .member-portrait {
  background: color-mix(in srgb, var(--green) 72%, white)
}

.member-orange .member-portrait {
  background: color-mix(in srgb, var(--blue) 72%, white)
}

.member-green .member-portrait {
  background: color-mix(in srgb, var(--orange) 72%, white)
}

.member-portrait:before {
  content: "";
  position: absolute;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: currentColor;
  opacity: .13;
  top: 28px
}

.member-portrait span {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  color: var(--ink);
  display: grid;
  place-items: center;
  font: 700 64px var(--display);
  opacity: .32
}

.member-portrait span:before {
  display: none
}

.member-portrait span:after {
  display: none
}

.member-portrait b {
  position: absolute;
  z-index: 3;
  left: 14px;
  bottom: 14px;
  background: rgba(16, 17, 22, .82);
  color: white;
  border-radius: 999px;
  padding: 8px 11px;
  font: 700 9px var(--display);
  letter-spacing: .05em
}

.member-portrait i {
  position: absolute;
  z-index: 3;
  right: 14px;
  bottom: 14px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: white;
  color: #101116;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-style: normal;
}

.member-photo {
  position: absolute;
  bottom: 0;
  /* Use contain so transparent cutout photos show full person */
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: bottom center;
  z-index: 2;
  transform-origin: bottom center;
  pointer-events: none;
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.member-card:hover .member-photo {
  transform: scale(1.05);
}

@media(max-width:1050px) {
  .board-carousel {
    grid-auto-columns: minmax(280px, 48%)
  }
}

@media(max-width:720px) {
  .board-showcase {
    padding: 18px
  }

  .board-toolbar {
    align-items: flex-start
  }

  .board-toolbar p {
    display: none
  }

  .board-carousel {
    grid-auto-columns: 86%
  }

  .member-card {
    min-height: 420px
  }

  .member-copy h3 {
    font-size: 36px
  }
}

/* Sculpted navigation control bar */
.site-header {
  height: 88px;
  top: 12px;
  padding: 10px 12px;
  gap: 10px;
  border-radius: 28px 28px 48px 48px;
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  border: 2px solid var(--surface);
  box-shadow: 0 18px 45px rgba(16, 17, 22, .11)
}

.header-direction {
  flex: 0 0 auto;
  width: 58px;
  height: 58px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--bg);
  color: var(--ink);
  display: grid;
  place-items: center;
  font-size: 22px;
  transition: background .2s, color .2s, transform .2s
}

.header-direction:hover {
  background: var(--blue);
  color: white;
  transform: scale(1.04)
}

.header-prev {
  border-radius: 30px 18px 18px 30px
}

.header-next {
  border-radius: 18px 30px 30px 18px
}

.site-header .brand {
  padding: 0 10px
}

.site-header .desktop-nav {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 14px 24px;
  gap: 27px
}

.site-header .header-actions {
  background: var(--bg);
  border-radius: 999px;
  padding: 5px
}

.site-header .button-dark {
  background: var(--blue);
  color: white
}

@media(max-width:1050px) {
  .site-header {
    height: 78px;
    border-radius: 24px 24px 38px 38px
  }

  .site-header .brand {
    margin-right: auto
  }

  .header-direction {
    width: 48px;
    height: 48px;
    border-radius: 18px
  }

  .site-header:before,
  .site-header:after {
    display: none
  }
}

@media(max-width:720px) {
  .site-header {
    height: 70px;
    width: calc(100% - 16px);
    padding: 7px;
    gap: 6px
  }

  .site-header .brand {
    padding: 0 2px
  }

  .header-direction {
    width: 40px;
    height: 40px;
    font-size: 17px
  }

  .header-prev {
    display: none
  }

  .header-next {
    order: 5
  }

  .site-header .header-actions {
    padding: 0;
    background: transparent
  }

  .site-header .icon-button {
    display: none
  }

  .site-header .mobile-nav {
    top: 78px
  }

  .site-header .brand img {
    width: 126px
  }
}

/* Header embedded into the hero, matching the reference silhouette */
.site-header {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 48px);
  max-width: 1440px;
  height: 84px;
  margin: 0;
  padding: 6px 20px;
  gap: 14px;
  background: color-mix(in srgb, var(--surface) 75%, transparent) !important;
  border: 1px solid color-mix(in srgb, var(--line) 40%, transparent) !important;
  border-radius: 30px 30px 0 0;
  box-shadow: 0 12px 36px rgba(16, 17, 22, 0.04);
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: top 0.4s cubic-bezier(0.4, 0, 0.2, 1), left 0.4s cubic-bezier(0.4, 0, 0.2, 1), right 0.4s cubic-bezier(0.4, 0, 0.2, 1), width 0.4s cubic-bezier(0.4, 0, 0.2, 1), height 0.4s cubic-bezier(0.4, 0, 0.2, 1), border-radius 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 100;
}

/* Scrolled state transitions into floating capsule */
.site-header.is-scrolled {
  top: 20px;
  width: calc(100% - 80px);
  max-width: 1360px;
  background: color-mix(in srgb, var(--surface) 70%, transparent) !important;
  border: 1px solid color-mix(in srgb, var(--line) 40%, transparent) !important;
  border-radius: 999px;
  box-shadow: 0 16px 48px rgba(16, 17, 22, 0.12);
  padding: 6px 24px;
}

.site-header .brand {
  padding: 0 8px;
  display: flex;
  align-items: center
}

.site-header .brand img {
  width: 350px;
  height: 76px;
  object-fit: contain
}

.site-header .desktop-nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  height: 100%;
  display: flex;
  align-items: center
}

.site-header .header-actions {
  padding: 0;
  background: transparent;
  border-radius: 0;
  display: flex;
  gap: 12px;
  align-items: center
}

.header-direction {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  border: 1.5px solid var(--line);
  border-radius: 50% !important;
  display: grid;
  place-items: center;
  font-size: 20px;
  color: var(--ink);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 99;
  cursor: pointer
}

.header-direction:hover {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
  transform: translateY(-50%) scale(1.08)
}

.header-prev {
  left: 28px
}

.header-next {
  right: 28px
}

.hero {
  padding-top: 14px
}

.hero-grid {
  min-height: 740px
}

.hero-copy {
  padding-top: 178px
}

@media(max-width:1050px) {
  .site-header {
    top: 14px;
    width: calc(100% - 48px);
    height: 70px;
    border-radius: 24px 24px 0 0;
    padding: 8px 10px
  }

  .site-header .brand {
    margin-right: auto
  }

  .site-header .brand img {
    width: 295px;
    height: 64px
  }

  .header-direction {
    width: 48px;
    height: 48px
  }

  .hero-copy {
    padding-top: 150px
  }
}

@media(max-width:720px) {
  .site-header {
    top: 14px;
    width: calc(100% - 24px);
    height: 64px;
    padding: 7px 9px;
    border-radius: 20px 20px 0 0;
    gap: 7px
  }

  .site-header .brand {
    padding-left: 3px
  }

  .site-header .brand img {
    width: 220px;
    height: 56px
  }

  .header-direction {
    display: none !important
  }

  .site-header .header-actions {
    margin-left: auto
  }

  .site-header .icon-button {
    display: grid
  }

  .site-header .menu-button {
    display: block
  }

  .site-header .mobile-nav {
    top: 72px
  }

  .hero {
    padding-top: 14px
  }

  .hero-grid {
    min-height: 850px
  }

  .hero-copy {
    padding-top: 125px
  }
}

/* Pill Button CTA Styles */
.button-pill {
  background: var(--surface);
  color: var(--ink);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 10px 22px;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 4px 12px rgba(16, 17, 22, 0.04);
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  text-decoration: none;
}

.button-pill:hover {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(16, 17, 22, 0.15);
}

.button-pill span {
  transition: transform 0.25s;
}

.button-pill:hover span {
  transform: translate(2px, -2px);
}

/* 3-Column Navigation Filters */
.nav-filters {
  display: flex;
  gap: 16px;
  height: 100%;
  align-items: center;
}

.site-header .desktop-nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 16px !important;
}

.filter-col {
  display: flex;
  flex-direction: row !important;
  align-items: center !important;
  gap: 8px !important;
  position: relative;
  padding: 8px 18px !important;
  border: 1px solid var(--line);
  border-radius: 999px !important;
  background: var(--bg);
  transition: all 0.25s cubic-bezier(0.25, 1, 0.5, 1);
  cursor: pointer;
  box-sizing: border-box;
}

@media (hover: hover) {
  .filter-col:hover {
    background: var(--surface) !important;
    border-color: var(--ink);
    box-shadow: 0 10px 24px rgba(16, 17, 22, 0.05);
  }
}

.filter-label {
  font-size: 9px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  margin-bottom: 0 !important;
}

.filter-trigger {
  background: transparent;
  border: none;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
}

.filter-trigger .chevron-circle {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--ink) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-sizing: border-box;
}

.filter-trigger .chevron-circle .arrow {
  font-size: 10px;
  font-weight: 800;
  color: var(--ink);
  display: inline-block;
  line-height: 1;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.3s ease;
}

@media (hover: hover) {
  .filter-col:hover .filter-trigger .chevron-circle {
    background: var(--ink) !important;
    border-color: var(--ink) !important;
    transform: scale(1.1);
  }

  .filter-col:hover .filter-trigger .chevron-circle .arrow {
    color: var(--bg) !important;
    transform: rotate(180deg);
  }
}

/* Glassmorphic Dropdown Menus (Pinterest UI Style) */
.filter-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(8px) scale(0.95);
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 12px;
  min-width: 300px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  gap: 6px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), visibility 0.3s;
  z-index: 100;
}

@media (hover: hover) {
  .filter-col:hover .filter-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0) scale(1);
  }
}

.nav-drop-item {
  display: block !important;
  padding: 12px 16px !important;
  border-radius: 16px !important;
  color: var(--ink) !important;
  transition: background 0.25s ease, padding 0.25s ease, transform 0.2s ease !important;
  text-decoration: none !important;
  position: relative !important;
  overflow: hidden !important;
}

.nav-drop-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%) scaleY(0.4);
  width: 4px;
  height: 50%;
  background: var(--blue);
  border-radius: 0 4px 4px 0;
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s, background 0.2s;
}

.nav-drop-item:hover {
  background: rgba(82, 142, 206, 0.06) !important;
  padding-left: 22px !important;
}

.dark .nav-drop-item:hover {
  background: rgba(255, 255, 255, 0.04) !important;
}

.nav-drop-item:hover::before {
  opacity: 1;
  transform: translateY(-50%) scaleY(1);
}

.nav-drop-content {
  display: flex !important;
  flex-direction: column !important;
  gap: 3px !important;
}

.nav-drop-content strong {
  font-size: 13.5px !important;
  font-weight: 700 !important;
  color: var(--ink) !important;
  line-height: 1.25 !important;
  transition: color 0.2s !important;
}

.nav-drop-item:hover .nav-drop-content strong {
  color: var(--blue) !important;
}

.nav-drop-content span {
  font-size: 10.5px !important;
  font-weight: 500 !important;
  color: var(--muted) !important;
  line-height: 1.4 !important;
  white-space: normal !important;
}

.nav-drop-item:after {
  display: none !important;
}

/* Member Info Modal CSS */
.member-info-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(3, 7, 18, 0.45);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: flex-start;
  /* Top align to allow scrolling when overflowing */
  justify-content: center;
  overflow-y: auto;
  /* Enable vertical scrolling */
  padding: 40px 16px;
  /* Margins around the modal */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.member-info-modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.member-info-modal-card {
  width: min(520px, calc(100% - 32px));
  background: #f7f4eb;
  border-radius: 36px;
  overflow: visible;
  /* CRITICAL: Must be visible to allow cutout POP-OUT! */
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
  padding: 24px 24px 28px;
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  color: #101116;
  margin: auto;
  /* Centered when it fits, top aligned to scroll when it overflows */
}

.member-info-modal-backdrop.active .member-info-modal-card {
  transform: scale(1);
}

.modal-member-portrait-container {
  position: relative;
  height: 340px;
  /* Reduced to leave safe margin at the top of the card */
  border-radius: 26px;
  overflow: visible;
  /* CRITICAL: Must be visible for the 3D head pop-out! */
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-member-frame-bg {
  position: absolute;
  top: 30px;
  /* Inner frame starts lower, letting the head overlap top margin */
  bottom: 0;
  left: 0;
  right: 0;
  border-radius: 26px;
  z-index: 1;
  background: var(--green);
  overflow: hidden;
  /* Contain the glossy sweep reflection */

  /* Background entrance animation */
  transform: scale(0.96) translateY(10px);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.4s ease, background 0.3s ease;
}

.member-info-modal-backdrop.active .modal-member-frame-bg {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.modal-member-frame-bg.theme-green {
  background: linear-gradient(135deg, var(--green), #15803d);
}

.modal-member-frame-bg.theme-orange {
  background: linear-gradient(135deg, var(--orange), #c2410c);
}

.modal-member-frame-bg.theme-blue {
  background: linear-gradient(135deg, var(--blue), #1d4ed8);
}

.modal-member-frame-bg.theme-white {
  background: linear-gradient(135deg, #e5e7eb, #9ca3af);
}

/* Glossy reflection sweep overlay - hidden until modal opens */
.modal-member-frame-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, 0.22) 50%, rgba(255, 255, 255, 0) 70%);
  transform: translateX(-120%) skewX(-15deg);
  opacity: 0;
  visibility: hidden;
  z-index: 1;
  pointer-events: none;
}

@keyframes memberShineSwipe {
  0% {
    transform: translateX(-120%) skewX(-15deg);
    opacity: 1;
  }

  70% {
    transform: translateX(120%) skewX(-15deg);
    opacity: 1;
  }

  100% {
    transform: translateX(120%) skewX(-15deg);
    opacity: 0;
  }
}

.member-info-modal-backdrop.active .modal-member-frame-bg .modal-member-frame-glow {
  visibility: visible;
  animation: memberShineSwipe 1.1s cubic-bezier(0.25, 1, 0.5, 1) 0s both;
}

.modal-member-photo {
  position: absolute;
  bottom: 0;
  height: 365px;
  /* Sized perfectly to pop out of frame but stay inside card boundaries */
  width: auto;
  max-width: 100%;
  object-fit: contain;
  z-index: 2;
  pointer-events: none;
  transform-origin: bottom center;

  /* CSS Mask to fade bottom edge smoothly into transparent */
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 75%, rgba(0, 0, 0, 0) 100%);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 75%, rgba(0, 0, 0, 0) 100%);

  /* Combined 3D Perspective Tilt and Blur Reveal Animation (no delays, matches backdrop) */
  transform: perspective(1000px) rotateY(-18deg) rotateX(12deg) translateY(24px) scale(0.92);
  filter: blur(15px);
  opacity: 0;
  transition:
    transform 0.55s cubic-bezier(0.25, 1, 0.5, 1),
    filter 0.5s cubic-bezier(0.25, 1, 0.5, 1),
    opacity 0.45s ease;
}

.member-info-modal-backdrop.active .modal-member-photo {
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg) translateY(0) scale(1.05);
  filter: blur(0px);
  opacity: 1;
}

.modal-member-watermark {
  position: absolute;
  font: 700 110px var(--display);
  color: rgba(255, 255, 255, 0.28);
  border: 6px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  width: 200px;
  height: 200px;
  display: grid;
  place-items: center;
  z-index: 1;
  text-transform: uppercase;
  top: calc(50% + 15px);
  /* Positioned relative to shifted frame bg */
  left: 50%;

  /* Modern entry scale transition */
  transform: translate(-50%, -50%) scale(0.8) rotate(-8deg);
  opacity: 0;
  transition: transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
}

.member-info-modal-backdrop.active .modal-member-watermark {
  transform: translate(-50%, -50%) scale(1) rotate(-8deg);
  opacity: 1;
}

/* Overlapping Title overlay at bottom left of frame */
.modal-member-title {
  position: absolute;
  bottom: 16px;
  left: 16px;
  z-index: 3;
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: 2.4rem;
  color: white;
  line-height: 0.95;
  letter-spacing: -0.04em;
  text-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  max-width: calc(100% - 32px);

  /* Modern entry slide-up transition */
  transform: translateY(15px);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.4s ease;
}

.member-info-modal-backdrop.active .modal-member-title {
  transform: translateY(0);
  opacity: 1;
}

.modal-member-close-btn {
  position: absolute;
  top: 42px;
  /* Positioned inside the frame top-right */
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  font-size: 16px;
  font-weight: 700;
  display: grid;
  place-items: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.25s ease;
  z-index: 100;
  /* Stays above popout image */
}

.modal-member-close-btn:hover {
  background: white;
  color: #101116;
  transform: scale(1.08);
}

.modal-member-details-container {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  border-radius: 28px;
  padding: 24px;
  margin-top: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.04);
}

/* Quote Layout */
.modal-quote-section {
  display: flex;
  gap: 16px;
  position: relative;
  margin-top: 24px;
  align-items: flex-start;
}

.modal-quote-circle-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.modal-quote-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #5c4d3c;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.3rem;
  transition: background-color 0.3s ease;
}

.modal-quote-year {
  font-size: 0.7rem;
  font-weight: 700;
  color: #8a7a68;
  letter-spacing: 0.05em;
  transition: color 0.3s ease;
}

.modal-quote-text-col {
  flex: 1;
  padding-right: 28px;
  position: relative;
  z-index: 2;
}

.modal-member-desc {
  font-family: var(--body);
  font-size: 1.15rem;
  line-height: 1.45;
  font-weight: 500;
  color: #3e3529;
  margin: 0 0 6px 0;
  transition: color 0.3s ease;
}

.modal-member-subdesc {
  font-size: 0.85rem;
  color: #7c6f5e;
  display: block;
  line-height: 1.4;
  transition: color 0.3s ease;
}

.modal-quote-bg-mark {
  position: absolute;
  right: 0;
  top: -15px;
  font-size: 110px;
  font-family: var(--display);
  font-weight: 900;
  color: rgba(92, 77, 60, 0.06);
  line-height: 1;
  pointer-events: none;
  z-index: 1;
  transition: color 0.3s ease;
}

/* Footer dashed divider and tags */
.modal-details-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1.5px dashed rgba(92, 77, 60, 0.15);
  margin-top: 24px;
  padding-top: 18px;
  transition: border-color 0.3s ease;
}

.modal-member-categories {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.modal-member-category-badge {
  padding: 6px 12px;
  border: 1.5px solid #101116;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  font-family: var(--display);
  text-transform: uppercase;
  background: transparent;
}

.modal-member-tag-pill {
  background: white;
  border: 1px solid rgba(92, 77, 60, 0.2);
  border-radius: 999px;
  padding: 6px 14px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: #5c4d3c;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
  text-transform: uppercase;
  transition: all 0.3s ease;
}

/* Modal Themes Mapping */
.member-info-modal-card.theme-green {
  background: #f0f7f2;
}

.member-info-modal-card.theme-green .modal-quote-circle {
  background: #2e5c3e;
}

.member-info-modal-card.theme-green .modal-quote-year {
  color: #5e7c67;
}

.member-info-modal-card.theme-green .modal-member-desc {
  color: #203326;
}

.member-info-modal-card.theme-green .modal-member-subdesc {
  color: #5e7c67;
}

.member-info-modal-card.theme-green .modal-quote-bg-mark {
  color: rgba(46, 92, 62, 0.07);
}

.member-info-modal-card.theme-green .modal-details-footer {
  border-color: rgba(46, 92, 62, 0.15);
}

.member-info-modal-card.theme-green .modal-member-category-badge {
  border-color: #2e5c3e;
  color: #2e5c3e;
}

.member-info-modal-card.theme-green .modal-member-tag-pill {
  color: #2e5c3e;
  border-color: rgba(46, 92, 62, 0.2);
}

.member-info-modal-card.theme-orange {
  background: #faf4ef;
}

.member-info-modal-card.theme-orange .modal-quote-circle {
  background: #a95e1e;
}

.member-info-modal-card.theme-orange .modal-quote-year {
  color: #8a6c51;
}

.member-info-modal-card.theme-orange .modal-member-desc {
  color: #3d2610;
}

.member-info-modal-card.theme-orange .modal-member-subdesc {
  color: #8a6c51;
}

.member-info-modal-card.theme-orange .modal-quote-bg-mark {
  color: rgba(169, 94, 30, 0.07);
}

.member-info-modal-card.theme-orange .modal-details-footer {
  border-color: rgba(169, 94, 30, 0.15);
}

.member-info-modal-card.theme-orange .modal-member-category-badge {
  border-color: #a95e1e;
  color: #a95e1e;
}

.member-info-modal-card.theme-orange .modal-member-tag-pill {
  color: #a95e1e;
  border-color: rgba(169, 94, 30, 0.2);
}

.member-info-modal-card.theme-blue {
  background: #edf5fa;
}

.member-info-modal-card.theme-blue .modal-quote-circle {
  background: #1e5ea9;
}

.member-info-modal-card.theme-blue .modal-quote-year {
  color: #516d8a;
}

.member-info-modal-card.theme-blue .modal-member-desc {
  color: #10263d;
}

.member-info-modal-card.theme-blue .modal-member-subdesc {
  color: #516d8a;
}

.member-info-modal-card.theme-blue .modal-quote-bg-mark {
  color: rgba(30, 94, 169, 0.07);
}

.member-info-modal-card.theme-blue .modal-details-footer {
  border-color: rgba(30, 94, 169, 0.15);
}

.member-info-modal-card.theme-blue .modal-member-category-badge {
  border-color: #1e5ea9;
  color: #1e5ea9;
}

.member-info-modal-card.theme-blue .modal-member-tag-pill {
  color: #1e5ea9;
  border-color: rgba(30, 94, 169, 0.2);
}

.member-info-modal-card.theme-white {
  background: #f7f5f0;
}

.member-info-modal-card.theme-white .modal-quote-circle {
  background: #55524c;
}

.member-info-modal-card.theme-white .modal-quote-year {
  color: #7c776e;
}

.member-info-modal-card.theme-white .modal-member-desc {
  color: #262523;
}

.member-info-modal-card.theme-white .modal-member-subdesc {
  color: #7c776e;
}

.member-info-modal-card.theme-white .modal-quote-bg-mark {
  color: rgba(85, 82, 76, 0.07);
}

.member-info-modal-card.theme-white .modal-details-footer {
  border-color: rgba(85, 82, 76, 0.15);
}

.member-info-modal-card.theme-white .modal-member-category-badge {
  border-color: #55524c;
  color: #55524c;
}

.member-info-modal-card.theme-white .modal-member-tag-pill {
  color: #55524c;
  border-color: rgba(85, 82, 76, 0.2);
}

@media (max-width: 720px) {
  .member-info-modal-card {
    width: min(440px, calc(100% - 24px));
    padding: 16px 16px 20px;
    border-radius: 28px;
  }

  .modal-member-portrait-container {
    height: 240px;
  }

  .modal-member-title {
    font-size: 1.8rem;
  }

  .modal-quote-section {
    margin-top: 18px;
    gap: 12px;
  }

  .modal-member-desc {
    font-size: 1.05rem;
  }

  .modal-quote-bg-mark {
    font-size: 80px;
  }
}






/* =============================================
   FULL-PAGE REGISTRATION OVERLAY — FROSTED GLASS & SEXY ANIMATIONS
   ============================================= */
.reg-page {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: grid;
  grid-template-columns: 1fr 460px;
  overflow: hidden;
  animation: fadeInPage 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
  overscroll-behavior: contain !important;
}

.reg-page[hidden] {
  display: none !important
}

@keyframes fadeInPage {
  from {
    opacity: 0;
    filter: blur(10px);
  }

  60% {
    filter: blur(2px);
  }

  to {
    opacity: 1;
    filter: blur(0px);
  }
}

/* Full-bleed blurred background with zooming effect */
.reg-bg-blur {
  position: absolute;
  inset: -40px;
  background-size: cover;
  background-position: center;
  filter: blur(30px) saturate(1.4) brightness(1.05);
  z-index: 0;
  animation: zoomOutBg 20s ease-out infinite alternate
}

.reg-bg-scrim {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, .24);
  z-index: 1;
  transition: background 0.3s ease;
}

body.dark .reg-bg-scrim {
  background: rgba(11, 13, 18, .6);
}

@keyframes zoomOutBg {
  0% {
    transform: scale(1.04) rotate(0deg);
  }

  100% {
    transform: scale(1.12) rotate(0.5deg);
  }
}

/* Close button — 3D flip rotate on hover */
.reg-close-btn {
  position: absolute;
  top: 24px;
  right: 26px;
  z-index: 100;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid rgba(16, 17, 22, .12);
  background: #101116;
  color: white;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .15);
  transition: background .3s, transform .4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow .3s;
  display: grid;
  place-items: center
}

.reg-close-btn:hover {
  background: var(--blue);
  transform: scale(1.12) rotate(90deg);
  box-shadow: 0 6px 20px rgba(82, 142, 206, 0.4)
}

/* ---- LEFT: Poster floats with padding & 3D tilt perspective ---- */
.reg-poster-panel {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  perspective: 1000px
}

.reg-poster-img {
  display: block;
  max-height: calc(100dvh - 96px);
  width: auto;
  max-width: 100%;
  object-fit: contain;
  border-radius: 18px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .07);
  animation: slideInPoster 0.85s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s ease
}

.reg-poster-img:hover {
  transform: rotateY(-5deg) rotateX(3deg) scale(1.025);
  box-shadow: 0 35px 90px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, 0.15)
}

@keyframes slideInPoster {
  from {
    opacity: 0;
    transform: translateY(50px) rotateY(12deg) scale(0.96);
    filter: blur(14px);
  }

  70% {
    filter: blur(2px);
  }

  to {
    opacity: 1;
    transform: translateY(0) rotateY(0deg) scale(1);
    filter: blur(0px);
  }
}

/* ---- RIGHT: Frosted glass scrollable cards panel ---- */
.reg-cards-panel {
  position: relative;
  z-index: 2;
  overflow-y: auto;
  padding: 92px 24px 48px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  scrollbar-width: none;
  overscroll-behavior: contain !important;
}

.reg-cards-panel::-webkit-scrollbar {
  display: none
}

/* Base card with cascade slide-in */
.reg-card {
  background: var(--card-bg, rgba(255, 255, 255, .94));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 20px;
  padding: 18px 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, .08), 0 0 0 1px var(--card-border);
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.3s ease;
  opacity: 0;
  animation: slideInCard 0.6s cubic-bezier(0.25, 1, 0.5, 1) both
}

.reg-card:nth-child(1) {
  animation-delay: 0.1s
}

.reg-card:nth-child(2) {
  animation-delay: 0.18s
}

.reg-card:nth-child(3) {
  animation-delay: 0.26s
}

.reg-card:nth-child(4) {
  animation-delay: 0.34s
}

@keyframes slideInCard {
  from {
    opacity: 0;
    transform: translateY(30px);
    filter: blur(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0px);
  }
}

.reg-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .12), 0 0 0 1px var(--card-border)
}

.reg-card-label {
  font: 700 10px var(--display);
  letter-spacing: .1em;
  color: #777;
  margin: 0 0 10px;
  text-transform: uppercase
}

/* Mode toggle */
.reg-mode-card {
  display: flex;
  gap: 8px;
  padding: 10px
}

.reg-mode-btn {
  flex: 1;
  padding: 13px;
  border-radius: 13px;
  border: 1.5px solid var(--line, #e0e0e0);
  background: transparent;
  font: 600 14px var(--body);
  cursor: pointer;
  color: var(--muted, #555);
  transition: background .25s, color .25s, border-color .25s
}

.reg-mode-btn.active {
  background: var(--ink, #101116) !important;
  color: var(--bg, white) !important;
  border-color: var(--ink, #101116) !important;
}

/* Spots card */
.reg-tickets-card {
  background: var(--lime);
  backdrop-filter: none;
  -webkit-backdrop-filter: none
}

.reg-tickets-card .reg-card-label {
  color: rgba(16, 17, 22, .6)
}

.reg-tickets-count {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin-bottom: 12px
}

.reg-tickets-count>span:first-child {
  font: 700 60px/.9 var(--display);
  color: #101116;
  letter-spacing: -.04em
}

.reg-tickets-total {
  font: 600 22px var(--display);
  color: rgba(16, 17, 22, .5)
}

.reg-tickets-bar {
  height: 5px;
  background: rgba(16, 17, 22, .15);
  border-radius: 99px;
  overflow: hidden
}

.reg-tickets-fill {
  height: 100%;
  background: #101116;
  border-radius: 99px;
  transition: width .8s ease
}

/* Form card */
.reg-form-card form {
  display: flex;
  flex-direction: column;
  gap: 10px
}

.reg-form-card label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  font-family: var(--body);
  color: var(--ink, #1e293b);
  transition: color 0.25s
}

.form-field-label-text {
  font-size: 12px;
  color: var(--ink, #1e293b);
  display: inline-block;
}

.required-asterisk {
  color: #ef4444;
  margin-left: 3px;
  font-weight: bold;
  display: inline-block;
}

.reg-form-card input,
.reg-form-card textarea,
.reg-form-card select {
  border: 1.5px solid var(--line, #e4e4e4);
  font: 14px var(--body);
  color: var(--ink, #101116);
  background: var(--bg, #f7f7f7);
  outline: none;
  transition: border-color .25s, background .25s, box-shadow 0.25s;
  width: 100%;
  box-sizing: border-box;
}

.reg-form-card input {
  border-radius: 9999px !important;
  padding: 14px 22px !important;
}

.reg-form-card select {
  border-radius: 9999px !important;
  padding: 14px 22px !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23101116' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 20px center !important;
  background-size: 16px 16px !important;
  padding-right: 48px !important;
  cursor: pointer !important;
}

.reg-form-card textarea {
  border-radius: 20px !important;
  padding: 16px 20px !important;
}

.reg-form-card input:focus,
.reg-form-card select:focus,
.reg-form-card textarea:focus {
  border-color: var(--blue, #101116);
  background-color: var(--surface, white) !important;
  box-shadow: 0 0 0 4px rgba(16, 17, 22, 0.06);
}

.reg-form-card label:focus-within {
  color: var(--blue, #101116)
}

/* Submit button with shiny sheen reflex sweep */
.reg-submit-btn {
  position: relative;
  overflow: hidden;
  margin-top: 4px;
  padding: 15px 22px;
  background: #101116;
  color: white;
  border: none;
  border-radius: 999px;
  font: 700 14px var(--display);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background .25s, transform .2s, box-shadow 0.25s;
  width: 100%
}

.reg-submit-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -50%;
  width: 30%;
  height: 100%;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.25), transparent);
  transform: skewX(-25deg);
  transition: 0.75s
}

.reg-submit-btn:hover::after {
  left: 120%
}

.reg-submit-btn:hover {
  background: var(--blue);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(82, 142, 206, 0.3)
}

/* Venue card */
.reg-link-card {
  border: none
}

.reg-link-url {
  font: 500 14px var(--body);
  color: #222;
  line-height: 1.5
}

/* Mobile */
@media(max-width:700px) {
  .reg-page {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr
  }

  .reg-poster-panel {
    padding: 80px 28px 20px
  }

  .reg-poster-img {
    max-height: 45vh
  }

  .reg-cards-panel {
    padding: 20px 16px
  }
}

/* Hide screen edge direction buttons but keep board carousel arrows on the sides */
.header-direction {
  display: none !important;
}

.board-showcase {
  position: relative !important;
}

.board-arrows {
  display: block !important;
}

.board-arrows button {
  position: absolute !important;
  top: 68% !important;
  transform: translateY(-50%) !important;
  z-index: 10 !important;
  width: 48px !important;
  height: 48px !important;
  border-radius: 50% !important;
  background: var(--ink) !important;
  color: var(--bg) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: transform 0.2s, background 0.2s !important;
  border: none !important;
}

.board-arrows button:hover {
  transform: translateY(-50%) scale(1.08) !important;
  background: var(--blue) !important;
  color: white !important;
}

#boardPrev {
  left: 15px !important;
}

#boardNext {
  right: 15px !important;
}

/* Fancy input typing animation container and styles */
.fancy-input-wrapper {
  position: relative;
  width: 100%;
}

.fancy-input-wrapper input,
.fancy-input-wrapper textarea {
  color: transparent !important;
  caret-color: transparent !important;
  font-family: var(--body) !important;
  font-size: 14px !important;
  line-height: 1.4 !important;
  letter-spacing: normal !important;
}

.fancy-input-overlay {
  position: absolute;
  left: 1.5px;
  top: 1.5px;
  right: 1.5px;
  bottom: 1.5px;
  padding: 14px 22px !important;
  pointer-events: none;
  font-family: var(--body);
  font-size: 14px;
  line-height: 1.4;
  color: var(--ink, #101116);
  overflow: hidden;
  white-space: pre;
  display: flex;
  align-items: center;
  box-sizing: border-box;
}

.fancy-input-wrapper textarea+.fancy-input-overlay {
  display: block !important;
  white-space: pre-wrap !important;
  padding: 16px 20px !important;
  overflow-y: auto !important;
}

.fancy-input-overlay span {
  display: inline;
  font: inherit;
  line-height: inherit;
  letter-spacing: normal;
}

.char-entering {
  display: inline-block !important;
  animation: charEnter 0.16s cubic-bezier(0.175, 0.885, 0.32, 1.15) both;
}

@keyframes charEnter {
  from {
    opacity: 0;
    transform: translateY(0.45em);
    filter: blur(2.5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

/* Custom Choice Capsules */
.choice-capsule {
  background: var(--capsule-bg, #ffffff);
  border: 1px solid var(--capsule-border, #e2e8f0);
  border-radius: 30px;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  color: var(--capsule-text, #1e293b);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  font-family: var(--font-family);
  display: inline-block;
  white-space: nowrap;
}

.choice-capsule:hover {
  border-color: var(--capsule-hover-border, var(--blue));
  color: var(--capsule-hover-text, var(--blue));
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.choice-capsule.active {
  background: var(--capsule-active-bg, var(--blue)) !important;
  border-color: var(--capsule-active-border, var(--blue)) !important;
  color: var(--capsule-active-text, #ffffff) !important;
  box-shadow: 0 4px 12px rgba(7, 141, 204, 0.3) !important;
}

/* Force bold formatting inside label texts */
.reg-form-card label b,
.reg-form-card label strong,
.form-field-label-text b,
.form-field-label-text strong,
.form-field-label b,
.form-field-label strong {
  font-weight: 700 !important;
}

/* ===== TICKET SUCCESS SCREEN ===== */
.ticket-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 15, 30, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  opacity: 1;
  transition: opacity 0.3s ease;
  overflow: hidden;
}

.ticket-modal-backdrop.hidden {
  display: none !important;
  opacity: 0;
}

.ticket-container {
  position: relative;
  width: min(90vw, 400px);
  perspective: 1000px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  transform-origin: top center;
  /* Push ticket down a little from top, then scale to fit */
  margin-top: 40px;
  transform: scale(min(1, calc((100dvh - 80px) / 680px)));
  --poster-height: 225px;
  /* Default: perfect 16:9 ratio height for 400px desktop width */
}

/* ---- PRINTER BODY (Layer 3 - TOP) ---- */
.printer-slot {
  width: calc(100% + 60px);
  max-width: 460px;
  height: 50px;
  background: linear-gradient(to bottom, #e5e7eb 0%, #d4d7dc 25%, #c4c8cc 50%, #b0b5bb 75%, #9ca3af 100%);
  border: 1px solid #d1d5db;
  border-bottom: none;
  border-radius: 12px 12px 0 0;
  z-index: 50;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.25),
    inset 0 2px 0 rgba(255, 255, 255, 0.6),
    inset 0 -1px 2px rgba(0, 0, 0, 0.1);
}

/* ---- BLACK SLIT BAR (Layer 3 - part of printer, overlaps paper) ---- */
.printer-slot::after {
  content: '';
  position: absolute;
  bottom: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% + 2px);
  height: 14px;
  background: linear-gradient(to bottom, #1a1a1a 0%, #252525 40%, #1a1a1a 70%, #111111 100%);
  border-radius: 0;
  z-index: 51;
  box-shadow:
    inset 0 3px 6px rgba(0, 0, 0, 0.9),
    inset 0 -1px 2px rgba(0, 0, 0, 0.7),
    0 8px 16px rgba(0, 0, 0, 0.45),
    0 2px 4px rgba(0, 0, 0, 0.2);
}

/* ---- PAPER ROLL (Layer 1 - BOTTOM, always under the slit) ---- */
.ticket-paper-roll {
  width: 100%;
  overflow-y: hidden;
  overflow-x: visible;
  position: relative;
  z-index: 10;
  margin-top: -4px;
  padding-bottom: 48px;
  /* Increased to prevent bottom drop-shadow clipping */
}

/* Cast shadow overlay directly on the ticket paper as it emerges */
.ticket-paper-roll::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 30px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.1) 50%, transparent 100%);
  z-index: 25;
  pointer-events: none;
}

.ticket-card {
  background:
    radial-gradient(circle at 0px var(--poster-height), transparent 13px, #ffffff 14px) left top / 51% calc(100% - 16px) no-repeat,
    radial-gradient(circle at 100% var(--poster-height), transparent 13px, #ffffff 14px) right top / 51% calc(100% - 16px) no-repeat;
  border-radius: 0;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.28));
  overflow: visible;
  position: relative;
  width: 100%;
  transform: translateY(-100%);
  animation: printTicket 3.5s cubic-bezier(0.25, 1, 0.5, 1) forwards;
  border: none;
  display: flex;
  flex-direction: column;
}

.ticket-poster-wrapper {
  width: 100%;
  height: var(--poster-height);
  overflow: hidden;
  position: relative;
  background: #0f172a;
  border-radius: 0;
  -webkit-mask:
    radial-gradient(circle at 0px 100%, transparent 13px, #000 14px) left / 51% 100% no-repeat,
    radial-gradient(circle at 100% 100%, transparent 13px, #000 14px) right / 51% 100% no-repeat;
  mask:
    radial-gradient(circle at 0px 100%, transparent 13px, #000 14px) left / 51% 100% no-repeat,
    radial-gradient(circle at 100% 100%, transparent 13px, #000 14px) right / 51% 100% no-repeat;
}

.ticket-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.printer-slot .ticket-close-btn {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  font-size: 1.4rem;
  line-height: 1;
  border: none;
  background: rgba(0, 0, 0, 0.12);
  cursor: pointer;
  color: #4b5563;
  transition: all 0.2s ease;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1), 0 1px 0 rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.printer-slot .ticket-close-btn:hover {
  background: rgba(239, 68, 68, 0.9);
  color: #ffffff;
  transform: translateY(-50%) scale(1.08);
}

.ticket-print-btn {
  display: none !important;
}

.ticket-top {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 154px;
  padding: 44px 28px 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  z-index: 10;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.95) 45%, #000 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.95) 45%, #000 100%);
  text-align: center;
}

.ticket-top h3 {
  font-size: 1.3rem;
  font-weight: 800;
  margin: 0 0 2px;
  color: #0f172a;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.ticket-status-msg {
  font-size: 0.8rem;
  color: #475569;
  margin: 0 0 4px;
  font-weight: 500;
  line-height: 1.2;
}

.ticket-event-name {
  font-size: 1rem;
  color: var(--blue, #078dcc);
  font-weight: 800;
  display: block;
  line-height: 1.2;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

.ticket-divider {
  position: relative;
  height: 1px;
  border-top: 2px dashed #e2e8f0;
  margin: 0 28px;
}

.ticket-notch {
  display: none !important;
}

.ticket-body {
  padding: 24px 28px;
}

.ticket-row {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.ticket-col {
  display: flex;
  flex-direction: column;
}

.ticket-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
  font-weight: 700;
  margin-bottom: 4px;
}

.ticket-val {
  font-size: 1.05rem;
  color: #0f172a;
  font-weight: 800;
  font-family: inherit;
}

.ticket-user-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f8fafc;
  padding: 12px 16px;
  border-radius: 16px;
  border: 1px solid #f1f5f9;
  margin-top: 18px;
  width: 100%;
}

.ticket-user-logo {
  width: 38px;
  height: 38px;
  background: #e2e8f0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
}

.ticket-user-details {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  text-align: left;
}

.ticket-user-name {
  font-size: 0.95rem;
  color: #0f172a;
  font-weight: 800;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.ticket-user-email {
  font-size: 0.8rem;
  color: #64748b;
  font-weight: 500;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.ticket-divider-dotted {
  height: 1px;
  border-top: 2px dotted #cbd5e1;
  margin: 0;
}

.ticket-footer {
  padding: 24px 28px 36px;
  text-align: center;
  /* Background ends 16px before the bottom to allow the upward scallops to be transparent */
  background: linear-gradient(to bottom, #fafafa calc(100% - 16px), transparent calc(100% - 16px));
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 0;
  position: relative;
}

/* Torn paper scalloped edge at the bottom with clean upward circular cuts (bites) and flat gaps */
.ticket-footer::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 16px;
  background-image:
    radial-gradient(circle 16px at 20px 16px, transparent 15px, #fafafa 16px);
  background-size: 40px 16px;
  background-position: 0 0;
  background-repeat: repeat-x;
}

.ticket-qrcode-container {
  position: relative;
  width: 90px;
  height: 90px;
  margin: 0 auto 12px;
  overflow: hidden;
  background: #ffffff;
  border: 6px solid #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  box-sizing: border-box;
}

.ticket-qrcode-container::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: #ef4444;
  box-shadow: 0 0 8px #ef4444, 0 0 4px #ef4444;
  animation: scannerLaser 3s ease-in-out infinite;
}

.ticket-qrcode {
  width: 100%;
  height: 100%;
  display: grid;
}

.ticket-serial {
  font-size: 0.8rem;
  font-family: monospace;
  letter-spacing: 0.28em;
  color: #64748b;
  font-weight: 600;
  display: block;
}

.ticket-confetti-container {
  position: absolute;
  top: -100px;
  left: 0;
  width: 100%;
  height: 600px;
  pointer-events: none;
  overflow: hidden;
  z-index: 99;
}

.confetti-piece {
  position: absolute;
  width: 8px;
  height: 14px;
  background: #ff0;
  border-radius: 2px;
  opacity: 0;
  transform-origin: center;
  animation: confettiFall 3.5s linear forwards;
}

/* Keyframes */
@keyframes printTicket {
  0% {
    transform: translateY(-100%);
    filter: drop-shadow(0 0 0 rgba(0, 0, 0, 0));
  }

  /* Stage 1: Print Barcode & Dotted Divider */
  16% {
    transform: translateY(-68%);
  }

  35% {
    transform: translateY(-68%);
  }

  /* Pause 1: Dotted Divider */

  /* Stage 2: Print Details & Dashed Divider with Notches */
  52% {
    transform: translateY(-34%);
  }

  72% {
    transform: translateY(-34%);
  }

  /* Pause 2: Dashed Divider/Notches */

  /* Stage 3: Print Top Section & Settle */
  88% {
    transform: translateY(3.2%);
  }

  94% {
    transform: translateY(3.8%);
    filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.12));
  }

  100% {
    transform: translateY(3.2%);
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.28));
  }
}

@keyframes ticketEntrance {
  from {
    opacity: 0;
    transform: scale(0.85) translateY(80px) rotate(-5deg);
    filter: blur(16px);
  }

  60% {
    filter: blur(3px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0) rotate(0);
    filter: blur(0px);
  }
}

@keyframes scannerLaser {

  0%,
  100% {
    top: 0%;
    opacity: 0.2;
  }

  50% {
    top: 100%;
    opacity: 1;
  }
}

@keyframes popPopper {
  0% {
    transform: scale(0.95) rotate(-5deg);
  }

  100% {
    transform: scale(1.15) rotate(7deg);
  }
}

@keyframes confettiFall {
  0% {
    transform: translateY(0) rotate(0deg) translateX(0);
    opacity: 1;
  }

  30% {
    opacity: 1;
  }

  100% {
    transform: translateY(550px) rotate(450deg) translateX(50px);
    opacity: 0;
  }
}

/* ---- Ticket Printer Mobile/Tablet Width Adjustments ---- */
@media (max-width: 768px) {
  .ticket-container {
    width: min(84vw, 320px) !important;
    margin-top: 24px !important;
    --poster-height: 180px !important;
    /* 16:9 ratio height for 320px width */
  }

  .printer-slot {
    width: calc(100% + 24px) !important;
  }
}

/* ---- Landscape View Alignment & Scale Adjustments (Tablets / Desktops) ---- */
@media (max-height: 768px) {
  .ticket-modal-backdrop {
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    overflow-y: hidden !important;
  }

  .ticket-container {
    margin: 0 auto !important;
    transform: scale(calc((100dvh - 80px) / 680px)) !important;
    transform-origin: center center !important;
  }
}

/* ---- Mobile Landscape Swipe-out Horizontal Ticket & Printer ---- */
@media (max-width: 960px) and (max-height: 500px) {
  .ticket-modal-backdrop {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    overflow-y: hidden !important;
  }

  .ticket-container {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: 672px !important;
    /* printer-slot (32px) + ticket-card (640px) */
    height: 212px !important;
    /* ticket-card (180px) + slot padding */
    margin: 0 auto !important;
    transform: scale(min(1, calc((100vw - 32px) / 672px))) !important;
    transform-origin: center center !important;
  }

  .printer-slot {
    width: 32px !important;
    height: 212px !important;
    background: linear-gradient(to right, #e5e7eb 0%, #d4d7dc 25%, #c4c8cc 50%, #b0b5bb 75%, #9ca3af 100%) !important;
    border-radius: 12px 0 0 12px !important;
    border: 1px solid #d1d5db !important;
    border-right: none !important;
    left: 0 !important;
    top: auto !important;
    transform: none !important;
    position: relative !important;
    z-index: 50 !important;
    box-shadow:
      -4px 0 16px rgba(0, 0, 0, 0.25),
      inset 2px 2px 0 rgba(255, 255, 255, 0.6) !important;
  }

  .printer-slot::after {
    bottom: auto !important;
    right: -10px !important;
    left: auto !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 10px !important;
    height: calc(100% + 2px) !important;
    background: linear-gradient(to right, #1a1a1a 0%, #252525 40%, #1a1a1a 70%, #111111 100%) !important;
    box-shadow:
      inset 3px 0 6px rgba(0, 0, 0, 0.9),
      0 4px 8px rgba(0, 0, 0, 0.3) !important;
  }

  .printer-slot .ticket-close-btn {
    top: 12px !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
  }

  .ticket-paper-roll {
    flex: 1 !important;
    height: 180px !important;
    width: 640px !important;
    overflow-x: hidden !important;
    overflow-y: visible !important;
    margin: 0 !important;
    padding: 0 !important;
    /* Touch printer slot exactly with no gap */
  }

  .ticket-paper-roll::before {
    top: 0 !important;
    left: 0 !important;
    width: 30px !important;
    height: 100% !important;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.1) 50%, transparent 100%) !important;
    z-index: 25 !important;
  }

  .ticket-card {
    display: flex !important;
    flex-direction: row !important;
    /* Normal row: Poster left, QR right */
    align-items: stretch !important;
    width: 640px !important;
    height: 180px !important;
    background: #ffffff !important;
    overflow: visible !important;
    /* Mask: semicircle cutouts at divider (x=320) top & bottom + right-edge repeating semicircles */
    -webkit-mask-image:
      radial-gradient(circle 14px at 320px 0px, transparent 13px, black 14px),
      radial-gradient(circle 14px at 320px 100%, transparent 13px, black 14px),
      radial-gradient(circle 10px at 100% 15px, transparent 9px, black 10px) !important;
    -webkit-mask-size:
      100% 100%,
      100% 100%,
      100% 30px !important;
    -webkit-mask-repeat:
      no-repeat,
      no-repeat,
      repeat-y !important;
    -webkit-mask-position:
      0 0,
      0 0,
      right top !important;
    -webkit-mask-composite: destination-in !important;
    mask-image:
      radial-gradient(circle 14px at 320px 0px, transparent 13px, black 14px),
      radial-gradient(circle 14px at 320px 100%, transparent 13px, black 14px),
      radial-gradient(circle 10px at 100% 15px, transparent 9px, black 10px) !important;
    mask-size:
      100% 100%,
      100% 100%,
      100% 30px !important;
    mask-repeat:
      no-repeat,
      no-repeat,
      repeat-y !important;
    mask-position:
      0 0,
      0 0,
      right top !important;
    mask-composite: intersect !important;
    transform: translateX(-100%);
    animation: printTicketHorizontal 3.5s cubic-bezier(0.25, 1, 0.5, 1) forwards !important;
  }

  .ticket-poster-wrapper {
    width: 320px !important;
    /* Exactly 16:9 ratio for 180px height! */
    height: 180px !important;
    border-radius: 12px 0 0 12px !important;
    -webkit-mask: none !important;
    mask: none !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
    overflow: hidden !important;
  }

  .ticket-poster-wrapper .ticket-top {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    padding: 24px 16px !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    background: rgba(255, 255, 255, 0.72) !important;
    backdrop-filter: blur(12px) saturate(160%) !important;
    -webkit-backdrop-filter: blur(12px) saturate(160%) !important;
  }

  .ticket-poster-wrapper .ticket-top h3 {
    font-size: 16px !important;
    margin-bottom: 4px !important;
    color: #0f172a !important;
  }

  .ticket-poster-wrapper .ticket-top .ticket-status-msg {
    font-size: 10px !important;
    margin-bottom: 8px !important;
    color: #475569 !important;
  }

  .ticket-poster-wrapper .ticket-top .ticket-event-name {
    font-size: 12px !important;
    color: var(--blue, #078dcc) !important;
  }

  .ticket-divider {
    width: 1px !important;
    height: 152px !important;
    border-left: 2px dashed #e2e8f0 !important;
    border-top: none !important;
    margin: 14px 0 !important;
    position: relative !important;
  }

  .ticket-divider .ticket-notch {
    display: none !important;
  }

  /* Cutouts are now handled by the card background — hide fake circles */
  .ticket-divider::before,
  .ticket-divider::after {
    display: none !important;
  }

  .ticket-body {
    flex: 1 !important;
    height: 180px !important;
    padding: 16px 20px !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
  }

  .ticket-body .ticket-row {
    margin: 0 !important;
  }

  .ticket-body .ticket-label {
    font-size: 8px !important;
    margin-bottom: 2px !important;
  }

  .ticket-body .ticket-val {
    font-size: 11px !important;
  }

  .ticket-body .ticket-user-pill {
    margin-top: 6px !important;
    padding: 6px 10px !important;
    border-radius: 8px !important;
  }

  .ticket-body .ticket-user-logo {
    width: 22px !important;
    height: 22px !important;
    font-size: 12px !important;
  }

  .ticket-body .ticket-user-name {
    font-size: 11px !important;
  }

  .ticket-body .ticket-user-email {
    font-size: 9px !important;
  }

  .ticket-divider-dotted {
    display: block !important;
    width: 1px !important;
    height: 152px !important;
    border-left: 2px dotted #e2e8f0 !important;
    border-top: none !important;
    margin: 14px 0 !important;
    position: relative !important;
  }

  .ticket-footer {
    width: 110px !important;
    height: 180px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 16px 8px !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
    position: relative !important;
  }



  .ticket-qrcode-container {
    width: 80px !important;
    height: 80px !important;
    margin: 0 auto 8px !important;
  }

  .ticket-qrcode {
    width: 100% !important;
    height: 100% !important;
  }

  .ticket-serial {
    font-size: 8px !important;
    letter-spacing: 0.1em !important;
    margin-top: 4px !important;
  }
}

@keyframes printTicketHorizontal {
  0% {
    transform: translateX(-100%);
    filter: drop-shadow(0 0 0 rgba(0, 0, 0, 0));
  }

  /* Stage 1: Print QR Code & Dotted Divider */
  16% {
    transform: translateX(-80%);
  }

  35% {
    transform: translateX(-80%);
  }

  /* Stage 2: Print Details & Dashed Divider with Notches */
  52% {
    transform: translateX(-50%);
  }

  72% {
    transform: translateX(-50%);
  }

  /* Stage 3: Print Poster & Settle */
  88% {
    transform: translateX(0%);
  }

  94% {
    transform: translateX(0.5%);
    filter: drop-shadow(-2px 4px 8px rgba(0, 0, 0, 0.12));
  }

  100% {
    transform: translateX(0%);
    filter: drop-shadow(-8px 4px 20px rgba(0, 0, 0, 0.2));
  }
}

/* ─── Event Detail Modal Dark Mode Overrides ────────────────── */
body.dark .event-detail-modal {
  border-color: rgba(255, 255, 255, 0.08);
}

body.dark .event-detail-modal[open]::backdrop {
  background: rgba(3, 7, 18, 0.65);
}

body.dark .edm-overlay {
  background: rgba(20, 23, 30, 0.85);
}

body.dark .edm-content {
  color: var(--ink);
}

body.dark .edm-title {
  color: var(--ink);
}

body.dark .edm-desc {
  color: var(--muted);
}

body.dark .edm-meta {
  color: var(--muted);
}

/* ─── Mobile Navigation Toggle Capsule & Layout ────────────────── */
@media (max-width: 1024px) {
  .site-header {
    position: fixed !important;
    left: 24px !important;
    right: 24px !important;
    width: auto !important;
    transform: none;
    margin: 0 !important;
    top: 14px !important;
    border-radius: 24px 24px 0 0 !important;
    /* Flat bottom sits flush on the hero */
  }

  /* Hide the old hamburger menu button */
  .site-header .menu-button {
    display: none !important;
  }

  /* Ensure logo is on the left and has a clean, readable size */
  .site-header .brand {
    margin-right: auto !important;
    padding-left: 2px !important;
  }

  .site-header .brand img {
    width: 140px !important;
    height: auto !important;
    max-height: 44px !important;
  }

  /* Ensure the Join an Event button is on the right and fully visible */
  .site-header .header-actions {
    margin-left: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
  }

  .site-header .header-actions .button {
    display: inline-flex !important;
    padding: 8px 16px !important;
    font-size: 12px !important;
    border-radius: 99px !important;
    background: var(--blue) !important;
    color: white !important;
    border: none !important;
    box-shadow: 0 4px 12px rgba(82, 142, 206, 0.25) !important;
  }

  .site-header .header-actions .button span {
    font-size: 10px !important;
  }

  /* Hide the desktop nav by default on mobile */
  .site-header .desktop-nav {
    display: none !important;
  }

  /* Style the capsule button at the bottom edge of the top bar */
  .mobile-nav-toggle-capsule {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
    position: absolute;
    bottom: -15px;
    /* Floats at the bottom edge of the header */
    left: 50%;
    transform: translateX(-50%);
    background: color-mix(in srgb, var(--surface) 96%, transparent) !important;
    border: 2px solid var(--surface) !important;
    border-radius: 99px;
    padding: 6px 14px;
    font-family: var(--body);
    font-size: 11px;
    font-weight: 700;
    color: var(--ink);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    z-index: 101;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    backdrop-filter: blur(18px) !important;
    -webkit-backdrop-filter: blur(18px) !important;
    transition: all 0.25s cubic-bezier(0.25, 1, 0.5, 1);
  }

  .mobile-nav-toggle-capsule:hover {
    transform: translateX(-50%) translateY(-1px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  }

  .mobile-nav-toggle-capsule .chevron {
    display: none !important;
    /* Hide chevron on main Explore CIE toggle button */
  }

  /* When navigation is expanded — header stays a rounded capsule */

  .site-header.active-mobile-nav .mobile-nav-toggle-capsule {
    background: color-mix(in srgb, var(--surface) 96%, transparent) !important;
    color: var(--ink) !important;
    border: 2px solid var(--surface) !important;
    backdrop-filter: blur(18px) !important;
    -webkit-backdrop-filter: blur(18px) !important;
  }

  .site-header.active-mobile-nav .mobile-nav-toggle-capsule .chevron {
    transform: rotate(180deg);
    color: var(--ink);
  }

  .site-header.active-mobile-nav .desktop-nav {
    display: flex !important;
    position: absolute;
    top: calc(100% + 10px);
    /* Floats 10px below the header */
    left: 0;
    right: 0;
    transform: none;
    background: transparent !important;
    /* Container is invisible — only the cards show */
    border: none !important;
    border-radius: 0 !important;
    padding: 16px 0;
    flex-direction: column !important;
    gap: 10px !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    z-index: 98;
    animation: mobileNavSlideDown 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  /* Hide desktop-only text suffix on mobile viewports to make capsules compact */
  .desktop-only-text {
    display: none !important;
  }

  .site-header.active-mobile-nav .desktop-nav .nav-filters {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    width: fit-content !important;
    /* Exactly spans from first capsule to last capsule */
    margin: 0 auto !important;
    /* Centered in the header */
    gap: 10px !important;
    /* Separation gap between individual capsules */
    position: relative !important;
    /* Dropdown aligns to this container boundary */
    padding: 0 !important;
    /* No inset padding for container */
    background: transparent !important;
    /* Transparent container */
    border: none !important;
    /* No border for container */
    border-radius: 0 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
  }

  .site-header.active-mobile-nav .desktop-nav .filter-col {
    position: relative !important;
    /* Anchor for absolute positioned dropdown */
    flex: none !important;
    /* Do not fill or spread width */
    width: 105px !important;
    /* All capsules are identical size */
    height: 38px !important;
    /* Restored comfortable height */
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 999px !important;
    /* Fully rounded capsule when active */
    padding: 0 !important;
    gap: 0 !important;
    background: color-mix(in srgb, var(--surface) 96%, transparent) !important;
    /* Premium bright frosted glass background */
    border: 2px solid var(--surface) !important;
    /* Premium border matching top bar style */
    backdrop-filter: blur(18px) !important;
    -webkit-backdrop-filter: blur(18px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
    cursor: pointer !important;
    transition: all 0.25s cubic-bezier(0.25, 1, 0.5, 1) !important;
  }

  .site-header.active-mobile-nav .desktop-nav .filter-col .filter-label {
    display: none !important;
    /* Hide small labels on mobile to save space */
  }

  .site-header.active-mobile-nav .desktop-nav .filter-col .filter-trigger {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    /* Balanced gap for trigger text and circle arrow */
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    color: var(--ink) !important;
    pointer-events: none !important;
    transition: color 0.25s ease !important;
  }

  .site-header.active-mobile-nav .desktop-nav .filter-col .filter-trigger span {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .site-header.active-mobile-nav .desktop-nav .filter-col .filter-dropdown {
    position: absolute !important;
    top: 50px !important;
    /* Float exactly below the filter capsule */
    width: 335px !important;
    /* Spans exactly the width of all 3 capsules including gaps */
    background: color-mix(in srgb, var(--surface) 95%, transparent) !important;
    border: 1px solid var(--line) !important;
    border-radius: 20px !important;
    padding: 14px !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(-8px) !important;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s !important;
    pointer-events: none !important;
    z-index: 100 !important;
  }

  /* Specific left offsets to align the dropdown perfectly to the start of the first capsule */
  .site-header.active-mobile-nav .desktop-nav .filter-col:nth-child(1) .filter-dropdown {
    left: 0 !important;
  }

  .site-header.active-mobile-nav .desktop-nav .filter-col:nth-child(2) .filter-dropdown {
    left: -115px !important;
    /* -(105px capsule + 10px gap) */
  }

  .site-header.active-mobile-nav .desktop-nav .filter-col:nth-child(3) .filter-dropdown {
    left: -230px !important;
    /* -(210px capsules + 20px gaps) */
  }

  /* Toggle subclass to open sub-dropdowns on click */
  .site-header.active-mobile-nav .desktop-nav .filter-col.open-dropdown {
    background: var(--ink) !important;
    /* Invert colors to show active state */
    border-color: var(--ink) !important;
  }

  .site-header.active-mobile-nav .desktop-nav .filter-col.open-dropdown .filter-trigger {
    color: var(--bg) !important;
  }

  .site-header.active-mobile-nav .desktop-nav .filter-col.open-dropdown .filter-dropdown {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
  }

  /* Style the custom circular arrow on mobile/tablet */
  .site-header.active-mobile-nav .desktop-nav .filter-col .filter-trigger .chevron-circle {
    display: inline-flex !important;
    /* Enable circular arrows on mobile and tablet */
    width: 20px !important;
    /* Slightly more compact size for mobile capsule */
    height: 20px !important;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
  }

  .site-header.active-mobile-nav .desktop-nav .filter-col .filter-trigger .chevron-circle .arrow {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
  }

  /* Invert and rotate circle arrow on mobile when active/open */
  .site-header.active-mobile-nav .desktop-nav .filter-col.open-dropdown .filter-trigger .chevron-circle {
    background: var(--bg) !important;
    border-color: var(--bg) !important;
    transform: scale(1.08) !important;
  }

  .site-header.active-mobile-nav .desktop-nav .filter-col.open-dropdown .filter-trigger .chevron-circle .arrow {
    color: var(--ink) !important;
    transform: rotate(180deg) !important;
  }

  .site-header.active-mobile-nav .desktop-nav .nav-drop-item {
    padding: 10px 12px !important;
    border-radius: 12px !important;
    background: var(--bg) !important;
    border: 1px solid var(--line) !important;
  }

  @media (max-width: 480px) {
    .site-header.active-mobile-nav .desktop-nav .filter-col .filter-trigger {
      font-size: 10px !important;
    }
  }

  /* Compact scrolled capsule on mobile */
  .site-header.is-scrolled {
    top: 10px !important;
    left: 48px !important;
    right: 48px !important;
    width: auto !important;
    border-radius: 999px !important;
    border: 1px solid color-mix(in srgb, var(--line) 40%, transparent) !important;
    padding: 6px 14px !important;
    height: 56px !important;
  }

  @media (max-width: 720px) {
    .site-header {
      left: 12px !important;
      right: 12px !important;
      border-radius: 20px 20px 0 0 !important;
      /* Flat bottom sits flush on hero */
    }

    .site-header.is-scrolled {
      left: 20px !important;
      right: 20px !important;
      border-radius: 999px !important;
    }
  }
}

/* Hide toggle capsule on desktop */
@media (min-width: 1025px) {
  .mobile-nav-toggle-capsule {
    display: none !important;
  }
}

@keyframes mobileNavSlideDown {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Prevent overflow on tablet viewports (including 10.95 inch tabs) */
@media (max-width: 1200px) {
  .modal-member-portrait-container {
    height: 270px !important;
  }
}

/* ════════════════════════════════════════════════════════
   TRIAL: FLAT SOLID COLORS (NO RADIAL GRADIENTS, NO NEON GLOWS)
   ════════════════════════════════════════════════════════ */

/* Remove glowing backdrop radial gradients wash behind graphics */
.dept-mg::before {
  background: none !important;
}

/* Remove active card neon glow and blurred shadows, set solid borders */
.dept-card.active {
  box-shadow: none !important;
  border: 4px solid var(--da) !important;
  background: var(--surface) !important;
}

/* Remove SVG neon glow drop-shadow completely */
.dept-svg-art {
  filter: none !important;
  -webkit-filter: none !important;
}

/* Make ticker bar, taglines, and glyph text colors solid and high-contrast */
.dept-mg-ticker span,
.dept-mg-tagline,
.dmg-glyph {
  color: var(--da) !important;
}

/* ── OPERATIONS & LOGISTICS: Solid Badges ── */
.ops-feed-1 rect,
.ops-feed-2 rect,
.ops-feed-3 rect,
.ops-feed-4 rect,
.ops-feed-5 rect {
  fill: #15171e !important;
  stroke: var(--da) !important;
  stroke-width: 1px !important;
  opacity: 1 !important;
}

/* ── PHOTOGRAPHY & VIDEO: Solid Silhouettes ── */
.photo-slide-1 circle,
.photo-slide-1 path:not([stroke-width="1.2"]),
.photo-slide-2 circle,
.photo-slide-2 path:not([opacity="0.8"]),
.photo-slide-3 rect,
.photo-slide-3 circle,
.photo-slide-3 path {
  fill: var(--da) !important;
  stroke: none !important;
}

/* Keep essential lines like microphones, soundwaves, desk as solid strokes */
.photo-slide-1 path[stroke-width="1.2"],
.photo-slide-2 line,
.photo-slide-2 path[opacity="0.8"],
.photo-slide-3 circle[stroke-dasharray="3 2"] {
  stroke: var(--da) !important;
  stroke-width: 1.5px !important;
}

/* ── EDITING & DESIGN: Video & Image Editing Slideshow ── */

.edit-slide-1,
.edit-slide-2 {
  opacity: 0;
  will-change: opacity !important;
}

.dept-card.active .edit-slide-1 {
  animation: editSlide1Cycle 6s ease infinite !important;
}

.dept-card.active .edit-slide-2 {
  animation: editSlide2Cycle 6s ease infinite !important;
}

.dept-card.active .edit-flash {
  animation: editShutterFlash 6s ease infinite !important;
}

/* Playhead moving horizontally across timeline track */
.edit-playhead-group {
  will-change: transform !important;
}

.dept-card.active .edit-playhead-group {
  animation: playheadSlide 2.5s ease-in-out infinite alternate !important;
}

/* Mouse pointer dragging anchor */
.edit-pointer {
  will-change: transform !important;
}

.dept-card.active .edit-pointer {
  animation: editDragPointer 2.5s ease-in-out infinite alternate !important;
}

/* Bottom right crop anchor moving with pointer */
.edit-anchor-active {
  will-change: transform !important;
}

.dept-card.active .edit-anchor-active {
  animation: editDragAnchor 2.5s ease-in-out infinite alternate !important;
}

/* Mountain image canvas resizing with crop drag */
.edit-canvas-image {
  will-change: transform !important;
}

.dept-card.active .edit-canvas-image {
  animation: editCanvasScale 2.5s ease-in-out infinite alternate !important;
}

/* Slide 1 active: 0s - 3s (slides out left at 3s, slides in from right at 6s) */
@keyframes editSlide1Cycle {

  0%,
  42% {
    opacity: 1;
    transform: translateX(0);
  }

  49%,
  93% {
    opacity: 0;
    transform: translateX(-180px);
  }

  98%,
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Slide 2 active: 3s - 6s (slides in from right at 3s, slides out left at 6s) */
@keyframes editSlide2Cycle {

  0%,
  42% {
    opacity: 0;
    transform: translateX(180px);
  }

  49%,
  93% {
    opacity: 1;
    transform: translateX(0);
  }

  98%,
  100% {
    opacity: 0;
    transform: translateX(-180px);
  }
}

/* Hide flash overlay completely by keeping it invisible */
@keyframes editShutterFlash {

  0%,
  100% {
    opacity: 0;
  }
}

/* Playhead slider motion */
@keyframes playheadSlide {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(45px);
  }
}

/* Pointer drag resize movement */
@keyframes editDragPointer {
  0% {
    transform: translate(0, 0);
  }

  100% {
    transform: translate(-12px, -8px);
  }
}

/* Resizing anchor movement */
@keyframes editDragAnchor {
  0% {
    transform: translate(0, 0);
  }

  100% {
    transform: translate(-12px, -8px);
  }
}

/* Canvas image scale response */
@keyframes editCanvasScale {
  0% {
    transform: scale(1);
    transform-origin: 52px 27px;
  }

  100% {
    transform: scale(0.84);
    transform-origin: 52px 27px;
  }
}


/* ── MARKETING: Smartphone Social Media Feed Scroller ── */

.mkt-feed-scroller {
  will-change: transform !important;
}

.dept-card.active .mkt-feed-scroller {
  animation: mktFeedVerticalScroll 12s cubic-bezier(0.76, 0, 0.24, 1) infinite !important;
}


/* 12-second scrolling loop (4s per post) — offsets match new iPhone SVG layout */
@keyframes mktFeedVerticalScroll {

  /* 1. Instagram post visible (0s - 3.5s) */
  0%,
  28% {
    transform: translateY(0);
  }

  /* Slide to LinkedIn post (3.5s - 4.5s) */
  33%,
  61% {
    transform: translateY(-112px);
  }

  /* Slide to X/Twitter post (7.5s - 8.5s) */
  66%,
  92% {
    transform: translateY(-224px);
  }

  /* Snap back to Instagram (11s - 12s) */
  100% {
    transform: translateY(0);
  }
}

/* ---- Newsbox Modal Styles ---- */
.newsbox-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: opacity 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
}

body.dark .newsbox-backdrop {
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.newsbox-backdrop[hidden] {
  display: none !important;
  opacity: 0;
  pointer-events: none;
}

.newsbox-card {
  position: absolute;
  top: 110px;
  bottom: 20px;
  width: min(1360px, calc(100% - 80px));
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-radius: 28px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 20px 50px -12px rgba(0, 0, 0, 0.25), 
              0 30px 60px -15px rgba(0, 0, 0, 0.3), 
              0 0 80px -10px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: newsboxSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

body.dark .newsbox-card {
  background: rgba(18, 20, 28, 0.85);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 50px -12px rgba(0, 0, 0, 0.55), 
              0 30px 60px -15px rgba(0, 0, 0, 0.65), 
              0 0 80px -10px rgba(0, 0, 0, 0.45);
}

@keyframes newsboxSlideUp {
  from {
    opacity: 0;
    transform: translate(-50%, 30px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

.newsbox-header {
  padding: 32px 40px 20px 40px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-shrink: 0;
}

body.dark .newsbox-header {
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

.newsbox-eyebrow {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue, #0070f3);
  margin-bottom: 8px;
}

body.dark .newsbox-eyebrow {
  color: var(--lime, #00df89);
}

.newsbox-title {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.25;
  color: #101116;
  margin: 0;
}

body.dark .newsbox-title {
  color: #ffffff;
}

/* Close button in a custom circle */
.newsbox-close-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #f3f4f6;
  color: #101116;
  font-size: 24px;
  font-weight: 300;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  margin-left: 20px;
}

.newsbox-close-btn:hover {
  background: #101116;
  color: #ffffff;
  border-color: #101116;
  transform: rotate(90deg);
}

body.dark .newsbox-close-btn {
  background: #1e202e;
  border-color: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

body.dark .newsbox-close-btn:hover {
  background: #ffffff;
  color: #101116;
  border-color: #ffffff;
}

.newsbox-body {
  padding: 40px;
  overflow-y: auto;
  flex-grow: 1;
  display: flex;
  gap: 40px;
}

.newsbox-img-container {
  width: 45%;
  flex-shrink: 0;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.06);
  max-height: 70vh;
}

body.dark .newsbox-img-container {
  border-color: rgba(255, 255, 255, 0.06);
}

.newsbox-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.newsbox-content-text {
  flex-grow: 1;
  font-size: 16px;
  line-height: 1.6;
  color: #374151;
  white-space: pre-wrap;
}

body.dark .newsbox-content-text {
  color: #d1d5db;
}

/* Responsiveness for Modal */
@media (max-width: 768px) {
  .newsbox-card {
    top: 90px;
    bottom: 16px;
    width: calc(100% - 24px);
    border-radius: 20px;
  }
  .newsbox-header {
    padding: 20px 24px;
  }
  .newsbox-title {
    font-size: 20px;
  }
  .newsbox-body {
    padding: 24px;
    flex-direction: column;
    gap: 20px;
  }
  .newsbox-img-container {
    width: 100%;
    max-height: 250px;
  }
  .newsbox-close-btn {
    width: 36px;
    height: 36px;
    font-size: 20px;
  }
}

.news-feature > .news-art,
.news-feature > div > * {
  transition: opacity 0.22s cubic-bezier(0.25, 1, 0.5, 1), transform 0.22s cubic-bezier(0.25, 1, 0.5, 1);
}

.news-feature.swapping > .news-art,
.news-feature.swapping > div > * {
  opacity: 0;
  transform: translateX(-12px);
}

.news-list article h3 {
  cursor: pointer;
  display: inline-block;
  transition: color 0.2s ease;
}

.news-list article h3:hover {
  color: var(--blue, #0070f3);
}

body.dark .news-list article h3:hover {
  color: var(--lime, #00df89);
}

.side-news-link {
  transition: color 0.2s ease;
}

.side-news-link:hover {
  color: var(--blue, #0070f3) !important;
}

body.dark .side-news-link:hover {
  color: var(--lime, #00df89) !important;
}

.news-art-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 18px;
  display: block;
}