/* ============================================================
   TOLANI FAMILY OFFICE - MASTER POLISH
   Senior QA pass: alignment, chronology, spacing and copy rhythm.
   Loaded after site.css so it deliberately resolves legacy conflicts.
   ============================================================ */
:root{
  --master-max:1260px;
  --master-gutter:72px;
  --master-red:#5e2b26;
  --master-red-deep:#44201d;
  --master-paper:#f1e7d6;
  --master-ivory:#faf6ee;
  --master-ink:#252d2f;
  --master-muted:#655d54;
}

/* global composition */
.shell{width:min(var(--master-max),calc(100% - var(--master-gutter)))}
h1,h2,h3,h4,blockquote{text-wrap:balance}
p,li,figcaption{text-wrap:pretty}
body{font-size:16px;line-height:1.62}
.section-head{grid-template-columns:minmax(180px,.34fr) minmax(0,1fr);gap:54px;margin-bottom:44px}
.section-head h2{max-width:17ch}
.section-head p{max-width:66ch}
.refined-intro,.heritage-manifesto,.heritage-split,.journal-preview,.article-grid-section,.refined-publishing,.institution-thesis,.leadership-section,.public-private-work,.institution-functions,.video-feature,.contact-section,.goodwill-note{padding-top:80px;padding-bottom:80px}
.editorial-section{padding-top:84px;padding-bottom:84px}
.heritage-split-grid,.flow-origin-grid,.flow-overlay-grid,.flow-ppli-grid,.public-private-grid{gap:56px}

/* navigation: quieter and better aligned */
.nav-shell{height:74px;width:min(1400px,calc(100% - 48px))}
.brand{width:104px}.brand img{width:68px;height:58px}
.desktop-nav{gap:23px}.desktop-nav a{padding:27px 0 24px;font-size:.7rem}
.site-header{border-bottom-color:rgba(94,43,38,.26)}

/* HOME - true at-a-glance chronology rather than a hidden carousel */
.home-chronicle{padding:88px 0 82px}
.chronicle-preview-head{grid-template-columns:.9fr 1.1fr;gap:58px;margin-bottom:42px}
.chronicle-preview-head h2{font-size:clamp(3.35rem,4.8vw,5.3rem);max-width:13ch}
.chronicle-preview-head>p{max-width:62ch}
.chronicle-preview-line{top:18px;height:1px;background:rgba(94,43,38,.25)}
.chronicle-preview-line:after{content:"";position:absolute;left:0;top:-1px;width:0;height:3px;background:var(--master-red);transition:width 1.8s cubic-bezier(.2,.75,.2,1)}
.home-chronicle.is-visible .chronicle-preview-line:after{width:100%}
.chronicle-preview-track{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:14px;overflow:visible;padding:0;scroll-snap-type:none}
.chronicle-preview-card{min-width:0;flex:none;padding:38px 10px 0 0;margin:0;border-right:1px solid rgba(94,43,38,.14)}
.chronicle-preview-card:last-child{border-right:0}
.chronicle-preview-card:before{top:12px;width:12px;height:12px;border-width:2px}
.chronicle-preview-card figure{height:108px;margin-bottom:13px}
.chronicle-preview-card h3{font-size:1.43rem;margin:5px 0 5px}
.chronicle-preview-card p{font-size:.88rem;line-height:1.38}
.chronicle-preview-card>span{font-size:.56rem}
.chronicle-preview-foot{margin-top:27px;padding-top:15px;border-top:1px solid rgba(94,43,38,.18)}

/* HOME - reduce monotony without losing luxury */
.refined-intro{padding-top:68px;padding-bottom:64px}
.heritage-manifesto{padding-top:78px;padding-bottom:82px}
.heritage-split{padding-top:92px;padding-bottom:92px}
.philosophy-home{padding-top:86px;padding-bottom:86px}
.refined-house{padding-top:86px;padding-bottom:86px}
.refined-journal{padding-top:82px;padding-bottom:86px}

