/* =========================================================================
   Influencerpedia — public
   The hero is a full-bleed black-and-white photograph with frosted glass
   panels floating on it. Everything below the hero is light and readable.
   ========================================================================= */

:root {
  --page:    #E8E8EC;   /* behind the app window */
  --paper:   #FFFFFF;
  --wash:    #F4F4F7;
  --wash-2:  #ECECF1;
  --dark:    #131316;

  --ink:     #121216;
  --ink-2:   #52525C;
  --ink-3:   #85858F;
  --ink-4:   #ABABB4;

  --line:    #E5E5EB;
  --line-2:  #D5D5DD;

  --yellow:  #F7D247;
  --yellow-2:#FFE27A;
  --yellow-d:#B99512;

  /* glass, only ever used on top of the hero photograph */
  --glass:      rgba(18,18,22,.40);
  --glass-hi:   rgba(30,30,36,.56);
  --glass-line: rgba(255,255,255,.17);

  --sans:  'Jakarta', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --serif: 'Fraunces', ui-serif, Georgia, serif;

  --r-xl: 28px;
  --r-lg: 20px;
  --r-md: 14px;
  --r-sm: 10px;

  --shell: 1360px;
  --gutter: 22px;

  --ease: cubic-bezier(.22,.8,.28,1);
  --shadow-1: 0 1px 2px rgba(18,18,22,.05), 0 6px 20px rgba(18,18,22,.06);
  --shadow-2: 0 4px 12px rgba(18,18,22,.08), 0 24px 60px rgba(18,18,22,.14);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--page); }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; }
p { margin: 0 0 1.1em; }

:focus-visible { outline: 2.5px solid var(--yellow); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--yellow); color: #14140C; }

.app {
  max-width: var(--shell);
  margin: 18px auto;
  background: var(--paper);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-2);
  overflow: hidden;
  position: relative;
}

.kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.kicker--y { color: var(--yellow-d); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--wash-2);
  color: var(--ink-2);
  white-space: nowrap;
}
.pill--y { background: var(--yellow); color: #14140C; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  padding: 11px 22px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  background: var(--yellow);
  color: #14140C;
  transition: transform .2s var(--ease), background .2s var(--ease);
}
.btn:hover { background: var(--yellow-2); transform: translateY(-1px); }
.btn:active { transform: scale(.98); }
.btn--dark { background: var(--dark); color: #fff; }
.btn--dark:hover { background: #26262C; }

/* =========================================================================
   HERO — the only dark part of the site
   ========================================================================= */
.hero { position: relative; isolation: isolate; }

.hero__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; background: #0B0B0D; }

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s var(--ease);
}
.slide.is-on { opacity: 1; }
.slide img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.08);
  transform: scale(1.06);
  transition: transform 9s linear;
}
.slide.is-on img { transform: scale(1); }

/* keeps the headline legible whatever photograph is behind it */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(100deg, rgba(8,8,10,.92) 0%, rgba(8,8,10,.6) 32%, rgba(8,8,10,.1) 60%, rgba(8,8,10,.3) 100%),
    linear-gradient(to bottom, rgba(8,8,10,.5) 0%, transparent 20%);
}

.hero__inner { padding: 0 var(--gutter) var(--gutter); }

/* ---- masthead sitting on the photograph ---- */
.masthead {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 78px;
  padding-inline: var(--gutter);
  position: relative;
  color: #fff;
}

.iconbtn {
  width: 44px; height: 44px;
  border-radius: 999px;
  border: 1px solid var(--glass-line);
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(14px);
  display: grid; place-items: center;
  cursor: pointer;
  color: inherit;
  flex: none;
  transition: background .2s var(--ease), transform .2s var(--ease);
}
.iconbtn:hover { background: rgba(255,255,255,.22); transform: scale(1.05); }
.iconbtn svg { width: 18px; height: 18px; }

.masthead__date { font-size: 13px; font-weight: 600; opacity: .8; white-space: nowrap; }

.logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--serif);
  font-size: 31px;
  font-weight: 600;
  letter-spacing: -.02em;
  white-space: nowrap;
}
.logo em { font-style: italic; font-weight: 400; color: var(--yellow); }

.masthead__act { display: flex; align-items: center; gap: 10px; margin-left: auto; flex: none; }

