:root {
  --background: #f7f9fc;
  --surface: #ffffff;
  --ink: #172033;
  --muted: #667085;
  --line: #dfe5ee;
  --brand: #3563e9;
  --brand-dark: #2447b5;
  --accent: #8a4ec4;
  --shadow: 0 24px 60px rgba(29, 45, 82, 0.14);
  --font-sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 86% 5%, rgba(53, 99, 233, 0.08), transparent 24rem),
    var(--background);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
}

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

a:focus-visible {
  outline: 3px solid rgba(53, 99, 233, 0.35);
  outline-offset: 4px;
}

.page-shell {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 28px 0 24px;
  border-bottom: 1px solid var(--line);
}

.brand {
  color: var(--brand);
  font-size: clamp(1.45rem, 2.2vw, 1.8rem);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 1;
}

.brand span {
  color: var(--ink);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px;
}

.nav-link {
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 650;
  padding: 8px 12px;
  transition: background 160ms ease, color 160ms ease;
}

.nav-link:hover {
  background: rgba(53, 99, 233, 0.09);
  color: var(--brand-dark);
}

.nav-link[aria-current="page"] {
  background: rgba(53, 99, 233, 0.1);
  color: var(--brand-dark);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  align-items: center;
  gap: clamp(48px, 9vw, 112px);
  min-height: 560px;
  padding: 82px 0 94px;
}

.hero-copy {
  max-width: 650px;
}

.eyebrow,
.section-kicker,
.caption-label,
.link-card-label {
  color: var(--brand);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  line-height: 1.3;
  text-transform: uppercase;
}

.eyebrow {
  margin: 0 0 22px;
}

h1,
h2,
p {
  margin-top: 0;
}

h1,
h2 {
  letter-spacing: -0.055em;
}

h1 {
  margin-bottom: 20px;
  color: var(--ink);
  font-size: clamp(3.4rem, 8vw, 6rem);
  font-weight: 800;
  line-height: 0.96;
}

.hero-lede {
  max-width: 600px;
  margin-bottom: 18px;
  color: var(--ink);
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.hero-summary {
  max-width: 570px;
  margin-bottom: 32px;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 750;
  padding: 12px 17px;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--brand);
  box-shadow: 0 8px 18px rgba(53, 99, 233, 0.22);
  color: white;
}

.button-primary:hover {
  background: var(--brand-dark);
}

.button-secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
}

.button-secondary:hover {
  border-color: var(--brand);
  color: var(--brand-dark);
}

.hero-visual {
  position: relative;
  display: grid;
  width: min(100%, 340px);
  min-height: 390px;
  place-items: center;
  justify-self: end;
}

.art-tile {
  position: absolute;
  width: 78%;
  aspect-ratio: 0.76;
  border-radius: 28px;
  background: url("gokhan.jpg") center / cover;
  box-shadow: 0 20px 42px rgba(138, 78, 196, 0.17);
  opacity: 0.72;
  transform: rotate(8deg) translate(18px, 4px);
}

.profile-card {
  position: relative;
  width: min(232px, 76%);
  margin: 0;
  padding: 14px 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 25px;
  background: var(--surface);
  box-shadow: var(--shadow);
  transform: rotate(-4deg);
  transition: transform 220ms ease;
}

.profile-card:hover {
  transform: rotate(-1deg) translateY(-4px);
}

.profile-card img {
  display: block;
  width: 100%;
  aspect-ratio: 140 / 184;
  border-radius: 16px;
  object-fit: cover;
}

.profile-card figcaption {
  display: grid;
  gap: 4px;
  padding: 14px 4px 0;
}

.caption-label {
  color: var(--accent);
  font-size: 0.64rem;
}

.profile-card strong {
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.link-section {
  padding: 58px 0 86px;
  border-top: 1px solid var(--line);
}

.section-heading {
  max-width: 600px;
}

.compact-heading {
  margin-bottom: 24px;
}

.section-kicker {
  margin-bottom: 10px;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(1.8rem, 3vw, 2.55rem);
  line-height: 1.05;
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
}

.link-card {
  position: relative;
  display: flex;
  min-height: 150px;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.link-card:hover {
  border-color: rgba(53, 99, 233, 0.42);
  box-shadow: 0 12px 28px rgba(29, 45, 82, 0.08);
  transform: translateY(-4px);
}

.link-card-featured {
  border-color: rgba(53, 99, 233, 0.2);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(235, 241, 255, 0.95));
}

.link-card-featured .link-card-label,
.link-card-featured .link-card-arrow {
  color: var(--brand);
}

.link-card-label {
  color: var(--muted);
  font-size: 0.65rem;
}

.link-card strong {
  max-width: 12ch;
  font-size: 1.12rem;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.link-card-arrow {
  position: absolute;
  top: 17px;
  right: 18px;
  color: var(--brand);
  font-size: 1.1rem;
}

.about-section {
  display: grid;
  grid-template-columns: minmax(190px, 0.65fr) minmax(0, 1.35fr);
  gap: clamp(38px, 8vw, 110px);
  padding: 74px 0 82px;
  border-top: 1px solid var(--line);
}

.about-copy {
  max-width: 700px;
  color: var(--muted);
  font-size: clamp(1rem, 1.35vw, 1.1rem);
  line-height: 1.65;
}

.about-copy p:last-child {
  margin-bottom: 0;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0 30px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
}

.site-footer a {
  color: var(--brand-dark);
  font-weight: 700;
}

.publications-intro {
  padding: 72px 0 64px;
  border-bottom: 1px solid var(--line);
}

.publications-intro h1 {
  margin-bottom: 20px;
}

.page-lede {
  max-width: 780px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: clamp(1.25rem, 2.2vw, 1.65rem);
  letter-spacing: -0.025em;
  line-height: 1.35;
}

.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.publication-content {
  padding: 52px 0 84px;
}

.publication-section {
  padding: 54px 0 66px;
  border-bottom: 1px solid var(--line);
}

.publication-section-featured {
  margin-bottom: 28px;
  padding: 42px;
  border: 1px solid rgba(53, 99, 233, 0.16);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(240, 244, 255, 0.92));
  box-shadow: 0 18px 42px rgba(29, 45, 82, 0.06);
}

.section-bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 30px;
}

