/* About keeps the site palette, with a wider, more readable editorial layout. */
.about-page {
      --about-accent: var(--site-accent);
      --about-muted: #b1b2ac;
      --about-line: #ffffff26;
}

.about-page .wrapper { overflow: clip; }
.about-page .wrapper::after { opacity: 0.16; }

.about-layout {
      width: min(100% - 96px, 1200px);
      margin: 156px auto 100px;
}

.about-heading {
      display: flex;
      align-items: baseline;
      justify-content: space-between;
      gap: 24px;
      padding-bottom: 32px;
      margin-bottom: 48px;
      border-bottom: 1px solid var(--about-line);
}

.about-heading h1 {
      margin: 0;
      font-size: clamp(56px, 7.5vw, 104px);
      font-weight: 300;
      line-height: 1.05;
      letter-spacing: -0.08em;
}

.about-heading > span {
      flex-shrink: 0;
      color: var(--about-accent);
      font-size: 11px;
      letter-spacing: 0.12em;
}

.about-grid {
      display: grid;
      grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
      align-items: center;
      gap: clamp(40px, 6vw, 88px);
}

.about-intro p,
.about-story p {
      margin: 0;
      font-family: Arial, Helvetica, sans-serif;
      font-size: 17px;
      font-weight: 400;
      line-height: 1.85;
      color: var(--about-muted);
}

.about-intro p + p { margin-top: 24px; }

.about-intro__lead {
      display: block;
      margin-bottom: 26px;
      max-width: 13ch;
      color: #f0f0e9;
      font-size: clamp(32px, 3vw, 42px);
      line-height: 1.15;
      letter-spacing: -0.045em;
}

.about-intro a,
.about-story a {
      text-decoration: underline;
      text-decoration-color: #f1c08388;
      text-underline-offset: 5px;
}

.about-intro a:hover,
.about-story a:hover { text-decoration-color: var(--about-accent); }

.about-gallery { min-width: 0; }
.about-gallery__photo { margin: 0; }
.about-gallery__photo[hidden] { display: none; }

/* A consistent stage prevents layout shifts and preserves the full photographs. */
.about-gallery__photo-link {
      display: block;
      aspect-ratio: 3 / 2;
      background: #171715;
      cursor: zoom-in;
      text-decoration: none;
}

.about-gallery__photo img {
      display: block;
      width: 100%;
      height: 100%;
      object-fit: contain;
      transition: opacity 160ms ease;
}

.about-gallery__photo-link:hover img { opacity: 0.9; }

.about-gallery__photo figcaption {
      margin-top: 18px;
      min-height: 20px;
      color: #deded5;
      font-size: 12px;
      letter-spacing: 0.02em;
}

.about-gallery__controls {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 12px 0 16px;
      border-bottom: 1px solid var(--about-line);
}

.about-gallery__count {
      color: var(--about-accent);
      font-size: 11px;
      letter-spacing: 0.1em;
}

