/* CSS Variables & Design System */
:root {
  /* Color Palette - Boutique Investment Bank Aesthetic */
  /* Deep Slate / Carbon */
  --kaph-dark-primary: #1a1f24;
  --kaph-dark-secondary: #2c3539;
  --kaph-dark-tertiary: #3a464c;

  /* Warm Metallic Accents */
  --kaph-gold: #d4af37;
  --kaph-gold-light: #f3e5ab;
  --kaph-bronze: #cd7f32;
  --kaph-copper: #b87333;

  /* Neutral & Backgrounds */
  --kaph-white: #ffffff;
  --kaph-off-white: #f8f9fa;
  --kaph-sand: #eae6df;

  /* Text Colors */
  --text-main: #333333;
  --text-muted: #666666;
  --text-light: #f8f9fa;

  /* Typography */
  --font-heading: "Playfair Display", serif;
  --font-body: "Inter", sans-serif;

  /* Spacing */
  --section-padding-y: 6rem;
  --section-padding-x: 2rem;

  /* Layout */
  --max-width: 1200px;

  /* Transitions */
  --transition-fast: 0.3s ease;
  --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

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

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--kaph-dark-primary);
  margin-bottom: 1rem;
}

h1 em,
h2 em {
  font-style: italic;
  color: var(--kaph-gold);
}

p {
  margin-bottom: 1.5rem;
}

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

ul {
  list-style: none;
}

/* Utility Classes */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--section-padding-x);
}

.section-padding {
  padding: var(--section-padding-y) 0;
}

.alt-bg {
  background-color: var(--kaph-off-white);
}

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

.text-light {
  color: var(--kaph-white);
}

.mb-3 {
  margin-bottom: 1rem;
}
.mb-5 {
  margin-bottom: 3rem;
}
.mt-5 {
  margin-top: 3rem;
}
.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 800px;
  margin: 0 auto 3rem auto;
}

.separator {
  width: 60px;
  height: 3px;
  background-color: var(--kaph-gold);
  margin: 1.5rem 0 3rem 0;
}

.text-center .separator {
  margin: 1.5rem auto 3rem auto;
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.animate-up {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: var(--delay, 0s);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Section Styling --- */

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 0;
  z-index: 1000;
  transition: all var(--transition-fast);
  background-color: transparent;
}

.navbar.scrolled {
  background-color: rgba(26, 31, 36, 0.95);
  backdrop-filter: blur(10px);
  padding: 1rem 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

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

.logo {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  color: var(--kaph-white);
}

.logo-mark {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--kaph-gold);
}

.logo-text {
  font-family: var(--font-body);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 300;
}

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

.nav-link {
  color: var(--kaph-white);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  padding-bottom: 5px;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--kaph-gold);
  transition: width var(--transition-fast);
}

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

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.mobile-menu-btn .bar {
  width: 25px;
  height: 2px;
  background-color: var(--kaph-white);
  margin: 5px 0;
  transition: var(--transition-fast);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end; /* changed from center */
  padding-bottom: 50px; /* space from bottom */
  padding-top: 80px; /* offset nav */
  color: var(--kaph-white);
  overflow: hidden;
}

.hero-video-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -2;
}

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

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(26, 31, 36, 0.6); /* Dark overlay to make text readable */
  z-index: -1;
}

.hero-content {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  text-align: left;
  gap: 2rem;
}

.hero h1 {
  color: var(--kaph-white);
  font-size: 3.5rem;
  margin-bottom: 0;
  max-width: 600px;
}

.sub-headline {
  font-size: 1.2rem;
  font-weight: 300;
  color: var(--kaph-dark-secondary);
  margin-bottom: 2.5rem;
  line-height: 1.8;
  text-align: left;
}

.hero-intro {
  font-size: 1.1rem;
  color: var(--text-main);
  margin-bottom: 3rem;
  border-left: 3px solid var(--kaph-gold);
  padding-left: 1.5rem;
  text-align: left;
}

/* Intro Section (moved from hero) */
.intro {
  background-color: var(--kaph-off-white);
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "title title"
    "left right";
  column-gap: 4rem;
  row-gap: 1rem;
  align-items: start;
}

.intro-title {
  grid-area: title;
}

.intro-left {
  grid-area: left;
}

.intro-right {
  grid-area: right;
}

@media (max-width: 900px) {
  .intro-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "title"
      "left"
      "right";
    gap: 3rem;
  }
}

/* Adjust pillar cards for light background */
.intro .pillar-card,
.about .pillar-card {
  background: var(--kaph-white);
  border: 1px solid var(--kaph-sand);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
}