.section-bar h2 {
  max-width: 820px;
}

.section-count {
  flex-shrink: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 750;
  padding: 7px 11px;
  white-space: nowrap;
}

.publication-list {
  border-top: 1px solid var(--line);
}

.publication-section-featured .publication-list,
.publication-section-featured .publication-entry {
  border-color: rgba(53, 99, 233, 0.14);
}

.publication-entry {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 28px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.publication-entry:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.publication-meta {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 8px;
}

.publication-id {
  display: inline-flex;
  align-items: center;
  min-width: 48px;
  justify-content: center;
  border-radius: 9px;
  background: var(--brand);
  color: white;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  padding: 6px 8px;
}

.publication-kind {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.publication-citation {
  max-width: 900px;
  margin-bottom: 0;
  font-size: 1rem;
  line-height: 1.65;
}

.publication-citation strong {
  color: var(--ink);
  font-weight: 750;
}

.publication-citation em {
  color: #5d6678;
}

.publication-title {
  color: var(--brand-dark);
  font-weight: 750;
  text-decoration-color: rgba(53, 99, 233, 0.42);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.publication-title:hover {
  color: var(--accent);
  text-decoration-color: currentColor;
}

.publication-title-plain {
  color: var(--ink);
  font-weight: 650;
}

.publication-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.resource-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(53, 99, 233, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--brand-dark);
  font-size: 0.77rem;
  font-weight: 750;
  padding: 6px 10px;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.resource-link:hover {
  border-color: var(--brand);
  background: var(--brand);
  color: white;
}

.scholar-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: 54px;
  padding: 30px 32px;
  border-radius: 22px;
  background: var(--ink);
  color: white;
}

.scholar-callout .section-kicker {
  color: #9fb3ff;
}

.scholar-callout h2 {
  max-width: 570px;
  color: white;
  font-size: clamp(1.45rem, 2.6vw, 2.1rem);
}

.scholar-callout .button-primary {
  flex-shrink: 0;
  background: white;
  box-shadow: none;
  color: var(--brand-dark);
  white-space: nowrap;
}

.scholar-callout .button-primary:hover {
  background: #eef2ff;
}

.finance-intro {
  padding: 72px 0 64px;
  border-bottom: 1px solid var(--line);
}

.finance-intro h1 {
  margin-bottom: 20px;
}

.finance-content {
  padding: 52px 0 84px;
}

.finance-overview {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 28px;
  margin-bottom: 26px;
  padding: 36px 40px;
  border: 1px solid rgba(53, 99, 233, 0.16);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(244, 240, 255, 0.88));
  box-shadow: 0 18px 42px rgba(29, 45, 82, 0.06);
}

.overview-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 14px;
  background: var(--ink);
  color: white;
  font-size: 0.75rem;
  font-weight: 800;
}

.finance-overview h2 {
  max-width: 720px;
  margin-bottom: 18px;
  font-size: clamp(1.6rem, 3vw, 2.35rem);
}

.finance-overview p:not(.section-kicker) {
  max-width: 78ch;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.68;
}

.finance-overview p:last-child {
  margin-bottom: 0;
}

.finance-section {
  padding: 54px 0 66px;
  border-bottom: 1px solid var(--line);
}

