/* ════════════════════════════════════════════════════════════════════
   AWARDS & CERTIFICATIONS — Cinematic Trophy Hero
   Isolated component (see awards-hero.js). Replaces the previous
   vector line-art .awh hero on awards.html only. Full-bleed photographic
   composition of the gold trophy + certificates (Hero/awards.*) with a
   single left-to-right scrim carrying the headline — one full-inset
   photo + one scrim, matching the site's established hero convention
   (.op-hero in process-hero.css, .ins-hero in blog-hero.css), not a
   boxed image stitched against a separately drawn background. A
   four-item achievement row spans the full width of the lower band,
   and — because this particular photo doesn't bake in its own curve
   the way the process/insight plates do — a drawn SVG wave (same
   technique as .lh-wave in leadership-hero.css) closes the hero with
   the orange accent line the reference calls for.

   Motion contract: only transform / opacity are animated on anything
   that runs continuously. Width, height, margin, left and top are
   never transitioned.
   ════════════════════════════════════════════════════════════════════ */

.awh {
  --navy: #061B49;
  --navy-mid: #08265C;
  --navy-deep: #020814;
  --ink: #F5F7FB;
  --ink-dim: #B9C4DE;
  --accent: #FF6B00;
  --accent-2: #FF7518;
  --accent-hot: #FFC24B;
  position: relative;
  height: 90vh;
  min-height: 760px;
  max-height: 940px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--navy);
  color: var(--ink);
}

@media (max-width: 900px) {
  .awh { height: auto; min-height: 0; max-height: none; }
}

.awh-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }

/* ══ full-bleed photo ══ */
.awh-visual { position: absolute; inset: 0; overflow: hidden; }

.awh-visual picture,
.awh-visual-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.awh-visual-img {
  object-fit: cover;
  object-position: 68% 42%;
  transform: scale(.94) translateY(20px);
  opacity: 0;
  will-change: transform, opacity;
  backface-visibility: hidden;
}

@media (max-width: 900px) {
  .awh-visual-img { object-position: 66% 38%; }
}

/* ── slow diagonal sheen sweeping once across the trophy's metallic
   surface — a single soft highlight pass, not a flashing effect ── */
.awh-sweep {
  position: absolute;
  top: -20%;
  left: -40%;
  width: 45%;
  height: 140%;
  background: linear-gradient(100deg, transparent, rgba(255, 235, 200, .16) 45%, transparent 90%);
  transform: skewX(-18deg) translateX(0);
  z-index: 2;
  animation: awhSweep 7s ease-in-out infinite;
  animation-delay: 2s;
}

@keyframes awhSweep {
  0%, 40%, 100% { transform: skewX(-18deg) translateX(0); }
  70% { transform: skewX(-18deg) translateX(420%); }
}

@media (max-width: 900px) {
  .awh-sweep { display: none; }
}

/* warm gold/orange ambient glow breathing behind the trophy */
.awh-glow {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(ellipse 40% 55% at 74% 40%, rgba(255, 178, 60, .28), transparent 62%);
  opacity: .7;
  animation: awhGlowBreathe 6s ease-in-out infinite;
}

@keyframes awhGlowBreathe {
  0%, 100% { opacity: .65; }
  50% { opacity: .8; }
}

@media (max-width: 900px) {
  .awh-glow { display: none; }
}

/* single scrim reinforcing the plate's own navy field so the headline
   stays readable, plus a bottom band darkened for the achievement row */
.awh-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(100deg, var(--navy) 0%, rgba(6, 27, 73, .94) 24%, rgba(6, 27, 73, .78) 40%, rgba(6, 27, 73, .42) 56%, rgba(6, 27, 73, .12) 72%, transparent 86%),
    linear-gradient(180deg, rgba(2, 8, 20, .3) 0%, transparent 14%, transparent 56%, rgba(2, 8, 20, .62) 88%, rgba(2, 8, 20, .74) 100%);
}

