/* =========================================================
   PRACTISI — ABOUT
   Page-only rules. The homepage supplies the global palette,
   font families, heading treatment, FAQ surfaces, buttons,
   site header/footer, cookie preferences and cursor.
   No global selectors or changes to those shared files.
========================================================= */

.about-page {
  background: var(--bg);
  color: var(--text);
  /* Do not set overflow here: it breaks sticky positioning in Safari. */
}

.about-page > section { scroll-margin-top: calc(var(--header-h) + 20px); }
.about-page h1,
.about-page h2,
.about-page h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.about-page h2:not(.about-mission-strip h2):not(.about-end h2) {
  margin: 0 0 clamp(22px, 2.8vw, 34px);
  font-size: clamp(36px, 4vw, 60px);
  line-height: 1.08;
}
.about-page p { font-family: var(--font); font-weight: 400; }
.about-section { padding-block: clamp(108px, 12vw, 190px); }

/* =========================================================
   HERO — same serif family, weight and scale as index.
   A white composition with the brand sculpture beneath the headline.
========================================================= */
.about-hero {
  position: relative;
  min-height: min(800px, calc(100svh - var(--header-h)));
  min-height: clamp(620px, calc(100svh - var(--header-h)), 850px);
  background: #F5F8F4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-block: 125px 45px;
  isolation: isolate;
  overflow: hidden;
}
.about-hero-inner {
  position: relative;
  z-index: 2;
  min-height: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 0 18px;
  text-align: center;
}
.about-hero h1 {
  transform: translateY(10px);
  margin: 0 auto;
  max-width: 1040px;
  font-size: clamp(46px, 4.7vw, 76px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.015em;
}
.about-hero-media {
  position: relative;
  z-index: 0;
  width: min(440px, 58vw);
  height: clamp(240px, 25vw, 340px);
  margin: 0 auto;
  transform: translateY(32px);
  overflow: visible;
  background: transparent;
}
.about-hero-media img {
  opacity: .9;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  position: relative;
  z-index: 2;
}
.about-hero-media img[hidden] { display: none; }

/* =========================================================
   PURPOSE STRIP — editorial markings, not divider rules.
========================================================= */
.about-mission-strip {
  padding: clamp(105px, 12vw, 190px) 0;
  background: var(--bg);
  text-align: center;
}
.about-mission-strip h2 {
  max-width: 1120px;
  margin: 0 auto;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(36px, 4.4vw, 68px);
  line-height: 1.19;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.about-ink { position: relative; display: inline-block; white-space: nowrap; }
.about-ink svg { position: absolute; overflow: visible; pointer-events: none; }
.about-ink-first svg,
.about-ink-last svg {
  inset-inline: -2%;
  bottom: -0.13em;
  height: .42em;
  width: 104%;
  fill: none;
  stroke-width: 7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.about-ink-first svg { stroke: #C2D3B8; }
.about-ink-last svg { stroke: #E2C266; }
.about-ink-circle svg {
  left: -12%;
  top: -18%;
  height: 140%;
  width: 125%;
  fill: none;
  stroke: #80B794;
  stroke-width: 6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.about-ink path { stroke-dasharray: 100; stroke-dashoffset: 0; transition: stroke-dashoffset 900ms cubic-bezier(.18,.76,.24,1); }
.about-mission-strip h2.is-visible .about-ink path { stroke-dashoffset: 0; }
.about-ink-first path { transition-delay: 170ms; }
.about-ink-circle path { transition-delay: 360ms; }
.about-ink-last path { transition-delay: 530ms; }

/* =========================================================
   PRACTISI EDITORIAL STORY
   Three different compositions, one typography system.
   No rules, cards, box shadows, or ornamental separators.
========================================================= */
.about-what { background: #fff; }
.about-approach { background: var(--green); color: #fff; }
.about-approach .about-prose p { color: #fff; }
.about-learners { background: #fff; }

.about-prose { max-width: 59ch; }
.about-prose p {
  margin: 0 0 1.24em;
  color: #333530;
  font-size: clamp(16px, 1.14vw, 18px);
  line-height: 1.78;
  letter-spacing: -0.008em;
  text-wrap: pretty;
  hyphens: none;
}
.about-prose p:last-child { margin-bottom: 0; }

/* Chapter one — heading and book text, then a panoramic photograph. */
.about-opening-layout {
  display: grid;
  grid-template-columns: minmax(0, .76fr) minmax(0, 1.24fr);
  column-gap: clamp(46px, 8vw, 136px);
  align-items: start;
}
.about-opening-layout > h2 {
  max-width: 420px;
  padding-top: 0;
}
.about-opening-layout > .about-prose { width: 100%; }
.about-opening-layout > .about-story-photo {
  grid-column: 1 / -1;
  margin-top: clamp(52px, 6.8vw, 104px);
}

/* Chapter two — text-led spread with a narrower portrait photo. */
.about-work-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  column-gap: clamp(70px, 10vw, 156px);
  align-items: center;
}
.about-work-copy { width: 100%; min-width: 0; max-width: 640px; margin-inline: auto; text-align: left; }
.about-page .about-work-copy h2#aboutApproachTitle { max-width: none; margin-inline: 0; text-align: left; }
.about-work-copy .about-prose { max-width: none; margin: clamp(24px, 3vw, 40px) 0 0; text-align: left; }
.about-work-copy .about-prose p { text-wrap: wrap; }
.about-work-layout .about-story-photo { width: 100%; max-width: 500px; justify-self: end; transform: translateX(-28px); }

/* Chapter three — generous photograph first, reading-width prose beside it. */
.about-people-layout {
  display: grid;
  grid-template-columns: minmax(0, .89fr) minmax(0, 1.11fr);
  column-gap: clamp(52px, 7.4vw, 116px);
  align-items: center;
}
.about-people-copy { min-width: 0; }
.about-people-copy h2 { max-width: 590px; }
.about-people-copy .about-prose { margin-top: clamp(24px, 3vw, 40px); }

/* Real image elements, no card surfaces or image borders. */
.about-story-photo {
  position: relative;
  margin: 0;
  width: 100%;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #fff;
}
.about-story-photo--panorama { max-width: 850px; height: auto; justify-self: center; }
.about-story-photo--portrait { height: clamp(470px, 49vw, 680px); }
.about-story-photo--people { width: 85%; max-width: 460px; height: clamp(350px, 34vw, 480px); justify-self: center; }
.about-story-photo img {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.about-story-photo img[hidden] { display: none; }
.about-story-photo--panorama img { height: auto; object-fit: contain; }
.about-story-photo--people img { object-fit: contain; }

/* =========================================================
   WHAT WE TEACH — real bidirectional page-scroll interaction.
   Content is visible without JS. No empty spacer elements.
   Sticky is confined to this section; other sections flow normally.
========================================================= */
.about-subjects {
  background: var(--bg);
  padding-top: clamp(95px, 10vw, 150px);
  padding-bottom: 0;
}
.about-subjects-intro h2 { text-align: center; margin-bottom: 0 !important; }
.about-subjects-scroll { position: relative; }
.about-subjects-stage {
  position: relative;
  background: var(--bg);
}
.about-subjects-stage-inner { padding-block: clamp(25px, 4vw, 50px); transform: translateY(-48px); }
.about-subjects-viewport {
  position: relative;
  width: 100%;
  height: clamp(445px, 62svh, 640px);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 15%, #000 85%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 15%, #000 85%, transparent);
}
.about-subjects-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}
.about-subject-item {
  --about-row-height: clamp(90px, 12svh, 122px);
  flex: 0 0 var(--about-row-height);
  min-height: var(--about-row-height);
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 0;
  font-size: clamp(45px, 5.65vw, 80px);
  line-height: 1.04;
  font-weight: 600;
  opacity: .29;
  transform: scale(.9);
  transition: opacity 350ms ease, transform 520ms cubic-bezier(.18,.78,.24,1);
}
.about-subject-item.is-active { opacity: 1; transform: scale(1); }
.about-subject-item button {
  display: inline-block;
  position: relative;
  padding: .12em .24em .19em;
  border: none;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  line-height: inherit;
  cursor: pointer;
  white-space: nowrap;
}
.about-subject-item button svg {
  position: absolute;
  left: 6%;
  bottom: -.12em;
  width: 88%;
  height: .35em;
  overflow: visible;
  pointer-events: none;
  fill: none;
  stroke: var(--subject-accent);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.about-subject-item button svg path {
  vector-effect: non-scaling-stroke;
  stroke-width: 1.5px;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  transition: stroke-dashoffset 150ms ease;
}
.about-subject-item.is-active button svg path {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 680ms cubic-bezier(.16,.8,.26,1) 120ms;
}
/* Without JS, the five subjects appear in a stable list, not a blank stage. */
.about-subjects:not(.about-enhanced) .about-subjects-viewport {
  height: auto;
  min-height: 0;
  overflow: visible;
  -webkit-mask-image: none;
  mask-image: none;
}
/* Only activate the scrolling story after JavaScript is ready. */
.about-subjects.about-enhanced .about-subjects-scroll {
  height: 275svh;
  min-height: 1700px;
}
.about-subjects.about-enhanced .about-subjects-stage {
  position: sticky;
  top: var(--header-h);
  height: calc(100svh - var(--header-h));
  min-height: 510px;
  display: flex;
  align-items: center;
  z-index: 1;
}
.about-subjects.about-enhanced .about-subjects-stage-inner { width: 100%; }
.about-subjects.about-enhanced .about-subjects-list {
  position: absolute;
  left: 0;
  top: 0;
  transform: translate3d(0, var(--about-offset, 0px), 0);
  transition: transform 560ms cubic-bezier(.2,.75,.2,1);
  will-change: transform;
}

/* =========================================================
   OUR METHOD — reuse the homepage FAQ box classes exactly.
   Remove About-specific divider-lines and accordions.
========================================================= */
.about-method { background: #fff; }
.about-method-grid {
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
  align-items: start;
  gap: clamp(45px, 7vw, 118px);
}
.about-method .faq-list {
  width: 100%;
  margin: 0;
  gap: 8px;
}
.about-method .faq-item { border: 0; background: var(--surface); border-radius: var(--radius); }
.about-method .faq-item summary { font-family: var(--font); font-weight: 600; }
.about-method .faq-answer p { max-width: 61ch; }

/* =========================================================
   FINAL INVITATION — index CTA type/button, grey surface.
========================================================= */
.about-page .about-end { background: var(--surface); }
.about-page .about-end h2 {
  font-family: var(--font-serif);
  font-size: clamp(48px, 6.2vw, 88px);
  line-height: 1.06;
  font-weight: 600;
  letter-spacing: -0.015em;
}

/* =========================================================
   CONTENT SAFETY
   All copy is visible from first paint. Decorative motion must
   never be a prerequisite for readable content.
========================================================= */
.about-page .about-reveal { opacity: 1 !important; transform: none !important; }
/* Placeholder only shows if its real image fails to load. */
.about-image-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 24px;
  color: #686864;
  font: 500 15px/1.5 var(--font);
  letter-spacing: 0;
  text-align: center;
  background: #fff;
}
.about-image-placeholder small {
  display: block;
  max-width: 100%;
  margin-top: 5px;
  font-size: 12px;
  font-weight: 400;
  overflow-wrap: anywhere;
}
.about-hero-media .about-image-placeholder { background: #fff; }
.about-hero-media img:not([hidden]) + .about-image-placeholder,
.about-story-photo img:not([hidden]) + .about-image-placeholder { display: none; }

/* =========================================================
   RESPONSIVE — preserve the shared website shell and tokens.
========================================================= */
@media (max-width: 980px) {
  .about-opening-layout,
  .about-work-layout,
  .about-people-layout,
  .about-method-grid { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .about-opening-layout > .about-story-photo { grid-column: 1; margin-top: 8px; }
  .about-work-layout .about-story-photo { justify-self: stretch; max-width: none; transform: none; }
  .about-people-copy { max-width: 740px; }
  .about-story-photo--portrait { height: 500px; }
  .about-story-photo--people { height: 390px; }
  .about-method .faq-list { max-width: 920px; }
  .about-hero-inner { min-height: 0; }
}
@media (max-width: 700px) {
  .about-page > br,
  .about-opening-layout > br,
  .about-mission-strip h2 br,
  .about-prose p br { display: none; }
  .about-section { padding-block: 92px; }
  .about-hero { min-height: 600px; padding-top: clamp(84px, 12svh, 112px); }
  .about-hero-inner { min-height: 0; padding-block: 0 18px; }
  .about-hero h1 { font-size: clamp(28px, 8vw, 38px); line-height: 1.15; }
  .about-hero-media { width: 68%; height: 240px; transform: translateY(32px); margin: 0 auto; }
  .about-mission-strip { padding-block: 92px; }
  .about-mission-strip h2 {
    max-width: 20ch;
    margin-inline: auto;
    font-size: clamp(28px, 8vw, 38px);
    line-height: 1.15;
    text-align: center;
    text-wrap: balance;
  }
  .about-page h2:not(.about-mission-strip h2):not(.about-end h2) {
    font-size: clamp(28px, 8vw, 38px);
    line-height: 1.15;
  }
  .about-opening-layout,
  .about-work-layout,
  .about-people-layout { gap: 40px; }
  .about-opening-layout > .about-story-photo { margin-top: 44px; }
  .about-prose p { font-size: 16px; line-height: 1.72; }
  .about-story-photo--panorama { height: auto; }
  .about-story-photo--portrait { height: 405px; }
  .about-story-photo--people { height: 290px; }
  .about-subjects { padding-top: 92px; padding-bottom: 48px; }
  .about-subjects.about-enhanced .about-subjects-scroll,
  .about-subjects-scroll { height: auto; min-height: 0; }
  .about-subjects.about-enhanced .about-subjects-stage,
  .about-subjects-stage {
    position: relative;
    top: auto;
    height: auto;
    min-height: 0;
    display: block;
  }
  .about-subjects.about-enhanced .about-subjects-stage-inner,
  .about-subjects-stage-inner { padding-block: 24px 0; transform: none; }
  .about-subjects.about-enhanced .about-subjects-viewport,
  .about-subjects-viewport {
    height: auto;
    min-height: 0;
    overflow: visible;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .about-subjects.about-enhanced .about-subjects-list,
  .about-subjects-list {
    position: static;
    transform: none;
    gap: 8px;
  }
  .about-subject-item {
    --about-row-height: auto;
    flex: 0 0 auto;
    min-height: 0;
    padding-block: 6px;
    font-size: clamp(24px, 7vw, 32px);
    line-height: 1.15;
  }
  .about-method { padding-top: 48px; padding-bottom: 92px; }
  .about-method-grid { gap: 40px; }
  .about-method .faq-item summary { min-height: 64px; font-size: 15px; line-height: 1.45; gap: 16px; padding: 0 18px; }
  .about-method .faq-answer { padding: 0 18px 18px 18px; }
  .about-method .faq-answer p { font-size: 14px; line-height: 1.55; max-width: 100%; }
  .about-page .about-end h2 { font-size: clamp(28px, 8vw, 38px); line-height: 1.15; }
}
@media (max-width: 380px) {
  .about-hero h1 { font-size: 28px; }
  .about-subject-item { font-size: 22px; }
  .about-subject-item button { padding-inline: .12em; }
  .about-subjects-viewport { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .about-page .about-reveal,
  .about-page .about-ink path,
  .about-page .about-subjects-list,
  .about-page .about-subject-item,
  .about-page .about-subject-item svg path { transition: none !important; }

  .about-page .about-ink path { stroke-dashoffset: 0 !important; }
}

/* Use the original heading size with the requested line break. */
.about-mission-line { display:block; }
@media (min-width:981px) {
  .about-mission-strip h2 { max-width:none; }
  .about-mission-line { white-space:nowrap; }
}

/* End before Coding’s descender while keeping the same rising curve. */
.about-subject-item[data-subject="1"] button svg { width:72%; }

/* Mission emphasis follows the homepage typography. */
.about-mission-think { color:#16462B; }
.about-mission-solve { color:#343431; font-family:var(--font-serif); font-style:italic; font-weight:400; }
.about-mission-better { color:#425466; font-family:var(--script); font-weight:600; font-size:1.15em; letter-spacing:.015em; }

/* Live translated statement occupies the former illustration position. */
.about-story-photo--panorama.about-confidence {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(20px, 4vw, 64px);
  max-width: 1000px;
  overflow: visible;
}
.about-confidence-copy { grid-column: 1; transform: translateX(20px); }
.about-confidence-copy {
  color: #171717;
  font-family: var(--font-serif);
  font-size: clamp(45px, 7vw, 102px);
  font-weight: 500;
  line-height: .95;
  letter-spacing: -.045em;
}
.about-confidence-copy span,
.about-confidence-copy em { display: block; }
.about-confidence-copy em { font-weight: 400; margin-top: .08em; }
@media (max-width: 700px) {
  .about-story-photo--panorama.about-confidence {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 16px;
    width: 100%;
  }
  .about-confidence-copy {
    grid-column: 1 / -1;
    transform: none;
    text-align: left;
    width: fit-content;
    max-width: 100%;
    margin-inline: auto;
    font-size: clamp(28px, 7.2vw, 50px);
  }
}

/* A softly lit Practisi sphere rises beneath the centered headline. */
.about-hero {
  justify-content: flex-start;
  padding-top: clamp(120px, 17svh, 190px);
  background: radial-gradient(ellipse at 12% 75%, #F5F0E7 0, transparent 58%),
    radial-gradient(ellipse at 90% 65%, #EEF6F0 0, transparent 60%), #F5F8F4;
}
.about-hero-inner { padding-bottom: 0; }
.about-hero-sphere {
  opacity: .45;
  position: absolute;
  left: 50%;
  top: calc(clamp(120px, 17svh, 190px) + clamp(97px, 9.87vw, 160px) + 65px);
  transform: translateX(-50%);
  width: min(1100px, 78vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 18%, #F1F5F2 0, #DCE5DF 38%, #C7D3CB 70%, #B6C6BC 100%);
  box-shadow: inset -35px -45px 100px #20663E0D;
  -webkit-mask-image: linear-gradient(#000 0, #000 12%, transparent 47%);
  mask-image: linear-gradient(#000 0, #000 12%, transparent 47%);
  pointer-events: none;
}
@media (max-width: 700px) {
  .about-hero { padding-top: 100px; }
  .about-hero-sphere { top: 280px; width: 125vw; }
}