.finance-section .section-lede {
  max-width: 68ch;
  margin: -8px 0 30px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

.reference-list {
  border-top: 1px solid var(--line);
}

.finance-reference {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 28px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}

.finance-reference:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.reference-number {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(53, 99, 233, 0.22);
  border-radius: 14px;
  background: rgba(53, 99, 233, 0.08);
  color: var(--brand-dark);
  font-size: 0.76rem;
  font-weight: 800;
}

.reference-content h3 {
  margin: 0 0 6px;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  letter-spacing: -0.035em;
  line-height: 1.2;
}

.reference-meta {
  margin-bottom: 16px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 750;
  line-height: 1.45;
}

.reference-content p:not(.reference-meta) {
  max-width: 78ch;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.68;
}

.reference-content p:last-child {
  margin-bottom: 0;
}

.reference-title-link {
  color: var(--brand-dark);
  text-decoration-color: rgba(53, 99, 233, 0.42);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.reference-title-link:hover {
  color: var(--accent);
  text-decoration-color: currentColor;
}

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

.project-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.project-card:hover {
  border-color: rgba(53, 99, 233, 0.4);
  box-shadow: 0 12px 28px rgba(29, 45, 82, 0.08);
  transform: translateY(-4px);
}

.project-number {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.project-card h3 {
  margin: 14px 0 20px;
  font-size: 1.18rem;
  letter-spacing: -0.035em;
  line-height: 1.25;
}

.project-card h3 a {
  color: var(--brand-dark);
  text-decoration-color: rgba(53, 99, 233, 0.42);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.project-card h3 a:hover {
  color: var(--accent);
}

.project-card ul {
  display: grid;
  gap: 12px;
  margin: auto 0 0;
  padding: 0;
  list-style: none;
}

.project-card li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.project-card li::before {
  position: absolute;
  top: 0.7em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
  content: "";
}

.historical-note {
  margin: 48px 0 0;
  padding: 18px 20px;
  border-left: 3px solid var(--accent);
  color: var(--muted);
  font-size: 0.88rem;
  font-style: italic;
}

@media (max-width: 780px) {
  .page-shell {
    width: min(100% - 32px, 620px);
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .site-nav {
    justify-content: flex-start;
    margin-left: -12px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 42px;
    min-height: 0;
    padding: 64px 0 72px;
  }

  .hero-visual {
    justify-self: center;
  }

  .link-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-section {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 60px 0 68px;
  }

  .publications-intro {
    padding: 60px 0 52px;
  }

  .publication-content {
    padding: 38px 0 64px;
  }

  .publication-section {
    padding: 42px 0 52px;
  }

  .publication-section-featured {
    padding: 26px 22px 30px;
  }

  .section-bar {
    flex-direction: column;
    gap: 14px;
    margin-bottom: 24px;
  }

  .publication-entry {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 24px 0;
  }

  .publication-meta {
    align-items: center;
    flex-direction: row;
  }

  .scholar-callout {
    align-items: flex-start;
    flex-direction: column;
    margin-top: 42px;
    padding: 26px 22px;
  }

  .finance-intro {
    padding: 60px 0 52px;
  }

  .finance-content {
    padding: 38px 0 64px;
  }

  .finance-overview {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 26px 22px;
  }

  .finance-section {
    padding: 42px 0 52px;
  }

  .finance-reference {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 24px 0;
  }

  .project-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 24px;
  }

  .project-card {
    padding: 22px;
  }

  .historical-note {
    margin-top: 38px;
  }
}

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

  .link-card {
    min-height: 124px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Photography archive */
.photography-page {
  background:
    radial-gradient(circle at 92% 6%, rgba(53, 99, 233, 0.1), transparent 24rem),
    #f4f6fa;
}

.photo-album-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: clamp(36px, 8vw, 120px);
  padding: 76px 0 62px;
  border-bottom: 1px solid var(--line);
}

.photo-album-copy h1 {
  margin-bottom: 22px;
  color: var(--ink);
  font-size: clamp(3.8rem, 8vw, 6.8rem);
  line-height: 0.88;
}

.album-name-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 12px;
}

.album-name-row h2 {
  margin-bottom: 0;
  color: var(--ink);
  font-size: clamp(1.8rem, 3.2vw, 2.7rem);
  line-height: 1;
}

.album-name-row span {
  color: var(--brand-dark);
  font-size: 0.9rem;
  font-weight: 750;
}

.album-description {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1rem;
}

.album-stats {
  display: flex;
  align-items: stretch;
  gap: 26px;
}

.album-stat {
  min-width: 132px;
  padding: 12px 0 12px 20px;
  border-left: 2px solid rgba(138, 78, 196, 0.4);
}

.album-stat-primary {
  border-color: var(--brand);
}

.album-stat strong,
.album-stat span {
  display: block;
}

.album-stat strong {
  color: var(--ink);
  font-size: clamp(1.8rem, 3.2vw, 2.8rem);
  letter-spacing: -0.07em;
  line-height: 0.95;
}

.album-stat span {
  margin-top: 9px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 750;
  line-height: 1.2;
}

.photo-library {
  padding: 0;
}

.photo-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 0 18px;
  border-bottom: 1px solid var(--line);
}

.photo-toolbar-primary,
.photo-toolbar-secondary,
.view-switcher,
.photo-caption-actions,
.lightbox-actions {
  display: flex;
  align-items: center;
}

.photo-toolbar-primary,
.photo-toolbar-secondary {
  flex-wrap: wrap;
  gap: 8px;
}

.photo-search {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 220px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--muted);
}

.search-mark {
  font-size: 1.2rem;
  line-height: 1;
  transform: rotate(-20deg);
}

.photo-search input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.8rem;
}

