:root {
  --bg: #efe7da;
  --bg-deep: #e4d8c6;
  --surface: rgba(255, 252, 247, 0.86);
  --surface-strong: #fffaf3;
  --surface-muted: #efe6d7;
  --ink: #1d2826;
  --ink-soft: #46534f;
  --muted: #6f7971;
  --line: rgba(39, 60, 54, 0.14);
  --accent: #274d45;
  --accent-strong: #17332d;
  --accent-soft: #dce6e0;
  --accent-warm: #b98449;
  --shadow: 0 26px 80px rgba(36, 48, 43, 0.1);
  --shadow-soft: 0 14px 34px rgba(36, 48, 43, 0.06);
  --radius-xl: 34px;
  --radius-lg: 28px;
  --radius-md: 22px;
  --radius-sm: 14px;
  --max-width: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Manrope', sans-serif;
  color: var(--ink-soft);
  background:
    radial-gradient(circle at 12% 8%, rgba(185, 132, 73, 0.18), transparent 26%),
    radial-gradient(circle at 88% 12%, rgba(39, 77, 69, 0.1), transparent 24%),
    linear-gradient(180deg, #f7f1e7 0%, var(--bg) 44%, var(--bg-deep) 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: linear-gradient(rgba(39, 77, 69, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(39, 77, 69, 0.025) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.4), transparent 70%);
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
  padding: 28px 0 60px;
}

.site-header,
.hero,
.jump-card,
.summary-card,
.profile-block,
.profile-panel,
.focus-card,
.site-footer {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-radius: 22px;
  padding: 18px 22px;
  position: sticky;
  top: 18px;
  z-index: 20;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark,
.portrait-initials {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: #fff7eb;
  font-weight: 800;
  background: linear-gradient(145deg, var(--accent), #4d6e66);
}

.brand-lockup h1,
.hero h2,
.summary-card h3,
.profile-block h3,
.section-heading h2,
.profile-panel h3,
.focus-card h3,
.site-footer h2 {
  margin: 0;
  color: var(--ink);
  font-family: 'Fraunces', serif;
  font-weight: 600;
}

.brand-lockup h1 {
  font-size: 1.12rem;
}

.eyebrow,
.card-tag,
.panel-label,
.jump-tag {
  margin: 0 0 6px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.74rem;
  font-weight: 800;
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.top-nav a,
.primary-btn,
.secondary-btn,
.text-link,
.jump-card,
.footer-links a {
  text-decoration: none;
}

.top-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--ink-soft);
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.top-nav a:hover,
.top-nav a:focus-visible,
.jump-card:hover,
.jump-card:focus-visible,
.footer-links a:hover,
.footer-links a:focus-visible {
  background: rgba(39, 77, 69, 0.08);
  color: var(--ink);
  transform: translateY(-1px);
}

.hero {
  margin-top: 26px;
  border-radius: var(--radius-lg);
  padding: 46px;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(290px, 0.95fr);
  gap: 30px;
}

.hero h2 {
  font-size: clamp(2.5rem, 4vw, 4.9rem);
  line-height: 1.02;
  max-width: 11ch;
}

.hero-text,
.hero-note,
.summary-card p,
.lead-copy,
.info-card p,
.info-card li,
.timeline p,
.profile-panel p,
.focus-card p,
.career-list p,
.project-grid p {
  line-height: 1.74;
}

.hero-text {
  max-width: 64ch;
  margin: 22px 0 0;
  font-size: 1.04rem;
}

.hero-actions,
.profile-actions,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions {
  margin-top: 28px;
}

.primary-btn,
.secondary-btn,
.footer-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

.primary-btn {
  background: var(--accent);
  color: #fffaf2;
}

.secondary-btn,
.footer-links a {
  background: rgba(39, 77, 69, 0.08);
  color: var(--accent);
}

.primary-btn:hover,
.secondary-btn:hover,
.text-link:hover {
  transform: translateY(-1px);
}

.hero-panel {
  border-radius: 24px;
  padding: 22px;
  background: linear-gradient(180deg, rgba(255, 250, 242, 0.95), rgba(241, 233, 219, 0.95));
  border: 1px solid rgba(39, 77, 69, 0.12);
}

.hero-stats {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.hero-stats article {
  padding-top: 16px;
  border-top: 1px solid rgba(39, 77, 69, 0.1);
}

.hero-stats article:first-child {
  padding-top: 0;
  border-top: 0;
}

.hero-stats strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-family: 'Fraunces', serif;
  font-size: 2rem;
}

.leadership-strip {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.jump-card {
  display: grid;
  gap: 4px;
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-soft);
}

.jump-card strong {
  color: var(--ink);
  font-size: 1.08rem;
}

.overview-grid,
.focus-grid,
.project-grid,
.stack-grid {
  display: grid;
  gap: 18px;
}

.overview-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  margin-top: 30px;
}

.summary-card,
.focus-card {
  border-radius: var(--radius-md);
  padding: 30px;
}

.summary-role {
  margin: 8px 0 12px;
  color: var(--accent);
  font-weight: 700;
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0 10px;
}

.metric-strip div {
  border-radius: 16px;
  background: rgba(39, 77, 69, 0.06);
  padding: 14px;
}

.metric-strip strong {
  display: block;
  color: var(--ink);
  font-family: 'Fraunces', serif;
  font-size: 1.4rem;
}

.metric-strip span {
  color: var(--muted);
  font-size: 0.9rem;
}

.inline-link {
  display: inline-block;
  margin-top: 8px;
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
}

.founder-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: flex-start;
  min-height: 100%;
}

.founder-summary {
  margin: 0;
  color: var(--ink-soft);
}

.founder-contact-block {
  display: grid;
  gap: 6px;
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px solid rgba(39, 77, 69, 0.1);
}

.contact-label {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.card-action {
  margin-top: auto;
  align-self: flex-start;
}

.share-panel {
  margin-top: 34px;
}

.share-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.share-grid article {
  border-radius: 18px;
  background: rgba(39, 77, 69, 0.045);
  padding: 18px;
}

.inline-accent {
  color: var(--accent);
  font-weight: 800;
}

.founders-section,
.full-profile-section {
  margin-top: 44px;
}

.founders-section {
  display: grid;
  gap: 26px;
}

.profile-block {
  border-radius: var(--radius-xl);
  padding: 34px;
}

.alternate-block {
  background: rgba(252, 248, 241, 0.9);
}

.profile-header,
.profile-identity,
.contact-list li,
.career-list header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.profile-identity {
  justify-content: flex-start;
}

.portrait {
  flex: 0 0 auto;
  width: 92px;
  height: 92px;
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(145deg, #e3d8ca, #ccbea7);
  border: 1px solid rgba(39, 77, 69, 0.14);
}

.portrait-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portrait-initials {
  width: 92px;
  height: 92px;
  border-radius: 28px;
  font-size: 1.42rem;
}

.profile-layout,
.full-profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(280px, 0.92fr);
  gap: 24px;
  margin-top: 26px;
}

.lead-copy {
  margin: 0 0 22px;
  font-size: 1.06rem;
  color: var(--ink-soft);
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.info-card,
.profile-panel {
  border-radius: var(--radius-md);
  background: var(--surface-strong);
  border: 1px solid rgba(39, 77, 69, 0.12);
  padding: 24px;
  box-shadow: var(--shadow-soft);
}

.wide-card {
  margin-top: 18px;
}

.compact-card + .compact-card,
.credentials-panel + .credentials-panel {
  margin-top: 16px;
}

.full-profile-main .profile-panel + .profile-panel {
  margin-top: 20px;
}

.info-card h4,
.profile-panel h3,
.stack-grid h4,
.project-grid h4 {
  margin: 0 0 14px;
  color: var(--ink);
}

.info-card ul,
.profile-panel ul {
  margin: 0;
  padding-left: 18px;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip-list span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(39, 77, 69, 0.08);
  color: var(--accent);
  font-size: 0.92rem;
  font-weight: 700;
}

.muted-chips span {
  background: var(--surface-muted);
  color: var(--ink-soft);
}

.timeline,
.career-list {
  display: grid;
  gap: 16px;
}

.timeline article,
.career-list article {
  padding-top: 16px;
  border-top: 1px solid rgba(39, 77, 69, 0.12);
}

.timeline article:first-child,
.career-list article:first-child {
  padding-top: 0;
  border-top: 0;
}

.timeline div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}

.timeline strong,
.career-list strong,
.project-grid h4,
.stack-grid h4 {
  color: var(--ink);
}

.timeline span,
.contact-list span,
.career-list span {
  color: var(--muted);
  font-size: 0.92rem;
}

.contact-list {
  list-style: none;
  padding: 0;
}

.contact-list li {
  padding: 10px 0;
  border-top: 1px solid rgba(39, 77, 69, 0.1);
}

.contact-list li:first-child {
  padding-top: 0;
  border-top: 0;
}

.contact-list a,
.text-link {
  color: var(--accent);
  font-weight: 700;
}

.section-heading {
  margin-bottom: 20px;
}

.full-profile-section .section-heading {
  margin-top: 52px;
}

.compact-section {
  margin-top: 34px;
}

/* ── Cross-profile founder navigation ───────────────────── */
.founder-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 32px;
  padding: 18px 24px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
}

.founder-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(39, 77, 69, 0.08);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background-color 0.25s ease, transform 0.25s ease;
}

