/* about.css: the About page's own placing and sizing. Components and tokens come from design\.
   The office photo is soft (2048 px), so it stays framed, never full-bleed; the reviews rise over its wall, clear of the
   XAPP DESIGN letters at its upper right. */

/* ---------- 1. the header ---------- */
.abhead { background: radial-gradient(70% 80% at 100% 0%, rgba(241, 128, 46, 0.12), rgba(241, 128, 46, 0) 60%), var(--c-night); }
.abhead__in { display: grid; gap: 28px; padding-block: 24px 48px; }
.abhead__copy { display: grid; gap: 16px; align-content: center; }
.abhead .phead__line { margin-top: 0; }
.abhead__stage { position: relative; order: -1; padding-top: 4px; }
.abhead__stage > .stop { top: 16px; right: 14px; bottom: auto; }
.ar { position: relative; }
.ar-frame { position: relative; overflow: hidden; aspect-ratio: 4 / 3; border-radius: var(--radius-xl); background: var(--c-night-3); box-shadow: var(--shadow-night); }
.ar-photo { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 50%; }
.ar-revs { position: absolute; left: 12px; right: 12px; bottom: 12px; height: 132px; }
.ar-rev { position: absolute; inset: 0; display: flex; align-items: flex-start; gap: 12px; margin: 0; padding: 14px 16px 14px 12px; box-sizing: border-box; border-radius: 18px; background: var(--scene-glass); backdrop-filter: var(--scene-blur); -webkit-backdrop-filter: var(--scene-blur); color: var(--c-ink); box-shadow: var(--shadow-night); opacity: var(--ar, 1); transform: translateY(var(--ar-y, 0px)); }
.ar-rev:not(:first-child) { opacity: var(--ar, 0); }
.ar-x { display: grid; place-items: center; width: 34px; height: 34px; flex: none; }
.ar-x .x { width: 26px; height: 26px; border-radius: 7px; }
.ar-rev p { margin: 0 0 8px; font: 700 1.0625rem/1.35 var(--font-ui); }
.ar-rev footer { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; }
.ar-rev .stars { font-size: 13px; }
.ar-rev cite { font: 600 13px/1.2 var(--font-ui); font-style: normal; color: var(--c-ink-soft); }
.ar-sean { position: absolute; left: 12px; top: 12px; display: flex; align-items: center; gap: 10px; margin: 0; padding: 6px 14px 6px 6px; border-radius: 99px; background: var(--c-card); color: var(--c-ink); box-shadow: var(--shadow-m); }
.ar-sean img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.ar-sean figcaption { display: grid; gap: 2px; }
.ar-sean b { font: 800 0.9375rem/1.2 var(--font-ui); }
.ar-sean span { font: 600 13px/1.2 var(--font-ui); color: var(--c-ink-soft); }
@media (min-width: 640px) {
  /* over the clock wall and the fireplace, ending before the letters (which start at 68% of the frame) */
  .ar-revs { left: 4%; right: auto; bottom: auto; top: 34%; width: min(340px, 50%); height: 150px; }
}
@media (min-width: 1000px) {
  .abhead { min-height: calc(100svh - var(--header-h)); display: grid; align-items: center; }
  .abhead__in { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; padding-block: clamp(20px, 3.5vh, 44px); }
  .abhead__stage { order: 0; padding: 0; }
  .abhead .phead__title { font-size: min(clamp(2.5rem, 1.5rem + 2.8vw, 4.25rem), 6.6vh); }
  /* Sean's card on the frame's lower left corner, half off it: the scene's host (which clips) holds the room for it */
  .ar { padding: 0 0 56px 56px; }
  /* high on the clock wall, so its words end above Sean's card on the corner */
  .ar-revs { left: calc(56px + 3%); top: 5%; width: min(320px, 43%); }
  .ar-sean { left: 0; top: auto; bottom: 0; display: grid; gap: 0; width: 190px; padding: 8px 8px 12px; border-radius: 22px; box-shadow: var(--shadow-l); }
  .ar-sean img { width: 100%; height: auto; aspect-ratio: 1; border-radius: 16px; }
  .ar-sean figcaption { padding: 10px 6px 0; }
  .abhead__stage > .stop { top: 14px; right: 14px; }
}
@media (min-width: 1000px) and (max-width: 1279px) { .ar-sean { width: 150px; } }

/* ---------- 2. the story: the years along a line ---------- */
.story__stage { position: relative; padding-top: 48px; }
.story__stage > .stop { top: 0; right: 0; bottom: auto; }
.yl { position: relative; display: grid; gap: 26px; margin: 0; padding: 0 0 0 56px; list-style: none; }
.yl::before, .yl::after { content: ''; position: absolute; left: 19px; top: 20px; bottom: 20px; width: 2px; border-radius: 2px; }
.yl::before { background: repeating-linear-gradient(180deg, rgba(26, 26, 30, 0.22) 0 4px, transparent 4px 10px); }
.yl::after { background: var(--grad-x); transform: scaleY(var(--yl-p, 1)); transform-origin: 50% 0; }
.yl-item { position: relative; display: grid; gap: 6px; }
.yl-dot { position: absolute; left: -56px; top: 0; z-index: 1; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--c-paper); box-shadow: inset 0 0 0 2px rgba(26, 26, 30, 0.16); }
.yl-dot .x { width: 26px; height: 26px; border-radius: 7px; opacity: var(--yl, 1); transform: scale(calc(0.4 + 0.6 * var(--yl, 1))) rotate(calc(-20deg + 20deg * var(--yl, 1))); }
.yl-year { margin: 0; font: 800 clamp(1.75rem, 1.3rem + 1.4vw, 2.5rem)/1 var(--font-display); letter-spacing: -0.02em; color: var(--c-ink); opacity: calc(0.25 + 0.75 * var(--yl, 1)); }
.yl-text { margin: 0; max-width: 30rem; font-size: 1rem; line-height: 1.45; color: var(--c-ink-soft); opacity: calc(0.25 + 0.75 * var(--yl, 1)); }
.yl-item:last-child .yl-year { color: var(--c-brand-text); }
@media (min-width: 1000px) {
  .yl { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px; padding: 0; }
  .yl::before, .yl::after { left: 20px; right: 20px; top: 19px; bottom: auto; width: auto; height: 2px; }
  .yl::before { background: repeating-linear-gradient(90deg, rgba(26, 26, 30, 0.22) 0 4px, transparent 4px 10px); }
  .yl::after { transform: scaleX(var(--yl-p, 1)); transform-origin: 0 50%; }
  .yl-item { padding-top: 60px; }
  .yl-dot { left: 0; }
}

