/* O nás: the Realizace head (projects.css), the detail page's headings and thread (case.css) and the
   homepage team (team.css) carry over. Here only what is new: the opening, the origin photo beside the
   story, the family of names, the five pillars, the three people. Same surfaces, hairlines and type scale as the rest of the site. */
.about-durgo, .about-values, .about-team { padding-bottom: var(--section-space); font-family: Satoshi, Arial, sans-serif; }


.about-row-link { display: inline-block; margin-top: 12px; padding-bottom: 3px; border-bottom: 1px solid #ffffff38; color: #e9e9e4; font-size: 13px; transition: border-color .45s; }
.about-row-link:hover, .about-row-link:focus-visible { border-color: #f5f5f0; }

/* Opening: heading and the first paragraph of the story on the left, the team photo on the right. */
.about-head { padding-top: clamp(28px, 3.4vw, 52px); font-family: Satoshi, Arial, sans-serif; }
.about-head-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(32px, 4vw, 64px); align-items: center; }
.about-head h1 { max-width: 10em; font-family: Satoshi, Arial, sans-serif; font-size: clamp(40px, 4.4vw, 66px); font-weight: 500; letter-spacing: -.04em; line-height: 1.06; }
.about-head-text p { max-width: 30em; margin: 20px 0 0; color: #a9a9a7; font-size: clamp(15px, 1.2vw, 18px); line-height: 1.6; }
.about-head-photo { display: block; width: 100%; height: auto; border-radius: 10px; }

/* Beside the story: where it really began, a photo from the original site. */
.about-origin { display: flex; flex-direction: column; margin: 0; padding: 10px 10px 0; border: 1px solid #ffffff1a; border-radius: 10px; background: #18191a; }
.about-origin img { display: block; flex: 1 1 0; width: 100%; min-height: 220px; border-radius: 6px; object-fit: cover; }
.about-origin figcaption { padding: 18px 8px 20px; color: #a4a4a1; font-size: 13px; line-height: 1.45; }
.about-origin figcaption strong { display: block; margin-bottom: 3px; color: #f5f5f0; font-size: 16px; font-weight: 500; }

/* The family of names: one card each. Every aquarium that already lives holds water like a finished build
   stage; Durgo still waits for its aquarium and stays empty. */
.about-names { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.about-name { position: relative; isolation: isolate; display: flex; flex-direction: column; min-height: 280px; padding: 20px 18px 22px; overflow: hidden; border: 1px solid #ffffff1a; border-radius: 10px; background: #18191a; }
.about-name-status { align-self: flex-start; max-width: none; margin: 0; padding-bottom: 3px; border-bottom: 1px solid transparent; color: #8f8f8d; font-size: 10px; letter-spacing: .13em; line-height: 1.4; text-transform: uppercase; }
a.about-name-status { border-bottom-color: #ffffff38; color: #e9e9e4; transition: border-color .45s; }
a.about-name-status:hover, a.about-name-status:focus-visible { border-color: #f5f5f0; }
.about-name h3 { margin: 18px 0 0; font-family: Astronoma, Arial, sans-serif; font-size: clamp(24px, 2vw, 32px); font-weight: 700; letter-spacing: .01em; line-height: 1; text-transform: uppercase; }
.about-name-meaning { max-width: none; margin: 8px 0 0; color: #f5f5f0; font-size: 16px; letter-spacing: -.015em; line-height: 1.3; }
.about-name-use { max-width: none; margin: auto 0 0; padding-top: 18px; color: #a4a4a1; font-size: 13px; line-height: 1.5; }
.about-name-water { position: absolute; left: 0; right: 0; bottom: 0; z-index: -1; height: 46%; border-top: 1px solid #ffffff59; background: linear-gradient(180deg, #ffffff12, #ffffff06); transform-origin: bottom; transition: transform 1.1s cubic-bezier(.22, 1, .36, 1) .2s; }
.about-name:nth-child(2) .about-name-water { transition-delay: .3s; }
.about-name:nth-child(3) .about-name-water { transition-delay: .4s; }
.about-name:nth-child(4) .about-name-water { transition-delay: .5s; }
.js-motion .about-names:not(.is-visible) .about-name-water { transform: scaleY(0); }

/* The three people side by side, each a card with a head shot on top. */
.about-people { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.about-people li { display: flex; flex-direction: column; padding: 10px; border: 1px solid #ffffff1a; border-radius: 10px; background: #18191a; }
.about-portrait { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; border-radius: 6px; object-fit: cover; }
.about-portrait.is-empty { display: grid; place-items: center; background: #131415; }
.about-portrait.is-empty span { color: #6f6f6d; font-size: 12px; letter-spacing: .02em; }
.about-person { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 20px 10px 12px; }
.about-people h3 { margin: 8px 0 0; color: #f5f5f0; font-size: clamp(20px, 1.6vw, 24px); font-weight: 400; letter-spacing: -.025em; line-height: 1.2; }
.about-people p:not(.case-label) { max-width: none; margin: 10px 0 0; color: #a4a4a1; font-size: 14px; line-height: 1.6; }
.about-people .team-link { margin-top: 14px; padding-bottom: 3px; border-bottom: 1px solid #ffffff38; color: #e9e9e4; font-size: 13px; transition: border-color .45s; }
.about-people .team-link:hover, .about-people .team-link:focus-visible { border-color: #f5f5f0; }

/* Five pillars in one card, side by side, hairlines between them. */
.about-value-list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 0; padding: 26px 0; border: 1px solid #ffffff1a; border-radius: 10px; background: #18191a; list-style: none; }
.about-value-list li { padding: 2px 24px; }
.about-value-list li + li { border-left: 1px solid #ffffff1a; }
.about-value-list h3 { margin: 14px 0 0; color: #f5f5f0; font-size: clamp(17px, 1.35vw, 20px); font-weight: 500; letter-spacing: -.025em; line-height: 1.2; }
.about-value-list p:not(.case-label) { max-width: none; margin: 10px 0 0; color: #a4a4a1; font-size: 14px; line-height: 1.55; }

@media (max-width: 1000px) and (min-width: 761px) {
  .about-origin { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; padding: 8px; }
  .about-origin img { height: 100%; }
}
@media (max-width: 1100px) {
  .about-people { gap: 10px; }
  .about-person { padding: 16px 6px 8px; }
  .about-names { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-name:last-child { grid-column: 1 / -1; min-height: 190px; }
  .about-name { min-height: 230px; }
  .about-value-list { grid-template-columns: 1fr; padding: 4px 28px; }
  .about-value-list li { display: grid; grid-template-columns: 40px minmax(180px, 260px) minmax(0, 1fr); gap: 0 20px; align-items: baseline; padding: 18px 0; }
  .about-value-list li + li { border-top: 1px solid #ffffff14; border-left: 0; }
  .about-value-list h3, .about-value-list p:not(.case-label) { margin: 0; }
}
@media (max-width: 760px) {
  .about-head { padding-top: 20px; }
  .about-head-grid { grid-template-columns: 1fr; gap: 22px; }
  .about-head h1 { font-size: 38px; }
  .about-head-text p { margin-top: 14px; font-size: 15px; }
  .about-head-photo { border-radius: 9px; }
  .about-people { grid-template-columns: 1fr; }
  /* Phone: a small portrait beside the role and name, the text below across the card. */
  .about-people li { display: grid; grid-template-columns: 76px minmax(0, 1fr); column-gap: 14px; align-items: center; padding: 7px 7px 16px; border-radius: 9px; }
  .about-person { display: contents; }
  .about-portrait { grid-row: 1 / 3; }
  .about-person .case-label { grid-area: 1 / 2; align-self: end; }
  .about-people h3 { grid-area: 2 / 2; align-self: start; margin-top: 4px; }
  .about-people p:not(.case-label), .about-people .team-link { grid-column: 1 / -1; justify-self: start; margin-left: 4px; margin-right: 4px; }
  .about-people p:not(.case-label) { grid-row: 3; margin-top: 14px; }
  .about-people .team-link { grid-row: 4; }
  .about-portrait.is-empty span { padding: 0 6px; font-size: 9px; line-height: 1.3; text-align: center; }
  .about-origin { padding: 7px 7px 0; border-radius: 9px; }
  .about-origin img { flex: none; height: auto; aspect-ratio: 4 / 3; }
  .about-names { gap: 8px; }
  .about-name { min-height: 210px; padding: 16px 14px 18px; border-radius: 9px; }
  .about-name:last-child { min-height: 170px; }
  .about-name-water { height: 34%; }
  .about-name h3 { margin-top: 14px; font-size: 24px; }
  .about-name-meaning { font-size: 15px; }
  .about-value-list { padding: 2px 18px; border-radius: 9px; }
  .about-value-list li { grid-template-columns: 1fr; gap: 6px; padding: 16px 0; }
}
@media (prefers-reduced-motion: reduce) {
  .about-name-water, .about-row-link, a.about-name-status, .about-people .team-link { transition: none; }
}
