/* ============================================================
   V14 — REFINED (Darker Purple, Full Portfolio)
   Light grey background, darker purple, Inter font,
   V5 layout + V10 portfolio/team structure.
   ============================================================ */

/* --- RESET --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #d1d1d1;
  color: #1a1a1a;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

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

ul, ol { list-style: none; }

button, input {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
  background: none;
  color: inherit;
}

button { cursor: pointer; }

/* --- COLOR VARIABLES --- */
:root {
  --bg: #d1d1d1;
  --bg-surface: #e0e0e0;
  --bg-elevated: #ffffff;
  --purple-primary: #6B21A8;
  --purple-secondary: #581C87;
  --text: #1a1a1a;
  --text-muted: #555555;
  --text-dim: #777777;
  --border: #b8b8b8;
}

/* --- CONTAINER --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav__brand img {
  height: 32px;
  width: auto;
}

.nav__brand-name {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}

.nav__center {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}

.nav__link:hover,
.nav__link--active {
  color: var(--purple-secondary);
}

.nav__link--cta {
  color: var(--purple-primary);
}

.nav__link--cta:hover {
  color: var(--purple-secondary);
}

.nav__socials {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav__social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: all 0.2s;
}

.nav__social:hover {
  border-color: var(--purple-primary);
  color: var(--purple-primary);
}

.nav__social svg {
  width: 16px;
  height: 16px;
}

/* Mobile nav toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  cursor: pointer;
}

.nav__toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: all 0.3s;
}

.nav__toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav__toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav__toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Nav spacer */
.nav-spacer {
  height: 72px;
}

/* Mobile overlay */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.nav-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.nav-overlay__close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 2rem;
  color: var(--text);
  background: none;
  border: none;
  cursor: pointer;
}

.nav-overlay__link {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
  transition: color 0.2s;
}

.nav-overlay__link:hover {
  color: var(--purple-primary);
}

@media (max-width: 900px) {
  .nav__center,
  .nav__socials {
    display: none;
  }

  .nav__toggle {
    display: flex;
  }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding: 6rem 0 4rem;
}

.hero .container {
  max-width: 900px;
}

.hero__tagline {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.hero__tagline::before {
  content: '';
  flex-shrink: 0;
  width: 40px;
  height: 2px;
  background: var(--purple-primary);
  margin-top: 0.85rem;
}

.hero__heading {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--purple-primary);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section {
  padding: 4rem 0;
}

.section--surface {
  background: var(--bg-surface);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--purple-secondary);
  margin-bottom: 1.5rem;
}

.section-label::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--purple-secondary);
  border-radius: 2px;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about {
  display: flex;
  gap: 4rem;
}

.about__text {
  font-size: 1.25rem;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 800px;
}

/* ============================================================
   LOGO STRIP
   ============================================================ */
.logo-strip {
  padding: 1.5rem 0 2rem;
}

.logo-strip__row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
}

.logo-strip__logo {
  height: 64px;
  width: auto;
  object-fit: contain;
  opacity: 0.55;
  transition: opacity 0.2s;
}

.logo-strip__logo:hover {
  opacity: 1;
}

@media (max-width: 600px) {
  .logo-strip__row {
    gap: 2rem;
  }

  .logo-strip__logo {
    height: 44px;
  }
}

/* ============================================================
   INVEST (Where We Invest)
   ============================================================ */
.invest-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.invest-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  min-height: 280px;
}

.invest-card__icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1.5rem;
}

.invest-card__icon svg {
  width: 100%;
  height: 100%;
  stroke: var(--purple-primary);
}

.invest-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--purple-primary);
  margin-bottom: 0.75rem;
}

.invest-card p {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-muted);
}