.founder-nav-link:hover {
  background: rgba(39, 77, 69, 0.15);
  transform: translateY(-1px);
}

.founder-nav-link.primary-nav {
  background: var(--accent);
  color: #fffaf2;
}

.founder-nav-link.primary-nav:hover {
  background: var(--accent-strong);
}

.founder-nav-center {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
  text-align: center;
}

.profile-hero {
  align-items: start;
  grid-template-columns: minmax(0, 1.9fr) minmax(240px, 0.8fr);
}

.profile-hero h2 {
  max-width: none;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

.back-link::before {
  content: "<-";
}

.hero-subtitle {
  margin: 10px 0 0;
  color: var(--accent);
  font-weight: 700;
  font-size: 1.02rem;
}

.profile-aside {
  display: grid;
  align-content: start;
  gap: 16px;
  justify-items: center;
  text-align: center;
  position: sticky;
  top: 110px;
}

.large-portrait {
  width: 168px;
  height: 168px;
  border-radius: 34px;
}

.initials-aside .large-portrait {
  display: grid;
  place-items: center;
  font-size: 2.4rem;
}

.share-note {
  margin: 0;
}

.feature-panel {
  position: relative;
  overflow: hidden;
}

.feature-panel::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(185, 132, 73, 0.14), transparent 72%);
  pointer-events: none;
}

