:root {
  color-scheme: light;
  --ink: #102828;
  --muted: #617473;
  --line: rgba(16, 40, 40, 0.17);
  --paper: #f4f1e9;
  --white: #fffefa;
  --deep: #0b4648;
  --deep-2: #123a3b;
  --aqua: #d9eee7;
  --aqua-soft: #eaf5f0;
  --gold: #d4a84e;
  --gold-soft: #f2dfaf;
  --rose: #f0d7ce;
  --side: clamp(20px, 5vw, 78px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "DM Sans", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
h1, h2, h3, p { margin-top: 0; }
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  color: var(--white);
  background: var(--deep);
  transform: translateY(-160%);
}
.skip-link:focus { transform: none; }

.topbar {
  position: fixed;
  z-index: 30;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  min-height: 86px;
  padding: 0 var(--side);
  color: var(--white);
  background: linear-gradient(180deg, rgba(7, 46, 47, .72), transparent);
  transition: min-height 300ms ease, color 300ms ease, background 300ms ease, border-color 300ms ease;
}
.topbar.scrolled {
  min-height: 72px;
  color: var(--ink);
  background: rgba(244, 241, 233, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}
.topbar.scrolled nav a { color: var(--muted); }
.identity { display: flex; align-items: center; gap: 13px; }
.identity-label {
  color: rgba(255,255,255,.72);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  transition: color 300ms ease;
}
.topbar.scrolled .identity-label { color: var(--muted); }
.drop-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 50%;
}
.topbar.scrolled .drop-mark { border-color: var(--line); }
.drop-mark i {
  display: block;
  width: 12px;
  height: 16px;
  border: 1.5px solid currentColor;
  border-radius: 55% 55% 60% 60%;
  transform: rotate(45deg);
}
nav { display: flex; align-items: center; gap: clamp(16px, 2.5vw, 34px); }
nav a { position: relative; color: rgba(255,255,255,.86); font-size: .82rem; font-weight: 700; }
nav a::after { content: ""; position: absolute; right: 0; bottom: -7px; left: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 200ms ease; }
nav a:hover::after { transform: scaleX(1); transform-origin: left; }

.workspace {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(340px, .75fr);
  min-height: 92svh;
  color: var(--white);
  background:
    radial-gradient(circle at 86% 26%, rgba(209, 234, 226, .16), transparent 27%),
    radial-gradient(circle at 12% 90%, rgba(212, 168, 78, .12), transparent 24%),
    var(--deep);
  overflow: hidden;
}
.workspace::before {
  content: "";
  position: absolute;
  top: -28vw;
  right: -18vw;
  width: 68vw;
  height: 68vw;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 50%;
  box-shadow: 0 0 0 7vw rgba(255,255,255,.02), 0 0 0 14vw rgba(255,255,255,.018);
}
.hero-logo {
  display: block;
  width: clamp(300px, 36vw, 520px);
  max-width: 88%;
  height: auto;
  margin-bottom: clamp(30px, 4vw, 52px);
  padding: 10px 13px;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .14);
}
.intro {
  position: relative;
  z-index: 1;
  align-self: end;
  padding: 150px var(--side) clamp(70px, 10vw, 125px);
  animation: intro-rise 950ms cubic-bezier(.2,.7,.2,1) both;
}
@keyframes intro-rise {
  from { opacity: 0; transform: translateY(34px); }
  to { opacity: 1; transform: none; }
}
.eyebrow { margin-bottom: 20px; color: var(--gold); font-size: .69rem; font-weight: 700; letter-spacing: .17em; text-transform: uppercase; }
.intro h1 {
  max-width: 980px;
  margin-bottom: 30px;
  font-family: Manrope, sans-serif;
  font-size: clamp(3.5rem, 7.4vw, 8.2rem);
  font-weight: 500;
  letter-spacing: -.065em;
  line-height: .98;
}
.intro .hero-tagline {
  max-width: 720px;
  margin-bottom: 28px;
  color: var(--white);
  font-family: Manrope, sans-serif;
  font-size: clamp(2.4rem, 4.8vw, 5.2rem);
  font-weight: 500;
  letter-spacing: -.055em;
  line-height: 1.02;
}
.intro > p:not(.eyebrow):not(.hero-tagline) { max-width: 610px; margin-bottom: 42px; color: rgba(255,255,255,.7); font-size: 1.06rem; line-height: 1.65; }
.hero-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 42px; min-height: 56px; padding: 0 25px; border-radius: 999px; color: var(--ink); background: var(--gold-soft); font-size: .82rem; font-weight: 700; transition: transform 200ms ease; }
.hero-link:hover { transform: translateY(-3px); }
.quick-panel {
  position: relative;
  z-index: 1;
  align-self: end;
  display: grid;
  align-content: end;
  min-height: 100%;
  padding: 150px var(--side) clamp(70px, 10vw, 125px) clamp(34px, 5vw, 78px);
  border-left: 1px solid rgba(255,255,255,.16);
  background: rgba(4, 37, 38, .28);
  overflow: hidden;
}
.quick-heading { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; color: rgba(255,255,255,.48); font-size: .65rem; letter-spacing: .15em; text-transform: uppercase; }
.quick-heading i { width: 48px; height: 1px; background: currentColor; }
.quick-panel article { display: grid; grid-template-columns: 86px 1fr; gap: 22px; align-items: center; padding: 24px 0; border-top: 1px solid rgba(255,255,255,.16); }
.quick-panel article:last-of-type { border-bottom: 1px solid rgba(255,255,255,.16); }
.metric { font-family: Manrope, sans-serif; color: var(--gold-soft); font-size: clamp(2.3rem, 4vw, 4rem); font-weight: 500; letter-spacing: -.05em; }
.quick-panel article > span:last-child { color: rgba(255,255,255,.68); line-height: 1.45; }
.water-rings { position: absolute; top: 15%; right: -90px; width: 240px; height: 240px; opacity: .22; }
.water-rings i { position: absolute; inset: 0; border: 1px solid var(--aqua); border-radius: 50%; }
.water-rings i:nth-child(2) { inset: 34px; }
.water-rings i:nth-child(3) { inset: 68px; }
.water-rings { animation: water-drift 9s ease-in-out infinite alternate; }
@keyframes water-drift {
  from { transform: translate3d(0, -8px, 0) scale(.96); }
  to { transform: translate3d(-24px, 20px, 0) scale(1.06); }
}

