/* Home: credentials, round 6 (2026-09-24). Rod's "The Work" discipline, in this site's type and palette.
   Every card holds five things at rest: one visual, one giant number, one tracked label, a title and one
   short line. Nothing waits behind a click. Round 6 makes it move, and every motion carries a fact:
     arrival  the AO years sweep through his roles once; the 20 counts up as the service bar fills; the
              journal covers are dealt onto the card; the papers line draws; the map sprinkles its cities
     pointer  the card tilts toward the pointer with its picture on a nearer layer; moving along a picture
              reads it: his AO role in a year, his years as chief so far, his papers in a year
     idle     the map flies from Seattle to the cities he returned to most, one flight at a time
   Reduced motion: nothing moves on its own; the readouts still follow the pointer, instantly. */

.creds-sec {
  --creds-ease: cubic-bezier(0.28, 0.11, 0.32, 1);
  padding: clamp(4.5rem, 8vw, 6.5rem) 0 clamp(5rem, 9vw, 7.5rem);
  background: var(--mist);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* header: the title as big as Rod's, one quiet line beside it */
.creds-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 1rem 2rem; flex-wrap: wrap;
  margin-bottom: clamp(2.2rem, 4vw, 3.2rem);
}
.creds-title {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(2.9rem, 6.2vw, 5.6rem); line-height: 0.95; letter-spacing: -0.025em;
  color: var(--ink);
}
.creds-sub {
  padding-bottom: 0.6rem;
  font-family: var(--label); font-weight: 600; font-size: 0.8rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted);
}

/* the bento: four columns, the dark feature 2 by 2, the journal tall, the map across the foot */
.creds-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: minmax(15.5rem, auto);
  gap: 1rem;
}
.ccard--ao { grid-column: 1 / span 2; grid-row: 1 / span 2; }
.ccard--gsj { grid-column: 3; grid-row: 1 / span 2; }
.ccard--uw { grid-column: 4; grid-row: 1; }
.ccard--research { grid-column: 4; grid-row: 2; }
.ccard--talks { grid-column: 1 / -1; }

/* the card */
.ccard {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column;
  padding: clamp(1.5rem, 2.2vw, 2rem);
  background: #fff; color: var(--ink); text-decoration: none;
  border: 1px solid var(--line); border-radius: 18px;
  transition: transform 0.5s var(--creds-ease), box-shadow 0.5s var(--creds-ease), border-color 0.3s;
}
/* while creds.js drives the tilt it owns the transform and eases it itself, so no CSS transition on it */
.creds-tilt .ccard { transition: box-shadow 0.5s var(--creds-ease), border-color 0.3s; will-change: transform; }
/* a soft light that follows the pointer (set by creds.js), only while the pointer is on the card */
.ccard::before {
  content: ''; position: absolute; z-index: -1; pointer-events: none;
  width: 360px; height: 360px; border-radius: 50%;
  left: var(--cx, -400px); top: var(--cy, -400px); transform: translate(-50%, -50%);
  background: radial-gradient(circle closest-side, rgba(191, 217, 238, 0.45), transparent);
  opacity: 0; transition: opacity 0.35s;
}
.ccard:hover { transform: translateY(-6px); box-shadow: 0 26px 64px rgba(10, 13, 18, 0.10), 0 4px 14px rgba(10, 13, 18, 0.05); border-color: rgba(46, 93, 126, 0.32); }
.ccard:hover::before { opacity: 1; }