@media (max-width: 900px) {
  .awh-scrim {
    background:
      linear-gradient(180deg, rgba(6, 27, 73, .72) 0%, rgba(6, 27, 73, .36) 20%, rgba(6, 27, 73, .3) 36%, rgba(2, 8, 20, .62) 58%, rgba(2, 8, 20, .93) 76%, var(--navy-deep) 100%),
      linear-gradient(90deg, rgba(6, 27, 73, .45) 0%, transparent 45%, transparent 60%, rgba(6, 27, 73, .3) 100%);
  }
}

/* ── faint technical grid + slowly rotating HUD ring — low opacity ── */
.awh-grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: .05;
  background-image:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .5) 0px, rgba(255, 255, 255, .5) 1px, transparent 1px, transparent 42px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .5) 0px, rgba(255, 255, 255, .5) 1px, transparent 1px, transparent 42px);
  -webkit-mask-image: linear-gradient(100deg, #000 0%, #000 38%, transparent 58%);
  mask-image: linear-gradient(100deg, #000 0%, #000 38%, transparent 58%);
  animation: awhGridDrift 22s linear infinite;
}

@keyframes awhGridDrift {
  0% { background-position: 0 0, 0 0; }
  100% { background-position: 84px 0, 0 84px; }
}

.awh-hud {
  position: absolute;
  top: 14%;
  right: 8%;
  width: clamp(120px, 14vw, 200px);
  height: clamp(120px, 14vw, 200px);
  z-index: 2;
  opacity: .16;
  animation: awhHudSpin 26s linear infinite;
  pointer-events: none;
}

.awh-hud circle { fill: none; stroke: var(--accent-hot); }

@keyframes awhHudSpin {
  to { transform: rotate(360deg); }
}

/* ── orange light trail tracing a thin arc around the trophy ── */
.awh-trail {
  position: absolute;
  right: 4%;
  top: 8%;
  width: clamp(220px, 26vw, 380px);
  height: clamp(220px, 26vw, 380px);
  z-index: 2;
  opacity: .55;
  pointer-events: none;
}

.awh-trail path {
  fill: none;
  stroke: url(#awhTrailGrad);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-dasharray: 12 14;
  animation: awhTrailFlow 10s linear infinite;
}

@keyframes awhTrailFlow {
  to { stroke-dashoffset: -260; }
}

@media (max-width: 900px) {
  .awh-hud, .awh-trail { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .awh-grid, .awh-glow, .awh-sweep, .awh-hud, .awh-trail { animation: none !important; }
}

/* ── a small, restrained number of gold particles drifting slowly ── */
.awh-particles { position: absolute; inset: 0; z-index: 2; pointer-events: none; }

.awh-particle {
  position: absolute;
  left: var(--px);
  bottom: -10px;
  width: var(--ps);
  height: var(--ps);
  border-radius: 50%;
  background: var(--pc);
  opacity: 0;
  box-shadow: 0 0 6px 1px currentColor;
  animation: awhParticleRise var(--pd) ease-in-out infinite;
  animation-delay: var(--pdelay);
}

@keyframes awhParticleRise {
  0% { transform: translate(0, 0); opacity: 0; }
  12% { opacity: .8; }
  85% { opacity: .5; }
  100% { transform: translate(var(--pdx), -70vh); opacity: 0; }
}

@media (max-width: 900px), (prefers-reduced-motion: reduce) {
  .awh-particles { display: none; }
}

/* ══ content ══ */
.awh-inner {
  position: relative;
  z-index: 5;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: calc(var(--nav-h) + 2.25rem) 1.75rem 0;
}

.awh-content { max-width: 740px; padding-bottom: 2rem; }

.awh-badge {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  font-family: var(--font-mono);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--accent-hot);
  opacity: 0;
}

.awh-badge-icon { display: flex; flex-shrink: 0; color: var(--accent); }
.awh-badge-icon svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.awh-badge-line { width: 30px; height: 1.5px; background: linear-gradient(90deg, var(--accent), var(--accent-hot)); }

.awh-heading {
  margin-top: 1.1rem;
  font-family: var(--font-display);
  text-transform: none;
  font-size: clamp(2.2rem, 3.4vw + 1vh, 3.35rem);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -.01em;
}

.awh-heading .line { display: block; opacity: 0; }
.awh-heading .ink { color: var(--ink); }
.awh-heading .accent {
  color: var(--accent);
  filter: drop-shadow(0 0 26px rgba(255, 107, 0, .32));
}

.awh-desc {
  margin-top: 1.2rem;
  max-width: 48ch;
  font-size: 1.04rem;
  line-height: 1.75;
  color: var(--ink-dim);
  padding: .95rem 1.3rem;
  background: linear-gradient(165deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .03));
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 1rem;
  box-shadow: 0 8px 28px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .12);
  opacity: 0;
}

