/* KIHPS navbars: 1 Clinic Board · 2 Floating Dock · 3 Atrium. One is shown via :root[data-nav]. */
.nb, .n2-tabbar, .sheet, .atrium { display: none; }
:root[data-nav="1"] .n1, :root[data-nav="2"] .n2, :root[data-nav="3"] .n3 { display: block; }
:root[data-nav="1"] #sheet-1, :root[data-nav="2"] #sheet-2 { display: block; }
:root[data-nav="3"] .atrium { display: grid; }
:root[data-nav="1"] body { padding-top: 124px; }
:root[data-nav="2"] body { padding-top: 100px; }
:root[data-nav="3"] body { padding-top: 96px; }
:root[data-nav="1"] .progress, :root[data-nav="2"] .progress { display: none; }
.nav-switching .nb { animation: navIn .65s var(--ease); }
@keyframes navIn { from { opacity: 0; transform: translateY(-18px); } }

/* ---------- shared pieces */
.tbtn { position: relative; flex: none; width: 62px; height: 34px; border-radius: 99px; border: 1px solid var(--line); background: var(--frost);
  transition: background .4s, border-color .4s; }
.tbtn:hover { border-color: var(--sky-200); }
.tbtn-k { position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: var(--card); color: var(--navy);
  box-shadow: 0 2px 6px rgba(3,26,56,.25); transition: transform .55s cubic-bezier(.5,1.6,.4,1), background .4s, color .4s; }
