:root{color-scheme:dark;--maroon:#6e1829;--cream:#fff0d6;--amber:#ffd49b;--ink:#381713}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:linear-gradient(130deg,#511d24,#a05b42);font-family:Tahoma,"Segoe UI",sans-serif;color:#fff7e8}
button{font:inherit}
button:focus-visible{outline:3px solid #fff;outline-offset:3px}
.desktop-stage{position:relative;width:100%;aspect-ratio:1672/941;isolation:isolate;overflow:hidden;background:#9a553e}
.reference{display:block;width:100%;height:100%;object-fit:cover;user-select:none;-webkit-user-drag:none}
.hit{position:absolute;border:0;background:transparent;cursor:pointer;padding:0;z-index:3;border-radius:18px}
.hit:focus-visible{outline:2px solid #ffe4b5;outline-offset:2px}
.card-action-layer{
  position:absolute;inset:0;width:100%;height:100%;z-index:4;
  pointer-events:none;overflow:visible
}
.card-shape{
  pointer-events:visiblePainted;fill:rgba(255,255,255,0);
  stroke:rgba(255,245,225,0);stroke-width:4;
  vector-effect:non-scaling-stroke;cursor:pointer;
  transition:stroke .18s ease,filter .18s ease;
}
.card-shape:hover,.card-shape:focus-visible{
  outline:none;stroke:#fff9ed;stroke-width:5.2;
  filter:drop-shadow(0 0 2px #fcecc2) drop-shadow(0 0 5px #ffc66e)
}
.hit .tip{position:absolute;bottom:calc(100% + 7px);right:15%;display:inline-block;font-size:clamp(10px,.8vw,16px);font-weight:bold;background:rgba(67,24,22,.9);color:#ffe6bd;border:1px solid #dba25d;border-radius:10px;white-space:nowrap;padding:6px 10px;opacity:0;pointer-events:none;transform:translateY(5px);transition:.2s ease}
.hit:hover .tip,.hit:focus-visible .tip{opacity:1;transform:translateY(0)}
.h-prereg{left:5.5%;top:85.3%;width:23.7%;height:9.2%;border-radius:999px}
.h-panels{left:31.9%;top:84.5%;width:24%;height:10.5%;border-radius:999px}
.h-top{left:62.3%;top:1.5%;width:11.2%;height:6.6%;border-radius:999px}
.h-menu-about{left:52%;top:1.5%;width:10%;height:6.6%}
.h-menu-news{left:41.5%;top:1.5%;width:10.2%;height:6.6%}
.h-menu-gallery{left:16.4%;top:1.5%;width:6%;height:6.6%}
@keyframes orbit{from{transform:rotate(-20deg) rotateX(66deg) scale(1)}to{transform:rotate(22deg) rotateX(66deg) scale(1.05)}}
@keyframes shimmer{to{background-position:200% 0}}
.mobile-stage{display:none}
.mobile-stage .mobile-header{display:flex;align-items:center;justify-content:space-between;padding:16px;gap:14px;background:rgba(62,16,23,.94);border-bottom:1px solid rgba(255,213,152,.23)}
.mobile-header .mark{width:48px;height:48px;display:grid;place-items:center;flex:none;background:linear-gradient(145deg,#f8d6a1,#ae6a3a);color:#62202c;border-radius:13px;font-size:26px;font-weight:900;box-shadow:0 8px 25px #2e1114a8}
.mobile-header h1{font-size:16px;margin:0;line-height:1.6;color:#ffeacd}
.mobile-header small{font-size:11px;color:#e7bf97;display:block;margin-top:4px}
.mobile-hero{position:relative;overflow:hidden;padding:30px 18px 18px;isolation:isolate;background:linear-gradient(180deg,#52212a66,#592830dd)}
.mobile-hero::before{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(55,20,27,.70),rgba(64,19,25,.9)),url("assets/mobile-building.jpg") center center/cover no-repeat;opacity:.90;filter:saturate(.8) blur(1px);z-index:-1}
.mobile-hero > *{position:relative;z-index:1}
.mobile-hero h2{font-size:clamp(29px,7.4vw,44px);margin:6px 0 12px;line-height:1.3;text-shadow:0 4px 30px #3e131a}
.mobile-hero .claim{background:linear-gradient(90deg,#fff0c4,#ffd47f);color:#6a1e27;padding:8px 16px;border-radius:99px;font-weight:900;display:inline-block;box-shadow:0 8px 30px #24111177}
.mobile-hero p{color:#ffe2c6;line-height:2;font-size:14px;max-width:510px}
.mobile-actions{display:flex;gap:10px;flex-wrap:wrap;margin:18px 0 0}
.btn{border:1px solid rgba(255,224,161,.6);border-radius:14px;background:linear-gradient(145deg,#8c1f37,#5f1529);color:white;padding:12px 17px;font-weight:700;cursor:pointer;box-shadow:0 9px 24px #32111788}
.btn.gold{background:linear-gradient(145deg,#ffe2a3,#d69a4d);color:#582222}
.mobile-globe{margin:24px auto 4px;position:relative;width:175px;aspect-ratio:1;isolation:isolate}
.mobile-globe img{width:100%;height:100%;object-fit:cover;border-radius:50%;box-shadow:0 15px 44px #320d2078}
.mobile-globe::after{content:"";position:absolute;left:2%;top:27%;width:96%;height:40%;border:2px solid #ffd38b;border-radius:50%;transform:rotateX(60deg);filter:drop-shadow(0 0 10px #ffcf66);animation:none}
.mobile-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;padding:22px 18px 16px}
.m-card{--glass:#ad3550;--rim:#ee9c98;text-align:center;cursor:pointer;min-height:158px;display:flex;flex-direction:column;justify-content:space-between;align-items:center;position:relative;color:white;border-radius:24px;border:1.3px solid rgba(255,255,255,.48);padding:20px 8px 16px;box-shadow:0 18px 29px #21090e77,inset -4px -5px 12px #0003,inset 3px 5px 10px #fff3,0 0 24px color-mix(in srgb,var(--rim) 30%,transparent);background:linear-gradient(135deg,#ffffff66,#ffffff05 55%),linear-gradient(130deg,var(--glass),#391c21);backdrop-filter:blur(14px);transition:transform .3s ease}
.m-card:nth-child(1){transform:rotate(-3deg) translateY(2px)}
.m-card:nth-child(2){--glass:#3e9259;--rim:#8dde8e;transform:rotate(3deg) translateY(-2px)}
.m-card:nth-child(3){--glass:#e0a035;--rim:#ffe2a0;transform:rotate(3deg)}
.m-card:nth-child(4){--glass:#8a1d36;--rim:#ff9baf;transform:rotate(-3deg)}
.m-card:hover{transform:translateY(-5px) rotate(0)}
.m-card .ico{font-size:34px;color:#ffe4b8;filter:drop-shadow(0 4px 5px #290f1955)}
.m-card strong{font-size:17px;line-height:1.4}
.m-card span:last-child{font-size:11px;color:#f9e3cf;line-height:1.5}
.mobile-bottom{display:grid;gap:12px;padding:16px 18px 40px}
.notice{margin:0 auto;width:min(900px,calc(100% - 36px));padding:15px 20px;line-height:1.9;color:#ffe4bf;text-align:center;font-size:13px}
dialog{border:1px solid #e7bc7a;background:linear-gradient(145deg,rgba(102,31,41,.98),rgba(57,18,26,.98));color:#fff5e4;border-radius:24px;box-shadow:0 28px 85px #100408bd;width:min(540px,calc(100% - 32px));max-height:min(80vh,620px);padding:30px}
dialog::backdrop{background:rgba(30,6,12,.72);backdrop-filter:blur(7px)}
dialog h2{margin:0 0 12px;font-size:24px}
dialog p{line-height:2;color:#f5d9c2;font-size:15px}
dialog .close{background:rgba(255,255,255,.12);border:1px solid #e7bc7a;color:white;border-radius:13px;padding:8px 15px;cursor:pointer;position:absolute;left:16px;top:16px}
.role-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:18px}
.role-row button{padding:14px;border-radius:13px;background:rgba(255,255,255,.08);border:1px solid #e3aa66;color:#ffe2b8;cursor:pointer}
.dialog-foot{margin-top:18px;color:#f7ca85;font-size:12px;border-top:1px solid #e7bc7a42;padding-top:12px}
@media(max-width:920px){.desktop-stage{display:none}.mobile-stage{display:block}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
.mobile-campus{display:none}
@media(max-width:920px){.mobile-campus{display:block;height:155px;margin:14px 0 2px;border-radius:24px;background:linear-gradient(0deg,rgba(47,17,23,.24),rgba(255,225,179,.03)),url("assets/mobile-building.jpg") center 38%/cover no-repeat;border:1px solid rgba(255,217,164,.35);box-shadow:0 12px 30px #280e2070,inset 0 0 20px #fff2}}

/* V4: no blurred/rectangular hover overlays; SVG stroke follows the approved artwork */



/* All mobile card strokes have visible volume without adding extra rectangle/effects */
.m-card{border:2px solid rgba(255,242,217,.85);box-shadow:0 17px 24px #21090e77,inset 1px 2px 9px #fff5,0 0 0 1px color-mix(in srgb,var(--rim) 50%,transparent)}
.m-card:hover,.m-card:focus-visible{border-color:#fff8e5;filter:drop-shadow(0 0 7px color-mix(in srgb,var(--rim) 50%,transparent));outline-offset:3px}
.mobile-bottom .btn,.mobile-actions .btn{border-width:2px}
.mobile-bottom .btn:hover,.mobile-actions .btn:hover{border-color:#fffaf0}

/* V5: upper/lower pill outlines share the exact image coordinates. */
.card-shape-motto{pointer-events:visiblePainted;cursor:pointer}
/* Globe overlay keeps the original glass/material palette with no synthetic solid-color sphere. */

@media(prefers-reduced-motion:reduce){}

/* V7 — Edge/Windows focus repair: focus ONLY on semantic HTML buttons.
   Original SVG paths are never focusable, preventing black bounding-box
   focus outlines; the visible keyboard indicator follows the real shape. */
.card-shape:focus,
.card-shape:focus-visible{outline:none!important}
.card-keyboard-controls{position:absolute;inset:0;pointer-events:none;z-index:2}
.keyboard-card-activation{
 position:absolute!important;width:1px!important;height:1px!important;
 margin:-1px!important;border:0!important;padding:0!important;
 overflow:hidden!important;white-space:nowrap!important;
 clip:rect(0,0,0,0)!important;clip-path:inset(50%)!important;
 opacity:0;pointer-events:none;
}
.card-shape.keyboard-target{
 stroke:#fff9ed!important;stroke-width:5.2!important;
 filter:drop-shadow(0 0 2px #fcecc2) drop-shadow(0 0 5px #ffc66e);
}

/* V10: light ONLY on the capsule boundary. Never shade the image's text/icons. */
.nav-hotspot{
  position:absolute;z-index:6;display:block;box-sizing:border-box;
  background:transparent;border:0;padding:0;border-radius:999px;
  cursor:pointer;outline:0;isolation:isolate;-webkit-tap-highlight-color:transparent;
}
.nav-hotspot::before{
  content:"";position:absolute;inset:0;border-radius:inherit;
  background:transparent!important;opacity:0;pointer-events:none;
  border:2.25px solid rgba(255,239,193,.98);
  box-shadow:0 0 2px 1px rgba(255,244,213,.85),
             0 0 9px 2px rgba(255,189,92,.78),
             0 0 15px 4px rgba(190,76,40,.42),
             inset 0 0 2px rgba(255,224,178,.32);
  transition:opacity .18s ease;
}
.nav-hotspot:hover::before,.nav-hotspot:focus-visible::before{opacity:1}
/* When the pointer enters a second menu item, avoid two glowing frames:
   an earlier control may still have keyboard focus after a dialog closes. */
.desktop-stage:has(.nav-hotspot:hover) .nav-hotspot:focus-visible:not(:hover)::before{opacity:0}
.nav-hotspot:focus-visible{outline:0}
.nav-search,.nav-search::before{border-radius:50%}
/* The 'صفحه نخست' capsule is already lit in the approved artwork. */
.nav-home::before{display:none}
@media(prefers-reduced-motion:reduce){.nav-hotspot::before{transition:none}}

/* V9: the golden sphere surface spins INSIDE the approved still image globe.
 * It is one transparent circular WebGL canvas placed on the same globe,
 * with no rectangular box, static duplicate circle, or global overlay. */
.live-globe{
  position:absolute;
  left:82.29665%;top:48.88417%;width:15.311%;height:27.205%;
  z-index:2;pointer-events:none;display:block;overflow:visible;
  background:none!important;outline:0!important;box-shadow:none!important;
}
@media(prefers-reduced-motion:reduce){.nav-hotspot::before{transition:none}}

/* V9 photo-derived glass reflections: ONLY the moving geographic surface is repainted.
   The perimeter, orbit ring and base of the original image are not replaced. */
.desktop-glass-reflection{
 position:absolute;left:82.29665%;top:48.88417%;width:15.311%;height:27.205%;
 object-fit:fill;z-index:3;pointer-events:none;user-select:none;
 background:transparent!important;border:0!important;box-shadow:none!important;
}
.mobile-earth-layers{
 position:absolute;left:28.8%;top:14.6%;width:65.4%;height:65.4%;
 z-index:2;pointer-events:none;
}
.mobile-earth-layers .mobile-live-globe,
.mobile-earth-layers .mobile-glass-reflection{
 position:absolute!important;inset:0!important;width:100%!important;height:100%!important;
 display:block!important;object-fit:fill!important;border:0!important;
 border-radius:0!important;outline:0!important;box-shadow:none!important;
 background:transparent!important;pointer-events:none!important;
}
.mobile-earth-layers .mobile-glass-reflection{z-index:3}
.desktop-glass-reflection,.mobile-glass-reflection{visibility:hidden}
body.globe-desktop-ready .desktop-glass-reflection,
body.globe-mobile-ready .mobile-glass-reflection{visibility:visible}

/* V11 spelling correction lives over the reference artwork, not over the menu controls.
   Source image bytes remain exactly unchanged. */
.spelling-overlay{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:fill;pointer-events:none;user-select:none;z-index:1}

/* extracted from image-aligned hotspot inline styles for strict CSP */
.nav-search{left:2.63158%;top:1.27524%;width:4.24641%;height:6.16366%}
.nav-contact{left:7.53589%;top:1.38151%;width:7.59569%;height:5.84485%}
.nav-gallery{left:15.78947%;top:1.38151%;width:6.69856%;height:5.84485%}
.nav-awards{left:22.78708%;top:1.38151%;width:8.01435%;height:5.84485%}
.nav-edu{left:31.27990%;top:1.38151%;width:11.12440%;height:5.84485%}
.nav-news{left:42.28469%;top:1.38151%;width:10.46651%;height:5.84485%}
.nav-about{left:52.87081%;top:1.38151%;width:10.16746%;height:5.84485%}
.nav-home{left:63.33732%;top:1.27524%;width:9.74880%;height:6.26993%}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(100%)}
