@font-face {
  font-family: "Century Gothic";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/century-gothic-regular.woff2") format("woff2"),
       url("../fonts/century-gothic-regular.woff") format("woff");
}

@font-face {
  font-family: "Century Gothic";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/century-gothic-bold.woff2") format("woff2"),
       url("../fonts/century-gothic-bold.woff") format("woff");
}

@font-face {
  font-family: "DIN Next LT Arabic";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/DIN Next LT Arabic/ARBFONTS-DINNEXTLTARABIC-REGULAR-4.woff2") format("woff2"),
       url("../fonts/DIN Next LT Arabic/ARBFONTS-DINNEXTLTARABIC-REGULAR-4.TTF") format("truetype");
  unicode-range: U+0600-065F, U+066A-06EF, U+06FA-06FF, U+0750-077F, U+0870-089F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+10EC0-10EFF;
}

@font-face {
  font-family: "DIN Next LT Arabic";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/DIN Next LT Arabic/ARBFONTS-DINNEXTLTARABIC-MEDIUM-4.woff2") format("woff2"),
       url("../fonts/DIN Next LT Arabic/ARBFONTS-DINNEXTLTARABIC-MEDIUM-4.TTF") format("truetype");
  unicode-range: U+0600-065F, U+066A-06EF, U+06FA-06FF, U+0750-077F, U+0870-089F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+10EC0-10EFF;
}

@font-face {
  font-family: "DIN Next LT Arabic";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/DIN Next LT Arabic/ARBFONTS-DINNEXTLTARABIC-BOLD-4.woff2") format("woff2"),
       url("../fonts/DIN Next LT Arabic/ARBFONTS-DINNEXTLTARABIC-BOLD-4.TTF") format("truetype");
  unicode-range: U+0600-065F, U+066A-06EF, U+06FA-06FF, U+0750-077F, U+0870-089F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+10EC0-10EFF;
}

@font-face {
  font-family: "DIN Next LT Arabic";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/DIN Next LT Arabic/ARBFONTS-DINNEXTLTARABIC-BOLD-4.woff2") format("woff2"),
       url("../fonts/DIN Next LT Arabic/ARBFONTS-DINNEXTLTARABIC-BOLD-4.TTF") format("truetype");
  unicode-range: U+0600-065F, U+066A-06EF, U+06FA-06FF, U+0750-077F, U+0870-089F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+10EC0-10EFF;
}

@font-face {
  font-family: "DIN Next LT Arabic Punctuation";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/DIN Next LT Arabic/ARBFONTS-DINNEXTLTARABIC-REGULAR-4.woff2") format("woff2"),
       url("../fonts/DIN Next LT Arabic/ARBFONTS-DINNEXTLTARABIC-REGULAR-4.TTF") format("truetype");
  unicode-range: U+0021-002F, U+003A-0040, U+005B-0060, U+007B-007E, U+00A1, U+00A6, U+00A8, U+00AB, U+00B0, U+00B4, U+00B7, U+00BB, U+00BF, U+2010-2027, U+2030-203A, U+2043-2044, U+2047-205E;
}

@font-face {
  font-family: "DIN Next LT Arabic Punctuation";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/DIN Next LT Arabic/ARBFONTS-DINNEXTLTARABIC-MEDIUM-4.woff2") format("woff2"),
       url("../fonts/DIN Next LT Arabic/ARBFONTS-DINNEXTLTARABIC-MEDIUM-4.TTF") format("truetype");
  unicode-range: U+0021-002F, U+003A-0040, U+005B-0060, U+007B-007E, U+00A1, U+00A6, U+00A8, U+00AB, U+00B0, U+00B4, U+00B7, U+00BB, U+00BF, U+2010-2027, U+2030-203A, U+2043-2044, U+2047-205E;
}

@font-face {
  font-family: "DIN Next LT Arabic Punctuation";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/DIN Next LT Arabic/ARBFONTS-DINNEXTLTARABIC-BOLD-4.woff2") format("woff2"),
       url("../fonts/DIN Next LT Arabic/ARBFONTS-DINNEXTLTARABIC-BOLD-4.TTF") format("truetype");
  unicode-range: U+0021-002F, U+003A-0040, U+005B-0060, U+007B-007E, U+00A1, U+00A6, U+00A8, U+00AB, U+00B0, U+00B4, U+00B7, U+00BB, U+00BF, U+2010-2027, U+2030-203A, U+2043-2044, U+2047-205E;
}

@font-face {
  font-family: "DIN Next LT Arabic Punctuation";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/DIN Next LT Arabic/ARBFONTS-DINNEXTLTARABIC-BOLD-4.woff2") format("woff2"),
       url("../fonts/DIN Next LT Arabic/ARBFONTS-DINNEXTLTARABIC-BOLD-4.TTF") format("truetype");
  unicode-range: U+0021-002F, U+003A-0040, U+005B-0060, U+007B-007E, U+00A1, U+00A6, U+00A8, U+00AB, U+00B0, U+00B4, U+00B7, U+00BB, U+00BF, U+2010-2027, U+2030-203A, U+2043-2044, U+2047-205E;
}

:root {
  --white: #ffffff;
  --ink: #434343;
  --heading: #494e52;
  --nav-height: 72px;
  --nav-bg: rgba(67, 67, 67, 0.5);
  --nav-width: 800px;
  --nav-logo: 50px;
  --nav-chevron: 16px;
  --nav-search: 20px;
  --nav-hover: rgba(255, 255, 255, 0.08);
  --page-pad: 48px;
  --hero-height: 100dvh;
  --max: 1440px;
  --font: "DIN Next LT Arabic", "Century Gothic";
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font);
  background-color: #434343;
}

html[lang="ar"] {
  --font: "DIN Next LT Arabic", "DIN Next LT Arabic Punctuation", "Century Gothic";
}

html[lang="ar"],
html[lang="ar"] body,
html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3,
html[lang="ar"] h4,
html[lang="ar"] .site-header,
html[lang="ar"] .site-nav,
html[lang="ar"] .site-footer,
html[lang="ar"] input,
html[lang="ar"] button,
html[lang="ar"] textarea,
html[lang="ar"] table {
  font-family: var(--font);
}

html[dir="rtl"] .dropdown a,
html[dir="rtl"] .dropdown button {
  text-align: right;
}

/* Language dropdown menu: flags always positioned on the left-hand side of their language across all languages */
.lang-toggle .nav-label,
html[dir="rtl"] .lang-toggle .nav-label {
  direction: ltr !important;
  display: inline-flex;
  align-items: center;
  height: 100%;
  unicode-bidi: isolate !important;
}

.lang-toggle + .dropdown,
.nav-item:has(.lang-toggle) .dropdown,
.dropdown[dir="ltr"],
html[dir="rtl"] .lang-toggle + .dropdown,
html[dir="rtl"] .nav-item:has(.lang-toggle) .dropdown,
html[dir="rtl"] .dropdown[dir="ltr"] {
  direction: ltr !important;
  text-align: left !important;
}

.lang-toggle + .dropdown a,
.lang-toggle + .dropdown button,
.nav-item:has(.lang-toggle) .dropdown a,
.nav-item:has(.lang-toggle) .dropdown button,
.dropdown[dir="ltr"] a,
.dropdown[dir="ltr"] button,
html[dir="rtl"] .lang-toggle + .dropdown a,
html[dir="rtl"] .lang-toggle + .dropdown button,
html[dir="rtl"] .nav-item:has(.lang-toggle) .dropdown a,
html[dir="rtl"] .nav-item:has(.lang-toggle) .dropdown button,
html[dir="rtl"] .dropdown[dir="ltr"] a,
html[dir="rtl"] .dropdown[dir="ltr"] button {
  direction: ltr !important;
  text-align: left !important;
  justify-content: flex-start !important;
  unicode-bidi: isolate !important;
}

html[dir="rtl"] .sitemap ul {
  padding-left: 0;
  padding-right: 20px;
}

html[dir="rtl"] .module-table th,
html[dir="rtl"] .module-table td {
  text-align: right;
}

html[dir="rtl"] .pub-list,
html[dir="rtl"] .entry-list,
html[dir="rtl"] .bio-text,
html[dir="rtl"] .post-article p,
html[dir="rtl"] .scholar-row,
html[dir="rtl"] .photo-intro,
html[dir="rtl"] .portfolio-note,
html[dir="rtl"] .caption {
  direction: rtl;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
}

/* GSAP Orchestration Initial States for Hero and Coverpages */
html:not(.is-orchestrated) body:has(.banner) .site-header .logo,
html:not(.is-orchestrated) body:has(.banner) .logo {
  opacity: 0;
}

html:not(.is-orchestrated) body:has(.banner) .nav-toggle {
  opacity: 0;
}

html:not(.is-orchestrated) body:has(.banner) .nav-tab,
html:not(.is-orchestrated) body:has(.banner) .site-nav .nav-tab,
html:not(.is-orchestrated) body:has(.banner) .site-nav > a,
html:not(.is-orchestrated) body:has(.banner) .site-nav > .nav-item,
html:not(.is-orchestrated) body:has(.banner) .site-nav > .nav-theme,
html:not(.is-orchestrated) body:has(.banner) .site-nav > .nav-search,
html:not(.is-orchestrated) body:has(.banner) .site-nav > .search-btn,
html:not(.is-orchestrated) body:has(.banner) .site-nav > .theme-toggle-btn {
  opacity: 0;
}

html:not(.is-orchestrated) .banner .main-header,
html:not(.is-orchestrated) .banner h1 {
  opacity: 0;
  transform: translateY(30px);
  will-change: opacity, transform;
  pointer-events: none;
}

html:not(.is-orchestrated) .banner .hero-skip {
  opacity: 0;
  pointer-events: none;
}

/* While orchestrating, disable CSS transitions on animated properties to prevent fighting GSAP */
html:not(.is-orchestrated) .banner .interactive-bg__photo,
html:not(.is-orchestrated) .banner .interactive-bg__shade,
html:not(.is-orchestrated) .banner .interactive-bg__points,
html:not(.is-orchestrated) .logo,
html:not(.is-orchestrated) .nav-tab,
html:not(.is-orchestrated) .banner .main-header,
html:not(.is-orchestrated) .banner-title {
  transition: none !important;
}

/* Ensure mobile navbar hamburger button's morphing into X and rotation is always active, even during orchestration */
html:not(.is-orchestrated) .nav-toggle {
  transition: transform 150ms ease !important;
}
html:not(.is-orchestrated) .nav-toggle[aria-expanded="true"] {
  transition: transform 150ms ease 150ms !important;
}
html:not(.is-orchestrated) .nav-toggle span:not(.visually-hidden) {
  transition: transform 150ms ease 150ms !important;
}
html:not(.is-orchestrated) .nav-toggle[aria-expanded="true"] span:not(.visually-hidden) {
  transition: transform 150ms ease 0ms !important;
}

@media (prefers-reduced-motion: reduce) {
  html:not(.is-orchestrated) body:has(.banner) .site-header .logo,
  html:not(.is-orchestrated) body:has(.banner) .logo,
  html:not(.is-orchestrated) body:has(.banner) .nav-toggle,
  html:not(.is-orchestrated) body:has(.banner) .nav-tab,
  html:not(.is-orchestrated) body:has(.banner) .site-nav .nav-tab,
  html:not(.is-orchestrated) body:has(.banner) .site-nav > a,
  html:not(.is-orchestrated) body:has(.banner) .site-nav > .nav-item,
  html:not(.is-orchestrated) body:has(.banner) .site-nav > .nav-theme,
  html:not(.is-orchestrated) body:has(.banner) .site-nav > .nav-search,
  html:not(.is-orchestrated) body:has(.banner) .site-nav > .search-btn,
  html:not(.is-orchestrated) body:has(.banner) .site-nav > .theme-toggle-btn,
  html:not(.is-orchestrated) .banner .main-header,
  html:not(.is-orchestrated) .banner h1,
  html:not(.is-orchestrated) .banner .hero-skip {
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto !important;
  }
}

h1,
h2,
h3,
h4,
.site-header,
.site-nav,
.site-footer,
input,
button,
textarea,
table {
  font-family: var(--font);
}