.tbtn-k svg { position: absolute; inset: 4px; width: 18px; height: 18px; transition: opacity .35s, transform .55s var(--ease); }
.tbtn .i-moon { opacity: 0; transform: rotate(-120deg) scale(.5); }
:root[data-theme="dark"] .tbtn { background: #0b2a52; border-color: #1f4373; }
:root[data-theme="dark"] .tbtn-k { transform: translateX(28px); background: #e9f2fb; color: #0b2a52; }
:root[data-theme="dark"] .tbtn .i-moon { opacity: 1; transform: none; }
:root[data-theme="dark"] .tbtn .i-sun { opacity: 0; transform: rotate(120deg) scale(.5); }
.tbtn.sm { width: 56px; height: 30px; }
.tbtn.sm .tbtn-k { width: 22px; height: 22px; }
.tbtn.sm .tbtn-k svg { inset: 3px; width: 16px; height: 16px; }
:root[data-theme="dark"] .tbtn.sm .tbtn-k { transform: translateX(26px); }

[data-magic] { position: relative; }
[data-magic] .ink { position: absolute; left: 0; top: 50%; height: 42px; width: 0; margin-top: -21px; opacity: 0; pointer-events: none; z-index: 0;
  transition: transform .5s cubic-bezier(.3,1.25,.4,1), width .5s cubic-bezier(.3,1.25,.4,1), opacity .25s; }
[data-magic].inked .ink { opacity: 1; }

.mcols { display: grid; gap: 4px; align-content: start; }
.mcols.two { grid-template-columns: 1fr 1fr; }
.mrow { display: flex; gap: 14px; align-items: flex-start; padding: 13px 14px; border-radius: 14px; transition: background .25s; }
.mrow:hover { background: var(--frost); }
.mi { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--sky-50); color: var(--navy);
  transition: background .3s, color .3s, transform .45s cubic-bezier(.4,1.6,.5,1); }
.mi svg { width: 22px; height: 22px; }
.mrow:hover .mi { background: var(--brand); color: #fff; transform: rotate(-8deg) scale(1.06); }
.mrow b { display: block; color: var(--ink); font-weight: 600; font-size: calc(15px * var(--ts, 1)); line-height: 1.35; }
.mrow small { display: block; color: var(--muted); font-size: calc(13.5px * var(--ts, 1)); line-height: 1.45; margin-top: 2px; }

/* ---------- 1 · Clinic Board */
.n1 { position: fixed; top: 0; left: 0; right: 0; z-index: 60; }
.n1-strip { height: 40px; overflow: hidden; background: var(--abyss); color: #b9c9dc; font-size: calc(13px * var(--ts, 1)); transition: height .45s var(--ease); }
.n1-strip .wrap { height: 40px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.n1-ann { display: flex; align-items: center; gap: 12px; margin: 0; min-width: 0; color: #fff; }
.n1-ann .pip { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); animation: annPip 2s infinite; }
@keyframes annPip { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.5); } 70%, 100% { box-shadow: 0 0 0 8px rgba(255,255,255,0); } }
.n1-rot { position: relative; display: grid; height: 20px; overflow: hidden; min-width: 0; }
.n1-rot span { grid-area: 1 / 1; line-height: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0; transform: translateY(100%);
  transition: opacity .5s, transform .65s var(--ease); }
.n1-rot span.on { opacity: 1; transform: none; }
.n1-rot span.out { opacity: 0; transform: translateY(-100%); }
.n1-contact { display: flex; align-items: center; gap: 22px; flex: none; }
.n1-contact a { display: inline-flex; align-items: center; gap: 8px; transition: color .2s; }
.n1-contact a:hover { color: #fff; }
.n1-contact svg { width: 15px; height: 15px; color: var(--sky-200); }
.n1.is-scrolled .n1-strip { height: 0; }
.n1-bar { position: relative; background: color-mix(in srgb, var(--card) 92%, transparent); -webkit-backdrop-filter: saturate(1.5) blur(14px); backdrop-filter: saturate(1.5) blur(14px);
  border-bottom: 1px solid var(--line-2); transition: box-shadow .4s; }
.n1.is-scrolled .n1-bar { box-shadow: 0 14px 34px -20px rgba(3,26,56,.4); }
.n1-bar > .wrap { display: flex; align-items: center; gap: 24px; height: 84px; transition: height .45s var(--ease); }
.n1.is-scrolled .n1-bar > .wrap { height: 66px; }
.n1-brand img { width: 52px; height: 52px; transition: width .45s var(--ease), height .45s var(--ease); }
.n1.is-scrolled .n1-brand img { width: 42px; height: 42px; }
.n1-brand .brand-text span { max-height: 16px; overflow: hidden; transition: max-height .4s, opacity .3s, margin .4s; }
.n1.is-scrolled .n1-brand .brand-text span { max-height: 0; opacity: 0; margin-top: 0; }
.n1-nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.n1-nav .ink { border-radius: 10px; background: var(--sky-50); }
.n1-link { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 6px; height: 42px; padding: 0 15px; border-radius: 10px;
  font-weight: 500; font-size: calc(15px * var(--ts, 1)); color: var(--ink); transition: color .25s; }
.n1-link svg { width: 14px; height: 14px; transition: transform .35s var(--ease); }
.n1-link[aria-expanded="true"] svg { transform: rotate(180deg); }
.n1-link:hover, .n1-link[aria-expanded="true"] { color: var(--navy); }
.n1-link.is-active::after { content: ""; position: absolute; left: 50%; bottom: 2px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%;
  background: var(--red); box-shadow: 0 0 0 3px rgba(204,29,41,.15); }
.n1-tools { display: flex; align-items: center; gap: 12px; flex: none; }
.n1-apply { height: 46px; padding: 0 20px; border-radius: 12px; }
.burger { display: none; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line); flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.burger i { width: 20px; height: 2px; border-radius: 2px; background: var(--ink); transition: width .3s var(--ease); }
.burger i:nth-child(2) { width: 14px; margin-left: 6px; }
.burger:hover i:nth-child(2) { width: 20px; margin-left: 0; }
.n1-line { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; pointer-events: none; }
.n1-line i { display: block; height: 100%; background: linear-gradient(90deg, var(--red), #ef5a63 55%, var(--sky)); transform-origin: left; transform: scaleX(var(--p, 0)); }

.mega { position: absolute; left: 0; right: 0; top: 100%; background: var(--card); border-bottom: 1px solid var(--line-2);
  box-shadow: 0 40px 70px -40px rgba(3,26,56,.45); clip-path: inset(0 0 100% 0); visibility: hidden;
  transition: clip-path .55s var(--ease), visibility 0s .55s; }
.mega.open { clip-path: inset(0 0 -80px 0); visibility: visible; transition: clip-path .55s var(--ease); }
.mega > .wrap { padding: 26px 0 28px; }
.mega-panel { display: none; }
.mega-panel.on { display: block; }
.mega-panel.on [style*="--i"] { animation: itemUp .6s var(--ease) backwards; animation-delay: calc(var(--i) * 55ms + 60ms); }
@keyframes itemUp { from { opacity: 0; transform: translateY(16px); } }
.mega-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 26px; align-items: stretch; }
.mega-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.pcard { position: relative; display: grid; align-content: start; gap: 5px; padding: 10px 10px 16px; border-radius: 16px; border: 1px solid var(--line-2); background: var(--frost);
  transition: transform .45s var(--ease), box-shadow .45s, border-color .3s; }
.pcard:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--sky-200); }
.pcard-img { display: block; aspect-ratio: 16 / 10; border-radius: 11px; overflow: hidden; margin-bottom: 8px; }
.pcard-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.pcard:hover .pcard-img img { transform: scale(1.07); }
.pcard-ico { position: absolute; top: 18px; right: 18px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--card); color: var(--navy);
  box-shadow: var(--shadow); transition: background .3s, color .3s, transform .45s cubic-bezier(.4,1.6,.5,1); }
.pcard-ico svg { width: 19px; height: 19px; }
.pcard:hover .pcard-ico { background: var(--red); color: #fff; transform: rotate(-10deg); }
.pcard small { padding: 0 4px; font-size: calc(11px * var(--ts, 1)); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--red); }
.pcard b { padding: 0 4px; font: 700 calc(20px * var(--hs, 1))/1.2 var(--serif); color: var(--ink); }
.pcard-sum { padding: 0 4px; font-size: calc(13px * var(--ts, 1)); line-height: 1.45; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mega-feature { position: relative; overflow: hidden; display: grid; align-content: start; gap: 12px; padding: 24px; border-radius: 18px; color: #c3d1e2;
  background: radial-gradient(130% 120% at 100% 0, #0a3a75 0, var(--abyss) 70%); }
.mega-feature::before { content: ""; position: absolute; right: -26px; bottom: -26px; width: 150px; height: 150px; opacity: .1;
  background: linear-gradient(#fff, #fff) center / 100% 30% no-repeat, linear-gradient(#fff, #fff) center / 30% 100% no-repeat; transform: rotate(12deg); }
.mf-tag { display: inline-flex; align-items: center; gap: 8px; font: 600 calc(11.5px * var(--ts, 1))/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.mf-tag i { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); animation: annPip 2s infinite; }
.mega-feature b { font: 700 calc(26px * var(--hs, 1))/1.15 var(--serif); color: #fff; }
.mega-feature p { margin: 0 0 4px; font-size: calc(14px * var(--ts, 1)); line-height: 1.55; }
.mega-feature .btn { justify-self: start; }
.mf-link { display: inline-flex; align-items: center; gap: 6px; font-size: calc(14px * var(--ts, 1)); font-weight: 600; color: var(--navy); }
.mf-link svg { width: 15px; height: 15px; transition: transform .3s var(--ease); }
.mf-link:hover svg { transform: translateX(4px); }
.mega-feature .mf-link { color: #fff; }
.mega-foot { display: flex; align-items: center; gap: 10px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line-2); font-size: calc(14px * var(--ts, 1)); color: var(--muted); }
.mega-foot span { display: inline-flex; align-items: center; gap: 10px; margin-right: auto; }
.mega-foot svg { width: 18px; height: 18px; color: var(--red); }
.mega-foot a { height: 34px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 99px; border: 1px solid var(--line); font-weight: 600; color: var(--navy); transition: background .25s, border-color .25s; }
.mega-foot a:hover { background: var(--sky-50); border-color: var(--sky-200); }
.mega-grid.adm { grid-template-columns: minmax(0, 1fr) 320px; }
.mega-fee { display: grid; align-content: start; gap: 4px; padding: 20px 22px; border-radius: 16px; border: 1px solid var(--line); background: var(--frost); }
.mega-fee small { font: 600 calc(11.5px * var(--ts, 1))/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--navy); margin-bottom: 8px; }
.mega-fee div { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.mega-fee div span { color: var(--muted); font-size: calc(14px * var(--ts, 1)); }
.mega-fee div b { font: 700 calc(24px * var(--hs, 1))/1 var(--serif); color: var(--ink); }
.mega-fee .mf-link { margin-top: 10px; }
.mega-grid.campus { grid-template-columns: 340px minmax(0, 1fr); }
.ctiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.ctile { position: relative; display: block; border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--abyss); }
.ctile img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.ctile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(2,16,36,.8)); }
.ctile span { position: absolute; left: 14px; bottom: 12px; z-index: 1; color: #fff; font: 700 calc(19px * var(--hs, 1))/1.1 var(--serif); }
.ctile:hover img { transform: scale(1.08); }
.ctiles.mini { gap: 8px; margin-top: 10px; padding: 0 4px 4px; }
.ctiles.mini .ctile { aspect-ratio: 1; border-radius: 12px; }
.ctiles.mini .ctile span { font-size: calc(14px * var(--ts, 1)); left: 10px; bottom: 8px; }
.mega-grid.about { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.mega-quote { margin: 0; padding: 24px 26px; border-left: 3px solid var(--red); border-radius: 0 16px 16px 0; background: var(--frost);
  font: 700 calc(21px * var(--hs, 1))/1.45 var(--serif); color: var(--ink); }
.mega-quote span { display: block; margin-bottom: 10px; font: 600 calc(11.5px * var(--ts, 1))/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--navy); }

/* ---------- sheets (mobile menus for 1 and 2) */
.sheet { position: fixed; inset: 0; z-index: 92; visibility: hidden; background: rgba(2,12,26,0); transition: background .45s, visibility 0s .6s; }
.sheet.open { visibility: visible; background: rgba(2,12,26,.55); transition: background .45s; }
.sheet-card { position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 92vw); display: flex; flex-direction: column; overflow-y: auto;
  padding: 0 22px 24px; background: var(--card); box-shadow: var(--shadow-lg); transform: translateX(104%); transition: transform .6s var(--ease); }
.sheet.open .sheet-card { transform: none; }
.sheet.bottom .sheet-card { top: auto; left: 0; width: auto; max-height: 88vh; border-radius: 26px 26px 0 0; transform: translateY(104%); }
.sheet.bottom.open .sheet-card { transform: none; }
.sheet-grip { display: block; flex: none; width: 46px; height: 5px; border-radius: 5px; background: var(--line); margin: 10px auto 0; }
.sheet-top { flex: none; display: flex; align-items: center; justify-content: space-between; height: 76px; border-bottom: 1px solid var(--line-2); margin-bottom: 6px; }
.sheet-top .brand img { width: 44px; height: 44px; }
.sheet-top .brand-text strong { font-size: calc(19px * var(--ts, 1)); }
.sheet-x { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink); transition: transform .4s var(--ease), background .25s; }
.sheet-x:hover { transform: rotate(90deg); background: var(--frost); }
.sheet-x svg { width: 20px; height: 20px; }
.sheet-acc .acc, .sheet-acc .acc-link { opacity: 0; transform: translateX(26px); transition: opacity .45s, transform .6s var(--ease); }
.sheet.bottom .sheet-acc .acc, .sheet.bottom .sheet-acc .acc-link { transform: translateY(18px); }
.sheet.open .sheet-acc .acc, .sheet.open .sheet-acc .acc-link { opacity: 1; transform: none; transition-delay: calc(var(--i) * 55ms + .2s); }
.acc { border-bottom: 1px solid var(--line-2); }
.acc-btn { width: 100%; display: flex; align-items: center; justify-content: space-between; height: 62px; font: 700 calc(25px * var(--hs, 1))/1 var(--serif); color: var(--ink); }
.acc.is-active .acc-btn span::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 10px; vertical-align: middle; border-radius: 50%; background: var(--red); }
.acc-btn i { position: relative; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); transition: background .3s, border-color .3s, transform .45s var(--ease); }
.acc-btn i::before, .acc-btn i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.6px; margin: -.8px 0 0 -5.5px; background: var(--ink); transition: transform .4s var(--ease), background .3s; }
.acc-btn i::after { transform: rotate(90deg); }
.acc.open .acc-btn i { background: var(--brand); border-color: var(--brand); transform: rotate(180deg); }
.acc.open .acc-btn i::before, .acc.open .acc-btn i::after { background: #fff; }
.acc.open .acc-btn i::after { transform: rotate(0); }
.acc-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); }
.acc-body > div { overflow: hidden; }
.acc.open .acc-body { grid-template-rows: 1fr; }
.acc .mrow { padding: 10px 6px; }
.acc .mrow:last-child { margin-bottom: 10px; }
.acc .mi { width: 40px; height: 40px; }
.acc-link { display: flex; align-items: center; justify-content: space-between; height: 62px; border-bottom: 1px solid var(--line-2); font: 700 calc(25px * var(--hs, 1))/1 var(--serif); color: var(--ink); }
.acc-link svg { width: 20px; height: 20px; color: var(--navy); }
.sheet-foot { margin-top: auto; padding-top: 24px; display: grid; gap: 16px; }
.sheet-foot .btn { width: 100%; }
.sheet-meta { display: flex; align-items: center; justify-content: space-between; }
.sheet-meta a { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink); }
.sheet-meta svg { width: 17px; height: 17px; color: var(--navy); }

