/* ============================================================
   ScolerAI — about.css
   The About page: the dashboard's own arrangement, brought to the site.
   A greeting on the photograph (the home page's fixed backdrop, on the
   same hour), then ONE rounded, opaque sheet rising over it that carries
   the reading, then the sign-off back on the photograph.

   Layers, per the Spatial Tactile Glass principles:
     Layer 0 · the photograph (home.css `.backdrop`)
     Layer 1 · the sheet — SOLID white. §5.2: never glass under long
               paragraphs; §7.2: content is the reference plane.
     chrome  · the fixed header, frosted only once the page has moved
               (`.chrome--stuck`, home.css).

   Type: Poppins for headings, Inter for reading, Space Grotesk for the
   eyebrows (the app speaking), JetBrains Mono for the two award years.
   Every figure is HTML + inline SVG so it renders in all four locales.

   Expects home.css (tokens, backdrop, chrome) and foot.css before it.
   ============================================================ */

/* home.css sized the page as one screen; this page scrolls. */
html { height: auto; scroll-behavior: smooth; }
body { height: auto; display: block; min-height: 100dvh; }

.chrome {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 40;
}

.about { position: relative; z-index: 2; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ══════════════ HERO · on the photograph ══════════════
   Sits low in the band, against the sheet's edge — the dashboard's
   greeting does the same over its own photograph. */
.hero {
  min-height: 58vh;
  padding: 150px 24px 46px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  text-align: center;
}
.hero__in { max-width: 840px; }
.hero__eyebrow {
  font-family: 'Space Grotesk', Inter, sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lilac);
  margin: 0 0 16px;
}
.hero__title {
  font-family: Poppins, Inter, sans-serif;
  font-weight: 600;
  font-size: clamp(36px, 6.2vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: var(--on-dark);
  margin: 0;
  text-wrap: balance;
}
.hero__lede {
  font-size: clamp(16.5px, 1.6vw, 19px);
  line-height: 1.55;
  color: var(--on-dark-muted);
  max-width: 62ch;
  margin: 22px auto 0;
}

/* ══════════════ THE SHEET ══════════════ */
.sheet {
  position: relative;
  margin: 0 clamp(12px, 3vw, 40px);
  background: var(--plane-solid);
  color: var(--ink);
  border-radius: 28px;
  /* Deep, because the shadow is what separates the sheet from the picture. */
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45), 0 4px 12px rgba(0, 0, 0, 0.25);
}
.sheet__in {
  max-width: 1040px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 72px) clamp(20px, 5vw, 56px) clamp(48px, 6vw, 72px);
}

.sec {
  padding: clamp(36px, 5vw, 56px) 0;
  border-top: 1px solid var(--grounded-edge);
  scroll-margin-top: 96px; /* an #anchor lands under the fixed chrome otherwise */
}
.sec--intro { border-top: 0; padding-top: 0; }
.sec:last-child { padding-bottom: 0; }

.sec__eyebrow {
  font-family: 'Space Grotesk', Inter, sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--violet);
  margin: 0 0 10px;
}
.sec__title {
  font-family: Poppins, Inter, sans-serif;
  font-weight: 600;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 18px;
  text-wrap: balance;
}

/* Reading column: ~66 characters, never wider. */
.prose { max-width: 66ch; }
.prose p {
  margin: 0 0 1em;
  font-size: 17px;
  line-height: 1.68;
  color: var(--ink);
}
.prose p:last-child { margin-bottom: 0; }
.prose a {
  color: var(--violet);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(124, 58, 237, 0.35);
}
.prose a:hover { color: var(--violet); text-decoration-color: currentColor; }
.prose--after { margin-top: 26px; }
.sec--intro .prose p { font-size: clamp(17px, 1.5vw, 19.5px); line-height: 1.6; }

figure { margin: 28px 0 0; }

