/* about.css - /about/ and /it/chi-siamo/ (plan: site/plan/about.md). Page rules only; the kit and site.css give the
   shells, the grid, the type scale, the hero, the faq rows and the closing band. No pointer effect, no scroll effect
   beyond the dealt moment of #work (line-carries-colour, kit). Sections: #hero, #people, #work, #faq, #close. */

/* ---------------------------------------------------------------- every section: one screen at 1440 x 900, and on a
   short desktop screen it grows with its content instead of laying its last rows over the next section */
@media (min-width: 1280px) {
  main > section.about-people, main > section.about-work, main > section.about-faq {
    height: auto; min-height: 100vh; min-height: 100svh;
  }
}

/* ---------------------------------------------------------------- 0. hero: the tutor beside a student's PDF */
.about-shot {
  border: 1px solid var(--line);
  background:
    radial-gradient(70% 60% at 74% 16%, rgb(23 234 217 / .10), rgb(23 234 217 / 0) 70%),
    var(--p-surface);
}
.about-shot > .stage > .at-corner { --ax: 40px; --ay: 40px; }
/* the student's PDF is white paper, as in the real app and on the home's window */
.about-doc.ui {
  --fx-bg: #ffffff; --fx-surface: #f4f5f7; --fx-ink: #15181d; --fx-muted: #5f6670;
  --fx-accent: #0fb5a8; --fx-accent-ink: #ffffff;
}
/* where the note stands before the script places it (no script: under the first mark) */
.about-doc .ui-doc__note { top: 140px; }
@media (min-width: 1280px) {
  .about-shot .about-doc { width: 520px; }
  .about-doc .ui-doc__note { width: 216px; }
}
@media (min-width: 1024px) and (max-width: 1279px) {
  .about-shot .about-doc { width: calc(100% - 64px); }
  .about-doc .ui-doc__note { width: 184px; }
}
/* a phone: the picture is tall enough that the float card stays under the note, in the faded part */
@media (max-width: 639px) {
  .hero--split .hero__media.about-shot { min-height: 440px; }
  .about-doc .ui-doc__note { top: 200px; }
}

/* ---------------------------------------------------------------- 1. people: three photo tiles, the HTX initials tile */
.about-tiles { row-gap: var(--s-6); }
.about-tiles > .tile { gap: 0; align-content: start; }
.about-tile__panel {
  position: relative; display: flex; align-items: flex-end; overflow: clip;
  aspect-ratio: 5 / 4; margin-bottom: var(--s-4); padding: var(--s-5);
  border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--p-surface);
}
.about-tile__panel::before {
  content: ""; position: absolute; left: var(--s-5); top: var(--s-5);
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}
.about-tile__panel > span {
  font: var(--display-weight) var(--t-h1)/1 var(--font-display);
  letter-spacing: var(--display-tracking-xl); color: var(--ink);
}
/* a photo tile: same panel (shape, border, rounded corners), the photograph fills it edge to edge; natural colours,
   no filter, no hover zoom; the top of the head stays in view (the square photo is cut mostly at the bottom) */
.about-tile__panel--photo::before { content: none; }
.about-tile__panel--photo > img {
  position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-width: none;
  object-fit: cover; object-position: center 15%; border-radius: inherit;
}
.tile > .about-tile__role, .tile > .about-tile__line { margin-top: var(--s-1); font-size: 16px; line-height: 24px; }
.tile > .about-tile__role { color: var(--ink); }
.tile > .about-tile__line { color: var(--src); }
.about-more { display: grid; justify-items: start; gap: var(--s-2); margin-top: var(--s-7); max-width: 640px; }
.about-more > p:not(.t-lead) { color: var(--ink); }
@media (max-width: 639px) {
  .about-tile__panel { aspect-ratio: 1 / 1; padding: var(--s-4); }
  .about-tile__panel::before { left: var(--s-4); top: var(--s-4); }
  .about-tiles { row-gap: var(--s-5); }
}

/* ---------------------------------------------------------------- 2. work: the light sheet, the hub, three columns */
.about-work__head { align-items: start; row-gap: var(--s-4); margin-bottom: var(--s-7); }
.about-work__head > p { font-size: var(--t-lead); line-height: 1.5; color: var(--muted); max-width: 52ch; }
.about-work__frame { height: 360px; padding: var(--s-5); }
.about-dg { width: 100%; height: 100%; }
.about-work__cols { margin-top: var(--s-7); display: grid; gap: var(--s-5) var(--gutter); }
@media (min-width: 640px) { .about-work__cols { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); } }
.about-work__col { display: grid; justify-items: start; align-content: start; gap: var(--s-2); }
.about-work__col > p { font-size: 16px; line-height: 24px; color: var(--ink); max-width: 46ch; }
.about-work__col > .link { margin-top: var(--s-2); }
@media (max-width: 639px) {
  .about-work__frame { height: 480px; padding: var(--s-4); }
}

/* ---------------------------------------------------------------- 3. faq: picture-less, answers open */
.about-faq__grid { align-items: start; row-gap: var(--s-7); }
.about-faq__side { display: grid; justify-items: start; gap: var(--s-4); }
.about-faq__side > p { font-size: var(--t-lead); line-height: 1.5; color: var(--muted); max-width: 40ch; }
.about-faq .faq__item > .link { justify-self: start; margin-top: var(--s-1); }
.about-mail { text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; overflow-wrap: anywhere; }
.about-mail:hover { text-decoration-color: currentColor; }