/* the five things */
.ccard__stat {
  margin-top: auto;
  font-family: var(--label); font-weight: 700;
  font-size: clamp(2.9rem, 4.2vw, 4.1rem); line-height: 0.95; letter-spacing: -0.02em;
  color: var(--ink); transition: color 0.35s var(--creds-ease);
}
.ccard:hover .ccard__stat { color: var(--accent); }
.ccard__label {
  margin-top: 0.55rem;
  font-family: var(--label); font-weight: 600; font-size: 0.74rem; line-height: 1.4;
  letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted);
}
.ccard__title {
  margin-top: 1.15rem;
  font-family: var(--display); font-weight: 600;
  font-size: clamp(1.22rem, 1.6vw, 1.45rem); line-height: 1.15; letter-spacing: -0.005em;
}
.ccard__desc { margin-top: 0.4rem; max-width: 32ch; font-size: 0.95rem; line-height: 1.55; color: var(--muted); transition: color 0.35s var(--creds-ease); }
.ccard__tag {
  margin-top: 1.2rem; padding-top: 0.9rem; border-top: 1px solid var(--line);
  font-family: var(--label); font-weight: 600; font-size: 0.74rem;
  letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted);
  transition: color 0.35s var(--creds-ease);
}
.ccard__arrow {
  position: absolute; right: 1.35rem; bottom: 1.25rem;
  color: rgba(10, 13, 18, 0.22); transition: color 0.3s, translate 0.45s var(--creds-ease);
}
.ccard__arrow::before { content: '\2197'; font-size: 1.05rem; }
.ccard:hover .ccard__arrow { color: var(--accent); translate: 3px -3px; }