/* ── The "why" figure: one straight line against one loop ── */
.compare { display: grid; gap: 12px; }
.compare__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  padding: 16px 20px;
  border-radius: var(--r-lg);
  background: var(--grounded);
  border: 1px solid var(--grounded-edge);
}
.compare__row--learn {
  background: #F7F4FF;
  border-color: rgba(124, 58, 237, 0.18);
}
.compare__label {
  font-family: 'Space Grotesk', Inter, sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  min-width: 160px;
}
.compare__row--learn .compare__label { color: var(--violet); }

.chain {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  background: #FFFFFF;
  border: 1px solid var(--grounded-edge);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--ink);
}
.chip--muted { background: transparent; color: var(--ink-muted); }
.chip__n {
  width: 20px; height: 20px;
  border-radius: 999px;
  background: var(--violet);
  color: #FFFFFF;
  font: 600 11px/20px 'Space Grotesk', Inter, sans-serif;
  font-style: normal;
  text-align: center;
  flex: none;
}
.chain__arrow { color: var(--ink-faint); flex: none; }
.compare__row--learn .chain__arrow { color: var(--violet-light); }
.chain__loop { color: var(--violet); flex: none; margin-left: 2px; }

/* ── The studio figure: the coach on a line, five tools under it ── */
.studiofig__hub {
  position: relative;
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
}
.studiofig__hub::before {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 1px;
  background: var(--grounded-edge);
}
.studiofig__coach {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: var(--r-pill);
  background: #FAF6FF;
  border: 1px solid var(--glass-ai-edge);
  color: var(--violet);
  font-family: 'Space Grotesk', Inter, sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  box-shadow: var(--e3);
}
.studiofig__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
  gap: 12px;
}
.tile {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 16px;
  border-radius: var(--r-lg);
  background: var(--grounded);
  border: 1px solid var(--grounded-edge);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--ink);
}
.tile__icon {
  width: 40px; height: 40px;
  border-radius: var(--r-md);
  background: #FFFFFF;
  border: 1px solid var(--grounded-edge);
  display: grid;
  place-items: center;
  color: var(--violet);
}

/* ── Programmes: the logos come with their own white ground ── */
.programs {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 28px;
}
.logo-tile {
  flex: 1 1 240px;
  max-width: 320px;
  height: 132px;
  display: grid;
  place-items: center;
  padding: 18px 26px;
  background: #FFFFFF;
  border: 1px solid var(--grounded-edge);
  border-radius: var(--r-lg);
  box-shadow: var(--e3);
}
.logo-tile img {
  max-height: 78px;
  width: auto;
  max-width: 100%;
  height: auto;
  display: block;
}

