/* About page — builds on home-v2.css (header, buttons, footer, tokens) */

/* ---------- Hero ---------- */

.about-hero {
  position: relative;
  min-height: 88vh;
  min-height: 88svh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  background: #1b2a33 url("../assets/about-us-img/Bek-ruby-together.jpg") center 35% / cover no-repeat;
}

.about-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 18, 26, 0.5) 0%,
    rgba(10, 18, 26, 0.1) 35%,
    rgba(10, 18, 26, 0.85) 100%
  );
}

.about-hero .container {
  position: relative;
  padding-bottom: 72px;
}

.about-hero h1 {
  font-size: clamp(38px, 6vw, 72px);
  max-width: 860px;
  margin-bottom: 18px;
}

.about-hero p {
  font-size: clamp(16px, 1.8vw, 19px);
  max-width: 620px;
  opacity: 0.92;
  font-weight: 300;
  margin-bottom: 30px;
}

/* ---------- Why we started: timeline ---------- */

.why-started {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: start;
}

.why-photo {
  position: sticky;
  top: 110px;
}

.why-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.why-photo::before {
  content: "";
  position: absolute;
  inset: 24px 24px -24px -24px;
  border: 2px solid var(--orange);
  border-radius: var(--radius);
  z-index: -1;
}

.timeline {
  list-style: none;
  position: relative;
  margin-top: 36px;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 21px;
  width: 2px;
  background: repeating-linear-gradient(to bottom, var(--line) 0 8px, transparent 8px 14px);
}

.timeline li {
  position: relative;
  padding-left: 70px;
  padding-bottom: 30px;
}

.timeline li:last-child {
  padding-bottom: 0;
}

.timeline-num {
  position: absolute;
  left: 0;
  top: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--card);
  border: 2px solid var(--line);
  display: grid;
  place-items: center;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  transition: all 0.3s;
}

.timeline li.visible .timeline-num {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}

.timeline-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 20px 24px;
  box-shadow: var(--shadow);
}

.timeline-meta {
  font-size: 13px;
  font-weight: 600;
  color: var(--green-dark);
  margin-bottom: 6px;
}

.timeline-card p {
  color: var(--ink-soft);
  font-size: 15.5px;
}

/* ---------- Bek's & Ruby's stories ---------- */

.story-row {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: center;
}

.story-row.flip .story-img {
  order: 2;
}

.story-img img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.story-copy p {
  color: var(--ink-soft);
  margin-bottom: 16px;
}

.story-copy p:empty {
  display: none;
}

.story-copy p:first-of-type {
  font-size: 18px;
  color: var(--ink);
}

.story-copy p:last-child {
  font-family: "Fraunces", Georgia, serif;
  font-style: italic;
  font-size: 20px;
  color: var(--ink);
  border-left: 3px solid var(--orange);
  padding-left: 18px;
  margin-top: 24px;
}

:lang(zh-Hant) .story-copy p:last-child {
  font-family: inherit;
  font-style: normal;
}

/* ---------- Team ---------- */

.team-intro {
  white-space: pre-line;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.member {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.member:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(22, 33, 43, 0.13);
}

.member img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.member-body {
  padding: 20px 22px 24px;
}

.member-body h3 {
  font-size: 24px;
  margin-bottom: 4px;
}

.member-role {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--orange-dark);
  margin-bottom: 10px;
  line-height: 1.45;
}

.member-body p {
  font-size: 14px;
  color: var(--ink-soft);
}

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 960px) {
  .why-started,
  .story-row {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .why-photo {
    position: relative;
    top: 0;
    max-width: 440px;
  }

  .story-row.flip .story-img {
    order: 0;
  }
}

@media (max-width: 640px) {
  .about-hero .container {
    padding-bottom: 44px;
  }

  .why-photo::before {
    inset: 14px 14px -14px -14px;
  }

  .timeline::before {
    left: 17px;
  }

  .timeline li {
    padding-left: 54px;
  }

  .timeline-num {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }

  .timeline-card {
    padding: 16px 18px;
  }

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

/* Keyboard focus ring */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--orange, #fa7436);
  outline-offset: 3px;
}

/* Respect "reduce motion" */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Short screens (phone held sideways): keep the top banner's text clear of the
   floating header; the banner simply grows taller instead of hiding text */
.hero .container,
.about-hero .container {
  padding-top: 104px;
}

/* Phones get a smaller copy of the top photo */
@media (max-width: 760px) {
  .about-hero {
    background-image: url("../assets/hero-phone/Bek-ruby-together.jpg");
  }
}

/* Anything marked "hidden" stays hidden, even buttons (used for the closed "Our team" part) */
[hidden] {
  display: none !important;
}
