/* ==========================================================================
   THROPIC CAPITAL - DESIGN SYSTEM & BRAND STYLING
   ========================================================================== */

/* Custom Properties / Tokens */
:root {
  /* Color Palette */
  --color-primary: #1d3d42;        /* Dark Teal / Green */
  --color-primary-rgb: 29, 61, 66;
  --color-accent: #2a4b54;         /* Rich Slate Blue */
  --color-bg-light: #f5f7f8;       /* Warm Off-white / Light Gray */
  --color-bg-dark: #12181a;        /* Deep Carbon Black */
  --color-text-dark: #1e2629;      /* Charcoal for titles */
  --color-text-muted: #5e6b70;     /* Muted lead copy */
  --color-text-light: #ffffff;     /* White text */
  --color-link-blue: #5bc0be;      /* Portfolio blue link tint */
  
  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-bg-header: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-blur: blur(15px);
  
  /* Fonts */
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  /* Transitions */
  --transition-speed-fast: 0.25s;
  --transition-speed-normal: 0.4s;
  --transition-speed-slow: 0.8s;
  --ease-premium: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  min-height: 100%;
  font-family: var(--font-sans);
  background-color: var(--color-bg-light);
  color: var(--color-text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

/* ==========================================================================
   NAVIGATION HEADER (GLASSMORPHIC STICKY)
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: all var(--transition-speed-normal) var(--ease-premium);
}

.site-header.scrolled {
  background: rgba(29, 61, 66, 0.9);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

.site-header.header-hidden {
  transform: translateY(-100%);
}

/* Adjust layout on non-home pages to match standard header styles */
body.not-on-home .site-header {
  background: var(--color-primary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.25rem 2rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

/* Navigation Menus */
.nav-menu {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.left-nav {
  justify-content: flex-start;
}

.right-nav {
  justify-content: flex-end;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--color-text-light);
  transition: width var(--transition-speed-fast) var(--ease-premium);
}

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

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

body.not-on-home .nav-link {
  color: rgba(255, 255, 255, 0.8);
}

/* Header Branding Logo */
.header-logo-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo-link {
  display: inline-block;
  height: 75px;
}

.desktop-logo,
.mobile-logo {
  height: 100%;
  width: auto;
  object-fit: contain;
  transition: transform var(--transition-speed-normal) var(--ease-premium);
  border-radius: 2px;
}

.logo-link:hover .desktop-logo {
  transform: scale(1.02);
}

.mobile-logo {
  display: none;
}

/* Login Button */
.login-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--color-text-light);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 0.6rem 1.8rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition-speed-fast) var(--ease-premium);
}

.login-btn:hover {
  background: var(--color-text-light);
  color: var(--color-primary);
  border-color: var(--color-text-light);
  transform: translateY(-1px);
}

body.not-on-home .login-btn:hover {
  color: var(--color-accent);
}

/* Hamburger toggle */
.mobile-nav-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
  z-index: 110;
}

.mobile-nav-toggle .bar {
  width: 25px;
  height: 2px;
  background-color: var(--color-text-light);
  transition: all var(--transition-speed-fast) var(--ease-premium);
}

/* ==========================================================================
   MOBILE OVERLAY MENU
   ========================================================================== */
.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--color-primary);
  z-index: 99;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-speed-normal) var(--ease-premium);
}

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

.mobile-nav-menu {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.mobile-nav-link {
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: var(--color-text-light);
}

.mobile-login-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: var(--color-text-light);
  font-family: var(--font-sans);
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 0.8rem 2.5rem;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 1rem;
}

/* ==========================================================================
   MAIN VIEWS & ROUTING SYSTEM
   ========================================================================== */
.content-container {
  width: 100%;
  min-height: 100vh;
  position: relative;
}

.content-view {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 100vh;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity var(--transition-speed-slow) var(--ease-premium),
              transform var(--transition-speed-slow) var(--ease-premium),
              visibility var(--transition-speed-slow) var(--ease-premium);
  z-index: 1;
  overflow: hidden;
}

.content-view.active {
  position: relative;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  z-index: 2;
}

/* ==========================================================================
   HOME VIEW (HERO SECTION)
   ========================================================================== */
#home-view {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 10%;
  min-height: 100vh;
  background-color: var(--color-bg-dark);
}

