/* ================= HERO ================= */

/* The hero is a pinned stage: 120svh of extra scroll drive the camera through the name. */
.hero {
  position: relative;
  height: 220svh;
}
.hero__pin {
  position: sticky;
  top: 0;
  height: 100svh;
  display: flex;
  flex-direction: column;
  padding-top: calc(var(--nav-h) + 12px);
  padding-bottom: clamp(28px, 5vh, 56px);
  overflow: hidden;
}
.hero__foot {
  opacity: var(--ui-o, 1);
  translate: 0 var(--ui-y, 0px);
  pointer-events: var(--ui-pe, auto);
}
.dive__cap {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(92vw, 16ch);
  translate: -50% -50%;
  scale: var(--cap-s, 1);
  opacity: var(--cap-o, 0);
  filter: blur(calc((1 - var(--cap-o, 0)) * 8px));
  font-size: clamp(34px, 5vw, 72px);
  line-height: 1.02;
  font-weight: 640;
  letter-spacing: -0.04em;
  text-align: center;
  text-wrap: balance;
  text-shadow: 0 4px 40px rgba(0, 0, 0, 0.7);
  pointer-events: none;
}
.scrollcue {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  color: var(--ink-2);
}
.scrollcue i {
  position: relative;
  width: 1px;
  height: 18px;
  background: rgba(255, 255, 255, 0.2);
  overflow: hidden;
}
.scrollcue i::after {
  content: '';
  position: absolute;
  left: 0;
  top: -40%;
  width: 1px;
  height: 40%;
  background: var(--ink);
  animation: cue 1.8s var(--ease) infinite;
}
@keyframes cue {
  to {
    top: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero {
    height: auto;
  }
  .hero__pin {
    position: relative;
    height: auto;
    min-height: 100svh;
  }
  .dive__cap,
  .scrollcue {
    display: none;
  }
}
.hero__stage {
  flex: 1 1 auto;
  min-height: 160px;
  margin: 3vh auto 4vh;
  width: min(880px, 78vw);
  cursor: crosshair;
}
.no-webgl .hero__stage {
  display: grid;
  place-items: center;
  font-size: clamp(80px, 18vw, 240px);
  font-weight: 700;
  letter-spacing: -0.05em;
}
.no-webgl .hero__stage::after {
  content: 'Yuvraj';
}
.hero__foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 32px;
}
.hero__title {
  font-size: clamp(34px, 4.6vw, 66px);
  line-height: 1.04;
  font-weight: 640;
  letter-spacing: -0.038em;
  max-width: 19ch;
  text-wrap: balance;
}
.hero__title [data-swap] {
  display: inline-block;
}
.hero__sub {
  margin-top: 20px;
  max-width: 54ch;
  font-size: var(--fs-lead);
  line-height: 1.45;
  color: var(--ink-2);
  text-wrap: pretty;
}
.hero__controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
  margin-top: 28px;
}
.lens {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 12px;
  font-size: 14px;
  color: var(--mute);
}
.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.readout {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  font-size: 13px;
  color: var(--mute);
  line-height: 1.5;
  white-space: nowrap;
}
.readout__steps {
  display: block;
  font: 500 13px/1.5 var(--mono);
  color: var(--ink-2);
}
.readout__bar {
  display: block;
  width: 160px;
  height: 2px;
  margin: 8px 0 8px auto;
  background: var(--tile-3);
  border-radius: 2px;
  overflow: hidden;
}
.readout__bar i {
  display: block;
  height: 100%;
  width: calc(var(--p, 0) * 100%);
  background: var(--magma);
}
@media (max-width: 760px) {
  .hero__foot {
    grid-template-columns: 1fr;
  }
  .readout {
    text-align: left;
    align-items: flex-start;
    order: -1;
  }
  .readout__bar {
    margin-left: 0;
  }
  .hero__stage {
    width: 92vw;
    min-height: 120px;
  }
}

/* ================= ABOUT ================= */

/* the scroll dive already acts as the transition, so About can start closer */
#about {
  padding-top: clamp(48px, 7vw, 96px);
}