img {
  max-width: 100%;
  display: block;
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

a,
button,
summary,
[role="button"],
[role="menuitem"] {
  -webkit-tap-highlight-color: transparent;
  outline: 2px solid transparent;
}

a:focus,
a:focus-visible,
button:focus,
button:focus-visible,
summary:focus,
summary:focus-visible {
  outline: 2px solid transparent;
}

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

/* Header — Figma node 208:2 Main Navigation Bar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  box-sizing: border-box;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  overflow: visible;
  background-color: var(--nav-bg);
  color: var(--white);
  font-family: var(--font);
  border: none;
  box-shadow: none;
}

.site-header > *,
.logo img,
.site-nav,
.nav-toggle,
.nav-toggle span,
.site-nav a,
.site-nav .nav-label,
.site-nav button,
.chevron,
.search-btn img {
  opacity: 1;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 var(--nav-logo);
  width: var(--nav-logo);
  height: var(--nav-logo);
}

.logo img {
  width: var(--nav-logo);
  height: var(--nav-logo);
  object-fit: contain;
  opacity: 1;
}

html.is-logo-nav-pending .site-nav,
html.is-logo-nav-pending .nav-toggle,
.site-header.is-logo-animating .site-nav,
.site-header.is-logo-animating .nav-toggle {
  opacity: 0;
  pointer-events: none;
}

/* Free the flex track so the logo can grow to the search/hamburger edge. */
.site-header.is-logo-animating .site-nav,
.site-header.is-logo-animating .nav-toggle {
  flex: 0 0 0;
  width: 0;
  min-width: 0;
  max-width: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
}

.logo.is-animating {
  flex: 0 0 auto;
  width: auto;
  max-width: none;
  min-width: 0;
  height: var(--logo-anim-height, var(--nav-logo));
  /* flex-start follows writing direction: left in LTR, right in RTL. */
  justify-content: flex-start;
  overflow: visible;
  z-index: 2;
}

.logo-anim-shell {
  position: relative;
  display: block;
  width: 100%;
  height: var(--logo-anim-height, var(--nav-logo));
  overflow: visible;
  pointer-events: none;
}

.logo-anim-canvas {
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
  user-select: none;
}

@media (prefers-reduced-motion: reduce) {
  html.is-logo-nav-pending .site-nav,
  html.is-logo-nav-pending .nav-toggle {
    opacity: 1;
    pointer-events: auto;
  }
}

.nav-toggle {
  display: none;
  box-sizing: border-box;
  width: 20px;
  height: 20px;
  min-width: 20px;
  min-height: 20px;
  max-width: 20px;
  max-height: 20px;
  aspect-ratio: 1 / 1;
  padding: 0;
  margin: 0;
  line-height: 0;
  align-self: center;
  flex: none;
  overflow: visible;
}

.nav-toggle span:not(.visually-hidden) {
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: var(--white);
  opacity: 1;
  transform-origin: center;
  transition: transform 150ms ease;
}

.site-nav {
  display: flex;
  align-items: center;
  align-self: stretch;
  justify-content: space-between;
  flex-wrap: nowrap;
  width: var(--nav-width);
  max-width: min(var(--nav-width), calc(100% - 98px));
  font-family: var(--font);
  font-size: 16px;
  line-height: normal;
  color: var(--white);
}

.site-nav > a,
.lang-toggle,
.search-btn,
.theme-toggle-btn,
.nav-item > a.nav-label,
.nav-item > button[aria-haspopup]:not(.lang-toggle),
.nav-item > button.submenu-toggle {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 400;
  line-height: normal;
  color: var(--white);
  white-space: nowrap;
  opacity: 1;
  cursor: pointer;
}

.search-btn {
  width: var(--nav-search);
  height: var(--nav-search);
}

.nav-search {
  position: relative;
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.nav-theme {
  position: relative;
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.theme-toggle-btn {
  width: var(--nav-logo);
  height: var(--nav-logo);
  min-width: var(--nav-logo);
  min-height: var(--nav-logo);
  border-radius: 50%;
  background: transparent;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.theme-toggle-btn:hover,
.theme-toggle-btn:focus,
.theme-toggle-btn:focus-visible,
.theme-toggle-btn:active {
  background: transparent;
  background-color: transparent;
  box-shadow: none;
}

.theme-toggle-canvas {
  display: block;
  width: var(--nav-logo);
  height: var(--nav-logo);
  pointer-events: none;
}

.theme-toggle-btn .theme-label {
  display: none !important;
}

.site-nav a.is-active,
.nav-item > a.nav-label.is-active {
  font-weight: 700;
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  align-self: stretch;
  gap: 6px;
  flex: 0 0 auto;
}

.nav-item > button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.nav-item > button.submenu-toggle,
.nav-item > button[aria-haspopup]:not(.lang-toggle) {
  width: var(--nav-chevron);
  height: var(--nav-chevron);
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  cursor: pointer;
  flex: 0 0 auto;
}

.lang-toggle {
  font-family: var(--font);
  gap: 6px;
  border: none;
  background: transparent;
  padding: 0;
  margin: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: normal;
}

.lang-menu button {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-menu button[aria-checked="true"] {
  font-weight: 700;
  background: transparent;
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  z-index: 80;
  min-width: 180px;
  padding: 8px 0;
  background-color: var(--nav-bg);
  border-radius: 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  font-family: var(--font);
  color: var(--white);
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(-10px);
  transition:
    transform 0.22s cubic-bezier(0.23, 1, 0.32, 1),
    opacity 0.2s cubic-bezier(0.23, 1, 0.32, 1),
    visibility 0.22s;
  will-change: transform, opacity;
}

.dropdown::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
  background: transparent;
}

.dropdown a,
.dropdown button {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 40px;
  text-align: left;
  padding: 0 14px;
  font-family: var(--font);
  font-size: 16px;
  color: var(--white);
  background: transparent;
  opacity: 1;
}

.dropdown a:hover,
.dropdown button:hover {
  background: var(--nav-hover);
}

.dropdown a[aria-current="page"],
.dropdown a[aria-current="true"] {
  font-weight: 700;
}

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

.nav-item.is-open .chevron {
  transform: rotate(180deg);
}

@media (min-width: 1321px) {
  .nav-item:hover .chevron,
  .nav-item:focus-within .chevron {
    transform: rotate(180deg);
  }

  .nav-item.is-dismissed .chevron,
  .nav-item.is-dismissed:hover .chevron,
  .nav-item.is-dismissed:focus-within .chevron {
    transform: none;
  }

  .nav-item.is-dismissed .dropdown,
  .nav-item.is-dismissed:hover .dropdown,
  .nav-item.is-dismissed:focus-within .dropdown {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%) translateY(-10px);
  }
}

.chevron {
  display: block;
  width: var(--nav-chevron);
  height: var(--nav-chevron);
  margin: 0;
  flex-shrink: 0;
  opacity: 1;
  transform-origin: center;
  transition: transform 0.22s cubic-bezier(0.23, 1, 0.32, 1);
}

.search-btn img {
  display: block;
  width: var(--nav-search);
  height: var(--nav-search);
  opacity: 1;
}

.search-panel {
  display: flex;
  align-items: center;
  gap: 12px;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  z-index: 60;
  background-color: var(--nav-bg);
  padding: 16px var(--page-pad) 20px;
  box-shadow: none;
  border: none;
  outline: none;
  transform: translateY(-16px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    transform 0.26s cubic-bezier(0.23, 1, 0.32, 1),
    opacity 0.22s cubic-bezier(0.23, 1, 0.32, 1),
    visibility 0.26s;
  will-change: transform, opacity;
}

.search-panel::before {
  content: "";
  position: absolute;
  top: -16px;
  left: 0;
  right: 0;
  height: 16px;
  background: transparent;
}

.search-panel.is-open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

@media (min-width: 1321px) {
  .nav-search:not(.is-dismissed):hover .search-panel:not(.is-closing),
  .nav-search:not(.is-dismissed):focus-within .search-panel:not(.is-closing) {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-search.is-dismissed .search-panel {
    transform: translateY(-16px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
}

.search-panel[hidden]:not(.is-open):not(.is-closing) {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .dropdown,
  .search-panel {
    transition: opacity 0.15s ease !important;
    transform: none !important;
    max-height: none !important;
  }
}

.search-panel input,
.site-search input {
  flex: 1 1 0;
  width: 100%;
  min-width: 0;
  max-width: none;
  margin-left: 0;
  display: block;
  border: 1px solid #d0d0d0;
  border-radius: 6px;
  padding: 12px 40px 12px 14px;
  font: inherit;
  color: var(--ink);
  background: #ffffff;
  appearance: none;
  outline: none;
}

.search-panel input:focus,
.search-panel input:focus-visible,
.site-search input:focus,
.site-search input:focus-visible {
  outline: 2px solid #8a8a8a;
  outline-offset: -2px;
  border-color: #8a8a8a;
  box-shadow: none;
  accent-color: #8a8a8a;
}

.search-panel input::-webkit-search-decoration,
.search-panel input::-webkit-search-cancel-button,
.site-search input::-webkit-search-decoration,
.site-search input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}

.search-field {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  width: 100%;
}

.search-clear {
  position: absolute;
  top: 50%;
  right: 10px;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  transform: translateY(-50%);
  color: var(--ink);
}

.search-clear[hidden] {
  display: none;
}

.search-clear img {
  width: 16px;
  height: 16px;
}

.search-fold {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--nav-chevron);
  height: var(--nav-chevron);
  margin-left: auto;
}

html[dir="rtl"] .search-fold {
  margin-left: 0;
}

html[dir="rtl"] .search-panel,
html[dir="rtl"] .search-panel.is-open,
html[dir="rtl"] .search-panel.is-closing {
  justify-content: flex-end;
}

.search-fold img {
  display: block;
  width: var(--nav-chevron);
  height: var(--nav-chevron);
}

.search-panel .search-field,
.search-panel.is-open .search-field,
.search-panel.is-closing .search-field {
  max-width: 720px;
  margin-left: 0;
}

.search-panel input,
.search-panel.is-open input,
.search-panel.is-closing input {
  max-width: none;
  margin-left: 0;
}

.search-submit {
  flex: 0 0 auto;
  padding: 12px 18px;
  border-radius: 6px;
  background: var(--ink);
  color: var(--white);
  font-family: var(--font);
  font-size: 16px;
}

.site-search {
  position: sticky;
  top: var(--nav-height);
  z-index: 45;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 16px var(--page-pad);
  background-color: var(--nav-bg);
  border: none;
  box-shadow: none;
}

.site-search input {
  margin-left: 0;
  max-width: none;
}

.search-main {
  min-height: calc(100vh - 220px);
  padding: 32px var(--page-pad) 80px;
  max-width: 960px;
}

.search-main h1 {
  margin: 0 0 8px;
  color: var(--heading);
  font-size: 36px;
  line-height: 1.2;
}

.search-status {
  margin: 0 0 28px;
  color: #5a5a5a;
  font-size: 16px;
}

.search-results {
  list-style: none;
  margin: 0;
  padding: 0;
}

.search-result {
  margin: 0 0 28px;
  padding: 0 0 28px;
  border-bottom: 1px solid #ececec;
}

.search-result-type {
  margin: 0 0 6px;
  color: #6b7280;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.search-result h2 {
  margin: 0 0 6px;
  font-size: 22px;
  line-height: 1.3;
  color: var(--heading);
}

.search-result h2 a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.search-result-url {
  margin: 0 0 8px;
  color: #6b7280;
  font-size: 14px;
}

.search-result-excerpt {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
}

.search-result mark {
  background: #fff3b0;
  color: inherit;
  padding: 0 0.1em;
}

/* Hero banner — full device screen on every page */
.banner {
  position: relative;
  z-index: 0;
  box-sizing: border-box;
  height: 100vh;
  height: var(--hero-height);
  min-height: 100vh;
  min-height: var(--hero-height);
  max-height: none;
  margin-top: calc(-1 * var(--nav-height));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(80px + var(--nav-height)) var(--page-pad) 96px;
  overflow: hidden;
  flex-shrink: 0;
  background-color: #434343;
  color: #f9f9f9;
}

.hero-skip {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  transform: translateX(-50%);
  opacity: 0.45;
  cursor: pointer;
  animation: hero-skip-float 2.2s ease-in-out infinite;
}

.hero-skip:focus-visible {
  opacity: 0.85;
}

@media (hover: hover) and (pointer: fine) {
  .hero-skip:hover {
    opacity: 0.85;
  }
}

.hero-skip img {
  width: 40px;
  height: auto;
  max-width: none;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
}

@keyframes hero-skip-float {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(8px);
  }
}

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

  body {
    animation: none;
  }

  .interactive-bg__photo,
  .interactive-bg__shade,
  .interactive-bg__points {
    opacity: 1;
    transition: none;
  }

  .nav-toggle,
  .nav-toggle span:not(.visually-hidden) {
    animation: none !important;
    transition: none;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(2) {
    transform: scaleX(0);
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-5px) rotate(-45deg);
  }
}

.banner h1 {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: var(--font);
  font-size: 44.9px;
  line-height: 54.4px;
  font-weight: 700;
  text-align: center;
  color: #f9f9f9;
  -webkit-text-fill-color: #f9f9f9;
  -webkit-user-select: none;
  user-select: none;
}

.banner-title {
  --banner-title-scale: 2;
  display: inline-block;
  cursor: default;
  overflow: visible;
  transform: scale(1);
  transform-origin: center center;
  transition: transform 0.5s ease;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  touch-action: manipulation;
}

/* Fixed layout box during morph (transform-only). */
.banner h1.banner-title {
  line-height: 1.55;
  padding-block: 0.45em;
  padding-inline: 0.25em;
}

.banner h1.banner-title.is-enlarged {
  transform: scale(var(--banner-title-scale));
}

.banner-title__solid {
  position: relative;
  display: block;
  overflow: visible;
  box-sizing: border-box;
  padding-block: 0.2em;
  padding-inline: 0.12em;
  font-family: inherit;
  color: #f9f9f9;
  -webkit-text-fill-color: #f9f9f9;
  white-space: nowrap;
}

.banner-title.is-multiline .banner-title__solid {
  white-space: normal;
}

@media (prefers-reduced-motion: reduce) {
  .banner-title {
    transition: none;
  }
}

.interactive-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.interactive-bg__photo,
.interactive-bg__points,
.interactive-bg__shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.interactive-bg__photo,
.interactive-bg__shade {
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.33, 0, 0.2, 1);
}

.interactive-bg.is-photo-ready .interactive-bg__photo,
.interactive-bg.is-photo-ready .interactive-bg__shade {
  opacity: 1;
}

.interactive-bg__photo {
  max-width: none;
  object-fit: cover;
  object-position: center;
}

.interactive-bg__points {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.55s cubic-bezier(0.33, 0, 0.2, 1);
}

.interactive-bg.is-points-ready .interactive-bg__points {
  opacity: 1;
}

.banner .interactive-bg__shade {
  background: rgba(0, 0, 0, 0.18);
}

.site-footer .interactive-bg__shade {
  background: rgba(40, 40, 40, 0.35);
}

/* Intro */
.intro {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 80px;
  padding: 80px clamp(24px, 8vw, 120px);
  scroll-margin-top: calc(var(--nav-height) + 12px);
}

.photo-wrap {
  position: relative;
  width: 450px;
  height: 450px;
  flex: 0 0 450px;
}

.photo-wrap .photo-ring {
  position: absolute;
  display: block;
  width: 460px;
  height: 460px;
  max-width: none;
  left: -5px;
  top: -5px;
  border-radius: 0;
  object-fit: contain;
  pointer-events: none;
}

.photo-wrap .image-container {
  position: absolute;
  display: block;
  width: 440px;
  height: 440px;
  left: 5px;
  top: 5px;
  border-radius: 50%;
  overflow: hidden;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  outline: 2px solid transparent;
  touch-action: manipulation;
}

.photo-wrap .image-container picture {
  display: block;
  width: 100%;
  height: 100%;
}

.photo-wrap .portrait {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  filter: grayscale(100%);
  transition: filter 0.7s ease;
}

.photo-wrap .image-container.is-color .portrait,
.photo-wrap .image-container:focus-within .portrait {
  filter: grayscale(0%);
}

@media (hover: hover) and (pointer: fine) {
  .photo-wrap .image-container:hover .portrait {
    filter: grayscale(0%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .photo-wrap .portrait {
    transition: none;
  }
}

.photo-wrap .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: transparent;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  outline: 2px solid transparent;
  touch-action: manipulation;
}

.bio {
  max-width: 800px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  padding: 10px;
}

.bio h2 {
  margin: 0;
  color: var(--heading);
  font-family: var(--font);
  font-size: 48px;
  line-height: 69.12px;
  font-weight: 700;
}

.bio-text {
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-family: var(--font);
}

.bio-text ul {
  margin: 0;
  padding-left: 27px;
}

.bio-text li {
  font-size: 18px;
  line-height: 28px;
  color: var(--ink);
}

.bio-text p {
  margin: 0;
  font-size: 18px;
  line-height: 28px;
  color: var(--ink);
}

/* Socials */
.socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 72px;
  padding: 16px var(--page-pad);
}

.socials a {
  width: 40px;
  height: 40px;
  border-radius: 5px;
  overflow: hidden;
  flex: 0 0 40px;
}

.socials img {
  width: 40px;
  height: 40px;
  object-fit: cover;
}

/* Footer */
.site-footer {
  position: relative;
  overflow: hidden;
  min-height: 87px;
  padding: 20px var(--page-pad);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  color: var(--white);
  background-color: #434343;
}

.site-footer > *:not(.interactive-bg) {
  position: relative;
  z-index: 1;
}

.site-footer p {
  margin: 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
}

.copyright {
  font-family: var(--font);
  font-weight: 700;
  font-size: 16px;
  line-height: 19.2px;
}

.meta {
  font-weight: 700;
  font-size: 15.1px;
  line-height: 19.2px;
}

.meta a {
  text-decoration: underline;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

/* Inner pages — Biography Figma 212:2 */
.page-content {
  padding: 8px 36px 80px;
}

.accordion {
  margin: 0;
}

.accordion + .accordion {
  margin-top: 0;
}

.accordion > summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 106px;
  padding: 28px 8px 24px;
  cursor: pointer;
  border-bottom: 1px solid #5e5e5e;
}

.accordion > summary::-webkit-details-marker {
  display: none;
}

.accordion h2 {
  margin: 0;
  color: #5a5a5a;
  font-family: var(--font);
  font-size: 47.3px;
  line-height: 1.21;
  font-weight: 700;
}

.course-list .accordion h2 {
  font-size: clamp(28px, 2.8vw, 47.3px);
}

.collapse-btn {
  box-sizing: border-box;
  width: 48px;
  height: 48px;
  padding: 10px 12px 14px;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 48px;
  overflow: hidden;
}

.collapse-btn img {
  width: 24px;
  height: 24px;
  transition: transform 0.2s ease;
}

.accordion:not([open]) .collapse-btn img {
  transform: rotate(180deg);
}

.entry-list {
  list-style: disc;
  margin: 28px 0 40px;
  padding: 0 48px 0 64px;
}

.entry-list > li {
  margin: 0 0 28px;
  font-family: var(--font);
  font-size: 18px;
  line-height: 24.84px;
  color: var(--ink);
}

.entry-list > li::marker {
  color: #1c1c1c;
  font-size: 16px;
}

.entry-list .job {
  margin-top: 16px;
}

.entry-list .job p {
  margin: 0 0 8px;
  list-style: none;
}

.entry-list .muted {
  font-weight: 400;
}

.entry-list a,
.content-link {
  color: #000;
  text-decoration: underline;
}

.portfolio-note {
  margin: 0 0 12px;
  text-align: center;
  color: #1c1c1c;
  font-size: 15.6px;
  line-height: 19.2px;
}

.portfolio-figure {
  display: flex;
  justify-content: center;
  margin: 0;
}

.portfolio-figure img {
  width: min(826px, 100%);
  height: auto;
}

.ifc-viewer {
  margin: 24px 0 40px;
}

.ifc-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.ifc-btn {
  flex: 0 0 auto;
  padding: 12px 18px;
  border: 1px solid #434343;
  border-radius: 6px;
  background: #434343;
  color: #ffffff;
  font-family: var(--font);
  font-size: 16px;
}

.ifc-btn:disabled {
  opacity: 0.55;
}

.ifc-status {
  margin: 0 0 12px;
  color: #5a5a5a;
  font-size: 15.6px;
  line-height: 19.2px;
}

.ifc-stage {
  position: relative;
  width: 100%;
  height: min(70vh, 720px);
  min-height: 420px;
  background: #434343;
  overflow: hidden;
}

.ifc-stage > canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.ifc-navcube {
  position: absolute;
  top: auto;
  bottom: 16px;
  right: 22px;
  width: 168px;
  height: 198px;
  z-index: 3;
  pointer-events: none;
  user-select: none;
}

html[dir="rtl"] .ifc-navcube {
  right: 22px;
  left: auto;
}

.ifc-screen {
  display: flex;
  flex-direction: column;
  height: calc(100dvh - var(--nav-height));
  max-height: calc(100dvh - var(--nav-height));
  min-height: 0;
}

.ifc-screen:fullscreen,
.ifc-screen:-webkit-full-screen {
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: none;
  background: #434343;
}

.ifc-screen.is-nav-visible > .site-header {
  position: relative;
  flex: 0 0 auto;
  z-index: 5;
  visibility: visible;
  pointer-events: auto;
}

.ifc-screen:fullscreen > .opensfm-stage.ifc-viewer,
.ifc-screen:-webkit-full-screen > .opensfm-stage.ifc-viewer,
.ifc-screen:fullscreen > .opensfm-stage.ifc-viewer.is-expanded,
.ifc-screen:-webkit-full-screen > .opensfm-stage.ifc-viewer.is-expanded {
  position: relative;
  inset: auto;
  flex: 1 1 auto;
  width: 100%;
  height: auto;
  max-height: none;
  min-height: 0;
  margin: 0;
}

.ifc-screen > .ifc-status,
.ifc-screen:fullscreen > .ifc-status,
.ifc-screen:-webkit-full-screen > .ifc-status,
body.ifc-expanded .ifc-screen:fullscreen > .ifc-status,
body.ifc-expanded .ifc-screen:-webkit-full-screen > .ifc-status {
  position: relative;
  flex: 0 0 auto;
  left: auto;
  right: auto;
  bottom: auto;
  height: auto;
  z-index: 5;
}

.opensfm-stage.ifc-viewer.is-expanded:not(.is-force-landscape),
.opensfm-stage.ifc-viewer:fullscreen:not(.is-force-landscape),
.opensfm-stage.ifc-viewer:-webkit-full-screen:not(.is-force-landscape) {
  position: fixed;
  inset: 0;
  bottom: var(--ifc-status-height, 32px);
  z-index: 400;
  width: 100%;
  height: auto;
  max-height: none;
  min-height: 0;
  margin: 0;
  background: #434343;
}

body.ifc-expanded .ifc-screen > .ifc-status {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 401;
  flex: 0 0 auto;
  height: auto;
}

.ifc-view-tools {
  position: static;
  z-index: 1;
  display: flex;
  flex: 0 0 auto;
  gap: 4px;
  margin-inline-start: auto;
  align-items: center;
}

.ifc-view-tools .img-expand-btn {
  position: static;
  cursor: pointer;
}

body.ifc-expanded {
  overflow: hidden;
}

.ifc-navcube-canvas {
  position: absolute;
  top: 21px;
  left: 0;
  width: 168px;
  height: 168px;
  pointer-events: auto;
  cursor: grab;
  touch-action: none;
}

.ifc-navcube-canvas:active {
  cursor: grabbing;
}

.ifc-navcube-home,
.ifc-navcube-roll {
  position: absolute;
  left: 50%;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: #c5c7cb;
  pointer-events: auto;
  z-index: 1;
  transform: translateX(-50%);
}

.ifc-navcube-home {
  top: 18px;
  width: 24px;
  height: 20px;
}

.ifc-navcube-home svg {
  width: 16px;
  height: 16px;
}

.ifc-navcube-roll {
  top: 172px;
  width: 12px;
  height: 8px;
}

.scholar-row {
  padding: 13px clamp(20px, 4.5vw, 84px);
  font-size: 18.7px;
  line-height: 22.4px;
}

.scholar-row a {
  color: #1c1c1c;
  font-weight: 700;
  text-decoration: underline;
}

.hairline {
  height: 2px;
  margin: 0 clamp(20px, 3.5vw, 36px);
  background: rgba(0, 0, 0, 0.15);
  border: 0;
}

.pub-list {
  list-style: none;
  margin: 0;
  padding: 13px clamp(20px, 4.5vw, 84px) 80px;
}

.pub-list li {
  padding: 24px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.pub-list li:first-child {
  padding-top: 0;
}

.pub-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.pub-list h2 {
  margin: 0 0 8px;
  font-size: 18.4px;
  line-height: 22.4px;
  font-weight: 700;
  color: #1c1c1c;
  text-decoration: underline;
}

.pub-list h2 a {
  color: #1c1c1c;
  text-decoration: underline;
}

.pub-list p {
  margin: 0;
  font-size: 18.7px;
  line-height: 22.4px;
}

.course-list {
  display: flex;
  flex-direction: column;
}

.course-card {
  display: block;
  padding: 32px clamp(24px, 8vw, 120px);
  border-bottom: 1px solid var(--ink);
  color: inherit;
}

.course-card h2 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.23;
  font-weight: 700;
}

.course-card p {
  margin: 0 0 8px;
  color: var(--font);
  font-size: 16px;
  line-height: 22px;
}

.course-card p:last-child {
  margin-bottom: 0;
}

.course-intro {
  padding: 16px clamp(20px, 4.5vw, 84px) 32px;
}

.course-intro h2 {
  margin: 0 0 20px;
  color: #202124;
  font-size: 23.8px;
  line-height: 28.8px;
}

.course-intro .entry-list {
  margin-top: 0;
}

.section-title {
  margin: 0;
  padding: 40px clamp(20px, 4.5vw, 84px) 16px;
  color: #494e52;
  font-size: 23.3px;
  line-height: 34.56px;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  padding: 8px clamp(20px, 4.5vw, 84px) 40px;
}

.video-card {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--ink);
}

.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-card .caption {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  padding: 24px 0 40px;
}

.blog-card,
.portfolio-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: inherit;
  text-decoration: none;
  min-width: 0;
  max-width: 100%;
}

