@font-face { font-family: "Vazirmatn"; src: url("fonts/vazirmatn.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --ink: #0E1838;
  --navy: #16235A;
  --blue: #2B3F9A;
  --sun: #F5C518;
  --sun-deep: #DDAE00;
  --sun-soft: #FFF6D2;
  --paper: #F6F7FB;
  --stone: #ECEFF6;
  --line: #DCE1ED;
  --sea: #2B3F9A;
  --sea-soft: #E9EDFA;
  --muted: #5A6382;
  --white: #FFFFFF;
  --body: "Vazirmatn", Tahoma, sans-serif;
  --display: "Vazirmatn", Tahoma, sans-serif;
  --wrap: 1240px;
  --r-sm: 8px; --r: 14px; --r-lg: 24px;
  --shadow: 0 1px 2px rgba(14,24,56,.06), 0 12px 32px -14px rgba(14,24,56,.22);
  --shadow-lg: 0 30px 70px -30px rgba(14,24,56,.45);
  --ease: cubic-bezier(.2,.7,.2,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 110px; }
@media (prefers-reduced-motion: no-preference) { html:not(.motion) { scroll-behavior: smooth; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.95 var(--body); text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
main, .site-footer { overflow-x: clip; } /* 3D reveals must never cause sideways scrolling */
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 5px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.4; margin: 0 0 .5em; color: var(--ink); letter-spacing: -.005em; }
h1 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.35rem); }
h3 { font-size: 1.28rem; }
h4 { font: 700 1.06rem/1.6 var(--body); margin: 1.4em 0 .4em; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; top: -60px; right: 12px; background: var(--sun); color: var(--ink); padding: 8px 14px; z-index: 200; border-radius: var(--r-sm); }
.skip:focus { top: 8px; }
.ico { width: 1.15em; height: 1.15em; flex-shrink: 0; vertical-align: -.2em; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55em; min-height: 48px; padding: .6em 1.4em; border-radius: 999px; font: 700 .98rem/1.4 var(--body); text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease), box-shadow .2s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn--lg { min-height: 56px; padding-inline: 1.8em; font-size: 1.04rem; }
.btn--sun { background: var(--sun); color: var(--ink); box-shadow: 0 10px 24px -12px rgba(245,197,24,.9); }
.btn--sun:hover { background: var(--sun-deep); color: var(--ink); box-shadow: 0 14px 28px -12px rgba(221,174,0,.95); }
.btn--glass { background: rgba(255,255,255,.08); color: var(--white); border-color: rgba(255,255,255,.28); backdrop-filter: blur(6px); }
.btn--glass:hover { background: var(--white); color: var(--ink); }
.btn--line { border-color: var(--line); color: var(--ink); background: var(--white); }
.btn--line:hover { border-color: var(--ink); color: var(--ink); }
.icon-btn { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); color: var(--ink); cursor: pointer; transition: background-color .2s, border-color .2s; }
.icon-btn:hover { border-color: var(--ink); }
.icon-btn .ico { width: 20px; height: 20px; }