.photo-search:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(53, 99, 233, 0.1);
}

.photo-search input::placeholder {
  color: #8c96a8;
}

.toolbar-button,
.view-button,
.sort-control select,
.lightbox-action {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
  color: var(--muted);
  font: inherit;
  font-size: 0.76rem;
  font-weight: 750;
}

.toolbar-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 8px 11px;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.toolbar-button:hover,
.toolbar-button.is-active {
  border-color: rgba(53, 99, 233, 0.34);
  background: rgba(53, 99, 233, 0.1);
  color: var(--brand-dark);
}

.toolbar-button:hover {
  transform: translateY(-1px);
}

.toolbar-count {
  display: inline-grid;
  min-width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 999px;
  background: rgba(23, 32, 51, 0.07);
  font-size: 0.65rem;
}

.sort-control {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 750;
}

.sort-control select {
  border-radius: 999px;
  padding: 8px 28px 8px 10px;
  cursor: pointer;
}

.view-switcher {
  gap: 2px;
  margin-left: 3px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
}

.view-button {
  display: grid;
  width: 32px;
  height: 30px;
  place-items: center;
  border-color: transparent;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
}

.view-button:hover,
.view-button.is-active {
  border-color: rgba(53, 99, 233, 0.16);
  background: rgba(53, 99, 233, 0.1);
  color: var(--brand);
}

.view-icon {
  position: relative;
  display: block;
  width: 17px;
  height: 17px;
  color: currentColor;
}

.view-icon::before,
.view-icon::after {
  position: absolute;
  content: "";
}

.view-icon-mosaic::before {
  top: 1px;
  left: 1px;
  width: 6px;
  height: 7px;
  border: 2px solid currentColor;
  box-shadow: 9px 0 0 -2px var(--surface), 9px 0 0 0 currentColor, 0 9px 0 -2px var(--surface), 0 9px 0 0 currentColor, 9px 9px 0 -2px var(--surface), 9px 9px 0 0 currentColor;
}

.view-icon-grid::before {
  top: 1px;
  left: 1px;
  width: 4px;
  height: 4px;
  border: 2px solid currentColor;
  box-shadow: 7px 0 0 -2px var(--surface), 7px 0 0 0 currentColor, 0 7px 0 -2px var(--surface), 0 7px 0 0 currentColor, 7px 7px 0 -2px var(--surface), 7px 7px 0 0 currentColor;
}

.view-icon-square::before {
  top: 1px;
  left: 1px;
  width: 13px;
  height: 13px;
  border: 2px solid currentColor;
}

.view-icon-masonry::before {
  top: 1px;
  left: 1px;
  width: 4px;
  height: 15px;
  border-radius: 1px;
  background: currentColor;
  box-shadow: 6px 0 0 currentColor, 12px 0 0 currentColor;
}

.photo-grid {
  display: grid;
  gap: 14px;
  align-items: start;
}

