/* About · Recognition (Arun 2026-10-25): the awards and recognition for this site. Driven by
   js/about-recognition.js.
     THE AWARDS - a carousel of cards (Arun: "a nice carousel, the logos in a thumbnail, going like a
       proper scroll"): it drifts on its own, the page's scroll pushes it, it drags and swipes; a card
       lifts white under the pointer. A record: no links. Reduced motion: a row you scroll yourself.
     THE JURY - big editorial rows; rules draw in, names rise, a hover fills a row white.
   (The night-road ride that first carried the awards now carries the work experience: about-journey.)
   Night-mode tokens: --paper is black, --ink white (the About page is always in night mode). */

.recog {
  --recog-dim: rgba(255, 255, 255, 0.28);
  --recog-mute: rgba(255, 255, 255, 0.6);
  --recog-ease: cubic-bezier(0.7, 0, 0.2, 1);
  --recog-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
  background: var(--paper);
  color: var(--ink);
  padding: clamp(40px, 6vw, 80px) 0 clamp(100px, 14vw, 200px);
  overflow-x: clip;
}

/* ── the headlines (Effect 01 rise, auto-wired by js/about-work-rise.js) ── */
.recog__head { text-align: center; padding: 0 var(--col-margin); }
.recog__title { display: inline-block; color: var(--ink); }
.recog__title[data-fx="rise"] { visibility: hidden; }
.recog__title__line { display: block; overflow: hidden; line-height: 1; padding-bottom: 0.06em; }
.recog__title__line .char { display: inline-block; will-change: transform; }
.recog__sub { margin-top: 22px; color: var(--recog-mute); }

.aw__date,
.aw__num {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

/* ── THE AWARDS: the carousel ─────────────────────────────────────────── */
.awards {
  --aw-w: clamp(250px, 21vw, 320px);
  position: relative;
  margin-top: clamp(40px, 6vw, 80px);
  padding: 18px 0 26px;                    /* (room for a card's lift and its shadow) */
  cursor: grab;
  touch-action: pan-y;                      /* (a sideways swipe is the carousel's, up and down the page's) */
  user-select: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.awards.is-dragging { cursor: grabbing; }
.awards__track {
  display: flex;
  gap: clamp(14px, 1.4vw, 22px);
  width: max-content;
  margin: 0;
  padding: 0;
  list-style: none;
  will-change: transform;
}
.aw {
  flex: 0 0 var(--aw-w);
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  padding: 14px 14px 20px;
  border: 1px solid var(--recog-dim);
  color: var(--ink);
  transition: background-color 0.45s var(--recog-ease), color 0.45s var(--recog-ease), border-color 0.45s var(--recog-ease), transform 0.5s var(--recog-out), box-shadow 0.5s ease;
}
.aw__thumb {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  background: rgba(255, 255, 255, 0.06);
  transition: background-color 0.45s var(--recog-ease);
}
.aw__logo {
  display: block;
  height: max(20px, calc(62px * var(--k, 1)));
  width: auto;
  max-width: 72%;
  filter: brightness(0) invert(1);
  transition: filter 0.45s var(--recog-ease), transform 0.6s var(--recog-out);
  pointer-events: none;
}
.aw__num { position: absolute; top: 12px; right: 12px; color: var(--recog-mute); transition: color 0.45s ease; }
.aw__name {
  margin-top: 20px;
  padding: 0 6px;
  font-family: var(--font-display);
  font-size: clamp(22px, 1.9vw, 30px);
  line-height: 0.95;
  text-transform: uppercase;
}
.aw__by { margin-top: 10px; padding: 0 6px; font: 700 15px/1.2 var(--font-body); }
.aw__date { margin-top: 8px; padding: 0 6px; color: var(--recog-mute); letter-spacing: 0.18em; transition: color 0.45s ease; }

/* under the pointer: the card lifts, lit white, its logo black */
@media (hover: hover) and (pointer: fine) {
  .aw:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); transform: translateY(-10px); box-shadow: 0 30px 60px rgba(255, 255, 255, 0.08); }
  .aw:hover .aw__thumb { background: rgba(0, 0, 0, 0.06); }
  .aw:hover .aw__logo { filter: brightness(0); transform: scale(1.06); }
  .aw:hover .aw__num,
  .aw:hover .aw__date { color: rgba(0, 0, 0, 0.6); }
}

/* reduced motion: no drift - a row to scroll through by hand */
.awards--still { overflow-x: auto; cursor: auto; scroll-snap-type: x mandatory; -webkit-mask-image: none; mask-image: none; padding-left: var(--col-margin); padding-right: var(--col-margin); }
.awards--still .aw { scroll-snap-align: start; }