/* ---------- AOSpine: the dark feature ---------- */
.ccard--ao { min-height: 31rem; background: var(--ink); border-color: transparent; color: #fff; }
.ccard--ao::before { background: radial-gradient(circle closest-side, rgba(191, 217, 238, 0.13), transparent); }
/* the grid sits on the far layer and the mark on the near one: they part as the card tilts */
.ccard__grid {
  position: absolute; inset: -12px; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(191, 217, 238, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(191, 217, 238, 0.06) 1px, transparent 1px);
  background-size: 34px 34px;
  -webkit-mask-image: linear-gradient(170deg, #000 10%, transparent 72%);
  mask-image: linear-gradient(170deg, #000 10%, transparent 72%);
  translate: calc(var(--px, 0) * -10px) calc(var(--py, 0) * -10px);
}
.ccard__logo { display: block; align-self: flex-start; width: auto; height: 52px; translate: calc(var(--px, 0) * 7px) calc(var(--py, 0) * 7px); }

/* his AO years on one line, 2003 to 2016. At rest the lit stretch is the chair years (the giant number
   below is exactly that stretch) and a dot marks 2006, Educator of the Year. The lit stretch is a lens:
   it slides to whichever role is being read, and the giant number rolls to that role's years. */
.ccard__time { display: block; margin-block: auto; padding: 2.2rem 0 2rem; }
.ccard__time-track { position: relative; display: block; height: 12px; border-radius: 6px; background: rgba(255, 255, 255, 0.06); }
.ccard__time-years, .ccard__time-lens, .ccard__time-award { position: absolute; top: 0; bottom: 0; border-radius: 6px; }
.ccard__time-years { left: 0; right: 0; background: rgba(191, 217, 238, 0.2); transform-origin: left; transform: scaleX(0); }
.ccard__time-lens {
  left: var(--l, 46.154%); width: var(--w, 30.769%);
  background: var(--lightbox); transform-origin: left; transform: scaleX(0);
  transition: left 0.5s var(--creds-ease), width 0.5s var(--creds-ease), box-shadow 0.5s var(--creds-ease);
}
.ccard__time-award {
  left: 23.077%; top: 50%; bottom: auto; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 0 4px var(--ink); transform: scale(0);
}
.ccard__time.is-in .ccard__time-years { transform: scaleX(1); transition: transform 1.1s var(--creds-ease); }
.ccard__time.is-in .ccard__time-lens { transform: scaleX(1); transition: transform 0.9s var(--creds-ease) 0.6s, left 0.5s var(--creds-ease), width 0.5s var(--creds-ease), box-shadow 0.5s var(--creds-ease); }
.ccard__time.is-in .ccard__time-award { transform: scale(1); transition: transform 0.55s var(--ease-spring) 1.4s, box-shadow 0.35s; }
.ccard__time.is-ready .ccard__time-award { transition: transform 0.4s var(--ease-spring), box-shadow 0.35s; }
.ccard--ao:hover .ccard__time-lens, .ccard__time.is-sweep .ccard__time-lens { box-shadow: 0 0 0 5px rgba(191, 217, 238, 0.14), 0 0 24px rgba(191, 217, 238, 0.4); }
.ccard--ao.is-role-award .ccard__time-award { transform: scale(1.6); box-shadow: 0 0 0 4px var(--ink), 0 0 22px rgba(255, 255, 255, 0.7); }
/* the reading cursor and its year */
.ccard__time-cursor {
  position: absolute; top: -16px; bottom: -16px; left: var(--x, 0%); width: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.75); opacity: 0; pointer-events: none;
  transition: opacity 0.25s, left 0.12s linear;
}
.ccard__time-cursor b {
  position: absolute; bottom: calc(100% + 6px); left: 0; translate: -50% 0;
  padding: 0.12rem 0.45rem; border-radius: 4px; background: #fff; color: var(--ink);
  font-family: var(--label); font-weight: 700; font-size: 0.78rem; line-height: 1.3; white-space: nowrap;
}
.ccard__time.is-scrub .ccard__time-cursor { opacity: 1; }
.ccard__time.is-sweep .ccard__time-cursor { transition: opacity 0.25s, left 0.55s var(--creds-ease); }
.ccard__time-axis { position: relative; display: block; height: 1.2rem; margin-top: 0.75rem; font-family: var(--label); font-weight: 600; font-size: 0.8rem; color: rgba(255, 255, 255, 0.4); }
.ccard__time-axis span { position: absolute; top: 0; translate: -50% 0; white-space: nowrap; }
.ccard__time-axis span:first-child { translate: 0 0; }
.ccard__time-axis span:last-child { translate: -100% 0; }
.ccard__time-axis .is-key { color: rgba(255, 255, 255, 0.78); }
.ccard--ao .ccard__stat { margin-top: 0; font-size: clamp(3.4rem, 6.2vw, 6.1rem); color: var(--lightbox); }
.ccard--ao:hover .ccard__stat { color: #fff; }
.ccard__to { font-size: 0.42em; font-weight: 600; letter-spacing: 0; color: rgba(191, 217, 238, 0.7); vertical-align: 0.55em; }
.ccard--ao .ccard__label { color: rgba(255, 255, 255, 0.62); }
.ccard--ao .ccard__title { color: #fff; }
.ccard--ao .ccard__desc { color: rgba(255, 255, 255, 0.66); }
.ccard--ao .ccard__tag { border-top-color: rgba(255, 255, 255, 0.14); color: rgba(255, 255, 255, 0.6); }
.ccard--ao .ccard__arrow { color: rgba(255, 255, 255, 0.28); }
.ccard--ao:hover .ccard__arrow { color: var(--lightbox); }
/* the line that tells a role's story lights while that role is read */
.ccard--ao.is-role-trustee .ccard__desc { color: #fff; }
.ccard--ao.is-role-award .ccard__tag { color: var(--lightbox); }

/* ---------- Global Spine Journal: three issues dealt onto the card, held in 3D ---------- */
.ccard--gsj { background: var(--lightbox); border-color: transparent; }
.ccard--gsj::before { background: radial-gradient(circle closest-side, rgba(255, 255, 255, 0.55), transparent); }
.ccard--gsj .ccard__stat { color: var(--accent-deep); }
.ccard--gsj:hover .ccard__stat { color: var(--ink); }
.ccard--gsj .ccard__label, .ccard--gsj .ccard__desc { color: var(--ink-2); }
.ccard--gsj .ccard__arrow { color: rgba(10, 13, 18, 0.3); }
.ccard__issues {
  position: relative; display: block; height: 15.5rem; margin: 0.2rem 0 1.6rem;
  perspective: 900px;
  translate: calc(var(--px, 0) * 9px) calc(var(--py, 0) * 9px);
}
.ccard__issues-in { position: absolute; inset: 0; transform-style: preserve-3d; }
.ccard__issue {
  position: absolute; left: 50%; top: 0.5rem; width: 10.4rem; height: auto; aspect-ratio: 400 / 518;
  border-radius: 3px; box-shadow: 0 16px 34px rgba(10, 13, 18, 0.22), 0 3px 8px rgba(10, 13, 18, 0.1);
  transition: transform 0.7s var(--creds-ease), box-shadow 0.7s var(--creds-ease), filter 0.7s var(--creds-ease);
}
.ccard__issue--front { display: block; overflow: hidden; }
.ccard__issue--front img { display: block; width: 100%; height: 100%; }
.ccard__issue--back { transform: translateX(-50%) translate3d(-30px, 12px, -36px) rotate(-7deg); filter: brightness(0.7); }
.ccard__issue--mid { transform: translateX(-50%) translate3d(28px, 8px, -18px) rotate(6deg); filter: brightness(0.84); }
.ccard__issue--front { transform: translateX(-50%) translateZ(14px); }
.ccard--gsj:hover .ccard__issue--back { transform: translateX(-50%) translate3d(-50px, 18px, -36px) rotate(-11deg); filter: brightness(0.62); }
.ccard--gsj:hover .ccard__issue--mid { transform: translateX(-50%) translate3d(48px, 14px, -18px) rotate(10deg); filter: brightness(0.78); }
.ccard--gsj:hover .ccard__issue--front { transform: translateX(-50%) translate3d(0, -12px, 30px) scale(1.04); box-shadow: 0 30px 60px rgba(10, 13, 18, 0.3), 0 6px 14px rgba(10, 13, 18, 0.12); }
/* light across the glossy front cover, travelling with the pointer */
.ccard__sheen {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(112deg, transparent 38%, rgba(255, 255, 255, 0.32) 50%, transparent 62%);
  background-size: 260% 100%; background-position: var(--sx, 50%) 0;
  mix-blend-mode: screen; opacity: 0; transition: opacity 0.45s var(--creds-ease);
}
.ccard--gsj:hover .ccard__sheen { opacity: 1; }
/* arrival: the three issues are dealt onto the card, back to front */
@keyframes creds-deal { from { opacity: 0; translate: 0 46px; } to { opacity: 1; translate: 0 0; } }
.creds-live .ccard__issues:not(.is-dealt) .ccard__issue { opacity: 0; }
.ccard__issues.is-dealt .ccard__issue { animation: creds-deal 0.85s var(--creds-ease) both; }
.ccard__issues.is-dealt .ccard__issue--mid { animation-delay: 0.13s; }
.ccard__issues.is-dealt .ccard__issue--front { animation-delay: 0.26s; }

/* ---------- University of Washington: one tenure bar, 1990 to 2014 ---------- */
.ccard__span { display: block; translate: calc(var(--px, 0) * 3px) calc(var(--py, 0) * 3px); }
.ccard__span-rail { position: relative; display: block; }
.ccard__span-bar { position: relative; display: block; height: 10px; border-radius: 5px; background: var(--mist-2); overflow: hidden; }
.ccard__span-bar i { position: absolute; top: 0; bottom: 0; right: 0; border-radius: 5px; transform-origin: left; transition: transform 0.35s var(--creds-ease); }
.ccard__span-svc { left: 16.667%; background: var(--accent); transform: scaleX(var(--f, 1)); }
.ccard__span-chair { left: 87.5%; background: var(--ink); transform: scaleX(var(--c, 1)); }
.ccard__span.is-driving .ccard__span-bar i { transition: none; }
.ccard__span-axis { display: flex; justify-content: space-between; margin-top: 0.45rem; font-family: var(--label); font-weight: 600; font-size: 0.78rem; color: var(--muted); transition: opacity 0.2s; }
.ccard__span-cursor {
  position: absolute; top: -6px; bottom: -6px; left: var(--x, 0%); width: 0;
  border-left: 1.5px solid var(--ink); opacity: 0; pointer-events: none;
  transition: opacity 0.25s, left 0.12s linear;
}
.ccard__span-cursor b {
  position: absolute; top: calc(100% + 3px); left: 0; translate: -50% 0;
  padding: 0.08rem 0.4rem; border-radius: 4px; background: var(--ink); color: #fff;
  font-family: var(--label); font-weight: 700; font-size: 0.74rem; line-height: 1.3; white-space: nowrap;
}
.ccard__span.is-scrub .ccard__span-cursor { opacity: 1; }
.ccard__span.is-scrub .ccard__span-axis { opacity: 0; }
.ccard--uw.is-chair .ccard__desc { color: var(--ink); }

/* ---------- Research: his papers per year, one line, read by the pointer ---------- */
.ccard--research { padding-top: 1.4rem; }
.ccard__spark-wrap { position: relative; display: block; translate: calc(var(--px, 0) * 3px) calc(var(--py, 0) * 3px); }
.ccard__spark { display: block; width: 100%; height: 3.4rem; overflow: visible; }
.ccard__spark .area { fill: var(--accent-tint); }
.ccard__spark .line { fill: none; stroke: var(--accent); stroke-width: 1.75; stroke-linejoin: round; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; }
.ccard__spark.is-in .line { stroke-dashoffset: 0; transition: stroke-dashoffset 1.4s var(--creds-ease); }
.ccard__spark .peak { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-dasharray: 2 3; vector-effect: non-scaling-stroke; opacity: 0; transition: opacity 0.3s; }
.ccard__spark-dot {
  position: absolute; left: var(--dx, 0%); top: var(--dy, 0%); width: 10px; height: 10px; margin: -5px 0 0 -5px;
  border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 3px #fff, 0 2px 8px rgba(10, 13, 18, 0.25);
  opacity: 0; transform: scale(0.5); pointer-events: none;
  transition: opacity 0.2s, transform 0.35s var(--ease-spring), left 0.12s linear, top 0.12s linear;
}
.ccard__spark-dot::before { content: ''; position: absolute; left: 4px; top: 11px; height: calc(var(--dh, 0) * 1px); border-left: 1px dashed rgba(10, 13, 18, 0.35); }
.ccard--research.is-scrub .ccard__spark-dot { opacity: 1; transform: none; }
.ccard--research.is-scrub .ccard__spark .peak { opacity: 0; }
.ccard__peak {
  position: absolute; top: 0.55rem; right: 1.4rem;
  font-family: var(--label); font-weight: 600; font-size: 0.78rem; color: var(--ink);
  opacity: 0; translate: 0 4px; transition: opacity 0.35s var(--creds-ease), translate 0.45s var(--creds-ease);
}
.ccard--research:hover .ccard__spark .peak, .ccard--research:focus-visible .ccard__spark .peak { opacity: 1; }
.ccard--research:hover .ccard__peak, .ccard--research:focus-visible .ccard__peak { opacity: 1; translate: 0 0; }

/* ---------- Speaking: the map, full width ---------- */
.ccard--talks { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: clamp(1.5rem, 3vw, 3rem); align-items: center; padding: clamp(1.4rem, 2.4vw, 2.2rem); }
.ccard__map { position: relative; display: block; aspect-ratio: 1000 / 367; translate: calc(var(--px, 0) * -4px) calc(var(--py, 0) * -4px); }
.ccard__map svg { display: block; width: 100%; height: 100%; overflow: visible; }
.ccard__map .land { fill: none; stroke: rgba(10, 13, 18, 0.15); stroke-linecap: round; }
.ccard__map .city { fill: var(--ink-2); stroke: #fff; stroke-width: 2.5; opacity: 0; transition: opacity 0.6s var(--creds-ease), fill 0.25s; }
.ccard__map.is-in .city { opacity: 0.82; }
.ccard__map .city:hover, .ccard__map .city.is-hot { fill: var(--accent); opacity: 1; }
.ccard__map .home { fill: none; stroke: var(--accent); stroke-width: 2; }
.ccard__map .arc {
  fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round;
  stroke-dasharray: var(--len); stroke-dashoffset: var(--len); opacity: 0.8;
  transition: stroke-dashoffset 0.9s var(--creds-ease) var(--d, 0s);
}
.ccard--talks:hover .ccard__map .arc, .ccard--talks:focus-visible .ccard__map .arc { stroke-dashoffset: 0; }
.ccard__map .arc.is-fly { stroke-dashoffset: 0; transition-delay: 0s; }
.ccard__map .arc--one { --d: 0s; stroke-width: 2; opacity: 1; }
/* a landing: one ring opening at the city, and its name for a moment */
.ccard__map .ring {
  fill: none; stroke: var(--accent); stroke-width: 2; vector-effect: non-scaling-stroke; pointer-events: none;
  transform-box: fill-box; transform-origin: center; animation: creds-ring 1.3s var(--creds-ease) forwards;
}
@keyframes creds-ring { from { transform: scale(0.5); opacity: 0.9; } to { transform: scale(2.8); opacity: 0; } }
.ccard__map-tag {
  position: absolute; z-index: 2; left: var(--tx, 50%); top: var(--ty, 50%); translate: -50% calc(-100% - 14px);
  padding: 0.22rem 0.55rem; border-radius: 6px; background: var(--ink); color: #fff;
  font-family: var(--label); font-weight: 600; font-size: 0.8rem; line-height: 1.3; white-space: nowrap;
  opacity: 0; transform: translateY(5px) scale(0.96); pointer-events: none;
  transition: opacity 0.3s var(--creds-ease), transform 0.4s var(--creds-ease);
}
.ccard__map-tag.is-on { opacity: 1; transform: none; }
.ccard__talks { display: flex; flex-direction: column; }
.ccard__talks .ccard__stat { margin-top: 0; }
.ccard__read {
  display: block; min-height: 1.4em; margin-top: 1.2rem; padding-top: 0.9rem; border-top: 1px solid var(--line);
  font-family: var(--label); font-weight: 600; font-size: 0.85rem; color: var(--ink-2);
}

/* ---------- phones and tablets ---------- */
@media (max-width: 1100px) {
  .creds-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ccard--ao { grid-column: 1 / -1; grid-row: auto; min-height: 30rem; }
  .ccard--gsj { grid-column: 1; grid-row: 2 / span 2; }
  .ccard--uw { grid-column: 2; grid-row: 2; }
  .ccard--research { grid-column: 2; grid-row: 3; }
  .ccard--talks { grid-column: 1 / -1; grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .creds-grid { grid-template-columns: minmax(0, 1fr); }
  .ccard--ao, .ccard--gsj, .ccard--uw, .ccard--research, .ccard--talks { grid-column: 1; grid-row: auto; }
  .ccard--ao { min-height: 29rem; }
}

@media (prefers-reduced-motion: reduce) {
  .ccard, .ccard__issue, .ccard__arrow, .ccard__stat, .ccard__span-bar i { transition: none; }
  .ccard__time-track i { transform: none !important; transition: none !important; }
  .ccard:hover { transform: none; }
  .ccard__spark .line { stroke-dashoffset: 0; transition: none; }
  .ccard__map .arc { transition: none; }
  .ccard__issues.is-dealt .ccard__issue { animation: none; }
  .creds-live .ccard__issues:not(.is-dealt) .ccard__issue { opacity: 1; }
  .ccard__map .ring { animation: none; opacity: 0; }
  .ccard__time-cursor, .ccard__span-cursor, .ccard__spark-dot, .ccard__map-tag, .ccard__sheen { transition: none; }
}
