/* about-page.css — #195 the About page's Extrême layers over Concept's sections (spec docs/superpowers/specs/2026-11-07-about-page-design.md):
   the profile cards of Portfolio / Portfolio on scroll and the coach modal, the crossed bands of Scrolling text, the founders' quote, the calm
   Number counter and the frosted panel of Image with text overlay. Everything here hangs on an Extrême attribute or class — without it the
   section is Concept's own. */

/* ---------- Video hero «Frame» Hairline (#209) ---------- */
/* Artem 2026-11-08: the About hero as the homepage slider — a card in the page width with its 1px hairline (extreme.css, [data-ext-outline] on the
   slideshow: 12 % white), drawn inside the rounded card above the photo and the overlay */
[data-ext-outline="hairline"] .video-hero::after { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; pointer-events: none; box-shadow: inset 0 0 0 1px rgb(245 245 244 / 0.12); }

/* ---------- Fade in from the page (portfolio «Fade in from the page», #206) ---------- */
/* Artem 2026-11-08: the Principles' ground runs from the page's ink at the top to Surface at the foot. Concept paints a section's ground on the
   section and on its ::before (which reaches a radius below, into the next section's rounded corners) from --gradient-background */
.section.ext-fade-in { --gradient-background: linear-gradient(180deg, rgb(var(--color-base-background)), rgb(var(--color-background))); }
/* #211 «Divider» Content width (Artem 2026-11-08: «разделитель не на всю ширину страницы, а по ширине контента»): Concept's section--divider line
   (::after, 1px, --color-border) inset by the page width's padding, so it lines up with the headings and the cards */
.section--divider[data-ext-divider="page"]::after { inset-inline: var(--page-padding); width: auto; }

/* ---------- Rotating stamp (image-with-text-quote «Rotating stamp», #203) ---------- */
/* Artem 2026-11-08 (spike A, «тот же стиль, что на главной»; «по размеру идентичным, как на главной»): Concept's spinning-text in the homepage
   badge's look and size (#178, about-strip.css) — 12 px grey letters, the 32 px icon on a lime disc (16 px around it), the ring of a 25-character
   text at Concept's 2ch (≈ 128 px) whatever the text: a longer one packs its letters a little closer instead of growing the ring, and only past
   1.6ch apart (≈ 31 characters) the ring grows again so the letters never touch (Concept's radii are negative — min() takes the larger ring; !important — Concept's init writes its own --radius inline). Centred on the seam of the text card and the photo at the card's top edge (about-page.js →
   --ext-stamp-x), the upper half over the section's top padding. Parallax (about-page.js → --ext-stamp-y): (the card's top − 30 % of the screen)
   × .1 — «практически незаметный, но чувствовался». Below 1024 (the card stacks, the photo on top): the card's top right corner. */
.ext-stamp { --radius: min(calc(-2ch / sin(14.4deg)), calc((var(--character-width) / sin(var(--inner-angle))) * -.8ch)) !important; position: absolute; z-index: 3; top: 0; left: var(--ext-stamp-x, 50%); width: calc(var(--radius) * -2); height: calc(var(--radius) * -2); transform: translate(-50%, -50%) translateY(var(--ext-stamp-y, 0px)); font-size: .75rem; color: rgb(var(--color-foreground) / .7); will-change: transform; }
.ext-stamp[data-disc] .icon { box-sizing: content-box; padding: 1rem; border-radius: 50%; background: rgb(var(--color-highlight)); color: rgb(var(--color-background)); }
@media screen and (max-width: 1023px) {
  .ext-stamp { left: auto; right: 2rem; transform: translateY(-50%) translateY(var(--ext-stamp-y, 0px)); }
}

/* ---------- Profile cards (portfolio, portfolio-on-scroll) ---------- */
/* «Card style» Gradient (Artem 2026-11-07: «без цветной полосы»): no frosted colour strip — the photo darkens into its foot, the heading and the
   button sit on the dark. At every width (#219, Artem 2026-11-08: «карточки мобильной версии отличаются — какая-то подложка»): phones lose
   Concept's frosted strip too, so a card looks the same on a phone as on a desktop. */