/* ---------- top bar + header ---------- */
.topbar { background: var(--ink); color: #AEB7D3; font-size: .84rem; }
.topbar-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.topbar p { margin: 0; display: flex; align-items: center; gap: 6px; }
.topbar ul { list-style: none; display: flex; gap: 22px; margin: 0; padding: 0; }
.topbar a { color: #DCE1F2; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.topbar a:hover { color: var(--sun); }
.topbar .ico { width: 15px; height: 15px; color: var(--sun); }

.site-header { position: sticky; top: 0; z-index: 60; background: rgba(255,255,255,.92); backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid transparent; transition: border-color .25s, box-shadow .25s; }
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 8px 30px -20px rgba(14,24,56,.4); }
.head-row { display: flex; align-items: center; gap: 20px; min-height: 80px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.brand img { width: 46px; height: 46px; }
.brand strong { display: block; font: 800 1.2rem/1.15 var(--body); letter-spacing: .03em; }
.brand small { display: block; font-size: .78rem; color: var(--muted); line-height: 1.55; }
.brand--light { color: var(--white); }
.brand--light small { color: #9FA9C9; }
.site-nav { margin-inline-start: auto; }
.site-nav > ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.site-nav > ul > li { position: relative; }
.nav-link { white-space: nowrap; display: flex; align-items: center; gap: 4px; padding: 9px 11px; font: 600 .93rem/1.4 var(--body); color: var(--ink); text-decoration: none; background: none; border: 0; cursor: pointer; border-radius: 999px; transition: background-color .2s, color .2s; }
.nav-link .chev { width: 14px; height: 14px; transform: rotate(-90deg); transition: transform .2s; opacity: .6; }
.nav-link:hover, .has-sub.open > .nav-link, .has-sub.is-active > .nav-link, .nav-link[aria-current="page"] { background: var(--stone); color: var(--ink); }
.has-sub.open > .nav-link .chev { transform: rotate(90deg); }
.mega { position: absolute; top: calc(100% + 12px); right: -10px; width: 290px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-lg); padding: 14px; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .2s var(--ease), visibility .2s; }
.mega::before { content: ""; position: absolute; inset: -14px 0 auto; height: 14px; }
.mega--wide { width: 560px; }
.mega-head { display: flex; align-items: center; gap: 10px; padding: 6px 10px 12px; margin-bottom: 6px; border-bottom: 1px solid var(--stone); }
.mega-head p { margin: 0; font: 700 1.05rem/1.4 var(--display); }
.mega-ico { width: 32px; height: 32px; padding: 7px; border-radius: 10px; background: var(--sun-soft); color: var(--ink); }
.mega ul { list-style: none; margin: 0; padding: 0; }
.mega--wide ul { columns: 2; column-gap: 6px; }
.mega a { display: block; padding: 7px 10px; border-radius: var(--r-sm); color: var(--ink); text-decoration: none; font-size: .94rem; line-height: 1.6; break-inside: avoid; transition: background-color .15s, color .15s; }
.mega a:hover, .mega a[aria-current="page"] { background: var(--paper); color: var(--blue); }
.has-sub.open > .mega { opacity: 1; visibility: visible; transform: none; }
@media (hover: hover) and (min-width: 1181px) { .has-sub:hover > .mega { opacity: 1; visibility: visible; transform: none; } }
.head-tools { display: flex; align-items: center; gap: 10px; }
@media (max-width: 1180px) { .head-tools { margin-inline-start: auto; } } /* nav is off-canvas here, so push the buttons to the far side */
.nav-toggle { display: none; }

/* ---------- search dialog ---------- */
.search-dlg { position: fixed; inset: 0; z-index: 120; background: rgba(14,24,56,.55); backdrop-filter: blur(6px); display: grid; align-items: start; justify-items: center; padding: 12vh 16px 16px; }
.search-dlg[hidden] { display: none; }
.search-box { position: relative; width: min(680px, 100%); background: var(--white); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: 14px; }
.search-field { display: flex; align-items: center; gap: 12px; padding: 4px 14px; border-radius: var(--r); background: var(--paper); margin-inline-end: 56px; }
.search-field .ico { width: 22px; height: 22px; color: var(--muted); }
.search-field input { flex: 1; border: 0; background: none; font: 500 1.08rem/1.6 var(--body); padding: 12px 0; color: var(--ink); outline: none; min-width: 0; }
input[type="search"]::-webkit-search-cancel-button { display: none; }
.search-close { position: absolute; top: 18px; left: 14px; }
.search-close .x { transform: rotate(45deg); }
.search-results { list-style: none; margin: 10px 0 0; padding: 0; max-height: 56vh; overflow-y: auto; }
.search-results a, .finder-results a { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 12px 14px; border-radius: var(--r-sm); text-decoration: none; color: var(--ink); }
.search-results a:hover, .search-results a.on, .finder-results a:hover, .finder-results a.on { background: var(--paper); }
.search-results strong, .finder-results strong { font-weight: 700; }
.search-results small, .finder-results small { font-size: .78rem; color: var(--sea); background: var(--sea-soft); padding: 1px 9px; border-radius: 999px; align-self: center; }
.search-results span, .finder-results span { grid-column: 1 / -1; font-size: .86rem; color: var(--muted); line-height: 1.7; }
.search-empty { margin: 14px; color: var(--muted); }
mark { background: var(--sun-soft); color: inherit; border-radius: 3px; padding: 0 1px; }

/* ---------- hero ---------- */
.hero { position: relative; background: radial-gradient(1100px 560px at 85% -10%, #26398A 0%, transparent 62%), var(--ink); color: var(--white); overflow: hidden; isolation: isolate; }
.hero-deco { position: absolute; inset: 0; z-index: -1; opacity: .5; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='150' viewBox='0 0 120 150'%3E%3Cpath d='M10 150V70C10 40 32 18 60 10c28 8 50 30 50 60v80' fill='none' stroke='%23ffffff' stroke-opacity='.06' stroke-width='1.2'/%3E%3C/svg%3E"); background-size: 120px 150px; -webkit-mask-image: linear-gradient(90deg, #000 0%, transparent 70%); mask-image: linear-gradient(90deg, #000 0%, transparent 70%); }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center; padding-block: 72px 96px; }
.eyebrow-chip { display: inline-flex; align-items: center; gap: 10px; padding: 6px 16px 6px 14px; border-radius: 999px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); color: #E8ECF8; font-size: .9rem; font-weight: 500; margin-bottom: 26px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 4px rgba(245,197,24,.22); }
.hero h1 { color: var(--white); font-size: clamp(2.4rem, 1.3rem + 4vw, 4.4rem); line-height: 1.28; margin-bottom: .4em; text-wrap: balance; }
.hero-lead { font-size: 1.15rem; line-height: 2.05; color: #C9D0E8; max-width: 33em; margin-bottom: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.finder { position: relative; margin-top: 34px; max-width: 560px; }
.finder-field { display: flex; align-items: center; gap: 12px; padding: 6px 20px; background: var(--white); border-radius: var(--r); box-shadow: 0 20px 50px -24px rgba(0,0,0,.6); color: var(--muted); }
.finder-field .ico { width: 22px; height: 22px; }
.finder-field input { flex: 1; min-width: 0; border: 0; outline: none; background: none; font: 500 1.02rem/1.6 var(--body); padding: 13px 0; color: var(--ink); }
.finder-field:focus-within { outline: 3px solid var(--sun); outline-offset: 2px; }
.finder-results { position: absolute; top: calc(100% + 8px); right: 0; left: 0; z-index: 5; list-style: none; margin: 0; padding: 8px; background: var(--white); border-radius: var(--r); box-shadow: var(--shadow-lg); max-height: 340px; overflow-y: auto; }
.finder-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 16px 0 0; font-size: .88rem; color: #9EA8C8; }
.finder-chips a { color: #E2E7F5; text-decoration: none; padding: 3px 13px; border-radius: 999px; border: 1px solid rgba(255,255,255,.18); transition: background-color .2s, color .2s; }
.finder-chips a:hover { background: var(--sun); color: var(--ink); border-color: var(--sun); }

.hero-visual { position: relative; justify-self: center; width: min(100%, 470px); }
.arch-frame { -webkit-mask: url("arch.svg") center / 100% 100% no-repeat; mask: url("arch.svg") center / 100% 100% no-repeat; overflow: hidden; }
.arch-frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-visual .arch-frame { aspect-ratio: 100 / 130; }
.hero-visual .arch-frame img { object-position: 52% 50%; }
.arch-outline { position: absolute; inset: -18px -18px 18px 18px; z-index: -1; border: 0; background: none; }
.arch-outline::before { content: ""; position: absolute; inset: 0; -webkit-mask: url("arch.svg") center / 100% 100% no-repeat; mask: url("arch.svg") center / 100% 100% no-repeat; background: linear-gradient(160deg, var(--sun), rgba(245,197,24,.15) 60%); opacity: .9; }
.arch-outline::after { content: ""; position: absolute; inset: 2px; -webkit-mask: url("arch.svg") center / 100% 100% no-repeat; mask: url("arch.svg") center / 100% 100% no-repeat; background: var(--ink); }
.seal { position: absolute; top: 8%; right: -46px; width: 132px; height: 132px; border-radius: 50%; background: var(--sun); color: var(--ink); display: grid; place-items: center; box-shadow: 0 18px 40px -14px rgba(0,0,0,.55); }
.seal { align-content: center; text-align: center; line-height: 1.3; }
.seal::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; border: 1.5px dashed rgba(14,24,56,.45); }
.seal span { position: relative; font-size: .78rem; font-weight: 700; }
.seal strong { font: 700 2.1rem/1.1 var(--display); position: relative; }
.float-card { position: absolute; bottom: 9%; left: -42px; display: flex; align-items: center; gap: 12px; padding: 14px 20px 14px 16px; background: var(--white); color: var(--muted); border-radius: var(--r); box-shadow: var(--shadow-lg); font-size: .92rem; line-height: 1.5; max-width: 260px; }
.float-card strong { display: block; color: var(--ink); font: 700 1.6rem/1.15 var(--display); }
.float-ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--sea-soft); color: var(--sea); flex-shrink: 0; }
.float-ico .ico { width: 24px; height: 24px; }
@media (prefers-reduced-motion: no-preference) {
  html:not(.motion) .hero-copy > * { animation: rise .8s var(--ease) both; }
  html:not(.motion) .hero-copy > :nth-child(2) { animation-delay: .07s; } html:not(.motion) .hero-copy > :nth-child(3) { animation-delay: .14s; } html:not(.motion) .hero-copy > :nth-child(4) { animation-delay: .21s; } html:not(.motion) .hero-copy > :nth-child(5) { animation-delay: .28s; } html:not(.motion) .hero-copy > :nth-child(6) { animation-delay: .32s; }
  html:not(.motion) .hero-visual .arch-frame { animation: reveal 1.1s .1s var(--ease) both; }
  html:not(.motion) .seal { animation: stamp .7s .7s cubic-bezier(.3,1.5,.5,1) both; }
  .seal::before { animation: spin 30s linear infinite; }
  html:not(.motion) .float-card { animation: rise .8s .9s var(--ease) both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(22px); } }
@keyframes reveal { from { opacity: 0; transform: scale(1.06); clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes stamp { from { opacity: 0; transform: scale(1.4) rotate(-20deg); } }
@keyframes spin { to { transform: rotate(-360deg); } }

/* ---------- trust + stats ---------- */
.trust { background: var(--white); border-bottom: 1px solid var(--line); }
.trust-row { display: flex; align-items: center; gap: 28px; min-height: 84px; flex-wrap: wrap; padding-block: 14px; }
.trust p { margin: 0; font-weight: 700; color: var(--muted); font-size: .92rem; }
.trust ul { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 34px; margin: 0; padding: 0; }
.trust li { font: 800 1.02rem/1.4 var(--body); color: #7F88A6; letter-spacing: .02em; }
.stats { background: var(--white); }
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); padding-block: 44px; }
.stats-row > div { padding: 4px 28px; border-inline-start: 1px solid var(--line); }
.stats-row > div:first-child { border-inline-start: 0; padding-inline-start: 0; }
.stats strong { display: block; font: 700 clamp(2.2rem, 1.6rem + 1.6vw, 3rem)/1.15 var(--display); color: var(--ink); font-variant-numeric: tabular-nums; }
.stats span { color: var(--muted); font-size: .94rem; line-height: 1.75; display: block; margin-top: 6px; }

/* ---------- sections ---------- */
.sec { padding-block: 104px; position: relative; }
.sec-head { max-width: 640px; margin-bottom: 44px; }
.sec-head p { color: var(--muted); font-size: 1.08rem; margin: 0; }
.sec-head--split { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.sec-head--split > div { max-width: 620px; }
.sec-head--light h2 { color: var(--white); }
.sec-head--light p { color: #B9C2DE; }

/* bento */
.bento { display: grid; grid-template-columns: 1.15fr 1fr 1fr; grid-template-rows: auto auto auto; gap: 18px; }
.b-photo { grid-row: 1 / span 3; margin: 0; position: relative; display: flex; flex-direction: column; background: var(--white); border-radius: var(--r-lg); padding: 18px 18px 24px; box-shadow: var(--shadow); }
.b-photo .arch-frame { flex: 1; min-height: 340px; }
.b-photo figcaption { padding: 18px 8px 0; color: var(--muted); font-size: .95rem; }
.b-photo figcaption strong { display: block; color: var(--ink); font: 700 1.3rem/1.5 var(--display); }
.b-tile { display: flex; flex-direction: column; gap: 6px; padding: 26px; border-radius: var(--r-lg); background: var(--white); color: var(--muted); text-decoration: none; box-shadow: var(--shadow); font-size: .95rem; line-height: 1.85; transition: transform .25s var(--ease), box-shadow .25s; }
.b-tile .ico { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: var(--stone); color: var(--ink); margin-bottom: 10px; }
.b-tile strong { color: var(--ink); font: 700 1.25rem/1.5 var(--display); }
.b-tile--sun { background: var(--sun); color: #4A3B00; }
.b-tile--sun:hover { color: #4A3B00; }
.b-tile--sun .ico { background: rgba(255,255,255,.55); }
.b-tile--ink { background: var(--ink); color: #B9C2DE; }
.b-tile--ink:hover { color: #B9C2DE; }
.b-tile--ink strong { color: var(--white); }
.b-tile--ink .ico { background: rgba(255,255,255,.1); color: var(--sun); }
.b-tile--sea { background: linear-gradient(135deg, var(--sea), #0F5E66); color: #D4ECEC; }
.b-tile--sea:hover { color: #D4ECEC; }
.b-tile--sea strong { color: var(--white); }
.b-tile--sea .ico { background: rgba(255,255,255,.14); color: var(--white); }
.b-wide { grid-column: span 2; }

/* path */
.path { background: var(--ink); color: #C3CAE2; overflow: hidden; isolation: isolate; }
.path-deco { position: absolute; inset: 0; z-index: -1; background: radial-gradient(1100px 560px at 85% -10%, rgba(38,57,138,.9) 0%, transparent 62%); }
.path h3 { color: var(--white); font-size: 1.3rem; }
.path a:not(.btn) { color: var(--sun); }
.steps { list-style: none; margin: 0 0 48px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; }
.steps li { position: relative; padding: 0 6px; }
.step-no { position: relative; display: grid; place-items: center; width: 64px; height: 76px; margin-bottom: 22px; font: 700 1.7rem/1 var(--display); color: var(--ink); }
.step-no::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--sun); -webkit-mask: url("arch.svg") center / 100% 100% no-repeat; mask: url("arch.svg") center / 100% 100% no-repeat; }
.steps p { font-size: .97rem; line-height: 1.95; }
.path-foot { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; padding-top: 32px; border-top: 1px solid rgba(255,255,255,.12); }
.path-foot p { margin: 0; }

/* programs */
.med-band { display: grid; grid-template-columns: .9fr 1.1fr; gap: 0; background: var(--white); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); margin-bottom: 22px; }
.med-photo { position: relative; overflow: hidden; }
.med-copy { position: relative; z-index: 1; background: var(--white); }
.med-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; min-height: 320px; }
.med-copy { padding: 34px 36px; }
.med-copy h3 { font-size: 1.55rem; }
.med-copy h3 a { color: var(--ink); text-decoration: none; }
.med-copy h3 a:hover { color: var(--blue); }
.fac-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.fac-list--med { grid-template-columns: 1fr 1fr; }
.fac-grid { grid-template-columns: repeat(4, 1fr); gap: 14px; }
.fac-list a { display: flex; align-items: flex-start; gap: 14px; height: 100%; padding: 16px; border-radius: var(--r); background: var(--white); border: 1px solid var(--line); text-decoration: none; color: var(--muted); font-size: .88rem; line-height: 1.75; transition: border-color .2s, box-shadow .2s, transform .2s var(--ease); }
.fac-list--med a { background: var(--paper); border-color: transparent; }
.fac-list a:hover { border-color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow); color: var(--muted); }
.fac-list strong { display: block; color: var(--ink); font: 700 1.08rem/1.5 var(--display); margin-bottom: 2px; }
.fac-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--sun-soft); color: var(--ink); flex-shrink: 0; }
.fac-ico .ico { width: 22px; height: 22px; }
.fac-grid .fac-ico { background: var(--stone); }
.degrees { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 30px 0 0; }
.degrees span { font-weight: 700; color: var(--muted); margin-inline-end: 6px; }
.degrees a { padding: 6px 16px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-size: .93rem; transition: border-color .2s, background-color .2s; }
.degrees a:hover { border-color: var(--ink); }

/* fees */
.fees { background: var(--paper); }
.fee-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.fee { position: relative; padding: 26px 28px; border-radius: var(--r-lg); background: var(--paper); border: 1px solid var(--line); overflow: hidden; }
.fee::after { content: ""; position: absolute; top: 0; left: 28px; width: 44px; height: 6px; border-radius: 0 0 6px 6px; background: var(--sun); }
.fee-name { font: 700 1.15rem/1.5 var(--display); color: var(--ink); margin-bottom: 10px; }
.fee-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.fee-price strong { font: 800 2rem/1.1 var(--body); color: var(--ink); font-variant-numeric: tabular-nums; }
.fee-price span { color: var(--muted); font-size: .92rem; }
.fee-sch { display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 5px 12px; border-radius: 999px; background: var(--sea-soft); color: var(--blue); font-size: .86rem; font-weight: 600; line-height: 1.6; }
.fee-sch--muted { background: var(--stone); color: var(--muted); }
.fee-note { display: flex; align-items: flex-start; gap: 8px; margin: 22px 0 0; color: var(--muted); font-size: .9rem; }
.fee-note .ico { margin-top: 5px; }

/* life */
/* life in Famagusta */
.life { background: var(--white); color: var(--muted); }
.life-deco { display: none; }
.life-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; flex-wrap: wrap; margin-bottom: 40px; }
.life-head > div { max-width: 620px; }
.life-head h2 { color: var(--ink); }
.life-head p { margin: 0; font-size: 1.07rem; color: var(--muted); }
.cost-pill { display: flex; align-items: center; gap: 14px; padding: 10px 22px 10px 12px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: border-color .25s; }
.cost-pill:hover { border-color: var(--ink); color: var(--ink); }
.cost-ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--sun); color: var(--ink); }
.cost-ico .ico { width: 22px; height: 22px; }
.cost-pill small { display: block; font-size: .8rem; color: var(--muted); line-height: 1.5; }
.cost-pill strong { font: 700 1.25rem/1.3 var(--display); }
.life-bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(150px, auto); gap: 16px; }
.life-feature { position: relative; grid-column: span 2; grid-row: span 2; border-radius: var(--r-lg); overflow: hidden; display: flex; align-items: flex-end; min-height: 340px; text-decoration: none; color: var(--white); isolation: isolate; box-shadow: none; }
.life-feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s var(--ease); }
.life-feature::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(14,24,56,.95) 0%, rgba(14,24,56,.55) 45%, rgba(14,24,56,0) 75%); }
.life-feature:hover img { transform: scale(1.05); }
.life-feature-body { display: grid; gap: 6px; padding: 28px 30px; font-size: .95rem; color: #D5DBEE; line-height: 1.9; }
.life-feature-body strong { font: 700 1.7rem/1.4 var(--display); color: var(--white); }
.chip-light { justify-self: start; display: inline-flex; align-items: center; gap: 6px; padding: 3px 12px; border-radius: 999px; background: var(--sun); color: var(--ink); font-size: .82rem; font-weight: 700; }
.chip-light .ico { width: 15px; height: 15px; }
.life-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; color: var(--sun); font-weight: 700; }
.life-more .ico { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.life-feature:hover .life-more .ico { transform: translateX(-4px); }
.guide { display: flex; flex-direction: column; gap: 4px; padding: 22px; border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--line); text-decoration: none; color: var(--muted); font-size: .88rem; line-height: 1.75; transition: border-color .25s, transform .3s var(--ease); }
.guide:hover { border-color: var(--ink); transform: translateY(-3px); color: var(--muted); }
.guide strong { color: var(--ink); font: 700 1.1rem/1.5 var(--display); }
.guide-ico { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 12px; border-radius: 14px; background: var(--paper); color: var(--ink); transition: background-color .25s, color .25s; }
.guide-ico .ico { width: 24px; height: 24px; }
.guide:hover .guide-ico { background: var(--sun); color: var(--ink); }
.life-foot { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin: 36px 0 0; }
.life-link { color: var(--ink); font-weight: 600; }
.life-link:hover { color: var(--blue); }
@media (max-width: 1180px) { .life-bento { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
  .life-bento { grid-template-columns: 1fr 1fr; gap: 12px; }
  .life-feature { grid-column: 1 / -1; grid-row: auto; min-height: 300px; }
  .life-feature-body { padding: 22px; }
  .life-feature-body strong { font-size: 1.4rem; }
  .guide { padding: 16px; }
  .guide > span:last-child { display: none; }
  .guide strong { font-size: 1rem; }
  .guide-ico { width: 42px; height: 42px; margin-bottom: 8px; }
  .cost-pill { width: 100%; }
}

/* cards (shared) */
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { display: flex; flex-direction: column; height: 100%; background: var(--white); border-radius: var(--r-lg); overflow: hidden; text-decoration: none; color: var(--muted); box-shadow: var(--shadow); transition: transform .25s var(--ease), box-shadow .25s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); color: var(--muted); }
.card-media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--stone); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card-media img { transform: scale(1.05); }
.card-media--empty { display: grid; place-items: center; color: var(--blue); background: linear-gradient(135deg, var(--stone), var(--sun-soft)); }
.card-media--empty .ico { width: 40px; height: 40px; }
.card-body { display: block; padding: 18px 22px 22px; font-size: .9rem; line-height: 1.85; }
.card-body strong { display: block; color: var(--ink); font: 700 1.14rem/1.55 var(--display); margin-bottom: 6px; }