/* Dynamic WebGL-style Canvas and Playback Button */
.hero-bg-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  overflow: hidden;
}

#hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: -2;
  background-color: #111a1d;
}

.playback-toggle-btn {
  position: absolute;
  bottom: 40px;
  right: 40px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(18, 24, 26, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  transition: all var(--transition-speed-fast) var(--ease-premium);
  outline: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.playback-toggle-btn:hover {
  background: rgba(29, 61, 66, 0.85);
  border-color: rgba(255, 255, 255, 0.35);
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.playback-toggle-btn .btn-icon {
  position: relative;
  width: 14px;
  height: 14px;
  display: block;
}

/* Pause Icon State (Two lines) */
.playback-toggle-btn .btn-icon::before,
.playback-toggle-btn .btn-icon::after {
  content: '';
  position: absolute;
  top: 0;
  width: 4px;
  height: 14px;
  background-color: var(--color-text-light);
  transition: all 0.25s var(--ease-premium);
}

.playback-toggle-btn .btn-icon::before {
  left: 2px;
}

.playback-toggle-btn .btn-icon::after {
  right: 2px;
}

/* Play Icon State (Convert to Triangle) */
.playback-toggle-btn.paused .btn-icon::before {
  left: 1px;
  width: 0;
  height: 0;
  border-left: 12px solid var(--color-text-light);
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  background-color: transparent;
}

.playback-toggle-btn.paused .btn-icon::after {
  opacity: 0;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 50%, rgba(29, 61, 66, 0.45) 0%, rgba(18, 24, 26, 0.85) 100%);
  z-index: -1;
}

.hero-content {
  max-width: 750px;
  z-index: 10;
  color: var(--color-text-light);
  margin-top: 5rem;
}

.hero-title {
  font-family: Georgia, serif;
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 2rem;
  color: #ffffff;
}

.hero-subtitle {
  font-family: "Times New Roman", Times, serif;
  font-size: 19.2px; /* 1.2rem */
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.75;
  max-width: 600px;
  margin-bottom: 3rem;
}

/* Portfolio Button (Link) Styling */
.hero-cta-wrapper {
  margin-top: 1rem;
}

.portfolio-btn {
  display: inline-block;
  font-family: "Times New Roman", Times, serif;
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--color-link-blue);
  border-bottom: 1.5px solid var(--color-link-blue);
  padding: 0.4rem 0.2rem;
  transition: all var(--transition-speed-fast) var(--ease-premium);
}

.portfolio-btn:hover {
  color: var(--color-text-light);
  border-color: var(--color-text-light);
  transform: translateX(3px);
}

/* ==========================================================================
   ABOUT VIEW (OUR STORY)
   ========================================================================== */
#about-view {
  background-color: var(--color-bg-light);
  padding: 10rem 2rem 6rem 2rem;
}

.about-container, 
.team-container {
  max-width: 1200px;
  margin: 0 auto;
}

.about-header,
.team-header {
  text-align: center;
  margin-bottom: 5rem;
}

.tagline {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  display: block;
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 400;
  color: var(--color-text-dark);
}

/* About Content Grid layout */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-img-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.about-partner-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform var(--transition-speed-slow) var(--ease-premium);
}

.about-img-wrapper:hover .about-partner-img {
  transform: scale(1.03);
}

.about-details {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.story-card {
  background: white;
  padding: 2.5rem;
  border-radius: 6px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
  border-left: 3px solid var(--color-accent);
}

.about-description {
  font-size: 1.1rem;
  color: var(--color-text-dark);
  font-weight: 300;
  line-height: 1.8;
}

/* Premium colored quote card */
.quote-card {
  background-color: var(--color-accent);
  color: var(--color-text-light);
  padding: 3rem;
  border-radius: 6px;
  position: relative;
  box-shadow: 0 15px 35px rgba(29, 61, 66, 0.15);
  overflow: hidden;
}

.quote-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(0,0,0,0.15) 100%);
  pointer-events: none;
}

.quote-icon {
  font-family: var(--font-serif);
  font-size: 6rem;
  line-height: 1;
  position: absolute;
  top: -10px;
  left: 20px;
  opacity: 0.1;
  pointer-events: none;
}

.quote-text {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 400;
  line-height: 1.6;
  margin-bottom: 1.8rem;
  position: relative;
  z-index: 2;
}