[data-ext-cards="gradient"] .profile.card > .media::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgb(9 9 11 / 0) 45%, rgb(9 9 11 / .85)); }
[data-ext-cards="gradient"] .profile__content { background: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
/* «Numbers» (Principles): 01 / 02 / 03 small and lime over the photo's top left, and over the modal's title */
.ext-profile__number { font-family: var(--font-body-family); font-size: var(--text-base); font-weight: 700; letter-spacing: .1em; line-height: 1; color: rgb(190 242 100); }
.ext-profile__number--ink { color: rgb(24 25 29); }
.profile .ext-profile__number { position: absolute; z-index: 2; inset-block-start: var(--sp-6); inset-inline-start: var(--sp-6); }
.profile-modal .drawer__title .ext-profile__number { position: static; display: block; margin-block-end: var(--sp-4); font-size: var(--text-base); }
@media screen and (min-width: 1024px) { .profile .ext-profile__number { inset-block-start: var(--sp-8); inset-inline-start: var(--sp-10); } }
/* «Button» Lime (Principles): the round plus in the accent, the icon ink */
[data-ext-button="lime"] .profile__button { background-color: rgb(var(--color-highlight)); color: rgb(9 9 11); }
/* «caption» (Coaches): the role in lime caps under the name */
.ext-profile__caption { margin-block-start: var(--sp-2); font-size: var(--text-xs); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; line-height: 1.2; color: rgb(var(--color-highlight)); }

/* ---------- Coach modal (a profile with «portrait») ---------- */
/* Artem 2026-11-07: «модалка вместо отдельных страниц, менее подробно, больше воздуха» — the portrait beside the text, the role, the lead,
   three facts between hairlines and «Trains in»; on phones Concept's bottom sheet with the portrait on top. */
.ext-coach-modal__portrait { display: block; flex: 0 0 auto; height: 18rem; border-start-start-radius: inherit; border-start-end-radius: inherit; }
.ext-coach-modal__portrait img { width: 100%; height: 100%; object-fit: cover; }
.ext-coach-modal__role { font-size: var(--text-sm); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: rgb(var(--color-highlight)); }
.ext-coach-modal .drawer__scrollable > .ext-coach-modal__role { padding-block-end: 0; margin-block-end: calc(var(--sp-2) * -1); }
.ext-coach-modal__facts { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; border-block: 1px solid rgb(var(--color-foreground) / .1); }
.ext-coach-modal .drawer__scrollable > .ext-coach-modal__facts { padding-block-end: 0; }
.ext-coach-modal__facts > div { padding-block: var(--sp-5); }
.ext-coach-modal__facts > div + div { padding-inline-start: var(--sp-5); border-inline-start: 1px solid rgb(var(--color-foreground) / .1); }
.ext-coach-modal__facts dt { font-size: var(--text-3xl); line-height: 1; letter-spacing: -.03em; }
.ext-coach-modal__facts dd { margin: var(--sp-2) 0 0; font-size: var(--text-sm); color: rgb(var(--color-foreground) / .6); }
.ext-coach-modal__label { padding-block-end: var(--sp-4); } /* #220: the type is the theme's (text-sm text-opacity uppercase, as the menu's Most popular); the rows are Concept's horizontal-product */
@media screen and (min-width: 1024px) {
  .ext-coach-modal .drawer__inner { display: grid; grid-template-columns: 1fr 1.1fr; grid-template-rows: auto 1fr; max-width: 74rem; width: 100%; max-height: 86vh; padding: 0; }
  .ext-coach-modal__portrait { grid-row: 1 / -1; grid-column: 1; height: auto; min-height: 36rem; border-radius: 0; }
  .ext-coach-modal .drawer__header, .ext-coach-modal .drawer__content { grid-column: 2; }
  .ext-coach-modal .drawer__header { padding: var(--sp-14) var(--sp-14) 0; }
  .ext-coach-modal .drawer__content { padding: var(--sp-6) var(--sp-14) var(--sp-12); overflow: auto; }
  .ext-coach-modal .drawer__scrollable { padding-inline: 0; overflow: visible; }
  .ext-coach-modal .drawer__title { font-size: var(--title-lg); letter-spacing: -.045em; }
}

/* ---------- Scrolling text · Crossed bands ---------- */
/* Artem 2026-11-07: two bands across each other — the outline one tilted one way (Concept's ring separators), the sand one the other way and on
   top, its separators lime dots; both run, in opposite directions. The rows are 120 % wide and clipped at the screen's edge. */
.ext-bands { display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; overflow-x: clip; overflow-y: visible; }
.ext-bands__band { grid-area: 1 / 1; width: 120%; min-width: 0; overflow: hidden; padding-block: var(--sp-5); }
.ext-bands__band[data-band="outline"] { transform: rotate(var(--ext-tilt)); background: rgb(var(--color-background)); box-shadow: inset 0 1px rgb(var(--color-foreground) / .12), inset 0 -1px rgb(var(--color-foreground) / .12); }
.ext-bands__band[data-band="solid"] { z-index: 1; transform: rotate(calc(var(--ext-tilt) * -1)); --color-foreground: 9 9 11; --color-background: 217 211 195; background: rgb(var(--color-background)); color: rgb(var(--color-foreground)); }
.ext-bands__band[data-band="solid"] .scrolling-text__item:before { background: rgb(190 242 100); border: 2px solid rgb(9 9 11); }
.ext-bands__band[data-band="outline"] .scrolling-text__item:before { border-width: 1.5px; opacity: .8; }

/* ---------- Image with text · quote (Founders) ---------- */
.ext-quote__mark { width: 2.75rem; height: 2.75rem; color: rgb(var(--color-highlight)); }
.ext-quote__mark svg { width: 100%; height: 100%; }
/* the quote at the size of the mock Artem approved (36 px on desktop) — Concept's subtext-xl reads as body text on our ink */
.ext-quote .rte.heading { font-size: clamp(1.5rem, 2.1vw, 2.25rem); line-height: 1.25; letter-spacing: -.02em; }
.ext-quote .rich-text { display: grid; gap: var(--sp-7); }

/* ---------- Number counter · Calm ---------- */
/* Artem 2026-11-07: «спокойнее, как у Inova» — sand numbers (the section's highlight), the unit a small lime superscript, the label in the body
   face and muted; from 1024 px hairlines between the columns instead of the gap. */
[data-ext-counters="calm"] .ext-counter__unit { position: relative; inset-block-start: .12em; margin-inline-start: .06em; vertical-align: top; font-size: .42em; letter-spacing: 0; color: rgb(190 242 100); }
[data-ext-counters="calm"] .ext-counter__label { font-family: var(--font-body-family); font-weight: 400; font-size: var(--text-base); line-height: 1.5; letter-spacing: 0; color: rgb(var(--color-foreground) / .6); }
@media screen and (min-width: 1024px) {
  [data-ext-counters="calm"] .multicolumn { --card-grid-gap: 0px; }
  [data-ext-counters="calm"] .counter-card { padding-inline: var(--sp-8); }
  [data-ext-counters="calm"] .counter-card + .counter-card { border-inline-start: 1px solid rgb(var(--color-foreground) / .1); }
}

/* ---------- Image with text overlay · Panel (Visit The Garage) ---------- */
/* Artem 2026-11-07: «панель чище — без надзаголовка, заголовок меньше, текст приглушённый, тонкие линии» */
.ext-panel.banner__box { width: min(27rem, 100%); min-width: 0; padding: var(--sp-11) var(--sp-10); border-radius: calc(var(--rounded-block) * 1.2); background: rgb(24 25 29 / .72); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); box-shadow: inset 0 0 0 1px rgb(245 245 244 / .08); }
.ext-panel .banner__title { margin-block-end: var(--sp-4d5); }
.ext-panel__text { margin-block-end: var(--sp-7); font-size: var(--text-base); color: rgb(var(--color-foreground) / .6); }
.ext-panel__rows { margin: 0; }
.ext-panel__row { display: flex; justify-content: space-between; gap: var(--sp-5); padding-block: var(--sp-4); border-block-start: 1px solid rgb(var(--color-foreground) / .1); font-size: var(--text-base); }
.ext-panel__row:last-child { border-block-end: 1px solid rgb(var(--color-foreground) / .1); }
.ext-panel__row dt { color: rgb(var(--color-foreground) / .45); }
.ext-panel__row dd { margin: 0; text-align: end; color: rgb(var(--color-foreground) / .75); }
.ext-panel__actions { margin-block-start: var(--sp-8); }
.ext-panel__actions .button { flex: 1 1 0; justify-content: center; white-space: nowrap; }
/* #223 «Phones» Stack (Artem 2026-11-08: «Visit The Garage — в мобильной версии не видно картинки»): below 768 px the photo stands on top
   at 4:5 and the panel sits under it on the card's ink — the photo is never hidden behind the panel */
