/* ========================================
   Blue Gravity Capital — Main Stylesheet
   ======================================== */

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

:root {
  --color-primary: #0A4E98;
  --color-accent: #EC8734;
  --color-accent-light: #e8e9e3;
  --color-bg: #ffffff;
  --color-bg-alt: #e8e9e3;
  --color-text: #0A4E98;
  --color-text-light: #68858f;
  --color-border: #c5d4d0;
  --font-display: 'Scope One', Georgia, serif;
  --font-body: 'Inter', 'Nunito Sans', Helvetica, Arial, sans-serif;
  --max-width: 1320px;
  --header-height: 80px;
  --transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

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

ul, ol {
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  color: var(--color-primary);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 2.5vw, 2rem); }
h4 { font-size: 1.25rem; }

p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--color-text-light);
}

.accent-text {
  color: var(--color-accent);
}

/* --- Header --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition);
}

.site-header.scrolled {
  background: rgba(255,255,255,0.97);
  box-shadow: 0 1px 20px rgba(0,0,0,0.06);
  backdrop-filter: blur(12px);
}

.site-header.header--dark:not(.scrolled) .nav-link,
.site-header.header--dark:not(.scrolled) .logo-text {
  color: #fff;
}

.site-header.header--dark:not(.scrolled) .hamburger span {
  background: #fff;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 1001;
}

.logo-mark {
  width: 36px;
  height: 36px;
  background: var(--color-accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.logo-img {
  height: 60px;
  width: auto;
  max-width: none;   /* override global `img { max-width: 100% }` which otherwise squishes width during resize */
  flex-shrink: 0;    /* prevent the flex header from compressing the logo when space is tight */
  display: block;
}

.header--dark:not(.scrolled) .logo-dark {
  display: none;
}

.header--dark:not(.scrolled) .logo-white {
  display: block;
}

.header--dark.scrolled .logo-dark {
  display: block;
}

.header--dark.scrolled .logo-white {
  display: none;
}

/* When the mobile menu is open, the backdrop turns light — force the dark/blue logo so it stays visible even before scroll. The `.menu-open` class is added/removed with a small JS delay so the swap aligns with the mobile-nav slide transition rather than firing instantly. */
.site-header.header--dark:not(.scrolled).menu-open .logo-white {
  display: none;
}

.site-header.header--dark:not(.scrolled).menu-open .logo-dark {
  display: block;
}

.logo-white {
  display: none;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--color-primary);
  letter-spacing: -0.3px;
  transition: color var(--transition);
}

/* --- Desktop Nav --- */
.main-nav {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-left: auto;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text);
  position: relative;
  padding: 4px 0;
  letter-spacing: 0.01em;
  transition: color var(--transition);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  background: var(--color-accent);
  padding: 10px 24px;
  border-radius: 6px;
  transition: background var(--transition), transform var(--transition);
}

.nav-cta:hover {
  background: #d4742a;
  transform: translateY(-1px);
}

/* --- Hamburger --- */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
  padding: 8px;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-primary);
  transition: transform 0.3s, opacity 0.3s;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --- Mobile Nav --- */
.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  background: #e8e9e3;
  z-index: 999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 32px;
  transition: right 0.45s cubic-bezier(0.77, 0, 0.175, 1);
}

.mobile-nav.open {
  right: 0;
}

.mobile-nav a {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--color-primary);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s, transform 0.4s, color 0.3s;
  text-align: center;
  max-width: 90%;
  line-height: 1.15;
}

.mobile-nav.open a {
  opacity: 1;
  transform: translateY(0);
}

.mobile-nav.open a:nth-child(1) { transition-delay: 0.15s; }
.mobile-nav.open a:nth-child(2) { transition-delay: 0.25s; }
.mobile-nav.open a:nth-child(3) { transition-delay: 0.35s; }
.mobile-nav.open a:nth-child(4) { transition-delay: 0.45s; }

.mobile-nav a:hover {
  color: var(--color-accent);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
  background: var(--color-primary);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.25) 50%, rgba(0,0,0,0.25) 100%);
  z-index: 2;
}

