/* ═══════════════════════════════════════════════════════════════════════
   BuNPartener — 3D awards
   Every award is a real CSS 3D object (front, edges, back) built by
   awards.js. Sizes inside an award are in `em`, where 1em = 1% of the
   object's width (awards.js keeps font-size in sync with the width), so
   the whole object scales cleanly at any size.
   ═══════════════════════════════════════════════════════════════════════ */

.aw3d {
  --aw-tilt-x: 0deg; --aw-tilt-y: 0deg;
  --aw-gx: 30%; --aw-gy: 20%;
  position: relative; display: block; width: 100%;
  cursor: pointer; outline: none;
  -webkit-tap-highlight-color: transparent;
  user-select: none; -webkit-user-select: none;
}
.aw3d:focus-visible .aw-obj { outline: 2px solid #3b6ef6; outline-offset: 6px; }

.aw-stage { position: relative; width: 100%; perspective: 1600px; perspective-origin: 50% 40%; }
.aw-sizer { width: 100%; }               /* holds the aspect ratio of the object */

.aw-tilt, .aw-float, .aw-obj, .aw-obj * { transform-style: preserve-3d; }
.aw-tilt {
  position: absolute; inset: 0;
  transform: rotateX(var(--aw-tilt-x)) rotateY(var(--aw-tilt-y));
  transition: transform .7s cubic-bezier(.2,.8,.2,1);
}
.aw3d.is-live .aw-tilt { transition: transform .12s linear; }
.aw-float { position: absolute; inset: 0; animation: aw-sway 9s ease-in-out infinite; animation-delay: var(--aw-delay, 0s); }
.aw3d:hover .aw-float, .aw3d.is-live .aw-float { animation-play-state: paused; }
@keyframes aw-sway {
  0%, 100% { transform: rotateY(-5deg) rotateX(2deg) translateZ(0); }
  50%      { transform: rotateY(5deg)  rotateX(-1.5deg) translateZ(1.2em); }
}
@media (prefers-reduced-motion: reduce) {
  .aw-float { animation: none; }
  .aw-tilt { transition: none; }
}

.aw-obj { position: absolute; left: 0; top: 0; width: 100em; }
.aw-obj > * { position: absolute; }

/* soft shadow cast on the wall behind */
.aw-shadow {
  left: 4em; right: 4em; top: 5em; bottom: 0;
  background: rgba(8,14,30,.55); filter: blur(3.2em);
  border-radius: 3em;
  transform: translateZ(calc(var(--aw-z) - var(--aw-d) - 2.5em)) translateY(4em);
  transition: opacity .4s;
}
.aw3d.aw3d-on-dark .aw-shadow { background: rgba(0,0,0,.75); }

/* edges ----------------------------------------------------------------- */
.aw-side { display: block; }
.aw-side.t, .aw-side.b { left: 0; width: 100%; height: var(--aw-d); }
.aw-side.l, .aw-side.r { top: 0; height: 100%; width: var(--aw-d); }
.aw-side.t { top: 0;    transform-origin: 50% 0;    transform: translateZ(var(--aw-z)) rotateX(-90deg); }
.aw-side.b { bottom: 0; transform-origin: 50% 100%; transform: translateZ(var(--aw-z)) rotateX(90deg); }
.aw-side.l { left: 0;   transform-origin: 0 50%;    transform: translateZ(var(--aw-z)) rotateY(90deg); }
.aw-side.r { right: 0;  transform-origin: 100% 50%; transform: translateZ(var(--aw-z)) rotateY(-90deg); }
.aw-back {
  inset: 0; transform: translateZ(calc(var(--aw-z) - var(--aw-d))) rotateY(180deg);
  backface-visibility: hidden;
}
.aw-front { inset: 0; backface-visibility: hidden; }

/* glass with moving glare ------------------------------------------------ */
.aw-glass {
  pointer-events: none; overflow: hidden;
  transform: translateZ(.35em);
  background:
    radial-gradient(60em 40em at var(--aw-gx) var(--aw-gy), rgba(255,255,255,.22), rgba(255,255,255,0) 60%),
    linear-gradient(115deg, rgba(255,255,255,0) 30%, rgba(255,255,255,.10) 42%, rgba(255,255,255,0) 52%);
}

/* ═══ FRAMES ══════════════════════════════════════════════════════════ */
.aw-mould { inset: 0; }
.aw-mould i { position: absolute; inset: 0; display: block; }
/* four bevelled strips, each lit as if the light came from the upper left */
.aw-mould .mt { clip-path: polygon(0 0, 100% 0, calc(100% - var(--aw-f)) var(--aw-f), var(--aw-f) var(--aw-f)); }
.aw-mould .mb { clip-path: polygon(var(--aw-f) calc(100% - var(--aw-f)), calc(100% - var(--aw-f)) calc(100% - var(--aw-f)), 100% 100%, 0 100%); }
.aw-mould .ml { clip-path: polygon(0 0, var(--aw-f) var(--aw-f), var(--aw-f) calc(100% - var(--aw-f)), 0 100%); }
.aw-mould .mr { clip-path: polygon(100% 0, 100% 100%, calc(100% - var(--aw-f)) calc(100% - var(--aw-f)), calc(100% - var(--aw-f)) var(--aw-f)); }

.aw-grain i::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 7em 7em; mix-blend-mode: multiply; opacity: .7;
}

