/* about.css */

.about-hero {
  position: relative;
  width: 100%;
  min-height: clamp(650px, 100vh, 1000px);
  margin-top: 0;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 86px;
}

@media (max-width: 768px) {
  .about-hero {
    margin-top: 0;
    padding-top: 54px;
  }
}

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

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

.about-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 40%, transparent 100%);
  pointer-events: none;
}

.about-hero-gradient-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 250px;
  background: linear-gradient(to top, #DCD8CE 0%, transparent 100%);
  pointer-events: none;
}

.about-hero-grid {
  position: relative;
  z-index: 1;
}

.about-hero-content {
  max-width: 900px;
  /* Increased to accommodate larger heading on two lines */
  color: rgba(248, 245, 238, 0.85);
  padding-left: var(--hero-text-shift);
  padding-right: 20px;
}

.about-hero-content h1 {
  font: 500 clamp(40px, 4.5vw, 64px) / 1.05 "Bricolage Grotesque", sans-serif;
  letter-spacing: -0.05em;
  margin-bottom: 48px;
}

.about-hero-content p {
  font: 400 clamp(16px, 1.2vw, 21px) / 1.38 "Inter Tight", sans-serif;
  max-width: 600px;
  margin-bottom: 36px;
  color: inherit;
  letter-spacing: 0.006em;
}

.linkedin-btn {
  background-color: rgba(241, 241, 241, 0.88);
  color: #000;
  font-family: "Geist", sans-serif;
  border-radius: 0;
  padding: 16px 52px;
  letter-spacing: -0.02em;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.2s ease, background-color 0.2s ease;
  backdrop-filter: blur(8px);
}

.linkedin-btn:hover {
  background-color: #fff;
  opacity: 1;
  color: #000;
}

.about-stats {
  background-color: #DCD8CE;
  padding: 160px 0 100px;
  position: relative;
  z-index: 2;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
}

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

.stat-item h3 {
  color: #333;
  text-align: center;
  font-family: "Nyght Serif", "Instrument Serif", serif;
  font-size: clamp(28px, 3.8vw, 46px);
  font-style: italic;
  font-weight: 300;
  line-height: 0.8;
  margin: 0 0 16px 0;
}

.stat-item h3 i {
  font-style: italic;
}

.stat-item p {
  text-align: center;
  font: 400 clamp(15px, 1.1vw, 19px) / 1.38 "Inter Tight", sans-serif;
  color: var(--muted);
  letter-spacing: 0.006em;
  margin: 0;
}

/* Bio Section */
.about-bio {
  background-color: #F8F5EE;
  padding: 80px 0 160px;
}

.bio-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 80px;
  align-items: center;
}

.bio-content {
  padding-left: 60px;
}

.bio-content h2 {
  font: 500 clamp(36px, 4vw, 56px) / 1.1 "Bricolage Grotesque", sans-serif;
  color: #4A4A4A;
  margin-bottom: 32px;
  letter-spacing: -0.04em;
}

.bio-content p {
  font: 400 clamp(16px, 1.2vw, 21px) / 1.38 "Inter Tight", sans-serif;
  color: var(--muted);
  letter-spacing: 0.01em;
  margin-bottom: 24px;
  max-width: 600px;
}

.bio-image {
  position: relative;
  display: flex;
  justify-content: center;
}

.bio-image img {
  width: 100%;
  max-width: 450px;
  height: auto;
  transform: rotate(3deg);
  border: 10px solid #DCD8CE;
}

@media (max-width: 1200px) {
  .bio-grid {
    gap: 40px;
  }
}

@media (max-width: 992px) {
  .about-bio {
    padding: 100px 0;
  }

  .bio-grid {
    grid-template-columns: 1fr;
    gap: 60px;
    text-align: center;
  }

  .bio-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-left: 0;
  }

  .bio-content h2 {
    text-align: center;
  }

  .bio-content p {
    text-align: left;
    /* Keep text left aligned as per screenshot pattern */
    width: 100%;
  }

  .bio-image img {
    transform: rotate(3deg);
    max-width: 85%;
  }
}


.about-podcast {
  position: relative;
  width: 100%;
  line-height: 0;
  overflow: hidden;
  background-color: var(--bg);
}

.about-podcast img {
  width: 100%;
  height: auto;
  display: block;
}

.podcast-fade-top {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 140px;
  background: linear-gradient(to bottom, var(--bg) 0%, rgba(177, 182, 179, 0.8) 30%, transparent 100%);
  z-index: 2;
  pointer-events: none;
}