/* FAMILY - chronology is now the page, not a long stack of narrow columns */
.family-title{padding:132px 0 50px}
.family-title h1{font-size:clamp(4.6rem,6.6vw,7.1rem);margin-bottom:18px}
.family-title p{font-size:1.18rem;max-width:68ch}
.family-opening .hero-plate img{max-height:650px}
.family-opening .hero-plate figcaption{padding:9px 24px 12px}
.family-chronicle{padding:28px 0 58px}
.chronicle-layout{grid-template-columns:158px minmax(0,1fr);gap:50px}
.chronology-nav{top:96px;height:calc(100vh - 122px);padding:44px 0 28px}
.chronology-nav>.eyebrow{margin-bottom:20px}
.chronology-nav nav{min-height:390px}
.chronology-nav a{grid-template-columns:52px 1fr;padding:6px 0}
.chronology-nav a b{font-size:1.02rem}.chronology-nav a small{font-size:.53rem}
.chronology-nav a:before{left:-27px;top:14px}
.chronicle-stories{border-left:0}
.chronicle-era{
  min-height:0;
  display:grid;
  grid-template-columns:minmax(0,.92fr) minmax(0,1.08fr);
  grid-template-rows:auto 1fr;
  column-gap:52px;
  row-gap:7px;
  align-items:start;
  padding:72px 0;
  margin:0;
  border-bottom:1px solid rgba(94,43,38,.17);
  position:relative;
}
.chronicle-era:before{display:none}
.chronicle-date{grid-column:1;grid-row:1;padding:0 0 3px;display:flex;align-items:baseline;gap:12px}
.chronicle-date span{display:inline;font-size:.55rem}.chronicle-date b{display:inline;font-size:1.6rem;margin:0}
.chronicle-copy{grid-column:1;grid-row:2;max-width:540px}
.chronicle-copy h2{font-size:clamp(3rem,4.1vw,4.55rem);line-height:.92;margin:8px 0 20px}
.chronicle-copy p{font-size:1.08rem;line-height:1.52;margin-bottom:14px}
.chronicle-copy blockquote{font-size:1.34rem;line-height:1.28;margin-top:22px;padding-left:17px}
.chronicle-image,.chronicle-media-pair{grid-column:2;grid-row:1 / span 2;margin:0;align-self:center;min-width:0}
.chronicle-image.full{grid-column:2;grid-row:1 / span 2;margin:0}
.chronicle-image img{height:365px;max-height:none;object-fit:cover}
.chronicle-image.full img{height:365px;max-height:none;object-fit:cover;background:transparent}
.chronicle-image.portrait-era img{height:385px;object-position:center 20%}
.chronicle-media-pair{grid-template-columns:1fr 1fr;gap:12px}
.chronicle-media-pair figure:nth-child(2){transform:none}
.chronicle-media-pair img{height:310px}
.chronicle-image figcaption,.chronicle-media-pair figcaption{font-size:.78rem;margin-top:7px}
.partition-era{margin:0 -26px;padding:70px 26px;background:var(--midnight);color:#efe5d7;border-bottom:0}
.partition-era:before{display:block;right:14px;top:-8px;font-size:7.5rem}
.partition-era .chronicle-date b,.partition-era .chronicle-date span{color:#d2a478}
.partition-era .chronicle-copy h2{color:#f5eadb}.partition-era .chronicle-copy p{color:#beb2a3}
.partition-era .chronicle-copy blockquote{color:#e0c2ab;border-left-color:#a7655c}
.partition-era .chronicle-image figcaption{color:#a99b8d}
.methodology-era{margin:0;padding:72px 22px;background:linear-gradient(90deg,rgba(94,43,38,.055),transparent 72%)}
.today-era{margin:0;padding:72px 22px;background:linear-gradient(180deg,var(--master-ivory),var(--master-paper))}
.refined-map{padding-top:72px;padding-bottom:82px}
.map-caption{align-items:start}.map-caption h3{max-width:13ch}.map-caption p{max-width:58ch}

/* PHILOSOPHY - fix the low-contrast operating section and tighten chapter rhythm */
.pillar-row,.pillar-row.reverse{padding-top:78px;padding-bottom:78px}
.pillar-text h2{max-width:12ch}
.pillar-text p{max-width:62ch}
.discipline-section{background:var(--master-paper)!important;color:var(--master-ink)!important;padding:74px 0!important;border-top:1px solid rgba(94,43,38,.16);border-bottom:1px solid rgba(94,43,38,.16)}
.discipline-section .section-head h2{color:var(--master-ink)!important}
.discipline-section .section-head p{color:var(--master-muted)!important}
.discipline-list{border-top:1px solid rgba(94,43,38,.28)}
.discipline-list>div{grid-template-columns:50px .65fr 1.35fr;gap:24px;padding:17px 0;border-bottom:1px solid rgba(94,43,38,.18)}
.discipline-list b{color:var(--master-red)!important}
.discipline-list strong{color:var(--master-ink)!important;font-size:1.42rem}
.discipline-list span{color:var(--master-muted)!important;font-size:.98rem}

/* TOLANI FLOW - preserve the modern page while improving legibility */
.flow-origin-section,.flow-signature,.flow-overlay-section,.flow-ppli-section,.flow-suitability,.flow-research-cta{padding-top:78px;padding-bottom:78px}
.flow-origin-grid h2,.flow-overlay-grid h2,.flow-ppli-copy h2,.flow-research-cta h2{max-width:13ch}
.flow-origin-grid p,.flow-overlay-grid p,.flow-ppli-copy p{font-size:1.1rem;line-height:1.52}
.flow-stage-grid article{padding:22px 22px 28px}.flow-stage-grid figure{height:225px}
.flow-stage-grid h3{font-size:2rem}.flow-stage-grid p{font-size:.97rem;line-height:1.48}
.research-questions{margin-top:26px}
.research-questions>div{grid-template-columns:.78fr 1.22fr;gap:28px;padding:15px 0}
.research-questions b{font-size:1.12rem}.research-questions span{font-size:.98rem;line-height:1.45}
.legal-note{font-size:.91rem!important;line-height:1.5!important}
.suitability-grid article{padding:23px 21px 28px}

/* STEWARDSHIP - museum pacing with consistent alignment */
.refined-steward{height:86vh;min-height:650px}
.refined-museum{padding-top:68px;padding-bottom:54px}
.refined-gallery{padding-top:22px;padding-bottom:66px}
.video-feature{padding-top:72px;padding-bottom:72px}
.video-feature-grid{grid-template-columns:1.18fr .82fr;gap:48px}
.video-feature-copy h2{max-width:11ch}.video-feature-copy p{max-width:47ch}
.stewardship-close{padding-top:74px!important;padding-bottom:78px!important}

/* INSIGHTS - cleaner editorial language and denser journal rhythm */
.refined-research{padding-top:76px;padding-bottom:76px}
.article-grid-section{padding-top:76px;padding-bottom:78px}
.article-tile h3{line-height:1.04}
.internal-memo-band{padding:64px 0}
.internal-memo-grid{gap:58px}
.internal-memo-grid h2{max-width:13ch}
.refined-publishing{padding-top:72px;padding-bottom:76px}

/* THE INSTITUTION - leadership should read as lineage, not two cramped cards */
.institution-thesis{padding-top:72px;padding-bottom:72px}
.leadership-section{padding-top:76px;padding-bottom:76px}
.leadership-grid{display:block;border-top:1px solid var(--rule)}
.leadership-profile,.leadership-profile:first-child{
  display:grid;
  grid-template-columns:270px minmax(0,1fr);
  gap:48px;
  padding:40px 0;
  border-right:0;
  border-bottom:1px solid var(--rule);
  align-items:start;
}
.leadership-profile figure{margin:0}.leadership-profile img{height:390px;object-fit:cover}
.leadership-profile>div{max-width:760px;padding-top:4px}
.leadership-profile h3{font-size:3.05rem;margin:7px 0 14px}
.leadership-profile p{font-size:1.04rem;line-height:1.52;max-width:68ch}
.leadership-profile.sanjay{grid-template-columns:minmax(0,1fr) 270px}
.leadership-profile.sanjay figure{order:2}.leadership-profile.sanjay>div{order:1;justify-self:end}
.profile-stats{max-width:560px;margin:19px 0;padding:12px 0}
.public-private-work{padding-top:74px;padding-bottom:76px}
.public-private-grid h2{max-width:13ch}
.institution-lineage{padding-top:78px;padding-bottom:78px}
.institution-functions{padding-top:76px;padding-bottom:78px}
.institution-functions .section-head h2{max-width:16ch}
.institution-video{padding-top:72px;padding-bottom:72px}

/* PRIVATE ENQUIRY - restore contrast; correspondence, not a washed-out landing page */
.contact-hero.refined-contact{background:var(--midnight)!important;color:#f4eadc;min-height:650px;padding:74px 0 0}
.contact-hero.refined-contact:after{inset:74px 0 0 52%;opacity:.62;filter:saturate(.65) sepia(.08) contrast(1.03)}
.contact-hero.refined-contact:before{inset:74px 0 0 42%;background:linear-gradient(90deg,var(--midnight) 0%,rgba(7,19,29,.92) 20%,rgba(7,19,29,.42) 70%,rgba(7,19,29,.18) 100%)}
.contact-hero-grid{min-height:576px;display:flex;align-items:center}
.contact-hero-grid>div{max-width:600px}
.contact-hero h1{color:#f7eddf;font-size:clamp(4.9rem,7vw,7.4rem);max-width:9ch;margin-bottom:18px}
.contact-hero p{color:#c9beaf;max-width:53ch;font-size:1.22rem}
.contact-hero .eyebrow{color:var(--brass-light)}
.refined-contact-section{padding-top:80px;padding-bottom:80px}
.correspondence-grid{grid-template-columns:.78fr 1.22fr;gap:68px}
.correspondence-copy h2{max-width:10ch}
.route-list>div{padding:14px 0}
.compact-form{padding:38px 40px}
.refined-goodwill{padding-top:76px;padding-bottom:78px}
.refined-goodwill .goodwill-grid{gap:60px}

/* Footer: keep it architectural and aligned */
.site-footer{border-top:2px solid var(--master-red)}
.footer-inner{align-items:start}.footer-brand p{max-width:34ch}

/* mobile */
@media(max-width:1050px){
  :root{--master-gutter:44px}
  .chronicle-preview-track{grid-template-columns:repeat(4,1fr);gap:12px}.chronicle-preview-card{border-bottom:1px solid rgba(94,43,38,.13);padding-bottom:14px}.chronicle-preview-line{display:none}
  .chronicle-layout{grid-template-columns:130px minmax(0,1fr);gap:34px}
  .chronicle-era{grid-template-columns:1fr;row-gap:8px;padding:62px 0}
  .chronicle-date,.chronicle-copy,.chronicle-image,.chronicle-image.full,.chronicle-media-pair{grid-column:1;grid-row:auto}
  .chronicle-image,.chronicle-media-pair{margin-top:24px}.chronicle-image img,.chronicle-image.full img{height:390px}
  .partition-era,.methodology-era,.today-era{margin-left:0;margin-right:0;padding-left:24px;padding-right:24px}
  .leadership-profile,.leadership-profile:first-child,.leadership-profile.sanjay{grid-template-columns:235px minmax(0,1fr);gap:34px}.leadership-profile.sanjay figure{order:1}.leadership-profile.sanjay>div{order:2;justify-self:auto}
}

@media(max-width:760px){
  :root{--master-gutter:36px}
  .section-head{grid-template-columns:1fr;gap:12px;margin-bottom:30px}.section-head h2{max-width:none}
  .chronicle-preview-head{grid-template-columns:1fr;gap:18px;margin-bottom:30px}
  .chronicle-preview-track{display:flex;overflow-x:auto;gap:16px;scroll-snap-type:x mandatory;padding-bottom:12px}
  .chronicle-preview-card{flex:0 0 72vw;scroll-snap-align:start;border-right:1px solid rgba(94,43,38,.14);border-bottom:0;padding-top:36px}
  .chronicle-preview-card figure{height:155px}.chronicle-preview-line{display:block;top:16px}.chronicle-preview-line:after{width:100%}
  .family-title{padding-top:108px;padding-bottom:36px}.family-title h1{font-size:3.95rem}.family-opening .hero-plate img{min-height:280px;object-fit:cover}
  .family-chronicle{padding-top:0}.chronicle-layout{display:block;width:min(100% - 34px,760px)}
  .chronology-nav{position:sticky;top:70px;z-index:30;height:auto;padding:10px 0;background:rgba(250,246,238,.96);backdrop-filter:blur(12px);border-bottom:1px solid rgba(94,43,38,.18)}
  .chronology-nav>.eyebrow,.chronology-rail{display:none}.chronology-nav nav{display:flex;flex-direction:row;gap:18px;overflow-x:auto;height:auto;min-height:0;padding:0 0 3px;border:0;scrollbar-width:none}.chronology-nav nav::-webkit-scrollbar{display:none}
  .chronology-nav a{flex:0 0 auto;padding:3px 0 5px}.chronology-nav a:before{display:none}.chronology-nav a.active{border-bottom:2px solid var(--master-red)}
  .chronicle-stories{border-left:2px solid rgba(94,43,38,.2);margin-left:8px}
  .chronicle-era{display:block;padding:52px 0 58px 24px}.chronicle-era:before{display:block;left:-7px;top:59px;width:11px;height:11px;box-shadow:0 0 0 5px var(--master-ivory);background:var(--master-red)}
  .chronicle-date{margin-bottom:12px}.chronicle-date b{font-size:1.35rem}.chronicle-copy{max-width:none}.chronicle-copy h2{font-size:2.85rem}.chronicle-copy p{font-size:1.03rem}.chronicle-copy blockquote{font-size:1.2rem}
  .chronicle-image,.chronicle-media-pair{margin-top:25px}.chronicle-image img,.chronicle-image.full img,.chronicle-image.portrait-era img{height:auto;max-height:none}.chronicle-media-pair{grid-template-columns:1fr}.chronicle-media-pair img{height:auto}.partition-era,.methodology-era,.today-era{margin-left:0;margin-right:0;padding-left:24px;padding-right:16px}
  .map-caption{display:block}.map-caption h3{max-width:none;margin-bottom:10px}
  .discipline-list>div{grid-template-columns:34px 1fr;gap:8px 12px}.discipline-list strong{font-size:1.3rem}.discipline-list span{grid-column:2;font-size:.93rem}
  .flow-origin-section,.flow-signature,.flow-overlay-section,.flow-ppli-section,.flow-suitability,.flow-research-cta{padding-top:62px;padding-bottom:62px}
  .video-feature-grid{grid-template-columns:1fr;gap:24px}.video-feature-copy{order:1}.video-feature .video-frame{order:2}.video-feature-copy h2{max-width:none}
  .leadership-profile,.leadership-profile:first-child,.leadership-profile.sanjay{grid-template-columns:1fr;gap:22px;padding:30px 0}.leadership-profile.sanjay figure,.leadership-profile.sanjay>div{order:initial}.leadership-profile figure{max-width:250px}.leadership-profile img{height:330px}.leadership-profile h3{font-size:2.6rem}.profile-stats{grid-template-columns:repeat(3,1fr);gap:6px}
  .contact-hero.refined-contact{min-height:585px;padding-top:70px}.contact-hero.refined-contact:after{inset:70px 0 0 0;opacity:.34}.contact-hero.refined-contact:before{inset:70px 0 0 0;background:linear-gradient(90deg,rgba(7,19,29,.97),rgba(7,19,29,.7))}.contact-hero-grid{min-height:515px}.contact-hero h1{font-size:4.2rem}.contact-hero p{font-size:1.07rem}
  .correspondence-grid{grid-template-columns:1fr;gap:36px}.compact-form{padding:28px 24px}
}

@media(max-width:520px){
  :root{--master-gutter:32px}
  .home-chronicle{padding-top:62px;padding-bottom:62px}.chronicle-preview-card{flex-basis:78vw}
  .family-title h1{font-size:3.6rem}.chronicle-copy h2{font-size:2.6rem}
  .profile-stats{grid-template-columns:1fr 1fr}.profile-stats span:last-child{grid-column:1/-1}
}
