/* The Solutions Alliance: public page.
   Palette: spruce (ink + depth), brass (the table rim, one accent), cool paper. */
:root {
  --spruce: #12403c;
  --spruce-deep: #0c2e2b;
  --spruce-soft: #e3ece8;
  --ink: #1c2726;
  --sage: #5d726d;
  --paper: #f5f7f4;
  --card: #ffffff;
  --mist: #d9e3de;
  --brass: #b5813a;
  --brass-light: #d9ae6a;
  --brass-text: #85591d; /* brass dark enough for small labels (AA on paper/white) */
  --error: #a3362a;

  --display: 'Bricolage Grotesque', 'Avenir Next', system-ui, sans-serif;
  --body: 'Schibsted Grotesk', 'Helvetica Neue', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;

  --radius: 14px;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 650; letter-spacing: -0.02em; line-height: 1.08; margin: 0; }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--card); padding: 8px 14px; z-index: 50; }
.skip:focus { left: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1.5px solid var(--spruce);
  background: var(--spruce); color: #fff; font: 600 16px/1 var(--body); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { background: var(--spruce-deep); border-color: var(--spruce-deep); }
.btn:active { transform: translateY(1px); }
.btn-small { min-height: 40px; padding: 0 18px; font-size: 15px; }
.btn-ghost { background: transparent; color: var(--spruce); }
.btn-ghost:hover { background: var(--spruce-soft); color: var(--spruce-deep); border-color: var(--spruce-deep); }
.btn-brass { background: var(--brass-light); border-color: var(--brass-light); color: var(--spruce-deep); }
.btn-brass:hover { background: #e7c286; border-color: #e7c286; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- Header ---------- */
.top { position: sticky; top: 0; z-index: 20; background: rgba(245, 247, 244, .9); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.top.scrolled { border-bottom-color: var(--mist); }
.top-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 650 18px/1.1 var(--display); color: var(--spruce); letter-spacing: -0.01em; }
.brand-mark { width: 34px; height: 34px; color: var(--brass); flex: none; }
.brand-seats { fill: var(--spruce); }
.top-nav { display: flex; align-items: center; gap: 26px; }
.top-nav a:not(.btn) { text-decoration: none; font-weight: 500; font-size: 15px; color: var(--sage); }
.top-nav a:not(.btn):hover { color: var(--spruce); }
@media (max-width: 720px) {
  .top-nav a:not(.btn) { display: none; }
  .brand span { font-size: 16px; }
}
@media (max-width: 400px) {
  .brand-mark { width: 28px; height: 28px; }
  .top .btn-small { padding: 0 14px; }
}

/* ---------- Hero + the table ---------- */
.hero { padding: clamp(36px, 7vw, 88px) 0 clamp(48px, 8vw, 104px); overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.eyebrow { font: 500 13px/1.3 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--brass-text); margin: 0 0 18px; }
.hero h1 { font-size: clamp(40px, 6vw, 72px); color: var(--spruce); font-variation-settings: 'opsz' 96; }
.lede { font-size: clamp(18px, 1.6vw, 20px); color: #3a4846; max-width: 34em; margin: 22px 0 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.table-wrap { position: relative; }
.table {
  --size: min(500px, 100%);
  position: relative; width: var(--size); aspect-ratio: 1; margin: 0 auto;
  list-style: none; padding: 0;
}
.table::before { /* the rim */
  content: ''; position: absolute; inset: 17%; border-radius: 50%;
  border: 2px solid var(--brass); background: radial-gradient(circle at 50% 40%, #ffffff 0%, var(--spruce-soft) 100%);
  box-shadow: 0 30px 60px -30px rgba(18, 64, 60, .45), inset 0 0 0 10px rgba(255, 255, 255, .6);
}
.table-top { position: absolute; inset: 17%; display: grid; place-content: center; text-align: center; border-radius: 50%; }
.table-short { font: 700 clamp(44px, 7vw, 76px)/1 var(--display); color: var(--spruce); letter-spacing: -0.03em; }
.table-count { font: 500 12px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--sage); margin-top: 8px; }

.seat {
  --seat: clamp(52px, 13%, 74px);
  position: absolute; width: var(--seat); height: var(--seat); left: var(--x); top: var(--y);
  transform: translate(-50%, -50%);
  border-radius: 50%; padding: 0; border: 3px solid var(--paper); background: var(--spruce); cursor: pointer;
  box-shadow: 0 6px 18px -6px rgba(12, 46, 43, .55); overflow: hidden;
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .25s, border-color .25s;
  opacity: 0; animation: seat-in .55s cubic-bezier(.2, .8, .2, 1) forwards; animation-delay: calc(var(--i) * 70ms + 150ms);
}
.seat:hover, .seat:focus-visible, .seat.lit { border-color: var(--brass-light); box-shadow: 0 10px 26px -8px rgba(12, 46, 43, .7); z-index: 2; }
.seat:hover, .seat.lit { transform: translate(-50%, -50%) scale(1.12); }
.seat img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
@keyframes seat-in { from { opacity: 0; scale: .6; } to { opacity: 1; scale: 1; } }
.table-hint { text-align: center; color: var(--sage); font-size: 15px; min-height: 3.2em; margin: 14px auto 0; max-width: 28em; }
.table-hint strong { color: var(--spruce); font-weight: 600; }

.mono { display: grid; place-items: center; width: 100%; height: 100%; color: #fff; font: 600 1em/1 var(--display); letter-spacing: .02em; background: var(--spruce); }
.seat .mono { font-size: clamp(15px, 2vw, 21px); }

@media (max-width: 880px) {
  .hero-inner { grid-template-columns: 1fr; }
  .table-wrap { order: 2; }
}

/* ---------- Members ---------- */
.members { padding: clamp(56px, 8vw, 104px) 0; background: var(--card); border-top: 1px solid var(--mist); border-bottom: 1px solid var(--mist); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 40px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(32px, 4vw, 48px); color: var(--spruce); }
.section-head p { margin: 0; color: var(--sage); max-width: 30em; }

.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.card {
  width: 100%; height: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer;
  display: flex; flex-direction: column; border: 1px solid var(--mist); border-radius: var(--radius); background: var(--paper);
  padding: 0; overflow: hidden; transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s, border-color .25s;
}
.card:hover, .card.lit { transform: translateY(-4px); border-color: var(--brass); box-shadow: 0 18px 36px -24px rgba(12, 46, 43, .55); }
.card-photo { aspect-ratio: 4 / 3.4; background: var(--spruce-soft); overflow: hidden; }
.card-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; transition: transform .5s; }
.card:hover .card-photo img { transform: scale(1.03); }
.card-photo .mono { font-size: 54px; background: linear-gradient(150deg, var(--spruce) 0%, var(--spruce-deep) 100%); }
/* The place card: a folded tent with the name on it. */
.card-body { position: relative; padding: 18px 20px 20px; border-top: 3px solid var(--brass); background: var(--card); flex: 1; display: flex; flex-direction: column; gap: 4px; }
.card-name { font: 650 22px/1.15 var(--display); color: var(--spruce); letter-spacing: -0.015em; }
.card-company { color: #3a4846; font-size: 15px; }
.tag { font: 500 12px/1.35 var(--mono); text-transform: uppercase; letter-spacing: .07em; color: var(--brass-text); margin: 0 0 6px; }
.card .tag { order: -1; }
.card-more { margin-top: auto; padding-top: 12px; font-size: 14px; font-weight: 600; color: var(--spruce); display: inline-flex; align-items: center; gap: 6px; }
.card-more svg { width: 16px; height: 16px; transition: transform .2s; }
.card:hover .card-more svg { transform: translateX(3px); }
.empty { color: var(--sage); }

/* ---------- About ---------- */
.about { padding: clamp(56px, 8vw, 104px) 0; }
.about-inner { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 5vw, 72px); }
.about h2 { font-size: clamp(32px, 4vw, 48px); color: var(--spruce); }
.prose p { margin: 0 0 1em; }
.prose p:last-child { margin-bottom: 0; }
.about .prose { font-size: 19px; color: #2f3c3a; }
.facts { margin: 32px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0; border-top: 1px solid var(--mist); }
.facts > div { padding: 16px 16px 0 0; }
.facts dt { font: 500 12px/1.3 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--brass-text); margin-bottom: 4px; }
.facts dd { margin: 0; font-weight: 500; white-space: pre-line; }
@media (max-width: 760px) { .about-inner { grid-template-columns: 1fr; } }

/* ---------- Visit ---------- */
.visit { background: var(--spruce); color: #e8efec; padding: clamp(56px, 8vw, 104px) 0; position: relative; overflow: hidden; }
.visit::after { /* the table rim, echoed */
  content: ''; position: absolute; width: 560px; height: 560px; left: -260px; bottom: -300px; border-radius: 50%;
  border: 2px solid rgba(217, 174, 106, .35); pointer-events: none;
}
.visit-inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.visit h2 { font-size: clamp(32px, 4vw, 48px); color: #fff; }
.visit-copy p { font-size: 18px; margin: 18px 0 0; color: #c9d8d3; }
.visit-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); border-radius: 18px; padding: clamp(18px, 3vw, 28px); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-wide { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 500; color: #dbe6e2; }
.opt { color: #9db3ad; font-weight: 400; }
.field input, .field textarea {
  font: inherit; font-size: 16px; color: var(--ink); background: #fff; border: 1.5px solid transparent; border-radius: 10px; padding: 12px 14px; min-height: 48px; width: 100%;
}
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brass-light); box-shadow: 0 0 0 3px rgba(217, 174, 106, .35); }
.field input[aria-invalid='true'] { border-color: #f0a093; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { margin: 0; min-height: 1.4em; font-size: 15px; }
.form-msg.err { color: #ffc2b8; }
.form-msg.ok { color: #fff; font-weight: 500; }
.visit-done { grid-column: 1 / -1; text-align: center; padding: 28px 8px; }
.visit-done h3 { font-size: 28px; color: #fff; margin-bottom: 8px; }
.visit-done p { margin: 0; color: #c9d8d3; }
@media (max-width: 820px) { .visit-inner { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .visit-form { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.foot { background: var(--spruce-deep); color: #9db3ad; font-size: 14px; }
.foot-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 22px; padding-bottom: 22px; }
.foot p { margin: 0; }
.foot-edit { color: #9db3ad; text-decoration: none; }
.foot-edit:hover { color: #fff; text-decoration: underline; }

/* ---------- Profile dialog ---------- */
.profile {
  border: 0; padding: 0; margin: 0 0 0 auto; height: 100%; max-height: 100%; width: min(560px, 100%); max-width: 100%;
  background: var(--card); color: var(--ink); box-shadow: -30px 0 60px -30px rgba(12, 46, 43, .5);
}
.profile::backdrop { background: rgba(12, 46, 43, .45); backdrop-filter: blur(2px); }
.profile[open] { animation: slide-in .35s cubic-bezier(.2, .8, .2, 1); }
@keyframes slide-in { from { transform: translateX(40px); opacity: 0; } }
.profile-inner { padding: clamp(20px, 4vw, 40px); position: relative; }
.profile-close { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--mist); background: var(--card); color: var(--spruce); cursor: pointer; display: grid; place-items: center; }
.profile-close:hover { background: var(--spruce-soft); }
.profile-close svg { width: 20px; height: 20px; }
.profile-head { display: flex; gap: 20px; align-items: center; margin: 12px 48px 24px 0; }
.profile-photo { width: 112px; height: 112px; border-radius: 50%; overflow: hidden; flex: none; border: 3px solid var(--brass-light); background: var(--spruce); }
.profile-photo img { width: 100%; height: 100%; object-fit: cover; }
.profile-photo .mono { font-size: 38px; }
.profile h2 { font-size: clamp(26px, 4vw, 34px); color: var(--spruce); }
.profile-role { margin: 6px 0 0; color: #3a4846; }
.profile-actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 18px 0 24px; border-top: 1px solid var(--mist); border-bottom: 1px solid var(--mist); }
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px; border-radius: 999px;
  border: 1.5px solid var(--mist); background: var(--paper); color: var(--spruce); text-decoration: none; font: 600 14px/1 var(--body); cursor: pointer;
  transition: border-color .2s, background .2s;
}
.chip:hover { border-color: var(--spruce); background: var(--spruce-soft); }
.chip svg { width: 17px; height: 17px; flex: none; }
.chip-primary { background: var(--spruce); border-color: var(--spruce); color: #fff; }
.chip-primary:hover { background: var(--spruce-deep); border-color: var(--spruce-deep); }
.profile-bio { padding-top: 24px; font-size: 17px; color: #2f3c3a; }
.profile-bio .muted { color: var(--sage); font-style: italic; }
@media (max-width: 560px) {
  .profile-head { flex-direction: column; align-items: flex-start; }
  .profile-photo { width: 96px; height: 96px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; transition-duration: .01ms !important; }
}
