/* Homepage 3-column grid */

/* Kill UA body margin so full-bleed stages can meet the viewport edge */
html:has(.site-home-layout),
body.home-page {
  margin: 0;
}

/* Site chrome links — shared across breakpoints so home/choreography match */
.site-home-layout__nav {
  flex: 0 0 auto;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: baseline;
  justify-content: flex-end;
  gap: var(--site-nav-gap);
  width: max-content;
  max-width: 100%;
  align-self: flex-end;
  position: relative;
  z-index: 2;
  overflow: visible;
}

/* Mobile toggle: bare hairlines → Cinzel X (same language as choreography close) */
.site-home-layout__nav-toggle {
  display: none;
  position: relative;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  min-width: 2.75rem;
  min-height: 2.75rem;
  margin: 0;
  padding: 0.7rem 0.45rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #000;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: opacity 0.15s ease;
}

.site-home-layout__nav-toggle:hover,
.site-home-layout__nav-toggle:focus-visible {
  opacity: 0.55;
}

.site-home-layout__nav-toggle-icon {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 1.35rem;
  height: 0.68rem;
  transition: opacity 0.15s ease;
}

.site-home-layout__nav-toggle-icon span {
  display: block;
  width: 100%;
  height: 1px;
  background: currentColor;
}

/* Typographic close — matches .choreography-popups__close-all */
.site-home-layout__nav-toggle::after {
  content: "X";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-title);
  font-size: clamp(1.15rem, 4.5vw, 1.4rem);
  font-weight: 400;
  font-style: normal;
  line-height: 1;
  letter-spacing: 0.02em;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

.site-home-layout__nav.is-nav-open .site-home-layout__nav-toggle-icon {
  opacity: 0;
}

.site-home-layout__nav.is-nav-open .site-home-layout__nav-toggle::after {
  opacity: 1;
}

body.is-site-nav-open {
  overflow: hidden;
}

.site-home-layout__nav-panel {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: baseline;
  justify-content: flex-end;
  gap: var(--site-nav-gap);
  width: max-content;
  max-width: 100%;
}

.site-home-layout__nav-link {
  flex: 0 0 auto;
  font-family: var(--font-nav-default);
  font-size: var(--site-nav-font-size);
  font-weight: 400;
  font-style: normal;
  line-height: var(--site-nav-line-height);
  color: #000;
  text-decoration: none;
  white-space: nowrap;
  transition: text-decoration 0.15s ease;
}

.site-home-layout__nav-link:hover,
.site-home-layout__nav-link:focus-visible {
  font-family: var(--font-nav-hover);
  font-weight: 400;
  font-style: italic;
  text-decoration: underline;
}

.site-home-layout__nav-link--current,
.site-home-layout__nav-link[aria-current="page"] {
  font-family: var(--font-nav-hover);
  font-weight: 400;
  font-style: italic;
  text-decoration: underline;
}

