.card {
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--warm-white);
  opacity: 1;
  transform: none;
}

.reveal {
  opacity: 0;
  transform: translateY(10px);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
  transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.8s;
}

.card-media {
  --media: none;
  aspect-ratio: 16/10;
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
  background-image: linear-gradient(
      140deg,
      rgba(0, 0, 0, 0.04),
      rgba(0, 0, 0, 0.02)
    ),
    var(--media);
  background-size: cover;
  background-position: center;
}

.card-media.contain {
  background-size: contain;
  height: auto;
  width: 100%;
  background-repeat: no-repeat;
  max-width: 200px;
  background-image: var(--media);
  background-position: center;
  justify-self: center;
}

#events .card-media {
  height: 100%;
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

#events .card {
  height: 100%;
}

.map .card-media {
  aspect-ratio: 1/1;
}

.card-body {
  padding: 18px 18px 22px;
  display: flex;
  flex-flow: column;
  gap: 0.25rem;
}

.kicker {
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--olive-green);
  font-size: 0.75rem;
}

.card h3 {
  margin: 8px 0 6px;
  font-weight: 500;
  color: var(--soft-black);
}

.card p {
  margin: 0;
  color: var(--accent);
}

.card-body p {
  margin: 0;
  padding: 10px 0;
}

.card-body p + p {
  border-top: 1px solid var(--line);
}

.card-body h3 {
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--soft-black);
}

.card-body h3 + .spec-list {
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin-top: 12px;
}

.card.full,
.card.full .card-media {
  height: 100%;
}

.card-link {
  display: block;
  color: inherit;
  text-decoration: none;
  height: 100%;
}

.card-link .card {
  cursor: pointer;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.5s ease, border-color 0.4s ease;
}

.card-link .card .card-media {
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.6s ease;
}

.card-link:focus-visible .card,
.card-link:hover .card {
  transform: translateY(-6px);
}

.card-link:hover .card .card-media {
  transform: scale(1.03);
}

.card-link:focus-visible .card {
  outline: 0;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08), 0 18px 50px rgba(0, 0, 0, 0.12);
}

.card-link .card {
  border-color: var(--line);
}

.card-link:hover .card {
  border-color: rgba(0, 0, 0, 0.18);
}

.spec-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.spec-list li {
  display: grid;
  grid-template-columns: 12px 1fr;
  align-items: start;
  gap: 12px;
  color: var(--accent);
  font-size: 0.975rem;
  letter-spacing: 0.01em;
}

.spec-list li::before {
  content: "";
  width: 6px;
  height: 6px;
  border: 1px solid var(--soft-black);
  border-radius: 1px;
  margin-top: 0.4em;
}

.spec-list + p {
  border-top: 1px solid var(--line);
  padding-top: 10px;
  margin-top: 12px;
  color: var(--muted);
}

.system-card {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
  display: grid;
  grid-template-rows: 1fr auto;
  will-change: opacity;
}

.system-card.is-active {
  opacity: 1;
  pointer-events: auto;
}

.system-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: var(--media, none);
  background-size: cover;
  background-position: center;
  filter: contrast(1.02) saturate(1.02);
}

.system-card .system-body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-flow: column;
  justify-content: flex-end;
  gap: 8px;
  padding: 2rem;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.4),
    rgba(0, 0, 0, 0.4) 60%,
    rgba(0, 0, 0, 0)
  );
}

.system-card .system-logo {
  --media: none;
  width: auto;
  height: 50px;
  background-image: var(--media);
  background-size: contain;
  background-repeat: no-repeat;
  margin-bottom: 12px;
  justify-content: flex-start;
  position: relative;
  margin: 2rem;

  align-items: flex-start;
  display: flex
}

.system-card .kicker {
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--hero-ink);
}

.system-card h3 {
  margin: 0;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--hero-ink);
}

.system-card p {
  margin: 0;
  color: var(--hero-ink);
}

.feature-card {
  position: relative;
  display: grid;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--warm-white);
  box-shadow: var(--shadow);
  min-height: 460px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  contain: paint;
  backface-visibility: hidden;
  transform: translate3d(0, 0, 0);
  will-change: transform, box-shadow, border-color, filter;
  transition: transform 0.45s cubic-bezier(0.18, 0.89, 0.32, 1.28),
    box-shadow 0.45s cubic-bezier(0.18, 0.89, 0.32, 1.28),
    border-color 0.35s ease, filter 0.35s ease;
}