.blog-card .img-expand-wrap,
.portfolio-card .img-expand-wrap {
  width: 100%;
  min-width: 0;
  overflow: hidden;
  aspect-ratio: 3 / 2;
}

.blog-card img,
.portfolio-card img {
  width: 100%;
  height: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
}

.blog-card h2,
.portfolio-card h2 {
  margin: 0;
  font-size: 23.8px;
  line-height: 28.8px;
  font-weight: 700;
  color: #202124;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: break-word;
  word-wrap: break-word;
  overflow-wrap: anywhere;
  -webkit-hyphens: auto;
  hyphens: auto;
  hyphenate-limit-chars: 6 3 3;
}

.blog-card h2 a,
.portfolio-card h2 a {
  color: inherit;
  text-decoration: none;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: break-word;
  word-wrap: break-word;
  overflow-wrap: anywhere;
  -webkit-hyphens: inherit;
  hyphens: inherit;
}

.blog-card p,
.portfolio-card p {
  margin: 0;
  font-size: 16px;
  line-height: 22px;
  color: var(--font);
  min-width: 0;
  max-width: 100%;
  overflow-wrap: break-word;
  word-wrap: break-word;
  overflow-wrap: anywhere;
  -webkit-hyphens: auto;
  hyphens: auto;
  hyphenate-limit-chars: 6 3 3;
}