.intro .pillar-card p,
.about .pillar-card p {
  color: var(--text-muted);
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.pillar-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem;
  border-radius: 4px;
  text-align: left;
  backdrop-filter: blur(5px);
  transition:
    transform var(--transition-fast),
    border-color var(--transition-fast);
}

.pillar-card:hover {
  transform: translateY(-5px);
  border-color: rgba(212, 175, 55, 0.5); /* Gold hover */
}

.pillar-card p {
  font-size: 0.9rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
}

.pillar-icon {
  width: 30px;
  height: 3px;
  background-color: var(--kaph-gold);
  margin-bottom: 1rem;
}

.scroll-indicator {
  position: relative;
  width: 30px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  margin-bottom: 15px; /* slight vertical alignment tweak against the h1 baseline */
}

.scroll-indicator .arrow {
  width: 2px;
  height: 20px;
  background-color: var(--kaph-gold);
  position: relative;
  animation: scrollBounce 2s infinite;
}

.scroll-indicator .arrow::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 10px;
  height: 10px;
  border-bottom: 2px solid var(--kaph-gold);
  border-right: 2px solid var(--kaph-gold);
}

@keyframes scrollBounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(10px);
  }
  60% {
    transform: translateY(5px);
  }
}

.meaning-text .lead {
  font-size: 1.25rem;
  color: var(--kaph-dark-primary);
  margin-bottom: 1.5rem;
}

.meaning-text .highlight {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--kaph-gold);
  border-left: 2px solid var(--kaph-gold);
  padding-left: 1.5rem;
  margin-top: 2rem;
  font-style: italic;
}

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: stretch;
}

.flex-column {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.tighter-text {
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

.tight-list {
  gap: 1rem !important;
}

.grid-4-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 1000px;
  margin-inline: auto;
}

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

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

.pillar-card.compact {
  padding: 2.25rem 1.5rem;
}

.pillar-card.compact p {
  font-size: 1.05rem;
  line-height: 1.5;
}

.about-text p {
  font-size: 1.1rem;
  color: var(--text-main);
}

.subsection-title {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: var(--kaph-dark-secondary);
}

.values-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.values-list li {
  padding-left: 1.5rem;
  position: relative;
}

.values-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  background-color: var(--kaph-gold);
  border-radius: 50%;
}

.value-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--kaph-dark-primary);
  margin-bottom: 0.25rem;
}

.value-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Strategy Section */
.cube-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

.strategy-card {
  background: var(--kaph-white);
  padding: 2.5rem 2rem;
  border: 1px solid var(--kaph-sand);
  border-top: 3px solid var(--kaph-gold);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast);
}

.strategy-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.06);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.card-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--kaph-sand);
  font-weight: 300;
  line-height: 1;
}

.strategy-card h3 {
  margin: 0;
  font-size: 1.3rem;
  color: var(--kaph-dark-secondary);
}

.strategy-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.strategy-list strong {
  display: block;
  color: var(--kaph-dark-primary);
  margin-bottom: 0.25rem;
  font-size: 1.05rem;
}

.strategy-list strong span {
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.strategy-list p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.focus-box {
  background: var(--kaph-off-white);
  padding: 3rem;
  border-radius: 4px;
  border-left: 4px solid var(--kaph-dark-primary);
}

.focus-list {
  margin-top: 1.5rem;
}

.focus-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--text-main);
}

.focus-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--kaph-gold);
}

/* Track Record */
.timeline {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 20px;
  width: 2px;
  background: var(--kaph-sand);
}

.timeline-item {
  position: relative;
  padding-left: 60px;
  margin-bottom: 3rem;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 5px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--kaph-gold);
  border: 3px solid var(--kaph-off-white);
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
}

.timeline-content {
  background: var(--kaph-white);
  padding: 2rem;
  border-radius: 4px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
  border: 1px solid var(--kaph-sand);
}

.tag {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--kaph-gold);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.timeline-content h3 {
  font-size: 1.4rem;
  color: var(--kaph-dark-secondary);
  margin-bottom: 1rem;
}

.case-details {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.case-details li {
  font-size: 0.95rem;
  color: var(--text-muted);
  position: relative;
  padding-left: 1.25rem;
}

.case-details li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--kaph-dark-tertiary);
  font-weight: bold;
}

.highlight-metric {
  font-weight: 600;
  color: var(--kaph-dark-primary);
}

/* Team Section */
.profile-card {
  display: flex;
  gap: 3rem;
  max-width: 900px;
  margin: 0 auto;
  align-items: flex-start;
}

.profile-image {
  flex: 0 0 300px;
  height: 400px;
  background-color: var(--kaph-off-white);
  border: 1px solid var(--kaph-sand);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--kaph-sand);
  border-radius: 4px; /* subtle softening */
}

