/* ==========================================================================
   about.css: About page
   ========================================================================== */

.about-section {
  padding: clamp(72px, 10vw, 128px) 0;
}

.about-section--tint {
  background: var(--cream-fill);
  border-block: 1px solid var(--cream-line);
}

/* ---------- Hero ---------- */
.about-hero {
  padding: calc(var(--nav-h) + 80px) 0 clamp(72px, 10vw, 120px);
  border-bottom: 1px solid var(--cream-line);
}

.about-hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 56px;
}

.about-hero__eyebrow {
  opacity: 0;
  animation: fadeUp 1s var(--ease-out) 0.1s both;
}

.about-hero__title {
  margin-top: 20px;
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 9vw, 7.5rem);
  line-height: 0.9;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--cream);
  opacity: 0;
  animation: fadeUp 1.1s var(--ease-out) 0.25s both;
}

.about-hero__lead {
  max-width: 640px;
  margin-top: 32px;
  font-size: 1.1rem;
  color: var(--cream-80);
  opacity: 0;
  animation: fadeUp 1.1s var(--ease-out) 0.5s both;
}

/* ---------- Hero visual ---------- */
.about-hero__visual {
  position: relative;
  width: 100%;
  max-width: 520px;
  aspect-ratio: 1;
  justify-self: end;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.about-hero__glow {
  position: absolute;
  width: 80%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(221, 220, 215, 0.16), transparent 65%);
  animation: breathe 6s ease-in-out infinite;
}

.about-hero__mark {
  position: relative;
  width: 62%;
  height: auto;
  opacity: 0;
  filter: blur(14px);
  animation:
    markIn 1.6s var(--ease-out) 0.3s forwards,
    markFloat 7s ease-in-out 2s infinite;
}

@keyframes markIn {
  to {
    opacity: 1;
    filter: blur(0);
  }
}

@keyframes markFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-14px);
  }
}

.about-hero__ring {
  position: absolute;
  width: 92%;
  aspect-ratio: 1;
  border: 1px dashed rgba(221, 220, 215, 0.35);
  border-radius: 50%;
  pointer-events: none;
  animation: spin 40s linear infinite;
}

.about-hero__slash {
  position: absolute;
  left: -30%;
  top: 50%;
  width: 160%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cream), transparent);
  opacity: 0;
  animation: slashSweep 6s var(--ease-in-out) infinite;
}

.about-hero__slash--b {
  height: 3px;
  background: linear-gradient(90deg,
      transparent,
      rgba(221, 220, 215, 0.5),
      transparent);
  animation-delay: 3s;
}

@keyframes slashSweep {
  0% {
    transform: translateY(-50%) rotate(-28deg) translateX(-70%);
    opacity: 0;
  }

  20% {
    opacity: 0.9;
  }

  80% {
    opacity: 0.9;
  }

  100% {
    transform: translateY(-50%) rotate(-28deg) translateX(70%);
    opacity: 0;
  }
}

/* ---------- Shared headings ---------- */
.about-title {
  margin-top: 14px;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 0.95;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--cream);
}

.about-text {
  max-width: 560px;
  margin-top: 20px;
  font-size: 1.05rem;
  color: var(--cream-80);
}

/* ---------- Story ---------- */
.about-story {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: start;
}

.about-story__text {
  display: grid;
  gap: 22px;
  font-size: 1.05rem;
  color: var(--cream-80);
}

/* ---------- Mission, vision, values ---------- */
.about-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.about-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 320px;
  padding: 40px 36px;
  border-radius: 24px;
  transition:
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.5s ease,
    border-color 0.4s ease;
}

.about-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px -28px rgba(0, 0, 0, 0.55);
}

.about-card__label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--cream-60);
  transition: color 0.5s ease;
}

.about-card__label::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.about-card__text {
  font-size: 1.12rem;
  line-height: 1.6;
  color: var(--cream);
  transition: color 0.5s ease;
}

.values {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: auto 0 0;
  padding: 0;
  list-style: none;
}

.values li {
  padding: 8px 16px;
  border: 1px solid var(--cream-line);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--cream);
}

/* ---------- Card 1: Mission ---------- */
.about-card:nth-child(1) {
  background: #e8e4d8;
  border: 1px solid #1c2a12;
}

.about-card:nth-child(1)::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: #2a3b19;
  transform: translateY(101%);
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.about-card:nth-child(1):hover::before {
  transform: translateY(0);
}

.about-card:nth-child(1),
.about-card:nth-child(1) * {
  color: #1c2a12 !important;
  -webkit-text-fill-color: #1c2a12 !important;
}

.about-card:nth-child(1):hover,
.about-card:nth-child(1):hover * {
  color: #e8e4d8 !important;
  -webkit-text-fill-color: #e8e4d8 !important;
}

