/* ============================================
   CSS Custom Properties
   ============================================ */
:root {
  /* Colors */
  --body-color: #272b3d;
  --black-3: #151720;
  --black-4: #1e2130;
  --white: #ffffff;
  --white-smoke: #f5f5f0;
  --black-border: rgba(39, 43, 61, 0.2);
  --text-muted: #888;
  
  /* Typography */
  --font-primary: 'Manrope', sans-serif;
  --font-secondary: 'PT Serif', serif;
  --base-size: 1vw;
  --line-height: 1.2em;
  
  /* Spacing */
  --container-max: 1600px;
  --container-padding: 8em;
  --section-padding: 5em;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-medium: 0.3s ease;
  --transition-smooth: 0.6s cubic-bezier(.075, .82, .165, 1);
}

/* ============================================
   Base Styles
   ============================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--body-color);
  color: var(--white);
  font-family: var(--font-primary);
  font-size: clamp(14px, 1.2vw, 18px); /* Min 14px, max 18px */
  line-height: var(--line-height);
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Remove default margins */
h1, h2, h3, h4, h5, h6, p, ul, li {
  margin: 0;
  padding: 0;
}

/* Remove default list styles */
ul {
  list-style: none;
}

/* ============================================
   Typography
   ============================================ */

/* Hero heading */
.hero-heading {
  color: var(--white);
  text-align: left;
  letter-spacing: -0.04em;
  font-size: clamp(3.5rem, 10vw, 7rem);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 1.5rem;
}

/* Section headings */
.section-heading {
  font-size: 6em;
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1em;
  margin-bottom: 0.8em;
}

/* Uppercase label */
.uppercase-label {
  letter-spacing: 0.35em;
  text-transform: uppercase;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1em;
  color: var(--white);
  margin-bottom: 1.5rem;
}

.uppercase-label.left-aligned {
  text-align: left;
  align-self: flex-start;
}

/* Body text */
.content-text {
  font-size: 1.5em;
  line-height: 1.5em;
  max-width: 42em;
}

/* ============================================
   Container & Layout
   ============================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

@media (max-width: 991px) {
  .container {
    padding-left: 4em;
    padding-right: 4em;
  }
}

@media (max-width: 767px) {
  .container {
    padding-left: 2em;
    padding-right: 2em;
  }
}

.section {
  background-color: var(--body-color);
  color: var(--white);
  padding: var(--section-padding) 0;
}

/* ============================================
   Navbar
   ============================================ */
/* ===== NAVBAR BASE ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  height: 5em;
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  backdrop-filter: blur(12px) saturate(180%);
  background: linear-gradient(
    to bottom,
    rgba(21, 23, 32, 0.45),
    rgba(21, 23, 32, 0.3)
  );
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.navbar.nav-hidden {
  transform: translateY(-100%);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2.5em;
}

/* ===== LOGO ===== */
.nav-logo {
  font-family: 'Manrope', sans-serif;
  font-size: 1.4em;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: opacity 0.2s ease;
}

.nav-logo:hover {
  opacity: 0.8;
}

/* ===== NAV LINKS (Desktop) ===== */
.nav-links {
  display: flex;
  align-items: stretch;
  height: 100%;
  gap: 0;
}

.nav-link {
  font-family: 'Manrope', sans-serif;
  font-size: 1em;
  font-weight: 500;
  color: #fff;
  text-decoration: none;
  padding: 0 1.2em;
  height: 100%;
  display: flex;
  align-items: center;
  transition: background-color 0.2s ease;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* ===== DROPDOWN ===== */
.nav-dropdown {
  position: relative;
  height: 100%;
  display: flex;
  align-items: stretch;
}

.nav-dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 0.4em;
}

.dropdown-arrow {
  transition: transform 0.2s ease;
}

