:root {
  --ink: #121417;
  --muted: #646a73;
  --paper: #faf7f0;
  --white: #fffdf8;
  --line: #ded8cc;
  --page-pad: clamp(72px, 13vw, 220px);
  --erdogan: #f6b21a;
  --ogan: #2f80d8;
  --kilicdaroglu: #e30613;
  font-family: "Finlandica Headline", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(22px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes topbar-in {
  from {
    opacity: 0;
    transform: translate(-50%, 12px);
  }

  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

@keyframes scale-in {
  from {
    opacity: 0;
    transform: scale(0.94);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes word-pop {
  from {
    opacity: 0;
    transform: translate(-50%, -44%) scale(0.86);
  }

  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes bar-grow {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
}

a {
  color: inherit;
  text-decoration: none;
}

.topbar {
  position: fixed;
  z-index: 20;
  top: 18px;
  left: 50%;
  display: flex;
  gap: 8px;
  padding: 7px;
  border: 1px solid rgba(18, 20, 23, 0.12);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.82);
  backdrop-filter: blur(14px);
  transform: translateX(-50%);
  animation: topbar-in 520ms ease both;
}

.topbar a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.topbar a:hover,
.topbar a.active {
  background: var(--ink);
  color: var(--white);
  transform: translateY(-1px);
}

.topbar a.active {
  box-shadow: 0 8px 22px rgba(18, 20, 23, 0.12);
}

.language-toggle {
  display: flex;
  gap: 3px;
  margin-left: 4px;
  padding-left: 7px;
  border-left: 1px solid var(--line);
}

.language-toggle button {
  padding: 8px 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.language-toggle button.active,
.language-toggle button:hover {
  background: var(--ink);
  color: var(--white);
  transform: translateY(-1px);
}

.hero {
  min-height: 100vh;
  padding: 104px var(--page-pad) 70px;
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: block;
  min-height: calc(100vh - 174px);
}

.hero-copy {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  animation: fade-up 700ms 80ms ease both;
}

.hero-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  opacity: 0.82;
  animation: scale-in 620ms 160ms ease both;
}

.metric-portrait::after {
  position: absolute;
  inset: 0;
  background: var(--candidate-color);
  content: "";
  mix-blend-mode: color;
  opacity: 0.48;
  pointer-events: none;
}

.kicker,
.eyebrow {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: none;
}

.kicker {
  margin-bottom: 22px;
}

h1,
h2,
p {
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(76px, 12vw, 176px);
  line-height: 0.82;
  font-weight: 900;
}

h2 {
  margin: 0;
  font-size: clamp(34px, 5vw, 68px);
  line-height: 0.94;
  font-weight: 900;
}

.lede {
  max-width: 520px;
  margin: 22px 0 0;
  color: #30343a;
  font-size: clamp(18px, 1.8vw, 23px);
  line-height: 1.42;
}

.hero-graphic {
  max-width: 980px;
  min-height: 520px;
  margin: 72px auto 0;
  position: relative;
  overflow: hidden;
  padding: 22px 28px 0;
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.42);
  animation: fade-up 760ms 220ms ease both;
}

.word-orbit,
.word-field {
  position: relative;
  min-height: 470px;
}

.graphic-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: none;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
  letter-spacing: 0;
  text-transform: none;
}

.legend span {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  color: #333840;
  font-size: 13px;
  font-weight: 800;
}

.legend i {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.erdogan-dot {
  background: var(--erdogan);
}

.ogan-dot {
  background: var(--ogan);
}

.kilicdaroglu-dot {
  background: var(--kilicdaroglu);
}

.floating-word {
  position: absolute;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  white-space: nowrap;
  color: var(--word-color);
  cursor: pointer;
  font-weight: 900;
  line-height: 1;
  transform: translate(-50%, -50%);
  animation: word-pop 520ms ease both;
  animation-delay: var(--word-delay, 0ms);
  transition: transform 220ms ease, opacity 220ms ease, filter 220ms ease;
}

.floating-word small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.24em;
  font-weight: 800;
  line-height: 1;
}

.floating-word:hover {
  filter: saturate(1.18);
  transform: translate(-50%, -50%) scale(1.08);
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

main {
  overflow: hidden;
}

.section,
.phrases,
.raw-data,
.method {
  display: block;
  max-width: 760px;
  margin: 0 auto;
  padding: 96px 24px;
}

.section p,
.phrases p,
.raw-data p,
.method p,
.sticky-copy p {
  max-width: 650px;
  margin: 0;
  color: #343941;
  font-size: clamp(17px, 2vw, 24px);
  line-height: 1.45;
}

.section h2,
.phrases h2,
.raw-data h2,
.method h2 {
  margin-bottom: 24px;
}

.act-card {
  max-width: 680px;
  margin: 0 auto 84px;
  padding: 26px 30px 30px;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--line);
  background: var(--white);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.act-card:hover {
  box-shadow: 0 18px 45px rgba(18, 20, 23, 0.08);
  transform: translateY(-3px);
}

.act-card > img {
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  opacity: 0.74;
}

.act-card p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.act-card h2 {
  margin-bottom: 18px;
  font-size: clamp(28px, 4vw, 48px);
}

.act-card ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
  color: #343941;
  font-size: 18px;
  line-height: 1.35;
}

.findings {
  max-width: 1040px;
  margin: 0 auto 76px;
  padding: 0 24px;
}

.findings > h2 {
  max-width: 720px;
  margin-bottom: 30px;
}

.finding-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.finding-grid article {
  padding: 22px;
  border-top: 8px solid var(--candidate-color);
  background: var(--white);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.candidate-photo-wrap {
  position: relative;
  margin-bottom: 18px;
  overflow: hidden;
  border-bottom: 4px solid var(--candidate-color);
  background: var(--candidate-color);
}

.candidate-photo-wrap::after {
  position: absolute;
  inset: 0;
  background: var(--candidate-color);
  content: "";
  mix-blend-mode: color;
  opacity: 0.5;
  pointer-events: none;
}

.candidate-photo {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(55%) contrast(1.12);
  transition: filter 220ms ease, transform 220ms ease;
}

.finding-grid article:hover .candidate-photo {
  filter: grayscale(28%) contrast(1.08);
  transform: scale(1.025);
}

.finding-grid article:hover,
.metric-card:hover,
.cluster-card:hover,
.phrase-card:hover,
.raw-data-grid article:hover {
  box-shadow: 0 18px 45px rgba(18, 20, 23, 0.08);
  transform: translateY(-3px);
}

.finding-grid h3 {
  margin: 0 0 16px;
  font-size: 24px;
  line-height: 1.05;
}

.finding-grid p {
  margin: 0;
  color: #343941;
  font-size: 17px;
  line-height: 1.42;
}

.finding-note {
  max-width: 680px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

.section-insight,
.conclusion {
  max-width: 760px;
  margin: 0 auto 78px;
  padding: 0 24px;
}

.section-insight {
  border-left: 4px solid var(--ink);
}

.section-insight h3,
.conclusion h2 {
  margin: 0 0 14px;
}

.section-insight h3 {
  font-size: clamp(24px, 3.2vw, 36px);
  line-height: 1.05;
}

.section-insight p,
.conclusion p {
  margin: 0;
  color: #343941;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.45;
}

.conclusion {
  max-width: 900px;
  margin-top: 18px;
  padding: 34px 30px 38px;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--line);
  background: var(--white);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.conclusion:hover {
  box-shadow: 0 18px 45px rgba(18, 20, 23, 0.08);
  transform: translateY(-3px);
}

.raw-data {
  max-width: 1040px;
  border-top: 1px solid var(--line);
}

.raw-data > p {
  margin-bottom: 30px;
}

.raw-data-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.raw-data-grid article {
  padding: 18px;
  border-top: 8px solid var(--candidate-color);
  background: var(--white);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.raw-data-grid h3 {
  margin: 0 0 14px;
  font-size: 22px;
}

.raw-data-grid a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  color: #343941;
  font-size: 15px;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: color 180ms ease, padding-left 180ms ease;
}

.raw-data-grid a:hover {
  color: var(--candidate-color);
  padding-left: 6px;
}

.raw-data-grid a::after {
  content: "txt";
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.metrics {
  max-width: 980px;
  margin: 0 auto 64px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.metric-card {
  min-height: 260px;
  padding: 38px;
  background: var(--white);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.metric-portrait {
  position: relative;
  height: 130px;
  margin: -16px -16px 24px;
  overflow: hidden;
  border-bottom: 4px solid var(--candidate-color);
  background: var(--candidate-color);
}

.metric-portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  filter: grayscale(58%) contrast(1.12);
  transition: filter 220ms ease, transform 220ms ease;
}

.metric-card:hover .metric-portrait img {
  filter: grayscale(30%) contrast(1.08);
  transform: scale(1.025);
}

.metric-card h3 {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 0 0 30px;
  font-size: 26px;
}

.dot {
  width: 13px;
  height: 13px;
  border-radius: 999px;
  background: var(--candidate-color);
  transition: transform 180ms ease;
}

button:hover .dot,
.metric-card:hover .dot,
.phrase-card:hover .dot {
  transform: scale(1.18);
}

.stat {
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 15px;
}

.stat strong {
  color: var(--ink);
  font-size: 23px;
}

.story-block {
  display: block;
  max-width: 1040px;
  margin: 0 auto;
  padding: 92px 24px;
  border-top: 0;
}

.sticky-copy {
  max-width: 700px;
  margin: 0 auto 44px;
  position: static;
}

.sticky-copy h2 {
  margin-bottom: 22px;
}

.segmented,
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 30px;
}

button,
select {
  font: inherit;
}

.segmented button,
.toolbar button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.segmented button {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  padding: 11px 15px;
  font-weight: 800;
}

.tab-photo {
  width: 26px;
  height: 26px;
  margin-left: -5px;
  border: 1px solid rgba(18, 20, 23, 0.18);
  border-radius: 999px;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(45%) contrast(1.08);
}

.segmented button.active,
.toolbar button.active {
  background: var(--ink);
  color: var(--white);
}

.segmented button:hover,
.toolbar button:hover {
  border-color: var(--ink);
  transform: translateY(-1px);
}

.panel {
  min-height: 600px;
  padding: 24px 28px 30px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.55);
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  font-size: 15px;
  font-weight: 900;
}

.muted {
  color: var(--muted);
  font-weight: 500;
}

.identity-tool {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 24px 110px;
}

.toolbar {
  margin: 0 0 24px;
}

.toolbar button {
  padding: 9px 13px;
  font-size: 14px;
}

.identity-chart {
  display: grid;
  gap: 16px;
}

.identity-row {
  display: grid;
  grid-template-columns: 160px 1fr 94px;
  gap: 16px;
  align-items: center;
}

.bar-track {
  height: 34px;
  border-left: 1px solid var(--line);
  background-image: linear-gradient(to right, rgba(18, 20, 23, 0.07) 1px, transparent 1px);
  background-size: 20% 100%;
}

.bar {
  height: 100%;
  min-width: 2px;
  background: var(--candidate-color);
  transform-origin: left center;
  animation: bar-grow 680ms ease both;
}

.identity-row strong {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 18px;
}

.identity-row > span {
  font-size: 18px;
  text-align: right;
}

.identity-row > span strong {
  display: block;
  font-size: 22px;
}

.identity-row small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.select-label {
  display: block;
  margin: 30px 0 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: none;
}

select {
  width: min(100%, 320px);
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font-weight: 800;
}

.cluster-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.cluster-card {
  min-height: 330px;
  padding: 18px;
  border-top: 8px solid var(--candidate-color);
  background: var(--white);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.cluster-card h3 {
  margin: 0 0 16px;
  font-size: 22px;
}

.cluster-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  cursor: pointer;
  font-size: 15px;
  transition: color 180ms ease, padding-left 180ms ease;
}

.cluster-item:hover {
  color: var(--candidate-color);
  padding-left: 6px;
}

.cluster-item span:first-child {
  font-weight: 800;
}

.cluster-item small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
}

.phrases {
  max-width: 1040px;
  border-top: 1px solid var(--line);
}

.phrase-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.phrases .phrase-note {
  margin-top: 18px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
}

.phrase-card {
  padding: 18px;
  background: var(--white);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.phrase-card h3 {
  margin: 0 0 12px;
  font-size: 21px;
}

.phrase-pill {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
  cursor: pointer;
  font-size: 14px;
  transition: color 180ms ease, padding-left 180ms ease;
}

.phrase-pill:hover {
  color: var(--candidate-color);
  padding-left: 6px;
}

.phrase-pill small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
}

.method {
  max-width: none;
  border-top: 1px solid var(--line);
  background: var(--ink);
  color: var(--white);
}

.method > .eyebrow,
.method > h2,
.method > .method-grid {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.method .eyebrow,
.method p {
  color: rgba(255, 253, 248, 0.72);
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 253, 248, 0.18);
}

.method-grid p {
  padding: 22px;
  background: var(--ink);
  font-size: 17px;
}

.method .credits {
  max-width: 900px;
  margin: 26px auto 0;
  color: rgba(255, 253, 248, 0.56);
  font-size: 11px;
  line-height: 1.25;
}

.method .credits a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.image-credits {
  max-width: 900px;
  margin: 22px auto 0;
  color: rgba(255, 253, 248, 0.56);
}

.image-credits p {
  margin: 0 0 8px;
  color: rgba(255, 253, 248, 0.72);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.image-credits ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.image-credits li {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 10px;
  align-items: baseline;
  font-size: 11px;
  line-height: 1.35;
}

.image-credits strong {
  color: rgba(255, 253, 248, 0.84);
}

.image-credits a {
  color: inherit;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 900px) {
  :root {
    --page-pad: 40px;
  }

  .hero-grid,
  .section,
  .story-block,
  .phrases,
  .raw-data,
  .method {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 92px;
    padding-bottom: 42px;
  }

  .hero-graphic,
  .word-orbit,
  .word-field {
    min-height: 430px;
  }

  .hero-graphic {
    margin-top: 42px;
    padding: 18px;
  }

  .metrics,
  .finding-grid,
  .cluster-grid,
  .phrase-columns,
  .raw-data-grid,
  .method-grid {
    grid-template-columns: 1fr;
  }

  .sticky-copy {
    position: static;
  }

  .panel {
    min-height: 500px;
    padding: 18px;
  }

  .identity-row {
    grid-template-columns: 120px 1fr 52px;
  }
}

@media (max-width: 560px) {
  :root {
    --page-pad: 20px;
  }

  .topbar {
    width: calc(100% - 20px);
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px;
    top: 10px;
    border-radius: 18px;
  }

  .topbar a {
    padding: 7px 8px;
    font-size: 11px;
  }

  .language-toggle {
    margin-left: 0;
    padding-left: 0;
    border-left: 0;
  }

  .language-toggle button {
    padding: 7px 8px;
    font-size: 11px;
  }

  .hero {
    padding-top: 108px;
    padding-bottom: 44px;
  }

  .hero-grid {
    min-height: 0;
  }

  .hero-icon {
    width: 34px;
    height: 34px;
    margin-bottom: 12px;
  }

  .kicker,
  .eyebrow {
    font-size: 11px;
    letter-spacing: 0.06em;
  }

  h1 {
    font-size: clamp(58px, 19vw, 92px);
    line-height: 0.86;
  }

  h2 {
    font-size: clamp(34px, 11vw, 48px);
  }

  .hero-graphic {
    display: none;
  }

  .word-orbit,
  .word-field {
    min-height: auto;
  }

  .graphic-head {
    gap: 10px;
    padding-bottom: 12px;
    font-size: 11px;
  }

  .legend {
    justify-content: flex-start;
    gap: 8px 12px;
  }

  .legend span {
    font-size: 11px;
  }

  .floating-word small {
    display: none;
  }

  .section,
  .story-block,
  .section-insight,
  .phrases,
  .raw-data,
  .method {
    padding: 58px 20px;
  }

  .section p,
  .phrases p,
  .raw-data p,
  .method p,
  .sticky-copy p {
    font-size: 17px;
  }

  .act-card,
  .findings,
  .conclusion {
    margin-bottom: 54px;
    padding-left: 20px;
    padding-right: 20px;
  }

  .section-insight {
    margin-bottom: 46px;
    padding-top: 0;
    padding-bottom: 0;
  }

  .finding-grid article,
  .metric-card,
  .cluster-card,
  .phrase-card {
    padding: 18px;
  }

  .candidate-photo {
    aspect-ratio: 16 / 10;
  }

  .metrics {
    margin-bottom: 28px;
    border-left: 0;
    border-right: 0;
  }

  .metric-card {
    min-height: auto;
  }

  .metric-portrait {
    height: 150px;
    margin: -6px -6px 18px;
  }

  .graphic-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .identity-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .identity-row > span {
    text-align: left;
  }

  .toolbar,
  .segmented {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 6px;
    scrollbar-width: none;
  }

  .toolbar::-webkit-scrollbar,
  .segmented::-webkit-scrollbar {
    display: none;
  }

  .toolbar button,
  .segmented button {
    flex: 0 0 auto;
  }

  .segmented button {
    padding: 9px 12px;
  }

  .panel {
    min-height: 420px;
    padding: 16px 14px 18px;
  }

  .panel-head {
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
  }

  .word-list {
    display: grid;
    gap: 8px;
    padding-top: 10px;
  }

  .word-list-row {
    position: relative;
    display: grid;
    grid-template-columns: 28px 1fr auto;
    gap: 10px;
    align-items: center;
    min-height: 38px;
    padding: 8px 10px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--white);
    font-size: 15px;
    font-weight: 900;
    animation: fade-up 420ms ease both;
    animation-delay: var(--row-delay, 0ms);
  }

  .word-list-row::before {
    position: absolute;
    inset: 0 auto 0 0;
    width: var(--bar-width);
    background: color-mix(in srgb, var(--candidate-color), transparent 84%);
    content: "";
  }

  .word-list-row > * {
    position: relative;
  }

  .word-list-row .rank,
  .word-list-row .count {
    color: var(--muted);
    font-size: 12px;
  }

  .word-list-row .count {
    text-align: right;
  }

  .cluster-grid,
  .phrase-columns {
    gap: 10px;
  }

  .cluster-card {
    min-height: auto;
  }

  .cluster-item,
  .phrase-pill {
    font-size: 13px;
  }

  .method-grid p {
    padding: 18px;
    font-size: 15px;
  }

  .method .credits {
    font-size: 10px;
  }

  .image-credits li {
    grid-template-columns: 1fr;
    gap: 3px;
    font-size: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