.feature-media {
  --media: none;
  position: absolute;
  inset: 0;
  background-image: var(--media);
  background-size: cover;
  background-position: center;
  transform: translateZ(0) scale(1);
  will-change: transform, filter;
  backface-visibility: hidden;
  transition: transform 0.6s cubic-bezier(0.18, 0.89, 0.32, 1.28),
    filter 0.6s ease;
}

.feature-card:hover {
  transform: translate3d(0, -6px, 0);
  border-color: rgba(0, 0, 0, 0.18);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.16);
  filter: saturate(1.04) contrast(1.03);
}

.feature-card:hover .feature-media {
  transform: translateZ(0) scale(1.05);
  filter: brightness(1.02);
}

.feature-card:active {
  transform: translate3d(0, -2px, 0);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  transition-duration: 0.25s;
}

.feature-card:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08), 0 16px 48px rgba(0, 0, 0, 0.14);
}

.feature-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  transition: opacity 0.45s ease;
  background: linear-gradient(
      to top,
      rgba(0, 0, 0, 0.52),
      rgba(0, 0, 0, 0.22) 50%
    ),
    radial-gradient(120% 80% at 50% 120%, rgba(0, 0, 0, 0.28), transparent 60%);
  opacity: 0.9;
}

.feature-card:hover::after {
  opacity: 1;
  transition-duration: 0.6s;
}

