:root {
  --charcoal: #2e2f33;
  --charcoal-deep: #1d1e21;
  --charcoal-soft: #37393e;
  --charcoal-raised: #3d3f45;
  --blue: #446e88;
  --blue-light: #6f98b0;
  --burgundy: #6c263b;
  --burgundy-light: #91344f;
  --beige: #e1d4c1;
  --beige-muted: #b9ad9b;
  --gold: #c7a568;
  --gold-soft: rgba(199, 165, 104, 0.32);
  --text: #f2eee8;
  --text-soft: #c8c0b5;
  --text-muted: #938d84;
  --border: rgba(225, 212, 193, 0.12);
  --border-strong: rgba(199, 165, 104, 0.48);
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.34);
  --radius-large: 28px;
  --radius-medium: 18px;
  --radius-small: 12px;
  --gap: 18px;
  --tab-transition: 180ms;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 8% 0%, rgba(68, 110, 136, 0.15), transparent 30rem),
    radial-gradient(circle at 100% 18%, rgba(108, 38, 59, 0.13), transparent 28rem),
    var(--charcoal-deep);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

body.modal-open {
  overflow: hidden;
}

button,
a {
  font: inherit;
}

button {
  color: inherit;
}

a {
  color: inherit;
}

.site-container {
  position: relative;
  isolation: isolate;
  width: min(1440px, calc(100% - 48px));
  min-height: calc(100vh - 48px);
  margin: 24px auto;
  overflow: hidden;
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.025),
      transparent 28%
    ),
    var(--charcoal);
  border: 1px solid var(--border);
  border-radius: var(--radius-large);
  box-shadow: var(--shadow);
}

.background-blobs {
  position: fixed;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.shape-blob {
  position: absolute;
  border-radius: 33% 67% 70% 30% / 30% 30% 70% 70%;
  opacity: 0.14;
  filter: blur(12px);
  will-change: transform, border-radius;

  animation:
    blob-morph 24s ease-in-out infinite alternate,
    blob-drift 48s ease-in-out infinite alternate;
}

.shape-blob--burgundy {
  width: 620px;
  height: 620px;
  top: -260px;
  left: -240px;
  background: #6f263d;

  animation-duration: 30s, 58s;
}

.shape-blob--blue {
  width: 420px;
  height: 420px;
  top: 18%;
  right: -210px;
  background: #446e88;

  animation-duration: 26s, 52s;
  animation-delay: -8s, -15s;
}

@keyframes blob-morph {
  0%,
  100% {
    border-radius: 33% 67% 70% 30% / 30% 30% 70% 70%;
  }

  25% {
    border-radius: 37% 63% 51% 49% / 37% 65% 35% 63%;
  }

  50% {
    border-radius: 36% 64% 64% 36% / 64% 48% 52% 36%;
  }

  75% {
    border-radius: 40% 60% 42% 58% / 41% 51% 49% 59%;
  }
}

@keyframes blob-drift {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
  }

  50% {
    transform: translate3d(70px, 45px, 0) rotate(70deg) scale(1.12);
  }

  100% {
    transform: translate3d(-30px, 90px, 0) rotate(140deg) scale(0.96);
  }
}

@media (prefers-reduced-motion: reduce) {
  .shape-blob {
    animation: none;
  }
}

.site-header,
.site-inner,
.site-footer {
  position: relative;
  z-index: 2;
}

.site-header {
  padding: clamp(34px, 5vw, 72px);
  border-bottom: 1px solid var(--border);
}

.site-brand-mark {
  display: flex;
  align-items: center;
  gap: 14px;
}

.site-brand-mark img {
  width: 42px;
  height: 42px;
  display: block;
  object-fit: contain;
  flex: 0 0 auto;
}

.site-eyebrow {
  color: #f5f0e6;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: none;
}

.site-eyebrow span {
  color: #446e88;
  letter-spacing: 0.08em;
}