.about__hint {
  font-size: 15px;
  color: var(--mute);
  margin-bottom: 22px;
}
.attn {
  position: relative;
}
.attn__text {
  font-size: var(--fs-para);
  line-height: 1.2;
  font-weight: 560;
  letter-spacing: -0.028em;
  max-width: 30ch;
  text-wrap: pretty;
}
.tok {
  border-radius: 0.18em;
  padding: 0 0.04em;
  margin: 0 -0.04em;
  color: rgba(245, 245, 247, var(--o, 0.16));
  transition: color 0.35s, background-color 0.2s;
  cursor: default;
}
.tok[data-c] {
  cursor: pointer;
}
.attn.is-active .tok {
  color: rgba(245, 245, 247, 0.22);
}
.attn.is-active .tok.is-key {
  color: #000;
  background: var(--heat);
}
.attn.is-active .tok.is-query {
  color: #000;
  background: var(--ink);
}
.attn__arcs {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.attn__tip {
  position: absolute;
  z-index: 3;
  width: 260px;
  padding: 14px 16px;
  border-radius: var(--r-m);
  background: rgba(20, 20, 23, 0.92);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid var(--hair-2);
  font-size: 13px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.2s, transform 0.25s var(--ease);
}
.attn__tip.is-on {
  opacity: 1;
  transform: none;
}
.attn__tip b {
  font-weight: 600;
  color: var(--ink);
}
.attn__tip ol {
  margin-top: 8px;
  display: grid;
  gap: 5px;
}
.attn__tip li {
  display: grid;
  grid-template-columns: 92px 1fr 38px;
  align-items: center;
  gap: 8px;
  color: var(--ink-2);
}
.attn__tip li i {
  height: 4px;
  border-radius: 2px;
  background: var(--heat);
  width: calc(var(--w) * 100%);
}
.attn__tip li span:last-child {
  font: 12px var(--mono);
  text-align: right;
}

.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
  margin-top: clamp(64px, 9vw, 120px);
}
.portrait {
  position: relative;
  aspect-ratio: 1;
  width: min(100%, 440px);
  touch-action: pan-y;
}
.portrait img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  user-select: none;
  -webkit-user-drag: none;
}
.portrait__top {
  -webkit-mask-image: radial-gradient(circle at var(--lx, 50%) var(--ly, 40%), #000 0, #000 var(--lr, 17%), transparent calc(var(--lr, 17%) + 2.5%));
  mask-image: radial-gradient(circle at var(--lx, 50%) var(--ly, 40%), #000 0, #000 var(--lr, 17%), transparent calc(var(--lr, 17%) + 2.5%));
}
.portrait__ring {
  position: absolute;
  left: var(--lx, 50%);
  top: var(--ly, 40%);
  width: calc(var(--lr, 17%) * 2 + 2.5%);
  aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25), 0 0 40px rgba(254, 159, 109, 0.25);
  pointer-events: none;
}
.portrait figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -44px;
  text-align: center;
  font-size: 13px;
  color: var(--mute);
}
.facts {
  display: grid;
  gap: 0;
}
.facts div {
  display: grid;
  grid-template-columns: 9.5em 1fr;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--hair);
}
.facts div:last-child {
  border-bottom: 1px solid var(--hair);
}
.facts dt {
  color: var(--mute);
}
.facts dd {
  color: var(--ink);
}
.about__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
@media (max-width: 860px) {
  .about__grid {
    grid-template-columns: 1fr;
  }
  .portrait {
    margin-inline: auto;
    margin-bottom: 40px;
  }
  .facts div {
    grid-template-columns: 7.5em 1fr;
  }
}

/* ================= WORK: a deck of model cards =================
   One project holds the screen at a time. Each card pins under the nav; the next one slides
   up over it while the card behind shrinks a little and darkens, leaving a thin edge so you
   can see how deep the deck goes. stack.js sets every card's top and min-height from the
   viewport: a card taller than the screen scrolls through first, then pins by its bottom
   edge. The full write-up for each project opens in a sheet (model-card.js). */