.view-mosaic {
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.view-mosaic .photo-card-wide {
  grid-column: span 4;
}

.view-mosaic .photo-card-landscape,
.view-mosaic .photo-card-squareish,
.view-mosaic .photo-card-portrait {
  grid-column: span 3;
}

.view-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.view-square {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.view-masonry {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.photo-masonry-column {
  display: grid;
  align-content: start;
  gap: 14px;
  min-width: 0;
}

.view-masonry .photo-card {
  display: block;
  width: 100%;
  margin: 0;
}

.photo-card {
  overflow: hidden;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
  box-shadow: 0 8px 20px rgba(29, 45, 82, 0.045);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.photo-card:hover {
  border-color: rgba(53, 99, 233, 0.35);
  box-shadow: 0 15px 30px rgba(29, 45, 82, 0.12);
  transform: translateY(-3px);
}

.photo-image-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #e7ebf2;
  cursor: zoom-in;
  line-height: 0;
}

.photo-image-button:focus-visible {
  position: relative;
  z-index: 1;
  outline: 3px solid rgba(53, 99, 233, 0.48);
  outline-offset: -3px;
}

.photo-image-button img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 500ms cubic-bezier(0.2, 0.7, 0.2, 1), filter 300ms ease;
}

.photo-card:hover .photo-image-button img {
  filter: saturate(1.06);
  transform: scale(1.025);
}

.view-grid .photo-image-button,
.view-square .photo-image-button {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.view-square .photo-image-button {
  aspect-ratio: 1;
}

.view-grid .photo-image-button img,
.view-square .photo-image-button img {
  height: 100%;
  object-fit: cover;
}

.photo-card-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 57px;
  padding: 10px 12px 11px 14px;
}

.photo-caption-copy {
  min-width: 0;
}

.photo-title {
  overflow: hidden;
  margin: 0;
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 780;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.photo-year {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 650;
}

.photo-caption-actions {
  flex-shrink: 0;
  gap: 9px;
}

.photo-favorite {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  color: #9ca6b5;
  cursor: pointer;
  font-size: 1.15rem;
  line-height: 1;
}

.photo-favorite:hover,
.photo-favorite:focus-visible,
.photo-favorite[aria-pressed="true"] {
  border-color: rgba(216, 110, 64, 0.22);
  background: rgba(216, 110, 64, 0.1);
  color: #cc663e;
  outline: 0;
}

.photo-number {
  color: #a8b1bf;
  font-size: 0.65rem;
  font-weight: 750;
}

.gallery-empty {
  margin: 30px 0 0;
  padding: 44px 20px;
  border: 1px dashed #bbc6d8;
  border-radius: 16px;
  color: var(--muted);
  text-align: center;
}

.photo-closing {
  display: grid;
  grid-template-columns: minmax(150px, 0.48fr) minmax(0, 1.52fr);
  gap: clamp(30px, 7vw, 96px);
  align-items: center;
  margin: 76px 0 0;
  padding: 48px 48px 52px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 12% 20%, rgba(138, 78, 196, 0.45), transparent 15rem),
    linear-gradient(135deg, #172033, #29375e);
  color: white;
}

.photo-closing .section-kicker {
  color: #aebdff;
}

.photo-closing h2 {
  max-width: 700px;
  margin-bottom: 18px;
  color: white;
  font-size: clamp(2.2rem, 5vw, 4.6rem);
  line-height: 0.95;
}

.photo-closing p:not(.section-kicker) {
  max-width: 650px;
  margin-bottom: 26px;
  color: #d1d8e8;
  font-size: 1rem;
  line-height: 1.6;
}

.photo-closing .button-secondary {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.photo-closing .button-secondary:hover {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.18);
  color: white;
}

.photo-closing-mark {
  display: grid;
  width: 150px;
  height: 150px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  transform: rotate(-12deg);
}

.photo-closing-mark::before,
.photo-closing-mark::after {
  position: absolute;
  width: 188px;
  height: 1px;
  background: rgba(255, 255, 255, 0.18);
  content: "";
  transform: rotate(45deg);
}

.photo-closing-mark::after {
  transform: rotate(-45deg);
}

.photo-closing-mark span {
  position: relative;
  z-index: 1;
  color: #b9c6ff;
  font-size: 5rem;
  font-weight: 300;
  line-height: 1;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  padding: 0;
  border: 0;
  margin: -1px;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.photo-lightbox[hidden] {
  display: none;
}

.photo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  align-items: start;
  justify-items: center;
  padding: 8px 12px;
  color: white;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 16, 29, 0.93);
  backdrop-filter: blur(12px);
}

.lightbox-dialog {
  position: relative;
  z-index: 1;
  display: block;
  width: min(1920px, 100%);
}

.lightbox-toolbar {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0;
}

.lightbox-counter {
  margin: 0;
  color: #aeb9cf;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.lightbox-close {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: white;
  cursor: pointer;
  font-size: 1.6rem;
  line-height: 1;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.18);
}

.lightbox-figure {
  display: block;
  min-height: 0;
  margin: 0;
}

.lightbox-figure img {
  display: block;
  width: min(100%, calc(100vw - 48px));
  max-width: none;
  height: min(94vh, calc(100vh - 82px));
  max-height: none;
  margin: 0 auto;
  object-fit: contain;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.32);
}

.lightbox-figure figcaption {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  padding: 10px 50px 0;
}

.lightbox-figure h2 {
  margin-bottom: 4px;
  color: white;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
}

.lightbox-figure figcaption p {
  margin: 0;
  color: #aeb9cf;
  font-size: 0.78rem;
}

.lightbox-actions {
  flex-shrink: 0;
  gap: 8px;
}

.lightbox-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-color: rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #e6ebf5;
  padding: 8px 11px;
  cursor: pointer;
}

a.lightbox-action {
  text-decoration: none;
}

.lightbox-action:hover,
.lightbox-action[aria-pressed="true"] {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.18);
  color: white;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.23);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: white;
  cursor: pointer;
  font-size: 1.2rem;
  transform: translateY(-30px);
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.2);
}

.lightbox-prev {
  left: 0;
}

.lightbox-next {
  right: 0;
}

body.lightbox-open {
  overflow: hidden;
}