/* ---------- 2 · Floating Dock */
.n2 { position: fixed; top: 14px; left: 0; right: 0; z-index: 60; pointer-events: none; }
.n2-dock { pointer-events: auto; position: relative; margin: 0 auto; width: min(1220px, 100% - 2 * var(--gutter)); height: 70px; display: flex; align-items: center; gap: 12px;
  padding: 0 9px; border-radius: 999px; background: color-mix(in srgb, var(--card) 80%, transparent);
  -webkit-backdrop-filter: saturate(1.7) blur(18px); backdrop-filter: saturate(1.7) blur(18px);
  border: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  box-shadow: 0 20px 44px -24px rgba(3,26,56,.5), inset 0 1px 0 rgba(255,255,255,.55);
  transition: width .7s var(--ease), height .5s var(--ease), box-shadow .4s; }
:root[data-theme="dark"] .n2-dock { box-shadow: 0 20px 44px -24px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.06); }
.n2.is-compact .n2-dock { width: min(1000px, 100% - 2 * var(--gutter)); height: 60px; }
.n2-brand { display: flex; align-items: center; gap: 10px; flex: none; }
.n2-ring { position: relative; width: 54px; height: 54px; display: grid; place-items: center; flex: none; transition: transform .5s var(--ease); }
.n2.is-compact .n2-ring { transform: scale(.88); }
.n2-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.n2-ring circle { fill: none; stroke-width: 3; }
.n2-ring .trk { stroke: var(--line-2); }
.n2-ring .prg { stroke: var(--red); stroke-linecap: round; stroke-dasharray: 169.65; stroke-dashoffset: calc(169.65 * (1 - var(--p, 0))); }
.n2-ring img { width: 42px; height: 42px; border-radius: 50%; }
:root[data-theme="dark"] .n2-ring img { background: #fff; }
.n2-word { display: grid; line-height: 1.1; max-width: 180px; overflow: hidden; white-space: nowrap; transition: max-width .6s var(--ease), opacity .4s; }
.n2-word strong { font: 700 calc(18px * var(--hs, 1))/1.1 var(--serif); color: var(--ink); }
.n2-word small { font-size: calc(10.5px * var(--ts, 1)); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.n2.is-compact .n2-word { max-width: 0; opacity: 0; }
.n2-nav { display: flex; align-items: center; margin: 0 auto; }
.n2-nav .ink { border-radius: 99px; background: var(--ink); height: 44px; margin-top: -22px; }
.n2-link { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 5px; height: 44px; padding: 0 15px; border-radius: 99px;
  font-weight: 500; font-size: calc(14.5px * var(--ts, 1)); color: var(--ink); transition: color .3s; white-space: nowrap; }
.n2-link svg { width: 13px; height: 13px; transition: transform .35s var(--ease); }
.n2-link[aria-expanded="true"] svg { transform: rotate(180deg); }
.n2-link.is-ink { color: var(--paper); }
.n2-link.is-active::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--red); margin-right: 3px; }
.n2-tools { display: flex; align-items: center; gap: 8px; flex: none; }
.n2-apply { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 6px 0 22px; border-radius: 99px; background: var(--red); color: #fff;
  font-weight: 600; font-size: calc(15px * var(--ts, 1)); transition: background .3s, height .5s var(--ease); }