.cards {
  --peek: 10px; /* edge of each card behind that shows above the current one */
  --stack-t: 14px; /* gap under the nav */
  --stack-b: 14px; /* gap above the bottom of the screen */
  --dwell: 16vh; /* scroll distance a card holds the screen on its own */
  position: relative;
  padding-bottom: var(--dwell);
}
.card {
  position: sticky;
  top: calc(var(--nav-h) + var(--stack-t));
  display: grid;
  grid-template-columns: clamp(270px, 24vw, 330px) minmax(0, 1fr);
  gap: clamp(24px, 2.6vw, 36px);
  margin-bottom: var(--dwell);
  padding: clamp(20px, 2.4vw, 32px);
  border-radius: var(--r-xl);
  background: var(--tile);
  border: 1px solid var(--hair);
  transform-origin: 50% 0;
  transition: opacity 0.4s, translate 0.5s var(--ease);
}
.card:last-child {
  margin-bottom: 0;
}
.cards.is-measuring .card {
  min-height: 0 !important;
}
.cards.is-sorting .card {
  opacity: 0;
  translate: 0 14px;
}
/* the darkening that pushes a card back into the deck */
.card__veil {
  position: absolute;
  inset: -1px;
  z-index: 4;
  border-radius: inherit;
  background: #000;
  opacity: 0;
  pointer-events: none;
}
.card > :not(.card__veil) {
  transition: opacity 0.35s;
}
.card.is-buried > :not(.card__veil) {
  opacity: 0;
  pointer-events: none;
}
.card.is-buried {
  cursor: pointer;
}

.card__info {
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-width: 0;
}
.card__line {
  margin-top: 12px;
  font-size: 17px;
  line-height: 1.45;
  color: var(--ink-2);
  text-wrap: pretty;
}
.card__results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 16px;
}
.card__results li {
  border-top: 1px solid var(--hair);
  padding-top: 12px;
}
.card__results b {
  display: block;
  line-height: 1.05;
  white-space: nowrap;
}
.card__results span {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.35;
  color: var(--mute);
}
.card__info .card__role {
  margin-top: 0;
  font-size: 13px;
  line-height: 1.45;
}
.card__actions {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
/* opens the full write-up; an in-page action, so it reads differently from the outbound links */
.card__more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 4px 0 0;
  font-size: 15px;
  font-weight: 520;
  color: var(--ink);
  background: none;
  border: 0;
  border-radius: 999px;
}
.card__plus {
  position: relative;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--hair-2);
  transition: background-color 0.2s, transform 0.35s var(--ease);
}
.card__plus::before,
.card__plus::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 1.5px;
  border-radius: 1px;
  background: currentColor;
  translate: -50% -50%;
}
.card__plus::after {
  rotate: 90deg;
}
.card__more:hover .card__plus {
  background: rgba(255, 255, 255, 0.18);
  transform: rotate(90deg);
}

.card__specimen {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-radius: var(--r-l);
  background: #000;
  border: 1px solid var(--hair);
  overflow: hidden;
  container-type: inline-size;
}
.card__specimen > * {
  flex: 1 0 auto;
}
.card__specimen .orbit__stage {
  align-self: start;
}

@media (max-width: 1179px) {
  .card {
    grid-template-columns: minmax(0, 1fr);
  }
  .card__info {
    gap: 20px;
  }
  .card__line {
    max-width: 52ch;
  }
  .card__actions {
    margin-top: 0;
  }
}
@media (min-width: 640px) and (max-width: 1179px) {
  .card__results {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .cards {
    --peek: 8px;
    --stack-t: 10px;
    --stack-b: 10px;
    --dwell: 12vh;
  }
  .card {
    border-radius: 26px;
  }
}

/* ---- the full write-up, shared by the model card sheet ---- */
.card__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.card__body {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(28px, 4vw, 64px);
  margin-top: clamp(28px, 4vw, 44px);
}
.spec {
  display: grid;
  gap: 22px;
}
.spec dt {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}
.spec dd {
  color: var(--ink-2);
  max-width: 66ch;
  text-wrap: pretty;
}
.spec dd + dd {
  margin-top: 10px;
}
.spec .story {
  padding: 16px 18px;
  border-radius: var(--r-m);
  background: var(--tile-2);
  color: var(--ink);
}
.results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px 20px;
  align-content: start;
}
.results li {
  border-top: 1px solid var(--hair);
  padding-top: 14px;
}
.results b {
  display: block;
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.05;
  font-weight: 620;
  letter-spacing: -0.03em;
  white-space: nowrap;
}
.results b.is-long {
  font-size: clamp(20px, 1.8vw, 26px);
  white-space: normal;
}
.results span {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  color: var(--mute);
  line-height: 1.35;
}
.card__role {
  margin-top: 24px;
  font-size: 14px;
  color: var(--mute);
}
.card__stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: clamp(28px, 3.5vw, 40px);
}
.card__note {
  margin-top: 12px;
  font-size: 13px;
  color: var(--mute);
}
@media (max-width: 860px) {
  .card__body {
    grid-template-columns: 1fr;
  }
}

