/* Palette sampled from the published Cardinal site. B5 composition stays local. */
:root{--navy:#14263d;--deep:#0e1b2c;--cream:#fff;--ink:#14263d;--gold:#c6d1df;--line:#dce2e9}
.hero,.stories{background:linear-gradient(135deg,#233b57,#0d1b2d)}
.statistics{background:linear-gradient(165deg,#192e47,#0d1b2d)}
.thanks{background:linear-gradient(180deg,transparent 38.2%,rgba(0,0,0,.36) 100%),linear-gradient(145deg,#1e354f,#101f32 70%,#0c192b)}
.story{background:#fff}
.intro,.metrics p,.chart li,.help-note,.person p{color:#a5b5c8}
.metrics span{color:#a5b5c8}
.timeline p,.participation>p,.excerpt{color:#435065}
.chart li:nth-child(-n+3){color:#fff}
.donut{background:conic-gradient(#fff 0 7%,#e5ebf2 7% 20%,#c6d1df 20% 40%,#415d83 40% 77%,#344f73 77% 84%,#294261 84% 90%,#203652 90%)}
.quote{color:#7e94ad}
button:focus-visible,a:focus-visible,.story-track:focus-visible{outline-color:#a32638}
.hero{position:relative;isolation:isolate}
.hero::before{content:"";position:absolute;inset:0 50% 0 0;z-index:-1;pointer-events:none;background:linear-gradient(180deg,rgba(0,0,0,.38) 0%,transparent 32%,transparent 62%,rgba(0,0,0,.48) 100%)}
.hero h1{line-height:.92}
header>a{flex-shrink:0}
header>a img{display:block;width:210px;height:auto}
@media(max-width:1000px){header>a img{width:170px}}
@media(max-width:640px){header{align-items:center;background:#14263d}header>a img{width:135px}.hero::before{inset:0 0 360px}.hero h1{line-height:.94}}
/* Center navigation over the photograph, aligned with the MGIMO wordmark. */
@media(min-width:641px){header nav{position:absolute;left:50%;right:0;top:44px;transform:translateY(-50%);padding:0 3%;justify-content:space-evenly;gap:12px}header nav a{white-space:nowrap}}
@media(min-width:641px) and (max-width:1000px){header nav{top:39px;padding:0 2%;gap:8px;font-size:8px;letter-spacing:.7px}}
/* Hero copy: centered composition with a measured reading rhythm. */
.hero-copy{padding:112px 11% 92px 16.66%;align-self:center}
.hero .definition{margin-top:clamp(28px,2.5vw,40px);max-width:26ch}
.hero .intro{margin-top:clamp(24px,2vw,32px);max-width:42ch;line-height:1.65}
@media(min-width:641px) and (max-width:1000px){.hero-copy{padding:120px 10% 85px 12%}}
@media(max-width:640px){.hero-copy{padding:54px 7% 58px}.hero .definition{margin-top:28px}.hero .intro{margin-top:24px}}
/* Soft statistics panel and an independent, centered donut label. */
.statistics{border-radius:12px}
.metrics>div:nth-child(odd),.metrics>div:nth-child(-n+2){border:0}
.donut.has-ring{background:none}
.donut.has-ring::before{display:none}
.donut .donut-ring{position:absolute;inset:0;width:100%;height:100%;overflow:visible;transform:rotate(-90deg)}
.donut span{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;line-height:1;font-variant-numeric:lining-nums tabular-nums;padding-bottom:.08em}
/* Published white silk, ending exactly at the initiative statement rule. */
.history{overflow:hidden}
.history-grid{position:relative;isolation:isolate}
.history-grid::before{content:"";position:absolute;z-index:-1;pointer-events:none;top:-90px;bottom:-80px;left:calc((100% - 100vw)/2);right:calc((100% - 100vw)/2);background:linear-gradient(#ffffff8c,#ffffff8c),url("/mgimo/club/white-silk-generated.webp") center/cover no-repeat,#fff}
@media(max-width:1000px){.history-grid::before{top:-65px}}
@media(max-width:640px){.history-grid::before{bottom:-45px}}
/* Full-width initiative interlude, matching the published engraving treatment. */
.history.section{padding-bottom:0}
.history .statement{position:relative;isolation:isolate;overflow:hidden;width:100vw;margin-left:calc((100% - 100vw)/2);border:0;background:#fff;display:flex;align-items:center;justify-content:center;padding:5svh 8vw;min-height:20vw}
.history .statement::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:url("/mgimo/b5/optimized/mgimo-engraving-3a05820085fa.webp") center calc(50% + clamp(18px,3svh,48px))/100% auto no-repeat;mix-blend-mode:multiply;opacity:.09}
.history .statement p{width:100%;max-width:46ch;font-size:clamp(28px,2.2vw,72px);font-weight:500;line-height:1.02;text-align:center;text-wrap:pretty}
@media(max-width:640px){.history .statement{padding:48px 7%;min-height:240px}.history .statement::before{background-size:auto 100%}.history .statement p{font-size:28px;line-height:1.08}}
/* Quiet dark edges on the stories section; native horizontal navigation remains. */
.stories{background:linear-gradient(180deg,rgba(0,0,0,.34) 0%,transparent 29%,transparent 67%,rgba(0,0,0,.46) 100%),linear-gradient(135deg,#233b57,#0d1b2d)}
.stories .arrows{display:none}
/* Consistent portrait windows; individual crops keep faces at a shared eyeline. */
.story{border-radius:12px}
.author{gap:16px;min-height:126px;align-items:center}
.author .portrait{display:block;position:relative;width:88px;height:108px;flex:0 0 88px;overflow:hidden;border-radius:8px;background:#e9edf0}
.author .portrait img{display:block;width:100%;height:100%;object-fit:cover;transform:scale(var(--portrait-scale,1));transform-origin:var(--portrait-origin,50% 30%)}
.author[data-open="story-0"]{--portrait-scale:1.65;--portrait-origin:50% 0%}
.author[data-open="story-1"]{--portrait-scale:2.2;--portrait-origin:58% 0%}
.author[data-open="story-2"]{--portrait-scale:2.1;--portrait-origin:55% 70%}
.author[data-open="story-3"]{--portrait-scale:1.85;--portrait-origin:45% 22%}
.author[data-open="story-4"]{--portrait-scale:1.15;--portrait-origin:50% 20%}
.author[data-open="story-5"]{--portrait-scale:1.08;--portrait-origin:55% 25%}
.author[data-open="story-6"]{--portrait-scale:2.8;--portrait-origin:50% 36%}
.author[data-open="story-7"]{--portrait-scale:1.8;--portrait-origin:12% 34%}
.author[data-open="story-8"]{--portrait-scale:1.65;--portrait-origin:55% 26%}
.author[data-open="story-9"]{--portrait-scale:1.3;--portrait-origin:50% 24%}
@media(max-width:1000px){.author{gap:12px}.author .portrait{width:76px;height:96px;flex-basis:76px}}
/* Author identity, study details and reading action are separate levels. */
.author .author-details{display:flex;flex-direction:column;align-items:flex-start;min-width:0;gap:5px}
.author .author-name{font:500 21px/1.12 'Cormorant Garamond',Georgia,serif;color:#14263d}
.author .author-course{font:400 11px/1.4 Onest,Arial,sans-serif;color:#64748a}
.author .author-details small{font:400 10px/1.4 Onest,Arial,sans-serif;color:#14263d;margin-top:6px}
/* Discreet circular controls alongside the story progress line. */
.stories-navigation{display:flex;align-items:center;gap:28px;margin-top:28px}
.stories-navigation .progress{flex:1;min-width:0;margin:0}
.stories .stories-navigation .arrows{display:flex;gap:10px}
.stories-navigation .arrows button{display:grid;place-items:center;width:44px;height:44px;padding:0;border-radius:50%;border:1px solid rgba(198,209,223,.28);background:rgba(255,255,255,.025);color:#e5ebf2;transition:background .22s,border-color .22s,opacity .22s,transform .22s}
.stories-navigation .arrows svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.3;stroke-linecap:round;stroke-linejoin:round}
.stories-navigation .arrows button:disabled{opacity:.25;cursor:default}
@media(hover:hover){.stories-navigation .arrows button:not(:disabled):hover{background:rgba(255,255,255,.1);border-color:rgba(198,209,223,.6)}}
.stories-navigation .arrows button:not(:disabled):active{transform:scale(.94)}
@media(max-width:640px){.stories-navigation{gap:18px}}
/* Complete panoramic flags with a restrained blue tonal veil. */
.flag{position:relative;height:auto;min-height:0;max-height:none;aspect-ratio:3/1}
.flag img{display:block;width:100%;height:100%;object-fit:contain;object-position:center}
.flag::after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(155deg,rgba(60,98,132,.08) 0%,rgba(25,55,86,.12) 55%,rgba(10,29,51,.26) 100%)}
/* Campus engraving behind the white participation column only. */
.together>.participation{position:relative;isolation:isolate;overflow:hidden;background:#fff}
.together>.participation::before{content:"";position:absolute;left:0;right:0;top:52%;aspect-ratio:1672/941;transform:translateY(-50%);z-index:-1;pointer-events:none;background:url("/mgimo/b5/optimized/02-engraving-ffb9f2ba30d9.webp") center/100% auto no-repeat;mix-blend-mode:multiply;opacity:.09}
/* Published hero silk behind the mission statement. */
.mission{background:linear-gradient(#ffffff8c,#ffffff8c),url("/mgimo/club/white-silk-hero-v2-mirrored.webp") center/cover no-repeat,#fff}
/* Soft upper-edge shade on the statistics card. */
.statistics{background:linear-gradient(180deg,rgba(0,0,0,.34) 0%,rgba(0,0,0,.12) 15%,transparent 38.2%),linear-gradient(165deg,#192e47,#0d1b2d)}

/* Stable legend geometry during the synchronized reveal. */
.chart li{transform-origin:center center}.chart li b{font-variant-numeric:tabular-nums;min-width:3ch;text-align:right}

.person img[src="/mgimo/b5/optimized/irakli-bab385be62c0.webp"]{object-position:50% 10%;filter:grayscale(1)}

.irakli-portrait{display:block;width:70px;height:84px;flex-shrink:0;overflow:hidden}.person .irakli-portrait img{width:100%;height:100%;transform:scale(1.25);transform-origin:50% 55%}@media(max-width:640px){.irakli-portrait{width:60px;height:75px}}

/* Mobile carousel: a softly blurred preview reveals the next story. */
@media(max-width:640px){
 .stories{overflow:hidden}
 .story-track{margin-right:-6vw;padding-right:6vw;gap:16px}
 .story{flex-basis:86%;transition:filter .38s ease,opacity .38s ease}
 .story-track::after{content:"";flex:0 0 calc(14% - 16px)}
 .story-track.is-enhanced .story:not(.is-current){filter:blur(2px);opacity:.65}
 .story-track.is-enhanced .story.is-current{filter:none;opacity:1}
}
@media(prefers-reduced-motion:reduce){.story{transition:none}}

/* Fetch decorative backgrounds only as their section approaches. */
.history-grid.bg-pending::before,.history .statement.bg-pending::before,.together>.participation.bg-pending::before,.club-footer.bg-pending::before{background-image:none}
.mission.bg-pending{background-image:none}

header .nav-stories-mobile{display:none}@media(max-width:640px){header .nav-stories-desktop{display:none}header .nav-stories-mobile{display:inline}}
/* Mobile: percentage row gaps overflow an auto-height grid and clip the card. */
@media(max-width:640px){.history-grid{row-gap:36px;column-gap:0}.history-grid .statistics{margin-top:0}}

/* Editorial color is baked into the photo; preserve the approved grade. */
.flag::after{background:none}

/* Optical alignment with the capital letters; preserve line box metrics. */
.hero-dash{position:relative;top:-.11em}