.site-home-layout__footer {
  flex: 0 0 auto;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: baseline;
  justify-content: flex-end;
  gap: var(--site-nav-gap);
  width: max-content;
  max-width: 100%;
  margin-top: auto;
  overflow-x: auto;
  overflow-y: visible;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.site-home-layout__footer::-webkit-scrollbar {
  display: none;
}

.site-home-layout__footer-link {
  flex: 0 0 auto;
  font-family: var(--font-nav-default);
  font-size: var(--site-nav-font-size);
  font-weight: 400;
  font-style: normal;
  line-height: var(--site-nav-line-height);
  color: #000;
  text-decoration: none;
  white-space: nowrap;
  transition: text-decoration 0.15s ease;
}

.site-home-layout__footer-link--underline {
  text-decoration: underline;
}

.site-home-layout__footer-link:hover,
.site-home-layout__footer-link:focus-visible {
  font-family: var(--font-nav-hover);
  font-weight: 400;
  font-style: italic;
  text-decoration: underline;
}

.site-home-layout__header .site-header-block {
  font-weight: 400;
  font-size: inherit;
}

.site-home-layout__header .site-header-lines {
  font-family: var(--font-body);
  font-weight: 400;
  font-style: normal;
}

@media (min-width: 1001px) {
  /* Lock homepage to one viewport — no document scroll */
  html:has(.site-home-layout),
  body.home-page:has(.site-home-layout) {
    height: 100%;
    overflow: hidden;
  }

  body.home-page .site-home-main {
    height: 100vh;
    max-height: 100vh;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
  }

  .site-home-layout {
    /* Side columns share equal min width and fr track */
    --site-home-side-min: clamp(160px, 17vw, 19vw);
    --site-home-left-min: var(--site-home-side-min);
    --site-home-right-min: var(--site-home-side-min);
    --site-home-page-padding-x: clamp(1.25rem, 3vw, 3.75rem);
    --site-home-page-padding-y: clamp(0.75rem, 1.5vw, 1rem);

    display: grid;
    grid-template-columns:
      minmax(var(--site-home-left-min), 18fr)
      minmax(0, 64fr)
      minmax(var(--site-home-right-min), 18fr);
    grid-template-rows: minmax(0, 1fr);
    column-gap: clamp(1.25rem, 2.5vw, 2.75rem);
    align-items: stretch;
    flex: 1 1 auto;
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: 100%;
    padding: var(--site-home-page-padding-y) var(--site-home-page-padding-x);
    box-sizing: border-box;
    position: relative;
    z-index: 5;
    pointer-events: none;
    overflow: hidden;
  }

  .site-home-layout__left,
  .site-home-layout__center,
  .site-home-layout__right {
    pointer-events: auto;
    min-width: 0;
  }

  /* LEFT — header mark + tagline, then about bio stacked below */
  .site-home-layout__left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    height: 100%;
    min-height: 0;
    padding-top: clamp(0.15rem, 0.35vh, 0.35rem);
    overflow: hidden;
  }

  .site-home-layout__header {
    flex: 0 0 auto;
    width: 100%;
    max-width: min(90vw, 720px);
  }

  .site-home-layout__header .site-header-block {
    margin: 0;
  }

  .site-home-layout__header .site-header-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: clamp(0.35rem, 1vw, 0.55rem);
    text-decoration: none;
    color: inherit;
  }

  .site-home-layout__header .site-header-home {
    display: block;
    text-decoration: none;
    color: inherit;
  }

  .site-home-layout__header .site-header-mark {
    display: block;
    width: min(100%, 10.5rem);
    height: auto;
  }

  .site-home-layout__header .site-header-lines {
    display: block;
    font-size: clamp(0.6875rem, 0.78vw, 0.8125rem);
    line-height: 1.35;
    letter-spacing: 0.01em;
  }

  .site-home-layout__header .site-header-lines a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 0.12em;
  }

  .site-home-layout__header .site-header-affiliations {
    margin-top: 0.2em;
    font-size: clamp(0.585rem, 0.66vw, 0.69rem);
  }

  .site-home-about {
    position: relative;
    z-index: 1;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 0;
    margin-top: clamp(0.75rem, 1.5vh, 1.25rem);
    pointer-events: none;
    overflow: hidden;
  }

  /* Desktop About is a hover reveal — no page title needed */
  .site-home-about__title {
    display: none;
  }

  .site-home-about__body {
    opacity: 0;
    visibility: hidden;
    max-height: 0;
    overflow: hidden;
    text-align: justify;
    font: normal 400 clamp(0.6875rem, 0.82vw, 0.8125rem) / 1.45 var(--font-body);
    color: #000;
    transition:
      opacity 0.2s ease,
      visibility 0.2s ease,
      max-height 0.35s ease;
  }

  .site-home-layout:has(.site-home-layout__nav-link--about:hover)
    .site-home-about__body,
  .site-home-layout:has(.site-home-layout__nav-link--about:focus-visible)
    .site-home-about__body,
  .site-home-layout.is-about-open .site-home-about__body {
    opacity: 1;
    visibility: visible;
    flex: 1 1 auto;
    min-height: 0;
    max-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  .site-home-layout:has(.site-home-layout__nav-link--about:hover) .site-home-about,
  .site-home-layout:has(.site-home-layout__nav-link--about:focus-visible)
    .site-home-about,
  .site-home-layout.is-about-open .site-home-about {
    pointer-events: auto;
  }

  .site-home-about__body p {
    margin: 0 0 0.85em;
  }

  .site-home-about__body p:last-child {
    margin-bottom: 0;
  }

  .site-home-about__body em {
    font-family: var(--font-ui-serif-italic);
    font-style: italic;
    font-weight: 400;
  }

  .site-home-about__body a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 0.12em;
  }

  /* CENTER bottom-left — tilted keyword label */
  .site-home-layout__center .site-home-keyword,
  .site-home-layout__center .site-home-layout__keyword-label {
    position: absolute;
    bottom: clamp(0.25rem, 0.5vh, 0.5rem);
    left: 0;
    z-index: 2;
    flex: 0 0 auto;
    width: max-content;
    max-width: calc(100% - 0.5rem);
    margin: 0;
    padding: 0 0 clamp(0.35rem, 0.75vh, 0.65rem) clamp(0.15rem, 0.35vw, 0.35rem);
    pointer-events: none;
    overflow: visible;
  }

  .site-home-keyword__tilt,
  .site-home-layout__keyword-label-tilt {
    display: inline-block;
    transform: perspective(760px) rotateX(15.3088deg) rotateY(15.3452deg);
    transform-origin: bottom left;
    overflow: visible;
  }

  .site-home-keyword__text,
  .site-home-layout__keyword-label-text {
    margin: 0;
    font-family: ui-monospace, "SFMono-Regular", "SF Mono", Menlo, Consolas,
      "Liberation Mono", monospace;
    font-size: clamp(0.5625rem, 0.68vw, 0.6875rem);
    font-weight: 400;
    font-style: normal;
    line-height: 1.3;
    letter-spacing: 0;
    color: #000;
    text-align: left;
    white-space: nowrap;
    overflow: visible;
  }

  .site-home-keyword__text em,
  .site-home-layout__keyword-label-text em {
    font-style: normal;
  }

  /* CENTER — D3 project cluster fills column height (keyword overlays at bottom) */
  .site-home-layout__center {
    position: relative;
    display: flex;
    flex-direction: column;
    align-self: stretch;
    height: 100%;
    min-height: 0;
    overflow: visible;
  }

  .site-home-layout__center .site-home-projects__grid {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
    pointer-events: auto;
    z-index: 1;
  }

  /* RIGHT — nav top, project list lower-middle, footer bottom */
  .site-home-layout__right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    height: 100%;
    min-height: 0;
    padding-top: clamp(0.15rem, 0.35vh, 0.35rem);
    padding-bottom: clamp(0.5rem, 1vh, 0.85rem);
    overflow-x: visible;
    overflow-y: hidden;
    position: relative;
    z-index: 60;
  }

  .site-home-layout__right .site-home-projects__sidebar {
    position: relative;
    flex: 0 1 auto;
    right: auto;
    bottom: auto;
    width: 100%;
    max-width: 100%;
    margin-top: auto;
    margin-bottom: 0;
    padding-top: clamp(0.75rem, 1.5vh, 1rem);
    border-top: 1px solid #000;
    pointer-events: auto;
  }

  /* Heading sits above the rule; move the divider onto the heading. */
  .site-home-layout__right .site-home-projects__sidebar:has(.site-home-projects__sidebar-heading) {
    padding-top: 0;
    border-top: none;
  }

  .site-home-layout__right .site-home-projects__sidebar-heading {
    margin-bottom: calc(clamp(0.75rem, 1.5vh, 1rem) - 0.65rem);
  }

  /* Choreography: keep workshop-menu heading spacing (not homepage project list). */
  body.choreography-page .site-home-layout__right .site-home-projects__sidebar {
    width: 16rem;
    max-width: 16rem;
    align-self: flex-end;
  }

  body.choreography-page
    .site-home-layout__right
    .site-home-projects__sidebar-heading {
    margin: 0 0 0.55rem;
  }
}