@media screen and (max-width: 767px) {
  [data-ext-mobile="stack"] .banner { height: auto; min-height: 0; }
  [data-ext-mobile="stack"] .banner__media { position: relative; height: auto; aspect-ratio: 4 / 5; }
  /* 2026-11-10 (Artem: «Garage» circled on desktop, not on the phone): Concept sizes the overlay to its section with `.js .section:not(
     .section--next-rounded) :is(.banner__overlay, …)` (0,4,0) and, in the page's last section, `[role="main"] .shopify-section:last-child .section
     :is(…)` (0,5,0) — both beat our 0,2,0: the overlay ran past the photo over the whole card, a 20 % veil on the panel (the in-flow «Visit The»
     dimmed, the positioned <em> above it). The same 0,5,0 here, later in the cascade, lets 4:5 size it to the photo */
  .js .section[data-ext-mobile="stack"] .banner .banner__overlay { height: auto; aspect-ratio: 4 / 5; }
  [data-ext-mobile="stack"] .banner__content { position: static; height: auto; }
  [data-ext-mobile="stack"] .banner__content > .page-width { padding: 0; }
  [data-ext-mobile="stack"] .ext-panel.banner__box { width: 100%; margin: 0; border: 0; border-radius: 0 0 var(--rounded-block) var(--rounded-block); background: rgb(24 25 29); -webkit-backdrop-filter: none; backdrop-filter: none;
    /* the heading highlight's stroke is Concept's SVG at z-index −1 (behind the word): the frosted panel's backdrop-filter made it a stacking context,
       so the circle drew over the panel; without the filter it fell behind the panel's ink — isolate keeps the context */
    isolation: isolate; }
}
@media screen and (max-width: 767px) {
  .ext-panel.banner__box { margin-block-end: var(--sp-5); padding: var(--sp-8) var(--sp-6); }
}

