:root {
  --ink: #14344d;
  --muted: #60758a;
  --paper: #fffdfa;
  --surface: #ffffff;
  --soft: #edf8f6;
  --line: #d9e4e8;
  --violet: #147779;
  --violet-dark: #0e6265;
  --mint: #d8f1ea;
  --mint-dark: #0d6f70;
  --sun: #f7dcc3;
  --rose: #df684d;
  --danger: #b42318;
  --success: #0d7568;
  --shadow: 0 18px 48px rgba(20, 52, 77, .1);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
a { color: inherit; }

.skip-link {
  position: fixed;
  z-index: 200;
  top: 8px;
  left: 8px;
  transform: translateY(-140%);
  padding: 10px 14px;
  background: var(--ink);
  color: white;
  border-radius: 10px;
}
.skip-link:focus { transform: none; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 253, 250, .94);
  border-bottom: 1px solid rgba(217, 228, 232, .9);
  backdrop-filter: blur(18px);
}
.header-inner {
  width: min(var(--max), calc(100% - 32px));
  min-height: 76px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
}
.brand-button {
  width: 148px;
  height: 72px;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.brand-logo {
  width: 148px;
  height: auto;
  mix-blend-mode: multiply;
}
.primary-navigation {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
}
.primary-navigation button,
.header-actions select {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 760;
}
.primary-navigation button {
  padding: 10px 11px;
  border-radius: 11px;
}
.primary-navigation button:hover,
.primary-navigation button.is-active {
  color: var(--violet-dark);
  background: var(--soft);
}
.header-actions { display: flex; align-items: center; gap: 8px; }
.language-label { font-size: 0; }
.language-select {
  min-width: 68px;
  padding: 9px 28px 9px 10px;
  border: 1px solid var(--line) !important;
  border-radius: 11px;
  background: var(--surface) !important;
}
.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.menu-button span:not(.sr-only) {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
}

main { min-height: 66vh; }
.page { animation: page-in .25s ease both; }
@keyframes page-in { from { opacity: 0; transform: translateY(6px); } }
.shell { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.section { padding: 76px 0; }
.section.compact { padding: 50px 0; }
.section.tint { background: #eef7f5; }
.section.violet { background: var(--ink); color: white; }
.eyebrow {
  margin: 0 0 12px;
  color: var(--violet);
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.section.violet .eyebrow { color: var(--mint); }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1, h2, h3 { margin-top: 0; line-height: 1.08; letter-spacing: -.035em; }
h1 { font-size: clamp(2.8rem, 7vw, 6.25rem); }
h2 { font-size: clamp(2rem, 4vw, 3.6rem); }
h3 { font-size: 1.3rem; }
.lede {
  max-width: 740px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}
.section.violet .lede { color: #d7e4eb; }
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 28px;
  text-align: center;
}
.section-heading > div { max-width: 760px; margin: 0 auto; }
.section-heading h2 { margin-bottom: 10px; }
.section-heading p { margin: 0 auto; color: var(--muted); }
.section.violet .section-heading p { color: #d7e4eb; }

.hero {
  position: relative;
  overflow: hidden;
  padding: 86px 0 66px;
  background:
    radial-gradient(circle at 8% 18%, rgba(218, 244, 237, .96), transparent 25%),
    radial-gradient(circle at 88% 22%, rgba(251, 221, 197, .72), transparent 25%),
    linear-gradient(135deg, #f6fcfa 30%, #fff7f1 100%);
}
.hero::after {
  content: "";
  position: absolute;
  right: -120px;
  bottom: -180px;
  width: 480px;
  height: 480px;
  border: 90px solid rgba(20, 119, 121, .07);
  border-radius: 50%;
}
.hero-copy { position: relative; z-index: 1; max-width: 1010px; margin: 0 auto; text-align: center; }
.hero h1 { max-width: 980px; margin: 0 auto 24px; }
.hero .accent { color: var(--violet); }
.hero .lede { margin: 0 auto; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.search-panel {
  position: relative;
  z-index: 2;
  margin-top: 42px;
  padding: 14px;
  display: grid;
  grid-template-columns: 1fr 220px 155px;
  gap: 10px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(217, 228, 232, .95);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.search-panel input,
.search-panel select,
.filter-bar input,
.filter-bar select {
  min-width: 0;
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--ink);
  background: white;
  padding: 0 16px;
}
.quick-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; margin-top: 18px; }
.quick-actions button {
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.78);
  color: var(--ink);
  font-weight: 720;
}
.quick-actions button:hover { border-color: var(--violet); color: var(--violet-dark); }

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 13px;
  background: var(--violet);
  color: white;
  font-weight: 820;
  text-decoration: none;
  transition: transform .16s ease, background .16s ease, border-color .16s ease;
}
.button:hover { transform: translateY(-1px); background: var(--violet-dark); }
.button.secondary { background: white; color: var(--ink); border-color: var(--line); }
.button.secondary:hover { border-color: var(--violet); color: var(--violet-dark); }
.button.dark { background: var(--ink); }
.button.dark:hover { background: #224b65; }
.button.ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.button.small { min-height: 40px; padding: 8px 13px; font-size: .92rem; }
.button.full { width: 100%; }
.button:disabled { opacity: .5; cursor: not-allowed; transform: none; }

.metric-row,
.card-grid,
.category-grid,
.how-grid,
.profile-grid,
.dashboard-grid { display: grid; gap: 18px; }
.metric-row { grid-template-columns: repeat(3, 1fr); margin-top: 38px; }
.metric {
  padding: 22px;
  background: rgba(255,255,255,.75);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.metric strong { display: block; font-size: 1.5rem; }
.metric span { color: var(--muted); }
.category-grid { grid-template-columns: repeat(4, 1fr); }
.category-card {
  min-height: 180px;
  padding: 24px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: 0 8px 22px rgba(20, 52, 77, .04);
}
.category-card:hover { border-color: var(--violet); transform: translateY(-2px); }
.category-card .icon { font-size: 1.7rem; }
.category-card h3 { margin: 34px 0 8px; }
.category-card p { margin: 0; color: var(--muted); }

.card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100%;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 28px rgba(20, 52, 77, .05);
}
.card-media {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #d9f1eb, #f8dfca);
  overflow: hidden;
}
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { display: flex; flex: 1; flex-direction: column; padding: 22px; }
.card-topline { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.type-badge,
.status-badge,
.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: fit-content;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 850;
}
.type-badge { color: var(--violet-dark); background: var(--soft); }
.status-badge { color: #7a4a28; background: #fff0e2; }
.verified-badge { color: var(--success); background: #e5f8f1; }
.card h3 { margin-bottom: 10px; }
.card p { margin: 0 0 14px; color: var(--muted); }
.card-meta { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 17px; padding: 0; list-style: none; }
.card-meta li { padding: 5px 9px; border-radius: 8px; background: #f1f6f7; color: #4d6576; font-size: .82rem; }
.card-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.icon-button {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: white;
  color: var(--ink);
  font-size: 1.1rem;
}
.icon-button.is-saved { color: white; background: var(--violet); border-color: var(--violet); }

.person-card .card-body { text-align: center; }
.person-avatar {
  width: 112px;
  height: 112px;
  margin: 0 auto 18px;
  overflow: hidden;
  border: 5px solid white;
  border-radius: 50%;
  background: var(--soft);
  box-shadow: 0 0 0 1px var(--line);
}
.person-avatar img { width: 100%; height: 100%; object-fit: cover; }
.person-card .card-meta { justify-content: center; }
.person-card .card-actions { justify-content: center; }

.how-grid { grid-template-columns: repeat(3, 1fr); }
.how-step { padding: 30px; border: 1px solid rgba(255,255,255,.16); border-radius: var(--radius-lg); }
.how-number { color: var(--mint); font-size: 2.2rem; font-weight: 900; }
.how-step p { color: #d7e4eb; }
.cta-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: center;
  padding: 38px;
  color: var(--ink);
  background: var(--mint);
  border-radius: var(--radius-xl);
}
.cta-panel h2 { margin-bottom: 10px; }
.cta-panel p { margin: 0; max-width: 710px; color: #315b52; }

.page-hero { padding: 64px 0 38px; background: linear-gradient(180deg, #edf7f5, var(--paper)); text-align: center; }
.page-hero h1 { max-width: 920px; margin-bottom: 16px; font-size: clamp(2.7rem, 6vw, 5.2rem); }
.page-hero h1,
.page-hero .lede { margin-left: auto; margin-right: auto; }
.page-hero .hero-actions { justify-content: center; }
.filter-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px auto;
  gap: 10px;
  margin: 24px 0 30px;
}
.results-summary { margin: 0 0 18px; color: var(--muted); font-weight: 700; }

.empty-state {
  padding: 50px 28px;
  text-align: center;
  background: var(--surface);
  border: 1px dashed #aac2c8;
  border-radius: var(--radius-xl);
}
.empty-state .empty-icon { font-size: 2rem; }
.empty-state h2 { margin: 14px 0 8px; font-size: 1.8rem; }
.empty-state p { max-width: 560px; margin: 0 auto 22px; color: var(--muted); }

.profile-grid { grid-template-columns: minmax(0, 1.05fr) minmax(300px, .75fr); align-items: start; }
.panel {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.panel h2 { font-size: 1.7rem; }
.dashboard-grid { grid-template-columns: repeat(2, 1fr); }
.dashboard-tile { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-md); background: #f7fbfa; }
.dashboard-tile strong { display: block; font-size: 1.7rem; }
.profile-summary { text-align: center; }
.profile-summary .person-avatar { width: 132px; height: 132px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 7px; }
.tag { padding: 5px 9px; border-radius: 999px; background: #eef7f5; color: #365b65; font-size: .83rem; }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { color: #3f5667; font-size: .9rem; font-weight: 780; }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: white;
  color: var(--ink);
}
.field textarea { min-height: 120px; resize: vertical; }
.field-help { color: var(--muted); font-size: .82rem; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.notice { padding: 13px 15px; border-radius: 11px; color: #75482b; background: #fff1e5; }
.notice.success { color: #075f51; background: #e7f9f3; }
.notice.danger { color: var(--danger); background: #fff0ee; }

.founder-layout { display: grid; grid-template-columns: .7fr 1.3fr; gap: 52px; align-items: start; }
.founder-photo { position: sticky; top: 112px; overflow: hidden; border-radius: var(--radius-xl); box-shadow: var(--shadow); }
.founder-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.founder-copy p { color: #4d6373; font-size: 1.08rem; }
.founder-quote { margin: 32px 0; padding: 24px; border-left: 5px solid var(--violet); background: var(--soft); border-radius: 0 16px 16px 0; font-size: 1.25rem !important; color: var(--ink) !important; }

.detail-header { padding-right: 34px; }
.detail-header h2 { margin-bottom: 12px; font-size: clamp(2rem, 5vw, 3.2rem); }
.detail-section { padding: 20px 0; border-top: 1px solid var(--line); }
.detail-section h3 { margin-bottom: 10px; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 18px; }

.app-dialog {
  width: min(760px, calc(100% - 28px));
  max-height: calc(100vh - 36px);
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: var(--radius-xl);
  box-shadow: 0 30px 90px rgba(20, 52, 77, .25);
}
.app-dialog::backdrop { background: rgba(20, 52, 77, .58); backdrop-filter: blur(4px); }
.dialog-close {
  position: sticky;
  z-index: 3;
  top: 14px;
  float: right;
  width: 42px;
  height: 42px;
  margin: 14px 14px -56px 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: white;
  font-size: 1.5rem;
}
#dialog-content { padding: 34px; }
.toast {
  position: fixed;
  z-index: 220;
  right: 20px;
  bottom: 20px;
  max-width: min(390px, calc(100% - 40px));
  padding: 13px 17px;
  color: white;
  background: var(--ink);
  border-radius: 12px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: .2s ease;
}
.toast.is-visible { opacity: 1; transform: none; }

.site-footer { padding: 62px 0 22px; color: white; background: var(--ink); }
.footer-grid {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.35fr .55fr .65fr 1.15fr;
  gap: 48px;
}
.footer-grid section:first-child p { max-width: 580px; color: #d7e4eb; }
.footer-brand { color: white !important; font-weight: 950; letter-spacing: .12em; }
.footer-location { color: var(--mint) !important; }
.footer-grid h2 { margin-bottom: 14px; color: var(--mint); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; }
.footer-grid button { display: block; margin: 6px 0; padding: 2px 0; border: 0; color: #e5eef2; background: transparent; text-align: left; }
.footer-grid button:hover { color: var(--mint); }
.footer-contact { min-width: 0; }
.footer-contact a,
.footer-contact address {
  margin: 0 0 14px;
  display: block;
  color: #d7e4eb;
  font-style: normal;
  overflow-wrap: anywhere;
}
.footer-contact a:hover strong { color: var(--mint); }
.footer-contact span,
.footer-contact strong { display: block; }
.footer-contact span { margin-bottom: 2px; color: #9fb6c3; font-size: .78rem; }
.footer-contact strong { color: #eef5f7; font-size: .9rem; font-weight: 650; line-height: 1.45; }
.footer-bottom {
  width: min(var(--max), calc(100% - 40px));
  margin: 44px auto 0;
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: #aabdc8;
  border-top: 1px solid rgba(255,255,255,.13);
  font-size: .86rem;
}

:focus-visible { outline: 3px solid rgba(20, 119, 121, .42); outline-offset: 3px; }

@media (max-width: 1050px) {
  .header-inner { grid-template-columns: auto auto 1fr auto; }
  .menu-button { display: block; }
  .primary-navigation {
    position: fixed;
    inset: 76px 0 auto 0;
    max-height: calc(100vh - 76px);
    overflow: auto;
    padding: 16px 20px 24px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .primary-navigation.is-open { display: flex; }
  .primary-navigation button { width: 100%; padding: 13px; text-align: left; }
  .header-actions { grid-column: 4; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .shell { width: min(100% - 28px, var(--max)); }
  .header-inner { width: calc(100% - 24px); min-height: 68px; grid-template-columns: 1fr auto auto; gap: 8px; }
  .brand-button { width: 122px; height: 61px; }
  .brand-logo { width: 122px; }
  .menu-button { grid-column: 2; }
  .header-actions { grid-column: 3; }
  .language-select { min-width: 58px; padding-left: 8px; padding-right: 22px; }
  .primary-navigation { top: 68px; max-height: calc(100vh - 68px); }
  .section { padding: 56px 0; }
  .hero { padding: 58px 0 48px; }
  .hero h1 { font-size: clamp(2.65rem, 13vw, 4.6rem); }
  .hero .lede { font-size: 1.05rem; }
  .search-panel, .filter-bar { grid-template-columns: 1fr; }
  .search-panel { margin-top: 30px; }
  .search-panel button { width: 100%; }
  .metric-row, .how-grid, .profile-grid, .founder-layout { grid-template-columns: 1fr; }
  .category-grid, .card-grid, .dashboard-grid { grid-template-columns: 1fr; }
  .section-heading { align-items: center; flex-direction: column; }
  .cta-panel { grid-template-columns: 1fr; padding: 28px; }
  .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .founder-photo { position: static; }
  .founder-photo img { aspect-ratio: 5 / 6; object-position: center 42%; }
  #dialog-content { padding: 28px 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px 28px; }
  .footer-grid section:first-child { grid-column: 1 / -1; }
  .footer-contact { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; }
}

@media (max-width: 420px) {
  .brand-button, .brand-logo { width: 112px; }
  .language-select { min-width: 52px; }
  .page-hero { padding-top: 46px; }
  .page-hero h1 { font-size: 2.6rem; }
  .card-actions .button { flex: 1; }
}

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