@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,500;1,600&display=swap");
:root {
  --wine: #5b1628;
  --wine2: #3b1020;
  --rose: #862b43;
  --ink: #241c1f;
  --muted: #635a5e;
  --cream: #faf7f2;
  --line: #e5dbd6;
  --gold: #cba46c;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font:
    16px/1.6 "DM Sans",
    Arial,
    sans-serif;
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}
.skip {
  position: absolute;
  left: -999px;
  top: 0;
}
.skip:focus {
  left: 12px;
  z-index: 20;
  background: #fff;
  padding: 10px;
}
.top {
  min-height: 88px;
  padding: 12px clamp(20px, 5vw, 88px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.logo img {
  display: block;
  width: 150px;
  height: 58px;
  object-fit: contain;
  object-position: left;
}
.top nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.6vw, 36px);
  font-weight: 700;
  font-size: 0.9rem;
}
.top nav a:hover,
.top-cta:hover {
  color: var(--rose);
}
.top-cta {
  border: 1px solid var(--wine);
  border-radius: 999px;
  padding: 10px 19px;
  color: var(--wine);
  font-weight: 700;
  white-space: nowrap;
}
.top-cta span {
  margin-left: 12px;
}
.hero {
  min-height: 640px;
  background: var(--wine);
  color: #fff;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  overflow: hidden;
}
.hero-copy {
  padding: clamp(70px, 8vw, 125px) 0 60px clamp(24px, 6vw, 108px);
  position: relative;
  z-index: 1;
  max-width: 860px;
}
.eyebrow {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: #e7c99a;
}
.eyebrow.dark {
  color: var(--rose);
}
.eyebrow span {
  display: inline-block;
  width: 19px;
  height: 2px;
  background: var(--gold);
  vertical-align: middle;
  margin-right: 9px;
}
.hero h1,
h2,
.portal-heading h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 500;
  line-height: 1.09;
  letter-spacing: -0.045em;
}
.hero h1 {
  font-size: clamp(3.3rem, 6.1vw, 6.5rem);
  margin: 28px 0;
}
.hero em,
h2 em {
  color: #e4c79e;
  font-weight: 500;
}
.hero-copy > p {
  color: #f0e7e9;
  font-size: clamp(1.05rem, 1.45vw, 1.3rem);
  max-width: 650px;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: 38px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 35px;
  border: 0;
  border-radius: 6px;
  padding: 16px 25px;
  font-weight: 800;
  min-height: 56px;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 22px #21000e22;
}
.button-light {
  background: #fff;
  color: var(--wine);
}
.button-dark {
  background: var(--wine);
  color: #fff;
}
.text-link {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 6px;
}
.hero-note {
  color: #e4c7d0;
  font-size: 0.84rem;
  margin-top: 68px;
  border-top: 1px solid #ffffff3a;
  padding-top: 20px;
  max-width: 650px;
}
.hero-art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 55px 40px;
  background: radial-gradient(circle at 55% 45%, #873047, transparent 55%);
}
.orbit {
  position: absolute;
  border: 1px solid #ffffff22;
  border-radius: 50%;
  aspect-ratio: 1;
}
.o1 {
  width: 710px;
}
.o2 {
  width: 510px;
}
.art-card {
  position: relative;
  width: min(420px, 100%);
  min-height: 455px;
  background: #f9f5ef;
  color: var(--wine);
  padding: 45px;
  box-shadow: 0 30px 70px #21000e55;
  transform: rotate(3deg);
  display: flex;
  flex-direction: column;
}
.art-card:after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid #d9c6b5;
  pointer-events: none;
}
.art-spark {
  font-size: 2.6rem;
  color: var(--gold);
  line-height: 1;
}
.art-card small {
  letter-spacing: 0.22em;
  font-weight: 800;
  margin-top: 24px;
}
.art-card strong {
  font:
    500 clamp(2.4rem, 3vw, 3.5rem) / 1.12 "Playfair Display",
    Georgia,
    serif;
  letter-spacing: -0.03em;
  margin: 18px 0 26px;
}
.art-list {
  border-top: 1px solid #d8c7bd;
  display: grid;
  gap: 14px;
  padding-top: 24px;
  color: #5f4852;
  font-weight: 700;
}
.art-foot {
  margin-top: auto;
  padding-top: 25px;
  letter-spacing: 0.17em;
  font-size: 0.65rem;
  font-weight: 800;
}
.strip {
  background: #e8ddd0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 19px clamp(22px, 6vw, 110px);
  gap: 15px;
}
.strip div {
  display: flex;
  gap: 17px;
  align-items: center;
  border-right: 1px solid #cdbfb4;
  font-weight: 700;
}
.strip div:last-child {
  border: 0;
}
.strip b {
  color: var(--wine);
  font-family: Georgia, serif;
  font-size: 1.25rem;
}
.section {
  padding: clamp(72px, 8vw, 130px) clamp(22px, 6vw, 108px);
}
h2 {
  font-size: clamp(2.8rem, 5vw, 5.1rem);
  margin: 18px 0 27px;
}
h2 em {
  color: var(--rose);
}
.intro {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 8vw;
}
.intro > div:first-child > p,
.section-title > p,
.join-copy > p {
  font-size: 1.1rem;
  max-width: 600px;
  color: var(--muted);
}
.steps {
  border-top: 1px solid var(--line);
}
.steps article {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 50px 1fr;
  column-gap: 20px;
}
.steps b {
  grid-row: span 2;
  color: var(--rose);
  font-family: Georgia, serif;
  font-size: 1.5rem;
}
.steps h3 {
  margin: 0;
  font-size: 1.3rem;
}
.steps p {
  margin: 5px 0 0;
  color: var(--muted);
}
.programs-section {
  background: #f1ebe5;
}
.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 30px;
}
.section-title > p {
  max-width: 380px;
}
.program-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.program-card,
.empty {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 30px;
  min-height: 250px;
}
.program-card {
  display: flex;
  flex-direction: column;
}
.program-card > span {
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.17em;
  color: var(--rose);
  text-transform: uppercase;
}
.program-card h3 {
  font:
    500 1.9rem/1.18 "Playfair Display",
    Georgia,
    serif;
  margin: 18px 0;
}
.program-card p {
  color: var(--muted);
  margin: 0 0 25px;
}
.program-card a {
  margin-top: auto;
  color: var(--wine);
  font-weight: 800;
}
.empty {
  grid-column: 1/-1;
  min-height: auto;
  color: var(--muted);
}
.join-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 8vw;
  background: #fff;
}
.mini-callout {
  border-left: 3px solid var(--gold);
  padding: 12px 18px;
  margin-top: 40px;
  background: var(--cream);
  color: var(--wine);
  font-weight: 700;
  max-width: 500px;
}
.form-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: clamp(25px, 4vw, 48px);
  box-shadow: 0 15px 60px #3615200b;
}
.form-heading span {
  color: var(--rose);
  letter-spacing: 0.2em;
  font-size: 0.72rem;
  font-weight: 800;
}
.form-heading h3,
.login-card h3 {
  font:
    500 2.5rem "Playfair Display",
    Georgia,
    serif;
  margin: 5px 0;
}
.form-heading p {
  color: var(--muted);
  margin-top: 0;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
form label {
  display: block;
  font-size: 0.88rem;
  font-weight: 800;
  margin: 17px 0;
  color: var(--ink);
}
form input:not([type="checkbox"]),
form select {
  display: block;
  width: 100%;
  min-height: 48px;
  margin-top: 7px;
  padding: 10px 14px;
  border: 1px solid #cdbdb8;
  border-radius: 5px;
  background: #fff;
  color: var(--ink);
}
form input::placeholder {
  color: #81767a;
}
form .check {
  display: flex;
  gap: 12px;
  align-items: start;
  font-weight: 500;
  line-height: 1.4;
}
.check input {
  margin-top: 4px;
  accent-color: var(--wine);
  width: 18px;
  height: 18px;
  flex: none;
}
.trap {
  position: absolute;
  left: -9999px;
  opacity: 0;
}
.form-status {
  min-height: 1.5em;
  font-weight: 700;
  color: var(--wine);
}
.portal-section {
  background: var(--wine2);
  color: #fff;
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 8vw;
}
.portal-heading h2 {
  margin-top: 20px;
}
.portal-heading p {
  color: #e3d5da;
  max-width: 420px;
}
.login-card {
  background: #fff;
  color: var(--ink);
  border-radius: 10px;
  padding: clamp(26px, 4vw, 50px);
  max-width: 580px;
  width: 100%;
}
.login-card .button {
  background: var(--wine);
  color: #fff;
}
.workspace {
  grid-column: 1/-1;
}
.workspace-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  border-bottom: 1px solid #ffffff3b;
  margin-bottom: 25px;
}
.workspace-head h3 {
  font:
    500 clamp(2rem, 4vw, 3.5rem) "Playfair Display",
    Georgia,
    serif;
  margin: 4px 0;
}
.workspace-head p {
  margin: 0 0 25px;
  color: #e4cdd4;
}
.outline-light {
  border: 1px solid #ffffff9a;
  border-radius: 5px;
  background: transparent;
  color: #fff;
  padding: 10px 17px;
  font-weight: 700;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 22px;
}
.stat {
  background: #fff;
  color: var(--ink);
  border-radius: 8px;
  padding: 23px;
}
.stat b {
  display: block;
  font:
    600 clamp(1.7rem, 3vw, 2.6rem) "Playfair Display",
    Georgia,
    serif;
  color: var(--wine);
}
.stat span {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 800;
  letter-spacing: 0.04em;
}
.workspace-card {
  background: #fff;
  color: var(--ink);
  border-radius: 8px;
  padding: clamp(20px, 3vw, 34px);
  margin: 18px 0;
  overflow: auto;
}
.workspace-card h4 {
  font-size: 1.4rem;
  margin: 0;
}
.workspace-card > p,
.card-heading p {
  margin: 4px 0 20px;
  color: var(--muted);
}
.workspace-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.ref-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.ref-row strong {
  display: block;
}
.ref-row small {
  color: var(--muted);
}
.ref-row code {
  display: block;
  overflow-wrap: anywhere;
  color: var(--wine);
  margin-top: 5px;
}
.small-button {
  border: 1px solid var(--wine);
  background: var(--wine);
  color: #fff;
  padding: 8px 13px;
  border-radius: 5px;
  font-weight: 800;
  white-space: nowrap;
}
.small-button.secondary {
  background: #fff;
  color: var(--wine);
}
.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.admin-tabs button {
  border: 1px solid #ffffff70;
  border-radius: 999px;
  background: transparent;
  color: #fff;
  padding: 7px 15px;
  font-weight: 800;
}
.admin-tabs button.current {
  background: #fff;
  color: var(--wine);
}
.funnel-row{padding:18px 0;border-bottom:1px solid rgba(72,45,52,.14)}
.funnel-row:last-child{border-bottom:0}.funnel-row>strong{display:block;margin-bottom:12px}
.funnel-values{display:grid;grid-template-columns:1fr auto 1fr auto 1fr;gap:12px;align-items:center}
.funnel-values span{background:#faf6f4;border:1px solid #eadfda;border-radius:12px;padding:12px;color:#5b1628}
.funnel-values span b{display:block;font-size:1.35rem}.funnel-values small{display:block;color:#766b6f;margin-top:3px}
.monitor-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:18px 0}
.monitor-summary span{background:#faf6f4;border:1px solid #eadfda;border-radius:12px;padding:14px}.monitor-summary b{display:block;font-size:1.35rem;color:#651a30;margin-top:4px}
.monitor-alert{padding:14px 16px;border-left:4px solid #b8862e;background:#fff6dc;color:#5b4213;font-weight:700}
.statement-button{margin-top:16px}
@media(max-width:700px){.funnel-values{grid-template-columns:1fr}.funnel-values i{display:none}.monitor-summary{grid-template-columns:1fr 1fr}.admin-tabs{overflow-x:auto;flex-wrap:nowrap;padding-bottom:6px}.admin-tabs button{white-space:nowrap}}
.data-list {
  display: grid;
  gap: 12px;
}
.data-row {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 15px;
}
.data-row header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}
.data-row strong {
  overflow-wrap: anywhere;
}
.data-row small {
  display: block;
  color: var(--muted);
}
.data-row p {
  margin: 8px 0;
}
.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.row-actions button {
  border: 1px solid var(--wine);
  border-radius: 4px;
  background: #fff;
  color: var(--wine);
  font-size: 0.82rem;
  font-weight: 800;
  padding: 6px 10px;
}
.admin-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  margin: 18px 0;
}
.admin-form h5 {
  font-size: 1.1rem;
  margin: 0;
}
.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 15px;
}
.admin-form textarea {
  width: 100%;
  min-height: 80px;
  border: 1px solid #cdbdb8;
  border-radius: 5px;
  padding: 10px;
  font: inherit;
}
.pill {
  font-size: 0.72rem;
  border-radius: 999px;
  padding: 3px 9px;
  background: #f1e2e6;
  color: var(--wine);
  font-weight: 800;
}
footer {
  padding: 50px clamp(22px, 6vw, 108px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  background: #24191d;
  color: #fff;
}
footer img {
  width: 120px;
  height: 70px;
  object-fit: contain;
  background: #fff;
  border-radius: 4px;
}
footer p {
  max-width: 550px;
  color: #cbbdc2;
  margin: 4px 0;
}
footer a {
  color: #e9c995;
  text-decoration: underline;
  text-underline-offset: 5px;
}
@media (max-width: 1000px) {
  .top nav {
    display: none;
  }
  .hero {
    grid-template-columns: 1fr;
  }
  .hero-copy {
    padding: 75px 6vw 25px;
  }
  .hero-art {
    min-height: 460px;
  }
  .intro,
  .join-section,
  .portal-section {
    grid-template-columns: 1fr;
    gap: 38px;
  }
  .portal-section .workspace {
    grid-column: 1;
  }
  .program-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 650px) {
  .top {
    min-height: 70px;
    padding: 8px 17px;
  }
  .logo img {
    width: 115px;
    height: 48px;
  }
  .top-cta {
    font-size: 0.72rem;
    padding: 8px 10px;
  }
  .top-cta span {
    margin-left: 3px;
  }
  .hero-copy {
    padding: 64px 22px 30px;
  }
  .hero h1 {
    font-size: clamp(3.05rem, 12vw, 4.6rem);
  }
  .hero-note {
    margin-top: 40px;
  }
  .hero-art {
    min-height: 350px;
    padding: 20px;
  }
  .art-card {
    min-height: 300px;
    padding: 28px;
    transform: rotate(1deg);
  }
  .art-card strong {
    font-size: 2.4rem;
  }
  .art-list {
    gap: 5px;
    padding-top: 12px;
    font-size: 0.77rem;
  }
  .art-foot {
    padding-top: 12px;
  }
  .strip {
    grid-template-columns: 1fr 1fr;
    padding: 20px;
    gap: 15px;
  }
  .strip div {
    font-size: 0.76rem;
    gap: 8px;
    border-right: 0;
  }
  .section {
    padding: 65px 20px;
  }
  .section-title {
    display: block;
  }
  .section-title > p {
    margin-top: -10px;
  }
  .program-grid,
  .workspace-grid,
  .field-row,
  .admin-form-grid {
    grid-template-columns: 1fr;
  }
  .program-card {
    min-height: 210px;
  }
  .portal-section {
    gap: 20px;
  }
  .stat-grid {
    grid-template-columns: 1fr 1fr;
  }
  .stat {
    padding: 14px;
  }
  .stat b {
    font-size: 1.8rem;
  }
  .ref-row {
    grid-template-columns: 1fr;
  }
  .workspace-head {
    align-items: start;
  }
  .workspace-head h3 {
    font-size: 2rem;
  }
  .workspace-card {
    padding: 18px;
  }
  .data-row header {
    display: block;
  }
  footer {
    flex-direction: column;
    align-items: start;
  }
  .form-card {
    padding: 22px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}