.nav-dropdown:hover .dropdown-arrow,
.nav-dropdown.is-open .dropdown-arrow {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.5em);
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  min-width: 240px;
  padding: 0.5em;
  background: linear-gradient(
    to bottom,
    rgba(21, 23, 32, 0.95),
    rgba(21, 23, 32, 0.9)
  );
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.is-open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-item {
  display: block;
  padding: 0.8em 1em;
  font-family: 'Manrope', sans-serif;
  font-size: 0.95em;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  border-radius: 8px;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.dropdown-item:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* ===== MEGA MENU (Work) ===== */
/* Mega menu is positioned relative to viewport, below full navbar — not the trigger */
.nav-mega-wrap .nav-dropdown-menu {
  display: none; /* Old dropdown menu hidden when mega is used */
}

.nav-mega-menu {
  position: fixed;
  top: 5em; /* Navbar height — sits directly below entire navbar */
  left: 0;
  right: 0;
  width: 100%;
  padding: 0 3.5em; /* Horizontal padding so content doesn't touch edges */
  box-sizing: border-box;
  transform: translateY(-12px);
  background: var(--black-3); /* Solid dark background for readability */
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top: none;
  border-radius: 0 0 16px 16px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  pointer-events: none;
  z-index: 499; /* Below navbar (500) so bar stays on top */
}

.nav-mega-wrap:hover .nav-mega-menu,
.nav-mega-wrap.is-open .nav-mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.nav-mega-inner {
  padding: 1.5rem 1.25rem;
}

.nav-mega-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
}

.mega-menu-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.85rem;
  border-radius: 12px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.9);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.mega-menu-card:hover {
  background-color: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.mega-menu-card-thumb {
  width: 56px;
  height: 56px;
  min-width: 56px;
  min-height: 56px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--black-4);
}

.mega-menu-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mega-menu-card-title {
  font-family: var(--font-primary);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 0;
  color: inherit;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mega-menu-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.mega-menu-card-tags .tag-pill {
  background-color: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.65rem;
  padding: 0.25rem 0.5rem;
}

.mega-menu-card:hover .mega-menu-card-tags .tag-pill {
  background-color: rgba(255, 255, 255, 0.22);
  color: #fff;
}

/* Tablet: 3 columns × 2 rows */
@media (max-width: 1024px) {
  .nav-mega-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Desktop only: hide mega on mobile (mobile uses existing mobile menu) */
@media (max-width: 768px) {
  .nav-mega-menu {
    display: none !important;
  }
}

/* ===== HAMBURGER ===== */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  padding: 4px;
  background: none;
  border: none;
  cursor: pointer;
}

.hamburger-line {
  display: block;
  width: 100%;
  height: 2px;
  background-color: #fff;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Hamburger animation to X */
.hamburger.is-active .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.is-active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger.is-active .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===== MOBILE MENU ===== */
/* Menu is inside .navbar in the DOM. Navbar has backdrop-filter, which creates a containing
   block for fixed descendants, so position:fixed would be relative to the 5em-tall navbar
   and the menu would get zero height. Use position:absolute + top:100% + height so the menu
   is positioned and sized relative to the navbar and fills the viewport below it. */
.mobile-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: calc(100vh - 5em);
  min-height: calc(100svh - 5em);
  z-index: 499; /* Just below navbar (500) so menu appears above hero/content */
  background: linear-gradient(
    to bottom,
    rgba(21, 23, 32, 0.98),
    rgba(21, 23, 32, 0.95)
  );
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s;
  overflow-y: auto;
}

.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-inner {
  padding: 2em;
  display: flex;
  flex-direction: column;
  gap: 0.25em;
}

.mobile-menu-label {
  font-family: 'Manrope', sans-serif;
  font-size: 0.75em;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 1em 0 0.5em;
  margin: 0;
}

.mobile-menu-link {
  font-family: 'Manrope', sans-serif;
  font-size: 1.25em;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  padding: 0.75em 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: color 0.2s ease;
}

.mobile-menu-link:hover {
  color: #fff;
}

.mobile-menu-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.15);
  margin: 1em 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .hamburger {
    display: flex;
  }
  
  .nav-inner {
    padding: 0 1.5em;
  }
}

/* Prevent body scroll when mobile menu is open */
body.menu-open {
  overflow: hidden;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  z-index: 5;
  background-color: var(--body-color);
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  min-height: 100vh;
  display: flex;
  position: relative;
  overflow: visible;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.1);
  transition: opacity 1.2s ease, transform 4s ease;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}

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

