/* About page (about.html). Shared chrome comes from site.css; hero, sections and band from services.css. */

/* hero: copy + photo stack */
.phero.about{padding-bottom:40px}
.phero.about .wrap{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:56px;align-items:center}
.phero.about .wrap>div:first-child{padding-bottom:40px}
.phero.about .lead{max-width:46ch}
.stack{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:0;width:100%}
.stack img{display:block;width:100%;height:100%;object-fit:cover;border-radius:var(--r-md);box-shadow:0 30px 60px -28px rgba(43,37,32,.45)}
/* the front of the building beside its lit sign */
.stack .ext{aspect-ratio:3/4;border-radius:var(--r-lg)}
.stack .front{object-position:36% 50%}   /* the green board through to the entrance steps */
.stack .sign{object-position:30% 55%}

/* facts strip under the hero */
.facts-bar{background:var(--green);color:var(--ivory)}
.facts-bar .wrap{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0}
.facts-bar .f{padding:26px 28px;border-left:1px solid rgba(246,241,231,.16)}
.facts-bar .f:first-child{border-left:0;padding-left:0}
.facts-bar b{display:block;font-family:'Newsreader',serif;font-weight:400;font-size:40px;line-height:1;color:var(--ivory)}
.facts-bar b small{font-size:22px;vertical-align:top;margin-left:2px}
.facts-bar span{display:block;margin-top:8px;font-size:14.5px;line-height:1.4;color:rgba(246,241,231,.78)}

/* doctors: stacked, alternating profiles */
.team .sec-head{margin-bottom:24px}
.vaidya{display:grid;grid-template-columns:minmax(0,.72fr) minmax(0,1.28fr);gap:64px;align-items:center;padding:64px 0}
.vaidya+.vaidya{border-top:1px solid var(--line)}   /* one line between the two doctors; the section head already rules off the top */
.vaidya.flip{grid-template-columns:minmax(0,1.28fr) minmax(0,.72fr)}
.vaidya.flip .photo{order:2}
.vaidya .frame{aspect-ratio:4/5;border-radius:var(--r-lg);overflow:hidden;background:var(--sand);box-shadow:0 30px 60px -30px rgba(43,37,32,.4)}   /* same rounded frame as the other photos on the page */
.vaidya .frame img{width:100%;height:100%;object-fit:cover;object-position:50% 20%;display:block}
.vaidya .name{display:flex;flex-direction:column;gap:6px}
.vaidya .name .dev{font-size:22px;color:var(--green);line-height:1}
.vaidya h3{font-size:clamp(34px,3.6vw,50px);font-weight:400;line-height:1.05}
.vaidya .q{font-size:14px;letter-spacing:.02em;color:var(--copper-text);font-weight:500;margin-top:4px}
.vaidya .lede{margin:24px 0 0;max-width:40rem;font-family:'Newsreader',serif;font-size:clamp(21px,2vw,25px);line-height:1.5;color:var(--ink);text-wrap:pretty}
.vaidya .info>p:not(.lede){margin:14px 0 0;max-width:40rem;font-size:16px;line-height:1.65;color:var(--muted)}
.vaidya .acts{display:flex;flex-wrap:wrap;gap:12px;margin-top:28px}
.vaidya .acts .btn{min-height:50px}

