/* Credentials: the Portfolio's living glass. Luminous liquid-glass frames with metallic bevels standing on metal bases,
   real glass pills for every control, and the certifications as chrome 3D medallions over a glossy glass floor. Plate pixels. */

.cr-world { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.cr-world::before { content: ""; position: absolute; inset: -60px; background: url('../../assets/portfolio/plate/stage-empty.webp') center / 1706px 1112px no-repeat;
  filter: blur(34px) brightness(1.18) saturate(1.4); }
.cr-world::after { content: ""; position: absolute; left: 0; top: 0; width: 1586px; height: 262px; background: url('../../assets/portfolio/plate/stage-credentials.webp') 0 0 / 1586px 992px no-repeat;
  -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent 100%); mask-image: linear-gradient(180deg, #000 72%, transparent 100%); }
.cr-light { position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 40% 30% at 66% 40%, rgba(120,220,255,.5), rgba(45,150,255,.22) 55%, transparent 80%),
    radial-gradient(ellipse 30% 45% at 18% 70%, rgba(60,170,255,.35), transparent 70%),
    radial-gradient(ellipse 34% 40% at 98% 84%, rgba(40,170,255,.5), transparent 70%),
    radial-gradient(ellipse 120% 40% at 50% 100%, rgba(30,120,240,.35), transparent 70%),
    radial-gradient(ellipse 95% 90% at 50% 56%, transparent 66%, rgba(2,10,34,.38) 100%); }

/* title */
.cr-identity { position: absolute; left: 168px; top: 106px; width: 960px; pointer-events: none; }
.cr-kicker { margin: 0 0 6px; font: 400 15px/1 var(--serif); letter-spacing: .3em; text-transform: uppercase; color: #f3cf9f; text-shadow: 0 0 14px rgba(255,190,120,.35); }
.cr-identity h1 { margin: 0; font: 400 64px/1.02 var(--serif);
  background: linear-gradient(180deg, #ffffff 15%, #e3ecf7 55%, #b1c2d8 100%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 2px 10px rgba(0,0,0,.45)); }
.cr-lede { margin: 12px 0 0; width: 900px; font: 400 20px/1.4 var(--serif); color: #eef4fb; text-shadow: 0 1px 8px rgba(0,8,30,.6); }

/* ---------- glass pill (every control) ---------- */
.gp { all: unset; box-sizing: border-box; cursor: pointer; position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 34px; padding: 0 16px; border-radius: 10px;
  font: 400 14px/1 var(--serif); letter-spacing: .04em; color: #eef6ff; white-space: nowrap;
  background: linear-gradient(180deg, rgba(90,170,240,.45), rgba(16,56,116,.6) 45%, rgba(5,22,54,.75) 75%, rgba(20,70,140,.6));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7), inset 0 -2px 0 rgba(1,8,26,.75), inset 0 -8px 12px -8px rgba(110,215,255,.75), inset 0 0 0 1px rgba(170,225,255,.5),
    0 0 0 1.5px rgba(2,12,34,.95), 0 0 0 2.5px rgba(120,200,255,.25), 0 6px 12px -4px rgba(0,4,16,.85), 0 0 16px -4px rgba(90,200,255,.55);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.gp::after { content: ""; position: absolute; left: 14%; right: 14%; bottom: 1px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, rgba(200,245,255,.9), transparent); opacity: .55; }
.gp svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.gp:hover, .gp:focus-visible { transform: translateY(-1px); background: linear-gradient(180deg, rgba(90,175,250,.5), rgba(14,56,118,.6) 55%, rgba(30,100,180,.6));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7), inset 0 -8px 16px -8px rgba(150,230,255,1), inset 0 0 0 1px rgba(200,240,255,.7), 0 0 0 1px rgba(10,30,70,.5), 0 8px 18px -6px rgba(0,4,16,.8), 0 0 24px -2px rgba(110,215,255,.85); }
.gp:focus-visible { outline: 2px solid rgba(235,245,255,.85); outline-offset: 2px; }
.gp.warm { color: #fff1dc; }
.gp[aria-selected="true"] { color: #fff; background: radial-gradient(ellipse 70% 90% at 50% 100%, rgba(140,225,255,.75), rgba(40,130,230,.5) 45%, rgba(10,50,110,.6));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8), inset 0 -10px 18px -8px rgba(200,245,255,1), inset 0 0 0 1px rgba(210,245,255,.85), 0 0 0 1px rgba(10,30,70,.5), 0 0 26px 0 rgba(90,200,255,.9), 0 0 60px -10px rgba(90,200,255,.7); }
.gp[aria-selected="true"]::after { opacity: 1; left: 8%; right: 8%; box-shadow: 0 0 10px rgba(180,240,255,1); }

/* the resume note: a small lit glass panel */
.cr-note { position: absolute; left: 1150px; top: 236px; width: 380px; z-index: 30; display: flex; flex-direction: column; gap: 6px; padding: 16px 20px; border-radius: 16px;
  background: linear-gradient(180deg, rgba(40,110,200,.5), rgba(6,26,64,.9) 60%, rgba(14,52,110,.85));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8), inset 0 0 0 1px rgba(170,230,255,.6), inset 0 -12px 22px -12px rgba(120,220,255,.9), 0 0 0 1px rgba(10,30,70,.5), 0 18px 40px -10px rgba(0,3,12,.8), 0 0 40px -4px rgba(90,200,255,.8);
  font: 400 15px/1.4 var(--serif); color: rgba(230,242,255,.95); animation: cr-pop .35s cubic-bezier(.2,.8,.2,1); }
.cr-note b { font: 400 19px/1.2 var(--serif); color: #fff; }
.cr-note[hidden] { display: none; }
@keyframes cr-pop { from { opacity: 0; transform: translateY(-8px) scale(.97); } }

/* ---------- living liquid glass frame (the Portfolio exhibit card) ---------- */
.lg { position: absolute; z-index: 2; border-radius: 30px; transform-style: preserve-3d; will-change: transform;
  background:
    radial-gradient(ellipse 60% 8% at 50% 0, rgba(225,248,255,.65), transparent 100%),
    radial-gradient(ellipse 50% 12% at 50% 100%, rgba(255,180,100,.35), transparent 100%),
    linear-gradient(180deg, rgba(70,160,240,.42), rgba(16,60,130,.34) 40%, rgba(24,84,170,.42) 85%, rgba(60,150,240,.5));
  -webkit-backdrop-filter: blur(16px) saturate(170%) brightness(1.08); backdrop-filter: blur(16px) saturate(170%) brightness(1.08);
  box-shadow:
    inset 0 2px 0 rgba(255,255,255,.95), inset 2px 0 0 rgba(225,242,255,.6),
    inset -3px 0 0 rgba(3,16,44,.75), inset 0 -4px 0 rgba(2,12,36,.85), inset 0 -10px 18px -6px rgba(1,8,26,.7), inset -12px 0 20px -10px rgba(1,8,26,.55),
    inset 0 0 0 1px rgba(200,240,255,.55), inset 0 0 26px 4px rgba(110,210,255,.4),
    0 0 0 1.5px rgba(160,225,255,.9), 0 0 0 4px rgba(3,14,40,.9), 0 0 0 5px rgba(120,200,255,.35),
    0 0 18px 4px rgba(110,210,255,.6), 0 0 50px 6px rgba(60,170,255,.45), 10px 24px 40px -10px rgba(0,3,14,.85), 0 46px 70px -24px rgba(0,3,12,.95); }
/* metallic bevel: a chrome ring between the outer edge and the inner screen */
.lg::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 13px; pointer-events: none;
  background:
    linear-gradient(135deg, rgba(255,255,255,.95) 0%, rgba(190,228,255,.85) 10%, rgba(80,150,225,.6) 26%, rgba(14,48,104,.75) 50%, rgba(4,16,42,.95) 72%, rgba(10,36,82,.9) 88%, rgba(90,170,240,.7) 100%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 1px, transparent 1px 3px);
  opacity: .9; -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  filter: saturate(1.2); }
/* the inner screen: deep but translucent, with its own crisp lit ridge */
.lg-screen { position: absolute; inset: 13px; border-radius: 19px; overflow: hidden;
  background: linear-gradient(180deg, rgba(2,12,34,.78), rgba(3,16,42,.7) 55%, rgba(8,34,82,.62));
  box-shadow: inset 0 0 0 1px rgba(150,215,255,.45), inset 0 9px 14px -6px rgba(0,4,16,.85), inset 8px 0 14px -8px rgba(0,4,16,.6), inset 0 -1px 0 rgba(200,240,255,.85), inset -1px 0 0 rgba(170,225,255,.5),
    inset 0 -16px 30px -16px rgba(90,190,255,.55), 0 0 0 2px rgba(2,10,30,.95), 0 0 0 3px rgba(120,200,255,.3), 0 1px 0 3px rgba(220,245,255,.25); }
/* light moving through the glass */
.lg-screen::before { content: ""; position: absolute; top: -40%; bottom: -40%; left: -40%; width: 26%; transform: rotate(18deg); pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(170,230,255,.10), rgba(255,255,255,.16), rgba(170,230,255,.10), transparent);
  animation: lg-sweep 9s ease-in-out infinite; animation-delay: var(--sw, 0s); }
@keyframes lg-sweep { 0%, 62% { left: -40%; } 100% { left: 130%; } }
/* top light streak and corner glints on the rim */
.lg-glint { position: absolute; left: 20%; right: 20%; top: -2px; height: 4px; border-radius: 4px; pointer-events: none; z-index: 3;
  background: linear-gradient(90deg, transparent, rgba(200,245,255,.9) 25%, #fff 50%, rgba(200,245,255,.9) 75%, transparent); box-shadow: 0 0 14px 2px rgba(150,230,255,.95), 0 0 40px 6px rgba(80,190,255,.6); }
.lg-glint::before, .lg-glint::after { content: ""; position: absolute; top: -10px; width: 22px; height: 22px; border-radius: 50%; background: radial-gradient(circle, #fff, rgba(170,235,255,.6) 30%, transparent 70%); }
.lg-glint::before { left: -6%; } .lg-glint::after { right: -6%; }
/* the metal base it stands on, with the warm light pooling under it */
.lg-base { position: absolute; left: -10px; right: -10px; bottom: -16px; height: 18px; border-radius: 6px 6px 10px 10px; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, #eef7ff 0, #a9c6e4 14%, #4f739c 42%, #1c3354 70%, #081427 100%), linear-gradient(90deg, rgba(255,255,255,.25), transparent 30%, transparent 70%, rgba(0,0,0,.35));
  background-blend-mode: overlay;
  box-shadow: inset 0 1px 0 #fff, inset 0 -2px 0 rgba(0,4,14,.9), inset -20px 0 20px -14px rgba(0,4,14,.6), 0 0 0 1px rgba(4,12,28,.95), 0 -3px 6px rgba(0,4,16,.7), 0 12px 20px rgba(0,3,12,.85), 0 0 20px rgba(90,190,255,.35); }
.lg-base::after { content: ""; position: absolute; left: 25%; right: 25%; top: -6px; height: 26px; border-radius: 50%; background: radial-gradient(ellipse, rgba(255,200,130,.95), rgba(255,150,70,.45) 40%, transparent 72%); filter: blur(2px); mix-blend-mode: screen; }
.lg-in { position: relative; z-index: 2; height: 100%; }

.cr-label { margin: 0; display: flex; align-items: center; gap: 16px; font: 400 14px/1 var(--serif); letter-spacing: .26em; text-transform: uppercase; color: rgba(200,235,255,.98); text-shadow: 0 0 12px rgba(40,140,255,.9); }

/* ---------- degree card ---------- */
.cr-degree { left: 56px; top: 282px; width: 468px; height: 654px; --sw: 1.5s; }
.cr-degree .lg-in { padding: 30px 34px 22px; display: flex; flex-direction: column; }
.cr-school { margin: 14px 0 0; font: 400 15px/1 var(--serif); letter-spacing: .2em; text-transform: uppercase; color: rgba(210,232,252,.9); }
.cr-deg { margin: 10px 0 0; font: 400 31px/1.12 var(--serif); color: #fff; text-shadow: 0 0 18px rgba(120,200,255,.35); }
.cr-date { margin: 6px 0 0; font: 400 17px/1.3 var(--serif); color: rgba(225,238,252,.9); }
.cr-honors { margin: 14px 0 0; font: 400 22px/1.2 var(--serif);
  background: linear-gradient(180deg, #fff3dc 10%, #f3cf9f 55%, #d59a5a); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 10px rgba(255,190,120,.35)); }
.cr-dl { margin: 6px 0 0; font: italic 400 16.5px/1.35 var(--serif); color: rgba(248,228,200,.95); }
.cr-rule { height: 1px; margin: 15px 0 12px; background: linear-gradient(90deg, rgba(170,225,255,.6), rgba(170,225,255,.06)); box-shadow: 0 0 6px rgba(120,210,255,.5); }
.cr-seals { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.cr-seals li { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; font: 400 12.5px/1.25 var(--serif); color: rgba(225,238,252,.92); }
.cr-list { margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.cr-list .gp { cursor: default; height: 30px; padding: 0 12px; font-size: 14px; }
.cr-list .gp:hover { transform: none; }
.cr-strengths { margin: 10px 0 0; font: 400 15px/1.5 var(--serif); color: #f0f7ff; white-space: nowrap; }
.cr-strengths span { color: rgba(160,215,255,.8); margin: 0 .2em; }
.cr-strengths b { font-weight: inherit; white-space: nowrap; }

/* small chrome medallion (seals, list icons) */
.mm { position: relative; display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%;
  background: conic-gradient(from 210deg, #ffffff, #a8cdf0 8%, #24456f 20%, #061a38 28%, #33618f 38%, #e2f1ff 46%, #ffffff 50%, #6f98c4 60%, #0a2246 72%, #04122a 78%, #2e5a8a 88%, #ffffff);
  box-shadow: 0 0 0 1.5px #031026, 0 3px 0 #1a3150, 0 5px 0 #08142a, 0 10px 16px -4px rgba(0,4,16,.9), 0 0 18px -2px rgba(110,210,255,.6); }
.mm::before { content: ""; position: absolute; inset: 6px; border-radius: inherit; background: radial-gradient(circle at 50% 35%, #1c4b8c, #071a3c 75%); box-shadow: 0 0 0 1.5px #020b1e, inset 0 4px 7px rgba(0,0,0,.8), inset 0 -1px 0 rgba(170,220,255,.6); }
.mm.light::before { background: radial-gradient(circle at 45% 35%, #ffffff, #e4edf8 70%, #c3d4e8); }
.mm img { position: relative; z-index: 1; width: 58px; height: 58px; object-fit: contain; filter: drop-shadow(0 2px 3px rgba(0,8,30,.5)); }
.mm::after { content: ""; position: absolute; inset: 6px; z-index: 2; border-radius: inherit; pointer-events: none; background: linear-gradient(155deg, rgba(255,255,255,.55), rgba(255,255,255,.08) 38%, transparent 55%); }

/* ---------- certification medallions over a glass floor ---------- */
.cr-shelf { position: absolute; left: 600px; top: 242px; width: 930px; height: 326px; z-index: 2; }
.cr-shelf .cr-label { justify-content: flex-start; }
.cr-floor { position: absolute; left: 30px; right: 30px; top: 150px; height: 40px; pointer-events: none; perspective: 600px; }
.cr-floor::before { content: ""; position: absolute; inset: 0; border-radius: 50% / 100% 100% 0 0; transform: rotateX(62deg); transform-origin: 50% 100%;
  background: radial-gradient(ellipse 60% 120% at 50% 100%, rgba(170,230,255,.45), rgba(60,160,255,.18) 50%, transparent 80%); }
.cr-floor::after { content: ""; position: absolute; left: 3%; right: 3%; bottom: 0; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, rgba(190,240,255,.9) 15%, #fff 50%, rgba(190,240,255,.9) 85%, transparent); box-shadow: 0 0 14px rgba(140,220,255,1), 0 0 44px rgba(60,170,255,.75); }
.cr-certs { position: absolute; left: 0; right: 0; top: 34px; display: grid; grid-template-columns: repeat(4, 1fr); }
.cr-cert { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
.cr-stage3d { position: relative; width: 180px; height: 142px; perspective: 900px; display: grid; place-items: center; }
.cr-obj { position: relative; transform-style: preserve-3d; will-change: transform; }
.md { position: relative; width: 128px; height: 128px; border-radius: 50%; transform-style: preserve-3d;
  -webkit-box-reflect: below 5px linear-gradient(transparent 70%, rgba(255,255,255,.2)); }
.md.sq { width: 124px; height: 128px; border-radius: 24px; }
.md.sq.light .md-face img { object-fit: contain; width: 92%; height: 92%; }
.md-th { position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(135deg, #9db9d6, #2a4566 40%, #0a1a30 75%, #050e1c); box-shadow: 0 0 0 1px rgba(0,6,16,.8); }
.md-bezel { position: absolute; inset: 0; border-radius: inherit; transform: translateZ(0);
  background: conic-gradient(from var(--ba, 210deg), #ffffff, #a8cdf0 8%, #24456f 20%, #061a38 28%, #33618f 38%, #e2f1ff 46%, #ffffff 50%, #6f98c4 60%, #0a2246 72%, #04122a 78%, #2e5a8a 88%, #ffffff);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.7), inset 0 -3px 4px rgba(0,6,20,.6), inset 0 3px 3px rgba(255,255,255,.5), 0 0 0 1.5px #031026, 0 0 0 2.5px rgba(140,210,255,.35), 0 0 30px -4px rgba(120,215,255,.75); }
.md-face { position: absolute; inset: 9px; border-radius: inherit; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(circle at 50% 35%, #174683, #061634 75%); box-shadow: 0 0 0 2px #020b1e, 0 0 0 3px rgba(150,210,255,.4), inset 0 5px 9px rgba(0,0,0,.8), inset 0 -2px 0 rgba(180,225,255,.6); }
.md.sq .md-face { border-radius: 18px; }
.md.light .md-face { background: radial-gradient(circle at 45% 35%, #ffffff, #e9f1fa 70%, #c8d8ec); }
.md-face img { width: 88%; height: 88%; object-fit: contain; filter: drop-shadow(0 3px 5px rgba(0,8,30,.45)); }
.md.sq .md-face img { width: 100%; height: 100%; object-fit: contain; background: #f2f2f2; }
/* glass dome over the face, with a specular sweep */
.md-gloss { position: absolute; inset: 9px; border-radius: inherit; overflow: hidden; pointer-events: none;
  background: linear-gradient(150deg, rgba(255,255,255,.55), rgba(255,255,255,.1) 34%, transparent 50%), radial-gradient(ellipse 80% 40% at 50% 105%, rgba(140,220,255,.35), transparent 70%); }
.md.sq .md-gloss { border-radius: 18px; }
.md-gloss::before { content: ""; position: absolute; top: -30%; bottom: -30%; left: -70%; width: 45%; transform: skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.7), transparent); animation: md-sheen 6.5s ease-in-out infinite; animation-delay: var(--d, 0s); }
@keyframes md-sheen { 0%, 72% { left: -70%; } 100% { left: 140%; } }
.cr-shadow { position: absolute; left: 50%; bottom: -4px; width: 140px; height: 18px; transform: translateX(-50%); border-radius: 50%;
  background: radial-gradient(ellipse, rgba(0,4,16,.55), transparent 70%); pointer-events: none; }
.cr-cert h3 { margin: 20px 0 0; padding: 0 6px; font: 400 18px/1.18 var(--serif); color: #fff; text-shadow: 0 0 16px rgba(120,200,255,.5), 0 1px 6px rgba(0,8,30,.8); }
.cr-cert p { margin: 4px 0 0; font: 400 14px/1.3 var(--serif); color: rgba(220,236,252,.94); text-shadow: 0 1px 6px rgba(0,8,30,.8); }
.cr-cert .st { color: #a8f5d0; font-size: 14px; }
.cr-cert .st::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; vertical-align: 1px; background: #7df0b8; box-shadow: 0 0 8px rgba(125,240,184,.9); animation: st-pulse 2.4s ease-in-out infinite; }
@keyframes st-pulse { 50% { box-shadow: 0 0 2px rgba(125,240,184,.4); opacity: .7; } }
.cr-cert .acts { margin-top: 9px; display: flex; gap: 10px; justify-content: center; }
.cr-cert .acts .gp { height: 30px; padding: 0 12px; font-size: 13.5px; }

/* ---------- console ---------- */
.cr-console { left: 600px; top: 590px; width: 930px; height: 346px; --sw: 4.5s; }
.cr-console .lg-in { display: flex; flex-direction: column; padding: 22px 34px 16px; }
.cr-tabs { position: relative; z-index: 1; display: flex; gap: 10px; padding: 0 2px 12px; border-bottom: 1px solid rgba(170,225,255,.22); }
.cr-tabs .gp { height: 36px; padding: 0 18px; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; }
.cr-tabs .gp span { font-size: 12.5px; letter-spacing: 0; color: rgba(190,232,255,.85); }
.cr-panel { position: relative; z-index: 1; flex: 1; min-height: 0; padding: 8px 0 8px; overflow-y: auto; display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: min-content; gap: 2px 22px; align-content: start;
  scrollbar-width: thin; scrollbar-color: rgba(150,210,255,.5) transparent; -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 16px), transparent); mask-image: linear-gradient(180deg, #000 calc(100% - 16px), transparent); }
.cr-item { display: grid; grid-template-columns: 52px 1fr auto; align-items: start; gap: 12px; padding: 6px 8px; border-radius: 12px; animation: cr-in .4s cubic-bezier(.2,.8,.2,1) backwards; animation-delay: calc(var(--i) * 35ms); transition: background .2s; }
.cr-item:hover { background: linear-gradient(90deg, rgba(120,200,255,.14), rgba(120,200,255,.02)); box-shadow: inset 0 0 0 1px rgba(170,225,255,.18); }
@keyframes cr-in { from { opacity: 0; transform: translateY(6px); } }
.cr-item .mm { width: 44px; height: 44px; justify-self: center; box-shadow: 0 0 0 1px rgba(10,24,44,.8), 0 2px 0 #1d3554, 0 6px 10px -3px rgba(0,4,16,.85), 0 0 14px -2px rgba(110,210,255,.7); }
.cr-item .mm::before, .cr-item .mm::after { inset: 4px; }
.cr-item .mm img { width: 32px; height: 32px; }
.cr-item .mm svg { position: relative; z-index: 1; width: 20px; height: 20px; fill: none; stroke: rgba(210,238,255,.95); stroke-width: 1.4; stroke-linejoin: round; }
.cr-item b { display: block; font: 400 15.5px/1.2 var(--serif); color: #fff; }
.cr-item i { display: block; margin-top: 2px; font: normal 400 13px/1.3 var(--serif); color: rgba(200,224,248,.9); }
.cr-item em { display: block; margin-top: 4px; font: normal 400 13.5px/1.36 var(--serif); color: rgba(236,245,255,.95); }
.cr-docs { display: flex; gap: 6px; }
.cr-doc { all: unset; cursor: pointer; width: 52px; height: 38px; border-radius: 6px; overflow: hidden; position: relative; transition: transform .18s, box-shadow .18s;
  box-shadow: 0 0 0 1.5px rgba(220,240,255,.85), 0 0 0 3px rgba(40,90,150,.6), 0 5px 10px rgba(0,4,14,.6), 0 0 12px rgba(110,210,255,.5); }
.cr-doc img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; display: block; }
.cr-doc::after { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(255,255,255,.45), transparent 45%); }
.cr-doc:hover, .cr-doc:focus-visible { transform: translateY(-2px) scale(1.07); box-shadow: 0 0 0 1.5px #fff, 0 0 0 3px rgba(80,170,255,.8), 0 0 20px rgba(120,215,255,.95); }

.pp-foot { top: 962px; }

/* ---------- certificate viewer ---------- */
.cr-view { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; }
.cr-view[hidden] { display: none; }
.cr-view-bg { position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(4,20,52,.65), rgba(1,5,16,.88)); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); animation: cr-fade .3s; }
.cr-view-glass { position: relative; margin: 0; padding: 26px 26px 18px; max-width: min(1100px, 92vw); border-radius: 26px; animation: cr-pop .4s cubic-bezier(.2,.8,.2,1);
  background: linear-gradient(180deg, rgba(70,160,240,.45), rgba(14,52,110,.6) 50%, rgba(40,120,210,.55));
  box-shadow: inset 0 2px 0 rgba(255,255,255,.95), inset 0 0 0 1px rgba(200,240,255,.7), inset 0 0 26px 4px rgba(110,210,255,.55), 0 0 0 1.5px rgba(150,220,255,.85), 0 0 18px 2px rgba(110,210,255,.9), 0 30px 80px -10px rgba(0,3,12,.9); }
.cr-view-glass img { position: relative; display: block; max-width: 100%; max-height: 76vh; border-radius: 10px; box-shadow: 0 0 0 1px rgba(255,255,255,.6), 0 10px 30px rgba(0,4,16,.6); }
.cr-view-glass figcaption { position: relative; margin-top: 14px; text-align: center; font: 400 15px/1.4 Georgia, serif; color: #f0f7ff; }
.cr-x.gp { position: absolute; z-index: 2; right: -14px; top: -14px; width: 40px; height: 40px; padding: 0; border-radius: 50%; font: 400 24px/1 Georgia, serif; }
@keyframes cr-fade { from { opacity: 0; } }

/* ---------- phones and portrait tablets ---------- */
.pp-compact .cr-light, .pp-compact .cr-world { display: none; }
.pp-compact .pp-stage { position: relative; width: auto; height: auto; padding: 96px 16px 20px; }
.pp-compact .cr-identity, .pp-compact .cr-degree, .pp-compact .cr-shelf, .pp-compact .cr-console, .pp-compact .cr-note { position: relative; left: auto; top: auto; width: auto; height: auto; }
.pp-compact .cr-identity h1 { font-size: 44px; } .pp-compact .cr-lede { width: auto; font-size: 17px; }
.pp-compact .cr-degree { margin-top: 22px; }
.pp-compact .cr-shelf { margin-top: 30px; } .pp-compact .cr-floor { display: none; }
.pp-compact .cr-certs { position: static; grid-template-columns: 1fr; gap: 26px; margin-top: 18px; }
.pp-compact .cr-console { margin-top: 40px; }
.pp-compact .cr-panel { grid-template-columns: 1fr; max-height: none; }
.pp-compact .cr-seals { grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (prefers-reduced-motion: reduce) { .md-gloss::before, .lg-screen::before, .cr-item, .cr-note, .cr-view-glass, .cr-cert .st::before { animation: none; } }
.mm.fill img { width: 66px; height: 66px; }
/* a badge that is already its own shape stands free, lit and shadowed, no frame */
.bdg { width: 52px; height: 52px; display: grid; place-items: center; justify-self: center; }
.bdg img { width: 52px; height: 52px; object-fit: contain; filter: drop-shadow(0 4px 5px rgba(0,4,16,.75)) drop-shadow(0 0 8px rgba(120,210,255,.45)); transition: transform .3s; }
.cr-item:hover .bdg img { transform: scale(1.12) rotate(-4deg); }
.cr-panel[data-tab="competitions"] .cr-item { grid-template-columns: 70px 1fr auto; }
.cr-panel[data-tab="competitions"] .bdg, .cr-panel[data-tab="competitions"] .bdg img { width: 70px; height: 70px; }
.cr-panel[data-tab="competitions"] .mm { width: 56px; height: 56px; }

/* thick metallic glass frame around each big card: chrome lit from the top left, midnight toward the bottom right,
   a slab edge on the lower right for thickness, and a slow light that travels around the metal */
.lg-frame { position: absolute; inset: -18px; border-radius: 44px; transform: translateZ(-3px); pointer-events: none;
  background:
    linear-gradient(135deg, rgba(255,255,255,.95) 0%, rgba(200,232,255,.85) 7%, rgba(110,170,230,.75) 18%, rgba(40,90,160,.7) 34%, rgba(14,40,86,.85) 52%, rgba(5,18,44,.95) 70%, rgba(20,56,110,.9) 86%, rgba(130,200,255,.85) 100%),
    repeating-linear-gradient(115deg, rgba(255,255,255,.06) 0 2px, transparent 2px 5px);
  -webkit-backdrop-filter: blur(10px) saturate(150%); backdrop-filter: blur(10px) saturate(150%);
  box-shadow:
    inset 0 2px 0 rgba(255,255,255,.95), inset 2px 0 0 rgba(235,248,255,.7), inset 0 -3px 0 rgba(1,8,24,.9), inset -3px 0 0 rgba(2,12,32,.8),
    inset 0 0 0 1px rgba(190,230,255,.35), inset 0 0 12px rgba(120,200,255,.35),
    0 0 0 1.5px rgba(2,10,28,.95), 0 0 0 2.5px rgba(150,215,255,.45),
    6px 8px 0 -1px #0b2346, 7px 9px 0 -1px rgba(120,190,255,.35), 12px 18px 30px rgba(0,3,12,.85), 0 0 34px rgba(80,180,255,.45); }
.lg-frame i { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; }
.lg-frame i::before { content: ""; position: absolute; inset: -60%; background: conic-gradient(from 0deg, transparent 0 80%, rgba(220,248,255,.85) 86%, transparent 92%);
  animation: lg-orbit 8s linear infinite; animation-delay: var(--sw, 0s); }
.lg-frame i::after { content: ""; position: absolute; inset: 16px; border-radius: 30px; background: #000; }
.lg-frame i { -webkit-mask: radial-gradient(#000, #000); }
@keyframes lg-orbit { to { transform: rotate(360deg); } }

/* ---------- the 3D scene owns every surface; CSS keeps only the text and the layout boxes ---------- */
.cr-gl-canvas { position: absolute; left: 0; top: 0; width: 1586px; height: 992px; display: none; }
.cr-gl .cr-gl-canvas { display: block; }
.cr-gl .cr-world, .cr-gl .cr-light, .cr-gl .pp-fx, .cr-gl .cr-floor { display: none; }
.cr-gl .lg { background: none; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; }
.cr-gl .lg::before, .cr-gl .lg-screen, .cr-gl .lg-glint, .cr-gl .lg-frame, .cr-gl .lg-base { display: none; }
.cr-gl .gp, .cr-gl .gp:hover, .cr-gl .gp:focus-visible, .cr-gl .gp[aria-selected="true"] { background: none; box-shadow: none; transform: none; }
.cr-gl .gp::after { display: none; }
.cr-gl .gp:focus-visible { outline: 2px solid rgba(235,245,255,.85); outline-offset: 3px; }
.cr-gl .mm, .cr-gl .mm.light { background: none; box-shadow: none; }
.cr-gl .mm::before, .cr-gl .mm::after { display: none; }
.cr-gl .mm img, .cr-gl .mm svg, .cr-gl .bdg img, .cr-gl .cr-doc img, .cr-gl .cr-obj, .cr-gl .cr-shadow { visibility: hidden; }
.cr-gl .cr-doc, .cr-gl .cr-doc:hover, .cr-gl .cr-doc:focus-visible { box-shadow: none; transform: none; }
.cr-gl .cr-doc::after { display: none; }
.cr-gl .cr-item:hover { background: none; box-shadow: none; }
.cr-gl .cr-panel { -webkit-mask-image: none; mask-image: none; }

/* light sky-blue glass variant (preview only, ?light): dark navy text on frosted near-white glass */
.cr-light-glass .lg .cr-label { color: #1b4f8f; text-shadow: none; }
.cr-light-glass .cr-school, .cr-light-glass .cr-date, .cr-light-glass .cr-seals li, .cr-light-glass .cr-item i { color: #2c4a72; }
.cr-light-glass .cr-deg, .cr-light-glass .cr-item b, .cr-light-glass .cr-strengths { color: #0a1f44; text-shadow: none; }
.cr-light-glass .cr-item em { color: #1d365e; }
.cr-light-glass .cr-honors { background: linear-gradient(180deg, #b97a2c, #8a5414); -webkit-background-clip: text; background-clip: text; filter: none; }
.cr-light-glass .cr-dl { color: #7a4f1c; }
.cr-light-glass .cr-strengths span { color: #4d7fbf; }
.cr-light-glass .cr-rule { background: linear-gradient(90deg, rgba(40,100,180,.45), rgba(40,100,180,.05)); box-shadow: none; }
.cr-light-glass .cr-tabs { border-color: rgba(30,80,150,.25); }

/* slightly milky glass: the small lines are brighter and carry a soft shadow so they stay crisp on the silver-blue glass */
.cr-gl .lg .cr-school, .cr-gl .lg .cr-date, .cr-gl .lg .cr-seals li, .cr-gl .lg .cr-item i { color: rgba(236,245,255,.96); text-shadow: 0 1px 2px rgba(0,10,32,.55); }
.cr-gl .lg .cr-item b, .cr-gl .lg .cr-item em, .cr-gl .lg .cr-deg, .cr-gl .lg .cr-strengths { text-shadow: 0 1px 3px rgba(0,10,32,.55); }
.cr-gl .lg .cr-label { color: #e4f3ff; text-shadow: 0 0 10px rgba(40,140,255,.6), 0 1px 2px rgba(0,10,32,.6); }
.cr-gl .lg .cr-honors { filter: drop-shadow(0 1px 2px rgba(0,10,32,.6)); }

/* NSLS Verify buttons in the console list (2026-11-13) */
.cr-docs .cr-verify { height: 30px; padding: 0 12px; font-size: 13.5px; align-self: center; text-decoration: none; }