/* faq */
/* FAQ */
.faq { background: var(--paper); }
.faq-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: 48px; align-items: start; }
.faq-panel { position: sticky; top: 110px; overflow: hidden; isolation: isolate; padding: 40px 36px; border-radius: var(--r-lg); background: radial-gradient(500px 300px at 100% 0%, #2B3F9A, transparent 70%), var(--ink); color: #B9C2DE; box-shadow: var(--shadow-lg); }
.faq-panel::after { content: ""; position: absolute; left: -40px; bottom: -70px; width: 200px; height: 260px; z-index: -1; -webkit-mask: url("arch.svg") center / 100% 100% no-repeat; mask: url("arch.svg") center / 100% 100% no-repeat; background: linear-gradient(180deg, rgba(245,197,24,.25), rgba(245,197,24,0)); }
.faq-glyph { position: absolute; left: 26px; top: -28px; z-index: -1; font: 700 11rem/1 var(--display); color: var(--sun); opacity: .9; text-shadow: 0 20px 40px rgba(0,0,0,.35); }
.faq-panel h2 { color: var(--white); margin-top: 56px; }
.faq-panel p { font-size: 1.02rem; }
.faq-actions { display: grid; gap: 10px; margin-top: 26px; }
.faq-actions .btn { width: 100%; }
.faq-list { display: grid; gap: 12px; }
.faq-list details { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); transition: box-shadow .3s, border-color .3s; interpolate-size: allow-keywords; }
.faq-list details:hover { border-color: #C3CADC; }
.faq-list details[open] { border-color: transparent; box-shadow: var(--shadow); }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; cursor: pointer; list-style: none; position: relative; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::before { content: ""; position: absolute; top: 18px; bottom: 18px; right: 0; width: 4px; border-radius: 4px 0 0 4px; background: var(--sun); transform: scaleY(0); transition: transform .35s var(--ease); }
.faq-list details[open] summary::before { transform: scaleY(1); }
.faq-q { font: 700 1.1rem/1.65 var(--display); color: var(--ink); }
.faq-ico { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--stone); color: var(--ink); flex-shrink: 0; transition: transform .4s cubic-bezier(.3,1.5,.5,1), background-color .25s; }
.faq-ico .ico { width: 18px; height: 18px; }
.faq-list details[open] .faq-ico { transform: rotate(135deg); background: var(--sun); }
.faq-list details::details-content { height: 0; overflow: hidden; transition: height .45s var(--ease), content-visibility .45s allow-discrete; }
.faq-list details[open]::details-content { height: auto; }
.faq-a { padding: 0 24px 22px; color: var(--muted); }
.faq-a p { margin-bottom: 14px; max-width: 46em; }
.faq-link { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; background: var(--paper); color: var(--blue); text-decoration: none; font-size: .9rem; font-weight: 700; transition: background-color .2s; }
.faq-link:hover { background: var(--sun-soft); color: var(--ink); }
.faq-link .ico { width: 15px; height: 15px; }
@media (max-width: 900px) { .faq-panel { position: relative; top: 0; } }
@media (max-width: 640px) { .faq-panel { padding: 30px 22px; } .faq-glyph { font-size: 8rem; } .faq-panel h2 { margin-top: 40px; } .faq-list summary { padding: 16px 18px; } .faq-a { padding: 0 18px 18px; } .faq-q { font-size: 1.02rem; } }

/* ---------- inner pages ---------- */
.progress { position: fixed; top: 0; right: 0; left: 0; height: 3px; z-index: 80; pointer-events: none; }
.progress span { display: block; height: 100%; width: 100%; background: var(--sun); transform-origin: right; transform: scaleX(0); }
.page-hero { position: relative; background: radial-gradient(900px 400px at 90% -30%, #26388A 0%, transparent 65%), var(--ink); color: #C3CAE2; padding-block: 48px 92px; overflow: hidden; isolation: isolate; }
.page-hero::after { content: ""; position: absolute; left: 6%; bottom: -60px; width: 220px; height: 286px; z-index: -1; -webkit-mask: url("arch.svg") center / 100% 100% no-repeat; mask: url("arch.svg") center / 100% 100% no-repeat; background: linear-gradient(180deg, rgba(245,197,24,.28), rgba(245,197,24,0)); }
.page-hero::before { content: ""; position: absolute; left: calc(6% + 60px); bottom: -60px; width: 220px; height: 286px; z-index: -1; -webkit-mask: url("arch.svg") center / 100% 100% no-repeat; mask: url("arch.svg") center / 100% 100% no-repeat; background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,0)); }
.page-hero h1 { color: var(--white); max-width: 22em; text-wrap: balance; margin-bottom: .35em; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; padding: 0; font-size: .88rem; }
.crumbs li + li::before { content: "/"; margin-inline-end: 6px; color: rgba(255,255,255,.3); }
.crumbs a { color: #AEB7D3; text-decoration: none; }
.crumbs a:hover { color: var(--sun); }
.crumbs [aria-current] { color: var(--white); }
.page-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; margin: 0; font-size: .92rem; }
.page-meta > span { display: inline-flex; align-items: center; gap: 7px; }
.chip { padding: 4px 14px; border-radius: 999px; background: rgba(245,197,24,.14); color: var(--sun); font-weight: 600; }
.page-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 36px; margin-top: -56px; padding-bottom: 88px; align-items: start; position: relative; }
.prose-card { background: var(--white); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 48px 56px; min-width: 0; }
.prose { max-width: 46em; }
.feature-img { width: calc(100% + 112px); max-width: none; margin: -48px -56px 40px; aspect-ratio: 21 / 9; object-fit: cover; border-radius: var(--r-lg) var(--r-lg) 0 0; }
@media (max-width: 900px) { .feature-img { width: calc(100% + 64px); margin: -36px -32px 28px; } }
@media (max-width: 640px) { .feature-img { width: calc(100% + 36px); margin: -26px -18px 22px; border-radius: var(--r) var(--r) 0 0; } }
.page-grid--wide .prose { max-width: none; }
.prose h2 { margin-top: 1.7em; font-size: clamp(1.45rem, 1.2rem + .8vw, 1.85rem); }
.prose h2::before { content: ""; display: block; width: 40px; height: 4px; border-radius: 4px; background: var(--sun); margin-bottom: 14px; }
.prose h3 { margin-top: 1.6em; font-size: 1.34rem; }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { padding-inline-start: 1.4em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .45em; padding-inline-start: .2em; }
.prose li::marker { color: var(--sea); }
.prose img { border-radius: var(--r); margin: 1.6em 0; box-shadow: var(--shadow); }
.prose table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 1.6em 0; font-size: .95rem; display: block; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); }
.prose td, .prose th { border-bottom: 1px solid var(--line); padding: 12px 14px; text-align: right; }
.prose tr:last-child td { border-bottom: 0; }
.prose th { background: var(--paper); }
.prose blockquote { margin: 1.6em 0; padding: 18px 22px; border-inline-start: 4px solid var(--sun); background: var(--sun-soft); border-radius: var(--r-sm); }
.prose strong { color: var(--ink); }
.prose > h4:first-child { font-weight: 600; background: var(--sun-soft); border-inline-start: 4px solid var(--sun); padding: 16px 20px; border-radius: var(--r-sm); margin-top: 0; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 42em; }

