@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/inter-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/inter-500.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/inter-600.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #16181d;
  --muted: #525a68;
  --accent: #2c3eaa;
  --line: rgba(20, 22, 28, 0.08);
  --card: #ffffff;
  --soft: #f2f3f6;
  --radius: 28px;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: #e7e9ee;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: linear-gradient(180deg, #fcfcfd 0%, #f4f5f7 36%, #e7e9ee 100%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: radial-gradient(rgba(22, 24, 29, 0.085) 1px, transparent 1.2px);
  background-size: 20px 20px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.65) 24%, rgba(0, 0, 0, 0.2) 50%, transparent 74%);
  mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.65) 24%, rgba(0, 0, 0, 0.2) 50%, transparent 74%);
}

::selection {
  background: #d9def8;
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.stage {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding:
    max(20px, env(safe-area-inset-top))
    max(16px, env(safe-area-inset-right))
    max(24px, env(safe-area-inset-bottom))
    max(16px, env(safe-area-inset-left));
}

.card {
  width: min(100%, 420px);
  margin-block: auto;
  background: var(--card);
  border: 1px solid rgba(20, 22, 28, 0.06);
  border-radius: var(--radius);
  box-shadow:
    0 1px 2px rgba(20, 22, 28, 0.04),
    0 16px 40px rgba(20, 22, 28, 0.07);
  overflow: hidden;
  animation: rise 700ms cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hero {
  position: relative;
  text-align: center;
  padding: 32px 24px 0;
}

.hero::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 196px;
  pointer-events: none;
  background-image: radial-gradient(rgba(22, 24, 29, 0.09) 1px, transparent 1.2px);
  background-size: 18px 18px;
  background-position: center 10px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.75) 42%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.75) 42%, transparent 100%);
}

.avatar,
.hero h1,
.role,
.where {
  position: relative;
  z-index: 1;
}

.avatar {
  width: 112px;
  height: 112px;
  margin: 0 auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(120% 100% at 32% 18%, #ffffff 0%, rgba(255, 255, 255, 0) 48%),
    linear-gradient(165deg, #eef1f6 0%, #d5dbe6 100%);
  box-shadow:
    0 0 0 4px #ffffff,
    0 0 0 5px rgba(20, 22, 28, 0.06),
    0 10px 24px rgba(20, 22, 28, 0.1);
}

.avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.initials {
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1;
  color: #1a2333;
}

h1 {
  margin: 18px 0 0;
  font-size: clamp(1.65rem, 4.4vw, 1.875rem);
  line-height: 1.12;
  letter-spacing: -0.038em;
  font-weight: 600;
}

.role {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.014em;
}

.where {
  margin: 10px 0 0;
  display: flex;
  justify-content: center;
}

.where span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: -0.011em;
}

.where svg {
  flex: none;
  display: block;
}

.actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 20px 0;
}

.icon-row {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 6px;
}

.icon-btn {
  width: 76px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: -0.011em;
  line-height: 1.2;
  touch-action: manipulation;
}

.icon-bubble {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: var(--soft);
  border: 1px solid rgba(20, 22, 28, 0.05);
  color: #1a1d24;
  transition: background 160ms ease, transform 160ms ease, border-color 160ms ease;
}

.icon-btn:hover .icon-bubble {
  background: #e7e9ee;
  border-color: rgba(20, 22, 28, 0.08);
  transform: translateY(-1px);
}

.icon-btn:active .icon-bubble {
  transform: translateY(0) scale(0.98);
}

.icon-btn svg,
.text-btn svg {
  display: block;
}

.text-btn {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid rgba(20, 22, 28, 0.12);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.016em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.text-btn:hover {
  background: #f6f7f9;
}

.text-btn:active {
  transform: scale(0.985);
}

.text-btn.primary {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.text-btn.primary:hover {
  background: #000;
  border-color: #000;
}

.ventures {
  margin: 20px 20px 0;
  padding-top: 18px;
  border-top: 1px solid rgba(20, 22, 28, 0.07);
}

.ventures h2 {
  margin: 0;
  padding: 0 2px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: -0.011em;
  color: #3a4150;
}

.venture-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.venture {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 16px;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fbfbfc;
  color: inherit;
  text-decoration: none;
  touch-action: manipulation;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.venture:hover {
  background: #fff;
  border-color: rgba(20, 22, 28, 0.16);
  transform: translateY(-1px);
}

.venture:active {
  transform: translateY(0) scale(0.995);
}

.mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
}

.tint-mist .mark { background: #e7edf6; color: #243049; }
.tint-sand .mark { background: #f3ece4; color: #3d342b; }
.tint-sage .mark { background: #e4f0ec; color: #1e3b34; }
.tint-lilac .mark { background: #eeeaf5; color: #332844; }

.venture-name {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.venture-desc {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.35;
}

.arrow {
  display: block;
  color: #7c8494;
  transition: transform 180ms ease, color 180ms ease;
}

.venture:hover .arrow,
.venture:focus-visible .arrow {
  color: var(--accent);
  transform: translate(2px, -2px);
}

.empty {
  margin: 12px 2px 0;
  color: var(--muted);
  font-size: 0.875rem;
}

.foot {
  margin: 16px 20px 18px;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.foot a {
  color: #4e5664;
  text-decoration: none;
}

.foot a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.toast {
  position: fixed;
  z-index: 5;
  left: 50%;
  bottom: max(20px, env(safe-area-inset-bottom));
  transform: translate(-50%, 8px);
  max-width: calc(100% - 32px);
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: -0.011em;
  box-shadow: 0 10px 30px rgba(20, 22, 28, 0.22);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.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;
}

.missing {
  padding: 36px 28px 28px;
  text-align: center;
}

.missing h1,
.missing p {
  text-wrap: balance;
}

.missing h1 {
  font-size: 1.5rem;
}

.missing p {
  margin: 8px 0 22px;
  color: var(--muted);
}

@media (max-width: 420px) {
  .stage {
    padding-right: max(12px, env(safe-area-inset-right));
    padding-left: max(12px, env(safe-area-inset-left));
  }

  .card {
    border-radius: 24px;
    box-shadow:
      0 1px 2px rgba(20, 22, 28, 0.04),
      0 10px 28px rgba(20, 22, 28, 0.06);
  }

  .icon-btn {
    width: 72px;
  }

  .icon-row {
    gap: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .card,
  .venture,
  .icon-bubble,
  .text-btn,
  .arrow,
  .toast {
    animation: none;
    transition: none;
  }
}

@media (forced-colors: active) {
  .avatar,
  .icon-bubble,
  .text-btn,
  .venture {
    border: 1px solid ButtonText;
  }

  .text-btn.primary {
    background: ButtonText;
    color: ButtonFace;
    forced-color-adjust: none;
  }
}

@media print {
  body {
    background: #fff;
  }

  body::before,
  .hero::before {
    display: none;
  }

  .stage {
    padding: 0;
    min-height: 0;
  }

  .card {
    box-shadow: none;
    border: 0;
    width: 100%;
    animation: none;
  }
}