/* ---------- Card 2: Vision ---------- */
.about-card:nth-child(2) {
  background: linear-gradient(160deg, #36502a 0%, #1f2e14 100%);
  border: 1px solid rgba(232, 228, 216, 0.14);
}

.about-card:nth-child(2),
.about-card:nth-child(2) * {
  color: #e8e4d8 !important;
  -webkit-text-fill-color: #e8e4d8 !important;
}

.about-card:nth-child(2)::after {
  content: 'Vision';
  position: absolute;
  right: -12px;
  bottom: -38px;
  z-index: -1;
  font-family: var(--font-display);
  font-size: 11rem;
  line-height: 1;
  letter-spacing: 0.02em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(232, 228, 216, 0.22);
  pointer-events: none;
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.about-card:nth-child(2):hover::after {
  transform: translateX(-18px) translateY(-6px);
}

.about-card:nth-child(2):hover {
  border-color: #c7e35c;
}

.about-card:nth-child(2):hover .about-card__label,
.about-card:nth-child(2):hover .about-card__label::before {
  color: #c7e35c !important;
  -webkit-text-fill-color: #c7e35c !important;
}

/* ---------- Card 3: Values ---------- */
.about-card:nth-child(3) {
  background: #ffffff;
  border: 1px solid rgba(221, 220, 215, 0.4);
}

.about-card:nth-child(3)::after {
  content: '';
  position: absolute;
  width: 240px;
  height: 240px;
  right: -100px;
  top: -100px;
  border-radius: 50%;
  background: #16210c;
  opacity: 0.04;
  z-index: -1;
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.about-card:nth-child(3):hover::after {
  transform: scale(1.35);
}

.about-card:nth-child(3):hover {
  border-color: #16210c;
  box-shadow: 0 30px 60px -28px rgba(0, 0, 0, 0.22);
}

.about-card:nth-child(3),
.about-card:nth-child(3) .about-card__label,
.about-card:nth-child(3) .about-card__label::before {
  color: #16210c !important;
  -webkit-text-fill-color: #16210c !important;
}

.about-card:nth-child(3) .values li {
  background: #16210c;
  border: 1px solid #16210c;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  transition: background 0.3s ease, transform 0.3s ease;
}

.about-card:nth-child(3) .values li:hover {
  background: #2a3b19;
  border-color: #2a3b19;
  transform: translateY(-2px);
}

/* ---------- Team profiles: Founder presentation ---------- */
.about-team__head {
  max-width: 760px;
  margin-bottom: 40px;
}

.about-team {
  position: relative;
  display: grid;
  gap: 140px;
}

.profile {
  position: relative;
  container-type: inline-size;
}

.profile:nth-child(1) {
  --len: 5;
}

.profile:nth-child(2) {
  --len: 6;
}

.profile:nth-child(3) {
  --len: 9;
}

.profile:nth-child(4) {
  --len: 6;
}

.profile__bigname {
  position: relative;
  z-index: 0;
  margin: 0;
  width: 100%;
  text-align: center;
  font-family: var(--font-display);
  font-size: max(4rem, min(calc(100cqw / (var(--len) * 0.44)), 42rem));
  line-height: 0.8;
  letter-spacing: 0.02em;
  color: var(--cream);
  white-space: nowrap;
  user-select: none;
  pointer-events: none;
}

.profile__body {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 560px);
  column-gap: 40px;
  align-items: start;
}

.profile__photo {
  position: relative;
  z-index: 2;
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  width: 100%;
  max-width: 560px;
  margin-top: calc(max(4rem, min(calc(100cqw / (var(--len) * 0.44)), 42rem)) * -0.5);
}

.profile__photo img {
  display: block;
  width: 100%;
  height: auto;
}

.profile__left {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  padding-top: 48px;
}

.profile__index {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  color: var(--cream-60);
}

.profile__name {
  margin-top: 10px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.4vw, 2.6rem);
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--cream);
}

.profile__role {
  margin-top: 12px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--cream-80);
}

.profile__focus {
  margin-top: 18px;
  font-size: 0.98rem;
  color: var(--cream-80);
}

/* Founder strengths along the bottom */
.profile__chips {
  grid-column: 1 / -1;
  grid-row: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
}

.profile__chips li {
  padding: 12px 22px;
  border: 1px solid var(--cream-line);
  border-radius: 999px;
  background: var(--cream-fill);
  color: var(--cream);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ---------- Strengths ---------- */
.strengths {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 56px;
  border-top: 1px solid var(--cream-line);
}

.strength {
  padding: 36px 32px 0 0;
}

.strength+.strength {
  padding-left: 32px;
  border-left: 1px solid var(--cream-line);
}

.strength__num {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.1em;
  color: var(--cream-60);
}

.strength__title {
  margin: 18px 0 14px;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 1.85vw, 1.85rem);
  line-height: 1.1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--cream);
  white-space: nowrap;
}

.strength__text {
  color: var(--cream-80);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .about-cards {
    grid-template-columns: 1fr;
  }

  .about-card {
    min-height: 0;
  }

  .about-story {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 900px) {
  .about-hero__grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about-hero__visual {
    justify-self: center;
    max-width: 320px;
  }

  .profile__body {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 28px;
  }

  .profile__photo,
  .profile__left,
  .profile__chips {
    grid-column: 1;
    grid-row: auto;
  }

  .profile__photo {
    order: -1;
    max-width: 420px;
    margin-top: calc(max(4rem, min(calc(100cqw / (var(--len) * 0.44)), 42rem)) * -0.5);
  }

  .profile__left {
    padding-top: 0;
  }

  .profile__chips {
    margin-top: 0;
  }

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

  .strength__title {
    white-space: normal;
  }

  .strength,
  .strength+.strength {
    padding: 32px 0;
    border-left: 0;
    border-bottom: 1px solid var(--cream-line);
  }
}

@media (max-width: 560px) {
  .about-card {
    padding: 30px 24px;
  }

  .about-card:nth-child(2)::after {
    font-size: 7rem;
  }

  .about-card:hover {
    transform: none;
  }

  .profile__chips li {
    padding: 10px 16px;
    font-size: 0.7rem;
  }
}