.photo-intro {
  margin: 16px 0 8px;
  font-size: 16px;
  line-height: 22px;
  color: var(--font);
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  padding: 16px 0 40px;
}

.photo-grid figure {
  margin: 0;
  position: relative;
  min-width: 0;
}

.photo-grid .img-expand-wrap {
  width: 100%;
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: zoom-in;
}

.photo-grid img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.post-article {
  max-width: 760px;
  margin: 0 auto;
  padding: 16px 0 40px;
}

.post-article .post-hero {
  margin: 0 0 8px;
}

.post-article .post-hero img {
  width: 100%;
  height: auto;
  display: block;
  shape-rendering: geometricPrecision;
  image-rendering: auto;
}

.post-article .post-hero .img-expand-wrap {
  width: 100%;
}

.post-article .post-hero.has-dark-bg,
.post-article .post-hero.has-dark-bg .img-expand-wrap,
.post-article .post-hero.has-dark-bg img {
  background-color: #434343;
}

.post-article .post-vector-hero {
  margin: 0 0 8px;
  background-color: #434343;
  overflow: hidden;
}

.post-article .post-vector-hero iframe {
  width: 100%;
  height: clamp(96px, 16.8vw, 132px);
  border: 0;
  display: block;
  background-color: #434343;
}

.post-separator {
  max-width: 760px;
  margin: 0 auto;
  border: 0;
  border-top: 1px solid #5e5e5e;
}

.img-expand-wrap {
  position: relative;
  display: block;
}

.img-expand-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  padding: 0;
  margin: 0;
  border: 0;
  outline: none;
  box-shadow: none;
  border-radius: 0;
  background: transparent;
  appearance: none;
  -webkit-appearance: none;
  display: grid;
  place-items: center;
  opacity: 0.45;
  cursor: zoom-in;
  z-index: 2;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.55));
  transition: opacity 0.18s ease;
  -webkit-tap-highlight-color: transparent;
}

.img-expand-btn:focus,
.img-expand-btn:focus-visible,
.img-expand-btn:active {
  outline: none;
  box-shadow: none;
  border: 0;
}

.img-expand-btn img {
  width: 22px;
  height: 22px;
  aspect-ratio: auto;
  object-fit: contain;
  display: block;
  pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
  .img-expand-wrap:hover .img-expand-btn:not(.is-idle),
  .img-expand-btn:hover:not(.is-idle) {
    opacity: 1;
  }
}

.img-lightbox {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: none;
  place-items: center;
  padding: 16px 56px;
  background: rgba(0, 0, 0, 0.84);
}

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

.img-lightbox-photo {
  max-width: 100%;
  max-height: calc(100dvh - 32px);
  width: auto;
  height: auto;
  object-fit: contain;
}

.img-lightbox.has-dark-canvas .img-lightbox-photo {
  background-color: #434343;
}

.img-lightbox.has-gallery .img-lightbox-photo {
  max-width: min(100%, calc(100vw - 112px));
  max-height: calc(100dvh - 24px);
  width: auto;
  height: auto;
}

.img-lightbox-nav,
.img-lightbox-close,
.img-lightbox-zoom,
.img-lightbox-fullscreen {
  position: absolute;
  width: 40px;
  height: 40px;
  padding: 0;
  margin: 0;
  border: 0;
  outline: none;
  box-shadow: none;
  border-radius: 0;
  background: transparent;
  appearance: none;
  -webkit-appearance: none;
  place-items: center;
  opacity: 0.45;
  cursor: pointer;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.55));
  transition: opacity 0.18s ease;
  -webkit-tap-highlight-color: transparent;
}

.img-lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  display: none;
  z-index: 2;
}

.img-lightbox.has-gallery .img-lightbox-nav {
  display: grid;
}

.img-lightbox-prev {
  left: 8px;
}

.img-lightbox-next {
  right: 8px;
}

.img-lightbox-close {
  top: 16px;
  right: 16px;
  display: grid;
  z-index: 3;
}

.img-lightbox-tools {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 4;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 2px;
  direction: ltr;
}

.img-lightbox-tools .img-lightbox-close,
.img-lightbox-tools .img-lightbox-zoom,
.img-lightbox-tools .img-lightbox-fullscreen {
  position: static;
  top: auto;
  right: auto;
  display: grid;
}

.img-lightbox-frame {
  overflow: hidden;
  width: max-content;
  max-width: 100%;
  justify-self: center;
  touch-action: none;
  z-index: 1;
}

.img-lightbox .img-lightbox-frame > .img-lightbox-photo {
  display: block;
  max-width: calc(100vw - 112px);
  max-height: calc(100dvh - 32px);
  transform-origin: center center;
  user-select: none;
  -webkit-user-drag: none;
}

.img-lightbox.has-gallery .img-lightbox-frame > .img-lightbox-photo {
  max-height: calc(100dvh - 24px);
}

.img-lightbox-frame > .cracks-compare-lightbox-stage {
  transform-origin: center center;
}

.img-lightbox-frame.is-pannable {
  cursor: grab;
}

.img-lightbox-frame.is-panning {
  cursor: grabbing;
}

.img-lightbox:fullscreen,
.img-lightbox:-webkit-full-screen {
  display: grid;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.92);
}

.img-lightbox-nav:focus,
.img-lightbox-nav:focus-visible,
.img-lightbox-nav:active,
.img-lightbox-close:focus,
.img-lightbox-close:focus-visible,
.img-lightbox-close:active,
.img-lightbox-zoom:focus,
.img-lightbox-zoom:focus-visible,
.img-lightbox-zoom:active,
.img-lightbox-fullscreen:focus,
.img-lightbox-fullscreen:focus-visible,
.img-lightbox-fullscreen:active {
  outline: none;
  box-shadow: none;
  border: 0;
}

@media (hover: hover) and (pointer: fine) {
  .img-lightbox-nav:hover,
  .img-lightbox-close:hover,
  .img-lightbox-zoom:hover,
  .img-lightbox-fullscreen:hover {
    opacity: 1;
  }
}

.img-lightbox-nav img,
.img-lightbox-close img,
.img-lightbox-zoom img,
.img-lightbox-fullscreen img {
  width: 28px;
  height: 28px;
  display: block;
  pointer-events: none;
}