@media (max-width: 1000px) {
  html:has(.site-home-layout),
  body.home-page:has(.site-home-layout) {
    height: auto;
    overflow: auto;
  }

  body.home-page {
    overflow-x: clip;
    overflow-y: auto;
  }

  body.home-page .site-home-main {
    --site-home-mobile-pad-x: 0.9rem;
    min-height: 100vh;
    min-height: 100svh;
    height: auto;
    max-height: none;
    overflow-x: clip;
    overflow-y: visible;
    padding: 1rem var(--site-home-mobile-pad-x) 2rem;
    box-sizing: border-box;
  }

  .site-home-layout {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 0;
    padding: 0;
    pointer-events: auto;
    overflow: visible;
  }

  /* Flatten columns so mobile can reorder: header → nav → blobs → list → about → footer */
  .site-home-layout__left,
  .site-home-layout__center,
  .site-home-layout__right {
    display: contents;
  }

  .site-home-layout__header {
    order: 1;
    width: 100%;
    max-width: 100%;
  }

  .site-home-layout__header .site-header-block {
    margin: 0;
  }

  .site-home-layout__header .site-header-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
    text-decoration: none;
    color: inherit;
  }

  .site-home-layout__header .site-header-home {
    display: block;
    position: relative;
    z-index: 3;
    text-decoration: none;
    color: inherit;
    pointer-events: auto;
    -webkit-tap-highlight-color: transparent;
  }

  .site-home-layout__header .site-header-mark {
    width: min(100%, 8.25rem);
    height: auto;
    pointer-events: none;
  }

  .site-home-layout__header .site-header-lines {
    display: block;
    font-size: 0.75rem;
    line-height: 1.35;
    letter-spacing: 0.01em;
  }

  .site-home-layout__header .site-header-lines a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 0.12em;
  }

  .site-home-layout__header .site-header-affiliations {
    margin-top: 0.15em;
    font-size: 0.66rem;
  }

  /* Fixed top-right like standalone pages; out of mobile stack flow */
  body.home-page .site-home-layout__nav,
  .site-home-layout__nav {
    order: 2;
    position: fixed;
    top: 8px;
    left: auto;
    right: 12.384px;
    width: auto;
    max-width: none;
    align-self: auto;
    justify-content: flex-end;
    align-items: center;
    gap: 0;
    padding: 0;
    margin: 0;
    overflow: visible;
    z-index: 1000;
  }

  .site-home-layout__nav-toggle {
    display: inline-flex;
    position: relative;
    z-index: 2;
  }

  /* Full-page typographic overlay — no card chrome */
  .site-home-layout__nav-panel {
    display: none;
    position: fixed;
    inset: 0;
    top: 0;
    right: 0;
    left: 0;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 0.15rem;
    width: auto;
    min-width: 0;
    max-width: none;
    padding: clamp(4.5rem, 14vh, 6rem) clamp(1rem, 4.5vw, 1.5rem) 2.5rem;
    background: rgba(242, 242, 242, 0.82);
    border: 0;
    border-radius: 0;
    box-shadow: none;
    box-sizing: border-box;
    z-index: 1;
  }

  .site-home-layout__nav.is-nav-open .site-home-layout__nav-panel {
    display: flex;
  }

  .site-home-layout__nav-link {
    font-size: clamp(1.2rem, 5.5vw, 1.65rem);
    line-height: 1.25;
    padding: 0.45rem 0;
    min-height: 0;
    display: inline-flex;
    align-items: center;
    width: auto;
    max-width: 100%;
    justify-content: flex-end;
    white-space: normal;
    text-align: right;
  }

  .site-home-projects__mode-toggle {
    order: 3;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    width: auto;
    min-height: 2.5rem;
    padding-left: 0;
  }

  .site-home-projects__grid {
    order: 4;
    position: relative;
    width: 100%;
    min-height: min(58vh, 420px);
    height: min(58vh, 420px);
    max-width: 100%;
    overflow: visible;
  }

  .site-home-keyword,
  .site-home-layout__keyword-label {
    order: 5;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
  }

  /* Homepage mobile: first screen = header → nav → toggle → blob → keyword */
  body.home-page:not(.choreography-page) .site-home-layout {
    min-height: calc(100svh - 2rem);
  }

  body.home-page:not(.choreography-page) .site-home-projects__grid {
    flex: 1 1 auto;
    min-height: min(42vh, 300px);
    height: auto;
  }

  body.home-page:not(.choreography-page) .site-home-keyword,
  body.home-page:not(.choreography-page) .site-home-layout__keyword-label {
    margin-top: auto;
  }

  /* Home: hide project list on mobile. Choreography: keep heading as page title. */
  body.home-page:not(.choreography-page) .site-home-projects__sidebar {
    display: none;
  }

  /*
   * Choreography mobile chrome matches sub-pages (Workshop / Chimaerarium):
   * compact fixed mark top-left + burger top-right. Hide homepage PhD /
   * affiliation header block; "Choreography" title stays in the content stack.
   */
  body.home-page.choreography-page .site-home-main {
    padding-top: clamp(5.5rem, 14vh, 8rem);
  }

  body.choreography-page .site-home-layout__header {
    position: fixed;
    top: 6px;
    left: 12.384px;
    z-index: 1000;
    width: auto;
    max-width: min(28vw, 4.25rem);
    margin: 0;
    pointer-events: none;
  }

  body.choreography-page .site-home-layout__header .site-header-brand {
    gap: 0;
  }

  body.choreography-page .site-home-layout__header .site-header-home {
    display: block;
    width: 4.25rem;
    max-width: 100%;
    line-height: 0;
    pointer-events: auto;
  }

  body.choreography-page .site-home-layout__header .site-header-mark {
    display: block;
    width: 4.25rem;
    max-width: 100%;
    height: auto;
  }

  body.choreography-page .site-home-layout__header .site-header-lines {
    display: none;
  }

  body.choreography-page .site-home-projects__sidebar {
    display: contents;
  }

  body.choreography-page .site-home-projects__sidebar-row {
    display: none;
  }

  body.choreography-page .site-home-projects__sidebar-heading {
    order: 3;
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0.15rem 0 0;
    padding: 0;
    border: 0;
    font-family: var(--font-title);
    font-size: clamp(1.65rem, 8vw, 2.35rem);
    font-weight: 400;
    line-height: 0.95;
    letter-spacing: -0.02em;
    color: #000;
    overflow-wrap: anywhere;
  }

  body.choreography-page .site-home-projects__mode-toggle {
    order: 4;
  }

  body.choreography-page .site-home-projects__grid {
    order: 5;
  }

  body.choreography-page .site-home-keyword,
  body.choreography-page .site-home-layout__keyword-label {
    order: 6;
  }

  .site-home-keyword__tilt,
  .site-home-layout__keyword-label-tilt {
    display: inline-block;
    transform: none;
  }

  .site-home-keyword__text,
  .site-home-layout__keyword-label-text {
    margin: 0;
    font-family: ui-monospace, "SFMono-Regular", "SF Mono", Menlo, Consolas,
      "Liberation Mono", monospace;
    font-size: clamp(0.55rem, 2.8vw, 0.68rem);
    font-weight: 400;
    line-height: 1.35;
    color: #000;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .site-home-projects__sidebar {
    order: 6;
    width: 100%;
    max-width: 100%;
    margin-top: 0.25rem;
    padding-top: 0.85rem;
    border-top: 1px solid #000;
  }

  .site-home-projects__sidebar:has(.site-home-projects__sidebar-heading) {
    padding-top: 0;
    border-top: none;
  }

  /* About stays hidden until nav toggle (click) — not in the default scroll stack */
  .site-home-about {
    order: 7;
    width: 100%;
    max-width: 100%;
    margin-top: 0;
    pointer-events: none;
    overflow: hidden;
  }

  .site-home-about__title {
    display: none;
    font-family: var(--font-title);
    font-size: clamp(1.65rem, 8vw, 2.35rem);
    font-weight: 400;
    line-height: 0.95;
    letter-spacing: -0.02em;
    margin: 0 0 1rem;
    color: #000;
    overflow-wrap: anywhere;
  }

  .site-home-about__body {
    opacity: 0;
    visibility: hidden;
    max-height: 0;
    margin-top: 0;
    font: normal 400 0.875rem / 1.5 var(--font-body);
    text-align: justify;
    color: #000;
    overflow: hidden;
    transition:
      opacity 0.2s ease,
      visibility 0.2s ease,
      max-height 0.35s ease;
  }

  /*
   * Mobile About: full-page view (Workshop-title language).
   * Hide landing chrome; keep header mark + burger; show About title + body.
   */
  .site-home-layout.is-about-open .site-home-projects__mode-toggle,
  .site-home-layout.is-about-open .site-home-projects__grid,
  .site-home-layout.is-about-open .site-home-keyword,
  .site-home-layout.is-about-open .site-home-layout__keyword-label,
  .site-home-layout.is-about-open .site-home-projects__sidebar,
  body.choreography-page .site-home-layout.is-about-open
    .site-home-projects__sidebar-heading {
    display: none;
  }

  .site-home-layout.is-about-open .site-home-layout__header .site-header-lines {
    display: none;
  }

  .site-home-layout.is-about-open .site-home-about {
    order: 3;
    margin-top: 0.35rem;
    pointer-events: auto;
    overflow: visible;
    min-height: calc(100svh - 8rem);
  }

  .site-home-layout.is-about-open .site-home-about__title {
    display: block;
  }

  .site-home-layout.is-about-open .site-home-about__body {
    opacity: 1;
    visibility: visible;
    max-height: none;
    overflow: visible;
  }

  .site-home-about__body em {
    font-family: var(--font-ui-serif-italic);
    font-style: italic;
    font-weight: 400;
  }

  .site-home-about__body p {
    margin: 0 0 0.85em;
  }

  .site-home-about__body p:last-child {
    margin-bottom: 0;
  }

  .site-home-about__body a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 0.12em;
  }

  .site-home-layout.is-about-open .site-home-layout__footer {
    order: 8;
  }

  .site-home-layout__footer {
    order: 8;
    width: 100%;
    max-width: 100%;
    align-self: stretch;
    justify-content: flex-start;
    margin-top: 0.35rem;
    gap: 0.65rem 0.95rem;
    flex-wrap: wrap;
    overflow: visible;
  }

  .site-home-layout__footer-link {
    font-size: clamp(0.75rem, 3.4vw, 0.875rem);
    padding: 0.35rem 0;
    min-height: 2.5rem;
    display: inline-flex;
    align-items: center;
  }
}