.searchpill {
  display: flex;
  align-items: center;
  gap: 9px;
  border-radius: 999px;
  padding: 0 18px;
  height: 44px;
  width: 205px;
  cursor: pointer;
  font-size: 14px;
  border: 1px solid var(--glass-line);
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(14px);
  color: rgba(255,255,255,.7);
  transition: background .2s var(--ease);
}
.searchpill:hover { background: rgba(255,255,255,.2); }
.searchpill svg { width: 16px; height: 16px; flex: none; }

/* ---- category rail ---- */
.catnav {
  margin: 0 var(--gutter) 20px;
  border-radius: 999px;
  padding: 7px;
  display: flex;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
  border: 1px solid var(--glass-line);
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(18px);
  position: relative;
}
.catnav::-webkit-scrollbar { display: none; }
.catnav a {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: rgba(255,255,255,.78);
  padding: 9px 16px;
  border-radius: 999px;
  white-space: nowrap;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.catnav a:hover { color: #fff; background: rgba(255,255,255,.14); }
.catnav a.is-on { background: rgba(255,255,255,.92); color: #14140C; }
.catnav::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.2);
}

/* ---- hero grid ---- */
.topgrid {
  display: grid;
  grid-template-columns: minmax(0, 1.66fr) minmax(0, 1fr);
  gap: 18px;
  min-height: 610px;
  color: #fff;
}

.stage { display: flex; flex-direction: column; padding: 12px 8px 8px; }

.stage__body { max-width: 620px; }

.stage__title {
  font-family: var(--serif);
  font-size: clamp(38px, 5.4vw, 70px);
  line-height: 1.0;
  letter-spacing: -.03em;
  font-weight: 600;
  margin: 14px 0 0;
  /* the headline fades from warm yellow into near-white, top-left to bottom-right */
  background: linear-gradient(152deg,
      #FFE067 0%,
      #F7D247 26%,
      #F2DE9C 58%,
      #FBF7EC 82%,
      #FFFFFF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 26px rgba(0,0,0,.4));
}
.stage__title em {
  font-style: italic;
  font-weight: 400;
  -webkit-text-fill-color: #fff;
  color: #fff;
}
.stage__title a { color: inherit; -webkit-text-fill-color: inherit; }

.stage__sub {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(22px, 2.9vw, 38px);
  line-height: 1.12;
  letter-spacing: -.02em;
  color: rgba(255,255,255,.95);
  max-width: 20ch;
  margin: 6px 0 0;
  text-shadow: 0 2px 26px rgba(0,0,0,.42);
}

.stage__read {
  margin-top: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.72);
}

.stage__meta {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 12px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.72);
}
.stage__avatar {
  width: 30px; height: 30px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,.18);
  display: grid; place-items: center;
  font-size: 11px; font-weight: 800; color: #fff;
  flex: none;
}
.stage__avatar img { width: 100%; height: 100%; object-fit: cover; }