@media (max-width: 700px) {
  .img-lightbox {
    padding: 12px 40px;
  }

  .img-lightbox.has-gallery .img-lightbox-photo {
    max-width: min(100%, calc(100vw - 72px));
    max-height: calc(100dvh - 16px);
  }

  .img-lightbox .img-lightbox-frame > .img-lightbox-photo,
  .img-lightbox.has-gallery .img-lightbox-frame > .img-lightbox-photo {
    max-width: calc(100vw - 80px);
    max-height: calc(100dvh - 16px);
  }

  .img-lightbox-nav,
  .img-lightbox-close,
  .img-lightbox-zoom,
  .img-lightbox-fullscreen {
    width: 32px;
    height: 32px;
  }

  .img-lightbox-nav img,
  .img-lightbox-close img,
  .img-lightbox-zoom img,
  .img-lightbox-fullscreen img {
    width: 24px;
    height: 24px;
  }

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

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

body.lightbox-open {
  overflow: hidden;
}

.post-article .caption {
  margin: 0 0 20px;
  font-size: 14px;
  line-height: 1.4;
  color: #5a5a5a;
}

.post-article h2 {
  margin: 0 0 16px;
  font-size: 23.8px;
  line-height: 1.25;
  font-weight: 700;
  color: #202124;
}

.post-article .post-date {
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 22px;
  color: #5a5a5a;
}

.smart-justify,
.bio-text li,
.bio-text p,
.entry-list > li,
.entry-list .job p,
.post-article p:not(.caption):not(.post-date),
.cracks-copy p,
.pub-list p {
  /* Native dictionary hyphenation (needs html[lang]) to shrink spacing demand. */
  -webkit-hyphens: auto;
  hyphens: auto;
  hyphenate-limit-chars: 6 3 3;
  /* Failsafe for URLs / unbroken strings. */
  overflow-wrap: break-word;
  word-wrap: break-word;
  text-wrap: pretty;
  /* Progressive default: justify when JS is off; web-text-justification adapts on mobile. */
  text-align: justify;
  text-justify: inter-word;
  transition: text-align 0.2s ease, text-justify 0.2s ease;
}

html[dir="rtl"] .smart-justify,
html[dir="rtl"] .bio-text li,
html[dir="rtl"] .bio-text p,
html[dir="rtl"] .entry-list > li,
html[dir="rtl"] .entry-list .job p,
html[dir="rtl"] .post-article p:not(.caption):not(.post-date),
html[dir="rtl"] .cracks-copy p,
html[dir="rtl"] .pub-list p {
  text-justify: auto;
}

html[dir="rtl"] .blog-card h2,
html[dir="rtl"] .blog-card h2 a,
html[dir="rtl"] .blog-card p,
html[dir="rtl"] .portfolio-card h2,
html[dir="rtl"] .portfolio-card h2 a,
html[dir="rtl"] .portfolio-card p,
html[dir="rtl"] .cracks-step h2,
html[dir="rtl"] .cracks-step h2 a,
html[lang="ar"] .blog-card h2,
html[lang="ar"] .blog-card h2 a,
html[lang="ar"] .blog-card p,
html[lang="ar"] .portfolio-card h2,
html[lang="ar"] .portfolio-card h2 a,
html[lang="ar"] .portfolio-card p,
html[lang="ar"] .cracks-step h2,
html[lang="ar"] .cracks-step h2 a {
  -webkit-hyphens: manual;
  hyphens: manual;
}

.post-article p {
  margin: 0 0 16px;
  font-size: 18.7px;
  line-height: 22.4px;
  color: #1c1c1c;
}

.post-article p:last-child {
  margin-bottom: 0;
}

.module-block {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 24px clamp(20px, 4.5vw, 84px) 80px;
}

.module-block h2 {
  margin: 0 0 20px;
  color: #111827;
  font-size: 24px;
  line-height: 32px;
}

.module-table {
  width: 100%;
  max-width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  border: 1px solid #dadce0;
}

.module-table th,
.module-table td {
  padding: 10px 16px;
  text-align: left;
  vertical-align: top;
  border: 1px solid #dadce0;
  font-size: 13.3px;
  line-height: 1.4;
  font-family: var(--font);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.module-table th {
  width: 28%;
  max-width: none;
  background: #f1f3f4;
  color: #202124;
  font-weight: 700;
}

.module-table td {
  color: var(--ink);
  font-weight: 400;
}

.module-table.modern {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
}

.module-table.modern th,
.module-table.modern td {
  font-family: var(--font);
  font-size: 14px;
  border-color: #e5e7eb;
  border-left: 0;
  border-right: 0;
}

.module-table.modern th {
  width: 320px;
  background: #f9fafb;
  color: #111827;
  border-right: 1px solid #e5e7eb;
}

.module-table.modern td {
  color: #111827;
}

.module-table .stack {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

@media (max-width: 1320px) {
  a,
  button,
  summary,
  input,
  select,
  textarea,
  label,
  [role="button"] {
    -webkit-tap-highlight-color: transparent;
  }

  .site-header a,
  .site-header button,
  .site-header [role="button"],
  .site-header [role="menuitem"] {
    -webkit-tap-highlight-color: transparent;
  }

  .site-header a:active,
  .site-header a.is-tapped,
  .site-header button:active,
  .site-header button.is-tapped {
    outline: 2px solid transparent;
    background: var(--nav-hover);
  }

  .site-header input,
  .site-header input:hover,
  .site-header input:focus,
  .site-header input:focus-visible,
  .site-header input:active,
  .site-search input,
  .site-search input:hover,
  .site-search input:focus,
  .site-search input:focus-visible,
  .site-search input:active {
    background-color: #ffffff;
  }

  .site-header input:-webkit-autofill,
  .site-header input:-webkit-autofill:hover,
  .site-header input:-webkit-autofill:focus,
  .site-header input:-webkit-autofill:active,
  .site-search input:-webkit-autofill,
  .site-search input:-webkit-autofill:hover,
  .site-search input:-webkit-autofill:focus,
  .site-search input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px #ffffff inset;
    box-shadow: 0 0 0 1000px #ffffff inset;
    -webkit-text-fill-color: var(--ink);
    caret-color: var(--ink);
    background-color: #ffffff;
  }

  .nav-toggle {
    display: grid;
    position: relative;
    justify-items: center;
    align-content: center;
    gap: 3px;
    transform-origin: center center;
    transition: transform 150ms ease;
  }

  .nav-toggle[aria-expanded="true"] {
    transform: rotate(-90deg);
    transition-delay: 150ms;
  }

  .nav-toggle span:not(.visually-hidden) {
    transition-delay: 150ms;
  }

  .nav-toggle[aria-expanded="true"] span:not(.visually-hidden) {
    transition-delay: 0ms;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(2) {
    transform: scaleX(0);
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-5px) rotate(-45deg);
  }

  .site-nav {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    width: 100%;
    max-width: none;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    overflow-x: hidden;
    background: var(--nav-bg);
    padding: 8px 0 16px;
  }

  .site-header.is-open .site-nav {
    display: flex;
  }

  .banner .interactive-bg__photo {
    max-width: none;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  .site-footer .interactive-bg__photo {
    inset: auto;
    left: 50%;
    top: 50%;
    width: 1496px;
    height: 841.5px;
    max-width: none;
    object-fit: fill;
    transform: translate(-50%, -50%);
  }

  .site-nav > a,
  .search-btn {
    min-height: 44px;
    height: 44px;
    margin: 0;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 48px;
    width: 100%;
    text-align: left;
  }

  html[dir="rtl"] .site-nav > a,
  html[dir="rtl"] .search-btn {
    text-align: right;
    justify-content: flex-start;
  }

  .site-nav .nav-item > button.lang-toggle,
  .site-nav button.lang-toggle,
  .nav-item > button.lang-toggle,
  .lang-toggle {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: 100% !important;
    min-height: 44px !important;
    height: 44px !important;
    padding: 0 0 0 48px !important;
    margin: 0 !important;
    gap: 6px !important;
    text-align: left !important;
    background: transparent !important;
    border: none !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
    flex: 1 1 100% !important;
  }

  html[dir="rtl"] .site-nav .nav-item > button.lang-toggle,
  html[dir="rtl"] .site-nav button.lang-toggle,
  html[dir="rtl"] .nav-item > button.lang-toggle,
  html[dir="rtl"] .lang-toggle {
    padding: 0 48px 0 0 !important;
    text-align: right !important;
    justify-content: flex-start !important;
    gap: 6px !important;
  }

  .nav-theme {
    width: 100%;
    align-items: stretch;
  }

  .site-nav .theme-toggle-btn,
  .theme-toggle-btn {
    min-height: var(--nav-logo) !important;
    height: var(--nav-logo) !important;
    width: 100% !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding: 0 48px !important;
    border-radius: 0 !important;
    text-align: left !important;
    background: transparent !important;
    border: none !important;
    cursor: pointer !important;
  }

  html[dir="rtl"] .site-nav .theme-toggle-btn,
  html[dir="rtl"] .theme-toggle-btn {
    text-align: right !important;
    justify-content: flex-start !important;
    padding: 0 48px !important;
  }

  .nav-search {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .search-panel {
    position: static;
    top: auto;
    left: auto;
    right: auto;
    width: 100%;
    padding: 0 20px;
    background: transparent;
    box-shadow: none;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-8px);
    visibility: hidden;
    pointer-events: none;
    transition:
      max-height 0.28s cubic-bezier(0.23, 1, 0.32, 1),
      opacity 0.24s cubic-bezier(0.23, 1, 0.32, 1),
      transform 0.28s cubic-bezier(0.23, 1, 0.32, 1),
      padding 0.28s cubic-bezier(0.23, 1, 0.32, 1),
      visibility 0.28s;
  }

  .search-panel.is-open {
    max-height: 120px;
    padding: 8px 20px 16px;
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
  }

  .search-panel::before {
    display: none;
  }

  .search-fold {
    margin-left: 0;
  }

  .search-panel .search-field,
  .search-panel.is-open .search-field,
  .search-panel.is-closing .search-field {
    max-width: none;
    margin-left: 0;
    width: auto;
    flex: 1 1 0;
    min-width: 0;
  }

  .search-panel .search-submit,
  .search-panel.is-open .search-submit,
  .search-panel.is-closing .search-submit {
    width: auto;
    flex: 0 0 auto;
  }

  .nav-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    width: 100%;
    margin: 0;
    padding: 0;
    gap: 6px;
    box-sizing: border-box;
  }

  .nav-item > a.nav-label {
    width: auto;
    flex: 0 0 auto;
    min-height: 44px;
    height: 44px;
    padding: 0 0 0 48px;
    margin: 0;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
  }

  html[dir="rtl"] .nav-item > a.nav-label {
    padding: 0 48px 0 0;
    text-align: right;
    justify-content: flex-start;
  }

  .nav-item > button.submenu-toggle,
  .nav-item > button[aria-haspopup]:not(.lang-toggle) {
    width: var(--nav-chevron);
    height: 44px;
    min-height: 44px;
    padding: 0;
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    box-sizing: border-box;
    flex: 0 0 auto;
  }

  html[dir="rtl"] .nav-item > button.submenu-toggle,
  html[dir="rtl"] .nav-item > button[aria-haspopup]:not(.lang-toggle) {
    margin: 0;
  }

  .dropdown {
    position: static;
    left: auto;
    top: auto;
    flex: 1 1 100%;
    width: 100%;
    min-width: 0;
    box-shadow: none;
    border-radius: 0;
    background: transparent;
    color: var(--white);
    margin: 0;
    padding: 0 !important;
    box-sizing: border-box;
    display: block;
    visibility: hidden;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transform: translateY(-8px);
    transition:
      max-height 0.28s cubic-bezier(0.23, 1, 0.32, 1),
      opacity 0.24s cubic-bezier(0.23, 1, 0.32, 1),
      transform 0.28s cubic-bezier(0.23, 1, 0.32, 1),
      visibility 0.28s;
    pointer-events: none;
  }

  .dropdown a,
  .dropdown button {
    color: var(--white);
    min-height: 44px;
    height: 44px;
    margin: 0;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    padding: 0 48px 0 72px;
    text-align: left;
    justify-content: flex-start;
  }

  html[dir="rtl"] .dropdown a,
  html[dir="rtl"] .dropdown button {
    padding: 0 72px 0 48px;
    text-align: right;
    justify-content: flex-start;
  }

  /* Language dropdown in mobile mode: always keep flags on the left side of the language name */
  .lang-toggle + .dropdown a,
  .lang-toggle + .dropdown button,
  .nav-item:has(.lang-toggle) .dropdown a,
  .nav-item:has(.lang-toggle) .dropdown button,
  .dropdown[dir="ltr"] a,
  .dropdown[dir="ltr"] button {
    padding: 0 48px 0 72px !important;
    direction: ltr !important;
    text-align: left !important;
    justify-content: flex-start !important;
  }

  html[dir="rtl"] .lang-toggle + .dropdown a,
  html[dir="rtl"] .lang-toggle + .dropdown button,
  html[dir="rtl"] .nav-item:has(.lang-toggle) .dropdown a,
  html[dir="rtl"] .nav-item:has(.lang-toggle) .dropdown button,
  html[dir="rtl"] .dropdown[dir="ltr"] a,
  html[dir="rtl"] .dropdown[dir="ltr"] button {
    padding: 0 72px 0 48px !important;
    direction: ltr !important;
    text-align: right !important;
    justify-content: flex-end !important;
    unicode-bidi: isolate !important;
  }

  .nav-item.is-open .dropdown,
  .nav-item:hover .dropdown,
  .nav-item:focus-within .dropdown {
    position: static;
    left: auto;
    top: auto;
    transform: none;
  }

  /* Disable the hover bridge on mobile */
  .dropdown::before {
    display: none;
  }

  .dropdown a:hover,
  .dropdown button:hover {
    background: var(--nav-hover);
  }

  /* Trigger the mobile dropdown */
  .nav-item.is-open .dropdown {
    display: block;
    visibility: visible;
    opacity: 1;
    max-height: 320px;
    padding: 0 !important;
    margin: 0;
    transform: translateY(0);
    pointer-events: auto;
  }

  .intro {
    flex-direction: column;
    gap: 40px;
    padding: 56px 24px;
  }

  .photo-wrap {
    width: min(450px, 86vw);
    height: min(450px, 86vw);
    flex-basis: auto;
  }

  .photo-wrap .photo-ring {
    width: calc(100% + 10px);
    height: calc(100% + 10px);
    left: -5px;
    top: -5px;
  }

  .photo-wrap .image-container {
    width: calc(100% - 10px);
    height: calc(100% - 10px);
    left: 5px;
    top: 5px;
  }

  .photo-wrap .portrait {
    width: 100%;
    height: 100%;
  }

  .accordion h2 {
    font-size: clamp(32px, 8vw, 47.3px);
    line-height: 1.2;
  }

  .banner h1 {
    font-size: clamp(28px, 6vw, 44.9px);
    line-height: 1.21;
  }

  .bio h2 {
    font-size: clamp(32px, 8vw, 48px);
    line-height: 1.2;
  }
}

@media (max-width: 1320px) and (prefers-reduced-motion: reduce) {
  .nav-toggle,
  .nav-toggle[aria-expanded="true"] {
    transition: none;
  }
}

@media (max-width: 640px) {
  .site-header,
  .socials,
  .site-footer,
  .search-panel,
  .site-search,
  .search-main {
    padding-left: 20px;
    padding-right: 20px;
  }

  .site-search {
    grid-template-columns: 1fr auto;
  }

  .socials {
    height: auto;
    flex-wrap: wrap;
    justify-content: center;
  }

  .accordion h2 {
    line-height: 1.2;
  }

  .entry-list {
    padding: 16px 8px 0;
  }

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

  .module-block {
    padding-left: 20px;
    padding-right: 20px;
  }

  .module-table th,
  .module-table td {
    padding: 8px;
  }

  .module-table th {
    width: 36%;
  }
}

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

}

.page-content.cracks-bim {
  padding: 48px clamp(20px, 4.5vw, 84px) 80px;
}

.cracks-bim {
  display: flex;
  flex-direction: column;
  gap: 48px;
  color: var(--ink);
  font-family: var(--font);
}

.cracks-flowcharts {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  width: 100%;
}

.cracks-workflow {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.cracks-workflow-scale {
  display: block;
  width: max-content;
  max-width: 100%;
  margin-inline: auto;
  transform-origin: top center;
}

@media (min-width: 701px) {
  .cracks-flowcharts .cracks-diagram {
    width: 80%;
    max-width: 100%;
    margin-inline: auto;
  }
}

@media (max-width: 700px) {
  .cracks-workflow-scale {
    transform: none !important;
    width: 100%;
    max-width: 100%;
  }

  .cracks-flowcharts .cracks-diagram {
    width: 100%;
    max-width: 100%;
  }
}

.cracks-workflow-track {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  width: 100%;
}

@media (min-width: 701px) {
  .cracks-workflow-track {
    flex-wrap: nowrap;
    width: max-content;
  }
}

.cracks-node {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 140px;
  min-height: 76px;
  padding: 8px 16px;
  box-sizing: border-box;
  background: #a0a0a0;
  color: #1c1c1c;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  clip-path: polygon(15px 50%, 0 0, calc(100% - 15px) 0, 100% 50%, calc(100% - 15px) 100%, 0 100%);
  cursor: pointer;
}

.cracks-node::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: #ffffff;
  pointer-events: none;
  clip-path: polygon(16.5px 50%, 1.5px 1.5px, calc(100% - 16.5px) 1.5px, calc(100% - 1.5px) 50%, calc(100% - 16.5px) calc(100% - 1.5px), 1.5px calc(100% - 1.5px));
}

.cracks-node:first-child {
  clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 50%, calc(100% - 15px) 100%, 0 100%);
}

.cracks-node:first-child::before {
  clip-path: polygon(1.5px 1.5px, calc(100% - 16.5px) 1.5px, calc(100% - 1.5px) 50%, calc(100% - 16.5px) calc(100% - 1.5px), 1.5px calc(100% - 1.5px));
}

.cracks-node:last-child {
  clip-path: polygon(15px 50%, 0 0, 100% 0, 100% 100%, 0 100%);
}

.cracks-node:last-child::before {
  clip-path: polygon(16.5px 50%, 1.5px 1.5px, calc(100% - 1.5px) 1.5px, calc(100% - 1.5px) calc(100% - 1.5px), 1.5px calc(100% - 1.5px));
}

html[dir="rtl"] .cracks-node {
  clip-path: polygon(0 50%, 15px 0, 100% 0, calc(100% - 15px) 50%, 100% 100%, 15px 100%);
}

html[dir="rtl"] .cracks-node::before {
  clip-path: polygon(1.5px 50%, 16.5px 1.5px, calc(100% - 1.5px) 1.5px, calc(100% - 16.5px) 50%, calc(100% - 1.5px) calc(100% - 1.5px), 16.5px calc(100% - 1.5px));
}

html[dir="rtl"] .cracks-node:first-child {
  clip-path: polygon(0 50%, 15px 0, 100% 0, 100% 100%, 15px 100%);
}

html[dir="rtl"] .cracks-node:first-child::before {
  clip-path: polygon(1.5px 50%, 16.5px 1.5px, calc(100% - 1.5px) 1.5px, calc(100% - 1.5px) calc(100% - 1.5px), 16.5px calc(100% - 1.5px));
}

html[dir="rtl"] .cracks-node:last-child {
  clip-path: polygon(0 0, 100% 0, calc(100% - 15px) 50%, 100% 100%, 0 100%);
}

