/* About page — Figma About: Desktop 126:5060 · Tablet 126:1913 · Mobile 126:2118 */

/* per-breakpoint copy (the three Figma frames use different wording) */
@media (max-width: 767px) { .only-t, .only-d { display: none !important; } }
@media (min-width: 768px) and (max-width: 1199px) { .only-m, .only-d, .hide-t { display: none !important; } }
@media (min-width: 1200px) { .only-m, .only-t { display: none !important; } }

/* ---------- 01 hero ---------- */
.a-hero { position: relative; height: 500px; overflow: hidden; display: flex; flex-direction: column; }
.a-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.a-hero::after { content: ""; position: absolute; inset: 0; background: var(--chalk); opacity: .55; }
.a-hero__in { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; text-align: center; }
.a-hero__title { color: var(--on-dark); }
.a-hero__line { position: relative; z-index: 1; flex: none; }
@media (min-width: 768px) { .a-hero { height: 560px; } }
@media (min-width: 1200px) { .a-hero { height: 640px; } .a-hero::after { opacity: .6; } }

/* ---------- 02 story ---------- */
.a-story__copy, .a-story__photo { grid-column: 1 / -1; }
.a-story__title { margin-top: 10px; }
.a-story__text { margin-top: 20px; display: flex; flex-direction: column; gap: 16px; color: var(--ink); }
.a-story__photo { margin-top: 32px; aspect-ratio: 342 / 420; max-height: 600px; width: 100%; }
@media (min-width: 768px) {
  .a-story .grid { align-items: start; }
  .a-story__copy { grid-column: 1 / 6; }
  .a-story__title { margin-top: 12px; }
  .a-story__text { margin-top: 24px; color: var(--ink-2); }
  .a-story__photo { grid-column: 6 / 9; margin-top: 0; aspect-ratio: 242 / 380; }
}
@media (min-width: 1200px) {
  .a-story .grid { align-items: center; }
  .a-story__copy { grid-column: 1 / 7; }
  .a-story__title { margin-top: 16px; }
  .a-story__text { gap: 20px; }
  .a-story__photo { grid-column: 8 / 13; aspect-ratio: 436 / 560; }
}

/* ---------- 03 stats ---------- */
.a-stats .grid { row-gap: 32px; }
.a-stat { grid-column: span 2; display: flex; flex-direction: column; gap: 8px; }
.a-stat .t-label { opacity: .8; }
@media (min-width: 768px) { .a-stat .t-label { opacity: 1; } }
@media (min-width: 1200px) { .a-stat { grid-column: span 3; } .a-stat .t-label { white-space: nowrap; } }

/* ---------- 04 gallery ---------- */
.a-gallery { background: var(--masa-2); }
.a-gallery__head { margin-bottom: var(--head-gap); }
.a-gal { display: grid; column-gap: var(--gutter); grid-template-columns: 1fr 1fr; aspect-ratio: 342 / 752;
  /* mobile lines: 0 200 216 260 276 496 512 752 */
  grid-template-rows: minmax(0, 200fr) minmax(0, 16fr) minmax(0, 44fr) minmax(0, 16fr) minmax(0, 220fr) minmax(0, 16fr) minmax(0, 240fr); }
