@font-face {
  font-family: 'Inter';
  src: url('./assets/fonts/InterVariable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'DM Serif Display';
  src: url('./assets/fonts/DMSerifDisplay-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --text: #1c2440;
  --muted: #5c6482;
  --primary: #4b5cff;
  --primary-dark: #3442cc;
  --border: #dfe3f5;
  --shadow: 0 10px 30px rgba(44, 64, 140, 0.1);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

.skip-to-content {
  position: absolute;
  top: -100%;
  left: 0;
  z-index: 10200;
  padding: 1rem 2rem;
  background: var(--primary);
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 8px 0;
  outline: 3px solid var(--primary-dark);
  outline-offset: -3px;
  transition: top 0.15s ease;
}

.skip-to-content:focus {
  top: 0;
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

.sticky-nav-wrapper {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #111a45;
  padding: 1.25rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.hero {
  background: linear-gradient(135deg, #111a45, #253581);
  color: #fff;
  padding: 4rem 1.25rem 4rem;
}

.top-nav {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  gap: 1rem;
}

.nav-links a {
  color: #d7defe;
  text-decoration: none;
  font-size: 0.95rem;
}

.nav-links a:hover,
.nav-links a:focus {
  color: #fff;
}

.nav-links a.active {
  color: #fff;
  border-bottom: 2px solid var(--primary);
  padding-bottom: 2px;
}

.nav-links a.active:hover,
.nav-links a.active:focus {
  color: #fff;
}

.hero-content {
  max-width: 1280px;
  margin: 0 auto;
  scroll-margin-top: 70px;
}

.eyebrow {
  color: #bdc8ff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  margin-bottom: 0.25rem;
}

h1 {
  font-size: clamp(2rem, 6vw, 3.4rem);
  line-height: 1.1;
  max-width: 780px;
  margin: 0;
}

h1, h2 {
  font-family: 'DM Serif Display', Georgia, 'Times New Roman', serif;
  font-weight: 400;
}

.subtitle {
  font-size: 1.15rem;
  max-width: 680px;
  color: #dfe5ff;
  margin: 1rem 0 1.75rem;
}

.cta {
  display: inline-block;
  background: #fff;
  color: #1c275f;
  font-weight: 600;
  text-decoration: none;
  padding: 0.8rem 1.1rem;
  border-radius: 0.65rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 28px;
}

.btn-primary {
  display: inline-block;
  background-color: var(--primary, #4b5cff);
  color: #ffffff;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  padding: 14px 32px;
  border-radius: 6px;
  border: 2px solid transparent;
  transition: background-color 0.15s ease;
  cursor: pointer;
  text-align: center;
}

.btn-primary:hover {
  background-color: #3a4ae6;
}

.btn-primary:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--primary, #4b5cff);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  padding: 14px 32px;
  border: 2px solid var(--primary, #4b5cff);
  border-radius: 6px;
  transition: background-color 0.15s ease;
  cursor: pointer;
  text-align: center;
}

.btn-secondary:hover {
  background-color: rgba(75, 92, 255, 0.1);
}

.btn-secondary:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

main {
  max-width: 1280px;
  margin: -1.7rem auto 0;
  padding: 0 1.25rem 2rem;
}

.section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.95rem;
  box-shadow: var(--shadow);
  margin: 1rem 0;
  padding: 1.5rem;
  scroll-margin-top: 70px;
}

.section h2 {
  margin-top: 0;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.card {
  background: #f8f9ff;
  border: 1px solid #e7eafe;
  border-radius: 0.85rem;
  padding: 1rem;
}

.card h3 {
  margin-top: 0;
}

.portfolio > p {
  margin-top: 0.35rem;
  color: var(--muted);
}

.metrics-bar {
  display: flex;
  justify-content: center;
  gap: 2rem;
  background: #eef1ff;
  border-radius: 8px;
  padding: 1.5rem 1rem;
  margin: 1rem 0 1.5rem;
}

.metric {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 120px;
}

.metric-value {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
}

.metric-label {
  font-size: 0.8rem;
  color: #4a5570;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.25rem;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1rem 0 1.2rem;
}

.tag-cloud button {
  border: 1px solid #ccd4fc;
  background: #eef1ff;
  color: #2c3a85;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.tag-cloud button.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.portfolio-card {
  position: relative;
  border: 1px solid #e4e8f9;
  background: #f9faff;
  border-radius: 0.85rem;
  padding: 1rem;
  display: flex;
  flex-direction: column;
}

.portfolio-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  margin: 0 auto 0.75rem;
  border-radius: 0.65rem;
  border: 1px solid #e0e5fb;
}

.portfolio-card h3 {
  margin-bottom: 0.15rem;
}

.company-url {
  margin: 0 0 0.2rem;
  font-size: 0.85rem;
  color: #3e486f;
}

.company-url a {
  color: #3147d8;
  font-weight: 600;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.company-url a:hover {
  text-decoration: underline;
}

.funding-round,
.investment-date {
  margin: 0 0 0.35rem;
  font-size: 0.82rem;
  color: #4a5568;
}

.funding-label {
  font-weight: 600;
  color: #3e486f;
}

.exit-status {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  margin: 0;
}

.exit-badge {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  background: #1a202c;
  color: #a0aec0;
}

.exit-badge--acquisition { background: #1c4532; color: #9ae6b4; }
.exit-badge--merger { background: #2a4365; color: #90cdf4; }
.exit-badge--ipo { background: #44337a; color: #d6bcfa; }
.exit-badge--secondarypartialliquidity { background: #2d3748; color: #e2e8f0; }
.exit-badge--failure { background: #742a2a; color: #feb2b2; }
.exit-badge--other { background: #2d3748; color: #cbd5e0; }

.investment-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0;
  padding-top: 0.5rem;
  margin: 0;
  margin-top: auto;
}

.investment-tags li {
  font-size: 0.78rem;
  color: #26316f;
  border: 1px solid #d3dafc;
  background: #eef2ff;
  border-radius: 999px;
  padding: 0.22rem 0.55rem;
}

.insights-section > p {
  margin-top: 0.35rem;
  color: var(--muted);
}

.insights-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.insight-card {
  border: 1px solid #e4e8f9;
  background: #f9faff;
  border-radius: 0.85rem;
  padding: 1.25rem 1rem;
  display: flex;
  flex-direction: column;
}

.insight-date {
  display: inline-block;
  font-size: 0.78rem;
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
}

.insight-card h3 {
  margin: 0 0 0.65rem;
  font-size: 1.05rem;
  line-height: 1.35;
  color: var(--text);
}

.insight-card p {
  flex: 1;
  color: #3e486f;
  font-size: 0.92rem;
  line-height: 1.6;
  margin: 0 0 0.85rem;
}

.insight-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.insight-tags span {
  font-size: 0.75rem;
  color: #26316f;
  border: 1px solid #d3dafc;
  background: #eef2ff;
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
}

.news-section > p {
  margin-top: 0.35rem;
  color: var(--muted);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.news-item {
  border: 1px solid #e4e8f9;
  background: #f9faff;
  border-radius: 0.85rem;
  padding: 1.15rem 1rem 1.15rem 1.25rem;
  border-left: 3px solid var(--primary);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.news-item a {
  color: var(--text);
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1.4;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-item a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.news-item a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 2px;
}

.news-source {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem;
  align-items: center;
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0;
}

.news-source > *:not(:last-child)::after {
  content: " \00b7 ";
  margin-left: 0.15rem;
}

.news-publication {
  font-weight: 600;
  color: var(--primary);
}

.news-company {
  color: #3e486f;
}

ol {
  padding-left: 1.15rem;
}

.quote blockquote {
  font-size: 1.35rem;
  margin: 0;
  color: #273267;
}

.quote p {
  margin-bottom: 0;
  color: var(--muted);
}

footer {
  background: linear-gradient(135deg, #111a45, #253581);
  color: #ffffff;
  margin: 0;
  padding: 0;
  scroll-margin-top: 70px;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 3rem 1.25rem 2rem;
}

footer h2 {
  color: #ffffff;
  margin-bottom: 0.5rem;
}

footer a {
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
  opacity: 0.9;
}

.footer-contact p {
  color: #c8d0f0;
  max-width: 540px;
}

.footer-divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin: 1.75rem 0;
}

.footer-middle {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
}

.footer-details p {
  margin: 0 0 0.5rem;
  color: #c8d0f0;
  font-size: 0.92rem;
  line-height: 1.55;
}

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

.footer-social a {
  display: inline-flex;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.15s ease;
}

.footer-social a:hover {
  color: #ffffff;
  text-decoration: none;
  opacity: 1;
}

.footer-bottom {
  text-align: center;
}

.footer-bottom p {
  margin: 0 0 0.35rem;
  font-size: 0.85rem;
  color: #a0aad0;
}

.footer-legal {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.8rem;
}

.footer-legal a {
  color: #a0aad0;
  font-weight: 400;
}

.footer-legal a:hover {
  color: #ffffff;
}

.footer-legal span {
  color: #a0aad0;
}

.section-subtitle {
  color: var(--muted);
  margin-top: -0.5rem;
  margin-bottom: 1.5rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  justify-items: center;
}

.team-grid:has(.team-card:only-child) {
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

.team-grid:has(.team-card:nth-child(2):last-child) {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.team-card {
  background: #f8f9ff;
  border: 1px solid #e7eafe;
  border-radius: 0.85rem;
  padding: 1.5rem 1rem;
  text-align: center;
  width: 100%;
  max-width: 420px;
}

.team-headshot {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  overflow: hidden;
  background: var(--primary);
}

.team-headshot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 1;
}

.team-headshot-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  z-index: 0;
}

.team-card h3 {
  margin: 0 0 0.15rem;
  color: var(--text);
  font-weight: 600;
  font-size: 1.1rem;
}

.team-title {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 0.75rem;
}

.team-bio {
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0 0 0.75rem;
}

.team-linkedin {
  display: inline-flex;
  color: var(--primary);
  transition: color 0.15s ease;
}

.team-linkedin:hover {
  color: var(--primary-dark);
}

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

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

  .insights-grid {
    grid-template-columns: 1fr;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
  }

  .hero {
    padding-bottom: 3rem;
  }

  .sticky-nav-wrapper {
    padding: 0.75rem 1.25rem;
  }

  .footer-middle {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-social {
    margin-top: 0.5rem;
  }

  .metrics-bar {
    flex-wrap: wrap;
    gap: 1.25rem 1.5rem;
  }

  .metric {
    min-width: 100px;
    flex: 1 1 40%;
  }

}

@media (max-width: 360px) {
  .metrics-bar {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .metric {
    min-width: unset;
  }
}

@media (max-width: 600px) {
  .hero-cta {
    flex-direction: column;
    gap: 12px;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    text-align: center;
  }
}

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

  .team-grid:has(.team-card:only-child),
  .team-grid:has(.team-card:nth-child(2):last-child) {
    max-width: 100%;
  }

  .team-card {
    max-width: 100%;
  }
}

.contact-form {
  max-width: 560px;
  margin: 1.5rem 0;
}
.form-group {
  margin-bottom: 1rem;
}
.form-group label {
  display: block;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.5;
}
.form-group textarea {
  min-height: 120px;
  resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(75, 92, 255, 0.15);
}
.form-group input.invalid,
.form-group textarea.invalid {
  border-color: #c0392b;
}
.field-error {
  display: block;
  color: #c0392b;
  font-size: 0.85rem;
  min-height: 1.25rem;
  margin-top: 0.25rem;
}
.form-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.char-count {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.25rem;
}
.form-submit {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 0.65rem;
  cursor: pointer;
  margin-top: 0.5rem;
  font-family: inherit;
  transition: background 0.15s ease;
}
.form-submit:hover {
  background: var(--primary-dark);
}
.form-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.form-result {
  max-width: 560px;
  margin: 1.5rem 0;
  padding: 1.25rem;
  border-radius: 0.5rem;
}
.form-result p {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}
.form-result a {
  font-size: 0.95rem;
}
.form-result--error {
  background: #fdf0ef;
  border: 1px solid #f5c6cb;
}
.form-result--error p {
  color: #c0392b;
}
.contact-fallback {
  margin-top: 1rem;
  font-size: 0.95rem;
  color: var(--muted);
}
.contact-fallback a {
  color: var(--primary-dark);
  font-weight: 700;
}
.contact-privacy {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.5rem;
}

@media (max-width: 640px) {
  .contact-form {
    max-width: 100%;
  }
  .form-submit {
    width: 100%;
  }
  .form-meta {
    flex-direction: column;
  }
}

.hero--subpage {
  padding-top: 1.25rem;
  padding-bottom: 2.5rem;
}

.hero--subpage .hero-content {
  margin-top: 1rem;
}

.hero--subpage h1 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
}

.section-link {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.section-link:hover {
  text-decoration: underline;
}

.section-cta {
  margin-top: 1.25rem;
  text-align: center;
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--text);
  color: #fff;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  z-index: 10100;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  font-size: 0.9rem;
}

.cookie-banner p {
  margin: 0;
}

.cookie-banner a {
  color: #8fa0ff;
}

.cookie-banner-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.cookie-banner-actions button {
  padding: 0.75rem 1.25rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-size: 0.85rem;
  min-height: 44px;
  min-width: 44px;
}

#cookie-accept {
  background: var(--primary);
  color: #fff;
}

#cookie-decline {
  background: transparent;
  color: #fff;
  border: 1px solid #fff;
}

@media (max-width: 640px) {
  .cookie-banner {
    flex-direction: column;
    text-align: center;
  }
}

/* --- Hamburger Menu --- */

html {
  scroll-behavior: smooth;
}

body.menu-open {
  overflow: hidden;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 44px;
  height: 44px;
  padding: 10px;
  position: relative;
  z-index: 1100;
  -webkit-tap-highlight-color: transparent;
}

.hamburger-bar {
  display: block;
  width: 20px;
  height: 1.5px;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.25s ease;
  position: absolute;
  left: 12px;
}

.hamburger-bar:nth-child(1) { top: 15px; }
.hamburger-bar:nth-child(2) { top: 21px; }
.hamburger-bar:nth-child(3) { top: 27px; }

body.menu-open .hamburger-bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
body.menu-open .hamburger-bar:nth-child(2) {
  opacity: 0;
}
body.menu-open .hamburger-bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.mobile-nav {
  display: none;
}

.mobile-overlay {
  display: none;
}

@media (max-width: 640px) {
  .hamburger {
    display: block;
  }

  .mobile-nav {
    display: flex;
    flex-direction: column;
    background: #253581;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
    position: relative;
    z-index: 1050;
  }

  .mobile-nav a {
    display: block;
    padding: 1rem 1.25rem;
    color: #d7defe;
    text-decoration: none;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  }

  .mobile-nav a:last-child {
    border-bottom: none;
  }

  .mobile-nav a:hover,
  .mobile-nav a:focus {
    color: #fff;
  }

  .mobile-nav a.active {
    color: #fff;
    border-left: 3px solid var(--primary);
    padding-left: calc(1.25rem - 3px);
  }

  .mobile-nav a.active:hover,
  .mobile-nav a.active:focus {
    color: #fff;
  }

  body.menu-open .mobile-nav {
    max-height: 500px;
  }

  .mobile-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
  }

  body.menu-open .mobile-overlay {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
}

/* ── Card hover & focus transitions ────────────────────────── */
.portfolio-card,
.insight-card,
.news-item,
.team-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

@media (hover: hover) {
  .portfolio-card:hover,
  .insight-card:hover,
  .news-item:hover,
  .team-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 36px rgba(44, 64, 140, 0.15);
  }
}

.portfolio-card:focus-visible,
.insight-card:focus-visible,
.news-item:focus-visible,
.team-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(44, 64, 140, 0.15);
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .portfolio-card,
  .insight-card,
  .news-item,
  .team-card {
    transition-duration: 0.01s;
  }
}

/* ── Portfolio loading skeleton ───────────────────────────── */
.portfolio-skeleton {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  grid-column: 1 / -1;
}

.skeleton-card {
  border: 1px solid #e4e8f9;
  background: #f9faff;
  border-radius: 0.85rem;
  padding: 1rem;
}

.skeleton-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 0.65rem;
  background: #e4e8f9;
  margin-bottom: 0.75rem;
  animation: skeleton-pulse 1.5s ease-in-out infinite;
}

.skeleton-line {
  height: 0.85rem;
  border-radius: 4px;
  background: #e4e8f9;
  margin-bottom: 0.55rem;
  animation: skeleton-pulse 1.5s ease-in-out infinite;
}

.skeleton-line--title {
  width: 55%;
  height: 1.1rem;
  margin-bottom: 0.75rem;
}

.skeleton-line--short {
  width: 40%;
}

@keyframes skeleton-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

@media (max-width: 900px) {
  .portfolio-skeleton {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  .portfolio-skeleton {
    grid-template-columns: 1fr;
  }
}

.portfolio-error {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 1rem;
  color: var(--muted);
}

.portfolio-error p {
  font-size: 1.05rem;
  margin: 0 0 1rem;
}

.portfolio-retry {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.65rem 1.5rem;
  border: none;
  border-radius: 0.65rem;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s ease;
}

.portfolio-retry:hover {
  background: var(--primary-dark);
}

.portfolio-noscript {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 1rem;
  color: var(--muted);
  font-size: 1.05rem;
}

/* ── Scroll-triggered reveal animations ──────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