html[dir="rtl"] .cracks-node:last-child::before {
  clip-path: polygon(1.5px 1.5px, calc(100% - 1.5px) 1.5px, calc(100% - 16.5px) 50%, calc(100% - 1.5px) calc(100% - 1.5px), 1.5px calc(100% - 1.5px));
}

.cracks-node.is-active {
  color: #1c1c1c;
}

.cracks-node.is-active::before {
  background: color-mix(in srgb, rgb(67, 67, 67) 18%, #ffffff);
}

.cracks-caption {
  margin: 16px 0 0;
  color: #5a5a5a;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 400;
  font-style: normal;
  line-height: 22px;
  text-align: center;
}

.cracks-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
  width: 100%;
}

.cracks-diagram,
.cracks-copy {
  flex: none;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0;
}

.cracks-diagram-frame {
  position: relative;
  width: 100%;
  line-height: 0;
  overflow: visible;
  cursor: pointer;
  touch-action: manipulation;
}

.cracks-diagram-frame canvas {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.cracks-diagram-frame img,
.cracks-diagram-frame svg {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
  pointer-events: none;
  overflow: visible;
}

.cracks-copy {
  width: 100%;
  column-width: auto;
  column-count: 1;
  column-gap: 0;
  column-fill: balance;
  height: auto;
  color: var(--ink);
  font-family: var(--font);
  font-size: 18px;
  line-height: 28px;
  orphans: 1;
  widows: 1;
}

.cracks-copy p {
  margin: 0 0 16px;
}

.cracks-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  column-gap: 20px;
  row-gap: 0;
}

.cracks-step {
  min-width: 0;
  scroll-margin-top: calc(var(--nav-height) + 16px);
  display: grid;
  grid-row: span 2;
  grid-template-rows: subgrid;
}

.cracks-step:nth-child(1),
.cracks-step:nth-child(2),
.cracks-step:nth-child(3),
.cracks-step:nth-child(6),
.cracks-step:nth-child(7),
.cracks-step:nth-child(8) {
  grid-column: span 2;
}

.cracks-step:nth-child(4),
.cracks-step:nth-child(5) {
  grid-column: span 3;
}

.cracks-grid-single .cracks-step {
  grid-column: 1 / -1;
}

.cracks-step h2 {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  height: 100%;
  box-sizing: border-box;
  margin: 0;
  padding-bottom: 8px;
  border-bottom: 1px solid #5e5e5e;
  color: #494e52;
  font-family: var(--font);
  font-size: 23.3px;
  font-weight: 700;
  line-height: 34.56px;
  overflow-wrap: break-word;
  word-wrap: break-word;
  overflow-wrap: anywhere;
  -webkit-hyphens: auto;
  hyphens: auto;
  hyphenate-limit-chars: 6 3 3;
}

.cracks-step h2 a {
  display: flex;
  flex-direction: column;
  align-self: flex-start;
  width: fit-content;
  max-width: 100%;
  min-width: 0;
  color: inherit;
  text-decoration: none;
  overflow-wrap: break-word;
  word-wrap: break-word;
  overflow-wrap: anywhere;
  -webkit-hyphens: inherit;
  hyphens: inherit;
}

.cracks-step h2 a:hover,
.cracks-step h2 a:focus,
.cracks-step h2 a:visited {
  color: inherit;
  text-decoration: none;
}

.cracks-step h2 span {
  display: block;
  min-width: 0;
  margin-top: auto;
  padding-top: 4px;
  overflow-wrap: break-word;
  color: #5a5a5a;
  font-size: 15px;
  font-weight: 400;
  line-height: 22px;
}

.cracks-carousel {
  position: relative;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin-bottom: 40px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #434343;
}

a.cracks-carousel {
  display: block;
  color: inherit;
  text-decoration: none;
}

.cracks-carousel:has(> .cracks-slide),
a.cracks-carousel {
  aspect-ratio: 800 / 450;
  background: var(--white);
}

.cracks-step:nth-child(2) .cracks-carousel,
.cracks-step:nth-child(3) .cracks-carousel,
.cracks-step:nth-child(4) .cracks-carousel,
.cracks-step:nth-child(5) .cracks-carousel {
  aspect-ratio: 800 / 450;
}

.cracks-step:nth-child(6) .cracks-carousel,
.cracks-step:nth-child(7) .cracks-carousel,
.cracks-step:nth-child(8) .cracks-carousel {
  aspect-ratio: 800 / 500;
}

.cracks-carousel > .cracks-slide,
a.cracks-carousel > .cracks-slide {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center;
  background: transparent;
}

.cracks-track {
  display: flex;
  transition: transform 0.4s ease;
}

.cracks-slide {
  flex: 0 0 100%;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  background: #222;
}

.cracks-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  background: transparent;
  transform: translateY(-50%);
  cursor: pointer;
  opacity: 0.7;
}

@media (hover: hover) and (pointer: fine) {
  .cracks-nav:hover {
    opacity: 1;
  }
}

.cracks-nav img {
  width: 22px;
  height: 22px;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.7));
}

.cracks-prev {
  left: 6px;
}

.cracks-next {
  right: 6px;
}

.cracks-empty {
  margin: 16px 0 0;
  color: #5a5a5a;
  font-size: 15px;
  line-height: 22px;
}

.cracks-resources {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding-top: 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.15);
}

.cracks-resources h2 {
  margin: 0 0 16px;
  color: #494e52;
  font-family: var(--font);
  font-size: 23.3px;
  font-weight: 700;
  line-height: 34.56px;
}

.cracks-resources ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.cracks-resources li {
  margin: 0 0 16px;
  color: #1c1c1c;
  font-size: 18px;
  line-height: 28px;
}

.cracks-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: clamp(20px, 3vw, 48px);
  align-items: stretch;
  width: 100%;
  min-width: 0;
  height: calc(100vh - var(--nav-height) - 32px);
}

.cracks-split-copy {
  display: flex;
  flex-direction: column;
  gap: 48px;
  min-width: 0;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-color: #a0a0a0 transparent;
  scrollbar-width: thin;
}

.cracks-split-copy > .cracks-top {
  width: auto;
  min-width: 0;
}

.cracks-split-copy > .cracks-resources {
  grid-template-columns: 1fr;
  min-width: 0;
  padding-top: 16px;
}

.cracks-split-canvas {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}

.cracks-scroll-progress {
  position: absolute;
  top: 20px;
  left: 50%;
  z-index: 3;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transform: translateX(-50%);
  pointer-events: none;
}

.cracks-scroll-progress[hidden] {
  display: none;
}

.cracks-scroll-progress-canvas {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.cracks-scroll-progress-chevron {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  width: 40px;
  height: auto;
  max-width: none;
  transform: translate(-50%, -50%);
  animation: none;
}

.cracks-scroll-progress.is-idle:not(.is-complete) .cracks-scroll-progress-chevron {
  animation: cracks-scroll-nudge 2.2s ease-in-out infinite;
}

.cracks-scroll-progress.is-complete .cracks-scroll-progress-chevron {
  animation: none;
  transform: translate(-50%, -50%);
}

@keyframes cracks-scroll-nudge {
  0%, 100% { transform: translate(-50%, calc(-50% - 4px)); }
  50% { transform: translate(-50%, calc(-50% + 5px)); }
}

.cracks-split-scroll {
  flex: 1 1 auto;
  height: auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: auto;
  scrollbar-width: none;
}

.cracks-split-scroll::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.cracks-split-flow {
  height: auto;
  align-items: stretch;
}

.cracks-split-flow .cracks-split-copy {
  height: auto;
  overflow: visible;
  gap: 0;
}

.cracks-split-flow .cracks-copy p:last-child,
.cracks-split-flow .cracks-resources li:last-child {
  margin-bottom: 0;
}

.cracks-split-flow .cracks-top {
  padding-bottom: 48px;
  border-bottom: 1px solid #5e5e5e;
}

.cracks-split-flow .cracks-resources {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-top: 48px;
  border-top: 0;
}

.cracks-split-flow .cracks-resources > section + section {
  margin-top: 48px;
  padding-top: 48px;
  border-top: 1px solid #5e5e5e;
}

.cracks-split-flow .cracks-split-canvas {
  position: relative;
  min-height: 0;
}

.cracks-split-flow .cracks-split-scroll {
  position: absolute;
  inset: 0;
  height: auto;
  flex: none;
}

.cracks-split .cracks-grid {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.cracks-split .cracks-step,
.cracks-split .cracks-step:nth-child(n) {
  display: flex;
  flex-direction: column;
  grid-column: auto;
  grid-row: auto;
}

.cracks-split .cracks-step h2 {
  height: auto;
}

.cracks-split .cracks-step h2 a {
  height: auto;
  flex: none;
}

.cracks-split .cracks-step h2 span {
  margin-top: 0;
}

.cracks-split .cracks-carousel {
  margin-bottom: 0;
}

.cracks-split .cracks-carousel:has(> .cracks-slide),
.cracks-split a.cracks-carousel,
.cracks-split .cracks-step:nth-child(n) .cracks-carousel {
  aspect-ratio: auto;
  background: var(--white);
}

.cracks-split .cracks-carousel > .cracks-slide,
.cracks-split a.cracks-carousel > .cracks-slide {
  height: auto;
  object-fit: contain;
}

@media (max-width: 1320px) {
  .cracks-copy {
    height: auto;
    column-count: 1;
    column-width: auto;
  }
}

@media (max-width: 700px) {
  .cracks-split {
    display: flex;
    flex-direction: column;
    row-gap: 48px;
    height: auto;
  }

  .cracks-split-copy {
    display: contents;
  }

  .cracks-split .cracks-top {
    order: 1;
  }

  .cracks-split-canvas {
    order: 2;
    min-width: 0;
  }

  .cracks-split .cracks-resources {
    order: 3;
    min-width: 0;
  }

  .cracks-split-flow {
    row-gap: 0;
  }

  .cracks-split-flow .cracks-split-canvas {
    padding-top: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid #5e5e5e;
  }

  .cracks-split-copy,
  .cracks-split-scroll {
    height: auto;
    overflow: visible;
  }

  .cracks-split-flow .cracks-split-canvas,
  .cracks-split-flow .cracks-split-scroll {
    position: static;
    inset: auto;
  }

  .cracks-scroll-progress {
    display: none;
  }

  .cracks-grid,
  .cracks-resources {
    grid-template-columns: 1fr;
  }

  .cracks-step,
  .cracks-step:nth-child(n) {
    grid-column: auto;
  }

  .cracks-carousel:has(> .cracks-slide),
  a.cracks-carousel,
  .cracks-step:nth-child(n) .cracks-carousel {
    aspect-ratio: auto;
  }

  .cracks-carousel > .cracks-slide,
  a.cracks-carousel > .cracks-slide {
    height: auto;
  }

  .cracks-split .cracks-carousel > .cracks-slide,
  .cracks-split a.cracks-carousel > .cracks-slide {
    width: 100%;
    height: auto;
    aspect-ratio: auto;
    aspect-ratio: attr(width number) / attr(height number);
  }
}

@media (max-width: 640px) {
  .page-content.cracks-bim {
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cracks-track {
    transition: none;
  }

  .cracks-scroll-progress-chevron {
    animation: none;
    transform: translate(-50%, -50%);
  }
}

.cracks-compare-slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  min-width: 0;
  aspect-ratio: 16 / 10;
  background: #222;
}

.cracks-compare-slide > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #222;
}

.cracks-compare {
  width: 100%;
  height: 100%;
  background: #222;
}

.cracks-compare .icv {
  width: 100%;
  height: 100%;
  cursor: col-resize;
  background: #222;
  border-radius: 0;
}

.cracks-compare .icv__img,
.cracks-compare .icv__wrapper,
.cracks-compare .icv__fluidwrapper {
  border-radius: 0;
}

.cracks-compare .icv__label {
  font-family: var(--font);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.55);
  border-radius: 0;
  padding: 4px 8px;
}

.cracks-compare-slide .img-expand-btn {
  z-index: 12;
}

a.cracks-carousel .img-expand-btn img {
  width: 32px;
  height: 32px;
}

.cracks-compare-lightbox .img-lightbox-photo {
  display: none;
}

.cracks-compare-lightbox-stage {
  width: min(1100px, calc(100vw - 112px));
  height: min(80dvh, calc(100dvh - 48px));
  max-width: calc(100vw - 112px);
  max-height: calc(100dvh - 32px);
  background: #1a1a1a;
}

.cracks-compare-lightbox-stage .cracks-compare {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
}

.cracks-compare-lightbox-stage .icv {
  width: 100%;
  height: 100%;
}

.cracks-compare-lightbox-stage .icv__wrapper,
.cracks-compare-lightbox-stage .icv__fluidwrapper {
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center center;
  background-color: #1a1a1a;
}

body.distort-page {
  background: #1a1a1a;
}

body.distort-page .site-header,
body.distort-page .site-nav,
body.distort-page .dropdown,
body.distort-page .search-panel {
  background-color: #434343;
}

body.distort-page .distort-compare {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 56px;
  align-items: center;
  min-height: calc(100dvh - var(--nav-height));
  background: #1a1a1a;
  padding: 16px 0;
}