.hero-controls {
  position: absolute;
  bottom: 2em;
  right: 2em;
  z-index: 15;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.hero-location {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  text-align: right;
  margin-bottom: 0.75rem;
  transition: opacity 0.4s ease;
}

.hero-dots {
  display: flex;
  gap: 0.75em;
}

@media (max-width: 768px) {
  .hero-controls {
    bottom: 1.5em;
    right: 1.5em;
  }
  
  .hero-dots {
    gap: 0.5em;
  }
  
  .hero-dot {
    width: 8px;
    height: 8px;
  }
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.5);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s ease;
}

.hero-dot:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.3);
}

.hero-dot.active {
  background: var(--white);
  border-color: var(--white);
}

/* Gradient overlay for text readability */
.hero-background::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  background: 
    radial-gradient(
      ellipse at bottom right,
      rgba(0, 0, 0, 0.55) 0%,  /* was 0.45 */
      rgba(0, 0, 0, 0) 45%
    ),
    linear-gradient(
      135deg,
      rgba(0, 0, 0, 0.75) 0%,   /* was 0.65 */
      rgba(0, 0, 0, 0.5) 50%,   /* was 0.4 */
      rgba(0, 0, 0, 0.4) 100%   /* was 0.3 */
    );
  pointer-events: none;
}

.hero-sizing {
  z-index: 10;
  flex-direction: column;
  flex: 1;
  justify-content: center;
  align-items: flex-start;
  padding-top: 10rem;
  padding-bottom: 6rem;
  display: flex;
  position: relative;
}

@media (max-width: 768px) {
  .hero-sizing {
    padding-top: 8rem;
    padding-bottom: 4rem;
  }
}

.hero-content {
  color: var(--white);
  text-align: left;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  max-width: 49em;
  margin-left: 20px;
  padding-top: 0;
  display: flex;
}

/* Tagline */
.hero-tagline {
  max-width: 520px;
  font-size: clamp(1rem, 2vw, 1.35rem);
  line-height: 1.6;
  color: var(--white);
  margin: 0;
}

.hero-tagline.left-aligned {
  align-self: flex-start;
}

/* Entry Animations */
.hero-animate-1 {
  animation: fadeInUp 0.8s ease-out 0.3s both;
}

.hero-animate-2 {
  animation: fadeInUp 0.8s ease-out 0.5s both;
}

.hero-animate-3 {
  animation: fadeInUp 0.8s ease-out 0.7s both;
}

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

/* Pause slideshow on hero hover */
.hero:hover .hero-slide {
  transition-duration: 3s;
}

/* ============================================
   Work/Case Study Cards
   ============================================ */
/* ============================================
   Work/Case Studies Section
   ============================================ */
.work-section {
  background-color: #ffffff;
  padding: 0; /* No padding top or bottom */
  border-bottom: 1px solid #e0e0e0;
}

.work-container {
  width: 100%;
  max-width: none;
  padding: 0;
  margin: 0;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-bottom: 0;
  align-items: stretch;
}

.work-card {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
  margin: 0;
  border: 1px solid #e0e0e0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.work-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.work-card-image {
  position: relative;
  aspect-ratio: 1 / 1; /* Square — tallest option */
  overflow: hidden;
  background: #e0e0e0;
}

.work-card-image:not(:has(img[style*="display"])):has(img) {
  /* default — keep aspect-ratio */
}

/* Collapse image container when img fails to load */
.work-card-image:has(img[style*="display: none"]),
.work-card-image:has(img[style*="display:none"]) {
  aspect-ratio: unset;
  height: 0;
  padding: 0;
  overflow: hidden;
}

.work-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.work-card:hover .work-card-image img {
  transform: scale(1.03);
}

/* Hover overlay with Explore + */
.work-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.work-card:hover .work-card-overlay {
  opacity: 1;
}

.explore-text {
  color: white;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.explore-plus {
  color: white;
  font-size: 1.25rem;
  font-weight: 300;
}

.work-card-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 2rem;
  flex-grow: 1;
  background: #ffffff;
}