/* antique gold (2019 / 2023) — ornate profile with ridges & speckle */
.fr-antique .mt { background: linear-gradient(180deg, #6b4d16 0, #f6dc8a 7%, #b8862e 14%, #fbe9a6 24%, #9a6c1f 33%, #d9b45c 46%, #f7e3a0 58%, #8d6219 70%, #c99a3f 82%, #4a3208 100%); }
.fr-antique .ml { background: linear-gradient(90deg,  #6b4d16 0, #f3d27c 7%, #b0802a 14%, #f6e19a 24%, #93671c 33%, #d2ab53 46%, #efd88f 58%, #866017 70%, #c3953a 82%, #463006 100%); }
.fr-antique .mb { background: linear-gradient(0deg,   #3e2a06 0, #b8892f 7%, #7a5513 14%, #d3b062 24%, #6e4c0f 33%, #a98336 46%, #caa75a 58%, #6a4810 70%, #a37a2a 82%, #3a2705 100%); }
.fr-antique .mr { background: linear-gradient(270deg, #3e2a06 0, #c09337 7%, #80591a 14%, #d9b868 24%, #73500f 33%, #b08939 46%, #d0ad60 58%, #6d4a10 70%, #a97f2d 82%, #3a2705 100%); }
.fr-antique .aw-side { background: linear-gradient(90deg, #5c410f, #a77b2a 40%, #6e4d12); }
.fr-antique .aw-side.l, .fr-antique .aw-side.r { background: linear-gradient(180deg, #5c410f, #a77b2a 40%, #6e4d12); }

/* thin brushed champagne gold (2025) */
.fr-brushed .mt { background: linear-gradient(180deg, #6d5a33, #efe0b4 22%, #fff6da 38%, #d6bf86 60%, #a68c55 85%, #5b4a28); }
.fr-brushed .ml { background: linear-gradient(90deg,  #6d5a33, #e9d8a9 22%, #fbf0cf 38%, #cfb77d 60%, #9f8550 85%, #5b4a28); }
.fr-brushed .mb { background: linear-gradient(0deg,   #3f3219, #a88f5b 22%, #cdb684 38%, #9a8150 60%, #74603a 85%, #3a2e17); }
.fr-brushed .mr { background: linear-gradient(270deg, #3f3219, #b09764 22%, #d6c08e 38%, #a08653 60%, #77633c 85%, #3a2e17); }
.fr-brushed .aw-mould i::after {
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 .1em, rgba(0,0,0,.035) .1em .22em);
}
.fr-brushed .ml::after, .fr-brushed .mr::after { background: repeating-linear-gradient(0deg, rgba(255,255,255,.05) 0 .1em, rgba(0,0,0,.035) .1em .22em) !important; }
.fr-brushed .aw-side { background: linear-gradient(90deg, #5b4a28, #c9b27a 45%, #6d5a33); }
.fr-brushed .aw-side.l, .fr-brushed .aw-side.r { background: linear-gradient(180deg, #5b4a28, #c9b27a 45%, #6d5a33); }

/* dark wood (IEFS-USM diploma) */
.fr-wood .mt { background: repeating-linear-gradient(90deg, rgba(255,255,255,.04) 0 .6em, rgba(0,0,0,.08) .6em 1.1em), linear-gradient(180deg, #2d241d, #6c5a4a 22%, #4a3c31 55%, #231b15); }
.fr-wood .ml { background: repeating-linear-gradient(0deg, rgba(255,255,255,.04) 0 .6em, rgba(0,0,0,.08) .6em 1.1em), linear-gradient(90deg, #2d241d, #685645 22%, #463a2f 55%, #231b15); }
.fr-wood .mb { background: repeating-linear-gradient(90deg, rgba(255,255,255,.03) 0 .6em, rgba(0,0,0,.08) .6em 1.1em), linear-gradient(0deg, #17110c, #45382d 22%, #322820 55%, #17110c); }
.fr-wood .mr { background: repeating-linear-gradient(0deg, rgba(255,255,255,.03) 0 .6em, rgba(0,0,0,.08) .6em 1.1em), linear-gradient(270deg, #17110c, #4a3c31 22%, #352a22 55%, #17110c); }
.fr-wood .aw-side { background: linear-gradient(90deg, #1f1712, #4a3b2f 45%, #261d16); }
.fr-wood .aw-side.l, .fr-wood .aw-side.r { background: linear-gradient(180deg, #1f1712, #4a3b2f 45%, #261d16); }

/* inner opening (mat / artwork area) */
.aw-open {
  overflow: hidden;
  box-shadow: inset .5em .6em 1.1em rgba(0,0,0,.55), inset -.15em -.15em .4em rgba(0,0,0,.35);
}
.aw-open::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  box-shadow: inset .6em .7em 1.2em rgba(0,0,0,.45); z-index: 3; }

.mat-honeycomb {
  background-color: #121212;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='48.5' viewBox='0 0 28 48.5'%3E%3Cg fill='none' stroke='%23303030' stroke-width='2.2'%3E%3Cpath d='M14 0 L28 8.08 L28 24.25 L14 32.33 L0 24.25 L0 8.08 Z'/%3E%3Cpath d='M14 32.33 L14 48.5 M0 24.25 L-14 32.33 M28 24.25 L42 32.33'/%3E%3C/g%3E%3C/svg%3E"),
    radial-gradient(ellipse at 50% 35%, #232323, #0a0a0a 80%);
  background-size: 2.6em 4.5em, 100% 100%;
}
.mat-bronze {
  background:
    radial-gradient(4.5em 4.5em at 22% 88%, rgba(255,198,110,.55), rgba(255,198,110,0) 70%),
    radial-gradient(6em 6em at 47% 92%, rgba(255,210,130,.45), rgba(255,210,130,0) 70%),
    radial-gradient(5em 5em at 74% 86%, rgba(255,190,100,.4), rgba(255,190,100,0) 70%),
    radial-gradient(3em 3em at 90% 95%, rgba(255,200,120,.35), rgba(255,200,120,0) 70%),
    radial-gradient(10em 6em at 9% 74%, rgba(255,220,150,.55), rgba(255,220,150,0) 70%),
    radial-gradient(10em 6em at 91% 74%, rgba(255,220,150,.55), rgba(255,220,150,0) 70%),
    linear-gradient(180deg, #a5541e 0%, #8a4519 20%, #5c3016 55%, #2c160b 80%, #1a0d07 100%);
}
.mat-bronze .gl { position: absolute; display: block; }

.aw-back.board { background: #6e5436 linear-gradient(135deg, rgba(255,255,255,.06), rgba(0,0,0,.18)); }
.aw-back.board::before { content: ''; position: absolute; left: 50%; top: 8%; width: 18em; height: 2.2em; margin-left: -9em;
  background: repeating-linear-gradient(90deg, #a9a9a9 0 .6em, #6d6d6d .6em 1.2em); border-radius: .3em; }
.aw-back.board::after { content: ''; position: absolute; inset: 6em; border: .25em dashed rgba(0,0,0,.18); border-radius: .6em; }

/* paper / document faces ------------------------------------------------ */
.aw-doc { position: absolute; overflow: hidden; }
.aw-doc > * { position: absolute; margin: 0; }
.aw-front > *, .sh-plate > *, .doc-notorium-d .card > * { position: absolute; }
.aw-doc img, .aw-front img, .sh-plate img { position: absolute; display: block; max-width: none; height: auto; pointer-events: none; }
.aw-txt { white-space: nowrap; line-height: 1.25; }
.aw-c { left: 0; right: 0; text-align: center; }

/* Notorium Trademark (white paper with a gold band) */
.doc-notorium-w {
  font-family: 'Montserrat', 'DM Sans', system-ui, sans-serif; color: #2b2b2b;
  background: #fbfaf6;
  box-shadow: 0 .5em 1.4em rgba(0,0,0,.45);
}
.doc-notorium-w::before { content: ''; position: absolute; inset: 0; z-index: 0;
  border: 2.6em solid transparent;
  border-image: linear-gradient(135deg, #8d6a22, #e9cd7d 22%, #b28b3a 42%, #f1dc97 60%, #a07a2c 78%, #d8b867) 1;
}
.doc-notorium-w::after { content: ''; position: absolute; inset: 2.6em; background: linear-gradient(160deg, #fffefb, #f6f3ea); z-index: 0; }
.doc-notorium-w > * { z-index: 1; }
.doc-notorium-w .h { font-weight: 700; font-size: 5.3em; letter-spacing: .01em; color: #262626; line-height: 1.22; }
.doc-notorium-w .p { font-size: 2.05em; line-height: 1.62; color: #303030; }
.doc-notorium-w .p b { font-weight: 700; }
.doc-notorium-w .s { font-size: 1.62em; line-height: 1.3; color: #333; }
.doc-notorium-w .f { font-size: 1.72em; line-height: 1.22; color: #2e2e2e; }

/* Notorium Brand Awards 2025 (dark, gold sparkle) */
.doc-notorium-d {
  font-family: 'Montserrat', 'DM Sans', system-ui, sans-serif; color: #f4efe6;
  background:
    radial-gradient(70em 30em at 50% 100%, rgba(125,72,30,.55), rgba(0,0,0,0) 70%),
    radial-gradient(40em 18em at 15% 96%, rgba(190,120,50,.35), rgba(0,0,0,0) 70%),
    linear-gradient(180deg, #1a1614 0%, #141110 45%, #19120d 75%, #2a1a10 100%);
}
.doc-notorium-d .spark { position: absolute; border-radius: 50%; background: #ffd892; box-shadow: 0 0 .5em rgba(255,200,110,.9); }
.doc-notorium-d .h { font-weight: 700; font-size: 3.85em; letter-spacing: .015em; }
.doc-notorium-d .p { font-size: 1.88em; line-height: 1.55; font-weight: 500; }
.doc-notorium-d .k { font-size: 2.1em; font-weight: 700; letter-spacing: .07em; line-height: 1.33; }
.doc-notorium-d .s { font-size: 1.55em; line-height: 1.25; font-weight: 500; }
.doc-notorium-d .f { font-size: 1.72em; line-height: 1.5; font-weight: 500; }
.doc-notorium-d .card { background: #f4f3f1; border-radius: 2.4em; box-shadow: 0 .4em 1.6em rgba(0,0,0,.6); }
.aw-intel { background: #c4161c; color: #fff; font-family: 'Montserrat', sans-serif; font-weight: 800; text-align: center; letter-spacing: .02em; }
.aw-intel small { position: absolute; left: 0; right: 0; top: .35em; font-size: .3em; font-weight: 600; letter-spacing: 0; text-align: right; padding-right: 22%; opacity: .9; }

/* IEFS-USM diploma */
/* ═══ BRASS PLAQUE (ARSP) ═════════════════════════════════════════════ */
.pl-face {
  inset: 0; overflow: hidden; border-radius: .25em;
  font-family: 'Tinos', 'Times New Roman', Times, serif; color: #1f2124;
  background:
    linear-gradient(100deg, rgba(255,255,255,0) 20%, rgba(255,250,220,.35) 34%, rgba(255,255,255,0) 46%),
    repeating-linear-gradient(0deg, rgba(255,255,255,.05) 0 .09em, rgba(80,60,10,.05) .09em .21em),
    linear-gradient(165deg, #cbb56d 0%, #e5d39a 18%, #bfa55a 38%, #d8c27f 55%, #b19650 75%, #cdb873 100%);
  box-shadow: inset 0 0 0 .2em rgba(255,246,206,.45), inset 0 0 0 .38em rgba(120,95,30,.35);
}
.pl-face .aw-txt { text-shadow: 0 .03em 0 rgba(255,246,210,.55), 0 -.02em 0 rgba(0,0,0,.25); }
.pl-face img { position: absolute; filter: drop-shadow(0 .05em 0 rgba(255,246,210,.45)); }
.pl-face .h { font-weight: 700; font-size: 2.72em; letter-spacing: .055em; color: #2a2b2c; }
.pl-face .i { font-style: italic; font-size: 2.06em; }
.pl-face .n { font-weight: 700; font-style: italic; font-size: 3.3em; letter-spacing: .01em; }
.pl-face .p { font-style: italic; font-size: 2.02em; line-height: 1.2; }
.pl-edge { background: linear-gradient(90deg, #7e6a2c, #e2d08d 40%, #8c7633); }
.aw-side.l.pl-edge, .aw-side.r.pl-edge { background: linear-gradient(180deg, #7e6a2c, #e2d08d 40%, #8c7633); }
.aw-back.pl-back { background: linear-gradient(160deg, #8f7c42, #6b5c2c); border-radius: .25em; }

/* ═══ SHIELD (Notorium Brand Awards) ══════════════════════════════════ */
.sh-slab { inset: 0; display: block; }
.sh-wood { background: linear-gradient(100deg, #2b1a14 0%, #5a3a2c 22%, #3d271e 60%, #24160f 100%); }
.sh-acr {
  background:
    radial-gradient(30em 18em at 22% 40%, rgba(255,255,255,.12), rgba(255,255,255,0) 70%),
    linear-gradient(120deg, rgba(255,255,255,0) 40%, rgba(255,255,255,.07) 47%, rgba(255,255,255,0) 54%),
    linear-gradient(180deg, #121212, #050505 60%, #0b0b0b);
}
.sh-acr-edge { background: #0a0a0a; }
.sh-plate {
  background: linear-gradient(170deg, #d6b86c, #f3df9e 30%, #d4b465 55%, #e9d28c 80%, #c7a85c);
  box-shadow: inset 0 0 0 .15em rgba(255,240,190,.5), 0 .3em .6em rgba(0,0,0,.5);
  font-family: Arial, Helvetica, 'DM Sans', sans-serif; color: #141414; text-align: center;
}
.sh-plate .wm { position: absolute; background: #161616; -webkit-mask-size: 100% 100%; mask-size: 100% 100%; }
.sh-plate .nbox { position: absolute; background: #2b2724; border-radius: .9em; box-shadow: inset 0 0 0 .22em #8f7a4e; color: #d7bd7d; font-family: 'Montserrat', sans-serif; font-weight: 600; }
.sh-plate .nbox b { position: absolute; left: 0; right: 0; top: 50%; text-align: center; font-size: 4.2em; line-height: 1; transform: translateY(-50%); font-weight: 600; }
.sh-plate .nbox s { position: absolute; right: 1.25em; top: 1em; font-size: 1.25em; line-height: 1; text-decoration: none; }
.sh-plate .t1 { font-weight: 700; font-size: 3.5em; letter-spacing: .005em; transform: scaleY(1.05); }
.sh-plate .t2 { font-weight: 700; font-size: 2.62em; letter-spacing: -.005em; }
.sh-hole {
  background: radial-gradient(ellipse at 40% 25%, #0e0e0e, #000 70%);
  box-shadow: none;
}
.sh-hole-rim { background: linear-gradient(160deg, #262626, #050505 55%, #1d1d1d); }
.sh-intel { font-family: 'Montserrat', Arial, sans-serif; color: #fff; white-space: nowrap; transform-origin: 0 100%; }
.sh-intel b { font-weight: 800; font-size: 4.9em; letter-spacing: -.01em; }
.sh-intel small { font-weight: 700; font-size: 1.7em; position: absolute; right: 0; top: -1.1em; }

/* ═══ LIGHTBOX ════════════════════════════════════════════════════════ */
.awlb {
  position: fixed; inset: 0; z-index: 100000; display: none;
  background: radial-gradient(ellipse at 50% 40%, #1b2a4d 0%, #0b1428 60%, #060b17 100%);
  color: #fff; font-family: 'DM Sans', system-ui, sans-serif;
  touch-action: none;
}
.awlb.open { display: flex; flex-direction: column; }
.awlb-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px clamp(16px, 3vw, 28px); }
.awlb-title { font-family: 'Cormorant Garamond', Georgia, serif; font-size: clamp(20px, 2.6vw, 28px); font-weight: 600; line-height: 1.15; }
.awlb-sub { font-size: 13px; color: rgba(255,255,255,.55); margin-top: 3px; }
.awlb-btns { display: flex; gap: 8px; flex-shrink: 0; }
.awlb-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px;
  border-radius: 999px; border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.06);
  color: #fff; font: 600 13px 'DM Sans', system-ui, sans-serif; cursor: pointer; transition: background .2s, border-color .2s;
}
.awlb-btn:hover { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.4); }
.awlb-btn.icon { width: 38px; padding: 0; justify-content: center; }
.awlb-btn svg { width: 16px; height: 16px; }
.awlb-body { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 8px 20px 12px; cursor: grab; }
.awlb-body:active { cursor: grabbing; }
.awlb-holder { position: relative; }
.awlb-holder .aw3d { cursor: inherit; }
.awlb-photo { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; box-shadow: 0 20px 60px rgba(0,0,0,.6); display: none; }
.awlb.show-photo .awlb-photo { display: block; }
.awlb.show-photo .awlb-holder { display: none; }
.awlb.show-photo .awlb-body { cursor: default; }
.awlb-hint { text-align: center; font-size: 12px; letter-spacing: .06em; color: rgba(255,255,255,.45); padding: 0 16px 18px; }
.awlb.show-photo .awlb-hint { visibility: hidden; }
@media (max-width: 640px) {
  .awlb-top { flex-wrap: wrap; }
  .awlb-btn .lbl { display: none; }
  .awlb-btn:not(.icon) { width: 38px; padding: 0; justify-content: center; }
}