.quote-author {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 400;
  display: block;
}

/* ==========================================================================
   TEAM VIEW (OUR TEAM GRID)
   ========================================================================== */
#team-view {
  background-color: var(--color-bg-light);
  padding: 10rem 2rem 6rem 2rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4rem;
  align-items: stretch;
}

.team-card {
  background: white;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-speed-normal) var(--ease-premium);
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.team-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.07);
}

.member-image-wrapper {
  position: relative;
  width: 100%;
  padding-top: 100%; /* 1:1 Aspect Ratio square box */
  overflow: hidden;
  background-color: var(--color-primary);
}

.member-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-speed-slow) var(--ease-premium);
}

.member-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(29, 61, 66, 0.4) 0%, transparent 100%);
  opacity: 0.8;
  transition: opacity var(--transition-speed-normal) var(--ease-premium);
}

.team-card:hover .member-img {
  transform: scale(1.04);
}

.team-card:hover .member-overlay {
  opacity: 0.4;
}

.member-info {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.member-name {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--color-text-dark);
  margin-bottom: 0.35rem;
}

.member-role {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

.member-bio {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  font-weight: 300;
}

/* ==========================================================================
   LOGIN MODAL POPUP (PREMIUM GLASSBLUR)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(18, 24, 26, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 200;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-speed-normal) var(--ease-premium);
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: white;
  width: 100%;
  max-width: 440px;
  padding: 3.5rem 3rem;
  border-radius: 8px;
  position: relative;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);
  transform: scale(0.92) translateY(15px);
  transition: transform var(--transition-speed-normal) var(--ease-premium);
}

.modal-overlay.open .modal-card {
  transform: scale(1) translateY(0);
}

.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 2rem;
  background: transparent;
  border: none;
  color: var(--color-text-muted);
  cursor: pointer;
  line-height: 1;
  transition: color var(--transition-speed-fast) var(--ease-premium);
}

.modal-close:hover {
  color: var(--color-text-dark);
}

.modal-logo-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

.modal-logo {
  height: 80px;
  width: auto;
  border-radius: 2px;
}

.modal-title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  text-align: center;
  color: var(--color-text-dark);
  margin-bottom: 2rem;
  font-weight: 400;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
  color: var(--color-text-muted);
}

.form-group input {
  padding: 0.85rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  background-color: var(--color-bg-light);
  color: var(--color-text-dark);
  outline: none;
  transition: all var(--transition-speed-fast) var(--ease-premium);
}

.form-group input:focus {
  border-color: var(--color-primary);
  background-color: white;
  box-shadow: 0 0 0 3px rgba(29, 61, 66, 0.08);
}

.submit-login-btn {
  background-color: var(--color-primary);
  color: var(--color-text-light);
  border: none;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 1rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition-speed-fast) var(--ease-premium);
  margin-top: 0.5rem;
}

.submit-login-btn:hover {
  background-color: var(--color-accent);
  box-shadow: 0 8px 20px rgba(42, 75, 84, 0.2);
  transform: translateY(-1px);
}

.form-links {
  display: flex;
  justify-content: space-between;
  margin-top: 1rem;
}

.form-link {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  border-bottom: 1px solid transparent;
}

.form-link:hover {
  color: var(--color-primary);
  border-color: var(--color-primary);
}

/* ==========================================================================
   FOOTER (MUTED ELEGANCE)
   ========================================================================== */
.site-footer {
  width: 100%;
  background-color: var(--color-bg-light);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding: 3rem 2rem;
  text-align: center;
}

.copyright {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-text-muted);
  font-weight: 400;
}