.work-card-text {
  max-width: 480px;
  flex-grow: 1;
}

.work-card-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #1a1a1a;
  line-height: 1.3;
}

.work-card-description {
  font-size: 1rem;
  font-weight: 400;
  color: #555;
  line-height: 1.6;
}

.work-card-tags {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: flex-start;
  margin-top: auto;
}

.tag-pill {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  background-color: #e8e8e8;
  color: #555;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 50px;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

/* Responsive */
@media (max-width: 1024px) {
  .work-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .work-grid {
    grid-template-columns: 1fr;
  }
  
  .work-section {
    padding: 4rem 0;
  }
}

/* ============================================
   Product Principles Grid
   ============================================ */
/* ============================================
   Product Principles Section
   ============================================ */
#principles, .principles-section {
  background-color: #ffffff;
  color: #1a1a1a;
  padding: 6rem 0;
}

.principles {
  padding: 6rem 0;
}

.principles-section h2,
.principles-section .section-heading,
.principles .section-heading {
  color: #272b3d; /* Dark navy text */
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 700;
  margin-bottom: 3rem;
}

.principles-section .container,
#principles .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.principles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem 2rem;
  max-width: none;  /* Remove any max-width on the grid itself */
  margin: 0;        /* Remove auto margins */
  padding: 0;       /* Grid shouldn't have its own padding */
}

.principle-card {
  border-top: 1px solid #d0d0d0; /* Light gray divider line */
  padding-top: 1.5rem;
}

.principle-emoji {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
  display: block;
}

.principle-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #272b3d;
  margin-bottom: 0.75rem;
}

.principle-description {
  font-size: 0.95rem;
  font-weight: 400;
  color: #555;
  line-height: 1.6;
}

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

/* ============================================
   Recommendations Section
   ============================================ */
.recommendations-section {
  background-color: #f5f5f5;
  padding: 6rem 0;
}

.recommendations-section .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.recommendations-section h2 {
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 700;
  color: #272b3d;
  margin-bottom: 4rem;  /* Was 3rem — match the spacing under "Product principles" */
  text-align: left;
  /* Title stays aligned with Product Principles */
}

.accordion-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: none;  /* Remove 950px — let it fill the container */
  margin: 0;        /* No centering needed anymore */
}

.accordion-item {
  border-top: 1px solid #d0d0d0;
}

.accordion-item:last-child {
  border-bottom: 1px solid #d0d0d0;
}

.accordion-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2.5rem 0;  /* Was 2rem — more breathing room */
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
}

.accordion-title-block {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding-right: 2rem;
}

.accordion-name {
  font-size: 1.35rem;  /* Match .principle-title */
  font-weight: 700;    /* Match .principle-title — make it bold */
  color: #272b3d;
}

.accordion-role {
  font-size: 0.8rem;
  font-weight: 500;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.accordion-icon {
  font-size: 1.75rem;
  font-weight: 300;
  color: #272b3d;
  transition: transform 0.3s ease;
}

.accordion-item.active .accordion-icon {
  transform: rotate(45deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  max-width: 900px;
  margin: 0 auto;
  padding: 1rem 0 0 0;
}

.accordion-item.active .accordion-content {
  max-height: 1000px; /* Large enough for content */
  padding: 1rem 0 2rem 0;
}

.accordion-content p {
  font-size: 1rem;
  line-height: 1.8;       /* Slightly more line height */
  color: #444;
  margin-bottom: 1.5rem;  /* Was 1rem — more space between paragraphs */
  max-width: 100%; /* Remove the old 800px max-width on paragraphs */
}

.accordion-content p:last-child {
  margin-bottom: 0;
}

.recommendations-cta {
  margin-top: 4rem;  /* More space above the LinkedIn button */
}

.button-link {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #272b3d;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 1rem 0;
  border-bottom: 2px solid #272b3d;
  transition: opacity 0.3s ease;
}

.button-link:hover {
  opacity: 0.6;
}

/* Text link with arrow — like LinkedIn recommendations */
.text-link {
  display: inline-block;
  font-size: 0.95em;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--body-color, #272b3d);
  text-decoration: none;
  padding-bottom: 0.5em;
  border-bottom: 1px solid currentColor;
  transition: opacity 0.3s ease;
}

.text-link:hover {
  opacity: 0.7;
}

/* Light section variant */
.bio-section .text-link {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.5);
}

.bio-section .text-link:hover {
  border-bottom-color: #fff;
  opacity: 1;
}

/* Responsive accordion */
@media (max-width: 768px) {
  .accordion-title-block {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    padding-right: 1rem;
  }
  
  .accordion-name {
    font-size: 1.35rem;
  }
}

/* ============================================
   Links and Buttons
   ============================================ */
a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.main-button {
  display: inline-flex;
  align-items: center;
  gap: 1em;
  padding: 1.5em 2.5em;
  border: 1px solid rgba(255, 255, 255, 0.25);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-size: 0.85em;
  transition: background-color var(--transition-fast), border-color var(--transition-fast);
}

.main-button:hover {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.5);
}