.site-title {
  color: #fff;
  font-family: "Rubik", sans-serif;
  font-size: clamp(3rem, 5.6vw, 5.2rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
}

.site-description {
  margin: 22px 0 0;
  color: var(--beige);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.25rem, 2.4vw, 2rem);
  font-style: italic;
  letter-spacing: -0.025em;
}

.site-headline {
  max-width: 1050px;
  margin: 24px 0 0;
  color: var(--text-soft);
  font-size: clamp(0.98rem, 1.4vw, 1.16rem);
  line-height: 1.72;
}

.site-headline span {
  margin: 0 0.28em;
  color: var(--burgundy-light);
  font-weight: 700;
}

.site-inner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap);
  padding: clamp(24px, 4vw, 52px);
}

.domain-grid {
  grid-column: span 3;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
}

.domain-card,
.sidebar-widget {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 100% 0%, rgba(199, 165, 104, 0.07), transparent 48%),
    var(--charcoal-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-medium);
}

.domain-card {
  width: 100%;
  aspect-ratio: 1;
  padding: 0;
  text-align: left;
  cursor: pointer;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.domain-card::before,
.sidebar-widget::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 42%;
  height: 3px;
  content: "";
  background: linear-gradient(90deg, var(--burgundy), var(--gold), transparent);
  opacity: 0.9;
}

.domain-card::after {
  position: absolute;
  right: -32%;
  bottom: -42%;
  width: 75%;
  aspect-ratio: 1;
  content: "";
  background: rgba(108, 38, 59, 0.12);
  border: 1px solid rgba(199, 165, 104, 0.08);
  border-radius: 50%;
  transition: transform 220ms ease, background-color 220ms ease;
}

.domain-card:hover,
.domain-card:focus-visible {
  z-index: 1;
  transform: translateY(-5px);
  background-color: var(--charcoal-raised);
  border-color: var(--border-strong);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.24);
  outline: none;
}

.domain-card:hover::after,
.domain-card:focus-visible::after {
  transform: translate(-8%, -8%) scale(1.08);
  background: rgba(108, 38, 59, 0.2);
}