/* Site footer styles are now global in styles.css */

.podcast-fade-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 200px;
  background: linear-gradient(to top, var(--bg) 0%, transparent 100%);
  z-index: 2;
  pointer-events: none;
}

@media (max-width: 1200px) {
  .about-hero-content h1 {
    font-size: clamp(28px, 3.5vw, 42px);
  }

  .about-hero-content p {
    font-size: clamp(12px, 0.9vw, 14px);
    font-weight: 400;
  }

  .stat-item p {
    font-family: "Bricolage Grotesque", sans-serif;
    font-size: clamp(14px, 3.5vw, 17px);
    line-height: 1.45;
    letter-spacing: -0.5px;
    color: rgba(0, 0, 0, 0.65);
    text-transform: capitalize;
  }
}

@media (max-width: 992px) {
  .about-hero-content {
    max-width: 500px;
  }
}

@media (max-width: 768px) {
  .about-hero {
    min-height: 85vh;
    /* Avoid excessive height on mobile */
    align-items: flex-end;
    padding-bottom: 60px;
  }

  .about-hero-bg img {
    object-position: 65% center;
    /* Keep subject properly framed on narrow mobile screens */
  }

  .about-hero-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
  }

  .about-hero-content {
    max-width: 100%;
    padding: 0 20px;
    margin: 0 auto;
    text-align: center;
  }

  .about-hero-content h1 {
    font-size: clamp(26px, 8vw, 32px);
    line-height: 1.1;
  }

  .about-hero-content p {
    font-size: 14px;
    margin: 0 auto 32px auto;
    opacity: 0.9;
  }

  .linkedin-btn {
    width: 100%;
    text-align: center;
    padding: 14px 40px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }

  .about-stats {
    padding: 80px 0 80px;
  }

  .about-podcast img {
    height: 380px;
    object-fit: cover;
    object-position: center;
  }

  .podcast-fade-top {
    height: 80px;
  }

  .podcast-fade-bottom {
    height: 80px;
  }

  .about-value-journey {
    padding: 80px 0 80px;
  }

  .journey-heading {
    margin-bottom: 48px;
    font-size: clamp(28px, 6vw, 36px);
  }

  /* New carousel responsive */
  .story-carousel-new {
    border-radius: 0;
    /* fully edge-blended on mobile too */
  }

  .sc-image-section {
    aspect-ratio: 3 / 2;
    /* taller than 4:3 — better for portraits on narrow screens */
  }

  /* Mobile per-image face positioning */
  .sc-image-slide[data-index="0"] img {
    object-position: center 40%;
  }

  /* Increased from 25% to shift picture up */
  .sc-image-slide[data-index="1"] img {
    object-position: center 55%;
  }

  /* Increased from 38% to shift picture up */
  .sc-image-slide[data-index="2"] img {
    object-position: center 28%;
  }

  .sc-image-slide[data-index="3"] img {
    object-position: center 20%;
  }

  .sc-image-slide[data-index="4"] img {
    object-position: center 22%;
  }

  .sc-image-slide[data-index="5"] img {
    object-position: 55% 25%;
  }

  .sc-image-slide[data-index="6"] img {
    object-position: center 35%;
  }

  .sc-content-section {
    padding: 1.75rem 1.5rem 2rem;
  }

  .sc-story-text {
    font-size: 15px;
  }

  .sc-arrow {
    width: 36px;
    height: 36px;
  }

  #about-page .site-footer {
    padding-top: 160px;
    padding-bottom: 24px;
  }

  #about-page .closing h2 {
    font-size: clamp(24px, 6.5vw, 32px);
    margin-bottom: 40px;
    line-height: 1.25;
  }

  #about-page .closing h2 br {
    display: none;
  }

  #about-page .closing small {
    margin-top: 60px;
  }
}

/* ─── What We Care About – Scroll-Pin Section ─────────────────────────────── */

/* Tall wrapper: N×100vh gives 1 full "scroll page" per slide.
   The sticky section stays locked in the viewport
   while the user scrolls through this extra height. */
.values-scroll-wrapper {
  position: relative;
}

.values-scroll-wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 12vh; /* Adjust height for fade length */
  background: linear-gradient(to bottom, #F8F5EE 0%, transparent 100%);
  z-index: 10;
  pointer-events: none;
}

.values-scroll-wrapper::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 12vh; /* Adjust height for fade length */
  background: linear-gradient(to top, var(--bg) 0%, transparent 100%);
  z-index: 10;
  pointer-events: none;
}