.stack-grid,
.project-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stack-grid article,
.project-grid article {
  border-radius: 18px;
  background: rgba(39, 77, 69, 0.045);
  padding: 18px;
}

.focus-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 0;
}

.site-footer {
  margin-top: 48px;
  padding: 28px 30px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.professional-footer {
  display: grid;
  gap: 24px;
}

.footer-intro {
  max-width: 72ch;
}

.footer-intro p:last-child {
  margin-bottom: 0;
  line-height: 1.72;
}

.footer-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.footer-card {
  border-radius: 18px;
  background: rgba(39, 77, 69, 0.045);
  border: 1px solid rgba(39, 77, 69, 0.08);
  padding: 20px;
}

.footer-card strong {
  display: block;
  margin: 2px 0 10px;
  color: var(--ink);
  font-size: 1rem;
}

.footer-card p {
  margin: 0 0 14px;
  line-height: 1.7;
}

.footer-card .footer-links {
  gap: 10px;
}

/* ── Project portfolio ───────────────────────────────────── */
.projects-full-section {
  margin-top: 34px;
}

.projects-full-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.projects-full-header h3 {
  margin: 6px 0 0;
  color: var(--ink);
  font-family: 'Fraunces', serif;
  font-weight: 600;
}

.project-count-badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(39, 77, 69, 0.08);
  color: var(--accent);
  font-weight: 800;
  font-size: 0.88rem;
  white-space: nowrap;
}