.archive {
  margin-top: clamp(64px, 8vw, 110px);
}
.archive h3 {
  font-size: var(--fs-h3);
  font-weight: 620;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}
.archive li {
  border-top: 1px solid var(--hair);
}
.archive li:last-child {
  border-bottom: 1px solid var(--hair);
}
.archive a {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 6fr) minmax(0, 3fr) auto;
  gap: 8px 24px;
  align-items: baseline;
  padding: 22px 4px;
  text-decoration: none;
  transition: background-color 0.2s, padding 0.3s var(--ease);
}
.archive a:hover {
  background: rgba(255, 255, 255, 0.035);
  padding-inline: 14px;
}
.archive strong {
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.02em;
}
.archive .what {
  color: var(--ink-2);
}
.archive .stk {
  color: var(--mute);
  font-size: 14px;
}
.archive .go {
  font-size: 14px;
  color: var(--ink-2);
  white-space: nowrap;
}
@media (max-width: 860px) {
  .archive a {
    grid-template-columns: 1fr auto;
  }
  .archive .what,
  .archive .stk {
    grid-column: 1 / -1;
  }
  .archive .go {
    grid-row: 1;
    grid-column: 2;
  }
}

/* ================= RESEARCH ================= */

.research__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: stretch;
}
.research__stage {
  min-height: 420px;
  position: sticky;
  top: calc(var(--nav-h) + 8vh);
  height: 70vh;
}
.questions {
  display: grid;
  gap: clamp(44px, 6vw, 80px);
  padding-block: 4vh 10vh;
}
.questions h3 {
  font-size: var(--fs-h3);
  line-height: 1.12;
  font-weight: 620;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.questions p {
  margin-top: 14px;
  color: var(--ink-2);
  font-size: var(--fs-lead);
  line-height: 1.5;
  text-wrap: pretty;
  max-width: 46ch;
}
.research__cap {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 13px;
  color: var(--mute);
}
@media (max-width: 860px) {
  .research__grid {
    grid-template-columns: 1fr;
  }
  .research__stage {
    position: relative;
    top: 0;
    height: 52vh;
    min-height: 300px;
    order: -1;
  }
}

/* ================= SKILLS ================= */

.space {
  border-radius: var(--r-xl);
  background: var(--tile);
  border: 1px solid var(--hair);
  overflow: hidden;
}
.space__top {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--hair);
}
.space__query {
  flex: 1 1 280px;
  max-width: 420px;
}
.space__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.space__legend button[aria-pressed='true'] {
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.08);
}
.space__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
}
.space__fig {
  position: relative;
  height: clamp(420px, 56vh, 600px);
  touch-action: pan-y;
  cursor: grab;
}
.space__fig:active {
  cursor: grabbing;
}
.space__fig canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.space__side {
  border-left: 1px solid var(--hair);
  padding: 20px;
  font-size: 14px;
  color: var(--ink-2);
}
.space__side h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
}
.space__side ol {
  display: grid;
  gap: 8px;
}
.space__side li {
  display: grid;
  grid-template-columns: 1fr 44px;
  gap: 4px 10px;
  align-items: center;
}
.space__side li i {
  grid-column: 1 / -1;
  height: 3px;
  border-radius: 2px;
  background: var(--heat, var(--ink));
  width: calc(var(--w) * 100%);
}
.space__side li span:nth-child(2) {
  font: 12px var(--mono);
  text-align: right;
  color: var(--mute);
}
.space__hint {
  margin-top: 16px;
  color: var(--mute);
  font-size: 13px;
}
@media (max-width: 860px) {
  .space__body {
    grid-template-columns: 1fr;
  }
  .space__side {
    border-left: 0;
    border-top: 1px solid var(--hair);
  }
}

/* ================= EXPERIENCE ================= */