@media (max-width: 1000px) {
  .invest-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .invest-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   PORTFOLIO (Homepage - V10 style rows)
   ============================================================ */
.portfolio-intro {
  display: flex;
  gap: 4rem;
  margin-bottom: 2rem;
}

.portfolio-intro__text {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 600px;
}

.portfolio-list {
  display: flex;
  flex-direction: column;
}

.portfolio-row {
  display: grid;
  grid-template-columns: 56px 180px 1fr auto;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
  text-decoration: none;
}

.portfolio-row:hover {
  background: var(--bg-surface);
}

.portfolio-row__logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  background: #fff;
  border-radius: 8px;
  padding: 4px;
}

.portfolio-row__logo-placeholder {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
}

.portfolio-row__name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.portfolio-row__tagline {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.portfolio-row__category {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--purple-secondary);
  padding: 0.25rem 0.75rem;
  background: rgba(182, 127, 245, 0.1);
  border-radius: 4px;
}

@media (max-width: 768px) {
  .portfolio-row {
    grid-template-columns: 48px 1fr;
    gap: 1rem;
  }

  .portfolio-row__tagline {
    grid-column: 2;
    margin-top: -0.5rem;
  }

  .portfolio-row__category {
    grid-column: 2;
  }
}

/* ============================================================
   PORTFOLIO PAGE
   ============================================================ */
.page-header {
  padding: 4rem 0 2rem;
  border-bottom: 1px solid var(--border);
}

.page-header__title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--purple-primary);
}

.portfolio-page {
  padding: 3rem 0;
}

.portfolio-page__intro {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 700px;
  margin-bottom: 2rem;
}

.portfolio-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.portfolio-filter {
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

.portfolio-filter:hover {
  border-color: var(--purple-primary);
  color: var(--purple-primary);
}

.portfolio-filter.active {
  background: var(--purple-primary);
  border-color: var(--purple-primary);
  color: #fff;
}

.portfolio-table {
  display: flex;
  flex-direction: column;
}

/* ============================================================
   TEAM PAGE (V10 style rows)
   ============================================================ */
.team {
  padding: 3rem 0;
}

.team__intro {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 700px;
  margin-bottom: 2rem;
}

.team__list {
  display: flex;
  flex-direction: column;
}

.team-row {
  display: grid;
  grid-template-columns: 80px 200px 200px 1fr;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}

.team-row__photo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
}

.team-row__name {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
}

.team-row__role {
  font-size: 0.875rem;
  color: var(--purple-secondary);
}

.team-row__links {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
}

.team-row__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: all 0.2s;
}

.team-row__link:hover {
  border-color: var(--purple-primary);
  color: var(--purple-primary);
}

.team-row__link svg {
  width: 16px;
  height: 16px;
}

@media (max-width: 768px) {
  .team-row {
    grid-template-columns: 64px 1fr auto;
    gap: 1rem;
  }

  .team-row__role {
    grid-column: 2;
    margin-top: -0.5rem;
  }
}

/* ============================================================
   WRITING (Article cards - V5 style)
   ============================================================ */
.writing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.article-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.2s;
  text-decoration: none;
}

.article-card:hover {
  border-color: var(--purple-primary);
}

.article-card__image {
  display: none;
}

.article-card__content {
  padding: 2rem;
  min-height: 220px;
  display: flex;
  flex-direction: column;
}

.article-card__title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.article-card__summary {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.article-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.article-card__date {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.article-card__read-more {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--purple-primary);
}

@media (max-width: 768px) {
  .writing-grid {
    grid-template-columns: 1fr;
  }
}

/* Load more button */
.load-more {
  text-align: center;
  margin-top: 2rem;
}

.load-more__btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--purple-primary);
  border: 1px solid var(--purple-primary);
  border-radius: 4px;
  transition: all 0.2s;
}

.load-more__btn:hover {
  background: var(--purple-primary);
  color: #fff;
}

/* ============================================================
   WRITING PAGE
   ============================================================ */
.writing-page {
  padding: 3rem 0;
}