.projects-full-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.project-card {
  border-radius: var(--radius-md);
  background: var(--surface-strong);
  border: 1px solid rgba(39, 77, 69, 0.12);
  padding: 26px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-warm));
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.project-header-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.project-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(39, 77, 69, 0.08);
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  width: fit-content;
  margin: 0;
}

.project-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(185, 132, 73, 0.12);
  color: var(--accent-warm);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.project-status-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-warm);
  flex: 0 0 auto;
}

.project-card h4 {
  margin: 0;
  color: var(--ink);
  font-size: 1.05rem;
}

.project-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
}

.project-desc {
  margin: 0;
  line-height: 1.74;
  flex: 1;
  min-height: 0;
}

.project-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(39, 77, 69, 0.1);
}

.project-chips span {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(39, 77, 69, 0.07);
  color: var(--ink-soft);
  font-size: 0.79rem;
  font-weight: 600;
}

/* ── Kinsar home nav link ────────────────────────────────── */
.nav-home-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 8px 8px;
  border-radius: 999px;
  background: var(--accent);
  color: #fffaf2 !important;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.25s ease, transform 0.25s ease;
}

.nav-home-link:hover {
  background: var(--accent-strong);
  transform: translateY(-1px);
}

.nav-home-mark {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.18);
  display: grid;
  place-items: center;
  font-size: 0.82rem;
  font-weight: 800;
  flex: 0 0 auto;
}

.nav-home-mark.small {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  font-size: 0.74rem;
}

.founder-nav-link.home-nav {
  gap: 8px;
}

@media (max-width: 1080px) {
  .hero,
  .profile-layout,
  .full-profile-grid,
  .focus-grid {
    grid-template-columns: 1fr;
  }

  .overview-grid,
  .detail-grid,
  .leadership-strip,
  .stack-grid,
  .project-grid,
  .share-grid,
  .footer-card-grid,
  .projects-full-grid {
    grid-template-columns: 1fr;
  }

  .project-featured {
    flex-direction: column;
    gap: 20px;
  }

  .project-featured-aside {
    flex: none;
  }

  .site-header,
  .profile-header,
  .site-footer,
  .career-list header {
    align-items: flex-start;
    flex-direction: column;
  }

  .timeline div,
  .contact-list li {
    align-items: flex-start;
    flex-direction: column;
  }

  .profile-aside {
    position: static;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(calc(100% - 24px), var(--max-width));
    padding-top: 12px;
  }

  .site-header,
  .hero,
  .profile-block,
  .profile-panel,
  .summary-card,
  .focus-card,
  .jump-card,
  .site-footer,
  .info-card {
    padding: 20px;
  }

  .hero h2 {
    max-width: none;
    font-size: 2.28rem;
  }

  .brand-mark,
  .portrait,
  .portrait-initials {
    width: 74px;
    height: 74px;
    border-radius: 22px;
  }

  .top-nav,
  .hero-actions,
  .profile-actions,
  .footer-links {
    width: 100%;
  }

  .top-nav a,
  .primary-btn,
  .secondary-btn,
  .footer-links a {
    width: 100%;
    justify-content: center;
  }

  .metric-strip {
    grid-template-columns: 1fr;
  }

  .large-portrait {
    width: 124px;
    height: 124px;
    border-radius: 28px;
  }
}