/* ===== History page ===== */
.hist-hero{overflow:hidden}
.ghost-year{position:absolute;right:-2vw;bottom:-6vw;font-family:"Cormorant Garamond",serif;font-weight:700;font-size:clamp(160px,28vw,420px);line-height:1;color:transparent;-webkit-text-stroke:1.5px rgba(255,255,255,.18);pointer-events:none;z-index:1}

/* stats strip */
.hist-stats{background:var(--navy);color:#fff}
.hist-stats .wrap{display:grid;grid-template-columns:repeat(4,1fr);gap:32px;padding-top:56px;padding-bottom:8px}
.hist-stats .wrap>div{display:flex;flex-direction:column;align-items:center;text-align:center;gap:8px}
.hist-stats b{font-family:"Cormorant Garamond",serif;font-size:60px;line-height:1;color:var(--gold);font-variant-numeric:lining-nums tabular-nums;font-feature-settings:"lnum" 1}
.hist-stats span{font-size:14px;color:#C9D3E3;max-width:200px}
@media (max-width:760px){.hist-stats .wrap{grid-template-columns:1fr 1fr;gap:28px 16px}}
.hist-stats+.bridge-band{padding-top:40px}

/* founders: editorial name row, no boxes */
.founders{display:grid;grid-template-columns:repeat(4,1fr);border-top:1px solid var(--navy);border-bottom:1px solid var(--line);position:relative;margin-top:24px}
.founders-label{position:absolute;top:-11px;left:0;background:#fff;padding-right:14px;font-family:Cinzel,serif;font-size:12px;letter-spacing:3px;text-transform:uppercase;color:var(--gold-dk);font-weight:600}
.founder{padding:40px 24px 36px;display:flex;flex-direction:column;gap:14px;position:relative}
.founder+.founder{border-left:1px solid var(--line)}
.founder::after{content:"";position:absolute;left:24px;bottom:-1px;height:3px;width:0;background:var(--gold);transition:width .5s cubic-bezier(.2,.7,.2,1)}
.founder:hover::after{width:calc(100% - 48px)}
.f-no{font-family:"Cormorant Garamond",serif;font-size:20px;font-style:italic;color:var(--gold-dk)}
.founder b{font-family:"Cormorant Garamond",serif;font-size:clamp(28px,2.6vw,36px);font-weight:600;line-height:1.05;color:var(--navy)}
.f-photo{width:100%;aspect-ratio:4/5;object-fit:cover;border-radius:4px;filter:grayscale(1) contrast(1.05);transition:filter .4s}
.founder:hover .f-photo{filter:grayscale(0)}
@media (max-width:860px){.founders{grid-template-columns:1fr 1fr}.founder:nth-child(4){border-left:0}.founder:nth-child(n+4){border-top:1px solid var(--line)}}
.founders-note{margin:20px 0 72px;font-size:15px;color:var(--muted)}

/* scroll rail (fills gold as you scroll) */
[data-rail]{position:relative;--fill:0}
[data-rail]::before,[data-rail]::after{content:"";position:absolute;top:0;bottom:0;width:3px;border-radius:2px}
[data-rail]::before{background:var(--line)}
[data-rail]::after{background:var(--gold);transform-origin:top;transform:scaleY(var(--fill))}
.rail{list-style:none;margin:0 auto;padding:0;max-width:760px}
.rail::before,.rail::after{left:11px}
.rail li{position:relative;padding:0 0 40px 52px;display:flex;flex-direction:column;gap:4px}
.rail li::before{content:"";position:absolute;left:4px;top:12px;width:17px;height:17px;border-radius:50%;background:#fff;border:3px solid var(--gold);z-index:1}
.rail li:last-child{padding-bottom:0}
.rail b{font-family:"Cormorant Garamond",serif;font-size:38px;line-height:1.1;color:var(--navy)}
.rail span{font-size:16px;color:var(--ink)}

/* closing band */
.hist-close{background:var(--warm);padding:96px 0;text-align:center}
.motto{font-family:"Cormorant Garamond",serif;font-size:clamp(40px,6vw,72px);line-height:1.05;color:var(--navy);margin:0 0 32px}
.motto em{color:var(--gold-dk)}
.btn-ghost-dark{border:1.5px solid var(--navy);color:var(--navy);background:transparent}
.btn-ghost-dark:hover{background:var(--navy);color:#fff}
@media (prefers-reduced-motion:reduce){[data-rail]{--fill:1!important}}

/* Brooklyn Bridge drawing */
.bridge-band{background:linear-gradient(180deg,var(--navy) 0%,var(--deep) 100%);color:#fff;padding:72px 0 64px;overflow:hidden}
.bridge{width:100%;height:auto;display:block;overflow:visible}
.bridge g,.bridge path,.bridge line{fill:none;stroke-linecap:round;stroke-linejoin:round}
.br-main path,.br-main line{stroke:var(--gold);stroke-width:2.2;stroke-dasharray:1;stroke-dashoffset:1;transition:stroke-dashoffset 2.6s cubic-bezier(.4,0,.2,1) .3s}
.br-towers{stroke:#E6ECF4;stroke-width:2.4;opacity:0;transform:translateY(20px);transition:opacity 1.2s ease,transform 1.2s cubic-bezier(.2,.7,.2,1)}
.br-sus{stroke:rgba(212,175,55,.45);stroke-width:1;opacity:0;transition:opacity 1.4s ease 2.2s}
.br-stays{stroke:rgba(230,236,244,.18);stroke-width:1;opacity:0;transition:opacity 1.4s ease 2.6s}
.br-water{stroke:rgba(212,175,55,.35);stroke-width:1.5;opacity:0;transition:opacity 1s ease 1s}
.br-walkers circle{fill:var(--gold);opacity:0;filter:drop-shadow(0 0 6px rgba(212,175,55,.9))}
.bridge-band.in .br-main path,.bridge-band.in .br-main line{stroke-dashoffset:0}
.bridge-band.in .br-towers{opacity:1;transform:none}
.bridge-band.in .br-sus,.bridge-band.in .br-stays,.bridge-band.in .br-water{opacity:1}
.bridge-band.in .br-water{animation:ripple 6s ease-in-out infinite alternate}
.bridge-band.in .br-walkers circle{animation:walk 16s linear infinite}
.bridge-band.in .br-walkers circle:nth-child(2){animation-delay:.55s}
.bridge-band.in .br-walkers circle:nth-child(3){animation-delay:1.1s}
.bridge-band.in .br-walkers circle:nth-child(4){animation-delay:1.65s}
@keyframes walk{0%{transform:translateX(-20px);opacity:0}5%{opacity:1}95%{opacity:1}100%{transform:translateX(1260px);opacity:0}}
@keyframes ripple{to{transform:translateX(-40px)}}
.bridge-cap{max-width:640px;margin:36px auto 0;text-align:center;font-family:"Cormorant Garamond",serif;font-size:clamp(22px,2.4vw,28px);line-height:1.35;color:#E6ECF4;display:flex;flex-direction:column;gap:10px}
@media (prefers-reduced-motion:reduce){
  .br-main path,.br-main line{stroke-dashoffset:0;transition:none}
  .br-towers,.br-sus,.br-stays,.br-water{opacity:1;transform:none;transition:none}
  .bridge-band.in .br-walkers circle,.bridge-band.in .br-water{animation:none}
}


/* Charter photo: archival duotone + film grain + slow light, so the old photo feels alive */

.hist-tone{position:absolute;inset:0;background:linear-gradient(115deg,#0B1F3A 0%,#1E3A66 45%,#8A6A00 100%);mix-blend-mode:color;opacity:.85;pointer-events:none;display:none}
.hist-hero .hist-tone{display:block;background:linear-gradient(115deg,#0B1F3A 0%,#1E3A66 40%,transparent 70%,rgba(212,175,55,.5) 100%);mix-blend-mode:soft-light;opacity:.9}
.hist-grain{position:absolute;inset:-50%;pointer-events:none;opacity:.14;mix-blend-mode:overlay;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation:grain 1.2s steps(6) infinite}
@keyframes grain{0%{transform:translate(0,0)}20%{transform:translate(-4%,3%)}40%{transform:translate(3%,-5%)}60%{transform:translate(-6%,-2%)}80%{transform:translate(5%,4%)}100%{transform:translate(0,0)}}
.hist-light{position:absolute;inset:0;pointer-events:none;mix-blend-mode:screen;
  background:linear-gradient(105deg,transparent 30%,rgba(212,175,55,.22) 45%,rgba(255,236,170,.14) 50%,transparent 65%);
  background-size:250% 100%;animation:sweep 14s ease-in-out infinite}
@keyframes sweep{0%{background-position:120% 0}55%,100%{background-position:-60% 0}}
.hist-hero .shade{background:linear-gradient(90deg,rgba(8,23,44,.88) 0%,rgba(8,23,44,.6) 40%,rgba(8,23,44,.1) 75%),linear-gradient(0deg,rgba(8,23,44,.55) 0%,transparent 35%)}
@media (prefers-reduced-motion:reduce){.hist-grain,.hist-light{animation:none}.hist-light{display:none}}
.hist-hero{min-height:min(78vh,720px)}
.hist-hero h1{text-shadow:0 2px 24px rgba(8,23,44,.55)}
.hist-hero{display:flex;flex-direction:column;justify-content:flex-end}
.hist-hero .wrap{width:100%;padding-top:200px;padding-bottom:72px}
.hist-hero .shade{background:linear-gradient(0deg,rgba(8,23,44,.92) 0%,rgba(8,23,44,.6) 38%,rgba(8,23,44,0) 65%),linear-gradient(90deg,rgba(8,23,44,.55) 0%,rgba(8,23,44,0) 60%)!important}

/* history hero photo + waving flag */
.hist-photo{position:absolute;inset:0}
.hist-photo img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.hist-hero .hist-photo{filter:sepia(.25) saturate(.85) contrast(1.08) brightness(.95);animation-duration:26s}