.dots { display: flex; gap: 6px; margin-top: 22px; }
.dots button {
  width: 36px; height: 36px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: none;
  color: rgba(255,255,255,.55);
  font-size: 13px; font-weight: 700;
  cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.dots button:hover { color: #fff; }
.dots button.is-on {
  background: rgba(255,255,255,.16);
  border-color: var(--glass-line);
  backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.24);
  color: #fff;
}

.nextwrap { margin-top: auto; padding-top: 26px; }
.nextwrap .kicker { display: block; margin-bottom: 9px; color: rgba(255,255,255,.6); }

/* ---- glass cards on the photograph ---- */
.glass {
  position: relative;
  background:
    linear-gradient(147deg, rgba(255,255,255,.13) 0%, rgba(255,255,255,.03) 42%, rgba(255,255,255,0) 70%),
    var(--glass);
  backdrop-filter: blur(26px) saturate(150%);
  -webkit-backdrop-filter: blur(26px) saturate(150%);
  border: 1px solid var(--glass-line);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.20),
    inset 0 -1px 0 rgba(255,255,255,.05),
    0 18px 46px rgba(0,0,0,.32);
  transition: background .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.glass:hover {
  background:
    linear-gradient(147deg, rgba(255,255,255,.18) 0%, rgba(255,255,255,.05) 42%, rgba(255,255,255,0) 70%),
    var(--glass-hi);
  transform: translateY(-3px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.26),
    0 24px 56px rgba(0,0,0,.4);
}

.minicard {
  display: flex;
  align-items: center;
  gap: 14px;
  border-radius: var(--r-md);
  padding: 12px;
  max-width: 400px;
}
.minicard__thumb {
  width: 88px; height: 64px;
  border-radius: var(--r-sm);
  overflow: hidden;
  flex: none;
  background: rgba(255,255,255,.1);
}
.minicard__thumb img { width: 100%; height: 100%; object-fit: cover; }
.minicard__t { font-family: var(--serif); font-size: 17px; font-weight: 600; line-height: 1.18; }
.minicard__m {
  font-size: 10.5px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: rgba(255,255,255,.6); margin-top: 5px;
}

.side { display: flex; flex-direction: column; gap: 14px; }

.bigcard {
  border-radius: var(--r-lg);
  padding: 14px;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
}
.bigcard__media {
  border-radius: var(--r-md);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: rgba(255,255,255,.08);
}
.bigcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.bigcard:hover .bigcard__media img { transform: scale(1.05); }
.bigcard__body { padding: 16px 6px 6px; }
.bigcard__t {
  font-family: var(--serif);
  font-size: 22px; font-weight: 600; line-height: 1.16;
  letter-spacing: -.015em;
  display: flex; align-items: center; gap: 8px;
}
.bigcard__x { color: rgba(255,255,255,.72); font-size: 14px; margin: 10px 0 0; }
.bigcard__m {
  font-size: 10.5px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: rgba(255,255,255,.55); margin-top: 14px;
}

.sidecard {
  display: flex;
  align-items: center;
  gap: 14px;
  border-radius: var(--r-lg);
  padding: 13px;
}
.sidecard__thumb {
  width: 96px; height: 70px;
  border-radius: var(--r-md);
  overflow: hidden; flex: none;
  background: rgba(255,255,255,.08);
}
.sidecard__thumb img { width: 100%; height: 100%; object-fit: cover; }
.sidecard__t { font-family: var(--serif); font-size: 17px; font-weight: 600; line-height: 1.2; }
.sidecard__m {
  font-size: 10.5px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: rgba(255,255,255,.55); margin-top: 6px;
}

/* =========================================================================
   LIGHT HEADER — every page that is not the home page
   ========================================================================= */
.masthead--light {
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.masthead--light .iconbtn,
.masthead--light .searchpill {
  background: var(--wash);
  border-color: transparent;
  color: var(--ink);
}
.masthead--light .searchpill { color: var(--ink-3); }
.masthead--light .iconbtn:hover, .masthead--light .searchpill:hover { background: var(--wash-2); }
.masthead--light .masthead__date { color: var(--ink-3); }
.masthead--light .logo em { color: var(--yellow-d); }

.catnav--light {
  background: var(--wash);
  border-color: transparent;
  backdrop-filter: none;
  margin-top: 16px;
}
.catnav--light a { color: var(--ink-2); }
.catnav--light a:hover { color: var(--ink); background: var(--wash-2); }
.catnav--light a.is-on { background: var(--dark); color: #fff; }

/* =========================================================================
   LIGHT BODY
   ========================================================================= */
.band { padding: 44px var(--gutter) 0; }

.band__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}
.band__title {
  font-family: var(--serif);
  font-size: clamp(26px, 3.2vw, 38px);
  line-height: 1.05;
  letter-spacing: -.025em;
  font-weight: 600;
}
.band__more {
  font-size: 13px; font-weight: 700;
  color: var(--ink-2);
  display: inline-flex; align-items: center; gap: 7px;
  white-space: nowrap;
  transition: color .2s var(--ease), gap .2s var(--ease);
}
.band__more:hover { color: var(--yellow-d); gap: 12px; }

.split { display: grid; grid-template-columns: minmax(0,1fr) 330px; gap: 22px; align-items: start; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(248px, 1fr)); gap: 18px; }

.card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
  overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }

.card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--wash-2); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card__media img { transform: scale(1.06); }
.card__tag { position: absolute; left: 12px; top: 12px; }