/* ── THE JURY: five judge's seals, one size, one row ───────────────────── */
.jury-wrap { padding: clamp(110px, 14vw, 220px) var(--col-margin) 0; text-align: center; }
.seals {
  --seal: clamp(150px, 14.5vw, 232px);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  column-gap: clamp(12px, 2vw, 36px);
  row-gap: 0;
  margin: clamp(50px, 7vw, 100px) 0 0;
  padding: 0;
  list-style: none;
}
.seal {
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  transform: translateY(30px) scale(0.86);
  transition: opacity 0.9s ease var(--d, 0s), transform 1.1s var(--recog-out) var(--d, 0s);
}
.seal.is-in { opacity: 1; transform: none; }
.seal__disc {
  position: relative;
  width: var(--seal);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  transition: transform 0.6s var(--recog-out);
}
.seal__disc::before,                       /* (two hairline rings: outside the lettering and round the core) */
.seal__disc::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  transition: border-color 0.5s ease, background-color 0.5s ease;
}
.seal__disc::before { inset: 0; }
.seal__disc::after { inset: 17%; background: rgba(255, 255, 255, 0.03); }
.seal__ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  transform: rotate(var(--spin, 0deg));
  will-change: transform;
}
.seal__ring text {
  fill: rgba(255, 255, 255, 0.82);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 10.5px;
  letter-spacing: 0.18em;
}
.seal__core {
  position: relative;
  z-index: 1;
  max-width: 58%;
  font-family: var(--font-display);
  font-size: calc(var(--seal) * 0.105);
  line-height: 0.95;
  text-transform: uppercase;
  hyphens: manual;
  transition: color 0.5s ease, transform 0.6s var(--recog-out);
}
.seal__core--long { max-width: 70%; font-size: calc(var(--seal) * 0.082); }   /* (Communicator on one line) */
.seal__name { margin: 22px 0 0; font: 700 15px/1.25 var(--font-body); }
.seal__role {
  margin: 8px 0 0;
  font: 700 11px/1 var(--font-body);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--recog-mute);
}
/* under the pointer: the core fills white, the seal leans in (a moment of play - nothing to click) */
@media (hover: hover) and (pointer: fine) {
  .seal:hover .seal__disc { transform: scale(1.05); }
  .seal:hover .seal__disc::after { background: var(--ink); border-color: var(--ink); }
  .seal:hover .seal__disc::before { border-color: var(--ink); }
  .seal:hover .seal__core { color: var(--paper); transform: scale(0.96); }
}

/* the bracket under the three that come through AIVA */
.seals__aiva {
  --inset: calc((100% / 3 - var(--seal)) / 2 + var(--seal) * 0.12);   /* (the bracket's ends; the note keeps inside them) */
  grid-column: 1 / span 3;
  grid-row: 2;
  padding: 34px 0 0;
}
.seals__bracket {
  display: block;
  position: relative;
  height: 14px;
  margin: 0 var(--inset);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-top: 0;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 1.2s var(--recog-ease) 0.6s;
}
.seals.is-in .seals__bracket { transform: scaleX(1); }
.seals__bracket::after {                    /* (the stem down to the note) */
  content: '';
  position: absolute;
  left: 50%;
  top: 100%;
  width: 1px;
  height: 22px;
  background: rgba(255, 255, 255, 0.35);
}
.seals__member {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 14px;
  margin: 26px var(--inset) 0;              /* (inside the bracket, centred under its stem - Arun 2026-10-25) */
  font: 400 15px/1.5 var(--font-body);
  color: rgba(255, 255, 255, 0.72);
  text-align: left;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.8s ease 0.9s, transform 0.8s var(--recog-out) 0.9s;
}
.seals__member.is-in { opacity: 1; transform: none; }
.seals__member b { color: var(--ink); font-weight: 700; }
.seals__badge { flex: none; padding: 6px 10px; border: 1px solid var(--ink); border-radius: 999px; color: var(--ink); font: 700 11px/1 var(--font-body); letter-spacing: 0.22em; text-transform: uppercase; }

/* ── phones ───────────────────────────────────────────────────────────── */
@media (max-width: 767px) {
  .recog__sub br { display: none; }
  .awards { --aw-w: 232px; }
  .seals { --seal: 140px; grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .seals__aiva { grid-column: 1 / -1; grid-row: auto; padding: 0; }
  .seals__bracket { display: none; }
  .seal:nth-child(5) { grid-column: 1 / -1; }   /* (the fifth on its own row, in the middle) */
  .seals__member { justify-content: flex-start; flex-direction: column; gap: 12px; margin: 44px 0 0; }
}
@media (min-width: 768px) and (max-width: 1100px) {
  .seals { --seal: clamp(120px, 15vw, 160px); }
  .seal__name { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  .aw,
  .seal,
  .seals__bracket,
  .seals__member { transition: none; }
}
