/* Version 2.12 · Education and real project moments */

.education-v212 { background:#0c1928; }
.education-v212 .section-heading{margin-bottom:43px;}
.education-v212 .section-heading > p{max-width:360px;}
.education-grid-v212{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px;}
.education-grid-v212 .education-card{
  background:linear-gradient(148deg,#13283b,#102033);
  border:1px solid rgba(154,203,219,.19);
  padding:31px 30px 27px;min-height:240px;
  display:flex;flex-direction:column;position:relative;
  transition:transform .2s,border-color .2s;
}
.education-grid-v212 .education-card:hover{
  border-color:rgba(102,210,209,.58);transform:translateY(-2px);
}
.education-grid-v212 .education-card::before{
  content:"";position:absolute;top:0;left:29px;height:2px;width:40px;background:var(--accent);
}
.education-card-meta{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;}
.education-grid-v212 .education-card-meta span{
  color:var(--accent);font:800 10px/1.6 var(--font);letter-spacing:.12em;
}
.education-grid-v212 .education-card-meta span:last-child{color:#799baa;font-size:9px;}
.education-grid-v212 .education-card h3{
  font:800 clamp(21px,2.05vw,27px)/1.36 var(--font);
  letter-spacing:-.042em;margin:26px 0 13px;color:#eff7fb;
}
.education-grid-v212 .education-card .education-institution{
  color:#b3d5e1;font:600 14px/1.6 var(--body);margin:0 0 23px;
}
.education-grid-v212 .education-card .education-location{
  margin:auto 0 0;padding-top:16px;border-top:1px solid rgba(180,213,228,.16);
  color:#a3b8c6;font:700 11px/1.5 var(--font);letter-spacing:.04em;
}
.education-location span{color:var(--accent);font-size:17px;vertical-align:middle;margin-right:7px;}

.moments-section{background:radial-gradient(ellipse at 5% 12%,rgba(25,80,95,.14),transparent 52%),#081321;}
.moments-heading{margin-bottom:38px;}
.moments-heading h2{max-width:800px;}
.moments-heading>p{max-width:355px;}
.moments-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:18px;}
.moment-card{
  grid-column:span 2;display:flex;flex-direction:column;min-width:0;
  background:#112136;border:1px solid rgba(180,215,229,.17);color:inherit;
  padding:16px;transition:transform .2s,border-color .2s,box-shadow .2s;
}
.moment-card:nth-child(2),.moment-card:nth-child(3){grid-column:span 3;}
.moment-card.moment-featured{grid-column:span 3;grid-row:span 2;}
.moment-card:hover{transform:translateY(-3px);border-color:rgba(102,210,209,.55);box-shadow:0 12px 32px rgba(0,0,0,.2);}
.moment-photo{position:relative;aspect-ratio:1.55;background:#152e3b;overflow:hidden;flex:0 0 auto;}
.moment-photo img{display:block;width:100%;height:100%;object-fit:cover;object-position:center;transition:transform .35s;}
.moment-card:hover .moment-photo img{transform:scale(1.03);}
.moment-featured .moment-photo{flex:1 1 auto;min-height:390px;aspect-ratio:auto;}
.moment-featured .moment-photo img{position:absolute;inset:0;}
.moment-copy{padding:18px 5px 3px;}
.moment-copy h3{color:#eff6fa;font:800 18px/1.33 var(--font);letter-spacing:-.038em;margin:0 0 8px;}
.moment-copy p{color:#b1c6d3;font:400 13px/1.6 var(--body);margin:0;}
.moment-featured .moment-copy h3{font-size:22px;}
.moments-footnote{color:#8fa9b8;font:500 12px/1.7 var(--body);margin:23px 0 0;}
/* Keep the enlarged navigation usable while preserving mobile menu behaviour. */
@media(min-width:1131px){
 .nav-links{gap:clamp(9px,1.05vw,17px);}
 .nav-links a{font-size:11px;}
 .header-inner{gap:18px;}
 .brand{min-width:240px;}
}
@media(max-width:1130px){
 .header-inner{height:76px;}
 .header-contact{margin-left:auto;}
 .menu-button{display:flex;}
 .nav-links{
   position:fixed;inset:76px 0 auto;z-index:49;
   display:none;flex-direction:column;align-items:stretch;
   background:#0a1928;padding:22px 30px;border-bottom:1px solid var(--line);
   box-shadow:0 35px 70px rgba(0,0,0,.45);
   max-height:calc(100vh - 76px);overflow-y:auto;
 }
 .nav-links.open{display:flex;}
 .nav-links a{padding:8px 0;font-size:14px;}
}
@media(max-width:950px){
 .moments-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:15px;}
 .moment-card,.moment-card:nth-child(2),.moment-card:nth-child(3){grid-column:span 1;}
 .moment-card.moment-featured{grid-column:span 2;grid-row:auto;}
 .moment-featured .moment-photo{min-height:390px;aspect-ratio:16/10;}
 .moment-featured .moment-photo img{object-position:center 42%;}
}
@media(max-width:640px){
 .education-grid-v212{grid-template-columns:1fr;gap:12px;}
 .education-grid-v212 .education-card{padding:24px 22px;min-height:205px;}
 .education-grid-v212 .education-card h3{font-size:21px;margin-top:23px;}
 .education-grid-v212 .education-card::before{left:22px;}
 .moments-grid{grid-template-columns:1fr;gap:14px;}
 .moment-card,.moment-card:nth-child(2),.moment-card:nth-child(3),.moment-card.moment-featured{
   grid-column:span 1;grid-row:auto;
 }
 .moment-featured .moment-photo{min-height:280px;aspect-ratio:4/3;}
 .moment-card{padding:13px;}
 .moment-copy{padding:15px 4px 4px;}
 .moment-copy h3,.moment-featured .moment-copy h3{font-size:19px;}
 .moment-copy p{font-size:12.5px;}
}
@media(prefers-reduced-motion:reduce){
 .moment-card,.moment-photo img,.education-grid-v212 .education-card{transition:none!important;transform:none!important;}
}