/* Primary CTA - filled */
.btn-primary,
.cta-primary {
  display: inline-block;
  padding: 1em 2em;
  background-color: #fff;
  color: var(--body-color, #272b3d);
  font-size: 0.85em;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-decoration: none;
  border: none;
  border-radius: 0;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-primary:hover,
.cta-primary:hover {
  background-color: var(--body-color, #272b3d);
  color: #fff;
  outline: 1px solid #fff;
}

/* Secondary CTA - outline (for Product Principles link) */
.btn-secondary,
.cta-secondary {
  display: inline-block;
  padding: 1em 2em;
  background-color: transparent;
  color: #fff;
  font-size: 0.85em;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.5);
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.btn-secondary:hover,
.cta-secondary:hover {
  border-color: #fff;
  background-color: rgba(255, 255, 255, 0.1);
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background-color: #272b3d;
  padding: 2rem 0;
  margin-bottom: 70vh; /* Match the reveal section height */
  position: relative;
  z-index: 1;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-message {
  font-size: 1rem;
  font-weight: 500;
  color: #fff;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.footer-link {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.footer-social {
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
}

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

/* Responsive — stack on mobile */
@media (max-width: 640px) {
  .footer-container {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .footer-links {
    justify-content: center;
  }
}

/* ============================================
   Footer Reveal Section
   ============================================ */
/* Reveal section - sits behind everything */
.footer-reveal {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 70vh; /* Taller to show more of the image */
  min-height: 500px; /* Ensure minimum height on short screens */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: -1;
  overflow: hidden;
  background-color: #1a1a1a; /* Fallback while image loads */
}

.footer-reveal-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  z-index: 0;
}

/* Add overlay for text readability */
.footer-reveal::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 1;
}

.footer-reveal-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.footer-reveal-tagline {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  color: #fff; /* White text on photo */
  text-align: center;
  padding: 0 2rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3); /* Subtle shadow for legibility */
}

.footer-reveal-copyright {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8); /* Slightly transparent white */
  padding-bottom: 2rem;
  text-align: center;
  position: relative;
  z-index: 2;
}

/* Ensure all main content has a background to cover the reveal */
.hero {
  position: relative;
  z-index: 1;
}

.work-section {
  position: relative;
  z-index: 1;
}

.principles {
  position: relative;
  z-index: 1;
}

.recommendations-section {
  position: relative;
  z-index: 1;
}

/* Responsive */
@media (max-width: 768px) {
  .footer-reveal {
    height: 60vh;
    min-height: 400px;
  }
  
  .footer {
    margin-bottom: 60vh;
  }
  
  .footer-reveal-tagline {
    font-size: 1.75rem;
  }
}

/* ============================================
   About Page Styles
   ============================================ */

/* About Hero — Positioned Layout */
.about-hero {
  background-color: #272b3d; /* Fallback */
  min-height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 8em 4em 4em;
}

/* Slideshow (reuse homepage styles) */
.about-hero .hero-slideshow {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.about-hero .hero-slideshow .slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.about-hero .hero-slideshow .slide.active {
  opacity: 1;
}

.about-hero .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(21, 23, 32, 0.5) 0%,
    rgba(21, 23, 32, 0.3) 50%,
    rgba(21, 23, 32, 0.5) 100%
  );
  z-index: 1;
}