/* ---------- Rich text · Layout Lede (#198) ---------- */
/* The About intro after the hero (Artem 2026-11-07: «секцию попроще, с небольшим заголовком … поизысканней, с информацией о компании»; the
   heading «не градиентом»): the small plain heading on the left third, one big sentence on the right (Concept's --fluid-2xl-to-4xl: 24 px on
   phones, ~30 at 1440, 36 max), then the rest in two muted columns under a hairline. Concept's collage grid below 1024 (one column). */
[data-ext-layout="lede"] h2 { text-wrap: pretty; }
[data-ext-layout="lede"] .ext-richtext__lede { margin: 0; font-size: var(--fluid-2xl-to-4xl); font-weight: 500; line-height: 1.3; letter-spacing: -.01em; text-wrap: pretty; }
[data-ext-layout="lede"] .ext-richtext__columns { display: grid; gap: var(--sp-4); margin-block-start: var(--sp-12); padding-block-start: var(--sp-8); border-block-start: 1px solid rgb(var(--color-foreground) / .12); color: rgb(var(--color-foreground) / .66); }
[data-ext-layout="lede"] .ext-richtext__columns p { margin: 0; }
@media screen and (min-width: 768px) { [data-ext-layout="lede"] .ext-richtext__columns { grid-template-columns: 1fr 1fr; gap: var(--sp-12); } }
@media screen and (min-width: 1024px) { [data-ext-layout="lede"] .collage.with-richtext { grid-template-columns: 1fr 2fr; column-gap: var(--sp-16); } }
/* #215 (Artem 2026-11-08: «слева наш заголовок, справа один абзац под другим»): Split 1:1 — the heading on the left half; Stack — the two paragraphs one under the other, a readable measure */
@media screen and (min-width: 1024px) { [data-ext-layout="lede"][data-ext-split="half"] .collage.with-richtext { grid-template-columns: 1fr 1fr; } }
[data-ext-layout="lede"][data-ext-stack] .ext-richtext__columns { grid-template-columns: 1fr; gap: var(--sp-6); max-width: 40rem; }
/* #215 Width «As the slider» (Artem: «поуже всю секцию — как на главной секция под слайдером»): the about-strip's #178 inset — --grid-gap from 1024 px, twice from 1536 px */
/* Concept's rich-text zeroes its collage padding from 1536 to 1920 px with an id selector in the section's own <style> — the slider inset needs !important (as the stamp's --radius); from 1536 the title-wrapper's own start inset goes, so the edge is the homepage's at every width */
@media screen and (min-width: 1024px) { .ext-richtext[data-ext-width="slider"] .collage { padding-inline: var(--grid-gap) !important; } }
@media screen and (min-width: 1536px) { .ext-richtext[data-ext-width="slider"] .collage { padding-inline: calc(var(--grid-gap) * 2) !important; } .ext-richtext[data-ext-width="slider"] .collage .title-wrapper { padding-inline-start: 0 !important; } }
/* #205 (Artem 2026-11-08: «справа уберём верхний абзац, оставим только два нижних»): without the big sentence the two columns start level with
   the heading — no hairline, no gap above them (the #204 phone size bump went with the sentence) */
[data-ext-layout="lede"] .ext-richtext__columns:first-child { margin-block-start: 0; padding-block-start: 0; border-block-start: 0; }