.log {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 80px);
}
.log__chart {
  position: sticky;
  top: calc(var(--nav-h) + 6vh);
  height: min(64vh, 560px);
  border-radius: var(--r-xl);
  background: var(--tile);
  border: 1px solid var(--hair);
  padding: 22px;
  display: flex;
  flex-direction: column;
}
.log__chart h3 {
  font-size: 15px;
  font-weight: 600;
}
.log__chart p {
  font-size: 13px;
  color: var(--mute);
  margin-top: 4px;
}
.log__fig {
  position: relative;
  flex: 1;
  margin-top: 16px;
}
.log__fig svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.log__list {
  display: grid;
}
.ckpt {
  position: relative;
  padding: 28px 0 28px 28px;
  border-left: 1px solid var(--hair);
  transition: opacity 0.4s;
}
.ckpt::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 36px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--tile-3);
  box-shadow: 0 0 0 4px #000;
  transition: background-color 0.3s, transform 0.3s var(--ease);
}
.ckpt.is-on::before {
  background: var(--heat, var(--ink));
  transform: scale(1.35);
}
.ckpt time {
  font: 500 13px/1 var(--mono);
  color: var(--mute);
}
.ckpt h3 {
  margin-top: 10px;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 620;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.ckpt .org {
  margin-top: 4px;
  color: var(--ink-2);
}
.ckpt p:last-child {
  margin-top: 10px;
  color: var(--mute);
  max-width: 60ch;
  text-wrap: pretty;
}
@media (max-width: 860px) {
  .log {
    grid-template-columns: 1fr;
  }
  .log__chart {
    display: none;
  }
}

/* ================= CREDENTIALS ================= */

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: clamp(36px, 5vw, 56px);
}
.badge {
  color: var(--ink);
  --rx: 0deg;
  --ry: 0deg;
  --gx: 50%;
  --gy: 50%;
  position: relative;
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 18px;
  align-items: center;
  flex: 1 1 340px;
  padding: 20px 24px 20px 20px;
  border-radius: var(--r-l);
  background: var(--tile);
  border: 1px solid var(--hair);
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform 0.5s var(--ease);
  text-align: left;
  overflow: hidden;
}
.badge::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--gx) var(--gy), rgba(254, 159, 109, 0.18), transparent 45%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.badge:hover::after {
  opacity: 1;
}
.badge img {
  width: 96px;
  height: auto;
}
.badge b {
  display: block;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.badge span {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  color: var(--mute);
}
.badge .score {
  font: 600 32px/1 var(--sans);
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-top: 10px;
}
.board {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.board th {
  text-align: left;
  font-weight: 500;
  font-size: 13px;
  color: var(--mute);
  padding: 0 12px 12px 0;
  border-bottom: 1px solid var(--hair-2);
}
.board td {
  padding: 16px 12px 16px 0;
  border-bottom: 1px solid var(--hair);
  vertical-align: middle;
}
.board td:first-child {
  color: var(--ink);
  font-weight: 520;
}
.board .by,
.board .when {
  color: var(--ink-2);
}
.board .when {
  white-space: nowrap;
}
.board .sc {
  width: 32%;
  padding-right: 32px;
}
.bar {
  display: grid;
  grid-template-columns: 1fr 52px;
  align-items: center;
  gap: 12px;
}
.bar i {
  display: block;
  height: 6px;
  border-radius: 3px;
  background: var(--tile-3);
  overflow: hidden;
}
.bar i::before {
  content: '';
  display: block;
  height: 100%;
  width: calc(var(--v, 0) * 100%);
  background: var(--heat, var(--ink));
  border-radius: inherit;
  transition: width 1.2s var(--ease);
}
.is-pending .bar i::before {
  width: 0;
}
.bar span {
  font: 500 14px var(--mono);
  text-align: right;
}
.board .result {
  font-size: 14px;
  color: var(--ink-2);
}
.board button.view {
  border: 0;
  background: none;
  padding: 6px 0;
  font-size: 14px;
  color: var(--ink-2);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-decoration-color: var(--hair-2);
  white-space: nowrap;
}
.board button.view:hover {
  color: var(--ink);
}
.honours {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}
@media (max-width: 760px) {
  .board thead {
    display: none;
  }
  .board tr {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 6px 12px;
    padding: 16px 0;
    border-bottom: 1px solid var(--hair);
  }
  .board td {
    padding: 0;
    border: 0;
  }
  .board td:first-child {
    grid-column: 1 / -1;
  }
  .board .sc {
    width: auto;
    grid-column: 1 / -1;
  }
}

/* ================= ASK ================= */

.ask {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  border-radius: var(--r-xl);
  background: var(--tile);
  border: 1px solid var(--hair);
  overflow: hidden;
}
.ask__chat {
  display: flex;
  flex-direction: column;
  min-height: 460px;
  max-height: 640px;
}
.ask__log {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  display: grid;
  align-content: start;
  gap: 16px;
  overscroll-behavior: contain;
}
.msg {
  max-width: 88%;
  padding: 12px 16px;
  border-radius: 18px;
  line-height: 1.5;
  text-wrap: pretty;
}
.msg--q {
  justify-self: end;
  background: var(--ink);
  color: #000;
  border-bottom-right-radius: 6px;
}
.msg--a {
  background: var(--tile-2);
  border-bottom-left-radius: 6px;
}
.msg--a .src {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.msg--a .src button {
  min-height: 30px;
  font-size: 12px;
}
.msg--a.is-refusal {
  background: transparent;
  border: 1px dashed var(--hair-2);
  color: var(--ink-2);
}
.ask__form {
  display: flex;
  gap: 8px;
  padding: 14px;
  border-top: 1px solid var(--hair);
}
.ask__chips {
  display: flex;
  gap: 6px;
  padding: 0 14px 14px;
  overflow-x: auto;
  scrollbar-width: none;
}
.ask__chips .chip {
  flex: none;
}
.ask__chips::-webkit-scrollbar {
  display: none;
}
.ask__trace {
  border-left: 1px solid var(--hair);
  padding: 22px;
  font-size: 14px;
  color: var(--ink-2);
}
.ask__trace h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}
.ask__trace > p {
  margin-top: 4px;
  font-size: 13px;
  color: var(--mute);
}
.trace__q {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 18px;
  min-height: 28px;
}
.trace__q span {
  font: 12px var(--mono);
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--tile-3);
}
.trace__q span.x {
  color: var(--mute);
  background: transparent;
  border: 1px dashed var(--hair-2);
}
.trace__list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}
.trace__list li {
  display: grid;
  grid-template-columns: 1fr 48px;
  gap: 6px 10px;
}
.trace__list li i {
  grid-column: 1 / -1;
  height: 4px;
  border-radius: 2px;
  background: var(--heat);
  width: calc(var(--w) * 100%);
  transition: width 0.6s var(--ease);
}
.trace__list li span:nth-child(2) {
  font: 12px var(--mono);
  text-align: right;
  color: var(--mute);
}
.trace__list li.is-used span:first-child {
  color: var(--ink);
}
.trace__empty {
  margin-top: 18px;
  color: var(--mute);
}
@media (max-width: 860px) {
  .ask {
    grid-template-columns: 1fr;
  }
  .ask__trace {
    border-left: 0;
    border-top: 1px solid var(--hair);
  }
  .ask__chat {
    min-height: 460px;
  }
}