/* ── CTA: orange pill, white text, arrow badge ── */
.awh-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .9rem;
  margin-top: 1.9rem;
  padding: .5rem .5rem .5rem 1.55rem;
  border-radius: 3rem;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  border: 1px solid rgba(255, 255, 255, .2);
  box-shadow: 0 10px 26px rgba(255, 107, 0, .28);
  opacity: 0;
  transition: box-shadow .3s ease, transform .3s cubic-bezier(.22, 1, .36, 1), background .3s ease;
}

.awh-cta:hover,
.awh-cta:focus-visible {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #E85D00, var(--accent));
  box-shadow: 0 16px 34px rgba(255, 107, 0, .4);
}

.awh-cta:focus-visible { outline: 2px solid var(--accent-hot); outline-offset: 3px; }

.awh-cta-label {
  font-family: var(--font-mono);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.awh-cta-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform .3s cubic-bezier(.22, 1, .36, 1);
}

.awh-cta-arrow svg { width: 16px; height: 16px; }

.awh-cta:hover .awh-cta-arrow,
.awh-cta:focus-visible .awh-cta-arrow { transform: translateX(5px); }

/* ══ four-item achievement row — full width across the lower band ══ */
.awh-features {
  position: relative;
  padding-bottom: clamp(2rem, 4.5vw, 3.25rem);
  opacity: 0;
}

.awh-features-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.awh-feature {
  display: flex;
  align-items: flex-start;
  gap: .8rem;
  padding: 0 1.3rem;
  border-left: 1px solid rgba(255, 255, 255, .14);
  outline: none;
  opacity: 0;
  transform: translateY(14px);
}

.awh-feature:first-child { border-left: none; padding-left: 0; }

.awh-feature-icon {
  position: relative;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 32% 28%, rgba(255, 107, 0, .26), rgba(255, 107, 0, .06));
  border: 1.5px solid rgba(255, 107, 0, .45);
  color: var(--accent-hot);
  transition: transform .28s cubic-bezier(.22, 1, .36, 1), border-color .28s ease, box-shadow .28s ease, color .28s ease;
}

.awh-feature-icon svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ── idle "flex" pulse: a soft ring breathing outward behind each icon ── */
.awh-feature-icon::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--accent-hot);
  box-shadow: 0 0 0 0 rgba(255, 194, 75, .5);
  opacity: 0;
  animation: awhIconFlex 2.6s cubic-bezier(.22, 1, .36, 1) infinite;
}
.awh-feature:nth-child(1) .awh-feature-icon::after { animation-delay: 0s; }
.awh-feature:nth-child(2) .awh-feature-icon::after { animation-delay: .65s; }
.awh-feature:nth-child(3) .awh-feature-icon::after { animation-delay: 1.3s; }
.awh-feature:nth-child(4) .awh-feature-icon::after { animation-delay: 1.95s; }

@keyframes awhIconFlex {
  0% { transform: scale(1); opacity: .9; }
  75% { transform: scale(1.7); opacity: 0; }
  100% { transform: scale(1.7); opacity: 0; }
}

.awh-feature-title {
  display: block;
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .03em;
  color: var(--ink);
  transition: color .28s ease;
}

.awh-feature-sub {
  display: block;
  margin-top: .3rem;
  font-size: .78rem;
  line-height: 1.4;
  color: var(--ink-dim);
}

.awh-feature:hover,
.awh-feature:focus-visible { transform: translateY(-2px); }