@media (max-width: 640px) {
  body.home-page .site-home-main {
    --site-home-mobile-pad-x: 0.75rem;
    padding: 0.85rem var(--site-home-mobile-pad-x) 1.75rem;
  }

  /* Keep compact-chrome clearance; shorthand above would reset it. */
  body.home-page.choreography-page .site-home-main {
    padding-top: clamp(5.5rem, 14vh, 8rem);
  }

  .site-home-projects__grid {
    min-height: min(52vh, 360px);
    height: min(52vh, 360px);
  }

  body.home-page:not(.choreography-page) .site-home-projects__grid {
    min-height: min(38vh, 260px);
    height: auto;
  }

}

/*
 * Choreography embed mode (?embed=1): optional stripped chrome for iframe use.
 * Workshop page now hosts an in-column blobs stage instead of an iframe.
 */
body.choreography-page.choreography-embed .site-home-layout__left {
  display: none;
}

body.choreography-page.choreography-embed .site-home-layout__nav,
body.choreography-page.choreography-embed .site-home-layout__footer {
  display: none;
}

@media (min-width: 1001px) {
  body.choreography-page.choreography-embed .site-home-layout {
    grid-template-columns:
      minmax(0, 64fr)
      minmax(var(--site-home-right-min), 18fr);
  }

  body.choreography-page.choreography-embed .site-home-layout__center {
    grid-column: 1;
  }

  body.choreography-page.choreography-embed .site-home-layout__right {
    grid-column: 2;
    justify-content: flex-end;
  }

  body.choreography-page.choreography-embed
    .site-home-layout__right
    .site-home-projects__sidebar {
    margin-top: 0;
    margin-bottom: clamp(2rem, 8vh, 4.5rem);
  }
}

@media (max-width: 1000px) {
  body.choreography-page.choreography-embed .site-home-main {
    padding-top: 1rem;
  }

  body.choreography-page.choreography-embed .site-home-layout__header {
    display: none;
  }
}