/* ================= CONTACT ================= */

.contact {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding-block: 120px;
}
.contact__stage {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(1100px, 96vw);
  height: min(560px, 70vh);
  translate: -50% -50%;
  pointer-events: none;
}
.contact__in {
  position: relative;
}
@media (max-width: 760px) {
  /* on phones the orbit sits behind the question, clear of the email */
  .contact__stage {
    top: 30%;
    height: 34vh;
  }
}
.contact__title {
  font-size: clamp(44px, 7.4vw, 108px);
  line-height: 1;
  font-weight: 660;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.contact__sub {
  margin: 22px auto 0;
  max-width: 44ch;
  font-size: var(--fs-lead);
  color: var(--ink-2);
}
.contact__mail {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 36px;
}
.contact__mail a.addr {
  font-size: clamp(20px, 2.4vw, 30px);
  font-weight: 560;
  letter-spacing: -0.02em;
  text-decoration: none;
  border-bottom: 1px solid var(--hair-2);
  padding-bottom: 2px;
  overflow-wrap: anywhere;
}
.contact__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}
.contact__time {
  margin-top: 36px;
  font-size: 14px;
  color: var(--mute);
}

/* long honour names wrap on narrow phones instead of widening the page */
.honours .chip {
  white-space: normal;
  min-height: 30px;
  height: auto;
  padding-block: 5px;
  line-height: 1.35;
}