.side { position: sticky; top: 104px; display: grid; gap: 18px; }
.side-card { background: var(--white); border-radius: var(--r-lg); padding: 22px 24px; box-shadow: var(--shadow); }
.side-title { font: 700 1.1rem/1.5 var(--display) !important; color: var(--ink); margin-bottom: 10px !important; }
.toc ol, .side-nav ul { list-style: none; margin: 0; padding: 0; font-size: .93rem; line-height: 1.7; }
.toc a, .side-nav a { display: block; padding: 7px 12px; margin-inline: -12px; border-radius: var(--r-sm); text-decoration: none; color: var(--muted); border-inline-start: 2px solid transparent; transition: color .15s, background-color .15s; }
.toc a:hover, .side-nav a:hover { color: var(--ink); background: var(--paper); }
.toc a.on { color: var(--ink); background: var(--sun-soft); border-inline-start-color: var(--sun); font-weight: 600; }
.side-nav a[aria-current="page"] { color: var(--blue); background: var(--paper); font-weight: 700; }
.side-cta { background: radial-gradient(400px 220px at 100% 0%, #26388A, transparent 70%), var(--ink); color: #B9C2DE; }
.side-cta .side-title { color: var(--white); }
.side-cta p { font-size: .93rem; }
.side-cta .btn { width: 100%; margin-top: 10px; }
.related { padding-block: 16px 96px; }
.related h2 { margin-bottom: 28px; }

/* hub / list blocks inside content */
.link-list { list-style: none; margin: 28px 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.link-list a { display: block; height: 100%; padding: 20px 22px; background: var(--paper); border-radius: var(--r); border: 1px solid transparent; text-decoration: none; color: var(--muted); font-size: .9rem; line-height: 1.85; transition: border-color .2s, background-color .2s; }
.link-list a:hover { border-color: var(--ink); background: var(--white); }
.link-list strong { display: block; color: var(--ink); font: 700 1.1rem/1.6 var(--display); margin-bottom: 4px; }
.prose .link-list li { margin: 0; padding: 0; }
.post-list { list-style: none; padding: 0; margin: 28px 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.prose .post-list li { margin: 0; padding: 0; }
.post-list a { display: grid; grid-template-columns: 132px 1fr; gap: 16px; align-items: start; padding: 12px; background: var(--paper); border-radius: var(--r); text-decoration: none; color: var(--muted); font-size: .88rem; line-height: 1.8; border: 1px solid transparent; transition: border-color .2s, background-color .2s; }
.post-list a:hover { border-color: var(--ink); background: var(--white); }
.prose .post-list img, .post-list .ph { width: 132px; height: 104px; object-fit: cover; border-radius: var(--r-sm); margin: 0; background: var(--stone); box-shadow: none; }
.post-list strong { display: block; color: var(--ink); font: 700 1.05rem/1.6 var(--display); margin-bottom: 4px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-top: 24px; }
.prose .gallery img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; border-radius: var(--r); margin: 0; box-shadow: none; transition: transform .4s var(--ease); }
.gallery a { display: block; overflow: hidden; border-radius: var(--r); }
.gallery a:hover img { transform: scale(1.04); }
.offices { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 24px 0; }
.offices section { background: var(--paper); border-radius: var(--r); padding: 24px 26px; position: relative; overflow: hidden; }
.offices section::after { content: ""; position: absolute; top: 0; left: 26px; width: 44px; height: 6px; border-radius: 0 0 6px 6px; background: var(--sun); }
.offices h2 { margin-top: 0 !important; font-size: 1.35rem !important; }
.offices h2::before { display: none !important; }
.offices p { margin-bottom: .4em; }

/* forms */
.msg-form { background: var(--paper); border-radius: var(--r-lg); padding: 32px; margin: 26px 0 40px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 22px; }
.field { display: grid; gap: 8px; }
.field--wide { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .95rem; }
.field label span { color: #B3261E; }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 1rem; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: var(--white); color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #B7BFD6; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(43,63,154,.14); }
.field [aria-invalid="true"] { border-color: #B3261E; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.form-actions .btn--line { background: var(--white); }
.form-note { font-size: .86rem; color: var(--muted); margin: 16px 0 0; }
.form-error { color: #B3261E; font-weight: 600; margin: 16px 0 0; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #A7B0CE; font-size: .93rem; line-height: 1.9; position: relative; }
.foot-cta { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; padding: 40px 44px; transform: translateY(-50%); margin-bottom: -40px; background: linear-gradient(120deg, var(--blue), var(--navy) 55%); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); color: #C9D0E8; max-width: calc(var(--wrap) - 48px); }
.foot-cta p { margin: 0; }
.foot-cta-title { color: var(--white); font: 700 clamp(1.3rem, 1.1rem + .8vw, 1.7rem)/1.5 var(--display) !important; margin-bottom: 4px !important; }
.foot-cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.is-home .site-footer, .related + .site-footer { margin-top: 90px; }
.site-footer { margin-top: 90px; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr .8fr; gap: 40px; padding-block: 10px 44px; }
.site-footer h2 { color: var(--white); font: 700 1.05rem/1.5 var(--body); margin-bottom: .9em; }
.site-footer p { display: flex; align-items: flex-start; gap: 8px; margin-bottom: .5em; }
.site-footer p .ico { margin-top: 5px; color: var(--sun); width: 16px; height: 16px; }
.foot-about p { display: block; margin-top: 18px; max-width: 30em; }
.site-footer a { color: #E3E7F4; text-decoration: none; }
.site-footer a:hover { color: var(--sun); }
.foot-links { list-style: none; margin: 0; padding: 0; }
.socials { list-style: none; display: flex; gap: 10px; margin: 18px 0 0; padding: 0; }
.socials a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); transition: background-color .2s, color .2s; }
.socials a:hover { background: var(--sun); color: var(--ink); }
.socials .ico { width: 19px; height: 19px; }
.foot-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.1); padding-block: 20px; font-size: .85rem; color: #8590B2; }
.foot-bottom p { margin: 0; }

.wa-float { position: fixed; left: 20px; bottom: 20px; z-index: 50; display: flex; align-items: center; gap: 8px; padding: 12px 20px 12px 14px; background: #1FA055; color: var(--white); border-radius: 999px; text-decoration: none; font-weight: 700; font-size: .94rem; box-shadow: 0 14px 30px -12px rgba(16,90,48,.7); transition: transform .2s var(--ease), background-color .2s; }
.wa-float .ico { width: 26px; height: 26px; }
.wa-float:hover { background: #178447; color: var(--white); transform: translateY(-2px); }

/* reveal on scroll (only when JS marks the page) */
@media (prefers-reduced-motion: no-preference) {
  .js .rv { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
  .js .rv.in { opacity: 1; transform: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .nav-toggle { display: inline-grid; }
  .site-nav { position: fixed; top: var(--head-bottom, 120px); right: 0; left: 0; bottom: 0; background: var(--white); overflow-y: auto; padding: 12px 24px 40px; transform: translateX(100%); visibility: hidden; transition: transform .3s var(--ease), visibility .3s; border-top: 1px solid var(--line); }
  .site-nav.open { transform: none; visibility: visible; }
  .site-nav > ul { flex-direction: column; gap: 0; }
  .nav-link { width: 100%; justify-content: space-between; padding: 16px 6px; border-radius: 0; border-bottom: 1px solid var(--stone); font-size: 1.05rem; }
  .nav-link:hover, .has-sub.open > .nav-link, .has-sub.is-active > .nav-link, .nav-link[aria-current="page"] { background: none; color: var(--blue); }
  .mega, .mega--wide { position: static; width: auto; box-shadow: none; border: 0; padding: 0 6px; opacity: 1; visibility: visible; transform: none; display: none; }
  .has-sub.open > .mega { display: block; padding-block: 6px 14px; }
  .mega-head { display: none; }
  .mega--wide ul { columns: 1; }
  .hero-grid { gap: 40px; }
  .seal { right: -20px; }
  .float-card { left: -16px; }
  .bento { grid-template-columns: 1fr 1fr; }
  .b-photo { grid-row: auto; grid-column: 1 / -1; }
  .b-photo .arch-frame { min-height: 0; aspect-ratio: 16 / 9; -webkit-mask: none; mask: none; border-radius: var(--r); }
  .fac-grid { grid-template-columns: repeat(2, 1fr); }
  .page-grid { grid-template-columns: 1fr; }
  .side { position: static; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .topbar p, .topbar li:nth-child(3) { display: none; }
  .topbar-row { justify-content: center; }
  .head-cta { display: none; }
  .hero-grid { grid-template-columns: 1fr; padding-block: 40px 64px; }
  .hero-visual { width: min(66%, 320px); order: -1; }
  .stats-row { grid-template-columns: 1fr 1fr; gap: 28px 0; }
  .stats-row > div:nth-child(3) { border-inline-start: 0; padding-inline-start: 0; }
  .life-grid, .faq-grid { grid-template-columns: 1fr; gap: 36px; }
  .med-band { grid-template-columns: 1fr; }
  .med-photo img { min-height: 220px; max-height: 280px; }
  .fee-cards { grid-template-columns: 1fr 1fr; }
  .cards { grid-template-columns: 1fr 1fr; }
  .prose-card { padding: 36px 32px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding-inline: 16px; }
  .topbar ul { gap: 16px; font-size: .8rem; }
  .head-row { min-height: 66px; gap: 10px; }
  .brand img { width: 40px; height: 40px; }
  .brand small { display: none; }
  .icon-btn { width: 42px; height: 42px; }
  .hero h1 { font-size: 2.2rem; }
  .hero-lead { font-size: 1.02rem; }
  .hero-actions .btn { width: 100%; }
  .seal { width: 100px; height: 100px; right: -14px; }
  .seal span { font-size: .66rem; }
  .seal strong { font-size: 1.55rem; }
  .float-card { left: -8px; bottom: 6%; padding: 10px 14px 10px 12px; font-size: .82rem; }
  .float-card strong { font-size: 1.3rem; }
  .float-ico { width: 38px; height: 38px; }
  .trust-row { gap: 10px; }
  .trust ul { gap: 6px 20px; }
  .trust li { font-size: .9rem; }
  .stats-row { padding-block: 32px; }
  .stats-row > div { padding: 0 14px; }
  .sec { padding-block: 68px; }
  .sec-head { margin-bottom: 30px; }
  .bento { grid-template-columns: 1fr; }
  .b-wide { grid-column: auto; }
  .steps { grid-template-columns: 1fr; gap: 6px; }
  .steps li { display: grid; grid-template-columns: 64px 1fr; column-gap: 18px; padding: 0 0 14px; }
  .step-no { grid-row: span 2; margin: 0; }
  .steps h3 { margin: 10px 0 2px; }
  .fac-list--med, .fac-grid { grid-template-columns: 1fr; }
  .med-copy { padding: 26px 20px; }
  .fee-cards, .cards { grid-template-columns: 1fr; }
  .life-cards .card { grid-template-columns: 120px 1fr; }
  .page-hero { padding-block: 32px 80px; }
  .page-hero::before, .page-hero::after { width: 130px; height: 170px; }
  .prose-card { padding: 26px 18px; border-radius: var(--r); }
  .page-grid { gap: 22px; padding-bottom: 64px; }
  .link-list, .post-list, .offices, .fields { grid-template-columns: 1fr; }
  .post-list a { grid-template-columns: 96px 1fr; }
  .prose .post-list img, .post-list .ph { width: 96px; height: 84px; }
  .msg-form { padding: 22px 16px; }
  .foot-cta { padding: 28px 22px; border-radius: var(--r); }
  .foot-cta-actions .btn { width: 100%; }
  .foot-grid { grid-template-columns: 1fr; gap: 26px; }
  .wa-float span { display: none; }
  .wa-float { padding: 13px; left: 14px; bottom: 14px; }
}

/* =========================================================
   v3: scroll journey, 3D cards, animated burger, bottom nav
   ========================================================= */

/* ---------- admission journey (scroll-driven) ---------- */
.journey { position: relative; --p: 0; margin-bottom: 48px; }
.journey .steps { margin-bottom: 0; }
.journey-track { position: absolute; top: 37px; right: 38px; left: calc((100% - 60px) / 4 - 38px); height: 2px; background: repeating-linear-gradient(270deg, rgba(255,255,255,.18) 0 8px, transparent 8px 16px); }
.journey-fill { position: absolute; top: 0; right: 0; height: 100%; width: calc(var(--p) * 100%); background: linear-gradient(270deg, var(--sun), #FFE27A); border-radius: 2px; box-shadow: 0 0 16px rgba(245,197,24,.7); }
.journey-plane { position: absolute; top: 50%; right: calc(var(--p) * 100%); width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--white); color: var(--ink); box-shadow: 0 0 0 6px rgba(245,197,24,.25), 0 10px 24px -8px rgba(0,0,0,.6); transform: translate(50%, -50%); z-index: 2; }
.journey-plane .ico { width: 20px; height: 20px; transform: scaleX(-1); }
.journey-plane { transition: opacity .35s, scale .35s; }
.journey.landed .journey-plane { opacity: 0; scale: .4; }
.journey.armed .steps li { opacity: .38; transition: opacity .5s var(--ease); }
.journey.armed .steps li.on { opacity: 1; }
.journey.armed .step-no { color: rgba(255,255,255,.75); transition: color .4s, transform .5s cubic-bezier(.3,1.6,.5,1); z-index: 1; }
.journey.armed .step-no::before { background: #2A3768; transition: background-color .4s; }
.journey.armed .steps li.on .step-no { color: var(--ink); transform: translateY(-4px) scale(1.08); }
.journey.armed .steps li.on .step-no::before { background: var(--sun); }
.journey.armed .steps li h3, .journey.armed .steps li p { transition: transform .6s var(--ease); transform: translateY(8px); }
.journey.armed .steps li.on h3, .journey.armed .steps li.on p { transform: none; }
@media (prefers-reduced-motion: reduce) { .steps li { opacity: 1; } .steps li .step-no::before { background: var(--sun); } .steps li .step-no { color: var(--ink); } .steps li h3, .steps li p { transform: none; } }

/* ---------- 3D tilt cards ---------- */
.bento { perspective: 1300px; }
.tilt { position: relative; transform-style: preserve-3d; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateZ(0); transition: transform .6s var(--ease), box-shadow .4s; will-change: transform; }
.tilt.is-tilting { transition: transform .1s linear, box-shadow .4s; }
.tilt:hover { box-shadow: 0 40px 70px -30px rgba(14,24,56,.5); }
.glare { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .4s; background: radial-gradient(circle at var(--gx, 50%) var(--gy, 0%), rgba(255,255,255,.55), rgba(255,255,255,0) 55%); mix-blend-mode: soft-light; }
.tilt:hover .glare, .tilt.is-active .glare { opacity: 1; }
.b-tile { overflow: visible; padding-top: 64px; margin-top: 22px; border: 1px solid rgba(255,255,255,.6); background: linear-gradient(150deg, #FFFFFF 0%, #EEF1FA 100%); }
.b-tile strong, .b-tile > span:not(.b-obj):not(.glare) { transform: translateZ(34px); }
.b-obj { position: absolute; top: -30px; left: 26px; width: 78px; height: 78px; display: grid; place-items: center; border-radius: 24px; transform: translateZ(70px) rotate(-10deg); background: linear-gradient(145deg, #3B52B8 0%, #16235A 70%); color: var(--sun); box-shadow: inset 0 2px 0 rgba(255,255,255,.35), inset 0 -10px 18px rgba(0,0,0,.25), 0 22px 30px -12px rgba(14,24,56,.55), 0 4px 8px rgba(14,24,56,.2); transition: transform .6s cubic-bezier(.3,1.5,.5,1); }
.b-obj::before { content: ""; position: absolute; top: 7px; right: 10px; width: 42%; height: 26%; border-radius: 50%; background: linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,255,255,0)); filter: blur(1px); }
.b-tile .b-obj .ico { width: 36px; height: 36px; margin: 0; padding: 0; background: none; border-radius: 0; color: inherit; stroke-width: 2; filter: drop-shadow(0 3px 4px rgba(0,0,0,.3)); }
.tilt:hover .b-obj, .tilt.is-active .b-obj { transform: translateZ(95px) rotate(-4deg) scale(1.06); }
.b-tile--sun { background: linear-gradient(150deg, #FFE68A 0%, #F5C518 50%, #E8A700 100%); border-color: rgba(255,255,255,.5); }
.b-tile--sun .b-obj { background: linear-gradient(145deg, rgba(255,255,255,.95), rgba(255,246,210,.75)); color: #C08A00; }
.b-tile--ink { background: linear-gradient(150deg, #2B3E8F 0%, #0E1838 75%); border-color: rgba(255,255,255,.08); }
.b-tile--ink .b-obj { background: linear-gradient(145deg, #FFE27A, #E9AE00); color: var(--ink); }
.b-tile--sea { background: linear-gradient(140deg, #2DB3B9 0%, #17868D 45%, #0D555C 100%); border-color: rgba(255,255,255,.15); }
.b-tile--sea .b-obj { background: linear-gradient(145deg, rgba(255,255,255,.92), rgba(220,245,245,.7)); color: var(--sea); }
.b-photo .arch-frame, .b-photo figcaption { transform: translateZ(30px); }
.b-photo { overflow: visible; }

/* ---------- animated hamburger + menu reveal ---------- */
.burger { position: relative; display: block; width: 20px; height: 14px; }
.burger i { position: absolute; right: 0; height: 2px; width: 100%; border-radius: 2px; background: currentColor; transition: transform .45s cubic-bezier(.7,-0.4,.3,1.4), opacity .25s, width .3s var(--ease), top .3s var(--ease); }
.burger i:nth-child(1) { top: 0; }
.burger i:nth-child(2) { top: 6px; width: 65%; }
.burger i:nth-child(3) { top: 12px; width: 85%; }
.nav-toggle:hover .burger i { width: 100%; }
.nav-toggle[aria-expanded="true"] { background: var(--ink); color: var(--white); border-color: var(--ink); }
.nav-toggle[aria-expanded="true"] .burger i:nth-child(1) { top: 6px; transform: rotate(135deg); width: 100%; }
.nav-toggle[aria-expanded="true"] .burger i:nth-child(2) { opacity: 0; transform: translateX(-12px); }
.nav-toggle[aria-expanded="true"] .burger i:nth-child(3) { top: 6px; transform: rotate(-135deg); width: 100%; }
@media (max-width: 1180px) {
  .site-nav { top: 100%; bottom: auto; height: calc(100dvh - var(--head-bottom, 120px)); padding-bottom: 120px; transform: none; clip-path: circle(0px at 48px 0px); transition: clip-path .6s cubic-bezier(.7,0,.2,1), visibility .6s; }
  .site-nav.open { clip-path: circle(160% at 48px 0px); }
  .site-nav > ul > li { opacity: 0; transform: translateX(30px); transition: opacity .35s, transform .45s var(--ease); }
  .site-nav.open > ul > li { opacity: 1; transform: none; }
  .site-nav.open > ul > li:nth-child(1) { transition-delay: .12s; } .site-nav.open > ul > li:nth-child(2) { transition-delay: .16s; }
  .site-nav.open > ul > li:nth-child(3) { transition-delay: .2s; } .site-nav.open > ul > li:nth-child(4) { transition-delay: .24s; }
  .site-nav.open > ul > li:nth-child(5) { transition-delay: .28s; } .site-nav.open > ul > li:nth-child(6) { transition-delay: .32s; }
  .site-nav.open > ul > li:nth-child(7) { transition-delay: .36s; } .site-nav.open > ul > li:nth-child(8) { transition-delay: .4s; }
}
@media (prefers-reduced-motion: reduce) { .site-nav, .site-nav > ul > li, .burger i { transition: none !important; } }

/* ---------- mobile bottom nav ---------- */
.bnav { display: none; }
@media (max-width: 900px) {
  body { padding-bottom: 96px; }
  .wa-float { display: none; }
  .bnav { display: block; position: fixed; right: 14px; left: 14px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 70; transition: transform .4s var(--ease); }
  .bnav.hide { transform: translateY(140%); }
  .bnav ul { list-style: none; margin: 0 auto; padding: 6px 10px; max-width: 460px; height: 66px; display: flex; align-items: center; justify-content: space-around; background: rgba(255,255,255,.94); backdrop-filter: saturate(1.6) blur(16px); border: 1px solid var(--line); border-radius: 999px; box-shadow: 0 18px 40px -16px rgba(14,24,56,.45); }
  .bnav li { flex: 1; display: flex; justify-content: center; }
  .bnav a { position: relative; display: grid; justify-items: center; color: var(--ink); text-decoration: none; padding: 4px; -webkit-tap-highlight-color: transparent; }
  .bnav-ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; transition: transform .45s cubic-bezier(.3,1.5,.5,1), background-color .3s, color .3s, box-shadow .3s; }
  .bnav-ico .ico { width: 23px; height: 23px; stroke-width: 1.6; }
  .bnav-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .bnav a.on .bnav-ico { width: 56px; height: 56px; background: var(--ink); color: var(--white); transform: translateY(-16px); box-shadow: 0 0 0 5px var(--paper), 0 12px 22px -8px rgba(14,24,56,.6); }
  .bnav a.on .bnav-label { position: absolute; bottom: -4px; width: auto; height: auto; clip: auto; overflow: visible; font-size: .72rem; font-weight: 800; color: var(--ink); }
  .bnav a:active .bnav-ico { transform: scale(.9); }
  .bnav a.on:active .bnav-ico { transform: translateY(-16px) scale(.94); }
}

/* mobile versions of journey + cards */
@media (max-width: 640px) {
  .journey-track { top: 38px; bottom: 70px; right: 31px; left: auto; width: 2px; height: auto; background: repeating-linear-gradient(180deg, rgba(255,255,255,.18) 0 8px, transparent 8px 16px); }
  .journey-fill { width: 100%; height: calc(var(--p) * 100%); background: linear-gradient(180deg, var(--sun), #FFE27A); }
  .journey-plane { top: calc(var(--p) * 100%); right: 50%; width: 34px; height: 34px; }
  .journey-plane .ico { transform: rotate(135deg); }
  .steps li { padding-bottom: 26px; }
  .b-tile { margin-top: 30px; }
  .b-obj { width: 66px; height: 66px; border-radius: 20px; top: -26px; }
  .b-tile .b-obj .ico { width: 30px; height: 30px; }
}

/* =========================================================
   v4: unified identity — section rhythm
   hero(dark) · trust+stats(white) · why(paper) · journey(dark)
   programs(white) · fees(paper) · life(white) · faq(paper) · footer(dark)
   ========================================================= */
.why { background: var(--paper); }
.programs { background: var(--white); }
.stats { border-bottom: 1px solid var(--line); }
.programs .fac-list a, .life .guide { background: var(--white); }
.programs .fac-list--med a { background: var(--paper); }
.fees .fee { background: var(--white); }

/* bento: every tile the same white card, one consistent 3D icon */
.b-tile, .b-tile--sun, .b-tile--ink, .b-tile--sea { background: var(--white); color: var(--muted); border: 1px solid var(--line); }
.b-tile:hover, .b-tile--sun:hover, .b-tile--ink:hover, .b-tile--sea:hover { color: var(--muted); }
.b-tile strong, .b-tile--ink strong, .b-tile--sea strong { color: var(--ink); }
.b-tile .b-obj, .b-tile--sun .b-obj, .b-tile--ink .b-obj, .b-tile--sea .b-obj { background: linear-gradient(145deg, #3B52B8 0%, #16235A 70%); color: var(--sun); }
.b-photo { border: 1px solid var(--line); box-shadow: none; }

/* FAQ panel: light card, same language as the rest */
.faq-panel { background: var(--white); color: var(--muted); border: 1px solid var(--line); box-shadow: none; }
.faq-panel h2 { color: var(--ink); }
.faq-panel::after { background: linear-gradient(180deg, rgba(245,197,24,.22), rgba(245,197,24,0)); }
.faq-glyph { text-shadow: none; opacity: 1; }
.faq-panel .btn--glass { background: var(--white); color: var(--ink); border-color: var(--line); backdrop-filter: none; }
.faq-panel .btn--glass:hover { border-color: var(--ink); }
.faq-list details { border-color: var(--line); }

/* footer call-to-action uses the same dark gradient */
.foot-cta { background: radial-gradient(700px 300px at 85% -20%, #2B3F9A 0%, transparent 65%), var(--navy); }

/* =========================================================
   v4 motion hooks (GSAP on the homepage)
   ========================================================= */
.journey:not(.armed) .journey-plane { display: none; }
.journey:not(.armed) .journey-fill { width: 100%; }
.motion .hero-copy > *, .motion .hero-visual > * { visibility: hidden; }
.hero-grid { perspective: 1400px; }
.hero-visual { transform-style: preserve-3d; }
.split { perspective: 700px; }
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding: .08em 0 .14em; margin-block: -.08em -.14em; }
.split .w > span { display: inline-block; transform-origin: 50% 100%; }
.sec-head h2 .w, .life-head h2 .w, .faq-panel h2 .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
.sec-head h2 .w > span, .life-head h2 .w > span, .faq-panel h2 .w > span { display: inline-block; }

/* trust marquee (pure CSS, pauses on hover) */
.trust-row { flex-wrap: nowrap; }
.marquee { position: relative; flex: 1; min-width: 0; display: flex; gap: 40px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.trust .marquee-track { flex-shrink: 0; flex-wrap: nowrap; display: flex; gap: 40px; list-style: none; margin: 0; padding: 0; animation: marquee 26s linear infinite; }
.trust .marquee-track li { white-space: nowrap; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(100% + 40px)); } }
@media (prefers-reduced-motion: reduce) { .trust .marquee-track { animation: none; } .trust .marquee-track[aria-hidden] { display: none; } .marquee { -webkit-mask-image: none; mask-image: none; } .trust .marquee-track { flex-wrap: wrap; } }
@media (max-width: 640px) { .trust-row { flex-direction: column; align-items: stretch; gap: 8px; } }

/* pinned journey: full-height section with centred content, so it locks in the middle of the screen */
@media (min-width: 901px) {
  .motion .path { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding-block: 110px 60px; }
  .motion .path > .wrap { width: 100%; }
}

/* =========================================================
   v5: page transitions, inner heroes, blog index, single post
   ========================================================= */

/* ---------- page-open / page-leave curtain ---------- */
.curtain { display: none; }
.motion .curtain { display: block; position: fixed; inset: 0; z-index: 400; pointer-events: none; overflow: hidden; }
.curtain-panel { position: absolute; inset: 0 0 -14vh; display: grid; place-content: center; justify-items: center; gap: 14px; color: var(--white); background: radial-gradient(900px 500px at 85% 0%, #26398A, transparent 65%), var(--ink); border-radius: 0 0 50% 50% / 0 0 14vh 14vh; }
.curtain-panel img { width: 64px; height: 64px; }
.curtain-panel span { font: 800 1.15rem/1 var(--body); letter-spacing: .12em; color: var(--sun); }
.motion .curtain-panel img, .motion .curtain-panel span { animation: curtain-mark .55s cubic-bezier(.3, 1.5, .5, 1) both; }
.motion .curtain-panel span { animation-delay: .05s; }
html.leaving .curtain-panel { inset: -14vh 0 0; border-radius: 50% 50% 0 0 / 14vh 14vh 0 0; animation: curtain-in .5s cubic-bezier(.76, 0, .24, 1) forwards; }
html.leaving .curtain-panel img, html.leaving .curtain-panel span { animation: none; opacity: 1; }
html.leaving .curtain { pointer-events: auto; }
@keyframes curtain-out { to { transform: translateY(-115%); } }
@keyframes curtain-in { from { transform: translateY(115%); } to { transform: translateY(0); } }
@keyframes curtain-mark { from { opacity: 0; transform: scale(.6); } }

/* ---------- inner heroes: real arch elements (animated by GSAP) ---------- */
.page-hero::before, .page-hero::after { display: none; }
.page-hero, .blog-hero, .post-hero { position: relative; overflow: hidden; isolation: isolate; }
.hero-arch { position: absolute; bottom: -70px; width: 240px; height: 312px; z-index: -1; -webkit-mask: url("arch.svg") center / 100% 100% no-repeat; mask: url("arch.svg") center / 100% 100% no-repeat; pointer-events: none; }
.hero-arch--a { left: 6%; background: linear-gradient(180deg, rgba(245,197,24,.3), rgba(245,197,24,0)); }
.hero-arch--b { left: calc(6% + 70px); bottom: -110px; background: linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,0)); }
.page-hero h1 .w, .blog-hero h1 .w, .post-hero h1 .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .14em; margin-bottom: -.14em; }
.page-hero h1 .w > span, .blog-hero h1 .w > span, .post-hero h1 .w > span { display: inline-block; transform-origin: 50% 100%; }

/* ---------- blog index (no sidebar) ---------- */
.blog-hero { background: radial-gradient(1000px 500px at 85% -20%, #26398A 0%, transparent 62%), var(--ink); color: #C3CAE2; padding-block: 56px 120px; }
.blog-hero h1 { color: var(--white); font-size: clamp(2.2rem, 1.4rem + 3vw, 3.6rem); margin-bottom: .3em; }
.blog-lead { font-size: 1.12rem; max-width: 40em; color: #C3CAE2; }
.blog-tools { display: grid; gap: 18px; margin-top: 30px; }
.blog-search { display: flex; align-items: center; gap: 12px; max-width: 560px; padding: 4px 20px; border-radius: var(--r); background: var(--white); color: var(--muted); box-shadow: 0 20px 40px -24px rgba(0,0,0,.6); }
.blog-search .ico { width: 22px; height: 22px; }
.blog-search input { flex: 1; min-width: 0; border: 0; outline: none; background: none; font: 500 1.02rem/1.6 var(--body); padding: 13px 0; color: var(--ink); }
.blog-search:focus-within { outline: 3px solid var(--sun); outline-offset: 2px; }
.topic-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.topic { display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.06); color: #E2E7F5; font: 600 .92rem/1.4 var(--body); cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.topic span { font-size: .78rem; padding: 1px 8px; border-radius: 999px; background: rgba(255,255,255,.12); }
.topic:hover { border-color: rgba(255,255,255,.5); }
.topic.on { background: var(--sun); color: var(--ink); border-color: var(--sun); }
.topic.on span { background: rgba(14,24,56,.12); }
.blog-list { padding-bottom: 96px; }
.blog-list > .wrap { margin-top: -72px; position: relative; }

.post-feature { display: grid; grid-template-columns: 1.15fr 1fr; background: var(--white); border-radius: var(--r-lg); overflow: hidden; text-decoration: none; color: var(--muted); border: 1px solid var(--line); box-shadow: var(--shadow-lg); margin-bottom: 40px; transition: transform .4s var(--ease); }
.post-feature:hover { transform: translateY(-4px); color: var(--muted); }
.feature-media { display: block; position: relative; min-height: 380px; overflow: hidden; background: var(--stone); }
.feature-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.post-feature:hover .feature-media img { transform: scale(1.05); }
.feature-body { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 40px 44px; }
.feature-badge { display: inline-flex; padding: 4px 14px; border-radius: 999px; background: var(--ink); color: var(--sun); font-size: .82rem; font-weight: 700; }
.feature-body strong { color: var(--ink); font: 700 clamp(1.5rem, 1.2rem + 1vw, 2.1rem)/1.45 var(--display); }
.feature-body .post-ex { font-size: 1rem; line-height: 2; }
.feature-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); }

.post-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-item[hidden] { display: none; }
.post-card { display: flex; flex-direction: column; height: 100%; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; text-decoration: none; color: var(--muted); transition: transform .35s var(--ease), box-shadow .35s, border-color .35s; }
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; color: var(--muted); }
.post-media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--stone); }
.post-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.post-card:hover .post-media img { transform: scale(1.06); }
.post-media--empty, .feature-media--empty { display: grid; place-items: center; color: var(--blue); background: linear-gradient(135deg, var(--stone), var(--sun-soft)); }
.post-media--empty .ico, .feature-media--empty .ico { width: 42px; height: 42px; }
.post-body { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px 22px; flex: 1; }
.post-topic { align-self: flex-start; display: inline-flex; padding: 2px 12px; border-radius: 999px; background: var(--sun-soft); color: #7A5C00; font-size: .8rem; font-weight: 700; text-decoration: none; }
.post-body strong { color: var(--ink); font: 700 1.18rem/1.55 var(--display); }
.post-ex { font-size: .9rem; line-height: 1.9; }
.post-meta { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 8px; font-size: .84rem; color: var(--muted); }
.post-meta .ico { width: 15px; height: 15px; }
.blog-empty { text-align: center; padding: 40px 16px; color: var(--muted); }

/* ---------- single post ---------- */
.post-hero { background: radial-gradient(1000px 500px at 85% -20%, #26398A 0%, transparent 62%), var(--ink); color: #C3CAE2; padding-block: 48px 150px; }
.post-hero-in { max-width: 900px; }
.post-hero h1 { color: var(--white); font-size: clamp(2rem, 1.3rem + 2.8vw, 3.3rem); line-height: 1.35; margin: 14px 0 22px; text-wrap: balance; }
.post-topic--light { background: rgba(245,197,24,.16); color: var(--sun); }
.post-byline { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin: 0; font-size: .92rem; }
.post-byline > span { display: inline-flex; align-items: center; gap: 7px; }
.post-byline strong { display: block; color: var(--white); font-size: .95rem; line-height: 1.4; }
.post-byline small { display: block; font-size: .78rem; color: #9EA8C8; line-height: 1.5; }
.byline-mark img { width: 40px; height: 40px; }
.byline-sep { width: 1px; height: 28px; background: rgba(255,255,255,.18); }
.post-cover { margin: -110px 0 0; position: relative; z-index: 2; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 21 / 9; background: var(--stone); }
.post-cover img { width: 100%; height: 100%; object-fit: cover; }
.post-layout { display: grid; grid-template-columns: 220px minmax(0, 760px); justify-content: center; gap: 56px; padding-block: 56px 72px; }
.post-layout--nocover { margin-top: -90px; position: relative; z-index: 2; }
.post-aside { position: sticky; top: 110px; align-self: start; display: grid; gap: 26px; }
.share { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.share p { width: 100%; margin: 0 0 4px; font-weight: 700; color: var(--ink); font-size: .92rem; }
.share a, .share button { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); color: var(--ink); cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, transform .2s; }
.share a:hover, .share button:hover { background: var(--ink); color: var(--white); border-color: var(--ink); transform: translateY(-2px); }
.share .ico { width: 18px; height: 18px; }
.share-done { width: 100%; font-size: .8rem; color: var(--blue); min-height: 1.2em; }
.post-aside .toc { padding-top: 22px; border-top: 1px solid var(--line); }
.post-aside .toc > p { font-weight: 700; color: var(--ink); margin-bottom: 8px; font-size: .92rem; }
.post-aside .toc a { font-size: .9rem; }
.post-article { min-width: 0; }
.post-prose { max-width: none; font-size: 1.08rem; line-height: 2.1; }
.post-prose > p:first-child { font-size: 1.2rem; color: var(--ink); }
.post-prose img { width: 100%; }
.post-layout--nocover .post-article { background: var(--white); border-radius: var(--r-lg); padding: 44px 48px; box-shadow: var(--shadow); }
.author-box { display: flex; gap: 20px; align-items: flex-start; margin-top: 56px; padding: 28px; border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--line); }
.author-box img { width: 56px; height: 56px; flex-shrink: 0; }
.author-box p { margin-bottom: .6em; color: var(--muted); }
.author-name { font: 700 1.15rem/1.5 var(--display) !important; color: var(--ink) !important; }
.author-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 28px; }
.post-nav-link { display: grid; gap: 4px; padding: 20px 22px; border-radius: var(--r); border: 1px solid var(--line); background: var(--white); text-decoration: none; transition: border-color .2s; }
.post-nav-link:hover { border-color: var(--ink); }
.post-nav-link small { color: var(--muted); font-size: .82rem; }
.post-nav-link strong { color: var(--ink); font: 700 1.02rem/1.6 var(--display); }
.post-nav-link--next { text-align: left; }
.related-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.related-head h2 { margin: 0; }
.is-post .related { padding-block: 24px 96px; }

@media (max-width: 1180px) {
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .post-layout { grid-template-columns: minmax(0, 760px); }
  .post-aside { position: static; order: 2; }
  .post-aside .toc { display: none; }
}
@media (max-width: 900px) {
  .post-feature { grid-template-columns: 1fr; }
  .feature-media { min-height: 240px; }
  .feature-body { padding: 26px 24px; }
}
@media (max-width: 640px) {
  .blog-hero { padding-block: 34px 100px; }
  .post-grid { grid-template-columns: 1fr; gap: 16px; }
  .post-hero { padding-block: 32px 110px; }
  .post-cover { margin-top: -80px; aspect-ratio: 16 / 10; border-radius: var(--r); }
  .post-layout { padding-block: 36px 56px; gap: 32px; }
  .post-layout--nocover .post-article { padding: 26px 18px; }
  .post-prose { font-size: 1.02rem; }
  .author-box { flex-direction: column; padding: 22px; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav-link--next { text-align: right; }
  .feature-foot { flex-direction: column; align-items: flex-start; }
  .hero-arch { width: 150px; height: 195px; }
}
@media (prefers-reduced-motion: reduce) { .curtain { display: none !important; } }

/* single post: real sidebar on the left */
.post-layout { grid-template-columns: minmax(0, 760px) 320px; }
.post-aside { order: 2; gap: 18px; }
.post-article { order: 1; }
.post-aside .share { gap: 8px; }
.post-aside .toc { padding-top: 0; border-top: 0; }
@media (max-width: 1180px) { .post-layout { grid-template-columns: minmax(0, 760px); } .post-aside .toc { display: none; } }
.arriving .curtain-panel img, .arriving .curtain-panel span { animation: none !important; opacity: 1; }

/* ---------- deep 3D for faculty, fee and guide cards ---------- */
.fac-list, .fee-cards, .life-bento { perspective: 1200px; }
.tilt-card { overflow: visible !important; transform-style: preserve-3d; }
.tilt-card > span:not(.glare), .tilt-card p { transform: translateZ(40px); }
.tilt-card:hover { box-shadow: 0 40px 70px -30px rgba(14,24,56,.45); }

/* EMU horizontal logo */
.brand img.brand-logo { width: auto; height: 46px; }
.brand img.brand-logo--light { background: #fff; padding: 6px 10px; border-radius: 10px; box-sizing: content-box; }
@media (max-width: 760px) { .brand img.brand-logo { width: auto; height: 38px; } }