.distort-stage {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-height: 0;
  min-width: 0;
}

.distort-compare.is-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 400;
  width: 100%;
  height: 100%;
  min-height: 100%;
  max-height: none;
  padding: 0;
  background: #1a1a1a;
}

.distort-compare.is-fullscreen .distort-stage .cracks-compare,
.distort-compare.is-fullscreen .distort-stage .calib-photo {
  width: min(100%, calc(100vw - 80px));
  max-width: min(100%, calc(100vw - 80px));
  height: 100dvh;
  max-height: 100dvh;
}

.distort-stage .ifc-expand-btn {
  z-index: 5;
  cursor: pointer;
  opacity: 1;
}

.distort-stage .cracks-compare {
  width: min(100%, calc(100vw - 112px));
  height: min(80dvh, calc(100dvh - 120px));
  background: #1a1a1a;
}

.distort-stage .calib-photo {
  max-width: min(100%, calc(100vw - 112px));
  max-height: calc(100dvh - var(--nav-height) - 48px);
  width: auto;
  height: auto;
  object-fit: contain;
}

.distort-stage .icv,
.distort-stage .icv__wrapper,
.distort-stage .icv__fluidwrapper {
  background-color: #1a1a1a;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center center;
}

.distort-stage .icv__label {
  pointer-events: none;
}

.distort-stage .icv__label-before {
  z-index: 2;
}

html[dir="rtl"] body.distort-page .distort-compare,
html[dir="rtl"] .icv__icv--horizontal .icv__theme-wrapper {
  direction: ltr;
}

.icv__arrow-wrapper .icv__chevron {
  display: block;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  pointer-events: none;
  transform: scale(1.5);
  filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.33));
}

.distort-nav {
  place-self: center;
  display: grid;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  opacity: 0.45;
  cursor: pointer;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.55));
}

@media (hover: hover) and (pointer: fine) {
  .distort-nav:hover {
    opacity: 1;
  }
}

.distort-nav img {
  width: 28px;
  height: 28px;
  display: block;
  pointer-events: none;
}

@media (max-width: 700px) {
  body.distort-page .distort-compare {
    grid-template-columns: 40px minmax(0, 1fr) 40px;
    padding: 12px 0;
  }

  .distort-stage .cracks-compare {
    width: min(100%, calc(100vw - 72px));
  }

  .distort-stage .calib-photo {
    max-width: min(100%, calc(100vw - 72px));
  }

  .distort-nav,
  .distort-nav img {
    width: 24px;
    height: 24px;
  }
}

body.distort-page .distort-compare.opensfm-page {
  grid-template-columns: minmax(0, 1fr);
  padding: 0;
}

.opensfm-stage {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: calc(100dvh - var(--nav-height));
  background: #434343;
  overflow: hidden;
}

.opensfm-stage.ifc-viewer {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  height: auto;
  max-height: none;
  min-height: 0;
  margin: 0;
  overflow: hidden;
}

.opensfm-stage.ifc-viewer .ifc-command {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 8px 12px 0;
}

.opensfm-stage.ifc-viewer .ifc-status,
.ifc-screen > .ifc-status {
  position: relative;
  z-index: 5;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0;
  padding: 6px 12px;
  border-top: 1px solid #5e5e5e;
  color: #f4f4f4;
  background: #434343;
}

.ifc-status-text {
  flex: 1 1 auto;
  min-width: 0;
}

.ifc-credit {
  flex: 0 1 auto;
  max-width: 70%;
  margin: 0;
  margin-inline-start: auto;
  color: #f4f4f4;
  font-size: 12px;
  line-height: 16px;
  text-align: end;
}

.ifc-credit a {
  color: inherit;
  text-decoration: underline;
}

html[dir="rtl"] .ifc-credit {
  direction: rtl;
  text-align: start;
}

.opensfm-stage.ifc-viewer .ifc-btn {
  border-color: #ffffff;
  background: transparent;
  color: #ffffff;
}

.opensfm-stage.ifc-viewer .ifc-btn.is-active,
.ifc-side .ifc-tab.is-active,
.ifc-side .ifc-tree-hit.is-active {
  background: #ffffff;
  color: #1c1c1c;
}

.ifc-ribbon-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  border-bottom: 1px solid #5e5e5e;
}

.ifc-ribbon-tablist {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  min-width: 0;
}

.ifc-ribbon-tab {
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: #ffffff;
  font-family: inherit;
  font-size: 14px;
  line-height: 18px;
  padding: 6px 14px;
  cursor: pointer;
}

.ifc-ribbon-tab.is-active {
  border-bottom-color: #ffffff;
  font-weight: 700;
}

.ifc-ribbon-page {
  display: none;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px 18px;
}

.ifc-ribbon-page.is-active {
  display: flex;
}

.ifc-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 0;
  padding-inline-end: 18px;
  border-inline-end: 1px solid #5e5e5e;
}

.ifc-group:last-child {
  padding-inline-end: 0;
  border-inline-end: 0;
}

.ifc-group-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ifc-group-label {
  color: #c5c7cb;
  font-size: 11px;
  line-height: 14px;
  text-transform: uppercase;
}

.ifc-command .ifc-btn,
.ifc-side .ifc-btn,
.ifc-side .ifc-tab {
  padding: 6px 10px;
  font-size: 14px;
  line-height: 18px;
}

.ifc-library {
  position: relative;
}

.ifc-library-list {
  position: absolute;
  z-index: 8;
  top: calc(100% + 8px);
  inset-inline-start: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: max(100%, 280px);
  padding: 8px;
  border: 1px solid #ffffff;
  border-radius: 6px;
  background: #1c1c1c;
}

.ifc-library-list[hidden] {
  display: none;
}

.ifc-menu-item {
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #ffffff;
  font-family: inherit;
  font-size: 14px;
  line-height: 18px;
  padding: 8px 14px;
  text-align: start;
  white-space: nowrap;
  cursor: pointer;
}

.ifc-menu-item:hover,
.ifc-menu-item:focus-visible,
.ifc-menu-item.is-active {
  background: #ffffff;
  color: #1c1c1c;
}

.ifc-frame {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
}

.ifc-side {
  display: flex;
  flex-direction: column;
  flex: 0 0 300px;
  width: 300px;
  min-width: 0;
  min-height: 0;
  background: #1c1c1c;
  color: #ffffff;
  font-family: inherit;
  overflow: hidden;
}

.ifc-side-start {
  border-inline-end: 1px solid #5e5e5e;
}

.ifc-side-end {
  border-inline-start: 1px solid #5e5e5e;
}

.ifc-pane {
  display: flex;
  flex-direction: column;
  flex: 0 1 auto;
  max-height: 40%;
  min-height: 0;
}

.ifc-pane-grow {
  flex: 1 1 auto;
  max-height: none;
}

.ifc-split {
  flex: 0 0 6px;
  width: 100%;
  padding: 0;
  border: 0;
  background: #5e5e5e;
  cursor: row-resize;
}

.ifc-split:hover,
.ifc-split:focus-visible {
  background: #ffffff;
}

.ifc-pane-title {
  margin: 0;
  padding: 12px 12px 8px;
  color: #f4f4f4;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 18px;
}

.ifc-review-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 10px 0;
}

.ifc-side .ifc-tab,
.ifc-side .ifc-tree-hit {
  border: 1px solid #ffffff;
  border-radius: 6px;
  background: transparent;
  color: #ffffff;
  font-family: inherit;
  cursor: pointer;
}

.ifc-pane-body {
  min-height: 0;
  flex: 1 1 auto;
  overflow: auto;
  padding: 10px;
}

.ifc-side input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #ffffff;
  border-radius: 6px;
  background: transparent;
  color: #ffffff;
  font-family: inherit;
  font-size: 14px;
}

.ifc-side input::placeholder {
  color: #c5c7cb;
}

.ifc-note {
  margin: 0;
  color: #f4f4f4;
  font-size: 14px;
  line-height: 20px;
}

.ifc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.ifc-row span,
.ifc-tree button {
  min-width: 0;
  overflow-wrap: anywhere;
}

.ifc-model {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto auto;
  gap: 6px;
  align-items: center;
  margin-bottom: 8px;
}

.ifc-model-name,
.ifc-node-label,
.ifc-eye,
.ifc-twist {
  border: 0;
  background: transparent;
  color: #ffffff;
  font-family: inherit;
  font-size: 14px;
  line-height: 18px;
  cursor: pointer;
}

.ifc-model-name,
.ifc-node-label {
  padding: 2px 0;
  text-align: start;
}

.ifc-model-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ifc-node-label {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ifc-model-size,
.ifc-node-long,
.ifc-cols {
  color: #c5c7cb;
  font-size: 13px;
  line-height: 18px;
}

.ifc-cols,
.ifc-node {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 76px 22px;
  gap: 6px;
  align-items: center;
}

.ifc-cols span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ifc-cols {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 0 0 8px;
  background: #1c1c1c;
}

.ifc-node-name {
  display: flex;
  align-items: center;
  gap: 2px;
  min-width: 0;
}

.ifc-node-long {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ifc-twist,
.ifc-twist-spacer,
.ifc-eye {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  padding: 0;
  flex: 0 0 18px;
}

.ifc-twist img {
  display: block;
  width: 14px;
  height: 14px;
}

.ifc-twist.is-collapsed img {
  transform: rotate(-90deg);
}

html[dir="rtl"] .ifc-twist.is-collapsed img {
  transform: rotate(90deg);
}

.ifc-eye {
  color: #ffffff;
}

.ifc-eye.is-off {
  opacity: 0.35;
}

.ifc-tree,
.ifc-tree ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ifc-tree ul {
  padding-inline-start: 14px;
}

.ifc-tree button,
.ifc-tree-hit {
  display: block;
  width: 100%;
  margin: 0 0 2px;
  padding: 4px 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #ffffff;
  font-family: inherit;
  font-size: 14px;
  line-height: 18px;
  text-align: start;
  cursor: pointer;
}

.ifc-tree button:hover,
.ifc-tree button.is-selected {
  background: rgba(255, 255, 255, 0.12);
}

.ifc-props {
  width: 100%;
  margin: 0 0 12px;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 18px;
}

.ifc-props th,
.ifc-props td {
  padding: 6px 4px;
  border-bottom: 1px solid #5e5e5e;
  text-align: start;
  vertical-align: top;
}

.ifc-props th {
  width: 42%;
  color: #c5c7cb;
  font-weight: 400;
}

.opensfm-stage.ifc-viewer .ifc-stage {
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  min-height: 0;
}

@media (max-width: 700px) {
  .ifc-ribbon-tablist,
  .ifc-ribbon-page.is-active,
  .ifc-group-row {
    flex-wrap: nowrap;
    overflow-x: auto;
  }

  .ifc-frame {
    flex-direction: column;
  }

  .opensfm-stage.ifc-viewer .ifc-stage {
    order: 1;
    flex: 1 1 auto;
    height: auto;
    min-height: 0;
  }

  .ifc-side {
    order: 2;
    flex: 0 1 22%;
    width: auto;
    max-height: none;
    border-inline: 0;
    border-top: 1px solid #5e5e5e;
  }

  .ifc-side-end {
    order: 3;
  }
}

.opensfm-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #434343;
}

.opensfm-stage.is-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 400;
  width: 100%;
  height: 100%;
  min-height: 100%;
  max-height: none;
}

.opensfm-stage .ifc-expand-btn {
  z-index: 4;
}

.opensfm-stage > .ifc-view-tools.viewer-stage-tools {
  position: absolute;
  top: 10px;
  inset-inline-end: 10px;
  z-index: 5;
  margin: 0;
  gap: 6px;
}

.opensfm-stage > .ifc-view-tools.viewer-stage-tools .img-expand-btn {
  position: static;
  opacity: 0.85;
  cursor: pointer;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.55));
}

.opensfm-stage.is-fullscreen .ifc-expand-btn,
.opensfm-stage.is-fullscreen .img-expand-btn,
.opensfm-stage:fullscreen .img-expand-btn,
.opensfm-stage:-webkit-full-screen .img-expand-btn {
  cursor: pointer;
  opacity: 1;
}

.opensfm-stage.is-nav-visible > .site-header {
  position: relative;
  z-index: 6;
  flex: 0 0 auto;
}

.opensfm-stage.is-force-landscape,
.ifc-stage.is-force-landscape {
  position: fixed;
  z-index: 400;
  max-height: none;
  min-height: 0;
}

@media (max-width: 700px), (max-height: 700px) and (orientation: landscape) {
  body:has(.opensfm-stage.ifc-viewer) {
    overflow: hidden;
    touch-action: none;
    overscroll-behavior: none;
  }

  body:has(.opensfm-stage.ifc-viewer) .site-header,
  body:has(.opensfm-stage.ifc-viewer) .site-search {
    visibility: hidden;
    pointer-events: none;
  }

  .opensfm-stage.ifc-viewer {
    position: fixed;
    z-index: 400;
    max-height: none;
    min-height: 0;
    margin: 0;
  }
}

@media (max-width: 700px) and (orientation: portrait) {
  .opensfm-stage.ifc-viewer {
    top: 50%;
    left: 50%;
    right: auto;
    bottom: auto;
    width: 100dvh;
    height: 100dvw;
    transform: translate(-50%, -50%) rotate(90deg);
    transform-origin: center center;
  }
}