.a-gal__item { display: block; min-height: 0; padding: 0; border: 0; background: none; border-radius: var(--r-photo); cursor: zoom-in; transition: transform .3s ease; }
.a-gal__item:hover { transform: translateY(-4px); }
.a-gal__item .photo { height: 100%; }
.g-a  { grid-column: 1; grid-row: 1 / 2; }
.g-c { grid-column: 1; grid-row: 3 / 6; }
.g-b    { grid-column: 1; grid-row: 7 / 8; }
.g-e        { grid-column: 2; grid-row: 1 / 4; }
.g-d    { grid-column: 2; grid-row: 5 / 6; }
.g-f     { grid-column: 2; grid-row: 7 / 8; }
@media (min-width: 768px) {
  .a-gallery { background: var(--masa); }
  /* tablet lines: 0 240 256 440 456 676 692 696 712 952 */
  .a-gal { aspect-ratio: 672 / 952;
    grid-template-rows: minmax(0, 240fr) minmax(0, 16fr) minmax(0, 184fr) minmax(0, 16fr) minmax(0, 220fr) minmax(0, 16fr) minmax(0, 4fr) minmax(0, 16fr) minmax(0, 240fr); }
  .g-a  { grid-column: 1; grid-row: 1 / 2; }
  .g-c { grid-column: 1; grid-row: 3 / 6; }
  .g-e        { grid-column: 1; grid-row: 7 / 10; }
  .g-b    { grid-column: 2; grid-row: 1 / 4; }
  .g-d    { grid-column: 2; grid-row: 5 / 8; }
  .g-f     { grid-column: 2; grid-row: 9 / 10; }
}
@media (min-width: 1200px) {
  .a-gallery__head { align-items: center; text-align: center; }
  /* desktop lines: 0 260 284 340 364 436 460 720 */
  .a-gal { grid-template-columns: repeat(3, 1fr); aspect-ratio: 1080 / 720;
    grid-template-rows: minmax(0, 260fr) minmax(0, 24fr) minmax(0, 56fr) minmax(0, 24fr) minmax(0, 72fr) minmax(0, 24fr) minmax(0, 260fr); }
  .g-a  { grid-column: 1; grid-row: 1 / 2; }
  .g-b    { grid-column: 1; grid-row: 3 / 8; }
  .g-c { grid-column: 2; grid-row: 1 / 6; }
  .g-d    { grid-column: 2; grid-row: 7 / 8; }
  .g-e        { grid-column: 3; grid-row: 1 / 4; }
  .g-f     { grid-column: 3; grid-row: 5 / 8; }
}

/* ---------- 05 CTA ---------- */
.a-cta { padding-block: 64px; }
.a-cta__panel { position: relative; overflow: hidden; border-radius: var(--r-card); min-height: 291px; display: flex; flex-direction: column; }
.a-cta__copy { flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 40px 20px 43px; }
.a-cta__copy .t-h2 { margin-top: 10px; }
.a-cta__btns { margin-top: 28px; width: 100%; display: flex; flex-direction: column; gap: 12px; }
.a-cta__paper { flex: none; }
.a-cta__kicker { color: var(--cream); opacity: .85; }
@media (min-width: 768px) {
  .a-cta { padding-block: 0 var(--section-pad); }
  .a-cta__ticker { flex: none; margin-top: 14px; }
  .a-cta__copy { padding: 26px 24px 57px; }
  .a-cta__copy .t-h2 { margin-top: 0; }
  .a-cta__btns { margin-top: 34px; width: auto; flex-direction: row; justify-content: center; }
}
@media (min-width: 1200px) {
  .a-cta__panel { min-height: 320px; background: radial-gradient(756px 256px at 540px 144px, var(--red-glow) 0%, var(--red-mid) 50%, var(--red-deep) 100%); }
  .a-cta__copy { justify-content: center; padding: 24px; }
  .a-cta__copy .t-h2 { margin-top: 12px; }
  .a-cta__btns { margin-top: 32px; }
}

/* ---------- lightbox ---------- */
.lb { position: fixed; inset: 0; z-index: 60; background: rgba(29, 26, 25, .94); display: grid; place-items: center; padding: 72px 16px; }
.lb[hidden] { display: none; }
.lb__img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: var(--r-photo); box-shadow: var(--shadow-photo); }
.lb__btn { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(252, 237, 221, .12); color: var(--cream); display: grid; place-items: center; cursor: pointer; transition: background .2s; }
.lb__btn:hover { background: rgba(252, 237, 221, .24); }
.lb__close { top: 14px; right: 14px; }
.lb__prev, .lb__next { top: 50%; transform: translateY(-50%); }
.lb__prev { left: 12px; } .lb__next { right: 12px; }
.lb__count { position: absolute; bottom: 24px; left: 0; right: 0; text-align: center; color: var(--cream); opacity: .8; }
@media (max-width: 767px) { .lb__prev, .lb__next { top: auto; bottom: 12px; transform: none; } .lb__count { bottom: 26px; } }
@media (min-width: 768px) { .lb { padding: 72px 88px; } .lb__prev { left: 24px; } .lb__next { right: 24px; } .lb__close { top: 20px; right: 24px; } }
