/* =========================================================
   Awards - page styles  (awards.html)
   Shared styles live in css/style.css.
   ========================================================= */

:root { --ink: #0b1220; --paper: #f5f3ee; }
/* ---- hero: a little taller; it stays put while the awards section slides up over it (same as About Us) ---- */
.page-hero {
  position: sticky; top: 0; z-index: 0; overflow: hidden; background: #000;
  display: flex; align-items: flex-end; min-height: 46svh;
}
@media (min-width: 768px) { .page-hero { min-height: 60svh; } }
.page-hero > .ph-bg { position: absolute; inset: 0; transform-origin: 70% 45%; will-change: transform; background-color: #000;
  background-image: linear-gradient(90deg, rgba(0,0,0,.6) 0%, rgba(0,0,0,.35) 30%, rgba(0,0,0,0) 55%), url('../../image/awards-bg.png');
  background-size: cover; background-repeat: no-repeat;
  /* phones: the banner's hexagons sit at its far ends and the middle is plain black, so show the right-hand cluster */
  background-position: 0 0, 100% center; }
/* wider screens: show the whole banner width so the hexagons at both ends stay visible (its own background is black) */
@media (min-width: 768px) {
  .page-hero > .ph-bg { background: #000; }
  /* the banner strip, full width, with its top and bottom edges faded into black */
  .page-hero > .ph-bg::before { content: ""; position: absolute; left: 0; right: 0; top: 46%; transform: translateY(-50%);
    aspect-ratio: 2048 / 388; background: url('../../image/awards-bg.png') center / 100% 100% no-repeat;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,.35) 15%, #000 38%, #000 58%, rgba(0,0,0,.35) 82%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,.35) 15%, #000 38%, #000 58%, rgba(0,0,0,.35) 82%, transparent 100%); }
  /* darken the left side behind the text */
  .page-hero > .ph-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.7) 0%, rgba(0,0,0,.4) 32%, rgba(0,0,0,0) 58%); }
}
.page-hero > .ph-dim { position: absolute; inset: 0; background: #000; opacity: 0; pointer-events: none; }
/* melt the hero into the black awards section below (no seam) */
.page-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 22%; pointer-events: none; background: linear-gradient(180deg, transparent, #050505); }
.page-hero > .ph-inner { position: relative; z-index: 1; width: 100%; will-change: transform, opacity; }
.ph-fade { animation: ph-fade .8s cubic-bezier(.22,.61,.36,1) both; animation-delay: var(--d, .1s); }
@keyframes ph-fade { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
/* everything after the hero slides over it */
.aw-sheet { position: relative; z-index: 2; background: #050505; box-shadow: 0 -24px 40px -20px rgba(0,0,0,.9); }
@media (prefers-reduced-motion: reduce) { .ph-fade { animation: none; } }
.crumb a:hover { color: var(--brand-gold); }

/* ---------- AWARDS (dark stage) ---------- */
.stage { position: relative; overflow: hidden; background: #050505;
  background-image: radial-gradient(48rem 24rem at 90% 35%, rgba(245,184,46,.06), transparent 60%), radial-gradient(40rem 22rem at -5% 60%, rgba(255,255,255,.04), transparent 60%); }
/* whole-section background: long straight vertical white lines, fading out towards the bottom */
.stage::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(90deg, rgba(255,255,255,.09) 1px, transparent 1px); background-size: 72px 100%; background-position: center top;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 12%, #000 55%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0%, #000 12%, #000 55%, transparent 100%); }
/* flowing light: only inside the SAE box, each line stops a little lower than the one before */
.sae-flow { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; pointer-events: none; z-index: 0; }
.sae-flow i { position: absolute; top: 0; width: 1px; overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent); mask-image: linear-gradient(180deg, #000 70%, transparent); }
.sae-flow i::after { content: ""; position: absolute; left: 0; width: 1px; top: -40%; height: 40%;
  background: linear-gradient(180deg, transparent, rgba(245,184,46,.6) 60%, rgba(255,236,190,.95) 85%, transparent);
  animation: sae-flow 3.6s linear infinite; animation-delay: var(--dl, 0s); }
@keyframes sae-flow { to { transform: translateY(350%); } }
.sae > :not(.sae-flow) { position: relative; z-index: 1; }
@media (prefers-reduced-motion: reduce) { .sae-flow { display: none; } }
.stage > div { position: relative; z-index: 1; }
.plaque { position: relative; display: flex; flex-direction: column; padding: 1rem; background: #111214; border: 1px solid rgba(255,255,255,.14); border-radius: 10px; transition: transform .35s, border-color .35s, background-color .35s; }
.plaque:hover { border-color: rgba(245,184,46,.6); background: #16171a; }
.year { position: absolute; z-index: 2; top: -1.1rem; left: 1.1rem; padding: .35rem .85rem; font-family: 'Sora', sans-serif; font-size: .95rem; font-weight: 600; color: var(--ink); background: var(--brand-gold); border-radius: 2px; box-shadow: 0 10px 20px -10px rgba(245,184,46,.8); }
/* every award image sits in an identical square mat */
.mat { position: relative; display: block; width: 100%; aspect-ratio: 1 / 1; padding: 1rem; background: var(--paper); border-radius: 6px; cursor: zoom-in; overflow: hidden; }
.mat img { display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 8px 12px rgba(0,0,0,.25)); transition: transform .45s; }
.plaque:hover .mat img, .pcard:hover .mat img { transform: scale(1.05); }
.zoom { position: absolute; right: .6rem; bottom: .6rem; display: grid; place-items: center; width: 2.2rem; height: 2.2rem; color: #fff; background: rgba(11,18,32,.85); border-radius: 50%; transition: background-color .25s, color .25s, transform .25s; }
.mat:hover .zoom { background: var(--brand-gold); color: var(--ink); transform: scale(1.1); }
.zoom svg { width: 1.05rem; height: 1.05rem; }

/* SAE banner */
.sae { position: relative; display: grid; gap: 2rem; padding: 1.5rem; border: 1px solid rgba(255,255,255,.14); border-radius: 12px; background: linear-gradient(135deg, rgba(255,255,255,.07), rgba(255,255,255,.02)); }
@media (min-width: 640px) { .sae { padding: 2.25rem; } }
@media (min-width: 1024px) { .sae { grid-template-columns: 7fr 5fr; align-items: center; gap: 2.5rem; padding: 2.75rem; } }
.big { font-family: 'Sora', sans-serif; font-weight: 600; line-height: .85; font-size: clamp(5rem, 16vw, 8.5rem); color: transparent; -webkit-text-stroke: 2px var(--brand-gold); }
.facts { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.1rem 0 0; padding: 0; list-style: none; }
.facts li { padding: .35rem .75rem; font-size: .78rem; color: rgba(255,255,255,.85); border: 1px solid rgba(255,255,255,.22); border-radius: 999px; }
.facts b { color: var(--brand-gold); }
.thumbs { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 560px) and (max-width: 1023px) { .thumbs { grid-template-columns: 1fr 1fr; } }
.thumb { position: relative; display: block; overflow: hidden; background: #fff; border-radius: 6px; cursor: zoom-in; border: 1px solid rgba(255,255,255,.2); }
.thumb img { display: block; width: 100%; height: auto; transition: transform .45s; }
.thumb:hover img { transform: scale(1.06); }
.thumb:hover .zoom { background: var(--brand-gold); color: var(--ink); }
.cap { margin-top: .45rem; font-size: .66rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.pill-btn { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 2.9rem; padding: 0 1.4rem; font-size: .88rem; font-weight: 600; border-radius: 999px; transition: background-color .25s, color .25s, transform .25s, border-color .25s; }
.pill-btn svg { width: 1rem; height: 1rem; }
.pill-gold { color: var(--ink); background: var(--brand-gold); }
.pill-gold:hover { background: #ffd067; transform: translateY(-2px); }
.pill-ghost { color: #fff; border: 1px solid rgba(255,255,255,.35); }
.pill-ghost:hover { border-color: var(--brand-gold); color: var(--brand-gold); transform: translateY(-2px); }

/* ---------- PATENTS (light, crisp) ---------- */
.pcard { display: flex; flex-direction: column; padding: 1rem; background: #fff; border: 1px solid #e3e0d8; border-radius: 10px; transition: transform .3s, box-shadow .3s, border-color .3s; }
.pcard:hover { transform: translateY(-5px); border-color: var(--brand-gold); box-shadow: 0 24px 36px -26px rgba(11,18,32,.45); }
.pcard .mat { background: #eceae3; }

/* Renault patent: wide card, two documents + details */
.pcard-wide { gap: 1.25rem; }
.pcard-wide-docs { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.pcard-wide-body { padding: 0 .25rem .25rem; }
.pcard-grants { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; margin-top: 1.1rem; padding-top: 1.1rem; border-top: 1px solid #e3e0d8; }
.pcard-grants dt { font-size: .66rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #64748b; }
.pcard-grants dd { margin-top: .2rem; font-size: .9rem; font-weight: 600; color: #0b1220; }
.pcard-grants dd.sub { margin-top: .1rem; font-size: .75rem; font-weight: 400; color: #64748b; }
/* "View full patent document" button: sits under the two documents, with a peek of the PDF pages */
.pcard-wide-left { display: flex; flex-direction: column; gap: .9rem; }
.pdf-link {
  position: relative; display: inline-flex; align-self: center; align-items: center; gap: .6rem; overflow: hidden;
  padding: .5rem .9rem .5rem .6rem; font-size: .86rem; font-weight: 600; line-height: 1.25; color: #0b1220;
  background: var(--brand-gold); border-radius: 6px;
  transition: background-color .25s, transform .25s, box-shadow .25s;
}
.pdf-link:hover { background: #ffc94a; transform: translateY(-2px); box-shadow: 0 12px 22px -12px rgba(11,18,32,.55); }
.pdf-link:focus-visible { outline: 2px solid #0b1220; outline-offset: 3px; }
.pdf-text { display: flex; flex-direction: column; }
/* "opens in new tab" icon, pushed to the right edge */
.pdf-ext { width: 1.1rem; height: 1.1rem; flex: none; margin-left: .35rem; transition: transform .3s; }
.pdf-link:hover .pdf-ext { transform: translate(2px, -2px); }
.pdf-link .pdf-meta { font-size: .7rem; font-weight: 500; opacity: .7; }

/* mini stack of three PDF pages; fans out on hover */
.pdf-peek { position: relative; flex: none; width: 3.9rem; height: 2.3rem; }
.pdf-peek img {
  position: absolute; left: .15rem; top: .2rem; width: 3.1rem; height: auto; border-radius: 2px;
  border: 1.5px solid #fff; box-shadow: 0 4px 8px -3px rgba(11,18,32,.5);
  transition: transform .35s cubic-bezier(.22,.61,.36,1);
}
.pdf-peek img:nth-child(1) { transform: translate(.45rem, -.1rem) rotate(8deg); }
.pdf-peek img:nth-child(2) { transform: translate(.22rem, 0) rotate(3deg); }
.pdf-peek img:nth-child(3) { transform: rotate(-3deg); }
.pdf-link:hover .pdf-peek img:nth-child(1) { transform: translate(.7rem, -.25rem) rotate(13deg); }
.pdf-link:hover .pdf-peek img:nth-child(2) { transform: translate(.35rem, -.12rem) rotate(5deg); }
.pdf-link:hover .pdf-peek img:nth-child(3) { transform: translate(-.15rem, 0) rotate(-6deg); }
@media (min-width: 1024px) {
  .pcard-wide { display: grid; grid-template-columns: 5fr 7fr; align-items: center; gap: 2rem; padding: 1.25rem; }
  .pcard-wide-body { padding: 0 1rem 0 0; }
}
@media (max-width: 480px) {
  .pcard-grants { grid-template-columns: 1fr 1fr; }
}
.chip { display: inline-block; padding: .25rem .65rem; font-size: .66rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; border-radius: 999px; }
.chip-gold { color: var(--ink); background: var(--brand-gold); }
.chip-line { color: #475569; border: 1px solid #b9bfc8; }
/* this page only: scrolled header stands out against the black page */
#site-nav::before { background: rgba(28,29,33,.88); border-bottom: 1px solid rgba(245,184,46,.35); box-shadow: 0 14px 34px -12px rgba(0,0,0,.9); }
#site-nav.menu-open { background: rgba(28,29,33,.97); }
/* phones: compact award cards + SAE box */
@media (max-width: 639.98px) {
  .stage { padding-bottom: 2.5rem; }
  .plaque { padding: .75rem; }
  .plaque .mat { padding: .7rem; }
  .plaque h3 { font-size: .98rem !important; }
  .plaque > div:last-child { padding-top: .9rem !important; padding-bottom: .25rem !important; }
  .year { top: -.95rem; left: .8rem; padding: .28rem .7rem; font-size: .82rem; }
  .sae { gap: 1.4rem; padding: 1.15rem 1.1rem; }
  .sae .big { font-size: 3.6rem; -webkit-text-stroke-width: 1.5px; }
  .sae .mt-4 { margin-top: .6rem; }
  .sae .mt-7 { margin-top: 1rem; }
  .sae h3 { font-size: 1.25rem !important; }
  .sae h3 + p { font-size: 13.5px !important; line-height: 1.6 !important; }
  .sae .pb-2 strong { font-size: 1rem; }
  .sae .pb-2 { font-size: .78rem; }
  .facts { gap: .35rem; margin-top: .8rem; }
  .facts li { padding: .25rem .6rem; font-size: .7rem; }
  .sae .mt-6 { margin-top: 1rem; gap: .5rem; }
  .pill-btn { min-height: 2.5rem; padding: 0 1.1rem; font-size: .8rem; }
  .thumbs { gap: .75rem; }
  .cap { font-size: .6rem; }
}
/* phones: compact Renault patent card, sized like the cards above it */
@media (max-width: 639.98px) {
  .ip-sub { margin-top: 2rem !important; font-size: .64rem !important; letter-spacing: .08em !important; line-height: 1.5; }
  .pcard-wide { margin-top: .75rem !important; padding: .75rem; gap: .85rem; }
  .pcard-wide-left { gap: .65rem; }
  .pcard-wide-docs { gap: .5rem; }
  .pcard-wide .mat { padding: .6rem; }
  .pcard-wide-left { padding-bottom: .9rem; border-bottom: 1px solid #e3e0d8; }   /* clear break between button and text */
  .pdf-link { gap: .45rem; padding: .35rem .65rem .35rem .4rem; font-size: .76rem; }
  .pdf-link .pdf-meta { font-size: .62rem; }
  .pdf-ext { width: .95rem; height: .95rem; margin-left: .2rem; }
  .pdf-peek { width: 2.9rem; height: 1.75rem; }
  .pdf-peek img { width: 2.3rem; }
  .pcard-wide-body { padding: 0 .15rem .15rem; }
  .pw-label { font-size: .6rem !important; letter-spacing: .06em !important; line-height: 1.45; }
  .pcard-wide .chip { padding: .2rem .55rem; font-size: .56rem; letter-spacing: .08em; }
  .pw-title { margin-top: .5rem !important; font-size: 1.05rem !important; line-height: 1.3; }
  .pw-desc { margin-top: .35rem !important; font-size: 13px !important; line-height: 1.6 !important; }
  .pcard-grants { gap: .5rem; margin-top: .75rem; padding-top: .75rem; }
  .pcard-grants dt { font-size: .56rem; letter-spacing: .08em; }
  .pcard-grants dd { font-size: .78rem; }
  .pcard-grants dd.sub { font-size: .64rem; }
}
/* phones: compact top spacing for the awards section */
@media (max-width: 639.98px) { .stage { padding-top: 1.5rem; } }

/* Renault patent: three images in one compact row (columns sized to each image's shape) */
.pcard-docs-3 { grid-template-columns: 1.67fr .7fr 1.58fr; gap: .5rem; align-items: stretch; }
.pcard-docs-3 .mat { aspect-ratio: auto; height: 100%; padding: .4rem; border-radius: 5px; }
.pcard-docs-3 .mat-wide { aspect-ratio: 1.67; }
.pcard-docs-3 .mat img { filter: drop-shadow(0 4px 6px rgba(0,0,0,.18)); }
.pcard-docs-3 .mat-photo img { object-fit: cover; border-radius: 2px; filter: none; }
.pcard-docs-3 .zoom { right: .35rem; bottom: .35rem; width: 1.6rem; height: 1.6rem; }
.pcard-docs-3 .zoom svg { width: .8rem; height: .8rem; }
@media (max-width: 639.98px) {
  .pcard-docs-3 { gap: .35rem; }
  .pcard-docs-3 .mat { padding: .25rem; }
  .pcard-docs-3 .zoom { width: 1.3rem; height: 1.3rem; right: .2rem; bottom: .2rem; }
  .pcard-docs-3 .zoom svg { width: .65rem; height: .65rem; }
}