.domain-card-inner {
  position: relative;
  z-index: 1;
  min-height: 100%;
  padding: clamp(20px, 2.4vw, 32px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.domain-card-kicker {
  margin: 0;
  color: var(--gold);
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.domain-card-content {
  display: grid;
  gap: 10px;
}

.domain-card-title {
  margin: 0;
  color: var(--text);
  font-size: clamp(1.25rem, 2.1vw, 2rem);
  line-height: 1.03;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.domain-card-domain {
  margin: 0;
  color: var(--beige-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: clamp(0.72rem, 1vw, 0.88rem);
  word-break: break-word;
}

.site-sidebar {
  grid-column: span 1;
  align-self: start;
  display: grid;
  gap: var(--gap);
  position: sticky;
  top: 24px;
}

.sidebar-widget {
  aspect-ratio: 1;
  padding: clamp(20px, 2.4vw, 32px);
  display: flex;
  flex-direction: column;
}

.sidebar-widget.selected-works {
  aspect-ratio: auto;
  height: auto;
  min-height: 320px;
  overflow: visible;
}

.widget-title {
  margin: 0;
  color: var(--text);
  font-size: clamp(1.25rem, 2.1vw, 2rem);
  line-height: 1.03;
  letter-spacing: -0.045em;
}

.widget-title--spaced {
  margin-bottom: 30px;
}

.widget-links {
  margin-top: auto;
  display: grid;
  gap: 3px;
}

.widget-links > :is(a, button) {
  width: 100%;
  min-height: 42px;
  padding: 10px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--beige-muted);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  text-align: left;
  text-decoration: none;
  transition:
    color 150ms ease,
    padding-left 150ms ease;
}

.widget-links > :is(a, button):last-child {
  border-bottom: 0;
}

.widget-links > :is(a, button):hover,
.widget-links > :is(a, button):focus-visible {
  padding-left: 6px;
  color: var(--gold);
  outline: none;
}

.widget-links > :is(a, button) span {
  color: var(--burgundy-light);
}

.selected-works-list {
  margin-top: 22px;
  padding-top: 14px;
  display: grid;
  gap: 12px;
  border-top: 1px solid var(--border);
}

.selected-work-group {
  padding-top: 12px;
  display: grid;
  gap: 7px;
  border-top: 1px solid var(--border);
}

.selected-work-group:first-child {
  padding-top: 0;
  border-top: 0;
}

.selected-work-group-title {
  margin: 0;
  color: var(--gold);
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-transform: uppercase;
  padding-top: 10px;
}

.selected-work-links {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 14px;
}

.selected-work-links a {
  position: relative;
  color: var(--beige-muted);
  font-size: clamp(0.76rem, 0.82vw, 0.86rem);
  line-height: 1.35;
  text-decoration: none;
  transition:
    color 150ms ease,
    transform 150ms ease;
}

.selected-work-links a::after {
  display: inline-block;
  margin-left: 0.35em;
  color: var(--burgundy-light);
  content: "↗";
  font-size: 0.82em;
  transform: translateY(-0.06em);
}

.selected-work-links a:hover,
.selected-work-links a:focus-visible {
  color: var(--gold);
  transform: translateX(3px);
  outline: none;
}

.site-footer {
  padding: 26px clamp(24px, 4vw, 52px) 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
}

.site-footer p {
  margin: 0;
}

.footer-signature {
  margin-left: 0.18em;
  color: var(--beige);
  font-family: "Arizonia", cursive;
  font-size: 1.55rem;
  line-height: 1;
  white-space: nowrap;
}

/* Modal */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  padding: 24px;
  display: grid;
  place-items: center;
  background: rgba(12, 12, 14, 0.68);
  backdrop-filter: blur(9px);
  animation: backdrop-in 180ms ease-out;
}

.modal-backdrop[hidden] {
  display: none;
}

.modal-dialog {
  position: relative;
  width: min(1040px, 100%);
  min-height: min(520px, calc(100vh - 48px));
  aspect-ratio: 2 / 1;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--charcoal);
  border: 1px solid var(--border-strong);
  border-radius: 28px;
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.52);
  animation: modal-in 460ms cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: center bottom;
}

.modal-dialog::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(circle at 12% 0%, rgba(68, 110, 136, 0.18), transparent 42%),
    radial-gradient(circle at 100% 100%, rgba(108, 38, 59, 0.18), transparent 44%);
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 3;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--beige);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.7rem;
  line-height: 1;
  transition: transform 150ms ease, border-color 150ms ease, background-color 150ms ease;
}

.modal-close:hover,
.modal-close:focus-visible {
  transform: rotate(5deg) scale(1.05);
  background: var(--burgundy);
  border-color: var(--burgundy-light);
  outline: none;
}

.modal-description-panel,
.modal-site-panel {
  position: relative;
  z-index: 1;
  padding: clamp(38px, 5vw, 70px);
}

.modal-description-panel {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: rgba(0, 0, 0, 0.1);
  border-right: 1px solid var(--border);
}

.modal-site-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 36px;
}