/* ── The founder ── */
.founder {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 36px 44px;
  align-items: start;
  margin-top: 10px;
}
.founder__photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  height: auto;
  object-fit: cover;
  object-position: 50% 28%;
  border-radius: var(--r-xl);
  display: block;
  box-shadow: var(--e4);
}
.founder__name {
  font-family: Poppins, Inter, sans-serif;
  font-weight: 600;
  font-size: clamp(22px, 2.4vw, 28px);
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink);
}
.founder__role {
  font-family: 'Space Grotesk', Inter, sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 6px 0 20px;
}
.awards {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.award {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 6px;
  border-radius: var(--r-pill);
  background: var(--grounded);
  border: 1px solid var(--grounded-edge);
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--ink);
}
.award__year {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: var(--r-sm);
  background: var(--violet);
  color: #FFFFFF;
  flex: none;
}
.founder__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  padding: 11px 18px;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--violet);
  color: var(--violet);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: background 180ms var(--ease), color 180ms var(--ease);
}
.founder__link:hover { background: var(--violet); color: #FFFFFF; }

/* The two stamps are actions — a button (the certificate) and a link (the
   badge's verification page) — and say so with a trailing glyph. */
.award--action {
  font-family: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 160ms var(--ease), background 160ms var(--ease);
}
.award--action:hover { border-color: rgba(124, 58, 237, 0.45); background: #F7F4FF; color: var(--ink); }
.award--action:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }
.award__glyph { color: var(--violet); flex: none; }

/* ── The certificate · Layer 4 ──
   A native <dialog> on the top layer. The box itself is transparent and
   unpadded, so a click that reaches the dialog element is a click on the
   backdrop — which is how the script tells "outside" from "inside". */
.lightbox {
  border: 0;
  padding: 0;
  margin: auto;
  background: transparent;
  max-width: min(92vw, 640px);
  max-height: 100dvh;
  overflow: visible;
}
.lightbox::backdrop {
  background: rgba(8, 8, 16, 0.74);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.lightbox__in {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 10px;
}
.lightbox__img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: min(78dvh, 900px);
  height: auto;
  border-radius: var(--r-xl);
  background: #FFFFFF;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6);
}
.lightbox__close {
  position: absolute;
  top: -6px;
  right: -6px;
  z-index: 1;
  width: 44px; height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(10, 10, 18, 0.82);
  color: #FFFFFF;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 160ms var(--ease);
}
.lightbox__close:hover { background: var(--violet); }
.lightbox__close:focus-visible { outline: 2px solid var(--lilac); outline-offset: 2px; }
.lightbox__caption {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: center;
  color: var(--on-dark);
  font-size: 14px;
  line-height: 1.5;
}
.lightbox__caption strong { font-weight: 600; }
.lightbox__caption span { color: var(--on-dark-muted); font-size: 13px; }
@media (prefers-reduced-transparency: reduce) {
  .lightbox::backdrop { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(8, 8, 16, 0.9); }
}

/* ── Commitment ── */
.prose .commit__lead {
  font-size: clamp(19px, 1.9vw, 23px);
  line-height: 1.45;
  font-weight: 500;
  padding-left: 18px;
  border-left: 3px solid var(--violet);
  margin-bottom: 22px;
}
.prose .commit__mission { font-weight: 500; }

/* ══════════════ CLOSE · back on the photograph ══════════════ */
.close {
  text-align: center;
  padding: clamp(72px, 10vh, 120px) 24px clamp(64px, 9vh, 100px);
  color: var(--on-dark);
}
.close__slogan {
  font-family: Poppins, Inter, sans-serif;
  font-weight: 600;
  font-size: clamp(32px, 5.4vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin: 0;
}
.close__triad {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(12px, 2vw, 20px);
  font-family: 'Space Grotesk', Inter, sans-serif;
  font-size: clamp(12px, 1.5vw, 15px);
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
  margin: 20px 0 0;
}
.close__dot { width: 4px; height: 4px; border-radius: 999px; background: var(--lilac); display: block; }
.close__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 34px;
  background: var(--violet);
  color: #FFFFFF;
  font-weight: 600;
  font-size: 16px;
  border-radius: var(--r-pill);
  padding: 16px 30px;
  text-decoration: none;
  box-shadow: 0 16px 40px rgba(124, 58, 237, 0.45);
  transition: background 180ms var(--ease), transform 180ms var(--ease);
}
.close__cta:hover { background: var(--violet-light); color: #FFFFFF; transform: translateY(-1px); }
.close__note { font-size: 13px; color: rgba(255, 255, 255, 0.62); margin: 14px 0 0; }

/* ══════════════ RESPONSIVE ══════════════ */
@media (max-width: 900px) {
  .hero { min-height: 48vh; padding-top: 118px; padding-bottom: 36px; }
  .sheet { margin: 0 10px; border-radius: 24px; }
  .compare__label { min-width: 0; width: 100%; }
  /* A full-width portrait on a phone is a screen and a half of face. */
  .founder { grid-template-columns: 1fr; gap: 22px; }
  .founder__photo { width: 168px; }
}

@media (max-width: 560px) {
  .lightbox { max-width: 94vw; }
  .lightbox__close { top: 2px; right: 2px; }
  .studiofig__grid { grid-template-columns: 1fr 1fr; }
  .tile { padding: 14px 12px; font-size: 13.5px; }
  .logo-tile { height: 112px; flex-basis: 100%; max-width: none; }
  .prose p { font-size: 16px; }
  .founder__photo { width: 148px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