.about-gallery__count > span { color: #93958c; }
.about-gallery__buttons { display: flex; gap: 8px; }

.about-gallery__buttons button {
      display: grid;
      place-items: center;
      width: 44px;
      height: 44px;
      padding: 0;
      border: 1px solid var(--about-line);
      border-radius: 50%;
      background: transparent;
      color: #deded5;
      font-size: 18px;
      line-height: 1;
      cursor: pointer;
      transition: color 160ms, border-color 160ms;
}

.about-gallery__buttons [data-gallery-pause] { font-size: 10px; }
.about-gallery__buttons button:hover { color: var(--about-accent); border-color: var(--about-accent); }

.about-gallery__thumbnails {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 12px;
      padding-top: 16px;
}

.about-gallery__thumb {
      position: relative;
      min-width: 0;
      padding: 0 0 8px;
      border: 0;
      border-bottom: 2px solid transparent;
      background: transparent;
      cursor: pointer;
      opacity: 0.65;
      transition: opacity 160ms, border-color 160ms;
}

.about-gallery__thumb img {
      display: block;
      width: 100%;
      aspect-ratio: 3 / 2;
      object-fit: cover;
      object-position: 32% 25%;
}

.about-gallery__thumb span {
      position: absolute;
      bottom: 14px;
      left: 6px;
      padding: 2px 4px;
      color: #fff;
      background: #101010b3;
      font-size: 9px;
}

.about-gallery__thumb:hover,
.about-gallery__thumb[aria-pressed="true"] { opacity: 1; }
.about-gallery__thumb[aria-pressed="true"] { border-color: var(--about-accent); }

.about-layout a:focus-visible,
.about-gallery button:focus-visible {
      outline: 2px solid var(--about-accent);
      outline-offset: 4px;
}

.about-story {
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
      column-gap: clamp(40px, 7vw, 104px);
      row-gap: 28px;
      margin-top: 80px;
      padding-top: 48px;
      border-top: 1px solid var(--about-line);
}

.about-story p { font-size: 16px; }
.about-story p:nth-child(2) { grid-column: 1; }
.about-story p:last-child {
      grid-column: 2;
      grid-row: 1 / 3;
      align-self: start;
      padding: 28px 32px;
      border-top: 2px solid var(--about-accent);
      background: #f1c08307;
      color: #d4d4cb;
}

.about-page .footer .container { max-width: 1230px; }
.about-page .footer .info h4 { font-size: 13px; overflow-wrap: anywhere; }
.about-page .footer .info p,
.about-page .footer .info li,
.about-page .footer .collab p { font-size: 12px; }

/* Image viewer dialog matching certificate viewer */
.about-viewer {
      width: 96vw;
      max-width: 1500px;
      max-height: 96vh;
      max-height: 96dvh;
      padding: 48px 16px 16px;
      border: 1px solid #635844;
      background: #171715;
      color: #fff;
      box-sizing: border-box;
}

.about-viewer::backdrop {
      background: #000d;
      backdrop-filter: blur(8px);
}

.about-viewer__image {
      display: block;
      max-width: 100%;
      max-height: calc(96vh - 70px);
      max-height: calc(96dvh - 70px);
      width: auto;
      height: auto;
      margin: auto;
      object-fit: contain;
      cursor: zoom-out;
}

.about-viewer__close {
      position: absolute;
      right: 4px;
      top: 2px;
      width: 44px;
      height: 44px;
      border: 0;
      background: transparent;
      color: #fff;
      font-size: 28px;
      cursor: pointer;
}

.about-viewer__close:focus-visible {
      outline: 2px solid var(--about-accent);
}

html.about-viewer-open {
      overflow: hidden;
}

@media (max-width: 960px) {
      .about-layout { width: calc(100% - 64px); margin-top: 128px; }
      .about-grid { gap: 32px; grid-template-columns: 1fr 1fr; align-items: start; }
      .about-intro p { font-size: 16px; }
      .about-intro__lead { font-size: 32px; }
      .about-story { column-gap: 32px; }
      .about-story p:last-child { padding: 24px; }
}

@media (max-width: 700px) {
      .about-layout { width: calc(100% - 48px); margin-top: 116px; margin-bottom: 56px; }
      .about-heading { padding-bottom: 24px; margin-bottom: 32px; }
      .about-heading h1 { font-size: clamp(44px, 11vw, 72px); }
      .about-heading > span { font-size: 9px; }
      .about-grid { grid-template-columns: 1fr; gap: 36px; }
      .about-intro__lead { max-width: none; font-size: 32px; margin-bottom: 18px; }
      .about-gallery__thumbnails { gap: 8px; }
      .about-story { grid-template-columns: 1fr; margin-top: 44px; padding-top: 32px; row-gap: 24px; }
      .about-story p:last-child { grid-column: 1; grid-row: auto; margin-top: 8px; }
}

@media (prefers-reduced-motion: reduce) {
      .about-gallery button,
      .about-gallery__photo img { transition: none; }
      .about-page .wrapper::after { animation: none; }
}