.module.selections{
  --sage-1: color-mix(in oklab, var(--sage-green, #6f8f7f) 12%, #fff);
  --sage-2: color-mix(in oklab, var(--sage-green, #6f8f7f) 5%, #fff);
  position: relative;
  isolation: isolate;
  border-radius: 16px;
  overflow: clip;
  background:
    radial-gradient(1100px 600px at 20% -10%, var(--sage-1), transparent 60%),
    radial-gradient(900px 520px at 85% 0%,  var(--sage-1), transparent 70%),
    linear-gradient(180deg, var(--sage-2), color-mix(in oklab, var(--sage-2) 70%, #fff));
}

.module.selections::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  background-image: url("data:image/svg+xml;utf8,\<svg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'>\<path d='M0 31.5h32M31.5 0v32' stroke='rgba(20,30,24,0.055)' stroke-width='1'/>\</svg>");
  background-size: 32px 32px;
  background-repeat: repeat;
  mix-blend-mode: multiply;
  pointer-events:none;
}

.module.selections::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  background: radial-gradient(120% 90% at 50% 10%, transparent 0 60%, rgba(0,0,0,.04) 100%);
  pointer-events:none;
}


.module.selections .grid {
  border: 1px solid var(--line, rgba(0,0,0,.1));
  border-radius: 16px;
  background: color-mix(in oklab, #fff 86%, transparent);
  backdrop-filter: blur(8px) saturate(120%);
  -webkit-backdrop-filter: blur(8px) saturate(120%);
  box-shadow: 0 18px 48px rgba(0,0,0,.08);
  padding: 20px min(6vw, 28px) 8px;
}

/* Title refinement */
.module.selections h2 {
  font-weight: 500;
  letter-spacing: .01em;
  margin: 6px 0 10px;
}

/* Row layout + elegant dividers */
.selection-row{
  display: grid;
  grid-template-columns: 180px 1fr;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  position: relative;
}
.selection-row + .selection-row {
  border-top: 1px dashed color-mix(in oklab, var(--ink, #000) 12%, transparent);
}

/* Labels: quiet, architectural */
.selection-label{
  color: color-mix(in oklab, var(--ink, #000) 55%, #fff);
  font-size: .85rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .8;
  line-height: 1;
  padding-top: 6px;
}

/* Values line */
.selection-value{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  min-height: 42px;
  justify-content: start;
}

/* Chips: crisp pills with subtle depth */
.selection-chip{
  --chip-bg: color-mix(in oklab, #fff 92%, var(--ink, #000));
  --chip-bd: rgba(0,0,0,.10);

  display: inline-flex;
  align-items: center;
  gap: .55ch;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--chip-bd);
  background: var(--chip-bg);
  color: inherit;
  font-size: .95rem;
  line-height: 1;
  box-shadow: 0 1px 0 rgba(0,0,0,.04), inset 0 1px 0 rgba(255,255,255,.6);
  transition:
    transform .25s cubic-bezier(.22,.61,.36,1),
    border-color .25s ease,
    box-shadow .28s ease,
    background .25s ease,
    filter .25s ease;
  will-change: transform, box-shadow, filter;
}
.selection-chip:hover{
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(0,0,0,.08);
  filter: saturate(1.02) contrast(1.02);
}

.selection-chip.filled{
  --chip-bg: color-mix(in oklab, var(--sage-green) 15%, #fff);
  border-color: color-mix(in oklab, var(--sage-green) 55%, transparent);
  box-shadow:
    0 10px 26px rgba(0,0,0,.10),
    0 0 0 2px color-mix(in oklab, var(--sage-green) 25%, transparent);
}

.selection-chip.filled::before{
  content: "";
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: var(--sage-green);
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23fff' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / 12px 12px no-repeat;
  margin-right: 2px;
  box-shadow: 0 0 0 2px color-mix(in oklab, var(--sage-green) 25%, transparent);
}

.selection-chip:is([data-selection-for]) {

}
.selection-chip:where(:not(.filled)) {
  border-style: dashed;
  color: color-mix(in oklab, var(--ink, #000) 60%, #fff);
  background: color-mix(in oklab, #fff 96%, transparent);
  opacity: .85;
}

@keyframes chipIn {
  0% { transform: translateY(4px) scale(.98); opacity: 0; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}
.selection-chip.animate-in {
  animation: chipIn .28s cubic-bezier(.22,.61,.36,1);
}

.core-media, .motion-media{
  --media: none;
  background-image: var(--media);
  padding: 1.5rem;
  background-size: cover;
  background-position: center;
}

@media (prefers-reduced-motion: reduce) {
  .feature-card,
  .feature-media,
  .feature-card::after {
    transition: none;
  }
  .feature-card:hover,
  .feature-card:active {
    transform: none;
  }
}

.feature-body {
  position: relative;
  z-index: 1;
  width: min(100%, 980px);
  justify-items: center;
  margin-inline: auto;
  padding: 56px 6vw;
  display: grid;
  gap: 14px;
  text-align: center;
  color: var(--hero-ink);
}

.feature-body .kicker {
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.8);
}

.feature-body h2 {
  margin: 0;
  font-weight: 600;
  letter-spacing: 0.01em;
  font-size: clamp(1.6rem, 3.6vw, 2.4rem);
  color: var(--hero-ink);
  line-height: 1.2;
}

.feature-body p {
  margin: 0 auto;
  max-width: 72ch;
  color: rgba(255, 255, 255, 0.92);
}

.feature-cta {
  justify-self: center;
  margin-top: 10px;
  padding: 8px 24px;
  border: 1px solid var(--hero-line);
  align-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px) saturate(120%);
  transition: transform 0.25s ease, background 0.25s ease,
    border-color 0.25s ease;
}

.feature-card:hover .feature-cta {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.24);
  border-color: rgba(255, 255, 255, 0.3);
}

.event-card {
  display: grid;
  gap: 16px;
  align-content: start;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--warm-white);
  box-shadow: var(--shadow);
  padding: 22px;
  position: relative;
  isolation: isolate;
}

.event-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.03), transparent 40%);
  mix-blend: normal;
}

.event-head {
  display: grid;
  gap: 4px;
}

.event-card .kicker {
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.event-card h3 {
  margin: 0;
  letter-spacing: 0.01em;
  color: var(--soft-black);
}

.sleek-list {
  display: grid;
  gap: 10px;
  margin: 6px 0 8px 0;
  padding: 0;
  list-style: none;
}

.sleek-list li {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-items: center;
  color: var(--ink);
}

.sleek-list li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 1px solid var(--soft-black);
  opacity: 0.25;
  align-self: 9px;
}

.sleek-list li + li {
  position: relative;
}
.sleek-list li + li::after {
  content: "";
  position: absolute;
  left: 7px;
  right: auto;
  top: -6px;
  height: 1px;
  width: 22px;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0));
}

.btn-event {
  justify-self: start;
  width: fit-content;
  border: 1px solid var(--soft-black);
  border-radius: 14px;
  padding: 10px 16px;
  background: transparent;
  color: var(--soft-black);
  letter-spacing: 0.02em;
  transition: transform 0.25s ease, background 0.25s ease,
    border-color 0.25s ease, box-shadow 0.25s ease;
}
.btn-event:hover {
  transform: translateY(-1px);
  background: rgba(0, 0, 0, 0.04);
}

.btn-event:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
}

.ee-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 18px;
  align-items: stretch;
}

.ee-card {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-column-gap: 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--warm-white);
  padding: 22px;
  box-shadow: var(--shadow);
  transition: transform 0.32s cubic-bezier(0.22, 0.61, 0.36, 1),
    box-shadow 0.32s cubic-bezier(0.22, 0.61, 0.36, 1), border-color 0.28s ease,
    filter 0.28s ease;
  align-items: center;
}

.ee-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 0, 0, 0.16);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.12);
  filter: saturate(1.01) contrast(1.01);
}