.modal-label {
  margin: 0 0 18px;
  color: var(--gold);
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.modal-description {
  max-width: 42ch;
  margin: 0;
  color: var(--text-soft);
  font-size: clamp(1rem, 1.7vw, 1.3rem);
  line-height: 1.7;
}

.modal-title {
  margin: 0;
  color: var(--text);
  font-size: clamp(2.4rem, 5vw, 5rem);
  line-height: 0.92;
  letter-spacing: -0.06em;
  text-wrap: balance;
}

.modal-domain {
  margin: 18px 0 0;
  color: var(--blue-light);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
  word-break: break-word;
}

.modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.button {
  min-height: 52px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 720;
  text-align: center;
  text-decoration: none;
  transition: transform 150ms ease, border-color 150ms ease, background-color 150ms ease, color 150ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.button-primary {
  color: #fff8ef;
  background: var(--burgundy);
  border: 1px solid var(--burgundy-light);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--burgundy-light);
}

.button-secondary {
  color: var(--beige);
  background: transparent;
  border: 1px solid var(--gold-soft);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  color: var(--charcoal-deep);
  background: var(--gold);
  border-color: var(--gold);
}

@keyframes backdrop-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modal-in {
  0% {
    opacity: 0;
    transform: translateY(34px) scale(0.965);
  }

  54% {
    opacity: 1;
    transform: translateY(-8px) scale(1.006);
  }

  76% {
    transform: translateY(3px) scale(0.998);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-backdrop--closing {
  animation: backdrop-out 240ms ease-in forwards;
}

.modal-dialog--closing {
  animation: modal-out 240ms cubic-bezier(0.4, 0, 0.7, 0.2) forwards;
  pointer-events: none;
}

@keyframes backdrop-out {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes modal-out {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  to {
    opacity: 0;
    transform: translateY(22px) scale(0.975);
  }
}

/* Text modal */

.text-modal-dialog {
  width: min(1040px, calc(100vw - 48px));
  height: min(86vh, 860px);
  height: min(86dvh, 860px);
  min-height: 0;
  aspect-ratio: auto;
  display: block;
  overflow: hidden;
}

.text-modal-shell {
  position: relative;
  z-index: 1;
  height: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.text-modal-inner {
  width: min(680px, 100%);
  margin-inline: auto;
}

.text-modal-header {
  padding:
    clamp(34px, 4vw, 54px)
    clamp(28px, 5vw, 72px)
    clamp(26px, 3vw, 38px);
  background: rgba(0, 0, 0, 0.08);
  border-bottom: 1px solid var(--border);
}

.text-modal-title {
  margin: 0;
  padding-right: 60px;
  color: var(--text);
  font-size: clamp(2.5rem, 5vw, 4.8rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.045em;
}

.text-modal-tabs {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.text-modal-tab {
  position: relative;
  width: 46px;
  height: 46px;
  padding: 0;
  overflow: hidden;
  display: grid;
  place-items: center;
  color: var(--beige);
  background:
    radial-gradient(
      circle at top left,
      rgba(199, 165, 104, 0.16),
      transparent 44%
    ),
    rgba(46, 47, 51, 0.94);
  border: 1px solid var(--gold-soft);
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  transition:
    transform 150ms ease,
    color 150ms ease,
    background-color 150ms ease,
    border-color 150ms ease;
}

.text-modal-tab:hover,
.text-modal-tab:focus-visible {
  color: #fff8ef;
  background-color: var(--burgundy);
  border-color: var(--burgundy-light);
  transform: translateY(-2px) scale(1.03);
  outline: none;
}

.text-modal-tab::after {
  position: absolute;
  inset: 5px;
  content: "";
  border: 1px solid transparent;
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.72);
  transition:
    opacity 180ms ease,
    transform 220ms ease,
    border-color 180ms ease;
}

.text-modal-tab[aria-selected="true"] {
  color: #fff8ef;
  background: var(--burgundy);
  border-color: var(--burgundy-light);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.24);
  transform: translateY(-2px);
}

.text-modal-tab[aria-selected="true"]::after {
  border-color: rgba(255, 255, 255, 0.28);
  opacity: 1;
  transform: scale(1);
}

.text-modal-scroll {
  min-height: 0;
  padding:
    clamp(30px, 4vw, 52px)
    clamp(28px, 5vw, 72px)
    clamp(44px, 5vw, 70px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.text-modal-panel {
  color: var(--text-soft);
  font-size: clamp(1rem, 1.4vw, 1.14rem);
  line-height: 1.85;
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
  transition:
    opacity var(--tab-transition) ease,
    transform 220ms ease,
    filter var(--tab-transition) ease;
  will-change: opacity, transform, filter;
}

.text-modal-panel[hidden] {
  display: none;
}

.text-modal-panel--active {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

.text-modal-panel--leaving {
  opacity: 0;
  filter: blur(2px);
  transform: translateY(-10px);
}

.text-modal-panel--entering {
  opacity: 0;
  filter: blur(2px);
  transform: translateY(14px);
}

.text-modal-panel h3 {
  margin: 0 0 24px;
  color: var(--beige);
  font-size: clamp(1.45rem, 2vw, 2rem);
  line-height: 1.15;
}

.text-modal-panel p {
  margin: 0 0 1.4em;
}

.text-modal-panel p:last-child {
  margin-bottom: 0;
}

@media (max-width: 760px) {
  .text-modal-dialog {
    width: 100%;
    height: calc(100vh - 24px);
    height: calc(100dvh - 24px);
    max-height: none;
    overflow: hidden;
    border-radius: 20px;
  }

  .text-modal-header {
    padding: 36px 24px 24px;
  }

  .text-modal-scroll {
    padding: 30px 24px 42px;
  }

  .text-modal-title {
    font-size: clamp(2.4rem, 13vw, 4rem);
  }

  .text-modal-tab {
    width: 42px;
    height: 42px;
  }
}

/* Scroll to top */

.scroll-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 80;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: var(--beige);
  background:
    radial-gradient(circle at top left, rgba(199, 165, 104, 0.16), transparent 44%),
    rgba(46, 47, 51, 0.94);
  border: 1px solid var(--gold-soft);
  border-radius: 50%;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.36);
  cursor: pointer;
  font-size: 1.25rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px) scale(0.96);
  transition:
    opacity 180ms ease,
    transform 180ms ease,
    background-color 150ms ease,
    border-color 150ms ease,
    color 150ms ease;
}

.scroll-top svg {
  width: 23px;
  height: 23px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.scroll-top--visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.scroll-top:hover,
.scroll-top:focus-visible {
  color: #fff8ef;
  background-color: var(--burgundy);
  border-color: var(--burgundy-light);
  transform: translateY(-2px) scale(1.03);
  outline: none;
}

@media (max-width: 1080px) {
  .site-inner {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .domain-grid {
    grid-column: 1 / -1;
  }

  .site-sidebar {
    grid-column: 1 / -1;
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sidebar-widget {
    aspect-ratio: auto;
    min-height: 260px;
  }

  .selected-works {
    grid-column: 1 / -1;
    min-height: 0;
  }

  .selected-works-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 28px;
  }

  .selected-work-group {
    padding: 0 0 0 18px;
    border-top: 0;
    border-left: 1px solid var(--border);
  }

  .selected-work-group:first-child {
    padding-left: 0;
    border-left: 0;
  }
}

@media (max-width: 760px) {
  .site-container {
    width: min(100% - 24px, 1440px);
    min-height: calc(100vh - 24px);
    margin: 12px auto;
    border-radius: 20px;
  }

  .site-header {
    padding: 34px 24px 38px;
  }

  .site-title {
    color: #fff;
    font-size: clamp(2.7rem, 14vw, 5.2rem);
  }

  .site-headline span {
    display: none;
  }

  .site-inner {
    padding: 24px;
  }

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

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

  .footer-signature {
    font-size: 1.45rem;
  }

  .selected-works-list {
    grid-template-columns: 1fr;
  }

  .selected-work-group,
  .selected-work-group:first-child {
    padding: 12px 0 0;
    border-top: 1px solid var(--border);
    border-left: 0;
  }

  .selected-work-group:first-child {
    padding-top: 0;
    border-top: 0;
  }

  .modal-backdrop {
    padding: 12px;
  }

  .modal-dialog {
    width: 100%;
    max-height: calc(100vh - 24px);
    min-height: 0;
    aspect-ratio: auto;
    overflow-y: auto;
    grid-template-columns: 1fr;
    border-radius: 20px;
  }

  .modal-description-panel {
    min-height: 280px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .modal-description-panel,
  .modal-site-panel {
    padding: 42px 28px;
  }

  .modal-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 500px) {
  .domain-grid,
  .site-sidebar {
    grid-template-columns: 1fr;
  }

  .domain-card {
    aspect-ratio: 1.08 / 1;
  }

  .sidebar-widget {
    min-height: 250px;
  }

  .selected-works {
    min-height: 0;
  }

  .scroll-top {
    right: 14px;
    bottom: 14px;
    width: 42px;
    height: 42px;
  }
}

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