.content-shell { padding: clamp(90px, 12vw, 165px) var(--side); }
.section-intro { display: grid; grid-template-columns: .4fr 1.6fr; gap: 5vw; align-items: end; margin-bottom: 54px; }
.section-intro h2 { max-width: 900px; margin: 0; font-family: Manrope, sans-serif; font-size: clamp(2.8rem, 6vw, 6.3rem); font-weight: 500; letter-spacing: -.06em; line-height: 1; }
.filters { display: flex; gap: 9px; overflow-x: auto; padding: 0 0 32px; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.filter, button { border: 1px solid var(--line); background: transparent; cursor: pointer; }
.filter { flex: 0 0 auto; min-height: 46px; padding: 0 18px; border-radius: 999px; color: var(--ink); font-size: .78rem; font-weight: 700; }
.filter:hover, .filter.is-active { color: var(--white); background: var(--deep); border-color: var(--deep); }

.grid { display: grid; grid-template-columns: minmax(0, 1.42fr) minmax(330px, .58fr); gap: 18px; align-items: start; }
.grid.secondary { grid-template-columns: 1fr 1fr; margin-top: 90px; }
.panel { padding: clamp(25px, 3vw, 42px); border: 1px solid var(--line); background: rgba(255,254,250,.72); }
.panel-head { display: flex; justify-content: space-between; gap: 24px; align-items: start; margin-bottom: 32px; }
.panel-head h2 { margin: 0; font-family: Manrope, sans-serif; font-size: clamp(1.7rem, 3vw, 3rem); font-weight: 500; letter-spacing: -.045em; line-height: 1.08; }
.muted { color: var(--muted); font-size: .8rem; font-weight: 700; white-space: nowrap; }
.source-status { transition: color 180ms ease; }
.source-status:hover { color: var(--deep); }
.source-status.is-synced { color: var(--deep); }
.needs-panel .source-status { color: rgba(255,255,255,.6); }
.event-list, .need-list, .ride-list { display: grid; }
.event-card { display: grid; grid-template-columns: 82px minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 24px 0; border-top: 1px solid var(--line); }
.event-card:last-child { border-bottom: 1px solid var(--line); }
.datebox { color: var(--deep); font-family: Manrope, sans-serif; font-size: 2.2rem; font-weight: 500; letter-spacing: -.04em; line-height: 1; }
.datebox span { display: block; margin-bottom: 5px; color: var(--gold); font-family: "DM Sans", sans-serif; font-size: .65rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.event-card h3, .need-card h3 { margin: 0 0 7px; font-family: Manrope, sans-serif; font-size: 1.05rem; }
.event-meta, .need-meta { margin: 0; color: var(--muted); font-size: .82rem; line-height: 1.5; }
.source-link { display: inline-flex; margin-top: 10px; color: var(--deep); font-size: .69rem; font-weight: 700; }
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 11px; }
.tag { padding: 6px 10px; border-radius: 999px; color: var(--deep); background: var(--aqua-soft); font-size: .66rem; font-weight: 700; }
.event-card button, .need-card button, form button { min-height: 44px; padding: 0 16px; border-radius: 999px; color: var(--white); background: var(--deep); border-color: var(--deep); font-size: .75rem; font-weight: 700; }
.event-card button:hover, .need-card button:hover, form button:hover { color: var(--ink); background: var(--gold-soft); border-color: var(--gold-soft); }
.needs-panel { color: var(--white); background: var(--deep-2); border-color: var(--deep-2); }
.needs-panel .eyebrow { color: var(--gold-soft); }
.need-card { display: grid; gap: 16px; padding: 22px 0; border-top: 1px solid rgba(255,255,255,.16); }
.need-card:last-child { border-bottom: 1px solid rgba(255,255,255,.16); }
.need-card .need-meta { color: rgba(255,255,255,.58); }
.need-card .tag { color: var(--white); background: rgba(255,255,255,.1); }
.need-card button { justify-self: start; color: var(--ink); background: var(--gold-soft); border-color: var(--gold-soft); }
.need-card.urgent { position: relative; }
.need-card.urgent::before { content: ""; position: absolute; top: 25px; right: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }

.action-panel { position: relative; min-height: 620px; overflow: hidden; }
.action-panel::after { content: ""; position: absolute; right: -150px; bottom: -180px; width: 380px; height: 380px; border: 1px solid var(--line); border-radius: 50%; box-shadow: 0 0 0 48px rgba(11,70,72,.025), 0 0 0 96px rgba(11,70,72,.018); pointer-events: none; }
.admin-panel { background: var(--aqua); }
.panel-number { color: rgba(16,40,40,.3); font-family: Manrope, sans-serif; font-size: 2rem; }
form { position: relative; z-index: 1; display: grid; gap: 18px; }
label { display: grid; gap: 8px; color: var(--muted); font-size: .73rem; font-weight: 700; }
input, select, textarea { width: 100%; min-height: 50px; padding: 0 2px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; outline: 0; color: var(--ink); background: transparent; }
textarea { min-height: 110px; padding-top: 12px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--deep); }
form button { justify-self: start; min-height: 50px; padding: 0 22px; }
form button span { margin-left: 24px; }
.ride-list { position: relative; z-index: 1; gap: 8px; margin-top: 24px; }
.ride-card { padding: 13px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: .83rem; }

footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 30px var(--side); color: rgba(255,255,255,.62); background: var(--deep-2); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; }
.footer-mark { display: flex; align-items: center; gap: 12px; color: var(--white); }
.footer-mark .drop-mark { width: 38px; height: 38px; }
.footer-mark .drop-mark i { width: 10px; height: 13px; }

dialog { width: min(520px, calc(100% - 24px)); padding: 0; border: 0; color: var(--ink); background: var(--white); box-shadow: 0 30px 100px rgba(4,32,33,.32); }
dialog::backdrop { background: rgba(4, 32, 33, .72); backdrop-filter: blur(5px); }
.dialog-card { padding: clamp(28px, 5vw, 54px); }
.dialog-card h2 { margin-bottom: 32px; font-family: Manrope, sans-serif; font-size: clamp(2rem, 5vw, 3.8rem); font-weight: 500; letter-spacing: -.05em; }
.close { float: right; width: 42px; height: 42px; padding: 0; border-radius: 50%; color: var(--ink); background: var(--paper); }

.flow-item {
  opacity: 0;
  transform: translateY(34px);
  transition:
    opacity 780ms ease var(--flow-delay, 0ms),
    transform 780ms cubic-bezier(.2,.7,.2,1) var(--flow-delay, 0ms);
}
.flow-item.is-visible { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .workspace { grid-template-columns: 1fr; }
  .intro { min-height: 72svh; }
  .quick-panel { min-height: auto; padding-top: 65px; border-top: 1px solid rgba(255,255,255,.16); border-left: 0; }
  .quick-panel article { grid-template-columns: 110px 1fr; }
  .grid { grid-template-columns: 1fr; }
  .needs-panel { margin-top: 0; }
}

@media (max-width: 720px) {
  .topbar { position: absolute; display: grid; justify-content: stretch; gap: 15px; padding-top: 18px; padding-bottom: 18px; }
  .identity-label { font-size: .58rem; }
  .hero-logo { width: 260px; max-width: 82vw; }
  nav { justify-content: space-between; gap: 8px; overflow-x: auto; }
  nav a { flex: 0 0 auto; font-size: .72rem; }
  .intro { padding-top: 180px; }
  .section-intro { grid-template-columns: 1fr; }
  .grid.secondary { grid-template-columns: 1fr; margin-top: 54px; }
  .event-card { grid-template-columns: 62px 1fr; gap: 15px; }
  .event-card button { grid-column: 1 / -1; width: 100%; }
  .action-panel { min-height: auto; }
  footer { display: grid; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .flow-item { opacity: 1; transform: none; }
}