/* ---------- 3. every review ---------- */
.rvs { background: var(--c-paper-alt); }
.rvs__in { display: grid; gap: 32px; align-items: start; }
.rvs__side { display: grid; gap: 24px; }
.rvs__head { margin: 0; }
.rvs__rating { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "g n" "g s" "g c"; align-items: center; column-gap: 16px; row-gap: 2px; width: max-content; padding: 20px 24px; border-radius: var(--radius-xl); background: var(--c-card); box-shadow: var(--shadow-m); }
.rvs__rating .g-mark { grid-area: g; width: 56px; height: 56px; }
.rvs__rating b { grid-area: n; font: 800 2.5rem/1 var(--font-display); }
.rvs__rating .stars { grid-area: s; }
.rvs__rating small { grid-area: c; font-size: var(--fs-small); color: var(--c-ink-soft); }
.rvs__wall { columns: 2 300px; column-gap: 20px; }
.rv { break-inside: avoid; margin: 0 0 20px; padding: 22px 22px 18px; border-radius: 20px; background: var(--c-card); box-shadow: var(--shadow-s); }
.rv__text { margin: 0 0 14px; font-size: 1.0625rem; line-height: 1.55; color: var(--c-ink); }
.rv-sean { font-weight: 800; color: var(--c-brand-text); }
.rv__by { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; margin: 0; font-size: var(--fs-small); color: var(--c-ink-soft); }
.rv__by b { color: var(--c-ink); }
@media (min-width: 1000px) {
  .rvs__in { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 56px; }
  .rvs__side { position: sticky; top: calc(var(--header-h) + 32px); }
}

/* ---------- 4. credentials ---------- */
.creds { --ground-x: 50%; --ground-y: 0%; }
.creds__stage { position: relative; padding-top: 48px; }
.creds__stage > .stop { top: 0; right: 0; bottom: auto; }
.bl { display: grid; gap: 36px; }
.bl-badges { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 900px) { .bl-badges { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } }
.bl-item { opacity: var(--bl, 1); transform: translateY(calc(26px - 26px * var(--bl, 1))) scale(calc(0.94 + 0.06 * var(--bl, 1))); }
.bl-card { display: grid; place-items: center; align-content: center; gap: 12px; height: 100%; min-height: 190px; box-sizing: border-box; padding: 22px 18px; border-radius: var(--radius-xl); background: #fff; color: var(--c-ink); text-decoration: none; text-align: center; box-shadow: var(--shadow-night); transition: transform var(--dur-fast), box-shadow var(--dur-fast); }
a.bl-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-night), 0 0 0 2px var(--c-brand); }
a.bl-card:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 3px; }
.bl-card img { width: auto; max-width: 100%; height: 84px; object-fit: contain; }
.bl-card span { font: 700 0.9375rem/1.25 var(--font-ui); }
.bl-card--g { grid-template-columns: auto auto; column-gap: 12px; }
.bl-card--g .g-mark { width: 52px; height: 52px; }
.bl-card--g b { font: 800 2.75rem/1 var(--font-display); }
.bl-card--g .stars, .bl-card--g span { grid-column: 1 / -1; }
.bl-press { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 10px 36px; margin: 0; text-align: center; }
.bl-press__lab { flex-basis: 100%; font: 700 0.9375rem/1 var(--font-ui); color: var(--c-on-night-soft); }
.bl-press a { font: 800 clamp(1.5rem, 1.1rem + 1.2vw, 2.25rem)/1.1 var(--font-display); letter-spacing: -0.02em; color: #fff; text-decoration: none; background: linear-gradient(var(--c-accent), var(--c-accent)) 0 100% / 0 2px no-repeat; transition: background-size var(--dur-fast); }
.bl-press a:hover, .bl-press a:focus-visible { background-size: 100% 2px; }

/* ---------- 5. the close ---------- */
.abclose__in { display: grid; gap: 32px; align-items: center; }
.abclose__side { display: grid; gap: 18px; }
.abclose__frame { position: relative; overflow: hidden; aspect-ratio: 4 / 3; border-radius: var(--radius-xl); background: var(--c-night-3); box-shadow: var(--shadow-night); }
.abclose__photo { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; object-position: 62% 30%; }
@media (min-width: 1000px) {
  .abclose__in { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 64px; }
  .abclose__frame { aspect-ratio: 4 / 5; }
}