@media (max-width: 960px) {
  .photo-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .photo-toolbar-primary,
  .photo-toolbar-secondary {
    width: 100%;
  }

  .photo-toolbar-secondary {
    justify-content: space-between;
  }

  .view-masonry {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .view-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .view-square {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  .photo-album-intro {
    grid-template-columns: 1fr;
    gap: 34px;
    padding: 62px 0 52px;
  }

  .album-stats {
    max-width: 440px;
  }

  .photo-toolbar-primary {
    align-items: stretch;
  }

  .photo-search {
    flex: 1 1 240px;
  }

  .photo-toolbar-secondary {
    align-items: center;
  }

  .view-mosaic {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .view-mosaic .photo-card-wide {
    grid-column: span 3;
  }

  .view-mosaic .photo-card-landscape,
  .view-mosaic .photo-card-squareish,
  .view-mosaic .photo-card-portrait {
    grid-column: span 2;
  }

  .view-masonry {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .view-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .view-square {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .photo-closing {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-top: 58px;
    padding: 32px 24px 36px;
  }

  .photo-closing-mark {
    width: 108px;
    height: 108px;
  }

  .photo-closing-mark::before,
  .photo-closing-mark::after {
    width: 138px;
  }

  .photo-closing-mark span {
    font-size: 3.5rem;
  }

  .lightbox-dialog {
    max-height: calc(100vh - 24px);
  }

  .lightbox-figure figcaption {
    padding-right: 44px;
    padding-left: 44px;
  }

  .lightbox-figure img {
    width: calc(100vw - 84px);
    height: min(72vh, calc(100vh - 210px));
  }

  .lightbox-prev {
    left: -2px;
  }

  .lightbox-next {
    right: -2px;
  }
}

@media (max-width: 460px) {
  .album-stats {
    gap: 14px;
  }

  .album-stat {
    min-width: 0;
    padding-left: 14px;
  }

  .photo-toolbar-primary,
  .photo-toolbar-secondary {
    gap: 7px;
  }

  .photo-search {
    flex-basis: 100%;
  }

  .sort-control {
    flex: 1;
    justify-content: space-between;
  }

  .sort-control select {
    max-width: 136px;
  }

  .toolbar-slideshow {
    padding-right: 9px;
    padding-left: 9px;
  }

  .view-mosaic {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .view-mosaic .photo-card-wide,
  .view-mosaic .photo-card-landscape,
  .view-mosaic .photo-card-squareish,
  .view-mosaic .photo-card-portrait {
    grid-column: span 1;
  }

  .view-grid,
  .view-square {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .view-masonry {
    grid-template-columns: 1fr;
  }

  .photo-card-caption {
    padding-left: 10px;
  }

  .photo-caption-actions {
    gap: 3px;
  }

  .photo-number {
    display: none;
  }

  .lightbox-figure figcaption {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding: 14px 38px 0;
  }

  .lightbox-actions {
    width: 100%;
  }

  .lightbox-action {
    flex: 1;
    justify-content: center;
  }

  .lightbox-figure img {
    width: calc(100vw - 60px);
    height: min(64vh, calc(100vh - 260px));
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}

/* Research spotlight */
.spotlight-page {
  background:
    radial-gradient(circle at 7% 16%, rgba(138, 78, 196, 0.1), transparent 22rem),
    radial-gradient(circle at 93% 47%, rgba(53, 99, 233, 0.09), transparent 24rem),
    var(--background);
}

.spotlight-intro {
  padding: 88px 0 76px;
  border-bottom: 1px solid var(--line);
}

.spotlight-intro h1 {
  max-width: 920px;
  margin-bottom: 26px;
  color: var(--ink);
  font-size: clamp(4rem, 10vw, 8.2rem);
  line-height: 0.88;
}

.spotlight-intro .page-lede {
  max-width: 780px;
  margin-bottom: 32px;
}

.spotlight-thesis {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: clamp(42px, 8vw, 120px);
  padding: 72px 0 78px;
  border-bottom: 1px solid var(--line);
}

.thesis-copy {
  max-width: 650px;
}

.thesis-copy h2 {
  max-width: 590px;
  margin-bottom: 22px;
  font-size: clamp(2.35rem, 5vw, 4.4rem);
  line-height: 0.98;
}

.thesis-copy > p:last-child {
  max-width: 570px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.thesis-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-self: end;
  gap: 12px;
}

.thesis-stat {
  min-height: 124px;
  padding: 18px 14px;
  border-top: 3px solid var(--brand);
  background: rgba(255, 255, 255, 0.66);
}

.thesis-stat:nth-child(2) {
  border-color: var(--accent);
}

.thesis-stat:nth-child(3) {
  border-color: #e47c4f;
}

.thesis-stat strong,
.thesis-stat span {
  display: block;
}

.thesis-stat strong {
  color: var(--ink);
  font-size: clamp(2.4rem, 4.2vw, 3.7rem);
  letter-spacing: -0.08em;
  line-height: 0.95;
}

.thesis-stat span {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 750;
  line-height: 1.2;
}

.research-arc,
.spotlight-works {
  padding: 76px 0 82px;
  border-bottom: 1px solid var(--line);
}

.spotlight-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 36px;
}

.spotlight-section-heading h2 {
  max-width: 720px;
  margin-bottom: 0;
  font-size: clamp(2.1rem, 4.4vw, 3.8rem);
  line-height: 0.98;
}

.spotlight-section-heading > p {
  max-width: 320px;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.55;
}

.arc-diagram {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.arc-step {
  position: relative;
  min-height: 270px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 16px 38px rgba(29, 45, 82, 0.05);
}

.arc-step:not(:last-child)::after {
  position: absolute;
  top: 47px;
  right: -16px;
  z-index: 2;
  width: 16px;
  height: 1px;
  background: #b8c3d8;
  content: "";
}

.arc-step-number {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: white;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.arc-step:nth-child(2) .arc-step-number {
  background: var(--accent);
}

.arc-step:nth-child(3) .arc-step-number {
  background: #d86e40;
}

.arc-step:nth-child(4) .arc-step-number {
  background: #168b89;
}

.arc-step-visual {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 52px;
  margin: 20px 0 18px;
  color: var(--brand-dark);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.arc-step-visual span {
  padding: 7px 8px;
  border: 1px solid rgba(53, 99, 233, 0.18);
  border-radius: 8px;
  background: rgba(53, 99, 233, 0.08);
}

.arc-step:nth-child(2) .arc-step-visual span {
  border-color: rgba(138, 78, 196, 0.18);
  background: rgba(138, 78, 196, 0.08);
  color: #70339c;
}

.arc-step:nth-child(3) .arc-step-visual span {
  border-color: rgba(216, 110, 64, 0.2);
  background: rgba(216, 110, 64, 0.09);
  color: #a64e2d;
}

.arc-step:nth-child(4) .arc-step-visual span {
  border-color: rgba(22, 139, 137, 0.2);
  background: rgba(22, 139, 137, 0.09);
  color: #0e706f;
}

.arc-step-visual i {
  color: var(--muted);
  font-size: 1rem;
  font-style: normal;
}

.arc-step h3 {
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 1.25rem;
  letter-spacing: -0.035em;
}

.arc-step p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.spotlight-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.spotlight-card {
  --spotlight-accent: var(--brand);
  position: relative;
  display: flex;
  min-height: 590px;
  flex-direction: column;
  overflow: hidden;
  padding: 26px;
  border: 1px solid rgba(53, 99, 233, 0.16);
  border-radius: 25px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(239, 244, 255, 0.92));
  box-shadow: 0 18px 42px rgba(29, 45, 82, 0.06);
}

.spotlight-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: var(--spotlight-accent);
  content: "";
}

.spotlight-card-purple {
  --spotlight-accent: var(--accent);
  border-color: rgba(138, 78, 196, 0.17);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(248, 240, 255, 0.92));
}

.spotlight-card-orange {
  --spotlight-accent: #d86e40;
  border-color: rgba(216, 110, 64, 0.18);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(255, 245, 238, 0.94));
}

.spotlight-card-teal {
  --spotlight-accent: #168b89;
  border-color: rgba(22, 139, 137, 0.18);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(235, 250, 248, 0.94));
}

.spotlight-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.spotlight-label,
.spotlight-kind {
  display: block;
}

.spotlight-label {
  color: var(--spotlight-accent);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  line-height: 1.25;
  text-transform: uppercase;
}

.spotlight-kind {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.74rem;
}

.spotlight-index {
  color: rgba(23, 32, 51, 0.2);
  font-size: 2.1rem;
  font-weight: 850;
  letter-spacing: -0.08em;
  line-height: 0.85;
}

.card-visual {
  position: relative;
  display: flex;
  min-height: 160px;
  justify-content: center;
  overflow: hidden;
  margin: 25px 0 24px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.55);
}

.card-visual::after {
  position: absolute;
  right: -30px;
  bottom: -52px;
  width: 145px;
  height: 145px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 50%;
  content: "";
}

.visual-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  color: var(--brand-dark);
  font-size: 1rem;
  font-weight: 800;
}

.flow-chip {
  position: relative;
  z-index: 1;
  padding: 12px 10px;
  border: 1px solid rgba(53, 99, 233, 0.18);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--ink);
  font-size: 0.7rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.flow-chip-highlight {
  border-color: rgba(53, 99, 233, 0.35);
  background: rgba(53, 99, 233, 0.1);
  color: var(--brand-dark);
}

.visual-flow b {
  position: relative;
  z-index: 1;
  color: var(--spotlight-accent);
  font-size: 1.15rem;
}

.visual-caption {
  position: absolute;
  bottom: 17px;
  left: 20px;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.caption-line {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--spotlight-accent);
}

.visual-clustering {
  align-items: center;
  padding-top: 24px;
}

.cluster-row {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  gap: 14px;
}

.cluster-row span {
  display: block;
  width: 17px;
  height: 17px;
  border: 3px solid rgba(138, 78, 196, 0.7);
  border-radius: 50%;
  background: white;
}

.cluster-row-top span:nth-child(2n) {
  border-color: rgba(53, 99, 233, 0.65);
}

.cluster-row-bottom span {
  width: 26px;
  height: 26px;
  border-width: 4px;
  border-color: var(--accent);
}

.cluster-branches {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 28px;
  margin: 9px 0;
}

.cluster-branches i {
  display: block;
  width: 30px;
  height: 18px;
  border-top: 2px solid rgba(138, 78, 196, 0.5);
  border-left: 2px solid rgba(138, 78, 196, 0.5);
  transform: skewX(-28deg);
}

.cluster-branches i:last-child {
  border-right: 2px solid rgba(138, 78, 196, 0.5);
  border-left: 0;
  transform: skewX(28deg);
}

.visual-intent {
  align-items: center;
  background: rgba(255, 248, 242, 0.8);
}

.intent-context {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 10px;
}

.intent-context span,
.intent-result {
  border: 1px solid rgba(216, 110, 64, 0.22);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.82);
  color: #9b4b2d;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.intent-context span {
  padding: 9px 10px;
}

.intent-arrow {
  position: relative;
  z-index: 1;
  margin: 8px 0;
  color: var(--spotlight-accent);
  font-size: 1.25rem;
  font-weight: 800;
}

.intent-result {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 3px;
  min-width: 140px;
  padding: 11px 16px;
  text-align: center;
}

.intent-result strong {
  color: var(--ink);
  font-size: 0.82rem;
}

.visual-description {
  align-items: center;
  background: rgba(241, 252, 250, 0.82);
}

.description-inputs {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 8px;
}

.description-inputs span {
  padding: 8px 9px;
  border: 1px solid rgba(22, 139, 137, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  color: #0d7775;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.description-join {
  position: relative;
  z-index: 1;
  margin: 7px 0;
  color: var(--spotlight-accent);
  font-size: 1.2rem;
  font-weight: 800;
}

.description-output {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 3px;
  min-width: 160px;
  padding: 11px 16px;
  border: 1px solid rgba(22, 139, 137, 0.3);
  border-radius: 10px;
  background: rgba(22, 139, 137, 0.1);
  color: #0d7775;
  text-align: center;
  text-transform: uppercase;
}

.description-output span {
  font-size: 0.63rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.description-output strong {
  color: var(--ink);
  font-size: 0.85rem;
}

.spotlight-card h3 {
  max-width: 510px;
  margin-bottom: 14px;
  color: var(--ink);
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.spotlight-card-summary {
  margin-bottom: 18px;
  color: var(--ink);
  font-size: 0.94rem;
  line-height: 1.58;
}

.spotlight-takeaway {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.55;
}

.spotlight-takeaway strong {
  display: block;
  margin-bottom: 3px;
  color: var(--spotlight-accent);
  font-size: 0.7rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.spotlight-card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 24px;
}

.spotlight-card .resource-link {
  border-color: color-mix(in srgb, var(--spotlight-accent) 25%, white);
  color: var(--spotlight-accent);
}

.spotlight-card .resource-link:hover {
  border-color: var(--spotlight-accent);
  background: var(--spotlight-accent);
  color: white;
}

.spotlight-close {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: clamp(40px, 8vw, 110px);
  margin-top: 76px;
  padding: 42px 44px 46px;
  border-radius: 24px;
  background: var(--ink);
  color: white;
}

.spotlight-close .section-kicker {
  color: #9fb3ff;
}

.spotlight-close h2 {
  max-width: 530px;
  margin-bottom: 0;
  color: white;
  font-size: clamp(2.25rem, 4.5vw, 4rem);
  line-height: 0.98;
}

.spotlight-close-copy {
  align-self: end;
}

.spotlight-close-copy p {
  margin-bottom: 24px;
  color: #c9d1e3;
  font-size: 1rem;
  line-height: 1.6;
}

.spotlight-source-note {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.spotlight-source-note a {
  color: var(--brand-dark);
  font-weight: 750;
}

@media (max-width: 780px) {
  .spotlight-intro {
    padding: 64px 0 56px;
  }

  .spotlight-intro h1 {
    font-size: clamp(3.5rem, 15vw, 6rem);
  }

  .spotlight-thesis {
    grid-template-columns: 1fr;
    gap: 34px;
    padding: 58px 0 64px;
  }

  .thesis-stats {
    max-width: 440px;
  }

  .research-arc,
  .spotlight-works {
    padding: 58px 0 64px;
  }

  .spotlight-section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 28px;
  }

  .spotlight-section-heading > p {
    max-width: 560px;
  }

  .arc-diagram {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .arc-step:not(:last-child)::after {
    display: none;
  }

  .spotlight-grid {
    grid-template-columns: 1fr;
  }

  .spotlight-card {
    min-height: 0;
  }

  .spotlight-close {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-top: 58px;
    padding: 30px 24px 32px;
  }
}

@media (max-width: 460px) {
  .thesis-stats {
    gap: 8px;
  }

  .thesis-stat {
    min-height: 112px;
    padding: 14px 10px;
  }

  .arc-diagram {
    grid-template-columns: 1fr;
  }

  .arc-step {
    min-height: 0;
  }

  .spotlight-card {
    padding: 22px;
  }

  .visual-flow {
    gap: 5px;
  }

  .flow-chip {
    padding: 10px 7px;
    font-size: 0.61rem;
  }

  .intent-context,
  .description-inputs {
    gap: 5px;
  }

  .intent-context span,
  .description-inputs span {
    padding-right: 7px;
    padding-left: 7px;
    font-size: 0.59rem;
  }
}
