.about-page {
  --about-green: #244c43;
  --about-gold: #e9bf69;
  --about-line: #d8c9b2;
  --about-gap: clamp(14px, 2vw, 24px);
}

.about-main {
  max-width: 1380px;
  padding: clamp(18px, 3vw, 38px) clamp(16px, 5vw, 72px) clamp(60px, 8vw, 110px);
}

.about-main :is(h1, h2, p, figure) { margin: 0; }
.about-main :is(h1, h2) { color: var(--about-green); }
.about-main [id] { scroll-margin-top: 90px; }
.about-main :is(a, button):focus-visible { outline: 3px solid #28574b; outline-offset: 4px; }

.about-hero {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.25fr);
  align-items: stretch;
  overflow: hidden;
  border-radius: 26px;
  background: var(--about-green);
}

.about-hero-copy {
  padding: clamp(28px, 5vw, 68px);
  align-self: center;
  color: #fff6e8;
}

.about-hero-copy h1 {
  margin-bottom: 20px;
  color: inherit;
  font-size: clamp(48px, 5.9vw, 88px);
}

.about-hero-copy p { max-width: 32ch; font-size: clamp(17px, 2vw, 21px); }
.about-hero-copy a { display: inline-flex; min-height: 44px; align-items: center; margin-top: 18px; font-weight: 650; text-underline-offset: .25em; }
.about-hero-copy a:focus-visible { outline-color: #fff6e8; }
.about-hero > img { display: block; width: 100%; height: 100%; min-height: 0; object-fit: cover; object-position: 50% 38%; }

.about-section { margin-top: clamp(48px, 8vw, 96px); }
.about-section h2 { font-size: clamp(36px, 5vw, 64px); }
.about-section-heading { margin-bottom: 24px; }
.about-section-heading p { margin-top: 10px; }

.team-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--about-gap);
  margin: clamp(24px, 3.2vw, 46px) 0 0;
  padding: 0;
  list-style: none;
}

.team-card {
  --team-name-size: clamp(19px, 1.7vw, 26px);
  display: grid;
  grid-template-rows: 1fr minmax(calc(2.06 * var(--team-name-size) + 24px), auto);
  width: 100%;
  height: 100%;
  padding: 0;
  overflow: hidden;
  border: 1px solid #cda651;
  border-radius: 21px;
  background: var(--about-gold);
  color: #352c21;
  text-align: left;
}

.team-grid li { position: relative; }
.team-grid li:nth-child(1) { --team-tilt: -7deg; }
.team-grid li:nth-child(2) { --team-tilt: -3deg; }
.team-grid li:nth-child(4) { --team-tilt: 3deg; }
.team-grid li:nth-child(5) { --team-tilt: 6deg; }

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .team-card { transition: transform .45s cubic-bezier(.22, 1, .36, 1); }
  .team-grid li:hover { z-index: 1; }
  .team-grid li:hover .team-card { transform: translateY(-8%) rotate(var(--team-tilt, 0deg)); }
}

.team-portrait {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 110% 110%, transparent 46%, #734e361e 46.5%, #734e361e 47%, transparent 47.5%),
    radial-gradient(ellipse at 105% 115%, transparent 60%, #734e3629 60.5%, #734e3629 61%, transparent 61.5%),
    linear-gradient(155deg, #f0cf87, var(--about-gold) 70%, #d9a651);
}

.team-portrait img,
.team-portrait canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-portrait img { opacity: 0; }

.team-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  height: 100%;
  min-height: 57px;
  padding: 12px clamp(9px, 1.2vw, 16px);
  border-top: 1px solid #92683646;
  font: 400 var(--team-name-size)/1.03 Baskervville, Georgia, serif;
}

.team-icon { flex: 0 0 18px; font: 600 21px/1 Bricolage, sans-serif; text-align: center; }
.team-icon::before { content: "+"; }
.team-card[aria-pressed="true"] .team-icon::before { content: "−"; }

.about-story {
  display: grid;
  grid-template-columns: minmax(0, .75fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(22px, 6vw, 76px);
  padding: clamp(18px, 4vw, 44px);
  border: 1px solid var(--about-line);
  border-radius: 26px;
  background: #fffaf1;
}

.about-story img { display: block; width: 100%; max-height: 360px; object-fit: cover; object-position: 50% 30%; border-radius: 18px; }
.about-story p { max-width: 38ch; margin-top: 14px; font-size: clamp(17px, 2vw, 21px); }
.about-story a { display: inline-flex; align-items: center; margin-top: 12px; min-height: 44px; color: var(--about-green); font-weight: 650; text-underline-offset: .25em; }

.about-testimonials .about-section-heading { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px; }
.about-testimonials .about-section-heading a { display: inline-flex; align-items: center; min-height: 44px; color: var(--about-green); font-weight: 650; text-underline-offset: .25em; }
.testimonials-wall { columns: 3 260px; column-gap: var(--about-gap); }
.testimonials-wall figure {
  break-inside: avoid;
  margin: 0 0 var(--about-gap);
  padding: clamp(16px, 2.5vw, 28px);
  border: 1px solid var(--about-line);
  border-radius: 18px;
  background: #fffaf1;
}
.testimonials-wall figure:nth-child(4n + 2) { background: #f1e4ca; }
.testimonials-wall figure:nth-child(4n + 4) { background: #edf0e6; }
.testimonials-wall figcaption { display: flex; align-items: center; gap: 10px; color: var(--about-green); font-weight: 700; }
.testimonials-wall .review-avatar { display: grid; flex: 0 0 36px; height: 36px; place-items: center; border-radius: 50%; background: var(--about-green); color: #fffaf1; font-size: 13px; }
.testimonials-wall .review-stars { margin-top: 10px; color: #88501c; letter-spacing: .12em; }
.testimonials-wall blockquote { margin: 10px 0 14px; overflow-wrap: anywhere; }
.testimonials-wall .review-source { color: #4b5b4f; font-size: 14px; text-underline-offset: .2em; }

@media (max-width: 900px) {
  .team-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 650px) {
  .about-hero, .about-story { grid-template-columns: 1fr; }
  .about-hero > img { height: auto; }
  .about-story img { max-height: 275px; }
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team-label { min-height: 51px; }
}