.ee-card:active {
  transform: translateY(-1px);
}

.ee-top {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  margin-bottom: 2px;
}

.ee-kicker {
  display: grid;
  place-items: center;
  min-width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.03);
  color: var(--soft-black);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
}

.ee-card h3 {
  margin: 0;
  color: var(--soft-black);
  font-weight: 600;
  letter-spacing: 0.01em;
}

.ee-card p {
  margin: 0;
  color: var(--accent);
  line-height: 1.6;
}

.ee-card .content {
  display: flex;
  flex-flow: column;
  gap: 0.5rem;
}

.selectable{
  position: relative;
  cursor: pointer;
  border:2px solid var(--card-stroke);
  border-radius: 12px;
  background: var(--card-bg);
  transition:
    transform .18s cubic-bezier(.22,.61,.36,1),
    border-color .18s ease,
    background .18s ease,
    filter .18s ease;
  will-change: transform;
  backface-visibility: hidden;
  contain: paint;
}

.selectable:hover{
  transform: translateY(-2px);
  border-color: var(--card-stroke-strong);
  filter: saturate(1.01) contrast(1.01);
}

.selectable.is-selected{
  border-color: var(--accent);
  background:
    linear-gradient(180deg,
      color-mix(in oklab, var(--accent) 5%, #fff) 0%,
      color-mix(in oklab, var(--accent) 3%, #fff) 100%);
}

.selectable.is-selected:active{
  border-color: var(--accent);
  transform: translateY(-1px);
}

.selectable.is-selected::before{
  content: none;
}

.selectable:active{
  transform: translateY(-1px);
}

.selectable:focus-visible{
  outline: none;
  box-shadow: 0 0 0 2px color-mix(in oklab, var(--accent) 28%, transparent);
  border-color: var(--accent);
}

@media (prefers-reduced-motion: reduce){
  .selectable{ transition: none; }
  .selectable:hover,
  .selectable.is-selected:hover{ transform: none; }
}

@media (prefers-color-scheme: dark){
  :root{
    --card-bg: color-mix(in oklab, #fff 92%, transparent);
    --card-stroke: color-mix(in oklab, #000 12%, transparent);
    --card-stroke-strong: color-mix(in oklab, #000 18%, transparent);
  }

  .selectable.is-selected{
    background:
      linear-gradient(180deg,
        color-mix(in oklab, var(--accent) 8%, #fff) 0%,
        color-mix(in oklab, var(--accent) 5%, #fff) 100%);
  }

  .selectable:focus-visible{
    box-shadow: 0 0 0 2px color-mix(in oklab, var(--accent) 34%, transparent);
  }
}

@media (max-width: 1400px) {
  .event-card {
    grid-column: span 12;
  }
  .events .events-intro {
    grid-column: span 12;}
}

@media (max-width: 1120px) {
  .ee-card {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .card-media {
    order: 2;
  }
}

@media (max-width: 960px) {
  .feature-card {
    min-height: 420px;
  }
  .feature-body {
    padding: 44px 6vw;
  }
  .event-card {
    padding: 18px;
  }

  .ee-card {
    padding: 18px;
  }
}

@media (max-width: 720px){
  .selection-row{
    grid-template-columns: 120px 1fr;
    gap: 10px;
  }
  .module.selections .grid{
    padding: 16px min(4vw, 20px) 6px;
  }
}