:root {
  color-scheme: light dark;
}

html {
  background-color: #f8f6f3;
}

html.dark {
  background-color: #0f0f10;
}

html[data-theme="light"] {
  color-scheme: light;
}

html[data-theme="dark"] {
  color-scheme: dark;
}

body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.muted-heading,
.surface-title,
.home-hero-title {
  font-family: var(--heading-font, inherit), ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.16;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: keep-all;
  text-wrap: balance;
}

.home-hero-title {
  font-size: clamp(2.2rem, 5vw, 4.25rem) !important;
}

.page-shell {
  background:
    radial-gradient(circle at top, rgba(120, 113, 108, 0.08), transparent 34%),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.48), transparent 24%);
}

.dark .page-shell {
  background:
    radial-gradient(circle at top, rgba(214, 211, 209, 0.07), transparent 28%),
    linear-gradient(to bottom, rgba(28, 25, 23, 0.42), transparent 24%);
}

.home-page.page-shell {
  background:
    radial-gradient(circle at top, color-mix(in srgb, var(--home-accent, #047857) 14%, transparent), transparent 36%),
    var(--home-bg, #f8f6f3);
  color: var(--home-text, #1c1917);
}

.page-shell[style] {
  background:
    radial-gradient(circle at top, color-mix(in srgb, var(--home-accent, #047857) 12%, transparent), transparent 36%),
    var(--home-bg, #f8f6f3);
  color: var(--home-text, #1c1917);
}

.page-shell[style] .muted-copy,
.page-shell[style] .content-copy,
.page-shell[style] .prose,
.page-shell[style] article p:not([class*="text-xs"]):not([class*="text-sm"]),
.page-shell[style] main > section > p {
  font-family: var(--site-font, Inter), ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.75;
  letter-spacing: normal;
  max-width: 100%;
  overflow-wrap: break-word;
  word-break: keep-all;
  text-wrap: pretty;
}

.page-shell[style] .nav-link,
.page-shell[style] .drawer-link,
.page-shell[style] .drawer-sub-link,
.page-shell[style] .header-icon-button,
.page-shell[style] .meta-link,
.page-shell[style] button,
.page-shell[style] input,
.page-shell[style] textarea,
.page-shell[style] select,
.page-shell[style] .category-tile,
.page-shell[style] .surface-card,
.page-shell[style] .site-footer {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.dark .page-shell[style] {
  background:
    radial-gradient(circle at top, color-mix(in srgb, var(--dark-home-accent, #34d399) 12%, transparent), transparent 36%),
    var(--dark-home-bg, #0f0f10);
  color: var(--dark-home-text, #f5f5f4);
}

.page-shell[style] .site-header {
  background-color: color-mix(in srgb, var(--header-bg, #f8f6f3) 86%, transparent);
  color: var(--header-text, #44403c);
}

.dark .page-shell[style] .site-header {
  background-color: color-mix(in srgb, var(--dark-header-bg, #0f0f10) 86%, transparent);
  color: var(--dark-header-text, #e7e5e4);
}

.page-shell[style] .header-brand,
.page-shell[style] .nav-link,
.page-shell[style] .header-icon-button {
  color: var(--header-text, #44403c);
}

.dark .page-shell[style] .header-brand,
.dark .page-shell[style] .nav-link,
.dark .page-shell[style] .header-icon-button {
  color: var(--dark-header-text, #e7e5e4);
}

.page-shell[style] .muted-heading,
.page-shell[style] .surface-title,
.home-page .home-hero-title {
  color: var(--home-text, #1c1917) !important;
}

.dark .page-shell[style] .muted-heading,
.dark .page-shell[style] .surface-title,
.dark .home-page .home-hero-title {
  color: var(--dark-home-text, #f5f5f4) !important;
}

.page-shell[style] .meta-link:hover,
.page-shell[style] .surface-link:hover,
.home-page .home-hero-kicker {
  color: var(--home-accent, #047857) !important;
}

.dark .page-shell[style] .meta-link:hover,
.dark .page-shell[style] .surface-link:hover,
.dark .home-page .home-hero-kicker {
  color: var(--dark-home-accent, #34d399) !important;
}

.page-shell[style] .muted-copy,
.page-shell[style] .category-tile .meta,
.page-shell[style] .text-stone-500,
.page-shell[style] .text-stone-600,
.home-page .home-muted {
  color: var(--home-muted, #57534e) !important;
}

.dark .page-shell[style] .muted-copy,
.dark .page-shell[style] .category-tile .meta,
.dark .page-shell[style] .text-stone-500,
.dark .page-shell[style] .text-stone-600,
.dark .home-page .home-muted {
  color: var(--dark-home-muted, #c4beb8) !important;
}

.page-shell[style] .surface-card,
.page-shell[style] .surface-band,
.page-shell[style] .surface-subtle,
.page-shell[style] .category-tile {
  background-color: color-mix(in srgb, var(--home-card, #ffffff) 82%, transparent);
}

.dark .page-shell[style] .surface-card,
.dark .page-shell[style] .surface-band,
.dark .page-shell[style] .surface-subtle,
.dark .page-shell[style] .category-tile {
  background-color: color-mix(in srgb, var(--dark-home-card, #1c1917) 82%, transparent);
}

.site-header {
  background-color: color-mix(in srgb, var(--header-bg, #f8f6f3) 86%, transparent);
  border-color: rgba(231, 229, 228, 0.8);
  color: var(--header-text, #44403c);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.site-header-inner {
  padding-top: var(--header-padding-y, 1.25rem);
  padding-bottom: var(--header-padding-y, 1.25rem);
}

.dark .site-header {
  background-color: rgba(15, 15, 16, 0.86);
  border-color: rgba(41, 37, 36, 0.96);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.02);
}

.header-brand {
  display: inline-flex;
  flex-direction: column;
  gap: 0.08rem;
  line-height: 1;
  color: rgb(68 64 60);
  transition: color 160ms ease, opacity 160ms ease;
}

.brand-script {
  color: var(--brand-accent, #047857);
  font-family: var(--brand-font, Georgia, 'Times New Roman', serif);
  font-size: clamp(0.72rem, var(--brand-script-size, 0.98rem), 1.35rem);
  font-style: italic;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-main {
  font-size: clamp(0.55rem, var(--brand-main-size, 0.72rem), 0.9rem);
  font-weight: 600;
  letter-spacing: 0.24em;
}

.brand-logo-image {
  display: block;
  max-width: min(42vw, 220px);
  max-height: 3.5rem;
  height: auto;
  object-fit: contain;
}

.header-brand:hover {
  color: rgb(28 25 23);
}

.dark .header-brand {
  color: rgb(231 229 228);
}

.dark .header-brand:hover {
  color: rgb(250 250 249);
}

.dark .brand-script {
  color: var(--dark-brand-accent, #34d399);
}

.header-icon-button {
  color: rgb(68 64 60);
  border-color: rgb(231 229 228);
  background: rgba(255, 255, 255, 0.44);
  transition: color 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.header-icon-button:hover {
  color: rgb(28 25 23);
  border-color: rgb(168 162 158);
}

.dark .header-icon-button {
  color: rgb(231 229 228);
  border-color: rgb(51 47 44);
  background: rgba(28, 25, 23, 0.44);
}

.dark .header-icon-button:hover {
  color: rgb(250 250 249);
  border-color: rgb(120 113 108);
  background: rgba(38, 35, 32, 0.72);
}

.site-drawer {
  background:
    linear-gradient(to bottom, rgba(252, 251, 249, 0.96), rgba(244, 241, 236, 0.96));
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.dark .site-drawer {
  background:
    linear-gradient(to bottom, rgba(20, 20, 22, 0.98), rgba(15, 15, 16, 0.98));
}

.surface-card {
  background: rgba(255, 255, 255, 0.55);
  border-color: rgb(231 229 228);
}

.dark .surface-card {
  background: rgba(28, 25, 23, 0.46);
  border-color: rgb(51 47 44);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.surface-band {
  background: rgba(255, 255, 255, 0.34);
  border-color: rgba(231, 229, 228, 0.9);
}

.dark .surface-band {
  background: rgba(24, 23, 21, 0.44);
  border-color: rgba(51, 47, 44, 0.95);
}

.surface-subtle {
  background: rgba(250, 250, 249, 0.56);
}

.dark .surface-subtle {
  background: rgba(20, 19, 18, 0.52);
}

.section-divider {
  border-color: rgba(231, 229, 228, 0.9);
}

.dark .section-divider {
  border-color: rgba(51, 47, 44, 0.94);
}

.dark .muted-heading {
  color: rgb(231 229 228);
}

.dark .muted-copy {
  color: rgb(196 190 186);
}

.surface-title {
  color: rgb(28 25 23);
}

.dark .surface-title {
  color: rgb(245 245 244);
}

.surface-link {
  color: rgb(68 64 60);
  transition: color 160ms ease;
}

.surface-link:hover {
  color: rgb(116 110 103);
}

.dark .surface-link {
  color: rgb(231 229 228);
}

.dark .surface-link:hover {
  color: rgb(250 250 249);
}

.meta-link {
  color: rgb(87 83 78);
  transition: color 160ms ease;
}

.meta-link:hover {
  color: rgb(116 110 103);
}

.dark .meta-link {
  color: rgb(214 211 209);
}

.dark .meta-link:hover {
  color: rgb(250 250 249);
}

::selection {
  background: rgba(116, 110, 103, 0.18);
}

[id] {
  scroll-margin-top: 6rem;
}

.nav-link,
.drawer-link {
  position: relative;
  border-radius: 999px;
  border: 0;
  padding: 0.35rem 0.55rem;
  color: rgb(87 83 78);
  background: transparent;
  font: inherit;
  transition: color 160ms ease, background-color 160ms ease;
}

button.nav-link {
  cursor: pointer;
}

.dark .nav-link,
.dark .drawer-link {
  color: rgb(216 212 208);
}

.nav-link:hover,
.drawer-link:hover,
.nav-link[aria-current="page"],
.nav-link.is-active,
.drawer-link[aria-current="page"] {
  color: rgb(41 37 36);
  background: rgba(120, 113, 108, 0.10);
}

.dark .nav-link:hover,
.dark .drawer-link:hover,
.dark .nav-link[aria-current="page"],
.dark .nav-link.is-active,
.dark .drawer-link[aria-current="page"] {
  color: rgb(250 250 249);
  background: rgba(231, 229, 228, 0.08);
}

.site-drawer .drawer-link {
  color: rgb(68 64 60);
}

.dark .site-drawer .drawer-link {
  color: rgb(231 229 228);
}

.drawer-sub-links {
  margin-top: -0.85rem;
  margin-left: 0.85rem;
  display: grid;
  gap: 0.45rem;
  border-left: 1px solid rgba(120, 113, 108, 0.28);
  padding-left: 0.9rem;
}

.drawer-sub-link {
  color: rgb(87 83 78);
  font-size: 0.95rem;
}

.drawer-sub-link:hover,
.drawer-sub-link.is-active {
  color: rgb(28 25 23);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.dark .drawer-sub-links {
  border-color: rgba(231, 229, 228, 0.16);
}

.dark .drawer-sub-link {
  color: rgb(216 212 208);
}

.dark .drawer-sub-link:hover,
.dark .drawer-sub-link.is-active {
  color: rgb(250 250 249);
}

.nav-link::after,
.drawer-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 100%;
  height: 1px;
  transform: scaleX(0);
  transform-origin: left;
  background: currentColor;
  transition: transform 180ms ease;
}

.nav-link:hover::after,
.drawer-link:hover::after,
.nav-link[aria-current="page"]::after,
.nav-link.is-active::after,
.drawer-link[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-dropdown-wrap {
  position: relative;
  padding-block: 0.35rem;
}

.nav-dropdown {
  position: absolute;
  left: 50%;
  top: calc(100% + 0.2rem);
  z-index: 50;
  display: grid;
  min-width: 10rem;
  transform: translateX(-50%) translateY(-0.25rem);
  border: 1px solid rgb(231 229 228);
  background: rgba(255, 255, 255, 0.96);
  padding: 0.45rem;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 18px 45px rgba(28, 25, 23, 0.14);
  transition: opacity 160ms ease, transform 160ms ease;
}

.nav-dropdown-wrap:hover .nav-dropdown,
.nav-dropdown-wrap:focus-within .nav-dropdown,
.nav-dropdown-wrap.is-open .nav-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown a {
  padding: 0.5rem 0.7rem;
  color: rgb(87 83 78);
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}

.nav-dropdown a:hover {
  background: rgba(120, 113, 108, 0.10);
  color: rgb(28 25 23);
}

.nav-dropdown a[aria-current="page"] {
  background: rgba(120, 113, 108, 0.10);
  color: rgb(28 25 23);
}

.dark .nav-dropdown {
  border-color: rgb(51 47 44);
  background: rgba(28, 25, 23, 0.97);
}

.dark .nav-dropdown a {
  color: rgb(216 212 208);
}

.dark .nav-dropdown a:hover {
  background: rgba(231, 229, 228, 0.08);
  color: rgb(250 250 249);
}

.dark .nav-dropdown a[aria-current="page"] {
  background: rgba(231, 229, 228, 0.08);
  color: rgb(250 250 249);
}

.category-tile {
  display: flex;
  min-height: 7.25rem;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0.85rem;
  border: 1px solid rgb(231 229 228);
  padding: 1.25rem 1.35rem;
  color: rgb(28 25 23);
  background: rgba(255, 255, 255, 0.48);
  transition: border-color 160ms ease, transform 160ms ease, background-color 160ms ease;
}

.category-tile > span:first-child {
  font-size: 1.08rem;
  font-weight: 650;
}

.category-tile:hover {
  transform: translateY(-1px);
  border-color: rgb(168 162 158);
  background: rgba(255, 255, 255, 0.78);
}

.category-tile .meta {
  color: rgb(120 113 108);
  font-size: 0.92rem;
  line-height: 1.65;
}

.dark .category-tile {
  border-color: rgb(41 37 36);
  color: rgb(245 245 244);
  background: rgba(28, 25, 23, 0.48);
}

.dark .category-tile:hover {
  border-color: rgb(87 83 78);
  background: rgba(38, 35, 32, 0.72);
}

.dark .category-tile .meta {
  color: rgb(168 162 158);
}

.about-mini-nav {
  border-left: 2px solid rgba(120, 113, 108, 0.28);
  padding-left: 1rem;
}

.about-mini-nav p {
  color: rgb(68 64 60);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.about-mini-nav ul {
  margin-top: 0.75rem;
  display: grid;
  gap: 0.45rem;
  color: rgb(87 83 78);
  font-size: 0.95rem;
}

.about-mini-nav li::before {
  content: "·";
  margin-right: 0.45rem;
}

.dark .about-mini-nav {
  border-color: rgba(231, 229, 228, 0.18);
}

.dark .about-mini-nav p,
.dark .about-mini-nav ul {
  color: rgb(214 211 209);
}

.filter-pill {
  border: 1px solid rgb(231 229 228);
  min-width: 7.4rem;
  padding: 0.82rem 1.15rem;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgb(87 83 78);
  background: rgba(255, 255, 255, 0.5);
  transition: border-color 160ms ease, color 160ms ease, background-color 160ms ease;
}

.filter-pill:hover,
.filter-pill.is-active {
  border-color: rgb(168 162 158);
  color: rgb(28 25 23);
  background-color: rgba(245, 245, 244, 0.9);
}

.archive-pagination {
  margin-top: 3rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.38rem;
  color: rgb(87 83 78);
  font-size: 0.86rem;
  font-weight: 650;
}

.archive-pagination a {
  display: inline-flex;
  min-width: 1.75rem;
  height: 1.75rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid transparent;
}

.archive-pagination a:hover,
.archive-pagination a.is-active {
  color: rgb(250 250 249);
  background: rgb(68 64 60);
}

.dark .filter-pill {
  border-color: rgb(41 37 36);
  color: rgb(214 211 209);
  background: rgba(28, 25, 23, 0.34);
}

.dark .filter-pill:hover,
.dark .filter-pill.is-active {
  border-color: rgb(87 83 78);
  color: rgb(250 250 249);
  background-color: rgba(28, 25, 23, 0.45);
}

.dark .archive-pagination {
  color: rgb(214 211 209);
}

.dark .archive-pagination a:hover,
.dark .archive-pagination a.is-active {
  color: rgb(28 25 23);
  background: rgb(231 229 228);
}

.work-card {
  transition: opacity 220ms ease, transform 220ms ease;
}

.work-card.is-hidden {
  display: none;
}

.concept-work-page {
  background:
    radial-gradient(circle at 18% 0%, rgba(120, 113, 108, 0.08), transparent 28%),
    transparent;
}

.concept-hero .muted-copy {
  margin-top: 0;
}

.concept-gallery {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 2.2rem);
  align-items: start;
}

.concept-gallery-item {
  grid-column: span 4;
}

.concept-gallery-item.concept-wide {
  grid-column: span 6;
}

.concept-gallery-item.concept-small {
  grid-column: span 3;
}

.concept-image-link {
  background: rgba(255, 255, 255, 0.48);
  border: 1px solid rgba(231, 229, 228, 0.95);
}

.concept-image-link img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 500ms ease, filter 180ms ease;
}

.concept-wide .concept-image-link img {
  aspect-ratio: 16 / 10;
}

.concept-small .concept-image-link img {
  aspect-ratio: 1 / 1.08;
}

.concept-image-link:hover img {
  transform: scale(1.025);
  filter: saturate(1.04);
}

.concept-caption h2 {
  font-size: 0.98rem;
}

.concept-caption p,
.concept-caption span {
  font-size: 0.78rem;
}

.dark .concept-image-link {
  background: rgba(28, 25, 23, 0.48);
  border-color: rgba(51, 47, 44, 0.95);
}

.project-detail-page {
  background: transparent;
}

.project-detail-hero {
  border-bottom: 1px solid rgba(231, 229, 228, 0.92);
  padding-bottom: 3rem;
}

.project-hero-image img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.project-gallery-grid .concept-image-link img {
  aspect-ratio: 4 / 3;
}

.dark .project-detail-hero {
  border-color: rgba(51, 47, 44, 0.95);
}

.research-page {
  background:
    radial-gradient(circle at 12% 4%, rgba(220, 38, 38, 0.045), transparent 26%),
    transparent;
}

.research-hero .muted-copy {
  margin-top: 0;
}

.research-feed {
  display: grid;
  gap: 1.35rem;
}

.research-card {
  display: grid;
  grid-template-columns: minmax(8.5rem, 12rem) minmax(0, 1fr);
  gap: 1.25rem;
  border-bottom: 1px solid rgba(231, 229, 228, 0.92);
  padding-bottom: 1.35rem;
}

.research-thumb {
  display: block;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(231, 229, 228, 0.95);
}

.research-thumb img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 420ms ease;
}

.research-card:hover .research-thumb img {
  transform: scale(1.035);
}

.research-category {
  color: rgb(185 28 28);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.research-card h2 {
  margin-top: 0.25rem;
  max-width: 44rem;
  color: rgb(28 25 23);
  font-size: clamp(1.15rem, 2.2vw, 1.65rem);
  font-weight: 750;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.research-card h2 a:hover {
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.14em;
}

.research-excerpt {
  margin-top: 0.55rem;
  max-width: 42rem;
  color: rgb(87 83 78);
  font-size: 0.94rem;
  line-height: 1.7;
}

.research-meta {
  margin-top: 0.7rem;
  color: rgb(120 113 108);
  font-size: 0.78rem;
}

.research-sidebar {
  position: sticky;
  top: 6rem;
  align-self: start;
}

.research-sidebar li {
  display: flex;
  gap: 0.75rem;
  border-bottom: 1px solid rgba(231, 229, 228, 0.9);
  padding-bottom: 0.75rem;
  color: rgb(68 64 60);
  font-size: 0.95rem;
}

.research-sidebar li span {
  color: rgb(185 28 28);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.dark .research-card,
.dark .research-sidebar li {
  border-color: rgba(51, 47, 44, 0.95);
}

.dark .research-thumb {
  background: rgba(28, 25, 23, 0.48);
  border-color: rgba(51, 47, 44, 0.95);
}

.dark .research-card h2,
.dark .research-sidebar li {
  color: rgb(250 250 249);
}

.dark .research-excerpt {
  color: rgb(214 211 209);
}

.dark .research-meta {
  color: rgb(168 162 158);
}

.photograph-page {
  background:
    radial-gradient(circle at 82% 8%, rgba(59, 130, 246, 0.06), transparent 30%),
    transparent;
}

.photograph-hero .muted-copy {
  margin-top: 0;
}

.photo-mosaic {
  display: grid;
  grid-auto-flow: dense;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(0.65rem, 1.6vw, 1.15rem);
}

.photo-card {
  position: relative;
  grid-column: span 3;
}

.photo-card.photo-large {
  grid-column: span 6;
  grid-row: span 2;
}

.photo-card.photo-wide {
  grid-column: span 6;
}

.photo-card.photo-tall {
  grid-column: span 3;
  grid-row: span 2;
}

.photo-frame {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(231, 229, 228, 0.95);
}

.photo-frame img {
  width: 100%;
  height: 100%;
  min-height: 15rem;
  object-fit: cover;
  transition: transform 520ms ease, filter 180ms ease;
}

.photo-large .photo-frame img {
  min-height: 31rem;
}

.photo-wide .photo-frame img {
  min-height: 18rem;
}

.photo-tall .photo-frame img {
  min-height: 31rem;
}

.photo-card:hover .photo-frame img {
  transform: scale(1.025);
  filter: saturate(1.06) contrast(1.02);
}

.photo-caption {
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.75rem;
  z-index: 2;
  padding: 0.75rem;
  color: white;
  background: linear-gradient(135deg, rgba(15, 15, 16, 0.72), rgba(15, 15, 16, 0.24));
  opacity: 0;
  transform: translateY(0.35rem);
  transition: opacity 180ms ease, transform 180ms ease;
}

.photo-card:hover .photo-caption,
.photo-card:focus-within .photo-caption {
  opacity: 1;
  transform: translateY(0);
}

.photo-caption p {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.photo-caption h2 {
  margin-top: 0.2rem;
  font-size: 1.05rem;
  font-weight: 650;
}

.photo-caption span {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.82);
}

.dark .photo-frame {
  background: rgba(28, 25, 23, 0.48);
  border-color: rgba(51, 47, 44, 0.95);
}

.doodle-page {
  background:
    radial-gradient(circle at 12% 6%, rgba(20, 184, 166, 0.07), transparent 30%),
    transparent;
}

.doodle-hero .muted-copy {
  margin-top: 0;
}

.doodle-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.65rem);
}

.doodle-card {
  min-width: 0;
}

.doodle-thumb {
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(231, 229, 228, 0.95);
}

.doodle-thumb img {
  width: 100%;
  aspect-ratio: 1 / 0.86;
  object-fit: cover;
  transition: transform 420ms ease, filter 180ms ease;
}

.doodle-card:hover .doodle-thumb img {
  transform: scale(1.025);
  filter: saturate(1.04);
}

.doodle-card-copy {
  padding-top: 0.65rem;
}

.doodle-card-copy p {
  color: rgb(120 113 108);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.doodle-card-copy h2 {
  margin-top: 0.22rem;
  color: rgb(41 37 36);
  font-size: 0.94rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.doodle-pagination {
  margin-top: 3rem;
  display: flex;
  justify-content: center;
  gap: 0.38rem;
  color: rgb(87 83 78);
  font-size: 0.86rem;
  font-weight: 650;
}

.doodle-pagination span {
  display: inline-flex;
  min-width: 1.65rem;
  height: 1.65rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
}

.doodle-pagination span.is-active {
  color: rgb(250 250 249);
  background: rgb(68 64 60);
}

.dark .doodle-thumb {
  background: rgba(28, 25, 23, 0.48);
  border-color: rgba(51, 47, 44, 0.95);
}

.dark .doodle-card-copy p,
.dark .doodle-pagination {
  color: rgb(168 162 158);
}

.dark .doodle-card-copy h2 {
  color: rgb(250 250 249);
}

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

  .research-sidebar {
    position: static;
  }
}

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

  .photo-card,
  .photo-card.photo-large,
  .photo-card.photo-wide,
  .photo-card.photo-tall {
    grid-column: span 6;
    grid-row: auto;
  }

  .photo-frame img,
  .photo-large .photo-frame img,
  .photo-wide .photo-frame img,
  .photo-tall .photo-frame img {
    min-height: 22rem;
  }
}

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

  .photo-mosaic {
    grid-template-columns: 1fr;
  }

  .photo-card,
  .photo-card.photo-large,
  .photo-card.photo-wide,
  .photo-card.photo-tall {
    grid-column: span 1;
  }

  .photo-frame img,
  .photo-large .photo-frame img,
  .photo-wide .photo-frame img,
  .photo-tall .photo-frame img {
    min-height: 19rem;
  }

  .photo-caption {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1023px) {
  .concept-gallery-item,
  .concept-gallery-item.concept-wide,
  .concept-gallery-item.concept-small {
    grid-column: span 6;
  }
}

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

  .concept-gallery-item,
  .concept-gallery-item.concept-wide,
  .concept-gallery-item.concept-small {
    grid-column: span 1;
  }
}

.image-frame {
  position: relative;
  display: block;
  overflow: hidden;
}

.image-frame img {
  display: block;
}

.image-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(28, 25, 23, 0.22), transparent 34%);
  opacity: 0;
  transition: opacity 180ms ease;
}

.image-frame:hover::after,
.image-frame:focus-visible::after {
  opacity: 1;
}

.image-open-hint,
.image-dimension-badge {
  position: absolute;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: rgb(250 250 249);
  background: rgba(28, 25, 23, 0.72);
}

.image-open-hint {
  left: 0.75rem;
  top: 0.75rem;
  padding: 0.35rem 0.55rem;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  opacity: 0;
  transition: opacity 180ms ease;
}

.image-frame:hover .image-open-hint,
.image-frame:focus-visible .image-open-hint {
  opacity: 1;
}

.image-dimension-badge {
  right: 0.75rem;
  bottom: 0.75rem;
  padding: 0.38rem 0.58rem;
  font-size: 0.72rem;
  letter-spacing: 0.03em;
}

.dark .image-open-hint,
.dark .image-dimension-badge {
  background: rgba(12, 10, 9, 0.78);
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  place-items: center;
  padding: 2rem;
  background: rgba(15, 15, 16, 0.82);
  backdrop-filter: blur(10px);
}

.image-lightbox.is-open {
  display: grid;
}

.image-lightbox img {
  max-width: min(92vw, 1200px);
  max-height: 82vh;
  object-fit: contain;
  background: rgb(245 245 244);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.36);
}

.image-lightbox p {
  margin-top: 0.9rem;
  color: rgb(231 229 228);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

.image-lightbox-close {
  position: absolute;
  right: 1.25rem;
  top: 1rem;
  color: white;
  font-size: 2rem;
  line-height: 1;
}

[data-menu-overlay].is-open {
  display: block;
}

[data-menu-drawer].is-open {
  transform: translateX(0);
}

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