/* Override background for home view footer to match dark theme */
body.on-home .site-footer {
  background-color: var(--color-bg-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

body.on-home .copyright {
  color: rgba(255, 255, 255, 0.4);
}

/* ==========================================================================
   PAGE ENTRY ANIMATIONS (MICRO-ANIMATIONS)
   ========================================================================== */
.animate-fade-up {
  opacity: 0;
  transform: translateY(30px);
}

.animate-fade-up-delayed {
  opacity: 0;
  transform: translateY(30px);
}

.animate-fade-up-delayed-more {
  opacity: 0;
  transform: translateY(30px);
}

.animate-fade-left {
  opacity: 0;
  transform: translateX(-40px);
}

.animate-fade-right {
  opacity: 0;
  transform: translateX(40px);
}

/* Class applied when a section becomes active to trigger structural animations */
.active .animate-fade-up {
  animation: fadeUp 0.8s var(--ease-premium) forwards;
}

.active .animate-fade-up-delayed {
  animation: fadeUp 0.8s var(--ease-premium) 0.2s forwards;
}

.active .animate-fade-up-delayed-more {
  animation: fadeUp 0.8s var(--ease-premium) 0.4s forwards;
}

.active .animate-fade-left {
  animation: fadeLeft 0.8s var(--ease-premium) 0.1s forwards;
}

.active .animate-fade-right {
  animation: fadeRight 0.8s var(--ease-premium) 0.1s forwards;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeRight {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ==========================================================================
   MEDIA QUERIES (COMPACT RESPONSIVE GRID)
   ========================================================================== */

/* Tablet Layouts */
@media (max-width: 1024px) {
  .header-inner {
    grid-template-columns: 1fr auto;
  }
  
  .left-nav, .right-nav {
    display: none;
  }
  
  .mobile-nav-toggle {
    display: flex;
  }
  
  .desktop-logo {
    display: none;
  }
  
  .mobile-logo {
    display: block;
    height: 60px;
  }
  
  .logo-link {
    height: 60px;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  
  .team-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

/* Mobile Screen Layouts */
@media (max-width: 580px) {
  .hero-content {
    margin-top: 3rem;
  }
  
  #home-view {
    padding: 0 6%;
  }
  
  #about-view, #team-view {
    padding: 8rem 1.25rem 4rem 1.25rem;
  }
  
  .about-header, .team-header {
    margin-bottom: 3.5rem;
  }
  
  .story-card {
    padding: 1.75rem;
  }
  
  .quote-card {
    padding: 2rem;
  }
  
  .quote-text {
    font-size: 1.2rem;
  }
  
  .member-info {
    padding: 1.75rem;
  }
  
  .modal-card {
    padding: 2.5rem 1.75rem;
    margin: 1rem;
  }
}

/* ==========================================================================
   SEPARATE PAGES SPECIFIC OVERRIDES (ABOUT & TEAM)
   ========================================================================== */

/* Header light-blue gradient for separate subpages */
body.not-on-home .site-header {
  background: linear-gradient(to bottom, rgba(162, 210, 223, 0.45) 0%, rgba(245, 247, 248, 0) 100%);
  border-bottom: none;
  box-shadow: none;
}

/* Navigation Links for Subpages */
body.not-on-home .nav-link {
  color: rgba(29, 61, 66, 0.75);
}

body.not-on-home .nav-link::after {
  background-color: var(--color-primary);
}

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

body.not-on-home .login-btn {
  color: var(--color-primary);
  border-color: rgba(29, 61, 66, 0.3);
}

body.not-on-home .login-btn:hover {
  background: var(--color-primary);
  color: var(--color-text-light);
  border-color: var(--color-primary);
}

body.not-on-home .mobile-nav-toggle .bar {
  background-color: var(--color-primary);
}

/* Page Entry Transitions (Direct CSS on Load) */
.animate-fade-up, 
.animate-fade-left, 
 
.animate-fade-right {
  transition: opacity 1s var(--ease-premium), transform 1s var(--ease-premium);
  will-change: transform, opacity;
}

/* --- ABOUT PAGE LAYOUT --- */
.about-hero-section {
  max-width: 1200px;
  margin: 1.5rem auto 8rem auto;
  padding: 0 2rem;
}

.about-overlap-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  position: relative;
}

.about-portrait-panel {
  grid-column: 1;
  z-index: 1;
  position: relative;
}

.about-portrait-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.06);
}

.about-quote-panel {
  grid-column: 2;
  margin-left: -20%; /* Negative margin draws card to overlap portrait */
  z-index: 2;
  position: relative;
}

/* Authentic quote box style matching Squarespace exactly */
.original-quote-card {
  background-color: var(--color-accent);
  color: white;
  padding: 4rem 3.5rem;
  border-radius: 4px;
  box-shadow: 0 20px 45px rgba(29, 61, 66, 0.2);
  position: relative;
}

.original-quote-card::before {
  content: '“';
  font-family: var(--font-serif);
  font-size: 8rem;
  line-height: 1;
  position: absolute;
  top: -20px;
  left: 20px;
  opacity: 0.08;
  pointer-events: none;
}

.original-quote-text {
  font-family: Georgia, serif;
  font-size: 35.2px; /* 2.2rem */
  font-weight: 400;
  line-height: 1.33;
  color: #ffffff;
  margin-bottom: 2rem;
}

.original-quote-author {
  font-family: "Times New Roman", Times, serif;
  font-size: 19.2px; /* 1.2rem */
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
  text-transform: none;
  letter-spacing: normal;
}

/* Narrative/Story Section above */
.about-story-section {
  width: 100%;
  padding: 10rem 2rem 4rem 2rem;
  background: transparent;
}

.about-story-container {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.story-tagline {
  font-family: Georgia, serif;
  font-size: 19.2px; /* 1.2rem */
  font-weight: 400;
  color: #000000;
  text-transform: none;
  letter-spacing: normal;
  display: block;
  margin-bottom: 2rem;
}

.story-paragraph {
  font-family: Georgia, serif;
  font-size: 35.2px; /* 2.2rem */
  font-weight: 400;
  line-height: 1.33;
  color: #000000;
}

/* --- TEAM PAGE LAYOUT --- */
.team-hero-section {
  max-width: 1200px;
  margin: 10rem auto 8rem auto;
  padding: 0 2rem;
}

.team-page-container {
  width: 100%;
}

.team-page-header {
  text-align: center;
  margin-bottom: 5.5rem;
}

.team-page-title {
  font-family: Georgia, serif;
  font-size: 44.8px; /* 2.8rem */
  font-weight: 400;
  color: #000000;
  letter-spacing: normal;
  margin: 0;
}

.team-page-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6rem 5.5rem;
}

.team-page-card {
  background: transparent;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  border: none;
  transition: none;
}

.team-page-card:hover {
  transform: none;
  box-shadow: none;
}

.team-member-img-wrapper {
  position: relative;
  width: 100%;
  padding-top: 100%; /* 1:1 Aspect ratio square */
  overflow: hidden;
  margin-bottom: 2.2rem;
  background-color: transparent;
}

.team-member-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-page-card:hover .team-member-img {
  transform: none;
}

.team-member-content {
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex-grow: 1;
}

.team-member-name {
  font-family: Georgia, serif;
  font-size: 35.2px; /* 2.2rem */
  font-weight: 400;
  color: #000000;
  margin: 0px 0px 8px 0px;
  text-align: center;
}

.team-member-role {
  font-family: "Times New Roman", Times, serif;
  font-size: 16px; /* 1rem */
  font-weight: 400;
  color: #000000;
  text-transform: none;
  letter-spacing: normal;
  margin: 16px 0px;
  display: block;
  text-align: center;
}

.team-member-bio {
  font-family: "Times New Roman", Times, serif;
  font-size: 19.2px; /* 1.2rem */
  font-weight: 400;
  line-height: 1.8;
  color: #000000;
  margin: 16px 0px 0px 0px;
  text-align: center;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
}

/* --- RESPONSIVE MEDIA SUBPAGE CORRECTIONS --- */
@media (max-width: 1024px) {
  .about-hero-section,
  .team-hero-section {
    margin-top: 9rem;
    padding: 0 1.5rem;
  }

  .about-story-section {
    padding: 7rem 1.5rem 3rem 1.5rem;
  }

  .story-paragraph {
    font-size: 1.85rem;
    line-height: 1.4;
  }

  .about-overlap-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about-quote-panel {
    grid-column: 1; /* Reset grid column to prevent implicit second column overflow */
    margin-left: 0;
    width: 100%;
  }

  .original-quote-text {
    font-size: 1.85rem;
    line-height: 1.4;
  }

  .team-page-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }
}

@media (max-width: 580px) {
  .about-story-section {
    padding: 7.5rem 1.5rem 3rem 1.5rem;
  }

  .story-paragraph {
    font-size: 1.5rem;
    line-height: 1.4;
  }

  .story-tagline {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .original-quote-card {
    padding: 2.5rem 2rem;
  }

  .original-quote-text {
    font-size: 1.25rem;
  }

  .team-member-content {
    padding: 1.75rem;
  }
}