/* Title — Top Left */
.about-hero-title {
  z-index: 2;
}

.about-hero-title h1 {
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--white);
  margin: 0;
}

/* Subtitle — Under title, left aligned */
.about-hero-subtitle {
  font-size: 1.2em;
  font-weight: 400;
  line-height: 1.5;
  max-width: 450px;
  margin-top: 1.5em;
  color: var(--white);
}

/* Scroll Button — Bottom Left */
.scroll-down-button {
  position: absolute;
  bottom: 4em;
  left: 4em;
  display: flex;
  align-items: center;
  gap: 1em;
  z-index: 2;
  text-decoration: none;
  color: var(--white, #fff);
  transition: opacity 0.3s ease;
}

.scroll-down-button:hover {
  opacity: 0.8;
}

.scroll-text {
  font-size: 0.85em;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
}

.scroll-circle {
  width: 60px;
  height: 60px;
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.scroll-down-button:hover .scroll-circle {
  background-color: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.8);
}

/* Slideshow Controls Container */
.about-hero .slideshow-controls {
  position: absolute;
  bottom: 4em;
  right: 4em;
  display: flex;
  align-items: center;
  gap: 1.25em;
  z-index: 2;
}

.hero-controls .slideshow-controls {
  display: flex;
  align-items: center;
  gap: 1.25em;
}

.slideshow-dots {
  display: flex;
  gap: 0.75em;
}

.slideshow-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.slideshow-dots .dot:hover {
  border-color: rgba(255, 255, 255, 1);
}

.slideshow-dots .dot.active {
  background-color: #fff;
  border-color: #fff;
}

/* Pause Button */
.slideshow-pause {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: transparent;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.slideshow-pause:hover {
  border-color: #fff;
  background-color: rgba(255, 255, 255, 0.1);
}

.slideshow-pause:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* Pause/Play icon states */
.slideshow-pause .icon-play {
  display: none;
}

.slideshow-pause[aria-pressed="true"] .icon-pause {
  display: none;
}

.slideshow-pause[aria-pressed="true"] .icon-play {
  display: block;
}

/* Mobile: Stack vertically */
@media (max-width: 767px) {
  .about-hero {
    padding: 7em 2em 3em;
  }
  
  .about-hero .slideshow-controls {
    bottom: 2em;
    right: 2em;
  }
}

/* Bio Section */
.bio-section {
  background-color: var(--black-3, #151720);
  padding: 6em var(--container-padding, 4em);
}

.bio-text {
  font-size: 1.4em;
  line-height: 1.6;
  max-width: 900px;
}

.bio-text strong {
  font-weight: 600;
}

.bio-text p {
  margin-bottom: 1.5em;
}

.bio-text p:last-child {
  margin-bottom: 0;
}

/* Resume Section */
.resume-section {
  padding: 6em 4em;  /* Restore horizontal padding */
  background-color: #f5f5f0;
  color: var(--body-color, #272b3d);
  overflow: hidden;
}

/* Resume container for centering */
.resume-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2em;  /* Additional inner padding if needed */
}

/* Section title */
.resume-section .section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--body-color, #272b3d);
  margin-bottom: 2em;
}

.resume-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4em;
  max-width: 100%;  /* Contained within resume-container */
  margin: 0;
}

/* Resume CTA */
.resume-cta {
  margin-top: 4em;
  padding-top: 2em;
  border-top: 1px solid rgba(39, 43, 61, 0.1);
}

.resume-cta p {
  font-size: 1em;
  color: rgba(39, 43, 61, 0.6);
  margin-bottom: 0.75em;
}

.resume-cta .text-link {
  display: inline-block;
  font-size: 0.9em;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--body-color, #272b3d);
}

.resume-column {
  display: flex;
  flex-direction: column;
  gap: 3em;
}

@media (max-width: 768px) {
  .resume-section {
    padding: 4em 2em;
  }

  /* On mobile, flatten the two-column grid into a single vertical flow.
     Use display: contents on the column wrappers so each .resume-block
     becomes a direct flex item that we can reorder with `order`. */
  .resume-grid {
    display: flex;
    flex-direction: column;
    gap: 3em;
  }

  .resume-column {
    display: contents;
  }

  /* Mobile reading order:
     1. Experience
     2. AI Products
     3. Education
     4. Skills
     5. Tools
     6. Languages */
  .resume-block--experience   { order: 1; }
  .resume-block--ai-products  { order: 2; }
  .resume-block--education    { order: 3; }
  .resume-block--skills       { order: 4; }
  .resume-block--tools        { order: 5; }
  .resume-block--languages    { order: 6; }
}

/* Each resume block becomes its own grid item */
.resume-block {
  margin-bottom: 0;
}

.resume-label {
  font-size: 0.75em;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(39, 43, 61, 0.5); /* Muted dark */
  margin-bottom: 1em;
}

.resume-item {
  margin-bottom: 1.25em;
}

.resume-item-title {
  font-weight: 600;
  font-size: 1em;
  line-height: 1.3;
  color: var(--body-color, #272b3d);
}

.resume-item-subtitle {
  color: rgba(39, 43, 61, 0.6);
  font-size: 0.95em;
}

.resume-item-title a,
.resume-item-subtitle a {
  color: #d94334;
  text-decoration: underline;
  text-decoration-color: #d94334;
  text-underline-offset: 2px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.resume-item-title a:hover,
.resume-item-subtitle a:hover {
  color: #272b3d;
  text-decoration-color: #272b3d;
}

/* Skills/Tools Pills */
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
  max-width: 100%;
}

.pill {
  background-color: var(--black-4, #1e2130);
  padding: 0.4em 0.8em;
  border-radius: 2em;
  font-size: 0.85em;
  white-space: nowrap;
  color: var(--white);
}

/* Pills on light background */
.resume-section .pill {
  background-color: rgba(39, 43, 61, 0.1);
  color: var(--body-color, #272b3d);
}


/* Skill category sublabels */
.resume-sublabel {
  font-size: 0.7em;
  font-weight: 500;
  color: rgba(39, 43, 61, 0.5);
  margin-top: 1em;
  margin-bottom: 0.5em;
}

.resume-sublabel:first-of-type {
  margin-top: 0;
}

/* Ensure pills container has spacing between skill groups */
.resume-block .pills {
  margin-bottom: 0.5em;
}

/* Linked skill pills — resting state */
.pill--linked {
  position: relative;
  background-color: rgba(39, 43, 61, 0.15);
  color: #272b3d;
  font-weight: 600;
  border-bottom: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

/* Linked skill pills — hover/focus state */
.pill--linked:hover,
.pill--linked:focus-visible {
  background-color: #272b3d;
  color: #ffffff;
  outline: none;
}

.pill-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: #272b3d;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 10;
}

.pill-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: #272b3d;
}

.pill--linked:hover .pill-tooltip,
.pill--linked:focus-visible .pill-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.pills {
  overflow: visible;
}

.resume-block {
  overflow: visible;
}

.resume-section {
  overflow-x: hidden;
  overflow-y: visible;
}

/* Languages */
.language-item {
  display: flex;
  justify-content: space-between;
  padding: 0.5em 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  color: var(--white);
}

.language-item:last-child {
  border-bottom: none;
}

.language-level {
  text-align: right;
}

/* Languages on light background */
.resume-section .language-item {
  border-bottom-color: rgba(39, 43, 61, 0.1);
  color: var(--body-color, #272b3d);
}

/* Personal Section - Dark background to contrast footer */
.personal-section {
  padding: 3em 0;  /* Top and bottom padding */
  background-color: var(--black-3, #151720);
}

/* Bento Grid */
.bento-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: auto auto auto;
  gap: 4px;
  max-width: 100%;
  margin: 0;
}

/* Grid placement */
.bento-item:nth-child(1) { grid-column: 1; grid-row: 1; }
.bento-item:nth-child(2) { grid-column: 2; grid-row: 1; }
.bento-item:nth-child(3) { grid-column: 3; grid-row: 1; }
.bento-item:nth-child(4) { grid-column: 1; grid-row: 2; }  /* Text */
.bento-item:nth-child(5) { grid-column: 2 / 4; grid-row: 2; }  /* Skydiving */
.bento-item:nth-child(6) { grid-column: 1 / 4; grid-row: 3; }  /* Full width */

/* Bento Items */
.bento-item {
  border-radius: 0;
  overflow: hidden;
  position: relative;
}

.bento-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.bento-item:hover img {
  transform: scale(1.03);
}

/* Row 1 images: Square 1:1 */
.bento-item:nth-child(1) img,
.bento-item:nth-child(2) img,
.bento-item:nth-child(3) img {
  aspect-ratio: 1 / 1;
}

/* Row 2 skydiving image: Match text cell height */
.bento-item:nth-child(5) img {
  aspect-ratio: 2 / 1;
}

/* Full width image */
.bento-item.bento-full img {
  aspect-ratio: 21 / 9;
}

/* Text Cell */
.bento-text {
  background-color: var(--black-3, #151720);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2em;
  height: 100%;
}

.bento-text p {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 500;
  line-height: 1.4;
  color: #fff;
}

/* Staggered Scroll Reveal */
.bento-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: var(--reveal-delay, 0ms);
}

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

/* Mobile — 2-column grid, each item gets its own row so text and images don't overlap */
@media (max-width: 768px) {
  .personal-section {
    padding-left: 0;
    padding-right: 0;
  }

  .bento-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    gap: 0.5rem;
    padding: 0 6vw;
    max-width: 100%;
  }

  .bento-item:nth-child(1) { grid-column: 1; grid-row: 1; }
  .bento-item:nth-child(2) { grid-column: 2; grid-row: 1; }
  .bento-item:nth-child(3) { grid-column: 1 / -1; grid-row: 2; }
  .bento-item:nth-child(4) { grid-column: 1 / -1; grid-row: 3; }
  .bento-item:nth-child(5) { grid-column: 1 / -1; grid-row: 4; }
  .bento-item:nth-child(6) { grid-column: 1 / -1; grid-row: 5; }

  .bento-item:nth-child(1) img,
  .bento-item:nth-child(2) img {
    aspect-ratio: 1 / 1;
  }

  .bento-item:nth-child(3) img {
    aspect-ratio: 2 / 1;
  }

  .bento-item:nth-child(5) img {
    aspect-ratio: 16 / 9;
  }

  .bento-item.bento-full img {
    aspect-ratio: 21 / 9;
  }

  .bento-text {
    padding: 2em 0;
    min-height: 0;
  }

  .bento-text p {
    font-size: clamp(1.125rem, 4vw, 1.5rem);
    padding: 0 0.5em;
  }

  /* Bio section only - resume has its own mobile padding above */
  .bio-section {
    padding-left: 2em;
    padding-right: 2em;
  }
}

/* Phone — single column for less cramped layout */
@media (max-width: 479px) {
  .bento-grid {
    grid-template-columns: 1fr;
    padding: 0 6vw;
    gap: 0.5rem;
  }

  .bento-item:nth-child(1) { grid-column: 1; grid-row: 1; }
  .bento-item:nth-child(2) { grid-column: 1; grid-row: 2; }
  .bento-item:nth-child(3) { grid-column: 1; grid-row: 3; }
  .bento-item:nth-child(4) { grid-column: 1; grid-row: 4; }
  .bento-item:nth-child(5) { grid-column: 1; grid-row: 5; }
  .bento-item:nth-child(6) { grid-column: 1; grid-row: 6; }

  .bento-item:nth-child(1) img,
  .bento-item:nth-child(2) img,
  .bento-item:nth-child(3) img {
    aspect-ratio: 4 / 3;
  }

  .bento-item:nth-child(5) img {
    aspect-ratio: 16 / 9;
  }

  .bento-item.bento-full img {
    aspect-ratio: 16 / 9;
  }

  .bento-text p {
    font-size: 1.125rem;
  }
}