.n2-apply:hover { background: var(--red-700); }
.n2-apply i { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.18); transition: transform .5s var(--ease), background .3s, color .3s; }
.n2-apply svg { width: 18px; height: 18px; }
.n2-apply:hover i { transform: rotate(-45deg); background: #fff; color: var(--red); }
.n2.is-compact .n2-apply { height: 44px; }
.n2.is-compact .n2-apply i { width: 34px; height: 34px; }
.morph { position: absolute; top: calc(100% + 16px); left: 0; width: var(--mw, 420px); height: var(--mh, 240px); transform: translateX(var(--mx, 0)) translateY(10px) scale(.97);
  transform-origin: var(--ax, 50%) 0; background: var(--card); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden;
  transition: transform .5s var(--ease), width .5s var(--ease), height .5s var(--ease), opacity .25s, visibility 0s .3s; }
.morph.open { opacity: 1; visibility: visible; transform: translateX(var(--mx, 0)); transition: transform .5s var(--ease), width .5s var(--ease), height .5s var(--ease), opacity .25s; }
.morph.snap { transition: opacity .25s !important; }
.morph-arrow { position: absolute; top: -7px; left: var(--ax, 50%); width: 14px; height: 14px; margin-left: -7px; background: var(--card); border-left: 1px solid var(--line); border-top: 1px solid var(--line);
  transform: rotate(45deg); transition: left .5s var(--ease); }
.morph.snap .morph-arrow { transition: none; }
.morph-in { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: 24px; }
.morph-panel { position: absolute; top: 0; left: 0; padding: 12px; opacity: 0; pointer-events: none; transition: opacity .3s, transform .5s var(--ease); }
.morph-panel.on { opacity: 1; pointer-events: auto; transform: none; }
.morph-panel.from-left { transform: translateX(-50px); }
.morph-panel.from-right { transform: translateX(50px); }
.morph-panel[data-panel="programmes"] { width: 600px; }
.morph-panel[data-panel="admissions"] { width: 400px; }
.morph-panel[data-panel="campus"] { width: 420px; }
.morph-panel[data-panel="about"] { width: 380px; }
.mfoot { display: flex; align-items: center; justify-content: space-between; margin: 6px 4px 0; padding: 14px 10px 4px; border-top: 1px solid var(--line-2); font-size: calc(14px * var(--ts, 1)); font-weight: 600; color: var(--navy); }
.mfoot svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.mfoot:hover svg { transform: translateX(4px); }
.n2-tabbar { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 61; grid-template-columns: repeat(5, 1fr); align-items: end; height: 68px; padding: 0 4px 9px;
  border-radius: 24px; background: color-mix(in srgb, var(--card) 88%, transparent); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.tab { position: relative; display: grid; justify-items: center; gap: 4px; color: var(--muted); font-size: calc(11px * var(--ts, 1)); font-weight: 600; transition: color .25s; }
.tab svg { width: 22px; height: 22px; transition: transform .35s cubic-bezier(.4,1.6,.5,1); }
.tab:active svg { transform: scale(.85); }
.tab.is-active { color: var(--navy); }
.tab.is-active::before { content: ""; position: absolute; top: -9px; width: 18px; height: 3px; border-radius: 3px; background: var(--red); }
.tab-fab { width: 56px; height: 56px; margin-top: -30px; border-radius: 50%; display: grid; place-items: center; background: var(--red); color: #fff;
  border: 4px solid var(--paper); box-shadow: 0 12px 24px -10px rgba(204,29,41,.85); }
.tab-apply { color: var(--red); }
.tab-fab svg { width: 24px; height: 24px; }

/* ---------- 3 · Atrium */
.n3 { position: fixed; top: 0; left: 0; right: 0; z-index: 60; }
.n3-bar { background: color-mix(in srgb, var(--card) 93%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line-2); transition: box-shadow .4s; }
.n3.is-scrolled .n3-bar { box-shadow: 0 14px 34px -20px rgba(3,26,56,.4); }
.n3-bar .wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 96px; transition: height .45s var(--ease); }
.n3.is-scrolled .n3-bar .wrap { height: 70px; }
.n3-left { display: flex; align-items: center; gap: 4px; }
.n3-menu { display: inline-flex; align-items: center; gap: 12px; height: 48px; padding: 0 20px 0 16px; margin-right: 8px; border-radius: 99px; border: 1px solid var(--line);
  font-weight: 600; color: var(--ink); transition: background .3s, color .3s, border-color .3s; }
.n3-menu:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.n3-burger { position: relative; width: 22px; height: 12px; }
.n3-burger i { position: absolute; left: 0; height: 2px; border-radius: 2px; background: currentColor; transition: width .35s var(--ease); }
.n3-burger i:first-child { top: 0; width: 22px; }
.n3-burger i:last-child { bottom: 0; width: 13px; }
.n3-menu:hover .n3-burger i:last-child { width: 22px; }
.n3-quick { position: relative; display: inline-flex; align-items: center; height: 44px; padding: 0 12px; font-weight: 500; font-size: calc(15px * var(--ts, 1)); color: var(--ink); }
.n3-quick::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 8px; height: 2px; border-radius: 2px; background: var(--red); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.n3-quick:hover::after, .n3-quick.is-active::after { transform: scaleX(1); transform-origin: left; }
.n3-brand { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 3px; }
.n3-brand img { width: 42px; height: 42px; transition: width .45s var(--ease), height .45s var(--ease); }
.n3.is-scrolled .n3-brand img { width: 34px; height: 34px; }
:root[data-theme="dark"] .n3-brand img { background: #fff; border-radius: 50%; padding: 2px; }
.n3-brand strong { display: block; font: 700 calc(19px * var(--hs, 1))/1 var(--serif); color: var(--ink); letter-spacing: -.01em; }
.n3-brand small { display: block; max-height: 18px; overflow: hidden; margin-top: 4px; font-size: calc(10.5px * var(--ts, 1)); letter-spacing: .15em; text-transform: uppercase; color: var(--muted); transition: max-height .4s, opacity .3s, margin .4s; }
.n3.is-scrolled .n3-brand small { max-height: 0; opacity: 0; margin-top: 0; }
.n3-right { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.n3-call { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: calc(14.5px * var(--ts, 1)); color: var(--ink); }
.n3-call svg { width: 36px; height: 36px; padding: 9px; border-radius: 50%; background: var(--sky-50); color: var(--navy); transition: background .3s, color .3s; }
.n3-call:hover svg { background: var(--brand); color: #fff; }
.n3-apply { border-radius: 99px; }
.atrium { position: fixed; inset: 0; z-index: 92; grid-template-columns: 44% 1fr; visibility: hidden; transition: visibility 0s .95s; }
.atrium.open { visibility: visible; transition: none; }
.a3-photo { position: relative; overflow: hidden; background: var(--abyss); clip-path: inset(0 100% 0 0); transition: clip-path .9s var(--ease) .05s; }
.atrium.open .a3-photo { clip-path: inset(0 0 0 0); }
.a3-pics figure { position: absolute; inset: 0; margin: 0; opacity: 0; transform: scale(1.1); transition: opacity .7s, transform 1.6s var(--ease); }
.a3-pics figure.on { opacity: 1; transform: none; }
.a3-pics img { width: 100%; height: 100%; object-fit: cover; }
.a3-pics figure::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(2,16,36,.25), rgba(2,16,36,.15) 40%, rgba(2,16,36,.85)); }
.a3-pics figcaption { position: absolute; left: 40px; bottom: 36px; z-index: 1; color: #fff; font: 700 calc(clamp(40px, 4vw, 64px) * var(--hs, 1))/1 var(--serif); }
.a3-seal { position: absolute; top: 28px; left: 32px; z-index: 2; width: 80px; height: 80px; border-radius: 50%; background: #fff; padding: 4px; box-shadow: 0 0 0 10px rgba(255,255,255,.12); }
.a3-seal img { width: 100%; height: 100%; }
.a3-main { position: relative; display: flex; flex-direction: column; overflow-y: auto; padding: 26px clamp(28px, 5vw, 80px) 30px; background: var(--paper);
  clip-path: inset(0 0 100% 0); transition: clip-path .9s var(--ease); }
.atrium.open .a3-main { clip-path: inset(0 0 0 0); }
.a3-main::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(rgba(78,160,229,.06) 1px, transparent 1px) 0 0 / 32px 32px, linear-gradient(90deg, rgba(78,160,229,.06) 1px, transparent 1px) 0 0 / 32px 32px;
  -webkit-mask-image: linear-gradient(200deg, #000, transparent 60%); mask-image: linear-gradient(200deg, #000, transparent 60%); }
.a3-top { position: relative; display: flex; align-items: center; justify-content: space-between; height: 56px; flex: none; }
.a3-label { font: 600 calc(12px * var(--ts, 1))/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.a3-close { display: inline-flex; align-items: center; gap: 12px; height: 48px; padding: 0 18px 0 22px; border-radius: 99px; background: var(--ink); color: var(--paper); font-weight: 600; }
.a3-close i { position: relative; width: 16px; height: 16px; transition: transform .5s var(--ease); }
.a3-close i::before, .a3-close i::after { content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 2px; border-radius: 2px; background: currentColor; transform: rotate(45deg); }
.a3-close i::after { transform: rotate(-45deg); }
.a3-close:hover i { transform: rotate(90deg); }
.a3-list { position: relative; list-style: none; margin: auto 0; padding: 24px 0; }
.a3-list li { border-bottom: 1px solid var(--line-2); opacity: 0; transform: translateY(40px); transition: opacity .5s, transform .8s var(--ease); }
.atrium.open .a3-list li { opacity: 1; transform: none; transition-delay: calc(var(--i) * 65ms + .4s); }
.a3-big { display: flex; align-items: center; gap: 22px; padding: 12px 0; }
.a3-big .n { width: 30px; flex: none; font: 700 calc(15px * var(--hs, 1))/1 var(--serif); color: var(--red); }
.a3-big b { font: 700 calc(clamp(34px, 4.2vw, 60px) * var(--hs, 1))/1.05 var(--serif); color: var(--ink); letter-spacing: -.02em; transition: transform .55s var(--ease), color .3s; }
.a3-big svg { margin-left: auto; width: 28px; height: 28px; color: var(--navy); opacity: 0; transform: translateX(-16px) rotate(-45deg); transition: opacity .35s, transform .5s var(--ease); }
.a3-list li:hover .a3-big b, .a3-list li:focus-within .a3-big b { transform: translateX(14px); color: var(--navy); font-style: normal; }
.a3-list li:hover .a3-big svg { opacity: 1; transform: none; }
.a3-list li.is-active .a3-big b { color: var(--navy); }
.a3-list li.is-active .a3-big .n::after { content: " •"; }
.a3-sub { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); }
.a3-sub > div { overflow: hidden; display: flex; flex-wrap: wrap; gap: 6px 22px; padding-left: 52px; }
.a3-list li:hover .a3-sub, .a3-list li:focus-within .a3-sub { grid-template-rows: 1fr; }
.a3-sub a { position: relative; padding: 2px 0 16px; font-size: calc(15px * var(--ts, 1)); font-weight: 500; color: var(--muted); transition: color .25s; }
.a3-sub a:hover { color: var(--navy); }
.a3-foot { position: relative; flex: none; display: flex; flex-wrap: wrap; align-items: center; gap: 24px; padding-top: 20px; border-top: 1px solid var(--line-2);
  opacity: 0; transition: opacity .5s; }
.atrium.open .a3-foot { opacity: 1; transition-delay: .8s; }
.a3-foot a:not(.btn) { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink); }
.a3-foot svg { width: 17px; height: 17px; color: var(--navy); }
.a3-foot .btn { margin-left: auto; color: #fff; }
.a3-foot .btn svg { color: #fff; }

/* ---------- responsive */
@media (max-width: 1180px) {
  .n1-link { padding: 0 11px; font-size: calc(14.5px * var(--ts, 1)); }
  .n1-bar > .wrap { gap: 16px; }
  .n1-brand .brand-text span { display: none; }
  .n2-word { display: none; }
  .n2-link { padding: 0 11px; font-size: calc(14px * var(--ts, 1)); }
  .mega-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .n3-quick { display: none; }
}
@media (max-width: 1020px) {
  .n1-nav, .n1-apply { display: none; }
  .n1-tools { margin-left: auto; }
  .burger { display: inline-flex; }
  .n1-contact a.mail, .n1-contact a:last-child { display: none; }
  .mega { display: none; }
  .n2-nav, .n2-apply, .morph { display: none; }
  .n2-word { display: grid; }
  .n2-tools { margin-left: auto; }
  :root[data-nav="2"] .n2-tabbar { display: grid; }
  :root[data-nav="2"] body { padding-bottom: 92px; }
  :root[data-nav="2"] .review { bottom: 96px; }
  .n3-call span { display: none; }
  .atrium { grid-template-columns: 1fr; }
  .a3-photo { display: none; }
}
@media (max-width: 720px) {
  :root[data-nav="1"] body { padding-top: 100px; }
  .n1-strip, .n1-strip .wrap { height: 36px; }
  .n1-strip { font-size: calc(12px * var(--ts, 1)); }
  .n1-contact { display: none; }
  .n1-bar > .wrap { height: 64px; }
  .n1.is-scrolled .n1-bar > .wrap { height: 58px; }
  .n1-brand img { width: 42px; height: 42px; }
  .n1-tools { gap: 8px; }
  .burger { width: 42px; height: 42px; }
  :root[data-nav="2"] body { padding-top: 84px; }
  .n2 { top: 10px; }
  .n2-dock { height: 62px; width: calc(100% - 24px); }
  .n2.is-compact .n2-dock { width: calc(100% - 24px); height: 58px; }
  .n2-ring { width: 46px; height: 46px; }
  .n2-ring img { width: 36px; height: 36px; }
  :root[data-nav="3"] body { padding-top: 72px; }
  .n3-bar .wrap, .n3.is-scrolled .n3-bar .wrap { height: 72px; grid-template-columns: auto 1fr auto; gap: 10px; }
  .n3-menu { padding: 0 14px; height: 44px; margin: 0; }
  .n3-menu > span:last-child { display: none; }
  .n3-brand { flex-direction: row; gap: 8px; justify-content: center; }
  .n3-brand img, .n3.is-scrolled .n3-brand img { width: 38px; height: 38px; }
  .n3-brand strong { font-size: calc(16px * var(--ts, 1)); }
  .n3-brand small { display: none; }
  .n3-call, .n3-right .tbtn { display: none; }
  .n3-apply { height: 40px; padding: 0 14px; }
  .a3-main { padding: 18px 22px 24px; }
  .a3-big { gap: 14px; }
  .a3-big .n { width: 22px; }
  .a3-sub > div { padding-left: 36px; }
  .a3-list li .a3-sub { grid-template-rows: 1fr; }
  .a3-foot .btn { margin-left: 0; width: 100%; }
  .sheet-card { padding: 0 18px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .mega, .morph, .sheet-card, .a3-photo, .a3-main, .atrium { transition: none !important; }
}