/* story: copy + timeline */
.story .wrap{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:72px;align-items:start}
.story .copy{position:sticky;top:calc(var(--hh,92px) + 24px);display:flex;flex-direction:column;max-height:calc(100svh - var(--hh,92px) - 48px)}   /* the pinned column fits the screen: the photo gives up height first */
.story .copy h2{font-size:clamp(34px,3.8vw,52px);line-height:1.05;margin-top:12px;text-wrap:balance}
.story .copy p{font-size:16.5px;line-height:1.65;color:var(--muted);margin:18px 0 0}
.story .copy p b{font-weight:500;color:var(--ink)}
.story .copy>*{flex-shrink:0}
.story .copy figure{margin:30px 0 0;display:flex;flex-direction:column;flex-shrink:1;min-height:0}
.story .copy figure .ph{display:block;flex:0 1 auto;min-height:160px;overflow:hidden;border-radius:var(--r-md)}
.story .copy figure img{display:block;width:100%;height:100%;aspect-ratio:16/10;object-fit:cover;object-position:50% 100%;border-radius:var(--r-md);background:var(--sand)}
.tl{list-style:none;margin:0;padding:0;position:relative}
.tl::before{content:"";position:absolute;left:11px;top:14px;bottom:14px;width:1px;background:var(--line)}
.tl li{position:relative;display:grid;grid-template-columns:24px minmax(0,1fr);gap:0 28px;padding:0 0 38px}
.tl li:last-child{padding-bottom:0}
.tl .dot{width:24px;height:24px;border-radius:50%;background:var(--ivory-2);border:1px solid var(--turmeric);display:grid;place-items:center;margin-top:4px}
.tl .dot::after{content:"";width:8px;height:8px;border-radius:50%;background:var(--turmeric)}
.tl li.now .dot{background:var(--green);border-color:var(--green)}
.tl li.now .dot::after{background:var(--turmeric-light)}
.tl .yr{font-family:'Newsreader',serif;font-size:34px;line-height:1;color:var(--green);display:block}
.tl .yr small{font-family:'Jost',sans-serif;font-size:12px;letter-spacing:.2em;text-transform:uppercase;color:var(--copper-text);margin-left:10px;font-weight:500;vertical-align:middle}
.tl h3{font-size:22px;font-weight:400;line-height:1.35;margin-top:8px}
.tl p{margin:8px 0 0;font-size:15px;line-height:1.55;color:var(--muted);max-width:52ch}

/* founder: portrait aside + prose */
.founder{background:var(--green-deep);color:var(--ivory);padding:96px 0;position:relative;overflow:hidden}
.founder::before{content:"";position:absolute;inset:auto -10% -40% auto;width:50vw;height:50vw;max-width:800px;max-height:800px;border-radius:50%;background:radial-gradient(closest-side,rgba(244,169,82,.14),rgba(244,169,82,0));pointer-events:none}
.founder .eyebrow{color:var(--turmeric)}
.founder .wrap{position:relative;display:grid;grid-template-columns:minmax(0,.78fr) minmax(0,1.22fr);gap:72px;align-items:center}
/* three photos: the portrait leads, the pulse and the podium beside it */
.founder .album{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(0,1fr);grid-template-rows:1fr 1fr;gap:10px;width:min(100%,440px);aspect-ratio:5/4;margin:0 0 32px}
.founder .album img{display:block;width:100%;height:100%;min-height:0;object-fit:cover;object-position:60% 40%;border-radius:var(--r-md);background:rgba(246,241,231,.06);box-shadow:0 24px 40px -28px rgba(0,0,0,.7)}
.founder .album .lead{grid-row:1 / span 2;object-position:50% 30%}
.founder .album .podium{object-position:50% 18%}
.founder h2{font-size:clamp(32px,3.4vw,44px);line-height:1.05;letter-spacing:-.02em;margin-top:12px}
.founder h2 .dev{display:block;font-size:22px;line-height:1.6;color:var(--turmeric-light);letter-spacing:0}   /* the taller line keeps the matras inside the heading mask, which clips at the top edge */
.founder .title{margin:12px 0 0;font-size:14.5px;letter-spacing:.04em;color:var(--turmeric-light);font-weight:500}
.founder .lede{font-family:'Newsreader',serif;font-size:clamp(23px,2.2vw,30px);line-height:1.4;font-weight:300;color:var(--ivory);margin:0 0 22px;text-wrap:pretty}
.founder .wrap>div>p:not(.lede){margin:0 0 16px;font-size:16px;line-height:1.7;color:rgba(246,241,231,.8)}
.founder .wrap>div>p:last-child{margin-bottom:0}

/* clinic: mosaic */
.mosaic{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-auto-rows:230px;gap:14px}
.mosaic figure{position:relative;margin:0;border-radius:var(--r-md);overflow:hidden;background:var(--sand)}
.mosaic img{width:100%;height:100%;object-fit:cover;display:block;transition:transform 1.2s cubic-bezier(.2,.7,.2,1)}
.mosaic figure:hover img{transform:scale(1.04)}
.mosaic figcaption{position:absolute;left:0;right:0;bottom:0;padding:48px 18px 14px;font-size:12.5px;letter-spacing:.14em;text-transform:uppercase;color:var(--ivory);background:linear-gradient(180deg,rgba(39,46,26,0),rgba(39,46,26,.72))}
.mosaic .w2{grid-column:span 2}.mosaic .h2{grid-row:span 2}