.newsletter {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem 2rem;
  margin-bottom: 2rem;
  text-align: center;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.newsletter h2 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--purple-primary);
  margin-bottom: 0.5rem;
}

.newsletter p {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.newsletter__form {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
}

.newsletter__input {
  flex: 1;
  max-width: 280px;
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
}

.newsletter__input::placeholder {
  color: var(--text-dim);
}

.newsletter__btn {
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  background: var(--purple-primary);
  color: #fff;
  border-radius: 4px;
  transition: background 0.2s;
}

.newsletter__btn:hover {
  background: var(--purple-secondary);
}

.newsletter__success {
  display: none;
  color: var(--purple-secondary);
  font-size: 0.9375rem;
}

.newsletter__error {
  display: none;
  color: #b91c1c;
  font-size: 0.875rem;
  margin-top: 0.75rem;
}

.newsletter__honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
}

.newsletter__btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.writing-list__label {
  margin-bottom: 1.5rem;
}

/* ============================================================
   ARTICLE PAGE
   ============================================================ */
.article-page {
  padding: 3rem 0;
}

.article-page .container {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2.5rem 3rem;
}

.article-page__back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--purple-primary);
  margin-bottom: 2rem;
  transition: color 0.2s;
}

.article-page__back:hover {
  color: var(--purple-secondary);
}

.article-page__title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--purple-primary);
  line-height: 1.2;
  margin-bottom: 1rem;
  max-width: 720px;
}

.article-page__meta {
  font-size: 0.875rem;
  color: var(--text-dim);
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.article-page__x-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: all 0.2s;
  vertical-align: middle;
  margin-left: 0.35rem;
}

.article-page__x-link:hover {
  border-color: var(--purple-primary);
  color: var(--purple-primary);
}

.article-page__x-link svg {
  width: 12px;
  height: 12px;
}

.article-page__body {
  max-width: 720px;
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--text);
}

.article-page__body h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.article-page__body h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.article-page__body p {
  margin-bottom: 1.25rem;
}

.article-page__body a {
  color: var(--purple-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.article-page__body a:hover {
  color: var(--purple-secondary);
}

.article-page__body ul,
.article-page__body ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
  list-style: disc;
}

.article-page__body ol {
  list-style: decimal;
}

.article-page__body li {
  margin-bottom: 0.5rem;
}

.article-page__body blockquote {
  border-left: 3px solid var(--purple-primary);
  padding-left: 1.5rem;
  margin: 1.5rem 0;
  color: var(--text-muted);
  font-style: italic;
}

.article-page__body img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1.5rem auto;
}

.article-page__body strong {
  font-weight: 600;
}

.article-page__body em {
  font-style: italic;
}

.article-page__body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9375rem;
}

.article-page__body th,
.article-page__body td {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  text-align: left;
}

.article-page__body th {
  background: var(--bg-surface);
  font-weight: 600;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
}

.footer__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 3rem;
}

.footer__talk-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin-bottom: 0.5rem;
}

.footer__email {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--purple-primary);
  transition: color 0.2s;
}

.footer__email:hover {
  color: var(--purple-secondary);
}

.footer__socials {
  display: flex;
  gap: 1rem;
}

.footer__social-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer__social-link:hover {
  color: var(--purple-primary);
}

.footer__social-link svg {
  width: 16px;
  height: 16px;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.footer__bottom-section h4 {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin-bottom: 0.5rem;
}

.footer__bottom-section a {
  color: var(--text);
  transition: color 0.2s;
}

.footer__bottom-section a:hover {
  color: var(--purple-primary);
}

.footer__bottom-section p {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.footer__logo {
  text-align: center;
  margin-top: 3rem;
}

.footer__logo img {
  height: 48px;
  width: auto;
  margin: 0 auto;
  opacity: 0.5;
}

@media (max-width: 768px) {
  .footer__top {
    flex-direction: column;
    gap: 2rem;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 1.5rem;
  }
}