.hero-bg-pattern {
  position: absolute;
  inset: 0;
  opacity: 0;
  background-image:
    radial-gradient(circle at 25% 25%, #fff 1px, transparent 1px),
    radial-gradient(circle at 75% 75%, #fff 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 3;
}

.hero-content {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  z-index: 4;
  max-width: var(--max-width);
  padding: 0 40px;
}

.hero-subtitle {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.15rem;
  line-height: 1.7;
  max-width: 640px;
  margin: 0;
}

.hero h1 {
  color: #fff;
  font-family: var(--font-body);
  font-weight: 400;
  margin-bottom: 24px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s 0.3s forwards;
}

.hero h1 .accent-text {
  color: #1d8ecc;
  -webkit-text-stroke: 0.3px #1d8ecc;
}

.hero p {
  color: rgba(255,255,255,0.8);
  font-size: 1.2rem;
  max-width: 750px;
  margin-bottom: 0;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s 0.5s forwards;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: var(--color-accent);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 6px;
  transition: background var(--transition), transform var(--transition);
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s 0.7s forwards;
}

.hero-cta:hover {
  background: #d4742a;
  transform: translateY(-2px);
}

.hero-cta svg {
  width: 18px;
  height: 18px;
  transition: transform var(--transition);
}

.hero-cta:hover svg {
  transform: translateX(4px);
}

/* --- Stats Bar --- */
.stats-bar {
  background: var(--color-bg);
  padding: 60px 0;
  position: relative;
  z-index: 5;
  border-bottom: 1px solid var(--color-border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  text-align: center;
}

.stat-item {
  opacity: 0;
  transform: translateY(20px);
}

.stat-item.revealed {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s, transform 0.6s;
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* --- Section Layouts --- */
.section {
  padding: 100px 0;
  background: #fff;
}

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

.section--dark {
  background: var(--color-primary);
}

.section--dark h2,
.section--dark h3,
.section--dark p {
  color: #fff;
}

.section--dark p {
  color: rgba(255,255,255,0.75);
}

.section-header {
  max-width: 680px;
  margin-bottom: 60px;
}

.section-header.centered {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-accent);
  margin-bottom: 16px;
}

.section-header h2 {
  margin-bottom: 20px;
}

.section-header p {
  font-size: 1.1rem;
}

/* --- Two Column Layout --- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.two-col--reverse {
  direction: rtl;
}

.two-col--reverse > * {
  direction: ltr;
}

.col-content {
  max-width: 520px;
}

.col-content h2 {
  margin-bottom: 20px;
}

.col-content p {
  margin-bottom: 16px;
}

.col-image {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--color-bg-alt);
}

.col-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.col-image-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--color-accent-light) 0%, #cdd7df 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.col-image-placeholder svg {
  width: 80px;
  height: 80px;
  opacity: 0.3;
  color: var(--color-accent);
}

/* --- Feature Cards --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.feature-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 40px 32px;
  transition: transform var(--transition), box-shadow var(--transition);
  text-align: center;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}

.feature-icon {
  width: 52px;
  height: 52px;
  background: var(--color-accent-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  color: var(--color-accent);
}

.feature-icon svg {
  width: 24px;
  height: 24px;
}

.feature-card h4 {
  font-family: var(--font-display);
  margin-bottom: 12px;
  color: var(--color-primary);
}

.feature-card p {
  font-size: 0.95rem;
}

/* --- Team Grid --- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 32px;
}

.team-card {
  text-align: center;
  transition: transform var(--transition);
}

.team-card:hover {
  transform: translateY(-4px);
}

.team-photo {
  width: 100%;
  aspect-ratio: 3/4;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 20px;
  background: var(--color-bg-alt);
  position: relative;
}

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

.team-photo-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, var(--color-primary) 0%, #68858f 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-photo-placeholder .initials {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: rgba(255,255,255,0.25);
}

.team-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--color-primary);
  margin-bottom: 4px;
}

.team-title {
  font-size: 0.9rem;
  color: var(--color-accent);
  font-weight: 500;
  margin-bottom: 12px;
}

.team-bio {
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.6;
}

/* --- Team Detail (expanded) --- */
.team-detail-section {
  padding: 80px 0;
}

.team-detail {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 60px;
  margin-bottom: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--color-border);
}

.team-detail:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.team-detail-photo {
  width: 100%;
  aspect-ratio: 3/4;
  border-radius: 12px;
  overflow: hidden;
  background: var(--color-bg-alt);
}

.team-detail-photo img {
  filter: grayscale(100%);
}

.team-detail-info h3 {
  margin-bottom: 4px;
}

.team-detail-info .team-title {
  margin-bottom: 20px;
}

.team-detail-info p {
  margin-bottom: 12px;
  font-size: 1rem;
}

/* --- CTA Section --- */
.cta-section {
  padding: 100px 0;
  background: var(--color-primary);
  text-align: center;
}

.cta-section h2 {
  color: #fff;
  margin-bottom: 20px;
}

.cta-section p {
  color: rgba(255,255,255,0.7);
  max-width: 560px;
  margin: 0 auto 40px;
  font-size: 1.1rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 36px;
  background: var(--color-accent);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

.btn-primary:hover {
  background: #d4742a;
  transform: translateY(-2px);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-accent);
  font-weight: 600;
  font-size: 1rem;
  transition: gap var(--transition), color var(--transition);
}

.link-arrow:hover {
  color: #d4742a;
  gap: 12px;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 36px;
  background: transparent;
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 6px;
  border: 2px solid rgba(255,255,255,0.3);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}

.btn-outline:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.08);
}