.card__body { padding: 15px 17px 17px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.card__name {
  font-family: var(--serif);
  font-size: 21px; font-weight: 600; line-height: 1.15; letter-spacing: -.015em;
  display: flex; align-items: center; gap: 7px;
}
.card__known {
  font-size: 13.5px; color: var(--ink-3);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card__foot {
  margin-top: auto; padding-top: 13px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: var(--ink-3);
}
.card__foot b { color: var(--ink); }

.tick {
  display: inline-grid; place-items: center;
  width: 17px; height: 17px;
  border-radius: 50%;
  background: var(--yellow);
  color: #14140C;
  font-size: 10px; font-weight: 800;
  flex: none;
}

.plate {
  width: 100%; height: 100%;
  display: grid; place-items: center;
  font-family: var(--serif); font-weight: 600; font-size: 36px;
  color: #fff;
  background: linear-gradient(145deg, hsl(var(--h,45) 42% 46%), hsl(calc(var(--h,45) + 30) 38% 26%));
}

.ranked { background: var(--paper); border-radius: var(--r-lg); padding: 6px 20px 12px; box-shadow: var(--shadow-1); }
.ranked__head { padding: 15px 0 11px; border-bottom: 2px solid var(--yellow); margin-bottom: 4px; }
.rank { display: flex; gap: 15px; padding: 13px 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.rank:last-child { border-bottom: 0; }
.rank__n {
  font-family: var(--serif); font-size: 30px; font-weight: 500; line-height: 1;
  color: var(--line-2); flex: none; width: 28px;
  transition: color .2s var(--ease);
}
.rank:hover .rank__n { color: var(--yellow-d); }
.rank__name { font-weight: 700; font-size: 15px; line-height: 1.3; }
.rank__meta { font-size: 12px; color: var(--ink-3); font-weight: 600; margin-top: 3px; }

.scroller {
  display: flex; gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 10px;
  margin-inline: calc(var(--gutter) * -1);
  padding-inline: var(--gutter);
  scrollbar-width: none;
  cursor: grab;
}
.scroller::-webkit-scrollbar { display: none; }
.scroller.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.scroller > * { flex: 0 0 262px; scroll-snap-align: start; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips a {
  font-size: 13.5px; font-weight: 600;
  padding: 10px 18px; border-radius: 999px;
  background: var(--wash);
  color: var(--ink-2);
  transition: background .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.chips a:hover { background: var(--dark); color: #fff; transform: translateY(-2px); }
.chips a.is-on { background: var(--yellow); color: #14140C; }
.chips a em { font-style: normal; opacity: .5; margin-left: 5px; font-size: 12px; }

/* ================================================================ browse */
.browse { padding: 22px var(--gutter) 30px; }

.browse__top {
  background: var(--wash);
  border-radius: var(--r-lg);
  padding: clamp(24px, 3.6vw, 40px);
  margin-bottom: 20px;
}
.browse__title {
  font-family: var(--serif);
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.02; letter-spacing: -.03em; font-weight: 600;
}
.browse__title em { font-style: italic; font-weight: 400; color: var(--yellow-d); }
.browse__lede { color: var(--ink-3); max-width: 58ch; margin: 12px 0 0; font-size: 16px; }

.searchbar {
  display: flex; align-items: center; gap: 10px;
  background: var(--paper);
  border-radius: 999px;
  padding: 6px 6px 6px 20px;
  margin-top: 22px;
  max-width: 620px;
  box-shadow: var(--shadow-1);
}
.searchbar:focus-within { box-shadow: 0 0 0 3px rgba(247,210,71,.5); }
.searchbar input { flex: 1; border: 0; background: none; outline: none; font-size: 15.5px; padding: 12px 0; }
.searchbar input::placeholder { color: var(--ink-4); }

.list { display: flex; flex-direction: column; gap: 10px; }

.row {
  display: grid;
  grid-template-columns: 92px 1fr 150px 130px 26px;
  align-items: center;
  gap: 18px;
  background: var(--paper);
  border-radius: var(--r-lg);
  padding: 12px 20px 12px 12px;
  box-shadow: var(--shadow-1);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}
.row:hover { transform: translateX(5px); box-shadow: var(--shadow-2); }

.row__media { width: 92px; height: 68px; border-radius: var(--r-md); overflow: hidden; background: var(--wash-2); }
.row__media img { width: 100%; height: 100%; object-fit: cover; }
.row__media .plate { font-size: 20px; }

.row__name {
  font-family: var(--serif); font-size: 21px; font-weight: 600; line-height: 1.15;
  display: flex; align-items: center; gap: 7px;
}
.row__known { font-size: 13.5px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row__cat { font-size: 11.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-2); }
.row__reach { font-size: 13.5px; font-weight: 700; }
.row__reach span { color: var(--ink-3); font-weight: 600; font-size: 11.5px; }
.row__go { color: var(--ink-4); text-align: right; transition: color .2s var(--ease), transform .2s var(--ease); }
.row:hover .row__go { color: var(--yellow-d); transform: translateX(4px); }

.filterbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.count { font-size: 13px; font-weight: 700; color: var(--ink-3); }

.seg { display: flex; gap: 2px; background: var(--wash); padding: 5px; border-radius: 999px; margin-left: auto; }
.seg a {
  font-size: 12.5px; font-weight: 700;
  padding: 7px 15px; border-radius: 999px;
  color: var(--ink-3);
  transition: background .2s var(--ease), color .2s var(--ease);
}
.seg a:hover { color: var(--ink); }
.seg a.is-on { background: var(--paper); color: var(--ink); box-shadow: var(--shadow-1); }

.pager { display: flex; gap: 7px; justify-content: center; padding-top: 30px; }
.pager a, .pager span {
  min-width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 999px;
  font-size: 14px; font-weight: 700;
  color: var(--ink-2);
  background: var(--wash);
  padding: 0 12px;
  transition: background .2s var(--ease);
}
.pager a:hover { background: var(--wash-2); }
.pager .is-on { background: var(--dark); color: #fff; }

/* =========================================================== profile page */
.reading { position: fixed; top: 0; left: 0; height: 3px; background: var(--yellow); z-index: 200; width: 0; transition: width .1s linear; }

.bio { padding: 22px var(--gutter) 30px; }
.bio__grid {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr) 208px;
  gap: 26px;
  align-items: start;
}

.idcard {
  position: sticky; top: 16px;
  background: var(--dark);
  color: #fff;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-2);
}
.idcard__photo { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: #26262C; }
.idcard__photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.idcard__photo::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, var(--dark) 2%, transparent 48%);
}
.idcard__name {
  position: absolute; left: 20px; right: 20px; bottom: 14px;
  font-family: var(--serif);
  font-size: 38px; font-weight: 600; line-height: .98; letter-spacing: -.03em;
  color: #fff; z-index: 2;
}
.idcard__facts { padding: 4px 20px 18px; }
.idfact { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.idfact:last-child { border-bottom: 0; }
.idfact dt {
  font-size: 10px; font-weight: 800; letter-spacing: .13em;
  text-transform: uppercase; color: var(--yellow); margin-bottom: 5px;
}
.idfact dd { margin: 0; font-size: 14.5px; line-height: 1.45; color: rgba(255,255,255,.88); }

.idcard__links { border-top: 1px solid rgba(255,255,255,.1); }
.plink {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 13px 20px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: background .2s var(--ease);
}
.plink:last-child { border-bottom: 0; }
.plink:hover { background: rgba(255,255,255,.07); }
.plink__p { font-size: 13.5px; font-weight: 700; }
.plink__h { font-size: 12px; color: rgba(255,255,255,.5); }
.plink__n { font-size: 14px; font-weight: 700; color: var(--yellow); }

.article { background: var(--paper); border-radius: var(--r-lg); padding: clamp(4px, 1vw, 10px) 0 0; }
.article__head { margin-bottom: 24px; }
.article__kicker { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-bottom: 16px; }
.article__title {
  font-family: var(--serif);
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.02; letter-spacing: -.035em; font-weight: 600;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.article__title .tick { width: 25px; height: 25px; font-size: 13px; }
.article__standfirst {
  font-family: var(--serif);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.5;
  color: var(--ink);
  font-weight: 500;
  margin-top: 14px;
}

.byline {
  display: flex; align-items: center; gap: 11px;
  padding: 15px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 22px 0 28px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-3);
  flex-wrap: wrap;
}
.byline__who { color: var(--ink); }
.byline__dot { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-4); }

.avatar-sm {
  width: 32px; height: 32px;
  border-radius: 999px;
  background: var(--wash-2);
  display: grid; place-items: center;
  font-size: 11px; font-weight: 800; color: var(--ink-2);
  overflow: hidden; flex: none;
}
.avatar-sm img { width: 100%; height: 100%; object-fit: cover; }

.section { scroll-margin-top: 24px; margin-bottom: 38px; }
.section__h {
  font-family: var(--serif);
  font-size: clamp(24px, 2.8vw, 31px);
  line-height: 1.12; letter-spacing: -.02em; font-weight: 600;
  margin-bottom: 14px;
  display: flex; align-items: baseline; gap: 12px;
}
.section__h::before {
  content: '';
  width: 15px; height: 3px;
  background: var(--yellow);
  border-radius: 2px; flex: none;
  transform: translateY(-6px);
}

.prose p { font-size: 17px; line-height: 1.78; color: #2C2C35; }
.prose a { color: var(--yellow-d); font-weight: 600; border-bottom: 1.5px solid rgba(185,149,18,.35); }
.prose a:hover { border-color: var(--yellow-d); }
.prose strong { font-weight: 700; color: var(--ink); }

.factstrip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin: 0 0 32px;
}
.factstrip > div { background: var(--wash); border-radius: var(--r-md); padding: 15px 16px; }
.factstrip dt { font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px; }
.factstrip dd { margin: 0; font-size: 19px; font-weight: 600; font-family: var(--serif); }

.tl { display: flex; gap: 20px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.tl:last-child { border-bottom: 0; }
.tl__y { font-family: var(--serif); font-size: 20px; font-weight: 600; color: var(--yellow-d); flex: none; width: 60px; }
.tl__t { font-weight: 700; font-size: 16.5px; }
.tl__d { color: var(--ink-3); font-size: 14.5px; margin-top: 2px; }

.faq details { background: var(--wash); border-radius: var(--r-md); margin-bottom: 8px; overflow: hidden; }
.faq summary {
  cursor: pointer; list-style: none;
  padding: 15px 18px;
  font-weight: 700; font-size: 16px;
  display: flex; justify-content: space-between; gap: 14px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 20px; color: var(--yellow-d); flex: none; transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 18px 16px; color: var(--ink-2); font-size: 15.5px; }

.toc { position: sticky; top: 16px; }
.toc__t {
  font-size: 10.5px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase;
  color: var(--ink-3); padding-bottom: 12px; margin-bottom: 6px; border-bottom: 1px solid var(--line);
}
.toc a {
  display: block; font-size: 13.5px; font-weight: 600;
  color: var(--ink-3);
  padding: 8px 0 8px 14px;
  border-left: 2px solid var(--line);
  transition: color .2s var(--ease), border-color .2s var(--ease), padding-left .2s var(--ease);
}
.toc a:hover { color: var(--ink); }
.toc a.is-on { color: var(--ink); border-left-color: var(--yellow); padding-left: 18px; }

.tocbar { display: none; }

.footbar {
  background: var(--wash);
  border-radius: var(--r-lg);
  padding: 20px 24px;
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
  gap: 22px;
}
.footbar dt { font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 7px; }
.footbar dd { margin: 0; font-size: 14.5px; color: var(--ink-2); line-height: 1.5; }

.empty { background: var(--wash); border-radius: var(--r-lg); padding: 58px 26px; text-align: center; }
.empty h3 { font-family: var(--serif); font-size: 28px; font-weight: 600; margin-bottom: 8px; }
.empty p { color: var(--ink-3); max-width: 44ch; margin-inline: auto; }

/* ================================================================ footer */
.foot { background: var(--dark); color: #fff; padding: 48px var(--gutter) 34px; margin-top: 48px; }
.foot__grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 32px; }
.foot .logo { position: static; transform: none; font-size: 27px; display: block; }
.foot__brand p { color: rgba(255,255,255,.55); font-size: 14.5px; max-width: 32ch; margin-top: 14px; }
.foot__col h4 { font-size: 10px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; color: rgba(255,255,255,.45); margin-bottom: 13px; }
.foot__col a { display: block; font-size: 14.5px; color: rgba(255,255,255,.8); padding: 5px 0; transition: color .2s var(--ease), transform .2s var(--ease); }
.foot__col a:hover { color: var(--yellow); transform: translateX(3px); }
.foot__base {
  margin-top: 36px; padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 12.5px; color: rgba(255,255,255,.45);
}

/* ============================================================== overlays */
.searchpane {
  position: fixed; inset: 0; z-index: 140;
  background: rgba(10,10,12,.55);
  backdrop-filter: blur(10px);
  opacity: 0; pointer-events: none;
  transition: opacity .28s var(--ease);
  display: grid; place-items: start center;
  padding: 12vh 20px;
}
.searchpane.is-open { opacity: 1; pointer-events: auto; }
.searchpane__card {
  width: 100%; max-width: 680px;
  background: var(--paper);
  border-radius: var(--r-lg);
  padding: 26px;
  box-shadow: var(--shadow-2);
  transform: translateY(-14px) scale(.98);
  opacity: 0;
  transition: transform .34s var(--ease), opacity .34s var(--ease);
}
.searchpane.is-open .searchpane__card { transform: none; opacity: 1; }
.searchpane__row {
  display: flex; align-items: center; gap: 14px;
  border-bottom: 2px solid var(--yellow);
  padding-bottom: 14px;
}
.searchpane__row input {
  flex: 1; border: 0; outline: none; background: none;
  font-family: var(--serif);
  font-size: clamp(22px, 4vw, 32px); font-weight: 500;
}
.searchpane__row input::placeholder { color: var(--ink-4); }
.suggest { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }

.rv { opacity: 0; transform: translateY(18px); }
.rv.in { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .7s var(--ease); }

.tabbar { display: none; }

/* ============================================================ responsive */
@media (max-width: 1180px) {
  .topgrid { grid-template-columns: 1fr; min-height: 0; }
  .stage { min-height: 420px; }
  .side { flex-direction: row; flex-wrap: wrap; }
  .bigcard { flex: 1 1 320px; }
  .sidecard { flex: 1 1 260px; }
  .bio__grid { grid-template-columns: 280px minmax(0,1fr); }
  .toc { display: none; }
  .split { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .row { grid-template-columns: 76px 1fr 110px; }
  .row__cat, .row__go { display: none; }
  .row__media { width: 76px; height: 60px; }
}

@media (max-width: 780px) {
  :root { --gutter: 14px; }

  body { padding-bottom: 74px; background: var(--paper); }
  .app { margin: 0; border-radius: 0; box-shadow: none; }

  .masthead { height: 62px; }
  .masthead__date { display: none; }
  .logo { position: static; transform: none; font-size: 22px; margin-right: auto; }
  .searchpill { width: 44px; padding: 0; justify-content: center; }
  .searchpill span { display: none; }
  .masthead__act .btn { display: none; }

  .tabbar {
    display: flex;
    position: fixed; left: 0; right: 0; bottom: 0;
    z-index: 100;
    background: rgba(255,255,255,.92);
    backdrop-filter: saturate(180%) blur(20px);
    border-top: 1px solid var(--line);
    padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
  }
  .tab {
    flex: 1;
    display: flex; flex-direction: column; align-items: center; gap: 3px;
    font-size: 10.5px; font-weight: 700;
    color: var(--ink-3);
    padding: 5px 0;
    background: none; border: 0;
    transition: color .2s var(--ease), transform .12s var(--ease);
  }
  .tab svg { width: 21px; height: 21px; }
  .tab:active { transform: scale(.9); }
  .tab.is-on { color: var(--yellow-d); }

  .stage { min-height: 380px; padding: 8px 4px 4px; }
  .stage__title { font-size: clamp(30px, 8.6vw, 42px); }
  .minicard { max-width: none; }
  .side { flex-direction: column; }

  .grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .card__name { font-size: 17px; }
  .card__known { font-size: 12.5px; }
  .card__body { padding: 12px 13px 14px; }

  .bio__grid { grid-template-columns: 1fr; gap: 14px; }
  .idcard { position: static; }
  .idcard__photo { aspect-ratio: 16 / 11; }
  .idcard__name { font-size: 32px; }

  .tocbar {
    display: flex; gap: 8px;
    overflow-x: auto; scrollbar-width: none;
    position: sticky; top: 0; z-index: 60;
    background: rgba(255,255,255,.97);
    backdrop-filter: blur(16px);
    margin-inline: calc(var(--gutter) * -1);
    padding: 10px var(--gutter);
    border-bottom: 1px solid var(--line);
  }
  .tocbar::-webkit-scrollbar { display: none; }
  .tocbar a {
    font-size: 13px; font-weight: 700; white-space: nowrap;
    padding: 8px 14px; border-radius: 999px;
    background: var(--wash); color: var(--ink-2);
  }
  .tocbar a.is-on { background: var(--yellow); color: #14140C; }

  .foot__grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .seg { margin-left: 0; width: 100%; overflow-x: auto; }
}

@media (max-width: 420px) {
  .grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .rv { opacity: 1; transform: none; }
}