/* in-house medicines */
.inhouse .wrap{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);gap:64px;align-items:center}
.inhouse h2{font-size:clamp(34px,3.6vw,50px);line-height:1.05;margin-top:12px;text-wrap:balance}
.inhouse .copy p{font-size:16.5px;line-height:1.65;color:var(--muted);margin:18px 0 0;max-width:46ch}
.inhouse .copy .acts{display:flex;flex-wrap:wrap;gap:12px;margin-top:28px}
.shelf{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.shelf figure{margin:0;border-radius:var(--r-md);overflow:hidden;background:#fff;border:1px solid var(--line)}
.shelf figure:nth-child(1),.shelf figure:nth-child(3){transform:translateY(28px)}
.shelf img{width:100%;aspect-ratio:1;object-fit:cover;display:block}
.shelf figcaption{padding:12px 16px 14px;font-size:14px}
.shelf figcaption .dev{color:var(--green);font-size:15px;margin-right:4px}

/* closing band */
.band.about .wrap{grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr)}
.band .addr{font-size:14.5px;line-height:1.6;color:rgba(246,241,231,.75);margin:0 0 18px}
.band .addr b{display:block;font-weight:500;color:var(--ivory)}

/* reveal (same as homepage) */
.reveal{opacity:0;transform:translateY(28px);transition:opacity .8s cubic-bezier(.2,.7,.2,1),transform .8s cubic-bezier(.2,.7,.2,1)}
.reveal.in{opacity:1;transform:none}
@media (prefers-reduced-motion:reduce){.reveal{opacity:1;transform:none;transition:none}}

@media (max-width:900px){
  .phero.about .wrap{grid-template-columns:1fr;gap:32px}
  .phero.about .wrap>div:first-child{padding-bottom:0}
  .stack{max-width:560px}
  .facts-bar .wrap{grid-template-columns:1fr 1fr}
  .facts-bar .f{padding:18px 0 18px 18px}
  .facts-bar .f:nth-child(odd){border-left:0;padding-left:0}
  .facts-bar .f:nth-child(n+3){border-top:1px solid rgba(246,241,231,.16)}
  .facts-bar b{font-size:32px}
  .vaidya,.vaidya.flip{grid-template-columns:1fr;gap:28px;padding:44px 0}
  .vaidya.flip .photo{order:0}
  .vaidya .photo{max-width:340px}
  .story .wrap,.founder .wrap,.inhouse .wrap{grid-template-columns:1fr;gap:40px}
  .story .copy{position:static}
  .story .copy{max-height:none}
  .founder{padding:64px 0}
  .mosaic{grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:170px}
  .mosaic .h2{grid-row:span 1}
  .shelf figure:nth-child(1),.shelf figure:nth-child(3){transform:none}
  .band.about .wrap{grid-template-columns:1fr}
}
@media (max-width:560px){
  .mosaic{grid-auto-rows:150px}
  .shelf{gap:10px}
}

/* phones, following the homepage: one centred axis, paragraphs justified with the last line centred,
   the hero in one screen with the pictures on top, portraits over centred names, full-width actions */
@media (max-width:720px){
  /* eyebrows: a short rule either side, as on the homepage */
  .phero.about .eyebrow,.story .copy>.eyebrow,.founder .side>.eyebrow,.inhouse .copy>.eyebrow{justify-content:center;flex-wrap:wrap;gap:4px 10px;font-size:11px;letter-spacing:.2em}
  .phero.about .eyebrow::after,.story .copy>.eyebrow::after,.founder .side>.eyebrow::after,.inhouse .copy>.eyebrow::after{content:"";width:28px;height:1px;background:currentColor;opacity:.6}

  /* hero: the building and its sign across the top, taking whatever height the copy leaves, then the
     heading, the reason and both actions, all in the first screen */
  .phero.about{min-height:100vh;min-height:100svh;padding:calc(var(--hh,92px) + 4px) 0 28px;align-items:stretch}
  .phero.about .wrap{display:flex;flex-direction:column;gap:0;text-align:center}
  .phero.about .wrap>div:first-child{display:flex;flex-direction:column;align-items:center;flex:1 0 auto}
  .stack{order:-1;max-width:none;gap:10px;margin:0 0 24px}
  .stack .ext{aspect-ratio:auto;height:clamp(140px,calc(100svh - 520px),340px);border-radius:var(--r-md)}
  .phero.about h1{margin-top:12px;font-size:clamp(36px,10.4vw,46px)}
  .phero.about .lead{max-width:none;margin:16px 0 0;font-size:16px;text-align:justify;text-align-last:center}
  .phero.about .acts{display:grid;grid-template-columns:minmax(0,1fr);gap:10px;align-self:stretch;margin-top:auto;padding-top:24px}
  .phero.about .acts .btn{width:100%;min-height:54px}

  /* justified reading text: hyphenate so narrow lines do not open wide gaps between words */
  .phero.about .lead,.story .copy p,.founder .wrap>div>p:not(.lede),.vaidya .info>p:not(.lede),.inhouse .copy p{hyphens:auto;-webkit-hyphens:auto}

  /* facts: the 2 x 2 block, centred */
  .facts-bar .f,.facts-bar .f:nth-child(odd){padding:18px 8px;text-align:center}
  .facts-bar b{font-size:30px}
  .facts-bar span{font-size:13.5px}

  /* our story: centred copy; the timeline keeps its rail on the left so the line reads as one path */
  .story .copy{text-align:center;display:block}
  .story .copy h2{font-size:clamp(30px,8.6vw,38px)}
  .story .copy p{max-width:none;font-size:15.5px;text-align:justify;text-align-last:center}
  .story .copy figure{margin-top:24px}
  .story .copy figure .ph{min-height:0}
  .tl li{gap:0 18px;padding-bottom:32px}
  .tl .yr{font-size:30px}
  .tl h3{font-size:20px;margin-top:6px}
  .tl p{max-width:none}

  /* founder: the three photos full width, his name centred, the story justified */
  .founder{padding:56px 0}
  .founder .wrap{gap:28px}
  .founder .side{text-align:center}
  .founder .album{width:100%;margin:0 0 26px}
  .founder h2{font-size:clamp(30px,8.6vw,38px)}
  .founder .lede{text-align:center;font-size:clamp(22px,6vw,26px);margin-bottom:18px}
  .founder .wrap>div>p:not(.lede){font-size:15.5px;text-align:justify;text-align-last:center}

  /* doctors: the same rounded frame as on desktop, square and full width, over the name; text centred; full-width actions */
  .vaidya,.vaidya.flip{justify-items:stretch;gap:22px;padding:40px 0;text-align:center}
  .vaidya .photo{width:100%;max-width:none}
  .vaidya .frame{aspect-ratio:1;border-radius:var(--r-lg)}
  .vaidya .frame img{object-position:50% 18%}
  .vaidya .name{align-items:center}
  .vaidya h3{font-size:clamp(30px,8.6vw,38px)}
  .vaidya .q{line-height:1.5}
  .vaidya .lede{margin-top:18px;font-size:20px}
  .vaidya .info>p:not(.lede){max-width:none;font-size:15.5px;text-align:justify;text-align-last:center}
  .vaidya .acts{display:grid;grid-template-columns:minmax(0,1fr);gap:10px;margin-top:24px}
  .vaidya .acts .btn{width:100%;min-height:54px}

  /* made in house: centred copy over the four products */
  .inhouse .copy{text-align:center}
  .inhouse h2{font-size:clamp(30px,8.6vw,38px)}
  .inhouse .copy p{max-width:none;font-size:15.5px;text-align:justify;text-align-last:center}
  .inhouse .copy .acts{display:grid;grid-template-columns:minmax(0,1fr);gap:10px;margin-top:24px}
  .inhouse .copy .acts .btn{width:100%;min-height:54px}
  .shelf figcaption{padding:10px 10px 12px;font-size:13px;text-align:center}

  /* closing: as on the homepage, the main action full width and the quick ones side by side */
  .band.about .wrap{transform:none!important}
  .band.about .addr{text-align:center}
  .band.about .acts{grid-template-columns:repeat(2,minmax(0,1fr))}
  .band.about .acts .btn{padding:0 16px}
  .band.about .acts .btn:first-child{grid-column:1 / -1}
}
@media (max-width:380px){
  .phero.about .eyebrow::before,.phero.about .eyebrow::after,.story .copy>.eyebrow::before,.story .copy>.eyebrow::after,.founder .side>.eyebrow::before,.founder .side>.eyebrow::after,.inhouse .copy>.eyebrow::before,.inhouse .copy>.eyebrow::after{display:none}
}