/* --- Page Hero (sub-pages) --- */
.page-hero {
  padding: 160px 0 80px;
  background: #e8e9e3;
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background-image:
    radial-gradient(circle at 25% 25%, #fff 1px, transparent 1px),
    radial-gradient(circle at 75% 75%, #fff 1px, transparent 1px);
  background-size: 60px 60px;
}

.page-hero .container {
  position: relative;
  z-index: 2;
}

.page-hero h1 {
  color: var(--color-primary);
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.7s 0.2s forwards;
}

.page-hero p {
  color: var(--color-text-light);
  font-size: 1.2rem;
  max-width: 640px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.7s 0.4s forwards;
}

/* --- Approach / Criteria List --- */
.criteria-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

/* 3-column variant (How We Invest — 5 items laid out as 3 + 2) applied on larger screens only. The mobile override below collapses all variants to a single column. */
@media (min-width: 1025px) {
  .criteria-grid--3col {
    grid-template-columns: repeat(3, 1fr);
  }
}

.criteria-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
  padding: 28px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  transition: box-shadow var(--transition);
}

.criteria-item:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.06);
}

.criteria-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: var(--color-accent-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
}

.criteria-icon svg {
  width: 20px;
  height: 20px;
}

.criteria-item h4 {
  margin-bottom: 6px;
  font-size: 1.1rem;
}

.criteria-item p {
  font-size: 0.92rem;
}

/* --- Footer --- */
.site-footer {
  background: var(--color-primary);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 30px;
  position: sticky;
  bottom: 0;
  z-index: 0;
}

/* Content sits above the footer so it can "uncover" it on scroll */
main {
  position: relative;
  z-index: 1;
  background: #fff;
}

.footer-col address {
  font-style: normal;
  color: rgba(255,255,255,0.6);
  font-size: 0.92rem;
  line-height: 1.7;
}

.footer-grid {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 48px;
  margin-bottom: 50px;
}

.footer-logo {
  display: block;
  margin-bottom: 40px;
  height: 56px;
}

.footer-legal-link {
  color: rgba(255,255,255,0.4);
  font-size: 0.82rem;
  transition: color var(--transition);
}

.footer-legal-link:hover {
  color: #fff;
}

.footer-col h4 {
  color: #fff;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.footer-col:nth-child(2) {
  padding-left: 48px;
}

.footer-col:last-child {
  text-align: right;
  justify-self: end;
}

.footer-col a {
  display: block;
  color: rgba(255,255,255,0.6);
  font-size: 0.92rem;
  line-height: 1.7;
  transition: color var(--transition);
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
}

.footer-social {
  display: flex;
  gap: 16px;
}

.footer-social a {
  color: rgba(255,255,255,0.4);
  transition: color var(--transition);
}

.footer-social a:hover {
  color: #fff;
}