.profile-image svg {
  width: 100px;
  height: 100px;
}

.profile-info {
  flex: 1;
}

.profile-info h3 {
  font-size: 2rem;
  margin-bottom: 0.25rem;
}

.degrees {
  font-size: 1rem;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-weight: 400;
}

.role {
  font-weight: 500;
  color: var(--kaph-gold);
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.location {
  color: var(--text-muted);
  font-weight: 400;
}

.bio p {
  color: var(--text-main);
  font-size: 1rem;
}

.competencies {
  margin-top: 2rem;
}

.competencies strong {
  display: block;
  margin-bottom: 1rem;
  font-family: var(--font-heading);
  color: var(--kaph-dark-secondary);
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.skill-tags span {
  background: var(--kaph-off-white);
  border: 1px solid var(--kaph-sand);
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
  border-radius: 50px;
  color: var(--kaph-dark-tertiary);
  transition: background var(--transition-fast);
}

.skill-tags span:hover {
  background: var(--kaph-sand);
}

/* Contact Section */
.contact {
  position: relative;
  background-color: var(--kaph-dark-primary);
  color: var(--kaph-white);
}

.contact-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(
    rgba(26, 31, 36, 0.9),
    rgba(26, 31, 36, 0.95)
  ); /* Add a subtle background image here if desired */
  z-index: 0;
}

.contact .container {
  position: relative;
  z-index: 1;
}

.contact-intro {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 3rem auto;
  color: rgba(255, 255, 255, 0.8);
}

.contact-details {
  display: flex;
  justify-content: center;
  gap: 3rem;
}

.contact-person {
  background: rgba(255, 255, 255, 0.05);
  padding: 2rem 3rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  transition: border-color var(--transition-fast);
}

.contact-person:hover {
  border-color: rgba(212, 175, 55, 0.5);
}

.contact-person h4 {
  color: var(--kaph-white);
  margin-bottom: 0.5rem;
}

.email-link:hover {
  color: var(--kaph-gold-light);
  text-decoration: underline;
}

/* Contact Form Styles */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row {
  display: flex;
  gap: 1.25rem;
}

.form-group {
  flex: 1;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 1.15rem 1.25rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  color: var(--kaph-white);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color var(--transition-fast);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--kaph-gold);
}

.submit-btn {
  background-color: var(--kaph-gold);
  border: none;
  padding: 1.1rem 2.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--kaph-dark-primary);
  cursor: pointer;
  border-radius: 4px;
  transition: all var(--transition-fast);
}

.submit-btn:hover {
  background-color: var(--kaph-gold-light);
  color: var(--kaph-dark-primary);
  transform: translateY(-2px);
}

@media (max-width: 600px) {
  .form-row {
    flex-direction: column;
  }
}

.form-status {
  margin-top: 1.5rem;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--kaph-gold);
  display: none;
  animation: fadeIn 0.5s ease forwards;
}

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

/* Footer */
.footer {
  background-color: var(--kaph-dark-secondary);
  color: var(--kaph-white);
  padding: 4rem 0 2rem 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-brand {
  max-width: 300px;
}

.footer-brand .logo {
  margin-bottom: 1rem;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  gap: 4rem;
}

.link-group h5 {
  color: var(--kaph-white);
  margin-bottom: 1.5rem;
  font-size: 1rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.link-group a {
  display: block;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0.8rem;
  font-size: 0.9rem;
}

.link-group a:hover {
  color: var(--kaph-gold);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
}

/* Responsive Design */
@media (max-width: 992px) {
  .about-grid,
  .cube-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .meaning-container {
    flex-direction: column;
  }

  .meaning-text {
    text-align: center;
  }

  .meaning-text .highlight {
    text-align: left;
  }

  .profile-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .profile-image {
    flex: 0 0 auto;
    width: 100%;
    max-width: 300px;
  }

  .skill-tags {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background-color: var(--kaph-dark-primary);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: right var(--transition-fast);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
  }

  .nav-links.active {
    right: 0;
  }

  .mobile-menu-btn {
    display: block;
  }

  .mobile-menu-btn.active .bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .mobile-menu-btn.active .bar:nth-child(2) {
    opacity: 0;
  }
  .mobile-menu-btn.active .bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .hero-intro {
    text-align: left;
    padding-left: 1rem;
  }

  .timeline::before {
    left: 0;
  }

  .timeline-item {
    padding-left: 30px;
  }

  .timeline-item::before {
    left: -6px;
  }

  .footer-links {
    flex-direction: column;
    gap: 2rem;
  }
}