.about-values.dark-section {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  background-color: #000;
  color: #fff;
  display: flex;
  align-items: center;
}

/* Two-column pin layout */
.values-pin-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  width: min(1400px, 90vw);
  margin: 0 auto;
}

/* Left: title + step list */
.values-left-container {
  display: grid;
}

.values-pin-left {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  gap: 56px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.values-pin-left.active {
  opacity: 1;
  pointer-events: auto;
}

.values-main-title {
  font: 500 clamp(32px, 4vw, 48px) / 1.1 "Bricolage Grotesque", sans-serif;
  color: #fff;
  letter-spacing: -0.04em;
  margin: 0;
}

/* Numbered step list */
.values-step-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  counter-reset: vsl;
}

.vsl-item {
  counter-increment: vsl;
  display: flex;
  align-items: center;
  gap: 16px;
  font: 400 clamp(14px, 1.05vw, 17px) / 1.4 "Inter Tight", sans-serif;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.01em;
  cursor: default;
  transition: color 0.4s ease;
}

.vsl-item::before {
  content: counter(vsl, decimal-leading-zero);
  font: 500 13px / 1 "Geist Mono", monospace;
  color: rgba(255, 255, 255, 0.25);
  transition: color 0.4s ease;
  flex-shrink: 0;
}

.vsl-item.active {
  color: #fff;
}

.vsl-item.active::before {
  color: rgba(255, 255, 255, 0.6);
}

/* Right: slide stack */
.values-pin-right {
  position: relative;
  min-height: 260px;
}

.value-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.value-slide.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.value-slide-counter {
  display: block;
  font: 400 12px / 1 "Geist Mono", monospace;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.value-slide h3 {
  font: 500 clamp(36px, 4.5vw, 64px) / 1.1 "Bricolage Grotesque", sans-serif;
  color: #fff;
  letter-spacing: -0.04em;
  margin: 0 0 28px;
}

.value-slide p {
  font: 400 clamp(15px, 1.15vw, 19px) / 1.6 "Inter Tight", sans-serif;
  color: rgba(255, 255, 255, 0.75);
  max-width: 520px;
  margin: 0;
  letter-spacing: 0.005em;
}

/* ─── Responsive: disable pin on small screens ─────────────────────────────── */
.mobile-group-title {
  display: none;
}

.mobile-carousel-controls {
  display: none;
}

.mobile-group-container {
  display: contents; /* Ensure absolute positioning works on desktop */
}

@media (max-width: 768px) {
  /* Collapse the tall wrapper back to auto height */
  .values-scroll-wrapper {
    height: auto !important;
  }

  .values-scroll-wrapper::before,
  .values-scroll-wrapper::after {
    height: 100px;
  }

  .about-values.dark-section {
    position: static;
    height: auto;
    padding: 80px 0;
  }

  .values-pin-layout {
    grid-template-columns: 1fr;
    gap: 0; /* Remove gap so right panel takes over smoothly */
  }

  .values-left-container {
    display: none; /* Hide the overlapping left panels on mobile */
  }

  .mobile-carousel-controls {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-bottom: 32px;
  }

  .mobile-carousel-controls button {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease, border-color 0.3s ease;
  }

  .mobile-carousel-controls button:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
  }

  .mobile-carousel-controls button:disabled,
  .mobile-carousel-controls button[style*="opacity: 0.5"] {
    cursor: not-allowed;
  }

  .mobile-group-container {
    display: none;
    flex-direction: column;
    gap: 40px;
    animation: fadeInGroup 0.5s ease forwards;
  }

  .mobile-group-container.mobile-active {
    display: flex;
  }

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

  .mobile-group-title {
    display: block;
    font: 500 clamp(32px, 8vw, 40px) / 1.1 "Bricolage Grotesque", sans-serif;
    color: #fff;
    margin: 0 0 16px;
    letter-spacing: -0.04em;
  }

  /* Stack all slides as regular blocks */
  .values-pin-right {
    position: static;
    min-height: unset;
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .value-slide {
    position: static;
    opacity: 1;
    transform: none;
    transition: none;
    pointer-events: auto;
  }

  .value-slide h3 {
    font-size: clamp(28px, 7vw, 40px);
  }
}

@media (max-width: 992px) and (min-width: 769px) {
  .values-pin-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .values-left-container {
    min-height: 180px; /* give some height when stacked */
  }

  .values-step-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px 32px;
  }
}