/* --- Animations --- */
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .container { padding: 0 28px; }
  .header-inner { padding: 0 28px; }
  .two-col { gap: 48px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .footer-grid { grid-template-columns: auto auto 1fr; gap: 32px; }
  .footer-col:nth-child(2) { padding-left: 32px; }
  .team-detail { grid-template-columns: 220px 1fr; gap: 40px; }
  .portfolio-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  :root { --header-height: 64px; }
  .container { padding: 0 20px; }
  .header-inner { padding: 0 20px; }

  .main-nav { display: none; }
  .hamburger { display: flex; }

  .hero { height: 100vh; }
  .hero-content { bottom: 18vh; left: 0; transform: none; padding: 0 20px; width: 100%; max-width: 100%; z-index: 10; }
  .hero h1 { font-size: 2.2rem; }
  .hero p { font-size: 1.1rem; max-width: 100%; }
  .section { padding: 48px 0; }
  .page-hero { padding: 120px 0 60px; }

  .two-col {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .two-col--reverse {
    direction: ltr;
  }

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

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

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

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

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .footer-col:nth-child(2) { padding-left: 0; }
  .footer-col:last-child {
    grid-column: 1 / -1;
    text-align: left;
    justify-self: start;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .team-detail {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .team-detail-photo {
    max-width: 260px;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .hero-content { bottom: 16vh; }
  .hero h1 { font-size: 2rem; }
  .hero p { font-size: 1.05rem; }
}

/* --- Legal / Privacy Policy --- */
.legal-content {
  max-width: 800px;
}

.legal-intro {
  margin-bottom: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--color-border);
}

.legal-intro p {
  margin-bottom: 16px;
}

.legal-section {
  margin-bottom: 40px;
}

.legal-section h3 {
  color: var(--color-primary);
  margin-bottom: 16px;
  font-size: clamp(1.3rem, 2vw, 1.6rem);
}

.legal-section p {
  margin-bottom: 14px;
}

.legal-section ul {
  margin: 16px 0 20px 0;
  padding-left: 0;
}

.legal-section ul li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--color-text-light);
}

.legal-section ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
}

.legal-link {
  color: var(--color-accent);
  font-weight: 500;
  transition: color var(--transition);
}

.legal-link:hover {
  color: #d4742a;
}

.footer-legal-link {
  color: rgba(255,255,255,0.4);
  font-size: 0.82rem;
  transition: color var(--transition);
}

.footer-legal-link:hover {
  color: #fff;
}

/* --- Portfolio Logo Grid --- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.portfolio-grid .feature-card {
  position: relative;
  padding-bottom: 48px !important;
}

.portfolio-exited {
  position: absolute;
  top: 25px;
  left: calc(100% - 25px);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: 0.06em;
  transform: translate(-50%, -50%) rotate(45deg);
}

.portfolio-grid .feature-card img {
  opacity: 0.75;
}

.portfolio-descriptor {
  position: absolute;
  bottom: 16px;
  left: 24px;
  right: 24px;
  font-size: 0.82rem;
  color: var(--color-text-light);
  line-height: 1.4;
}

/* --- Hero Video --- */
.hero-video {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.hero-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.hero-video-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--color-primary) 0%, #68858f 50%, #cdd7df 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-video-placeholder span {
  color: rgba(255,255,255,0.15);
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

/* --- Utility --- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mt-40 { margin-top: 40px; }

/* --- Cookie Consent Banner --- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-primary);
  color: rgba(255,255,255,0.85);
  padding: 20px 0;
  z-index: 2000;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.cookie-banner.is-visible {
  transform: translateY(0);
}

.cookie-banner .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cookie-banner p {
  font-size: 0.88rem;
  line-height: 1.5;
  margin: 0;
  color: rgba(255,255,255,0.75);
}

.cookie-banner a {
  color: #fff;
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.cookie-accept {
  background: var(--color-accent);
  color: #fff;
  border: none;
  padding: 8px 24px;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition);
}

.cookie-accept:hover {
  background: #d9762a;
}

.cookie-decline {
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  font-family: var(--font-body);
  font-size: 0.82rem;
  cursor: pointer;
  transition: color var(--transition);
}

.cookie-decline:hover {
  color: #fff;
}

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