.awh-feature:hover .awh-feature-icon,
.awh-feature:focus-visible .awh-feature-icon {
  transform: scale(1.08);
  border-color: var(--accent-hot);
  color: #fff;
  box-shadow: 0 0 0 5px rgba(255, 117, 24, .14), 0 0 18px rgba(255, 194, 75, .4);
}

.awh-feature:hover .awh-feature-title,
.awh-feature:focus-visible .awh-feature-title { color: var(--accent-hot); }

@media (max-width: 1100px) {
  .awh-content { max-width: 540px; }
  .awh-feature-sub { display: none; }
  .awh-feature-icon { width: 34px; height: 34px; }
  .awh-feature-icon svg { width: 16px; height: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .awh-feature, .awh-feature:hover, .awh-feature:focus-visible { transform: none !important; }
  .awh-feature-icon::after { animation: none !important; display: none; }
}

/* below 900px the hero switches to the stacked mobile layout */
@media (max-width: 900px) {
  .awh-features { display: none; }
}

/* ── bottom curved wave, drawn (not baked into the photo) — orange
   accent line traces the crest, matching the leadership.html .lh-wave
   technique ── */
.awh-wave { position: absolute; left: 0; right: 0; bottom: -1px; z-index: 6; line-height: 0; pointer-events: none; }
.awh-wave svg { display: block; width: 100%; height: clamp(44px, 5.5vw, 78px); }
.awh-wave-fill { fill: var(--surface); }
.awh-wave-line {
  fill: none;
  stroke: url(#awhWaveGrad);
  stroke-width: 2.5;
  stroke-linecap: round;
  filter: drop-shadow(0 0 6px rgba(255, 106, 31, .55));
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left;
}

@media (max-width: 900px) { .awh-wave { display: none; } }

/* ══ mobile: badge, headline, copy, CTA stack centered over the same
   full-bleed photo, which deepens to solid navy toward the bottom so
   the four achievements read clearly beneath it — no separate boxed
   card, matching the homepage / leadership hero ══ */
@media (max-width: 900px) {
  .awh-inner { padding: calc(var(--nav-h) + 1.6rem) 1.25rem 0; display: block; }
  .awh-content { max-width: none; text-align: center; padding-bottom: 0; }
  .awh-badge { justify-content: center; }
  .awh-desc { margin-left: auto; margin-right: auto; }
  .awh-cta { margin-left: auto; margin-right: auto; }

  .awh-visual-img { object-position: 70% 28%; transform: scale(1); }
  .awh-glow { display: none; }
}

.awh-features-mobile {
  display: none;
  position: relative;
  z-index: 3;
  order: 3;
  margin: 1.8rem 0 0;
  padding: 0 1.25rem 2.2rem;
  opacity: 0;
}

@media (max-width: 900px) { .awh-features-mobile { display: block; } }

.awh-features-grid-m {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .9rem;
}

.awh-feature-m {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .55rem;
  padding: 1.1rem .8rem 1.2rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 107, 0, .22);
  background: linear-gradient(155deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, 0));
  opacity: 0;
  transform: translateY(14px);
}

.awh-feature-m .awh-feature-icon { width: 40px; height: 40px; }
.awh-feature-m .awh-feature-icon svg { width: 18px; height: 18px; }
.awh-feature-m .awh-feature-title { font-size: .76rem; }
.awh-feature-m .awh-feature-sub { display: block; font-size: .72rem; }

/* ══ LOW-END MOBILE: decorative background-position sweep/drift forces a
   repaint every frame and (where paired) costs extra compositing via
   mix-blend-mode; simplify it away below the tablet breakpoint regardless
   of the user's reduced-motion preference, since most low-end-phone users
   won't have that OS setting enabled ══ */
@media (max-width: 760px) {
  .awh-grid { animation: none !important; }
}

/* ══ LOW-POWER MODE: same grid-drift simplification as the mobile
   breakpoint above, keyed off device capability (.low-power-mode)
   instead of viewport width ══ */
.low-power-mode .awh-grid { animation: none !important; }