@media (max-height: 700px) and (orientation: landscape),
  (max-width: 700px) and (orientation: landscape) {
  .opensfm-stage.ifc-viewer {
    inset: 0;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    transform: none;
  }
}

body.opensfm-force-landscape {
  overflow: hidden;
  touch-action: none;
  overscroll-behavior: none;
}

body.opensfm-force-landscape .site-header,
body.opensfm-force-landscape .site-search {
  visibility: hidden;
  pointer-events: none;
}

.opensfm-stage.gmsh-stage > .ifc-view-tools.viewer-stage-tools {
  top: 16px;
  inset-inline-end: 16px;
}

.opensfm-stage.pointcloud-stage > .ifc-view-tools.viewer-stage-tools {
  top: 3px;
  inset-inline-end: 12px;
}

html[dir="rtl"] .opensfm-stage.pointcloud-stage > .ifc-view-tools.viewer-stage-tools,
html[lang="ar"] .opensfm-stage.pointcloud-stage > .ifc-view-tools.viewer-stage-tools {
  top: 3px;
  left: 12px;
  right: auto;
  inset-inline-start: 12px;
  inset-inline-end: auto;
}

html[dir="rtl"] .opensfm-stage.pointcloud-stage > .ifc-expand-btn,
html[lang="ar"] .opensfm-stage.pointcloud-stage > .ifc-expand-btn {
  top: 3px;
  left: 12px;
  right: auto;
  inset-inline-start: 12px;
  inset-inline-end: auto;
}

.opensfm-loading {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1c1c1c;
  opacity: 1;
  transition: opacity 0.5s ease;
}

.opensfm-loading.is-done {
  opacity: 0;
  pointer-events: none;
}

.opensfm-loading[hidden] {
  display: none;
}

.opensfm-loading-mesh {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.opensfm-loading-mesh canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.opensfm-loading-note {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  margin: 0;
  max-width: calc(100% - 32px);
  color: #f9f9f9;
  font-size: 36px;
  line-height: 56px;
  font-weight: 400;
  text-align: center;
  white-space: nowrap;
}

@media (max-width: 700px) {
  body.distort-page .distort-compare.opensfm-page,
  .opensfm-stage {
    height: calc(100dvh - var(--nav-height));
    min-height: calc(100dvh - var(--nav-height));
    max-height: calc(100dvh - var(--nav-height));
  }

  body.distort-page .distort-compare.opensfm-page,
  .opensfm-stage {
    height: calc(100svh - var(--nav-height));
    min-height: calc(100svh - var(--nav-height));
    max-height: calc(100svh - var(--nav-height));
  }
}

html[dir="rtl"] .opensfm-loading-note {
  direction: rtl;
}

.opensfm-loading-dots span {
  display: inline-block;
  opacity: 0.15;
  animation: opensfm-dot-fade 1.5s linear infinite;
}

.opensfm-loading-dots span:nth-child(2) {
  animation-delay: 0.5s;
}

.opensfm-loading-dots span:nth-child(3) {
  animation-delay: 1s;
}

@keyframes opensfm-dot-fade {
  0%,
  100% {
    opacity: 0.15;
  }

  15% {
    opacity: 1;
  }

  30% {
    opacity: 0.15;
  }
}

@media (prefers-reduced-motion: reduce) {
  .opensfm-loading,
  .opensfm-loading.is-done {
    transition: none;
  }

  .opensfm-loading-dots span {
    animation: none;
    opacity: 1;
  }
}

/* ==========================================================================
   Dark / Light Mode System
   ========================================================================== */

/* Only transition colors when user is actively toggling the theme */
html.is-theme-transitioning,
html.is-theme-transitioning body,
html.is-theme-transitioning h1,
html.is-theme-transitioning h2,
html.is-theme-transitioning h3,
html.is-theme-transitioning h4,
html.is-theme-transitioning p,
html.is-theme-transitioning a,
html.is-theme-transitioning li,
html.is-theme-transitioning td,
html.is-theme-transitioning th,
html.is-theme-transitioning input {
  transition: background-color 0.4s cubic-bezier(0.4, 0.0, 0.2, 1),
              color 0.4s cubic-bezier(0.4, 0.0, 0.2, 1),
              border-color 0.4s cubic-bezier(0.4, 0.0, 0.2, 1) !important;
}

html.is-theme-transitioning .socials img {
  transition: filter 0.4s cubic-bezier(0.4, 0.0, 0.2, 1) !important;
}

@media (prefers-reduced-motion: reduce) {
  html.is-theme-transitioning,
  html.is-theme-transitioning * {
    transition: none !important;
  }
}

html.dark-mode {
  background-color: #1c1c1c;
  color-scheme: dark;
}

html.dark-mode body,
body.dark-mode {
  background-color: #1c1c1c !important;
  color: #e6e6e6 !important;
}

/* Social icons on index pages in dark mode */
html.dark-mode .socials img {
  filter: invert(1) !important;
}

html:not(.dark-mode) .socials img {
  filter: none !important;
}

/* Headings in page body (hero headers stay unchanged) */
html.dark-mode h1:not(.banner h1):not(.main-header),
html.dark-mode h2,
html.dark-mode h3,
html.dark-mode h4,
html.dark-mode .bio h2,
html.dark-mode .accordion h2,
html.dark-mode .pub-list h2,
html.dark-mode .pub-list h2 a,
html.dark-mode .blog-card h2,
html.dark-mode .course-intro h2,
html.dark-mode .course-card h2,
html.dark-mode .section-title,
html.dark-mode .post-article h2,
html.dark-mode .module-block h2,
html.dark-mode .cracks-step h2,
html.dark-mode .cracks-resources h2,
html.dark-mode .search-main h1,
html.dark-mode .search-result h2,
html.dark-mode .search-result h2 a {
  color: #f9f9f9 !important;
}

/* Body copy in page content (hero and footer stay unchanged) */
html.dark-mode p:not(.banner p):not(.site-footer p),
html.dark-mode li:not(.site-nav li),
html.dark-mode .bio-text li,
html.dark-mode .bio-text p,
html.dark-mode .entry-list > li,
html.dark-mode .pub-list p,
html.dark-mode .post-article p:not(.caption):not(.post-date),
html.dark-mode .portfolio-note,
html.dark-mode .photo-intro,
html.dark-mode .course-card p,
html.dark-mode .video-card,
html.dark-mode .cracks-copy,
html.dark-mode .cracks-bim,
html.dark-mode .cracks-resources li,
html.dark-mode .search-result-excerpt,
html.dark-mode .sitemap-intro,
html.dark-mode .smart-justify {
  color: #e6e6e6 !important;
}

/* List markers */
html.dark-mode .entry-list > li::marker {
  color: #dadce0;
}

/* Links in page content */
html.dark-mode .entry-list a,
html.dark-mode .content-link,
html.dark-mode .scholar-row a,
html.dark-mode .cracks-resources a,
html.dark-mode .sitemap a,
html.dark-mode main a:not(.site-header a):not(.site-footer a):not(.hero-skip) {
  color: #ffffff !important;
}

/* Captions, dates, secondary status, and URLs */
html.dark-mode .caption,
html.dark-mode .post-date,
html.dark-mode .search-status,
html.dark-mode .search-result-type,
html.dark-mode .search-result-url,
html.dark-mode .muted,
html.dark-mode .cracks-caption,
html.dark-mode .cracks-step h2 span,
html.dark-mode .cracks-empty,
html.dark-mode .video-card .caption,
html.dark-mode .ifc-status {
  color: #9aa0a6 !important;
}

/* Search inputs and controls */
html.dark-mode .search-panel input,
html.dark-mode .site-search input {
  background: #2b2b2b !important;
  color: #f9f9f9 !important;
  border-color: #555555 !important;
}

html.dark-mode .search-panel input::placeholder,
html.dark-mode .site-search input::placeholder {
  color: #9aa0a6 !important;
}

html.dark-mode .search-clear {
  color: #e6e6e6 !important;
}

/* Hairlines, borders, dividers */
html.dark-mode .hairline {
  background: rgba(255, 255, 255, 0.15);
}

html.dark-mode .pub-list li {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

html.dark-mode .search-result {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

html.dark-mode .accordion > summary {
  border-bottom-color: rgba(255, 255, 255, 0.2);
}

/* Invert dark body icons in dark mode so they remain crisp white */
html.dark-mode .collapse-btn img,
html.dark-mode img[src*="-black.svg"],
html.dark-mode img[src*="_black.svg"] {
  filter: invert(1);
}

/* Teaching module tables */
html.dark-mode .module-table {
  border-color: #434343;
}

html.dark-mode .module-table th,
html.dark-mode .module-table.modern th {
  background: #252525 !important;
  color: #f9f9f9 !important;
  border-color: #434343 !important;
}

html.dark-mode .module-table td,
html.dark-mode .module-table.modern td {
  background: #1c1c1c !important;
  color: #e6e6e6 !important;
  border-color: #434343 !important;
}

/* Search results mark highlight */
html.dark-mode .search-result mark {
  background: rgba(255, 243, 176, 0.25);
  color: #fff3b0;
}

/* Cracks / workflow cards */
html.dark-mode .cracks-node::before {
  background: #252525;
}

html.dark-mode .cracks-node.is-active::before {
  background: #383838;
}

html.dark-mode .cracks-node {
  color: #e6e6e6;
}

html.dark-mode .cracks-node.is-active {
  color: #ffffff;
}

html.dark-mode .cracks-caption {
  color: #9aa0a6;
}

html.dark-mode .cracks-carousel:has(> .cracks-slide),
html.dark-mode a.cracks-carousel,
html.dark-mode .cracks-split .cracks-carousel {
  background: #1c1c1c;
}

/* Detailed flowchart SVG in dark mode */
html.dark-mode .cracks-diagram-frame svg .node {
  stroke: #e6e6e6 !important;
}

html.dark-mode .cracks-diagram-frame svg .node-text,
html.dark-mode .cracks-diagram-frame svg .vert-text,
html.dark-mode .cracks-diagram-frame svg .small-text,
html.dark-mode .cracks-diagram-frame svg text:not([fill]):not(.title-text) {
  fill: #e6e6e6 !important;
}

html.dark-mode .cracks-diagram-frame svg .title-text:not([fill="#800000"]) {
  fill: #e6e6e6 !important;
}

html.dark-mode .cracks-diagram-frame svg .line,
html.dark-mode .cracks-diagram-frame svg .line-arrow {
  stroke: #e6e6e6 !important;
}

html.dark-mode .cracks-diagram-frame svg #Arrow1L path,
html.dark-mode .cracks-diagram-frame svg #arrow1L {
  fill: #e6e6e6 !important;
  stroke: #e6e6e6 !important;
}

html.dark-mode .cracks-diagram-frame svg #rect45 {
  stroke: #e6e6e6 !important;
}

html.dark-mode .cracks-diagram-frame svg #rect1360 {
  stroke: #e6e6e6 !important;
  fill: #e6e6e6 !important;
}

html.dark-mode .cracks-diagram-frame svg #circle141,
html.dark-mode .cracks-diagram-frame svg #circle333 {
  fill: #e6e6e6 !important;
}

html.dark-mode .cracks-diagram-frame svg #circle331 {
  stroke: #e6e6e6 !important;
}

html.dark-mode .cracks-diagram-frame svg tspan {
  fill: inherit;
}

/* Detailed flowchart SVG in light mode - explicit enforcement */
html:not(.dark-mode) .cracks-diagram-frame svg .node {
  stroke: #000000 !important;
}

html:not(.dark-mode) .cracks-diagram-frame svg .node-text,
html:not(.dark-mode) .cracks-diagram-frame svg .vert-text,
html:not(.dark-mode) .cracks-diagram-frame svg .small-text,
html:not(.dark-mode) .cracks-diagram-frame svg text:not([fill]):not(.title-text) {
  fill: #000000 !important;
}

html:not(.dark-mode) .cracks-diagram-frame svg .title-text:not([fill="#800000"]) {
  fill: #000000 !important;
}

html:not(.dark-mode) .cracks-diagram-frame svg .line,
html:not(.dark-mode) .cracks-diagram-frame svg .line-arrow {
  stroke: #000000 !important;
}

html:not(.dark-mode) .cracks-diagram-frame svg #Arrow1L path,
html:not(.dark-mode) .cracks-diagram-frame svg #arrow1L {
  fill: #000000 !important;
  stroke: #000000 !important;
}

html:not(.dark-mode) .cracks-diagram-frame svg #rect45 {
  stroke: #000000 !important;
}

html:not(.dark-mode) .cracks-diagram-frame svg #rect1360 {
  stroke: #000000 !important;
  fill: #000000 !important;
}

html:not(.dark-mode) .cracks-diagram-frame svg #circle141,
html:not(.dark-mode) .cracks-diagram-frame svg #circle333 {
  fill: #000000 !important;
}

html:not(.dark-mode) .cracks-diagram-frame svg #circle331 {
  stroke: #000000 !important;
}

html:not(.dark-mode) .cracks-diagram-frame svg tspan {
  fill: inherit;
}

